aboutsummaryrefslogtreecommitdiffstats
path: root/os/nil/include/nil.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-11 13:00:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-02-11 13:00:24 +0000
commit7f3e0e57b2a13aa4797a8409e6e63671cb6d6993 (patch)
treeee6dc2a23554eb38ca360393d91cf7a0867360c1 /os/nil/include/nil.h
parent4541bd732acf21e30f40f5b6c991172e2e350cb0 (diff)
downloadChibiOS-7f3e0e57b2a13aa4797a8409e6e63671cb6d6993.tar.gz
ChibiOS-7f3e0e57b2a13aa4797a8409e6e63671cb6d6993.tar.bz2
ChibiOS-7f3e0e57b2a13aa4797a8409e6e63671cb6d6993.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6701 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/nil/include/nil.h')
-rw-r--r--os/nil/include/nil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/os/nil/include/nil.h b/os/nil/include/nil.h
index 7ba088dac..161c79a6d 100644
--- a/os/nil/include/nil.h
+++ b/os/nil/include/nil.h
@@ -597,6 +597,13 @@ typedef struct {
#define chSchIsRescRequiredI() ((bool)(nil.current != nil.next))
/**
+ * @brief Returns a pointer to the current @p thread_t.
+ *
+ * @xclass
+ */
+#define chThdGetSelfX() nil.current
+
+/**
* @brief Delays the invoking thread for the specified number of seconds.
* @note The specified time is rounded up to a value allowed by the real
* system clock.
@@ -802,6 +809,7 @@ extern "C" {
void chEvtSignal(thread_t *tp, eventmask_t mask);
void chEvtSignalI(thread_t *tp, eventmask_t mask);
eventmask_t chEvtWaitAnyTimeout(eventmask_t mask, systime_t timeout);
+ eventmask_t chEvtWaitAnyTimeoutS(eventmask_t mask, systime_t timeout);
#ifdef __cplusplus
}
#endif