We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb27f47 commit 678e3ffCopy full SHA for 678e3ff
cores/arduino/Uart.h
@@ -22,7 +22,11 @@
22
#include "SERCOM.h"
23
#include "SafeRingBuffer.h"
24
25
-#define SERIAL_BUFFER_SIZE 64
+#ifdef SERIAL_BUFFER_SIZE
26
+#undef SERIAL_BUFFER_SIZE
27
+#endif
28
+
29
+#define SERIAL_BUFFER_SIZE 256
30
31
class Uart : public arduino::HardwareSerial
32
{
@@ -46,8 +50,9 @@ class Uart : public arduino::HardwareSerial
46
50
47
51
private:
48
52
SERCOM *sercom;
49
- arduino::SafeRingBuffer rxBuffer;
- arduino::SafeRingBuffer txBuffer;
53
54
+ arduino::SafeRingBufferN<SERIAL_BUFFER_SIZE> rxBuffer;
55
+ arduino::SafeRingBufferN<SERIAL_BUFFER_SIZE> txBuffer;
56
57
uint8_t uc_pinRX;
58
uint8_t uc_pinTX;
0 commit comments