aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/scheduler.h3
-rw-r--r--src/include/sleep.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/include/scheduler.h b/src/include/scheduler.h
index 89bc37292..bb70a83af 100644
--- a/src/include/scheduler.h
+++ b/src/include/scheduler.h
@@ -44,6 +44,9 @@ typedef struct {
#ifndef CH_CURRP_REGISTER_CACHE
Thread *r_current;
#endif
+#ifdef CH_USE_SYSTEMTIME
+ volatile t_time r_stime;
+#endif
} ReadyList;
extern ReadyList rlist;
diff --git a/src/include/sleep.h b/src/include/sleep.h
index e102a03a5..161842a29 100644
--- a/src/include/sleep.h
+++ b/src/include/sleep.h
@@ -32,7 +32,6 @@ extern "C" {
void chThdSleep(t_time time);
#ifdef CH_USE_SYSTEMTIME
void chThdSleepUntil(t_time time);
- t_time chSysGetTime(void);
#endif /* CH_USE_SYSTEMTIME */
#endif /* CH_USE_SLEEP */
#ifdef __cplusplus
@@ -47,7 +46,7 @@ extern "C" {
* @note The function is available only if the \p CH_USE_SYSTEMTIME
* option is enabled in \p chconf.h.
*/
-#define chSysGetTime() stime
+#define chSysGetTime() rlist.r_stime
#endif /* _SLEEP_H_ */