]> git.sur5r.net Git - freertos/commitdiff
Add configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS mechanism to the relevant...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 7 Jun 2013 09:45:34 +0000 (09:45 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 7 Jun 2013 09:45:34 +0000 (09:45 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1920 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Source/portable/GCC/ARM_CM3_MPU/port.c

index ffc58598aceb4fbc32d30da44ac58f58739a085b..7488f5ee7f6ff0ba58db28cab0006929f1198598 100644 (file)
@@ -1208,3 +1208,21 @@ portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();
        return xReturn;\r
 }\r
 \r
+/* Functions that the application writer wants to execute in privileged mode\r
+can be defined in application_defined_privileged_functions.h.  The functions\r
+must take the same format as those above whereby the privilege state on exit\r
+equals the privilege state on entry.  For example:\r
+\r
+void MPU_FunctionName( [parameters ] )\r
+{\r
+portBASE_TYPE xRunningPrivileged = prvRaisePrivilege();\r
+\r
+       FunctionName( [parameters ] );\r
+\r
+       portRESET_PRIVILEGE( xRunningPrivileged );\r
+}\r
+*/\r
+\r
+#if configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS == 1\r
+       #include "application_defined_privileged_functions.h"\r
+#endif
\ No newline at end of file