From 0e5fdcfd9cbdd0efbf4af1315366a5b4c2e17b10 Mon Sep 17 00:00:00 2001 From: Liam Murphy Date: Sun, 8 May 2022 20:14:40 +1000 Subject: [PATCH] Fix example --- rp2040-hal/src/multicore.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040-hal/src/multicore.rs b/rp2040-hal/src/multicore.rs index b1a4d28..64f05a9 100644 --- a/rp2040-hal/src/multicore.rs +++ b/rp2040-hal/src/multicore.rs @@ -20,10 +20,10 @@ //! let mut pac = pac::Peripherals::take().unwrap(); //! let mut sio = Sio::new(pac.SIO); //! // Other init code above this line -//! let mut mc = Multicore::new(&mut pac.PSM, &mut pac.PPB, &mut sio); +//! let mut mc = Multicore::new(&mut pac.PSM, &mut pac.PPB, &mut sio.fifo); //! let cores = mc.cores(); //! let core1 = &mut cores[1]; -//! let _test = core1.spawn(core1_task, unsafe { &mut CORE1_STACK.mem }); +//! let _test = core1.spawn(unsafe { &mut CORE1_STACK.mem }, core1_task); //! // The rest of your application below this line //! # loop {} //! }