|
@@ -29,16 +29,20 @@
|
29
|
29
|
#define CONDITIONALS_ADV_H
|
30
|
30
|
|
31
|
31
|
#ifndef USBCON
|
32
|
|
- // Define constants and variables for buffering incoming serial data.
|
33
|
|
- // Use only powers of 2.
|
34
|
|
- // : [0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...]
|
|
32
|
+ // Define constants and variables for buffering serial data.
|
|
33
|
+ // Use only 0 or powers of 2 greater than 1
|
|
34
|
+ // : [0, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...]
|
35
|
35
|
#ifndef RX_BUFFER_SIZE
|
36
|
36
|
#define RX_BUFFER_SIZE 128
|
37
|
37
|
#endif
|
38
|
|
- // 256 is the max TX buffer climit due to uint8_t head and tail.
|
|
38
|
+ // 256 is the max TX buffer limit due to uint8_t head and tail
|
|
39
|
+ // : [0, 4, 8, 16, 32, 64, 128, 256]
|
39
|
40
|
#ifndef TX_BUFFER_SIZE
|
40
|
41
|
#define TX_BUFFER_SIZE 32
|
41
|
42
|
#endif
|
|
43
|
+ #else
|
|
44
|
+ // SERIAL_XON_XOFF not supported on USB-native devices
|
|
45
|
+ #undef SERIAL_XON_XOFF
|
42
|
46
|
#endif
|
43
|
47
|
|
44
|
48
|
#endif // CONDITIONALS_ADV_H
|