update to lvgl 8.2, switch to official github repo

This commit is contained in:
gagarinlg
2022-06-11 15:38:08 +02:00
committed by Raphael Coeffic
parent d075d57bfd
commit 1d9d112e31
3 changed files with 216 additions and 125 deletions
+2 -1
View File
@@ -14,4 +14,5 @@
shallow = true shallow = true
[submodule "radio/src/thirdparty/lvgl"] [submodule "radio/src/thirdparty/lvgl"]
path = radio/src/thirdparty/lvgl path = radio/src/thirdparty/lvgl
url = https://github.com/gagarinlg/lvgl.git url = https://github.com/lvgl/lvgl.git
branch = release/v8.2
+112 -22
View File
@@ -1,6 +1,6 @@
/** /**
* @file lv_conf.h * @file lv_conf.h
* Configuration file for v8.1.1-dev * Configuration file for v8.2.0
*/ */
/* /*
@@ -118,7 +118,6 @@
* radius * 4 bytes are used per circle (the most often used radiuses are saved) * radius * 4 bytes are used per circle (the most often used radiuses are saved)
* 0: to disable caching */ * 0: to disable caching */
#define LV_CIRCLE_CACHE_SIZE 4 #define LV_CIRCLE_CACHE_SIZE 4
#endif /*LV_DRAW_COMPLEX*/ #endif /*LV_DRAW_COMPLEX*/
/*Default image cache size. Image caching keeps the images opened. /*Default image cache size. Image caching keeps the images opened.
@@ -128,7 +127,30 @@
*0: to disable caching*/ *0: to disable caching*/
#define LV_IMG_CACHE_DEF_SIZE 0 #define LV_IMG_CACHE_DEF_SIZE 0
/*Maximum buffer size to allocate for rotation. Only used if software rotation is enabled in the display driver.*/ /*Number of stops allowed per gradient. Increase this to allow more stops.
*This adds (sizeof(lv_color_t) + 1) bytes per additional stop*/
#define LV_GRADIENT_MAX_STOPS 2
/*Default gradient buffer size.
*When LVGL calculates the gradient "maps" it can save them into a cache to avoid calculating them again.
*LV_GRAD_CACHE_DEF_SIZE sets the size of this cache in bytes.
*If the cache is too small the map will be allocated only while it's required for the drawing.
*0 mean no caching.*/
#define LV_GRAD_CACHE_DEF_SIZE 0
/*Allow dithering the gradients (to achieve visual smooth color gradients on limited color depth display)
*LV_DITHER_GRADIENT implies allocating one or two more lines of the object's rendering surface
*The increase in memory consumption is (32 bits * object width) plus 24 bits * object width if using error diffusion */
#define LV_DITHER_GRADIENT 0
#if LV_DITHER_GRADIENT
/*Add support for error diffusion dithering.
*Error diffusion dithering gets a much better visual result, but implies more CPU consumption and memory when drawing.
*The increase in memory consumption is (24 bits * object's width)*/
#define LV_DITHER_ERROR_DIFFUSION 0
#endif
/*Maximum buffer size to allocate for rotation.
*Only used if software rotation is enabled in the display driver.*/
#define LV_DISP_ROT_MAX_BUF (10*1024) #define LV_DISP_ROT_MAX_BUF (10*1024)
/*------------- /*-------------
@@ -141,7 +163,7 @@
#else //SIMU #else //SIMU
#define LV_USE_GPU_STM32_DMA2D 1 #define LV_USE_GPU_STM32_DMA2D 1
#endif #endif
#if LV_USE_GPU_STM32_DMA2D
/*Must be defined to include path of CMSIS header of target processor /*Must be defined to include path of CMSIS header of target processor
e.g. "stm32f769xx.h" or "stm32f429xx.h"*/ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
#define LV_GPU_DMA2D_CMSIS_INCLUDE "stm32f4xx.h" #define LV_GPU_DMA2D_CMSIS_INCLUDE "stm32f4xx.h"
@@ -150,6 +172,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
#define DMA2D_CR_START_Msk DMA2D_CR_START #define DMA2D_CR_START_Msk DMA2D_CR_START
#define DMA2D_FGPFCCR_AM_Pos 16 #define DMA2D_FGPFCCR_AM_Pos 16
#define DMA2D_FGPFCCR_ALPHA_Pos 24 #define DMA2D_FGPFCCR_ALPHA_Pos 24
#endif
/*Use NXP's PXP GPU iMX RTxxx platforms*/ /*Use NXP's PXP GPU iMX RTxxx platforms*/
#define LV_USE_GPU_NXP_PXP 0 #define LV_USE_GPU_NXP_PXP 0
@@ -165,13 +188,14 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
/*Use NXP's VG-Lite GPU iMX RTxxx platforms*/ /*Use NXP's VG-Lite GPU iMX RTxxx platforms*/
#define LV_USE_GPU_NXP_VG_LITE 0 #define LV_USE_GPU_NXP_VG_LITE 0
/*Use exnternal renderer*/ /*Use SDL renderer API*/
#define LV_USE_EXTERNAL_RENDERER 0
/*Use SDL renderer API. Requires LV_USE_EXTERNAL_RENDERER*/
#define LV_USE_GPU_SDL 0 #define LV_USE_GPU_SDL 0
#if LV_USE_GPU_SDL #if LV_USE_GPU_SDL
#define LV_GPU_SDL_INCLUDE_PATH <SDL2/SDL.h> #define LV_GPU_SDL_INCLUDE_PATH <SDL2/SDL.h>
/*Texture cache size, 8MB by default*/
#define LV_GPU_SDL_LRU_SIZE (1024 * 1024 * 8)
/*Custom blend mode for mask drawing, disable if you need to link with older SDL2 lib*/
#define LV_GPU_SDL_CUSTOM_BLEND_MODE (SDL_VERSION_ATLEAST(2, 0, 6))
#endif #endif
/*------------- /*-------------
@@ -227,16 +251,16 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
* Others * Others
*-----------*/ *-----------*/
/*1: Show CPU usage and FPS count in the right bottom corner*/ /*1: Show CPU usage and FPS count*/
#define LV_USE_PERF_MONITOR 0 #define LV_USE_PERF_MONITOR 0
#if LV_USE_PERF_MONITOR #if LV_USE_PERF_MONITOR
#define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT #define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
#endif #endif
/*1: Show the used memory and the memory fragmentation in the left bottom corner /*1: Show the used memory and the memory fragmentation
* Requires LV_MEM_CUSTOM = 0*/ * Requires LV_MEM_CUSTOM = 0*/
#define LV_USE_MEM_MONITOR 0 #define LV_USE_MEM_MONITOR 0
#if LV_USE_PERF_MONITOR #if LV_USE_MEM_MONITOR
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT #define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
#endif #endif
@@ -288,7 +312,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
/*Attribute to mark large constant arrays for example font's bitmaps*/ /*Attribute to mark large constant arrays for example font's bitmaps*/
#define LV_ATTRIBUTE_LARGE_CONST #define LV_ATTRIBUTE_LARGE_CONST
/*Complier prefix for a big array declaration in RAM*/ /*Compiler prefix for a big array declaration in RAM*/
#define LV_ATTRIBUTE_LARGE_RAM_ARRAY #define LV_ATTRIBUTE_LARGE_RAM_ARRAY
/*Place performance critical functions into a faster memory (e.g RAM)*/ /*Place performance critical functions into a faster memory (e.g RAM)*/
@@ -335,7 +359,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
/*Demonstrate special features*/ /*Demonstrate special features*/
#define LV_FONT_MONTSERRAT_12_SUBPX 0 #define LV_FONT_MONTSERRAT_12_SUBPX 0
#define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /*bpp = 3*/ #define LV_FONT_MONTSERRAT_28_COMPRESSED 0 /*bpp = 3*/
#define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /*Hebrew, Arabic, Perisan letters and all their forms*/ #define LV_FONT_DEJAVU_16_PERSIAN_HEBREW 0 /*Hebrew, Arabic, Persian letters and all their forms*/
#define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/ #define LV_FONT_SIMSUN_16_CJK 0 /*1000 most common CJK radicals*/
/*Pixel perfect monospace fonts*/ /*Pixel perfect monospace fonts*/
@@ -492,6 +516,8 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
#define LV_USE_LIST 1 #define LV_USE_LIST 1
#define LV_USE_MENU 1
#define LV_USE_METER 1 #define LV_USE_METER 1
#define LV_USE_MSGBOX 1 #define LV_USE_MSGBOX 1
@@ -550,18 +576,38 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
* 3rd party libraries * 3rd party libraries
*--------------------*/ *--------------------*/
/*File system interfaces for common APIs /*File system interfaces for common APIs */
*To enable set a driver letter for that API*/
#define LV_USE_FS_STDIO '\0' /*Uses fopen, fread, etc*/
//#define LV_FS_STDIO_PATH "/home/john/" /*Set the working directory. If commented it will be "./" */
#define LV_USE_FS_POSIX '\0' /*Uses open, read, etc*/ /*API for fopen, fread, etc*/
//#define LV_FS_POSIX_PATH "/home/john/" /*Set the working directory. If commented it will be "./" */ #define LV_USE_FS_STDIO 0
#if LV_USE_FS_STDIO
#define LV_FS_STDIO_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
#define LV_FS_STDIO_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/
#define LV_FS_STDIO_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
#endif
#define LV_USE_FS_WIN32 '\0' /*Uses CreateFile, ReadFile, etc*/ /*API for open, read, etc*/
//#define LV_FS_WIN32_PATH "C:\\Users\\john\\" /*Set the working directory. If commented it will be ".\\" */ #define LV_USE_FS_POSIX 0
#if LV_USE_FS_POSIX
#define LV_FS_POSIX_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
#define LV_FS_POSIX_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/
#define LV_FS_POSIX_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
#endif
#define LV_USE_FS_FATFS '\0' /*Uses f_open, f_read, etc*/ /*API for CreateFile, ReadFile, etc*/
#define LV_USE_FS_WIN32 0
#if LV_USE_FS_WIN32
#define LV_FS_WIN32_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
#define LV_FS_WIN32_PATH "" /*Set the working directory. File/directory paths will be appended to it.*/
#define LV_FS_WIN32_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
#endif
/*API for FATFS (needs to be added separately). Uses f_open, f_read, etc*/
#define LV_USE_FS_FATFS 0
#if LV_USE_FS_FATFS
#define LV_FS_FATFS_LETTER '\0' /*Set an upper cased letter on which the drive will accessible (e.g. 'A')*/
#define LV_FS_FATFS_CACHE_SIZE 0 /*>0 to cache this number of bytes in lv_fs_read()*/
#endif
/*PNG decoder library*/ /*PNG decoder library*/
#define LV_USE_PNG 1 #define LV_USE_PNG 1
@@ -584,6 +630,16 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
#if LV_USE_FREETYPE #if LV_USE_FREETYPE
/*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/ /*Memory used by FreeType to cache characters [bytes] (-1: no caching)*/
#define LV_FREETYPE_CACHE_SIZE (16 * 1024) #define LV_FREETYPE_CACHE_SIZE (16 * 1024)
#if LV_FREETYPE_CACHE_SIZE >= 0
/* 1: bitmap cache use the sbit cache, 0:bitmap cache use the image cache. */
/* sbit cache:it is much more memory efficient for small bitmaps(font size < 256) */
/* if font size >= 256, must be configured as image cache */
#define LV_FREETYPE_SBIT_CACHE 0
/* Maximum number of opened FT_Face/FT_Size objects managed by this cache instance. */
/* (0:use system defaults) */
#define LV_FREETYPE_CACHE_FT_FACES 0
#define LV_FREETYPE_CACHE_FT_SIZES 0
#endif
#endif #endif
/*Rlottie library*/ /*Rlottie library*/
@@ -604,6 +660,11 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
/*1: Enable API to take snapshot for object*/ /*1: Enable API to take snapshot for object*/
#define LV_USE_SNAPSHOT 1 #define LV_USE_SNAPSHOT 1
/*1: Enable Monkey test*/
#define LV_USE_MONKEY 0
/*1: Enable grid navigation*/
#define LV_USE_GRIDNAV 0
/*================== /*==================
* EXAMPLES * EXAMPLES
@@ -612,6 +673,35 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
/*Enable the examples to be built with the library*/ /*Enable the examples to be built with the library*/
#define LV_BUILD_EXAMPLES 0 #define LV_BUILD_EXAMPLES 0
/*===================
* DEMO USAGE
====================*/
/*Show some widget. It might be required to increase `LV_MEM_SIZE` */
#define LV_USE_DEMO_WIDGETS 0
#if LV_USE_DEMO_WIDGETS
#define LV_DEMO_WIDGETS_SLIDESHOW 0
#endif
/*Demonstrate the usage of encoder and keyboard*/
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
/*Benchmark your system*/
#define LV_USE_DEMO_BENCHMARK 0
/*Stress test for LVGL*/
#define LV_USE_DEMO_STRESS 0
/*Music player demo*/
#define LV_USE_DEMO_MUSIC 0
#if LV_USE_DEMO_MUSIC
# define LV_DEMO_MUSIC_SQUARE 0
# define LV_DEMO_MUSIC_LANDSCAPE 0
# define LV_DEMO_MUSIC_ROUND 0
# define LV_DEMO_MUSIC_LARGE 0
# define LV_DEMO_MUSIC_AUTO_PLAY 0
#endif
/*--END OF LV_CONF_H--*/ /*--END OF LV_CONF_H--*/
#endif /*LV_CONF_H*/ #endif /*LV_CONF_H*/