diff --git a/src/port.rs b/src/port.rs index 31f5f30..19ef5f8 100644 --- a/src/port.rs +++ b/src/port.rs @@ -3,6 +3,12 @@ use std::marker::PhantomData; #[cfg(not(feature="std"))] use core::marker::PhantomData; +#[cfg(feature="std")] +use std::arch::asm; + +#[cfg(not(feature="std"))] +use core::arch::asm; + /// Trait for limiting [Port] to only being able to read/write u8/16/32. pub(crate) trait PortRW { /// Read a value (self) from the port