Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos M
提交
63d34030
K
Kernel Liteos M
项目概览
OpenHarmony
/
Kernel Liteos M
大约 1 年 前同步成功
通知
20
Star
28
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos M
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
63d34030
编写于
4月 09, 2021
作者:
O
openharmony_ci
提交者:
Gitee
4月 09, 2021
浏览文件
操作
浏览文件
下载
差异文件
!56 修复limits.h中部分宏定义
Merge pull request !56 from Zhaotianyu/0406limits
上级
2c17c08c
caffe813
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
13 deletion
+24
-13
kal/posix/include/limits.h
kal/posix/include/limits.h
+5
-3
kernel/include/los_config.h
kernel/include/los_config.h
+8
-0
kernel/include/los_sem.h
kernel/include/los_sem.h
+11
-10
未找到文件。
kal/posix/include/limits.h
浏览文件 @
63d34030
#ifndef _LIMITS_H
#define _LIMITS_H
#include "los_config.h"
#ifdef __ICCARM__
/* for iar */
#define PATH_MAX 256
#define MQ_PRIO_MAX 1
...
...
@@ -73,9 +75,9 @@
#define PTHREAD_KEYS_MAX 128
#define PTHREAD_STACK_MIN LOSCFG_BASE_CORE_TSK_MIN_STACK_SIZE
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
#define SEM_VALUE_MAX
0x7fffffff
#define SEM_NSEMS_MAX
256
#define DELAYTIMER_MAX
0x7fffffff
#define SEM_VALUE_MAX
OS_SEM_COUNTING_MAX_COUNT
#define SEM_NSEMS_MAX
LOSCFG_BASE_IPC_SEM_LIMIT
#define DELAYTIMER_MAX
32
#define MQ_PRIO_MAX 1
#define LOGIN_NAME_MAX 256
...
...
kernel/include/los_config.h
浏览文件 @
63d34030
...
...
@@ -268,6 +268,14 @@ extern "C" {
#define LOSCFG_BASE_IPC_SEM_LIMIT 6
#endif
/**
* @ingroup los_config
* Maximum number of semaphores.
*/
#ifndef OS_SEM_COUNTING_MAX_COUNT
#define OS_SEM_COUNTING_MAX_COUNT 0xFFFF
#endif
/* =============================================================================
Mutex module configuration
============================================================================= */
...
...
kernel/include/los_sem.h
浏览文件 @
63d34030
...
...
@@ -285,11 +285,6 @@ extern UINT32 LOS_SemPend(UINT32 semHandle, UINT32 timeout);
*/
extern
UINT32
LOS_SemPost
(
UINT32
semHandle
);
enum
LosSemMaxCount
{
OS_SEM_COUNTING_MAX_COUNT
=
0xFFFF
,
/**< Max count of counting semaphores */
OS_SEM_BINARY_MAX_COUNT
=
1
/**< Max count of binary semaphores */
};
/**
* @ingroup los_sem
* Semaphore control structure.
...
...
@@ -302,24 +297,30 @@ typedef struct {
LOS_DL_LIST
semList
;
/**< Queue of tasks that are waiting on a semaphore */
}
LosSemCB
;
/**
* @ingroup los_config
* Max count of binary semaphores.
*/
#define OS_SEM_BINARY_MAX_COUNT 1
/**
* @ingroup los_sem
* The semaphore is not in use.
*
*/
#define OS_SEM_UNUSED 0
#define OS_SEM_UNUSED 0
/**
* @ingroup los_sem
* The semaphore is used.
*
*/
#define OS_SEM_USED 1
#define OS_SEM_USED 1
/**
* @ingroup los_sem
* Obtain the head node in a semaphore doubly linked list.
*
*/
#define GET_SEM_LIST(ptr) LOS_DL_LIST_ENTRY(ptr, LosSemCB, semList)
extern
LosSemCB
*
g_allSem
;
/**
* @ingroup los_sem
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录