From: richardbarry Date: Tue, 13 Dec 2011 11:39:58 +0000 (+0000) Subject: Add vQueueSetQueueNumber() and ucQueueGetQueueNumber() API functions. X-Git-Tag: V7.1.0~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbf62827567617d1e5365e44abbd051ed4eb46a4;p=freertos Add vQueueSetQueueNumber() and ucQueueGetQueueNumber() API functions. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1658 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- 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 )