Hi,
I want to create two timers for the C6678 platform, on creating the second timer I'm getting an error where the Hwi is already defined (below), how can I change the timer interrupt (I tried to change the Timer_Params Hwi_Params with no success)?
"ti.sysbios.family.c64p.Hwi: line 159: E_alreadyDefined: Hwi already defined: intr# 15 xdc.runtime.Error.raise: terminating execution"
What I'm doing is -
Timer_Params_init(&timerParams);
timerParams.period = 1000;
timerParams.arg = 8;
timerParams.startMode = Timer_StartMode_AUTO;
timer8Handle = Timer_create(8, (Timer_FuncPtr)timer8Fxn, &timerParams, NULL);
if (timer8Handle == NULL) {
System_abort("Timer create failed");
}
Timer_Params_init(&timerParams);
timerParams.period = 500;
timerParams.arg = 10;
timerParams.startMode = Timer_StartMode_AUTO;
timer10Handle = Timer_create(10, (Timer_FuncPtr)timer10Fxn, &timerParams, NULL);
if (timer10Handle == NULL) {
System_abort("Timer create failed");
}
Thanks,
HR