Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. menu "Hardware Drivers"
  2. config BSP_USING_QSPIFLASH
  3. bool
  4. default y
  5. config SOC_IMXRT1021DAG5A
  6. bool
  7. select SOC_MIMXRT1020_SERIES
  8. select RT_USING_COMPONENTS_INIT
  9. select RT_USING_USER_MAIN
  10. select SOC_IMXRT1020_SERIES
  11. default y
  12. menu "On-chip Peripheral Drivers"
  13. config BSP_USING_DMA
  14. bool "Enable DMA"
  15. default n
  16. config BSP_USING_GPIO
  17. bool "Enable GPIO"
  18. select RT_USING_PIN
  19. default y
  20. menuconfig BSP_USING_CAN
  21. bool "Enable CAN"
  22. select RT_USING_CAN
  23. default n
  24. if BSP_USING_CAN
  25. config BSP_USING_CAN1
  26. bool "Enable CAN1"
  27. default y
  28. endif
  29. menuconfig BSP_USING_LPUART
  30. bool "Enable UART"
  31. select RT_USING_SERIAL
  32. default y
  33. if BSP_USING_LPUART
  34. config BSP_USING_LPUART1
  35. bool "Enable LPUART1"
  36. default y
  37. config BSP_LPUART1_RX_USING_DMA
  38. bool "Enable LPUART1 RX DMA"
  39. depends on BSP_USING_LPUART1
  40. select BSP_USING_DMA
  41. select RT_SERIAL_USING_DMA
  42. default n
  43. config BSP_LPUART1_RX_DMA_CHANNEL
  44. depends on BSP_LPUART1_RX_USING_DMA
  45. int "Set LPUART1 RX DMA channel (0-32)"
  46. default 0
  47. config BSP_LPUART1_TX_USING_DMA
  48. bool "Enable LPUART1 TX DMA"
  49. depends on BSP_USING_LPUART1
  50. select BSP_USING_DMA
  51. select RT_SERIAL_USING_DMA
  52. default n
  53. config BSP_LPUART1_TX_DMA_CHANNEL
  54. depends on BSP_LPUART1_TX_USING_DMA
  55. int "Set LPUART1 TX DMA channel (0-32)"
  56. default 1
  57. endif
  58. menuconfig BSP_USING_HWTIMER
  59. bool "Enable GPT"
  60. default n
  61. select RT_USING_HWTIMER
  62. if BSP_USING_TIM
  63. config BSP_USING_HWTIMER1
  64. bool "Enable GPT1"
  65. default n
  66. config BSP_USING_HWTIMER2
  67. bool "Enable GPT2"
  68. default n
  69. endif
  70. menuconfig BSP_USING_PWM
  71. bool "Enable PWM"
  72. default n
  73. select RT_USING_PWM
  74. if BSP_USING_PWM
  75. menuconfig BSP_USING_PWM1
  76. bool "Enable output pwm1"
  77. default n
  78. if BSP_USING_PWM1
  79. config BSP_USING_PWM1_CH3
  80. bool "Enable PWM1 channel3"
  81. default n
  82. endif
  83. menuconfig BSP_USING_PWM4
  84. bool "Enable output pwm4"
  85. default n
  86. if BSP_USING_PWM4
  87. config BSP_USING_PWM4_CH0
  88. bool "Enable PWM4 channel0"
  89. default n
  90. config BSP_USING_PWM4_CH1
  91. bool "Enable PWM4 channel1"
  92. default n
  93. endif
  94. endif
  95. menuconfig BSP_USING_I2C
  96. bool "Enable I2C"
  97. select RT_USING_I2C
  98. default n
  99. if BSP_USING_I2C
  100. config BSP_USING_I2C1
  101. bool "Enable I2C1"
  102. default n
  103. choice
  104. prompt "Select I2C1 badurate"
  105. default HW_I2C1_BADURATE_100kHZ
  106. config HW_I2C1_BADURATE_100kHZ
  107. bool "Badurate 100kHZ"
  108. config HW_I2C1_BADURATE_400kHZ
  109. bool "Badurate 400kHZ"
  110. endchoice
  111. endif
  112. menuconfig BSP_USING_ADC
  113. bool "Enable ADC"
  114. default n
  115. select RT_USING_ADC
  116. if BSP_USING_ADC
  117. config BSP_USING_ADC1
  118. bool "Enable ADC1"
  119. default n
  120. endif
  121. config BSP_USING_RTC
  122. bool "Enable RTC"
  123. select RT_USING_RTC
  124. default n
  125. endmenu
  126. menu "Onboard Peripheral Drivers"
  127. config BSP_USING_RGB
  128. bool "Enable RGB LED (PWM1_CH3A, PWM4_CH0A and PWM4_CH1A)"
  129. select BSP_USING_PWM1
  130. select BSP_USING_PWM4
  131. select BSP_USING_PWM1_CH3
  132. select BSP_USING_PWM4_CH0
  133. select BSP_USING_PWM4_CH1
  134. default n
  135. config BSP_USING_MPU6050
  136. bool "Enable MPU6050 (I2C1:J11 --> SCL; K11 --> SDA)"
  137. select BSP_USING_I2C1
  138. select PKG_USING_MPU6XXX
  139. default n
  140. menuconfig BSP_USING_AP3216C
  141. bool "Enable AP3216C (I2C1:J11 --> SCL; K11 --> SDA)"
  142. select BSP_USING_I2C1
  143. select PKG_USING_AP3216C
  144. default n
  145. if BSP_USING_AP3216C
  146. config AP3216C_USING_HW_INT
  147. bool "Enable interrupt"
  148. default n
  149. endif
  150. config BSP_USING_EEPROM
  151. bool "Enable I2C EEPROM (I2C1:J11 --> SCL; K11 --> SDA)"
  152. select BSP_USING_I2C1
  153. select PKG_USING_AT24CXX
  154. default n
  155. config BSP_USING_RS232
  156. bool "Enable RS232"
  157. select BSP_USING_LPUART2
  158. default n
  159. config BSP_USING_RS485
  160. bool "Enable RS485"
  161. select BSP_USING_LPUART5
  162. default n
  163. endmenu
  164. menu "Board extended module Drivers"
  165. endmenu
  166. endmenu