diff options
| author | Mathias <[email protected]> | 2022-10-24 12:14:26 +0200 |
|---|---|---|
| committer | Mathias <[email protected]> | 2022-10-24 12:14:26 +0200 |
| commit | 8d809c96ecf2fabf77f0fb72f2a59acd18306bf2 (patch) | |
| tree | da3e28e491bbaadbc448b9a021291e2164b7531e /embassy-time | |
| parent | 7152031229da19005e5b0d52c8c72d359d3e0daa (diff) | |
| parent | ce1cba761c2942b7faa27f4098487c6468784729 (diff) | |
Merge branch 'master' of https://github.com/embassy-rs/embassy into embassy-rp/flash
Diffstat (limited to 'embassy-time')
| -rw-r--r-- | embassy-time/Cargo.toml | 7 | ||||
| -rw-r--r-- | embassy-time/src/delay.rs | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/embassy-time/Cargo.toml b/embassy-time/Cargo.toml index 6d71e100f..c51a71d01 100644 --- a/embassy-time/Cargo.toml +++ b/embassy-time/Cargo.toml | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | name = "embassy-time" | 2 | name = "embassy-time" |
| 3 | version = "0.1.0" | 3 | version = "0.1.0" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | license = "MIT OR Apache-2.0" | ||
| 5 | 6 | ||
| 6 | 7 | ||
| 7 | [package.metadata.embassy_docs] | 8 | [package.metadata.embassy_docs] |
| @@ -105,8 +106,8 @@ defmt = { version = "0.3", optional = true } | |||
| 105 | log = { version = "0.4.14", optional = true } | 106 | log = { version = "0.4.14", optional = true } |
| 106 | 107 | ||
| 107 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" } | 108 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" } |
| 108 | embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.8", optional = true} | 109 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} |
| 109 | embedded-hal-async = { version = "0.1.0-alpha.1", optional = true} | 110 | embedded-hal-async = { version = "=0.1.0-alpha.2", optional = true} |
| 110 | 111 | ||
| 111 | futures-util = { version = "0.3.17", default-features = false } | 112 | futures-util = { version = "0.3.17", default-features = false } |
| 112 | embassy-macros = { version = "0.1.0", path = "../embassy-macros"} | 113 | embassy-macros = { version = "0.1.0", path = "../embassy-macros"} |
| @@ -117,4 +118,4 @@ cfg-if = "1.0.0" | |||
| 117 | # WASM dependencies | 118 | # WASM dependencies |
| 118 | wasm-bindgen = { version = "0.2.81", optional = true } | 119 | wasm-bindgen = { version = "0.2.81", optional = true } |
| 119 | js-sys = { version = "0.3", optional = true } | 120 | js-sys = { version = "0.3", optional = true } |
| 120 | wasm-timer = { version = "0.2.5", optional = true } \ No newline at end of file | 121 | wasm-timer = { version = "0.2.5", optional = true } |
diff --git a/embassy-time/src/delay.rs b/embassy-time/src/delay.rs index 0a7982963..ff6b6869a 100644 --- a/embassy-time/src/delay.rs +++ b/embassy-time/src/delay.rs | |||
| @@ -18,7 +18,7 @@ pub struct Delay; | |||
| 18 | mod eh1 { | 18 | mod eh1 { |
| 19 | use super::*; | 19 | use super::*; |
| 20 | 20 | ||
| 21 | impl embedded_hal_1::delay::blocking::DelayUs for Delay { | 21 | impl embedded_hal_1::delay::DelayUs for Delay { |
| 22 | type Error = core::convert::Infallible; | 22 | type Error = core::convert::Infallible; |
| 23 | 23 | ||
| 24 | fn delay_us(&mut self, us: u32) -> Result<(), Self::Error> { | 24 | fn delay_us(&mut self, us: u32) -> Result<(), Self::Error> { |
