pub struct SharedData { /* private fields */ }
Expand description
Object containing data that embassy needs to share between cores.
It cannot be initialized by the user. The intended use is:
use core::mem::MaybeUninit;
use embassy_stm32::{init_secondary, SharedData};
#[link_section = ".ram_d3"]
static SHARED_DATA: MaybeUninit<SharedData> = MaybeUninit::uninit();
init_secondary(&SHARED_DATA);
This static must be placed in the same position for both cores. How and where this is done is left to the user.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more