summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halEeprom.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halEeprom.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halEeprom.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halEeprom.h b/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halEeprom.h
deleted file mode 100644
index 0ca06bfb..00000000
--- a/digital/beacon/src/Bitcloud_stack/Components/HAL/avr/atmega1281/common/include/halEeprom.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/**************************************************************************//**
- \file halEeprom.h
-
- \brief Provides interface for the access to hardware dependent
- EEPROM 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 _HALEEPROM_H
-#define _HALEEPROM_H
-
-/******************************************************************************
- Includes section
-******************************************************************************/
-#include <halTaskManager.h>
-#include <eeprom.h>
-
-/******************************************************************************
- Define(s) section
-******************************************************************************/
-/** \brief the mask to rise interrupt when operation on EEPROM was completed */
-#define HAL_EEPROM_WRITE_MASK_INT (1 << EEMPE | 1 << EERIE)
-#define HAL_EEPROM_WRITE_MASK (1 << EEMPE)
-
-/******************************************************************************
- Prototypes section
-******************************************************************************/
-/**************************************************************************//**
-\brief Writes a byte to EEPROM.
-\param[in]
- EECRMask - mask that define capability of interrupt after byte writing.
-\param[in]
- address - address of byte
-\param[in]
- data - data.
-******************************************************************************/
-void halEepromWrite(uint8_t EECRMask, uint16_t address, uint8_t data);
-
-/******************************************************************************
- Inline static functions section
-******************************************************************************/
-/**************************************************************************//**
-\brief Waits completion of previous operation.
-******************************************************************************/
-INLINE void halWaitEepromReady(void)
-{
- while (EECR & (1 << EEPE)); // wait for completion of previous write
-}
-
-/**************************************************************************//**
-\brief Reads byte from EEPROM.
-\param[in]
- address -address of byte.
-\return
- a read byte.
-******************************************************************************/
-INLINE uint8_t halReadEeprom(uint16_t address)
-{
- EEAR = address;
- EECR |= (1 << EERE);
- return EEDR;
-}
-
-/**************************************************************************//**
-\brief Posts the task to taskhandler that "EEPROM ready"
- interrupt has occured.
-******************************************************************************/
-INLINE void halSigEepromReadyInterrupt(void)
-{
- halPostTask3(HAL_EE_READY);
-}
-#endif /*_HALEEPROM_H*/
-//eof halEeprom.h