aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2021-09-11 00:10:46 +0200
committerDario Nieuwenhuis <[email protected]>2021-09-11 01:35:23 +0200
commitf2623e7e9b03bc6539827e8c9d1a9cb6dd7ede2e (patch)
treeb2b97c894dc78a907455a6718b9122d461ec87e5 /examples
parent9082e5f6c5982e7d220f54c8e64e0dd27c6c579d (diff)
Update lots of deps
Diffstat (limited to 'examples')
-rw-r--r--examples/nrf/Cargo.toml8
-rw-r--r--examples/rp/Cargo.toml10
-rw-r--r--examples/std/Cargo.toml18
-rw-r--r--examples/std/src/serial_port.rs9
-rw-r--r--examples/stm32f0/Cargo.toml8
-rw-r--r--examples/stm32f4/Cargo.toml16
-rw-r--r--examples/stm32g0/Cargo.toml14
-rw-r--r--examples/stm32h7/Cargo.toml16
-rw-r--r--examples/stm32l0/Cargo.toml14
-rw-r--r--examples/stm32l4/Cargo.toml14
-rw-r--r--examples/stm32wb55/Cargo.toml14
-rw-r--r--examples/stm32wl55/Cargo.toml14
12 files changed, 76 insertions, 79 deletions
diff --git a/examples/nrf/Cargo.toml b/examples/nrf/Cargo.toml
index 0f932e25c..b71dfa0d4 100644
--- a/examples/nrf/Cargo.toml
+++ b/examples/nrf/Cargo.toml
@@ -21,12 +21,12 @@ embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "def
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "defmt-trace", "nrf52840", "time-driver-rtc1", "gpiote"] } 22embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "defmt-trace", "nrf52840", "time-driver-rtc1", "gpiote"] }
23 23
24defmt = "0.2.0" 24defmt = "0.2.3"
25defmt-rtt = "0.2.0" 25defmt-rtt = "0.2.0"
26 26
27cortex-m = { version = "0.7.1", features = ["inline-asm"] } 27cortex-m = { version = "0.7.3", features = ["inline-asm"] }
28cortex-m-rt = "0.7.0" 28cortex-m-rt = "0.7.0"
29embedded-hal = { version = "0.2.4" } 29embedded-hal = "0.2.6"
30panic-probe = { version = "0.2.0", features = ["print-defmt"] } 30panic-probe = { version = "0.2.0", features = ["print-defmt"] }
31futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 31futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
32rand = { version = "0.8.4", default-features = false } 32rand = { version = "0.8.4", default-features = false }
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml
index db222e071..d168c39fa 100644
--- a/examples/rp/Cargo.toml
+++ b/examples/rp/Cargo.toml
@@ -19,16 +19,16 @@ defmt-error = []
19[dependencies] 19[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] }
21embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "defmt-trace"] } 21embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "defmt-trace"] }
22atomic-polyfill = { version = "0.1.1" } 22atomic-polyfill = "0.1.3"
23 23
24defmt = "0.2.0" 24defmt = "0.2.3"
25defmt-rtt = "0.2.0" 25defmt-rtt = "0.2.0"
26 26
27cortex-m = { version = "0.7.1", features = ["inline-asm"] } 27cortex-m = { version = "0.7.3", features = ["inline-asm"] }
28cortex-m-rt = "0.7.0" 28cortex-m-rt = "0.7.0"
29embedded-hal = { version = "0.2.4" } 29embedded-hal = "0.2.6"
30panic-probe = { version = "0.2.0", features = ["print-defmt"] } 30panic-probe = { version = "0.2.0", features = ["print-defmt"] }
31futures = { version = "0.3.8", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } 31futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] }
32display-interface-spi = "0.4.1" 32display-interface-spi = "0.4.1"
33embedded-graphics = "0.7.1" 33embedded-graphics = "0.7.1"
34st7789 = "0.6.1" 34st7789 = "0.6.1"
diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml
index 34b8ebb67..3ba495e59 100644
--- a/examples/std/Cargo.toml
+++ b/examples/std/Cargo.toml
@@ -9,12 +9,12 @@ embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std",
9embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] } 9embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] }
10smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="e4241510337e095b9d21136c5f58b2eaa1b78479", default-features = false } 10smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="e4241510337e095b9d21136c5f58b2eaa1b78479", default-features = false }
11 11
12async-io = "1.3.1" 12async-io = "1.6.0"
13env_logger = "0.8.2" 13env_logger = "0.9.0"
14futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 14futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
15log = "0.4.11" 15log = "0.4.14"
16nix = "0.21.0" 16nix = "0.22.1"
17libc = "0.2.81" 17libc = "0.2.101"
18clap = { version = "3.0.0-beta.2", features = ["derive"] } 18clap = { version = "3.0.0-beta.4", features = ["derive"] }
19rand_core = { version = "0.6.0", features = ["std"] } 19rand_core = { version = "0.6.3", features = ["std"] }
20heapless = { version = "0.7.1", default-features = false } 20heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/std/src/serial_port.rs b/examples/std/src/serial_port.rs
index 7ac1b1edb..aadaeb81d 100644
--- a/examples/std/src/serial_port.rs
+++ b/examples/std/src/serial_port.rs
@@ -1,6 +1,6 @@
1use nix::errno::Errno;
1use nix::fcntl::OFlag; 2use nix::fcntl::OFlag;
2use nix::sys::termios; 3use nix::sys::termios;
3use nix::Error;
4use std::io; 4use std::io;
5use std::os::unix::io::{AsRawFd, RawFd}; 5use std::os::unix::io::{AsRawFd, RawFd};
6 6
@@ -63,9 +63,6 @@ impl io::Write for SerialPort {
63 } 63 }
64} 64}
65 65
66fn to_io_error(e: Error) -> io::Error { 66fn to_io_error(e: Errno) -> io::Error {
67 match e { 67 e.into()
68 Error::Sys(errno) => errno.into(),
69 e => io::Error::new(io::ErrorKind::InvalidInput, e),
70 }
71} 68}
diff --git a/examples/stm32f0/Cargo.toml b/examples/stm32f0/Cargo.toml
index d37391e4f..2db98488d 100644
--- a/examples/stm32f0/Cargo.toml
+++ b/examples/stm32f0/Cargo.toml
@@ -8,12 +8,12 @@ resolver = "2"
8# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9 9
10[dependencies] 10[dependencies]
11cortex-m = { version = "0.7.1", features = ["inline-asm"] } 11cortex-m = { version = "0.7.3", features = ["inline-asm"] }
12cortex-m-rt = "0.7.0" 12cortex-m-rt = "0.7.0"
13defmt = "0.2.0" 13defmt = "0.2.3"
14defmt-rtt = "0.2.0" 14defmt-rtt = "0.2.0"
15panic-probe = { version = "0.2.0" } 15panic-probe = "0.2.0"
16rtt-target = { version = "0.3", features = ["cortex-m"] } 16rtt-target = { version = "0.3.1", features = ["cortex-m"] }
17embassy = { path = "../../embassy", features = ["defmt"] } 17embassy = { path = "../../embassy", features = ["defmt"] }
18embassy-stm32 = { path = "../../embassy-stm32", features = ["defmt", "stm32f030f4", "time-driver-tim3"] } 18embassy-stm32 = { path = "../../embassy-stm32", features = ["defmt", "stm32f030f4", "time-driver-tim3"] }
19 19
diff --git a/examples/stm32f4/Cargo.toml b/examples/stm32f4/Cargo.toml
index 8a7f45877..ce3a26bbf 100644
--- a/examples/stm32f4/Cargo.toml
+++ b/examples/stm32f4/Cargo.toml
@@ -22,14 +22,14 @@ embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features =
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac", "memory-x", "time-driver-tim2"] } 22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac", "memory-x", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 24
25defmt = "0.2.0" 25defmt = "0.2.3"
26defmt-rtt = "0.2.0" 26defmt-rtt = "0.2.0"
27 27
28cortex-m = "0.7.1" 28cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 29cortex-m-rt = "0.7.0"
30embedded-hal = { version = "0.2.4" } 30embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features= ["print-defmt"] } 31panic-probe = { version = "0.2.0", features = ["print-defmt"] }
32futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 32futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3", features = ["cortex-m"] } 33rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.1", default-features = false } 34heapless = { version = "0.7.5", default-features = false }
35nb = { version = "1.0" } 35nb = "1.0.0"
diff --git a/examples/stm32g0/Cargo.toml b/examples/stm32g0/Cargo.toml
index 83f535b91..58a62f7be 100644
--- a/examples/stm32g0/Cargo.toml
+++ b/examples/stm32g0/Cargo.toml
@@ -22,13 +22,13 @@ embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features =
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "time-driver-tim2", "stm32g071rb", "unstable-pac"] } 22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "time-driver-tim2", "stm32g071rb", "unstable-pac"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 24
25defmt = "0.2.0" 25defmt = "0.2.3"
26defmt-rtt = "0.2.0" 26defmt-rtt = "0.2.0"
27 27
28cortex-m = "0.7.1" 28cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 29cortex-m-rt = "0.7.0"
30embedded-hal = { version = "0.2.4" } 30embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features= ["print-defmt"] } 31panic-probe = { version = "0.2.0", features = ["print-defmt"] }
32futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 32futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3", features = ["cortex-m"] } 33rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.1", default-features = false } 34heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml
index 1370cd9ab..94586b8ac 100644
--- a/examples/stm32h7/Cargo.toml
+++ b/examples/stm32h7/Cargo.toml
@@ -24,17 +24,17 @@ embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] } 24embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] }
25embassy-macros = { path = "../../embassy-macros" } 25embassy-macros = { path = "../../embassy-macros" }
26 26
27defmt = "0.2.0" 27defmt = "0.2.3"
28defmt-rtt = "0.2.0" 28defmt-rtt = "0.2.0"
29 29
30cortex-m = "0.7.1" 30cortex-m = "0.7.3"
31cortex-m-rt = "0.7.0" 31cortex-m-rt = "0.7.0"
32embedded-hal = { version = "0.2.4" } 32embedded-hal = "0.2.6"
33panic-probe = { version = "0.2.0", features= ["print-defmt"] } 33panic-probe = { version = "0.2.0", features = ["print-defmt"] }
34futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 34futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
35rtt-target = { version = "0.3", features = ["cortex-m"] } 35rtt-target = { version = "0.3.1", features = ["cortex-m"] }
36heapless = { version = "0.7.1", default-features = false } 36heapless = { version = "0.7.5", default-features = false }
37rand_core = { version = "0.6.2" } 37rand_core = "0.6.3"
38critical-section = "0.2.1" 38critical-section = "0.2.1"
39 39
40micromath = "2.0.0" 40micromath = "2.0.0"
diff --git a/examples/stm32l0/Cargo.toml b/examples/stm32l0/Cargo.toml
index 07b033c1e..7dfcdb0fe 100644
--- a/examples/stm32l0/Cargo.toml
+++ b/examples/stm32l0/Cargo.toml
@@ -23,13 +23,13 @@ embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24embassy-macros = { path = "../../embassy-macros" } 24embassy-macros = { path = "../../embassy-macros" }
25 25
26defmt = "0.2.0" 26defmt = "0.2.3"
27defmt-rtt = "0.2.0" 27defmt-rtt = "0.2.0"
28 28
29cortex-m = "0.7.1" 29cortex-m = "0.7.3"
30cortex-m-rt = "0.7.0" 30cortex-m-rt = "0.7.0"
31embedded-hal = { version = "0.2.4" } 31embedded-hal = "0.2.6"
32panic-probe = { version = "0.2.0", features= ["print-defmt"] } 32panic-probe = { version = "0.2.0", features = ["print-defmt"] }
33futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 33futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
34rtt-target = { version = "0.3", features = ["cortex-m"] } 34rtt-target = { version = "0.3.1", features = ["cortex-m"] }
35heapless = { version = "0.7.1", default-features = false } 35heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32l4/Cargo.toml b/examples/stm32l4/Cargo.toml
index 3fa6fa467..26d4cae48 100644
--- a/examples/stm32l4/Cargo.toml
+++ b/examples/stm32l4/Cargo.toml
@@ -22,16 +22,16 @@ embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features =
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32l4s5vi", "time-driver-tim2"] } 22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32l4s5vi", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 24
25defmt = "0.2.0" 25defmt = "0.2.3"
26defmt-rtt = "0.2.0" 26defmt-rtt = "0.2.0"
27 27
28cortex-m = "0.7.1" 28cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 29cortex-m-rt = "0.7.0"
30embedded-hal = { version = "0.2.4" } 30embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features= ["print-defmt"] } 31panic-probe = { version = "0.2.0", features = ["print-defmt"] }
32futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 32futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3", features = ["cortex-m"] } 33rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.1", default-features = false } 34heapless = { version = "0.7.5", default-features = false }
35 35
36micromath = "2.0.0" 36micromath = "2.0.0"
37 37
diff --git a/examples/stm32wb55/Cargo.toml b/examples/stm32wb55/Cargo.toml
index c12e489f7..3a6f63baf 100644
--- a/examples/stm32wb55/Cargo.toml
+++ b/examples/stm32wb55/Cargo.toml
@@ -22,13 +22,13 @@ embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features =
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wb55cc", "time-driver-tim2"] } 22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wb55cc", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 24
25defmt = "0.2.0" 25defmt = "0.2.3"
26defmt-rtt = "0.2.0" 26defmt-rtt = "0.2.0"
27 27
28cortex-m = "0.7.1" 28cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 29cortex-m-rt = "0.7.0"
30embedded-hal = { version = "0.2.4" } 30embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features= ["print-defmt"] } 31panic-probe = { version = "0.2.0", features = ["print-defmt"] }
32futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 32futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3", features = ["cortex-m"] } 33rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.1", default-features = false } 34heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32wl55/Cargo.toml b/examples/stm32wl55/Cargo.toml
index 1bdfe9bc9..d0c727862 100644
--- a/examples/stm32wl55/Cargo.toml
+++ b/examples/stm32wl55/Cargo.toml
@@ -22,13 +22,13 @@ embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features =
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wl55jc_cm4", "time-driver-tim2", "memory-x", "subghz"] } 22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wl55jc_cm4", "time-driver-tim2", "memory-x", "subghz"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 24
25defmt = "0.2.0" 25defmt = "0.2.3"
26defmt-rtt = "0.2.0" 26defmt-rtt = "0.2.0"
27 27
28cortex-m = "0.7.1" 28cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 29cortex-m-rt = "0.7.0"
30embedded-hal = { version = "0.2.4" } 30embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features= ["print-defmt"] } 31panic-probe = { version = "0.2.0", features = ["print-defmt"] }
32futures = { version = "0.3.8", default-features = false, features = ["async-await"] } 32futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3", features = ["cortex-m"] } 33rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.1", default-features = false } 34heapless = { version = "0.7.5", default-features = false }