drivers: gpio: add named flag set for disconnected GPIO
A disconnected GPIO is one that is neither an input nor an output. This is represented by a zero-valued all-default configuration. Call this configuration GPIO_DISCONNECTED so the intent is clear. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
b11fb1c707
commit
9e8947fe3e
2 changed files with 4 additions and 1 deletions
|
@ -44,6 +44,9 @@ extern "C" {
|
|||
/** Enables pin as output, no change to the output state. */
|
||||
#define GPIO_OUTPUT (1U << 9)
|
||||
|
||||
/** Disables pin for both input and output. */
|
||||
#define GPIO_DISCONNECTED 0
|
||||
|
||||
/** @cond INTERNAL_HIDDEN */
|
||||
|
||||
/* Initializes output to a low state. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue