aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-14 10:30:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-14 10:30:10 +0000
commit03aef59589a44aec94456526a9e207c27149a750 (patch)
treea6db164e985a0da47314acbf36c49d9565b1a174 /src
parentc731a9477bd4fbbadb4ac7c19726c4d5f812f461 (diff)
downloadChibiOS-03aef59589a44aec94456526a9e207c27149a750.tar.gz
ChibiOS-03aef59589a44aec94456526a9e207c27149a750.tar.bz2
ChibiOS-03aef59589a44aec94456526a9e207c27149a750.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1036 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r--src/chschd.c13
-rw-r--r--src/lib/pal.h4
2 files changed, 10 insertions, 7 deletions
diff --git a/src/chschd.c b/src/chschd.c
index 441070dcb..3ba8b29e9 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -73,8 +73,8 @@ Thread *chSchReadyI(Thread *tp) {
/**
* @brief Puts the current thread to sleep into the specified state.
- * @details The next highest priority thread becomes running. The threads
- * states are described into @p threads.h.
+ * @details The thread goes into a sleeping state. The @ref thread_states are
+ * described into @p threads.h.
*
* @param[in] newstate the new thread state
*/
@@ -117,9 +117,12 @@ static void wakeup(void *p) {
}
/**
- * @brief Puts the current thread to sleep into the specified state.
- * @details The next highest priority thread becomes running. The thread put
- * to sleep is awakened after the specified time has elapsed.
+ * @brief Puts the current thread to sleep into the specified state with
+ * timeout specification.
+ * @details The thread goes into a sleeping state, if it is not awakened
+ * explicitly within the specified timeout then it is forcibly
+ * awakened with a @p RDY_TIMEOUT low level message. The @ref
+ * thread_states are described into @p threads.h.
*
* @param[in] newstate the new thread state
* @param[in] time the number of ticks before the operation timeouts, the
diff --git a/src/lib/pal.h b/src/lib/pal.h
index 662df87ee..d4190e500 100644
--- a/src/lib/pal.h
+++ b/src/lib/pal.h
@@ -168,7 +168,7 @@ typedef struct {
*/
#if !defined(pal_lld_setport) || defined(__DOXYGEN__)
#define palSetPort(port, bits) { \
- palWritePort(port, palReadLatch(p) | (bits)); \
+ palWritePort(port, palReadLatch(port) | (bits)); \
}
#else
#define palSetPort(port, bits) pal_lld_setport(port, bits)
@@ -189,7 +189,7 @@ typedef struct {
*/
#if !defined(pal_lld_clearport) || defined(__DOXYGEN__)
#define palClearPort(port, bits) { \
- palWritePort(port, palReadLatch(p) & ~(bits)); \
+ palWritePort(port, palReadLatch(port) & ~(bits)); \
}
#else
#define palClearPort(port, bits) pal_lld_clearport(port, bits)