diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-13 16:38:23 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-13 16:38:23 +0000 |
commit | e776216d02920673266e31d553078f4edec4a264 (patch) | |
tree | 3234cf9898f59dec30092da35cc4f1dd76f77b03 /src/include/sleep.h | |
parent | 95618293b7e096240966c715eb9f5f2f420f9588 (diff) | |
download | ChibiOS-e776216d02920673266e31d553078f4edec4a264.tar.gz ChibiOS-e776216d02920673266e31d553078f4edec4a264.tar.bz2 ChibiOS-e776216d02920673266e31d553078f4edec4a264.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@89 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/sleep.h')
-rw-r--r-- | src/include/sleep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/sleep.h b/src/include/sleep.h index e3fa2ffda..e102a03a5 100644 --- a/src/include/sleep.h +++ b/src/include/sleep.h @@ -39,6 +39,16 @@ extern "C" { }
#endif
+/**
+ * Returns the number of system ticks since the \p chSysInit() invocation.
+ * @return the system ticks number
+ * @note The counter can reach its maximum and then returns to zero.
+ * @note This function is designed to work with the \p chThdSleepUntil().
+ * @note The function is available only if the \p CH_USE_SYSTEMTIME
+ * option is enabled in \p chconf.h.
+ */
+#define chSysGetTime() stime
+
#endif /* _SLEEP_H_ */
/** @} */
|