Kconfig-sci 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 SCI0_SERIALDRIVER
  6. bool
  7. default n
  8. select MCU_SERIAL
  9. config SCI1_SERIALDRIVER
  10. bool
  11. default n
  12. select MCU_SERIAL
  13. menu "SCI0 Configuration"
  14. depends on SCI0_SERIALDRIVER
  15. config SCI0_RXBUFSIZE
  16. int "SCI0 receive buffer size"
  17. default 256
  18. ---help---
  19. Characters are buffered as they are received. This specifies
  20. the size of the receive buffer.
  21. config SCI0_TXBUFSIZE
  22. int "SCI0 transmit buffer size"
  23. default 256
  24. ---help---
  25. Characters are buffered before being sent. This specifies
  26. the size of the transmit buffer.
  27. config SCI0_BAUD
  28. int "SCI0 BAUD rate"
  29. default 115200
  30. ---help---
  31. The configured BAUD of the SCI.
  32. config SCI0_BITS
  33. int "SCI0 character size"
  34. default 8
  35. ---help---
  36. The number of bits. Must be either 7 or 8.
  37. config SCI0_PARITY
  38. int "Parity setting"
  39. default 0
  40. range 0 2
  41. ---help---
  42. 0=no parity, 1=odd parity, 2=even parity
  43. config SCI0_2STOP
  44. int "SCI0 use 2 stop bits"
  45. default 0
  46. ---help---
  47. 1=Two stop bits
  48. endmenu # SCI0 Configuration
  49. menu "SCI1 Configuration"
  50. depends on SCI1_SERIALDRIVER
  51. config SCI1_RXBUFSIZE
  52. int "SCI1 receive buffer size"
  53. default 256
  54. ---help---
  55. Characters are buffered as they are received. This specifies
  56. the size of the receive buffer.
  57. config SCI1_TXBUFSIZE
  58. int "SCI1 transmit buffer size"
  59. default 256
  60. ---help---
  61. Characters are buffered before being sent. This specifies
  62. the size of the transmit buffer.
  63. config SCI1_BAUD
  64. int "SCI1 BAUD rate"
  65. default 115200
  66. ---help---
  67. The configured BAUD of the SCI.
  68. config SCI1_BITS
  69. int "SCI1 character size"
  70. default 8
  71. ---help---
  72. The number of bits. Must be either 7 or 8.
  73. config SCI1_PARITY
  74. int "Parity setting"
  75. default 0
  76. range 0 2
  77. ---help---
  78. 0=no parity, 1=odd parity, 2=even parity
  79. config SCI1_2STOP
  80. int "SCI1 use 2 stop bits"
  81. default 0
  82. ---help---
  83. 1=Two stop bits
  84. endmenu # SCI1 Configuration