diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-16 15:40:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-02-16 15:40:11 +0000 |
commit | 17df8946725df2e91d268ca0c558b19312973ae3 (patch) | |
tree | f0c5d5c6469746d11ce76644e5856cff8b35a9b0 /nuttx/arch/z80 | |
parent | da0e55d2362d12f02b81671dab59feab27897f06 (diff) | |
download | px4-nuttx-17df8946725df2e91d268ca0c558b19312973ae3.tar.gz px4-nuttx-17df8946725df2e91d268ca0c558b19312973ae3.tar.bz2 px4-nuttx-17df8946725df2e91d268ca0c558b19312973ae3.zip |
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
Diffstat (limited to 'nuttx/arch/z80')
-rw-r--r-- | nuttx/arch/z80/include/z8/irq.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/z80/include/z8/irq.h b/nuttx/arch/z80/include/z8/irq.h index 5a9858a75..79fe8e83b 100644 --- a/nuttx/arch/z80/include/z8/irq.h +++ b/nuttx/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 |