From eccc4cf309273c74ea4a51c57efcaf29572175c0 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 3 May 2010 03:46:21 +0000 Subject: More debug fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2649 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/str71x/str71x_xti.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx/arch') 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 */ -- cgit v1.2.3