| 686 | /*-----------------------------------------------------------*/ |
| 687 | |
| 688 | static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, |
| 689 | const EventBits_t uxBitsToWaitFor, |
| 690 | const BaseType_t xWaitForAllBits ) |
| 691 | { |
| 692 | BaseType_t xWaitConditionMet = pdFALSE; |
| 693 | |
| 694 | if( xWaitForAllBits == pdFALSE ) |
| 695 | { |
| 696 | /* Task only has to wait for one bit within uxBitsToWaitFor to be |
| 697 | * set. Is one already set? */ |
| 698 | if( ( uxCurrentEventBits & uxBitsToWaitFor ) != ( EventBits_t ) 0 ) |
| 699 | { |
| 700 | xWaitConditionMet = pdTRUE; |
| 701 | } |
| 702 | else |
| 703 | { |
| 704 | mtCOVERAGE_TEST_MARKER(); |
| 705 | } |
| 706 | } |
| 707 | else |
| 708 | { |
| 709 | /* Task has to wait for all the bits in uxBitsToWaitFor to be set. |
| 710 | * Are they set already? */ |
| 711 | if( ( uxCurrentEventBits & uxBitsToWaitFor ) == uxBitsToWaitFor ) |
| 712 | { |
| 713 | xWaitConditionMet = pdTRUE; |
| 714 | } |
| 715 | else |
| 716 | { |
| 717 | mtCOVERAGE_TEST_MARKER(); |
| 718 | } |
| 719 | } |
| 720 | |
| 721 | return xWaitConditionMet; |
| 722 | } |
| 723 | /*-----------------------------------------------------------*/ |
| 724 | |
| 725 | #if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) ) |
no outgoing calls
no test coverage detected