W800_Smart_Watch/src/W800 SDK v1.00.08/app/gfx/gfx_task.c

24 lines
509 B
C

#include "app_common.h"
#include "lvgl.h"
#include "FreeRTOS.h"
#include "wm_include.h"
void gfx_task(void *param)
{
TickType_t time_ref = tls_os_get_time();
APP_LOG_TRACE("starting");
/* Initialize the lvgl library*/
lv_init();
/* Create, initialize and register the display driver*/
static lv_disp_drv_t display_driver;
lv_disp_drv_init(&display_driver);
for(;;)
{
lv_timer_handler();
tls_os_time_delay_until(&time_ref, pdMS_TO_TICKS(5));
}
}