pub struct Delay { /* private fields */ }
Expand description
System timer (SysTick) as a delay provider.
Implementations
sourceimpl Delay
impl Delay
sourcepub fn new(syst: SYST, ahb_frequency: u32) -> Self
pub fn new(syst: SYST, ahb_frequency: u32) -> Self
Configures the system timer (SysTick) as a delay provider.
ahb_frequency
is a frequency of the AHB bus in Hz.
sourcepub fn with_source(
syst: SYST,
frequency: u32,
clock_source: SystClkSource
) -> Self
pub fn with_source(
syst: SYST,
frequency: u32,
clock_source: SystClkSource
) -> Self
Configures the system timer (SysTick) as a delay provider with a clock source.
frequency
is the frequency of your clock_source
in Hz.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Delay
impl Send for Delay
impl !Sync for Delay
impl Unpin for Delay
impl UnwindSafe for Delay
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more