From e97afa71ce7bf3d78e257de1aab329135e98c721 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 20 Nov 2017 05:11:25 +0100 Subject: peripherals as scoped singletons --- examples/zero-tasks.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/zero-tasks.rs') diff --git a/examples/zero-tasks.rs b/examples/zero-tasks.rs index 9176103..58e6afc 100644 --- a/examples/zero-tasks.rs +++ b/examples/zero-tasks.rs @@ -25,8 +25,9 @@ app! { // this function. fn init(p: init::Peripherals) { // This function has access to all the peripherals of the device - p.GPIOA; - p.RCC; + p.core.SYST; + p.device.GPIOA; + p.device.RCC; // .. } -- cgit v1.2.3