From 3b2b15502301b4b033c37dd19a83b7fa571c16bd Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 16 Feb 2008 15:40:11 +0000 Subject: [PATCH] Macro must be bit mask, not bit number git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@695 42af7a65-404d-4744-a932-0658087f49c3 --- arch/z80/include/z8/irq.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/z80/include/z8/irq.h b/arch/z80/include/z8/irq.h index 5a9858a75c..79fe8e83b3 100644 --- a/arch/z80/include/z8/irq.h +++ b/arch/z80/include/z8/irq.h @@ -207,15 +207,15 @@ #ifdef ENCORE_VECTORS # define Z8_IRQ0_MIN Z8_TIMER2_IRQ -# define Z8_IRQ0_BIT(irq) (Z8_ADC_IRQ - (irq)) +# define Z8_IRQ0_BIT(irq) (1 << (Z8_ADC_IRQ - (irq))) # define Z8_IRQ0_MAX Z8_ADC_IRQ # define Z8_IRQ1_MIN Z8_P7AD_IRQ -# define Z8_IRQ1_BIT(irq) (Z8_P0AD_IRQ - (irq)) +# define Z8_IRQ1_BIT(irq) (1 << (Z8_P0AD_IRQ - (irq))) # define Z8_IRQ1_MAX Z8_P0AD_IRQ # define Z8_IRQ2_MIN Z8_TIMER3_IRQ -# define Z8_IRQ2_BIT(irq) (Z8_C0_IRQ - (irq)) +# define Z8_IRQ2_BIT(irq) (1 << (Z8_C0_IRQ - (irq))) # define Z8_IRQ2_MAX Z8_C0_IRQ #else