]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/portable.h
Update version number to 8.1.2 after moving the defaulting of configUSE_PORT_OPTIMISE...
[freertos] / FreeRTOS / Source / include / portable.h
index b12a8baff06e1c3e2a7eb1aff07fc450aadc90af..0fbaa51e16ef2012bf95e516477834e9f23141b3 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd.\r
+    FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -322,7 +322,7 @@ to find the path to the correct portmacro.h file. */
 #endif\r
 \r
 #if portBYTE_ALIGNMENT == 8\r
-       #define portBYTE_ALIGNMENT_MASK ( 0x0007 )\r
+       #define portBYTE_ALIGNMENT_MASK ( 0x0007U )\r
 #endif\r
 \r
 #if portBYTE_ALIGNMENT == 4\r
@@ -363,6 +363,27 @@ extern "C" {
        StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION;\r
 #endif\r
 \r
+/* Used by heap_5.c. */\r
+typedef struct HeapRegion\r
+{\r
+       uint8_t *pucStartAddress;\r
+       size_t xSizeInBytes;\r
+} HeapRegion_t;\r
+\r
+/* \r
+ * Used to define multiple heap regions for use by heap_5.c.  This function\r
+ * must be called before any calls to pvPortMalloc() - not creating a task,\r
+ * queue, semaphore, mutex, software timer, event group, etc. will result in\r
+ * pvPortMalloc being called.\r
+ *\r
+ * pxHeapRegions passes in an array of HeapRegion_t structures - each of which\r
+ * defines a region of memory that can be used as the heap.  The array is \r
+ * terminated by a HeapRegions_t structure that has a size of 0.  The region \r
+ * with the lowest start address must appear first in the array.\r
+ */\r
+void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions );\r
+\r
+\r
 /*\r
  * Map to the memory management routines required for the port.\r
  */\r