| 522 | #if ( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) |
| 523 | |
| 524 | QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) |
| 525 | { |
| 526 | QueueHandle_t xNewQueue; |
| 527 | const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; |
| 528 | |
| 529 | xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType ); |
| 530 | prvInitialiseMutex( ( Queue_t * ) xNewQueue ); |
| 531 | |
| 532 | return xNewQueue; |
| 533 | } |
| 534 | |
| 535 | #endif /* configUSE_MUTEXES */ |
| 536 | /*-----------------------------------------------------------*/ |
no test coverage detected