summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/ConfigServer/include/csPersistentMem.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/ConfigServer/include/csPersistentMem.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/ConfigServer/include/csPersistentMem.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/ConfigServer/include/csPersistentMem.h b/digital/zigbit/bitcloud/stack/Components/ConfigServer/include/csPersistentMem.h
new file mode 100644
index 00000000..f065a345
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/ConfigServer/include/csPersistentMem.h
@@ -0,0 +1,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_ */