2022-11-10 22:22:48 +08:00
|
|
|
menu "Hardware Drivers"
|
|
|
|
|
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Enable UART"
|
|
|
|
default y
|
|
|
|
select USE_SERIAL # sdk serial component
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
if BSP_USING_UART
|
|
|
|
config RT_USING_UART1
|
|
|
|
bool "Enable UART1"
|
|
|
|
default y
|
2023-05-11 10:25:21 +08:00
|
|
|
|
2022-11-10 22:22:48 +08:00
|
|
|
config RT_USING_UART0
|
|
|
|
bool "Enable UART0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2023-05-11 10:25:21 +08:00
|
|
|
menuconfig BSP_USING_SPI
|
|
|
|
bool "Enable Spi"
|
2023-08-02 13:27:09 +08:00
|
|
|
default n
|
2023-05-11 10:25:21 +08:00
|
|
|
select USE_SPI # sdk spi component
|
|
|
|
select RT_USING_SPI
|
|
|
|
if BSP_USING_SPI
|
|
|
|
config RT_USING_SPIM0
|
|
|
|
bool "Enable spim0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_SPIM1
|
|
|
|
bool "Enable spim1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_SPIM2
|
|
|
|
bool "Enable spim2"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RT_USING_SPIM3
|
|
|
|
bool "Enable spim3"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_CAN
|
|
|
|
bool "Enable CAN"
|
2023-08-02 13:27:09 +08:00
|
|
|
default n
|
2023-05-11 10:25:21 +08:00
|
|
|
select RT_USING_CAN
|
|
|
|
select RT_CAN_USING_HDR
|
|
|
|
select RT_CAN_USING_CANFD
|
2022-11-10 22:22:48 +08:00
|
|
|
|
2023-08-02 13:27:09 +08:00
|
|
|
menuconfig BSP_USING_GPIO
|
|
|
|
bool "Enable GPIO"
|
|
|
|
default n
|
|
|
|
select RT_USING_PIN
|
|
|
|
|
2023-05-11 10:25:21 +08:00
|
|
|
menuconfig BSP_USING_QSPI
|
|
|
|
bool "Enable QSPI"
|
2023-08-02 13:27:09 +08:00
|
|
|
default n
|
2023-05-11 10:25:21 +08:00
|
|
|
select RT_USING_QSPI
|
|
|
|
select RT_USING_SPI
|
2023-08-02 13:27:09 +08:00
|
|
|
if BSP_USING_QSPI
|
|
|
|
config USING_QSPI_CHANNEL0
|
|
|
|
bool "using qspi channel_0"
|
|
|
|
default n
|
|
|
|
config USING_QSPI_CHANNEL1
|
|
|
|
bool "using qspi channel_1"
|
|
|
|
default n
|
|
|
|
endif
|
2022-11-10 22:22:48 +08:00
|
|
|
|
2023-08-02 13:27:09 +08:00
|
|
|
menuconfig BSP_USING_ETH
|
|
|
|
bool "Enable ETH"
|
|
|
|
default y
|
|
|
|
select USE_ETH
|
|
|
|
if BSP_USING_ETH
|
|
|
|
config RT_LWIP_PBUF_POOL_BUFSIZE
|
|
|
|
int "The size of each pbuf in the pbuf pool"
|
|
|
|
range 1500 2000
|
|
|
|
default 1700
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
menuconfig BSP_USING_SDIO
|
|
|
|
bool "Enable SDIO"
|
|
|
|
default y
|
|
|
|
select RT_USING_SDIO
|
|
|
|
|
|
|
|
if BSP_USING_SDIO
|
|
|
|
config BSP_USING_SDCARD_FATFS
|
|
|
|
bool "Enable SDCARD (FATFS)"
|
|
|
|
select RT_USING_DFS_ELMFAT
|
|
|
|
default y
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose a card to mount"
|
|
|
|
default USING_SDIO1
|
|
|
|
|
|
|
|
config USING_SDIO0
|
|
|
|
bool "Use SDIO0"
|
|
|
|
|
|
|
|
config USING_SDIO1
|
|
|
|
bool "Use SDIO1"
|
|
|
|
|
|
|
|
config USING_EMMC
|
|
|
|
bool "Use EMMC"
|
|
|
|
endchoice
|
|
|
|
endif
|
2022-11-10 22:22:48 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|