summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/ConfigServer/include/csPersistentMem.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-03-18 12:22:02 +0100
committerFlorent Duchon2012-03-18 16:30:37 +0100
commita54ad9edce697133a024aff096e50f7e4f389d5b (patch)
tree9b87c5f8fce3fc0127a2e36b8a809508c1a3298b /digital/beacon/src/Bitcloud_stack/Components/ConfigServer/include/csPersistentMem.h
parent8ac7f52728a8ec2a09a6eeebc3cf5d4afff9b485 (diff)
digital/beacon: import Zigbit stack (bitcloud) & avr sources
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/ConfigServer/include/csPersistentMem.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/ConfigServer/include/csPersistentMem.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/ConfigServer/include/csPersistentMem.h b/digital/beacon/src/Bitcloud_stack/Components/ConfigServer/include/csPersistentMem.h
new file mode 100644
index 00000000..f065a345
--- /dev/null
+++ b/digital/beacon/src/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_ */