unsigned portBASE_TYPE uxSavedInterruptStatus; \\r
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); \\r
{ \\r
- xQueueSendFromISR( xNormallyEmptyQueue, ( void * ) &uxValueForNormallyEmptyQueue, &xHigherPriorityTaskWoken ); \\r
uxValueForNormallyEmptyQueue++; \\r
+ xQueueSendFromISR( xNormallyEmptyQueue, ( void * ) &uxValueForNormallyEmptyQueue, &xHigherPriorityTaskWoken ); \\r
} \\r
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); \\r
} \\r
unsigned portBASE_TYPE uxSavedInterruptStatus; \\r
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); \\r
{ \\r
- xQueueSendFromISR( xNormallyFullQueue, ( void * ) &uxValueForNormallyFullQueue, &xHigherPriorityTaskWoken ); \\r
uxValueForNormallyFullQueue++; \\r
+ xQueueSendFromISR( xNormallyFullQueue, ( void * ) &uxValueForNormallyFullQueue, &xHigherPriorityTaskWoken ); \ \r
} \\r
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); \\r
} \\r
uxTask2 = 0;\r
\r
/* Loop through the array, checking that both tasks have\r
- placed values into the array, and that no values are missing. */\r
- for( ux = 0; ux < intqNUM_VALUES_TO_LOG; ux++ )\r
+ placed values into the array, and that no values are missing.\r
+ Start at 1 as we expect position 0 to be unused. */\r
+ for( ux = 1; ux < intqNUM_VALUES_TO_LOG; ux++ )\r
{\r
if( ucNormallyEmptyReceivedValues[ ux ] == 0 )\r
{\r
\r
portENTER_CRITICAL();\r
{\r
- uxValue = uxValueForNormallyEmptyQueue;\r
uxValueForNormallyEmptyQueue++;\r
+ uxValue = uxValueForNormallyEmptyQueue; \r
}\r
portEXIT_CRITICAL();\r
\r
{\r
portENTER_CRITICAL();\r
{\r
- uxValueToTx = uxValueForNormallyFullQueue;\r
uxValueForNormallyFullQueue++;\r
+ uxValueToTx = uxValueForNormallyFullQueue; \r
}\r
portEXIT_CRITICAL();\r
\r
{\r
portENTER_CRITICAL();\r
{\r
- uxValueToTx = uxValueForNormallyFullQueue;\r
uxValueForNormallyFullQueue++;\r
+ uxValueToTx = uxValueForNormallyFullQueue; \r
}\r
portEXIT_CRITICAL();\r
\r
task recognises a time out when it is unsuspended. */\r
xWasSuspended = pdTRUE;\r
\r
- for( ux = 0; ux < intqNUM_VALUES_TO_LOG; ux++ )\r
+ /* Start at 1 as we expect position 0 to be unused. */\r
+ for( ux = 1; ux < intqNUM_VALUES_TO_LOG; ux++ )\r
{\r
if( ucNormallyFullReceivedValues[ ux ] == 0 )\r
{\r
{\r
portENTER_CRITICAL();\r
{\r
- uxValueToTx = uxValueForNormallyFullQueue;\r
uxValueForNormallyFullQueue++;\r
+ uxValueToTx = uxValueForNormallyFullQueue; \r
}\r
portEXIT_CRITICAL();\r
\r
{\r
portENTER_CRITICAL();\r
{\r
- uxValueToTx = uxValueForNormallyFullQueue;\r
uxValueForNormallyFullQueue++;\r
+ uxValueToTx = uxValueForNormallyFullQueue; \r
}\r
portEXIT_CRITICAL();\r
\r