diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-07 16:59:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-07 16:59:36 +0000 |
commit | 2c9001b17ff62f61be1677ebd789f081324fe326 (patch) | |
tree | 9d7a5cc564361a837742534250d3527a06d62081 /nuttx/include | |
parent | a113aa53d96d039d28e3e54ba79b2aae6a524ca5 (diff) | |
download | px4-nuttx-2c9001b17ff62f61be1677ebd789f081324fe326.tar.gz px4-nuttx-2c9001b17ff62f61be1677ebd789f081324fe326.tar.bz2 px4-nuttx-2c9001b17ff62f61be1677ebd789f081324fe326.zip |
reconcile architectures w/o interrupt controllers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1153 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/arch.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/arch.h b/nuttx/include/nuttx/arch.h index 40667b077..e2e8958ea 100644 --- a/nuttx/include/nuttx/arch.h +++ b/nuttx/include/nuttx/arch.h @@ -394,7 +394,9 @@ EXTERN boolean up_interrupt_context(void); * ****************************************************************************/ +#ifndef CONFIG_ARCH_NOINTC EXTERN void up_enable_irq(int irq); +#endif /**************************************************************************** * Name: up_disable_irq @@ -410,7 +412,25 @@ EXTERN void up_enable_irq(int irq); * ****************************************************************************/ +#ifndef CONFIG_ARCH_NOINTC EXTERN void up_disable_irq(int irq); +#endif + + +/**************************************************************************** + * Name: up_prioritize_irq + * + * Description: + * Set the priority of an IRQ. + * + * Since this API is not supported on all architectures, it should be + * avoided in common implementations where possible. + * + ****************************************************************************/ + +#ifdef CONFIG_ARCH_IRQPRIO +EXTERN int up_prioritize_irq(int irq, int priority); +#endif /**************************************************************************** * These are standard interfaces that are exported by the OS |