Skip to content

Commit

Permalink
gpio hal: fix accord to issue #60
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaulet committed Jul 16, 2023
1 parent 8a29f48 commit 41525a9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion drivers/include/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,21 @@

struct gpio;

/* Enum: GPIO inversion
*
* GPIO_INVERT_IGNORE - Ignore GPIO inversion req
* GPIO_INVERT_DISABLE - Disable inversion
* GPIO_INVERT_ENABLE - Enable inversion
*/
typedef enum {
GPIO_INVERT_IGNORE,
GPIO_INVERT_DISABLE,
GPIO_INVERT_ENABLE,
GPIO_INVERT_COUNT
} gpio_invert_t;

struct gpio_settings {
bool invert;
gpio_invert_t invert;
};

/* Function: gpio_setup
Expand Down

0 comments on commit 41525a9

Please sign in to comment.