|
6 | 6 | * |
7 | 7 | * Related Document : See README.md |
8 | 8 | * |
| 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. |
9 | 33 | *******************************************************************************/ |
10 | 34 |
|
11 | 35 | #ifndef LV_CONF_H |
|
22 | 46 | STDLIB WRAPPER SETTINGS |
23 | 47 | *=========================*/ |
24 | 48 | #include <stdint.h> |
| 49 | +#include "cy_utils.h" |
25 | 50 |
|
26 | 51 | /* Possible values |
27 | 52 | * - LV_STDLIB_BUILTIN: LVGL's built in implementation |
|
62 | 87 | *====================*/ |
63 | 88 |
|
64 | 89 | /*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]*/ |
66 | 91 |
|
67 | 92 | /*Default Dot Per Inch. Used to initialize default sizes such as widgets sized, style paddings. |
68 | 93 | *(Not so important, you can adjust it to modify default sizes and spaces)*/ |
|
113 | 138 | /* The stack size of the drawing thread. |
114 | 139 | * NOTE: If FreeType or ThorVG is enabled, it is recommended to set it to 32KB or more. |
115 | 140 | */ |
116 | | -#define LV_DRAW_THREAD_STACK_SIZE (16 * 1024) /*[bytes]*/ |
| 141 | +#define LV_DRAW_THREAD_STACK_SIZE (32 * 1024) /*[bytes]*/ |
117 | 142 |
|
118 | 143 | #define LV_USE_DRAW_SW 1 |
119 | 144 | #if LV_USE_DRAW_SW == 1 |
120 | 145 |
|
121 | 146 | /* |
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 | + */ |
127 | 152 |
|
128 | 153 | #define LV_DRAW_SW_SUPPORT_RGB565 1 |
129 | 154 | #define LV_DRAW_SW_SUPPORT_RGB565A8 1 |
|
136 | 161 | #define LV_DRAW_SW_SUPPORT_I1 1 |
137 | 162 |
|
138 | 163 | /* 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 */ |
141 | 166 | #define LV_DRAW_SW_DRAW_UNIT_CNT 1 |
142 | 167 |
|
143 | 168 | /* Use Arm-2D to accelerate the sw render */ |
|
147 | 172 | #define LV_USE_NATIVE_HELIUM_ASM 0 |
148 | 173 |
|
149 | 174 | /* 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 */ |
151 | 176 | #define LV_DRAW_SW_COMPLEX 1 |
152 | 177 |
|
153 | 178 | #if LV_DRAW_SW_COMPLEX == 1 |
|
178 | 203 |
|
179 | 204 | #if LV_USE_DRAW_VGLITE |
180 | 205 | /* 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 |
182 | 207 |
|
183 | 208 | #if LV_USE_OS |
184 | 209 | /* Use additional draw thread for VG-Lite processing.*/ |
|
214 | 239 | #define LV_USE_DRAW_SDL 0 |
215 | 240 |
|
216 | 241 | /* Use VG-Lite GPU. */ |
217 | | -#define LV_USE_DRAW_VG_LITE 1 |
| 242 | +#define LV_USE_DRAW_VG_LITE 1 |
218 | 243 |
|
219 | 244 | #if LV_USE_DRAW_VG_LITE |
220 | 245 | /* Enable VG-Lite custom external 'gpu_init()' function */ |
|
227 | 252 | #define LV_VG_LITE_FLUSH_MAX_COUNT 8 |
228 | 253 |
|
229 | 254 | /* 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. */ |
232 | 257 | #define LV_VG_LITE_USE_BOX_SHADOW 0 |
233 | 258 |
|
234 | 259 | /* 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 | + */ |
237 | 262 | #define LV_VG_LITE_GRAD_CACHE_CNT 32 |
238 | 263 |
|
239 | 264 | /* VG-Lite stroke maximum cache number. |
240 | | - */ |
| 265 | + */ |
241 | 266 | #define LV_VG_LITE_STROKE_CACHE_CNT 32 |
242 | 267 |
|
243 | 268 | #endif |
|
268 | 293 | #define LV_LOG_PRINTF 1 |
269 | 294 |
|
270 | 295 | /*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`*/ |
273 | 298 | //#define LV_LOG_PRINT_CB |
274 | 299 |
|
275 | 300 | /*1: Enable print timestamp; |
276 | | - *0: Disable print timestamp*/ |
| 301 | + *0: Disable print timestamp*/ |
277 | 302 | #define LV_LOG_USE_TIMESTAMP 1 |
278 | 303 |
|
279 | 304 | /*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*/ |
281 | 306 | #define LV_LOG_USE_FILE_LINE 1 |
282 | 307 |
|
283 | 308 |
|
|
429 | 454 | #define LV_ATTRIBUTE_LARGE_CONST |
430 | 455 |
|
431 | 456 | /*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") |
433 | 458 |
|
434 | 459 | /*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") |
436 | 461 |
|
437 | 462 | /*Export integer constant to binding. This macro is used with constants in the form of LV_<CONST> that |
438 | 463 | *should also appear on LVGL binding API such as MicroPython.*/ |
|
467 | 492 | #define LV_FONT_MONTSERRAT_22 1 |
468 | 493 | #define LV_FONT_MONTSERRAT_24 1 |
469 | 494 | #define LV_FONT_MONTSERRAT_26 0 |
470 | | -#define LV_FONT_MONTSERRAT_28 1 |
| 495 | +#define LV_FONT_MONTSERRAT_28 0 |
471 | 496 | #define LV_FONT_MONTSERRAT_30 0 |
472 | 497 | #define LV_FONT_MONTSERRAT_32 0 |
473 | 498 | #define LV_FONT_MONTSERRAT_34 0 |
|
794 | 819 | #define LV_FREETYPE_USE_LVGL_PORT 0 |
795 | 820 |
|
796 | 821 | /*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.*/ |
798 | 823 | #define LV_FREETYPE_CACHE_FT_GLYPH_CNT 256 |
799 | 824 | #endif |
800 | 825 |
|
801 | 826 | /* Built-in TTF decoder */ |
802 | | -#define LV_USE_TINY_TTF 1 |
| 827 | +#define LV_USE_TINY_TTF 0 |
803 | 828 | #if LV_USE_TINY_TTF |
804 | 829 | /* Enable loading TTF data from files */ |
805 | 830 | #define LV_TINY_TTF_FILE_SUPPORT 0 |
|
841 | 866 | #define LV_USE_SNAPSHOT 0 |
842 | 867 |
|
843 | 868 | /*1: Enable system monitor component*/ |
844 | | -#define LV_USE_SYSMON 1 |
| 869 | +#define LV_USE_SYSMON 0 |
845 | 870 | #if LV_USE_SYSMON |
846 | 871 | /*Get the idle percentage. E.g. uint32_t my_get_idle(void);*/ |
847 | 872 | extern uint32_t calculate_idle_percentage(void); |
848 | 873 | #define LV_SYSMON_GET_IDLE calculate_idle_percentage |
849 | 874 |
|
850 | 875 | /*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 |
853 | 878 | #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 |
855 | 880 |
|
856 | 881 | /*0: Displays performance data on the screen, 1: Prints performance data using log.*/ |
857 | 882 | #define LV_USE_PERF_MONITOR_LOG_MODE 0 |
858 | 883 | #endif |
859 | 884 |
|
860 | 885 | /*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`*/ |
863 | 888 | #define LV_USE_MEM_MONITOR 0 |
864 | 889 | #if LV_USE_MEM_MONITOR |
865 | 890 | #define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT |
|
878 | 903 | #endif |
879 | 904 |
|
880 | 905 | /*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" |
882 | 907 |
|
883 | 908 | /*Profiler start point function*/ |
884 | 909 | #define LV_PROFILER_BEGIN LV_PROFILER_BUILTIN_BEGIN |
|
1062 | 1087 | ====================*/ |
1063 | 1088 |
|
1064 | 1089 | /*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 |
1066 | 1091 |
|
1067 | 1092 | /*Demonstrate the usage of encoder and keyboard*/ |
1068 | 1093 | #define LV_USE_DEMO_KEYPAD_AND_ENCODER 0 |
|
1080 | 1105 | #define LV_USE_DEMO_MUSIC 0 |
1081 | 1106 | #if LV_USE_DEMO_MUSIC |
1082 | 1107 | #define LV_DEMO_MUSIC_SQUARE 0 |
1083 | | - #define LV_DEMO_MUSIC_LANDSCAPE 0 |
| 1108 | + #define LV_DEMO_MUSIC_LANDSCAPE 1 |
1084 | 1109 | #define LV_DEMO_MUSIC_ROUND 0 |
1085 | 1110 | #define LV_DEMO_MUSIC_LARGE 0 |
1086 | | - #define LV_DEMO_MUSIC_AUTO_PLAY 1 |
| 1111 | + #define LV_DEMO_MUSIC_AUTO_PLAY 0 |
1087 | 1112 | #endif |
1088 | 1113 |
|
1089 | 1114 | /*Flex layout demo*/ |
|
1104 | 1129 | #endif /*LV_CONF_H*/ |
1105 | 1130 |
|
1106 | 1131 | /*--END OF LV_CONF_H--*/ |
1107 | | - |
|
0 commit comments