wdt_avr.h
Go to the documentation of this file.00001 00045 #ifndef DRV_WDT_AVR_H 00046 #define DRV_WDT_AVR_H 00047 00048 #include "cfg/cfg_wdt.h" 00049 00050 #include <cfg/compiler.h> // INLINE 00051 00052 #include <avr/io.h> 00053 #include <avr/wdt.h> 00054 00060 // void wdt_reset(void) 00061 00081 INLINE void wdt_start(uint32_t _timeout) 00082 { 00083 uint8_t timeout = _timeout; 00084 00085 wdt_enable(timeout); 00086 } 00087 00091 INLINE void wdt_stop(void) 00092 { 00093 wdt_disable(); 00094 } 00095 00096 00097 #endif /* DRV_WDT_AVR_H */
