Commit 9a8b6d9a authored by Aksel Skauge Mellbye's avatar Aksel Skauge Mellbye Committed by Benjamin Cabé
Browse files

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: default avatarAksel Skauge Mellbye <aksel.mellbye@silabs.com>
parent c29aa88f
Loading
Loading
Loading
Loading
+10 −0
Changes for include/zephyr/drivers/gpio.h: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -794,6 +794,16 @@ enum gpio_int_trig {
	GPIO_INT_TRIG_BOTH = GPIO_INT_LOW_0 | GPIO_INT_HIGH_1,
	/* Trigger a system wakeup. */
	GPIO_INT_TRIG_WAKE = GPIO_INT_WAKEUP,
	/* Trigger a system wakeup when input state is (or transitions to)
	 * physical low. (Edge Falling or Active Low)
	 */
	GPIO_INT_TRIG_WAKE_LOW = GPIO_INT_LOW_0 | GPIO_INT_WAKEUP,
	/* Trigger a system wakeup when input state is (or transitions to)
	 * physical high. (Edge Rising or Active High)
	 */
	GPIO_INT_TRIG_WAKE_HIGH = GPIO_INT_HIGH_1 | GPIO_INT_WAKEUP,
	/* Trigger a system wakeup on pin rising or falling edge. */
	GPIO_INT_TRIG_WAKE_BOTH = GPIO_INT_LOW_0 | GPIO_INT_HIGH_1 | GPIO_INT_WAKEUP,
};

__subsystem struct gpio_driver_api {