Other Parts Discussed in Thread: TMS570LS20216
Hi ,
I am using TMS570LS20216 USB Kit, I am trying to enable the FIQ and IRQ using the below assembly function :
/* To Enable the FIQ */
_enable_FIQ();
/* To Enable the IRQ*/
_enable_IRQ();
The above mentioned function definitions are as below:
As mentioned in the spnu489c.pdf
FIQENABLE .equ 0x40
IRQENABLE .equ 0x80
......
_Enable_Fiq
MRS R1, CPSR
BIC R1, R1, #FIQENABLE
MSR CPSR, R1
MOV PC, LR
......
_Enable_Irq
MRS R1, CPSR
BIC R1, R1, #IRQENABLE
MSR CPSR, R1
MOV PC, LR
I would like to know if there is a way to access these CPSR and General Purpose (example: R1) registers using C language?