aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/sleep.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-25 09:34:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-10-25 09:34:25 +0000
commit902470d1c542735b989a727355744a974af43de4 (patch)
tree3b467b808f7323438f8a7625e02da3536dc52d62 /src/include/sleep.h
parent8317685beb67ed9341bc83d03153580b816f452e (diff)
downloadChibiOS-902470d1c542735b989a727355744a974af43de4.tar.gz
ChibiOS-902470d1c542735b989a727355744a974af43de4.tar.bz2
ChibiOS-902470d1c542735b989a727355744a974af43de4.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@481 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/include/sleep.h')
-rw-r--r--src/include/sleep.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/include/sleep.h b/src/include/sleep.h
index 109d9d072..faed26109 100644
--- a/src/include/sleep.h
+++ b/src/include/sleep.h
@@ -46,29 +46,22 @@
extern "C" {
#endif
void chThdSleep(systime_t time);
-#ifdef CH_USE_SYSTEMTIME
-bool_t chSysInTimeWindow(systime_t start, systime_t end);
-#endif /* CH_USE_SYSTEMTIME */
+ bool_t chSysInTimeWindow(systime_t start, systime_t end);
#ifdef __cplusplus
}
#endif
-#ifdef CH_USE_SYSTEMTIME
/**
* 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() rlist.r_stime
+#define chSysGetTime() dlist.dl_stime
/**
* Suspends the invoking thread until the system time arrives to the specified
* value.
- * @note The function is available only if the \p CH_USE_SYSTEMTIME
- * option is enabled in \p chconf.h.
*/
#define chThdSleepUntil(t) { \
chSysLock(); \
@@ -76,7 +69,6 @@ bool_t chSysInTimeWindow(systime_t start, systime_t end);
(systime_t)((t) - chSysGetTime())); \
chSysUnlock(); \
}
-#endif /* CH_USE_SYSTEMTIME */
#endif /* _SLEEP_H_ */