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