summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/cmd.c2
-rw-r--r--components/finsh/finsh.h2
-rw-r--r--components/finsh/finsh_api.h2
-rw-r--r--components/finsh/finsh_compiler.c2
-rw-r--r--components/finsh/finsh_error.c2
-rw-r--r--components/finsh/finsh_error.h2
-rw-r--r--components/finsh/finsh_heap.c2
-rw-r--r--components/finsh/finsh_heap.h2
-rw-r--r--components/finsh/finsh_init.c2
-rw-r--r--components/finsh/finsh_node.c2
-rw-r--r--components/finsh/finsh_node.h2
-rw-r--r--components/finsh/finsh_ops.c2
-rw-r--r--components/finsh/finsh_ops.h100
-rw-r--r--components/finsh/finsh_parser.c2
-rw-r--r--components/finsh/finsh_parser.h2
-rw-r--r--components/finsh/finsh_token.c2
-rw-r--r--components/finsh/finsh_token.h2
-rw-r--r--components/finsh/finsh_var.c2
-rw-r--r--components/finsh/finsh_var.h2
-rw-r--r--components/finsh/finsh_vm.c2
-rw-r--r--components/finsh/finsh_vm.h2
-rw-r--r--components/finsh/msh.c2
-rw-r--r--components/finsh/msh.h2
-rw-r--r--components/finsh/msh_file.c4
-rw-r--r--components/finsh/shell.c4
-rw-r--r--components/finsh/shell.h2
-rw-r--r--components/finsh/symbol.c4
27 files changed, 79 insertions, 79 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index ebef0eac1c..27f2d71fd7 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh.h b/components/finsh/finsh.h
index eb38682c4f..e99963e74d 100644
--- a/components/finsh/finsh.h
+++ b/components/finsh/finsh.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_api.h b/components/finsh/finsh_api.h
index c601415d82..f3efb432e1 100644
--- a/components/finsh/finsh_api.h
+++ b/components/finsh/finsh_api.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_compiler.c b/components/finsh/finsh_compiler.c
index 1b1f67cb76..306c54aec9 100644
--- a/components/finsh/finsh_compiler.c
+++ b/components/finsh/finsh_compiler.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_error.c b/components/finsh/finsh_error.c
index bdd0108f98..a5cf2eb514 100644
--- a/components/finsh/finsh_error.c
+++ b/components/finsh/finsh_error.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_error.h b/components/finsh/finsh_error.h
index 614e02a350..8dfafd013c 100644
--- a/components/finsh/finsh_error.h
+++ b/components/finsh/finsh_error.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_heap.c b/components/finsh/finsh_heap.c
index 0d185db474..9f64d108dd 100644
--- a/components/finsh/finsh_heap.c
+++ b/components/finsh/finsh_heap.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_heap.h b/components/finsh/finsh_heap.h
index 9c04e5c22f..f320c2771a 100644
--- a/components/finsh/finsh_heap.h
+++ b/components/finsh/finsh_heap.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_init.c b/components/finsh/finsh_init.c
index 72f5aa5e9a..76302a0516 100644
--- a/components/finsh/finsh_init.c
+++ b/components/finsh/finsh_init.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_node.c b/components/finsh/finsh_node.c
index 0de82c189d..82a4c03f1e 100644
--- a/components/finsh/finsh_node.c
+++ b/components/finsh/finsh_node.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_node.h b/components/finsh/finsh_node.h
index c7ce099636..ff4333df13 100644
--- a/components/finsh/finsh_node.h
+++ b/components/finsh/finsh_node.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_ops.c b/components/finsh/finsh_ops.c
index 2eafb50c69..ec8b8cb58a 100644
--- a/components/finsh/finsh_ops.c
+++ b/components/finsh/finsh_ops.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_ops.h b/components/finsh/finsh_ops.h
index 95a8b001fb..0cc945f078 100644
--- a/components/finsh/finsh_ops.h
+++ b/components/finsh/finsh_ops.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -25,90 +25,90 @@
* OP [op1]
*/
-#define FINSH_OP_NOOP 0x00
+#define FINSH_OP_NOOP 0x00
/* add @ r1 = r2 + r3 */
-#define FINSH_OP_ADD_BYTE 0x01
-#define FINSH_OP_ADD_WORD 0x02
-#define FINSH_OP_ADD_DWORD 0x03
+#define FINSH_OP_ADD_BYTE 0x01
+#define FINSH_OP_ADD_WORD 0x02
+#define FINSH_OP_ADD_DWORD 0x03
/* sub @ r1 = r2 - r3 */
-#define FINSH_OP_SUB_BYTE 0x04
-#define FINSH_OP_SUB_WORD 0x05
-#define FINSH_OP_SUB_DWORD 0x06
+#define FINSH_OP_SUB_BYTE 0x04
+#define FINSH_OP_SUB_WORD 0x05
+#define FINSH_OP_SUB_DWORD 0x06
/* div @ r1 = r2 / r3 */
-#define FINSH_OP_DIV_BYTE 0x07
-#define FINSH_OP_DIV_WORD 0x08
-#define FINSH_OP_DIV_DWORD 0x09
+#define FINSH_OP_DIV_BYTE 0x07
+#define FINSH_OP_DIV_WORD 0x08
+#define FINSH_OP_DIV_DWORD 0x09
/* mod @ r1 = r2 % r3 */
-#define FINSH_OP_MOD_BYTE 0x0A
-#define FINSH_OP_MOD_WORD 0x0B
-#define FINSH_OP_MOD_DWORD 0x0C
+#define FINSH_OP_MOD_BYTE 0x0A
+#define FINSH_OP_MOD_WORD 0x0B
+#define FINSH_OP_MOD_DWORD 0x0C
/* mul @ r1 = r2 * r3 */
-#define FINSH_OP_MUL_BYTE 0x0D
-#define FINSH_OP_MUL_WORD 0x0E
-#define FINSH_OP_MUL_DWORD 0x0F
+#define FINSH_OP_MUL_BYTE 0x0D
+#define FINSH_OP_MUL_WORD 0x0E
+#define FINSH_OP_MUL_DWORD 0x0F
/* and @ r1 = r2 & r3 */
-#define FINSH_OP_AND_BYTE 0x10
-#define FINSH_OP_AND_WORD 0x11
-#define FINSH_OP_AND_DWORD 0x12
+#define FINSH_OP_AND_BYTE 0x10
+#define FINSH_OP_AND_WORD 0x11
+#define FINSH_OP_AND_DWORD 0x12
/* or @ r1 = r2 | r3 */
-#define FINSH_OP_OR_BYTE 0x13
-#define FINSH_OP_OR_WORD 0x14
-#define FINSH_OP_OR_DWORD 0x15
+#define FINSH_OP_OR_BYTE 0x13
+#define FINSH_OP_OR_WORD 0x14
+#define FINSH_OP_OR_DWORD 0x15
/* xor @ r1 = r2 ^ r3 */
-#define FINSH_OP_XOR_BYTE 0x16
-#define FINSH_OP_XOR_WORD 0x17
-#define FINSH_OP_XOR_DWORD 0x18
+#define FINSH_OP_XOR_BYTE 0x16
+#define FINSH_OP_XOR_WORD 0x17
+#define FINSH_OP_XOR_DWORD 0x18
/* bw @ r1 = ~r2 */
-#define FINSH_OP_BITWISE_BYTE 0x19
-#define FINSH_OP_BITWISE_WORD 0x1A
-#define FINSH_OP_BITWISE_DWORD 0x1B
+#define FINSH_OP_BITWISE_BYTE 0x19
+#define FINSH_OP_BITWISE_WORD 0x1A
+#define FINSH_OP_BITWISE_DWORD 0x1B
/* shl @ r1 = r2 << r3 */
-#define FINSH_OP_SHL_BYTE 0x1C
-#define FINSH_OP_SHL_WORD 0x1D
-#define FINSH_OP_SHL_DWORD 0x1E
+#define FINSH_OP_SHL_BYTE 0x1C
+#define FINSH_OP_SHL_WORD 0x1D
+#define FINSH_OP_SHL_DWORD 0x1E
/* shr @ r1 = r2 >> r3 */
-#define FINSH_OP_SHR_BYTE 0x1F
-#define FINSH_OP_SHR_WORD 0x20
-#define FINSH_OP_SHR_DWORD 0x21
+#define FINSH_OP_SHR_BYTE 0x1F
+#define FINSH_OP_SHR_WORD 0x20
+#define FINSH_OP_SHR_DWORD 0x21
/* ld @ r1 = [r2] */
-#define FINSH_OP_LD_BYTE 0x22
-#define FINSH_OP_LD_WORD 0x23
-#define FINSH_OP_LD_DWORD 0x24
+#define FINSH_OP_LD_BYTE 0x22
+#define FINSH_OP_LD_WORD 0x23
+#define FINSH_OP_LD_DWORD 0x24
-#define FINSH_OP_LD_VALUE_BYTE 0x25
-#define FINSH_OP_LD_VALUE_WORD 0x26
-#define FINSH_OP_LD_VALUE_DWORD 0x27
+#define FINSH_OP_LD_VALUE_BYTE 0x25
+#define FINSH_OP_LD_VALUE_WORD 0x26
+#define FINSH_OP_LD_VALUE_DWORD 0x27
/* st @ [r2] = r1 */
-#define FINSH_OP_ST_BYTE 0x28
-#define FINSH_OP_ST_WORD 0x29
-#define FINSH_OP_ST_DWORD 0x2A
+#define FINSH_OP_ST_BYTE 0x28
+#define FINSH_OP_ST_WORD 0x29
+#define FINSH_OP_ST_DWORD 0x2A
/* pop */
-#define FINSH_OP_POP 0x2B
+#define FINSH_OP_POP 0x2B
/* call r1 @ [r1](stack) */
-#define FINSH_OP_SYSCALL 0x2C
+#define FINSH_OP_SYSCALL 0x2C
/* load value from stack */
-#define FINSH_OP_LD_VALUE_BYTE_STACK 0x2D
-#define FINSH_OP_LD_VALUE_WORD_STACK 0x2E
-#define FINSH_OP_LD_VALUE_DWORD_STACK 0x2F
+#define FINSH_OP_LD_VALUE_BYTE_STACK 0x2D
+#define FINSH_OP_LD_VALUE_WORD_STACK 0x2E
+#define FINSH_OP_LD_VALUE_DWORD_STACK 0x2F
/* halt */
-#define FINSH_OP_HALT 0xFF
+#define FINSH_OP_HALT 0xFF
typedef void (*op_func)();
extern const op_func op_table[];
diff --git a/components/finsh/finsh_parser.c b/components/finsh/finsh_parser.c
index 0e7617003c..4b8b4af7e4 100644
--- a/components/finsh/finsh_parser.c
+++ b/components/finsh/finsh_parser.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_parser.h b/components/finsh/finsh_parser.h
index 8e149a7e00..2d0148093a 100644
--- a/components/finsh/finsh_parser.h
+++ b/components/finsh/finsh_parser.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_token.c b/components/finsh/finsh_token.c
index 5fb593d816..dfd613da5b 100644
--- a/components/finsh/finsh_token.c
+++ b/components/finsh/finsh_token.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_token.h b/components/finsh/finsh_token.h
index 0ce98c0f14..9845357b8e 100644
--- a/components/finsh/finsh_token.h
+++ b/components/finsh/finsh_token.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_var.c b/components/finsh/finsh_var.c
index 6a27bf1fab..2e3df30c6d 100644
--- a/components/finsh/finsh_var.c
+++ b/components/finsh/finsh_var.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_var.h b/components/finsh/finsh_var.h
index 8d7ee6a201..796f979441 100644
--- a/components/finsh/finsh_var.h
+++ b/components/finsh/finsh_var.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_vm.c b/components/finsh/finsh_vm.c
index 7c56407084..e56cedbdfb 100644
--- a/components/finsh/finsh_vm.c
+++ b/components/finsh/finsh_vm.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/finsh_vm.h b/components/finsh/finsh_vm.h
index fc515418e4..15d5da1ef8 100644
--- a/components/finsh/finsh_vm.h
+++ b/components/finsh/finsh_vm.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/msh.c b/components/finsh/msh.c
index 79f1e3c87f..73a5197dcd 100644
--- a/components/finsh/msh.c
+++ b/components/finsh/msh.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/msh.h b/components/finsh/msh.h
index b7153107ea..17c7a39ef1 100644
--- a/components/finsh/msh.h
+++ b/components/finsh/msh.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/msh_file.c b/components/finsh/msh_file.c
index 10025965f0..b431d944c3 100644
--- a/components/finsh/msh_file.c
+++ b/components/finsh/msh_file.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -101,7 +101,7 @@ int msh_exec_script(const char *cmd_line, int size)
int length;
line_buf = (char *) rt_malloc(RT_CONSOLEBUF_SIZE);
- if (line_buf == RT_NULL)
+ if (line_buf == RT_NULL)
{
close(fd);
return -RT_ENOMEM;
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index 61f0b9562e..0d41625184 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -844,7 +844,7 @@ int finsh_system_init(void)
finsh_system_var_init(&__vsymtab_start, &__vsymtab_end);
#elif defined(_MSC_VER)
unsigned int *ptr_begin, *ptr_end;
-
+
if(shell)
{
rt_kprintf("finsh shell already init.\n");
diff --git a/components/finsh/shell.h b/components/finsh/shell.h
index bf954fb5a6..e6b1921c60 100644
--- a/components/finsh/shell.h
+++ b/components/finsh/shell.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
diff --git a/components/finsh/symbol.c b/components/finsh/symbol.c
index 78df9fac5c..c6623e2d82 100644
--- a/components/finsh/symbol.c
+++ b/components/finsh/symbol.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006-2018, RT-Thread Development Team
+ * Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
@@ -7,7 +7,7 @@
* Date Author Notes
* 2010-03-22 Bernard first version
*/
-
+
#include <rtthread.h>
#if defined(RT_USING_FINSH) && !defined(FINSH_USING_SYMTAB)