diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-12-13 18:13:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-12-13 18:13:22 +0000 |
commit | 682067216c5dd3084ab4c7c043e519be43ad73db (patch) | |
tree | 22a8e3101f7dd15c66eb165effc5f992378d160a /nuttx/configs/xtrs/src | |
parent | 1d7cb63254ce5ed4142cb5192c6358ac1521f2c8 (diff) | |
download | px4-nuttx-682067216c5dd3084ab4c7c043e519be43ad73db.tar.gz px4-nuttx-682067216c5dd3084ab4c7c043e519be43ad73db.tar.bz2 px4-nuttx-682067216c5dd3084ab4c7c043e519be43ad73db.zip |
Add special register definitions needed for z80181 and z80182
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5434 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/xtrs/src')
-rw-r--r-- | nuttx/configs/xtrs/src/xtr_irq.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nuttx/configs/xtrs/src/xtr_irq.c b/nuttx/configs/xtrs/src/xtr_irq.c index 72f6c10e2..e72c0be3b 100644 --- a/nuttx/configs/xtrs/src/xtr_irq.c +++ b/nuttx/configs/xtrs/src/xtr_irq.c @@ -71,7 +71,7 @@ void up_irqinitialize(void) { - /* Attach the timer interrupt -- There is not special timer interrupt + /* Attach the timer interrupt -- There is no special timer interrupt * enable in the simulation so it must be enabled here before interrupts * are enabled. * @@ -97,10 +97,12 @@ void up_irqinitialize(void) * ****************************************************************************/ +#ifndef CONFIG_ARCH_NOINTC void up_disable_irq(int irq) { irqrestore(0); } +#endif /**************************************************************************** * Name: up_enable_irq @@ -110,7 +112,9 @@ void up_disable_irq(int irq) * ****************************************************************************/ +#ifndef CONFIG_ARCH_NOINTC void up_enable_irq(int irq) { - irqrestore(true); + irqrestore(Z80_C_FLAG); } +#endif |