aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/threads.h')
-rw-r--r--src/include/threads.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/threads.h b/src/include/threads.h
index b939ba3a1..c58ddc76a 100644
--- a/src/include/threads.h
+++ b/src/include/threads.h
@@ -266,6 +266,12 @@ extern "C" {
chThdCreateStatic(workspace, wsize, prio, pf, NULL)
/**
+ * Suspends the invoking thread for the specified time.
+ * @param time the delay in system ticks
+ */
+#define chThdSleepS(time) chSchGoSleepTimeoutS(PRSLEEP, time)
+
+/**
* Delays the invoking thread for the specified number of seconds.
* @note The specified time is rounded up to a value allowed by the real
* system clock.