if( pxFirstSemaphoreParameters != NULL )\r
{\r
/* Create the semaphore used by the first two tasks. */\r
- vSemaphoreCreateBinary( pxFirstSemaphoreParameters->xSemaphore );\r
+ pxFirstSemaphoreParameters->xSemaphore = xSemaphoreCreateBinary();\r
+ xSemaphoreGive( pxFirstSemaphoreParameters->xSemaphore );\r
\r
if( pxFirstSemaphoreParameters->xSemaphore != NULL )\r
{\r
pxSecondSemaphoreParameters = ( xSemaphoreParameters * ) pvPortMalloc( sizeof( xSemaphoreParameters ) );\r
if( pxSecondSemaphoreParameters != NULL )\r
{\r
- vSemaphoreCreateBinary( pxSecondSemaphoreParameters->xSemaphore );\r
+ pxSecondSemaphoreParameters->xSemaphore = xSemaphoreCreateBinary();\r
+ xSemaphoreGive( pxSecondSemaphoreParameters->xSemaphore );\r
\r
if( pxSecondSemaphoreParameters->xSemaphore != NULL )\r
{\r