Slight mod to take into account different definitions between SafeRTOS and FreeRTOS.org.

This commit is contained in:
Richard Barry 2007-01-28 12:18:03 +00:00
parent 684b802b27
commit f20d072c4a

View file

@ -240,7 +240,7 @@ size_t xQueueSizeInBytes;
signed portBASE_TYPE xQueueSend( xQueueHandle pxQueue, const void *pvItemToQueue, portTickType xTicksToWait ) signed portBASE_TYPE xQueueSend( xQueueHandle pxQueue, const void *pvItemToQueue, portTickType xTicksToWait )
{ {
signed portBASE_TYPE xReturn = pdFAIL; signed portBASE_TYPE xReturn = pdPASS;
xTimeOutType xTimeOut; xTimeOutType xTimeOut;
/* Make sure other tasks do not access the queue. */ /* Make sure other tasks do not access the queue. */
@ -459,7 +459,7 @@ signed portBASE_TYPE xQueueSendFromISR( xQueueHandle pxQueue, const void *pvItem
signed portBASE_TYPE xQueueReceive( xQueueHandle pxQueue, void *pvBuffer, portTickType xTicksToWait ) signed portBASE_TYPE xQueueReceive( xQueueHandle pxQueue, void *pvBuffer, portTickType xTicksToWait )
{ {
signed portBASE_TYPE xReturn = pdFAIL; signed portBASE_TYPE xReturn = pdTRUE;
xTimeOutType xTimeOut; xTimeOutType xTimeOut;
/* This function is very similar to xQueueSend(). See comments within /* This function is very similar to xQueueSend(). See comments within