refactoring: extract magic constant
This commit is contained in:
parent
0f9e6e25a6
commit
c90e66e1db
|
@ -128,8 +128,8 @@ static void setupDefaultSensorInputs() {
|
|||
|
||||
engineConfiguration->iat.adcChannel = MRE_IN_IAT;
|
||||
|
||||
setCommonNTCSensor(&engineConfiguration->auxTempSensor1, 2700);
|
||||
setCommonNTCSensor(&engineConfiguration->auxTempSensor2, 2700);
|
||||
setCommonNTCSensor(&engineConfiguration->auxTempSensor1, MRE_DEFAULT_AT_PULLUP);
|
||||
setCommonNTCSensor(&engineConfiguration->auxTempSensor2, MRE_DEFAULT_AT_PULLUP);
|
||||
|
||||
#if HW_CHECK_MODE
|
||||
engineConfiguration->auxTempSensor1.adcChannel = EFI_ADC_2;
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define MRE_DEFAULT_AT_PULLUP 2700
|
||||
|
||||
#define MRE_INJ_1 Gpio::TLE8888_PIN_1
|
||||
#define MRE_INJ_2 Gpio::TLE8888_PIN_2
|
||||
#define MRE_INJ_3 Gpio::TLE8888_PIN_3
|
||||
|
|
|
@ -139,8 +139,8 @@ void setBoardConfigOverrides() {
|
|||
setLedPins();
|
||||
setupVbatt();
|
||||
|
||||
engineConfiguration->clt.config.bias_resistor = 2700;
|
||||
engineConfiguration->iat.config.bias_resistor = 2700;
|
||||
engineConfiguration->clt.config.bias_resistor = PROTEUS_DEFAULT_AT_PULLUP;
|
||||
engineConfiguration->iat.config.bias_resistor = PROTEUS_DEFAULT_AT_PULLUP;
|
||||
|
||||
engineConfiguration->canTxPin = Gpio::D1;
|
||||
engineConfiguration->canRxPin = Gpio::D0;
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define PROTEUS_DEFAULT_AT_PULLUP 2700
|
||||
|
||||
#define PROTEUS_LS_1 Gpio::D7
|
||||
// pin 15/black35
|
||||
#define PROTEUS_LS_2 Gpio::G9
|
||||
|
|
Loading…
Reference in New Issue