mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add fb_free_all.
* Free all blocks allocated on fb ram
This commit is contained in:
parent
84ff228384
commit
f3e85e1dbb
@ -57,3 +57,10 @@ void fb_free()
|
||||
pointer += *((uint32_t *) pointer); // Get size and pop.
|
||||
}
|
||||
}
|
||||
|
||||
void fb_free_all()
|
||||
{
|
||||
while (pointer < &_fs_cache) {
|
||||
pointer += *((uint32_t *) pointer); // Get size and pop.
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,4 +13,5 @@ void fb_alloc_init0();
|
||||
void *fb_alloc(uint32_t size);
|
||||
void *fb_alloc0(uint32_t size);
|
||||
void fb_free();
|
||||
void fb_free_all();
|
||||
#endif /* __FF_ALLOC_H__ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user