Skip to content

Commit

Permalink
fix(Examples): Decrease the delay in the MAX32680 Watchdog example to…
Browse files Browse the repository at this point in the history
… force a watchdog reset to occur (#758)
  • Loading branch information
lorne-maxim authored and EricB-ADI committed Oct 26, 2023
1 parent 2760d1a commit dcf22c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Examples/MAX32680/Watchdog/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,12 @@ int main(void)
MXC_WDT_SetResetPeriod(MXC_WDT0, &cfg);
MXC_WDT_ResetTimer(MXC_WDT0);
MXC_WDT_EnableReset(MXC_WDT0);
MXC_NVIC_SetVector(WDT0_IRQn, WDT0_IRQHandler);
NVIC_EnableIRQ(WDT0_IRQn);

MXC_WDT_Enable(MXC_WDT0);
}

//blink LED0
blinkled(0, 1, 500);
blinkled(0, 1, 100);

//Reset watchdog
MXC_WDT_ResetTimer(MXC_WDT0);
Expand Down

0 comments on commit dcf22c5

Please sign in to comment.