Add separate feature flag to enable interrupt tracing

This commit is contained in:
Quentin Smith
2022-08-16 00:42:08 -04:00
parent 145af0e4ab
commit 0bf178dd1b
3 changed files with 11 additions and 8 deletions

View File

@ -19,11 +19,11 @@ pub fn run(name: syn::Ident) -> Result<TokenStream, TokenStream> {
let func = HANDLER.func.load(::embassy_executor::export::atomic::Ordering::Relaxed);
let ctx = HANDLER.ctx.load(::embassy_executor::export::atomic::Ordering::Relaxed);
let func: fn(*mut ()) = ::core::mem::transmute(func);
::embassy_executor::rtos_trace! {
::embassy_executor::rtos_trace_interrupt! {
::embassy_executor::export::trace::isr_enter();
}
func(ctx);
::embassy_executor::rtos_trace! {
::embassy_executor::rtos_trace_interrupt! {
::embassy_executor::export::trace::isr_exit();
}
}