MC33816 integraion #784
This commit is contained in:
parent
e3d139d4d4
commit
79bbbc8f45
|
@ -349,6 +349,8 @@ void prepareVoidConfiguration(engine_configuration_s *engineConfiguration) {
|
|||
engineConfiguration->fuelLevelSensor = EFI_ADC_NONE;
|
||||
engineConfiguration->hipOutputChannel = EFI_ADC_NONE;
|
||||
engineConfiguration->afr.hwChannel = EFI_ADC_NONE;
|
||||
engineConfiguration->high_fuel_pressure_sensor_1 = EFI_ADC_NONE;
|
||||
engineConfiguration->high_fuel_pressure_sensor_2 = EFI_ADC_NONE;
|
||||
|
||||
boardConfiguration->idle.stepperDirectionPin = GPIO_UNASSIGNED;
|
||||
engineConfiguration->stepperDirectionPinMode = OM_DEFAULT;
|
||||
|
|
|
@ -609,6 +609,8 @@ typedef enum __attribute__ ((__packed__)) {
|
|||
#endif
|
||||
} adc_channel_e;
|
||||
|
||||
#define INCOMPATIBLE_CONFIG_CHANGE EFI_ADC_0
|
||||
|
||||
typedef enum {
|
||||
MS_AUTO = 0,
|
||||
MS_ALWAYS = 1,
|
||||
|
|
|
@ -499,8 +499,10 @@ static void configureInputs(void) {
|
|||
addChannel("AFR", engineConfiguration->afr.hwChannel, ADC_SLOW);
|
||||
addChannel("OilP", engineConfiguration->oilPressure.hwChannel, ADC_SLOW);
|
||||
addChannel("AC", engineConfiguration->acSwitchAdc, ADC_SLOW);
|
||||
addChannel("HFP1", engineConfiguration->high_fuel_pressure_sensor_1, ADC_SLOW);
|
||||
addChannel("HFP2", engineConfiguration->high_fuel_pressure_sensor_2, ADC_SLOW);
|
||||
if (engineConfiguration->high_fuel_pressure_sensor_1 != INCOMPATIBLE_CONFIG_CHANGE)
|
||||
addChannel("HFP1", engineConfiguration->high_fuel_pressure_sensor_1, ADC_SLOW);
|
||||
if (engineConfiguration->high_fuel_pressure_sensor_2 != INCOMPATIBLE_CONFIG_CHANGE)
|
||||
addChannel("HFP2", engineConfiguration->high_fuel_pressure_sensor_2, ADC_SLOW);
|
||||
|
||||
if (CONFIGB(isCJ125Enabled)) {
|
||||
addChannel("cj125ur", engineConfiguration->cj125ur, ADC_SLOW);
|
||||
|
|
Loading…
Reference in New Issue