diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-30 20:10:50 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-30 20:10:50 +0200 |
commit | e927ad57bee4deb1cec236559f2c082342621f4f (patch) | |
tree | 272a3d053d141578fdc8caf2eac78f6b83bb303c | |
parent | 7053b9f5c7a76d9d94d66f2dcd2a8675c821aedd (diff) |
at91lib: disable the watchdog when we come out of DFU
-rw-r--r-- | at91lib/boards/simtrace/board_cstartup.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/at91lib/boards/simtrace/board_cstartup.S b/at91lib/boards/simtrace/board_cstartup.S index 92bcf8b..0752c29 100644 --- a/at91lib/boards/simtrace/board_cstartup.S +++ b/at91lib/boards/simtrace/board_cstartup.S @@ -138,6 +138,11 @@ resetHandler: ldr r0, =LowLevelInit
mov lr, pc
bx r0
+#else
+ /* explicitly disable the watchdog timer */
+ ldr r0, =AT91C_BASE_WDTC
+ mov r1, #AT91C_WDTC_WDDIS
+ str r1, [r0, #4]
#endif /* flash_dfu */
/* Initialize the relocate segment */
|