File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 6
6
extern " C" {
7
7
#endif
8
8
9
+ #ifdef __cplusplus
10
+ #define ARD_CHAR_ENUM_XWEZPiBoACuGnH : char
11
+ #else
12
+ #define ARD_CHAR_ENUM_XWEZPiBoACuGnH __attribute__ ((__packed__))
13
+ #endif
14
+
9
15
void yield (void );
10
16
11
- typedef enum {
17
+ typedef enum ARD_CHAR_ENUM_XWEZPiBoACuGnH {
12
18
LOW = 0 ,
13
19
HIGH = 1 ,
14
20
CHANGE = 2 ,
15
21
FALLING = 3 ,
16
22
RISING = 4 ,
17
23
} PinStatus;
18
24
19
- typedef enum {
25
+ typedef enum ARD_CHAR_ENUM_XWEZPiBoACuGnH {
20
26
INPUT = 0x0 ,
21
27
OUTPUT = 0x1 ,
22
28
INPUT_PULLUP = 0x2 ,
23
29
INPUT_PULLDOWN = 0x3 ,
24
30
OUTPUT_OPENDRAIN = 0x4 ,
25
31
} PinMode;
26
32
27
- typedef enum {
33
+ typedef enum ARD_CHAR_ENUM_XWEZPiBoACuGnH {
28
34
LSBFIRST = 0 ,
29
35
MSBFIRST = 1 ,
30
36
} BitOrder;
Original file line number Diff line number Diff line change 26
26
27
27
namespace arduino {
28
28
29
- typedef enum {
29
+ typedef enum ARD_CHAR_ENUM_XWEZPiBoACuGnH {
30
30
SPI_MODE0 = 0 ,
31
31
SPI_MODE1 = 1 ,
32
32
SPI_MODE2 = 2 ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ namespace arduino {
39
39
// This enumeration provides the lookahead options for parseInt(), parseFloat()
40
40
// The rules set out here are used until either the first valid character is found
41
41
// or a time out occurs due to lack of input.
42
- enum LookaheadMode{
42
+ enum LookaheadMode: uint8_t {
43
43
SKIP_ALL, // All invalid characters are ignored.
44
44
SKIP_NONE, // Nothing is skipped, and the stream is not touched unless the first waiting character is valid.
45
45
SKIP_WHITESPACE // Only tabs, spaces, line feeds & carriage returns are skipped.
@@ -130,4 +130,4 @@ class Stream : public Print
130
130
131
131
}
132
132
133
- using arduino::Stream;
133
+ using arduino::Stream;
You can’t perform that action at this time.
0 commit comments