aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ch.cpp2
-rw-r--r--src/lib/ch.hpp2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/ch.cpp b/src/lib/ch.cpp
index 46e3a53d7..eaca06358 100644
--- a/src/lib/ch.cpp
+++ b/src/lib/ch.cpp
@@ -176,12 +176,10 @@ namespace chibios_rt {
return chSemWait(&sem);
}
-#if CH_USE_SEMAPHORES_TIMEOUT
msg_t Semaphore::WaitTimeout(systime_t time) {
return chSemWaitTimeout(&sem, time);
}
-#endif /* CH_USE_SEMAPHORES_TIMEOUT */
void Semaphore::Signal(void) {
diff --git a/src/lib/ch.hpp b/src/lib/ch.hpp
index bd1561689..b13e8db6d 100644
--- a/src/lib/ch.hpp
+++ b/src/lib/ch.hpp
@@ -315,7 +315,6 @@ namespace chibios_rt {
*/
msg_t Wait(void);
-#if CH_USE_SEMAPHORES_TIMEOUT
/**
* @brief Wait operation on the semaphore with timeout.
*
@@ -326,7 +325,6 @@ namespace chibios_rt {
* specified timeout.
*/
msg_t WaitTimeout(systime_t time);
-#endif /* CH_USE_SEMAPHORES_TIMEOUT */
/**
* @brief Signal operation on the semaphore.