aboutsummaryrefslogtreecommitdiff
path: root/examples/zero-tasks.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2017-11-20 05:11:25 +0100
committerGravatar Jorge Aparicio <jorge@japaric.io> 2017-12-09 12:45:57 +0100
commite97afa71ce7bf3d78e257de1aab329135e98c721 (patch)
tree8335f9d8327a9863ec64b79934f8241b350f7fe3 /examples/zero-tasks.rs
parente620b1e57a39f342cf73ad6ac8ab0e179b97bfd5 (diff)
downloadrtic-e97afa71ce7bf3d78e257de1aab329135e98c721.tar.gz
rtic-e97afa71ce7bf3d78e257de1aab329135e98c721.tar.zst
rtic-e97afa71ce7bf3d78e257de1aab329135e98c721.zip
peripherals as scoped singletons
Diffstat (limited to 'examples/zero-tasks.rs')
-rw-r--r--examples/zero-tasks.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/zero-tasks.rs b/examples/zero-tasks.rs
index 9176103d..58e6afc7 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;
// ..
}