]> git.sur5r.net Git - freertos/commitdiff
Formatting only.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 28 May 2009 20:34:32 +0000 (20:34 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 28 May 2009 20:34:32 +0000 (20:34 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@738 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/queue.c

index 9211cb4677fdeaaf576c009f60e623720a6bf4db..ea10c589dcca29a3ce23bf335b0775e2b5df1a72 100644 (file)
  *----------------------------------------------------------*/\r
 \r
 /* Constants used with the cRxLock and cTxLock structure members. */\r
-#define queueUNLOCKED                                                  ( ( signed portBASE_TYPE ) -1 )\r
-#define queueLOCKED_UNMODIFIED                                 ( ( signed portBASE_TYPE ) 0 )\r
+#define queueUNLOCKED                                  ( ( signed portBASE_TYPE ) -1 )\r
+#define queueLOCKED_UNMODIFIED                 ( ( signed portBASE_TYPE ) 0 )\r
 \r
-#define queueERRONEOUS_UNBLOCK                                 ( -1 )\r
+#define queueERRONEOUS_UNBLOCK                 ( -1 )\r
 \r
 /* For internal use only. */\r
-#define        queueSEND_TO_BACK       ( 0 )\r
-#define        queueSEND_TO_FRONT      ( 1 )\r
+#define        queueSEND_TO_BACK                               ( 0 )\r
+#define        queueSEND_TO_FRONT                              ( 1 )\r
 \r
 /* Effectively make a union out of the xQUEUE structure. */\r
-#define pxMutexHolder                          pcTail\r
-#define uxQueueType                                    pcHead\r
-#define uxRecursiveCallCount           pcReadFrom\r
-#define queueQUEUE_IS_MUTEX                    NULL\r
+#define pxMutexHolder                                  pcTail\r
+#define uxQueueType                                            pcHead\r
+#define uxRecursiveCallCount                   pcReadFrom\r
+#define queueQUEUE_IS_MUTEX                            NULL\r
 \r
 /* Semaphores do not actually store or copy data, so have an items size of\r
 zero. */\r
@@ -495,7 +495,7 @@ xTimeOutType xTimeOut;
                                }\r
                        }\r
                }\r
-               taskEXIT_CRITICAL();    \r
+               taskEXIT_CRITICAL();\r
 \r
                /* Interrupts and other tasks can send to and receive from the queue\r
                now the critical section has been exited. */\r
@@ -507,7 +507,7 @@ xTimeOutType xTimeOut;
                if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )\r
                {\r
                        if( prvIsQueueFull( pxQueue ) )\r
-                       {               \r
+                       {\r
                                traceBLOCKING_ON_QUEUE_SEND( pxQueue );\r
                                vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );\r
 \r
@@ -532,7 +532,7 @@ xTimeOutType xTimeOut;
                        {\r
                                /* Try again. */\r
                                prvUnlockQueue( pxQueue );\r
-                               ( void ) xTaskResumeAll();                      \r
+                               ( void ) xTaskResumeAll();\r
                        }\r
                }\r
                else\r
@@ -594,14 +594,14 @@ xTimeOutType xTimeOut;
                                        }\r
                                }\r
                        }\r
-                       taskEXIT_CRITICAL();    \r
+                       taskEXIT_CRITICAL();\r
 \r
                        taskENTER_CRITICAL();\r
                        {\r
                                if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )\r
                                {\r
                                        if( prvIsQueueFull( pxQueue ) )\r
-                                       {                               \r
+                                       {\r
                                                traceBLOCKING_ON_QUEUE_SEND( pxQueue );\r
                                                vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );\r
                                                taskYIELD();\r
@@ -714,7 +714,7 @@ xTimeOutType xTimeOut;
                                if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )\r
                                {\r
                                        if( prvIsQueueEmpty( pxQueue ) )\r
-                                       {                               \r
+                                       {\r
                                                traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );\r
 \r
                                                #if ( configUSE_MUTEXES == 1 )\r
@@ -815,7 +815,7 @@ signed portCHAR *pcOriginalReadPosition;
                taskENTER_CRITICAL();\r
                {\r
                        /* Is there data in the queue now?  To be running we must be\r
-                       the highest priority task wanting to access the queue. */               \r
+                       the highest priority task wanting to access the queue. */\r
                        if( pxQueue->uxMessagesWaiting > ( unsigned portBASE_TYPE ) 0 )\r
                        {\r
                                /* Remember our read position in case we are just peeking. */\r
@@ -880,7 +880,7 @@ signed portCHAR *pcOriginalReadPosition;
                                if( xTicksToWait == ( portTickType ) 0 )\r
                                {\r
                                        /* The queue was empty and no block time is specified (or\r
-                                       the block time has expired) so leave now. */                            \r
+                                       the block time has expired) so leave now. */\r
                                        taskEXIT_CRITICAL();\r
                                        traceQUEUE_RECEIVE_FAILED( pxQueue );\r
                                        return errQUEUE_EMPTY;\r
@@ -888,7 +888,7 @@ signed portCHAR *pcOriginalReadPosition;
                                else if( xEntryTimeSet == pdFALSE )\r
                                {\r
                                        /* The queue was empty and a block time was specified so\r
-                                       configure the timeout structure. */                             \r
+                                       configure the timeout structure. */\r
                                        vTaskSetTimeOutState( &xTimeOut );\r
                                        xEntryTimeSet = pdTRUE;\r
                                }\r