diff --git a/firmware/hw_layer/drivers/drivers.mk b/firmware/hw_layer/drivers/drivers.mk index a9d863b795..a165911ac2 100644 --- a/firmware/hw_layer/drivers/drivers.mk +++ b/firmware/hw_layer/drivers/drivers.mk @@ -25,4 +25,5 @@ HW_LAYER_DRIVERS_CPP = \ $(DRIVERS_DIR)/gpio/mc33972.cpp \ $(DRIVERS_DIR)/gpio/mc33810.cpp \ $(DRIVERS_DIR)/gpio/drv8860.cpp \ + $(DRIVERS_DIR)/gpio/l9779.cpp \ $(DRIVERS_DIR)/lcd/HD44780.cpp \ diff --git a/firmware/hw_layer/drivers/gpio/l9779.cpp b/firmware/hw_layer/drivers/gpio/l9779.cpp new file mode 100644 index 0000000000..29a6eddc65 --- /dev/null +++ b/firmware/hw_layer/drivers/gpio/l9779.cpp @@ -0,0 +1,9 @@ +/* + * l9779.cpp + * + * Created on: Jan 10, 2022 + */ + + + + diff --git a/firmware/hw_layer/drivers/gpio/l9779.h b/firmware/hw_layer/drivers/gpio/l9779.h new file mode 100644 index 0000000000..5d16e6590e --- /dev/null +++ b/firmware/hw_layer/drivers/gpio/l9779.h @@ -0,0 +1,9 @@ +/* + * l9779.h + * ST L9779WD-SPI + * + * + * Created on: Jan 10, 2022 + */ + +#pragma once diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 30a4aaa625..d350dd78c1 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -654,7 +654,7 @@ uint8_t knockRetardMaximum;+Maximum amount of knock retard.;"deg", 1, 0, 0, 30, uint8_t unusedDtectionThreshold;;"", 1, 0, 0, 240, 0 uint16_t autoscale vssGearRatio;Number of turns of your vehicle speed sensor per turn of the wheels. For example if your sensor is on the transmission output, enter your axle/differential ratio. If you are using a hub-mounted sensor, enter a value of 1.0.; "ratio", 0.001, 0, 0, 60, 3 uint8_t vssToothCount;Number of pulses output per revolution of the shaft where your VSS is mounted. For example, GM applications of the T56 output 17 pulses per revolution of the transmission output shaft.;"count", 1, 0, 1, 100, 0 - uint8_t unusedAveragingLength;;"", 1, 0, 0, 255, 0 + brain_pin_e l9779_cs; ! todo: rename to triggerSimulatorRpm @@ -793,7 +793,7 @@ output_pin_e acFanPin;+Optional Radiator Fan used with A/C pin_output_mode_e acFanPinMode; - uint8_t unusedCamSkipFactor;;"", 1, 0, 0, 255, 0 + spi_device_e l9779spiDevice; uint8_t[DWELL_CURVE_SIZE] dwellVoltageCorrVoltBins;;"volts", 0.1, 0, 0, 20, 1 custom imu_type_e 1 bits, U08, @OFFSET@, [0:4], "None", "VAG", "MM5.10", "type 2", "type 2"