cpu/cortex-mX_common: added delay to reboot_arch

This commit is contained in:
Hauke Petersen 2014-11-20 13:37:36 +01:00
parent 5600d86253
commit 1e863a322d
3 changed files with 9 additions and 9 deletions

View File

@ -22,13 +22,13 @@
#include "arch/reboot_arch.h"
#include "cpu.h"
#include "hwtimer.h"
int reboot_arch(int 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();
return -1;
}

View File

@ -22,13 +22,13 @@
#include "arch/reboot_arch.h"
#include "cpu.h"
#include "hwtimer.h"
int reboot_arch(int 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();
return -1;
}

View File

@ -22,13 +22,13 @@
#include "arch/reboot_arch.h"
#include "cpu.h"
#include "hwtimer.h"
int reboot_arch(int 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();
return -1;
}