ESPHome 2026.5.1
Loading...
Searching...
No Matches
wake.h File Reference

Platform-specific main loop wake primitives. More...

Go to the source code of this file.

Namespaces

namespace  esphome
 

Functions

 esphome::__attribute__ ((always_inline)) inline bool in_isr_context()
 Returns true when executing inside an interrupt handler.
 

Variables

volatile bool esphome::g_main_loop_woke = false
 
std::atomic< uint8_t > esphome::g_wake_requested = 0
 

Detailed Description

Platform-specific main loop wake primitives.

Always available on all platforms — no opt-in needed.

The public API for callers lives here; the per-platform implementations live under esphome/core/wake/ and are included at the bottom of this file based on the active USE_* platform define.

Definition in file wake.h.