Skip to content

Commit 251b417

Browse files
committed
feat(gd32): 解耦SPI Flash与SFUD的依赖关系
1 parent b8803c3 commit 251b417

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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

bsp/gd32/arm/libraries/gd32_drivers/drv_spi_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* 2021-12-31 BruceOu first implementation
99
* 2023-06-03 CX fixed sf probe error bug
1010
* 2024-05-30 godmial refactor driver for multi-SPI bus auto-mount
11-
* 2024-12-XX godmial add configurable SPI Flash initialization
11+
* 2025-11-28 godmial add configurable SPI Flash initialization
1212
* Only initialize flash on SPI buses explicitly configured
1313
* via BSP_USING_SPIx_FLASH options to avoid conflicts
1414
* with other SPI devices (e.g., OLED, WIFI)

0 commit comments

Comments
 (0)