diff --git a/bsp/amebaz/.config b/bsp/amebaz/.config index 7745397107e1885ee449c736de7f6d0a2713413c..4a513007e70da8acf7c77167751b049911a351c3 100644 --- a/bsp/amebaz/.config +++ b/bsp/amebaz/.config @@ -13,15 +13,24 @@ CONFIG_RT_THREAD_PRIORITY_32=y # CONFIG_RT_THREAD_PRIORITY_256 is not set CONFIG_RT_THREAD_PRIORITY_MAX=32 CONFIG_RT_TICK_PER_SECOND=1000 -CONFIG_RT_DEBUG=y CONFIG_RT_USING_OVERFLOW_CHECK=y -CONFIG_RT_DEBUG_INIT=0 -CONFIG_RT_DEBUG_THREAD=0 CONFIG_RT_USING_HOOK=y +CONFIG_RT_IDEL_HOOK_LIST_SIZE=4 CONFIG_IDLE_THREAD_STACK_SIZE=256 CONFIG_RT_USING_TIMER_SOFT=y CONFIG_RT_TIMER_THREAD_PRIO=4 -CONFIG_RT_TIMER_THREAD_STACK_SIZE=512 +CONFIG_RT_TIMER_THREAD_STACK_SIZE=1024 +CONFIG_RT_DEBUG=y +# CONFIG_RT_DEBUG_INIT_CONFIG is not set +# CONFIG_RT_DEBUG_THREAD_CONFIG is not set +# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set +# CONFIG_RT_DEBUG_IPC_CONFIG is not set +# CONFIG_RT_DEBUG_TIMER_CONFIG is not set +# CONFIG_RT_DEBUG_IRQ_CONFIG is not set +# CONFIG_RT_DEBUG_MEM_CONFIG is not set +# CONFIG_RT_DEBUG_SLAB_CONFIG is not set +# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set +# CONFIG_RT_DEBUG_MODULE_CONFIG is not set # # Inter-Thread communication @@ -53,13 +62,14 @@ CONFIG_RT_USING_DEVICE=y CONFIG_RT_USING_CONSOLE=y CONFIG_RT_CONSOLEBUF_SIZE=128 CONFIG_RT_CONSOLE_DEVICE_NAME="dbg" -# CONFIG_RT_USING_MODULE is not set # # RT-Thread Components # CONFIG_RT_USING_COMPONENTS_INIT=y -# CONFIG_RT_USING_USER_MAIN is not set +CONFIG_RT_USING_USER_MAIN=y +CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048 +CONFIG_RT_MAIN_THREAD_PRIORITY=10 # # C++ features @@ -82,7 +92,7 @@ CONFIG_FINSH_CMD_SIZE=80 # CONFIG_FINSH_USING_AUTH is not set CONFIG_FINSH_USING_MSH=y CONFIG_FINSH_USING_MSH_DEFAULT=y -# CONFIG_FINSH_USING_MSH_ONLY is not set +CONFIG_FINSH_USING_MSH_ONLY=y CONFIG_FINSH_ARG_MAX=10 # @@ -94,26 +104,49 @@ CONFIG_FINSH_ARG_MAX=10 # Device Drivers # CONFIG_RT_USING_DEVICE_IPC=y +CONFIG_RT_PIPE_BUFSZ=512 CONFIG_RT_USING_SERIAL=y # CONFIG_RT_USING_CAN is not set # CONFIG_RT_USING_HWTIMER is not set # CONFIG_RT_USING_CPUTIME is not set # CONFIG_RT_USING_I2C is not set -CONFIG_RT_USING_PIN=y +# CONFIG_RT_USING_PIN is not set # CONFIG_RT_USING_PWM is not set # CONFIG_RT_USING_MTD_NOR is not set # CONFIG_RT_USING_MTD_NAND is not set +# CONFIG_RT_USING_MTD is not set # CONFIG_RT_USING_RTC is not set # CONFIG_RT_USING_SDIO is not set # CONFIG_RT_USING_SPI is not set # CONFIG_RT_USING_WDT is not set -CONFIG_RT_USING_WIFI=y -CONFIG_RT_USING_WLAN_STA=y -CONFIG_RT_USING_WLAN_AP=y -CONFIG_WIFI_DEVICE_STA_NAME="w0" -CONFIG_WIFI_DEVICE_AP_NAME="ap" # CONFIG_RT_USING_AUDIO is not set +# +# Using WiFi +# +CONFIG_RT_USING_WIFI=y +CONFIG_RT_WLAN_DEVICE_STA_NAME="wlan0" +CONFIG_RT_WLAN_DEVICE_AP_NAME="wlan1" +CONFIG_RT_WLAN_DEFAULT_PROT="lwip" +CONFIG_RT_WLAN_SCAN_WAIT_MS=10000 +CONFIG_RT_WLAN_CONNECT_WAIT_MS=10000 +CONFIG_RT_WLAN_SSID_MAX_LENGTH=32 +CONFIG_RT_WLAN_PASSWORD_MAX_LENGTH=32 +CONFIG_RT_WLAN_SCAN_SORT=y +CONFIG_RT_WLAN_CFG_INFO_MAX=3 +CONFIG_RT_WLAN_WORKQUEUE_THREAD_NAME="wlan_job" +CONFIG_RT_WLAN_WORKQUEUE_THREAD_SIZE=2048 +CONFIG_RT_WLAN_WORKQUEUE_THREAD_PRIO=22 +CONFIG_RT_WLAN_DEV_EVENT_NUM=2 +# CONFIG_RT_WLAN_PROT_LWIP_PBUF_FORCE is not set +CONFIG_RT_WLAN_DEBUG=y +CONFIG_RT_WLAN_CMD_DEBUG=y +# CONFIG_RT_WLAN_MGNT_DEBUG is not set +# CONFIG_RT_WLAN_DEV_DEBUG is not set +# CONFIG_RT_WLAN_PROT_DEBUG is not set +# CONFIG_RT_WLAN_CFG_DEBUG is not set +# CONFIG_RT_WLAN_LWIP_DEBUG is not set + # # Using USB # @@ -127,15 +160,21 @@ CONFIG_RT_USING_LIBC=y # CONFIG_RT_USING_PTHREADS is not set # -# Network stack +# Network # +# +# Socket abstraction layer +# +# CONFIG_RT_USING_SAL is not set + # # light weight TCP/IP stack # CONFIG_RT_USING_LWIP=y -CONFIG_RT_USING_LWIP141=y -# CONFIG_RT_USING_LWIP202 is not set +# CONFIG_RT_USING_LWIP141 is not set +CONFIG_RT_USING_LWIP202=y +# CONFIG_RT_USING_LWIP_IPV6 is not set CONFIG_RT_LWIP_IGMP=y CONFIG_RT_LWIP_ICMP=y # CONFIG_RT_LWIP_SNMP is not set @@ -178,12 +217,22 @@ CONFIG_LWIP_SO_SNDTIMEO=1 CONFIG_LWIP_SO_RCVBUF=1 # CONFIG_RT_LWIP_NETIF_LOOPBACK is not set CONFIG_LWIP_NETIF_LOOPBACK=0 +# CONFIG_RT_LWIP_STATS is not set +# CONFIG_RT_LWIP_DEBUG is not set # # Modbus master and slave stack # # CONFIG_RT_USING_MODBUS is not set -# CONFIG_LWIP_USING_DHCPD is not set + +# +# AT commands +# +# CONFIG_RT_USING_AT is not set +CONFIG_LWIP_USING_DHCPD=y +CONFIG_DHCPD_SERVER_IP="192.168.169.1" +CONFIG_DHCPD_USING_ROUTER=y +# CONFIG_LWIP_USING_CUSTOMER_DNS_SERVER is not set # # VBUS(Virtual Software BUS) @@ -212,7 +261,6 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # CONFIG_PKG_USING_LJSON is not set # CONFIG_PKG_USING_EZXML is not set # CONFIG_PKG_USING_NANOPB is not set -# CONFIG_PKG_USING_GAGENT_CLOUD is not set # # Wi-Fi @@ -230,7 +278,16 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # CONFIG_PKG_USING_COAP is not set # CONFIG_PKG_USING_NOPOLL is not set # CONFIG_PKG_USING_NETUTILS is not set +# CONFIG_PKG_USING_AT_DEVICE is not set +# CONFIG_PKG_USING_WIZNET is not set + +# +# IoT Cloud +# # CONFIG_PKG_USING_ONENET is not set +# CONFIG_PKG_USING_GAGENT_CLOUD is not set +# CONFIG_PKG_USING_ALI_IOTKIT is not set +# CONFIG_PKG_USING_AZURE is not set # # security packages @@ -242,6 +299,7 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # # language packages # +# CONFIG_PKG_USING_LUA is not set # CONFIG_PKG_USING_JERRYSCRIPT is not set # CONFIG_PKG_USING_MICROPYTHON is not set @@ -258,6 +316,7 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # CONFIG_PKG_USING_EASYFLASH is not set # CONFIG_PKG_USING_EASYLOGGER is not set # CONFIG_PKG_USING_SYSTEMVIEW is not set +# CONFIG_PKG_USING_RDB is not set # # system packages @@ -271,22 +330,29 @@ CONFIG_LWIP_NETIF_LOOPBACK=0 # CONFIG_PKG_USING_SQLITE is not set # CONFIG_PKG_USING_RTI is not set # CONFIG_PKG_USING_LITTLEVGL2RTT is not set +# CONFIG_PKG_USING_CMSIS is not set +# CONFIG_PKG_USING_DFS_YAFFS is not set # # peripheral libraries and drivers # -# CONFIG_PKG_USING_STM32F4_HAL is not set -# CONFIG_PKG_USING_STM32F4_DRIVERS is not set CONFIG_PKG_USING_REALTEK_AMEBA=y CONFIG_PKG_REALTEK_AMEBA_PATH="/packages/peripherals/realtek_ameba" CONFIG_PKG_USING_REALTEK_AMEBA_LATEST_VERSION=y # CONFIG_PKG_USING_REALTEK_AMEBA_V100 is not set CONFIG_PKG_REALTEK_AMEBA_VER="latest" -# CONFIG_PKG_USING_CC3200_SDK is not set +# CONFIG_PKG_USING_SHT2X is not set +# CONFIG_PKG_USING_AHT10 is not set +# CONFIG_PKG_USING_AP3216C is not set +# CONFIG_PKG_USING_STM32_SDIO is not set +# CONFIG_PKG_USING_ICM20608 is not set +# CONFIG_PKG_USING_U8G2 is not set # # miscellaneous packages # +# CONFIG_PKG_USING_LIBCSV is not set +# CONFIG_PKG_USING_OPTPARSE is not set # CONFIG_PKG_USING_FASTLZ is not set # CONFIG_PKG_USING_MINILZO is not set # CONFIG_PKG_USING_QUICKLZ is not set @@ -298,17 +364,57 @@ CONFIG_PKG_REALTEK_AMEBA_VER="latest" # # sample package # -# CONFIG_PKG_USING_SAMPLES is not set + +# +# samples: kernel and components samples +# +# CONFIG_PKG_USING_KERNEL_SAMPLES is not set +# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set +# CONFIG_PKG_USING_NETWORK_SAMPLES is not set +# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set # # example package: hello # # CONFIG_PKG_USING_HELLO is not set +# +# Privated Packages of RealThread +# +# CONFIG_PKG_USING_CODEC is not set +# CONFIG_PKG_USING_PLAYER is not set +# CONFIG_PKG_USING_PERSIMMON_SRC is not set + +# +# Network Utilities +# +# CONFIG_PKG_USING_MDNS is not set +# CONFIG_PKG_USING_UPNP is not set +# CONFIG_PKG_USING_WICED is not set +# CONFIG_PKG_USING_CLOUDSDK is not set +# CONFIG_PKG_USING_COREMARK is not set +# CONFIG_PKG_USING_POWER_MANAGER is not set +# CONFIG_PKG_USING_RT_OTA is not set +# CONFIG_PKG_USING_RDBD_SRC is not set +# CONFIG_PKG_USING_RTINSIGHT is not set +# CONFIG_PKG_USING_SMARTCONFIG is not set + +# +# Test Packages of RealThread +# +# CONFIG_PKG_USING_JERRYSCRIPT_WIN32 is not set +# CONFIG_PKG_USING_JS_PERSIMMON is not set + # # Env config # # CONFIG_SYS_AUTO_UPDATE_PKGS is not set # CONFIG_SYS_CREATE_MDK_IAR_PROJECT is not set # CONFIG_SYS_PKGS_DOWNLOAD_ACCELERATE is not set -CONFIG_RT_USING_UART0=y + +# +# External Libraries +# +CONFIG_RT_USING_SMARTCONFIG_LIB=y +# CONFIG_BSP_USING_UART0 is not set +CONFIG_BSP_USING_WIFI=y diff --git a/bsp/amebaz/Kconfig b/bsp/amebaz/Kconfig index 7c35a1cc66ebb1a97bc9048d4c3aebf2091cd8e4..5e639f4e5f7af721e8d254950bf2fe4024d4c47e 100644 --- a/bsp/amebaz/Kconfig +++ b/bsp/amebaz/Kconfig @@ -26,10 +26,7 @@ config $ENV_DIR source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "$ENV_DIR/tools/scripts/cmds/Kconfig" - -config RT_USING_UART0 - bool "Using RT_USING_UART0" - default y +source "$BSP_DIR/libraries/Kconfig" +source "$BSP_DIR/drivers/Kconfig" select PKG_USING_REALTEK_AMEBA - diff --git a/bsp/amebaz/README.md b/bsp/amebaz/README.md index d2c0b4013e08df2084b54e36e2210ca09b912782..5bc1d604265112e351a98b4d3c36d36919373a85 100644 --- a/bsp/amebaz/README.md +++ b/bsp/amebaz/README.md @@ -1,9 +1,8 @@ # amebaz on RT-Thread -## 1. 简介 +## 1 简介 -amebaz 是由Realtek推出的Cortex-M4内核的WiFi SOC芯片rtl8710b系列 -包括如下硬件特性: +amebaz 是由Realtek推出的Cortex-M4内核的WiFi SOC芯片,属于rtl8710b系列。硬件特性如下: | 硬件 | 描述 | | -- | -- | @@ -11,25 +10,42 @@ amebaz 是由Realtek推出的Cortex-M4内核的WiFi SOC芯片rtl8710b系列 |CPU| Cortex-M4 | |主频| 125MHz | -## 2. 编译说明 - +## 2 编译说明 | 环境 | 说明 | | ------------ | ------------------------------------------------------------ | | PC操作系统 | Linux/MacOS/Windows | -| 编译器 | arm-none-eabi-gcc version 6.3.1 20170620 (release)/iar | -| 构建工具 | scons/iar | +| 编译器 | arm-none-eabi-gcc version 6.3.1 20170620 (release) | +| 构建工具 | scons | | 依赖软件环境 | Env工具/(IAR或arm-none-eabi-gcc)/git/调试器驱动 | -1) 下载源码 +## 3 下载源码 ```bash git clone https://github.com/RT-Thread/rt-thread.git ``` -2) 配置工程并准备env +## 4 环境准备 -(Linux/Mac) +### 4.1 Windows 环境准备 + +Windows环境下有两种开发环境,`GCC toolchain` 和 `IAR IDE`,根据不同的需求自行选择。 + +#### 4.1.1 IAR 发开环境 + +IAR 开发环境需要开发者自己安装软件,安装过程这里就不特别说明了。amebaz工程当前仅支持 `IAR 7.X` 的版本。 + +#### 4.4.2 GCC 开发环境 + +GCC开发使用 RT-Thread 官方提供的 env 工具,该工具集成 GCC 工具链,还具有编译构建环境、图形化系统配置及软件包管理功能。 + +下载地址:[点击下载env工具](https://www.rt-thread.org/page/download.html) + +第一次使用env工具的开发者可以去这里查看教程:[RT-Thread env 工具用户手册](https://www.rt-thread.org/document/site/rtthread-development-guide/rtthread-tool-manual/env/env-user-manual/)。 + +### 4.2 Linux/Mac 环境准备 + +Linux/Mac 仅支持 GCC 工具链。 ```bash cd rt-thread/bsp/amebaz @@ -38,68 +54,62 @@ amebaz 是由Realtek推出的Cortex-M4内核的WiFi SOC芯片rtl8710b系列 pkgs --upgrade ``` -(Windows) +## 5 配置工程(可选) ->在[RT-Thread官网][1]下载ENV工具包 +### 5.1 Windows 配置工程 -3) 配置芯片型号 - -(Linux/Mac) +配置工程,需要在相应的工程目录下使用 `menuconfig` 命令打开图形界面,开发者根据自己的需求开关功能组件。 ```bash - scons --menuconfig + menuconfig ``` -(Windows(ENV环境中)) +### 5.2 Linux/Mac 配置工程 + +(Linux/Mac) ```bash - menuconfig + scons --menuconfig ``` -在menuconfig页面配置并选择对应的芯片型号,若开发环境为IAR,则需要生成工程 - -4) 下载package +## 6 更新软件包 -amebaz配套的驱动库以package形式提供,故需先下载对应的package(realtek-ameba),请使用env下载package +amebaz 配套的驱动库以 package 形式提供,故需先下载对应的 package(realtek-ameba),在工程目录下,使用下面命令下载软件包。 ```bash pkgs --update ``` -5) 生成工程(Mac/Linux下请跳过此步骤) - -(Windows IAR) +## 7 编译 -```bash - SET RTT_CC=iar - scons --target=iar -s -``` +### 7.1 Windows 编译工程 -*该板级支持包不支持生成mdk的工程 +#### 7.1.1 IAR 编译工程 +先打开工程目录下的IAR工程(project.eww),然后单击 Project 选项卡,单击 Rebuild All 选项,进行编译 -6) 编译 +![ ](figures/iar_build.png) -使用IAR请参见对应教程 +#### 7.1.2 GCC 编译工程 -(Windows arm-none-eabi-gcc) -使用以下指令设置gcc路径 +可以使用env编译工程,无需设置GCC工具链路径,直接在 rt-thread/bsp/amebaz 工程目录下输入 `scons` 编译即可。编译完成后,在工程目录下生成 `image2_all_ota1.bin` 文件。 ```bash - SET RTT_EXEC_PATH=[GCC路径] + scons ``` -(Linux/Mac arm-none-eabi-gcc) -使用以下指令设置gcc路径 +### 7.2 Linux/Mac 编译工程 + +如果没有配置GCC路径的环境变量,则需要使用以下指令设置gcc路径。 ```bash export RTT_EXEC_PATH=[GCC路径] ``` -编译(WindowsLinux/Mac arm-none-eabi-gcc) +设置 GCC 路径后,使用 `scons` 编译工程。 ```bash - scons -j4 + scons ``` 出现下列信息即为编译成功 @@ -128,35 +138,153 @@ Done... scons: done building targets. ``` -如果编译正确无误,会产生image2_all_ota1.bin文件。 +如果编译正确无误,会在工程目录下生成 image2_all_ota1.bin 文件。 + +## 8 烧写及执行 + +### 8.1 IAR下载 + +下载程序分为两部分: + +(a)先使用jlink工具正确连接A14(CLK),A15(TMS),GND,VCC引脚 + +(b)打开 IAR 工程并完成编译后,单击 Project 选项卡下 Download 选项,选择 Download active application 下载程序。 + +![IAR下载程序](figures/iar_download.png) + +(c)短按复位按钮,连接串口查看调试信息 + +### 8.2 串口下载 + +串口下载分为三个步骤 + +(a)板子进入下载模式 + +板子使用 `micros usb` 上电,然后按住 `FLASH` 键不放手,短按 `RST` 键,松开 `RST` 和 `FLASH` 键进入下载模式。 + +(b)配置下载工具 -## 3. 烧写及执行 +打开 Image Tool 下载工具配置使用,选择 `micros usb` 所对应的串口端口,选择波特率,默认波特率 1.5Mbps,然后打开串口端口,如下载工具图“①”所示 -烧写可以使用仿真器 串口等多种方式 此处不再赘述 +![串口下载程序](figures/image-tool_v2.2.0.png) -### 3.1 运行结果 +boot选择工程提供的 `boot_all.bin`, OTA1 选择生成的 image2_all_ota1.bin 文件(通常在工程目录下),并且注意在这两个选项前面打勾确认,其他默认即可,如下载工具图“②”。 -如果编译 & 烧写无误,会在专用日志串口*上看到RT-Thread的启动logo信息: +(c)下载程序 + +按下 Download(如下载工具图 “③”),即可开始下载程序,并且可以从日志窗口查看到下载信息。 + +## 9 运行 + +下载程序后,连接串口(默认使用板子上 `micro usb`),打开串口工具,配置串口波特率 115200,数据位 8 位,停止位 1 位,无校验,无流控;短按 `RST` 键复位,串口将输出调试信息,如下所示: ```bash \ | / - RT - Thread Operating System - / | \ 3.0.4 build May 15 2018 + / | \ 3.1.1 build Oct 25 2018 2006 - 2018 Copyright by rt-thread team -msh /> +lwIP-2.0.2 initialized! + +Initializing WIFI ... +LDO Mode, BD_Info: 0 + +LDO Mode, BD_Info: 0 + +WIFI initialized +[I/WIFI] amebaz_wifi_start success +build time: Oct 25 2018 10:52:02 +Hello RT-Thread! +[I/WLAN.dev] wlan init success +[I/WLAN.lwip] eth device init ok name:w0 +msh > +``` + +## 10 WIFI简单使用 + +### wifi扫描命令 + +wifi 扫描命令格式如下 + +```bash + wifi scan +``` + +命令说明 + +| 字段 | 描述 | +| ---- | ------------------------ | +| wifi | 有关wifi命令都以wifi开头 | +| scan | wifi执行扫描动作 | + +在调试工具中输入该命令,即可进行 wifi 命令扫描,调试信息如下 + +```bash +scan ap down + SSID MAC security rssi chn Mbps +------------------------------- ----------------- -------------- ---- --- ---- +NEO-shanghai-ap2 58:66:ba:a1:ee:71 WPA2_TKIP_PSK -74 11 0 +WQ1 88:25:93:94:51:54 WPA2_AES_PSK -76 13 0 +shyc1 a0:40:a0:a3:e8:c9 WPA2_AES_PSK -77 13 0 +KVIP 70:65:82:3b:71:43 WPA2_AES_PSK -83 11 0 +YST2016 88:25:93:c6:67:d1 WPA2_TKIP_PSK -84 4 0 ``` -*默认串口 +> 注:wifi 有关的命令,均以wifi开头。 +### wifi 接入 -## 4. 驱动支持情况及计划 +接入 wifi 之前,先介绍一下其接入的命令 ,如下 + +```bash + wifi join ssid 123456789 +``` + +命令说明 + +| 字段 | 描述 | +| --------- | ---------------------------------- | +| wifi | 有关wifi命令都以wifi开头 | +| join | wifi执行连接动作 | +| ssid | 热点的名字 | +| 123456789 | 热点的密码,没有密码可不输入这一项 | + +了解上述命令,并且成功完成前面步骤,在串口中输入 `wifi w0 join realthread_VIP 123456789` ,如下日志表示连接成功 + +```bash + +WIFI wlan0 Setting: +============================== + MODE => STATION + SSID => realthread_VIP + CHANNEL => 6 + SECURITY => AES + PASSWORD => 123456789 +[I/WLAN.mgnt] wifi connect success ssid:realthread_VIP + +``` + +另外,提供一个简单的测试使用命令,查询设备IP地址命令:ifconfig。 + +```bash +network interface: w0 (Default) +MTU: 1500 +MAC: 00 e0 4c d5 ac 46 +FLAGS: UP LINK_UP ETHARP BROADCAST +ip address: 172.16.200.110 +gw address: 172.16.200.1 +net mask : 255.255.255.0 +dns server #0: 172.16.200.1 +dns server #1: 223.5.5.5 +``` + +## 驱动支持情况及计划 | 驱动 | 支持情况 | 备注 | | ---------- | :------: | :--------------------------: | -| UART | 支持 | UART0 | - +| UART | 支持 | UART0 | +| WLAN | 部分支持 | 仅支持STA模式 | -## 5. 联系人信息 +## 联系人信息 维护人: [flyingcys][4] < [flyingcys@163.com][5] > diff --git a/bsp/amebaz/applications/main.c b/bsp/amebaz/applications/main.c index 2f304b9503a742c69fe18cea1a8702e43449f04c..381b0268674fc7f8deb846121de721585aa52b03 100644 --- a/bsp/amebaz/applications/main.c +++ b/bsp/amebaz/applications/main.c @@ -15,19 +15,12 @@ #include #include - -/** - * @addtogroup ameba - */ - -/*@{*/ +#include int main(void) { rt_kprintf("build time: %s %s\n", __DATE__, __TIME__); rt_kprintf("Hello RT-Thread!\n"); - + rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION); return 0; } - -/*@}*/ diff --git a/bsp/amebaz/applications/smartconfig_app.c b/bsp/amebaz/applications/smartconfig_app.c new file mode 100644 index 0000000000000000000000000000000000000000..4302fe7937e6f1663fc5c3291761ce79083352fe --- /dev/null +++ b/bsp/amebaz/applications/smartconfig_app.c @@ -0,0 +1,146 @@ +/* + * File : smartconfig_demo.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2006 - 2018, 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. + * + * Change Logs: + * Date Author Notes + * 2018-09-13 Bernard the first version + */ +#include +#include + +#ifdef RT_USING_SMARTCONFIG_LIB + +#include +#include "smartconfig.h" + +#define NET_READY_TIME_OUT (rt_tick_from_millisecond(30 * 1000)) + +static int rt_wlan_device_connetct(char *ssid, char *passwd) +{ + int result = RT_EOK; + rt_uint8_t time_cnt = 0; + + result = rt_wlan_connect(ssid, passwd); + if (result != RT_EOK) + { + rt_kprintf("\nconnect ssid %s error:%d!\n", ssid, result); + return result; + }; + + do + { + rt_thread_mdelay(1000); + time_cnt ++; + if (rt_wlan_is_ready()) + { + break; + } + } + while (time_cnt <= (NET_READY_TIME_OUT / 1000)); + + if (time_cnt <= (NET_READY_TIME_OUT / 1000)) + { + rt_kprintf("networking ready!\n"); + } + else + { + rt_kprintf("wait ip got timeout!\n"); + result = -RT_ETIMEOUT; + } + + return result; +} + +static void airkiss_send_notification(uint8_t random) +{ + int sock = -1; + int udpbufsize = 2; + struct sockaddr_in UDPBCAddr, UDPBCServerAddr; + + sock = socket(AF_INET, SOCK_DGRAM, 0); + if (sock < 0) + { + rt_kprintf("notify create socket error!\n"); + goto _exit; + } + + UDPBCAddr.sin_family = AF_INET; + UDPBCAddr.sin_port = htons(10000); + UDPBCAddr.sin_addr.s_addr = htonl(0xffffffff); + rt_memset(&(UDPBCAddr.sin_zero), 0, sizeof(UDPBCAddr.sin_zero)); + + UDPBCServerAddr.sin_family = AF_INET; + UDPBCServerAddr.sin_port = htons(10000); + UDPBCServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); + rt_memset(&(UDPBCServerAddr.sin_zero), 0, sizeof(UDPBCServerAddr.sin_zero)); + + if (setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &udpbufsize, sizeof(int)) != 0) + { + rt_kprintf("notify socket setsockopt error\n"); + goto _exit; + } + + if (bind(sock, (struct sockaddr *)&UDPBCServerAddr, sizeof(UDPBCServerAddr)) != 0) + { + rt_kprintf("notify socket bind error\n"); + goto _exit; + } + + for (int i = 0; i <= 20; i++) + { + int ret = sendto(sock, (char *)&random, 1, 0, (struct sockaddr *)&UDPBCAddr, sizeof(UDPBCAddr)); + rt_thread_delay(10); + } + + rt_kprintf("airkiss notification thread exit!\n"); + +_exit: + if (sock >= 0) + { + closesocket(sock); + } +} + +static int smartconfig_result(rt_smartconfig_type result_type, char *ssid, char *passwd, void *userdata, rt_uint8_t userdata_len) +{ + rt_uint8_t random = *(rt_uint8_t *)userdata; + + rt_kprintf("type:%d\n", result_type); + rt_kprintf("ssid:%s\n", ssid); + rt_kprintf("passwd:%s\n", passwd); + rt_kprintf("user_data:0x%02x\n", random); + if (rt_wlan_device_connetct(ssid, passwd) == RT_EOK) + { + airkiss_send_notification(random); + } + + return 0; +} + +void smartconfig_demo(void) +{ + rt_smartconfig_start(SMARTCONFIG_TYPE_AIRKISS, SMARTCONFIG_ENCRYPT_NONE, RT_NULL, smartconfig_result); +} + +#ifdef RT_USING_FINSH +#include "finsh.h" +MSH_CMD_EXPORT(smartconfig_demo, smartconfig demo); +#endif + +#endif diff --git a/bsp/amebaz/drivers/Kconfig b/bsp/amebaz/drivers/Kconfig new file mode 100644 index 0000000000000000000000000000000000000000..19046fc40c0bd3eaf793f0896d4167f2c49ab02c --- /dev/null +++ b/bsp/amebaz/drivers/Kconfig @@ -0,0 +1,9 @@ +config BSP_USING_UART0 + bool "Using UART0" + select RT_USING_SERIAL + default y + +config BSP_USING_WIFI + bool "Using WIFI" + select RT_USING_WIFI + default y diff --git a/bsp/amebaz/drivers/SConscript b/bsp/amebaz/drivers/SConscript index aec108b678986fe614d03cf4d7a783fedb9c34de..dbaeb2a4764e531f2f7c4bcfd3b1e4e71da5bbfb 100644 --- a/bsp/amebaz/drivers/SConscript +++ b/bsp/amebaz/drivers/SConscript @@ -5,14 +5,9 @@ list = os.listdir(cwd) objs = [] src = Split(''' - board.c - drv_uart.c - ''') - -if GetDepend(['RT_USING_LWIP']): - src += Split(''' - drv_wifi.c - ''') + board.c + drv_uart.c + ''') CPPPATH = [cwd] diff --git a/bsp/amebaz/drivers/board.c b/bsp/amebaz/drivers/board.c index f343c31d5b0c6e4958ddf9476ceb32d1433d8a06..ffdc9fc68098209b3dab0f703ae55257232f105f 100644 --- a/bsp/amebaz/drivers/board.c +++ b/bsp/amebaz/drivers/board.c @@ -12,10 +12,8 @@ * 2009-01-05 Bernard first implementation * 2018-03-15 flyingcys add amebaz */ +#include #include -#include -#include - #include "board.h" #include "drv_uart.h" @@ -87,7 +85,7 @@ void rt_hw_board_init(void) { extern uint32_t SystemCoreClock; SysTick_Config(SystemCoreClock/RT_TICK_PER_SECOND); - + #ifdef RT_USING_HEAP rt_system_heap_init((void*)HEAP_BEGIN, (void*)HEAP_END); #endif diff --git a/bsp/amebaz/drivers/board.h b/bsp/amebaz/drivers/board.h index aa915a67cfeb17c5c5c4e56174047e3764ef5d00..3baf67a4d52b809c25471ea1938cbe32241d7195 100644 --- a/bsp/amebaz/drivers/board.h +++ b/bsp/amebaz/drivers/board.h @@ -17,7 +17,17 @@ #ifndef __BOARD_H__ #define __BOARD_H__ -#include "rtl8710b.h" +#ifdef _LITTLE_ENDIAN +#undef _LITTLE_ENDIAN +#endif + +#ifdef SECTION +#undef SECTION +#endif + +#include +#include +#include void rt_hw_board_init(void); diff --git a/bsp/amebaz/drivers/drv_uart.c b/bsp/amebaz/drivers/drv_uart.c index da89095d30fc9a8b47c8199c0adfa1727c03b4b6..1bf659e79f07cbaf58727f80ddc25c56ad061de1 100644 --- a/bsp/amebaz/drivers/drv_uart.c +++ b/bsp/amebaz/drivers/drv_uart.c @@ -22,11 +22,8 @@ * 2017-05-30 Bernard the first version * 2018-03-15 flyingcys add amebaz */ - -#include -#include -#include - +#include +#include #include "board.h" #include "drv_uart.h" @@ -37,7 +34,9 @@ struct device_uart rt_uint32_t irqno; }; -#ifdef RT_USING_UART0 +extern int LOGUART_SetBaud(u32 BaudRate); + +#ifdef BSP_USING_UART0 static struct rt_serial_device serial0; static struct device_uart uart0; #endif @@ -64,7 +63,6 @@ const struct rt_uart_ops _uart_ops = */ static rt_err_t ameba_uart_configure (struct rt_serial_device *serial, struct serial_configure *cfg) { - rt_uint32_t baud_div; struct device_uart * uart; RT_ASSERT(serial != RT_NULL); @@ -230,16 +228,16 @@ int rt_hw_uart_init(void) struct rt_serial_device *serial; struct serial_configure config = RT_SERIAL_CONFIG_DEFAULT; -#ifdef RT_USING_UART0 +#ifdef BSP_USING_UART0 { struct device_uart *uart; serial = &serial0; uart = &uart0; - + /* Init UART Hardware */ serial_init(&uart->serial, UART_TX, UART_RX); - + serial->ops = &_uart_ops; serial->config = config; serial->config.baud_rate = 115200; diff --git a/bsp/amebaz/drivers/drv_uart.h b/bsp/amebaz/drivers/drv_uart.h index 8d2f1b6db545e612f3fd670f8ffe08f96d4cf0cd..a4d326da58a9650f14b76c1771945aa3d8685123 100644 --- a/bsp/amebaz/drivers/drv_uart.h +++ b/bsp/amebaz/drivers/drv_uart.h @@ -26,9 +26,6 @@ #ifndef __DRV_UART_H__ #define __DRV_UART_H__ -#include "ameba_soc.h" -#include "serial_api.h" - #if defined(CONFIG_PLATFORM_8711B) // 8710B #define UART_TX PA_23 diff --git a/bsp/amebaz/drivers/drv_wifi.c b/bsp/amebaz/drivers/drv_wifi.c deleted file mode 100644 index 7c0366d6aa6c85e8efd6bf1e48ecb3259f30a2d8..0000000000000000000000000000000000000000 --- a/bsp/amebaz/drivers/drv_wifi.c +++ /dev/null @@ -1,453 +0,0 @@ -/* - * File : drv_wifi.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, 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. - * - * Change Logs: - * Date Author Notes - * 2017-5-30 Bernard the first version - * 2018-5-30 flyingcys add amebaz wifi driver - */ - -#include -#include -#include - -#include "amebaz_wlan.h" - -//#define ETH_RX_DUMP -//#define ETH_TX_DUMP -//#define MINI_DUMP - -struct sk_buff * rltk_wlan_get_recv_skb(int idx); -struct sk_buff * rltk_wlan_alloc_skb(unsigned int total_len); - -#define MAX_ADDR_LEN 6 - -struct ameba_wifi -{ - struct rt_wlan_device parent; - - rt_uint8_t dev_addr[MAX_ADDR_LEN]; - - int idx; - int connected; -}; - -#ifdef RT_USING_WLAN_STA -static struct ameba_wifi wifi_sta; -#endif - -#ifdef RT_USING_WLAN_AP -static struct ameba_wifi wifi_ap; -#endif - -#if defined(ETH_RX_DUMP) || defined(ETH_TX_DUMP) -static void packet_dump(const char *msg, const struct pbuf *p) -{ - const struct pbuf *q; - rt_uint32_t i, j; - rt_uint8_t *ptr; - - rt_kprintf("%s %d byte\n", msg, p->tot_len); - -#ifdef MINI_DUMP - return; -#endif - - i = 0; - for (q = p; q != RT_NULL; q = q->next) - { - ptr = q->payload; - - for (j = 0; j < q->len; j++) - { - if ((i % 8) == 0) - { - rt_kprintf(" "); - } - - if ((i % 16) == 0) - { - rt_kprintf("\r\n"); - } - rt_kprintf("%02x ", *ptr); - - i++; - ptr++; - } - } - - rt_kprintf("\n\n"); -} -#endif /* dump */ - -#define netifapi_netif_set_link_up(n) netifapi_netif_common(n, netif_set_link_up, NULL) -#define netifapi_netif_set_link_down(n) netifapi_netif_common(n, netif_set_link_down, NULL) - -void netif_set_connected(int connected) -{ - wifi_sta.connected = connected; - if (connected) - { - netifapi_netif_set_link_up(wifi_sta.parent.parent.netif); - } - else - { - netifapi_netif_set_link_down(wifi_sta.parent.parent.netif); - } -} - -void rltk_wlan_set_netif_info(int idx_wlan, void * dev, unsigned char * dev_addr) -{ - struct ameba_wifi *wifi; - - if(idx_wlan == 0) - wifi = &wifi_sta; - - rtw_memcpy(wifi->dev_addr, dev_addr, 6); - rt_hw_wifi_init(); -} - -void netif_rx(int idx, unsigned int len) -{ - struct ameba_wifi *wifi; - struct pbuf *p, *q; - int sg_len = 0; - struct sk_buff *skb = RT_NULL; - - if(idx == 0) - wifi = &wifi_sta; - -#if CONFIG_WLAN - if(!wifi->connected || !rltk_wlan_running(idx)) - return; -#endif - - skb = rltk_wlan_get_recv_skb(idx); - if(!skb) - { - rt_kprintf("netif_rx rltk_wlan_get_recv_skb NULL.\n"); - return; - } - - p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL); - if (p != RT_NULL) - { - pbuf_take(p, skb->data, len); - skb_pull(skb, len); - -#ifdef ETH_RX_DUMP - packet_dump("RX dump", p); -#endif /* ETH_RX_DUMP */ - - if(wifi->parent.parent.netif->input(p, wifi->parent.parent.netif) != ERR_OK) - { - pbuf_free(p); - } - } - else - { - rt_kprintf("pbuf_alloc NULL for wifi RX.\n"); - } -} - -int netif_is_valid_IP(int idx, unsigned char *ip_dest) -{ - - struct netif * pnetif; - struct ip_addr addr = { 0 }; - u32_t *ip_dest_addr = (u32_t*)ip_dest; - - if(idx == 0) - pnetif = wifi_sta.parent.parent.netif; - - addr.addr = *ip_dest_addr; - - if(pnetif == RT_NULL) - return 0; - - if(pnetif->ip_addr.addr == 0) - return 1; - - if(ip_addr_ismulticast(&addr) || ip_addr_isbroadcast(&addr,pnetif)) - { - return 1; - } - - if(ip_addr_cmp(&(pnetif->ip_addr), &addr)) - return 1; - - return 0; -} - -void netif_post_sleep_processing(void) -{ - -} - -void netif_pre_sleep_processing(void) -{ - -} - -unsigned char *rltk_wlan_get_ip(int idx) -{ - struct ameba_wifi *wifi; - - if(idx == 0) - wifi = &wifi_sta; - - return (unsigned char *)&(wifi->parent.parent.netif->ip_addr); -} - -struct netif *rltk_wlan_get_netif(int idx) -{ - struct netif *netif; - - if(idx == 0) - netif = wifi_sta.parent.parent.netif; - else if(idx == 1) - netif = wifi_ap.parent.parent.netif; - - return netif; -} - - -rt_err_t rt_ameba_wifi_init(rt_device_t dev) -{ - return RT_EOK; -} - -rt_err_t rt_ameba_wifi_open(rt_device_t dev, rt_uint16_t oflag) -{ - return RT_EOK; -} - -rt_err_t rt_ameba_wifi_close(rt_device_t dev) -{ - return RT_EOK; -} - -rt_size_t rt_ameba_wifi_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -rt_size_t rt_ameba_wifi_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) -{ - rt_set_errno(-RT_ENOSYS); - return 0; -} - -rt_err_t rt_ameba_wifi_control(rt_device_t dev, int cmd, void *args) -{ - switch(cmd) - { - case NIOCTL_GADDR: - { - struct ameba_wifi *wifi = (struct ameba_wifi *)dev; - if(args) - memcpy(args, wifi->dev_addr, MAX_ADDR_LEN); - else - return -RT_ERROR; - } - break; - - case WIFI_INIT: - { - rt_wlan_mode_t mode = *(rt_wlan_mode_t *)args; - rt_kprintf("mode:%d\n", mode); - } - break; - - case WIFI_SCAN: - { - struct rt_wlan_scan_result *dst = RT_NULL; - dst = (struct rt_wlan_scan_result *)rt_malloc(sizeof(struct rt_wlan_scan_result)); - if(dst == RT_NULL) - { - rt_kprintf("rt_malloc for scan result failed!\n"); - return -RT_ENOMEM; - } - - memset(dst, 0, sizeof(struct rt_wlan_scan_result)); - if(amebaz_wifi_scan(dst) != RT_EOK) - { - rt_kprintf("amebaz_wifi_scan failed...\n"); - return -RT_ERROR; - } - - *(struct rt_wlan_scan_result **)args = dst; - } - break; - - case WIFI_JOIN: - - break; - - case WIFI_EASYJOIN: - { - struct rt_wlan_device *wlan = (struct rt_wlan_device *)dev; - if(amebaz_wifi_connect(wlan->info->ssid, (char *)args) != RT_EOK) - { - rt_kprintf("amebaz_wifi_connect failed...\n"); - return -RT_ERROR; - } - } - break; - - case WIFI_SOFTAP: - { - struct rt_wlan_device *wlan = (struct rt_wlan_device *)dev; - if(amebaz_wifi_ap_start(wlan->info->ssid, (char *)args, wlan->info->channel) != RT_EOK) - { - rt_kprintf("amebaz_wifi_ap_start failed...\n"); - return -RT_ERROR; - } - } - break; - - case WIFI_DISCONNECT: - if(amebaz_wifi_disconnect() != RT_EOK) - { - rt_kprintf("amebaz_wifi_disconnect failed...\n"); - return -RT_ERROR; - } - break; - - case WIFI_GET_RSSI: - { - int *rssi = (int *)args; - - *rssi = amebaz_wifi_get_rssi(); - } - break; - - case WIFI_ENTER_POWERSAVE: - - break; - - case WIFI_CFG_MONITOR: - - break; - - case WIFI_SET_CHANNEL: - { - int channel = *(int *)args; - - amebaz_wifi_set_channel(channel); - } - break; - - case WIFI_GET_CHANNEL: - { - int *channel = (int *)args; - - *channel = amebaz_wifi_get_channel(); - } - break; - - case WIFI_SET_MONITOR_CALLBACK: - - break; - } - - return RT_EOK; -} - -rt_err_t rt_ameba_wifi_tx(rt_device_t dev, struct pbuf* p) -{ - rt_err_t result = RT_EOK; - struct ameba_wifi *wifi = (struct ameba_wifi *)dev; - int idx; - rt_base_t level; - struct sk_buff *skb = RT_NULL; - - idx = wifi->idx; - - level = rt_hw_interrupt_disable(); - if(wifi->connected && rltk_wlan_check_isup(idx)) - rltk_wlan_tx_inc(idx); - else - { - rt_hw_interrupt_enable(level); -// rt_kprintf("is not: connected && rltk_wlan_check_isup(idx)\n"); - - result = -RT_ERROR; - goto _exit; - } - - rt_hw_interrupt_enable(level); - -#ifdef ETH_TX_DUMP - packet_dump("TX dump", p); -#endif /* ETH_TX_DUMP */ - - skb = rltk_wlan_alloc_skb(p->tot_len); - if(skb != RT_NULL) - { - /* copy pbuf to a whole ETH frame */ - pbuf_copy_partial(p, skb->tail, p->tot_len, 0); - skb_put(skb, p->tot_len); - - rltk_wlan_send_skb(idx, skb); - } - else - { - rt_kprintf("rltk_wlan_alloc_skb NULL for WIFI TX.\n"); - result = -RT_ENOMEM; - } - -_exit: - level = rt_hw_interrupt_disable(); - rltk_wlan_tx_dec(idx); - rt_hw_interrupt_enable(level); - - return result; -} - -int rt_hw_wifi_init(void) -{ - rt_kprintf("%s %d\n", __FUNCTION__, __LINE__); - -#ifdef RT_USING_WLAN_STA - wifi_sta.parent.parent.parent.init = rt_ameba_wifi_init; - wifi_sta.parent.parent.parent.open = rt_ameba_wifi_open; - wifi_sta.parent.parent.parent.close = rt_ameba_wifi_close; - wifi_sta.parent.parent.parent.read = rt_ameba_wifi_read; - wifi_sta.parent.parent.parent.write = rt_ameba_wifi_write; - wifi_sta.parent.parent.parent.control = rt_ameba_wifi_control; - wifi_sta.parent.parent.parent.user_data = RT_NULL; - // - wifi_sta.idx = 0; - // - wifi_sta.parent.parent.eth_rx = RT_NULL; - wifi_sta.parent.parent.eth_tx = rt_ameba_wifi_tx; - - /* register wifi device */ - eth_device_init(&wifi_sta.parent.parent, WIFI_DEVICE_STA_NAME); -#endif - -#ifdef RT_USING_WLAN_AP - -#endif - - return RT_EOK; -} - diff --git a/bsp/amebaz/drivers/wlan/SConscript b/bsp/amebaz/drivers/wlan/SConscript index 9b4e410f5d7b5d601aad08d4e8744c0ab6bd5931..414abb50e69ddbf8d10da976155a26885714fb0f 100644 --- a/bsp/amebaz/drivers/wlan/SConscript +++ b/bsp/amebaz/drivers/wlan/SConscript @@ -6,10 +6,11 @@ CPPPATH = [cwd, str(Dir('#'))] src = [] if GetDepend(['RT_USING_LWIP']): - src += Split(''' - amebaz_wlan.c - ''') + src += Split(''' + drv_wifi.c + drv_wlan.c + ''') -group = DefineGroup('amebaz_wlan', src, depend = [''], CPPPATH = CPPPATH) +group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/amebaz/drivers/wlan/amebaz_wlan.c b/bsp/amebaz/drivers/wlan/amebaz_wlan.c deleted file mode 100644 index 855be37fc78f36fc84ab01fb30dd549c714830fc..0000000000000000000000000000000000000000 --- a/bsp/amebaz/drivers/wlan/amebaz_wlan.c +++ /dev/null @@ -1,642 +0,0 @@ -/* - * File : amebaz_wlan.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, 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. - * - * Change Logs: - * Date Author Notes - * 2017-5-30 Bernard the first version - * 2018-6-12 flyingcys add amebaz wlan interface - */ -#include -#include - -#include "wifi_structures.h" -#include "wifi_constants.h" -#include -#include - - -#define PASSWD_LEN 65 -#define SCAN_WAIT_TIME 10000 - -typedef enum -{ - WIFI_NONE, - WIFI_STATION, - WIFI_AP, -} rt_wlan_mode_t; - -struct rt_wlan_info -{ - rt_wlan_mode_t mode; /* wifi mode */ - rtw_security_t security; - - char *ssid; - uint8_t bssid[6]; - - /* maximal data rate */ - uint32_t datarate; - /* radio channel */ - uint16_t channel; - /* signal strength */ - int16_t rssi; -}; - -typedef struct rt_wlan_scan_result -{ - char ap_num; - struct rt_wlan_info *ap_table; -} rt_wlan_scan_result_t; - - -static rtw_network_info_t wifi_info = {0}; -static rtw_ap_info_t ap_info = {0}; -static unsigned char wifi_password[65] = {0}; -static unsigned char ap_password[PASSWD_LEN] = {0}; -static rt_sem_t scan_done_sem = RT_NULL; -static char *scan_buf = RT_NULL; -static int ApNum = 0; - -extern struct netif *rltk_wlan_get_netif(int idx); - -static void LwIP_ReleaseIP(uint8_t idx) -{ - struct ip_addr ipaddr; - struct ip_addr netmask; - struct ip_addr gw; - struct netif *pnetif = rltk_wlan_get_netif(idx); - - IP4_ADDR(&ipaddr, 0, 0, 0, 0); - IP4_ADDR(&netmask, 255, 255, 255, 0); - IP4_ADDR(&gw, 0, 0, 0, 0); - - netif_set_addr(pnetif, &ipaddr , &netmask, &gw); -} - -static rtw_result_t amebaz_scan_result_handler( rtw_scan_handler_result_t* malloced_scan_result ) -{ - if (malloced_scan_result->scan_complete != RTW_TRUE) { - rtw_scan_result_t* record = &malloced_scan_result->ap_details; - record->SSID.val[record->SSID.len] = 0; /* Ensure the SSID is null terminated */ - - ++ ApNum; - - if(malloced_scan_result->user_data) - memcpy((void *)((char *)malloced_scan_result->user_data+(ApNum-1)*sizeof(rtw_scan_result_t)), (char *)record, sizeof(rtw_scan_result_t)); - } - else - { - rt_kprintf("ap num:%d\n", ApNum); - - if(scan_done_sem) - { - rt_sem_release(scan_done_sem); - } - } - - return RTW_SUCCESS; -} - - -static int amebaz_wifi_do_scan(void) -{ - int ret = RTW_SUCCESS; - - rt_kprintf("wifi scan start...\n"); - - scan_buf = malloc(65*sizeof(rtw_scan_result_t)); - if(scan_buf == NULL){ - ret = RTW_BUFFER_UNAVAILABLE_TEMPORARY; - return -RT_ENOMEM; - } - - memset(scan_buf, 0, 65 * sizeof(rtw_scan_result_t)); - - if((ret = wifi_scan_networks(amebaz_scan_result_handler, scan_buf)) != RTW_SUCCESS){ - rt_kprintf("ERROR: wifi scan failed\n\r"); - - return -RT_ERROR; - } - - return RT_EOK; -} - -int amebaz_wifi_scan(struct rt_wlan_scan_result *dst) -{ - rt_uint32_t i; - rt_uint32_t j = 0; - - scan_done_sem = rt_sem_create("scandone", 0, RT_IPC_FLAG_FIFO); - if(scan_done_sem == RT_NULL) - return -RT_ENOMEM; - - if(amebaz_wifi_do_scan() != RT_EOK) - { - rt_kprintf("amebaz_wifi_do_scan failed...\n"); - return -RT_ERROR; - } - - if(rt_sem_take(scan_done_sem, rt_tick_from_millisecond(SCAN_WAIT_TIME)) != RT_EOK) - { - rt_kprintf("scan wait timeout...\n"); - return -RT_ETIMEOUT; - } - - if(scan_done_sem) - { - rt_sem_delete(scan_done_sem); - scan_done_sem = RT_NULL; - } - - rtw_scan_result_t *ptr = (rtw_scan_result_t *)scan_buf; - dst->ap_num = ApNum; - ApNum = 0; - - dst->ap_table = (struct rt_wlan_info *)rt_malloc(sizeof(struct rt_wlan_info) * dst->ap_num); - if(dst->ap_table == RT_NULL) - { - rt_kprintf("rt_malloc for ap table failed...\n"); - goto __exit; - } - - for(i = 0; i < dst->ap_num; i ++) - { - dst->ap_table[i].mode = 1; - dst->ap_table[i].security = ptr->security; - dst->ap_table[i].ssid = (char *)rt_malloc(33); - if(dst->ap_table[i].ssid == RT_NULL) - { - rt_kprintf("rt_malloc for ssid Failed! times:%d,total:%d\n",i,ApNum); - j = i; - goto __exit; - } - - memset(dst->ap_table[i].ssid, 0, 33); - memcpy(dst->ap_table[i].ssid, ptr->SSID.val, ptr->SSID.len); - memcpy(dst->ap_table[i].bssid, ptr->BSSID.octet, 6); - dst->ap_table[i].datarate = 0; - dst->ap_table[i].channel = ptr->channel; - dst->ap_table[i].rssi = ptr->signal_strength; - - ptr ++; - } - - if(scan_buf != RT_NULL) - { - rt_free(scan_buf); - scan_buf = RT_NULL; - } - - return RT_EOK; - -__exit: - - if(scan_buf != RT_NULL) - { - rt_free(scan_buf); - scan_buf = RT_NULL; - } - - if(dst->ap_table) - { - for(i = 0; i < j; i ++) - rt_free(dst->ap_table[i].ssid); - rt_free(dst->ap_table); - dst->ap_table = RT_NULL; - dst->ap_num = 0; - } - - return -RT_ERROR; -} - -void amebaz_wifi_info_init(void) -{ - memset(wifi_info.ssid.val, 0, sizeof(wifi_info.ssid.val)); - memset(wifi_info.bssid.octet, 0, 6); - memset(wifi_password, 0, sizeof(wifi_password)); - wifi_info.ssid.len = 0; - wifi_info.password = NULL; - wifi_info.password_len = 0; - wifi_info.key_id = -1; - - memset(ap_info.ssid.val, 0, sizeof(ap_info.ssid.val)); - ap_info.ssid.len = 0; - ap_info.security_type = RTW_SECURITY_UNKNOWN; - ap_info.password = NULL; - ap_info.password_len = 0; - ap_info.channel = 1; -} - -static int amebaz_wifi_set_sta_info(char *ssid, char *passwd) -{ - if(ssid == RT_NULL || strlen(ssid) > 32) - { - rt_kprintf("Invalid argument...\n"); - return -RT_EINVAL; - } - - strcpy(wifi_info.ssid.val, ssid); - wifi_info.ssid.len = strlen(ssid); - - if(passwd != NULL) - { - if(strlen(passwd) > 64) - { - rt_kprintf("Invalid argument...\n"); - return -RT_EINVAL; - } - strcpy(wifi_password, passwd); - wifi_info.password = wifi_password; - wifi_info.password_len = strlen(passwd); - } - else - wifi_info.password = RT_NULL; - - return RT_EOK; -} - -static int amebaz_wifi_set_ap_info(char *ssid, char *passwd, int channel) -{ - if(ssid == RT_NULL || strlen(ssid) > 32) - { - rt_kprintf("Invalid argument...\n"); - return -RT_EINVAL; - } - - strcpy(ap_info.ssid.val, ssid); - ap_info.ssid.len = strlen(ssid); - - if(passwd != NULL) - { - if(strlen(passwd) > 64) - { - rt_kprintf("Invalid argument...\n"); - return -RT_EINVAL; - } - strcpy(ap_password, passwd); - ap_info.password = ap_password; - ap_info.password_len = strlen(passwd); - } - else - ap_info.password = RT_NULL; - - ap_info.channel = channel; - return RT_EOK; -} - -static int amebaz_wifi_do_connect(void) -{ - int mode, ret; - char empty_bssid[6] = {0}; - char assoc_by_bssid = 0; - - rt_kprintf("amebaz wifi do connect start...\n"); - if(memcmp (wifi_info.bssid.octet, empty_bssid, 6)) - { - assoc_by_bssid = 1; - } - else if(wifi_info.ssid.val[0] == 0) - { - ret = RTW_BADARG; - return -RT_ERROR; - } - - if(wifi_info.password != RT_NULL) - { - if((wifi_info.key_id >= 0) && (wifi_info.key_id <= 3)) - { - wifi_info.security_type = RTW_SECURITY_WEP_PSK; - } - else - { - wifi_info.security_type = RTW_SECURITY_WPA2_AES_PSK; - } - } - else - { - wifi_info.security_type = RTW_SECURITY_OPEN; - } - - //Check if in AP mode - wext_get_mode(WLAN0_NAME, &mode); - if(mode == IW_MODE_MASTER) - { - #if 0 -#if CONFIG_LWIP_LAYER - dhcps_deinit(); -#endif - wifi_off(); - vTaskDelay(20); - if (wifi_on(RTW_MODE_STA) < 0){ - printf("\n\rERROR: Wifi on failed!"); - ret = RTW_ERROR; - goto EXIT; - } - #endif - } - - if(assoc_by_bssid) - { - rt_kprintf("Joining BSS by BSSID \"MAC_FMT\" ...\n", MAC_ARG(wifi_info.bssid.octet)); - ret = wifi_connect_bssid(wifi_info.bssid.octet, (char*)wifi_info.ssid.val, wifi_info.security_type, (char*)wifi_info.password, - ETH_ALEN, wifi_info.ssid.len, wifi_info.password_len, wifi_info.key_id, NULL); - } - else - { - rt_kprintf("\n\rJoining BSS by SSID %s...\n\r", (char*)wifi_info.ssid.val); - ret = wifi_connect((char*)wifi_info.ssid.val, wifi_info.security_type, - (char*)wifi_info.password, wifi_info.ssid.len, - wifi_info.password_len, wifi_info.key_id, NULL); - } - - if(ret!= RTW_SUCCESS) - { - if(ret == RTW_INVALID_KEY) - rt_kprintf("ERROR:Invalid Key\n"); - - rt_kprintf("ERROR: Can't connect to AP\n"); - return -RT_ERROR; - } - - rt_kprintf("now start dhcp...\n"); - netif_set_connected(1); - dhcp_start(netif_default); - rt_kprintf("dhcp success...\n"); - - return RT_EOK; -} - -int amebaz_wifi_connect(char *ssid, char *passwd) -{ - int ret; - - ret = amebaz_wifi_set_sta_info(ssid, passwd); - if(ret != RT_EOK) - { - amebaz_wifi_info_init(); - return ret; - } - - if(amebaz_wifi_do_connect() != RT_EOK) - { - amebaz_wifi_info_init(); - rt_kprintf("amebaz_wifi_do_connect failed...\n"); - return -RT_ERROR; - } - - amebaz_wifi_info_init(); - - return RT_EOK; -} - -static int amebaz_wifi_do_disconnect(void) -{ - int timeout = 20; - char essid[33]; - int ret = RTW_SUCCESS; - - if(wext_get_ssid(WLAN0_NAME, (unsigned char *) essid) < 0) - { - rt_kprintf("\nWIFI disconnected!\n"); - return -RT_ERROR; - } - - if((ret = wifi_disconnect()) < 0) - { - return -RT_ERROR; - } - - while(1) - { - if(wext_get_ssid(WLAN0_NAME, (unsigned char *) essid) < 0) - { - rt_kprintf("\nWIFI disconnected!\n"); - break; - } - - if(timeout == 0) - { - rt_kprintf("ERROR: Deassoc timeout!\n\r"); - ret = RTW_TIMEOUT; - break; - } - - vTaskDelay(10); - timeout --; - } - - LwIP_ReleaseIP(WLAN0_IDX); - - if(ret != RTW_SUCCESS) - return -RT_ERROR; - - rt_kprintf("amebaz wifi do disconnect success...\n"); - return RT_EOK; -} - -int amebaz_wifi_disconnect(void) -{ - int ret = RT_EOK; - - ret = amebaz_wifi_do_disconnect(); - if(ret != RT_EOK) - rt_kprintf("amebaz_wifi_do_disconnect failed...\n"); - - amebaz_wifi_info_init(); - - return ret; -} - -static int amebaz_wifi_do_ap_start(void) -{ - struct ip_addr ipaddr; - struct ip_addr netmask; - struct ip_addr gw; - struct netif *pnetif = rltk_wlan_get_netif(1); - - int timeout = 20; - int ret = RTW_SUCCESS; - - if(ap_info.ssid.val[0] == 0){ - rt_kprintf("ERROR: SSID can't be empty\n\r"); - return -RT_ERROR; - } - - if(ap_info.password == NULL) - { - ap_info.security_type = RTW_SECURITY_OPEN; - } - else - { - if(ap_info.password_len <= RTW_MAX_PSK_LEN && ap_info.password_len >= RTW_MIN_PSK_LEN) - { - ap_info.security_type = RTW_SECURITY_WPA2_AES_PSK; - } - else - { - rt_kprintf("ERROR: password length is between 8 to 64 \n"); - return -RT_ERROR; - } - } - -//#if CONFIG_LWIP_LAYER -// dhcps_deinit(); -// IP4_ADDR(&ipaddr, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3); -// IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1 , NETMASK_ADDR2, NETMASK_ADDR3); -// IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3); -// netif_set_addr(pnetif, &ipaddr, &netmask,&gw); -//#ifdef CONFIG_DONT_CARE_TP -// pnetif->flags |= NETIF_FLAG_IPSWITCH; -//#endif -//#endif - - wifi_off(); - vTaskDelay(20); - if (wifi_on(RTW_MODE_AP) < 0) - { - rt_kprintf("ERROR: Wifi on failed!\n"); - return -RT_ERROR; - } - rt_kprintf("Now start AP mode...\n"); - - if((ret = wifi_start_ap((char*)ap_info.ssid.val, ap_info.security_type, (char*)ap_info.password, ap_info.ssid.len, ap_info.password_len, ap_info.channel) ) < 0) - { - rt_kprintf("ERROR: Operation failed!"); - return -RT_ERROR; - } - - while(1) - { - char essid[33]; - - if(wext_get_ssid(WLAN0_NAME, (unsigned char *) essid) > 0) - { - if(strcmp((const char *) essid, (const char *)ap_info.ssid.val) == 0) - { - rt_kprintf("AP %s started...\n", ap_info.ssid.val); - ret = RTW_SUCCESS; - break; - } - } - - if(timeout == 0) - { - rt_kprintf("ERROR: Start AP timeout!"); - ret = RTW_TIMEOUT; - break; - } - - vTaskDelay(10); - timeout --; - } - - if(ret != RTW_SUCCESS) - return -RT_ERROR; - -//#if CONFIG_LWIP_LAYER - //LwIP_UseStaticIP(pnetif); -// dhcps_init(pnetif); -//#endif - - return RT_EOK; -} - -static int amebaz_wifi_do_ap_stop(void) -{ - return RT_EOK; -} - -int amebaz_wifi_ap_start(char *ssid, char *passwd, int channel) -{ - int ret; - - ret = amebaz_wifi_set_ap_info(ssid, passwd, channel); - if(ret != RT_EOK) - { - amebaz_wifi_info_init(); - return ret; - } - - if(amebaz_wifi_do_ap_start() != RT_EOK) - { - amebaz_wifi_info_init(); - rt_kprintf("amebaz_wifi_ap_start failed...\n"); - return -RT_ERROR; - } - - amebaz_wifi_info_init(); - return RT_EOK; -} - -int amebaz_wifi_ap_stop(void) -{ - int ret; - - if(amebaz_wifi_do_ap_stop() != RT_EOK) - { - amebaz_wifi_info_init(); - rt_kprintf("amebaz_wifi_ap_stop failed...\n"); - return -RT_ERROR; - } - - amebaz_wifi_info_init(); - return RT_EOK; -} - -int amebaz_wifi_get_rssi(void) -{ - int rssi = 0; - - wifi_get_rssi(&rssi); - - return rssi; -} - -void amebaz_wifi_set_channel(int channel) -{ - wifi_set_channel(channel); -} - -int amebaz_wifi_get_channel(void) -{ - int channel; - - wifi_get_channel(&channel); - - return channel; -} - -int amebaz_wifi_init(rt_wlan_mode_t mode) -{ - int ret; - rtw_mode_t rtw_mode; - - if(mode == WIFI_STATION) - rtw_mode = RTW_MODE_STA; - else if(mode == WIFI_AP) - rtw_mode = RTW_MODE_AP; - - if(wifi_on(mode) < 0) - return -RT_ERROR; - - if(wifi_set_autoreconnect(1) < 0) - return -RT_ERROR; - - return RT_EOK; -} - diff --git a/bsp/amebaz/drivers/wlan/amebaz_wlan.h b/bsp/amebaz/drivers/wlan/amebaz_wlan.h deleted file mode 100644 index e062797290527dc71acb13b6c667aa4b372112ea..0000000000000000000000000000000000000000 --- a/bsp/amebaz/drivers/wlan/amebaz_wlan.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * File : amebaz_wlan.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, 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. - * - * Change Logs: - * Date Author Notes - * 2017-5-30 Bernard the first version - * 2018-6-12 flyingcys add amebaz wlan interface - */ - -#ifndef __AMEBAZ_WLAN_H__ -#define __AMEBAZ_WLAN_H__ - -int amebaz_wifi_scan(); - -void amebaz_wifi_info_init(void); - -int amebaz_wifi_set_sta_info(char *ssid, char *passwd); - -int amebaz_wifi_set_ap_info(char *ssid, char *passwd); - -int amebaz_wifi_connect(char *ssid, char *passwd); - -int amebaz_wifi_disconnect(void); - -int amebaz_wifi_ap_start(char *ssid, char *passwd, int channel); - -int amebaz_wifi_ap_stop(void); - -int amebaz_wifi_get_rssi(void); - -void amebaz_wifi_set_channel(int channel); - -int amebaz_wifi_get_channel(void); - -int amebaz_wifi_init(rt_wlan_mode_t mode); - -#endif /* __AMEBAZ_WLAN_H__ */ - diff --git a/bsp/amebaz/drivers/wlan/drv_wifi.c b/bsp/amebaz/drivers/wlan/drv_wifi.c new file mode 100644 index 0000000000000000000000000000000000000000..67a870b034e30001686934fba8baae2d391e8143 --- /dev/null +++ b/bsp/amebaz/drivers/wlan/drv_wifi.c @@ -0,0 +1,660 @@ +/* + * File : drv_wifi.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2017, 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. + * + * Change Logs: + * Date Author Notes + * 2017-5-30 Bernard the first version + * 2018-5-30 flyingcys add amebaz wifi driver + */ +#include +#include "board.h" +#include +#include "drv_wlan.h" +#include "drv_wifi.h" + +#define DBG_ENABLE +#define DBG_LEVEL DBG_INFO +#define DBG_SECTION_NAME "WIFI" +#define DBG_COLOR +#include + +#define MAX_ADDR_LEN (6) +#define RT_WLAN_SSID_MAX_LEN (32) + +#define WIFI_INIT_FLAG (0x1 << 0) +#define WIFI_MAC_FLAG (0x1 << 1) +#define WIFI_TYPE_STA (0) +#define WIFI_TYPE_AP (1) + +struct ameba_wifi +{ + struct rt_wlan_device *wlan; + rt_uint8_t dev_addr[MAX_ADDR_LEN]; + rt_uint8_t flag; + int connected; + int type; +}; + +extern unsigned char rltk_wlan_running(unsigned char idx); +extern struct sk_buff * rltk_wlan_get_recv_skb(int idx); +extern unsigned char rltk_wlan_check_isup(int idx); +extern void rltk_wlan_tx_inc(int idx); +extern struct sk_buff * rltk_wlan_alloc_skb(unsigned int total_len); +extern void rltk_wlan_send_skb(int idx, struct sk_buff *skb); +extern void rltk_wlan_tx_dec(int idx); +extern void rtw_event_register(int event, void (*fun)(char *buf, int len, int flags, void *user_data) , void *user_data); + +static const struct rt_wlan_dev_ops ops; + +static struct ameba_wifi wifi_sta; +static struct ameba_wifi wifi_ap; + +rt_inline struct ameba_wifi *rthw_wifi_get_dev(int idx) +{ + int mode = rthw_wifi_mode_get(); + + if (mode == 1) return &wifi_sta; + if (mode == 2) return &wifi_ap; + if (idx == 0) return &wifi_sta; + if (idx == 1) return &wifi_ap; + return RT_NULL; +} + +rt_inline int rthw_wifi_get_idx(struct ameba_wifi *wifi) +{ + int mode = rthw_wifi_mode_get(); + + if (mode == 1) return 0; + if (mode == 2) return 0; + return wifi->type; +} + +int rthw_wifi_register(struct ameba_wifi *wifi) +{ + struct rt_wlan_device *wlan = RT_NULL; + + if ((wifi->flag & WIFI_INIT_FLAG) == 0) + { + if (wifi->type == WIFI_TYPE_STA) + wlan = rt_wlan_dev_register(RT_WLAN_DEVICE_STA_NAME, &ops, 0, wifi); + if (wifi->type == WIFI_TYPE_AP) + wlan = rt_wlan_dev_register(RT_WLAN_DEVICE_AP_NAME, &ops, 0, wifi); + wifi->flag |= WIFI_INIT_FLAG; + wifi->wlan = wlan; + LOG_D("F:%s L:%d wifi:0x%08x wlan:0x%08x\n", __FUNCTION__, __LINE__, wifi, wlan); + } + return RT_EOK; +} + +void netif_post_sleep_processing(void) +{ +} + +void netif_pre_sleep_processing(void) +{ +} + +unsigned char *rltk_wlan_get_ip(int idx) +{ + struct ameba_wifi *wifi; + + wifi = rthw_wifi_get_dev(idx); + if (wifi == RT_NULL) + return RT_NULL; + + LOG_D("F:%s L:%d is run", __FUNCTION__, __LINE__); + + /* 这里留空了,会不会炸未知 */ + return RT_NULL; +} + +int netif_is_valid_IP(int idx, unsigned char *ip_dest) +{ + LOG_D("F:%s L:%d is run ip: %d:%d:%d:%d", __FUNCTION__, __LINE__, + ip_dest[0], ip_dest[1], ip_dest[2], ip_dest[3]); + return 1; +} + +void rltk_wlan_set_netif_info(int idx, void *dev, rt_uint8_t *dev_addr) +{ + struct ameba_wifi *wifi = RT_NULL; + + wifi = rthw_wifi_get_dev(idx); + if (wifi == RT_NULL) + return; + LOG_D("F:%s L:%d wifi:0x%08x type:0x%x", __FUNCTION__, __LINE__, wifi, wifi->flag); + rt_memcpy(wifi->dev_addr, dev_addr, 6); + wifi->flag |= WIFI_MAC_FLAG; + rthw_wifi_register(wifi); + LOG_D("wifi type:%d", wifi->type); + LOG_D("idx:%d MAC %02x:%02x:%02x:%02x:%02x:%02x", idx, dev_addr[0], dev_addr[1], dev_addr[2], dev_addr[3], dev_addr[4], dev_addr[5]); +} + +static void rtw_connect_callbackfn(char *buf, int len, int flags, void *user_data) +{ + struct ameba_wifi *wifi = user_data; + + LOG_D("L:%d wifi connect callback flags:%d user_data:%08x", __LINE__, flags, user_data); + if( wifi_is_connected_to_ap() == 0) + { + wifi->connected = 1; + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_CONNECT, RT_NULL); + } +} + +static void rtw_connect_fail_callbackfn(char *buf, int len, int flags, void *user_data) +{ + struct ameba_wifi *wifi = user_data; + + LOG_D("L:%d wifi connect callback flags:%d", __LINE__, flags); + wifi->connected = 0; + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_CONNECT_FAIL, RT_NULL); +} + +static void rtw_disconnect_callbackfn(char *buf, int len, int flags, void *user_data) +{ + struct ameba_wifi *wifi = user_data; + + LOG_D("L:%d wifi disconnect callback flags:%d", __LINE__, flags); + wifi->connected = 0; + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_DISCONNECT, RT_NULL); +} + +static void rtw_sta_assoc_callbackfn(char *buf, int len, int flags, void *user_data) +{ + LOG_D("L:%d wifi sta assoc callback flags:%d", __LINE__, flags); +} + +static void rtw_sta_disassoc_callbackfn(char *buf, int len, int flags, void *user_data) +{ + LOG_D("L:%d wifi sta assoc callback flags:%d buf:%08x %08x", __LINE__, flags, *((rt_uint32_t*)buf), *((rt_uint32_t*)buf + 4)); +} + +void netif_rx(int idx, unsigned int len) +{ + struct ameba_wifi *wifi = RT_NULL; + struct sk_buff *skb = RT_NULL; + + wifi = rthw_wifi_get_dev(idx); + if (wifi == RT_NULL) + return; + + LOG_D("F:%s L:%d idx:%d len:%d", __FUNCTION__, __LINE__, idx, len); + if((!wifi->connected) || (!rltk_wlan_running(idx))) + return; + + skb = (struct sk_buff *)rltk_wlan_get_recv_skb(idx); + if(!skb) + { + LOG_D("netif_rx rltk_wlan_get_recv_skb NULL."); + return; + } + rt_wlan_dev_report_data(wifi->wlan, skb->data, len); +} + +static rt_wlan_security_t security_map_from_ameba(rthw_security_t security) +{ + rt_wlan_security_t result = SECURITY_OPEN; + + switch (security) + { + case RTHW_SECURITY_OPEN: result = SECURITY_OPEN; break; + case RTHW_SECURITY_WEP_PSK: result = SECURITY_WEP_PSK; break; + case RTHW_SECURITY_WEP_SHARED: result = SECURITY_WEP_SHARED; break; + case RTHW_SECURITY_WPA_TKIP_PSK: result = SECURITY_WPA_TKIP_PSK; break; + case RTHW_SECURITY_WPA_AES_PSK: result = SECURITY_WPA_AES_PSK; break; + case RTHW_SECURITY_WPA2_AES_PSK: result = SECURITY_WPA2_AES_PSK; break; + case RTHW_SECURITY_WPA2_TKIP_PSK: result = SECURITY_WPA2_TKIP_PSK; break; + case RTHW_SECURITY_WPA2_MIXED_PSK: result = SECURITY_WPA2_MIXED_PSK; break; + case RTHW_SECURITY_WPA_WPA2_MIXED: result = SECURITY_WPA2_AES_PSK; break; + case RTHW_SECURITY_WPS_OPEN: result = SECURITY_WPS_OPEN; break; + case RTHW_SECURITY_WPS_SECURE: result = SECURITY_WPS_SECURE; break; + default: result = -1; break; + } + + return result; +} + +static rthw_security_t security_map_from_rtthread(rt_wlan_security_t security) +{ + rt_wlan_security_t result = RTHW_SECURITY_OPEN; + + switch (security) + { + case SECURITY_OPEN: result = RTHW_SECURITY_OPEN; break; + case SECURITY_WEP_PSK: result = RTHW_SECURITY_WEP_PSK; break; + case SECURITY_WEP_SHARED: result = RTHW_SECURITY_WEP_SHARED; break; + case SECURITY_WPA_TKIP_PSK: result = RTHW_SECURITY_WPA_TKIP_PSK; break; + case SECURITY_WPA_AES_PSK: result = RTHW_SECURITY_WPA_AES_PSK; break; + case SECURITY_WPA2_AES_PSK: result = RTHW_SECURITY_WPA2_AES_PSK; break; + case SECURITY_WPA2_TKIP_PSK: result = RTHW_SECURITY_WPA2_TKIP_PSK; break; + case SECURITY_WPA2_MIXED_PSK: result = RTHW_SECURITY_WPA2_MIXED_PSK; break; + case SECURITY_WPS_OPEN: result = RTHW_SECURITY_WPS_OPEN; break; + case SECURITY_WPS_SECURE: result = RTHW_SECURITY_WPS_SECURE; break; + default: result = -1; break; + } + + return result; +} + +static void rt_ameba_wifi_scan_callback(struct rthw_wlan_info *info, void *user_data) +{ + struct rt_wlan_info wlan_info = { 0 }; + struct rt_wlan_buff buff; + struct ameba_wifi *wifi = user_data; + + if (info == RT_NULL) + { + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_SCAN_DONE, RT_NULL); + return; + } + memcpy(&wlan_info.bssid[0], info->bssid, 6); + strncpy(&wlan_info.ssid.val[0], info->ssid, RT_WLAN_SSID_MAX_LEN); + wlan_info.ssid.len = strlen(&wlan_info.ssid.val[0]); + wlan_info.band = info->band == RTHW_802_11_BAND_2_4GHZ ? RTHW_802_11_BAND_2_4GHZ : RTHW_802_11_BAND_5GHZ; + wlan_info.channel = info->channel; + wlan_info.datarate = info->datarate * 1000; + wlan_info.security = security_map_from_ameba(info->security); + wlan_info.rssi = info->rssi; + + buff.data = &wlan_info; + buff.len = sizeof(wlan_info); + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_SCAN_REPORT, &buff); +} + +static void rthw_wlan_monitor_callback(rt_uint8_t *data, int len, void *user_data) +{ + rt_wlan_dev_promisc_handler(wifi_sta.wlan, data, len); +} + +static rt_err_t rthw_wlan_init (struct rt_wlan_device *wlan) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static rt_err_t rthw_wlan_mode (struct rt_wlan_device *wlan, rt_wlan_mode_t mode) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)(wlan->user_data); + + LOG_D("F:%s L:%d mode:%d", __FUNCTION__, __LINE__, mode); + + if (mode == RT_WLAN_STATION) + { + if (wifi->type != WIFI_TYPE_STA) + { + LOG_D("this wlan not support sta mode"); + return -RT_ERROR; + } + } + else if (mode == RT_WLAN_AP) + { + if (wifi->type != WIFI_TYPE_AP) + { + LOG_D("this wlan not support ap mode"); + return -RT_ERROR; + } + } + + return RT_EOK; +} + +static rt_err_t rthw_wlan_scan (struct rt_wlan_device *wlan, struct rt_scan_info *scan_info) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)(wlan->user_data); + + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + LOG_D("F:%s L:%d wifi:0x%08x type:0x%x", __FUNCTION__, __LINE__, wifi, wifi->type); + + if (wifi->type != WIFI_TYPE_STA) + { + LOG_D("this wlan not support scan mode"); + return -RT_ERROR; + } + if (rthw_wifi_mode_get() == RTHW_MODE_NONE) + { + if(rthw_wifi_start(RTHW_MODE_STA_AP) != RT_EOK) + { + LOG_D("L:%d wifistart failed...", __LINE__); + return -1; + } + } + rthw_wifi_scan(rt_ameba_wifi_scan_callback, wifi); + return RT_EOK; +} + +static rt_err_t rthw_wlan_join (struct rt_wlan_device *wlan, struct rt_sta_info *sta_info) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)(wlan->user_data); + int result = 0, i; + char *ssid = RT_NULL, *key = RT_NULL; + + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + if (wifi->type != WIFI_TYPE_STA) + { + LOG_E("this wlan not support sta mode"); + return -RT_ERROR; + } + if ((rthw_wifi_mode_get() != RTHW_MODE_STA) && (rthw_wifi_mode_get() != RTHW_MODE_STA_AP)) + { + rthw_wifi_stop(); + rt_thread_delay(RT_TICK_PER_SECOND / 10); + if (rthw_wifi_start(RTHW_MODE_STA_AP) != RT_EOK) + { + LOG_E("wifi on failed, join fail"); + return -RT_ERROR; + } + } + for (i = 0; i < RT_WLAN_BSSID_MAX_LENGTH; i++) + { + if (sta_info->bssid[i] != 0xff || sta_info->bssid[i] != 0x00) + break; + } + if (i < RT_WLAN_BSSID_MAX_LENGTH) + { + if (sta_info->ssid.len > 0) + ssid = &sta_info->ssid.val[0]; + if (sta_info->key.len > 0) + key = &sta_info->key.val[0]; + LOG_D("bssid connect bssid: %02x:%02x:%02x:%02x:%02x:%02x ssid:%s ssid_len:%d key:%s key_len%d", + sta_info->bssid[0],sta_info->bssid[1],sta_info->bssid[2],sta_info->bssid[3],sta_info->bssid[4],sta_info->bssid[5], + ssid, + sta_info->ssid.len, + key, + sta_info->key.len + ); + result = rthw_wifi_connect_bssid(sta_info->bssid, ssid, sta_info->ssid.len, key, sta_info->key.len, security_map_from_rtthread(sta_info->security)); + } + else + { + result = rthw_wifi_connect(sta_info->ssid.val, sta_info->ssid.len, sta_info->key.val, sta_info->key.len, security_map_from_rtthread(sta_info->security)); + } + if (result != 0) + { + LOG_E("amebaz_wifi_connect failed..."); + return -RT_ERROR; + } + // netif_set_connected((struct ameba_wifi *)wlan, 1); + LOG_D("amebaz_wifi_connect do"); + return RT_EOK; +} + +static rt_err_t rthw_wlan_softap (struct rt_wlan_device *wlan, struct rt_ap_info *ap_info) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)(wlan->user_data); + + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + + if (wifi->type != WIFI_TYPE_AP) + { + LOG_E("this wlan not support ap mode"); + return -RT_ERROR; + } + if (rthw_wifi_ap_start(&ap_info->ssid.val[0], &ap_info->key.val[0], ap_info->channel) != 0) + { + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_AP_STOP, RT_NULL); + wifi->connected = 0; + return -RT_ERROR; + } + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_AP_START, RT_NULL); + wifi->connected = 1; + return RT_EOK; +} + +static rt_err_t rthw_wlan_disconnect (struct rt_wlan_device *wlan) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)(wlan->user_data); + + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + + if (wifi->type != WIFI_TYPE_STA) + { + LOG_E("this wlan not support sta mode"); + return -RT_ERROR; + } + wifi->connected = 0; + rthw_wifi_sta_disconnect(); + rt_wlan_dev_indicate_event_handle(wifi->wlan, RT_WLAN_DEV_EVT_AP_STOP, RT_NULL); + return RT_EOK; +} + +static rt_err_t rthw_wlan_ap_stop (struct rt_wlan_device *wlan) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)(wlan->user_data); + + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + + if (wifi->type != WIFI_TYPE_AP) + { + LOG_E("this wlan not support ap mode"); + return -RT_ERROR; + } + + rthw_wifi_ap_disconnect(); + return RT_EOK; +} + +static rt_err_t rthw_wlan_ap_deauth (struct rt_wlan_device *wlan, rt_uint8_t mac[]) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static rt_err_t rthw_wlan_scan_stop (struct rt_wlan_device *wlan) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static int rthw_wlan_get_rssi (struct rt_wlan_device *wlan) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)(wlan->user_data); + + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + + if (wifi->type != WIFI_TYPE_STA) + { + LOG_E("this wlan not support sta mode"); + return -RT_ERROR; + } + + return rthw_wifi_rssi_get(); +} + +static rt_err_t rthw_wlan_set_powersave (struct rt_wlan_device *wlan, int level) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static int rthw_wlan_get_powersave (struct rt_wlan_device *wlan) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return 0; +} + +static rt_err_t rthw_wlan_cfg_promisc (struct rt_wlan_device *wlan, rt_bool_t start) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + + if(start) + { + rthw_wifi_monitor_callback_set(rthw_wlan_monitor_callback); + rthw_wifi_monitor_enable(1); + } + else + { + rthw_wifi_monitor_callback_set(RT_NULL); + rthw_wifi_monitor_enable(0); + } + return RT_EOK; +} + +static rt_err_t rthw_wlan_cfg_filter (struct rt_wlan_device *wlan, struct rt_wlan_filter *filter) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static rt_err_t rthw_wlan_set_channel (struct rt_wlan_device *wlan, int channel) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + + rthw_wifi_channel_set(channel); + + return RT_EOK; +} + +static int rthw_wlan_get_channel (struct rt_wlan_device *wlan) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + + return rthw_wifi_channel_get(); +} + +static rt_err_t rthw_wlan_set_country (struct rt_wlan_device *wlan, rt_country_code_t country_code) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static rt_country_code_t rthw_wlan_get_country (struct rt_wlan_device *wlan) +{ + LOG_D("F:%s L:%d\n", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static rt_err_t rthw_wlan_set_mac (struct rt_wlan_device *wlan, rt_uint8_t mac[]) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return -RT_ERROR; +} + +static rt_err_t rthw_wlan_get_mac (struct rt_wlan_device *wlan, rt_uint8_t mac[]) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)wlan->user_data; + + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + if(mac == RT_NULL) + { + return -RT_ERROR; + } + memcpy(mac, wifi->dev_addr, MAX_ADDR_LEN); + return RT_EOK; +} + +static int rthw_wlan_recv (struct rt_wlan_device *wlan, void *buff, int len) +{ + LOG_D("F:%s L:%d", __FUNCTION__, __LINE__); + return RT_EOK; +} + +static int rthw_wlan_send (struct rt_wlan_device *wlan, void *buff, int len) +{ + struct ameba_wifi *wifi = (struct ameba_wifi *)wlan->user_data; + int idx = rthw_wifi_get_idx(wifi); + rt_base_t level; + struct sk_buff *skb = RT_NULL; + + LOG_D("F:%s L:%d len:%d", __FUNCTION__, __LINE__, len); + + level = rt_hw_interrupt_disable(); + if(!wifi->connected || !rltk_wlan_check_isup(idx)) + { + rt_hw_interrupt_enable(level); + return -RT_ERROR; + } + rltk_wlan_tx_inc(idx); + rt_hw_interrupt_enable(level); + + skb = (struct sk_buff *)rltk_wlan_alloc_skb(len); + if (skb == RT_NULL) + { + LOG_W("rltk_wlan_alloc_skb NULL for WIFI TX."); + goto exit; + } + /* copy buff to a whole ETH frame */ + memcpy(skb->tail, buff, len); + skb_put(skb, len); + rltk_wlan_send_skb(idx, skb); + +exit: + level = rt_hw_interrupt_disable(); + rltk_wlan_tx_dec(idx); + rt_hw_interrupt_enable(level); + + LOG_D("F:%s L:%d end", __FUNCTION__, __LINE__); + + return RT_EOK; +} + +static const struct rt_wlan_dev_ops ops = +{ + .wlan_init = rthw_wlan_init , + .wlan_mode = rthw_wlan_mode , + .wlan_scan = rthw_wlan_scan , + .wlan_join = rthw_wlan_join , + .wlan_softap = rthw_wlan_softap , + .wlan_disconnect = rthw_wlan_disconnect , + .wlan_ap_stop = rthw_wlan_ap_stop , + .wlan_ap_deauth = rthw_wlan_ap_deauth , + .wlan_scan_stop = rthw_wlan_scan_stop , + .wlan_get_rssi = rthw_wlan_get_rssi , + .wlan_set_powersave = rthw_wlan_set_powersave , + .wlan_get_powersave = rthw_wlan_get_powersave , + .wlan_cfg_promisc = rthw_wlan_cfg_promisc , + .wlan_cfg_filter = rthw_wlan_cfg_filter , + .wlan_set_channel = rthw_wlan_set_channel , + .wlan_get_channel = rthw_wlan_get_channel , + .wlan_set_country = rthw_wlan_set_country , + .wlan_get_country = rthw_wlan_get_country , + .wlan_set_mac = rthw_wlan_set_mac , + .wlan_get_mac = rthw_wlan_get_mac , + .wlan_recv = rthw_wlan_recv , + .wlan_send = rthw_wlan_send , +}; + +int rthw_wifi_low_init(void) +{ + static rt_int8_t _init_flag = 0; + + if (_init_flag) + { + return 1; + } + rt_memset(&wifi_sta, 0, sizeof(wifi_sta)); + rt_memset(&wifi_ap, 0, sizeof(wifi_ap)); + wifi_sta.type = WIFI_TYPE_STA; + wifi_ap.type = WIFI_TYPE_AP; + if(rthw_wifi_start(RTHW_MODE_STA_AP) != RT_EOK) + { + LOG_E("amebaz_wifi_start failed..."); + return -1; + } + LOG_I("amebaz_wifi_start success"); + LOG_D("F:%s L:%d wifi_sta:0x%08x wifi_ap:0x%08x", __FUNCTION__, __LINE__, &wifi_sta, &wifi_ap); + + wifi_reg_event_handler(RTHW_WIFI_EVENT_FOURWAY_HANDSHAKE_DONE, rtw_connect_callbackfn, &wifi_sta); + wifi_reg_event_handler(RTHW_WIFI_EVENT_DISCONNECT, rtw_disconnect_callbackfn, &wifi_sta); + + _init_flag = 1; + + return 0; +} +INIT_DEVICE_EXPORT(rthw_wifi_low_init); diff --git a/bsp/amebaz/drivers/drv_wifi.h b/bsp/amebaz/drivers/wlan/drv_wifi.h similarity index 97% rename from bsp/amebaz/drivers/drv_wifi.h rename to bsp/amebaz/drivers/wlan/drv_wifi.h index e2ca03cd1cecc9975d3b68aa9319056338a6bc83..b92658d470e7619afebf72755a77b297d69977d9 100644 --- a/bsp/amebaz/drivers/drv_wifi.h +++ b/bsp/amebaz/drivers/wlan/drv_wifi.h @@ -25,7 +25,7 @@ #ifndef __DRV_WIFI_H__ #define __DRV_WIFI_H__ -int rt_hw_wifi_init(void); - +int rthw_wifi_low_init(void); + #endif /* __DRV_WIFI_H__ */ diff --git a/bsp/amebaz/drivers/wlan/drv_wlan.c b/bsp/amebaz/drivers/wlan/drv_wlan.c new file mode 100644 index 0000000000000000000000000000000000000000..c414470633345a6a741040cb884ea7e3b2ef1d28 --- /dev/null +++ b/bsp/amebaz/drivers/wlan/drv_wlan.c @@ -0,0 +1,366 @@ +/* + * File : drv_wlan.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2017, 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. + * + * Change Logs: + * Date Author Notes + * 2018-7-10 tyx the first version + */ + +#include "wifi_structures.h" +#include "wifi_constants.h" +#include +#include +#include "board.h" +#include "drv_wlan.h" + +// #define SCAN_WAIT_TIME (10000) + +struct scan_user_data +{ + struct rt_completion done; + scan_callback_fn fun; + void *data; +}; + +extern rthw_mode_t wifi_mode; + +rthw_mode_t rthw_wifi_mode_get(void) +{ + return wifi_mode; +} + +int rthw_wifi_stop(void) +{ + return wifi_off(); +} + +int rthw_wifi_start(rthw_mode_t mode) +{ + if(wifi_on(mode) < 0) + { + rt_kprintf("ERROR: wifi_on failed\n"); + return -1; + } + return 0; +} + +int rthw_wifi_connect(char *ssid, int ssid_len, char *password, int pass_len, rthw_security_t security_type) +{ + int mode; + rtw_wifi_setting_t setting; + + mode = rthw_wifi_mode_get(); + if ((mode != RTHW_MODE_STA) && (mode != RTHW_MODE_STA_AP)) + { + return -1; + } + if(wext_get_mode(WLAN0_NAME, &mode) < 0) + { + rt_kprintf("L:%d wifi get mode err\n", __LINE__); + return -1; + } + if(wifi_connect(ssid, security_type, password, ssid_len, pass_len, -1, NULL) != RTW_SUCCESS) + { + rt_kprintf("wifi connect fail\n"); + return -1; + } + rt_kprintf("wifi connect success\n"); + rt_kprintf("Show Wi-Fi information\n"); + wifi_get_setting(WLAN0_NAME,&setting); + wifi_show_setting(WLAN0_NAME,&setting); + return 0; +} + +int rthw_wifi_connect_bssid(char *bssid, char *ssid, int ssid_len, char *password, int pass_len, rthw_security_t security_type) +{ + int mode; + rtw_wifi_setting_t setting; + + mode = rthw_wifi_mode_get(); + if ((mode != RTHW_MODE_STA) && (mode != RTHW_MODE_STA_AP)) + { + return -1; + } + if(wext_get_mode(WLAN0_NAME, &mode) < 0) + { + rt_kprintf("L:%d wifi get mode err\n", __LINE__); + return -1; + } + + if(wifi_connect_bssid(bssid, ssid, security_type, password, 6, ssid_len, pass_len, -1, NULL) != RTW_SUCCESS) + { + rt_kprintf("wifi connect fail\n"); + return -1; + } + rt_kprintf("wifi connect success\n"); + rt_kprintf("Show Wi-Fi information\n"); + wifi_get_setting(WLAN0_NAME,&setting); + wifi_show_setting(WLAN0_NAME,&setting); + return 0; +} + +int rthw_wifi_ap_start(char *ssid, char *password, int channel) +{ + int mode = 0, timeout = 20; + rtw_security_t security_type = RTW_SECURITY_WPA2_AES_PSK; + char *name = RT_NULL; + + mode = rthw_wifi_mode_get(); + if (mode == RTHW_MODE_AP) + { + name = WLAN0_NAME; + } + else if (mode == RTHW_MODE_STA_AP) + { + name = WLAN1_NAME; + } + else + { + return -1; + } + + if(wext_get_mode(name, &mode) < 0) + { + rt_kprintf("L:%d wifi get mode err\n", __LINE__); + return -1; + } + if (password == RT_NULL) + { + security_type = RTW_SECURITY_OPEN; + } + + if(wifi_start_ap(ssid, security_type, password, rt_strlen(ssid), rt_strlen(password), 6) != 0) + { + rt_kprintf("ERROR: wifi_start_ap failed\n"); + return -1; + } + + while(1) + { + char essid[33]; + if(wext_get_ssid(name, (unsigned char *) essid) > 0) + { + if(strcmp((const char *) essid, (const char *)ssid) == 0) + { + rt_kprintf("%s started\n", ssid); + break; + } + } + if(timeout == 0) + { + rt_kprintf("Start AP timeout\n"); + return -1; + } + rt_thread_delay(1 * RT_TICK_PER_SECOND); + timeout --; + } + + return 0; +} + +static int rthw_wifi_disconnect(char *name) +{ + char essid[33]; + int timeout = 20; + const rt_uint8_t null_bssid[ETH_ALEN + 2] = {0, 0, 0, 0, 0, 1, 0, 0}; + + if (name == RT_NULL) + return -1; + + if (wext_get_ssid(name, (unsigned char *) essid) < 0) + { + rt_kprintf("\nWIFI disconnected!\n"); + return -1; + } + + if (wext_set_bssid(name, null_bssid) < 0) + { + rt_kprintf("Failed to set bogus BSSID to disconnect"); + return -1; + } + + while (1) + { + if(wext_get_ssid(name, (unsigned char *) essid) < 0) + { + rt_kprintf("WIFI disconnected!\n"); + break; + } + + if(timeout == 0) + { + rt_kprintf("ERROR: Deassoc timeout!\n"); + return -1; + } + + rt_thread_delay(10); + timeout --; + } + return 0; +} + +int rthw_wifi_sta_disconnect(void) +{ + int mode = 0; + char *name = RT_NULL; + + mode = rthw_wifi_mode_get(); + if (mode == RTHW_MODE_STA) + { + name = WLAN0_NAME; + } + else if (mode == RTHW_MODE_STA_AP) + { + name = WLAN0_NAME; + } + else + { + return -1; + } + return rthw_wifi_disconnect(name); +} + +int rthw_wifi_ap_disconnect(void) +{ + int mode = 0; + char *name = RT_NULL; + + mode = rthw_wifi_mode_get(); + if (mode == RTHW_MODE_AP) + { + name = WLAN0_NAME; + } + else if (mode == RTHW_MODE_STA_AP) + { + name = WLAN1_NAME; + } + else + { + return -1; + } + return rthw_wifi_disconnect(name); +} + +int rthw_wifi_rssi_get(void) +{ + int rssi = 0; + wifi_get_rssi(&rssi); + return rssi; +} + +void rthw_wifi_channel_set(int channel) +{ + wifi_set_channel(channel); +} + +int rthw_wifi_channel_get(void) +{ + int channel; + wifi_get_channel(&channel); + return channel; +} + +static rtw_result_t rthw_wifi_scan_result_handler( rtw_scan_handler_result_t* malloced_scan_result) +{ + struct scan_user_data* user_data = malloced_scan_result->user_data; + struct rthw_wlan_info info = { 0 }; + + if (malloced_scan_result->scan_complete != RTW_TRUE) + { + rtw_scan_result_t* record = &malloced_scan_result->ap_details; + + if (user_data->fun != RT_NULL) + { + record->SSID.val[record->SSID.len] = 0; /* Ensure the SSID is null terminated */ + info.ssid = record->SSID.val; + info.bssid = record->BSSID.octet; + info.band = record->band; + info.datarate = 0; + info.channel = record->channel; + info.rssi = record->signal_strength; + info.security = record->security; + user_data->fun(&info, user_data->data); + } + } + else + { + user_data->fun(RT_NULL, user_data->data); + rt_free(user_data); + rt_kprintf("scan ap down\n"); + } + + return RTW_SUCCESS; +} + +int rthw_wifi_scan(scan_callback_fn fun, void *data) +{ + struct scan_user_data *user_data; + + if (fun == RT_NULL) + { + rt_kprintf("scan callback fun is null\n"); + return -1; + } + user_data = rt_malloc(sizeof(struct scan_user_data)); + if (user_data == RT_NULL) + { + rt_kprintf("wifi scan malloc fail\n"); + return -1; + } + user_data->fun = fun; + user_data->data = data; + + if (wifi_scan_networks(rthw_wifi_scan_result_handler, user_data) != RTW_SUCCESS) + { + rt_kprintf("ERROR: wifi scan failed\n\r"); + return -1; + } + + return 0; +} + +static rthw_wlan_monitor_callback_t monitor_callback; + +static void rthw_wifi_promisc_callback(unsigned char *buf, unsigned int len, void* userdata) +{ + if (monitor_callback) + { + monitor_callback(userdata, len, RT_NULL); + } +} + +void rthw_wifi_monitor_callback_set(rthw_wlan_monitor_callback_t callback) +{ + monitor_callback = callback; +} + +void rthw_wifi_monitor_enable(int enable) +{ + if (enable) + { + wifi_enter_promisc_mode(); + wifi_set_promisc(RTW_PROMISC_ENABLE, rthw_wifi_promisc_callback, 1); + rt_kprintf("%s run \n", __FUNCTION__); + } + else + { + wifi_set_promisc(RTW_PROMISC_DISABLE, RT_NULL, 0); + rthw_wifi_stop(); + } +} diff --git a/bsp/amebaz/drivers/wlan/drv_wlan.h b/bsp/amebaz/drivers/wlan/drv_wlan.h new file mode 100644 index 0000000000000000000000000000000000000000..03a8db01e89ac30312aa6c290933be1dbc6a7c93 --- /dev/null +++ b/bsp/amebaz/drivers/wlan/drv_wlan.h @@ -0,0 +1,119 @@ +/* + * File : drv_wlan.h + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2017, 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. + * + * Change Logs: + * Date Author Notes + * 2018-7-10 tyx the first version + */ + +#ifndef __DRV_WLAN_H__ +#define __DRV_WLAN_H__ + +typedef enum +{ + RTHW_MODE_NONE = 0, + RTHW_MODE_STA, + RTHW_MODE_AP, + RTHW_MODE_STA_AP, + RTHW_MODE_PROMISC, + RTHW_MODE_P2P +}rthw_mode_t; + +#define SHARED_ENABLED 0x00008000 +#define WPA_SECURITY 0x00200000 +#define WPA2_SECURITY 0x00400000 +#define WPS_ENABLED 0x10000000 +#define WEP_ENABLED 0x0001 +#define TKIP_ENABLED 0x0002 +#define AES_ENABLED 0x0004 +#define WSEC_SWFLAG 0x0008 + +typedef enum { + RTHW_SECURITY_OPEN = 0, /**< Open security */ + RTHW_SECURITY_WEP_PSK = WEP_ENABLED, /**< WEP Security with open authentication */ + RTHW_SECURITY_WEP_SHARED = ( WEP_ENABLED | SHARED_ENABLED ), /**< WEP Security with shared authentication */ + RTHW_SECURITY_WPA_TKIP_PSK = ( WPA_SECURITY | TKIP_ENABLED ), /**< WPA Security with TKIP */ + RTHW_SECURITY_WPA_AES_PSK = ( WPA_SECURITY | AES_ENABLED ), /**< WPA Security with AES */ + RTHW_SECURITY_WPA2_AES_PSK = ( WPA2_SECURITY | AES_ENABLED ), /**< WPA2 Security with AES */ + RTHW_SECURITY_WPA2_TKIP_PSK = ( WPA2_SECURITY | TKIP_ENABLED ), /**< WPA2 Security with TKIP */ + RTHW_SECURITY_WPA2_MIXED_PSK = ( WPA2_SECURITY | AES_ENABLED | TKIP_ENABLED ), /**< WPA2 Security with AES & TKIP */ + RTHW_SECURITY_WPA_WPA2_MIXED = ( WPA_SECURITY | WPA2_SECURITY ), /**< WPA/WPA2 Security */ + + RTHW_SECURITY_WPS_OPEN = WPS_ENABLED, /**< WPS with open security */ + RTHW_SECURITY_WPS_SECURE = (WPS_ENABLED | AES_ENABLED), /**< WPS with AES security */ + + RTHW_SECURITY_UNKNOWN = -1, /**< May be returned by scan function if security is unknown. Do not pass this to the join function! */ + + RTHW_SECURITY_FORCE_32_BIT = 0x7fffffff /**< Exists only to force rtw_security_t type to 32 bits */ +} rthw_security_t; + +typedef enum { + RTHW_WIFI_EVENT_CONNECT = 0, + RTHW_WIFI_EVENT_DISCONNECT = 1, + RTHW_WIFI_EVENT_FOURWAY_HANDSHAKE_DONE = 2, + RTHW_WIFI_EVENT_SCAN_RESULT_REPORT = 3, + RTHW_WIFI_EVENT_SCAN_DONE = 4, + RTHW_WIFI_EVENT_RECONNECTION_FAIL = 5, + RTHW_WIFI_EVENT_SEND_ACTION_DONE = 6, + RTHW_WIFI_EVENT_RX_MGNT = 7, + RTHW_WIFI_EVENT_STA_ASSOC = 8, + RTHW_WIFI_EVENT_STA_DISASSOC = 9, + RTHW_WIFI_EVENT_STA_WPS_START = 10, + RTHW_WIFI_EVENT_WPS_FINISH = 11, + RTHW_WIFI_EVENT_EAPOL_START = 12, + RTHW_WIFI_EVENT_EAPOL_RECVD = 13, + RTHW_WIFI_EVENT_NO_NETWORK = 14, + RTHW_WIFI_EVENT_BEACON_AFTER_DHCP = 15, + RTHW_WIFI_EVENT_MAX, +}rthw_event_indicate_t; + +typedef enum { + RTHW_802_11_BAND_5GHZ = 0, /**< Denotes 5GHz radio band */ + RTHW_802_11_BAND_2_4GHZ = 1 /**< Denotes 2.4GHz radio band */ +} rthw_802_11_band_t; + +struct rthw_wlan_info +{ + char *ssid; + rt_uint8_t *bssid; + rthw_802_11_band_t band; + rt_uint32_t datarate; + rt_uint16_t channel; + rt_int16_t rssi; + rthw_security_t security; +}; + +typedef void (*scan_callback_fn)(struct rthw_wlan_info *info, void *user_data); +typedef void (*rthw_wlan_monitor_callback_t)(rt_uint8_t *data, int len, void *user_data); + +rthw_mode_t rthw_wifi_mode_get(void); +int rthw_wifi_stop(void); +int rthw_wifi_start(rthw_mode_t mode); +int rthw_wifi_connect(char *ssid, int ssid_len, char *password, int pass_len, rthw_security_t security_type); +int rthw_wifi_connect_bssid(char *bssid, char *ssid, int ssid_len, char *password, int pass_len, rthw_security_t security_type); +int rthw_wifi_ap_start(char *ssid, char *password, int channel); +int rthw_wifi_rssi_get(void); +void rthw_wifi_channel_set(int channel); +int rthw_wifi_channel_get(void); +int rthw_wifi_sta_disconnect(void); +int rthw_wifi_ap_disconnect(void); +int rthw_wifi_scan(scan_callback_fn fun, void *data); +void rthw_wifi_monitor_enable(int enable); +void rthw_wifi_monitor_callback_set(rthw_wlan_monitor_callback_t callback); +#endif diff --git a/bsp/amebaz/figures/iar_build.png b/bsp/amebaz/figures/iar_build.png new file mode 100644 index 0000000000000000000000000000000000000000..ee373d785c56fc4618a90a14bb02838f09e877d3 Binary files /dev/null and b/bsp/amebaz/figures/iar_build.png differ diff --git a/bsp/amebaz/figures/iar_download.png b/bsp/amebaz/figures/iar_download.png new file mode 100644 index 0000000000000000000000000000000000000000..75ebf026c5b1d06a37ae5a184ba8ec36a4b35f6b Binary files /dev/null and b/bsp/amebaz/figures/iar_download.png differ diff --git a/bsp/amebaz/figures/image-tool_v2.2.0.png b/bsp/amebaz/figures/image-tool_v2.2.0.png new file mode 100644 index 0000000000000000000000000000000000000000..fceb1b7f3e816d7fe227d8ef6bd3c7607d1ea3a8 Binary files /dev/null and b/bsp/amebaz/figures/image-tool_v2.2.0.png differ diff --git a/bsp/amebaz/libraries/Kconfig b/bsp/amebaz/libraries/Kconfig new file mode 100644 index 0000000000000000000000000000000000000000..935bb1fef9329eb76a3f700a54eb158e764178a9 --- /dev/null +++ b/bsp/amebaz/libraries/Kconfig @@ -0,0 +1,7 @@ +menu "External Libraries" + + config RT_USING_SMARTCONFIG_LIB + bool "Using RT-Thrad SmartConfig Library" + default n + +endmenu diff --git a/bsp/amebaz/libraries/SConscript b/bsp/amebaz/libraries/SConscript new file mode 100644 index 0000000000000000000000000000000000000000..ca95be14e2b891254901c1c1737c0784d9972abb --- /dev/null +++ b/bsp/amebaz/libraries/SConscript @@ -0,0 +1,12 @@ +import os +from building import * + +objs = [] +cwd = GetCurrentDir() +list = os.listdir(cwd) + +for item in list: + if os.path.isfile(os.path.join(cwd, item, 'SConscript')): + objs = objs + SConscript(os.path.join(item, 'SConscript')) + +Return('objs') diff --git a/bsp/amebaz/libraries/smartconfig/SConscript b/bsp/amebaz/libraries/smartconfig/SConscript new file mode 100644 index 0000000000000000000000000000000000000000..4ae07e381537b09911624041dfb39ef08246c5e9 --- /dev/null +++ b/bsp/amebaz/libraries/smartconfig/SConscript @@ -0,0 +1,18 @@ +Import('rtconfig') +from building import * + +cwd = GetCurrentDir() +src = [] +path = [cwd + '/inc'] +libs = [''] +libpath = [cwd + '/libs'] + +if rtconfig.CROSS_TOOL == 'gcc': + libs += ['libsmartconfig_armcm4_gcc'] +elif rtconfig.CROSS_TOOL == 'iar': + libs += ['libsmartconfig_armcm4_iar'] + +group = DefineGroup('smartconfig', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath) + +Return('group') + diff --git a/bsp/amebaz/libraries/smartconfig/inc/smartconfig.h b/bsp/amebaz/libraries/smartconfig/inc/smartconfig.h new file mode 100644 index 0000000000000000000000000000000000000000..b215e983c4f509c389555a4a7d91e8eb91f4387a --- /dev/null +++ b/bsp/amebaz/libraries/smartconfig/inc/smartconfig.h @@ -0,0 +1,62 @@ +/* + * File : smartconfig.h + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2006 - 2018, 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. + * + * Change Logs: + * Date Author Notes + * 2018-09-13 Bernard the first version + */ +#ifndef __SMARTCONFIG_H__ +#define __SMARTCONFIG_H__ + +#define SMARTCONFIG_EVENT_CHANGE_CHANNEL (1 << 0) +#define SMARTCONFIG_EVENT_LOCKED_CHANNEL (1 << 1) +#define SMARTCONFIG_EVENT_COMPLETE (1 << 2) +#define SMARTCONFIG_EVENT_RESTART (1 << 3) +#define SMARTCONFIG_EVENT_STOP (1 << 4) + +typedef enum +{ + SMARTCONFIG_TYPE_AIRKISS = 0, + SMARTCONFIG_TYPE_JDSMART = 1, + SMARTCONFIG_TYPE_ESPTOUCH, + SMARTCONFIG_TYPE_REALTOUCH, + SMARTCONFIG_TYPE_ALL, + SMARTCONFIG_TYPE_MAX, +} rt_smartconfig_type; + +typedef enum +{ + SMARTCONFIG_ENCRYPT_NONE, + SMARTCONFIG_ENCRYPT_AES, +} rt_smartconfig_encrypt_type; + +typedef int (*rt_smartconfig_result_cb)(rt_smartconfig_type result_type, char *ssid, char *passwd, \ + void *userdata, rt_uint8_t userdata_len); +typedef void (*rt_smartconfig_event_handle)(rt_uint32_t event, void *userdata); + +int rt_smartconfig_start(rt_smartconfig_type config_type, rt_smartconfig_encrypt_type encrypt_type, char *encrypt, \ + rt_smartconfig_result_cb result_cb); + +int rt_smartconfig_stop(void); + +void rt_smartconfig_set_event_handle(rt_smartconfig_event_handle handle, void *userdata); + +char *rt_smartconfig_version(void); + +#endif diff --git a/bsp/amebaz/libraries/smartconfig/libs/libsmartconfig_armcm4_gcc.a b/bsp/amebaz/libraries/smartconfig/libs/libsmartconfig_armcm4_gcc.a new file mode 100644 index 0000000000000000000000000000000000000000..b7e261aa08ab236e3accd510c465be3bef4644f6 Binary files /dev/null and b/bsp/amebaz/libraries/smartconfig/libs/libsmartconfig_armcm4_gcc.a differ diff --git a/bsp/amebaz/libraries/smartconfig/libs/libsmartconfig_armcm4_iar.a b/bsp/amebaz/libraries/smartconfig/libs/libsmartconfig_armcm4_iar.a new file mode 100644 index 0000000000000000000000000000000000000000..f10f3ba8d07a1ec45bf36a3273edd3264d6c6c2a Binary files /dev/null and b/bsp/amebaz/libraries/smartconfig/libs/libsmartconfig_armcm4_iar.a differ diff --git a/bsp/amebaz/project.ewd b/bsp/amebaz/project.ewd new file mode 100644 index 0000000000000000000000000000000000000000..9d0f67c974f770757abaf4b9341fa099c8749c19 --- /dev/null +++ b/bsp/amebaz/project.ewd @@ -0,0 +1,2697 @@ + + + + 2 + + Debug + + ARM + + 1 + + C-SPY + 2 + + 26 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ARMSIM_ID + 2 + + 1 + 1 + 1 + + + + + + + + ANGEL_ID + 2 + + 0 + 1 + 1 + + + + + + + + + + + + CMSISDAP_ID + 2 + + 2 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GDBSERVER_ID + 2 + + 0 + 1 + 1 + + + + + + + + + + + IARROM_ID + 2 + + 1 + 1 + 1 + + + + + + + + + IJET_ID + 2 + + 3 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + JLINK_ID + 2 + + 15 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + LMIFTDI_ID + 2 + + 2 + 1 + 1 + + + + + + + + + + MACRAIGOR_ID + 2 + + 3 + 1 + 1 + + + + + + + + + + + + + + + + + + + + + + + PEMICRO_ID + 2 + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + RDI_ID + 2 + + 2 + 1 + 1 + + + + + + + + + + + + + + + + STLINK_ID + 2 + + 2 + 1 + 1 + + + + + + + + + + + THIRDPARTY_ID + 2 + + 0 + 1 + 1 + + + + + + + + XDS100_ID + 2 + + 2 + 1 + 1 + + + + + + + + + + + + + $TOOLKIT_DIR$\plugins\middleware\HCCWare\HCCWare.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\AVIX\AVIX.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\MQX\MQXRtosPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\SafeRTOS\SafeRTOSPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\TI-RTOS\tirtosplugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-286-KA-CSpy.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-III\uCOS-III-KA-CSpy.ewplugin + 0 + + + $EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin + 1 + + + $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin + 0 + + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + + + $EW_DIR$\common\plugins\uCProbe\uCProbePlugin.ENU.ewplugin + 0 + + + + + Release + + ARM + + 0 + + C-SPY + 2 + + 26 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ARMSIM_ID + 2 + + 1 + 1 + 0 + + + + + + + + ANGEL_ID + 2 + + 0 + 1 + 0 + + + + + + + + + + + + CMSISDAP_ID + 2 + + 2 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GDBSERVER_ID + 2 + + 0 + 1 + 0 + + + + + + + + + + + IARROM_ID + 2 + + 1 + 1 + 0 + + + + + + + + + IJET_ID + 2 + + 3 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + JLINK_ID + 2 + + 15 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + LMIFTDI_ID + 2 + + 2 + 1 + 0 + + + + + + + + + + MACRAIGOR_ID + 2 + + 3 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + PEMICRO_ID + 2 + + 1 + 1 + 0 + + + + + + + + + + + + + + + + + + + RDI_ID + 2 + + 2 + 1 + 0 + + + + + + + + + + + + + + + + STLINK_ID + 2 + + 2 + 1 + 0 + + + + + + + + + + + THIRDPARTY_ID + 2 + + 0 + 1 + 0 + + + + + + + + XDS100_ID + 2 + + 2 + 1 + 0 + + + + + + + + + + + + + $TOOLKIT_DIR$\plugins\middleware\HCCWare\HCCWare.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\AVIX\AVIX.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\CMX\CmxTinyArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\embOS\embOSPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\MQX\MQXRtosPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\SafeRTOS\SafeRTOSPlugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\ThreadX\ThreadXArmPlugin.ENU.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\TI-RTOS\tirtosplugin.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-286-KA-CSpy.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.ewplugin + 0 + + + $TOOLKIT_DIR$\plugins\rtos\uCOS-III\uCOS-III-KA-CSpy.ewplugin + 0 + + + $EW_DIR$\common\plugins\CodeCoverage\CodeCoverage.ENU.ewplugin + 1 + + + $EW_DIR$\common\plugins\Orti\Orti.ENU.ewplugin + 0 + + + $EW_DIR$\common\plugins\SymList\SymList.ENU.ewplugin + 1 + + + $EW_DIR$\common\plugins\uCProbe\uCProbePlugin.ENU.ewplugin + 0 + + + + + + diff --git a/bsp/amebaz/project.ewp b/bsp/amebaz/project.ewp index adb68dc096201d87d44c5bba362554edf1d5de8a..aa4eec3342ea8ae5cc1954dcb5465d1524bccaf2 100644 --- a/bsp/amebaz/project.ewp +++ b/bsp/amebaz/project.ewp @@ -10,7 +10,7 @@ General 3 - 24 + 22 1 1 + + + - - - - - - @@ -181,6 +168,14 @@ CCDefines CONFIG_PLATFORM_8711B + CONFIG_BUILD_ROM + PLATFORM_RTTHREAD + __IEEE_LITTLE_ENDIAN + RT_USING_DLIBC + _DLIB_FILE_DESCRIPTOR + _DLIB_THREAD_SUPPORT + CONFIG_PLATFORM_8711B + PLATFORM_RTTHREAD __IEEE_LITTLE_ENDIAN RT_USING_DLIBC @@ -312,39 +307,39 @@ @@ -1189,6 +1174,7 @@ CCDefines NDEBUG CONFIG_PLATFORM_8711B + PLATFORM_RTTHREAD __IEEE_LITTLE_ENDIAN RT_USING_DLIBC @@ -1320,39 +1306,39 @@ @@ -844,7 +840,7 @@ @@ -1566,7 +1444,7 @@ + + C-STAT + 260 + + 1 + + 0 + + 600 + 0 + 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/amebaz/template.eww b/bsp/amebaz/template.eww new file mode 100644 index 0000000000000000000000000000000000000000..bd036bb4c98c1598f04b85f64b0dff37f6ec6028 --- /dev/null +++ b/bsp/amebaz/template.eww @@ -0,0 +1,10 @@ + + + + + $WS_DIR$\template.ewp + + + + + diff --git a/bsp/amebaz/tmp.board b/bsp/amebaz/tmp.board index f88776bc8441d763d71b8587e129225e09c06ba6..1bf54bd90efffeddbe030299f11f3361ad067b62 100644 --- a/bsp/amebaz/tmp.board +++ b/bsp/amebaz/tmp.board @@ -12,10 +12,10 @@ 0xb020 - CODE 0x10005000 0x10005A6B + CODE 0x10005000 0x10005A9B $PROJ_DIR$\packages\realtek_ameba-latest\sdk-ameba-v4.0b_without_NDA_GCC_V1.0.0\component\soc\realtek\8711b\misc\iar_utility\common\flashloader\FlashRTL8195aMP.flash 0xb000 --concat - CODE 0x10005a6c 0x1003dfff + CODE 0x10005a9c 0x1003dfff diff --git a/bsp/frdm-k64f/applications/application.c b/bsp/frdm-k64f/applications/application.c index 0b2f9cda6ed0271d1f44ec8205f9fc61069a7573..3d4448e2a5689eb64b622674f7b951764c04ba0f 100644 --- a/bsp/frdm-k64f/applications/application.c +++ b/bsp/frdm-k64f/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/frdm-k64f/applications/startup.c b/bsp/frdm-k64f/applications/startup.c index 430cf0f0bc31bb7ddb4e985d1f6789f6457c8bd1..3627cb993bf34c25c0ba9f11530f5ba6093d898f 100644 --- a/bsp/frdm-k64f/applications/startup.c +++ b/bsp/frdm-k64f/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/frdm-k64f/board/board.c b/bsp/frdm-k64f/board/board.c index a386d18520875de30720826122a492e5749bd466..334f571d6918d9cc0d27899e8df69f4165990de8 100644 --- a/bsp/frdm-k64f/board/board.c +++ b/bsp/frdm-k64f/board/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/frdm-k64f/board/board.h b/bsp/frdm-k64f/board/board.h index fca6fd0ce2c6be0617ae70f10938ad97ad9c767b..7610ade1fe3c6b90d999e256df4b0f8357860dde 100644 --- a/bsp/frdm-k64f/board/board.h +++ b/bsp/frdm-k64f/board/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/frdm-k64f/board/drv_emac.c b/bsp/frdm-k64f/board/drv_emac.c index b70fb1c310c15a55a00132ea8c51a3fc3b59c8e6..606c141545aa523c746e76687e43e8514b842a3a 100644 --- a/bsp/frdm-k64f/board/drv_emac.c +++ b/bsp/frdm-k64f/board/drv_emac.c @@ -1,8 +1,7 @@ /* - * File : emac_drv.c - * i.MX6 EMAC Ethernet driver - * COPYRIGHT (C) 2015, Shanghai Real-Thread Electronic Technology Co.,Ltd - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-07-15 Bernard The first version diff --git a/bsp/frdm-k64f/board/drv_emac.h b/bsp/frdm-k64f/board/drv_emac.h index c53b367647ab7224605e9624c063db86c8e13fb3..e2d0ec8c8c5eb30b870496dc11b59c3bc1a6e54b 100644 --- a/bsp/frdm-k64f/board/drv_emac.h +++ b/bsp/frdm-k64f/board/drv_emac.h @@ -1,8 +1,7 @@ /* - * File : drv_emac.h - * i.MX6 EMAC Ethernet driver - * COPYRIGHT (C) 2015, Shanghai Real-Thread Electronic Technology Co.,Ltd - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-07-15 Bernard The first version diff --git a/bsp/frdm-k64f/board/drv_uart.c b/bsp/frdm-k64f/board/drv_uart.c index 6481746fe0c91d254c1c56e74b7e1fa434d41e13..c4a1da1013679b12849a1e5ea8cb006218d34797 100644 --- a/bsp/frdm-k64f/board/drv_uart.c +++ b/bsp/frdm-k64f/board/drv_uart.c @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/frdm-k64f/board/drv_uart.h b/bsp/frdm-k64f/board/drv_uart.h index 83580972d113a15a2d4f2bfdb46c2d32ad78faa5..7fd78c9a4ef1f13d03bb75eb9431a6c9d18113db 100644 --- a/bsp/frdm-k64f/board/drv_uart.h +++ b/bsp/frdm-k64f/board/drv_uart.h @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/frdm-k64f/board/led.c b/bsp/frdm-k64f/board/led.c index 3a13fef29ba6bf75ce2cb73885692c6ccf76c3c0..aebea8bdcefae5c43469170deb5e0b22a0b99455 100644 --- a/bsp/frdm-k64f/board/led.c +++ b/bsp/frdm-k64f/board/led.c @@ -1,11 +1,7 @@ /* - * File : led.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/frdm-k64f/board/led.h b/bsp/frdm-k64f/board/led.h index ca08d3f26649fb061d1185b99df6d47432e4485d..f1c62666d6d232e72b1f660aa72634fd40b6738f 100644 --- a/bsp/frdm-k64f/board/led.h +++ b/bsp/frdm-k64f/board/led.h @@ -1,11 +1,7 @@ /* - * File : led.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/imx6sx/cortex-a9/applications/main.c b/bsp/imx6sx/cortex-a9/applications/main.c index c9a2b6ca0536d0bd0a86e25edfd173942609d5cd..9b0847fc8fab466f17d7ae279b9ec2e211d04a6e 100644 --- a/bsp/imx6sx/cortex-a9/applications/main.c +++ b/bsp/imx6sx/cortex-a9/applications/main.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include #include diff --git a/bsp/imx6sx/cortex-a9/cpu/context_gcc.S b/bsp/imx6sx/cortex-a9/cpu/context_gcc.S index 01593a7c0aa40e88c83b69324369ca1a274d0505..97b3dbc4475d81a1eebe07f17c68f44a469df509 100644 --- a/bsp/imx6sx/cortex-a9/cpu/context_gcc.S +++ b/bsp/imx6sx/cortex-a9/cpu/context_gcc.S @@ -1,21 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/cp15_gcc.S b/bsp/imx6sx/cortex-a9/cpu/cp15_gcc.S index f1ed6492aad55f8f0deb769583e738dc79a8a6f2..0e3e60655c8963ac0023e48260641d52adb8a5e5 100644 --- a/bsp/imx6sx/cortex-a9/cpu/cp15_gcc.S +++ b/bsp/imx6sx/cortex-a9/cpu/cp15_gcc.S @@ -1,22 +1,7 @@ /* - * File : cp15_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team - * http://www.rt-thread.org + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/cpu.c b/bsp/imx6sx/cortex-a9/cpu/cpu.c index 7dd426e4dd97b49a18ebc3616b6db2e06fea89d4..2d7871501160a78edc7f1687d426f08de359a508 100644 --- a/bsp/imx6sx/cortex-a9/cpu/cpu.c +++ b/bsp/imx6sx/cortex-a9/cpu/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/interrupt.c b/bsp/imx6sx/cortex-a9/cpu/interrupt.c index 942c074721984dc6d154a0a10ef4e7bb620628e3..3934c84aafcae5bb0fb5d7a1c5fc09645fb822e8 100644 --- a/bsp/imx6sx/cortex-a9/cpu/interrupt.c +++ b/bsp/imx6sx/cortex-a9/cpu/interrupt.c @@ -1,11 +1,7 @@ /* - * File : interrupt.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, RT-Thread Development 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/mmu.c b/bsp/imx6sx/cortex-a9/cpu/mmu.c index b2503e4260c77ece6e044a68d5ea6d2802a793f2..58acdd81458f7e2dd619d4f3e0fbaff445a3b276 100644 --- a/bsp/imx6sx/cortex-a9/cpu/mmu.c +++ b/bsp/imx6sx/cortex-a9/cpu/mmu.c @@ -1,11 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/pmu.c b/bsp/imx6sx/cortex-a9/cpu/pmu.c index 07911a2db721bd1c82cffbb2d8f4816393663b91..8ffc1dede610da978808fa242898e2e2b1b681a2 100644 --- a/bsp/imx6sx/cortex-a9/cpu/pmu.c +++ b/bsp/imx6sx/cortex-a9/cpu/pmu.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "pmu.h" diff --git a/bsp/imx6sx/cortex-a9/cpu/stack.c b/bsp/imx6sx/cortex-a9/cpu/stack.c index e653c5d11177ad62544837626bc51e25fd37ce74..2bd3c36915d20549bd5f9c81c9ea9569ece28d35 100644 --- a/bsp/imx6sx/cortex-a9/cpu/stack.c +++ b/bsp/imx6sx/cortex-a9/cpu/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/start_gcc.S b/bsp/imx6sx/cortex-a9/cpu/start_gcc.S index ca8c1f930f0507dc16b43d97fcf70d84471e27e2..2f16d168075ccab2b00a194fb76ec3b70fcb776f 100644 --- a/bsp/imx6sx/cortex-a9/cpu/start_gcc.S +++ b/bsp/imx6sx/cortex-a9/cpu/start_gcc.S @@ -1,21 +1,7 @@ /* - * File : start_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/trap.c b/bsp/imx6sx/cortex-a9/cpu/trap.c index 515f7cb54427b4f3591848ccd08bb8dee23e85ea..f3b2c26e6d531ca8de8a53c55fa1947cb3029d76 100644 --- a/bsp/imx6sx/cortex-a9/cpu/trap.c +++ b/bsp/imx6sx/cortex-a9/cpu/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, 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 diff --git a/bsp/imx6sx/cortex-a9/cpu/vector_gcc.S b/bsp/imx6sx/cortex-a9/cpu/vector_gcc.S index 4a44a7395cbbf15e4fe45d39183c3bdc1fe3b072..60d3c6cf1d9083f312cf47465bd62c96d5fdc9bf 100644 --- a/bsp/imx6sx/cortex-a9/cpu/vector_gcc.S +++ b/bsp/imx6sx/cortex-a9/cpu/vector_gcc.S @@ -1,21 +1,7 @@ /* - * File : vector_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imx6sx/cortex-a9/drivers/board.c b/bsp/imx6sx/cortex-a9/drivers/board.c index 1ac040d7e4c157e6c12bbc5067fcaab7e74cacc8..7ff9d47a894dee294bd2958565dd12f150f6253e 100644 --- a/bsp/imx6sx/cortex-a9/drivers/board.c +++ b/bsp/imx6sx/cortex-a9/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development 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 diff --git a/bsp/imx6sx/cortex-a9/drivers/board.h b/bsp/imx6sx/cortex-a9/drivers/board.h index f3fe347584f2a361e3d826dca8246084e27a8fa5..9ae9ae60c7701b0a0282456fe255a13e76dbc658 100644 --- a/bsp/imx6sx/cortex-a9/drivers/board.h +++ b/bsp/imx6sx/cortex-a9/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development 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 diff --git a/bsp/imx6sx/cortex-a9/drivers/emac_drv.c b/bsp/imx6sx/cortex-a9/drivers/emac_drv.c index ae61d2601c069d51d92ce654f8276e217421fe37..af5ca009cfebdbc3641e6f9f3b04786a298b2c1d 100644 --- a/bsp/imx6sx/cortex-a9/drivers/emac_drv.c +++ b/bsp/imx6sx/cortex-a9/drivers/emac_drv.c @@ -1,8 +1,7 @@ /* - * File : emac_drv.c - * i.MX6 EMAC Ethernet driver - * COPYRIGHT (C) 2015, Shanghai Real-Thread Electronic Technology Co.,Ltd - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-07-15 Bernard The first version diff --git a/bsp/imx6sx/cortex-a9/drivers/emac_drv.h b/bsp/imx6sx/cortex-a9/drivers/emac_drv.h index 4400219d8e6b02c83b565329e48d88a05a1e0b71..face875283fa8e852446505a28616aeea909a095 100644 --- a/bsp/imx6sx/cortex-a9/drivers/emac_drv.h +++ b/bsp/imx6sx/cortex-a9/drivers/emac_drv.h @@ -1,8 +1,7 @@ /* - * File : drv_emac.h - * i.MX6 EMAC Ethernet driver - * COPYRIGHT (C) 2015, Shanghai Real-Thread Electronic Technology Co.,Ltd - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-07-15 Bernard The first version diff --git a/bsp/imx6sx/cortex-a9/drivers/serial.c b/bsp/imx6sx/cortex-a9/drivers/serial.c index ff6b1ac32e5a1eec69dcb40a494872df7f5b7a5e..a2d4e2338ae4214d7512de22dfe4ce042c2f58b5 100644 --- a/bsp/imx6sx/cortex-a9/drivers/serial.c +++ b/bsp/imx6sx/cortex-a9/drivers/serial.c @@ -1,27 +1,7 @@ /* - * serial.c UART driver - * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2013-03-30 Bernard the first verion diff --git a/bsp/imx6sx/cortex-a9/drivers/serial.h b/bsp/imx6sx/cortex-a9/drivers/serial.h index 52e6f07ea399abdcc21a3d21b334db69fe77dddc..00d464bde06b01dc3c04c7f68d920d6b01e83bd9 100644 --- a/bsp/imx6sx/cortex-a9/drivers/serial.h +++ b/bsp/imx6sx/cortex-a9/drivers/serial.h @@ -1,27 +1,7 @@ /* - * UART driver - * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2013-03-30 Bernard the first verion diff --git a/bsp/imx6ul/applications/application.c b/bsp/imx6ul/applications/application.c index d9580cda2330e4672f55051bbcd8eef42802d541..98fcbfc8832d9e4cc3b5305adc688aa943548c15 100644 --- a/bsp/imx6ul/applications/application.c +++ b/bsp/imx6ul/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development 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 diff --git a/bsp/imx6ul/applications/startup.c b/bsp/imx6ul/applications/startup.c index be041e0c0fb3e32aa1286f3f9d44586df824da0e..4c1f83619e61328adf7cfe1b250a09bdcc1a96ae 100644 --- a/bsp/imx6ul/applications/startup.c +++ b/bsp/imx6ul/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/bsp/imx6ul/drivers/board.c b/bsp/imx6ul/drivers/board.c index 75df0356300aa5bacf8faa2d8f60e48667466f54..e53e2405b67b71f5272f7579e4e6d09e6cf3f66c 100644 --- a/bsp/imx6ul/drivers/board.c +++ b/bsp/imx6ul/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development 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 diff --git a/bsp/imx6ul/drivers/board.h b/bsp/imx6ul/drivers/board.h index b063e498790f5c9e540e889c51b729715c8fbf78..3e98e302c26ab31220f4033b142aa968bfe86220 100644 --- a/bsp/imx6ul/drivers/board.h +++ b/bsp/imx6ul/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development 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 diff --git a/bsp/imx6ul/drivers/serial.c b/bsp/imx6ul/drivers/serial.c index dcb4e16e12d4537a41a334f6e3f7994c6535d857..0f6943cfbd6e58423b194c6ad61f81644d1f4250 100644 --- a/bsp/imx6ul/drivers/serial.c +++ b/bsp/imx6ul/drivers/serial.c @@ -1,27 +1,7 @@ /* - * serial.c UART driver - * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2013-03-30 Bernard the first verion diff --git a/bsp/imx6ul/drivers/serial.h b/bsp/imx6ul/drivers/serial.h index 52e6f07ea399abdcc21a3d21b334db69fe77dddc..00d464bde06b01dc3c04c7f68d920d6b01e83bd9 100644 --- a/bsp/imx6ul/drivers/serial.h +++ b/bsp/imx6ul/drivers/serial.h @@ -1,27 +1,7 @@ /* - * UART driver - * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2013-03-30 Bernard the first verion diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_cache.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_cache.c index 5cc68c50dc5bc01fa58b8247d5d933494932a167..4f88e769c4f96fe3add5168d396a57611986a705 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_cache.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_cache.c @@ -1,11 +1,7 @@ /* - * File : drv_cache.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.c index fe1924fed4bd8b3af2f49f1298d382c934b75b3e..8d5d657f18cb8d04e088754a46901858ac3d5c6c 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include #include diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.h index 6ee6c354e9c3f3f3da42a2b19c2f894994ba1138..4fd3869e5366657458f4cc81f7a6bd6baa18d52f 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_codec.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __DRV_CODEC_H__ #define __DRV_CODEC_H__ @@ -58,7 +66,6 @@ #define ADC_OVERRUN_IRQ_EN 1 #define ADC_FIFO_FLUSH 0 - /*DAC_MIXER_CTRL: 0x20*/ #define DAC_AG_R_EN 31 /* dac right enable bit */ #define DAC_AG_L_EN 30 /* dac left enable bit */ @@ -154,8 +161,6 @@ #define ADDA_PR_RDAT 0 - -/* 时钟配置相关寄存器 */ #define R6_REG_CCU_BASE 0x01c20000 #define R6_REG_PLL_AUDIO_CTRL (R6_REG_CCU_BASE + 0x008) #define R6_REG_BUS_CLK_GATING_0 (R6_REG_CCU_BASE + 0x060) @@ -166,7 +171,6 @@ #define R6_REG_BUS_SOFT_RST_1 (R6_REG_CCU_BASE + 0x02C4) #define R6_REG_BUS_SOFT_RST_2 (R6_REG_CCU_BASE + 0x02D0) -/* GPIO配置相关寄存器 */ #define R6_REG_PIO_BASE 0x01c20800 #define R6_REG_PD_CFG0 (R6_REG_PIO_BASE + (3 * 0x24 + 0X00)) #define R6_REG_PD_CFG1 (R6_REG_PIO_BASE + (3 * 0x24 + 0X04)) @@ -178,8 +182,6 @@ #define R6_REG_PD_PUL0 (R6_REG_PIO_BASE + (3 * 0x24 + 0X1c)) #define R6_REG_PD_PUL1 (R6_REG_PIO_BASE + (3 * 0x24 + 0X20)) - -/* AUDIO配置相关寄存器 */ #define R6_REG_AC_BASE 0x01c23c00 #define R6_REG_AC_DAC_DPC (R6_REG_AC_BASE + 0x00) #define R6_REG_AC_DAC_FIFOC (R6_REG_AC_BASE + 0x04) @@ -192,7 +194,6 @@ #define R6_REG_ADC_MIXER_CTRL (R6_REG_AC_BASE + 0x24) #define R6_REG_AC_DAC_CNT (R6_REG_AC_BASE + 0x40) -/* DMA配置相关寄存器 */ #define R6_REG_NDMA_0_BASE (0x01c02000 + 0x100 + 0 * 0x20) #define R6_REG_DMA_INT_CTRL (0x01c02000 + 0x00) @@ -202,8 +203,6 @@ #define REG_NDMA_SRC_ADR (0x4) #define REG_NDMA_DES_ADR (0x8) #define REG_NDMA_BYTE_CNT (0xc) -// #define REG_NDMA_PAR (0x300 + 0x1c) - #define NDMA_CFG_SRC_DRQ_IR_RX (0x00 << 0) #define NDMA_CFG_SRC_DRQ_NONE (0x01 << 0) diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth.c index 6ea1e16d6e574b3840b09a3d1b02270632d82270..6ef0af44bc4832208702b6da725ebd15ab50ae6c 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth_fire.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth_fire.c index 673f0061b8f343a650e387794938cdd10fa389ba..a7445c02c0104d951fb0799ca6318a4b71ea667e 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth_fire.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth_fire.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_ft5406.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_ft5406.c index df81f2e52ad6d9f6985facc97a48636d0db0e0e3..ab5a8baa392841554a650894a93d0775e2e052c0 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_ft5406.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_ft5406.c @@ -1,21 +1,7 @@ /* - * File : drv_ft5406.c - * FT5406 touch driver - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.c index 41ef5d4b5bcd3377dc8be0856ab5b29b3e17aa5f..b7e5412c2c5777b01a3cd98ec14bbed085b5fb85 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.c @@ -1,22 +1,8 @@ /* -* File : drv_hwtimer.c -* This file is part of RT-Thread RTOS -* COPYRIGHT (C) 2017, 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. -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2018-04-17 WangBing the first version. diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.h index b37d586c9681fccbba6efe9f3981cc68a3e868ff..6e157c2332fcba1580c59d16bd27267521de8a62 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_hwtimer.h @@ -1,22 +1,8 @@ /* -* File : drv_hwtimer.h -* This file is part of RT-Thread RTOS -* COPYRIGHT (C) 2017, 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. -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2018-04-17 WangBing the first version. diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.c index edd65cb1acc4711f59a920ba172f9d1beaf9f862..3a428b0644a0cf70ef3b589d76b6b45fbff66f56 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.c @@ -1,20 +1,7 @@ /* - * File : drv_i2c.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.h index 4743225c3764edcd98d417182087d57bfedb394b..53e77e2ce795c96b5b2ff64ec0393a358ce93237 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_i2c.h @@ -1,11 +1,7 @@ /* - * File : drv_i2c.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.c index 911b8d0786acf5eb061eb64741b2d9bfb9e81618..209fc7787ab5268032788e8413b0b0d3cb6a08b1 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.c @@ -1,11 +1,7 @@ /* - * File : drv_lcd.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.h index cdde135c78aca2cd7b6a799873c5bf3d85a93ca3..a465909935f1b9ee06d4e764e594acc692d5b721 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_lcd.h @@ -1,11 +1,7 @@ /* - * File : drv_lcd2.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.c index 165b75a5622ba35efe6e43c1d47510fe5b39a3ba..398013ea6a33b7aa1168305eae7fb8b16c5ab99a 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.c @@ -1,11 +1,7 @@ /* - * File : drv_pcf8574.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.h index 7c8274f2d0d8585fe7dc2f291890fc5fca6b0bad..266ce0239af8c7e62b52c07edcd78e6fe77a3c91 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.h @@ -1,11 +1,7 @@ /* - * File : drv_pcf8574.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.c index 3acc6ae60905ef03e3aad990e55638a24eec7588..f1a63fd1201d8db6ad5fc183749db823aa88a4a3 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.c @@ -1,11 +1,7 @@ /* - * File : drv_pin.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.h index 6c0574ec0fba328d3c2bde5750e8513f6a7a5099..55e09ebc10df2f1df09dcb74b5838179534afa8e 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pin.h @@ -1,11 +1,7 @@ /* - * File : drv_pin.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.c index 0c1dea21ebe9c01f71466ca4053c71bb8eaea375..06cb2e9094affb58815620861d553db77922728b 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.c @@ -1,11 +1,7 @@ /* - * File : drv_rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.h index e7cf53902c0e4be06a408293da398a969eaf2bc8..c31cd80687669193cd4499affc2e690d5caecdad 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_rtc.h @@ -1,11 +1,7 @@ /* - * File : drv_rtc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdio.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdio.c index 732077df7c7c961bd2130fab9bd9c628309c53e4..27f58643f5799002b6b95758477323c9642847e0 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdio.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdio.c @@ -1,21 +1,7 @@ /* - * File : syscall_write.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdram.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdram.c index 2560caab5e22e8eae9ee8badc22c5921e1f5ad95..f54b448779c582bedaedea06c397b99d5e849105 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdram.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_sdram.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.c index 4460fafe41929f7beed3867365bf87bd7a69b5dd..eb7e39dcf2c5953d13776d0c5c3d75848b20d0bb 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.c @@ -1,11 +1,7 @@ /* - * File : drv_spi_bus.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.h index b5016a4ebfe2ca4b40a504cff487cf9cd96a428b..f9068893c3ac538cc7d29c3769df34a8db2c2a01 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_bus.h @@ -1,11 +1,7 @@ /* - * File : drv_spi_bus.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.c index 98927396b8c4c4e8cafba42e3fea56c5ce6c0574..65d5bb3e22e1d6d5f315ef117b0cd02d9ea523f2 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.c @@ -1,11 +1,7 @@ /* - * File : drv_spi_flash.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.h index ede2c53111b1143190503c63b13a131a55bed75c..3cf2837063c43aa7520b168f12586e548de2ccfd 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_spi_flash.h @@ -1,11 +1,7 @@ /* - * File : drv_spi_flash.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.c index ca076ab19ab98119dd8973bc4f2c8f7f2b031e52..c56c33d0af4c6c02034c0cdc049ef0db4982aa46 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.c @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 @@ -30,11 +26,8 @@ !defined(RT_USING_UART5) && !defined(RT_USING_UART6) && \ !defined(RT_USING_UART7) && !defined(RT_USING_UART8) #error "Please define at least one UARTx" - #endif - - #include /* imxrt uart driver */ diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.h b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.h index ca9fb423a15c2ad504d1c6452eaa88102397e6d0..edfb1084f04fbb6d94627b0432ff319448ef7cce 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.h +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_uart.h @@ -1,11 +1,7 @@ /* - * File : drv_uart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 @@ -15,8 +11,6 @@ #ifndef __DRV_UART_H__ #define __DRV_UART_H__ -#include -#include - +int imxrt_hw_uart_init(void); #endif diff --git a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_usbd.c b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_usbd.c index 29e99131410ff12b600e04fc26b1e06055708272..3482130ed2a54dc404f0255dea876c65469b7427 100644 --- a/bsp/imxrt/Libraries/imxrt1050/drivers/drv_usbd.c +++ b/bsp/imxrt/Libraries/imxrt1050/drivers/drv_usbd.c @@ -1,11 +1,7 @@ /* - * File : drv_usbc.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 diff --git a/bsp/imxrt/imxrt1050-ArchMix/applications/lcd_init.c b/bsp/imxrt/imxrt1050-ArchMix/applications/lcd_init.c index be209338b3b71679c7f2beb215ffbacd64625fc5..1fdebfd260cd05d1430b065b6ad3c03fb8839cd8 100644 --- a/bsp/imxrt/imxrt1050-ArchMix/applications/lcd_init.c +++ b/bsp/imxrt/imxrt1050-ArchMix/applications/lcd_init.c @@ -1,21 +1,7 @@ /* - * File : lcd_init.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imxrt/imxrt1050-ArchMix/applications/main.c b/bsp/imxrt/imxrt1050-ArchMix/applications/main.c index 9f6060487a4af907d5d675edeab81b3cef6460f0..559c07bd09e887ad5fcac5b2fc0c65c14deb3a22 100644 --- a/bsp/imxrt/imxrt1050-ArchMix/applications/main.c +++ b/bsp/imxrt/imxrt1050-ArchMix/applications/main.c @@ -1,21 +1,7 @@ /* - * File : clock.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imxrt/imxrt1050-ArchMix/drivers/board.c b/bsp/imxrt/imxrt1050-ArchMix/drivers/board.c index a604df6d4c3e48903b1ffdfe319c53e3672ca00d..68b20e2546f6b53e925c16bf16e516438a6f8175 100644 --- a/bsp/imxrt/imxrt1050-ArchMix/drivers/board.c +++ b/bsp/imxrt/imxrt1050-ArchMix/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/imxrt/imxrt1050-ArchMix/drivers/board.h b/bsp/imxrt/imxrt1050-ArchMix/drivers/board.h index 80a61f1a3af153674fd242494cdd313feaec51e6..c02e150258db7af895754b3aa79412e612d60aad 100644 --- a/bsp/imxrt/imxrt1050-ArchMix/drivers/board.h +++ b/bsp/imxrt/imxrt1050-ArchMix/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/imxrt/imxrt1050-evk/applications/lcd_init.c b/bsp/imxrt/imxrt1050-evk/applications/lcd_init.c index be209338b3b71679c7f2beb215ffbacd64625fc5..1fdebfd260cd05d1430b065b6ad3c03fb8839cd8 100644 --- a/bsp/imxrt/imxrt1050-evk/applications/lcd_init.c +++ b/bsp/imxrt/imxrt1050-evk/applications/lcd_init.c @@ -1,21 +1,7 @@ /* - * File : lcd_init.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imxrt/imxrt1050-evk/applications/main.c b/bsp/imxrt/imxrt1050-evk/applications/main.c index 9f6060487a4af907d5d675edeab81b3cef6460f0..559c07bd09e887ad5fcac5b2fc0c65c14deb3a22 100644 --- a/bsp/imxrt/imxrt1050-evk/applications/main.c +++ b/bsp/imxrt/imxrt1050-evk/applications/main.c @@ -1,21 +1,7 @@ /* - * File : clock.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/imxrt/imxrt1050-evk/drivers/board.c b/bsp/imxrt/imxrt1050-evk/drivers/board.c index a604df6d4c3e48903b1ffdfe319c53e3672ca00d..68b20e2546f6b53e925c16bf16e516438a6f8175 100644 --- a/bsp/imxrt/imxrt1050-evk/drivers/board.c +++ b/bsp/imxrt/imxrt1050-evk/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/imxrt/imxrt1050-evk/drivers/board.h b/bsp/imxrt/imxrt1050-evk/drivers/board.h index 80a61f1a3af153674fd242494cdd313feaec51e6..c02e150258db7af895754b3aa79412e612d60aad 100644 --- a/bsp/imxrt/imxrt1050-evk/drivers/board.h +++ b/bsp/imxrt/imxrt1050-evk/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc176x/applications/application.c b/bsp/lpc176x/applications/application.c index acc6b300eafc54df82b5212b0544b84bfa9e7d7f..9facb30aa81823674e1bcb4fed7889f43fac3e09 100644 --- a/bsp/lpc176x/applications/application.c +++ b/bsp/lpc176x/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc176x/applications/platform.c b/bsp/lpc176x/applications/platform.c index 05e3b0d5e0321152f81e586b95a6ee0295ec0802..4bab858aa41abb0487cf1baa327a5300d950ca2b 100644 --- a/bsp/lpc176x/applications/platform.c +++ b/bsp/lpc176x/applications/platform.c @@ -1,11 +1,7 @@ /* - * File : platform.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development 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 diff --git a/bsp/lpc176x/applications/platform.h b/bsp/lpc176x/applications/platform.h index 6b5ebf3f88cce4dd5edba78495fade11dc70e7d2..e52e4066c294a804f07447f4b99d22053f057f11 100644 --- a/bsp/lpc176x/applications/platform.h +++ b/bsp/lpc176x/applications/platform.h @@ -1,11 +1,7 @@ /* - * File : platform.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development 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 diff --git a/bsp/lpc176x/applications/startup.c b/bsp/lpc176x/applications/startup.c index abc08f1852fb680f3c540e3ad888fbfbe5b0d927..63d5b0f9a515f387cfe1052897b62740d6ec36a2 100644 --- a/bsp/lpc176x/applications/startup.c +++ b/bsp/lpc176x/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc176x/drivers/board.c b/bsp/lpc176x/drivers/board.c index a66194b64c9ae8814d39cbbcf51d1b2ef28b1f2e..c636462a2eacc157b6d491c556d9aafa38d79111 100644 --- a/bsp/lpc176x/drivers/board.c +++ b/bsp/lpc176x/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/lpc176x/drivers/board.h b/bsp/lpc176x/drivers/board.h index 389e36e6c3bfe065ec3d8be5434bc5d3d5ccbb7f..951a2c4cda4513f95217684e44a0a6391dc32a82 100644 --- a/bsp/lpc176x/drivers/board.h +++ b/bsp/lpc176x/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc176x/drivers/emac.c b/bsp/lpc176x/drivers/emac.c index fd2df23ec0c8777f04616b7d807f31cb74ef0362..27fc55397a1ce73874960a5e0ec8bd4ea0af0788 100644 --- a/bsp/lpc176x/drivers/emac.c +++ b/bsp/lpc176x/drivers/emac.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "emac.h" #include "lwipopts.h" diff --git a/bsp/lpc176x/drivers/led.h b/bsp/lpc176x/drivers/led.h index 928c91e6e8dca0c55752eb346832542865ccf58e..658ed16d1c15b7ea803810b70397514deccead5c 100644 --- a/bsp/lpc176x/drivers/led.h +++ b/bsp/lpc176x/drivers/led.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __LED_H__ #define __LED_H__ diff --git a/bsp/lpc176x/drivers/sd.c b/bsp/lpc176x/drivers/sd.c index 6c6c4ef4b66e3d5db3e8b09bf4492851bf79c742..27f3707da905e0e204ec144a49b86c5c09391d90 100644 --- a/bsp/lpc176x/drivers/sd.c +++ b/bsp/lpc176x/drivers/sd.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include diff --git a/bsp/lpc176x/drivers/uart.c b/bsp/lpc176x/drivers/uart.c index 29f11ebecd62f53e0b20cd1ed6b92be4c192a8f9..231eccb10a13fc12f07c8b2d5346d18733c9b64a 100644 --- a/bsp/lpc176x/drivers/uart.c +++ b/bsp/lpc176x/drivers/uart.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/lpc178x/applications/application.c b/bsp/lpc178x/applications/application.c index 29352f857b8bf54446586077264eb7fafb7b7283..9780d421549f1b8710f858e4e04a44f55dd032d3 100644 --- a/bsp/lpc178x/applications/application.c +++ b/bsp/lpc178x/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc178x/applications/startup.c b/bsp/lpc178x/applications/startup.c index 4da4991523405ecb5ed3fa2157a350f75bd088a9..07698574b50bfeeb4039b60aeff3d85fc80fb616 100644 --- a/bsp/lpc178x/applications/startup.c +++ b/bsp/lpc178x/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc178x/drivers/board.c b/bsp/lpc178x/drivers/board.c index 42cc85912ae4a0f5b18adb7827fe7d76ef00b5f2..df06d7f2f812d6d0818be4b0e618a3f1a20f9237 100644 --- a/bsp/lpc178x/drivers/board.c +++ b/bsp/lpc178x/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/lpc178x/drivers/board.h b/bsp/lpc178x/drivers/board.h index 1cd02ccfb0e0e7fc5a64f688cdbfd05a484b1afe..1a6d82e4b7d8d19d0d15c0b0352894d606a70736 100644 --- a/bsp/lpc178x/drivers/board.h +++ b/bsp/lpc178x/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc178x/drivers/emac.c b/bsp/lpc178x/drivers/emac.c index 283b00243cb19d9acf3a0707d2a14c49e2c72cb5..a16dc4977059923cc226b2e706b84a9a116db04a 100644 --- a/bsp/lpc178x/drivers/emac.c +++ b/bsp/lpc178x/drivers/emac.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include "LPC177x_8x.h" #include "lpc177x_8x_pinsel.h" #include "emac.h" diff --git a/bsp/lpc178x/drivers/lpc17xx_lcd.c b/bsp/lpc178x/drivers/lpc17xx_lcd.c index 09208e893ed7eb0abfd155ddecd1eec1381adb5f..cc488dfebb432d4712c396fd957537eebd2a8a87 100644 --- a/bsp/lpc178x/drivers/lpc17xx_lcd.c +++ b/bsp/lpc178x/drivers/lpc17xx_lcd.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "LPC177x_8x.h" diff --git a/bsp/lpc178x/drivers/sdram.c b/bsp/lpc178x/drivers/sdram.c index 59a04e53df675dfb2b9c86f2c02f04f4f2ff12d2..c2fcbcc9abef31e8e8a41a5b1a6ffa356068e46e 100644 --- a/bsp/lpc178x/drivers/sdram.c +++ b/bsp/lpc178x/drivers/sdram.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include diff --git a/bsp/lpc178x/drivers/uart.c b/bsp/lpc178x/drivers/uart.c index cfc97f4430235038fdde6b2683a3d8bb899eafd0..0d92eb1fcaf5826ceb003378361a5377aec4fee1 100644 --- a/bsp/lpc178x/drivers/uart.c +++ b/bsp/lpc178x/drivers/uart.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/lpc2148/applications/application.c b/bsp/lpc2148/applications/application.c index 5ceb37183794db1a010317b136de7f36e089d66f..fd07f22f0546df8cbfcc7641c0779a568efd0596 100644 --- a/bsp/lpc2148/applications/application.c +++ b/bsp/lpc2148/applications/application.c @@ -1,11 +1,7 @@ /* - * File : app.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/lpc2148/applications/startup.c b/bsp/lpc2148/applications/startup.c index 4a2db19c95a512d0c8dc9a1855a8b744c194ae52..5b699a8613729e8f1cab5d0c5d909d74aa2d81b9 100644 --- a/bsp/lpc2148/applications/startup.c +++ b/bsp/lpc2148/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/bsp/lpc2148/drivers/board.c b/bsp/lpc2148/drivers/board.c index 10f25e079a86aa28ec768bb555a64b75b54a8208..96a4aa62f44d68f496a4e0539ff98b169666c583 100644 --- a/bsp/lpc2148/drivers/board.c +++ b/bsp/lpc2148/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc2148/drivers/board.h b/bsp/lpc2148/drivers/board.h index 7c2dcee6da355db1dd2ba1ee5237fbe8a5e8555b..346f10182fe63dba15aeea0f3910230df230a567 100644 --- a/bsp/lpc2148/drivers/board.h +++ b/bsp/lpc2148/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc2148/drivers/dm9000.c b/bsp/lpc2148/drivers/dm9000.c index 478de46df3901c5a6fa90ba8aa14fc5856a5d666..169be59f124fd62ff084598c6312bea2bba84724 100644 --- a/bsp/lpc2148/drivers/dm9000.c +++ b/bsp/lpc2148/drivers/dm9000.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "dm9000.h" diff --git a/bsp/lpc2148/drivers/sd.c b/bsp/lpc2148/drivers/sd.c index 95be32631b99023805a8bf5112e37b140788a912..d7b6769621a335967bad1acc3a60bdf4e44188e5 100644 --- a/bsp/lpc2148/drivers/sd.c +++ b/bsp/lpc2148/drivers/sd.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include #include diff --git a/bsp/lpc2148/drivers/serial.c b/bsp/lpc2148/drivers/serial.c index 5ad31af34aa17333902286366109cd4fb9505ab8..0c78ecc0261a77c62828f10f0c9841fd0afe021a 100644 --- a/bsp/lpc2148/drivers/serial.c +++ b/bsp/lpc2148/drivers/serial.c @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc2478/applications/application.c b/bsp/lpc2478/applications/application.c index ea8d1d68a1f1a8771bbb5ac1243dc37207fe6f92..64dbf3c80733e3b3a47b88f73da7d4866f75738a 100644 --- a/bsp/lpc2478/applications/application.c +++ b/bsp/lpc2478/applications/application.c @@ -1,11 +1,7 @@ /* - * File : app.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc2478/applications/startup.c b/bsp/lpc2478/applications/startup.c index c262e57149e01a1812827f5eaf74456129bbb412..270312f7ae1570af41a7bc922ddf40a2cb22052a 100644 --- a/bsp/lpc2478/applications/startup.c +++ b/bsp/lpc2478/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/bsp/lpc2478/drivers/board.c b/bsp/lpc2478/drivers/board.c index ac173050623c4da2571303b5d2a3f581e4ea56d6..65ff918711aefd93e51bcc7774518848cd0ef400 100644 --- a/bsp/lpc2478/drivers/board.c +++ b/bsp/lpc2478/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc2478/drivers/board.h b/bsp/lpc2478/drivers/board.h index 6271d451404e4c8b7218d57eceb2eda73d27bdcd..6386c19ba884233938216090b9813d713a89e6f2 100644 --- a/bsp/lpc2478/drivers/board.h +++ b/bsp/lpc2478/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc2478/drivers/serial.c b/bsp/lpc2478/drivers/serial.c index 37c0d0c2ce6ee2f2923d67973368523573c3033e..dff575c7cc3683f69b5014e68866e8d022f71686 100644 --- a/bsp/lpc2478/drivers/serial.c +++ b/bsp/lpc2478/drivers/serial.c @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc408x/applications/application.c b/bsp/lpc408x/applications/application.c index d8045587a610acd8634294878fd4408df65ab030..29f7c36bba2e77dd27af3be5878b06c7a4821485 100644 --- a/bsp/lpc408x/applications/application.c +++ b/bsp/lpc408x/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/bsp/lpc408x/applications/board.c b/bsp/lpc408x/applications/board.c index a2bb22bfe4e40230aa6a9fcae781ea8506aa346f..2deb02d930c26a0caa5cfcf84d4cc7cdb6f97b2e 100644 --- a/bsp/lpc408x/applications/board.c +++ b/bsp/lpc408x/applications/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013 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 diff --git a/bsp/lpc408x/applications/board.h b/bsp/lpc408x/applications/board.h index 392dcf203124498bb983ee7025f37b92b9bee729..654a5bea9e002c8f90838f4b5b139701c9ec5290 100644 --- a/bsp/lpc408x/applications/board.h +++ b/bsp/lpc408x/applications/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc408x/applications/canapp.c b/bsp/lpc408x/applications/canapp.c index 59250380f84a7fe23d5ed0fb32830792eba941b3..96a0ceeb3972ab55f0c8ba85b7cc13583d623970 100644 --- a/bsp/lpc408x/applications/canapp.c +++ b/bsp/lpc408x/applications/canapp.c @@ -1,11 +1,7 @@ /* - * File : canapp.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/lpc408x/applications/sram.c b/bsp/lpc408x/applications/sram.c index e7ac0fe1585c073e79591d0fd879002620b4b968..633d3eb6d4151956718a0815c91a1ed4ebc7517c 100644 --- a/bsp/lpc408x/applications/sram.c +++ b/bsp/lpc408x/applications/sram.c @@ -1,12 +1,8 @@ /* -* File : sram.c -* This file is part of RT-Thread RTOS -* COPYRIGHT (C) 2009-2013 RT-Thread Develop 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 -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2013-05-19 Bernard The first version for LPC40xx diff --git a/bsp/lpc408x/applications/sram.h b/bsp/lpc408x/applications/sram.h index 902337aafc6abec044dac048961805291e47b242..3aee2aab0b7d3588234de427a8c718dd63d1c780 100644 --- a/bsp/lpc408x/applications/sram.h +++ b/bsp/lpc408x/applications/sram.h @@ -1,11 +1,7 @@ /* - * File : sram.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc408x/applications/startup.c b/bsp/lpc408x/applications/startup.c index bcab985a621897d92432c2314f2bf7ba4902b76f..cb99fc16ff523f904e1a757d364e4d226a44a65a 100644 --- a/bsp/lpc408x/applications/startup.c +++ b/bsp/lpc408x/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc408x/drivers/drv_emac.c b/bsp/lpc408x/drivers/drv_emac.c index 9f1e9920cb519138767705d19a64c973e236a8c3..7e38830f2cd451817bb39c401ff10cc60e6ebcad 100644 --- a/bsp/lpc408x/drivers/drv_emac.c +++ b/bsp/lpc408x/drivers/drv_emac.c @@ -1,11 +1,7 @@ /* - * File : drv_emac.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc408x/drivers/drv_emac.h b/bsp/lpc408x/drivers/drv_emac.h index abadc185209fed29a12abad9a41fec826edfcf01..efaa0ac8e37b986071b296125b710abfb8bf6587 100644 --- a/bsp/lpc408x/drivers/drv_emac.h +++ b/bsp/lpc408x/drivers/drv_emac.h @@ -1,11 +1,7 @@ /* - * File : drv_emac.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc408x/drivers/drv_hwtimer.c b/bsp/lpc408x/drivers/drv_hwtimer.c index 163c91fcd1bb26c0a41d2cd21270913dbfe10e2e..7946a7058ac91c349967ff384d49ee72308d5be7 100644 --- a/bsp/lpc408x/drivers/drv_hwtimer.c +++ b/bsp/lpc408x/drivers/drv_hwtimer.c @@ -1,11 +1,7 @@ /* - * File : drv_hwtimer.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/lpc408x/drivers/drv_led.c b/bsp/lpc408x/drivers/drv_led.c index 2103e934fb81516beb37298ccab99858d3352809..dcbe76a7b8327e5139b3d8fb0dede838b051a5e8 100644 --- a/bsp/lpc408x/drivers/drv_led.c +++ b/bsp/lpc408x/drivers/drv_led.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "board.h" diff --git a/bsp/lpc408x/drivers/drv_lpccan.c b/bsp/lpc408x/drivers/drv_lpccan.c index 037a4cf2ae3170ff07c6f6bfde3b2aa9752d59ad..85d6511284e0dd936d1436a97754953de03dec2f 100644 --- a/bsp/lpc408x/drivers/drv_lpccan.c +++ b/bsp/lpc408x/drivers/drv_lpccan.c @@ -1,11 +1,7 @@ /* - * File : drv_lpccan.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/lpc408x/drivers/drv_lpccan.h b/bsp/lpc408x/drivers/drv_lpccan.h index 1d81912dc928a8fd41dbc47e1427609de8d96cd9..9dda61a1f6d71e2f70dd5be6e4c307c3bb945d1d 100644 --- a/bsp/lpc408x/drivers/drv_lpccan.h +++ b/bsp/lpc408x/drivers/drv_lpccan.h @@ -1,11 +1,7 @@ /* - * File : drv_lpccan.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/lpc408x/drivers/drv_sdram.c b/bsp/lpc408x/drivers/drv_sdram.c index b648ed079cc99b1e20b157a5e2a82c24115b7071..515659f24408de880c69e18c5af74f4322f4cf9c 100644 --- a/bsp/lpc408x/drivers/drv_sdram.c +++ b/bsp/lpc408x/drivers/drv_sdram.c @@ -1,11 +1,7 @@ /* - * File : drv_sdram.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc408x/drivers/drv_sdram.h b/bsp/lpc408x/drivers/drv_sdram.h index a689f1ed98675dce05a3eefa9ea9b27133e63099..21c0791f32204059da5a214c3473fe362aea8f78 100644 --- a/bsp/lpc408x/drivers/drv_sdram.h +++ b/bsp/lpc408x/drivers/drv_sdram.h @@ -1,11 +1,7 @@ /* - * File : drv_sdram.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc408x/drivers/drv_uart.c b/bsp/lpc408x/drivers/drv_uart.c index ef50f3a4d86f67bed3285e3210f70d633ae18c2d..8360ca17c69e8c70e19c2b484b617db365a4273a 100644 --- a/bsp/lpc408x/drivers/drv_uart.c +++ b/bsp/lpc408x/drivers/drv_uart.c @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc408x/drivers/drv_uart.h b/bsp/lpc408x/drivers/drv_uart.h index d93995b96e312ced7564591735df0b283a6a5529..aee8a379ed327550257c6c848f6d1b7bcc61f3e9 100644 --- a/bsp/lpc408x/drivers/drv_uart.h +++ b/bsp/lpc408x/drivers/drv_uart.h @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2014 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 diff --git a/bsp/lpc43xx/M0/applications/application.c b/bsp/lpc43xx/M0/applications/application.c index 8e861873c8099c3db217c2451b7d3594f4d208ed..397f93477744ad2eb80060637db039c24d10585d 100644 --- a/bsp/lpc43xx/M0/applications/application.c +++ b/bsp/lpc43xx/M0/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/bsp/lpc43xx/M0/applications/board.c b/bsp/lpc43xx/M0/applications/board.c index 000bd52f4019c76b779fcf9afe76f0bac30cd6f9..cd1cf62df03a9be275b0c9d4e4011da4d314cff0 100644 --- a/bsp/lpc43xx/M0/applications/board.c +++ b/bsp/lpc43xx/M0/applications/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014 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 diff --git a/bsp/lpc43xx/M0/applications/board.h b/bsp/lpc43xx/M0/applications/board.h index ee300eb73978785b5f8c5acbaca2d93324da9753..24dfee67d4b6e3b95937616ac787c8dd80acb925 100644 --- a/bsp/lpc43xx/M0/applications/board.h +++ b/bsp/lpc43xx/M0/applications/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc43xx/M0/applications/startup.c b/bsp/lpc43xx/M0/applications/startup.c index f6cf534b03d9110f7a362fc0ab94a11977d5062d..df9cb7a211da36a25dafa07384602924f7ce8321 100644 --- a/bsp/lpc43xx/M0/applications/startup.c +++ b/bsp/lpc43xx/M0/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc43xx/M0/applications/vbus_drv.c b/bsp/lpc43xx/M0/applications/vbus_drv.c index 24d7f19b580151c5e90f6005ed19b27fc25e6d11..88d5321b306a537963a20bdc18a13574e832d0f5 100644 --- a/bsp/lpc43xx/M0/applications/vbus_drv.c +++ b/bsp/lpc43xx/M0/applications/vbus_drv.c @@ -1,27 +1,7 @@ /* - * VMM Bus Driver - * - * COPYRIGHT (C) 2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-01-07 Grissiom add comment diff --git a/bsp/lpc43xx/M0/applications/vbus_hw.h b/bsp/lpc43xx/M0/applications/vbus_hw.h index b88586a112f08933633b8cb0bd28125c189f7aa4..cceee706b414638ad0fb60e66607586acc909c3d 100644 --- a/bsp/lpc43xx/M0/applications/vbus_hw.h +++ b/bsp/lpc43xx/M0/applications/vbus_hw.h @@ -1,26 +1,7 @@ /* - * VMM Bus - * - * COPYRIGHT (C) 2015, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-01-07 Grissiom init commit diff --git a/bsp/lpc43xx/M4/applications/application.c b/bsp/lpc43xx/M4/applications/application.c index 6575991895c6d73085541b402683bbfe9d3b3848..b08a1584002ae4840af5e71d5561a24c244a47e7 100644 --- a/bsp/lpc43xx/M4/applications/application.c +++ b/bsp/lpc43xx/M4/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/bsp/lpc43xx/M4/applications/board.c b/bsp/lpc43xx/M4/applications/board.c index dc0859f666f7c1462356aad02a70ac91a118726c..c6bfa10574e1f8a24bee9f847f35308f9f08180a 100644 --- a/bsp/lpc43xx/M4/applications/board.c +++ b/bsp/lpc43xx/M4/applications/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014 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 diff --git a/bsp/lpc43xx/M4/applications/board.h b/bsp/lpc43xx/M4/applications/board.h index 299404a368513bbf9a7aaed4a506e016bdd5a5e3..0450724e5375ff178bfa986106608d7a08501d3f 100644 --- a/bsp/lpc43xx/M4/applications/board.h +++ b/bsp/lpc43xx/M4/applications/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc43xx/M4/applications/startup.c b/bsp/lpc43xx/M4/applications/startup.c index f6cf534b03d9110f7a362fc0ab94a11977d5062d..df9cb7a211da36a25dafa07384602924f7ce8321 100644 --- a/bsp/lpc43xx/M4/applications/startup.c +++ b/bsp/lpc43xx/M4/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc43xx/M4/applications/vbus_drv.c b/bsp/lpc43xx/M4/applications/vbus_drv.c index 872de86504d0486dfc627dbe3ad7c0bad3ed1232..bd3ae03adb007b5f8c89e2585c1565e1d4455779 100644 --- a/bsp/lpc43xx/M4/applications/vbus_drv.c +++ b/bsp/lpc43xx/M4/applications/vbus_drv.c @@ -1,27 +1,7 @@ /* - * VMM Bus Driver - * - * COPYRIGHT (C) 2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-01-07 Grissiom add comment diff --git a/bsp/lpc43xx/M4/applications/vbus_hw.h b/bsp/lpc43xx/M4/applications/vbus_hw.h index b88586a112f08933633b8cb0bd28125c189f7aa4..cceee706b414638ad0fb60e66607586acc909c3d 100644 --- a/bsp/lpc43xx/M4/applications/vbus_hw.h +++ b/bsp/lpc43xx/M4/applications/vbus_hw.h @@ -1,26 +1,7 @@ /* - * VMM Bus - * - * COPYRIGHT (C) 2015, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. - * + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * Change Logs: * Date Author Notes * 2015-01-07 Grissiom init commit diff --git a/bsp/lpc43xx/drivers/drv_emac.c b/bsp/lpc43xx/drivers/drv_emac.c index a339bdb361737ec0365cb0ad0d4d0a5253522412..d1f02af768f38ea40603808e14c08453cebd0cbf 100644 --- a/bsp/lpc43xx/drivers/drv_emac.c +++ b/bsp/lpc43xx/drivers/drv_emac.c @@ -1,11 +1,7 @@ /* - * File : drv_emac.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc43xx/drivers/drv_emac.h b/bsp/lpc43xx/drivers/drv_emac.h index abadc185209fed29a12abad9a41fec826edfcf01..efaa0ac8e37b986071b296125b710abfb8bf6587 100644 --- a/bsp/lpc43xx/drivers/drv_emac.h +++ b/bsp/lpc43xx/drivers/drv_emac.h @@ -1,11 +1,7 @@ /* - * File : drv_emac.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc43xx/drivers/drv_led.c b/bsp/lpc43xx/drivers/drv_led.c index d67344e54ec5265ec910cf66139e789ae5c69228..73128c243c5660d7cc4e6f3e0f59c1a5d5a175a0 100644 --- a/bsp/lpc43xx/drivers/drv_led.c +++ b/bsp/lpc43xx/drivers/drv_led.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "board.h" #include "drv_led.h" diff --git a/bsp/lpc43xx/drivers/drv_uart.c b/bsp/lpc43xx/drivers/drv_uart.c index 70f4a880e1a837e2d1f77a1890d367d7fff72cad..e1b203a35988bce23c3bb67388c4a4e944ba7be3 100644 --- a/bsp/lpc43xx/drivers/drv_uart.c +++ b/bsp/lpc43xx/drivers/drv_uart.c @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc5410x/applications/application.c b/bsp/lpc5410x/applications/application.c index 627e97c860273f3052abb347c14cf22d6e6e2178..bad0922693ebc6239c1852224c1defcdb5467b45 100644 --- a/bsp/lpc5410x/applications/application.c +++ b/bsp/lpc5410x/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/lpc5410x/applications/board.c b/bsp/lpc5410x/applications/board.c index c47e02c0c1f6b0af270b88148ff1dc8e8516a5f1..0fb09e65745eba30f31e8859f7754c7264483b5e 100644 --- a/bsp/lpc5410x/applications/board.c +++ b/bsp/lpc5410x/applications/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/lpc5410x/applications/board.h b/bsp/lpc5410x/applications/board.h index 29c851413623b6e6868c87c47b27297a4bd0bbef..5bbf8bc235cadf037b1350c022d3d98e8bace900 100644 --- a/bsp/lpc5410x/applications/board.h +++ b/bsp/lpc5410x/applications/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc5410x/applications/demo_thread.c b/bsp/lpc5410x/applications/demo_thread.c index f4bcea97738bf310f9bfe1c2e227f5bd69433fcb..6acb8ae0ef7dcd4b4a83931d7ab1535a030a5984 100644 --- a/bsp/lpc5410x/applications/demo_thread.c +++ b/bsp/lpc5410x/applications/demo_thread.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "drv_led.h" #include "drv_uart.h" diff --git a/bsp/lpc5410x/applications/startup.c b/bsp/lpc5410x/applications/startup.c index 4008c3dcdebf6e439f4a6ef04d2d0be036f13870..6589dc6b46a1ee9848aed915bb8957939508a6be 100644 --- a/bsp/lpc5410x/applications/startup.c +++ b/bsp/lpc5410x/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/bsp/lpc5410x/drivers/drv_led.c b/bsp/lpc5410x/drivers/drv_led.c index d2b778a7ddbfb90e2ce23f129e9794efa7d71ef7..8923e3fda4c7c98001efd25e7e973a4a5b3f9e97 100644 --- a/bsp/lpc5410x/drivers/drv_led.c +++ b/bsp/lpc5410x/drivers/drv_led.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "board.h" diff --git a/bsp/lpc5410x/drivers/drv_uart.c b/bsp/lpc5410x/drivers/drv_uart.c index 59f4ef183fe17dbc719ab66fd05f2c26b165483b..d348921740c1b73b93f7f5b624ac2392779b73f7 100644 --- a/bsp/lpc5410x/drivers/drv_uart.c +++ b/bsp/lpc5410x/drivers/drv_uart.c @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2014 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 diff --git a/bsp/lpc54608-LPCXpresso/applications/application.c b/bsp/lpc54608-LPCXpresso/applications/application.c index c282a290e98b50dc11026ce52837ccb9cca16dd4..b85de95df6f928adc160bf7e7615c67156198381 100644 --- a/bsp/lpc54608-LPCXpresso/applications/application.c +++ b/bsp/lpc54608-LPCXpresso/applications/application.c @@ -1,20 +1,7 @@ /* - * File : application.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/applications/mnt.c b/bsp/lpc54608-LPCXpresso/applications/mnt.c index 4f87859b59188b2d795ecb29fee079af462c079c..dd1f862ea5d7aa85d58c0a02cea1b9496d233f6f 100644 --- a/bsp/lpc54608-LPCXpresso/applications/mnt.c +++ b/bsp/lpc54608-LPCXpresso/applications/mnt.c @@ -1,20 +1,7 @@ /* - * File : mnt.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/applications/startup.c b/bsp/lpc54608-LPCXpresso/applications/startup.c index 1015c5ae27c16aaa93cc5baaf3ed3af957df7f00..687cc0f864cd872ba0e47d6431f57883a7d0563c 100644 --- a/bsp/lpc54608-LPCXpresso/applications/startup.c +++ b/bsp/lpc54608-LPCXpresso/applications/startup.c @@ -1,20 +1,7 @@ /* - * File : startup.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/board.c b/bsp/lpc54608-LPCXpresso/drivers/board.c index d2cec9a4fa02636a3f05427af2df3ed3562746bc..51c72ec3f5f4987453ca310fbdf7fb02eed50170 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/board.c +++ b/bsp/lpc54608-LPCXpresso/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/board.h b/bsp/lpc54608-LPCXpresso/drivers/board.h index d733e9e407d3c80437bc362a76f8a097c53ee82a..679f33682f79094ebd6fd28fed5f05b16f9a2ee4 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/board.h +++ b/bsp/lpc54608-LPCXpresso/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.c b/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.c index e587948ca2a8fedd4329aa6a71626dd5fb4c63ab..c6c5d114e4c160658cfa08f568bef1953ff604da 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.c @@ -1,20 +1,7 @@ /* - * File : application.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.h b/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.h index 5f38ae2eb6015c7a4f9a7cbf86c79b5a76a2bf88..ff34c225e788d83fce80019201ffdda7f23d6161 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.h +++ b/bsp/lpc54608-LPCXpresso/drivers/drt_mpu.h @@ -1,20 +1,7 @@ /* - * File : application.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_emac.c b/bsp/lpc54608-LPCXpresso/drivers/drv_emac.c index 1f38471fca3be56f2e07c3879fe8b6e34a382e64..b432aea70ed21f4aa680b794c508a8aaa4468475 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_emac.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_emac.c @@ -1,20 +1,7 @@ /* - * File : drv_emac.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_emac.h b/bsp/lpc54608-LPCXpresso/drivers/drv_emac.h index abadc185209fed29a12abad9a41fec826edfcf01..efaa0ac8e37b986071b296125b710abfb8bf6587 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_emac.h +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_emac.h @@ -1,11 +1,7 @@ /* - * File : drv_emac.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_ft5406.c b/bsp/lpc54608-LPCXpresso/drivers/drv_ft5406.c index 92ab3592bd366dcd4597bf8c3abd5f783184e305..fd46a199c06edba1cbe87f2edb52e9ab05695850 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_ft5406.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_ft5406.c @@ -1,21 +1,7 @@ /* - * File : drv_ft5406.c - * FT5406 touch driver - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_i2c.c b/bsp/lpc54608-LPCXpresso/drivers/drv_i2c.c index 27013feaf6ea87337b0b94a119bab45dfa8de5ca..2d9a3c4d17ff401649c0a6ed91c8147e532685cf 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_i2c.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_i2c.c @@ -1,20 +1,7 @@ /* - * File : drv_i2c.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_lcd.c b/bsp/lpc54608-LPCXpresso/drivers/drv_lcd.c index 4b6b805f6ce2768091bac8985377f0cb31b92a90..c1a66608196158926ad202225416eba437beba32 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_lcd.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_lcd.c @@ -1,20 +1,7 @@ /* - * File : drv_lcd.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_sd.c b/bsp/lpc54608-LPCXpresso/drivers/drv_sd.c index 94006713014dc65d93ab22383be0333309cad857..e1239b7899b9281a85852a86c8ddd34ac02a39c7 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_sd.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_sd.c @@ -1,20 +1,7 @@ /* - * File : drv_sd.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_sd.h b/bsp/lpc54608-LPCXpresso/drivers/drv_sd.h index 952d6a60485e90e705f4f9761eda8da75adc392a..d36134eaa4b6299ea83870d14cd4369fe9ea0515 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_sd.h +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_sd.h @@ -1,12 +1,7 @@ /* - * File : drv_sd.h - * SPI mode SD Card Driver - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.c b/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.c index f01d815cc4c58d4e91d0ef56dbff35239b256bef..9b6438c4d2a9dcad840dd411014bc77778296430 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.c @@ -1,20 +1,7 @@ /* - * File : drv_sdram.c - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.h b/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.h index 956498f929554f119479e16f015a09dfd5f95736..4de79410b021e8ff84ec1abc53575dda0096063b 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.h +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_sdram.h @@ -1,11 +1,7 @@ /* - * File : drv_sdram.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_sram.c b/bsp/lpc54608-LPCXpresso/drivers/drv_sram.c index fb3266b2c3969e8983d4dff3d6b5ac2e5270d8f8..81f4ba6e9cda8f158cde71e235ad5bddc8ba0996 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_sram.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_sram.c @@ -1,12 +1,8 @@ /* -* File : sram.c -* This file is part of RT-Thread RTOS -* COPYRIGHT (C) 2009-2013 RT-Thread Develop 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 -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2013-05-19 Bernard The first version for LPC40xx diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_sram.h b/bsp/lpc54608-LPCXpresso/drivers/drv_sram.h index b5db6209db1430ece3f9360b163c39062ed598fd..14c87054ff2d0f8f5e8103d07001e3cd54ac6b4f 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_sram.h +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_sram.h @@ -1,11 +1,7 @@ /* - * File : sram.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/lpc54608-LPCXpresso/drivers/drv_uart.c b/bsp/lpc54608-LPCXpresso/drivers/drv_uart.c index d08d192617d9e49e9688a6c38741117ba7b6b30e..7c9bd9fc7f6d8433bf06261d3d7ae1f0b0ca7754 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/drv_uart.c +++ b/bsp/lpc54608-LPCXpresso/drivers/drv_uart.c @@ -1,11 +1,7 @@ /* - * File : drv_uart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2014 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 diff --git a/bsp/lpc824/applications/application.c b/bsp/lpc824/applications/application.c index 8d408d717b219e07e1977abc1893c3e96377abf5..f8ef7f40e32e26bce3d81ab4095ac4031620fcb5 100644 --- a/bsp/lpc824/applications/application.c +++ b/bsp/lpc824/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/lpc824/applications/startup.c b/bsp/lpc824/applications/startup.c index 15c949df7e8086b7712c7c28cd825b0046a0aed2..5e95382ba0d3984933b58d03a975c41286df04a4 100644 --- a/bsp/lpc824/applications/startup.c +++ b/bsp/lpc824/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/lpc824/drivers/board.c b/bsp/lpc824/drivers/board.c index ea941abc648b993b9bab35693569fa4a5ae0f047..51656718b8c0c6a59fec2af8c55185eeba4294b8 100644 --- a/bsp/lpc824/drivers/board.c +++ b/bsp/lpc824/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/lpc824/drivers/board.h b/bsp/lpc824/drivers/board.h index b89e518128ea933e323e5daef557d27b85174205..c8d21d94b574c59bd3d2feab5f7029a6d757aec6 100644 --- a/bsp/lpc824/drivers/board.h +++ b/bsp/lpc824/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/lpc824/drivers/usart.c b/bsp/lpc824/drivers/usart.c index b36a2080d6b62064fa15b73998102b55c13a6fb2..5109164a9ab076d04a6284c38495b75fcec33988 100644 --- a/bsp/lpc824/drivers/usart.c +++ b/bsp/lpc824/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/lpc824/drivers/usart.h b/bsp/lpc824/drivers/usart.h index abd7631fee4c317193ba3adc0999a820c7f3609f..1db28e9385fc9487ef5665a1b8bb56d8d101dca3 100644 --- a/bsp/lpc824/drivers/usart.h +++ b/bsp/lpc824/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f0x/applications/application.c b/bsp/stm32f0x/applications/application.c index c0fb3b4b2f327aff41fdae2a662cfcf8cf6dc131..0eedb8022c918d4af5a9299936d48ef44821e1d9 100644 --- a/bsp/stm32f0x/applications/application.c +++ b/bsp/stm32f0x/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f0x/applications/startup.c b/bsp/stm32f0x/applications/startup.c index f66536b6b62c4362d98c69934078e1446ca3f982..61ff677cc357b2ca8ac3443ce8cdbaec11fb542d 100644 --- a/bsp/stm32f0x/applications/startup.c +++ b/bsp/stm32f0x/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32f0x/drivers/board.c b/bsp/stm32f0x/drivers/board.c index 5e9fc2add5982198917d1dd196698f54a188130d..e8833b43ee67662f66c414d3f9911959d9943c7a 100644 --- a/bsp/stm32f0x/drivers/board.c +++ b/bsp/stm32f0x/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32f0x/drivers/board.h b/bsp/stm32f0x/drivers/board.h index ea4e537f3a1d394fd9ae405b80bfcb77e450d230..50325790e4181fac03fdf88841175e14e55f4f2b 100644 --- a/bsp/stm32f0x/drivers/board.h +++ b/bsp/stm32f0x/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f0x/drivers/led.c b/bsp/stm32f0x/drivers/led.c index 2a17a55adbcb110935841db1854be708ae69e8a8..b038b5b25336f97b9d8dd418a8e730a2e7214084 100644 --- a/bsp/stm32f0x/drivers/led.c +++ b/bsp/stm32f0x/drivers/led.c @@ -1,11 +1,7 @@ /* - * File : led.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/stm32f0x/drivers/led.h b/bsp/stm32f0x/drivers/led.h index af513637a27bbb2559643a69e144f591008664ad..0d303ae18ce9934c97383eff17956c6050c0ae09 100644 --- a/bsp/stm32f0x/drivers/led.h +++ b/bsp/stm32f0x/drivers/led.h @@ -1,11 +1,7 @@ /* - * File : led.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f0x/drivers/usart.c b/bsp/stm32f0x/drivers/usart.c index 1f6fbab7a24aaab16c987bc1d329eeed89e7d089..0c4aa15821c021c402ebbafbbc80e95438fdfb6a 100644 --- a/bsp/stm32f0x/drivers/usart.c +++ b/bsp/stm32f0x/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/stm32f0x/drivers/usart.h b/bsp/stm32f0x/drivers/usart.h index 6d733a2d61607efd5b9739f5616c24ca94d6d7ca..aed5b1448f12edfc642f9e40879c69900e7a2606 100644 --- a/bsp/stm32f0x/drivers/usart.h +++ b/bsp/stm32f0x/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f107/applications/application.c b/bsp/stm32f107/applications/application.c index 631273400088c8162c42bce18fc14ce99f3f8696..f220cb491734fe674fb95162a875404fa0d97975 100644 --- a/bsp/stm32f107/applications/application.c +++ b/bsp/stm32f107/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development 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 diff --git a/bsp/stm32f107/applications/startup.c b/bsp/stm32f107/applications/startup.c index 669746f287ef46e4983276a2d7f030dbab8db019..d64943c32baee5fe87cf17551120e629a9a3d56d 100644 --- a/bsp/stm32f107/applications/startup.c +++ b/bsp/stm32f107/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2013, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32f107/drivers/board.c b/bsp/stm32f107/drivers/board.c index 9f70058c37b365c8dc8ef32a03196114cde269cb..9013e5d07c80599dc859d76e4df33dcd58721dc1 100644 --- a/bsp/stm32f107/drivers/board.c +++ b/bsp/stm32f107/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2013 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 diff --git a/bsp/stm32f107/drivers/board.h b/bsp/stm32f107/drivers/board.h index 7d067fcc5d2117f72d19f1a68c0534777e2c7d58..9b5dff53e33f466d50231938eaadbaed92c958bd 100644 --- a/bsp/stm32f107/drivers/board.h +++ b/bsp/stm32f107/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development 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 diff --git a/bsp/stm32f107/drivers/gpio.c b/bsp/stm32f107/drivers/gpio.c index e0778f35d53338c4343e2d76f2631c0efeb20b60..b92685ebdf03eaebc5969723da06c7d94e64492a 100644 --- a/bsp/stm32f107/drivers/gpio.c +++ b/bsp/stm32f107/drivers/gpio.c @@ -1,11 +1,7 @@ /* - * File : gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f107/drivers/gpio.h b/bsp/stm32f107/drivers/gpio.h index 03b744b33393ffe3fe54c51eb79b9529d3d5a3c6..5e75adf443b7b4bf51155a950e0c3ece55721ede 100644 --- a/bsp/stm32f107/drivers/gpio.h +++ b/bsp/stm32f107/drivers/gpio.h @@ -1,11 +1,7 @@ /* - * File : gpio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f107/drivers/stm32f1_rtc.c b/bsp/stm32f107/drivers/stm32f1_rtc.c index 68fab1ce00dcc7fbc46ef19e068334423dcf1194..62a4afcafe991bc8f75929dd30cdd24c2cd52479 100644 --- a/bsp/stm32f107/drivers/stm32f1_rtc.c +++ b/bsp/stm32f107/drivers/stm32f1_rtc.c @@ -1,11 +1,7 @@ /* - * File : stm32f1_rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f107/drivers/stm32f1_rtc.h b/bsp/stm32f107/drivers/stm32f1_rtc.h index 02f463fce51f79cc31f1e6d5bd7ef0221617123e..3bd050a1781d4e2c6e4abed11436af0aeba4a835 100644 --- a/bsp/stm32f107/drivers/stm32f1_rtc.h +++ b/bsp/stm32f107/drivers/stm32f1_rtc.h @@ -1,11 +1,7 @@ /* - * File : stm32f1_rtc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f107/drivers/usart.c b/bsp/stm32f107/drivers/usart.c index c82fba3ee36414b2e93aa5cda8787a2f1a68928a..87c153e9752780e7994887fe5b5a60b8ccc158ad 100644 --- a/bsp/stm32f107/drivers/usart.c +++ b/bsp/stm32f107/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/stm32f107/drivers/usart.h b/bsp/stm32f107/drivers/usart.h index 438578d86b2c62c169b3262064d8ba7eb8f0d744..2127f3d53380067df268e2ae61556dcd7027354c 100644 --- a/bsp/stm32f107/drivers/usart.h +++ b/bsp/stm32f107/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x-HAL/Kconfig b/bsp/stm32f10x-HAL/Kconfig index 534e930ba815f5b001cbe8d57a759162f335432c..0276d0aa6c4321775123ae686b8eb3bf2af94498 100644 --- a/bsp/stm32f10x-HAL/Kconfig +++ b/bsp/stm32f10x-HAL/Kconfig @@ -182,6 +182,17 @@ if RT_USING_SPI default n endif + +menuconfig BSP_USING_WDT + bool "Using wdt" + select RT_USING_WDT + default n +if BSP_USING_WDT + config BSP_USING_WDT_IWDG + bool "Enable iwdg" + default n +endif + if RT_USING_DEVICE_IPC && (STM32F103RC || STM32F103RD || STM32F103RE || STM32F103RF || STM32F103RG ||STM32F103VC || STM32F103VD || STM32F103VE || STM32F103VF || STM32F103VG ||STM32F103ZC || STM32F103ZD || STM32F103ZE || STM32F103ZF || STM32F103ZG) config RT_USING_SDCARD bool "Using sdcard with sdio" diff --git a/bsp/stm32f10x-HAL/drivers/SConscript b/bsp/stm32f10x-HAL/drivers/SConscript index 43c9b3f4a05780446c8490f64a303d5a8028253d..feb72bed10b80d193133dab1cfbac24208f32dd6 100644 --- a/bsp/stm32f10x-HAL/drivers/SConscript +++ b/bsp/stm32f10x-HAL/drivers/SConscript @@ -23,6 +23,9 @@ if GetDepend(['RT_USING_SDCARD']): if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']): src += ['drv_i2c.c'] +if GetDepend(['RT_USING_WDT']): + src += ['drv_iwg.c'] + if rtconfig.CROSS_TOOL == 'gcc': src += ['gcc_startup.s'] diff --git a/bsp/stm32f10x-HAL/drivers/drv_iwg.c b/bsp/stm32f10x-HAL/drivers/drv_iwg.c new file mode 100644 index 0000000000000000000000000000000000000000..1d170b2df054655564ca36dbbf0b032775048618 --- /dev/null +++ b/bsp/stm32f10x-HAL/drivers/drv_iwg.c @@ -0,0 +1,71 @@ +/* + * File : drv_iwg.c + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2015, 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 + * + * Change Logs: + * Date Author Notes + * 2017-11-08 ZYH the first version + */ + +#include +#include +#include +#include + + +#ifdef RT_USING_WDT +IWDG_HandleTypeDef hiwdg; +static rt_err_t drv_init(rt_watchdog_t *wdt) +{ + hiwdg.Instance = IWDG; + hiwdg.Init.Prescaler = IWDG_PRESCALER_16; //1s + hiwdg.Init.Reload = 4095; + if (HAL_IWDG_Init(&hiwdg) != HAL_OK) + { + RT_ASSERT(0); + } + return RT_EOK; +} + +static rt_err_t drv_control(rt_watchdog_t *wdt, int cmd, void *arg) +{ + switch (cmd) + { + case RT_DEVICE_CTRL_WDT_SET_TIMEOUT: + hiwdg.Init.Reload = (rt_uint32_t)arg; + if (HAL_IWDG_Init(&hiwdg) != HAL_OK) + { + return RT_ERROR; + } + break; + case RT_DEVICE_CTRL_WDT_KEEPALIVE: + HAL_IWDG_Refresh(&hiwdg); + break; + default: + return RT_ERROR; + } + return RT_EOK; +} + +static struct rt_watchdog_ops _ops = + { + drv_init, + drv_control + }; + +static rt_watchdog_t _iwg = + { + .ops = &_ops + }; + +int rt_iwg_init(void) +{ + return rt_hw_watchdog_register(&_iwg, "iwg", RT_DEVICE_FLAG_DEACTIVATE, RT_NULL); +} +INIT_BOARD_EXPORT(rt_iwg_init); +#endif diff --git a/bsp/stm32f10x-HAL/drivers/drv_iwg.h b/bsp/stm32f10x-HAL/drivers/drv_iwg.h new file mode 100644 index 0000000000000000000000000000000000000000..4bd63a6ca93654d4dc1da3c10524b740e0caf8a5 --- /dev/null +++ b/bsp/stm32f10x-HAL/drivers/drv_iwg.h @@ -0,0 +1,18 @@ +/* + * File : drv_iwg.h + * This file is part of RT-Thread RTOS + * COPYRIGHT (C) 2015, 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 + * + * Change Logs: + * Date Author Notes + * 2017-11-08 ZYH the first version + */ + +#ifndef __DRV_IWG_H__ +#define __DRV_IWG_H__ +extern int rt_iwg_init(void); +#endif diff --git a/bsp/stm32f10x-HAL/drivers/stm32f1xx_hal_conf.h b/bsp/stm32f10x-HAL/drivers/stm32f1xx_hal_conf.h index 32be5f38d0f7f072346315651d5b584c4e29d943..fa7d6cbf62faf2f70394e9b4e86593a7416bf3a1 100644 --- a/bsp/stm32f10x-HAL/drivers/stm32f1xx_hal_conf.h +++ b/bsp/stm32f10x-HAL/drivers/stm32f1xx_hal_conf.h @@ -70,7 +70,7 @@ extern "C" { // #define HAL_I2C_MODULE_ENABLED // #define HAL_I2S_MODULE_ENABLED // #define HAL_IRDA_MODULE_ENABLED -// #define HAL_IWDG_MODULE_ENABLED +#define HAL_IWDG_MODULE_ENABLED // #define HAL_NAND_MODULE_ENABLED // #define HAL_NOR_MODULE_ENABLED // #define HAL_PCCARD_MODULE_ENABLED diff --git a/bsp/stm32f10x/applications/application.c b/bsp/stm32f10x/applications/application.c index 774940de465af8011b7341b32285065e8cbfb6ef..3db9063f53e44506490288937b4229dcfbabc228 100644 --- a/bsp/stm32f10x/applications/application.c +++ b/bsp/stm32f10x/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f10x/applications/canapp.c b/bsp/stm32f10x/applications/canapp.c index ba9d592247c90df716d101888f5d4a7e79aea67c..542fbd04bc938186852ec1a92adc7ce96716b458 100644 --- a/bsp/stm32f10x/applications/canapp.c +++ b/bsp/stm32f10x/applications/canapp.c @@ -1,11 +1,7 @@ /* - * File : canapp.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f10x/applications/startup.c b/bsp/stm32f10x/applications/startup.c index cbb4bc54e21238f7da76432e3f3675ebdb3e9978..31a2fa911cbe2c70f74bef0daa694ba701ac4722 100644 --- a/bsp/stm32f10x/applications/startup.c +++ b/bsp/stm32f10x/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32f10x/drivers/board.c b/bsp/stm32f10x/drivers/board.c index f2525b718ed340651eb9e7891e1deba4eca0437c..3829371308b252e368c2eb55ecb1e3bf69c4c064 100644 --- a/bsp/stm32f10x/drivers/board.c +++ b/bsp/stm32f10x/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32f10x/drivers/board.h b/bsp/stm32f10x/drivers/board.h index 79360b2d2882672e4518d23c43c5113cbacac825..1a55866b50a1d8a3201f992099021a3d44f1e7f4 100644 --- a/bsp/stm32f10x/drivers/board.h +++ b/bsp/stm32f10x/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/bxcan.c b/bsp/stm32f10x/drivers/bxcan.c index f49b6dcfb9e0a06d478e0daa50a04f23be9c66df..e9032d82617ec8254978f451ea768a0a138c5694 100644 --- a/bsp/stm32f10x/drivers/bxcan.c +++ b/bsp/stm32f10x/drivers/bxcan.c @@ -1,11 +1,7 @@ /* - * File : bxcan.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/bxcan.h b/bsp/stm32f10x/drivers/bxcan.h index 5e6cad087cda8a1d196751c7d06301c5d59284a8..51ac616f3a599ae6b61b736731dc4709c9b9773a 100644 --- a/bsp/stm32f10x/drivers/bxcan.h +++ b/bsp/stm32f10x/drivers/bxcan.h @@ -1,11 +1,7 @@ /* - * File : bxcan.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/dm9000a.c b/bsp/stm32f10x/drivers/dm9000a.c index a622122c586f9c3707c31a4c3b52ab40faa559d0..0aa1ddb58cb60e6f0b88cb714a5d0666c9d95675 100644 --- a/bsp/stm32f10x/drivers/dm9000a.c +++ b/bsp/stm32f10x/drivers/dm9000a.c @@ -1,11 +1,7 @@ /* - * File : dm9000a.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/dm9000a.h b/bsp/stm32f10x/drivers/dm9000a.h index a269f64215b03f24df109de7c01ea0c4fe5a8745..0bfdadf16b5e67c54247dbb86498e62af740627d 100644 --- a/bsp/stm32f10x/drivers/dm9000a.h +++ b/bsp/stm32f10x/drivers/dm9000a.h @@ -1,11 +1,7 @@ /* - * File : dm9000a.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/fm24cl64.c b/bsp/stm32f10x/drivers/fm24cl64.c index 2cf60e9068bd13740226cdf48b684f6bfd3dc0d1..05c02448dd7fcdfeb9111179d099f34e0ae66f18 100644 --- a/bsp/stm32f10x/drivers/fm24cl64.c +++ b/bsp/stm32f10x/drivers/fm24cl64.c @@ -1,11 +1,7 @@ /* - * File : fm24cl64.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/fm24cl64.h b/bsp/stm32f10x/drivers/fm24cl64.h index bc613fea7287cc2ca3cb8a0ec1d716317c79a72b..3b76d5ff41ec3b18f7c609e8b4b973915c41d8fc 100644 --- a/bsp/stm32f10x/drivers/fm24cl64.h +++ b/bsp/stm32f10x/drivers/fm24cl64.h @@ -1,11 +1,7 @@ /* - * File : fm24cl64.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/gpio.c b/bsp/stm32f10x/drivers/gpio.c index 5dc10faf320b6ace8df2ad9552860010c4a9c050..d8c335fb3bdaead2b638a2aa076e13df4cf7a548 100755 --- a/bsp/stm32f10x/drivers/gpio.c +++ b/bsp/stm32f10x/drivers/gpio.c @@ -1,11 +1,7 @@ /* - * File : gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/gpio.h b/bsp/stm32f10x/drivers/gpio.h index 03b744b33393ffe3fe54c51eb79b9529d3d5a3c6..5e75adf443b7b4bf51155a950e0c3ece55721ede 100644 --- a/bsp/stm32f10x/drivers/gpio.h +++ b/bsp/stm32f10x/drivers/gpio.h @@ -1,11 +1,7 @@ /* - * File : gpio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/led.c b/bsp/stm32f10x/drivers/led.c index 2a25fc19ac28b1d386b7f76af40954550be74013..ff43f4fa301236082307ba54c4cfed23e1f0b76e 100644 --- a/bsp/stm32f10x/drivers/led.c +++ b/bsp/stm32f10x/drivers/led.c @@ -1,11 +1,7 @@ /* - * File : led.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/led.h b/bsp/stm32f10x/drivers/led.h index 31900cdc651ce68a33c507866ca457ba86b463eb..146a4260db9a60de0735b726a872af003a985ed7 100644 --- a/bsp/stm32f10x/drivers/led.h +++ b/bsp/stm32f10x/drivers/led.h @@ -1,11 +1,8 @@ /* - * File : led.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/stm32f1_i2c.c b/bsp/stm32f10x/drivers/stm32f1_i2c.c index e34cd0c63c3cccf2f7eedb552a868f2a2531c5fe..f7f7c8bf01941be61cde7d58faef5d25be8df8e4 100644 --- a/bsp/stm32f10x/drivers/stm32f1_i2c.c +++ b/bsp/stm32f10x/drivers/stm32f1_i2c.c @@ -1,11 +1,7 @@ /* - * File : stm32f1_i2c.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2017, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/stm32f1_i2c.h b/bsp/stm32f10x/drivers/stm32f1_i2c.h index 0cebe02e85d733da5e9410c266305d9a2e787af1..c0658315bdd7c5144d7e361192751612da9d9718 100644 --- a/bsp/stm32f10x/drivers/stm32f1_i2c.h +++ b/bsp/stm32f10x/drivers/stm32f1_i2c.h @@ -1,11 +1,7 @@ /* - * File : stm32f1_i2c.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/stm32f1_rtc.c b/bsp/stm32f10x/drivers/stm32f1_rtc.c index 68fab1ce00dcc7fbc46ef19e068334423dcf1194..62a4afcafe991bc8f75929dd30cdd24c2cd52479 100644 --- a/bsp/stm32f10x/drivers/stm32f1_rtc.c +++ b/bsp/stm32f10x/drivers/stm32f1_rtc.c @@ -1,11 +1,7 @@ /* - * File : stm32f1_rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/stm32f1_rtc.h b/bsp/stm32f10x/drivers/stm32f1_rtc.h index 02f463fce51f79cc31f1e6d5bd7ef0221617123e..3bd050a1781d4e2c6e4abed11436af0aeba4a835 100644 --- a/bsp/stm32f10x/drivers/stm32f1_rtc.h +++ b/bsp/stm32f10x/drivers/stm32f1_rtc.h @@ -1,11 +1,7 @@ /* - * File : stm32f1_rtc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/stm32f1_wdg.c b/bsp/stm32f10x/drivers/stm32f1_wdg.c index a26283fb276b65d246c13c7ea8eae09ddbfaa09a..d246219c96878d4d79e3a8c04d47ebf776a37998 100644 --- a/bsp/stm32f10x/drivers/stm32f1_wdg.c +++ b/bsp/stm32f10x/drivers/stm32f1_wdg.c @@ -1,11 +1,7 @@ /* - * File : stm32f1_wdg.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/usart.c b/bsp/stm32f10x/drivers/usart.c index 65a05c3afe412affbf9c62a9559a1d4796dd14a3..3841a5c9f1d8721a32b7f1d22d301365206872ea 100644 --- a/bsp/stm32f10x/drivers/usart.c +++ b/bsp/stm32f10x/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/stm32f10x/drivers/usart.h b/bsp/stm32f10x/drivers/usart.h index 438578d86b2c62c169b3262064d8ba7eb8f0d744..2127f3d53380067df268e2ae61556dcd7027354c 100644 --- a/bsp/stm32f10x/drivers/usart.h +++ b/bsp/stm32f10x/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/24LCxx.c b/bsp/stm32f20x/Drivers/24LCxx.c index 1142a69aade01726042998cfea947ab1786767d9..1903a85b827b9800538b002b94291c20329a6493 100644 --- a/bsp/stm32f20x/Drivers/24LCxx.c +++ b/bsp/stm32f20x/Drivers/24LCxx.c @@ -1,11 +1,7 @@ /* - * File : 24LCxx.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/board.c b/bsp/stm32f20x/Drivers/board.c index 8bf9c0752677079c31aa277919211fb4bda084b6..e3cfdbbc12292ed3ae09707249cac4b85b0386fe 100644 --- a/bsp/stm32f20x/Drivers/board.c +++ b/bsp/stm32f20x/Drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32f20x/Drivers/board.h b/bsp/stm32f20x/Drivers/board.h index a938eaf569a306fde8e2dab997575b0348c44471..63a97b6b1ca749207dfb7101dc8639ead4b5be14 100644 --- a/bsp/stm32f20x/Drivers/board.h +++ b/bsp/stm32f20x/Drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/drv_rtc.c b/bsp/stm32f20x/Drivers/drv_rtc.c index 1715a431d3f2310deb36aa0601b819b6295678fe..3c70a417d25d39de44ec27833a087a08d8cd3e91 100644 --- a/bsp/stm32f20x/Drivers/drv_rtc.c +++ b/bsp/stm32f20x/Drivers/drv_rtc.c @@ -1,11 +1,7 @@ /* - * File : rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/drv_rtc.h b/bsp/stm32f20x/Drivers/drv_rtc.h index 1f54d593287e9c5524740248743917d65e5baaeb..8f6c9a00a029aaa1e761f375615c02d1a82783db 100644 --- a/bsp/stm32f20x/Drivers/drv_rtc.h +++ b/bsp/stm32f20x/Drivers/drv_rtc.h @@ -1,11 +1,7 @@ /* - * File : rtc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/i2c.c b/bsp/stm32f20x/Drivers/i2c.c index 7d3e0d88594ffb3ad89ab5bf4b1ee39f48bd8f24..e1b4b02ffaa4f4ebfe04c01459fbc14df3fe664f 100644 --- a/bsp/stm32f20x/Drivers/i2c.c +++ b/bsp/stm32f20x/Drivers/i2c.c @@ -1,11 +1,7 @@ /* - * File : i2c.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 @@ -93,7 +89,7 @@ Status I2C_AcknowledgePolling(I2C_TypeDef* I2Cx ,uint8_t Addr) } I2Cx->CR1 |= CR1_START_Set; - tmp = I2Cx->SR1;//MSB + tmp = I2Cx->SR1;//MSB I2Cx->DR = Addr; }while((I2Cx->SR1&0x0002) != 0x0002); diff --git a/bsp/stm32f20x/Drivers/serial.c b/bsp/stm32f20x/Drivers/serial.c index 644f1a2a556d73a0c803a18a5e5eb36684bce034..4ccc0416897d80f2c23a478ee720e28ee2a67420 100644 --- a/bsp/stm32f20x/Drivers/serial.c +++ b/bsp/stm32f20x/Drivers/serial.c @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/serial.h b/bsp/stm32f20x/Drivers/serial.h index f1c698f74a95d7de43b0a8ce3d5d882be37b000f..8ab56b48391a4a96b585dd8a57a9e89c94b7faa2 100644 --- a/bsp/stm32f20x/Drivers/serial.h +++ b/bsp/stm32f20x/Drivers/serial.h @@ -1,11 +1,7 @@ /* - * File : serial.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009 - 2010, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/usart.c b/bsp/stm32f20x/Drivers/usart.c index ae6a4ba9266935f711c7af69f3990f6c64ad69fa..ff82ab9f8a2eec0d7fdecb345e56a76dce1736a0 100644 --- a/bsp/stm32f20x/Drivers/usart.c +++ b/bsp/stm32f20x/Drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f20x/Drivers/usart.h b/bsp/stm32f20x/Drivers/usart.h index 48925df88035d06995c42e4a322c0e4b854ae2dd..176c179e5bbf215322e8fa356a2d722436afeeae 100644 --- a/bsp/stm32f20x/Drivers/usart.h +++ b/bsp/stm32f20x/Drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f20x/applications/application.c b/bsp/stm32f20x/applications/application.c index fcb378f62e68145ca1ffbbb5d6b6e86201e94c32..4f37de7b309e3b05f30b2fc1426a0a205023fe0b 100644 --- a/bsp/stm32f20x/applications/application.c +++ b/bsp/stm32f20x/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f20x/applications/startup.c b/bsp/stm32f20x/applications/startup.c index 0cd014b25a81eda7501609e15066c58bc5bdc9cc..77f915cbbdb462e88ffaaab436c0643d3f5f8397 100644 --- a/bsp/stm32f20x/applications/startup.c +++ b/bsp/stm32f20x/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32f40x/applications/main.c b/bsp/stm32f40x/applications/main.c index 9b756ac597489f053c22727e6534af5cd42b9680..41964f50dc3aab5395e720b8addfa48652a7752d 100644 --- a/bsp/stm32f40x/applications/main.c +++ b/bsp/stm32f40x/applications/main.c @@ -1,11 +1,7 @@ /* - * File : main.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32f40x/drivers/board.c b/bsp/stm32f40x/drivers/board.c index 1b37d7e3484040989190a26f908c32806e122b76..123f56bdad7c4f151492d2c6a11e35fac3035994 100644 --- a/bsp/stm32f40x/drivers/board.c +++ b/bsp/stm32f40x/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32f40x/drivers/board.h b/bsp/stm32f40x/drivers/board.h index d238413631db718c0aec194f0df9a98b88173129..2aeb007274a4c5ba324ddaace0c4996fa24aa1c4 100644 --- a/bsp/stm32f40x/drivers/board.h +++ b/bsp/stm32f40x/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f40x/drivers/drv_hwtimer.c b/bsp/stm32f40x/drivers/drv_hwtimer.c index 8802021e183b2fbcead7cd29fbb62ba3602bf690..9feb19e145d2ce17b3d7efd484cbfeab3a2cf4d7 100644 --- a/bsp/stm32f40x/drivers/drv_hwtimer.c +++ b/bsp/stm32f40x/drivers/drv_hwtimer.c @@ -1,11 +1,7 @@ /* - * File : drv_hwtimer.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f40x/drivers/gpio.c b/bsp/stm32f40x/drivers/gpio.c index 8d8ac42bbf03ac29b94dc91d80be54ea9d787f5c..8a4c5bf2e4a8f9c5ad4b550df25a24dac83053ca 100644 --- a/bsp/stm32f40x/drivers/gpio.c +++ b/bsp/stm32f40x/drivers/gpio.c @@ -1,11 +1,7 @@ /* - * File : gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development 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 diff --git a/bsp/stm32f40x/drivers/gpio.h b/bsp/stm32f40x/drivers/gpio.h index a4947b100dc47b9b4d1d57c4a99805dd33be4859..be40ba36587f95dbc4d02c5a47b878c04f5182ac 100644 --- a/bsp/stm32f40x/drivers/gpio.h +++ b/bsp/stm32f40x/drivers/gpio.h @@ -1,11 +1,7 @@ /* - * File : gpio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f40x/drivers/stm32f4_rtc.c b/bsp/stm32f40x/drivers/stm32f4_rtc.c index 246622ccc8e4b8c14e52957718726482a4e140eb..96a62fc637a668c9b6cab85ab16a857d206c449a 100644 --- a/bsp/stm32f40x/drivers/stm32f4_rtc.c +++ b/bsp/stm32f40x/drivers/stm32f4_rtc.c @@ -1,11 +1,7 @@ /* - * File : stm32f4_rtc.c - * This file is stm32f4 rtc driver part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f40x/drivers/stm32f4_rtc.h b/bsp/stm32f40x/drivers/stm32f4_rtc.h index 42fa4ebed76ba67f2b817a9353e9bbfa72c03557..0fb2a4694cb47e407b5c8568b33968f0a1daef82 100644 --- a/bsp/stm32f40x/drivers/stm32f4_rtc.h +++ b/bsp/stm32f40x/drivers/stm32f4_rtc.h @@ -1,11 +1,7 @@ /* - * File : stm32f4_rtc.h - * This file is stm32f4 rtc driver part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f40x/drivers/usart.c b/bsp/stm32f40x/drivers/usart.c index 03d8c23235426559c17399d10d74db9d692e2189..0633c82cdd8191767fb693a32d1332c28a84d36e 100644 --- a/bsp/stm32f40x/drivers/usart.c +++ b/bsp/stm32f40x/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f40x/drivers/usart.h b/bsp/stm32f40x/drivers/usart.h index 3faf85fcde7623e1385587d2f69ebf89a4c23a3b..12cfd253cf351d42e86db41310a3a2f8856bc800 100644 --- a/bsp/stm32f40x/drivers/usart.h +++ b/bsp/stm32f40x/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f411-nucleo/applications/main.c b/bsp/stm32f411-nucleo/applications/main.c index ae855a5b1e897ac501095ac2e44ac2a23b19aa86..5be09a6aa6f9bdaa1dc6063968caeb0763e61aff 100644 --- a/bsp/stm32f411-nucleo/applications/main.c +++ b/bsp/stm32f411-nucleo/applications/main.c @@ -1,11 +1,7 @@ /* - * File : main.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f411-nucleo/drivers/board.c b/bsp/stm32f411-nucleo/drivers/board.c index 008d6f5a78a90b5b64ef7b32c16a31d28f9c75b4..0504dac9e3872b7cfca8df62215d7c6bbc5e7f94 100644 --- a/bsp/stm32f411-nucleo/drivers/board.c +++ b/bsp/stm32f411-nucleo/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f411-nucleo/drivers/board.h b/bsp/stm32f411-nucleo/drivers/board.h index 98460fd4e7c3e2e6c6b417e9aa51ef91ddd975b3..5aceadc899a036deb1a48f4cbb7efc9aec92c8cb 100644 --- a/bsp/stm32f411-nucleo/drivers/board.h +++ b/bsp/stm32f411-nucleo/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f411-nucleo/drivers/drv_usart.h b/bsp/stm32f411-nucleo/drivers/drv_usart.h index ff08702d5764deae3b7f34d7463b7258f8c16557..ecd3412ef851a6a6bd1b461dba4f1031399a46a8 100644 --- a/bsp/stm32f411-nucleo/drivers/drv_usart.h +++ b/bsp/stm32f411-nucleo/drivers/drv_usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/applications/application.c b/bsp/stm32f429-apollo/applications/application.c index 8d1f447ef66773b23eb3615b617f6d3b199e86fb..8846e98a5e16817417b7e22cbe4c840ba4e23a6f 100644 --- a/bsp/stm32f429-apollo/applications/application.c +++ b/bsp/stm32f429-apollo/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/applications/rtgui_demo.c b/bsp/stm32f429-apollo/applications/rtgui_demo.c index 9d6d34dafadc005c608b5c850a740ac818118c8b..7db3945ef486717951fabb1db6a7fa55ca25247c 100644 --- a/bsp/stm32f429-apollo/applications/rtgui_demo.c +++ b/bsp/stm32f429-apollo/applications/rtgui_demo.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/applications/rtgui_demo.h b/bsp/stm32f429-apollo/applications/rtgui_demo.h index e27f7b56093d22500ab5301dcf9795755c329f0a..1662a4d3466eac2705a13b69a08a7a93067bc67a 100644 --- a/bsp/stm32f429-apollo/applications/rtgui_demo.h +++ b/bsp/stm32f429-apollo/applications/rtgui_demo.h @@ -1,11 +1,7 @@ /* - * File : dc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/applications/startup.c b/bsp/stm32f429-apollo/applications/startup.c index 9e55b3bc40e63421b7b1be57a4c8045c6030e14d..5448f3f85427ad50e670870c13dbccb04ed652be 100644 --- a/bsp/stm32f429-apollo/applications/startup.c +++ b/bsp/stm32f429-apollo/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32f429-apollo/drivers/board.c b/bsp/stm32f429-apollo/drivers/board.c index 9788ebc37061e1c5e3cb7cdd4f69e85efbaad022..8943f9145624e34f12cad18405911744fd5ff5cb 100644 --- a/bsp/stm32f429-apollo/drivers/board.c +++ b/bsp/stm32f429-apollo/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32f429-apollo/drivers/board.h b/bsp/stm32f429-apollo/drivers/board.h index c733b88795d2e54320bb1aa7b8c3ec2c23336cf2..30f8fd6995b652b8545a53e25050a3e8501ccb06 100644 --- a/bsp/stm32f429-apollo/drivers/board.h +++ b/bsp/stm32f429-apollo/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_eth.c b/bsp/stm32f429-apollo/drivers/drv_eth.c index 78e2342c0fc7a8093f60103966fc8094afb5ee08..5d363194e345d19949f62b7662df5b7a6cb06916 100644 --- a/bsp/stm32f429-apollo/drivers/drv_eth.c +++ b/bsp/stm32f429-apollo/drivers/drv_eth.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_gpio.c b/bsp/stm32f429-apollo/drivers/drv_gpio.c index fe26d0027a79aa141321882a76503ea93769630d..6f7edddffaf55880ca435e4a1602988b6f832b00 100644 --- a/bsp/stm32f429-apollo/drivers/drv_gpio.c +++ b/bsp/stm32f429-apollo/drivers/drv_gpio.c @@ -1,11 +1,7 @@ /* - * File : drv_gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_gpio.h b/bsp/stm32f429-apollo/drivers/drv_gpio.h index f263a87c2d55cdb0a057e42e748d03e831f080a9..60199bd34b625b98867680b513b0b252751c325b 100644 --- a/bsp/stm32f429-apollo/drivers/drv_gpio.h +++ b/bsp/stm32f429-apollo/drivers/drv_gpio.h @@ -1,11 +1,7 @@ /* - * File : drv_gpio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_i2c.c b/bsp/stm32f429-apollo/drivers/drv_i2c.c index 38321e8b51e5305cdb0837b9673126dd644bba1f..2f334ccea43ab40d707b0db0ae54fafac2b1fb48 100644 --- a/bsp/stm32f429-apollo/drivers/drv_i2c.c +++ b/bsp/stm32f429-apollo/drivers/drv_i2c.c @@ -1,11 +1,7 @@ /* - * File : drv_i2c.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_i2c.h b/bsp/stm32f429-apollo/drivers/drv_i2c.h index 8e91be0e0e57daa35d89006345ce45bf1599dd4f..e0c17f2f572176e9a237a0b82fd10eb452ccc8da 100644 --- a/bsp/stm32f429-apollo/drivers/drv_i2c.h +++ b/bsp/stm32f429-apollo/drivers/drv_i2c.h @@ -1,12 +1,8 @@ /* -* File : drv_i2c.h -* This file is part of RT-Thread RTOS -* COPYRIGHT (C) 2017 RT-Thread Develop 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 -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2017-06-05 tanek first implementation. diff --git a/bsp/stm32f429-apollo/drivers/drv_lcd.c b/bsp/stm32f429-apollo/drivers/drv_lcd.c index 2608081acf35b2afc2bea1bc53071984b86478fa..0291d53c45ebabf5087912e8c760983bdb6dec96 100644 --- a/bsp/stm32f429-apollo/drivers/drv_lcd.c +++ b/bsp/stm32f429-apollo/drivers/drv_lcd.c @@ -1,11 +1,7 @@ /* - * File : drv_lcd.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 diff --git a/bsp/stm32f429-apollo/drivers/drv_nand.c b/bsp/stm32f429-apollo/drivers/drv_nand.c index d546bbd197bde50ca0f68e3fb13216bd29f73e79..124515878ba44aea4490c4ffc39247fa58e0cf6e 100644 --- a/bsp/stm32f429-apollo/drivers/drv_nand.c +++ b/bsp/stm32f429-apollo/drivers/drv_nand.c @@ -1,11 +1,7 @@ /* - * File : drv_nand.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2008 - 2012, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_pcf8574.c b/bsp/stm32f429-apollo/drivers/drv_pcf8574.c index 4801a92bc27b650459a78c867f7f7a8ae29cc728..90f7793770997aa68e481273d87236985407baa9 100644 --- a/bsp/stm32f429-apollo/drivers/drv_pcf8574.c +++ b/bsp/stm32f429-apollo/drivers/drv_pcf8574.c @@ -1,11 +1,7 @@ /* - * File : drv_iic.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_rtc.c b/bsp/stm32f429-apollo/drivers/drv_rtc.c index 3318606e8d95810ee2e50d96dbd9ede43775c9c2..4da872d2d81dbbfa243786592c7cb88badb3c59f 100644 --- a/bsp/stm32f429-apollo/drivers/drv_rtc.c +++ b/bsp/stm32f429-apollo/drivers/drv_rtc.c @@ -1,11 +1,7 @@ /* - * File : drv_rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009-2013 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_rtc.h b/bsp/stm32f429-apollo/drivers/drv_rtc.h index 37b34540c1fb461bd22c0d5a40081c360bcaa2e6..558486428e0f91ec8a367a3b947a3b46af05aa0e 100644 --- a/bsp/stm32f429-apollo/drivers/drv_rtc.h +++ b/bsp/stm32f429-apollo/drivers/drv_rtc.h @@ -1,19 +1,13 @@ - /***************************************************************************//** - * @file drv_rtc.h - * @brief RTC driver of RT-Thread RTOS for EFM32 - * COPYRIGHT (C) 2012, RT-Thread Development Team - * @author Bernard, onelife - * @version 1.0 - ******************************************************************************* - * @section License - * 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 - ******************************************************************************* - * @section Change Logs +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs * Date Author Notes * 2009-01-05 Bernard the first version * 2010-12-27 onelife Modification for EFM32 - *********************************************************************/ + */ #ifndef __DRV_RTC_H__ #define __DRV_RTC_H__ #include diff --git a/bsp/stm32f429-apollo/drivers/drv_sdram.c b/bsp/stm32f429-apollo/drivers/drv_sdram.c index c7f463c08ec7b00556d0d0e2cea5e3fb713a5d54..f500184ca0498fc4439a258a18c0c827ce1544c3 100644 --- a/bsp/stm32f429-apollo/drivers/drv_sdram.c +++ b/bsp/stm32f429-apollo/drivers/drv_sdram.c @@ -1,21 +1,7 @@ /* - * File : drv_sdram.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_sdram.h b/bsp/stm32f429-apollo/drivers/drv_sdram.h index 5cb3d128a6a85a9bb7f78f24f3e1620273d32f3b..73f29bf966715afd619063301adbec8c5ed90996 100644 --- a/bsp/stm32f429-apollo/drivers/drv_sdram.h +++ b/bsp/stm32f429-apollo/drivers/drv_sdram.h @@ -1,11 +1,7 @@ /* - * File : drv_sdram.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_spi.c b/bsp/stm32f429-apollo/drivers/drv_spi.c index a82454d907b61a6ca382df834954c61c54602f81..578b6e3c665ceeaefa48eed91fc0bf7b9d03a111 100644 --- a/bsp/stm32f429-apollo/drivers/drv_spi.c +++ b/bsp/stm32f429-apollo/drivers/drv_spi.c @@ -1,11 +1,7 @@ /* - * File : drv_spi.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_spi.h b/bsp/stm32f429-apollo/drivers/drv_spi.h index 8c74fdb6268472f52d50fedab5315383de7120f8..f6b91566286ecb6f67e13145d969780f7c0a2a3e 100644 --- a/bsp/stm32f429-apollo/drivers/drv_spi.h +++ b/bsp/stm32f429-apollo/drivers/drv_spi.h @@ -1,11 +1,7 @@ /* - * File : stm32f20x_40x_spi.h - * 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 diff --git a/bsp/stm32f429-apollo/drivers/drv_spi_flash.c b/bsp/stm32f429-apollo/drivers/drv_spi_flash.c index f6c5748daca249ea58219d7d377da20d2c930eb4..a73e86179affa6ff9247e5513b03ef49d07d45ed 100644 --- a/bsp/stm32f429-apollo/drivers/drv_spi_flash.c +++ b/bsp/stm32f429-apollo/drivers/drv_spi_flash.c @@ -1,11 +1,7 @@ /* - * File : stm32f20x_40x_spi.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 diff --git a/bsp/stm32f429-apollo/drivers/usart.c b/bsp/stm32f429-apollo/drivers/usart.c index b6606e90f876e1ec85a606d8983cacd14a5a5683..ecca8b7307244e22527d280eb472f51ca9b0de9b 100644 --- a/bsp/stm32f429-apollo/drivers/usart.c +++ b/bsp/stm32f429-apollo/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-apollo/drivers/usart.h b/bsp/stm32f429-apollo/drivers/usart.h index 3faf85fcde7623e1385587d2f69ebf89a4c23a3b..12cfd253cf351d42e86db41310a3a2f8856bc800 100644 --- a/bsp/stm32f429-apollo/drivers/usart.h +++ b/bsp/stm32f429-apollo/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/applications/application.c b/bsp/stm32f429-armfly/applications/application.c index c4752b014058ffd4a911e649a3e832beeae8e223..7a44930cefbf57d619658355f49de7a8971faea6 100644 --- a/bsp/stm32f429-armfly/applications/application.c +++ b/bsp/stm32f429-armfly/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/applications/rtgui_demo.c b/bsp/stm32f429-armfly/applications/rtgui_demo.c index d4ef2dba4408fb2480f328dcf1de85a8820767ad..a26fdfe0fd85193b825866ae812841ff71f5e7b5 100644 --- a/bsp/stm32f429-armfly/applications/rtgui_demo.c +++ b/bsp/stm32f429-armfly/applications/rtgui_demo.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/applications/rtgui_demo.h b/bsp/stm32f429-armfly/applications/rtgui_demo.h index e27f7b56093d22500ab5301dcf9795755c329f0a..1662a4d3466eac2705a13b69a08a7a93067bc67a 100644 --- a/bsp/stm32f429-armfly/applications/rtgui_demo.h +++ b/bsp/stm32f429-armfly/applications/rtgui_demo.h @@ -1,11 +1,7 @@ /* - * File : dc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/applications/startup.c b/bsp/stm32f429-armfly/applications/startup.c index 63fa63123c9a8f77f53ea1f23d2ba06f3e4e73a9..5d58727d823f23b7b6b0c937fbf46704335435e2 100644 --- a/bsp/stm32f429-armfly/applications/startup.c +++ b/bsp/stm32f429-armfly/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32f429-armfly/drivers/board.c b/bsp/stm32f429-armfly/drivers/board.c index d0a3cbf3666bef663c362994d4b8d42f92ed74a4..94ac6b5f50b7578ec163a9e8bc55600aa126f643 100644 --- a/bsp/stm32f429-armfly/drivers/board.c +++ b/bsp/stm32f429-armfly/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32f429-armfly/drivers/board.h b/bsp/stm32f429-armfly/drivers/board.h index 6c24b4b8665e696da6576d66983526be290376bf..f9aeb2f508c91d6d4c5a166b090ea15fc26fc8cd 100644 --- a/bsp/stm32f429-armfly/drivers/board.h +++ b/bsp/stm32f429-armfly/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_eth.c b/bsp/stm32f429-armfly/drivers/drv_eth.c index b4bf070ab81bbcff1dbd53f2658383dc3e0be438..d7754d218316e1bfa6fb59fa07040d318e99f334 100644 --- a/bsp/stm32f429-armfly/drivers/drv_eth.c +++ b/bsp/stm32f429-armfly/drivers/drv_eth.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_ft5x06.c b/bsp/stm32f429-armfly/drivers/drv_ft5x06.c index 70be723c50ae5fa3513f4989be299931f420c2a0..077ee84e23370f92e30488701e43da6f2e80c296 100644 --- a/bsp/stm32f429-armfly/drivers/drv_ft5x06.c +++ b/bsp/stm32f429-armfly/drivers/drv_ft5x06.c @@ -1,21 +1,7 @@ /* - * File : drv_ft5x06.c - * ft5x06 touch driver - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_i2c.c b/bsp/stm32f429-armfly/drivers/drv_i2c.c index d1ca48b0178f5318308d64f095ee634d0326d0a8..f3d3796a3cabd66bcb2508b02e63d026ca04e02b 100644 --- a/bsp/stm32f429-armfly/drivers/drv_i2c.c +++ b/bsp/stm32f429-armfly/drivers/drv_i2c.c @@ -1,11 +1,7 @@ /* - * File : drv_iic.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_lcd.c b/bsp/stm32f429-armfly/drivers/drv_lcd.c index df68ae8db71fed9ea58d20d57d8facbcd422728e..96444d5b5f07eb41459e7d86608d5c749807e79f 100644 --- a/bsp/stm32f429-armfly/drivers/drv_lcd.c +++ b/bsp/stm32f429-armfly/drivers/drv_lcd.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_sdram.c b/bsp/stm32f429-armfly/drivers/drv_sdram.c index 0b3c64272833f187a23a3d73455be5255c9cab19..0a9fa7e406adea83185f5558b0435bc12bde3226 100644 --- a/bsp/stm32f429-armfly/drivers/drv_sdram.c +++ b/bsp/stm32f429-armfly/drivers/drv_sdram.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_spi.c b/bsp/stm32f429-armfly/drivers/drv_spi.c index 6f439d6de73417980695a431fe4cb8f50433f6a7..e8ab90d0326ebc354ec6b37c25247484079cddeb 100644 --- a/bsp/stm32f429-armfly/drivers/drv_spi.c +++ b/bsp/stm32f429-armfly/drivers/drv_spi.c @@ -1,11 +1,7 @@ /* - * File : drv_spi.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_spi.h b/bsp/stm32f429-armfly/drivers/drv_spi.h index 17e3d3852c423c076ea6739aa7260b38aa1d3522..e1cc65c645480db0031522829a5d6d3eb81809bf 100644 --- a/bsp/stm32f429-armfly/drivers/drv_spi.h +++ b/bsp/stm32f429-armfly/drivers/drv_spi.h @@ -1,11 +1,7 @@ /* - * File : stm32f20x_40x_spi.h - * 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 diff --git a/bsp/stm32f429-armfly/drivers/drv_spi_flash.c b/bsp/stm32f429-armfly/drivers/drv_spi_flash.c index 00b8cb75e05513b1af4160b9536d0affe1f574de..ff6e75e7f59848fc0397c1cde3b3f37355689f28 100644 --- a/bsp/stm32f429-armfly/drivers/drv_spi_flash.c +++ b/bsp/stm32f429-armfly/drivers/drv_spi_flash.c @@ -1,11 +1,7 @@ /* - * File : stm32f20x_40x_spi.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 diff --git a/bsp/stm32f429-armfly/drivers/usart.c b/bsp/stm32f429-armfly/drivers/usart.c index b6606e90f876e1ec85a606d8983cacd14a5a5683..ecca8b7307244e22527d280eb472f51ca9b0de9b 100644 --- a/bsp/stm32f429-armfly/drivers/usart.c +++ b/bsp/stm32f429-armfly/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f429-armfly/drivers/usart.h b/bsp/stm32f429-armfly/drivers/usart.h index 3faf85fcde7623e1385587d2f69ebf89a4c23a3b..12cfd253cf351d42e86db41310a3a2f8856bc800 100644 --- a/bsp/stm32f429-armfly/drivers/usart.h +++ b/bsp/stm32f429-armfly/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/applications/main.c b/bsp/stm32f4xx-HAL/applications/main.c index c9008d5a826413c5838c377f765638e6b4e26cae..c68bad6501dabdfbe1eaed4b0e75e265d33893a6 100644 --- a/bsp/stm32f4xx-HAL/applications/main.c +++ b/bsp/stm32f4xx-HAL/applications/main.c @@ -1,11 +1,7 @@ /* - * File : main.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/board.c b/bsp/stm32f4xx-HAL/drivers/board.c index 99b868903a9055ddcd37276528e1f8cbc6848335..b618bd36eeda7966783f388af5f0c484ebe9d142 100644 --- a/bsp/stm32f4xx-HAL/drivers/board.c +++ b/bsp/stm32f4xx-HAL/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/board.h b/bsp/stm32f4xx-HAL/drivers/board.h index 2b9fc4807f257ecc67baea7919f177f66d9bae4d..fb46678a0dd90ecc995153ef3d08da5ed9144f2f 100644 --- a/bsp/stm32f4xx-HAL/drivers/board.h +++ b/bsp/stm32f4xx-HAL/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_can.c b/bsp/stm32f4xx-HAL/drivers/drv_can.c index a5ef6def545f7f52dbf885872f3e004b371dede6..603a2a745b908ea9b4d86c0021ef9d51b90fe031 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_can.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_can.c @@ -1,21 +1,7 @@ /* - * File : drv_can.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_can.h b/bsp/stm32f4xx-HAL/drivers/drv_can.h index 14c0d3eb22de0a215357678f5ac3f6ec77548556..e8c24f1a73c8476949132387c68534ad5c8cc7d9 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_can.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_can.h @@ -1,11 +1,7 @@ /* - * File : drv_can.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2018, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_gpio.c b/bsp/stm32f4xx-HAL/drivers/drv_gpio.c index 702305d8fd96dc79fadf5dee371d340636f80c3d..f000da5ede939e0587d36b878758beb03460bf9e 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_gpio.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_gpio.c @@ -1,11 +1,7 @@ /* - * File : drv_gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_gpio.h b/bsp/stm32f4xx-HAL/drivers/drv_gpio.h index 7928233b8677a05e277f05cd43862baf1d20512f..a258b78194c0a64331171151643f95331ba9ba92 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_gpio.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_gpio.h @@ -1,11 +1,7 @@ /* - * File : drv_gpio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_i2c.c b/bsp/stm32f4xx-HAL/drivers/drv_i2c.c index 4cc04ae292e27e9ae60490d086b98f09eda50a7f..3109e95bd3d3033e87a372313496d0e0fba7ab1a 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_i2c.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_i2c.c @@ -1,21 +1,7 @@ /* - * File : drv_i2c.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_i2c.h b/bsp/stm32f4xx-HAL/drivers/drv_i2c.h index 04c0b2b7735a28b6abd03660f924faa66f495f49..ba4004e316197a4ccbef6036e72db1e8a2eb4933 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_i2c.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_i2c.h @@ -1,21 +1,8 @@ /* - * File : drv_i2c.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, 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. +/* + * Copyright (c) 2006-2018, RT-Thread Development Team * - * 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_iwg.c b/bsp/stm32f4xx-HAL/drivers/drv_iwg.c index ecacad14450b36592e048fe18964256814c9ec54..feda1f3e349a53f8cf3e31522f4f98bf0cbb0a2c 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_iwg.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_iwg.c @@ -1,11 +1,7 @@ /* - * File : drv_iwg.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 @@ -36,7 +32,7 @@ static rt_err_t drv_control(rt_watchdog_t *wdt, int cmd, void *arg) switch (cmd) { case RT_DEVICE_CTRL_WDT_SET_TIMEOUT: - hiwdg.Init.Reload = (rt_uint32_t)arg; + hiwdg.Init.Reload = (rt_uint32_t)*arg; if (HAL_IWDG_Init(&hiwdg) != HAL_OK) { return RT_ERROR; diff --git a/bsp/stm32f4xx-HAL/drivers/drv_iwg.h b/bsp/stm32f4xx-HAL/drivers/drv_iwg.h index a2593efcea242d32eb6930fff0bf465ccf06dd21..566138b6f9ea7a855c9d7e9702670e01255796b3 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_iwg.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_iwg.h @@ -1,11 +1,7 @@ /* - * File : drv_iwg.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_pwm.c b/bsp/stm32f4xx-HAL/drivers/drv_pwm.c index d66d8feecb4bdc4f9d875293e3999a48ef78a251..58b611e04f203503adb78779ab6ae19e97e3cc35 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_pwm.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_pwm.c @@ -1,21 +1,7 @@ /* - * File : drv_pwm.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_rtc.c b/bsp/stm32f4xx-HAL/drivers/drv_rtc.c index 73bbf9d6cb4bdcb4b2fe6d5b679884444fb7de7b..088c95f1c6372e0358c3ab63e6fee80248c5b41b 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_rtc.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_rtc.c @@ -1,21 +1,7 @@ /* - * File : drv_rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_rtc.h b/bsp/stm32f4xx-HAL/drivers/drv_rtc.h index 4e94ed1c42ba5da8e9339d8745d3143c03aa7e96..f1b6d7f754a9c0389ed0d9e2529797af2dc76672 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_rtc.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_rtc.h @@ -1,21 +1,7 @@ /* - * File : drv_rtc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_spi.c b/bsp/stm32f4xx-HAL/drivers/drv_spi.c index 594383509a7ef62c5a4c3b4f97cc1f639c3f2602..0841ae1cd2914d2ba8a3f60738d4badc5b6d29d1 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_spi.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_spi.c @@ -1,11 +1,7 @@ /* - * File : gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_spi.h b/bsp/stm32f4xx-HAL/drivers/drv_spi.h index 21cae8450e7eca0d77cbe6d384ccfd52c427084e..7abba78b7402b84e6d502b2e3379d4a7a0a4c1e8 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_spi.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_spi.h @@ -1,11 +1,7 @@ /* - * File : gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_spiflash.c b/bsp/stm32f4xx-HAL/drivers/drv_spiflash.c index cf30b949a6ef9f13e09ee5a84393b435cbe41c56..4eaedb899128d0ab4d26687108701bb367cbfefb 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_spiflash.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_spiflash.c @@ -1,11 +1,7 @@ /* - * File : gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_spiflash.h b/bsp/stm32f4xx-HAL/drivers/drv_spiflash.h index be546ffe81131d6dcff7cdaeeb52a9d093c17c1e..8cacc38a9ac198ab05299f5ebcf8fa6102b01c2d 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_spiflash.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_spiflash.h @@ -1,11 +1,7 @@ /* - * File : drv_spiflash.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_usart.h b/bsp/stm32f4xx-HAL/drivers/drv_usart.h index 1500bf07c271256256668373f0a48050d81d3798..c0bd8b3d987db4c81743eb70da5f399d75e28f75 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_usart.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_usbd.c b/bsp/stm32f4xx-HAL/drivers/drv_usbd.c index 7e0271e9dd09e6224ad6712fa6870011dc8cc7c8..9f06e5167c51b0318908af27c2a5e533cdabdab6 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_usbd.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_usbd.c @@ -1,11 +1,7 @@ /* - * File : stm32_usbd.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_usbd.h b/bsp/stm32f4xx-HAL/drivers/drv_usbd.h index 0f748e1c6b73f826c861f922023837bc251880f2..942f234062919a6913d5fedacf7e4bd7883287a3 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_usbd.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_usbd.h @@ -1,11 +1,7 @@ /* - * File : stm32_usbd.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_usbh.c b/bsp/stm32f4xx-HAL/drivers/drv_usbh.c index d640f5a6c3a4588d46a38da9d6e3a2f7ca4dfa64..6065e06f8ea01b71b0de4104f151963fabc22421 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_usbh.c +++ b/bsp/stm32f4xx-HAL/drivers/drv_usbh.c @@ -1,11 +1,7 @@ /* - * File : stm32_usbh.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f4xx-HAL/drivers/drv_usbh.h b/bsp/stm32f4xx-HAL/drivers/drv_usbh.h index 9c245555a3b804777e4c740db00b625a99dff622..8a7e0ff071ba2842935b8acc38d4a454c9081c1d 100644 --- a/bsp/stm32f4xx-HAL/drivers/drv_usbh.h +++ b/bsp/stm32f4xx-HAL/drivers/drv_usbh.h @@ -1,11 +1,7 @@ /* - * File : stm32_usbh.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32f7-disco/applications/main.c b/bsp/stm32f7-disco/applications/main.c index a0b14aee4188d4f5201176cbb0e34c12ae54e09d..6ac61f0e2c8fc953dd1e7fbc9c5c2e4bae744cf4 100644 --- a/bsp/stm32f7-disco/applications/main.c +++ b/bsp/stm32f7-disco/applications/main.c @@ -1,21 +1,7 @@ /* - * File : main.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f7-disco/drivers/board.c b/bsp/stm32f7-disco/drivers/board.c index aee2db1d4b9ed46b758890f91bb3174b3146e603..c86025d292d06357cdcbdc8383ceba1e370e76e3 100644 --- a/bsp/stm32f7-disco/drivers/board.c +++ b/bsp/stm32f7-disco/drivers/board.c @@ -1,21 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f7-disco/drivers/board.h b/bsp/stm32f7-disco/drivers/board.h index a7aef0d6910f259c67a6133100a28d47fc71d327..20e7290b947606d15f16de52ada69002c2dc58e0 100644 --- a/bsp/stm32f7-disco/drivers/board.h +++ b/bsp/stm32f7-disco/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32f7-disco/drivers/drv_cache.c b/bsp/stm32f7-disco/drivers/drv_cache.c index 35216b6b7cddc2ade2ccda15b2d1b6ee73c1e369..d5ac4eb441c0b1f9b5b9d70e979d50455772cf80 100644 --- a/bsp/stm32f7-disco/drivers/drv_cache.c +++ b/bsp/stm32f7-disco/drivers/drv_cache.c @@ -1,21 +1,7 @@ /* - * File : drv_cache.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f7-disco/drivers/drv_mpu.c b/bsp/stm32f7-disco/drivers/drv_mpu.c index 825b82ff9d998ba42e53ea9afed317611286a99a..09857d3cf5397b15edb8ad1b7e7817b89cfeabb2 100644 --- a/bsp/stm32f7-disco/drivers/drv_mpu.c +++ b/bsp/stm32f7-disco/drivers/drv_mpu.c @@ -1,21 +1,7 @@ /* - * File : drv_mpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f7-disco/drivers/drv_mpu.h b/bsp/stm32f7-disco/drivers/drv_mpu.h index 675be55ca47275a30480dfd89ca174999f9250bf..8e2e4a699e122e2dd3b3dfd9e358266acf3a183a 100644 --- a/bsp/stm32f7-disco/drivers/drv_mpu.h +++ b/bsp/stm32f7-disco/drivers/drv_mpu.h @@ -1,21 +1,7 @@ /* - * File : drv_mpu.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f7-disco/drivers/drv_sdram.c b/bsp/stm32f7-disco/drivers/drv_sdram.c index c141c26af2614636f67d42a3bdf5dec248499db9..b5afa0361db7e3d9f047043e8e53c7f857ab235d 100644 --- a/bsp/stm32f7-disco/drivers/drv_sdram.c +++ b/bsp/stm32f7-disco/drivers/drv_sdram.c @@ -1,21 +1,7 @@ /* - * File : drv_sdram.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f7-disco/drivers/drv_sdram.h b/bsp/stm32f7-disco/drivers/drv_sdram.h index f3b66e8d27963ffd0a00cce6bbdf3fbd0f55859f..91b9cc2c9ab4793a7b8f6572ec796f387ad3d4ce 100644 --- a/bsp/stm32f7-disco/drivers/drv_sdram.h +++ b/bsp/stm32f7-disco/drivers/drv_sdram.h @@ -1,15 +1,12 @@ /* - * File : drv_sdram.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015 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 - * 2015-08-03 xiaonong The first version for STM32F7 + * 2015-08-03 xiaonong The first version for STM32F7 */ #ifndef __DRV_SDRAM_H__ diff --git a/bsp/stm32f7-disco/drivers/drv_usart.c b/bsp/stm32f7-disco/drivers/drv_usart.c index 59471c9972762dbf8b519f1588a36bf4a6d39dc8..5d54d6903b6cc622a6edde3ed6bdde2e3b62fbc7 100644 --- a/bsp/stm32f7-disco/drivers/drv_usart.c +++ b/bsp/stm32f7-disco/drivers/drv_usart.c @@ -1,21 +1,7 @@ /* - * File : drv_usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32f7-disco/drivers/drv_usart.h b/bsp/stm32f7-disco/drivers/drv_usart.h index 184bffbefd4f234e49d1ca4b969090189c7c2e56..def63ebcae9af8f4b9a63c02d898807b3316bb8a 100644 --- a/bsp/stm32f7-disco/drivers/drv_usart.h +++ b/bsp/stm32f7-disco/drivers/drv_usart.h @@ -1,21 +1,7 @@ /* - * File : drv_usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/applications/main.c b/bsp/stm32h743-nucleo/applications/main.c index 70fa4849661e3bfd678440b018cdb58994759921..a41c241683ad76540b460716497da4ee2be72b3a 100644 --- a/bsp/stm32h743-nucleo/applications/main.c +++ b/bsp/stm32h743-nucleo/applications/main.c @@ -1,21 +1,7 @@ /* - * File : main.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/applications/sram.c b/bsp/stm32h743-nucleo/applications/sram.c index 3b38fd3053867b9a07ca8f004e34f95a2477b38f..8186a7e8a3725986e3dcb333920cb998aaa9bc77 100644 --- a/bsp/stm32h743-nucleo/applications/sram.c +++ b/bsp/stm32h743-nucleo/applications/sram.c @@ -1,21 +1,7 @@ /* -* File : sram.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/applications/sram.h b/bsp/stm32h743-nucleo/applications/sram.h index 03c2b0a2887b0bbe563fa846f6cb56a76440f1e1..00d324afb5324c1adfc3929bfca4c6a6b51723bf 100644 --- a/bsp/stm32h743-nucleo/applications/sram.h +++ b/bsp/stm32h743-nucleo/applications/sram.h @@ -1,11 +1,7 @@ /* - * File : sram.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015 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 diff --git a/bsp/stm32h743-nucleo/drivers/board.c b/bsp/stm32h743-nucleo/drivers/board.c index 26635ff2775d26796056d781f98d353a1bf25d3b..ee9310e14c39ad73fc86451d7df27b9376c0c6d6 100644 --- a/bsp/stm32h743-nucleo/drivers/board.c +++ b/bsp/stm32h743-nucleo/drivers/board.c @@ -1,21 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/drivers/board.h b/bsp/stm32h743-nucleo/drivers/board.h index 6a597b6b0937a984f34b3976c4c61095f27183a9..da8f6d155b7056389c29d21f1a443197e7998bdc 100644 --- a/bsp/stm32h743-nucleo/drivers/board.h +++ b/bsp/stm32h743-nucleo/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32h743-nucleo/drivers/drv_led.c b/bsp/stm32h743-nucleo/drivers/drv_led.c index a859be3eebd06f0c70b4e93c036862dca9e1ad7d..b4d164d2d5432ea1f7fea6e2f29721f75a5f11b3 100644 --- a/bsp/stm32h743-nucleo/drivers/drv_led.c +++ b/bsp/stm32h743-nucleo/drivers/drv_led.c @@ -1,21 +1,7 @@ /* - * File : drv_led.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/drivers/drv_led.h b/bsp/stm32h743-nucleo/drivers/drv_led.h index bf8fd3e48bd616e8552a0a600385bf2c2e219575..5758b559a9c33698dc59f99043f5f0e60c95f382 100644 --- a/bsp/stm32h743-nucleo/drivers/drv_led.h +++ b/bsp/stm32h743-nucleo/drivers/drv_led.h @@ -1,11 +1,7 @@ /* - * File : drv_led.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32h743-nucleo/drivers/drv_mpu.c b/bsp/stm32h743-nucleo/drivers/drv_mpu.c index 1f091a8e7fd6d45469554b661df768414d307af8..9b25f36d591a673800946f41dfcf44b859c92d5a 100644 --- a/bsp/stm32h743-nucleo/drivers/drv_mpu.c +++ b/bsp/stm32h743-nucleo/drivers/drv_mpu.c @@ -1,21 +1,7 @@ /* - * File : drv_mpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/drivers/drv_mpu.h b/bsp/stm32h743-nucleo/drivers/drv_mpu.h index 2f06d4ce234c172b14b89a0e8554b23c5f258c6c..4a0cc43674afcf45ad2c53ffa6e794ef8c9f9577 100644 --- a/bsp/stm32h743-nucleo/drivers/drv_mpu.h +++ b/bsp/stm32h743-nucleo/drivers/drv_mpu.h @@ -1,11 +1,7 @@ /* - * File : drv_mpu.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32h743-nucleo/drivers/drv_usart.c b/bsp/stm32h743-nucleo/drivers/drv_usart.c index ec18809c7772a20bb54a6bf36e4c290fd5197aa4..e8620b65eee6c47c33d31ca909c636dea5f11da9 100644 --- a/bsp/stm32h743-nucleo/drivers/drv_usart.c +++ b/bsp/stm32h743-nucleo/drivers/drv_usart.c @@ -1,21 +1,7 @@ /* - * File : drv_usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/drivers/drv_usart.h b/bsp/stm32h743-nucleo/drivers/drv_usart.h index fcf01177bb418d25d6ebb76e76ef3db2b95840d2..75f83ffe9355fddafa0ccc7d6a65ee734e0ca040 100644 --- a/bsp/stm32h743-nucleo/drivers/drv_usart.h +++ b/bsp/stm32h743-nucleo/drivers/drv_usart.h @@ -1,11 +1,7 @@ /* - * File : drv_usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32h743-nucleo/drivers/lan8742a.c b/bsp/stm32h743-nucleo/drivers/lan8742a.c index 4e6a71f3efc8b95d34974619f3af7e511665bd1e..8624b7f0bd47cb8fe6c6c442fb73fb324db9b977 100644 --- a/bsp/stm32h743-nucleo/drivers/lan8742a.c +++ b/bsp/stm32h743-nucleo/drivers/lan8742a.c @@ -1,21 +1,7 @@ /* - * File : drv_mpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32h743-nucleo/drivers/lan8742a.h b/bsp/stm32h743-nucleo/drivers/lan8742a.h index 56d6fbf160de3f0c790c5438e82bfc4095a4c635..c0c14ab332fef8a3ec29b6b068890f46ab022746 100644 --- a/bsp/stm32h743-nucleo/drivers/lan8742a.h +++ b/bsp/stm32h743-nucleo/drivers/lan8742a.h @@ -1,11 +1,7 @@ /* - * File : lan8742a.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32l072/app/application.c b/bsp/stm32l072/app/application.c index f0e9932a65d4bea642ffe871666e81b67443edf4..aad725735e59a7b4f20894fd88abd8ea26b1e94f 100644 --- a/bsp/stm32l072/app/application.c +++ b/bsp/stm32l072/app/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32l072/app/startup.c b/bsp/stm32l072/app/startup.c index 9373bdcf969f90660e83fd957b1bd5513ce7a6fd..b1342f76d9ea7bdb75a278b76ff205d5f4771a39 100644 --- a/bsp/stm32l072/app/startup.c +++ b/bsp/stm32l072/app/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32l072/board/board.c b/bsp/stm32l072/board/board.c index 37f96c586bfeb2dfb72dbf8e543ec5c42bf0de3e..923af2e8b976ac41886cec8cce9ff6e319372884 100644 --- a/bsp/stm32l072/board/board.c +++ b/bsp/stm32l072/board/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32l072/board/board.h b/bsp/stm32l072/board/board.h index 5e974466106447e9bbd5606985de312aabbfdda4..be00344b8f9541b9318380e1d78a315fdd7258b8 100644 --- a/bsp/stm32l072/board/board.h +++ b/bsp/stm32l072/board/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32l072/board/drv_spi.c b/bsp/stm32l072/board/drv_spi.c index ac1311937d12e962b09bc7ab42fe2d4356c82bf2..b96362902418850faccd7b280b3144ff0a44cd78 100644 --- a/bsp/stm32l072/board/drv_spi.c +++ b/bsp/stm32l072/board/drv_spi.c @@ -1,11 +1,7 @@ /* - * File : drv_spi.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32l072/board/gpio.c b/bsp/stm32l072/board/gpio.c index 30295eff18463d39a2a3178158da65196eb0a3e7..da5660e3f3c2e628681d7e5f010e035fbe1bcb89 100644 --- a/bsp/stm32l072/board/gpio.c +++ b/bsp/stm32l072/board/gpio.c @@ -1,11 +1,7 @@ /* - * File : gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32l072/board/usart.c b/bsp/stm32l072/board/usart.c index a3880c82508d8bc92127ae4c582136dd234acc16..9b016cefe11e21a419bea9a17f3d97d4ab3dadfc 100644 --- a/bsp/stm32l072/board/usart.c +++ b/bsp/stm32l072/board/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/bsp/stm32l072/board/usart.h b/bsp/stm32l072/board/usart.h index ffc55552b3dbf06759714e889d1a65a6360b5fce..cb48abde4b1dc2414ac1883c62cf542df9dbc2b6 100644 --- a/bsp/stm32l072/board/usart.h +++ b/bsp/stm32l072/board/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32l475-iot-disco/applications/application.c b/bsp/stm32l475-iot-disco/applications/application.c index b66b0dd93e3773104a28f4ff033b35853f75ce9a..871e843f16b649efcb172733bbfe8cc7dd1fae8d 100644 --- a/bsp/stm32l475-iot-disco/applications/application.c +++ b/bsp/stm32l475-iot-disco/applications/application.c @@ -1,11 +1,7 @@ /* - * File : application.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/bsp/stm32l475-iot-disco/applications/startup.c b/bsp/stm32l475-iot-disco/applications/startup.c index f1e3c185bbc85d233a0adacf91b6ab829c05d561..f726f8d854c073208dd0d8eb85b9962e49655158 100644 --- a/bsp/stm32l475-iot-disco/applications/startup.c +++ b/bsp/stm32l475-iot-disco/applications/startup.c @@ -1,11 +1,7 @@ /* - * File : startup.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/bsp/stm32l475-iot-disco/drivers/board.c b/bsp/stm32l475-iot-disco/drivers/board.c index 5164ca564cdea8da581ec4e54faabd58c1d878fe..689f45b3f51b38da86a845ef05500450819227fd 100644 --- a/bsp/stm32l475-iot-disco/drivers/board.c +++ b/bsp/stm32l475-iot-disco/drivers/board.c @@ -1,11 +1,7 @@ /* - * File : board.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 diff --git a/bsp/stm32l475-iot-disco/drivers/board.h b/bsp/stm32l475-iot-disco/drivers/board.h index b733e58d12c0e709b26985bde8e90f01a87c0d9f..65fd35f9d1bf6a87738dedd2c7ce0ad02fe707a3 100644 --- a/bsp/stm32l475-iot-disco/drivers/board.h +++ b/bsp/stm32l475-iot-disco/drivers/board.h @@ -1,11 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32l475-iot-disco/drivers/usart.c b/bsp/stm32l475-iot-disco/drivers/usart.c index febe9545a6ced84047c81f5c1ce96083a309e62c..fa5a68e7cb7cca357920d8af91cd67d955ae1d19 100644 --- a/bsp/stm32l475-iot-disco/drivers/usart.c +++ b/bsp/stm32l475-iot-disco/drivers/usart.c @@ -1,11 +1,7 @@ /* - * File : usart.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32l475-iot-disco/drivers/usart.h b/bsp/stm32l475-iot-disco/drivers/usart.h index 3faf85fcde7623e1385587d2f69ebf89a4c23a3b..12cfd253cf351d42e86db41310a3a2f8856bc800 100644 --- a/bsp/stm32l475-iot-disco/drivers/usart.h +++ b/bsp/stm32l475-iot-disco/drivers/usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/bsp/stm32l476-nucleo/applications/main.c b/bsp/stm32l476-nucleo/applications/main.c index 5f289cf43d2e1758ba8f68040218165fd2ac9c93..d62b7bff68820cdd6fd57f1f33a13d2cc5bba22d 100644 --- a/bsp/stm32l476-nucleo/applications/main.c +++ b/bsp/stm32l476-nucleo/applications/main.c @@ -1,21 +1,7 @@ /* - * File : main.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32l476-nucleo/drivers/board.c b/bsp/stm32l476-nucleo/drivers/board.c index 063e5806ff09598b44ac83b2d5b6c67b9f3f9987..4c5d7d8313d21a01b030904161c22265ed0f1f1f 100644 --- a/bsp/stm32l476-nucleo/drivers/board.c +++ b/bsp/stm32l476-nucleo/drivers/board.c @@ -1,21 +1,7 @@ /* - * File : board.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32l476-nucleo/drivers/board.h b/bsp/stm32l476-nucleo/drivers/board.h index 1578052089da10352ce4b21e8ee994b8406698ba..dee99dd05314b55a89d58d03a7f22bb6fbec1329 100644 --- a/bsp/stm32l476-nucleo/drivers/board.h +++ b/bsp/stm32l476-nucleo/drivers/board.h @@ -1,21 +1,7 @@ /* - * File : board.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32l476-nucleo/drivers/drv_gpio.c b/bsp/stm32l476-nucleo/drivers/drv_gpio.c index 92b4697dd1aa366f9b4b57d2e1af86f9204f4318..7ebe789cd6cd6105f9db5525ee960cae2eca4f63 100644 --- a/bsp/stm32l476-nucleo/drivers/drv_gpio.c +++ b/bsp/stm32l476-nucleo/drivers/drv_gpio.c @@ -1,21 +1,7 @@ /* - * File : drv_gpio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/bsp/stm32l476-nucleo/drivers/drv_gpio.h b/bsp/stm32l476-nucleo/drivers/drv_gpio.h index e8b3dae79e706531456356baff96320340dee9d7..90ded72340ddef58aa1abb5d4d0516ee01d7edc0 100644 --- a/bsp/stm32l476-nucleo/drivers/drv_gpio.h +++ b/bsp/stm32l476-nucleo/drivers/drv_gpio.h @@ -1,11 +1,7 @@ /* - * File : drv_gpio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development 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 diff --git a/bsp/stm32l476-nucleo/drivers/drv_usart.h b/bsp/stm32l476-nucleo/drivers/drv_usart.h index 7fc3172209cfbcc90b158386c6987250e72bfd47..fd1f519abce2efe91860e292efbf273902dd66de 100644 --- a/bsp/stm32l476-nucleo/drivers/drv_usart.h +++ b/bsp/stm32l476-nucleo/drivers/drv_usart.h @@ -1,11 +1,7 @@ /* - * File : usart.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/components/cplusplus/Lock.h b/components/cplusplus/Lock.h index 2d8cbe58954860da5d15f83101c9aad810c24051..08d57c4850a909e45a8a2a3486800b78c689e471 100644 --- a/components/cplusplus/Lock.h +++ b/components/cplusplus/Lock.h @@ -1,21 +1,7 @@ /* - * File : Lock.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/cplusplus/Mail.h b/components/cplusplus/Mail.h index c812aa0bd7818b27dd0948c6a7538deb3636aab5..e6b11af9e8e28ee3df8fe93ef645bd216492a0fc 100644 --- a/components/cplusplus/Mail.h +++ b/components/cplusplus/Mail.h @@ -1,21 +1,7 @@ /* - * File : Mail.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/cplusplus/Mutex.cpp b/components/cplusplus/Mutex.cpp index c8dbbe6598e88a2c15e96e9833f0972f85f81c7a..229e842446659f74f378fad8337b2c656fdb3aa1 100644 --- a/components/cplusplus/Mutex.cpp +++ b/components/cplusplus/Mutex.cpp @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include "Mutex.h" using namespace rtthread; diff --git a/components/cplusplus/Mutex.h b/components/cplusplus/Mutex.h index b4109751e500bd424a0f44d07155868ce9d43c9a..4a54c41ebbbbb665d5564e2085d4b104450bea55 100644 --- a/components/cplusplus/Mutex.h +++ b/components/cplusplus/Mutex.h @@ -1,21 +1,7 @@ /* - * File : Mutex.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/cplusplus/Queue.h b/components/cplusplus/Queue.h index b011dd5d28855e66c8fa7aec46492a844015182e..fba64bf51b38559daed3374e14e9c1087ea74448 100644 --- a/components/cplusplus/Queue.h +++ b/components/cplusplus/Queue.h @@ -1,21 +1,7 @@ /* - * File : Queue.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/cplusplus/Semaphore.cpp b/components/cplusplus/Semaphore.cpp index 2579bcb041f8ff3d6901efb8e902a4a089006ff1..c977a27c1a34953ba6501e96e5cff92e13c1dfab 100644 --- a/components/cplusplus/Semaphore.cpp +++ b/components/cplusplus/Semaphore.cpp @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include "Semaphore.h" using namespace rtthread; diff --git a/components/cplusplus/Semaphore.h b/components/cplusplus/Semaphore.h index 6c09b198c67b9986d34d774692b28e7540594024..cebaf9123494def737a57f3bac55cbaa40d853ad 100644 --- a/components/cplusplus/Semaphore.h +++ b/components/cplusplus/Semaphore.h @@ -1,21 +1,7 @@ /* - * File : Semaphore.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/cplusplus/Thread.cpp b/components/cplusplus/Thread.cpp index a01bd95e4ba09418f4a222e9dc0738cfe5c15011..0f6315d178f79ff61ca26ae7439a52f790c9a845 100644 --- a/components/cplusplus/Thread.cpp +++ b/components/cplusplus/Thread.cpp @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include "Thread.h" using namespace rtthread; diff --git a/components/cplusplus/Thread.h b/components/cplusplus/Thread.h index 78bbd77d1f6fa9c47af27cfb472a1ae3e751e1a7..9b6cf30884c971ee9f3644707d00e12508cd8f95 100644 --- a/components/cplusplus/Thread.h +++ b/components/cplusplus/Thread.h @@ -1,21 +1,7 @@ /* - * File : Thread.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/cplusplus/crt.cpp b/components/cplusplus/crt.cpp index b6455f73f44f49a518e56f4e69ff1d4ffb58af94..cac1e5fa575e010db472431e0aaf5e2eef95fe9f 100644 --- a/components/cplusplus/crt.cpp +++ b/components/cplusplus/crt.cpp @@ -1,22 +1,8 @@ /* -* File : crt.cpp -* This file is part of Device File System in RT-Thread RTOS -* COPYRIGHT (C) 2008-2015, 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. -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2015-03-07 Bernard Add copyright header. diff --git a/components/cplusplus/crt.h b/components/cplusplus/crt.h index 105aa0e4fc9d665d5183396cab141c38f36303db..6228dab2a98a5f115a5820625708df219587dbdf 100644 --- a/components/cplusplus/crt.h +++ b/components/cplusplus/crt.h @@ -1,22 +1,8 @@ /* -* File : crt.h -* This file is part of Device File System in RT-Thread RTOS -* COPYRIGHT (C) 2008-2015, 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. -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2015-03-07 Bernard Add copyright header. diff --git a/components/cplusplus/crt_init.c b/components/cplusplus/crt_init.c index 2026131c5274b10c95fc8b25da2f4a223c44ba9c..e67939feeb9599ce884381f5f0b3c9557320665d 100755 --- a/components/cplusplus/crt_init.c +++ b/components/cplusplus/crt_init.c @@ -1,22 +1,8 @@ /* -* File : crt_init.c -* This file is part of Device File System in RT-Thread RTOS -* COPYRIGHT (C) 2008-2015, 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. -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2014-12-03 Bernard Add copyright header. diff --git a/components/dfs/filesystems/devfs/devfs.c b/components/dfs/filesystems/devfs/devfs.c index 4694b96c85e906066a7e6ec89d1fd22a7ed3a5bb..308031287444906211fb18fd708a33572d7208f7 100644 --- a/components/dfs/filesystems/devfs/devfs.c +++ b/components/dfs/filesystems/devfs/devfs.c @@ -1,21 +1,7 @@ /* - * File : devfs.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/devfs/devfs.h b/components/dfs/filesystems/devfs/devfs.h index ef320b78c85f98c29dc05e91a0629709c479ae3a..ab2134043cdae50fd1328afa803f562dd45c782a 100644 --- a/components/dfs/filesystems/devfs/devfs.h +++ b/components/dfs/filesystems/devfs/devfs.h @@ -1,21 +1,7 @@ /* - * File : devfs.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c index 2aa8fb652228323ae2f311f086a4bf0b29dac022..290cf7c4bb46ceeb876a96fdbaed6bedbbabc636 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -1,21 +1,7 @@ /* - * File : dfs_elm.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2008-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/elmfat/dfs_elm.h b/components/dfs/filesystems/elmfat/dfs_elm.h index da8a217005254a0960a673882e1cb2ae517b15fd..1e9f5770626de1ffed047b1a323742130aceabc5 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.h +++ b/components/dfs/filesystems/elmfat/dfs_elm.h @@ -1,21 +1,7 @@ /* - * File : dfs_elm.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2008-2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/jffs2/dfs_jffs2.c b/components/dfs/filesystems/jffs2/dfs_jffs2.c index 17e84f94c04460b0afe291c01213a382df6b85ca..c082c21d7351ebd61455ffc6fc369f643dfb82cb 100644 --- a/components/dfs/filesystems/jffs2/dfs_jffs2.c +++ b/components/dfs/filesystems/jffs2/dfs_jffs2.c @@ -1,21 +1,7 @@ /* - * File : dfs_jffs2.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2006-2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -304,7 +290,7 @@ static int dfs_jffs2_open(struct dfs_fd* file) return jffs2_result_to_dfs(result); } - /* save this pointer, it will be used when calling read()��write(), + /* save this pointer, it will be used when calling read(), write(), flush(), lessk(), and will be rt_free when calling close()*/ file->data = jffs2_file; file->pos = jffs2_file->f_offset; diff --git a/components/dfs/filesystems/jffs2/dfs_jffs2.h b/components/dfs/filesystems/jffs2/dfs_jffs2.h index 2eee076fcb9ac40cb83ae6e482bf612d7a595b8e..1be403a19c857464124f3679ca7bf1b796d6eef8 100644 --- a/components/dfs/filesystems/jffs2/dfs_jffs2.h +++ b/components/dfs/filesystems/jffs2/dfs_jffs2.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __DFS_JFFS2_H__ #define __DFS_JFFS2_H__ diff --git a/components/dfs/filesystems/nfs/dfs_nfs.c b/components/dfs/filesystems/nfs/dfs_nfs.c index 13242100074ace0422a5c336fb47caafe9e78be6..ea055b73c1b1c987c30ec70dc6b2282358660515 100644 --- a/components/dfs/filesystems/nfs/dfs_nfs.c +++ b/components/dfs/filesystems/nfs/dfs_nfs.c @@ -1,21 +1,7 @@ /* - * File : dfs_nfs.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/nfs/dfs_nfs.h b/components/dfs/filesystems/nfs/dfs_nfs.h index adc36f82d5c75a4115e90f784a5ae06d19ba7987..d607776ef1a15258f2556d42e08d10dd64f4d0cc 100644 --- a/components/dfs/filesystems/nfs/dfs_nfs.h +++ b/components/dfs/filesystems/nfs/dfs_nfs.h @@ -1,21 +1,7 @@ /* - * File : dfs_nfs.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/nfs/mount.h b/components/dfs/filesystems/nfs/mount.h index 4ce3714f985a5e276ce7ea60e34c1cfd7c51e812..aac0fd6bedf961d8fa3069618d46cf34b7d95bca 100644 --- a/components/dfs/filesystems/nfs/mount.h +++ b/components/dfs/filesystems/nfs/mount.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/components/dfs/filesystems/nfs/mount_clnt.c b/components/dfs/filesystems/nfs/mount_clnt.c index 504f1e99aeffcb55b16ea2fbdc03fb616759eb5b..5c65e75aa53e9660dc4db6d73382146e1a67ba97 100644 --- a/components/dfs/filesystems/nfs/mount_clnt.c +++ b/components/dfs/filesystems/nfs/mount_clnt.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/components/dfs/filesystems/nfs/mount_xdr.c b/components/dfs/filesystems/nfs/mount_xdr.c index e4d2b86f472d2fc383215d820f9170be75f117f4..8e191d3017dd60219f86b5f72af100991aa1f57a 100644 --- a/components/dfs/filesystems/nfs/mount_xdr.c +++ b/components/dfs/filesystems/nfs/mount_xdr.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/components/dfs/filesystems/nfs/nfs.h b/components/dfs/filesystems/nfs/nfs.h index 7e3e3671afef61f76985586066b7c7d0f245059f..34054b0084716fe5622e3d94a2cf0a876cb32f01 100644 --- a/components/dfs/filesystems/nfs/nfs.h +++ b/components/dfs/filesystems/nfs/nfs.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/components/dfs/filesystems/nfs/nfs_clnt.c b/components/dfs/filesystems/nfs/nfs_clnt.c index 913ad510a67e023ceb30eb6fe9d54a3ce005ec69..c17fee9e806e384bba28858790de452bfb6ae3f0 100644 --- a/components/dfs/filesystems/nfs/nfs_clnt.c +++ b/components/dfs/filesystems/nfs/nfs_clnt.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/components/dfs/filesystems/nfs/nfs_xdr.c b/components/dfs/filesystems/nfs/nfs_xdr.c index 72d6edc42aef3aaf0fd2b6c63e391759d6719dbf..4cd69ba7430d28691f900bb21c11d5431455ad84 100644 --- a/components/dfs/filesystems/nfs/nfs_xdr.c +++ b/components/dfs/filesystems/nfs/nfs_xdr.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/components/dfs/filesystems/nfs/rpc/auth.h b/components/dfs/filesystems/nfs/rpc/auth.h index 3351fbbf9558e56fd8932153198df44247cc54b1..f7dd76c237065d7766f3866e448370eff8cfe5fd 100644 --- a/components/dfs/filesystems/nfs/rpc/auth.h +++ b/components/dfs/filesystems/nfs/rpc/auth.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __AUTH_H__ #define __AUTH_H__ diff --git a/components/dfs/filesystems/nfs/rpc/auth_none.c b/components/dfs/filesystems/nfs/rpc/auth_none.c index 92947581d2ee2cee5f5d4926864edd03530a96ee..9f5ad0500272b4012b902406ce75ae145723983d 100644 --- a/components/dfs/filesystems/nfs/rpc/auth_none.c +++ b/components/dfs/filesystems/nfs/rpc/auth_none.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)auth_none.c 2.1 88/07/29 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/clnt.h b/components/dfs/filesystems/nfs/rpc/clnt.h index 527075ee84846785c1a7c435280006640cf1d7e3..e86f8be789aa60b31a940b5e0c169a24b5445aa6 100644 --- a/components/dfs/filesystems/nfs/rpc/clnt.h +++ b/components/dfs/filesystems/nfs/rpc/clnt.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)clnt.h 2.1 88/07/29 4.0 RPCSRC; from 1.31 88/02/08 SMI*/ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/clnt_generic.c b/components/dfs/filesystems/nfs/rpc/clnt_generic.c index a3de64a2f01a56b71f35c75fcfb20c7230005ddf..bd241b58355ec6aec2b85cd16239143322da3d9c 100644 --- a/components/dfs/filesystems/nfs/rpc/clnt_generic.c +++ b/components/dfs/filesystems/nfs/rpc/clnt_generic.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)clnt_generic.c 2.2 88/08/01 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/clnt_udp.c b/components/dfs/filesystems/nfs/rpc/clnt_udp.c index a69bc0621a6fbbff2d08e2ce202ac1ea9295e020..6b4f7bfb13720439fc94eab87f91eef0d5751a90 100644 --- a/components/dfs/filesystems/nfs/rpc/clnt_udp.c +++ b/components/dfs/filesystems/nfs/rpc/clnt_udp.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)clnt_udp.c 2.2 88/08/01 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/pmap.c b/components/dfs/filesystems/nfs/rpc/pmap.c index 4f2cf50c1e402704383ee03a7eaa00f19ab92565..dc5a2ccb8d1d02a1e248a38aa1b6a1a0c2949aee 100644 --- a/components/dfs/filesystems/nfs/rpc/pmap.c +++ b/components/dfs/filesystems/nfs/rpc/pmap.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include "pmap.h" #include "clnt.h" #include diff --git a/components/dfs/filesystems/nfs/rpc/pmap.h b/components/dfs/filesystems/nfs/rpc/pmap.h index aaf28a331ad71477c69c4c323ac233467b9a6c2d..8ae706c0aadcd056031badb6465df002160d0ddc 100644 --- a/components/dfs/filesystems/nfs/rpc/pmap.h +++ b/components/dfs/filesystems/nfs/rpc/pmap.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __RPC_PMAP_PROT_H__ #define __RPC_PMAP_PROT_H__ diff --git a/components/dfs/filesystems/nfs/rpc/rpc.h b/components/dfs/filesystems/nfs/rpc/rpc.h index 306939e2fe514fed70767788511a1918e298f961..7256d336a1c56f90eb16778660dc999c968be20f 100644 --- a/components/dfs/filesystems/nfs/rpc/rpc.h +++ b/components/dfs/filesystems/nfs/rpc/rpc.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)rpc.h 2.3 88/08/10 4.0 RPCSRC; from 1.9 88/02/08 SMI */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/rpc_msg.h b/components/dfs/filesystems/nfs/rpc/rpc_msg.h index bd32290990ee8728d55ee3e3abafa6272f5e968f..a21ca1ce7db7e7f2e191e82431c7c97eaac8b0f3 100644 --- a/components/dfs/filesystems/nfs/rpc/rpc_msg.h +++ b/components/dfs/filesystems/nfs/rpc/rpc_msg.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)rpc_msg.h 2.1 88/07/29 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/rpc_prot.c b/components/dfs/filesystems/nfs/rpc/rpc_prot.c index 21fc1f4ea4db0ae0a6ac5f0a15e473d0086b4fa2..427d7a11e495d31a5d3d3871674a6bf85f21a9e9 100644 --- a/components/dfs/filesystems/nfs/rpc/rpc_prot.c +++ b/components/dfs/filesystems/nfs/rpc/rpc_prot.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)rpc_prot.c 2.3 88/08/07 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/types.h b/components/dfs/filesystems/nfs/rpc/types.h index 310acf7f77b7ac63abda5551465f4a7a3c32a226..254fcd339c266b8996b628fa3956db7204a5441f 100644 --- a/components/dfs/filesystems/nfs/rpc/types.h +++ b/components/dfs/filesystems/nfs/rpc/types.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape diff --git a/components/dfs/filesystems/nfs/rpc/xdr.c b/components/dfs/filesystems/nfs/rpc/xdr.c index ec37d6beb9eb97d468d30227154c78bb7cbb3e3e..a6b1b67afb939f7f8c412f793f936b218d5f9e2c 100644 --- a/components/dfs/filesystems/nfs/rpc/xdr.c +++ b/components/dfs/filesystems/nfs/rpc/xdr.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)xdr.c 2.1 88/07/29 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/nfs/rpc/xdr.h b/components/dfs/filesystems/nfs/rpc/xdr.h index e4ab8844657f9333d69e385e46d894fa4ac1db12..fe38c4d12097aabcfcfb987e15d641afa8e1680e 100644 --- a/components/dfs/filesystems/nfs/rpc/xdr.h +++ b/components/dfs/filesystems/nfs/rpc/xdr.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape diff --git a/components/dfs/filesystems/nfs/rpc/xdr_mem.c b/components/dfs/filesystems/nfs/rpc/xdr_mem.c index d6baf858371b2100b0c52320207154132072943a..ca69ed364769d42aeb31105036b0b22916a85cde 100644 --- a/components/dfs/filesystems/nfs/rpc/xdr_mem.c +++ b/components/dfs/filesystems/nfs/rpc/xdr_mem.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* @(#)xdr_mem.c 2.1 88/07/29 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for diff --git a/components/dfs/filesystems/ramfs/dfs_ramfs.c b/components/dfs/filesystems/ramfs/dfs_ramfs.c index d7911a622d699f4af09edd87427e573556d6b16c..e851c7ef78abae0c35b1bc804d6b1fa0a7556bc3 100644 --- a/components/dfs/filesystems/ramfs/dfs_ramfs.c +++ b/components/dfs/filesystems/ramfs/dfs_ramfs.c @@ -1,21 +1,7 @@ /* - * File : dfs_ramfs.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/ramfs/dfs_ramfs.h b/components/dfs/filesystems/ramfs/dfs_ramfs.h index b568706f68b91847b752de56d6061f5cf940176d..9419784db9f7f69acee738f05450639f594f5994 100644 --- a/components/dfs/filesystems/ramfs/dfs_ramfs.h +++ b/components/dfs/filesystems/ramfs/dfs_ramfs.h @@ -1,21 +1,7 @@ /* - * File : dfs_ramfs.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/romfs/dfs_romfs.c b/components/dfs/filesystems/romfs/dfs_romfs.c index c842601dc8a280a6a355d9d3aa9bd207dea0ce4b..a953ac72d5624543aed98645c5cc763a5c52528b 100644 --- a/components/dfs/filesystems/romfs/dfs_romfs.c +++ b/components/dfs/filesystems/romfs/dfs_romfs.c @@ -1,21 +1,7 @@ /* - * File : dfs_romfs.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/romfs/dfs_romfs.h b/components/dfs/filesystems/romfs/dfs_romfs.h index d0898ecd9b671403fc7ec4e95b17c9e8fd5727d5..74b256c8a6fe137e0bbaddfa3b45fd9b0b5df882 100644 --- a/components/dfs/filesystems/romfs/dfs_romfs.h +++ b/components/dfs/filesystems/romfs/dfs_romfs.h @@ -1,21 +1,7 @@ /* - * File : dfs_romfs.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/romfs/romfs.c b/components/dfs/filesystems/romfs/romfs.c index 1bb885a57d78faf4731f2823041094d88b1b2359..1ea9f21d8ef984291857d7b5fbaaeff50a07278c 100644 --- a/components/dfs/filesystems/romfs/romfs.c +++ b/components/dfs/filesystems/romfs/romfs.c @@ -1,21 +1,7 @@ /* - * File : romfs.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/skeleton/skeleton.c b/components/dfs/filesystems/skeleton/skeleton.c index 0d96cbffc981240a67647a0e7206ccadfd40ab2f..30f0d4f629704e7db903e610851ca190f00d0b0d 100644 --- a/components/dfs/filesystems/skeleton/skeleton.c +++ b/components/dfs/filesystems/skeleton/skeleton.c @@ -1,21 +1,7 @@ /* - * File : skeleton.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/skeleton/skeleton.h b/components/dfs/filesystems/skeleton/skeleton.h index 844e91e4aebcd15e2d926b72969c1bc1e8f472f4..8a783eace579a4c38af9d95d6a17ea25e763ff17 100644 --- a/components/dfs/filesystems/skeleton/skeleton.h +++ b/components/dfs/filesystems/skeleton/skeleton.h @@ -1,21 +1,7 @@ /* - * File : skeleton.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/uffs/dfs_uffs.c b/components/dfs/filesystems/uffs/dfs_uffs.c index c3538ea23fc35c1e84cb4db832f19da24aa9acc6..b875d1eb00616a1c31c8ef82a21601b337cdae53 100644 --- a/components/dfs/filesystems/uffs/dfs_uffs.c +++ b/components/dfs/filesystems/uffs/dfs_uffs.c @@ -1,21 +1,7 @@ /* - * File : dfs_uffs.c - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -348,7 +334,7 @@ static int dfs_uffs_open(struct dfs_fd* file) return uffs_result_to_dfs(uffs_get_error()); } - /* save this pointer, it will be used when calling read()��write(), + /* save this pointer, it will be used when calling read(), write(), * flush(), seek(), and will be free when calling close()*/ file->data = (void *)fd; diff --git a/components/dfs/filesystems/uffs/dfs_uffs.h b/components/dfs/filesystems/uffs/dfs_uffs.h index 810ab7ebfe7c48fc2a85d89a3a9ca5fb62477b19..615d29036d88acf9b5973972f53d63a80116705d 100644 --- a/components/dfs/filesystems/uffs/dfs_uffs.h +++ b/components/dfs/filesystems/uffs/dfs_uffs.h @@ -1,21 +1,7 @@ /* - * File : dfs_uffs.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2004-2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/dfs/filesystems/uffs/uffs_rtthread.c b/components/dfs/filesystems/uffs/uffs_rtthread.c index 2bafca92bc74657ce2a028fca4297d206d31ff67..bad456f04c6e892da8c3d679e0c544b230e6ba20 100644 --- a/components/dfs/filesystems/uffs/uffs_rtthread.c +++ b/components/dfs/filesystems/uffs/uffs_rtthread.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* This file is part of UFFS, the Ultra-low-cost Flash File System. diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index c437b43829a2a9adf67b03011e592918cb3505b6..76cf419c0a7412db081b1bf074aafe181cb874b7 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -189,7 +189,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args) int mask = O_NONBLOCK | O_APPEND; flags &= mask; - fd->flags &= mask; + fd->flags &= ~mask; fd->flags |= flags; } return 0; diff --git a/components/dfs/src/dfs_posix.c b/components/dfs/src/dfs_posix.c index 3d863c4f98316c3631f313ea8f09c5ccdd75477c..898488a2aad7c0ca5b4ea87f1e21de61a737b07e 100644 --- a/components/dfs/src/dfs_posix.c +++ b/components/dfs/src/dfs_posix.c @@ -455,7 +455,7 @@ int fcntl(int fildes, int cmd, ...) ret = -1; } - return 0; + return ret; } RTM_EXPORT(fcntl); diff --git a/components/drivers/audio/audio.c b/components/drivers/audio/audio.c index 220a000df1a9acf0b838884c0cc74fa96c7b78f1..14dddb38ea9803cdb3f1610c1af42dcb8f738f19 100644 --- a/components/drivers/audio/audio.c +++ b/components/drivers/audio/audio.c @@ -1,21 +1,7 @@ /* - * File : audio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/audio/audio_pipe.c b/components/drivers/audio/audio_pipe.c index 9dc296831ee18d47dc80a6fbeaed9475209ce9ec..242305e20457d50958f4f0484f6b84f1230df885 100644 --- a/components/drivers/audio/audio_pipe.c +++ b/components/drivers/audio/audio_pipe.c @@ -1,21 +1,7 @@ /* - * File : pipe.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/audio/audio_pipe.h b/components/drivers/audio/audio_pipe.h index d40d4234b650daf9c56f22ffc30ae1622519dd42..c34f72b019b8fae467eb7453a27afdc8b06110ca 100644 --- a/components/drivers/audio/audio_pipe.h +++ b/components/drivers/audio/audio_pipe.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __AUDIO_PIPE_H__ #define __AUDIO_PIPE_H__ diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c index 98d76cd5b306f8ae308d580c4feaf0c8ddc92551..e20fcddcff5cd766a892583839aaac59673b8444 100644 --- a/components/drivers/can/can.c +++ b/components/drivers/can/can.c @@ -1,21 +1,7 @@ /* - * File : can.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/cputime/cputime.c b/components/drivers/cputime/cputime.c index 0c260f13bdfa2bc0080cd0f1f691ec0ade00f8ce..3ec860d5c5e73ac79c9e5a5ced13aab094929e8f 100644 --- a/components/drivers/cputime/cputime.c +++ b/components/drivers/cputime/cputime.c @@ -1,21 +1,7 @@ /* - * File : cputime.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/cputime/cputime_cortexm.c b/components/drivers/cputime/cputime_cortexm.c index 99dc8b013e2fda258890cb9279d8cdf3d85ed6ce..05ed6ed447c1fe5414c92cbbd40923217c098fbc 100644 --- a/components/drivers/cputime/cputime_cortexm.c +++ b/components/drivers/cputime/cputime_cortexm.c @@ -1,21 +1,7 @@ /* - * File : cputime_cortexm.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/hwtimer/hwtimer.c b/components/drivers/hwtimer/hwtimer.c index 3f8a9a42b4a92692d6b0a9828a8241d4741a0ae4..cd85b3baefca170b8278863bbaf90d7e83262d69 100644 --- a/components/drivers/hwtimer/hwtimer.c +++ b/components/drivers/hwtimer/hwtimer.c @@ -1,21 +1,7 @@ /* - * File : hwtimer.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/i2c/fm24clxx.c b/components/drivers/i2c/fm24clxx.c index bb77d707bf318727d822a1e4877248a414548caa..eecf3d455afa1366ce14a8a8d3f571f77d068908 100644 --- a/components/drivers/i2c/fm24clxx.c +++ b/components/drivers/i2c/fm24clxx.c @@ -1,21 +1,7 @@ /* - * File : fm24clxx.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/i2c/fm24clxx.h b/components/drivers/i2c/fm24clxx.h index fa84dd5e29dd39b19c996ca1f23b7a971c261a2a..74ee065470ec60284da4c0608c6079e67ab31db8 100644 --- a/components/drivers/i2c/fm24clxx.h +++ b/components/drivers/i2c/fm24clxx.h @@ -1,21 +1,7 @@ /* - * File : fm24clxx.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/i2c/i2c-bit-ops.c b/components/drivers/i2c/i2c-bit-ops.c index d4a26ea72a83dc4eee4b057f197dcfb9818b7ac1..26479a1d68815e2ff7689996a8aba070e9c9dbf7 100644 --- a/components/drivers/i2c/i2c-bit-ops.c +++ b/components/drivers/i2c/i2c-bit-ops.c @@ -1,21 +1,7 @@ /* - * File : i2c-bit-ops.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/i2c/i2c_core.c b/components/drivers/i2c/i2c_core.c index 67778ce0d3724b31201a0ee9dd0413cd3d398443..f245abb9ca05c75a9ccf089f527d5ade013b0bd8 100644 --- a/components/drivers/i2c/i2c_core.c +++ b/components/drivers/i2c/i2c_core.c @@ -1,21 +1,7 @@ /* - * File : i2c_core.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/i2c/i2c_dev.c b/components/drivers/i2c/i2c_dev.c index 042b7b743a5dcbf0d940674deddbff4a1680c9be..6c7df8e427819871679002d2f81dd3a8299822b1 100644 --- a/components/drivers/i2c/i2c_dev.c +++ b/components/drivers/i2c/i2c_dev.c @@ -1,21 +1,7 @@ /* - * File : i2c_dev.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/alarm.h b/components/drivers/include/drivers/alarm.h index 99dd8ef9b803677a1791a7d24782cad01b94d044..b5ebbc86d905fdcff2bc521a8574975437648edb 100644 --- a/components/drivers/include/drivers/alarm.h +++ b/components/drivers/include/drivers/alarm.h @@ -1,21 +1,7 @@ /* - * File : alarm.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/audio.h b/components/drivers/include/drivers/audio.h index 04821c2bc828a5263937b94e0cc38360b8aab008..7d2cb36728e3b710bdd72c7c71b96c3475f51cd5 100644 --- a/components/drivers/include/drivers/audio.h +++ b/components/drivers/include/drivers/audio.h @@ -1,21 +1,7 @@ /* - * File : audio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -94,7 +80,7 @@ /* Support Dsp(input/output) Units controls */ #define AUDIO_DSP_PARAM 0 /* get/set all params */ -#define AUDIO_DSP_SAMPLERATE 1 /* Ƶ */ +#define AUDIO_DSP_SAMPLERATE 1 /* 采样频率 */ #define AUDIO_DSP_FMT 2 #define AUDIO_DSP_CHANNELS 3 diff --git a/components/drivers/include/drivers/can.h b/components/drivers/include/drivers/can.h index ecf3b5f51ed43226df4c2564f74938bb7de4a38a..c61fb19eaaf9fdf1fd5705c9130ba5dd2a1d5d83 100644 --- a/components/drivers/include/drivers/can.h +++ b/components/drivers/include/drivers/can.h @@ -1,21 +1,7 @@ /* - * File : can.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/cputime.h b/components/drivers/include/drivers/cputime.h index c3dd243f11999a33fc689298584b9e64b5fb5d9b..78c22fc1daf3c024a8f5b59cfc80ad435727d253 100644 --- a/components/drivers/include/drivers/cputime.h +++ b/components/drivers/include/drivers/cputime.h @@ -1,21 +1,7 @@ /* - * File : cputime.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/hwtimer.h b/components/drivers/include/drivers/hwtimer.h index 24cec74d326dfb7808185b69352889336d050ac4..cbfeec2bf81f5b59234c35c9ba42b337c0af85a7 100644 --- a/components/drivers/include/drivers/hwtimer.h +++ b/components/drivers/include/drivers/hwtimer.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __HWTIMER_H__ #define __HWTIMER_H__ diff --git a/components/drivers/include/drivers/i2c-bit-ops.h b/components/drivers/include/drivers/i2c-bit-ops.h index 6360b99a9293f101f697f8ae4f00983a1d48284f..ddf9a36d730ee12a785aebb48deca591c01e3422 100644 --- a/components/drivers/include/drivers/i2c-bit-ops.h +++ b/components/drivers/include/drivers/i2c-bit-ops.h @@ -1,21 +1,7 @@ /* - * File : i2c-bit-ops.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/i2c.h b/components/drivers/include/drivers/i2c.h index b6f52737224fa2f9bc80d88ecb2796525da89cbd..e2a9e7d0b88d0ebf5112f9ce1e227bbc80395cf0 100644 --- a/components/drivers/include/drivers/i2c.h +++ b/components/drivers/include/drivers/i2c.h @@ -1,21 +1,7 @@ /* - * File : i2c.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/i2c_dev.h b/components/drivers/include/drivers/i2c_dev.h index 81e9896bcf83da04e7927440f15e80b7adcb6e18..5ef9dd1a8c6fefd0c9a13adea2e8f9cbaf6eca31 100644 --- a/components/drivers/include/drivers/i2c_dev.h +++ b/components/drivers/include/drivers/i2c_dev.h @@ -1,21 +1,7 @@ /* - * File : i2c_dev.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/mmc.h b/components/drivers/include/drivers/mmc.h index 6800c2a29e05efa37bae1846ce0c90daea1740d5..95dce7178a12aa217b805e1d6a2b66baee589ecc 100644 --- a/components/drivers/include/drivers/mmc.h +++ b/components/drivers/include/drivers/mmc.h @@ -1,21 +1,7 @@ /* - * File : mmc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/mmcsd_card.h b/components/drivers/include/drivers/mmcsd_card.h index 18470a5ea91d8a76c0f8c56af8d24619fc23c52d..3ee5a204656b72a8d8bb26a50c0130c736fe40ad 100644 --- a/components/drivers/include/drivers/mmcsd_card.h +++ b/components/drivers/include/drivers/mmcsd_card.h @@ -1,21 +1,7 @@ /* - * File : mmcsd_card.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/mmcsd_cmd.h b/components/drivers/include/drivers/mmcsd_cmd.h index 270077153143248609a4dbee4cc949a346dc3662..7c2f26e8921b3962ea569174b04ceb98fec69908 100644 --- a/components/drivers/include/drivers/mmcsd_cmd.h +++ b/components/drivers/include/drivers/mmcsd_cmd.h @@ -1,21 +1,7 @@ /* - * File : mmcsd_cmd.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/mmcsd_core.h b/components/drivers/include/drivers/mmcsd_core.h index 2be758bf8233ab6153237a14f445ef3ec6b35cd9..05a5af6d79cc5d32214682022371beff1ba80edb 100644 --- a/components/drivers/include/drivers/mmcsd_core.h +++ b/components/drivers/include/drivers/mmcsd_core.h @@ -1,21 +1,7 @@ /* - * File : mmcsd_core.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/mmcsd_host.h b/components/drivers/include/drivers/mmcsd_host.h index 877a04d8e0264699a525d1d00cf832951a537e1d..1253062aefe3cea1f479211cbdc229abc157c18c 100644 --- a/components/drivers/include/drivers/mmcsd_host.h +++ b/components/drivers/include/drivers/mmcsd_host.h @@ -1,21 +1,7 @@ /* - * File : mmcsd_host.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/mtd.h b/components/drivers/include/drivers/mtd.h index 9cc7c470d22047d10b56ce66b582cc15cfc01f1d..fb7ea4389d603d1a578415f8cf0c0d8507bd197a 100644 --- a/components/drivers/include/drivers/mtd.h +++ b/components/drivers/include/drivers/mtd.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : mtd.h * * Change Logs: * Date Author Notes diff --git a/components/drivers/include/drivers/mtd_nand.h b/components/drivers/include/drivers/mtd_nand.h index fb14eb0dcc3b7af6131d10e80d37bce06be2b7fb..8afed000dd80ea7bec79779f999e75461b1f77f9 100644 --- a/components/drivers/include/drivers/mtd_nand.h +++ b/components/drivers/include/drivers/mtd_nand.h @@ -1,21 +1,7 @@ /* - * File : mtd_nand.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/mtd_nor.h b/components/drivers/include/drivers/mtd_nor.h index c51ce87f413d9634cb117cd553846f0f4c3285f3..32a952f374bfcc4edbd5b54821fd083b61c78d16 100644 --- a/components/drivers/include/drivers/mtd_nor.h +++ b/components/drivers/include/drivers/mtd_nor.h @@ -1,21 +1,7 @@ /* - * File : mtd_nor.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, Shanghai Real-Thread Technology Co., Ltd - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/include/drivers/mtdnand.h b/components/drivers/include/drivers/mtdnand.h index c767e4ac9c408953bf1791e693b626f51cb01e90..2e836cb2fb957ccf5e3e328ad402c9efe62eea59 100644 --- a/components/drivers/include/drivers/mtdnand.h +++ b/components/drivers/include/drivers/mtdnand.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : mtdnand.h * * Change Logs: * Date Author Notes diff --git a/components/drivers/include/drivers/mtdnor.h b/components/drivers/include/drivers/mtdnor.h index 709efe29a47f3b49db77c00af6cd21061153acad..ccb7466b4b4222b334086b5553ca6edadc0782c9 100644 --- a/components/drivers/include/drivers/mtdnor.h +++ b/components/drivers/include/drivers/mtdnor.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : mtdnor.h * * Change Logs: * Date Author Notes diff --git a/components/drivers/include/drivers/pin.h b/components/drivers/include/drivers/pin.h index de8fd21acc5b50c7c05f8ce6d591470a49eb5cf3..ca354079329c54a6dc258d3f9f62425529f9d588 100644 --- a/components/drivers/include/drivers/pin.h +++ b/components/drivers/include/drivers/pin.h @@ -1,21 +1,7 @@ /* - * File : pin.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/rt_drv_pwm.h b/components/drivers/include/drivers/rt_drv_pwm.h index 0aa2f56656240978ac303d8e160ec1563cc9898a..16de4c6ab89f01b2b300cf92dcdbd66606d365ca 100644 --- a/components/drivers/include/drivers/rt_drv_pwm.h +++ b/components/drivers/include/drivers/rt_drv_pwm.h @@ -1,21 +1,7 @@ /* - * File : rt_drv_pwm.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/rtc.h b/components/drivers/include/drivers/rtc.h index 7e89bd370435bf54a7908131675946857bba284a..1cd88a7be365e4f6b59ea0a3d59378252610276e 100644 --- a/components/drivers/include/drivers/rtc.h +++ b/components/drivers/include/drivers/rtc.h @@ -1,21 +1,7 @@ /* - * File : rtc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/sd.h b/components/drivers/include/drivers/sd.h index 7d5fcacade9b3e80e50a60174e3a88cf5efb723a..e096df937286b9dbef81df95fa79f5a552f1cb60 100644 --- a/components/drivers/include/drivers/sd.h +++ b/components/drivers/include/drivers/sd.h @@ -1,21 +1,7 @@ /* - * File : sd.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/sdio.h b/components/drivers/include/drivers/sdio.h index 2cd1c7dfd1dc3c7bfc790c2c212814b3006d36df..e4bf4a048f86c19334021791990e7d742cc38224 100644 --- a/components/drivers/include/drivers/sdio.h +++ b/components/drivers/include/drivers/sdio.h @@ -1,21 +1,7 @@ /* - * File : sdio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/sdio_func_ids.h b/components/drivers/include/drivers/sdio_func_ids.h index 9fee7c238a0e618eb19f2e2105c34f2b9e665ec0..79085a59330e165740c06281fa9b67793cc92382 100644 --- a/components/drivers/include/drivers/sdio_func_ids.h +++ b/components/drivers/include/drivers/sdio_func_ids.h @@ -1,21 +1,7 @@ /* - * File : sdio_func_ids.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/serial.h b/components/drivers/include/drivers/serial.h index 2abf925854b224a144821dd8c003c645d2d31809..af5d6262516875ef30f216d855d9b5f398290c03 100644 --- a/components/drivers/include/drivers/serial.h +++ b/components/drivers/include/drivers/serial.h @@ -1,21 +1,7 @@ /* - * File : serial.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/spi.h b/components/drivers/include/drivers/spi.h index 0fbaabe5dd8f2acff35a840114423e2b61fc462e..84b589ace0f0efa91df34f7902bf28d398bf6224 100644 --- a/components/drivers/include/drivers/spi.h +++ b/components/drivers/include/drivers/spi.h @@ -1,21 +1,7 @@ /* - * File : spi.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/usb_common.h b/components/drivers/include/drivers/usb_common.h index 922682b1af76ef0b740f083a6ed3259e87967b5c..764dcd5612b6058376768d7e086fc2e5e8c6717b 100644 --- a/components/drivers/include/drivers/usb_common.h +++ b/components/drivers/include/drivers/usb_common.h @@ -1,21 +1,7 @@ /* - * File : usb_common.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -230,6 +216,19 @@ extern "C" { #define HID_REPORT_ID_GENERAL 5 #define HID_REPORT_ID_MOUSE 6 +/* + * Time of usb timeout + */ +#ifndef USB_TIMEOUT_BASIC +#define USB_TIMEOUT_BASIC (RT_TICK_PER_SECOND) /* 1s */ +#endif +#ifndef USB_TIMEOUT_LONG +#define USB_TIMEOUT_LONG (RT_TICK_PER_SECOND * 5) /* 5s */ +#endif +#ifndf USB_DEBOUNCE_TIME +#define USB_DEBOUNCE_TIME (RT_TICK_PER_SECOND / 5) /* 0.2s */ +#endif + #define uswap_32(x) \ ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8) | \ diff --git a/components/drivers/include/drivers/usb_device.h b/components/drivers/include/drivers/usb_device.h index 572c7d0dff06f2862f0b0917573237e1bca5022a..26f0c4cf4a6fdd3f015d887db21739ac7c63caba 100644 --- a/components/drivers/include/drivers/usb_device.h +++ b/components/drivers/include/drivers/usb_device.h @@ -1,21 +1,7 @@ /* - * File : usb_device.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -31,6 +17,10 @@ #include #include "drivers/usb_common.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Vendor ID */ #ifdef USB_VENDOR_ID #define _VENDOR_ID USB_VENDOR_ID @@ -467,4 +457,9 @@ rt_inline void usbd_os_proerty_descriptor_send(ufunction_t func, ureq_t setup, u } rt_usbd_ep0_write(func->device, data, setup->wLength); } + +#ifdef __cplusplus +} +#endif + #endif diff --git a/components/drivers/include/drivers/usb_host.h b/components/drivers/include/drivers/usb_host.h index 92adaa3d47ccc7e7e19aa954f8128780c8d1d0d6..2a68f4edb53d5e5695f6eb4e302be04b74b61807 100644 --- a/components/drivers/include/drivers/usb_host.h +++ b/components/drivers/include/drivers/usb_host.h @@ -1,21 +1,7 @@ /* - * File : usb_host.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/drivers/watchdog.h b/components/drivers/include/drivers/watchdog.h index 5c74dc82be61af81dfc05e2115ef48519a652762..f80ded58aad1cc4030698993a2a680ed7bf4b7f0 100644 --- a/components/drivers/include/drivers/watchdog.h +++ b/components/drivers/include/drivers/watchdog.h @@ -1,21 +1,7 @@ /* - * File : watchdog.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012-2014, Shanghai Real-Thread Electronic Technology Co.,Ltd - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/include/ipc/completion.h b/components/drivers/include/ipc/completion.h index e3e883ba8bb18579603c327e55d528041ad92eb6..acfcaa399584b1dd7087162531ee6be944566d9e 100644 --- a/components/drivers/include/ipc/completion.h +++ b/components/drivers/include/ipc/completion.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef COMPLETION_H_ #define COMPLETION_H_ diff --git a/components/drivers/include/ipc/dataqueue.h b/components/drivers/include/ipc/dataqueue.h index 44ffed655ee88e1e21216e692d3a8a20a8acb428..f584c267bfb4f7ed4629c25fb743adcad88754bf 100644 --- a/components/drivers/include/ipc/dataqueue.h +++ b/components/drivers/include/ipc/dataqueue.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef DATAQUEUE_H__ #define DATAQUEUE_H__ diff --git a/components/drivers/include/ipc/pipe.h b/components/drivers/include/ipc/pipe.h index ca20c2a453ec26a9964409465f58877cb34042bf..25b19f540d8d30750368a1860a516132f76fcec7 100644 --- a/components/drivers/include/ipc/pipe.h +++ b/components/drivers/include/ipc/pipe.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef PIPE_H__ #define PIPE_H__ diff --git a/components/drivers/include/ipc/poll.h b/components/drivers/include/ipc/poll.h index 0279fe3b5dbf8ae00ff1bfb061229a504f25d45c..8c68a96af8d9948210b314863730d14ffe47d23f 100644 --- a/components/drivers/include/ipc/poll.h +++ b/components/drivers/include/ipc/poll.h @@ -1,21 +1,7 @@ /* - * File : poll.h - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2006-2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/ipc/ringblk_buf.h b/components/drivers/include/ipc/ringblk_buf.h index 26ffbdbe21e8a11d8e625bafa6b19ff7c0ecdd59..653fa2a60bbd3323eb3f2615d21d625694ff4d54 100644 --- a/components/drivers/include/ipc/ringblk_buf.h +++ b/components/drivers/include/ipc/ringblk_buf.h @@ -1,21 +1,7 @@ /* - * File : ringblk_buf.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/ipc/ringbuffer.h b/components/drivers/include/ipc/ringbuffer.h index 4cfab6d69c2553bd7fcb086d57e8347391ef2969..4487d02c4721074e025162b377268ba623732142 100644 --- a/components/drivers/include/ipc/ringbuffer.h +++ b/components/drivers/include/ipc/ringbuffer.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef RINGBUFFER_H__ #define RINGBUFFER_H__ diff --git a/components/drivers/include/ipc/waitqueue.h b/components/drivers/include/ipc/waitqueue.h index 8cb0989f73c514e0fa6e37d27a7931cf2a9c0896..e26ec1e896078620c4f1cf192b1650d035201ba2 100644 --- a/components/drivers/include/ipc/waitqueue.h +++ b/components/drivers/include/ipc/waitqueue.h @@ -1,21 +1,7 @@ /* - * File : waitqueue.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/include/ipc/workqueue.h b/components/drivers/include/ipc/workqueue.h index 0b044b5ad31215c10a27091c4f9f5bb50c80d475..9e23e181b1000e94c9b1fcfa76b4372d8c461f1c 100644 --- a/components/drivers/include/ipc/workqueue.h +++ b/components/drivers/include/ipc/workqueue.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef WORKQUEUE_H__ #define WORKQUEUE_H__ diff --git a/components/drivers/misc/pin.c b/components/drivers/misc/pin.c index ce78f97f878af56084b81b029ddea5191ab9bfcb..aca58ee21ba95931a3fa30387ea95c1fb82df080 100644 --- a/components/drivers/misc/pin.c +++ b/components/drivers/misc/pin.c @@ -1,21 +1,7 @@ /* - * File : pin.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/misc/rt_drv_pwm.c b/components/drivers/misc/rt_drv_pwm.c index 3a2da0d095808890faa4ef8beed56844a75a6382..6890e0e7932b72d926879708df2961b2d4e36cd4 100644 --- a/components/drivers/misc/rt_drv_pwm.c +++ b/components/drivers/misc/rt_drv_pwm.c @@ -1,21 +1,7 @@ /* - * File : rt_drv_pwm.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/mtd/mtd.c b/components/drivers/mtd/mtd.c index 4d36ea0b0b3773ca2594b9e3403d97ccc2e86989..3e7b4f2b54633b96ff3c937169aa73bd69851662 100644 --- a/components/drivers/mtd/mtd.c +++ b/components/drivers/mtd/mtd.c @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : mtd.c * * Change Logs: * Date Author Notes diff --git a/components/drivers/mtd/mtd_nand.c b/components/drivers/mtd/mtd_nand.c index bf22d889ce56a19b021f0388983b05d18e3e6820..3e4582ceaf1cdb9fc02f60195256bd2d64a781ce 100644 --- a/components/drivers/mtd/mtd_nand.c +++ b/components/drivers/mtd/mtd_nand.c @@ -1,21 +1,7 @@ /* - * File : mtd_core.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/mtd/mtd_nor.c b/components/drivers/mtd/mtd_nor.c index 8f37e95f0944a339fd178c603c665970defb4ded..b941f9236d5e1df0e1d30ce7eb348d6de9645b0e 100644 --- a/components/drivers/mtd/mtd_nor.c +++ b/components/drivers/mtd/mtd_nor.c @@ -1,21 +1,7 @@ /* - * File : mtd_nor.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, Shanghai Real-Thread Technology Co., Ltd - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/mtd/mtdnand.c b/components/drivers/mtd/mtdnand.c index c209ea32798a9445b29631da29bff851665b24ab..50012219fbebf43f1d22549015b4ff486e6ff151 100644 --- a/components/drivers/mtd/mtdnand.c +++ b/components/drivers/mtd/mtdnand.c @@ -2,15 +2,10 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : mtdnand.c * * Change Logs: * Date Author Notes - 2018-09-10 heyuanjie87 first version - + * 2018-09-10 heyuanjie87 first version */ #include diff --git a/components/drivers/mtd/mtdnor.c b/components/drivers/mtd/mtdnor.c index e97f48e65c7c8533fbb2411cdfceb207384166d1..481d26167e736af3003dde7d2a9736aa33e62228 100644 --- a/components/drivers/mtd/mtdnor.c +++ b/components/drivers/mtd/mtdnor.c @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : mtdnor.c * * Change Logs: * Date Author Notes diff --git a/components/drivers/rtc/alarm.c b/components/drivers/rtc/alarm.c index 6660128603fc0431f974d2c82b19735fb0b135ca..c497ebf72750337b42db21baa8364b6d686fcf77 100644 --- a/components/drivers/rtc/alarm.c +++ b/components/drivers/rtc/alarm.c @@ -1,21 +1,7 @@ /* - * File : alarm.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c index 000358c111161a866d4aa4343b8ce04a3db64781..e17c0fe7ddf1332c28ab220c590ea37cd8fea71a 100644 --- a/components/drivers/rtc/rtc.c +++ b/components/drivers/rtc/rtc.c @@ -1,21 +1,7 @@ /* - * File : rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/rtc/soft_rtc.c b/components/drivers/rtc/soft_rtc.c index c828e43ebcf16c4a524d0f1c83e14e3c36413c17..adcbf81fe323278fee5fdfe3b5c24203cbf12847 100644 --- a/components/drivers/rtc/soft_rtc.c +++ b/components/drivers/rtc/soft_rtc.c @@ -1,21 +1,7 @@ /* - * File : soft_rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/sdio/block_dev.c b/components/drivers/sdio/block_dev.c index cc4e24e3c8ab9698bda42ec31c39ba293ed91c68..9bef67d95017706c7ddce9ec07a153cb077458fe 100644 --- a/components/drivers/sdio/block_dev.c +++ b/components/drivers/sdio/block_dev.c @@ -1,21 +1,7 @@ /* - * File : block_dev.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/sdio/mmc.c b/components/drivers/sdio/mmc.c index efda67c08797f8bbfd7e8dec08c317aa7773fe48..7ad01e1153a28e02597900f89bb814f959af4755 100644 --- a/components/drivers/sdio/mmc.c +++ b/components/drivers/sdio/mmc.c @@ -1,21 +1,7 @@ /* - * File : mmc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c index 45ec1343f22a5647fe3ee3e7d1d27b1d988eae6e..29a8ba239b763da92b5d315bf7b9953fee28c5b7 100644 --- a/components/drivers/sdio/mmcsd_core.c +++ b/components/drivers/sdio/mmcsd_core.c @@ -1,21 +1,7 @@ /* - * File : mmcsd_core.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/sdio/sd.c b/components/drivers/sdio/sd.c index 2a549ed9296e675ee95426cbc0d83329e33c5a1d..338ecfa7c5bb9b1e7054c421e528c0cdc493c009 100644 --- a/components/drivers/sdio/sd.c +++ b/components/drivers/sdio/sd.c @@ -1,21 +1,7 @@ /* - * File : sd.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c index dc3ddc7e1c908793ec83dc94b785b35861196e65..7eeb312f6ff839edf583241af0cfd4baac11cab1 100644 --- a/components/drivers/sdio/sdio.c +++ b/components/drivers/sdio/sdio.c @@ -1,21 +1,7 @@ /* - * File : sdio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/sensors/bmi055_sensor.cpp b/components/drivers/sensors/bmi055_sensor.cpp index 705895f368fb2def312eec61c0b20051170f7fe9..b6e7f99da5e42056f722ec4ec949d382311c499b 100644 --- a/components/drivers/sensors/bmi055_sensor.cpp +++ b/components/drivers/sensors/bmi055_sensor.cpp @@ -1,11 +1,7 @@ /* - * File : bmi055_sensor.cpp - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 @@ -137,7 +133,7 @@ BMI055_Accelerometer::BMI055_Accelerometer(const char* iic_name, int addr) write_reg(BMI055_BGW_SOFTRESET, 0xB6); /* reset of the sensor P57 */ write_reg(BMI055_PMU_LPW, 0x00); /* PMU_LPW NORMAL mode P55 */ write_reg(BMI055_PMU_BW, 0x0A); /* 01010b 31.25 Hz P55 */ - write_reg(BMI055_PMU_RANGE, 0x05); /* 0101b ±4g range PMU_RANGE set acc +-4g/s P54 */ + write_reg(BMI055_PMU_RANGE, 0x05); /* 0101b 卤4g range PMU_RANGE set acc +-4g/s P54 */ x_offset = y_offset = z_offset = 0; diff --git a/components/drivers/sensors/bmi055_sensor.h b/components/drivers/sensors/bmi055_sensor.h index 7ec6d9e5cfbae9ceb0d001a50c06c1b43dfdd07c..713aa74ad0926e3504d909b64affa70790edcd54 100644 --- a/components/drivers/sensors/bmi055_sensor.h +++ b/components/drivers/sensors/bmi055_sensor.h @@ -1,11 +1,7 @@ /* - * File : bmi055_sensor.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/components/drivers/sensors/mpu6050_sensor.cpp b/components/drivers/sensors/mpu6050_sensor.cpp index 8f6557a7cee93e737b557053c8c13bb98382a3fd..358796bc302d8f47219ef45d5feca42f625ddcb7 100644 --- a/components/drivers/sensors/mpu6050_sensor.cpp +++ b/components/drivers/sensors/mpu6050_sensor.cpp @@ -1,11 +1,7 @@ /* - * File : MPU6050_sensor.cpp - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/components/drivers/sensors/mpu6050_sensor.h b/components/drivers/sensors/mpu6050_sensor.h index c7e28ba28e837764467e2ffd6f42694ad359ac50..8f70c3e5ed9af9a5d1f271e197d7bacdb2290d80 100644 --- a/components/drivers/sensors/mpu6050_sensor.h +++ b/components/drivers/sensors/mpu6050_sensor.h @@ -1,11 +1,7 @@ /* - * File : MPU6050_sensor.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/components/drivers/sensors/sensor.cpp b/components/drivers/sensors/sensor.cpp index abeecdb883748a4baaa1c5366c1619d37610ef58..f986510f639b24f808d4013ac09e0fa8a8e5326e 100644 --- a/components/drivers/sensors/sensor.cpp +++ b/components/drivers/sensors/sensor.cpp @@ -1,11 +1,7 @@ /* - * File : sensors.cpp - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/components/drivers/sensors/sensor.h b/components/drivers/sensors/sensor.h index fd44611f5a3cfbd65d71d431876471b140d8618f..916360d34bd449a57a2706e0b2b299a4de698f4b 100644 --- a/components/drivers/sensors/sensor.h +++ b/components/drivers/sensors/sensor.h @@ -1,11 +1,7 @@ /* - * File : sensors.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2014, RT-Thread Development 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 diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c index 856e33e97911dc79b42814e145d2d505b0709544..9cf9abf7017782a982f675f247071eebf5291089 100644 --- a/components/drivers/serial/serial.c +++ b/components/drivers/serial/serial.c @@ -1,21 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/enc28j60.c b/components/drivers/spi/enc28j60.c index f579dd8fdd1708bd640cacab16b9f26d10c70685..a8bfe3a159d3c24fae459473d954fbc5f233cdbc 100644 --- a/components/drivers/spi/enc28j60.c +++ b/components/drivers/spi/enc28j60.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include "enc28j60.h" /* #define NET_TRACE */ diff --git a/components/drivers/spi/enc28j60.h b/components/drivers/spi/enc28j60.h index 1207efdec6ec31997c300d5a4e5009d6bac88682..adff774748394887368835ed9527e970ce394fe1 100644 --- a/components/drivers/spi/enc28j60.h +++ b/components/drivers/spi/enc28j60.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef EN28J60_H_INCLUDED #define EN28J60_H_INCLUDED diff --git a/components/drivers/spi/spi_core.c b/components/drivers/spi/spi_core.c index 33d2f40f8fce3a738ace033e93446fb806dc1164..9e404d7c9480b1cdafeee2d8564c72d1b3eeee0a 100644 --- a/components/drivers/spi/spi_core.c +++ b/components/drivers/spi/spi_core.c @@ -1,21 +1,7 @@ /* - * File : spi_core.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_dev.c b/components/drivers/spi/spi_dev.c index 1e69ebe59106d53f02137b285e25ffa36b27f2b5..e334e7aeb56d6797a18cbc4230011db7bfec7b72 100644 --- a/components/drivers/spi/spi_dev.c +++ b/components/drivers/spi/spi_dev.c @@ -1,21 +1,7 @@ /* - * File : spi_dev.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash.h b/components/drivers/spi/spi_flash.h index d4beb57b456b82b06318ff6657ba4b64b0ededf6..30db32474a984e8dc680d37a3f063b7ad7806746 100644 --- a/components/drivers/spi/spi_flash.h +++ b/components/drivers/spi/spi_flash.h @@ -1,21 +1,7 @@ /* - * File : spi_flash.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash_at45dbxx.c b/components/drivers/spi/spi_flash_at45dbxx.c index 8798e35cf6361bf22d14d3097ac8a5751796a4bc..0a30f0a328775f5e308f0f0731656afb35530a13 100644 --- a/components/drivers/spi/spi_flash_at45dbxx.c +++ b/components/drivers/spi/spi_flash_at45dbxx.c @@ -1,21 +1,7 @@ /* - * File : spi_flash_at45dbxx.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -34,7 +20,7 @@ #define FLASH_TRACE(...) #endif /**< #ifdef FLASH_DEBUG */ -/* JEDEC Manufacturers ID */ +/* JEDEC Manufacturer’s ID */ #define MF_ID (0x1F) /* atmel */ #define DENSITY_CODE_011D (0x02) /* AT45DB011D Density Code : 00010 = 1-Mbit */ #define DENSITY_CODE_021D (0x03) /* AT45DB021D Density Code : 00011 = 2-Mbit */ @@ -345,7 +331,7 @@ rt_err_t at45dbxx_init(const char * flash_device_name, const char * spi_device_n /**< 001 = Atmel DataFlash */ if(JEDEC_ID->manufacturer_id != 0x1F || JEDEC_ID->family_code != 0x01) { - FLASH_TRACE("Manufacturers ID or Memory Type error!\r\n"); + FLASH_TRACE("Manufacturer’s ID or Memory Type error!\r\n"); FLASH_TRACE("JEDEC Read-ID Data : %02X %02X %02X\r\n", id_recv[0], id_recv[1], id_recv[2]); return -RT_ENOSYS; } diff --git a/components/drivers/spi/spi_flash_at45dbxx.h b/components/drivers/spi/spi_flash_at45dbxx.h index 203a1d3ba9f2b23365c4ee5593f415e1579db570..d1bc1a2aeb09658568ab860820460ad005fa964e 100644 --- a/components/drivers/spi/spi_flash_at45dbxx.h +++ b/components/drivers/spi/spi_flash_at45dbxx.h @@ -1,21 +1,7 @@ /* - * File : spi_flash_at45dbxx.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash_gd.c b/components/drivers/spi/spi_flash_gd.c index a8e8f9a4b831a41a4382cb0acca8304fe7f58650..3c520353725380845c1610c6f234252840636e24 100644 --- a/components/drivers/spi/spi_flash_gd.c +++ b/components/drivers/spi/spi_flash_gd.c @@ -1,22 +1,7 @@ /* - * File : spi_flash_gd.c - * This file is part of RT-Thread RTOS - * Copyright (c) 2016 Shanghai Fullhan Microelectronics Co., Ltd. - * All rights reserved + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash_gd.h b/components/drivers/spi/spi_flash_gd.h index 4a12100b74e155d208943244be15a3b517fcebdd..904d976ed0ca53646c772d3fc93129b841afda44 100644 --- a/components/drivers/spi/spi_flash_gd.h +++ b/components/drivers/spi/spi_flash_gd.h @@ -1,21 +1,7 @@ /* - * File : spi_flash_gd.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash_sfud.c b/components/drivers/spi/spi_flash_sfud.c index 9859cb0141dfe532a31173de7f1ab8a423dcecd8..e622527d7a9ec6082a32c8130d9c0b2ab8a74288 100644 --- a/components/drivers/spi/spi_flash_sfud.c +++ b/components/drivers/spi/spi_flash_sfud.c @@ -1,21 +1,7 @@ /* - * File : spi_flash_sfud.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash_sfud.h b/components/drivers/spi/spi_flash_sfud.h index 2c7f8e7f5487c30d51744be13452daebd04689ae..3173b9786d89d76ec6e9ec71b255cb5e7beed673 100644 --- a/components/drivers/spi/spi_flash_sfud.h +++ b/components/drivers/spi/spi_flash_sfud.h @@ -1,21 +1,7 @@ /* - * File : spi_flash_sfud.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2016, 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. + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/spi/spi_flash_sst25vfxx.c b/components/drivers/spi/spi_flash_sst25vfxx.c index 35dcf3fff702d6fee6ee780741404850ec16c6d5..bd618a8e9b857b6d14f7542f5a2f811c69d1b84d 100644 --- a/components/drivers/spi/spi_flash_sst25vfxx.c +++ b/components/drivers/spi/spi_flash_sst25vfxx.c @@ -1,21 +1,7 @@ /* - * File : spi_flash_sst25vfxx.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -33,7 +19,7 @@ #define FLASH_TRACE(...) #endif /* #ifdef FLASH_DEBUG */ -/* JEDEC Manufacturers ID */ +/* JEDEC Manufacturer’s ID */ #define MF_ID (0xBF) /* JEDEC Device ID : Memory Type */ #define MT_ID (0x25) @@ -302,7 +288,7 @@ rt_err_t sst25vfxx_init(const char * flash_device_name, const char * spi_device_ if(id_recv[0] != MF_ID || id_recv[1] != MT_ID) { - FLASH_TRACE("Manufacturers ID or Memory Type error!\r\n"); + FLASH_TRACE("Manufacturer’s ID or Memory Type error!\r\n"); FLASH_TRACE("JEDEC Read-ID Data : %02X %02X %02X\r\n", id_recv[0], id_recv[1], id_recv[2]); return -RT_ENOSYS; } diff --git a/components/drivers/spi/spi_flash_sst25vfxx.h b/components/drivers/spi/spi_flash_sst25vfxx.h index 2502188b91aa979d62823ef96df82bbed6341480..7a7283f753218c3423e4467bf3b1d5f06cb2f83b 100644 --- a/components/drivers/spi/spi_flash_sst25vfxx.h +++ b/components/drivers/spi/spi_flash_sst25vfxx.h @@ -1,21 +1,7 @@ /* - * File : spi_flash_sst25vxx.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash_w25qxx.c b/components/drivers/spi/spi_flash_w25qxx.c index 5a16ffbae20076a52f2f563bfffa777cffee30a8..bba9c0b5cc88c2eebef894f91c2c41e582b74969 100644 --- a/components/drivers/spi/spi_flash_w25qxx.c +++ b/components/drivers/spi/spi_flash_w25qxx.c @@ -1,21 +1,7 @@ /* - * File : spi_flash_w25qxx.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -41,7 +27,7 @@ #define PAGE_SIZE 4096 -/* JEDEC Manufacturer��s ID */ +/* JEDEC Manufacturer ID */ #define MF_ID (0xEF) /* JEDEC Device ID: Memory type and Capacity */ diff --git a/components/drivers/spi/spi_flash_w25qxx.h b/components/drivers/spi/spi_flash_w25qxx.h index 737ca70ed2f74a7fe36ef20c6254cb5e3a72cfa8..14837bc87c51e9a4f6a345bf14dc5d9dbfef62a3 100644 --- a/components/drivers/spi/spi_flash_w25qxx.h +++ b/components/drivers/spi/spi_flash_w25qxx.h @@ -1,21 +1,7 @@ /* - * File : spi_flash_w25qxx.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_flash_w25qxx_mtd.c b/components/drivers/spi/spi_flash_w25qxx_mtd.c index dd3e59f4094da798b141b9ca55bd7e06fc65b897..9f1ef802f6ba937729f9c56035c92ec70d5bf3c0 100644 --- a/components/drivers/spi/spi_flash_w25qxx_mtd.c +++ b/components/drivers/spi/spi_flash_w25qxx_mtd.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include @@ -17,7 +25,7 @@ #define FLASH_TRACE(...) #endif /* #ifdef FLASH_DEBUG */ -/* JEDEC Manufacturers ID */ +/* JEDEC Manufacturer’s ID */ #define MF_ID (0xEF) /* JEDEC Device ID: Memory type and Capacity */ #define MTC_W25Q80_BV (0x4014) /* W25Q80BV */ diff --git a/components/drivers/spi/spi_flash_w25qxx_mtd.h b/components/drivers/spi/spi_flash_w25qxx_mtd.h index 9157524673d10cf4b1ff8dd0e76446e8f90b68ed..28f6828ffb68d911f8d9dd4cce697a430d6e9e00 100644 --- a/components/drivers/spi/spi_flash_w25qxx_mtd.h +++ b/components/drivers/spi/spi_flash_w25qxx_mtd.h @@ -1,21 +1,7 @@ /* - * File : spi_flash_w25qxx.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/spi/spi_msd.c b/components/drivers/spi/spi_msd.c index a3046e14ba5281d163c249b9f4d38b1d8af17283..ed121e184decbc0a8b93bb18aa786572e8a9763b 100644 --- a/components/drivers/spi/spi_msd.c +++ b/components/drivers/spi/spi_msd.c @@ -1,12 +1,7 @@ /* - * File : msd.c - * SPI mode SD Card Driver - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development 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 diff --git a/components/drivers/spi/spi_msd.h b/components/drivers/spi/spi_msd.h index 98722711d3d6fadf4d59efbf9bc4cc2979404051..63701709237d5565eb54382f53b5c3b3ff88411d 100644 --- a/components/drivers/spi/spi_msd.h +++ b/components/drivers/spi/spi_msd.h @@ -1,12 +1,7 @@ /* - * File : msd.h - * SPI mode SD Card Driver - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development 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 diff --git a/components/drivers/spi/spi_wifi_rw009.c b/components/drivers/spi/spi_wifi_rw009.c index 0b92802383494657a138027a254525643a6262e8..4ddd18ca122515bd419adf8581c043a583964ee9 100644 --- a/components/drivers/spi/spi_wifi_rw009.c +++ b/components/drivers/spi/spi_wifi_rw009.c @@ -1,21 +1,7 @@ /* - * File : spi_wifi_rw009.c - * This file is part of RT-Thread RTOS - * Copyright by Shanghai Real-Thread Electronic Technology Co.,Ltd - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/spi/spi_wifi_rw009.h b/components/drivers/spi/spi_wifi_rw009.h index 4b684b9b246e80717075089a28770a0bd08ca262..049b0a848643bb51b5d2425ceb2eb662041d0f1f 100644 --- a/components/drivers/spi/spi_wifi_rw009.h +++ b/components/drivers/spi/spi_wifi_rw009.h @@ -1,21 +1,7 @@ /* - * File : spi_wifi_rw009.h - * This file is part of RT-Thread RTOS - * Copyright by Shanghai Real-Thread Electronic Technology Co.,Ltd - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/src/completion.c b/components/drivers/src/completion.c index ef0b2911a79816594fd8519bf77bf1a76dcf684f..9e461e49ce51e31f1437f02398076f9e83e590f1 100644 --- a/components/drivers/src/completion.c +++ b/components/drivers/src/completion.c @@ -1,21 +1,7 @@ /* - * File : completion.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/src/dataqueue.c b/components/drivers/src/dataqueue.c index a10b0805b4ac4e2c3e8866514173cbdeab0412e0..7553986b9f5d5c56affc14644f1e2b606edb5b72 100644 --- a/components/drivers/src/dataqueue.c +++ b/components/drivers/src/dataqueue.c @@ -1,21 +1,7 @@ /* - * File : dataqueue.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index 80d74657e0397c315568c29cabe607cd28085d0d..065fd21dc1b66b8dad09c698fb864a69922aaff2 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -1,21 +1,7 @@ /* - * File : pipe.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012-2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/src/ringblk_buf.c b/components/drivers/src/ringblk_buf.c index 1212b088d8784c92af48eea3bb5c8e1b45e0e29d..1a74bf1d2448462b1894d4fb9fa8c5d152b30682 100644 --- a/components/drivers/src/ringblk_buf.c +++ b/components/drivers/src/ringblk_buf.c @@ -1,21 +1,7 @@ /* - * File : ringblk_buf.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/src/ringbuffer.c b/components/drivers/src/ringbuffer.c index 48bf590f8c6fe57f46cc1196bbac62081509c605..2e078ae053544d773abd566885989e61a3b9926a 100644 --- a/components/drivers/src/ringbuffer.c +++ b/components/drivers/src/ringbuffer.c @@ -1,21 +1,7 @@ /* - * File : ringbuffer.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/src/waitqueue.c b/components/drivers/src/waitqueue.c index a4c392a27c84b1ca2b6a1b9e1dab7512917aa2b6..02240edbdfdfa79ac55c1394cc31991b9597195d 100644 --- a/components/drivers/src/waitqueue.c +++ b/components/drivers/src/waitqueue.c @@ -1,21 +1,7 @@ /* - * File : waitqueue.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/src/workqueue.c b/components/drivers/src/workqueue.c index 35aaafe133ed8664fb7bd193bab0fc08b45abd02..158ea8b69bcc29fd57fed8a29c363620b4b8b6e6 100644 --- a/components/drivers/src/workqueue.c +++ b/components/drivers/src/workqueue.c @@ -1,21 +1,7 @@ /* - * File : workqueue.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/usb/usbdevice/class/cdc.h b/components/drivers/usb/usbdevice/class/cdc.h index dd919f51fef665783744fb4c150a158fbd2edcc6..4e07f162662af890d43163577311066b77d254c0 100644 --- a/components/drivers/usb/usbdevice/class/cdc.h +++ b/components/drivers/usb/usbdevice/class/cdc.h @@ -1,21 +1,7 @@ /* - * File : cdc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/usb/usbdevice/class/cdc_vcom.c b/components/drivers/usb/usbdevice/class/cdc_vcom.c index eaff09c5d7af21104429f2360c12ba1303a8ff20..119e2838983aa2ec389a7c6a20a786234492f163 100644 --- a/components/drivers/usb/usbdevice/class/cdc_vcom.c +++ b/components/drivers/usb/usbdevice/class/cdc_vcom.c @@ -1,21 +1,7 @@ /* - * File : cdc_vcom.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/usb/usbdevice/class/ecm.c b/components/drivers/usb/usbdevice/class/ecm.c index 76c7d987b8f600ea41a88039f61b614426df538d..cda1a8bf1b4cdcce2b5bdf6602ea9df1aa0b976c 100644 --- a/components/drivers/usb/usbdevice/class/ecm.c +++ b/components/drivers/usb/usbdevice/class/ecm.c @@ -1,11 +1,7 @@ /* - * File : ecm.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/components/drivers/usb/usbdevice/class/hid.h b/components/drivers/usb/usbdevice/class/hid.h index 4e5dac964b8deb4b7213badab8e6f45e679af7d7..4d0f314a11a649c0595841edd791177984cef93e 100644 --- a/components/drivers/usb/usbdevice/class/hid.h +++ b/components/drivers/usb/usbdevice/class/hid.h @@ -1,6 +1,7 @@ /* - * File : hid.h - * COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/usb/usbdevice/class/mstorage.c b/components/drivers/usb/usbdevice/class/mstorage.c index 97ff30c5d23861d806eaa065d007ea88d5a9477d..5131f83840b4342f079837ddb87973354052fe67 100644 --- a/components/drivers/usb/usbdevice/class/mstorage.c +++ b/components/drivers/usb/usbdevice/class/mstorage.c @@ -1,21 +1,7 @@ /* - * File : mstorage.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/usb/usbdevice/class/mstorage.h b/components/drivers/usb/usbdevice/class/mstorage.h index 25068270bdbf0104ed563f52b85c667e80e91d26..254038195b0fd9d6c1c7ee22b5d5818812e5d587 100644 --- a/components/drivers/usb/usbdevice/class/mstorage.h +++ b/components/drivers/usb/usbdevice/class/mstorage.h @@ -1,21 +1,7 @@ /* - * File : mstorage.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/usb/usbdevice/class/ndis.h b/components/drivers/usb/usbdevice/class/ndis.h index 8ad16637c2489700e638e9dfa1053c7cbcd9b545..6d6943366ee1f0361f3e600f12d91e8e819a24f4 100644 --- a/components/drivers/usb/usbdevice/class/ndis.h +++ b/components/drivers/usb/usbdevice/class/ndis.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * ndis.h * diff --git a/components/drivers/usb/usbdevice/class/rndis.c b/components/drivers/usb/usbdevice/class/rndis.c index 40efc85988694e71b913c48e87ea6771d014b1d2..e07c6349d060fae4c22deadbc29dc2c5f5e323c2 100644 --- a/components/drivers/usb/usbdevice/class/rndis.c +++ b/components/drivers/usb/usbdevice/class/rndis.c @@ -1,11 +1,7 @@ /* - * File : rndis.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006-2013, RT-Thread Development 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 diff --git a/components/drivers/usb/usbdevice/class/rndis.h b/components/drivers/usb/usbdevice/class/rndis.h index 1374338c14d1dbc1ca6e6601b26f41698757af29..000ea62baf40da3bbe453f21abd80ebf27476d41 100644 --- a/components/drivers/usb/usbdevice/class/rndis.h +++ b/components/drivers/usb/usbdevice/class/rndis.h @@ -1,11 +1,7 @@ /* - * File : rndis.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development 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 diff --git a/components/drivers/usb/usbdevice/class/winusb.c b/components/drivers/usb/usbdevice/class/winusb.c index ee88a82ec44d817a06d1b2db8711214953b273e0..ff2a81a4da65aa5176b16602ad885eeb6ad7e57f 100644 --- a/components/drivers/usb/usbdevice/class/winusb.c +++ b/components/drivers/usb/usbdevice/class/winusb.c @@ -1,6 +1,7 @@ /* - * File : winusb.c - * COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/usb/usbdevice/class/winusb.h b/components/drivers/usb/usbdevice/class/winusb.h index 86aa7f413cf4b976fdc52a731ccb04ff81356bd6..b5f87b4e56403728ae56454765c4adba8e91a749 100644 --- a/components/drivers/usb/usbdevice/class/winusb.h +++ b/components/drivers/usb/usbdevice/class/winusb.h @@ -1,6 +1,7 @@ /* - * File : winusb.h - * COPYRIGHT (C) 2008 - 2016, RT-Thread Development Team + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/usb/usbdevice/core/core.c b/components/drivers/usb/usbdevice/core/core.c index 1900673976a7dd97b8f4fa3332d2333941c05e49..fb850d6d2b154d7305cb3b9a13edfebc645ec345 100644 --- a/components/drivers/usb/usbdevice/core/core.c +++ b/components/drivers/usb/usbdevice/core/core.c @@ -1,21 +1,7 @@ /* - * File : core.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, 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. + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/usb/usbhost/class/adk.c b/components/drivers/usb/usbhost/class/adk.c index e7eed45127f5c49ff97479ecdd35343c21c4d2a9..2425de7bbaa70cf8cb322ebab7abdea9282c7e8b 100644 --- a/components/drivers/usb/usbhost/class/adk.c +++ b/components/drivers/usb/usbhost/class/adk.c @@ -1,21 +1,7 @@ /* - * File : adk.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -69,7 +55,7 @@ static rt_err_t rt_usbh_adk_get_protocol(struct uintf* intf, rt_uint16_t *protoc { struct urequest setup; uinst_t device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); @@ -103,7 +89,7 @@ static rt_err_t rt_usbh_adk_send_string(struct uintf* intf, rt_uint16_t index, { struct urequest setup; uinst_t device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); @@ -136,7 +122,7 @@ static rt_err_t rt_usbh_adk_start(struct uintf* intf) { struct urequest setup; uinst_t device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); diff --git a/components/drivers/usb/usbhost/class/adk.h b/components/drivers/usb/usbhost/class/adk.h index f08bea5f59e057ebba34c9cf9ef5f0f6428c77e5..041d47c6746f5c77749c0e3f1d5af599ea9da6d0 100644 --- a/components/drivers/usb/usbhost/class/adk.h +++ b/components/drivers/usb/usbhost/class/adk.h @@ -1,21 +1,7 @@ /* - * File : adk.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/usb/usbhost/class/hid.c b/components/drivers/usb/usbhost/class/hid.c index 2c226ca963ed04acfd15c646ce3286e7691e0383..e16096877f13fdb0216bb9ed923059d1391b0f2b 100644 --- a/components/drivers/usb/usbhost/class/hid.c +++ b/components/drivers/usb/usbhost/class/hid.c @@ -1,11 +1,7 @@ /* - * File : hid.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 @@ -34,7 +30,7 @@ rt_err_t rt_usbh_hid_set_idle(struct uintf* intf, int duration, int report_id) { struct urequest setup; struct uinstance* device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); @@ -68,7 +64,7 @@ rt_err_t rt_usbh_hid_get_report(struct uintf* intf, rt_uint8_t type, { struct urequest setup; struct uinstance* device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); @@ -101,7 +97,7 @@ rt_err_t rt_usbh_hid_set_report(struct uintf* intf, rt_uint8_t *buffer, rt_size_ { struct urequest setup; struct uinstance* device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); @@ -133,7 +129,7 @@ rt_err_t rt_usbh_hid_set_protocal(struct uintf* intf, int protocol) { struct urequest setup; struct uinstance* device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); @@ -168,7 +164,7 @@ rt_err_t rt_usbh_hid_get_report_descriptor(struct uintf* intf, { struct urequest setup; struct uinstance* device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(intf != RT_NULL); @@ -218,7 +214,7 @@ static void rt_usbh_hid_callback(void* context) { upipe_t pipe; struct uhid* hid; - int timeout = 300; + int timeout = USB_TIMEOUT_LONG; /* parameter check */ RT_ASSERT(context != RT_NULL); @@ -273,7 +269,7 @@ static rt_err_t rt_usbh_hid_enable(void* arg) uprotocal_t protocal; struct uhid* hid; struct uintf* intf = (struct uintf*)arg; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; upipe_t pipe; /* parameter check */ diff --git a/components/drivers/usb/usbhost/class/hid.h b/components/drivers/usb/usbhost/class/hid.h index 22dcbabde8a860a4fefe1082d37c22bd06493056..8e446c8ceabd3ef4bccfb8c6c5e67e5a8d189bc5 100644 --- a/components/drivers/usb/usbhost/class/hid.h +++ b/components/drivers/usb/usbhost/class/hid.h @@ -1,11 +1,7 @@ /* - * File : hid.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/components/drivers/usb/usbhost/class/mass.c b/components/drivers/usb/usbhost/class/mass.c index ff52f8d6f578bbc5a994734589ddf358e501dad0..20048873f5df49d995394b8790b188bda20062aa 100644 --- a/components/drivers/usb/usbhost/class/mass.c +++ b/components/drivers/usb/usbhost/class/mass.c @@ -1,11 +1,7 @@ /* - * File : mass.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 @@ -194,7 +190,7 @@ rt_err_t rt_usbh_storage_get_max_lun(struct uhintf* intf, rt_uint8_t* max_lun) { struct uinstance* device; struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; if(intf == RT_NULL) { @@ -244,7 +240,7 @@ rt_err_t rt_usbh_storage_reset(struct uhintf* intf) { struct urequest setup; struct uinstance* device; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ if(intf == RT_NULL) @@ -381,7 +377,7 @@ rt_err_t rt_usbh_storage_write10(struct uhintf* intf, rt_uint8_t *buffer, rt_err_t rt_usbh_storage_request_sense(struct uhintf* intf, rt_uint8_t* buffer) { struct ustorage_cbw cmd; - int timeout = 200; + int timeout = USB_TIMEOUT_LONG; /* parameter check */ if(intf == RT_NULL) @@ -417,7 +413,7 @@ rt_err_t rt_usbh_storage_request_sense(struct uhintf* intf, rt_uint8_t* buffer) rt_err_t rt_usbh_storage_test_unit_ready(struct uhintf* intf) { struct ustorage_cbw cmd; - int timeout = 200; + int timeout = USB_TIMEOUT_LONG; /* parameter check */ if(intf == RT_NULL) @@ -453,7 +449,7 @@ rt_err_t rt_usbh_storage_test_unit_ready(struct uhintf* intf) rt_err_t rt_usbh_storage_inquiry(struct uhintf* intf, rt_uint8_t* buffer) { struct ustorage_cbw cmd; - int timeout = 200; + int timeout = USB_TIMEOUT_LONG; /* parameter check */ if(intf == RT_NULL) @@ -490,7 +486,7 @@ rt_err_t rt_usbh_storage_inquiry(struct uhintf* intf, rt_uint8_t* buffer) rt_err_t rt_usbh_storage_get_capacity(struct uhintf* intf, rt_uint8_t* buffer) { struct ustorage_cbw cmd; - int timeout = 200; + int timeout = USB_TIMEOUT_LONG; /* parameter check */ if(intf == RT_NULL) diff --git a/components/drivers/usb/usbhost/class/mass.h b/components/drivers/usb/usbhost/class/mass.h index 38cdb3239904226e8314683ff70ac6c2d69fa7e2..770e64a03f9820d9560cb39aefb8fe2ceaf3bd01 100644 --- a/components/drivers/usb/usbhost/class/mass.h +++ b/components/drivers/usb/usbhost/class/mass.h @@ -1,11 +1,7 @@ /* - * File : mass.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/components/drivers/usb/usbhost/class/udisk.c b/components/drivers/usb/usbhost/class/udisk.c index cdd2551c96f9f5482ec70798d127373eaca23b43..1509a261050e46e3aa4760b23f76637e10b2ab1f 100644 --- a/components/drivers/usb/usbhost/class/udisk.c +++ b/components/drivers/usb/usbhost/class/udisk.c @@ -1,11 +1,7 @@ /* - * File : udisk.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 @@ -74,13 +70,13 @@ static rt_size_t rt_udisk_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_err_t ret; struct uhintf* intf; struct ustor_data* data; - int timeout = 500; + int timeout = USB_TIMEOUT_LONG; /* check parameter */ RT_ASSERT(dev != RT_NULL); RT_ASSERT(buffer != RT_NULL); - if(size > 4096) timeout = 800; + if(size > 4096) timeout *= 2; data = (struct ustor_data*)dev->user_data; intf = data->intf; @@ -112,13 +108,13 @@ static rt_size_t rt_udisk_write (rt_device_t dev, rt_off_t pos, const void* buff rt_err_t ret; struct uhintf* intf; struct ustor_data* data; - int timeout = 500; + int timeout = USB_TIMEOUT_LONG; /* check parameter */ RT_ASSERT(dev != RT_NULL); RT_ASSERT(buffer != RT_NULL); - if(size * SECTOR_SIZE > 4096) timeout = 800; + if(size * SECTOR_SIZE > 4096) timeout *= 2; data = (struct ustor_data*)dev->user_data; intf = data->intf; @@ -297,7 +293,7 @@ rt_err_t rt_udisk_run(struct uhintf* intf) RT_DEBUG_LOG(RT_DEBUG_USB, ("read partition table\n")); /* get the partition table */ - ret = rt_usbh_storage_read10(intf, sector, 0, 1, 500); + ret = rt_usbh_storage_read10(intf, sector, 0, 1, USB_TIMEOUT_LONG); if(ret != RT_EOK) { rt_kprintf("read parition table error\n"); diff --git a/components/drivers/usb/usbhost/class/ukbd.c b/components/drivers/usb/usbhost/class/ukbd.c index 9f7d4bda3a9fbfc290ac90dc68ce05f338b73abb..7d608de259654584a52b2c5ae812e070039f4579 100644 --- a/components/drivers/usb/usbhost/class/ukbd.c +++ b/components/drivers/usb/usbhost/class/ukbd.c @@ -1,11 +1,7 @@ /* - * File : ukbd.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/components/drivers/usb/usbhost/class/umouse.c b/components/drivers/usb/usbhost/class/umouse.c index 0fb529f598a73f545f3a1fc64f43ae84e82d3d6d..e769475a9827395616293000931a3d98d500d399 100644 --- a/components/drivers/usb/usbhost/class/umouse.c +++ b/components/drivers/usb/usbhost/class/umouse.c @@ -1,11 +1,7 @@ /* - * File : umouse.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/components/drivers/usb/usbhost/core/core.c b/components/drivers/usb/usbhost/core/core.c index 854c3815af58acbdb7f2755a62aca15784d288fb..71341a33c30ac399077629f5ba6964b887d4b9e2 100644 --- a/components/drivers/usb/usbhost/core/core.c +++ b/components/drivers/usb/usbhost/core/core.c @@ -1,21 +1,7 @@ /* - * File : core.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -274,18 +260,20 @@ rt_err_t rt_usbh_detach_instance(uinst_t device) } /* free configration descriptor */ - for(i=0; icfg_desc->bNumInterfaces; i++) - { - if(device->intf[i] == RT_NULL) continue; - if(device->intf[i]->drv == RT_NULL) continue; + if (device->cfg_desc) { + for (i = 0; i < device->cfg_desc->bNumInterfaces; i++) + { + if (device->intf[i] == RT_NULL) continue; + if (device->intf[i]->drv == RT_NULL) continue; - RT_ASSERT(device->intf[i]->device == device); + RT_ASSERT(device->intf[i]->device == device); - RT_DEBUG_LOG(RT_DEBUG_USB, ("free interface instance %d\n", i)); - rt_usbh_class_driver_disable(device->intf[i]->drv, (void*)device->intf[i]); - rt_free(device->intf[i]); + RT_DEBUG_LOG(RT_DEBUG_USB, ("free interface instance %d\n", i)); + rt_usbh_class_driver_disable(device->intf[i]->drv, (void*)device->intf[i]); + rt_free(device->intf[i]); + } + rt_free(device->cfg_desc); } - if(device->cfg_desc) rt_free(device->cfg_desc); rt_usb_hcd_free_pipe(device->hcd,device->pipe_ep0_out); rt_usb_hcd_free_pipe(device->hcd,device->pipe_ep0_in); @@ -315,7 +303,7 @@ rt_err_t rt_usbh_get_descriptor(uinst_t device, rt_uint8_t type, void* buffer, int nbytes) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; RT_ASSERT(device != RT_NULL); @@ -349,7 +337,7 @@ rt_err_t rt_usbh_get_descriptor(uinst_t device, rt_uint8_t type, void* buffer, rt_err_t rt_usbh_set_address(uinst_t device) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; RT_ASSERT(device != RT_NULL); @@ -385,7 +373,7 @@ rt_err_t rt_usbh_set_address(uinst_t device) rt_err_t rt_usbh_set_configure(uinst_t device, int config) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* check parameter */ RT_ASSERT(device != RT_NULL); @@ -419,7 +407,7 @@ rt_err_t rt_usbh_set_configure(uinst_t device, int config) rt_err_t rt_usbh_set_interface(uinst_t device, int intf) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* check parameter */ RT_ASSERT(device != RT_NULL); @@ -450,7 +438,7 @@ rt_err_t rt_usbh_set_interface(uinst_t device, int intf) rt_err_t rt_usbh_clear_feature(uinst_t device, int endpoint, int feature) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* check parameter */ RT_ASSERT(device != RT_NULL); diff --git a/components/drivers/usb/usbhost/core/driver.c b/components/drivers/usb/usbhost/core/driver.c index 19c8805732fbecc0891e4a235184808c6d30236a..37327108c112c95f1edd09087f37238f63e49ba5 100644 --- a/components/drivers/usb/usbhost/core/driver.c +++ b/components/drivers/usb/usbhost/core/driver.c @@ -1,21 +1,7 @@ /* - * File : driver.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/usb/usbhost/core/hub.c b/components/drivers/usb/usbhost/core/hub.c index b022183d1a0e238ba969777ed09a3ae4cd449d8a..80ed9b4e3fd8750ed0eca7cd4ca7f4baeb2ba3ca 100644 --- a/components/drivers/usb/usbhost/core/hub.c +++ b/components/drivers/usb/usbhost/core/hub.c @@ -1,21 +1,7 @@ /* - * File : hub.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -132,7 +118,7 @@ void rt_usbh_root_hub_disconnect_handler(struct uhcd *hcd, rt_uint8_t port) rt_err_t rt_usbh_hub_get_descriptor(struct uinstance* device, rt_uint8_t *buffer, rt_size_t nbytes) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(device != RT_NULL); @@ -165,7 +151,7 @@ rt_err_t rt_usbh_hub_get_descriptor(struct uinstance* device, rt_uint8_t *buffer rt_err_t rt_usbh_hub_get_status(struct uinstance* device, rt_uint32_t* buffer) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(device != RT_NULL); @@ -198,7 +184,7 @@ rt_err_t rt_usbh_hub_get_status(struct uinstance* device, rt_uint32_t* buffer) rt_err_t rt_usbh_hub_get_port_status(uhub_t hub, rt_uint16_t port, rt_uint32_t* buffer) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(hub != RT_NULL); @@ -240,7 +226,7 @@ rt_err_t rt_usbh_hub_get_port_status(uhub_t hub, rt_uint16_t port, rt_uint32_t* rt_err_t rt_usbh_hub_clear_port_feature(uhub_t hub, rt_uint16_t port, rt_uint16_t feature) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(hub != RT_NULL); @@ -281,7 +267,7 @@ rt_err_t rt_usbh_hub_set_port_feature(uhub_t hub, rt_uint16_t port, rt_uint16_t feature) { struct urequest setup; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; /* parameter check */ RT_ASSERT(hub != RT_NULL); @@ -359,6 +345,9 @@ rt_err_t rt_usbh_hub_port_debounce(uhub_t hub, rt_uint16_t port) int i = 0, times = 20; rt_uint32_t pstatus; rt_bool_t connect = RT_TRUE; + int delayticks = USB_DEBOUNCE_TIME / times; + if (delayticks < 1) + delayticks = 1; /* parameter check */ RT_ASSERT(hub != RT_NULL); @@ -374,7 +363,7 @@ rt_err_t rt_usbh_hub_port_debounce(uhub_t hub, rt_uint16_t port) break; } - rt_thread_delay(1); + rt_thread_delay(delayticks); } if(connect) return RT_EOK; @@ -442,6 +431,7 @@ static rt_err_t rt_usbh_hub_port_change(uhub_t hub) device->speed = (pstatus & PORT_LSDA) ? 1 : 0; device->parent_hub = hub; device->hcd = hub->hcd; + device->port = i + 1; hub->child[i] = device; /* reset usb roothub port */ @@ -466,7 +456,7 @@ static void rt_usbh_hub_irq(void* context) { upipe_t pipe; uhub_t hub; - int timeout = 100; + int timeout = USB_TIMEOUT_BASIC; RT_ASSERT(context != RT_NULL); @@ -507,7 +497,7 @@ static rt_err_t rt_usbh_hub_enable(void *arg) struct uinstance* device; struct uhintf* intf = (struct uhintf*)arg; upipe_t pipe_in = RT_NULL; - int timeout = 300; + int timeout = USB_TIMEOUT_LONG; /* paremeter check */ RT_ASSERT(intf != RT_NULL); diff --git a/components/drivers/usb/usbhost/core/usbhost.c b/components/drivers/usb/usbhost/core/usbhost.c index 15ac0b76cbdc1228c820916df4447152cec812c4..f0294238c4f0f9edd5f3273635ad48de44302127 100644 --- a/components/drivers/usb/usbhost/core/usbhost.c +++ b/components/drivers/usb/usbhost/core/usbhost.c @@ -1,21 +1,7 @@ /* - * File : usbhost.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/drivers/watchdog/watchdog.c b/components/drivers/watchdog/watchdog.c index e5453f8e435938f058c48453402334edd9a2e262..196f02039d5883179d0e7d5a27d6ded23e2e0c09 100644 --- a/components/drivers/watchdog/watchdog.c +++ b/components/drivers/watchdog/watchdog.c @@ -1,21 +1,7 @@ /* - * File : watchdog.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012-2014, Shanghai Real-Thread Electronic Technology Co.,Ltd - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/drivers/wlan/wlan_lwip.c b/components/drivers/wlan/wlan_lwip.c index 73c2eebafe5c0b7d1b2b52455378b6d7964b3a48..ec6ca2384545ac8d31d4d90fc5b24a422a4bee3b 100644 --- a/components/drivers/wlan/wlan_lwip.c +++ b/components/drivers/wlan/wlan_lwip.c @@ -31,6 +31,10 @@ #define DBG_COLOR #include +#ifndef IPADDR_STRLEN_MAX +#define IPADDR_STRLEN_MAX (32) +#endif + struct lwip_prot_des { struct rt_wlan_prot prot; @@ -46,10 +50,10 @@ static void netif_is_ready(struct rt_work *work, void *parameter) struct rt_wlan_device *wlan = parameter; struct lwip_prot_des *lwip_prot = (struct lwip_prot_des *)wlan->prot; struct eth_device *eth_dev = &lwip_prot->eth; - char str[IP4ADDR_STRLEN_MAX]; rt_base_t level; struct rt_wlan_buff buff; rt_uint32_t ip_addr[4]; + char str[IPADDR_STRLEN_MAX]; rt_timer_stop(&lwip_prot->timer); if (ip_addr_cmp(&(eth_dev->netif->ip_addr), &ip_addr_zero) != 0) @@ -91,9 +95,9 @@ static void netif_is_ready(struct rt_work *work, void *parameter) rt_timer_start(&lwip_prot->timer); goto exit; } - rt_memset(str, 0, IP4ADDR_STRLEN_MAX); + rt_memset(str, 0, IPADDR_STRLEN_MAX); rt_enter_critical(); - rt_memcpy(str, ipaddr_ntoa(&(eth_dev->netif->ip_addr)), IP4ADDR_STRLEN_MAX); + rt_memcpy(str, ipaddr_ntoa(&(eth_dev->netif->ip_addr)), IPADDR_STRLEN_MAX); rt_exit_critical(); LOG_I("Got IP address : %s", str); exit: @@ -136,7 +140,7 @@ static void netif_set_connected(void *parameter) if (wlan->mode == RT_WLAN_STATION) { LOG_D("F:%s L:%d dhcp start run", __FUNCTION__, __LINE__); - netifapi_netif_set_link_up(eth_dev->netif); + netifapi_netif_common(eth_dev->netif, netif_set_link_up, NULL); #ifdef RT_LWIP_DHCP dhcp_start(eth_dev->netif); #endif @@ -146,7 +150,7 @@ static void netif_set_connected(void *parameter) { LOG_D("F:%s L:%d dhcpd start run", __FUNCTION__, __LINE__); - netifapi_netif_set_link_up(eth_dev->netif); + netifapi_netif_common(eth_dev->netif, netif_set_link_up, NULL); #ifdef LWIP_USING_DHCPD { char netif_name[8]; @@ -167,10 +171,10 @@ static void netif_set_connected(void *parameter) if (wlan->mode == RT_WLAN_STATION) { LOG_D("F:%s L:%d dhcp stop run", __FUNCTION__, __LINE__); - netifapi_netif_set_link_down(eth_dev->netif); + netifapi_netif_common(eth_dev->netif, netif_set_link_down, NULL); #ifdef RT_LWIP_DHCP { - ip4_addr_t ip_addr = { 0 }; + ip_addr_t ip_addr = { 0 }; dhcp_stop(eth_dev->netif); netif_set_addr(eth_dev->netif, &ip_addr, &ip_addr, &ip_addr); } @@ -180,7 +184,7 @@ static void netif_set_connected(void *parameter) else if (wlan->mode == RT_WLAN_AP) { LOG_D("F:%s L:%d dhcpd stop run", __FUNCTION__, __LINE__); - netifapi_netif_set_link_down(eth_dev->netif); + netifapi_netif_common(eth_dev->netif, netif_set_link_down, NULL); } } } @@ -438,6 +442,7 @@ static struct rt_wlan_prot *rt_wlan_lwip_protocol_register(struct rt_wlan_prot * rt_timer_init(&lwip_prot->timer, timer_name, timer_callback, wlan, rt_tick_from_millisecond(1000), RT_TIMER_FLAG_SOFT_TIMER | RT_TIMER_FLAG_ONE_SHOT); } + netif_set_up(eth->netif); LOG_I("eth device init ok name:%s", eth_name); return &lwip_prot->prot; diff --git a/components/drivers/wlan/wlan_mgnt.c b/components/drivers/wlan/wlan_mgnt.c index c8f190239cf8a953af583626fdec7471bed2f764..1d0b0c4aa7f15f866c1c193ce6f036bb810b9a88 100644 --- a/components/drivers/wlan/wlan_mgnt.c +++ b/components/drivers/wlan/wlan_mgnt.c @@ -495,7 +495,7 @@ static void rt_wlan_event_dispatch(struct rt_wlan_device *device, rt_wlan_dev_ev { user_buff = *buff; } - /* 事件处理 */ + /* Event Handle */ switch (event) { case RT_WLAN_DEV_EVT_CONNECT: @@ -737,9 +737,12 @@ rt_err_t rt_wlan_set_mode(const char *dev_name, rt_wlan_mode_t mode) RT_WLAN_LOG_E("not find device, set mode failed! name:%s", dev_name); return -RT_EIO; } + + MGNT_LOCK(); if (RT_WLAN_DEVICE(device)->mode == mode) { RT_WLAN_LOG_D("L:%d this device mode is set"); + MGNT_UNLOCK(); return RT_EOK; } @@ -747,19 +750,21 @@ rt_err_t rt_wlan_set_mode(const char *dev_name, rt_wlan_mode_t mode) (RT_WLAN_DEVICE(device)->flags & RT_WLAN_FLAG_AP_ONLY)) { RT_WLAN_LOG_I("this device ap mode only"); + MGNT_UNLOCK(); return -RT_ERROR; } else if ((mode == RT_WLAN_AP) && (RT_WLAN_DEVICE(device)->flags & RT_WLAN_FLAG_STA_ONLY)) { RT_WLAN_LOG_I("this device sta mode only"); + MGNT_UNLOCK(); return -RT_ERROR; } + /* * device == sta and change to ap, should deinit * device == ap and change to sta, should deinit */ - MGNT_LOCK(); if (((mode == RT_WLAN_STATION) && (RT_WLAN_DEVICE(device) == AP_DEVICE())) || ((mode == RT_WLAN_AP) && (RT_WLAN_DEVICE(device) == STA_DEVICE()))) { @@ -1627,12 +1632,12 @@ struct rt_wlan_scan_result *rt_wlan_scan_with_info(struct rt_wlan_info *info) return &scan_result; } - /* run scna */ + /* run scan */ err = rt_wlan_dev_scan(STA_DEVICE(), info); if (err != RT_EOK) { rt_wlan_complete_delete(complete); - RT_WLAN_LOG_E("scna sync fail"); + RT_WLAN_LOG_E("scan sync fail"); MGNT_UNLOCK(); return RT_NULL; } @@ -1646,7 +1651,7 @@ struct rt_wlan_scan_result *rt_wlan_scan_with_info(struct rt_wlan_info *info) set = 0x1 << RT_WLAN_DEV_EVT_SCAN_DONE; if (!(recved & set)) { - RT_WLAN_LOG_E("scna wait timeout!"); + RT_WLAN_LOG_E("scan wait timeout!"); MGNT_UNLOCK(); return &scan_result; } diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index edb7c0c921c340b2fe6fb3bb808efe9e043a3e37..0e04b794e975553d8a4357b171f14c1496da836c 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -1,26 +1,7 @@ /* - * RT-Thread finsh shell commands + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h index 4452d4a0d64c0733352d4d645d6800b3b95d9dfd..eb38682c4f3d1692319f7425cf6b18ef42c4b6cd 100644 --- a/components/finsh/finsh.h +++ b/components/finsh/finsh.h @@ -1,20 +1,7 @@ /* - * File : finsh.h - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/finsh/finsh_api.h b/components/finsh/finsh_api.h index 3b7c77de2ae7e2a437c82080d00e4bbee9171f59..c601415d824b46c329322a602f38555876a1320d 100644 --- a/components/finsh/finsh_api.h +++ b/components/finsh/finsh_api.h @@ -1,20 +1,7 @@ /* - * File : finsh_api.h - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/finsh/finsh_compiler.c b/components/finsh/finsh_compiler.c index cf6bb0fe43fa4930e8459e66b9309cf0e07cc158..1b1f67cb7675a874ca446e14a564e42b73e89a99 100644 --- a/components/finsh/finsh_compiler.c +++ b/components/finsh/finsh_compiler.c @@ -1,26 +1,7 @@ /* - * RT-Thread finsh shell compiler + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_error.c b/components/finsh/finsh_error.c index 962aee1ad3c288985a38c213ee806c8288a03944..bdd0108f98264f84e45aab2475f0a36e6a3e9c5f 100644 --- a/components/finsh/finsh_error.c +++ b/components/finsh/finsh_error.c @@ -1,26 +1,7 @@ /* - * error number for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_error.h b/components/finsh/finsh_error.h index bec5d85c27504bae4fa0e04e257530d1043f421a..614e02a350a7621929a08dd797a37960cd5740ed 100644 --- a/components/finsh/finsh_error.h +++ b/components/finsh/finsh_error.h @@ -1,26 +1,7 @@ /* - * error number for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_heap.c b/components/finsh/finsh_heap.c index f2f4beb08d4add81c45296c94cbd687c143778d3..0d185db47469bd700030691178d708559d5e537a 100644 --- a/components/finsh/finsh_heap.c +++ b/components/finsh/finsh_heap.c @@ -1,26 +1,7 @@ /* - * heap management in finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_heap.h b/components/finsh/finsh_heap.h index 7ea61d47eb41a32cdb058e0697bdc01a8aa86d8e..9c04e5c22f903f23fabe0f6080d755f6f99f6ab8 100644 --- a/components/finsh/finsh_heap.h +++ b/components/finsh/finsh_heap.h @@ -1,26 +1,7 @@ /* - * heap management in finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_init.c b/components/finsh/finsh_init.c index a2852092f99af395d4840e1b537293eac7ee7263..72f5aa5e9ad5bb5f082f4f86e473de7f0b541c7f 100644 --- a/components/finsh/finsh_init.c +++ b/components/finsh/finsh_init.c @@ -1,26 +1,7 @@ /* - * Initialization procedure for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_node.c b/components/finsh/finsh_node.c index ae28a6ac81024150ebd028795489d06eb7571d17..0de82c189d4cdeebe0118f6921229e2a227e5bb7 100644 --- a/components/finsh/finsh_node.c +++ b/components/finsh/finsh_node.c @@ -1,26 +1,7 @@ /* - * node routines for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_node.h b/components/finsh/finsh_node.h index 5e0e4a300c9b4ecad197c38d2cd283fc9352a505..c7ce099636d316cc551f3ce2d01b8cb20a485588 100644 --- a/components/finsh/finsh_node.h +++ b/components/finsh/finsh_node.h @@ -1,26 +1,7 @@ /* - * node routines for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_ops.c b/components/finsh/finsh_ops.c index cefdf3c2521eb274b161a2da3a9d369215556bcf..2eafb50c699cd72deab192fbda180c193e45427c 100644 --- a/components/finsh/finsh_ops.c +++ b/components/finsh/finsh_ops.c @@ -1,26 +1,7 @@ /* - * operations for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_ops.h b/components/finsh/finsh_ops.h index 4e4c5c976ec9d23368d93053105908b4e981cfce..95a8b001fbf2269defa427689069cd66b3cddb3b 100644 --- a/components/finsh/finsh_ops.h +++ b/components/finsh/finsh_ops.h @@ -1,26 +1,7 @@ /* - * operations for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_parser.c b/components/finsh/finsh_parser.c index aa85509162f55fb1d1c4fb73409d2c70c1153c9e..0e7617003c379eb3a05dce18a25e35f16f4febd0 100644 --- a/components/finsh/finsh_parser.c +++ b/components/finsh/finsh_parser.c @@ -1,26 +1,7 @@ /* - * script parser for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_parser.h b/components/finsh/finsh_parser.h index 00d440ae5feeaafaab905a0ca12be2dc70cbb6fb..8e149a7e00e8de07c36ff27aad3c4d53a25594c6 100644 --- a/components/finsh/finsh_parser.h +++ b/components/finsh/finsh_parser.h @@ -1,26 +1,7 @@ /* - * script parser for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_token.c b/components/finsh/finsh_token.c index a9fd0ac7d0c1cf4615468a6efffe84fba09fa7d7..5fb593d81677922dc524a74339bdf937fd9d5024 100644 --- a/components/finsh/finsh_token.c +++ b/components/finsh/finsh_token.c @@ -1,26 +1,7 @@ /* - * token lex for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_token.h b/components/finsh/finsh_token.h index fd7e2597cd4d7689d7d28c4897a8fd39a4d4ce46..0ce98c0f14fc1021bc7478517745daba335d9e3c 100644 --- a/components/finsh/finsh_token.h +++ b/components/finsh/finsh_token.h @@ -1,26 +1,7 @@ /* - * token lex for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_var.c b/components/finsh/finsh_var.c index 7e394926445b5622ed378d33eb013dc37a967a68..6a27bf1fabdf4352384a5250aa9d8958592ece50 100644 --- a/components/finsh/finsh_var.c +++ b/components/finsh/finsh_var.c @@ -1,26 +1,7 @@ /* - * Variable implementation in finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_var.h b/components/finsh/finsh_var.h index f8013ac9d3f2d4389f306d36577ffb4e45a6910f..8d7ee6a201a8185141d59e7d7b869e0c1ca13b5d 100644 --- a/components/finsh/finsh_var.h +++ b/components/finsh/finsh_var.h @@ -1,26 +1,7 @@ /* - * Variable implementation in finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_vm.c b/components/finsh/finsh_vm.c index 8a3b8949e5bead667deae25d571d9f7e6720ab3e..fcd58494a919187f04a2cd461a9bdd732b5ae601 100644 --- a/components/finsh/finsh_vm.c +++ b/components/finsh/finsh_vm.c @@ -1,26 +1,7 @@ /* - * Virtual machine of finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/finsh_vm.h b/components/finsh/finsh_vm.h index 478a757146df3c54846be9161eeaf5c74feabb57..fc515418e4775a2147361f2cf69383a35a521475 100644 --- a/components/finsh/finsh_vm.h +++ b/components/finsh/finsh_vm.h @@ -1,26 +1,7 @@ /* - * Virtual machine finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/msh.c b/components/finsh/msh.c index a724b65faaaa546e70b734f39659ff2f210bcce7..ae5214cc2cc6f82426214be1939cc25bf9f46ad2 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -1,26 +1,7 @@ /* - * RT-Thread module shell implementation. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/msh.h b/components/finsh/msh.h index df497329567ef3418d736b150cb70ee50b132232..b7153107eab3b7f95997ffa51beed0ec90ef793d 100644 --- a/components/finsh/msh.h +++ b/components/finsh/msh.h @@ -1,26 +1,7 @@ /* - * RT-Thread module shell implementation. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c index 47ca031065629fc4b5d1d294ee767b497bdda209..8f5de3cc16558dd5ea60e6b1c64a23c17439aa4c 100644 --- a/components/finsh/msh_cmd.c +++ b/components/finsh/msh_cmd.c @@ -1,26 +1,7 @@ /* - * internal commands for RT-Thread module shell + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/msh_file.c b/components/finsh/msh_file.c index 80012e9bb8ab6b55d91d6ef4a8e1c06c7052b7f4..ecab250859827dfa4efe8256258049e679d8862a 100644 --- a/components/finsh/msh_file.c +++ b/components/finsh/msh_file.c @@ -1,26 +1,7 @@ /* - * script for RT-Thread module shell + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 441f6c3241745a98e7ed9dafdb3c85d7fe331ebe..e4b27004d5c0f195b2c5ceb6ab2d46160249bff7 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -1,26 +1,7 @@ /* - * shell implementation for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/shell.h b/components/finsh/shell.h index d0fd66ee7800118a524a4e91274c0d8a7b0430c7..2cf2c9b8334409283f8ace13229b4a5337a66485 100644 --- a/components/finsh/shell.h +++ b/components/finsh/shell.h @@ -1,26 +1,7 @@ /* - * shell implementation for finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/finsh/symbol.c b/components/finsh/symbol.c index 8e026c4a1b886876865cd852efac0a8be6d90b78..a8c64dfdd5e2067ac2f56790e29bad853e2e4c5d 100644 --- a/components/finsh/symbol.c +++ b/components/finsh/symbol.c @@ -1,26 +1,7 @@ /* - * symbols in finsh shell. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * Maintainer: bernard.xiong - * - * All rights reserved. - * - * 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 diff --git a/components/libc/aio/posix_aio.c b/components/libc/aio/posix_aio.c index 03e653bdd1d25be6659e27454a861ffa702571e7..75e7de9ce329a96ad5c1e6f17c8ea87cc3b06ffc 100644 --- a/components/libc/aio/posix_aio.c +++ b/components/libc/aio/posix_aio.c @@ -1,21 +1,7 @@ /* - * File : posix_aio.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/aio/posix_aio.h b/components/libc/aio/posix_aio.h index 0787538aa07ed0d61a22bde12c8e47a0f61b5578..f20ed48cb356cd16a592bb64d1a6441329959c60 100644 --- a/components/libc/aio/posix_aio.h +++ b/components/libc/aio/posix_aio.h @@ -1,21 +1,7 @@ /* - * File : posix_aio.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/armlibc/dirent.h b/components/libc/compilers/armlibc/dirent.h index 1adf952031776d2b73edd71f4848531d9433ca9d..d3bc58cbc5fffe22f257f07f4c7ebb4a7a211702 100644 --- a/components/libc/compilers/armlibc/dirent.h +++ b/components/libc/compilers/armlibc/dirent.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __RTT_DIRENT_H__ #define __RTT_DIRENT_H__ diff --git a/components/libc/compilers/armlibc/fcntl.h b/components/libc/compilers/armlibc/fcntl.h index 324b73f218bbba4876cab61ae0387772833bb809..80cf1b440910ca4bc57e64621eb3f025d783ef17 100644 --- a/components/libc/compilers/armlibc/fcntl.h +++ b/components/libc/compilers/armlibc/fcntl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef FCNTL_H__ #define FCNTL_H__ diff --git a/components/libc/compilers/armlibc/libc.c b/components/libc/compilers/armlibc/libc.c index c3fab19fdcad5014be8b14ee1304fd56c516ef9c..fee390d4b4b04842852ebdf475f21cf5e39e43dd 100644 --- a/components/libc/compilers/armlibc/libc.c +++ b/components/libc/compilers/armlibc/libc.c @@ -1,23 +1,7 @@ /* - * File : libc.c - * Brief : armcc libc initialization + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/armlibc/libc.h b/components/libc/compilers/armlibc/libc.h index e57897f0a8ba1498b871a38a00a1101763017af2..158fe06c3e540ca9ba4f87d0472f3d57eb543be7 100644 --- a/components/libc/compilers/armlibc/libc.h +++ b/components/libc/compilers/armlibc/libc.h @@ -1,23 +1,7 @@ /* - * File : libc.h - * Brief : armcc libc header file + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/armlibc/libc_syms.c b/components/libc/compilers/armlibc/libc_syms.c index fc84aec77af31db001472acf6a3f3bfd10964a59..0e1c42d8993da98b110b68d20d787c836306859d 100644 --- a/components/libc/compilers/armlibc/libc_syms.c +++ b/components/libc/compilers/armlibc/libc_syms.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include #include diff --git a/components/libc/compilers/armlibc/mem_std.c b/components/libc/compilers/armlibc/mem_std.c index 4393b5f2af1ffb3b09c3155c2f5a9e2153454698..e160104a25a600558b0d6c8714b4635ddaaba859 100644 --- a/components/libc/compilers/armlibc/mem_std.c +++ b/components/libc/compilers/armlibc/mem_std.c @@ -1,13 +1,7 @@ /* - * File : mem_std.c - * Brief : implement standard memory routins. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of Device File System in RT-Thread RTOS - * COPYRIGHT (C) 2014, 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: * 2014-08-03 bernard Add file header. diff --git a/components/libc/compilers/armlibc/stdio.c b/components/libc/compilers/armlibc/stdio.c index 9d90823c781b415066eb7317fbe3ae04bbeb39f5..5262a4dd92382ceb9004b48b09fbd66f89a9cf29 100644 --- a/components/libc/compilers/armlibc/stdio.c +++ b/components/libc/compilers/armlibc/stdio.c @@ -1,23 +1,7 @@ /* - * File : stdio.c - * Brief : stdio/console + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/armlibc/stubs.c b/components/libc/compilers/armlibc/stubs.c index dbb60c8a44aacfc66cf9538c40aec68a3533cd00..6e9f13d143795c1ebb4db8a5c6f4191e030299eb 100644 --- a/components/libc/compilers/armlibc/stubs.c +++ b/components/libc/compilers/armlibc/stubs.c @@ -1,23 +1,7 @@ /* - * File : stubs.c - * Brief : reimplement some basic functions of arm standard c library + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/armlibc/sys/errno.h b/components/libc/compilers/armlibc/sys/errno.h index 8ee115ed0466e9149a3ead698cb3cb5ff1d74031..9c4307ebfb23ad77843e5e7f297b494b64e93d0b 100644 --- a/components/libc/compilers/armlibc/sys/errno.h +++ b/components/libc/compilers/armlibc/sys/errno.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef SYS_ERRNO_H__ #define SYS_ERRNO_H__ diff --git a/components/libc/compilers/armlibc/sys/mman.h b/components/libc/compilers/armlibc/sys/mman.h index 024a64e91187145937cae5a68f902a8afa30acbc..8c61b32b7cecf6890ed0786b16c86f00c13ef1dd 100644 --- a/components/libc/compilers/armlibc/sys/mman.h +++ b/components/libc/compilers/armlibc/sys/mman.h @@ -1,21 +1,7 @@ /* - * File : mman.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/armlibc/sys/stat.h b/components/libc/compilers/armlibc/sys/stat.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ce95230e88f261eab0235f0818173b33b253fa94 100644 --- a/components/libc/compilers/armlibc/sys/stat.h +++ b/components/libc/compilers/armlibc/sys/stat.h @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ diff --git a/components/libc/compilers/armlibc/sys/time.h b/components/libc/compilers/armlibc/sys/time.h index 2d60b373170cecbad1bb0777c5fb5fba4589b3ee..e5751cfa3d6a039f291987bc7ecc0d04fe383c82 100644 --- a/components/libc/compilers/armlibc/sys/time.h +++ b/components/libc/compilers/armlibc/sys/time.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _SYS_TIME_H_ #define _SYS_TIME_H_ diff --git a/components/libc/compilers/armlibc/sys/types.h b/components/libc/compilers/armlibc/sys/types.h index b01d8283d4794d66375613b668277d553cd04145..4c76dfc42944bec1b8b694652185f07879d9ff1c 100644 --- a/components/libc/compilers/armlibc/sys/types.h +++ b/components/libc/compilers/armlibc/sys/types.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __TYPES_H__ #define __TYPES_H__ diff --git a/components/libc/compilers/armlibc/sys/unistd.h b/components/libc/compilers/armlibc/sys/unistd.h index 56979955ba0a1ac9f61d23ec862e2c6e06a1a6db..33f0561e7260f01c8e08fd4969bb929bd06ac99d 100644 --- a/components/libc/compilers/armlibc/sys/unistd.h +++ b/components/libc/compilers/armlibc/sys/unistd.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _SYS_UNISTD_H #define _SYS_UNISTD_H diff --git a/components/libc/compilers/armlibc/termios.h b/components/libc/compilers/armlibc/termios.h index 0b54066a76c324b8d08b84fa1ae079004c60f53b..19561212259a9014f6339f0624105983e5e8c1ac 100644 --- a/components/libc/compilers/armlibc/termios.h +++ b/components/libc/compilers/armlibc/termios.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _TERMIOS_H__ #define _TERMIOS_H__ diff --git a/components/libc/compilers/armlibc/time.c b/components/libc/compilers/armlibc/time.c index e7ad19ad3c1b6088a4b7a558c95056a384a75de7..29c5c6cdd2ca818a9cb8ca3b0a1ea60f10a6a5d3 100644 --- a/components/libc/compilers/armlibc/time.c +++ b/components/libc/compilers/armlibc/time.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include diff --git a/components/libc/compilers/armlibc/unistd.h b/components/libc/compilers/armlibc/unistd.h index 3de0eaf3984c4cf382683f3b4b3391d133403833..70187722d88c1b6fe288ec79b2faaac6b8877f9c 100644 --- a/components/libc/compilers/armlibc/unistd.h +++ b/components/libc/compilers/armlibc/unistd.h @@ -1 +1,9 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include "sys/unistd.h" diff --git a/components/libc/compilers/dlib/dirent.h b/components/libc/compilers/dlib/dirent.h index 61e77b97670168de154af6be45770fde91c5e1e2..4c897cc550d9f5b0277392bb8a53008dfb89c269 100644 --- a/components/libc/compilers/dlib/dirent.h +++ b/components/libc/compilers/dlib/dirent.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __RTT_DIRENT_H__ #define __RTT_DIRENT_H__ diff --git a/components/libc/compilers/dlib/environ.c b/components/libc/compilers/dlib/environ.c index 1e44eb16272284ef10a842ef086c2e7d1c9c384b..ac19758838c442e7df994494c630fad0c1d68da8 100644 --- a/components/libc/compilers/dlib/environ.c +++ b/components/libc/compilers/dlib/environ.c @@ -1,20 +1,7 @@ -/* File: environ.c - * this file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team +/* + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/fcntl.h b/components/libc/compilers/dlib/fcntl.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ce95230e88f261eab0235f0818173b33b253fa94 100644 --- a/components/libc/compilers/dlib/fcntl.h +++ b/components/libc/compilers/dlib/fcntl.h @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ diff --git a/components/libc/compilers/dlib/libc.c b/components/libc/compilers/dlib/libc.c index fa977ab39911a8b621c29f93a0fb820556f02377..8b42411a6bf3abc22c6a8db2767f8f6413630395 100644 --- a/components/libc/compilers/dlib/libc.c +++ b/components/libc/compilers/dlib/libc.c @@ -1,23 +1,7 @@ /* - * File : libc.c - * Brief : iar dlib initialization + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/dlib/libc.h b/components/libc/compilers/dlib/libc.h index d0a081d538a184f4f886f2e2629499013f269b60..7b2665c32b9619430db1315748e4405ea9fb8a52 100644 --- a/components/libc/compilers/dlib/libc.h +++ b/components/libc/compilers/dlib/libc.h @@ -1,23 +1,7 @@ /* - * File : libc.h - * Brief : iar dlib header file + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/dlib/rmtx.c b/components/libc/compilers/dlib/rmtx.c index 4bf714027181219f13a7118aabd877861decc8f2..69405c8f6a4d9104c2e4b53088a4314ab0a64817 100644 --- a/components/libc/compilers/dlib/rmtx.c +++ b/components/libc/compilers/dlib/rmtx.c @@ -1,21 +1,7 @@ /* - * File : rmtx.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/stdio.c b/components/libc/compilers/dlib/stdio.c index 12c1081d8bc8ee4b06e54fca630cddb36c66c198..b35ade7a38ba20b65889945e524c85876e17abaf 100644 --- a/components/libc/compilers/dlib/stdio.c +++ b/components/libc/compilers/dlib/stdio.c @@ -1,23 +1,7 @@ /* - * File : stdio.c - * Brief : stdio/console + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/dlib/sys/errno.h b/components/libc/compilers/dlib/sys/errno.h index 072892edc1544ae4cf3cc68c53a7e45ce469f59e..1ecb58b74c41648b53dad5358c811406c8aa5d30 100644 --- a/components/libc/compilers/dlib/sys/errno.h +++ b/components/libc/compilers/dlib/sys/errno.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef SYS_ERRNO_H__ #define SYS_ERRNO_H__ diff --git a/components/libc/compilers/dlib/sys/mman.h b/components/libc/compilers/dlib/sys/mman.h index 024a64e91187145937cae5a68f902a8afa30acbc..8c61b32b7cecf6890ed0786b16c86f00c13ef1dd 100644 --- a/components/libc/compilers/dlib/sys/mman.h +++ b/components/libc/compilers/dlib/sys/mman.h @@ -1,21 +1,7 @@ /* - * File : mman.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/sys/stat.h b/components/libc/compilers/dlib/sys/stat.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ce95230e88f261eab0235f0818173b33b253fa94 100644 --- a/components/libc/compilers/dlib/sys/stat.h +++ b/components/libc/compilers/dlib/sys/stat.h @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ diff --git a/components/libc/compilers/dlib/sys/time.h b/components/libc/compilers/dlib/sys/time.h index 1acb8360326cf8d4455f6860cd67a86089dd31ec..766d219fafe32c4343a9a044c7d4dc7cff124c9e 100644 --- a/components/libc/compilers/dlib/sys/time.h +++ b/components/libc/compilers/dlib/sys/time.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _SYS_TIME_H_ #define _SYS_TIME_H_ diff --git a/components/libc/compilers/dlib/sys/types.h b/components/libc/compilers/dlib/sys/types.h index b01d8283d4794d66375613b668277d553cd04145..4c76dfc42944bec1b8b694652185f07879d9ff1c 100644 --- a/components/libc/compilers/dlib/sys/types.h +++ b/components/libc/compilers/dlib/sys/types.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __TYPES_H__ #define __TYPES_H__ diff --git a/components/libc/compilers/dlib/sys/unistd.h b/components/libc/compilers/dlib/sys/unistd.h index dbe4f3010df9fa1439d0592cc0d06c3208a96fbe..5985a42996937932500fba46476e05dfb9a99061 100644 --- a/components/libc/compilers/dlib/sys/unistd.h +++ b/components/libc/compilers/dlib/sys/unistd.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _SYS_UNISTD_H #define _SYS_UNISTD_H diff --git a/components/libc/compilers/dlib/syscall_close.c b/components/libc/compilers/dlib/syscall_close.c index 5792bb3806fd3bb0d1ba8b10f52867f7755b3cad..f46162deb710fa9393c5ca22f9d1a69bc50dc7e2 100644 --- a/components/libc/compilers/dlib/syscall_close.c +++ b/components/libc/compilers/dlib/syscall_close.c @@ -1,21 +1,7 @@ /* - * File : syscall_close.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/syscall_lseek.c b/components/libc/compilers/dlib/syscall_lseek.c index 950ba52f652a2872758fdb9b9121559365dd926c..b79cc410b77324cea2037cb33bd96ae7a64f95c1 100644 --- a/components/libc/compilers/dlib/syscall_lseek.c +++ b/components/libc/compilers/dlib/syscall_lseek.c @@ -1,21 +1,7 @@ /* - * File : syscall_lseek.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/syscall_mem.c b/components/libc/compilers/dlib/syscall_mem.c index b3933ba910ddce5e93ac0465f8a38e937b7d0173..236ef1c12d3c878dffb1e101f848849bc1bcf8b5 100644 --- a/components/libc/compilers/dlib/syscall_mem.c +++ b/components/libc/compilers/dlib/syscall_mem.c @@ -1,21 +1,7 @@ /* - * File : syscall_mem.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/syscall_open.c b/components/libc/compilers/dlib/syscall_open.c index 61947075493a4c04b5c2b867860a15fc32bf2b54..96e02dc32a1f0d2b03048704e78e1aea3371f351 100644 --- a/components/libc/compilers/dlib/syscall_open.c +++ b/components/libc/compilers/dlib/syscall_open.c @@ -1,22 +1,8 @@ /* -* File : syscall_open.c -* This file is part of RT-Thread RTOS -* COPYRIGHT (C) 2006 - 2015, 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. -* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * * Change Logs: * Date Author Notes * 2015-01-28 Bernard first version diff --git a/components/libc/compilers/dlib/syscall_read.c b/components/libc/compilers/dlib/syscall_read.c index e7e99629d7ceb9eb30c9b0f27551b36958521207..e2482114864392934910266bbd542691cd6b68a8 100644 --- a/components/libc/compilers/dlib/syscall_read.c +++ b/components/libc/compilers/dlib/syscall_read.c @@ -1,21 +1,7 @@ /* - * File : syscall_read.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/syscall_remove.c b/components/libc/compilers/dlib/syscall_remove.c index b7dd9477b739dc2817ce1d2714d4d278cfe7bf01..e7f0268b1be47a80fa56685e21483f858b29f8f7 100644 --- a/components/libc/compilers/dlib/syscall_remove.c +++ b/components/libc/compilers/dlib/syscall_remove.c @@ -1,21 +1,7 @@ /* - * File : syscall_remove.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/syscall_write.c b/components/libc/compilers/dlib/syscall_write.c index 79d702339a42229f70f400127a9a3b3189d5df01..85c0da22c32c668df160e1366799be3a5122baf4 100644 --- a/components/libc/compilers/dlib/syscall_write.c +++ b/components/libc/compilers/dlib/syscall_write.c @@ -1,21 +1,7 @@ /* - * File : syscall_write.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/syscalls.h b/components/libc/compilers/dlib/syscalls.h index 2c38854f72fe7f858720a1727cc7067afe4b055e..993962e8dbb924a5e741b33c83a4727df03f2390 100644 --- a/components/libc/compilers/dlib/syscalls.h +++ b/components/libc/compilers/dlib/syscalls.h @@ -1,20 +1,7 @@ -/* File: syscalls.h - * this file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team +/* + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/dlib/termios.h b/components/libc/compilers/dlib/termios.h index 0b54066a76c324b8d08b84fa1ae079004c60f53b..19561212259a9014f6339f0624105983e5e8c1ac 100644 --- a/components/libc/compilers/dlib/termios.h +++ b/components/libc/compilers/dlib/termios.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _TERMIOS_H__ #define _TERMIOS_H__ diff --git a/components/libc/compilers/dlib/time.c b/components/libc/compilers/dlib/time.c index f61bd5cfcaa5c445ed10f08a52d1313542bcca1d..12c7f893e97d8f9c90e169f5381d28d08f4bd3fc 100644 --- a/components/libc/compilers/dlib/time.c +++ b/components/libc/compilers/dlib/time.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include @@ -34,9 +42,9 @@ int gettimeofday(struct timeval *tp, void *ignore) */ #pragma module_name = "?time" #if _DLIB_TIME_ALLOW_64 -time_t __time64(time_t *t) +__time64_t __time64(__time64_t *t) #else -time_t __time32(time_t *t) +__time32_t __time32(__time32_t *t) #endif { time_t time_now = 0; diff --git a/components/libc/compilers/dlib/unistd.h b/components/libc/compilers/dlib/unistd.h index d67f8fb6f2e946f99dba21ab565a7c3f8d4ec9e5..a07d8409c2b8206edf6d56fea1b1c09e0c767560 100644 --- a/components/libc/compilers/dlib/unistd.h +++ b/components/libc/compilers/dlib/unistd.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _UNISTD_H_ #define _UNISTD_H_ diff --git a/components/libc/compilers/minilibc/ctype.c b/components/libc/compilers/minilibc/ctype.c index fed8f583a69ba328ffef8e53d031daecc80fd8bd..b94ff2dae8a996567b80958bde777584b8f52708 100644 --- a/components/libc/compilers/minilibc/ctype.c +++ b/components/libc/compilers/minilibc/ctype.c @@ -1,11 +1,7 @@ /* - * File : ctype.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2008, RT-Thread Development 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 diff --git a/components/libc/compilers/minilibc/ctype.h b/components/libc/compilers/minilibc/ctype.h index 6b93490d363c9bc28566c99e36eaf92850ca97d8..5f41376ed8204455634f6e0def9412421848baaa 100644 --- a/components/libc/compilers/minilibc/ctype.h +++ b/components/libc/compilers/minilibc/ctype.h @@ -1,11 +1,7 @@ /* - * File : ctype.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2008, RT-Thread Development 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 diff --git a/components/libc/compilers/minilibc/errno.h b/components/libc/compilers/minilibc/errno.h index 751eef50dc254426a8f23304b75e66f7e0663ab0..a7ee38059407bcd5c156545b01e71a18c71ba38c 100644 --- a/components/libc/compilers/minilibc/errno.h +++ b/components/libc/compilers/minilibc/errno.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __ERRNO_H__ #define __ERRNO_H__ diff --git a/components/libc/compilers/minilibc/inttypes.h b/components/libc/compilers/minilibc/inttypes.h index 84e036a043f1a7dfd46a680ea7eefd87dfacfcf2..8bab743655c88e6022501aa11e16a54e0d7997b9 100644 --- a/components/libc/compilers/minilibc/inttypes.h +++ b/components/libc/compilers/minilibc/inttypes.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __INTTYPES_H__ #define __INTTYPES_H__ diff --git a/components/libc/compilers/minilibc/math.c b/components/libc/compilers/minilibc/math.c index 27315a428cc9902bf34392a6ff53563e59a39175..cd5770178ea0c9091e692685392fa7eb76b645bc 100644 --- a/components/libc/compilers/minilibc/math.c +++ b/components/libc/compilers/minilibc/math.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include /* diff --git a/components/libc/compilers/minilibc/math.h b/components/libc/compilers/minilibc/math.h index b436eb08b5a0e19b9e8b89a9a01494a41760e25e..9ddb9c859bce1a8d4a0dcc74805377c00eb749d1 100644 --- a/components/libc/compilers/minilibc/math.h +++ b/components/libc/compilers/minilibc/math.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __MATH_H__ #define __MATH_H__ diff --git a/components/libc/compilers/minilibc/qsort.c b/components/libc/compilers/minilibc/qsort.c index f412986e1d0ce42239a6e007c07d2c57473e01e0..2b97ce763c90452284ac0d9e1f03ca230ed9fabb 100644 --- a/components/libc/compilers/minilibc/qsort.c +++ b/components/libc/compilers/minilibc/qsort.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include diff --git a/components/libc/compilers/minilibc/rand.c b/components/libc/compilers/minilibc/rand.c index 387d605d4c6d207b8eec8634e97bea04174583a6..88603dc808827c44378c29044341d17f77fd4f51 100644 --- a/components/libc/compilers/minilibc/rand.c +++ b/components/libc/compilers/minilibc/rand.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include #include diff --git a/components/libc/compilers/minilibc/stddef.h b/components/libc/compilers/minilibc/stddef.h index 8068277117382ebb6da7139207d94cc1ac1611e4..7353a157cb797d6f2b5fcc688eec2f8265a56dbb 100644 --- a/components/libc/compilers/minilibc/stddef.h +++ b/components/libc/compilers/minilibc/stddef.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __STDDEF_H__ #define __STDDEF_H__ diff --git a/components/libc/compilers/minilibc/stdint.h b/components/libc/compilers/minilibc/stdint.h index c865d43435d6011b56e6ea9247125e8207fcafb4..bd5fdc83f5ea05070c54faea34ea88058e4af4c9 100644 --- a/components/libc/compilers/minilibc/stdint.h +++ b/components/libc/compilers/minilibc/stdint.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* * ISO C Standard: 7.18 Integer types */ diff --git a/components/libc/compilers/minilibc/stdio.h b/components/libc/compilers/minilibc/stdio.h index a6ecb329313a99fc660f74586eab71851d820b32..678682cf5ef420114898856f6f58a05b2fcb1005 100644 --- a/components/libc/compilers/minilibc/stdio.h +++ b/components/libc/compilers/minilibc/stdio.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __STDIO_H__ #define __STDIO_H__ diff --git a/components/libc/compilers/minilibc/stdlib.c b/components/libc/compilers/minilibc/stdlib.c index e29ae9bc2e7ebc94d954b529e18b030bbce356d8..8154ec5b8b2aada10825a3be0443871f73b137a0 100644 --- a/components/libc/compilers/minilibc/stdlib.c +++ b/components/libc/compilers/minilibc/stdlib.c @@ -1,11 +1,7 @@ /* - * File : stdlib.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2008, RT-Thread Development 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 diff --git a/components/libc/compilers/minilibc/stdlib.h b/components/libc/compilers/minilibc/stdlib.h index 4e87537d3f365ca116249242437cfa8029c6e361..d57d95b64df06b6eb2dbcc297f64652fb71b376f 100644 --- a/components/libc/compilers/minilibc/stdlib.h +++ b/components/libc/compilers/minilibc/stdlib.h @@ -1,11 +1,7 @@ /* - * File : stdlib.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2008, RT-Thread Development 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 diff --git a/components/libc/compilers/minilibc/string.c b/components/libc/compilers/minilibc/string.c index 4e90da1554651d50b14c1f3973743fe605fee6be..1ab7c0509f74b7e80bbb87ec3434eff0498ff802 100644 --- a/components/libc/compilers/minilibc/string.c +++ b/components/libc/compilers/minilibc/string.c @@ -1,11 +1,7 @@ /* - * File : string.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2008, RT-Thread Development 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 diff --git a/components/libc/compilers/minilibc/string.h b/components/libc/compilers/minilibc/string.h index 089903e9933d461704bc3e885162295a2ac5ebc2..45524c7764a0025e243e4129d322d749edf400cc 100644 --- a/components/libc/compilers/minilibc/string.h +++ b/components/libc/compilers/minilibc/string.h @@ -1,11 +1,7 @@ /* - * File : string.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2008, RT-Thread Development 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 diff --git a/components/libc/compilers/minilibc/sys/mman.h b/components/libc/compilers/minilibc/sys/mman.h index 024a64e91187145937cae5a68f902a8afa30acbc..8c61b32b7cecf6890ed0786b16c86f00c13ef1dd 100644 --- a/components/libc/compilers/minilibc/sys/mman.h +++ b/components/libc/compilers/minilibc/sys/mman.h @@ -1,21 +1,7 @@ /* - * File : mman.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/minilibc/sys/stat.h b/components/libc/compilers/minilibc/sys/stat.h index 7826cba9450230dc8d48c2599228d1c09fe92b90..65db477a4a3717dff5e3f8a1f1999c7ba55e0053 100644 --- a/components/libc/compilers/minilibc/sys/stat.h +++ b/components/libc/compilers/minilibc/sys/stat.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __STAT_H__ #define __STAT_H__ diff --git a/components/libc/compilers/minilibc/sys/time.h b/components/libc/compilers/minilibc/sys/time.h index 9cb330df5c3104942e8c540b6b1ec7a47bfcd261..22a93f5c9d52a06ddb145b2e31e8e29b2d87df96 100644 --- a/components/libc/compilers/minilibc/sys/time.h +++ b/components/libc/compilers/minilibc/sys/time.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _SYS_TIME_H_ #define _SYS_TIME_H_ diff --git a/components/libc/compilers/minilibc/sys/types.h b/components/libc/compilers/minilibc/sys/types.h index 850bafea4376875b57ed3cf69f40d11c3fb434a6..0c00a79d1e8c9ed4d716f2eac69fd397045473d9 100644 --- a/components/libc/compilers/minilibc/sys/types.h +++ b/components/libc/compilers/minilibc/sys/types.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __TYPES_H__ #define __TYPES_H__ diff --git a/components/libc/compilers/minilibc/time.c b/components/libc/compilers/minilibc/time.c index 605f6f573e13c0b5317bcdd404c9525e25903b84..508558bafc3cd702e837a615fbe047cdfd8cbe40 100644 --- a/components/libc/compilers/minilibc/time.c +++ b/components/libc/compilers/minilibc/time.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include diff --git a/components/libc/compilers/minilibc/time.h b/components/libc/compilers/minilibc/time.h index d64feba0b8af639bb6eb92b4aa0febc7e5c9611d..09fc7d2e678f1cd5db24b5f0a27f3d5eebb11055 100644 --- a/components/libc/compilers/minilibc/time.h +++ b/components/libc/compilers/minilibc/time.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __TIME_H__ #define __TIME_H__ diff --git a/components/libc/compilers/newlib/libc.c b/components/libc/compilers/newlib/libc.c index 495ecf4ce06f4fcafe3a505fef6e10de4f2e238c..06c490c8cf8c4faec0c971586afe8888a85c7cbf 100644 --- a/components/libc/compilers/newlib/libc.c +++ b/components/libc/compilers/newlib/libc.c @@ -1,23 +1,7 @@ /* - * File : libc.c - * Brief : gcc libc header file + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/newlib/libc.h b/components/libc/compilers/newlib/libc.h index e0a9f053a059270bd2dd4a24ae1e41a274c5f00f..ab9334fe262a39bb508aa0a0980b951a327648f2 100644 --- a/components/libc/compilers/newlib/libc.h +++ b/components/libc/compilers/newlib/libc.h @@ -1,23 +1,7 @@ /* - * File : libc.h - * Brief : gcc libc header file + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/newlib/libc_syms.c b/components/libc/compilers/newlib/libc_syms.c index ed8686e5ddfb28488d2e27f3743790efddee6d89..b150c10fd62d1d5aa33099fb8b9a7f6ce1abec79 100644 --- a/components/libc/compilers/newlib/libc_syms.c +++ b/components/libc/compilers/newlib/libc_syms.c @@ -1,23 +1,7 @@ /* - * File : libc_syms.c - * Brief : exported symbols for libc. + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/newlib/stdio.c b/components/libc/compilers/newlib/stdio.c index 9f30106b729c5f59a95a3a602d1a77c8ef67da62..233a4473967febea261f084f756eb11ab8948329 100644 --- a/components/libc/compilers/newlib/stdio.c +++ b/components/libc/compilers/newlib/stdio.c @@ -1,23 +1,7 @@ /* - * File : stdio.c - * Brief : stdio for newlib + * Copyright (c) 2006-2018, RT-Thread Development Team * - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, 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 diff --git a/components/libc/compilers/newlib/sys/dirent.h b/components/libc/compilers/newlib/sys/dirent.h index 2efc683579d60fca08e0e3bf799e701106403468..db8c0655a1f5d2d748d2fced412443297d57d19d 100644 --- a/components/libc/compilers/newlib/sys/dirent.h +++ b/components/libc/compilers/newlib/sys/dirent.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __RTT_DIRENT_H__ #define __RTT_DIRENT_H__ diff --git a/components/libc/compilers/newlib/sys/mman.h b/components/libc/compilers/newlib/sys/mman.h index 024a64e91187145937cae5a68f902a8afa30acbc..8c61b32b7cecf6890ed0786b16c86f00c13ef1dd 100644 --- a/components/libc/compilers/newlib/sys/mman.h +++ b/components/libc/compilers/newlib/sys/mman.h @@ -1,21 +1,7 @@ /* - * File : mman.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/compilers/newlib/sys/statfs.h b/components/libc/compilers/newlib/sys/statfs.h index 95772b5ead6d549c9300047f5a6f6ea84c617aef..3c923a21f94293e94bca1dcc1876a08169724559 100644 --- a/components/libc/compilers/newlib/sys/statfs.h +++ b/components/libc/compilers/newlib/sys/statfs.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __RTT_STATFS_H__ #define __RTT_STATFS_H__ diff --git a/components/libc/compilers/newlib/sys/termios.h b/components/libc/compilers/newlib/sys/termios.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ce95230e88f261eab0235f0818173b33b253fa94 100644 --- a/components/libc/compilers/newlib/sys/termios.h +++ b/components/libc/compilers/newlib/sys/termios.h @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c index cc72efe9eadba992742152b115338c9b9d40289e..e4cda478cb7196535fab95bb3913fc4441bb4cb1 100644 --- a/components/libc/compilers/newlib/syscalls.c +++ b/components/libc/compilers/newlib/syscalls.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include #include diff --git a/components/libc/compilers/newlib/termios.h b/components/libc/compilers/newlib/termios.h index 0b54066a76c324b8d08b84fa1ae079004c60f53b..19561212259a9014f6339f0624105983e5e8c1ac 100644 --- a/components/libc/compilers/newlib/termios.h +++ b/components/libc/compilers/newlib/termios.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef _TERMIOS_H__ #define _TERMIOS_H__ diff --git a/components/libc/compilers/newlib/time.c b/components/libc/compilers/newlib/time.c index e7ad19ad3c1b6088a4b7a558c95056a384a75de7..29c5c6cdd2ca818a9cb8ca3b0a1ea60f10a6a5d3 100644 --- a/components/libc/compilers/newlib/time.c +++ b/components/libc/compilers/newlib/time.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include diff --git a/components/libc/mmap/posix_mmap.c b/components/libc/mmap/posix_mmap.c index 8e70678c25b5916061fcaeccd331116e31249647..3d405aad777d02aa5d48cae9ab974e729269462e 100644 --- a/components/libc/mmap/posix_mmap.c +++ b/components/libc/mmap/posix_mmap.c @@ -1,21 +1,7 @@ /* - * File : posix_mmap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/mqueue.c b/components/libc/pthreads/mqueue.c index 7b669dc3678093958fcb2b19fb4b35d478bdc6cb..003b49b9a0436c0c157985d02edf6d42acd95242 100644 --- a/components/libc/pthreads/mqueue.c +++ b/components/libc/pthreads/mqueue.c @@ -1,21 +1,7 @@ /* - * File : mqueue.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/mqueue.h b/components/libc/pthreads/mqueue.h index de2925837f6abffabfb65d2e1fee8c417da00bcd..5cadde3ae8e4af5f4f950a6195c3ff900b9bbce6 100644 --- a/components/libc/pthreads/mqueue.h +++ b/components/libc/pthreads/mqueue.h @@ -1,21 +1,7 @@ /* - * File : mqueue.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/posix_types.h b/components/libc/pthreads/posix_types.h index 1e401e2de32b61163d55d26b2eca876065407998..ca20464bb5ba3d717d6c39ee0fb74ae26a16da11 100644 --- a/components/libc/pthreads/posix_types.h +++ b/components/libc/pthreads/posix_types.h @@ -1,21 +1,7 @@ /* - * File : posix_types.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread.c b/components/libc/pthreads/pthread.c index 103b5de33d9596a6820cef8fb0a2f974242dc02b..62c110499db1a4f4b487801b8ab31d842cbac36d 100644 --- a/components/libc/pthreads/pthread.c +++ b/components/libc/pthreads/pthread.c @@ -1,21 +1,7 @@ /* - * File : pthread.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread.h b/components/libc/pthreads/pthread.h index b60aa374710be16c0b4b4894f522d4bb027057d6..6a82375de42f6f029c18940abc2832908c89ec77 100644 --- a/components/libc/pthreads/pthread.h +++ b/components/libc/pthreads/pthread.h @@ -1,21 +1,7 @@ /* - * File : pthread.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_attr.c b/components/libc/pthreads/pthread_attr.c index 3e0f7b1e4c2887d2cf84817f5ebe112c7f531323..8eed35932fec89292ed2957ad201de31adaf1890 100644 --- a/components/libc/pthreads/pthread_attr.c +++ b/components/libc/pthreads/pthread_attr.c @@ -1,21 +1,7 @@ /* - * File : pthread_attr.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_barrier.c b/components/libc/pthreads/pthread_barrier.c index c39a45586ef3de0032daec318052472b1955e91c..d76fe7f13f2ad53d394738f912b4de0e1cff553b 100644 --- a/components/libc/pthreads/pthread_barrier.c +++ b/components/libc/pthreads/pthread_barrier.c @@ -1,21 +1,7 @@ /* - * File : pthread_barrier.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_cond.c b/components/libc/pthreads/pthread_cond.c index 1a4217310e30f796884c1a61187742212222f966..d3c4ac76378c280a9fa27977300ed52676327cdc 100644 --- a/components/libc/pthreads/pthread_cond.c +++ b/components/libc/pthreads/pthread_cond.c @@ -1,21 +1,7 @@ /* - * File : pthread_cond.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_internal.h b/components/libc/pthreads/pthread_internal.h index ce7fb256a54700245ae507caa80778cb4b0e6e74..3e94e867d7af079a39d8072ed0ef7ee94f4ed3bf 100644 --- a/components/libc/pthreads/pthread_internal.h +++ b/components/libc/pthreads/pthread_internal.h @@ -1,21 +1,7 @@ /* - * File : pthread_internal.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_mutex.c b/components/libc/pthreads/pthread_mutex.c index c7c3d38c4fb9a08c9c273852222c408d9aaee314..8f96531782fe6667f9e4e68b7011bccfa36b1c66 100644 --- a/components/libc/pthreads/pthread_mutex.c +++ b/components/libc/pthreads/pthread_mutex.c @@ -1,21 +1,7 @@ /* - * File : pthread_mutex.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_rwlock.c b/components/libc/pthreads/pthread_rwlock.c index 3e009034cc006b1914fb4c9f941a8885dc3b06a9..64a0e221b417e49037c33f7269744ee5bdd3919f 100644 --- a/components/libc/pthreads/pthread_rwlock.c +++ b/components/libc/pthreads/pthread_rwlock.c @@ -1,21 +1,7 @@ /* - * File : pthread_rwlock.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_spin.c b/components/libc/pthreads/pthread_spin.c index 4c4320dda9045b45be0cbe1ad7ca4efeefc1eadc..b31f4f6393dee70aac8e787f84e2885210708851 100644 --- a/components/libc/pthreads/pthread_spin.c +++ b/components/libc/pthreads/pthread_spin.c @@ -1,21 +1,7 @@ /* - * File : pthread_spin.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/pthread_tls.c b/components/libc/pthreads/pthread_tls.c index d689f31e47944fd1eb5d317485f773813e8b402c..c6d0bca155137f72f8125668f0ce9ff17662d47c 100644 --- a/components/libc/pthreads/pthread_tls.c +++ b/components/libc/pthreads/pthread_tls.c @@ -1,21 +1,7 @@ /* - * File : pthread_tls.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/sched.c b/components/libc/pthreads/sched.c index 6f75127bf2c7f8a66fc21aa2cc11c3f9ed65a3f7..a1bf50985eff7a56a273cf100d03d65a91c96679 100644 --- a/components/libc/pthreads/sched.c +++ b/components/libc/pthreads/sched.c @@ -1,21 +1,7 @@ /* - * File : sched.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/sched.h b/components/libc/pthreads/sched.h index f0fa17bfa16421f9cec4aac161038a9b2e909688..dbaf66edc2d29437105766f5288291dae9234e2c 100644 --- a/components/libc/pthreads/sched.h +++ b/components/libc/pthreads/sched.h @@ -1,21 +1,7 @@ /* - * File : sched.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/semaphore.c b/components/libc/pthreads/semaphore.c index ea6701b1e0bea30439786dce004b7e32816ed677..2bef10022e36694da51667b5581017d78ed70f57 100644 --- a/components/libc/pthreads/semaphore.c +++ b/components/libc/pthreads/semaphore.c @@ -1,21 +1,7 @@ /* - * File : semaphore.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/pthreads/semaphore.h b/components/libc/pthreads/semaphore.h index 664c15ee2e1ec0336230e758c880cd54ee131fdf..d135ae9261ac7d40ff892b9ee0a2be20dff47a1c 100644 --- a/components/libc/pthreads/semaphore.h +++ b/components/libc/pthreads/semaphore.h @@ -1,21 +1,7 @@ /* - * File : semaphore.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/signal/posix_signal.c b/components/libc/signal/posix_signal.c index b950fc956ccda40ed040858a9b7caa4210612de9..c0dd90e63764abdcf04b55dcbcfb5ccc0128e5ba 100644 --- a/components/libc/signal/posix_signal.c +++ b/components/libc/signal/posix_signal.c @@ -1,21 +1,7 @@ /* - * File : signal.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/signal/posix_signal.h b/components/libc/signal/posix_signal.h index 5ec721c921981b54e2b0c0c9db7af6932473e77f..896d6b6da4d010a0e03c93ef311490567954f473 100644 --- a/components/libc/signal/posix_signal.h +++ b/components/libc/signal/posix_signal.h @@ -1,21 +1,7 @@ /* - * File : signals.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c index 4f7417cb272d9c461ba4ab01955c35bd949bb648..75c876dd33ad759b044cd99e8a246436fcf9efc9 100644 --- a/components/libc/termios/posix_termios.c +++ b/components/libc/termios/posix_termios.c @@ -1,21 +1,7 @@ /* - * File : termios.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/termios/posix_termios.h b/components/libc/termios/posix_termios.h index b5bd1d50f41f057c03042c543292de884f51245c..4f556d79d97eed8945553a60b787d51b6c82c283 100644 --- a/components/libc/termios/posix_termios.h +++ b/components/libc/termios/posix_termios.h @@ -1,21 +1,7 @@ /* - * File : termios.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/time/clock_time.c b/components/libc/time/clock_time.c index 3d3cc9aed3a9bca5260b7ca2ad4ac5d0ee675d11..83b3b916ca1730936d9142fd003c58a2bfbaad7a 100644 --- a/components/libc/time/clock_time.c +++ b/components/libc/time/clock_time.c @@ -1,21 +1,7 @@ /* - * File : clock_time.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2012, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/time/clock_time.h b/components/libc/time/clock_time.h index e91e6c97fa529aa900815172d86c86e11e750f62..7feb0390a4e15e73eea8df7fd528803edeb286fb 100644 --- a/components/libc/time/clock_time.h +++ b/components/libc/time/clock_time.h @@ -1,21 +1,7 @@ /* - * File : clock_time.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/libc/time/posix_sleep.c b/components/libc/time/posix_sleep.c index b4b33722ac88bc3992aab8f9c22831a99f2fd551..f21b0a7994a384fb55f8724b3a9373255c81db67 100644 --- a/components/libc/time/posix_sleep.c +++ b/components/libc/time/posix_sleep.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include diff --git a/components/net/at/at_socket/at_socket.c b/components/net/at/at_socket/at_socket.c index 16c8c1d712a1230d41b7249c08ee00dd9be22274..6fd2e765d43654447252954e6d67ba503c7f043a 100644 --- a/components/net/at/at_socket/at_socket.c +++ b/components/net/at/at_socket/at_socket.c @@ -23,6 +23,8 @@ #define LOG_TAG "at.skt" #include +#ifdef AT_USING_SOCKET + #define HTONS_PORT(x) ((((x) & 0x00ffUL) << 8) | (((x) & 0xff00UL) >> 8)) #define NIPQUAD(addr) \ ((unsigned char *)&addr)[0], \ @@ -655,6 +657,10 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f { timeout = RT_WAITING_FOREVER; } + else + { + timeout = rt_tick_from_millisecond(timeout); + } while (1) { @@ -775,6 +781,9 @@ int at_sendto(int socket, const void *data, size_t size, int flags, const struct goto __exit; } sock->state = AT_SOCKET_CONNECT; + /* set AT socket receive data callback function */ + at_dev_ops->at_set_event_cb(AT_SOCKET_EVT_RECV, at_recv_notice_cb); + at_dev_ops->at_set_event_cb(AT_SOCKET_EVT_CLOSED, at_closed_notice_cb); } if ((len = at_dev_ops->at_send(sock->socket, (char *) data, size, sock->type)) < 0) @@ -1158,7 +1167,7 @@ void at_freeaddrinfo(struct addrinfo *ai) } } -void at_scoket_device_register(const struct at_device_ops *ops) +void at_socket_device_register(const struct at_device_ops *ops) { RT_ASSERT(ops); RT_ASSERT(ops->at_connect); @@ -1168,3 +1177,5 @@ void at_scoket_device_register(const struct at_device_ops *ops) RT_ASSERT(ops->at_set_event_cb); at_dev_ops = (struct at_device_ops *) ops; } + +#endif /* AT_USING_SOCKET */ diff --git a/components/net/at/at_socket/at_socket.h b/components/net/at/at_socket/at_socket.h index 73368d28ca500afe5fd006175e83399a07e600c5..526f8d618acdebf4c0c8798f1e8a62a9c49ac054 100644 --- a/components/net/at/at_socket/at_socket.h +++ b/components/net/at/at_socket/at_socket.h @@ -129,7 +129,7 @@ int at_getaddrinfo(const char *nodename, const char *servname, const struct addr void at_freeaddrinfo(struct addrinfo *ai); struct at_socket *at_get_socket(int socket); -void at_scoket_device_register(const struct at_device_ops *ops); +void at_socket_device_register(const struct at_device_ops *ops); #ifndef RT_USING_SAL diff --git a/components/net/at/src/at_client.c b/components/net/at/src/at_client.c index 9cdc7ec3d141800357b0c84f0b24f486346508ad..1f6ed66743fde5236b4ed08e3444d053d274dea4 100644 --- a/components/net/at/src/at_client.c +++ b/components/net/at/src/at_client.c @@ -363,7 +363,7 @@ int at_client_obj_wait_connect(at_client_t client, rt_uint32_t timeout) while (1) { /* Check whether it is timeout */ - if (rt_tick_get() - start_time > timeout) + if (rt_tick_get() - start_time > rt_tick_from_millisecond(timeout)) { LOG_E("wait connect timeout (%d millisecond)!", timeout); result = -RT_ETIMEOUT; diff --git a/components/net/lwip_dhcpd/dhcp_server.c b/components/net/lwip_dhcpd/dhcp_server.c index 47717fb89469a86291242403826fa2643108bdea..3f0e7a6daf291e478325a7789638ce6b781d676d 100644 --- a/components/net/lwip_dhcpd/dhcp_server.c +++ b/components/net/lwip_dhcpd/dhcp_server.c @@ -222,11 +222,12 @@ static void dhcpd_thread_entry(void *parameter) { #if (LWIP_VERSION) >= 0x02000000U ip4_addr_t addr; + ip4addr_aton(DHCPD_SERVER_IP, &addr); #else struct ip_addr addr; + ipaddr_aton(DHCPD_SERVER_IP, &addr); #endif /* LWIP_VERSION */ - ip4addr_aton(DHCPD_SERVER_IP, &addr); DHCPD_SERVER_IPADDR0 = (ntohl(addr.addr) >> 24) & 0xFF; DHCPD_SERVER_IPADDR1 = (ntohl(addr.addr) >> 16) & 0xFF; DHCPD_SERVER_IPADDR2 = (ntohl(addr.addr) >> 8) & 0xFF; diff --git a/components/net/sal_socket/dfs_net/dfs_net.c b/components/net/sal_socket/dfs_net/dfs_net.c index ee9b685f8cec4594f578278f72d03ade0b7eb3f1..37db186eff3da1e6c16824b410b482261894d64a 100644 --- a/components/net/sal_socket/dfs_net/dfs_net.c +++ b/components/net/sal_socket/dfs_net/dfs_net.c @@ -1,21 +1,7 @@ /* - * File : dfs_net.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/impl/af_inet.h b/components/net/sal_socket/impl/af_inet.h index 8d6be25eaaf6b3d699764b4847e3fb0075e3981f..8b7bf9d2a6a892bb8597e4561133573ce9e27a14 100644 --- a/components/net/sal_socket/impl/af_inet.h +++ b/components/net/sal_socket/impl/af_inet.h @@ -1,21 +1,7 @@ /* - * File : af_inet.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/impl/af_inet_at.c b/components/net/sal_socket/impl/af_inet_at.c index f921e721eb30b4cf53a083f159c96db82c0c0225..c064283a617d7e13f0c581ed8acf878583a3033c 100644 --- a/components/net/sal_socket/impl/af_inet_at.c +++ b/components/net/sal_socket/impl/af_inet_at.c @@ -1,21 +1,7 @@ /* - * File : af_inet_at.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -34,6 +20,8 @@ #include #endif +#ifdef SAL_USING_AT + #ifdef SAL_USING_POSIX static int at_poll(struct dfs_fd *file, struct rt_pollreq *req) { @@ -125,3 +113,5 @@ int at_inet_init(void) return 0; } INIT_COMPONENT_EXPORT(at_inet_init); + +#endif /* SAL_USING_AT */ diff --git a/components/net/sal_socket/impl/af_inet_lwip.c b/components/net/sal_socket/impl/af_inet_lwip.c index 563f8947d0819593d7df84aec90fefed86879872..41ea9ac968c6e94084c5ae17603d5b7941812a91 100644 --- a/components/net/sal_socket/impl/af_inet_lwip.c +++ b/components/net/sal_socket/impl/af_inet_lwip.c @@ -1,21 +1,7 @@ /* - * File : af_inet_lwip.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -44,6 +30,8 @@ #endif #endif +#ifdef SAL_USING_LWIP + #ifdef SAL_USING_POSIX /* * Re-define lwip socket @@ -307,3 +295,5 @@ int lwip_inet_init(void) return 0; } INIT_COMPONENT_EXPORT(lwip_inet_init); + +#endif /* SAL_USING_LWIP */ diff --git a/components/net/sal_socket/include/dfs_net/dfs_net.h b/components/net/sal_socket/include/dfs_net/dfs_net.h index 242d3c5334f765146fa30cc977d57cc5b6829aa5..ad28b8ec2a4a6ff02321fce92cc8793966fafb15 100644 --- a/components/net/sal_socket/include/dfs_net/dfs_net.h +++ b/components/net/sal_socket/include/dfs_net/dfs_net.h @@ -1,21 +1,7 @@ /* - * File : dfs_net.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015-2016, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/dfs_net/sys_select/sys/select.h b/components/net/sal_socket/include/dfs_net/sys_select/sys/select.h index c2e2d54d3a4a8e666b071fed909374c13b50c70e..8899daee96ec992073232d78b3a55fb3101b6ac9 100644 --- a/components/net/sal_socket/include/dfs_net/sys_select/sys/select.h +++ b/components/net/sal_socket/include/dfs_net/sys_select/sys/select.h @@ -1,21 +1,7 @@ /* - * File : select.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/sal.h b/components/net/sal_socket/include/sal.h index 480167c91d206ea72d8117c83319f7711961c9a0..68248742d6822c9911af38a6bd8732eb6a02ceb5 100644 --- a/components/net/sal_socket/include/sal.h +++ b/components/net/sal_socket/include/sal.h @@ -1,21 +1,7 @@ /* - * File : sal.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/sal_ipaddr.h b/components/net/sal_socket/include/sal_ipaddr.h index c40fc18374d287cf1990694dd79de54d8e1efe6e..c0562436f0757597f3be5da5d764bcbe879a7c08 100644 --- a/components/net/sal_socket/include/sal_ipaddr.h +++ b/components/net/sal_socket/include/sal_ipaddr.h @@ -1,21 +1,7 @@ /* - * File : sal_ipaddr.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/sal_netdb.h b/components/net/sal_socket/include/sal_netdb.h index 0a31f26fae227c34e954e75453d54e3854bf63c4..3f70832083aff5c539c4ea8032307ee1cc1b9260 100644 --- a/components/net/sal_socket/include/sal_netdb.h +++ b/components/net/sal_socket/include/sal_netdb.h @@ -1,21 +1,7 @@ /* - * File : sal_netdb.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/sal_socket.h b/components/net/sal_socket/include/sal_socket.h index b5fa5170b93976844937119bc0061eeae00871b4..0a8597df6ec422de13547c374a44e8337d94893d 100644 --- a/components/net/sal_socket/include/sal_socket.h +++ b/components/net/sal_socket/include/sal_socket.h @@ -1,21 +1,7 @@ /* - * File : sal_socket.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/sal_type.h b/components/net/sal_socket/include/sal_type.h index 907b3d02b4ec966d11781e5c82eb308feb1eb70f..6e107ae126c245eafe25bdc425602eee7403fa19 100644 --- a/components/net/sal_socket/include/sal_type.h +++ b/components/net/sal_socket/include/sal_type.h @@ -1,21 +1,7 @@ /* - * File : sal_type.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/socket/arpa/inet.h b/components/net/sal_socket/include/socket/arpa/inet.h index e7d856d43453c7dcba1315a31ba0648764edf3ba..f477df5c239ddd9b54ec784868fbe5d81a448d3a 100644 --- a/components/net/sal_socket/include/socket/arpa/inet.h +++ b/components/net/sal_socket/include/socket/arpa/inet.h @@ -1,21 +1,7 @@ /* - * File : inet.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/socket/netdb.h b/components/net/sal_socket/include/socket/netdb.h index c1ffbb826c3233b56bc8b1811452285bd0f4b5ec..17f83efe001c6ded7d2dc2f5ee8c4da9e880116e 100644 --- a/components/net/sal_socket/include/socket/netdb.h +++ b/components/net/sal_socket/include/socket/netdb.h @@ -1,21 +1,7 @@ /* - * File : netdb.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/socket/netinet/in.h b/components/net/sal_socket/include/socket/netinet/in.h index d01a9b3f89525d26af331bc37cb317d8132dd935..57c417d7b65df99649c5953bd0a6aa20533e01dc 100644 --- a/components/net/sal_socket/include/socket/netinet/in.h +++ b/components/net/sal_socket/include/socket/netinet/in.h @@ -1,21 +1,7 @@ /* - * File : in.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/socket/netinet/tcp.h b/components/net/sal_socket/include/socket/netinet/tcp.h index aafb0f15d08ceec98cf891324181c07307da0e33..2ac4d6f40da6bef89ae7e949e9af47e53cb7a8d8 100644 --- a/components/net/sal_socket/include/socket/netinet/tcp.h +++ b/components/net/sal_socket/include/socket/netinet/tcp.h @@ -1,21 +1,7 @@ /* - * File : tcp.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/socket/netinet/udp.h b/components/net/sal_socket/include/socket/netinet/udp.h index 4b84755e689fc35b7036eb83e816351bb2a40d55..485d7d142c0c421dc143fd73000b7676dd713011 100644 --- a/components/net/sal_socket/include/socket/netinet/udp.h +++ b/components/net/sal_socket/include/socket/netinet/udp.h @@ -1,21 +1,7 @@ /* - * File : udp.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/include/socket/sys_socket/sys/socket.h b/components/net/sal_socket/include/socket/sys_socket/sys/socket.h index ec7f7b87ea4095cae9148d30b54640d058e76943..dd2c3850a6ffce225e64360b63d864830081ed50 100644 --- a/components/net/sal_socket/include/socket/sys_socket/sys/socket.h +++ b/components/net/sal_socket/include/socket/sys_socket/sys/socket.h @@ -1,21 +1,7 @@ /* - * File : socket.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/socket/net_netdb.c b/components/net/sal_socket/socket/net_netdb.c index 1f10afe337c1cbb5dc3c149891816824c661c2ee..bc76a48965807c5182ed990fec57b0f2a82226ab 100644 --- a/components/net/sal_socket/socket/net_netdb.c +++ b/components/net/sal_socket/socket/net_netdb.c @@ -1,21 +1,7 @@ /* - * File : net_netdb.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/socket/net_sockets.c b/components/net/sal_socket/socket/net_sockets.c index b9e9fd3b57f5d83eb33137860799db7a7c58319d..232b87ba1e881240e854f29d32fe9b233e5ea447 100644 --- a/components/net/sal_socket/socket/net_sockets.c +++ b/components/net/sal_socket/socket/net_sockets.c @@ -1,21 +1,7 @@ /* - * File : net_sockets.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/src/sal_ipaddr.c b/components/net/sal_socket/src/sal_ipaddr.c index 0060ccec45c2d55fdac7d5a76efdc07bc51d3b33..6477a8ad6427820c631fad53029faf1459186cfb 100644 --- a/components/net/sal_socket/src/sal_ipaddr.c +++ b/components/net/sal_socket/src/sal_ipaddr.c @@ -1,21 +1,7 @@ /* - * File : sal_ipaddr.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/net/sal_socket/src/sal_socket.c b/components/net/sal_socket/src/sal_socket.c index 351506756f72b12e170e534e33a68cbd808c8673..ac36cb2139e53f808d3048e5b64ef5180e307422 100644 --- a/components/net/sal_socket/src/sal_socket.c +++ b/components/net/sal_socket/src/sal_socket.c @@ -1,21 +1,7 @@ /* - * File : sal_socket.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/utilities/logtrace/log_file.c b/components/utilities/logtrace/log_file.c index 42d1f6e7a98580d051754ed8e8858af486e7c10d..766e55c3a603040b7cf2bde714994ed276705deb 100644 --- a/components/utilities/logtrace/log_file.c +++ b/components/utilities/logtrace/log_file.c @@ -1,21 +1,7 @@ /* - * File : log_file.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/utilities/logtrace/log_trace.c b/components/utilities/logtrace/log_trace.c index 4ea0ff13fd6cfeb8fa8d40e087fca392d3284131..2d631493208a7cbccb6476c87155d9b87ed46f70 100644 --- a/components/utilities/logtrace/log_trace.c +++ b/components/utilities/logtrace/log_trace.c @@ -1,21 +1,7 @@ /* - * File : log_trace.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/utilities/logtrace/log_trace.h b/components/utilities/logtrace/log_trace.h index ca8bebb9c1e8ec7971ed5ab3fc4cf49c7874970c..0c8a122515f3f525d15fa9fa9375f416c8a736c8 100644 --- a/components/utilities/logtrace/log_trace.h +++ b/components/utilities/logtrace/log_trace.h @@ -1,21 +1,7 @@ /* - * File : log_trace.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/utilities/logtrace/memlog.c b/components/utilities/logtrace/memlog.c index 103373ce650d4a23e77fcc84a5b37a955104c498..ea440c495889cdd6e5fc415ab3ce02a7dd6037e7 100644 --- a/components/utilities/logtrace/memlog.c +++ b/components/utilities/logtrace/memlog.c @@ -1,21 +1,7 @@ /* - * File : memlog.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/components/vbus/prio_queue.c b/components/vbus/prio_queue.c index b402e0376a5a70c99cc2e68f9f77e6a1310b4c38..bca3cdcd9a698095226b0fa8e80326f128c7ecf1 100644 --- a/components/vbus/prio_queue.c +++ b/components/vbus/prio_queue.c @@ -1,26 +1,7 @@ /* - * Priority Queue - * - * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/vbus/prio_queue.h b/components/vbus/prio_queue.h index 8a29cbb715013991d40f62a8c2dbf4b9b6038085..7358ffdb23045c58520fa6040e201f68917b2b93 100644 --- a/components/vbus/prio_queue.h +++ b/components/vbus/prio_queue.h @@ -1,26 +1,7 @@ /* - * Priority Queue - * - * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/vbus/share_hdr/vbus_api.h b/components/vbus/share_hdr/vbus_api.h index 4425bb448adcf5d36bbe03a5cd85b7eb153c82f7..db6cb7b72c49b61178ca04c20f14fc91a5e3047b 100644 --- a/components/vbus/share_hdr/vbus_api.h +++ b/components/vbus/share_hdr/vbus_api.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __VBUS_API_H__ #define __VBUS_API_H__ diff --git a/components/vbus/vbus.c b/components/vbus/vbus.c index 4ff4f05f3779fd904284923411d5b343cbdb3517..b6d59af6cfbdb5b0321c63e3885a563c0d7ba687 100644 --- a/components/vbus/vbus.c +++ b/components/vbus/vbus.c @@ -1,26 +1,7 @@ /* - * VMM Bus - * - * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/vbus/vbus.h b/components/vbus/vbus.h index a5fd33130ba8be90521487082078969c998bf8f3..ea271d8e7945513938a15e7ac23e1f6f96c9f933 100644 --- a/components/vbus/vbus.h +++ b/components/vbus/vbus.h @@ -1,34 +1,15 @@ -#ifndef __VBUS_H__ -#define __VBUS_H__ /* - * VBus - * - * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2014-06-09 Grissiom version 2.0.2; add comment * 2015-01-06 Grissiom version 2.0.3; API change, no functional changes */ +#ifndef __VBUS_H__ +#define __VBUS_H__ #include diff --git a/components/vbus/vbus_chnx.c b/components/vbus/vbus_chnx.c index 246c61782f5bbf99d85db2ecb5a73b62798fe92a..d064d6f1f26e9dc329abf60b63124125e5a54f50 100644 --- a/components/vbus/vbus_chnx.c +++ b/components/vbus/vbus_chnx.c @@ -1,26 +1,7 @@ /* - * Channel on VMM Bus - * - * COPYRIGHT (C) 2013-2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/vbus/watermark_queue.c b/components/vbus/watermark_queue.c index 9a55d402d9c154faf4412a3215fba34734bc70f5..e56790d286d5183c1b37eabc7a5e24961f994856 100644 --- a/components/vbus/watermark_queue.c +++ b/components/vbus/watermark_queue.c @@ -1,26 +1,7 @@ /* - * Water Gauge - * - * COPYRIGHT (C) 2014-2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/components/vbus/watermark_queue.h b/components/vbus/watermark_queue.h index 1fd51e07c259bc8f2e8f0a4d82ce63e1ad9fb0f0..0ecc52d8ff7710650ccef31108b1c6cca79cc914 100644 --- a/components/vbus/watermark_queue.h +++ b/components/vbus/watermark_queue.h @@ -1,26 +1,7 @@ /* - * Thread queue with water mark - * - * COPYRIGHT (C) 2014-2015, Shanghai Real-Thread Technology Co., Ltd - * http://www.rt-thread.com - * - * This file is part of RT-Thread (http://www.rt-thread.org) - * - * All rights reserved. - * - * 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. + * COPYRIGHT (C) 2018, Real-Thread Information Technology Ltd + * + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/include/rtdbg.h b/include/rtdbg.h index da4eb48303d17cacdc223ea9c615b0516e290244..d19a191227f12d18edf81adec4b26664b593eac0 100644 --- a/include/rtdbg.h +++ b/include/rtdbg.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : rtdbg.h * * Change Logs: * Date Author Notes diff --git a/include/rtdebug.h b/include/rtdebug.h index 48f8d2392a86c042a79156edd055ad600b81aa33..b66cd6fc694a864d8180b115d0ed895f6f0e88b7 100644 --- a/include/rtdebug.h +++ b/include/rtdebug.h @@ -4,10 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -/* - * File : rtdebug.h - */ - #ifndef __RTDEBUG_H__ #define __RTDEBUG_H__ diff --git a/include/rthw.h b/include/rthw.h index 8473854538a0f1117909380288087f89f8b2a322..c6af392e6284207fd16e7f00e21ef7124e7a5bd8 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : rthw.h * * Change Logs: * Date Author Notes diff --git a/include/rtlibc.h b/include/rtlibc.h index 020c34764ea5c8c9b0fe33cfc8df10c49ebe4ebf..b3a548beb13f76af54eed6f2a272036402cb8280 100644 --- a/include/rtlibc.h +++ b/include/rtlibc.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : rtlibc.h * * Change Logs: * Date Author Notes diff --git a/include/rtm.h b/include/rtm.h index 08ad721baf0f2f1c682de2ebe6a8c62a8d4b8956..7e07a2239cd41c6401464b46b8a9c4cf858a4845 100644 --- a/include/rtm.h +++ b/include/rtm.h @@ -4,10 +4,6 @@ * SPDX-License-Identifier: Apache-2.0 */ -/* - * File : rtm.h - */ - #ifndef __RTM_H__ #define __RTM_H__ diff --git a/include/rtservice.h b/include/rtservice.h index 145a225aced760e390095595eb0b37eac8a5b3dc..3b6fc94c922f0828dcef13ea34cefd3402de42f5 100644 --- a/include/rtservice.h +++ b/include/rtservice.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : rtservice.h * * Change Logs: * Date Author Notes diff --git a/include/rtthread.h b/include/rtthread.h index f8da2d46bf4e22efb9fa294fde13c2e22d489206..fc5029a22003839cf9c96e9ec34396bf7ce276c1 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -2,10 +2,6 @@ * Copyright (c) 2006-2018, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 - */ - -/* - * File : rtthread.h * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7S/AT91SAM7S.h b/libcpu/arm/AT91SAM7S/AT91SAM7S.h index 0c8d652c198ebb1ee947abbb6c3784147661dc05..130f9074d126af59dfd8dadaa4f214c2615caaf0 100644 --- a/libcpu/arm/AT91SAM7S/AT91SAM7S.h +++ b/libcpu/arm/AT91SAM7S/AT91SAM7S.h @@ -1,11 +1,7 @@ /* - * File : at91sam7s.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7S/context_gcc.S b/libcpu/arm/AT91SAM7S/context_gcc.S index e76093f8be31b1462d6aa63d424cd696c144a533..aa9bb160cd6c8b43dcc407b3e4b4a88b427fab47 100644 --- a/libcpu/arm/AT91SAM7S/context_gcc.S +++ b/libcpu/arm/AT91SAM7S/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/libcpu/arm/AT91SAM7S/cpu.c b/libcpu/arm/AT91SAM7S/cpu.c index 57db2b7d24b0949645cd95651254805171326d52..8d28063eb11af6fd6d2130b165bf03886fd395a9 100644 --- a/libcpu/arm/AT91SAM7S/cpu.c +++ b/libcpu/arm/AT91SAM7S/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/libcpu/arm/AT91SAM7S/interrupt.c b/libcpu/arm/AT91SAM7S/interrupt.c index fd84a72ea3a94fb62f7061d29a72e8f8828c7a18..db9d31fe2830ce499a4b63ac6a4110616df00fbb 100644 --- a/libcpu/arm/AT91SAM7S/interrupt.c +++ b/libcpu/arm/AT91SAM7S/interrupt.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7S/serial.c b/libcpu/arm/AT91SAM7S/serial.c index ede8683b316715f558666af11c61b16f18bc30f1..adbe8609d6f3cd0625d900255c15f85ac9cf9f32 100644 --- a/libcpu/arm/AT91SAM7S/serial.c +++ b/libcpu/arm/AT91SAM7S/serial.c @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7S/serial.h b/libcpu/arm/AT91SAM7S/serial.h index 401b0c3129435d12bcbd496c8f0c45a89c7312d4..0937e92f6ca00bd99ab04dba402136d0887b3ba9 100644 --- a/libcpu/arm/AT91SAM7S/serial.h +++ b/libcpu/arm/AT91SAM7S/serial.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __RT_SERIAL_H__ #define __RT_SERIAL_H__ diff --git a/libcpu/arm/AT91SAM7S/stack.c b/libcpu/arm/AT91SAM7S/stack.c index 14acc5445612d959d8b42c9160908ca5af945c9f..6f8bd13bf9e7a51775721f0206de774bab02f8bf 100644 --- a/libcpu/arm/AT91SAM7S/stack.c +++ b/libcpu/arm/AT91SAM7S/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7S/start_gcc.S b/libcpu/arm/AT91SAM7S/start_gcc.S index 17695e31f2bc5a1079722f2f389f5bbef1b53833..2334f08e4f1213d8cccddec63d9caf0643904817 100644 --- a/libcpu/arm/AT91SAM7S/start_gcc.S +++ b/libcpu/arm/AT91SAM7S/start_gcc.S @@ -1,11 +1,7 @@ /* - * File : start_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/libcpu/arm/AT91SAM7S/trap.c b/libcpu/arm/AT91SAM7S/trap.c index 18534cda8be3991d7478009c048c050d96497160..208e56895005c4b4852110c86ba48f4f49681a7e 100644 --- a/libcpu/arm/AT91SAM7S/trap.c +++ b/libcpu/arm/AT91SAM7S/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7X/context_gcc.S b/libcpu/arm/AT91SAM7X/context_gcc.S index e8f080359e19efd1b377189aca1259bc82474b05..20b6f5e8cc5d7f96d3be6fb7ef7706f766e361c9 100644 --- a/libcpu/arm/AT91SAM7X/context_gcc.S +++ b/libcpu/arm/AT91SAM7X/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7X/cpu.c b/libcpu/arm/AT91SAM7X/cpu.c index 1905da812e7934193f45ade7848f0bb955c29482..484c19d10a46686cbc2ab32a202d1e4db57036e8 100644 --- a/libcpu/arm/AT91SAM7X/cpu.c +++ b/libcpu/arm/AT91SAM7X/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/libcpu/arm/AT91SAM7X/interrupt.c b/libcpu/arm/AT91SAM7X/interrupt.c index 71884f9f3fe7e4c845fab0da4f85cc2057c66308..62d487403dc24c00359b0cffe8d4918589f910fe 100644 --- a/libcpu/arm/AT91SAM7X/interrupt.c +++ b/libcpu/arm/AT91SAM7X/interrupt.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7X/stack.c b/libcpu/arm/AT91SAM7X/stack.c index d6711a5296d938de006a3d9e482e4eb6c9d0521f..ef60b1a760743eb7d41a446da7e889446764224e 100644 --- a/libcpu/arm/AT91SAM7X/stack.c +++ b/libcpu/arm/AT91SAM7X/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7X/start_gcc.S b/libcpu/arm/AT91SAM7X/start_gcc.S index 119f3cdbf3f4a58a7cc6e190b5b5d901597fd916..d1b2334ac0a424f090026a83fa2484c89e342255 100644 --- a/libcpu/arm/AT91SAM7X/start_gcc.S +++ b/libcpu/arm/AT91SAM7X/start_gcc.S @@ -1,11 +1,7 @@ /* - * File : start.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/AT91SAM7X/trap.c b/libcpu/arm/AT91SAM7X/trap.c index 74d1cba44519329272d9532967e1bbb603b3b9a7..1c1c351ff81b63ac1c80f1586cd2a0d4db0ca9e8 100644 --- a/libcpu/arm/AT91SAM7X/trap.c +++ b/libcpu/arm/AT91SAM7X/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/am335x/am33xx.h b/libcpu/arm/am335x/am33xx.h index 68ea4478d33232ce8daa5396e736feaffee86edc..99a65ac915c68f41ff269a8c54ee182fade931cc 100644 --- a/libcpu/arm/am335x/am33xx.h +++ b/libcpu/arm/am335x/am33xx.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __AM33XX_H__ #define __AM33XX_H__ diff --git a/libcpu/arm/am335x/context_gcc.S b/libcpu/arm/am335x/context_gcc.S index a49ce0862d788df65306fba3e9f98e019d932ba1..20ac26df5e730a2ce3fa4b7ff869d5c7870ab275 100644 --- a/libcpu/arm/am335x/context_gcc.S +++ b/libcpu/arm/am335x/context_gcc.S @@ -1,21 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/am335x/cp15_gcc.S b/libcpu/arm/am335x/cp15_gcc.S index 1f8e685e21c1d892853e0c96c464ce8172567bf3..9860a229da3819ff0c19eb213ba8c215782bf9f7 100644 --- a/libcpu/arm/am335x/cp15_gcc.S +++ b/libcpu/arm/am335x/cp15_gcc.S @@ -1,22 +1,7 @@ /* - * File : cp15_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team - * http://www.rt-thread.org + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/am335x/cp15_iar.s b/libcpu/arm/am335x/cp15_iar.s index ae59ed04dc7dd7ed6e4eb2c1f122612871321ca3..058dc6074ee12b06b73c85493ffbb6916b278876 100644 --- a/libcpu/arm/am335x/cp15_iar.s +++ b/libcpu/arm/am335x/cp15_iar.s @@ -1,22 +1,7 @@ /* - * File : cp15_iar.s - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team - * http://www.rt-thread.org + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/am335x/cpu.c b/libcpu/arm/am335x/cpu.c index d75600711f943778e302dbd7e7275be76d7a18e6..cae865fe50a263bbe0ef0632eeb78e4075eed273 100644 --- a/libcpu/arm/am335x/cpu.c +++ b/libcpu/arm/am335x/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/libcpu/arm/am335x/interrupt.c b/libcpu/arm/am335x/interrupt.c index a13d089a7f8949b289e481e22eac414e3605487e..c10d13b86c0dddc098c9d5dd7fd7b38f58f9003a 100644 --- a/libcpu/arm/am335x/interrupt.c +++ b/libcpu/arm/am335x/interrupt.c @@ -1,11 +1,7 @@ /* - * File : interrupt.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/libcpu/arm/am335x/interrupt.h b/libcpu/arm/am335x/interrupt.h index d81f1c81ae38f4f2b48c8780a070fdefd178f446..7461f94da0f7b69c1482ea0f54d1fea956c8075f 100644 --- a/libcpu/arm/am335x/interrupt.h +++ b/libcpu/arm/am335x/interrupt.h @@ -1,11 +1,7 @@ /* - * File : interrupt.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/libcpu/arm/am335x/mmu.c b/libcpu/arm/am335x/mmu.c index 03fe2e6242a44568220056c736312b86d30470ad..babe82529849e33d012c8b55dd035deb97cdda64 100644 --- a/libcpu/arm/am335x/mmu.c +++ b/libcpu/arm/am335x/mmu.c @@ -1,11 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/libcpu/arm/am335x/mmu.h b/libcpu/arm/am335x/mmu.h index 11ea5254d61bab160da9a8e64a0d4718a9cb7778..73635d3a0e4fbc9c0e885b84c269eab92c33c31f 100644 --- a/libcpu/arm/am335x/mmu.h +++ b/libcpu/arm/am335x/mmu.h @@ -1,22 +1,11 @@ /* - * File : mmu.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 + * 2012-01-10 bernard porting to AM1808 */ #ifndef __MMU_H__ diff --git a/libcpu/arm/am335x/stack.c b/libcpu/arm/am335x/stack.c index 7415e230f586acf1e3ac16c2971800b7c042e4e5..1dad930818e19986e42aa9731dd1ae4d29d1a171 100644 --- a/libcpu/arm/am335x/stack.c +++ b/libcpu/arm/am335x/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/libcpu/arm/am335x/start_gcc.S b/libcpu/arm/am335x/start_gcc.S index f80aca622364337fab263c429edce19e4d12c3ec..6b76fb04a43c4f2f10ca447ccf7606cc85fb54c7 100644 --- a/libcpu/arm/am335x/start_gcc.S +++ b/libcpu/arm/am335x/start_gcc.S @@ -1,21 +1,7 @@ /* - * File : start_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/am335x/start_iar.s b/libcpu/arm/am335x/start_iar.s index 61f977f2c6bf18b9f2961fc3489b713cde0ec841..e06d7b88618911e5cd05665fa38a8f52ed7d81bb 100644 --- a/libcpu/arm/am335x/start_iar.s +++ b/libcpu/arm/am335x/start_iar.s @@ -1,21 +1,7 @@ /* - * File : start_iar.s - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/am335x/trap.c b/libcpu/arm/am335x/trap.c index 89dc14255ae15128b7b3972794510bbcfdbd2092..b77543da644817ccf1268fd29ae4229e17f3d250 100644 --- a/libcpu/arm/am335x/trap.c +++ b/libcpu/arm/am335x/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/libcpu/arm/am335x/vector_gcc.S b/libcpu/arm/am335x/vector_gcc.S index 4a44a7395cbbf15e4fe45d39183c3bdc1fe3b072..60d3c6cf1d9083f312cf47465bd62c96d5fdc9bf 100644 --- a/libcpu/arm/am335x/vector_gcc.S +++ b/libcpu/arm/am335x/vector_gcc.S @@ -1,21 +1,7 @@ /* - * File : vector_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/arm926/cpuport.c b/libcpu/arm/arm926/cpuport.c index fb90df9e9ff4ffb771453def0e87dddd89975263..1efb23e896e969af00c4738a26d17bfeb85c1756 100644 --- a/libcpu/arm/arm926/cpuport.c +++ b/libcpu/arm/arm926/cpuport.c @@ -1,21 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Develop Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/arm926/mmu.c b/libcpu/arm/arm926/mmu.c index b8cfd31a1cb7f05d8199c51e6d83d5f07ab8033a..f1e475189b83c8e0018f6ce96d74bfdd8031bc15 100644 --- a/libcpu/arm/arm926/mmu.c +++ b/libcpu/arm/arm926/mmu.c @@ -1,21 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/arm926/mmu.h b/libcpu/arm/arm926/mmu.h index 34fc8f08247e0dddf89b16d9fa286e8bc60a70f6..7b930f5358ceff7dc23c921f7ece22bca208f898 100644 --- a/libcpu/arm/arm926/mmu.h +++ b/libcpu/arm/arm926/mmu.h @@ -1,21 +1,7 @@ /* - * File : mmu.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/arm926/stack.c b/libcpu/arm/arm926/stack.c index 966088f829dab2fff8b4e611e7f98354b7ccebc3..fa98feb8241692436b0931d4666716f12a0ab8b5 100644 --- a/libcpu/arm/arm926/stack.c +++ b/libcpu/arm/arm926/stack.c @@ -1,21 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/arm926/start_gcc.S b/libcpu/arm/arm926/start_gcc.S index 130bc041f8cdbc86770438dfe4cf44421eb65d8a..fee8e018cbe9d80a68c90fc50779a07d747a2df7 100644 --- a/libcpu/arm/arm926/start_gcc.S +++ b/libcpu/arm/arm926/start_gcc.S @@ -1,21 +1,7 @@ /* - * File : start_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 @@ -138,7 +124,7 @@ Reset_Handler: MSR CPSR_cxsf, R0 @; Set CO-Processor - @; little-end,disbale I/D Cache MMU, vector table is 0x00000000 + @; little-end锛宒isbale I/D Cache MMU, vector table is 0x00000000 MRC P15, 0, R0, C1, C0, 0 @; Read CP15 LDR R1, =0x00003085 @; set clear bits BIC R0, R0, R1 diff --git a/libcpu/arm/arm926/trap.c b/libcpu/arm/arm926/trap.c index 726f22a557aae177ace1bd7e8f825ac10754d8f2..054cc2741ad11769dbc482eecec90fea319c86e2 100644 --- a/libcpu/arm/arm926/trap.c +++ b/libcpu/arm/arm926/trap.c @@ -1,21 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/arm_entry_gcc.S b/libcpu/arm/armv6/arm_entry_gcc.S index 3aa9930d2b6e25fed8dc398badf6ccb11ea5b770..6d4ac111d08e3ab74af63da6c485e24e72760caf 100644 --- a/libcpu/arm/armv6/arm_entry_gcc.S +++ b/libcpu/arm/armv6/arm_entry_gcc.S @@ -1,21 +1,7 @@ /* - * File : arm_entry_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/armv6.h b/libcpu/arm/armv6/armv6.h index 860f09661fd40e97758b3d3815f43d5ce505d9a1..659ce90721f640958588f376a775bb14e52aff3d 100644 --- a/libcpu/arm/armv6/armv6.h +++ b/libcpu/arm/armv6/armv6.h @@ -1,21 +1,7 @@ /* - * File : armv6.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/context_gcc.S b/libcpu/arm/armv6/context_gcc.S index 6f0b4333bbdb1cf9fc27d615266f0297abeda627..0446109c92217f5d14d0faa69711d2e6965188f7 100644 --- a/libcpu/arm/armv6/context_gcc.S +++ b/libcpu/arm/armv6/context_gcc.S @@ -1,21 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/cpuport.c b/libcpu/arm/armv6/cpuport.c index a0578a6d69844540704d16fa3bde5119f21c4779..c8e92017223035708de919d8c12ec62de8d8d9b4 100644 --- a/libcpu/arm/armv6/cpuport.c +++ b/libcpu/arm/armv6/cpuport.c @@ -1,21 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Develop Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/mmu.c b/libcpu/arm/armv6/mmu.c index 2d47e999cee1a4e9864d1f0c66bc4606dbbb1ff2..ae3cf73559e8d188822329b65cb39a4a2202c996 100644 --- a/libcpu/arm/armv6/mmu.c +++ b/libcpu/arm/armv6/mmu.c @@ -1,21 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/mmu.h b/libcpu/arm/armv6/mmu.h index f6e788d13d705794fd172ff3554eb081376a97bb..4df61ac21d92042cd46911049d72c49c2cee42da 100644 --- a/libcpu/arm/armv6/mmu.h +++ b/libcpu/arm/armv6/mmu.h @@ -1,21 +1,7 @@ /* - * File : mmu.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/stack.c b/libcpu/arm/armv6/stack.c index 648ea7dbf5b88e0f16e082047e6528279784c6cd..52de999fc2210f25ae27d63a0d3f590eca04cce3 100644 --- a/libcpu/arm/armv6/stack.c +++ b/libcpu/arm/armv6/stack.c @@ -1,21 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/vfp.c b/libcpu/arm/armv6/vfp.c index e4321271c6c103f900b3c1a82d1c4a5286a94ebf..9aa8d34fccdc05f9fe027559acd7365cbdfd93a0 100644 --- a/libcpu/arm/armv6/vfp.c +++ b/libcpu/arm/armv6/vfp.c @@ -1,21 +1,7 @@ /* - * File : vfp.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Develop Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/armv6/vfp.h b/libcpu/arm/armv6/vfp.h index 0ec7b26b72f1a53f57b2c5f38f35ff7f8b6d1e02..c347dbe0a640d48c1a4fe9344b3ab33927e1209c 100644 --- a/libcpu/arm/armv6/vfp.h +++ b/libcpu/arm/armv6/vfp.h @@ -1,21 +1,7 @@ /* - * File : vfp.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Develop Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/common/backtrace.c b/libcpu/arm/common/backtrace.c index 03ee6143e4820aec39a9648a2cba94ef162067ad..f61c69ef013da9ce100c9563b842c877d7130af2 100644 --- a/libcpu/arm/common/backtrace.c +++ b/libcpu/arm/common/backtrace.c @@ -1,11 +1,7 @@ /* - * File : backtrace.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 2008 RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/common/div0.c b/libcpu/arm/common/div0.c index 128a1eb859c26e1a299805a5a0dfd84df1047ebd..0cb3e09b5447ec20e6de0dddab6bf6efe4efa65f 100644 --- a/libcpu/arm/common/div0.c +++ b/libcpu/arm/common/div0.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ void __div0 (void) { while (1) ; diff --git a/libcpu/arm/common/divsi3.S b/libcpu/arm/common/divsi3.S index 01eac6aabf2efcaf23515d23a8a24e953d69817d..3941bfc4768282350ea033ed1d3d0a6c81f99afc 100644 --- a/libcpu/arm/common/divsi3.S +++ b/libcpu/arm/common/divsi3.S @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ /* $NetBSD: divsi3.S,v 1.5 2005/02/26 22:58:56 perry Exp $ */ /* diff --git a/libcpu/arm/common/showmem.c b/libcpu/arm/common/showmem.c index 38f037f83d622a6d2472c45ab7520a26f41f5a18..b770e4ce173172419e2cf7b24e73953d647cbdf0 100644 --- a/libcpu/arm/common/showmem.c +++ b/libcpu/arm/common/showmem.c @@ -1,11 +1,7 @@ /* - * File : showmem.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 2008 RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/cortex-a/armv7.h b/libcpu/arm/cortex-a/armv7.h index 69c556eb3c7eba4d87df16249afb218db576dfb2..d22f72fa68c80ffa24aab57197dba327c33b8ffc 100644 --- a/libcpu/arm/cortex-a/armv7.h +++ b/libcpu/arm/cortex-a/armv7.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __ARMV7_H__ #define __ARMV7_H__ diff --git a/libcpu/arm/cortex-a/context_gcc.S b/libcpu/arm/cortex-a/context_gcc.S index 01593a7c0aa40e88c83b69324369ca1a274d0505..97b3dbc4475d81a1eebe07f17c68f44a469df509 100644 --- a/libcpu/arm/cortex-a/context_gcc.S +++ b/libcpu/arm/cortex-a/context_gcc.S @@ -1,21 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/cortex-a/cp15.h b/libcpu/arm/cortex-a/cp15.h index ebea3f0fe307d44979db5b895e8d71d30926c17d..486f38200d942dd0f4e0dcb9d753fcdd271b464b 100644 --- a/libcpu/arm/cortex-a/cp15.h +++ b/libcpu/arm/cortex-a/cp15.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __CP15_H__ #define __CP15_H__ diff --git a/libcpu/arm/cortex-a/cp15_gcc.S b/libcpu/arm/cortex-a/cp15_gcc.S index f1ed6492aad55f8f0deb769583e738dc79a8a6f2..0e3e60655c8963ac0023e48260641d52adb8a5e5 100644 --- a/libcpu/arm/cortex-a/cp15_gcc.S +++ b/libcpu/arm/cortex-a/cp15_gcc.S @@ -1,22 +1,7 @@ /* - * File : cp15_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team - * http://www.rt-thread.org + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/cortex-a/cpu.c b/libcpu/arm/cortex-a/cpu.c index 7dd426e4dd97b49a18ebc3616b6db2e06fea89d4..2d7871501160a78edc7f1687d426f08de359a508 100644 --- a/libcpu/arm/cortex-a/cpu.c +++ b/libcpu/arm/cortex-a/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/libcpu/arm/cortex-a/interrupt.c b/libcpu/arm/cortex-a/interrupt.c index 942c074721984dc6d154a0a10ef4e7bb620628e3..3934c84aafcae5bb0fb5d7a1c5fc09645fb822e8 100644 --- a/libcpu/arm/cortex-a/interrupt.c +++ b/libcpu/arm/cortex-a/interrupt.c @@ -1,11 +1,7 @@ /* - * File : interrupt.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-a/mmu.c b/libcpu/arm/cortex-a/mmu.c index b2503e4260c77ece6e044a68d5ea6d2802a793f2..58acdd81458f7e2dd619d4f3e0fbaff445a3b276 100644 --- a/libcpu/arm/cortex-a/mmu.c +++ b/libcpu/arm/cortex-a/mmu.c @@ -1,11 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-a/pmu.c b/libcpu/arm/cortex-a/pmu.c index 07911a2db721bd1c82cffbb2d8f4816393663b91..8ffc1dede610da978808fa242898e2e2b1b681a2 100644 --- a/libcpu/arm/cortex-a/pmu.c +++ b/libcpu/arm/cortex-a/pmu.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "pmu.h" diff --git a/libcpu/arm/cortex-a/pmu.h b/libcpu/arm/cortex-a/pmu.h index 05c1420dd8fbf7a7177ea1bd4699750690c3b720..fb8390133d750ef0df5e84e98322f95967d98a9d 100644 --- a/libcpu/arm/cortex-a/pmu.h +++ b/libcpu/arm/cortex-a/pmu.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __PMU_H__ #define __PMU_H__ diff --git a/libcpu/arm/cortex-a/stack.c b/libcpu/arm/cortex-a/stack.c index e60e8c717043564441f1feff599690131f6be948..1d3ebcb9e6ec7c1961a371cec8dde0eac2c8483f 100644 --- a/libcpu/arm/cortex-a/stack.c +++ b/libcpu/arm/cortex-a/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-a/start_gcc.S b/libcpu/arm/cortex-a/start_gcc.S index ca8c1f930f0507dc16b43d97fcf70d84471e27e2..2f16d168075ccab2b00a194fb76ec3b70fcb776f 100644 --- a/libcpu/arm/cortex-a/start_gcc.S +++ b/libcpu/arm/cortex-a/start_gcc.S @@ -1,21 +1,7 @@ /* - * File : start_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/cortex-a/trap.c b/libcpu/arm/cortex-a/trap.c index 515f7cb54427b4f3591848ccd08bb8dee23e85ea..f3b2c26e6d531ca8de8a53c55fa1947cb3029d76 100644 --- a/libcpu/arm/cortex-a/trap.c +++ b/libcpu/arm/cortex-a/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, 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 diff --git a/libcpu/arm/cortex-a/vector_gcc.S b/libcpu/arm/cortex-a/vector_gcc.S index 4a44a7395cbbf15e4fe45d39183c3bdc1fe3b072..60d3c6cf1d9083f312cf47465bd62c96d5fdc9bf 100644 --- a/libcpu/arm/cortex-a/vector_gcc.S +++ b/libcpu/arm/cortex-a/vector_gcc.S @@ -1,21 +1,7 @@ /* - * File : vector_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/cortex-m0/context_gcc.S b/libcpu/arm/cortex-m0/context_gcc.S index 227a9aac2d7accb7c2172f531a712d91d5b02929..d9993247e298a3efac2e6df233c1f43f6e83d764 100644 --- a/libcpu/arm/cortex-m0/context_gcc.S +++ b/libcpu/arm/cortex-m0/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009 - 2013, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-m0/cpuport.c b/libcpu/arm/cortex-m0/cpuport.c index f8d475a4c8327e56bbf1a8a646c951c5a2142f7c..f5ff8ec1134b8541a6c2ae3e0e55d7e26738e801 100644 --- a/libcpu/arm/cortex-m0/cpuport.c +++ b/libcpu/arm/cortex-m0/cpuport.c @@ -1,11 +1,7 @@ /* - * File : cpuport.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2012, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-m3/context_gcc.S b/libcpu/arm/cortex-m3/context_gcc.S index 2e279c4be939c1b7ee8ed46542ab755477142164..d17a8aa12c3f28481642a5b82fb319cd01a35228 100644 --- a/libcpu/arm/cortex-m3/context_gcc.S +++ b/libcpu/arm/cortex-m3/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-m3/cpuport.c b/libcpu/arm/cortex-m3/cpuport.c index 3c7e0ee8571a7bccf2a51dbf4df9b180007f3c8e..a3867477504e257778eb3c3cf9cd0700ecf5d73c 100644 --- a/libcpu/arm/cortex-m3/cpuport.c +++ b/libcpu/arm/cortex-m3/cpuport.c @@ -1,11 +1,7 @@ /* - * File : cpuport.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2013, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-m4/context_gcc.S b/libcpu/arm/cortex-m4/context_gcc.S index d003ce0ea036839bfc622bc19470cd4907575ebf..420f4f8ae38e2ad18ad905d6c971b630bf591b4e 100644 --- a/libcpu/arm/cortex-m4/context_gcc.S +++ b/libcpu/arm/cortex-m4/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-m7/context_gcc.S b/libcpu/arm/cortex-m7/context_gcc.S index d003ce0ea036839bfc622bc19470cd4907575ebf..420f4f8ae38e2ad18ad905d6c971b630bf591b4e 100644 --- a/libcpu/arm/cortex-m7/context_gcc.S +++ b/libcpu/arm/cortex-m7/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006 - 2018, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-r4/armv7.h b/libcpu/arm/cortex-r4/armv7.h index 7dc3471c70e30c7b9a0e57f2e902b573125152ee..3adcb92c5d5830711f1a60be015fe263f412236b 100644 --- a/libcpu/arm/cortex-r4/armv7.h +++ b/libcpu/arm/cortex-r4/armv7.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __ARMV7_H__ #define __ARMV7_H__ diff --git a/libcpu/arm/cortex-r4/context_gcc.S b/libcpu/arm/cortex-r4/context_gcc.S index 5256645ab86187e675614777cb2b2c583ab4b66b..50e1069c063c2015cc1fd1500506258c41d1aee0 100644 --- a/libcpu/arm/cortex-r4/context_gcc.S +++ b/libcpu/arm/cortex-r4/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context_ccs.asm - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/libcpu/arm/cortex-r4/cpu.c b/libcpu/arm/cortex-r4/cpu.c index 89369d520905517b0650452ae6e4e30ef9c3d3c8..d2e8130e7c3d2192f2140a8728b7c1aff337af5f 100644 --- a/libcpu/arm/cortex-r4/cpu.c +++ b/libcpu/arm/cortex-r4/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/cortex-r4/interrupt.c b/libcpu/arm/cortex-r4/interrupt.c index ba2d99e998155c2182f323fbcbbda2bc34dd2af2..5b3ad1ccc12ea246f63ea070ded45c37a11a22e6 100644 --- a/libcpu/arm/cortex-r4/interrupt.c +++ b/libcpu/arm/cortex-r4/interrupt.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/cortex-r4/stack.c b/libcpu/arm/cortex-r4/stack.c index 852c6ea38496bf5c941d51a448fac3ca94814990..612cde3bfb1e5b6b56b334cb9a9f28b05b6da20a 100644 --- a/libcpu/arm/cortex-r4/stack.c +++ b/libcpu/arm/cortex-r4/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/cortex-r4/start_gcc.S b/libcpu/arm/cortex-r4/start_gcc.S index 1ed1e396aff26bb942cb8258038da415125ee970..ab77b98781ceb34c4d4730437fb35abc48943263 100644 --- a/libcpu/arm/cortex-r4/start_gcc.S +++ b/libcpu/arm/cortex-r4/start_gcc.S @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ @------------------------------------------------------------------------------- @ sys_core.asm @ diff --git a/libcpu/arm/cortex-r4/trap.c b/libcpu/arm/cortex-r4/trap.c index b72237dac2c8b27e49ccbc36f8a2362a250c6f4b..d50ad06538a4ca480a476a9f4e1405fd5a6ca99d 100644 --- a/libcpu/arm/cortex-r4/trap.c +++ b/libcpu/arm/cortex-r4/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/cortex-r4/vector_gcc.S b/libcpu/arm/cortex-r4/vector_gcc.S index da91421f43a424c0f5a50259fb6f1db528774561..6cb2e9fab6db6350f18b9f3a02af1c8cbbec2323 100644 --- a/libcpu/arm/cortex-r4/vector_gcc.S +++ b/libcpu/arm/cortex-r4/vector_gcc.S @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ @------------------------------------------------------------------------------- @ sys_intvecs.asm @ diff --git a/libcpu/arm/dm36x/context_gcc.S b/libcpu/arm/dm36x/context_gcc.S index cfada09bef7406156a0862b6d256e86d86a9ba9f..7eed72a4dc87414806fba9960c5da87d29abc9ac 100644 --- a/libcpu/arm/dm36x/context_gcc.S +++ b/libcpu/arm/dm36x/context_gcc.S @@ -1,21 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/dm36x/cpuport.c b/libcpu/arm/dm36x/cpuport.c index bf012b10fad2533bad76c5851b6bab624954a9cd..f6e8a200569527be8127f54f92f02fa676494cf9 100644 --- a/libcpu/arm/dm36x/cpuport.c +++ b/libcpu/arm/dm36x/cpuport.c @@ -1,21 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Develop Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/dm36x/mmu.c b/libcpu/arm/dm36x/mmu.c index 8c3100659c8c98a8b8c6e5a603bbd02021a51900..abb2c1cd9e9869007a72d20b185a876bd23bca7b 100644 --- a/libcpu/arm/dm36x/mmu.c +++ b/libcpu/arm/dm36x/mmu.c @@ -1,21 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/dm36x/mmu.h b/libcpu/arm/dm36x/mmu.h index 9dd802cf3b45b35375cc02d34e2d2f8fc2d52dec..3410b881ac2e7fd911b827fd09dcbdb62412a6ab 100644 --- a/libcpu/arm/dm36x/mmu.h +++ b/libcpu/arm/dm36x/mmu.h @@ -1,21 +1,7 @@ /* - * File : mmu.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/dm36x/stack.c b/libcpu/arm/dm36x/stack.c index fd56e7a49780b2b442b4d2cf626e2a9d36548d28..9d7385b9c887af445a7e2727db77b97e5ea65db9 100644 --- a/libcpu/arm/dm36x/stack.c +++ b/libcpu/arm/dm36x/stack.c @@ -1,21 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/lpc214x/context_gcc.S b/libcpu/arm/lpc214x/context_gcc.S index 0a4b1ce7312fed69ef681bf65993e1c84ecc81be..2b1856be3d04a1bb2d2b86f34aedf9a3d011fcf2 100644 --- a/libcpu/arm/lpc214x/context_gcc.S +++ b/libcpu/arm/lpc214x/context_gcc.S @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ .global rt_hw_interrupt_disable .global rt_hw_interrupt_enable .global rt_hw_context_switch @@ -8,7 +16,7 @@ /* * rt_base_t rt_hw_interrupt_disable(); - رжϣرǰCPSRĴֵ + 关闭中断,关闭前返回CPSR寄存器值 */ rt_hw_interrupt_disable: //EXPORT rt_hw_interrupt_disable @@ -20,7 +28,7 @@ rt_hw_interrupt_disable: /* * void rt_hw_interrupt_enable(rt_base_t level); - ָж״̬ + 恢复中断状态 */ rt_hw_interrupt_enable: //EXPORT rt_hw_interrupt_enable @@ -32,70 +40,70 @@ rt_hw_interrupt_enable: * void rt_hw_context_switch(rt_uint32 from, rt_uint32 to); * r0 --> from * r1 --> to - ̵߳л + 进行线程的上下文切换 */ rt_hw_context_switch: //EXPORT rt_hw_context_switch STMFD sp!, {lr} /* push pc (lr should be pushed in place of PC) */ - /* LRĴѹջغһִд */ + /* 把LR寄存器压入栈(这个函数返回后的下一个执行处) */ STMFD sp!, {r0-r12, lr} /* push lr & register file */ - /* R0 C R12ԼLRѹջ */ + /* 把R0 – R12以及LR压入栈 */ - MRS r4, cpsr /* ȡCPSRĴR4Ĵ */ + MRS r4, cpsr /* 读取CPSR寄存器到R4寄存器 */ STMFD sp!, {r4} /* push cpsr */ - /* R4ĴѹջһָȡCPSRĴ */ - MRS r4, spsr /* ȡSPSRĴR4Ĵ */ + /* 把R4寄存器压栈(即上一指令取出的CPSR寄存器) */ + MRS r4, spsr /* 读取SPSR寄存器到R4寄存器 */ STMFD sp!, {r4} /* push spsr */ - /* R4ĴѹջSPSRĴ */ + /* 把R4寄存器压栈(即SPSR寄存器) */ STR sp, [r0] /* store sp in preempted tasks TCB */ - /* ջָµTCBspR0˺ */ - /* ﻻ̵߳Ķջ */ + /* 把栈指针更新到TCB的sp,是由R0传入此函数 */ + /* 到这里换出线程的上下文都保存在栈中 */ LDR sp, [r1] /* get new task stack pointer */ - /* л̵߳TCBsp */ - /* л̵߳ջлָģͱʱպ෴ */ + /* 载入切换到线程的TCB的sp */ + /* 从切换到线程的栈中恢复上下文,次序和保存的时候刚好相反 */ LDMFD sp!, {r4} /* pop new task spsr */ - /* ջR4ĴSPSRĴ */ - MSR spsr_cxsf, r4 /* ָSPSRĴ */ + /* 出栈到R4寄存器(保存了SPSR寄存器) */ + MSR spsr_cxsf, r4 /* 恢复SPSR寄存器 */ LDMFD sp!, {r4} /* pop new task cpsr */ - /* ջR4ĴCPSRĴ */ - MSR cpsr_cxsf, r4 /* ָCPSRĴ */ + /* 出栈到R4寄存器(保存了CPSR寄存器) */ + MSR cpsr_cxsf, r4 /* 恢复CPSR寄存器 */ LDMFD sp!, {r0-r12, lr, pc} /* pop new task r0-r12, lr & pc */ - /* R0 C R12LRPCлָ */ + /* 对R0 – R12及LR、PC进行恢复 */ //ENDP rt_hw_context_switch_to: //EXPORT rt_hw_context_switch_to LDR sp, [r0] /* get new task stack pointer */ - /* л̵߳SPָ */ + /* 获得切换到线程的SP指针 */ LDMFD sp!, {r4} /* pop new task spsr */ - /* ջR4ĴSPSRĴֵ */ - MSR spsr_cxsf, r4 /* ָSPSRĴ */ + /* 出栈R4寄存器(保存了SPSR寄存器值) */ + MSR spsr_cxsf, r4 /* 恢复SPSR寄存器 */ LDMFD sp!, {r4} /* pop new task cpsr */ - /* ջR4ĴCPSRĴֵ */ - MSR cpsr_cxsf, r4 /* ָCPSRĴ */ + /* 出栈R4寄存器(保存了CPSR寄存器值) */ + MSR cpsr_cxsf, r4 /* 恢复CPSR寄存器 */ LDMFD sp!, {r0-r12, lr, pc} /* pop new task r0-r12, lr & pc */ - /* ָR0 C R12LRPCĴ */ + /* 恢复R0 – R12,LR及PC寄存器 */ //ENDP rt_hw_context_switch_interrupt: //EXPORT rt_hw_context_switch_interrupt LDR r2, =rt_thread_switch_interrupt_flag - LDR r3, [r2] /* жлµַ */ - CMP r3, #1 /* 1 */ - BEQ _reswitch /* 1ת_reswitch*/ + LDR r3, [r2] /* 载入中断中切换标致地址 */ + CMP r3, #1 /* 等于 1 ?*/ + BEQ _reswitch /* 如果等于1,跳转到_reswitch*/ MOV r3, #1 /* set rt_thread_switch_interrupt_flag to 1*/ - /* жл־λ1 */ + /* 设置中断中切换标志位1 */ STR r3, [r2] /* */ LDR r2, =rt_interrupt_from_thread /* set rt_interrupt_from_thread*/ - STR r0, [r2] /* л߳ջָ*/ + STR r0, [r2] /* 保存切换出线程栈指针*/ _reswitch: LDR r2, =rt_interrupt_to_thread /* set rt_interrupt_to_thread*/ - STR r1, [r2] /* л߳ջָ*/ + STR r1, [r2] /* 保存切换到线程栈指针*/ BX lr //ENDP diff --git a/libcpu/arm/lpc214x/cpuport.c b/libcpu/arm/lpc214x/cpuport.c index 1cd33b897b13ee4d2a7a93b9abc8285e2f45deaf..d5c1c5dce6ad200861b0afb5e0160e8a0f3a6c24 100644 --- a/libcpu/arm/lpc214x/cpuport.c +++ b/libcpu/arm/lpc214x/cpuport.c @@ -1,11 +1,7 @@ /* - * File : cpuport.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009 - 2011, RT-Thread Development 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 diff --git a/libcpu/arm/lpc214x/startup_gcc.S b/libcpu/arm/lpc214x/startup_gcc.S index ce13d5708305cb0c30c6ce566f0db13e7fdd237b..5b9b04f0d1cf16010732fb510e1450a2bee681aa 100644 --- a/libcpu/arm/lpc214x/startup_gcc.S +++ b/libcpu/arm/lpc214x/startup_gcc.S @@ -1,4 +1,12 @@ - .extern main /* ⲿC */ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ + .extern main /* 引入外部C入口 */ .extern rt_interrupt_enter .extern rt_interrupt_leave @@ -54,7 +62,7 @@ .equ VICIntEnClr, 0xFFFFF014 .equ VICIntSelect, 0xFFFFF00C -/************* Ŀý *************/ +/************* 目标配置结束 *************/ /* Setup the operating mode & stack.*/ @@ -217,94 +225,94 @@ __pabt: b . /* program abort */ __dabt: b . /* data abort */ __fiq : b . /* FIQ */ -/* IRQ */ +/* IRQ入口 */ IRQ_Handler : - stmfd sp!, {r0-r12,lr} /* R0 C R12LRĴѹջ */ - bl rt_interrupt_enter /* ֪ͨRT-Threadжģʽ */ - bl rt_hw_trap_irq /* ӦжϷ̴ */ - bl rt_interrupt_leave /* ; ֪ͨRT-ThreadҪ뿪жģʽ */ + stmfd sp!, {r0-r12,lr} /* 对R0 – R12,LR寄存器压栈 */ + bl rt_interrupt_enter /* 通知RT-Thread进入中断模式 */ + bl rt_hw_trap_irq /* 相应中断服务例程处理 */ + bl rt_interrupt_leave /* ; 通知RT-Thread要离开中断模式 */ - /* rt_thread_switch_interrupt_flagже߳Ĵ */ + /* 如果设置了rt_thread_switch_interrupt_flag,进行中断中的线程上下文处理 */ ldr r0, =rt_thread_switch_interrupt_flag ldr r1, [r0] cmp r1, #1 - beq rt_hw_context_switch_interrupt_do /* жл */ - /* תˣ */ - ldmfd sp!, {r0-r12,lr} /* ָջ */ - subs pc, lr, #4 /* IRQз */ + beq rt_hw_context_switch_interrupt_do /* 中断中切换发生 */ + /* 如果跳转了,将不会回来 */ + ldmfd sp!, {r0-r12,lr} /* 恢复栈 */ + subs pc, lr, #4 /* 从IRQ中返回 */ /* * void rt_hw_context_switch_interrupt_do(rt_base_t flag) -* жϽл +* 中断结束后的上下文切换 */ rt_hw_context_switch_interrupt_do: mov r1, #0 /* clear flag */ - /* жл־ */ + /* 清楚中断中切换标志 */ str r1, [r0] /* */ ldmfd sp!, {r0-r12,lr}/* reload saved registers */ - /* Ȼָж̵߳ */ + /* 先恢复被中断线程的上下文 */ stmfd sp!, {r0-r3} /* save r0-r3 */ - /* R0 C R3ѹջΪõ */ - mov r1, sp /* Ѵ˴ջֵ浽R1 */ + /* 对R0 – R3压栈,因为后面会用到 */ + mov r1, sp /* 把此处的栈值保存到R1 */ add sp, sp, #16 /* restore sp */ - /* ָIRQջIRQģʽ */ + /* 恢复IRQ的栈,后面会跳出IRQ模式 */ sub r2, lr, #4 /* save old task's pc to r2 */ - /* л̵߳PCR2 */ + /* 保存切换出线程的PC到R2 */ - mrs r3, spsr /* disable interrupt жǰCPSRR3Ĵ */ - /* SPSRĴֵ */ + mrs r3, spsr /* disable interrupt 保存中断前的CPSR到R3寄存器 */ + /* 获得SPSR寄存器值 */ orr r0, r3, #I_BIT|F_BIT - msr spsr_c, r0 /* رSPSRеIRQ/FIQж */ - - ldr r0, =.+8 /* ѵǰַ+8뵽R0Ĵ switch to interrupted task's stack */ - movs pc, r0 /* ˳IRQģʽSPSRóɹжģʽ */ - /* ԴIRQغжϲûд - ; R0Ĵеλʵʾһָ - ; PC - ; ʱ - ; ģʽѾжǰSVCģʽ - ; SPĴҲSVCģʽµջĴ - ; R1IRQģʽµջָ - ; R2л̵߳PC - ; R3л̵߳CPSR */ + msr spsr_c, r0 /* 关闭SPSR中的IRQ/FIQ中断 */ + + ldr r0, =.+8 /* 把当前地址+8载入到R0寄存器中 switch to interrupted task's stack */ + movs pc, r0 /* 退出IRQ模式,由于SPSR被设置成关中断模式 */ + /* 所以从IRQ返回后,中断并没有打开 + ; R0寄存器中的位置实际就是下一条指令, + ; 即PC继续往下走 + ; 此时 + ; 模式已经换成中断前的SVC模式, + ; SP寄存器也是SVC模式下的栈寄存器 + ; R1保存IRQ模式下的栈指针 + ; R2保存切换出线程的PC + ; R3保存切换出线程的CPSR */ stmfd sp!, {r2} /* push old task's pc */ - /* лPC */ + /* 保存切换出任务的PC */ stmfd sp!, {r4-r12,lr}/* push old task's lr,r12-r4 */ - /* R4 C R12LRĴ */ + /* 保存R4 – R12,LR寄存器 */ mov r4, r1 /* Special optimised code below */ - /* R1ѹջR0 C R3ջλ */ - mov r5, r3 /* R3л̵߳CPSR */ - ldmfd r4!, {r0-r3} /* ָR0 C R3 */ + /* R1保存有压栈R0 – R3处的栈位置 */ + mov r5, r3 /* R3切换出线程的CPSR */ + ldmfd r4!, {r0-r3} /* 恢复R0 – R3 */ stmfd sp!, {r0-r3} /* push old task's r3-r0 */ - /* R0 C R3ѹջл߳ */ + /* R0 – R3压栈到切换出线程 */ stmfd sp!, {r5} /* push old task's psr */ - /* л߳CPSRѹջ */ + /* 切换出线程CPSR压栈 */ mrs r4, spsr stmfd sp!, {r4} /* push old task's spsr */ - /* л߳SPSRѹջ */ + /* 切换出线程SPSR压栈 */ ldr r4, =rt_interrupt_from_thread ldr r5, [r4] str sp, [r5] /* store sp in preempted tasks's TCB */ - /* л̵߳SPָ */ + /* 保存切换出线程的SP指针 */ ldr r6, =rt_interrupt_to_thread ldr r6, [r6] ldr sp, [r6] /* get new task's stack pointer */ - /* л̵߳ջ */ + /* 获得切换到线程的栈 */ ldmfd sp!, {r4} /* pop new task's spsr */ - /* ָSPSR */ + /* 恢复SPSR */ msr SPSR_cxsf, r4 ldmfd sp!, {r4} /* pop new task's psr */ - /* ָCPSR */ + /* 恢复CPSR */ msr CPSR_cxsf, r4 ldmfd sp!, {r0-r12,lr,pc} /* pop new task's r0-r12,lr & pc */ - /* ָR0 C R12LRPCĴ */ + /* 恢复R0 – R12,LR及PC寄存器 */ -/* ܹ */ +/* 代码加密功能 */ #if defined(CODE_PROTECTION) .org 0x01FC .word 0x87654321 diff --git a/libcpu/arm/lpc24xx/LPC24xx.h b/libcpu/arm/lpc24xx/LPC24xx.h index 7c70fd1aa5815863edd244afc751599a7685a1c9..5cb9730854755ac7f77b625da6dd0a380d2b013c 100644 --- a/libcpu/arm/lpc24xx/LPC24xx.h +++ b/libcpu/arm/lpc24xx/LPC24xx.h @@ -1,11 +1,7 @@ /* - * File : LPC2478.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/lpc24xx/context_gcc.S b/libcpu/arm/lpc24xx/context_gcc.S index df22aacbed6a66a60f3c015e0dbd351130c4626a..b2c3abeee4a0f3cf13e5ceb167a95ac1aaba491f 100644 --- a/libcpu/arm/lpc24xx/context_gcc.S +++ b/libcpu/arm/lpc24xx/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/lpc24xx/cpu.c b/libcpu/arm/lpc24xx/cpu.c index 0265ed96aa7ccdfb1c8fc4c94f03ba0e5922476c..f3a61e16a3d23baf9be9f6c386f44526de65aa0a 100644 --- a/libcpu/arm/lpc24xx/cpu.c +++ b/libcpu/arm/lpc24xx/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/lpc24xx/interrupt.c b/libcpu/arm/lpc24xx/interrupt.c index 16d1dd7e993fa5ab92450e2644678f0f81cfbef2..64609ef06e85f25769fac476e6f9252325c14105 100644 --- a/libcpu/arm/lpc24xx/interrupt.c +++ b/libcpu/arm/lpc24xx/interrupt.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/lpc24xx/stack.c b/libcpu/arm/lpc24xx/stack.c index f160e9c1674a85e24b60e2e448a6900343518fc0..0378a5f658b01edfd183e609ecd7b08eb877f71e 100644 --- a/libcpu/arm/lpc24xx/stack.c +++ b/libcpu/arm/lpc24xx/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/lpc24xx/start_gcc.S b/libcpu/arm/lpc24xx/start_gcc.S index feab6f021673e4f29093d6e36f1db7db464a2642..be1741da573ef3687a16da9e47368b390673726c 100644 --- a/libcpu/arm/lpc24xx/start_gcc.S +++ b/libcpu/arm/lpc24xx/start_gcc.S @@ -1,11 +1,7 @@ /* - * File : start.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/lpc24xx/start_rvds.S b/libcpu/arm/lpc24xx/start_rvds.S index e49cf2df45bf03ecd77bd06ace0c5e883ccc1372..36f59cf9f6e4b7192f0ae1de20abb73cab809402 100644 --- a/libcpu/arm/lpc24xx/start_rvds.S +++ b/libcpu/arm/lpc24xx/start_rvds.S @@ -1,3 +1,12 @@ +;/* +; * Copyright (c) 2006-2018, RT-Thread Development Team +; * +; * SPDX-License-Identifier: Apache-2.0 +; * +; * Change Logs: +; * Date Author Notes +; */ +; ;/*****************************************************************************/ ;/* LPC2400.S: Startup file for Philips LPC2400 device series */ ;/*****************************************************************************/ diff --git a/libcpu/arm/lpc24xx/trap.c b/libcpu/arm/lpc24xx/trap.c index 71d88101fca486556fc53b1653768f68d14532ff..d296bfdbfe49a44e7e5ecbba18699a2f446eb5a4 100644 --- a/libcpu/arm/lpc24xx/trap.c +++ b/libcpu/arm/lpc24xx/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/realview-a8-vmm/armv7.h b/libcpu/arm/realview-a8-vmm/armv7.h index 69c556eb3c7eba4d87df16249afb218db576dfb2..d22f72fa68c80ffa24aab57197dba327c33b8ffc 100644 --- a/libcpu/arm/realview-a8-vmm/armv7.h +++ b/libcpu/arm/realview-a8-vmm/armv7.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __ARMV7_H__ #define __ARMV7_H__ diff --git a/libcpu/arm/realview-a8-vmm/context_gcc.S b/libcpu/arm/realview-a8-vmm/context_gcc.S index dba0095632b8b27b1a4c412cc1e2e2595bf1d8aa..ae672d940338ccec6868d4e8fd53df3c0d2d1e44 100644 --- a/libcpu/arm/realview-a8-vmm/context_gcc.S +++ b/libcpu/arm/realview-a8-vmm/context_gcc.S @@ -1,21 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/realview-a8-vmm/cp15.h b/libcpu/arm/realview-a8-vmm/cp15.h index ebea3f0fe307d44979db5b895e8d71d30926c17d..486f38200d942dd0f4e0dcb9d753fcdd271b464b 100644 --- a/libcpu/arm/realview-a8-vmm/cp15.h +++ b/libcpu/arm/realview-a8-vmm/cp15.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __CP15_H__ #define __CP15_H__ diff --git a/libcpu/arm/realview-a8-vmm/cp15_gcc.S b/libcpu/arm/realview-a8-vmm/cp15_gcc.S index f1ed6492aad55f8f0deb769583e738dc79a8a6f2..0e3e60655c8963ac0023e48260641d52adb8a5e5 100644 --- a/libcpu/arm/realview-a8-vmm/cp15_gcc.S +++ b/libcpu/arm/realview-a8-vmm/cp15_gcc.S @@ -1,22 +1,7 @@ /* - * File : cp15_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team - * http://www.rt-thread.org + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/realview-a8-vmm/cpu.c b/libcpu/arm/realview-a8-vmm/cpu.c index 7dd426e4dd97b49a18ebc3616b6db2e06fea89d4..2d7871501160a78edc7f1687d426f08de359a508 100644 --- a/libcpu/arm/realview-a8-vmm/cpu.c +++ b/libcpu/arm/realview-a8-vmm/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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 diff --git a/libcpu/arm/realview-a8-vmm/gic.c b/libcpu/arm/realview-a8-vmm/gic.c index 4cff1bad3e5678c39686df21d63eb91d892458bb..82f87b7e8fc99257a4bffb7dd87c2b48fb57b162 100644 --- a/libcpu/arm/realview-a8-vmm/gic.c +++ b/libcpu/arm/realview-a8-vmm/gic.c @@ -1,11 +1,7 @@ /* - * File : gic.c, ARM Generic Interrupt Controller - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, 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 diff --git a/libcpu/arm/realview-a8-vmm/gic.h b/libcpu/arm/realview-a8-vmm/gic.h index 41a7727da2ced8719040c72900b91c23fa78668b..8fcdf05f6f646c414434bf9549f806a0a450860d 100644 --- a/libcpu/arm/realview-a8-vmm/gic.h +++ b/libcpu/arm/realview-a8-vmm/gic.h @@ -1,11 +1,7 @@ /* - * File : gic.h, ARM Generic Interrupt Controller - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, 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 diff --git a/libcpu/arm/realview-a8-vmm/interrupt.c b/libcpu/arm/realview-a8-vmm/interrupt.c index ffb6c10a8967182ef56d7011d02fc1786f29b502..05998d22343c2765d0be68b2992fcbdf29b63117 100644 --- a/libcpu/arm/realview-a8-vmm/interrupt.c +++ b/libcpu/arm/realview-a8-vmm/interrupt.c @@ -1,11 +1,7 @@ /* - * File : interrupt.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, RT-Thread Development 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 diff --git a/libcpu/arm/realview-a8-vmm/interrupt.h b/libcpu/arm/realview-a8-vmm/interrupt.h index d81f1c81ae38f4f2b48c8780a070fdefd178f446..7461f94da0f7b69c1482ea0f54d1fea956c8075f 100644 --- a/libcpu/arm/realview-a8-vmm/interrupt.h +++ b/libcpu/arm/realview-a8-vmm/interrupt.h @@ -1,11 +1,7 @@ /* - * File : interrupt.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/libcpu/arm/realview-a8-vmm/mmu.c b/libcpu/arm/realview-a8-vmm/mmu.c index b2503e4260c77ece6e044a68d5ea6d2802a793f2..58acdd81458f7e2dd619d4f3e0fbaff445a3b276 100644 --- a/libcpu/arm/realview-a8-vmm/mmu.c +++ b/libcpu/arm/realview-a8-vmm/mmu.c @@ -1,11 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/libcpu/arm/realview-a8-vmm/pmu.c b/libcpu/arm/realview-a8-vmm/pmu.c index 07911a2db721bd1c82cffbb2d8f4816393663b91..8ffc1dede610da978808fa242898e2e2b1b681a2 100644 --- a/libcpu/arm/realview-a8-vmm/pmu.c +++ b/libcpu/arm/realview-a8-vmm/pmu.c @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #include #include "pmu.h" diff --git a/libcpu/arm/realview-a8-vmm/pmu.h b/libcpu/arm/realview-a8-vmm/pmu.h index 05c1420dd8fbf7a7177ea1bd4699750690c3b720..fb8390133d750ef0df5e84e98322f95967d98a9d 100644 --- a/libcpu/arm/realview-a8-vmm/pmu.h +++ b/libcpu/arm/realview-a8-vmm/pmu.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __PMU_H__ #define __PMU_H__ diff --git a/libcpu/arm/realview-a8-vmm/stack.c b/libcpu/arm/realview-a8-vmm/stack.c index 94080ae7460c704e9830a30c6289d48803d0a77a..619a16c446068f90e13c4106c344cfa91b7c1c70 100644 --- a/libcpu/arm/realview-a8-vmm/stack.c +++ b/libcpu/arm/realview-a8-vmm/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2011, RT-Thread Development 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 diff --git a/libcpu/arm/realview-a8-vmm/start_gcc.S b/libcpu/arm/realview-a8-vmm/start_gcc.S index 98f22ca1fec73c1a1ca371adcf8d198f3b6a8fca..2ec7fe6c865c3ef03eddb3b49a305610326b0127 100644 --- a/libcpu/arm/realview-a8-vmm/start_gcc.S +++ b/libcpu/arm/realview-a8-vmm/start_gcc.S @@ -1,21 +1,7 @@ /* - * File : start_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013-2014, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/realview-a8-vmm/trap.c b/libcpu/arm/realview-a8-vmm/trap.c index a6397d20d28bfc0c9c8a83fb2f1b167d7ca9c6b3..4a522f51261885048ebe46aad10ae7403cae026b 100644 --- a/libcpu/arm/realview-a8-vmm/trap.c +++ b/libcpu/arm/realview-a8-vmm/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, 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 diff --git a/libcpu/arm/realview-a8-vmm/vector_gcc.S b/libcpu/arm/realview-a8-vmm/vector_gcc.S index 8d0ca27fee5f8793e6237fab55fe7138fd673ca0..46d27a3fc5fd446cc58bcadf1d3c374f70a2b468 100644 --- a/libcpu/arm/realview-a8-vmm/vector_gcc.S +++ b/libcpu/arm/realview-a8-vmm/vector_gcc.S @@ -1,21 +1,7 @@ /* - * File : vector_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/s3c24x0/context_gcc.S b/libcpu/arm/s3c24x0/context_gcc.S index 06bbd4488fa0c01b914aed11e77e1c44b0cee272..23362a90131c26ffa68e37de0027349c2ad07066 100644 --- a/libcpu/arm/s3c24x0/context_gcc.S +++ b/libcpu/arm/s3c24x0/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/cpu.c b/libcpu/arm/s3c24x0/cpu.c index 907f08145aa9240603bfe2e7a124e5b455788cfa..4d3bf3c1abcc7a5b21a620331ae1c8772e25d636 100644 --- a/libcpu/arm/s3c24x0/cpu.c +++ b/libcpu/arm/s3c24x0/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/interrupt.c b/libcpu/arm/s3c24x0/interrupt.c index df0c1406d31384a67cec1ecb1b11c452e76db59e..10ff60b95a2c8aa4882f8c93c68ee06c02d0019b 100644 --- a/libcpu/arm/s3c24x0/interrupt.c +++ b/libcpu/arm/s3c24x0/interrupt.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/mmu.c b/libcpu/arm/s3c24x0/mmu.c index 662ec3d50ad54d81523c3629017b6f2236c3f804..dc993ec9a3ba04d56f93485138a25884339fa295 100644 --- a/libcpu/arm/s3c24x0/mmu.c +++ b/libcpu/arm/s3c24x0/mmu.c @@ -1,11 +1,7 @@ /* - * File : mmu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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 diff --git a/libcpu/arm/s3c24x0/rtc.c b/libcpu/arm/s3c24x0/rtc.c index 601f3dda950586edefd4bdff4ad2833290308112..d0c80bce6b5712c3ac4a57d682ddb37c7a9a6133 100644 --- a/libcpu/arm/s3c24x0/rtc.c +++ b/libcpu/arm/s3c24x0/rtc.c @@ -1,11 +1,7 @@ /* - * File : rtc.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/rtc.h b/libcpu/arm/s3c24x0/rtc.h index f7073e259be3b0ffc4346d46d1754a692bf0c1be..aafa714b0ebdbd79d91179f83bf64c9898cb3b17 100644 --- a/libcpu/arm/s3c24x0/rtc.h +++ b/libcpu/arm/s3c24x0/rtc.h @@ -1,11 +1,7 @@ /* - * File : rtc.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2009, RT-Thread Development 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 diff --git a/libcpu/arm/s3c24x0/s3c24x0.h b/libcpu/arm/s3c24x0/s3c24x0.h index 8308148c3b49db20e6c3407c776ad7b002d958eb..03749c522781aebdda292fd37e7412e85cd29b98 100644 --- a/libcpu/arm/s3c24x0/s3c24x0.h +++ b/libcpu/arm/s3c24x0/s3c24x0.h @@ -1,11 +1,7 @@ /* - * File : s3c24x0.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/serial.c b/libcpu/arm/s3c24x0/serial.c index ddf303da46db20d0cd60bf571c15d568e8a43623..1eca1b11103686fbb5ea6b907fe26b1b5cd0cf7c 100644 --- a/libcpu/arm/s3c24x0/serial.c +++ b/libcpu/arm/s3c24x0/serial.c @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/serial.h b/libcpu/arm/s3c24x0/serial.h index e3deb5b8871c18f1dff7d9da07631a98785b589c..8a647ef35f39593f205dece9da3da971c7c3a48d 100644 --- a/libcpu/arm/s3c24x0/serial.h +++ b/libcpu/arm/s3c24x0/serial.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __RT_HW_SERIAL_H__ #define __RT_HW_SERIAL_H__ diff --git a/libcpu/arm/s3c24x0/stack.c b/libcpu/arm/s3c24x0/stack.c index 315091d907d97883c6ec6b22599311364fc2b6b7..82607c35904fd0127e58b7c2f70f5c20a2badf79 100644 --- a/libcpu/arm/s3c24x0/stack.c +++ b/libcpu/arm/s3c24x0/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/start_gcc.S b/libcpu/arm/s3c24x0/start_gcc.S index 142d66e2f449bda270471cc371acde981cd1a59a..4adc458094179b6a7000d1f6708c736066ff56e4 100644 --- a/libcpu/arm/s3c24x0/start_gcc.S +++ b/libcpu/arm/s3c24x0/start_gcc.S @@ -1,11 +1,7 @@ /* - * File : start.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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:/*openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/system_clock.c b/libcpu/arm/s3c24x0/system_clock.c index c87c5966e9814c192d4b18afab24624bcd8d88b8..833b193cce94a1165300499d213b1820116bd8ed 100644 --- a/libcpu/arm/s3c24x0/system_clock.c +++ b/libcpu/arm/s3c24x0/system_clock.c @@ -1,11 +1,7 @@ /* - * File : clock.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c24x0/trap.c b/libcpu/arm/s3c24x0/trap.c index f1c81768c9928b7446fb6fdf52813dc867e4698d..f2f389c6b06f33221a805e5e2cb9e363cfb6092c 100644 --- a/libcpu/arm/s3c24x0/trap.c +++ b/libcpu/arm/s3c24x0/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/context_gcc.S b/libcpu/arm/s3c44b0/context_gcc.S index bbdc3989e461d664238a652a7ba185d61bc73f00..0898cdbf877e75575eb5ae90ed194bff4352ef19 100644 --- a/libcpu/arm/s3c44b0/context_gcc.S +++ b/libcpu/arm/s3c44b0/context_gcc.S @@ -1,11 +1,7 @@ /* - * File : context.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/cpu.c b/libcpu/arm/s3c44b0/cpu.c index 088ca2e5feb79dcbdf5a3498cbb3a4799efba04d..03ebefba18a54247cc0741704b9145e5813d4d48 100644 --- a/libcpu/arm/s3c44b0/cpu.c +++ b/libcpu/arm/s3c44b0/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/interrupt.c b/libcpu/arm/s3c44b0/interrupt.c index 3fc4f8c5b0677e98e19eb1da1a53cca2e201a214..6b3eed4a392a94c50aa26192fb5510efd62d1d44 100644 --- a/libcpu/arm/s3c44b0/interrupt.c +++ b/libcpu/arm/s3c44b0/interrupt.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/s3c44b0.h b/libcpu/arm/s3c44b0/s3c44b0.h index 16e8e3a2409567579f5cff336f106588c27531f6..7b854b718a2cb18a28014c09a9781eaec57e4308 100644 --- a/libcpu/arm/s3c44b0/s3c44b0.h +++ b/libcpu/arm/s3c44b0/s3c44b0.h @@ -1,11 +1,7 @@ /* - * File : s3c45b0.h - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/serial.c b/libcpu/arm/s3c44b0/serial.c index 1e41ff838392ace866bb8fdc717e855b169f6db7..6af515b027519fff8b2552160e534de51ef6e4cb 100644 --- a/libcpu/arm/s3c44b0/serial.c +++ b/libcpu/arm/s3c44b0/serial.c @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/stack.c b/libcpu/arm/s3c44b0/stack.c index 6f838cb17396e5db106084f19fa80110df96401a..12da611d5a7726465ba04c1d9f24f24cee9c4775 100644 --- a/libcpu/arm/s3c44b0/stack.c +++ b/libcpu/arm/s3c44b0/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/start_gcc.S b/libcpu/arm/s3c44b0/start_gcc.S index 17a3d0da7f597836ff80f06f537ccc2d9c232b70..65b3d422dd459193f898305c2a5f4a4a744f3613 100644 --- a/libcpu/arm/s3c44b0/start_gcc.S +++ b/libcpu/arm/s3c44b0/start_gcc.S @@ -1,11 +1,7 @@ /* - * File : start.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/s3c44b0/trap.c b/libcpu/arm/s3c44b0/trap.c index 546d9b2ea09231b2c1d4278fd8c9beda427bcd45..3b93d5457ec48b522011866ef5aedc1a9d4c7aae 100644 --- a/libcpu/arm/s3c44b0/trap.c +++ b/libcpu/arm/s3c44b0/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/sep4020/clk.c b/libcpu/arm/sep4020/clk.c index 9de17b307725f8ac07747f1d1853a7da143dde07..da69e25b6d91e8e3240e1e25100be230186340f0 100644 --- a/libcpu/arm/sep4020/clk.c +++ b/libcpu/arm/sep4020/clk.c @@ -1,11 +1,7 @@ /* - * File : clock.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/sep4020/cpu.c b/libcpu/arm/sep4020/cpu.c index 093f3c1b141de1915296ea8ab7ca78f403c8caac..ee4eab626be6e5d363b3c9038908253a44231afb 100644 --- a/libcpu/arm/sep4020/cpu.c +++ b/libcpu/arm/sep4020/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/sep4020/interrupt.c b/libcpu/arm/sep4020/interrupt.c index 8b0b8bbd647564dcc108e4054c993577f925b5d1..f688286d19c60959c0c1c2d2b65d31046652bd90 100644 --- a/libcpu/arm/sep4020/interrupt.c +++ b/libcpu/arm/sep4020/interrupt.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/sep4020/sep4020.h b/libcpu/arm/sep4020/sep4020.h index 022fddcc19978899bca66aacf594e3f907f716c1..4ae09d0275b78409d0f22a5e9af797e766c0e352 100644 --- a/libcpu/arm/sep4020/sep4020.h +++ b/libcpu/arm/sep4020/sep4020.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) 2006-2018, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + */ #ifndef __SEP4020_H #define __SEP4020_H @@ -16,7 +24,7 @@ /* - * ģĴֵ + * 各模块寄存器基值 */ #define ESRAM_BASE 0x04000000 @@ -46,602 +54,602 @@ /* - * INTCģ - * ַ: 0x10000000 + * INTC模块 + * 基址: 0x10000000 */ -#define INTC_IER (INTC_BASE+0X000) /* IRQжĴ */ -#define INTC_IMR (INTC_BASE+0X008) /* IRQжμĴ */ -#define INTC_IFR (INTC_BASE+0X010) /* IRQǿжϼĴ */ -#define INTC_IRSR (INTC_BASE+0X018) /* IRQδж״̬Ĵ */ -#define INTC_ISR (INTC_BASE+0X020) /* IRQж״̬Ĵ */ -#define INTC_IMSR (INTC_BASE+0X028) /* IRQж״̬Ĵ */ -#define INTC_IFSR (INTC_BASE+0X030) /* IRQж״̬Ĵ */ -#define INTC_FIER (INTC_BASE+0X0C0) /* FIQжĴ */ -#define INTC_FIMR (INTC_BASE+0X0C4) /* FIQжμĴ */ -#define INTC_FIFR (INTC_BASE+0X0C8) /* FIQǿжϼĴ */ -#define INTC_FIRSR (INTC_BASE+0X0CC) /* FIQδж״̬Ĵ */ -#define INTC_FISR (INTC_BASE+0X0D0) /* FIQж״̬Ĵ */ -#define INTC_FIFSR (INTC_BASE+0X0D4) /* FIQж״̬Ĵ */ -#define INTC_IPLR (INTC_BASE+0X0D8) /* IRQжȼĴ */ -#define INTC_ICR1 (INTC_BASE+0X0DC) /* IRQڲжȼƼĴ1 */ -#define INTC_ICR2 (INTC_BASE+0X0E0) /* IRQڲжȼƼĴ2 */ -#define INTC_EXICR1 (INTC_BASE+0X0E4) /* IRQⲿжȼƼĴ1 */ -#define INTC_EXICR2 (INTC_BASE+0X0E8) /* IRQⲿжȼƼĴ2 */ +#define INTC_IER (INTC_BASE+0X000) /* IRQ中断允许寄存器 */ +#define INTC_IMR (INTC_BASE+0X008) /* IRQ中断屏蔽寄存器 */ +#define INTC_IFR (INTC_BASE+0X010) /* IRQ软件强制中断寄存器 */ +#define INTC_IRSR (INTC_BASE+0X018) /* IRQ未处理中断状态寄存器 */ +#define INTC_ISR (INTC_BASE+0X020) /* IRQ中断状态寄存器 */ +#define INTC_IMSR (INTC_BASE+0X028) /* IRQ屏蔽中断状态寄存器 */ +#define INTC_IFSR (INTC_BASE+0X030) /* IRQ中断最终状态寄存器 */ +#define INTC_FIER (INTC_BASE+0X0C0) /* FIQ中断允许寄存器 */ +#define INTC_FIMR (INTC_BASE+0X0C4) /* FIQ中断屏蔽寄存器 */ +#define INTC_FIFR (INTC_BASE+0X0C8) /* FIQ软件强制中断寄存器 */ +#define INTC_FIRSR (INTC_BASE+0X0CC) /* FIQ未处理中断状态寄存器 */ +#define INTC_FISR (INTC_BASE+0X0D0) /* FIQ中断状态寄存器 */ +#define INTC_FIFSR (INTC_BASE+0X0D4) /* FIQ中断最终状态寄存器 */ +#define INTC_IPLR (INTC_BASE+0X0D8) /* IRQ中断优先级寄存器 */ +#define INTC_ICR1 (INTC_BASE+0X0DC) /* IRQ内部中断优先级控制寄存器1 */ +#define INTC_ICR2 (INTC_BASE+0X0E0) /* IRQ内部中断优先级控制寄存器2 */ +#define INTC_EXICR1 (INTC_BASE+0X0E4) /* IRQ外部中断优先级控制寄存器1 */ +#define INTC_EXICR2 (INTC_BASE+0X0E8) /* IRQ外部中断优先级控制寄存器2 */ /* - * PMUģ - * ַ: 0x10001000 + * PMU模块 + * 基址: 0x10001000 */ -#define PMU_PLTR (PMU_BASE+0X000) /* PLLȶʱ */ -#define PMU_PMCR (PMU_BASE+0X004) /* ϵͳʱPLLĿƼĴ */ -#define PMU_PUCR (PMU_BASE+0X008) /* USBʱPLLĿƼĴ */ -#define PMU_PCSR (PMU_BASE+0X00C) /* ڲģʱԴĿƼĴ */ -#define PMU_PDSLOW (PMU_BASE+0X010) /* SLOW״̬ʱӵķƵ */ -#define PMU_PMDR (PMU_BASE+0X014) /* оƬģʽĴ */ -#define PMU_RCTR (PMU_BASE+0X018) /* ResetƼĴ */ -#define PMU_CLRWAKUP (PMU_BASE+0X01C) /* WakeUpĴ */ +#define PMU_PLTR (PMU_BASE+0X000) /* PLL的稳定过渡时间 */ +#define PMU_PMCR (PMU_BASE+0X004) /* 系统主时钟PLL的控制寄存器 */ +#define PMU_PUCR (PMU_BASE+0X008) /* USB时钟PLL的控制寄存器 */ +#define PMU_PCSR (PMU_BASE+0X00C) /* 内部模块时钟源供给的控制寄存器 */ +#define PMU_PDSLOW (PMU_BASE+0X010) /* SLOW状态下时钟的分频因子 */ +#define PMU_PMDR (PMU_BASE+0X014) /* 芯片工作模式寄存器 */ +#define PMU_RCTR (PMU_BASE+0X018) /* Reset控制寄存器 */ +#define PMU_CLRWAKUP (PMU_BASE+0X01C) /* WakeUp清除寄存器 */ /* - * RTCģ - * ַ: 0x10002000 + * RTC模块 + * 基址: 0x10002000 */ -#define RTC_STA_YMD (RTC_BASE+0X000) /* , , ռĴ */ -#define RTC_STA_HMS (RTC_BASE+0X004) /* Сʱ, , Ĵ */ -#define RTC_ALARM_ALL (RTC_BASE+0X008) /* ʱ, , ʱ, ּĴ */ -#define RTC_CTR (RTC_BASE+0X00C) /* ƼĴ */ -#define RTC_INT_EN (RTC_BASE+0X010) /* жʹܼĴ */ -#define RTC_INT_STS (RTC_BASE+0X014) /* ж״̬Ĵ */ -#define RTC_SAMP (RTC_BASE+0X018) /* ڼĴ */ -#define RTC_WD_CNT (RTC_BASE+0X01C) /* Watch-DogֵĴ */ -#define RTC_WD_SEV (RTC_BASE+0X020) /* Watch-DogĴ */ -#define RTC_CONFIG_CHECK (RTC_BASE+0X024) /* ʱȷϼĴ (ʱ֮ǰд0xaaaaaaaa) */ -#define RTC_KEY0 (RTC_BASE+0X02C) /* ԿĴ */ +#define RTC_STA_YMD (RTC_BASE+0X000) /* 年, 月, 日计数寄存器 */ +#define RTC_STA_HMS (RTC_BASE+0X004) /* 小时, 分钟, 秒寄存器 */ +#define RTC_ALARM_ALL (RTC_BASE+0X008) /* 定时月, 日, 时, 分寄存器 */ +#define RTC_CTR (RTC_BASE+0X00C) /* 控制寄存器 */ +#define RTC_INT_EN (RTC_BASE+0X010) /* 中断使能寄存器 */ +#define RTC_INT_STS (RTC_BASE+0X014) /* 中断状态寄存器 */ +#define RTC_SAMP (RTC_BASE+0X018) /* 采样周期寄存器 */ +#define RTC_WD_CNT (RTC_BASE+0X01C) /* Watch-Dog计数值寄存器 */ +#define RTC_WD_SEV (RTC_BASE+0X020) /* Watch-Dog服务寄存器 */ +#define RTC_CONFIG_CHECK (RTC_BASE+0X024) /* 配置时间确认寄存器 (在配置时间之前先写0xaaaaaaaa) */ +#define RTC_KEY0 (RTC_BASE+0X02C) /* 密钥寄存器 */ /* - * TIMERģ - * ַ: 0x10003000 + * TIMER模块 + * 基址: 0x10003000 */ -#define TIMER_T1LCR (TIMER_BASE+0X000) /* ͨ1ؼĴ */ -#define TIMER_T1CCR (TIMER_BASE+0X004) /* ͨ1ǰֵĴ */ -#define TIMER_T1CR (TIMER_BASE+0X008) /* ͨ1ƼĴ */ -#define TIMER_T1ISCR (TIMER_BASE+0X00C) /* ͨ1ж״̬Ĵ */ -#define TIMER_T1IMSR (TIMER_BASE+0X010) /* ͨ1ж״̬Ĵ */ -#define TIMER_T2LCR (TIMER_BASE+0X020) /* ͨ2ؼĴ */ -#define TIMER_T2CCR (TIMER_BASE+0X024) /* ͨ2ǰֵĴ */ -#define TIMER_T2CR (TIMER_BASE+0X028) /* ͨ2ƼĴ */ -#define TIMER_T2ISCR (TIMER_BASE+0X02C) /* ͨ2ж״̬Ĵ */ -#define TIMER_T2IMSR (TIMER_BASE+0X030) /* ͨ2ж״̬Ĵ */ -#define TIMER_T3LCR (TIMER_BASE+0X040) /* ͨ3ؼĴ */ -#define TIMER_T3CCR (TIMER_BASE+0X044) /* ͨ3ǰֵĴ */ -#define TIMER_T3CR (TIMER_BASE+0X048) /* ͨ3ƼĴ */ -#define TIMER_T3ISCR (TIMER_BASE+0X04C) /* ͨ3ж״̬Ĵ */ -#define TIMER_T3IMSR (TIMER_BASE+0X050) /* ͨ3ж״̬Ĵ */ -#define TIMER_T3CAPR (TIMER_BASE+0X054) /* ͨ3Ĵ */ -#define TIMER_T4LCR (TIMER_BASE+0X060) /* ͨ4ؼĴ */ -#define TIMER_T4CCR (TIMER_BASE+0X064) /* ͨ4ǰֵĴ */ -#define TIMER_T4CR (TIMER_BASE+0X068) /* ͨ4ƼĴ */ -#define TIMER_T4ISCR (TIMER_BASE+0X06C) /* ͨ4ж״̬Ĵ */ -#define TIMER_T4IMSR (TIMER_BASE+0X070) /* ͨ4ж״̬Ĵ */ -#define TIMER_T4CAPR (TIMER_BASE+0X074) /* ͨ4Ĵ */ -#define TIMER_T5LCR (TIMER_BASE+0X080) /* ͨ5ؼĴ */ -#define TIMER_T5CCR (TIMER_BASE+0X084) /* ͨ5ǰֵĴ */ -#define TIMER_T5CR (TIMER_BASE+0X088) /* ͨ5ƼĴ */ -#define TIMER_T5ISCR (TIMER_BASE+0X08C) /* ͨ5ж״̬Ĵ */ -#define TIMER_T5IMSR (TIMER_BASE+0X090) /* ͨ5ж״̬Ĵ */ -#define TIMER_T5CAPR (TIMER_BASE+0X094) /* ͨ5Ĵ */ -#define TIMER_T6LCR (TIMER_BASE+0X0A0) /* ͨ6ؼĴ */ -#define TIMER_T6CCR (TIMER_BASE+0X0A4) /* ͨ6ǰֵĴ */ -#define TIMER_T6CR (TIMER_BASE+0X0A8) /* ͨ6ƼĴ */ -#define TIMER_T6ISCR (TIMER_BASE+0X0AC) /* ͨ6ж״̬Ĵ */ -#define TIMER_T6IMSR (TIMER_BASE+0X0B0) /* ͨ6ж״̬Ĵ */ -#define TIMER_T6CAPR (TIMER_BASE+0X0B4) /* ͨ6Ĵ */ -#define TIMER_T7LCR (TIMER_BASE+0X0C0) /* ͨ7ؼĴ */ -#define TIMER_T7CCR (TIMER_BASE+0X0C4) /* ͨ7ǰֵĴ */ -#define TIMER_T7CR (TIMER_BASE+0X0C8) /* ͨ7ƼĴ */ -#define TIMER_T7ISCR (TIMER_BASE+0X0CC) /* ͨ7ж״̬Ĵ */ -#define TIMER_T7IMSR (TIMER_BASE+0X0D0) /* ͨ7ж״̬Ĵ */ -#define TIMER_T8LCR (TIMER_BASE+0X0E0) /* ͨ8ؼĴ */ -#define TIMER_T8CCR (TIMER_BASE+0X0E4) /* ͨ8ǰֵĴ */ -#define TIMER_T8CR (TIMER_BASE+0X0E8) /* ͨ8ƼĴ */ -#define TIMER_T8ISCR (TIMER_BASE+0X0EC) /* ͨ8ж״̬Ĵ */ -#define TIMER_T8IMSR (TIMER_BASE+0X0F0) /* ͨ8ж״̬Ĵ */ -#define TIMER_T9LCR (TIMER_BASE+0X100) /* ͨ9ؼĴ */ -#define TIMER_T9CCR (TIMER_BASE+0X104) /* ͨ9ǰֵĴ */ -#define TIMER_T9CR (TIMER_BASE+0X108) /* ͨ9ƼĴ */ -#define TIMER_T9ISCR (TIMER_BASE+0X10C) /* ͨ9ж״̬Ĵ */ -#define TIMER_T9IMSR (TIMER_BASE+0X110) /* ͨ9ж״̬Ĵ */ -#define TIMER_T10LCR (TIMER_BASE+0X120) /* ͨ10ؼĴ */ -#define TIMER_T10CCR (TIMER_BASE+0X124) /* ͨ10ǰֵĴ */ -#define TIMER_T10CR (TIMER_BASE+0X128) /* ͨ10ƼĴ */ -#define TIMER_T10ISCR (TIMER_BASE+0X12C) /* ͨ10ж״̬Ĵ */ -#define TIMER_T10IMSR (TIMER_BASE+0X130) /* ͨ10ж״̬Ĵ */ -#define TIMER_TIMSR (TIMER_BASE+0X140) /* TIMERж״̬Ĵ */ -#define TIMER_TISCR (TIMER_BASE+0X144) /* TIMERж״̬Ĵ */ -#define TIMER_TISR (TIMER_BASE+0X148) /* TIMERж״̬Ĵ */ +#define TIMER_T1LCR (TIMER_BASE+0X000) /* 通道1加载计数寄存器 */ +#define TIMER_T1CCR (TIMER_BASE+0X004) /* 通道1当前计数值寄存器 */ +#define TIMER_T1CR (TIMER_BASE+0X008) /* 通道1控制寄存器 */ +#define TIMER_T1ISCR (TIMER_BASE+0X00C) /* 通道1中断状态清除寄存器 */ +#define TIMER_T1IMSR (TIMER_BASE+0X010) /* 通道1中断屏蔽状态寄存器 */ +#define TIMER_T2LCR (TIMER_BASE+0X020) /* 通道2加载计数寄存器 */ +#define TIMER_T2CCR (TIMER_BASE+0X024) /* 通道2当前计数值寄存器 */ +#define TIMER_T2CR (TIMER_BASE+0X028) /* 通道2控制寄存器 */ +#define TIMER_T2ISCR (TIMER_BASE+0X02C) /* 通道2中断状态清除寄存器 */ +#define TIMER_T2IMSR (TIMER_BASE+0X030) /* 通道2中断屏蔽状态寄存器 */ +#define TIMER_T3LCR (TIMER_BASE+0X040) /* 通道3加载计数寄存器 */ +#define TIMER_T3CCR (TIMER_BASE+0X044) /* 通道3当前计数值寄存器 */ +#define TIMER_T3CR (TIMER_BASE+0X048) /* 通道3控制寄存器 */ +#define TIMER_T3ISCR (TIMER_BASE+0X04C) /* 通道3中断状态清除寄存器 */ +#define TIMER_T3IMSR (TIMER_BASE+0X050) /* 通道3中断屏蔽状态寄存器 */ +#define TIMER_T3CAPR (TIMER_BASE+0X054) /* 通道3捕获寄存器 */ +#define TIMER_T4LCR (TIMER_BASE+0X060) /* 通道4加载计数寄存器 */ +#define TIMER_T4CCR (TIMER_BASE+0X064) /* 通道4当前计数值寄存器 */ +#define TIMER_T4CR (TIMER_BASE+0X068) /* 通道4控制寄存器 */ +#define TIMER_T4ISCR (TIMER_BASE+0X06C) /* 通道4中断状态清除寄存器 */ +#define TIMER_T4IMSR (TIMER_BASE+0X070) /* 通道4中断屏蔽状态寄存器 */ +#define TIMER_T4CAPR (TIMER_BASE+0X074) /* 通道4捕获寄存器 */ +#define TIMER_T5LCR (TIMER_BASE+0X080) /* 通道5加载计数寄存器 */ +#define TIMER_T5CCR (TIMER_BASE+0X084) /* 通道5当前计数值寄存器 */ +#define TIMER_T5CR (TIMER_BASE+0X088) /* 通道5控制寄存器 */ +#define TIMER_T5ISCR (TIMER_BASE+0X08C) /* 通道5中断状态清除寄存器 */ +#define TIMER_T5IMSR (TIMER_BASE+0X090) /* 通道5中断屏蔽状态寄存器 */ +#define TIMER_T5CAPR (TIMER_BASE+0X094) /* 通道5捕获寄存器 */ +#define TIMER_T6LCR (TIMER_BASE+0X0A0) /* 通道6加载计数寄存器 */ +#define TIMER_T6CCR (TIMER_BASE+0X0A4) /* 通道6当前计数值寄存器 */ +#define TIMER_T6CR (TIMER_BASE+0X0A8) /* 通道6控制寄存器 */ +#define TIMER_T6ISCR (TIMER_BASE+0X0AC) /* 通道6中断状态清除寄存器 */ +#define TIMER_T6IMSR (TIMER_BASE+0X0B0) /* 通道6中断屏蔽状态寄存器 */ +#define TIMER_T6CAPR (TIMER_BASE+0X0B4) /* 通道6捕获寄存器 */ +#define TIMER_T7LCR (TIMER_BASE+0X0C0) /* 通道7加载计数寄存器 */ +#define TIMER_T7CCR (TIMER_BASE+0X0C4) /* 通道7当前计数值寄存器 */ +#define TIMER_T7CR (TIMER_BASE+0X0C8) /* 通道7控制寄存器 */ +#define TIMER_T7ISCR (TIMER_BASE+0X0CC) /* 通道7中断状态清除寄存器 */ +#define TIMER_T7IMSR (TIMER_BASE+0X0D0) /* 通道7中断屏蔽状态寄存器 */ +#define TIMER_T8LCR (TIMER_BASE+0X0E0) /* 通道8加载计数寄存器 */ +#define TIMER_T8CCR (TIMER_BASE+0X0E4) /* 通道8当前计数值寄存器 */ +#define TIMER_T8CR (TIMER_BASE+0X0E8) /* 通道8控制寄存器 */ +#define TIMER_T8ISCR (TIMER_BASE+0X0EC) /* 通道8中断状态清除寄存器 */ +#define TIMER_T8IMSR (TIMER_BASE+0X0F0) /* 通道8中断屏蔽状态寄存器 */ +#define TIMER_T9LCR (TIMER_BASE+0X100) /* 通道9加载计数寄存器 */ +#define TIMER_T9CCR (TIMER_BASE+0X104) /* 通道9当前计数值寄存器 */ +#define TIMER_T9CR (TIMER_BASE+0X108) /* 通道9控制寄存器 */ +#define TIMER_T9ISCR (TIMER_BASE+0X10C) /* 通道9中断状态清除寄存器 */ +#define TIMER_T9IMSR (TIMER_BASE+0X110) /* 通道9中断屏蔽状态寄存器 */ +#define TIMER_T10LCR (TIMER_BASE+0X120) /* 通道10加载计数寄存器 */ +#define TIMER_T10CCR (TIMER_BASE+0X124) /* 通道10当前计数值寄存器 */ +#define TIMER_T10CR (TIMER_BASE+0X128) /* 通道10控制寄存器 */ +#define TIMER_T10ISCR (TIMER_BASE+0X12C) /* 通道10中断状态清除寄存器 */ +#define TIMER_T10IMSR (TIMER_BASE+0X130) /* 通道10中断屏蔽状态寄存器 */ +#define TIMER_TIMSR (TIMER_BASE+0X140) /* TIMER中断屏蔽状态寄存器 */ +#define TIMER_TISCR (TIMER_BASE+0X144) /* TIMER中断状态清除寄存器 */ +#define TIMER_TISR (TIMER_BASE+0X148) /* TIMER中断状态寄存器 */ /* - * PWMģ - * ַ: 0x10004000 + * PWM模块 + * 基址: 0x10004000 */ -#define PWM0_CTRL (PWM_BASE+0X000) /* PWM0ƼĴ */ -#define PWM0_DIV (PWM_BASE+0X004) /* PWM0ƵĴ */ -#define PWM0_PERIOD (PWM_BASE+0X008) /* PWM0ڼĴ */ -#define PWM0_DATA (PWM_BASE+0X00C) /* PWM0ݼĴ */ -#define PWM0_CNT (PWM_BASE+0X010) /* PWM0Ĵ */ -#define PWM0_STATUS (PWM_BASE+0X014) /* PWM0״̬Ĵ */ -#define PWM1_CTRL (PWM_BASE+0X020) /* PWM1ƼĴ */ -#define PWM1_DIV (PWM_BASE+0X024) /* PWM1ƵĴ */ -#define PWM1_PERIOD (PWM_BASE+0X028) /* PWM1ڼĴ */ -#define PWM1_DATA (PWM_BASE+0X02C) /* PWM1ݼĴ */ -#define PWM1_CNT (PWM_BASE+0X030) /* PWM1Ĵ */ -#define PWM1_STATUS (PWM_BASE+0X034) /* PWM1״̬Ĵ */ -#define PWM2_CTRL (PWM_BASE+0X040) /* PWM2ƼĴ */ -#define PWM2_DIV (PWM_BASE+0X044) /* PWM2ƵĴ */ -#define PWM2_PERIOD (PWM_BASE+0X048) /* PWM2ڼĴ */ -#define PWM2_DATA (PWM_BASE+0X04C) /* PWM2ݼĴ */ -#define PWM2_CNT (PWM_BASE+0X050) /* PWM2Ĵ */ -#define PWM2_STATUS (PWM_BASE+0X054) /* PWM2״̬Ĵ */ -#define PWM3_CTRL (PWM_BASE+0X060) /* PWM3ƼĴ */ -#define PWM3_DIV (PWM_BASE+0X064) /* PWM3ƵĴ */ -#define PWM3_PERIOD (PWM_BASE+0X068) /* PWM3ڼĴ */ -#define PWM3_DATA (PWM_BASE+0X06C) /* PWM3ݼĴ */ -#define PWM3_CNT (PWM_BASE+0X070) /* PWM3Ĵ */ -#define PWM3_STATUS (PWM_BASE+0X074) /* PWM3״̬Ĵ */ -#define PWM_INTMASK (PWM_BASE+0X080) /* PWMжμĴ */ -#define PWM_INT (PWM_BASE+0X084) /* PWMжϼĴ */ -#define PWM_ENABLE (PWM_BASE+0X088) /* PWMʹܼĴ */ +#define PWM0_CTRL (PWM_BASE+0X000) /* PWM0控制寄存器 */ +#define PWM0_DIV (PWM_BASE+0X004) /* PWM0分频寄存器 */ +#define PWM0_PERIOD (PWM_BASE+0X008) /* PWM0周期寄存器 */ +#define PWM0_DATA (PWM_BASE+0X00C) /* PWM0数据寄存器 */ +#define PWM0_CNT (PWM_BASE+0X010) /* PWM0计数寄存器 */ +#define PWM0_STATUS (PWM_BASE+0X014) /* PWM0状态寄存器 */ +#define PWM1_CTRL (PWM_BASE+0X020) /* PWM1控制寄存器 */ +#define PWM1_DIV (PWM_BASE+0X024) /* PWM1分频寄存器 */ +#define PWM1_PERIOD (PWM_BASE+0X028) /* PWM1周期寄存器 */ +#define PWM1_DATA (PWM_BASE+0X02C) /* PWM1数据寄存器 */ +#define PWM1_CNT (PWM_BASE+0X030) /* PWM1计数寄存器 */ +#define PWM1_STATUS (PWM_BASE+0X034) /* PWM1状态寄存器 */ +#define PWM2_CTRL (PWM_BASE+0X040) /* PWM2控制寄存器 */ +#define PWM2_DIV (PWM_BASE+0X044) /* PWM2分频寄存器 */ +#define PWM2_PERIOD (PWM_BASE+0X048) /* PWM2周期寄存器 */ +#define PWM2_DATA (PWM_BASE+0X04C) /* PWM2数据寄存器 */ +#define PWM2_CNT (PWM_BASE+0X050) /* PWM2计数寄存器 */ +#define PWM2_STATUS (PWM_BASE+0X054) /* PWM2状态寄存器 */ +#define PWM3_CTRL (PWM_BASE+0X060) /* PWM3控制寄存器 */ +#define PWM3_DIV (PWM_BASE+0X064) /* PWM3分频寄存器 */ +#define PWM3_PERIOD (PWM_BASE+0X068) /* PWM3周期寄存器 */ +#define PWM3_DATA (PWM_BASE+0X06C) /* PWM3数据寄存器 */ +#define PWM3_CNT (PWM_BASE+0X070) /* PWM3计数寄存器 */ +#define PWM3_STATUS (PWM_BASE+0X074) /* PWM3状态寄存器 */ +#define PWM_INTMASK (PWM_BASE+0X080) /* PWM中断屏蔽寄存器 */ +#define PWM_INT (PWM_BASE+0X084) /* PWM中断寄存器 */ +#define PWM_ENABLE (PWM_BASE+0X088) /* PWM使能寄存器 */ /* - * UART0ģ - * ַ: 0x10005000 + * UART0模块 + * 基址: 0x10005000 */ -#define UART0_DLBL (UART0_BASE+0X000) /* õͰλĴ */ -#define UART0_RXFIFO (UART0_BASE+0X000) /* FIFO */ -#define UART0_TXFIFO (UART0_BASE+0X000) /* FIFO */ -#define UART0_DLBH (UART0_BASE+0X004) /* ø߰λĴ */ -#define UART0_IER (UART0_BASE+0X004) /* жʹܼĴ */ -#define UART0_IIR (UART0_BASE+0X008) /* жʶĴ */ -#define UART0_FCR (UART0_BASE+0X008) /* FIFOƼĴ */ -#define UART0_LCR (UART0_BASE+0X00C) /* пƼĴ */ -#define UART0_MCR (UART0_BASE+0X010) /* ModemƼĴ */ -#define UART0_LSR (UART0_BASE+0X014) /* ״̬Ĵ */ -#define UART0_MSR (UART0_BASE+0X018) /* Modem״̬Ĵ */ +#define UART0_DLBL (UART0_BASE+0X000) /* 波特率设置低八位寄存器 */ +#define UART0_RXFIFO (UART0_BASE+0X000) /* 接收FIFO */ +#define UART0_TXFIFO (UART0_BASE+0X000) /* 发送FIFO */ +#define UART0_DLBH (UART0_BASE+0X004) /* 波特率设置高八位寄存器 */ +#define UART0_IER (UART0_BASE+0X004) /* 中断使能寄存器 */ +#define UART0_IIR (UART0_BASE+0X008) /* 中断识别寄存器 */ +#define UART0_FCR (UART0_BASE+0X008) /* FIFO控制寄存器 */ +#define UART0_LCR (UART0_BASE+0X00C) /* 行控制寄存器 */ +#define UART0_MCR (UART0_BASE+0X010) /* Modem控制寄存器 */ +#define UART0_LSR (UART0_BASE+0X014) /* 行状态寄存器 */ +#define UART0_MSR (UART0_BASE+0X018) /* Modem状态寄存器 */ /* - * UART1ģ - * ַ: 0x10006000 + * UART1模块 + * 基址: 0x10006000 */ -#define UART1_DLBL (UART1_BASE+0X000) /* õͰλĴ */ -#define UART1_RXFIFO (UART1_BASE+0X000) /* FIFO */ -#define UART1_TXFIFO (UART1_BASE+0X000) /* FIFO */ -#define UART1_DLBH (UART1_BASE+0X004) /* ø߰λĴ */ -#define UART1_IER (UART1_BASE+0X004) /* жʹܼĴ */ -#define UART1_IIR (UART1_BASE+0X008) /* жʶĴ */ -#define UART1_FCR (UART1_BASE+0X008) /* FIFOƼĴ */ -#define UART1_LCR (UART1_BASE+0X00C) /* пƼĴ */ -#define UART1_MCR (UART1_BASE+0X010) /* ModemƼĴ */ -#define UART1_LSR (UART1_BASE+0X014) /* ״̬Ĵ */ -#define UART1_MSR (UART1_BASE+0X018) /* Modem״̬Ĵ */ +#define UART1_DLBL (UART1_BASE+0X000) /* 波特率设置低八位寄存器 */ +#define UART1_RXFIFO (UART1_BASE+0X000) /* 接收FIFO */ +#define UART1_TXFIFO (UART1_BASE+0X000) /* 发送FIFO */ +#define UART1_DLBH (UART1_BASE+0X004) /* 波特率设置高八位寄存器 */ +#define UART1_IER (UART1_BASE+0X004) /* 中断使能寄存器 */ +#define UART1_IIR (UART1_BASE+0X008) /* 中断识别寄存器 */ +#define UART1_FCR (UART1_BASE+0X008) /* FIFO控制寄存器 */ +#define UART1_LCR (UART1_BASE+0X00C) /* 行控制寄存器 */ +#define UART1_MCR (UART1_BASE+0X010) /* Modem控制寄存器 */ +#define UART1_LSR (UART1_BASE+0X014) /* 行状态寄存器 */ +#define UART1_MSR (UART1_BASE+0X018) /* Modem状态寄存器 */ /* - * UART2ģ - * ַ: 0x10007000 + * UART2模块 + * 基址: 0x10007000 */ -#define UART2_DLBL (UART2_BASE+0X000) /* õͰλĴ */ -#define UART2_RXFIFO (UART2_BASE+0X000) /* FIFO */ -#define UART2_TXFIFO (UART2_BASE+0X000) /* FIFO */ -#define UART2_DLBH (UART2_BASE+0X004) /* ø߰λĴ */ -#define UART2_IER (UART2_BASE+0X004) /* жʹܼĴ */ -#define UART2_IIR (UART2_BASE+0X008) /* жʶĴ */ -#define UART2_FCR (UART2_BASE+0X008) /* FIFOƼĴ */ -#define UART2_LCR (UART2_BASE+0X00C) /* пƼĴ */ -#define UART2_MCR (UART2_BASE+0X010) /* ModemƼĴ */ -#define UART2_LSR (UART2_BASE+0X014) /* ״̬Ĵ */ -#define UART2_MSR (UART2_BASE+0X018) /* Modem״̬Ĵ */ +#define UART2_DLBL (UART2_BASE+0X000) /* 波特率设置低八位寄存器 */ +#define UART2_RXFIFO (UART2_BASE+0X000) /* 接收FIFO */ +#define UART2_TXFIFO (UART2_BASE+0X000) /* 发送FIFO */ +#define UART2_DLBH (UART2_BASE+0X004) /* 波特率设置高八位寄存器 */ +#define UART2_IER (UART2_BASE+0X004) /* 中断使能寄存器 */ +#define UART2_IIR (UART2_BASE+0X008) /* 中断识别寄存器 */ +#define UART2_FCR (UART2_BASE+0X008) /* FIFO控制寄存器 */ +#define UART2_LCR (UART2_BASE+0X00C) /* 行控制寄存器 */ +#define UART2_MCR (UART2_BASE+0X010) /* Modem控制寄存器 */ +#define UART2_LSR (UART2_BASE+0X014) /* 行状态寄存器 */ +#define UART2_MSR (UART2_BASE+0X018) /* Modem状态寄存器 */ /* - * UART3ģ - * ַ: 0x10008000 + * UART3模块 + * 基址: 0x10008000 */ -#define UART3_DLBL (UART3_BASE+0X000) /* õͰλĴ */ -#define UART3_RXFIFO (UART3_BASE+0X000) /* FIFO */ -#define UART3_TXFIFO (UART3_BASE+0X000) /* FIFO */ -#define UART3_DLBH (UART3_BASE+0X004) /* ø߰λĴ */ -#define UART3_IER (UART3_BASE+0X004) /* жʹܼĴ */ -#define UART3_IIR (UART3_BASE+0X008) /* жʶĴ */ -#define UART3_FCR (UART3_BASE+0X008) /* FIFOƼĴ */ -#define UART3_LCR (UART3_BASE+0X00C) /* пƼĴ */ -#define UART3_MCR (UART3_BASE+0X010) /* ModemƼĴ */ -#define UART3_LSR (UART3_BASE+0X014) /* ״̬Ĵ */ -#define UART3_MSR (UART3_BASE+0X018) /* Modem״̬Ĵ */ +#define UART3_DLBL (UART3_BASE+0X000) /* 波特率设置低八位寄存器 */ +#define UART3_RXFIFO (UART3_BASE+0X000) /* 接收FIFO */ +#define UART3_TXFIFO (UART3_BASE+0X000) /* 发送FIFO */ +#define UART3_DLBH (UART3_BASE+0X004) /* 波特率设置高八位寄存器 */ +#define UART3_IER (UART3_BASE+0X004) /* 中断使能寄存器 */ +#define UART3_IIR (UART3_BASE+0X008) /* 中断识别寄存器 */ +#define UART3_FCR (UART3_BASE+0X008) /* FIFO控制寄存器 */ +#define UART3_LCR (UART3_BASE+0X00C) /* 行控制寄存器 */ +#define UART3_MCR (UART3_BASE+0X010) /* Modem控制寄存器 */ +#define UART3_LSR (UART3_BASE+0X014) /* 行状态寄存器 */ +#define UART3_MSR (UART3_BASE+0X018) /* Modem状态寄存器 */ /* - * SSIģ - * ַ: 0x10009000 + * SSI模块 + * 基址: 0x10009000 */ -#define SSI_CONTROL0 (SSI_BASE+0X000) /* ƼĴ0 */ -#define SSI_CONTROL1 (SSI_BASE+0X004) /* ƼĴ1 */ -#define SSI_SSIENR (SSI_BASE+0X008) /* SSIʹܼĴ */ -#define SSI_MWCR (SSI_BASE+0X00C) /* MicrowireƼĴ */ -#define SSI_SER (SSI_BASE+0X010) /* 豸ʹܼĴ */ -#define SSI_BAUDR (SSI_BASE+0X014) /* üĴ */ -#define SSI_TXFTLR (SSI_BASE+0X018) /* FIFOֵĴ */ -#define SSI_RXFTLR (SSI_BASE+0X01C) /* FIFOֵĴ */ -#define SSI_TXFLR (SSI_BASE+0X020) /* FIFO״̬Ĵ */ -#define SSI_RXFLR (SSI_BASE+0X024) /* FIFO״̬Ĵ */ -#define SSI_SR (SSI_BASE+0X028) /* ״̬Ĵ */ -#define SSI_IMR (SSI_BASE+0X02C) /* жμĴ */ -#define SSI_ISR (SSI_BASE+0X030) /* ж״̬Ĵ */ -#define SSI_RISR (SSI_BASE+0X034) /* жԭʼ״̬Ĵ */ -#define SSI_TXOICR (SSI_BASE+0X038) /* FIFOжĴ */ -#define SSI_RXOICR (SSI_BASE+0X03C) /* FIFOжĴ */ -#define SSI_RXUICR (SSI_BASE+0X040) /* FIFOжĴ */ -#define SSI_ICR (SSI_BASE+0X02C) /* жĴ */ -#define SSI_DMACR (SSI_BASE+0X04C) /* DMAƼĴ */ -#define SSI_DMATDLR (SSI_BASE+0X050) /* DMA״̬Ĵ */ -#define SSI_DMARDLR (SSI_BASE+0X054) /* DMA״̬Ĵ */ -#define SSI_DR (SSI_BASE+0X060) /* ݼĴ */ +#define SSI_CONTROL0 (SSI_BASE+0X000) /* 控制寄存器0 */ +#define SSI_CONTROL1 (SSI_BASE+0X004) /* 控制寄存器1 */ +#define SSI_SSIENR (SSI_BASE+0X008) /* SSI使能寄存器 */ +#define SSI_MWCR (SSI_BASE+0X00C) /* Microwire控制寄存器 */ +#define SSI_SER (SSI_BASE+0X010) /* 从设备使能寄存器 */ +#define SSI_BAUDR (SSI_BASE+0X014) /* 波特率设置寄存器 */ +#define SSI_TXFTLR (SSI_BASE+0X018) /* 发送FIFO阈值寄存器 */ +#define SSI_RXFTLR (SSI_BASE+0X01C) /* 接收FIFO阈值寄存器 */ +#define SSI_TXFLR (SSI_BASE+0X020) /* 发送FIFO状态寄存器 */ +#define SSI_RXFLR (SSI_BASE+0X024) /* 接收FIFO状态寄存器 */ +#define SSI_SR (SSI_BASE+0X028) /* 状态寄存器 */ +#define SSI_IMR (SSI_BASE+0X02C) /* 中断屏蔽寄存器 */ +#define SSI_ISR (SSI_BASE+0X030) /* 中断最终状态寄存器 */ +#define SSI_RISR (SSI_BASE+0X034) /* 中断原始状态寄存器 */ +#define SSI_TXOICR (SSI_BASE+0X038) /* 发送FIFO上溢中断清除寄存器 */ +#define SSI_RXOICR (SSI_BASE+0X03C) /* 接收FIFO上溢中断清除寄存器 */ +#define SSI_RXUICR (SSI_BASE+0X040) /* 接收FIFO下溢中断清除寄存器 */ +#define SSI_ICR (SSI_BASE+0X02C) /* 中断清除寄存器 */ +#define SSI_DMACR (SSI_BASE+0X04C) /* DMA控制寄存器 */ +#define SSI_DMATDLR (SSI_BASE+0X050) /* DMA发送状态寄存器 */ +#define SSI_DMARDLR (SSI_BASE+0X054) /* DMA接收状态寄存器 */ +#define SSI_DR (SSI_BASE+0X060) /* 数据寄存器 */ /* - * I2Sģ - * ַ: 0x1000A000 + * I2S模块 + * 基址: 0x1000A000 */ -#define I2S_CTRL (I2S_BASE+0X000) /* I2SƼĴ */ -#define I2S_DATA (I2S_BASE+0X004) /* I2SݼĴ */ -#define I2S_INT (I2S_BASE+0X008) /* I2SжϼĴ */ -#define I2S_STATUS (I2S_BASE+0X00C) /* I2S״̬Ĵ */ +#define I2S_CTRL (I2S_BASE+0X000) /* I2S控制寄存器 */ +#define I2S_DATA (I2S_BASE+0X004) /* I2S数据寄存器 */ +#define I2S_INT (I2S_BASE+0X008) /* I2S中断寄存器 */ +#define I2S_STATUS (I2S_BASE+0X00C) /* I2S状态寄存器 */ /* - * SDģ - * ַ: 0x1000B000 + * SD模块 + * 基址: 0x1000B000 */ -#define SDC_CLOCK_CONTROL (SD_BASE+0x00) /* SDIOʱӿƼĴ */ -#define SDC_SOFTWARE_RESET (SD_BASE+0X04) /* SDIOλĴ */ -#define SDC_ARGUMENT (SD_BASE+0X08) /* SDIOĴ */ -#define SDC_COMMAND (SD_BASE+0X0C) /* SDIOƼĴ */ -#define SDC_BLOCK_SIZE (SD_BASE+0X10) /* SDIOݿ鳤ȼĴ */ -#define SDC_BLOCK_COUNT (SD_BASE+0X14) /* SDIOݿĿĴ */ -#define SDC_TRANSFER_MODE (SD_BASE+0X18) /* SDIOģʽѡĴ */ -#define SDC_RESPONSE0 (SD_BASE+0X1c) /* SDIOӦĴ0 */ -#define SDC_RESPONSE1 (SD_BASE+0X20) /* SDIOӦĴ1 */ -#define SDC_RESPONSE2 (SD_BASE+0X24) /* SDIOӦĴ2 */ -#define SDC_RESPONSE3 (SD_BASE+0X28) /* SDIOӦĴ3 */ -#define SDC_READ_TIMEOUT_CONTROL (SD_BASE+0X2c) /* SDIOʱƼĴ */ -#define SDC_INTERRUPT_STATUS (SD_BASE+0X30) /* SDIOж״̬Ĵ */ -#define SDC_INTERRUPT_STATUS_MASK (SD_BASE+0X34) /* SDIOж״̬μĴ */ -#define SDC_READ_BUFER_ACCESS (SD_BASE+0X38) /* SDIOFIFO */ -#define SDC_WRITE_BUFER_ACCESS (SD_BASE+0X3c) /* SDIOFIFO */ +#define SDC_CLOCK_CONTROL (SD_BASE+0x00) /* SDIO时钟控制寄存器 */ +#define SDC_SOFTWARE_RESET (SD_BASE+0X04) /* SDIO软件复位寄存器 */ +#define SDC_ARGUMENT (SD_BASE+0X08) /* SDIO命令参数寄存器 */ +#define SDC_COMMAND (SD_BASE+0X0C) /* SDIO命令控制寄存器 */ +#define SDC_BLOCK_SIZE (SD_BASE+0X10) /* SDIO数据块长度寄存器 */ +#define SDC_BLOCK_COUNT (SD_BASE+0X14) /* SDIO数据块数目寄存器 */ +#define SDC_TRANSFER_MODE (SD_BASE+0X18) /* SDIO传输模式选择寄存器 */ +#define SDC_RESPONSE0 (SD_BASE+0X1c) /* SDIO响应寄存器0 */ +#define SDC_RESPONSE1 (SD_BASE+0X20) /* SDIO响应寄存器1 */ +#define SDC_RESPONSE2 (SD_BASE+0X24) /* SDIO响应寄存器2 */ +#define SDC_RESPONSE3 (SD_BASE+0X28) /* SDIO响应寄存器3 */ +#define SDC_READ_TIMEOUT_CONTROL (SD_BASE+0X2c) /* SDIO读超时控制寄存器 */ +#define SDC_INTERRUPT_STATUS (SD_BASE+0X30) /* SDIO中断状态寄存器 */ +#define SDC_INTERRUPT_STATUS_MASK (SD_BASE+0X34) /* SDIO中断状态屏蔽寄存器 */ +#define SDC_READ_BUFER_ACCESS (SD_BASE+0X38) /* SDIO接收FIFO */ +#define SDC_WRITE_BUFER_ACCESS (SD_BASE+0X3c) /* SDIO发送FIFO */ /* - * SMC0ģ - * ַ: 0x1000C000 + * SMC0模块 + * 基址: 0x1000C000 */ -#define SMC0_CTRL (SMC0_BASE+0X000) /* SMC0ƼĴ */ -#define SMC0_INT (SMC0_BASE+0X004) /* SMC0жϼĴ */ -#define SMC0_FD (SMC0_BASE+0X008) /* SMC0ԪʱĴ */ -#define SMC0_CT (SMC0_BASE+0X00C) /* SMC0ַʱĴ */ -#define SMC0_BT (SMC0_BASE+0X010) /* SMC0鴫ʱĴ */ +#define SMC0_CTRL (SMC0_BASE+0X000) /* SMC0控制寄存器 */ +#define SMC0_INT (SMC0_BASE+0X004) /* SMC0中断寄存器 */ +#define SMC0_FD (SMC0_BASE+0X008) /* SMC0基本单元时间寄存器 */ +#define SMC0_CT (SMC0_BASE+0X00C) /* SMC0字符传输时间寄存器 */ +#define SMC0_BT (SMC0_BASE+0X010) /* SMC0块传输时间寄存器 */ /* - * SMC1ģ - * ַ: 0x1000D000 + * SMC1模块 + * 基址: 0x1000D000 */ -#define SMC1_CTRL (SMC1_BASE+0X000) /* SMC1ƼĴ */ -#define SMC1_INT (SMC1_BASE+0X004) /* SMC1жϼĴ */ -#define SMC1_FD (SMC1_BASE+0X008) /* SMC1ԪʱĴ */ -#define SMC1_CT (SMC1_BASE+0X00C) /* SMC1ַʱĴ */ -#define SMC1_BT (SMC1_BASE+0X010) /* SMC1鴫ʱĴ */ +#define SMC1_CTRL (SMC1_BASE+0X000) /* SMC1控制寄存器 */ +#define SMC1_INT (SMC1_BASE+0X004) /* SMC1中断寄存器 */ +#define SMC1_FD (SMC1_BASE+0X008) /* SMC1基本单元时间寄存器 */ +#define SMC1_CT (SMC1_BASE+0X00C) /* SMC1字符传输时间寄存器 */ +#define SMC1_BT (SMC1_BASE+0X010) /* SMC1块传输时间寄存器 */ /* - * USBDģ - * ַ: 0x1000E000 + * USBD模块 + * 基址: 0x1000E000 */ -#define USBD_PROTOCOLINTR (USBD_BASE+0X000) /* USBЭжϼĴ */ -#define USBD_INTRMASK (USBD_BASE+0X004) /* USBжμĴ */ -#define USBD_INTRCTRL (USBD_BASE+0X008) /* USBжͿƼĴ */ -#define USBD_EPINFO (USBD_BASE+0X00C) /* USB˵״̬Ĵ */ -#define USBD_BCONFIGURATIONVALUE (USBD_BASE+0X010) /* SET_CCONFIGURATION¼ */ -#define USBD_BMATTRIBUTES (USBD_BASE+0X014) /* ǰԼĴ */ -#define USBD_DEVSPEED (USBD_BASE+0X018) /* ǰ豸ٶȼĴ */ -#define USBD_FRAMENUMBER (USBD_BASE+0X01C) /* ¼ǰSOFڵ֡ */ -#define USBD_EPTRANSACTIONS0 (USBD_BASE+0X020) /* ¼´ҪĴ */ -#define USBD_EPTRANSACTIONS1 (USBD_BASE+0X024) /* ¼´ҪĴ */ -#define USBD_APPIFUPDATE (USBD_BASE+0X028) /* ӿںſٸ¼Ĵ */ -#define USBD_CFGINTERFACE0 (USBD_BASE+0X02C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE1 (USBD_BASE+0X030) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE2 (USBD_BASE+0X034) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE3 (USBD_BASE+0X038) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE4 (USBD_BASE+0X03C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE5 (USBD_BASE+0X040) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE6 (USBD_BASE+0X044) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE7 (USBD_BASE+0X048) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE8 (USBD_BASE+0X04C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE9 (USBD_BASE+0X050) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE10 (USBD_BASE+0X054) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE11 (USBD_BASE+0X058) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE12 (USBD_BASE+0X05C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE13 (USBD_BASE+0X060) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE14 (USBD_BASE+0X064) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE15 (USBD_BASE+0X068) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE16 (USBD_BASE+0X06C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE17 (USBD_BASE+0X070) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE18 (USBD_BASE+0X074) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE19 (USBD_BASE+0X078) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE20 (USBD_BASE+0X07C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE21 (USBD_BASE+0X080) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE22 (USBD_BASE+0X084) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE23 (USBD_BASE+0X088) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE24 (USBD_BASE+0X08C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE25 (USBD_BASE+0X090) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE26 (USBD_BASE+0X094) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE27 (USBD_BASE+0X098) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE28 (USBD_BASE+0X09C) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE29 (USBD_BASE+0X0A0) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE30 (USBD_BASE+0X0A4) /* ¼ӿڵֵ */ -#define USBD_CFGINTERFACE31 (USBD_BASE+0X0A8) /* ¼ӿڵֵ */ -#define USBD_PKTPASSEDCTRL (USBD_BASE+0X0AC) /* ¼ɹյİ */ -#define USBD_PKTDROPPEDCTRL (USBD_BASE+0X0B0) /* ¼ʧİ */ -#define USBD_CRCERRCTRL (USBD_BASE+0X0B4) /* ¼CRCİ */ -#define USBD_BITSTUFFERRCTRL (USBD_BASE+0X0B8) /* ¼λİ */ -#define USBD_PIDERRCTRL (USBD_BASE+0X0BC) /* ¼PIDİ */ -#define USBD_FRAMINGERRCTL (USBD_BASE+0X0C0) /* ¼SYNCEOPİ */ -#define USBD_TXPKTCTRL (USBD_BASE+0X0C4) /* ¼Ͱ */ -#define USBD_STATCTRLOV (USBD_BASE+0X0C8) /* ¼ͳƼĴ */ -#define USBD_TXLENGTH (USBD_BASE+0X0CC) /* ¼ÿIN */ -#define USBD_RXLENGTH (USBD_BASE+0X0D0) /* ¼OUT */ -#define USBD_RESUME (USBD_BASE+0X0D4) /* USBѼĴ */ -#define USBD_READFLAG (USBD_BASE+0X0D8) /* 첽״̬Ĵ־ */ -#define USBD_RECEIVETYPE (USBD_BASE+0X0DC) /* ״̬Ĵ */ -#define USBD_APPLOCK (USBD_BASE+0X0E0) /* źżĴ */ -#define USBD_EP0OUTADDR (USBD_BASE+0X100) /* ˵0˵źͷ */ -#define USBD_EP0OUTBMATTR (USBD_BASE+0X104) /* ˵0ͼĴ */ -#define USBD_EP0OUTMAXPKTSIZE (USBD_BASE+0X108) /* ˵0ߴĴ */ -#define USBD_EP0OUTIFNUM (USBD_BASE+0X10C) /* ˵0ӿںżĴ */ -#define USBD_EP0OUTSTAT (USBD_BASE+0X110) /* ˵0״̬Ĵ */ -#define USBD_EP0OUTBMREQTYPE (USBD_BASE+0X114) /* ˵0 SETUP */ -#define USBD_EP0OUTBREQUEST (USBD_BASE+0X118) /* ˵0 SETUP */ -#define USBD_EP0OUTWVALUE (USBD_BASE+0X11C) /* ˵0 SETUPֵ */ -#define USBD_EP0OUTWINDEX (USBD_BASE+0X120) /* ˵0 SETUP */ -#define USBD_EP0OUTWLENGTH (USBD_BASE+0X120) /* ˵0 SETUP󳤶 */ -#define USBD_EP0OUTSYNCHFRAME (USBD_BASE+0X128) /* ˵0ͬ֡ */ -#define USBD_EP1OUTADDR (USBD_BASE+0X12C) /* ˵1˵źͷ */ -#define USBD_EP1OUTBMATTR (USBD_BASE+0X130) /* ˵1ͼĴ */ -#define USBD_EP1OUTMAXPKTSIZE (USBD_BASE+0X134) /* ˵1ߴĴ */ -#define USBD_EP1OUTIFNUM (USBD_BASE+0X138) /* ˵1ӿںżĴ */ -#define USBD_EP1OUTSTAT (USBD_BASE+0X13C) /* ˵1״̬Ĵ */ -#define USBD_EP1OUTBMREQTYPE (USBD_BASE+0X140) /* ˵1SETUP */ -#define USBD_EP1OUTBREQUEST (USBD_BASE+0X144) /* ˵1SETUP */ -#define USBD_EP1OUTWVALUE (USBD_BASE+0X148) /* ˵1SETUPֵ */ -#define USBD_EP1OUTWINDX (USBD_BASE+0X14C) /* ˵1SETUP */ -#define USBD_EP1OUTWLENGH (USBD_BASE+0X150) /* ˵1SETUP򳤶 */ -#define USBD_EP1OUTSYNCHFRAME (USBD_BASE+0X154) /* ˵1ͬ֡ */ -#define USBD_EP1INADDR (USBD_BASE+0X158) /* ˵1˵źͷ */ -#define USBD_EP1INBMATTR (USBD_BASE+0X15C) /* ˵1ͼĴ */ -#define USBD_EP1INMAXPKTSIZE (USBD_BASE+0X160) /* ˵1ߴĴ */ -#define USBD_EP1INIFNUM (USBD_BASE+0X164) /* ˵1ӿںżĴ */ -#define USBD_EP1INSTAT (USBD_BASE+0X168) /* ˵1״̬Ĵ */ -#define USBD_EP1INBMREQTYPE (USBD_BASE+0X16C) /* ˵1SETUP */ -#define USBD_EP1INBREQUEST (USBD_BASE+0X170) /* ˵1SETUP */ -#define USBD_EP1INWVALUE (USBD_BASE+0X174) /* ˵1SETUPֵ */ -#define USBD_EP1INWINDEX (USBD_BASE+0X178) /* ˵1SETUP */ -#define USBD_EP1INWLENGTH (USBD_BASE+0X17C) /* ˵1SETUP򳤶 */ -#define USBD_EP1INSYNCHFRAME (USBD_BASE+0X180) /* ˵1ͬ֡ */ -#define USBD_EP2OUTADDR (USBD_BASE+0X184) /* ˵2˵źͷ */ -#define USBD_EP2OUTBMATTR (USBD_BASE+0X188) /* ˵2ͼĴ */ -#define USBD_EP2OUTMAXPKTSIZE (USBD_BASE+0X18C) /* ˵2ߴĴ */ -#define USBD_EP2OUTIFNUM (USBD_BASE+0X190) /* ˵2ӿںżĴ */ -#define USBD_EP2OUTSTAT (USBD_BASE+0X194) /* ˵2״̬Ĵ */ -#define USBD_EP2OUTBMREQTYPE (USBD_BASE+0X198) /* ˵2SETUP */ -#define USBD_EP2OUTBREQUEST (USBD_BASE+0X19C) /* ˵2SETUP */ -#define USBD_EP2OUTWVALUE (USBD_BASE+0X1A0) /* ˵2SETUPֵ */ -#define USBD_EP2OUTWINDEX (USBD_BASE+0X1A4) /* ˵2SETUP */ -#define USBD_EP2OUTWLENGTH (USBD_BASE+0X1A8) /* ˵2SETUP򳤶 */ -#define USBD_EP2OUTSYNCHFRAME (USBD_BASE+0X1AC) /* ˵2ͬ֡ */ -#define USBD_EP2INADDR (USBD_BASE+0X1B0) /* ˵2˵źͷ */ -#define USBD_EP2INBMATTR (USBD_BASE+0X1B4) /* ˵2ͼĴ */ -#define USBD_EP2INMAXPKTSIZE (USBD_BASE+0X1B8) /* ˵2ߴĴ */ -#define USBD_EP2INIFNUM (USBD_BASE+0X1BC) /* ˵2ӿںżĴ */ -#define USBD_EP2INSTAT (USBD_BASE+0X1C0) /* ˵2״̬Ĵ */ -#define USBD_EP2INBMREQTYPE (USBD_BASE+0X1C4) /* ˵2SETUP */ -#define USBD_EP2INBREQUEST (USBD_BASE+0X1C8) /* ˵2SETUP */ -#define USBD_EP2INWVALUE (USBD_BASE+0X1CC) /* ˵2SETUPֵ */ -#define USBD_EP2INWINDEX (USBD_BASE+0X1D0) /* ˵2SETUP */ -#define USBD_EP2INWLENGTH (USBD_BASE+0X1D4) /* ˵2SETUP򳤶 */ -#define USBD_EP2INSYNCHFRAME (USBD_BASE+0X1D8) /* ˵2ͬ֡ */ -#define USBD_RXFIFO (USBD_BASE+0X200) /* FIFO */ -#define USBD_TXFIFO (USBD_BASE+0X300) /* FIFO */ +#define USBD_PROTOCOLINTR (USBD_BASE+0X000) /* USB协议中断寄存器 */ +#define USBD_INTRMASK (USBD_BASE+0X004) /* USB中断屏蔽寄存器 */ +#define USBD_INTRCTRL (USBD_BASE+0X008) /* USB中断类型控制寄存器 */ +#define USBD_EPINFO (USBD_BASE+0X00C) /* USB活动端点状态寄存器 */ +#define USBD_BCONFIGURATIONVALUE (USBD_BASE+0X010) /* SET_CCONFIGURATION记录 */ +#define USBD_BMATTRIBUTES (USBD_BASE+0X014) /* 当前配置属性寄存器 */ +#define USBD_DEVSPEED (USBD_BASE+0X018) /* 当前设备工作速度寄存器 */ +#define USBD_FRAMENUMBER (USBD_BASE+0X01C) /* 记录当前SOF包内的帧号 */ +#define USBD_EPTRANSACTIONS0 (USBD_BASE+0X020) /* 记录下次要求的传输次数 */ +#define USBD_EPTRANSACTIONS1 (USBD_BASE+0X024) /* 记录下次要求的传输次数 */ +#define USBD_APPIFUPDATE (USBD_BASE+0X028) /* 接口号快速更新寄存器 */ +#define USBD_CFGINTERFACE0 (USBD_BASE+0X02C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE1 (USBD_BASE+0X030) /* 记录接口的值 */ +#define USBD_CFGINTERFACE2 (USBD_BASE+0X034) /* 记录接口的值 */ +#define USBD_CFGINTERFACE3 (USBD_BASE+0X038) /* 记录接口的值 */ +#define USBD_CFGINTERFACE4 (USBD_BASE+0X03C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE5 (USBD_BASE+0X040) /* 记录接口的值 */ +#define USBD_CFGINTERFACE6 (USBD_BASE+0X044) /* 记录接口的值 */ +#define USBD_CFGINTERFACE7 (USBD_BASE+0X048) /* 记录接口的值 */ +#define USBD_CFGINTERFACE8 (USBD_BASE+0X04C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE9 (USBD_BASE+0X050) /* 记录接口的值 */ +#define USBD_CFGINTERFACE10 (USBD_BASE+0X054) /* 记录接口的值 */ +#define USBD_CFGINTERFACE11 (USBD_BASE+0X058) /* 记录接口的值 */ +#define USBD_CFGINTERFACE12 (USBD_BASE+0X05C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE13 (USBD_BASE+0X060) /* 记录接口的值 */ +#define USBD_CFGINTERFACE14 (USBD_BASE+0X064) /* 记录接口的值 */ +#define USBD_CFGINTERFACE15 (USBD_BASE+0X068) /* 记录接口的值 */ +#define USBD_CFGINTERFACE16 (USBD_BASE+0X06C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE17 (USBD_BASE+0X070) /* 记录接口的值 */ +#define USBD_CFGINTERFACE18 (USBD_BASE+0X074) /* 记录接口的值 */ +#define USBD_CFGINTERFACE19 (USBD_BASE+0X078) /* 记录接口的值 */ +#define USBD_CFGINTERFACE20 (USBD_BASE+0X07C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE21 (USBD_BASE+0X080) /* 记录接口的值 */ +#define USBD_CFGINTERFACE22 (USBD_BASE+0X084) /* 记录接口的值 */ +#define USBD_CFGINTERFACE23 (USBD_BASE+0X088) /* 记录接口的值 */ +#define USBD_CFGINTERFACE24 (USBD_BASE+0X08C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE25 (USBD_BASE+0X090) /* 记录接口的值 */ +#define USBD_CFGINTERFACE26 (USBD_BASE+0X094) /* 记录接口的值 */ +#define USBD_CFGINTERFACE27 (USBD_BASE+0X098) /* 记录接口的值 */ +#define USBD_CFGINTERFACE28 (USBD_BASE+0X09C) /* 记录接口的值 */ +#define USBD_CFGINTERFACE29 (USBD_BASE+0X0A0) /* 记录接口的值 */ +#define USBD_CFGINTERFACE30 (USBD_BASE+0X0A4) /* 记录接口的值 */ +#define USBD_CFGINTERFACE31 (USBD_BASE+0X0A8) /* 记录接口的值 */ +#define USBD_PKTPASSEDCTRL (USBD_BASE+0X0AC) /* 记录成功接收的包数 */ +#define USBD_PKTDROPPEDCTRL (USBD_BASE+0X0B0) /* 记录丢失的包数 */ +#define USBD_CRCERRCTRL (USBD_BASE+0X0B4) /* 记录CRC错误的包数 */ +#define USBD_BITSTUFFERRCTRL (USBD_BASE+0X0B8) /* 记录位填充错误的包数 */ +#define USBD_PIDERRCTRL (USBD_BASE+0X0BC) /* 记录PID错误的包数 */ +#define USBD_FRAMINGERRCTL (USBD_BASE+0X0C0) /* 记录有SYNC和EOP的包数 */ +#define USBD_TXPKTCTRL (USBD_BASE+0X0C4) /* 记录发送包的数量 */ +#define USBD_STATCTRLOV (USBD_BASE+0X0C8) /* 记录统计寄存器溢出情况 */ +#define USBD_TXLENGTH (USBD_BASE+0X0CC) /* 记录每次IN传输事务包长度 */ +#define USBD_RXLENGTH (USBD_BASE+0X0D0) /* 记录OUT传输事务包长度 */ +#define USBD_RESUME (USBD_BASE+0X0D4) /* USB唤醒寄存器 */ +#define USBD_READFLAG (USBD_BASE+0X0D8) /* 读异步状态寄存器标志 */ +#define USBD_RECEIVETYPE (USBD_BASE+0X0DC) /* 传输状态寄存器 */ +#define USBD_APPLOCK (USBD_BASE+0X0E0) /* 锁信号寄存器 */ +#define USBD_EP0OUTADDR (USBD_BASE+0X100) /* 端点0端点号和方向 */ +#define USBD_EP0OUTBMATTR (USBD_BASE+0X104) /* 端点0类型寄存器 */ +#define USBD_EP0OUTMAXPKTSIZE (USBD_BASE+0X108) /* 端点0最大包尺寸寄存器 */ +#define USBD_EP0OUTIFNUM (USBD_BASE+0X10C) /* 端点0接口号寄存器 */ +#define USBD_EP0OUTSTAT (USBD_BASE+0X110) /* 端点0状态寄存器 */ +#define USBD_EP0OUTBMREQTYPE (USBD_BASE+0X114) /* 端点0 SETUP事务请求类 */ +#define USBD_EP0OUTBREQUEST (USBD_BASE+0X118) /* 端点0 SETUP事务请求内容 */ +#define USBD_EP0OUTWVALUE (USBD_BASE+0X11C) /* 端点0 SETUP事务请求值 */ +#define USBD_EP0OUTWINDEX (USBD_BASE+0X120) /* 端点0 SETUP事务请求索引 */ +#define USBD_EP0OUTWLENGTH (USBD_BASE+0X120) /* 端点0 SETUP事务请求长度 */ +#define USBD_EP0OUTSYNCHFRAME (USBD_BASE+0X128) /* 端点0同步包帧号 */ +#define USBD_EP1OUTADDR (USBD_BASE+0X12C) /* 端点1输出端点号和方向 */ +#define USBD_EP1OUTBMATTR (USBD_BASE+0X130) /* 端点1输出类型寄存器 */ +#define USBD_EP1OUTMAXPKTSIZE (USBD_BASE+0X134) /* 端点1输出最大包尺寸寄存器 */ +#define USBD_EP1OUTIFNUM (USBD_BASE+0X138) /* 端点1输出接口号寄存器 */ +#define USBD_EP1OUTSTAT (USBD_BASE+0X13C) /* 端点1输出状态寄存器 */ +#define USBD_EP1OUTBMREQTYPE (USBD_BASE+0X140) /* 端点1输出SETUP事务请求类型 */ +#define USBD_EP1OUTBREQUEST (USBD_BASE+0X144) /* 端点1输出SETUP事务请求内容 */ +#define USBD_EP1OUTWVALUE (USBD_BASE+0X148) /* 端点1输出SETUP事务请求值 */ +#define USBD_EP1OUTWINDX (USBD_BASE+0X14C) /* 端点1输出SETUP事务请求索引 */ +#define USBD_EP1OUTWLENGH (USBD_BASE+0X150) /* 端点1输出SETUP事务请求域长度 */ +#define USBD_EP1OUTSYNCHFRAME (USBD_BASE+0X154) /* 端点1输出同步包帧号 */ +#define USBD_EP1INADDR (USBD_BASE+0X158) /* 端点1输入端点号和方向 */ +#define USBD_EP1INBMATTR (USBD_BASE+0X15C) /* 端点1输入类型寄存器 */ +#define USBD_EP1INMAXPKTSIZE (USBD_BASE+0X160) /* 端点1输入最大包尺寸寄存器 */ +#define USBD_EP1INIFNUM (USBD_BASE+0X164) /* 端点1输入接口号寄存器 */ +#define USBD_EP1INSTAT (USBD_BASE+0X168) /* 端点1输入状态寄存器 */ +#define USBD_EP1INBMREQTYPE (USBD_BASE+0X16C) /* 端点1输入SETUP事务请求类型 */ +#define USBD_EP1INBREQUEST (USBD_BASE+0X170) /* 端点1输入SETUP事务请求内容 */ +#define USBD_EP1INWVALUE (USBD_BASE+0X174) /* 端点1输入SETUP事务请求值 */ +#define USBD_EP1INWINDEX (USBD_BASE+0X178) /* 端点1输入SETUP事务请求索引 */ +#define USBD_EP1INWLENGTH (USBD_BASE+0X17C) /* 端点1输入SETUP事务请求域长度 */ +#define USBD_EP1INSYNCHFRAME (USBD_BASE+0X180) /* 端点1输入同步包帧号 */ +#define USBD_EP2OUTADDR (USBD_BASE+0X184) /* 端点2输出端点号和方向 */ +#define USBD_EP2OUTBMATTR (USBD_BASE+0X188) /* 端点2输出类型寄存器 */ +#define USBD_EP2OUTMAXPKTSIZE (USBD_BASE+0X18C) /* 端点2输出最大包尺寸寄存器 */ +#define USBD_EP2OUTIFNUM (USBD_BASE+0X190) /* 端点2输出接口号寄存器 */ +#define USBD_EP2OUTSTAT (USBD_BASE+0X194) /* 端点2输出状态寄存器 */ +#define USBD_EP2OUTBMREQTYPE (USBD_BASE+0X198) /* 端点2输出SETUP事务请求类型 */ +#define USBD_EP2OUTBREQUEST (USBD_BASE+0X19C) /* 端点2输出SETUP事务请求内容 */ +#define USBD_EP2OUTWVALUE (USBD_BASE+0X1A0) /* 端点2输出SETUP事务请求值 */ +#define USBD_EP2OUTWINDEX (USBD_BASE+0X1A4) /* 端点2输出SETUP事务请求索引 */ +#define USBD_EP2OUTWLENGTH (USBD_BASE+0X1A8) /* 端点2输出SETUP事务请求域长度 */ +#define USBD_EP2OUTSYNCHFRAME (USBD_BASE+0X1AC) /* 端点2输出同步包帧号 */ +#define USBD_EP2INADDR (USBD_BASE+0X1B0) /* 端点2输入端点号和方向 */ +#define USBD_EP2INBMATTR (USBD_BASE+0X1B4) /* 端点2输入类型寄存器 */ +#define USBD_EP2INMAXPKTSIZE (USBD_BASE+0X1B8) /* 端点2输入最大包尺寸寄存器 */ +#define USBD_EP2INIFNUM (USBD_BASE+0X1BC) /* 端点2输入接口号寄存器 */ +#define USBD_EP2INSTAT (USBD_BASE+0X1C0) /* 端点2输入状态寄存器 */ +#define USBD_EP2INBMREQTYPE (USBD_BASE+0X1C4) /* 端点2输入SETUP事务请求类型 */ +#define USBD_EP2INBREQUEST (USBD_BASE+0X1C8) /* 端点2输入SETUP事务请求内容 */ +#define USBD_EP2INWVALUE (USBD_BASE+0X1CC) /* 端点2输入SETUP事务请求值 */ +#define USBD_EP2INWINDEX (USBD_BASE+0X1D0) /* 端点2输入SETUP事务请求索引 */ +#define USBD_EP2INWLENGTH (USBD_BASE+0X1D4) /* 端点2输入SETUP事务请求域长度 */ +#define USBD_EP2INSYNCHFRAME (USBD_BASE+0X1D8) /* 端点2输入同步包帧号 */ +#define USBD_RXFIFO (USBD_BASE+0X200) /* 接受FIFO */ +#define USBD_TXFIFO (USBD_BASE+0X300) /* 发送FIFO */ /* - * GPIOģ - * ַ: 0x1000F000 + * GPIO模块 + * 基址: 0x1000F000 */ -#define GPIO_DBCLK_DIV (GPIO_BASE+0X000) /* ȥë̲ʱӷƵüĴ */ -#define GPIO_PORTA_DIR (GPIO_BASE+0X004) /* A˿üĴ */ -#define GPIO_PORTA_SEL (GPIO_BASE+0X008) /* A˿ͨ;ѡüĴ */ -#define GPIO_PORTA_INCTL (GPIO_BASE+0X00C) /* A˿ͨ;ʱüĴ */ -#define GPIO_PORTA_INTRCTL (GPIO_BASE+0X010) /* A˿жϴüĴ */ -#define GPIO_PORTA_INTRCLR (GPIO_BASE+0X014) /* A˿ͨ;жüĴ */ -#define GPIO_PORTA_DATA (GPIO_BASE+0X018) /* A˿ͨ;üĴ */ -#define GPIO_PORTB_DIR (GPIO_BASE+0X01C) /* B˿üĴ */ -#define GPIO_PORTB_SEL (GPIO_BASE+0X020) /* B˿ͨ;ѡüĴ */ -#define GPIO_PORTB_DATA (GPIO_BASE+0X024) /* B˿ͨ;üĴ */ -#define GPIO_PORTC_DIR (GPIO_BASE+0X028) /* C˿üĴ */ -#define GPIO_PORTC_SEL (GPIO_BASE+0X02C) /* C˿ͨ;ѡüĴ */ -#define GPIO_PORTC_DATA (GPIO_BASE+0X030) /* C˿ͨ;üĴ */ -#define GPIO_PORTD_DIR (GPIO_BASE+0X034) /* D˿üĴ */ -#define GPIO_PORTD_SEL (GPIO_BASE+0X038) /* D˿ͨ;ѡüĴ */ -#define GPIO_PORTD_SPECII (GPIO_BASE+0X03C) /* D˿ר;2ѡüĴ */ -#define GPIO_PORTD_DATA (GPIO_BASE+0X040) /* D˿ͨ;üĴ */ -#define GPIO_PORTE_DIR (GPIO_BASE+0X044) /* E˿üĴ */ -#define GPIO_PORTE_SEL (GPIO_BASE+0X048) /* E˿ͨ;ѡüĴ */ -#define GPIO_PORTE_DATA (GPIO_BASE+0X04C) /* E˿ͨ;üĴ */ -#define GPIO_PORTF_DIR (GPIO_BASE+0X050) /* F˿üĴ */ -#define GPIO_PORTF_SEL (GPIO_BASE+0X054) /* F˿ͨ;ѡüĴ */ -#define GPIO_PORTF_INCTL (GPIO_BASE+0X058) /* F˿ͨ;ʱüĴ */ -#define GPIO_PORTF_INTRCTL (GPIO_BASE+0X05C) /* F˿жϴüĴ */ -#define GPIO_PORTF_INTRCLR (GPIO_BASE+0X060) /* F˿ͨ;жüĴ */ -#define GPIO_PORTF_DATA (GPIO_BASE+0X064) /* F˿ͨ;üĴ */ -#define GPIO_PORTG_DIR (GPIO_BASE+0X068) /* G˿üĴ */ -#define GPIO_PORTG_SEL (GPIO_BASE+0X06C) /* G˿ͨ;ѡüĴ */ -#define GPIO_PORTG_DATA (GPIO_BASE+0X070) /* G˿ͨ;üĴ */ -#define GPIO_PORTH_DIR (GPIO_BASE+0X07C) /* H˿üĴ */ -#define GPIO_PORTH_SEL (GPIO_BASE+0X078) /* H˿ͨ;ѡüĴ */ -#define GPIO_PORTH_DATA (GPIO_BASE+0X07C) /* H˿ͨ;üĴ */ -#define GPIO_PORTI_DIR (GPIO_BASE+0X080) /* I˿üĴ */ -#define GPIO_PORTI_SEL (GPIO_BASE+0X084) /* I˿ͨ;ѡüĴ */ -#define GPIO_PORTI_DATA (GPIO_BASE+0X088) /* I˿ͨ;üĴ */ +#define GPIO_DBCLK_DIV (GPIO_BASE+0X000) /* 去毛刺采用时钟分频比配置寄存器 */ +#define GPIO_PORTA_DIR (GPIO_BASE+0X004) /* A组端口输入输出方向配置寄存器 */ +#define GPIO_PORTA_SEL (GPIO_BASE+0X008) /* A组端口通用用途选择配置寄存器 */ +#define GPIO_PORTA_INCTL (GPIO_BASE+0X00C) /* A组端口通用用途输入时类型配置寄存器 */ +#define GPIO_PORTA_INTRCTL (GPIO_BASE+0X010) /* A组端口中断触发类型配置寄存器 */ +#define GPIO_PORTA_INTRCLR (GPIO_BASE+0X014) /* A组端口通用用途中断清除配置寄存器 */ +#define GPIO_PORTA_DATA (GPIO_BASE+0X018) /* A组端口通用用途数据配置寄存器 */ +#define GPIO_PORTB_DIR (GPIO_BASE+0X01C) /* B组端口输入输出方向配置寄存器 */ +#define GPIO_PORTB_SEL (GPIO_BASE+0X020) /* B组端口通用用途选择配置寄存器 */ +#define GPIO_PORTB_DATA (GPIO_BASE+0X024) /* B组端口通用用途数据配置寄存器 */ +#define GPIO_PORTC_DIR (GPIO_BASE+0X028) /* C组端口输入输出方向配置寄存器 */ +#define GPIO_PORTC_SEL (GPIO_BASE+0X02C) /* C组端口通用用途选择配置寄存器 */ +#define GPIO_PORTC_DATA (GPIO_BASE+0X030) /* C组端口通用用途数据配置寄存器 */ +#define GPIO_PORTD_DIR (GPIO_BASE+0X034) /* D组端口输入输出方向配置寄存器 */ +#define GPIO_PORTD_SEL (GPIO_BASE+0X038) /* D组端口通用用途选择配置寄存器 */ +#define GPIO_PORTD_SPECII (GPIO_BASE+0X03C) /* D组端口专用用途2选择配置寄存器 */ +#define GPIO_PORTD_DATA (GPIO_BASE+0X040) /* D组端口通用用途数据配置寄存器 */ +#define GPIO_PORTE_DIR (GPIO_BASE+0X044) /* E组端口输入输出方向配置寄存器 */ +#define GPIO_PORTE_SEL (GPIO_BASE+0X048) /* E组端口通用用途选择配置寄存器 */ +#define GPIO_PORTE_DATA (GPIO_BASE+0X04C) /* E组端口通用用途数据配置寄存器 */ +#define GPIO_PORTF_DIR (GPIO_BASE+0X050) /* F组端口输入输出方向配置寄存器 */ +#define GPIO_PORTF_SEL (GPIO_BASE+0X054) /* F组端口通用用途选择配置寄存器 */ +#define GPIO_PORTF_INCTL (GPIO_BASE+0X058) /* F组端口通用用途输入时类型配置寄存器 */ +#define GPIO_PORTF_INTRCTL (GPIO_BASE+0X05C) /* F组端口中断触发类型配置寄存器 */ +#define GPIO_PORTF_INTRCLR (GPIO_BASE+0X060) /* F组端口通用用途中断清除配置寄存器 */ +#define GPIO_PORTF_DATA (GPIO_BASE+0X064) /* F组端口通用用途数据配置寄存器 */ +#define GPIO_PORTG_DIR (GPIO_BASE+0X068) /* G组端口输入输出方向配置寄存器 */ +#define GPIO_PORTG_SEL (GPIO_BASE+0X06C) /* G组端口通用用途选择配置寄存器 */ +#define GPIO_PORTG_DATA (GPIO_BASE+0X070) /* G组端口通用用途数据配置寄存器 */ +#define GPIO_PORTH_DIR (GPIO_BASE+0X07C) /* H组端口输入输出方向配置寄存器 */ +#define GPIO_PORTH_SEL (GPIO_BASE+0X078) /* H组端口通用用途选择配置寄存器 */ +#define GPIO_PORTH_DATA (GPIO_BASE+0X07C) /* H组端口通用用途数据配置寄存器 */ +#define GPIO_PORTI_DIR (GPIO_BASE+0X080) /* I组端口输入输出方向配置寄存器 */ +#define GPIO_PORTI_SEL (GPIO_BASE+0X084) /* I组端口通用用途选择配置寄存器 */ +#define GPIO_PORTI_DATA (GPIO_BASE+0X088) /* I组端口通用用途数据配置寄存器 */ /* - * EMIģ - * ַ: 0x11000000 + * EMI模块 + * 基址: 0x11000000 */ -#define EMI_CSACONF (EMI_BASE+0X000) /* CSAüĴ */ -#define EMI_CSBCONF (EMI_BASE+0X004) /* CSBüĴ */ -#define EMI_CSCCONF (EMI_BASE+0X008) /* CSCüĴ */ -#define EMI_CSDCONF (EMI_BASE+0X00C) /* CSDüĴ */ -#define EMI_CSECONF (EMI_BASE+0X010) /* CSEüĴ */ -#define EMI_CSFCONF (EMI_BASE+0X014) /* CSFüĴ */ -#define EMI_SDCONF1 (EMI_BASE+0X018) /* SDRAMʱüĴ1 */ -#define EMI_SDCONF2 (EMI_BASE+0X01C) /* SDRAMʱüĴ2, SDRAMʼõϢ */ -#define EMI_REMAPCONF (EMI_BASE+0X020) /* Ƭѡռ估ַӳREMAPüĴ */ -#define EMI_NAND_ADDR1 (EMI_BASE+0X100) /* NAND FLASHĵַĴ1 */ -#define EMI_NAND_COM (EMI_BASE+0X104) /* NAND FLASHĿּĴ */ -#define EMI_NAND_STA (EMI_BASE+0X10C) /* NAND FLASH״̬Ĵ */ -#define EMI_ERR_ADDR1 (EMI_BASE+0X110) /* ĵַĴ1 */ -#define EMI_ERR_ADDR2 (EMI_BASE+0X114) /* ĵַĴ2 */ -#define EMI_NAND_CONF1 (EMI_BASE+0X118) /* NAND FLASH1 */ -#define EMI_NAND_INTR (EMI_BASE+0X11C) /* NAND FLASHжϼĴ */ -#define EMI_NAND_ECC (EMI_BASE+0X120) /* ECCУɼĴ */ -#define EMI_NAND_IDLE (EMI_BASE+0X124) /* NAND FLASHмĴ */ -#define EMI_NAND_CONF2 (EMI_BASE+0X128) /* NAND FLASH2 */ -#define EMI_NAND_ADDR2 (EMI_BASE+0X12C) /* NAND FLASHĵַĴ2 */ -#define EMI_NAND_DATA (EMI_BASE+0X200) /* NAND FLASHݼĴ */ +#define EMI_CSACONF (EMI_BASE+0X000) /* CSA参数配置寄存器 */ +#define EMI_CSBCONF (EMI_BASE+0X004) /* CSB参数配置寄存器 */ +#define EMI_CSCCONF (EMI_BASE+0X008) /* CSC参数配置寄存器 */ +#define EMI_CSDCONF (EMI_BASE+0X00C) /* CSD参数配置寄存器 */ +#define EMI_CSECONF (EMI_BASE+0X010) /* CSE参数配置寄存器 */ +#define EMI_CSFCONF (EMI_BASE+0X014) /* CSF参数配置寄存器 */ +#define EMI_SDCONF1 (EMI_BASE+0X018) /* SDRAM时序配置寄存器1 */ +#define EMI_SDCONF2 (EMI_BASE+0X01C) /* SDRAM时序配置寄存器2, SDRAM初始化用到的配置信息 */ +#define EMI_REMAPCONF (EMI_BASE+0X020) /* 片选空间及地址映射REMAP配置寄存器 */ +#define EMI_NAND_ADDR1 (EMI_BASE+0X100) /* NAND FLASH的地址寄存器1 */ +#define EMI_NAND_COM (EMI_BASE+0X104) /* NAND FLASH的控制字寄存器 */ +#define EMI_NAND_STA (EMI_BASE+0X10C) /* NAND FLASH的状态寄存器 */ +#define EMI_ERR_ADDR1 (EMI_BASE+0X110) /* 读操作出错的地址寄存器1 */ +#define EMI_ERR_ADDR2 (EMI_BASE+0X114) /* 读操作出错的地址寄存器2 */ +#define EMI_NAND_CONF1 (EMI_BASE+0X118) /* NAND FLASH的配置器存器1 */ +#define EMI_NAND_INTR (EMI_BASE+0X11C) /* NAND FLASH中断寄存器 */ +#define EMI_NAND_ECC (EMI_BASE+0X120) /* ECC校验完成寄存器 */ +#define EMI_NAND_IDLE (EMI_BASE+0X124) /* NAND FLASH空闲寄存器 */ +#define EMI_NAND_CONF2 (EMI_BASE+0X128) /* NAND FLASH的配置器存器2 */ +#define EMI_NAND_ADDR2 (EMI_BASE+0X12C) /* NAND FLASH的地址寄存器2 */ +#define EMI_NAND_DATA (EMI_BASE+0X200) /* NAND FLASH的数据寄存器 */ /* - * DMACģ - * ַ: 0x11001000 + * DMAC模块 + * 基址: 0x11001000 */ -#define DMAC_INTSTATUS (DMAC_BASE+0X020) /* DAMCж״̬Ĵ */ -#define DMAC_INTTCSTATUS (DMAC_BASE+0X050) /* DMACж״̬Ĵ */ -#define DMAC_INTTCCLEAR (DMAC_BASE+0X060) /* DMACж״̬Ĵ */ -#define DMAC_INTERRORSTATUS (DMAC_BASE+0X080) /* DMACж״̬Ĵ */ -#define DMAC_INTINTERRCLR (DMAC_BASE+0X090) /* DMACж״̬Ĵ */ -#define DMAC_ENBLDCHNS (DMAC_BASE+0X0B0) /* DMACͨʹ״̬Ĵ */ -#define DMAC_C0SRCADDR (DMAC_BASE+0X000) /* DMAC0ԴַĴ */ -#define DMAC_C0DESTADD (DMAC_BASE+0X004) /* DMAC0ĿĵַĴ */ -#define DMAC_C0CONTROL (DMAC_BASE+0X00C) /* DMAC0ƼĴ */ -#define DMAC_C0CONFIGURATION (DMAC_BASE+0X010) /* DMAC0üĴ */ -#define DMAC_C0DESCRIPTOR (DMAC_BASE+0X01C) /* DMAC0ַĴ */ -#define DMAC_C1SRCADDR (DMAC_BASE+0X100) /* DMAC1ԴַĴ */ -#define DMAC_C1DESTADDR (DMAC_BASE+0X104) /* DMAC1ĿĵַĴ */ -#define DMAC_C1CONTROL (DMAC_BASE+0X10C) /* DMAC1ƼĴ */ -#define DMAC_C1CONFIGURATION (DMAC_BASE+0X110) /* DMAC1üĴ */ -#define DMAC_C1DESCRIPTOR (DMAC_BASE+0X114) /* DMAC1ַĴ */ -#define DMAC_C2SRCADDR (DMAC_BASE+0X200) /* DMAC2ԴַĴ */ -#define DMAC_C2DESTADDR (DMAC_BASE+0X204) /* DMAC2ĿĵַĴ */ -#define DMAC_C2CONTROL (DMAC_BASE+0X20C) /* DMAC2ƼĴ */ -#define DMAC_C2CONFIGURATION (DMAC_BASE+0X210) /* DMAC2üĴ */ -#define DMAC_C2DESCRIPTOR (DMAC_BASE+0X214) /* DMAC2ַĴ */ -#define DMAC_C3SRCADDR (DMAC_BASE+0X300) /* DMAC3ԴַĴ */ -#define DMAC_C3DESTADDR (DMAC_BASE+0X304) /* DMAC3ĿĵַĴ */ -#define DMAC_C3CONTROL (DMAC_BASE+0X30C) /* DMAC3ƼĴ */ -#define DMAC_C3CONFIGURATION (DMAC_BASE+0X310) /* DMAC3üĴ */ -#define DMAC_C3DESCRIPTOR (DMAC_BASE+0X314) /* DMAC3ַĴ */ -#define DMAC_C4SRCADDR (DMAC_BASE+0X400) /* DMAC4ԴַĴ */ -#define DMAC_C4DESTADDR (DMAC_BASE+0X404) /* DMAC4ĿĵַĴ */ -#define DMAC_C4CONTROL (DMAC_BASE+0X40C) /* DMAC4ƼĴ */ -#define DMAC_C4CONFIGURATION (DMAC_BASE+0X410) /* DMAC4üĴ */ -#define DMAC_C4DESCRIPTOR (DMAC_BASE+0X414) /* DMAC4ַĴ */ -#define DMAC_C5SRCADDR (DMAC_BASE+0X500) /* DMAC5ԴַĴ */ -#define DMAC_C5DESTADDR (DMAC_BASE+0X504) /* DMAC5ĿĵַĴ */ -#define DMAC_C5CONTROL (DMAC_BASE+0X50C) /* DMAC5ƼĴ */ -#define DMAC_C5CONFIGURATION (DMAC_BASE+0X510) /* DMAC5üĴ */ -#define DMAC_C5DESCRIPTOR (DMAC_BASE+0X514) /* DMAC5ַĴ */ +#define DMAC_INTSTATUS (DMAC_BASE+0X020) /* DAMC中断状态寄存器。 */ +#define DMAC_INTTCSTATUS (DMAC_BASE+0X050) /* DMAC传输完成中断状态寄存器 */ +#define DMAC_INTTCCLEAR (DMAC_BASE+0X060) /* DMAC传输完成中断状态清除寄存器 */ +#define DMAC_INTERRORSTATUS (DMAC_BASE+0X080) /* DMAC传输错误中断状态寄存器 */ +#define DMAC_INTINTERRCLR (DMAC_BASE+0X090) /* DMAC传输错误中断状态清除寄存器 */ +#define DMAC_ENBLDCHNS (DMAC_BASE+0X0B0) /* DMAC通道使能状态寄存器 */ +#define DMAC_C0SRCADDR (DMAC_BASE+0X000) /* DMAC道0源地址寄存器 */ +#define DMAC_C0DESTADD (DMAC_BASE+0X004) /* DMAC道0目的地址寄存器 */ +#define DMAC_C0CONTROL (DMAC_BASE+0X00C) /* DMAC道0控制寄存器 */ +#define DMAC_C0CONFIGURATION (DMAC_BASE+0X010) /* DMAC道0配置寄存器 */ +#define DMAC_C0DESCRIPTOR (DMAC_BASE+0X01C) /* DMAC道0链表地址寄存器 */ +#define DMAC_C1SRCADDR (DMAC_BASE+0X100) /* DMAC道1源地址寄存器 */ +#define DMAC_C1DESTADDR (DMAC_BASE+0X104) /* DMAC道1目的地址寄存器 */ +#define DMAC_C1CONTROL (DMAC_BASE+0X10C) /* DMAC道1控制寄存器 */ +#define DMAC_C1CONFIGURATION (DMAC_BASE+0X110) /* DMAC道1配置寄存器 */ +#define DMAC_C1DESCRIPTOR (DMAC_BASE+0X114) /* DMAC道1链表地址寄存器 */ +#define DMAC_C2SRCADDR (DMAC_BASE+0X200) /* DMAC道2源地址寄存器 */ +#define DMAC_C2DESTADDR (DMAC_BASE+0X204) /* DMAC道2目的地址寄存器 */ +#define DMAC_C2CONTROL (DMAC_BASE+0X20C) /* DMAC道2控制寄存器 */ +#define DMAC_C2CONFIGURATION (DMAC_BASE+0X210) /* DMAC道2配置寄存器 */ +#define DMAC_C2DESCRIPTOR (DMAC_BASE+0X214) /* DMAC道2链表地址寄存器 */ +#define DMAC_C3SRCADDR (DMAC_BASE+0X300) /* DMAC道3源地址寄存器 */ +#define DMAC_C3DESTADDR (DMAC_BASE+0X304) /* DMAC道3目的地址寄存器 */ +#define DMAC_C3CONTROL (DMAC_BASE+0X30C) /* DMAC道3控制寄存器 */ +#define DMAC_C3CONFIGURATION (DMAC_BASE+0X310) /* DMAC道3配置寄存器 */ +#define DMAC_C3DESCRIPTOR (DMAC_BASE+0X314) /* DMAC道3链表地址寄存器 */ +#define DMAC_C4SRCADDR (DMAC_BASE+0X400) /* DMAC道4源地址寄存器 */ +#define DMAC_C4DESTADDR (DMAC_BASE+0X404) /* DMAC道4目的地址寄存器 */ +#define DMAC_C4CONTROL (DMAC_BASE+0X40C) /* DMAC道4控制寄存器 */ +#define DMAC_C4CONFIGURATION (DMAC_BASE+0X410) /* DMAC道4配置寄存器 */ +#define DMAC_C4DESCRIPTOR (DMAC_BASE+0X414) /* DMAC道4链表地址寄存器 */ +#define DMAC_C5SRCADDR (DMAC_BASE+0X500) /* DMAC道5源地址寄存器 */ +#define DMAC_C5DESTADDR (DMAC_BASE+0X504) /* DMAC道5目的地址寄存器 */ +#define DMAC_C5CONTROL (DMAC_BASE+0X50C) /* DMAC道5控制寄存器 */ +#define DMAC_C5CONFIGURATION (DMAC_BASE+0X510) /* DMAC道5配置寄存器 */ +#define DMAC_C5DESCRIPTOR (DMAC_BASE+0X514) /* DMAC道5链表地址寄存器 */ /* - * LCDCģ - * ַ: 0x11002000 + * LCDC模块 + * 基址: 0x11002000 */ -#define LCDC_SSA (LCDC_BASE+0X000) /* ĻʼַĴ */ -#define LCDC_SIZE (LCDC_BASE+0X004) /* ĻߴĴ */ -#define LCDC_PCR (LCDC_BASE+0X008) /* üĴ */ -#define LCDC_HCR (LCDC_BASE+0X00C) /* ˮƽüĴ */ -#define LCDC_VCR (LCDC_BASE+0X010) /* ֱüĴ */ -#define LCDC_PWMR (LCDC_BASE+0X014) /* PWMԱȶȿƼĴ */ -#define LCDC_LECR (LCDC_BASE+0X018) /* ʹܿƼĴ */ -#define LCDC_DMACR (LCDC_BASE+0X01C) /* DMAƼĴ */ -#define LCDC_LCDISREN (LCDC_BASE+0X020) /* жʹܼĴ */ -#define LCDC_LCDISR (LCDC_BASE+0X024) /* ж״̬Ĵ */ -#define LCDC_LGPMR (LCDC_BASE+0X040) /* ҶȵɫӳĴ (1632bitĴ) */ +#define LCDC_SSA (LCDC_BASE+0X000) /* 屏幕起始地址寄存器 */ +#define LCDC_SIZE (LCDC_BASE+0X004) /* 屏幕尺寸寄存器 */ +#define LCDC_PCR (LCDC_BASE+0X008) /* 面板配置寄存器 */ +#define LCDC_HCR (LCDC_BASE+0X00C) /* 水平配置寄存器 */ +#define LCDC_VCR (LCDC_BASE+0X010) /* 垂直配置寄存器 */ +#define LCDC_PWMR (LCDC_BASE+0X014) /* PWM对比度控制寄存器 */ +#define LCDC_LECR (LCDC_BASE+0X018) /* 使能控制寄存器 */ +#define LCDC_DMACR (LCDC_BASE+0X01C) /* DMA控制寄存器 */ +#define LCDC_LCDISREN (LCDC_BASE+0X020) /* 中断使能寄存器 */ +#define LCDC_LCDISR (LCDC_BASE+0X024) /* 中断状态寄存器 */ +#define LCDC_LGPMR (LCDC_BASE+0X040) /* 灰度调色映射寄存器组 (16个32bit寄存器) */ /* - * MACģ - * ַ: 0x11003000 + * MAC模块 + * 基址: 0x11003000 */ -#define MAC_CTRL (MAC_BASE+0X000) /* MACƼĴ */ -#define MAC_INTSRC (MAC_BASE+0X004) /* MACжԴĴ */ -#define MAC_INTMASK (MAC_BASE+0X008) /* MACжμĴ */ -#define MAC_IPGT (MAC_BASE+0X00C) /* ֡Ĵ */ -#define MAC_IPGR1 (MAC_BASE+0X010) /* ȴڼĴ */ -#define MAC_IPGR2 (MAC_BASE+0X014) /* ȴڼĴ */ -#define MAC_PACKETLEN (MAC_BASE+0X018) /* ֡ȼĴ */ -#define MAC_COLLCONF (MAC_BASE+0X01C) /* ײطĴ */ -#define MAC_TXBD_NUM (MAC_BASE+0X020) /* Ĵ */ -#define MAC_FLOWCTRL (MAC_BASE+0X024) /* ؼĴ */ -#define MAC_MII_CTRL (MAC_BASE+0X028) /* PHYƼĴ */ -#define MAC_MII_CMD (MAC_BASE+0X02C) /* PHYĴ */ -#define MAC_MII_ADDRESS (MAC_BASE+0X030) /* PHYַĴ */ -#define MAC_MII_TXDATA (MAC_BASE+0X034) /* PHYдݼĴ */ -#define MAC_MII_RXDATA (MAC_BASE+0X038) /* PHYݼĴ */ -#define MAC_MII_STATUS (MAC_BASE+0X03C) /* PHY״̬Ĵ */ -#define MAC_ADDR0 (MAC_BASE+0X040) /* MACַĴ */ -#define MAC_ADDR1 (MAC_BASE+0X044) /* MACַĴ */ -#define MAC_HASH0 (MAC_BASE+0X048) /* MAC HASHĴ */ -#define MAC_HASH1 (MAC_BASE+0X04C) /* MAC HASHĴ */ -#define MAC_TXPAUSE (MAC_BASE+0X050) /* MAC֡Ĵ */ +#define MAC_CTRL (MAC_BASE+0X000) /* MAC控制寄存器 */ +#define MAC_INTSRC (MAC_BASE+0X004) /* MAC中断源寄存器 */ +#define MAC_INTMASK (MAC_BASE+0X008) /* MAC中断屏蔽寄存器 */ +#define MAC_IPGT (MAC_BASE+0X00C) /* 连续帧间隔寄存器 */ +#define MAC_IPGR1 (MAC_BASE+0X010) /* 等待窗口寄存器 */ +#define MAC_IPGR2 (MAC_BASE+0X014) /* 等待窗口寄存器 */ +#define MAC_PACKETLEN (MAC_BASE+0X018) /* 帧长度寄存器 */ +#define MAC_COLLCONF (MAC_BASE+0X01C) /* 碰撞重发寄存器 */ +#define MAC_TXBD_NUM (MAC_BASE+0X020) /* 发送描述符寄存器 */ +#define MAC_FLOWCTRL (MAC_BASE+0X024) /* 流控寄存器 */ +#define MAC_MII_CTRL (MAC_BASE+0X028) /* PHY控制寄存器 */ +#define MAC_MII_CMD (MAC_BASE+0X02C) /* PHY命令寄存器 */ +#define MAC_MII_ADDRESS (MAC_BASE+0X030) /* PHY地址寄存器 */ +#define MAC_MII_TXDATA (MAC_BASE+0X034) /* PHY写数据寄存器 */ +#define MAC_MII_RXDATA (MAC_BASE+0X038) /* PHY读数据寄存器 */ +#define MAC_MII_STATUS (MAC_BASE+0X03C) /* PHY状态寄存器 */ +#define MAC_ADDR0 (MAC_BASE+0X040) /* MAC地址寄存器 */ +#define MAC_ADDR1 (MAC_BASE+0X044) /* MAC地址寄存器 */ +#define MAC_HASH0 (MAC_BASE+0X048) /* MAC HASH寄存器 */ +#define MAC_HASH1 (MAC_BASE+0X04C) /* MAC HASH寄存器 */ +#define MAC_TXPAUSE (MAC_BASE+0X050) /* MAC控制帧寄存器 */ #define MAC_TX_BD (MAC_BASE+0X400) #define MAC_RX_BD (MAC_BASE+0X600) @@ -679,7 +687,7 @@ /* ************************************** - * PMU ģʱ + * PMU 模块时钟 ************************************** */ @@ -740,21 +748,21 @@ /*Sereral useful macros*/ -#define set_plevel(plevel) *(RP)INTC_IPLR = plevel //ͨжϵȼޣֻȼڴֵжϲͨ -#define set_int_force(intnum) *(RP)INTC_IFR = (1 << intnum) //1ǿƸλӦжԴжź -#define enable_irq(intnum) *(RP)INTC_IER |= (1 << intnum) //1жԴIRQ жź -#define disable_irq( intnum) *(RP)INTC_IER &= ~(1<< intnum) //0󣬲жԴIRQ жź -#define mask_irq(intnum) *(RP)INTC_IMR |= (1 << intnum) //1ζӦIRQ жź -#define unmask_irq(intnum) *(RP)INTC_IMR &= ~(1 << intnum) //0ͨӦIRQ жź -#define mask_all_irq() *(RP)INTC_IMR = 0xFFFFFFFF //ζӦIRQ жź -#define unmask_all_irq() *(RP)INTC_IMR = 0x00000000 //ͨӦIRQ жź -#define enable_all_irq() *(RP)INTC_IER = 0XFFFFFFFF //жԴIRQ жź -#define disable_all_irq() *(RP)INTC_IER = 0X00000000 //жԴIRQ жź +#define set_plevel(plevel) *(RP)INTC_IPLR = plevel //设置普通中断的优先级门限,只有优先级大于此值的中断才能通过 +#define set_int_force(intnum) *(RP)INTC_IFR = (1 << intnum) //置1后,软件强制该位对应的中断源发出中断信号 +#define enable_irq(intnum) *(RP)INTC_IER |= (1 << intnum) //置1后,允许中断源的IRQ 中断信号 +#define disable_irq( intnum) *(RP)INTC_IER &= ~(1<< intnum) //置0后,不允许中断源的IRQ 中断信号 +#define mask_irq(intnum) *(RP)INTC_IMR |= (1 << intnum) //置1后,屏蔽对应的IRQ 中断信号 +#define unmask_irq(intnum) *(RP)INTC_IMR &= ~(1 << intnum) //置0后,通过对应的IRQ 中断信号 +#define mask_all_irq() *(RP)INTC_IMR = 0xFFFFFFFF //屏蔽对应的IRQ 中断信号 +#define unmask_all_irq() *(RP)INTC_IMR = 0x00000000 //通过对应的IRQ 中断信号 +#define enable_all_irq() *(RP)INTC_IER = 0XFFFFFFFF //允许中断源的IRQ 中断信号 +#define disable_all_irq() *(RP)INTC_IER = 0X00000000 //不允许中断源的IRQ 中断信号 #define InitInt() do{mask_all_irq(); enable_all_irq();}while(0) /* ************************************** - * гõTypedef + * 所有程序中用到的Typedef ************************************** */ diff --git a/libcpu/arm/sep4020/serial.c b/libcpu/arm/sep4020/serial.c index 3f484ee92db2e70cd4d704fdd43ae222b3100b4e..713959238ad42f99fec338ae1a147085b23439e1 100644 --- a/libcpu/arm/sep4020/serial.c +++ b/libcpu/arm/sep4020/serial.c @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/sep4020/serial.h b/libcpu/arm/sep4020/serial.h index f0357aacfb5f070b3c7cc3f16b1af3295ac963ef..69e7df248c61c8925f796c6e07c27b1c96df7efd 100644 --- a/libcpu/arm/sep4020/serial.h +++ b/libcpu/arm/sep4020/serial.h @@ -1,11 +1,7 @@ /* - * File : serial.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/sep4020/stack.c b/libcpu/arm/sep4020/stack.c index 318b435f8e6f106702d312829746ee8b4497e69d..b2205c76d29c3a16e8e532b0e63682d35a8ac42f 100644 --- a/libcpu/arm/sep4020/stack.c +++ b/libcpu/arm/sep4020/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/sep4020/trap.c b/libcpu/arm/sep4020/trap.c index 9c18ced698255d1c0b589ea9718deafe17cec073..c551b2246c36138ae6b2b55ddf68c164fc938dfb 100644 --- a/libcpu/arm/sep4020/trap.c +++ b/libcpu/arm/sep4020/trap.c @@ -1,11 +1,7 @@ /* - * File : trap.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2006, RT-Thread Development 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://openlab.rt-thread.com/license/LICENSE + * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes diff --git a/libcpu/arm/zynq7000/cp15_gcc.S b/libcpu/arm/zynq7000/cp15_gcc.S index f1ed6492aad55f8f0deb769583e738dc79a8a6f2..0e3e60655c8963ac0023e48260641d52adb8a5e5 100644 --- a/libcpu/arm/zynq7000/cp15_gcc.S +++ b/libcpu/arm/zynq7000/cp15_gcc.S @@ -1,22 +1,7 @@ /* - * File : cp15_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team - * http://www.rt-thread.org + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/zynq7000/cpu.c b/libcpu/arm/zynq7000/cpu.c index 9853effe3ccb719e654ee46f5c9aab890ef0da1e..5f3a3e7b0296cfc55c1a9804b964fa53769cc381 100644 --- a/libcpu/arm/zynq7000/cpu.c +++ b/libcpu/arm/zynq7000/cpu.c @@ -1,11 +1,7 @@ /* - * File : cpu.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, 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 diff --git a/libcpu/arm/zynq7000/stack.c b/libcpu/arm/zynq7000/stack.c index 08dd4b4dac6f0b1575c9269d3560e5abcf0e4365..b38dd160f7864170eec054faf94ee42163464a40 100644 --- a/libcpu/arm/zynq7000/stack.c +++ b/libcpu/arm/zynq7000/stack.c @@ -1,11 +1,7 @@ /* - * File : stack.c - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development 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 diff --git a/libcpu/arm/zynq7000/start_gcc.S b/libcpu/arm/zynq7000/start_gcc.S index 41a7906b00db6ab71e9b6e5de6f37e86f1d0ccb2..6904c45587106c51daf718ed63e09e964990e83f 100644 --- a/libcpu/arm/zynq7000/start_gcc.S +++ b/libcpu/arm/zynq7000/start_gcc.S @@ -1,21 +1,7 @@ /* - * File : start_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/libcpu/arm/zynq7000/vector_gcc.S b/libcpu/arm/zynq7000/vector_gcc.S index 4a44a7395cbbf15e4fe45d39183c3bdc1fe3b072..60d3c6cf1d9083f312cf47465bd62c96d5fdc9bf 100644 --- a/libcpu/arm/zynq7000/vector_gcc.S +++ b/libcpu/arm/zynq7000/vector_gcc.S @@ -1,21 +1,7 @@ /* - * File : vector_gcc.S - * This file is part of RT-Thread RTOS - * COPYRIGHT (C) 2013, RT-Thread Development Team + * Copyright (c) 2006-2018, 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 diff --git a/src/mem.c b/src/mem.c index cb96ab9ee011db9610106157d354af76604d07b4..2fefb48b679117dfe6d716f8f9cade89bf29b670 100644 --- a/src/mem.c +++ b/src/mem.c @@ -261,11 +261,11 @@ void *rt_malloc(rt_size_t size) rt_size_t ptr, ptr2; struct heap_mem *mem, *mem2; - RT_DEBUG_NOT_IN_INTERRUPT; - if (size == 0) return RT_NULL; + RT_DEBUG_NOT_IN_INTERRUPT; + if (size != RT_ALIGN(size, RT_ALIGN_SIZE)) RT_DEBUG_LOG(RT_DEBUG_MEM, ("malloc size %d, but align to %d\n", size, RT_ALIGN(size, RT_ALIGN_SIZE))); @@ -513,8 +513,6 @@ void *rt_calloc(rt_size_t count, rt_size_t size) { void *p; - RT_DEBUG_NOT_IN_INTERRUPT; - /* allocate 'count' objects of size 'size' */ p = rt_malloc(count * size); @@ -536,10 +534,11 @@ void rt_free(void *rmem) { struct heap_mem *mem; - RT_DEBUG_NOT_IN_INTERRUPT; - if (rmem == RT_NULL) return; + + RT_DEBUG_NOT_IN_INTERRUPT; + RT_ASSERT((((rt_uint32_t)rmem) & (RT_ALIGN_SIZE - 1)) == 0); RT_ASSERT((rt_uint8_t *)rmem >= (rt_uint8_t *)heap_ptr && (rt_uint8_t *)rmem < (rt_uint8_t *)heap_end);