aboutsummaryrefslogtreecommitdiff
path: root/embassy-time/src
diff options
context:
space:
mode:
authorScott Mabin <[email protected]>2024-02-18 17:01:09 +0000
committerScott Mabin <[email protected]>2024-02-18 17:01:09 +0000
commit20cd7d09f429be84481a314f6eb174bcfb82612a (patch)
treed71df2c7e01e363c8f4d137c94c692c4cd793eec /embassy-time/src
parent377e58e408f830f79171a470ba602b7d8bc525e4 (diff)
time: cloneable delay
Diffstat (limited to 'embassy-time/src')
-rw-r--r--embassy-time/src/delay.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-time/src/delay.rs b/embassy-time/src/delay.rs
index 7ef5961f0..f77859d4a 100644
--- a/embassy-time/src/delay.rs
+++ b/embassy-time/src/delay.rs
@@ -13,6 +13,7 @@ pub fn block_for(duration: Duration) {
13/// the amount provided, but accuracy can be affected by many factors, including interrupt usage. 13/// the amount provided, but accuracy can be affected by many factors, including interrupt usage.
14/// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently 14/// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently
15/// active driver. 15/// active driver.
16#[derive(Clone)]
16pub struct Delay; 17pub struct Delay;
17 18
18impl embedded_hal_1::delay::DelayNs for Delay { 19impl embedded_hal_1::delay::DelayNs for Delay {