From 59925359ed18e4317382de967498c4b80d2bc6e5 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Mon, 10 Apr 2017 01:58:58 +0000 Subject: [PATCH] Added traceQUEUE_CREATE_FAILED() trace macros into the queue create functions. --- 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; }