Skip to content

Commit beb6f2f

Browse files
committed
Update LVGL Project
1 parent 62d8008 commit beb6f2f

File tree

1,046 files changed

+34262
-126127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,046 files changed

+34262
-126127
lines changed

libraries/HAL_Drivers/drv_lcd.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,17 @@ uint32_t calculate_idle_percentage(void)
146146

147147
static void dc_irq_handler(void)
148148
{
149-
/* Clear the DC interrupt */
149+
rt_interrupt_enter();
150150
Cy_GFXSS_Clear_DC_Interrupt(gfxbase, &lcd_gfx_context);
151+
rt_interrupt_leave();
151152
}
152153

153154
static void gpu_irq_handler(void)
154155
{
156+
rt_interrupt_enter();
155157
Cy_GFXSS_Clear_GPU_Interrupt(gfxbase, &lcd_gfx_context);
156158
vg_lite_IRQHandler();
159+
rt_interrupt_leave();
157160
}
158161

159162
rt_err_t psoc_lcd_init(struct drv_lcd_device *lcd)

projects/Edgi-Talk_LVGL/Edgi_Talk_M55_LVGL/.cproject

Lines changed: 1 addition & 21 deletions
Large diffs are not rendered by default.

projects/Edgi-Talk_LVGL/Edgi_Talk_M55_LVGL/board/board.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#endif
2828

2929
/*SRAM CONFIG*/
30-
#define IFX_SRAM_SIZE (1024)
31-
#define IFX_SRAM_END (0x24000000 + IFX_SRAM_SIZE * 1024)
30+
#define IFX_SRAM_SIZE (1408)
31+
#define IFX_SRAM_END (0x26060000 + IFX_SRAM_SIZE * 1024)
3232

3333
#ifdef __ARMCC_VERSION
3434
extern int Image$$RW_IRAM1$$ZI$$Limit;

projects/Edgi-Talk_LVGL/Edgi_Talk_M55_LVGL/board/ports/lvgl/lv_conf.h

Lines changed: 61 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,30 @@
66
*
77
* Related Document : See README.md
88
*
9+
********************************************************************************
10+
* (c) 2025-2025, Infineon Technologies AG, or an affiliate of Infineon Technologies AG. All rights reserved.
11+
* This software, associated documentation and materials ("Software") is owned by
12+
* Infineon Technologies AG or one of its affiliates ("Infineon") and is protected
13+
* by and subject to worldwide patent protection, worldwide copyright laws, and
14+
* international treaty provisions. Therefore, you may use this Software only as
15+
* provided in the license agreement accompanying the software package from which
16+
* you obtained this Software. If no license agreement applies, then any use,
17+
* reproduction, modification, translation, or compilation of this Software is
18+
* prohibited without the express written permission of Infineon.
19+
* Disclaimer: UNLESS OTHERWISE EXPRESSLY AGREED WITH INFINEON, THIS SOFTWARE
20+
* IS PROVIDED AS-IS, WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING,
21+
* BUT NOT LIMITED TO, ALL WARRANTIES OF NON-INFRINGEMENT OF THIRD-PARTY RIGHTS AND
22+
* IMPLIED WARRANTIES SUCH AS WARRANTIES OF FITNESS FOR A SPECIFIC USE/PURPOSE OR
23+
* MERCHANTABILITY. Infineon reserves the right to make changes to the Software
24+
* without notice. You are responsible for properly designing, programming, and
25+
* testing the functionality and safety of your intended application of the
26+
* Software, as well as complying with any legal requirements related to its
27+
* use. Infineon does not guarantee that the Software will be free from intrusion,
28+
* data theft or loss, or other breaches ("Security Breaches"), and Infineon
29+
* shall have no liability arising out of any Security Breaches. Unless otherwise
30+
* explicitly approved by Infineon, the Software may not be used in any application
31+
* where a failure of the Product or any consequences of the use thereof can
32+
* reasonably be expected to result in personal injury.
933
*******************************************************************************/
1034

