diff options
-rw-r--r-- | src/peripheral/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peripheral/mod.rs b/src/peripheral/mod.rs index deb6e0f..b9a3e0a 100644 --- a/src/peripheral/mod.rs +++ b/src/peripheral/mod.rs @@ -28,7 +28,7 @@ pub const DWT: Peripheral<DWT> = unsafe { Peripheral::new(0xE000_1000) }; pub const FPB: Peripheral<FPB> = unsafe { Peripheral::new(0xE000_2000) }; /// Floating Point Unit -#[cfg(has_fpu)] +#[cfg(any(has_fpu, test))] pub const FPU: Peripheral<FPU> = unsafe { Peripheral::new(0xE000_EF30) }; /// Instrumentation Trace Macrocell @@ -239,7 +239,7 @@ pub struct FPB { } /// FPU register block -#[cfg(has_fpu)] +#[cfg(any(has_fpu, test))] #[repr(C)] pub struct FPU { reserved: u32, |