aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx/mpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/ports/ARMCMx/mpu.h')
-rw-r--r--os/common/ports/ARMCMx/mpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/os/common/ports/ARMCMx/mpu.h b/os/common/ports/ARMCMx/mpu.h
index 6de5c5c50..30eff0e30 100644
--- a/os/common/ports/ARMCMx/mpu.h
+++ b/os/common/ports/ARMCMx/mpu.h
@@ -25,6 +25,10 @@
#ifndef MPU_H
#define MPU_H
+/* Other layers may include another header named mpu_v7m.h which is perfectly
+ compatible, doing a check here to avoid name conflicts.*/
+#ifndef MPUV7M_H
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@@ -203,6 +207,8 @@ extern "C" {
}
#endif
+#endif /* MPUV7M_H */
+
#endif /* MPU_H */
/** @} */