summaryrefslogtreecommitdiff
path: root/libcpu/arm/common
diff options
context:
space:
mode:
authorguo <[email protected]>2021-09-28 10:36:54 +0800
committerGitHub <[email protected]>2021-09-28 10:36:54 +0800
commit55a302cd092758a44b589d65470a69d9e8ae4ced (patch)
treee60fc53994c426007e9eb4877e5bd123f124ef39 /libcpu/arm/common
parent00727d6b6db92dc1cf98f028f26fd6168594b905 (diff)
parent00d42ef73cff61ecda7ff006b077a73e1a4ff669 (diff)
Merge branch 'master' into usbh_construct
Diffstat (limited to 'libcpu/arm/common')
-rw-r--r--libcpu/arm/common/backtrace.c2
-rw-r--r--libcpu/arm/common/div0.c4
-rw-r--r--libcpu/arm/common/showmem.c34
3 files changed, 20 insertions, 20 deletions
diff --git a/libcpu/arm/common/backtrace.c b/libcpu/arm/common/backtrace.c
index 4fc87b20d1..388a409d88 100644
--- a/libcpu/arm/common/backtrace.c
+++ b/libcpu/arm/common/backtrace.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/libcpu/arm/common/div0.c b/libcpu/arm/common/div0.c
index 0cb3e09b54..113778b43f 100644
--- a/libcpu/arm/common/div0.c
+++ b/libcpu/arm/common/div0.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
*
@@ -8,5 +8,5 @@
*/
void __div0 (void)
{
- while (1) ;
+ while (1) ;
}
diff --git a/libcpu/arm/common/showmem.c b/libcpu/arm/common/showmem.c
index b770e4ce17..1a94ff1d9f 100644
--- a/libcpu/arm/common/showmem.c
+++ b/libcpu/arm/common/showmem.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
*
@@ -12,27 +12,27 @@
void rt_hw_show_memory(rt_uint32_t addr, rt_uint32_t size)
{
- int i = 0, j =0;
+ int i = 0, j =0;
- RT_ASSERT(addr);
+ RT_ASSERT(addr);
- addr = addr & ~0xF;
- size = 4*((size + 3)/4);
+ addr = addr & ~0xF;
+ size = 4*((size + 3)/4);
- while(i < size)
- {
- rt_kprintf("0x%08x: ", addr );
+ while(i < size)
+ {
+ rt_kprintf("0x%08x: ", addr );
- for(j=0; j<4; j++)
- {
- rt_kprintf("0x%08x ", *(rt_uint32_t *)addr);
+ for(j=0; j<4; j++)
+ {
+ rt_kprintf("0x%08x ", *(rt_uint32_t *)addr);
- addr += 4;
- i++;
- }
+ addr += 4;
+ i++;
+ }
- rt_kprintf("\n");
- }
+ rt_kprintf("\n");
+ }
- return;
+ return;
}