From a979bf94dcdd85c3b97c2db8d1c602140e1f088b Mon Sep 17 00:00:00 2001 From: Harry Ho Date: Wed, 16 Sep 2020 14:25:36 +0800 Subject: [PATCH] update syntax for taking core periphs (required since rtic v0.5.5) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 01cd1f0..9e0c0ff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();