![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| int bm_timer_start | ( | struct bm_timer * | timer, |
| uint32_t | timeout_ticks, | ||
| void * | context ) |
#include <bm_timer.h>
Start a timer.
| timer | Pointer to timer instance. |
| timeout_ticks | Number of ticks to time-out event. |
| context | General purpose pointer. Will be passed to the time-out handler when when the timer expires. |
| 0 | On success. |
| -EFAULT | If timer is NULL. |
| -EINVAL | If timeout_ticks is less than BM_TIMER_MIN_TIMEOUT_TICKS. |