Kconfig 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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_UART2
  37. bool "Enable Flexcomm2 as UART"
  38. default n
  39. if BSP_USING_UART2
  40. choice
  41. prompt "Select UART2 badurate"
  42. default HW_UART2_BAUDRATE_115200
  43. config HW_UART2_BAUDRATE_9600
  44. bool "Badurate 9600"
  45. config HW_UART2_BAUDRATE_115200
  46. bool "Badurate 115200"
  47. endchoice
  48. endif
  49. endif
  50. menuconfig BSP_USING_I2C
  51. config BSP_USING_I2C
  52. bool "Enable I2C"
  53. select RT_USING_I2C
  54. default y
  55. if BSP_USING_I2C
  56. config BSP_USING_I2C1
  57. bool "Enable Flexcomm1 I2C"
  58. default y
  59. if BSP_USING_I2C1
  60. choice
  61. prompt "Select I2C1 badurate"
  62. default HW_I2C1_BAUDRATE_100kHZ
  63. config HW_I2C1_BAUDRATE_100kHZ
  64. bool "Badurate 100kHZ"
  65. config HW_I2C1_BAUDRATE_400kHZ
  66. bool "Badurate 400kHZ"
  67. endchoice
  68. endif
  69. config BSP_USING_I2C4
  70. bool "Enable Flexcomm4 I2C"
  71. default y
  72. if BSP_USING_I2C4
  73. choice
  74. prompt "Select I2C4 badurate"
  75. default HW_I2C4_BAUDRATE_100kHZ
  76. config HW_I2C4_BAUDRATE_100kHZ
  77. bool "Badurate 100kHZ"
  78. config HW_I2C4_BAUDRATE_400kHZ
  79. bool "Badurate 400kHZ"
  80. endchoice
  81. endif
  82. endif
  83. menuconfig BSP_USING_SPI
  84. config BSP_USING_SPI
  85. bool "Enable SPI"
  86. select RT_USING_SPI
  87. default y
  88. if BSP_USING_SPI
  89. config BSP_USING_SPI3
  90. bool "Enable Flexcomm3 as SPI"
  91. default n
  92. config BSP_USING_SPI8
  93. bool "Enable Flexcomm8 as High Speed SPI"
  94. default y
  95. endif
  96. menuconfig BSP_USING_ADC
  97. config BSP_USING_ADC
  98. bool "Enable ADC Channel"
  99. select RT_USING_ADC
  100. default y
  101. if BSP_USING_ADC
  102. config BSP_USING_ADC0_CH0
  103. bool "Enable ADC0 Channel0"
  104. default y
  105. config BSP_USING_ADC0_CH1
  106. bool "Enable ADC0 Channel1"
  107. default n
  108. endif
  109. config BSP_USING_SDIO
  110. bool "Enable SDIO SD Card Interface"
  111. select RT_USING_SDIO
  112. select RT_USING_DFS
  113. select RT_USING_DFS_ELMFAT
  114. select RT_LIBC_USING_TIME
  115. default y
  116. config BSP_USING_RTC
  117. bool "Enable RTC"
  118. select RT_USING_RTC
  119. default y
  120. config BSP_USING_WDT
  121. bool "Enable WatchDog"
  122. select RT_USING_WDT
  123. default n
  124. menuconfig BSP_USING_HWTIMER
  125. config BSP_USING_HWTIMER
  126. bool "Enable Timer"
  127. select RT_USING_HWTIMER
  128. default y
  129. if BSP_USING_HWTIMER
  130. config BSP_USING_CTIMER0
  131. bool "Enable CIMER0"
  132. default y
  133. config BSP_USING_CTIMER1
  134. bool "Enable CIMER1"
  135. default n
  136. config BSP_USING_CTIMER3
  137. bool "Enable CIMER3"
  138. default n
  139. config BSP_USING_CTIMER4
  140. bool "Enable CIMER4"
  141. default n
  142. endif
  143. menuconfig BSP_USING_PWM
  144. config BSP_USING_PWM
  145. bool "Enable PWM"
  146. select RT_USING_PWM
  147. default y
  148. if BSP_USING_PWM
  149. config BSP_USING_CTIMER2_MAT0
  150. bool "Enable CIMER2 Match0 as PWM output"
  151. default y
  152. config BSP_USING_CTIMER2_MAT1
  153. bool "Enable CIMER2 Match1 as PWM output"
  154. default n
  155. config BSP_USING_CTIMER2_MAT2
  156. bool "Enable CIMER2 Match2 as PWM output"
  157. default n
  158. endif
  159. endmenu
  160. menu "Onboard Peripheral Drivers"
  161. config BSP_USING_LED
  162. bool "Enable RGB LED"
  163. select RT_USING_LED
  164. default y
  165. config BSP_USING_KEY
  166. bool "Enable Button "
  167. select RT_USING_KEY
  168. default y
  169. config BSP_USING_MMA8562
  170. bool "Enable MMA8562"
  171. select BSP_USING_I2C4
  172. default y
  173. if BSP_USING_MMA8562
  174. config BSP_USING_MMA8562I2C
  175. string "the device name for 3-Axis Sensor"
  176. default "i2c4"
  177. endif
  178. endmenu
  179. menu "Board extended module Drivers"
  180. endmenu
  181. endmenu