diff options
| author | Quentin Smith <[email protected]> | 2022-08-16 00:42:08 -0400 |
|---|---|---|
| committer | Quentin Smith <[email protected]> | 2022-08-16 00:42:08 -0400 |
| commit | 0bf178dd1b11d97f20cb93c5fdb0c779259be0f8 (patch) | |
| tree | 4a6e4ef6cfad569e1491e1e81f505a0b9fa3fb58 /embassy-executor/src | |
| parent | 145af0e4ab75d931cba401f1755f383bcc713892 (diff) | |
Add separate feature flag to enable interrupt tracing
Diffstat (limited to 'embassy-executor/src')
| -rw-r--r-- | embassy-executor/src/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs index 32724c15c..47c0c1d64 100644 --- a/embassy-executor/src/lib.rs +++ b/embassy-executor/src/lib.rs | |||
| @@ -23,20 +23,20 @@ pub mod export { | |||
| 23 | pub use rtos_trace::trace; | 23 | pub use rtos_trace::trace; |
| 24 | 24 | ||
| 25 | /// Expands the given block of code when `embassy-executor` is compiled with | 25 | /// Expands the given block of code when `embassy-executor` is compiled with |
| 26 | /// the `rtos-trace` feature. | 26 | /// the `rtos-trace-interrupt` feature. |
| 27 | #[doc(hidden)] | 27 | #[doc(hidden)] |
| 28 | #[macro_export] | 28 | #[macro_export] |
| 29 | #[cfg(feature = "rtos-trace")] | 29 | #[cfg(feature = "rtos-trace-interrupt")] |
| 30 | macro_rules! rtos_trace { | 30 | macro_rules! rtos_trace_interrupt { |
| 31 | ($($tt:tt)*) => { $($tt)* }; | 31 | ($($tt:tt)*) => { $($tt)* }; |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | /// Does not expand the given block of code when `embassy-executor` is | 34 | /// Does not expand the given block of code when `embassy-executor` is |
| 35 | /// compiled without the `rtos-trace` feature. | 35 | /// compiled without the `rtos-trace-interrupt` feature. |
| 36 | #[doc(hidden)] | 36 | #[doc(hidden)] |
| 37 | #[macro_export] | 37 | #[macro_export] |
| 38 | #[cfg(not(feature = "rtos-trace"))] | 38 | #[cfg(not(feature = "rtos-trace-interrupt"))] |
| 39 | macro_rules! rtos_trace { | 39 | macro_rules! rtos_trace_interrupt { |
| 40 | ($($tt:tt)*) => {}; | 40 | ($($tt:tt)*) => {}; |
| 41 | } | 41 | } |
| 42 | } | 42 | } |
