progress: bringing simulator closer to real code
only:hellen-honda-k
This commit is contained in:
parent
7464275b00
commit
f483535a39
|
@ -41,6 +41,7 @@
|
|||
#include "speed_density.h"
|
||||
#include "local_version_holder.h"
|
||||
#include "alternator_controller.h"
|
||||
#include "engine_emulator.h"
|
||||
#include "fuel_math.h"
|
||||
#include "spark_logic.h"
|
||||
#include "status_loop.h"
|
||||
|
@ -52,6 +53,7 @@
|
|||
#include "tachometer.h"
|
||||
#include "gppwm.h"
|
||||
#include "date_stamp.h"
|
||||
#include "rusefi_lua.h"
|
||||
#include "buttonshift.h"
|
||||
#include "start_stop.h"
|
||||
#include "dynoview.h"
|
||||
|
@ -623,6 +625,25 @@ void commonEarlyInit() {
|
|||
#if EFI_FILE_LOGGING
|
||||
initMmcCard();
|
||||
#endif /* EFI_FILE_LOGGING */
|
||||
|
||||
#if EFI_ENGINE_EMULATOR
|
||||
initEngineEmulator();
|
||||
#endif
|
||||
|
||||
#if EFI_LUA
|
||||
startLua();
|
||||
#endif // EFI_LUA
|
||||
|
||||
#if EFI_CAN_SERIAL
|
||||
// needs to be called after initCan() inside initHardware()
|
||||
startCanConsole();
|
||||
#endif /* EFI_CAN_SERIAL */
|
||||
|
||||
#if HW_CHECK_ALWAYS_STIMULATE
|
||||
// we need a special binary for final assembly check. We cannot afford to require too much software or too many steps
|
||||
// to be executed at the place of assembly
|
||||
enableTriggerStimulator();
|
||||
#endif // HW_CHECK_ALWAYS_STIMULATE
|
||||
}
|
||||
|
||||
void initEngineController() {
|
||||
|
|
|
@ -253,25 +253,6 @@ void runRusEfiWithConfig() {
|
|||
|
||||
commonEarlyInit();
|
||||
|
||||
#if EFI_ENGINE_EMULATOR
|
||||
initEngineEmulator();
|
||||
#endif
|
||||
|
||||
#if EFI_LUA
|
||||
startLua();
|
||||
#endif // EFI_LUA
|
||||
|
||||
#if EFI_CAN_SERIAL
|
||||
// needs to be called after initCan() inside initHardware()
|
||||
startCanConsole();
|
||||
#endif /* EFI_CAN_SERIAL */
|
||||
|
||||
#if HW_CHECK_ALWAYS_STIMULATE
|
||||
// we need a special binary for final assembly check. We cannot afford to require too much software or too many steps
|
||||
// to be executed at the place of assembly
|
||||
enableTriggerStimulator();
|
||||
#endif // HW_CHECK_ALWAYS_STIMULATE
|
||||
|
||||
|
||||
// Config could be completely bogus - don't start anything else!
|
||||
if (validateConfig()) {
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#define EFI_TCU FALSE
|
||||
|
||||
#define EFI_ENGINE_EMULATOR TRUE
|
||||
|
||||
/**
|
||||
* todo: we *plan* an (integration) test
|
||||
*/
|
||||
|
|
|
@ -108,13 +108,8 @@ void rusEfiFunctionalTest(void) {
|
|||
|
||||
commonInitEngineController();
|
||||
|
||||
initTriggerCentral();
|
||||
initTriggerEmulator();
|
||||
|
||||
commonEarlyInit();
|
||||
|
||||
startLua();
|
||||
|
||||
initStatusLoop();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue