heap/heap_caps: Added tests for align allocation on both internal and external ram

This commit is contained in:
Felipe Neves
2019-11-13 16:37:07 +08:00
parent 7fbf4c74d7
commit a2db437c46
3 changed files with 83 additions and 30 deletions

View File

@@ -222,6 +222,9 @@ void *multi_heap_aligned_alloc(multi_heap_handle_t heap, size_t size, size_t ali
#else
(void)data;
#endif
} else {
multi_heap_internal_unlock(heap);
return NULL;
}
//Lets align our new obtained block address: