Struct embassy_stm32::SharedData
source ยท 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:
#[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