we need TLE8888 driver #714
This commit is contained in:
parent
a8442d5f32
commit
21283f5b8c
|
@ -306,4 +306,34 @@ void setEtbTestConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
set10K_4050K(&engineConfiguration->clt);
|
||||
|
||||
}
|
||||
|
||||
// TLE8888_BENCH_ENGINE
|
||||
// set engine_type 59
|
||||
void setTle8888TestConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
setMinimalPinsEngineConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
engineConfiguration->specs.cylindersCount = 8;
|
||||
engineConfiguration->specs.firingOrder = FO_1_8_7_2_6_5_4_3;
|
||||
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS;
|
||||
engineConfiguration->crankingInjectionMode = IM_SEQUENTIAL;
|
||||
|
||||
engineConfiguration->tle8888_cs = GPIOD_5;
|
||||
engineConfiguration->directSelfStimulation = true;
|
||||
|
||||
boardConfiguration->ignitionPins[0] = GPIOG_3;
|
||||
boardConfiguration->ignitionPins[1] = GPIOG_4;
|
||||
boardConfiguration->ignitionPins[2] = GPIOG_5;
|
||||
boardConfiguration->ignitionPins[3] = GPIOG_6;
|
||||
boardConfiguration->ignitionPins[4] = GPIOG_7;
|
||||
boardConfiguration->ignitionPins[5] = GPIOG_8;
|
||||
boardConfiguration->ignitionPins[6] = GPIOC_6;
|
||||
boardConfiguration->ignitionPins[7] = GPIOC_7;
|
||||
|
||||
engineConfiguration->tle8888spiDevice = SPI_DEVICE_1;
|
||||
|
||||
boardConfiguration->is_enabled_spi_1 = true;
|
||||
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ENGINES_CUSTOM_ENGINE_CPP_ */
|
||||
|
|
|
@ -16,5 +16,6 @@ void runSchedulingPrecisionTestIfNeeded(void);
|
|||
void setMinimalPinsEngineConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void setFrankensoBoardTestConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void setEtbTestConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
void setTle8888TestConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
#endif /* CONFIG_ENGINES_CUSTOM_ENGINE_H_ */
|
||||
|
|
|
@ -93,6 +93,8 @@ case MIATA_NA6_VAF:
|
|||
return "MIATA_NA6_VAF";
|
||||
case ETB_BENCH_ENGINE:
|
||||
return "ETB_BENCH_ENGINE";
|
||||
case TLE8888_BENCH_ENGINE:
|
||||
return "TLE8888_BENCH_ENGINE";
|
||||
case MINIMAL_PINS:
|
||||
return "MINIMAL_PINS";
|
||||
case MINI_COOPER_R50:
|
||||
|
|
|
@ -1197,6 +1197,9 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN
|
|||
case ETB_BENCH_ENGINE:
|
||||
setEtbTestConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case TLE8888_BENCH_ENGINE:
|
||||
setTle8888TestConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case MAZDA_MIATA_NA8:
|
||||
setMazdaMiataNA8Configuration(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Apr 01 11:40:04 EDT 2019
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Apr 04 20:47:55 EDT 2019
|
||||
// begin
|
||||
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
||||
#define ENGINE_CONFIGURATION_GENERATED_H_
|
||||
|
@ -62,6 +62,28 @@ typedef struct {
|
|||
/** total size 8*/
|
||||
} cranking_parameters_s;
|
||||
|
||||
// start of spi_pins
|
||||
typedef struct {
|
||||
/**
|
||||
* offset 0
|
||||
*/
|
||||
brain_pin_e mosiPin;
|
||||
/**
|
||||
* offset 1
|
||||
*/
|
||||
brain_pin_e misoPin;
|
||||
/**
|
||||
* offset 2
|
||||
*/
|
||||
brain_pin_e sckPin;
|
||||
/**
|
||||
* need 4 byte alignment
|
||||
* offset 3
|
||||
*/
|
||||
uint8_t alignmentFill;
|
||||
/** total size 4*/
|
||||
} spi_pins;
|
||||
|
||||
// start of air_pressure_sensor_config_s
|
||||
typedef struct {
|
||||
/**
|
||||
|
@ -2625,4 +2647,4 @@ typedef struct {
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Apr 01 11:40:04 EDT 2019
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Apr 04 20:47:55 EDT 2019
|
||||
|
|
|
@ -180,6 +180,8 @@ typedef enum {
|
|||
|
||||
ETB_BENCH_ENGINE = 58,
|
||||
|
||||
TLE8888_BENCH_ENGINE = 59,
|
||||
|
||||
/**
|
||||
* this configuration has as few pins configured as possible
|
||||
*/
|
||||
|
|
|
@ -184,6 +184,12 @@ custom pin_output_mode_e 1 bits, U08, @OFFSET@, [0:1], @@pin_output_mode_e_
|
|||
|
||||
custom pin_input_mode_e 1 scalar, U08, @OFFSET@, "todo", 1, 0, 0, 20, 1
|
||||
|
||||
struct spi_pins
|
||||
brain_pin_e mosiPin;
|
||||
brain_pin_e misoPin;
|
||||
brain_pin_e sckPin;
|
||||
end_struct
|
||||
|
||||
|
||||
custom air_pressure_sensor_type_e 4 bits, U32, @OFFSET@, [0:3] "Custom", "DENSO183", "MPX4250", "HONDA3BAR", "NEON_2003", "22012AA090", "3 Bar", "MPX4100", "Toyota 89420-02010", "MPX4250A", "INVALID"
|
||||
#define adc_channel_e_enum "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PB0", "PB1", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5", "Disabled", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
|
||||
|
@ -621,6 +627,7 @@ custom fsio_pwm_freq_t 2 scalar, U16, @OFFSET@, "Hz", 1, 0,
|
|||
custom fsio_setting_t 4 scalar, F32, @OFFSET@, "Val", 1, 0, 0, 18000, 4
|
||||
fsio_setting_t[FSIO_COMMAND_COUNT iterate] fsio_setting;
|
||||
|
||||
! todo: migrate to spi_pins & combine with spi pin modes
|
||||
brain_pin_e spi1mosiPin;
|
||||
brain_pin_e spi1misoPin;
|
||||
brain_pin_e spi1sckPin;
|
||||
|
|
Loading…
Reference in New Issue