diff options
author | 2018-01-11 19:57:17 +0000 | |
---|---|---|
committer | 2018-01-11 19:57:17 +0000 | |
commit | 34edc41e9289e83468f68663a7f4a7f0f6cc2797 (patch) | |
tree | 128911a00f60bb7c0dc9c6ceb8c87e80e3935a99 /src/examples/_0_zero_tasks.rs | |
parent | dd12a6a14d2bb028c8da96cb510b67de31d28be4 (diff) | |
parent | 1be43fc489993e63577515063ceb8a83b14423b8 (diff) | |
download | rtic-release/v0.2.tar.gz rtic-release/v0.2.tar.zst rtic-release/v0.2.zip |
Auto merge of #63 - japaric:cortex-m-up, r=japaricrelease/v0.2
adapt to changes in the cortex-m crate
None
Diffstat (limited to '')
-rw-r--r-- | src/examples/_0_zero_tasks.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/examples/_0_zero_tasks.rs b/src/examples/_0_zero_tasks.rs index 7ea08597..90f16d48 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; //! // .. //! } //! |