37.4.1 timer_init
Initialize timer.
int32_t timer_init(
struct timer_descriptor *const descr,
void *const hw,
struct _timer_hpl_interface *const func
)
This function initializes the given timer. It checks if the given hardware is not initialized and if the given hardware is permitted to be initialized.
Parameters
- descr
-
Type: struct timer_descriptor Struct *const
A timer descriptor to initialize
- hw
-
Type: void *const
The pointer to the hardware instance
- func
-
Type: struct _timer_hpl_interface *const
The pointer to a set of function pointers
Returns
Type: int32_t
Initialization status.