Kconfig 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. menu "Hardware Drivers Config"
  2. menu "Chip Configuration"
  3. config SOC_KERNEL
  4. bool
  5. select SOC_SERIES_HT32F5 if CORTEX_M0
  6. select SOC_SERIES_HT32F1 if CORTEX_M3
  7. select RT_USING_COMPONENTS_INIT
  8. select RT_USING_USER_MAIN
  9. default y
  10. choice
  11. prompt "Select the kernel"
  12. default CORTEX_M0
  13. config CORTEX_M0
  14. bool "CORTEX_M0"
  15. config CORTEX_M3
  16. bool "CORTEX_M3"
  17. endchoice
  18. choice
  19. prompt "Select the chip you are using"
  20. depends on CORTEX_M0
  21. default HT32F52352
  22. config SOC_HT32F0006
  23. bool "HT32F0006"
  24. config SOC_HT32F0008
  25. bool "HT32F0008"
  26. config SOC_HT32F50241
  27. bool "HT32F50241"
  28. config SOC_HT32F50343
  29. bool "HT32F50343"
  30. config SOC_HT32F50441
  31. bool "HT32F50441"
  32. config SOC_HT32F50452
  33. bool "HT32F50452"
  34. config SOC_HT32F52241
  35. bool "HT32F52241"
  36. config SOC_HT32F52244
  37. bool "HT32F52244"
  38. config SOC_HT32F52253
  39. bool "HT32F52253"
  40. config SOC_HT32F52341
  41. bool "HT32F52341"
  42. config SOC_HT32F52352
  43. bool "HT32F52352"
  44. config SOC_HT32F52354
  45. bool "HT32F52354"
  46. config SOC_HT32F52367
  47. bool "HT32F52367"
  48. config SOC_HT32F53241
  49. bool "HT32F53241"
  50. config SOC_HT32F53252
  51. bool "HT32F53252"
  52. config SOC_HT32F54241
  53. bool "HT32F54241"
  54. config SOC_HT32F54253
  55. bool "HT32F54253"
  56. config SOC_HT32F57341
  57. bool "HT32F57341"
  58. config SOC_HT32F57352
  59. bool "HT32F57352"
  60. config SOC_HT32F5828
  61. bool "HT32F5828"
  62. config SOC_HT32F59041
  63. bool "HT32F59041"
  64. config SOC_HT32F59741
  65. bool "HT32F59741"
  66. config SOC_HT32F61141
  67. bool "HT32F61141"
  68. config SOC_HT32F61245
  69. bool "HT32F61245"
  70. config SOC_HT32F61355
  71. bool "HT32F61355"
  72. config SOC_HT32F61356
  73. bool "HT32F61356"
  74. config SOC_HT32F61357
  75. bool "HT32F61357"
  76. config SOC_HT32F61641
  77. bool "HT32F61641"
  78. config SOC_HT32F65240
  79. bool "HT32F65240"
  80. config SOC_HT32F67051
  81. bool "HT32F67051"
  82. config SOC_HT32F67741
  83. bool "HT32F67741"
  84. endchoice
  85. choice
  86. prompt "Select the chip you are using"
  87. depends on CORTEX_M3
  88. default HT32F52352
  89. config SOC_HT32F1654
  90. bool "HT32F1654"
  91. config SOC_HT32F1656
  92. bool "HT32F1656"
  93. config SOC_HT32F12345
  94. bool "HT32F12345"
  95. config SOC_HT32F12364
  96. bool "HT32F12364"
  97. config SOC_HT32F12366
  98. bool "HT32F12366"
  99. endchoice
  100. endmenu
  101. menu "Onboard Peripheral Drivers"
  102. config BSP_USING_TEST
  103. bool "Enable test"
  104. default n
  105. if RT_USING_CONSOLE
  106. config RT_CONSOLE_DEVICE_NAME
  107. string "the device name for console"
  108. default "usart0"
  109. endif
  110. endmenu
  111. menu "On-chip Peripheral Drivers"
  112. config BSP_USING_GPIO
  113. bool "Enable GPIO"
  114. select RT_USING_PIN if BSP_USING_GPIO
  115. default n
  116. menuconfig BSP_USING_UART
  117. bool "Enable UART"
  118. default n
  119. select RT_USING_SERIAL
  120. if BSP_USING_UART
  121. config BSP_USING_USART0
  122. bool "Enable USART0"
  123. default n
  124. config BSP_USING_USART0_NAME
  125. depends on BSP_USING_USART0
  126. string "usart0 bus name"
  127. default "usart0"
  128. config BSP_USING_USART1
  129. bool "Enable USART1"
  130. default n
  131. config BSP_USING_USART1_NAME
  132. depends on BSP_USING_USART1
  133. string "usart1 bus name"
  134. default "usart1"
  135. config BSP_USING_UART0
  136. bool "Enable UART0"
  137. default n
  138. config BSP_USING_UART0_NAME
  139. depends on BSP_USING_UART0
  140. string "uart0 bus name"
  141. default "uart0"
  142. config BSP_USING_UART1
  143. bool "Enable UART1"
  144. default n
  145. config BSP_USING_UART1_NAME
  146. depends on BSP_USING_UART1
  147. string "uart1 bus name"
  148. default "uart1"
  149. endif
  150. menuconfig BSP_USING_SPI
  151. bool "Enable SPI Bus"
  152. default n
  153. select RT_USING_SPI if BSP_USING_SPI
  154. if BSP_USING_SPI
  155. config BSP_USING_SPI0
  156. bool "Enable SPI0 Bus"
  157. default n
  158. config BSP_USING_SPI0_NAME
  159. depends on BSP_USING_SPI0
  160. string "spi0 bus name"
  161. default "spi0"
  162. config BSP_USING_SPI1
  163. bool "Enable SPI1 Bus"
  164. default n
  165. config BSP_USING_SPI1_NAME
  166. depends on BSP_USING_SPI1
  167. string "spi1 bus name"
  168. default "spi1"
  169. endif
  170. menuconfig BSP_USING_I2C
  171. bool "Enable I2C Bus"
  172. default n
  173. if BSP_USING_I2C
  174. menuconfig BSP_USING_I2C_HW
  175. bool "Enable I2C Bus(hardware)"
  176. default n
  177. select RT_USING_I2C if BSP_USING_I2C_HW
  178. if BSP_USING_I2C_HW
  179. config BSP_USING_I2C0_HW
  180. bool "Enable Hardware I2C0 Bus"
  181. default n
  182. config BSP_USING_I2C0_HW_NAME
  183. depends on BSP_USING_I2C0_HW
  184. string "hardware i2c0 name"
  185. default "hw_i2c0"
  186. config BSP_USING_I2C1_HW
  187. bool "Enable Hardware I2C1 Bus"
  188. default n
  189. config BSP_USING_I2C1_HW_NAME
  190. depends on BSP_USING_I2C1_HW
  191. string "hardware i2c1 name"
  192. default "hw_i2c1"
  193. endif
  194. menuconfig BSP_USING_I2C_SW
  195. bool "Enable I2C Bus(software)"
  196. default n
  197. select BSP_USING_GPIO if BSP_USING_I2C_SW
  198. select RT_USING_I2C if BSP_USING_I2C_SW
  199. if BSP_USING_I2C_SW
  200. config BSP_USING_I2C0_SW
  201. bool "Enable Software I2C0 Bus"
  202. default n
  203. config BSP_USING_I2C0_SW_NAME
  204. depends on BSP_USING_I2C0_SW
  205. string "software i2c0 name"
  206. default "sw_i2c0"
  207. if BSP_USING_I2C0_SW
  208. config BSP_I2C0_SLC_PIN
  209. int "i2c0 slc pin number"
  210. range 0 51
  211. default 22
  212. config BSP_I2C0_SDA_PIN
  213. int "i2c0 sda pin number"
  214. range 0 51
  215. default 23
  216. endif
  217. config BSP_USING_I2C1_SW
  218. bool "Enable Software I2C1 Bus"
  219. default n
  220. config BSP_USING_I2C1_SW_NAME
  221. depends on BSP_USING_I2C1_SW
  222. string "software i2c1 name"
  223. default "sw_i2c1"
  224. if BSP_USING_I2C1_SW
  225. config BSP_I2C1_SLC_PIN
  226. int "i2c1 slc pin number"
  227. range 0 51
  228. default 24
  229. config BSP_I2C1_SDA_PIN
  230. int "i2c1 sda pin number"
  231. range 0 51
  232. default 25
  233. endif
  234. config BSP_USING_I2C2_SW
  235. bool "Enable Software I2C2 Bus"
  236. default n
  237. config BSP_USING_I2C2_SW_NAME
  238. depends on BSP_USING_I2C2_SW
  239. string "software i2c2 name"
  240. default "sw_i2c2"
  241. if BSP_USING_I2C2_SW
  242. config BSP_I2C2_SLC_PIN
  243. int "i2c2 slc pin number"
  244. range 0 51
  245. default 26
  246. config BSP_I2C2_SDA_PIN
  247. int "i2c2 sda pin number"
  248. range 0 51
  249. default 27
  250. endif
  251. endif
  252. endif
  253. menuconfig BSP_USING_ADC
  254. bool "Enable ADC"
  255. default n
  256. select RT_USING_ADC if BSP_USING_ADC
  257. if BSP_USING_ADC
  258. config BSP_USING_ADC0
  259. bool "Enable ADC0"
  260. default n
  261. config BSP_USING_ADC0_NAME
  262. depends on BSP_USING_ADC0
  263. string "adc0 device name"
  264. default "adc0"
  265. config BSP_USING_ADC1
  266. bool "Enable ADC1"
  267. depends on SOC_HT32F65240
  268. default n
  269. config BSP_USING_ADC1_NAME
  270. depends on BSP_USING_ADC1
  271. string "adc1 device name"
  272. default "adc1"
  273. endif
  274. menuconfig BSP_USING_WDT
  275. bool "Enable WDT"
  276. default n
  277. select RT_USING_WDT if BSP_USING_WDT
  278. config BSP_USING_WDT_NAME
  279. depends on BSP_USING_WDT
  280. string "wdt device name"
  281. default "wdt"
  282. endmenu
  283. menu "Board extended module Drivers"
  284. endmenu
  285. endmenu