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