re-export Local and wfi from cortex-m

make Context private
This commit is contained in:
Jorge Aparicio 2017-04-13 19:01:46 -05:00
parent 1ed5696f76
commit 692ad81ad8

View file

@ -11,6 +11,7 @@ use core::marker::PhantomData;
#[cfg(not(thumbv6m))] #[cfg(not(thumbv6m))]
use core::ops::Sub; use core::ops::Sub;
use cortex_m::ctxt::Context;
use cortex_m::interrupt::Nr; use cortex_m::interrupt::Nr;
#[cfg(not(thumbv6m))] #[cfg(not(thumbv6m))]
use cortex_m::register::{basepri, basepri_max}; use cortex_m::register::{basepri, basepri_max};
@ -18,7 +19,9 @@ use typenum::{Cmp, Equal, Unsigned};
#[cfg(not(thumbv6m))] #[cfg(not(thumbv6m))]
use typenum::{B1, Greater, Less, Sub1}; use typenum::{B1, Greater, Less, Sub1};
pub use cortex_m::ctxt::{Context, Local}; pub use cortex_m::ctxt::Local;
pub use cortex_m::asm::wfi;
#[doc(hidden)] #[doc(hidden)]
pub use cortex_m::peripheral::NVIC; pub use cortex_m::peripheral::NVIC;
#[doc(hidden)] #[doc(hidden)]