Skip to content

Commit 5f2cc25

Browse files
Isla-jqkstribrnAmzn
authored andcommitted
fix stream/message buffer type and timeout in example
1 parent 7c0c890 commit 5f2cc25

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/message_buffer.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,14 +560,14 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
560560
*
561561
* Example use:
562562
* @code{c}
563-
* void vAFunction( MessageBuffer_t xMessageBuffer )
563+
* void vAFunction( MessageBufferHandle_t xMessageBuffer )
564564
* {
565565
* uint8_t ucRxData[ 20 ];
566566
* size_t xReceivedBytes;
567567
* const TickType_t xBlockTime = pdMS_TO_TICKS( 20 );
568568
*
569569
* // Receive the next message from the message buffer. Wait in the Blocked
570-
* // state (so not using any CPU processing time) for a maximum of 100ms for
570+
* // state (so not using any CPU processing time) for a maximum of 20ms for
571571
* // a message to become available.
572572
* xReceivedBytes = xMessageBufferReceive( xMessageBuffer,
573573
* ( void * ) ucRxData,
@@ -655,7 +655,7 @@ typedef StreamBufferHandle_t MessageBufferHandle_t;
655655
* Example use:
656656
* @code{c}
657657
* // A message buffer that has already been created.
658-
* MessageBuffer_t xMessageBuffer;
658+
* MessageBufferHandle_t xMessageBuffer;
659659
*
660660
* void vAnInterruptServiceRoutine( void )
661661
* {

include/stream_buffer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -760,15 +760,15 @@ size_t xStreamBufferSendFromISR( StreamBufferHandle_t xStreamBuffer,
760760
*
761761
* Example use:
762762
* @code{c}
763-
* void vAFunction( StreamBuffer_t xStreamBuffer )
763+
* void vAFunction( StreamBufferHandle_t xStreamBuffer )
764764
* {
765765
* uint8_t ucRxData[ 20 ];
766766
* size_t xReceivedBytes;
767767
* const TickType_t xBlockTime = pdMS_TO_TICKS( 20 );
768768
*
769769
* // Receive up to another sizeof( ucRxData ) bytes from the stream buffer.
770770
* // Wait in the Blocked state (so not using any CPU processing time) for a
771-
* // maximum of 100ms for the full sizeof( ucRxData ) number of bytes to be
771+
* // maximum of 20ms for the full sizeof( ucRxData ) number of bytes to be
772772
* // available.
773773
* xReceivedBytes = xStreamBufferReceive( xStreamBuffer,
774774
* ( void * ) ucRxData,
@@ -840,7 +840,7 @@ size_t xStreamBufferReceive( StreamBufferHandle_t xStreamBuffer,
840840
* Example use:
841841
* @code{c}
842842
* // A stream buffer that has already been created.
843-
* StreamBuffer_t xStreamBuffer;
843+
* StreamBufferHandle_t xStreamBuffer;
844844
*
845845
* void vAnInterruptServiceRoutine( void )
846846
* {
@@ -1218,7 +1218,7 @@ UBaseType_t uxStreamBufferGetStreamBufferNotificationIndex( StreamBufferHandle_t
12181218
* stream_buffer.h
12191219
*
12201220
* @code{c}
1221-
* void vStreamBufferSetStreamBufferNotificationIndex ( StreamBuffer_t xStreamBuffer, UBaseType_t uxNotificationIndex );
1221+
* void vStreamBufferSetStreamBufferNotificationIndex ( StreamBufferHandle_t xStreamBuffer, UBaseType_t uxNotificationIndex );
12221222
* @endcode
12231223
*
12241224
* Set the task notification index used for the supplied stream buffer.

0 commit comments

Comments
 (0)