aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml4
-rw-r--r--examples/rpi-pico-w/Cargo.toml20
-rw-r--r--examples/rpi-pico-w/src/main.rs10
-rw-r--r--rust-toolchain.toml2
-rw-r--r--src/lib.rs2
5 files changed, 19 insertions, 19 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cb6aa0b29..30c0da07b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,6 +21,6 @@ cortex-m = "0.7.3"
21cortex-m-rt = "0.7.0" 21cortex-m-rt = "0.7.0"
22futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } 22futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] }
23 23
24embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.8" } 24embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.9" }
25embedded-hal-async = { version = "0.1.0-alpha.1" } 25embedded-hal-async = { version = "0.1.0-alpha.2" }
26num_enum = { version = "0.5.7", default-features = false } 26num_enum = { version = "0.5.7", default-features = false }
diff --git a/examples/rpi-pico-w/Cargo.toml b/examples/rpi-pico-w/Cargo.toml
index 53e72498b..e82d12eb9 100644
--- a/examples/rpi-pico-w/Cargo.toml
+++ b/examples/rpi-pico-w/Cargo.toml
@@ -8,8 +8,8 @@ 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-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", "time-driver"] }
12embassy-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", "unstable-traits", "nightly"] }
13atomic-polyfill = "0.1.5" 13atomic-polyfill = "0.1.5"
14static_cell = "1.0" 14static_cell = "1.0"
15 15
@@ -21,19 +21,19 @@ cortex-m = { version = "0.7.6", features = ["critical-section-single-core"]}
21cortex-m-rt = "0.7.0" 21cortex-m-rt = "0.7.0"
22futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } 22futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] }
23 23
24embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.8" } 24embedded-hal-1 = { package = "embedded-hal", version = "1.0.0-alpha.9" }
25embedded-hal-async = { version = "0.1.0-alpha.1" } 25embedded-hal-async = { version = "0.1.0-alpha.2" }
26embedded-io = { version = "0.3.0", features = ["async", "defmt"] } 26embedded-io = { version = "0.3.0", features = ["async", "defmt"] }
27heapless = "0.7.15" 27heapless = "0.7.15"
28 28
29 29
30[patch.crates-io] 30[patch.crates-io]
31embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } 31embassy-executor = { git = "https://github.com/embassy-rs/embassy", rev = "73208d524843ca451b4cbfdb06e35f1b85290f4c" }
32embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } 32embassy-time = { git = "https://github.com/embassy-rs/embassy", rev = "73208d524843ca451b4cbfdb06e35f1b85290f4c" }
33embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } 33embassy-futures = { git = "https://github.com/embassy-rs/embassy", rev = "73208d524843ca451b4cbfdb06e35f1b85290f4c" }
34embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } 34embassy-sync = { git = "https://github.com/embassy-rs/embassy", rev = "73208d524843ca451b4cbfdb06e35f1b85290f4c" }
35embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } 35embassy-rp = { git = "https://github.com/embassy-rs/embassy", rev = "73208d524843ca451b4cbfdb06e35f1b85290f4c" }
36embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "cb9f0ef5b800ce4a22cde1805e0eb88425f1e07b" } 36embassy-net = { git = "https://github.com/embassy-rs/embassy", rev = "73208d524843ca451b4cbfdb06e35f1b85290f4c" }
37 37
38[profile.dev] 38[profile.dev]
39debug = 2 39debug = 2
diff --git a/examples/rpi-pico-w/src/main.rs b/examples/rpi-pico-w/src/main.rs
index 986474ce3..0915ef6be 100644
--- a/examples/rpi-pico-w/src/main.rs
+++ b/examples/rpi-pico-w/src/main.rs
@@ -1,6 +1,6 @@
1#![no_std] 1#![no_std]
2#![no_main] 2#![no_main]
3#![feature(generic_associated_types, type_alias_impl_trait)] 3#![feature(type_alias_impl_trait)]
4 4
5use core::convert::Infallible; 5use core::convert::Infallible;
6use core::future::Future; 6use core::future::Future;
@@ -44,15 +44,15 @@ async fn main(spawner: Spawner) {
44 let p = embassy_rp::init(Default::default()); 44 let p = embassy_rp::init(Default::default());
45 45
46 // Include the WiFi firmware and Country Locale Matrix (CLM) blobs. 46 // Include the WiFi firmware and Country Locale Matrix (CLM) blobs.
47 let fw = include_bytes!("../../../firmware/43439A0.bin"); 47 //let fw = include_bytes!("../../../firmware/43439A0.bin");
48 let clm = include_bytes!("../../../firmware/43439A0_clm.bin"); 48 //let clm = include_bytes!("../../../firmware/43439A0_clm.bin");
49 49
50 // To make flashing faster for development, you may want to flash the firmwares independently 50 // To make flashing faster for development, you may want to flash the firmwares independently
51 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`: 51 // at hardcoded addresses, instead of baking them into the program with `include_bytes!`:
52 // probe-rs-cli download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000 52 // probe-rs-cli download 43439A0.bin --format bin --chip RP2040 --base-address 0x10100000
53 // probe-rs-cli download 43439A0.clm_blob --format bin --chip RP2040 --base-address 0x10140000 53 // probe-rs-cli download 43439A0.clm_blob --format bin --chip RP2040 --base-address 0x10140000
54 //let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) }; 54 let fw = unsafe { core::slice::from_raw_parts(0x10100000 as *const u8, 224190) };
55 //let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) }; 55 let clm = unsafe { core::slice::from_raw_parts(0x10140000 as *const u8, 4752) };
56 56
57 let pwr = Output::new(p.PIN_23, Level::Low); 57 let pwr = Output::new(p.PIN_23, Level::Low);
58 let cs = Output::new(p.PIN_25, Level::High); 58 let cs = Output::new(p.PIN_25, Level::High);
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 0fa7cf7bf..a35a11b82 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-2022-07-13" 4channel = "nightly-2022-09-22"
5components = [ "rust-src", "rustfmt" ] 5components = [ "rust-src", "rustfmt" ]
6targets = [ 6targets = [
7 "thumbv6m-none-eabi", 7 "thumbv6m-none-eabi",
diff --git a/src/lib.rs b/src/lib.rs
index d446313c0..2a3d4dee3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,7 +22,7 @@ use embassy_net::{PacketBoxExt, PacketBuf};
22use embassy_sync::blocking_mutex::raw::NoopRawMutex; 22use embassy_sync::blocking_mutex::raw::NoopRawMutex;
23use embassy_sync::channel::Channel; 23use embassy_sync::channel::Channel;
24use embassy_time::{block_for, Duration, Timer}; 24use embassy_time::{block_for, Duration, Timer};
25use embedded_hal_1::digital::blocking::OutputPin; 25use embedded_hal_1::digital::OutputPin;
26use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice}; 26use embedded_hal_async::spi::{SpiBusRead, SpiBusWrite, SpiDevice};
27 27
28use self::structs::*; 28use self::structs::*;