From: aleph Date: Tue, 12 Oct 2010 16:50:19 +0000 (+0000) Subject: sam3: disable watchdog at boot X-Git-Tag: 2.6.0~5^2~98 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fc4c05ba8c053fb8dbc47717edce392dbd9b52aa;p=bertos.git sam3: disable watchdog at boot git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4422 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/clock_sam3.c b/bertos/cpu/cortex-m3/drv/clock_sam3.c index 737bdf67..25f0f986 100644 --- a/bertos/cpu/cortex-m3/drv/clock_sam3.c +++ b/bertos/cpu/cortex-m3/drv/clock_sam3.c @@ -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);