mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 02:26:01 +00:00
6af723e87db44e506d2b177441d499339f153172
Enable instant wake on socket activity for RP2040 using ARM WFE/SEV hardware instructions, matching ESP8266's esp_delay/esp_schedule pattern. Previously, RP2040 used plain delay() in the main loop which could not be interrupted by incoming socket data. Now LWIP recv/accept callbacks call socket_wake() which sets a flag and sends a hardware event (__sev) to wake the main loop from __wfe() sleep immediately. The implementation uses a one-shot pico-sdk timer alarm for timeout (same pattern as ESP8266's os_timer_arm) combined with __wfe() for true hardware sleep between events.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
584 MiB
Languages
C++
56.1%
Python
43.3%
C
0.3%
JavaScript
0.2%
