Kconfig 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. menuconfig RT_USING_SERIAL
  2. bool "USING Serial device drivers"
  3. select RT_USING_DEVICE_IPC
  4. select RT_USING_DEVICE
  5. default y
  6. if RT_USING_SERIAL
  7. choice
  8. prompt "Choice Serial version"
  9. default RT_USING_SERIAL_V1
  10. config RT_USING_SERIAL_V1
  11. bool "RT_USING_SERIAL_V1"
  12. config RT_USING_SERIAL_V2
  13. bool "RT_USING_SERIAL_V2"
  14. endchoice
  15. choice
  16. prompt "Choice Serial version"
  17. depends on RT_USING_SERIAL_V2
  18. default RT_SERIAL_BUF_STRATEGY_OVERWRITE
  19. config RT_SERIAL_BUF_STRATEGY_DROP
  20. bool "drop new incoming data when the buffer is full"
  21. config RT_SERIAL_BUF_STRATEGY_OVERWRITE
  22. bool "overwrite old data when the buffer is full"
  23. endchoice
  24. config RT_SERIAL_USING_DMA
  25. bool "Enable serial DMA mode"
  26. default y
  27. config RT_SERIAL_RB_BUFSZ
  28. int "Set RX buffer size"
  29. depends on !RT_USING_SERIAL_V2
  30. default 64
  31. config RT_USING_SERIAL_BYPASS
  32. bool "Using serial bypass"
  33. default n
  34. endif