timers.c.048i.remove_symbols 44 KB

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