123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116 |
- Marking local functions: 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) @06c66b60
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: vEventGroupDelete/11
- Calls:
- vTaskRemoveFromUnorderedEventList/28 (vTaskRemoveFromUnorderedEventList) @06c669a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: vEventGroupDelete/11 xEventGroupSetBits/10
- Calls:
- xTimerPendFunctionCallFromISR/27 (xTimerPendFunctionCallFromISR) @06c66460
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupSetBitsFromISR/15 xEventGroupClearBitsFromISR/8
- Calls:
- vPortExitCritical/26 (vPortExitCritical) @06c3ce00
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupClearBits/7 xEventGroupWaitBits/6 xEventGroupSync/5
- Calls:
- vPortEnterCritical/25 (vPortEnterCritical) @06c3cd20
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupClearBits/7 xEventGroupWaitBits/6 xEventGroupSync/5
- Calls:
- uxTaskResetEventItemValue/24 (uxTaskResetEventItemValue) @06c3cc40
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupWaitBits/6 xEventGroupSync/5
- Calls:
- xTaskResumeAll/23 (xTaskResumeAll) @06c3cb60
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: vEventGroupDelete/11 xEventGroupSetBits/10 xEventGroupWaitBits/6 xEventGroupSync/5
- Calls:
- vTaskPlaceOnUnorderedEventList/22 (vTaskPlaceOnUnorderedEventList) @06c3ca80
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupWaitBits/6 xEventGroupSync/5
- Calls:
- vTaskSuspendAll/21 (vTaskSuspendAll) @06c3c9a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: vEventGroupDelete/11 xEventGroupSetBits/10 xEventGroupWaitBits/6 xEventGroupSync/5
- Calls:
- xTaskGetSchedulerState/20 (xTaskGetSchedulerState) @06c3c8c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupWaitBits/6 xEventGroupSync/5
- Calls:
- vListInitialise/19 (vListInitialise) @06c3c540
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupCreate/4
- Calls:
- pvPortMalloc/18 (pvPortMalloc) @06c3c460
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xEventGroupCreate/4
- Calls:
- vEventGroupSetNumber/17 (vEventGroupSetNumber) @06c3c000
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls:
- uxEventGroupGetNumber/16 (uxEventGroupGetNumber) @06c32a80
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls:
- xEventGroupSetBitsFromISR/15 (xEventGroupSetBitsFromISR) @06c32460
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: vEventGroupSetBitsCallback/12 (addr)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: xTimerPendFunctionCallFromISR/27
- prvTestWaitCondition/14 (prvTestWaitCondition) @06c32ee0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: xEventGroupWaitBits/6 xEventGroupWaitBits/6
- Calls:
- vEventGroupClearBitsCallback/13 (vEventGroupClearBitsCallback) @06c32c40
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- Address is taken.
- References:
- Referring: xEventGroupClearBitsFromISR/8 (addr)
- Availability: available
- Function flags: body
- Called by:
- Calls: xEventGroupClearBits/7
- vEventGroupSetBitsCallback/12 (vEventGroupSetBitsCallback) @06c329a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- Address is taken.
- References:
- Referring: xEventGroupSetBitsFromISR/15 (addr)
- Availability: available
- Function flags: body
- Called by:
- Calls: xEventGroupSetBits/10
- vEventGroupDelete/11 (vEventGroupDelete) @06c32700
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: xTaskResumeAll/23 vPortFree/29 vTaskRemoveFromUnorderedEventList/28 vPortRaiseBASEPRI/1 vTaskSuspendAll/21 vPortRaiseBASEPRI/1
- xEventGroupSetBits/10 (xEventGroupSetBits) @06c32380
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: vEventGroupSetBitsCallback/12 xEventGroupSync/5
- Calls: xTaskResumeAll/23 vTaskRemoveFromUnorderedEventList/28 vTaskSuspendAll/21 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1
- xEventGroupGetBitsFromISR/9 (xEventGroupGetBitsFromISR) @06befc40
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortSetBASEPRI/3 ulPortRaiseBASEPRI/2
- xEventGroupClearBitsFromISR/8 (xEventGroupClearBitsFromISR) @06bef2a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: vEventGroupClearBitsCallback/13 (addr)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: xTimerPendFunctionCallFromISR/27
- xEventGroupClearBits/7 (xEventGroupClearBits) @06befee0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: vEventGroupClearBitsCallback/13
- Calls: vPortExitCritical/26 vPortEnterCritical/25 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1
- xEventGroupWaitBits/6 (xEventGroupWaitBits) @06befb60
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- 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) @06bef620
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- 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) @06bef1c0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vListInitialise/19 pvPortMalloc/18
- vPortSetBASEPRI/3 (vPortSetBASEPRI) @06b78380
- Type: function definition analyzed
- Visibility: no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: body local
- Called by: xEventGroupGetBitsFromISR/9
- Calls:
- ulPortRaiseBASEPRI/2 (ulPortRaiseBASEPRI) @06b780e0
- Type: function definition analyzed
- Visibility: no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: body local
- Called by: xEventGroupGetBitsFromISR/9
- Calls:
- vPortRaiseBASEPRI/1 (vPortRaiseBASEPRI) @06b73d20
- Type: function definition analyzed
- Visibility: no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: body local
- 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)
- {
- <bb 2> :
- MEM[(struct EventGroup_t *)xEventGroup].uxEventGroupNumber = uxEventGroupNumber;
- return;
- }
- uxEventGroupGetNumber (void * xEventGroup)
- {
- const struct EventGroup_t * pxEventBits;
- UBaseType_t xReturn;
- UBaseType_t D.6567;
- <bb 2> :
- pxEventBits = xEventGroup;
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- xReturn = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- xReturn = pxEventBits->uxEventGroupNumber;
- <bb 5> :
- D.6567 = xReturn;
- <bb 6> :
- <L3>:
- return D.6567;
- }
- xEventGroupSetBitsFromISR (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToSet, BaseType_t * pxHigherPriorityTaskWoken)
- {
- BaseType_t xReturn;
- BaseType_t D.6562;
- <bb 2> :
- xReturn = xTimerPendFunctionCallFromISR (vEventGroupSetBitsCallback, xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken);
- D.6562 = xReturn;
- <bb 3> :
- <L0>:
- return D.6562;
- }
- prvTestWaitCondition (const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits)
- {
- BaseType_t xWaitConditionMet;
- BaseType_t D.6560;
- <bb 2> :
- xWaitConditionMet = 0;
- if (xWaitForAllBits == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- _1 = uxCurrentEventBits & uxBitsToWaitFor;
- if (_1 != 0)
- goto <bb 4>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 4> :
- xWaitConditionMet = 1;
- goto <bb 7>; [INV]
- <bb 5> :
- _2 = uxCurrentEventBits & uxBitsToWaitFor;
- if (uxBitsToWaitFor == _2)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- xWaitConditionMet = 1;
- <bb 7> :
- D.6560 = xWaitConditionMet;
- <bb 8> :
- <L9>:
- return D.6560;
- }
- vEventGroupClearBitsCallback (void * pvEventGroup, const uint32_t ulBitsToClear)
- {
- <bb 2> :
- xEventGroupClearBits (pvEventGroup, ulBitsToClear);
- return;
- }
- vEventGroupSetBitsCallback (void * pvEventGroup, const uint32_t ulBitsToSet)
- {
- <bb 2> :
- xEventGroupSetBits (pvEventGroup, ulBitsToSet);
- return;
- }
- vEventGroupDelete (struct EventGroupDef_t * xEventGroup)
- {
- const struct List_t * pxTasksWaitingForBits;
- struct EventGroup_t * pxEventBits;
- <bb 2> :
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- pxEventBits = xEventGroup;
- pxTasksWaitingForBits = &pxEventBits->xTasksWaitingForBits;
- vTaskSuspendAll ();
- goto <bb 10>; [INV]
- <bb 6> :
- _1 = pxTasksWaitingForBits->xListEnd.pxNext;
- _2 = &pxTasksWaitingForBits->xListEnd;
- if (_1 == _2)
- goto <bb 7>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 7> :
- vPortRaiseBASEPRI ();
- <bb 8> :
- goto <bb 8>; [INV]
- <bb 9> :
- _3 = pxTasksWaitingForBits->xListEnd.pxNext;
- vTaskRemoveFromUnorderedEventList (_3, 33554432);
- <bb 10> :
- _4 = pxTasksWaitingForBits->uxNumberOfItems;
- if (_4 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 11> :
- vPortFree (pxEventBits);
- 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.6545;
- <bb 2> :
- uxBitsToClear = 0;
- pxEventBits = xEventGroup;
- xMatchFound = 0;
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- _1 = uxBitsToSet & 4278190080;
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- vPortRaiseBASEPRI ();
- <bb 7> :
- goto <bb 7>; [INV]
- <bb 8> :
- pxList = &pxEventBits->xTasksWaitingForBits;
- pxListEnd = &pxList->xListEnd;
- vTaskSuspendAll ();
- pxListItem = pxList->xListEnd.pxNext;
- _2 = pxEventBits->uxEventBits;
- _3 = uxBitsToSet | _2;
- pxEventBits->uxEventBits = _3;
- goto <bb 19>; [INV]
- <bb 9> :
- pxNext = pxListItem->pxNext;
- uxBitsWaitedFor = pxListItem->xItemValue;
- xMatchFound = 0;
- uxControlBits = uxBitsWaitedFor & 4278190080;
- uxBitsWaitedFor = uxBitsWaitedFor & 16777215;
- _4 = uxControlBits & 67108864;
- if (_4 == 0)
- goto <bb 10>; [INV]
- else
- goto <bb 12>; [INV]
- <bb 10> :
- _5 = pxEventBits->uxEventBits;
- _6 = uxBitsWaitedFor & _5;
- if (_6 != 0)
- goto <bb 11>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 11> :
- xMatchFound = 1;
- goto <bb 14>; [INV]
- <bb 12> :
- _7 = pxEventBits->uxEventBits;
- _8 = uxBitsWaitedFor & _7;
- if (uxBitsWaitedFor == _8)
- goto <bb 13>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 13> :
- xMatchFound = 1;
- <bb 14> :
- if (xMatchFound != 0)
- goto <bb 15>; [INV]
- else
- goto <bb 18>; [INV]
- <bb 15> :
- _9 = uxControlBits & 16777216;
- if (_9 != 0)
- goto <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- uxBitsToClear = uxBitsToClear | uxBitsWaitedFor;
- <bb 17> :
- _10 = pxEventBits->uxEventBits;
- _11 = _10 | 33554432;
- vTaskRemoveFromUnorderedEventList (pxListItem, _11);
- <bb 18> :
- pxListItem = pxNext;
- <bb 19> :
- if (pxListItem != pxListEnd)
- goto <bb 9>; [INV]
- else
- goto <bb 20>; [INV]
- <bb 20> :
- _12 = pxEventBits->uxEventBits;
- _13 = ~uxBitsToClear;
- _14 = _12 & _13;
- pxEventBits->uxEventBits = _14;
- xTaskResumeAll ();
- D.6545 = pxEventBits->uxEventBits;
- <bb 21> :
- <L23>:
- return D.6545;
- }
- xEventGroupGetBitsFromISR (struct EventGroupDef_t * xEventGroup)
- {
- EventBits_t uxReturn;
- const struct EventGroup_t * const pxEventBits;
- UBaseType_t uxSavedInterruptStatus;
- EventBits_t D.6523;
- <bb 2> :
- pxEventBits = xEventGroup;
- uxSavedInterruptStatus = ulPortRaiseBASEPRI ();
- uxReturn = pxEventBits->uxEventBits;
- vPortSetBASEPRI (uxSavedInterruptStatus);
- D.6523 = uxReturn;
- <bb 3> :
- <L0>:
- return D.6523;
- }
- xEventGroupClearBitsFromISR (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToClear)
- {
- BaseType_t xReturn;
- BaseType_t D.6521;
- <bb 2> :
- xReturn = xTimerPendFunctionCallFromISR (vEventGroupClearBitsCallback, xEventGroup, uxBitsToClear, 0B);
- D.6521 = xReturn;
- <bb 3> :
- <L0>:
- return D.6521;
- }
- xEventGroupClearBits (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToClear)
- {
- EventBits_t uxReturn;
- struct EventGroup_t * pxEventBits;
- EventBits_t D.6519;
- <bb 2> :
- pxEventBits = xEventGroup;
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- _1 = uxBitsToClear & 4278190080;
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- vPortRaiseBASEPRI ();
- <bb 7> :
- goto <bb 7>; [INV]
- <bb 8> :
- vPortEnterCritical ();
- uxReturn = pxEventBits->uxEventBits;
- _2 = pxEventBits->uxEventBits;
- _3 = ~uxBitsToClear;
- _4 = _2 & _3;
- pxEventBits->uxEventBits = _4;
- vPortExitCritical ();
- D.6519 = uxReturn;
- <bb 9> :
- <L6>:
- return D.6519;
- }
- 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.6513;
- int iftmp.1;
- <bb 2> :
- pxEventBits = xEventGroup;
- uxControlBits = 0;
- xTimeoutOccurred = 0;
- if (xEventGroup == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- _1 = uxBitsToWaitFor & 4278190080;
- if (_1 != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- vPortRaiseBASEPRI ();
- <bb 7> :
- goto <bb 7>; [INV]
- <bb 8> :
- if (uxBitsToWaitFor == 0)
- goto <bb 9>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 9> :
- vPortRaiseBASEPRI ();
- <bb 10> :
- goto <bb 10>; [INV]
- <bb 11> :
- _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> :
- vPortRaiseBASEPRI ();
- <bb 17> :
- goto <bb 17>; [INV]
- <bb 18> :
- vTaskSuspendAll ();
- uxCurrentEventBits = pxEventBits->uxEventBits;
- xWaitConditionMet = prvTestWaitCondition (uxCurrentEventBits, uxBitsToWaitFor, xWaitForAllBits);
- if (xWaitConditionMet != 0)
- goto <bb 19>; [INV]
- else
- goto <bb 21>; [INV]
- <bb 19> :
- uxReturn = uxCurrentEventBits;
- xTicksToWait = 0;
- if (xClearOnExit != 0)
- goto <bb 20>; [INV]
- else
- goto <bb 28>; [INV]
- <bb 20> :
- _3 = pxEventBits->uxEventBits;
- _4 = ~uxBitsToWaitFor;
- _5 = _3 & _4;
- pxEventBits->uxEventBits = _5;
- goto <bb 28>; [INV]
- <bb 21> :
- if (xTicksToWait == 0)
- goto <bb 22>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 22> :
- uxReturn = uxCurrentEventBits;
- xTimeoutOccurred = 1;
- goto <bb 28>; [INV]
- <bb 23> :
- if (xClearOnExit != 0)
- goto <bb 24>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 24> :
- uxControlBits = uxControlBits | 16777216;
- <bb 25> :
- if (xWaitForAllBits != 0)
- goto <bb 26>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 26> :
- uxControlBits = uxControlBits | 67108864;
- <bb 27> :
- _6 = &pxEventBits->xTasksWaitingForBits;
- _7 = uxBitsToWaitFor | uxControlBits;
- vTaskPlaceOnUnorderedEventList (_6, _7, xTicksToWait);
- uxReturn = 0;
- <bb 28> :
- xAlreadyYielded = xTaskResumeAll ();
- if (xTicksToWait != 0)
- goto <bb 29>; [INV]
- else
- goto <bb 37>; [INV]
- <bb 29> :
- if (xAlreadyYielded == 0)
- goto <bb 30>; [INV]
- else
- goto <bb 31>; [INV]
- <bb 30> :
- _8 = 3758157060B;
- *_8 = 268435456;
- __asm__ __volatile__("dsb" : : : "memory");
- __asm__ __volatile__("isb");
- <bb 31> :
- uxReturn = uxTaskResetEventItemValue ();
- _9 = uxReturn & 33554432;
- if (_9 == 0)
- goto <bb 32>; [INV]
- else
- goto <bb 36>; [INV]
- <bb 32> :
- vPortEnterCritical ();
- uxReturn = pxEventBits->uxEventBits;
- _10 = prvTestWaitCondition (uxReturn, uxBitsToWaitFor, xWaitForAllBits);
- if (_10 != 0)
- goto <bb 33>; [INV]
- else
- goto <bb 35>; [INV]
- <bb 33> :
- if (xClearOnExit != 0)
- goto <bb 34>; [INV]
- else
- goto <bb 35>; [INV]
- <bb 34> :
- _11 = pxEventBits->uxEventBits;
- _12 = ~uxBitsToWaitFor;
- _13 = _11 & _12;
- pxEventBits->uxEventBits = _13;
- <bb 35> :
- xTimeoutOccurred = 1;
- vPortExitCritical ();
- <bb 36> :
- uxReturn = uxReturn & 16777215;
- <bb 37> :
- D.6513 = uxReturn;
- <bb 38> :
- <L45>:
- return D.6513;
- }
- 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.6469;
- int iftmp.0;
- <bb 2> :
- pxEventBits = xEventGroup;
- xTimeoutOccurred = 0;
- _1 = uxBitsToWaitFor & 4278190080;
- if (_1 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- if (uxBitsToWaitFor == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 6> :
- vPortRaiseBASEPRI ();
- <bb 7> :
- goto <bb 7>; [INV]
- <bb 8> :
- _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> :
- vPortRaiseBASEPRI ();
- <bb 14> :
- goto <bb 14>; [INV]
- <bb 15> :
- vTaskSuspendAll ();
- uxOriginalBitValue = pxEventBits->uxEventBits;
- xEventGroupSetBits (xEventGroup, uxBitsToSet);
- _3 = uxOriginalBitValue | uxBitsToSet;
- _4 = uxBitsToWaitFor & _3;
- if (uxBitsToWaitFor == _4)
- goto <bb 16>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 16> :
- uxReturn = uxOriginalBitValue | uxBitsToSet;
- _5 = pxEventBits->uxEventBits;
- _6 = ~uxBitsToWaitFor;
- _7 = _5 & _6;
- pxEventBits->uxEventBits = _7;
- xTicksToWait = 0;
- goto <bb 20>; [INV]
- <bb 17> :
- if (xTicksToWait != 0)
- goto <bb 18>; [INV]
- else
- goto <bb 19>; [INV]
- <bb 18> :
- _8 = &pxEventBits->xTasksWaitingForBits;
- _9 = uxBitsToWaitFor | 83886080;
- vTaskPlaceOnUnorderedEventList (_8, _9, xTicksToWait);
- uxReturn = 0;
- goto <bb 20>; [INV]
- <bb 19> :
- uxReturn = pxEventBits->uxEventBits;
- xTimeoutOccurred = 1;
- <bb 20> :
- xAlreadyYielded = xTaskResumeAll ();
- if (xTicksToWait != 0)
- goto <bb 21>; [INV]
- else
- goto <bb 28>; [INV]
- <bb 21> :
- if (xAlreadyYielded == 0)
- goto <bb 22>; [INV]
- else
- goto <bb 23>; [INV]
- <bb 22> :
- _10 = 3758157060B;
- *_10 = 268435456;
- __asm__ __volatile__("dsb" : : : "memory");
- __asm__ __volatile__("isb");
- <bb 23> :
- uxReturn = uxTaskResetEventItemValue ();
- _11 = uxReturn & 33554432;
- if (_11 == 0)
- goto <bb 24>; [INV]
- else
- goto <bb 27>; [INV]
- <bb 24> :
- vPortEnterCritical ();
- uxReturn = pxEventBits->uxEventBits;
- _12 = uxReturn & uxBitsToWaitFor;
- if (uxBitsToWaitFor == _12)
- goto <bb 25>; [INV]
- else
- goto <bb 26>; [INV]
- <bb 25> :
- _13 = pxEventBits->uxEventBits;
- _14 = ~uxBitsToWaitFor;
- _15 = _13 & _14;
- pxEventBits->uxEventBits = _15;
- <bb 26> :
- vPortExitCritical ();
- xTimeoutOccurred = 1;
- <bb 27> :
- uxReturn = uxReturn & 16777215;
- <bb 28> :
- D.6469 = uxReturn;
- <bb 29> :
- <L30>:
- return D.6469;
- }
- xEventGroupCreate ()
- {
- struct EventGroup_t * pxEventBits;
- struct EventGroupDef_t * D.6439;
- <bb 2> :
- pxEventBits = pvPortMalloc (28);
- if (pxEventBits != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- pxEventBits->uxEventBits = 0;
- _1 = &pxEventBits->xTasksWaitingForBits;
- vListInitialise (_1);
- <bb 4> :
- D.6439 = pxEventBits;
- <bb 5> :
- <L3>:
- return D.6439;
- }
- __attribute__((always_inline))
- vPortSetBASEPRI (uint32_t ulNewMaskValue)
- {
- <bb 2> :
- __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue : "memory");
- return;
- }
- __attribute__((always_inline))
- ulPortRaiseBASEPRI ()
- {
- uint32_t ulNewBASEPRI;
- uint32_t ulOriginalBASEPRI;
- uint32_t D.6525;
- <bb 2> :
- __asm__ __volatile__(" mrs %0, basepri
- mov %1, %2
- msr basepri, %1
- isb
- dsb
- " : "=r" ulOriginalBASEPRI, "=r" ulNewBASEPRI : "i" 16 : "memory");
- D.6525 = ulOriginalBASEPRI;
- <bb 3> :
- <L0>:
- return D.6525;
- }
- __attribute__((always_inline))
- vPortRaiseBASEPRI ()
- {
- uint32_t ulNewBASEPRI;
- <bb 2> :
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI : "i" 16 : "memory");
- return;
- }
|