From b1ffee7abc9d076b0336c057b87b065e7694f5e2 Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Fri, 20 Sep 2024 18:10:02 -0700 Subject: [PATCH] enum --- board/drivers/gpio.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/board/drivers/gpio.h b/board/drivers/gpio.h index 386debe34..236a74674 100644 --- a/board/drivers/gpio.h +++ b/board/drivers/gpio.h @@ -7,7 +7,10 @@ #define PULL_UP 1 #define PULL_DOWN 2 -#define OUTPUT_TYPE_OPEN_DRAIN 1U +enum { + OUTPUT_TYPE_PUSH_PULL = 0U, + OUTPUT_TYPE_OPEN_DRAIN = 1U, +}; typedef struct { GPIO_TypeDef * const bank;