diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-27 17:01:09 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-27 17:01:09 +0000 |
commit | d7575bbc74cfcd8def8ae616a123d2fe4335527f (patch) | |
tree | ae03064a06469a7717f1a740c02c4f9aaa39a6ea /nuttx/arch/arm/src/lpc313x/lpc313x_irq.c | |
parent | 2d45cc4d649904022b052d46fb4248d66353ffb8 (diff) | |
download | px4-nuttx-d7575bbc74cfcd8def8ae616a123d2fe4335527f.tar.gz px4-nuttx-d7575bbc74cfcd8def8ae616a123d2fe4335527f.tar.bz2 px4-nuttx-d7575bbc74cfcd8def8ae616a123d2fe4335527f.zip |
Beginnings of lpc313x CGU driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2438 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc313x/lpc313x_irq.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc313x/lpc313x_irq.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/lpc313x/lpc313x_irq.c b/nuttx/arch/arm/src/lpc313x/lpc313x_irq.c index 348a3fe26..6f6b23b56 100755 --- a/nuttx/arch/arm/src/lpc313x/lpc313x_irq.c +++ b/nuttx/arch/arm/src/lpc313x/lpc313x_irq.c @@ -47,12 +47,13 @@ #include <nuttx/arch.h> #include <arch/irq.h> +#include "arm.h" #include "up_arch.h" #include "os_internal.h" #include "up_internal.h" #include "lpc313x_intc.h" -#include "lpc313x_cgu.h" +#include "lpc313x_cgudrvr.h" #include "lpc313x_internal.h" /**************************************************************************** @@ -115,6 +116,16 @@ void up_irqinitialize(void) INTC_REQUEST_PRIOLEVEL(1)|INTC_REQUEST_WEPRIO, address); } + + /* currents_regs is non-NULL only while processing an interrupt */ + + current_regs = NULL; + + /* And finally, enable interrupts */ + +#ifndef CONFIG_SUPPRESS_INTERRUPTS + irqrestore(SVC_MODE | PSR_F_BIT); +#endif } /**************************************************************************** |