From 692ad81ad87299a14ed76dc455ceed011b9c5c45 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 13 Apr 2017 19:01:46 -0500 Subject: [PATCH] re-export Local and wfi from cortex-m make Context private --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1e2f59bf30..d49ddf11f9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,7 @@ use core::marker::PhantomData; #[cfg(not(thumbv6m))] use core::ops::Sub; +use cortex_m::ctxt::Context; use cortex_m::interrupt::Nr; #[cfg(not(thumbv6m))] use cortex_m::register::{basepri, basepri_max}; @@ -18,7 +19,9 @@ use typenum::{Cmp, Equal, Unsigned}; #[cfg(not(thumbv6m))] 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)] pub use cortex_m::peripheral::NVIC; #[doc(hidden)]