Struct esp_idf_hal::delay::FreeRtos
source · pub struct FreeRtos;
Expand description
FreeRTOS-based delay provider for delays larger than 10 ms.
Delays bigger than 1000 /
TICK_RATE_HZ milliseconds (typically 10 ms) used in a
loop would starve the FreeRTOS IDLE tasks as they are low prio tasks and hence the
IDLE task’s watchdog could trigger.
This delayer avoids that by yielding to the OS during the delay.
Implementations§
Trait Implementations§
source§impl DelayNs for FreeRtos
impl DelayNs for FreeRtos
source§fn delay_ns(&mut self, ns: u32)
fn delay_ns(&mut self, ns: u32)
Pauses execution for at minimum
ns
nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.