cpu/cortex-mX_common: added delay to reboot_arch
This commit is contained in:
parent
5600d86253
commit
1e863a322d
@ -22,13 +22,13 @@
|
|||||||
|
|
||||||
#include "arch/reboot_arch.h"
|
#include "arch/reboot_arch.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
#include "hwtimer.h"
|
||||||
|
|
||||||
int reboot_arch(int mode)
|
int reboot_arch(int mode)
|
||||||
{
|
{
|
||||||
printf("Going into reboot, mode %i\n", mode);
|
printf("Going into reboot, mode %i\n", mode);
|
||||||
|
/* wait 1 ms to make sure the printf is finished */
|
||||||
|
hwtimer_wait(HWTIMER_TICKS(1000));
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,13 +22,13 @@
|
|||||||
|
|
||||||
#include "arch/reboot_arch.h"
|
#include "arch/reboot_arch.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
#include "hwtimer.h"
|
||||||
|
|
||||||
int reboot_arch(int mode)
|
int reboot_arch(int mode)
|
||||||
{
|
{
|
||||||
printf("Going into reboot, mode %i\n", mode);
|
printf("Going into reboot, mode %i\n", mode);
|
||||||
|
/* wait 1 ms to make sure the printf is finished */
|
||||||
|
hwtimer_wait(HWTIMER_TICKS(1000));
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,13 +22,13 @@
|
|||||||
|
|
||||||
#include "arch/reboot_arch.h"
|
#include "arch/reboot_arch.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
#include "hwtimer.h"
|
||||||
|
|
||||||
int reboot_arch(int mode)
|
int reboot_arch(int mode)
|
||||||
{
|
{
|
||||||
printf("Going into reboot, mode %i\n", mode);
|
printf("Going into reboot, mode %i\n", mode);
|
||||||
|
/* wait 1 ms to make sure the printf is finished */
|
||||||
|
hwtimer_wait(HWTIMER_TICKS(1000));
|
||||||
NVIC_SystemReset();
|
NVIC_SystemReset();
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user