Skip to content

Commit bf862b8

Browse files
committed
core: extend PinMode enum with INPUT_FLOATING and INPUT_ANALOG
Signed-off-by: Aymane Bahssain <[email protected]>
1 parent aeefda7 commit bf862b8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Common.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,14 @@ typedef enum {
3636
} PinStatus;
3737

3838
typedef enum {
39-
INPUT = 0x0,
40-
OUTPUT = 0x1,
41-
INPUT_PULLUP = 0x2,
42-
INPUT_PULLDOWN = 0x3,
43-
OUTPUT_OPENDRAIN = 0x4,
39+
INPUT = 0x0,
40+
OUTPUT = 0x1,
41+
INPUT_PULLUP = 0x2,
42+
INPUT_FLOATING = INPUT,
43+
INPUT_PULLDOWN = 0x3,
44+
OUTPUT_OPENDRAIN = 0x4,
45+
OUTPUT_OPEN_DRAIN = OUTPUT_OPENDRAIN,
46+
INPUT_ANALOG = 0x5,
4447
} PinMode;
4548

4649
typedef enum {

0 commit comments

Comments
 (0)