summaryrefslogtreecommitdiff
path: root/at91lib/boards/simtrace/board_lowlevel.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-30 22:29:20 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-30 22:29:20 +0200
commit82125db510b46a0bae1cfe6df769bf671f446790 (patch)
treec954c5c2a689e6cb2d24c9680778578aae7cedfe /at91lib/boards/simtrace/board_lowlevel.c
parente927ad57bee4deb1cec236559f2c082342621f4f (diff)
at91lib: go throguh LowlevelInit even after DFU loader
this makes sure the PLL is set up the way at91lib expects it
Diffstat (limited to 'at91lib/boards/simtrace/board_lowlevel.c')
-rw-r--r--at91lib/boards/simtrace/board_lowlevel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/at91lib/boards/simtrace/board_lowlevel.c b/at91lib/boards/simtrace/board_lowlevel.c
index 392b77d..d9b1da8 100644
--- a/at91lib/boards/simtrace/board_lowlevel.c
+++ b/at91lib/boards/simtrace/board_lowlevel.c
@@ -149,8 +149,10 @@ void LowLevelInit(void)
// Watchdog initialization
AT91C_BASE_WDTC->WDTC_WDMR = AT91C_WDTC_WDDIS;
+#if !defined(flash_dfu)
// Remap the internal SRAM at 0x0
BOARD_RemapRam();
+#endif
// Disable RTT and PIT interrupts (potential problem when program A
// configures RTT, then program B wants to use PIT only, interrupts
personal git repositories of Harald Welte. Your mileage may vary