summaryrefslogtreecommitdiff
path: root/cesar/hal/leon/unit-test/src
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hal/leon/unit-test/src')
-rw-r--r--cesar/hal/leon/unit-test/src/leon_timer.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/cesar/hal/leon/unit-test/src/leon_timer.c b/cesar/hal/leon/unit-test/src/leon_timer.c
index 8b5ffb27db..b59251e6df 100644
--- a/cesar/hal/leon/unit-test/src/leon_timer.c
+++ b/cesar/hal/leon/unit-test/src/leon_timer.c
@@ -27,7 +27,6 @@ struct leon_timer_t
{
leon_timer_cb_t cb;
void *user_data;
- phy_t *phy;
uint delay;
uint status;
};
@@ -68,16 +67,13 @@ my_leon (cyg_addrword_t data)
* Initialise Leon timer.
* \param user_data user data passed to the callback
* \param cb timer callback, called in ISR context
- * \param phy phy context used to get the phy date
* \return the newly created context
*/
leon_timer_t *
-leon_timer_init (void *user_data, leon_timer_cb_t cb, phy_t *phy)
+leon_timer_init (void *user_data, leon_timer_cb_t cb)
{
dbg_assert (cb);
- dbg_assert (phy);
- leon_timer_global.phy = phy;
leon_timer_global.cb = cb;
leon_timer_global.user_data = user_data;
@@ -112,9 +108,9 @@ void
leon_timer_program (leon_timer_t *ctx, u32 sysdate)
{
dbg_assert (ctx);
- dbg_assert (sysdate > phy_date(ctx->phy));
+ dbg_assert (sysdate > phy_date ());
- ctx->delay = sysdate - phy_date (ctx->phy);
+ ctx->delay = sysdate - phy_date ();
ctx->status = true;
cyg_thread_resume (my_leon_handle);
}