Other Parts Discussed in Thread: Z-STACK
Tool/software: TI-RTOS
Hello,
I am using zstack_home_1_02_02a sample switch for CC2650. I need to send AF DATA REQUEST on every 30 mins. So I used a code part as below:
Clock_Params param;
Clock_Params_init(¶m);
param.startFlag = TRUE;
param.period = 30000000;
Clock_create(myTimerTick, 30000000,¶m, NULL);
void myTimerTick()
{
sendAfdataRequest();
}
The sendAfdataRequest is my custom function. I initialized the clock in switch initialization function. I need to know what is the unit of time that provide using the parameter: param.period?. What I meant is I dont know how much period of time I will get if I put 30000000 in the param.period./
Also, am I doing correct thing for a timer interrupt?, Which timer will configure when use above code and what is the maximum time period I can set using this code?
Please help.
Thank you.
