/* Find in between all events timers which is the next one. (and update the internal next_timer_* accordingly)  */
void nsi_hws_find_next_event(void)
/* Find in between all events timers which is the next one. (and update the internal next_timer_* accordingly)  */
void nsi_hws_find_next_event(void)
{
	next_timer_index = 0;
	next_timer_time  = *__nsi_hw_events_start[0].timer;
	for (unsigned int i = 1; i < number_of_events ; i++) {
		if (next_timer_time > *__nsi_hw_events_start[i].timer) {
			next_timer_index = i;
			next_timer_time = *__nsi_hw_events_start[i].timer;
		}
	}
}