aboutsummaryrefslogtreecommitdiffstats
path: root/src/chevents.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-07 11:47:38 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-03-07 11:47:38 +0000
commitd785c8a7e5e58dc2ef41afdfee47e605ef1216f5 (patch)
tree332a887d2eacc9a5e836d63792f882f68b0a46fe /src/chevents.c
parent719cf5fa8d01d6660fa85708c03fcf3cdac8bf37 (diff)
downloadChibiOS-d785c8a7e5e58dc2ef41afdfee47e605ef1216f5.tar.gz
ChibiOS-d785c8a7e5e58dc2ef41afdfee47e605ef1216f5.tar.bz2
ChibiOS-d785c8a7e5e58dc2ef41afdfee47e605ef1216f5.zip
Documentation fixes about timeouts, improved checks in chVTSetI().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@812 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chevents.c')
-rw-r--r--src/chevents.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/chevents.c b/src/chevents.c
index 4fd8286ad..83c487dcd 100644
--- a/src/chevents.c
+++ b/src/chevents.c
@@ -288,7 +288,10 @@ eventmask_t chEvtWaitAll(eventmask_t ewmask) {
*
* @param ewmask mask of the events that the function should wait for,
* @p ALL_EVENTS enables all the events
- * @param time the number of ticks before the operation timouts
+ * @param time the number of ticks before the operation timeouts,
+ * the following special values are allowed:
+ * - @a TIME_ZERO immediate timeout.
+ * - @a TIME_INFINITE no timeout.
* @return The mask of the lowest id served and cleared event.
* @retval 0 if the specified timeout expired.
* @note One and only one event is served in the function, the one with the
@@ -322,7 +325,10 @@ eventmask_t chEvtWaitOneTimeout(eventmask_t ewmask, systime_t time) {
*
* @param ewmask mask of the events that the function should wait for,
* @p ALL_EVENTS enables all the events
- * @param time the number of ticks before the operation timouts
+ * @param time the number of ticks before the operation timeouts,
+ * the following special values are allowed:
+ * - @a TIME_ZERO immediate timeout.
+ * - @a TIME_INFINITE no timeout.
* @return The mask of the served and cleared events.
* @retval 0 if the specified timeout expired.
*/
@@ -349,7 +355,10 @@ eventmask_t chEvtWaitAnyTimeout(eventmask_t ewmask, systime_t time) {
* become pending then the events are cleared and returned.
*
* @param ewmask mask of the event ids that the function should wait for
- * @param time the number of ticks before the operation timouts
+ * @param time the number of ticks before the operation timeouts
+ * the following special values are allowed:
+ * - @a TIME_ZERO immediate timeout.
+ * - @a TIME_INFINITE no timeout.
* @return The mask of the served and cleared events.
* @retval 0 if the specified timeout expired.
*/