aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
Diffstat (limited to 'os/various')
-rw-r--r--os/various/cpp_wrappers/ch.cpp19
-rw-r--r--os/various/cpp_wrappers/ch.hpp18
2 files changed, 18 insertions, 19 deletions
diff --git a/os/various/cpp_wrappers/ch.cpp b/os/various/cpp_wrappers/ch.cpp
index fbc8d1897..d6f4ca0c1 100644
--- a/os/various/cpp_wrappers/ch.cpp
+++ b/os/various/cpp_wrappers/ch.cpp
@@ -410,12 +410,12 @@ namespace chibios_rt {
return chSemWaitS(&sem);
}
- msg_t CounterSemaphore::waitTimeout(systime_t time) {
+ msg_t CounterSemaphore::wait(systime_t time) {
return chSemWaitTimeout(&sem, time);
}
- msg_t CounterSemaphore::waitTimeoutS(systime_t time) {
+ msg_t CounterSemaphore::waitS(systime_t time) {
return chSemWaitTimeoutS(&sem, time);
}
@@ -464,12 +464,12 @@ namespace chibios_rt {
return chBSemWaitS(&bsem);
}
- msg_t BinarySemaphore::waitTimeout(systime_t time) {
+ msg_t BinarySemaphore::wait(systime_t time) {
return chBSemWaitTimeout(&bsem, time);
}
- msg_t BinarySemaphore::waitTimeoutS(systime_t time) {
+ msg_t BinarySemaphore::waitS(systime_t time) {
return chBSemWaitTimeoutS(&bsem, time);
}
@@ -579,7 +579,7 @@ namespace chibios_rt {
}
#if CH_CFG_USE_CONDVARS_TIMEOUT
- msg_t CondVar::waitTimeout(systime_t time) {
+ msg_t CondVar::wait(systime_t time) {
return chCondWaitTimeout(&condvar, time);
}
@@ -681,12 +681,12 @@ namespace chibios_rt {
return chIQGet(&iq);
}
- msg_t InQueue::getTimeout(systime_t time) {
+ msg_t InQueue::get(systime_t time) {
return chIQGetTimeout(&iq, time);
}
- size_t InQueue::readTimeout(uint8_t *bp, size_t n, systime_t time) {
+ size_t InQueue::read(uint8_t *bp, size_t n, systime_t time) {
return chIQReadTimeout(&iq, bp, n, time);
}
@@ -729,7 +729,7 @@ namespace chibios_rt {
return chOQPut(&oq, b);
}
- msg_t OutQueue::putTimeout(uint8_t b, systime_t time) {
+ msg_t OutQueue::put(uint8_t b, systime_t time) {
return chOQPutTimeout(&oq, b, time);
}
@@ -739,8 +739,7 @@ namespace chibios_rt {
return chOQGetI(&oq);
}
- size_t OutQueue::writeTimeout(const uint8_t *bp, size_t n,
- systime_t time) {
+ size_t OutQueue::write(const uint8_t *bp, size_t n, systime_t time) {
return chOQWriteTimeout(&oq, bp, n, time);
}
diff --git a/os/various/cpp_wrappers/ch.hpp b/os/various/cpp_wrappers/ch.hpp
index b0d5d824f..a7fd44df9 100644
--- a/os/various/cpp_wrappers/ch.hpp
+++ b/os/various/cpp_wrappers/ch.hpp
@@ -901,7 +901,7 @@ namespace chibios_rt {
*
* @api
*/
- msg_t waitTimeout(systime_t time);
+ msg_t wait(systime_t time);
/**
* @brief Performs a wait operation on a semaphore with timeout
@@ -923,7 +923,7 @@ namespace chibios_rt {
*
* @sclass
*/
- msg_t waitTimeoutS(systime_t time);
+ msg_t waitS(systime_t time);
/**
* @brief Performs a signal operation on a semaphore.
@@ -1056,7 +1056,7 @@ namespace chibios_rt {
*
* @api
*/
- msg_t waitTimeout(systime_t time);
+ msg_t wait(systime_t time);
/**
* @brief Wait operation on the binary semaphore.
@@ -1077,7 +1077,7 @@ namespace chibios_rt {
*
* @sclass
*/
- msg_t waitTimeoutS(systime_t time);
+ msg_t waitS(systime_t time);
/**
* @brief Reset operation on the binary semaphore.
@@ -1348,7 +1348,7 @@ namespace chibios_rt {
*
* @api
*/
- msg_t waitTimeout(systime_t time);
+ msg_t wait(systime_t time);
#endif /* CH_CFG_USE_CONDVARS_TIMEOUT */
};
#endif /* CH_CFG_USE_CONDVARS */
@@ -1599,7 +1599,7 @@ namespace chibios_rt {
*
* @api
*/
- msg_t getTimeout(systime_t time);
+ msg_t get(systime_t time);
/**
* @brief Input queue read with timeout.
@@ -1624,7 +1624,7 @@ namespace chibios_rt {
*
* @api
*/
- size_t readTimeout(uint8_t *bp, size_t n, systime_t time);
+ size_t read(uint8_t *bp, size_t n, systime_t time);
};
/*------------------------------------------------------------------------*
@@ -1771,7 +1771,7 @@ namespace chibios_rt {
*
* @api
*/
- msg_t putTimeout(uint8_t b, systime_t time);
+ msg_t put(uint8_t b, systime_t time);
/**
* @brief Output queue read.
@@ -1807,7 +1807,7 @@ namespace chibios_rt {
*
* @api
*/
- size_t writeTimeout(const uint8_t *bp, size_t n, systime_t time);
+ size_t write(const uint8_t *bp, size_t n, systime_t time);
};
/*------------------------------------------------------------------------*