From cbf62827567617d1e5365e44abbd051ed4eb46a4 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Tue, 13 Dec 2011 11:39:58 +0000 Subject: [PATCH] Add vQueueSetQueueNumber() and ucQueueGetQueueNumber() API functions. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1658 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Source/queue.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/queue.c b/Source/queue.c index ec6bc59fb..4b7f5cce6 100644 --- a/Source/queue.c +++ b/Source/queue.c @@ -161,6 +161,7 @@ signed portBASE_TYPE xQueueIsQueueFullFromISR( const xQueueHandle pxQueue ) PRIV unsigned portBASE_TYPE uxQueueMessagesWaitingFromISR( const xQueueHandle pxQueue ) PRIVILEGED_FUNCTION; void vQueueWaitForMessageRestricted( xQueueHandle pxQueue, portTickType xTicksToWait ) PRIVILEGED_FUNCTION; unsigned char ucQueueGetQueueNumber( xQueueHandle pxQueue ) PRIVILEGED_FUNCTION; +void vQueueSetQueueNumber( xQueueHandle pxQueue, unsigned char ucQueueNumber ) PRIVILEGED_FUNCTION; unsigned char ucQueueGetQueueType( xQueueHandle pxQueue ) PRIVILEGED_FUNCTION; /* @@ -1128,6 +1129,16 @@ void vQueueDelete( xQueueHandle pxQueue ) #endif /*-----------------------------------------------------------*/ +#if ( configUSE_TRACE_FACILITY == 1 ) + + void vQueueSetQueueNumber( xQueueHandle pxQueue, unsigned char ucQueueNumber ) + { + pxQueue->ucQueueNumber = ucQueueNumber; + } + +#endif +/*-----------------------------------------------------------*/ + #if ( configUSE_TRACE_FACILITY == 1 ) unsigned char ucQueueGetQueueType( xQueueHandle pxQueue ) -- 2.39.5