1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066 |
- vEventGroupSetNumber (void * xEventGroup, UBaseType_t uxEventGroupNumber)
- {
- <bb 2> :
- # 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;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxEventBits = xEventGroup;
- # DEBUG BEGIN_STMT
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- xReturn = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- xReturn = pxEventBits->uxEventGroupNumber;
- <bb 5> :
- # 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;
- <bb 2> :
- # 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;
- <bb 2> :
- # DEBUG BEGIN_STMT
- xWaitConditionMet = 0;
- # DEBUG BEGIN_STMT
- if (xWaitForAllBits == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- _1 = uxCurrentEventBits & uxBitsToWaitFor;
- if (_1 != 0)
- goto <bb 4>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 4> :
- # DEBUG BEGIN_STMT
- xWaitConditionMet = 1;
- goto <bb 7>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- _2 = uxCurrentEventBits & uxBitsToWaitFor;
- if (uxBitsToWaitFor == _2)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- xWaitConditionMet = 1;
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.6523 = xWaitConditionMet;
- return D.6523;
- }
- vEventGroupClearBitsCallback (void * pvEventGroup, const uint32_t ulBitsToClear)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- xEventGroupClearBits (pvEventGroup, ulBitsToClear);
- return;
- }
- vEventGroupSetBitsCallback (void * pvEventGroup, const uint32_t ulBitsToSet)
- {
- <bb 2> :
- # DEBUG BEGIN_STMT
- xEventGroupSetBits (pvEventGroup, ulBitsToSet);
- return;
- }
- vEventGroupDelete (struct EventGroupDef_t * xEventGroup)
- {
- const struct List_t * pxTasksWaitingForBits;
- struct EventGroup_t * pxEventBits;
- <bb 2> :
- # DEBUG BEGIN_STMT
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # 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 <bb 10>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- _1 = pxTasksWaitingForBits->xListEnd.pxNext;
- _2 = &pxTasksWaitingForBits->xListEnd;
- if (_1 == _2)
- goto <bb 7>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 7> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 8>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _3 = pxTasksWaitingForBits->xListEnd.pxNext;
- vTaskRemoveFromUnorderedEventList (_3, 33554432);
- <bb 10> :
- # DEBUG BEGIN_STMT
- _4 = pxTasksWaitingForBits->uxNumberOfItems;
- if (_4 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 11> :
- # 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;
- <bb 2> :
- # 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 <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = uxBitsToSet & 4278190080;
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # 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 <bb 19>; [INV]
- <bb 9> :
- # 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 <bb 10>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 10> :
- # DEBUG BEGIN_STMT
- _5 = pxEventBits->uxEventBits;
- _6 = uxBitsWaitedFor & _5;
- if (_6 != 0)
- goto <bb 11>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- xMatchFound = 1;
- goto <bb 14>; [INV]
- <bb 12> :
- # DEBUG BEGIN_STMT
- _7 = pxEventBits->uxEventBits;
- _8 = uxBitsWaitedFor & _7;
- if (uxBitsWaitedFor == _8)
- goto <bb 13>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- xMatchFound = 1;
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xMatchFound != 0)
- goto <bb 15>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 15> :
- # DEBUG BEGIN_STMT
- _9 = uxControlBits & 16777216;
- if (_9 != 0)
- goto <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- uxBitsToClear = uxBitsToClear | uxBitsWaitedFor;
- <bb 17> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _10 = pxEventBits->uxEventBits;
- _11 = _10 | 33554432;
- vTaskRemoveFromUnorderedEventList (pxListItem, _11);
- <bb 18> :
- # DEBUG BEGIN_STMT
- pxListItem = pxNext;
- <bb 19> :
- # DEBUG BEGIN_STMT
- if (pxListItem != pxListEnd)
- goto <bb 9>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 20> :
- # 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;
- <bb 2> :
- # 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;
- <bb 2> :
- # 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;
- <bb 2> :
- # DEBUG BEGIN_STMT
- pxEventBits = xEventGroup;
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = uxBitsToClear & 4278190080;
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # 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;
- <bb 2> :
- # 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 <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _1 = uxBitsToWaitFor & 4278190080;
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxBitsToWaitFor == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 9> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 10> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 10>; [INV]
- <bb 11> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _2 = xTaskGetSchedulerState ();
- if (_2 != 0)
- goto <bb 13>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 12> :
- if (xTicksToWait == 0)
- goto <bb 13>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 13> :
- iftmp.1 = 1;
- goto <bb 15>; [INV]
- <bb 14> :
- iftmp.1 = 0;
- <bb 15> :
- if (iftmp.1 == 0)
- goto <bb 16>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 16> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 17> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 17>; [INV]
- <bb 18> :
- # 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 <bb 19>; [INV]
- else
- goto <bb 21>; [INV]
- <bb 19> :
- # DEBUG BEGIN_STMT
- uxReturn = uxCurrentEventBits;
- # DEBUG BEGIN_STMT
- xTicksToWait = 0;
- # DEBUG BEGIN_STMT
- if (xClearOnExit != 0)
- goto <bb 20>; [INV]
- else
- goto <bb 28>; [INV]
- <bb 20> :
- # DEBUG BEGIN_STMT
- _3 = pxEventBits->uxEventBits;
- _4 = ~uxBitsToWaitFor;
- _5 = _3 & _4;
- pxEventBits->uxEventBits = _5;
- goto <bb 28>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- if (xTicksToWait == 0)
- goto <bb 22>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- uxReturn = uxCurrentEventBits;
- # DEBUG BEGIN_STMT
- xTimeoutOccurred = 1;
- goto <bb 28>; [INV]
- <bb 23> :
- # DEBUG BEGIN_STMT
- if (xClearOnExit != 0)
- goto <bb 24>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 24> :
- # DEBUG BEGIN_STMT
- uxControlBits = uxControlBits | 16777216;
- <bb 25> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (xWaitForAllBits != 0)
- goto <bb 26>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 26> :
- # DEBUG BEGIN_STMT
- uxControlBits = uxControlBits | 67108864;
- <bb 27> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _6 = &pxEventBits->xTasksWaitingForBits;
- _7 = uxBitsToWaitFor | uxControlBits;
- vTaskPlaceOnUnorderedEventList (_6, _7, xTicksToWait);
- # DEBUG BEGIN_STMT
- uxReturn = 0;
- <bb 28> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xAlreadyYielded = xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- if (xTicksToWait != 0)
- goto <bb 29>; [INV]
- else
- goto <bb 37>; [INV]
- <bb 29> :
- # DEBUG BEGIN_STMT
- if (xAlreadyYielded == 0)
- goto <bb 30>; [INV]
- else
- goto <bb 31>; [INV]
- <bb 30> :
- # DEBUG BEGIN_STMT
- _8 = 3758157060B;
- *_8 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 31> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxReturn = uxTaskResetEventItemValue ();
- # DEBUG BEGIN_STMT
- _9 = uxReturn & 33554432;
- if (_9 == 0)
- goto <bb 32>; [INV]
- else
- goto <bb 36>; [INV]
- <bb 32> :
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- uxReturn = pxEventBits->uxEventBits;
- # DEBUG BEGIN_STMT
- _10 = prvTestWaitCondition (uxReturn, uxBitsToWaitFor, xWaitForAllBits);
- if (_10 != 0)
- goto <bb 33>; [INV]
- else
- goto <bb 35>; [INV]
- <bb 33> :
- # DEBUG BEGIN_STMT
- if (xClearOnExit != 0)
- goto <bb 34>; [INV]
- else
- goto <bb 35>; [INV]
- <bb 34> :
- # DEBUG BEGIN_STMT
- _11 = pxEventBits->uxEventBits;
- _12 = ~uxBitsToWaitFor;
- _13 = _11 & _12;
- pxEventBits->uxEventBits = _13;
- <bb 35> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- xTimeoutOccurred = 1;
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- <bb 36> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxReturn = uxReturn & 16777215;
- <bb 37> :
- # 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;
- <bb 2> :
- # 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 <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 4>; [INV]
- <bb 5> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- if (uxBitsToWaitFor == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 7> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 7>; [INV]
- <bb 8> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _2 = xTaskGetSchedulerState ();
- if (_2 != 0)
- goto <bb 10>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 9> :
- if (xTicksToWait == 0)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- iftmp.0 = 1;
- goto <bb 12>; [INV]
- <bb 11> :
- iftmp.0 = 0;
- <bb 12> :
- if (iftmp.0 == 0)
- goto <bb 13>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 13> :
- # DEBUG BEGIN_STMT
- vPortRaiseBASEPRI ();
- <bb 14> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- goto <bb 14>; [INV]
- <bb 15> :
- # 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 <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- # 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 <bb 20>; [INV]
- <bb 17> :
- # DEBUG BEGIN_STMT
- if (xTicksToWait != 0)
- goto <bb 18>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 18> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- _8 = &pxEventBits->xTasksWaitingForBits;
- _9 = uxBitsToWaitFor | 83886080;
- vTaskPlaceOnUnorderedEventList (_8, _9, xTicksToWait);
- # DEBUG BEGIN_STMT
- uxReturn = 0;
- goto <bb 20>; [INV]
- <bb 19> :
- # DEBUG BEGIN_STMT
- uxReturn = pxEventBits->uxEventBits;
- # DEBUG BEGIN_STMT
- xTimeoutOccurred = 1;
- <bb 20> :
- # DEBUG BEGIN_STMT
- xAlreadyYielded = xTaskResumeAll ();
- # DEBUG BEGIN_STMT
- if (xTicksToWait != 0)
- goto <bb 21>; [INV]
- else
- goto <bb 28>; [INV]
- <bb 21> :
- # DEBUG BEGIN_STMT
- if (xAlreadyYielded == 0)
- goto <bb 22>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 22> :
- # DEBUG BEGIN_STMT
- _10 = 3758157060B;
- *_10 = 268435456;
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("dsb" : : : "memory");
- # DEBUG BEGIN_STMT
- __asm__ __volatile__("isb");
- # DEBUG BEGIN_STMT
- <bb 23> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxReturn = uxTaskResetEventItemValue ();
- # DEBUG BEGIN_STMT
- _11 = uxReturn & 33554432;
- if (_11 == 0)
- goto <bb 24>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 24> :
- # DEBUG BEGIN_STMT
- vPortEnterCritical ();
- # DEBUG BEGIN_STMT
- uxReturn = pxEventBits->uxEventBits;
- # DEBUG BEGIN_STMT
- _12 = uxReturn & uxBitsToWaitFor;
- if (uxBitsToWaitFor == _12)
- goto <bb 25>; [INV]
- else
- goto <bb 26>; [INV]
- <bb 25> :
- # DEBUG BEGIN_STMT
- _13 = pxEventBits->uxEventBits;
- _14 = ~uxBitsToWaitFor;
- _15 = _13 & _14;
- pxEventBits->uxEventBits = _15;
- <bb 26> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- vPortExitCritical ();
- # DEBUG BEGIN_STMT
- xTimeoutOccurred = 1;
- <bb 27> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- uxReturn = uxReturn & 16777215;
- <bb 28> :
- # 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;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- pxEventBits = pvPortMalloc (28);
- # DEBUG BEGIN_STMT
- if (pxEventBits != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- # DEBUG BEGIN_STMT
- pxEventBits->uxEventBits = 0;
- # DEBUG BEGIN_STMT
- _1 = &pxEventBits->xTasksWaitingForBits;
- vListInitialise (_1);
- # DEBUG BEGIN_STMT
- <bb 4> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- D.6438 = pxEventBits;
- return D.6438;
- }
- __attribute__((always_inline))
- vPortSetBASEPRI (uint32_t ulNewMaskValue)
- {
- <bb 2> :
- # 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;
- <bb 2> :
- # 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;
- <bb 2> :
- # DEBUG BEGIN_STMT
- # DEBUG BEGIN_STMT
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI : "i" 16 : "memory");
- return;
- }
|