Kconfig 6.5 KB

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