summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorschodet2008-07-04 16:35:50 +0000
committerschodet2008-07-04 16:35:50 +0000
commit089ca95b659f035dbfdceeeb978a19c9870dfca4 (patch)
tree249bf6ddff4e82079e7edd4afb352fb7e905a2f6 /cesar
parenta5a32d7c991ae7e865b3ff3afd222ab6f552242c (diff)
* hal/phy:
- added trace timestamps. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2556 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/hal/phy/src/phy.c6
-rw-r--r--cesar/hal/phy/src/trace.c6
-rw-r--r--cesar/hal/phy/src/tx.c3
3 files changed, 9 insertions, 6 deletions
diff --git a/cesar/hal/phy/src/phy.c b/cesar/hal/phy/src/phy.c
index 35f57c7bd1..864ba8ec18 100644
--- a/cesar/hal/phy/src/phy.c
+++ b/cesar/hal/phy/src/phy.c
@@ -112,12 +112,14 @@ phy_isr (cyg_vector_t vector, cyg_addrword_t data)
}
else if (it == LEON_ITC2_IT__PRATIC_ACCESS_CONF)
{
- PHY_TRACE (ACCESS_CONF_CB, phy_date (ctx));
+ PHY_TRACE (ACCESS_CONF_CB, phy_date (ctx),
+ PHY_PRATIC_TIMER_2_EFFECTIVE_DATE);
call_dsr = ctx->access_conf_cb (ctx->user_data);
}
else if (it == LEON_ITC2_IT__PRATIC_INTERRUPT)
{
- PHY_TRACE (EXTRA_TIMER_CB, phy_date (ctx));
+ PHY_TRACE (EXTRA_TIMER_CB, phy_date (ctx),
+ PHY_PRATIC_TIMER_5_EFFECTIVE_DATE);
call_dsr = ctx->extra_timer_cb (ctx->user_data);
}
else
diff --git a/cesar/hal/phy/src/trace.c b/cesar/hal/phy/src/trace.c
index d3274641ff..7575cdf585 100644
--- a/cesar/hal/phy/src/trace.c
+++ b/cesar/hal/phy/src/trace.c
@@ -36,7 +36,7 @@ phy_trace_init (phy_t *ctx)
"fecrate=%u pb_size=%u gil=%u tm=%u"),
PHY_TRACE_EVENT (TX_FRAME,
"tx frame date=%x want_conf=%b "
- "stop_on_prp_lost=%b fc=%x"),
+ "stop_on_prp_lost=%b fc=%x", TIMESTAMP),
PHY_TRACE_EVENT (RX_PARAM, "rx param mode=%u"),
PHY_TRACE_EVENT (RX_ACTIVATE,
"rx activate date=%x flag=%b"),
@@ -48,11 +48,11 @@ phy_trace_init (phy_t *ctx)
PHY_TRACE_EVENT (EXTRA_TIMER_PROGRAM,
"extra timer program %x"),
PHY_TRACE_EVENT (EXTRA_TIMER_CANCEL, "extra timer cancel"),
- PHY_TRACE_EVENT (ACCESS_CONF_CB, "access conf cb", TIMESTAMP),
+ PHY_TRACE_EVENT (ACCESS_CONF_CB, "access conf cb eff=%x", TIMESTAMP),
PHY_TRACE_EVENT (RX_FC_CB, "rx fc cb rx_date=%x", TIMESTAMP),
PHY_TRACE_EVENT (TX_FALSE_ALARM_CB, "tx false alarm cb", TIMESTAMP),
PHY_TRACE_EVENT (DEFERRED_CB, "deferred cb", TIMESTAMP),
- PHY_TRACE_EVENT (EXTRA_TIMER_CB, "extra timer cb", TIMESTAMP),
+ PHY_TRACE_EVENT (EXTRA_TIMER_CB, "extra timer cb eff=%x", TIMESTAMP),
PHY_TRACE_EVENT (ACCESS_BACKOFF_START,
"access backoff start date=%x cap=%u"),
diff --git a/cesar/hal/phy/src/tx.c b/cesar/hal/phy/src/tx.c
index 98c8be716b..2121875c06 100644
--- a/cesar/hal/phy/src/tx.c
+++ b/cesar/hal/phy/src/tx.c
@@ -129,7 +129,8 @@ phy_tx_frame (phy_t *ctx, u32 date, bool want_conf, bool stop_tx_on_prp_lost,
{
dbg_assert (ctx);
dbg_assert (fc_av);
- PHY_TRACE (TX_FRAME, date, want_conf, stop_tx_on_prp_lost, fc_av[0]);
+ PHY_TRACE (TX_FRAME, phy_date (ctx), date, want_conf, stop_tx_on_prp_lost,
+ fc_av[0]);
/* Set FC. */
PHY_DSPSS_TX_FC_AV_0 = fc_av[0];
PHY_DSPSS_TX_FC_AV_1 = fc_av[1];