Skip to content

Commit 6f40df2

Browse files
committed
cores/xmc: Rework review comments.
Signed-off-by: MDin <[email protected]>
1 parent 4390221 commit 6f40df2

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

cores/xmc/Arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ extern void loop(void);
343343
} // extern "C"
344344
// #include "Tone.h"
345345
// #include "WMath.h"
346-
// #include "Uart.h"
346+
#include "Uart.h"
347347
#endif // __cplusplus
348348

349349
// #include "Print.h"

cores/xmc/Uart.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ class Uart : public HardwareSerial {
9494
void IrqHandler(void);
9595

9696
private:
97-
RingBuffer _rx_buffer;
97+
static constexpr size_t BUF_LENGTH = 512;
98+
RingBufferN<BUF_LENGTH> _rx_buffer;
99+
bool serial_ready = false;
98100
};
101+
99102
extern Uart Serial;
100103
extern Uart Serial1;

cores/xmc/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main(void) {
4949
setup();
5050
while (1) {
5151
loop();
52-
//::serialEventRun();
52+
::serialEventRun();
5353
}
5454
}
5555

0 commit comments

Comments
 (0)