trigger layer start-up is a mess #5241

refactoring: just renaming method
This commit is contained in:
rusefillc 2023-04-19 17:07:36 -04:00
parent 21ea057f70
commit cffad07458
4 changed files with 8 additions and 4 deletions

View File

@ -157,7 +157,7 @@ void startTriggerInputPins() {
} }
} }
void turnOnTriggerInputPins() { void initTriggerImplementation() {
applyNewTriggerInputPins(); applyNewTriggerInputPins();
} }

View File

@ -11,7 +11,11 @@
#include "trigger_structure.h" #include "trigger_structure.h"
#include "trigger_central.h" #include "trigger_central.h"
void turnOnTriggerInputPins(); /**
* 'init' meaning invoked only on ECU start-up
*/
void initTriggerImplementation();
void applyNewTriggerInputPins(); void applyNewTriggerInputPins();
void startTriggerInputPins(); void startTriggerInputPins();
void stopTriggerInputPins(); void stopTriggerInputPins();

View File

@ -87,7 +87,7 @@ static COMPConfig comp_shaft_cfg = {
static bool isCompEnabled = false; static bool isCompEnabled = false;
void turnOnTriggerInputPins() { void initTriggerImplementation() {
compInit(); compInit();
compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg); compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg);

View File

@ -569,7 +569,7 @@ void initHardware() {
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT #if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
turnOnTriggerInputPins(); initTriggerImplementation();
#endif /* EFI_SHAFT_POSITION_INPUT */ #endif /* EFI_SHAFT_POSITION_INPUT */
#if EFI_HIP_9011 #if EFI_HIP_9011