Skip to content

Commit

Permalink
chore(cmsis-pack): prepare for v8.3.11 (#4936)
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer authored and fabiobaltieri committed Jan 22, 2024
1 parent 7548f7a commit 0af7bfc
Show file tree
Hide file tree
Showing 9 changed files with 192 additions and 66 deletions.
Binary file not shown.
48 changes: 36 additions & 12 deletions env_support/cmsis-pack/LVGL.lvgl.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@
<repository type="git">https://github.com/lvgl/lvgl.git</repository>

<releases>
<release date="2023-09-19" version="8.3.10" url="https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/LVGL.lvgl.8.3.10.pack">
<release date="2023-12-05" version="8.3.11" url="https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/LVGL.lvgl.8.3.11.pack">
- LVGL 8.3.11
- Add LittleFS Library to LVGL8
- Backport Tiny TTF to LVGL8
- Some minor fixes
</release>
<release date="2023-09-19" version="8.3.10" url="https://github.com/lvgl/lvgl/raw/9e388055ec0bcad5179461e66d6dac6823129eee/env_support/cmsis-pack/LVGL.lvgl.8.3.10.pack">
- LVGL 8.3.10
- Some minor fixes
</release>

<release date="2023-08-04" version="8.3.9" url="https://github.com/lvgl/lvgl/raw/bdf5bfb88ce107f16cf9128cf75e61394b3219d0/env_support/cmsis-pack/LVGL.lvgl.8.3.9.pack">
- LVGL 8.3.10
- Add snapshot, fragment, imgfont, gridnav, msg and monkey
Expand Down Expand Up @@ -303,7 +310,7 @@
-->

<components>
<bundle Cbundle="LVGL" Cclass="LVGL" Cversion="8.3.10">
<bundle Cbundle="LVGL" Cclass="LVGL" Cversion="8.3.11">
<description>LVGL (Light and Versatile Graphics Library) is a free and open-source graphics library providing everything you need to create an embedded GUI with easy-to-use graphical elements, beautiful visual effects and a low memory footprint.</description>
<doc></doc>
<component Cgroup="lvgl" Csub="Essential" >
Expand Down Expand Up @@ -436,7 +443,7 @@
<file category="sourceC" name="src/widgets/lv_textarea.c" />

<!-- general -->
<file category="preIncludeGlobal" name="lv_conf_cmsis.h" attr="config" version="1.0.3" />
<file category="preIncludeGlobal" name="lv_conf_cmsis.h" attr="config" version="1.0.4" />
<file category="sourceC" name="lv_cmsis_pack.c" attr="config" version="1.0.0" />
<file category="header" name="lvgl.h" />
<file category="doc" name="README.md"/>
Expand Down Expand Up @@ -721,10 +728,27 @@
<file category="sourceC" name="src/extra/libs/fsdrv/lv_fs_fatfs.c" />
<file category="sourceC" name="src/extra/libs/fsdrv/lv_fs_posix.c" />
<file category="sourceC" name="src/extra/libs/fsdrv/lv_fs_stdio.c" />
<file category="sourceC" name="src/extra/libs/fsdrv/lv_fs_littlefs.c" />
</files>

</component>

<component Cgroup="lvgl" Csub="Libs Tiny TTF" condition="LVGL-Essential">
<description>Add Tiny TTF Library</description>
<files>
<!-- src/extra/libs/tiny_ttf -->
<file category="sourceC" name="src/extra/libs/tiny_ttf/lv_tiny_ttf.c" />
</files>

<RTE_Components_h>

/*! \brief enable Tiny TTF Library */
#define LV_USE_TINY_TTF 1
</RTE_Components_h>

</component>


<component Cgroup="lvgl" Csub="Libs RLOTTIE" condition="LVGL-Essential">
<description>Add RLOTTIE support, an extra librbary is required.</description>
<files>
Expand All @@ -735,7 +759,7 @@
<RTE_Components_h>

/*! \brief enable RLOTTIE support */
#define LV_USE_RLOTTIE 1
#define LV_USE_RLOTTIE 1
</RTE_Components_h>

</component>
Expand All @@ -750,7 +774,7 @@
<RTE_Components_h>

/*! \brief enable ffmpeg support */
#define LV_USE_FFMPEG 1
#define LV_USE_FFMPEG 1
</RTE_Components_h>

</component>
Expand All @@ -765,7 +789,7 @@
<RTE_Components_h>

/*! \brief enable ffmpeg support */
#define LV_USE_IME_PINYIN 1
#define LV_USE_IME_PINYIN 1
</RTE_Components_h>

</component>
Expand Down Expand Up @@ -811,7 +835,7 @@
<RTE_Components_h>

/*! \brief enable the Grid Navigation support*/
#define LV_USE_GRIDNAV 1
#define LV_USE_GRIDNAV 1
</RTE_Components_h>

</component>
Expand All @@ -826,7 +850,7 @@
<RTE_Components_h>

/*! \brief enable the image font support*/
#define LV_USE_IMGFONT 1
#define LV_USE_IMGFONT 1
</RTE_Components_h>

</component>
Expand All @@ -841,7 +865,7 @@
<RTE_Components_h>

/*! \brief enable the monkey service support*/
#define LV_USE_MONKEY 1
#define LV_USE_MONKEY 1
</RTE_Components_h>

</component>
Expand All @@ -856,7 +880,7 @@
<RTE_Components_h>

/*! \brief enable the message service support*/
#define LV_USE_MSG 1
#define LV_USE_MSG 1
</RTE_Components_h>

</component>
Expand Down Expand Up @@ -885,7 +909,7 @@
<RTE_Components_h>

/*! \brief enable demo:bencharmk */
#define LV_USE_DEMO_BENCHMARK 1
#define LV_USE_DEMO_BENCHMARK 1
</RTE_Components_h>

</component>
Expand All @@ -905,7 +929,7 @@
<RTE_Components_h>

/*! \brief enable demo:widgets support */
#define LV_USE_DEMO_WIDGETS 1
#define LV_USE_DEMO_WIDGETS 1
</RTE_Components_h>

</component>
Expand Down
4 changes: 2 additions & 2 deletions env_support/cmsis-pack/LVGL.pidx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<index schemaVersion="1.0.0" xs:noNamespaceSchemaLocation="PackIndex.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<vendor>LVGL</vendor>
<url>https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/</url>
<timestamp>2023-09-19</timestamp>
<timestamp>2023-12-09</timestamp>
<pindex>
<pdsc url="https://raw.githubusercontent.com/lvgl/lvgl/release/v8.3/env_support/cmsis-pack/" vendor="LVGL" name="lvgl" version="8.3.10"/>
<pdsc url="https://raw.githubusercontent.com/lvgl/lvgl/release/v8.3/env_support/cmsis-pack/" vendor="LVGL" name="lvgl" version="8.3.11"/>
</pindex>
</index>
57 changes: 47 additions & 10 deletions env_support/cmsis-pack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,33 @@ remove the misleading guide above this code segment.
- LV_USE_GPU_SWM341_DMA2D
- LV_USE_GPU_ARM2D
- LV_USE_IME_PINYIN
- LV_USE_PNG
- LV_USE_BMP
- LV_USE_SJPG
- LV_USE_GIF
- LV_USE_QRCODE
- LV_USE_FREETYPE
- LV_USE_TINY_TTF
- LV_USE_RLOTTIE
- LV_USE_FFMPEG
- LV_USE_SNAPSHOT
- LV_USE_MONKEY
- LV_USE_GRIDNAV
- LV_USE_FRAGMENT
- LV_USE_IMGFONT
- LV_USE_MSG
- LV_USE_IME_PINYIN
5. Update macro `LV_ATTRIBUTE_MEM_ALIGN` and `LV_ATTRIBUTE_MEM_ALIGN_SIZE` to force a WORD alignment.
```c
#define LV_ATTRIBUTE_MEM_ALIGN_SIZE 4
#define LV_ATTRIBUTE_MEM_ALIGN __attribute__((aligned(4)))
```
Update macro `LV_MEM_SIZE` to `(64*1024U)`.

Update macro `LV_FONT_MONTSERRAT_12` to `1`.

Update macro `LV_FONT_MONTSERRAT_12` to `1`.

6. Update Theme related macros:

```c
Expand Down Expand Up @@ -89,25 +110,41 @@ Update macro `LV_MEM_SIZE` to `(64*1024U)`.
#define LV_TICK_CUSTOM 1
#if LV_TICK_CUSTOM
extern uint32_t SystemCoreClock;
#define LV_TICK_CUSTOM_INCLUDE "perf_counter.h"
#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
#define LV_TICK_CUSTOM_INCLUDE "perf_counter.h"
#define LV_TICK_CUSTOM_SYS_TIME_EXPR get_system_ms()
#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*/
/*If using lvgl as ESP32 component*/
// #define LV_TICK_CUSTOM_INCLUDE "esp_timer.h"
// #define LV_TICK_CUSTOM_SYS_TIME_EXPR ((esp_timer_get_time() / 1000LL))
#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**'.


9. Remove all content in `DEMO USAGE` section but keep the following:

```c
/*Show some widget. It might be required to increase `LV_MEM_SIZE` */
#if LV_USE_DEMO_WIDGETS
#define LV_DEMO_WIDGETS_SLIDESHOW 0
#endif

/*Benchmark your system*/
#if LV_USE_DEMO_BENCHMARK
/*Use RGB565A8 images with 16 bit color depth instead of ARGB8565*/
#define LV_DEMO_BENCHMARK_RGB565A8 1
#endif
```



10. Thoroughly remove the `3rd party libraries` section.
11. rename '**lv_conf_template.h**' to '**lv_conf_cmsis.h**'.



Expand Down

0 comments on commit 0af7bfc

Please sign in to comment.