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

This commit is contained in:
rusefillc 2020-11-26 10:41:22 -05:00
parent ad0631ab05
commit d4d7e7583b
6 changed files with 11 additions and 15 deletions

View File

@ -134,7 +134,7 @@ void startAuxPins(void) {
void stopAuxPins(void) { void stopAuxPins(void) {
#if EFI_PROD_CODE #if EFI_PROD_CODE
for (int i = 0;i < AUX_PID_COUNT;i++) { for (int i = 0;i < AUX_PID_COUNT;i++) {
brain_pin_markUnused(activeConfiguration.auxPidPins[i]); efiSetPadUnused(activeConfiguration.auxPidPins[i]);
} }
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
} }

View File

@ -212,7 +212,7 @@ void startBoostPin() {
void stopBoostPin() { void stopBoostPin() {
#if !EFI_UNIT_TEST #if !EFI_UNIT_TEST
brain_pin_markUnused(activeConfiguration.boostControlPin); efiSetPadUnused(activeConfiguration.boostControlPin);
#endif /* EFI_UNIT_TEST */ #endif /* EFI_UNIT_TEST */
} }

View File

@ -124,14 +124,10 @@ bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) { void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
#if EFI_PROD_CODE #if EFI_PROD_CODE
brain_pin_markUnused(activeConfiguration.stepperEnablePin); efiSetPadUnused(activeConfiguration.stepperEnablePin);
brain_pin_markUnused(activeConfiguration.idle.stepperStepPin); efiSetPadUnused(activeConfiguration.idle.stepperStepPin);
brain_pin_markUnused(activeConfiguration.idle.solenoidPin); efiSetPadUnused(activeConfiguration.idle.solenoidPin);
brain_pin_markUnused(activeConfiguration.secondSolenoidPin); efiSetPadUnused(activeConfiguration.secondSolenoidPin);
// brain_pin_markUnused(activeConfiguration.idle.);
// brain_pin_markUnused(activeConfiguration.idle.);
// brain_pin_markUnused(activeConfiguration.idle.);
// brain_pin_markUnused(activeConfiguration.idle.);
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
} }

View File

@ -60,7 +60,7 @@ void ButtonDebounce::stopConfiguration () {
if (*m_pin != active_pin || *m_mode != active_mode || (isActiveConfigurationVoid && (*m_pin != 0 || *m_mode != 0))) { if (*m_pin != active_pin || *m_mode != active_mode || (isActiveConfigurationVoid && (*m_pin != 0 || *m_mode != 0))) {
#endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */ #endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */
#ifndef EFI_UNIT_TEST #ifndef EFI_UNIT_TEST
brain_pin_markUnused(active_pin); efiSetPadUnused(active_pin);
needsInit = true; needsInit = true;
#endif /* EFI_UNIT_TEST */ #endif /* EFI_UNIT_TEST */
} }

View File

@ -217,7 +217,7 @@ void stopDigitalCapture(const char *msg, brain_pin_e brainPin) {
if (brainPin == GPIO_UNASSIGNED) { if (brainPin == GPIO_UNASSIGNED) {
return; return;
} }
brain_pin_markUnused(brainPin); efiSetPadUnused(brainPin);
ICUDriver *driver = getInputCaptureDriver(msg, brainPin); ICUDriver *driver = getInputCaptureDriver(msg, brainPin);
if (driver == NULL) { if (driver == NULL) {

View File

@ -291,9 +291,9 @@ void stopSpi(spi_device_e device) {
return; // not turned on return; // not turned on
} }
isSpiInitialized[device] = false; isSpiInitialized[device] = false;
brain_pin_markUnused(getSckPin(device)); efiSetPadUnused(getSckPin(device));
brain_pin_markUnused(getMisoPin(device)); efiSetPadUnused(getMisoPin(device));
brain_pin_markUnused(getMosiPin(device)); efiSetPadUnused(getMosiPin(device));
#endif /* HAL_USE_SPI */ #endif /* HAL_USE_SPI */
} }