Hello,
I am working with a C6670. I want a 10mS timer to trigger periodic processing so I have set up a timer as follows:
Error_Block eb;
Timer_Params timerParams;
Timer_Handle timerHandle = 0;
SSP_RESULT ret = SSP_OK;
Error_init(&eb);
Timer_Params_init(&timerParams);
timerParams.period = 10000; /* 10 ms */
timerHandle = Timer_create(Timer_ANY, TimerTickFunction, &timerParams, &eb);
if (timerHandle == NULL)
{
PRINT_ERROR("Timer create failed\n");
ret = TARGET_INTERRUPT_MANAGER_TIMER_CREATE_FAIL;
TARGET_HLL_SetErrorEvent(&ret);
return ret;
}
return ret;
The call to Timer_create was failing. Debugging showed that another interrupt assigned to interrupt number 4 was causing this problem:
Hwi_create(4, TempAlarmIsrHandler, &hwiParams, &eb);
If the interrupt number in this call to Hwi_create was changed from 4 to 6 then the timer was successfully created. After the call to Timer_create, this new field appeared in the ROV Hwi view: IntNum = 4, fxn = TImerTickFunction, eventId = 65 (Data manual shows that event 65 is TINTHn6 Local Timer interrupt high).
My question is why Timer_create uses IntNum = 4. Is this configurable? I haven't been able to find a description of the default interrupt number in the timer documentation which I have looked through.
Thanks,
Geraldine