watchdog into dedicated file

This commit is contained in:
Bernhard Kubicek
2011-11-06 14:22:15 +01:00
parent 2afb7bd4cf
commit e8092898b1
4 changed files with 73 additions and 55 deletions

10
watchdog.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef __WATCHDOGH
#define __WATCHDOGH
#ifdef
/// intialise watch dog with a 1 sec interrupt time
void wd_init();
/// pad the dog/reset watchdog. MUST be called at least every second after the first wd_init or avr will go into emergency procedures..
void wd_reset();
#endif