J. Nick Koston
e8a8add6c3
Remove duplicate wake code: socket_delay/socket_wake delegate to core wake mechanism
2026-04-04 12:48:15 -10:00
J. Nick Koston
18497d5a7f
Add backward-compat defines in require_wake_loop_threadsafe, remove pointless host socket consumption
2026-04-04 12:41:30 -10:00
J. Nick Koston
59969d4743
Simplify loop(): single yield_with_select_ call
2026-04-04 12:22:44 -10:00
J. Nick Koston
c74889de67
Fix clang-tidy: rename wake_loop_impl_ to wake_loop_impl (no trailing underscore on free functions)
2026-04-04 12:10:42 -10:00
J. Nick Koston
58ab4866a6
Document Zephyr as the only platform without wake
2026-04-04 11:59:04 -10:00
J. Nick Koston
36b3d35d15
Fix Zephyr build: add fallback wakeable_delay and wake_loop_threadsafe
2026-04-04 11:58:33 -10:00
J. Nick Koston
ac95bde627
Move RP2040 wakeable_delay to wake.cpp (file-scope state for alarm callback)
2026-04-04 11:49:22 -10:00
J. Nick Koston
113edd2076
Fix CI: remove redundant (void) in main_task.h, restore lwip_fast_select.h include for socket monitoring
2026-04-04 11:46:21 -10:00
J. Nick Koston
277c4f6343
Filter main_task.c and lwip_fast_select.c from platforms that don't need them
2026-04-04 11:45:44 -10:00
J. Nick Koston
1dc0559e20
Inline main_task notify helpers in header, simplify wake.h
2026-04-04 11:40:55 -10:00
J. Nick Koston
6dcdefe179
Move task notification helpers to main_task.c/h, deduplicate ESP32/LibreTiny in wake.h
2026-04-04 11:39:10 -10:00
J. Nick Koston
a1e6a89fc8
Share task handle between wake.h and lwip_fast_select via main_task.h
2026-04-04 11:36:49 -10:00
J. Nick Koston
36d2b78c18
Unify ESP32/LibreTiny wake: always use g_main_task_handle, remove lwip_fast_select dependency
2026-04-04 11:34:10 -10:00
J. Nick Koston
63b8275e23
Fix ISR safety: ESP32 without fast select needs xPortInIsrContext detection
2026-04-04 11:30:45 -10:00
J. Nick Koston
aa0e56bfde
Fix ESP32/LibreTiny without fast select: use FreeRTOS task notifications directly
2026-04-04 11:28:21 -10:00
J. Nick Koston
80ff9f365b
Fix wake.cpp: move includes outside namespace to fix cpptests build
2026-04-04 11:21:52 -10:00
J. Nick Koston
cb3791ae8a
Deduplicate g_main_loop_woke definition in wake.cpp
2026-04-04 11:18:54 -10:00
J. Nick Koston
e2cb5df6c8
Simplify host check in socket to_code: use CORE.is_host
2026-04-04 11:17:12 -10:00
J. Nick Koston
75a2b23bdb
Replace USE_SOCKET_SELECT_SUPPORT with USE_HOST
2026-04-04 11:16:41 -10:00
J. Nick Koston
5dd43bca2d
Simplify wake.h file doc
2026-04-04 11:11:13 -10:00
J. Nick Koston
7e8d3ba13e
Inline RP2040 wakeable_delay using function-local static + lambda callback
2026-04-04 11:08:41 -10:00
J. Nick Koston
0bf0fc7eb8
Inline ESP8266 wakeable_delay (no static state, 5 lines)
2026-04-04 11:07:41 -10:00
J. Nick Koston
aaead7b5eb
Move wakeable_delay into namespace internal to signal it's not public API
2026-04-04 11:07:01 -10:00
J. Nick Koston
95e8a22250
Fix wake_loop_isrsafe comment: ESP32 only, not LibreTiny
2026-04-04 11:03:07 -10:00
J. Nick Koston
ad3c92e3f7
Remove unused wakeable_delay on host
2026-04-04 11:01:11 -10:00
J. Nick Koston
edc5ec62e0
Fix socket to_code: USE_SOCKET_SELECT_SUPPORT only for BSD sockets on host
2026-04-04 10:59:58 -10:00
J. Nick Koston
f3778edc69
Clean up dead lwip code paths under USE_SOCKET_SELECT_SUPPORT (now host-only)
2026-04-04 10:56:30 -10:00
J. Nick Koston
4be95e274d
Fix host platform: use POSIX socket APIs instead of lwip_*
2026-04-04 10:55:25 -10:00
J. Nick Koston
843b63edb4
Move host wake_loop_threadsafe from application.cpp to wake.cpp
2026-04-04 10:53:15 -10:00
J. Nick Koston
d3586c76ba
Deduplicate wakeable_delay call in yield_with_select_
2026-04-04 10:52:24 -10:00
J. Nick Koston
8cbf3e354b
Define wakeable_delay on all platforms, simplify yield_with_select_
2026-04-04 10:49:22 -10:00
J. Nick Koston
eac783697a
Fix cpptests build: handle defines.h having both USE_ESP32 and USE_HOST
2026-04-04 10:48:30 -10:00
J. Nick Koston
ffb2fe5f10
Stop setting USE_SOCKET_SELECT_SUPPORT on fast-select platforms
...
USE_SOCKET_SELECT_SUPPORT now exclusively means 'host select() fallback'.
ESP32/LibreTiny use USE_LWIP_FAST_SELECT instead. This eliminates
all 'USE_SOCKET_SELECT_SUPPORT && !USE_LWIP_FAST_SELECT' guards.
2026-04-04 10:44:45 -10:00
J. Nick Koston
88d7198fa4
Add wakeable_delay for ESP32/LibreTiny using ulTaskNotifyTake
2026-04-04 10:40:14 -10:00
J. Nick Koston
bfad79f34c
Replace unreachable delay fallback with #error
2026-04-04 10:38:27 -10:00
J. Nick Koston
91bfa8d4fa
Make wake_loop_any_context available on all platforms including host
2026-04-04 10:37:35 -10:00
J. Nick Koston
72c7fc25b4
Restrict wake_loop_isrsafe to ESP32 only
2026-04-04 10:34:49 -10:00
J. Nick Koston
04b40f8f15
Clean up comments in application.h
2026-04-04 10:32:49 -10:00
J. Nick Koston
e372440ed2
[core] Move wake_loop out of socket component into core
...
Wake primitives (esp_schedule, __sev, FreeRTOS task notifications)
are platform SDK functions that don't depend on the socket/network
stack. Move them to esphome/core/wake.h/.cpp so they work
unconditionally on all platforms.
This eliminates the require_wake_loop_threadsafe() boilerplate,
the USE_WAKE_LOOP_THREADSAFE define, and the socket AUTO_LOAD
entries that 12 components needed just to use wake.
wake_loop_threadsafe() and wake_loop_any_context() now just work
on every platform without opt-in.
2026-04-04 10:32:32 -10:00
Clyde Stubbs
1a1725f958
[esp32] Clean build when sdkconfig options change ( #15439 )
2026-04-04 09:11:29 -04:00
J. Nick Koston
297f9c134f
[time] Use set_interval for CronTrigger instead of loop() ( #15433 )
2026-04-04 01:07:16 -10:00
J. Nick Koston
f51871fa6b
[total_daily_energy] Replace loop() with timeout-based midnight reset ( #15432 )
2026-04-04 00:37:50 -10:00
J. Nick Koston
9ee5089891
[time] Support */N syntax in cron expressions ( #15434 )
2026-04-04 00:30:41 -10:00
J. Nick Koston
b0d39aedd3
[hlw8012] Change periodic sensor reading logs to LOGV ( #15431 )
2026-04-04 00:30:29 -10:00
Clyde Stubbs
89de00e7ce
[online_image] Clear LVGL dsc when image size changes. ( #15360 )
2026-04-04 17:04:01 +11:00
alorente and clydebarrow
53b6528cc5
[epaper_spi] Allow runtime rotation change ( #15419 )
...
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com >
2026-04-04 16:02:15 +10:00
Boris Krivonog
16ae753317
[mitsubishi_cn105] Add climate component for Mitsubishi A/C units with CN105 connector (Part 2) ( #15358 )
2026-04-03 19:44:04 -10:00
J. Nick Koston
2337767c38
[modbus_controller] Fix format specifier warnings ( #15429 )
2026-04-03 16:37:31 -10:00
J. Nick Koston
4f2290d548
[web_server] Disable loop when no SSE clients are connected ( #15428 )
2026-04-03 16:37:20 -10:00
Clyde Stubbs
7ab26a4fe0
[ili9xxx][st7735] Add deprecation warnings ( #15416 )
2026-04-04 13:21:58 +11:00