Starter is engaged on start-up in pull-up configuration #1969
This commit is contained in:
parent
ad0631ab05
commit
d4d7e7583b
|
@ -134,7 +134,7 @@ void startAuxPins(void) {
|
|||
void stopAuxPins(void) {
|
||||
#if EFI_PROD_CODE
|
||||
for (int i = 0;i < AUX_PID_COUNT;i++) {
|
||||
brain_pin_markUnused(activeConfiguration.auxPidPins[i]);
|
||||
efiSetPadUnused(activeConfiguration.auxPidPins[i]);
|
||||
}
|
||||
#endif /* EFI_PROD_CODE */
|
||||
}
|
||||
|
|
|
@ -212,7 +212,7 @@ void startBoostPin() {
|
|||
|
||||
void stopBoostPin() {
|
||||
#if !EFI_UNIT_TEST
|
||||
brain_pin_markUnused(activeConfiguration.boostControlPin);
|
||||
efiSetPadUnused(activeConfiguration.boostControlPin);
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
}
|
||||
|
||||
|
|
|
@ -124,14 +124,10 @@ bool isIdleMotorBusy(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
|
||||
void stopIdleHardware(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
#if EFI_PROD_CODE
|
||||
brain_pin_markUnused(activeConfiguration.stepperEnablePin);
|
||||
brain_pin_markUnused(activeConfiguration.idle.stepperStepPin);
|
||||
brain_pin_markUnused(activeConfiguration.idle.solenoidPin);
|
||||
brain_pin_markUnused(activeConfiguration.secondSolenoidPin);
|
||||
// brain_pin_markUnused(activeConfiguration.idle.);
|
||||
// brain_pin_markUnused(activeConfiguration.idle.);
|
||||
// brain_pin_markUnused(activeConfiguration.idle.);
|
||||
// brain_pin_markUnused(activeConfiguration.idle.);
|
||||
efiSetPadUnused(activeConfiguration.stepperEnablePin);
|
||||
efiSetPadUnused(activeConfiguration.idle.stepperStepPin);
|
||||
efiSetPadUnused(activeConfiguration.idle.solenoidPin);
|
||||
efiSetPadUnused(activeConfiguration.secondSolenoidPin);
|
||||
#endif /* EFI_PROD_CODE */
|
||||
}
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ void ButtonDebounce::stopConfiguration () {
|
|||
if (*m_pin != active_pin || *m_mode != active_mode || (isActiveConfigurationVoid && (*m_pin != 0 || *m_mode != 0))) {
|
||||
#endif /* EFI_ACTIVE_CONFIGURATION_IN_FLASH */
|
||||
#ifndef EFI_UNIT_TEST
|
||||
brain_pin_markUnused(active_pin);
|
||||
efiSetPadUnused(active_pin);
|
||||
needsInit = true;
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
}
|
||||
|
|
|
@ -217,7 +217,7 @@ void stopDigitalCapture(const char *msg, brain_pin_e brainPin) {
|
|||
if (brainPin == GPIO_UNASSIGNED) {
|
||||
return;
|
||||
}
|
||||
brain_pin_markUnused(brainPin);
|
||||
efiSetPadUnused(brainPin);
|
||||
|
||||
ICUDriver *driver = getInputCaptureDriver(msg, brainPin);
|
||||
if (driver == NULL) {
|
||||
|
|
|
@ -291,9 +291,9 @@ void stopSpi(spi_device_e device) {
|
|||
return; // not turned on
|
||||
}
|
||||
isSpiInitialized[device] = false;
|
||||
brain_pin_markUnused(getSckPin(device));
|
||||
brain_pin_markUnused(getMisoPin(device));
|
||||
brain_pin_markUnused(getMosiPin(device));
|
||||
efiSetPadUnused(getSckPin(device));
|
||||
efiSetPadUnused(getMisoPin(device));
|
||||
efiSetPadUnused(getMosiPin(device));
|
||||
#endif /* HAL_USE_SPI */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue