2021-12-13 21:23:52 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
2022-03-22 09:39:13 +08:00
|
|
|
config SOC_STM32H743II
|
|
|
|
bool
|
|
|
|
select SOC_SERIES_STM32H7
|
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
default y
|
2021-12-13 21:23:52 +08:00
|
|
|
|
2022-03-22 09:39:13 +08:00
|
|
|
menu "On-chip Peripheral Drivers"
|
2021-12-13 21:23:52 +08:00
|
|
|
|
2022-03-22 09:39:13 +08:00
|
|
|
config BSP_USING_GPIO
|
|
|
|
bool "Enable GPIO"
|
|
|
|
select RT_USING_PIN
|
|
|
|
default y
|
2021-12-13 21:23:52 +08:00
|
|
|
|
2022-03-22 09:39:13 +08:00
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Enable UART"
|
|
|
|
default y
|
|
|
|
select RT_USING_SERIAL
|
2021-12-13 21:23:52 +08:00
|
|
|
|
2022-03-22 09:39:13 +08:00
|
|
|
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
|
2021-12-13 21:23:52 +08:00
|
|
|
|
2022-03-22 09:39:13 +08:00
|
|
|
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
|
2021-12-13 21:23:52 +08:00
|
|
|
default n
|
2022-04-13 16:12:33 +08:00
|
|
|
|
2022-04-13 15:22:34 +08:00
|
|
|
config BSP_USING_ONCHIP_RTC
|
|
|
|
bool "Enable RTC"
|
|
|
|
select RT_USING_RTC
|
|
|
|
default n
|
2022-03-22 09:39:13 +08:00
|
|
|
|
|
|
|
source "../libraries/HAL_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
|
|
|
|
|
2022-03-25 22:58:14 +08:00
|
|
|
config BSP_USING_USBD
|
|
|
|
bool "Enable OTGFS as USB device"
|
|
|
|
select RT_USING_USB_DEVICE
|
|
|
|
default n
|
|
|
|
|
2022-04-13 16:12:33 +08:00
|
|
|
config BSP_USING_OV5640
|
|
|
|
bool "Enable camera (ov5640)"
|
|
|
|
select BSP_USING_DCMI
|
|
|
|
select BSP_USING_I2C
|
|
|
|
select BSP_USING_I2C1
|
|
|
|
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
|
|
|
|
|
2022-03-22 09:39:13 +08:00
|
|
|
endmenu
|
2021-12-13 21:23:52 +08:00
|
|
|
|
|
|
|
endmenu
|