fix CpuControl::start_app_core signature (#466)
This commit is contained in:
parent
7ab9d91f26
commit
8815e75250
@ -187,10 +187,10 @@ impl CpuControl {
|
|||||||
/// The second core will start running the closure `entry`.
|
/// The second core will start running the closure `entry`.
|
||||||
///
|
///
|
||||||
/// Dropping the returned guard will park the core.
|
/// Dropping the returned guard will park the core.
|
||||||
pub fn start_app_core(
|
pub fn start_app_core<'a>(
|
||||||
&mut self,
|
&mut self,
|
||||||
entry: &mut (dyn FnMut() + Send),
|
entry: &'a mut (dyn FnMut() + Send),
|
||||||
) -> Result<AppCoreGuard, Error> {
|
) -> Result<AppCoreGuard<'a>, Error> {
|
||||||
let dport_control = crate::peripherals::DPORT::PTR;
|
let dport_control = crate::peripherals::DPORT::PTR;
|
||||||
let dport_control = unsafe { &*dport_control };
|
let dport_control = unsafe { &*dport_control };
|
||||||
|
|
||||||
|
|||||||
@ -122,10 +122,10 @@ impl CpuControl {
|
|||||||
/// The second core will start running the closure `entry`.
|
/// The second core will start running the closure `entry`.
|
||||||
///
|
///
|
||||||
/// Dropping the returned guard will park the core.
|
/// Dropping the returned guard will park the core.
|
||||||
pub fn start_app_core(
|
pub fn start_app_core<'a>(
|
||||||
&mut self,
|
&mut self,
|
||||||
entry: &mut (dyn FnMut() + Send),
|
entry: &'a mut (dyn FnMut() + Send),
|
||||||
) -> Result<AppCoreGuard, Error> {
|
) -> Result<AppCoreGuard<'a>, Error> {
|
||||||
let system_control = crate::peripherals::SYSTEM::PTR;
|
let system_control = crate::peripherals::SYSTEM::PTR;
|
||||||
let system_control = unsafe { &*system_control };
|
let system_control = unsafe { &*system_control };
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user