From 17238a46dfda97b64b3f3f35eb85cfdd37db2f92 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 6 Jul 2008 09:03:13 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@337 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/delta.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/include/delta.h b/src/include/delta.h index 5dd748471..66f6fcc0a 100644 --- a/src/include/delta.h +++ b/src/include/delta.h @@ -53,16 +53,14 @@ struct VirtualTimer { * Delta List header. * @note The delta list is implemented as a double link bidirectional list in * order to make the unlink time constant, the reset of a virtual timer - * is often used in the code. An slower implementation using a single - * link list is possible and might be added later with a - * \p CH_OPTIMIZE_SPACE option. + * is often used in the code. */ typedef struct { /** Next timer in the list (the one that will be triggered next).*/ VirtualTimer *dl_next; /** Last timer in the list.*/ VirtualTimer *dl_prev; - /** Not used but it must be set to /p MAXDELTA.*/ + /** Not used but it must be set to -1.*/ systime_t dl_dtime; } DeltaList; @@ -75,7 +73,7 @@ extern DeltaList dlist; --dlist.dl_next->vt_dtime; \ while (!(vtp = dlist.dl_next)->vt_dtime) { \ vtfunc_t fn = vtp->vt_func; \ - vtp->vt_func = 0; \ + vtp->vt_func = NULL; \ (vtp->vt_next->vt_prev = (void *)&dlist)->vt_next = vtp->vt_next; \ fn(vtp->vt_par); \ } \ -- cgit v1.2.3