mirror of https://github.com/rusefi/rusefi.git
Rename LIS302DLCsPin to accelerometerCsPin
This commit is contained in:
parent
95b4c9da00
commit
c7fe53e107
|
@ -76,7 +76,7 @@ static void setHip9011FrankensoPinout() {
|
|||
|
||||
#if EFI_MEMS
|
||||
static void configureAccelerometerPins() {
|
||||
// engineConfiguration->LIS302DLCsPin = Gpio::E3; // we have a conflict with VVT output on Miata
|
||||
// engineConfiguration->accelerometerCsPin = Gpio::E3; // we have a conflict with VVT output on Miata
|
||||
// engineConfiguration->is_enabled_spi_1 = true; // we have a conflict with PA5 input pin
|
||||
|
||||
// stm32f4discovery defaults
|
||||
|
|
|
@ -64,7 +64,7 @@ private:
|
|||
static BenchController instance;
|
||||
|
||||
void initAccelerometer() {
|
||||
if (!isBrainPinValid(engineConfiguration->LIS302DLCsPin))
|
||||
if (!isBrainPinValid(engineConfiguration->accelerometerCsPin))
|
||||
return; // not used
|
||||
|
||||
#if HAL_USE_SPI
|
||||
|
@ -77,9 +77,9 @@ void initAccelerometer() {
|
|||
// todo: we have centralized SPI management see other usages of 'turnOnSpi'
|
||||
//turnOnSpi(engineConfiguration->accelerometerSpiDevice);
|
||||
spiStart(driver, &accelerometerCfg);
|
||||
initSpiCs((SPIConfig *)driver->config, engineConfiguration->LIS302DLCsPin);
|
||||
initSpiCs((SPIConfig *)driver->config, engineConfiguration->accelerometerCsPin);
|
||||
|
||||
// memsCs.initPin("LIS302 CS", engineConfiguration->LIS302DLCsPin);
|
||||
// memsCs.initPin("LIS302 CS", engineConfiguration->accelerometerCsPin);
|
||||
// memsCfg.ssport = getHwPort("mmc", engineConfiguration->sdCardCsPin);
|
||||
// memsCfg.sspad = getHwPin("mmc", engineConfiguration->sdCardCsPin);
|
||||
|
||||
|
|
|
@ -1145,7 +1145,7 @@ int16_t tps2Max;Full throttle#2. tpsMax value as 10 bit ADC value. Not Voltage!\
|
|||
|
||||
Gpio auxSerialTxPin;Auxiliary sensor serial, not to be confused with secondary calibration serial;
|
||||
Gpio auxSerialRxPin;Auxiliary sensor serial, not to be confused with secondary calibration serial;
|
||||
Gpio LIS302DLCsPin;
|
||||
Gpio accelerometerCsPin;
|
||||
|
||||
|
||||
uint8_t autoscale tpsAccelLookback;How long to look back for TPS-based acceleration enrichment. Increasing this time will trigger enrichment for longer when a throttle position change occurs.;"sec", 0.05, 0, 0, 5, 2
|
||||
|
@ -1255,7 +1255,7 @@ custom pwm_freq_t 2 scalar, U16, @OFFSET@, "Hz", 1, 0, 0, 3000, 0
|
|||
custom tle8888_mode_e 1 bits, U08, @OFFSET@, [0:1], "Auto", "SemiAuto", "Manual", "Hall"
|
||||
tle8888_mode_e tle8888mode;
|
||||
|
||||
pin_output_mode_e LIS302DLCsPinMode;
|
||||
pin_output_mode_e accelerometerCsPinMode;
|
||||
|
||||
custom injector_compensation_mode_e 1 bits, U08, @OFFSET@, [0:1], "None", "Fixed rail pressure", "Sensed Rail Pressure"
|
||||
injector_compensation_mode_e injectorCompensationMode;None = I have a MAP-referenced fuel pressure regulator\nFixed rail pressure = I have an atmosphere-referenced fuel pressure regulator (returnless, typically)\nSensed rail pressure = I have a fuel pressure sensor;
|
||||
|
|
|
@ -3088,7 +3088,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
|
|||
field = "SPI3 MISO", spi3misoPin, {is_enabled_spi_3 == 1} @@if_ts_show_spi
|
||||
field = "SPI3 SCK", spi3sckPin, {is_enabled_spi_3 == 1} @@if_ts_show_spi
|
||||
field = "hip9011CsPin", hip9011CsPin
|
||||
field = "LIS302DLCsPin", LIS302DLCsPin
|
||||
field = "Accelerometer CS pin", accelerometerCsPin
|
||||
field = "Saab CDM knock", cdmInputPin
|
||||
field = "DRV8860 CS", drv8860_cs
|
||||
field = "DRV8860 CS Mode", drv8860_csPinMode
|
||||
|
@ -3684,9 +3684,11 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
|
|||
field = "SPI3miso mode", spi3MisoMode, {is_enabled_spi_3 == 1}
|
||||
field = "SPI3 SCK", spi3sckPin, {is_enabled_spi_3 == 1}
|
||||
field = "SPI3sck mode", spi3SckMode, {is_enabled_spi_3 == 1}
|
||||
field = "LIS302DLCsPin", LIS302DLCsPin
|
||||
|
||||
field = "SPI4 enable", is_enabled_spi_4
|
||||
|
||||
field = "Accelerometer CS pin", accelerometerCsPin
|
||||
|
||||
dialog = stftPartitioning, "Region Configuration"
|
||||
field = "Idle region RPM", stft_maxIdleRegionRpm
|
||||
field = "Overrun region load", stft_maxOverrunLoad
|
||||
|
|
Loading…
Reference in New Issue