diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-03-23 21:22:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-03-23 21:22:19 +0000 |
commit | ab79926704fe3e83ac5904029ac67c0db89f3e87 (patch) | |
tree | cb3924574e08597d61a00d9f9d27caa3cf226193 /nuttx/include | |
parent | 80962cfd5bd1ba72390abaa35f2aa91cab69fd67 (diff) | |
download | px4-nuttx-ab79926704fe3e83ac5904029ac67c0db89f3e87.tar.gz px4-nuttx-ab79926704fe3e83ac5904029ac67c0db89f3e87.tar.bz2 px4-nuttx-ab79926704fe3e83ac5904029ac67c0db89f3e87.zip |
Fix access to ez80 I/O address space
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@748 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/arch.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/nuttx/include/nuttx/arch.h b/nuttx/include/nuttx/arch.h index 7f054e088..40667b077 100644 --- a/nuttx/include/nuttx/arch.h +++ b/nuttx/include/nuttx/arch.h @@ -379,7 +379,18 @@ EXTERN boolean up_interrupt_context(void); * Name: up_enable_irq * * Description: - * Enable the IRQ specified by 'irq' + * On many architectures, there are three levels of interrupt enabling: (1) + * at the global level, (2) at the level of the interrupt controller, + * and (3) at the device level. In order to receive interrupts, they + * must be enabled at all three levels. + * + * This function implements enabling of the device specified by 'irq' + * at the interrupt controller level if supported by the architecture + * (irqsave() supports the global level, the device level is hardware + * specific). + * + * Since this API is not supported on all architectures, it should be + * avoided in common implementations where possible. * ****************************************************************************/ @@ -389,7 +400,13 @@ EXTERN void up_enable_irq(int irq); * Name: up_disable_irq * * Description: - * Disable the IRQ specified by 'irq' + * This function implements disabling of the device specified by 'irq' + * at the interrupt controller level if supported by the architecture + * (irqsave() supports the global level, the device level is hardware + * specific). + * + * Since this API is not supported on all architectures, it should be + * avoided in common implementations where possible. * ****************************************************************************/ |