timers.c.075i.fnsummary 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822
  1. Symbol table:
  2. vQueueAddToRegistry/56 (vQueueAddToRegistry) @06c1f2a0
  3. Type: function
  4. Visibility: external public
  5. References:
  6. Referring:
  7. Availability: not_available
  8. Function flags:
  9. Called by: prvCheckForValidListAndQueue/29
  10. Calls:
  11. xQueueGenericCreate/55 (xQueueGenericCreate) @06c1f1c0
  12. Type: function
  13. Visibility: external public
  14. References:
  15. Referring:
  16. Availability: not_available
  17. Function flags:
  18. Called by: prvCheckForValidListAndQueue/29
  19. Calls:
  20. vListInitialise/54 (vListInitialise) @06c1f000
  21. Type: function
  22. Visibility: external public
  23. References:
  24. Referring:
  25. Availability: not_available
  26. Function flags:
  27. Called by: prvCheckForValidListAndQueue/29 prvCheckForValidListAndQueue/29
  28. Calls:
  29. xQueueReceive/53 (xQueueReceive) @06c10c40
  30. Type: function
  31. Visibility: external public
  32. References:
  33. Referring:
  34. Availability: not_available
  35. Function flags:
  36. Called by: prvProcessReceivedCommands/27
  37. Calls:
  38. vPortFree/52 (vPortFree) @06c10b60
  39. Type: function
  40. Visibility: external public
  41. References:
  42. Referring:
  43. Availability: not_available
  44. Function flags:
  45. Called by: prvProcessReceivedCommands/27
  46. Calls:
  47. vListInsert/51 (vListInsert) @06c107e0
  48. Type: function
  49. Visibility: external public
  50. References:
  51. Referring:
  52. Availability: not_available
  53. Function flags:
  54. Called by: prvInsertTimerInActiveList/26 prvInsertTimerInActiveList/26
  55. Calls:
  56. xLastTime.6552/50 (xLastTime) @06c128b8
  57. Type: variable definition analyzed
  58. Visibility: force_output no_reorder prevailing_def_ironly
  59. References:
  60. Referring: prvSampleTimeNow/25 (read)prvSampleTimeNow/25 (write)
  61. Availability: available
  62. Varpool flags: initialized
  63. xTaskGetTickCount/49 (xTaskGetTickCount) @06c10620
  64. Type: function
  65. Visibility: external public
  66. References:
  67. Referring:
  68. Availability: not_available
  69. Function flags:
  70. Called by: prvSampleTimeNow/25
  71. Calls:
  72. vQueueWaitForMessageRestricted/48 (vQueueWaitForMessageRestricted) @06c10380
  73. Type: function
  74. Visibility: external public
  75. References:
  76. Referring:
  77. Availability: not_available
  78. Function flags:
  79. Called by: prvProcessTimerOrBlockTask/23
  80. Calls:
  81. xTaskResumeAll/47 (xTaskResumeAll) @06c102a0
  82. Type: function
  83. Visibility: external public
  84. References:
  85. Referring:
  86. Availability: not_available
  87. Function flags:
  88. Called by: prvProcessTimerOrBlockTask/23 prvProcessTimerOrBlockTask/23 prvProcessTimerOrBlockTask/23
  89. Calls:
  90. vTaskSuspendAll/46 (vTaskSuspendAll) @06c101c0
  91. Type: function
  92. Visibility: external public
  93. References:
  94. Referring:
  95. Availability: not_available
  96. Function flags:
  97. Called by: prvProcessTimerOrBlockTask/23
  98. Calls:
  99. uxListRemove/45 (uxListRemove) @06bdfee0
  100. Type: function
  101. Visibility: external public
  102. References:
  103. Referring:
  104. Availability: not_available
  105. Function flags:
  106. Called by: prvProcessReceivedCommands/27 prvProcessExpiredTimer/21
  107. Calls:
  108. vPortExitCritical/44 (vPortExitCritical) @06bdf9a0
  109. Type: function
  110. Visibility: external public
  111. References:
  112. Referring:
  113. Availability: not_available
  114. Function flags:
  115. Called by: vTimerSetTimerID/32 pvTimerGetTimerID/31 xTimerIsTimerActive/30 prvCheckForValidListAndQueue/29 uxTimerGetReloadMode/17 vTimerSetReloadMode/16
  116. Calls:
  117. vPortEnterCritical/43 (vPortEnterCritical) @06bdf8c0
  118. Type: function
  119. Visibility: external public
  120. References:
  121. Referring:
  122. Availability: not_available
  123. Function flags:
  124. Called by: vTimerSetTimerID/32 pvTimerGetTimerID/31 xTimerIsTimerActive/30 prvCheckForValidListAndQueue/29 uxTimerGetReloadMode/17 vTimerSetReloadMode/16
  125. Calls:
  126. xQueueGenericSendFromISR/42 (xQueueGenericSendFromISR) @06bdf540
  127. Type: function
  128. Visibility: external public
  129. References:
  130. Referring:
  131. Availability: not_available
  132. Function flags:
  133. Called by: xTimerPendFunctionCallFromISR/33 xTimerGenericCommand/13
  134. Calls:
  135. xQueueGenericSend/41 (xQueueGenericSend) @06bdf460
  136. Type: function
  137. Visibility: external public
  138. References:
  139. Referring:
  140. Availability: not_available
  141. Function flags:
  142. Called by: xTimerPendFunctionCall/34 xTimerGenericCommand/13 xTimerGenericCommand/13
  143. Calls:
  144. xTaskGetSchedulerState/40 (xTaskGetSchedulerState) @06bdf380
  145. Type: function
  146. Visibility: external public
  147. References:
  148. Referring:
  149. Availability: not_available
  150. Function flags:
  151. Called by: xTimerGenericCommand/13
  152. Calls:
  153. vListInitialiseItem/39 (vListInitialiseItem) @06bdf1c0
  154. Type: function
  155. Visibility: external public
  156. References:
  157. Referring:
  158. Availability: not_available
  159. Function flags:
  160. Called by: prvInitialiseNewTimer/12
  161. Calls:
  162. pvPortMalloc/38 (pvPortMalloc) @06bdf000
  163. Type: function
  164. Visibility: external public
  165. References:
  166. Referring:
  167. Availability: not_available
  168. Function flags:
  169. Called by: xTimerCreate/11
  170. Calls:
  171. xTaskCreate/37 (xTaskCreate) @06bd6380
  172. Type: function
  173. Visibility: external public
  174. References:
  175. Referring:
  176. Availability: not_available
  177. Function flags:
  178. Called by: xTimerCreateTimerTask/10
  179. Calls:
  180. vTimerSetTimerNumber/36 (vTimerSetTimerNumber) @06bd6c40
  181. Type: function definition analyzed
  182. Visibility: force_output externally_visible no_reorder public
  183. References:
  184. Referring:
  185. Availability: available
  186. Function flags: body
  187. Called by:
  188. Calls:
  189. uxTimerGetTimerNumber/35 (uxTimerGetTimerNumber) @06bd69a0
  190. Type: function definition analyzed
  191. Visibility: force_output externally_visible no_reorder public
  192. References:
  193. Referring:
  194. Availability: available
  195. Function flags: body
  196. Called by:
  197. Calls:
  198. xTimerPendFunctionCall/34 (xTimerPendFunctionCall) @06bd6700
  199. Type: function definition analyzed
  200. Visibility: force_output externally_visible no_reorder public
  201. References: xTimerQueue/8 (read)xTimerQueue/8 (read)
  202. Referring:
  203. Availability: available
  204. Function flags: body
  205. Called by:
  206. Calls: xQueueGenericSend/41
  207. xTimerPendFunctionCallFromISR/33 (xTimerPendFunctionCallFromISR) @06bd62a0
  208. Type: function definition analyzed
  209. Visibility: force_output externally_visible no_reorder public
  210. References: xTimerQueue/8 (read)
  211. Referring:
  212. Availability: available
  213. Function flags: body
  214. Called by:
  215. Calls: xQueueGenericSendFromISR/42
  216. vTimerSetTimerID/32 (vTimerSetTimerID) @06bcfd20
  217. Type: function definition analyzed
  218. Visibility: force_output externally_visible no_reorder public
  219. References:
  220. Referring:
  221. Availability: available
  222. Function flags: body
  223. Called by:
  224. Calls: vPortExitCritical/44 vPortEnterCritical/43
  225. pvTimerGetTimerID/31 (pvTimerGetTimerID) @06bcf2a0
  226. Type: function definition analyzed
  227. Visibility: force_output externally_visible no_reorder public
  228. References:
  229. Referring:
  230. Availability: available
  231. Function flags: body
  232. Called by:
  233. Calls: vPortExitCritical/44 vPortEnterCritical/43
  234. xTimerIsTimerActive/30 (xTimerIsTimerActive) @06bcfc40
  235. Type: function definition analyzed
  236. Visibility: force_output externally_visible no_reorder public
  237. References:
  238. Referring:
  239. Availability: available
  240. Function flags: body
  241. Called by:
  242. Calls: vPortExitCritical/44 vPortEnterCritical/43
  243. prvCheckForValidListAndQueue/29 (prvCheckForValidListAndQueue) @06bcf8c0
  244. Type: function definition analyzed
  245. Visibility: force_output no_reorder prevailing_def_ironly
  246. References: xTimerQueue/8 (read)xActiveTimerList1/4 (addr)xActiveTimerList2/5 (addr)pxCurrentTimerList/6 (write)xActiveTimerList1/4 (addr)pxOverflowTimerList/7 (write)xActiveTimerList2/5 (addr)xTimerQueue/8 (write)xTimerQueue/8 (read)xTimerQueue/8 (read)
  247. Referring:
  248. Availability: available
  249. Function flags: body
  250. Called by: prvInitialiseNewTimer/12 xTimerCreateTimerTask/10
  251. Calls: vPortExitCritical/44 vQueueAddToRegistry/56 xQueueGenericCreate/55 vListInitialise/54 vListInitialise/54 vPortEnterCritical/43
  252. prvSwitchTimerLists/28 (prvSwitchTimerLists) @06bcf540
  253. Type: function definition analyzed
  254. Visibility: force_output no_reorder prevailing_def_ironly
  255. References: pxCurrentTimerList/6 (read)pxCurrentTimerList/6 (read)pxCurrentTimerList/6 (read)pxOverflowTimerList/7 (read)pxCurrentTimerList/6 (write)pxOverflowTimerList/7 (write)
  256. Referring:
  257. Availability: available
  258. Function flags: body
  259. Called by: prvSampleTimeNow/25
  260. Calls: prvProcessExpiredTimer/21
  261. prvProcessReceivedCommands/27 (prvProcessReceivedCommands) @06bcf1c0
  262. Type: function definition analyzed
  263. Visibility: force_output no_reorder prevailing_def_ironly
  264. References: xTimerQueue/8 (read)
  265. Referring:
  266. Availability: available
  267. Function flags: body
  268. Called by: prvTimerTask/22
  269. Calls: xQueueReceive/53 vPortFree/52 prvInsertTimerInActiveList/26 prvReloadTimer/20 prvInsertTimerInActiveList/26 prvSampleTimeNow/25 uxListRemove/45
  270. Indirect call
  271. Indirect call
  272. prvInsertTimerInActiveList/26 (prvInsertTimerInActiveList) @06b6ec40
  273. Type: function definition analyzed
  274. Visibility: force_output no_reorder prevailing_def_ironly
  275. References: pxOverflowTimerList/7 (read)pxCurrentTimerList/6 (read)
  276. Referring:
  277. Availability: available
  278. Function flags: body
  279. Called by: prvProcessReceivedCommands/27 prvProcessReceivedCommands/27 prvReloadTimer/20
  280. Calls: vListInsert/51 vListInsert/51
  281. prvSampleTimeNow/25 (prvSampleTimeNow) @06b6ee00
  282. Type: function definition analyzed
  283. Visibility: force_output no_reorder prevailing_def_ironly
  284. References: xLastTime.6552/50 (read)xLastTime.6552/50 (write)
  285. Referring:
  286. Availability: available
  287. Function flags: body
  288. Called by: prvProcessReceivedCommands/27 prvProcessTimerOrBlockTask/23
  289. Calls: prvSwitchTimerLists/28 xTaskGetTickCount/49
  290. prvGetNextExpireTime/24 (prvGetNextExpireTime) @06b6eb60
  291. Type: function definition analyzed
  292. Visibility: force_output no_reorder prevailing_def_ironly
  293. References: pxCurrentTimerList/6 (read)pxCurrentTimerList/6 (read)
  294. Referring:
  295. Availability: available
  296. Function flags: body
  297. Called by: prvTimerTask/22
  298. Calls:
  299. prvProcessTimerOrBlockTask/23 (prvProcessTimerOrBlockTask) @06b6e7e0
  300. Type: function definition analyzed
  301. Visibility: force_output no_reorder prevailing_def_ironly
  302. References: pxOverflowTimerList/7 (read)xTimerQueue/8 (read)
  303. Referring:
  304. Availability: available
  305. Function flags: body
  306. Called by: prvTimerTask/22
  307. Calls: xTaskResumeAll/47 xTaskResumeAll/47 vQueueWaitForMessageRestricted/48 prvProcessExpiredTimer/21 xTaskResumeAll/47 prvSampleTimeNow/25 vTaskSuspendAll/46
  308. prvTimerTask/22 (prvTimerTask) @06b6e380
  309. Type: function definition analyzed
  310. Visibility: force_output no_reorder prevailing_def_ironly
  311. Address is taken.
  312. References:
  313. Referring: xTimerCreateTimerTask/10 (addr)
  314. Availability: available
  315. Function flags: body
  316. Called by:
  317. Calls: prvProcessReceivedCommands/27 prvProcessTimerOrBlockTask/23 prvGetNextExpireTime/24
  318. prvProcessExpiredTimer/21 (prvProcessExpiredTimer) @06b6e0e0
  319. Type: function definition analyzed
  320. Visibility: force_output no_reorder prevailing_def_ironly
  321. References: pxCurrentTimerList/6 (read)
  322. Referring:
  323. Availability: available
  324. Function flags: body
  325. Called by: prvProcessTimerOrBlockTask/23 prvSwitchTimerLists/28
  326. Calls: prvReloadTimer/20 uxListRemove/45
  327. Indirect call
  328. prvReloadTimer/20 (prvReloadTimer) @06b68a80
  329. Type: function definition analyzed
  330. Visibility: force_output no_reorder prevailing_def_ironly
  331. References:
  332. Referring:
  333. Availability: available
  334. Function flags: body
  335. Called by: prvProcessReceivedCommands/27 prvProcessExpiredTimer/21
  336. Calls: prvInsertTimerInActiveList/26
  337. Indirect call
  338. pcTimerGetName/19 (pcTimerGetName) @06b68380
  339. Type: function definition analyzed
  340. Visibility: force_output externally_visible no_reorder public
  341. References:
  342. Referring:
  343. Availability: available
  344. Function flags: body
  345. Called by:
  346. Calls:
  347. xTimerGetExpiryTime/18 (xTimerGetExpiryTime) @06b68d20
  348. Type: function definition analyzed
  349. Visibility: force_output externally_visible no_reorder public
  350. References:
  351. Referring:
  352. Availability: available
  353. Function flags: body
  354. Called by:
  355. Calls:
  356. uxTimerGetReloadMode/17 (uxTimerGetReloadMode) @06b689a0
  357. Type: function definition analyzed
  358. Visibility: force_output externally_visible no_reorder public
  359. References:
  360. Referring:
  361. Availability: available
  362. Function flags: body
  363. Called by:
  364. Calls: vPortExitCritical/44 vPortEnterCritical/43
  365. vTimerSetReloadMode/16 (vTimerSetReloadMode) @06b68620
  366. Type: function definition analyzed
  367. Visibility: force_output externally_visible no_reorder public
  368. References:
  369. Referring:
  370. Availability: available
  371. Function flags: body
  372. Called by:
  373. Calls: vPortExitCritical/44 vPortEnterCritical/43
  374. xTimerGetPeriod/15 (xTimerGetPeriod) @06b682a0
  375. Type: function definition analyzed
  376. Visibility: force_output externally_visible no_reorder public
  377. References:
  378. Referring:
  379. Availability: available
  380. Function flags: body
  381. Called by:
  382. Calls:
  383. xTimerGetTimerDaemonTaskHandle/14 (xTimerGetTimerDaemonTaskHandle) @06bc5c40
  384. Type: function definition analyzed
  385. Visibility: force_output externally_visible no_reorder public
  386. References: xTimerTaskHandle/9 (read)xTimerTaskHandle/9 (read)
  387. Referring:
  388. Availability: available
  389. Function flags: body
  390. Called by:
  391. Calls:
  392. xTimerGenericCommand/13 (xTimerGenericCommand) @06bc5620
  393. Type: function definition analyzed
  394. Visibility: force_output externally_visible no_reorder public
  395. References: xTimerQueue/8 (read)xTimerQueue/8 (read)xTimerQueue/8 (read)xTimerQueue/8 (read)
  396. Referring:
  397. Availability: available
  398. Function flags: body
  399. Called by:
  400. Calls: xQueueGenericSendFromISR/42 xQueueGenericSend/41 xQueueGenericSend/41 xTaskGetSchedulerState/40
  401. prvInitialiseNewTimer/12 (prvInitialiseNewTimer) @06bc5b60
  402. Type: function definition analyzed
  403. Visibility: force_output no_reorder prevailing_def_ironly
  404. References:
  405. Referring:
  406. Availability: available
  407. Function flags: body
  408. Called by: xTimerCreate/11
  409. Calls: vListInitialiseItem/39 prvCheckForValidListAndQueue/29
  410. xTimerCreate/11 (xTimerCreate) @06bc57e0
  411. Type: function definition analyzed
  412. Visibility: force_output externally_visible no_reorder public
  413. References:
  414. Referring:
  415. Availability: available
  416. Function flags: body
  417. Called by:
  418. Calls: prvInitialiseNewTimer/12 pvPortMalloc/38
  419. xTimerCreateTimerTask/10 (xTimerCreateTimerTask) @06bc5540
  420. Type: function definition analyzed
  421. Visibility: force_output externally_visible no_reorder public
  422. References: xTimerQueue/8 (read)prvTimerTask/22 (addr)xTimerTaskHandle/9 (addr)
  423. Referring:
  424. Availability: available
  425. Function flags: body
  426. Called by:
  427. Calls: xTaskCreate/37 prvCheckForValidListAndQueue/29
  428. xTimerTaskHandle/9 (xTimerTaskHandle) @06bbf678
  429. Type: variable definition analyzed
  430. Visibility: force_output no_reorder prevailing_def_ironly
  431. References:
  432. Referring: xTimerGetTimerDaemonTaskHandle/14 (read)xTimerGetTimerDaemonTaskHandle/14 (read)xTimerCreateTimerTask/10 (addr)
  433. Availability: available
  434. Varpool flags: initialized
  435. xTimerQueue/8 (xTimerQueue) @06bbf5e8
  436. Type: variable definition analyzed
  437. Visibility: force_output no_reorder prevailing_def_ironly
  438. References:
  439. Referring: prvProcessReceivedCommands/27 (read)prvProcessTimerOrBlockTask/23 (read)prvCheckForValidListAndQueue/29 (read)xTimerGenericCommand/13 (read)xTimerCreateTimerTask/10 (read)xTimerPendFunctionCallFromISR/33 (read)xTimerGenericCommand/13 (read)xTimerGenericCommand/13 (read)xTimerGenericCommand/13 (read)prvCheckForValidListAndQueue/29 (read)prvCheckForValidListAndQueue/29 (read)prvCheckForValidListAndQueue/29 (write)xTimerPendFunctionCall/34 (read)xTimerPendFunctionCall/34 (read)
  440. Availability: available
  441. Varpool flags: initialized
  442. pxOverflowTimerList/7 (pxOverflowTimerList) @06bbf558
  443. Type: variable definition analyzed
  444. Visibility: force_output no_reorder prevailing_def_ironly
  445. References:
  446. Referring: prvInsertTimerInActiveList/26 (read)prvSwitchTimerLists/28 (write)prvProcessTimerOrBlockTask/23 (read)prvSwitchTimerLists/28 (read)prvCheckForValidListAndQueue/29 (write)
  447. Availability: available
  448. Varpool flags:
  449. pxCurrentTimerList/6 (pxCurrentTimerList) @06bbf4c8
  450. Type: variable definition analyzed
  451. Visibility: force_output no_reorder prevailing_def_ironly
  452. References:
  453. Referring: prvGetNextExpireTime/24 (read)prvInsertTimerInActiveList/26 (read)prvProcessExpiredTimer/21 (read)prvSwitchTimerLists/28 (write)prvGetNextExpireTime/24 (read)prvSwitchTimerLists/28 (read)prvSwitchTimerLists/28 (read)prvSwitchTimerLists/28 (read)prvCheckForValidListAndQueue/29 (write)
  454. Availability: available
  455. Varpool flags:
  456. xActiveTimerList2/5 (xActiveTimerList2) @06bbf438
  457. Type: variable definition analyzed
  458. Visibility: force_output no_reorder prevailing_def_ironly
  459. References:
  460. Referring: prvCheckForValidListAndQueue/29 (addr)prvCheckForValidListAndQueue/29 (addr)
  461. Availability: available
  462. Varpool flags:
  463. xActiveTimerList1/4 (xActiveTimerList1) @06bbf3a8
  464. Type: variable definition analyzed
  465. Visibility: force_output no_reorder prevailing_def_ironly
  466. References:
  467. Referring: prvCheckForValidListAndQueue/29 (addr)prvCheckForValidListAndQueue/29 (addr)
  468. Availability: available
  469. Varpool flags:
  470. vTimerSetTimerNumber (struct tmrTimerControl * xTimer, UBaseType_t uxTimerNumber)
  471. {
  472. <bb 2> :
  473. MEM[(struct Timer_t *)xTimer_2(D)].uxTimerNumber = uxTimerNumber_3(D);
  474. return;
  475. }
  476. uxTimerGetTimerNumber (struct tmrTimerControl * xTimer)
  477. {
  478. UBaseType_t D.6791;
  479. UBaseType_t _3;
  480. <bb 2> :
  481. _3 = MEM[(struct Timer_t *)xTimer_2(D)].uxTimerNumber;
  482. <bb 3> :
  483. <L0>:
  484. return _3;
  485. }
  486. xTimerPendFunctionCall (void (*PendedFunction_t) (void *, uint32_t) xFunctionToPend, void * pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait)
  487. {
  488. uint32_t ulNewBASEPRI;
  489. BaseType_t xReturn;
  490. struct DaemonTaskMessage_t xMessage;
  491. BaseType_t D.6788;
  492. struct QueueDefinition * xTimerQueue.26_1;
  493. struct QueueDefinition * xTimerQueue.27_2;
  494. BaseType_t _14;
  495. <bb 2> :
  496. xTimerQueue.26_1 = xTimerQueue;
  497. if (xTimerQueue.26_1 == 0B)
  498. goto <bb 3>; [INV]
  499. else
  500. goto <bb 6>; [INV]
  501. <bb 3> :
  502. __asm__ __volatile__(" mov %0, %1
  503. msr basepri, %0
  504. isb
  505. dsb
  506. " : "=r" ulNewBASEPRI_16 : "i" 16 : "memory");
  507. <bb 4> :
  508. <bb 5> :
  509. goto <bb 5>; [INV]
  510. <bb 6> :
  511. xMessage.xMessageID = -1;
  512. xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend_5(D);
  513. xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1_7(D);
  514. xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2_9(D);
  515. xTimerQueue.27_2 = xTimerQueue;
  516. xReturn_13 = xQueueGenericSend (xTimerQueue.27_2, &xMessage, xTicksToWait_11(D), 0);
  517. _14 = xReturn_13;
  518. xMessage ={v} {CLOBBER};
  519. <bb 7> :
  520. <L4>:
  521. return _14;
  522. }
  523. xTimerPendFunctionCallFromISR (void (*PendedFunction_t) (void *, uint32_t) xFunctionToPend, void * pvParameter1, uint32_t ulParameter2, BaseType_t * pxHigherPriorityTaskWoken)
  524. {
  525. BaseType_t xReturn;
  526. struct DaemonTaskMessage_t xMessage;
  527. BaseType_t D.6783;
  528. struct QueueDefinition * xTimerQueue.25_1;
  529. BaseType_t _13;
  530. <bb 2> :
  531. xMessage.xMessageID = -2;
  532. xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend_4(D);
  533. xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1_6(D);
  534. xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2_8(D);
  535. xTimerQueue.25_1 = xTimerQueue;
  536. xReturn_12 = xQueueGenericSendFromISR (xTimerQueue.25_1, &xMessage, pxHigherPriorityTaskWoken_10(D), 0);
  537. _13 = xReturn_12;
  538. xMessage ={v} {CLOBBER};
  539. <bb 3> :
  540. <L1>:
  541. return _13;
  542. }
  543. vTimerSetTimerID (struct tmrTimerControl * xTimer, void * pvNewID)
  544. {
  545. uint32_t ulNewBASEPRI;
  546. struct Timer_t * const pxTimer;
  547. <bb 2> :
  548. pxTimer_2 = xTimer_1(D);
  549. if (xTimer_1(D) == 0B)
  550. goto <bb 3>; [INV]
  551. else
  552. goto <bb 6>; [INV]
  553. <bb 3> :
  554. __asm__ __volatile__(" mov %0, %1
  555. msr basepri, %0
  556. isb
  557. dsb
  558. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  559. <bb 4> :
  560. <bb 5> :
  561. goto <bb 5>; [INV]
  562. <bb 6> :
  563. vPortEnterCritical ();
  564. pxTimer_2->pvTimerID = pvNewID_5(D);
  565. vPortExitCritical ();
  566. return;
  567. }
  568. pvTimerGetTimerID (struct tmrTimerControl * const xTimer)
  569. {
  570. uint32_t ulNewBASEPRI;
  571. void * pvReturn;
  572. struct Timer_t * const pxTimer;
  573. void * D.6779;
  574. void * _7;
  575. <bb 2> :
  576. pxTimer_2 = xTimer_1(D);
  577. if (xTimer_1(D) == 0B)
  578. goto <bb 3>; [INV]
  579. else
  580. goto <bb 6>; [INV]
  581. <bb 3> :
  582. __asm__ __volatile__(" mov %0, %1
  583. msr basepri, %0
  584. isb
  585. dsb
  586. " : "=r" ulNewBASEPRI_8 : "i" 16 : "memory");
  587. <bb 4> :
  588. <bb 5> :
  589. goto <bb 5>; [INV]
  590. <bb 6> :
  591. vPortEnterCritical ();
  592. pvReturn_5 = pxTimer_2->pvTimerID;
  593. vPortExitCritical ();
  594. _7 = pvReturn_5;
  595. <bb 7> :
  596. <L3>:
  597. return _7;
  598. }
  599. xTimerIsTimerActive (struct tmrTimerControl * xTimer)
  600. {
  601. uint32_t ulNewBASEPRI;
  602. struct Timer_t * pxTimer;
  603. BaseType_t xReturn;
  604. BaseType_t D.6775;
  605. unsigned char _1;
  606. int _2;
  607. int _3;
  608. BaseType_t _12;
  609. <bb 2> :
  610. pxTimer_6 = xTimer_5(D);
  611. if (xTimer_5(D) == 0B)
  612. goto <bb 3>; [INV]
  613. else
  614. goto <bb 6>; [INV]
  615. <bb 3> :
  616. __asm__ __volatile__(" mov %0, %1
  617. msr basepri, %0
  618. isb
  619. dsb
  620. " : "=r" ulNewBASEPRI_13 : "i" 16 : "memory");
  621. <bb 4> :
  622. <bb 5> :
  623. goto <bb 5>; [INV]
  624. <bb 6> :
  625. vPortEnterCritical ();
  626. _1 = pxTimer_6->ucStatus;
  627. _2 = (int) _1;
  628. _3 = _2 & 1;
  629. if (_3 == 0)
  630. goto <bb 7>; [INV]
  631. else
  632. goto <bb 8>; [INV]
  633. <bb 7> :
  634. xReturn_10 = 0;
  635. goto <bb 9>; [INV]
  636. <bb 8> :
  637. xReturn_9 = 1;
  638. <bb 9> :
  639. # xReturn_4 = PHI <xReturn_10(7), xReturn_9(8)>
  640. vPortExitCritical ();
  641. _12 = xReturn_4;
  642. <bb 10> :
  643. <L6>:
  644. return _12;
  645. }
  646. prvCheckForValidListAndQueue ()
  647. {
  648. struct QueueDefinition * xTimerQueue.22_1;
  649. struct QueueDefinition * _2;
  650. struct QueueDefinition * xTimerQueue.23_3;
  651. struct QueueDefinition * xTimerQueue.24_4;
  652. <bb 2> :
  653. vPortEnterCritical ();
  654. xTimerQueue.22_1 = xTimerQueue;
  655. if (xTimerQueue.22_1 == 0B)
  656. goto <bb 3>; [INV]
  657. else
  658. goto <bb 5>; [INV]
  659. <bb 3> :
  660. vListInitialise (&xActiveTimerList1);
  661. vListInitialise (&xActiveTimerList2);
  662. pxCurrentTimerList = &xActiveTimerList1;
  663. pxOverflowTimerList = &xActiveTimerList2;
  664. _2 = xQueueGenericCreate (10, 16, 0);
  665. xTimerQueue = _2;
  666. xTimerQueue.23_3 = xTimerQueue;
  667. if (xTimerQueue.23_3 != 0B)
  668. goto <bb 4>; [INV]
  669. else
  670. goto <bb 5>; [INV]
  671. <bb 4> :
  672. xTimerQueue.24_4 = xTimerQueue;
  673. vQueueAddToRegistry (xTimerQueue.24_4, "TmrQ");
  674. <bb 5> :
  675. vPortExitCritical ();
  676. return;
  677. }
  678. prvSwitchTimerLists ()
  679. {
  680. struct List_t * pxTemp;
  681. TickType_t xNextExpireTime;
  682. struct List_t * pxCurrentTimerList.19_1;
  683. struct xLIST_ITEM * _2;
  684. struct List_t * pxCurrentTimerList.20_3;
  685. long unsigned int _4;
  686. struct List_t * pxOverflowTimerList.21_5;
  687. <bb 2> :
  688. goto <bb 4>; [INV]
  689. <bb 3> :
  690. pxCurrentTimerList.19_1 = pxCurrentTimerList;
  691. _2 = pxCurrentTimerList.19_1->xListEnd.pxNext;
  692. xNextExpireTime_11 = _2->xItemValue;
  693. prvProcessExpiredTimer (xNextExpireTime_11, 4294967295);
  694. <bb 4> :
  695. pxCurrentTimerList.20_3 = pxCurrentTimerList;
  696. _4 ={v} pxCurrentTimerList.20_3->uxNumberOfItems;
  697. if (_4 != 0)
  698. goto <bb 3>; [INV]
  699. else
  700. goto <bb 5>; [INV]
  701. <bb 5> :
  702. pxTemp_8 = pxCurrentTimerList;
  703. pxOverflowTimerList.21_5 = pxOverflowTimerList;
  704. pxCurrentTimerList = pxOverflowTimerList.21_5;
  705. pxOverflowTimerList = pxTemp_8;
  706. return;
  707. }
  708. prvProcessReceivedCommands ()
  709. {
  710. uint32_t ulNewBASEPRI;
  711. uint32_t ulNewBASEPRI;
  712. const struct CallbackParameters_t * const pxCallback;
  713. TickType_t xTimeNow;
  714. BaseType_t xTimerListsWereSwitched;
  715. struct Timer_t * pxTimer;
  716. struct DaemonTaskMessage_t xMessage;
  717. long int _1;
  718. void (*<T68e>) (void *, uint32_t) _2;
  719. void * _3;
  720. long unsigned int _4;
  721. long int _5;
  722. struct xLIST * _6;
  723. struct ListItem_t * _7;
  724. long int _8;
  725. unsigned char _9;
  726. unsigned char _10;
  727. long unsigned int _11;
  728. long unsigned int _12;
  729. long unsigned int _13;
  730. long unsigned int _14;
  731. long int _15;
  732. unsigned char _16;
  733. int _17;
  734. int _18;
  735. long unsigned int _19;
  736. long unsigned int _20;
  737. long unsigned int _21;
  738. unsigned char _22;
  739. unsigned char _23;
  740. void (*<T689>) (struct tmrTimerControl *) _24;
  741. unsigned char _25;
  742. unsigned char _26;
  743. unsigned char _27;
  744. unsigned char _28;
  745. long unsigned int _29;
  746. long unsigned int _30;
  747. long unsigned int _31;
  748. long unsigned int _32;
  749. unsigned char _33;
  750. int _34;
  751. int _35;
  752. unsigned char _36;
  753. unsigned char _37;
  754. struct QueueDefinition * xTimerQueue.18_38;
  755. long int _39;
  756. <bb 2> :
  757. goto <bb 30>; [INV]
  758. <bb 3> :
  759. _1 = xMessage.xMessageID;
  760. if (_1 < 0)
  761. goto <bb 4>; [INV]
  762. else
  763. goto <bb 9>; [INV]
  764. <bb 4> :
  765. pxCallback_50 = &xMessage.u.xCallbackParameters;
  766. if (pxCallback_50 == 0B)
  767. goto <bb 5>; [INV]
  768. else
  769. goto <bb 8>; [INV]
  770. <bb 5> :
  771. __asm__ __volatile__(" mov %0, %1
  772. msr basepri, %0
  773. isb
  774. dsb
  775. " : "=r" ulNewBASEPRI_67 : "i" 16 : "memory");
  776. <bb 6> :
  777. <bb 7> :
  778. goto <bb 7>; [INV]
  779. <bb 8> :
  780. _2 = pxCallback_50->pxCallbackFunction;
  781. _3 = pxCallback_50->pvParameter1;
  782. _4 = pxCallback_50->ulParameter2;
  783. _2 (_3, _4);
  784. <bb 9> :
  785. _5 = xMessage.xMessageID;
  786. if (_5 >= 0)
  787. goto <bb 10>; [INV]
  788. else
  789. goto <bb 30>; [INV]
  790. <bb 10> :
  791. pxTimer_52 = xMessage.u.xTimerParameters.pxTimer;
  792. _6 = pxTimer_52->xTimerListItem.pvContainer;
  793. if (_6 != 0B)
  794. goto <bb 11>; [INV]
  795. else
  796. goto <bb 12>; [INV]
  797. <bb 11> :
  798. _7 = &pxTimer_52->xTimerListItem;
  799. uxListRemove (_7);
  800. <bb 12> :
  801. xTimeNow_55 = prvSampleTimeNow (&xTimerListsWereSwitched);
  802. _8 = xMessage.xMessageID;
  803. switch (_8) <default: <L32> [INV], case 1 ... 2: <L11> [INV], case 3: <L21> [INV], case 4: <L23> [INV], case 5: <L28> [INV], case 6 ... 7: <L11> [INV], case 8: <L21> [INV], case 9: <L23> [INV]>
  804. <bb 13> :
  805. <L11>:
  806. _9 = pxTimer_52->ucStatus;
  807. _10 = _9 | 1;
  808. pxTimer_52->ucStatus = _10;
  809. _11 = xMessage.u.xTimerParameters.xMessageValue;
  810. _12 = pxTimer_52->xTimerPeriodInTicks;
  811. _13 = _11 + _12;
  812. _14 = xMessage.u.xTimerParameters.xMessageValue;
  813. _15 = prvInsertTimerInActiveList (pxTimer_52, _13, xTimeNow_55, _14);
  814. if (_15 != 0)
  815. goto <bb 14>; [INV]
  816. else
  817. goto <bb 18>; [INV]
  818. <bb 14> :
  819. _16 = pxTimer_52->ucStatus;
  820. _17 = (int) _16;
  821. _18 = _17 & 4;
  822. if (_18 != 0)
  823. goto <bb 15>; [INV]
  824. else
  825. goto <bb 16>; [INV]
  826. <bb 15> :
  827. _19 = xMessage.u.xTimerParameters.xMessageValue;
  828. _20 = pxTimer_52->xTimerPeriodInTicks;
  829. _21 = _19 + _20;
  830. prvReloadTimer (pxTimer_52, _21, xTimeNow_55);
  831. goto <bb 17>; [INV]
  832. <bb 16> :
  833. _22 = pxTimer_52->ucStatus;
  834. _23 = _22 & 254;
  835. pxTimer_52->ucStatus = _23;
  836. <bb 17> :
  837. _24 = pxTimer_52->pxCallbackFunction;
  838. _24 (pxTimer_52);
  839. <bb 18> :
  840. goto <bb 30>; [INV]
  841. <bb 19> :
  842. <L21>:
  843. _25 = pxTimer_52->ucStatus;
  844. _26 = _25 & 254;
  845. pxTimer_52->ucStatus = _26;
  846. goto <bb 30>; [INV]
  847. <bb 20> :
  848. <L23>:
  849. _27 = pxTimer_52->ucStatus;
  850. _28 = _27 | 1;
  851. pxTimer_52->ucStatus = _28;
  852. _29 = xMessage.u.xTimerParameters.xMessageValue;
  853. pxTimer_52->xTimerPeriodInTicks = _29;
  854. _30 = pxTimer_52->xTimerPeriodInTicks;
  855. if (_30 == 0)
  856. goto <bb 21>; [INV]
  857. else
  858. goto <bb 24>; [INV]
  859. <bb 21> :
  860. __asm__ __volatile__(" mov %0, %1
  861. msr basepri, %0
  862. isb
  863. dsb
  864. " : "=r" ulNewBASEPRI_68 : "i" 16 : "memory");
  865. <bb 22> :
  866. <bb 23> :
  867. goto <bb 23>; [INV]
  868. <bb 24> :
  869. _31 = pxTimer_52->xTimerPeriodInTicks;
  870. _32 = xTimeNow_55 + _31;
  871. prvInsertTimerInActiveList (pxTimer_52, _32, xTimeNow_55, xTimeNow_55);
  872. goto <bb 30>; [INV]
  873. <bb 25> :
  874. <L28>:
  875. _33 = pxTimer_52->ucStatus;
  876. _34 = (int) _33;
  877. _35 = _34 & 2;
  878. if (_35 == 0)
  879. goto <bb 26>; [INV]
  880. else
  881. goto <bb 27>; [INV]
  882. <bb 26> :
  883. vPortFree (pxTimer_52);
  884. goto <bb 28>; [INV]
  885. <bb 27> :
  886. _36 = pxTimer_52->ucStatus;
  887. _37 = _36 & 254;
  888. pxTimer_52->ucStatus = _37;
  889. <bb 28> :
  890. goto <bb 30>; [INV]
  891. <bb 29> :
  892. <L32>:
  893. <bb 30> :
  894. xTimerQueue.18_38 = xTimerQueue;
  895. _39 = xQueueReceive (xTimerQueue.18_38, &xMessage, 0);
  896. if (_39 != 0)
  897. goto <bb 3>; [INV]
  898. else
  899. goto <bb 31>; [INV]
  900. <bb 31> :
  901. xMessage ={v} {CLOBBER};
  902. xTimerListsWereSwitched ={v} {CLOBBER};
  903. return;
  904. }
  905. prvInsertTimerInActiveList (struct Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime)
  906. {
  907. BaseType_t xProcessTimerNow;
  908. BaseType_t D.6741;
  909. long unsigned int _1;
  910. long unsigned int _2;
  911. struct List_t * pxOverflowTimerList.16_3;
  912. struct ListItem_t * _4;
  913. struct List_t * pxCurrentTimerList.17_5;
  914. struct ListItem_t * _6;
  915. BaseType_t _21;
  916. <bb 2> :
  917. xProcessTimerNow_9 = 0;
  918. pxTimer_11(D)->xTimerListItem.xItemValue = xNextExpiryTime_12(D);
  919. pxTimer_11(D)->xTimerListItem.pvOwner = pxTimer_11(D);
  920. if (xNextExpiryTime_12(D) <= xTimeNow_15(D))
  921. goto <bb 3>; [INV]
  922. else
  923. goto <bb 6>; [INV]
  924. <bb 3> :
  925. _1 = xTimeNow_15(D) - xCommandTime_16(D);
  926. _2 = pxTimer_11(D)->xTimerPeriodInTicks;
  927. if (_1 >= _2)
  928. goto <bb 4>; [INV]
  929. else
  930. goto <bb 5>; [INV]
  931. <bb 4> :
  932. xProcessTimerNow_20 = 1;
  933. goto <bb 10>; [INV]
  934. <bb 5> :
  935. pxOverflowTimerList.16_3 = pxOverflowTimerList;
  936. _4 = &pxTimer_11(D)->xTimerListItem;
  937. vListInsert (pxOverflowTimerList.16_3, _4);
  938. goto <bb 10>; [INV]
  939. <bb 6> :
  940. if (xTimeNow_15(D) < xCommandTime_16(D))
  941. goto <bb 7>; [INV]
  942. else
  943. goto <bb 9>; [INV]
  944. <bb 7> :
  945. if (xNextExpiryTime_12(D) >= xCommandTime_16(D))
  946. goto <bb 8>; [INV]
  947. else
  948. goto <bb 9>; [INV]
  949. <bb 8> :
  950. xProcessTimerNow_17 = 1;
  951. goto <bb 10>; [INV]
  952. <bb 9> :
  953. pxCurrentTimerList.17_5 = pxCurrentTimerList;
  954. _6 = &pxTimer_11(D)->xTimerListItem;
  955. vListInsert (pxCurrentTimerList.17_5, _6);
  956. <bb 10> :
  957. # xProcessTimerNow_7 = PHI <xProcessTimerNow_9(5), xProcessTimerNow_17(8), xProcessTimerNow_9(9), xProcessTimerNow_20(4)>
  958. _21 = xProcessTimerNow_7;
  959. <bb 11> :
  960. <L10>:
  961. return _21;
  962. }
  963. prvSampleTimeNow (BaseType_t * const pxTimerListsWereSwitched)
  964. {
  965. static TickType_t xLastTime = 0;
  966. TickType_t xTimeNow;
  967. TickType_t D.6729;
  968. long unsigned int xLastTime.15_1;
  969. TickType_t _11;
  970. <bb 2> :
  971. xTimeNow_5 = xTaskGetTickCount ();
  972. xLastTime.15_1 = xLastTime;
  973. if (xTimeNow_5 < xLastTime.15_1)
  974. goto <bb 3>; [INV]
  975. else
  976. goto <bb 4>; [INV]
  977. <bb 3> :
  978. prvSwitchTimerLists ();
  979. *pxTimerListsWereSwitched_6(D) = 1;
  980. goto <bb 5>; [INV]
  981. <bb 4> :
  982. *pxTimerListsWereSwitched_6(D) = 0;
  983. <bb 5> :
  984. xLastTime = xTimeNow_5;
  985. _11 = xTimeNow_5;
  986. <bb 6> :
  987. <L3>:
  988. return _11;
  989. }
  990. prvGetNextExpireTime (BaseType_t * const pxListWasEmpty)
  991. {
  992. TickType_t xNextExpireTime;
  993. TickType_t D.6724;
  994. long int iftmp.12;
  995. struct List_t * pxCurrentTimerList.13_1;
  996. long unsigned int _2;
  997. long int _3;
  998. struct List_t * pxCurrentTimerList.14_4;
  999. struct xLIST_ITEM * _5;
  1000. long int iftmp.12_7;
  1001. long int iftmp.12_9;
  1002. long int iftmp.12_10;
  1003. TickType_t _15;
  1004. <bb 2> :
  1005. pxCurrentTimerList.13_1 = pxCurrentTimerList;
  1006. _2 ={v} pxCurrentTimerList.13_1->uxNumberOfItems;
  1007. if (_2 == 0)
  1008. goto <bb 3>; [INV]
  1009. else
  1010. goto <bb 4>; [INV]
  1011. <bb 3> :
  1012. iftmp.12_10 = 1;
  1013. goto <bb 5>; [INV]
  1014. <bb 4> :
  1015. iftmp.12_9 = 0;
  1016. <bb 5> :
  1017. # iftmp.12_7 = PHI <iftmp.12_10(3), iftmp.12_9(4)>
  1018. *pxListWasEmpty_11(D) = iftmp.12_7;
  1019. _3 = *pxListWasEmpty_11(D);
  1020. if (_3 == 0)
  1021. goto <bb 6>; [INV]
  1022. else
  1023. goto <bb 7>; [INV]
  1024. <bb 6> :
  1025. pxCurrentTimerList.14_4 = pxCurrentTimerList;
  1026. _5 = pxCurrentTimerList.14_4->xListEnd.pxNext;
  1027. xNextExpireTime_14 = _5->xItemValue;
  1028. goto <bb 8>; [INV]
  1029. <bb 7> :
  1030. xNextExpireTime_13 = 0;
  1031. <bb 8> :
  1032. # xNextExpireTime_6 = PHI <xNextExpireTime_14(6), xNextExpireTime_13(7)>
  1033. _15 = xNextExpireTime_6;
  1034. <bb 9> :
  1035. <L6>:
  1036. return _15;
  1037. }
  1038. prvProcessTimerOrBlockTask (const TickType_t xNextExpireTime, BaseType_t xListWasEmpty)
  1039. {
  1040. BaseType_t xTimerListsWereSwitched;
  1041. TickType_t xTimeNow;
  1042. long int iftmp.9;
  1043. long int xTimerListsWereSwitched.8_1;
  1044. struct List_t * pxOverflowTimerList.10_2;
  1045. long unsigned int _3;
  1046. struct QueueDefinition * xTimerQueue.11_4;
  1047. long unsigned int _5;
  1048. long int _6;
  1049. volatile uint32_t * _7;
  1050. long int iftmp.9_9;
  1051. long int iftmp.9_21;
  1052. long int iftmp.9_22;
  1053. <bb 2> :
  1054. vTaskSuspendAll ();
  1055. xTimeNow_15 = prvSampleTimeNow (&xTimerListsWereSwitched);
  1056. xTimerListsWereSwitched.8_1 = xTimerListsWereSwitched;
  1057. if (xTimerListsWereSwitched.8_1 == 0)
  1058. goto <bb 3>; [INV]
  1059. else
  1060. goto <bb 14>; [INV]
  1061. <bb 3> :
  1062. if (xListWasEmpty_17(D) == 0)
  1063. goto <bb 4>; [INV]
  1064. else
  1065. goto <bb 6>; [INV]
  1066. <bb 4> :
  1067. if (xNextExpireTime_18(D) <= xTimeNow_15)
  1068. goto <bb 5>; [INV]
  1069. else
  1070. goto <bb 6>; [INV]
  1071. <bb 5> :
  1072. xTaskResumeAll ();
  1073. prvProcessExpiredTimer (xNextExpireTime_18(D), xTimeNow_15);
  1074. goto <bb 13>; [INV]
  1075. <bb 6> :
  1076. if (xListWasEmpty_17(D) != 0)
  1077. goto <bb 7>; [INV]
  1078. else
  1079. goto <bb 11>; [INV]
  1080. <bb 7> :
  1081. pxOverflowTimerList.10_2 = pxOverflowTimerList;
  1082. _3 ={v} pxOverflowTimerList.10_2->uxNumberOfItems;
  1083. if (_3 == 0)
  1084. goto <bb 8>; [INV]
  1085. else
  1086. goto <bb 9>; [INV]
  1087. <bb 8> :
  1088. iftmp.9_22 = 1;
  1089. goto <bb 10>; [INV]
  1090. <bb 9> :
  1091. iftmp.9_21 = 0;
  1092. <bb 10> :
  1093. # iftmp.9_9 = PHI <iftmp.9_22(8), iftmp.9_21(9)>
  1094. xListWasEmpty_23 = iftmp.9_9;
  1095. <bb 11> :
  1096. # xListWasEmpty_8 = PHI <xListWasEmpty_17(D)(6), xListWasEmpty_23(10)>
  1097. xTimerQueue.11_4 = xTimerQueue;
  1098. _5 = xNextExpireTime_18(D) - xTimeNow_15;
  1099. vQueueWaitForMessageRestricted (xTimerQueue.11_4, _5, xListWasEmpty_8);
  1100. _6 = xTaskResumeAll ();
  1101. if (_6 == 0)
  1102. goto <bb 12>; [INV]
  1103. else
  1104. goto <bb 13>; [INV]
  1105. <bb 12> :
  1106. _7 = 3758157060B;
  1107. *_7 ={v} 268435456;
  1108. __asm__ __volatile__("dsb" : : : "memory");
  1109. __asm__ __volatile__("isb");
  1110. <bb 13> :
  1111. goto <bb 15>; [INV]
  1112. <bb 14> :
  1113. xTaskResumeAll ();
  1114. <bb 15> :
  1115. xTimerListsWereSwitched ={v} {CLOBBER};
  1116. return;
  1117. }
  1118. prvTimerTask (void * pvParameters)
  1119. {
  1120. BaseType_t xListWasEmpty;
  1121. TickType_t xNextExpireTime;
  1122. long int xListWasEmpty.7_1;
  1123. <bb 2> :
  1124. xNextExpireTime_5 = prvGetNextExpireTime (&xListWasEmpty);
  1125. xListWasEmpty.7_1 = xListWasEmpty;
  1126. prvProcessTimerOrBlockTask (xNextExpireTime_5, xListWasEmpty.7_1);
  1127. prvProcessReceivedCommands ();
  1128. goto <bb 2>; [INV]
  1129. }
  1130. prvProcessExpiredTimer (const TickType_t xNextExpireTime, const TickType_t xTimeNow)
  1131. {
  1132. struct Timer_t * const pxTimer;
  1133. struct List_t * pxCurrentTimerList.6_1;
  1134. struct xLIST_ITEM * _2;
  1135. struct ListItem_t * _3;
  1136. unsigned char _4;
  1137. int _5;
  1138. int _6;
  1139. unsigned char _7;
  1140. unsigned char _8;
  1141. void (*<T689>) (struct tmrTimerControl *) _9;
  1142. <bb 2> :
  1143. pxCurrentTimerList.6_1 = pxCurrentTimerList;
  1144. _2 = pxCurrentTimerList.6_1->xListEnd.pxNext;
  1145. pxTimer_12 = _2->pvOwner;
  1146. _3 = &pxTimer_12->xTimerListItem;
  1147. uxListRemove (_3);
  1148. _4 = pxTimer_12->ucStatus;
  1149. _5 = (int) _4;
  1150. _6 = _5 & 4;
  1151. if (_6 != 0)
  1152. goto <bb 3>; [INV]
  1153. else
  1154. goto <bb 4>; [INV]
  1155. <bb 3> :
  1156. prvReloadTimer (pxTimer_12, xNextExpireTime_15(D), xTimeNow_16(D));
  1157. goto <bb 5>; [INV]
  1158. <bb 4> :
  1159. _7 = pxTimer_12->ucStatus;
  1160. _8 = _7 & 254;
  1161. pxTimer_12->ucStatus = _8;
  1162. <bb 5> :
  1163. _9 = pxTimer_12->pxCallbackFunction;
  1164. _9 (pxTimer_12);
  1165. return;
  1166. }
  1167. prvReloadTimer (struct Timer_t * const pxTimer, TickType_t xExpiredTime, const TickType_t xTimeNow)
  1168. {
  1169. long unsigned int _1;
  1170. void (*<T689>) (struct tmrTimerControl *) _2;
  1171. long unsigned int _3;
  1172. long unsigned int _4;
  1173. long int _5;
  1174. <bb 2> :
  1175. goto <bb 4>; [INV]
  1176. <bb 3> :
  1177. _1 = pxTimer_10(D)->xTimerPeriodInTicks;
  1178. xExpiredTime_13 = xExpiredTime_6 + _1;
  1179. _2 = pxTimer_10(D)->pxCallbackFunction;
  1180. _2 (pxTimer_10(D));
  1181. <bb 4> :
  1182. # xExpiredTime_6 = PHI <xExpiredTime_8(D)(2), xExpiredTime_13(3)>
  1183. _3 = pxTimer_10(D)->xTimerPeriodInTicks;
  1184. _4 = xExpiredTime_6 + _3;
  1185. _5 = prvInsertTimerInActiveList (pxTimer_10(D), _4, xTimeNow_11(D), xExpiredTime_6);
  1186. if (_5 != 0)
  1187. goto <bb 3>; [INV]
  1188. else
  1189. goto <bb 5>; [INV]
  1190. <bb 5> :
  1191. return;
  1192. }
  1193. pcTimerGetName (struct tmrTimerControl * xTimer)
  1194. {
  1195. uint32_t ulNewBASEPRI;
  1196. struct Timer_t * pxTimer;
  1197. const char * D.6696;
  1198. const char * _4;
  1199. <bb 2> :
  1200. pxTimer_2 = xTimer_1(D);
  1201. if (xTimer_1(D) == 0B)
  1202. goto <bb 3>; [INV]
  1203. else
  1204. goto <bb 6>; [INV]
  1205. <bb 3> :
  1206. __asm__ __volatile__(" mov %0, %1
  1207. msr basepri, %0
  1208. isb
  1209. dsb
  1210. " : "=r" ulNewBASEPRI_5 : "i" 16 : "memory");
  1211. <bb 4> :
  1212. <bb 5> :
  1213. goto <bb 5>; [INV]
  1214. <bb 6> :
  1215. _4 = pxTimer_2->pcTimerName;
  1216. <bb 7> :
  1217. <L3>:
  1218. return _4;
  1219. }
  1220. xTimerGetExpiryTime (struct tmrTimerControl * xTimer)
  1221. {
  1222. uint32_t ulNewBASEPRI;
  1223. TickType_t xReturn;
  1224. struct Timer_t * pxTimer;
  1225. TickType_t D.6692;
  1226. TickType_t _5;
  1227. <bb 2> :
  1228. pxTimer_2 = xTimer_1(D);
  1229. if (xTimer_1(D) == 0B)
  1230. goto <bb 3>; [INV]
  1231. else
  1232. goto <bb 6>; [INV]
  1233. <bb 3> :
  1234. __asm__ __volatile__(" mov %0, %1
  1235. msr basepri, %0
  1236. isb
  1237. dsb
  1238. " : "=r" ulNewBASEPRI_6 : "i" 16 : "memory");
  1239. <bb 4> :
  1240. <bb 5> :
  1241. goto <bb 5>; [INV]
  1242. <bb 6> :
  1243. xReturn_4 = pxTimer_2->xTimerListItem.xItemValue;
  1244. _5 = xReturn_4;
  1245. <bb 7> :
  1246. <L3>:
  1247. return _5;
  1248. }
  1249. uxTimerGetReloadMode (struct tmrTimerControl * xTimer)
  1250. {
  1251. uint32_t ulNewBASEPRI;
  1252. UBaseType_t uxReturn;
  1253. struct Timer_t * pxTimer;
  1254. UBaseType_t D.6688;
  1255. unsigned char _1;
  1256. int _2;
  1257. int _3;
  1258. UBaseType_t _12;
  1259. <bb 2> :
  1260. pxTimer_6 = xTimer_5(D);
  1261. if (xTimer_5(D) == 0B)
  1262. goto <bb 3>; [INV]
  1263. else
  1264. goto <bb 6>; [INV]
  1265. <bb 3> :
  1266. __asm__ __volatile__(" mov %0, %1
  1267. msr basepri, %0
  1268. isb
  1269. dsb
  1270. " : "=r" ulNewBASEPRI_13 : "i" 16 : "memory");
  1271. <bb 4> :
  1272. <bb 5> :
  1273. goto <bb 5>; [INV]
  1274. <bb 6> :
  1275. vPortEnterCritical ();
  1276. _1 = pxTimer_6->ucStatus;
  1277. _2 = (int) _1;
  1278. _3 = _2 & 4;
  1279. if (_3 == 0)
  1280. goto <bb 7>; [INV]
  1281. else
  1282. goto <bb 8>; [INV]
  1283. <bb 7> :
  1284. uxReturn_10 = 0;
  1285. goto <bb 9>; [INV]
  1286. <bb 8> :
  1287. uxReturn_9 = 1;
  1288. <bb 9> :
  1289. # uxReturn_4 = PHI <uxReturn_10(7), uxReturn_9(8)>
  1290. vPortExitCritical ();
  1291. _12 = uxReturn_4;
  1292. <bb 10> :
  1293. <L6>:
  1294. return _12;
  1295. }
  1296. vTimerSetReloadMode (struct tmrTimerControl * xTimer, const UBaseType_t uxAutoReload)
  1297. {
  1298. uint32_t ulNewBASEPRI;
  1299. struct Timer_t * pxTimer;
  1300. unsigned char _1;
  1301. unsigned char _2;
  1302. unsigned char _3;
  1303. unsigned char _4;
  1304. <bb 2> :
  1305. pxTimer_7 = xTimer_6(D);
  1306. if (xTimer_6(D) == 0B)
  1307. goto <bb 3>; [INV]
  1308. else
  1309. goto <bb 6>; [INV]
  1310. <bb 3> :
  1311. __asm__ __volatile__(" mov %0, %1
  1312. msr basepri, %0
  1313. isb
  1314. dsb
  1315. " : "=r" ulNewBASEPRI_14 : "i" 16 : "memory");
  1316. <bb 4> :
  1317. <bb 5> :
  1318. goto <bb 5>; [INV]
  1319. <bb 6> :
  1320. vPortEnterCritical ();
  1321. if (uxAutoReload_10(D) != 0)
  1322. goto <bb 7>; [INV]
  1323. else
  1324. goto <bb 8>; [INV]
  1325. <bb 7> :
  1326. _1 = pxTimer_7->ucStatus;
  1327. _2 = _1 | 4;
  1328. pxTimer_7->ucStatus = _2;
  1329. goto <bb 9>; [INV]
  1330. <bb 8> :
  1331. _3 = pxTimer_7->ucStatus;
  1332. _4 = _3 & 251;
  1333. pxTimer_7->ucStatus = _4;
  1334. <bb 9> :
  1335. vPortExitCritical ();
  1336. return;
  1337. }
  1338. xTimerGetPeriod (struct tmrTimerControl * xTimer)
  1339. {
  1340. uint32_t ulNewBASEPRI;
  1341. struct Timer_t * pxTimer;
  1342. TickType_t D.6676;
  1343. TickType_t _4;
  1344. <bb 2> :
  1345. pxTimer_2 = xTimer_1(D);
  1346. if (xTimer_1(D) == 0B)
  1347. goto <bb 3>; [INV]
  1348. else
  1349. goto <bb 6>; [INV]
  1350. <bb 3> :
  1351. __asm__ __volatile__(" mov %0, %1
  1352. msr basepri, %0
  1353. isb
  1354. dsb
  1355. " : "=r" ulNewBASEPRI_5 : "i" 16 : "memory");
  1356. <bb 4> :
  1357. <bb 5> :
  1358. goto <bb 5>; [INV]
  1359. <bb 6> :
  1360. _4 = pxTimer_2->xTimerPeriodInTicks;
  1361. <bb 7> :
  1362. <L3>:
  1363. return _4;
  1364. }
  1365. xTimerGetTimerDaemonTaskHandle ()
  1366. {
  1367. uint32_t ulNewBASEPRI;
  1368. struct tskTaskControlBlock * D.6672;
  1369. struct tskTaskControlBlock * xTimerTaskHandle.5_1;
  1370. struct tskTaskControlBlock * _3;
  1371. <bb 2> :
  1372. xTimerTaskHandle.5_1 = xTimerTaskHandle;
  1373. if (xTimerTaskHandle.5_1 == 0B)
  1374. goto <bb 3>; [INV]
  1375. else
  1376. goto <bb 6>; [INV]
  1377. <bb 3> :
  1378. __asm__ __volatile__(" mov %0, %1
  1379. msr basepri, %0
  1380. isb
  1381. dsb
  1382. " : "=r" ulNewBASEPRI_4 : "i" 16 : "memory");
  1383. <bb 4> :
  1384. <bb 5> :
  1385. goto <bb 5>; [INV]
  1386. <bb 6> :
  1387. _3 = xTimerTaskHandle;
  1388. <bb 7> :
  1389. <L3>:
  1390. return _3;
  1391. }
  1392. xTimerGenericCommand (struct tmrTimerControl * xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait)
  1393. {
  1394. uint32_t ulNewBASEPRI;
  1395. struct DaemonTaskMessage_t xMessage;
  1396. BaseType_t xReturn;
  1397. BaseType_t D.6667;
  1398. struct QueueDefinition * xTimerQueue.1_1;
  1399. long int _2;
  1400. struct QueueDefinition * xTimerQueue.2_3;
  1401. struct QueueDefinition * xTimerQueue.3_4;
  1402. struct QueueDefinition * xTimerQueue.4_5;
  1403. BaseType_t _25;
  1404. <bb 2> :
  1405. xReturn_8 = 0;
  1406. if (xTimer_9(D) == 0B)
  1407. goto <bb 3>; [INV]
  1408. else
  1409. goto <bb 6>; [INV]
  1410. <bb 3> :
  1411. __asm__ __volatile__(" mov %0, %1
  1412. msr basepri, %0
  1413. isb
  1414. dsb
  1415. " : "=r" ulNewBASEPRI_27 : "i" 16 : "memory");
  1416. <bb 4> :
  1417. <bb 5> :
  1418. goto <bb 5>; [INV]
  1419. <bb 6> :
  1420. xTimerQueue.1_1 = xTimerQueue;
  1421. if (xTimerQueue.1_1 != 0B)
  1422. goto <bb 7>; [INV]
  1423. else
  1424. goto <bb 12>; [INV]
  1425. <bb 7> :
  1426. xMessage.xMessageID = xCommandID_11(D);
  1427. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue_13(D);
  1428. xMessage.u.xTimerParameters.pxTimer = xTimer_9(D);
  1429. if (xCommandID_11(D) <= 5)
  1430. goto <bb 8>; [INV]
  1431. else
  1432. goto <bb 11>; [INV]
  1433. <bb 8> :
  1434. _2 = xTaskGetSchedulerState ();
  1435. if (_2 == 2)
  1436. goto <bb 9>; [INV]
  1437. else
  1438. goto <bb 10>; [INV]
  1439. <bb 9> :
  1440. xTimerQueue.2_3 = xTimerQueue;
  1441. xReturn_24 = xQueueGenericSend (xTimerQueue.2_3, &xMessage, xTicksToWait_22(D), 0);
  1442. goto <bb 12>; [INV]
  1443. <bb 10> :
  1444. xTimerQueue.3_4 = xTimerQueue;
  1445. xReturn_21 = xQueueGenericSend (xTimerQueue.3_4, &xMessage, 0, 0);
  1446. goto <bb 12>; [INV]
  1447. <bb 11> :
  1448. xTimerQueue.4_5 = xTimerQueue;
  1449. xReturn_18 = xQueueGenericSendFromISR (xTimerQueue.4_5, &xMessage, pxHigherPriorityTaskWoken_16(D), 0);
  1450. <bb 12> :
  1451. # xReturn_6 = PHI <xReturn_8(6), xReturn_18(11), xReturn_21(10), xReturn_24(9)>
  1452. _25 = xReturn_6;
  1453. xMessage ={v} {CLOBBER};
  1454. <bb 13> :
  1455. <L13>:
  1456. return _25;
  1457. }
  1458. prvInitialiseNewTimer (const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, void (*TimerCallbackFunction_t) (struct tmrTimerControl *) pxCallbackFunction, struct Timer_t * pxNewTimer)
  1459. {
  1460. uint32_t ulNewBASEPRI;
  1461. struct ListItem_t * _1;
  1462. unsigned char _2;
  1463. unsigned char _3;
  1464. <bb 2> :
  1465. if (xTimerPeriodInTicks_5(D) == 0)
  1466. goto <bb 3>; [INV]
  1467. else
  1468. goto <bb 6>; [INV]
  1469. <bb 3> :
  1470. __asm__ __volatile__(" mov %0, %1
  1471. msr basepri, %0
  1472. isb
  1473. dsb
  1474. " : "=r" ulNewBASEPRI_19 : "i" 16 : "memory");
  1475. <bb 4> :
  1476. <bb 5> :
  1477. goto <bb 5>; [INV]
  1478. <bb 6> :
  1479. prvCheckForValidListAndQueue ();
  1480. pxNewTimer_8(D)->pcTimerName = pcTimerName_9(D);
  1481. pxNewTimer_8(D)->xTimerPeriodInTicks = xTimerPeriodInTicks_5(D);
  1482. pxNewTimer_8(D)->pvTimerID = pvTimerID_12(D);
  1483. pxNewTimer_8(D)->pxCallbackFunction = pxCallbackFunction_14(D);
  1484. _1 = &pxNewTimer_8(D)->xTimerListItem;
  1485. vListInitialiseItem (_1);
  1486. if (uxAutoReload_17(D) != 0)
  1487. goto <bb 7>; [INV]
  1488. else
  1489. goto <bb 8>; [INV]
  1490. <bb 7> :
  1491. _2 = pxNewTimer_8(D)->ucStatus;
  1492. _3 = _2 | 4;
  1493. pxNewTimer_8(D)->ucStatus = _3;
  1494. <bb 8> :
  1495. return;
  1496. }
  1497. xTimerCreate (const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, void (*TimerCallbackFunction_t) (struct tmrTimerControl *) pxCallbackFunction)
  1498. {
  1499. struct Timer_t * pxNewTimer;
  1500. struct tmrTimerControl * D.6650;
  1501. struct tmrTimerControl * _12;
  1502. <bb 2> :
  1503. pxNewTimer_4 = pvPortMalloc (44);
  1504. if (pxNewTimer_4 != 0B)
  1505. goto <bb 3>; [INV]
  1506. else
  1507. goto <bb 4>; [INV]
  1508. <bb 3> :
  1509. pxNewTimer_4->ucStatus = 0;
  1510. prvInitialiseNewTimer (pcTimerName_6(D), xTimerPeriodInTicks_7(D), uxAutoReload_8(D), pvTimerID_9(D), pxCallbackFunction_10(D), pxNewTimer_4);
  1511. <bb 4> :
  1512. _12 = pxNewTimer_4;
  1513. <bb 5> :
  1514. <L2>:
  1515. return _12;
  1516. }
  1517. xTimerCreateTimerTask ()
  1518. {
  1519. uint32_t ulNewBASEPRI;
  1520. BaseType_t xReturn;
  1521. BaseType_t D.6646;
  1522. struct QueueDefinition * xTimerQueue.0_1;
  1523. BaseType_t _9;
  1524. <bb 2> :
  1525. xReturn_4 = 0;
  1526. prvCheckForValidListAndQueue ();
  1527. xTimerQueue.0_1 = xTimerQueue;
  1528. if (xTimerQueue.0_1 != 0B)
  1529. goto <bb 3>; [INV]
  1530. else
  1531. goto <bb 4>; [INV]
  1532. <bb 3> :
  1533. xReturn_8 = xTaskCreate (prvTimerTask, "Tmr Svc", 180, 0B, 2, &xTimerTaskHandle);
  1534. <bb 4> :
  1535. # xReturn_2 = PHI <xReturn_4(2), xReturn_8(3)>
  1536. if (xReturn_2 == 0)
  1537. goto <bb 5>; [INV]
  1538. else
  1539. goto <bb 8>; [INV]
  1540. <bb 5> :
  1541. __asm__ __volatile__(" mov %0, %1
  1542. msr basepri, %0
  1543. isb
  1544. dsb
  1545. " : "=r" ulNewBASEPRI_10 : "i" 16 : "memory");
  1546. <bb 6> :
  1547. <bb 7> :
  1548. goto <bb 7>; [INV]
  1549. <bb 8> :
  1550. _9 = xReturn_2;
  1551. <bb 9> :
  1552. <L6>:
  1553. return _9;
  1554. }