|
@@ -55,17 +55,13 @@
|
55
|
55
|
#define TX_BUFFER_SIZE 32
|
56
|
56
|
#endif
|
57
|
57
|
|
58
|
|
-#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
59
|
|
- #error "XON/XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
|
60
|
|
-#endif
|
61
|
|
-
|
62
|
|
-#if !IS_POWER_OF_2(RX_BUFFER_SIZE) || RX_BUFFER_SIZE < 2
|
63
|
|
- #error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
|
64
|
|
-#endif
|
65
|
|
-
|
66
|
|
-#if TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
|
67
|
|
- #error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
|
68
|
|
-#endif
|
|
58
|
+//#if ENABLED(SERIAL_XON_XOFF) && RX_BUFFER_SIZE < 1024
|
|
59
|
+// #error "SERIAL_XON_XOFF requires RX_BUFFER_SIZE >= 1024 for reliable transfers without drops."
|
|
60
|
+//#elif RX_BUFFER_SIZE && (RX_BUFFER_SIZE < 2 || !IS_POWER_OF_2(RX_BUFFER_SIZE))
|
|
61
|
+// #error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
|
|
62
|
+//#elif TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
|
|
63
|
+// #error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
|
|
64
|
+//#endif
|
69
|
65
|
|
70
|
66
|
#if RX_BUFFER_SIZE > 256
|
71
|
67
|
typedef uint16_t ring_buffer_pos_t;
|