TI BLE-Stack for Bluetooth 4.2 API Documentation  3.01.00.07
Macros | Functions
osal_memory.h File Reference

Detailed Description

his module defines the OSAL memory control functions.

Go to the source code of this file.

Macros

#define OSALMEM_METRICS   FALSE
 Set to TRUE to gather OSAL heap metrics.
 

Functions

void * osal_mem_alloc (uint16 size)
 Implement the OSAL dynamic memory allocation functionality. More...
 
void osal_mem_free (void *ptr)
 Implement the OSAL dynamic memory de-allocation functionality. More...
 

Function Documentation

§ osal_mem_alloc()

void* osal_mem_alloc ( uint16  size)

Implement the OSAL dynamic memory allocation functionality.

Parameters
sizethe number of bytes to allocate from the HEAP.

§ osal_mem_free()

void osal_mem_free ( void *  ptr)

Implement the OSAL dynamic memory de-allocation functionality.

Parameters
ptrA valid pointer (i.e. a pointer returned by osal_mem_alloc()) to the memory to free.
Copyright 2017, Texas Instruments Incorporated