Skip to content

Commit 9a8b6d9

Browse files
asmellbykartben
authored andcommitted
include: zephyr: drivers: gpio: Make enum gpio_int_trig complete
The gpio_int_trig enum did not enumerate all possible combinations of flags after the addition of the GPIO_INT_WAKEUP flag. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent c29aa88 commit 9a8b6d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/zephyr/drivers/gpio.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,16 @@ enum gpio_int_trig {
794794
GPIO_INT_TRIG_BOTH = GPIO_INT_LOW_0 | GPIO_INT_HIGH_1,
795795
/* Trigger a system wakeup. */
796796
GPIO_INT_TRIG_WAKE = GPIO_INT_WAKEUP,
797+
/* Trigger a system wakeup when input state is (or transitions to)
798+
* physical low. (Edge Falling or Active Low)
799+
*/
800+
GPIO_INT_TRIG_WAKE_LOW = GPIO_INT_LOW_0 | GPIO_INT_WAKEUP,
801+
/* Trigger a system wakeup when input state is (or transitions to)
802+
* physical high. (Edge Rising or Active High)
803+
*/
804+
GPIO_INT_TRIG_WAKE_HIGH = GPIO_INT_HIGH_1 | GPIO_INT_WAKEUP,
805+
/* Trigger a system wakeup on pin rising or falling edge. */
806+
GPIO_INT_TRIG_WAKE_BOTH = GPIO_INT_LOW_0 | GPIO_INT_HIGH_1 | GPIO_INT_WAKEUP,
797807
};
798808

799809
__subsystem struct gpio_driver_api {

0 commit comments

Comments
 (0)