32 lines
702 B
C
32 lines
702 B
C
/*
|
|
* global.h
|
|
*
|
|
* @date May 27, 2013
|
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
|
*/
|
|
|
|
#ifndef GLOBAL_H_
|
|
#define GLOBAL_H_
|
|
|
|
#include <ch.h>
|
|
#include <hal.h>
|
|
#include <time.h>
|
|
#include <string.h>
|
|
|
|
#include "rusefi_enums.h"
|
|
#include "obd_error_codes.h"
|
|
#include "error_handling.h"
|
|
|
|
/* definition to expand macro then apply to pragma message */
|
|
#define VALUE_TO_STRING(x) #x
|
|
#define VALUE(x) VALUE_TO_STRING(x)
|
|
#define VAR_NAME_VALUE(var) #var "=" VALUE(var)
|
|
|
|
// project-wide default thread stack size
|
|
// todo: adjust
|
|
// #define PORT_INT_REQUIRED_STACK 128
|
|
// todo: and decrease this size accordingly
|
|
#define UTILITY_THREAD_STACK_SIZE 384
|
|
|
|
#endif /* GLOBAL_H_ */
|