[Frubar Paste] Hosted by SkyLime - Chat with us at XChannel IRC

Posted by Anonymous on Sun 7th Feb 20:55

View followups from Anonymous | download

  1. #include <avr/wdt.h>            //Watchdog Headerdatei einbinden, die die Watchdog Funktionen ermöglicht
  2. #include <avr/interrupt.h>      //Die Interrupt Headerdatei wird ebenfalls gebraucht
  3.  
  4. cli();                          // Interrupts global abschalten
  5. wdt_enable (WDTO_15MS);         // Watchdog auf 15ms
  6. while (1);                      // Hier passiert der Interrupt immer nach 15s (while(1); ist eine Endlosschleife)


Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.



Remember my name in a cookie


Code: To highlight particular lines, prefix each line with @@.
Include comments to indicate what you need feedback on.