]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/MemMang/heap_5.c
Update version number to 8.1.2 after moving the defaulting of configUSE_PORT_OPTIMISE...
[freertos] / FreeRTOS / Source / portable / MemMang / heap_5.c
index c01205e878fad7d057f1df984ad03e5aed724aef..d61d9b523291a74c3152d4e6d996d11d7f7c99ee 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
@@ -95,8 +95,8 @@
  *\r
  * HeapRegion_t xHeapRegions[] =\r
  * {\r
- *     { 0x80000000UL, 0x10000 }, << Defines a block of 0x10000 bytes starting at address 0x80000000\r
- *     { 0x90000000UL, 0xa0000 }, << Defines a block of 0xa0000 bytes starting at address of 0x90000000\r
+ *     { ( uint8_t * ) 0x80000000UL, 0x10000 }, << Defines a block of 0x10000 bytes starting at address 0x80000000\r
+ *     { ( uint8_t * ) 0x90000000UL, 0xa0000 }, << Defines a block of 0xa0000 bytes starting at address of 0x90000000\r
  *     { NULL, 0 }                << Terminates the array.\r
  * };\r
  *\r
@@ -424,14 +424,14 @@ uint8_t *puc;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void vPortDefineHeapRegions( HeapRegion_t *pxHeapRegions )\r
+void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions )\r
 {\r
 BlockLink_t *pxFirstFreeBlockInRegion = NULL, *pxPreviousFreeBlock;\r
 uint8_t *pucAlignedHeap;\r
 size_t xTotalRegionSize, xTotalHeapSize = 0;\r
 BaseType_t xDefinedRegions = 0;\r
 uint32_t ulAddress;\r
-HeapRegion_t *pxHeapRegion;\r
+const HeapRegion_t *pxHeapRegion;\r
 \r
        /* Can only call once! */\r
        configASSERT( pxEnd == NULL );\r