From cb2d817da986462c588ec27a59625492a30466d5 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 19 Apr 2023 17:19:20 -0400 Subject: [PATCH] trigger layer start-up is a mess #5241 refactoring: just renaming method --- firmware/hw_layer/digital_input/trigger/trigger_input.cpp | 2 +- firmware/hw_layer/digital_input/trigger/trigger_input.h | 5 +---- .../hw_layer/digital_input/trigger/trigger_input_comp.cpp | 2 +- firmware/hw_layer/hardware.cpp | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp index a24a9b6675..42b5d7e72d 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.cpp @@ -157,7 +157,7 @@ void startTriggerInputPins() { } } -void initTriggerImplementation() { +void onEcuStartTriggerImplementation() { onEcuStartDoSomethingTriggerInputPins(); } diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input.h b/firmware/hw_layer/digital_input/trigger/trigger_input.h index 68c9b04887..429ba002a6 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input.h +++ b/firmware/hw_layer/digital_input/trigger/trigger_input.h @@ -11,10 +11,7 @@ #include "trigger_structure.h" #include "trigger_central.h" -/** - * 'init' meaning invoked only on ECU start-up - */ -void initTriggerImplementation(); +void onEcuStartTriggerImplementation(); void onEcuStartDoSomethingTriggerInputPins(); void startTriggerInputPins(); diff --git a/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp b/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp index a7866eb274..c9fdfec0f5 100644 --- a/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp +++ b/firmware/hw_layer/digital_input/trigger/trigger_input_comp.cpp @@ -87,7 +87,7 @@ static COMPConfig comp_shaft_cfg = { static bool isCompEnabled = false; -void initTriggerImplementation() { +void onEcuStartTriggerImplementation() { compInit(); compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg); diff --git a/firmware/hw_layer/hardware.cpp b/firmware/hw_layer/hardware.cpp index e57147cff3..ac387357d1 100644 --- a/firmware/hw_layer/hardware.cpp +++ b/firmware/hw_layer/hardware.cpp @@ -569,7 +569,7 @@ void initHardware() { #if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT - initTriggerImplementation(); + onEcuStartTriggerImplementation(); #endif /* EFI_SHAFT_POSITION_INPUT */ #if EFI_HIP_9011