aboutsummaryrefslogtreecommitdiff
path: root/src/examples/_0_zero_tasks.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/examples/_0_zero_tasks.rs6
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;
//! // ..
//! }
//!