X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Fsam3_wdt.h;h=b57d06ee31b51387fb520d531730860a4207122b;hb=f1fab319eb3fe91c157b3a9564841aef62a03554;hp=833743a7bbc00895703346bb00ff649f30d2fe2d;hpb=666f80bddb3d83383dee8f572b626690e81e3b18;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/sam3_wdt.h b/bertos/cpu/cortex-m3/io/sam3_wdt.h index 833743a7..b57d06ee 100644 --- a/bertos/cpu/cortex-m3/io/sam3_wdt.h +++ b/bertos/cpu/cortex-m3/io/sam3_wdt.h @@ -32,7 +32,7 @@ * * \author Francesco Sacchi * - * ATSAM3 Watchdog. + * Atmel SAM3 Watchdog. * This file is based on NUT/OS implementation. See license below. */ @@ -73,7 +73,11 @@ #define SAM3_WDT_H /** Watch Dog registers base address */ -#define WDT_BASE 0x400E1450 +#if CPU_CM3_SAM3N + #define WDT_BASE 0x400E1450 +#elif CPU_CM3_SAM3X + #define WDT_BASE 0x400E1A50 +#endif /** Watch Dog Control Register */ /*\{*/