LVGL的触摸屏的回调函数无法触发的问题

各位老师好,我在使用LVGL初始化输入设备时,发现触摸屏的回调函数无法触发。
初始化函数与官方的相同,如下:

void lv_port_indev_init(void)
{
static lv_indev_drv_t indev_drv;
touchpad_init();
lv_indev_drv_init(&indev_drv);
indev_drv.type = LV_INDEV_TYPE_POINTER;
indev_drv.read_cb = touchpad_read;
indev_touchpad = lv_indev_drv_register(&indev_drv);
}

在触摸时触摸回调函数touchpad_read无法进入,

static void touchpad_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data)
{
static lv_coord_t last_x = 0;
static lv_coord_t last_y = 0;
xil_printf("touchpad_read   is      ............\r\n");
if(touchpad_is_pressed()) {
        touchpad_get__xy(&last_x, &last_y);
        data->state = LV_INDEV_STATE_PR;
    }
    else {
        data->state = LV_INDEV_STATE_REL;
   }
    data->point.x = last_x;
    data->point.y = last_y;
}

因为我加的一条打印没有打印出来

xil_printf("touchpad_read   is      ............\r\n");

获取坐标信息我采用的是IIC驱动,点击触摸屏,IIC能正常获取屏幕的坐标信息。但是这个回调函数无法进入是因为啥,麻烦老师有空给解答一下。

@100ask_lvgl_fae
@100ASK_RKQ @100ask_Alen
麻烦老师们谁有空看一下

已解决,谢谢各位老师
#define LV_TICK_CUSTOM 1
#define LV_TICK_CUSTOM_INCLUDE LV_RTTHREAD_INCLUDE
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (rt_tick_get_millisecond())