2019-04-09 18:20:40 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config SOC_STM32F103ZE
|
2019-04-09 18:20:40 +08:00
|
|
|
bool
|
|
|
|
select SOC_SERIES_STM32F1
|
2019-09-11 12:06:43 +08:00
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
2019-04-09 18:20:40 +08:00
|
|
|
default y
|
|
|
|
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
|
2019-08-23 11:39:07 +08:00
|
|
|
config BSP_USING_SDIO_SDCARD
|
2019-04-26 23:08:27 +08:00
|
|
|
bool "Enable SDCARD (sdio)"
|
|
|
|
select BSP_USING_SDIO
|
|
|
|
select RT_USING_DFS
|
|
|
|
select RT_USING_DFS_ELMFAT
|
|
|
|
select RT_USING_PIN
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-08-23 11:39:07 +08:00
|
|
|
config BSP_USING_SPI_SDCARD
|
|
|
|
bool "Enable SDCARD (spi2)"
|
|
|
|
select BSP_USING_SPI
|
|
|
|
select BSP_USING_SPI2
|
|
|
|
select RT_USING_SPI_MSD
|
|
|
|
select RT_USING_DFS
|
|
|
|
select RT_USING_DFS_ELMFAT
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_USING_SPI_FLASH
|
|
|
|
bool "Enable SPI FLASH (W25Q64 spi2)"
|
|
|
|
select BSP_USING_SPI
|
|
|
|
select BSP_USING_SPI2
|
|
|
|
select RT_USING_SFUD
|
|
|
|
select RT_SFUD_USING_SFDP
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_USING_EEPROM
|
|
|
|
bool "Enable I2C EEPROM (i2c2)"
|
|
|
|
select BSP_USING_I2C2
|
|
|
|
default n
|
2019-04-09 18:20:40 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
|
|
|
|
config BSP_USING_GPIO
|
|
|
|
bool "Enable GPIO"
|
|
|
|
select RT_USING_PIN
|
|
|
|
default y
|
|
|
|
|
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Enable UART"
|
|
|
|
default y
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
if BSP_USING_UART
|
|
|
|
config BSP_USING_UART1
|
|
|
|
bool "Enable UART1"
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
menuconfig BSP_USING_SPI
|
|
|
|
bool "Enable SPI BUS"
|
|
|
|
default n
|
|
|
|
select RT_USING_SPI
|
|
|
|
if BSP_USING_SPI
|
|
|
|
config BSP_USING_SPI1
|
|
|
|
bool "Enable SPI1 BUS"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_SPI1_TX_USING_DMA
|
|
|
|
bool "Enable SPI1 TX DMA"
|
|
|
|
depends on BSP_USING_SPI1
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_SPI1_RX_USING_DMA
|
|
|
|
bool "Enable SPI1 RX DMA"
|
|
|
|
depends on BSP_USING_SPI1
|
|
|
|
select BSP_SPI1_TX_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_SPI2
|
|
|
|
bool "Enable SPI2 BUS"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_SPI2_TX_USING_DMA
|
|
|
|
bool "Enable SPI2 TX DMA"
|
|
|
|
depends on BSP_USING_SPI2
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_SPI2_RX_USING_DMA
|
|
|
|
bool "Enable SPI2 RX DMA"
|
|
|
|
depends on BSP_USING_SPI2
|
|
|
|
select BSP_SPI2_TX_USING_DMA
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_USING_SPI3
|
|
|
|
bool "Enable SPI3 BUS"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
2019-04-29 16:00:15 +08:00
|
|
|
|
|
|
|
config BSP_SPI3_TX_USING_DMA
|
|
|
|
bool "Enable SPI3 TX DMA"
|
|
|
|
depends on BSP_USING_SPI3
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_SPI3_RX_USING_DMA
|
|
|
|
bool "Enable SPI3 RX DMA"
|
|
|
|
depends on BSP_USING_SPI3
|
|
|
|
select BSP_SPI3_TX_USING_DMA
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
2019-04-29 16:00:15 +08:00
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
menuconfig BSP_USING_I2C2
|
|
|
|
bool "Enable I2C2 BUS (software simulation)"
|
|
|
|
default n
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
select RT_USING_PIN
|
|
|
|
if BSP_USING_I2C2
|
2023-01-09 10:14:23 +08:00
|
|
|
comment "Notice: PB10 --> 26; PB11 --> 27"
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_I2C2_SCL_PIN
|
|
|
|
int "i2c2 scl pin number"
|
|
|
|
range 0 175
|
|
|
|
default 26
|
|
|
|
config BSP_I2C2_SDA_PIN
|
|
|
|
int "i2c2 sda pin number"
|
|
|
|
range 0 175
|
|
|
|
default 27
|
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-29 16:00:15 +08:00
|
|
|
config BSP_USING_ON_CHIP_FLASH
|
|
|
|
bool "Enable on-chip FLASH"
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-26 23:08:27 +08:00
|
|
|
config BSP_USING_SDIO
|
|
|
|
bool "Enable SDIO"
|
|
|
|
select RT_USING_SDIO
|
|
|
|
select RT_USING_DFS
|
|
|
|
default n
|
2019-07-18 11:01:19 +08:00
|
|
|
source "../libraries/HAL_Drivers/Kconfig"
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-09 18:20:40 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
|
2019-06-29 18:22:13 +08:00
|
|
|
config BSP_USING_NRF24L01
|
|
|
|
bool "Enable NRF24L01"
|
|
|
|
select BSP_USING_SPI
|
|
|
|
select BSP_USING_SPI2
|
|
|
|
select PKG_USING_NRF24L01
|
|
|
|
default n
|
|
|
|
|
2019-04-09 18:20:40 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|