From fc4c05ba8c053fb8dbc47717edce392dbd9b52aa Mon Sep 17 00:00:00 2001 From: aleph Date: Tue, 12 Oct 2010 16:50:19 +0000 Subject: [PATCH] sam3: disable watchdog at boot git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4422 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/clock_sam3.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1