summaryrefslogtreecommitdiff
path: root/nuttx/sched/irq_attach.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/irq_attach.c')
-rw-r--r--nuttx/sched/irq_attach.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/sched/irq_attach.c b/nuttx/sched/irq_attach.c
index d67a04a49..3032bf1b6 100644
--- a/nuttx/sched/irq_attach.c
+++ b/nuttx/sched/irq_attach.c
@@ -76,6 +76,7 @@
int irq_attach(int irq, xcpt_t isr)
{
+#if NR_IRQS > 0
int ret = ERROR;
if ((unsigned)irq < NR_IRQS)
@@ -102,6 +103,9 @@ int irq_attach(int irq, xcpt_t isr)
}
return ret;
+#else
+ return OK;
+#endif
}