SAMv7: In review of last patch, change literal 0xfff to WDT_MR_WDD_MAX for portability.

This commit is contained in:
Gregory Nutt 2017-04-06 09:46:04 -06:00
parent 571f3d952e
commit ac8ddf4eb1

View File

@ -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 */