X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=drv%2Fwdt.h;h=b8a54aaafecc231f4febdb9284a0bacc6e70f3cf;hb=9ba9dcf2a59a952609e19154e11de3e2478cbf42;hp=bfe3ce8891abf4c1c3b9021adab60cb56d36f5d2;hpb=8d0d38ea04a80d9fd20c32bc6e1b81e51ac87d14;p=bertos.git diff --git a/drv/wdt.h b/drv/wdt.h old mode 100755 new mode 100644 index bfe3ce88..b8a54aaa --- a/drv/wdt.h +++ b/drv/wdt.h @@ -1,8 +1,33 @@ -/*! +/** * \file * * * \version $Id$ @@ -14,6 +39,12 @@ /*#* *#* $Log$ + *#* Revision 1.12 2007/06/07 14:35:12 batt + *#* Merge from project_ks. + *#* + *#* Revision 1.11 2006/07/19 12:56:26 bernie + *#* Convert to new Doxygen style. + *#* *#* Revision 1.10 2006/05/18 00:38:42 bernie *#* Work around missing ARCH_FREERTOS symbol. *#* @@ -72,6 +103,9 @@ #elif CPU_AVR #include #include // BV() + #if CPU_AVR_ATMEGA1281 // Name is different in atmega1281 + #define WDTCR WDTCSR + #endif #elif defined(ARCH_FREERTOS) && (ARCH & ARCH_FREERTOS) #include /* taskYIELD() */ #else @@ -79,7 +113,7 @@ #endif #endif /* CONFIG_WATCHDOG */ -/*! +/** * Reset the watchdog timer. */ INLINE void wdt_reset(void) @@ -102,7 +136,7 @@ INLINE void wdt_reset(void) #endif /* CONFIG_WATCHDOG */ } -/*! +/** * Set watchdog timer timeout. * * \param timeout 0: 16.3ms, 7: 2.1s