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.
Type: struct timer_descriptor Struct *const
A timer descriptor to initialize
Type: void *const
The pointer to the hardware instance
Type: struct _timer_hpl_interface *const
The pointer to a set of function pointers
Type: int32_t
Initialization status.