You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
605 B
29 lines
605 B
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2026-01-24 Administrator the first version
|
|
*/
|
|
#include <rtthread.h>
|
|
#include "lvgl.h"
|
|
#include <stddef.h>
|
|
|
|
extern struct rt_memheap sdram_heap; //
|
|
|
|
void *lv_custom_mem_alloc(size_t size)
|
|
{
|
|
return rt_memheap_alloc(&sdram_heap, size);
|
|
}
|
|
|
|
void lv_custom_mem_free(void *ptr)
|
|
{
|
|
if (ptr) rt_memheap_free(ptr);
|
|
}
|
|
|
|
void *lv_custom_mem_realloc(void *ptr, size_t new_size)
|
|
{
|
|
return rt_memheap_realloc(&sdram_heap, ptr, new_size);
|
|
}
|
|
|