From b181dc1bc001f6163180c4786baed9a89ae31e61 Mon Sep 17 00:00:00 2001 From: schodet Date: Mon, 19 Apr 2010 13:18:51 +0000 Subject: 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 --- cesar/hal/leon/unit-test/src/leon_timer.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'cesar/hal/leon/unit-test/src/leon_timer.c') 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); } -- cgit v1.2.3