/*\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
*\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
}\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