提交 88242569 编写于 作者: Y yanxiaoyong.yxy 提交者: skylarCai

IssueID: 1560: lvgl stack decrease from 40KB to 4KB and modify lvgl schedule api.

[Detail]
none

[Verified Cases]
Build Pass: <none>
Test Pass: <none>
上级 e6faf092
...@@ -123,7 +123,7 @@ STATIC mp_obj_t display_lvgl_make_new(const mp_obj_type_t *type, size_t n_args, ...@@ -123,7 +123,7 @@ STATIC mp_obj_t display_lvgl_make_new(const mp_obj_type_t *type, size_t n_args,
void start_display() void start_display()
{ {
mp_thread_create_c(guiTask, "gui", 4096 * 10, NULL, ESP_TASK_PRIO_MIN + 1, NULL, 0); mp_thread_create_c(guiTask, "gui", 4 * 1024, NULL, ESP_TASK_PRIO_MIN + 1, NULL, 0);
} }
void driver_init() void driver_init()
...@@ -156,7 +156,7 @@ static void guiTask(void *pvParameter) ...@@ -156,7 +156,7 @@ static void guiTask(void *pvParameter)
/* Try to take the semaphore, call lvgl related function on success */ /* Try to take the semaphore, call lvgl related function on success */
if (pdTRUE == xSemaphoreTake(xGuiSemaphore, portMAX_DELAY)) { if (pdTRUE == xSemaphoreTake(xGuiSemaphore, portMAX_DELAY)) {
mp_sched_schedule((mp_obj_t)&mp_lv_task_handler_obj, mp_const_none); callback_to_python_LoBo((mp_obj_t)&mp_lv_task_handler_obj, mp_const_none, NULL);
xSemaphoreGive(xGuiSemaphore); xSemaphoreGive(xGuiSemaphore);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册