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:
Peter Bigot 2019-10-03 15:03:01 -05:00 committed by Carles Cufí
commit 9e8947fe3e
2 changed files with 4 additions and 1 deletions

View file

@ -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. */