Skip to content

Commit 8815e75

Browse files
authored
fix CpuControl::start_app_core signature (#466)
1 parent 7ab9d91 commit 8815e75

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

esp-hal-common/src/soc/esp32/cpu_control.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ impl CpuControl {
187187
/// The second core will start running the closure `entry`.
188188
///
189189
/// Dropping the returned guard will park the core.
190-
pub fn start_app_core(
190+
pub fn start_app_core<'a>(
191191
&mut self,
192-
entry: &mut (dyn FnMut() + Send),
193-
) -> Result<AppCoreGuard, Error> {
192+
entry: &'a mut (dyn FnMut() + Send),
193+
) -> Result<AppCoreGuard<'a>, Error> {
194194
let dport_control = crate::peripherals::DPORT::PTR;
195195
let dport_control = unsafe { &*dport_control };
196196

esp-hal-common/src/soc/esp32s3/cpu_control.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ impl CpuControl {
122122
/// The second core will start running the closure `entry`.
123123
///
124124
/// Dropping the returned guard will park the core.
125-
pub fn start_app_core(
125+
pub fn start_app_core<'a>(
126126
&mut self,
127-
entry: &mut (dyn FnMut() + Send),
128-
) -> Result<AppCoreGuard, Error> {
127+
entry: &'a mut (dyn FnMut() + Send),
128+
) -> Result<AppCoreGuard<'a>, Error> {
129129
let system_control = crate::peripherals::SYSTEM::PTR;
130130
let system_control = unsafe { &*system_control };
131131

0 commit comments

Comments
 (0)