summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halAppClock.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halAppClock.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halAppClock.h101
1 files changed, 0 insertions, 101 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halAppClock.h b/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halAppClock.h
deleted file mode 100644
index 47a90fac..00000000
--- a/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halAppClock.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/**************************************************************************//**
- \file halAppClock.h
-
- \brief Declarations of appTimer 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:
- 5/12/07 A. Khromykh - Created
- ******************************************************************************/
-/******************************************************************************
- * WARNING: CHANGING THIS FILE MAY AFFECT CORE FUNCTIONALITY OF THE STACK. *
- * EXPERT USERS SHOULD PROCEED WITH CAUTION. *
- ******************************************************************************/
-
-#ifndef _HALAPPCLOCK_H
-#define _HALAPPCLOCK_H
-
-/******************************************************************************
- Includes section
-******************************************************************************/
-#include <halClkCtrl.h>
-#include <halTaskManager.h>
-
-/******************************************************************************
- Define(s) section
-******************************************************************************/
-/** \brief system timer interval in ms */
-#define HAL_APPTIMERINTERVAL 10ul
-/** \brief frequency prescaler for system timer */
-#define TIMER_FREQUENCY_PRESCALER 8
-/** \brief timer counter top value */
-#define TOP_TIMER_COUNTER_VALUE ((F_CPU/1000ul) / TIMER_FREQUENCY_PRESCALER) * HAL_APPTIMERINTERVAL
-/** \brief cpu clk / 8 */
-#define HAL_CLOCK_SELECTION_MASK (1 << CS11)
-
-/******************************************************************************
- Prototypes section
-******************************************************************************/
-/**************************************************************************//**
-\brief Initialization appTimer clock.
-******************************************************************************/
-void halInitAppClock(void);
-
-/**************************************************************************//**
-\brief Synchronization system time which based on application timer.
-******************************************************************************/
-void halAppSystemTimeSynchronize(void);
-
-/**************************************************************************//**
-\brief Return time of sleep timer.
-
-\return
- time in ms.
-******************************************************************************/
-uint32_t halGetTimeOfAppTimer(void);
-
-/**************************************************************************//**
-\brief Return system time in us
-
-\param[out]
- mem - memory for system time
-******************************************************************************/
-void halGetSystemTimeUs(uint64_t *mem);
-
-/**************************************************************************//**
-\brief Takes account of the sleep interval.
-
-\param[in]
- interval - time of sleep
-******************************************************************************/
-void halAdjustSleepInterval(uint32_t interval);
-
-/******************************************************************************
- Inline static functions prototypes section.
-******************************************************************************/
-/**************************************************************************//**
-\brief Enables appTimer clock.
-******************************************************************************/
-INLINE void halStartAppClock(void)
-{
- TCCR4B |= HAL_CLOCK_SELECTION_MASK;
-}
-
-/**************************************************************************//**
-\brief Disables appTimer clock.
-******************************************************************************/
-INLINE void halStopAppClock(void)
-{
- TCCR4B &= ~HAL_CLOCK_SELECTION_MASK; // stop the timer
-}
-
-#endif /*_HALAPPCLOCK_H*/
-
-// eof halAppClock.h