Kconfig 30 KB

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