aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-08-26 11:05:03 +0000
committerGitHub <[email protected]>2023-08-26 11:05:03 +0000
commitca738d6c99cb72fc32d012f99af4254d6c6312ed (patch)
treeeca25c894dd6b661f59608b333933fd48965d9ed /embassy-executor
parentf8299d10f7c0387416989e00acc02d99661537fb (diff)
parentd33246b072f222bd221471da7d498593ef8c6211 (diff)
Merge pull request #1826 from bugadani/warn
Avoid dead code warning
Diffstat (limited to 'embassy-executor')
-rw-r--r--embassy-executor/src/arch/cortex_m.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/embassy-executor/src/arch/cortex_m.rs b/embassy-executor/src/arch/cortex_m.rs
index 0806a22ab..fde862f3c 100644
--- a/embassy-executor/src/arch/cortex_m.rs
+++ b/embassy-executor/src/arch/cortex_m.rs
@@ -1,5 +1,3 @@
1const THREAD_PENDER: usize = usize::MAX;
2
3#[export_name = "__pender"] 1#[export_name = "__pender"]
4#[cfg(any(feature = "executor-thread", feature = "executor-interrupt"))] 2#[cfg(any(feature = "executor-thread", feature = "executor-interrupt"))]
5fn __pender(context: *mut ()) { 3fn __pender(context: *mut ()) {
@@ -48,13 +46,14 @@ fn __pender(context: *mut ()) {
48pub use thread::*; 46pub use thread::*;
49#[cfg(feature = "executor-thread")] 47#[cfg(feature = "executor-thread")]
50mod thread { 48mod thread {
49 pub(super) const THREAD_PENDER: usize = usize::MAX;
50
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")] 54 #[cfg(feature = "nightly")]
55 pub use embassy_macros::main_cortex_m as main; 55 pub use embassy_macros::main_cortex_m as main;
56 56
57 use crate::arch::THREAD_PENDER;
58 use crate::{raw, Spawner}; 57 use crate::{raw, Spawner};
59 58
60 /// Thread mode executor, using WFE/SEV. 59 /// Thread mode executor, using WFE/SEV.