summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaranjeiro2008-09-09 08:38:08 +0000
committerlaranjeiro2008-09-09 08:38:08 +0000
commit8903532b08763d43d86ade591b14b1fd1c225a10 (patch)
tree415cb14b50ec3f66b9a251e23e5e8af64bfb8f82
parenta16b1be1cef22774ebf8c65cf533bf62a1622451 (diff)
hal/timer: Assert if the instance is alredy programmed on the hal_timer_program.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2901 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cesar/hal/timer/src/timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cesar/hal/timer/src/timer.c b/cesar/hal/timer/src/timer.c
index 790d0958fe..b2d0962147 100644
--- a/cesar/hal/timer/src/timer.c
+++ b/cesar/hal/timer/src/timer.c
@@ -109,6 +109,7 @@ hal_timer_instance_program (hal_timer_t *ctx,
dbg_assert (instance);
dbg_assert (ctx->phy);
dbg_assert (date > phy_date(ctx->phy));
+ dbg_assert (!instance->status);
// initialise the node.
heap_node_init (&instance->node);