Best way to restart from ISR?
Posted: Thu May 19, 2022 2:36 pm
Hello. The idea is that I am setting a flag in ISR and want to restart immediately to run normal loop + flagged code.
1) What is the fastest/efficient/most graceful way to restart immediately inside of the ISR? Some of the ways I can think of would be:
1) What is the fastest/efficient/most graceful way to restart immediately inside of the ISR? Some of the ways I can think of would be:
- esp_restart()
Code: Select all
esp_sleep_enable_timer_wakeup(1); esp_deep_sleep_start();
Code: Select all
esp_sleep_enable_timer_wakeup(1); esp_light_sleep_start();