Update usage in docs
This commit is contained in:
parent
731eb3c6e3
commit
c4d8f3579e
@ -18,8 +18,7 @@
|
|||||||
//! fn main() -> ! {
|
//! fn main() -> ! {
|
||||||
//! let p = embassy_rp::init(Default::default());
|
//! let p = embassy_rp::init(Default::default());
|
||||||
//!
|
//!
|
||||||
//! let mut mc = MultiCore::new();
|
//! spawn_core1(p.CORE1, unsafe { &mut CORE1_STACK }, move || {
|
||||||
//! let _ = mc.cores.1.spawn(unsafe { &mut CORE1_STACK.mem }, move || {
|
|
||||||
//! let executor1 = EXECUTOR1.init(Executor::new());
|
//! let executor1 = EXECUTOR1.init(Executor::new());
|
||||||
//! executor1.run(|spawner| unwrap!(spawner.spawn(core1_task())));
|
//! executor1.run(|spawner| unwrap!(spawner.spawn(core1_task())));
|
||||||
//! });
|
//! });
|
||||||
@ -28,7 +27,6 @@
|
|||||||
//! executor0.run(|spawner| unwrap!(spawner.spawn(core0_task())));
|
//! executor0.run(|spawner| unwrap!(spawner.spawn(core0_task())));
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
|
||||||
|
|
||||||
use core::mem::ManuallyDrop;
|
use core::mem::ManuallyDrop;
|
||||||
use core::sync::atomic::{compiler_fence, Ordering};
|
use core::sync::atomic::{compiler_fence, Ordering};
|
||||||
|
Loading…
Reference in New Issue
Block a user