parent
b2bc064fb6
commit
9cf426e3db
|
@ -27,6 +27,7 @@
|
|||
#include "trigger_central.h"
|
||||
#include "script_impl.h"
|
||||
#include "idle_thread.h"
|
||||
#include "hardware.h"
|
||||
#include "advance_map.h"
|
||||
#include "main_trigger_callback.h"
|
||||
#include "flash_main.h"
|
||||
|
@ -41,6 +42,7 @@
|
|||
#include "alternator_controller.h"
|
||||
#include "fuel_math.h"
|
||||
#include "spark_logic.h"
|
||||
#include "status_loop.h"
|
||||
#include "aux_valves.h"
|
||||
#include "accelerometer.h"
|
||||
#include "vvt.h"
|
||||
|
@ -608,6 +610,16 @@ bool validateConfig() {
|
|||
|
||||
#if !EFI_UNIT_TEST
|
||||
|
||||
void commonEarlyInit() {
|
||||
// Start this early - it will start LED blinking and such
|
||||
startStatusThreads();
|
||||
|
||||
/**
|
||||
* Initialize hardware drivers
|
||||
*/
|
||||
initHardware();
|
||||
}
|
||||
|
||||
void initEngineController() {
|
||||
addConsoleAction("sensorinfo", printSensorInfo);
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ bool validateConfig();
|
|||
char * getPinNameByAdcChannel(const char *msg, adc_channel_e hwChannel, char *buffer);
|
||||
void initPeriodicEvents();
|
||||
void initEngineController();
|
||||
void commonEarlyInit();
|
||||
void commonInitEngineController();
|
||||
void initStartStopButton();
|
||||
|
||||
|
|
|
@ -560,7 +560,7 @@ void initHardware() {
|
|||
initMax31855(engineConfiguration->max31855spiDevice, engineConfiguration->max31855_cs);
|
||||
#endif /* EFI_MAX_31855 */
|
||||
|
||||
#if EFI_CAN_SUPPORT
|
||||
#if EFI_CAN_SUPPORT && EFI_PROD_CODE
|
||||
initCan();
|
||||
#endif /* EFI_CAN_SUPPORT */
|
||||
|
||||
|
|
|
@ -251,13 +251,8 @@ void runRusEfiWithConfig() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Start this early - it will start LED blinking and such
|
||||
startStatusThreads();
|
||||
commonEarlyInit();
|
||||
|
||||
/**
|
||||
* Initialize hardware drivers
|
||||
*/
|
||||
initHardware();
|
||||
|
||||
#if EFI_FILE_LOGGING
|
||||
initMmcCard();
|
||||
|
|
|
@ -113,7 +113,7 @@ void rusEfiFunctionalTest(void) {
|
|||
initTriggerCentral();
|
||||
initTriggerEmulator();
|
||||
|
||||
startStatusThreads();
|
||||
commonEarlyInit();
|
||||
|
||||
startLoggingProcessor();
|
||||
|
||||
|
|
Loading…
Reference in New Issue