/*\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
\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
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