aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
/**