Przeglądaj źródła

add license information

luo jiao 7 lat temu
rodzic
commit
d7b19b4400
4 zmienionych plików z 27 dodań i 11 usunięć
  1. 1 1
      i2c/i2c_sample.c
  2. 12 2
      pin/pin_sample.c
  3. 10 0
      serial/uart_sample.c
  4. 4 8
      spi/spi_sample.c

+ 1 - 1
i2c/i2c_sample.c

@@ -5,7 +5,7 @@
  *
  * Change Logs:
  * Date           Author       Notes
- * 2018-08-15     Ernest Chen  first implementation.
+ * 2018-08-15     misonyo      first implementation.
  */
 
 #include <rtthread.h>

+ 12 - 2
pin/pin_sample.c

@@ -1,10 +1,20 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ * 2018-08-15     misonyo      first implementation.
+ */
+
 #include <rtthread.h>
 #include <rtdevice.h>
 
 /* 引脚编号,通过查看drv_gpio.c确定 */
 #define BEEP_PIN        37  /* PB2 */
-#define KEY0 	        55  /* PD8 */
-#define KEY1 	        56  /* PD9 */
+#define KEY0            55  /* PD8 */
+#define KEY1            56  /* PD9 */
 
 void beep_on(void *args)
 {

+ 10 - 0
serial/uart_sample.c

@@ -1,3 +1,13 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ * 2018-08-15     misonyo      first implementation.
+ */
+
 #include <rtthread.h>
 
 #define UART_NAME       "uart2"

+ 4 - 8
spi/spi_sample.c

@@ -1,15 +1,11 @@
 /*
- * File      : drv_qspi_flash.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 RT-Thread Develop Team
+ * Copyright (c) 2006-2018, 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://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
  *
  * Change Logs:
  * Date           Author       Notes
- * 2018-08-17     zylx         first implementation.
+ * 2018-08-15     misonyo      first implementation.
  */
 
 #include <rtthread.h>
@@ -54,7 +50,7 @@ static void spi_sample(int argc,char *argv[])
             msg2.cs_take    = 0;
             msg2.cs_release = 1;
             msg2.next       = RT_NULL;
-            
+
             rt_spi_transfer_message(spi_dev_w25q128, &msg1);
             rt_kprintf("use method2 read w25q128 ID is:%x%x\n", id[3], id[4]);
         }