123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- menu "Hardware Drivers Config"
- menu "Onboard Peripheral Drivers"
- config BSP_USING_USB_TO_USART
- bool "Enable USB TO USART (uart2)"
- select BSP_USING_UART
- select BSP_USING_UART2
- default y
- config BSP_USING_SERVO
- bool "Enable Servo"
- select BSP_USING_PWM
- select BSP_USING_PWM4
- select BSP_USING_PWM4_CH3
- 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_STM32_UART_V1_TX_TIMEOUT
- int "UART TX timeout"
- default 2000
- depends on RT_USING_SERIAL_V1
- config BSP_USING_UART2
- bool "Enable UART2"
- default y
- config BSP_USING_UART3
- bool "Enable UART3"
- default y
- #config BSP_UART2_RX_USING_DMA
- # bool "Enable UART2 RX DMA"
- # depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
- # default n
- endif
- menuconfig BSP_USING_I2C1
- bool "Enable I2C1 BUS"
- 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 (PB8)"
- range 0 143
- default 24
- config BSP_I2C1_SDA_PIN
- int "I2C1 sda pin number (PB9)"
- range 0 143
- default 25
- endif
- menuconfig BSP_USING_PWM
- bool "Enable PWM"
- select RT_USING_PWM
- default n
- if BSP_USING_PWM
- menuconfig BSP_USING_PWM2
- bool "Enable PWM2"
- default n
- if BSP_USING_PWM2
- config BSP_USING_PWM2_CH1
- bool "Enable PWM2_CH1"
- default y
- config BSP_USING_PWM2_CH2
- bool "Enable PWM2_CH2"
- default y
- endif
- menuconfig BSP_USING_PWM3
- bool "Enable PWM3"
- default y
- if BSP_USING_PWM3
- config BSP_USING_PWM3_CH1
- bool "Enable PWM3_CH1(PA6,Blue LED)"
- default y
- config BSP_USING_PWM3_CH2
- bool "Enable PWM3_CH2(PA7,Green LED)"
- default n
- config BSP_USING_PWM3_CH3
- bool "Enable PWM3_CH3(PB0,Red LED)"
- default n
- config BSP_USING_PWM3_CH4
- bool "Enable PWM3_CH4"
- default n
- endif
- menuconfig BSP_USING_PWM4
- bool "Enable PWM4"
- default n
- if BSP_USING_PWM4
- config BSP_USING_PWM4_CH1
- bool "Enable PWM4_CH1"
- default n
- config BSP_USING_PWM4_CH2
- bool "Enable PWM4_CH2"
- default n
- config BSP_USING_PWM4_CH3
- bool "Enable PWM4_CH3(PB8,Servo)"
- default y
- config BSP_USING_PWM4_CH4
- bool "Enable PWM4_CH4(PB9,Beeper)"
- default y
- endif
- endif
- menuconfig BSP_USING_PULSE_ENCODER
- bool "Enable Pulse Encoder"
- select RT_USING_PULSE_ENCODER
- default n
- if BSP_USING_PULSE_ENCODER
- config BSP_USING_PULSE_ENCODER1
- bool "Enable Pulse Encoder1"
- default y
- endif
- menuconfig BSP_USING_ADC
- bool "Enable ADC"
- select RT_USING_ADC
- default n
- if BSP_USING_ADC
- config BSP_USING_ADC1
- bool "Enable ADC1"
- default y
- endif
- source "$(BSP_DIR)/../libraries/HAL_Drivers/drivers/Kconfig"
- endmenu
- menu "Board extended module Drivers"
- endmenu
- endmenu
|