sam3: disable watchdog at boot
authoraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Oct 2010 16:50:19 +0000 (16:50 +0000)
committeraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Oct 2010 16:50:19 +0000 (16:50 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4422 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/drv/clock_sam3.c

index 737bdf670cb809958a037ed0b28c1dc730c38528..25f0f986188be5a812763046453a693b1c7053f6 100644 (file)
@@ -89,6 +89,9 @@ void clock_init(void)
 {
        uint32_t timeout;
 
+       /* Disable watchdog */
+       WDT_MR = WDT_MR_WDDIS;
+
        /* Set 4 wait states for flash access, needed for higher CPU clock rates */
        EFC_FMR = EEFC_FMR_FWS(3);