PR1960: ERC32_Is_interrupt_masked for ERC32 in erc32.h

The function-like macro ERC32_Is_interrupt_masked defined as:

  (ERC32_MEC.Interrupt_Masked & (1 << (_source)))

The ERC32_MEC is of type ERC32_Register_Map structure and Interrupt_Masked does
not exist in structure, instead Interrupt_Mask exists.
Update the macro accordingly.
This commit is contained in:
Helder Silva
2011-11-10 06:57:29 -06:00
committed by Gedare Bloom
parent ce8363d363
commit bde2237020

View File

@@ -362,7 +362,7 @@ static __inline__ int bsp_irq_fixup(int irq)
(ERC32_MEC.Interrupt_Pending & (1 << (_source)))
#define ERC32_Is_interrupt_masked( _source ) \
(ERC32_MEC.Interrupt_Masked & (1 << (_source)))
(ERC32_MEC.Interrupt_Mask & (1 << (_source)))
#define ERC32_Mask_interrupt( _source ) \
do { \