mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
44 lines
No EOL
659 B
C
44 lines
No EOL
659 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 |