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__) 92 #ifdef DPRINTF_OSALHEAPTRACE 93 void osal_mem_free_dbg(
void *ptr,
const char *fname,
unsigned lnum );
94 #define osal_mem_free(_ptr ) osal_mem_free_dbg(_ptr, __FILE__, __LINE__) 104 #if ( OSALMEM_METRICS ) 110 uint16 osal_heap_block_max(
void );
117 uint16 osal_heap_block_cnt(
void );
124 uint16 osal_heap_block_free(
void );
131 uint16 osal_heap_mem_used(
void );
134 #if defined (ZTOOL_P1) || defined (ZTOOL_P2) 140 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.