summaryrefslogtreecommitdiff
path: root/cleopatre/plcdrv/arm/utests/inc/hal_utests.h
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/plcdrv/arm/utests/inc/hal_utests.h')
-rw-r--r--cleopatre/plcdrv/arm/utests/inc/hal_utests.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/cleopatre/plcdrv/arm/utests/inc/hal_utests.h b/cleopatre/plcdrv/arm/utests/inc/hal_utests.h
new file mode 100644
index 0000000000..276cc0c846
--- /dev/null
+++ b/cleopatre/plcdrv/arm/utests/inc/hal_utests.h
@@ -0,0 +1,40 @@
+#ifndef hal_utests_h
+#define hal_utests_h
+/* Cleopatre project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file hal_utests.h
+ * \brief interfaces for unitary tests of hal layer
+ * \ingroup Cleopatre - PlcDrv
+ *
+ * this file content interfaces and exported macros, variables... For the
+ * unitary tests of hal layer
+ */
+
+#include <stdlib.h>
+#include <stdint.h>
+#include <string.h>
+#include "common.h"
+#include "registers.h"
+
+/****************************************************/
+/***** HARDWARE STUB *****/
+/****************************************************/
+static uint32_t MBX_ring[(A2L_RING_SIZE+L2A_RING_SIZE)/4]; //4 for sizeof(int)
+static uint32_t MBX_registers[NB_MBX_REGISTERS];
+
+/****************************************************/
+/***** LINUX STUB *****/
+/****************************************************/
+#define printk(...)
+
+/****************************************************/
+/***** SPECIFICS VARIABLES *****/
+/****************************************************/
+
+#endif /* hal_utests_h */