diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-05 12:21:25 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-10-05 12:21:25 +0000 |
commit | 955b6b0d639b8f3daca8d0002ba002eee2745b41 (patch) | |
tree | 351f6bbc1d6b0e2a3d040d160b0407dfaceec7e7 /os/rt | |
parent | ba87fbf88a47712a1cac9c86cd670417a132b719 (diff) | |
download | ChibiOS-955b6b0d639b8f3daca8d0002ba002eee2745b41.tar.gz ChibiOS-955b6b0d639b8f3daca8d0002ba002eee2745b41.tar.bz2 ChibiOS-955b6b0d639b8f3daca8d0002ba002eee2745b41.zip |
Changed in chSysGetIdleThreadX().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7366 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt')
-rw-r--r-- | os/rt/include/chsys.h | 19 | ||||
-rw-r--r-- | os/rt/include/chthreads.h | 19 |
2 files changed, 19 insertions, 19 deletions
diff --git a/os/rt/include/chsys.h b/os/rt/include/chsys.h index 4371feb87..936b0fea5 100644 --- a/os/rt/include/chsys.h +++ b/os/rt/include/chsys.h @@ -387,6 +387,25 @@ static inline void chSysUnconditionalUnlock(void) { chSysUnlock();
}
+#if !CH_CFG_NO_IDLE_THREAD || defined(__DOXYGEN__)
+/**
+ * @brief Returns a pointer to the idle thread.
+ * @pre In order to use this function the option @p CH_CFG_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.
+ *
+ * @return Pointer to the idle thread.
+ *
+ * @xclass
+ */
+static inline thread_t *chSysGetIdleThreadX(void) {
+
+ return ch.rlist.r_queue.p_prev;
+}
+#endif /* !CH_CFG_NO_IDLE_THREAD */
+
#endif /* _CHSYS_H_ */
/** @} */
diff --git a/os/rt/include/chthreads.h b/os/rt/include/chthreads.h index a86a4c7ec..fa093b09c 100644 --- a/os/rt/include/chthreads.h +++ b/os/rt/include/chthreads.h @@ -277,25 +277,6 @@ static inline thread_t *chThdGetSelfX(void) { return ch.rlist.r_current;
}
-#if !CH_CFG_NO_IDLE_THREAD || defined(__DOXYGEN__)
-/**
- * @brief Returns a pointer to the idle thread.
- * @pre In order to use this function the option @p CH_CFG_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.
- *
- * @return Pointer to the idle thread.
- *
- * @xclass
- */
-static inline thread_t *chThdGetIdleX(void) {
-
- return ch.rlist.r_queue.p_prev;
-}
-#endif /* !CH_CFG_NO_IDLE_THREAD */
-
/**
* @brief Returns the current thread priority.
* @note Can be invoked in any context.
|