Kconfig 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090
  1. menu "Hardware Drivers Config"
  2. menu "Onboard Peripheral Drivers"
  3. endmenu
  4. menu "On-chip Peripheral Drivers"
  5. config BSP_USING_FLASH
  6. bool "Using FLASH as CMD, default RAM"
  7. default n
  8. config BSP_USING_GPIO
  9. bool "Enable GPIO"
  10. select RT_USING_PIN
  11. default y
  12. menuconfig BSP_USING_XINT
  13. bool "Enable external interrupt"
  14. default n
  15. if BSP_USING_XINT
  16. menuconfig BSP_USING_XINT1
  17. bool "Enable XINT1"
  18. if BSP_USING_XINT1
  19. config BSP_XINT1_PIN
  20. int "Interrupt pin"
  21. range 0 168
  22. default 0
  23. endif
  24. if !BSP_USING_XINT1
  25. config BSP_XINT1_PIN
  26. int
  27. default -1
  28. endif
  29. menuconfig BSP_USING_XINT2
  30. bool "Enable XINT2"
  31. if BSP_USING_XINT2
  32. config BSP_XINT2_PIN
  33. int "Interrupt pin"
  34. range 0 168
  35. default 0
  36. endif
  37. if !BSP_USING_XINT2
  38. config BSP_XINT2_PIN
  39. int
  40. default -1
  41. endif
  42. menuconfig BSP_USING_XINT3
  43. bool "Enable XINT3"
  44. if BSP_USING_XINT3
  45. config BSP_XINT3_PIN
  46. int "Interrupt pin"
  47. range 0 168
  48. default 0
  49. endif
  50. if !BSP_USING_XINT3
  51. config BSP_XINT3_PIN
  52. int
  53. default -1
  54. endif
  55. menuconfig BSP_USING_XINT4
  56. bool "Enable XINT4"
  57. if BSP_USING_XINT4
  58. config BSP_XINT4_PIN
  59. int "Interrupt pin"
  60. range 0 168
  61. default 0
  62. endif
  63. if !BSP_USING_XINT4
  64. config BSP_XINT4_PIN
  65. int
  66. default -1
  67. endif
  68. if !BSP_USING_XINT5
  69. config BSP_XINT5_PIN
  70. int
  71. default -1
  72. endif
  73. menuconfig BSP_USING_XINT5
  74. bool "Enable XINT5"
  75. if BSP_USING_XINT5
  76. config BSP_XINT5_PIN
  77. int "Interrupt pin"
  78. range 0 168
  79. default 0
  80. endif
  81. endif
  82. menuconfig BSP_USING_UART
  83. bool "Enable UART"
  84. default y
  85. select RT_USING_SERIAL
  86. if BSP_USING_UART
  87. config BSP_USING_UART1
  88. bool "Enable UART1"
  89. default y
  90. endif
  91. menuconfig BSP_USING_PWM
  92. bool "Enable PWM"
  93. default n
  94. select RT_USING_PWM
  95. if BSP_USING_PWM
  96. menuconfig BSP_USING_PWM1
  97. bool "Enable ePWM1"
  98. default y
  99. if BSP_USING_PWM1
  100. menu "Basic settings for PWM1"
  101. config BSP_PWM1_INIT_PERIOD
  102. int "Initial period for PWM1(ns)"
  103. default 10000
  104. config BSP_PWM1_INIT_PULSE
  105. int "Initial pulse for PWM1(ns)"
  106. default 1000
  107. endmenu
  108. menu "Advanced Settings for PWM1"
  109. menuconfig BSP_PWM1_PHASE_ENABLE
  110. bool "Enable phase"
  111. default n
  112. if BSP_PWM1_PHASE_ENABLE
  113. choice
  114. prompt "Select master or slave"
  115. default BSP_PWM1_MASTER
  116. config BSP_PWM1_MASTER
  117. bool "Master"
  118. config BSP_PWM1_SLAVE
  119. bool "Slave"
  120. endchoice
  121. if BSP_PWM1_MASTER
  122. config BSP_PWM1_PHASE
  123. int
  124. default 0
  125. endif
  126. if BSP_PWM1_SLAVE
  127. config BSP_PWM1_PHASE
  128. int "Phase, 0~360"
  129. range 0 360
  130. default 0
  131. help
  132. the phase for PWM1 module
  133. endif
  134. endif
  135. menuconfig BSP_PWM1_IT_ENABLE
  136. bool "Enable interrupt service"
  137. default n
  138. if BSP_PWM1_IT_ENABLE
  139. choice
  140. prompt "Select interrupt time"
  141. default BSP_PWM1_INTSEL_ET_CTR_ZERO
  142. config BSP_PWM1_INTSEL_ET_DCAEVT1SOC
  143. bool "DCAEVT1SOC"
  144. config BSP_PWM1_INTSEL_ET_CTR_ZERO
  145. bool "ctr == zero"
  146. config BSP_PWM1_INTSEL_ET_CTR_PRD
  147. bool "ctr == prd"
  148. config BSP_PWM1_INTSEL_ET_CTR_PRDZERO
  149. bool "ctr == prd or ctr == zero"
  150. config BSP_PWM1_INTSEL_ET_CTRU_CMPA
  151. bool "ctr == compa when counting up"
  152. config BSP_PWM1_INTSEL_ET_CTRD_CMPA
  153. bool "ctr == compa when counting down"
  154. config BSP_PWM1_INTSEL_ET_CTRU_CMPB
  155. bool "ctr == compb when counting up"
  156. config BSP_PWM1_INTSEL_ET_CTRD_CMPB
  157. bool "ctr == compb when counting down"
  158. endchoice
  159. config BSP_PWM1_INTSEL
  160. int
  161. default 0 if BSP_PWM1_INTSEL_ET_DCAEVT1SOC
  162. default 1 if BSP_PWM1_INTSEL_ET_CTR_ZERO
  163. default 2 if BSP_PWM1_INTSEL_ET_CTR_PRD
  164. default 3 if BSP_PWM1_INTSEL_ET_CTR_PRDZERO
  165. default 4 if BSP_PWM1_INTSEL_ET_CTRU_CMPA
  166. default 5 if BSP_PWM1_INTSEL_ET_CTRD_CMPA
  167. default 6 if BSP_PWM1_INTSEL_ET_CTRU_CMPB
  168. default 7 if BSP_PWM1_INTSEL_ET_CTRD_CMPB
  169. choice
  170. prompt "Interrupt generation time"
  171. default BSP_PWM1_INT_ET_1ST
  172. config BSP_PWM1_INT_ET_DISABLE
  173. bool "disable PWM interrupt"
  174. config BSP_PWM1_INT_ET_1ST
  175. bool "generate interrupt at the first time"
  176. config BSP_PWM1_INT_ET_2ND
  177. bool "generate interrupt at the second time"
  178. config BSP_PWM1_INT_ET_3RD
  179. bool "generate interrupt at the third time"
  180. endchoice
  181. config BSP_PWM1_INTPRD
  182. int
  183. default 0 if BSP_PWM1_INT_ET_DISABLE
  184. default 1 if BSP_PWM1_INT_ET_1ST
  185. default 2 if BSP_PWM1_INT_ET_2ND
  186. default 3 if BSP_PWM1_INT_ET_3RD
  187. endif
  188. choice
  189. prompt "HSP Clock division"
  190. default BSP_PWM1_HSPCLKDIV1
  191. config BSP_PWM1_HSPCLKDIV1
  192. bool "Clock Divided by 1"
  193. config BSP_PWM1_HSPCLKDIV2
  194. bool "Clock Divided by 2"
  195. config BSP_PWM1_HSPCLKDIV4
  196. bool "Clock Divided by 4"
  197. endchoice
  198. config BSP_PWM1_HSPCLKDIV
  199. int
  200. default 0 if BSP_PWM1_HSPCLKDIV1
  201. default 1 if BSP_PWM1_HSPCLKDIV2
  202. default 2 if BSP_PWM1_HSPCLKDIV4
  203. choice
  204. prompt "Clock division"
  205. default BSP_PWM1_CLKDIV1
  206. config BSP_PWM1_CLKDIV1
  207. bool "Clock Divided by 1"
  208. config BSP_PWM1_CLKDIV2
  209. bool "Clock Divided by 2"
  210. config BSP_PWM1_CLKDIV4
  211. bool "Clock Divided by 4"
  212. endchoice
  213. config BSP_PWM1_CLKDIV
  214. int
  215. default 0 if BSP_PWM1_CLKDIV1
  216. default 1 if BSP_PWM1_CLKDIV2
  217. default 2 if BSP_PWM1_CLKDIV4
  218. choice
  219. default BSP_PWM1_CTR_MODE_UPDOWN
  220. prompt "Select counter mode"
  221. config BSP_PWM1_CTR_MODE_UPDOWN
  222. bool "Up-down mode"
  223. config BSP_PWM1_CTR_MODE_UP
  224. bool "Up mode"
  225. config BSP_PWM1_CTR_MODE_DOWN
  226. bool "Down mode"
  227. config BSP_PWM1_CTR_FREEZE
  228. bool "Freezing Counter"
  229. endchoice
  230. config BSP_PWM1_CTRMODE
  231. int
  232. default 0 if BSP_PWM1_CTR_MODE_UP
  233. default 1 if BSP_PWM1_CTR_MODE_DOWN
  234. default 2 if BSP_PWM1_CTR_MODE_UPDOWN
  235. default 3 if BSP_PWM1_CTR_FREEZE
  236. choice
  237. prompt "Register load mode"
  238. config BSP_PWM1_CC_CTR_ZERO
  239. bool "Load when counter == 0"
  240. config BSP_PWM1_CC_CTR_PRD
  241. bool "Load when counter == prd"
  242. config BSP_PWM1_CC_CTR_ZERO_PRD
  243. bool "load when counter ==0 or counter == prd"
  244. config BSP_PWM1_CC_LD_DISABLE
  245. bool "disable load"
  246. endchoice
  247. config BSP_PWM1_LOADAMODE
  248. int
  249. default 0 if BSP_PWM1_CC_CTR_ZERO
  250. default 1 if BSP_PWM1_CC_CTR_PRD
  251. default 2 if BSP_PWM1_CC_CTR_ZERO_PRD
  252. default 3 if BSP_PWM1_CC_LD_DISABLE
  253. config BSP_PWM1_DB
  254. int "Dead time(ns)"
  255. default 100
  256. range 0 100000
  257. menuconfig BSP_PWM1_ADC_TRIGGER
  258. bool "Enable ADC trigger from PWM1"
  259. if BSP_PWM1_ADC_TRIGGER
  260. choice
  261. prompt "Select soc triggering time"
  262. default BSP_PWM1_SOCASEL_ET_CTR_ZERO
  263. config BSP_PWM1_SOCASEL_ET_DCAEVT1SOC
  264. bool "DCAEVT1SOC"
  265. config BSP_PWM1_SOCASEL_ET_CTR_ZERO
  266. bool "ctr == zero"
  267. config BSP_PWM1_SOCASEL_ET_CTR_PRD
  268. bool "ctr == prd"
  269. config BSP_PWM1_SOCASEL_ET_CTR_PRDZERO
  270. bool "ctr == prd or ctr == zero"
  271. config BSP_PWM1_SOCASEL_ET_CTRU_CMPA
  272. bool "ctr == compa when counting up"
  273. config BSP_PWM1_SOCASEL_ET_CTRD_CMPA
  274. bool "ctr == compa when counting down"
  275. config BSP_PWM1_SOCASEL_ET_CTRU_CMPB
  276. bool "ctr == compb when counting up"
  277. config BSP_PWM1_SOCASEL_ET_CTRD_CMPB
  278. bool "ctr == compb when counting down"
  279. endchoice
  280. config BSP_PWM1_SOCASEL
  281. int
  282. default 0 if BSP_PWM1_SOCASEL_ET_DCAEVT1SOC
  283. default 1 if BSP_PWM1_SOCASEL_ET_CTR_ZERO
  284. default 2 if BSP_PWM1_SOCASEL_ET_CTR_PRD
  285. default 3 if BSP_PWM1_SOCASEL_ET_CTR_PRDZERO
  286. default 4 if BSP_PWM1_SOCASEL_ET_CTRU_CMPA
  287. default 5 if BSP_PWM1_SOCASEL_ET_CTRD_CMPA
  288. default 6 if BSP_PWM1_SOCASEL_ET_CTRU_CMPB
  289. default 7 if BSP_PWM1_SOCASEL_ET_CTRD_CMPB
  290. choice
  291. prompt "SOCA generation time"
  292. default BSP_PWM1_SOCA_ET_1ST
  293. config BSP_PWM1_SOCA_ET_DISABLE
  294. bool "disable soc generation"
  295. config BSP_PWM1_SOCA_ET_1ST
  296. bool "generate soc at the first time"
  297. config BSP_PWM1_SOCA_ET_2ND
  298. bool "generate soc at the second time"
  299. config BSP_PWM1_SOCA_ET_3RD
  300. bool "generate soc at the third time"
  301. endchoice
  302. config BSP_PWM1_SOCAPRD
  303. int
  304. default 0 if BSP_PWM1_SOCA_ET_DISABLE
  305. default 1 if BSP_PWM1_SOCA_ET_1ST
  306. default 2 if BSP_PWM1_SOCA_ET_2ND
  307. default 3 if BSP_PWM1_SOCA_ET_3RD
  308. endif
  309. endmenu
  310. endif
  311. menuconfig BSP_USING_PWM2
  312. bool "Enable ePWM2"
  313. default n
  314. if BSP_USING_PWM2
  315. menu "Basic settings for PWM2"
  316. config BSP_PWM2_INIT_PERIOD
  317. int "Initial period for PWM2(ns)"
  318. default 10000
  319. config BSP_PWM2_INIT_PULSE
  320. int "Initial pulse for PWM2(ns)"
  321. default 1000
  322. endmenu
  323. menu "Advanced Settings for PWM2"
  324. menuconfig BSP_PWM2_PHASE_ENABLE
  325. bool "Enable phase"
  326. default n
  327. if BSP_PWM2_PHASE_ENABLE
  328. choice
  329. prompt "Select master or slave"
  330. default BSP_PWM2_SLAVE
  331. config BSP_PWM2_MASTER
  332. bool "Master"
  333. config BSP_PWM2_SLAVE
  334. bool "Slave"
  335. endchoice
  336. if BSP_PWM2_MASTER
  337. config BSP_PWM2_PHASE
  338. int
  339. default 0
  340. endif
  341. if BSP_PWM2_SLAVE
  342. config BSP_PWM2_PHASE
  343. int "Phase, 0~360"
  344. range 0 360
  345. default 0
  346. help
  347. the phase for PWM2 module
  348. endif
  349. endif
  350. menuconfig BSP_PWM2_IT_ENABLE
  351. bool "Enable interrupt service"
  352. default n
  353. if BSP_PWM2_IT_ENABLE
  354. choice
  355. prompt "Select interrupt time"
  356. default BSP_PWM2_INTSEL_ET_CTR_ZERO
  357. config BSP_PWM2_INTSEL_ET_DCAEVT1SOC
  358. bool "DCAEVT1SOC"
  359. config BSP_PWM2_INTSEL_ET_CTR_ZERO
  360. bool "ctr == zero"
  361. config BSP_PWM2_INTSEL_ET_CTR_PRD
  362. bool "ctr == prd"
  363. config BSP_PWM2_INTSEL_ET_CTR_PRDZERO
  364. bool "ctr == prd or ctr == zero"
  365. config BSP_PWM2_INTSEL_ET_CTRU_CMPA
  366. bool "ctr == compa when counting up"
  367. config BSP_PWM2_INTSEL_ET_CTRD_CMPA
  368. bool "ctr == compa when counting down"
  369. config BSP_PWM2_INTSEL_ET_CTRU_CMPB
  370. bool "ctr == compb when counting up"
  371. config BSP_PWM2_INTSEL_ET_CTRD_CMPB
  372. bool "ctr == compb when counting down"
  373. endchoice
  374. config BSP_PWM2_INTSEL
  375. int
  376. default 0 if BSP_PWM2_INTSEL_ET_DCAEVT1SOC
  377. default 1 if BSP_PWM2_INTSEL_ET_CTR_ZERO
  378. default 2 if BSP_PWM2_INTSEL_ET_CTR_PRD
  379. default 3 if BSP_PWM2_INTSEL_ET_CTR_PRDZERO
  380. default 4 if BSP_PWM2_INTSEL_ET_CTRU_CMPA
  381. default 5 if BSP_PWM2_INTSEL_ET_CTRD_CMPA
  382. default 6 if BSP_PWM2_INTSEL_ET_CTRU_CMPB
  383. default 7 if BSP_PWM2_INTSEL_ET_CTRD_CMPB
  384. choice
  385. prompt "Interrupt generation time"
  386. default BSP_PWM2_INT_ET_1ST
  387. config BSP_PWM2_INT_ET_DISABLE
  388. bool "disable PWM interrupt"
  389. config BSP_PWM2_INT_ET_1ST
  390. bool "generate interrupt at the first time"
  391. config BSP_PWM2_INT_ET_2ND
  392. bool "generate interrupt at the second time"
  393. config BSP_PWM2_INT_ET_3RD
  394. bool "generate interrupt at the third time"
  395. endchoice
  396. config BSP_PWM2_INTPRD
  397. int
  398. default 0 if BSP_PWM2_INT_ET_DISABLE
  399. default 1 if BSP_PWM2_INT_ET_1ST
  400. default 2 if BSP_PWM2_INT_ET_2ND
  401. default 3 if BSP_PWM2_INT_ET_3RD
  402. endif
  403. choice
  404. prompt "HSP Clock division"
  405. default BSP_PWM2_HSPCLKDIV1
  406. config BSP_PWM2_HSPCLKDIV1
  407. bool "Clock Divided by 1"
  408. config BSP_PWM2_HSPCLKDIV2
  409. bool "Clock Divided by 2"
  410. config BSP_PWM2_HSPCLKDIV4
  411. bool "Clock Divided by 4"
  412. endchoice
  413. config BSP_PWM2_HSPCLKDIV
  414. int
  415. default 0 if BSP_PWM2_HSPCLKDIV1
  416. default 1 if BSP_PWM2_HSPCLKDIV2
  417. default 2 if BSP_PWM2_HSPCLKDIV4
  418. choice
  419. prompt "Clock division"
  420. default BSP_PWM2_CLKDIV1
  421. config BSP_PWM2_CLKDIV1
  422. bool "Clock Divided by 1"
  423. config BSP_PWM2_CLKDIV2
  424. bool "Clock Divided by 2"
  425. config BSP_PWM2_CLKDIV4
  426. bool "Clock Divided by 4"
  427. endchoice
  428. config BSP_PWM2_CLKDIV
  429. int
  430. default 0 if BSP_PWM2_CLKDIV1
  431. default 1 if BSP_PWM2_CLKDIV2
  432. default 2 if BSP_PWM2_CLKDIV4
  433. choice
  434. default BSP_PWM2_CTR_MODE_UPDOWN
  435. prompt "Select counter mode"
  436. config BSP_PWM2_CTR_MODE_UPDOWN
  437. bool "Up-down mode"
  438. config BSP_PWM2_CTR_MODE_UP
  439. bool "Up mode"
  440. config BSP_PWM2_CTR_MODE_DOWN
  441. bool "Down mode"
  442. config BSP_PWM2_CTR_FREEZE
  443. bool "Freezing Counter"
  444. endchoice
  445. config BSP_PWM2_CTRMODE
  446. int
  447. default 0 if BSP_PWM2_CTR_MODE_UP
  448. default 1 if BSP_PWM2_CTR_MODE_DOWN
  449. default 2 if BSP_PWM2_CTR_MODE_UPDOWN
  450. default 3 if BSP_PWM2_CTR_FREEZE
  451. choice
  452. prompt "Register load mode"
  453. config BSP_PWM2_CC_CTR_ZERO
  454. bool "Load when counter == 0"
  455. config BSP_PWM2_CC_CTR_PRD
  456. bool "Load when counter == prd"
  457. config BSP_PWM2_CC_CTR_ZERO_PRD
  458. bool "load when counter ==0 or counter == prd"
  459. config BSP_PWM2_CC_LD_DISABLE
  460. bool "disable load"
  461. endchoice
  462. config BSP_PWM2_LOADAMODE
  463. int
  464. default 0 if BSP_PWM2_CC_CTR_ZERO
  465. default 1 if BSP_PWM2_CC_CTR_PRD
  466. default 2 if BSP_PWM2_CC_CTR_ZERO_PRD
  467. default 3 if BSP_PWM2_CC_LD_DISABLE
  468. config BSP_PWM2_DB
  469. int "Dead time(ns)"
  470. default 100
  471. range 0 100000
  472. menuconfig BSP_PWM2_ADC_TRIGGER
  473. bool "Enable ADC trigger from PWM2"
  474. if BSP_PWM2_ADC_TRIGGER
  475. choice
  476. prompt "Select soc triggering time"
  477. default BSP_PWM2_SOCASEL_ET_CTR_ZERO
  478. config BSP_PWM2_SOCASEL_ET_DCAEVT1SOC
  479. bool "DCAEVT1SOC"
  480. config BSP_PWM2_SOCASEL_ET_CTR_ZERO
  481. bool "ctr == zero"
  482. config BSP_PWM2_SOCASEL_ET_CTR_PRD
  483. bool "ctr == prd"
  484. config BSP_PWM2_SOCASEL_ET_CTR_PRDZERO
  485. bool "ctr == prd or ctr == zero"
  486. config BSP_PWM2_SOCASEL_ET_CTRU_CMPA
  487. bool "ctr == compa when counting up"
  488. config BSP_PWM2_SOCASEL_ET_CTRD_CMPA
  489. bool "ctr == compa when counting down"
  490. config BSP_PWM2_SOCASEL_ET_CTRU_CMPB
  491. bool "ctr == compb when counting up"
  492. config BSP_PWM2_SOCASEL_ET_CTRD_CMPB
  493. bool "ctr == compb when counting down"
  494. endchoice
  495. config BSP_PWM2_SOCASEL
  496. int
  497. default 0 if BSP_PWM2_SOCASEL_ET_DCAEVT1SOC
  498. default 1 if BSP_PWM2_SOCASEL_ET_CTR_ZERO
  499. default 2 if BSP_PWM2_SOCASEL_ET_CTR_PRD
  500. default 3 if BSP_PWM2_SOCASEL_ET_CTR_PRDZERO
  501. default 4 if BSP_PWM2_SOCASEL_ET_CTRU_CMPA
  502. default 5 if BSP_PWM2_SOCASEL_ET_CTRD_CMPA
  503. default 6 if BSP_PWM2_SOCASEL_ET_CTRU_CMPB
  504. default 7 if BSP_PWM2_SOCASEL_ET_CTRD_CMPB
  505. choice
  506. prompt "SOCA generation time"
  507. default BSP_PWM2_SOCA_ET_1ST
  508. config BSP_PWM2_SOCA_ET_DISABLE
  509. bool "disable soc generation"
  510. config BSP_PWM2_SOCA_ET_1ST
  511. bool "generate soc at the first time"
  512. config BSP_PWM2_SOCA_ET_2ND
  513. bool "generate soc at the second time"
  514. config BSP_PWM2_SOCA_ET_3RD
  515. bool "generate soc at the third time"
  516. endchoice
  517. config BSP_PWM2_SOCAPRD
  518. int
  519. default 0 if BSP_PWM2_SOCA_ET_DISABLE
  520. default 1 if BSP_PWM2_SOCA_ET_1ST
  521. default 2 if BSP_PWM2_SOCA_ET_2ND
  522. default 3 if BSP_PWM2_SOCA_ET_3RD
  523. endif
  524. endmenu
  525. endif
  526. menuconfig BSP_USING_PWM3
  527. bool "Enable ePWM3"
  528. default n
  529. if BSP_USING_PWM3
  530. menu "Basic settings for PWM3"
  531. config BSP_PWM3_INIT_PERIOD
  532. int "Initial period for PWM3(ns)"
  533. default 10000
  534. config BSP_PWM3_INIT_PULSE
  535. int "Initial pulse for PWM3(ns)"
  536. default 1000
  537. endmenu
  538. menu "Advanced Settings for PWM3"
  539. menuconfig BSP_PWM3_PHASE_ENABLE
  540. bool "Enable phase"
  541. default n
  542. if BSP_PWM3_PHASE_ENABLE
  543. choice
  544. prompt "Select master or slave"
  545. default BSP_PWM3_SLAVE
  546. config BSP_PWM3_MASTER
  547. bool "Master"
  548. config BSP_PWM3_SLAVE
  549. bool "Slave"
  550. endchoice
  551. if BSP_PWM3_MASTER
  552. config BSP_PWM3_PHASE
  553. int
  554. default 0
  555. endif
  556. if BSP_PWM3_SLAVE
  557. config BSP_PWM3_PHASE
  558. int "Phase, 0~360"
  559. range 0 360
  560. default 0
  561. help
  562. the phase for PWM3 module
  563. endif
  564. endif
  565. menuconfig BSP_PWM3_IT_ENABLE
  566. bool "Enable interrupt service"
  567. default n
  568. if BSP_PWM3_IT_ENABLE
  569. choice
  570. prompt "Select interrupt time"
  571. default BSP_PWM3_INTSEL_ET_CTR_ZERO
  572. config BSP_PWM3_INTSEL_ET_DCAEVT1SOC
  573. bool "DCAEVT1SOC"
  574. config BSP_PWM3_INTSEL_ET_CTR_ZERO
  575. bool "ctr == zero"
  576. config BSP_PWM3_INTSEL_ET_CTR_PRD
  577. bool "ctr == prd"
  578. config BSP_PWM3_INTSEL_ET_CTR_PRDZERO
  579. bool "ctr == prd or ctr == zero"
  580. config BSP_PWM3_INTSEL_ET_CTRU_CMPA
  581. bool "ctr == compa when counting up"
  582. config BSP_PWM3_INTSEL_ET_CTRD_CMPA
  583. bool "ctr == compa when counting down"
  584. config BSP_PWM3_INTSEL_ET_CTRU_CMPB
  585. bool "ctr == compb when counting up"
  586. config BSP_PWM3_INTSEL_ET_CTRD_CMPB
  587. bool "ctr == compb when counting down"
  588. endchoice
  589. config BSP_PWM3_INTSEL
  590. int
  591. default 0 if BSP_PWM3_INTSEL_ET_DCAEVT1SOC
  592. default 1 if BSP_PWM3_INTSEL_ET_CTR_ZERO
  593. default 2 if BSP_PWM3_INTSEL_ET_CTR_PRD
  594. default 3 if BSP_PWM3_INTSEL_ET_CTR_PRDZERO
  595. default 4 if BSP_PWM3_INTSEL_ET_CTRU_CMPA
  596. default 5 if BSP_PWM3_INTSEL_ET_CTRD_CMPA
  597. default 6 if BSP_PWM3_INTSEL_ET_CTRU_CMPB
  598. default 7 if BSP_PWM3_INTSEL_ET_CTRD_CMPB
  599. choice
  600. prompt "Interrupt generation time"
  601. default BSP_PWM3_INT_ET_1ST
  602. config BSP_PWM3_INT_ET_DISABLE
  603. bool "disable PWM interrupt"
  604. config BSP_PWM3_INT_ET_1ST
  605. bool "generate interrupt at the first time"
  606. config BSP_PWM3_INT_ET_2ND
  607. bool "generate interrupt at the second time"
  608. config BSP_PWM3_INT_ET_3RD
  609. bool "generate interrupt at the third time"
  610. endchoice
  611. config BSP_PWM3_INTPRD
  612. int
  613. default 0 if BSP_PWM3_INT_ET_DISABLE
  614. default 1 if BSP_PWM3_INT_ET_1ST
  615. default 2 if BSP_PWM3_INT_ET_2ND
  616. default 3 if BSP_PWM3_INT_ET_3RD
  617. endif
  618. choice
  619. prompt "HSP Clock division"
  620. default BSP_PWM3_HSPCLKDIV1
  621. config BSP_PWM3_HSPCLKDIV1
  622. bool "Clock Divided by 1"
  623. config BSP_PWM3_HSPCLKDIV2
  624. bool "Clock Divided by 2"
  625. config BSP_PWM3_HSPCLKDIV4
  626. bool "Clock Divided by 4"
  627. endchoice
  628. config BSP_PWM3_HSPCLKDIV
  629. int
  630. default 0 if BSP_PWM3_HSPCLKDIV1
  631. default 1 if BSP_PWM3_HSPCLKDIV2
  632. default 2 if BSP_PWM3_HSPCLKDIV4
  633. choice
  634. prompt "Clock division"
  635. default BSP_PWM3_CLKDIV1
  636. config BSP_PWM3_CLKDIV1
  637. bool "Clock Divided by 1"
  638. config BSP_PWM3_CLKDIV2
  639. bool "Clock Divided by 2"
  640. config BSP_PWM3_CLKDIV4
  641. bool "Clock Divided by 4"
  642. endchoice
  643. config BSP_PWM3_CLKDIV
  644. int
  645. default 0 if BSP_PWM3_CLKDIV1
  646. default 1 if BSP_PWM3_CLKDIV2
  647. default 2 if BSP_PWM3_CLKDIV4
  648. choice
  649. default BSP_PWM3_CTR_MODE_UPDOWN
  650. prompt "Select counter mode"
  651. config BSP_PWM3_CTR_MODE_UPDOWN
  652. bool "Up-down mode"
  653. config BSP_PWM3_CTR_MODE_UP
  654. bool "Up mode"
  655. config BSP_PWM3_CTR_MODE_DOWN
  656. bool "Down mode"
  657. config BSP_PWM3_CTR_FREEZE
  658. bool "Freezing Counter"
  659. endchoice
  660. config BSP_PWM3_CTRMODE
  661. int
  662. default 0 if BSP_PWM3_CTR_MODE_UP
  663. default 1 if BSP_PWM3_CTR_MODE_DOWN
  664. default 2 if BSP_PWM3_CTR_MODE_UPDOWN
  665. default 3 if BSP_PWM3_CTR_FREEZE
  666. choice
  667. prompt "Register load mode"
  668. config BSP_PWM3_CC_CTR_ZERO
  669. bool "Load when counter == 0"
  670. config BSP_PWM3_CC_CTR_PRD
  671. bool "Load when counter == prd"
  672. config BSP_PWM3_CC_CTR_ZERO_PRD
  673. bool "load when counter ==0 or counter == prd"
  674. config BSP_PWM3_CC_LD_DISABLE
  675. bool "disable load"
  676. endchoice
  677. config BSP_PWM3_LOADAMODE
  678. int
  679. default 0 if BSP_PWM3_CC_CTR_ZERO
  680. default 1 if BSP_PWM3_CC_CTR_PRD
  681. default 2 if BSP_PWM3_CC_CTR_ZERO_PRD
  682. default 3 if BSP_PWM3_CC_LD_DISABLE
  683. config BSP_PWM3_DB
  684. int "Dead time(ns)"
  685. default 100
  686. range 0 100000
  687. menuconfig BSP_PWM3_ADC_TRIGGER
  688. bool "Enable ADC trigger from PWM3"
  689. if BSP_PWM3_ADC_TRIGGER
  690. choice
  691. prompt "Select soc triggering time"
  692. default BSP_PWM3_SOCASEL_ET_CTR_ZERO
  693. config BSP_PWM3_SOCASEL_ET_DCAEVT1SOC
  694. bool "DCAEVT1SOC"
  695. config BSP_PWM3_SOCASEL_ET_CTR_ZERO
  696. bool "ctr == zero"
  697. config BSP_PWM3_SOCASEL_ET_CTR_PRD
  698. bool "ctr == prd"
  699. config BSP_PWM3_SOCASEL_ET_CTR_PRDZERO
  700. bool "ctr == prd or ctr == zero"
  701. config BSP_PWM3_SOCASEL_ET_CTRU_CMPA
  702. bool "ctr == compa when counting up"
  703. config BSP_PWM3_SOCASEL_ET_CTRD_CMPA
  704. bool "ctr == compa when counting down"
  705. config BSP_PWM3_SOCASEL_ET_CTRU_CMPB
  706. bool "ctr == compb when counting up"
  707. config BSP_PWM3_SOCASEL_ET_CTRD_CMPB
  708. bool "ctr == compb when counting down"
  709. endchoice
  710. config BSP_PWM3_SOCASEL
  711. int
  712. default 0 if BSP_PWM3_SOCASEL_ET_DCAEVT1SOC
  713. default 1 if BSP_PWM3_SOCASEL_ET_CTR_ZERO
  714. default 2 if BSP_PWM3_SOCASEL_ET_CTR_PRD
  715. default 3 if BSP_PWM3_SOCASEL_ET_CTR_PRDZERO
  716. default 4 if BSP_PWM3_SOCASEL_ET_CTRU_CMPA
  717. default 5 if BSP_PWM3_SOCASEL_ET_CTRD_CMPA
  718. default 6 if BSP_PWM3_SOCASEL_ET_CTRU_CMPB
  719. default 7 if BSP_PWM3_SOCASEL_ET_CTRD_CMPB
  720. choice
  721. prompt "SOCA generation time"
  722. default BSP_PWM3_SOCA_ET_1ST
  723. config BSP_PWM3_SOCA_ET_DISABLE
  724. bool "disable soc generation"
  725. config BSP_PWM3_SOCA_ET_1ST
  726. bool "generate soc at the first time"
  727. config BSP_PWM3_SOCA_ET_2ND
  728. bool "generate soc at the second time"
  729. config BSP_PWM3_SOCA_ET_3RD
  730. bool "generate soc at the third time"
  731. endchoice
  732. config BSP_PWM3_SOCAPRD
  733. int
  734. default 0 if BSP_PWM3_SOCA_ET_DISABLE
  735. default 1 if BSP_PWM3_SOCA_ET_1ST
  736. default 2 if BSP_PWM3_SOCA_ET_2ND
  737. default 3 if BSP_PWM3_SOCA_ET_3RD
  738. endif
  739. endmenu
  740. endif
  741. menuconfig BSP_USING_PWM4
  742. bool "Enable ePWM4"
  743. default n
  744. if BSP_USING_PWM4
  745. menu "Basic settings for PWM4"
  746. config BSP_PWM4_INIT_PERIOD
  747. int "Initial period for PWM4(ns)"
  748. default 10000
  749. config BSP_PWM4_INIT_PULSE
  750. int "Initial pulse for PWM4(ns)"
  751. default 1000
  752. endmenu
  753. menu "Advanced Settings for PWM4"
  754. menuconfig BSP_PWM4_PHASE_ENABLE
  755. bool "Enable phase"
  756. default n
  757. if BSP_PWM4_PHASE_ENABLE
  758. choice
  759. prompt "Select master or slave"
  760. default BSP_PWM4_SLAVE
  761. config BSP_PWM4_MASTER
  762. bool "Master"
  763. config BSP_PWM4_SLAVE
  764. bool "Slave"
  765. endchoice
  766. if BSP_PWM4_MASTER
  767. config BSP_PWM4_PHASE
  768. int
  769. default 0
  770. endif
  771. if BSP_PWM4_SLAVE
  772. config BSP_PWM4_PHASE
  773. int "Phase, 0~360"
  774. range 0 360
  775. default 0
  776. help
  777. the phase for PWM4 module
  778. endif
  779. endif
  780. menuconfig BSP_PWM4_IT_ENABLE
  781. bool "Enable interrupt service"
  782. default n
  783. if BSP_PWM4_IT_ENABLE
  784. choice
  785. prompt "Select interrupt time"
  786. default BSP_PWM4_INTSEL_ET_CTR_ZERO
  787. config BSP_PWM4_INTSEL_ET_DCAEVT1SOC
  788. bool "DCAEVT1SOC"
  789. config BSP_PWM4_INTSEL_ET_CTR_ZERO
  790. bool "ctr == zero"
  791. config BSP_PWM4_INTSEL_ET_CTR_PRD
  792. bool "ctr == prd"
  793. config BSP_PWM4_INTSEL_ET_CTR_PRDZERO
  794. bool "ctr == prd or ctr == zero"
  795. config BSP_PWM4_INTSEL_ET_CTRU_CMPA
  796. bool "ctr == compa when counting up"
  797. config BSP_PWM4_INTSEL_ET_CTRD_CMPA
  798. bool "ctr == compa when counting down"
  799. config BSP_PWM4_INTSEL_ET_CTRU_CMPB
  800. bool "ctr == compb when counting up"
  801. config BSP_PWM4_INTSEL_ET_CTRD_CMPB
  802. bool "ctr == compb when counting down"
  803. endchoice
  804. config BSP_PWM4_INTSEL
  805. int
  806. default 0 if BSP_PWM4_INTSEL_ET_DCAEVT1SOC
  807. default 1 if BSP_PWM4_INTSEL_ET_CTR_ZERO
  808. default 2 if BSP_PWM4_INTSEL_ET_CTR_PRD
  809. default 3 if BSP_PWM4_INTSEL_ET_CTR_PRDZERO
  810. default 4 if BSP_PWM4_INTSEL_ET_CTRU_CMPA
  811. default 5 if BSP_PWM4_INTSEL_ET_CTRD_CMPA
  812. default 6 if BSP_PWM4_INTSEL_ET_CTRU_CMPB
  813. default 7 if BSP_PWM4_INTSEL_ET_CTRD_CMPB
  814. choice
  815. prompt "Interrupt generation time"
  816. default BSP_PWM4_INT_ET_1ST
  817. config BSP_PWM4_INT_ET_DISABLE
  818. bool "disable PWM interrupt"
  819. config BSP_PWM4_INT_ET_1ST
  820. bool "generate interrupt at the first time"
  821. config BSP_PWM4_INT_ET_2ND
  822. bool "generate interrupt at the second time"
  823. config BSP_PWM4_INT_ET_3RD
  824. bool "generate interrupt at the third time"
  825. endchoice
  826. config BSP_PWM4_INTPRD
  827. int
  828. default 0 if BSP_PWM4_INT_ET_DISABLE
  829. default 1 if BSP_PWM4_INT_ET_1ST
  830. default 2 if BSP_PWM4_INT_ET_2ND
  831. default 3 if BSP_PWM4_INT_ET_3RD
  832. endif
  833. choice
  834. prompt "HSP Clock division"
  835. default BSP_PWM4_HSPCLKDIV1
  836. config BSP_PWM4_HSPCLKDIV1
  837. bool "Clock Divided by 1"
  838. config BSP_PWM4_HSPCLKDIV2
  839. bool "Clock Divided by 2"
  840. config BSP_PWM4_HSPCLKDIV4
  841. bool "Clock Divided by 4"
  842. endchoice
  843. config BSP_PWM4_HSPCLKDIV
  844. int
  845. default 0 if BSP_PWM4_HSPCLKDIV1
  846. default 1 if BSP_PWM4_HSPCLKDIV2
  847. default 2 if BSP_PWM4_HSPCLKDIV4
  848. choice
  849. prompt "Clock division"
  850. default BSP_PWM4_CLKDIV1
  851. config BSP_PWM4_CLKDIV1
  852. bool "Clock Divided by 1"
  853. config BSP_PWM4_CLKDIV2
  854. bool "Clock Divided by 2"
  855. config BSP_PWM4_CLKDIV4
  856. bool "Clock Divided by 4"
  857. endchoice
  858. config BSP_PWM4_CLKDIV
  859. int
  860. default 0 if BSP_PWM4_CLKDIV1
  861. default 1 if BSP_PWM4_CLKDIV2
  862. default 2 if BSP_PWM4_CLKDIV4
  863. choice
  864. default BSP_PWM4_CTR_MODE_UPDOWN
  865. prompt "Select counter mode"
  866. config BSP_PWM4_CTR_MODE_UPDOWN
  867. bool "Up-down mode"
  868. config BSP_PWM4_CTR_MODE_UP
  869. bool "Up mode"
  870. config BSP_PWM4_CTR_MODE_DOWN
  871. bool "Down mode"
  872. config BSP_PWM4_CTR_FREEZE
  873. bool "Freezing Counter"
  874. endchoice
  875. config BSP_PWM4_CTRMODE
  876. int
  877. default 0 if BSP_PWM4_CTR_MODE_UP
  878. default 1 if BSP_PWM4_CTR_MODE_DOWN
  879. default 2 if BSP_PWM4_CTR_MODE_UPDOWN
  880. default 3 if BSP_PWM4_CTR_FREEZE
  881. choice
  882. prompt "Register load mode"
  883. config BSP_PWM4_CC_CTR_ZERO
  884. bool "Load when counter == 0"
  885. config BSP_PWM4_CC_CTR_PRD
  886. bool "Load when counter == prd"
  887. config BSP_PWM4_CC_CTR_ZERO_PRD
  888. bool "load when counter ==0 or counter == prd"
  889. config BSP_PWM4_CC_LD_DISABLE
  890. bool "disable load"
  891. endchoice
  892. config BSP_PWM4_LOADAMODE
  893. int
  894. default 0 if BSP_PWM4_CC_CTR_ZERO
  895. default 1 if BSP_PWM4_CC_CTR_PRD
  896. default 2 if BSP_PWM4_CC_CTR_ZERO_PRD
  897. default 3 if BSP_PWM4_CC_LD_DISABLE
  898. config BSP_PWM4_DB
  899. int "Dead time(ns)"
  900. default 100
  901. range 0 100000
  902. menuconfig BSP_PWM4_ADC_TRIGGER
  903. bool "Enable ADC trigger from PWM4"
  904. if BSP_PWM4_ADC_TRIGGER
  905. choice
  906. prompt "Select soc triggering time"
  907. default BSP_PWM4_SOCASEL_ET_CTR_ZERO
  908. config BSP_PWM4_SOCASEL_ET_DCAEVT1SOC
  909. bool "DCAEVT1SOC"
  910. config BSP_PWM4_SOCASEL_ET_CTR_ZERO
  911. bool "ctr == zero"
  912. config BSP_PWM4_SOCASEL_ET_CTR_PRD
  913. bool "ctr == prd"
  914. config BSP_PWM4_SOCASEL_ET_CTR_PRDZERO
  915. bool "ctr == prd or ctr == zero"
  916. config BSP_PWM4_SOCASEL_ET_CTRU_CMPA
  917. bool "ctr == compa when counting up"
  918. config BSP_PWM4_SOCASEL_ET_CTRD_CMPA
  919. bool "ctr == compa when counting down"
  920. config BSP_PWM4_SOCASEL_ET_CTRU_CMPB
  921. bool "ctr == compb when counting up"
  922. config BSP_PWM4_SOCASEL_ET_CTRD_CMPB
  923. bool "ctr == compb when counting down"
  924. endchoice
  925. config BSP_PWM4_SOCASEL
  926. int
  927. default 0 if BSP_PWM4_SOCASEL_ET_DCAEVT1SOC
  928. default 1 if BSP_PWM4_SOCASEL_ET_CTR_ZERO
  929. default 2 if BSP_PWM4_SOCASEL_ET_CTR_PRD
  930. default 3 if BSP_PWM4_SOCASEL_ET_CTR_PRDZERO
  931. default 4 if BSP_PWM4_SOCASEL_ET_CTRU_CMPA
  932. default 5 if BSP_PWM4_SOCASEL_ET_CTRD_CMPA
  933. default 6 if BSP_PWM4_SOCASEL_ET_CTRU_CMPB
  934. default 7 if BSP_PWM4_SOCASEL_ET_CTRD_CMPB
  935. choice
  936. prompt "SOCA generation time"
  937. default BSP_PWM4_SOCA_ET_1ST
  938. config BSP_PWM4_SOCA_ET_DISABLE
  939. bool "disable soc generation"
  940. config BSP_PWM4_SOCA_ET_1ST
  941. bool "generate soc at the first time"
  942. config BSP_PWM4_SOCA_ET_2ND
  943. bool "generate soc at the second time"
  944. config BSP_PWM4_SOCA_ET_3RD
  945. bool "generate soc at the third time"
  946. endchoice
  947. config BSP_PWM4_SOCAPRD
  948. int
  949. default 0 if BSP_PWM4_SOCA_ET_DISABLE
  950. default 1 if BSP_PWM4_SOCA_ET_1ST
  951. default 2 if BSP_PWM4_SOCA_ET_2ND
  952. default 3 if BSP_PWM4_SOCA_ET_3RD
  953. endif
  954. endmenu
  955. endif
  956. endif
  957. menuconfig BSP_USING_ADC
  958. bool "Enable ADC"
  959. default n
  960. select RT_USING_ADC
  961. if BSP_USING_ADC
  962. menuconfig BSP_USING_ADC1
  963. bool "Enable ADC1"
  964. default n
  965. if BSP_USING_ADC1
  966. choice
  967. prompt "Select resolution"
  968. default BSP_ADC_USING_12BIT
  969. config BSP_ADC_USING_12BIT
  970. bool "ADC Using 12 bit resolution"
  971. config BSP_ADC_USING_16BIT
  972. bool "ADC Using 16 bit resolution"
  973. endchoice
  974. endif
  975. menuconfig BSP_USING_ADC2
  976. bool "Enable ADC2"
  977. default n
  978. if BSP_USING_ADC2
  979. choice
  980. prompt "Select resolution"
  981. default BSP_ADC_USING_12BIT
  982. config BSP_ADC_USING_12BIT
  983. bool "ADC Using 12 bit resolution"
  984. config BSP_ADC_USING_16BIT
  985. bool "ADC Using 16 bit resolution"
  986. endchoice
  987. endif
  988. menuconfig BSP_USING_ADC3
  989. bool "Enable ADC3"
  990. default n
  991. if BSP_USING_ADC3
  992. choice
  993. prompt "Select resolution"
  994. default BSP_ADC_USING_12BIT
  995. config BSP_ADC_USING_12BIT
  996. bool "ADC Using 12 bit resolution"
  997. config BSP_ADC_USING_16BIT
  998. bool "ADC Using 16 bit resolution"
  999. endchoice
  1000. endif
  1001. endif
  1002. menuconfig BSP_USING_ONCHIP_RTC
  1003. bool "Enable RTC"
  1004. select RT_USING_RTC
  1005. default n
  1006. if BSP_USING_ONCHIP_RTC
  1007. choice
  1008. prompt "Select clock source"
  1009. default BSP_RTC_USING_LSE
  1010. config BSP_RTC_USING_LSE
  1011. bool "RTC USING LSE"
  1012. config BSP_RTC_USING_LSI
  1013. bool "RTC USING LSI"
  1014. endchoice
  1015. endif
  1016. config BSP_USING_WDT
  1017. bool "Enable Watchdog Timer"
  1018. select RT_USING_WDT
  1019. default n
  1020. config BSP_USING_SDIO
  1021. bool "Enable SDIO"
  1022. select RT_USING_SDIO
  1023. select RT_USING_DFS
  1024. default n
  1025. menuconfig BSP_USING_CAN
  1026. bool "Enable CAN"
  1027. default n
  1028. select RT_USING_CAN
  1029. if BSP_USING_CAN
  1030. config BSP_USING_CAN1
  1031. bool "using CAN1"
  1032. default n
  1033. endif
  1034. config BSP_USING_USBD
  1035. bool "Enable USB device"
  1036. select RT_USING_USB_DEVICE
  1037. default n
  1038. if BSP_USING_USBD
  1039. config BSP_USB_CONNECT_PIN
  1040. int "USB connect pin"
  1041. default 67
  1042. config BSP_USB_PULL_UP_STATUS
  1043. int "USB PULL UP STATUS"
  1044. default 0
  1045. endif
  1046. endmenu
  1047. menu "Board extended module Drivers"
  1048. endmenu
  1049. endmenu