diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/nrf/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/rp/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/std/Cargo.toml | 6 | ||||
| -rw-r--r-- | examples/stm32f0/Cargo.toml | 16 | ||||
| -rw-r--r-- | examples/stm32f1/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/stm32f4/Cargo.toml | 20 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/can.rs | 7 | ||||
| -rw-r--r-- | examples/stm32f7/Cargo.toml | 27 | ||||
| -rw-r--r-- | examples/stm32g0/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/stm32h7/Cargo.toml | 25 | ||||
| -rw-r--r-- | examples/stm32l0/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/stm32l1/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/stm32l4/Cargo.toml | 19 | ||||
| -rw-r--r-- | examples/stm32u5/.cargo/config.toml | 4 | ||||
| -rw-r--r-- | examples/stm32u5/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/stm32u5/src/bin/boot.rs | 4 | ||||
| -rw-r--r-- | examples/stm32wb55/Cargo.toml | 21 | ||||
| -rw-r--r-- | examples/stm32wl55/Cargo.toml | 21 |
18 files changed, 89 insertions, 228 deletions
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" | |||
| 4 | name = "embassy-nrf-examples" | 4 | name = "embassy-nrf-examples" |
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | 6 | ||
| 7 | [features] | ||
| 8 | default = [ | ||
| 9 | "defmt-default", | ||
| 10 | ] | ||
| 11 | defmt-default = [] | ||
| 12 | defmt-trace = [] | ||
| 13 | defmt-debug = [] | ||
| 14 | defmt-info = [] | ||
| 15 | defmt-warn = [] | ||
| 16 | defmt-error = [] | ||
| 17 | |||
| 18 | 7 | ||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "defmt-trace", "nrf52840", "time-driver-rtc1", "gpiote"] } | 11 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote"] } |
| 23 | 12 | ||
| 24 | defmt = "0.2.3" | 13 | defmt = "0.3" |
| 25 | defmt-rtt = "0.2.0" | 14 | defmt-rtt = "0.3" |
| 26 | 15 | ||
| 27 | cortex-m = { version = "0.7.3", features = ["inline-asm"] } | 16 | cortex-m = { version = "0.7.3", features = ["inline-asm"] } |
| 28 | cortex-m-rt = "0.7.0" | 17 | cortex-m-rt = "0.7.0" |
| 29 | embedded-hal = "0.2.6" | 18 | embedded-hal = "0.2.6" |
| 30 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 19 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 31 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 20 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 32 | rand = { version = "0.8.4", default-features = false } | 21 | rand = { version = "0.8.4", default-features = false } |
| 33 | embedded-storage = "0.2.0" | 22 | embedded-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" | |||
| 4 | name = "embassy-rp-examples" | 4 | name = "embassy-rp-examples" |
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | 6 | ||
| 7 | [features] | ||
| 8 | default = [ | ||
| 9 | "defmt-default", | ||
| 10 | ] | ||
| 11 | defmt-default = [] | ||
| 12 | defmt-trace = [] | ||
| 13 | defmt-debug = [] | ||
| 14 | defmt-info = [] | ||
| 15 | defmt-warn = [] | ||
| 16 | defmt-error = [] | ||
| 17 | |||
| 18 | 7 | ||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "defmt-trace"] } | 10 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt"] } |
| 22 | atomic-polyfill = "0.1.5" | 11 | atomic-polyfill = "0.1.5" |
| 23 | 12 | ||
| 24 | defmt = "0.2.3" | 13 | defmt = "0.3" |
| 25 | defmt-rtt = "0.2.0" | 14 | defmt-rtt = "0.3" |
| 26 | 15 | ||
| 27 | cortex-m = { version = "0.7.3", features = ["inline-asm"] } | 16 | cortex-m = { version = "0.7.3", features = ["inline-asm"] } |
| 28 | cortex-m-rt = "0.7.0" | 17 | cortex-m-rt = "0.7.0" |
| 29 | embedded-hal = "0.2.6" | 18 | embedded-hal = "0.2.6" |
| 30 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 19 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 31 | futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } | 20 | futures = { version = "0.3.17", default-features = false, features = ["async-await", "cfg-target-has-atomic", "unstable"] } |
| 32 | display-interface-spi = "0.4.1" | 21 | display-interface-spi = "0.4.1" |
| 33 | embedded-graphics = "0.7.1" | 22 | embedded-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] |
| 8 | embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std", "time"] } | 8 | embassy = { version = "0.1.0", path = "../../embassy", features = ["log", "std", "time"] } |
| 9 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] } | 9 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features=["std", "log", "medium-ethernet", "tcp", "dhcpv4"] } |
| 10 | smoltcp = { git = "https://github.com/smoltcp-rs/smoltcp", rev="e4241510337e095b9d21136c5f58b2eaa1b78479", default-features = false } | ||
| 11 | 10 | ||
| 12 | async-io = "1.6.0" | 11 | async-io = "1.6.0" |
| 13 | env_logger = "0.9.0" | 12 | env_logger = "0.9.0" |
| @@ -18,3 +17,8 @@ libc = "0.2.101" | |||
| 18 | clap = { version = "3.0.0-beta.5", features = ["derive"] } | 17 | clap = { version = "3.0.0-beta.5", features = ["derive"] } |
| 19 | rand_core = { version = "0.6.3", features = ["std"] } | 18 | rand_core = { version = "0.6.3", features = ["std"] } |
| 20 | heapless = { version = "0.7.5", default-features = false } | 19 | heapless = { version = "0.7.5", default-features = false } |
| 20 | |||
| 21 | [dependencies.smoltcp] | ||
| 22 | git = "https://github.com/bobmcwhirter/smoltcp" | ||
| 23 | rev = "faf81d21daae16b650b16e59a8422a8283e8a302" | ||
| 24 | default-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] |
| 11 | cortex-m = { version = "0.7.3", features = ["inline-asm"] } | 11 | cortex-m = { version = "0.7.3", features = ["inline-asm"] } |
| 12 | cortex-m-rt = "0.7.0" | 12 | cortex-m-rt = "0.7.0" |
| 13 | defmt = "0.2.3" | 13 | defmt = "0.3" |
| 14 | defmt-rtt = "0.2.0" | 14 | defmt-rtt = "0.3" |
| 15 | panic-probe = "0.2.0" | 15 | panic-probe = "0.3" |
| 16 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 16 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 17 | embassy = { path = "../../embassy", features = ["defmt"] } | 17 | embassy = { path = "../../embassy", features = ["defmt"] } |
| 18 | embassy-stm32 = { path = "../../embassy-stm32", features = ["defmt", "memory-x", "stm32f030f4", "time-driver-tim3"] } | 18 | embassy-stm32 = { path = "../../embassy-stm32", features = ["defmt", "memory-x", "stm32f030f4", "time-driver-tim3"] } |
| 19 | 19 | ||
| 20 | [features] | ||
| 21 | default = [ | ||
| 22 | "defmt-default", | ||
| 23 | ] | ||
| 24 | defmt-default = [] | ||
| 25 | defmt-trace = [] | ||
| 26 | defmt-debug = [] | ||
| 27 | defmt-info = [] | ||
| 28 | defmt-warn = [] | ||
| 29 | defmt-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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f103c8", "unstable-pac", "memory-x", "time-driver-tim2"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32f103c8", "unstable-pac", "memory-x", "time-driver-tim2"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 13 | ||
| 25 | defmt = "0.2.3" | 14 | defmt = "0.3" |
| 26 | defmt-rtt = "0.2.0" | 15 | defmt-rtt = "0.3" |
| 27 | 16 | ||
| 28 | cortex-m = "0.7.3" | 17 | cortex-m = "0.7.3" |
| 29 | cortex-m-rt = "0.7.0" | 18 | cortex-m-rt = "0.7.0" |
| 30 | embedded-hal = "0.2.6" | 19 | embedded-hal = "0.2.6" |
| 31 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 32 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 33 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 22 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 34 | heapless = { version = "0.7.5", default-features = false } | 23 | heapless = { 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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | 8 | ||
| 19 | [dependencies] | 9 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 10 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 11 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32f429zi", "unstable-pac", "memory-x", "time-driver-tim2"] } | 12 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32f429zi", "unstable-pac", "memory-x", "time-driver-tim2"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 13 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 14 | ||
| 25 | defmt = "0.2.3" | 15 | defmt = "0.3" |
| 26 | defmt-rtt = "0.2.0" | 16 | defmt-rtt = "0.3" |
| 27 | 17 | ||
| 28 | cortex-m = "0.7.3" | 18 | cortex-m = "0.7.3" |
| 29 | cortex-m-rt = "0.7.0" | 19 | cortex-m-rt = "0.7.0" |
| 30 | embedded-hal = "0.2.6" | 20 | embedded-hal = "0.2.6" |
| 31 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 21 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 32 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 22 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 33 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 23 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 34 | heapless = { version = "0.7.5", default-features = false } | 24 | heapless = { 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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "net", "stm32f767zi", "unstable-pac", "time-driver-tim2"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "net", "stm32f767zi", "unstable-pac", "time-driver-tim2"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] } | 13 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] } |
| 25 | embassy-macros = { path = "../../embassy-macros" } | 14 | embassy-macros = { path = "../../embassy-macros" } |
| 26 | 15 | ||
| 27 | defmt = "0.2.3" | 16 | defmt = "0.3" |
| 28 | defmt-rtt = "0.2.0" | 17 | defmt-rtt = "0.3" |
| 29 | 18 | ||
| 30 | cortex-m = "0.7.3" | 19 | cortex-m = "0.7.3" |
| 31 | cortex-m-rt = "0.7.0" | 20 | cortex-m-rt = "0.7.0" |
| 32 | embedded-hal = "0.2.6" | 21 | embedded-hal = "0.2.6" |
| 33 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 22 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 34 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 23 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 35 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 24 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 36 | heapless = { version = "0.7.5", default-features = false } | 25 | heapless = { 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] |
| 43 | git = "https://github.com/smoltcp-rs/smoltcp" | 32 | git = "https://github.com/bobmcwhirter/smoltcp" |
| 44 | rev = "e4241510337e095b9d21136c5f58b2eaa1b78479" | 33 | rev = "faf81d21daae16b650b16e59a8422a8283e8a302" |
| 45 | default-features = false | 34 | default-features = false |
| 46 | features = [ | 35 | features = [ |
| 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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "time-driver-tim2", "stm32g071rb", "unstable-pac"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "time-driver-tim2", "stm32g071rb", "unstable-pac"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 13 | ||
| 25 | defmt = "0.2.3" | 14 | defmt = "0.3" |
| 26 | defmt-rtt = "0.2.0" | 15 | defmt-rtt = "0.3" |
| 27 | 16 | ||
| 28 | cortex-m = "0.7.3" | 17 | cortex-m = "0.7.3" |
| 29 | cortex-m-rt = "0.7.0" | 18 | cortex-m-rt = "0.7.0" |
| 30 | embedded-hal = "0.2.6" | 19 | embedded-hal = "0.2.6" |
| 31 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 32 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 33 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 22 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 34 | heapless = { version = "0.7.5", default-features = false } | 23 | heapless = { 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" | |||
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | 8 | [features] |
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | 9 | ||
| 19 | [dependencies] | 10 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 11 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 12 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32h743zi", "net", "time-driver-tim2"] } | 13 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32h743zi", "net", "time-driver-tim2"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 14 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] } | 15 | embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt", "tcp", "medium-ethernet", "pool-16"] } |
| 25 | embassy-macros = { path = "../../embassy-macros" } | 16 | embassy-macros = { path = "../../embassy-macros" } |
| 26 | 17 | ||
| 27 | defmt = "0.2.3" | 18 | defmt = "0.3" |
| 28 | defmt-rtt = "0.2.0" | 19 | defmt-rtt = "0.3" |
| 29 | 20 | ||
| 30 | cortex-m = "0.7.3" | 21 | cortex-m = "0.7.3" |
| 31 | cortex-m-rt = "0.7.0" | 22 | cortex-m-rt = "0.7.0" |
| 32 | embedded-hal = "0.2.6" | 23 | embedded-hal = "0.2.6" |
| 33 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 24 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 34 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 25 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 35 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 26 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 36 | heapless = { version = "0.7.5", default-features = false } | 27 | heapless = { version = "0.7.5", default-features = false } |
| @@ -40,8 +31,8 @@ critical-section = "0.2.5" | |||
| 40 | micromath = "2.0.0" | 31 | micromath = "2.0.0" |
| 41 | 32 | ||
| 42 | [dependencies.smoltcp] | 33 | [dependencies.smoltcp] |
| 43 | git = "https://github.com/smoltcp-rs/smoltcp" | 34 | git = "https://github.com/bobmcwhirter/smoltcp" |
| 44 | rev = "e4241510337e095b9d21136c5f58b2eaa1b78479" | 35 | rev = "faf81d21daae16b650b16e59a8422a8283e8a302" |
| 45 | default-features = false | 36 | default-features = false |
| 46 | features = [ | 37 | features = [ |
| 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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32l072cz", "time-driver-tim3"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32l072cz", "time-driver-tim3"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | embassy-macros = { path = "../../embassy-macros" } | 13 | embassy-macros = { path = "../../embassy-macros" } |
| 25 | 14 | ||
| @@ -27,13 +16,13 @@ embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["sx | |||
| 27 | lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] } | 16 | lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] } |
| 28 | lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] } | 17 | lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] } |
| 29 | 18 | ||
| 30 | defmt = "0.2.3" | 19 | defmt = "0.3" |
| 31 | defmt-rtt = "0.2.0" | 20 | defmt-rtt = "0.3" |
| 32 | 21 | ||
| 33 | cortex-m = "0.7.3" | 22 | cortex-m = "0.7.3" |
| 34 | cortex-m-rt = "0.7.0" | 23 | cortex-m-rt = "0.7.0" |
| 35 | embedded-hal = "0.2.6" | 24 | embedded-hal = "0.2.6" |
| 36 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 25 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 37 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 26 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 38 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 27 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 39 | heapless = { version = "0.7.5", default-features = false } | 28 | heapless = { 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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32l151cb-a", "time-driver-tim2", "memory-x"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32l151cb-a", "time-driver-tim2", "memory-x"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | embassy-macros = { path = "../../embassy-macros" } | 13 | embassy-macros = { path = "../../embassy-macros" } |
| 25 | 14 | ||
| 26 | defmt = "0.2.3" | 15 | defmt = "0.3" |
| 27 | defmt-rtt = "0.2.0" | 16 | defmt-rtt = "0.3" |
| 28 | 17 | ||
| 29 | cortex-m = "0.7.3" | 18 | cortex-m = "0.7.3" |
| 30 | cortex-m-rt = "0.7.0" | 19 | cortex-m-rt = "0.7.0" |
| 31 | embedded-hal = "0.2.6" | 20 | embedded-hal = "0.2.6" |
| 32 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 21 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 33 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 22 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 34 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 23 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 35 | heapless = { version = "0.7.5", default-features = false } | 24 | heapless = { 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" | |||
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | 8 | [features] |
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | 9 | ||
| 19 | [dependencies] | 10 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 11 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt" ] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 12 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32l4s5vi", "time-driver-tim2"] } | 13 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "unstable-pac", "stm32l4s5vi", "time-driver-tim2"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 14 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 15 | ||
| 25 | defmt = "0.2.3" | 16 | defmt = "0.3" |
| 26 | defmt-rtt = "0.2.0" | 17 | defmt-rtt = "0.3" |
| 27 | 18 | ||
| 28 | cortex-m = "0.7.3" | 19 | cortex-m = "0.7.3" |
| 29 | cortex-m-rt = "0.7.0" | 20 | cortex-m-rt = "0.7.0" |
| 30 | embedded-hal = "0.2.6" | 21 | embedded-hal = "0.2.6" |
| 31 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 22 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 32 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 23 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 33 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 24 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 34 | heapless = { version = "0.7.5", default-features = false } | 25 | heapless = { 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" |
| 4 | runner = "/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" | ||
| 6 | runner = "probe-run --chip STM32U585AIIx" | ||
| 5 | 7 | ||
| 6 | [build] | 8 | [build] |
| 7 | target = "thumbv7em-none-eabi" | 9 | target = "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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "unstable-pac", "stm32u585ai", "memory-x" ] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "unstable-pac", "stm32u585ai", "memory-x" ] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 13 | ||
| 25 | defmt = "0.2" | 14 | defmt = "0.3" |
| 26 | defmt-rtt = "0.2" | 15 | defmt-rtt = "0.3" |
| 27 | 16 | ||
| 28 | cortex-m = "0.7.3" | 17 | cortex-m = "0.7.3" |
| 29 | cortex-m-rt = "0.7.0" | 18 | cortex-m-rt = "0.7.0" |
| 30 | embedded-hal = "0.2.6" | 19 | embedded-hal = "0.2.6" |
| 31 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 32 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 33 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 22 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 34 | heapless = { version = "0.7.5", default-features = false } | 23 | heapless = { 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 _; | |||
| 12 | fn main() -> ! { | 12 | fn 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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wb55cc", "time-driver-tim2"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32wb55cc", "time-driver-tim2"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | 13 | ||
| 25 | defmt = "0.2.3" | 14 | defmt = "0.3" |
| 26 | defmt-rtt = "0.2.0" | 15 | defmt-rtt = "0.3" |
| 27 | 16 | ||
| 28 | cortex-m = "0.7.3" | 17 | cortex-m = "0.7.3" |
| 29 | cortex-m-rt = "0.7.0" | 18 | cortex-m-rt = "0.7.0" |
| 30 | embedded-hal = "0.2.6" | 19 | embedded-hal = "0.2.6" |
| 31 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 32 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 33 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 22 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 34 | heapless = { version = "0.7.5", default-features = false } | 23 | heapless = { 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" | |||
| 5 | version = "0.1.0" | 5 | version = "0.1.0" |
| 6 | resolver = "2" | 6 | resolver = "2" |
| 7 | 7 | ||
| 8 | [features] | ||
| 9 | default = [ | ||
| 10 | "defmt-default", | ||
| 11 | ] | ||
| 12 | defmt-default = [] | ||
| 13 | defmt-trace = [] | ||
| 14 | defmt-debug = [] | ||
| 15 | defmt-info = [] | ||
| 16 | defmt-warn = [] | ||
| 17 | defmt-error = [] | ||
| 18 | |||
| 19 | [dependencies] | 8 | [dependencies] |
| 20 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt", "defmt-trace"] } | 9 | embassy = { version = "0.1.0", path = "../../embassy", features = ["defmt"] } |
| 21 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } | 10 | embassy-traits = { version = "0.1.0", path = "../../embassy-traits", features = ["defmt"] } |
| 22 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "defmt-trace", "stm32wl55jc_cm4", "time-driver-tim2", "memory-x", "subghz", "unstable-pac"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["defmt", "stm32wl55jc_cm4", "time-driver-tim2", "memory-x", "subghz", "unstable-pac"] } |
| 23 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } | 12 | embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" } |
| 24 | embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["stm32wl", "time"] } | 13 | embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["stm32wl", "time"] } |
| 25 | 14 | ||
| 26 | lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] } | 15 | lorawan-device = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["async"] } |
| 27 | lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] } | 16 | lorawan-encoding = { git = "https://github.com/ivajloip/rust-lorawan.git", rev = "4bff2e0021103adfbccedcbf49dbcd0474adc4b2", default-features = false, features = ["default-crypto"] } |
| 28 | 17 | ||
| 29 | defmt = "0.2.3" | 18 | defmt = "0.3" |
| 30 | defmt-rtt = "0.2.0" | 19 | defmt-rtt = "0.3" |
| 31 | 20 | ||
| 32 | cortex-m = "0.7.3" | 21 | cortex-m = "0.7.3" |
| 33 | cortex-m-rt = "0.7.0" | 22 | cortex-m-rt = "0.7.0" |
| 34 | embedded-hal = "0.2.6" | 23 | embedded-hal = "0.2.6" |
| 35 | panic-probe = { version = "0.2.0", features = ["print-defmt"] } | 24 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 36 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 25 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 37 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } | 26 | rtt-target = { version = "0.3.1", features = ["cortex-m"] } |
| 38 | heapless = { version = "0.7.5", default-features = false } | 27 | heapless = { version = "0.7.5", default-features = false } |
