maybe this would just work?!...

This commit is contained in:
rusefi 2020-05-15 02:31:02 -04:00
parent 437e64ad38
commit 4e703ce8e8
1 changed files with 9 additions and 7 deletions

View File

@ -93,19 +93,21 @@ static void setupVbatt() {
}
static void setupTle8888() {
// Enable spi3
CONFIG(is_enabled_spi_3) = true;
// on microRusEFI SPI3 is exposed on PC10/PC11 and there is interest to use SD card there
// PB3/PB4 could be either SPI1 or SP3, let's use not SPI3 to address the contention
// Enable spi1
CONFIG(is_enabled_spi_1) = true;
// Wire up spi3
engineConfiguration->spi3mosiPin = GPIOB_5;
engineConfiguration->spi3misoPin = GPIOB_4;
engineConfiguration->spi3sckPin = GPIOB_3;
// Wire up spi1
engineConfiguration->spi1mosiPin = GPIOB_5;
engineConfiguration->spi1misoPin = GPIOB_4;
engineConfiguration->spi1sckPin = GPIOB_3;
// Chip select
engineConfiguration->tle8888_cs = GPIOD_5;
// SPI device
engineConfiguration->tle8888spiDevice = SPI_DEVICE_3;
engineConfiguration->tle8888spiDevice = SPI_DEVICE_1;
}
static void setupEtb() {