aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/micropython/lv_mem_core_micropython.c
diff options
context:
space:
mode:
authorGabor Kiss-Vamosi <kisvegabor@gmail.com>2023-07-05 13:05:19 +0200
committerGabor Kiss-Vamosi <kisvegabor@gmail.com>2023-07-05 13:05:19 +0200
commitf753265a799bdd910881238cb36f8d731f6d8727 (patch)
treeedbdff1ea253720fb4e0a6ced67ea521647f779c /src/stdlib/micropython/lv_mem_core_micropython.c
parent08870996d15e4bf4e8f3ca976991d35a76c7054e (diff)
downloadlvgl-f753265a799bdd910881238cb36f8d731f6d8727.tar.gz
lvgl-f753265a799bdd910881238cb36f8d731f6d8727.zip
arch(draw): add parallel rendering architecture
BREAKING CHANGE This is a huge update which introduces parallel rendering. lv_conf.h needs to be updated too.
Diffstat (limited to 'src/stdlib/micropython/lv_mem_core_micropython.c')
-rw-r--r--src/stdlib/micropython/lv_mem_core_micropython.c96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/stdlib/micropython/lv_mem_core_micropython.c b/src/stdlib/micropython/lv_mem_core_micropython.c
new file mode 100644
index 000000000..e5816924e
--- /dev/null
+++ b/src/stdlib/micropython/lv_mem_core_micropython.c
@@ -0,0 +1,96 @@
+/**
+ * @file lv_malloc_core.c
+ */
+
+/*********************
+ * INCLUDES
+ *********************/
+#include "../lv_mem.h"
+#if LV_USE_STDLIB_MALLOC == LV_STDLIB_MICROPYTHON
+#include "../../stdlib/lv_mem.h"
+#include "include/lv_mp_mem_custom_include.h"
+
+/*********************
+ * DEFINES
+ *********************/
+
+/**********************
+ * TYPEDEFS
+ **********************/
+
+/**********************
+ * STATIC PROTOTYPES
+ **********************/
+
+/**********************
+ * STATIC VARIABLES
+ **********************/
+
+/**********************
+ * MACROS
+ **********************/
+/**********************
+ * GLOBAL FUNCTIONS
+ **********************/
+
+void lv_mem_init(void)
+{
+ return; /*Nothing to init*/
+}
+
+void lv_mem_deinit(void)
+{
+ return; /*Nothing to deinit*/
+
+}
+
+lv_mem_pool_t lv_mem_add_pool(void * mem, size_t bytes)
+{
+ /*Not supported*/
+ LV_UNUSED(mem);
+ LV_UNUSED(bytes);
+ return NULL;
+}
+
+void lv_mem_remove_pool(lv_mem_pool_t pool)
+{
+ /*Not supported*/
+ LV_UNUSED(pool);
+ return;
+}
+
+
+void * lv_malloc_core(size_t size)
+{
+ return m_malloc(size);
+}
+
+void * lv_realloc_core(void * p, size_t new_size)
+{
+ return m_realloc(p, new_size);
+}
+
+void lv_free_core(void * p)
+{
+ m_free(p);
+}
+
+void lv_mem_monitor_core(lv_mem_monitor_t * mon_p)
+{
+ /*Not supported*/
+ LV_UNUSED(mon_p);
+ return;
+}
+
+
+lv_res_t lv_mem_test_core(void)
+{
+ /*Not supported*/
+ return LV_RES_OK;
+}
+
+/**********************
+ * STATIC FUNCTIONS
+ **********************/
+
+#endif /*LV_USE_BUILTIN_MALLOC*/