From 866e26bd215e035459fce31eebd3ae9ac4b05c1c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 23 Dec 2008 08:47:07 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@541 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/threads.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include/threads.h') 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 @@ -265,6 +265,12 @@ extern "C" { #define chThdCreateFast(prio, workspace, wsize, pf) \ 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 -- cgit v1.2.3