export board-specific macro for stm32 pins based on board yaml #3298

only:alphax-4chan_f7
This commit is contained in:
rusefi 2023-09-02 22:29:58 -04:00
parent 186be0c777
commit c7346bde4b
7 changed files with 10 additions and 8 deletions

View File

@ -291,8 +291,7 @@ pins:
color: white
- pin: E6
# H144_IN_D_4
id: [E15, E15]
id: [H144_IN_D_4, H144_IN_D_4]
class: [event_inputs, switch_inputs]
function: Cam Sensor VR+ as Hall
type: hall

View File

@ -146,7 +146,7 @@ void setBoardDefaultConfiguration() {
engineConfiguration->throttlePedalSecondaryWOTVoltage = 0.0;
engineConfiguration->clutchDownPin = H144_IN_D_2;
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light

View File

@ -143,7 +143,7 @@ void setBoardDefaultConfiguration() {
engineConfiguration->injectionMode = IM_SEQUENTIAL;
engineConfiguration->clutchDownPin = H144_IN_D_2;
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light

View File

@ -110,7 +110,7 @@ void setBoardDefaultConfiguration() {
engineConfiguration->clutchDownPin = H144_IN_D_2;
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light

View File

@ -113,7 +113,7 @@ void setBoardDefaultConfiguration() {
engineConfiguration->clutchDownPin = H144_IN_D_2;
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light

View File

@ -200,11 +200,11 @@ void detectHellenBoardType();
// IN_D1(old) or IN_DIG8(new/mega-module)
#define H144_IN_D_1 E12
// IN_D2(old) or IN_DIG9(new/mm)
#define H144_IN_D_2 Gpio::E13
#define H144_IN_D_2 E13
// IN_D3(old) or IN_DIG10(new)
#define H144_IN_D_3 E14
// IN_D4(old) or IN_DIG11(new)
#define H144_IN_D_4 Gpio::E15
#define H144_IN_D_4 E15
// A22
#define H144_IN_D_AUX3 Gpio::C5

View File

@ -1016,4 +1016,7 @@ void alphax4chanStimQc() {
engineConfiguration->trigger.type = trigger_type_e::TT_ONE_PLUS_ONE;
engineConfiguration->vvtMode[0] = VVT_SINGLE_TOOTH;
engineConfiguration->vvtMode[1] = VVT_SINGLE_TOOTH;
engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_CAM;
engineConfiguration->triggerInputPins[1] = Gpio::H144_IN_D_4;
}