1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615 |
- Marking local functions: vPortRaiseBASEPRI
- Marking externally visible functions: vTimerSetTimerNumber uxTimerGetTimerNumber xTimerPendFunctionCall xTimerPendFunctionCallFromISR vTimerSetTimerID pvTimerGetTimerID xTimerIsTimerActive pcTimerGetName xTimerGetExpiryTime uxTimerGetReloadMode vTimerSetReloadMode xTimerGetPeriod xTimerGetTimerDaemonTaskHandle xTimerGenericCommand xTimerCreate xTimerCreateTimerTask
- Marking externally visible variables:
- Reclaiming functions:
- Reclaiming variables:
- Clearing address taken flags:
- Symbol table:
- vQueueAddToRegistry/56 (vQueueAddToRegistry) @06c1f2a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvCheckForValidListAndQueue/29
- Calls:
- xQueueGenericCreate/55 (xQueueGenericCreate) @06c1f1c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvCheckForValidListAndQueue/29
- Calls:
- vListInitialise/54 (vListInitialise) @06c1f000
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvCheckForValidListAndQueue/29 prvCheckForValidListAndQueue/29
- Calls:
- xQueueReceive/53 (xQueueReceive) @06c10c40
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvProcessReceivedCommands/27
- Calls:
- vPortFree/52 (vPortFree) @06c10b60
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvProcessReceivedCommands/27
- Calls:
- vListInsert/51 (vListInsert) @06c107e0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvInsertTimerInActiveList/26 prvInsertTimerInActiveList/26
- Calls:
- xLastTime.6552/50 (xLastTime) @06c128b8
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: prvSampleTimeNow/25 (read)prvSampleTimeNow/25 (write)
- Availability: available
- Varpool flags: initialized
- xTaskGetTickCount/49 (xTaskGetTickCount) @06c10620
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvSampleTimeNow/25
- Calls:
- vQueueWaitForMessageRestricted/48 (vQueueWaitForMessageRestricted) @06c10380
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvProcessTimerOrBlockTask/23
- Calls:
- xTaskResumeAll/47 (xTaskResumeAll) @06c102a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvProcessTimerOrBlockTask/23 prvProcessTimerOrBlockTask/23 prvProcessTimerOrBlockTask/23
- Calls:
- vTaskSuspendAll/46 (vTaskSuspendAll) @06c101c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvProcessTimerOrBlockTask/23
- Calls:
- uxListRemove/45 (uxListRemove) @06bdfee0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvProcessReceivedCommands/27 prvProcessExpiredTimer/21
- Calls:
- vPortExitCritical/44 (vPortExitCritical) @06bdf9a0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: vTimerSetTimerID/32 pvTimerGetTimerID/31 xTimerIsTimerActive/30 prvCheckForValidListAndQueue/29 uxTimerGetReloadMode/17 vTimerSetReloadMode/16
- Calls:
- vPortEnterCritical/43 (vPortEnterCritical) @06bdf8c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: vTimerSetTimerID/32 pvTimerGetTimerID/31 xTimerIsTimerActive/30 prvCheckForValidListAndQueue/29 uxTimerGetReloadMode/17 vTimerSetReloadMode/16
- Calls:
- xQueueGenericSendFromISR/42 (xQueueGenericSendFromISR) @06bdf540
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xTimerPendFunctionCallFromISR/33 xTimerGenericCommand/13
- Calls:
- xQueueGenericSend/41 (xQueueGenericSend) @06bdf460
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xTimerPendFunctionCall/34 xTimerGenericCommand/13 xTimerGenericCommand/13
- Calls:
- xTaskGetSchedulerState/40 (xTaskGetSchedulerState) @06bdf380
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xTimerGenericCommand/13
- Calls:
- vListInitialiseItem/39 (vListInitialiseItem) @06bdf1c0
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: prvInitialiseNewTimer/12
- Calls:
- pvPortMalloc/38 (pvPortMalloc) @06bdf000
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xTimerCreate/11
- Calls:
- xTaskCreate/37 (xTaskCreate) @06bd6380
- Type: function
- Visibility: external public
- References:
- Referring:
- Availability: not_available
- Function flags:
- Called by: xTimerCreateTimerTask/10
- Calls:
- vTimerSetTimerNumber/36 (vTimerSetTimerNumber) @06bd6c40
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls:
- uxTimerGetTimerNumber/35 (uxTimerGetTimerNumber) @06bd69a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls:
- xTimerPendFunctionCall/34 (xTimerPendFunctionCall) @06bd6700
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: xTimerQueue/8 (read)xTimerQueue/8 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: xQueueGenericSend/41 vPortRaiseBASEPRI/1
- xTimerPendFunctionCallFromISR/33 (xTimerPendFunctionCallFromISR) @06bd62a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: xTimerQueue/8 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: xQueueGenericSendFromISR/42
- vTimerSetTimerID/32 (vTimerSetTimerID) @06bcfd20
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortExitCritical/44 vPortEnterCritical/43 vPortRaiseBASEPRI/1
- pvTimerGetTimerID/31 (pvTimerGetTimerID) @06bcf2a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortExitCritical/44 vPortEnterCritical/43 vPortRaiseBASEPRI/1
- xTimerIsTimerActive/30 (xTimerIsTimerActive) @06bcfc40
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortExitCritical/44 vPortEnterCritical/43 vPortRaiseBASEPRI/1
- prvCheckForValidListAndQueue/29 (prvCheckForValidListAndQueue) @06bcf8c0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- 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)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvInitialiseNewTimer/12 xTimerCreateTimerTask/10
- Calls: vPortExitCritical/44 vQueueAddToRegistry/56 xQueueGenericCreate/55 vListInitialise/54 vListInitialise/54 vPortEnterCritical/43
- prvSwitchTimerLists/28 (prvSwitchTimerLists) @06bcf540
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References: pxCurrentTimerList/6 (read)pxCurrentTimerList/6 (read)pxCurrentTimerList/6 (read)pxOverflowTimerList/7 (read)pxCurrentTimerList/6 (write)pxOverflowTimerList/7 (write)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvSampleTimeNow/25
- Calls: prvProcessExpiredTimer/21
- prvProcessReceivedCommands/27 (prvProcessReceivedCommands) @06bcf1c0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References: xTimerQueue/8 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvTimerTask/22
- Calls: xQueueReceive/53 vPortFree/52 prvInsertTimerInActiveList/26 vPortRaiseBASEPRI/1 prvReloadTimer/20 prvInsertTimerInActiveList/26 prvSampleTimeNow/25 uxListRemove/45 vPortRaiseBASEPRI/1
- Indirect call
- Indirect call
- prvInsertTimerInActiveList/26 (prvInsertTimerInActiveList) @06b6ec40
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References: pxOverflowTimerList/7 (read)pxCurrentTimerList/6 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvProcessReceivedCommands/27 prvProcessReceivedCommands/27 prvReloadTimer/20
- Calls: vListInsert/51 vListInsert/51
- prvSampleTimeNow/25 (prvSampleTimeNow) @06b6ee00
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References: xLastTime.6552/50 (read)xLastTime.6552/50 (write)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvProcessReceivedCommands/27 prvProcessTimerOrBlockTask/23
- Calls: prvSwitchTimerLists/28 xTaskGetTickCount/49
- prvGetNextExpireTime/24 (prvGetNextExpireTime) @06b6eb60
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References: pxCurrentTimerList/6 (read)pxCurrentTimerList/6 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvTimerTask/22
- Calls:
- prvProcessTimerOrBlockTask/23 (prvProcessTimerOrBlockTask) @06b6e7e0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References: pxOverflowTimerList/7 (read)xTimerQueue/8 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvTimerTask/22
- Calls: xTaskResumeAll/47 xTaskResumeAll/47 vQueueWaitForMessageRestricted/48 prvProcessExpiredTimer/21 xTaskResumeAll/47 prvSampleTimeNow/25 vTaskSuspendAll/46
- prvTimerTask/22 (prvTimerTask) @06b6e380
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- Address is taken.
- References:
- Referring: xTimerCreateTimerTask/10 (addr)
- Availability: available
- Function flags: body
- Called by:
- Calls: prvProcessReceivedCommands/27 prvProcessTimerOrBlockTask/23 prvGetNextExpireTime/24
- prvProcessExpiredTimer/21 (prvProcessExpiredTimer) @06b6e0e0
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References: pxCurrentTimerList/6 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by: prvSwitchTimerLists/28 prvProcessTimerOrBlockTask/23
- Calls: prvReloadTimer/20 uxListRemove/45
- Indirect call
- prvReloadTimer/20 (prvReloadTimer) @06b68a80
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: prvProcessReceivedCommands/27 prvProcessExpiredTimer/21
- Calls: prvInsertTimerInActiveList/26
- Indirect call
- pcTimerGetName/19 (pcTimerGetName) @06b68380
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortRaiseBASEPRI/1
- xTimerGetExpiryTime/18 (xTimerGetExpiryTime) @06b68d20
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortRaiseBASEPRI/1
- uxTimerGetReloadMode/17 (uxTimerGetReloadMode) @06b689a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortExitCritical/44 vPortEnterCritical/43 vPortRaiseBASEPRI/1
- vTimerSetReloadMode/16 (vTimerSetReloadMode) @06b68620
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortExitCritical/44 vPortEnterCritical/43 vPortRaiseBASEPRI/1
- xTimerGetPeriod/15 (xTimerGetPeriod) @06b682a0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortRaiseBASEPRI/1
- xTimerGetTimerDaemonTaskHandle/14 (xTimerGetTimerDaemonTaskHandle) @06bc5c40
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: xTimerTaskHandle/9 (read)xTimerTaskHandle/9 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortRaiseBASEPRI/1
- xTimerGenericCommand/13 (xTimerGenericCommand) @06bc5620
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: xTimerQueue/8 (read)xTimerQueue/8 (read)xTimerQueue/8 (read)xTimerQueue/8 (read)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: xQueueGenericSendFromISR/42 xQueueGenericSend/41 xQueueGenericSend/41 xTaskGetSchedulerState/40 vPortRaiseBASEPRI/1
- prvInitialiseNewTimer/12 (prvInitialiseNewTimer) @06bc5b60
- Type: function definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by: xTimerCreate/11
- Calls: vListInitialiseItem/39 prvCheckForValidListAndQueue/29 vPortRaiseBASEPRI/1
- xTimerCreate/11 (xTimerCreate) @06bc57e0
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References:
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: prvInitialiseNewTimer/12 pvPortMalloc/38
- xTimerCreateTimerTask/10 (xTimerCreateTimerTask) @06bc5540
- Type: function definition analyzed
- Visibility: force_output externally_visible no_reorder public
- References: xTimerQueue/8 (read)prvTimerTask/22 (addr)xTimerTaskHandle/9 (addr)
- Referring:
- Availability: available
- Function flags: body
- Called by:
- Calls: vPortRaiseBASEPRI/1 xTaskCreate/37 prvCheckForValidListAndQueue/29
- xTimerTaskHandle/9 (xTimerTaskHandle) @06bbf678
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: xTimerCreateTimerTask/10 (addr)xTimerGetTimerDaemonTaskHandle/14 (read)xTimerGetTimerDaemonTaskHandle/14 (read)
- Availability: available
- Varpool flags: initialized
- xTimerQueue/8 (xTimerQueue) @06bbf5e8
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: xTimerCreateTimerTask/10 (read)xTimerGenericCommand/13 (read)xTimerGenericCommand/13 (read)xTimerGenericCommand/13 (read)xTimerGenericCommand/13 (read)prvProcessTimerOrBlockTask/23 (read)prvProcessReceivedCommands/27 (read)prvCheckForValidListAndQueue/29 (read)prvCheckForValidListAndQueue/29 (write)prvCheckForValidListAndQueue/29 (read)prvCheckForValidListAndQueue/29 (read)xTimerPendFunctionCallFromISR/33 (read)xTimerPendFunctionCall/34 (read)xTimerPendFunctionCall/34 (read)
- Availability: available
- Varpool flags: initialized
- pxOverflowTimerList/7 (pxOverflowTimerList) @06bbf558
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: prvProcessTimerOrBlockTask/23 (read)prvInsertTimerInActiveList/26 (read)prvSwitchTimerLists/28 (read)prvSwitchTimerLists/28 (write)prvCheckForValidListAndQueue/29 (write)
- Availability: available
- Varpool flags:
- pxCurrentTimerList/6 (pxCurrentTimerList) @06bbf4c8
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: prvProcessExpiredTimer/21 (read)prvGetNextExpireTime/24 (read)prvGetNextExpireTime/24 (read)prvInsertTimerInActiveList/26 (read)prvSwitchTimerLists/28 (read)prvSwitchTimerLists/28 (read)prvSwitchTimerLists/28 (read)prvSwitchTimerLists/28 (write)prvCheckForValidListAndQueue/29 (write)
- Availability: available
- Varpool flags:
- xActiveTimerList2/5 (xActiveTimerList2) @06bbf438
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: prvCheckForValidListAndQueue/29 (addr)prvCheckForValidListAndQueue/29 (addr)
- Availability: available
- Varpool flags:
- xActiveTimerList1/4 (xActiveTimerList1) @06bbf3a8
- Type: variable definition analyzed
- Visibility: force_output no_reorder prevailing_def_ironly
- References:
- Referring: prvCheckForValidListAndQueue/29 (addr)prvCheckForValidListAndQueue/29 (addr)
- Availability: available
- Varpool flags:
- vPortRaiseBASEPRI/1 (vPortRaiseBASEPRI) @06affd20
- Type: function definition analyzed
- Visibility: no_reorder prevailing_def_ironly
- References:
- Referring:
- Availability: local
- Function flags: body local
- Called by: xTimerPendFunctionCall/34 vTimerSetTimerID/32 pvTimerGetTimerID/31 xTimerIsTimerActive/30 prvProcessReceivedCommands/27 prvProcessReceivedCommands/27 pcTimerGetName/19 xTimerGetExpiryTime/18 uxTimerGetReloadMode/17 vTimerSetReloadMode/16 xTimerGetPeriod/15 xTimerGetTimerDaemonTaskHandle/14 xTimerGenericCommand/13 prvInitialiseNewTimer/12 xTimerCreateTimerTask/10
- Calls:
- vTimerSetTimerNumber (struct tmrTimerControl * xTimer, UBaseType_t uxTimerNumber)
- {
- <bb 2> :
- MEM[(struct Timer_t *)xTimer].uxTimerNumber = uxTimerNumber;
- return;
- }
- uxTimerGetTimerNumber (struct tmrTimerControl * xTimer)
- {
- UBaseType_t D.6791;
- <bb 2> :
- D.6791 = MEM[(struct Timer_t *)xTimer].uxTimerNumber;
- <bb 3> :
- <L0>:
- return D.6791;
- }
- xTimerPendFunctionCall (void (*PendedFunction_t) (void *, uint32_t) xFunctionToPend, void * pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait)
- {
- BaseType_t xReturn;
- struct DaemonTaskMessage_t xMessage;
- BaseType_t D.6788;
- <bb 2> :
- xTimerQueue.26_1 = xTimerQueue;
- if (xTimerQueue.26_1 == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- xMessage.xMessageID = -1;
- xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend;
- xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1;
- xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2;
- xTimerQueue.27_2 = xTimerQueue;
- xReturn = xQueueGenericSend (xTimerQueue.27_2, &xMessage, xTicksToWait, 0);
- D.6788 = xReturn;
- xMessage = {CLOBBER};
- <bb 6> :
- <L4>:
- return D.6788;
- }
- xTimerPendFunctionCallFromISR (void (*PendedFunction_t) (void *, uint32_t) xFunctionToPend, void * pvParameter1, uint32_t ulParameter2, BaseType_t * pxHigherPriorityTaskWoken)
- {
- BaseType_t xReturn;
- struct DaemonTaskMessage_t xMessage;
- BaseType_t D.6783;
- <bb 2> :
- xMessage.xMessageID = -2;
- xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend;
- xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1;
- xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2;
- xTimerQueue.25_1 = xTimerQueue;
- xReturn = xQueueGenericSendFromISR (xTimerQueue.25_1, &xMessage, pxHigherPriorityTaskWoken, 0);
- D.6783 = xReturn;
- xMessage = {CLOBBER};
- <bb 3> :
- <L1>:
- return D.6783;
- }
- vTimerSetTimerID (struct tmrTimerControl * xTimer, void * pvNewID)
- {
- struct Timer_t * const pxTimer;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- vPortEnterCritical ();
- pxTimer->pvTimerID = pvNewID;
- vPortExitCritical ();
- return;
- }
- pvTimerGetTimerID (struct tmrTimerControl * const xTimer)
- {
- void * pvReturn;
- struct Timer_t * const pxTimer;
- void * D.6779;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- vPortEnterCritical ();
- pvReturn = pxTimer->pvTimerID;
- vPortExitCritical ();
- D.6779 = pvReturn;
- <bb 6> :
- <L3>:
- return D.6779;
- }
- xTimerIsTimerActive (struct tmrTimerControl * xTimer)
- {
- struct Timer_t * pxTimer;
- BaseType_t xReturn;
- BaseType_t D.6775;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- vPortEnterCritical ();
- _1 = pxTimer->ucStatus;
- _2 = (int) _1;
- _3 = _2 & 1;
- if (_3 == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- xReturn = 0;
- goto <bb 8>; [INV]
- <bb 7> :
- xReturn = 1;
- <bb 8> :
- vPortExitCritical ();
- D.6775 = xReturn;
- <bb 9> :
- <L6>:
- return D.6775;
- }
- prvCheckForValidListAndQueue ()
- {
- <bb 2> :
- vPortEnterCritical ();
- xTimerQueue.22_1 = xTimerQueue;
- if (xTimerQueue.22_1 == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vListInitialise (&xActiveTimerList1);
- vListInitialise (&xActiveTimerList2);
- pxCurrentTimerList = &xActiveTimerList1;
- pxOverflowTimerList = &xActiveTimerList2;
- _2 = xQueueGenericCreate (10, 16, 0);
- xTimerQueue = _2;
- xTimerQueue.23_3 = xTimerQueue;
- if (xTimerQueue.23_3 != 0B)
- goto <bb 4>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 4> :
- xTimerQueue.24_4 = xTimerQueue;
- vQueueAddToRegistry (xTimerQueue.24_4, "TmrQ");
- <bb 5> :
- vPortExitCritical ();
- return;
- }
- prvSwitchTimerLists ()
- {
- struct List_t * pxTemp;
- TickType_t xNextExpireTime;
- <bb 2> :
- goto <bb 4>; [INV]
- <bb 3> :
- pxCurrentTimerList.19_1 = pxCurrentTimerList;
- _2 = pxCurrentTimerList.19_1->xListEnd.pxNext;
- xNextExpireTime = _2->xItemValue;
- prvProcessExpiredTimer (xNextExpireTime, 4294967295);
- <bb 4> :
- pxCurrentTimerList.20_3 = pxCurrentTimerList;
- _4 = pxCurrentTimerList.20_3->uxNumberOfItems;
- if (_4 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- pxTemp = pxCurrentTimerList;
- pxOverflowTimerList.21_5 = pxOverflowTimerList;
- pxCurrentTimerList = pxOverflowTimerList.21_5;
- pxOverflowTimerList = pxTemp;
- return;
- }
- prvProcessReceivedCommands ()
- {
- const struct CallbackParameters_t * const pxCallback;
- TickType_t xTimeNow;
- BaseType_t xTimerListsWereSwitched;
- struct Timer_t * pxTimer;
- struct DaemonTaskMessage_t xMessage;
- <bb 2> :
- goto <bb 28>; [INV]
- <bb 3> :
- _1 = xMessage.xMessageID;
- if (_1 < 0)
- goto <bb 4>; [INV]
- else
- goto <bb 8>; [INV]
- <bb 4> :
- pxCallback = &xMessage.u.xCallbackParameters;
- if (pxCallback == 0B)
- goto <bb 5>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 5> :
- vPortRaiseBASEPRI ();
- <bb 6> :
- goto <bb 6>; [INV]
- <bb 7> :
- _2 = pxCallback->pxCallbackFunction;
- _3 = pxCallback->pvParameter1;
- _4 = pxCallback->ulParameter2;
- _2 (_3, _4);
- <bb 8> :
- _5 = xMessage.xMessageID;
- if (_5 >= 0)
- goto <bb 9>; [INV]
- else
- goto <bb 28>; [INV]
- <bb 9> :
- pxTimer = xMessage.u.xTimerParameters.pxTimer;
- _6 = pxTimer->xTimerListItem.pvContainer;
- if (_6 != 0B)
- goto <bb 10>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 10> :
- _7 = &pxTimer->xTimerListItem;
- uxListRemove (_7);
- <bb 11> :
- xTimeNow = prvSampleTimeNow (&xTimerListsWereSwitched);
- _8 = xMessage.xMessageID;
- 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]>
- <bb 12> :
- <L11>:
- _9 = pxTimer->ucStatus;
- _10 = _9 | 1;
- pxTimer->ucStatus = _10;
- _11 = xMessage.u.xTimerParameters.xMessageValue;
- _12 = pxTimer->xTimerPeriodInTicks;
- _13 = _11 + _12;
- _14 = xMessage.u.xTimerParameters.xMessageValue;
- _15 = prvInsertTimerInActiveList (pxTimer, _13, xTimeNow, _14);
- if (_15 != 0)
- goto <bb 13>; [INV]
- else
- goto <bb 17>; [INV]
- <bb 13> :
- _16 = pxTimer->ucStatus;
- _17 = (int) _16;
- _18 = _17 & 4;
- if (_18 != 0)
- goto <bb 14>; [INV]
- else
- goto <bb 15>; [INV]
- <bb 14> :
- _19 = xMessage.u.xTimerParameters.xMessageValue;
- _20 = pxTimer->xTimerPeriodInTicks;
- _21 = _19 + _20;
- prvReloadTimer (pxTimer, _21, xTimeNow);
- goto <bb 16>; [INV]
- <bb 15> :
- _22 = pxTimer->ucStatus;
- _23 = _22 & 254;
- pxTimer->ucStatus = _23;
- <bb 16> :
- _24 = pxTimer->pxCallbackFunction;
- _24 (pxTimer);
- <bb 17> :
- goto <bb 28>; [INV]
- <bb 18> :
- <L21>:
- _25 = pxTimer->ucStatus;
- _26 = _25 & 254;
- pxTimer->ucStatus = _26;
- goto <bb 28>; [INV]
- <bb 19> :
- <L23>:
- _27 = pxTimer->ucStatus;
- _28 = _27 | 1;
- pxTimer->ucStatus = _28;
- _29 = xMessage.u.xTimerParameters.xMessageValue;
- pxTimer->xTimerPeriodInTicks = _29;
- _30 = pxTimer->xTimerPeriodInTicks;
- if (_30 == 0)
- goto <bb 20>; [INV]
- else
- goto <bb 22>; [INV]
- <bb 20> :
- vPortRaiseBASEPRI ();
- <bb 21> :
- goto <bb 21>; [INV]
- <bb 22> :
- _31 = pxTimer->xTimerPeriodInTicks;
- _32 = xTimeNow + _31;
- prvInsertTimerInActiveList (pxTimer, _32, xTimeNow, xTimeNow);
- goto <bb 28>; [INV]
- <bb 23> :
- <L28>:
- _33 = pxTimer->ucStatus;
- _34 = (int) _33;
- _35 = _34 & 2;
- if (_35 == 0)
- goto <bb 24>; [INV]
- else
- goto <bb 25>; [INV]
- <bb 24> :
- vPortFree (pxTimer);
- goto <bb 26>; [INV]
- <bb 25> :
- _36 = pxTimer->ucStatus;
- _37 = _36 & 254;
- pxTimer->ucStatus = _37;
- <bb 26> :
- goto <bb 28>; [INV]
- <bb 27> :
- <L32>:
- <bb 28> :
- xTimerQueue.18_38 = xTimerQueue;
- _39 = xQueueReceive (xTimerQueue.18_38, &xMessage, 0);
- if (_39 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 29>; [INV]
- <bb 29> :
- xMessage = {CLOBBER};
- xTimerListsWereSwitched = {CLOBBER};
- return;
- }
- prvInsertTimerInActiveList (struct Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime)
- {
- BaseType_t xProcessTimerNow;
- BaseType_t D.6741;
- <bb 2> :
- xProcessTimerNow = 0;
- pxTimer->xTimerListItem.xItemValue = xNextExpiryTime;
- pxTimer->xTimerListItem.pvOwner = pxTimer;
- if (xNextExpiryTime <= xTimeNow)
- goto <bb 3>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 3> :
- _1 = xTimeNow - xCommandTime;
- _2 = pxTimer->xTimerPeriodInTicks;
- if (_1 >= _2)
- goto <bb 4>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 4> :
- xProcessTimerNow = 1;
- goto <bb 10>; [INV]
- <bb 5> :
- pxOverflowTimerList.16_3 = pxOverflowTimerList;
- _4 = &pxTimer->xTimerListItem;
- vListInsert (pxOverflowTimerList.16_3, _4);
- goto <bb 10>; [INV]
- <bb 6> :
- if (xTimeNow < xCommandTime)
- goto <bb 7>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 7> :
- if (xNextExpiryTime >= xCommandTime)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- xProcessTimerNow = 1;
- goto <bb 10>; [INV]
- <bb 9> :
- pxCurrentTimerList.17_5 = pxCurrentTimerList;
- _6 = &pxTimer->xTimerListItem;
- vListInsert (pxCurrentTimerList.17_5, _6);
- <bb 10> :
- D.6741 = xProcessTimerNow;
- <bb 11> :
- <L10>:
- return D.6741;
- }
- prvSampleTimeNow (BaseType_t * const pxTimerListsWereSwitched)
- {
- static TickType_t xLastTime = 0;
- TickType_t xTimeNow;
- TickType_t D.6729;
- <bb 2> :
- xTimeNow = xTaskGetTickCount ();
- xLastTime.15_1 = xLastTime;
- if (xTimeNow < xLastTime.15_1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- prvSwitchTimerLists ();
- *pxTimerListsWereSwitched = 1;
- goto <bb 5>; [INV]
- <bb 4> :
- *pxTimerListsWereSwitched = 0;
- <bb 5> :
- xLastTime = xTimeNow;
- D.6729 = xTimeNow;
- <bb 6> :
- <L3>:
- return D.6729;
- }
- prvGetNextExpireTime (BaseType_t * const pxListWasEmpty)
- {
- TickType_t xNextExpireTime;
- TickType_t D.6724;
- long int iftmp.12;
- <bb 2> :
- pxCurrentTimerList.13_1 = pxCurrentTimerList;
- _2 = pxCurrentTimerList.13_1->uxNumberOfItems;
- if (_2 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- iftmp.12 = 1;
- goto <bb 5>; [INV]
- <bb 4> :
- iftmp.12 = 0;
- <bb 5> :
- *pxListWasEmpty = iftmp.12;
- _3 = *pxListWasEmpty;
- if (_3 == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- pxCurrentTimerList.14_4 = pxCurrentTimerList;
- _5 = pxCurrentTimerList.14_4->xListEnd.pxNext;
- xNextExpireTime = _5->xItemValue;
- goto <bb 8>; [INV]
- <bb 7> :
- xNextExpireTime = 0;
- <bb 8> :
- D.6724 = xNextExpireTime;
- <bb 9> :
- <L6>:
- return D.6724;
- }
- prvProcessTimerOrBlockTask (const TickType_t xNextExpireTime, BaseType_t xListWasEmpty)
- {
- BaseType_t xTimerListsWereSwitched;
- TickType_t xTimeNow;
- long int iftmp.9;
- <bb 2> :
- vTaskSuspendAll ();
- xTimeNow = prvSampleTimeNow (&xTimerListsWereSwitched);
- xTimerListsWereSwitched.8_1 = xTimerListsWereSwitched;
- if (xTimerListsWereSwitched.8_1 == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 14>; [INV]
- <bb 3> :
- if (xListWasEmpty == 0)
- goto <bb 4>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 4> :
- if (xNextExpireTime <= xTimeNow)
- goto <bb 5>; [INV]
- else
- goto <bb 6>; [INV]
- <bb 5> :
- xTaskResumeAll ();
- prvProcessExpiredTimer (xNextExpireTime, xTimeNow);
- goto <bb 13>; [INV]
- <bb 6> :
- if (xListWasEmpty != 0)
- goto <bb 7>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 7> :
- pxOverflowTimerList.10_2 = pxOverflowTimerList;
- _3 = pxOverflowTimerList.10_2->uxNumberOfItems;
- if (_3 == 0)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- iftmp.9 = 1;
- goto <bb 10>; [INV]
- <bb 9> :
- iftmp.9 = 0;
- <bb 10> :
- xListWasEmpty = iftmp.9;
- <bb 11> :
- xTimerQueue.11_4 = xTimerQueue;
- _5 = xNextExpireTime - xTimeNow;
- vQueueWaitForMessageRestricted (xTimerQueue.11_4, _5, xListWasEmpty);
- _6 = xTaskResumeAll ();
- if (_6 == 0)
- goto <bb 12>; [INV]
- else
- goto <bb 13>; [INV]
- <bb 12> :
- _7 = 3758157060B;
- *_7 = 268435456;
- __asm__ __volatile__("dsb" : : : "memory");
- __asm__ __volatile__("isb");
- <bb 13> :
- goto <bb 15>; [INV]
- <bb 14> :
- xTaskResumeAll ();
- <bb 15> :
- xTimerListsWereSwitched = {CLOBBER};
- return;
- }
- prvTimerTask (void * pvParameters)
- {
- BaseType_t xListWasEmpty;
- TickType_t xNextExpireTime;
- <bb 2> :
- xNextExpireTime = prvGetNextExpireTime (&xListWasEmpty);
- xListWasEmpty.7_1 = xListWasEmpty;
- prvProcessTimerOrBlockTask (xNextExpireTime, xListWasEmpty.7_1);
- prvProcessReceivedCommands ();
- goto <bb 2>; [INV]
- }
- prvProcessExpiredTimer (const TickType_t xNextExpireTime, const TickType_t xTimeNow)
- {
- struct Timer_t * const pxTimer;
- <bb 2> :
- pxCurrentTimerList.6_1 = pxCurrentTimerList;
- _2 = pxCurrentTimerList.6_1->xListEnd.pxNext;
- pxTimer = _2->pvOwner;
- _3 = &pxTimer->xTimerListItem;
- uxListRemove (_3);
- _4 = pxTimer->ucStatus;
- _5 = (int) _4;
- _6 = _5 & 4;
- if (_6 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- prvReloadTimer (pxTimer, xNextExpireTime, xTimeNow);
- goto <bb 5>; [INV]
- <bb 4> :
- _7 = pxTimer->ucStatus;
- _8 = _7 & 254;
- pxTimer->ucStatus = _8;
- <bb 5> :
- _9 = pxTimer->pxCallbackFunction;
- _9 (pxTimer);
- return;
- }
- prvReloadTimer (struct Timer_t * const pxTimer, TickType_t xExpiredTime, const TickType_t xTimeNow)
- {
- <bb 2> :
- goto <bb 4>; [INV]
- <bb 3> :
- _1 = pxTimer->xTimerPeriodInTicks;
- xExpiredTime = xExpiredTime + _1;
- _2 = pxTimer->pxCallbackFunction;
- _2 (pxTimer);
- <bb 4> :
- _3 = pxTimer->xTimerPeriodInTicks;
- _4 = xExpiredTime + _3;
- _5 = prvInsertTimerInActiveList (pxTimer, _4, xTimeNow, xExpiredTime);
- if (_5 != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 5> :
- return;
- }
- pcTimerGetName (struct tmrTimerControl * xTimer)
- {
- struct Timer_t * pxTimer;
- const char * D.6696;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- D.6696 = pxTimer->pcTimerName;
- <bb 6> :
- <L3>:
- return D.6696;
- }
- xTimerGetExpiryTime (struct tmrTimerControl * xTimer)
- {
- TickType_t xReturn;
- struct Timer_t * pxTimer;
- TickType_t D.6692;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- xReturn = pxTimer->xTimerListItem.xItemValue;
- D.6692 = xReturn;
- <bb 6> :
- <L3>:
- return D.6692;
- }
- uxTimerGetReloadMode (struct tmrTimerControl * xTimer)
- {
- UBaseType_t uxReturn;
- struct Timer_t * pxTimer;
- UBaseType_t D.6688;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- vPortEnterCritical ();
- _1 = pxTimer->ucStatus;
- _2 = (int) _1;
- _3 = _2 & 4;
- if (_3 == 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- uxReturn = 0;
- goto <bb 8>; [INV]
- <bb 7> :
- uxReturn = 1;
- <bb 8> :
- vPortExitCritical ();
- D.6688 = uxReturn;
- <bb 9> :
- <L6>:
- return D.6688;
- }
- vTimerSetReloadMode (struct tmrTimerControl * xTimer, const UBaseType_t uxAutoReload)
- {
- struct Timer_t * pxTimer;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- vPortEnterCritical ();
- if (uxAutoReload != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- _1 = pxTimer->ucStatus;
- _2 = _1 | 4;
- pxTimer->ucStatus = _2;
- goto <bb 8>; [INV]
- <bb 7> :
- _3 = pxTimer->ucStatus;
- _4 = _3 & 251;
- pxTimer->ucStatus = _4;
- <bb 8> :
- vPortExitCritical ();
- return;
- }
- xTimerGetPeriod (struct tmrTimerControl * xTimer)
- {
- struct Timer_t * pxTimer;
- TickType_t D.6676;
- <bb 2> :
- pxTimer = xTimer;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- D.6676 = pxTimer->xTimerPeriodInTicks;
- <bb 6> :
- <L3>:
- return D.6676;
- }
- xTimerGetTimerDaemonTaskHandle ()
- {
- struct tskTaskControlBlock * D.6672;
- <bb 2> :
- xTimerTaskHandle.5_1 = xTimerTaskHandle;
- if (xTimerTaskHandle.5_1 == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- D.6672 = xTimerTaskHandle;
- <bb 6> :
- <L3>:
- return D.6672;
- }
- xTimerGenericCommand (struct tmrTimerControl * xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait)
- {
- struct DaemonTaskMessage_t xMessage;
- BaseType_t xReturn;
- BaseType_t D.6667;
- <bb 2> :
- xReturn = 0;
- if (xTimer == 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- xTimerQueue.1_1 = xTimerQueue;
- if (xTimerQueue.1_1 != 0B)
- goto <bb 6>; [INV]
- else
- goto <bb 11>; [INV]
- <bb 6> :
- xMessage.xMessageID = xCommandID;
- xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
- xMessage.u.xTimerParameters.pxTimer = xTimer;
- if (xCommandID <= 5)
- goto <bb 7>; [INV]
- else
- goto <bb 10>; [INV]
- <bb 7> :
- _2 = xTaskGetSchedulerState ();
- if (_2 == 2)
- goto <bb 8>; [INV]
- else
- goto <bb 9>; [INV]
- <bb 8> :
- xTimerQueue.2_3 = xTimerQueue;
- xReturn = xQueueGenericSend (xTimerQueue.2_3, &xMessage, xTicksToWait, 0);
- goto <bb 11>; [INV]
- <bb 9> :
- xTimerQueue.3_4 = xTimerQueue;
- xReturn = xQueueGenericSend (xTimerQueue.3_4, &xMessage, 0, 0);
- goto <bb 11>; [INV]
- <bb 10> :
- xTimerQueue.4_5 = xTimerQueue;
- xReturn = xQueueGenericSendFromISR (xTimerQueue.4_5, &xMessage, pxHigherPriorityTaskWoken, 0);
- <bb 11> :
- D.6667 = xReturn;
- xMessage = {CLOBBER};
- <bb 12> :
- <L13>:
- return D.6667;
- }
- 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)
- {
- <bb 2> :
- if (xTimerPeriodInTicks == 0)
- goto <bb 3>; [INV]
- else
- goto <bb 5>; [INV]
- <bb 3> :
- vPortRaiseBASEPRI ();
- <bb 4> :
- goto <bb 4>; [INV]
- <bb 5> :
- prvCheckForValidListAndQueue ();
- pxNewTimer->pcTimerName = pcTimerName;
- pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
- pxNewTimer->pvTimerID = pvTimerID;
- pxNewTimer->pxCallbackFunction = pxCallbackFunction;
- _1 = &pxNewTimer->xTimerListItem;
- vListInitialiseItem (_1);
- if (uxAutoReload != 0)
- goto <bb 6>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 6> :
- _2 = pxNewTimer->ucStatus;
- _3 = _2 | 4;
- pxNewTimer->ucStatus = _3;
- <bb 7> :
- return;
- }
- xTimerCreate (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;
- struct tmrTimerControl * D.6650;
- <bb 2> :
- pxNewTimer = pvPortMalloc (44);
- if (pxNewTimer != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- pxNewTimer->ucStatus = 0;
- prvInitialiseNewTimer (pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer);
- <bb 4> :
- D.6650 = pxNewTimer;
- <bb 5> :
- <L2>:
- return D.6650;
- }
- xTimerCreateTimerTask ()
- {
- BaseType_t xReturn;
- BaseType_t D.6646;
- <bb 2> :
- xReturn = 0;
- prvCheckForValidListAndQueue ();
- xTimerQueue.0_1 = xTimerQueue;
- if (xTimerQueue.0_1 != 0B)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- xReturn = xTaskCreate (prvTimerTask, "Tmr Svc", 180, 0B, 2, &xTimerTaskHandle);
- <bb 4> :
- if (xReturn == 0)
- goto <bb 5>; [INV]
- else
- goto <bb 7>; [INV]
- <bb 5> :
- vPortRaiseBASEPRI ();
- <bb 6> :
- goto <bb 6>; [INV]
- <bb 7> :
- D.6646 = xReturn;
- <bb 8> :
- <L6>:
- return D.6646;
- }
- __attribute__((always_inline))
- vPortRaiseBASEPRI ()
- {
- uint32_t ulNewBASEPRI;
- <bb 2> :
- __asm__ __volatile__(" mov %0, %1
- msr basepri, %0
- isb
- dsb
- " : "=r" ulNewBASEPRI : "i" 16 : "memory");
- return;
- }
|