From 38b01956e35e73e931ab3b9ec17a6d0477e4654d Mon Sep 17 00:00:00 2001 From: cristian-stoica Date: Sun, 30 Jun 2024 13:34:03 +0300 Subject: [PATCH] fix(conf): make comment requirement explicit (#6248) Signed-off-by: Cristian Stoica --- env_support/cmsis-pack/lv_conf_cmsis.h | 2 +- lv_conf_template.h | 2 +- src/draw/sw/lv_draw_sw.c | 4 ++++ src/lv_conf_internal.h | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/env_support/cmsis-pack/lv_conf_cmsis.h b/env_support/cmsis-pack/lv_conf_cmsis.h index 07f9ef290..f2fe4a77b 100644 --- a/env_support/cmsis-pack/lv_conf_cmsis.h +++ b/env_support/cmsis-pack/lv_conf_cmsis.h @@ -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 */ diff --git a/lv_conf_template.h b/lv_conf_template.h index 8928a5559..901170f85 100644 --- a/lv_conf_template.h +++ b/lv_conf_template.h @@ -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 */ diff --git a/src/draw/sw/lv_draw_sw.c b/src/draw/sw/lv_draw_sw.c index 73dd05055..8feefd1e8 100644 --- a/src/draw/sw/lv_draw_sw.c +++ b/src/draw/sw/lv_draw_sw.c @@ -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 *********************/ diff --git a/src/lv_conf_internal.h b/src/lv_conf_internal.h index fee35a97f..bf1a6d340 100644 --- a/src/lv_conf_internal.h +++ b/src/lv_conf_internal.h @@ -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