mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 03:09:16 +08:00
rt_hw_cpu_reset: remove all other rt_weak
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ rt_base_t rt_hw_cpu_dcache_status()
|
||||
* reset cpu by dog's time-out
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
|
||||
rt_kprintf("Restarting system...\n");
|
||||
|
||||
@@ -147,7 +147,7 @@ rt_base_t rt_hw_cpu_dcache_status()
|
||||
* reset cpu by dog's time-out
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
|
||||
rt_kprintf("Restarting system...\n");
|
||||
|
||||
@@ -131,7 +131,7 @@ void rt_hw_hard_fault_exception(struct exception_stack_frame *contex)
|
||||
/**
|
||||
* reset CPU
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
SCB_AIRCR = SCB_RESET_VALUE;//((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |SCB_AIRCR_SYSRESETREQ_Msk);
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ void rt_hw_hard_fault_exception(struct exception_stack_frame *contex)
|
||||
/**
|
||||
* reset CPU
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
SCB_AIRCR = SCB_RESET_VALUE;//((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |SCB_AIRCR_SYSRESETREQ_Msk);
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ rt_weak void rt_hw_cpu_shutdown(void)
|
||||
/**
|
||||
* reset CPU
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
SCB_AIRCR = SCB_RESET_VALUE;
|
||||
}
|
||||
|
||||
@@ -498,7 +498,7 @@ rt_weak void rt_hw_cpu_shutdown(void)
|
||||
/**
|
||||
* reset CPU
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
SCB_AIRCR = SCB_RESET_VALUE;
|
||||
}
|
||||
|
||||
@@ -441,7 +441,7 @@ rt_weak void rt_hw_cpu_shutdown(void)
|
||||
/**
|
||||
* reset CPU
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
SCB_AIRCR = SCB_RESET_VALUE;
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ rt_weak void rt_hw_cpu_shutdown(void)
|
||||
/**
|
||||
* reset CPU
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
SCB_AIRCR = SCB_RESET_VALUE;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ rt_base_t rt_hw_cpu_dcache_status()
|
||||
* reset cpu by dog's time-out
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
|
||||
rt_kprintf("Restarting system...\n");
|
||||
|
||||
@@ -163,7 +163,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ rt_base_t rt_hw_cpu_dcache_status()
|
||||
* reset cpu by dog's time-out
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
/* Disable all interrupt except the WDT */
|
||||
INTMSK = (~((rt_uint32_t)1 << INTWDT));
|
||||
|
||||
@@ -100,7 +100,7 @@ rt_base_t rt_hw_cpu_dcache_status()
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ rt_base_t rt_hw_cpu_dcache_status()
|
||||
* reset cpu by dog's time-out
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
|
||||
/* enable watchdog */
|
||||
|
||||
@@ -15,15 +15,6 @@
|
||||
*/
|
||||
/*@{*/
|
||||
|
||||
/**
|
||||
* reset cpu by dog's time-out
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
{
|
||||
/*NOTREACHED*/
|
||||
}
|
||||
|
||||
/**
|
||||
* shutdown CPU
|
||||
*
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset(void)
|
||||
void rt_hw_cpu_reset(void)
|
||||
{
|
||||
/* open the watch-dog */
|
||||
WDT_EN = 0x01; /* watch dog enable */
|
||||
|
||||
@@ -245,7 +245,7 @@ static void sep6200_poweroff(void)
|
||||
* reset cpu by dog's time-out
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
void rt_hw_cpu_reset()
|
||||
{
|
||||
|
||||
rt_kprintf("Soft reset, Restarting system...\n");
|
||||
|
||||
@@ -10,14 +10,6 @@
|
||||
|
||||
#include <rtthread.h>
|
||||
|
||||
/**
|
||||
* this function will reset CPU
|
||||
*
|
||||
*/
|
||||
rt_weak void rt_hw_cpu_reset()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* this function will shutdown CPU
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user