]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/stream_buffer.c
Add Xtensa port
[freertos] / FreeRTOS / Source / stream_buffer.c
index 392d04d37007ad44ff9e3b3d9e88eb889cb0db75..8d0e3a523d142f7af58e7ed5efa3fb54e3a85f03 100644 (file)
@@ -224,7 +224,14 @@ static void prvInitialiseNewStreamBuffer( StreamBuffer_t * const pxStreamBuffer,
                (that is, it will hold discrete messages with a little meta data that\r
                says how big the next message is) check the buffer will be large enough\r
                to hold at least one message. */\r
-               configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );\r
+               if( xIsMessageBuffer == pdTRUE )\r
+               {\r
+                       configASSERT( xBufferSizeBytes > sbBYTES_TO_STORE_MESSAGE_LENGTH );\r
+               }\r
+               else\r
+               {\r
+                       configASSERT( xBufferSizeBytes > 0 );\r
+               }\r
                configASSERT( xTriggerLevelBytes <= xBufferSizeBytes );\r
 \r
                /* A trigger level of 0 would cause a waiting task to unblock even when\r