Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754
  1. menu "Hardware Drivers Config"
  2. config SOC_HC32F472MC
  3. bool
  4. select SOC_SERIES_HC32F4
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. menu "On-chip Drivers"
  9. menuconfig BSP_USING_ON_CHIP_FLASH_CACHE
  10. bool "Enable on-chip Flash Cache"
  11. default y
  12. if BSP_USING_ON_CHIP_FLASH_CACHE
  13. config BSP_USING_ON_CHIP_FLASH_ICODE_CACHE
  14. bool "Enable on-chip Flash ICODE Cache"
  15. default y
  16. config BSP_USING_ON_CHIP_FLASH_DCODE_CACHE
  17. bool "Enable on-chip Flash DCODE Cache"
  18. default y
  19. config BSP_USING_ON_CHIP_FLASH_ICODE_PREFETCH
  20. bool "Enable on-chip Flash ICODE Prefetch"
  21. default y
  22. endif
  23. endmenu
  24. menu "Onboard Peripheral Drivers"
  25. config BSP_USING_TCA9539
  26. bool "Enable TCA9539"
  27. select BSP_USING_I2C
  28. select BSP_USING_I2C1
  29. default n
  30. config BSP_USING_SPI_FLASH
  31. bool "Enable SPI FLASH (w25q64 spi1)"
  32. select BSP_USING_SPI
  33. select BSP_USING_SPI1
  34. select BSP_USING_ON_CHIP_FLASH
  35. select RT_USING_SFUD
  36. select RT_USING_DFS
  37. select RT_USING_FAL
  38. select RT_USING_MTD_NOR
  39. default n
  40. config BSP_USING_EXT_IO
  41. bool
  42. default y
  43. endmenu
  44. menu "On-chip Peripheral Drivers"
  45. config BSP_USING_GPIO
  46. bool "Enable GPIO"
  47. select RT_USING_PIN
  48. select BSP_USING_TCA9539
  49. default y
  50. menuconfig BSP_USING_UART
  51. bool "Enable UART"
  52. default y
  53. select RT_USING_SERIAL
  54. if BSP_USING_UART
  55. menuconfig BSP_USING_UART1
  56. bool "Enable UART1"
  57. default n
  58. if BSP_USING_UART1
  59. config BSP_UART1_RX_USING_DMA
  60. bool "Enable UART1 RX DMA"
  61. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  62. default n
  63. config BSP_UART1_TX_USING_DMA
  64. bool "Enable UART1 TX DMA"
  65. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  66. default n
  67. config BSP_UART1_RX_BUFSIZE
  68. int "Set UART1 RX buffer size"
  69. range 64 65535
  70. depends on RT_USING_SERIAL_V2
  71. default 256
  72. config BSP_UART1_TX_BUFSIZE
  73. int "Set UART1 TX buffer size"
  74. range 0 65535
  75. depends on RT_USING_SERIAL_V2
  76. default 256
  77. config BSP_UART1_DMA_PING_BUFSIZE
  78. int "Set UART1 RX DMA ping-pong buffer size"
  79. range 32 65535
  80. depends on RT_USING_SERIAL_V2 && BSP_UART1_RX_USING_DMA
  81. default 64
  82. endif
  83. menuconfig BSP_USING_UART2
  84. bool "Enable UART2"
  85. default y
  86. if BSP_USING_UART2
  87. config BSP_UART2_RX_USING_DMA
  88. bool "Enable UART2 RX DMA"
  89. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  90. default n
  91. config BSP_UART2_TX_USING_DMA
  92. bool "Enable UART2 TX DMA"
  93. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  94. default n
  95. config BSP_UART2_RX_BUFSIZE
  96. int "Set UART2 RX buffer size"
  97. range 64 65535
  98. depends on RT_USING_SERIAL_V2
  99. default 256
  100. config BSP_UART2_TX_BUFSIZE
  101. int "Set UART2 TX buffer size"
  102. range 0 65535
  103. depends on RT_USING_SERIAL_V2
  104. default 0
  105. config BSP_UART2_DMA_PING_BUFSIZE
  106. int "Set UART2 RX DMA ping-pong buffer size"
  107. range 32 65535
  108. depends on RT_USING_SERIAL_V2 && BSP_UART2_RX_USING_DMA
  109. default 64
  110. endif
  111. menuconfig BSP_USING_UART3
  112. bool "Enable UART3"
  113. default n
  114. if BSP_USING_UART3
  115. config BSP_UART3_RX_BUFSIZE
  116. int "Set UART3 RX buffer size"
  117. range 64 65535
  118. depends on RT_USING_SERIAL_V2
  119. default 256
  120. config BSP_UART3_TX_BUFSIZE
  121. int "Set UART3 TX buffer size"
  122. range 0 65535
  123. depends on RT_USING_SERIAL_V2
  124. default 0
  125. endif
  126. menuconfig BSP_USING_UART4
  127. bool "Enable UART4"
  128. default n
  129. if BSP_USING_UART4
  130. config BSP_UART4_RX_USING_DMA
  131. bool "Enable UART4 RX DMA"
  132. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  133. default n
  134. config BSP_UART4_TX_USING_DMA
  135. bool "Enable UART4 TX DMA"
  136. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  137. default n
  138. config BSP_UART4_RX_BUFSIZE
  139. int "Set UART4 RX buffer size"
  140. range 64 65535
  141. depends on RT_USING_SERIAL_V2
  142. default 256
  143. config BSP_UART4_TX_BUFSIZE
  144. int "Set UART4 TX buffer size"
  145. range 0 65535
  146. depends on RT_USING_SERIAL_V2
  147. default 256
  148. config BSP_UART4_DMA_PING_BUFSIZE
  149. int "Set UART4 RX DMA ping-pong buffer size"
  150. range 32 65535
  151. depends on RT_USING_SERIAL_V2 && BSP_UART4_RX_USING_DMA
  152. default 64
  153. endif
  154. menuconfig BSP_USING_UART5
  155. bool "Enable UART5"
  156. default n
  157. if BSP_USING_UART5
  158. config BSP_UART5_RX_USING_DMA
  159. bool "Enable UART5 RX DMA"
  160. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  161. default n
  162. config BSP_UART5_TX_USING_DMA
  163. bool "Enable UART5 TX DMA"
  164. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  165. default n
  166. config BSP_UART5_RX_BUFSIZE
  167. int "Set UART5 RX buffer size"
  168. range 64 65535
  169. depends on RT_USING_SERIAL_V2
  170. default 256
  171. config BSP_UART5_TX_BUFSIZE
  172. int "Set UART5 TX buffer size"
  173. range 0 65535
  174. depends on RT_USING_SERIAL_V2
  175. default 256
  176. config BSP_UART5_DMA_PING_BUFSIZE
  177. int "Set UART5 RX DMA ping-pong buffer size"
  178. range 32 65535
  179. depends on RT_USING_SERIAL_V2 && BSP_UART5_RX_USING_DMA
  180. default 64
  181. endif
  182. menuconfig BSP_USING_UART6
  183. bool "Enable UART6"
  184. default n
  185. if BSP_USING_UART6
  186. config BSP_UART6_RX_BUFSIZE
  187. int "Set UART6 RX buffer size"
  188. range 64 65535
  189. depends on RT_USING_SERIAL_V2
  190. default 256
  191. config BSP_UART6_TX_BUFSIZE
  192. int "Set UART6 TX buffer size"
  193. range 0 65535
  194. depends on RT_USING_SERIAL_V2
  195. default 0
  196. endif
  197. endif
  198. menuconfig BSP_USING_I2C
  199. bool "Enable I2C BUS"
  200. default n
  201. select RT_USING_I2C
  202. if BSP_USING_I2C
  203. menuconfig BSP_USING_I2C1_SW
  204. bool "Enable I2C1 BUS (software simulation)"
  205. default n
  206. select RT_USING_I2C_BITOPS
  207. select RT_USING_PIN
  208. if BSP_USING_I2C1_SW
  209. config BSP_I2C1_SCL_PIN
  210. int "i2c1 scl pin number"
  211. range 1 100
  212. default 10
  213. config BSP_I2C1_SDA_PIN
  214. int "I2C1 sda pin number"
  215. range 1 100
  216. default 9
  217. endif
  218. endif
  219. if BSP_USING_I2C
  220. config BSP_I2C_USING_DMA
  221. bool
  222. default n
  223. config BSP_USING_I2C_HW
  224. bool
  225. default n
  226. menuconfig BSP_USING_I2C1
  227. bool "Enable I2C1 BUS"
  228. default n
  229. select BSP_USING_I2C_HW
  230. if BSP_USING_I2C1
  231. config BSP_I2C1_USING_DMA
  232. bool
  233. default n
  234. config BSP_I2C1_TX_USING_DMA
  235. bool "Enable I2C1 TX DMA"
  236. default n
  237. select BSP_I2C_USING_DMA
  238. select BSP_I2C1_USING_DMA
  239. config BSP_I2C1_RX_USING_DMA
  240. bool "Enable I2C1 RX DMA"
  241. default n
  242. select BSP_I2C_USING_DMA
  243. select BSP_I2C1_USING_DMA
  244. endif
  245. menuconfig BSP_USING_I2C2
  246. bool "Enable I2C2 BUS"
  247. default n
  248. select BSP_USING_I2C_HW
  249. if BSP_USING_I2C2
  250. config BSP_I2C2_USING_DMA
  251. bool
  252. default n
  253. config BSP_I2C2_TX_USING_DMA
  254. bool "Enable I2C2 TX DMA"
  255. default n
  256. select BSP_I2C_USING_DMA
  257. select BSP_I2C2_USING_DMA
  258. config BSP_I2C2_RX_USING_DMA
  259. bool "Enable I2C2 RX DMA"
  260. default n
  261. select BSP_I2C_USING_DMA
  262. select BSP_I2C2_USING_DMA
  263. endif
  264. endif
  265. config BSP_USING_ON_CHIP_FLASH
  266. bool "Enable on-chip FLASH"
  267. default n
  268. menuconfig BSP_USING_SPI
  269. bool "Enable SPI BUS"
  270. default n
  271. select RT_USING_SPI
  272. if BSP_USING_SPI
  273. config BSP_SPI_USING_DMA
  274. bool
  275. default n
  276. menuconfig BSP_USING_SPI1
  277. bool "Enable SPI1 BUS"
  278. default n
  279. if BSP_USING_SPI1
  280. config BSP_SPI1_TX_USING_DMA
  281. bool "Enable SPI1 TX DMA"
  282. select BSP_SPI_USING_DMA
  283. default n
  284. config BSP_SPI1_RX_USING_DMA
  285. bool "Enable SPI1 RX DMA"
  286. select BSP_SPI_USING_DMA
  287. select BSP_SPI1_TX_USING_DMA
  288. default n
  289. endif
  290. menuconfig BSP_USING_SPI2
  291. bool "Enable SPI2 BUS"
  292. default n
  293. if BSP_USING_SPI2
  294. config BSP_SPI2_TX_USING_DMA
  295. bool "Enable SPI2 TX DMA"
  296. select BSP_SPI_USING_DMA
  297. default n
  298. config BSP_SPI2_RX_USING_DMA
  299. bool "Enable SPI2 RX DMA"
  300. select BSP_SPI_USING_DMA
  301. select BSP_SPI2_TX_USING_DMA
  302. default n
  303. endif
  304. menuconfig BSP_USING_SPI3
  305. bool "Enable SPI3 BUS"
  306. default n
  307. if BSP_USING_SPI3
  308. config BSP_SPI3_TX_USING_DMA
  309. bool "Enable SPI3 TX DMA"
  310. select BSP_SPI_USING_DMA
  311. default n
  312. config BSP_SPI3_RX_USING_DMA
  313. bool "Enable SPI3 RX DMA"
  314. select BSP_SPI_USING_DMA
  315. select BSP_SPI3_TX_USING_DMA
  316. default n
  317. endif
  318. menuconfig BSP_USING_SPI4
  319. bool "Enable SPI4 BUS"
  320. default n
  321. if BSP_USING_SPI4
  322. config BSP_SPI4_TX_USING_DMA
  323. bool "Enable SPI4 TX DMA"
  324. select BSP_SPI_USING_DMA
  325. default n
  326. config BSP_SPI4_RX_USING_DMA
  327. bool "Enable SPI4 RX DMA"
  328. select BSP_SPI_USING_DMA
  329. select BSP_SPI4_TX_USING_DMA
  330. default n
  331. endif
  332. endif
  333. menuconfig BSP_USING_ADC
  334. bool "Enable ADC"
  335. default n
  336. select RT_USING_ADC
  337. if BSP_USING_ADC
  338. menuconfig BSP_USING_ADC1
  339. bool "Enable ADC1"
  340. default n
  341. if BSP_USING_ADC1
  342. config BSP_ADC1_USING_DMA
  343. bool "using adc1 dma"
  344. default n
  345. endif
  346. menuconfig BSP_USING_ADC2
  347. bool "Enable ADC2"
  348. default n
  349. if BSP_USING_ADC2
  350. config BSP_ADC2_USING_DMA
  351. bool "using adc2 dma"
  352. default n
  353. endif
  354. menuconfig BSP_USING_ADC3
  355. bool "Enable ADC3"
  356. default n
  357. if BSP_USING_ADC3
  358. config BSP_ADC3_USING_DMA
  359. bool "using adc3 dma"
  360. default n
  361. endif
  362. endif
  363. menuconfig BSP_USING_DAC
  364. bool "Enable DAC"
  365. default n
  366. select RT_USING_DAC
  367. if BSP_USING_DAC
  368. config BSP_USING_DAC1
  369. bool "using dac1"
  370. default n
  371. config BSP_USING_DAC2
  372. bool "using dac2"
  373. default n
  374. config BSP_USING_DAC3
  375. bool "using dac3"
  376. default n
  377. config BSP_USING_DAC4
  378. bool "using dac4"
  379. default n
  380. endif
  381. menuconfig BSP_USING_CAN
  382. bool "Enable CAN"
  383. default n
  384. select RT_USING_CAN
  385. select RT_CAN_USING_HDR
  386. select BSP_USING_TCA9539
  387. if BSP_USING_CAN
  388. config BSP_USING_CAN1
  389. bool "using can1"
  390. default n
  391. config BSP_USING_CAN2
  392. bool "using can2"
  393. default n
  394. config BSP_USING_CAN3
  395. bool "using can3"
  396. default n
  397. endif
  398. menuconfig BSP_USING_WDT_TMR
  399. bool "Enable Watchdog Timer"
  400. default n
  401. select RT_USING_WDT
  402. if BSP_USING_WDT_TMR
  403. choice
  404. prompt "Select SWDT/WDT"
  405. default BSP_USING_SWDT
  406. config BSP_USING_SWDT
  407. bool "SWDT(3.72hour(max))"
  408. config BSP_USING_WDT
  409. bool "WDT(10.7s(max))"
  410. endchoice
  411. config BSP_WDT_CONTINUE_COUNT
  412. bool "Low Power Mode Keeps Counting"
  413. default n
  414. endif
  415. menuconfig BSP_USING_RTC
  416. bool "Enable RTC"
  417. select RT_USING_RTC
  418. default n
  419. if BSP_USING_RTC
  420. choice
  421. prompt "Select clock source"
  422. default BSP_RTC_USING_XTAL32
  423. config BSP_RTC_USING_XTAL32
  424. bool "RTC Using XTAL32"
  425. config BSP_RTC_USING_LRC
  426. bool "RTC Using LRC"
  427. config BSP_RTC_USING_XTAL_DIV
  428. bool "RTC Using XTAL Division"
  429. config BSP_RTC_USING_EXTCLK
  430. bool "RTC Using EXTCLK input from pin(PA1)"
  431. depends on !BSP_USING_EXMC
  432. endchoice
  433. endif
  434. menuconfig BSP_USING_PM
  435. bool "Enable PM"
  436. default n
  437. select RT_USING_PM
  438. if BSP_USING_PM
  439. choice
  440. prompt "Select WKTM Clock Src"
  441. default BSP_USING_WKTM_LRC
  442. config BSP_USING_WKTM_XTAL32
  443. bool "Using Xtal32"
  444. config BSP_USING_WKTM_LRC
  445. bool "Using LRC"
  446. if BSP_RTC_USING_XTAL32
  447. config BSP_USING_WKTM_64HZ
  448. bool "Using 64HZ(Note:must use XTAL32 and run RTC)"
  449. endif
  450. endchoice
  451. endif
  452. menuconfig BSP_USING_HWCRYPTO
  453. bool "Using Hardware Crypto drivers"
  454. default n
  455. select RT_USING_HWCRYPTO
  456. if BSP_USING_HWCRYPTO
  457. config BSP_USING_UQID
  458. bool "Enable UQID (unique id)"
  459. default n
  460. config BSP_USING_RNG
  461. bool "Using Hardware RNG"
  462. default n
  463. select RT_HWCRYPTO_USING_RNG
  464. config BSP_USING_CRC
  465. bool "Using Hardware CRC"
  466. default n
  467. select RT_HWCRYPTO_USING_CRC
  468. config BSP_USING_AES
  469. bool "Using Hardware AES"
  470. default n
  471. select RT_HWCRYPTO_USING_AES
  472. if BSP_USING_AES
  473. choice
  474. prompt "Select AES Mode"
  475. default BSP_USING_AES_ECB
  476. config BSP_USING_AES_ECB
  477. bool "ECB mode"
  478. select RT_HWCRYPTO_USING_AES_ECB
  479. endchoice
  480. endif
  481. config BSP_USING_HASH
  482. bool "Using Hardware Hash"
  483. default n
  484. select RT_HWCRYPTO_USING_SHA2
  485. if BSP_USING_HASH
  486. choice
  487. prompt "Select Hash Mode"
  488. default BSP_USING_SHA2_256
  489. config BSP_USING_SHA2_256
  490. bool "SHA2_256 Mode"
  491. select RT_HWCRYPTO_USING_SHA2_256
  492. endchoice
  493. endif
  494. endif
  495. menuconfig BSP_USING_PWM
  496. bool "Enable output PWM"
  497. default n
  498. select RT_USING_PWM
  499. if BSP_USING_PWM
  500. menuconfig BSP_USING_PWM_TMRA
  501. bool "Enable timerA output PWM"
  502. default n
  503. if BSP_USING_PWM_TMRA
  504. menuconfig BSP_USING_PWM_TMRA_1
  505. bool "Enable timerA-1 output PWM"
  506. default n
  507. if BSP_USING_PWM_TMRA_1
  508. config BSP_USING_PWM_TMRA_1_CH1
  509. bool "Enable timerA-1 channel1"
  510. default n
  511. config BSP_USING_PWM_TMRA_1_CH2
  512. bool "Enable timerA-1 channel2"
  513. default n
  514. endif
  515. menuconfig BSP_USING_PWM_TMRA_2
  516. bool "Enable timerA-2 output PWM"
  517. default n
  518. if BSP_USING_PWM_TMRA_2
  519. config BSP_USING_PWM_TMRA_2_CH1
  520. bool "Enable timerA-2 channel1"
  521. default n
  522. config BSP_USING_PWM_TMRA_2_CH2
  523. bool "Enable timerA-2 channel2"
  524. default n
  525. endif
  526. endif
  527. menuconfig BSP_USING_PWM_TMR4
  528. bool "Enable timer4 output PWM"
  529. default n
  530. if BSP_USING_PWM_TMR4
  531. menuconfig BSP_USING_PWM_TMR4_1
  532. bool "Enable timer4-1 output PWM"
  533. default n
  534. if BSP_USING_PWM_TMR4_1
  535. config BSP_USING_PWM_TMR4_1_OUH
  536. bool "Enable TMR4_1_OUH channel0"
  537. default n
  538. config BSP_USING_PWM_TMR4_1_OUL
  539. bool "Enable TMR4_1_OUL channel1"
  540. default n
  541. config BSP_USING_PWM_TMR4_1_OVH
  542. bool "Enable TMR4_1_OVH channel2"
  543. default n
  544. config BSP_USING_PWM_TMR4_1_OVL
  545. bool "Enable TMR4_1_OVL channel3"
  546. default n
  547. config BSP_USING_PWM_TMR4_1_OWH
  548. bool "Enable TMR4_1_OWH channel4"
  549. default n
  550. config BSP_USING_PWM_TMR4_1_OWL
  551. bool "Enable TMR4_1_OWL channel5"
  552. default n
  553. endif
  554. endif
  555. menuconfig BSP_USING_PWM_TMR6
  556. bool "Enable timer6 output PWM"
  557. default n
  558. if BSP_USING_PWM_TMR6
  559. menuconfig BSP_USING_PWM_TMR6_1
  560. bool "Enable timer6-1 output PWM"
  561. default n
  562. if BSP_USING_PWM_TMR6_1
  563. config BSP_USING_PWM_TMR6_1_A
  564. bool "Enable TMR6_1_A channel0"
  565. default n
  566. config BSP_USING_PWM_TMR6_1_B
  567. bool "Enable TMR6_1_B channel1"
  568. default n
  569. endif
  570. endif
  571. endif
  572. menuconfig BSP_USING_QSPI
  573. bool "Enable QSPI BUS"
  574. select RT_USING_QSPI
  575. select RT_USING_SPI
  576. default n
  577. if BSP_USING_QSPI
  578. config BSP_QSPI_USING_DMA
  579. bool "Enable QSPI DMA support"
  580. default n
  581. config BSP_QSPI_USING_SOFT_CS
  582. bool "Enable QSPI Soft CS Pin"
  583. default n
  584. endif
  585. menuconfig BSP_USING_PULSE_ENCODER
  586. bool "Enable Pulse Encoder"
  587. default n
  588. select RT_USING_PULSE_ENCODER
  589. if BSP_USING_PULSE_ENCODER
  590. menuconfig BSP_USING_TMRA_PULSE_ENCODER
  591. bool "Use TIMERA As The Pulse Encoder"
  592. default n
  593. if BSP_USING_TMRA_PULSE_ENCODER
  594. config BSP_USING_PULSE_ENCODER_TMRA_1
  595. bool "Use TIMERA_1 As The Pulse Encoder"
  596. default n
  597. endif
  598. menuconfig BSP_USING_TMR6_PULSE_ENCODER
  599. bool "Use TIMER6 As The Pulse Encoder"
  600. default n
  601. if BSP_USING_TMR6_PULSE_ENCODER
  602. config BSP_USING_PULSE_ENCODER_TMR6_1
  603. bool "Use TIMER6_1 As The Pulse Encoder"
  604. default n
  605. endif
  606. endif
  607. menuconfig BSP_USING_HWTIMER
  608. bool "Enable Hw Timer"
  609. default n
  610. select RT_USING_HWTIMER
  611. if BSP_USING_HWTIMER
  612. config BSP_USING_TMRA_1
  613. bool "Use Timer_a1 As The Hw Timer"
  614. default n
  615. config BSP_USING_TMRA_2
  616. bool "Use Timer_a2 As The Hw Timer"
  617. default n
  618. config BSP_USING_TMRA_3
  619. bool "Use Timer_a3 As The Hw Timer"
  620. default n
  621. config BSP_USING_TMRA_4
  622. bool "Use Timer_a4 As The Hw Timer"
  623. default n
  624. config BSP_USING_TMRA_5
  625. bool "Use Timer_a5 As The Hw Timer"
  626. default n
  627. config BSP_USING_TMRA_6
  628. bool "Use Timer_a6 As The Hw Timer"
  629. default n
  630. endif
  631. menuconfig BSP_USING_SENSOR
  632. bool "Enable SENSOR"
  633. default n
  634. select RT_USING_HWTIMER
  635. if BSP_USING_SENSOR
  636. config BSP_USING_TMR0_2B
  637. bool "Use KEYSCAN"
  638. select RT_USING_KEYSCAN
  639. default n
  640. endif
  641. menuconfig BSP_USING_USB
  642. bool "Enable USB"
  643. default n
  644. select RT_USING_USB_DEVICE if BSP_USING_USBD
  645. select RT_USING_USB_HOST if BSP_USING_USBH
  646. if BSP_USING_USB
  647. config BSP_USING_USBFS
  648. bool
  649. default y
  650. choice
  651. prompt "Select USB Mode"
  652. default BSP_USING_USBD
  653. config BSP_USING_USBD
  654. bool "USB Device Mode"
  655. config BSP_USING_USBH
  656. bool "USB Host Mode"
  657. endchoice
  658. if BSP_USING_USBD
  659. config BSP_USING_USBD_VBUS_SENSING
  660. bool "Enable VBUS Sensing"
  661. default y
  662. endif
  663. if BSP_USING_USBH
  664. menuconfig RT_USBH_MSTORAGE
  665. bool "Enable Udisk Drivers"
  666. default n
  667. if RT_USBH_MSTORAGE
  668. config UDISK_MOUNTPOINT
  669. string "Udisk mount dir"
  670. default "/"
  671. endif
  672. endif
  673. endif
  674. endmenu
  675. menu "Board extended module Drivers"
  676. endmenu
  677. endmenu