summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2018-05-24 10:32:35 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2018-05-25 07:09:09 +0200
commitef61d892a4785776c72303c2a04183dd0fb73624 (patch)
tree192415fd9d2be9c1bc31722b1a97588e1b1ec305
parentdf71100c66b54922159df71cfa2a901081c1ad01 (diff)
downloadrtems-ef61d892a4785776c72303c2a04183dd0fb73624.tar.bz2
bsp/atsam: Reserve one region for applications.
This allows a user to overwrite some MPU settings. That can for example be usefull for devices with special requirements that are connected to the external bus interface.
-rw-r--r--bsps/arm/atsam/include/libchip/include/mpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsps/arm/atsam/include/libchip/include/mpu.h b/bsps/arm/atsam/include/libchip/include/mpu.h
index 06f70d5d62..a5d00a681b 100644
--- a/bsps/arm/atsam/include/libchip/include/mpu.h
+++ b/bsps/arm/atsam/include/libchip/include/mpu.h
@@ -55,6 +55,10 @@
#define MPU_NOCACHE_SRAM_REGION (11)
#endif
#define MPU_SYSTEM_REGION (12)
+#ifdef __rtems__
+/* Reserve the region with highest priority for user applications */
+#define MPU_USER_DEFINED_REGION (15)
+#endif /* __rtems__ */
#define MPU_REGION_VALID (0x10)
#define MPU_REGION_ENABLE (0x01)