diff options
Diffstat (limited to 'src/include/sleep.h')
-rw-r--r-- | src/include/sleep.h | 12 |
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_ */
|