2019-04-09 14:10:27 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_STM32L4R9AI
|
|
|
|
bool
|
|
|
|
select SOC_SERIES_STM32L4
|
2019-09-11 12:06:43 +08:00
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
2019-04-09 14:10:27 +08:00
|
|
|
default y
|
|
|
|
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
|
2019-04-24 09:35:06 +08:00
|
|
|
config BSP_USING_STLINK_TO_USART
|
|
|
|
bool "Enable STLINK TO USART (uart3)"
|
|
|
|
select BSP_USING_UART
|
|
|
|
select BSP_USING_UART3
|
|
|
|
default y
|
|
|
|
|
|
|
|
config BSP_USING_DSI
|
|
|
|
bool "Enable LCD"
|
|
|
|
select BSP_USING_SRAM
|
|
|
|
select BSP_USING_GFXMMU
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-24 09:35:06 +08:00
|
|
|
menu "Enable Touch"
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-24 09:35:06 +08:00
|
|
|
config BSP_USING_TOUCH
|
|
|
|
bool "Enable Touch drivers"
|
|
|
|
select BSP_USING_I2C1
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
|
|
|
if BSP_USING_TOUCH
|
2019-04-24 09:51:44 +08:00
|
|
|
config BSP_TOUCH_INT_PIN
|
|
|
|
int "Touch interrupt pin"
|
|
|
|
default 34
|
|
|
|
config BSP_I2C1_NAME
|
|
|
|
string "I2C1 Name for Touch"
|
2023-01-09 10:14:23 +08:00
|
|
|
default i2c1
|
2019-04-24 09:51:44 +08:00
|
|
|
endif
|
2019-04-24 09:35:06 +08:00
|
|
|
|
|
|
|
config TOUCH_IC_FT3X67
|
|
|
|
bool "FT3X67"
|
|
|
|
depends on BSP_USING_TOUCH
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
|
|
|
endmenu
|
2019-04-09 14:10:27 +08:00
|
|
|
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
|
2019-04-24 09:35:06 +08:00
|
|
|
config BSP_USING_UART3
|
|
|
|
bool "Enable UART3"
|
|
|
|
default y
|
2019-04-09 14:10:27 +08:00
|
|
|
endif
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-24 09:35:06 +08:00
|
|
|
config BSP_USING_SRAM
|
|
|
|
bool "Enable SRAM"
|
|
|
|
select BSP_USING_FMC
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-24 09:35:06 +08:00
|
|
|
menuconfig BSP_USING_I2C1
|
|
|
|
bool "Enable I2C1 BUS (software simulation)"
|
|
|
|
default n
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
select RT_USING_PIN
|
|
|
|
if BSP_USING_I2C1
|
|
|
|
config BSP_I2C1_SCL_PIN
|
|
|
|
int "i2c1 scl pin number"
|
|
|
|
range 1 216
|
|
|
|
default 116
|
|
|
|
config BSP_I2C1_SDA_PIN
|
|
|
|
int "I2C1 sda pin number"
|
|
|
|
range 1 216
|
|
|
|
default 117
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_GFXMMU
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_FMC
|
|
|
|
bool
|
|
|
|
default n
|
2019-07-18 11:01:19 +08:00
|
|
|
source "../libraries/HAL_Drivers/Kconfig"
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2019-04-09 14:10:27 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "Board extended module Drivers"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|