diff --git a/firmware/controllers/algo/auto_generated_commonenum.cpp b/firmware/controllers/algo/auto_generated_commonenum.cpp index e5a08597c2..4b038b0717 100644 --- a/firmware/controllers/algo/auto_generated_commonenum.cpp +++ b/firmware/controllers/algo/auto_generated_commonenum.cpp @@ -1,6 +1,6 @@ #include "global.h" #include "rusefi_enums.h" -// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Sat Oct 02 11:25:28 EDT 2021 +// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Mon Oct 04 11:08:38 EDT 2021 // see also gen_config_and_enums.bat @@ -1043,6 +1043,8 @@ case TT_SUBARU_SVX_CAM_VVT: return "TT_SUBARU_SVX_CAM_VVT"; case TT_SUBARU_SVX_CRANK_1: return "TT_SUBARU_SVX_CRANK_1"; +case TT_SUZUKI_G13B: + return "TT_SUZUKI_G13B"; case TT_TEMP_62: return "TT_TEMP_62"; case TT_TOOTHED_WHEEL: diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 3d00bc8a38..9101a6ff00 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -442,13 +442,15 @@ typedef enum { TT_FORD_TFI_PIP = TT_TT_FORD_TFI_PIP, + TT_SUZUKI_G13B = TT_TT_SUZUKI_G13B, + // 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 = 66, // this is used if we want to iterate over all trigger types + TT_UNUSED = 67, // this is used if we want to iterate over all trigger types // todo: convert to ENUM_16_BITS? I can see 257 triggers but not 65K triggers Force_4_bytes_size_trigger_type = ENUM_32_BITS, diff --git a/firmware/controllers/trigger/decoders/trigger_structure.cpp b/firmware/controllers/trigger/decoders/trigger_structure.cpp index 1b8eeaa420..9b52a33e74 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.cpp +++ b/firmware/controllers/trigger/decoders/trigger_structure.cpp @@ -508,6 +508,7 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat initializeMazdaMiataVVtTestShape(this); break; + case TT_SUZUKI_G13B: case TT_FORD_TFI_PIP: configureFordPip(this); break; diff --git a/firmware/controllers/trigger/decoders/trigger_suzuki.cpp b/firmware/controllers/trigger/decoders/trigger_suzuki.cpp new file mode 100644 index 0000000000..3ce62079b0 --- /dev/null +++ b/firmware/controllers/trigger/decoders/trigger_suzuki.cpp @@ -0,0 +1,15 @@ +/* + * trigger_suzuki.cpp + * + * @date Oct 4, 2021 + * @author Andrey Belomutskiy, (c) 2012-2021 + */ + +#include "trigger_subaru.h" + +void initializeSuzukiG13B(TriggerWaveform *s) { + +} + + + diff --git a/firmware/controllers/trigger/decoders/trigger_suzuki.h b/firmware/controllers/trigger/decoders/trigger_suzuki.h new file mode 100644 index 0000000000..32e2971658 --- /dev/null +++ b/firmware/controllers/trigger/decoders/trigger_suzuki.h @@ -0,0 +1,12 @@ +/* + * trigger_suzuki.h + * + * @date Oct 4, 2021 + * @author Andrey Belomutskiy, (c) 2012-2021 + */ + +#pragma once + +#include "trigger_structure.h" + +void initializeSuzukiG13B(TriggerWaveform *s); diff --git a/firmware/controllers/trigger/trigger.mk b/firmware/controllers/trigger/trigger.mk index 27493234fc..df94229639 100644 --- a/firmware/controllers/trigger/trigger.mk +++ b/firmware/controllers/trigger/trigger.mk @@ -9,6 +9,7 @@ TRIGGER_DECODERS_SRC_CPP = \ $(CONTROLLERS_DIR)/trigger/decoders/trigger_mitsubishi.cpp \ $(CONTROLLERS_DIR)/trigger/decoders/trigger_nissan.cpp \ $(CONTROLLERS_DIR)/trigger/decoders/trigger_subaru.cpp \ + $(CONTROLLERS_DIR)/trigger/decoders/trigger_suzuki.cpp \ $(CONTROLLERS_DIR)/trigger/decoders/trigger_toyota.cpp \ $(CONTROLLERS_DIR)/trigger/decoders/trigger_gm.cpp \ $(CONTROLLERS_DIR)/trigger/decoders/trigger_honda.cpp \