trigger layer start-up is a mess #5241
refactoring: just renaming method
This commit is contained in:
parent
408d4fecb9
commit
cb2d817da9
|
@ -157,7 +157,7 @@ void startTriggerInputPins() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void initTriggerImplementation() {
|
void onEcuStartTriggerImplementation() {
|
||||||
onEcuStartDoSomethingTriggerInputPins();
|
onEcuStartDoSomethingTriggerInputPins();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,7 @@
|
||||||
#include "trigger_structure.h"
|
#include "trigger_structure.h"
|
||||||
#include "trigger_central.h"
|
#include "trigger_central.h"
|
||||||
|
|
||||||
/**
|
void onEcuStartTriggerImplementation();
|
||||||
* 'init' meaning invoked only on ECU start-up
|
|
||||||
*/
|
|
||||||
void initTriggerImplementation();
|
|
||||||
|
|
||||||
void onEcuStartDoSomethingTriggerInputPins();
|
void onEcuStartDoSomethingTriggerInputPins();
|
||||||
void startTriggerInputPins();
|
void startTriggerInputPins();
|
||||||
|
|
|
@ -87,7 +87,7 @@ static COMPConfig comp_shaft_cfg = {
|
||||||
|
|
||||||
static bool isCompEnabled = false;
|
static bool isCompEnabled = false;
|
||||||
|
|
||||||
void initTriggerImplementation() {
|
void onEcuStartTriggerImplementation() {
|
||||||
compInit();
|
compInit();
|
||||||
compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg);
|
compStart(EFI_COMP_PRIMARY_DEVICE, &comp_shaft_cfg);
|
||||||
|
|
||||||
|
|
|
@ -569,7 +569,7 @@ void initHardware() {
|
||||||
|
|
||||||
|
|
||||||
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
|
#if EFI_PROD_CODE && EFI_SHAFT_POSITION_INPUT
|
||||||
initTriggerImplementation();
|
onEcuStartTriggerImplementation();
|
||||||
#endif /* EFI_SHAFT_POSITION_INPUT */
|
#endif /* EFI_SHAFT_POSITION_INPUT */
|
||||||
|
|
||||||
#if EFI_HIP_9011
|
#if EFI_HIP_9011
|
||||||
|
|
Loading…
Reference in New Issue