From ac8ddf4eb1bd91b6f87aeabd3cd1e8b252e5add9 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 6 Apr 2017 09:46:04 -0600 Subject: [PATCH] SAMv7: In review of last patch, change literal 0xfff to WDT_MR_WDD_MAX for portability. --- arch/arm/src/samv7/sam_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/samv7/sam_wdt.c b/arch/arm/src/samv7/sam_wdt.c index c3921df2fd..4ce21303c3 100644 --- a/arch/arm/src/samv7/sam_wdt.c +++ b/arch/arm/src/samv7/sam_wdt.c @@ -507,10 +507,10 @@ static int sam_settimeout(FAR struct watchdog_lowerhalf_s *lower, * * On fast systems this can lead to a direct hit of the WDD boundary and * thus to a reset of the system. This is why we program the WDD Value toi - * 0xfff to truly disable this Forbidden Window Feature. + * WDT_MR_WDD_MAX to truly disable this Forbidden Window Feature. */ - regval = WDT_MR_WDV(reload) | WDT_MR_WDD(0xfff); + regval = WDT_MR_WDV(reload) | WDT_MR_WDD(WDT_MR_WDD_MAX); #ifdef CONFIG_SAMV7_WDT_INTERRUPT /* Generate an interrupt whent he watchdog timer expires */