mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Merge #352
352: Reuse cortex-m r=TeXitoi a=AfoHT Potential fix for #351 Introduced by #338 Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
This commit is contained in:
commit
e9022e186c
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ pub fn codegen(
|
||||||
if app.args.cores == 1 {
|
if app.args.cores == 1 {
|
||||||
stmts.push(quote!(
|
stmts.push(quote!(
|
||||||
// To set the variable in cortex_m so the peripherals cannot be taken multiple times
|
// 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 = rtic::export::Peripherals::steal().into();
|
||||||
let mut core: rtic::export::Peripherals = peripherals.into();
|
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
stmts.push(quote!(
|
stmts.push(quote!(
|
||||||
|
|
Loading…
Reference in a new issue