Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
天中雨水
rt-thread
提交
f0cc3e86
R
rt-thread
项目概览
天中雨水
/
rt-thread
该项目与 Fork 源项目分叉
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f0cc3e86
编写于
3月 08, 2021
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[example] 对版权信息进行人工扫描并添加确实的版权信息
上级
08af426f
变更
68
隐藏空白更改
内联
并排
Showing
68 changed file
with
556 addition
and
67 deletion
+556
-67
examples/kernel/cpuusage.c
examples/kernel/cpuusage.c
+8
-0
examples/kernel/event_simple.c
examples/kernel/event_simple.c
+8
-0
examples/kernel/heap_malloc.c
examples/kernel/heap_malloc.c
+9
-0
examples/kernel/heap_realloc.c
examples/kernel/heap_realloc.c
+9
-0
examples/kernel/mbox_send_wait.c
examples/kernel/mbox_send_wait.c
+9
-0
examples/kernel/mbox_simple.c
examples/kernel/mbox_simple.c
+9
-0
examples/kernel/memp_simple.c
examples/kernel/memp_simple.c
+9
-0
examples/kernel/messageq_simple.c
examples/kernel/messageq_simple.c
+9
-0
examples/kernel/mutex_priority.c
examples/kernel/mutex_priority.c
+9
-0
examples/kernel/mutex_simple.c
examples/kernel/mutex_simple.c
+6
-1
examples/kernel/semaphore_buffer_worker.c
examples/kernel/semaphore_buffer_worker.c
+9
-0
examples/kernel/semaphore_dynamic.c
examples/kernel/semaphore_dynamic.c
+9
-0
examples/kernel/semaphore_priority.c
examples/kernel/semaphore_priority.c
+9
-0
examples/kernel/semaphore_producer_consumer.c
examples/kernel/semaphore_producer_consumer.c
+9
-0
examples/kernel/semaphore_static.c
examples/kernel/semaphore_static.c
+9
-0
examples/kernel/tc_comm.c
examples/kernel/tc_comm.c
+9
-0
examples/kernel/tc_comm.h
examples/kernel/tc_comm.h
+9
-0
examples/kernel/tc_sample.c
examples/kernel/tc_sample.c
+9
-0
examples/kernel/thread_delay.c
examples/kernel/thread_delay.c
+9
-0
examples/kernel/thread_delete.c
examples/kernel/thread_delete.c
+9
-0
examples/kernel/thread_detach.c
examples/kernel/thread_detach.c
+9
-0
examples/kernel/thread_dynamic.c
examples/kernel/thread_dynamic.c
+9
-0
examples/kernel/thread_dynamic_simple.c
examples/kernel/thread_dynamic_simple.c
+9
-0
examples/kernel/thread_priority.c
examples/kernel/thread_priority.c
+9
-0
examples/kernel/thread_resume.c
examples/kernel/thread_resume.c
+9
-0
examples/kernel/thread_same_priority.c
examples/kernel/thread_same_priority.c
+9
-0
examples/kernel/thread_static.c
examples/kernel/thread_static.c
+9
-0
examples/kernel/thread_static_simple.c
examples/kernel/thread_static_simple.c
+9
-0
examples/kernel/thread_suspend.c
examples/kernel/thread_suspend.c
+9
-0
examples/kernel/thread_yield.c
examples/kernel/thread_yield.c
+7
-1
examples/kernel/timer_control.c
examples/kernel/timer_control.c
+9
-0
examples/kernel/timer_dynamic.c
examples/kernel/timer_dynamic.c
+9
-0
examples/kernel/timer_static.c
examples/kernel/timer_static.c
+9
-0
examples/kernel/timer_stop_self.c
examples/kernel/timer_stop_self.c
+9
-0
examples/kernel/timer_timeout.c
examples/kernel/timer_timeout.c
+9
-0
examples/libc/dirent.c
examples/libc/dirent.c
+6
-3
examples/libc/env.c
examples/libc/env.c
+7
-3
examples/libc/ex1.c
examples/libc/ex1.c
+8
-0
examples/libc/ex2.c
examples/libc/ex2.c
+8
-0
examples/libc/ex3.c
examples/libc/ex3.c
+8
-0
examples/libc/ex4.c
examples/libc/ex4.c
+8
-0
examples/libc/ex5.c
examples/libc/ex5.c
+8
-0
examples/libc/ex6.c
examples/libc/ex6.c
+8
-0
examples/libc/ex7.c
examples/libc/ex7.c
+8
-0
examples/libc/file.c
examples/libc/file.c
+7
-3
examples/libc/memory.c
examples/libc/memory.c
+7
-3
examples/libc/mq.c
examples/libc/mq.c
+10
-0
examples/libc/printf.c
examples/libc/printf.c
+10
-0
examples/libc/rand.c
examples/libc/rand.c
+7
-3
examples/libc/sem.c
examples/libc/sem.c
+9
-0
examples/libc/termios_test.c
examples/libc/termios_test.c
+6
-3
examples/libc/time.c
examples/libc/time.c
+6
-3
examples/network/chargen.c
examples/network/chargen.c
+9
-0
examples/network/tcpclient.c
examples/network/tcpclient.c
+9
-0
examples/network/tcpsendpacket.c
examples/network/tcpsendpacket.c
+9
-0
examples/network/tcpserver.c
examples/network/tcpserver.c
+9
-0
examples/network/udpclient.c
examples/network/udpclient.c
+9
-0
examples/network/udpserver.c
examples/network/udpserver.c
+9
-0
examples/test/device_test.c
examples/test/device_test.c
+2
-6
examples/test/fs_test.c
examples/test/fs_test.c
+2
-6
examples/test/hwtimer_test.c
examples/test/hwtimer_test.c
+9
-0
examples/test/mem_test.c
examples/test/mem_test.c
+9
-0
examples/test/net_test.c
examples/test/net_test.c
+9
-0
examples/test/rbb_test.c
examples/test/rbb_test.c
+2
-16
examples/test/rtc_test.c
examples/test/rtc_test.c
+3
-16
examples/ymodem/echo.c
examples/ymodem/echo.c
+9
-0
examples/ymodem/null.c
examples/ymodem/null.c
+9
-0
examples/ymodem/tofile.c
examples/ymodem/tofile.c
+9
-0
未找到文件。
examples/kernel/cpuusage.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include <rthw.h>
...
...
examples/kernel/event_simple.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:事件例程
*
...
...
examples/kernel/heap_malloc.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/heap_realloc.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/mbox_send_wait.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:邮箱例程_发送阻塞
*
...
...
examples/kernel/mbox_simple.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:邮箱例程
*
...
...
examples/kernel/memp_simple.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:内存池例程
*
...
...
examples/kernel/messageq_simple.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:消息队列例程
*
...
...
examples/kernel/mutex_priority.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 创建7个进程,tid20、tid21、tid22、tid23、tid24、tid25、tid26、tid27、tid28、tid29
* 各任务优先级分别为20、21、22、23、24、25、26、27、28、29,
...
...
examples/kernel/mutex_simple.c
浏览文件 @
f0cc3e86
/*
* 程序清单:
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/semaphore_buffer_worker.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:信号量实现生产者消费者间的互斥
*
...
...
examples/kernel/semaphore_dynamic.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:动态信号量
*
...
...
examples/kernel/semaphore_priority.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/semaphore_producer_consumer.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:生产者消费者例子
*
...
...
examples/kernel/semaphore_static.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:静态信号量
*
...
...
examples/kernel/tc_comm.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include "tc_comm.h"
#ifdef RT_USING_FINSH
#include <finsh.h>
...
...
examples/kernel/tc_comm.h
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#ifndef __TC_COMM_H__
#define __TC_COMM_H__
...
...
examples/kernel/tc_sample.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/thread_delay.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/thread_delete.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:删除线程
*
...
...
examples/kernel/thread_detach.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:线程脱离
*
...
...
examples/kernel/thread_dynamic.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/thread_dynamic_simple.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:动态线程
*
...
...
examples/kernel/thread_priority.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/thread_resume.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:唤醒线程
*
...
...
examples/kernel/thread_same_priority.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/thread_static.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/thread_static_simple.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:静态线程
*
...
...
examples/kernel/thread_suspend.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:挂起线程
*
...
...
examples/kernel/thread_yield.c
浏览文件 @
f0cc3e86
/*
* 程序清单:
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
#include <rtthread.h>
#include "tc_comm.h"
...
...
examples/kernel/timer_control.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:动态定时器例程
*
...
...
examples/kernel/timer_dynamic.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:动态定时器例程
*
...
...
examples/kernel/timer_static.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:定时器例程
*
...
...
examples/kernel/timer_stop_self.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:动态定时器例程
*
...
...
examples/kernel/timer_timeout.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
*
*/
/*
* 程序清单:消息队列例程
*
...
...
examples/libc/dirent.c
浏览文件 @
f0cc3e86
/*
*
dirent.c
*
Copyright (c) 2006-2021, RT-Thread Development Team
*
* Created on: 2010-11-17
* Author: bernard
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <stdlib.h>
...
...
examples/libc/env.c
浏览文件 @
f0cc3e86
/*
*
env.c
*
Copyright (c) 2006-2021, RT-Thread Development Team
*
* Created on: 2010-11-17
* Author: bernard
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <stdlib.h>
#include <finsh.h>
...
...
examples/libc/ex1.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
/* Creates two threads, one printing 10000 "a"s, the other printing
10000 "b"s.
Illustrates: thread creation, thread joining. */
...
...
examples/libc/ex2.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
/* The classic producer-consumer example.
Illustrates mutexes and conditions.
All integers between 0 and 9999 should be printed exactly twice,
...
...
examples/libc/ex3.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
/* Multi-thread searching.
Illustrates: thread cancellation, cleanup handlers. */
...
...
examples/libc/ex4.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
/* Making a library function that uses static variables thread-safe.
Illustrates: thread-specific data, pthread_once(). */
...
...
examples/libc/ex5.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
/* The classic producer-consumer example, implemented with semaphores.
All integers between 0 and 9999 should be printed exactly twice,
once to the right of the arrow and once to the left. */
...
...
examples/libc/ex6.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <errno.h>
#include <stdio.h>
#include <string.h>
...
...
examples/libc/ex7.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
/* ex7
*
* Test case that illustrates a timed wait on a condition variable.
...
...
examples/libc/file.c
浏览文件 @
f0cc3e86
/*
*
fstat.c
*
Copyright (c) 2006-2021, RT-Thread Development Team
*
* Created on: 2010-11-17
* Author: bernard
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <stdlib.h>
#include <finsh.h>
...
...
examples/libc/memory.c
浏览文件 @
f0cc3e86
/*
*
memory.c
*
Copyright (c) 2006-2021, RT-Thread Development Team
*
* Created on: 2010-11-17
* Author: bernard
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <stdlib.h>
#include <finsh.h>
...
...
examples/libc/mq.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
...
...
examples/libc/printf.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/fcntl.h>
...
...
examples/libc/rand.c
浏览文件 @
f0cc3e86
/*
*
rand.c
*
Copyright (c) 2006-2021, RT-Thread Development Team
*
* Created on: 2010-11-17
* Author: bernard
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <stdlib.h>
#include <finsh.h>
...
...
examples/libc/sem.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <pthread.h>
#include <semaphore.h>
#include <stdio.h>
...
...
examples/libc/termios_test.c
浏览文件 @
f0cc3e86
/*
*
termios_test.c
*
Copyright (c) 2006-2021, RT-Thread Development Team
*
* Created on: 2017-12-06
* Author: JasonJia
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-12-06 JasonJia first version
*/
#include <rtthread.h>
...
...
examples/libc/time.c
浏览文件 @
f0cc3e86
/*
*
time.c
*
Copyright (c) 2006-2021, RT-Thread Development Team
*
* Created on: 2010-11-17
* Author: bernard
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
...
...
examples/network/chargen.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <sys/socket.h>
...
...
examples/network/tcpclient.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <string.h>
...
...
examples/network/tcpsendpacket.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <netdb.h>
/* 为了解析主机名,需要包含netdb.h头文件 */
...
...
examples/network/tcpserver.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <string.h>
...
...
examples/network/udpclient.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <sys/socket.h>
/* 使用BSD socket,需要包含sockets.h头文件 */
...
...
examples/network/udpserver.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <string.h>
...
...
examples/test/device_test.c
浏览文件 @
f0cc3e86
/*
* File : device_test.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2011, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://openlab.rt-thread.com/license/LICENSE.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
examples/test/fs_test.c
浏览文件 @
f0cc3e86
/*
* File : fs_test.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2011, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://openlab.rt-thread.com/license/LICENSE.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
examples/test/hwtimer_test.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <finsh.h>
...
...
examples/test/mem_test.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <stdint.h>
#include <rthw.h>
...
...
examples/test/net_test.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
/*
* Net Test Utilities for RT-Thread
*/
...
...
examples/test/rbb_test.c
浏览文件 @
f0cc3e86
/*
* File : rbb_test.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
...
...
examples/test/rtc_test.c
浏览文件 @
f0cc3e86
/*
* File : rtc_test.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2017, RT-Thread Development Team
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-01-15 Liu2guang the first version.
*/
#include <rtthread.h>
#include <rtdevice.h>
...
...
examples/ymodem/echo.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <ymodem.h>
static
rt_device_t
_odev
;
...
...
examples/ymodem/null.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <ymodem.h>
static
enum
rym_code
_rym_dummy_write
(
...
...
examples/ymodem/tofile.c
浏览文件 @
f0cc3e86
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <rtthread.h>
#include <ymodem.h>
#include <dfs_posix.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录