mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 04:40:39 +00:00
time: cloneable delay
This commit is contained in:
parent
377e58e408
commit
20cd7d09f4
@ -13,6 +13,7 @@ pub fn block_for(duration: Duration) {
|
||||
/// the amount provided, but accuracy can be affected by many factors, including interrupt usage.
|
||||
/// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently
|
||||
/// active driver.
|
||||
#[derive(Clone)]
|
||||
pub struct Delay;
|
||||
|
||||
impl embedded_hal_1::delay::DelayNs for Delay {
|
||||
|
Loading…
x
Reference in New Issue
Block a user