Преглед изворни кода

[example] 对版权信息进行人工扫描并添加确实的版权信息

Meco Man пре 4 година
родитељ
комит
f0cc3e861a
68 измењених фајлова са 556 додато и 67 уклоњено
  1. 8 0
      examples/kernel/cpuusage.c
  2. 8 0
      examples/kernel/event_simple.c
  3. 9 0
      examples/kernel/heap_malloc.c
  4. 9 0
      examples/kernel/heap_realloc.c
  5. 9 0
      examples/kernel/mbox_send_wait.c
  6. 9 0
      examples/kernel/mbox_simple.c
  7. 9 0
      examples/kernel/memp_simple.c
  8. 9 0
      examples/kernel/messageq_simple.c
  9. 9 0
      examples/kernel/mutex_priority.c
  10. 6 1
      examples/kernel/mutex_simple.c
  11. 9 0
      examples/kernel/semaphore_buffer_worker.c
  12. 9 0
      examples/kernel/semaphore_dynamic.c
  13. 9 0
      examples/kernel/semaphore_priority.c
  14. 9 0
      examples/kernel/semaphore_producer_consumer.c
  15. 9 0
      examples/kernel/semaphore_static.c
  16. 9 0
      examples/kernel/tc_comm.c
  17. 9 0
      examples/kernel/tc_comm.h
  18. 9 0
      examples/kernel/tc_sample.c
  19. 9 0
      examples/kernel/thread_delay.c
  20. 9 0
      examples/kernel/thread_delete.c
  21. 9 0
      examples/kernel/thread_detach.c
  22. 9 0
      examples/kernel/thread_dynamic.c
  23. 9 0
      examples/kernel/thread_dynamic_simple.c
  24. 9 0
      examples/kernel/thread_priority.c
  25. 9 0
      examples/kernel/thread_resume.c
  26. 9 0
      examples/kernel/thread_same_priority.c
  27. 9 0
      examples/kernel/thread_static.c
  28. 9 0
      examples/kernel/thread_static_simple.c
  29. 9 0
      examples/kernel/thread_suspend.c
  30. 7 1
      examples/kernel/thread_yield.c
  31. 9 0
      examples/kernel/timer_control.c
  32. 9 0
      examples/kernel/timer_dynamic.c
  33. 9 0
      examples/kernel/timer_static.c
  34. 9 0
      examples/kernel/timer_stop_self.c
  35. 9 0
      examples/kernel/timer_timeout.c
  36. 6 3
      examples/libc/dirent.c
  37. 7 3
      examples/libc/env.c
  38. 8 0
      examples/libc/ex1.c
  39. 8 0
      examples/libc/ex2.c
  40. 8 0
      examples/libc/ex3.c
  41. 8 0
      examples/libc/ex4.c
  42. 8 0
      examples/libc/ex5.c
  43. 8 0
      examples/libc/ex6.c
  44. 8 0
      examples/libc/ex7.c
  45. 7 3
      examples/libc/file.c
  46. 7 3
      examples/libc/memory.c
  47. 10 0
      examples/libc/mq.c
  48. 10 0
      examples/libc/printf.c
  49. 7 3
      examples/libc/rand.c
  50. 9 0
      examples/libc/sem.c
  51. 6 3
      examples/libc/termios_test.c
  52. 6 3
      examples/libc/time.c
  53. 9 0
      examples/network/chargen.c
  54. 9 0
      examples/network/tcpclient.c
  55. 9 0
      examples/network/tcpsendpacket.c
  56. 9 0
      examples/network/tcpserver.c
  57. 9 0
      examples/network/udpclient.c
  58. 9 0
      examples/network/udpserver.c
  59. 2 6
      examples/test/device_test.c
  60. 2 6
      examples/test/fs_test.c
  61. 9 0
      examples/test/hwtimer_test.c
  62. 9 0
      examples/test/mem_test.c
  63. 9 0
      examples/test/net_test.c
  64. 2 16
      examples/test/rbb_test.c
  65. 3 16
      examples/test/rtc_test.c
  66. 9 0
      examples/ymodem/echo.c
  67. 9 0
      examples/ymodem/null.c
  68. 9 0
      examples/ymodem/tofile.c

+ 8 - 0
examples/kernel/cpuusage.c

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
 #include <rtthread.h>
 #include <rthw.h>
 

+ 8 - 0
examples/kernel/event_simple.c

@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
 /*
  * 程序清单:事件例程
  *

+ 9 - 0
examples/kernel/heap_malloc.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/heap_realloc.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/mbox_send_wait.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:邮箱例程_发送阻塞
  *

+ 9 - 0
examples/kernel/mbox_simple.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:邮箱例程
  *

+ 9 - 0
examples/kernel/memp_simple.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:内存池例程
  *

+ 9 - 0
examples/kernel/messageq_simple.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:消息队列例程
  *

+ 9 - 0
examples/kernel/mutex_priority.c

@@ -1,3 +1,12 @@
+/*
+ * 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,

+ 6 - 1
examples/kernel/mutex_simple.c

@@ -1,5 +1,10 @@
 /*
- * 程序清单:
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
  */
 #include <rtthread.h>
 #include "tc_comm.h"

+ 9 - 0
examples/kernel/semaphore_buffer_worker.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:信号量实现生产者消费者间的互斥
  *

+ 9 - 0
examples/kernel/semaphore_dynamic.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:动态信号量
  *

+ 9 - 0
examples/kernel/semaphore_priority.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/semaphore_producer_consumer.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:生产者消费者例子
  *

+ 9 - 0
examples/kernel/semaphore_static.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:静态信号量
  *

+ 9 - 0
examples/kernel/tc_comm.c

