Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. menu "General Drivers Configuration"
  2. menuconfig BSP_USING_UART
  3. bool "Using UART"
  4. select RT_USING_SERIAL
  5. default y
  6. if BSP_USING_UART
  7. config BSP_USING_UART0
  8. bool "Enable UART 0"
  9. default n
  10. if BSP_USING_UART0
  11. config BSP_UART0_RX_PINNAME
  12. string "uart0 rx pin name"
  13. default ""
  14. config BSP_UART0_TX_PINNAME
  15. string "uart0 tx pin name"
  16. default ""
  17. endif
  18. config BSP_USING_UART1
  19. bool "Enable UART 1"
  20. default y
  21. if BSP_USING_UART1
  22. config BSP_UART1_RX_PINNAME
  23. string "uart1 rx pin name"
  24. default "IIC0_SDA"
  25. config BSP_UART1_TX_PINNAME
  26. string "uart1 tx pin name"
  27. default "IIC0_SCL"
  28. endif
  29. config BSP_USING_UART2
  30. bool "Enable UART 2"
  31. default n
  32. if BSP_USING_UART2
  33. config BSP_UART2_RX_PINNAME
  34. string "uart2 rx pin name"
  35. default ""
  36. config BSP_UART2_TX_PINNAME
  37. string "uart2 tx pin name"
  38. default ""
  39. endif
  40. config BSP_USING_UART3
  41. bool "Enable UART 3"
  42. default n
  43. if BSP_USING_UART3
  44. config BSP_UART3_RX_PINNAME
  45. string "uart3 rx pin name"
  46. default ""
  47. config BSP_UART3_TX_PINNAME
  48. string "uart3 tx pin name"
  49. default ""
  50. endif
  51. config BSP_USING_UART4
  52. bool "Enable UART 4"
  53. default n
  54. if BSP_USING_UART4
  55. config BSP_UART4_RX_PINNAME
  56. string "uart4 rx pin name"
  57. default ""
  58. config BSP_UART4_TX_PINNAME
  59. string "uart4 tx pin name"
  60. default ""
  61. endif
  62. config BSP_UART_IRQ_BASE
  63. int
  64. default 30
  65. endif
  66. menuconfig BSP_USING_I2C
  67. bool "Using I2C"
  68. select RT_USING_I2C
  69. select RT_USING_I2C_BITOPS
  70. select RT_USING_PIN
  71. default n
  72. if BSP_USING_I2C
  73. config BSP_USING_I2C0
  74. bool "Enable I2C0"
  75. default n
  76. if BSP_USING_I2C0
  77. config BSP_I2C0_SCL_PINNAME
  78. string "i2c0 scl pin name"
  79. default ""
  80. config BSP_I2C0_SDA_PINNAME
  81. string "i2c0 sda pin name"
  82. default ""
  83. endif
  84. config BSP_USING_I2C1
  85. bool "Enable I2C1"
  86. default n
  87. if BSP_USING_I2C1
  88. config BSP_I2C1_SCL_PINNAME
  89. string "i2c1 scl pin name"
  90. default ""
  91. config BSP_I2C1_SDA_PINNAME
  92. string "i2c1 sda pin name"
  93. default ""
  94. endif
  95. config BSP_USING_I2C2
  96. bool "Enable I2C2"
  97. default n
  98. if BSP_USING_I2C2
  99. config BSP_I2C2_SCL_PINNAME
  100. string "i2c2 scl pin name"
  101. default ""
  102. config BSP_I2C2_SDA_PINNAME
  103. string "i2c2 sda pin name"
  104. default ""
  105. endif
  106. config BSP_USING_I2C3
  107. bool "Enable I2C3"
  108. default n
  109. if BSP_USING_I2C3
  110. config BSP_I2C3_SCL_PINNAME
  111. string "i2c3 scl pin name"
  112. default ""
  113. config BSP_I2C3_SDA_PINNAME
  114. string "i2c3 sda pin name"
  115. default ""
  116. endif
  117. config BSP_USING_I2C4
  118. bool "Enable I2C4"
  119. default n
  120. if BSP_USING_I2C4
  121. config BSP_I2C4_SCL_PINNAME
  122. string "i2c4 scl pin name"
  123. default ""
  124. config BSP_I2C4_SDA_PINNAME
  125. string "i2c4 sda pin name"
  126. default ""
  127. endif
  128. config BSP_I2C_IRQ_BASE
  129. int
  130. default 32
  131. endif
  132. menuconfig BSP_USING_ADC
  133. bool "Using ADC"
  134. select RT_USING_ADC
  135. default n
  136. if BSP_USING_ADC
  137. config BSP_USING_ADC_ACTIVE
  138. bool "Enable ADC Controller in Active Domain"
  139. default n
  140. if BSP_USING_ADC_ACTIVE
  141. config BSP_ACTIVE_ADC1_PINNAME
  142. string "Pin name for VIN1 in Active Domain"
  143. default ""
  144. config BSP_ACTIVE_ADC2_PINNAME
  145. string "Pin name for VIN2 in Active Domain"
  146. default ""
  147. config BSP_ACTIVE_ADC3_PINNAME
  148. string "Pin name for VIN3 in Active Domain"
  149. default ""
  150. endif
  151. config BSP_USING_ADC_NODIE
  152. bool "Enable ADC Controller in No-die Domain"
  153. default n
  154. if BSP_USING_ADC_NODIE
  155. config BSP_NODIE_ADC1_PINNAME
  156. string "Pin name for VIN1 in No-die Domain"
  157. default ""
  158. config BSP_NODIE_ADC2_PINNAME
  159. string "Pin name for VIN2 in No-die Domain"
  160. default ""
  161. config BSP_NODIE_ADC3_PINNAME
  162. string "Pin name for VIN3 in No-die Domain"
  163. default ""
  164. endif
  165. endif
  166. config BSP_USING_SPI
  167. bool "Using SPI"
  168. select RT_USING_SPI
  169. default n
  170. if BSP_USING_SPI
  171. config BSP_USING_SPI0
  172. bool "Enable SPI 0"
  173. default n
  174. if BSP_USING_SPI0
  175. config BSP_SPI0_SCK_PINNAME
  176. string "spi0 sck pin name"
  177. default ""
  178. config BSP_SPI0_SDO_PINNAME
  179. string "spi0 sdo pin name"
  180. default ""
  181. config BSP_SPI0_SDI_PINNAME
  182. string "spi0 sdi pin name"
  183. default ""
  184. config BSP_SPI0_CS_PINNAME
  185. string "spi0 cs pin name"
  186. default ""
  187. endif
  188. config BSP_USING_SPI1
  189. bool "Enable SPI 1"
  190. default n
  191. if BSP_USING_SPI1
  192. config BSP_SPI1_SCK_PINNAME
  193. string "spi1 sck pin name"
  194. default ""
  195. config BSP_SPI1_SDO_PINNAME
  196. string "spi1 sdo pin name"
  197. default ""
  198. config BSP_SPI1_SDI_PINNAME
  199. string "spi1 sdi pin name"
  200. default ""
  201. config BSP_SPI1_CS_PINNAME
  202. string "spi1 cs pin name"
  203. default ""
  204. endif
  205. config BSP_USING_SPI2
  206. bool "Enable SPI 2"
  207. default n
  208. if BSP_USING_SPI2
  209. config BSP_SPI2_SCK_PINNAME
  210. string "spi2 sck pin name"
  211. default ""
  212. config BSP_SPI2_SDO_PINNAME
  213. string "spi2 sdo pin name"
  214. default ""
  215. config BSP_SPI2_SDI_PINNAME
  216. string "spi2 sdi pin name"
  217. default ""
  218. config BSP_SPI2_CS_PINNAME
  219. string "spi2 cs pin name"
  220. default ""
  221. endif
  222. config BSP_USING_SPI3
  223. bool "Enable SPI 3"
  224. default n
  225. if BSP_USING_SPI3
  226. config BSP_SPI3_SCK_PINNAME
  227. string "spi3 sck pin name"
  228. default ""
  229. config BSP_SPI3_SDO_PINNAME
  230. string "spi3 sdo pin name"
  231. default ""
  232. config BSP_SPI3_SDI_PINNAME
  233. string "spi3 sdi pin name"
  234. default ""
  235. config BSP_SPI3_CS_PINNAME
  236. string "spi3 cs pin name"
  237. default ""
  238. endif
  239. endif
  240. menuconfig BSP_USING_WDT
  241. bool "Enable Watchdog Timer"
  242. select RT_USING_WDT
  243. default n
  244. if BSP_USING_WDT
  245. config BSP_USING_WDT0
  246. bool "Enable WDT0"
  247. default n
  248. config BSP_USING_WDT1
  249. bool "Enable WDT1"
  250. default n
  251. config BSP_USING_WDT2
  252. bool "Enable WDT2"
  253. default n
  254. endif
  255. menuconfig BSP_USING_TIMER
  256. bool "Enable TIMER"
  257. default n
  258. select RT_USING_HWTIMER
  259. if BSP_USING_TIMER
  260. config BSP_USING_TIMER4
  261. bool "Enable TIMER4"
  262. default n
  263. config BSP_USING_TIMER5
  264. bool "Enable TIMER5"
  265. default n
  266. config BSP_USING_TIMER6
  267. bool "Enable TIMER6"
  268. default n
  269. config BSP_USING_TIMER7
  270. bool "Enable TIMER7"
  271. default n
  272. config BSP_TIMER_IRQ_BASE
  273. int
  274. default 55
  275. endif
  276. menuconfig BSP_USING_PWM
  277. bool "Using PWM"
  278. select RT_USING_PWM
  279. default n
  280. if BSP_USING_PWM
  281. config BSP_USING_PWM0
  282. bool "Enable PWM 0"
  283. default n
  284. if BSP_USING_PWM0
  285. config BSP_PWM0_0_PINNAME
  286. string "pwm[0] pin name"
  287. default ""
  288. config BSP_PWM0_1_PINNAME
  289. string "pwm[1] pin name"
  290. default ""
  291. config BSP_PWM0_2_PINNAME
  292. string "pwm[2] pin name"
  293. default ""
  294. config BSP_PWM0_3_PINNAME
  295. string "pwm[3] pin name"
  296. default ""
  297. endif
  298. config BSP_USING_PWM1
  299. bool "Enable PWM 1"
  300. default n
  301. if BSP_USING_PWM1
  302. config BSP_PWM1_4_PINNAME
  303. string "pwm[4] pin name"
  304. default ""
  305. config BSP_PWM1_5_PINNAME
  306. string "pwm[5] pin name"
  307. default ""
  308. config BSP_PWM1_6_PINNAME
  309. string "pwm[6] pin name"
  310. default ""
  311. config BSP_PWM1_7_PINNAME
  312. string "pwm[7] pin name"
  313. default ""
  314. endif
  315. config BSP_USING_PWM2
  316. bool "Enable PWM 2"
  317. default n
  318. if BSP_USING_PWM2
  319. config BSP_PWM2_8_PINNAME
  320. string "pwm[8] pin name"
  321. default ""
  322. config BSP_PWM2_9_PINNAME
  323. string "pwm[9] pin name"
  324. default ""
  325. config BSP_PWM2_10_PINNAME
  326. string "pwm[10] pin name"
  327. default ""
  328. config BSP_PWM2_11_PINNAME
  329. string "pwm[11] pin name"
  330. default ""
  331. endif
  332. config BSP_USING_PWM3
  333. bool "Enable PWM 3"
  334. default n
  335. if BSP_USING_PWM3
  336. config BSP_PWM3_12_PINNAME
  337. string "pwm[12] pin name"
  338. default ""
  339. config BSP_PWM3_13_PINNAME
  340. string "pwm[13] pin name"
  341. default ""
  342. config BSP_PWM3_14_PINNAME
  343. string "pwm[14] pin name"
  344. default ""
  345. config BSP_PWM3_15_PINNAME
  346. string "pwm[15] pin name"
  347. default ""
  348. endif
  349. endif
  350. config BSP_USING_RTC
  351. bool "Enable RTC"
  352. select RT_USING_RTC
  353. default n
  354. endmenu