Struct esp32_hal::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(
&mut self,
entry: &mut (dyn FnMut() + Send)
) -> Result<AppCoreGuard<'_>, Error>
pub fn start_app_core(
&mut self,
entry: &mut (dyn FnMut() + Send)
) -> Result<AppCoreGuard<'_>, Error>
Start the APP (second) core
The second core will start running the closure entry
.
Dropping the returned guard will park the core.