35 #if !defined ( OSALMEM_METRICS ) 36 #define OSALMEM_METRICS FALSE 44 #define osal_stack_used() OnBoard_stack_used() 61 void osal_mem_init(
void );
70 void osal_mem_kick(
void );
77 #ifdef DPRINTF_OSALHEAPTRACE 78 void *osal_mem_alloc_dbg( uint16 size,
const char *fname,
unsigned lnum );
79 #define osal_mem_alloc(_size ) osal_mem_alloc_dbg(_size, __FILE__, __LINE__) 100 #ifdef DPRINTF_OSALHEAPTRACE 101 void osal_mem_free_dbg(
void *ptr,
const char *fname,
unsigned lnum );
102 #define osal_mem_free(_ptr ) osal_mem_free_dbg(_ptr, __FILE__, __LINE__) 112 #if ( OSALMEM_METRICS ) 118 uint16 osal_heap_block_max(
void );
125 uint16 osal_heap_block_cnt(
void );
132 uint16 osal_heap_block_free(
void );
139 uint16 osal_heap_mem_used(
void );
142 #if defined (ZTOOL_P1) || defined (ZTOOL_P2) 148 uint16 osal_heap_high_water(
void );
void * osal_mem_alloc(uint16 size)
Implement the OSAL dynamic memory allocation functionality.
void osal_mem_free(void *ptr)
Implement the OSAL dynamic memory de-allocation functionality.
void * osal_mem_allocLimited(uint16 size)
Implement the OSAL dynamic memory allocation functionality. However, a first check is done to ensure ...