diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-29 16:31:44 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-29 16:31:44 +0000 |
commit | f6e46bac2e7d9a62b54deac25b09b7f26bee40b1 (patch) | |
tree | 67685af0ddff5c6d70b0d142d4aba0f1103cd5c0 /src | |
parent | f82ab2d27e3ffa201f9ab547a5750caf4b6c6c0e (diff) | |
download | ChibiOS-f6e46bac2e7d9a62b54deac25b09b7f26bee40b1.tar.gz ChibiOS-f6e46bac2e7d9a62b54deac25b09b7f26bee40b1.tar.bz2 ChibiOS-f6e46bac2e7d9a62b54deac25b09b7f26bee40b1.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@120 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/chevents.c | 4 | ||||
-rw-r--r-- | src/chinit.c | 1 | ||||
-rw-r--r-- | src/include/ch.h | 2 | ||||
-rw-r--r-- | src/include/semaphores.h | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/chevents.c b/src/chevents.c index f8d7d971f..f301fd106 100644 --- a/src/chevents.c +++ b/src/chevents.c @@ -161,9 +161,7 @@ static void wakeup(void *p) { * identifier. The array can be NULL or contain NULL elements
* (no callback specified).
* @param time the number of ticks before the operation timouts
- * @return the event identifier or \p RDY_TIMEOUT the specified time expired or
- * if the timeout was set to zero and no serviceable pending events
- * were present
+ * @return the event identifier or \p RDY_TIMEOUT if the specified time expired
* @note Only a single event is served in the function, the one with the
* lowest event id. The function is meant to be invoked into a loop so
* that all events are received and served.<br>
diff --git a/src/chinit.c b/src/chinit.c index b1b6bd7d1..9fa079e2c 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -24,7 +24,6 @@ #include <ch.h>
-
/**
* ChibiOS/RT initialization. After executing this function the current
* instructions stream becomes the main thread.
diff --git a/src/include/ch.h b/src/include/ch.h index 1102f4013..0ef78fbf4 100644 --- a/src/include/ch.h +++ b/src/include/ch.h @@ -25,6 +25,8 @@ #ifndef _CH_H_
#define _CH_H_
+#define _CHIBIOS_RT_
+
#ifndef __DOXIGEN__
#ifndef _CHCONF_H_
#include <chconf.h>
diff --git a/src/include/semaphores.h b/src/include/semaphores.h index dfee499f0..4ffb3dc0d 100644 --- a/src/include/semaphores.h +++ b/src/include/semaphores.h @@ -45,8 +45,10 @@ extern "C" { void chSemResetI(Semaphore *sp, t_cnt n);
void chSemWait(Semaphore *sp);
void chSemWaitS(Semaphore *sp);
+#ifdef CH_USE_SEMAPHORES_TIMEOUT
t_msg chSemWaitTimeout(Semaphore *sp, t_time time);
t_msg chSemWaitTimeoutS(Semaphore *sp, t_time time);
+#endif
void chSemSignal(Semaphore *sp);
void chSemSignalI(Semaphore *sp);
void chSemSignalWait(Semaphore *sps, Semaphore *spw);
|