]> git.sur5r.net Git - freertos/blobdiff - Source/portable/MemMang/heap_3.c
Remove the portBYTE_ALIGNMENT_MASK definitions as they are now in the common portable...
[freertos] / Source / portable / MemMang / heap_3.c
index f5ca6015125f319a59840d4787501f73aec59634..7ff08b648159900b32ec6b8a96ed84af5e7b04d7 100644 (file)
 \r
 #include <stdlib.h>\r
 \r
+/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining\r
+all the API functions to use the MPU wrappers.  That should only be done when\r
+task.h is included from an application file. */\r
+#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE\r
+\r
 #include "FreeRTOS.h"\r
 #include "task.h"\r
 \r
+#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE\r
+\r
 /*-----------------------------------------------------------*/\r
 \r
 void *pvPortMalloc( size_t xWantedSize )\r