summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-12-02 15:17:28 +0100
committerThierry Carré2012-05-10 17:02:55 +0200
commit5e1c4c6f5e2ded3bd7018102b7b0f995d0131948 (patch)
tree2984992961486b10a8b9e7653ff74633fadbf3ad /cesar
parent9d9343899117f23b1826466c888cb9bbe9cc1f21 (diff)
cesar/{bsu,hal/phy/spoc,cp}: add missing function stubs
Diffstat (limited to 'cesar')
-rw-r--r--cesar/bsu/stub/src/bsu.c9
-rw-r--r--cesar/hal/phy/spoc/stub/Module1
-rw-r--r--cesar/hal/phy/spoc/stub/src/stub.c21
-rw-r--r--cesar/mac/ca/stub/Module1
-rw-r--r--cesar/mac/ca/stub/src/ca.c58
5 files changed, 90 insertions, 0 deletions
diff --git a/cesar/bsu/stub/src/bsu.c b/cesar/bsu/stub/src/bsu.c
index 1d7e231c5d..0314cbc8cb 100644
--- a/cesar/bsu/stub/src/bsu.c
+++ b/cesar/bsu/stub/src/bsu.c
@@ -91,3 +91,12 @@ void
bsu_init_beacon_cb (bsu_beacon_processed_t cb, void *cb_ud)
{
}
+
+void
+bsu_update_discover_info (
+ bsu_t *ctx, bsu_beacon_bmi_discover_info_t *discover)
+ __attribute__((weak));
+
+void
+bsu_update_discover_info (
+ bsu_t *ctx, bsu_beacon_bmi_discover_info_t *discover) {}
diff --git a/cesar/hal/phy/spoc/stub/Module b/cesar/hal/phy/spoc/stub/Module
new file mode 100644
index 0000000000..f125dfac73
--- /dev/null
+++ b/cesar/hal/phy/spoc/stub/Module
@@ -0,0 +1 @@
+SOURCES:= stub.c
diff --git a/cesar/hal/phy/spoc/stub/src/stub.c b/cesar/hal/phy/spoc/stub/src/stub.c
new file mode 100644
index 0000000000..4aeb7d432f
--- /dev/null
+++ b/cesar/hal/phy/spoc/stub/src/stub.c
@@ -0,0 +1,21 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2011 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file hal/phy/spoc/stub/src/stub.c
+ * \brief Stubs for SPOC.
+ * \ingroup hal
+ */
+#include "common/std.h"
+#include "hal/phy/spoc/spoc.h"
+
+void
+phy_spoc_compute_all (s32 rho_q30, phy_spoc_coeff_t *coeff)
+ __attribute__((weak));
+
+void
+phy_spoc_compute_all (s32 rho_q30, phy_spoc_coeff_t *coeff) {}
diff --git a/cesar/mac/ca/stub/Module b/cesar/mac/ca/stub/Module
new file mode 100644
index 0000000000..867f3ce354
--- /dev/null
+++ b/cesar/mac/ca/stub/Module
@@ -0,0 +1 @@
+SOURCES:= ca.c
diff --git a/cesar/mac/ca/stub/src/ca.c b/cesar/mac/ca/stub/src/ca.c
new file mode 100644
index 0000000000..e41eb5a498
--- /dev/null
+++ b/cesar/mac/ca/stub/src/ca.c
@@ -0,0 +1,58 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2011 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cesar/mac/ca/stub/src/ca.c
+ * \brief CA stubs.
+ * \ingroup mac_ca
+ *
+ */
+#include "common/std.h"
+#include "mac/ca/ca.h"
+
+ca_schedule_t *
+ca_alloc_get_schedule (ca_t *ctx, uint index) __attribute__ ((weak));
+
+ca_schedule_t *
+ca_alloc_get_schedule (ca_t *ctx, uint index)
+{
+ return INVALID_PTR;
+}
+
+void
+ca_alloc_update_beacon_periods (ca_t *ctx,
+ ca_beacon_period_t *beacon_periods,
+ uint beacon_periods_nb) __attribute__ ((weak));
+
+void
+ca_alloc_update_beacon_periods (ca_t *ctx,
+ ca_beacon_period_t *beacon_periods,
+ uint beacon_periods_nb) { }
+
+void
+ca_mfs_remove (ca_t *ctx, mfs_tx_t *mfs) __attribute__ ((weak));
+
+void
+ca_mfs_remove (ca_t *ctx, mfs_tx_t *mfs) { }
+
+void
+ca_mfs_add (ca_t *ctx, mfs_tx_t *mfs) __attribute__ ((weak));
+
+void
+ca_mfs_add (ca_t *ctx, mfs_tx_t *mfs) { }
+
+void
+ca_mfs_update (ca_t *ctx, mfs_tx_t *mfs) __attribute__ ((weak));
+
+void
+ca_mfs_update (ca_t *ctx, mfs_tx_t *mfs) { }
+
+void
+ca_mfs_hold (ca_t *ctx, mfs_tx_t *mfs) __attribute__ ((weak));
+
+void
+ca_mfs_hold (ca_t *ctx, mfs_tx_t *mfs) { }