better conditional compilation

This commit is contained in:
rusefi 2019-01-31 19:14:29 -05:00
parent 10b7059169
commit 2cc6aa4a45
1 changed files with 37 additions and 0 deletions

View File

@ -14,7 +14,9 @@
#define EFI_FSIO TRUE #define EFI_FSIO TRUE
#ifndef EFI_CDM_INTEGRATION
#define EFI_CDM_INTEGRATION TRUE #define EFI_CDM_INTEGRATION TRUE
#endif
#define EFI_TEXT_LOGGING TRUE #define EFI_TEXT_LOGGING TRUE
@ -52,9 +54,13 @@
/** /**
* Build-in logic analyzer support. Logic analyzer viewer is one of the java console panes. * Build-in logic analyzer support. Logic analyzer viewer is one of the java console panes.
*/ */
#ifndef EFI_WAVE_ANALYZER
#define EFI_WAVE_ANALYZER TRUE #define EFI_WAVE_ANALYZER TRUE
#endif
#ifndef EFI_ICU_INPUTS
#define EFI_ICU_INPUTS TRUE #define EFI_ICU_INPUTS TRUE
#endif
/** /**
* TunerStudio support. * TunerStudio support.
@ -94,12 +100,16 @@
#define TRIGGER_EXTREME_LOGGING FALSE #define TRIGGER_EXTREME_LOGGING FALSE
#ifndef EFI_INTERNAL_FLASH
#define EFI_INTERNAL_FLASH TRUE #define EFI_INTERNAL_FLASH TRUE
#endif
/** /**
* Usually you need shaft position input, but maybe you do not need it? * Usually you need shaft position input, but maybe you do not need it?
*/ */
#ifndef EFI_SHAFT_POSITION_INPUT
#define EFI_SHAFT_POSITION_INPUT TRUE #define EFI_SHAFT_POSITION_INPUT TRUE
#endif
/** /**
* Maybe we are just sniffing what's going on? * Maybe we are just sniffing what's going on?
@ -117,29 +127,43 @@
#define EFI_ANALOG_SENSORS TRUE #define EFI_ANALOG_SENSORS TRUE
#ifndef EFI_MAX_31855
#define EFI_MAX_31855 TRUE #define EFI_MAX_31855 TRUE
#endif
#define EFI_MCP_3208 FALSE #define EFI_MCP_3208 FALSE
#ifndef EFI_HIP_9011
#define EFI_HIP_9011 TRUE #define EFI_HIP_9011 TRUE
#endif
#ifndef EFI_CJ125
#define EFI_CJ125 TRUE #define EFI_CJ125 TRUE
#endif
#if !defined(EFI_MEMS) || defined(__DOXYGEN__) #if !defined(EFI_MEMS) || defined(__DOXYGEN__)
#define EFI_MEMS TRUE #define EFI_MEMS TRUE
#endif #endif
#ifndef EFI_INTERNAL_ADC
#define EFI_INTERNAL_ADC TRUE #define EFI_INTERNAL_ADC TRUE
#endif
#define EFI_NARROW_EGO_AVERAGING TRUE #define EFI_NARROW_EGO_AVERAGING TRUE
#define EFI_DENSO_ADC FALSE #define EFI_DENSO_ADC FALSE
#ifndef EFI_CAN_SUPPORT
#define EFI_CAN_SUPPORT TRUE #define EFI_CAN_SUPPORT TRUE
#endif
#ifndef EFI_HD44780_LCD
#define EFI_HD44780_LCD TRUE #define EFI_HD44780_LCD TRUE
#endif
#ifndef EFI_IDLE_CONTROL
#define EFI_IDLE_CONTROL TRUE #define EFI_IDLE_CONTROL TRUE
#endif
#define EFI_IDLE_INCREMENTAL_PID_CIC FALSE #define EFI_IDLE_INCREMENTAL_PID_CIC FALSE
@ -148,14 +172,23 @@
*/ */
#define EFI_MAIN_RELAY_CONTROL FALSE #define EFI_MAIN_RELAY_CONTROL FALSE
#ifndef EFI_PWM
#define EFI_PWM TRUE #define EFI_PWM TRUE
#endif
#ifndef EFI_VEHICLE_SPEED
#define EFI_VEHICLE_SPEED TRUE #define EFI_VEHICLE_SPEED TRUE
#endif
#define EFI_FUEL_PUMP TRUE #define EFI_FUEL_PUMP TRUE
#ifndef EFI_ENGINE_EMULATOR
#define EFI_ENGINE_EMULATOR TRUE #define EFI_ENGINE_EMULATOR TRUE
#endif
#ifndef EFI_EMULATE_POSITION_SENSORS
#define EFI_EMULATE_POSITION_SENSORS TRUE #define EFI_EMULATE_POSITION_SENSORS TRUE
#endif
/** /**
* This macros is used to hide pieces of the code from unit tests, so it only makes sense in folders exposed to the tests project. * This macros is used to hide pieces of the code from unit tests, so it only makes sense in folders exposed to the tests project.
@ -166,7 +199,9 @@
/** /**
* Do we need file logging (like SD card) logic? * Do we need file logging (like SD card) logic?
*/ */
#ifndef EFI_FILE_LOGGING
#define EFI_FILE_LOGGING TRUE #define EFI_FILE_LOGGING TRUE
#endif
#ifndef EFI_USB_SERIAL #ifndef EFI_USB_SERIAL
#define EFI_USB_SERIAL TRUE #define EFI_USB_SERIAL TRUE
@ -182,7 +217,9 @@
#define EFI_SUPPORT_NISSAN_PRIMERA TRUE #define EFI_SUPPORT_NISSAN_PRIMERA TRUE
#define EFI_SUPPORT_1995_FORD_INLINE_6 TRUE #define EFI_SUPPORT_1995_FORD_INLINE_6 TRUE
#ifndef EFI_ENGINE_SNIFFER
#define EFI_ENGINE_SNIFFER TRUE #define EFI_ENGINE_SNIFFER TRUE
#endif
#define EFI_HISTOGRAMS FALSE #define EFI_HISTOGRAMS FALSE
#define EFI_SENSOR_CHART TRUE #define EFI_SENSOR_CHART TRUE