aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-hal-common/Cargo.toml7
-rw-r--r--embassy-lora/Cargo.toml8
-rw-r--r--embassy-net/Cargo.toml11
-rw-r--r--embassy-nrf/Cargo.toml8
-rw-r--r--embassy-rp/Cargo.toml8
-rw-r--r--embassy-stm32/Cargo.toml10
-rw-r--r--embassy-stm32/src/can/bxcan.rs2
-rw-r--r--embassy-traits/Cargo.toml2
-rw-r--r--embassy/Cargo.toml8
-rw-r--r--examples/nrf/Cargo.toml21
-rw-r--r--examples/rp/Cargo.toml21
-rw-r--r--examples/std/Cargo.toml6
-rw-r--r--examples/stm32f0/Cargo.toml16
-rw-r--r--examples/stm32f1/Cargo.toml21
-rw-r--r--examples/stm32f4/Cargo.toml20
-rw-r--r--examples/stm32f4/src/bin/can.rs7
-rw-r--r--examples/stm32f7/Cargo.toml27
-rw-r--r--examples/stm32g0/Cargo.toml21
-rw-r--r--examples/stm32h7/Cargo.toml25
-rw-r--r--examples/stm32l0/Cargo.toml21
-rw-r--r--examples/stm32l1/Cargo.toml21
-rw-r--r--examples/stm32l4/Cargo.toml19
-rw-r--r--examples/stm32u5/.cargo/config.toml4
-rw-r--r--examples/stm32u5/Cargo.toml21
-rw-r--r--examples/stm32u5/src/bin/boot.rs4
-rw-r--r--examples/stm32wb55/Cargo.toml21
-rw-r--r--examples/stm32wl55/Cargo.toml21
27 files changed, 102 insertions, 279 deletions
diff --git a/embassy-hal-common/Cargo.toml b/embassy-hal-common/Cargo.toml
index 575007070..2028b0e0c 100644
--- a/embassy-hal-common/Cargo.toml
+++ b/embassy-hal-common/Cargo.toml
@@ -5,16 +5,11 @@ authors = ["Dario Nieuwenhuis <[email protected]>"]
5edition = "2018" 5edition = "2018"
6 6
7[features] 7[features]
8defmt-trace = [ ]
9defmt-debug = [ ]
10defmt-info = [ ]
11defmt-warn = [ ]
12defmt-error = [ ]
13 8
14[dependencies] 9[dependencies]
15embassy = { version = "0.1.0", path = "../embassy" } 10embassy = { version = "0.1.0", path = "../embassy" }
16 11
17defmt = { version = "0.2.3", optional = true } 12defmt = { version = "0.3", optional = true }
18log = { version = "0.4.14", optional = true } 13log = { version = "0.4.14", optional = true }
19cortex-m = "0.7.3" 14cortex-m = "0.7.3"
20usb-device = "0.2.8" 15usb-device = "0.2.8"
diff --git a/embassy-lora/Cargo.toml b/embassy-lora/Cargo.toml
index 00bd3b847..fa46d43f5 100644
--- a/embassy-lora/Cargo.toml
+++ b/embassy-lora/Cargo.toml
@@ -11,15 +11,9 @@ sx127x = []
11stm32wl = ["embassy-stm32", "embassy-stm32/subghz"] 11stm32wl = ["embassy-stm32", "embassy-stm32/subghz"]
12time = [] 12time = []
13 13
14defmt-trace = []
15defmt-debug = []
16defmt-info = []
17defmt-warn = []
18defmt-error = []
19
20[dependencies] 14[dependencies]
21 15
22defmt = { version = "0.2.3", optional = true } 16defmt = { version = "0.3", optional = true }
23log = { version = "0.4.14", optional = true } 17log = { version = "0.4.14", optional = true }
24 18
25embassy = { version = "0.1.0", path = "../embassy", default-features = false } 19embassy = { version = "0.1.0", path = "../embassy", default-features = false }
diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml
index 161a3946e..4b932ceb3 100644
--- a/embassy-net/Cargo.toml
+++ b/embassy-net/Cargo.toml
@@ -7,11 +7,6 @@ edition = "2018"
7[features] 7[features]
8default = ["pool-4"] 8default = ["pool-4"]
9std = [] 9std = []
10defmt-trace = []
11defmt-debug = []
12defmt-info = []
13defmt-warn = []
14defmt-error = []
15 10
16tcp = ["smoltcp/socket-tcp"] 11tcp = ["smoltcp/socket-tcp"]
17dhcpv4 = ["medium-ethernet", "smoltcp/socket-dhcpv4"] 12dhcpv4 = ["medium-ethernet", "smoltcp/socket-dhcpv4"]
@@ -25,7 +20,7 @@ pool-32 = []
25 20
26[dependencies] 21[dependencies]
27 22
28defmt = { version = "0.2.3", optional = true } 23defmt = { version = "0.3", optional = true }
29log = { version = "0.4.14", optional = true } 24log = { version = "0.4.14", optional = true }
30 25
31embassy = { version = "0.1.0", path = "../embassy" } 26embassy = { version = "0.1.0", path = "../embassy" }
@@ -39,8 +34,8 @@ futures = { version = "0.3.17", default-features = false, features =
39atomic-pool = "0.2.1" 34atomic-pool = "0.2.1"
40 35
41[dependencies.smoltcp] 36[dependencies.smoltcp]
42git = "https://github.com/smoltcp-rs/smoltcp" 37git = "https://github.com/bobmcwhirter/smoltcp"
43rev = "e4241510337e095b9d21136c5f58b2eaa1b78479" 38rev = "faf81d21daae16b650b16e59a8422a8283e8a302"
44default-features = false 39default-features = false
45features = [ 40features = [
46 "proto-ipv4", 41 "proto-ipv4",
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml
index 3ce174372..dae9f26ae 100644
--- a/embassy-nrf/Cargo.toml
+++ b/embassy-nrf/Cargo.toml
@@ -12,12 +12,6 @@ edition = "2018"
12# There are no plans to make this stable. 12# There are no plans to make this stable.
13unstable-pac = [] 13unstable-pac = []
14 14
15defmt-trace = [ ]
16defmt-debug = [ ]
17defmt-info = [ ]
18defmt-warn = [ ]
19defmt-error = [ ]
20
21nrf52805 = ["nrf52805-pac", "_ppi"] 15nrf52805 = ["nrf52805-pac", "_ppi"]
22nrf52810 = ["nrf52810-pac", "_ppi"] 16nrf52810 = ["nrf52810-pac", "_ppi"]
23nrf52811 = ["nrf52811-pac", "_ppi"] 17nrf52811 = ["nrf52811-pac", "_ppi"]
@@ -53,7 +47,7 @@ embassy = { version = "0.1.0", path = "../embassy" }
53embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["nrf"]} 47embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["nrf"]}
54embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" } 48embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
55 49
56defmt = { version = "0.2.3", optional = true } 50defmt = { version = "0.3", optional = true }
57log = { version = "0.4.14", optional = true } 51log = { version = "0.4.14", optional = true }
58cortex-m-rt = ">=0.6.15,<0.8" 52cortex-m-rt = ">=0.6.15,<0.8"
59cortex-m = "0.7.3" 53cortex-m = "0.7.3"
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml
index 21a19a632..be41f95eb 100644
--- a/embassy-rp/Cargo.toml
+++ b/embassy-rp/Cargo.toml
@@ -12,18 +12,12 @@ edition = "2018"
12# There are no plans to make this stable. 12# There are no plans to make this stable.
13unstable-pac = [] 13unstable-pac = []
14 14
15defmt-trace = [ ]
16defmt-debug = [ ]
17defmt-info = [ ]
18defmt-warn = [ ]
19defmt-error = [ ]
20
21[dependencies] 15[dependencies]
22embassy = { version = "0.1.0", path = "../embassy", features = [ "time-tick-1mhz" ] } 16embassy = { version = "0.1.0", path = "../embassy", features = [ "time-tick-1mhz" ] }
23embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" } 17embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
24embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["rp"]} 18embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["rp"]}
25atomic-polyfill = "0.1.5" 19atomic-polyfill = "0.1.5"
26defmt = { version = "0.2.3", optional = true } 20defmt = { version = "0.3", optional = true }
27log = { version = "0.4.14", optional = true } 21log = { version = "0.4.14", optional = true }
28cortex-m-rt = ">=0.6.15,<0.8" 22cortex-m-rt = ">=0.6.15,<0.8"
29cortex-m = "0.7.3" 23cortex-m = "0.7.3"
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml
index d6b0586c9..f074a6b05 100644
--- a/embassy-stm32/Cargo.toml
+++ b/embassy-stm32/Cargo.toml
@@ -12,7 +12,7 @@ embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
12embassy-traits = {version = "0.1.0", path = "../embassy-traits" } 12embassy-traits = {version = "0.1.0", path = "../embassy-traits" }
13embassy-net = { version = "0.1.0", path = "../embassy-net", default-features = false, optional = true } 13embassy-net = { version = "0.1.0", path = "../embassy-net", default-features = false, optional = true }
14 14
15defmt = { version = "0.2.3", optional = true } 15defmt = { version = "0.3", optional = true }
16log = { version = "0.4.14", optional = true } 16log = { version = "0.4.14", optional = true }
17cortex-m-rt = ">=0.6.15,<0.8" 17cortex-m-rt = ">=0.6.15,<0.8"
18cortex-m = "0.7.3" 18cortex-m = "0.7.3"
@@ -26,7 +26,8 @@ bare-metal = "1.0.0"
26atomic-polyfill = "0.1.5" 26atomic-polyfill = "0.1.5"
27stm32-metapac = { version = "0.1.0", path = "../stm32-metapac", features = ["rt"] } 27stm32-metapac = { version = "0.1.0", path = "../stm32-metapac", features = ["rt"] }
28vcell = { version = "0.1.3", optional = true } 28vcell = { version = "0.1.3", optional = true }
29bxcan = "0.5.1" 29bxcan = "0.6.2"
30
30seq-macro = "0.2.2" 31seq-macro = "0.2.2"
31 32
32cfg-if = "1.0.0" 33cfg-if = "1.0.0"
@@ -37,11 +38,6 @@ serde = { version = "1.0.130", features = [ "derive" ] }
37serde_yaml = "0.8.21" 38serde_yaml = "0.8.21"
38 39
39[features] 40[features]
40defmt-trace = [ ]
41defmt-debug = [ ]
42defmt-info = [ ]
43defmt-warn = [ ]
44defmt-error = [ ]
45sdmmc-rs = ["embedded-sdmmc"] 41sdmmc-rs = ["embedded-sdmmc"]
46net = ["embassy-net", "vcell"] 42net = ["embassy-net", "vcell"]
47memory-x = ["stm32-metapac/memory-x"] 43memory-x = ["stm32-metapac/memory-x"]
diff --git a/embassy-stm32/src/can/bxcan.rs b/embassy-stm32/src/can/bxcan.rs
index 191fc42a1..cc057b092 100644
--- a/embassy-stm32/src/can/bxcan.rs
+++ b/embassy-stm32/src/can/bxcan.rs
@@ -35,7 +35,7 @@ impl<'d, T: Instance + bxcan::Instance> Can<'d, T> {
35 35
36 Self { 36 Self {
37 phantom: PhantomData, 37 phantom: PhantomData,
38 can: bxcan::Can::new(peri), 38 can: bxcan::Can::builder(peri).enable(),
39 } 39 }
40 } 40 }
41} 41}
diff --git a/embassy-traits/Cargo.toml b/embassy-traits/Cargo.toml
index 9e23453a8..c98b583e5 100644
--- a/embassy-traits/Cargo.toml
+++ b/embassy-traits/Cargo.toml
@@ -8,5 +8,5 @@ edition = "2018"
8std = [] 8std = []
9 9
10[dependencies] 10[dependencies]
11defmt = { version = "0.2.3", optional = true } 11defmt = { version = "0.3", optional = true }
12embedded-hal = { version = "0.2.6", features = ["unproven"] } 12embedded-hal = { version = "0.2.6", features = ["unproven"] }
diff --git a/embassy/Cargo.toml b/embassy/Cargo.toml
index d531ce3f9..bbe657f40 100644
--- a/embassy/Cargo.toml
+++ b/embassy/Cargo.toml
@@ -23,16 +23,10 @@ time-tick-32768hz = ["time"]
23time-tick-1000hz = ["time"] 23time-tick-1000hz = ["time"]
24time-tick-1mhz = ["time"] 24time-tick-1mhz = ["time"]
25 25
26defmt-trace = []
27defmt-debug = []
28defmt-info = []
29defmt-warn = []
30defmt-error = []
31
32executor-agnostic = [] 26executor-agnostic = []
33 27
34[dependencies] 28[dependencies]
35defmt = { version = "0.2.3", optional = true } 29defmt = { version = "0.3", optional = true }
36log = { version = "0.4.14", optional = true } 30log = { version = "0.4.14", optional = true }
37 31
38cortex-m = "0.7.3" 32cortex-m = "0.7.3"
diff --git a/examples/nrf/Cargo.toml b/examples/nrf/Cargo.toml
index b89aa513f..5b4662b4c 100644
--- a/examples/nrf/Cargo.toml
+++ b/examples/nrf/Cargo.toml
@@ -4,30 +4,19 @@ edition = "2018"
4name = "embassy-nrf-examples" 4name = "embassy-nrf-examples"
5version = "0.1.0" 5version = "0.1.0"
6 6
7[features]
8default = [
9 "defmt-default",
10]
11defmt-default = []
12defmt-trace = []
13defmt-debug = []
14defmt-info = []
15defmt-warn = []
16defmt-error = []
17
18 7
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-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"] } 11embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote"] }
23 12
24defmt = "0.2.3" 13defmt = "0.3"
25defmt-rtt = "0.2.0" 14defmt-rtt = "0.3"
26 15
27cortex-m = { version = "0.7.3", features = ["inline-asm"] } 16cortex-m = { version = "0.7.3", features = ["inline-asm"] }
28cortex-m-rt = "0.7.0" 17cortex-m-rt = "0.7.0"
29embedded-hal = "0.2.6" 18embedded-hal = "0.2.6"
30panic-probe = { version = "0.2.0", features = ["print-defmt"] } 19panic-probe = { version = "0.3", features = ["print-defmt"] }
31futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 20futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
32rand = { version = "0.8.4", default-features = false } 21rand = { version = "0.8.4", default-features = false }
33embedded-storage = "0.2.0" 22embedded-storage = "0.2.0"
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml
index 9caa37179..37f41b8e8 100644
--- a/examples/rp/Cargo.toml
+++ b/examples/rp/Cargo.toml
@@ -4,30 +4,19 @@ edition = "2018"
4name = "embassy-rp-examples" 4name = "embassy-rp-examples"
5version = "0.1.0" 5version = "0.1.0"
6 6
7[features]
8default = [
9 "defmt-default",
10]
11defmt-default = []
12defmt-trace = []
13defmt-debug = []
14defmt-info = []
15defmt-warn = []
16defmt-error = []
17
18 7
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "defmt-trace"] } 10embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt"] }
22atomic-polyfill = "0.1.5" 11atomic-polyfill = "0.1.5"
23 12
24defmt = "0.2.3" 13defmt = "0.3"
25defmt-rtt = "0.2.0" 14defmt-rtt = "0.3"
26 15
27cortex-m = { version = "0.7.3", features = ["inline-asm"] } 16cortex-m = { version = "0.7.3", features = ["inline-asm"] }
28cortex-m-rt = "0.7.0" 17cortex-m-rt = "0.7.0"
29embedded-hal = "0.2.6" 18embedded-hal = "0.2.6"
30panic-probe = { version = "0.2.0", features = ["print-defmt"] } 19panic-probe = { version = "0.3", features = ["print-defmt"] }
31futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } 20futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] }
32display-interface-spi = "0.4.1" 21display-interface-spi = "0.4.1"
33embedded-graphics = "0.7.1" 22embedded-graphics = "0.7.1"
diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml
index 002d0487a..2e2f0bd1c 100644
--- a/examples/std/Cargo.toml
+++ b/examples/std/Cargo.toml
@@ -7,7 +7,6 @@ version = "0.1.0"
7[dependencies] 7[dependencies]
8embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std", "time"] } 8embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std", "time"] }
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 }
11 10
12async-io = "1.6.0" 11async-io = "1.6.0"
13env_logger = "0.9.0" 12env_logger = "0.9.0"
@@ -18,3 +17,8 @@ libc = "0.2.101"
18clap = { version = "3.0.0-beta.5", features = ["derive"] } 17clap = { version = "3.0.0-beta.5", features = ["derive"] }
19rand_core = { version = "0.6.3", features = ["std"] } 18rand_core = { version = "0.6.3", features = ["std"] }
20heapless = { version = "0.7.5", default-features = false } 19heapless = { version = "0.7.5", default-features = false }
20
21[dependencies.smoltcp]
22git = "https://github.com/bobmcwhirter/smoltcp"
23rev = "faf81d21daae16b650b16e59a8422a8283e8a302"
24default-features = false
diff --git a/examples/stm32f0/Cargo.toml b/examples/stm32f0/Cargo.toml
index e586748ab..dcc2e206c 100644
--- a/examples/stm32f0/Cargo.toml
+++ b/examples/stm32f0/Cargo.toml
@@ -10,20 +10,10 @@ resolver = "2"
10[dependencies] 10[dependencies]
11cortex-m = { version = "0.7.3", 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.3" 13defmt = "0.3"
14defmt-rtt = "0.2.0" 14defmt-rtt = "0.3"
15panic-probe = "0.2.0" 15panic-probe = "0.3"
16rtt-target = { version = "0.3.1", 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", "memory-x", "stm32f030f4", "time-driver-tim3"] } 18embassy-stm32 = { path = "../../embassy-stm32", features = ["defmt", "memory-x", "stm32f030f4", "time-driver-tim3"] }
19 19
20[features]
21default = [
22 "defmt-default",
23]
24defmt-default = []
25defmt-trace = []
26defmt-debug = []
27defmt-info = []
28defmt-warn = []
29defmt-error = []
diff --git a/examples/stm32f1/Cargo.toml b/examples/stm32f1/Cargo.toml
index 9b4e831ef..0edfacd91 100644
--- a/examples/stm32f1/Cargo.toml
+++ b/examples/stm32f1/Cargo.toml
@@ -5,30 +5,19 @@ name = "embassy-stm32f1-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f103c8", "unstable-pac", "memory-x", "time-driver-tim2"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32f103c8", "unstable-pac", "memory-x", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 13
25defmt = "0.2.3" 14defmt = "0.3"
26defmt-rtt = "0.2.0" 15defmt-rtt = "0.3"
27 16
28cortex-m = "0.7.3" 17cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 18cortex-m-rt = "0.7.0"
30embedded-hal = "0.2.6" 19embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features = ["print-defmt"] } 20panic-probe = { version = "0.3", features = ["print-defmt"] }
32futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 21futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3.1", features = ["cortex-m"] } 22rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.5", default-features = false } 23heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32f4/Cargo.toml b/examples/stm32f4/Cargo.toml
index ce3a26bbf..ef57acf01 100644
--- a/examples/stm32f4/Cargo.toml
+++ b/examples/stm32f4/Cargo.toml
@@ -5,30 +5,20 @@ name = "embassy-stm32f4-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18 8
19[dependencies] 9[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 10embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 11embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac", "memory-x", "time-driver-tim2"] } 12embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32f429zi", "unstable-pac", "memory-x", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 13embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 14
25defmt = "0.2.3" 15defmt = "0.3"
26defmt-rtt = "0.2.0" 16defmt-rtt = "0.3"
27 17
28cortex-m = "0.7.3" 18cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 19cortex-m-rt = "0.7.0"
30embedded-hal = "0.2.6" 20embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features = ["print-defmt"] } 21panic-probe = { version = "0.3", features = ["print-defmt"] }
32futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 22futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3.1", features = ["cortex-m"] } 23rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.5", default-features = false } 24heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32f4/src/bin/can.rs b/examples/stm32f4/src/bin/can.rs
index 21b9a6004..4c575aa87 100644
--- a/examples/stm32f4/src/bin/can.rs
+++ b/examples/stm32f4/src/bin/can.rs
@@ -26,12 +26,13 @@ fn main() -> ! {
26 26
27 let mut can = Can::new(p.CAN1, p.PA11, p.PA12); 27 let mut can = Can::new(p.CAN1, p.PA11, p.PA12);
28 28
29 can.modify_filters().enable_bank(0, Mask32::accept_all());
30
29 can.modify_config() 31 can.modify_config()
30 .set_bit_timing(0x001c0003) // http://www.bittiming.can-wiki.info/ 32 .set_bit_timing(0x001c0003) // http://www.bittiming.can-wiki.info/
31 .set_loopback(true) // Receive own frames 33 .set_loopback(true) // Receive own frames
32 .set_silent(true); 34 .set_silent(true)
33 can.modify_filters().enable_bank(0, Mask32::accept_all()); 35 .enable();
34 unwrap!(nb::block!(can.enable()));
35 36
36 let mut i: u8 = 0; 37 let mut i: u8 = 0;
37 loop { 38 loop {
diff --git a/examples/stm32f7/Cargo.toml b/examples/stm32f7/Cargo.toml
index f49a23e31..8d7710c44 100644
--- a/examples/stm32f7/Cargo.toml
+++ b/examples/stm32f7/Cargo.toml
@@ -5,32 +5,21 @@ name = "embassy-stm32f7-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "net", "stm32f767zi", "unstable-pac", "time-driver-tim2"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "net", "stm32f767zi", "unstable-pac", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 12embassy-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"] } 13embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] }
25embassy-macros = { path = "../../embassy-macros" } 14embassy-macros = { path = "../../embassy-macros" }
26 15
27defmt = "0.2.3" 16defmt = "0.3"
28defmt-rtt = "0.2.0" 17defmt-rtt = "0.3"
29 18
30cortex-m = "0.7.3" 19cortex-m = "0.7.3"
31cortex-m-rt = "0.7.0" 20cortex-m-rt = "0.7.0"
32embedded-hal = "0.2.6" 21embedded-hal = "0.2.6"
33panic-probe = { version = "0.2.0", features = ["print-defmt"] } 22panic-probe = { version = "0.3", features = ["print-defmt"] }
34futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 23futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
35rtt-target = { version = "0.3.1", features = ["cortex-m"] } 24rtt-target = { version = "0.3.1", features = ["cortex-m"] }
36heapless = { version = "0.7.5", default-features = false } 25heapless = { version = "0.7.5", default-features = false }
@@ -40,8 +29,8 @@ critical-section = "0.2.3"
40 29
41 30
42[dependencies.smoltcp] 31[dependencies.smoltcp]
43git = "https://github.com/smoltcp-rs/smoltcp" 32git = "https://github.com/bobmcwhirter/smoltcp"
44rev = "e4241510337e095b9d21136c5f58b2eaa1b78479" 33rev = "faf81d21daae16b650b16e59a8422a8283e8a302"
45default-features = false 34default-features = false
46features = [ 35features = [
47 "proto-ipv4", 36 "proto-ipv4",
diff --git a/examples/stm32g0/Cargo.toml b/examples/stm32g0/Cargo.toml
index 58a62f7be..c7f5d41bb 100644
--- a/examples/stm32g0/Cargo.toml
+++ b/examples/stm32g0/Cargo.toml
@@ -5,30 +5,19 @@ name = "embassy-stm32g0-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "time-driver-tim2", "stm32g071rb", "unstable-pac"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "time-driver-tim2", "stm32g071rb", "unstable-pac"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 13
25defmt = "0.2.3" 14defmt = "0.3"
26defmt-rtt = "0.2.0" 15defmt-rtt = "0.3"
27 16
28cortex-m = "0.7.3" 17cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 18cortex-m-rt = "0.7.0"
30embedded-hal = "0.2.6" 19embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features = ["print-defmt"] } 20panic-probe = { version = "0.3", features = ["print-defmt"] }
32futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 21futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3.1", features = ["cortex-m"] } 22rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.5", default-features = false } 23heapless = { version = "0.7.5", default-features = false }
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/stm32l0/Cargo.toml b/examples/stm32l0/Cargo.toml
index c9d94496d..70493b469 100644
--- a/examples/stm32l0/Cargo.toml
+++ b/examples/stm32l0/Cargo.toml
@@ -5,21 +5,10 @@ name = "embassy-stm32l0-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32l072cz", "time-driver-tim3"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32l072cz", "time-driver-tim3"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24embassy-macros = { path = "../../embassy-macros" } 13embassy-macros = { path = "../../embassy-macros" }
25 14
@@ -27,13 +16,13 @@ embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["sx
27lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] } 16lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] }
28lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] } 17lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] }
29 18
30defmt = "0.2.3" 19defmt = "0.3"
31defmt-rtt = "0.2.0" 20defmt-rtt = "0.3"
32 21
33cortex-m = "0.7.3" 22cortex-m = "0.7.3"
34cortex-m-rt = "0.7.0" 23cortex-m-rt = "0.7.0"
35embedded-hal = "0.2.6" 24embedded-hal = "0.2.6"
36panic-probe = { version = "0.2.0", features = ["print-defmt"] } 25panic-probe = { version = "0.3", features = ["print-defmt"] }
37futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 26futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
38rtt-target = { version = "0.3.1", features = ["cortex-m"] } 27rtt-target = { version = "0.3.1", features = ["cortex-m"] }
39heapless = { version = "0.7.5", default-features = false } 28heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32l1/Cargo.toml b/examples/stm32l1/Cargo.toml
index e4dd7186a..f9d3b29ea 100644
--- a/examples/stm32l1/Cargo.toml
+++ b/examples/stm32l1/Cargo.toml
@@ -5,31 +5,20 @@ name = "embassy-stm32l1-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32l151cb-a", "time-driver-tim2", "memory-x"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32l151cb-a", "time-driver-tim2", "memory-x"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24embassy-macros = { path = "../../embassy-macros" } 13embassy-macros = { path = "../../embassy-macros" }
25 14
26defmt = "0.2.3" 15defmt = "0.3"
27defmt-rtt = "0.2.0" 16defmt-rtt = "0.3"
28 17
29cortex-m = "0.7.3" 18cortex-m = "0.7.3"
30cortex-m-rt = "0.7.0" 19cortex-m-rt = "0.7.0"
31embedded-hal = "0.2.6" 20embedded-hal = "0.2.6"
32panic-probe = { version = "0.2.0", features = ["print-defmt"] } 21panic-probe = { version = "0.3", features = ["print-defmt"] }
33futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 22futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
34rtt-target = { version = "0.3.1", features = ["cortex-m"] } 23rtt-target = { version = "0.3.1", features = ["cortex-m"] }
35heapless = { version = "0.7.5", default-features = false } 24heapless = { version = "0.7.5", default-features = false }
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..1a5facdab 100644
--- a/examples/stm32u5/Cargo.toml
+++ b/examples/stm32u5/Cargo.toml
@@ -5,30 +5,19 @@ name = "embassy-stm32u5-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-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" ] } 11embassy-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" } 12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 13
25defmt = "0.2" 14defmt = "0.3"
26defmt-rtt = "0.2" 15defmt-rtt = "0.3"
27 16
28cortex-m = "0.7.3" 17cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 18cortex-m-rt = "0.7.0"
30embedded-hal = "0.2.6" 19embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features = ["print-defmt"] } 20panic-probe = { version = "0.3", features = ["print-defmt"] }
32futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 21futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3.1", features = ["cortex-m"] } 22rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.5", default-features = false } 23heapless = { 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}
diff --git a/examples/stm32wb55/Cargo.toml b/examples/stm32wb55/Cargo.toml
index 3a6f63baf..1b03bd486 100644
--- a/examples/stm32wb55/Cargo.toml
+++ b/examples/stm32wb55/Cargo.toml
@@ -5,30 +5,19 @@ name = "embassy-stm32wb55-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wb55cc", "time-driver-tim2"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32wb55cc", "time-driver-tim2"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24 13
25defmt = "0.2.3" 14defmt = "0.3"
26defmt-rtt = "0.2.0" 15defmt-rtt = "0.3"
27 16
28cortex-m = "0.7.3" 17cortex-m = "0.7.3"
29cortex-m-rt = "0.7.0" 18cortex-m-rt = "0.7.0"
30embedded-hal = "0.2.6" 19embedded-hal = "0.2.6"
31panic-probe = { version = "0.2.0", features = ["print-defmt"] } 20panic-probe = { version = "0.3", features = ["print-defmt"] }
32futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 21futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
33rtt-target = { version = "0.3.1", features = ["cortex-m"] } 22rtt-target = { version = "0.3.1", features = ["cortex-m"] }
34heapless = { version = "0.7.5", default-features = false } 23heapless = { version = "0.7.5", default-features = false }
diff --git a/examples/stm32wl55/Cargo.toml b/examples/stm32wl55/Cargo.toml
index d92f7aa00..00b46696a 100644
--- a/examples/stm32wl55/Cargo.toml
+++ b/examples/stm32wl55/Cargo.toml
@@ -5,34 +5,23 @@ name = "embassy-stm32wl55-examples"
5version = "0.1.0" 5version = "0.1.0"
6resolver = "2" 6resolver = "2"
7 7
8[features]
9default = [
10 "defmt-default",
11]
12defmt-default = []
13defmt-trace = []
14defmt-debug = []
15defmt-info = []
16defmt-warn = []
17defmt-error = []
18
19[dependencies] 8[dependencies]
20embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } 9embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] }
21embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } 10embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] }
22embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wl55jc_cm4", "time-driver-tim2", "memory-x", "subghz", "unstable-pac"] } 11embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32wl55jc_cm4", "time-driver-tim2", "memory-x", "subghz", "unstable-pac"] }
23embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } 12embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
24embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["stm32wl", "time"] } 13embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["stm32wl", "time"] }
25 14
26lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] } 15lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] }
27lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] } 16lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] }
28 17
29defmt = "0.2.3" 18defmt = "0.3"
30defmt-rtt = "0.2.0" 19defmt-rtt = "0.3"
31 20
32cortex-m = "0.7.3" 21cortex-m = "0.7.3"
33cortex-m-rt = "0.7.0" 22cortex-m-rt = "0.7.0"
34embedded-hal = "0.2.6" 23embedded-hal = "0.2.6"
35panic-probe = { version = "0.2.0", features = ["print-defmt"] } 24panic-probe = { version = "0.3", features = ["print-defmt"] }
36futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 25futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
37rtt-target = { version = "0.3.1", features = ["cortex-m"] } 26rtt-target = { version = "0.3.1", features = ["cortex-m"] }
38heapless = { version = "0.7.5", default-features = false } 27heapless = { version = "0.7.5", default-features = false }