aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor/src/arch')
-rw-r--r--embassy-executor/src/arch/cortex_m.rs2
-rw-r--r--embassy-executor/src/arch/riscv32.rs2
-rw-r--r--embassy-executor/src/arch/std.rs3
-rw-r--r--embassy-executor/src/arch/wasm.rs3
-rw-r--r--embassy-executor/src/arch/xtensa.rs2
5 files changed, 0 insertions, 12 deletions
diff --git a/embassy-executor/src/arch/cortex_m.rs b/embassy-executor/src/arch/cortex_m.rs
index 6c1300ae5..a29e5b23e 100644
--- a/embassy-executor/src/arch/cortex_m.rs
+++ b/embassy-executor/src/arch/cortex_m.rs
@@ -21,9 +21,7 @@ mod thread {
21 pub struct Context; 21 pub struct Context;
22 22
23 impl ThreadContext for Context { 23 impl ThreadContext for Context {
24 #[cfg(feature = "thread-context")]
25 fn context(&self) -> OpaqueThreadContext { 24 fn context(&self) -> OpaqueThreadContext {
26 // Enabling thread-context is not incorrect, just wasteful.
27 OpaqueThreadContext(0) 25 OpaqueThreadContext(0)
28 } 26 }
29 27
diff --git a/embassy-executor/src/arch/riscv32.rs b/embassy-executor/src/arch/riscv32.rs
index 087204006..976e7bcb3 100644
--- a/embassy-executor/src/arch/riscv32.rs
+++ b/embassy-executor/src/arch/riscv32.rs
@@ -27,9 +27,7 @@ mod thread {
27 pub struct Context; 27 pub struct Context;
28 28
29 impl ThreadContext for Context { 29 impl ThreadContext for Context {
30 #[cfg(feature = "thread-context")]
31 fn context(&self) -> OpaqueThreadContext { 30 fn context(&self) -> OpaqueThreadContext {
32 // Enabling thread-context is not incorrect, just wasteful.
33 OpaqueThreadContext(0) 31 OpaqueThreadContext(0)
34 } 32 }
35 33
diff --git a/embassy-executor/src/arch/std.rs b/embassy-executor/src/arch/std.rs
index 2731e275e..ceaa5c7ab 100644
--- a/embassy-executor/src/arch/std.rs
+++ b/embassy-executor/src/arch/std.rs
@@ -1,9 +1,6 @@
1#[cfg(feature = "executor-interrupt")] 1#[cfg(feature = "executor-interrupt")]
2compile_error!("`executor-interrupt` is not supported with `arch-std`."); 2compile_error!("`executor-interrupt` is not supported with `arch-std`.");
3 3
4#[cfg(not(feature = "thread-context"))]
5compile_error!("`arch-std` requires `thread-context`.");
6
7#[cfg(feature = "executor-thread")] 4#[cfg(feature = "executor-thread")]
8pub use thread::*; 5pub use thread::*;
9#[cfg(feature = "executor-thread")] 6#[cfg(feature = "executor-thread")]
diff --git a/embassy-executor/src/arch/wasm.rs b/embassy-executor/src/arch/wasm.rs
index e244c0b3f..c393722b2 100644
--- a/embassy-executor/src/arch/wasm.rs
+++ b/embassy-executor/src/arch/wasm.rs
@@ -1,9 +1,6 @@
1#[cfg(feature = "executor-interrupt")] 1#[cfg(feature = "executor-interrupt")]
2compile_error!("`executor-interrupt` is not supported with `arch-wasm`."); 2compile_error!("`executor-interrupt` is not supported with `arch-wasm`.");
3 3
4#[cfg(not(feature = "thread-context"))]
5compile_error!("`arch-wasm` requires `thread-context`.");
6
7#[cfg(feature = "executor-thread")] 4#[cfg(feature = "executor-thread")]
8pub use thread::*; 5pub use thread::*;
9#[cfg(feature = "executor-thread")] 6#[cfg(feature = "executor-thread")]
diff --git a/embassy-executor/src/arch/xtensa.rs b/embassy-executor/src/arch/xtensa.rs
index 54c842025..28abf352c 100644
--- a/embassy-executor/src/arch/xtensa.rs
+++ b/embassy-executor/src/arch/xtensa.rs
@@ -25,9 +25,7 @@ mod thread {
25 pub struct Context; 25 pub struct Context;
26 26
27 impl ThreadContext for Context { 27 impl ThreadContext for Context {
28 #[cfg(feature = "thread-context")]
29 fn context(&self) -> OpaqueThreadContext { 28 fn context(&self) -> OpaqueThreadContext {
30 // Enabling thread-context is not incorrect, just wasteful.
31 OpaqueThreadContext(0) 29 OpaqueThreadContext(0)
32 } 30 }
33 31