mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 05:34:59 -05:00
Code review suggestions
Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
parent
c618771364
commit
e7c632e86d
7 changed files with 146 additions and 10 deletions
6
queue.c
6
queue.c
|
|
@ -3191,15 +3191,15 @@ BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue )
|
|||
|
||||
#if ( ( configUSE_QUEUE_SETS == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
|
||||
|
||||
QueueSetHandle_t xQueueCreateSetStatic( const UBaseType_t uxEventQueueLength, uint8_t * pucQueueStorage, StaticQueue_t * pxStaticQueue)
|
||||
QueueSetHandle_t xQueueCreateSetStatic( const UBaseType_t uxEventQueueLength, uint8_t * pucQueueStorage, StaticQueue_t * pxStaticQueue )
|
||||
{
|
||||
QueueSetHandle_t pxQueue;
|
||||
|
||||
traceENTER_xQueueCreateSet( uxEventQueueLength );
|
||||
traceENTER_xQueueCreateSetStatic( uxEventQueueLength );
|
||||
|
||||
pxQueue = xQueueGenericCreateStatic( uxEventQueueLength, ( UBaseType_t ) sizeof( Queue_t * ), pucQueueStorage, pxStaticQueue, queueQUEUE_TYPE_SET );
|
||||
|
||||
traceRETURN_xQueueCreateSet( pxQueue );
|
||||
traceRETURN_xQueueCreateSetStatic( pxQueue );
|
||||
|
||||
return pxQueue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue