aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar dimpolo <33688001+dimpolo@users.noreply.github.com> 2021-03-19 20:57:00 +0100
committerGravatar GitHub <noreply@github.com> 2021-03-19 20:57:00 +0100
commita9fb68728a0b98b98da3e4215670b2f1c1b6b982 (patch)
tree46b2156463d462182b5699ff311e373e426e6f3c
parent653d218e39bb5dad14a0995f3753cbbd1569c9bf (diff)
downloadcortex-m-a9fb68728a0b98b98da3e4215670b2f1c1b6b982.tar.gz
cortex-m-a9fb68728a0b98b98da3e4215670b2f1c1b6b982.tar.zst
cortex-m-a9fb68728a0b98b98da3e4215670b2f1c1b6b982.zip
Compile the `mpu::RegisterBlock` struct on all targets
closes https://github.com/rust-embedded/cortex-m/issues/336
-rw-r--r--src/peripheral/mpu.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peripheral/mpu.rs b/src/peripheral/mpu.rs
index b6fa869..3a5f5b4 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