event_groups.c.016i.visibility 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116
  1. Marking local functions: vPortSetBASEPRI ulPortRaiseBASEPRI vPortRaiseBASEPRI
  2. Marking externally visible functions: vEventGroupSetNumber uxEventGroupGetNumber xEventGroupSetBitsFromISR vEventGroupClearBitsCallback vEventGroupSetBitsCallback vEventGroupDelete xEventGroupSetBits xEventGroupGetBitsFromISR xEventGroupClearBitsFromISR xEventGroupClearBits xEventGroupWaitBits xEventGroupSync xEventGroupCreate
  3. Marking externally visible variables:
  4. Reclaiming functions:
  5. Reclaiming variables:
  6. Clearing address taken flags:
  7. Symbol table:
  8. vPortFree/29 (vPortFree) @06c66b60
  9. Type: function
  10. Visibility: external public
  11. References:
  12. Referring:
  13. Availability: not_available
  14. Function flags:
  15. Called by: vEventGroupDelete/11
  16. Calls:
  17. vTaskRemoveFromUnorderedEventList/28 (vTaskRemoveFromUnorderedEventList) @06c669a0
  18. Type: function
  19. Visibility: external public
  20. References:
  21. Referring:
  22. Availability: not_available
  23. Function flags:
  24. Called by: vEventGroupDelete/11 xEventGroupSetBits/10
  25. Calls:
  26. xTimerPendFunctionCallFromISR/27 (xTimerPendFunctionCallFromISR) @06c66460
  27. Type: function
  28. Visibility: external public
  29. References:
  30. Referring:
  31. Availability: not_available
  32. Function flags:
  33. Called by: xEventGroupSetBitsFromISR/15 xEventGroupClearBitsFromISR/8
  34. Calls:
  35. vPortExitCritical/26 (vPortExitCritical) @06c3ce00
  36. Type: function
  37. Visibility: external public
  38. References:
  39. Referring:
  40. Availability: not_available
  41. Function flags:
  42. Called by: xEventGroupClearBits/7 xEventGroupWaitBits/6 xEventGroupSync/5
  43. Calls:
  44. vPortEnterCritical/25 (vPortEnterCritical) @06c3cd20
  45. Type: function
  46. Visibility: external public
  47. References:
  48. Referring:
  49. Availability: not_available
  50. Function flags:
  51. Called by: xEventGroupClearBits/7 xEventGroupWaitBits/6 xEventGroupSync/5
  52. Calls:
  53. uxTaskResetEventItemValue/24 (uxTaskResetEventItemValue) @06c3cc40
  54. Type: function
  55. Visibility: external public
  56. References:
  57. Referring:
  58. Availability: not_available
  59. Function flags:
  60. Called by: xEventGroupWaitBits/6 xEventGroupSync/5
  61. Calls:
  62. xTaskResumeAll/23 (xTaskResumeAll) @06c3cb60
  63. Type: function
  64. Visibility: external public
  65. References:
  66. Referring:
  67. Availability: not_available
  68. Function flags:
  69. Called by: vEventGroupDelete/11 xEventGroupSetBits/10 xEventGroupWaitBits/6 xEventGroupSync/5
  70. Calls:
  71. vTaskPlaceOnUnorderedEventList/22 (vTaskPlaceOnUnorderedEventList) @06c3ca80
  72. Type: function
  73. Visibility: external public
  74. References:
  75. Referring:
  76. Availability: not_available
  77. Function flags:
  78. Called by: xEventGroupWaitBits/6 xEventGroupSync/5
  79. Calls:
  80. vTaskSuspendAll/21 (vTaskSuspendAll) @06c3c9a0
  81. Type: function
  82. Visibility: external public
  83. References:
  84. Referring:
  85. Availability: not_available
  86. Function flags:
  87. Called by: vEventGroupDelete/11 xEventGroupSetBits/10 xEventGroupWaitBits/6 xEventGroupSync/5
  88. Calls:
  89. xTaskGetSchedulerState/20 (xTaskGetSchedulerState) @06c3c8c0
  90. Type: function
  91. Visibility: external public
  92. References:
  93. Referring:
  94. Availability: not_available
  95. Function flags:
  96. Called by: xEventGroupWaitBits/6 xEventGroupSync/5
  97. Calls:
  98. vListInitialise/19 (vListInitialise) @06c3c540
  99. Type: function
  100. Visibility: external public
  101. References:
  102. Referring:
  103. Availability: not_available
  104. Function flags:
  105. Called by: xEventGroupCreate/4
  106. Calls:
  107. pvPortMalloc/18 (pvPortMalloc) @06c3c460
  108. Type: function
  109. Visibility: external public
  110. References:
  111. Referring:
  112. Availability: not_available
  113. Function flags:
  114. Called by: xEventGroupCreate/4
  115. Calls:
  116. vEventGroupSetNumber/17 (vEventGroupSetNumber) @06c3c000
  117. Type: function definition analyzed
  118. Visibility: force_output externally_visible no_reorder public
  119. References:
  120. Referring:
  121. Availability: available
  122. Function flags: body
  123. Called by:
  124. Calls:
  125. uxEventGroupGetNumber/16 (uxEventGroupGetNumber) @06c32a80
  126. Type: function definition analyzed
  127. Visibility: force_output externally_visible no_reorder public
  128. References:
  129. Referring:
  130. Availability: available
  131. Function flags: body
  132. Called by:
  133. Calls:
  134. xEventGroupSetBitsFromISR/15 (xEventGroupSetBitsFromISR) @06c32460
  135. Type: function definition analyzed
  136. Visibility: force_output externally_visible no_reorder public
  137. References: vEventGroupSetBitsCallback/12 (addr)
  138. Referring:
  139. Availability: available
  140. Function flags: body
  141. Called by:
  142. Calls: xTimerPendFunctionCallFromISR/27
  143. prvTestWaitCondition/14 (prvTestWaitCondition) @06c32ee0
  144. Type: function definition analyzed
  145. Visibility: force_output no_reorder prevailing_def_ironly
  146. References:
  147. Referring:
  148. Availability: available
  149. Function flags: body
  150. Called by: xEventGroupWaitBits/6 xEventGroupWaitBits/6
  151. Calls:
  152. vEventGroupClearBitsCallback/13 (vEventGroupClearBitsCallback) @06c32c40
  153. Type: function definition analyzed
  154. Visibility: force_output externally_visible no_reorder public
  155. Address is taken.
  156. References:
  157. Referring: xEventGroupClearBitsFromISR/8 (addr)
  158. Availability: available
  159. Function flags: body
  160. Called by:
  161. Calls: xEventGroupClearBits/7
  162. vEventGroupSetBitsCallback/12 (vEventGroupSetBitsCallback) @06c329a0
  163. Type: function definition analyzed
  164. Visibility: force_output externally_visible no_reorder public
  165. Address is taken.
  166. References:
  167. Referring: xEventGroupSetBitsFromISR/15 (addr)
  168. Availability: available
  169. Function flags: body
  170. Called by:
  171. Calls: xEventGroupSetBits/10
  172. vEventGroupDelete/11 (vEventGroupDelete) @06c32700
  173. Type: function definition analyzed
  174. Visibility: force_output externally_visible no_reorder public
  175. References:
  176. Referring:
  177. Availability: available
  178. Function flags: body
  179. Called by:
  180. Calls: xTaskResumeAll/23 vPortFree/29 vTaskRemoveFromUnorderedEventList/28 vPortRaiseBASEPRI/1 vTaskSuspendAll/21 vPortRaiseBASEPRI/1
  181. xEventGroupSetBits/10 (xEventGroupSetBits) @06c32380
  182. Type: function definition analyzed
  183. Visibility: force_output externally_visible no_reorder public
  184. References:
  185. Referring:
  186. Availability: available
  187. Function flags: body
  188. Called by: vEventGroupSetBitsCallback/12 xEventGroupSync/5
  189. Calls: xTaskResumeAll/23 vTaskRemoveFromUnorderedEventList/28 vTaskSuspendAll/21 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1
  190. xEventGroupGetBitsFromISR/9 (xEventGroupGetBitsFromISR) @06befc40
  191. Type: function definition analyzed
  192. Visibility: force_output externally_visible no_reorder public
  193. References:
  194. Referring:
  195. Availability: available
  196. Function flags: body
  197. Called by:
  198. Calls: vPortSetBASEPRI/3 ulPortRaiseBASEPRI/2
  199. xEventGroupClearBitsFromISR/8 (xEventGroupClearBitsFromISR) @06bef2a0
  200. Type: function definition analyzed
  201. Visibility: force_output externally_visible no_reorder public
  202. References: vEventGroupClearBitsCallback/13 (addr)
  203. Referring:
  204. Availability: available
  205. Function flags: body
  206. Called by:
  207. Calls: xTimerPendFunctionCallFromISR/27
  208. xEventGroupClearBits/7 (xEventGroupClearBits) @06befee0
  209. Type: function definition analyzed
  210. Visibility: force_output externally_visible no_reorder public
  211. References:
  212. Referring:
  213. Availability: available
  214. Function flags: body
  215. Called by: vEventGroupClearBitsCallback/13
  216. Calls: vPortExitCritical/26 vPortEnterCritical/25 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1
  217. xEventGroupWaitBits/6 (xEventGroupWaitBits) @06befb60
  218. Type: function definition analyzed
  219. Visibility: force_output externally_visible no_reorder public
  220. References:
  221. Referring:
  222. Availability: available
  223. Function flags: body
  224. Called by:
  225. 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
  226. xEventGroupSync/5 (xEventGroupSync) @06bef620
  227. Type: function definition analyzed
  228. Visibility: force_output externally_visible no_reorder public
  229. References:
  230. Referring:
  231. Availability: available
  232. Function flags: body
  233. Called by:
  234. Calls: vPortExitCritical/26 vPortEnterCritical/25 uxTaskResetEventItemValue/24 xTaskResumeAll/23 vTaskPlaceOnUnorderedEventList/22 xEventGroupSetBits/10 vTaskSuspendAll/21 vPortRaiseBASEPRI/1 xTaskGetSchedulerState/20 vPortRaiseBASEPRI/1 vPortRaiseBASEPRI/1
  235. xEventGroupCreate/4 (xEventGroupCreate) @06bef1c0
  236. Type: function definition analyzed
  237. Visibility: force_output externally_visible no_reorder public
  238. References:
  239. Referring:
  240. Availability: available
  241. Function flags: body
  242. Called by:
  243. Calls: vListInitialise/19 pvPortMalloc/18
  244. vPortSetBASEPRI/3 (vPortSetBASEPRI) @06b78380
  245. Type: function definition analyzed
  246. Visibility: no_reorder prevailing_def_ironly
  247. References:
  248. Referring:
  249. Availability: local
  250. Function flags: body local
  251. Called by: xEventGroupGetBitsFromISR/9
  252. Calls:
  253. ulPortRaiseBASEPRI/2 (ulPortRaiseBASEPRI) @06b780e0
  254. Type: function definition analyzed
  255. Visibility: no_reorder prevailing_def_ironly
  256. References:
  257. Referring:
  258. Availability: local
  259. Function flags: body local
  260. Called by: xEventGroupGetBitsFromISR/9
  261. Calls:
  262. vPortRaiseBASEPRI/1 (vPortRaiseBASEPRI) @06b73d20
  263. Type: function definition analyzed
  264. Visibility: no_reorder prevailing_def_ironly
  265. References:
  266. Referring:
  267. Availability: local
  268. Function flags: body local
  269. 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
  270. Calls:
  271. vEventGroupSetNumber (void * xEventGroup, UBaseType_t uxEventGroupNumber)
  272. {
  273. <bb 2> :
  274. MEM[(struct EventGroup_t *)xEventGroup].uxEventGroupNumber = uxEventGroupNumber;
  275. return;
  276. }
  277. uxEventGroupGetNumber (void * xEventGroup)
  278. {
  279. const struct EventGroup_t * pxEventBits;
  280. UBaseType_t xReturn;
  281. UBaseType_t D.6567;
  282. <bb 2> :
  283. pxEventBits = xEventGroup;
  284. if (xEventGroup == 0B)
  285. goto <bb 3>; [INV]
  286. else
  287. goto <bb 4>; [INV]
  288. <bb 3> :
  289. xReturn = 0;
  290. goto <bb 5>; [INV]
  291. <bb 4> :
  292. xReturn = pxEventBits->uxEventGroupNumber;
  293. <bb 5> :
  294. D.6567 = xReturn;
  295. <bb 6> :
  296. <L3>:
  297. return D.6567;
  298. }
  299. xEventGroupSetBitsFromISR (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToSet, BaseType_t * pxHigherPriorityTaskWoken)
  300. {
  301. BaseType_t xReturn;
  302. BaseType_t D.6562;
  303. <bb 2> :
  304. xReturn = xTimerPendFunctionCallFromISR (vEventGroupSetBitsCallback, xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken);
  305. D.6562 = xReturn;
  306. <bb 3> :
  307. <L0>:
  308. return D.6562;
  309. }
  310. prvTestWaitCondition (const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits)
  311. {
  312. BaseType_t xWaitConditionMet;
  313. BaseType_t D.6560;
  314. <bb 2> :
  315. xWaitConditionMet = 0;
  316. if (xWaitForAllBits == 0)
  317. goto <bb 3>; [INV]
  318. else
  319. goto <bb 5>; [INV]
  320. <bb 3> :
  321. _1 = uxCurrentEventBits & uxBitsToWaitFor;
  322. if (_1 != 0)
  323. goto <bb 4>; [INV]
  324. else
  325. goto <bb 7>; [INV]
  326. <bb 4> :
  327. xWaitConditionMet = 1;
  328. goto <bb 7>; [INV]
  329. <bb 5> :
  330. _2 = uxCurrentEventBits & uxBitsToWaitFor;
  331. if (uxBitsToWaitFor == _2)
  332. goto <bb 6>; [INV]
  333. else
  334. goto <bb 7>; [INV]
  335. <bb 6> :
  336. xWaitConditionMet = 1;
  337. <bb 7> :
  338. D.6560 = xWaitConditionMet;
  339. <bb 8> :
  340. <L9>:
  341. return D.6560;
  342. }
  343. vEventGroupClearBitsCallback (void * pvEventGroup, const uint32_t ulBitsToClear)
  344. {
  345. <bb 2> :
  346. xEventGroupClearBits (pvEventGroup, ulBitsToClear);
  347. return;
  348. }
  349. vEventGroupSetBitsCallback (void * pvEventGroup, const uint32_t ulBitsToSet)
  350. {
  351. <bb 2> :
  352. xEventGroupSetBits (pvEventGroup, ulBitsToSet);
  353. return;
  354. }
  355. vEventGroupDelete (struct EventGroupDef_t * xEventGroup)
  356. {
  357. const struct List_t * pxTasksWaitingForBits;
  358. struct EventGroup_t * pxEventBits;
  359. <bb 2> :
  360. if (xEventGroup == 0B)
  361. goto <bb 3>; [INV]
  362. else
  363. goto <bb 5>; [INV]
  364. <bb 3> :
  365. vPortRaiseBASEPRI ();
  366. <bb 4> :
  367. goto <bb 4>; [INV]
  368. <bb 5> :
  369. pxEventBits = xEventGroup;
  370. pxTasksWaitingForBits = &pxEventBits->xTasksWaitingForBits;
  371. vTaskSuspendAll ();
  372. goto <bb 10>; [INV]
  373. <bb 6> :
  374. _1 = pxTasksWaitingForBits->xListEnd.pxNext;
  375. _2 = &pxTasksWaitingForBits->xListEnd;
  376. if (_1 == _2)
  377. goto <bb 7>; [INV]
  378. else
  379. goto <bb 9>; [INV]
  380. <bb 7> :
  381. vPortRaiseBASEPRI ();
  382. <bb 8> :
  383. goto <bb 8>; [INV]
  384. <bb 9> :
  385. _3 = pxTasksWaitingForBits->xListEnd.pxNext;
  386. vTaskRemoveFromUnorderedEventList (_3, 33554432);
  387. <bb 10> :
  388. _4 = pxTasksWaitingForBits->uxNumberOfItems;
  389. if (_4 != 0)
  390. goto <bb 6>; [INV]
  391. else
  392. goto <bb 11>; [INV]
  393. <bb 11> :
  394. vPortFree (pxEventBits);
  395. xTaskResumeAll ();
  396. return;
  397. }
  398. xEventGroupSetBits (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToSet)
  399. {
  400. BaseType_t xMatchFound;
  401. struct EventGroup_t * pxEventBits;
  402. EventBits_t uxControlBits;
  403. EventBits_t uxBitsWaitedFor;
  404. EventBits_t uxBitsToClear;
  405. const struct List_t * pxList;
  406. const struct ListItem_t * pxListEnd;
  407. struct ListItem_t * pxNext;
  408. struct ListItem_t * pxListItem;
  409. EventBits_t D.6545;
  410. <bb 2> :
  411. uxBitsToClear = 0;
  412. pxEventBits = xEventGroup;
  413. xMatchFound = 0;
  414. if (xEventGroup == 0B)
  415. goto <bb 3>; [INV]
  416. else
  417. goto <bb 5>; [INV]
  418. <bb 3> :
  419. vPortRaiseBASEPRI ();
  420. <bb 4> :
  421. goto <bb 4>; [INV]
  422. <bb 5> :
  423. _1 = uxBitsToSet & 4278190080;
  424. if (_1 != 0)
  425. goto <bb 6>; [INV]
  426. else
  427. goto <bb 8>; [INV]
  428. <bb 6> :
  429. vPortRaiseBASEPRI ();
  430. <bb 7> :
  431. goto <bb 7>; [INV]
  432. <bb 8> :
  433. pxList = &pxEventBits->xTasksWaitingForBits;
  434. pxListEnd = &pxList->xListEnd;
  435. vTaskSuspendAll ();
  436. pxListItem = pxList->xListEnd.pxNext;
  437. _2 = pxEventBits->uxEventBits;
  438. _3 = uxBitsToSet | _2;
  439. pxEventBits->uxEventBits = _3;
  440. goto <bb 19>; [INV]
  441. <bb 9> :
  442. pxNext = pxListItem->pxNext;
  443. uxBitsWaitedFor = pxListItem->xItemValue;
  444. xMatchFound = 0;
  445. uxControlBits = uxBitsWaitedFor & 4278190080;
  446. uxBitsWaitedFor = uxBitsWaitedFor & 16777215;
  447. _4 = uxControlBits & 67108864;
  448. if (_4 == 0)
  449. goto <bb 10>; [INV]
  450. else
  451. goto <bb 12>; [INV]
  452. <bb 10> :
  453. _5 = pxEventBits->uxEventBits;
  454. _6 = uxBitsWaitedFor & _5;
  455. if (_6 != 0)
  456. goto <bb 11>; [INV]
  457. else
  458. goto <bb 14>; [INV]
  459. <bb 11> :
  460. xMatchFound = 1;
  461. goto <bb 14>; [INV]
  462. <bb 12> :
  463. _7 = pxEventBits->uxEventBits;
  464. _8 = uxBitsWaitedFor & _7;
  465. if (uxBitsWaitedFor == _8)
  466. goto <bb 13>; [INV]
  467. else
  468. goto <bb 14>; [INV]
  469. <bb 13> :
  470. xMatchFound = 1;
  471. <bb 14> :
  472. if (xMatchFound != 0)
  473. goto <bb 15>; [INV]
  474. else
  475. goto <bb 18>; [INV]
  476. <bb 15> :
  477. _9 = uxControlBits & 16777216;
  478. if (_9 != 0)
  479. goto <bb 16>; [INV]
  480. else
  481. goto <bb 17>; [INV]
  482. <bb 16> :
  483. uxBitsToClear = uxBitsToClear | uxBitsWaitedFor;
  484. <bb 17> :
  485. _10 = pxEventBits->uxEventBits;
  486. _11 = _10 | 33554432;
  487. vTaskRemoveFromUnorderedEventList (pxListItem, _11);
  488. <bb 18> :
  489. pxListItem = pxNext;
  490. <bb 19> :
  491. if (pxListItem != pxListEnd)
  492. goto <bb 9>; [INV]
  493. else
  494. goto <bb 20>; [INV]
  495. <bb 20> :
  496. _12 = pxEventBits->uxEventBits;
  497. _13 = ~uxBitsToClear;
  498. _14 = _12 & _13;
  499. pxEventBits->uxEventBits = _14;
  500. xTaskResumeAll ();
  501. D.6545 = pxEventBits->uxEventBits;
  502. <bb 21> :
  503. <L23>:
  504. return D.6545;
  505. }
  506. xEventGroupGetBitsFromISR (struct EventGroupDef_t * xEventGroup)
  507. {
  508. EventBits_t uxReturn;
  509. const struct EventGroup_t * const pxEventBits;
  510. UBaseType_t uxSavedInterruptStatus;
  511. EventBits_t D.6523;
  512. <bb 2> :
  513. pxEventBits = xEventGroup;
  514. uxSavedInterruptStatus = ulPortRaiseBASEPRI ();
  515. uxReturn = pxEventBits->uxEventBits;
  516. vPortSetBASEPRI (uxSavedInterruptStatus);
  517. D.6523 = uxReturn;
  518. <bb 3> :
  519. <L0>:
  520. return D.6523;
  521. }
  522. xEventGroupClearBitsFromISR (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToClear)
  523. {
  524. BaseType_t xReturn;
  525. BaseType_t D.6521;
  526. <bb 2> :
  527. xReturn = xTimerPendFunctionCallFromISR (vEventGroupClearBitsCallback, xEventGroup, uxBitsToClear, 0B);
  528. D.6521 = xReturn;
  529. <bb 3> :
  530. <L0>:
  531. return D.6521;
  532. }
  533. xEventGroupClearBits (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToClear)
  534. {
  535. EventBits_t uxReturn;
  536. struct EventGroup_t * pxEventBits;
  537. EventBits_t D.6519;
  538. <bb 2> :
  539. pxEventBits = xEventGroup;
  540. if (xEventGroup == 0B)
  541. goto <bb 3>; [INV]
  542. else
  543. goto <bb 5>; [INV]
  544. <bb 3> :
  545. vPortRaiseBASEPRI ();
  546. <bb 4> :
  547. goto <bb 4>; [INV]
  548. <bb 5> :
  549. _1 = uxBitsToClear & 4278190080;
  550. if (_1 != 0)
  551. goto <bb 6>; [INV]
  552. else
  553. goto <bb 8>; [INV]
  554. <bb 6> :
  555. vPortRaiseBASEPRI ();
  556. <bb 7> :
  557. goto <bb 7>; [INV]
  558. <bb 8> :
  559. vPortEnterCritical ();
  560. uxReturn = pxEventBits->uxEventBits;
  561. _2 = pxEventBits->uxEventBits;
  562. _3 = ~uxBitsToClear;
  563. _4 = _2 & _3;
  564. pxEventBits->uxEventBits = _4;
  565. vPortExitCritical ();
  566. D.6519 = uxReturn;
  567. <bb 9> :
  568. <L6>:
  569. return D.6519;
  570. }
  571. xEventGroupWaitBits (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait)
  572. {
  573. const EventBits_t uxCurrentEventBits;
  574. BaseType_t xTimeoutOccurred;
  575. BaseType_t xAlreadyYielded;
  576. BaseType_t xWaitConditionMet;
  577. EventBits_t uxControlBits;
  578. EventBits_t uxReturn;
  579. struct EventGroup_t * pxEventBits;
  580. EventBits_t D.6513;
  581. int iftmp.1;
  582. <bb 2> :
  583. pxEventBits = xEventGroup;
  584. uxControlBits = 0;
  585. xTimeoutOccurred = 0;
  586. if (xEventGroup == 0B)
  587. goto <bb 3>; [INV]
  588. else
  589. goto <bb 5>; [INV]
  590. <bb 3> :
  591. vPortRaiseBASEPRI ();
  592. <bb 4> :
  593. goto <bb 4>; [INV]
  594. <bb 5> :
  595. _1 = uxBitsToWaitFor & 4278190080;
  596. if (_1 != 0)
  597. goto <bb 6>; [INV]
  598. else
  599. goto <bb 8>; [INV]
  600. <bb 6> :
  601. vPortRaiseBASEPRI ();
  602. <bb 7> :
  603. goto <bb 7>; [INV]
  604. <bb 8> :
  605. if (uxBitsToWaitFor == 0)
  606. goto <bb 9>; [INV]
  607. else
  608. goto <bb 11>; [INV]
  609. <bb 9> :
  610. vPortRaiseBASEPRI ();
  611. <bb 10> :
  612. goto <bb 10>; [INV]
  613. <bb 11> :
  614. _2 = xTaskGetSchedulerState ();
  615. if (_2 != 0)
  616. goto <bb 13>; [INV]
  617. else
  618. goto <bb 12>; [INV]
  619. <bb 12> :
  620. if (xTicksToWait == 0)
  621. goto <bb 13>; [INV]
  622. else
  623. goto <bb 14>; [INV]
  624. <bb 13> :
  625. iftmp.1 = 1;
  626. goto <bb 15>; [INV]
  627. <bb 14> :
  628. iftmp.1 = 0;
  629. <bb 15> :
  630. if (iftmp.1 == 0)
  631. goto <bb 16>; [INV]
  632. else
  633. goto <bb 18>; [INV]
  634. <bb 16> :
  635. vPortRaiseBASEPRI ();
  636. <bb 17> :
  637. goto <bb 17>; [INV]
  638. <bb 18> :
  639. vTaskSuspendAll ();
  640. uxCurrentEventBits = pxEventBits->uxEventBits;
  641. xWaitConditionMet = prvTestWaitCondition (uxCurrentEventBits, uxBitsToWaitFor, xWaitForAllBits);
  642. if (xWaitConditionMet != 0)
  643. goto <bb 19>; [INV]
  644. else
  645. goto <bb 21>; [INV]
  646. <bb 19> :
  647. uxReturn = uxCurrentEventBits;
  648. xTicksToWait = 0;
  649. if (xClearOnExit != 0)
  650. goto <bb 20>; [INV]
  651. else
  652. goto <bb 28>; [INV]
  653. <bb 20> :
  654. _3 = pxEventBits->uxEventBits;
  655. _4 = ~uxBitsToWaitFor;
  656. _5 = _3 & _4;
  657. pxEventBits->uxEventBits = _5;
  658. goto <bb 28>; [INV]
  659. <bb 21> :
  660. if (xTicksToWait == 0)
  661. goto <bb 22>; [INV]
  662. else
  663. goto <bb 23>; [INV]
  664. <bb 22> :
  665. uxReturn = uxCurrentEventBits;
  666. xTimeoutOccurred = 1;
  667. goto <bb 28>; [INV]
  668. <bb 23> :
  669. if (xClearOnExit != 0)
  670. goto <bb 24>; [INV]
  671. else
  672. goto <bb 25>; [INV]
  673. <bb 24> :
  674. uxControlBits = uxControlBits | 16777216;
  675. <bb 25> :
  676. if (xWaitForAllBits != 0)
  677. goto <bb 26>; [INV]
  678. else
  679. goto <bb 27>; [INV]
  680. <bb 26> :
  681. uxControlBits = uxControlBits | 67108864;
  682. <bb 27> :
  683. _6 = &pxEventBits->xTasksWaitingForBits;
  684. _7 = uxBitsToWaitFor | uxControlBits;
  685. vTaskPlaceOnUnorderedEventList (_6, _7, xTicksToWait);
  686. uxReturn = 0;
  687. <bb 28> :
  688. xAlreadyYielded = xTaskResumeAll ();
  689. if (xTicksToWait != 0)
  690. goto <bb 29>; [INV]
  691. else
  692. goto <bb 37>; [INV]
  693. <bb 29> :
  694. if (xAlreadyYielded == 0)
  695. goto <bb 30>; [INV]
  696. else
  697. goto <bb 31>; [INV]
  698. <bb 30> :
  699. _8 = 3758157060B;
  700. *_8 = 268435456;
  701. __asm__ __volatile__("dsb" : : : "memory");
  702. __asm__ __volatile__("isb");
  703. <bb 31> :
  704. uxReturn = uxTaskResetEventItemValue ();
  705. _9 = uxReturn & 33554432;
  706. if (_9 == 0)
  707. goto <bb 32>; [INV]
  708. else
  709. goto <bb 36>; [INV]
  710. <bb 32> :
  711. vPortEnterCritical ();
  712. uxReturn = pxEventBits->uxEventBits;
  713. _10 = prvTestWaitCondition (uxReturn, uxBitsToWaitFor, xWaitForAllBits);
  714. if (_10 != 0)
  715. goto <bb 33>; [INV]
  716. else
  717. goto <bb 35>; [INV]
  718. <bb 33> :
  719. if (xClearOnExit != 0)
  720. goto <bb 34>; [INV]
  721. else
  722. goto <bb 35>; [INV]
  723. <bb 34> :
  724. _11 = pxEventBits->uxEventBits;
  725. _12 = ~uxBitsToWaitFor;
  726. _13 = _11 & _12;
  727. pxEventBits->uxEventBits = _13;
  728. <bb 35> :
  729. xTimeoutOccurred = 1;
  730. vPortExitCritical ();
  731. <bb 36> :
  732. uxReturn = uxReturn & 16777215;
  733. <bb 37> :
  734. D.6513 = uxReturn;
  735. <bb 38> :
  736. <L45>:
  737. return D.6513;
  738. }
  739. xEventGroupSync (struct EventGroupDef_t * xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait)
  740. {
  741. BaseType_t xTimeoutOccurred;
  742. BaseType_t xAlreadyYielded;
  743. struct EventGroup_t * pxEventBits;
  744. EventBits_t uxReturn;
  745. EventBits_t uxOriginalBitValue;
  746. EventBits_t D.6469;
  747. int iftmp.0;
  748. <bb 2> :
  749. pxEventBits = xEventGroup;
  750. xTimeoutOccurred = 0;
  751. _1 = uxBitsToWaitFor & 4278190080;
  752. if (_1 != 0)
  753. goto <bb 3>; [INV]
  754. else
  755. goto <bb 5>; [INV]
  756. <bb 3> :
  757. vPortRaiseBASEPRI ();
  758. <bb 4> :
  759. goto <bb 4>; [INV]
  760. <bb 5> :
  761. if (uxBitsToWaitFor == 0)
  762. goto <bb 6>; [INV]
  763. else
  764. goto <bb 8>; [INV]
  765. <bb 6> :
  766. vPortRaiseBASEPRI ();
  767. <bb 7> :
  768. goto <bb 7>; [INV]
  769. <bb 8> :
  770. _2 = xTaskGetSchedulerState ();
  771. if (_2 != 0)
  772. goto <bb 10>; [INV]
  773. else
  774. goto <bb 9>; [INV]
  775. <bb 9> :
  776. if (xTicksToWait == 0)
  777. goto <bb 10>; [INV]
  778. else
  779. goto <bb 11>; [INV]
  780. <bb 10> :
  781. iftmp.0 = 1;
  782. goto <bb 12>; [INV]
  783. <bb 11> :
  784. iftmp.0 = 0;
  785. <bb 12> :
  786. if (iftmp.0 == 0)
  787. goto <bb 13>; [INV]
  788. else
  789. goto <bb 15>; [INV]
  790. <bb 13> :
  791. vPortRaiseBASEPRI ();
  792. <bb 14> :
  793. goto <bb 14>; [INV]
  794. <bb 15> :
  795. vTaskSuspendAll ();
  796. uxOriginalBitValue = pxEventBits->uxEventBits;
  797. xEventGroupSetBits (xEventGroup, uxBitsToSet);
  798. _3 = uxOriginalBitValue | uxBitsToSet;
  799. _4 = uxBitsToWaitFor & _3;
  800. if (uxBitsToWaitFor == _4)
  801. goto <bb 16>; [INV]
  802. else
  803. goto <bb 17>; [INV]
  804. <bb 16> :
  805. uxReturn = uxOriginalBitValue | uxBitsToSet;
  806. _5 = pxEventBits->uxEventBits;
  807. _6 = ~uxBitsToWaitFor;
  808. _7 = _5 & _6;
  809. pxEventBits->uxEventBits = _7;
  810. xTicksToWait = 0;
  811. goto <bb 20>; [INV]
  812. <bb 17> :
  813. if (xTicksToWait != 0)
  814. goto <bb 18>; [INV]
  815. else
  816. goto <bb 19>; [INV]
  817. <bb 18> :
  818. _8 = &pxEventBits->xTasksWaitingForBits;
  819. _9 = uxBitsToWaitFor | 83886080;
  820. vTaskPlaceOnUnorderedEventList (_8, _9, xTicksToWait);
  821. uxReturn = 0;
  822. goto <bb 20>; [INV]
  823. <bb 19> :
  824. uxReturn = pxEventBits->uxEventBits;
  825. xTimeoutOccurred = 1;
  826. <bb 20> :
  827. xAlreadyYielded = xTaskResumeAll ();
  828. if (xTicksToWait != 0)
  829. goto <bb 21>; [INV]
  830. else
  831. goto <bb 28>; [INV]
  832. <bb 21> :
  833. if (xAlreadyYielded == 0)
  834. goto <bb 22>; [INV]
  835. else
  836. goto <bb 23>; [INV]
  837. <bb 22> :
  838. _10 = 3758157060B;
  839. *_10 = 268435456;
  840. __asm__ __volatile__("dsb" : : : "memory");
  841. __asm__ __volatile__("isb");
  842. <bb 23> :
  843. uxReturn = uxTaskResetEventItemValue ();
  844. _11 = uxReturn & 33554432;
  845. if (_11 == 0)
  846. goto <bb 24>; [INV]
  847. else
  848. goto <bb 27>; [INV]
  849. <bb 24> :
  850. vPortEnterCritical ();
  851. uxReturn = pxEventBits->uxEventBits;
  852. _12 = uxReturn & uxBitsToWaitFor;
  853. if (uxBitsToWaitFor == _12)
  854. goto <bb 25>; [INV]
  855. else
  856. goto <bb 26>; [INV]
  857. <bb 25> :
  858. _13 = pxEventBits->uxEventBits;
  859. _14 = ~uxBitsToWaitFor;
  860. _15 = _13 & _14;
  861. pxEventBits->uxEventBits = _15;
  862. <bb 26> :
  863. vPortExitCritical ();
  864. xTimeoutOccurred = 1;
  865. <bb 27> :
  866. uxReturn = uxReturn & 16777215;
  867. <bb 28> :
  868. D.6469 = uxReturn;
  869. <bb 29> :
  870. <L30>:
  871. return D.6469;
  872. }
  873. xEventGroupCreate ()
  874. {
  875. struct EventGroup_t * pxEventBits;
  876. struct EventGroupDef_t * D.6439;
  877. <bb 2> :
  878. pxEventBits = pvPortMalloc (28);
  879. if (pxEventBits != 0B)
  880. goto <bb 3>; [INV]
  881. else
  882. goto <bb 4>; [INV]
  883. <bb 3> :
  884. pxEventBits->uxEventBits = 0;
  885. _1 = &pxEventBits->xTasksWaitingForBits;
  886. vListInitialise (_1);
  887. <bb 4> :
  888. D.6439 = pxEventBits;
  889. <bb 5> :
  890. <L3>:
  891. return D.6439;
  892. }
  893. __attribute__((always_inline))
  894. vPortSetBASEPRI (uint32_t ulNewMaskValue)
  895. {
  896. <bb 2> :
  897. __asm__ __volatile__(" msr basepri, %0 " : : "r" ulNewMaskValue : "memory");
  898. return;
  899. }
  900. __attribute__((always_inline))
  901. ulPortRaiseBASEPRI ()
  902. {
  903. uint32_t ulNewBASEPRI;
  904. uint32_t ulOriginalBASEPRI;
  905. uint32_t D.6525;
  906. <bb 2> :
  907. __asm__ __volatile__(" mrs %0, basepri
  908. mov %1, %2
  909. msr basepri, %1
  910. isb
  911. dsb
  912. " : "=r" ulOriginalBASEPRI, "=r" ulNewBASEPRI : "i" 16 : "memory");
  913. D.6525 = ulOriginalBASEPRI;
  914. <bb 3> :
  915. <L0>:
  916. return D.6525;
  917. }
  918. __attribute__((always_inline))
  919. vPortRaiseBASEPRI ()
  920. {
  921. uint32_t ulNewBASEPRI;
  922. <bb 2> :
  923. __asm__ __volatile__(" mov %0, %1
  924. msr basepri, %0
  925. isb
  926. dsb
  927. " : "=r" ulNewBASEPRI : "i" 16 : "memory");
  928. return;
  929. }