aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/delta.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-06 09:03:13 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-07-06 09:03:13 +0000
commit17238a46dfda97b64b3f3f35eb85cfdd37db2f92 (patch)
treea83e0465f3a042924079d34eb1fd16ac576c9933 /src/include/delta.h
parent4507047a830c080ebaf43526a043657a6580d088 (diff)
downloadChibiOS-17238a46dfda97b64b3f3f35eb85cfdd37db2f92.tar.gz
ChibiOS-17238a46dfda97b64b3f3f35eb85cfdd37db2f92.tar.bz2
ChibiOS-17238a46dfda97b64b3f3f35eb85cfdd37db2f92.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@337 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/delta.h')
-rw-r--r--src/include/delta.h8
1 files changed, 3 insertions, 5 deletions
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); \
} \