basic hw in the loop - pwm self validation #2028
This commit is contained in:
parent
9bf994e10f
commit
7bdd047955
|
@ -766,6 +766,7 @@ static void setLogicInputPin(const char *indexStr, const char *pinName) {
|
|||
}
|
||||
scheduleMsg(&logger, "setting logic input pin[%d] to %s please save&restart", index, hwPortname(pin));
|
||||
engineConfiguration->logicAnalyzerPins[index] = pin;
|
||||
incrementGlobalConfigurationVersion(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
}
|
||||
|
||||
static void showPinFunction(const char *pinName) {
|
||||
|
@ -1358,8 +1359,8 @@ void initSettings(void) {
|
|||
|
||||
#if EFI_PROD_CODE
|
||||
addConsoleActionS("showpin", showPinFunction);
|
||||
addConsoleActionSS("set_injection_pin", setInjectionPin);
|
||||
addConsoleActionSS("set_ignition_pin", setIgnitionPin);
|
||||
addConsoleActionSS(CMD_INJECTION_PIN, setInjectionPin);
|
||||
addConsoleActionSS(CMD_IGNITION_PIN, setIgnitionPin);
|
||||
addConsoleActionSS(CMD_TRIGGER_PIN, setTriggerInputPin);
|
||||
addConsoleActionSS(CMD_TRIGGER_SIMULATOR_PIN, setTriggerSimulatorPin);
|
||||
|
||||
|
|
|
@ -214,7 +214,7 @@ void startTriggerEmulatorPins() {
|
|||
#if EFI_PROD_CODE
|
||||
triggerSignal.outputPins[i]->initPin("Trigger emulator", pin,
|
||||
&CONFIG(triggerSimulatorPinModes)[i]);
|
||||
#endif
|
||||
#endif // EFI_PROD_CODE
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -222,7 +222,9 @@ void stopTriggerEmulatorPins() {
|
|||
for (size_t i = 0; i < efi::size(emulatorOutputs); i++) {
|
||||
brain_pin_e brainPin = activeConfiguration.triggerSimulatorPins[i];
|
||||
if (brainPin != GPIO_UNASSIGNED) {
|
||||
#if EFI_PROD_CODE
|
||||
efiSetPadUnused(brainPin);
|
||||
#endif // EFI_PROD_CODE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue