aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-09 12:03:45 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-09-09 12:03:45 +0000
commitfceb645e35ab2708ec6e2c6ba944d328024ebecf (patch)
tree383bf450c60b302739037721f44e244acb7b52a6
parent250ee8cdd43ffa4ba9ecab7548b18c4fc91f849d (diff)
downloadChibiOS-fceb645e35ab2708ec6e2c6ba944d328024ebecf.tar.gz
ChibiOS-fceb645e35ab2708ec6e2c6ba944d328024ebecf.tar.bz2
ChibiOS-fceb645e35ab2708ec6e2c6ba944d328024ebecf.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@429 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--src/lib/ch.cpp4
-rw-r--r--src/lib/ch.hpp6
2 files changed, 0 insertions, 10 deletions
diff --git a/src/lib/ch.cpp b/src/lib/ch.cpp
index 653a48dec..170a143a7 100644
--- a/src/lib/ch.cpp
+++ b/src/lib/ch.cpp
@@ -96,12 +96,10 @@ namespace chibios_rt {
chThdSetPriority(newprio);
}
-#ifdef CH_USE_RESUME
void BaseThread::Resume(void) {
chThdResume(thread_ref);
}
-#endif /* CH_USE_RESUME */
#ifdef CH_USE_TERMINATE
void BaseThread::Terminate(void) {
@@ -110,7 +108,6 @@ namespace chibios_rt {
}
#endif /* CH_USE_TERMINATE */
-#ifdef CH_USE_SLEEP
void BaseThread::Sleep(systime_t n) {
chThdSleep(n);
@@ -122,7 +119,6 @@ namespace chibios_rt {
chThdSleepUntil(time);
}
#endif /* CH_USE_SYSTEMTIME */
-#endif /* CH_USE_SLEEP */
#ifdef CH_USE_MESSAGES
msg_t BaseThread::SendMessage(::Thread* tp, msg_t msg) {
diff --git a/src/lib/ch.hpp b/src/lib/ch.hpp
index e4ce6000f..f041365d7 100644
--- a/src/lib/ch.hpp
+++ b/src/lib/ch.hpp
@@ -115,26 +115,21 @@ namespace chibios_rt {
msg_t Wait(void);
#endif /* CH_USE_WAITEXIT */
-#ifdef CH_USE_RESUME
/**
* Resumes thread.
*/
void Resume(void);
-#endif /* CH_USE_RESUME */
/**
* Change thread priority.
*/
static void SetPriority(tprio_t newprio);
-#ifdef CH_USE_TERMINATE
/**
* Requests thread termination.
*/
void Terminate(void);
-#endif /* CH_USE_TERMINATE */
-#ifdef CH_USE_SLEEP
/**
* Suspends the thread execution for the specified number of system ticks.
*/
@@ -146,7 +141,6 @@ namespace chibios_rt {
*/
static void SleepUntil(systime_t time);
#endif /* CH_USE_SYSTEMTIME */
-#endif /* CH_USE_SLEEP */
#ifdef CH_USE_MESSAGES
/**