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

Smart Bluetooth Forum Discussions

Anonymous
Not applicable

From bleapptimer.h:

// This function will start a fine resolution timer. It should be used with care.

// The timeout is in ms unit.

void bleapptimer_startFineTimer( BLEAPP_TIMER_CB cb, INT16 timeOut);

I noticed a problem with timeOut:

for timeOut = 1000 callback is called about every 12 sec, for timeOut = 100 - every 1 sec.

Is this a bug in bleapptimer_startFineTimer ?

0 Likes
1 Solution

Yes we will correct the documentation on the api header, thanks for pointing this out.

Also as we mentioned the time is based out of 12.5 OS ticks. So if you would like to use this timer consider the OS ticks instead of ms.

View solution in original post

0 Likes
4 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

We spoke to the developers about this request and it appears that the timer is fine.

Some things to note:

  • The timeout parameter is not in mS, its in OS ticks
  • This API should not be used by the application
0 Likes
Anonymous
Not applicable

Then there is a bug in the function comment in bleapptimer.h which says that the timeout is in ms.

What is the proper API for application to stop/start fine timer ?

0 Likes

vik86 is looking into this and will respond.

0 Likes

Yes we will correct the documentation on the api header, thanks for pointing this out.

Also as we mentioned the time is based out of 12.5 OS ticks. So if you would like to use this timer consider the OS ticks instead of ms.

0 Likes