summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornongxiaoming <[email protected]>2020-08-12 16:02:51 +0800
committernongxiaoming <[email protected]>2020-08-12 16:02:51 +0800
commit1af61b3bc7db43da7e96cfb0f1605c55f7d9fbc3 (patch)
tree9b79445ead569b3457c445c97d63b19618e97d0f
parente548b77da07d7eb184de1464b1e259cd3b5a023f (diff)
[bsp] stm32f429-st-disco:modify to use RT_USING_SPI default.
-rw-r--r--bsp/stm32/stm32f429-st-disco/.config2
-rw-r--r--bsp/stm32/stm32f429-st-disco/board/Kconfig2
-rw-r--r--bsp/stm32/stm32f429-st-disco/rtconfig.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/bsp/stm32/stm32f429-st-disco/.config b/bsp/stm32/stm32f429-st-disco/.config
index 3bf793c118..d2e8ecd259 100644
--- a/bsp/stm32/stm32f429-st-disco/.config
+++ b/bsp/stm32/stm32f429-st-disco/.config
@@ -144,7 +144,7 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_PM is not set
# CONFIG_RT_USING_RTC is not set
# CONFIG_RT_USING_SDIO is not set
-# CONFIG_RT_USING_SPI is not set
+CONFIG_RT_USING_SPI=y
# CONFIG_RT_USING_WDT is not set
# CONFIG_RT_USING_AUDIO is not set
# CONFIG_RT_USING_SENSOR is not set
diff --git a/bsp/stm32/stm32f429-st-disco/board/Kconfig b/bsp/stm32/stm32f429-st-disco/board/Kconfig
index a8b5bf80d6..2461f52bd4 100644
--- a/bsp/stm32/stm32f429-st-disco/board/Kconfig
+++ b/bsp/stm32/stm32f429-st-disco/board/Kconfig
@@ -68,7 +68,7 @@ menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_SPI
bool "Enable SPI BUS"
select RT_USING_SPI
- default n
+ default y
if BSP_USING_SPI
config BSP_USING_SPI3
bool "Enable SPI3 BUS"
diff --git a/bsp/stm32/stm32f429-st-disco/rtconfig.h b/bsp/stm32/stm32f429-st-disco/rtconfig.h
index b4710ef924..9f5b2c77c4 100644
--- a/bsp/stm32/stm32f429-st-disco/rtconfig.h
+++ b/bsp/stm32/stm32f429-st-disco/rtconfig.h
@@ -92,7 +92,7 @@
#define RT_USING_I2C
#define RT_USING_I2C_BITOPS
#define RT_USING_PIN
-
+#define RT_USING_SPI
/* Using USB */