static portTASK_FUNCTION( vComRxTask, pvParameters )/* Just to stop compiler warnings. */
{
signed char cByteRxed;
( void ) pvParameters; for( ;; )
{
/* Block on the queue that contains received bytes until a byte is
available. */
if( xSerialGetChar( xPort, &cByteRxed, comRX_BLOCK_TIME ) )
{
if( cByteRxed == ‘1’ )
{
vParTestSetLED( 2, pdTRUE );
}
else
{
vParTestSetLED( 2, pdFALSE );
}
}
}
} Thanks