Skip to main content

start_rtos

Macro start_rtos 

Source
macro_rules! start_rtos {
    ($peripherals:ident) => { ... };
}
Expand description

Starts the esp-rtos scheduler on TIMG1 for original ESP32 and SYSTIMER everywhere else. This registers the embassy time driver, so it must run before anything that uses embassy-time.

The scheduler uses FROM_CPU_INTR0 for context switching, so the macro consumes that singleton and hands back FROM_CPU_INTR1 for the interrupt executor.