mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-10 08:07:46 -04:00
Update comments
This commit is contained in:
parent
6e1b7a3519
commit
ea90347741
2 changed files with 18 additions and 2 deletions
|
@ -767,6 +767,10 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
||||||
* contained.
|
* contained.
|
||||||
*
|
*
|
||||||
* A message buffer can only be reset if there are no tasks blocked on it.
|
* A message buffer can only be reset if there are no tasks blocked on it.
|
||||||
|
*
|
||||||
|
* Use xMessageBufferReset() to reset a message buffer from a task.
|
||||||
|
* Use xMessageBufferResetFromISR() to reset a maessage buffer from an
|
||||||
|
* interrupt service routine (ISR).
|
||||||
*
|
*
|
||||||
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
||||||
* xMessageBufferReset() to be available.
|
* xMessageBufferReset() to be available.
|
||||||
|
@ -791,11 +795,15 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
|
||||||
* BaseType_t xMessageBufferResetFromISR( MessageBufferHandle_t xMessageBuffer );
|
* BaseType_t xMessageBufferResetFromISR( MessageBufferHandle_t xMessageBuffer );
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* An interrupt safe version of the API function that reset the stream buffer.
|
* An interrupt safe version of the API function that resets the stream buffer.
|
||||||
* Resets a message buffer to its initial empty state, discarding any message it
|
* Resets a message buffer to its initial empty state, discarding any message it
|
||||||
* contained.
|
* contained.
|
||||||
*
|
*
|
||||||
* A message buffer can only be reset if there are no tasks blocked on it.
|
* A message buffer can only be reset if there are no tasks blocked on it.
|
||||||
|
*
|
||||||
|
* Use xMessageBufferReset() to reset a message buffer from a task.
|
||||||
|
* Use xMessageBufferResetFromISR() to reset a maessage buffer from an
|
||||||
|
* interrupt service routine (ISR).
|
||||||
*
|
*
|
||||||
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
||||||
* xMessageBufferResetFromISR() to be available.
|
* xMessageBufferResetFromISR() to be available.
|
||||||
|
|
|
@ -766,6 +766,10 @@ BaseType_t xStreamBufferIsEmpty( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED
|
||||||
* the stream buffer is discarded. A stream buffer can only be reset if there
|
* the stream buffer is discarded. A stream buffer can only be reset if there
|
||||||
* are no tasks blocked waiting to either send to or receive from the stream
|
* are no tasks blocked waiting to either send to or receive from the stream
|
||||||
* buffer.
|
* buffer.
|
||||||
|
*
|
||||||
|
* Use xStreamBufferReset() to reset a stream buffer from a task.
|
||||||
|
* Use xStreamBufferResetFromISR() to reset a stream buffer from an
|
||||||
|
* interrupt service routine (ISR).
|
||||||
*
|
*
|
||||||
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
||||||
* xStreamBufferReset() to be available.
|
* xStreamBufferReset() to be available.
|
||||||
|
@ -788,12 +792,16 @@ BaseType_t xStreamBufferReset( StreamBufferHandle_t xStreamBuffer ) PRIVILEGED_F
|
||||||
* BaseType_t xStreamBufferResetFromISR( StreamBufferHandle_t xStreamBuffer );
|
* BaseType_t xStreamBufferResetFromISR( StreamBufferHandle_t xStreamBuffer );
|
||||||
* @endcode
|
* @endcode
|
||||||
*
|
*
|
||||||
* An interrupt safe version of the API function that reset the stream buffer.
|
* An interrupt safe version of the API function that resets the stream buffer.
|
||||||
*
|
*
|
||||||
* Resets a stream buffer to its initial, empty, state. Any data that was in
|
* Resets a stream buffer to its initial, empty, state. Any data that was in
|
||||||
* the stream buffer is discarded. A stream buffer can only be reset if there
|
* the stream buffer is discarded. A stream buffer can only be reset if there
|
||||||
* are no tasks blocked waiting to either send to or receive from the stream
|
* are no tasks blocked waiting to either send to or receive from the stream
|
||||||
* buffer.
|
* buffer.
|
||||||
|
*
|
||||||
|
* Use xStreamBufferReset() to reset a stream buffer from a task.
|
||||||
|
* Use xStreamBufferResetFromISR() to reset a stream buffer from an
|
||||||
|
* interrupt service routine (ISR).
|
||||||
*
|
*
|
||||||
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
* configUSE_STREAM_BUFFERS must be set to 1 in for FreeRTOSConfig.h for
|
||||||
* xStreamBufferResetFromISR() to be available.
|
* xStreamBufferResetFromISR() to be available.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue