aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-14 10:37:39 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-11-14 10:37:39 +0000
commitca00f534f71568901028a117860d2d8dd5bfa29f (patch)
tree6276a2c31a3bf7693a5c0ce37db68923631a9fa7 /os/rt/include
parente86fc6ad21d12a2f87239fa953b2bb6ac3da28b5 (diff)
downloadChibiOS-ca00f534f71568901028a117860d2d8dd5bfa29f.tar.gz
ChibiOS-ca00f534f71568901028a117860d2d8dd5bfa29f.tar.bz2
ChibiOS-ca00f534f71568901028a117860d2d8dd5bfa29f.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6473 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/include')
-rw-r--r--os/rt/include/chschd.h19
-rw-r--r--os/rt/include/chvt.h35
2 files changed, 33 insertions, 21 deletions
diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h
index 718cedd58..bcca26d85 100644
--- a/os/rt/include/chschd.h
+++ b/os/rt/include/chschd.h
@@ -56,25 +56,6 @@
#define ABSPRIO 255 /**< @brief Greatest possible priority. */
/** @} */
-/**
- * @name Special time constants
- * @{
- */
-/**
- * @brief Zero time specification for some functions with a timeout
- * specification.
- * @note Not all functions accept @p TIME_IMMEDIATE as timeout parameter,
- * see the specific function documentation.
- */
-#define TIME_IMMEDIATE ((systime_t)0)
-
-/**
- * @brief Infinite time specification for all functions with a timeout
- * specification.
- */
-#define TIME_INFINITE ((systime_t)-1)
-/** @} */
-
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index 66eda87f3..ea84df9fd 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -33,6 +33,27 @@
/* Module constants. */
/*===========================================================================*/
+/**
+ * @name Special time constants
+ * @{
+ */
+/**
+ * @brief Zero time specification for some functions with a timeout
+ * specification.
+ * @note Not all functions accept @p TIME_IMMEDIATE as timeout parameter,
+ * see the specific function documentation.
+ */
+#define TIME_IMMEDIATE ((systime_t)0)
+
+/**
+ * @brief Infinite time specification for all functions with a timeout
+ * specification.
+ * @note Not all functions accept @p TIME_INFINITE as timeout parameter,
+ * see the specific function documentation.
+ */
+#define TIME_INFINITE ((systime_t)-1)
+/** @} */
+
/*===========================================================================*/
/* Module pre-compile time settings. */
/*===========================================================================*/
@@ -350,7 +371,12 @@ static inline void chVTReset(virtual_timer_t *vtp) {
* or @p chVTDoSetI().
*
* @param[in] vtp the @p virtual_timer_t structure pointer
- * @param[in] delay the number of ticks before the operation timeouts.
+ * @param[in] delay the number of ticks before the operation timeouts, the
+ * special values are handled as follow:
+ * - @a TIME_INFINITE is allowed but interpreted as a
+ * normal time specification.
+ * - @a TIME_IMMEDIATE this value is not allowed.
+ * .
* @param[in] vtfunc the timer callback function. After invoking the
* callback the timer is disabled and the structure can
* be disposed or reused.
@@ -374,7 +400,12 @@ static inline void chVTSetI(virtual_timer_t *vtp, systime_t delay,
* or @p chVTDoSetI().
*
* @param[in] vtp the @p virtual_timer_t structure pointer
- * @param[in] delay the number of ticks before the operation timeouts.
+ * @param[in] delay the number of ticks before the operation timeouts, the
+ * special values are handled as follow:
+ * - @a TIME_INFINITE is allowed but interpreted as a
+ * normal time specification.
+ * - @a TIME_IMMEDIATE this value is not allowed.
+ * .
* @param[in] vtfunc the timer callback function. After invoking the
* callback the timer is disabled and the structure can
* be disposed or reused.