Kconfig 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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. select RT_USING_LIBC
  95. default n
  96. if BSP_USING_ONCHIP_RTC
  97. choice
  98. prompt "Select clock source"
  99. default BSP_RTC_USING_LSE
  100. config BSP_RTC_USING_LSE
  101. bool "RTC USING LSE"
  102. config BSP_RTC_USING_LSI
  103. bool "RTC USING LSI"
  104. endchoice
  105. endif
  106. menuconfig BSP_USING_SPI
  107. bool "Enable SPI BUS"
  108. default n
  109. select RT_USING_SPI
  110. if BSP_USING_SPI
  111. config BSP_USING_SPI1
  112. bool "Enable SPI1 BUS"
  113. default n
  114. config BSP_SPI1_TX_USING_DMA
  115. bool "Enable SPI1 TX DMA"
  116. depends on BSP_USING_SPI1
  117. default n
  118. config BSP_SPI1_RX_USING_DMA
  119. bool "Enable SPI1 RX DMA"
  120. depends on BSP_USING_SPI1
  121. select BSP_SPI1_TX_USING_DMA
  122. default n
  123. config BSP_USING_SPI2
  124. bool "Enable SPI2 BUS"
  125. default n
  126. config BSP_SPI2_TX_USING_DMA
  127. bool "Enable SPI2 TX DMA"
  128. depends on BSP_USING_SPI2
  129. default n
  130. config BSP_SPI2_RX_USING_DMA
  131. bool "Enable SPI2 RX DMA"
  132. depends on BSP_USING_SPI2
  133. select BSP_SPI2_TX_USING_DMA
  134. default n
  135. config BSP_USING_SPI3
  136. bool "Enable SPI3 BUS"
  137. default n
  138. config BSP_SPI3_TX_USING_DMA
  139. bool "Enable SPI3 TX DMA"
  140. depends on BSP_USING_SPI3
  141. default n
  142. config BSP_SPI3_RX_USING_DMA
  143. bool "Enable SPI3 RX DMA"
  144. depends on BSP_USING_SPI3
  145. select BSP_SPI3_TX_USING_DMA
  146. default n
  147. endif
  148. menuconfig BSP_USING_I2C
  149. bool "Enable using I2C BUS (software simulation)"
  150. default n
  151. select RT_USING_I2C
  152. select RT_USING_I2C_BITOPS
  153. select RT_USING_PIN
  154. if BSP_USING_I2C
  155. menuconfig BSP_USING_I2C1
  156. bool "Enable I2C1 BUS (software simulation)"
  157. default n
  158. if BSP_USING_I2C1
  159. config BSP_I2C1_SCL_PIN
  160. int "i2c1 scl pin number"
  161. range 1 144
  162. default 100
  163. config BSP_I2C1_SDA_PIN
  164. int "I2C1 sda pin number"
  165. range 1 144
  166. default 101
  167. endif
  168. menuconfig BSP_USING_I2C2
  169. bool "Enable I2C2 BUS (software simulation)"
  170. default n
  171. if BSP_USING_I2C2
  172. config BSP_I2C2_SCL_PIN
  173. int "i2c2 scl pin number"
  174. range 1 144
  175. default 10
  176. config BSP_I2C2_SDA_PIN
  177. int "I2C2 sda pin number"
  178. range 1 144
  179. default 11
  180. endif
  181. endif
  182. menuconfig BSP_USING_TIM
  183. bool "Enable timer"
  184. default n
  185. select RT_USING_HWTIMER
  186. if BSP_USING_TIM
  187. config BSP_USING_TIM1
  188. bool "Enable TIM1"
  189. default n
  190. config BSP_USING_TIM2
  191. bool "Enable TIM2"
  192. default n
  193. config BSP_USING_TIM3
  194. bool "Enable TIM3"
  195. default n
  196. endif
  197. menuconfig BSP_USING_PWM
  198. bool "Using PWM"
  199. default n
  200. select RT_USING_PWM
  201. if BSP_USING_PWM
  202. config BSP_USING_PWM1
  203. bool "Using PWM1
  204. default n
  205. if BSP_USING_PWM1
  206. config BSP_USING_PWM1_CH1
  207. bool "Enable Channel 1 (PA8)"
  208. default n
  209. config BSP_USING_PWM1_CH2
  210. bool "Enable Channel 2 (PA9)"
  211. default n
  212. config BSP_USING_PWM1_CH3
  213. bool "Enable Channel 3 (PA10)"
  214. default n
  215. config BSP_USING_PWM1_CH4
  216. bool "Enable Channel 4 (PA11)"
  217. default n
  218. endif
  219. endif
  220. endmenu
  221. menu "Board extended module Drivers"
  222. endmenu
  223. endmenu