summaryrefslogtreecommitdiff
path: root/cesar/hal/timer/test/src/leon_timer_stub.c
diff options
context:
space:
mode:
authorlaranjeiro2009-03-27 13:24:42 +0000
committerlaranjeiro2009-03-27 13:24:42 +0000
commitff7ebdf9b134e2cddb51120ff9ac5343bc6dd8e5 (patch)
tree1ad1171c47efe5fa017039560b1735294f412d36 /cesar/hal/timer/test/src/leon_timer_stub.c
parent87f38bdfe918198bc0338a42450d0d81186e9db6 (diff)
hal/timer: Added the possibility to reprogram the timer on the callback
instance. (Closes #313). git-svn-id: svn+ssh://pessac/svn/cesar/trunk@4319 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/hal/timer/test/src/leon_timer_stub.c')
-rw-r--r--cesar/hal/timer/test/src/leon_timer_stub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cesar/hal/timer/test/src/leon_timer_stub.c b/cesar/hal/timer/test/src/leon_timer_stub.c
index 88063e567f..b6d055bd7d 100644
--- a/cesar/hal/timer/test/src/leon_timer_stub.c
+++ b/cesar/hal/timer/test/src/leon_timer_stub.c
@@ -91,6 +91,7 @@ leon_timer_uninit (leon_timer_t *ctx)
void
leon_timer_program (leon_timer_t *ctx, u32 sysdate)
{
+ dbg_assert (ctx->status == false);
ctx->prgm_date = sysdate;
ctx->status = true;
}