Module rustduino::atmega2560p::hal::watchdog[][src]

Expand description

Control on Watchdog timer in ATMEGA2560P Section 12.5 and 28.6 of manual https://ww1.microchip.com/downloads/en/devicedoc/atmel-2549-8-bit-avr-microcontroller-atmega640-1280-1281-2560-2561_datasheet.pdf

Structs

Use interrupts to enable/disable global interrupts, prior to disabling watchdog, all interrupts must be disabled. A new struct of WatchDog can be created through new() function. Watchdog can be disabled by disable() function.