From 13451e9d1043f0d80865e3b3e4666b187290b879 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Fri, 9 Apr 2021 10:44:13 +0800 Subject: [PATCH] IssueNo:#I3HGTM Description:Fix limits.h & Adjust some macro definition positions. Feature or Bugfix:Bugfix Binary Source:NA Change-Id: Ia53c1b4b83f60862ac24c5c14a87883fe0af6db0 --- kernel/common/los_config.h | 6 ++++++ kernel/include/los_sem.h | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) 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. -- GitLab