Kconfig 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. menu "Hardware Drivers Config"
  2. config SOC_LPC55S6X
  3. bool
  4. select SOC_LPC55S6X_SERIES
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Peripheral Drivers"
  9. config BSP_USING_DMA
  10. bool "Enable DMA"
  11. select RT_USING_DMA
  12. default n
  13. config BSP_USING_PIN
  14. bool "Enable GPIO"
  15. select RT_USING_PIN
  16. default y
  17. menuconfig BSP_USING_UART
  18. config BSP_USING_UART
  19. bool "Enable UART"
  20. select RT_USING_UART
  21. default y
  22. if BSP_USING_UART
  23. config BSP_USING_UART0
  24. bool "Enable Flexcomm0 as UART"
  25. default y
  26. if BSP_USING_UART0
  27. choice
  28. prompt "Select UART0 badurate"
  29. default HW_UART0_BAUDRATE_115200
  30. config HW_UART0_BAUDRATE_9600
  31. bool "Badurate 9600"
  32. config HW_UART0_BAUDRATE_115200
  33. bool "Badurate 115200"
  34. endchoice
  35. endif
  36. config BSP_USING_UART1
  37. bool "Enable Flexcomm1 as UART"
  38. default n
  39. if BSP_USING_UART1
  40. choice
  41. prompt "Select UART1 badurate"
  42. default HW_UART1_BAUDRATE_115200
  43. config HW_UART1_BAUDRATE_9600
  44. bool "Badurate 9600"
  45. config HW_UART1_BAUDRATE_115200
  46. bool "Badurate 115200"
  47. endchoice
  48. endif
  49. config BSP_USING_UART2
  50. bool "Enable Flexcomm2 as UART"
  51. default n
  52. if BSP_USING_UART2
  53. choice
  54. prompt "Select UART2 badurate"
  55. default HW_UART2_BAUDRATE_115200
  56. config HW_UART2_BAUDRATE_9600
  57. bool "Badurate 9600"
  58. config HW_UART2_BAUDRATE_115200
  59. bool "Badurate 115200"
  60. endchoice
  61. endif
  62. endif
  63. menuconfig BSP_USING_I2C
  64. config BSP_USING_I2C
  65. bool "Enable I2C"
  66. select RT_USING_I2C
  67. default n
  68. if BSP_USING_I2C
  69. config BSP_USING_I2C1
  70. bool "Enable Flexcomm1 I2C"
  71. default n
  72. if BSP_USING_I2C1
  73. choice
  74. prompt "Select I2C1 badurate"
  75. default HW_I2C1_BAUDRATE_100kHZ
  76. config HW_I2C1_BAUDRATE_100kHZ
  77. bool "Badurate 100kHZ"
  78. config HW_I2C1_BAUDRATE_400kHZ
  79. bool "Badurate 400kHZ"
  80. endchoice
  81. endif
  82. config BSP_USING_I2C4
  83. bool "Enable Flexcomm4 I2C"
  84. default n
  85. if BSP_USING_I2C4
  86. choice
  87. prompt "Select I2C4 badurate"
  88. default HW_I2C4_BAUDRATE_100kHZ
  89. config HW_I2C4_BAUDRATE_100kHZ
  90. bool "Badurate 100kHZ"
  91. config HW_I2C4_BAUDRATE_400kHZ
  92. bool "Badurate 400kHZ"
  93. endchoice
  94. endif
  95. endif
  96. menuconfig BSP_USING_SOFT_I2C
  97. bool "Enable software I2C bus"
  98. select RT_USING_I2C
  99. select RT_USING_I2C_BITOPS
  100. select RT_USING_PIN
  101. default n
  102. if BSP_USING_SOFT_I2C
  103. config BSP_USING_SOFT_I2C1
  104. bool "Enable I2C1 Bus (software simulation)"
  105. default n
  106. config BSP_USING_SOFT_I2C2
  107. bool "Enable I2C2 Bus (software simulation)"
  108. default n
  109. endif
  110. menuconfig BSP_USING_SPI
  111. config BSP_USING_SPI
  112. bool "Enable SPI"
  113. select RT_USING_SPI
  114. default n
  115. if BSP_USING_SPI
  116. config BSP_USING_SPI3
  117. bool "Enable Flexcomm3 as SPI"
  118. default n
  119. config BSP_USING_SPI8
  120. bool "Enable Flexcomm8 as High Speed SPI"
  121. default n
  122. endif
  123. menuconfig BSP_USING_SOFT_SPI
  124. bool "Enable soft SPI BUS"
  125. default n
  126. select RT_USING_PIN
  127. select RT_USING_SPI_BITOPS
  128. select RT_USING_SPI
  129. if BSP_USING_SOFT_SPI
  130. menuconfig BSP_USING_SOFT_SPI1
  131. bool "Enable soft SPI1 BUS (software simulation)"
  132. default n
  133. menuconfig BSP_USING_SOFT_SPI2
  134. bool "Enable soft SPI2 BUS (software simulation)"
  135. default n
  136. endif
  137. menuconfig BSP_USING_ADC
  138. config BSP_USING_ADC
  139. bool "Enable ADC Channel"
  140. select RT_USING_ADC
  141. default n
  142. if BSP_USING_ADC
  143. config BSP_USING_ADC0_CH0
  144. bool "Enable ADC0 Channel0"
  145. default n
  146. config BSP_USING_ADC0_CH1
  147. bool "Enable ADC0 Channel1"
  148. default n
  149. config BSP_USING_ADC0_CH8
  150. bool "Enable ADC0 Channel8"
  151. default n
  152. config BSP_USING_ADC0_CH13
  153. bool "Enable ADC0 Channel13"
  154. default n
  155. config BSP_USING_ADC0_CH26
  156. bool "Enable ADC0 Channel26"
  157. default n
  158. endif
  159. config BSP_USING_SDIO
  160. bool "Enable SDIO SD Card Interface"
  161. select RT_USING_SDIO
  162. select RT_USING_DFS
  163. select RT_USING_DFS_ELMFAT
  164. default n
  165. config BSP_USING_RTC
  166. bool "Enable RTC"
  167. select RT_USING_RTC
  168. default n
  169. config BSP_USING_WDT
  170. bool "Enable WatchDog"
  171. select RT_USING_WDT
  172. default n
  173. menuconfig BSP_USING_HWTIMER
  174. config BSP_USING_HWTIMER
  175. bool "Enable Timer"
  176. select RT_USING_HWTIMER
  177. default n
  178. if BSP_USING_HWTIMER
  179. config BSP_USING_CTIMER0
  180. bool "Enable CIMER0"
  181. default n
  182. config BSP_USING_CTIMER3
  183. bool "Enable CIMER3"
  184. default n
  185. config BSP_USING_CTIMER4
  186. bool "Enable CIMER4"
  187. default n
  188. endif
  189. menuconfig BSP_USING_PWM
  190. config BSP_USING_PWM
  191. bool "Enable PWM"
  192. select RT_USING_PWM
  193. default n
  194. if BSP_USING_PWM
  195. config BSP_USING_CTIMER1_MAT0
  196. bool "Enable CIMER1 Match0 as PWM output"
  197. default n
  198. config BSP_USING_CTIMER2_MAT0
  199. bool "Enable CIMER2 Match0 as PWM output"
  200. default n
  201. config BSP_USING_CTIMER2_MAT1
  202. bool "Enable CIMER2 Match1 as PWM output"
  203. default n
  204. config BSP_USING_CTIMER2_MAT2
  205. bool "Enable CIMER2 Match2 as PWM output"
  206. default n
  207. config BSP_USING_CTIMER3_MAT2
  208. bool "Enable CIMER3 Match2 as PWM output"
  209. default n
  210. endif
  211. endmenu
  212. menu "Onboard Peripheral Drivers"
  213. config BSP_USING_MMA8562
  214. bool "Enable MMA8562"
  215. select BSP_USING_I2C4
  216. default n
  217. if BSP_USING_MMA8562
  218. config BSP_USING_MMA8562I2C
  219. string "the device name for 3-Axis Sensor"
  220. default "i2c4"
  221. endif
  222. config BSP_USING_ARDUINO
  223. bool "Compatible with Arduino Ecosystem (RTduino)"
  224. select PKG_USING_RTDUINO
  225. select BSP_USING_UART2
  226. select BSP_USING_GPIO
  227. select BSP_USING_ADC
  228. select BSP_USING_ADC0
  229. select BSP_USING_PWM
  230. select BSP_USING_CTIMER1_MAT0
  231. select BSP_USING_CTIMER2_MAT0
  232. select BSP_USING_CTIMER2_MAT1
  233. select BSP_USING_CTIMER2_MAT2
  234. select BSP_USING_I2C
  235. select BSP_USING_I2C1
  236. imply RTDUINO_USING_SERVO
  237. imply RTDUINO_USING_WIRE
  238. default n
  239. endmenu
  240. menu "Board extended module Drivers"
  241. endmenu
  242. endmenu