diff --git a/firmware/config/boards/microrusefi/board_configuration.cpp b/firmware/config/boards/microrusefi/board_configuration.cpp index b89edcc6bd..3e6f6879ef 100644 --- a/firmware/config/boards/microrusefi/board_configuration.cpp +++ b/firmware/config/boards/microrusefi/board_configuration.cpp @@ -199,6 +199,13 @@ void setBoardConfigurationOverrides(void) { // GPIOE_8: "35 - GP Out 1" engineConfiguration->fuelPumpPin = GPIOE_8; + engineConfiguration->sdCardSpiDevice = SPI_DEVICE_3; + engineConfiguration->spi3mosiPin = GPIOC_12; + engineConfiguration->spi3misoPin = GPIOC_11; + engineConfiguration->spi3sckPin = GPIOC_10; + engineConfiguration->sdCardCsPin = GPIOB_9; +// engineConfiguration->isSdCardEnabled = true; + // TLE8888 high current low side: VVT2 IN9 / OUT5 // GPIOE_10: "3 - Lowside 2" diff --git a/firmware/config/boards/microrusefi/prepend.txt b/firmware/config/boards/microrusefi/prepend.txt index f11e020f1a..73e90b6153 100644 --- a/firmware/config/boards/microrusefi/prepend.txt +++ b/firmware/config/boards/microrusefi/prepend.txt @@ -7,7 +7,7 @@ #define ts_show_gps false #define ts_show_etb_pins false #define ts_show_analog_divider false -#define ts_show_spi false -#define ts_show_sd_card false +#define ts_show_spi true +#define ts_show_sd_card true #define ts_show_can_pins false #define ts_show_tunerstudio_port false diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 69b48ea11c..d1e5ecd7b3 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -609,6 +609,11 @@ typedef enum __attribute__ ((__packed__)) { _150KHz } spi_speed_e; + +/** + * See spi3mosiPin + * See spi2MisoMode + */ typedef enum __attribute__ ((__packed__)) { SPI_NONE = 0, SPI_DEVICE_1 = 1,