AP_HAL: added MEM_FILESYSTEM memory type

This commit is contained in:
Andrew Tridgell 2024-01-05 13:34:55 +11:00 committed by Tom Pittenger
parent c54aa0241a
commit f2a1c80652
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,8 @@ public:
// allocate and free DMA-capable memory if possible. Otherwise return normal memory
enum Memory_Type {
MEM_DMA_SAFE,
MEM_FAST
MEM_FAST,
MEM_FILESYSTEM
};
virtual void *malloc_type(size_t size, Memory_Type mem_type) { return calloc(1, size); }
virtual void free_type(void *ptr, size_t size, Memory_Type mem_type) { return free(ptr); }