aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-13 17:34:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-05-13 17:34:08 +0000
commit44f0f5de70fcba3065397317b153170169824989 (patch)
tree64f633052d08726ad23d3e7cf7ca9d1a70e739ea /os
parent85f17ebe017f0ef2a42d96eb3525346db5b9c65e (diff)
downloadChibiOS-44f0f5de70fcba3065397317b153170169824989.tar.gz
ChibiOS-44f0f5de70fcba3065397317b153170169824989.tar.bz2
ChibiOS-44f0f5de70fcba3065397317b153170169824989.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2952 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/kernel/include/chsys.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/kernel/include/chsys.h b/os/kernel/include/chsys.h
index da13ed22f..37d4cd7ce 100644
--- a/os/kernel/include/chsys.h
+++ b/os/kernel/include/chsys.h
@@ -29,8 +29,11 @@
#ifndef _CHSYS_H_
#define _CHSYS_H_
+#if !CH_NO_IDLE_THREAD || defined(__DOXYGEN__)
/**
* @brief Returns a pointer to the idle thread.
+ * @pre In order to use this function the option @p CH_NO_IDLE_THREAD
+ * must be disabled.
* @note The reference counter of the idle thread is not incremented but
* it is not strictly required being the idle thread a static
* object.
@@ -40,6 +43,7 @@
* @api
*/
#define chSysGetIdleThread() ((Thread *)_idle_thread_wa)
+#endif
/**
* @brief Halts the system.