mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-13 14:48:33 -04:00
Added traceQUEUE_CREATE_FAILED() trace macros into the queue create functions.
This commit is contained in:
parent
b080f13543
commit
59925359ed
1 changed files with 8 additions and 0 deletions
|
@ -384,6 +384,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue;
|
||||||
|
|
||||||
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
|
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
traceQUEUE_CREATE_FAILED( ucQueueType );
|
||||||
|
}
|
||||||
|
|
||||||
return pxNewQueue;
|
return pxNewQueue;
|
||||||
}
|
}
|
||||||
|
@ -432,6 +436,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue;
|
||||||
|
|
||||||
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
|
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
traceQUEUE_CREATE_FAILED( ucQueueType );
|
||||||
|
}
|
||||||
|
|
||||||
return pxNewQueue;
|
return pxNewQueue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue