2020-12-15 23:43:04 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
|
|
|
|
config BSP_USING_USB_TO_USART
|
|
|
|
bool "Enable USB TO USART (uart0)"
|
|
|
|
select BSP_USING_UART
|
|
|
|
select BSP_USING_UART0
|
|
|
|
default y
|
|
|
|
|
2020-12-19 10:45:03 +08:00
|
|
|
menuconfig BSP_USING_AUDIO
|
|
|
|
bool "Enable Audio Device"
|
|
|
|
select RT_USING_AUDIO
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_AUDIO
|
|
|
|
config BSP_USING_AUDIO_PLAY
|
|
|
|
bool "Enable Audio Play"
|
|
|
|
default y
|
|
|
|
endif
|
|
|
|
|
2021-01-20 19:28:26 +08:00
|
|
|
config BSP_USING_SDCARD
|
|
|
|
bool "Enable SDCARD"
|
|
|
|
select BSP_USING_SDIO
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_SDCARD
|
|
|
|
config SDIO_MAX_FREQ
|
|
|
|
int "sdio max freq"
|
|
|
|
range 0 24000000
|
|
|
|
default 24000000
|
|
|
|
endif
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
|
|
|
|
menuconfig BSP_USING_UART0
|
|
|
|
bool "Enable UART0"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default y
|
|
|
|
|
|
|
|
config BSP_USING_SDIO
|
|
|
|
bool "Enable SDIO"
|
|
|
|
select RT_USING_SDIO
|
|
|
|
select RT_USING_DFS
|
|
|
|
select RT_USING_DFS_ELMFAT
|
|
|
|
default n
|
|
|
|
|
2021-01-26 16:20:25 +08:00
|
|
|
menuconfig BSP_USING_I2C1
|
|
|
|
bool "Enable I2C1 BUS (software simulation)"
|
|
|
|
default n
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
select RT_USING_PIN
|
|
|
|
if BSP_USING_I2C1
|
|
|
|
comment "Notice: PE3 --> 16; PE2 --> 15"
|
|
|
|
config BSP_I2C1_SCL_PIN
|
|
|
|
int "I2C1 scl pin number"
|
|
|
|
range 1 27
|
|
|
|
default 16
|
|
|
|
config BSP_I2C1_SDA_PIN
|
|
|
|
int "I2C1 sda pin number"
|
|
|
|
range 1 27
|
|
|
|
default 15
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_WDT
|
|
|
|
bool "Enable Watchdog Timer"
|
|
|
|
select RT_USING_WDT
|
|
|
|
default n
|
|
|
|
|
|
|
|
menuconfig BSP_USING_TIM
|
|
|
|
bool "Enable timer"
|
|
|
|
default n
|
|
|
|
select RT_USING_HWTIMER
|
|
|
|
if BSP_USING_TIM
|
|
|
|
config BSP_USING_TIM1
|
|
|
|
bool "Enable TIM1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_TIM2
|
|
|
|
bool "Enable TIM2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_TIM3
|
|
|
|
bool "Enable TIM3"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_TIM4
|
|
|
|
bool "Enable TIM4"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_TIM5
|
|
|
|
bool "Enable TIM5"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2020-12-15 23:43:04 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|