Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. menu "Hardware Drivers Config"
  2. config SOC_MCXE247
  3. bool
  4. select SOC_MCXE247_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_PIN
  10. bool "Enable GPIO"
  11. select RT_USING_PIN
  12. default y
  13. menuconfig BSP_USING_UART
  14. config BSP_USING_UART
  15. bool "Enable UART"
  16. select RT_USING_UART
  17. default y
  18. if BSP_USING_UART
  19. config BSP_USING_UART0
  20. bool "Enable LPUART0"
  21. default n
  22. config BSP_USING_UART1
  23. bool "Enable LPUART1"
  24. default n
  25. config BSP_USING_UART2
  26. bool "Enable LPUART2"
  27. default y
  28. endif
  29. menuconfig BSP_USING_I2C
  30. config BSP_USING_I2C
  31. bool "Enable I2C"
  32. select RT_USING_I2C
  33. default y
  34. if BSP_USING_I2C
  35. config BSP_USING_I2C0
  36. bool "Enable LPI2C0"
  37. default n
  38. config BSP_USING_I2C1
  39. bool "Enable LPI2C1"
  40. default y
  41. endif
  42. menuconfig BSP_USING_SPI
  43. config BSP_USING_SPI
  44. bool "Enable SPI"
  45. select RT_USING_SPI
  46. default y
  47. if BSP_USING_SPI
  48. config BSP_USING_SPI0
  49. bool "Enable LPSPI0"
  50. default n
  51. config BSP_USING_SPI1
  52. bool "Enable LPSPI1"
  53. default y
  54. config BSP_USING_SPI2
  55. bool "Enable LPSPI2"
  56. default n
  57. endif
  58. menuconfig BSP_USING_ADC
  59. config BSP_USING_ADC
  60. bool "Enable ADC"
  61. select RT_USING_ADC
  62. default y
  63. if BSP_USING_ADC
  64. config BSP_USING_ADC0
  65. bool "Enable ADC0"
  66. default n
  67. config BSP_USING_ADC1
  68. bool "Enable ADC1"
  69. default n
  70. endif
  71. config BSP_USING_RTC
  72. bool "Enable RTC"
  73. select RT_USING_RTC
  74. default y
  75. config BSP_USING_WDT
  76. bool "Enable WatchDog"
  77. select RT_USING_WDT
  78. default n
  79. menuconfig BSP_USING_HWTIMER
  80. config BSP_USING_HWTIMER
  81. bool "Enable Timer"
  82. select RT_USING_HWTIMER
  83. default y
  84. if BSP_USING_HWTIMER
  85. config BSP_USING_CTIMER0
  86. bool "Enable CIMER0"
  87. default y
  88. config BSP_USING_CTIMER1
  89. bool "Enable CIMER1"
  90. default n
  91. config BSP_USING_CTIMER3
  92. bool "Enable CIMER3"
  93. default n
  94. config BSP_USING_CTIMER4
  95. bool "Enable CIMER4"
  96. default n
  97. endif
  98. menuconfig BSP_USING_PWM
  99. config BSP_USING_PWM
  100. bool "Enable PWM"
  101. select RT_USING_PWM
  102. default n
  103. if BSP_USING_PWM
  104. config BSP_USING_PWM0
  105. bool "Enable eFlex PWM0"
  106. default n
  107. config BSP_USING_PWM1
  108. bool "Enable eFlex PWM1"
  109. default n
  110. config BSP_USING_PWM2
  111. bool "Enable eFlex PWM2"
  112. default n
  113. endif
  114. endmenu
  115. menu "Board extended module Drivers"
  116. menuconfig BSP_USING_RW007
  117. bool "Enable RW007"
  118. default n
  119. select BSP_USING_SPI
  120. select BSP_USING_SPI1
  121. select PKG_USING_RW007
  122. select RT_USING_MEMPOOL
  123. select RW007_NOT_USE_EXAMPLE_DRIVERS
  124. if BSP_USING_RW007
  125. config BOARD_RW007_SPI_BUS_NAME
  126. string "RW007 BUS NAME"
  127. default "spi1"
  128. config BOARD_RW007_CS_PIN
  129. int "CS pin index"
  130. default 16
  131. config BOARD_RW007_INT_BUSY_PIN
  132. int "INT/BUSY pin index"
  133. default 143
  134. config BOARD_RW007_RST_PIN
  135. hex "RESET pin index"
  136. default 42
  137. endif
  138. endmenu
  139. endmenu