From faed89a33d39b13b88fbd3d680173b03055f4b49 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 16 Apr 2011 09:18:36 +0000 Subject: C++ demo for STM32. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2880 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/ch.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'os/various/ch.hpp') diff --git a/os/various/ch.hpp b/os/various/ch.hpp index 487f03e75..d48dc30fe 100644 --- a/os/various/ch.hpp +++ b/os/various/ch.hpp @@ -198,26 +198,27 @@ namespace chibios_rt { msg_t SendMessage(msg_t msg); /** - * @brief Waits for a message and returns it. + * @brief Waits for a message. * - * @return The incoming message. + * @return The sebder thread. */ - static msg_t WaitMessage(void); + static Thread *WaitMessage(void); /** * @brief Returns an enqueued message or @p NULL. * + * @param[in] tp the sender thread * @return The incoming message. - * @retval NULL No incoming message. */ - static msg_t GetMessage(void); + static msg_t GetMessage(Thread* tp); /** * @brief Releases the next message in queue with a reply. * + * @param[in] tp the sender thread * @param[in] msg the answer message */ - static void ReleaseMessage(msg_t msg); + static void ReleaseMessage(Thread* tp, msg_t msg); /** * @brief Returns true if there is at least one message in queue. -- cgit v1.2.3