This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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?
Vivek,
You have to use assembly code to access R4 registers.
Thanks and regards,
Zhaohong
Hello Vivek:
Did Zhaohong answer your question adequately? If so, please verify his answer so that the thread may be closed.