add lvgl for xiuos

This commit is contained in:
Wang_Weigen
2022-01-11 17:11:17 +08:00
parent 37c247f4d7
commit c6458f1f1d
8 changed files with 65 additions and 35 deletions
+3 -2
View File
@@ -14,7 +14,8 @@ extern void lv_port_indev_init(void);
#if LV_USE_LOG && LV_LOG_PRINTF
static void lv_rt_log(const char *buf)
{
LOG_I(buf);
printf(buf);
printf("\n");
}
#endif
@@ -23,12 +24,12 @@ int lv_port_init(void)
#if LV_USE_LOG && LV_LOG_PRINTF
lv_log_register_print_cb(lv_rt_log);
#endif
lv_init();
#ifndef PKG_USING_LVGL_DISP_DEVICE
lv_port_disp_init();
#endif
#ifndef PKG_USING_LVGL_INDEV_DEVICE
lv_port_indev_init();
#endif