1135
#ifndef LV_CONF_H
@@ -22,6 +46,7 @@
2246
STDLIB WRAPPER SETTINGS
2347
*=========================*/
2448
#include <stdint.h>
49+
#include "cy_utils.h"
2550

2651
/* Possible values
2752
* - LV_STDLIB_BUILTIN: LVGL's built in implementation
@@ -62,7 +87,7 @@
6287
*====================*/
6388

6489
/*Default display refresh, input device read and animation step period.*/
65-
#define LV_DEF_REFR_PERIOD 20 /*[ms]*/
90+
#define LV_DEF_REFR_PERIOD 18 /*[ms]*/
6691

6792
/*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings.
6893
*(Not so important, you can adjust it to modify default sizes and spaces)*/
@@ -113,17 +138,17 @@
113138
/* The stack size of the drawing thread.
114139
* NOTE: If FreeType or ThorVG is enabled, it is recommended to set it to 32KB or more.
115140
*/
116-
#define LV_DRAW_THREAD_STACK_SIZE (16 * 1024) /*[bytes]*/
141+
#define LV_DRAW_THREAD_STACK_SIZE (32 * 1024) /*[bytes]*/
117142

118143
#define LV_USE_DRAW_SW 1
119144
#if LV_USE_DRAW_SW == 1
120145

121146
/*
122-
* Selectively disable color format support in order to reduce code size.
123-
* NOTE: some features use certain color formats internally, e.g.
124-
* - gradients use RGB888
125-
* - bitmaps with transparency may use ARGB8888
126-
*/
147+
* Selectively disable color format support in order to reduce code size.
148+
* NOTE: some features use certain color formats internally, e.g.
149+
* - gradients use RGB888
150+
* - bitmaps with transparency may use ARGB8888
151+
*/
127152

128153
#define LV_DRAW_SW_SUPPORT_RGB565 1
129154
#define LV_DRAW_SW_SUPPORT_RGB565A8 1
@@ -136,8 +161,8 @@
136161
#define LV_DRAW_SW_SUPPORT_I1 1
137162

138163
/* Set the number of draw unit.
139-
* > 1 requires an operating system enabled in `LV_USE_OS`
140-
* > 1 means multiple threads will render the screen in parallel */
164+
* > 1 requires an operating system enabled in `LV_USE_OS`
165+
* > 1 means multiple threads will render the screen in parallel */
141166
#define LV_DRAW_SW_DRAW_UNIT_CNT 1
142167

143168
/* Use Arm-2D to accelerate the sw render */
@@ -147,7 +172,7 @@
147172
#define LV_USE_NATIVE_HELIUM_ASM 0
148173

149174
/* 0: use a simple renderer capable of drawing only simple rectangles with gradient, images, texts, and straight lines only
150-
* 1: use a complex renderer capable of drawing rounded corners, shadow, skew lines, and arcs too */
175+
* 1: use a complex renderer capable of drawing rounded corners, shadow, skew lines, and arcs too */
151176
#define LV_DRAW_SW_COMPLEX 1
152177

153178
#if LV_DRAW_SW_COMPLEX == 1
@@ -178,7 +203,7 @@
178203

179204
#if LV_USE_DRAW_VGLITE
180205
/* Enable blit quality degradation workaround recommended for screen's dimension > 352 pixels. */
181-
#define LV_USE_VGLITE_BLIT_SPLIT 1
206+
#define LV_USE_VGLITE_BLIT_SPLIT 0
182207

183208
#if LV_USE_OS
184209
/* Use additional draw thread for VG-Lite processing.*/
@@ -214,7 +239,7 @@
214239
#define LV_USE_DRAW_SDL 0
215240

216241
/* Use VG-Lite GPU. */
217-
#define LV_USE_DRAW_VG_LITE 1
242+
#define LV_USE_DRAW_VG_LITE 1
218243

