]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/QueueSetPolling.c
Update version number to 9.0.0rc2.
[freertos] / FreeRTOS / Demo / Common / Minimal / QueueSetPolling.c
index c2a6dcda51b457c2903c7156e3b7006e694fbe62..e4e03859e397d5e4a111966e06352d93bf393d15 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.2.1 - Copyright (C) 2015 Real Time Engineers Ltd.\r
+    FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -8,7 +8,7 @@
 \r
     FreeRTOS is free software; you can redistribute it and/or modify it under\r
     the terms of the GNU General Public License (version 2) as published by the\r
-    Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
+    Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.\r
 \r
     ***************************************************************************\r
     >>!   NOTE: The modification to the GPL is included to allow you to     !<<\r
@@ -130,10 +130,14 @@ void vStartQueueSetPollingTask( void )
        the set. */\r
        xQueue = xQueueCreate( setpollQUEUE_LENGTH, sizeof( uint32_t ) );\r
        xQueueSet = xQueueCreateSet( setpollQUEUE_LENGTH );\r
-       xQueueAddToSet( xQueue, xQueueSet );\r
 \r
-       /* Create the task. */\r
-       xTaskCreate( prvQueueSetReceivingTask, "SetPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       if( ( xQueue != NULL ) && ( xQueueSet != NULL ) )\r
+       {\r
+               xQueueAddToSet( xQueue, xQueueSet );\r
+\r
+               /* Create the task. */\r
+               xTaskCreate( prvQueueSetReceivingTask, "SetPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       }\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r