summaryrefslogtreecommitdiff
path: root/bsp/upd70f3454
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/upd70f3454
parent31cb379daeaeda2b1d4dba7670a90ea59e115ac8 (diff)
[bsp]update GPL license to Apache-2.0, and format files
Diffstat (limited to 'bsp/upd70f3454')
-rw-r--r--bsp/upd70f3454/applications/application.c8
-rw-r--r--bsp/upd70f3454/applications/startup.c12
-rw-r--r--bsp/upd70f3454/drivers/board.c8
-rw-r--r--bsp/upd70f3454/drivers/board.h10
-rw-r--r--bsp/upd70f3454/drivers/uart.c10
5 files changed, 14 insertions, 34 deletions
diff --git a/bsp/upd70f3454/applications/application.c b/bsp/upd70f3454/applications/application.c
index ace92c365f..65f203a96c 100644
--- a/bsp/upd70f3454/applications/application.c
+++ b/bsp/upd70f3454/applications/application.c
@@ -1,11 +1,7 @@
/*
- * File : application.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 - 2012, 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
diff --git a/bsp/upd70f3454/applications/startup.c b/bsp/upd70f3454/applications/startup.c
index 409b3cc615..9a9ed22cde 100644
--- a/bsp/upd70f3454/applications/startup.c
+++ b/bsp/upd70f3454/applications/startup.c
@@ -1,11 +1,7 @@
/*
- * File : startup.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 - 2012, 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
@@ -49,7 +45,7 @@ void rtthread_startup(void)
/* show version */
rt_show_version();
-
+
/* init timer system */
rt_system_timer_init();
@@ -91,7 +87,7 @@ int main(void)
/* init system setting */
TAB0_Start();
-
+
/* startup RT-Thread RTOS */
rtthread_startup();
diff --git a/bsp/upd70f3454/drivers/board.c b/bsp/upd70f3454/drivers/board.c
index 8af3f72d77..d8ebdfc558 100644
--- a/bsp/upd70f3454/drivers/board.c
+++ b/bsp/upd70f3454/drivers/board.c
@@ -1,11 +1,7 @@
/*
- * File : board.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 - 2012, 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
diff --git a/bsp/upd70f3454/drivers/board.h b/bsp/upd70f3454/drivers/board.h
index 66ec065d5b..51fbf2feee 100644
--- a/bsp/upd70f3454/drivers/board.h
+++ b/bsp/upd70f3454/drivers/board.h
@@ -1,11 +1,7 @@
/*
- * File : board.h
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009, RT-Thread Development Team
+ * Copyright (c) 2006-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
@@ -30,7 +26,7 @@
#define UP_KEY 0x1b
#define DOWN_KEY 0x17
#define LEFT_KEY 0x0f
-#define RIGHT_KEY 0x1e
+#define RIGHT_KEY 0x1e
void rt_hw_board_init(void);
rt_uint8_t get_key(void);
diff --git a/bsp/upd70f3454/drivers/uart.c b/bsp/upd70f3454/drivers/uart.c
index f41f4eceeb..d452092497 100644
--- a/bsp/upd70f3454/drivers/uart.c
+++ b/bsp/upd70f3454/drivers/uart.c
@@ -1,11 +1,7 @@
/*
- * File : board.c
- * This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2009 - 2012 RT-Thread Develop 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
@@ -196,7 +192,7 @@ static rt_size_t rt_uart_write(rt_device_t dev, rt_off_t pos, const void* buffer
while (UA1TSF == 1U)
;
UA1TX = *ptr;
-
+
ptr ++;
size --;
}