aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src/raw/trace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor/src/raw/trace.rs')
-rw-r--r--embassy-executor/src/raw/trace.rs5
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
87use crate::raw::{SyncExecutor, TaskRef}; 88use 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]
166pub(crate) fn task_end(executor: &SyncExecutor, task: &TaskRef) { 167pub(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