diff options
author | 2019-07-29 20:22:11 +0000 | |
---|---|---|
committer | 2019-07-29 20:22:11 +0000 | |
commit | 1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e (patch) | |
tree | 09e8c83bc0e843c20e5f1589f702e945d335d4a8 /src/peripheral/mod.rs | |
parent | 6a213910f7f8920906c2f8882cbc1f1a3ebc3627 (diff) | |
parent | 9987c6f9e77d50feb6b77be4c9eae84a988e1fdf (diff) | |
download | cortex-m-1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e.tar.gz cortex-m-1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e.tar.zst cortex-m-1aa7d5dba9f3a50d1568bcfddc4073ac08d4ee1e.zip |
Merge #160
160: Update for 2018 edition r=korken89 a=adamgreig
Co-authored-by: Adam Greig <adam@adamgreig.com>
Diffstat (limited to 'src/peripheral/mod.rs')
-rw-r--r-- | src/peripheral/mod.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs index 8d2bd3f..7019224 100644 --- a/src/peripheral/mod.rs +++ b/src/peripheral/mod.rs @@ -8,8 +8,6 @@ //! the [`Peripherals::take`](struct.Peripherals.html#method.take) method. //! //! ``` no_run -//! extern crate cortex_m; -//! //! use cortex_m::peripheral::Peripherals; //! //! fn main() { @@ -22,8 +20,6 @@ //! `Option`. Subsequent calls to the method will result in a `None` value being returned. //! //! ``` no_run -//! extern crate cortex_m; -//! //! use cortex_m::peripheral::Peripherals; //! //! fn main() { @@ -36,8 +32,6 @@ //! [`DWT::get_cycle_count`](struct.DWT.html#method.get_cycle_count) method. //! //! ``` no_run -//! extern crate cortex_m; -//! //! use cortex_m::peripheral::{DWT, Peripherals}; //! //! fn main() { @@ -56,8 +50,6 @@ //! safe higher level abstractions. //! //! ``` no_run -//! extern crate cortex_m; -//! //! use cortex_m::peripheral::{DWT, Peripherals}; //! //! fn main() { @@ -81,7 +73,7 @@ use core::marker::PhantomData; use core::ops; -use interrupt; +use crate::interrupt; #[cfg(not(armv6m))] pub mod cbp; |