Is it possible for gpiote_event_handler interrupt to get executed while the program is executing code inside timer_event_handler?
These events modify same variables so to be safe I put CRITICAL_REGION_ENTER/EXIT in both of them but is that necessary?