This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupt ON and OFF reg

Hi,
I am migrating from ARM7 TDMI to Cortex -M4. I am porting the legacy code(Client provided) of ARM7 TDMI to Cortex-M4. I saw few statements to enable and disable interrupt in GHS compiler

FIQ Interrupts been used.
INTERRUPT_OFF asm("stmdb SP!, {R0}"); \ asm("mrs r0, CPSR"); \ asm("orr r0, r0, #0x40"); \ asm("msr CPSR_c, r0"); \ asm("ldmia SP!, {R0}");

INTERRUPT_ON asm("stmdb SP!, {R0}"); \ asm("mrs r0, CPSR"); \ asm("bic r0, r0, #0x40"); \ asm("msr CPSR_c, r0"); \ asm("ldmia SP!, {R0}");

What could be the equivalent code for KEIL Cortex-M4 implemenatation( I am using STM32F427 microcontroller). Any suggestions for this.

0