pre-release for LVGL cmsis-pack v1.0.1 (#3091)

* pre-release for LVGL cmsis-pack v1.0.1

* update lv_conf_cmsis.h
This commit is contained in:
Gabriel Wang
2022-02-16 18:39:16 +00:00
committed by GitHub
parent 4a766c516d
commit a82dc49c26
4 changed files with 14 additions and 5 deletions

View File

@@ -91,7 +91,12 @@
#if LV_TICK_CUSTOM
extern uint32_t SystemCoreClock;
#define LV_TICK_CUSTOM_INCLUDE "perf_counter.h"
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (get_system_ticks() / (SystemCoreClock / 1000ul))
#if __PER_COUNTER_VER__ < 10902ul
#define LV_TICK_CUSTOM_SYS_TIME_EXPR ((uint32_t)get_system_ticks() / (SystemCoreClock / 1000ul))
#else
#define LV_TICK_CUSTOM_SYS_TIME_EXPR get_system_ms()
#endif
#endif /*LV_TICK_CUSTOM*/
#else
#define LV_TICK_CUSTOM 0