mirror of
https://github.com/apache/nuttx.git
synced 2026-09-06 17:06:31 +00:00
SAMv7: In review of last patch, change literal 0xfff to WDT_MR_WDD_MAX for portability.
This commit is contained in:
parent
571f3d952e
commit
ac8ddf4eb1
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue