mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
Reuse cortex-m
This commit is contained in:
parent
312331de58
commit
a4eb8c576c
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ pub fn codegen(
|
|||
if app.args.cores == 1 {
|
||||
stmts.push(quote!(
|
||||
// To set the variable in cortex_m so the peripherals cannot be taken multiple times
|
||||
let peripherals = cortex_m::Peripherals::steal();
|
||||
let mut core: rtic::export::Peripherals = peripherals.into();
|
||||
let mut core: rtic::export::Peripherals = rtic::export::Peripherals::steal().into();
|
||||
));
|
||||
} else {
|
||||
stmts.push(quote!(
|
||||
|
|
Loading…
Reference in a new issue