Kconfig 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. config BSP_USING_ARDUINO
  4. bool "Compatible with Arduino Ecosystem (RTduino)"
  5. select PKG_USING_RTDUINO
  6. select BSP_USING_UART1
  7. select BSP_USING_GPIO
  8. select BSP_USING_ADC
  9. select BSP_USING_ADC0
  10. select BSP_USING_ADC1
  11. select BSP_USING_ADC2
  12. select BSP_USING_PWM
  13. select BSP_USING_PWM0
  14. select BSP_USING_PWM1
  15. select BSP_USING_PWM2
  16. select BSP_USING_PWM3
  17. select BSP_USING_PWM4
  18. select BSP_USING_PWM5
  19. select BSP_USING_PWM6
  20. select BSP_USING_PWM7
  21. select BSP_USING_I2C
  22. select BSP_USING_I2C0
  23. imply RTDUINO_USING_SERVO
  24. default n
  25. config BSP_USING_LVGL
  26. bool "Enable LVGL for LCD"
  27. select PKG_USING_LVGL
  28. select BSP_USING_SPI_LCD
  29. default n
  30. config BSP_USING_LVGL_DEMO
  31. depends on BSP_USING_LVGL
  32. bool "Enable LVGL demo"
  33. select PKG_USING_LV_MUSIC_DEMO
  34. default y
  35. endmenu
  36. menu "On-chip Peripheral Drivers"
  37. config BSP_USING_PIN
  38. bool "Enable GPIO"
  39. select RT_USING_PIN
  40. default y
  41. menuconfig BSP_USING_UART
  42. bool "Enable UART"
  43. select RT_USING_SERIAL
  44. default y
  45. if BSP_USING_UART
  46. config BSP_USING_UART0
  47. bool "Enable UART0"
  48. default y
  49. if BSP_USING_UART0
  50. choice
  51. prompt "uart0 tx pin number (GP)"
  52. depends on BSP_USING_UART0
  53. default BSP_UART0_TX_PIN_0
  54. config BSP_UART0_TX_PIN_0
  55. bool "0"
  56. config BSP_UART0_TX_PIN_12
  57. bool "12"
  58. config BSP_UART0_TX_PIN_16
  59. bool "16"
  60. endchoice
  61. config BSP_UART0_TX_PIN
  62. int
  63. default 0 if BSP_UART0_TX_PIN_0
  64. default 12 if BSP_UART0_TX_PIN_12
  65. default 16 if BSP_UART0_TX_PIN_16
  66. choice
  67. prompt "uart0 rx pin number (GP)"
  68. depends on BSP_USING_UART0
  69. default BSP_UART0_RX_PIN_1
  70. config BSP_UART0_RX_PIN_1
  71. bool "1"
  72. config BSP_UART0_RX_PIN_13
  73. bool "13"
  74. config BSP_UART0_RX_PIN_17
  75. bool "17"
  76. endchoice
  77. config BSP_UART0_RX_PIN
  78. int
  79. default 1 if BSP_UART0_RX_PIN_1
  80. default 13 if BSP_UART0_RX_PIN_13
  81. default 17 if BSP_UART0_RX_PIN_17
  82. endif
  83. config BSP_USING_UART1
  84. bool "Enable UART1"
  85. default n
  86. if BSP_USING_UART1
  87. choice
  88. prompt "uart1 tx pin number (GP)"
  89. depends on BSP_USING_UART1
  90. default BSP_UART1_TX_PIN_8
  91. config BSP_UART1_TX_PIN_4
  92. bool "4"
  93. config BSP_UART1_TX_PIN_8
  94. bool "8"
  95. endchoice
  96. config BSP_UART1_TX_PIN
  97. int
  98. default 4 if BSP_UART1_TX_PIN_4
  99. default 8 if BSP_UART1_TX_PIN_8
  100. choice
  101. prompt "uart1 rx pin number (GP)"
  102. depends on BSP_USING_UART1
  103. default BSP_UART1_RX_PIN_9
  104. config BSP_UART1_RX_PIN_5
  105. bool "5"
  106. config BSP_UART1_RX_PIN_9
  107. bool "9"
  108. endchoice
  109. config BSP_UART1_RX_PIN
  110. int
  111. default 5 if BSP_UART1_RX_PIN_5
  112. default 9 if BSP_UART1_RX_PIN_9
  113. endif
  114. endif
  115. menuconfig BSP_USING_SOFT_I2C
  116. bool "Enable I2C BUS (software simulation)"
  117. default n
  118. select RT_USING_I2C
  119. select RT_USING_I2C_BITOPS
  120. select RT_USING_PIN
  121. if BSP_USING_SOFT_I2C
  122. config BSP_USING_SOFT_I2C1
  123. bool "Enable I2C1 Bus (software simulation)"
  124. default n
  125. if BSP_USING_SOFT_I2C1
  126. config BSP_SOFT_I2C1_SCL_PIN
  127. int "i2c1 scl pin number (GP)"
  128. range 0 28
  129. default 2
  130. config BSP_SOFT_I2C1_SDA_PIN
  131. int "I2C1 sda pin number (GP)"
  132. range 0 28
  133. default 3
  134. endif
  135. endif
  136. menuconfig BSP_USING_SOFT_SPI
  137. bool "Enable soft SPI BUS"
  138. default n
  139. select RT_USING_PIN
  140. select RT_USING_SPI_BITOPS
  141. select RT_USING_SPI
  142. if BSP_USING_SOFT_SPI
  143. config BSP_USING_SOFT_SPI0
  144. bool "Enable SPI0 Bus (software simulation)"
  145. default n
  146. if BSP_USING_SOFT_SPI0
  147. config BSP_S_SPI0_SCK_PIN
  148. int "spi0 sck pin number (GP)"
  149. range 0 28
  150. default 6
  151. config BSP_S_SPI0_MOSI_PIN
  152. int "spi0 mosi pin number (GP)"
  153. range 0 28
  154. default 7
  155. config BSP_S_SPI0_MISO_PIN
  156. int "spi0 miso pin number (GP)"
  157. range 0 28
  158. default 4
  159. endif
  160. config BSP_USING_SOFT_SPI1
  161. bool "Enable SPI1 Bus (software simulation)"
  162. default n
  163. if BSP_USING_SOFT_SPI1
  164. config BSP_S_SPI1_SCK_PIN
  165. int "spi1 sck pin number (GP)"
  166. range 0 28
  167. default 10
  168. config BSP_S_SPI1_MOSI_PIN
  169. int "spi1 mosi pin number (GP)"
  170. range 0 28
  171. default 11
  172. config BSP_S_SPI1_MISO_PIN
  173. int "spi1 miso pin number (GP)"
  174. range 0 28
  175. default 12
  176. endif
  177. endif
  178. menuconfig BSP_USING_ADC
  179. bool "Enable ADC"
  180. default n
  181. select RT_USING_ADC
  182. if BSP_USING_ADC
  183. config BSP_USING_ADC0
  184. bool "Enable ADC0 (GP26)"
  185. default n
  186. config BSP_USING_ADC1
  187. bool "Enable ADC1 (GP27)"
  188. default n
  189. config BSP_USING_ADC2
  190. bool "Enable ADC2 (GP28)"
  191. default n
  192. endif
  193. config BSP_USING_WDT
  194. bool "Enable WDT"
  195. select RT_USING_WDT
  196. default n
  197. config BSP_USING_RTC
  198. bool "Enable RTC"
  199. select RT_USING_RTC
  200. default n
  201. menuconfig BSP_USING_SPI
  202. bool "Enable SPI"
  203. select RT_USING_SPI
  204. default n
  205. if BSP_USING_SPI
  206. config BSP_USING_SPI0
  207. bool "Enable SPI0"
  208. default n
  209. if BSP_USING_SPI0
  210. choice
  211. prompt "spi0 tx pin number (GP)"
  212. depends on BSP_USING_SPI0
  213. default BSP_SPI0_TX_PIN_3
  214. config BSP_SPI0_TX_PIN_3
  215. bool "3"
  216. config BSP_SPI0_TX_PIN_7
  217. bool "7"
  218. config BSP_SPI0_TX_PIN_19
  219. bool "19"
  220. endchoice
  221. config BSP_SPI0_TX_PIN
  222. int
  223. default 3 if BSP_SPI0_TX_PIN_3
  224. default 7 if BSP_SPI0_TX_PIN_7
  225. default 19 if BSP_SPI0_TX_PIN_19
  226. choice
  227. prompt "spi0 rx pin number (GP)"
  228. depends on BSP_USING_SPI0
  229. default BSP_SPI0_RX_PIN_4
  230. config BSP_SPI0_RX_PIN_0
  231. bool "0"
  232. config BSP_SPI0_RX_PIN_4
  233. bool "4"
  234. config BSP_SPI0_RX_PIN_16
  235. bool "16"
  236. endchoice
  237. config BSP_SPI0_RX_PIN
  238. int
  239. default 0 if BSP_SPI0_RX_PIN_0
  240. default 4 if BSP_SPI0_RX_PIN_4
  241. default 16 if BSP_SPI0_RX_PIN_16
  242. choice
  243. prompt "spi0 sck pin number (GP)"
  244. depends on BSP_USING_SPI0
  245. default BSP_SPI0_SCK_PIN_2
  246. config BSP_SPI0_SCK_PIN_2
  247. bool "2"
  248. config BSP_SPI0_SCK_PIN_6
  249. bool "6"
  250. config BSP_SPI0_SCK_PIN_8
  251. bool "8"
  252. endchoice
  253. config BSP_SPI0_SCK_PIN
  254. int
  255. default 2 if BSP_SPI0_SCK_PIN_2
  256. default 6 if BSP_SPI0_SCK_PIN_6
  257. default 8 if BSP_SPI0_SCK_PIN_8
  258. choice
  259. prompt "spi0 cs pin number (GP)"
  260. depends on BSP_USING_SPI0
  261. default BSP_SPI0_CS_PIN_5
  262. config BSP_SPI0_CS_PIN_1
  263. bool "1"
  264. config BSP_SPI0_CS_PIN_5
  265. bool "5"
  266. config BSP_SPI0_CS_PIN_17
  267. bool "17"
  268. endchoice
  269. config BSP_SPI0_CS_PIN
  270. int
  271. default 1 if BSP_SPI0_CS_PIN_1
  272. default 5 if BSP_SPI0_CS_PIN_5
  273. default 17 if BSP_SPI0_CS_PIN_17
  274. endif
  275. config BSP_USING_SPI1
  276. bool "Enable SPI1"
  277. default n
  278. if BSP_USING_SPI1
  279. choice
  280. prompt "spi1 tx pin number (GP)"
  281. depends on BSP_USING_SPI1
  282. default BSP_SPI1_TX_PIN_11
  283. config BSP_SPI1_TX_PIN_11
  284. bool "11"
  285. config BSP_SPI1_TX_PIN_15
  286. bool "15"
  287. endchoice
  288. config BSP_SPI1_TX_PIN
  289. int
  290. default 11 if BSP_SPI1_TX_PIN_11
  291. default 15 if BSP_SPI1_TX_PIN_15
  292. choice
  293. prompt "spi1 rx pin number (GP)"
  294. depends on BSP_USING_SPI1
  295. default BSP_SPI1_RX_PIN_12
  296. config BSP_SPI1_RX_PIN_8
  297. bool "8"
  298. config BSP_SPI1_RX_PIN_12
  299. bool "12"
  300. endchoice
  301. config BSP_SPI1_RX_PIN
  302. int
  303. default 8 if BSP_SPI1_RX_PIN_8
  304. default 12 if BSP_SPI1_RX_PIN_12
  305. choice
  306. prompt "spi1 sck pin number (GP)"
  307. depends on BSP_USING_SPI0
  308. default BSP_SPI1_SCK_PIN_10
  309. config BSP_SPI1_SCK_PIN_10
  310. bool "10"
  311. config BSP_SPI1_SCK_PIN_14
  312. bool "14"
  313. endchoice
  314. config BSP_SPI1_SCK_PIN
  315. int
  316. default 10 if BSP_SPI1_SCK_PIN_10
  317. default 14 if BSP_SPI1_SCK_PIN_14
  318. choice
  319. prompt "spi1 cs pin number (GP)"
  320. depends on BSP_USING_SPI0
  321. default BSP_SPI1_CS_PIN_13
  322. config BSP_SPI1_CS_PIN_9
  323. bool "9"
  324. config BSP_SPI1_CS_PIN_13
  325. bool "13"
  326. endchoice
  327. config BSP_SPI1_CS_PIN
  328. int
  329. default 9 if BSP_SPI1_CS_PIN_9
  330. default 13 if BSP_SPI1_CS_PIN_13
  331. endif
  332. endif
  333. menuconfig BSP_USING_PWM
  334. bool "Enable PWM(A:CH_0 B:CH_1)"
  335. default n
  336. select RT_USING_PWM
  337. if BSP_USING_PWM
  338. config BSP_USING_PWM0
  339. bool "Enable PWM0"
  340. default n
  341. if BSP_USING_PWM0
  342. choice
  343. prompt "pwm slice A pin number (GP)"
  344. depends on BSP_USING_PWM0
  345. default BSP_PWM0_A_PIN_16
  346. config BSP_PWM0_A_PIN_0
  347. bool "0"
  348. config BSP_PWM0_A_PIN_16
  349. bool "16"
  350. endchoice
  351. config BSP_PWM0_A_PIN
  352. int
  353. default 0 if BSP_PWM0_A_PIN_0
  354. default 16 if BSP_PWM0_A_PIN_16
  355. choice
  356. prompt "pwm slice B pin number (GP)"
  357. depends on BSP_USING_PWM0
  358. default BSP_PWM0_B_PIN_17
  359. config BSP_PWM0_B_PIN_1
  360. bool "1"
  361. config BSP_PWM0_B_PIN_17
  362. bool "17"
  363. endchoice
  364. config BSP_PWM0_B_PIN
  365. int
  366. default 1 if BSP_PWM0_B_PIN_1
  367. default 17 if BSP_PWM0_B_PIN_17
  368. config BSP_PWM0_A_ALL
  369. bool "pwm slice use all A pin"
  370. default n
  371. config BSP_PWM0_B_ALL
  372. bool "pwm slice use all B pin"
  373. default n
  374. endif
  375. config BSP_USING_PWM1
  376. bool "Enable PWM1"
  377. default n
  378. if BSP_USING_PWM1
  379. choice
  380. prompt "pwm slice A pin number (GP)"
  381. depends on BSP_USING_PWM1
  382. default BSP_PWM1_A_PIN_18
  383. config BSP_PWM1_A_PIN_2
  384. bool "2"
  385. config BSP_PWM1_A_PIN_18
  386. bool "18"
  387. endchoice
  388. config BSP_PWM1_A_PIN
  389. int
  390. default 2 if BSP_PWM1_A_PIN_2
  391. default 18 if BSP_PWM1_A_PIN_18
  392. choice
  393. prompt "pwm slice B pin number (GP)"
  394. depends on BSP_USING_PWM1
  395. default BSP_PWM1_B_PIN_19
  396. config BSP_PWM1_B_PIN_3
  397. bool "3"
  398. config BSP_PWM1_B_PIN_19
  399. bool "19"
  400. endchoice
  401. config BSP_PWM1_B_PIN
  402. int
  403. default 3 if BSP_PWM1_B_PIN_3
  404. default 19 if BSP_PWM1_B_PIN_19
  405. config BSP_PWM1_A_ALL
  406. bool "pwm slice use all A pin"
  407. default n
  408. config BSP_PWM1_B_ALL
  409. bool "pwm slice use all B pin"
  410. default n
  411. endif
  412. config BSP_USING_PWM2
  413. bool "Enable PWM2"
  414. default n
  415. if BSP_USING_PWM2
  416. choice
  417. prompt "pwm slice A pin number (GP)"
  418. depends on BSP_USING_PWM2
  419. default BSP_PWM2_A_PIN_20
  420. config BSP_PWM2_A_PIN_4
  421. bool "4"
  422. config BSP_PWM2_A_PIN_20
  423. bool "20"
  424. endchoice
  425. config BSP_PWM2_A_PIN
  426. int
  427. default 4 if BSP_PWM2_A_PIN_4
  428. default 20 if BSP_PWM2_A_PIN_20
  429. choice
  430. prompt "pwm slice B pin number (GP)"
  431. depends on BSP_USING_PWM2
  432. default BSP_PWM2_B_PIN_21
  433. config BSP_PWM2_B_PIN_5
  434. bool "5"
  435. config BSP_PWM2_B_PIN_21
  436. bool "21"
  437. endchoice
  438. config BSP_PWM2_B_PIN
  439. int
  440. default 5 if BSP_PWM2_B_PIN_5
  441. default 21 if BSP_PWM2_B_PIN_21
  442. config BSP_PWM2_A_ALL
  443. bool "pwm slice use all A pin"
  444. default n
  445. config BSP_PWM2_B_ALL
  446. bool "pwm slice use all B pin"
  447. default n
  448. endif
  449. config BSP_USING_PWM3
  450. bool "Enable PWM3"
  451. default n
  452. if BSP_USING_PWM3
  453. choice
  454. prompt "pwm slice A pin number (GP)"
  455. depends on BSP_USING_PWM3
  456. default BSP_PWM3_A_PIN_22
  457. config BSP_PWM3_A_PIN_6
  458. bool "6"
  459. config BSP_PWM3_A_PIN_22
  460. bool "22"
  461. endchoice
  462. config BSP_PWM3_A_PIN
  463. int
  464. default 6 if BSP_PWM3_A_PIN_6
  465. default 22 if BSP_PWM3_A_PIN_22
  466. choice
  467. prompt "pwm slice B pin number (GP)"
  468. depends on BSP_USING_PWM3
  469. default BSP_PWM3_B_PIN_23
  470. config BSP_PWM3_B_PIN_7
  471. bool "7"
  472. config BSP_PWM3_B_PIN_23
  473. bool "23"
  474. endchoice
  475. config BSP_PWM3_B_PIN
  476. int
  477. default 7 if BSP_PWM3_B_PIN_7
  478. default 23 if BSP_PWM3_B_PIN_23
  479. config BSP_PWM3_A_ALL
  480. bool "pwm slice use all A pin"
  481. default n
  482. config BSP_PWM3_B_ALL
  483. bool "pwm slice use all B pin"
  484. default n
  485. endif
  486. config BSP_USING_PWM4
  487. bool "Enable PWM4"
  488. default n
  489. if BSP_USING_PWM4
  490. choice
  491. prompt "pwm slice A pin number (GP)"
  492. depends on BSP_USING_PWM4
  493. default BSP_PWM4_A_PIN_24
  494. config BSP_PWM4_A_PIN_8
  495. bool "8"
  496. config BSP_PWM4_A_PIN_24
  497. bool "24"
  498. endchoice
  499. config BSP_PWM4_A_PIN
  500. int
  501. default 8 if BSP_PWM4_A_PIN_8
  502. default 24 if BSP_PWM4_A_PIN_24
  503. choice
  504. prompt "pwm slice B pin number (GP)"
  505. depends on BSP_USING_PWM4
  506. default BSP_PWM4_B_PIN_25
  507. config BSP_PWM4_B_PIN_9
  508. bool "9"
  509. config BSP_PWM4_B_PIN_25
  510. bool "25"
  511. endchoice
  512. config BSP_PWM4_B_PIN
  513. int
  514. default 9 if BSP_PWM4_B_PIN_9
  515. default 25 if BSP_PWM4_B_PIN_25
  516. config BSP_PWM4_A_ALL
  517. bool "pwm slice use all A pin"
  518. default n
  519. config BSP_PWM4_B_ALL
  520. bool "pwm slice use all B pin"
  521. default n
  522. endif
  523. config BSP_USING_PWM5
  524. bool "Enable PWM5"
  525. default n
  526. if BSP_USING_PWM5
  527. choice
  528. prompt "pwm slice A pin number (GP)"
  529. depends on BSP_USING_PWM5
  530. default BSP_PWM5_A_PIN_10
  531. config BSP_PWM5_A_PIN_10
  532. bool "10"
  533. config BSP_PWM5_A_PIN_26
  534. bool "26"
  535. endchoice
  536. config BSP_PWM5_A_PIN
  537. int
  538. default 10 if BSP_PWM5_A_PIN_10
  539. default 26 if BSP_PWM5_A_PIN_26
  540. choice
  541. prompt "pwm slice B pin number (GP)"
  542. depends on BSP_USING_PWM5
  543. default BSP_PWM5_B_PIN_11
  544. config BSP_PWM5_B_PIN_11
  545. bool "11"
  546. config BSP_PWM5_B_PIN_27
  547. bool "27"
  548. endchoice
  549. config BSP_PWM5_B_PIN
  550. int
  551. default 11 if BSP_PWM5_B_PIN_11
  552. default 27 if BSP_PWM5_B_PIN_27
  553. config BSP_PWM5_A_ALL
  554. bool "pwm slice use all A pin"
  555. default n
  556. config BSP_PWM5_B_ALL
  557. bool "pwm slice use all B pin"
  558. default n
  559. endif
  560. config BSP_USING_PWM6
  561. bool "Enable PWM6"
  562. default n
  563. if BSP_USING_PWM6
  564. choice
  565. prompt "pwm slice A pin number (GP)"
  566. depends on BSP_USING_PWM6
  567. default BSP_PWM6_A_PIN_12
  568. config BSP_PWM6_A_PIN_12
  569. bool "12"
  570. config BSP_PWM6_A_PIN_28
  571. bool "28"
  572. endchoice
  573. config BSP_PWM6_A_PIN
  574. int
  575. default 12 if BSP_PWM6_A_PIN_12
  576. default 28 if BSP_PWM6_A_PIN_28
  577. choice
  578. prompt "pwm slice B pin number (GP)"
  579. depends on BSP_USING_PWM6
  580. default BSP_PWM6_B_PIN_13
  581. config BSP_PWM6_B_PIN_13
  582. bool "13"
  583. config BSP_PWM6_B_PIN_29
  584. bool "29"
  585. endchoice
  586. config BSP_PWM6_B_PIN
  587. int
  588. default 13 if BSP_PWM6_B_PIN_13
  589. default 29 if BSP_PWM6_B_PIN_29
  590. config BSP_PWM6_A_ALL
  591. bool "pwm slice use all A pin"
  592. default n
  593. config BSP_PWM6_B_ALL
  594. bool "pwm slice use all B pin"
  595. default n
  596. endif
  597. config BSP_USING_PWM7
  598. bool "Enable PWM7"
  599. default n
  600. if BSP_USING_PWM7
  601. choice
  602. prompt "pwm slice A pin number (GP)"
  603. depends on BSP_USING_PWM7
  604. default BSP_PWM7_A_PIN_14
  605. config BSP_PWM7_A_PIN_14
  606. bool "14"
  607. endchoice
  608. config BSP_PWM7_A_PIN
  609. int
  610. default 14 if BSP_PWM7_A_PIN_14
  611. choice
  612. prompt "pwm slice B pin number (GP)"
  613. depends on BSP_USING_PWM7
  614. default BSP_PWM7_B_PIN_15
  615. config BSP_PWM7_B_PIN_15
  616. bool "15"
  617. endchoice
  618. config BSP_PWM7_B_PIN
  619. int
  620. default 15 if BSP_PWM7_B_PIN_15
  621. endif
  622. endif
  623. menuconfig BSP_USING_HWTIMER
  624. bool "Enable HWTIMER"
  625. default n
  626. select RT_USING_HWTIMER
  627. if BSP_USING_HWTIMER
  628. config BSP_USING_TIMER0
  629. bool "Enable HWTIMER0"
  630. default n
  631. config BSP_USING_TIMER1
  632. bool "Enable HWTIMER1"
  633. default n
  634. config BSP_USING_TIMER2
  635. bool "Enable HWTIMER2"
  636. default n
  637. config BSP_USING_TIMER3
  638. bool "Enable HWTIMER3"
  639. default n
  640. endif
  641. menuconfig BSP_USING_I2C
  642. bool "Enable I2C"
  643. select RT_USING_I2C
  644. select RT_USING_I2C_BITOPS
  645. select RT_USING_PIN
  646. default n
  647. if BSP_USING_I2C
  648. config BSP_USING_I2C0
  649. bool "Enable I2C0"
  650. default n
  651. if BSP_USING_I2C0
  652. choice
  653. prompt "i2c0 scl pin number (GP)"
  654. depends on BSP_USING_I2C0
  655. default BSP_I2C0_SCL_PIN_21
  656. config BSP_I2C0_SCL_PIN_1
  657. bool "1"
  658. config BSP_I2C0_SCL_PIN_5
  659. bool "5"
  660. config BSP_I2C0_SCL_PIN_9
  661. bool "9"
  662. config BSP_I2C0_SCL_PIN_13
  663. bool "13"
  664. config BSP_I2C0_SCL_PIN_17
  665. bool "17"
  666. config BSP_I2C0_SCL_PIN_21
  667. bool "21"
  668. endchoice
  669. config BSP_I2C0_SCL_PIN
  670. int
  671. default 1 if BSP_I2C0_SCL_PIN_1
  672. default 5 if BSP_I2C0_SCL_PIN_5
  673. default 9 if BSP_I2C0_SCL_PIN_9
  674. default 13 if BSP_I2C0_SCL_PIN_13
  675. default 17 if BSP_I2C0_SCL_PIN_17
  676. default 21 if BSP_I2C0_SCL_PIN_21
  677. choice
  678. prompt "i2c0 sda pin number (GP)"
  679. depends on BSP_USING_I2C0
  680. default BSP_I2C0_SDA_PIN_20
  681. config BSP_I2C0_SDA_PIN_0
  682. bool "0"
  683. config BSP_I2C0_SDA_PIN_4
  684. bool "4"
  685. config BSP_I2C0_SDA_PIN_8
  686. bool "8"
  687. config BSP_I2C0_SDA_PIN_12
  688. bool "12"
  689. config BSP_I2C0_SDA_PIN_16
  690. bool "16"
  691. config BSP_I2C0_SDA_PIN_20
  692. bool "20"
  693. endchoice
  694. config BSP_I2C0_SDA_PIN
  695. int
  696. default 0 if BSP_I2C0_SDA_PIN_0
  697. default 4 if BSP_I2C0_SDA_PIN_4
  698. default 8 if BSP_I2C0_SDA_PIN_8
  699. default 12 if BSP_I2C0_SDA_PIN_12
  700. default 16 if BSP_I2C0_SDA_PIN_16
  701. default 20 if BSP_I2C0_SDA_PIN_20
  702. endif
  703. config BSP_USING_I2C1
  704. bool "Enable I2C1"
  705. default n
  706. if BSP_USING_I2C1
  707. choice
  708. prompt "i2c1 scl pin number (GP)"
  709. depends on BSP_USING_I2C1
  710. config BSP_I2C1_SCL_PIN_3
  711. bool "3"
  712. config BSP_I2C1_SCL_PIN_7
  713. bool "7"
  714. config BSP_I2C1_SCL_PIN_11
  715. bool "11"
  716. config BSP_I2C1_SCL_PIN_15
  717. bool "15"
  718. config BSP_I2C1_SCL_PIN_19
  719. bool "19"
  720. config BSP_I2C1_SCL_PIN_27
  721. bool "27"
  722. endchoice
  723. config BSP_I2C1_SCL_PIN
  724. int
  725. default 3 if BSP_I2C1_SCL_PIN_3
  726. default 7 if BSP_I2C1_SCL_PIN_7
  727. default 11 if BSP_I2C1_SCL_PIN_11
  728. default 15 if BSP_I2C1_SCL_PIN_15
  729. default 19 if BSP_I2C1_SCL_PIN_19
  730. default 27 if BSP_I2C1_SCL_PIN_27
  731. choice
  732. prompt "i2c1 sda pin number (GP)"
  733. depends on BSP_USING_I2C1
  734. config BSP_I2C1_SDA_PIN_2
  735. bool "2"
  736. config BSP_I2C1_SDA_PIN_6
  737. bool "6"
  738. config BSP_I2C1_SDA_PIN_10
  739. bool "10"
  740. config BSP_I2C1_SDA_PIN_14
  741. bool "14"
  742. config BSP_I2C1_SDA_PIN_18
  743. bool "18"
  744. config BSP_I2C1_SDA_PIN_26
  745. bool "26"
  746. endchoice
  747. config BSP_I2C1_SDA_PIN
  748. int
  749. default 2 if BSP_I2C1_SDA_PIN_2
  750. default 6 if BSP_I2C1_SDA_PIN_6
  751. default 10 if BSP_I2C1_SDA_PIN_10
  752. default 14 if BSP_I2C1_SDA_PIN_14
  753. default 18 if BSP_I2C1_SDA_PIN_18
  754. default 26 if BSP_I2C1_SDA_PIN_26
  755. endif
  756. endif
  757. config BSP_USING_ON_CHIP_FLASH
  758. bool "Enable On-Chip FLASH"
  759. select FAL_DEBUG_CONFIG
  760. select FAL_PART_HAS_TABLE_CFG
  761. default n
  762. endmenu
  763. endmenu