diff --git a/include/gpio.h b/include/gpio.h index a967eaa2884..26bcc28185d 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -63,6 +63,14 @@ extern "C" { #define GPIO_PUD_PULL_DOWN (2 << GPIO_PUD_POS) #define GPIO_PUD_MASK (3 << GPIO_PUD_POS) +/* Pin enable/disable + * + * Individual pins can be enabled or disabled + * if the controller supports this operation. + */ +#define GPIO_PIN_ENABLE (1 << 10) +#define GPIO_PIN_DISABLE (1 << 11) + /* application callback function signature*/ typedef void (*gpio_callback_t)(struct device *port, uint32_t pin);