rt-thread-official/bsp/hc32/ev_hc32f460_lqfp100_v2/board/Kconfig

642 lines
21 KiB
Plaintext
Raw Normal View History

menu "Hardware Drivers Config"
config SOC_HC32F460PE
bool
select SOC_SERIES_HC32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
2024-01-09 21:56:37 +08:00
menu "On-chip Drivers"
config BSP_USING_ON_CHIP_FLASH_CACHE
bool "Enable on-chip Flash Cache"
default y
endmenu
menu "Onboard Peripheral Drivers"
2024-01-09 21:56:37 +08:00
config BSP_USING_SPI_FLASH
bool "Enable SPI FLASH (w25q64 spi3)"
select BSP_USING_SPI
select BSP_USING_SPI3
select BSP_USING_ON_CHIP_FLASH
select RT_USING_SFUD
select RT_USING_DFS
select RT_USING_FAL
select RT_USING_MTD_NOR
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
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_UART1
bool "Enable UART1"
default y
2024-01-09 21:56:37 +08:00
if BSP_USING_UART1
config BSP_UART1_RX_USING_DMA
bool "Enable UART1 RX DMA"
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
default n
2024-01-09 21:56:37 +08:00
config BSP_UART1_TX_USING_DMA
bool "Enable UART1 TX DMA"
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
default n
2024-01-09 21:56:37 +08:00
config BSP_UART1_RX_BUFSIZE
int "Set UART1 RX buffer size"
range 64 65535
depends on RT_USING_SERIAL_V2
default 256
2024-01-09 21:56:37 +08:00
config BSP_UART1_TX_BUFSIZE
int "Set UART1 TX buffer size"
range 0 65535
depends on RT_USING_SERIAL_V2
default 0
endif
menuconfig BSP_USING_UART2
bool "Enable UART2"
default n
2024-01-09 21:56:37 +08:00
if BSP_USING_UART2
config BSP_UART2_RX_USING_DMA
bool "Enable UART2 RX DMA"
depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
default n
2024-01-09 21:56:37 +08:00
config BSP_UART2_TX_USING_DMA
bool "Enable UART2 TX DMA"
depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
default n
2024-01-09 21:56:37 +08:00
config BSP_UART2_RX_BUFSIZE
int "Set UART2 RX buffer size"
range 64 65535
depends on RT_USING_SERIAL_V2
default 256
config BSP_UART2_TX_BUFSIZE
int "Set UART2 TX buffer size"
range 0 65535
depends on RT_USING_SERIAL_V2
default 256
endif
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_UART3
bool "Enable UART3"
default n
2024-01-09 21:56:37 +08:00
if BSP_USING_UART3
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_UART3_RX_BUFSIZE
int "Set UART3 RX buffer size"
range 64 65535
depends on RT_USING_SERIAL_V2
default 256
2024-01-09 21:56:37 +08:00
config BSP_UART3_TX_BUFSIZE
int "Set UART3 TX buffer size"
range 0 65535
depends on RT_USING_SERIAL_V2
default 256
endif
menuconfig BSP_USING_UART4
bool "Enable UART4"
default n
2024-01-09 21:56:37 +08:00
if BSP_USING_UART4
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
config BSP_UART4_RX_BUFSIZE
int "Set UART4 RX buffer size"
range 64 65535
depends on RT_USING_SERIAL_V2
default 256
2024-01-09 21:56:37 +08:00
config BSP_UART4_TX_BUFSIZE
int "Set UART4 TX buffer size"
range 0 65535
depends on RT_USING_SERIAL_V2
default 256
endif
endif
menuconfig BSP_USING_I2C
bool "Enable I2C BUS"
default n
select RT_USING_I2C
if BSP_USING_I2C
menuconfig BSP_USING_I2C1_SW
bool "Enable I2C1 BUS (software simulation)"
default n
2024-01-09 21:56:37 +08:00
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C1_SW
config BSP_I2C1_SCL_PIN
int "i2c1 scl pin number"
range 1 100
default 7
config BSP_I2C1_SDA_PIN
int "I2C1 sda pin number"
range 1 100
default 36
endif
endif
2024-01-09 21:56:37 +08:00
if BSP_USING_I2C
config BSP_I2C_USING_DMA
bool
default n
config BSP_USING_I2C_HW
bool
default n
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_I2C1
bool "Enable I2C1 BUS"
default n
2024-01-09 21:56:37 +08:00
select BSP_USING_I2C_HW
if BSP_USING_I2C1
config BSP_I2C1_USING_DMA
bool
default n
config BSP_I2C1_TX_USING_DMA
bool "Enable I2C1 TX DMA"
default n
select BSP_I2C_USING_DMA
select BSP_I2C1_USING_DMA
config BSP_I2C1_RX_USING_DMA
bool "Enable I2C1 RX DMA"
default n
select BSP_I2C_USING_DMA
select BSP_I2C1_USING_DMA
endif
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_I2C2
bool "Enable I2C2 BUS"
default n
2024-01-09 21:56:37 +08:00
select BSP_USING_I2C_HW
if BSP_USING_I2C2
config BSP_I2C2_USING_DMA
bool
default n
config BSP_I2C2_TX_USING_DMA
bool "Enable I2C2 TX DMA"
default n
select BSP_I2C_USING_DMA
select BSP_I2C2_USING_DMA
config BSP_I2C2_RX_USING_DMA
bool "Enable I2C2 RX DMA"
default n
select BSP_I2C_USING_DMA
select BSP_I2C2_USING_DMA
endif
menuconfig BSP_USING_I2C3
bool "Enable I2C3 BUS"
default n
select BSP_USING_I2C_HW
if BSP_USING_I2C3
config BSP_I2C3_USING_DMA
bool
default n
config BSP_I2C3_TX_USING_DMA
bool "Enable I2C3 TX DMA"
default n
select BSP_I2C_USING_DMA
select BSP_I2C3_USING_DMA
config BSP_I2C3_RX_USING_DMA
bool "Enable I2C3 RX DMA"
default n
select BSP_I2C_USING_DMA
select BSP_I2C3_USING_DMA
endif
endif
2024-01-09 21:56:37 +08:00
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_SPI
bool "Enable SPI BUS"
default n
select RT_USING_SPI
if BSP_USING_SPI
config BSP_SPI_USING_DMA
bool
default n
menuconfig BSP_USING_SPI1
bool "Enable SPI1 BUS"
default n
if BSP_USING_SPI1
config BSP_SPI1_TX_USING_DMA
bool "Enable SPI1 TX DMA"
select BSP_SPI_USING_DMA
default n
config BSP_SPI1_RX_USING_DMA
bool "Enable SPI1 RX DMA"
select BSP_SPI_USING_DMA
select BSP_SPI1_TX_USING_DMA
default n
endif
menuconfig BSP_USING_SPI2
bool "Enable SPI2 BUS"
default n
if BSP_USING_SPI2
config BSP_SPI2_TX_USING_DMA
bool "Enable SPI2 TX DMA"
select BSP_SPI_USING_DMA
default n
config BSP_SPI2_RX_USING_DMA
bool "Enable SPI2 RX DMA"
select BSP_SPI_USING_DMA
select BSP_SPI2_TX_USING_DMA
default n
endif
menuconfig BSP_USING_SPI3
bool "Enable SPI3 BUS"
default n
if BSP_USING_SPI3
config BSP_SPI3_TX_USING_DMA
bool "Enable SPI3 TX DMA"
select BSP_SPI_USING_DMA
default n
config BSP_SPI3_RX_USING_DMA
bool "Enable SPI3 RX DMA"
select BSP_SPI_USING_DMA
select BSP_SPI3_TX_USING_DMA
default n
endif
menuconfig BSP_USING_SPI4
bool "Enable SPI4 BUS"
default n
2024-01-09 21:56:37 +08:00
if BSP_USING_SPI4
config BSP_SPI4_TX_USING_DMA
bool "Enable SPI4 TX DMA"
select BSP_SPI_USING_DMA
default n
config BSP_SPI4_RX_USING_DMA
bool "Enable SPI4 RX DMA"
select BSP_SPI_USING_DMA
select BSP_SPI4_TX_USING_DMA
default n
endif
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
endif
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_CAN
bool "Enable CAN"
default n
select RT_USING_CAN
select RT_CAN_USING_HDR
if BSP_USING_CAN
config BSP_USING_CAN1
bool "using can1"
default n
endif
menuconfig BSP_USING_WDT_TMR
bool "Enable Watchdog Timer"
default n
select RT_USING_WDT
if BSP_USING_WDT_TMR
config BSP_USING_WDT
bool "Using WDT"
default n
if BSP_USING_WDT
config BSP_WDT_CONTINUE_COUNT
bool "Low Power Mode Keeps Counting"
default n
endif
endif
2022-06-12 23:10:42 +08:00
menuconfig BSP_USING_RTC
bool "Enable RTC"
select RT_USING_RTC
default n
if BSP_USING_RTC
choice
prompt "Select clock source"
2024-01-09 21:56:37 +08:00
default BSP_RTC_USING_XTAL32
config BSP_RTC_USING_XTAL32
bool "RTC USING XTAL32"
config BSP_RTC_USING_LRC
bool "RTC USING LRC"
endchoice
endif
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_SDIO
bool "Enable SDIO"
default n
2024-01-09 21:56:37 +08:00
select RT_USING_SDIO
if BSP_USING_SDIO
config BSP_USING_SDIO1
bool "Enable SDIO1"
default n
config BSP_USING_SDIO2
bool "Enable SDIO2"
default n
endif
menuconfig BSP_USING_PM
bool "Enable PM"
default n
2024-01-09 21:56:37 +08:00
select RT_USING_PM
if BSP_USING_PM
choice
prompt "Select WKTM Clock Src"
default BSP_USING_WKTM_LRC
config BSP_USING_WKTM_XTAL32
bool "Using Xtal32"
config BSP_USING_WKTM_LRC
bool "Using LRC"
if BSP_RTC_USING_XTAL32
config BSP_USING_WKTM_64HZ
bool "Using 64HZ(Note:must use XTAL32 and run RTC)"
endif
endchoice
endif
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_HWCRYPTO
bool "Using Hardware Crypto drivers"
2022-06-29 00:00:58 +08:00
default n
2024-01-09 21:56:37 +08:00
select RT_USING_HWCRYPTO
if BSP_USING_HWCRYPTO
config BSP_USING_UQID
bool "Enable UQID (unique id)"
2022-06-29 00:00:58 +08:00
default n
2024-01-09 21:56:37 +08:00
config BSP_USING_RNG
bool "Using Hardware RNG"
default n
select RT_HWCRYPTO_USING_RNG
config BSP_USING_CRC
bool "Using Hardware CRC"
default n
select RT_HWCRYPTO_USING_CRC
config BSP_USING_AES
bool "Using Hardware AES"
default n
select RT_HWCRYPTO_USING_AES
if BSP_USING_AES
choice
prompt "Select AES Mode"
default BSP_USING_AES_ECB
config BSP_USING_AES_ECB
bool "ECB mode"
select RT_HWCRYPTO_USING_AES_ECB
endchoice
endif
config BSP_USING_HASH
bool "Using Hardware Hash"
default n
select RT_HWCRYPTO_USING_SHA2
if BSP_USING_HASH
choice
prompt "Select Hash Mode"
default BSP_USING_SHA2_256
config BSP_USING_SHA2_256
bool "SHA2_256 Mode"
select RT_HWCRYPTO_USING_SHA2_256
endchoice
endif
endif
menuconfig BSP_USING_PWM
bool "Enable output PWM"
default n
select RT_USING_PWM
if BSP_USING_PWM
menuconfig BSP_USING_PWM_TMRA
bool "Enable timerA output PWM"
default n
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_CH1
bool "Enable timerA-4 channel1"
default n
config BSP_USING_PWM_TMRA_4_CH2
bool "Enable timerA-4 channel2"
default n
endif
menuconfig BSP_USING_PWM_TMRA_5
bool "Enable timerA-5 output PWM"
default n
if BSP_USING_PWM_TMRA_5
config BSP_USING_PWM_TMRA_5_CH1
bool "Enable timerA-5 channel1"
default n
config BSP_USING_PWM_TMRA_5_CH2
bool "Enable timerA-5 channel2"
default n
endif
endif
menuconfig BSP_USING_PWM_TMR4
bool "Enable timer4 output PWM"
default n
if BSP_USING_PWM_TMR4
menuconfig BSP_USING_PWM_TMR4_1
bool "Enable timer4-1 output PWM"
default n
if BSP_USING_PWM_TMR4_1
config BSP_USING_PWM_TMR4_1_OUH
bool "Enable TMR4_1_OUH channel1"
default n
config BSP_USING_PWM_TMR4_1_OUL
bool "Enable TMR4_1_OUL channel2"
default n
config BSP_USING_PWM_TMR4_1_OVH
bool "Enable TMR4_1_OVH channel3"
default n
config BSP_USING_PWM_TMR4_1_OVL
bool "Enable TMR4_1_OVL channel4"
default n
config BSP_USING_PWM_TMR4_1_OWH
bool "Enable TMR4_1_OWH channel5"
default n
config BSP_USING_PWM_TMR4_1_OWL
bool "Enable TMR4_1_OWL channel6"
default n
endif
endif
menuconfig BSP_USING_PWM_TMR6
bool "Enable timer6 output PWM"
default n
if BSP_USING_PWM_TMR6
menuconfig BSP_USING_PWM_TMR6_1
bool "Enable timer6-1 output PWM"
default n
if BSP_USING_PWM_TMR6_1
config BSP_USING_PWM_TMR6_1_A
bool "Enable TMR6_1_A channel1"
default n
config BSP_USING_PWM_TMR6_1_B
bool "Enable TMR6_1_B channel2"
default n
endif
endif
endif
menuconfig BSP_USING_USB
bool "Enable USB"
default n
select RT_USING_USB_DEVICE if BSP_USING_USBD
select RT_USING_USB_HOST if BSP_USING_USBH
if BSP_USING_USB
config BSP_USING_USBFS
bool
default y
choice
prompt "Select USB Mode"
default BSP_USING_USBD
config BSP_USING_USBD
bool "USB Device Mode"
config BSP_USING_USBH
bool "USB Host Mode"
endchoice
if BSP_USING_USBD
config BSP_USING_USBD_VBUS_SENSING
bool "Enable VBUS Sensing"
default y
endif
if BSP_USING_USBH
menuconfig RT_USBH_MSTORAGE
bool "Enable Udisk Drivers"
2022-06-29 00:00:58 +08:00
default n
2024-01-09 21:56:37 +08:00
if RT_USBH_MSTORAGE
config UDISK_MOUNTPOINT
string "Udisk mount dir"
default "/"
endif
2022-06-29 00:00:58 +08:00
endif
endif
2024-01-09 21:56:37 +08:00
menuconfig BSP_USING_QSPI
bool "Enable QSPI BUS"
select RT_USING_QSPI
select RT_USING_SPI
default n
if BSP_USING_QSPI
config BSP_QSPI_USING_DMA
bool "Enable QSPI DMA support"
default n
config BSP_QSPI_USING_SOFT_CS
bool "Enable QSPI Soft CS Pin"
default n
endif
menuconfig BSP_USING_PULSE_ENCODER
bool "Enable Pulse Encoder"
default n
select RT_USING_PULSE_ENCODER
if BSP_USING_PULSE_ENCODER
menuconfig BSP_USING_TMRA_PULSE_ENCODER
bool "Use TIMERA As The Pulse Encoder"
default n
if BSP_USING_TMRA_PULSE_ENCODER
config BSP_USING_PULSE_ENCODER_TMRA_1
bool "Use TIMERA_1 As The Pulse Encoder"
default n
endif
menuconfig BSP_USING_TMR6_PULSE_ENCODER
bool "Use TIMER6 As The Pulse Encoder"
default n
if BSP_USING_TMR6_PULSE_ENCODER
config BSP_USING_PULSE_ENCODER_TMR6_1
bool "Use TIMER6_1 As The Pulse Encoder"
default n
endif
endif
menuconfig BSP_USING_HWTIMER
bool "Enable Hw Timer"
default n
select RT_USING_HWTIMER
if BSP_USING_HWTIMER
config BSP_USING_TMRA_1
bool "Use Timer_a1 As The Hw Timer"
default n
config BSP_USING_TMRA_2
bool "Use Timer_a2 As The Hw Timer"
default n
config BSP_USING_TMRA_3
bool "Use Timer_a3 As The Hw Timer"
default n
config BSP_USING_TMRA_4
bool "Use Timer_a4 As The Hw Timer"
default n
config BSP_USING_TMRA_5
bool "Use Timer_a5 As The Hw Timer"
default n
config BSP_USING_TMRA_6
bool "Use Timer_a6 As The Hw Timer"
default n
endif
endmenu
menu "Board extended module Drivers"
endmenu
endmenu