update syntax for taking core periphs (required since rtic v0.5.5)
This commit is contained in:
parent
1a95f53717
commit
a979bf94dc
|
@ -203,7 +203,7 @@ const APP: () = {
|
|||
#[init]
|
||||
fn init(c: init::Context) -> init::LateResources {
|
||||
let dp = c.device;
|
||||
let mut cp = cortex_m::Peripherals::take().unwrap();
|
||||
let mut cp = c.core;
|
||||
|
||||
let pwr = dp.PWR.constrain();
|
||||
let vos = pwr.freeze();
|
||||
|
|
Loading…
Reference in New Issue