diff options
| -rw-r--r-- | Cargo.toml | 12 | ||||
| -rw-r--r-- | cyw43-pio/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/rpi-pico-w/Cargo.toml | 18 | ||||
| -rw-r--r-- | rust-toolchain.toml | 2 | ||||
| -rw-r--r-- | src/ioctl.rs | 10 |
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" | |||
| 20 | defmt = { version = "0.3", optional = true } | 20 | defmt = { version = "0.3", optional = true } |
| 21 | log = { version = "0.4.17", optional = true } | 21 | log = { version = "0.4.17", optional = true } |
| 22 | 22 | ||
| 23 | cortex-m = "0.7.3" | 23 | cortex-m = "0.7.6" |
| 24 | cortex-m-rt = "0.7.0" | 24 | cortex-m-rt = "0.7.0" |
| 25 | futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } | 25 | futures = { 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" } | |||
| 28 | num_enum = { version = "0.5.7", default-features = false } | 28 | num_enum = { version = "0.5.7", default-features = false } |
| 29 | 29 | ||
| 30 | [patch.crates-io] | 30 | [patch.crates-io] |
| 31 | embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 31 | embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 32 | embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 32 | embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 33 | embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 33 | embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 34 | embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 34 | embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 35 | embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 35 | embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 36 | 36 | ||
| 37 | [workspace] | 37 | [workspace] |
| 38 | members = ["cyw43-pio"] | 38 | members = ["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] |
| 9 | cyw43 = { path = "../" } | 9 | cyw43 = { path = "../" } |
| 10 | embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "pio"] } | 10 | embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver"] } |
| 11 | pio-proc = "0.2" | 11 | pio-proc = "0.2" |
| 12 | pio = "0.2.1" | 12 | pio = "0.2.1" |
| 13 | defmt = "0.3" \ No newline at end of file | 13 | defmt = "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"] } | |||
| 9 | cyw43-pio = { path = "../../cyw43-pio" } | 9 | cyw43-pio = { path = "../../cyw43-pio" } |
| 10 | embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers", "executor-thread", "arch-cortex-m"] } | 10 | embassy-executor = { version = "0.1.0", features = ["defmt", "integrated-timers", "executor-thread", "arch-cortex-m"] } |
| 11 | embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] } | 11 | embassy-time = { version = "0.1.0", features = ["defmt", "defmt-timestamp-uptime"] } |
| 12 | embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver", "pio"] } | 12 | embassy-rp = { version = "0.1.0", features = ["defmt", "unstable-traits", "nightly", "unstable-pac", "time-driver"] } |
| 13 | embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "unstable-traits", "nightly"] } | 13 | embassy-net = { version = "0.1.0", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "unstable-traits", "nightly"] } |
| 14 | atomic-polyfill = "0.1.5" | 14 | atomic-polyfill = "0.1.5" |
| 15 | static_cell = "1.0" | 15 | static_cell = "1.0" |
| @@ -27,14 +27,14 @@ heapless = "0.7.15" | |||
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | [patch.crates-io] | 29 | [patch.crates-io] |
| 30 | embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 30 | embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 31 | embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 31 | embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 32 | embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 32 | embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 33 | embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 33 | embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 34 | embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 34 | embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 35 | embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 35 | embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 36 | embassy-net-driver = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 36 | embassy-net-driver = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 37 | embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "047ea9066f0d946fd4d706577b21df38fd3b1647" } | 37 | embassy-net-driver-channel = { git = "https://github.com/embassy-rs/embassy", rev = "03d6363d5af5dcaf21b52734994a466ca593d2b6" } |
| 38 | 38 | ||
| 39 | [profile.dev] | 39 | [profile.dev] |
| 40 | debug = 2 | 40 | debug = 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] |
| 4 | channel = "nightly-2023-04-02" | 4 | channel = "nightly-2023-04-18" |
| 5 | components = [ "rust-src", "rustfmt" ] | 5 | components = [ "rust-src", "rustfmt" ] |
| 6 | targets = [ | 6 | targets = [ |
| 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)] | ||
| 29 | struct Wakers { | 28 | struct Wakers { |
| 30 | control: WakerRegistration, | 29 | control: WakerRegistration, |
| 31 | runner: WakerRegistration, | 30 | runner: WakerRegistration, |
| 32 | } | 31 | } |
| 33 | 32 | ||
| 33 | impl Default for Wakers { | ||
| 34 | fn default() -> Self { | ||
| 35 | Self { | ||
| 36 | control: WakerRegistration::new(), | ||
| 37 | runner: WakerRegistration::new(), | ||
| 38 | } | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 34 | pub struct IoctlState { | 42 | pub struct IoctlState { |
| 35 | state: Cell<IoctlStateInner>, | 43 | state: Cell<IoctlStateInner>, |
| 36 | wakers: RefCell<Wakers>, | 44 | wakers: RefCell<Wakers>, |
