timers.c.076i.inline 50 KB

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