aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml3
-rw-r--r--examples/rpi-pico-w/Cargo.toml20
-rw-r--r--src/lib.rs6
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]
11embassy-time = { version = "0.1.0" } 11embassy-time = { version = "0.1.0" }
12embassy-util = { version = "0.1.0" } 12embassy-sync = { version = "0.1.0" }
13embassy-futures = { version = "0.1.0" }
13embassy-net = { version = "0.1.0" } 14embassy-net = { version = "0.1.0" }
14atomic-polyfill = "0.1.5" 15atomic-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"
8cyw43 = { path = "../../", features = ["defmt"]} 8cyw43 = { path = "../../", features = ["defmt"]}
9embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers"] } 9embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers"] }
10embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] } 10embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] }
11embassy-util = { version = "0.1.0" }
12embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac"] } 11embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac"] }
13embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"] } 12embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"] }
14atomic-polyfill = "0.1.5" 13atomic-polyfill = "0.1.5"
@@ -29,19 +28,12 @@ heapless = "0.7.15"
29 28
30 29
31[patch.crates-io] 30[patch.crates-io]
32embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } 31embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" }
33embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } 32embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" }
34embassy-util = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } 33embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" }
35embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } 34embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" }
36embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "53fbd0efb3e77e1e3de948afde2b5bf1a5a9735f" } 35embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" }
37#embassy-executor = { path = "/home/dirbaio/embassy/embassy/embassy-executor" } 36embassy-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]
47debug = 2 39debug = 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;
17use core::task::Waker; 17use core::task::Waker;
18 18
19use atomic_polyfill::AtomicBool; 19use atomic_polyfill::AtomicBool;
20use embassy_futures::yield_now;
20use embassy_net::{PacketBoxExt, PacketBuf}; 21use embassy_net::{PacketBoxExt, PacketBuf};
22use embassy_sync::blocking_mutex::raw::NoopRawMutex;
23use embassy_sync::channel::Channel;
21use embassy_time::{block_for, Duration, Timer}; 24use embassy_time::{block_for, Duration, Timer};
22use embassy_util::blocking_mutex::raw::NoopRawMutex;
23use embassy_util::channel::mpmc::Channel;
24use embassy_util::yield_now;
25use embedded_hal_1::digital::blocking::OutputPin; 25use embedded_hal_1::digital::blocking::OutputPin;
26use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice}; 26use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice};
27 27