summaryrefslogtreecommitdiff
path: root/libcpu/arm/lpc214x
diff options
context:
space:
mode:
author张世争 <[email protected]>2020-11-20 08:49:51 +0800
committer张世争 <[email protected]>2020-11-20 08:49:51 +0800
commit355f8dd95cddcf784eb60bfea0a8d6ebf130fdf3 (patch)
treea901cfdc41cc8dc3df0ebd3c96e97725051f679f /libcpu/arm/lpc214x
parent9dc0bbb814dff797eabb1cbcc133410c75471cd0 (diff)
[libcpu][update]重启与关机函数:rt_hw_cpu_shutdown、rt_hw_cpu_reset,补充WEAK属性
Diffstat (limited to 'libcpu/arm/lpc214x')
-rw-r--r--libcpu/arm/lpc214x/cpuport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/lpc214x/cpuport.c b/libcpu/arm/lpc214x/cpuport.c
index 2543a5e0a9..54e7e9b0c8 100644
--- a/libcpu/arm/lpc214x/cpuport.c
+++ b/libcpu/arm/lpc214x/cpuport.c
@@ -163,7 +163,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
* this function will reset CPU
*
*/
-void rt_hw_cpu_reset(void)
+RT_WEAK void rt_hw_cpu_reset(void)
{
}
@@ -171,7 +171,7 @@ void rt_hw_cpu_reset(void)
* this function will shutdown CPU
*
*/
-void rt_hw_cpu_shutdown()
+RT_WEAK void rt_hw_cpu_shutdown()
{
rt_kprintf("shutdown...\n");