2022-05-31 11:53:56 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_HC32F460PE
|
|
|
|
bool
|
|
|
|
select SOC_SERIES_HC32F4
|
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
default y
|
|
|
|
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
config BSP_UART1_RX_USING_DMA
|
|
|
|
bool "Enable UART1 RX DMA"
|
|
|
|
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART1_TX_USING_DMA
|
|
|
|
bool "Enable UART1 TX DMA"
|
|
|
|
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART2
|
|
|
|
bool "Enable UART2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART2_RX_USING_DMA
|
|
|
|
bool "Enable UART2 RX DMA"
|
|
|
|
depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART2_TX_USING_DMA
|
|
|
|
bool "Enable UART2 TX DMA"
|
|
|
|
depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART3
|
|
|
|
bool "Enable UART3"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART3_RX_USING_DMA
|
|
|
|
bool "Enable UART3 RX DMA"
|
|
|
|
depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART3_TX_USING_DMA
|
|
|
|
bool "Enable UART3 TX DMA"
|
|
|
|
depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART4
|
|
|
|
bool "Enable UART4"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART4_RX_USING_DMA
|
|
|
|
bool "Enable UART4 RX DMA"
|
|
|
|
depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART4_TX_USING_DMA
|
|
|
|
bool "Enable UART4 TX DMA"
|
|
|
|
depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
|
|
|
endif
|
2022-06-08 12:10:58 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_CAN
|
|
|
|
bool "Enable CAN"
|
|
|
|
default n
|
|
|
|
select RT_USING_CAN
|
|
|
|
if BSP_USING_CAN
|
|
|
|
config BSP_USING_CAN1
|
|
|
|
bool "using can1"
|
|
|
|
default n
|
|
|
|
endif
|
2022-06-13 21:13:51 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_ADC
|
|
|
|
bool "Enable ADC"
|
|
|
|
default n
|
|
|
|
select RT_USING_ADC
|
|
|
|
if BSP_USING_ADC
|
|
|
|
config BSP_USING_ADC1
|
|
|
|
bool "using adc1"
|
|
|
|
default n
|
|
|
|
config BSP_USING_ADC2
|
|
|
|
bool "using adc2"
|
|
|
|
default n
|
|
|
|
endif
|
2022-05-31 11:53:56 +08:00
|
|
|
|
2022-06-12 23:10:42 +08:00
|
|
|
menuconfig BSP_USING_RTC
|
2022-06-12 22:46:21 +08:00
|
|
|
bool "Enable RTC"
|
|
|
|
select RT_USING_RTC
|
|
|
|
default n
|
|
|
|
if BSP_USING_RTC
|
|
|
|
choice
|
|
|
|
prompt "Select clock source"
|
|
|
|
default BSP_RTC_USING_LRC
|
|
|
|
|
|
|
|
config BSP_RTC_USING_XTAL32
|
|
|
|
bool "RTC USING XTAL32"
|
|
|
|
|
|
|
|
config BSP_RTC_USING_LRC
|
|
|
|
bool "RTC USING LRC"
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
|
|
|
config BSP_I2C2_SCL_PIN
|
|
|
|
int "i2c2 scl pin number"
|
|
|
|
range 1 100
|
|
|
|
default 48
|
|
|
|
config BSP_I2C2_SDA_PIN
|
|
|
|
int "I2C2 sda pin number"
|
|
|
|
range 1 100
|
|
|
|
default 49
|
|
|
|
endif
|
|
|
|
|
2022-05-31 11:53:56 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|