Skip to content

Commit

Permalink
AP_HAL: added MEM_FILESYSTEM memory type
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge authored and magicrub committed Jan 5, 2024
1 parent c54aa02 commit f2a1c80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_HAL/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ class AP_HAL::Util {
// 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); }
Expand Down

0 comments on commit f2a1c80

Please sign in to comment.