git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1036 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
c731a9477b
commit
03aef59589
13
src/chschd.c
13
src/chschd.c
|
@ -73,8 +73,8 @@ Thread *chSchReadyI(Thread *tp) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Puts the current thread to sleep into the specified state.
|
* @brief Puts the current thread to sleep into the specified state.
|
||||||
* @details The next highest priority thread becomes running. The threads
|
* @details The thread goes into a sleeping state. The @ref thread_states are
|
||||||
* states are described into @p threads.h.
|
* described into @p threads.h.
|
||||||
*
|
*
|
||||||
* @param[in] newstate the new thread state
|
* @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.
|
* @brief Puts the current thread to sleep into the specified state with
|
||||||
* @details The next highest priority thread becomes running. The thread put
|
* timeout specification.
|
||||||
* to sleep is awakened after the specified time has elapsed.
|
* @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] newstate the new thread state
|
||||||
* @param[in] time the number of ticks before the operation timeouts, the
|
* @param[in] time the number of ticks before the operation timeouts, the
|
||||||
|
|
|
@ -168,7 +168,7 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
#if !defined(pal_lld_setport) || defined(__DOXYGEN__)
|
#if !defined(pal_lld_setport) || defined(__DOXYGEN__)
|
||||||
#define palSetPort(port, bits) { \
|
#define palSetPort(port, bits) { \
|
||||||
palWritePort(port, palReadLatch(p) | (bits)); \
|
palWritePort(port, palReadLatch(port) | (bits)); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define palSetPort(port, bits) pal_lld_setport(port, bits)
|
#define palSetPort(port, bits) pal_lld_setport(port, bits)
|
||||||
|
@ -189,7 +189,7 @@ typedef struct {
|
||||||
*/
|
*/
|
||||||
#if !defined(pal_lld_clearport) || defined(__DOXYGEN__)
|
#if !defined(pal_lld_clearport) || defined(__DOXYGEN__)
|
||||||
#define palClearPort(port, bits) { \
|
#define palClearPort(port, bits) { \
|
||||||
palWritePort(port, palReadLatch(p) & ~(bits)); \
|
palWritePort(port, palReadLatch(port) & ~(bits)); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define palClearPort(port, bits) pal_lld_clearport(port, bits)
|
#define palClearPort(port, bits) pal_lld_clearport(port, bits)
|
||||||
|
|
Loading…
Reference in New Issue