2019-04-09 16:52:59 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
menu "Onboard Peripheral Drivers"
|
2022-10-10 09:45:25 +08:00
|
|
|
config BSP_USING_STLINK_TO_USART
|
|
|
|
bool "Enable STLINK TO USART (uart3)"
|
|
|
|
select BSP_USING_UART
|
|
|
|
select BSP_USING_UART3
|
|
|
|
default y
|
|
|
|
|
2021-11-18 07:38:08 +08:00
|
|
|
config BSP_USING_LVGL
|
|
|
|
bool "Enable LVGL for LCD"
|
|
|
|
select BSP_USING_LCD_OTM8009A
|
|
|
|
select PKG_USING_LVGL
|
2022-06-30 10:27:16 +08:00
|
|
|
select BSP_USING_TOUCH
|
2021-11-18 07:38:08 +08:00
|
|
|
default n
|
|
|
|
|
2022-07-08 09:25:32 +08:00
|
|
|
if BSP_USING_LVGL
|
|
|
|
config BSP_USING_LVGL_DEMO
|
|
|
|
bool "Enable LVGL demo"
|
|
|
|
select PKG_USING_LV_MUSIC_DEMO
|
2022-08-14 10:02:41 +08:00
|
|
|
default y
|
2022-07-08 09:25:32 +08:00
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-07-05 10:05:31 +08:00
|
|
|
config BSP_USING_ARDUINO
|
2022-09-26 10:38:35 +08:00
|
|
|
bool "Compatible with Arduino Ecosystem (RTduino)"
|
2022-07-05 10:05:31 +08:00
|
|
|
select PKG_USING_RTDUINO
|
|
|
|
select BSP_USING_STLINK_TO_USART
|
|
|
|
select BSP_USING_GPIO
|
|
|
|
select BSP_USING_ADC
|
|
|
|
select BSP_USING_ADC1
|
2024-03-08 07:54:25 +08:00
|
|
|
select BSP_USING_TIM
|
|
|
|
select BSP_USING_TIM6
|
2022-07-05 10:05:31 +08:00
|
|
|
select BSP_USING_PWM
|
|
|
|
select BSP_USING_PWM2
|
|
|
|
select BSP_USING_PWM2_CH2
|
|
|
|
select BSP_USING_PWM2_CH3
|
|
|
|
select BSP_USING_PWM3
|
|
|
|
select BSP_USING_PWM3_CH1
|
|
|
|
select BSP_USING_PWM3_CH2
|
|
|
|
select BSP_USING_PWM12
|
|
|
|
select BSP_USING_PWM12_CH1
|
|
|
|
select BSP_USING_PWM12_CH2
|
|
|
|
select BSP_USING_I2C
|
|
|
|
select BSP_USING_I2C1
|
2024-03-10 01:54:44 +08:00
|
|
|
select BSP_USING_SPI
|
|
|
|
select BSP_USING_SPI2
|
2024-03-16 10:23:03 +08:00
|
|
|
select BSP_SPI2_TX_USING_DMA
|
|
|
|
select BSP_SPI2_RX_USING_DMA
|
|
|
|
select RTDUINO_USING_WIRE
|
|
|
|
select RTDUINO_USING_SPI
|
2022-07-05 10:05:31 +08:00
|
|
|
imply RTDUINO_USING_SERVO
|
|
|
|
default n
|
2022-05-11 13:17:02 +08:00
|
|
|
|
2022-06-30 10:27:16 +08:00
|
|
|
config BSP_USING_SDRAM
|
|
|
|
bool "Enable SDRAM"
|
|
|
|
select BSP_USING_FMC
|
|
|
|
default n
|
|
|
|
|
2019-04-11 10:24:43 +08:00
|
|
|
config BSP_USING_QSPI_FLASH
|
|
|
|
bool "Enable QSPI FLASH (N25Q128A qspi1)"
|
|
|
|
select BSP_USING_QSPI
|
|
|
|
select RT_USING_SFUD
|
|
|
|
select RT_SFUD_USING_QSPI
|
2022-03-15 09:48:05 +08:00
|
|
|
select RT_USING_FAL
|
2019-04-11 10:24:43 +08:00
|
|
|
select FAL_USING_SFUD_PORT
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-26 14:52:53 +08:00
|
|
|
config BSP_MOUNT_QSPI_WITH_LFS
|
|
|
|
bool "Mount QSPI flash to / with little fs"
|
|
|
|
depends on BSP_USING_QSPI_FLASH
|
|
|
|
select PKG_USING_LITTLEFS
|
|
|
|
select RT_USING_MTD_NOR
|
|
|
|
select RT_USING_DFS
|
|
|
|
default y
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-26 14:52:53 +08:00
|
|
|
config BSP_USING_SDCARD
|
|
|
|
bool "Enable SDCARD (sdio)"
|
|
|
|
select BSP_USING_SDIO
|
|
|
|
select RT_USING_DFS
|
|
|
|
select RT_USING_DFS_ELMFAT
|
|
|
|
select RT_USING_PIN
|
|
|
|
default n
|
2022-06-30 10:27:16 +08:00
|
|
|
|
2019-06-18 16:14:21 +08:00
|
|
|
config SDIO_MAX_FREQ
|
|
|
|
int "sdio max freq"
|
|
|
|
range 0 24000000
|
2022-06-30 10:27:16 +08:00
|
|
|
depends on BSP_USING_SDCARD
|
2019-06-18 16:14:21 +08:00
|
|
|
default 24000000
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-23 18:16:06 +08:00
|
|
|
config BSP_USING_TOUCH
|
2022-06-30 10:27:16 +08:00
|
|
|
bool "Enable touch screen"
|
2024-01-07 22:43:45 +08:00
|
|
|
select RT_USING_TOUCH
|
2022-07-08 13:55:13 +08:00
|
|
|
select BSP_USING_I2C1
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-06-30 10:27:16 +08:00
|
|
|
choice
|
|
|
|
prompt "Touch IC type"
|
|
|
|
depends on BSP_USING_TOUCH
|
2022-07-08 13:55:13 +08:00
|
|
|
default BSP_USING_TOUCH_FT6X36
|
2022-06-30 10:27:16 +08:00
|
|
|
|
|
|
|
config BSP_USING_TOUCH_FT6206
|
2023-01-09 10:14:23 +08:00
|
|
|
bool "FT6206"
|
2022-07-08 13:55:13 +08:00
|
|
|
select PKG_USING_FT6206
|
2022-06-30 10:27:16 +08:00
|
|
|
|
|
|
|
config BSP_USING_TOUCH_FT6X36
|
|
|
|
bool "FT6x36"
|
|
|
|
select PKG_USING_FT6236
|
2023-01-09 10:14:23 +08:00
|
|
|
endchoice
|
2022-06-30 10:27:16 +08:00
|
|
|
|
|
|
|
config BSP_USING_LCD_MIPI
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_LCD_OTM8009A
|
|
|
|
bool "Enable LCD OTM8009A"
|
|
|
|
select BSP_USING_SDRAM
|
|
|
|
select BSP_USING_LTDC
|
|
|
|
select BSP_USING_LCD_MIPI
|
2019-04-23 18:16:06 +08:00
|
|
|
default n
|
2019-04-09 16:52:59 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
config BSP_USING_GPIO
|
|
|
|
bool "Enable GPIO"
|
|
|
|
select RT_USING_PIN
|
|
|
|
default y
|
|
|
|
|
2022-07-05 10:05:31 +08:00
|
|
|
menuconfig BSP_USING_ADC
|
|
|
|
bool "Enable ADC"
|
|
|
|
default n
|
|
|
|
select RT_USING_ADC
|
|
|
|
if BSP_USING_ADC
|
|
|
|
config BSP_USING_ADC1
|
|
|
|
bool "Enable ADC1"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_PWM
|
|
|
|
bool "Enable PWM"
|
|
|
|
default n
|
|
|
|
select RT_USING_PWM
|
|
|
|
if BSP_USING_PWM
|
|
|
|
menuconfig BSP_USING_PWM2
|
|
|
|
bool "Enable timer2 output PWM"
|
|
|
|
default n
|
|
|
|
if BSP_USING_PWM2
|
|
|
|
config BSP_USING_PWM2_CH2
|
|
|
|
bool "Enable PWM2 channel2"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
if BSP_USING_PWM2
|
|
|
|
config BSP_USING_PWM2_CH3
|
|
|
|
bool "Enable PWM2 channel3"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
menuconfig BSP_USING_PWM3
|
|
|
|
bool "Enable timer3 output PWM"
|
|
|
|
default n
|
|
|
|
if BSP_USING_PWM3
|
|
|
|
config BSP_USING_PWM3_CH1
|
|
|
|
bool "Enable PWM3 channel1"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
if BSP_USING_PWM3
|
|
|
|
config BSP_USING_PWM3_CH2
|
|
|
|
bool "Enable PWM3 channel2"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
menuconfig BSP_USING_PWM12
|
|
|
|
bool "Enable timer12 output PWM"
|
|
|
|
default n
|
|
|
|
if BSP_USING_PWM12
|
|
|
|
config BSP_USING_PWM12_CH1
|
|
|
|
bool "Enable PWM12 channel1"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
if BSP_USING_PWM12
|
|
|
|
config BSP_USING_PWM12_CH2
|
|
|
|
bool "Enable PWM12 channel2"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2024-03-08 07:54:25 +08:00
|
|
|
menuconfig BSP_USING_TIM
|
|
|
|
bool "Enable timer"
|
|
|
|
default n
|
|
|
|
select RT_USING_HWTIMER
|
|
|
|
if BSP_USING_TIM
|
|
|
|
config BSP_USING_TIM6
|
|
|
|
bool "Enable TIM6"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2019-04-09 16:52:59 +08:00
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Enable UART"
|
|
|
|
select RT_USING_SERIAL
|
2022-10-10 09:45:25 +08:00
|
|
|
default n
|
2019-04-09 16:52:59 +08:00
|
|
|
if BSP_USING_UART
|
2019-04-10 10:48:08 +08:00
|
|
|
config BSP_USING_UART3
|
|
|
|
bool "Enable UART3"
|
2022-10-10 09:45:25 +08:00
|
|
|
default n
|
2019-04-09 16:52:59 +08:00
|
|
|
|
2019-04-11 10:24:43 +08:00
|
|
|
config BSP_UART3_RX_USING_DMA
|
|
|
|
bool "Enable UART3 RX DMA"
|
|
|
|
depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
|
|
|
|
default n
|
2019-04-09 16:52:59 +08:00
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-23 18:16:06 +08:00
|
|
|
menuconfig BSP_USING_I2C1
|
|
|
|
bool "Enable I2C1 BUS (software simulation)"
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
select RT_USING_PIN
|
2019-04-26 14:52:53 +08:00
|
|
|
default n
|
2019-04-23 18:16:06 +08:00
|
|
|
if BSP_USING_I2C1
|
2023-01-09 10:14:23 +08:00
|
|
|
comment "Notice: PB8 --> 24; PB9 --> 25"
|
2019-04-23 18:16:06 +08:00
|
|
|
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
|
2019-04-09 16:52:59 +08:00
|
|
|
|
2019-04-26 14:52:53 +08:00
|
|
|
menuconfig BSP_USING_SPI
|
|
|
|
bool "Enable SPI BUS"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
if BSP_USING_SPI
|
2024-03-10 01:54:44 +08:00
|
|
|
config BSP_USING_SPI2
|
|
|
|
bool "Enable SPI2 Bus"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_SPI2_TX_USING_DMA
|
|
|
|
bool "Enable SPI2 TX DMA"
|
|
|
|
depends on BSP_USING_SPI2
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_SPI2_RX_USING_DMA
|
|
|
|
bool "Enable SPI2 RX DMA"
|
|
|
|
depends on BSP_USING_SPI2
|
|
|
|
select BSP_SPI2_TX_USING_DMA
|
|
|
|
default n
|
|
|
|
|
2019-04-26 14:52:53 +08:00
|
|
|
config BSP_USING_SPI3
|
|
|
|
bool "Enable SPI3 BUS"
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
2019-04-26 14:52:53 +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
|
|
|
|
2019-04-26 14:52:53 +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
|
2019-04-26 14:52:53 +08:00
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-11 10:24:43 +08:00
|
|
|
config BSP_USING_QSPI
|
|
|
|
bool "Enable QSPI BUS"
|
|
|
|
select RT_USING_QSPI
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_ON_CHIP_FLASH
|
|
|
|
bool "Enable on-chip FLASH"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_FMC
|
2019-04-26 14:52:53 +08:00
|
|
|
bool "Enable FMC"
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-26 14:52:53 +08:00
|
|
|
config BSP_USING_SDIO
|
|
|
|
bool "Enable SDIO"
|
|
|
|
select RT_USING_SDIO
|
|
|
|
select RT_USING_DFS
|
2019-04-11 10:24:43 +08:00
|
|
|
default n
|
|
|
|
|
2019-10-27 21:06:27 +08:00
|
|
|
config BSP_USING_USBD
|
2019-04-11 10:24:43 +08:00
|
|
|
bool "Enable OTGFS as USB device"
|
|
|
|
select RT_USING_USB_DEVICE
|
|
|
|
default n
|
2019-04-22 16:03:03 +08:00
|
|
|
|
|
|
|
config BSP_USING_LTDC
|
|
|
|
bool "Enable LTDC"
|
|
|
|
default n
|
2024-06-11 12:16:39 +08:00
|
|
|
source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-09 16:52:59 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
|
|
|
|
endmenu
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-09 16:52:59 +08:00
|
|
|
endmenu
|