main_ubi_sdk v 0.1.3
This is UBI4 documentation
custom_heap.c File Reference
#include "utils/custom_heap.h"
#include <string.h>
#include <stdlib.h>
Include dependency graph for custom_heap.c:

Functions

custom_heap_obj_structcreate_heap (uint8_t *heapBuf, uint32_t heapSize, uint16_t NumHeapSlots)
 
custom_heap_slot_structget_heap_buffer (custom_heap_obj_struct *heap, uint32_t BufferSize)
 
void free_heap_buffer (custom_heap_obj_struct *heap, custom_heap_slot_struct *heap_slot_str)
 
void free_heap (custom_heap_obj_struct *heap)
 

Function Documentation

◆ create_heap()

custom_heap_obj_struct * create_heap ( uint8_t * heapBuf,
uint32_t heapSize,
uint16_t NumHeapSlots )
Here is the caller graph for this function:

◆ free_heap()

void free_heap ( custom_heap_obj_struct * heap)
Here is the caller graph for this function:

◆ free_heap_buffer()

void free_heap_buffer ( custom_heap_obj_struct * heap,
custom_heap_slot_struct * heap_slot_str )
Here is the caller graph for this function:

◆ get_heap_buffer()

custom_heap_slot_struct * get_heap_buffer ( custom_heap_obj_struct * heap,
uint32_t BufferSize )
Here is the caller graph for this function: