From fceb645e35ab2708ec6e2c6ba944d328024ebecf Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 9 Sep 2008 12:03:45 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@429 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/lib/ch.cpp | 4 ---- src/lib/ch.hpp | 6 ------ 2 files changed, 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 /**