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

◆ bm_timer_init()

int bm_timer_init ( struct bm_timer * timer,
enum bm_timer_mode mode,
bm_timer_timeout_handler_t timeout_handler )

#include <bm_timer.h>

Initialize a timer instance.

Parameters
timerPointer to timer instance.
modeTimer mode.
timeout_handlerFunction to be executed when time timer expires.
Return values
0On success.
-EFAULTIf timer or timeout_handler is NULL.