summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halWdt.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:38:10 +0100
committerFlorent Duchon2013-02-13 21:24:56 +0100
commit22abd06132445a55a1a0266897920f26634825c1 (patch)
treeeb56bd5654cd3a443b51ee3ea61cc9bbef6f185e /digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halWdt.h
parentd3807d11ae66d862d5a41cae082288de4b23465c (diff)
digital/beacon: remove obsolete bitcloud stack
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halWdt.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halWdt.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halWdt.h b/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halWdt.h
deleted file mode 100644
index bdf3ee27..00000000
--- a/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halWdt.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/**************************************************************************//**
- \file halWdt.h
-
- \brief Declarations of wdt hardware-dependent module.
-
- \author
- Atmel Corporation: http://www.atmel.com \n
- Support email: avr@atmel.com
-
- Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
- Licensed under Atmel's Limited License Agreement (BitCloudTM).
-
- \internal
- History:
- 1/10/08 A. Khromykh - Created
- ******************************************************************************/
-/******************************************************************************
- * WARNING: CHANGING THIS FILE MAY AFFECT CORE FUNCTIONALITY OF THE STACK. *
- * EXPERT USERS SHOULD PROCEED WITH CAUTION. *
- ******************************************************************************/
-
-#ifndef _HALWDT_H
-#define _HALWDT_H
-
-/******************************************************************************
- Includes section
-******************************************************************************/
-#include <halClkCtrl.h>
-
-/******************************************************************************
- Define(s) section
-******************************************************************************/
-#if defined(__ICCAVR__)
-
-/** Enable the watch dog timer with a specific timeout value */
-#define wdt_enable(timeout) do { \
- uint8_t volatile sreg_temp = SREG; \
- cli(); \
- __watchdog_reset(); \
- WDTCSR |= (1 << WDCE) | (1 << WDE); \
- WDTCSR = (1 << WDE) | timeout; \
- SREG = sreg_temp; \
-} while (0)
-
-#define wdt_disable() MCUSR = 0; \
- WDTCSR |= (1 << WDCE) | (1 << WDE); \
- WDTCSR = 0x00;
-
-#endif
-
-#endif /* _HALWDT_H */
-
-//eof halWdt.h