ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
wake_esp8266.cpp
Go to the documentation of this file.
2
3#ifdef USE_ESP8266
4
5#include "esphome/core/hal.h"
6#include "esphome/core/wake.h"
7
8namespace esphome {
9
10// === Wake-requested flag + main-loop woke flag storage ===
11// ESP8266 is always ESPHOME_THREAD_SINGLE.
12// NOLINTBEGIN(cppcoreguidelines-avoid-non-const-global-variables)
13volatile uint8_t g_wake_requested = 0;
14volatile bool g_main_loop_woke = false;
15// NOLINTEND(cppcoreguidelines-avoid-non-const-global-variables)
16
18
19} // namespace esphome
20
21#endif // USE_ESP8266
std::atomic< uint8_t > g_wake_requested
Definition wake.h:49
void ESPHOME_ALWAYS_INLINE wake_loop_impl()
Inline implementation — IRAM callers inline this directly.
volatile bool g_main_loop_woke
void IRAM_ATTR wake_loop_any_context()
IRAM_ATTR entry point for ISR callers — defined in wake_esp8266.cpp.
Platform-specific main loop wake primitives.