Kconfig 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. menu "Hardware Drivers Config"
  2. config SOC_MCXA156
  3. bool
  4. select SOC_MCXA156_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 LPUART as UART"
  25. default y
  26. endif
  27. menuconfig BSP_USING_I2C
  28. config BSP_USING_I2C
  29. bool "Enable I2C"
  30. select RT_USING_I2C
  31. default y
  32. if BSP_USING_I2C
  33. config BSP_USING_I2C0
  34. bool "Enable Flexcomm0 I2C"
  35. default y
  36. config BSP_USING_I2C1
  37. bool "Enable Flexcomm1 I2C"
  38. default y
  39. endif
  40. menuconfig BSP_USING_SPI
  41. config BSP_USING_SPI
  42. bool "Enable SPI"
  43. select RT_USING_SPI
  44. default y
  45. if BSP_USING_SPI
  46. config BSP_USING_SPI1
  47. bool "Enable LPSPI1"
  48. default n
  49. endif
  50. menuconfig BSP_USING_ADC
  51. config BSP_USING_ADC
  52. bool "Enable ADC Channel"
  53. select RT_USING_ADC
  54. default y
  55. if BSP_USING_ADC
  56. config BSP_USING_ADC0_CH0
  57. bool "Enable ADC0 Channel0"
  58. default y
  59. config BSP_USING_ADC0_CH1
  60. bool "Enable ADC0 Channel1"
  61. default n
  62. config BSP_USING_ADC0_CH8
  63. bool "Enable ADC0 Channel8"
  64. default n
  65. config BSP_USING_ADC0_CH13
  66. bool "Enable ADC0 Channel13"
  67. default n
  68. config BSP_USING_ADC0_CH26
  69. bool "Enable ADC0 Channel26"
  70. default n
  71. endif
  72. config BSP_USING_SDIO
  73. bool "Enable SDIO SD Card Interface"
  74. select RT_USING_SDIO
  75. select RT_USING_DFS
  76. select RT_USING_DFS_ELMFAT
  77. default y
  78. config BSP_USING_RTC
  79. bool "Enable RTC"
  80. select RT_USING_RTC
  81. default y
  82. config BSP_USING_WDT
  83. bool "Enable WatchDog"
  84. select RT_USING_WDT
  85. default n
  86. menuconfig BSP_USING_HWTIMER
  87. config BSP_USING_HWTIMER
  88. bool "Enable Timer"
  89. select RT_USING_HWTIMER
  90. default y
  91. if BSP_USING_HWTIMER
  92. config BSP_USING_CTIMER0
  93. bool "Enable CIMER0"
  94. default y
  95. config BSP_USING_CTIMER1
  96. bool "Enable CIMER1"
  97. default n
  98. config BSP_USING_CTIMER3
  99. bool "Enable CIMER3"
  100. default n
  101. config BSP_USING_CTIMER4
  102. bool "Enable CIMER4"
  103. default n
  104. endif
  105. menuconfig BSP_USING_PWM
  106. config BSP_USING_PWM
  107. bool "Enable PWM"
  108. select RT_USING_PWM
  109. default n
  110. if BSP_USING_PWM
  111. config BSP_USING_PWM0
  112. bool "Enable eFlex PWM0"
  113. default n
  114. config BSP_USING_PWM1
  115. bool "Enable eFlex PWM1"
  116. default n
  117. config BSP_USING_PWM2
  118. bool "Enable eFlex PWM2"
  119. default n
  120. endif
  121. endmenu
  122. menu "Board extended module Drivers"
  123. menuconfig BSP_USING_RW007
  124. bool "Enable RW007"
  125. default n
  126. select BSP_USING_SPI
  127. select BSP_USING_SPI1
  128. select PKG_USING_RW007
  129. select RT_USING_MEMPOOL
  130. select RW007_NOT_USE_EXAMPLE_DRIVERS
  131. if BSP_USING_RW007
  132. config BOARD_RW007_SPI_BUS_NAME
  133. string "RW007 BUS NAME"
  134. default "spi1"
  135. config BOARD_RW007_CS_PIN
  136. hex "CS pin index"
  137. default 0x46
  138. config BOARD_RW007_INT_BUSY_PIN
  139. hex "INT/BUSY pin index"
  140. default 0x71
  141. config BOARD_RW007_RST_PIN
  142. hex "RESET pin index"
  143. default 0x2F
  144. endif
  145. menuconfig BSP_USING_P3T1755
  146. bool "Enable P3T1755"
  147. default n
  148. select BSP_USING_I2C
  149. select BSP_USING_I2C0
  150. select PKG_USING_P3T1755
  151. if BSP_USING_P3T1755
  152. config P3T1755_I2C_BUS_NAME
  153. string "P3T1755 BUS NAME"
  154. default "i2c0"
  155. endif
  156. endmenu
  157. endmenu