fix(rt-thread): improve the structure (#2912)

This commit is contained in:
Man, Jianting (Meco)
2021-12-20 13:17:08 +01:00
committed by GitHub
parent 70778fb9e4
commit e24a9fdf18
2 changed files with 3 additions and 12 deletions
-1
View File
@@ -46,7 +46,6 @@
#ifdef PKG_LVGL_ENABLE_LOG
# define LV_USE_LOG 1
# define LV_LOG_PRINTF 0
#else
# define LV_USE_LOG 0
#endif
+3 -11
View File
@@ -11,17 +11,13 @@
#ifdef __RTTHREAD__
#include <rtthread.h>
#include <lvgl.h>
#define DBG_TAG "LVGL"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#ifndef PKG_USING_LVGL_DISP_DEVICE
# include <lv_port_disp.h>
#endif
#ifndef PKG_USING_LVGL_INDEV_DEVICE
# include <lv_port_indev.h>
#endif
#include <lvgl.h>
#include <lv_port_disp.h>
#include <lv_port_indev.h>
#if LV_USE_LOG
static void lv_rt_log(const char *buf)
@@ -38,12 +34,8 @@ static int lv_port_init(void)
lv_init();
#ifndef PKG_USING_LVGL_DISP_DEVICE
lv_port_disp_init();
#endif
#ifndef PKG_USING_LVGL_INDEV_DEVICE
lv_port_indev_init();
#endif
return 0;
}