aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkalkyl <[email protected]>2023-04-27 19:37:19 +0200
committerkalkyl <[email protected]>2023-04-27 19:37:19 +0200
commit4d551a586589b9fd8b5f92d2f98b90be4144154e (patch)
treea2c3fa2c33d7d59905ad06c9600dc8399b8f73ce
parent0c8e5f92c7ebe6fd148a986baaaa6ac746d939c2 (diff)
Update embassy
-rw-r--r--Cargo.toml12
-rw-r--r--cyw43-pio/Cargo.toml2
-rw-r--r--examples/rpi-pico-w/Cargo.toml18
-rw-r--r--rust-toolchain.toml2
-rw-r--r--src/ioctl.rs10
5 files changed, 26 insertions, 18 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4ea5d8b6f..c4872f423 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,7 @@ atomic-polyfill = "0.1.5"
20defmt = { version = "0.3", optional = true } 20defmt = { version = "0.3", optional = true }
21log = { version = "0.4.17", optional = true } 21log = { version = "0.4.17", optional = true }
22 22
23cortex-m = "0.7.3" 23cortex-m = "0.7.6"
24cortex-m-rt = "0.7.0" 24cortex-m-rt = "0.7.0"
25futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } 25futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] }
26 26
@@ -28,11 +28,11 @@ embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.10" }
28num_enum = { version = "0.5.7", default-features = false } 28num_enum = { version = "0.5.7", default-features = false }
29 29
30[patch.crates-io] 30[patch.crates-io]
31embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 31embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
32embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 32embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
33embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 33embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
34embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 34embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
35embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 35embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
36 36
37[workspace] 37[workspace]
38members = ["cyw43-pio"] 38members = ["cyw43-pio"]
diff --git a/cyw43-pio/Cargo.toml b/cyw43-pio/Cargo.toml
index 2fc6b7591..4ca227d3d 100644
--- a/cyw43-pio/Cargo.toml
+++ b/cyw43-pio/Cargo.toml
@@ -7,7 +7,7 @@ edition = "2021"
7 7
8[dependencies] 8[dependencies]
9cyw43 = { path = "../" } 9cyw43 = { path = "../" }
10embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "pio"] } 10embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver"] }
11pio-proc = "0.2" 11pio-proc = "0.2"
12pio = "0.2.1" 12pio = "0.2.1"
13defmt = "0.3" \ No newline at end of file 13defmt = "0.3" \ No newline at end of file
diff --git a/examples/rpi-pico-w/Cargo.toml b/examples/rpi-pico-w/Cargo.toml
index dca796e3d..970db089d 100644
--- a/examples/rpi-pico-w/Cargo.toml
+++ b/examples/rpi-pico-w/Cargo.toml
@@ -9,7 +9,7 @@ cyw43 = { path = "../../", features = ["defmt", "firmware-logs"] }
9cyw43-pio = { path = "../../cyw43-pio" } 9cyw43-pio = { path = "../../cyw43-pio" }
10embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers", "executor-thread", "arch-cortex-m"] } 10embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers", "executor-thread", "arch-cortex-m"] }
11embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] } 11embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] }
12embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "pio"] } 12embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver"] }
13embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "unstable-traits", "nightly"] } 13embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "unstable-traits", "nightly"] }
14atomic-polyfill = "0.1.5" 14atomic-polyfill = "0.1.5"
15static_cell = "1.0" 15static_cell = "1.0"
@@ -27,14 +27,14 @@ heapless = "0.7.15"
27 27
28 28
29[patch.crates-io] 29[patch.crates-io]
30embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 30embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
31embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 31embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
32embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 32embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
33embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 33embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
34embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 34embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
35embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 35embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
36embassy-net-driver = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 36embassy-net-driver = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
37embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } 37embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" }
38 38
39[profile.dev] 39[profile.dev]
40debug = 2 40debug = 2
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 885199792..2582e88f5 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,7 +1,7 @@
1# Before upgrading check that everything is available on all tier1 targets here: 1# Before upgrading check that everything is available on all tier1 targets here:
2# https://rust-lang.github.io/rustup-components-history 2# https://rust-lang.github.io/rustup-components-history
3[toolchain] 3[toolchain]
4channel = "nightly-2023-04-02" 4channel = "nightly-2023-04-18"
5components = [ "rust-src", "rustfmt" ] 5components = [ "rust-src", "rustfmt" ]
6targets = [ 6targets = [
7 "thumbv6m-none-eabi", 7 "thumbv6m-none-eabi",
diff --git a/src/ioctl.rs b/src/ioctl.rs
index 89b20a2d6..0fee1ad19 100644
--- a/src/ioctl.rs
+++ b/src/ioctl.rs
@@ -25,12 +25,20 @@ enum IoctlStateInner {
25 Done { resp_len: usize }, 25 Done { resp_len: usize },
26} 26}
27 27
28#[derive(Default)]
29struct Wakers { 28struct Wakers {
30 control: WakerRegistration, 29 control: WakerRegistration,
31 runner: WakerRegistration, 30 runner: WakerRegistration,
32} 31}
33 32
33impl Default for Wakers {
34 fn default() -> Self {
35 Self {
36 control: WakerRegistration::new(),
37 runner: WakerRegistration::new(),
38 }
39 }
40}
41
34pub struct IoctlState { 42pub struct IoctlState {
35 state: Cell<IoctlStateInner>, 43 state: Cell<IoctlStateInner>,
36 wakers: RefCell<Wakers>, 44 wakers: RefCell<Wakers>,