LVGL定时器
在lv_timer.c中有相关的操作函数
Create a timer(创建定时器)
LVGL 有一个内置的定时器系统。可以注册一个函数以定期调用它。定时器在lv_timer_handler()中被处理和调用,它需要每隔几毫秒调用一次
Ready and Reset(准备与重置)
lv_timer_ready(timer) 使计时器在下一次调用 lv_timer_handler() 时运行。
lv_timer_reset(timer) 重置计时器的周期。它将在定义的毫秒时间段过去后再次调用
Set parameters(参数设置)
lv_timer_set_cb(timer, new_cb) 设置回调函数
lv_timer_set_period(timer, new_period) 设置周期
ATJ2158 Tick
1:使用的是timer 2定时器提供的计数。
2:Lvgl_tick.c 中提供了获取tick的函数,
最终调用中act_timer.c中的sys_clock_cycle_get_32()函数,timer 2选择的时钟源为HOSC(32MHZ)
t2clk: