summaryrefslogtreecommitdiff
path: root/cesar/cp/beacon/test/override/cp/inc/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/beacon/test/override/cp/inc/context.h')
-rw-r--r--cesar/cp/beacon/test/override/cp/inc/context.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/cesar/cp/beacon/test/override/cp/inc/context.h b/cesar/cp/beacon/test/override/cp/inc/context.h
index dd98294eb0..5a9296e3cc 100644
--- a/cesar/cp/beacon/test/override/cp/inc/context.h
+++ b/cesar/cp/beacon/test/override/cp/inc/context.h
@@ -38,6 +38,22 @@
#include "cl/cl.h"
#include "mac/common/config.h"
#include "mac/sar/sar.h"
+#include "beacon/beacon.h"
+
+enum cp_shared_mem_slot_id_t
+{
+ CP_SHARED_MEM_SLOT_1 = 0,
+ CP_SHARED_MEM_SLOT_2,
+ CP_SHARED_MEM_SLOT_NB
+};
+typedef enum cp_shared_mem_slot_id_t cp_shared_mem_slot_id_t;
+
+struct shared_mem_t
+{
+ beacon_t bsu;
+};
+typedef struct shared_mem_t shared_mem_t;
+
struct cp_t
{
@@ -56,6 +72,10 @@ struct cp_t
cl_t *cl;
mac_config_t *mac_config;
sar_t *sar;
+
+ /** Shared memory. */
+ shared_mem_t shared_mem[CP_SHARED_MEM_SLOT_NB];
+ cp_shared_mem_slot_id_t shared_mem_slot_id;
};
#endif /* overide_cp_inc_context_h */