aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBob McWhirter <[email protected]>2021-11-15 11:08:51 -0500
committerBob McWhirter <[email protected]>2021-11-15 11:09:08 -0500
commitc2da49826345e82e7539fce3e96cce203253dc56 (patch)
tree952c7117c7d103c0247a85c2776556c378eeefd8 /examples
parent4e0a0f27febfb00c9b4ec42275ac6b83c98436ea (diff)
Update to defmt 3.0ish.
Lots of gitrevs deps.
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32h7/Cargo.toml25
-rw-r--r--examples/stm32l4/Cargo.toml19
-rw-r--r--examples/stm32u5/.cargo/config.toml4
-rw-r--r--examples/stm32u5/Cargo.toml19
-rw-r--r--examples/stm32u5/src/bin/boot.rs4
5 files changed, 24 insertions, 47 deletions
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml
index e83ee3585..6b51f2ab8 100644
--- a/examples/stm32h7/Cargo.toml
+++ b/examples/stm32h7/Cargo.toml
@@ -6,31 +6,22 @@ version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features] 8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18 9
19[dependencies] 10[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 11embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 12embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi", "net", "time-driver-tim2"] } 13embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32h743zi", "net", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 14embassy-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"] } 15embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] }
25embassy-macros = { path = "../../embassy-macros" } 16embassy-macros = { path = "../../embassy-macros" }
26 17
27defmt = "0.2.3" 18defmt = "0.3"
28defmt-rtt = "0.2.0" 19defmt-rtt = "0.3"
29 20
30cortex-m = "0.7.3" 21cortex-m = "0.7.3"
31cortex-m-rt = "0.7.0" 22cortex-m-rt = "0.7.0"
32embedded-hal = "0.2.6" 23embedded-hal = "0.2.6"
33panic-probe = { version = "0.2.0", features = ["print-defmt"] } 24panic-probe = { version = "0.3", features = ["print-defmt"] }
34futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 25futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
35rtt-target = { version = "0.3.1", features = ["cortex-m"] } 26rtt-target = { version = "0.3.1", features = ["cortex-m"] }
36heapless = { version = "0.7.5", default-features = false } 27heapless = { version = "0.7.5", default-features = false }
@@ -40,8 +31,8 @@ critical-section = "0.2.5"
40micromath = "2.0.0" 31micromath = "2.0.0"
41 32
42[dependencies.smoltcp] 33[dependencies.smoltcp]
43git = "https://github.com/smoltcp-rs/smoltcp" 34git = "https://github.com/bobmcwhirter/smoltcp"
44rev = "e4241510337e095b9d21136c5f58b2eaa1b78479" 35rev = "faf81d21daae16b650b16e59a8422a8283e8a302"
45default-features = false 36default-features = false
46features = [ 37features = [
47 "proto-ipv4", 38 "proto-ipv4",
diff --git a/examples/stm32l4/Cargo.toml b/examples/stm32l4/Cargo.toml
index 26d4cae48..c6862b211 100644
--- a/examples/stm32l4/Cargo.toml
+++ b/examples/stm32l4/Cargo.toml
@@ -6,29 +6,20 @@ version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features] 8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18 9
19[dependencies] 10[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 11embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt" ] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 12embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32l4s5vi", "time-driver-tim2"] } 13embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "unstable-pac", "stm32l4s5vi", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 14embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 15
25defmt = "0.2.3" 16defmt = "0.3"
26defmt-rtt = "0.2.0" 17defmt-rtt = "0.3"
27 18
28cortex-m = "0.7.3" 19cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 20cortex-m-rt = "0.7.0"
30embedded-hal = "0.2.6" 21embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features = ["print-defmt"] } 22panic-probe = { version = "0.3", features = ["print-defmt"] }
32futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 23futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3.1", features = ["cortex-m"] } 24rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.5", default-features = false } 25heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32u5/.cargo/config.toml b/examples/stm32u5/.cargo/config.toml
index 9f5e14801..826fd33f3 100644
--- a/examples/stm32u5/.cargo/config.toml
+++ b/examples/stm32u5/.cargo/config.toml
@@ -1,7 +1,9 @@
1[target.'cfg(all(target_arch = "arm", target_os = "none"))'] 1[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2# replace STM32F429ZITx with your chip as listed in `probe-run --list-chips` 2# replace STM32F429ZITx with your chip as listed in `probe-run --list-chips`
3#runner = "probe-run --chip STM32U585AIIx" 3#runner = "probe-run --chip STM32U585AIIx"
4runner = "/Users/bob/outboard-repos/probe-run/target/debug/probe-run-rp --chip STM32U585AIIx" 4#runner = "/Users/bob/outboard-repos/probe-run/target/debug/probe-run-rp --chip STM32U585AIIx"
5#runner = "/Users/bob/repos/probe-run/target/debug/probe-run --chip STM32U585AIIx"
6runner = "probe-run --chip STM32U585AIIx"
5 7
6[build] 8[build]
7target = "thumbv7em-none-eabi" 9target = "thumbv7em-none-eabi"
diff --git a/examples/stm32u5/Cargo.toml b/examples/stm32u5/Cargo.toml
index e84e1992f..a0138e1a5 100644
--- a/examples/stm32u5/Cargo.toml
+++ b/examples/stm32u5/Cargo.toml
@@ -6,29 +6,20 @@ version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features] 8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18 9
19[dependencies] 10[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 11embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 12embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32u585ai", "memory-x" ] } 13embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "unstable-pac", "stm32u585ai", "memory-x" ] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 14embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 15
25defmt = "0.2" 16defmt = "0.3"
26defmt-rtt = "0.2" 17defmt-rtt = "0.3"
27 18
28cortex-m = "0.7.3" 19cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 20cortex-m-rt = "0.7.0"
30embedded-hal = "0.2.6" 21embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features = ["print-defmt"] } 22panic-probe = { version = "0.3", features = ["print-defmt"] }
32futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 23futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3.1", features = ["cortex-m"] } 24rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.5", default-features = false } 25heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32u5/src/bin/boot.rs b/examples/stm32u5/src/bin/boot.rs
index 91eff735d..23cfc3061 100644
--- a/examples/stm32u5/src/bin/boot.rs
+++ b/examples/stm32u5/src/bin/boot.rs
@@ -12,5 +12,7 @@ use embassy_stm32 as _;
12fn main() -> ! { 12fn main() -> ! {
13 info!("Hello World!"); 13 info!("Hello World!");
14 14
15 loop {} 15 loop {
16 //defmt::info!("loop!");
17 }
16} 18}