35 #if !defined ( OSALMEM_METRICS ) 36 #define OSALMEM_METRICS FALSE 44 #define osal_stack_used() OnBoard_stack_used() 63 #ifdef DPRINTF_OSALHEAPTRACE 64 void *osal_mem_alloc_dbg( uint16 size,
const char *fname,
unsigned lnum );
65 #define osal_mem_alloc(_size ) osal_mem_alloc_dbg(_size, __FILE__, __LINE__) 86 #ifdef DPRINTF_OSALHEAPTRACE 87 void osal_mem_free_dbg(
void *ptr,
const char *fname,
unsigned lnum );
88 #define osal_mem_free(_ptr ) osal_mem_free_dbg(_ptr, __FILE__, __LINE__) 98 #if ( OSALMEM_METRICS ) 104 uint16 osal_heap_block_max(
void );
111 uint16 osal_heap_block_cnt(
void );
118 uint16 osal_heap_block_free(
void );
125 uint16 osal_heap_mem_used(
void );
128 #if defined (ZTOOL_P1) || defined (ZTOOL_P2) 134 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 ...