mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-29 06:28:36 -04:00
Complete testing of changes that allow xQueueOverwrite() to be used on a queue that is part of a queue set.
Fix some compiler warnings in stream_buffer.c. Update the MingW/Eclipse project so it also includes static allocation tests.
This commit is contained in:
parent
f9bef06ec0
commit
c156522695
7 changed files with 116 additions and 48 deletions
|
@ -600,7 +600,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE;
|
|||
xBytesToSend = xStringLength - xNextChar;
|
||||
|
||||
/* Attempt to send right up to the end of the string. */
|
||||
xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait );
|
||||
xBytesActuallySent = xStreamBufferSend( xStreamBuffer, ( const void * ) &( pc55ByteString[ xNextChar ] ), xBytesToSend, xTicksToWait );
|
||||
configASSERT( xBytesActuallySent <= xBytesToSend );
|
||||
|
||||
/* Move the index up the string to the next character to be sent,
|
||||
|
@ -661,7 +661,7 @@ BaseType_t xNonBlockingReceiveError = pdFALSE;
|
|||
} while( xReceivedLength == 0 );
|
||||
|
||||
/* Ensure the received string matches the expected string. */
|
||||
configASSERT( memcmp( ( void * ) cRxString, ( void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 );
|
||||
configASSERT( memcmp( ( void * ) cRxString, ( const void * ) &( pc55ByteString[ xNextChar ] ), xReceivedLength ) == 0 );
|
||||
|
||||
/* Move the index into the string up to the end of the bytes
|
||||
received so far - wrapping if the end of the string has been
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue