fix(conf): make comment requirement explicit (#6248)

Signed-off-by: Cristian Stoica <cristianmarian.stoica@nxp.com>
This commit is contained in:
cristian-stoica
2024-06-30 13:34:03 +03:00
committed by GitHub
parent df0d36f02a
commit 38b01956e3
4 changed files with 7 additions and 3 deletions

View File

@@ -108,7 +108,7 @@
#if LV_USE_DRAW_SW == 1 #if LV_USE_DRAW_SW == 1
/* Set the number of draw unit. /* Set the number of draw unit.
* > 1 requires an operating system enabled in `LV_USE_OS` * > 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 #define LV_DRAW_SW_DRAW_UNIT_CNT 1
/* Enable native helium assembly to be compiled */ /* Enable native helium assembly to be compiled */

View File

@@ -140,7 +140,7 @@
/* Set the number of draw unit. /* Set the number of draw unit.
* > 1 requires an operating system enabled in `LV_USE_OS` * > 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 #define LV_DRAW_SW_DRAW_UNIT_CNT 1
/* Use Arm-2D to accelerate the sw render */ /* Use Arm-2D to accelerate the sw render */

View File

@@ -29,6 +29,10 @@
#include LV_DRAW_SW_ASM_CUSTOM_INCLUDE #include LV_DRAW_SW_ASM_CUSTOM_INCLUDE
#endif #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 * DEFINES
*********************/ *********************/

View File

@@ -429,7 +429,7 @@
/* Set the number of draw unit. /* Set the number of draw unit.
* > 1 requires an operating system enabled in `LV_USE_OS` * > 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 #ifndef LV_DRAW_SW_DRAW_UNIT_CNT
#ifdef _LV_KCONFIG_PRESENT #ifdef _LV_KCONFIG_PRESENT
#ifdef CONFIG_LV_DRAW_SW_DRAW_UNIT_CNT #ifdef CONFIG_LV_DRAW_SW_DRAW_UNIT_CNT