![]() |
![]() |
|
TI BLE5-Stack API Documentation
1.01.01.00
|
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_allocLimited (uint16 size) |
| Implement the OSAL dynamic memory allocation functionality. However, a first check is done to ensure that enough heap will remain after the allocation. More... | |
| void | osal_mem_free (void *ptr) |
| Implement the OSAL dynamic memory de-allocation functionality. More... | |
| void* osal_mem_alloc | ( | uint16 | size | ) |
Implement the OSAL dynamic memory allocation functionality.
| size | the number of bytes to allocate from the HEAP. |
| void* osal_mem_allocLimited | ( | uint16 | size | ) |
Implement the OSAL dynamic memory allocation functionality. However, a first check is done to ensure that enough heap will remain after the allocation.
| size | the number of bytes to allocate from the HEAP. |
| void osal_mem_free | ( | void * | ptr | ) |
Implement the OSAL dynamic memory de-allocation functionality.
| ptr | A valid pointer (i.e. a pointer returned by osal_mem_alloc()) to the memory to free. |