diff options
Diffstat (limited to 'testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h')
-rw-r--r-- | testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h b/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h index 0d478ebf8..9617cff3f 100644 --- a/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h +++ b/testex/STM32/STM32F4xx/SPI-LIS3DSH/mcuconf.h @@ -44,7 +44,11 @@ #define STM32_CLOCK48_REQUIRED TRUE
#define STM32_SW STM32_SW_PLL
#define STM32_PLLSRC STM32_PLLSRC_HSE
+#if defined(BOARD_ST_STM32F4_DISCOVERY)
#define STM32_PLLM_VALUE 8
+#else
+#define STM32_PLLM_VALUE 12
+#endif
#define STM32_PLLN_VALUE 336
#define STM32_PLLP_VALUE 2
#define STM32_PLLQ_VALUE 7
@@ -264,8 +268,8 @@ * SPI driver system settings.
*/
#define STM32_SPI_USE_SPI1 TRUE
-#define STM32_SPI_USE_SPI2 TRUE
-#define STM32_SPI_USE_SPI3 TRUE
+#define STM32_SPI_USE_SPI2 FALSE
+#define STM32_SPI_USE_SPI3 FALSE
#define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 0)
#define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 3)
#define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
|