Other Parts Discussed in Thread: TMS320F2837
How to replace the following code:
EALLOW;
CpuTimer0Regs.TCR.bit.TRB = 1;
EDIS;
for AM3358? This comes from a repository for TMS320F2837x. The whole function is
Status_Type watchdog_stop
(
uint32_t key
)
{
if((watchdog_key == 0) || (key != watchdog_key)) { return Status_Failure; }
if(watchdog_timer == NO_TIMER_ID) { return Status_Failure; }
Hwi_disable();
/* Stop the timer */
Timer_stop(watchdog_timer);
Hwi_enable();
// EALLOW;
// CpuTimer0Regs.TCR.bit.TRB = 1;
// EDIS;
return Status_Success;
}
Thanks
Thanks