fix stream/message buffer type and timeout in example

This commit is contained in:
1294644079@qq.com 2026-04-18 23:35:43 +08:00 committed by Kody Stribrny
parent 7c0c890c64
commit 5f2cc25b17
2 changed files with 7 additions and 7 deletions

View file

@ -560,14 +560,14 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
*
* Example use:
* @code{c}
* void vAFunction( MessageBuffer_t xMessageBuffer )
* void vAFunction( MessageBufferHandle_t xMessageBuffer )
* {
* uint8_t ucRxData[ 20 ];
* size_t xReceivedBytes;
* const TickType_t xBlockTime = pdMS_TO_TICKS( 20 );
*
* // Receive the next message from the message buffer. Wait in the Blocked
* // state (so not using any CPU processing time) for a maximum of 100ms for
* // state (so not using any CPU processing time) for a maximum of 20ms for
* // a message to become available.
* xReceivedBytes = xMessageBufferReceive( xMessageBuffer,
* ( void * ) ucRxData,
@ -655,7 +655,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
* Example use:
* @code{c}
* // A message buffer that has already been created.
* MessageBuffer_t xMessageBuffer;
* MessageBufferHandle_t xMessageBuffer;
*
* void vAnInterruptServiceRoutine( void )
* {