From a9fb68728a0b98b98da3e4215670b2f1c1b6b982 Mon Sep 17 00:00:00 2001 From: dimpolo <33688001+dimpolo@users.noreply.github.com> Date: Fri, 19 Mar 2021 20:57:00 +0100 Subject: [PATCH] Compile the `mpu::RegisterBlock` struct on all targets closes https://github.com/rust-embedded/cortex-m/issues/336 --- src/peripheral/mpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peripheral/mpu.rs b/src/peripheral/mpu.rs index b6fa869e..3a5f5b4d 100644 --- a/src/peripheral/mpu.rs +++ b/src/peripheral/mpu.rs @@ -3,7 +3,7 @@ use volatile_register::{RO, RW}; /// Register block for ARMv7-M -#[cfg(any(armv6m, armv7m, target_arch = "x86_64"))] // x86-64 is for rustdoc +#[cfg(not(armv8m))] #[repr(C)] pub struct RegisterBlock { /// Type