@@ -1,3 +1,12 @@
+/*
+ * 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>

+ 9 - 0
examples/kernel/tc_comm.h

@@ -1,3 +1,12 @@
+
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
 #ifndef __TC_COMM_H__
 #define __TC_COMM_H__
 

+ 9 - 0
examples/kernel/tc_sample.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/thread_delay.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/thread_delete.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:删除线程
  *

+ 9 - 0
examples/kernel/thread_detach.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:线程脱离
  *

+ 9 - 0
examples/kernel/thread_dynamic.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/thread_dynamic_simple.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:动态线程
  *

+ 9 - 0
examples/kernel/thread_priority.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/thread_resume.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:唤醒线程
  *

+ 9 - 0
examples/kernel/thread_same_priority.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/thread_static.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/thread_static_simple.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:静态线程
  *

+ 9 - 0
examples/kernel/thread_suspend.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:挂起线程
  *

+ 7 - 1
examples/kernel/thread_yield.c

@@ -1,6 +1,12 @@
 /*
- * 程序清单:
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
  */
+
 #include <rtthread.h>
 #include "tc_comm.h"
 

+ 9 - 0
examples/kernel/timer_control.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:动态定时器例程
  *

+ 9 - 0
examples/kernel/timer_dynamic.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:动态定时器例程
  *

+ 9 - 0
examples/kernel/timer_static.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:定时器例程
  *

+ 9 - 0
examples/kernel/timer_stop_self.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:动态定时器例程
  *

+ 9 - 0
examples/kernel/timer_timeout.c

@@ -1,3 +1,12 @@
+/*
+ * Copyright (c) 2006-2021, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ *
+ */
+
 /*
  * 程序清单:消息队列例程
  *

+ 6 - 3
examples/libc/dirent.c

@@ -1,8 +1,11 @@
 /*
- * 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>

+ 7 - 3
examples/libc/env.c

@@ -1,9 +1,13 @@
 /*
- * 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>

+ 8 - 0
examples/libc/ex1.c

@@ -1,3 +1,11 @@
+/*
+ * 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. */

+ 8 - 0
examples/libc/ex2.c

@@ -1,3 +1,11 @@
+/*
+ * 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,

+ 8 - 0
examples/libc/ex3.c

@@ -1,3 +1,11 @@
+/*
+ * 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. */
 

+ 8 - 0
examples/libc/ex4.c

@@ -1,3 +1,11 @@
+/*
+ * 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(). */
 

+ 8 - 0
examples/libc/ex5.c

@@ -1,3 +1,11 @@
+/*
+ * 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. */

+ 8 - 0
examples/libc/ex6.c

@@ -1,3 +1,11 @@
+/*
+ * 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>

+ 8 - 0
examples/libc/ex7.c

@@ -1,3 +1,11 @@
+/*
+ * 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.

+ 7 - 3
examples/libc/file.c

@@ -1,9 +1,13 @@
 /*
- * 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>

+ 7 - 3
examples/libc/memory.c

@@ -1,9 +1,13 @@
 /*
- * 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>

+ 10 - 0
examples/libc/mq.c

@@ -1,3 +1,13 @@
+/*
+ * 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>

+ 10 - 0
examples/libc/printf.c

@@ -1,3 +1,13 @@
+/*
+ * 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>

+ 7 - 3
examples/libc/rand.c

@@ -1,9 +1,13 @@
 /*
- * 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>

+ 9 - 0
examples/libc/sem.c

@@ -1,3 +1,12 @@
+/*
+ * 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>

+ 6 - 3
examples/libc/termios_test.c

@@ -1,8 +1,11 @@
 /*
- * 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>

+ 6 - 3
examples/libc/time.c

@@ -1,8 +1,11 @@
 /*
- * 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>

+ 9 - 0
examples/network/chargen.c

@@ -1,3 +1,12 @@
+/*
+ * 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>
 

+ 9 - 0
examples/network/tcpclient.c

@@ -1,3 +1,12 @@
+/*
+ * 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>
 

+ 9 - 0
examples/network/tcpsendpacket.c

@@ -1,3 +1,12 @@
+/*
+ * 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头文件 */

+ 9 - 0
examples/network/tcpserver.c

@@ -1,3 +1,12 @@
+/*
+ * 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>
 

+ 9 - 0
examples/network/udpclient.c

@@ -1,3 +1,12 @@
+/*
+ * 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头文件 */

+ 9 - 0
examples/network/udpserver.c

@@ -1,3 +1,12 @@
+/*
+ * 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>
 

+ 2 - 6
examples/test/device_test.c

@@ -1,11 +1,7 @@
 /*
- * 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

+ 2 - 6
examples/test/fs_test.c

@@ -1,11 +1,7 @@
 /*
- * 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

+ 9 - 0
examples/test/hwtimer_test.c

@@ -1,3 +1,12 @@
+/*
+ * 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>

+ 9 - 0
examples/test/mem_test.c

@@ -1,3 +1,12 @@
+/*
+ * 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>

+ 9 - 0
examples/test/net_test.c

@@ -1,3 +1,12 @@
+/*
+ * 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
  */

+ 2 - 16
examples/test/rbb_test.c

@@ -1,21 +1,7 @@
 /*
- * 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

+ 3 - 16
examples/test/rtc_test.c

@@ -1,26 +1,13 @@
 /*
- * 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>
 

+ 9 - 0
examples/ymodem/echo.c

@@ -1,3 +1,12 @@
+/*
+ * 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;

+ 9 - 0
examples/ymodem/null.c

@@ -1,3 +1,12 @@
+/*
+ * 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(

+ 9 - 0
examples/ymodem/tofile.c

@@ -1,3 +1,12 @@
+/*
+ * 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>