Kconfig 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. menu "Hardware Drivers Config"
  2. config SOC_MCXN947
  3. bool
  4. select SOC_MCXN947_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. bool "Enable UART"
  19. default y
  20. select RT_USING_SERIAL
  21. if BSP_USING_UART
  22. config BSP_USING_UART4
  23. bool "Enable UART4"
  24. default y
  25. config BSP_USING_UART5
  26. bool "Enable UART5"
  27. default n
  28. config BSP_USING_UART2
  29. bool "Enable UART2"
  30. default n
  31. endif
  32. menuconfig BSP_USING_I2C
  33. config BSP_USING_I2C
  34. bool "Enable I2C"
  35. select RT_USING_I2C
  36. default y
  37. if BSP_USING_I2C
  38. config BSP_USING_I2C0
  39. bool "Enable Flexcomm0 I2C"
  40. default y
  41. config BSP_USING_I2C1
  42. bool "Enable Flexcomm1 I2C"
  43. default y
  44. endif
  45. menuconfig BSP_USING_SPI
  46. config BSP_USING_SPI
  47. bool "Enable SPI"
  48. select RT_USING_SPI
  49. select BSP_USING_PIN
  50. default y
  51. if BSP_USING_SPI
  52. config BSP_USING_SPI1
  53. bool "Enable Flexcomm1 as SPI"
  54. default n
  55. config BSP_USING_SPI3
  56. bool "Enable Flexcomm3 as SPI"
  57. default n
  58. config BSP_USING_SPI6
  59. bool "Enable Flexcomm6 as SPI"
  60. default n
  61. if BSP_USING_SPI6
  62. config BSP_USING_SPI6_SAMPLE
  63. bool "Enable SPI6 BUS Sample"
  64. default n
  65. endif
  66. config BSP_USING_SPI7
  67. bool "Enable Flexcomm7 as SPI"
  68. default n
  69. endif
  70. menuconfig BSP_USING_ADC
  71. config BSP_USING_ADC
  72. bool "Enable ADC Channel"
  73. select RT_USING_ADC
  74. default y
  75. if BSP_USING_ADC
  76. config BSP_USING_ADC0
  77. bool
  78. default n
  79. config BSP_USING_ADC0_CH0
  80. bool "Enable ADC0 Channel0"
  81. select BSP_USING_ADC0
  82. default y
  83. config BSP_USING_ADC0_CH1
  84. bool "Enable ADC0 Channel1"
  85. select BSP_USING_ADC0
  86. default n
  87. config BSP_USING_ADC0_CH8
  88. bool "Enable ADC0 Channel8"
  89. select BSP_USING_ADC0
  90. default n
  91. config BSP_USING_ADC0_CH13
  92. bool "Enable ADC0 Channel13"
  93. select BSP_USING_ADC0
  94. default n
  95. config BSP_USING_ADC0_CH26
  96. bool "Enable ADC0 Channel26"
  97. select BSP_USING_ADC0
  98. default n
  99. endif
  100. menuconfig BSP_USING_DAC
  101. config BSP_USING_DAC
  102. bool "Enable DAC Channel"
  103. select RT_USING_DAC
  104. default y
  105. if BSP_USING_DAC
  106. config BSP_USING_DAC0
  107. bool "Enable DAC0 Channel"
  108. default n
  109. config BSP_USING_DAC1
  110. bool "Enable DAC1 Channel"
  111. default n
  112. config BSP_USING_DAC2
  113. bool "Enable DAC2 Channel"
  114. default n
  115. endif
  116. config BSP_USING_SDIO
  117. bool "Enable SDIO SD Card Interface"
  118. select RT_USING_SDIO
  119. select RT_USING_DFS
  120. select RT_USING_DFS_ELMFAT
  121. default y
  122. config BSP_USING_ETH
  123. bool "Enable Ethernet"
  124. default n
  125. select RT_USING_LWIP
  126. select RT_USING_NETDEV
  127. select RT_USING_SAL
  128. config BSP_USING_RTC
  129. bool "Enable RTC"
  130. select RT_USING_RTC
  131. default y
  132. config BSP_USING_WDT
  133. bool "Enable WatchDog"
  134. select RT_USING_WDT
  135. default n
  136. menuconfig BSP_USING_HWTIMER
  137. config BSP_USING_HWTIMER
  138. bool "Enable Timer"
  139. select RT_USING_HWTIMER
  140. default y
  141. menuconfig BSP_USING_PWM
  142. config BSP_USING_PWM
  143. bool "Enable PWM"
  144. select RT_USING_PWM
  145. default y
  146. if BSP_USING_PWM
  147. config BSP_USING_LEDG_PWM
  148. bool "Enable on-board green LED as PWM output (pwm0, channel 3)"
  149. default y
  150. endif
  151. menuconfig BSP_USING_USB
  152. bool "Enable USB"
  153. default n
  154. if BSP_USING_USB
  155. config BSP_USING_USB_DEVICE
  156. bool "Enable USB Device, default is msc ramdisk"
  157. default n
  158. select RT_USING_CHERRYUSB
  159. select RT_CHERRYUSB_DEVICE
  160. select RT_CHERRYUSB_DEVICE_SPEED_HS
  161. select RT_CHERRYUSB_DEVICE_CHIPIDEA_MCX
  162. select RT_CHERRYUSB_DEVICE_MSC
  163. select RT_CHERRYUSB_DEVICE_TEMPLATE_MSC
  164. config BSP_USING_USB_HOST
  165. bool "Enable USB Host"
  166. default n
  167. select RT_USING_CHERRYUSB
  168. select RT_CHERRYUSB_HOST
  169. select RT_CHERRYUSB_HOST_EHCI_MCX
  170. select RT_CHERRYUSB_HOST_CDC_ACM
  171. select RT_CHERRYUSB_HOST_HID
  172. select RT_CHERRYUSB_HOST_MSC
  173. select RT_CHERRYUSB_HOST_CDC_RNDIS
  174. endif
  175. endmenu
  176. menu "Board extended module Drivers"
  177. menuconfig BSP_USING_RW007
  178. bool "Enable RW007"
  179. default n
  180. select BSP_USING_SPI
  181. select BSP_USING_SPI1
  182. select PKG_USING_RW007
  183. select RT_USING_MEMPOOL
  184. select RW007_NOT_USE_EXAMPLE_DRIVERS
  185. if BSP_USING_RW007
  186. config BOARD_RW007_SPI_BUS_NAME
  187. string "RW007 BUS NAME"
  188. default "spi1"
  189. config BOARD_RW007_CS_PIN
  190. hex "CS pin index"
  191. default 27
  192. config BOARD_RW007_INT_BUSY_PIN
  193. hex "INT/BUSY pin index"
  194. default 10
  195. config BOARD_RW007_RST_PIN
  196. hex "RESET pin index"
  197. default 28
  198. endif
  199. endmenu
  200. endmenu