4 * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See devlib/README for information.
10 * \author Bernardo Innocenti <bernie@develer.com>
12 * \brief Watchdog interface
17 *#* Revision 1.1 2004/10/26 08:34:47 bernie
18 *#* New DevLib module.
27 #include <macros.h> // BV()
30 * Reset the watchdog timer.
32 INLINE void wdt_reset(void)
34 __asm__ __volatile__ ("wdr");
38 * Set watchdog timer timeout.
40 * \param timeout 0: 16.3ms, 7: 2.1s
42 INLINE void wdt_init(uint8_t timeout)
45 WDTCR |= BV(WDCE) | BV(WDE);
52 INLINE void wdt_start(void)
61 INLINE void wdt_stop(void)
64 WDTCR |= BV(WDCE) | BV(WDE);
71 #endif /* DRV_WDT_H */