diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-16 13:47:29 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-16 13:47:29 +0000 |
commit | c2237202d1ee293b09038ebedcf1e18eb36af92e (patch) | |
tree | d956090b94ea61d4095b926d75f6cb2317f9076d /nuttx/arch/z16 | |
parent | d9938a26fd2e22d0b146c08f7a0c41b0feae0bec (diff) | |
download | px4-nuttx-c2237202d1ee293b09038ebedcf1e18eb36af92e.tar.gz px4-nuttx-c2237202d1ee293b09038ebedcf1e18eb36af92e.tar.bz2 px4-nuttx-c2237202d1ee293b09038ebedcf1e18eb36af92e.zip |
Add timer initialization and interrupt control
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@693 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z16')
-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) |