mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-03-02 08:55:27 +08:00
parent
e5b7f3fdd8
commit
1e287b2591
@ -78,15 +78,11 @@ rt_weak void rt_hw_cpu_reset(void)
|
|||||||
|
|
||||||
rt_weak void rt_hw_cpu_shutdown(void)
|
rt_weak void rt_hw_cpu_shutdown(void)
|
||||||
{
|
{
|
||||||
rt_base_t level;
|
|
||||||
LOG_I("CPU shutdown...");
|
LOG_I("CPU shutdown...");
|
||||||
LOG_W("Using default rt_hw_cpu_shutdown()."
|
LOG_W("Using default rt_hw_cpu_shutdown()."
|
||||||
"Please consider implementing rt_hw_cpu_reset() in another file.");
|
"Please consider implementing rt_hw_cpu_shutdown() in another file.");
|
||||||
level = rt_hw_interrupt_disable();
|
rt_hw_interrupt_disable();
|
||||||
while (level)
|
RT_ASSERT(0);
|
||||||
{
|
|
||||||
RT_ASSERT(RT_NULL);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user