Hello,
I need to disable the interrupt completely for a short while. I have
found that the ARM7 can disable interrupts with the DI and EI asm.
Theese does only work for me in the startup.s file (I made a test) and
not as inline asm where I really need them.
I have found some code that may work inline, but can someone tell me
about their experiences, if any?
Inline asm, that I have found and plan to use:
#define IENABLE \
__asm { MSR CPSR_c, #0x1F } /* Enable IRQ (Sys Mode) */ \
#define IDISABLE \
__asm { MSR CPSR_c, #0x92 } /* Disable IRQ (IRQ Mode) */ \
Will this work or does anybody have a better sollution?
Thanks,
Regards KasperMessage
LPC2129 ARM7 Disable/Enable Interrupt..
2005-05-12 by unikum888
Attachments
- No local attachments were found for this message.