parent
51c5c07432
commit
82bcc9b42c
|
@ -617,6 +617,11 @@ void commonEarlyInit() {
|
||||||
// Start this early - it will start LED blinking and such
|
// Start this early - it will start LED blinking and such
|
||||||
startStatusThreads();
|
startStatusThreads();
|
||||||
|
|
||||||
|
#if EFI_SHAFT_POSITION_INPUT
|
||||||
|
// todo: figure out better startup logic
|
||||||
|
initTriggerCentral();
|
||||||
|
#endif /* EFI_SHAFT_POSITION_INPUT */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize hardware drivers
|
* Initialize hardware drivers
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -429,11 +429,6 @@ void initHardwareNoConfig() {
|
||||||
initFlash();
|
initFlash();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if EFI_SHAFT_POSITION_INPUT
|
|
||||||
// todo: figure out better startup logic
|
|
||||||
initTriggerCentral();
|
|
||||||
#endif /* EFI_SHAFT_POSITION_INPUT */
|
|
||||||
|
|
||||||
#if EFI_FILE_LOGGING
|
#if EFI_FILE_LOGGING
|
||||||
initEarlyMmcCard();
|
initEarlyMmcCard();
|
||||||
#endif // EFI_FILE_LOGGING
|
#endif // EFI_FILE_LOGGING
|
||||||
|
@ -540,7 +535,7 @@ void initHardware() {
|
||||||
initSpiModules(engineConfiguration);
|
initSpiModules(engineConfiguration);
|
||||||
#endif /* HAL_USE_SPI */
|
#endif /* HAL_USE_SPI */
|
||||||
|
|
||||||
#if (EFI_PROD_CODE || EFI_SIMULATOR) && (BOARD_EXT_GPIOCHIPS > 0)
|
#if (EFI_PROD_CODE && BOARD_EXT_GPIOCHIPS > 0) || EFI_SIMULATOR
|
||||||
// initSmartGpio depends on 'initSpiModules'
|
// initSmartGpio depends on 'initSpiModules'
|
||||||
initSmartGpio();
|
initSmartGpio();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -106,9 +106,7 @@ void rusEfiFunctionalTest(void) {
|
||||||
|
|
||||||
commonInitEngineController();
|
commonInitEngineController();
|
||||||
|
|
||||||
initTriggerCentral();
|
commonEarlyInit();
|
||||||
|
|
||||||
commonEarlyInit();
|
|
||||||
|
|
||||||
enableTriggerStimulator();
|
enableTriggerStimulator();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue