Kconfig 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32F091RC
  3. bool
  4. select SOC_SERIES_STM32F0
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. config BSP_USING_USB_TO_USART
  8. bool "Enable USB TO USART (uart2)"
  9. select BSP_USING_UART2
  10. default y
  11. endmenu
  12. menu "On-chip Peripheral Drivers"
  13. config BSP_USING_GPIO
  14. bool "Enable GPIO"
  15. select RT_USING_PIN
  16. default y
  17. config BSP_USING_UART1
  18. bool "Enable UART1"
  19. select RT_USING_SERIAL
  20. default n
  21. config BSP_USING_UART2
  22. bool "Enable UART2"
  23. select RT_USING_SERIAL
  24. default y
  25. config BSP_USING_SPI1
  26. bool "Enable SPI1 BUS"
  27. select RT_USING_SPI
  28. default n
  29. menuconfig BSP_USING_I2C1
  30. bool "Enable I2C1 BUS (software simulation)"
  31. default n
  32. select RT_USING_I2C
  33. select RT_USING_I2C_BITOPS
  34. select RT_USING_PIN
  35. if BSP_USING_I2C1
  36. config BSP_I2C1_SCL_PIN
  37. int "i2c1 scl pin number"
  38. range 1 216
  39. default 34
  40. config BSP_I2C1_SDA_PIN
  41. int "I2C1 sda pin number"
  42. range 1 216
  43. default 35
  44. endif
  45. menuconfig BSP_USING_TIM
  46. bool "Enable timer"
  47. default n
  48. select RT_USING_HWTIMER
  49. if BSP_USING_TIM
  50. config BSP_USING_TIM14
  51. bool "Enable TIM14"
  52. default n
  53. config BSP_USING_TIM16
  54. bool "Enable TIM16"
  55. default n
  56. config BSP_USING_TIM17
  57. bool "Enable TIM17"
  58. default n
  59. endif
  60. menuconfig BSP_USING_PWM
  61. bool "Enable pwm"
  62. default n
  63. select RT_USING_PWM
  64. if BSP_USING_PWM
  65. menuconfig BSP_USING_PWM2
  66. bool "Enable timer2 output pwm"
  67. default n
  68. if BSP_USING_PWM2
  69. config BSP_USING_PWM2_CH4
  70. bool "Enable PWM2 channel4"
  71. default n
  72. endif
  73. endif
  74. menuconfig BSP_USING_ADC
  75. bool "Enable ADC"
  76. default n
  77. select RT_USING_ADC
  78. if BSP_USING_ADC
  79. config BSP_USING_ADC1
  80. bool "Enable ADC1"
  81. default n
  82. endif
  83. config BSP_USING_ON_CHIP_FLASH
  84. bool "Enable on-chip FLASH"
  85. default n
  86. config BSP_USING_ONCHIP_RTC
  87. bool "Enable RTC"
  88. select RT_USING_RTC
  89. select RT_USING_LIBC
  90. default n
  91. config BSP_USING_WDT
  92. bool "Enable Watchdog Timer"
  93. select RT_USING_WDT
  94. default n
  95. endmenu
  96. menu "Board extended module Drivers"
  97. endmenu
  98. endmenu