nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ bm_timer_start()

int bm_timer_start ( struct bm_timer * timer,
uint32_t timeout_ticks,
void * context )

#include <bm_timer.h>

Start a timer.

Parameters
timerPointer to timer instance.
timeout_ticksNumber of ticks to time-out event.
contextGeneral purpose pointer. Will be passed to the time-out handler when when the timer expires.
Return values
0On success.
-EFAULTIf timer is NULL.
-EINVALIf timeout_ticks is less than BM_TIMER_MIN_TIMEOUT_TICKS.