mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-30 08:20:21 +00:00
ffa3996a5e
* clang-format: AllowShortEnumsOnASingleLine: false * clang-format: InsertNewlineAtEOF: true * clang-format: Standard: c++20 * clang-format: AlignConsecutiveBitFields * clang-format: AlignConsecutiveMacros * clang-format: RemoveParentheses: ReturnStatement * clang-format: RemoveSemicolon: true * Restored RemoveParentheses: Leave, retained general changes for it * formatting: fixed logging TAGs * Formatting update for dev Co-authored-by: あく <alleteam@gmail.com>
44 lines
660 B
C
44 lines
660 B
C
/**
|
|
* @file furi_hal_memory.h
|
|
* Memory HAL API
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Init memory pool manager
|
|
*/
|
|
void furi_hal_memory_init(void);
|
|
|
|
/**
|
|
* @brief Allocate memory from separate memory pool. That memory can't be freed.
|
|
*
|
|
* @param size
|
|
* @return void*
|
|
*/
|
|
void* furi_hal_memory_alloc(size_t size);
|
|
|
|
/**
|
|
* @brief Get free memory pool size
|
|
*
|
|
* @return size_t
|
|
*/
|
|
size_t furi_hal_memory_get_free(void);
|
|
|
|
/**
|
|
* @brief Get max free block size from memory pool
|
|
*
|
|
* @return size_t
|
|
*/
|
|
size_t furi_hal_memory_max_pool_block(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|