Skip to content

Commit

Permalink
fix(conf): make comment requirement explicit (lvgl#6248)
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Stoica <cristianmarian.stoica@nxp.com>
  • Loading branch information
cristian-stoica authored Jun 30, 2024
1 parent df0d36f commit 38b0195
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion env_support/cmsis-pack/lv_conf_cmsis.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
#if LV_USE_DRAW_SW == 1
/* Set the number of draw unit.
* > 1 requires an operating system enabled in `LV_USE_OS`
* > 1 means multiply threads will render the screen in parallel */
* > 1 means multiple threads will render the screen in parallel */
#define LV_DRAW_SW_DRAW_UNIT_CNT 1

/* Enable native helium assembly to be compiled */
Expand Down
2 changes: 1 addition & 1 deletion lv_conf_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

/* Set the number of draw unit.
* > 1 requires an operating system enabled in `LV_USE_OS`
* > 1 means multiply threads will render the screen in parallel */
* > 1 means multiple threads will render the screen in parallel */
#define LV_DRAW_SW_DRAW_UNIT_CNT 1

/* Use Arm-2D to accelerate the sw render */
Expand Down
4 changes: 4 additions & 0 deletions src/draw/sw/lv_draw_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#include LV_DRAW_SW_ASM_CUSTOM_INCLUDE
#endif

#if LV_DRAW_SW_DRAW_UNIT_CNT > 1 && LV_USE_OS == LV_OS_NONE
#error "OS support is required when more than one SW rendering units are enabled"
#endif

/*********************
* DEFINES
*********************/
Expand Down
2 changes: 1 addition & 1 deletion src/lv_conf_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@

/* Set the number of draw unit.
* > 1 requires an operating system enabled in `LV_USE_OS`
* > 1 means multiply threads will render the screen in parallel */
* > 1 means multiple threads will render the screen in parallel */
#ifndef LV_DRAW_SW_DRAW_UNIT_CNT
#ifdef _LV_KCONFIG_PRESENT
#ifdef CONFIG_LV_DRAW_SW_DRAW_UNIT_CNT
Expand Down

0 comments on commit 38b0195

Please sign in to comment.