diff options
| author | James Munns <[email protected]> | 2025-04-01 14:23:39 +0200 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-04-01 14:23:39 +0200 |
| commit | c3efb85b85eece9f706d232888e0fb70ee1270e4 (patch) | |
| tree | 8462989fd5e3b47d24e5bf4dcede0c2ce46424e2 /embassy-executor/src/raw/trace.rs | |
| parent | 8a8e4500531342001977cdc99d6d107dd84be8e1 (diff) | |
Fix task_end callback
Diffstat (limited to 'embassy-executor/src/raw/trace.rs')
| -rw-r--r-- | embassy-executor/src/raw/trace.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-executor/src/raw/trace.rs b/embassy-executor/src/raw/trace.rs index 0952a9bc0..56724b0bb 100644 --- a/embassy-executor/src/raw/trace.rs +++ b/embassy-executor/src/raw/trace.rs | |||
| @@ -84,6 +84,7 @@ | |||
| 84 | //! 5. The executor has finished polling tasks. `_embassy_trace_executor_idle` is called. | 84 | //! 5. The executor has finished polling tasks. `_embassy_trace_executor_idle` is called. |
| 85 | 85 | ||
| 86 | #![allow(unused)] | 86 | #![allow(unused)] |
| 87 | |||
| 87 | use crate::raw::{SyncExecutor, TaskRef}; | 88 | use crate::raw::{SyncExecutor, TaskRef}; |
| 88 | 89 | ||
| 89 | #[cfg(not(feature = "rtos-trace"))] | 90 | #[cfg(not(feature = "rtos-trace"))] |
| @@ -163,10 +164,10 @@ pub(crate) fn task_new(executor: &SyncExecutor, task: &TaskRef) { | |||
| 163 | } | 164 | } |
| 164 | 165 | ||
| 165 | #[inline] | 166 | #[inline] |
| 166 | pub(crate) fn task_end(executor: &SyncExecutor, task: &TaskRef) { | 167 | pub(crate) fn task_end(executor: *const SyncExecutor, task: &TaskRef) { |
| 167 | #[cfg(not(feature = "rtos-trace"))] | 168 | #[cfg(not(feature = "rtos-trace"))] |
| 168 | unsafe { | 169 | unsafe { |
| 169 | _embassy_trace_task_end(executor as *const _ as u32, task.as_ptr() as u32) | 170 | _embassy_trace_task_end(executor as u32, task.as_ptr() as u32) |
| 170 | } | 171 | } |
| 171 | } | 172 | } |
| 172 | 173 | ||
