summaryrefslogtreecommitdiff
path: root/bsp/ls1cdev
diff options
context:
space:
mode:
authoryangjie <[email protected]>2021-04-09 10:52:34 +0800
committeryangjie <[email protected]>2021-04-09 10:52:34 +0800
commit75e4c9dd0a065f8a5a548a4f557277a48d6e3c24 (patch)
treec403c732d79bac61d5defba1ed996d2d0bfb1a4d /bsp/ls1cdev
parent31cb379daeaeda2b1d4dba7670a90ea59e115ac8 (diff)
[bsp]update GPL license to Apache-2.0, and format files
Diffstat (limited to 'bsp/ls1cdev')
-rw-r--r--bsp/ls1cdev/drivers/drv_spi.c18
-rw-r--r--bsp/ls1cdev/ls1c_ram.lds50
2 files changed, 25 insertions, 43 deletions
diff --git a/bsp/ls1cdev/drivers/drv_spi.c b/bsp/ls1cdev/drivers/drv_spi.c
index 3cc2212850..25b30e07ca 100644
--- a/bsp/ls1cdev/drivers/drv_spi.c
+++ b/bsp/ls1cdev/drivers/drv_spi.c
@@ -1,21 +1,7 @@
/*
- * File : drv_spi.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
diff --git a/bsp/ls1cdev/ls1c_ram.lds b/bsp/ls1cdev/ls1c_ram.lds
index 38aabfe012..aced32b90b 100644
--- a/bsp/ls1cdev/ls1c_ram.lds
+++ b/bsp/ls1cdev/ls1c_ram.lds
@@ -1,11 +1,7 @@
/*
- * File : ls1c_ram.lds
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2011, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rt-thread.org/license/LICENSE
+ * SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
@@ -22,25 +18,25 @@ ENTRY(_start)
SECTIONS
{
. = ALIGN(4);
- .text :
+ .text :
{
- start = ABSOLUTE(.);
- *(.selfboot);
- *(.selfboot_data);
- . = ALIGN(4);
- __selfboot_end = .;
- . = ALIGN(0x1000);
- __ebase_entry = .;
- KEEP(*(.exc_vectors))
- __ebase_end = .;
- *(.start);
+ start = ABSOLUTE(.);
+ *(.selfboot);
+ *(.selfboot_data);
+ . = ALIGN(4);
+ __selfboot_end = .;
+ . = ALIGN(0x1000);
+ __ebase_entry = .;
+ KEEP(*(.exc_vectors))
+ __ebase_end = .;
+ *(.start);
*(.text)
*(.text.*)
*(.rodata)
*(.rodata.*)
*(.rodata1)
*(.rodata1.*)
-
+
/* section information for finsh shell */
. = ALIGN(4);
__fsymtab_start = .;
@@ -58,26 +54,26 @@ SECTIONS
__rt_init_end = .;
. = ALIGN(4);
}
-
- .eh_frame_hdr :
- {
- *(.eh_frame_hdr)
+
+ .eh_frame_hdr :
+ {
+ *(.eh_frame_hdr)
*(.eh_frame_entry)
}
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
. = ALIGN(4);
- .data :
+ .data :
{
*(.data)
*(.data.*)
-
+
*(.data1)
*(.data1.*)
-
+
. = ALIGN(8);
_gp = ABSOLUTE(.); /* Base of small data */
-
+
*(.sdata)
*(.sdata.*)
}
@@ -91,7 +87,7 @@ SECTIONS
_system_stack = .;
}
- .sbss :
+ .sbss :
{
__bss_start = .;
*(.sbss)