Kconfig-lpuart 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file kconfig-language.txt in the NuttX tools repository.
  4. #
  5. config LPUART_SERIALDRIVER
  6. bool
  7. default n
  8. select MCU_SERIAL
  9. config LPUART0_SERIALDRIVER
  10. bool
  11. default n
  12. select MCU_SERIAL
  13. config LPUART1_SERIALDRIVER
  14. bool
  15. default n
  16. select MCU_SERIAL
  17. config LPUART2_SERIALDRIVER
  18. bool
  19. default n
  20. select MCU_SERIAL
  21. config LPUART3_SERIALDRIVER
  22. bool
  23. default n
  24. select MCU_SERIAL
  25. config LPUART4_SERIALDRIVER
  26. bool
  27. default n
  28. select MCU_SERIAL
  29. config LPUART5_SERIALDRIVER
  30. bool
  31. default n
  32. select MCU_SERIAL
  33. config LPUART6_SERIALDRIVER
  34. bool
  35. default n
  36. select MCU_SERIAL
  37. config LPUART7_SERIALDRIVER
  38. bool
  39. default n
  40. select MCU_SERIAL
  41. config LPUART8_SERIALDRIVER
  42. bool
  43. default n
  44. select MCU_SERIAL
  45. menu "LPUART0 Configuration"
  46. depends on LPUART0_SERIALDRIVER
  47. config LPUART0_RXBUFSIZE
  48. int "Receive buffer size"
  49. default 256
  50. ---help---
  51. Characters are buffered as they are received. This specifies
  52. the size of the receive buffer.
  53. config LPUART0_TXBUFSIZE
  54. int "Transmit buffer size"
  55. default 256
  56. ---help---
  57. Characters are buffered before being sent. This specifies
  58. the size of the transmit buffer.
  59. config LPUART0_BAUD
  60. int "BAUD rate"
  61. default 115200
  62. ---help---
  63. The configured BAUD of the LPUART.
  64. config LPUART0_BITS
  65. int "Character size"
  66. default 8
  67. ---help---
  68. The number of bits. Must be either 7 or 8.
  69. config LPUART0_PARITY
  70. int "Parity setting"
  71. range 0 2
  72. default 0
  73. ---help---
  74. 0=no parity, 1=odd parity, 2=even parity
  75. config LPUART0_2STOP
  76. int "use 2 stop bits"
  77. default 0
  78. ---help---
  79. 1=Two stop bits
  80. config LPUART0_IFLOWCONTROL
  81. bool "LPUART0 RTS flow control"
  82. default n
  83. select SERIAL_IFLOWCONTROL
  84. ---help---
  85. Enable LPUART0 RTS flow control
  86. config LPUART0_OFLOWCONTROL
  87. bool "LPUART0 CTS flow control"
  88. default n
  89. select SERIAL_OFLOWCONTROL
  90. ---help---
  91. Enable LPUART0 CTS flow control
  92. config LPUART0_DMA
  93. bool "LPUART0 DMA support"
  94. default n
  95. select SERIAL_DMA
  96. ---help---
  97. Enable DMA transfers on LPUART0
  98. endmenu
  99. menu "LPUART1 Configuration"
  100. depends on LPUART1_SERIALDRIVER
  101. config LPUART1_RXBUFSIZE
  102. int "Receive buffer size"
  103. default 256
  104. ---help---
  105. Characters are buffered as they are received. This specifies
  106. the size of the receive buffer.
  107. config LPUART1_TXBUFSIZE
  108. int "Transmit buffer size"
  109. default 256
  110. ---help---
  111. Characters are buffered before being sent. This specifies
  112. the size of the transmit buffer.
  113. config LPUART1_BAUD
  114. int "BAUD rate"
  115. default 115200
  116. ---help---
  117. The configured BAUD of the LPUART.
  118. config LPUART1_BITS
  119. int "Character size"
  120. default 8
  121. ---help---
  122. The number of bits. Must be either 7 or 8.
  123. config LPUART1_PARITY
  124. int "Parity setting"
  125. default 0
  126. range 0 2
  127. ---help---
  128. 0=no parity, 1=odd parity, 2=even parity
  129. config LPUART1_2STOP
  130. int "Uses 2 stop bits"
  131. default 0
  132. ---help---
  133. 1=Two stop bits
  134. config LPUART1_IFLOWCONTROL
  135. bool "LPUART1 RTS flow control"
  136. default n
  137. select SERIAL_IFLOWCONTROL
  138. ---help---
  139. Enable LPUART1 RTS flow control
  140. config LPUART1_OFLOWCONTROL
  141. bool "LPUART1 CTS flow control"
  142. default n
  143. select SERIAL_OFLOWCONTROL
  144. ---help---
  145. Enable LPUART1 CTS flow control
  146. config LPUART1_DMA
  147. bool "LPUART1 DMA support"
  148. default n
  149. select SERIAL_DMA
  150. ---help---
  151. Enable DMA transfers on LPUART1
  152. endmenu
  153. menu "LPUART2 Configuration"
  154. depends on LPUART2_SERIALDRIVER
  155. config LPUART2_RXBUFSIZE
  156. int "Receive buffer size"
  157. default 256
  158. ---help---
  159. Characters are buffered as they are received. This specifies
  160. the size of the receive buffer.
  161. config LPUART2_TXBUFSIZE
  162. int "Transmit buffer size"
  163. default 256
  164. ---help---
  165. Characters are buffered before being sent. This specifies
  166. the size of the transmit buffer.
  167. config LPUART2_BAUD
  168. int "BAUD rate"
  169. default 115200
  170. ---help---
  171. The configured BAUD of the LPUART.
  172. config LPUART2_BITS
  173. int "Character size"
  174. default 8
  175. ---help---
  176. The number of bits. Must be either 7 or 8.
  177. config LPUART2_PARITY
  178. int "Parity setting"
  179. default 0
  180. range 0 2
  181. ---help---
  182. 0=no parity, 1=odd parity, 2=even parity
  183. config LPUART2_2STOP
  184. int "Uses 2 stop bits"
  185. default 0
  186. ---help---
  187. 1=Two stop bits
  188. config LPUART2_IFLOWCONTROL
  189. bool "LPUART2 RTS flow control"
  190. default n
  191. select SERIAL_IFLOWCONTROL
  192. ---help---
  193. Enable LPUART2 RTS flow control
  194. config LPUART2_OFLOWCONTROL
  195. bool "LPUART2 CTS flow control"
  196. default n
  197. select SERIAL_OFLOWCONTROL
  198. ---help---
  199. Enable LPUART2 CTS flow control
  200. config LPUART2_DMA
  201. bool "LPUART2 DMA support"
  202. default n
  203. select SERIAL_DMA
  204. ---help---
  205. Enable DMA transfers on LPUART2
  206. endmenu
  207. menu "LPUART3 Configuration"
  208. depends on LPUART3_SERIALDRIVER
  209. config LPUART3_RXBUFSIZE
  210. int "Receive buffer size"
  211. default 256
  212. ---help---
  213. Characters are buffered as they are received. This specifies
  214. the size of the receive buffer.
  215. config LPUART3_TXBUFSIZE
  216. int "Transmit buffer size"
  217. default 256
  218. ---help---
  219. Characters are buffered before being sent. This specifies
  220. the size of the transmit buffer.
  221. config LPUART3_BAUD
  222. int "BAUD rate"
  223. default 115200
  224. ---help---
  225. The configured BAUD of the LPUART.
  226. config LPUART3_BITS
  227. int "Character size"
  228. default 8
  229. ---help---
  230. The number of bits. Must be either 7 or 8.
  231. config LPUART3_PARITY
  232. int "Parity setting"
  233. default 0
  234. range 0 2
  235. ---help---
  236. 0=no parity, 1=odd parity, 2=even parity
  237. config LPUART3_2STOP
  238. int "Uses 2 stop bits"
  239. default 0
  240. ---help---
  241. 1=Two stop bits
  242. config LPUART3_IFLOWCONTROL
  243. bool "LPUART3 RTS flow control"
  244. default n
  245. select SERIAL_IFLOWCONTROL
  246. ---help---
  247. Enable LPUART3 RTS flow control
  248. config LPUART3_OFLOWCONTROL
  249. bool "LPUART3 CTS flow control"
  250. default n
  251. select SERIAL_OFLOWCONTROL
  252. ---help---
  253. Enable LPUART3 CTS flow control
  254. config LPUART3_DMA
  255. bool "LPUART3 DMA support"
  256. default n
  257. select SERIAL_DMA
  258. ---help---
  259. Enable DMA transfers on LPUART3
  260. endmenu
  261. menu "LPUART4 Configuration"
  262. depends on LPUART4_SERIALDRIVER
  263. config LPUART4_RXBUFSIZE
  264. int "Receive buffer size"
  265. default 256
  266. ---help---
  267. Characters are buffered as they are received. This specifies
  268. the size of the receive buffer.
  269. config LPUART4_TXBUFSIZE
  270. int "Transmit buffer size"
  271. default 256
  272. ---help---
  273. Characters are buffered before being sent. This specifies
  274. the size of the transmit buffer.
  275. config LPUART4_BAUD
  276. int "BAUD rate"
  277. default 115200
  278. ---help---
  279. The configured BAUD of the LPUART.
  280. config LPUART4_BITS
  281. int "Character size"
  282. default 8
  283. ---help---
  284. The number of bits. Must be either 7 or 8.
  285. config LPUART4_PARITY
  286. int "Parity setting"
  287. default 0
  288. range 0 2
  289. ---help---
  290. 0=no parity, 1=odd parity, 2=even parity
  291. config LPUART4_2STOP
  292. int "Uses 2 stop bits"
  293. default 0
  294. ---help---
  295. 1=Two stop bits
  296. config LPUART4_IFLOWCONTROL
  297. bool "LPUART4 RTS flow control"
  298. default n
  299. select SERIAL_IFLOWCONTROL
  300. ---help---
  301. Enable LPUART4 RTS flow control
  302. config LPUART4_OFLOWCONTROL
  303. bool "LPUART4 CTS flow control"
  304. default n
  305. select SERIAL_OFLOWCONTROL
  306. ---help---
  307. Enable LPUART4 CTS flow control
  308. config LPUART4_DMA
  309. bool "LPUART4 DMA support"
  310. default n
  311. select SERIAL_DMA
  312. ---help---
  313. Enable DMA transfers on LPUART4
  314. endmenu
  315. menu "LPUART5 Configuration"
  316. depends on LPUART5_SERIALDRIVER
  317. config LPUART5_RXBUFSIZE
  318. int "Receive buffer size"
  319. default 256
  320. ---help---
  321. Characters are buffered as they are received. This specifies
  322. the size of the receive buffer.
  323. config LPUART5_TXBUFSIZE
  324. int "Transmit buffer size"
  325. default 256
  326. ---help---
  327. Characters are buffered before being sent. This specifies
  328. the size of the transmit buffer.
  329. config LPUART5_BAUD
  330. int "BAUD rate"
  331. default 115200
  332. ---help---
  333. The configured BAUD of the LPUART.
  334. config LPUART5_BITS
  335. int "Character size"
  336. default 8
  337. ---help---
  338. The number of bits. Must be either 7 or 8.
  339. config LPUART5_PARITY
  340. int "Parity setting"
  341. default 0
  342. range 0 2
  343. ---help---
  344. 0=no parity, 1=odd parity, 2=even parity
  345. config LPUART5_2STOP
  346. int "Uses 2 stop bits"
  347. default 0
  348. ---help---
  349. 1=Two stop bits
  350. config LPUART5_IFLOWCONTROL
  351. bool "LPUART5 RTS flow control"
  352. default n
  353. select SERIAL_IFLOWCONTROL
  354. ---help---
  355. Enable LPUART5 RTS flow control
  356. config LPUART5_OFLOWCONTROL
  357. bool "LPUART5 CTS flow control"
  358. default n
  359. select SERIAL_OFLOWCONTROL
  360. ---help---
  361. Enable LPUART5 CTS flow control
  362. config LPUART5_DMA
  363. bool "LPUART5 DMA support"
  364. default n
  365. select SERIAL_DMA
  366. ---help---
  367. Enable DMA transfers on LPUART5
  368. endmenu
  369. menu "LPUART6 Configuration"
  370. depends on LPUART6_SERIALDRIVER
  371. config LPUART6_RXBUFSIZE
  372. int "Receive buffer size"
  373. default 256
  374. ---help---
  375. Characters are buffered as they are received. This specifies
  376. the size of the receive buffer.
  377. config LPUART6_TXBUFSIZE
  378. int "Transmit buffer size"
  379. default 256
  380. ---help---
  381. Characters are buffered before being sent. This specifies
  382. the size of the transmit buffer.
  383. config LPUART6_BAUD
  384. int "BAUD rate"
  385. default 115200
  386. ---help---
  387. The configured BAUD of the LPUART.
  388. config LPUART6_BITS
  389. int "Character size"
  390. default 8
  391. ---help---
  392. The number of bits. Must be either 7 or 8.
  393. config LPUART6_PARITY
  394. int "Parity setting"
  395. default 0
  396. range 0 2
  397. ---help---
  398. 0=no parity, 1=odd parity, 2=even parity
  399. config LPUART6_2STOP
  400. int "Uses 2 stop bits"
  401. default 0
  402. ---help---
  403. 1=Two stop bits
  404. config LPUART6_IFLOWCONTROL
  405. bool "LPUART6 RTS flow control"
  406. default n
  407. select SERIAL_IFLOWCONTROL
  408. ---help---
  409. Enable LPUART6 RTS flow control
  410. config LPUART6_OFLOWCONTROL
  411. bool "LPUART6 CTS flow control"
  412. default n
  413. select SERIAL_OFLOWCONTROL
  414. ---help---
  415. Enable LPUART6 CTS flow control
  416. config LPUART6_DMA
  417. bool "LPUART6 DMA support"
  418. default n
  419. select SERIAL_DMA
  420. ---help---
  421. Enable DMA transfers on LPUART6
  422. endmenu
  423. menu "LPUART7 Configuration"
  424. depends on LPUART7_SERIALDRIVER
  425. config LPUART7_RXBUFSIZE
  426. int "Receive buffer size"
  427. default 256
  428. ---help---
  429. Characters are buffered as they are received. This specifies
  430. the size of the receive buffer.
  431. config LPUART7_TXBUFSIZE
  432. int "Transmit buffer size"
  433. default 256
  434. ---help---
  435. Characters are buffered before being sent. This specifies
  436. the size of the transmit buffer.
  437. config LPUART7_BAUD
  438. int "BAUD rate"
  439. default 115200
  440. ---help---
  441. The configured BAUD of the LPUART.
  442. config LPUART7_BITS
  443. int "Character size"
  444. default 8
  445. ---help---
  446. The number of bits. Must be either 7 or 8.
  447. config LPUART7_PARITY
  448. int "Parity setting"
  449. default 0
  450. range 0 2
  451. ---help---
  452. 0=no parity, 1=odd parity, 2=even parity
  453. config LPUART7_2STOP
  454. int "Uses 2 stop bits"
  455. default 0
  456. ---help---
  457. 1=Two stop bits
  458. config LPUART7_IFLOWCONTROL
  459. bool "LPUART7 RTS flow control"
  460. default n
  461. select SERIAL_IFLOWCONTROL
  462. ---help---
  463. Enable LPUART7 RTS flow control
  464. config LPUART7_OFLOWCONTROL
  465. bool "LPUART7 CTS flow control"
  466. default n
  467. select SERIAL_OFLOWCONTROL
  468. ---help---
  469. Enable LPUART7 CTS flow control
  470. config LPUART7_DMA
  471. bool "LPUART7 DMA support"
  472. default n
  473. select SERIAL_DMA
  474. ---help---
  475. Enable DMA transfers on LPUART7
  476. endmenu
  477. menu "LPUART8 Configuration"
  478. depends on LPUART8_SERIALDRIVER
  479. config LPUART8_RXBUFSIZE
  480. int "Receive buffer size"
  481. default 256
  482. ---help---
  483. Characters are buffered as they are received. This specifies
  484. the size of the receive buffer.
  485. config LPUART8_TXBUFSIZE
  486. int "Transmit buffer size"
  487. default 256
  488. ---help---
  489. Characters are buffered before being sent. This specifies
  490. the size of the transmit buffer.
  491. config LPUART8_BAUD
  492. int "BAUD rate"
  493. default 115200
  494. ---help---
  495. The configured BAUD of the LPUART.
  496. config LPUART8_BITS
  497. int "Character size"
  498. default 8
  499. ---help---
  500. The number of bits. Must be either 7 or 8.
  501. config LPUART8_PARITY
  502. int "Parity setting"
  503. default 0
  504. range 0 2
  505. ---help---
  506. 0=no parity, 1=odd parity, 2=even parity
  507. config LPUART8_2STOP
  508. int "Uses 2 stop bits"
  509. default 0
  510. ---help---
  511. 1=Two stop bits
  512. config LPUART8_IFLOWCONTROL
  513. bool "LPUART8 RTS flow control"
  514. default n
  515. select SERIAL_IFLOWCONTROL
  516. ---help---
  517. Enable LPUART8 RTS flow control
  518. config LPUART8_OFLOWCONTROL
  519. bool "LPUART8 CTS flow control"
  520. default n
  521. select SERIAL_OFLOWCONTROL
  522. ---help---
  523. Enable LPUART8 CTS flow control
  524. config LPUART8_DMA
  525. bool "LPUART8 DMA support"
  526. default n
  527. select SERIAL_DMA
  528. ---help---
  529. Enable DMA transfers on LPUART8
  530. endmenu