Macro esp_ward::wait

source ·
macro_rules! wait {
    ($delay:ident, $time:expr) => { ... };
}
Expand description

Pauses the execution for a specified number of milliseconds using a delay provider.

§Arguments

  • $delay: The delay provider, typically from a HAL implementation.
  • $time: The number of milliseconds to pause.

§Examples

let mut delay = esp_hal::Delay::new();
esp_ward::wait!(delay, 1000); // pauses for 1 second