mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
rt_hw_cpu_shutdown: implement default weak function
and remvoe duplicated default functions in each cpu/bsp level
This commit is contained in:
@@ -357,7 +357,7 @@ const char *rt_hw_cpu_arch(void)
|
||||
}
|
||||
|
||||
/** shutdown CPU */
|
||||
rt_weak void rt_hw_cpu_shutdown()
|
||||
void rt_hw_cpu_shutdown(void)
|
||||
{
|
||||
rt_uint32_t level;
|
||||
rt_kprintf("shutdown...\n");
|
||||
|
||||
@@ -56,8 +56,6 @@ extern struct cpu_ops_t cpu_ops_spin_tbl;
|
||||
|
||||
#endif /* RT_USING_SMP */
|
||||
|
||||
extern void rt_hw_cpu_shutdown(void);
|
||||
|
||||
extern void (*system_off)(void);
|
||||
|
||||
#endif /* __RT_HW_CPU_H__ */
|
||||
Reference in New Issue
Block a user