From 8526da855242336d5ce4db93208a156a9e014c87 Mon Sep 17 00:00:00 2001 From: rtel Date: Mon, 10 Apr 2017 01:58:58 +0000 Subject: [PATCH] Added traceQUEUE_CREATE_FAILED() trace macros into the queue create functions. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2501 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- FreeRTOS/Source/queue.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/FreeRTOS/Source/queue.c b/FreeRTOS/Source/queue.c index 72bdff508..7c1baf255 100644 --- a/FreeRTOS/Source/queue.c +++ b/FreeRTOS/Source/queue.c @@ -384,6 +384,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue; prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); } + else + { + traceQUEUE_CREATE_FAILED( ucQueueType ); + } return pxNewQueue; } @@ -432,6 +436,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue; prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); } + else + { + traceQUEUE_CREATE_FAILED( ucQueueType ); + } return pxNewQueue; } -- 2.39.5