aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-14 18:45:23 +0100
committerDario Nieuwenhuis <[email protected]>2023-11-14 18:45:23 +0100
commit50a983fd9b8f10fa5153757593e9f8cfccc902ac (patch)
treef014b2d61135ffbf696ae3998d9ef18bd6aa12a3 /embassy-executor/src
parent7e5deae58943e886d3879b29f752e4ebdee71195 (diff)
executor: add missing `main` macro reexport on xtensa.
Diffstat (limited to 'embassy-executor/src')
-rw-r--r--embassy-executor/src/arch/xtensa.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-executor/src/arch/xtensa.rs b/embassy-executor/src/arch/xtensa.rs
index 601d85002..d335594e2 100644
--- a/embassy-executor/src/arch/xtensa.rs
+++ b/embassy-executor/src/arch/xtensa.rs
@@ -8,6 +8,9 @@ mod thread {
8 use core::marker::PhantomData; 8 use core::marker::PhantomData;
9 use core::sync::atomic::{AtomicBool, Ordering}; 9 use core::sync::atomic::{AtomicBool, Ordering};
10 10
11 #[cfg(feature = "nightly")]
12 pub use embassy_macros::main_riscv as main;
13
11 use crate::{raw, Spawner}; 14 use crate::{raw, Spawner};
12 15
13 /// global atomic used to keep track of whether there is work to do since sev() is not available on Xtensa 16 /// global atomic used to keep track of whether there is work to do since sev() is not available on Xtensa