trigger layer start-up is a mess #5241
refactoring: just renaming method
This commit is contained in:
parent
21ea057f70
commit
cffad07458
|
@ -157,7 +157,7 @@ void startTriggerInputPins() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void turnOnTriggerInputPins() {
|
void initTriggerImplementation() {
|
||||||
applyNewTriggerInputPins();
|
applyNewTriggerInputPins();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue