update syntax for taking core periphs (required since rtic v0.5.5)

This commit is contained in:
Harry Ho 2020-09-16 14:25:36 +08:00
parent 1a95f53717
commit a979bf94dc
1 changed files with 1 additions and 1 deletions

View File

@ -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();