Kconfig 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. menu "Hardware Drivers Config"
  2. config SOC_SWM320
  3. bool
  4. select ARCH_ARM_CORTEX_M4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Peripheral Drivers"
  9. menuconfig BSP_USING_UART
  10. bool "Enable UART"
  11. default y
  12. select RT_USING_SERIAL
  13. if BSP_USING_UART
  14. config BSP_USING_UART0
  15. bool "Enable UART0 (A2/RX,A3/TX)"
  16. default y
  17. config BSP_USING_UART1
  18. bool "Enable UART1 (C2/RX,C3/TX)"
  19. default n
  20. config BSP_USING_UART2
  21. bool "Enable UART2 (C4/RX,C5/TX)"
  22. default n
  23. config BSP_USING_UART3
  24. bool "Enable UART3 (C6/RX,C7/TX)"
  25. default n
  26. endif
  27. config BSP_USING_GPIO
  28. bool "Enable GPIO"
  29. select RT_USING_PIN
  30. default y
  31. menuconfig BSP_USING_ADC
  32. bool "Enable ADC"
  33. default n
  34. select RT_USING_ADC
  35. if BSP_USING_ADC
  36. config BSP_USING_ADC0
  37. bool "Enable ADC0"
  38. default n
  39. if BSP_USING_ADC0
  40. config BSP_USING_ADC0_CHN0
  41. bool "Enable ADC0_CHN0"
  42. default n
  43. config BSP_USING_ADC0_CHN1
  44. bool "Enable ADC0_CHN1"
  45. default n
  46. config BSP_USING_ADC0_CHN2
  47. bool "Enable ADC0_CHN2"
  48. default n
  49. config BSP_USING_ADC0_CHN3
  50. bool "Enable ADC0_CHN3"
  51. default n
  52. config BSP_USING_ADC0_CHN4
  53. bool "Enable ADC0_CHN4(A12)"
  54. default n
  55. config BSP_USING_ADC0_CHN5
  56. bool "Enable ADC0_CHN5(A11)"
  57. default n
  58. config BSP_USING_ADC0_CHN6
  59. bool "Enable ADC0_CHN6(A10)"
  60. default n
  61. config BSP_USING_ADC0_CHN7
  62. bool "Enable ADC0_CHN7(A9)"
  63. default n
  64. endif
  65. config BSP_USING_ADC1
  66. bool "Enable ADC1"
  67. default n
  68. if BSP_USING_ADC1
  69. config BSP_USING_ADC1_CHN0
  70. bool "Enable ADC1_CHN0(C7)"
  71. default n
  72. config BSP_USING_ADC1_CHN1
  73. bool "Enable ADC1_CHN1(C6)"
  74. default n
  75. config BSP_USING_ADC1_CHN2
  76. bool "Enable ADC1_CHN2(C5)"
  77. default n
  78. config BSP_USING_ADC1_CHN3
  79. bool "Enable ADC1_CHN3(C4)"
  80. default n
  81. config BSP_USING_ADC1_CHN4
  82. bool "Enable ADC1_CHN4(N0)"
  83. default n
  84. config BSP_USING_ADC1_CHN5
  85. bool "Enable ADC1_CHN5(N1)"
  86. default n
  87. config BSP_USING_ADC1_CHN6
  88. bool "Enable ADC1_CHN6(N2)"
  89. default n
  90. config BSP_USING_ADC1_CHN7
  91. bool "Enable ADC1_CHN7"
  92. default n
  93. endif
  94. endif
  95. menuconfig BSP_USING_TIM
  96. bool "Enable HWTIMER"
  97. default n
  98. select RT_USING_HWTIMER
  99. if BSP_USING_TIM
  100. config BSP_USING_TIM0
  101. bool "Enable TIM0"
  102. default n
  103. config BSP_USING_TIM1
  104. bool "Enable TIM1"
  105. default n
  106. config BSP_USING_TIM2
  107. bool "Enable TIM2"
  108. default n
  109. config BSP_USING_TIM3
  110. bool "Enable TIM3"
  111. default n
  112. config BSP_USING_TIM4
  113. bool "Enable TIM4"
  114. default n
  115. config BSP_USING_TIM5
  116. bool "Enable TIM5"
  117. default n
  118. endif
  119. menuconfig BSP_USING_I2C
  120. bool "Enable I2C BUS (software simulation)"
  121. default n
  122. select RT_USING_I2C
  123. select RT_USING_I2C_BITOPS
  124. select RT_USING_PIN
  125. if BSP_USING_I2C
  126. config BSP_USING_I2C0
  127. bool "Enable I2C0"
  128. default n
  129. if BSP_USING_I2C0
  130. comment "Notice: PC2 --> 28; PC3 --> 29"
  131. config BSP_I2C0_SCL_PIN
  132. int "I2C0 scl pin number"
  133. range 0 99
  134. default 28
  135. config BSP_I2C0_SDA_PIN
  136. int "I2C0 sda pin number"
  137. range 0 99
  138. default 29
  139. endif
  140. config BSP_USING_I2C1
  141. bool "Enable I2C1"
  142. default n
  143. if BSP_USING_I2C1
  144. comment "Notice: PC6 --> 32; PC7 --> 33"
  145. config BSP_I2C1_SCL_PIN
  146. int "I2C1 scl pin number"
  147. range 0 99
  148. default 32
  149. config BSP_I2C1_SDA_PIN
  150. int "I2C1 sda pin number"
  151. range 0 99
  152. default 33
  153. endif
  154. endif
  155. menuconfig BSP_USING_PWM
  156. bool "Enable PWM"
  157. default n
  158. select RT_USING_PWM
  159. if BSP_USING_PWM
  160. config BSP_USING_PWM0
  161. bool "Enable PWM0"
  162. default n
  163. if BSP_USING_PWM0
  164. config BSP_USING_PWM0A
  165. bool "Enable PWM0A (C2)"
  166. default n
  167. config BSP_USING_PWM0B
  168. bool "Enable PWM0B (C4)"
  169. default n
  170. endif
  171. config BSP_USING_PWM1
  172. bool "Enable PWM1"
  173. default n
  174. if BSP_USING_PWM1
  175. config BSP_USING_PWM1A
  176. bool "Enable PWM1A (C3)"
  177. default n
  178. config BSP_USING_PWM1B
  179. bool "Enable PWM1B (C5)"
  180. default n
  181. endif
  182. config BSP_USING_PWM2
  183. bool "Enable PWM2"
  184. default n
  185. if BSP_USING_PWM2
  186. config BSP_USING_PWM2A
  187. bool "Enable PWM2A (N4)"
  188. default n
  189. config BSP_USING_PWM2B
  190. bool "Enable PWM2B (N6)"
  191. default n
  192. endif
  193. config BSP_USING_PWM3
  194. bool "Enable PWM3"
  195. default n
  196. if BSP_USING_PWM3
  197. config BSP_USING_PWM3A
  198. bool "Enable PWM3A (N3)"
  199. default n
  200. config BSP_USING_PWM3B
  201. bool "Enable PWM3B (N5)"
  202. default n
  203. endif
  204. config BSP_USING_PWM4
  205. bool "Enable PWM4"
  206. default n
  207. if BSP_USING_PWM4
  208. config BSP_USING_PWM4A
  209. bool "Enable PWM4A (N8)"
  210. default n
  211. config BSP_USING_PWM4B
  212. bool "Enable PWM4B (N10)"
  213. default n
  214. endif
  215. config BSP_USING_PWM5
  216. bool "Enable PWM5"
  217. default n
  218. if BSP_USING_PWM5
  219. config BSP_USING_PWM5A
  220. bool "Enable PWM5A (N7)"
  221. default n
  222. config BSP_USING_PWM5B
  223. bool "Enable PWM5B (N9)"
  224. default n
  225. endif
  226. endif
  227. config BSP_USING_RTC
  228. bool "Enable RTC"
  229. select RT_USING_RTC
  230. default n
  231. menuconfig BSP_USING_SPI
  232. bool "Enable SPI BUS"
  233. default n
  234. select RT_USING_SPI
  235. if BSP_USING_SPI
  236. config BSP_USING_SPI0
  237. bool "Enable SPI0 BUS(CS/P22,MISO/P19,MOSI/P18,CLK/P23)"
  238. default n
  239. config BSP_USING_SPI1
  240. bool "Enable SPI1 BUS(CS/B6,MISO/B3,MOSI/B2,CLK/B1)"
  241. default n
  242. endif
  243. config BSP_USING_WDT
  244. bool "Enable Watchdog Timer"
  245. select RT_USING_WDT
  246. default n
  247. config BSP_USING_CRC
  248. bool "Enable CRC (CRC-32 0x04C11DB7 Polynomial)"
  249. select RT_USING_HWCRYPTO
  250. select RT_HWCRYPTO_USING_CRC
  251. default n
  252. endmenu
  253. menu "Onboard Peripheral Drivers"
  254. config BSP_USING_SDIO
  255. bool "Enable SDCARD (sdio)"
  256. select RT_USING_SDIO
  257. select RT_USING_DFS
  258. select RT_USING_DFS_ELMFAT
  259. default n
  260. menuconfig BSP_USING_EXT_SRAM
  261. bool "Enable external sram"
  262. select RT_USING_MEMHEAP
  263. select RT_USING_MEMHEAP_AS_HEAP
  264. default n
  265. if BSP_USING_EXT_SRAM
  266. config BSP_EXT_SRAM_SIZE
  267. hex "external sram size"
  268. default 0x100000
  269. endif
  270. menuconfig BSP_USING_NOR_FLASH
  271. bool "Enable mtd nor flash"
  272. select RT_USING_MTD_NOR
  273. select PKG_USING_FTL_SRC
  274. default n
  275. if BSP_USING_NOR_FLASH
  276. config BSP_NOR_FLASH_SIZE
  277. hex "mtd nor flash size"
  278. default 0x1000000
  279. config BSP_NOR_FLASH_SECTOR_SIZE
  280. hex "mtd nor flsah sector"
  281. default 0x10000
  282. endif
  283. endmenu
  284. menu "Offboard Peripheral Drivers"
  285. endmenu
  286. endmenu