* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			44 lines
		
	
	
		
			647 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			647 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();
 | 
						|
 | 
						|
/**
 | 
						|
 * @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();
 | 
						|
 | 
						|
/**
 | 
						|
 * @brief Get max free block size from memory pool
 | 
						|
 * 
 | 
						|
 * @return size_t 
 | 
						|
 */
 | 
						|
size_t furi_hal_memory_max_pool_block();
 | 
						|
 | 
						|
#ifdef __cplusplus
 | 
						|
}
 | 
						|
#endif |