161 lines
4.8 KiB
Plaintext
161 lines
4.8 KiB
Plaintext
menu "Hardware Drivers Config"
|
|
|
|
config SOC_STM32H743II
|
|
bool
|
|
select SOC_SERIES_STM32H7
|
|
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
|
|
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_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_USING_LPUART1
|
|
bool "Enable LPUART1"
|
|
default n
|
|
|
|
config BSP_LPUART1_RX_USING_DMA
|
|
bool "Enable LPUART1 RX DMA"
|
|
depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
|
|
default n
|
|
endif
|
|
|
|
config BSP_USING_QSPI
|
|
bool "Enable QSPI BUS"
|
|
select RT_USING_QSPI
|
|
select RT_USING_SPI
|
|
default n
|
|
|
|
config BSP_USING_ONCHIP_RTC
|
|
bool "Enable RTC"
|
|
select RT_USING_RTC
|
|
default n
|
|
|
|
source "$BSP_DIR/../libraries/HAL_Drivers/drivers/Kconfig"
|
|
|
|
endmenu
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
config BSP_USING_SDRAM
|
|
bool "Enable SDRAM"
|
|
default n
|
|
|
|
config BSP_USING_QSPI_FLASH
|
|
bool "Enable QSPI FLASH (W25Q256 qspi)"
|
|
select BSP_USING_QSPI
|
|
select RT_USING_SFUD
|
|
select RT_SFUD_USING_QSPI
|
|
default n
|
|
|
|
config BSP_USING_SDMMC
|
|
bool "Enable SDMMC (SD card)"
|
|
select RT_USING_SDIO
|
|
select RT_USING_DFS
|
|
select RT_USING_DFS_ELMFAT
|
|
default n
|
|
|
|
config BSP_USING_USBD
|
|
bool "Enable OTGFS as USB device"
|
|
select RT_USING_USB_DEVICE
|
|
default n
|
|
|
|
config BSP_USING_OV5640
|
|
bool "Enable camera (ov5640)"
|
|
select BSP_USING_DCMI
|
|
select BSP_USING_I2C
|
|
select BSP_USING_I2C1
|
|
select BSP_USING_PWM
|
|
select BSP_USING_PWM1
|
|
select BSP_USING_PWM1_CH1
|
|
default n
|
|
|
|
config BSP_USING_DCMI
|
|
bool "Enable DCMI"
|
|
default n
|
|
|
|
menuconfig BSP_USING_I2C
|
|
bool "Enable I2C BUS (software simulation)"
|
|
select RT_USING_I2C
|
|
select RT_USING_I2C_BITOPS
|
|
select RT_USING_PIN
|
|
default n
|
|
if BSP_USING_I2C
|
|
menuconfig BSP_USING_I2C1
|
|
bool "Enable I2C1 BUS (software simulation)"
|
|
default n
|
|
if BSP_USING_I2C1
|
|
comment "Notice: PB8 --> 24; PB9 --> 25"
|
|
config BSP_I2C1_SCL_PIN
|
|
int "i2c1 scl pin number"
|
|
range 1 176
|
|
default 24
|
|
config BSP_I2C1_SDA_PIN
|
|
int "I2C1 sda pin number"
|
|
range 1 176
|
|
default 25
|
|
endif
|
|
|
|
menuconfig BSP_USING_I2C2
|
|
bool "Enable I2C2 BUS (software simulation)"
|
|
default n
|
|
if BSP_USING_I2C2
|
|
comment "Notice: PB10 --> 26; PB11 --> 27"
|
|
config BSP_I2C2_SCL_PIN
|
|
int "i2c2 scl pin number"
|
|
range 1 176
|
|
default 26
|
|
config BSP_I2C2_SDA_PIN
|
|
int "I2C2 sda pin number"
|
|
range 1 176
|
|
default 27
|
|
endif
|
|
endif
|
|
|
|
menuconfig BSP_USING_PWM
|
|
bool "Enable PWM"
|
|
default n
|
|
select RT_USING_PWM
|
|
if BSP_USING_PWM
|
|
menuconfig BSP_USING_PWM1
|
|
bool "Enable timer1 output pwm"
|
|
default n
|
|
if BSP_USING_PWM1
|
|
config BSP_USING_PWM1_CH1
|
|
bool "Enable PWM1 channel1"
|
|
default n
|
|
endif
|
|
endif
|
|
|
|
endmenu
|
|
|
|
endmenu
|