summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorNicolas Schodet2010-12-08 11:39:44 +0100
committerNicolas Schodet2010-12-08 17:58:45 +0100
commit879c5d0937bbfc176170ae51c571245e32016183 (patch)
treeb759d19c247de3aeefb1e6e0b7caf16e3929359e /cesar
parente523a6daf7590c1e6b41ff0f76f0fc1d12056d13 (diff)
cesar/hal/phy/test/phy: fix tonemask/freqerror dependencies
Diffstat (limited to 'cesar')
-rw-r--r--cesar/hal/phy/test/phy/doc/test_phy.txt4
-rw-r--r--cesar/hal/phy/test/phy/src/test_phy.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/cesar/hal/phy/test/phy/doc/test_phy.txt b/cesar/hal/phy/test/phy/doc/test_phy.txt
index 2888de4c9f..86b1252c32 100644
--- a/cesar/hal/phy/test/phy/doc/test_phy.txt
+++ b/cesar/hal/phy/test/phy/doc/test_phy.txt
@@ -475,6 +475,8 @@ TestPhy.set_tonemask
This function change the tonemask used by Test Phy.
+WARNING: This will reset SPOC frequency error to default value!
+
Parameters
~~~~~~~~~~
@@ -489,6 +491,8 @@ TestPhy.set_freqerror
This function sets SPOC to handle the given frequency error.
+WARNING: This must be done after tonemask is set!
+
Parameters
~~~~~~~~~~
diff --git a/cesar/hal/phy/test/phy/src/test_phy.c b/cesar/hal/phy/test/phy/src/test_phy.c
index 83571b5802..66481da416 100644
--- a/cesar/hal/phy/test/phy/src/test_phy.c
+++ b/cesar/hal/phy/test/phy/src/test_phy.c
@@ -437,7 +437,8 @@ test_phy_set_freqerror_fcall (fcall_ctx_t *fcall, fcall_param_t **param,
phy_spoc_compute_all (rho_q30, &coeff);
phy_spoc_tx_set (ctx->phy, &coeff);
phy_spoc_rx_set (ctx->phy, &coeff);
- phy_set_tonemask (ctx->phy, ctx->tonemask, ctx->tonemask_carrier_nb);
+ phy_prepare (ctx->phy, PHY_PREPARE_TYPE_PREAMBLE, true);
+ phy_prepare (ctx->phy, PHY_PREPARE_TYPE_PRS, true);
/* Return. */
fcall_param_reset (*param);
return 0;