219244
#if LV_USE_DRAW_VG_LITE
220245
/* Enable VG-Lite custom external 'gpu_init()' function */
@@ -227,17 +252,17 @@
227252
#define LV_VG_LITE_FLUSH_MAX_COUNT 8
228253

229254
/* Enable border to simulate shadow
230-
* NOTE: which usually improves performance,
231-
* but does not guarantee the same rendering quality as the software. */
255+
* NOTE: which usually improves performance,
256+
* but does not guarantee the same rendering quality as the software. */
232257
#define LV_VG_LITE_USE_BOX_SHADOW 0
233258

234259
/* VG-Lite gradient maximum cache number.
235-
* NOTE: The memory usage of a single gradient image is 4K bytes.
236-
*/
260+
* NOTE: The memory usage of a single gradient image is 4K bytes.
261+
*/
237262
#define LV_VG_LITE_GRAD_CACHE_CNT 32
238263

239264
/* VG-Lite stroke maximum cache number.
240-
*/
265+
*/
241266
#define LV_VG_LITE_STROKE_CACHE_CNT 32
242267

243268
#endif
@@ -268,16 +293,16 @@
268293
#define LV_LOG_PRINTF 1
269294

270295
/*Set callback to print the logs.
271-
*E.g `my_print`. The prototype should be `void my_print(lv_log_level_t level, const char * buf)`
272-
*Can be overwritten by `lv_log_register_print_cb`*/
296+
*E.g `my_print`. The prototype should be `void my_print(lv_log_level_t level, const char * buf)`
297+
*Can be overwritten by `lv_log_register_print_cb`*/
273298
//#define LV_LOG_PRINT_CB
274299

275300
/*1: Enable print timestamp;
276-
*0: Disable print timestamp*/
301+
*0: Disable print timestamp*/
277302
#define LV_LOG_USE_TIMESTAMP 1
278303

279304
/*1: Print file and line number of the log;
280-
*0: Do not print file and line number of the log*/
305+
*0: Do not print file and line number of the log*/
281306
#define LV_LOG_USE_FILE_LINE 1
282307

283308

@@ -429,10 +454,10 @@
429454
#define LV_ATTRIBUTE_LARGE_CONST
430455

431456
/*Compiler prefix for a big array declaration in RAM*/
432-
#define LV_ATTRIBUTE_LARGE_RAM_ARRAY __attribute__ ((section(".cy_gpu_buf")))
457+
#define LV_ATTRIBUTE_LARGE_RAM_ARRAY CY_SECTION(".cy_socmem_data")
433458

434459
/*Place performance critical functions into a faster memory (e.g RAM)*/
435-
#define LV_ATTRIBUTE_FAST_MEM __attribute__ ((section(".cy_itcm")))
460+
#define LV_ATTRIBUTE_FAST_MEM CY_SECTION(".cy_itcm")
436461

437462
/*Export integer constant to binding. This macro is used with constants in the form of LV_<CONST> that
438463
*should also appear on LVGL binding API such as MicroPython.*/
@@ -467,7 +492,7 @@
467492
#define LV_FONT_MONTSERRAT_22 1
468493
#define LV_FONT_MONTSERRAT_24 1
469494
#define LV_FONT_MONTSERRAT_26 0
470-
#define LV_FONT_MONTSERRAT_28 1
495+
#define LV_FONT_MONTSERRAT_28 0
471496
#define LV_FONT_MONTSERRAT_30 0
472497
#define LV_FONT_MONTSERRAT_32 0
473498
#define LV_FONT_MONTSERRAT_34 0
@@ -794,12 +819,12 @@
794819
#define LV_FREETYPE_USE_LVGL_PORT 0
795820

796821
/*Cache count of the glyphs in FreeType. It means the number of glyphs that can be cached.
797-
*The higher the value, the more memory will be used.*/
822+
*The higher the value, the more memory will be used.*/
798823
#define LV_FREETYPE_CACHE_FT_GLYPH_CNT 256
799824
#endif
800825

