2022-09-06 12:48:16 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_HPM6000
|
|
|
|
bool
|
|
|
|
select SOC_SERIES_HPM6000
|
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
default y
|
|
|
|
|
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
config BSP_USING_GPIO
|
|
|
|
bool "Enable GPIO"
|
|
|
|
select RT_USING_PIN if BSP_USING_GPIO
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-09-06 12:48:16 +08:00
|
|
|
config RW007_USING_BLE
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable RW007 BLE"
|
|
|
|
default n
|
|
|
|
select RT_USING_SPI if RW007_USING_BLE
|
|
|
|
select BSP_USING_SPI1 if RW007_USING_BLE
|
|
|
|
|
2022-09-06 12:48:16 +08:00
|
|
|
config RW007_USING_WIFI
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable RW007 WIFI"
|
|
|
|
select RT_USING_SPI if RW007_USING_BLE
|
|
|
|
select BSP_USING_SPI1 if RW007_USING_BLE
|
2022-09-06 12:48:16 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Enable UART"
|
|
|
|
default y
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
|
|
|
|
if BSP_USING_UART
|
|
|
|
menuconfig BSP_USING_UART0
|
|
|
|
bool "Enable UART0 (Debugger)"
|
|
|
|
default y
|
|
|
|
if BSP_USING_UART0
|
|
|
|
config BSP_UART0_RX_USING_DMA
|
|
|
|
bool "Enable UART0 RX DMA"
|
|
|
|
depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART0_TX_USING_DMA
|
|
|
|
bool "Enable UART0 TX DMA"
|
|
|
|
depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART0_RX_BUFSIZE
|
|
|
|
int "Set UART0 RX buffer size"
|
|
|
|
range 64 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 128
|
|
|
|
|
|
|
|
config BSP_UART0_TX_BUFSIZE
|
|
|
|
int "Set UART0 TX buffer size"
|
|
|
|
range 0 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 0
|
|
|
|
endif
|
|
|
|
menuconfig BSP_USING_UART6
|
|
|
|
bool "Enable UART6"
|
|
|
|
default n
|
|
|
|
if BSP_USING_UART6
|
|
|
|
config BSP_UART6_RX_USING_DMA
|
|
|
|
bool "Enable UART6 RX DMA"
|
|
|
|
depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART6_TX_USING_DMA
|
|
|
|
bool "Enable UART6 TX DMA"
|
|
|
|
depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART6_RX_BUFSIZE
|
|
|
|
int "Set UART6 RX buffer size"
|
|
|
|
range 64 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 128
|
|
|
|
|
|
|
|
config BSP_UART6_TX_BUFSIZE
|
|
|
|
int "Set UART6 TX buffer size"
|
|
|
|
range 0 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 0
|
|
|
|
endif
|
|
|
|
menuconfig BSP_USING_UART13
|
|
|
|
bool "Enable UART13"
|
|
|
|
default n
|
|
|
|
if BSP_USING_UART13
|
|
|
|
config BSP_UART13_RX_USING_DMA
|
|
|
|
bool "Enable UART13 RX DMA"
|
|
|
|
depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART13_TX_USING_DMA
|
|
|
|
bool "Enable UART13 TX DMA"
|
|
|
|
depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART13_RX_BUFSIZE
|
|
|
|
int "Set UART13 RX buffer size"
|
|
|
|
range 64 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 128
|
|
|
|
|
|
|
|
config BSP_UART13_TX_BUFSIZE
|
|
|
|
int "Set UART13 TX buffer size"
|
|
|
|
range 0 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 0
|
|
|
|
endif
|
|
|
|
menuconfig BSP_USING_UART14
|
|
|
|
bool "Enable UART14"
|
|
|
|
default n
|
|
|
|
if BSP_USING_UART14
|
|
|
|
config BSP_UART14_RX_USING_DMA
|
|
|
|
bool "Enable UART14 RX DMA"
|
|
|
|
depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART14_TX_USING_DMA
|
|
|
|
bool "Enable UART14 TX DMA"
|
|
|
|
depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART14_RX_BUFSIZE
|
|
|
|
int "Set UART14 RX buffer size"
|
|
|
|
range 64 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 128
|
|
|
|
|
|
|
|
config BSP_UART14_TX_BUFSIZE
|
|
|
|
int "Set UART14 TX buffer size"
|
|
|
|
range 0 65535
|
|
|
|
depends on RT_USING_SERIAL_V2
|
|
|
|
default 0
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
menuconfig BSP_USING_SPI
|
|
|
|
bool "Enable SPI"
|
|
|
|
default n
|
|
|
|
select RT_USING_SPI if BSP_USING_SPI
|
|
|
|
if BSP_USING_SPI
|
|
|
|
config BSP_USING_SPI1
|
|
|
|
bool "Enable SPI1"
|
|
|
|
default y
|
|
|
|
config BSP_USING_SPI2
|
|
|
|
bool "Enable SPI2"
|
|
|
|
default n
|
|
|
|
config BSP_USING_SPI3
|
|
|
|
bool "Enable SPI3"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_RTC
|
|
|
|
bool "Enable RTC"
|
|
|
|
default n
|
|
|
|
|
|
|
|
menuconfig BSP_USING_ETH
|
|
|
|
bool "Enable Ethernet"
|
|
|
|
default n
|
|
|
|
select RT_USING_ETH
|
|
|
|
if BSP_USING_ETH
|
|
|
|
config BSP_USING_ETH1
|
|
|
|
bool "Enable ETH1"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_SDXC
|
|
|
|
bool "Enable SDXC"
|
|
|
|
default n
|
|
|
|
select RT_USING_SDIO if BSP_USING_SDXC
|
|
|
|
if BSP_USING_SDXC
|
|
|
|
config BSP_USING_SDXC0
|
|
|
|
bool "Enable SDXC0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_SDXC1
|
|
|
|
bool "Enable SDXC1"
|
|
|
|
default y
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_TOUCH
|
|
|
|
bool "Enable touch"
|
|
|
|
default n
|
|
|
|
if BSP_USING_TOUCH
|
|
|
|
config BSP_USING_TOUCH_GT911
|
|
|
|
bool "Enable GT911"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config BSP_USING_TOUCH_FT5406
|
|
|
|
bool "Enable FT5406"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_LCD
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable LCD"
|
|
|
|
default n
|
2022-09-06 12:48:16 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_LVGL
|
|
|
|
bool "Enable LVGL"
|
|
|
|
default n
|
|
|
|
select PKG_USING_LVGL if BSP_USING_LVGL
|
2023-08-15 18:41:20 +08:00
|
|
|
select BSP_USING_PDMA if BSP_USING_LVGL
|
|
|
|
|
|
|
|
menuconfig BSP_USING_PDMA
|
|
|
|
bool "Enable PDMA"
|
|
|
|
default n
|
2022-09-06 12:48:16 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_GPTMR
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable GPTMR"
|
|
|
|
default n
|
|
|
|
select RT_USING_HWTIMER if BSP_USING_GPTMR
|
|
|
|
if BSP_USING_GPTMR
|
|
|
|
config BSP_USING_GPTMR1
|
|
|
|
bool "Enable GPTMR1"
|
|
|
|
default n
|
|
|
|
config BSP_USING_GPTMR2
|
|
|
|
bool "Enable GPTMR2"
|
|
|
|
default n
|
|
|
|
config BSP_USING_GPTMR3
|
|
|
|
bool "Enable GPTMR3"
|
|
|
|
default n
|
|
|
|
config BSP_USING_GPTMR4
|
|
|
|
bool "Enable GPTMR4"
|
|
|
|
default n
|
|
|
|
config BSP_USING_GPTMR5
|
|
|
|
bool "Enable GPTMR5"
|
|
|
|
default n
|
|
|
|
config BSP_USING_GPTMR6
|
|
|
|
bool "Enable GPTMR6"
|
|
|
|
default n
|
|
|
|
config BSP_USING_GPTMR7
|
|
|
|
bool "Enable GPTMR7"
|
|
|
|
default n
|
2022-09-06 12:48:16 +08:00
|
|
|
endif
|
|
|
|
menuconfig BSP_USING_I2C
|
|
|
|
bool "Enable I2C"
|
|
|
|
default n
|
|
|
|
if BSP_USING_I2C
|
|
|
|
config BSP_USING_I2C0
|
|
|
|
bool "Enable I2C0"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config BSP_USING_I2C3
|
|
|
|
bool "Enable I2C3"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2023-08-15 18:41:20 +08:00
|
|
|
menuconfig BSP_USING_FEMC
|
|
|
|
bool "Enable FEMC"
|
2022-09-06 12:48:16 +08:00
|
|
|
default y
|
|
|
|
menuconfig INIT_EXT_RAM_FOR_DATA
|
|
|
|
bool "INIT_EXT_RAM_FOR_DATA"
|
|
|
|
default y
|
|
|
|
|
|
|
|
|
|
|
|
menuconfig BSP_USING_XPI_FLASH
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable XPI FLASH"
|
|
|
|
default n
|
2023-08-15 18:41:20 +08:00
|
|
|
select RT_USING_FAL if BSP_USING_XPI_FLASH
|
2022-09-06 12:48:16 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_PWM
|
|
|
|
bool "Enable PWM"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
2022-09-06 12:48:16 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_DAO
|
|
|
|
bool "Enable Audio DAO play"
|
|
|
|
default n
|
|
|
|
select RT_USING_AUDIO if BSP_USING_DAO
|
|
|
|
|
|
|
|
menuconfig BSP_USING_PDM
|
|
|
|
bool "Enable Audio PDM record"
|
|
|
|
default n
|
|
|
|
select RT_USING_AUDIO if BSP_USING_PDM
|
|
|
|
|
|
|
|
menuconfig BSP_USING_I2S
|
|
|
|
bool "Enable Audio I2S device"
|
|
|
|
default n
|
|
|
|
select RT_USING_AUDIO if BSP_USING_I2S
|
|
|
|
if BSP_USING_I2S
|
|
|
|
config BSP_USING_I2S0
|
|
|
|
bool "Enable I2S0"
|
|
|
|
default y
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_USB
|
|
|
|
bool "Enable USB"
|
|
|
|
default n
|
|
|
|
if BSP_USING_USB
|
2023-01-09 10:14:23 +08:00
|
|
|
config BSP_USING_USB_DEVICE
|
2022-09-06 12:48:16 +08:00
|
|
|
bool "Enable USB Device"
|
|
|
|
default n
|
|
|
|
config BSP_USING_USB_HOST
|
|
|
|
bool "Enable USB HOST"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
menuconfig BSP_USING_WDG
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable Watchdog"
|
|
|
|
default n
|
|
|
|
select RT_USING_WDT if BSP_USING_WDG
|
|
|
|
if BSP_USING_WDG
|
|
|
|
config BSP_USING_WDG0
|
|
|
|
bool "Enable WDG0"
|
|
|
|
default n
|
|
|
|
config BSP_USING_WDG1
|
|
|
|
bool "Enable WDG1"
|
|
|
|
default n
|
|
|
|
config BSP_USING_WDG2
|
|
|
|
bool "Enable WDG2"
|
|
|
|
default n
|
|
|
|
config BSP_USING_WDG3
|
|
|
|
bool "Enable WDG3"
|
|
|
|
default n
|
|
|
|
endif
|
2022-09-06 12:48:16 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_CAN
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable CAN"
|
|
|
|
default n
|
|
|
|
select RT_USING_CAN if BSP_USING_CAN
|
|
|
|
if BSP_USING_CAN
|
|
|
|
config BSP_USING_CAN0
|
|
|
|
bool "Enable CAN0"
|
|
|
|
default n
|
|
|
|
config BSP_USING_CAN1
|
|
|
|
bool "Enable CAN1"
|
|
|
|
default n
|
|
|
|
config BSP_USING_CAN2
|
|
|
|
bool "Enable CAN2"
|
|
|
|
default n
|
|
|
|
config BSP_USING_CAN3
|
|
|
|
bool "Enable CAN3"
|
|
|
|
default n
|
|
|
|
endif
|
2022-09-06 12:48:16 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_ADC
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "Enable ADC"
|
|
|
|
default n
|
|
|
|
select RT_USING_ADC if BSP_USING_ADC
|
|
|
|
if BSP_USING_ADC
|
|
|
|
menuconfig BSP_USING_ADC12
|
|
|
|
bool "Enable ADC12"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC12
|
|
|
|
config BSP_USING_ADC0
|
|
|
|
bool "Enable ADC0"
|
|
|
|
default n
|
|
|
|
config BSP_USING_ADC1
|
|
|
|
bool "Enable ADC1"
|
|
|
|
default n
|
|
|
|
config BSP_USING_ADC2
|
|
|
|
bool "Enable ADC2"
|
|
|
|
default n
|
|
|
|
endif
|
2023-08-15 18:41:20 +08:00
|
|
|
menuconfig BSP_USING_ADC16
|
|
|
|
bool "Enable ADC16"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
|
|
|
if BSP_USING_ADC16
|
|
|
|
config BSP_USING_ADC3
|
|
|
|
bool "Enable ADC3"
|
|
|
|
default n
|
|
|
|
endif
|
2023-08-15 18:41:20 +08:00
|
|
|
endif
|
2022-09-06 12:48:16 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endmenu
|