Skip to content

Commit d7b19b4

Browse files
author
luo jiao
committed
add license information
1 parent 7d81f2d commit d7b19b4

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

i2c/i2c_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2018-08-15 Ernest Chen first implementation.
8+
* 2018-08-15 misonyo first implementation.
99
*/
1010

1111
#include <rtthread.h>

pin/pin_sample.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1+
/*
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2018-08-15 misonyo first implementation.
9+
*/
10+
111
#include <rtthread.h>
212
#include <rtdevice.h>
313

414
/* 引脚编号,通过查看drv_gpio.c确定 */
515
#define BEEP_PIN 37 /* PB2 */
6-
#define KEY0 55 /* PD8 */
7-
#define KEY1 56 /* PD9 */
16+
#define KEY0 55 /* PD8 */
17+
#define KEY1 56 /* PD9 */
818

919
void beep_on(void *args)
1020
{

serial/uart_sample.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2018-08-15 misonyo first implementation.
9+
*/
10+
111
#include <rtthread.h>
212

313
#define UART_NAME "uart2"

spi/spi_sample.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
/*
2-
* File : drv_qspi_flash.c
3-
* This file is part of RT-Thread RTOS
4-
* COPYRIGHT (C) 2009 RT-Thread Develop Team
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
53
*
6-
* The license and distribution terms for this file may be
7-
* found in the file LICENSE in this distribution or at
8-
* http://www.rt-thread.org/license/LICENSE
4+
* SPDX-License-Identifier: Apache-2.0
95
*
106
* Change Logs:
117
* Date Author Notes
12-
* 2018-08-17 zylx first implementation.
8+
* 2018-08-15 misonyo first implementation.
139
*/
1410

1511
#include <rtthread.h>
@@ -54,7 +50,7 @@ static void spi_sample(int argc,char *argv[])
5450
msg2.cs_take = 0;
5551
msg2.cs_release = 1;
5652
msg2.next = RT_NULL;
57-
53+
5854
rt_spi_transfer_message(spi_dev_w25q128, &msg1);
5955
rt_kprintf("use method2 read w25q128 ID is:%x%x\n", id[3], id[4]);
6056
}

0 commit comments

Comments
 (0)