diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-07 19:14:15 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-02-07 19:14:15 +0000 |
commit | 330944e658f7a74a58d0d3157af3cafa1feaa3ea (patch) | |
tree | f8bca200ba940e32b19c4ca1a58daf486d158380 /src/lib/ch.cpp | |
parent | 4f8cb84a03321197557ed7df0a09abecfeb5166a (diff) | |
download | ChibiOS-330944e658f7a74a58d0d3157af3cafa1feaa3ea.tar.gz ChibiOS-330944e658f7a74a58d0d3157af3cafa1feaa3ea.tar.bz2 ChibiOS-330944e658f7a74a58d0d3157af3cafa1feaa3ea.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@742 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/lib/ch.cpp')
-rw-r--r-- | src/lib/ch.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/ch.cpp b/src/lib/ch.cpp index aaf357693..5663955cb 100644 --- a/src/lib/ch.cpp +++ b/src/lib/ch.cpp @@ -86,7 +86,7 @@ namespace chibios_rt { chThdExit(msg);
}
-#ifdef CH_USE_WAITEXIT
+#if CH_USE_WAITEXIT
msg_t BaseThread::Wait(void) {
return chThdWait(thread_ref);
@@ -103,7 +103,7 @@ namespace chibios_rt { chThdResume(thread_ref);
}
-#ifdef CH_USE_TERMINATE
+#if CH_USE_TERMINATE
void BaseThread::Terminate(void) {
chThdTerminate(thread_ref);
@@ -120,7 +120,7 @@ namespace chibios_rt { chThdSleepUntil(time);
}
-#ifdef CH_USE_MESSAGES
+#if CH_USE_MESSAGES
msg_t BaseThread::SendMessage(::Thread* tp, msg_t msg) {
return chMsgSend(tp, msg);
@@ -157,7 +157,7 @@ namespace chibios_rt { return 0;
}
-#ifdef CH_USE_SEMAPHORES
+#if CH_USE_SEMAPHORES
/*------------------------------------------------------------------------*
* chibios_rt::Semaphore *
*------------------------------------------------------------------------*/
@@ -176,7 +176,7 @@ namespace chibios_rt { return chSemWait(&sem);
}
-#ifdef CH_USE_SEMAPHORES_TIMEOUT
+#if CH_USE_SEMAPHORES_TIMEOUT
msg_t Semaphore::WaitTimeout(systime_t time) {
return chSemWaitTimeout(&sem, time);
@@ -188,7 +188,7 @@ namespace chibios_rt { chSemSignal(&sem);
}
-#ifdef CH_USE_SEMSW
+#if CH_USE_SEMSW
msg_t Semaphore::SignalWait(Semaphore *ssem, Semaphore *wsem) {
return chSemSignalWait(&ssem->sem, &wsem->sem);
@@ -196,7 +196,7 @@ namespace chibios_rt { #endif /* CH_USE_SEMSW */
#endif /* CH_USE_SEMAPHORES */
-#ifdef CH_USE_MUTEXES
+#if CH_USE_MUTEXES
/*------------------------------------------------------------------------*
* chibios_rt::Mutex *
*------------------------------------------------------------------------*/
@@ -225,7 +225,7 @@ namespace chibios_rt { chMtxUnlockAll();
}
-#ifdef CH_USE_CONDVARS
+#if CH_USE_CONDVARS
/*------------------------------------------------------------------------*
* chibios_rt::CondVar *
*------------------------------------------------------------------------*/
@@ -249,7 +249,7 @@ namespace chibios_rt { return chCondWait(&condvar);
}
-#ifdef CH_USE_CONDVARS_TIMEOUT
+#if CH_USE_CONDVARS_TIMEOUT
msg_t CondVar::WaitTimeout(systime_t time) {
return chCondWaitTimeout(&condvar, time);
@@ -258,7 +258,7 @@ namespace chibios_rt { #endif /* CH_USE_CONDVARS */
#endif /* CH_USE_MUTEXES */
-#ifdef CH_USE_EVENTS
+#if CH_USE_EVENTS
/*------------------------------------------------------------------------*
* chibios_rt::Event *
*------------------------------------------------------------------------*/
@@ -317,7 +317,7 @@ namespace chibios_rt { return chEvtWaitAll(ewmask);
}
-#ifdef CH_USE_EVENTS_TIMEOUT
+#if CH_USE_EVENTS_TIMEOUT
eventmask_t Event::WaitOneTimeout(eventmask_t ewmask, systime_t time) {
return chEvtWaitOneTimeout(ewmask, time);
|