Hi,
I would like to enable timer0 interrupt(ouside of sus/bios) in Piccolo 28069 from application that running under sys/bios 6.33.3.33. for this i do the following:
InitCpuTimers();
ConfigCpuTimer(&CpuTimer0, 90, 50); //50usec period
Hwi_plug(38,MMTimerIsr0);
Hwi_enableInterrupt(38);
but interrupt doesn't arrive. what wrong here?
the similar code work for timer1 properly:
ConfigCpuTimer(&CpuTimer1, 90, 50);
Hwi_plug(13,MMTimerIsr1);
Hwi_enableInterrupt(13);
I tried to put in cfg the following:
Hwi.zeroLatencyIERMask = 2;
Hwi.nonDispatchedInterrupts["timer0HWI"] = new Hwi.NonDispatchedInterrupt();
Hwi.nonDispatchedInterrupts["timer0HWI"].intNum = 38;
Hwi.nonDispatchedInterrupts["timer0HWI"].fxn = "&MMTimerIsr0";
but it doesn't help - don't see any interrupt on the scope.
Could you help with it? what is wrong here?
Thanks,Sabina