Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Efficient Alarm Clock FAQ

Questions

  1. Are we allowed to manually disable and enable interrupts in timer sleep?

Are we allowed to manually disable and enable interrupts in timer sleep?

Yes. To be precise, interrupts must be on before and after the method call (“after” being before timer_sleep returns). It is not acceptable to turn off interrupts during timer_sleep and re-enable them at a later time after the function completes.