diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-24 21:37:27 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-24 23:52:09 +0100 |
| commit | 171cdb94c7906670723b0965ca66d72a2352ac73 (patch) | |
| tree | 92481f40c2ea3de70055e5b967629b5c93c4b298 /embassy-executor/src/arch | |
| parent | 1fbc150fd6392d8268aa35d15380c02e363c4eb8 (diff) | |
executor: add support for main/task macros in stable (allocates tasks in an arena)
Diffstat (limited to 'embassy-executor/src/arch')
| -rw-r--r-- | embassy-executor/src/arch/cortex_m.rs | 1 | ||||
| -rw-r--r-- | embassy-executor/src/arch/riscv32.rs | 1 | ||||
| -rw-r--r-- | embassy-executor/src/arch/std.rs | 1 | ||||
| -rw-r--r-- | embassy-executor/src/arch/wasm.rs | 1 | ||||
| -rw-r--r-- | embassy-executor/src/arch/xtensa.rs | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/embassy-executor/src/arch/cortex_m.rs b/embassy-executor/src/arch/cortex_m.rs index 55299c94f..4a6d58575 100644 --- a/embassy-executor/src/arch/cortex_m.rs +++ b/embassy-executor/src/arch/cortex_m.rs | |||
| @@ -51,7 +51,6 @@ mod thread { | |||
| 51 | use core::arch::asm; | 51 | use core::arch::asm; |
| 52 | use core::marker::PhantomData; | 52 | use core::marker::PhantomData; |
| 53 | 53 | ||
| 54 | #[cfg(feature = "nightly")] | ||
| 55 | pub use embassy_macros::main_cortex_m as main; | 54 | pub use embassy_macros::main_cortex_m as main; |
| 56 | 55 | ||
| 57 | use crate::{raw, Spawner}; | 56 | use crate::{raw, Spawner}; |
diff --git a/embassy-executor/src/arch/riscv32.rs b/embassy-executor/src/arch/riscv32.rs index 6814e7844..ca12c3403 100644 --- a/embassy-executor/src/arch/riscv32.rs +++ b/embassy-executor/src/arch/riscv32.rs | |||
| @@ -7,7 +7,6 @@ pub use thread::*; | |||
| 7 | mod thread { | 7 | mod thread { |
| 8 | use core::marker::PhantomData; | 8 | use core::marker::PhantomData; |
| 9 | 9 | ||
| 10 | #[cfg(feature = "nightly")] | ||
| 11 | pub use embassy_macros::main_riscv as main; | 10 | pub use embassy_macros::main_riscv as main; |
| 12 | use portable_atomic::{AtomicBool, Ordering}; | 11 | use portable_atomic::{AtomicBool, Ordering}; |
| 13 | 12 | ||
diff --git a/embassy-executor/src/arch/std.rs b/embassy-executor/src/arch/std.rs index 5b2f7e2e4..598bb0509 100644 --- a/embassy-executor/src/arch/std.rs +++ b/embassy-executor/src/arch/std.rs | |||
| @@ -8,7 +8,6 @@ mod thread { | |||
| 8 | use std::marker::PhantomData; | 8 | use std::marker::PhantomData; |
| 9 | use std::sync::{Condvar, Mutex}; | 9 | use std::sync::{Condvar, Mutex}; |
| 10 | 10 | ||
| 11 | #[cfg(feature = "nightly")] | ||
| 12 | pub use embassy_macros::main_std as main; | 11 | pub use embassy_macros::main_std as main; |
| 13 | 12 | ||
| 14 | use crate::{raw, Spawner}; | 13 | use crate::{raw, Spawner}; |
diff --git a/embassy-executor/src/arch/wasm.rs b/embassy-executor/src/arch/wasm.rs index 15aed867a..3faa92575 100644 --- a/embassy-executor/src/arch/wasm.rs +++ b/embassy-executor/src/arch/wasm.rs | |||
| @@ -8,7 +8,6 @@ mod thread { | |||
| 8 | 8 | ||
| 9 | use core::marker::PhantomData; | 9 | use core::marker::PhantomData; |
| 10 | 10 | ||
| 11 | #[cfg(feature = "nightly")] | ||
| 12 | pub use embassy_macros::main_wasm as main; | 11 | pub use embassy_macros::main_wasm as main; |
| 13 | use js_sys::Promise; | 12 | use js_sys::Promise; |
| 14 | use wasm_bindgen::prelude::*; | 13 | use wasm_bindgen::prelude::*; |
diff --git a/embassy-executor/src/arch/xtensa.rs b/embassy-executor/src/arch/xtensa.rs index d335594e2..6ed9f9e72 100644 --- a/embassy-executor/src/arch/xtensa.rs +++ b/embassy-executor/src/arch/xtensa.rs | |||
| @@ -8,7 +8,6 @@ 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; | 11 | pub use embassy_macros::main_riscv as main; |
| 13 | 12 | ||
| 14 | use crate::{raw, Spawner}; | 13 | use crate::{raw, Spawner}; |
