diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2017-04-11 23:15:05 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2017-04-11 23:19:18 -0500 |
| commit | 5d6847ab7b32d8c9fa243c7dc10ed5a235e06b79 (patch) | |
| tree | e385c865b5929173a22b0d8c247a953bfc82184f /src | |
| parent | 6af1873922edefaae93159cda6bba08884f0bb60 (diff) | |
partial thumv6m-none-eabi support
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -10,8 +10,11 @@ use core::marker::PhantomData; use core::cell::UnsafeCell; use cortex_m::interrupt::Nr; +#[cfg(not(thumbv6m))] use cortex_m::register::{basepri, basepri_max}; -use typenum::{Cmp, Equal, Greater, Less, Unsigned}; +use typenum::{Cmp, Equal, Unsigned}; +#[cfg(not(thumbv6m))] +use typenum::{Greater, Less}; pub use cortex_m::ctxt::{Context, Local}; #[doc(hidden)] @@ -85,6 +88,7 @@ where /// For the duration of the critical section, tasks whose priority level is /// smaller than or equal to the resource `CEILING` will be prevented from /// preempting the current task. + #[cfg(not(thumbv6m))] pub fn lock<R, PRIORITY, F>( &'static self, _priority: &P<PRIORITY>, @@ -176,6 +180,7 @@ where } /// See [Resource.lock](./struct.Resource.html#method.lock) + #[cfg(not(thumbv6m))] pub fn lock<R, PRIORITY, F>( &'static self, _priority: &P<PRIORITY>, |
