executor: add missing main macro reexport on xtensa.

This commit is contained in:
Dario Nieuwenhuis 2023-11-14 18:45:23 +01:00
parent 7e5deae589
commit 50a983fd9b

View File

@ -8,6 +8,9 @@ mod thread {
use core::marker::PhantomData; use core::marker::PhantomData;
use core::sync::atomic::{AtomicBool, Ordering}; use core::sync::atomic::{AtomicBool, Ordering};
#[cfg(feature = "nightly")]
pub use embassy_macros::main_riscv as main;
use crate::{raw, Spawner}; use crate::{raw, Spawner};
/// global atomic used to keep track of whether there is work to do since sev() is not available on Xtensa /// global atomic used to keep track of whether there is work to do since sev() is not available on Xtensa