summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/ConfigServer/include/csPersistentMem.h
blob: f065a345428c3b78253ac203961da16ea31879c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/******************************************************************************
  \file csPersistentMem.h

  \brief
    Configuration Server persistent memory to store in EEPROM

  \author
    Atmel Corporation: http://www.atmel.com \n
    Support email: avr@atmel.com

  Copyright (c) 2010 , Atmel Corporation. All rights reserved.
  Licensed under Atmel's Limited License Agreement (BitCloudTM).

  \internal
    History:
    28.10.10 A. Razinkov - Created.
******************************************************************************/

#ifndef _CSPERSISTENTMEM_H_
#define _CSPERSISTENTMEM_H_

/******************************************************************************
                    Includes section
******************************************************************************/
#include <configServer.h>

/******************************************************************************
                   Defines section
******************************************************************************/
// Offsets in EEPROM
#define SYSTEM_BASE_EEPROM_ADDRESS    0x0004

/******************************************************************************
                    Types section
******************************************************************************/
typedef struct _CS_PersistantData_t
{
  void*   value;
  int16_t offset;
} CS_PersistantData_t;

#endif /* _CSPERSISTENTMEM_H_ */