summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorYacine Belkadi2013-05-30 14:14:53 +0200
committerYacine Belkadi2013-06-06 15:49:09 +0200
commit3d2f47a3d5a4d1e0bde6baacbb07c331461d1694 (patch)
treeb2120b4a5d1df3265553bb18f96a93ff0f71e1b3 /cesar
parent7af1a533f0e2eb40949748053531f03aab72eb19 (diff)
cesar/cp/av/beacon/test/utest2: add pbproc_stub.c
Put pbproc stubs in the new pbproc_stub.c instead of phy_stub.c
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp/av/beacon/test/utest2/Makefile2
-rw-r--r--cesar/cp/av/beacon/test/utest2/src/pbproc_stub.c25
-rw-r--r--cesar/cp/av/beacon/test/utest2/src/phy_stub.c10
3 files changed, 26 insertions, 11 deletions
diff --git a/cesar/cp/av/beacon/test/utest2/Makefile b/cesar/cp/av/beacon/test/utest2/Makefile
index 1efd01b985..340170267a 100644
--- a/cesar/cp/av/beacon/test/utest2/Makefile
+++ b/cesar/cp/av/beacon/test/utest2/Makefile
@@ -6,7 +6,7 @@ HOST_PROGRAMS = beacon_scenario
beacon_scenario_SOURCES = beacon_scenario.c scenario_actions.c \
bsu_stub_scenario.c bsu_beacon_stub.c fsm_stub.c \
- phy_stub.c secu_stub.c sta_mgr_stub.c
+ pbproc_stub.c phy_stub.c secu_stub.c sta_mgr_stub.c
beacon_scenario_MODULES = cp/av/beacon cp/av/cco/region/stub \
cp/av/cco/bw/stub cp/av/cco/action/stub \
diff --git a/cesar/cp/av/beacon/test/utest2/src/pbproc_stub.c b/cesar/cp/av/beacon/test/utest2/src/pbproc_stub.c
new file mode 100644
index 0000000000..be80d1b9c0
--- /dev/null
+++ b/cesar/cp/av/beacon/test/utest2/src/pbproc_stub.c
@@ -0,0 +1,25 @@
+/* Cesar project {{{
+ *
+ * Copyright (C) 2013 Mstar Semiconductor
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cp/av/beacon/test/utest2/src/pbproc_stub.c
+ * \brief pbproc stub
+ * \ingroup cp_av_beacon_test_utest2
+ *
+ */
+#include "common/std.h"
+#include "hal/phy/spoc/spoc.h"
+#include "mac/pbproc/pbproc.h"
+
+void
+pbproc_spoc_coeff_set (pbproc_t *pbproc, bool sync, phy_spoc_coeff_t *coeff)
+{
+ dbg_assert (coeff);
+
+ blk_release (coeff->part2);
+ blk_release (coeff);
+}
diff --git a/cesar/cp/av/beacon/test/utest2/src/phy_stub.c b/cesar/cp/av/beacon/test/utest2/src/phy_stub.c
index c23b510591..6c1f58401b 100644
--- a/cesar/cp/av/beacon/test/utest2/src/phy_stub.c
+++ b/cesar/cp/av/beacon/test/utest2/src/phy_stub.c
@@ -16,7 +16,6 @@
#include "hal/phy/phy.h"
#include "bsu/aclf/aclf.h"
#include "hal/phy/spoc/spoc.h"
-#include "mac/pbproc/pbproc.h"
u32
phy_clock_get_zero_cross_captured_date (phy_t *phy)
@@ -31,15 +30,6 @@ phy_date ()
}
void
-pbproc_spoc_coeff_set (pbproc_t *pbproc, bool sync, phy_spoc_coeff_t *coeff)
-{
- dbg_assert (coeff);
-
- blk_release (coeff->part2);
- blk_release (coeff);
-}
-
-void
phy_spoc_compute_all (s32 rho_q30, phy_spoc_coeff_t *coeff)
{
}