Kconfig 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. menu "Hardware Drivers Config"
  2. config SOC_STM32L4R5ZI
  3. bool
  4. select SOC_SERIES_STM32L4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "Onboard Peripheral Drivers"
  9. config BSP_USING_STLINK_TO_USART
  10. bool "Enable STLINK TO USART (lpuart1)"
  11. select BSP_USING_UART
  12. select BSP_USING_LPUART1
  13. default y
  14. endmenu
  15. menu "On-chip Peripheral Drivers"
  16. config BSP_USING_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. menuconfig BSP_USING_UART
  21. bool "Enable UART"
  22. default y
  23. select RT_USING_SERIAL
  24. if BSP_USING_UART
  25. config RT_SERIAL_USING_DMA
  26. bool "Enable uart using DMA"
  27. default n
  28. config BSP_USING_LPUART1
  29. bool "Enable LPUART1"
  30. default y
  31. config BSP_LPUART1_RX_USING_DMA
  32. bool "Enable LPUART1 RX DMA"
  33. depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA
  34. default n
  35. config BSP_USING_UART1
  36. bool "Enable UART1"
  37. default n
  38. config BSP_UART1_RX_USING_DMA
  39. bool "Enable UART1 RX DMA"
  40. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  41. default n
  42. config BSP_USING_UART2
  43. bool "Enable UART2"
  44. default n
  45. config BSP_UART2_RX_USING_DMA
  46. bool "Enable UART2 RX DMA"
  47. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  48. default n
  49. config BSP_USING_UART3
  50. bool "Enable UART3"
  51. default n
  52. config BSP_UART3_RX_USING_DMA
  53. bool "Enable UART3 RX DMA"
  54. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  55. default n
  56. config BSP_USING_UART4
  57. bool "Enable UART4"
  58. default n
  59. config BSP_UART4_RX_USING_DMA
  60. bool "Enable UART4 RX DMA"
  61. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  62. default n
  63. config BSP_USING_UART5
  64. bool "Enable UART5"
  65. default n
  66. config BSP_UART5_RX_USING_DMA
  67. bool "Enable UART5 RX DMA"
  68. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  69. default n
  70. endif
  71. config BSP_USING_ON_CHIP_FLASH
  72. bool "Enable on-chip FLASH"
  73. default n
  74. config BSP_USING_USBD
  75. bool "Enable OTGFS as USB device"
  76. select RT_USING_USB_DEVICE
  77. default n
  78. config BSP_USING_WDT
  79. bool "Enable Watchdog Timer"
  80. select RT_USING_WDT
  81. default n
  82. menuconfig BSP_USING_ADC
  83. bool "Enable ADC"
  84. default n
  85. select RT_USING_ADC
  86. if BSP_USING_ADC
  87. config BSP_USING_ADC1
  88. bool "Enable ADC1"
  89. default n
  90. endif
  91. menuconfig BSP_USING_ONCHIP_RTC
  92. bool "Enable RTC"
  93. select RT_USING_RTC
  94. default n
  95. if BSP_USING_ONCHIP_RTC
  96. choice
  97. prompt "Select clock source"
  98. default BSP_RTC_USING_LSE
  99. config BSP_RTC_USING_LSE
  100. bool "RTC USING LSE"
  101. config BSP_RTC_USING_LSI
  102. bool "RTC USING LSI"
  103. endchoice
  104. endif
  105. menuconfig BSP_USING_SPI
  106. bool "Enable SPI BUS"
  107. default n
  108. select RT_USING_SPI
  109. if BSP_USING_SPI
  110. config BSP_USING_SPI1
  111. bool "Enable SPI1 BUS"
  112. default n
  113. config BSP_SPI1_TX_USING_DMA
  114. bool "Enable SPI1 TX DMA"
  115. depends on BSP_USING_SPI1
  116. default n
  117. config BSP_SPI1_RX_USING_DMA
  118. bool "Enable SPI1 RX DMA"
  119. depends on BSP_USING_SPI1
  120. select BSP_SPI1_TX_USING_DMA
  121. default n
  122. config BSP_USING_SPI2
  123. bool "Enable SPI2 BUS"
  124. default n
  125. config BSP_SPI2_TX_USING_DMA
  126. bool "Enable SPI2 TX DMA"
  127. depends on BSP_USING_SPI2
  128. default n
  129. config BSP_SPI2_RX_USING_DMA
  130. bool "Enable SPI2 RX DMA"
  131. depends on BSP_USING_SPI2
  132. select BSP_SPI2_TX_USING_DMA
  133. default n
  134. config BSP_USING_SPI3
  135. bool "Enable SPI3 BUS"
  136. default n
  137. config BSP_SPI3_TX_USING_DMA
  138. bool "Enable SPI3 TX DMA"
  139. depends on BSP_USING_SPI3
  140. default n
  141. config BSP_SPI3_RX_USING_DMA
  142. bool "Enable SPI3 RX DMA"
  143. depends on BSP_USING_SPI3
  144. select BSP_SPI3_TX_USING_DMA
  145. default n
  146. endif
  147. menuconfig BSP_USING_I2C
  148. bool "Enable using I2C BUS (software simulation)"
  149. default n
  150. select RT_USING_I2C
  151. select RT_USING_I2C_BITOPS
  152. select RT_USING_PIN
  153. if BSP_USING_I2C
  154. menuconfig BSP_USING_I2C1
  155. bool "Enable I2C1 BUS (software simulation)"
  156. default n
  157. if BSP_USING_I2C1
  158. config BSP_I2C1_SCL_PIN
  159. int "i2c1 scl pin number"
  160. range 1 144
  161. default 100
  162. config BSP_I2C1_SDA_PIN
  163. int "I2C1 sda pin number"
  164. range 1 144
  165. default 101
  166. endif
  167. menuconfig BSP_USING_I2C2
  168. bool "Enable I2C2 BUS (software simulation)"
  169. default n
  170. if BSP_USING_I2C2
  171. config BSP_I2C2_SCL_PIN
  172. int "i2c2 scl pin number"
  173. range 1 144
  174. default 10
  175. config BSP_I2C2_SDA_PIN
  176. int "I2C2 sda pin number"
  177. range 1 144
  178. default 11
  179. endif
  180. endif
  181. menuconfig BSP_USING_TIM
  182. bool "Enable timer"
  183. default n
  184. select RT_USING_HWTIMER
  185. if BSP_USING_TIM
  186. config BSP_USING_TIM1
  187. bool "Enable TIM1"
  188. default n
  189. config BSP_USING_TIM2
  190. bool "Enable TIM2"
  191. default n
  192. config BSP_USING_TIM3
  193. bool "Enable TIM3"
  194. default n
  195. endif
  196. menuconfig BSP_USING_PWM
  197. bool "Using PWM"
  198. default n
  199. select RT_USING_PWM
  200. if BSP_USING_PWM
  201. config BSP_USING_PWM1
  202. bool "Using PWM1"
  203. default n
  204. if BSP_USING_PWM1
  205. config BSP_USING_PWM1_CH1
  206. bool "Enable Channel 1 (PA8)"
  207. default n
  208. config BSP_USING_PWM1_CH2
  209. bool "Enable Channel 2 (PA9)"
  210. default n
  211. config BSP_USING_PWM1_CH3
  212. bool "Enable Channel 3 (PA10)"
  213. default n
  214. config BSP_USING_PWM1_CH4
  215. bool "Enable Channel 4 (PA11)"
  216. default n
  217. endif
  218. endif
  219. endmenu
  220. menu "Board extended module Drivers"
  221. endmenu
  222. endmenu