Skip to content

Commit 6cdc7cd

Browse files
committed
feat(gd32): 解耦SPI Flash与SFUD的依赖关系
- 移除BSP_USING_SPI_FLASH对RT_USING_SFUD的强制依赖 - SPI Flash初始化功能可独立运行,SFUD为可选组件
1 parent 0d8d34d commit 6cdc7cd

File tree

1 file changed

+2
-1
lines changed
  • bsp/gd32/arm/gd32470z-lckfb/board

1 file changed

+2
-1
lines changed

bsp/gd32/arm/gd32470z-lckfb/board/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,15 @@ menu "On-chip Peripheral Drivers"
258258
menuconfig BSP_USING_SPI_FLASH
259259
bool "Enable SPI Flash auto initialization"
260260
depends on RT_USING_SPI
261-
select RT_USING_SFUD
262261
default n
263262
help
264263
Enable automatic SPI Flash initialization on selected SPI buses.
265264
Note: Only enable this for SPI buses that are actually connected to SPI Flash.
266265
If a SPI bus is used for other devices (e.g., OLED, WIFI), do not enable flash initialization for it.
266+
Note: This feature can work with or without SFUD. If you want to use SFUD, enable it in SPI driver menu.
267267

268268
if BSP_USING_SPI_FLASH
269+
269270
config BSP_USING_SPI0_FLASH
270271
bool "Enable SPI Flash on SPI0"
271272
depends on BSP_USING_SPI0

0 commit comments

Comments
 (0)