We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee040ed commit 066adbaCopy full SHA for 066adba
api/Common.h
@@ -6,25 +6,31 @@
6
extern "C"{
7
#endif
8
9
+#ifdef __cplusplus
10
+ #define ARD_CHAR_ENUM_XWEZPiBoACuGnH : char
11
+#else
12
+ #define ARD_CHAR_ENUM_XWEZPiBoACuGnH __attribute__ ((__packed__))
13
+#endif
14
+
15
void yield(void);
16
-typedef enum {
17
+typedef enum ARD_CHAR_ENUM_XWEZPiBoACuGnH{
18
LOW = 0,
19
HIGH = 1,
20
CHANGE = 2,
21
FALLING = 3,
22
RISING = 4,
23
} PinStatus;
24
25
26
INPUT = 0x0,
27
OUTPUT = 0x1,
28
INPUT_PULLUP = 0x2,
29
INPUT_PULLDOWN = 0x3,
30
OUTPUT_OPENDRAIN = 0x4,
31
} PinMode;
32
33
34
LSBFIRST = 0,
35
MSBFIRST = 1,
36
} BitOrder;
api/HardwareSPI.h
@@ -26,7 +26,7 @@
namespace arduino {
+typedef enum ARD_CHAR_ENUM_XWEZPiBoACuGnH {
SPI_MODE0 = 0,
SPI_MODE1 = 1,
SPI_MODE2 = 2,
api/Stream.h
@@ -39,7 +39,7 @@ namespace arduino {
39
// This enumeration provides the lookahead options for parseInt(), parseFloat()
40
// The rules set out here are used until either the first valid character is found
41
// or a time out occurs due to lack of input.
42
-enum LookaheadMode{
+enum LookaheadMode: uint8_t{
43
SKIP_ALL, // All invalid characters are ignored.
44
SKIP_NONE, // Nothing is skipped, and the stream is not touched unless the first waiting character is valid.
45
SKIP_WHITESPACE // Only tabs, spaces, line feeds & carriage returns are skipped.
@@ -130,4 +130,4 @@ class Stream : public Print
130
131
}
132
133
-using arduino::Stream;
+using arduino::Stream;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments