File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 19
19
Modified 28 September 2010 by Mark Sproul
20
20
Modified 14 August 2012 by Alarus
21
21
Modified 3 December 2013 by Matthijs Kooijman
22
- Modified 1 may 2023 by TempersLee
23
- Modified 13 October 2023 by Maxint R&D
22
+ Modified 1 May 2023 by TempersLee
23
+ Modified 28 July 2024 by Maxint R&D
24
24
*/
25
25
26
26
#ifndef HardwareSerial_h
27
27
#define HardwareSerial_h
28
28
29
- // MMOLE 240619: set OPT_USART1_INT to 1 if you want to use interrupts for receiving serial data instead of a clumsy polling implementation .
29
+ // MMOLE 240619: set OPT_USART1_INT to 1 if you want to use interrupts for receiving serial data.
30
30
#define OPT_USART1_INT 1
31
31
32
-
33
32
#if 1
34
33
35
34
#include < inttypes.h>
@@ -178,12 +177,6 @@ class HardwareSerial : public Stream {
178
177
uint8_t _config;
179
178
unsigned long _baud;
180
179
void init (PinName _rx, PinName _tx, PinName _rts = NC, PinName _cts = NC);
181
-
182
- // MMOLE: reintroduced RX buffer to properly implement read/available/peek methods
183
- #if (OPT_USART1_INT==1)
184
- #else
185
- void fillRxBuffer (void ); // read all characters that can be read
186
- #endif
187
180
};
188
181
189
182
#if defined(USART1)
@@ -201,7 +194,7 @@ class HardwareSerial : public Stream {
201
194
#if defined(UART5) || defined(USART5)
202
195
extern HardwareSerial Serial5;
203
196
#endif
204
- #if defined(USART6)
197
+ #if defined(USART6) || defined(USART6)
205
198
extern HardwareSerial Serial6;
206
199
#endif
207
200
#if defined(UART7) || defined(USART7)
You can’t perform that action at this time.
0 commit comments