ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
main_task.h File Reference

Go to the source code of this file.

Functions

 __attribute__ ((always_inline)) static inline void esphome_main_task_notify()
 Wake the main loop task from another FreeRTOS task.
 

Variables

TaskHandle_t esphome_main_task_handle
 Main loop task handle and wake helpers — shared between wake.h (C++) and lwip_fast_select.c (C).
 

Function Documentation

◆ __attribute__()

__attribute__ ( (always_inline) )

Wake the main loop task from another FreeRTOS task.

Wake the main loop task from an ISR. ISR-safe.

NOT ISR-safe. always_inline so callers placed in IRAM do not reference a flash-resident copy.

Definition at line 24 of file main_task.h.

Variable Documentation

◆ esphome_main_task_handle

TaskHandle_t esphome_main_task_handle
extern

Main loop task handle and wake helpers — shared between wake.h (C++) and lwip_fast_select.c (C).

esphome_main_task_handle is set once during Application::setup() via xTaskGetCurrentTaskHandle().

Definition at line 4 of file main_task.c.