From 1be43fc489993e63577515063ceb8a83b14423b8 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 11 Jan 2018 20:56:45 +0100 Subject: adapt to changes in the cortex-m crate --- src/examples/_0_zero_tasks.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/examples/_0_zero_tasks.rs') diff --git a/src/examples/_0_zero_tasks.rs b/src/examples/_0_zero_tasks.rs index 7ea0859..90f16d4 100644 --- a/src/examples/_0_zero_tasks.rs +++ b/src/examples/_0_zero_tasks.rs @@ -2,6 +2,7 @@ //! //! ``` //! #![deny(unsafe_code)] +//! #![deny(warnings)] //! // IMPORTANT always include this feature gate //! #![feature(proc_macro)] //! #![no_std] @@ -27,8 +28,9 @@ //! // 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