summaryrefslogtreecommitdiff
path: root/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
diff options
context:
space:
mode:
authorschodet2010-04-19 13:18:51 +0000
committerschodet2010-04-19 13:18:51 +0000
commitb181dc1bc001f6163180c4786baed9a89ae31e61 (patch)
treeb39194b8755b6f98d04314512a9e9f8b9b156677 /cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
parent505f4ad9eb1a4130b63ec6ab31496a2a295b2edb (diff)
cesar: remove context parameter from phy_date and phy_sysdate, refs #1415
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6931 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/hal/phy/maximus/src/maximus_phy_ctrl.c')
-rw-r--r--cesar/hal/phy/maximus/src/maximus_phy_ctrl.c48
1 files changed, 6 insertions, 42 deletions
diff --git a/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c b/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
index 4405d4586d..79466a080b 100644
--- a/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
+++ b/cesar/hal/phy/maximus/src/maximus_phy_ctrl.c
@@ -2200,28 +2200,10 @@ phy_deferred_schedule (phy_t *ctx)
}
-/**
- * set errno to:
- * - EINVAL if ctx is null
- */
u32
-phy_date (phy_t *ctx)
+phy_date (void)
{
- u32 date = 0;
-
- dbg_assert_ptr(ctx);
- if (NULL == ctx)
- {
- errno = EINVAL;
- station_log(&my_station, STATION_LOG_ERROR, STATION_LOGTYPE_PHY,
- "%s: errno = %d", __FUNCTION__, errno);
- }
- else
- {
- date = (u32)my_station.current_tick_tck;
- }
-
- return date;
+ return my_station.current_tick_tck;
}
@@ -2232,29 +2214,11 @@ phy_seed (void)
}
-/**
- * set errno to:
- * - EINVAL if ctx is null
- */
u32
-phy_sysdate (phy_t *ctx)
+phy_sysdate (void)
{
- u32 sysdate = 0;
-
- dbg_assert_ptr(ctx);
- if (NULL == ctx)
- {
- errno = EINVAL;
- station_log(&my_station, STATION_LOG_ERROR, STATION_LOGTYPE_PHY,
- "%s: errno = %d", __FUNCTION__, errno);
- }
- else
- {
- // TODO (for the moment, return the current date)
- sysdate = (u32)my_station.current_tick_tck;
- }
-
- return sysdate;
+ // TODO (for the moment, return the current date)
+ return my_station.current_tick_tck;
}
@@ -2902,7 +2866,7 @@ phy_rx_prepare_sound (phy_t *ctx, uint nb_pb, u32 mod_fecrate_pb_size,
mod_fecrate_pb_size);
phy_pb_size_t pb_size = BF_GET (PHY_COMBO_PARAMS__PB_SIZE,
mod_fecrate_pb_size);
- u32 end_date = phy_date (ctx) + 1; // TODO: remove this.
+ u32 end_date = phy_date () + 1; // TODO: remove this.
/* PBP prepares HW for reception.
* This function is called when a FC is received, in the 'rx_fc_cb'. */