Kconfig 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F411RE
  3. bool
  4. select SOC_SERIES_STM32F4
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. endmenu
  8. menu "On-chip Peripheral Drivers"
  9. config BSP_USING_GPIO
  10. bool "Enable GPIO"
  11. select RT_USING_PIN
  12. default y
  13. menuconfig BSP_USING_UART
  14. bool "Enable UART"
  15. default y
  16. select RT_USING_SERIAL
  17. if BSP_USING_UART
  18. config BSP_USING_UART2
  19. bool "Enable UART2"
  20. default y
  21. config BSP_UART2_RX_USING_DMA
  22. bool "Enable UART2 RX DMA"
  23. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  24. default n
  25. endif
  26. menuconfig BSP_USING_I2C1
  27. bool "Enable I2C1 BUS (software simulation)"
  28. default n
  29. select RT_USING_I2C
  30. select RT_USING_I2C_BITOPS
  31. select RT_USING_PIN
  32. if BSP_USING_I2C1
  33. config BSP_I2C1_SCL_PIN
  34. int "i2c1 scl pin number"
  35. range 0 80
  36. default 30
  37. config BSP_I2C1_SDA_PIN
  38. int "I2C1 sda pin number"
  39. range 0 80
  40. default 31
  41. endif
  42. menuconfig BSP_USING_PWM
  43. bool "Enable pwm"
  44. default n
  45. select RT_USING_PWM
  46. if BSP_USING_PWM
  47. menuconfig BSP_USING_PWM3
  48. bool "Enable timer3 output pwm"
  49. default n
  50. if BSP_USING_PWM3
  51. config BSP_USING_PWM3_CH1
  52. bool "Enable PWM3 channel1 (PA6)"
  53. default n
  54. config BSP_USING_PWM3_CH2
  55. bool "Enable PWM3 channel2 (PA7)"
  56. default n
  57. config BSP_USING_PWM3_CH3
  58. bool "Enable PWM3 channel3 (PB0)"
  59. default n
  60. config BSP_USING_PWM3_CH4
  61. bool "Enable PWM3 channel4 (PB1)"
  62. default n
  63. endif
  64. endif
  65. config BSP_USING_ON_CHIP_FLASH
  66. bool "Enable on-chip FLASH"
  67. default n
  68. endmenu
  69. menu "Board extended module Drivers"
  70. endmenu
  71. endmenu