diff options
Diffstat (limited to 'nuttx/arch/z16/src/z16f')
-rw-r--r-- | nuttx/arch/z16/src/z16f/z16f_irq.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/arch/z16/src/z16f/z16f_irq.c b/nuttx/arch/z16/src/z16f/z16f_irq.c index 485b482fa..01e21229f 100644 --- a/nuttx/arch/z16/src/z16f/z16f_irq.c +++ b/nuttx/arch/z16/src/z16f/z16f_irq.c @@ -40,8 +40,10 @@ #include <nuttx/config.h> #include <sys/types.h> + #include <nuttx/irq.h> #include <arch/irq.h> +#include <ez8.h> #include "chip/chip.h" #include "os_internal.h" @@ -109,7 +111,8 @@ void up_disable_irq(int irq) if (irq >= Z16F_IRQ_IRQ0) { /* Disable the interrupt by clearing the corresponding bit in the - * appropriate IRQ enable register. + * appropriate IRQ enable high register. The enable low + * register is assumed to be zero, resulting interrupt disabled. */ if (irq < Z16F_IRQ_IRQ1) @@ -142,7 +145,9 @@ void up_enable_irq(int irq) if (irq >= Z16F_IRQ_IRQ0) { /* Enable the interrupt by setting the corresponding bit in the - * appropriate IRQ enable register. + * appropriate IRQ enable register. The enable low + * register is assumed to be zero, resulting in "nomimal" interrupt + * priority. */ if (irq < Z16F_IRQ_IRQ1) |