Kconfig 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. default y
  50. if BSP_USING_SPI
  51. config BSP_USING_SPI1
  52. bool "Enable Flexcomm1 as SPI"
  53. default n
  54. config BSP_USING_SPI3
  55. bool "Enable Flexcomm3 as SPI"
  56. default n
  57. config BSP_USING_SPI6
  58. bool "Enable Flexcomm6 as SPI"
  59. default n
  60. if BSP_USING_SPI6
  61. config BSP_USING_SPI6_SAMPLE
  62. bool "Enable SPI6 BUS Sample"
  63. default n
  64. endif
  65. config BSP_USING_SPI7
  66. bool "Enable Flexcomm7 as SPI"
  67. default n
  68. config BSP_USING_SPI8
  69. bool "Enable Flexcomm8 as High Speed SPI"
  70. default y
  71. endif
  72. menuconfig BSP_USING_ADC
  73. config BSP_USING_ADC
  74. bool "Enable ADC Channel"
  75. select RT_USING_ADC
  76. default y
  77. if BSP_USING_ADC
  78. config BSP_USING_ADC0
  79. bool
  80. default n
  81. config BSP_USING_ADC0_CH0
  82. bool "Enable ADC0 Channel0"
  83. select BSP_USING_ADC0
  84. default y
  85. config BSP_USING_ADC0_CH1
  86. bool "Enable ADC0 Channel1"
  87. select BSP_USING_ADC0
  88. default n
  89. config BSP_USING_ADC0_CH8
  90. bool "Enable ADC0 Channel8"
  91. select BSP_USING_ADC0
  92. default n
  93. config BSP_USING_ADC0_CH13
  94. bool "Enable ADC0 Channel13"
  95. select BSP_USING_ADC0
  96. default n
  97. config BSP_USING_ADC0_CH26
  98. bool "Enable ADC0 Channel26"
  99. select BSP_USING_ADC0
  100. default n
  101. endif
  102. menuconfig BSP_USING_DAC
  103. config BSP_USING_DAC
  104. bool "Enable DAC Channel"
  105. select RT_USING_DAC
  106. default y
  107. if BSP_USING_DAC
  108. config BSP_USING_DAC0
  109. bool "Enable DAC0 Channel"
  110. default n
  111. config BSP_USING_DAC1
  112. bool "Enable DAC1 Channel"
  113. default n
  114. config BSP_USING_DAC2
  115. bool "Enable DAC2 Channel"
  116. default n
  117. endif
  118. config BSP_USING_SDIO
  119. bool "Enable SDIO SD Card Interface"
  120. select RT_USING_SDIO
  121. select RT_USING_DFS
  122. select RT_USING_DFS_ELMFAT
  123. default y
  124. config BSP_USING_ETH
  125. bool "Enable Ethernet"
  126. default n
  127. select RT_USING_LWIP
  128. select RT_USING_NETDEV
  129. select RT_USING_SAL
  130. config BSP_USING_RTC
  131. bool "Enable RTC"
  132. select RT_USING_RTC
  133. default y
  134. config BSP_USING_WDT
  135. bool "Enable WatchDog"
  136. select RT_USING_WDT
  137. default n
  138. menuconfig BSP_USING_HWTIMER
  139. config BSP_USING_HWTIMER
  140. bool "Enable Timer"
  141. select RT_USING_HWTIMER
  142. default y
  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_LEDG_PWM
  150. bool "Enable on-board green LED as PWM output (pwm0, channel 3)"
  151. default y
  152. endif
  153. endmenu
  154. menu "Board extended module Drivers"
  155. menuconfig BSP_USING_RW007
  156. bool "Enable RW007"
  157. default n
  158. select BSP_USING_SPI1
  159. select PKG_USING_RW007
  160. select RT_USING_MEMPOOL
  161. select RW007_NOT_USE_EXAMPLE_DRIVERS
  162. if BSP_USING_RW007
  163. config BOARD_RW007_SPI_BUS_NAME
  164. string "RW007 BUS NAME"
  165. default "spi1"
  166. config BOARD_RW007_CS_PIN
  167. hex "CS pin index"
  168. default 27
  169. config BOARD_RW007_INT_BUSY_PIN
  170. hex "INT/BUSY pin index"
  171. default 10
  172. config BOARD_RW007_RST_PIN
  173. hex "RESET pin index"
  174. default 28
  175. endif
  176. endmenu
  177. endmenu