Kconfig 30 KB

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