I have a function which is being called frequently in different time instances(from eCAP Interrupts) and I did setup the CPU Timer0 within that function to measure the time elapsed between each call. (Part of the code is attached below) Now I am transferring my C28x code to CLA and having a difficult time implementing the same function with the timer counter since CLA doesn't have access to CPU Timer0 Registers. Can anyone suggest a method to implement this counter in CLA?
void EXFunction(void)
{
Stop_Timer0();
Counter_Value = (CpuTimer0Regs.PRD.all - CpuTimer0Regs.TIM.all);
Start_Timer0();
...
...
}