Define complete set of access permissions for MPU port
Market leading real time kernel for 40+ microcontroller architectures
Brought to you by:
gaurav-aws,
rtel
A small patch as my proposal:
Index: portmacro.h
--- portmacro.h (revision 1751)
+++ portmacro.h (working copy)
@@ -104,6 +104,8 @@
#define portUSING_MPU_WRAPPERS 1
#define portPRIVILEGE_BIT ( 0x80000000UL )
+#define portMPU_REGION_NO_ACCESS ( 0x00UL << 24UL )
+#define portMPU_REGION_READ_ONLY_PRIVILEGED_READ_WRITE ( 0x02UL << 24UL )
#define portMPU_REGION_READ_WRITE ( 0x03UL << 24UL )
#define portMPU_REGION_PRIVILEGED_READ_ONLY ( 0x05UL << 24UL )
#define portMPU_REGION_READ_ONLY ( 0x06UL << 24UL )