Kconfig 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. menu "Hardware Drivers Config"
  2. config SOC_AB32VG1
  3. bool
  4. select PKG_USING_BLUETRUM_SDK
  5. default y
  6. menu "Onboard Peripheral Drivers"
  7. menuconfig BSP_USING_AUDIO
  8. bool "Enable Audio Device"
  9. select RT_USING_AUDIO
  10. default n
  11. if BSP_USING_AUDIO
  12. config BSP_USING_AUDIO_PLAY
  13. bool "Enable Audio Play"
  14. default y
  15. endif
  16. config BSP_USING_SDCARD
  17. bool "Enable SDCARD"
  18. select BSP_USING_SDIO
  19. default n
  20. if BSP_USING_SDCARD
  21. config SDIO_MAX_FREQ
  22. int "sdio max freq"
  23. range 0 24000000
  24. default 24000000
  25. endif
  26. endmenu
  27. menu "On-chip Peripheral Drivers"
  28. menuconfig BSP_USING_UART
  29. bool "Enable UART"
  30. if BSP_USING_UART
  31. config BSP_USING_UART0
  32. bool "Enable UART0"
  33. select RT_USING_SERIAL
  34. default y
  35. if BSP_USING_UART0
  36. config BSP_UART0_FIFO_SIZE
  37. int "BSP_UART0_FIFO_SIZE"
  38. range 5 255
  39. default 10
  40. endif
  41. config BSP_USING_UART1
  42. bool "Enable UART1"
  43. select RT_USING_SERIAL
  44. default n
  45. if BSP_USING_UART1
  46. config BSP_UART1_FIFO_SIZE
  47. int "BSP_UART1_FIFO_SIZE"
  48. range 5 255
  49. default 10
  50. endif
  51. config BSP_USING_UART2
  52. bool "Enable UART2"
  53. select RT_USING_SERIAL
  54. default n
  55. if BSP_USING_UART2
  56. config BSP_UART2_FIFO_SIZE
  57. int "BSP_UART2_FIFO_SIZE"
  58. range 5 255
  59. default 10
  60. endif
  61. endif
  62. config BSP_USING_SDIO
  63. bool "Enable SDIO"
  64. select RT_USING_SDIO
  65. select RT_USING_DFS
  66. select RT_USING_DFS_ELMFAT
  67. default n
  68. menuconfig BSP_USING_I2C1
  69. bool "Enable I2C1 BUS (software simulation)"
  70. default n
  71. select RT_USING_I2C
  72. select RT_USING_I2C_BITOPS
  73. select RT_USING_PIN
  74. if BSP_USING_I2C1
  75. comment "Notice: PE3 --> 16; PE2 --> 15"
  76. config BSP_I2C1_SCL_PIN
  77. int "I2C1 scl pin number"
  78. range 1 27
  79. default 16
  80. config BSP_I2C1_SDA_PIN
  81. int "I2C1 sda pin number"
  82. range 1 27
  83. default 15
  84. endif
  85. menuconfig BSP_USING_PWM
  86. bool "Enable PWM"
  87. default n
  88. select RT_USING_PWM
  89. if BSP_USING_PWM
  90. menuconfig BSP_USING_T3_PWM
  91. bool "Enable Timer3 PWM"
  92. default n
  93. if BSP_USING_T3_PWM
  94. config BSP_USING_T3_PWM0
  95. bool "Enable Timer3 PWM0 (PB0)(Confict with SD card)"
  96. default n
  97. endif
  98. menuconfig BSP_USING_T4_PWM
  99. bool "Enable Timer4 PWM"
  100. default n
  101. if BSP_USING_T4_PWM
  102. config BSP_USING_T4_PWM1
  103. bool "Enable Timer4 PWM1 (PA6)(Confit with uart0 rx)"
  104. default y
  105. endif
  106. menuconfig BSP_USING_T5_PWM
  107. bool "Enable Timer5 PWM"
  108. default y
  109. if BSP_USING_T5_PWM
  110. config BSP_USING_T5_PWM0
  111. bool "Enable Timer5 PWM2 (PE1)"
  112. default y
  113. endif
  114. menuconfig BSP_USING_LPWM0
  115. bool "Enable LPWM0"
  116. default n
  117. if BSP_USING_LPWM0
  118. comment "G1, G2 and G3 are mutually exclusive"
  119. config BSP_USING_LPWM0_G1
  120. bool "Enable LPWM0 G1 (PE4)"
  121. default y
  122. endif
  123. menuconfig BSP_USING_LPWM1
  124. bool "Enable LPWM1"
  125. default n
  126. if BSP_USING_LPWM1
  127. comment "G1, G2 and G3 are mutually exclusive"
  128. config BSP_USING_LPWM1_G3
  129. bool "Enable LPWM1 G3 (PA1)"
  130. default y
  131. endif
  132. menuconfig BSP_USING_LPWM2
  133. bool "Enable LPWM2"
  134. default n
  135. if BSP_USING_LPWM2
  136. comment "G1, G2 and G3 are mutually exclusive"
  137. config BSP_USING_LPWM2_G2
  138. bool "Enable LPWM2 G2 (PE0)"
  139. default y
  140. config BSP_USING_LPWM2_G3
  141. bool "Enable LPWM2 G3 (PA2)"
  142. default n
  143. endif
  144. endif
  145. config BSP_USING_WDT
  146. bool "Enable Watchdog Timer"
  147. select RT_USING_WDT
  148. default n
  149. menuconfig BSP_USING_TIM
  150. bool "Enable timer"
  151. default n
  152. select RT_USING_HWTIMER
  153. if BSP_USING_TIM
  154. config BSP_USING_TIM1
  155. bool "Enable TIM1"
  156. default y
  157. config BSP_USING_TIM2
  158. bool "Enable TIM2"
  159. default n
  160. config BSP_USING_TIM3
  161. bool "Enable TIM3"
  162. default n
  163. config BSP_USING_TIM4
  164. bool "Enable TIM4"
  165. default n
  166. config BSP_USING_TIM5
  167. bool "Enable TIM5"
  168. default n
  169. endif
  170. menuconfig BSP_USING_ONCHIP_RTC
  171. bool "Enable RTC"
  172. select RT_USING_RTC
  173. select RT_USING_LIBC
  174. default n
  175. if BSP_USING_ONCHIP_RTC
  176. config RTC_USING_INTERNAL_CLK
  177. bool "Using internal clock RTC"
  178. default y
  179. config RTC_USING_1S_INT
  180. bool "Using 1 second interrupt"
  181. depends on RT_USING_ALARM
  182. default n
  183. endif
  184. menuconfig BSP_USING_ADC
  185. bool "Enable ADC"
  186. default n
  187. select RT_USING_ADC
  188. if BSP_USING_ADC
  189. config BSP_USING_ADC0
  190. bool "Enable ADC0"
  191. default y
  192. endif
  193. menuconfig BSP_USING_IRRX
  194. bool "Enable IRRX(HW or SW)"
  195. default n
  196. if BSP_USING_IRRX
  197. config BSP_USING_IRRX_HW
  198. bool "Enable hardware IRRX"
  199. default y
  200. config BSP_USING_IRRX_SW
  201. bool "Enable software IRRX"
  202. default n
  203. endif
  204. endmenu
  205. menu "Board extended module Drivers"
  206. endmenu
  207. endmenu