fix(rt-thread): improve the structure (#2912)
This commit is contained in:
committed by
GitHub
parent
70778fb9e4
commit
e24a9fdf18
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user