Skip to content

Commit

Permalink
GpioLib: Fix pull down/up definitions
Browse files Browse the repository at this point in the history
Bit [1]:
0b0: Pull Down
0b1: Pull Up

Bit [0]:
0b0: Pull Disable
0b1: Pull Enable

Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
  • Loading branch information
mariobalanica committed Dec 20, 2024
1 parent f92dbbe commit e7a6b99
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/** @file
*
* Copyright (c) 2021, Jared McNeill <jmcneill@invisible.ca>
* Copyright (c) 2024, Mario Bălănică <mariobalanica02@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
Expand Down Expand Up @@ -48,9 +49,9 @@ typedef enum {
} GPIO_PIN_DIRECTION;

typedef enum {
GPIO_PIN_PULL_NONE = 0,
GPIO_PIN_PULL_UP = 1,
GPIO_PIN_PULL_DOWN = 2
GPIO_PIN_PULL_NONE = 0x0,
GPIO_PIN_PULL_DOWN = 0x1,
GPIO_PIN_PULL_UP = 0x3
} GPIO_PIN_PULL;

typedef enum {
Expand Down

0 comments on commit e7a6b99

Please sign in to comment.