rt-thread/bsp/stm32/stm32f405zg-mini-template/board/Kconfig

132 lines
3.1 KiB
Plaintext
Raw Normal View History

menu "Hardware Drivers Config"
config SOC_STM32F405ZG
bool
select SOC_SERIES_STM32F4
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Onboard Peripheral Drivers"
config BSP_USING_SPI_FLASH
bool "Enable SPI FLASH (W25Q64 spi2)"
select BSP_USING_SPI
select BSP_USING_SPI2
select RT_USING_SFUD
select RT_SFUD_USING_SFDP
default n
config BSP_USING_EEPROM
bool "Enable I2C EEPROM (i2c1)"
select BSP_USING_I2C
select BSP_USING_I2C1
default n
config BSP_USING_RGB
bool "Enable RGB LED (timer10/11/13 channel2)"
select RT_USING_PWM
select BSP_USING_PWM
select BSP_USING_PWM10
select BSP_USING_PWM10_CH1
select BSP_USING_PWM11
select BSP_USING_PWM11_CH1
select BSP_USING_PWM13
select BSP_USING_PWM13_CH1
default n
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 y
endif
menuconfig BSP_USING_SPI
bool "Enable SPI BUS"
default n
select RT_USING_SPI
if BSP_USING_SPI
config BSP_USING_SPI2
bool "Enable SPI2 BUS"
default n
endif
menuconfig BSP_USING_I2C
bool "Enable I2C BUS"
default n
select RT_USING_I2C
if BSP_USING_I2C
config BSP_USING_I2C1
bool "Enable I2C1 BUS"
default n
config BSP_USING_I2C2
bool "Enable I2C2 BUS"
default n
endif
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
menuconfig BSP_USING_PWM
bool "Enable PWM"
default n
select RT_USING_PWM
if BSP_USING_PWM
menuconfig BSP_USING_PWM10
bool "Enable timer10 output PWM"
default n
if BSP_USING_PWM10
config BSP_USING_PWM10_CH1
bool "Enable PWM10 channel1"
default n
endif
menuconfig BSP_USING_PWM11
bool "Enable timer11 output PWM"
default n
if BSP_USING_PWM11
config BSP_USING_PWM11_CH1
bool "Enable PWM11 channel1"
default n
endif
menuconfig BSP_USING_PWM13
bool "Enable timer13 output PWM"
default n
if BSP_USING_PWM13
config BSP_USING_PWM13_CH1
bool "Enable PWM13 channel1"
default n
endif
endif
source "../libraries/HAL_Drivers/Kconfig"
endmenu
menu "Board extended module Drivers"
endmenu
endmenu