Will the following two assembly commands work to disable and enable global Interrupts on the SAMA5D44?
asm("cpsie if"); asm("cpsid if");
I know they work for the SAM 7
If not what are the instructions to achieve this?
Thanks lads.
Will the following two assembly commands work to disable and enable global Interrupts on the SAMA5D44?
asm("cpsie if"); asm("cpsid if");
I know they work for the SAM 7
If not what are the instructions to achieve this?
Thanks lads.
have you read the compiler info? Usually these are __disable_irq() or something like that.
right lads. I have the following code:
//------------------------------------------------------------------------------ // Startup routine //------------------------------------------------------------------------------ .align 4 .arm /** * DISABLE INTERRUPTS */ cpsid if /* Exception vectors *******************/ .section .vectors, "a", %progbits resetVector: /* Reset */ ldr pc, =resetHandler /* Undefined Instruction */ ldr pc, =undefined_instruction_irq_handler /* Software Interrupt */ ldr pc, =software_interrupt_irq_handler /* Prefetch Abort */ ldr pc, =prefetch_abort_irq_handler /* Data Abort */ ldr pc, =data_abort_irq_handler /* Reserved for future use */ .word 0 /* Interrupt */ ldr pc, =irqHandler /* Fast interrupt */ ldr pc, =fiqHandler .section .text //------------------------------------------------------------------------------ /// Handles a fast interrupt request by branching to the address defined in the /// AIC. //------------------------------------------------------------------------------ fiqHandler: /* Inform RTOS that Interrupt has been entered */ stmfd sp!, {r0-r12, lr} bl enter_irq ldmia sp!, {r0-r12, lr}