Struct esp32_hal::cpu_control::CpuControl
source · pub struct CpuControl { /* private fields */ }
Expand description
Control CPU Cores
Implementations§
source§impl CpuControl
impl CpuControl
pub fn new(cpu_control: CpuControl) -> CpuControl
sourcepub fn unpark_core(&mut self, core: Cpu)
pub fn unpark_core(&mut self, core: Cpu)
Unpark the given core
sourcepub fn start_app_core<'a, const SIZE: usize, F>(
&mut self,
stack: &'static mut Stack<SIZE>,
entry: F
) -> Result<AppCoreGuard<'a>, Error>
pub fn start_app_core<'a, const SIZE: usize, F>( &mut self, stack: &'static mut Stack<SIZE>, entry: F ) -> Result<AppCoreGuard<'a>, Error>
Start the APP (second) core
The second core will start running the closure entry
.
Dropping the returned guard will park the core.
Auto Trait Implementations§
impl RefUnwindSafe for CpuControl
impl Send for CpuControl
impl Sync for CpuControl
impl Unpin for CpuControl
impl UnwindSafe for CpuControl
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