summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/str71x/str71x_xti.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/str71x/str71x_xti.c')
-rwxr-xr-xnuttx/arch/arm/src/str71x/str71x_xti.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/str71x/str71x_xti.c b/nuttx/arch/arm/src/str71x/str71x_xti.c
index f89f0715f..3143ad76f 100755
--- a/nuttx/arch/arm/src/str71x/str71x_xti.c
+++ b/nuttx/arch/arm/src/str71x/str71x_xti.c
@@ -200,7 +200,7 @@ int str71x_xticonfig(int irq, bool rising)
/* Configure one of the 16 lines as an interrupt source */
- if (irq > STR71X_IRQ_FIRSTXTI && irq <= NR_IRQS)
+ if (irq >= STR71X_IRQ_FIRSTXTI && irq <= NR_IRQS)
{
/* Make sure that the interrupt is disabled */
@@ -254,7 +254,7 @@ void str71x_enable_xtiirq(int irq)
/* Enable the external interrupt */
- if (irq > STR71X_IRQ_FIRSTXTI && irq <= NR_IRQS)
+ if (irq >= STR71X_IRQ_FIRSTXTI && irq <= NR_IRQS)
{
/* Decide if we use the lower or upper regiser */
@@ -294,7 +294,7 @@ void str71x_disable_xtiirq(int irq)
/* Disable the external interrupt */
- if (irq > STR71X_IRQ_FIRSTXTI && irq <= NR_IRQS)
+ if (irq >= STR71X_IRQ_FIRSTXTI && irq <= NR_IRQS)
{
/* Decide if we use the lower or upper regiser */