801826
/* Built-in TTF decoder */
802-
#define LV_USE_TINY_TTF 1
827+
#define LV_USE_TINY_TTF 0
803828
#if LV_USE_TINY_TTF
804829
/* Enable loading TTF data from files */
805830
#define LV_TINY_TTF_FILE_SUPPORT 0
@@ -841,25 +866,25 @@
841866
#define LV_USE_SNAPSHOT 0
842867

843868
/*1: Enable system monitor component*/
844-
#define LV_USE_SYSMON 1
869+
#define LV_USE_SYSMON 0
845870
#if LV_USE_SYSMON
846871
/*Get the idle percentage. E.g. uint32_t my_get_idle(void);*/
847872
extern uint32_t calculate_idle_percentage(void);
848873
#define LV_SYSMON_GET_IDLE calculate_idle_percentage
849874

850875
/*1: Show CPU usage and FPS count
851-
* Requires `LV_USE_SYSMON = 1`*/
852-
#define LV_USE_PERF_MONITOR 0
876+
* Requires `LV_USE_SYSMON = 1`*/
877+
#define LV_USE_PERF_MONITOR 1
853878
#if LV_USE_PERF_MONITOR
854-
#define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
879+
#define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
855880

856881
/*0: Displays performance data on the screen, 1: Prints performance data using log.*/
857882
#define LV_USE_PERF_MONITOR_LOG_MODE 0
858883
#endif
859884

860885
/*1: Show the used memory and the memory fragmentation
861-
* Requires `LV_USE_STDLIB_MALLOC = LV_STDLIB_BUILTIN`
862-
* Requires `LV_USE_SYSMON = 1`*/
886+
* Requires `LV_USE_STDLIB_MALLOC = LV_STDLIB_BUILTIN`
887+
* Requires `LV_USE_SYSMON = 1`*/
863888
#define LV_USE_MEM_MONITOR 0
864889
#if LV_USE_MEM_MONITOR
865890
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
@@ -878,7 +903,7 @@
878903
#endif
879904

880905
/*Header to include for the profiler*/
881-
#define LV_PROFILER_INCLUDE "lvgl/src/misc/lv_profiler_builtin.h"
906+
#define LV_PROFILER_INCLUDE "lv_profiler_builtin.h"
882907

883908
/*Profiler start point function*/
884909
#define LV_PROFILER_BEGIN LV_PROFILER_BUILTIN_BEGIN
@@ -1062,7 +1087,7 @@
10621087
====================*/
10631088

10641089
/*Show some widget. It might be required to increase `LV_MEM_SIZE` */
1065-
#define LV_USE_DEMO_WIDGETS 1
1090+
#define LV_USE_DEMO_WIDGETS 0
10661091

10671092
/*Demonstrate the usage of encoder and keyboard*/
10681093
#define LV_USE_DEMO_KEYPAD_AND_ENCODER 0
@@ -1080,10 +1105,10 @@
10801105
#define LV_USE_DEMO_MUSIC 0
10811106
#if LV_USE_DEMO_MUSIC
10821107
#define LV_DEMO_MUSIC_SQUARE 0
1083-
#define LV_DEMO_MUSIC_LANDSCAPE 0
1108+
#define LV_DEMO_MUSIC_LANDSCAPE 1
10841109
#define LV_DEMO_MUSIC_ROUND 0
10851110
#define LV_DEMO_MUSIC_LARGE 0
1086-
#define LV_DEMO_MUSIC_AUTO_PLAY 1
1111+
#define LV_DEMO_MUSIC_AUTO_PLAY 0
10871112
#endif
10881113

10891114
/*Flex layout demo*/
@@ -1104,4 +1129,3 @@
11041129
#endif /*LV_CONF_H*/
11051130

11061131
/*--END OF LV_CONF_H--*/
1107-

0 commit comments

Comments
 (0)