aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-21 19:06:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-21 19:06:46 +0000
commitb3b1028036a2f18327fb97f2126192a2ace62bb2 (patch)
tree4266ff20b2a8b76a331572557a19e64b48f56738 /os/kernel/include
parent17f0815d52977bd1e3e9e662d2ffdccbaf77a6bd (diff)
downloadChibiOS-b3b1028036a2f18327fb97f2126192a2ace62bb2.tar.gz
ChibiOS-b3b1028036a2f18327fb97f2126192a2ace62bb2.tar.bz2
ChibiOS-b3b1028036a2f18327fb97f2126192a2ace62bb2.zip
TIME_IMMEDIATE and TIME_INFINITE values swapped.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2757 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include')
-rw-r--r--os/kernel/include/chschd.h4
-rw-r--r--os/kernel/include/chthreads.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/os/kernel/include/chschd.h b/os/kernel/include/chschd.h
index a9283c290..5d3aee7a0 100644
--- a/os/kernel/include/chschd.h
+++ b/os/kernel/include/chschd.h
@@ -48,13 +48,13 @@
* @note Not all functions accept @p TIME_IMMEDIATE as timeout parameter,
* see the specific function documentation.
*/
-#define TIME_IMMEDIATE ((systime_t)-1)
+#define TIME_IMMEDIATE ((systime_t)0)
/**
* @brief Infinite time specification for all the syscalls with a timeout
* specification.
*/
-#define TIME_INFINITE ((systime_t)0)
+#define TIME_INFINITE ((systime_t)-1)
/**
* @brief Returns the priority of the first thread on the given ready list.
diff --git a/os/kernel/include/chthreads.h b/os/kernel/include/chthreads.h
index 677f0be58..c22255ad0 100644
--- a/os/kernel/include/chthreads.h
+++ b/os/kernel/include/chthreads.h
@@ -292,9 +292,7 @@ extern "C" {
* handled as follow:
* - @a TIME_INFINITE the thread enters an infinite sleep
* state.
- * - @a TIME_IMMEDIATE this value is accepted but
- * interpreted as a normal time specification not as
- * an immediate timeout specification.
+ * - @a TIME_IMMEDIATE this value is not allowed.
* .
*
* @sclass