Loading...
Searching...
No Matches
furi_hal_memory.h File Reference

Memory HAL API. More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Functions

void furi_hal_memory_init (void)
 Init memory pool manager.
 
void * furi_hal_memory_alloc (size_t size)
 Allocate memory from separate memory pool.
 
size_t furi_hal_memory_get_free (void)
 Get free memory pool size.
 
size_t furi_hal_memory_max_pool_block (void)
 Get max free block size from memory pool.
 

Detailed Description

Memory HAL API.

Function Documentation

◆ furi_hal_memory_alloc()

void * furi_hal_memory_alloc ( size_t size)

Allocate memory from separate memory pool.

That memory can't be freed.

Parameters
size
Returns
void*

◆ furi_hal_memory_get_free()

size_t furi_hal_memory_get_free ( void )

Get free memory pool size.

Returns
size_t

◆ furi_hal_memory_max_pool_block()

size_t furi_hal_memory_max_pool_block ( void )

Get max free block size from memory pool.

Returns
size_t