Marking local functions: prvTestWaitCondition vPortSetBASEPRI ulPortRaiseBASEPRI vPortRaiseBASEPRI Marking externally visible functions: vEventGroupSetNumber uxEventGroupGetNumber xEventGroupSetBitsFromISR vEventGroupClearBitsCallback vEventGroupSetBitsCallback vEventGroupDelete xEventGroupSetBits xEventGroupGetBitsFromISR xEventGroupClearBitsFromISR xEventGroupClearBits xEventGroupWaitBits xEventGroupSync xEventGroupCreate Marking externally visible variables: Reclaiming functions: Reclaiming variables: Clearing address taken flags: Symbol table: vPortFree/29 (vPortFree) @05ecab60 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: vEventGroupDelete/11 Calls: vTaskRemoveFromUnorderedEventList/28 (vTaskRemoveFromUnorderedEventList) @05eca9a0 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: vEventGroupDelete/11 xEventGroupSetBits/10 Calls: xTimerPendFunctionCallFromISR/27 (xTimerPendFunctionCallFromISR) @05eca460 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupSetBitsFromISR/15 xEventGroupClearBitsFromISR/8 Calls: vPortExitCritical/26 (vPortExitCritical) @05eadd20 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupClearBits/7 xEventGroupWaitBits/6 xEventGroupSync/5 Calls: vPortEnterCritical/25 (vPortEnterCritical) @05eadc40 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupClearBits/7 xEventGroupWaitBits/6 xEventGroupSync/5 Calls: uxTaskResetEventItemValue/24 (uxTaskResetEventItemValue) @05eadb60 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupWaitBits/6 xEventGroupSync/5 Calls: xTaskResumeAll/23 (xTaskResumeAll) @05eada80 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: vEventGroupDelete/11 xEventGroupSetBits/10 xEventGroupWaitBits/6 xEventGroupSync/5 Calls: vTaskPlaceOnUnorderedEventList/22 (vTaskPlaceOnUnorderedEventList) @05ead9a0 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupWaitBits/6 xEventGroupSync/5 Calls: vTaskSuspendAll/21 (vTaskSuspendAll) @05ead8c0 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: vEventGroupDelete/11 xEventGroupSetBits/10 xEventGroupWaitBits/6 xEventGroupSync/5 Calls: xTaskGetSchedulerState/20 (xTaskGetSchedulerState) @05ead7e0 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupWaitBits/6 xEventGroupSync/5 Calls: vListInitialise/19 (vListInitialise) @05ead460 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupCreate/4 Calls: pvPortMalloc/18 (pvPortMalloc) @05ead380 Type: function Visibility: external public References: Referring: Availability: not_available Function flags: optimize_size Called by: xEventGroupCreate/4 Calls: vEventGroupSetNumber/17 (vEventGroupSetNumber) @05ea1e00 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: Calls: uxEventGroupGetNumber/16 (uxEventGroupGetNumber) @05ea18c0 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: Calls: xEventGroupSetBitsFromISR/15 (xEventGroupSetBitsFromISR) @05ea12a0 Type: function definition analyzed Visibility: externally_visible public References: vEventGroupSetBitsCallback/12 (addr) Referring: Availability: available Function flags: body optimize_size Called by: Calls: xTimerPendFunctionCallFromISR/27 prvTestWaitCondition/14 (prvTestWaitCondition) @05ea1d20 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: body local optimize_size Called by: xEventGroupWaitBits/6 xEventGroupWaitBits/6 Calls: vEventGroupClearBitsCallback/13 (vEventGroupClearBitsCallback) @05ea1a80 Type: function definition analyzed Visibility: externally_visible public Address is taken. References: Referring: xEventGroupClearBitsFromISR/8 (addr) Availability: available Function flags: body optimize_size Called by: Calls: xEventGroupClearBits/7 vEventGroupSetBitsCallback/12 (vEventGroupSetBitsCallback) @05ea17e0 Type: function definition analyzed Visibility: externally_visible public Address is taken. References: Referring: xEventGroupSetBitsFromISR/15 (addr) Availability: available Function flags: body optimize_size Called by: Calls: xEventGroupSetBits/10 vEventGroupDelete/11 (vEventGroupDelete) @05ea1540 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: Calls: xTaskResumeAll/23 vPortFree/29 vTaskRemoveFromUnorderedEventList/28 vPortRaiseBASEPRI/1 vTaskSuspendAll/21 vPortRaiseBASEPRI/1 xEventGroupSetBits/10 (xEventGroupSetBits) @05ea11c0 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: vEventGroupSetBitsCallback/12 xEventGroupSync/5 Calls: xTaskResumeAll/23 vTaskRemoveFromUnorderedEventList/28 vTaskSuspendAll/21 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1 xEventGroupGetBitsFromISR/9 (xEventGroupGetBitsFromISR) @05e5da80 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: Calls: vPortSetBASEPRI/3 ulPortRaiseBASEPRI/2 xEventGroupClearBitsFromISR/8 (xEventGroupClearBitsFromISR) @05e5d0e0 Type: function definition analyzed Visibility: externally_visible public References: vEventGroupClearBitsCallback/13 (addr) Referring: Availability: available Function flags: body optimize_size Called by: Calls: xTimerPendFunctionCallFromISR/27 xEventGroupClearBits/7 (xEventGroupClearBits) @05e5dd20 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: vEventGroupClearBitsCallback/13 Calls: vPortExitCritical/26 vPortEnterCritical/25 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1 xEventGroupWaitBits/6 (xEventGroupWaitBits) @05e5d9a0 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: Calls: vPortExitCritical/26 prvTestWaitCondition/14 vPortEnterCritical/25 uxTaskResetEventItemValue/24 xTaskResumeAll/23 vTaskPlaceOnUnorderedEventList/22 prvTestWaitCondition/14 vTaskSuspendAll/21 vPortRaiseBASEPRI/1 xTaskGetSchedulerState/20 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1 xEventGroupSync/5 (xEventGroupSync) @05e5d460 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: Calls: vPortExitCritical/26 vPortEnterCritical/25 uxTaskResetEventItemValue/24 xTaskResumeAll/23 vTaskPlaceOnUnorderedEventList/22 xEventGroupSetBits/10 vTaskSuspendAll/21 vPortRaiseBASEPRI/1 xTaskGetSchedulerState/20 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1 xEventGroupCreate/4 (xEventGroupCreate) @05e5d000 Type: function definition analyzed Visibility: externally_visible public References: Referring: Availability: available Function flags: body optimize_size Called by: Calls: vListInitialise/19 pvPortMalloc/18 vPortSetBASEPRI/3 (vPortSetBASEPRI) @05de9380 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: body local optimize_size Called by: xEventGroupGetBitsFromISR/9 Calls: ulPortRaiseBASEPRI/2 (ulPortRaiseBASEPRI) @05de90e0 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: body local optimize_size Called by: xEventGroupGetBitsFromISR/9 Calls: vPortRaiseBASEPRI/1 (vPortRaiseBASEPRI) @05de3d20 Type: function definition analyzed Visibility: prevailing_def_ironly References: Referring: Availability: local Function flags: body local optimize_size Called by: vEventGroupDelete/11 vEventGroupDelete/11 xEventGroupSetBits/10 xEventGroupSetBits/10 xEventGroupClearBits/7 xEventGroupClearBits/7 xEventGroupWaitBits/6 xEventGroupWaitBits/6 xEventGroupWaitBits/6 xEventGroupWaitBits/6 xEventGroupSync/5 xEventGroupSync/5 xEventGroupSync/5 Calls: vEventGroupSetNumber (void * xEventGroup, UBaseType_t uxEventGroupNumber) { : # DEBUG BEGIN_STMT MEM[(struct EventGroup_t *)xEventGroup].uxEventGroupNumber = uxEventGroupNumber; return; } uxEventGroupGetNumber (void * xEventGroup) { const struct EventGroup_t * pxEventBits; UBaseType_t xReturn; UBaseType_t D.6566; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT pxEventBits = xEventGroup; # DEBUG BEGIN_STMT if (xEventGroup == 0B) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT xReturn = 0; goto ; [INV] : # DEBUG BEGIN_STMT xReturn = pxEventBits->uxEventGroupNumber; : # DEBUG BEGIN_STMT D.6566 = xReturn; return D.6566; } xEventGroupSetBitsFromISR (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToSet, BaseType_t * pxHigherPriorityTaskWoken) { BaseType_t xReturn; BaseType_t D.6561; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT xReturn = xTimerPendFunctionCallFromISR (vEventGroupSetBitsCallback, xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken); # DEBUG BEGIN_STMT D.6561 = xReturn; return D.6561; } prvTestWaitCondition (const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits) { BaseType_t xWaitConditionMet; BaseType_t D.6523; : # DEBUG BEGIN_STMT xWaitConditionMet = 0; # DEBUG BEGIN_STMT if (xWaitForAllBits == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _1 = uxCurrentEventBits & uxBitsToWaitFor; if (_1 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT xWaitConditionMet = 1; goto ; [INV] : # DEBUG BEGIN_STMT _2 = uxCurrentEventBits & uxBitsToWaitFor; if (uxBitsToWaitFor == _2) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT xWaitConditionMet = 1; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT D.6523 = xWaitConditionMet; return D.6523; } vEventGroupClearBitsCallback (void * pvEventGroup, const uint32_t ulBitsToClear) { : # DEBUG BEGIN_STMT xEventGroupClearBits (pvEventGroup, ulBitsToClear); return; } vEventGroupSetBitsCallback (void * pvEventGroup, const uint32_t ulBitsToSet) { : # DEBUG BEGIN_STMT xEventGroupSetBits (pvEventGroup, ulBitsToSet); return; } vEventGroupDelete (struct EventGroupDef_t * xEventGroup) { const struct List_t * pxTasksWaitingForBits; struct EventGroup_t * pxEventBits; : # DEBUG BEGIN_STMT if (xEventGroup == 0B) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT pxEventBits = xEventGroup; # DEBUG BEGIN_STMT pxTasksWaitingForBits = &pxEventBits->xTasksWaitingForBits; # DEBUG BEGIN_STMT vTaskSuspendAll (); # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT _1 = pxTasksWaitingForBits->xListEnd.pxNext; _2 = &pxTasksWaitingForBits->xListEnd; if (_1 == _2) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _3 = pxTasksWaitingForBits->xListEnd.pxNext; vTaskRemoveFromUnorderedEventList (_3, 33554432); : # DEBUG BEGIN_STMT _4 = pxTasksWaitingForBits->uxNumberOfItems; if (_4 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortFree (pxEventBits); # DEBUG BEGIN_STMT xTaskResumeAll (); return; } xEventGroupSetBits (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToSet) { BaseType_t xMatchFound; struct EventGroup_t * pxEventBits; EventBits_t uxControlBits; EventBits_t uxBitsWaitedFor; EventBits_t uxBitsToClear; const struct List_t * pxList; const struct ListItem_t * pxListEnd; struct ListItem_t * pxNext; struct ListItem_t * pxListItem; EventBits_t D.6555; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT uxBitsToClear = 0; # DEBUG BEGIN_STMT pxEventBits = xEventGroup; # DEBUG BEGIN_STMT xMatchFound = 0; # DEBUG BEGIN_STMT if (xEventGroup == 0B) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _1 = uxBitsToSet & 4278190080; if (_1 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT pxList = &pxEventBits->xTasksWaitingForBits; # DEBUG BEGIN_STMT pxListEnd = &pxList->xListEnd; # DEBUG BEGIN_STMT vTaskSuspendAll (); # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT pxListItem = pxList->xListEnd.pxNext; # DEBUG BEGIN_STMT _2 = pxEventBits->uxEventBits; _3 = uxBitsToSet | _2; pxEventBits->uxEventBits = _3; # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT pxNext = pxListItem->pxNext; # DEBUG BEGIN_STMT uxBitsWaitedFor = pxListItem->xItemValue; # DEBUG BEGIN_STMT xMatchFound = 0; # DEBUG BEGIN_STMT uxControlBits = uxBitsWaitedFor & 4278190080; # DEBUG BEGIN_STMT uxBitsWaitedFor = uxBitsWaitedFor & 16777215; # DEBUG BEGIN_STMT _4 = uxControlBits & 67108864; if (_4 == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _5 = pxEventBits->uxEventBits; _6 = uxBitsWaitedFor & _5; if (_6 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT xMatchFound = 1; goto ; [INV] : # DEBUG BEGIN_STMT _7 = pxEventBits->uxEventBits; _8 = uxBitsWaitedFor & _7; if (uxBitsWaitedFor == _8) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT xMatchFound = 1; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (xMatchFound != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _9 = uxControlBits & 16777216; if (_9 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT uxBitsToClear = uxBitsToClear | uxBitsWaitedFor; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _10 = pxEventBits->uxEventBits; _11 = _10 | 33554432; vTaskRemoveFromUnorderedEventList (pxListItem, _11); : # DEBUG BEGIN_STMT pxListItem = pxNext; : # DEBUG BEGIN_STMT if (pxListItem != pxListEnd) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _12 = pxEventBits->uxEventBits; _13 = ~uxBitsToClear; _14 = _12 & _13; pxEventBits->uxEventBits = _14; # DEBUG BEGIN_STMT xTaskResumeAll (); # DEBUG BEGIN_STMT D.6555 = pxEventBits->uxEventBits; return D.6555; } xEventGroupGetBitsFromISR (struct EventGroupDef_t * xEventGroup) { EventBits_t uxReturn; const struct EventGroup_t * const pxEventBits; UBaseType_t uxSavedInterruptStatus; EventBits_t D.6533; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT pxEventBits = xEventGroup; # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT uxSavedInterruptStatus = ulPortRaiseBASEPRI (); # DEBUG BEGIN_STMT uxReturn = pxEventBits->uxEventBits; # DEBUG BEGIN_STMT vPortSetBASEPRI (uxSavedInterruptStatus); # DEBUG BEGIN_STMT D.6533 = uxReturn; return D.6533; } xEventGroupClearBitsFromISR (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToClear) { BaseType_t xReturn; BaseType_t D.6531; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT xReturn = xTimerPendFunctionCallFromISR (vEventGroupClearBitsCallback, xEventGroup, uxBitsToClear, 0B); # DEBUG BEGIN_STMT D.6531 = xReturn; return D.6531; } xEventGroupClearBits (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToClear) { EventBits_t uxReturn; struct EventGroup_t * pxEventBits; EventBits_t D.6529; : # DEBUG BEGIN_STMT pxEventBits = xEventGroup; # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (xEventGroup == 0B) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _1 = uxBitsToClear & 4278190080; if (_1 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT vPortEnterCritical (); # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT uxReturn = pxEventBits->uxEventBits; # DEBUG BEGIN_STMT _2 = pxEventBits->uxEventBits; _3 = ~uxBitsToClear; _4 = _2 & _3; pxEventBits->uxEventBits = _4; # DEBUG BEGIN_STMT vPortExitCritical (); # DEBUG BEGIN_STMT D.6529 = uxReturn; return D.6529; } xEventGroupWaitBits (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait) { const EventBits_t uxCurrentEventBits; BaseType_t xTimeoutOccurred; BaseType_t xAlreadyYielded; BaseType_t xWaitConditionMet; EventBits_t uxControlBits; EventBits_t uxReturn; struct EventGroup_t * pxEventBits; EventBits_t D.6512; int iftmp.1; : # DEBUG BEGIN_STMT pxEventBits = xEventGroup; # DEBUG BEGIN_STMT uxControlBits = 0; # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT xTimeoutOccurred = 0; # DEBUG BEGIN_STMT if (xEventGroup == 0B) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _1 = uxBitsToWaitFor & 4278190080; if (_1 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (uxBitsToWaitFor == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _2 = xTaskGetSchedulerState (); if (_2 != 0) goto ; [INV] else goto ; [INV] : if (xTicksToWait == 0) goto ; [INV] else goto ; [INV] : iftmp.1 = 1; goto ; [INV] : iftmp.1 = 0; : if (iftmp.1 == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT vTaskSuspendAll (); # DEBUG BEGIN_STMT uxCurrentEventBits = pxEventBits->uxEventBits; # DEBUG BEGIN_STMT xWaitConditionMet = prvTestWaitCondition (uxCurrentEventBits, uxBitsToWaitFor, xWaitForAllBits); # DEBUG BEGIN_STMT if (xWaitConditionMet != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT uxReturn = uxCurrentEventBits; # DEBUG BEGIN_STMT xTicksToWait = 0; # DEBUG BEGIN_STMT if (xClearOnExit != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _3 = pxEventBits->uxEventBits; _4 = ~uxBitsToWaitFor; _5 = _3 & _4; pxEventBits->uxEventBits = _5; goto ; [INV] : # DEBUG BEGIN_STMT if (xTicksToWait == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT uxReturn = uxCurrentEventBits; # DEBUG BEGIN_STMT xTimeoutOccurred = 1; goto ; [INV] : # DEBUG BEGIN_STMT if (xClearOnExit != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT uxControlBits = uxControlBits | 16777216; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (xWaitForAllBits != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT uxControlBits = uxControlBits | 67108864; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _6 = &pxEventBits->xTasksWaitingForBits; _7 = uxBitsToWaitFor | uxControlBits; vTaskPlaceOnUnorderedEventList (_6, _7, xTicksToWait); # DEBUG BEGIN_STMT uxReturn = 0; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT xAlreadyYielded = xTaskResumeAll (); # DEBUG BEGIN_STMT if (xTicksToWait != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT if (xAlreadyYielded == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _8 = 3758157060B; *_8 = 268435456; # DEBUG BEGIN_STMT __asm__ __volatile__("dsb" : : : "memory"); # DEBUG BEGIN_STMT __asm__ __volatile__("isb"); # DEBUG BEGIN_STMT : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT uxReturn = uxTaskResetEventItemValue (); # DEBUG BEGIN_STMT _9 = uxReturn & 33554432; if (_9 == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortEnterCritical (); # DEBUG BEGIN_STMT uxReturn = pxEventBits->uxEventBits; # DEBUG BEGIN_STMT _10 = prvTestWaitCondition (uxReturn, uxBitsToWaitFor, xWaitForAllBits); if (_10 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT if (xClearOnExit != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _11 = pxEventBits->uxEventBits; _12 = ~uxBitsToWaitFor; _13 = _11 & _12; pxEventBits->uxEventBits = _13; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT xTimeoutOccurred = 1; # DEBUG BEGIN_STMT vPortExitCritical (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT uxReturn = uxReturn & 16777215; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT D.6512 = uxReturn; return D.6512; } xEventGroupSync (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait) { BaseType_t xTimeoutOccurred; BaseType_t xAlreadyYielded; struct EventGroup_t * pxEventBits; EventBits_t uxReturn; EventBits_t uxOriginalBitValue; EventBits_t D.6468; int iftmp.0; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT pxEventBits = xEventGroup; # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT xTimeoutOccurred = 0; # DEBUG BEGIN_STMT _1 = uxBitsToWaitFor & 4278190080; if (_1 != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT if (uxBitsToWaitFor == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _2 = xTaskGetSchedulerState (); if (_2 != 0) goto ; [INV] else goto ; [INV] : if (xTicksToWait == 0) goto ; [INV] else goto ; [INV] : iftmp.0 = 1; goto ; [INV] : iftmp.0 = 0; : if (iftmp.0 == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortRaiseBASEPRI (); : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT vTaskSuspendAll (); # DEBUG BEGIN_STMT uxOriginalBitValue = pxEventBits->uxEventBits; # DEBUG BEGIN_STMT xEventGroupSetBits (xEventGroup, uxBitsToSet); # DEBUG BEGIN_STMT _3 = uxOriginalBitValue | uxBitsToSet; _4 = uxBitsToWaitFor & _3; if (uxBitsToWaitFor == _4) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT uxReturn = uxOriginalBitValue | uxBitsToSet; # DEBUG BEGIN_STMT _5 = pxEventBits->uxEventBits; _6 = ~uxBitsToWaitFor; _7 = _5 & _6; pxEventBits->uxEventBits = _7; # DEBUG BEGIN_STMT xTicksToWait = 0; goto ; [INV] : # DEBUG BEGIN_STMT if (xTicksToWait != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT _8 = &pxEventBits->xTasksWaitingForBits; _9 = uxBitsToWaitFor | 83886080; vTaskPlaceOnUnorderedEventList (_8, _9, xTicksToWait); # DEBUG BEGIN_STMT uxReturn = 0; goto ; [INV] : # DEBUG BEGIN_STMT uxReturn = pxEventBits->uxEventBits; # DEBUG BEGIN_STMT xTimeoutOccurred = 1; : # DEBUG BEGIN_STMT xAlreadyYielded = xTaskResumeAll (); # DEBUG BEGIN_STMT if (xTicksToWait != 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT if (xAlreadyYielded == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _10 = 3758157060B; *_10 = 268435456; # DEBUG BEGIN_STMT __asm__ __volatile__("dsb" : : : "memory"); # DEBUG BEGIN_STMT __asm__ __volatile__("isb"); # DEBUG BEGIN_STMT : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT uxReturn = uxTaskResetEventItemValue (); # DEBUG BEGIN_STMT _11 = uxReturn & 33554432; if (_11 == 0) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT vPortEnterCritical (); # DEBUG BEGIN_STMT uxReturn = pxEventBits->uxEventBits; # DEBUG BEGIN_STMT _12 = uxReturn & uxBitsToWaitFor; if (uxBitsToWaitFor == _12) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT _13 = pxEventBits->uxEventBits; _14 = ~uxBitsToWaitFor; _15 = _13 & _14; pxEventBits->uxEventBits = _15; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT vPortExitCritical (); # DEBUG BEGIN_STMT xTimeoutOccurred = 1; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT uxReturn = uxReturn & 16777215; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT D.6468 = uxReturn; return D.6468; } xEventGroupCreate () { struct EventGroup_t * pxEventBits; struct EventGroupDef_t * D.6438; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT pxEventBits = pvPortMalloc (28); # DEBUG BEGIN_STMT if (pxEventBits != 0B) goto ; [INV] else goto ; [INV] : # DEBUG BEGIN_STMT pxEventBits->uxEventBits = 0; # DEBUG BEGIN_STMT _1 = &pxEventBits->xTasksWaitingForBits; vListInitialise (_1); # DEBUG BEGIN_STMT : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT D.6438 = pxEventBits; return D.6438; } __attribute__((always_inline)) vPortSetBASEPRI (uint32_t ulNewMaskValue) { : # DEBUG BEGIN_STMT __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue : "memory"); return; } __attribute__((always_inline)) ulPortRaiseBASEPRI () { uint32_t ulNewBASEPRI; uint32_t ulOriginalBASEPRI; uint32_t D.6535; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT __asm__ __volatile__(" mrs %0, basepri mov %1, %2 msr basepri, %1 isb dsb " : "=r" ulOriginalBASEPRI, "=r" ulNewBASEPRI : "i" 16 : "memory"); # DEBUG BEGIN_STMT D.6535 = ulOriginalBASEPRI; return D.6535; } __attribute__((always_inline)) vPortRaiseBASEPRI () { uint32_t ulNewBASEPRI; : # DEBUG BEGIN_STMT # DEBUG BEGIN_STMT __asm__ __volatile__(" mov %0, %1 msr basepri, %0 isb dsb " : "=r" ulNewBASEPRI : "i" 16 : "memory"); return; }