From c6d883cf5bc80009014930a7ee7594a90b512c4c Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 27 Feb 2024 15:09:27 -0500 Subject: [PATCH] flexibility --- .../hw_layer/ports/stm32/stm32h7/cfg/mcuconf.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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