File tree Expand file tree Collapse file tree 4 files changed +211
-42
lines changed
Expand file tree Collapse file tree 4 files changed +211
-42
lines changed Original file line number Diff line number Diff line change @@ -258,19 +258,28 @@ menu "On-chip Peripheral Drivers"
258258 default n
259259 select RT_USING_SPI
260260 if BSP_USING_SPI
261+ config BSP_USING_SPI0
262+ bool "Enable SPI0 BUS"
263+ default n
264+
261265 config BSP_USING_SPI1
262266 bool "Enable SPI1 BUS"
263267 default n
264268
265- config BSP_SPI1_TX_USING_DMA
266- bool "Enable SPI1 TX DMA"
267- depends on BSP_USING_SPI1
269+ config BSP_USING_SPI2
270+ bool "Enable SPI2 BUS"
271+ default n
272+
273+ config BSP_USING_SPI3
274+ bool "Enable SPI3 BUS"
275+ default n
276+
277+ config BSP_USING_SPI4
278+ bool "Enable SPI4 BUS"
268279 default n
269280
270- config BSP_SPI1_RX_USING_DMA
271- bool "Enable SPI1 RX DMA"
272- depends on BSP_USING_SPI1
273- select BSP_SPI1_TX_USING_DMA
281+ config BSP_USING_SPI5
282+ bool "Enable SPI5 BUS"
274283 default n
275284 endif
276285
Original file line number Diff line number Diff line change @@ -99,6 +99,31 @@ menu "On-chip Peripheral Drivers"
9999 endif
100100 endif
101101
102+ menuconfig BSP_USING_SPI
103+ bool "Enable SPI BUS"
104+ default n
105+ select RT_USING_SPI
106+ if BSP_USING_SPI
107+ config BSP_USING_SPI0
108+ bool "Enable SPI0 BUS"
109+ default n
110+ config BSP_USING_SPI1
111+ bool "Enable SPI1 BUS"
112+ default n
113+ config BSP_USING_SPI2
114+ bool "Enable SPI2 BUS"
115+ default n
116+ config BSP_USING_SPI3
117+ bool "Enable SPI3 BUS"
118+ default n
119+ config BSP_USING_SPI4
120+ bool "Enable SPI4 BUS"
121+ default n
122+ config BSP_USING_SPI5
123+ bool "Enable SPI5 BUS"
124+ default n
125+ endif
126+
102127 source "$(BSP_DIR)/../libraries/gd32_drivers/Kconfig"
103128endmenu
104129
You can’t perform that action at this time.
0 commit comments