aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-nrf-examples/.cargo/config2
-rw-r--r--embassy-nrf-examples/Cargo.toml4
-rw-r--r--embassy-nrf-examples/src/example_common.rs14
-rw-r--r--embassy-nrf/Cargo.toml2
-rw-r--r--embassy-stm32f4-examples/.cargo/config2
-rw-r--r--embassy-stm32f4-examples/Cargo.toml4
-rw-r--r--embassy-stm32f4-examples/src/example_common.rs14
-rw-r--r--embassy-stm32f4/Cargo.toml2
-rw-r--r--embassy/Cargo.toml2
9 files changed, 23 insertions, 23 deletions
diff --git a/embassy-nrf-examples/.cargo/config b/embassy-nrf-examples/.cargo/config
index 591288879..2bfb098ef 100644
--- a/embassy-nrf-examples/.cargo/config
+++ b/embassy-nrf-examples/.cargo/config
@@ -1,5 +1,5 @@
1[target.'cfg(all(target_arch = "arm", target_os = "none"))'] 1[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2runner = "probe-run --chip nRF52840_xxAA --defmt" 2runner = "probe-run --chip nRF52840_xxAA"
3 3
4rustflags = [ 4rustflags = [
5 # LLD (shipped with the Rust toolchain) is used as the default linker 5 # LLD (shipped with the Rust toolchain) is used as the default linker
diff --git a/embassy-nrf-examples/Cargo.toml b/embassy-nrf-examples/Cargo.toml
index 21f0bdd95..364fd8a51 100644
--- a/embassy-nrf-examples/Cargo.toml
+++ b/embassy-nrf-examples/Cargo.toml
@@ -20,8 +20,8 @@ defmt-error = []
20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } 20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] }
21embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] } 21embassy-nrf = { version = "0.1.0", path = "../embassy-nrf", features = ["defmt", "defmt-trace", "52840"] }
22 22
23defmt = "0.1.3" 23defmt = "0.2.0"
24defmt-rtt = "0.1.0" 24defmt-rtt = "0.2.0"
25 25
26cortex-m = "0.7.1" 26cortex-m = "0.7.1"
27cortex-m-rt = "0.6.13" 27cortex-m-rt = "0.6.13"
diff --git a/embassy-nrf-examples/src/example_common.rs b/embassy-nrf-examples/src/example_common.rs
index 60bb02082..d16964d4f 100644
--- a/embassy-nrf-examples/src/example_common.rs
+++ b/embassy-nrf-examples/src/example_common.rs
@@ -8,11 +8,11 @@ pub use defmt::*;
8 8
9use core::sync::atomic::{AtomicUsize, Ordering}; 9use core::sync::atomic::{AtomicUsize, Ordering};
10 10
11#[defmt::timestamp] 11defmt::timestamp! {"{=u64}", {
12fn timestamp() -> u64 { 12 static COUNT: AtomicUsize = AtomicUsize::new(0);
13 static COUNT: AtomicUsize = AtomicUsize::new(0); 13 // NOTE(no-CAS) `timestamps` runs with interrupts disabled
14 // NOTE(no-CAS) `timestamps` runs with interrupts disabled 14 let n = COUNT.load(Ordering::Relaxed);
15 let n = COUNT.load(Ordering::Relaxed); 15 COUNT.store(n + 1, Ordering::Relaxed);
16 COUNT.store(n + 1, Ordering::Relaxed); 16 n as u64
17 n as u64 17 }
18} 18}
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml
index 239aa3c41..ddd2dc31a 100644
--- a/embassy-nrf/Cargo.toml
+++ b/embassy-nrf/Cargo.toml
@@ -21,7 +21,7 @@ defmt-error = [ ]
21[dependencies] 21[dependencies]
22embassy = { version = "0.1.0", path = "../embassy" } 22embassy = { version = "0.1.0", path = "../embassy" }
23 23
24defmt = { version = "0.1.3", optional = true } 24defmt = { version = "0.2.0", optional = true }
25log = { version = "0.4.11", optional = true } 25log = { version = "0.4.11", optional = true }
26cortex-m-rt = "0.6.13" 26cortex-m-rt = "0.6.13"
27cortex-m = "0.7.1" 27cortex-m = "0.7.1"
diff --git a/embassy-stm32f4-examples/.cargo/config b/embassy-stm32f4-examples/.cargo/config
index 836853988..3ccca879d 100644
--- a/embassy-stm32f4-examples/.cargo/config
+++ b/embassy-stm32f4-examples/.cargo/config
@@ -1,5 +1,5 @@
1[target.'cfg(all(target_arch = "arm", target_os = "none"))'] 1[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2runner = "probe-run --chip STM32F401CCUx --defmt" 2runner = "probe-run --chip STM32F401CCUx"
3 3
4rustflags = [ 4rustflags = [
5 # LLD (shipped with the Rust toolchain) is used as the default linker 5 # LLD (shipped with the Rust toolchain) is used as the default linker
diff --git a/embassy-stm32f4-examples/Cargo.toml b/embassy-stm32f4-examples/Cargo.toml
index 216964374..3e117ecb0 100644
--- a/embassy-stm32f4-examples/Cargo.toml
+++ b/embassy-stm32f4-examples/Cargo.toml
@@ -20,8 +20,8 @@ defmt-error = []
20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] } 20embassy = { version = "0.1.0", path = "../embassy", features = ["defmt", "defmt-trace"] }
21embassy-stm32f4 = { version = "*", path = "../embassy-stm32f4", features = ["stm32f401"] } 21embassy-stm32f4 = { version = "*", path = "../embassy-stm32f4", features = ["stm32f401"] }
22 22
23defmt = "0.1.3" 23defmt = "0.2.0"
24defmt-rtt = "0.1.0" 24defmt-rtt = "0.2.0"
25 25
26cortex-m = "0.7.1" 26cortex-m = "0.7.1"
27cortex-m-rt = "0.6.13" 27cortex-m-rt = "0.6.13"
diff --git a/embassy-stm32f4-examples/src/example_common.rs b/embassy-stm32f4-examples/src/example_common.rs
index ff4d8575e..54d633837 100644
--- a/embassy-stm32f4-examples/src/example_common.rs
+++ b/embassy-stm32f4-examples/src/example_common.rs
@@ -7,11 +7,11 @@ pub use defmt::*;
7 7
8use core::sync::atomic::{AtomicUsize, Ordering}; 8use core::sync::atomic::{AtomicUsize, Ordering};
9 9
10#[defmt::timestamp] 10defmt::timestamp! {"{=u64}", {
11fn timestamp() -> u64 { 11 static COUNT: AtomicUsize = AtomicUsize::new(0);
12 static COUNT: AtomicUsize = AtomicUsize::new(0); 12 // NOTE(no-CAS) `timestamps` runs with interrupts disabled
13 // NOTE(no-CAS) `timestamps` runs with interrupts disabled 13 let n = COUNT.load(Ordering::Relaxed);
14 let n = COUNT.load(Ordering::Relaxed); 14 COUNT.store(n + 1, Ordering::Relaxed);
15 COUNT.store(n + 1, Ordering::Relaxed); 15 n as u64
16 n as u64 16 }
17} 17}
diff --git a/embassy-stm32f4/Cargo.toml b/embassy-stm32f4/Cargo.toml
index afe6e8cca..f9a931b7e 100644
--- a/embassy-stm32f4/Cargo.toml
+++ b/embassy-stm32f4/Cargo.toml
@@ -32,7 +32,7 @@ stm32f479 = ["stm32f4xx-hal/stm32f469"]
32[dependencies] 32[dependencies]
33embassy = { version = "0.1.0", path = "../embassy" } 33embassy = { version = "0.1.0", path = "../embassy" }
34 34
35defmt = { version = "0.1.3", optional = true } 35defmt = { version = "0.2.0", optional = true }
36log = { version = "0.4.11", optional = true } 36log = { version = "0.4.11", optional = true }
37cortex-m-rt = "0.6.13" 37cortex-m-rt = "0.6.13"
38cortex-m = "0.7.1" 38cortex-m = "0.7.1"
diff --git a/embassy/Cargo.toml b/embassy/Cargo.toml
index 1799fad21..1c977d84d 100644
--- a/embassy/Cargo.toml
+++ b/embassy/Cargo.toml
@@ -13,7 +13,7 @@ defmt-warn = []
13defmt-error = [] 13defmt-error = []
14 14
15[dependencies] 15[dependencies]
16defmt = { version = "0.1.3", optional = true } 16defmt = { version = "0.2.0", optional = true }
17log = { version = "0.4.11", optional = true } 17log = { version = "0.4.11", optional = true }
18 18
19cortex-m = "0.7.1" 19cortex-m = "0.7.1"