bench test 33810 module #5745

only:f407-discovery
This commit is contained in:
rusefi 2023-11-23 10:40:03 -05:00
parent cf4479f8d1
commit 8d332c2e08
2 changed files with 7 additions and 4 deletions

View File

@ -178,8 +178,11 @@ static const struct mc33810_config mc33810 = {
/* ignition pre-drivers */
[4] = {.port = GPIOA, .pad = 0},
[5] = {.port = GPIOA, .pad = 1},
[6] = {.port = nullptr, .pad = 0},
[7] = {.port = nullptr, .pad = 0},
//GPGD mode is not supported yet, ignition mode does not support spi on/off commands
// so ignition signals should be directly driven
[6] = {.port = GPIOD, .pad = 0},
// meaning even if we do not use it we need a pin for now
[7] = {.port = GPIOD, .pad = 1},
},
.en = {.port = GPIOA, .pad = 6}
};

View File

@ -92,8 +92,8 @@ void setDiscovery33810Test() {
engineConfiguration->ignitionPins[0] = Gpio::MC33810_0_GD_0;
engineConfiguration->ignitionPins[1] = Gpio::MC33810_0_GD_1;
engineConfiguration->ignitionPins[2] = Gpio::Unassigned;
engineConfiguration->ignitionPins[3] = Gpio::Unassigned;
engineConfiguration->ignitionPins[2] = Gpio::MC33810_0_GD_2;
engineConfiguration->ignitionPins[3] = Gpio::MC33810_0_GD_3;
engineConfiguration->cylindersCount = 2;
engineConfiguration->firingOrder = FO_1_2;