MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / xQueueCreateMutexStatic

Function xQueueCreateMutexStatic

queue.c:540–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538#if ( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
539
540 QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType,
541 StaticQueue_t * pxStaticQueue )
542 {
543 QueueHandle_t xNewQueue;
544 const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
545
546 /* Prevent compiler warnings about unused parameters if
547 * configUSE_TRACE_FACILITY does not equal 1. */
548 ( void ) ucQueueType;
549
550 xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
551 prvInitialiseMutex( ( Queue_t * ) xNewQueue );
552
553 return xNewQueue;
554 }
555
556#endif /* configUSE_MUTEXES */
557/*-----------------------------------------------------------*/

Callers 1

Calls 2

prvInitialiseMutexFunction · 0.85

Tested by

no test coverage detected