Tool/software: TI-RTOS
Hi
In the task of collecting sensor data and sent via the RF, 2 s and then sleep. So after several cycles, task automatically 14 minutes of sleep. So cycle.
Why is this ? Task content is as follows:
while(1)
{
// current_time += PACKET_INTERVAL_PERIOD;
// RF_cmdPropTx.startTime = current_time;
// sensor_info.extern_temp = SensorTmp112_GetTmp();
Sysinfo_Proc(packet);//collect sensor info
RF_EventMask result = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTx, RF_PriorityNormal, NULL, 0); //Radio Send data
if (!(result & RF_EventLastCmdDone))
{
/* Error */
while(1);
}
GPIO_toggle(Board_GPIO_LED0); //toggle led
Task_sleep(2000*1000/Clock_tickPeriod);//Sleep
}