Other Parts Discussed in Thread: SYSBIOS
Hi,
I have a question.
If I call Task_create like below
Task_Params_init(&taskParams);
taskParams.priority = 3;
Task_create(SRR_MSS_initBiosTimer, &taskParams, NULL);
Do I need to call Task_delete() to delect it?
/* Create a MCU timer */
static void SRR_MSS_initBiosTimer (UArg arg0, UArg arg1)
{
Timer_Params timerParams;
Error_Block eb;
Error_init(&eb);
Timer_Params_init(&timerParams);
timerParams.period = (TM_ISR_10MS_CNT)*1000; //msec
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.arg = 1;
timerParams.startMode = Timer_StartMode_USER;
//timerParams.priority = 3;
/* sysbios timer */
gTimerHandler = Timer_create(Timer_ANY, TimerIsr, &timerParams, &eb);
if (gTimerHandler == NULL)
{
System_abort("Timer create failed");
}
/* start the MCU Timer */
Timer_start(gTimerHandler);
//???????????????????????//
//???????????????????????//
//???????????????????????//
//???????????????????????//
//???????????????????????//
//Task_delete()
}
------------------------------------------------------------------------------------------------------------------------
Thanks