How to use the timer?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

The explanation for the Timer in datasheet is :

Normal timer has a resolution of one second.

Fine timer can be configured in the device configuration to be as low as 12.5 milliseconds. Call

Then I use the timer is:

the fine_timer_interval in BLE_PROFILE_CFG is 5000;

void time_cb(UINT32 value)

{

  puart_print("t!\r\n");

}

void fint_time_cb(UINT32 value)

{

  puart_print("f_t!\r\n");

}

bleprofile_regTimerCb(time_cb,fine_time_cb);

bleprofile_StartTimer();

The Output timing of “t” and “f_t”  is not:

“t”    :Output once every 1 seconds

“f_t” :Output once every5 seconds

Please give me some tips!Thanks!

0 Likes
1 Solution
Anonymous
Not applicable
0 Likes
1 Reply
Anonymous
Not applicable

Please refer appFineTimer.

0 Likes