random simulation todo

only:mre_f4
This commit is contained in:
Andrey 2023-03-02 23:33:47 -05:00
parent 30a96f0b03
commit 6fc48222c8
2 changed files with 10 additions and 7 deletions

View File

@ -434,19 +434,21 @@ typedef enum {
Force_4_bytes_size_trigger_type = 70000,
} trigger_type_e; // TriggerProcessor.java has this "trigger_type_e" name hard-coded!
typedef enum {
TS_GRAB_TPS_CLOSED = 2,
TS_GRAB_TPS_WOT = 3,
TS_GRAB_PEDAL_UP = 6,
TS_GRAB_PEDAL_WOT = 7,
TS_RESET_TLE8888 = 8,
TS_WRITE_FLASH = 10,
} ts_14_command;
typedef enum {
TS_DEBUG_MODE = 0,
TS_COMMAND_1 = 1,
TS_GRAB_TPS_CLOSED = 2,
TS_GRAB_TPS_WOT = 3,
TS_COMMAND_4 = 4,
TS_COMMAND_5 = 5,
TS_GRAB_PEDAL_UP = 6,
TS_GRAB_PEDAL_WOT = 7,
TS_RESET_TLE8888 = 8,
TS_COMMAND_9 = 9,
TS_WRITE_FLASH = 10,
TS_COMMAND_11 = 11,
TS_COMMAND_12 = 12,
TS_COMMAND_13 = 13,

View File

@ -339,6 +339,7 @@ static void handleBenchCategory(uint16_t index) {
}
static void handleCommandX14(uint16_t index) {
// todo: define ts_14_command magic constants and use those in rusefi.input file!
switch (index) {
case TS_GRAB_TPS_CLOSED:
grabTPSIsClosed();
@ -359,7 +360,7 @@ static void handleCommandX14(uint16_t index) {
tle8888_req_init();
#endif
return;
case 0xA:
case TS_WRITE_FLASH:
// cmd_write_config
#if EFI_INTERNAL_FLASH
writeToFlashNow();