From 94d3ce8046f0d951bd873501a9ea9bc425c88602 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 1 Apr 2023 01:46:05 -0400 Subject: [PATCH] dead struct (cherry picked from commit ed821f9f5c58a36d7df5323fe3f7d5b5d9012c8a) --- firmware/integration/rusefi_config.txt | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index c8a3f771f5..a14825af35 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -360,14 +360,7 @@ custom pin_output_mode_e 1 bits, U08, @OFFSET@, [0:1], @@pin_output_mode_e_enum@ #define pin_input_mode_e_enum "DEFAULT", "PULLUP", "PULLDOWN" custom pin_input_mode_e 1 bits, U08, @OFFSET@, [0:1], @@pin_input_mode_e_enum@@ -struct spi_pins - Gpio mosiPin; - Gpio misoPin; - Gpio sckPin; -end_struct - - -#define gppwm_channel_e_enum "Zero", "TPS", "MAP", "CLT", "IAT", "Fuel Load", "Ignition Load", "Aux Temp 1", "Aux Temp 2", "Accel Pedal", "Battery Voltage", "VVT 1 I", "VVT 1 E", "VVT 2 I", "VVT 2 E", "Ethanol (Flex) %", "Aux Linear 1", "Aux Linear 2", "GPPWM Output 1", "GPPWM Output 2", "GPPWM Output 3", "GPPWM Output 4", "Lua Gauge 1", "Lua Gauge 2", "RPM" +#define gppwm_channel_e_enum "Zero", "TPS", "MAP", "CLT", "IAT", "Fuel Load", "Ignition Load", "Aux Temp 1", "Aux Temp 2", "Accel Pedal", "Battery Voltage", "VVT 1 I", "VVT 1 E", "VVT 2 I", "VVT 2 E", "Ethanol (Flex) %", "Aux Linear 1", "Aux Linear 2", "GPPWM Output 1", "GPPWM Output 2", "GPPWM Output 3", "GPPWM Output 4", "Lua Gauge 1", "Lua Gauge 2", "RPM", "Gear (detected)" custom gppwm_channel_e 1 bits, U08, @OFFSET@, [0:4], @@gppwm_channel_e_enum@@ struct gppwm_channel @@ -632,8 +625,8 @@ struct afr_sensor_s float value1;;"AFR", 1, 0, 0, 1000, 2 float v2;;"volts", 1, 0, 0, 10, 2 float value2;;"AFR", 1, 0, 0, 1000, 2 -end_struct - +end_struct + afr_sensor_s afr adc_channel_e throttlePedalPositionAdcChannel;Electronic throttle pedal position first channel\nSee throttlePedalPositionSecondAdcChannel for second channel\nSee also tps1_1AdcChannel\nset_analog_input_pin pps X\nSee throttlePedalUpVoltage and throttlePedalWOTVoltage @@ -716,7 +709,7 @@ switch_input_pin_e clutchDownPin;Some cars have a switch to indicate that clutch Gpio cj125CsPin;set_cj125_cs_pin XXX spi_device_e max31855spiDevice; Gpio debugTriggerSync; - + spi_device_e digitalPotentiometerSpiDevice;Digital Potentiometer is used by stock ECU stimulation code Gpio mc33972_cs; pin_output_mode_e mc33972_csPinMode; @@ -779,7 +772,7 @@ bit is_enabled_spi_2 bit isHip9011Enabled bit isVerboseAlternator bit verboseQuad - bit useStepperIdle;This setting should only be used if you have a stepper motor idle valve and a stepper motor driver installed. + bit useStepperIdle;This setting should only be used if you have a stepper motor idle valve and a stepper motor driver installed. bit enabledStep1Limiter bit useTpicAdvancedMode @@ -879,7 +872,6 @@ custom uart_device_e 1 bits, U08, @OFFSET@, [0:1], "Off", "UART1", "UART2", "UAR custom script_setting_t 4 scalar, F32, @OFFSET@, "", 1, 0, 0, 18000, 2 script_setting_t[SCRIPT_SETTING_COUNT iterate] scriptSetting; -! todo: migrate to spi_pins & combine with spi pin modes Gpio spi1mosiPin; Gpio spi1misoPin; Gpio spi1sckPin;