Struct stm32_hal2::delay::Delay [−][src]
pub struct Delay { /* fields omitted */ }System timer (SysTick) as a delay provider
Implementations
impl Delay[src]
impl Delay[src]pub fn new<C: ClockCfg>(syst: SYST, clocks: &C) -> Self[src]
Configures the system timer (SysTick) as a delay provider
pub fn delay_ms(&mut self, ms: u32)[src]
Delay using the Cortex-M systick for a certain duration, ms.
pub fn delay_us(&mut self, us: u32)[src]
Delay using the Cortex-M systick for a certain duration, µs. This is the core delay code all other functions, including the EH trait ones call indirectly.
pub fn free(self) -> SYST[src]
Releases the system timer (SysTick) resource