diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-03-10 15:31:58 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-03-10 15:31:58 +0000 |
commit | da4f9beaee8f1f8f344012b4d9a122462a6c802e (patch) | |
tree | ecb2cc0d9efd39801f17f8262dc722e48f50456e /src/include/vt.h | |
parent | a2bab9c63d848ccfce1440afd40e1eed7b2955ef (diff) | |
download | ChibiOS-da4f9beaee8f1f8f344012b4d9a122462a6c802e.tar.gz ChibiOS-da4f9beaee8f1f8f344012b4d9a122462a6c802e.tar.bz2 ChibiOS-da4f9beaee8f1f8f344012b4d9a122462a6c802e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@827 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/vt.h')
-rw-r--r-- | src/include/vt.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/include/vt.h b/src/include/vt.h index e104bb101..e736e1af0 100644 --- a/src/include/vt.h +++ b/src/include/vt.h @@ -104,7 +104,7 @@ extern "C" { void vt_init(void);
void chVTSetI(VirtualTimer *vtp, systime_t time, vtfunc_t vtfunc, void *par);
void chVTResetI(VirtualTimer *vtp);
- bool_t chSysInTimeWindow(systime_t start, systime_t end);
+ bool_t chTimeIsWithin(systime_t start, systime_t end);
#ifdef __cplusplus
}
#endif
@@ -118,8 +118,20 @@ extern "C" { * @note The counter can reach its maximum and then returns to zero.
* @note This function is designed to work with the @p chThdSleepUntil().
*/
-#define chSysGetTime() (vtlist.vt_systime)
+#define chTimeNow() (vtlist.vt_systime)
+/**
+ * Provided for backward compatibility.
+ * @deprecated Will be removed in 1.2.0.
+ */
+#define chSysGetTime() chTimeNow()
+
+/**
+ * Provided for backward compatibility.
+ * @deprecated Will be removed in 1.2.0.
+ */
+#define chSysInTimeWindow(start, end) chTimeIsWithin(start, end)
+
#endif /* _VT_H_ */
/** @} */
|