diff --git a/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h b/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h index 8488d507a8..ddc0b80d40 100644 --- a/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h +++ b/firmware/hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h @@ -89,7 +89,7 @@ /* * PLLs static settings. * Reading STM32 Reference Manual is required. - * + * * Configured to use HSI to generate 400mhz, but we will reconfigure to use HSE * with appropriate PLLx_DIVM values for the detected external frequency. * See osc_detector.cpp @@ -419,12 +419,25 @@ /* * SPI driver system settings. */ +#ifndef STM32_SPI_USE_SPI1 #define STM32_SPI_USE_SPI1 TRUE +#endif +#ifndef STM32_SPI_USE_SPI2 #define STM32_SPI_USE_SPI2 TRUE +#endif +#ifndef STM32_SPI_USE_SPI3 #define STM32_SPI_USE_SPI3 TRUE +#endif +#ifndef STM32_SPI_USE_SPI4 #define STM32_SPI_USE_SPI4 FALSE +#endif +#ifndef STM32_SPI_USE_SPI5 #define STM32_SPI_USE_SPI5 FALSE +#endif +#ifndef STM32_SPI_USE_SPI6 #define STM32_SPI_USE_SPI6 FALSE +#endif + #define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID_ANY #define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID_ANY #define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID_ANY