void libmem_enable_timeouts(libmem_get_ticks_fn_t get_ticks_fn, uint32_t ticks_per_second);
libmem_enable_timeouts enables LIBMEM operation timeouts.
get_ticks_fn — A pointer to a function that returns an incrementing tick count.
ticks_per_second — The amount the value returned by the get_ticks_fn increments per second.
In order for operations to timeout the LIBMEM library needs a function that can supply a timer tick count and also needs to know the frequency the timer increments.
This function should be called prior to registering LIBMEM drivers as the ticks_per_second parameter can be used to pre-compute timeout periods when the driver is registered.