export board-specific macro for stm32 pins based on board yaml #3298
only:alphax-4chan_f7
This commit is contained in:
parent
186be0c777
commit
c7346bde4b
|
@ -291,8 +291,7 @@ pins:
|
||||||
color: white
|
color: white
|
||||||
|
|
||||||
- pin: E6
|
- pin: E6
|
||||||
# H144_IN_D_4
|
id: [H144_IN_D_4, H144_IN_D_4]
|
||||||
id: [E15, E15]
|
|
||||||
class: [event_inputs, switch_inputs]
|
class: [event_inputs, switch_inputs]
|
||||||
function: Cam Sensor VR+ as Hall
|
function: Cam Sensor VR+ as Hall
|
||||||
type: hall
|
type: hall
|
||||||
|
|
|
@ -146,7 +146,7 @@ void setBoardDefaultConfiguration() {
|
||||||
engineConfiguration->throttlePedalSecondaryWOTVoltage = 0.0;
|
engineConfiguration->throttlePedalSecondaryWOTVoltage = 0.0;
|
||||||
|
|
||||||
|
|
||||||
engineConfiguration->clutchDownPin = H144_IN_D_2;
|
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
|
||||||
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
||||||
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
||||||
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
||||||
|
|
|
@ -143,7 +143,7 @@ void setBoardDefaultConfiguration() {
|
||||||
|
|
||||||
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
engineConfiguration->injectionMode = IM_SEQUENTIAL;
|
||||||
|
|
||||||
engineConfiguration->clutchDownPin = H144_IN_D_2;
|
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
|
||||||
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
||||||
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
||||||
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
||||||
|
|
|
@ -110,7 +110,7 @@ void setBoardDefaultConfiguration() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
engineConfiguration->clutchDownPin = H144_IN_D_2;
|
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
|
||||||
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
||||||
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
||||||
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
||||||
|
|
|
@ -113,7 +113,7 @@ void setBoardDefaultConfiguration() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
engineConfiguration->clutchDownPin = H144_IN_D_2;
|
engineConfiguration->clutchDownPin = Gpio::H144_IN_D_2;
|
||||||
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
engineConfiguration->clutchDownPinMode = PI_PULLDOWN;
|
||||||
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH;
|
||||||
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
// ? engineConfiguration->malfunctionIndicatorPin = Gpio::G4; //1E - Check Engine Light
|
||||||
|
|
|
@ -200,11 +200,11 @@ void detectHellenBoardType();
|
||||||
// IN_D1(old) or IN_DIG8(new/mega-module)
|
// IN_D1(old) or IN_DIG8(new/mega-module)
|
||||||
#define H144_IN_D_1 E12
|
#define H144_IN_D_1 E12
|
||||||
// IN_D2(old) or IN_DIG9(new/mm)
|
// 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)
|
// IN_D3(old) or IN_DIG10(new)
|
||||||
#define H144_IN_D_3 E14
|
#define H144_IN_D_3 E14
|
||||||
// IN_D4(old) or IN_DIG11(new)
|
// IN_D4(old) or IN_DIG11(new)
|
||||||
#define H144_IN_D_4 Gpio::E15
|
#define H144_IN_D_4 E15
|
||||||
|
|
||||||
// A22
|
// A22
|
||||||
#define H144_IN_D_AUX3 Gpio::C5
|
#define H144_IN_D_AUX3 Gpio::C5
|
||||||
|
|
|
@ -1016,4 +1016,7 @@ void alphax4chanStimQc() {
|
||||||
engineConfiguration->trigger.type = trigger_type_e::TT_ONE_PLUS_ONE;
|
engineConfiguration->trigger.type = trigger_type_e::TT_ONE_PLUS_ONE;
|
||||||
engineConfiguration->vvtMode[0] = VVT_SINGLE_TOOTH;
|
engineConfiguration->vvtMode[0] = VVT_SINGLE_TOOTH;
|
||||||
engineConfiguration->vvtMode[1] = VVT_SINGLE_TOOTH;
|
engineConfiguration->vvtMode[1] = VVT_SINGLE_TOOTH;
|
||||||
|
|
||||||
|
engineConfiguration->triggerInputPins[0] = Gpio::H144_IN_CAM;
|
||||||
|
engineConfiguration->triggerInputPins[1] = Gpio::H144_IN_D_4;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue