diff --git a/src/lib.rs b/src/lib.rs index 2bffa1aeb2..1e2f59bf30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,7 @@ extern crate typenum; use core::cell::UnsafeCell; use core::marker::PhantomData; +#[cfg(not(thumbv6m))] use core::ops::Sub; use cortex_m::interrupt::Nr;