From ea2112dff6edd9118377947d6a5caa3f0da13b11 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 27 Feb 2024 23:30:06 +0100 Subject: [PATCH] fixup! fixup! fixup! initial esp32 support --- src/riot-rs-embassy/src/arch/dummy.rs | 1 + src/riot-rs-embassy/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/riot-rs-embassy/src/arch/dummy.rs b/src/riot-rs-embassy/src/arch/dummy.rs index f54ba82e2..92e5f7d02 100644 --- a/src/riot-rs-embassy/src/arch/dummy.rs +++ b/src/riot-rs-embassy/src/arch/dummy.rs @@ -39,6 +39,7 @@ mod executor { pub fn spawn(&self, _token: SpawnToken) -> Result<(), ()> { Ok(()) } + pub fn must_spawn(&self, _token: SpawnToken) {} } } pub use executor::{Executor, Spawner}; diff --git a/src/riot-rs-embassy/src/lib.rs b/src/riot-rs-embassy/src/lib.rs index bbe0eb9fe..3f972e91b 100644 --- a/src/riot-rs-embassy/src/lib.rs +++ b/src/riot-rs-embassy/src/lib.rs @@ -59,7 +59,7 @@ pub(crate) fn init() { riot_rs_rt::debug::println!("riot-rs-embassy::init()"); let p = arch::init(Default::default()); - #[cfg(any(context = "nrf52", context = "rp2040"))] + #[cfg(not(context = "esp"))] let p = crate::arch::OptionalPeripherals::from(p); #[cfg(any(context = "nrf52", context = "rp2040"))]