]> git.sur5r.net Git - freertos/commitdiff
Add vQueueSetQueueNumber() and ucQueueGetQueueNumber() API functions.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 13 Dec 2011 11:39:58 +0000 (11:39 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 13 Dec 2011 11:39:58 +0000 (11:39 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1658 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/queue.c

index ec6bc59fb4d526359ce957decbdf6ab933790da7..4b7f5cce64f3f8a10ea07d0db500af8100daa5bf 100644 (file)
@@ -161,6 +161,7 @@ signed portBASE_TYPE xQueueIsQueueFullFromISR( const xQueueHandle pxQueue ) PRIV
 unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR( const xQueueHandle pxQueue ) PRIVILEGED_FUNCTION;\r
 void vQueueWaitForMessageRestricted( xQueueHandle pxQueue, portTickType xTicksToWait ) PRIVILEGED_FUNCTION;\r
 unsigned char ucQueueGetQueueNumber( xQueueHandle pxQueue ) PRIVILEGED_FUNCTION;\r
+void vQueueSetQueueNumber( xQueueHandle pxQueue, unsigned char ucQueueNumber ) PRIVILEGED_FUNCTION;\r
 unsigned char ucQueueGetQueueType( xQueueHandle pxQueue ) PRIVILEGED_FUNCTION;\r
 \r
 /*\r
@@ -1128,6 +1129,16 @@ void vQueueDelete( xQueueHandle pxQueue )
 #endif\r
 /*-----------------------------------------------------------*/\r
 \r
+#if ( configUSE_TRACE_FACILITY == 1 )\r
+\r
+       void vQueueSetQueueNumber( xQueueHandle pxQueue, unsigned char ucQueueNumber )\r
+       {\r
+               pxQueue->ucQueueNumber = ucQueueNumber;\r
+       }\r
+\r
+#endif\r
+/*-----------------------------------------------------------*/\r
+\r
 #if ( configUSE_TRACE_FACILITY == 1 )\r
 \r
        unsigned char ucQueueGetQueueType( xQueueHandle pxQueue )\r