diff options
Diffstat (limited to 'embassy-executor/src/lib.rs')
| -rw-r--r-- | embassy-executor/src/lib.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs index 9328a7378..e4cbd04b9 100644 --- a/embassy-executor/src/lib.rs +++ b/embassy-executor/src/lib.rs | |||
| @@ -38,7 +38,38 @@ cfg_if::cfg_if! { | |||
| 38 | } | 38 | } |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | #[doc(hidden)] | ||
| 42 | /// Implementation details for embassy macros. DO NOT USE. | ||
| 43 | pub mod export { | ||
| 44 | #[cfg(feature = "rtos-trace")] | ||
| 45 | pub use rtos_trace::trace; | ||
| 46 | |||
| 47 | /// Expands the given block of code when `embassy-executor` is compiled with | ||
| 48 | /// the `rtos-trace-interrupt` feature. | ||
| 49 | #[doc(hidden)] | ||
| 50 | #[macro_export] | ||
| 51 | #[cfg(feature = "rtos-trace-interrupt")] | ||
| 52 | macro_rules! rtos_trace_interrupt { | ||
| 53 | ($($tt:tt)*) => { $($tt)* }; | ||
| 54 | } | ||
| 55 | |||
| 56 | /// Does not expand the given block of code when `embassy-executor` is | ||
| 57 | /// compiled without the `rtos-trace-interrupt` feature. | ||
| 58 | #[doc(hidden)] | ||
| 59 | #[macro_export] | ||
| 60 | #[cfg(not(feature = "rtos-trace-interrupt"))] | ||
| 61 | macro_rules! rtos_trace_interrupt { | ||
| 62 | ($($tt:tt)*) => {}; | ||
| 63 | } | ||
| 64 | } | ||
| 65 | |||
| 41 | pub mod raw; | 66 | pub mod raw; |
| 42 | 67 | ||
| 43 | mod spawner; | 68 | mod spawner; |
| 44 | pub use spawner::*; | 69 | pub use spawner::*; |
| 70 | |||
| 71 | /// Do not use. Used for macros and HALs only. Not covered by semver guarantees. | ||
| 72 | #[doc(hidden)] | ||
| 73 | pub mod _export { | ||
| 74 | pub use static_cell::StaticCell; | ||
| 75 | } | ||
