diff options
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | examples/rpi-pico-w/Cargo.toml | 20 | ||||
| -rw-r--r-- | src/lib.rs | 6 |
3 files changed, 11 insertions, 18 deletions
diff --git a/Cargo.toml b/Cargo.toml index c6120dac3..cb6aa0b29 100644 --- a/Cargo.toml +++ b/Cargo.toml | |||
| @@ -9,7 +9,8 @@ log = ["dep:log"] | |||
| 9 | 9 | ||
| 10 | [dependencies] | 10 | [dependencies] |
| 11 | embassy-time = { version = "0.1.0" } | 11 | embassy-time = { version = "0.1.0" } |
| 12 | embassy-util = { version = "0.1.0" } | 12 | embassy-sync = { version = "0.1.0" } |
| 13 | embassy-futures = { version = "0.1.0" } | ||
| 13 | embassy-net = { version = "0.1.0" } | 14 | embassy-net = { version = "0.1.0" } |
| 14 | atomic-polyfill = "0.1.5" | 15 | atomic-polyfill = "0.1.5" |
| 15 | 16 | ||
diff --git a/examples/rpi-pico-w/Cargo.toml b/examples/rpi-pico-w/Cargo.toml index 98a3d105d..53e72498b 100644 --- a/examples/rpi-pico-w/Cargo.toml +++ b/examples/rpi-pico-w/Cargo.toml | |||
| @@ -8,7 +8,6 @@ edition = "2021" | |||
| 8 | cyw43 = { path = "../../", features = ["defmt"]} | 8 | cyw43 = { path = "../../", features = ["defmt"]} |
| 9 | embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers"] } | 9 | embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers"] } |
| 10 | embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] } | 10 | embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] } |
| 11 | embassy-util = { version = "0.1.0" } | ||
| 12 | embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac"] } | 11 | embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac"] } |
| 13 | embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"] } | 12 | embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"] } |
| 14 | atomic-polyfill = "0.1.5" | 13 | atomic-polyfill = "0.1.5" |
| @@ -29,19 +28,12 @@ heapless = "0.7.15" | |||
| 29 | 28 | ||
| 30 | 29 | ||
| 31 | [patch.crates-io] | 30 | [patch.crates-io] |
| 32 | embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } | 31 | embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } |
| 33 | embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } | 32 | embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } |
| 34 | embassy-util = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } | 33 | embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } |
| 35 | embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } | 34 | embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } |
| 36 | embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } | 35 | embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } |
| 37 | #embassy-executor = { path = "/home/dirbaio/embassy/embassy/embassy-executor" } | 36 | embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } |
| 38 | #embassy-util = { path = "/home/dirbaio/embassy/embassy/embassy-util" } | ||
| 39 | #embassy-rp = { path = "/home/dirbaio/embassy/embassy/embassy-rp" } | ||
| 40 | #embassy-net = { path = "/home/dirbaio/embassy/embassy/embassy-net" } | ||
| 41 | #smoltcp = { path = "./smoltcp" } | ||
| 42 | |||
| 43 | #[patch."https://github.com/smoltcp-rs/smoltcp"] | ||
| 44 | #smoltcp = { path = "./smoltcp" } | ||
| 45 | 37 | ||
| 46 | [profile.dev] | 38 | [profile.dev] |
| 47 | debug = 2 | 39 | debug = 2 |
diff --git a/src/lib.rs b/src/lib.rs index af2821e52..1c49771b9 100644 --- a/src/lib.rs +++ b/src/lib.rs | |||
| @@ -17,11 +17,11 @@ use core::sync::atomic::Ordering; | |||
| 17 | use core::task::Waker; | 17 | use core::task::Waker; |
| 18 | 18 | ||
| 19 | use atomic_polyfill::AtomicBool; | 19 | use atomic_polyfill::AtomicBool; |
| 20 | use embassy_futures::yield_now; | ||
| 20 | use embassy_net::{PacketBoxExt, PacketBuf}; | 21 | use embassy_net::{PacketBoxExt, PacketBuf}; |
| 22 | use embassy_sync::blocking_mutex::raw::NoopRawMutex; | ||
| 23 | use embassy_sync::channel::Channel; | ||
| 21 | use embassy_time::{block_for, Duration, Timer}; | 24 | use embassy_time::{block_for, Duration, Timer}; |
| 22 | use embassy_util::blocking_mutex::raw::NoopRawMutex; | ||
| 23 | use embassy_util::channel::mpmc::Channel; | ||
| 24 | use embassy_util::yield_now; | ||
| 25 | use embedded_hal_1::digital::blocking::OutputPin; | 25 | use embedded_hal_1::digital::blocking::OutputPin; |
| 26 | use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice}; | 26 | use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice}; |
| 27 | 27 | ||
