Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不穿格子衫的农民
TencentOS Tiny
提交
0c2af37b
T
TencentOS Tiny
项目概览
不穿格子衫的农民
/
TencentOS Tiny
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TencentOS Tiny
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0c2af37b
编写于
3月 14, 2021
作者:
M
mculover666
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix a bug in the kernel obj verify function
上级
ef489bf5
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
3 addition
and
21 deletion
+3
-21
kernel/core/include/tos_barrier.h
kernel/core/include/tos_barrier.h
+0
-2
kernel/core/include/tos_bitmap.h
kernel/core/include/tos_bitmap.h
+0
-2
kernel/core/include/tos_completion.h
kernel/core/include/tos_completion.h
+0
-2
kernel/core/include/tos_countdownlatch.h
kernel/core/include/tos_countdownlatch.h
+0
-2
kernel/core/include/tos_event.h
kernel/core/include/tos_event.h
+1
-3
kernel/core/include/tos_mmblk.h
kernel/core/include/tos_mmblk.h
+0
-2
kernel/core/include/tos_mutex.h
kernel/core/include/tos_mutex.h
+0
-2
kernel/core/include/tos_rwlock.h
kernel/core/include/tos_rwlock.h
+0
-2
kernel/core/include/tos_sem.h
kernel/core/include/tos_sem.h
+0
-2
kernel/core/include/tos_stopwatch.h
kernel/core/include/tos_stopwatch.h
+0
-2
test/suit_timer.c
test/suit_timer.c
+2
-0
未找到文件。
kernel/core/include/tos_barrier.h
浏览文件 @
0c2af37b
...
...
@@ -23,9 +23,7 @@ __CDECLS_BEGIN
#if TOS_CFG_BARRIER_EN > 0
typedef
struct
k_barrier_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
pend_obj_t
pend_obj
;
k_barrier_cnt_t
count
;
...
...
kernel/core/include/tos_bitmap.h
浏览文件 @
0c2af37b
...
...
@@ -21,9 +21,7 @@
typedef
uint32_t
k_bmtbl_t
;
typedef
struct
k_bitmap_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
uint32_t
bit_ndx_max
;
uint32_t
bit_max
;
...
...
kernel/core/include/tos_completion.h
浏览文件 @
0c2af37b
...
...
@@ -25,9 +25,7 @@ __CDECLS_BEGIN
typedef
uint16_t
completion_done_t
;
typedef
struct
k_completion_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
pend_obj_t
pend_obj
;
completion_done_t
done
;
...
...
kernel/core/include/tos_countdownlatch.h
浏览文件 @
0c2af37b
...
...
@@ -22,9 +22,7 @@ __CDECLS_BEGIN
#if TOS_CFG_COUNTDOWNLATCH_EN > 0
typedef
struct
k_countdownlatch_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
pend_obj_t
pend_obj
;
k_countdownlatch_cnt_t
count
;
...
...
kernel/core/include/tos_event.h
浏览文件 @
0c2af37b
...
...
@@ -43,9 +43,7 @@ typedef enum opt_event_post_en {
}
opt_event_post_t
;
typedef
struct
k_event_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
pend_obj_t
pend_obj
;
k_event_flag_t
flag
;
...
...
@@ -83,7 +81,7 @@ __API__ k_err_t tos_event_destroy(k_event_t *event);
* pend an event.
*
* @attention if opt is TOS_OPT_EVENT_PEND_ANY, any of the flag_expect is set is ok;
* if opt is TOS_OPT_EVENT_PEND_ALL
£¬
must all the flag_expect is set is ok.
* if opt is TOS_OPT_EVENT_PEND_ALL
�� mus
t all the flag_expect is set is ok.
*
* @param[in] event pointer to the handler of the event.
* @param[in] flag_expect the flag we expect from the event.
...
...
kernel/core/include/tos_mmblk.h
浏览文件 @
0c2af37b
...
...
@@ -24,9 +24,7 @@ __CDECLS_BEGIN
#define K_MMBLK_ALIGN_MASK (sizeof(void *) - 1u)
typedef
struct
k_mmblk_pool_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
void
*
pool_start
;
void
*
free_list
;
...
...
kernel/core/include/tos_mutex.h
浏览文件 @
0c2af37b
...
...
@@ -23,9 +23,7 @@ __CDECLS_BEGIN
#if TOS_CFG_MUTEX_EN > 0u
typedef
struct
k_mutex_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
pend_obj_t
pend_obj
;
k_nesting_t
pend_nesting
;
...
...
kernel/core/include/tos_rwlock.h
浏览文件 @
0c2af37b
...
...
@@ -25,9 +25,7 @@ __CDECLS_BEGIN
typedef
uint16_t
rw_cnt_t
;
typedef
struct
k_rwlock_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
k_mutex_t
lock
;
k_sem_t
signal
;
...
...
kernel/core/include/tos_sem.h
浏览文件 @
0c2af37b
...
...
@@ -23,9 +23,7 @@ __CDECLS_BEGIN
#if TOS_CFG_SEM_EN > 0u
typedef
struct
k_sem_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
pend_obj_t
pend_obj
;
k_sem_cnt_t
count
;
...
...
kernel/core/include/tos_stopwatch.h
浏览文件 @
0c2af37b
...
...
@@ -21,9 +21,7 @@
__CDECLS_BEGIN
typedef
struct
k_stopwatch_st
{
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
knl_obj_t
knl_obj
;
#endif
k_tick_t
until
;
}
k_stopwatch_t
;
...
...
test/suit_timer.c
浏览文件 @
0c2af37b
...
...
@@ -109,8 +109,10 @@ TEST test_tos_timer_stop(void)
err
=
tos_timer_stop
(
K_NULL
);
ASSERT_EQ
(
err
,
K_ERR_OBJ_PTR_NULL
);
#if TOS_CFG_OBJECT_VERIFY_EN > 0u
err
=
tos_timer_stop
(
&
test_timer_00
);
ASSERT_EQ
(
err
,
K_ERR_OBJ_INVALID
);
#endif
err
=
tos_timer_create
(
&
test_timer_00
,
(
k_tick_t
)
500u
,
(
k_tick_t
)
0u
,
test_timer_call_back_dummy
,
K_NULL
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录