Skip to content
Commit 27c431ff authored by Christopher Friedt's avatar Christopher Friedt Committed by Carles Cufi
Browse files

api: gpio: add gpio direction query functions and driver api



Some services require the ability to query whether a GPIO pin
is configured as an input, output, both, or neither prior to
performing any operations at the service level. This is done
in order to reduce state tracking within the service.

To that end, this change adds
* `gpio_port_get_direction()`
* `gpio_pin_is_input()`, and
* `gpio_pin_is_output()`

Signed-off-by: default avatarChristopher Friedt <cfriedt@fb.com>
parent e527ed3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment