diff --git a/kernel/common/los_config.h b/kernel/common/los_config.h index 1462f018..a59581c1 100755 --- a/kernel/common/los_config.h +++ b/kernel/common/los_config.h @@ -249,6 +249,12 @@ extern UINT32 __heap_end; #define LOSCFG_BASE_IPC_SEM_LIMIT 1024 #endif +/** + * @ingroup los_config + * Maximum number of semaphores. + */ +#define OS_SEM_COUNT_MAX 0xFFFE + /****************************** mutex module configuration ******************************/ /** * @ingroup los_config diff --git a/kernel/include/los_sem.h b/kernel/include/los_sem.h index a4ac824b..3f60fb2b 100644 --- a/kernel/include/los_sem.h +++ b/kernel/include/los_sem.h @@ -159,13 +159,6 @@ extern "C" { */ #define LOS_ERRNO_SEM_PEND_IN_SYSTEM_TASK LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x0A) -/** - * @ingroup los_sem - * Maximum number of semaphores. - * - */ -#define OS_SEM_COUNT_MAX 0xFFFE - /** * @ingroup los_sem * Maximum number of binary semaphores.