aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-24 19:05:31 +0100
committerDario Nieuwenhuis <[email protected]>2023-11-24 23:52:09 +0100
commit259cf6192b920dff4cce0486488d929bf4e05b96 (patch)
tree3e587f4d409408ef954fdfce79f11258581bf75f /embassy-executor
parente8ff5a2baf217ac7e52f119c0d17a9826ad60067 (diff)
executor: Remove non-functional rtos-trace-interrupt.
Diffstat (limited to 'embassy-executor')
-rw-r--r--embassy-executor/Cargo.toml3
-rw-r--r--embassy-executor/src/lib.rs23
2 files changed, 1 insertions, 25 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml
index 3a623e99f..54ea1a548 100644
--- a/embassy-executor/Cargo.toml
+++ b/embassy-executor/Cargo.toml
@@ -49,9 +49,6 @@ turbowakers = []
49 49
50integrated-timers = ["dep:embassy-time"] 50integrated-timers = ["dep:embassy-time"]
51 51
52# Trace interrupt invocations with rtos-trace.
53rtos-trace-interrupt = ["rtos-trace", "embassy-macros/rtos-trace-interrupt"]
54
55[dependencies] 52[dependencies]
56defmt = { version = "0.3", optional = true } 53defmt = { version = "0.3", optional = true }
57log = { version = "0.4.14", optional = true } 54log = { version = "0.4.14", optional = true }
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs
index f2c86d8e6..3b61b4ba5 100644
--- a/embassy-executor/src/lib.rs
+++ b/embassy-executor/src/lib.rs
@@ -44,25 +44,4 @@ pub use spawner::*;
44/// Implementation details for embassy macros. 44/// Implementation details for embassy macros.
45/// Do not use. Used for macros and HALs only. Not covered by semver guarantees. 45/// Do not use. Used for macros and HALs only. Not covered by semver guarantees.
46#[doc(hidden)] 46#[doc(hidden)]
47pub mod _export { 47pub mod _export {}
48 #[cfg(feature = "rtos-trace")]
49 pub use rtos_trace::trace;
50
51 /// Expands the given block of code when `embassy-executor` is compiled with
52 /// the `rtos-trace-interrupt` feature.
53 #[doc(hidden)]
54 #[macro_export]
55 #[cfg(feature = "rtos-trace-interrupt")]
56 macro_rules! rtos_trace_interrupt {
57 ($($tt:tt)*) => { $($tt)* };
58 }
59
60 /// Does not expand the given block of code when `embassy-executor` is
61 /// compiled without the `rtos-trace-interrupt` feature.
62 #[doc(hidden)]
63 #[macro_export]
64 #[cfg(not(feature = "rtos-trace-interrupt"))]
65 macro_rules! rtos_trace_interrupt {
66 ($($tt:tt)*) => {};
67 }
68}