mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-05-12 11:42:57 -04:00
fix stream buffer example
This commit is contained in:
parent
54bda71ea3
commit
aa6f95790c
1 changed files with 2 additions and 2 deletions
|
|
@ -760,7 +760,7 @@ size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
|
||||||
*
|
*
|
||||||
* Example use:
|
* Example use:
|
||||||
* @code{c}
|
* @code{c}
|
||||||
* void vAFunction( StreamBuffer_t xStreamBuffer )
|
* void vAFunction( StreamBufferHandle_t xStreamBuffer )
|
||||||
* {
|
* {
|
||||||
* uint8_t ucRxData[ 20 ];
|
* uint8_t ucRxData[ 20 ];
|
||||||
* size_t xReceivedBytes;
|
* size_t xReceivedBytes;
|
||||||
|
|
@ -768,7 +768,7 @@ size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
|
||||||
*
|
*
|
||||||
* // Receive up to another sizeof( ucRxData ) bytes from the stream buffer.
|
* // Receive up to another sizeof( ucRxData ) bytes from the stream buffer.
|
||||||
* // Wait in the Blocked state (so not using any CPU processing time) for a
|
* // Wait in the Blocked state (so not using any CPU processing time) for a
|
||||||
* // maximum of 100ms for the full sizeof( ucRxData ) number of bytes to be
|
* // maximum of 20ms for the full sizeof( ucRxData ) number of bytes to be
|
||||||
* // available.
|
* // available.
|
||||||
* xReceivedBytes = xStreamBufferReceive( xStreamBuffer,
|
* xReceivedBytes = xStreamBufferReceive( xStreamBuffer,
|
||||||
* ( void * ) ucRxData,
|
* ( void * ) ucRxData,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue