2020-03-14 17:50:53 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_STM32L496ZG
|
|
|
|
bool
|
|
|
|
select SOC_SERIES_STM32L4
|
|
|
|
select RT_USING_COMPONENTS_INIT
|
|
|
|
select RT_USING_USER_MAIN
|
|
|
|
default y
|
|
|
|
|
|
|
|
menu "Onboard Peripheral Drivers"
|
|
|
|
|
|
|
|
config BSP_USING_STLINK_TO_USART
|
|
|
|
bool "Enable STLINK TO USART (lpuart1)"
|
|
|
|
select BSP_USING_UART
|
|
|
|
select BSP_USING_LPUART1
|
|
|
|
default y
|
|
|
|
|
|
|
|
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
|
|
|
|
config BSP_USING_UART1
|
|
|
|
bool "Enable UART1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
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
|
2023-01-09 10:14:23 +08:00
|
|
|
|
|
|
|
config BSP_USING_LPUART1
|
2020-03-14 17:50:53 +08:00
|
|
|
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
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-11-27 17:22:24 +08:00
|
|
|
menuconfig BSP_USING_I2C
|
|
|
|
bool "Enable I2C BUS"
|
|
|
|
default n
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
select RT_USING_PIN
|
|
|
|
if BSP_USING_I2C
|
|
|
|
menuconfig BSP_USING_I2C3
|
|
|
|
bool "Enable I2C3 BUS"
|
|
|
|
default y
|
|
|
|
if BSP_USING_I2C3
|
2023-01-09 10:14:23 +08:00
|
|
|
comment "Notice: PC0 --> 32; PC1 --> 33"
|
2021-11-27 17:22:24 +08:00
|
|
|
config BSP_I2C3_SCL_PIN
|
|
|
|
int "i2c3 scl pin number"
|
|
|
|
range 1 176
|
|
|
|
default 32
|
|
|
|
config BSP_I2C3_SDA_PIN
|
|
|
|
int "I2C3 sda pin number"
|
|
|
|
range 1 176
|
|
|
|
default 33
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_I2C4
|
|
|
|
bool "Enable I2C4 BUS"
|
|
|
|
default n
|
|
|
|
if BSP_USING_I2C4
|
2023-01-09 10:14:23 +08:00
|
|
|
comment "Notice: PC1 --> 33; PD6 --> 54"
|
2021-11-27 17:22:24 +08:00
|
|
|
config BSP_I2C4_SCL_PIN
|
|
|
|
int "i2c4 scl pin number"
|
|
|
|
range 1 176
|
|
|
|
default 54
|
|
|
|
config BSP_I2C4_SDA_PIN
|
|
|
|
int "I2C4 sda pin number"
|
|
|
|
range 1 176
|
|
|
|
default 33
|
|
|
|
endif
|
|
|
|
endif
|
2020-03-14 17:50:53 +08:00
|
|
|
|
|
|
|
config BSP_USING_ON_CHIP_FLASH
|
2022-06-13 21:15:12 +08:00
|
|
|
bool "Enable on-chip FLASH"
|
|
|
|
select RT_USING_FAL
|
|
|
|
default n
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2022-06-13 21:15:12 +08:00
|
|
|
config BSP_USING_ON_CHIP_FLASH_FATFS
|
|
|
|
bool "Enable onchip flash with FatFS"
|
|
|
|
depends on BSP_USING_ON_CHIP_FLASH
|
2022-06-09 14:28:36 +08:00
|
|
|
select RT_USING_DFS
|
|
|
|
select RT_USING_DFS_ELMFAT
|
2020-03-14 17:50:53 +08:00
|
|
|
default n
|
2021-08-10 10:54:58 +08:00
|
|
|
|
|
|
|
config BSP_USING_USBD
|
|
|
|
bool "Enable OTGFS as USB device"
|
|
|
|
select RT_USING_USB_DEVICE
|
2023-01-09 10:14:23 +08:00
|
|
|
default n
|
|
|
|
|
2020-03-14 17:50:53 +08:00
|
|
|
source "../libraries/HAL_Drivers/Kconfig"
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2020-03-14 17:50:53 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
endmenu
|