2022-05-31 11:53:56 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_HC32F460PE
|
2022-08-03 10:46:35 +08:00
|
|
|
bool
|
2022-05-31 11:53:56 +08:00
|
|
|
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"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART1
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART1_TX_USING_DMA
|
|
|
|
bool "Enable UART1 TX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART1
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART2
|
|
|
|
bool "Enable UART2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART2_RX_USING_DMA
|
|
|
|
bool "Enable UART2 RX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART2
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART2_TX_USING_DMA
|
|
|
|
bool "Enable UART2 TX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART2
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
2022-08-03 10:46:35 +08:00
|
|
|
|
2022-05-31 11:53:56 +08:00
|
|
|
config BSP_USING_UART3
|
|
|
|
bool "Enable UART3"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART3_RX_USING_DMA
|
|
|
|
bool "Enable UART3 RX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART3
|
2022-08-03 10:46:35 +08:00
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART3_TX_USING_DMA
|
|
|
|
bool "Enable UART3 TX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART3
|
2022-08-03 10:46:35 +08:00
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART4
|
|
|
|
bool "Enable UART4"
|
|
|
|
default n
|
2022-08-03 10:46:35 +08:00
|
|
|
|
2022-05-31 11:53:56 +08:00
|
|
|
config BSP_UART4_RX_USING_DMA
|
|
|
|
bool "Enable UART4 RX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART4
|
2022-08-03 10:46:35 +08:00
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART4_TX_USING_DMA
|
|
|
|
bool "Enable UART4 TX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART4
|
2022-08-03 10:46:35 +08:00
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-31 11:53:56 +08:00
|
|
|
default n
|
|
|
|
endif
|
2022-08-03 10:46:35 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_CAN
|
2022-06-08 12:10:58 +08:00
|
|
|
bool "Enable CAN"
|
|
|
|
default n
|
|
|
|
select RT_USING_CAN
|
|
|
|
if BSP_USING_CAN
|
|
|
|
config BSP_USING_CAN1
|
|
|
|
bool "using can1"
|
|
|
|
default n
|
|
|
|
endif
|
2022-08-03 10:46:35 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_ADC
|
2022-06-13 21:13:51 +08:00
|
|
|
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
|
2022-08-03 10:46:35 +08:00
|
|
|
|
2022-06-12 22:46:21 +08:00
|
|
|
menuconfig BSP_USING_I2C2
|
|
|
|
bool "Enable I2C2 BUS (software simulation)"
|
|
|
|
default n
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
2022-08-03 10:46:35 +08:00
|
|
|
select RT_USING_PIN
|
2022-06-12 22:46:21 +08:00
|
|
|
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
|
2022-08-03 10:46:35 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_WDT
|
|
|
|
bool "Enable Watchdog Timer"
|
|
|
|
select RT_USING_WDT
|
|
|
|
default n
|
|
|
|
|
2022-06-29 00:00:58 +08:00
|
|
|
menuconfig BSP_USING_PWM_TMRA
|
|
|
|
bool "Enable timerA output PWM"
|
|
|
|
depends on (!BSP_USING_UART3)
|
|
|
|
default n
|
|
|
|
select RT_USING_PWM
|
|
|
|
if BSP_USING_PWM_TMRA
|
|
|
|
menuconfig BSP_USING_PWM_TMRA_4
|
|
|
|
bool "Enable timerA-4 output PWM"
|
|
|
|
default n
|
|
|
|
if BSP_USING_PWM_TMRA_4
|
|
|
|
config BSP_USING_PWM_TMRA_4_CH7
|
|
|
|
bool "Enable timerA-4 channel7"
|
|
|
|
default n
|
|
|
|
config BSP_USING_PWM_TMRA_4_CH8
|
|
|
|
bool "Enable timerA-4 channel8"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
endif
|
2022-08-03 10:46:35 +08:00
|
|
|
|
2022-05-31 11:53:56 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
|
|
|
|
endmenu
|
2022-08-03 10:46:35 +08:00
|
|
|
|
2022-05-31 11:53:56 +08:00
|
|
|
endmenu
|