Hardware Timer (hw_timer.h) usage - continued

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

cross mob
Anonymous
Not applicable

Hi moicci and kawamura

Per your responses here: Hardware Timer (hw_timer.h) usage

I tried to implement the usage of the hw_timer using the functions:

hw_timer_register_timer_expired_callback, hw_timer_start to initialize and the function

bleappevt_serialize within the callback function. Unfortunately the callback function is never called. I checked that with a cntr increment (I passed it via the data context pointer of the serialize function).

Do I have to initialize the event system or do I have to enable a hw_timer interrupt. I would appreciate any help

Thanks

Daniel

0 Likes
1 Solution
Anonymous
Not applicable

Hello Daniel,

1.  The hardware timer doesn't work well (It will expire much longer) when sleep is enabled.

2.  You must disable sleep.

Thanks

JT

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

Hello Daniel,

1.  The hardware timer doesn't work well (It will expire much longer) when sleep is enabled.

2.  You must disable sleep.

Thanks

JT

0 Likes
Anonymous
Not applicable

perfect, I disabled the sleep and *wham* it was working. Thank you.

Anonymous
Not applicable

Thanks JT.

Many thanks for the feedback that this now works Daniel.

Regards

Dave