1 #ifndef __MEM_MANAGER_H__
2 #define __MEM_MANAGER_H__
8 #define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
12 #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 8000 ) )
14 #define portBYTE_ALIGNMENT 8
18 #undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
19 #if portBYTE_ALIGNMENT == 8
20 #define portBYTE_ALIGNMENT_MASK ( 0x0007 )
23 #if portBYTE_ALIGNMENT == 4
24 #define portBYTE_ALIGNMENT_MASK ( 0x0003 )
27 #if portBYTE_ALIGNMENT == 2
28 #define portBYTE_ALIGNMENT_MASK ( 0x0001 )
31 #if portBYTE_ALIGNMENT == 1
32 #define portBYTE_ALIGNMENT_MASK ( 0x0000 )
35 #ifndef portBYTE_ALIGNMENT_MASK
36 #error "Invalid portBYTE_ALIGNMENT definition"
39 #define configUSE_MALLOC_FAILED_HOOK 1
40 #define portPOINTER_SIZE_TYPE unsigned int
42 #define heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( heapSTRUCT_SIZE * 2 ) )
55 static const unsigned short heapSTRUCT_SIZE = (
sizeof(
xBlockLink ) + portBYTE_ALIGNMENT - (
sizeof(
xBlockLink ) % portBYTE_ALIGNMENT ) );
70 void vApplicationMallocFailedHook(
void ) ;
72 void *pvPortMalloc(
size_t xWantedSize ) ;
74 void vPortFree(
void *pv ) ;
76 size_t xPortGetFreeHeapSize(
void ) ;
78 void vPortInitialiseBlocks(
void ) ;
struct A_BLOCK_LINK * pxNextFreeBlock
Definition: mem_manager.h:51
Definition: mem_manager.h:49
size_t xBlockSize
Definition: mem_manager.h:52