From 7c425408b4335d7af2fefcfa51174735b98037ed Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 15 Oct 2018 01:35:07 +0800 Subject: [PATCH] [license] Change the license of libarm to Apache. --- libcpu/arm/AT91SAM7S/AT91SAM7S.h | 8 +- libcpu/arm/AT91SAM7S/context_gcc.S | 8 +- libcpu/arm/AT91SAM7S/cpu.c | 8 +- libcpu/arm/AT91SAM7S/interrupt.c | 8 +- libcpu/arm/AT91SAM7S/serial.c | 8 +- libcpu/arm/AT91SAM7S/serial.h | 8 + libcpu/arm/AT91SAM7S/stack.c | 8 +- libcpu/arm/AT91SAM7S/start_gcc.S | 8 +- libcpu/arm/AT91SAM7S/trap.c | 8 +- libcpu/arm/AT91SAM7X/context_gcc.S | 8 +- libcpu/arm/AT91SAM7X/cpu.c | 8 +- libcpu/arm/AT91SAM7X/interrupt.c | 8 +- libcpu/arm/AT91SAM7X/stack.c | 8 +- libcpu/arm/AT91SAM7X/start_gcc.S | 8 +- libcpu/arm/AT91SAM7X/trap.c | 8 +- libcpu/arm/am335x/am33xx.h | 8 + libcpu/arm/am335x/context_gcc.S | 18 +- libcpu/arm/am335x/cp15_gcc.S | 19 +- libcpu/arm/am335x/cp15_iar.s | 19 +- libcpu/arm/am335x/cpu.c | 8 +- libcpu/arm/am335x/interrupt.c | 8 +- libcpu/arm/am335x/interrupt.h | 8 +- libcpu/arm/am335x/mmu.c | 8 +- libcpu/arm/am335x/mmu.h | 21 +- libcpu/arm/am335x/stack.c | 8 +- libcpu/arm/am335x/start_gcc.S | 18 +- libcpu/arm/am335x/start_iar.s | 18 +- libcpu/arm/am335x/trap.c | 8 +- libcpu/arm/am335x/vector_gcc.S | 18 +- libcpu/arm/arm926/cpuport.c | 18 +- libcpu/arm/arm926/mmu.c | 18 +- libcpu/arm/arm926/mmu.h | 18 +- libcpu/arm/arm926/stack.c | 18 +- libcpu/arm/arm926/start_gcc.S | 20 +- libcpu/arm/arm926/trap.c | 18 +- libcpu/arm/armv6/arm_entry_gcc.S | 18 +- libcpu/arm/armv6/armv6.h | 18 +- libcpu/arm/armv6/context_gcc.S | 18 +- libcpu/arm/armv6/cpuport.c | 18 +- libcpu/arm/armv6/mmu.c | 18 +- libcpu/arm/armv6/mmu.h | 18 +- libcpu/arm/armv6/stack.c | 18 +- libcpu/arm/armv6/vfp.c | 18 +- libcpu/arm/armv6/vfp.h | 18 +- libcpu/arm/common/backtrace.c | 8 +- libcpu/arm/common/div0.c | 8 + libcpu/arm/common/divsi3.S | 8 + libcpu/arm/common/showmem.c | 8 +- libcpu/arm/cortex-a/armv7.h | 8 + libcpu/arm/cortex-a/context_gcc.S | 18 +- libcpu/arm/cortex-a/cp15.h | 8 + libcpu/arm/cortex-a/cp15_gcc.S | 19 +- libcpu/arm/cortex-a/cpu.c | 8 +- libcpu/arm/cortex-a/interrupt.c | 8 +- libcpu/arm/cortex-a/mmu.c | 8 +- libcpu/arm/cortex-a/pmu.c | 8 + libcpu/arm/cortex-a/pmu.h | 8 + libcpu/arm/cortex-a/stack.c | 8 +- libcpu/arm/cortex-a/start_gcc.S | 18 +- libcpu/arm/cortex-a/trap.c | 8 +- libcpu/arm/cortex-a/vector_gcc.S | 18 +- libcpu/arm/cortex-m0/context_gcc.S | 8 +- libcpu/arm/cortex-m0/cpuport.c | 8 +- libcpu/arm/cortex-m3/context_gcc.S | 8 +- libcpu/arm/cortex-m3/cpuport.c | 8 +- libcpu/arm/cortex-m4/context_gcc.S | 8 +- libcpu/arm/cortex-m7/context_gcc.S | 8 +- libcpu/arm/cortex-r4/armv7.h | 8 + libcpu/arm/cortex-r4/context_gcc.S | 8 +- libcpu/arm/cortex-r4/cpu.c | 8 +- libcpu/arm/cortex-r4/interrupt.c | 8 +- libcpu/arm/cortex-r4/stack.c | 8 +- libcpu/arm/cortex-r4/start_gcc.S | 8 + libcpu/arm/cortex-r4/trap.c | 8 +- libcpu/arm/cortex-r4/vector_gcc.S | 8 + libcpu/arm/dm36x/context_gcc.S | 18 +- libcpu/arm/dm36x/cpuport.c | 18 +- libcpu/arm/dm36x/mmu.c | 18 +- libcpu/arm/dm36x/mmu.h | 18 +- libcpu/arm/dm36x/stack.c | 18 +- libcpu/arm/lpc214x/context_gcc.S | 68 +- libcpu/arm/lpc214x/cpuport.c | 8 +- libcpu/arm/lpc214x/startup_gcc.S | 102 ++- libcpu/arm/lpc24xx/LPC24xx.h | 8 +- libcpu/arm/lpc24xx/context_gcc.S | 8 +- libcpu/arm/lpc24xx/cpu.c | 8 +- libcpu/arm/lpc24xx/interrupt.c | 8 +- libcpu/arm/lpc24xx/stack.c | 8 +- libcpu/arm/lpc24xx/start_gcc.S | 8 +- libcpu/arm/lpc24xx/start_rvds.S | 8 + libcpu/arm/lpc24xx/trap.c | 8 +- libcpu/arm/realview-a8-vmm/armv7.h | 8 + libcpu/arm/realview-a8-vmm/context_gcc.S | 18 +- libcpu/arm/realview-a8-vmm/cp15.h | 8 + libcpu/arm/realview-a8-vmm/cp15_gcc.S | 19 +- libcpu/arm/realview-a8-vmm/cpu.c | 8 +- libcpu/arm/realview-a8-vmm/gic.c | 8 +- libcpu/arm/realview-a8-vmm/gic.h | 8 +- libcpu/arm/realview-a8-vmm/interrupt.c | 8 +- libcpu/arm/realview-a8-vmm/interrupt.h | 8 +- libcpu/arm/realview-a8-vmm/mmu.c | 8 +- libcpu/arm/realview-a8-vmm/pmu.c | 8 + libcpu/arm/realview-a8-vmm/pmu.h | 8 + libcpu/arm/realview-a8-vmm/stack.c | 8 +- libcpu/arm/realview-a8-vmm/start_gcc.S | 18 +- libcpu/arm/realview-a8-vmm/trap.c | 8 +- libcpu/arm/realview-a8-vmm/vector_gcc.S | 18 +- libcpu/arm/s3c24x0/context_gcc.S | 8 +- libcpu/arm/s3c24x0/cpu.c | 8 +- libcpu/arm/s3c24x0/interrupt.c | 8 +- libcpu/arm/s3c24x0/mmu.c | 8 +- libcpu/arm/s3c24x0/rtc.c | 8 +- libcpu/arm/s3c24x0/rtc.h | 8 +- libcpu/arm/s3c24x0/s3c24x0.h | 8 +- libcpu/arm/s3c24x0/serial.c | 8 +- libcpu/arm/s3c24x0/serial.h | 8 + libcpu/arm/s3c24x0/stack.c | 8 +- libcpu/arm/s3c24x0/start_gcc.S | 8 +- libcpu/arm/s3c24x0/system_clock.c | 8 +- libcpu/arm/s3c24x0/trap.c | 8 +- libcpu/arm/s3c44b0/context_gcc.S | 8 +- libcpu/arm/s3c44b0/cpu.c | 8 +- libcpu/arm/s3c44b0/interrupt.c | 8 +- libcpu/arm/s3c44b0/s3c44b0.h | 8 +- libcpu/arm/s3c44b0/serial.c | 8 +- libcpu/arm/s3c44b0/stack.c | 8 +- libcpu/arm/s3c44b0/start_gcc.S | 8 +- libcpu/arm/s3c44b0/trap.c | 8 +- libcpu/arm/sep4020/clk.c | 8 +- libcpu/arm/sep4020/cpu.c | 8 +- libcpu/arm/sep4020/interrupt.c | 8 +- libcpu/arm/sep4020/sep4020.h | 1024 +++++++++++----------- libcpu/arm/sep4020/serial.c | 8 +- libcpu/arm/sep4020/serial.h | 8 +- libcpu/arm/sep4020/stack.c | 8 +- libcpu/arm/sep4020/trap.c | 8 +- libcpu/arm/zynq7000/cp15_gcc.S | 19 +- libcpu/arm/zynq7000/cpu.c | 8 +- libcpu/arm/zynq7000/stack.c | 8 +- libcpu/arm/zynq7000/start_gcc.S | 18 +- libcpu/arm/zynq7000/vector_gcc.S | 18 +- 141 files changed, 991 insertions(+), 1697 deletions(-) diff --git a/libcpu/arm/AT91SAM7S/AT91SAM7S.h b/libcpu/arm/AT91SAM7S/AT91SAM7S.h index 0c8d652c19..130f9074d1 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 e76093f8be..aa9bb160cd 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 57db2b7d24..8d28063eb1 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 fd84a72ea3..db9d31fe28 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 ede8683b31..adbe8609d6 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 401b0c3129..0937e92f6c 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 14acc54456..6f8bd13bf9 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 17695e31f2..2334f08e4f 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 18534cda8b..208e568950 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 e8f080359e..20b6f5e8cc 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 1905da812e..484c19d10a 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 71884f9f3f..62d487403d 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 d6711a5296..ef60b1a760 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 119f3cdbf3..d1b2334ac0 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 74d1cba445..1c1c351ff8 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 68ea4478d3..99a65ac915 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 a49ce0862d..20ac26df5e 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 1f8e685e21..9860a229da 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 ae59ed04dc..058dc6074e 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 d75600711f..cae865fe50 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 a13d089a7f..c10d13b86c 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 d81f1c81ae..7461f94da0 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 03fe2e6242..babe825298 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 11ea5254d6..73635d3a0e 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 7415e230f5..1dad930818 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 f80aca6223..6b76fb04a4 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 61f977f2c6..e06d7b8861 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 89dc14255a..b77543da64 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 4a44a7395c..60d3c6cf1d 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 fb90df9e9f..1efb23e896 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 b8cfd31a1c..f1e475189b 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 34fc8f0824..7b930f5358 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 966088f829..fa98feb824 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 130bc041f8..fee8e018cb 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 726f22a557..054cc2741a 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 3aa9930d2b..6d4ac111d0 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 860f09661f..659ce90721 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 6f0b4333bb..0446109c92 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 a0578a6d69..c8e9201722 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 2d47e999ce..ae3cf73559 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 f6e788d13d..4df61ac21d 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 648ea7dbf5..52de999fc2 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 e4321271c6..9aa8d34fcc 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 0ec7b26b72..c347dbe0a6 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 03ee6143e4..f61c69ef01 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 128a1eb859..0cb3e09b54 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 01eac6aabf..3941bfc476 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 38f037f83d..b770e4ce17 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 69c556eb3c..d22f72fa68 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 01593a7c0a..97b3dbc447 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 ebea3f0fe3..486f38200d 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 f1ed6492aa..0e3e60655c 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 7dd426e4dd..2d78715011 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 942c074721..3934c84aaf 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 b2503e4260..58acdd8145 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 07911a2db7..8ffc1dede6 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 05c1420dd8..fb8390133d 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 e60e8c7170..1d3ebcb9e6 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 ca8c1f930f..2f16d16807 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 515f7cb544..f3b2c26e6d 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 4a44a7395c..60d3c6cf1d 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 227a9aac2d..d9993247e2 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 f8d475a4c8..f5ff8ec113 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 2e279c4be9..d17a8aa12c 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 3c7e0ee857..a386747750 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 d003ce0ea0..420f4f8ae3 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 d003ce0ea0..420f4f8ae3 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 7dc3471c70..3adcb92c5d 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 5256645ab8..50e1069c06 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 89369d5209..d2e8130e7c 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 ba2d99e998..5b3ad1ccc1 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 852c6ea384..612cde3bfb 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 1ed1e396af..ab77b98781 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 b72237dac2..d50ad06538 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 da91421f43..6cb2e9fab6 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 cfada09bef..7eed72a4dc 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 bf012b10fa..f6e8a20056 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 8c3100659c..abb2c1cd9e 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 9dd802cf3b..3410b881ac 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 fd56e7a497..9d7385b9c8 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 0a4b1ce731..2b1856be3d 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 1cd33b897b..d5c1c5dce6 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 ce13d57083..5b9b04f0d1 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ж */ + 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 */ + 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 7c70fd1aa5..5cb9730854 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 df22aacbed..b2c3abeee4 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 0265ed96aa..f3a61e16a3 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 16d1dd7e99..64609ef06e 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 f160e9c167..0378a5f658 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 feab6f0216..be1741da57 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 e49cf2df45..e55e9ba840 100644 --- a/libcpu/arm/lpc24xx/start_rvds.S +++ b/libcpu/arm/lpc24xx/start_rvds.S @@ -1,3 +1,11 @@ +/* + * 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 71d88101fc..d296bfdbfe 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 69c556eb3c..d22f72fa68 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 dba0095632..ae672d9403 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 ebea3f0fe3..486f38200d 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 f1ed6492aa..0e3e60655c 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 7dd426e4dd..2d78715011 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 4cff1bad3e..82f87b7e8f 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 41a7727da2..8fcdf05f6f 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 ffb6c10a89..05998d2234 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 d81f1c81ae..7461f94da0 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 b2503e4260..58acdd8145 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 07911a2db7..8ffc1dede6 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 05c1420dd8..fb8390133d 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 94080ae746..619a16c446 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 98f22ca1fe..2ec7fe6c86 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 a6397d20d2..4a522f5126 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 8d0ca27fee..46d27a3fc5 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 06bbd4488f..23362a9013 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 907f08145a..4d3bf3c1ab 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 df0c1406d3..10ff60b95a 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 662ec3d50a..dc993ec9a3 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 601f3dda95..d0c80bce6b 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 f7073e259b..aafa714b0e 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 8308148c3b..03749c5227 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 ddf303da46..1eca1b1110 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 e3deb5b887..8a647ef35f 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 315091d907..82607c3590 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 142d66e2f4..4adc458094 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 c87c5966e9..833b193cce 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 f1c81768c9..f2f389c6b0 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 bbdc3989e4..0898cdbf87 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 088ca2e5fe..03ebefba18 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 3fc4f8c5b0..6b3eed4a39 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 16e8e3a240..7b854b718a 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 1e41ff8383..6af515b027 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 6f838cb173..12da611d5a 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 17a3d0da7f..65b3d422dd 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 546d9b2ea0..3b93d5457e 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 9de17b3077..da69e25b6d 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 093f3c1b14..ee4eab626b 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 8b0b8bbd64..f688286d19 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 022fddcc19..4ae09d0275 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 3f484ee92d..713959238a 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 f0357aacfb..69e7df248c 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 318b435f8e..b2205c76d2 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 9c18ced698..c551b2246c 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 f1ed6492aa..0e3e60655c 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 9853effe3c..5f3a3e7b02 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 08dd4b4dac..b38dd160f7 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 41a7906b00..6904c45587 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 4a44a7395c..60d3c6cf1d 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