diff options
Diffstat (limited to 'chip/stm32/system.c')
-rw-r--r-- | chip/stm32/system.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chip/stm32/system.c b/chip/stm32/system.c index d2c48cdc11..b77f0e8457 100644 --- a/chip/stm32/system.c +++ b/chip/stm32/system.c @@ -398,6 +398,15 @@ void system_reset(int flags) while (1) ; } else { + if (flags & SYSTEM_RESET_WAIT_EXT) { + int i; + + /* Wait 10 seconds for external reset */ + for (i = 0; i < 1000; i++) { + watchdog_reload(); + udelay(10000); + } + } CPU_NVIC_APINT = 0x05fa0004; } |