Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
SummerGao.
rt-thread
提交
163c0597
R
rt-thread
项目概览
SummerGao.
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
163c0597
编写于
9月 18, 2021
作者:
G
guo
提交者:
GitHub
9月 18, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5075 from liukangcc/annotation
[update] functions annotation.
上级
1cb19e59
d99737d8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
19 deletion
+16
-19
src/clock.c
src/clock.c
+6
-6
src/ipc.c
src/ipc.c
+0
-7
src/kservice.c
src/kservice.c
+7
-5
src/memheap.c
src/memheap.c
+1
-1
src/signal.c
src/signal.c
+2
-0
未找到文件。
src/clock.c
浏览文件 @
163c0597
...
...
@@ -33,9 +33,9 @@ static volatile rt_tick_t rt_tick = 0;
/**@{*/
/**
* @brief This function will return current tick from operating system startup
* @brief This function will return current tick from operating system startup
.
*
* @return Return current tick
* @return Return current tick
.
*/
rt_tick_t
rt_tick_get
(
void
)
{
...
...
@@ -45,7 +45,7 @@ rt_tick_t rt_tick_get(void)
RTM_EXPORT
(
rt_tick_get
);
/**
* @brief This function will set current tick
* @brief This function will set current tick
.
*
* @param tick is the value that you will set.
*/
...
...
@@ -101,12 +101,12 @@ void rt_tick_increase(void)
/**
* @brief This function will calculate the tick from millisecond.
*
* @param ms is the specified millisecond
* @param ms is the specified millisecond
.
* - Negative Number wait forever
* - Zero not wait
* - Max 0x7fffffff
*
* @return Return the calculated tick
* @return Return the calculated tick
.
*/
rt_tick_t
rt_tick_from_millisecond
(
rt_int32_t
ms
)
{
...
...
@@ -134,7 +134,7 @@ RTM_EXPORT(rt_tick_from_millisecond);
* is not an integral multiple of 1000, this function will not
* provide the correct 1ms-based tick.
*
* @return Return passed millisecond from boot
* @return Return passed millisecond from boot
.
*/
RT_WEAK
rt_tick_t
rt_tick_get_millisecond
(
void
)
{
...
...
src/ipc.c
浏览文件 @
163c0597
...
...
@@ -1234,10 +1234,6 @@ RTM_EXPORT(rt_mutex_control);
*
* @param name is a pointer to the name that given to the event.
*
* @param value is the initial value for the event.
* If want to share resources, you should initialize the value as the number of available resources.
* If want to signal the occurrence of an event, you should initialize the value as 0.
*
* @param flag is the event flag, which determines the queuing way of how multiple threads wait
* when the event is not available.
* The event flag can be ONE of the following values:
...
...
@@ -1741,9 +1737,6 @@ RTM_EXPORT(rt_event_control);
*
* @param name is a pointer to the name that given to the mailbox.
*
* @param msgpoll is a pointer to the starting address of the memory space you allocated for the mailbox in advance.
* In other words, msgpoll is a pointer to the mailbox buffer of the starting address.
*
* @param size is the maximum number of mails in the mailbox.
* For example, when the mailbox buffer capacity is N, size is N/4.
*
...
...
src/kservice.c
浏览文件 @
163c0597
...
...
@@ -294,11 +294,11 @@ RTM_EXPORT(rt_memcpy);
* address. If the destination memory does not overlap with the source memory,
* the function is the same as memcpy().
*
* @param dst is the address of destination memory, points to the copied content.
* @param d
e
st is the address of destination memory, points to the copied content.
*
* @param src is the address of source memory, point to the data source to be copied.
*
* @param
count
is the copied length.
* @param
n
is the copied length.
*
* @return The address of destination memory.
*/
...
...
@@ -590,9 +590,11 @@ RTM_EXPORT(rt_show_version);
/**
* This function will duplicate a string.
*
* @param s the string to be duplicated
* @param n is the string to be duplicated.
*
* @param base is support divide instructions value.
*
* @return the duplicated string pointer
* @return the duplicated string pointer
.
*/
rt_inline
int
divide
(
long
long
*
n
,
int
base
)
{
...
...
@@ -1418,7 +1420,7 @@ void rt_assert_set_hook(void (*hook)(const char *ex, const char *func, rt_size_t
/**
* The RT_ASSERT function.
*
* @param ex is the assertion condition string.
* @param ex
_string
is the assertion condition string.
*
* @param func is the function name when assertion.
*
...
...
src/memheap.c
浏览文件 @
163c0597
...
...
@@ -1058,7 +1058,7 @@ void rt_memory_info(rt_uint32_t *total,
/**
* @brief This function will print the used memheap infomation.
*
* @param m
emheap
is a pointer of the memheap object.
* @param m
h
is a pointer of the memheap object.
*/
void
dump_used_memheap
(
struct
rt_memheap
*
mh
)
{
...
...
src/signal.c
浏览文件 @
163c0597
...
...
@@ -217,6 +217,8 @@ void *rt_signal_check(void* context)
*
* @param signo is a specific signal value (range: 0 ~ RT_SIG_MAX).
*
* @param handler is sets the processing of signal value.
*
* @return Return the old processing function of this signal. ONLY When the
* return value is SIG_ERR, the operation is failed.
*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录