diff --git a/firmware/config/boards/hellen/cypress/config/controllers/algo/auto_generated_enums.cpp b/firmware/config/boards/hellen/cypress/config/controllers/algo/auto_generated_enums.cpp index a86311111d..0fffc6a8a5 100644 --- a/firmware/config/boards/hellen/cypress/config/controllers/algo/auto_generated_enums.cpp +++ b/firmware/config/boards/hellen/cypress/config/controllers/algo/auto_generated_enums.cpp @@ -1,7 +1,7 @@ #include "global.h" #include "rusefi_enums.h" #include "rusefi_hw_enums.h" -// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Mar 29 13:05:34 UTC 2021 +// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Thu Apr 08 22:14:44 EDT 2021 // see also gen_config_and_enums.bat @@ -1411,6 +1411,8 @@ case TT_JEEP_18_2_2_2: return "TT_JEEP_18_2_2_2"; case TT_JEEP_4_CYL: return "TT_JEEP_4_CYL"; +case TT_KAWA_KX450F: + return "TT_KAWA_KX450F"; case TT_MAZDA_DOHC_1_4: return "TT_MAZDA_DOHC_1_4"; case TT_MAZDA_MIATA_NA: diff --git a/firmware/config/boards/kinetis/config/controllers/algo/auto_generated_enums.cpp b/firmware/config/boards/kinetis/config/controllers/algo/auto_generated_enums.cpp index 789ebb2a2d..97cc0d5d94 100644 --- a/firmware/config/boards/kinetis/config/controllers/algo/auto_generated_enums.cpp +++ b/firmware/config/boards/kinetis/config/controllers/algo/auto_generated_enums.cpp @@ -1,7 +1,7 @@ #include "global.h" #include "rusefi_enums.h" #include "rusefi_hw_enums.h" -// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Mar 29 13:05:33 UTC 2021 +// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Thu Apr 08 22:14:43 EDT 2021 // see also gen_config_and_enums.bat @@ -1207,6 +1207,8 @@ case TT_JEEP_18_2_2_2: return "TT_JEEP_18_2_2_2"; case TT_JEEP_4_CYL: return "TT_JEEP_4_CYL"; +case TT_KAWA_KX450F: + return "TT_KAWA_KX450F"; case TT_MAZDA_DOHC_1_4: return "TT_MAZDA_DOHC_1_4"; case TT_MAZDA_MIATA_NA: diff --git a/firmware/config/boards/subaru_eg33/config/controllers/algo/auto_generated_enums.cpp b/firmware/config/boards/subaru_eg33/config/controllers/algo/auto_generated_enums.cpp index da6531c520..9e40a62836 100644 --- a/firmware/config/boards/subaru_eg33/config/controllers/algo/auto_generated_enums.cpp +++ b/firmware/config/boards/subaru_eg33/config/controllers/algo/auto_generated_enums.cpp @@ -1,7 +1,7 @@ #include "global.h" #include "rusefi_enums.h" #include "rusefi_hw_enums.h" -// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Mar 29 13:05:34 UTC 2021 +// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Thu Apr 08 22:14:44 EDT 2021 // see also gen_config_and_enums.bat @@ -1407,6 +1407,8 @@ case TT_JEEP_18_2_2_2: return "TT_JEEP_18_2_2_2"; case TT_JEEP_4_CYL: return "TT_JEEP_4_CYL"; +case TT_KAWA_KX450F: + return "TT_KAWA_KX450F"; case TT_MAZDA_DOHC_1_4: return "TT_MAZDA_DOHC_1_4"; case TT_MAZDA_MIATA_NA: diff --git a/firmware/controllers/algo/auto_generated_enums.cpp b/firmware/controllers/algo/auto_generated_enums.cpp index b9ed162441..bd555e57ef 100644 --- a/firmware/controllers/algo/auto_generated_enums.cpp +++ b/firmware/controllers/algo/auto_generated_enums.cpp @@ -1,7 +1,7 @@ #include "global.h" #include "rusefi_enums.h" #include "rusefi_hw_enums.h" -// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Mon Mar 29 13:05:33 UTC 2021 +// was generated automatically by rusEfi tool from rusefi_hw_enums.h // was generated automatically by rusEfi tool from rusefi_enums.h // by enum2string.jar tool on Thu Apr 08 22:14:43 EDT 2021 // see also gen_config_and_enums.bat @@ -1383,6 +1383,8 @@ case TT_JEEP_18_2_2_2: return "TT_JEEP_18_2_2_2"; case TT_JEEP_4_CYL: return "TT_JEEP_4_CYL"; +case TT_KAWA_KX450F: + return "TT_KAWA_KX450F"; case TT_MAZDA_DOHC_1_4: return "TT_MAZDA_DOHC_1_4"; case TT_MAZDA_MIATA_NA: diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 9e4f3c4ff0..ae547b5763 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -379,13 +379,15 @@ typedef enum { TT_VVT_BARRA_3_PLUS_1 = TT_TT_VVT_BARRA_3_PLUS_1, + TT_KAWA_KX450F = TT_TT_KAWA_KX450F, + // do not forget to edit "#define trigger_type_e_enum" line in integration/rusefi_config.txt file to propogate new value to rusefi.ini TS project // do not forget to invoke "gen_config.bat" once you make changes to integration/rusefi_config.txt // todo: one day a hero would integrate some of these things into Makefile in order to reduce manual magic // // Another point: once you add a new trigger, run get_trigger_images.bat which would run rusefi_test.exe from unit_tests // - TT_UNUSED = 57, // this is used if we want to iterate over all trigger types + TT_UNUSED = 58, // this is used if we want to iterate over all trigger types Force_4_bytes_size_trigger_type = ENUM_32_BITS, } trigger_type_e; diff --git a/firmware/controllers/trigger/decoders/trigger_structure.cpp b/firmware/controllers/trigger/decoders/trigger_structure.cpp index dca0b3d8f8..3938fab0ef 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.cpp +++ b/firmware/controllers/trigger/decoders/trigger_structure.cpp @@ -543,6 +543,7 @@ void TriggerWaveform::initializeTriggerWaveform(Logging *logger, operation_mode_ configureFordAspireTriggerWaveform(this); break; + case TT_KAWA_KX450F: case TT_SKODA_FAVORIT: setSkodaFavorit(this); break; diff --git a/firmware/controllers/trigger/decoders/trigger_universal.cpp b/firmware/controllers/trigger/decoders/trigger_universal.cpp index bbcf005d8a..e57271644c 100644 --- a/firmware/controllers/trigger/decoders/trigger_universal.cpp +++ b/firmware/controllers/trigger/decoders/trigger_universal.cpp @@ -101,6 +101,10 @@ void configure3_1_cam(TriggerWaveform *s) { s->isSynchronizationNeeded = false; } +void configureKawaKX450F(TriggerWaveform *s) { + +} + void configureQuickStartSenderWheel(TriggerWaveform *s) { s->initialize(FOUR_STROKE_CAM_SENSOR); diff --git a/firmware/controllers/trigger/decoders/trigger_universal.h b/firmware/controllers/trigger/decoders/trigger_universal.h index cac776e805..ed276d38bd 100644 --- a/firmware/controllers/trigger/decoders/trigger_universal.h +++ b/firmware/controllers/trigger/decoders/trigger_universal.h @@ -26,3 +26,6 @@ void configure3_1_cam(TriggerWaveform *s); void configureOnePlusOne(TriggerWaveform *s); // TT_VVT_BOSCH_QUICK_START void configureQuickStartSenderWheel(TriggerWaveform *s); + +// TT_KAWA_KX450F +void configureKawaKX450F(TriggerWaveform *s);