summaryrefslogtreecommitdiff
path: root/cesar/cp/beacon/src/beacon.c
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/beacon/src/beacon.c')
-rw-r--r--cesar/cp/beacon/src/beacon.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index 2b9b051cb5..7c9cd4a55d 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -95,17 +95,6 @@ cp_beacon_fill_discover_info (
discover->present = true;
}
-
-void
-cp_beacon_clk_sync_call_spoc (cp_t *ctx, bool sync, u32 fe_q30)
-{
- dbg_assert (ctx);
- phy_spoc_coeff_t *coeff = blk_alloc ();
- coeff->part2 = blk_alloc();
- phy_spoc_compute_all (fe_q30, coeff);
- pbproc_spoc_coeff_set (ctx->pbproc, sync, coeff);
-}
-
void
cp_beacon_fill (cp_t *ctx, bsu_beacon_t *beacon)
{
@@ -702,8 +691,8 @@ cp_beacon_process_beacon_central (
&& less_mod2p32 (
ctx->beacon.spoc_update_date, phy_date ()))
{
- cp_beacon_clk_sync_call_spoc (
- ctx, true, beacon->params.frequency_error);
+ pbproc_spoc_update (ctx->pbproc, true,
+ beacon->params.frequency_error);
ctx->beacon.spoc_update_date = phy_date ()
+ MAC_MS_TO_TCK (ctx->beacon.spoc_update_interval_ms);
ctx->beacon.spoc_updated = true;
@@ -907,7 +896,7 @@ cp_beacon_process_untracked_avln (cp_t *ctx)
/* Reset SPOC. */
ctx->beacon.spoc_updated = false;
if (ctx->beacon.spoc_update_interval_ms != 0)
- cp_beacon_clk_sync_call_spoc (ctx, false, 0);
+ pbproc_spoc_update (ctx->pbproc, false, 0);
/* Inform BSU. */
bsu_untrack_avln (ctx->bsu);
}