2022-05-06 09:28:21 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_HC32F4A0SI
|
2023-01-09 10:14:23 +08:00
|
|
|
bool
|
2022-05-06 09:28:21 +08:00
|
|
|
select SOC_SERIES_HC32F4
|
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
default y
|
|
|
|
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
|
|
|
|
config PHY_USING_RTL8201F
|
|
|
|
bool
|
|
|
|
|
|
|
|
menuconfig BSP_USING_ETH
|
|
|
|
bool "Enable Ethernet"
|
|
|
|
default n
|
|
|
|
select BSP_USING_I2C1
|
|
|
|
select RT_USING_LWIP
|
|
|
|
select PHY_USING_RTL8201F
|
|
|
|
select RT_LWIP_USING_HW_CHECKSUM
|
|
|
|
select BSP_USING_TCA9539
|
|
|
|
if BSP_USING_ETH
|
|
|
|
config ETH_USING_INTERFACE_RMII
|
|
|
|
bool "select RMII interface"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config PHY_USING_INTERRUPT_MODE
|
|
|
|
bool "enable phy interrupt mode"
|
|
|
|
select ETH_PHY_INT_PIN
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config ETH_PHY_INT_PIN
|
2023-01-09 10:14:23 +08:00
|
|
|
int
|
2022-05-06 09:28:21 +08:00
|
|
|
default 16
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_TCA9539
|
|
|
|
bool "Enable TCA9539"
|
|
|
|
select BSP_USING_I2C1
|
|
|
|
default n
|
|
|
|
|
|
|
|
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-06 09:28:21 +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-06 09:28:21 +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-06 09:28:21 +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-06 09:28:21 +08:00
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_USING_UART3
|
|
|
|
bool "Enable UART3"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART4
|
|
|
|
bool "Enable UART4"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART5
|
|
|
|
bool "Enable UART5"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART6
|
|
|
|
bool "Enable UART6"
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_UART6_RX_USING_DMA
|
|
|
|
bool "Enable UART6 RX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART6
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-06 09:28:21 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART6_TX_USING_DMA
|
|
|
|
bool "Enable UART6 TX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART6
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-06 09:28:21 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART7
|
|
|
|
bool "Enable UART7"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART7_RX_USING_DMA
|
|
|
|
bool "Enable UART7 RX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART7
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-06 09:28:21 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_UART7_TX_USING_DMA
|
|
|
|
bool "Enable UART7 TX DMA"
|
2022-07-14 14:11:54 +08:00
|
|
|
depends on BSP_USING_UART7
|
|
|
|
select RT_SERIAL_USING_DMA
|
2022-05-06 09:28:21 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART8
|
|
|
|
bool "Enable UART8"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART9
|
|
|
|
bool "Enable UART9"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_UART10
|
|
|
|
bool "Enable UART10"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_I2C1
|
|
|
|
bool "Enable I2C1 BUS (software simulation)"
|
|
|
|
default y
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
2023-01-09 10:14:23 +08:00
|
|
|
select RT_USING_PIN
|
2022-05-06 09:28:21 +08:00
|
|
|
if BSP_USING_I2C1
|
|
|
|
config BSP_I2C1_SCL_PIN
|
|
|
|
int "i2c1 scl pin number"
|
|
|
|
range 1 176
|
|
|
|
default 51
|
|
|
|
config BSP_I2C1_SDA_PIN
|
|
|
|
int "I2C1 sda pin number"
|
|
|
|
range 1 176
|
|
|
|
default 90
|
2023-01-09 10:14:23 +08:00
|
|
|
endif
|
2022-05-06 09:28:21 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_SPI
|
|
|
|
bool "Enable SPI BUS"
|
|
|
|
default n
|
|
|
|
select RT_USING_SPI
|
|
|
|
if BSP_USING_SPI
|
|
|
|
config BSP_USING_SPI1
|
|
|
|
bool "Enable SPI1 BUS"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_SPI1_TX_USING_DMA
|
|
|
|
bool "Enable SPI1 TX DMA"
|
|
|
|
depends on BSP_USING_SPI1
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_SPI1_RX_USING_DMA
|
|
|
|
bool "Enable SPI1 RX DMA"
|
|
|
|
depends on BSP_USING_SPI1
|
|
|
|
select BSP_SPI1_TX_USING_DMA
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_USING_SPI2
|
|
|
|
bool "Enable SPI2 BUS"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_SPI2_TX_USING_DMA
|
|
|
|
bool "Enable SPI2 TX DMA"
|
|
|
|
depends on BSP_USING_SPI2
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_SPI2_RX_USING_DMA
|
|
|
|
bool "Enable SPI2 RX DMA"
|
|
|
|
depends on BSP_USING_SPI2
|
|
|
|
select BSP_SPI2_TX_USING_DMA
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_USING_SPI3
|
|
|
|
bool "Enable SPI3 BUS"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
2022-05-06 09:28:21 +08:00
|
|
|
|
|
|
|
config BSP_SPI3_TX_USING_DMA
|
|
|
|
bool "Enable SPI3 TX DMA"
|
|
|
|
depends on BSP_USING_SPI3
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_SPI3_RX_USING_DMA
|
|
|
|
bool "Enable SPI3 RX DMA"
|
|
|
|
depends on BSP_USING_SPI3
|
|
|
|
select BSP_SPI3_TX_USING_DMA
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
2022-05-06 09:28:21 +08:00
|
|
|
|
|
|
|
config BSP_USING_SPI4
|
|
|
|
bool "Enable SPI4 BUS"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_SPI4_TX_USING_DMA
|
|
|
|
bool "Enable SPI4 TX DMA"
|
|
|
|
depends on BSP_USING_SPI4
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
config BSP_SPI4_RX_USING_DMA
|
|
|
|
bool "Enable SPI4 RX DMA"
|
|
|
|
depends on BSP_USING_SPI4
|
|
|
|
select BSP_SPI4_TX_USING_DMA
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
|
|
|
config BSP_USING_ADC3
|
|
|
|
bool "using adc3"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_CAN
|
|
|
|
bool "Enable CAN"
|
|
|
|
default n
|
|
|
|
select RT_USING_CAN
|
2022-06-15 10:37:27 +08:00
|
|
|
select RT_CAN_USING_HDR
|
2022-05-06 09:28:21 +08:00
|
|
|
if BSP_USING_CAN
|
|
|
|
config BSP_USING_CAN1
|
|
|
|
bool "using can1"
|
|
|
|
default n
|
|
|
|
config BSP_USING_CAN2
|
|
|
|
bool "using can2"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
|
|
|
|
endmenu
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-05-06 09:28:21 +08:00
|
|
|
endmenu
|