From c4d8f3579e4927446421730d52a409d724f2800c Mon Sep 17 00:00:00 2001 From: kalkyl Date: Tue, 13 Dec 2022 14:15:04 +0100 Subject: [PATCH] Update usage in docs --- embassy-rp/src/multicore.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/embassy-rp/src/multicore.rs b/embassy-rp/src/multicore.rs index 2dfa215b..8290c62a 100644 --- a/embassy-rp/src/multicore.rs +++ b/embassy-rp/src/multicore.rs @@ -18,8 +18,7 @@ //! fn main() -> ! { //! let p = embassy_rp::init(Default::default()); //! -//! let mut mc = MultiCore::new(); -//! let _ = mc.cores.1.spawn(unsafe { &mut CORE1_STACK.mem }, move || { +//! spawn_core1(p.CORE1, unsafe { &mut CORE1_STACK }, move || { //! let executor1 = EXECUTOR1.init(Executor::new()); //! executor1.run(|spawner| unwrap!(spawner.spawn(core1_task()))); //! }); @@ -28,7 +27,6 @@ //! executor0.run(|spawner| unwrap!(spawner.spawn(core0_task()))); //! } //! ``` -//! use core::mem::ManuallyDrop; use core::sync::atomic::{compiler_fence, Ordering};