From 54c1c76ce3a3c8b45f3b4e2a76d2c45dbe6c972f Mon Sep 17 00:00:00 2001 From: Aymane Bahssain Date: Fri, 23 Jan 2026 09:55:58 +0100 Subject: [PATCH] core: extend PinMode enum with INPUT_FLOATING and INPUT_ANALOG Signed-off-by: Aymane Bahssain --- api/Common.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/api/Common.h b/api/Common.h index 9b28f40a..9a86cb5e 100644 --- a/api/Common.h +++ b/api/Common.h @@ -36,11 +36,14 @@ typedef enum { } PinStatus; typedef enum { - INPUT = 0x0, - OUTPUT = 0x1, - INPUT_PULLUP = 0x2, - INPUT_PULLDOWN = 0x3, - OUTPUT_OPENDRAIN = 0x4, + INPUT = 0x0, + OUTPUT = 0x1, + INPUT_PULLUP = 0x2, + INPUT_FLOATING = INPUT, + INPUT_PULLDOWN = 0x3, + OUTPUT_OPENDRAIN = 0x4, + OUTPUT_OPEN_DRAIN = OUTPUT_OPENDRAIN, + INPUT_ANALOG = 0x5, } PinMode; typedef enum {