mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
rt_hw_cpu_shutdown: implement default weak function
and remvoe duplicated default functions in each cpu/bsp level
This commit is contained in:
@@ -13,21 +13,6 @@
|
||||
|
||||
#include "trap.h"
|
||||
|
||||
/*------------ rt_hw_cpu_shutdown() function ----------------------------------
|
||||
* DESCRIPTION: Shutdown CPU
|
||||
* ARGUMENTS:
|
||||
* None
|
||||
* RETURNED VALUE: None
|
||||
-----------------------------------------------------------------------------*/
|
||||
rt_weak void rt_hw_cpu_shutdown(void)
|
||||
{
|
||||
rt_kprintf("shutdown...\n");
|
||||
|
||||
rt_hw_interrupt_disable();
|
||||
|
||||
RT_ASSERT(0);
|
||||
}
|
||||
|
||||
/*------------ nested_exception_handler() function ---------------------------
|
||||
* DESCRIPTION: Function handles Nested Exception
|
||||
* ARGUMENTS:
|
||||
|
||||
Reference in New Issue
Block a user