Other Parts Discussed in Thread: C2000WARE
Dear C2000 expert,
I see the documentation has described the nesting inerrupt, file:///C:/ti/c2000/C2000Ware_3_04_00_00/docs/c28x_interrupt_nesting/html/index.html.
My application is pretty simple, only 2 interrupts are used, timer0 and epwm1 period interrupt in my code.
And I'd like the timer0's interrupt can be nested, and set epwm1's period interrupt is the highest priority.
I just add below code in timer0ISR, and didn't modify IER and PIEIER in timer0ISR, can you please help me know if any risk here?
__interrupt void cpuTimer0ISR(void)
{
GpioDataRegs.GPBSET.bit.GPIO34 = 1;
/* Enable Interrupts */
Interrupt_clearACKGroup(0xFFFFU);
__asm(" NOP");
EINT;
/* My isr code begin here */
/* ... */
/* ... */
/* ... */
/* My isr code end here */
DINT;
GpioDataRegs.GPBCLEAR.bit.GPIO34 = 1;
}
Regards,
Jack