Software Reset Library for Arduino
Switch branches/tags
Nothing to show
Clone or download
WickedDevice Merge pull request #1 from njh/include-avr-wdt
Added #include <avr/wdt.h> to SoftReset.h
Latest commit 2177963 Jun 17, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information. source pushed Nov 9, 2012
SoftReset.cpp source pushed Nov 9, 2012
SoftReset.h Added #include <avr/wdt.h> to SoftReset.h Jun 17, 2015

This library allows you to restart an Arduino from software using the Watchdog Timer (as described in the avr-gcc manual FAQ). As long as you are using a recent version of the Optiboot bootloader there should be no issues with this.

Older versions of Optiboot had some problems related to handling of the Watchdog Timer which would cause the Mega328 to go into an infinite reset loop

To reset the processor from software, simply call the soft_restart() function.