Date: Sun, 3 Nov 2024 16:02:23 GMT From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: bebff69739ed - stable/14 - sys: Add GPIO_INTR_EDGE_MASK define Message-ID: <202411031602.4A3G2NVv015591@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=bebff69739ed5d9c6bbc7796a981da867420f77e commit bebff69739ed5d9c6bbc7796a981da867420f77e Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2024-10-22 16:06:41 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2024-11-03 16:01:27 +0000 sys: Add GPIO_INTR_EDGE_MASK define This is the GPIO_INTR_EDGE_* flags, just as a convenience to let code test flags for interrupt edginess. Sponsored by: Amazon (cherry picked from commit f6197f2bc05b5a8df260cbf55283fddf7c76fec4) --- sys/sys/gpio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/sys/gpio.h b/sys/sys/gpio.h index ba5b362125f8..1a9e998a0e56 100644 --- a/sys/sys/gpio.h +++ b/sys/sys/gpio.h @@ -83,10 +83,10 @@ #define GPIO_INTR_EDGE_FALLING 0x00080000 /* edge trigger, falling */ #define GPIO_INTR_EDGE_BOTH 0x00100000 /* edge trigger, both */ #define GPIO_INTR_ATTACHED 0x00200000 /* interrupt attached to file */ +#define GPIO_INTR_EDGE_MASK (GPIO_INTR_EDGE_RISING | \ + GPIO_INTR_EDGE_FALLING | GPIO_INTR_EDGE_BOTH ) #define GPIO_INTR_MASK (GPIO_INTR_LEVEL_LOW | GPIO_INTR_LEVEL_HIGH | \ - GPIO_INTR_EDGE_RISING | \ - GPIO_INTR_EDGE_FALLING | GPIO_INTR_EDGE_BOTH | \ - GPIO_INTR_ATTACHED) + GPIO_INTR_EDGE_MASK | GPIO_INTR_ATTACHED) struct gpio_pin { uint32_t gp_pin; /* pin number */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411031602.4A3G2NVv015591>