diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-06-13 18:53:14 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-06-13 18:53:14 -0600 |
commit | 619119787e7a5e1e04528f6bf4bf079fe4499ee7 (patch) | |
tree | af048106afd68c94926d8d90aee48bad75e9be6b /nuttx/arch/arm/src/sam34/sam_gpioirq.c | |
parent | f89052fa018e2b4e3ae7aeea2f36aa3d08927956 (diff) | |
download | px4-nuttx-619119787e7a5e1e04528f6bf4bf079fe4499ee7.tar.gz px4-nuttx-619119787e7a5e1e04528f6bf4bf079fe4499ee7.tar.bz2 px4-nuttx-619119787e7a5e1e04528f6bf4bf079fe4499ee7.zip |
SAM3/4S GPIO interrupt changes
Diffstat (limited to 'nuttx/arch/arm/src/sam34/sam_gpioirq.c')
-rw-r--r-- | nuttx/arch/arm/src/sam34/sam_gpioirq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/sam34/sam_gpioirq.c b/nuttx/arch/arm/src/sam34/sam_gpioirq.c index b7c7ead27..11ea34aa6 100644 --- a/nuttx/arch/arm/src/sam34/sam_gpioirq.c +++ b/nuttx/arch/arm/src/sam34/sam_gpioirq.c @@ -280,7 +280,7 @@ void sam_gpioirq(uint16_t pinset) /* Are any additional interrupt modes selected? */ - if ((pinset & GPIO_INT_MASK) != 0) + if ((pinset & _GIO_INT_AIM) != 0) { /* Yes.. Enable additional interrupt mode */ @@ -288,7 +288,7 @@ void sam_gpioirq(uint16_t pinset) /* Level or edge detected interrupt? */ - if ((pinset & GPIO_INT_LEVEL) != 0) + if ((pinset & _GPIO_INT_LEVEL) != 0) { putreg32(pin, base + SAM_PIO_LSR_OFFSET); /* Level */ } @@ -299,7 +299,7 @@ void sam_gpioirq(uint16_t pinset) /* High level/rising edge or low level /falling edge? */ - if ((pinset & GPIO_INT_HIGHLEVEL) != 0) + if ((pinset & _GPIO_INT_RH) != 0) { putreg32(pin, base + SAM_PIO_REHLSR_OFFSET); /* High level/Rising edge */ } |