Starter is engaged on start-up in pull-up configuration #1969
This commit is contained in:
parent
d4d7e7583b
commit
2f91ae6f73
|
@ -156,8 +156,8 @@ static brain_pin_e currentTxPin = GPIO_UNASSIGNED;
|
|||
static brain_pin_e currentRxPin = GPIO_UNASSIGNED;
|
||||
|
||||
void stopCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
brain_pin_markUnused(currentTxPin);
|
||||
brain_pin_markUnused(currentRxPin);
|
||||
efiSetPadUnused(currentTxPin);
|
||||
efiSetPadUnused(currentRxPin);
|
||||
}
|
||||
|
||||
void startCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
|
|
|
@ -50,8 +50,8 @@ void enableAuxSerial(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
|
||||
void stopAuxSerialPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
brain_pin_markUnused(activeConfiguration.auxSerialTxPin);
|
||||
brain_pin_markUnused(activeConfiguration.auxSerialRxPin);
|
||||
efiSetPadUnused(activeConfiguration.auxSerialTxPin);
|
||||
efiSetPadUnused(activeConfiguration.auxSerialRxPin);
|
||||
}
|
||||
|
||||
void startAuxSerialPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
|
@ -90,4 +90,4 @@ void initAuxSerial(void) {
|
|||
serialRead.Start();
|
||||
}
|
||||
|
||||
#endif // EFI_AUX_SERIAL
|
||||
#endif // EFI_AUX_SERIAL
|
||||
|
|
|
@ -371,7 +371,7 @@ void applyNewHardwareSettings(void) {
|
|||
stopBoostPin();
|
||||
#endif
|
||||
if (isPinOrModeChanged(clutchUpPin, clutchUpPinMode)) {
|
||||
brain_pin_markUnused(activeConfiguration.clutchUpPin);
|
||||
efiSetPadUnused(activeConfiguration.clutchUpPin);
|
||||
}
|
||||
|
||||
enginePins.unregisterPins();
|
||||
|
|
|
@ -169,12 +169,12 @@ static void lcdInfo(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
|
||||
void stopHD44780_pins() {
|
||||
brain_pin_markUnused(activeConfiguration.HD44780_rs);
|
||||
brain_pin_markUnused(activeConfiguration.HD44780_e);
|
||||
brain_pin_markUnused(activeConfiguration.HD44780_db4);
|
||||
brain_pin_markUnused(activeConfiguration.HD44780_db5);
|
||||
brain_pin_markUnused(activeConfiguration.HD44780_db6);
|
||||
brain_pin_markUnused(activeConfiguration.HD44780_db7);
|
||||
efiSetPadUnused(activeConfiguration.HD44780_rs);
|
||||
efiSetPadUnused(activeConfiguration.HD44780_e);
|
||||
efiSetPadUnused(activeConfiguration.HD44780_db4);
|
||||
efiSetPadUnused(activeConfiguration.HD44780_db5);
|
||||
efiSetPadUnused(activeConfiguration.HD44780_db6);
|
||||
efiSetPadUnused(activeConfiguration.HD44780_db7);
|
||||
}
|
||||
|
||||
void startHD44780_pins() {
|
||||
|
|
|
@ -386,8 +386,8 @@ static msg_t hipThread(void *arg) {
|
|||
|
||||
void stopHip9001_pins() {
|
||||
#if EFI_PROD_CODE
|
||||
brain_pin_markUnused(activeConfiguration.hip9011IntHoldPin);
|
||||
brain_pin_markUnused(activeConfiguration.hip9011CsPin);
|
||||
efiSetPadUnused(activeConfiguration.hip9011IntHoldPin);
|
||||
efiSetPadUnused(activeConfiguration.hip9011CsPin);
|
||||
#endif /* EFI_PROD_CODE */
|
||||
}
|
||||
|
||||
|
|
|
@ -95,9 +95,9 @@ static bool isJoystickEnabled() {
|
|||
}
|
||||
|
||||
void stopJoystickPins() {
|
||||
brain_pin_markUnused(activeConfiguration.joystickCenterPin);
|
||||
brain_pin_markUnused(activeConfiguration.joystickAPin);
|
||||
brain_pin_markUnused(activeConfiguration.joystickDPin);
|
||||
efiSetPadUnused(activeConfiguration.joystickCenterPin);
|
||||
efiSetPadUnused(activeConfiguration.joystickAPin);
|
||||
efiSetPadUnused(activeConfiguration.joystickDPin);
|
||||
}
|
||||
|
||||
void startJoystickPins() {
|
||||
|
|
|
@ -260,16 +260,16 @@ void initSmartGpio() {
|
|||
#if (BOARD_EXT_GPIOCHIPS > 0)
|
||||
void stopSmartCsPins() {
|
||||
#if (BOARD_TLE8888_COUNT > 0)
|
||||
brain_pin_markUnused(activeConfiguration.tle8888_cs);
|
||||
efiSetPadUnused(activeConfiguration.tle8888_cs);
|
||||
#endif /* BOARD_TLE8888_COUNT */
|
||||
#if (BOARD_TLE6240_COUNT > 0)
|
||||
brain_pin_markUnused(activeConfiguration.tle6240_cs);
|
||||
efiSetPadUnused(activeConfiguration.tle6240_cs);
|
||||
#endif /* BOARD_TLE6240_COUNT */
|
||||
#if (BOARD_MC33972_COUNT > 0)
|
||||
brain_pin_markUnused(activeConfiguration.mc33972_cs);
|
||||
efiSetPadUnused(activeConfiguration.mc33972_cs);
|
||||
#endif /* BOARD_MC33972_COUNT */
|
||||
#if (BOARD_DRV8860_COUNT > 0)
|
||||
brain_pin_markUnused(activeConfiguration.drv8860_cs);
|
||||
efiSetPadUnused(activeConfiguration.drv8860_cs);
|
||||
#endif /* BOARD_DRV8860_COUNT */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue