feat(cmsis-pack): prepare for lvgl v8.2.0 release (#3062)

This commit is contained in:
Gabriel Wang
2022-01-31 12:15:27 +00:00
committed by GitHub
parent 4bd1e7e9f7
commit d851fe0528
4 changed files with 51 additions and 29 deletions

View File

@@ -64,10 +64,28 @@
#define LV_USE_THEME_MONO 0
#endif
```
7. Thoroughly remove the 'DEMO USAGE' section.
8. Thoroughly remove the '3rd party libraries' section.
9. rename '**lv_conf_template.h**' to '**lv_conf_cmsis.h**'.
7. Update LV_TICK_CUSTOM related macros:
```c
/*Use a custom tick source that tells the elapsed time in milliseconds.
*It removes the need to manually update the tick with `lv_tick_inc()`)*/
#ifdef __PERF_COUNTER__
#define LV_TICK_CUSTOM 1
#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))
#endif /*LV_TICK_CUSTOM*/
#else
#define LV_TICK_CUSTOM 0
#if LV_TICK_CUSTOM
#define LV_TICK_CUSTOM_INCLUDE "Arduino.h" /*Header for the system time function*/
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis()) /*Expression evaluating to current system time in ms*/
#endif /*LV_TICK_CUSTOM*/
#endif /*__PERF_COUNTER__*/
```
9. Thoroughly remove the 'DEMO USAGE' section.
10. Thoroughly remove the '3rd party libraries' section.
10. rename '**lv_conf_template.h**' to '**lv_conf_cmsis.h**'.