Output pin init/deinit needs a linked list #1803
This commit is contained in:
parent
2c322006d8
commit
e5ad8eb5c0
|
@ -330,12 +330,6 @@ static void initStatusLeds(void) {
|
||||||
|
|
||||||
enginePins.warningLedPin.initPin("led: warning status", engineConfiguration->warningLedPin);
|
enginePins.warningLedPin.initPin("led: warning status", engineConfiguration->warningLedPin);
|
||||||
enginePins.runningLedPin.initPin("led: running status", engineConfiguration->runningLedPin);
|
enginePins.runningLedPin.initPin("led: running status", engineConfiguration->runningLedPin);
|
||||||
|
|
||||||
enginePins.debugTriggerSync.initPin("debug: sync", CONFIG(debugTriggerSync));
|
|
||||||
#if EFI_GPIO_HARDWARE && EFI_SHAFT_POSITION_INPUT
|
|
||||||
enginePins.triggerDecoderErrorPin.initPin("led: trigger debug", CONFIG(triggerErrorPin),
|
|
||||||
&CONFIG(triggerErrorPinMode));
|
|
||||||
#endif /* EFI_GPIO_HARDWARE */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
|
|
|
@ -438,6 +438,13 @@ void initOutputPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
enginePins.secondIdleSolenoidPin.initPin("Idle Valve#2", CONFIG(secondSolenoidPin));
|
enginePins.secondIdleSolenoidPin.initPin("Idle Valve#2", CONFIG(secondSolenoidPin));
|
||||||
enginePins.alternatorPin.initPin("Alternator control", CONFIG(alternatorControlPin));
|
enginePins.alternatorPin.initPin("Alternator control", CONFIG(alternatorControlPin));
|
||||||
|
|
||||||
|
enginePins.triggerDecoderErrorPin.initPin("led: trigger debug", CONFIG(triggerErrorPin),
|
||||||
|
&CONFIG(triggerErrorPinMode));
|
||||||
|
|
||||||
|
#if EFI_SHAFT_POSITION_INPUT
|
||||||
|
// todo: migrate remaining OutputPin to RegisteredOutputPin in order to get consistent dynamic pin init/deinit
|
||||||
|
enginePins.debugTriggerSync.initPin("debug: sync", CONFIG(debugTriggerSync));
|
||||||
|
#endif // EFI_SHAFT_POSITION_INPUT
|
||||||
|
|
||||||
enginePins.o2heater.initPin("O2 heater", CONFIG(o2heaterPin));
|
enginePins.o2heater.initPin("O2 heater", CONFIG(o2heaterPin));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue