Starter is engaged on start-up in pull-up configuration #1969

This commit is contained in:
rusefillc 2020-11-26 10:55:39 -05:00
parent d4d7e7583b
commit 2f91ae6f73
7 changed files with 21 additions and 21 deletions

View File

@ -156,8 +156,8 @@ static brain_pin_e currentTxPin = GPIO_UNASSIGNED;
static brain_pin_e currentRxPin = GPIO_UNASSIGNED; static brain_pin_e currentRxPin = GPIO_UNASSIGNED;
void stopCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void stopCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
brain_pin_markUnused(currentTxPin); efiSetPadUnused(currentTxPin);
brain_pin_markUnused(currentRxPin); efiSetPadUnused(currentRxPin);
} }
void startCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void startCanPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {

View File

@ -50,8 +50,8 @@ void enableAuxSerial(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
} }
void stopAuxSerialPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void stopAuxSerialPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
brain_pin_markUnused(activeConfiguration.auxSerialTxPin); efiSetPadUnused(activeConfiguration.auxSerialTxPin);
brain_pin_markUnused(activeConfiguration.auxSerialRxPin); efiSetPadUnused(activeConfiguration.auxSerialRxPin);
} }
void startAuxSerialPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void startAuxSerialPins(DECLARE_ENGINE_PARAMETER_SIGNATURE) {

View File

@ -371,7 +371,7 @@ void applyNewHardwareSettings(void) {
stopBoostPin(); stopBoostPin();
#endif #endif
if (isPinOrModeChanged(clutchUpPin, clutchUpPinMode)) { if (isPinOrModeChanged(clutchUpPin, clutchUpPinMode)) {
brain_pin_markUnused(activeConfiguration.clutchUpPin); efiSetPadUnused(activeConfiguration.clutchUpPin);
} }
enginePins.unregisterPins(); enginePins.unregisterPins();

View File

@ -169,12 +169,12 @@ static void lcdInfo(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
} }
void stopHD44780_pins() { void stopHD44780_pins() {
brain_pin_markUnused(activeConfiguration.HD44780_rs); efiSetPadUnused(activeConfiguration.HD44780_rs);
brain_pin_markUnused(activeConfiguration.HD44780_e); efiSetPadUnused(activeConfiguration.HD44780_e);
brain_pin_markUnused(activeConfiguration.HD44780_db4); efiSetPadUnused(activeConfiguration.HD44780_db4);
brain_pin_markUnused(activeConfiguration.HD44780_db5); efiSetPadUnused(activeConfiguration.HD44780_db5);
brain_pin_markUnused(activeConfiguration.HD44780_db6); efiSetPadUnused(activeConfiguration.HD44780_db6);
brain_pin_markUnused(activeConfiguration.HD44780_db7); efiSetPadUnused(activeConfiguration.HD44780_db7);
} }
void startHD44780_pins() { void startHD44780_pins() {

View File

@ -386,8 +386,8 @@ static msg_t hipThread(void *arg) {
void stopHip9001_pins() { void stopHip9001_pins() {
#if EFI_PROD_CODE #if EFI_PROD_CODE
brain_pin_markUnused(activeConfiguration.hip9011IntHoldPin); efiSetPadUnused(activeConfiguration.hip9011IntHoldPin);
brain_pin_markUnused(activeConfiguration.hip9011CsPin); efiSetPadUnused(activeConfiguration.hip9011CsPin);
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
} }

View File

@ -95,9 +95,9 @@ static bool isJoystickEnabled() {
} }
void stopJoystickPins() { void stopJoystickPins() {
brain_pin_markUnused(activeConfiguration.joystickCenterPin); efiSetPadUnused(activeConfiguration.joystickCenterPin);
brain_pin_markUnused(activeConfiguration.joystickAPin); efiSetPadUnused(activeConfiguration.joystickAPin);
brain_pin_markUnused(activeConfiguration.joystickDPin); efiSetPadUnused(activeConfiguration.joystickDPin);
} }
void startJoystickPins() { void startJoystickPins() {

View File

@ -260,16 +260,16 @@ void initSmartGpio() {
#if (BOARD_EXT_GPIOCHIPS > 0) #if (BOARD_EXT_GPIOCHIPS > 0)
void stopSmartCsPins() { void stopSmartCsPins() {
#if (BOARD_TLE8888_COUNT > 0) #if (BOARD_TLE8888_COUNT > 0)
brain_pin_markUnused(activeConfiguration.tle8888_cs); efiSetPadUnused(activeConfiguration.tle8888_cs);
#endif /* BOARD_TLE8888_COUNT */ #endif /* BOARD_TLE8888_COUNT */
#if (BOARD_TLE6240_COUNT > 0) #if (BOARD_TLE6240_COUNT > 0)
brain_pin_markUnused(activeConfiguration.tle6240_cs); efiSetPadUnused(activeConfiguration.tle6240_cs);
#endif /* BOARD_TLE6240_COUNT */ #endif /* BOARD_TLE6240_COUNT */
#if (BOARD_MC33972_COUNT > 0) #if (BOARD_MC33972_COUNT > 0)
brain_pin_markUnused(activeConfiguration.mc33972_cs); efiSetPadUnused(activeConfiguration.mc33972_cs);
#endif /* BOARD_MC33972_COUNT */ #endif /* BOARD_MC33972_COUNT */
#if (BOARD_DRV8860_COUNT > 0) #if (BOARD_DRV8860_COUNT > 0)
brain_pin_markUnused(activeConfiguration.drv8860_cs); efiSetPadUnused(activeConfiguration.drv8860_cs);
#endif /* BOARD_DRV8860_COUNT */ #endif /* BOARD_DRV8860_COUNT */
} }