We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
"need code for interrupt and its explanation for ARM7 lpc2148...help me"
So don't doubt lpc2148 in a Cortex M4 thread. Open Google and solve your doubts. Or use the search function on this site and solve your doubts. Or stay doubting. It isn't like the candidate companies have spent time intentionally hiding the information...