mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-02 18:10:57 +02:00
newlib: added heap_caps_aligned_alloc on bottom of memalign
This commit is contained in:
@@ -91,9 +91,7 @@ void newlib_include_heap_impl(void)
|
|||||||
*/
|
*/
|
||||||
void* memalign(size_t alignment, size_t n)
|
void* memalign(size_t alignment, size_t n)
|
||||||
{
|
{
|
||||||
extern void memalign_function_was_linked_but_unsupported_in_esp_idf(void);
|
return heap_caps_aligned_alloc(alignment, n, MALLOC_CAP_DEFAULT);
|
||||||
memalign_function_was_linked_but_unsupported_in_esp_idf();
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int malloc_trim(size_t pad)
|
int malloc_trim(size_t pad)
|
||||||
|
Reference in New Issue
Block a user