Skip to content

Commit

Permalink
enum
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Sep 24, 2024
1 parent 2b148c0 commit b1ffee7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion board/drivers/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1ffee7

Please sign in to comment.