2018-09-16 20:10:06 -07:00
|
|
|
/*
|
|
|
|
* @file common_headers.h
|
|
|
|
*
|
2018-12-25 13:06:24 -08:00
|
|
|
* Header file shared between firmware, simulator and unit_tests
|
|
|
|
*
|
2018-09-16 20:10:06 -07:00
|
|
|
* @date Sep 16, 2018
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2018
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLLERS_CORE_COMMON_HEADERS_H_
|
|
|
|
#define CONTROLLERS_CORE_COMMON_HEADERS_H_
|
|
|
|
|
2019-04-04 20:03:32 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#define EXTERNC extern "C"
|
|
|
|
#else
|
|
|
|
#define EXTERNC
|
|
|
|
#endif
|
|
|
|
|
2018-09-16 20:10:06 -07:00
|
|
|
#include "efifeatures.h"
|
2018-12-08 13:06:14 -08:00
|
|
|
#include "rusefi_types.h"
|
2018-09-16 20:10:06 -07:00
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "error_handling.h"
|
|
|
|
#include "auto_generated_enums.h"
|
|
|
|
#include "efilib.h"
|
|
|
|
#include "efitime.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include "datalogging.h"
|
|
|
|
#include "loggingcentral.h"
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2019-07-13 06:00:03 -07:00
|
|
|
// See also 'TS_GET_STRUCT'
|
2019-06-17 09:18:55 -07:00
|
|
|
#define DISPLAY_CONFIG(x) x
|
|
|
|
#define DISPLAY_FIELD(x) x
|
2019-06-17 18:37:11 -07:00
|
|
|
// we use this 'DISPLAY' macro if value is not used by C++ in current context
|
|
|
|
#define DISPLAY(x)
|
2019-06-17 09:18:55 -07:00
|
|
|
|
2019-06-27 03:47:13 -07:00
|
|
|
#define DISPLAY_TAG(x)
|
2019-06-17 09:18:55 -07:00
|
|
|
#define DISPLAY_TEXT(x)
|
|
|
|
#define DISPLAY_SENSOR(x) {}
|
2019-06-18 20:23:30 -07:00
|
|
|
#define DISPLAY_IF(x) x
|
2019-06-17 09:18:55 -07:00
|
|
|
|
2018-09-16 20:10:06 -07:00
|
|
|
#endif /* CONTROLLERS_CORE_COMMON_HEADERS_H_ */
|