export board-specific macro for stm32 pins based on board yaml #3298
only:alphax-4chan_f7
This commit is contained in:
parent
7414fa9bc2
commit
00bfa3a0a6
|
@ -308,8 +308,7 @@ pins:
|
|||
color: gray
|
||||
|
||||
- pin: E7
|
||||
# H144_IN_D_AUX4
|
||||
id: A7
|
||||
meta: H144_IN_D_AUX4
|
||||
class: event_inputs
|
||||
ts_name: E7 - Flex
|
||||
function: Digital Input / Flex fuel sensor
|
||||
|
|
|
@ -90,7 +90,7 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->enableSoftwareKnock = true;
|
||||
|
||||
engineConfiguration->boostControlPin = Gpio::H144_LS_6;
|
||||
engineConfiguration->acSwitch = H144_IN_D_AUX3;
|
||||
engineConfiguration->acSwitch = Gpio::H144_IN_D_AUX3;
|
||||
engineConfiguration->acRelayPin = Gpio::H144_OUT_IO6;
|
||||
engineConfiguration->fuelPumpPin = Gpio::G2; // OUT_IO9
|
||||
engineConfiguration->idle.solenoidPin = Gpio::D14; // OUT_PWM5
|
||||
|
|
|
@ -55,7 +55,7 @@ static void setupDefaultSensorInputs() {
|
|||
engineConfiguration->camInputs[0] = Gpio::H144_IN_CAM;
|
||||
// todo: remove from default since 4 cylinder does not use it
|
||||
// todo: this requires unit test change
|
||||
engineConfiguration->camInputs[1 * CAMS_PER_BANK] = H144_IN_D_AUX4;
|
||||
engineConfiguration->camInputs[1 * CAMS_PER_BANK] = Gpio::H144_IN_D_AUX4;
|
||||
|
||||
setTPS1Inputs(H144_IN_TPS, H144_IN_AUX1);
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ void setBoardConfigOverrides() {
|
|||
engineConfiguration->triggerInputPins[1] = Gpio::Unassigned;
|
||||
// Direct hall-only cam input
|
||||
// exhaust input same on both revisions
|
||||
engineConfiguration->camInputs[1] = H144_IN_D_AUX4;
|
||||
engineConfiguration->camInputs[1] = Gpio::H144_IN_D_AUX4;
|
||||
|
||||
int16_t hellenBoardId = engine->engineState.hellenBoardId;
|
||||
if (hellenBoardId == -1) {
|
||||
|
|
|
@ -95,7 +95,7 @@ void setBoardDefaultConfiguration() {
|
|||
engineConfiguration->enableSoftwareKnock = true;
|
||||
|
||||
engineConfiguration->boostControlPin = Gpio::H144_LS_6;
|
||||
engineConfiguration->acSwitch = H144_IN_D_AUX3;
|
||||
engineConfiguration->acSwitch = Gpio::H144_IN_D_AUX3;
|
||||
engineConfiguration->acRelayPin = Gpio::H144_OUT_IO6;
|
||||
engineConfiguration->fuelPumpPin = Gpio::G2; // OUT_IO9
|
||||
engineConfiguration->idle.solenoidPin = Gpio::D14; // OUT_PWM5
|
||||
|
|
|
@ -207,9 +207,9 @@ void detectHellenBoardType();
|
|||
#define H144_IN_D_4 E15
|
||||
|
||||
// A22
|
||||
#define H144_IN_D_AUX3 Gpio::C5
|
||||
#define H144_IN_D_AUX3 C5
|
||||
// A20 AIN20
|
||||
#define H144_IN_D_AUX4 Gpio::A7
|
||||
#define H144_IN_D_AUX4 A7
|
||||
|
||||
#define H176_LS_1 Gpio::G7
|
||||
#define H176_LS_2 Gpio::G8
|
||||
|
|
|
@ -1019,4 +1019,8 @@ void alphax4chanStimQc() {
|
|||
|
||||
engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_CAM;
|
||||
engineConfiguration->triggerInputPins[1] = Gpio::H144_IN_D_4;
|
||||
engineConfiguration->camInputs[0] = Gpio::H144_IN_VSS;
|
||||
engineConfiguration->camInputs[1] = Gpio::H144_IN_D_AUX4;
|
||||
engineConfiguration->camInputs[2] = Gpio::H144_IN_SENS2;
|
||||
engineConfiguration->camInputs[3] = Gpio::H144_IN_SENS3;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue