删除LVGL,屏幕驱动测试完成

This commit is contained in:
CSBOOK\44744
2026-06-25 23:10:18 +08:00
parent 5812fc500b
commit 3993bf962f
220 changed files with 1059 additions and 3455 deletions
@@ -217,6 +217,7 @@ void control_plane_stop_event_observer_runtime(void);
esp_err_t control_plane_fortune_refresh_now(void);
esp_err_t control_plane_init_lcd_device(void);
esp_err_t control_plane_start_lcd_render_worker(void);
void control_plane_start_lcd_render_loop(void);
esp_err_t control_plane_request_boot_expression(void);
/**
@@ -1469,6 +1469,34 @@ static void control_plane_daily_fortune_task(void *arg)
}
#endif
esp_err_t control_plane_start_lcd_render_worker(void)
{
#if CONFIG_TQ_SCREEN_ENABLE
control_plane_set_runtime_stop_requested(false);
if (control_plane_get_task_handle(&s_lcd_render_loop_task) != NULL) {
ESP_LOGI(TAG, "LCD render worker already running");
return ESP_OK;
}
esp_err_t task_err = control_plane_create_task(control_plane_lcd_render_loop_task,
"cp_lcd_render",
CONTROL_PLANE_LCD_RENDER_LOOP_TASK_STACK_SIZE,
4,
CONTROL_PLANE_LOCAL_TASK_CORE,
&s_lcd_render_loop_task);
if (task_err != ESP_OK) {
return task_err;
}
ESP_LOGI(TAG, "LCD render worker started");
return ESP_OK;
#else
ESP_LOGI(TAG, "LCD render worker disabled by configuration");
return ESP_ERR_NOT_SUPPORTED;
#endif
}
esp_err_t control_plane_start_runtime_workers(void)
{
control_plane_set_runtime_stop_requested(false);
@@ -1513,17 +1541,10 @@ esp_err_t control_plane_start_runtime_workers(void)
}
#if CONFIG_TQ_SCREEN_ENABLE
if (control_plane_get_task_handle(&s_lcd_render_loop_task) == NULL) {
esp_err_t task_err = control_plane_create_task(control_plane_lcd_render_loop_task,
"cp_lcd_render",
CONTROL_PLANE_LCD_RENDER_LOOP_TASK_STACK_SIZE,
4,
CONTROL_PLANE_LOCAL_TASK_CORE,
&s_lcd_render_loop_task);
if (task_err != ESP_OK) {
control_plane_stop_runtime_workers();
return task_err;
}
esp_err_t lcd_worker_err = control_plane_start_lcd_render_worker();
if (lcd_worker_err != ESP_OK) {
control_plane_stop_runtime_workers();
return lcd_worker_err;
}
#else
ESP_LOGI(TAG, "LCD render loop disabled by configuration");