git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2952 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2011-05-13 17:34:08 +00:00
parent 85f17ebe01
commit 44f0f5de70
1 changed files with 4 additions and 0 deletions

View File

@ -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.