OZE_Sensor.list 2.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092
  1. OZE_Sensor.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 00000298 08000000 08000000 00001000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 00019f0c 080002a0 080002a0 000012a0 2**4
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 00000488 0801a1b0 0801a1b0 0001b1b0 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM 00000008 0801a638 0801a638 0001b638 2**2
  11. CONTENTS, ALLOC, LOAD, READONLY, DATA
  12. 4 .init_array 00000004 0801a640 0801a640 0001b640 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .fini_array 00000004 0801a644 0801a644 0001b644 2**2
  15. CONTENTS, ALLOC, LOAD, READONLY, DATA
  16. 6 .data 00000210 24000000 0801a648 0001c000 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .bss 000130d4 24000220 0801a858 0001c220 2**5
  19. ALLOC
  20. 8 ._user_heap_stack 00000604 240132f4 0801a858 0001c2f4 2**0
  21. ALLOC
  22. 9 .ARM.attributes 0000002e 00000000 00000000 0001c210 2**0
  23. CONTENTS, READONLY
  24. 10 .debug_info 00035425 00000000 00000000 0001c23e 2**0
  25. CONTENTS, READONLY, DEBUGGING, OCTETS
  26. 11 .debug_abbrev 0000671d 00000000 00000000 00051663 2**0
  27. CONTENTS, READONLY, DEBUGGING, OCTETS
  28. 12 .debug_aranges 00002510 00000000 00000000 00057d80 2**3
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_macro 0004014f 00000000 00000000 0005a290 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_line 000321e7 00000000 00000000 0009a3df 2**0
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_str 001893b6 00000000 00000000 000cc5c6 2**0
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .comment 00000043 00000000 00000000 0025597c 2**0
  37. CONTENTS, READONLY
  38. 17 .debug_rnglists 00001c81 00000000 00000000 002559bf 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_frame 0000aa30 00000000 00000000 00257640 2**2
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .debug_line_str 00000066 00000000 00000000 00262070 2**0
  43. CONTENTS, READONLY, DEBUGGING, OCTETS
  44. Disassembly of section .text:
  45. 080002a0 <__do_global_dtors_aux>:
  46. 80002a0: b510 push {r4, lr}
  47. 80002a2: 4c05 ldr r4, [pc, #20] @ (80002b8 <__do_global_dtors_aux+0x18>)
  48. 80002a4: 7823 ldrb r3, [r4, #0]
  49. 80002a6: b933 cbnz r3, 80002b6 <__do_global_dtors_aux+0x16>
  50. 80002a8: 4b04 ldr r3, [pc, #16] @ (80002bc <__do_global_dtors_aux+0x1c>)
  51. 80002aa: b113 cbz r3, 80002b2 <__do_global_dtors_aux+0x12>
  52. 80002ac: 4804 ldr r0, [pc, #16] @ (80002c0 <__do_global_dtors_aux+0x20>)
  53. 80002ae: f3af 8000 nop.w
  54. 80002b2: 2301 movs r3, #1
  55. 80002b4: 7023 strb r3, [r4, #0]
  56. 80002b6: bd10 pop {r4, pc}
  57. 80002b8: 24000220 .word 0x24000220
  58. 80002bc: 00000000 .word 0x00000000
  59. 80002c0: 0801a194 .word 0x0801a194
  60. 080002c4 <frame_dummy>:
  61. 80002c4: b508 push {r3, lr}
  62. 80002c6: 4b03 ldr r3, [pc, #12] @ (80002d4 <frame_dummy+0x10>)
  63. 80002c8: b11b cbz r3, 80002d2 <frame_dummy+0xe>
  64. 80002ca: 4903 ldr r1, [pc, #12] @ (80002d8 <frame_dummy+0x14>)
  65. 80002cc: 4803 ldr r0, [pc, #12] @ (80002dc <frame_dummy+0x18>)
  66. 80002ce: f3af 8000 nop.w
  67. 80002d2: bd08 pop {r3, pc}
  68. 80002d4: 00000000 .word 0x00000000
  69. 80002d8: 24000224 .word 0x24000224
  70. 80002dc: 0801a194 .word 0x0801a194
  71. 080002e0 <memchr>:
  72. 80002e0: f001 01ff and.w r1, r1, #255 @ 0xff
  73. 80002e4: 2a10 cmp r2, #16
  74. 80002e6: db2b blt.n 8000340 <memchr+0x60>
  75. 80002e8: f010 0f07 tst.w r0, #7
  76. 80002ec: d008 beq.n 8000300 <memchr+0x20>
  77. 80002ee: f810 3b01 ldrb.w r3, [r0], #1
  78. 80002f2: 3a01 subs r2, #1
  79. 80002f4: 428b cmp r3, r1
  80. 80002f6: d02d beq.n 8000354 <memchr+0x74>
  81. 80002f8: f010 0f07 tst.w r0, #7
  82. 80002fc: b342 cbz r2, 8000350 <memchr+0x70>
  83. 80002fe: d1f6 bne.n 80002ee <memchr+0xe>
  84. 8000300: b4f0 push {r4, r5, r6, r7}
  85. 8000302: ea41 2101 orr.w r1, r1, r1, lsl #8
  86. 8000306: ea41 4101 orr.w r1, r1, r1, lsl #16
  87. 800030a: f022 0407 bic.w r4, r2, #7
  88. 800030e: f07f 0700 mvns.w r7, #0
  89. 8000312: 2300 movs r3, #0
  90. 8000314: e8f0 5602 ldrd r5, r6, [r0], #8
  91. 8000318: 3c08 subs r4, #8
  92. 800031a: ea85 0501 eor.w r5, r5, r1
  93. 800031e: ea86 0601 eor.w r6, r6, r1
  94. 8000322: fa85 f547 uadd8 r5, r5, r7
  95. 8000326: faa3 f587 sel r5, r3, r7
  96. 800032a: fa86 f647 uadd8 r6, r6, r7
  97. 800032e: faa5 f687 sel r6, r5, r7
  98. 8000332: b98e cbnz r6, 8000358 <memchr+0x78>
  99. 8000334: d1ee bne.n 8000314 <memchr+0x34>
  100. 8000336: bcf0 pop {r4, r5, r6, r7}
  101. 8000338: f001 01ff and.w r1, r1, #255 @ 0xff
  102. 800033c: f002 0207 and.w r2, r2, #7
  103. 8000340: b132 cbz r2, 8000350 <memchr+0x70>
  104. 8000342: f810 3b01 ldrb.w r3, [r0], #1
  105. 8000346: 3a01 subs r2, #1
  106. 8000348: ea83 0301 eor.w r3, r3, r1
  107. 800034c: b113 cbz r3, 8000354 <memchr+0x74>
  108. 800034e: d1f8 bne.n 8000342 <memchr+0x62>
  109. 8000350: 2000 movs r0, #0
  110. 8000352: 4770 bx lr
  111. 8000354: 3801 subs r0, #1
  112. 8000356: 4770 bx lr
  113. 8000358: 2d00 cmp r5, #0
  114. 800035a: bf06 itte eq
  115. 800035c: 4635 moveq r5, r6
  116. 800035e: 3803 subeq r0, #3
  117. 8000360: 3807 subne r0, #7
  118. 8000362: f015 0f01 tst.w r5, #1
  119. 8000366: d107 bne.n 8000378 <memchr+0x98>
  120. 8000368: 3001 adds r0, #1
  121. 800036a: f415 7f80 tst.w r5, #256 @ 0x100
  122. 800036e: bf02 ittt eq
  123. 8000370: 3001 addeq r0, #1
  124. 8000372: f415 3fc0 tsteq.w r5, #98304 @ 0x18000
  125. 8000376: 3001 addeq r0, #1
  126. 8000378: bcf0 pop {r4, r5, r6, r7}
  127. 800037a: 3801 subs r0, #1
  128. 800037c: 4770 bx lr
  129. 800037e: bf00 nop
  130. 08000380 <strlen>:
  131. 8000380: 4603 mov r3, r0
  132. 8000382: f813 2b01 ldrb.w r2, [r3], #1
  133. 8000386: 2a00 cmp r2, #0
  134. 8000388: d1fb bne.n 8000382 <strlen+0x2>
  135. 800038a: 1a18 subs r0, r3, r0
  136. 800038c: 3801 subs r0, #1
  137. 800038e: 4770 bx lr
  138. 08000390 <__aeabi_uldivmod>:
  139. 8000390: b953 cbnz r3, 80003a8 <__aeabi_uldivmod+0x18>
  140. 8000392: b94a cbnz r2, 80003a8 <__aeabi_uldivmod+0x18>
  141. 8000394: 2900 cmp r1, #0
  142. 8000396: bf08 it eq
  143. 8000398: 2800 cmpeq r0, #0
  144. 800039a: bf1c itt ne
  145. 800039c: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff
  146. 80003a0: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff
  147. 80003a4: f000 b96a b.w 800067c <__aeabi_idiv0>
  148. 80003a8: f1ad 0c08 sub.w ip, sp, #8
  149. 80003ac: e96d ce04 strd ip, lr, [sp, #-16]!
  150. 80003b0: f000 f806 bl 80003c0 <__udivmoddi4>
  151. 80003b4: f8dd e004 ldr.w lr, [sp, #4]
  152. 80003b8: e9dd 2302 ldrd r2, r3, [sp, #8]
  153. 80003bc: b004 add sp, #16
  154. 80003be: 4770 bx lr
  155. 080003c0 <__udivmoddi4>:
  156. 80003c0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  157. 80003c4: 9d08 ldr r5, [sp, #32]
  158. 80003c6: 460c mov r4, r1
  159. 80003c8: 2b00 cmp r3, #0
  160. 80003ca: d14e bne.n 800046a <__udivmoddi4+0xaa>
  161. 80003cc: 4694 mov ip, r2
  162. 80003ce: 458c cmp ip, r1
  163. 80003d0: 4686 mov lr, r0
  164. 80003d2: fab2 f282 clz r2, r2
  165. 80003d6: d962 bls.n 800049e <__udivmoddi4+0xde>
  166. 80003d8: b14a cbz r2, 80003ee <__udivmoddi4+0x2e>
  167. 80003da: f1c2 0320 rsb r3, r2, #32
  168. 80003de: 4091 lsls r1, r2
  169. 80003e0: fa20 f303 lsr.w r3, r0, r3
  170. 80003e4: fa0c fc02 lsl.w ip, ip, r2
  171. 80003e8: 4319 orrs r1, r3
  172. 80003ea: fa00 fe02 lsl.w lr, r0, r2
  173. 80003ee: ea4f 471c mov.w r7, ip, lsr #16
  174. 80003f2: fa1f f68c uxth.w r6, ip
  175. 80003f6: fbb1 f4f7 udiv r4, r1, r7
  176. 80003fa: ea4f 431e mov.w r3, lr, lsr #16
  177. 80003fe: fb07 1114 mls r1, r7, r4, r1
  178. 8000402: ea43 4301 orr.w r3, r3, r1, lsl #16
  179. 8000406: fb04 f106 mul.w r1, r4, r6
  180. 800040a: 4299 cmp r1, r3
  181. 800040c: d90a bls.n 8000424 <__udivmoddi4+0x64>
  182. 800040e: eb1c 0303 adds.w r3, ip, r3
  183. 8000412: f104 30ff add.w r0, r4, #4294967295 @ 0xffffffff
  184. 8000416: f080 8112 bcs.w 800063e <__udivmoddi4+0x27e>
  185. 800041a: 4299 cmp r1, r3
  186. 800041c: f240 810f bls.w 800063e <__udivmoddi4+0x27e>
  187. 8000420: 3c02 subs r4, #2
  188. 8000422: 4463 add r3, ip
  189. 8000424: 1a59 subs r1, r3, r1
  190. 8000426: fa1f f38e uxth.w r3, lr
  191. 800042a: fbb1 f0f7 udiv r0, r1, r7
  192. 800042e: fb07 1110 mls r1, r7, r0, r1
  193. 8000432: ea43 4301 orr.w r3, r3, r1, lsl #16
  194. 8000436: fb00 f606 mul.w r6, r0, r6
  195. 800043a: 429e cmp r6, r3
  196. 800043c: d90a bls.n 8000454 <__udivmoddi4+0x94>
  197. 800043e: eb1c 0303 adds.w r3, ip, r3
  198. 8000442: f100 31ff add.w r1, r0, #4294967295 @ 0xffffffff
  199. 8000446: f080 80fc bcs.w 8000642 <__udivmoddi4+0x282>
  200. 800044a: 429e cmp r6, r3
  201. 800044c: f240 80f9 bls.w 8000642 <__udivmoddi4+0x282>
  202. 8000450: 4463 add r3, ip
  203. 8000452: 3802 subs r0, #2
  204. 8000454: 1b9b subs r3, r3, r6
  205. 8000456: ea40 4004 orr.w r0, r0, r4, lsl #16
  206. 800045a: 2100 movs r1, #0
  207. 800045c: b11d cbz r5, 8000466 <__udivmoddi4+0xa6>
  208. 800045e: 40d3 lsrs r3, r2
  209. 8000460: 2200 movs r2, #0
  210. 8000462: e9c5 3200 strd r3, r2, [r5]
  211. 8000466: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  212. 800046a: 428b cmp r3, r1
  213. 800046c: d905 bls.n 800047a <__udivmoddi4+0xba>
  214. 800046e: b10d cbz r5, 8000474 <__udivmoddi4+0xb4>
  215. 8000470: e9c5 0100 strd r0, r1, [r5]
  216. 8000474: 2100 movs r1, #0
  217. 8000476: 4608 mov r0, r1
  218. 8000478: e7f5 b.n 8000466 <__udivmoddi4+0xa6>
  219. 800047a: fab3 f183 clz r1, r3
  220. 800047e: 2900 cmp r1, #0
  221. 8000480: d146 bne.n 8000510 <__udivmoddi4+0x150>
  222. 8000482: 42a3 cmp r3, r4
  223. 8000484: d302 bcc.n 800048c <__udivmoddi4+0xcc>
  224. 8000486: 4290 cmp r0, r2
  225. 8000488: f0c0 80f0 bcc.w 800066c <__udivmoddi4+0x2ac>
  226. 800048c: 1a86 subs r6, r0, r2
  227. 800048e: eb64 0303 sbc.w r3, r4, r3
  228. 8000492: 2001 movs r0, #1
  229. 8000494: 2d00 cmp r5, #0
  230. 8000496: d0e6 beq.n 8000466 <__udivmoddi4+0xa6>
  231. 8000498: e9c5 6300 strd r6, r3, [r5]
  232. 800049c: e7e3 b.n 8000466 <__udivmoddi4+0xa6>
  233. 800049e: 2a00 cmp r2, #0
  234. 80004a0: f040 8090 bne.w 80005c4 <__udivmoddi4+0x204>
  235. 80004a4: eba1 040c sub.w r4, r1, ip
  236. 80004a8: ea4f 481c mov.w r8, ip, lsr #16
  237. 80004ac: fa1f f78c uxth.w r7, ip
  238. 80004b0: 2101 movs r1, #1
  239. 80004b2: fbb4 f6f8 udiv r6, r4, r8
  240. 80004b6: ea4f 431e mov.w r3, lr, lsr #16
  241. 80004ba: fb08 4416 mls r4, r8, r6, r4
  242. 80004be: ea43 4304 orr.w r3, r3, r4, lsl #16
  243. 80004c2: fb07 f006 mul.w r0, r7, r6
  244. 80004c6: 4298 cmp r0, r3
  245. 80004c8: d908 bls.n 80004dc <__udivmoddi4+0x11c>
  246. 80004ca: eb1c 0303 adds.w r3, ip, r3
  247. 80004ce: f106 34ff add.w r4, r6, #4294967295 @ 0xffffffff
  248. 80004d2: d202 bcs.n 80004da <__udivmoddi4+0x11a>
  249. 80004d4: 4298 cmp r0, r3
  250. 80004d6: f200 80cd bhi.w 8000674 <__udivmoddi4+0x2b4>
  251. 80004da: 4626 mov r6, r4
  252. 80004dc: 1a1c subs r4, r3, r0
  253. 80004de: fa1f f38e uxth.w r3, lr
  254. 80004e2: fbb4 f0f8 udiv r0, r4, r8
  255. 80004e6: fb08 4410 mls r4, r8, r0, r4
  256. 80004ea: ea43 4304 orr.w r3, r3, r4, lsl #16
  257. 80004ee: fb00 f707 mul.w r7, r0, r7
  258. 80004f2: 429f cmp r7, r3
  259. 80004f4: d908 bls.n 8000508 <__udivmoddi4+0x148>
  260. 80004f6: eb1c 0303 adds.w r3, ip, r3
  261. 80004fa: f100 34ff add.w r4, r0, #4294967295 @ 0xffffffff
  262. 80004fe: d202 bcs.n 8000506 <__udivmoddi4+0x146>
  263. 8000500: 429f cmp r7, r3
  264. 8000502: f200 80b0 bhi.w 8000666 <__udivmoddi4+0x2a6>
  265. 8000506: 4620 mov r0, r4
  266. 8000508: 1bdb subs r3, r3, r7
  267. 800050a: ea40 4006 orr.w r0, r0, r6, lsl #16
  268. 800050e: e7a5 b.n 800045c <__udivmoddi4+0x9c>
  269. 8000510: f1c1 0620 rsb r6, r1, #32
  270. 8000514: 408b lsls r3, r1
  271. 8000516: fa22 f706 lsr.w r7, r2, r6
  272. 800051a: 431f orrs r7, r3
  273. 800051c: fa20 fc06 lsr.w ip, r0, r6
  274. 8000520: fa04 f301 lsl.w r3, r4, r1
  275. 8000524: ea43 030c orr.w r3, r3, ip
  276. 8000528: 40f4 lsrs r4, r6
  277. 800052a: fa00 f801 lsl.w r8, r0, r1
  278. 800052e: 0c38 lsrs r0, r7, #16
  279. 8000530: ea4f 4913 mov.w r9, r3, lsr #16
  280. 8000534: fbb4 fef0 udiv lr, r4, r0
  281. 8000538: fa1f fc87 uxth.w ip, r7
  282. 800053c: fb00 441e mls r4, r0, lr, r4
  283. 8000540: ea49 4404 orr.w r4, r9, r4, lsl #16
  284. 8000544: fb0e f90c mul.w r9, lr, ip
  285. 8000548: 45a1 cmp r9, r4
  286. 800054a: fa02 f201 lsl.w r2, r2, r1
  287. 800054e: d90a bls.n 8000566 <__udivmoddi4+0x1a6>
  288. 8000550: 193c adds r4, r7, r4
  289. 8000552: f10e 3aff add.w sl, lr, #4294967295 @ 0xffffffff
  290. 8000556: f080 8084 bcs.w 8000662 <__udivmoddi4+0x2a2>
  291. 800055a: 45a1 cmp r9, r4
  292. 800055c: f240 8081 bls.w 8000662 <__udivmoddi4+0x2a2>
  293. 8000560: f1ae 0e02 sub.w lr, lr, #2
  294. 8000564: 443c add r4, r7
  295. 8000566: eba4 0409 sub.w r4, r4, r9
  296. 800056a: fa1f f983 uxth.w r9, r3
  297. 800056e: fbb4 f3f0 udiv r3, r4, r0
  298. 8000572: fb00 4413 mls r4, r0, r3, r4
  299. 8000576: ea49 4404 orr.w r4, r9, r4, lsl #16
  300. 800057a: fb03 fc0c mul.w ip, r3, ip
  301. 800057e: 45a4 cmp ip, r4
  302. 8000580: d907 bls.n 8000592 <__udivmoddi4+0x1d2>
  303. 8000582: 193c adds r4, r7, r4
  304. 8000584: f103 30ff add.w r0, r3, #4294967295 @ 0xffffffff
  305. 8000588: d267 bcs.n 800065a <__udivmoddi4+0x29a>
  306. 800058a: 45a4 cmp ip, r4
  307. 800058c: d965 bls.n 800065a <__udivmoddi4+0x29a>
  308. 800058e: 3b02 subs r3, #2
  309. 8000590: 443c add r4, r7
  310. 8000592: ea43 400e orr.w r0, r3, lr, lsl #16
  311. 8000596: fba0 9302 umull r9, r3, r0, r2
  312. 800059a: eba4 040c sub.w r4, r4, ip
  313. 800059e: 429c cmp r4, r3
  314. 80005a0: 46ce mov lr, r9
  315. 80005a2: 469c mov ip, r3
  316. 80005a4: d351 bcc.n 800064a <__udivmoddi4+0x28a>
  317. 80005a6: d04e beq.n 8000646 <__udivmoddi4+0x286>
  318. 80005a8: b155 cbz r5, 80005c0 <__udivmoddi4+0x200>
  319. 80005aa: ebb8 030e subs.w r3, r8, lr
  320. 80005ae: eb64 040c sbc.w r4, r4, ip
  321. 80005b2: fa04 f606 lsl.w r6, r4, r6
  322. 80005b6: 40cb lsrs r3, r1
  323. 80005b8: 431e orrs r6, r3
  324. 80005ba: 40cc lsrs r4, r1
  325. 80005bc: e9c5 6400 strd r6, r4, [r5]
  326. 80005c0: 2100 movs r1, #0
  327. 80005c2: e750 b.n 8000466 <__udivmoddi4+0xa6>
  328. 80005c4: f1c2 0320 rsb r3, r2, #32
  329. 80005c8: fa20 f103 lsr.w r1, r0, r3
  330. 80005cc: fa0c fc02 lsl.w ip, ip, r2
  331. 80005d0: fa24 f303 lsr.w r3, r4, r3
  332. 80005d4: 4094 lsls r4, r2
  333. 80005d6: 430c orrs r4, r1
  334. 80005d8: ea4f 481c mov.w r8, ip, lsr #16
  335. 80005dc: fa00 fe02 lsl.w lr, r0, r2
  336. 80005e0: fa1f f78c uxth.w r7, ip
  337. 80005e4: fbb3 f0f8 udiv r0, r3, r8
  338. 80005e8: fb08 3110 mls r1, r8, r0, r3
  339. 80005ec: 0c23 lsrs r3, r4, #16
  340. 80005ee: ea43 4301 orr.w r3, r3, r1, lsl #16
  341. 80005f2: fb00 f107 mul.w r1, r0, r7
  342. 80005f6: 4299 cmp r1, r3
  343. 80005f8: d908 bls.n 800060c <__udivmoddi4+0x24c>
  344. 80005fa: eb1c 0303 adds.w r3, ip, r3
  345. 80005fe: f100 36ff add.w r6, r0, #4294967295 @ 0xffffffff
  346. 8000602: d22c bcs.n 800065e <__udivmoddi4+0x29e>
  347. 8000604: 4299 cmp r1, r3
  348. 8000606: d92a bls.n 800065e <__udivmoddi4+0x29e>
  349. 8000608: 3802 subs r0, #2
  350. 800060a: 4463 add r3, ip
  351. 800060c: 1a5b subs r3, r3, r1
  352. 800060e: b2a4 uxth r4, r4
  353. 8000610: fbb3 f1f8 udiv r1, r3, r8
  354. 8000614: fb08 3311 mls r3, r8, r1, r3
  355. 8000618: ea44 4403 orr.w r4, r4, r3, lsl #16
  356. 800061c: fb01 f307 mul.w r3, r1, r7
  357. 8000620: 42a3 cmp r3, r4
  358. 8000622: d908 bls.n 8000636 <__udivmoddi4+0x276>
  359. 8000624: eb1c 0404 adds.w r4, ip, r4
  360. 8000628: f101 36ff add.w r6, r1, #4294967295 @ 0xffffffff
  361. 800062c: d213 bcs.n 8000656 <__udivmoddi4+0x296>
  362. 800062e: 42a3 cmp r3, r4
  363. 8000630: d911 bls.n 8000656 <__udivmoddi4+0x296>
  364. 8000632: 3902 subs r1, #2
  365. 8000634: 4464 add r4, ip
  366. 8000636: 1ae4 subs r4, r4, r3
  367. 8000638: ea41 4100 orr.w r1, r1, r0, lsl #16
  368. 800063c: e739 b.n 80004b2 <__udivmoddi4+0xf2>
  369. 800063e: 4604 mov r4, r0
  370. 8000640: e6f0 b.n 8000424 <__udivmoddi4+0x64>
  371. 8000642: 4608 mov r0, r1
  372. 8000644: e706 b.n 8000454 <__udivmoddi4+0x94>
  373. 8000646: 45c8 cmp r8, r9
  374. 8000648: d2ae bcs.n 80005a8 <__udivmoddi4+0x1e8>
  375. 800064a: ebb9 0e02 subs.w lr, r9, r2
  376. 800064e: eb63 0c07 sbc.w ip, r3, r7
  377. 8000652: 3801 subs r0, #1
  378. 8000654: e7a8 b.n 80005a8 <__udivmoddi4+0x1e8>
  379. 8000656: 4631 mov r1, r6
  380. 8000658: e7ed b.n 8000636 <__udivmoddi4+0x276>
  381. 800065a: 4603 mov r3, r0
  382. 800065c: e799 b.n 8000592 <__udivmoddi4+0x1d2>
  383. 800065e: 4630 mov r0, r6
  384. 8000660: e7d4 b.n 800060c <__udivmoddi4+0x24c>
  385. 8000662: 46d6 mov lr, sl
  386. 8000664: e77f b.n 8000566 <__udivmoddi4+0x1a6>
  387. 8000666: 4463 add r3, ip
  388. 8000668: 3802 subs r0, #2
  389. 800066a: e74d b.n 8000508 <__udivmoddi4+0x148>
  390. 800066c: 4606 mov r6, r0
  391. 800066e: 4623 mov r3, r4
  392. 8000670: 4608 mov r0, r1
  393. 8000672: e70f b.n 8000494 <__udivmoddi4+0xd4>
  394. 8000674: 3e02 subs r6, #2
  395. 8000676: 4463 add r3, ip
  396. 8000678: e730 b.n 80004dc <__udivmoddi4+0x11c>
  397. 800067a: bf00 nop
  398. 0800067c <__aeabi_idiv0>:
  399. 800067c: 4770 bx lr
  400. 800067e: bf00 nop
  401. 08000680 <vApplicationStackOverflowHook>:
  402. /* Hook prototypes */
  403. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName);
  404. /* USER CODE BEGIN 4 */
  405. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName)
  406. {
  407. 8000680: b480 push {r7}
  408. 8000682: b083 sub sp, #12
  409. 8000684: af00 add r7, sp, #0
  410. 8000686: 6078 str r0, [r7, #4]
  411. 8000688: 6039 str r1, [r7, #0]
  412. /* Run time stack overflow checking is performed if
  413. configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
  414. called if a stack overflow is detected. */
  415. }
  416. 800068a: bf00 nop
  417. 800068c: 370c adds r7, #12
  418. 800068e: 46bd mov sp, r7
  419. 8000690: f85d 7b04 ldr.w r7, [sp], #4
  420. 8000694: 4770 bx lr
  421. ...
  422. 08000698 <__NVIC_SystemReset>:
  423. /**
  424. \brief System Reset
  425. \details Initiates a system reset request to reset the MCU.
  426. */
  427. __NO_RETURN __STATIC_INLINE void __NVIC_SystemReset(void)
  428. {
  429. 8000698: b480 push {r7}
  430. 800069a: af00 add r7, sp, #0
  431. \details Acts as a special kind of Data Memory Barrier.
  432. It completes when all explicit memory accesses before this instruction complete.
  433. */
  434. __STATIC_FORCEINLINE void __DSB(void)
  435. {
  436. __ASM volatile ("dsb 0xF":::"memory");
  437. 800069c: f3bf 8f4f dsb sy
  438. }
  439. 80006a0: bf00 nop
  440. __DSB(); /* Ensure all outstanding memory accesses included
  441. buffered write are completed before reset */
  442. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  443. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  444. 80006a2: 4b06 ldr r3, [pc, #24] @ (80006bc <__NVIC_SystemReset+0x24>)
  445. 80006a4: 68db ldr r3, [r3, #12]
  446. 80006a6: f403 62e0 and.w r2, r3, #1792 @ 0x700
  447. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  448. 80006aa: 4904 ldr r1, [pc, #16] @ (80006bc <__NVIC_SystemReset+0x24>)
  449. 80006ac: 4b04 ldr r3, [pc, #16] @ (80006c0 <__NVIC_SystemReset+0x28>)
  450. 80006ae: 4313 orrs r3, r2
  451. 80006b0: 60cb str r3, [r1, #12]
  452. __ASM volatile ("dsb 0xF":::"memory");
  453. 80006b2: f3bf 8f4f dsb sy
  454. }
  455. 80006b6: bf00 nop
  456. SCB_AIRCR_SYSRESETREQ_Msk ); /* Keep priority group unchanged */
  457. __DSB(); /* Ensure completion of memory access */
  458. for(;;) /* wait until reset */
  459. {
  460. __NOP();
  461. 80006b8: bf00 nop
  462. 80006ba: e7fd b.n 80006b8 <__NVIC_SystemReset+0x20>
  463. 80006bc: e000ed00 .word 0xe000ed00
  464. 80006c0: 05fa0004 .word 0x05fa0004
  465. 080006c4 <ITM_SendChar>:
  466. \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted.
  467. \param [in] ch Character to transmit.
  468. \returns Character to transmit.
  469. */
  470. __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch)
  471. {
  472. 80006c4: b480 push {r7}
  473. 80006c6: b083 sub sp, #12
  474. 80006c8: af00 add r7, sp, #0
  475. 80006ca: 6078 str r0, [r7, #4]
  476. if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */
  477. 80006cc: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  478. 80006d0: f8d3 3e80 ldr.w r3, [r3, #3712] @ 0xe80
  479. 80006d4: f003 0301 and.w r3, r3, #1
  480. 80006d8: 2b00 cmp r3, #0
  481. 80006da: d013 beq.n 8000704 <ITM_SendChar+0x40>
  482. ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */
  483. 80006dc: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  484. 80006e0: f8d3 3e00 ldr.w r3, [r3, #3584] @ 0xe00
  485. 80006e4: f003 0301 and.w r3, r3, #1
  486. if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */
  487. 80006e8: 2b00 cmp r3, #0
  488. 80006ea: d00b beq.n 8000704 <ITM_SendChar+0x40>
  489. {
  490. while (ITM->PORT[0U].u32 == 0UL)
  491. 80006ec: e000 b.n 80006f0 <ITM_SendChar+0x2c>
  492. {
  493. __NOP();
  494. 80006ee: bf00 nop
  495. while (ITM->PORT[0U].u32 == 0UL)
  496. 80006f0: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  497. 80006f4: 681b ldr r3, [r3, #0]
  498. 80006f6: 2b00 cmp r3, #0
  499. 80006f8: d0f9 beq.n 80006ee <ITM_SendChar+0x2a>
  500. }
  501. ITM->PORT[0U].u8 = (uint8_t)ch;
  502. 80006fa: f04f 4360 mov.w r3, #3758096384 @ 0xe0000000
  503. 80006fe: 687a ldr r2, [r7, #4]
  504. 8000700: b2d2 uxtb r2, r2
  505. 8000702: 701a strb r2, [r3, #0]
  506. }
  507. return (ch);
  508. 8000704: 687b ldr r3, [r7, #4]
  509. }
  510. 8000706: 4618 mov r0, r3
  511. 8000708: 370c adds r7, #12
  512. 800070a: 46bd mov sp, r7
  513. 800070c: f85d 7b04 ldr.w r7, [sp], #4
  514. 8000710: 4770 bx lr
  515. 08000712 <__io_putchar>:
  516. /* USER CODE END PFP */
  517. /* Private user code ---------------------------------------------------------*/
  518. /* USER CODE BEGIN 0 */
  519. int __io_putchar(int ch)
  520. {
  521. 8000712: b580 push {r7, lr}
  522. 8000714: b082 sub sp, #8
  523. 8000716: af00 add r7, sp, #0
  524. 8000718: 6078 str r0, [r7, #4]
  525. #if UART_TASK_LOGS
  526. // HAL_UART_Transmit(&huart8, (uint8_t *)&ch, 1, 0xFFFF); // Use UART8 as debug interface
  527. ITM_SendChar(ch); // Use SWV as debug interface
  528. 800071a: 687b ldr r3, [r7, #4]
  529. 800071c: 4618 mov r0, r3
  530. 800071e: f7ff ffd1 bl 80006c4 <ITM_SendChar>
  531. #endif
  532. return ch;
  533. 8000722: 687b ldr r3, [r7, #4]
  534. }
  535. 8000724: 4618 mov r0, r3
  536. 8000726: 3708 adds r7, #8
  537. 8000728: 46bd mov sp, r7
  538. 800072a: bd80 pop {r7, pc}
  539. 0800072c <HAL_GPIO_EXTI_Callback>:
  540. void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
  541. {
  542. 800072c: b590 push {r4, r7, lr}
  543. 800072e: b085 sub sp, #20
  544. 8000730: af00 add r7, sp, #0
  545. 8000732: 4603 mov r3, r0
  546. 8000734: 80fb strh r3, [r7, #6]
  547. if((GPIO_Pin == GPIO_PIN_14) || (GPIO_Pin == GPIO_PIN_15))
  548. 8000736: 88fb ldrh r3, [r7, #6]
  549. 8000738: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  550. 800073c: d003 beq.n 8000746 <HAL_GPIO_EXTI_Callback+0x1a>
  551. 800073e: 88fb ldrh r3, [r7, #6]
  552. 8000740: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  553. 8000744: d11a bne.n 800077c <HAL_GPIO_EXTI_Callback+0x50>
  554. {
  555. uint32_t pinStates = ((HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_15) << 1) | HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_14)) & 0x3;
  556. 8000746: f44f 4100 mov.w r1, #32768 @ 0x8000
  557. 800074a: 481f ldr r0, [pc, #124] @ (80007c8 <HAL_GPIO_EXTI_Callback+0x9c>)
  558. 800074c: f00a fd20 bl 800b190 <HAL_GPIO_ReadPin>
  559. 8000750: 4603 mov r3, r0
  560. 8000752: 005c lsls r4, r3, #1
  561. 8000754: f44f 4180 mov.w r1, #16384 @ 0x4000
  562. 8000758: 481b ldr r0, [pc, #108] @ (80007c8 <HAL_GPIO_EXTI_Callback+0x9c>)
  563. 800075a: f00a fd19 bl 800b190 <HAL_GPIO_ReadPin>
  564. 800075e: 4603 mov r3, r0
  565. 8000760: 4323 orrs r3, r4
  566. 8000762: f003 0303 and.w r3, r3, #3
  567. 8000766: 60fb str r3, [r7, #12]
  568. osMessageQueuePut(encoderXTaskArg.dataQueue, &pinStates, 0, 0);
  569. 8000768: 4b18 ldr r3, [pc, #96] @ (80007cc <HAL_GPIO_EXTI_Callback+0xa0>)
  570. 800076a: 6918 ldr r0, [r3, #16]
  571. 800076c: f107 010c add.w r1, r7, #12
  572. 8000770: 2300 movs r3, #0
  573. 8000772: 2200 movs r2, #0
  574. 8000774: f013 fa1a bl 8013bac <osMessageQueuePut>
  575. {
  576. 8000778: bf00 nop
  577. else if ((GPIO_Pin == GPIO_PIN_10) || (GPIO_Pin == GPIO_PIN_11))
  578. {
  579. uint32_t pinStates = ((HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_11) << 1) | HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_10)) & 0x3;
  580. osMessageQueuePut(encoderYTaskArg.dataQueue, &pinStates, 0, 0);
  581. }
  582. }
  583. 800077a: e020 b.n 80007be <HAL_GPIO_EXTI_Callback+0x92>
  584. else if ((GPIO_Pin == GPIO_PIN_10) || (GPIO_Pin == GPIO_PIN_11))
  585. 800077c: 88fb ldrh r3, [r7, #6]
  586. 800077e: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  587. 8000782: d003 beq.n 800078c <HAL_GPIO_EXTI_Callback+0x60>
  588. 8000784: 88fb ldrh r3, [r7, #6]
  589. 8000786: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  590. 800078a: d118 bne.n 80007be <HAL_GPIO_EXTI_Callback+0x92>
  591. uint32_t pinStates = ((HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_11) << 1) | HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_10)) & 0x3;
  592. 800078c: f44f 6100 mov.w r1, #2048 @ 0x800
  593. 8000790: 480f ldr r0, [pc, #60] @ (80007d0 <HAL_GPIO_EXTI_Callback+0xa4>)
  594. 8000792: f00a fcfd bl 800b190 <HAL_GPIO_ReadPin>
  595. 8000796: 4603 mov r3, r0
  596. 8000798: 005c lsls r4, r3, #1
  597. 800079a: f44f 6180 mov.w r1, #1024 @ 0x400
  598. 800079e: 480c ldr r0, [pc, #48] @ (80007d0 <HAL_GPIO_EXTI_Callback+0xa4>)
  599. 80007a0: f00a fcf6 bl 800b190 <HAL_GPIO_ReadPin>
  600. 80007a4: 4603 mov r3, r0
  601. 80007a6: 4323 orrs r3, r4
  602. 80007a8: f003 0303 and.w r3, r3, #3
  603. 80007ac: 60bb str r3, [r7, #8]
  604. osMessageQueuePut(encoderYTaskArg.dataQueue, &pinStates, 0, 0);
  605. 80007ae: 4b09 ldr r3, [pc, #36] @ (80007d4 <HAL_GPIO_EXTI_Callback+0xa8>)
  606. 80007b0: 6918 ldr r0, [r3, #16]
  607. 80007b2: f107 0108 add.w r1, r7, #8
  608. 80007b6: 2300 movs r3, #0
  609. 80007b8: 2200 movs r2, #0
  610. 80007ba: f013 f9f7 bl 8013bac <osMessageQueuePut>
  611. }
  612. 80007be: bf00 nop
  613. 80007c0: 3714 adds r7, #20
  614. 80007c2: 46bd mov sp, r7
  615. 80007c4: bd90 pop {r4, r7, pc}
  616. 80007c6: bf00 nop
  617. 80007c8: 58020c00 .word 0x58020c00
  618. 80007cc: 24000980 .word 0x24000980
  619. 80007d0: 58020400 .word 0x58020400
  620. 80007d4: 240009a0 .word 0x240009a0
  621. 080007d8 <main>:
  622. /**
  623. * @brief The application entry point.
  624. * @retval int
  625. */
  626. int main(void)
  627. {
  628. 80007d8: b580 push {r7, lr}
  629. 80007da: b084 sub sp, #16
  630. 80007dc: af00 add r7, sp, #0
  631. /* USER CODE BEGIN 1 */
  632. /* USER CODE END 1 */
  633. /* MPU Configuration--------------------------------------------------------*/
  634. MPU_Config();
  635. 80007de: f001 f94f bl 8001a80 <MPU_Config>
  636. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  637. 80007e2: 4b62 ldr r3, [pc, #392] @ (800096c <main+0x194>)
  638. 80007e4: 695b ldr r3, [r3, #20]
  639. 80007e6: f403 3300 and.w r3, r3, #131072 @ 0x20000
  640. 80007ea: 2b00 cmp r3, #0
  641. 80007ec: d11b bne.n 8000826 <main+0x4e>
  642. __ASM volatile ("dsb 0xF":::"memory");
  643. 80007ee: f3bf 8f4f dsb sy
  644. }
  645. 80007f2: bf00 nop
  646. __ASM volatile ("isb 0xF":::"memory");
  647. 80007f4: f3bf 8f6f isb sy
  648. }
  649. 80007f8: bf00 nop
  650. SCB->ICIALLU = 0UL; /* invalidate I-Cache */
  651. 80007fa: 4b5c ldr r3, [pc, #368] @ (800096c <main+0x194>)
  652. 80007fc: 2200 movs r2, #0
  653. 80007fe: f8c3 2250 str.w r2, [r3, #592] @ 0x250
  654. __ASM volatile ("dsb 0xF":::"memory");
  655. 8000802: f3bf 8f4f dsb sy
  656. }
  657. 8000806: bf00 nop
  658. __ASM volatile ("isb 0xF":::"memory");
  659. 8000808: f3bf 8f6f isb sy
  660. }
  661. 800080c: bf00 nop
  662. SCB->CCR |= (uint32_t)SCB_CCR_IC_Msk; /* enable I-Cache */
  663. 800080e: 4b57 ldr r3, [pc, #348] @ (800096c <main+0x194>)
  664. 8000810: 695b ldr r3, [r3, #20]
  665. 8000812: 4a56 ldr r2, [pc, #344] @ (800096c <main+0x194>)
  666. 8000814: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  667. 8000818: 6153 str r3, [r2, #20]
  668. __ASM volatile ("dsb 0xF":::"memory");
  669. 800081a: f3bf 8f4f dsb sy
  670. }
  671. 800081e: bf00 nop
  672. __ASM volatile ("isb 0xF":::"memory");
  673. 8000820: f3bf 8f6f isb sy
  674. }
  675. 8000824: e000 b.n 8000828 <main+0x50>
  676. if (SCB->CCR & SCB_CCR_IC_Msk) return; /* return if ICache is already enabled */
  677. 8000826: bf00 nop
  678. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  679. 8000828: 4b50 ldr r3, [pc, #320] @ (800096c <main+0x194>)
  680. 800082a: 695b ldr r3, [r3, #20]
  681. 800082c: f403 3380 and.w r3, r3, #65536 @ 0x10000
  682. 8000830: 2b00 cmp r3, #0
  683. 8000832: d138 bne.n 80008a6 <main+0xce>
  684. SCB->CSSELR = 0U; /* select Level 1 data cache */
  685. 8000834: 4b4d ldr r3, [pc, #308] @ (800096c <main+0x194>)
  686. 8000836: 2200 movs r2, #0
  687. 8000838: f8c3 2084 str.w r2, [r3, #132] @ 0x84
  688. __ASM volatile ("dsb 0xF":::"memory");
  689. 800083c: f3bf 8f4f dsb sy
  690. }
  691. 8000840: bf00 nop
  692. ccsidr = SCB->CCSIDR;
  693. 8000842: 4b4a ldr r3, [pc, #296] @ (800096c <main+0x194>)
  694. 8000844: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  695. 8000848: 60fb str r3, [r7, #12]
  696. sets = (uint32_t)(CCSIDR_SETS(ccsidr));
  697. 800084a: 68fb ldr r3, [r7, #12]
  698. 800084c: 0b5b lsrs r3, r3, #13
  699. 800084e: f3c3 030e ubfx r3, r3, #0, #15
  700. 8000852: 60bb str r3, [r7, #8]
  701. ways = (uint32_t)(CCSIDR_WAYS(ccsidr));
  702. 8000854: 68fb ldr r3, [r7, #12]
  703. 8000856: 08db lsrs r3, r3, #3
  704. 8000858: f3c3 0309 ubfx r3, r3, #0, #10
  705. 800085c: 607b str r3, [r7, #4]
  706. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  707. 800085e: 68bb ldr r3, [r7, #8]
  708. 8000860: 015a lsls r2, r3, #5
  709. 8000862: f643 73e0 movw r3, #16352 @ 0x3fe0
  710. 8000866: 4013 ands r3, r2
  711. ((ways << SCB_DCISW_WAY_Pos) & SCB_DCISW_WAY_Msk) );
  712. 8000868: 687a ldr r2, [r7, #4]
  713. 800086a: 0792 lsls r2, r2, #30
  714. SCB->DCISW = (((sets << SCB_DCISW_SET_Pos) & SCB_DCISW_SET_Msk) |
  715. 800086c: 493f ldr r1, [pc, #252] @ (800096c <main+0x194>)
  716. 800086e: 4313 orrs r3, r2
  717. 8000870: f8c1 3260 str.w r3, [r1, #608] @ 0x260
  718. } while (ways-- != 0U);
  719. 8000874: 687b ldr r3, [r7, #4]
  720. 8000876: 1e5a subs r2, r3, #1
  721. 8000878: 607a str r2, [r7, #4]
  722. 800087a: 2b00 cmp r3, #0
  723. 800087c: d1ef bne.n 800085e <main+0x86>
  724. } while(sets-- != 0U);
  725. 800087e: 68bb ldr r3, [r7, #8]
  726. 8000880: 1e5a subs r2, r3, #1
  727. 8000882: 60ba str r2, [r7, #8]
  728. 8000884: 2b00 cmp r3, #0
  729. 8000886: d1e5 bne.n 8000854 <main+0x7c>
  730. __ASM volatile ("dsb 0xF":::"memory");
  731. 8000888: f3bf 8f4f dsb sy
  732. }
  733. 800088c: bf00 nop
  734. SCB->CCR |= (uint32_t)SCB_CCR_DC_Msk; /* enable D-Cache */
  735. 800088e: 4b37 ldr r3, [pc, #220] @ (800096c <main+0x194>)
  736. 8000890: 695b ldr r3, [r3, #20]
  737. 8000892: 4a36 ldr r2, [pc, #216] @ (800096c <main+0x194>)
  738. 8000894: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  739. 8000898: 6153 str r3, [r2, #20]
  740. __ASM volatile ("dsb 0xF":::"memory");
  741. 800089a: f3bf 8f4f dsb sy
  742. }
  743. 800089e: bf00 nop
  744. __ASM volatile ("isb 0xF":::"memory");
  745. 80008a0: f3bf 8f6f isb sy
  746. }
  747. 80008a4: e000 b.n 80008a8 <main+0xd0>
  748. if (SCB->CCR & SCB_CCR_DC_Msk) return; /* return if DCache is already enabled */
  749. 80008a6: bf00 nop
  750. SCB_EnableDCache();
  751. /* MCU Configuration--------------------------------------------------------*/
  752. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  753. HAL_Init();
  754. 80008a8: f004 ffa8 bl 80057fc <HAL_Init>
  755. /* USER CODE BEGIN Init */
  756. /* USER CODE END Init */
  757. /* Configure the system clock */
  758. SystemClock_Config();
  759. 80008ac: f000 f880 bl 80009b0 <SystemClock_Config>
  760. /* Configure the peripherals common clocks */
  761. PeriphCommonClock_Config();
  762. 80008b0: f000 f8fc bl 8000aac <PeriphCommonClock_Config>
  763. /* USER CODE BEGIN SysInit */
  764. /* USER CODE END SysInit */
  765. /* Initialize all configured peripherals */
  766. MX_GPIO_Init();
  767. 80008b4: f000 fe84 bl 80015c0 <MX_GPIO_Init>
  768. MX_DMA_Init();
  769. 80008b8: f000 fe52 bl 8001560 <MX_DMA_Init>
  770. MX_RNG_Init();
  771. 80008bc: f000 fc02 bl 80010c4 <MX_RNG_Init>
  772. MX_USART1_UART_Init();
  773. 80008c0: f000 fdfe bl 80014c0 <MX_USART1_UART_Init>
  774. MX_ADC1_Init();
  775. 80008c4: f000 f922 bl 8000b0c <MX_ADC1_Init>
  776. MX_UART8_Init();
  777. 80008c8: f000 fdae bl 8001428 <MX_UART8_Init>
  778. MX_CRC_Init();
  779. 80008cc: f000 fb78 bl 8000fc0 <MX_CRC_Init>
  780. MX_ADC2_Init();
  781. 80008d0: f000 fa0a bl 8000ce8 <MX_ADC2_Init>
  782. MX_ADC3_Init();
  783. 80008d4: f000 fa94 bl 8000e00 <MX_ADC3_Init>
  784. MX_TIM1_Init();
  785. 80008d8: f000 fc0a bl 80010f0 <MX_TIM1_Init>
  786. MX_TIM3_Init();
  787. 80008dc: f000 fca4 bl 8001228 <MX_TIM3_Init>
  788. MX_DAC1_Init();
  789. 80008e0: f000 fb98 bl 8001014 <MX_DAC1_Init>
  790. MX_COMP1_Init();
  791. 80008e4: f000 fb3e bl 8000f64 <MX_COMP1_Init>
  792. MX_TIM8_Init();
  793. 80008e8: f000 fd4a bl 8001380 <MX_TIM8_Init>
  794. #ifdef WATCHDOG_ENABLED
  795. MX_IWDG1_Init();
  796. 80008ec: f000 fbce bl 800108c <MX_IWDG1_Init>
  797. #endif
  798. /* USER CODE BEGIN 2 */
  799. #ifdef WATCHDOG_ENABLED
  800. HAL_IWDG_Refresh(&hiwdg1);
  801. 80008f0: 481f ldr r0, [pc, #124] @ (8000970 <main+0x198>)
  802. 80008f2: f00a fd01 bl 800b2f8 <HAL_IWDG_Refresh>
  803. #endif
  804. /* USER CODE END 2 */
  805. /* Init scheduler */
  806. osKernelInitialize();
  807. 80008f6: f012 fde9 bl 80134cc <osKernelInitialize>
  808. /* add semaphores, ... */
  809. /* USER CODE END RTOS_SEMAPHORES */
  810. /* Create the timer(s) */
  811. /* creation of debugLedTimer */
  812. debugLedTimerHandle = osTimerNew(debugLedTimerCallback, osTimerOnce, NULL, &debugLedTimer_attributes);
  813. 80008fa: 4b1e ldr r3, [pc, #120] @ (8000974 <main+0x19c>)
  814. 80008fc: 2200 movs r2, #0
  815. 80008fe: 2100 movs r1, #0
  816. 8000900: 481d ldr r0, [pc, #116] @ (8000978 <main+0x1a0>)
  817. 8000902: f012 fef1 bl 80136e8 <osTimerNew>
  818. 8000906: 4603 mov r3, r0
  819. 8000908: 4a1c ldr r2, [pc, #112] @ (800097c <main+0x1a4>)
  820. 800090a: 6013 str r3, [r2, #0]
  821. /* creation of fanTimer */
  822. fanTimerHandle = osTimerNew(fanTimerCallback, osTimerOnce, NULL, &fanTimer_attributes);
  823. 800090c: 4b1c ldr r3, [pc, #112] @ (8000980 <main+0x1a8>)
  824. 800090e: 2200 movs r2, #0
  825. 8000910: 2100 movs r1, #0
  826. 8000912: 481c ldr r0, [pc, #112] @ (8000984 <main+0x1ac>)
  827. 8000914: f012 fee8 bl 80136e8 <osTimerNew>
  828. 8000918: 4603 mov r3, r0
  829. 800091a: 4a1b ldr r2, [pc, #108] @ (8000988 <main+0x1b0>)
  830. 800091c: 6013 str r3, [r2, #0]
  831. /* creation of motorXTimer */
  832. motorXTimerHandle = osTimerNew(motorXTimerCallback, osTimerPeriodic, NULL, &motorXTimer_attributes);
  833. 800091e: 4b1b ldr r3, [pc, #108] @ (800098c <main+0x1b4>)
  834. 8000920: 2200 movs r2, #0
  835. 8000922: 2101 movs r1, #1
  836. 8000924: 481a ldr r0, [pc, #104] @ (8000990 <main+0x1b8>)
  837. 8000926: f012 fedf bl 80136e8 <osTimerNew>
  838. 800092a: 4603 mov r3, r0
  839. 800092c: 4a19 ldr r2, [pc, #100] @ (8000994 <main+0x1bc>)
  840. 800092e: 6013 str r3, [r2, #0]
  841. /* creation of motorYTimer */
  842. motorYTimerHandle = osTimerNew(motorYTimerCallback, osTimerPeriodic, NULL, &motorYTimer_attributes);
  843. 8000930: 4b19 ldr r3, [pc, #100] @ (8000998 <main+0x1c0>)
  844. 8000932: 2200 movs r2, #0
  845. 8000934: 2101 movs r1, #1
  846. 8000936: 4819 ldr r0, [pc, #100] @ (800099c <main+0x1c4>)
  847. 8000938: f012 fed6 bl 80136e8 <osTimerNew>
  848. 800093c: 4603 mov r3, r0
  849. 800093e: 4a18 ldr r2, [pc, #96] @ (80009a0 <main+0x1c8>)
  850. 8000940: 6013 str r3, [r2, #0]
  851. /* add queues, ... */
  852. /* USER CODE END RTOS_QUEUES */
  853. /* Create the thread(s) */
  854. /* creation of defaultTask */
  855. defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
  856. 8000942: 4a18 ldr r2, [pc, #96] @ (80009a4 <main+0x1cc>)
  857. 8000944: 2100 movs r1, #0
  858. 8000946: 4818 ldr r0, [pc, #96] @ (80009a8 <main+0x1d0>)
  859. 8000948: f012 fe0a bl 8013560 <osThreadNew>
  860. 800094c: 4603 mov r3, r0
  861. 800094e: 4a17 ldr r2, [pc, #92] @ (80009ac <main+0x1d4>)
  862. 8000950: 6013 str r3, [r2, #0]
  863. /* USER CODE BEGIN RTOS_THREADS */
  864. /* add threads, ... */
  865. #ifdef WATCHDOG_ENABLED
  866. HAL_IWDG_Refresh(&hiwdg1);
  867. 8000952: 4807 ldr r0, [pc, #28] @ (8000970 <main+0x198>)
  868. 8000954: f00a fcd0 bl 800b2f8 <HAL_IWDG_Refresh>
  869. #endif
  870. UartTasksInit();
  871. 8000958: f003 fdf6 bl 8004548 <UartTasksInit>
  872. #ifdef USER_MOCKS
  873. MockMeasurmetsTaskInit();
  874. #else
  875. MeasTasksInit();
  876. 800095c: f001 f91c bl 8001b98 <MeasTasksInit>
  877. #endif
  878. PositionControlTaskInit();
  879. 8000960: f002 fa9e bl 8002ea0 <PositionControlTaskInit>
  880. /* USER CODE BEGIN RTOS_EVENTS */
  881. /* add events, ... */
  882. /* USER CODE END RTOS_EVENTS */
  883. /* Start scheduler */
  884. osKernelStart();
  885. 8000964: f012 fdd6 bl 8013514 <osKernelStart>
  886. /* We should never get here as control is now taken by the scheduler */
  887. /* Infinite loop */
  888. /* USER CODE BEGIN WHILE */
  889. while (1)
  890. 8000968: bf00 nop
  891. 800096a: e7fd b.n 8000968 <main+0x190>
  892. 800096c: e000ed00 .word 0xe000ed00
  893. 8000970: 24000578 .word 0x24000578
  894. 8000974: 0801a248 .word 0x0801a248
  895. 8000978: 080019d5 .word 0x080019d5
  896. 800097c: 240007ac .word 0x240007ac
  897. 8000980: 0801a258 .word 0x0801a258
  898. 8000984: 080019ed .word 0x080019ed
  899. 8000988: 240007dc .word 0x240007dc
  900. 800098c: 0801a268 .word 0x0801a268
  901. 8000990: 08001a09 .word 0x08001a09
  902. 8000994: 2400080c .word 0x2400080c
  903. 8000998: 0801a278 .word 0x0801a278
  904. 800099c: 08001a45 .word 0x08001a45
  905. 80009a0: 2400083c .word 0x2400083c
  906. 80009a4: 0801a224 .word 0x0801a224
  907. 80009a8: 080018a5 .word 0x080018a5
  908. 80009ac: 240007a8 .word 0x240007a8
  909. 080009b0 <SystemClock_Config>:
  910. /**
  911. * @brief System Clock Configuration
  912. * @retval None
  913. */
  914. void SystemClock_Config(void)
  915. {
  916. 80009b0: b580 push {r7, lr}
  917. 80009b2: b09c sub sp, #112 @ 0x70
  918. 80009b4: af00 add r7, sp, #0
  919. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  920. 80009b6: f107 0324 add.w r3, r7, #36 @ 0x24
  921. 80009ba: 224c movs r2, #76 @ 0x4c
  922. 80009bc: 2100 movs r1, #0
  923. 80009be: 4618 mov r0, r3
  924. 80009c0: f017 fd52 bl 8018468 <memset>
  925. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  926. 80009c4: 1d3b adds r3, r7, #4
  927. 80009c6: 2220 movs r2, #32
  928. 80009c8: 2100 movs r1, #0
  929. 80009ca: 4618 mov r0, r3
  930. 80009cc: f017 fd4c bl 8018468 <memset>
  931. /** Supply configuration update enable
  932. */
  933. HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);
  934. 80009d0: 2002 movs r0, #2
  935. 80009d2: f00a fd2b bl 800b42c <HAL_PWREx_ConfigSupply>
  936. /** Configure the main internal regulator output voltage
  937. */
  938. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  939. 80009d6: 2300 movs r3, #0
  940. 80009d8: 603b str r3, [r7, #0]
  941. 80009da: 4b32 ldr r3, [pc, #200] @ (8000aa4 <SystemClock_Config+0xf4>)
  942. 80009dc: 6adb ldr r3, [r3, #44] @ 0x2c
  943. 80009de: 4a31 ldr r2, [pc, #196] @ (8000aa4 <SystemClock_Config+0xf4>)
  944. 80009e0: f023 0301 bic.w r3, r3, #1
  945. 80009e4: 62d3 str r3, [r2, #44] @ 0x2c
  946. 80009e6: 4b2f ldr r3, [pc, #188] @ (8000aa4 <SystemClock_Config+0xf4>)
  947. 80009e8: 6adb ldr r3, [r3, #44] @ 0x2c
  948. 80009ea: f003 0301 and.w r3, r3, #1
  949. 80009ee: 603b str r3, [r7, #0]
  950. 80009f0: 4b2d ldr r3, [pc, #180] @ (8000aa8 <SystemClock_Config+0xf8>)
  951. 80009f2: 699b ldr r3, [r3, #24]
  952. 80009f4: 4a2c ldr r2, [pc, #176] @ (8000aa8 <SystemClock_Config+0xf8>)
  953. 80009f6: f443 4340 orr.w r3, r3, #49152 @ 0xc000
  954. 80009fa: 6193 str r3, [r2, #24]
  955. 80009fc: 4b2a ldr r3, [pc, #168] @ (8000aa8 <SystemClock_Config+0xf8>)
  956. 80009fe: 699b ldr r3, [r3, #24]
  957. 8000a00: f403 4340 and.w r3, r3, #49152 @ 0xc000
  958. 8000a04: 603b str r3, [r7, #0]
  959. 8000a06: 683b ldr r3, [r7, #0]
  960. while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
  961. 8000a08: bf00 nop
  962. 8000a0a: 4b27 ldr r3, [pc, #156] @ (8000aa8 <SystemClock_Config+0xf8>)
  963. 8000a0c: 699b ldr r3, [r3, #24]
  964. 8000a0e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  965. 8000a12: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  966. 8000a16: d1f8 bne.n 8000a0a <SystemClock_Config+0x5a>
  967. /** Initializes the RCC Oscillators according to the specified parameters
  968. * in the RCC_OscInitTypeDef structure.
  969. */
  970. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_LSI
  971. 8000a18: 2329 movs r3, #41 @ 0x29
  972. 8000a1a: 627b str r3, [r7, #36] @ 0x24
  973. |RCC_OSCILLATORTYPE_HSE;
  974. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  975. 8000a1c: f44f 3380 mov.w r3, #65536 @ 0x10000
  976. 8000a20: 62bb str r3, [r7, #40] @ 0x28
  977. RCC_OscInitStruct.LSIState = RCC_LSI_ON;
  978. 8000a22: 2301 movs r3, #1
  979. 8000a24: 63bb str r3, [r7, #56] @ 0x38
  980. RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
  981. 8000a26: 2301 movs r3, #1
  982. 8000a28: 63fb str r3, [r7, #60] @ 0x3c
  983. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  984. 8000a2a: 2302 movs r3, #2
  985. 8000a2c: 64bb str r3, [r7, #72] @ 0x48
  986. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  987. 8000a2e: 2302 movs r3, #2
  988. 8000a30: 64fb str r3, [r7, #76] @ 0x4c
  989. RCC_OscInitStruct.PLL.PLLM = 5;
  990. 8000a32: 2305 movs r3, #5
  991. 8000a34: 653b str r3, [r7, #80] @ 0x50
  992. RCC_OscInitStruct.PLL.PLLN = 160;
  993. 8000a36: 23a0 movs r3, #160 @ 0xa0
  994. 8000a38: 657b str r3, [r7, #84] @ 0x54
  995. RCC_OscInitStruct.PLL.PLLP = 2;
  996. 8000a3a: 2302 movs r3, #2
  997. 8000a3c: 65bb str r3, [r7, #88] @ 0x58
  998. RCC_OscInitStruct.PLL.PLLQ = 2;
  999. 8000a3e: 2302 movs r3, #2
  1000. 8000a40: 65fb str r3, [r7, #92] @ 0x5c
  1001. RCC_OscInitStruct.PLL.PLLR = 2;
  1002. 8000a42: 2302 movs r3, #2
  1003. 8000a44: 663b str r3, [r7, #96] @ 0x60
  1004. RCC_OscInitStruct.PLL.PLLRGE = RCC_PLL1VCIRANGE_2;
  1005. 8000a46: 2308 movs r3, #8
  1006. 8000a48: 667b str r3, [r7, #100] @ 0x64
  1007. RCC_OscInitStruct.PLL.PLLVCOSEL = RCC_PLL1VCOWIDE;
  1008. 8000a4a: 2300 movs r3, #0
  1009. 8000a4c: 66bb str r3, [r7, #104] @ 0x68
  1010. RCC_OscInitStruct.PLL.PLLFRACN = 0;
  1011. 8000a4e: 2300 movs r3, #0
  1012. 8000a50: 66fb str r3, [r7, #108] @ 0x6c
  1013. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  1014. 8000a52: f107 0324 add.w r3, r7, #36 @ 0x24
  1015. 8000a56: 4618 mov r0, r3
  1016. 8000a58: f00a fda8 bl 800b5ac <HAL_RCC_OscConfig>
  1017. 8000a5c: 4603 mov r3, r0
  1018. 8000a5e: 2b00 cmp r3, #0
  1019. 8000a60: d001 beq.n 8000a66 <SystemClock_Config+0xb6>
  1020. {
  1021. Error_Handler();
  1022. 8000a62: f001 f893 bl 8001b8c <Error_Handler>
  1023. }
  1024. /** Initializes the CPU, AHB and APB buses clocks
  1025. */
  1026. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  1027. 8000a66: 233f movs r3, #63 @ 0x3f
  1028. 8000a68: 607b str r3, [r7, #4]
  1029. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2
  1030. |RCC_CLOCKTYPE_D3PCLK1|RCC_CLOCKTYPE_D1PCLK1;
  1031. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  1032. 8000a6a: 2303 movs r3, #3
  1033. 8000a6c: 60bb str r3, [r7, #8]
  1034. RCC_ClkInitStruct.SYSCLKDivider = RCC_SYSCLK_DIV1;
  1035. 8000a6e: 2300 movs r3, #0
  1036. 8000a70: 60fb str r3, [r7, #12]
  1037. RCC_ClkInitStruct.AHBCLKDivider = RCC_HCLK_DIV2;
  1038. 8000a72: 2308 movs r3, #8
  1039. 8000a74: 613b str r3, [r7, #16]
  1040. RCC_ClkInitStruct.APB3CLKDivider = RCC_APB3_DIV2;
  1041. 8000a76: 2340 movs r3, #64 @ 0x40
  1042. 8000a78: 617b str r3, [r7, #20]
  1043. RCC_ClkInitStruct.APB1CLKDivider = RCC_APB1_DIV2;
  1044. 8000a7a: 2340 movs r3, #64 @ 0x40
  1045. 8000a7c: 61bb str r3, [r7, #24]
  1046. RCC_ClkInitStruct.APB2CLKDivider = RCC_APB2_DIV2;
  1047. 8000a7e: f44f 6380 mov.w r3, #1024 @ 0x400
  1048. 8000a82: 61fb str r3, [r7, #28]
  1049. RCC_ClkInitStruct.APB4CLKDivider = RCC_APB4_DIV2;
  1050. 8000a84: 2340 movs r3, #64 @ 0x40
  1051. 8000a86: 623b str r3, [r7, #32]
  1052. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
  1053. 8000a88: 1d3b adds r3, r7, #4
  1054. 8000a8a: 2102 movs r1, #2
  1055. 8000a8c: 4618 mov r0, r3
  1056. 8000a8e: f00b f9e7 bl 800be60 <HAL_RCC_ClockConfig>
  1057. 8000a92: 4603 mov r3, r0
  1058. 8000a94: 2b00 cmp r3, #0
  1059. 8000a96: d001 beq.n 8000a9c <SystemClock_Config+0xec>
  1060. {
  1061. Error_Handler();
  1062. 8000a98: f001 f878 bl 8001b8c <Error_Handler>
  1063. }
  1064. }
  1065. 8000a9c: bf00 nop
  1066. 8000a9e: 3770 adds r7, #112 @ 0x70
  1067. 8000aa0: 46bd mov sp, r7
  1068. 8000aa2: bd80 pop {r7, pc}
  1069. 8000aa4: 58000400 .word 0x58000400
  1070. 8000aa8: 58024800 .word 0x58024800
  1071. 08000aac <PeriphCommonClock_Config>:
  1072. /**
  1073. * @brief Peripherals Common Clock Configuration
  1074. * @retval None
  1075. */
  1076. void PeriphCommonClock_Config(void)
  1077. {
  1078. 8000aac: b580 push {r7, lr}
  1079. 8000aae: b0b0 sub sp, #192 @ 0xc0
  1080. 8000ab0: af00 add r7, sp, #0
  1081. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  1082. 8000ab2: 463b mov r3, r7
  1083. 8000ab4: 22c0 movs r2, #192 @ 0xc0
  1084. 8000ab6: 2100 movs r1, #0
  1085. 8000ab8: 4618 mov r0, r3
  1086. 8000aba: f017 fcd5 bl 8018468 <memset>
  1087. /** Initializes the peripherals clock
  1088. */
  1089. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_ADC;
  1090. 8000abe: f44f 2200 mov.w r2, #524288 @ 0x80000
  1091. 8000ac2: f04f 0300 mov.w r3, #0
  1092. 8000ac6: e9c7 2300 strd r2, r3, [r7]
  1093. PeriphClkInitStruct.PLL2.PLL2M = 5;
  1094. 8000aca: 2305 movs r3, #5
  1095. 8000acc: 60bb str r3, [r7, #8]
  1096. PeriphClkInitStruct.PLL2.PLL2N = 90;
  1097. 8000ace: 235a movs r3, #90 @ 0x5a
  1098. 8000ad0: 60fb str r3, [r7, #12]
  1099. PeriphClkInitStruct.PLL2.PLL2P = 25;
  1100. 8000ad2: 2319 movs r3, #25
  1101. 8000ad4: 613b str r3, [r7, #16]
  1102. PeriphClkInitStruct.PLL2.PLL2Q = 3;
  1103. 8000ad6: 2303 movs r3, #3
  1104. 8000ad8: 617b str r3, [r7, #20]
  1105. PeriphClkInitStruct.PLL2.PLL2R = 2;
  1106. 8000ada: 2302 movs r3, #2
  1107. 8000adc: 61bb str r3, [r7, #24]
  1108. PeriphClkInitStruct.PLL2.PLL2RGE = RCC_PLL2VCIRANGE_2;
  1109. 8000ade: 2380 movs r3, #128 @ 0x80
  1110. 8000ae0: 61fb str r3, [r7, #28]
  1111. PeriphClkInitStruct.PLL2.PLL2VCOSEL = RCC_PLL2VCOWIDE;
  1112. 8000ae2: 2300 movs r3, #0
  1113. 8000ae4: 623b str r3, [r7, #32]
  1114. PeriphClkInitStruct.PLL2.PLL2FRACN = 0;
  1115. 8000ae6: 2300 movs r3, #0
  1116. 8000ae8: 627b str r3, [r7, #36] @ 0x24
  1117. PeriphClkInitStruct.AdcClockSelection = RCC_ADCCLKSOURCE_PLL2;
  1118. 8000aea: 2300 movs r3, #0
  1119. 8000aec: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  1120. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  1121. 8000af0: 463b mov r3, r7
  1122. 8000af2: 4618 mov r0, r3
  1123. 8000af4: f00b fd82 bl 800c5fc <HAL_RCCEx_PeriphCLKConfig>
  1124. 8000af8: 4603 mov r3, r0
  1125. 8000afa: 2b00 cmp r3, #0
  1126. 8000afc: d001 beq.n 8000b02 <PeriphCommonClock_Config+0x56>
  1127. {
  1128. Error_Handler();
  1129. 8000afe: f001 f845 bl 8001b8c <Error_Handler>
  1130. }
  1131. }
  1132. 8000b02: bf00 nop
  1133. 8000b04: 37c0 adds r7, #192 @ 0xc0
  1134. 8000b06: 46bd mov sp, r7
  1135. 8000b08: bd80 pop {r7, pc}
  1136. ...
  1137. 08000b0c <MX_ADC1_Init>:
  1138. * @brief ADC1 Initialization Function
  1139. * @param None
  1140. * @retval None
  1141. */
  1142. static void MX_ADC1_Init(void)
  1143. {
  1144. 8000b0c: b580 push {r7, lr}
  1145. 8000b0e: b08a sub sp, #40 @ 0x28
  1146. 8000b10: af00 add r7, sp, #0
  1147. /* USER CODE BEGIN ADC1_Init 0 */
  1148. /* USER CODE END ADC1_Init 0 */
  1149. ADC_MultiModeTypeDef multimode = {0};
  1150. 8000b12: f107 031c add.w r3, r7, #28
  1151. 8000b16: 2200 movs r2, #0
  1152. 8000b18: 601a str r2, [r3, #0]
  1153. 8000b1a: 605a str r2, [r3, #4]
  1154. 8000b1c: 609a str r2, [r3, #8]
  1155. ADC_ChannelConfTypeDef sConfig = {0};
  1156. 8000b1e: 463b mov r3, r7
  1157. 8000b20: 2200 movs r2, #0
  1158. 8000b22: 601a str r2, [r3, #0]
  1159. 8000b24: 605a str r2, [r3, #4]
  1160. 8000b26: 609a str r2, [r3, #8]
  1161. 8000b28: 60da str r2, [r3, #12]
  1162. 8000b2a: 611a str r2, [r3, #16]
  1163. 8000b2c: 615a str r2, [r3, #20]
  1164. 8000b2e: 619a str r2, [r3, #24]
  1165. /* USER CODE END ADC1_Init 1 */
  1166. /** Common config
  1167. */
  1168. hadc1.Instance = ADC1;
  1169. 8000b30: 4b64 ldr r3, [pc, #400] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1170. 8000b32: 4a65 ldr r2, [pc, #404] @ (8000cc8 <MX_ADC1_Init+0x1bc>)
  1171. 8000b34: 601a str r2, [r3, #0]
  1172. hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1173. 8000b36: 4b63 ldr r3, [pc, #396] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1174. 8000b38: 2200 movs r2, #0
  1175. 8000b3a: 605a str r2, [r3, #4]
  1176. hadc1.Init.Resolution = ADC_RESOLUTION_16B;
  1177. 8000b3c: 4b61 ldr r3, [pc, #388] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1178. 8000b3e: 2200 movs r2, #0
  1179. 8000b40: 609a str r2, [r3, #8]
  1180. hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1181. 8000b42: 4b60 ldr r3, [pc, #384] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1182. 8000b44: 2201 movs r2, #1
  1183. 8000b46: 60da str r2, [r3, #12]
  1184. hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
  1185. 8000b48: 4b5e ldr r3, [pc, #376] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1186. 8000b4a: 2204 movs r2, #4
  1187. 8000b4c: 611a str r2, [r3, #16]
  1188. hadc1.Init.LowPowerAutoWait = DISABLE;
  1189. 8000b4e: 4b5d ldr r3, [pc, #372] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1190. 8000b50: 2200 movs r2, #0
  1191. 8000b52: 751a strb r2, [r3, #20]
  1192. hadc1.Init.ContinuousConvMode = ENABLE;
  1193. 8000b54: 4b5b ldr r3, [pc, #364] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1194. 8000b56: 2201 movs r2, #1
  1195. 8000b58: 755a strb r2, [r3, #21]
  1196. hadc1.Init.NbrOfConversion = 7;
  1197. 8000b5a: 4b5a ldr r3, [pc, #360] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1198. 8000b5c: 2207 movs r2, #7
  1199. 8000b5e: 619a str r2, [r3, #24]
  1200. hadc1.Init.DiscontinuousConvMode = DISABLE;
  1201. 8000b60: 4b58 ldr r3, [pc, #352] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1202. 8000b62: 2200 movs r2, #0
  1203. 8000b64: 771a strb r2, [r3, #28]
  1204. hadc1.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1205. 8000b66: 4b57 ldr r3, [pc, #348] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1206. 8000b68: f44f 629c mov.w r2, #1248 @ 0x4e0
  1207. 8000b6c: 625a str r2, [r3, #36] @ 0x24
  1208. hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1209. 8000b6e: 4b55 ldr r3, [pc, #340] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1210. 8000b70: f44f 6280 mov.w r2, #1024 @ 0x400
  1211. 8000b74: 629a str r2, [r3, #40] @ 0x28
  1212. hadc1.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1213. 8000b76: 4b53 ldr r3, [pc, #332] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1214. 8000b78: 2201 movs r2, #1
  1215. 8000b7a: 62da str r2, [r3, #44] @ 0x2c
  1216. hadc1.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1217. 8000b7c: 4b51 ldr r3, [pc, #324] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1218. 8000b7e: 2200 movs r2, #0
  1219. 8000b80: 631a str r2, [r3, #48] @ 0x30
  1220. hadc1.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1221. 8000b82: 4b50 ldr r3, [pc, #320] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1222. 8000b84: 2200 movs r2, #0
  1223. 8000b86: 635a str r2, [r3, #52] @ 0x34
  1224. hadc1.Init.OversamplingMode = DISABLE;
  1225. 8000b88: 4b4e ldr r3, [pc, #312] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1226. 8000b8a: 2200 movs r2, #0
  1227. 8000b8c: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1228. if (HAL_ADC_Init(&hadc1) != HAL_OK)
  1229. 8000b90: 484c ldr r0, [pc, #304] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1230. 8000b92: f005 f8e3 bl 8005d5c <HAL_ADC_Init>
  1231. 8000b96: 4603 mov r3, r0
  1232. 8000b98: 2b00 cmp r3, #0
  1233. 8000b9a: d001 beq.n 8000ba0 <MX_ADC1_Init+0x94>
  1234. {
  1235. Error_Handler();
  1236. 8000b9c: f000 fff6 bl 8001b8c <Error_Handler>
  1237. }
  1238. /** Configure the ADC multi-mode
  1239. */
  1240. multimode.Mode = ADC_DUALMODE_REGSIMULT;
  1241. 8000ba0: 2306 movs r3, #6
  1242. 8000ba2: 61fb str r3, [r7, #28]
  1243. multimode.DualModeData = ADC_DUALMODEDATAFORMAT_32_10_BITS;
  1244. 8000ba4: f44f 4300 mov.w r3, #32768 @ 0x8000
  1245. 8000ba8: 623b str r3, [r7, #32]
  1246. multimode.TwoSamplingDelay = ADC_TWOSAMPLINGDELAY_1CYCLE;
  1247. 8000baa: 2300 movs r3, #0
  1248. 8000bac: 627b str r3, [r7, #36] @ 0x24
  1249. if (HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode) != HAL_OK)
  1250. 8000bae: f107 031c add.w r3, r7, #28
  1251. 8000bb2: 4619 mov r1, r3
  1252. 8000bb4: 4843 ldr r0, [pc, #268] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1253. 8000bb6: f006 fae1 bl 800717c <HAL_ADCEx_MultiModeConfigChannel>
  1254. 8000bba: 4603 mov r3, r0
  1255. 8000bbc: 2b00 cmp r3, #0
  1256. 8000bbe: d001 beq.n 8000bc4 <MX_ADC1_Init+0xb8>
  1257. {
  1258. Error_Handler();
  1259. 8000bc0: f000 ffe4 bl 8001b8c <Error_Handler>
  1260. }
  1261. /** Configure Regular Channel
  1262. */
  1263. sConfig.Channel = ADC_CHANNEL_8;
  1264. 8000bc4: 4b41 ldr r3, [pc, #260] @ (8000ccc <MX_ADC1_Init+0x1c0>)
  1265. 8000bc6: 603b str r3, [r7, #0]
  1266. sConfig.Rank = ADC_REGULAR_RANK_1;
  1267. 8000bc8: 2306 movs r3, #6
  1268. 8000bca: 607b str r3, [r7, #4]
  1269. sConfig.SamplingTime = ADC_SAMPLETIME_1CYCLE_5;
  1270. 8000bcc: 2300 movs r3, #0
  1271. 8000bce: 60bb str r3, [r7, #8]
  1272. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1273. 8000bd0: f240 73ff movw r3, #2047 @ 0x7ff
  1274. 8000bd4: 60fb str r3, [r7, #12]
  1275. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1276. 8000bd6: 2304 movs r3, #4
  1277. 8000bd8: 613b str r3, [r7, #16]
  1278. sConfig.Offset = 0;
  1279. 8000bda: 2300 movs r3, #0
  1280. 8000bdc: 617b str r3, [r7, #20]
  1281. sConfig.OffsetSignedSaturation = DISABLE;
  1282. 8000bde: 2300 movs r3, #0
  1283. 8000be0: 767b strb r3, [r7, #25]
  1284. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1285. 8000be2: 463b mov r3, r7
  1286. 8000be4: 4619 mov r1, r3
  1287. 8000be6: 4837 ldr r0, [pc, #220] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1288. 8000be8: f005 fb32 bl 8006250 <HAL_ADC_ConfigChannel>
  1289. 8000bec: 4603 mov r3, r0
  1290. 8000bee: 2b00 cmp r3, #0
  1291. 8000bf0: d001 beq.n 8000bf6 <MX_ADC1_Init+0xea>
  1292. {
  1293. Error_Handler();
  1294. 8000bf2: f000 ffcb bl 8001b8c <Error_Handler>
  1295. }
  1296. /** Configure Regular Channel
  1297. */
  1298. sConfig.Channel = ADC_CHANNEL_9;
  1299. 8000bf6: 4b36 ldr r3, [pc, #216] @ (8000cd0 <MX_ADC1_Init+0x1c4>)
  1300. 8000bf8: 603b str r3, [r7, #0]
  1301. sConfig.Rank = ADC_REGULAR_RANK_2;
  1302. 8000bfa: 230c movs r3, #12
  1303. 8000bfc: 607b str r3, [r7, #4]
  1304. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1305. 8000bfe: 463b mov r3, r7
  1306. 8000c00: 4619 mov r1, r3
  1307. 8000c02: 4830 ldr r0, [pc, #192] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1308. 8000c04: f005 fb24 bl 8006250 <HAL_ADC_ConfigChannel>
  1309. 8000c08: 4603 mov r3, r0
  1310. 8000c0a: 2b00 cmp r3, #0
  1311. 8000c0c: d001 beq.n 8000c12 <MX_ADC1_Init+0x106>
  1312. {
  1313. Error_Handler();
  1314. 8000c0e: f000 ffbd bl 8001b8c <Error_Handler>
  1315. }
  1316. /** Configure Regular Channel
  1317. */
  1318. sConfig.Channel = ADC_CHANNEL_7;
  1319. 8000c12: 4b30 ldr r3, [pc, #192] @ (8000cd4 <MX_ADC1_Init+0x1c8>)
  1320. 8000c14: 603b str r3, [r7, #0]
  1321. sConfig.Rank = ADC_REGULAR_RANK_3;
  1322. 8000c16: 2312 movs r3, #18
  1323. 8000c18: 607b str r3, [r7, #4]
  1324. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1325. 8000c1a: 463b mov r3, r7
  1326. 8000c1c: 4619 mov r1, r3
  1327. 8000c1e: 4829 ldr r0, [pc, #164] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1328. 8000c20: f005 fb16 bl 8006250 <HAL_ADC_ConfigChannel>
  1329. 8000c24: 4603 mov r3, r0
  1330. 8000c26: 2b00 cmp r3, #0
  1331. 8000c28: d001 beq.n 8000c2e <MX_ADC1_Init+0x122>
  1332. {
  1333. Error_Handler();
  1334. 8000c2a: f000 ffaf bl 8001b8c <Error_Handler>
  1335. }
  1336. /** Configure Regular Channel
  1337. */
  1338. sConfig.Channel = ADC_CHANNEL_16;
  1339. 8000c2e: 4b2a ldr r3, [pc, #168] @ (8000cd8 <MX_ADC1_Init+0x1cc>)
  1340. 8000c30: 603b str r3, [r7, #0]
  1341. sConfig.Rank = ADC_REGULAR_RANK_4;
  1342. 8000c32: 2318 movs r3, #24
  1343. 8000c34: 607b str r3, [r7, #4]
  1344. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1345. 8000c36: 463b mov r3, r7
  1346. 8000c38: 4619 mov r1, r3
  1347. 8000c3a: 4822 ldr r0, [pc, #136] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1348. 8000c3c: f005 fb08 bl 8006250 <HAL_ADC_ConfigChannel>
  1349. 8000c40: 4603 mov r3, r0
  1350. 8000c42: 2b00 cmp r3, #0
  1351. 8000c44: d001 beq.n 8000c4a <MX_ADC1_Init+0x13e>
  1352. {
  1353. Error_Handler();
  1354. 8000c46: f000 ffa1 bl 8001b8c <Error_Handler>
  1355. }
  1356. /** Configure Regular Channel
  1357. */
  1358. sConfig.Channel = ADC_CHANNEL_17;
  1359. 8000c4a: 4b24 ldr r3, [pc, #144] @ (8000cdc <MX_ADC1_Init+0x1d0>)
  1360. 8000c4c: 603b str r3, [r7, #0]
  1361. sConfig.Rank = ADC_REGULAR_RANK_5;
  1362. 8000c4e: f44f 7380 mov.w r3, #256 @ 0x100
  1363. 8000c52: 607b str r3, [r7, #4]
  1364. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1365. 8000c54: 463b mov r3, r7
  1366. 8000c56: 4619 mov r1, r3
  1367. 8000c58: 481a ldr r0, [pc, #104] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1368. 8000c5a: f005 faf9 bl 8006250 <HAL_ADC_ConfigChannel>
  1369. 8000c5e: 4603 mov r3, r0
  1370. 8000c60: 2b00 cmp r3, #0
  1371. 8000c62: d001 beq.n 8000c68 <MX_ADC1_Init+0x15c>
  1372. {
  1373. Error_Handler();
  1374. 8000c64: f000 ff92 bl 8001b8c <Error_Handler>
  1375. }
  1376. /** Configure Regular Channel
  1377. */
  1378. sConfig.Channel = ADC_CHANNEL_14;
  1379. 8000c68: 4b1d ldr r3, [pc, #116] @ (8000ce0 <MX_ADC1_Init+0x1d4>)
  1380. 8000c6a: 603b str r3, [r7, #0]
  1381. sConfig.Rank = ADC_REGULAR_RANK_6;
  1382. 8000c6c: f44f 7383 mov.w r3, #262 @ 0x106
  1383. 8000c70: 607b str r3, [r7, #4]
  1384. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1385. 8000c72: 463b mov r3, r7
  1386. 8000c74: 4619 mov r1, r3
  1387. 8000c76: 4813 ldr r0, [pc, #76] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1388. 8000c78: f005 faea bl 8006250 <HAL_ADC_ConfigChannel>
  1389. 8000c7c: 4603 mov r3, r0
  1390. 8000c7e: 2b00 cmp r3, #0
  1391. 8000c80: d001 beq.n 8000c86 <MX_ADC1_Init+0x17a>
  1392. {
  1393. Error_Handler();
  1394. 8000c82: f000 ff83 bl 8001b8c <Error_Handler>
  1395. }
  1396. /** Configure Regular Channel
  1397. */
  1398. sConfig.Channel = ADC_CHANNEL_15;
  1399. 8000c86: 4b17 ldr r3, [pc, #92] @ (8000ce4 <MX_ADC1_Init+0x1d8>)
  1400. 8000c88: 603b str r3, [r7, #0]
  1401. sConfig.Rank = ADC_REGULAR_RANK_7;
  1402. 8000c8a: f44f 7386 mov.w r3, #268 @ 0x10c
  1403. 8000c8e: 607b str r3, [r7, #4]
  1404. if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  1405. 8000c90: 463b mov r3, r7
  1406. 8000c92: 4619 mov r1, r3
  1407. 8000c94: 480b ldr r0, [pc, #44] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1408. 8000c96: f005 fadb bl 8006250 <HAL_ADC_ConfigChannel>
  1409. 8000c9a: 4603 mov r3, r0
  1410. 8000c9c: 2b00 cmp r3, #0
  1411. 8000c9e: d001 beq.n 8000ca4 <MX_ADC1_Init+0x198>
  1412. {
  1413. Error_Handler();
  1414. 8000ca0: f000 ff74 bl 8001b8c <Error_Handler>
  1415. }
  1416. /* USER CODE BEGIN ADC1_Init 2 */
  1417. if (HAL_ADCEx_Calibration_Start(&hadc1, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1418. 8000ca4: f240 72ff movw r2, #2047 @ 0x7ff
  1419. 8000ca8: f04f 1101 mov.w r1, #65537 @ 0x10001
  1420. 8000cac: 4805 ldr r0, [pc, #20] @ (8000cc4 <MX_ADC1_Init+0x1b8>)
  1421. 8000cae: f006 f923 bl 8006ef8 <HAL_ADCEx_Calibration_Start>
  1422. 8000cb2: 4603 mov r3, r0
  1423. 8000cb4: 2b00 cmp r3, #0
  1424. 8000cb6: d001 beq.n 8000cbc <MX_ADC1_Init+0x1b0>
  1425. {
  1426. Error_Handler();
  1427. 8000cb8: f000 ff68 bl 8001b8c <Error_Handler>
  1428. }
  1429. /* USER CODE END ADC1_Init 2 */
  1430. }
  1431. 8000cbc: bf00 nop
  1432. 8000cbe: 3728 adds r7, #40 @ 0x28
  1433. 8000cc0: 46bd mov sp, r7
  1434. 8000cc2: bd80 pop {r7, pc}
  1435. 8000cc4: 24000280 .word 0x24000280
  1436. 8000cc8: 40022000 .word 0x40022000
  1437. 8000ccc: 21800100 .word 0x21800100
  1438. 8000cd0: 25b00200 .word 0x25b00200
  1439. 8000cd4: 1d500080 .word 0x1d500080
  1440. 8000cd8: 43210000 .word 0x43210000
  1441. 8000cdc: 47520000 .word 0x47520000
  1442. 8000ce0: 3ac04000 .word 0x3ac04000
  1443. 8000ce4: 3ef08000 .word 0x3ef08000
  1444. 08000ce8 <MX_ADC2_Init>:
  1445. * @brief ADC2 Initialization Function
  1446. * @param None
  1447. * @retval None
  1448. */
  1449. static void MX_ADC2_Init(void)
  1450. {
  1451. 8000ce8: b580 push {r7, lr}
  1452. 8000cea: b088 sub sp, #32
  1453. 8000cec: af00 add r7, sp, #0
  1454. /* USER CODE BEGIN ADC2_Init 0 */
  1455. /* USER CODE END ADC2_Init 0 */
  1456. ADC_ChannelConfTypeDef sConfig = {0};
  1457. 8000cee: 1d3b adds r3, r7, #4
  1458. 8000cf0: 2200 movs r2, #0
  1459. 8000cf2: 601a str r2, [r3, #0]
  1460. 8000cf4: 605a str r2, [r3, #4]
  1461. 8000cf6: 609a str r2, [r3, #8]
  1462. 8000cf8: 60da str r2, [r3, #12]
  1463. 8000cfa: 611a str r2, [r3, #16]
  1464. 8000cfc: 615a str r2, [r3, #20]
  1465. 8000cfe: 619a str r2, [r3, #24]
  1466. /* USER CODE END ADC2_Init 1 */
  1467. /** Common config
  1468. */
  1469. hadc2.Instance = ADC2;
  1470. 8000d00: 4b3a ldr r3, [pc, #232] @ (8000dec <MX_ADC2_Init+0x104>)
  1471. 8000d02: 4a3b ldr r2, [pc, #236] @ (8000df0 <MX_ADC2_Init+0x108>)
  1472. 8000d04: 601a str r2, [r3, #0]
  1473. hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1474. 8000d06: 4b39 ldr r3, [pc, #228] @ (8000dec <MX_ADC2_Init+0x104>)
  1475. 8000d08: 2200 movs r2, #0
  1476. 8000d0a: 605a str r2, [r3, #4]
  1477. hadc2.Init.Resolution = ADC_RESOLUTION_16B;
  1478. 8000d0c: 4b37 ldr r3, [pc, #220] @ (8000dec <MX_ADC2_Init+0x104>)
  1479. 8000d0e: 2200 movs r2, #0
  1480. 8000d10: 609a str r2, [r3, #8]
  1481. hadc2.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1482. 8000d12: 4b36 ldr r3, [pc, #216] @ (8000dec <MX_ADC2_Init+0x104>)
  1483. 8000d14: 2201 movs r2, #1
  1484. 8000d16: 60da str r2, [r3, #12]
  1485. hadc2.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
  1486. 8000d18: 4b34 ldr r3, [pc, #208] @ (8000dec <MX_ADC2_Init+0x104>)
  1487. 8000d1a: 2204 movs r2, #4
  1488. 8000d1c: 611a str r2, [r3, #16]
  1489. hadc2.Init.LowPowerAutoWait = DISABLE;
  1490. 8000d1e: 4b33 ldr r3, [pc, #204] @ (8000dec <MX_ADC2_Init+0x104>)
  1491. 8000d20: 2200 movs r2, #0
  1492. 8000d22: 751a strb r2, [r3, #20]
  1493. hadc2.Init.ContinuousConvMode = ENABLE;
  1494. 8000d24: 4b31 ldr r3, [pc, #196] @ (8000dec <MX_ADC2_Init+0x104>)
  1495. 8000d26: 2201 movs r2, #1
  1496. 8000d28: 755a strb r2, [r3, #21]
  1497. hadc2.Init.NbrOfConversion = 3;
  1498. 8000d2a: 4b30 ldr r3, [pc, #192] @ (8000dec <MX_ADC2_Init+0x104>)
  1499. 8000d2c: 2203 movs r2, #3
  1500. 8000d2e: 619a str r2, [r3, #24]
  1501. hadc2.Init.DiscontinuousConvMode = DISABLE;
  1502. 8000d30: 4b2e ldr r3, [pc, #184] @ (8000dec <MX_ADC2_Init+0x104>)
  1503. 8000d32: 2200 movs r2, #0
  1504. 8000d34: 771a strb r2, [r3, #28]
  1505. hadc2.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1506. 8000d36: 4b2d ldr r3, [pc, #180] @ (8000dec <MX_ADC2_Init+0x104>)
  1507. 8000d38: 2201 movs r2, #1
  1508. 8000d3a: 62da str r2, [r3, #44] @ 0x2c
  1509. hadc2.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1510. 8000d3c: 4b2b ldr r3, [pc, #172] @ (8000dec <MX_ADC2_Init+0x104>)
  1511. 8000d3e: 2200 movs r2, #0
  1512. 8000d40: 631a str r2, [r3, #48] @ 0x30
  1513. hadc2.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1514. 8000d42: 4b2a ldr r3, [pc, #168] @ (8000dec <MX_ADC2_Init+0x104>)
  1515. 8000d44: 2200 movs r2, #0
  1516. 8000d46: 635a str r2, [r3, #52] @ 0x34
  1517. hadc2.Init.OversamplingMode = DISABLE;
  1518. 8000d48: 4b28 ldr r3, [pc, #160] @ (8000dec <MX_ADC2_Init+0x104>)
  1519. 8000d4a: 2200 movs r2, #0
  1520. 8000d4c: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1521. if (HAL_ADC_Init(&hadc2) != HAL_OK)
  1522. 8000d50: 4826 ldr r0, [pc, #152] @ (8000dec <MX_ADC2_Init+0x104>)
  1523. 8000d52: f005 f803 bl 8005d5c <HAL_ADC_Init>
  1524. 8000d56: 4603 mov r3, r0
  1525. 8000d58: 2b00 cmp r3, #0
  1526. 8000d5a: d001 beq.n 8000d60 <MX_ADC2_Init+0x78>
  1527. {
  1528. Error_Handler();
  1529. 8000d5c: f000 ff16 bl 8001b8c <Error_Handler>
  1530. }
  1531. /** Configure Regular Channel
  1532. */
  1533. sConfig.Channel = ADC_CHANNEL_3;
  1534. 8000d60: 4b24 ldr r3, [pc, #144] @ (8000df4 <MX_ADC2_Init+0x10c>)
  1535. 8000d62: 607b str r3, [r7, #4]
  1536. sConfig.Rank = ADC_REGULAR_RANK_1;
  1537. 8000d64: 2306 movs r3, #6
  1538. 8000d66: 60bb str r3, [r7, #8]
  1539. sConfig.SamplingTime = ADC_SAMPLETIME_1CYCLE_5;
  1540. 8000d68: 2300 movs r3, #0
  1541. 8000d6a: 60fb str r3, [r7, #12]
  1542. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1543. 8000d6c: f240 73ff movw r3, #2047 @ 0x7ff
  1544. 8000d70: 613b str r3, [r7, #16]
  1545. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1546. 8000d72: 2304 movs r3, #4
  1547. 8000d74: 617b str r3, [r7, #20]
  1548. sConfig.Offset = 0;
  1549. 8000d76: 2300 movs r3, #0
  1550. 8000d78: 61bb str r3, [r7, #24]
  1551. sConfig.OffsetSignedSaturation = DISABLE;
  1552. 8000d7a: 2300 movs r3, #0
  1553. 8000d7c: 777b strb r3, [r7, #29]
  1554. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1555. 8000d7e: 1d3b adds r3, r7, #4
  1556. 8000d80: 4619 mov r1, r3
  1557. 8000d82: 481a ldr r0, [pc, #104] @ (8000dec <MX_ADC2_Init+0x104>)
  1558. 8000d84: f005 fa64 bl 8006250 <HAL_ADC_ConfigChannel>
  1559. 8000d88: 4603 mov r3, r0
  1560. 8000d8a: 2b00 cmp r3, #0
  1561. 8000d8c: d001 beq.n 8000d92 <MX_ADC2_Init+0xaa>
  1562. {
  1563. Error_Handler();
  1564. 8000d8e: f000 fefd bl 8001b8c <Error_Handler>
  1565. }
  1566. /** Configure Regular Channel
  1567. */
  1568. sConfig.Channel = ADC_CHANNEL_4;
  1569. 8000d92: 4b19 ldr r3, [pc, #100] @ (8000df8 <MX_ADC2_Init+0x110>)
  1570. 8000d94: 607b str r3, [r7, #4]
  1571. sConfig.Rank = ADC_REGULAR_RANK_2;
  1572. 8000d96: 230c movs r3, #12
  1573. 8000d98: 60bb str r3, [r7, #8]
  1574. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1575. 8000d9a: 1d3b adds r3, r7, #4
  1576. 8000d9c: 4619 mov r1, r3
  1577. 8000d9e: 4813 ldr r0, [pc, #76] @ (8000dec <MX_ADC2_Init+0x104>)
  1578. 8000da0: f005 fa56 bl 8006250 <HAL_ADC_ConfigChannel>
  1579. 8000da4: 4603 mov r3, r0
  1580. 8000da6: 2b00 cmp r3, #0
  1581. 8000da8: d001 beq.n 8000dae <MX_ADC2_Init+0xc6>
  1582. {
  1583. Error_Handler();
  1584. 8000daa: f000 feef bl 8001b8c <Error_Handler>
  1585. }
  1586. /** Configure Regular Channel
  1587. */
  1588. sConfig.Channel = ADC_CHANNEL_5;
  1589. 8000dae: 4b13 ldr r3, [pc, #76] @ (8000dfc <MX_ADC2_Init+0x114>)
  1590. 8000db0: 607b str r3, [r7, #4]
  1591. sConfig.Rank = ADC_REGULAR_RANK_3;
  1592. 8000db2: 2312 movs r3, #18
  1593. 8000db4: 60bb str r3, [r7, #8]
  1594. if (HAL_ADC_ConfigChannel(&hadc2, &sConfig) != HAL_OK)
  1595. 8000db6: 1d3b adds r3, r7, #4
  1596. 8000db8: 4619 mov r1, r3
  1597. 8000dba: 480c ldr r0, [pc, #48] @ (8000dec <MX_ADC2_Init+0x104>)
  1598. 8000dbc: f005 fa48 bl 8006250 <HAL_ADC_ConfigChannel>
  1599. 8000dc0: 4603 mov r3, r0
  1600. 8000dc2: 2b00 cmp r3, #0
  1601. 8000dc4: d001 beq.n 8000dca <MX_ADC2_Init+0xe2>
  1602. {
  1603. Error_Handler();
  1604. 8000dc6: f000 fee1 bl 8001b8c <Error_Handler>
  1605. }
  1606. /* USER CODE BEGIN ADC2_Init 2 */
  1607. if (HAL_ADCEx_Calibration_Start(&hadc2, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1608. 8000dca: f240 72ff movw r2, #2047 @ 0x7ff
  1609. 8000dce: f04f 1101 mov.w r1, #65537 @ 0x10001
  1610. 8000dd2: 4806 ldr r0, [pc, #24] @ (8000dec <MX_ADC2_Init+0x104>)
  1611. 8000dd4: f006 f890 bl 8006ef8 <HAL_ADCEx_Calibration_Start>
  1612. 8000dd8: 4603 mov r3, r0
  1613. 8000dda: 2b00 cmp r3, #0
  1614. 8000ddc: d001 beq.n 8000de2 <MX_ADC2_Init+0xfa>
  1615. {
  1616. Error_Handler();
  1617. 8000dde: f000 fed5 bl 8001b8c <Error_Handler>
  1618. }
  1619. /* USER CODE END ADC2_Init 2 */
  1620. }
  1621. 8000de2: bf00 nop
  1622. 8000de4: 3720 adds r7, #32
  1623. 8000de6: 46bd mov sp, r7
  1624. 8000de8: bd80 pop {r7, pc}
  1625. 8000dea: bf00 nop
  1626. 8000dec: 240002e4 .word 0x240002e4
  1627. 8000df0: 40022100 .word 0x40022100
  1628. 8000df4: 0c900008 .word 0x0c900008
  1629. 8000df8: 10c00010 .word 0x10c00010
  1630. 8000dfc: 14f00020 .word 0x14f00020
  1631. 08000e00 <MX_ADC3_Init>:
  1632. * @brief ADC3 Initialization Function
  1633. * @param None
  1634. * @retval None
  1635. */
  1636. static void MX_ADC3_Init(void)
  1637. {
  1638. 8000e00: b580 push {r7, lr}
  1639. 8000e02: b088 sub sp, #32
  1640. 8000e04: af00 add r7, sp, #0
  1641. /* USER CODE BEGIN ADC3_Init 0 */
  1642. /* USER CODE END ADC3_Init 0 */
  1643. ADC_ChannelConfTypeDef sConfig = {0};
  1644. 8000e06: 1d3b adds r3, r7, #4
  1645. 8000e08: 2200 movs r2, #0
  1646. 8000e0a: 601a str r2, [r3, #0]
  1647. 8000e0c: 605a str r2, [r3, #4]
  1648. 8000e0e: 609a str r2, [r3, #8]
  1649. 8000e10: 60da str r2, [r3, #12]
  1650. 8000e12: 611a str r2, [r3, #16]
  1651. 8000e14: 615a str r2, [r3, #20]
  1652. 8000e16: 619a str r2, [r3, #24]
  1653. /* USER CODE END ADC3_Init 1 */
  1654. /** Common config
  1655. */
  1656. hadc3.Instance = ADC3;
  1657. 8000e18: 4b4c ldr r3, [pc, #304] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1658. 8000e1a: 4a4d ldr r2, [pc, #308] @ (8000f50 <MX_ADC3_Init+0x150>)
  1659. 8000e1c: 601a str r2, [r3, #0]
  1660. hadc3.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1661. 8000e1e: 4b4b ldr r3, [pc, #300] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1662. 8000e20: 2200 movs r2, #0
  1663. 8000e22: 605a str r2, [r3, #4]
  1664. hadc3.Init.Resolution = ADC_RESOLUTION_16B;
  1665. 8000e24: 4b49 ldr r3, [pc, #292] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1666. 8000e26: 2200 movs r2, #0
  1667. 8000e28: 609a str r2, [r3, #8]
  1668. hadc3.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1669. 8000e2a: 4b48 ldr r3, [pc, #288] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1670. 8000e2c: 2201 movs r2, #1
  1671. 8000e2e: 60da str r2, [r3, #12]
  1672. hadc3.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1673. 8000e30: 4b46 ldr r3, [pc, #280] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1674. 8000e32: 2208 movs r2, #8
  1675. 8000e34: 611a str r2, [r3, #16]
  1676. hadc3.Init.LowPowerAutoWait = DISABLE;
  1677. 8000e36: 4b45 ldr r3, [pc, #276] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1678. 8000e38: 2200 movs r2, #0
  1679. 8000e3a: 751a strb r2, [r3, #20]
  1680. hadc3.Init.ContinuousConvMode = ENABLE;
  1681. 8000e3c: 4b43 ldr r3, [pc, #268] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1682. 8000e3e: 2201 movs r2, #1
  1683. 8000e40: 755a strb r2, [r3, #21]
  1684. hadc3.Init.NbrOfConversion = 5;
  1685. 8000e42: 4b42 ldr r3, [pc, #264] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1686. 8000e44: 2205 movs r2, #5
  1687. 8000e46: 619a str r2, [r3, #24]
  1688. hadc3.Init.DiscontinuousConvMode = DISABLE;
  1689. 8000e48: 4b40 ldr r3, [pc, #256] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1690. 8000e4a: 2200 movs r2, #0
  1691. 8000e4c: 771a strb r2, [r3, #28]
  1692. hadc3.Init.ExternalTrigConv = ADC_EXTERNALTRIG_T8_TRGO;
  1693. 8000e4e: 4b3f ldr r3, [pc, #252] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1694. 8000e50: f44f 629c mov.w r2, #1248 @ 0x4e0
  1695. 8000e54: 625a str r2, [r3, #36] @ 0x24
  1696. hadc3.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_RISING;
  1697. 8000e56: 4b3d ldr r3, [pc, #244] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1698. 8000e58: f44f 6280 mov.w r2, #1024 @ 0x400
  1699. 8000e5c: 629a str r2, [r3, #40] @ 0x28
  1700. hadc3.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DMA_ONESHOT;
  1701. 8000e5e: 4b3b ldr r3, [pc, #236] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1702. 8000e60: 2201 movs r2, #1
  1703. 8000e62: 62da str r2, [r3, #44] @ 0x2c
  1704. hadc3.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  1705. 8000e64: 4b39 ldr r3, [pc, #228] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1706. 8000e66: 2200 movs r2, #0
  1707. 8000e68: 631a str r2, [r3, #48] @ 0x30
  1708. hadc3.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  1709. 8000e6a: 4b38 ldr r3, [pc, #224] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1710. 8000e6c: 2200 movs r2, #0
  1711. 8000e6e: 635a str r2, [r3, #52] @ 0x34
  1712. hadc3.Init.OversamplingMode = DISABLE;
  1713. 8000e70: 4b36 ldr r3, [pc, #216] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1714. 8000e72: 2200 movs r2, #0
  1715. 8000e74: f883 2038 strb.w r2, [r3, #56] @ 0x38
  1716. if (HAL_ADC_Init(&hadc3) != HAL_OK)
  1717. 8000e78: 4834 ldr r0, [pc, #208] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1718. 8000e7a: f004 ff6f bl 8005d5c <HAL_ADC_Init>
  1719. 8000e7e: 4603 mov r3, r0
  1720. 8000e80: 2b00 cmp r3, #0
  1721. 8000e82: d001 beq.n 8000e88 <MX_ADC3_Init+0x88>
  1722. {
  1723. Error_Handler();
  1724. 8000e84: f000 fe82 bl 8001b8c <Error_Handler>
  1725. }
  1726. /** Configure Regular Channel
  1727. */
  1728. sConfig.Channel = ADC_CHANNEL_0;
  1729. 8000e88: 2301 movs r3, #1
  1730. 8000e8a: 607b str r3, [r7, #4]
  1731. sConfig.Rank = ADC_REGULAR_RANK_1;
  1732. 8000e8c: 2306 movs r3, #6
  1733. 8000e8e: 60bb str r3, [r7, #8]
  1734. sConfig.SamplingTime = ADC_SAMPLETIME_387CYCLES_5;
  1735. 8000e90: 2306 movs r3, #6
  1736. 8000e92: 60fb str r3, [r7, #12]
  1737. sConfig.SingleDiff = ADC_SINGLE_ENDED;
  1738. 8000e94: f240 73ff movw r3, #2047 @ 0x7ff
  1739. 8000e98: 613b str r3, [r7, #16]
  1740. sConfig.OffsetNumber = ADC_OFFSET_NONE;
  1741. 8000e9a: 2304 movs r3, #4
  1742. 8000e9c: 617b str r3, [r7, #20]
  1743. sConfig.Offset = 0;
  1744. 8000e9e: 2300 movs r3, #0
  1745. 8000ea0: 61bb str r3, [r7, #24]
  1746. sConfig.OffsetSignedSaturation = DISABLE;
  1747. 8000ea2: 2300 movs r3, #0
  1748. 8000ea4: 777b strb r3, [r7, #29]
  1749. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1750. 8000ea6: 1d3b adds r3, r7, #4
  1751. 8000ea8: 4619 mov r1, r3
  1752. 8000eaa: 4828 ldr r0, [pc, #160] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1753. 8000eac: f005 f9d0 bl 8006250 <HAL_ADC_ConfigChannel>
  1754. 8000eb0: 4603 mov r3, r0
  1755. 8000eb2: 2b00 cmp r3, #0
  1756. 8000eb4: d001 beq.n 8000eba <MX_ADC3_Init+0xba>
  1757. {
  1758. Error_Handler();
  1759. 8000eb6: f000 fe69 bl 8001b8c <Error_Handler>
  1760. }
  1761. /** Configure Regular Channel
  1762. */
  1763. sConfig.Channel = ADC_CHANNEL_1;
  1764. 8000eba: 4b26 ldr r3, [pc, #152] @ (8000f54 <MX_ADC3_Init+0x154>)
  1765. 8000ebc: 607b str r3, [r7, #4]
  1766. sConfig.Rank = ADC_REGULAR_RANK_2;
  1767. 8000ebe: 230c movs r3, #12
  1768. 8000ec0: 60bb str r3, [r7, #8]
  1769. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1770. 8000ec2: 1d3b adds r3, r7, #4
  1771. 8000ec4: 4619 mov r1, r3
  1772. 8000ec6: 4821 ldr r0, [pc, #132] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1773. 8000ec8: f005 f9c2 bl 8006250 <HAL_ADC_ConfigChannel>
  1774. 8000ecc: 4603 mov r3, r0
  1775. 8000ece: 2b00 cmp r3, #0
  1776. 8000ed0: d001 beq.n 8000ed6 <MX_ADC3_Init+0xd6>
  1777. {
  1778. Error_Handler();
  1779. 8000ed2: f000 fe5b bl 8001b8c <Error_Handler>
  1780. }
  1781. /** Configure Regular Channel
  1782. */
  1783. sConfig.Channel = ADC_CHANNEL_10;
  1784. 8000ed6: 4b20 ldr r3, [pc, #128] @ (8000f58 <MX_ADC3_Init+0x158>)
  1785. 8000ed8: 607b str r3, [r7, #4]
  1786. sConfig.Rank = ADC_REGULAR_RANK_3;
  1787. 8000eda: 2312 movs r3, #18
  1788. 8000edc: 60bb str r3, [r7, #8]
  1789. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1790. 8000ede: 1d3b adds r3, r7, #4
  1791. 8000ee0: 4619 mov r1, r3
  1792. 8000ee2: 481a ldr r0, [pc, #104] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1793. 8000ee4: f005 f9b4 bl 8006250 <HAL_ADC_ConfigChannel>
  1794. 8000ee8: 4603 mov r3, r0
  1795. 8000eea: 2b00 cmp r3, #0
  1796. 8000eec: d001 beq.n 8000ef2 <MX_ADC3_Init+0xf2>
  1797. {
  1798. Error_Handler();
  1799. 8000eee: f000 fe4d bl 8001b8c <Error_Handler>
  1800. }
  1801. /** Configure Regular Channel
  1802. */
  1803. sConfig.Channel = ADC_CHANNEL_11;
  1804. 8000ef2: 4b1a ldr r3, [pc, #104] @ (8000f5c <MX_ADC3_Init+0x15c>)
  1805. 8000ef4: 607b str r3, [r7, #4]
  1806. sConfig.Rank = ADC_REGULAR_RANK_4;
  1807. 8000ef6: 2318 movs r3, #24
  1808. 8000ef8: 60bb str r3, [r7, #8]
  1809. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1810. 8000efa: 1d3b adds r3, r7, #4
  1811. 8000efc: 4619 mov r1, r3
  1812. 8000efe: 4813 ldr r0, [pc, #76] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1813. 8000f00: f005 f9a6 bl 8006250 <HAL_ADC_ConfigChannel>
  1814. 8000f04: 4603 mov r3, r0
  1815. 8000f06: 2b00 cmp r3, #0
  1816. 8000f08: d001 beq.n 8000f0e <MX_ADC3_Init+0x10e>
  1817. {
  1818. Error_Handler();
  1819. 8000f0a: f000 fe3f bl 8001b8c <Error_Handler>
  1820. }
  1821. /** Configure Regular Channel
  1822. */
  1823. sConfig.Channel = ADC_CHANNEL_VREFINT;
  1824. 8000f0e: 4b14 ldr r3, [pc, #80] @ (8000f60 <MX_ADC3_Init+0x160>)
  1825. 8000f10: 607b str r3, [r7, #4]
  1826. sConfig.Rank = ADC_REGULAR_RANK_5;
  1827. 8000f12: f44f 7380 mov.w r3, #256 @ 0x100
  1828. 8000f16: 60bb str r3, [r7, #8]
  1829. if (HAL_ADC_ConfigChannel(&hadc3, &sConfig) != HAL_OK)
  1830. 8000f18: 1d3b adds r3, r7, #4
  1831. 8000f1a: 4619 mov r1, r3
  1832. 8000f1c: 480b ldr r0, [pc, #44] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1833. 8000f1e: f005 f997 bl 8006250 <HAL_ADC_ConfigChannel>
  1834. 8000f22: 4603 mov r3, r0
  1835. 8000f24: 2b00 cmp r3, #0
  1836. 8000f26: d001 beq.n 8000f2c <MX_ADC3_Init+0x12c>
  1837. {
  1838. Error_Handler();
  1839. 8000f28: f000 fe30 bl 8001b8c <Error_Handler>
  1840. }
  1841. /* USER CODE BEGIN ADC3_Init 2 */
  1842. if (HAL_ADCEx_Calibration_Start(&hadc3, ADC_CALIB_OFFSET_LINEARITY, ADC_SINGLE_ENDED) != HAL_OK)
  1843. 8000f2c: f240 72ff movw r2, #2047 @ 0x7ff
  1844. 8000f30: f04f 1101 mov.w r1, #65537 @ 0x10001
  1845. 8000f34: 4805 ldr r0, [pc, #20] @ (8000f4c <MX_ADC3_Init+0x14c>)
  1846. 8000f36: f005 ffdf bl 8006ef8 <HAL_ADCEx_Calibration_Start>
  1847. 8000f3a: 4603 mov r3, r0
  1848. 8000f3c: 2b00 cmp r3, #0
  1849. 8000f3e: d001 beq.n 8000f44 <MX_ADC3_Init+0x144>
  1850. {
  1851. Error_Handler();
  1852. 8000f40: f000 fe24 bl 8001b8c <Error_Handler>
  1853. }
  1854. /* USER CODE END ADC3_Init 2 */
  1855. }
  1856. 8000f44: bf00 nop
  1857. 8000f46: 3720 adds r7, #32
  1858. 8000f48: 46bd mov sp, r7
  1859. 8000f4a: bd80 pop {r7, pc}
  1860. 8000f4c: 24000348 .word 0x24000348
  1861. 8000f50: 58026000 .word 0x58026000
  1862. 8000f54: 04300002 .word 0x04300002
  1863. 8000f58: 2a000400 .word 0x2a000400
  1864. 8000f5c: 2e300800 .word 0x2e300800
  1865. 8000f60: cfb80000 .word 0xcfb80000
  1866. 08000f64 <MX_COMP1_Init>:
  1867. * @brief COMP1 Initialization Function
  1868. * @param None
  1869. * @retval None
  1870. */
  1871. static void MX_COMP1_Init(void)
  1872. {
  1873. 8000f64: b580 push {r7, lr}
  1874. 8000f66: af00 add r7, sp, #0
  1875. /* USER CODE END COMP1_Init 0 */
  1876. /* USER CODE BEGIN COMP1_Init 1 */
  1877. /* USER CODE END COMP1_Init 1 */
  1878. hcomp1.Instance = COMP1;
  1879. 8000f68: 4b12 ldr r3, [pc, #72] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1880. 8000f6a: 4a13 ldr r2, [pc, #76] @ (8000fb8 <MX_COMP1_Init+0x54>)
  1881. 8000f6c: 601a str r2, [r3, #0]
  1882. hcomp1.Init.InvertingInput = COMP_INPUT_MINUS_3_4VREFINT;
  1883. 8000f6e: 4b11 ldr r3, [pc, #68] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1884. 8000f70: 4a12 ldr r2, [pc, #72] @ (8000fbc <MX_COMP1_Init+0x58>)
  1885. 8000f72: 611a str r2, [r3, #16]
  1886. hcomp1.Init.NonInvertingInput = COMP_INPUT_PLUS_IO2;
  1887. 8000f74: 4b0f ldr r3, [pc, #60] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1888. 8000f76: f44f 1280 mov.w r2, #1048576 @ 0x100000
  1889. 8000f7a: 60da str r2, [r3, #12]
  1890. hcomp1.Init.OutputPol = COMP_OUTPUTPOL_NONINVERTED;
  1891. 8000f7c: 4b0d ldr r3, [pc, #52] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1892. 8000f7e: 2200 movs r2, #0
  1893. 8000f80: 619a str r2, [r3, #24]
  1894. hcomp1.Init.Hysteresis = COMP_HYSTERESIS_NONE;
  1895. 8000f82: 4b0c ldr r3, [pc, #48] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1896. 8000f84: 2200 movs r2, #0
  1897. 8000f86: 615a str r2, [r3, #20]
  1898. hcomp1.Init.BlankingSrce = COMP_BLANKINGSRC_NONE;
  1899. 8000f88: 4b0a ldr r3, [pc, #40] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1900. 8000f8a: 2200 movs r2, #0
  1901. 8000f8c: 61da str r2, [r3, #28]
  1902. hcomp1.Init.Mode = COMP_POWERMODE_HIGHSPEED;
  1903. 8000f8e: 4b09 ldr r3, [pc, #36] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1904. 8000f90: 2200 movs r2, #0
  1905. 8000f92: 609a str r2, [r3, #8]
  1906. hcomp1.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
  1907. 8000f94: 4b07 ldr r3, [pc, #28] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1908. 8000f96: 2200 movs r2, #0
  1909. 8000f98: 605a str r2, [r3, #4]
  1910. hcomp1.Init.TriggerMode = COMP_TRIGGERMODE_NONE;
  1911. 8000f9a: 4b06 ldr r3, [pc, #24] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1912. 8000f9c: 2200 movs r2, #0
  1913. 8000f9e: 621a str r2, [r3, #32]
  1914. if (HAL_COMP_Init(&hcomp1) != HAL_OK)
  1915. 8000fa0: 4804 ldr r0, [pc, #16] @ (8000fb4 <MX_COMP1_Init+0x50>)
  1916. 8000fa2: f006 f9c9 bl 8007338 <HAL_COMP_Init>
  1917. 8000fa6: 4603 mov r3, r0
  1918. 8000fa8: 2b00 cmp r3, #0
  1919. 8000faa: d001 beq.n 8000fb0 <MX_COMP1_Init+0x4c>
  1920. {
  1921. Error_Handler();
  1922. 8000fac: f000 fdee bl 8001b8c <Error_Handler>
  1923. }
  1924. /* USER CODE BEGIN COMP1_Init 2 */
  1925. /* USER CODE END COMP1_Init 2 */
  1926. }
  1927. 8000fb0: bf00 nop
  1928. 8000fb2: bd80 pop {r7, pc}
  1929. 8000fb4: 24000514 .word 0x24000514
  1930. 8000fb8: 5800380c .word 0x5800380c
  1931. 8000fbc: 00020006 .word 0x00020006
  1932. 08000fc0 <MX_CRC_Init>:
  1933. * @brief CRC Initialization Function
  1934. * @param None
  1935. * @retval None
  1936. */
  1937. static void MX_CRC_Init(void)
  1938. {
  1939. 8000fc0: b580 push {r7, lr}
  1940. 8000fc2: af00 add r7, sp, #0
  1941. /* USER CODE END CRC_Init 0 */
  1942. /* USER CODE BEGIN CRC_Init 1 */
  1943. /* USER CODE END CRC_Init 1 */
  1944. hcrc.Instance = CRC;
  1945. 8000fc4: 4b11 ldr r3, [pc, #68] @ (800100c <MX_CRC_Init+0x4c>)
  1946. 8000fc6: 4a12 ldr r2, [pc, #72] @ (8001010 <MX_CRC_Init+0x50>)
  1947. 8000fc8: 601a str r2, [r3, #0]
  1948. hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE;
  1949. 8000fca: 4b10 ldr r3, [pc, #64] @ (800100c <MX_CRC_Init+0x4c>)
  1950. 8000fcc: 2201 movs r2, #1
  1951. 8000fce: 711a strb r2, [r3, #4]
  1952. hcrc.Init.DefaultInitValueUse = DEFAULT_INIT_VALUE_ENABLE;
  1953. 8000fd0: 4b0e ldr r3, [pc, #56] @ (800100c <MX_CRC_Init+0x4c>)
  1954. 8000fd2: 2200 movs r2, #0
  1955. 8000fd4: 715a strb r2, [r3, #5]
  1956. hcrc.Init.GeneratingPolynomial = 4129;
  1957. 8000fd6: 4b0d ldr r3, [pc, #52] @ (800100c <MX_CRC_Init+0x4c>)
  1958. 8000fd8: f241 0221 movw r2, #4129 @ 0x1021
  1959. 8000fdc: 609a str r2, [r3, #8]
  1960. hcrc.Init.CRCLength = CRC_POLYLENGTH_16B;
  1961. 8000fde: 4b0b ldr r3, [pc, #44] @ (800100c <MX_CRC_Init+0x4c>)
  1962. 8000fe0: 2208 movs r2, #8
  1963. 8000fe2: 60da str r2, [r3, #12]
  1964. hcrc.Init.InputDataInversionMode = CRC_INPUTDATA_INVERSION_NONE;
  1965. 8000fe4: 4b09 ldr r3, [pc, #36] @ (800100c <MX_CRC_Init+0x4c>)
  1966. 8000fe6: 2200 movs r2, #0
  1967. 8000fe8: 615a str r2, [r3, #20]
  1968. hcrc.Init.OutputDataInversionMode = CRC_OUTPUTDATA_INVERSION_DISABLE;
  1969. 8000fea: 4b08 ldr r3, [pc, #32] @ (800100c <MX_CRC_Init+0x4c>)
  1970. 8000fec: 2200 movs r2, #0
  1971. 8000fee: 619a str r2, [r3, #24]
  1972. hcrc.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES;
  1973. 8000ff0: 4b06 ldr r3, [pc, #24] @ (800100c <MX_CRC_Init+0x4c>)
  1974. 8000ff2: 2201 movs r2, #1
  1975. 8000ff4: 621a str r2, [r3, #32]
  1976. if (HAL_CRC_Init(&hcrc) != HAL_OK)
  1977. 8000ff6: 4805 ldr r0, [pc, #20] @ (800100c <MX_CRC_Init+0x4c>)
  1978. 8000ff8: f006 fc88 bl 800790c <HAL_CRC_Init>
  1979. 8000ffc: 4603 mov r3, r0
  1980. 8000ffe: 2b00 cmp r3, #0
  1981. 8001000: d001 beq.n 8001006 <MX_CRC_Init+0x46>
  1982. {
  1983. Error_Handler();
  1984. 8001002: f000 fdc3 bl 8001b8c <Error_Handler>
  1985. }
  1986. /* USER CODE BEGIN CRC_Init 2 */
  1987. /* USER CODE END CRC_Init 2 */
  1988. }
  1989. 8001006: bf00 nop
  1990. 8001008: bd80 pop {r7, pc}
  1991. 800100a: bf00 nop
  1992. 800100c: 24000540 .word 0x24000540
  1993. 8001010: 58024c00 .word 0x58024c00
  1994. 08001014 <MX_DAC1_Init>:
  1995. * @brief DAC1 Initialization Function
  1996. * @param None
  1997. * @retval None
  1998. */
  1999. static void MX_DAC1_Init(void)
  2000. {
  2001. 8001014: b580 push {r7, lr}
  2002. 8001016: b08a sub sp, #40 @ 0x28
  2003. 8001018: af00 add r7, sp, #0
  2004. /* USER CODE BEGIN DAC1_Init 0 */
  2005. /* USER CODE END DAC1_Init 0 */
  2006. DAC_ChannelConfTypeDef sConfig = {0};
  2007. 800101a: 1d3b adds r3, r7, #4
  2008. 800101c: 2224 movs r2, #36 @ 0x24
  2009. 800101e: 2100 movs r1, #0
  2010. 8001020: 4618 mov r0, r3
  2011. 8001022: f017 fa21 bl 8018468 <memset>
  2012. /* USER CODE END DAC1_Init 1 */
  2013. /** DAC Initialization
  2014. */
  2015. hdac1.Instance = DAC1;
  2016. 8001026: 4b17 ldr r3, [pc, #92] @ (8001084 <MX_DAC1_Init+0x70>)
  2017. 8001028: 4a17 ldr r2, [pc, #92] @ (8001088 <MX_DAC1_Init+0x74>)
  2018. 800102a: 601a str r2, [r3, #0]
  2019. if (HAL_DAC_Init(&hdac1) != HAL_OK)
  2020. 800102c: 4815 ldr r0, [pc, #84] @ (8001084 <MX_DAC1_Init+0x70>)
  2021. 800102e: f006 fe73 bl 8007d18 <HAL_DAC_Init>
  2022. 8001032: 4603 mov r3, r0
  2023. 8001034: 2b00 cmp r3, #0
  2024. 8001036: d001 beq.n 800103c <MX_DAC1_Init+0x28>
  2025. {
  2026. Error_Handler();
  2027. 8001038: f000 fda8 bl 8001b8c <Error_Handler>
  2028. }
  2029. /** DAC channel OUT1 config
  2030. */
  2031. sConfig.DAC_SampleAndHold = DAC_SAMPLEANDHOLD_DISABLE;
  2032. 800103c: 2300 movs r3, #0
  2033. 800103e: 607b str r3, [r7, #4]
  2034. sConfig.DAC_Trigger = DAC_TRIGGER_NONE;
  2035. 8001040: 2300 movs r3, #0
  2036. 8001042: 60bb str r3, [r7, #8]
  2037. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
  2038. 8001044: 2300 movs r3, #0
  2039. 8001046: 60fb str r3, [r7, #12]
  2040. sConfig.DAC_ConnectOnChipPeripheral = DAC_CHIPCONNECT_DISABLE;
  2041. 8001048: 2301 movs r3, #1
  2042. 800104a: 613b str r3, [r7, #16]
  2043. sConfig.DAC_UserTrimming = DAC_TRIMMING_FACTORY;
  2044. 800104c: 2300 movs r3, #0
  2045. 800104e: 617b str r3, [r7, #20]
  2046. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_1) != HAL_OK)
  2047. 8001050: 1d3b adds r3, r7, #4
  2048. 8001052: 2200 movs r2, #0
  2049. 8001054: 4619 mov r1, r3
  2050. 8001056: 480b ldr r0, [pc, #44] @ (8001084 <MX_DAC1_Init+0x70>)
  2051. 8001058: f006 ff62 bl 8007f20 <HAL_DAC_ConfigChannel>
  2052. 800105c: 4603 mov r3, r0
  2053. 800105e: 2b00 cmp r3, #0
  2054. 8001060: d001 beq.n 8001066 <MX_DAC1_Init+0x52>
  2055. {
  2056. Error_Handler();
  2057. 8001062: f000 fd93 bl 8001b8c <Error_Handler>
  2058. }
  2059. /** DAC channel OUT2 config
  2060. */
  2061. if (HAL_DAC_ConfigChannel(&hdac1, &sConfig, DAC_CHANNEL_2) != HAL_OK)
  2062. 8001066: 1d3b adds r3, r7, #4
  2063. 8001068: 2210 movs r2, #16
  2064. 800106a: 4619 mov r1, r3
  2065. 800106c: 4805 ldr r0, [pc, #20] @ (8001084 <MX_DAC1_Init+0x70>)
  2066. 800106e: f006 ff57 bl 8007f20 <HAL_DAC_ConfigChannel>
  2067. 8001072: 4603 mov r3, r0
  2068. 8001074: 2b00 cmp r3, #0
  2069. 8001076: d001 beq.n 800107c <MX_DAC1_Init+0x68>
  2070. {
  2071. Error_Handler();
  2072. 8001078: f000 fd88 bl 8001b8c <Error_Handler>
  2073. }
  2074. /* USER CODE BEGIN DAC1_Init 2 */
  2075. /* USER CODE END DAC1_Init 2 */
  2076. }
  2077. 800107c: bf00 nop
  2078. 800107e: 3728 adds r7, #40 @ 0x28
  2079. 8001080: 46bd mov sp, r7
  2080. 8001082: bd80 pop {r7, pc}
  2081. 8001084: 24000564 .word 0x24000564
  2082. 8001088: 40007400 .word 0x40007400
  2083. 0800108c <MX_IWDG1_Init>:
  2084. * @brief IWDG1 Initialization Function
  2085. * @param None
  2086. * @retval None
  2087. */
  2088. static void MX_IWDG1_Init(void)
  2089. {
  2090. 800108c: b580 push {r7, lr}
  2091. 800108e: af00 add r7, sp, #0
  2092. /* USER CODE END IWDG1_Init 0 */
  2093. /* USER CODE BEGIN IWDG1_Init 1 */
  2094. /* USER CODE END IWDG1_Init 1 */
  2095. hiwdg1.Instance = IWDG1;
  2096. 8001090: 4b0a ldr r3, [pc, #40] @ (80010bc <MX_IWDG1_Init+0x30>)
  2097. 8001092: 4a0b ldr r2, [pc, #44] @ (80010c0 <MX_IWDG1_Init+0x34>)
  2098. 8001094: 601a str r2, [r3, #0]
  2099. hiwdg1.Init.Prescaler = IWDG_PRESCALER_64;
  2100. 8001096: 4b09 ldr r3, [pc, #36] @ (80010bc <MX_IWDG1_Init+0x30>)
  2101. 8001098: 2204 movs r2, #4
  2102. 800109a: 605a str r2, [r3, #4]
  2103. hiwdg1.Init.Window = 249;
  2104. 800109c: 4b07 ldr r3, [pc, #28] @ (80010bc <MX_IWDG1_Init+0x30>)
  2105. 800109e: 22f9 movs r2, #249 @ 0xf9
  2106. 80010a0: 60da str r2, [r3, #12]
  2107. hiwdg1.Init.Reload = 249;
  2108. 80010a2: 4b06 ldr r3, [pc, #24] @ (80010bc <MX_IWDG1_Init+0x30>)
  2109. 80010a4: 22f9 movs r2, #249 @ 0xf9
  2110. 80010a6: 609a str r2, [r3, #8]
  2111. if (HAL_IWDG_Init(&hiwdg1) != HAL_OK)
  2112. 80010a8: 4804 ldr r0, [pc, #16] @ (80010bc <MX_IWDG1_Init+0x30>)
  2113. 80010aa: f00a f8d6 bl 800b25a <HAL_IWDG_Init>
  2114. 80010ae: 4603 mov r3, r0
  2115. 80010b0: 2b00 cmp r3, #0
  2116. 80010b2: d001 beq.n 80010b8 <MX_IWDG1_Init+0x2c>
  2117. {
  2118. Error_Handler();
  2119. 80010b4: f000 fd6a bl 8001b8c <Error_Handler>
  2120. }
  2121. /* USER CODE BEGIN IWDG1_Init 2 */
  2122. /* USER CODE END IWDG1_Init 2 */
  2123. }
  2124. 80010b8: bf00 nop
  2125. 80010ba: bd80 pop {r7, pc}
  2126. 80010bc: 24000578 .word 0x24000578
  2127. 80010c0: 58004800 .word 0x58004800
  2128. 080010c4 <MX_RNG_Init>:
  2129. * @brief RNG Initialization Function
  2130. * @param None
  2131. * @retval None
  2132. */
  2133. static void MX_RNG_Init(void)
  2134. {
  2135. 80010c4: b580 push {r7, lr}
  2136. 80010c6: af00 add r7, sp, #0
  2137. /* USER CODE END RNG_Init 0 */
  2138. /* USER CODE BEGIN RNG_Init 1 */
  2139. /* USER CODE END RNG_Init 1 */
  2140. hrng.Instance = RNG;
  2141. 80010c8: 4b07 ldr r3, [pc, #28] @ (80010e8 <MX_RNG_Init+0x24>)
  2142. 80010ca: 4a08 ldr r2, [pc, #32] @ (80010ec <MX_RNG_Init+0x28>)
  2143. 80010cc: 601a str r2, [r3, #0]
  2144. hrng.Init.ClockErrorDetection = RNG_CED_ENABLE;
  2145. 80010ce: 4b06 ldr r3, [pc, #24] @ (80010e8 <MX_RNG_Init+0x24>)
  2146. 80010d0: 2200 movs r2, #0
  2147. 80010d2: 605a str r2, [r3, #4]
  2148. if (HAL_RNG_Init(&hrng) != HAL_OK)
  2149. 80010d4: 4804 ldr r0, [pc, #16] @ (80010e8 <MX_RNG_Init+0x24>)
  2150. 80010d6: f00d ff73 bl 800efc0 <HAL_RNG_Init>
  2151. 80010da: 4603 mov r3, r0
  2152. 80010dc: 2b00 cmp r3, #0
  2153. 80010de: d001 beq.n 80010e4 <MX_RNG_Init+0x20>
  2154. {
  2155. Error_Handler();
  2156. 80010e0: f000 fd54 bl 8001b8c <Error_Handler>
  2157. }
  2158. /* USER CODE BEGIN RNG_Init 2 */
  2159. /* USER CODE END RNG_Init 2 */
  2160. }
  2161. 80010e4: bf00 nop
  2162. 80010e6: bd80 pop {r7, pc}
  2163. 80010e8: 24000588 .word 0x24000588
  2164. 80010ec: 48021800 .word 0x48021800
  2165. 080010f0 <MX_TIM1_Init>:
  2166. * @brief TIM1 Initialization Function
  2167. * @param None
  2168. * @retval None
  2169. */
  2170. static void MX_TIM1_Init(void)
  2171. {
  2172. 80010f0: b5b0 push {r4, r5, r7, lr}
  2173. 80010f2: b096 sub sp, #88 @ 0x58
  2174. 80010f4: af00 add r7, sp, #0
  2175. /* USER CODE BEGIN TIM1_Init 0 */
  2176. /* USER CODE END TIM1_Init 0 */
  2177. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2178. 80010f6: f107 034c add.w r3, r7, #76 @ 0x4c
  2179. 80010fa: 2200 movs r2, #0
  2180. 80010fc: 601a str r2, [r3, #0]
  2181. 80010fe: 605a str r2, [r3, #4]
  2182. 8001100: 609a str r2, [r3, #8]
  2183. TIM_OC_InitTypeDef sConfigOC = {0};
  2184. 8001102: f107 0330 add.w r3, r7, #48 @ 0x30
  2185. 8001106: 2200 movs r2, #0
  2186. 8001108: 601a str r2, [r3, #0]
  2187. 800110a: 605a str r2, [r3, #4]
  2188. 800110c: 609a str r2, [r3, #8]
  2189. 800110e: 60da str r2, [r3, #12]
  2190. 8001110: 611a str r2, [r3, #16]
  2191. 8001112: 615a str r2, [r3, #20]
  2192. 8001114: 619a str r2, [r3, #24]
  2193. TIM_BreakDeadTimeConfigTypeDef sBreakDeadTimeConfig = {0};
  2194. 8001116: 1d3b adds r3, r7, #4
  2195. 8001118: 222c movs r2, #44 @ 0x2c
  2196. 800111a: 2100 movs r1, #0
  2197. 800111c: 4618 mov r0, r3
  2198. 800111e: f017 f9a3 bl 8018468 <memset>
  2199. /* USER CODE BEGIN TIM1_Init 1 */
  2200. /* USER CODE END TIM1_Init 1 */
  2201. htim1.Instance = TIM1;
  2202. 8001122: 4b3e ldr r3, [pc, #248] @ (800121c <MX_TIM1_Init+0x12c>)
  2203. 8001124: 4a3e ldr r2, [pc, #248] @ (8001220 <MX_TIM1_Init+0x130>)
  2204. 8001126: 601a str r2, [r3, #0]
  2205. htim1.Init.Prescaler = 199;
  2206. 8001128: 4b3c ldr r3, [pc, #240] @ (800121c <MX_TIM1_Init+0x12c>)
  2207. 800112a: 22c7 movs r2, #199 @ 0xc7
  2208. 800112c: 605a str r2, [r3, #4]
  2209. htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
  2210. 800112e: 4b3b ldr r3, [pc, #236] @ (800121c <MX_TIM1_Init+0x12c>)
  2211. 8001130: 2200 movs r2, #0
  2212. 8001132: 609a str r2, [r3, #8]
  2213. htim1.Init.Period = 999;
  2214. 8001134: 4b39 ldr r3, [pc, #228] @ (800121c <MX_TIM1_Init+0x12c>)
  2215. 8001136: f240 32e7 movw r2, #999 @ 0x3e7
  2216. 800113a: 60da str r2, [r3, #12]
  2217. htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2218. 800113c: 4b37 ldr r3, [pc, #220] @ (800121c <MX_TIM1_Init+0x12c>)
  2219. 800113e: 2200 movs r2, #0
  2220. 8001140: 611a str r2, [r3, #16]
  2221. htim1.Init.RepetitionCounter = 0;
  2222. 8001142: 4b36 ldr r3, [pc, #216] @ (800121c <MX_TIM1_Init+0x12c>)
  2223. 8001144: 2200 movs r2, #0
  2224. 8001146: 615a str r2, [r3, #20]
  2225. htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2226. 8001148: 4b34 ldr r3, [pc, #208] @ (800121c <MX_TIM1_Init+0x12c>)
  2227. 800114a: 2280 movs r2, #128 @ 0x80
  2228. 800114c: 619a str r2, [r3, #24]
  2229. if (HAL_TIM_PWM_Init(&htim1) != HAL_OK)
  2230. 800114e: 4833 ldr r0, [pc, #204] @ (800121c <MX_TIM1_Init+0x12c>)
  2231. 8001150: f00e f8d8 bl 800f304 <HAL_TIM_PWM_Init>
  2232. 8001154: 4603 mov r3, r0
  2233. 8001156: 2b00 cmp r3, #0
  2234. 8001158: d001 beq.n 800115e <MX_TIM1_Init+0x6e>
  2235. {
  2236. Error_Handler();
  2237. 800115a: f000 fd17 bl 8001b8c <Error_Handler>
  2238. }
  2239. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2240. 800115e: 2300 movs r3, #0
  2241. 8001160: 64fb str r3, [r7, #76] @ 0x4c
  2242. sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET;
  2243. 8001162: 2300 movs r3, #0
  2244. 8001164: 653b str r3, [r7, #80] @ 0x50
  2245. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2246. 8001166: 2300 movs r3, #0
  2247. 8001168: 657b str r3, [r7, #84] @ 0x54
  2248. if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
  2249. 800116a: f107 034c add.w r3, r7, #76 @ 0x4c
  2250. 800116e: 4619 mov r1, r3
  2251. 8001170: 482a ldr r0, [pc, #168] @ (800121c <MX_TIM1_Init+0x12c>)
  2252. 8001172: f00f fa79 bl 8010668 <HAL_TIMEx_MasterConfigSynchronization>
  2253. 8001176: 4603 mov r3, r0
  2254. 8001178: 2b00 cmp r3, #0
  2255. 800117a: d001 beq.n 8001180 <MX_TIM1_Init+0x90>
  2256. {
  2257. Error_Handler();
  2258. 800117c: f000 fd06 bl 8001b8c <Error_Handler>
  2259. }
  2260. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2261. 8001180: 2360 movs r3, #96 @ 0x60
  2262. 8001182: 633b str r3, [r7, #48] @ 0x30
  2263. sConfigOC.Pulse = 99;
  2264. 8001184: 2363 movs r3, #99 @ 0x63
  2265. 8001186: 637b str r3, [r7, #52] @ 0x34
  2266. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2267. 8001188: 2300 movs r3, #0
  2268. 800118a: 63bb str r3, [r7, #56] @ 0x38
  2269. sConfigOC.OCNPolarity = TIM_OCNPOLARITY_HIGH;
  2270. 800118c: 2300 movs r3, #0
  2271. 800118e: 63fb str r3, [r7, #60] @ 0x3c
  2272. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2273. 8001190: 2300 movs r3, #0
  2274. 8001192: 643b str r3, [r7, #64] @ 0x40
  2275. sConfigOC.OCIdleState = TIM_OCIDLESTATE_RESET;
  2276. 8001194: 2300 movs r3, #0
  2277. 8001196: 647b str r3, [r7, #68] @ 0x44
  2278. sConfigOC.OCNIdleState = TIM_OCNIDLESTATE_RESET;
  2279. 8001198: 2300 movs r3, #0
  2280. 800119a: 64bb str r3, [r7, #72] @ 0x48
  2281. if (HAL_TIM_PWM_ConfigChannel(&htim1, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2282. 800119c: f107 0330 add.w r3, r7, #48 @ 0x30
  2283. 80011a0: 2204 movs r2, #4
  2284. 80011a2: 4619 mov r1, r3
  2285. 80011a4: 481d ldr r0, [pc, #116] @ (800121c <MX_TIM1_Init+0x12c>)
  2286. 80011a6: f00e fbb1 bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  2287. 80011aa: 4603 mov r3, r0
  2288. 80011ac: 2b00 cmp r3, #0
  2289. 80011ae: d001 beq.n 80011b4 <MX_TIM1_Init+0xc4>
  2290. {
  2291. Error_Handler();
  2292. 80011b0: f000 fcec bl 8001b8c <Error_Handler>
  2293. }
  2294. sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE;
  2295. 80011b4: 2300 movs r3, #0
  2296. 80011b6: 607b str r3, [r7, #4]
  2297. sBreakDeadTimeConfig.OffStateIDLEMode = TIM_OSSI_DISABLE;
  2298. 80011b8: 2300 movs r3, #0
  2299. 80011ba: 60bb str r3, [r7, #8]
  2300. sBreakDeadTimeConfig.LockLevel = TIM_LOCKLEVEL_OFF;
  2301. 80011bc: 2300 movs r3, #0
  2302. 80011be: 60fb str r3, [r7, #12]
  2303. sBreakDeadTimeConfig.DeadTime = 0;
  2304. 80011c0: 2300 movs r3, #0
  2305. 80011c2: 613b str r3, [r7, #16]
  2306. sBreakDeadTimeConfig.BreakState = TIM_BREAK_DISABLE;
  2307. 80011c4: 2300 movs r3, #0
  2308. 80011c6: 617b str r3, [r7, #20]
  2309. sBreakDeadTimeConfig.BreakPolarity = TIM_BREAKPOLARITY_HIGH;
  2310. 80011c8: f44f 5300 mov.w r3, #8192 @ 0x2000
  2311. 80011cc: 61bb str r3, [r7, #24]
  2312. sBreakDeadTimeConfig.BreakFilter = 0;
  2313. 80011ce: 2300 movs r3, #0
  2314. 80011d0: 61fb str r3, [r7, #28]
  2315. sBreakDeadTimeConfig.Break2State = TIM_BREAK2_DISABLE;
  2316. 80011d2: 2300 movs r3, #0
  2317. 80011d4: 623b str r3, [r7, #32]
  2318. sBreakDeadTimeConfig.Break2Polarity = TIM_BREAK2POLARITY_HIGH;
  2319. 80011d6: f04f 7300 mov.w r3, #33554432 @ 0x2000000
  2320. 80011da: 627b str r3, [r7, #36] @ 0x24
  2321. sBreakDeadTimeConfig.Break2Filter = 0;
  2322. 80011dc: 2300 movs r3, #0
  2323. 80011de: 62bb str r3, [r7, #40] @ 0x28
  2324. sBreakDeadTimeConfig.AutomaticOutput = TIM_AUTOMATICOUTPUT_DISABLE;
  2325. 80011e0: 2300 movs r3, #0
  2326. 80011e2: 62fb str r3, [r7, #44] @ 0x2c
  2327. if (HAL_TIMEx_ConfigBreakDeadTime(&htim1, &sBreakDeadTimeConfig) != HAL_OK)
  2328. 80011e4: 1d3b adds r3, r7, #4
  2329. 80011e6: 4619 mov r1, r3
  2330. 80011e8: 480c ldr r0, [pc, #48] @ (800121c <MX_TIM1_Init+0x12c>)
  2331. 80011ea: f00f facb bl 8010784 <HAL_TIMEx_ConfigBreakDeadTime>
  2332. 80011ee: 4603 mov r3, r0
  2333. 80011f0: 2b00 cmp r3, #0
  2334. 80011f2: d001 beq.n 80011f8 <MX_TIM1_Init+0x108>
  2335. {
  2336. Error_Handler();
  2337. 80011f4: f000 fcca bl 8001b8c <Error_Handler>
  2338. }
  2339. /* USER CODE BEGIN TIM1_Init 2 */
  2340. memcpy(&fanTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2341. 80011f8: 4b0a ldr r3, [pc, #40] @ (8001224 <MX_TIM1_Init+0x134>)
  2342. 80011fa: 461d mov r5, r3
  2343. 80011fc: f107 0430 add.w r4, r7, #48 @ 0x30
  2344. 8001200: cc0f ldmia r4!, {r0, r1, r2, r3}
  2345. 8001202: c50f stmia r5!, {r0, r1, r2, r3}
  2346. 8001204: e894 0007 ldmia.w r4, {r0, r1, r2}
  2347. 8001208: e885 0007 stmia.w r5, {r0, r1, r2}
  2348. /* USER CODE END TIM1_Init 2 */
  2349. HAL_TIM_MspPostInit(&htim1);
  2350. 800120c: 4803 ldr r0, [pc, #12] @ (800121c <MX_TIM1_Init+0x12c>)
  2351. 800120e: f002 fe1f bl 8003e50 <HAL_TIM_MspPostInit>
  2352. }
  2353. 8001212: bf00 nop
  2354. 8001214: 3758 adds r7, #88 @ 0x58
  2355. 8001216: 46bd mov sp, r7
  2356. 8001218: bdb0 pop {r4, r5, r7, pc}
  2357. 800121a: bf00 nop
  2358. 800121c: 2400059c .word 0x2400059c
  2359. 8001220: 40010000 .word 0x40010000
  2360. 8001224: 2400086c .word 0x2400086c
  2361. 08001228 <MX_TIM3_Init>:
  2362. * @brief TIM3 Initialization Function
  2363. * @param None
  2364. * @retval None
  2365. */
  2366. static void MX_TIM3_Init(void)
  2367. {
  2368. 8001228: b5b0 push {r4, r5, r7, lr}
  2369. 800122a: b08a sub sp, #40 @ 0x28
  2370. 800122c: af00 add r7, sp, #0
  2371. /* USER CODE BEGIN TIM3_Init 0 */
  2372. /* USER CODE END TIM3_Init 0 */
  2373. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2374. 800122e: f107 031c add.w r3, r7, #28
  2375. 8001232: 2200 movs r2, #0
  2376. 8001234: 601a str r2, [r3, #0]
  2377. 8001236: 605a str r2, [r3, #4]
  2378. 8001238: 609a str r2, [r3, #8]
  2379. TIM_OC_InitTypeDef sConfigOC = {0};
  2380. 800123a: 463b mov r3, r7
  2381. 800123c: 2200 movs r2, #0
  2382. 800123e: 601a str r2, [r3, #0]
  2383. 8001240: 605a str r2, [r3, #4]
  2384. 8001242: 609a str r2, [r3, #8]
  2385. 8001244: 60da str r2, [r3, #12]
  2386. 8001246: 611a str r2, [r3, #16]
  2387. 8001248: 615a str r2, [r3, #20]
  2388. 800124a: 619a str r2, [r3, #24]
  2389. /* USER CODE BEGIN TIM3_Init 1 */
  2390. /* USER CODE END TIM3_Init 1 */
  2391. htim3.Instance = TIM3;
  2392. 800124c: 4b48 ldr r3, [pc, #288] @ (8001370 <MX_TIM3_Init+0x148>)
  2393. 800124e: 4a49 ldr r2, [pc, #292] @ (8001374 <MX_TIM3_Init+0x14c>)
  2394. 8001250: 601a str r2, [r3, #0]
  2395. htim3.Init.Prescaler = 199;
  2396. 8001252: 4b47 ldr r3, [pc, #284] @ (8001370 <MX_TIM3_Init+0x148>)
  2397. 8001254: 22c7 movs r2, #199 @ 0xc7
  2398. 8001256: 605a str r2, [r3, #4]
  2399. htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  2400. 8001258: 4b45 ldr r3, [pc, #276] @ (8001370 <MX_TIM3_Init+0x148>)
  2401. 800125a: 2200 movs r2, #0
  2402. 800125c: 609a str r2, [r3, #8]
  2403. htim3.Init.Period = 999;
  2404. 800125e: 4b44 ldr r3, [pc, #272] @ (8001370 <MX_TIM3_Init+0x148>)
  2405. 8001260: f240 32e7 movw r2, #999 @ 0x3e7
  2406. 8001264: 60da str r2, [r3, #12]
  2407. htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2408. 8001266: 4b42 ldr r3, [pc, #264] @ (8001370 <MX_TIM3_Init+0x148>)
  2409. 8001268: 2200 movs r2, #0
  2410. 800126a: 611a str r2, [r3, #16]
  2411. htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2412. 800126c: 4b40 ldr r3, [pc, #256] @ (8001370 <MX_TIM3_Init+0x148>)
  2413. 800126e: 2280 movs r2, #128 @ 0x80
  2414. 8001270: 619a str r2, [r3, #24]
  2415. if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
  2416. 8001272: 483f ldr r0, [pc, #252] @ (8001370 <MX_TIM3_Init+0x148>)
  2417. 8001274: f00e f846 bl 800f304 <HAL_TIM_PWM_Init>
  2418. 8001278: 4603 mov r3, r0
  2419. 800127a: 2b00 cmp r3, #0
  2420. 800127c: d001 beq.n 8001282 <MX_TIM3_Init+0x5a>
  2421. {
  2422. Error_Handler();
  2423. 800127e: f000 fc85 bl 8001b8c <Error_Handler>
  2424. }
  2425. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2426. 8001282: 2300 movs r3, #0
  2427. 8001284: 61fb str r3, [r7, #28]
  2428. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2429. 8001286: 2300 movs r3, #0
  2430. 8001288: 627b str r3, [r7, #36] @ 0x24
  2431. if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
  2432. 800128a: f107 031c add.w r3, r7, #28
  2433. 800128e: 4619 mov r1, r3
  2434. 8001290: 4837 ldr r0, [pc, #220] @ (8001370 <MX_TIM3_Init+0x148>)
  2435. 8001292: f00f f9e9 bl 8010668 <HAL_TIMEx_MasterConfigSynchronization>
  2436. 8001296: 4603 mov r3, r0
  2437. 8001298: 2b00 cmp r3, #0
  2438. 800129a: d001 beq.n 80012a0 <MX_TIM3_Init+0x78>
  2439. {
  2440. Error_Handler();
  2441. 800129c: f000 fc76 bl 8001b8c <Error_Handler>
  2442. }
  2443. sConfigOC.OCMode = TIM_OCMODE_COMBINED_PWM1;
  2444. 80012a0: 4b35 ldr r3, [pc, #212] @ (8001378 <MX_TIM3_Init+0x150>)
  2445. 80012a2: 603b str r3, [r7, #0]
  2446. sConfigOC.Pulse = 500;
  2447. 80012a4: f44f 73fa mov.w r3, #500 @ 0x1f4
  2448. 80012a8: 607b str r3, [r7, #4]
  2449. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2450. 80012aa: 2300 movs r3, #0
  2451. 80012ac: 60bb str r3, [r7, #8]
  2452. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2453. 80012ae: 2300 movs r3, #0
  2454. 80012b0: 613b str r3, [r7, #16]
  2455. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_1) != HAL_OK)
  2456. 80012b2: 463b mov r3, r7
  2457. 80012b4: 2200 movs r2, #0
  2458. 80012b6: 4619 mov r1, r3
  2459. 80012b8: 482d ldr r0, [pc, #180] @ (8001370 <MX_TIM3_Init+0x148>)
  2460. 80012ba: f00e fb27 bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  2461. 80012be: 4603 mov r3, r0
  2462. 80012c0: 2b00 cmp r3, #0
  2463. 80012c2: d001 beq.n 80012c8 <MX_TIM3_Init+0xa0>
  2464. {
  2465. Error_Handler();
  2466. 80012c4: f000 fc62 bl 8001b8c <Error_Handler>
  2467. }
  2468. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_1);
  2469. 80012c8: 4b29 ldr r3, [pc, #164] @ (8001370 <MX_TIM3_Init+0x148>)
  2470. 80012ca: 681b ldr r3, [r3, #0]
  2471. 80012cc: 699a ldr r2, [r3, #24]
  2472. 80012ce: 4b28 ldr r3, [pc, #160] @ (8001370 <MX_TIM3_Init+0x148>)
  2473. 80012d0: 681b ldr r3, [r3, #0]
  2474. 80012d2: f022 0208 bic.w r2, r2, #8
  2475. 80012d6: 619a str r2, [r3, #24]
  2476. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2477. 80012d8: 2360 movs r3, #96 @ 0x60
  2478. 80012da: 603b str r3, [r7, #0]
  2479. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_2) != HAL_OK)
  2480. 80012dc: 463b mov r3, r7
  2481. 80012de: 2204 movs r2, #4
  2482. 80012e0: 4619 mov r1, r3
  2483. 80012e2: 4823 ldr r0, [pc, #140] @ (8001370 <MX_TIM3_Init+0x148>)
  2484. 80012e4: f00e fb12 bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  2485. 80012e8: 4603 mov r3, r0
  2486. 80012ea: 2b00 cmp r3, #0
  2487. 80012ec: d001 beq.n 80012f2 <MX_TIM3_Init+0xca>
  2488. {
  2489. Error_Handler();
  2490. 80012ee: f000 fc4d bl 8001b8c <Error_Handler>
  2491. }
  2492. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_2);
  2493. 80012f2: 4b1f ldr r3, [pc, #124] @ (8001370 <MX_TIM3_Init+0x148>)
  2494. 80012f4: 681b ldr r3, [r3, #0]
  2495. 80012f6: 699a ldr r2, [r3, #24]
  2496. 80012f8: 4b1d ldr r3, [pc, #116] @ (8001370 <MX_TIM3_Init+0x148>)
  2497. 80012fa: 681b ldr r3, [r3, #0]
  2498. 80012fc: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2499. 8001300: 619a str r2, [r3, #24]
  2500. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_3) != HAL_OK)
  2501. 8001302: 463b mov r3, r7
  2502. 8001304: 2208 movs r2, #8
  2503. 8001306: 4619 mov r1, r3
  2504. 8001308: 4819 ldr r0, [pc, #100] @ (8001370 <MX_TIM3_Init+0x148>)
  2505. 800130a: f00e faff bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  2506. 800130e: 4603 mov r3, r0
  2507. 8001310: 2b00 cmp r3, #0
  2508. 8001312: d001 beq.n 8001318 <MX_TIM3_Init+0xf0>
  2509. {
  2510. Error_Handler();
  2511. 8001314: f000 fc3a bl 8001b8c <Error_Handler>
  2512. }
  2513. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_3);
  2514. 8001318: 4b15 ldr r3, [pc, #84] @ (8001370 <MX_TIM3_Init+0x148>)
  2515. 800131a: 681b ldr r3, [r3, #0]
  2516. 800131c: 69da ldr r2, [r3, #28]
  2517. 800131e: 4b14 ldr r3, [pc, #80] @ (8001370 <MX_TIM3_Init+0x148>)
  2518. 8001320: 681b ldr r3, [r3, #0]
  2519. 8001322: f022 0208 bic.w r2, r2, #8
  2520. 8001326: 61da str r2, [r3, #28]
  2521. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
  2522. 8001328: 463b mov r3, r7
  2523. 800132a: 220c movs r2, #12
  2524. 800132c: 4619 mov r1, r3
  2525. 800132e: 4810 ldr r0, [pc, #64] @ (8001370 <MX_TIM3_Init+0x148>)
  2526. 8001330: f00e faec bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  2527. 8001334: 4603 mov r3, r0
  2528. 8001336: 2b00 cmp r3, #0
  2529. 8001338: d001 beq.n 800133e <MX_TIM3_Init+0x116>
  2530. {
  2531. Error_Handler();
  2532. 800133a: f000 fc27 bl 8001b8c <Error_Handler>
  2533. }
  2534. __HAL_TIM_DISABLE_OCxPRELOAD(&htim3, TIM_CHANNEL_4);
  2535. 800133e: 4b0c ldr r3, [pc, #48] @ (8001370 <MX_TIM3_Init+0x148>)
  2536. 8001340: 681b ldr r3, [r3, #0]
  2537. 8001342: 69da ldr r2, [r3, #28]
  2538. 8001344: 4b0a ldr r3, [pc, #40] @ (8001370 <MX_TIM3_Init+0x148>)
  2539. 8001346: 681b ldr r3, [r3, #0]
  2540. 8001348: f422 6200 bic.w r2, r2, #2048 @ 0x800
  2541. 800134c: 61da str r2, [r3, #28]
  2542. /* USER CODE BEGIN TIM3_Init 2 */
  2543. memcpy(&motorXYTimerConfigOC, &sConfigOC, sizeof(TIM_OC_InitTypeDef));
  2544. 800134e: 4b0b ldr r3, [pc, #44] @ (800137c <MX_TIM3_Init+0x154>)
  2545. 8001350: 461d mov r5, r3
  2546. 8001352: 463c mov r4, r7
  2547. 8001354: cc0f ldmia r4!, {r0, r1, r2, r3}
  2548. 8001356: c50f stmia r5!, {r0, r1, r2, r3}
  2549. 8001358: e894 0007 ldmia.w r4, {r0, r1, r2}
  2550. 800135c: e885 0007 stmia.w r5, {r0, r1, r2}
  2551. /* USER CODE END TIM3_Init 2 */
  2552. HAL_TIM_MspPostInit(&htim3);
  2553. 8001360: 4803 ldr r0, [pc, #12] @ (8001370 <MX_TIM3_Init+0x148>)
  2554. 8001362: f002 fd75 bl 8003e50 <HAL_TIM_MspPostInit>
  2555. }
  2556. 8001366: bf00 nop
  2557. 8001368: 3728 adds r7, #40 @ 0x28
  2558. 800136a: 46bd mov sp, r7
  2559. 800136c: bdb0 pop {r4, r5, r7, pc}
  2560. 800136e: bf00 nop
  2561. 8001370: 240005e8 .word 0x240005e8
  2562. 8001374: 40000400 .word 0x40000400
  2563. 8001378: 00010040 .word 0x00010040
  2564. 800137c: 24000888 .word 0x24000888
  2565. 08001380 <MX_TIM8_Init>:
  2566. * @brief TIM8 Initialization Function
  2567. * @param None
  2568. * @retval None
  2569. */
  2570. static void MX_TIM8_Init(void)
  2571. {
  2572. 8001380: b580 push {r7, lr}
  2573. 8001382: b088 sub sp, #32
  2574. 8001384: af00 add r7, sp, #0
  2575. /* USER CODE BEGIN TIM8_Init 0 */
  2576. /* USER CODE END TIM8_Init 0 */
  2577. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2578. 8001386: f107 0310 add.w r3, r7, #16
  2579. 800138a: 2200 movs r2, #0
  2580. 800138c: 601a str r2, [r3, #0]
  2581. 800138e: 605a str r2, [r3, #4]
  2582. 8001390: 609a str r2, [r3, #8]
  2583. 8001392: 60da str r2, [r3, #12]
  2584. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2585. 8001394: 1d3b adds r3, r7, #4
  2586. 8001396: 2200 movs r2, #0
  2587. 8001398: 601a str r2, [r3, #0]
  2588. 800139a: 605a str r2, [r3, #4]
  2589. 800139c: 609a str r2, [r3, #8]
  2590. /* USER CODE BEGIN TIM8_Init 1 */
  2591. /* USER CODE END TIM8_Init 1 */
  2592. htim8.Instance = TIM8;
  2593. 800139e: 4b20 ldr r3, [pc, #128] @ (8001420 <MX_TIM8_Init+0xa0>)
  2594. 80013a0: 4a20 ldr r2, [pc, #128] @ (8001424 <MX_TIM8_Init+0xa4>)
  2595. 80013a2: 601a str r2, [r3, #0]
  2596. htim8.Init.Prescaler = 0;
  2597. 80013a4: 4b1e ldr r3, [pc, #120] @ (8001420 <MX_TIM8_Init+0xa0>)
  2598. 80013a6: 2200 movs r2, #0
  2599. 80013a8: 605a str r2, [r3, #4]
  2600. htim8.Init.CounterMode = TIM_COUNTERMODE_UP;
  2601. 80013aa: 4b1d ldr r3, [pc, #116] @ (8001420 <MX_TIM8_Init+0xa0>)
  2602. 80013ac: 2200 movs r2, #0
  2603. 80013ae: 609a str r2, [r3, #8]
  2604. htim8.Init.Period = 1999;
  2605. 80013b0: 4b1b ldr r3, [pc, #108] @ (8001420 <MX_TIM8_Init+0xa0>)
  2606. 80013b2: f240 72cf movw r2, #1999 @ 0x7cf
  2607. 80013b6: 60da str r2, [r3, #12]
  2608. htim8.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2609. 80013b8: 4b19 ldr r3, [pc, #100] @ (8001420 <MX_TIM8_Init+0xa0>)
  2610. 80013ba: 2200 movs r2, #0
  2611. 80013bc: 611a str r2, [r3, #16]
  2612. htim8.Init.RepetitionCounter = 0;
  2613. 80013be: 4b18 ldr r3, [pc, #96] @ (8001420 <MX_TIM8_Init+0xa0>)
  2614. 80013c0: 2200 movs r2, #0
  2615. 80013c2: 615a str r2, [r3, #20]
  2616. htim8.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_ENABLE;
  2617. 80013c4: 4b16 ldr r3, [pc, #88] @ (8001420 <MX_TIM8_Init+0xa0>)
  2618. 80013c6: 2280 movs r2, #128 @ 0x80
  2619. 80013c8: 619a str r2, [r3, #24]
  2620. if (HAL_TIM_Base_Init(&htim8) != HAL_OK)
  2621. 80013ca: 4815 ldr r0, [pc, #84] @ (8001420 <MX_TIM8_Init+0xa0>)
  2622. 80013cc: f00d fe5a bl 800f084 <HAL_TIM_Base_Init>
  2623. 80013d0: 4603 mov r3, r0
  2624. 80013d2: 2b00 cmp r3, #0
  2625. 80013d4: d001 beq.n 80013da <MX_TIM8_Init+0x5a>
  2626. {
  2627. Error_Handler();
  2628. 80013d6: f000 fbd9 bl 8001b8c <Error_Handler>
  2629. }
  2630. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2631. 80013da: f44f 5380 mov.w r3, #4096 @ 0x1000
  2632. 80013de: 613b str r3, [r7, #16]
  2633. if (HAL_TIM_ConfigClockSource(&htim8, &sClockSourceConfig) != HAL_OK)
  2634. 80013e0: f107 0310 add.w r3, r7, #16
  2635. 80013e4: 4619 mov r1, r3
  2636. 80013e6: 480e ldr r0, [pc, #56] @ (8001420 <MX_TIM8_Init+0xa0>)
  2637. 80013e8: f00e fba4 bl 800fb34 <HAL_TIM_ConfigClockSource>
  2638. 80013ec: 4603 mov r3, r0
  2639. 80013ee: 2b00 cmp r3, #0
  2640. 80013f0: d001 beq.n 80013f6 <MX_TIM8_Init+0x76>
  2641. {
  2642. Error_Handler();
  2643. 80013f2: f000 fbcb bl 8001b8c <Error_Handler>
  2644. }
  2645. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2646. 80013f6: 2320 movs r3, #32
  2647. 80013f8: 607b str r3, [r7, #4]
  2648. sMasterConfig.MasterOutputTrigger2 = TIM_TRGO2_RESET;
  2649. 80013fa: 2300 movs r3, #0
  2650. 80013fc: 60bb str r3, [r7, #8]
  2651. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_ENABLE;
  2652. 80013fe: 2380 movs r3, #128 @ 0x80
  2653. 8001400: 60fb str r3, [r7, #12]
  2654. if (HAL_TIMEx_MasterConfigSynchronization(&htim8, &sMasterConfig) != HAL_OK)
  2655. 8001402: 1d3b adds r3, r7, #4
  2656. 8001404: 4619 mov r1, r3
  2657. 8001406: 4806 ldr r0, [pc, #24] @ (8001420 <MX_TIM8_Init+0xa0>)
  2658. 8001408: f00f f92e bl 8010668 <HAL_TIMEx_MasterConfigSynchronization>
  2659. 800140c: 4603 mov r3, r0
  2660. 800140e: 2b00 cmp r3, #0
  2661. 8001410: d001 beq.n 8001416 <MX_TIM8_Init+0x96>
  2662. {
  2663. Error_Handler();
  2664. 8001412: f000 fbbb bl 8001b8c <Error_Handler>
  2665. }
  2666. /* USER CODE BEGIN TIM8_Init 2 */
  2667. /* USER CODE END TIM8_Init 2 */
  2668. }
  2669. 8001416: bf00 nop
  2670. 8001418: 3720 adds r7, #32
  2671. 800141a: 46bd mov sp, r7
  2672. 800141c: bd80 pop {r7, pc}
  2673. 800141e: bf00 nop
  2674. 8001420: 24000634 .word 0x24000634
  2675. 8001424: 40010400 .word 0x40010400
  2676. 08001428 <MX_UART8_Init>:
  2677. * @brief UART8 Initialization Function
  2678. * @param None
  2679. * @retval None
  2680. */
  2681. static void MX_UART8_Init(void)
  2682. {
  2683. 8001428: b580 push {r7, lr}
  2684. 800142a: af00 add r7, sp, #0
  2685. /* USER CODE END UART8_Init 0 */
  2686. /* USER CODE BEGIN UART8_Init 1 */
  2687. /* USER CODE END UART8_Init 1 */
  2688. huart8.Instance = UART8;
  2689. 800142c: 4b22 ldr r3, [pc, #136] @ (80014b8 <MX_UART8_Init+0x90>)
  2690. 800142e: 4a23 ldr r2, [pc, #140] @ (80014bc <MX_UART8_Init+0x94>)
  2691. 8001430: 601a str r2, [r3, #0]
  2692. huart8.Init.BaudRate = 115200;
  2693. 8001432: 4b21 ldr r3, [pc, #132] @ (80014b8 <MX_UART8_Init+0x90>)
  2694. 8001434: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  2695. 8001438: 605a str r2, [r3, #4]
  2696. huart8.Init.WordLength = UART_WORDLENGTH_8B;
  2697. 800143a: 4b1f ldr r3, [pc, #124] @ (80014b8 <MX_UART8_Init+0x90>)
  2698. 800143c: 2200 movs r2, #0
  2699. 800143e: 609a str r2, [r3, #8]
  2700. huart8.Init.StopBits = UART_STOPBITS_1;
  2701. 8001440: 4b1d ldr r3, [pc, #116] @ (80014b8 <MX_UART8_Init+0x90>)
  2702. 8001442: 2200 movs r2, #0
  2703. 8001444: 60da str r2, [r3, #12]
  2704. huart8.Init.Parity = UART_PARITY_NONE;
  2705. 8001446: 4b1c ldr r3, [pc, #112] @ (80014b8 <MX_UART8_Init+0x90>)
  2706. 8001448: 2200 movs r2, #0
  2707. 800144a: 611a str r2, [r3, #16]
  2708. huart8.Init.Mode = UART_MODE_TX_RX;
  2709. 800144c: 4b1a ldr r3, [pc, #104] @ (80014b8 <MX_UART8_Init+0x90>)
  2710. 800144e: 220c movs r2, #12
  2711. 8001450: 615a str r2, [r3, #20]
  2712. huart8.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2713. 8001452: 4b19 ldr r3, [pc, #100] @ (80014b8 <MX_UART8_Init+0x90>)
  2714. 8001454: 2200 movs r2, #0
  2715. 8001456: 619a str r2, [r3, #24]
  2716. huart8.Init.OverSampling = UART_OVERSAMPLING_16;
  2717. 8001458: 4b17 ldr r3, [pc, #92] @ (80014b8 <MX_UART8_Init+0x90>)
  2718. 800145a: 2200 movs r2, #0
  2719. 800145c: 61da str r2, [r3, #28]
  2720. huart8.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  2721. 800145e: 4b16 ldr r3, [pc, #88] @ (80014b8 <MX_UART8_Init+0x90>)
  2722. 8001460: 2200 movs r2, #0
  2723. 8001462: 621a str r2, [r3, #32]
  2724. huart8.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  2725. 8001464: 4b14 ldr r3, [pc, #80] @ (80014b8 <MX_UART8_Init+0x90>)
  2726. 8001466: 2200 movs r2, #0
  2727. 8001468: 625a str r2, [r3, #36] @ 0x24
  2728. huart8.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
  2729. 800146a: 4b13 ldr r3, [pc, #76] @ (80014b8 <MX_UART8_Init+0x90>)
  2730. 800146c: 2200 movs r2, #0
  2731. 800146e: 629a str r2, [r3, #40] @ 0x28
  2732. if (HAL_UART_Init(&huart8) != HAL_OK)
  2733. 8001470: 4811 ldr r0, [pc, #68] @ (80014b8 <MX_UART8_Init+0x90>)
  2734. 8001472: f00f fa23 bl 80108bc <HAL_UART_Init>
  2735. 8001476: 4603 mov r3, r0
  2736. 8001478: 2b00 cmp r3, #0
  2737. 800147a: d001 beq.n 8001480 <MX_UART8_Init+0x58>
  2738. {
  2739. Error_Handler();
  2740. 800147c: f000 fb86 bl 8001b8c <Error_Handler>
  2741. }
  2742. if (HAL_UARTEx_SetTxFifoThreshold(&huart8, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  2743. 8001480: 2100 movs r1, #0
  2744. 8001482: 480d ldr r0, [pc, #52] @ (80014b8 <MX_UART8_Init+0x90>)
  2745. 8001484: f011 fec3 bl 801320e <HAL_UARTEx_SetTxFifoThreshold>
  2746. 8001488: 4603 mov r3, r0
  2747. 800148a: 2b00 cmp r3, #0
  2748. 800148c: d001 beq.n 8001492 <MX_UART8_Init+0x6a>
  2749. {
  2750. Error_Handler();
  2751. 800148e: f000 fb7d bl 8001b8c <Error_Handler>
  2752. }
  2753. if (HAL_UARTEx_SetRxFifoThreshold(&huart8, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  2754. 8001492: 2100 movs r1, #0
  2755. 8001494: 4808 ldr r0, [pc, #32] @ (80014b8 <MX_UART8_Init+0x90>)
  2756. 8001496: f011 fef8 bl 801328a <HAL_UARTEx_SetRxFifoThreshold>
  2757. 800149a: 4603 mov r3, r0
  2758. 800149c: 2b00 cmp r3, #0
  2759. 800149e: d001 beq.n 80014a4 <MX_UART8_Init+0x7c>
  2760. {
  2761. Error_Handler();
  2762. 80014a0: f000 fb74 bl 8001b8c <Error_Handler>
  2763. }
  2764. if (HAL_UARTEx_DisableFifoMode(&huart8) != HAL_OK)
  2765. 80014a4: 4804 ldr r0, [pc, #16] @ (80014b8 <MX_UART8_Init+0x90>)
  2766. 80014a6: f011 fe79 bl 801319c <HAL_UARTEx_DisableFifoMode>
  2767. 80014aa: 4603 mov r3, r0
  2768. 80014ac: 2b00 cmp r3, #0
  2769. 80014ae: d001 beq.n 80014b4 <MX_UART8_Init+0x8c>
  2770. {
  2771. Error_Handler();
  2772. 80014b0: f000 fb6c bl 8001b8c <Error_Handler>
  2773. }
  2774. /* USER CODE BEGIN UART8_Init 2 */
  2775. /* USER CODE END UART8_Init 2 */
  2776. }
  2777. 80014b4: bf00 nop
  2778. 80014b6: bd80 pop {r7, pc}
  2779. 80014b8: 24000680 .word 0x24000680
  2780. 80014bc: 40007c00 .word 0x40007c00
  2781. 080014c0 <MX_USART1_UART_Init>:
  2782. * @brief USART1 Initialization Function
  2783. * @param None
  2784. * @retval None
  2785. */
  2786. static void MX_USART1_UART_Init(void)
  2787. {
  2788. 80014c0: b580 push {r7, lr}
  2789. 80014c2: af00 add r7, sp, #0
  2790. /* USER CODE END USART1_Init 0 */
  2791. /* USER CODE BEGIN USART1_Init 1 */
  2792. /* USER CODE END USART1_Init 1 */
  2793. huart1.Instance = USART1;
  2794. 80014c4: 4b24 ldr r3, [pc, #144] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2795. 80014c6: 4a25 ldr r2, [pc, #148] @ (800155c <MX_USART1_UART_Init+0x9c>)
  2796. 80014c8: 601a str r2, [r3, #0]
  2797. huart1.Init.BaudRate = 115200;
  2798. 80014ca: 4b23 ldr r3, [pc, #140] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2799. 80014cc: f44f 32e1 mov.w r2, #115200 @ 0x1c200
  2800. 80014d0: 605a str r2, [r3, #4]
  2801. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  2802. 80014d2: 4b21 ldr r3, [pc, #132] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2803. 80014d4: 2200 movs r2, #0
  2804. 80014d6: 609a str r2, [r3, #8]
  2805. huart1.Init.StopBits = UART_STOPBITS_1;
  2806. 80014d8: 4b1f ldr r3, [pc, #124] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2807. 80014da: 2200 movs r2, #0
  2808. 80014dc: 60da str r2, [r3, #12]
  2809. huart1.Init.Parity = UART_PARITY_NONE;
  2810. 80014de: 4b1e ldr r3, [pc, #120] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2811. 80014e0: 2200 movs r2, #0
  2812. 80014e2: 611a str r2, [r3, #16]
  2813. huart1.Init.Mode = UART_MODE_TX_RX;
  2814. 80014e4: 4b1c ldr r3, [pc, #112] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2815. 80014e6: 220c movs r2, #12
  2816. 80014e8: 615a str r2, [r3, #20]
  2817. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2818. 80014ea: 4b1b ldr r3, [pc, #108] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2819. 80014ec: 2200 movs r2, #0
  2820. 80014ee: 619a str r2, [r3, #24]
  2821. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  2822. 80014f0: 4b19 ldr r3, [pc, #100] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2823. 80014f2: 2200 movs r2, #0
  2824. 80014f4: 61da str r2, [r3, #28]
  2825. huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  2826. 80014f6: 4b18 ldr r3, [pc, #96] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2827. 80014f8: 2200 movs r2, #0
  2828. 80014fa: 621a str r2, [r3, #32]
  2829. huart1.Init.ClockPrescaler = UART_PRESCALER_DIV1;
  2830. 80014fc: 4b16 ldr r3, [pc, #88] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2831. 80014fe: 2200 movs r2, #0
  2832. 8001500: 625a str r2, [r3, #36] @ 0x24
  2833. huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_TXINVERT_INIT;
  2834. 8001502: 4b15 ldr r3, [pc, #84] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2835. 8001504: 2201 movs r2, #1
  2836. 8001506: 629a str r2, [r3, #40] @ 0x28
  2837. huart1.AdvancedInit.TxPinLevelInvert = UART_ADVFEATURE_TXINV_ENABLE;
  2838. 8001508: 4b13 ldr r3, [pc, #76] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2839. 800150a: f44f 3200 mov.w r2, #131072 @ 0x20000
  2840. 800150e: 62da str r2, [r3, #44] @ 0x2c
  2841. if (HAL_UART_Init(&huart1) != HAL_OK)
  2842. 8001510: 4811 ldr r0, [pc, #68] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2843. 8001512: f00f f9d3 bl 80108bc <HAL_UART_Init>
  2844. 8001516: 4603 mov r3, r0
  2845. 8001518: 2b00 cmp r3, #0
  2846. 800151a: d001 beq.n 8001520 <MX_USART1_UART_Init+0x60>
  2847. {
  2848. Error_Handler();
  2849. 800151c: f000 fb36 bl 8001b8c <Error_Handler>
  2850. }
  2851. if (HAL_UARTEx_SetTxFifoThreshold(&huart1, UART_TXFIFO_THRESHOLD_1_8) != HAL_OK)
  2852. 8001520: 2100 movs r1, #0
  2853. 8001522: 480d ldr r0, [pc, #52] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2854. 8001524: f011 fe73 bl 801320e <HAL_UARTEx_SetTxFifoThreshold>
  2855. 8001528: 4603 mov r3, r0
  2856. 800152a: 2b00 cmp r3, #0
  2857. 800152c: d001 beq.n 8001532 <MX_USART1_UART_Init+0x72>
  2858. {
  2859. Error_Handler();
  2860. 800152e: f000 fb2d bl 8001b8c <Error_Handler>
  2861. }
  2862. if (HAL_UARTEx_SetRxFifoThreshold(&huart1, UART_RXFIFO_THRESHOLD_1_8) != HAL_OK)
  2863. 8001532: 2100 movs r1, #0
  2864. 8001534: 4808 ldr r0, [pc, #32] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2865. 8001536: f011 fea8 bl 801328a <HAL_UARTEx_SetRxFifoThreshold>
  2866. 800153a: 4603 mov r3, r0
  2867. 800153c: 2b00 cmp r3, #0
  2868. 800153e: d001 beq.n 8001544 <MX_USART1_UART_Init+0x84>
  2869. {
  2870. Error_Handler();
  2871. 8001540: f000 fb24 bl 8001b8c <Error_Handler>
  2872. }
  2873. if (HAL_UARTEx_DisableFifoMode(&huart1) != HAL_OK)
  2874. 8001544: 4804 ldr r0, [pc, #16] @ (8001558 <MX_USART1_UART_Init+0x98>)
  2875. 8001546: f011 fe29 bl 801319c <HAL_UARTEx_DisableFifoMode>
  2876. 800154a: 4603 mov r3, r0
  2877. 800154c: 2b00 cmp r3, #0
  2878. 800154e: d001 beq.n 8001554 <MX_USART1_UART_Init+0x94>
  2879. {
  2880. Error_Handler();
  2881. 8001550: f000 fb1c bl 8001b8c <Error_Handler>
  2882. }
  2883. /* USER CODE BEGIN USART1_Init 2 */
  2884. /* USER CODE END USART1_Init 2 */
  2885. }
  2886. 8001554: bf00 nop
  2887. 8001556: bd80 pop {r7, pc}
  2888. 8001558: 24000714 .word 0x24000714
  2889. 800155c: 40011000 .word 0x40011000
  2890. 08001560 <MX_DMA_Init>:
  2891. /**
  2892. * Enable DMA controller clock
  2893. */
  2894. static void MX_DMA_Init(void)
  2895. {
  2896. 8001560: b580 push {r7, lr}
  2897. 8001562: b082 sub sp, #8
  2898. 8001564: af00 add r7, sp, #0
  2899. /* DMA controller clock enable */
  2900. __HAL_RCC_DMA1_CLK_ENABLE();
  2901. 8001566: 4b15 ldr r3, [pc, #84] @ (80015bc <MX_DMA_Init+0x5c>)
  2902. 8001568: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  2903. 800156c: 4a13 ldr r2, [pc, #76] @ (80015bc <MX_DMA_Init+0x5c>)
  2904. 800156e: f043 0301 orr.w r3, r3, #1
  2905. 8001572: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  2906. 8001576: 4b11 ldr r3, [pc, #68] @ (80015bc <MX_DMA_Init+0x5c>)
  2907. 8001578: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  2908. 800157c: f003 0301 and.w r3, r3, #1
  2909. 8001580: 607b str r3, [r7, #4]
  2910. 8001582: 687b ldr r3, [r7, #4]
  2911. /* DMA interrupt init */
  2912. /* DMA1_Stream0_IRQn interrupt configuration */
  2913. HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 5, 0);
  2914. 8001584: 2200 movs r2, #0
  2915. 8001586: 2105 movs r1, #5
  2916. 8001588: 200b movs r0, #11
  2917. 800158a: f006 f91f bl 80077cc <HAL_NVIC_SetPriority>
  2918. HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn);
  2919. 800158e: 200b movs r0, #11
  2920. 8001590: f006 f936 bl 8007800 <HAL_NVIC_EnableIRQ>
  2921. /* DMA1_Stream1_IRQn interrupt configuration */
  2922. HAL_NVIC_SetPriority(DMA1_Stream1_IRQn, 5, 0);
  2923. 8001594: 2200 movs r2, #0
  2924. 8001596: 2105 movs r1, #5
  2925. 8001598: 200c movs r0, #12
  2926. 800159a: f006 f917 bl 80077cc <HAL_NVIC_SetPriority>
  2927. HAL_NVIC_EnableIRQ(DMA1_Stream1_IRQn);
  2928. 800159e: 200c movs r0, #12
  2929. 80015a0: f006 f92e bl 8007800 <HAL_NVIC_EnableIRQ>
  2930. /* DMA1_Stream2_IRQn interrupt configuration */
  2931. HAL_NVIC_SetPriority(DMA1_Stream2_IRQn, 5, 0);
  2932. 80015a4: 2200 movs r2, #0
  2933. 80015a6: 2105 movs r1, #5
  2934. 80015a8: 200d movs r0, #13
  2935. 80015aa: f006 f90f bl 80077cc <HAL_NVIC_SetPriority>
  2936. HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn);
  2937. 80015ae: 200d movs r0, #13
  2938. 80015b0: f006 f926 bl 8007800 <HAL_NVIC_EnableIRQ>
  2939. }
  2940. 80015b4: bf00 nop
  2941. 80015b6: 3708 adds r7, #8
  2942. 80015b8: 46bd mov sp, r7
  2943. 80015ba: bd80 pop {r7, pc}
  2944. 80015bc: 58024400 .word 0x58024400
  2945. 080015c0 <MX_GPIO_Init>:
  2946. * @brief GPIO Initialization Function
  2947. * @param None
  2948. * @retval None
  2949. */
  2950. static void MX_GPIO_Init(void)
  2951. {
  2952. 80015c0: b580 push {r7, lr}
  2953. 80015c2: b08c sub sp, #48 @ 0x30
  2954. 80015c4: af00 add r7, sp, #0
  2955. GPIO_InitTypeDef GPIO_InitStruct = {0};
  2956. 80015c6: f107 031c add.w r3, r7, #28
  2957. 80015ca: 2200 movs r2, #0
  2958. 80015cc: 601a str r2, [r3, #0]
  2959. 80015ce: 605a str r2, [r3, #4]
  2960. 80015d0: 609a str r2, [r3, #8]
  2961. 80015d2: 60da str r2, [r3, #12]
  2962. 80015d4: 611a str r2, [r3, #16]
  2963. /* USER CODE BEGIN MX_GPIO_Init_1 */
  2964. /* USER CODE END MX_GPIO_Init_1 */
  2965. /* GPIO Ports Clock Enable */
  2966. __HAL_RCC_GPIOH_CLK_ENABLE();
  2967. 80015d6: 4b5b ldr r3, [pc, #364] @ (8001744 <MX_GPIO_Init+0x184>)
  2968. 80015d8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  2969. 80015dc: 4a59 ldr r2, [pc, #356] @ (8001744 <MX_GPIO_Init+0x184>)
  2970. 80015de: f043 0380 orr.w r3, r3, #128 @ 0x80
  2971. 80015e2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  2972. 80015e6: 4b57 ldr r3, [pc, #348] @ (8001744 <MX_GPIO_Init+0x184>)
  2973. 80015e8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  2974. 80015ec: f003 0380 and.w r3, r3, #128 @ 0x80
  2975. 80015f0: 61bb str r3, [r7, #24]
  2976. 80015f2: 69bb ldr r3, [r7, #24]
  2977. __HAL_RCC_GPIOC_CLK_ENABLE();
  2978. 80015f4: 4b53 ldr r3, [pc, #332] @ (8001744 <MX_GPIO_Init+0x184>)
  2979. 80015f6: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  2980. 80015fa: 4a52 ldr r2, [pc, #328] @ (8001744 <MX_GPIO_Init+0x184>)
  2981. 80015fc: f043 0304 orr.w r3, r3, #4
  2982. 8001600: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  2983. 8001604: 4b4f ldr r3, [pc, #316] @ (8001744 <MX_GPIO_Init+0x184>)
  2984. 8001606: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  2985. 800160a: f003 0304 and.w r3, r3, #4
  2986. 800160e: 617b str r3, [r7, #20]
  2987. 8001610: 697b ldr r3, [r7, #20]
  2988. __HAL_RCC_GPIOA_CLK_ENABLE();
  2989. 8001612: 4b4c ldr r3, [pc, #304] @ (8001744 <MX_GPIO_Init+0x184>)
  2990. 8001614: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  2991. 8001618: 4a4a ldr r2, [pc, #296] @ (8001744 <MX_GPIO_Init+0x184>)
  2992. 800161a: f043 0301 orr.w r3, r3, #1
  2993. 800161e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  2994. 8001622: 4b48 ldr r3, [pc, #288] @ (8001744 <MX_GPIO_Init+0x184>)
  2995. 8001624: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  2996. 8001628: f003 0301 and.w r3, r3, #1
  2997. 800162c: 613b str r3, [r7, #16]
  2998. 800162e: 693b ldr r3, [r7, #16]
  2999. __HAL_RCC_GPIOB_CLK_ENABLE();
  3000. 8001630: 4b44 ldr r3, [pc, #272] @ (8001744 <MX_GPIO_Init+0x184>)
  3001. 8001632: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3002. 8001636: 4a43 ldr r2, [pc, #268] @ (8001744 <MX_GPIO_Init+0x184>)
  3003. 8001638: f043 0302 orr.w r3, r3, #2
  3004. 800163c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3005. 8001640: 4b40 ldr r3, [pc, #256] @ (8001744 <MX_GPIO_Init+0x184>)
  3006. 8001642: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3007. 8001646: f003 0302 and.w r3, r3, #2
  3008. 800164a: 60fb str r3, [r7, #12]
  3009. 800164c: 68fb ldr r3, [r7, #12]
  3010. __HAL_RCC_GPIOE_CLK_ENABLE();
  3011. 800164e: 4b3d ldr r3, [pc, #244] @ (8001744 <MX_GPIO_Init+0x184>)
  3012. 8001650: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3013. 8001654: 4a3b ldr r2, [pc, #236] @ (8001744 <MX_GPIO_Init+0x184>)
  3014. 8001656: f043 0310 orr.w r3, r3, #16
  3015. 800165a: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3016. 800165e: 4b39 ldr r3, [pc, #228] @ (8001744 <MX_GPIO_Init+0x184>)
  3017. 8001660: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3018. 8001664: f003 0310 and.w r3, r3, #16
  3019. 8001668: 60bb str r3, [r7, #8]
  3020. 800166a: 68bb ldr r3, [r7, #8]
  3021. __HAL_RCC_GPIOD_CLK_ENABLE();
  3022. 800166c: 4b35 ldr r3, [pc, #212] @ (8001744 <MX_GPIO_Init+0x184>)
  3023. 800166e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3024. 8001672: 4a34 ldr r2, [pc, #208] @ (8001744 <MX_GPIO_Init+0x184>)
  3025. 8001674: f043 0308 orr.w r3, r3, #8
  3026. 8001678: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  3027. 800167c: 4b31 ldr r3, [pc, #196] @ (8001744 <MX_GPIO_Init+0x184>)
  3028. 800167e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  3029. 8001682: f003 0308 and.w r3, r3, #8
  3030. 8001686: 607b str r3, [r7, #4]
  3031. 8001688: 687b ldr r3, [r7, #4]
  3032. /*Configure GPIO pin Output Level */
  3033. HAL_GPIO_WritePin(GPIOE, GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3034. 800168a: 2200 movs r2, #0
  3035. 800168c: f24e 7180 movw r1, #59264 @ 0xe780
  3036. 8001690: 482d ldr r0, [pc, #180] @ (8001748 <MX_GPIO_Init+0x188>)
  3037. 8001692: f009 fd95 bl 800b1c0 <HAL_GPIO_WritePin>
  3038. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15, GPIO_PIN_RESET);
  3039. /*Configure GPIO pin Output Level */
  3040. HAL_GPIO_WritePin(GPIOD, GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7, GPIO_PIN_RESET);
  3041. 8001696: 2200 movs r2, #0
  3042. 8001698: 21f0 movs r1, #240 @ 0xf0
  3043. 800169a: 482c ldr r0, [pc, #176] @ (800174c <MX_GPIO_Init+0x18c>)
  3044. 800169c: f009 fd90 bl 800b1c0 <HAL_GPIO_WritePin>
  3045. /*Configure GPIO pins : PE7 PE8 PE9 PE10
  3046. PE13 PE14 PE15 */
  3047. GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10
  3048. 80016a0: f24e 7380 movw r3, #59264 @ 0xe780
  3049. 80016a4: 61fb str r3, [r7, #28]
  3050. |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  3051. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3052. 80016a6: 2301 movs r3, #1
  3053. 80016a8: 623b str r3, [r7, #32]
  3054. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3055. 80016aa: 2300 movs r3, #0
  3056. 80016ac: 627b str r3, [r7, #36] @ 0x24
  3057. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3058. 80016ae: 2300 movs r3, #0
  3059. 80016b0: 62bb str r3, [r7, #40] @ 0x28
  3060. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  3061. 80016b2: f107 031c add.w r3, r7, #28
  3062. 80016b6: 4619 mov r1, r3
  3063. 80016b8: 4823 ldr r0, [pc, #140] @ (8001748 <MX_GPIO_Init+0x188>)
  3064. 80016ba: f009 fbb9 bl 800ae30 <HAL_GPIO_Init>
  3065. /*Configure GPIO pins : PB10 PB11 */
  3066. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  3067. 80016be: f44f 6340 mov.w r3, #3072 @ 0xc00
  3068. 80016c2: 61fb str r3, [r7, #28]
  3069. GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
  3070. 80016c4: f44f 1344 mov.w r3, #3211264 @ 0x310000
  3071. 80016c8: 623b str r3, [r7, #32]
  3072. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3073. 80016ca: 2300 movs r3, #0
  3074. 80016cc: 627b str r3, [r7, #36] @ 0x24
  3075. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3076. 80016ce: f107 031c add.w r3, r7, #28
  3077. 80016d2: 4619 mov r1, r3
  3078. 80016d4: 481e ldr r0, [pc, #120] @ (8001750 <MX_GPIO_Init+0x190>)
  3079. 80016d6: f009 fbab bl 800ae30 <HAL_GPIO_Init>
  3080. /*Configure GPIO pins : PD8 PD9 PD10 PD11
  3081. PD12 PD13 PD3 */
  3082. GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_11
  3083. 80016da: f643 7308 movw r3, #16136 @ 0x3f08
  3084. 80016de: 61fb str r3, [r7, #28]
  3085. |GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_3;
  3086. GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  3087. 80016e0: 2300 movs r3, #0
  3088. 80016e2: 623b str r3, [r7, #32]
  3089. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3090. 80016e4: 2300 movs r3, #0
  3091. 80016e6: 627b str r3, [r7, #36] @ 0x24
  3092. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3093. 80016e8: f107 031c add.w r3, r7, #28
  3094. 80016ec: 4619 mov r1, r3
  3095. 80016ee: 4817 ldr r0, [pc, #92] @ (800174c <MX_GPIO_Init+0x18c>)
  3096. 80016f0: f009 fb9e bl 800ae30 <HAL_GPIO_Init>
  3097. /*Configure GPIO pins : PD14 PD15 */
  3098. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  3099. 80016f4: f44f 4340 mov.w r3, #49152 @ 0xc000
  3100. 80016f8: 61fb str r3, [r7, #28]
  3101. GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
  3102. 80016fa: f44f 1344 mov.w r3, #3211264 @ 0x310000
  3103. 80016fe: 623b str r3, [r7, #32]
  3104. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3105. 8001700: 2300 movs r3, #0
  3106. 8001702: 627b str r3, [r7, #36] @ 0x24
  3107. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3108. 8001704: f107 031c add.w r3, r7, #28
  3109. 8001708: 4619 mov r1, r3
  3110. 800170a: 4810 ldr r0, [pc, #64] @ (800174c <MX_GPIO_Init+0x18c>)
  3111. 800170c: f009 fb90 bl 800ae30 <HAL_GPIO_Init>
  3112. /*Configure GPIO pins : PD4 PD5 PD6 PD7 */
  3113. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_7;
  3114. 8001710: 23f0 movs r3, #240 @ 0xf0
  3115. 8001712: 61fb str r3, [r7, #28]
  3116. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3117. 8001714: 2301 movs r3, #1
  3118. 8001716: 623b str r3, [r7, #32]
  3119. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3120. 8001718: 2300 movs r3, #0
  3121. 800171a: 627b str r3, [r7, #36] @ 0x24
  3122. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3123. 800171c: 2300 movs r3, #0
  3124. 800171e: 62bb str r3, [r7, #40] @ 0x28
  3125. HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  3126. 8001720: f107 031c add.w r3, r7, #28
  3127. 8001724: 4619 mov r1, r3
  3128. 8001726: 4809 ldr r0, [pc, #36] @ (800174c <MX_GPIO_Init+0x18c>)
  3129. 8001728: f009 fb82 bl 800ae30 <HAL_GPIO_Init>
  3130. /* EXTI interrupt init*/
  3131. HAL_NVIC_SetPriority(EXTI15_10_IRQn, 5, 0);
  3132. 800172c: 2200 movs r2, #0
  3133. 800172e: 2105 movs r1, #5
  3134. 8001730: 2028 movs r0, #40 @ 0x28
  3135. 8001732: f006 f84b bl 80077cc <HAL_NVIC_SetPriority>
  3136. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3137. 8001736: 2028 movs r0, #40 @ 0x28
  3138. 8001738: f006 f862 bl 8007800 <HAL_NVIC_EnableIRQ>
  3139. /* USER CODE BEGIN MX_GPIO_Init_2 */
  3140. /* USER CODE END MX_GPIO_Init_2 */
  3141. }
  3142. 800173c: bf00 nop
  3143. 800173e: 3730 adds r7, #48 @ 0x30
  3144. 8001740: 46bd mov sp, r7
  3145. 8001742: bd80 pop {r7, pc}
  3146. 8001744: 58024400 .word 0x58024400
  3147. 8001748: 58021000 .word 0x58021000
  3148. 800174c: 58020c00 .word 0x58020c00
  3149. 8001750: 58020400 .word 0x58020400
  3150. 08001754 <HAL_ADC_ConvCpltCallback>:
  3151. /* USER CODE BEGIN 4 */
  3152. void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *hadc)
  3153. {
  3154. 8001754: b580 push {r7, lr}
  3155. 8001756: b08a sub sp, #40 @ 0x28
  3156. 8001758: af00 add r7, sp, #0
  3157. 800175a: 6078 str r0, [r7, #4]
  3158. if(hadc->Instance == ADC1)
  3159. 800175c: 687b ldr r3, [r7, #4]
  3160. 800175e: 681b ldr r3, [r3, #0]
  3161. 8001760: 4a46 ldr r2, [pc, #280] @ (800187c <HAL_ADC_ConvCpltCallback+0x128>)
  3162. 8001762: 4293 cmp r3, r2
  3163. 8001764: d13f bne.n 80017e6 <HAL_ADC_ConvCpltCallback+0x92>
  3164. {
  3165. DbgLEDToggle(DBG_LED4);
  3166. 8001766: 2080 movs r0, #128 @ 0x80
  3167. 8001768: f001 f98a bl 8002a80 <DbgLEDToggle>
  3168. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc1Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3169. 800176c: 4b44 ldr r3, [pc, #272] @ (8001880 <HAL_ADC_ConvCpltCallback+0x12c>)
  3170. 800176e: f023 031f bic.w r3, r3, #31
  3171. 8001772: 627b str r3, [r7, #36] @ 0x24
  3172. 8001774: 2320 movs r3, #32
  3173. 8001776: 623b str r3, [r7, #32]
  3174. if ( dsize > 0 ) {
  3175. 8001778: 6a3b ldr r3, [r7, #32]
  3176. 800177a: 2b00 cmp r3, #0
  3177. 800177c: dd1d ble.n 80017ba <HAL_ADC_ConvCpltCallback+0x66>
  3178. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3179. 800177e: 6a7b ldr r3, [r7, #36] @ 0x24
  3180. 8001780: f003 021f and.w r2, r3, #31
  3181. 8001784: 6a3b ldr r3, [r7, #32]
  3182. 8001786: 4413 add r3, r2
  3183. 8001788: 61fb str r3, [r7, #28]
  3184. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3185. 800178a: 6a7b ldr r3, [r7, #36] @ 0x24
  3186. 800178c: 61bb str r3, [r7, #24]
  3187. __ASM volatile ("dsb 0xF":::"memory");
  3188. 800178e: f3bf 8f4f dsb sy
  3189. }
  3190. 8001792: bf00 nop
  3191. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3192. 8001794: 4a3b ldr r2, [pc, #236] @ (8001884 <HAL_ADC_ConvCpltCallback+0x130>)
  3193. 8001796: 69bb ldr r3, [r7, #24]
  3194. 8001798: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3195. op_addr += __SCB_DCACHE_LINE_SIZE;
  3196. 800179c: 69bb ldr r3, [r7, #24]
  3197. 800179e: 3320 adds r3, #32
  3198. 80017a0: 61bb str r3, [r7, #24]
  3199. op_size -= __SCB_DCACHE_LINE_SIZE;
  3200. 80017a2: 69fb ldr r3, [r7, #28]
  3201. 80017a4: 3b20 subs r3, #32
  3202. 80017a6: 61fb str r3, [r7, #28]
  3203. } while ( op_size > 0 );
  3204. 80017a8: 69fb ldr r3, [r7, #28]
  3205. 80017aa: 2b00 cmp r3, #0
  3206. 80017ac: dcf2 bgt.n 8001794 <HAL_ADC_ConvCpltCallback+0x40>
  3207. __ASM volatile ("dsb 0xF":::"memory");
  3208. 80017ae: f3bf 8f4f dsb sy
  3209. }
  3210. 80017b2: bf00 nop
  3211. __ASM volatile ("isb 0xF":::"memory");
  3212. 80017b4: f3bf 8f6f isb sy
  3213. }
  3214. 80017b8: bf00 nop
  3215. }
  3216. 80017ba: bf00 nop
  3217. if(adc1MeasDataQueue != NULL)
  3218. 80017bc: 4b32 ldr r3, [pc, #200] @ (8001888 <HAL_ADC_ConvCpltCallback+0x134>)
  3219. 80017be: 681b ldr r3, [r3, #0]
  3220. 80017c0: 2b00 cmp r3, #0
  3221. 80017c2: d006 beq.n 80017d2 <HAL_ADC_ConvCpltCallback+0x7e>
  3222. {
  3223. osMessageQueuePut(adc1MeasDataQueue, &adc1Data, 0, 0);
  3224. 80017c4: 4b30 ldr r3, [pc, #192] @ (8001888 <HAL_ADC_ConvCpltCallback+0x134>)
  3225. 80017c6: 6818 ldr r0, [r3, #0]
  3226. 80017c8: 2300 movs r3, #0
  3227. 80017ca: 2200 movs r2, #0
  3228. 80017cc: 492c ldr r1, [pc, #176] @ (8001880 <HAL_ADC_ConvCpltCallback+0x12c>)
  3229. 80017ce: f012 f9ed bl 8013bac <osMessageQueuePut>
  3230. }
  3231. if(HAL_ADCEx_MultiModeStart_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData*sizeof(uint32_t)) != HAL_OK)
  3232. 80017d2: 221c movs r2, #28
  3233. 80017d4: 492a ldr r1, [pc, #168] @ (8001880 <HAL_ADC_ConvCpltCallback+0x12c>)
  3234. 80017d6: 482d ldr r0, [pc, #180] @ (800188c <HAL_ADC_ConvCpltCallback+0x138>)
  3235. 80017d8: f005 fbf2 bl 8006fc0 <HAL_ADCEx_MultiModeStart_DMA>
  3236. 80017dc: 4603 mov r3, r0
  3237. 80017de: 2b00 cmp r3, #0
  3238. 80017e0: d001 beq.n 80017e6 <HAL_ADC_ConvCpltCallback+0x92>
  3239. {
  3240. Error_Handler();
  3241. 80017e2: f000 f9d3 bl 8001b8c <Error_Handler>
  3242. }
  3243. }
  3244. if(hadc->Instance == ADC3)
  3245. 80017e6: 687b ldr r3, [r7, #4]
  3246. 80017e8: 681b ldr r3, [r3, #0]
  3247. 80017ea: 4a29 ldr r2, [pc, #164] @ (8001890 <HAL_ADC_ConvCpltCallback+0x13c>)
  3248. 80017ec: 4293 cmp r3, r2
  3249. 80017ee: d13c bne.n 800186a <HAL_ADC_ConvCpltCallback+0x116>
  3250. {
  3251. SCB_InvalidateDCache_by_Addr((uint32_t*)(((uint32_t)adc3Data.adcDataBuffer) & ~(uint32_t)0x1F), __SCB_DCACHE_LINE_SIZE);
  3252. 80017f0: 4b28 ldr r3, [pc, #160] @ (8001894 <HAL_ADC_ConvCpltCallback+0x140>)
  3253. 80017f2: f023 031f bic.w r3, r3, #31
  3254. 80017f6: 617b str r3, [r7, #20]
  3255. 80017f8: 2320 movs r3, #32
  3256. 80017fa: 613b str r3, [r7, #16]
  3257. if ( dsize > 0 ) {
  3258. 80017fc: 693b ldr r3, [r7, #16]
  3259. 80017fe: 2b00 cmp r3, #0
  3260. 8001800: dd1d ble.n 800183e <HAL_ADC_ConvCpltCallback+0xea>
  3261. int32_t op_size = dsize + (((uint32_t)addr) & (__SCB_DCACHE_LINE_SIZE - 1U));
  3262. 8001802: 697b ldr r3, [r7, #20]
  3263. 8001804: f003 021f and.w r2, r3, #31
  3264. 8001808: 693b ldr r3, [r7, #16]
  3265. 800180a: 4413 add r3, r2
  3266. 800180c: 60fb str r3, [r7, #12]
  3267. uint32_t op_addr = (uint32_t)addr /* & ~(__SCB_DCACHE_LINE_SIZE - 1U) */;
  3268. 800180e: 697b ldr r3, [r7, #20]
  3269. 8001810: 60bb str r3, [r7, #8]
  3270. __ASM volatile ("dsb 0xF":::"memory");
  3271. 8001812: f3bf 8f4f dsb sy
  3272. }
  3273. 8001816: bf00 nop
  3274. SCB->DCIMVAC = op_addr; /* register accepts only 32byte aligned values, only bits 31..5 are valid */
  3275. 8001818: 4a1a ldr r2, [pc, #104] @ (8001884 <HAL_ADC_ConvCpltCallback+0x130>)
  3276. 800181a: 68bb ldr r3, [r7, #8]
  3277. 800181c: f8c2 325c str.w r3, [r2, #604] @ 0x25c
  3278. op_addr += __SCB_DCACHE_LINE_SIZE;
  3279. 8001820: 68bb ldr r3, [r7, #8]
  3280. 8001822: 3320 adds r3, #32
  3281. 8001824: 60bb str r3, [r7, #8]
  3282. op_size -= __SCB_DCACHE_LINE_SIZE;
  3283. 8001826: 68fb ldr r3, [r7, #12]
  3284. 8001828: 3b20 subs r3, #32
  3285. 800182a: 60fb str r3, [r7, #12]
  3286. } while ( op_size > 0 );
  3287. 800182c: 68fb ldr r3, [r7, #12]
  3288. 800182e: 2b00 cmp r3, #0
  3289. 8001830: dcf2 bgt.n 8001818 <HAL_ADC_ConvCpltCallback+0xc4>
  3290. __ASM volatile ("dsb 0xF":::"memory");
  3291. 8001832: f3bf 8f4f dsb sy
  3292. }
  3293. 8001836: bf00 nop
  3294. __ASM volatile ("isb 0xF":::"memory");
  3295. 8001838: f3bf 8f6f isb sy
  3296. }
  3297. 800183c: bf00 nop
  3298. }
  3299. 800183e: bf00 nop
  3300. if(adc3MeasDataQueue != NULL)
  3301. 8001840: 4b15 ldr r3, [pc, #84] @ (8001898 <HAL_ADC_ConvCpltCallback+0x144>)
  3302. 8001842: 681b ldr r3, [r3, #0]
  3303. 8001844: 2b00 cmp r3, #0
  3304. 8001846: d006 beq.n 8001856 <HAL_ADC_ConvCpltCallback+0x102>
  3305. {
  3306. osMessageQueuePut(adc3MeasDataQueue, &adc3Data, 0, 0);
  3307. 8001848: 4b13 ldr r3, [pc, #76] @ (8001898 <HAL_ADC_ConvCpltCallback+0x144>)
  3308. 800184a: 6818 ldr r0, [r3, #0]
  3309. 800184c: 2300 movs r3, #0
  3310. 800184e: 2200 movs r2, #0
  3311. 8001850: 4910 ldr r1, [pc, #64] @ (8001894 <HAL_ADC_ConvCpltCallback+0x140>)
  3312. 8001852: f012 f9ab bl 8013bac <osMessageQueuePut>
  3313. }
  3314. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData*sizeof(uint16_t)) != HAL_OK)
  3315. 8001856: 220a movs r2, #10
  3316. 8001858: 490e ldr r1, [pc, #56] @ (8001894 <HAL_ADC_ConvCpltCallback+0x140>)
  3317. 800185a: 4810 ldr r0, [pc, #64] @ (800189c <HAL_ADC_ConvCpltCallback+0x148>)
  3318. 800185c: f004 fc20 bl 80060a0 <HAL_ADC_Start_DMA>
  3319. 8001860: 4603 mov r3, r0
  3320. 8001862: 2b00 cmp r3, #0
  3321. 8001864: d001 beq.n 800186a <HAL_ADC_ConvCpltCallback+0x116>
  3322. {
  3323. Error_Handler();
  3324. 8001866: f000 f991 bl 8001b8c <Error_Handler>
  3325. }
  3326. }
  3327. osTimerStop (debugLedTimerHandle);
  3328. 800186a: 4b0d ldr r3, [pc, #52] @ (80018a0 <HAL_ADC_ConvCpltCallback+0x14c>)
  3329. 800186c: 681b ldr r3, [r3, #0]
  3330. 800186e: 4618 mov r0, r3
  3331. 8001870: f011 ffe4 bl 801383c <osTimerStop>
  3332. }
  3333. 8001874: bf00 nop
  3334. 8001876: 3728 adds r7, #40 @ 0x28
  3335. 8001878: 46bd mov sp, r7
  3336. 800187a: bd80 pop {r7, pc}
  3337. 800187c: 40022000 .word 0x40022000
  3338. 8001880: 24000240 .word 0x24000240
  3339. 8001884: e000ed00 .word 0xe000ed00
  3340. 8001888: 240008c8 .word 0x240008c8
  3341. 800188c: 24000280 .word 0x24000280
  3342. 8001890: 58026000 .word 0x58026000
  3343. 8001894: 24000260 .word 0x24000260
  3344. 8001898: 240008d0 .word 0x240008d0
  3345. 800189c: 24000348 .word 0x24000348
  3346. 80018a0: 240007ac .word 0x240007ac
  3347. 080018a4 <StartDefaultTask>:
  3348. * @param argument: Not used
  3349. * @retval None
  3350. */
  3351. /* USER CODE END Header_StartDefaultTask */
  3352. void StartDefaultTask(void *argument)
  3353. {
  3354. 80018a4: b580 push {r7, lr}
  3355. 80018a6: b082 sub sp, #8
  3356. 80018a8: af00 add r7, sp, #0
  3357. 80018aa: 6078 str r0, [r7, #4]
  3358. /* USER CODE BEGIN 5 */
  3359. #ifdef WATCHDOG_ENABLED
  3360. HAL_IWDG_Refresh(&hiwdg1);
  3361. 80018ac: 483f ldr r0, [pc, #252] @ (80019ac <StartDefaultTask+0x108>)
  3362. 80018ae: f009 fd23 bl 800b2f8 <HAL_IWDG_Refresh>
  3363. #endif
  3364. SelectCurrentSensorGain(CurrentSensorL1, csGain3);
  3365. 80018b2: 2102 movs r1, #2
  3366. 80018b4: 2000 movs r0, #0
  3367. 80018b6: f001 f901 bl 8002abc <SelectCurrentSensorGain>
  3368. SelectCurrentSensorGain(CurrentSensorL2, csGain3);
  3369. 80018ba: 2102 movs r1, #2
  3370. 80018bc: 2001 movs r0, #1
  3371. 80018be: f001 f8fd bl 8002abc <SelectCurrentSensorGain>
  3372. SelectCurrentSensorGain(CurrentSensorL3, csGain3);
  3373. 80018c2: 2102 movs r1, #2
  3374. 80018c4: 2002 movs r0, #2
  3375. 80018c6: f001 f8f9 bl 8002abc <SelectCurrentSensorGain>
  3376. EnableCurrentSensors();
  3377. 80018ca: f001 f8eb bl 8002aa4 <EnableCurrentSensors>
  3378. osDelay(pdMS_TO_TICKS(100));
  3379. 80018ce: 2064 movs r0, #100 @ 0x64
  3380. 80018d0: f011 fed9 bl 8013686 <osDelay>
  3381. #ifdef WATCHDOG_ENABLED
  3382. HAL_IWDG_Refresh(&hiwdg1);
  3383. 80018d4: 4835 ldr r0, [pc, #212] @ (80019ac <StartDefaultTask+0x108>)
  3384. 80018d6: f009 fd0f bl 800b2f8 <HAL_IWDG_Refresh>
  3385. #endif
  3386. if(HAL_TIM_Base_Start(&htim8) != HAL_OK)
  3387. 80018da: 4835 ldr r0, [pc, #212] @ (80019b0 <StartDefaultTask+0x10c>)
  3388. 80018dc: f00d fc2a bl 800f134 <HAL_TIM_Base_Start>
  3389. 80018e0: 4603 mov r3, r0
  3390. 80018e2: 2b00 cmp r3, #0
  3391. 80018e4: d001 beq.n 80018ea <StartDefaultTask+0x46>
  3392. {
  3393. Error_Handler();
  3394. 80018e6: f000 f951 bl 8001b8c <Error_Handler>
  3395. }
  3396. if(HAL_ADCEx_MultiModeStart_DMA(&hadc1, (uint32_t *)adc1Data.adcDataBuffer, ADC1LastData*sizeof(uint32_t)) != HAL_OK)
  3397. 80018ea: 221c movs r2, #28
  3398. 80018ec: 4931 ldr r1, [pc, #196] @ (80019b4 <StartDefaultTask+0x110>)
  3399. 80018ee: 4832 ldr r0, [pc, #200] @ (80019b8 <StartDefaultTask+0x114>)
  3400. 80018f0: f005 fb66 bl 8006fc0 <HAL_ADCEx_MultiModeStart_DMA>
  3401. 80018f4: 4603 mov r3, r0
  3402. 80018f6: 2b00 cmp r3, #0
  3403. 80018f8: d001 beq.n 80018fe <StartDefaultTask+0x5a>
  3404. {
  3405. Error_Handler();
  3406. 80018fa: f000 f947 bl 8001b8c <Error_Handler>
  3407. }
  3408. if(HAL_ADC_Start_DMA(&hadc3, (uint32_t *)adc3Data.adcDataBuffer, ADC3LastData*sizeof(uint16_t)) != HAL_OK)
  3409. 80018fe: 220a movs r2, #10
  3410. 8001900: 492e ldr r1, [pc, #184] @ (80019bc <StartDefaultTask+0x118>)
  3411. 8001902: 482f ldr r0, [pc, #188] @ (80019c0 <StartDefaultTask+0x11c>)
  3412. 8001904: f004 fbcc bl 80060a0 <HAL_ADC_Start_DMA>
  3413. 8001908: 4603 mov r3, r0
  3414. 800190a: 2b00 cmp r3, #0
  3415. 800190c: d001 beq.n 8001912 <StartDefaultTask+0x6e>
  3416. {
  3417. Error_Handler();
  3418. 800190e: f000 f93d bl 8001b8c <Error_Handler>
  3419. }
  3420. HAL_COMP_Start(&hcomp1);
  3421. 8001912: 482c ldr r0, [pc, #176] @ (80019c4 <StartDefaultTask+0x120>)
  3422. 8001914: f005 fe3a bl 800758c <HAL_COMP_Start>
  3423. #ifdef WATCHDOG_ENABLED
  3424. HAL_IWDG_Refresh(&hiwdg1);
  3425. 8001918: 4824 ldr r0, [pc, #144] @ (80019ac <StartDefaultTask+0x108>)
  3426. 800191a: f009 fced bl 800b2f8 <HAL_IWDG_Refresh>
  3427. #endif
  3428. /* Infinite loop */
  3429. for(;;)
  3430. {
  3431. osDelay(pdMS_TO_TICKS(100));
  3432. 800191e: 2064 movs r0, #100 @ 0x64
  3433. 8001920: f011 feb1 bl 8013686 <osDelay>
  3434. #ifdef WATCHDOG_ENABLED
  3435. HAL_IWDG_Refresh(&hiwdg1);
  3436. 8001924: 4821 ldr r0, [pc, #132] @ (80019ac <StartDefaultTask+0x108>)
  3437. 8001926: f009 fce7 bl 800b2f8 <HAL_IWDG_Refresh>
  3438. #endif
  3439. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  3440. 800192a: 2100 movs r1, #0
  3441. 800192c: 4826 ldr r0, [pc, #152] @ (80019c8 <StartDefaultTask+0x124>)
  3442. 800192e: f00e fa21 bl 800fd74 <HAL_TIM_GetChannelState>
  3443. 8001932: 4603 mov r3, r0
  3444. 8001934: 2b01 cmp r3, #1
  3445. 8001936: d118 bne.n 800196a <StartDefaultTask+0xc6>
  3446. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_2) == HAL_TIM_CHANNEL_STATE_READY)
  3447. 8001938: 2104 movs r1, #4
  3448. 800193a: 4823 ldr r0, [pc, #140] @ (80019c8 <StartDefaultTask+0x124>)
  3449. 800193c: f00e fa1a bl 800fd74 <HAL_TIM_GetChannelState>
  3450. 8001940: 4603 mov r3, r0
  3451. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_1) == HAL_TIM_CHANNEL_STATE_READY &&
  3452. 8001942: 2b01 cmp r3, #1
  3453. 8001944: d111 bne.n 800196a <StartDefaultTask+0xc6>
  3454. {
  3455. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  3456. 8001946: 4b21 ldr r3, [pc, #132] @ (80019cc <StartDefaultTask+0x128>)
  3457. 8001948: 681b ldr r3, [r3, #0]
  3458. 800194a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  3459. 800194e: 4618 mov r0, r3
  3460. 8001950: f012 f831 bl 80139b6 <osMutexAcquire>
  3461. 8001954: 4603 mov r3, r0
  3462. 8001956: 2b00 cmp r3, #0
  3463. 8001958: d107 bne.n 800196a <StartDefaultTask+0xc6>
  3464. {
  3465. sensorsInfo.motorXStatus = 0;
  3466. 800195a: 4b1d ldr r3, [pc, #116] @ (80019d0 <StartDefaultTask+0x12c>)
  3467. 800195c: 2200 movs r2, #0
  3468. 800195e: 751a strb r2, [r3, #20]
  3469. osMutexRelease(sensorsInfoMutex);
  3470. 8001960: 4b1a ldr r3, [pc, #104] @ (80019cc <StartDefaultTask+0x128>)
  3471. 8001962: 681b ldr r3, [r3, #0]
  3472. 8001964: 4618 mov r0, r3
  3473. 8001966: f012 f871 bl 8013a4c <osMutexRelease>
  3474. }
  3475. }
  3476. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  3477. 800196a: 2108 movs r1, #8
  3478. 800196c: 4816 ldr r0, [pc, #88] @ (80019c8 <StartDefaultTask+0x124>)
  3479. 800196e: f00e fa01 bl 800fd74 <HAL_TIM_GetChannelState>
  3480. 8001972: 4603 mov r3, r0
  3481. 8001974: 2b01 cmp r3, #1
  3482. 8001976: d1d2 bne.n 800191e <StartDefaultTask+0x7a>
  3483. HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_4) == HAL_TIM_CHANNEL_STATE_READY)
  3484. 8001978: 210c movs r1, #12
  3485. 800197a: 4813 ldr r0, [pc, #76] @ (80019c8 <StartDefaultTask+0x124>)
  3486. 800197c: f00e f9fa bl 800fd74 <HAL_TIM_GetChannelState>
  3487. 8001980: 4603 mov r3, r0
  3488. if(HAL_TIM_GetChannelState(&htim3, TIM_CHANNEL_3) == HAL_TIM_CHANNEL_STATE_READY &&
  3489. 8001982: 2b01 cmp r3, #1
  3490. 8001984: d1cb bne.n 800191e <StartDefaultTask+0x7a>
  3491. {
  3492. if(osMutexAcquire(sensorsInfoMutex, osWaitForever) == osOK)
  3493. 8001986: 4b11 ldr r3, [pc, #68] @ (80019cc <StartDefaultTask+0x128>)
  3494. 8001988: 681b ldr r3, [r3, #0]
  3495. 800198a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  3496. 800198e: 4618 mov r0, r3
  3497. 8001990: f012 f811 bl 80139b6 <osMutexAcquire>
  3498. 8001994: 4603 mov r3, r0
  3499. 8001996: 2b00 cmp r3, #0
  3500. 8001998: d1c1 bne.n 800191e <StartDefaultTask+0x7a>
  3501. {
  3502. sensorsInfo.motorYStatus = 0;
  3503. 800199a: 4b0d ldr r3, [pc, #52] @ (80019d0 <StartDefaultTask+0x12c>)
  3504. 800199c: 2200 movs r2, #0
  3505. 800199e: 755a strb r2, [r3, #21]
  3506. osMutexRelease(sensorsInfoMutex);
  3507. 80019a0: 4b0a ldr r3, [pc, #40] @ (80019cc <StartDefaultTask+0x128>)
  3508. 80019a2: 681b ldr r3, [r3, #0]
  3509. 80019a4: 4618 mov r0, r3
  3510. 80019a6: f012 f851 bl 8013a4c <osMutexRelease>
  3511. osDelay(pdMS_TO_TICKS(100));
  3512. 80019aa: e7b8 b.n 800191e <StartDefaultTask+0x7a>
  3513. 80019ac: 24000578 .word 0x24000578
  3514. 80019b0: 24000634 .word 0x24000634
  3515. 80019b4: 24000240 .word 0x24000240
  3516. 80019b8: 24000280 .word 0x24000280
  3517. 80019bc: 24000260 .word 0x24000260
  3518. 80019c0: 24000348 .word 0x24000348
  3519. 80019c4: 24000514 .word 0x24000514
  3520. 80019c8: 240005e8 .word 0x240005e8
  3521. 80019cc: 240008dc .word 0x240008dc
  3522. 80019d0: 24000940 .word 0x24000940
  3523. 080019d4 <debugLedTimerCallback>:
  3524. /* USER CODE END 5 */
  3525. }
  3526. /* debugLedTimerCallback function */
  3527. void debugLedTimerCallback(void *argument)
  3528. {
  3529. 80019d4: b580 push {r7, lr}
  3530. 80019d6: b082 sub sp, #8
  3531. 80019d8: af00 add r7, sp, #0
  3532. 80019da: 6078 str r0, [r7, #4]
  3533. /* USER CODE BEGIN debugLedTimerCallback */
  3534. DbgLEDOff (DBG_LED1);
  3535. 80019dc: 2010 movs r0, #16
  3536. 80019de: f001 f83d bl 8002a5c <DbgLEDOff>
  3537. /* USER CODE END debugLedTimerCallback */
  3538. }
  3539. 80019e2: bf00 nop
  3540. 80019e4: 3708 adds r7, #8
  3541. 80019e6: 46bd mov sp, r7
  3542. 80019e8: bd80 pop {r7, pc}
  3543. ...
  3544. 080019ec <fanTimerCallback>:
  3545. /* fanTimerCallback function */
  3546. void fanTimerCallback(void *argument)
  3547. {
  3548. 80019ec: b580 push {r7, lr}
  3549. 80019ee: b082 sub sp, #8
  3550. 80019f0: af00 add r7, sp, #0
  3551. 80019f2: 6078 str r0, [r7, #4]
  3552. /* USER CODE BEGIN fanTimerCallback */
  3553. HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_2);
  3554. 80019f4: 2104 movs r1, #4
  3555. 80019f6: 4803 ldr r0, [pc, #12] @ (8001a04 <fanTimerCallback+0x18>)
  3556. 80019f8: f00d fdea bl 800f5d0 <HAL_TIM_PWM_Stop>
  3557. /* USER CODE END fanTimerCallback */
  3558. }
  3559. 80019fc: bf00 nop
  3560. 80019fe: 3708 adds r7, #8
  3561. 8001a00: 46bd mov sp, r7
  3562. 8001a02: bd80 pop {r7, pc}
  3563. 8001a04: 2400059c .word 0x2400059c
  3564. 08001a08 <motorXTimerCallback>:
  3565. /* motorXTimerCallback function */
  3566. void motorXTimerCallback(void *argument)
  3567. {
  3568. 8001a08: b580 push {r7, lr}
  3569. 8001a0a: b084 sub sp, #16
  3570. 8001a0c: af02 add r7, sp, #8
  3571. 8001a0e: 6078 str r0, [r7, #4]
  3572. /* USER CODE BEGIN motorXTimerCallback */
  3573. MotorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, HiZ, 0);
  3574. 8001a10: 2300 movs r3, #0
  3575. 8001a12: 9301 str r3, [sp, #4]
  3576. 8001a14: 2300 movs r3, #0
  3577. 8001a16: 9300 str r3, [sp, #0]
  3578. 8001a18: 2304 movs r3, #4
  3579. 8001a1a: 2200 movs r2, #0
  3580. 8001a1c: 4907 ldr r1, [pc, #28] @ (8001a3c <motorXTimerCallback+0x34>)
  3581. 8001a1e: 4808 ldr r0, [pc, #32] @ (8001a40 <motorXTimerCallback+0x38>)
  3582. 8001a20: f001 f9d1 bl 8002dc6 <MotorAction>
  3583. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_1);
  3584. 8001a24: 2100 movs r1, #0
  3585. 8001a26: 4806 ldr r0, [pc, #24] @ (8001a40 <motorXTimerCallback+0x38>)
  3586. 8001a28: f00d fdd2 bl 800f5d0 <HAL_TIM_PWM_Stop>
  3587. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_2);
  3588. 8001a2c: 2104 movs r1, #4
  3589. 8001a2e: 4804 ldr r0, [pc, #16] @ (8001a40 <motorXTimerCallback+0x38>)
  3590. 8001a30: f00d fdce bl 800f5d0 <HAL_TIM_PWM_Stop>
  3591. /* USER CODE END motorXTimerCallback */
  3592. }
  3593. 8001a34: bf00 nop
  3594. 8001a36: 3708 adds r7, #8
  3595. 8001a38: 46bd mov sp, r7
  3596. 8001a3a: bd80 pop {r7, pc}
  3597. 8001a3c: 24000888 .word 0x24000888
  3598. 8001a40: 240005e8 .word 0x240005e8
  3599. 08001a44 <motorYTimerCallback>:
  3600. /* motorYTimerCallback function */
  3601. void motorYTimerCallback(void *argument)
  3602. {
  3603. 8001a44: b580 push {r7, lr}
  3604. 8001a46: b084 sub sp, #16
  3605. 8001a48: af02 add r7, sp, #8
  3606. 8001a4a: 6078 str r0, [r7, #4]
  3607. /* USER CODE BEGIN motorYTimerCallback */
  3608. MotorAction(&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, HiZ, 0);
  3609. 8001a4c: 2300 movs r3, #0
  3610. 8001a4e: 9301 str r3, [sp, #4]
  3611. 8001a50: 2300 movs r3, #0
  3612. 8001a52: 9300 str r3, [sp, #0]
  3613. 8001a54: 230c movs r3, #12
  3614. 8001a56: 2208 movs r2, #8
  3615. 8001a58: 4907 ldr r1, [pc, #28] @ (8001a78 <motorYTimerCallback+0x34>)
  3616. 8001a5a: 4808 ldr r0, [pc, #32] @ (8001a7c <motorYTimerCallback+0x38>)
  3617. 8001a5c: f001 f9b3 bl 8002dc6 <MotorAction>
  3618. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_3);
  3619. 8001a60: 2108 movs r1, #8
  3620. 8001a62: 4806 ldr r0, [pc, #24] @ (8001a7c <motorYTimerCallback+0x38>)
  3621. 8001a64: f00d fdb4 bl 800f5d0 <HAL_TIM_PWM_Stop>
  3622. HAL_TIM_PWM_Stop(&htim3, TIM_CHANNEL_4);
  3623. 8001a68: 210c movs r1, #12
  3624. 8001a6a: 4804 ldr r0, [pc, #16] @ (8001a7c <motorYTimerCallback+0x38>)
  3625. 8001a6c: f00d fdb0 bl 800f5d0 <HAL_TIM_PWM_Stop>
  3626. /* USER CODE END motorYTimerCallback */
  3627. }
  3628. 8001a70: bf00 nop
  3629. 8001a72: 3708 adds r7, #8
  3630. 8001a74: 46bd mov sp, r7
  3631. 8001a76: bd80 pop {r7, pc}
  3632. 8001a78: 24000888 .word 0x24000888
  3633. 8001a7c: 240005e8 .word 0x240005e8
  3634. 08001a80 <MPU_Config>:
  3635. /* MPU Configuration */
  3636. void MPU_Config(void)
  3637. {
  3638. 8001a80: b580 push {r7, lr}
  3639. 8001a82: b084 sub sp, #16
  3640. 8001a84: af00 add r7, sp, #0
  3641. MPU_Region_InitTypeDef MPU_InitStruct = {0};
  3642. 8001a86: 463b mov r3, r7
  3643. 8001a88: 2200 movs r2, #0
  3644. 8001a8a: 601a str r2, [r3, #0]
  3645. 8001a8c: 605a str r2, [r3, #4]
  3646. 8001a8e: 609a str r2, [r3, #8]
  3647. 8001a90: 60da str r2, [r3, #12]
  3648. /* Disables the MPU */
  3649. HAL_MPU_Disable();
  3650. 8001a92: f005 fec3 bl 800781c <HAL_MPU_Disable>
  3651. /** Initializes and configures the Region and the memory to be protected
  3652. */
  3653. MPU_InitStruct.Enable = MPU_REGION_ENABLE;
  3654. 8001a96: 2301 movs r3, #1
  3655. 8001a98: 703b strb r3, [r7, #0]
  3656. MPU_InitStruct.Number = MPU_REGION_NUMBER0;
  3657. 8001a9a: 2300 movs r3, #0
  3658. 8001a9c: 707b strb r3, [r7, #1]
  3659. MPU_InitStruct.BaseAddress = 0x0;
  3660. 8001a9e: 2300 movs r3, #0
  3661. 8001aa0: 607b str r3, [r7, #4]
  3662. MPU_InitStruct.Size = MPU_REGION_SIZE_4GB;
  3663. 8001aa2: 231f movs r3, #31
  3664. 8001aa4: 723b strb r3, [r7, #8]
  3665. MPU_InitStruct.SubRegionDisable = 0x87;
  3666. 8001aa6: 2387 movs r3, #135 @ 0x87
  3667. 8001aa8: 727b strb r3, [r7, #9]
  3668. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  3669. 8001aaa: 2300 movs r3, #0
  3670. 8001aac: 72bb strb r3, [r7, #10]
  3671. MPU_InitStruct.AccessPermission = MPU_REGION_NO_ACCESS;
  3672. 8001aae: 2300 movs r3, #0
  3673. 8001ab0: 72fb strb r3, [r7, #11]
  3674. MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE;
  3675. 8001ab2: 2301 movs r3, #1
  3676. 8001ab4: 733b strb r3, [r7, #12]
  3677. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  3678. 8001ab6: 2301 movs r3, #1
  3679. 8001ab8: 737b strb r3, [r7, #13]
  3680. MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE;
  3681. 8001aba: 2300 movs r3, #0
  3682. 8001abc: 73bb strb r3, [r7, #14]
  3683. MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
  3684. 8001abe: 2300 movs r3, #0
  3685. 8001ac0: 73fb strb r3, [r7, #15]
  3686. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  3687. 8001ac2: 463b mov r3, r7
  3688. 8001ac4: 4618 mov r0, r3
  3689. 8001ac6: f005 fee1 bl 800788c <HAL_MPU_ConfigRegion>
  3690. /** Initializes and configures the Region and the memory to be protected
  3691. */
  3692. MPU_InitStruct.Number = MPU_REGION_NUMBER1;
  3693. 8001aca: 2301 movs r3, #1
  3694. 8001acc: 707b strb r3, [r7, #1]
  3695. MPU_InitStruct.BaseAddress = 0x24020000;
  3696. 8001ace: 4b13 ldr r3, [pc, #76] @ (8001b1c <MPU_Config+0x9c>)
  3697. 8001ad0: 607b str r3, [r7, #4]
  3698. MPU_InitStruct.Size = MPU_REGION_SIZE_128KB;
  3699. 8001ad2: 2310 movs r3, #16
  3700. 8001ad4: 723b strb r3, [r7, #8]
  3701. MPU_InitStruct.SubRegionDisable = 0x0;
  3702. 8001ad6: 2300 movs r3, #0
  3703. 8001ad8: 727b strb r3, [r7, #9]
  3704. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1;
  3705. 8001ada: 2301 movs r3, #1
  3706. 8001adc: 72bb strb r3, [r7, #10]
  3707. MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
  3708. 8001ade: 2303 movs r3, #3
  3709. 8001ae0: 72fb strb r3, [r7, #11]
  3710. MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
  3711. 8001ae2: 2300 movs r3, #0
  3712. 8001ae4: 737b strb r3, [r7, #13]
  3713. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  3714. 8001ae6: 463b mov r3, r7
  3715. 8001ae8: 4618 mov r0, r3
  3716. 8001aea: f005 fecf bl 800788c <HAL_MPU_ConfigRegion>
  3717. /** Initializes and configures the Region and the memory to be protected
  3718. */
  3719. MPU_InitStruct.Number = MPU_REGION_NUMBER2;
  3720. 8001aee: 2302 movs r3, #2
  3721. 8001af0: 707b strb r3, [r7, #1]
  3722. MPU_InitStruct.BaseAddress = 0x24040000;
  3723. 8001af2: 4b0b ldr r3, [pc, #44] @ (8001b20 <MPU_Config+0xa0>)
  3724. 8001af4: 607b str r3, [r7, #4]
  3725. MPU_InitStruct.Size = MPU_REGION_SIZE_512B;
  3726. 8001af6: 2308 movs r3, #8
  3727. 8001af8: 723b strb r3, [r7, #8]
  3728. MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
  3729. 8001afa: 2300 movs r3, #0
  3730. 8001afc: 72bb strb r3, [r7, #10]
  3731. MPU_InitStruct.IsShareable = MPU_ACCESS_SHAREABLE;
  3732. 8001afe: 2301 movs r3, #1
  3733. 8001b00: 737b strb r3, [r7, #13]
  3734. MPU_InitStruct.IsBufferable = MPU_ACCESS_BUFFERABLE;
  3735. 8001b02: 2301 movs r3, #1
  3736. 8001b04: 73fb strb r3, [r7, #15]
  3737. HAL_MPU_ConfigRegion(&MPU_InitStruct);
  3738. 8001b06: 463b mov r3, r7
  3739. 8001b08: 4618 mov r0, r3
  3740. 8001b0a: f005 febf bl 800788c <HAL_MPU_ConfigRegion>
  3741. /* Enables the MPU */
  3742. HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
  3743. 8001b0e: 2004 movs r0, #4
  3744. 8001b10: f005 fe9c bl 800784c <HAL_MPU_Enable>
  3745. }
  3746. 8001b14: bf00 nop
  3747. 8001b16: 3710 adds r7, #16
  3748. 8001b18: 46bd mov sp, r7
  3749. 8001b1a: bd80 pop {r7, pc}
  3750. 8001b1c: 24020000 .word 0x24020000
  3751. 8001b20: 24040000 .word 0x24040000
  3752. 08001b24 <HAL_TIM_PeriodElapsedCallback>:
  3753. * a global variable "uwTick" used as application time base.
  3754. * @param htim : TIM handle
  3755. * @retval None
  3756. */
  3757. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  3758. {
  3759. 8001b24: b580 push {r7, lr}
  3760. 8001b26: b082 sub sp, #8
  3761. 8001b28: af00 add r7, sp, #0
  3762. 8001b2a: 6078 str r0, [r7, #4]
  3763. /* USER CODE BEGIN Callback 0 */
  3764. /* USER CODE END Callback 0 */
  3765. if (htim->Instance == TIM6) {
  3766. 8001b2c: 687b ldr r3, [r7, #4]
  3767. 8001b2e: 681b ldr r3, [r3, #0]
  3768. 8001b30: 4a10 ldr r2, [pc, #64] @ (8001b74 <HAL_TIM_PeriodElapsedCallback+0x50>)
  3769. 8001b32: 4293 cmp r3, r2
  3770. 8001b34: d102 bne.n 8001b3c <HAL_TIM_PeriodElapsedCallback+0x18>
  3771. HAL_IncTick();
  3772. 8001b36: f003 fe9d bl 8005874 <HAL_IncTick>
  3773. {
  3774. encoderYChannelA = 0;
  3775. encoderYChannelB = 0;
  3776. }
  3777. /* USER CODE END Callback 1 */
  3778. }
  3779. 8001b3a: e016 b.n 8001b6a <HAL_TIM_PeriodElapsedCallback+0x46>
  3780. else if (htim->Instance == TIM4)
  3781. 8001b3c: 687b ldr r3, [r7, #4]
  3782. 8001b3e: 681b ldr r3, [r3, #0]
  3783. 8001b40: 4a0d ldr r2, [pc, #52] @ (8001b78 <HAL_TIM_PeriodElapsedCallback+0x54>)
  3784. 8001b42: 4293 cmp r3, r2
  3785. 8001b44: d106 bne.n 8001b54 <HAL_TIM_PeriodElapsedCallback+0x30>
  3786. encoderXChannelA = 0;
  3787. 8001b46: 4b0d ldr r3, [pc, #52] @ (8001b7c <HAL_TIM_PeriodElapsedCallback+0x58>)
  3788. 8001b48: 2200 movs r2, #0
  3789. 8001b4a: 601a str r2, [r3, #0]
  3790. encoderXChannelB = 0;
  3791. 8001b4c: 4b0c ldr r3, [pc, #48] @ (8001b80 <HAL_TIM_PeriodElapsedCallback+0x5c>)
  3792. 8001b4e: 2200 movs r2, #0
  3793. 8001b50: 601a str r2, [r3, #0]
  3794. }
  3795. 8001b52: e00a b.n 8001b6a <HAL_TIM_PeriodElapsedCallback+0x46>
  3796. else if (htim->Instance == TIM2)
  3797. 8001b54: 687b ldr r3, [r7, #4]
  3798. 8001b56: 681b ldr r3, [r3, #0]
  3799. 8001b58: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  3800. 8001b5c: d105 bne.n 8001b6a <HAL_TIM_PeriodElapsedCallback+0x46>
  3801. encoderYChannelA = 0;
  3802. 8001b5e: 4b09 ldr r3, [pc, #36] @ (8001b84 <HAL_TIM_PeriodElapsedCallback+0x60>)
  3803. 8001b60: 2200 movs r2, #0
  3804. 8001b62: 601a str r2, [r3, #0]
  3805. encoderYChannelB = 0;
  3806. 8001b64: 4b08 ldr r3, [pc, #32] @ (8001b88 <HAL_TIM_PeriodElapsedCallback+0x64>)
  3807. 8001b66: 2200 movs r2, #0
  3808. 8001b68: 601a str r2, [r3, #0]
  3809. }
  3810. 8001b6a: bf00 nop
  3811. 8001b6c: 3708 adds r7, #8
  3812. 8001b6e: 46bd mov sp, r7
  3813. 8001b70: bd80 pop {r7, pc}
  3814. 8001b72: bf00 nop
  3815. 8001b74: 40001000 .word 0x40001000
  3816. 8001b78: 40000800 .word 0x40000800
  3817. 8001b7c: 240008a4 .word 0x240008a4
  3818. 8001b80: 240008a8 .word 0x240008a8
  3819. 8001b84: 240008ac .word 0x240008ac
  3820. 8001b88: 240008b0 .word 0x240008b0
  3821. 08001b8c <Error_Handler>:
  3822. /**
  3823. * @brief This function is executed in case of error occurrence.
  3824. * @retval None
  3825. */
  3826. void Error_Handler(void)
  3827. {
  3828. 8001b8c: b580 push {r7, lr}
  3829. 8001b8e: af00 add r7, sp, #0
  3830. __ASM volatile ("cpsid i" : : : "memory");
  3831. 8001b90: b672 cpsid i
  3832. }
  3833. 8001b92: bf00 nop
  3834. /* USER CODE BEGIN Error_Handler_Debug */
  3835. /* User can add his own implementation to report the HAL error return state */
  3836. __disable_irq();
  3837. NVIC_SystemReset();
  3838. 8001b94: f7fe fd80 bl 8000698 <__NVIC_SystemReset>
  3839. 08001b98 <MeasTasksInit>:
  3840. arg = delta*i + phase;
  3841. outBuff[i] = amplitude * arm_sin_f32(arg);
  3842. }
  3843. }
  3844. void MeasTasksInit (void) {
  3845. 8001b98: b590 push {r4, r7, lr}
  3846. 8001b9a: b0ab sub sp, #172 @ 0xac
  3847. 8001b9c: af00 add r7, sp, #0
  3848. vRefmVMutex = osMutexNew (NULL);
  3849. 8001b9e: 2000 movs r0, #0
  3850. 8001ba0: f011 fe83 bl 80138aa <osMutexNew>
  3851. 8001ba4: 4603 mov r3, r0
  3852. 8001ba6: 4a72 ldr r2, [pc, #456] @ (8001d70 <MeasTasksInit+0x1d8>)
  3853. 8001ba8: 6013 str r3, [r2, #0]
  3854. resMeasurementsMutex = osMutexNew (NULL);
  3855. 8001baa: 2000 movs r0, #0
  3856. 8001bac: f011 fe7d bl 80138aa <osMutexNew>
  3857. 8001bb0: 4603 mov r3, r0
  3858. 8001bb2: 4a70 ldr r2, [pc, #448] @ (8001d74 <MeasTasksInit+0x1dc>)
  3859. 8001bb4: 6013 str r3, [r2, #0]
  3860. sensorsInfoMutex = osMutexNew (NULL);
  3861. 8001bb6: 2000 movs r0, #0
  3862. 8001bb8: f011 fe77 bl 80138aa <osMutexNew>
  3863. 8001bbc: 4603 mov r3, r0
  3864. 8001bbe: 4a6e ldr r2, [pc, #440] @ (8001d78 <MeasTasksInit+0x1e0>)
  3865. 8001bc0: 6013 str r3, [r2, #0]
  3866. ILxRefMutex = osMutexNew (NULL);
  3867. 8001bc2: 2000 movs r0, #0
  3868. 8001bc4: f011 fe71 bl 80138aa <osMutexNew>
  3869. 8001bc8: 4603 mov r3, r0
  3870. 8001bca: 4a6c ldr r2, [pc, #432] @ (8001d7c <MeasTasksInit+0x1e4>)
  3871. 8001bcc: 6013 str r3, [r2, #0]
  3872. adc1MeasDataQueue = osMessageQueueNew (8, sizeof (ADC1_Data), NULL);
  3873. 8001bce: 2200 movs r2, #0
  3874. 8001bd0: 2120 movs r1, #32
  3875. 8001bd2: 2008 movs r0, #8
  3876. 8001bd4: f011 ff77 bl 8013ac6 <osMessageQueueNew>
  3877. 8001bd8: 4603 mov r3, r0
  3878. 8001bda: 4a69 ldr r2, [pc, #420] @ (8001d80 <MeasTasksInit+0x1e8>)
  3879. 8001bdc: 6013 str r3, [r2, #0]
  3880. adc2MeasDataQueue = osMessageQueueNew (8, sizeof (ADC2_Data), NULL);
  3881. 8001bde: 2200 movs r2, #0
  3882. 8001be0: 2120 movs r1, #32
  3883. 8001be2: 2008 movs r0, #8
  3884. 8001be4: f011 ff6f bl 8013ac6 <osMessageQueueNew>
  3885. 8001be8: 4603 mov r3, r0
  3886. 8001bea: 4a66 ldr r2, [pc, #408] @ (8001d84 <MeasTasksInit+0x1ec>)
  3887. 8001bec: 6013 str r3, [r2, #0]
  3888. adc3MeasDataQueue = osMessageQueueNew (8, sizeof (ADC3_Data), NULL);
  3889. 8001bee: 2200 movs r2, #0
  3890. 8001bf0: 2120 movs r1, #32
  3891. 8001bf2: 2008 movs r0, #8
  3892. 8001bf4: f011 ff67 bl 8013ac6 <osMessageQueueNew>
  3893. 8001bf8: 4603 mov r3, r0
  3894. 8001bfa: 4a63 ldr r2, [pc, #396] @ (8001d88 <MeasTasksInit+0x1f0>)
  3895. 8001bfc: 6013 str r3, [r2, #0]
  3896. osThreadAttr_t osThreadAttradc1MeasTask = { 0 };
  3897. 8001bfe: f107 0384 add.w r3, r7, #132 @ 0x84
  3898. 8001c02: 2224 movs r2, #36 @ 0x24
  3899. 8001c04: 2100 movs r1, #0
  3900. 8001c06: 4618 mov r0, r3
  3901. 8001c08: f016 fc2e bl 8018468 <memset>
  3902. osThreadAttr_t osThreadAttradc3MeasTask = { 0 };
  3903. 8001c0c: f107 0360 add.w r3, r7, #96 @ 0x60
  3904. 8001c10: 2224 movs r2, #36 @ 0x24
  3905. 8001c12: 2100 movs r1, #0
  3906. 8001c14: 4618 mov r0, r3
  3907. 8001c16: f016 fc27 bl 8018468 <memset>
  3908. osThreadAttradc1MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  3909. 8001c1a: f44f 6380 mov.w r3, #1024 @ 0x400
  3910. 8001c1e: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  3911. osThreadAttradc1MeasTask.priority = (osPriority_t)osPriorityRealtime;
  3912. 8001c22: 2330 movs r3, #48 @ 0x30
  3913. 8001c24: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  3914. osThreadAttradc3MeasTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  3915. 8001c28: f44f 6380 mov.w r3, #1024 @ 0x400
  3916. 8001c2c: 677b str r3, [r7, #116] @ 0x74
  3917. osThreadAttradc3MeasTask.priority = (osPriority_t)osPriorityNormal;
  3918. 8001c2e: 2318 movs r3, #24
  3919. 8001c30: 67bb str r3, [r7, #120] @ 0x78
  3920. adc1MeasTaskHandle = osThreadNew (ADC1MeasTask, NULL, &osThreadAttradc1MeasTask);
  3921. 8001c32: f107 0384 add.w r3, r7, #132 @ 0x84
  3922. 8001c36: 461a mov r2, r3
  3923. 8001c38: 2100 movs r1, #0
  3924. 8001c3a: 4854 ldr r0, [pc, #336] @ (8001d8c <MeasTasksInit+0x1f4>)
  3925. 8001c3c: f011 fc90 bl 8013560 <osThreadNew>
  3926. 8001c40: 4603 mov r3, r0
  3927. 8001c42: 4a53 ldr r2, [pc, #332] @ (8001d90 <MeasTasksInit+0x1f8>)
  3928. 8001c44: 6013 str r3, [r2, #0]
  3929. adc3MeasTaskHandle = osThreadNew (ADC3MeasTask, NULL, &osThreadAttradc3MeasTask);
  3930. 8001c46: f107 0360 add.w r3, r7, #96 @ 0x60
  3931. 8001c4a: 461a mov r2, r3
  3932. 8001c4c: 2100 movs r1, #0
  3933. 8001c4e: 4851 ldr r0, [pc, #324] @ (8001d94 <MeasTasksInit+0x1fc>)
  3934. 8001c50: f011 fc86 bl 8013560 <osThreadNew>
  3935. 8001c54: 4603 mov r3, r0
  3936. 8001c56: 4a50 ldr r2, [pc, #320] @ (8001d98 <MeasTasksInit+0x200>)
  3937. 8001c58: 6013 str r3, [r2, #0]
  3938. osThreadAttr_t osThreadAttradc1LimiterSwitchTask = { 0 };
  3939. 8001c5a: f107 033c add.w r3, r7, #60 @ 0x3c
  3940. 8001c5e: 2224 movs r2, #36 @ 0x24
  3941. 8001c60: 2100 movs r1, #0
  3942. 8001c62: 4618 mov r0, r3
  3943. 8001c64: f016 fc00 bl 8018468 <memset>
  3944. osThreadAttradc1LimiterSwitchTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  3945. 8001c68: f44f 6380 mov.w r3, #1024 @ 0x400
  3946. 8001c6c: 653b str r3, [r7, #80] @ 0x50
  3947. osThreadAttradc1LimiterSwitchTask.priority = (osPriority_t)osPriorityNormal;
  3948. 8001c6e: 2318 movs r3, #24
  3949. 8001c70: 657b str r3, [r7, #84] @ 0x54
  3950. limiterSwitchTaskHandle = osThreadNew (LimiterSwitchTask, NULL, &osThreadAttradc1LimiterSwitchTask);
  3951. 8001c72: f107 033c add.w r3, r7, #60 @ 0x3c
  3952. 8001c76: 461a mov r2, r3
  3953. 8001c78: 2100 movs r1, #0
  3954. 8001c7a: 4848 ldr r0, [pc, #288] @ (8001d9c <MeasTasksInit+0x204>)
  3955. 8001c7c: f011 fc70 bl 8013560 <osThreadNew>
  3956. 8001c80: 4603 mov r3, r0
  3957. 8001c82: 4a47 ldr r2, [pc, #284] @ (8001da0 <MeasTasksInit+0x208>)
  3958. 8001c84: 6013 str r3, [r2, #0]
  3959. encoderXTaskArg.dbgLed = DBG_LED2;
  3960. 8001c86: 4b47 ldr r3, [pc, #284] @ (8001da4 <MeasTasksInit+0x20c>)
  3961. 8001c88: 2220 movs r2, #32
  3962. 8001c8a: 801a strh r2, [r3, #0]
  3963. encoderXTaskArg.pvEncoder = &(sensorsInfo.pvEncoderX);
  3964. 8001c8c: 4b45 ldr r3, [pc, #276] @ (8001da4 <MeasTasksInit+0x20c>)
  3965. 8001c8e: 4a46 ldr r2, [pc, #280] @ (8001da8 <MeasTasksInit+0x210>)
  3966. 8001c90: 609a str r2, [r3, #8]
  3967. encoderXTaskArg.currentPosition = &(sensorsInfo.currentXPosition);
  3968. 8001c92: 4b44 ldr r3, [pc, #272] @ (8001da4 <MeasTasksInit+0x20c>)
  3969. 8001c94: 4a45 ldr r2, [pc, #276] @ (8001dac <MeasTasksInit+0x214>)
  3970. 8001c96: 605a str r2, [r3, #4]
  3971. osMessageQueueAttr_t encoderMsgQueueAttr = { 0 };
  3972. 8001c98: f107 0324 add.w r3, r7, #36 @ 0x24
  3973. 8001c9c: 2200 movs r2, #0
  3974. 8001c9e: 601a str r2, [r3, #0]
  3975. 8001ca0: 605a str r2, [r3, #4]
  3976. 8001ca2: 609a str r2, [r3, #8]
  3977. 8001ca4: 60da str r2, [r3, #12]
  3978. 8001ca6: 611a str r2, [r3, #16]
  3979. 8001ca8: 615a str r2, [r3, #20]
  3980. encoderXTaskArg.dataQueue = osMessageQueueNew (16, sizeof (uint32_t), &encoderMsgQueueAttr);
  3981. 8001caa: f107 0324 add.w r3, r7, #36 @ 0x24
  3982. 8001cae: 461a mov r2, r3
  3983. 8001cb0: 2104 movs r1, #4
  3984. 8001cb2: 2010 movs r0, #16
  3985. 8001cb4: f011 ff07 bl 8013ac6 <osMessageQueueNew>
  3986. 8001cb8: 4603 mov r3, r0
  3987. 8001cba: 4a3a ldr r2, [pc, #232] @ (8001da4 <MeasTasksInit+0x20c>)
  3988. 8001cbc: 6113 str r3, [r2, #16]
  3989. encoderXTaskArg.initPinStates = ((HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_15) << 1) | HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_14)) & 0x3;
  3990. 8001cbe: f44f 4100 mov.w r1, #32768 @ 0x8000
  3991. 8001cc2: 483b ldr r0, [pc, #236] @ (8001db0 <MeasTasksInit+0x218>)
  3992. 8001cc4: f009 fa64 bl 800b190 <HAL_GPIO_ReadPin>
  3993. 8001cc8: 4603 mov r3, r0
  3994. 8001cca: 005c lsls r4, r3, #1
  3995. 8001ccc: f44f 4180 mov.w r1, #16384 @ 0x4000
  3996. 8001cd0: 4837 ldr r0, [pc, #220] @ (8001db0 <MeasTasksInit+0x218>)
  3997. 8001cd2: f009 fa5d bl 800b190 <HAL_GPIO_ReadPin>
  3998. 8001cd6: 4603 mov r3, r0
  3999. 8001cd8: 4323 orrs r3, r4
  4000. 8001cda: f003 0303 and.w r3, r3, #3
  4001. 8001cde: 4a31 ldr r2, [pc, #196] @ (8001da4 <MeasTasksInit+0x20c>)
  4002. 8001ce0: 60d3 str r3, [r2, #12]
  4003. encoderYTaskArg.dbgLed = DBG_LED3;
  4004. 8001ce2: 4b34 ldr r3, [pc, #208] @ (8001db4 <MeasTasksInit+0x21c>)
  4005. 8001ce4: 2240 movs r2, #64 @ 0x40
  4006. 8001ce6: 801a strh r2, [r3, #0]
  4007. encoderYTaskArg.pvEncoder = &(sensorsInfo.pvEncoderY);
  4008. 8001ce8: 4b32 ldr r3, [pc, #200] @ (8001db4 <MeasTasksInit+0x21c>)
  4009. 8001cea: 4a33 ldr r2, [pc, #204] @ (8001db8 <MeasTasksInit+0x220>)
  4010. 8001cec: 609a str r2, [r3, #8]
  4011. encoderYTaskArg.currentPosition = &(sensorsInfo.currentYPosition);
  4012. 8001cee: 4b31 ldr r3, [pc, #196] @ (8001db4 <MeasTasksInit+0x21c>)
  4013. 8001cf0: 4a32 ldr r2, [pc, #200] @ (8001dbc <MeasTasksInit+0x224>)
  4014. 8001cf2: 605a str r2, [r3, #4]
  4015. encoderYTaskArg.dataQueue = osMessageQueueNew (16, sizeof (uint32_t), &encoderMsgQueueAttr);
  4016. 8001cf4: f107 0324 add.w r3, r7, #36 @ 0x24
  4017. 8001cf8: 461a mov r2, r3
  4018. 8001cfa: 2104 movs r1, #4
  4019. 8001cfc: 2010 movs r0, #16
  4020. 8001cfe: f011 fee2 bl 8013ac6 <osMessageQueueNew>
  4021. 8001d02: 4603 mov r3, r0
  4022. 8001d04: 4a2b ldr r2, [pc, #172] @ (8001db4 <MeasTasksInit+0x21c>)
  4023. 8001d06: 6113 str r3, [r2, #16]
  4024. encoderYTaskArg.initPinStates = ((HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_11) << 1) | HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_10)) & 0x3;
  4025. 8001d08: f44f 6100 mov.w r1, #2048 @ 0x800
  4026. 8001d0c: 482c ldr r0, [pc, #176] @ (8001dc0 <MeasTasksInit+0x228>)
  4027. 8001d0e: f009 fa3f bl 800b190 <HAL_GPIO_ReadPin>
  4028. 8001d12: 4603 mov r3, r0
  4029. 8001d14: 005c lsls r4, r3, #1
  4030. 8001d16: f44f 6180 mov.w r1, #1024 @ 0x400
  4031. 8001d1a: 4829 ldr r0, [pc, #164] @ (8001dc0 <MeasTasksInit+0x228>)
  4032. 8001d1c: f009 fa38 bl 800b190 <HAL_GPIO_ReadPin>
  4033. 8001d20: 4603 mov r3, r0
  4034. 8001d22: 4323 orrs r3, r4
  4035. 8001d24: f003 0303 and.w r3, r3, #3
  4036. 8001d28: 4a22 ldr r2, [pc, #136] @ (8001db4 <MeasTasksInit+0x21c>)
  4037. 8001d2a: 60d3 str r3, [r2, #12]
  4038. osThreadAttr_t osThreadAttrEncoderTask = { 0 };
  4039. 8001d2c: 463b mov r3, r7
  4040. 8001d2e: 2224 movs r2, #36 @ 0x24
  4041. 8001d30: 2100 movs r1, #0
  4042. 8001d32: 4618 mov r0, r3
  4043. 8001d34: f016 fb98 bl 8018468 <memset>
  4044. osThreadAttrEncoderTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  4045. 8001d38: f44f 6380 mov.w r3, #1024 @ 0x400
  4046. 8001d3c: 617b str r3, [r7, #20]
  4047. osThreadAttrEncoderTask.priority = (osPriority_t)osPriorityRealtime;
  4048. 8001d3e: 2330 movs r3, #48 @ 0x30
  4049. 8001d40: 61bb str r3, [r7, #24]
  4050. encoderXTaskHandle = osThreadNew (EncoderTask, &encoderXTaskArg, &osThreadAttrEncoderTask);
  4051. 8001d42: 463b mov r3, r7
  4052. 8001d44: 461a mov r2, r3
  4053. 8001d46: 4917 ldr r1, [pc, #92] @ (8001da4 <MeasTasksInit+0x20c>)
  4054. 8001d48: 481e ldr r0, [pc, #120] @ (8001dc4 <MeasTasksInit+0x22c>)
  4055. 8001d4a: f011 fc09 bl 8013560 <osThreadNew>
  4056. 8001d4e: 4603 mov r3, r0
  4057. 8001d50: 4a1d ldr r2, [pc, #116] @ (8001dc8 <MeasTasksInit+0x230>)
  4058. 8001d52: 6013 str r3, [r2, #0]
  4059. encoderYTaskHandle = osThreadNew (EncoderTask, &encoderYTaskArg, &osThreadAttrEncoderTask);
  4060. 8001d54: 463b mov r3, r7
  4061. 8001d56: 461a mov r2, r3
  4062. 8001d58: 4916 ldr r1, [pc, #88] @ (8001db4 <MeasTasksInit+0x21c>)
  4063. 8001d5a: 481a ldr r0, [pc, #104] @ (8001dc4 <MeasTasksInit+0x22c>)
  4064. 8001d5c: f011 fc00 bl 8013560 <osThreadNew>
  4065. 8001d60: 4603 mov r3, r0
  4066. 8001d62: 4a1a ldr r2, [pc, #104] @ (8001dcc <MeasTasksInit+0x234>)
  4067. 8001d64: 6013 str r3, [r2, #0]
  4068. // arm_scale_f32(fft_power, scale, fft_power_scaled, SAMPLE_BUFFER_LENGTH_HALF);
  4069. // float32_t maxValue;
  4070. // uint32_t maxIndex;
  4071. // arm_max_f32(fft_power_scaled, SAMPLE_BUFFER_LENGTH_HALF, &maxValue, &maxIndex);
  4072. // printf("maxValue %f, index %ld\n", maxValue, maxIndex);
  4073. }
  4074. 8001d66: bf00 nop
  4075. 8001d68: 37ac adds r7, #172 @ 0xac
  4076. 8001d6a: 46bd mov sp, r7
  4077. 8001d6c: bd90 pop {r4, r7, pc}
  4078. 8001d6e: bf00 nop
  4079. 8001d70: 240008d4 .word 0x240008d4
  4080. 8001d74: 240008d8 .word 0x240008d8
  4081. 8001d78: 240008dc .word 0x240008dc
  4082. 8001d7c: 240008e0 .word 0x240008e0
  4083. 8001d80: 240008c8 .word 0x240008c8
  4084. 8001d84: 240008cc .word 0x240008cc
  4085. 8001d88: 240008d0 .word 0x240008d0
  4086. 8001d8c: 08001dd1 .word 0x08001dd1
  4087. 8001d90: 240008b4 .word 0x240008b4
  4088. 8001d94: 08002241 .word 0x08002241
  4089. 8001d98: 240008b8 .word 0x240008b8
  4090. 8001d9c: 080025bd .word 0x080025bd
  4091. 8001da0: 240008bc .word 0x240008bc
  4092. 8001da4: 24000980 .word 0x24000980
  4093. 8001da8: 2400094c .word 0x2400094c
  4094. 8001dac: 24000970 .word 0x24000970
  4095. 8001db0: 58020c00 .word 0x58020c00
  4096. 8001db4: 240009a0 .word 0x240009a0
  4097. 8001db8: 24000950 .word 0x24000950
  4098. 8001dbc: 24000974 .word 0x24000974
  4099. 8001dc0: 58020400 .word 0x58020400
  4100. 8001dc4: 080028c5 .word 0x080028c5
  4101. 8001dc8: 240008c0 .word 0x240008c0
  4102. 8001dcc: 240008c4 .word 0x240008c4
  4103. 08001dd0 <ADC1MeasTask>:
  4104. void ADC1MeasTask (void* arg) {
  4105. 8001dd0: b590 push {r4, r7, lr}
  4106. 8001dd2: b097 sub sp, #92 @ 0x5c
  4107. 8001dd4: af00 add r7, sp, #0
  4108. 8001dd6: 6078 str r0, [r7, #4]
  4109. float voltageAcc[CHANNELS_COUNT] = { 0 };
  4110. 8001dd8: f04f 0300 mov.w r3, #0
  4111. 8001ddc: 637b str r3, [r7, #52] @ 0x34
  4112. float currentAcc[CHANNELS_COUNT] = { 0 };
  4113. 8001dde: f04f 0300 mov.w r3, #0
  4114. 8001de2: 633b str r3, [r7, #48] @ 0x30
  4115. float powerAcc[CHANNELS_COUNT] = { 0 };
  4116. 8001de4: f04f 0300 mov.w r3, #0
  4117. 8001de8: 62fb str r3, [r7, #44] @ 0x2c
  4118. uint32_t samplesCounter = 0;
  4119. 8001dea: 2300 movs r3, #0
  4120. 8001dec: 657b str r3, [r7, #84] @ 0x54
  4121. ADC1_Data adcData = { 0 };
  4122. 8001dee: f107 030c add.w r3, r7, #12
  4123. 8001df2: 2220 movs r2, #32
  4124. 8001df4: 2100 movs r1, #0
  4125. 8001df6: 4618 mov r0, r3
  4126. 8001df8: f016 fb36 bl 8018468 <memset>
  4127. float gainCorrection = 1.0;
  4128. 8001dfc: f04f 537e mov.w r3, #1065353216 @ 0x3f800000
  4129. 8001e00: 653b str r3, [r7, #80] @ 0x50
  4130. while (pdTRUE) {
  4131. osMessageQueueGet (adc1MeasDataQueue, &adcData, 0, osWaitForever);
  4132. 8001e02: 4bb1 ldr r3, [pc, #708] @ (80020c8 <ADC1MeasTask+0x2f8>)
  4133. 8001e04: 6818 ldr r0, [r3, #0]
  4134. 8001e06: f107 010c add.w r1, r7, #12
  4135. 8001e0a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  4136. 8001e0e: 2200 movs r2, #0
  4137. 8001e10: f011 ff2c bl 8013c6c <osMessageQueueGet>
  4138. #ifdef GAIN_AUTO_CORRECTION
  4139. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  4140. 8001e14: 4bad ldr r3, [pc, #692] @ (80020cc <ADC1MeasTask+0x2fc>)
  4141. 8001e16: 681b ldr r3, [r3, #0]
  4142. 8001e18: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4143. 8001e1c: 4618 mov r0, r3
  4144. 8001e1e: f011 fdca bl 80139b6 <osMutexAcquire>
  4145. 8001e22: 4603 mov r3, r0
  4146. 8001e24: 2b00 cmp r3, #0
  4147. 8001e26: d10c bne.n 8001e42 <ADC1MeasTask+0x72>
  4148. gainCorrection = (float)vRefmV;
  4149. 8001e28: 4ba9 ldr r3, [pc, #676] @ (80020d0 <ADC1MeasTask+0x300>)
  4150. 8001e2a: 681b ldr r3, [r3, #0]
  4151. 8001e2c: ee07 3a90 vmov s15, r3
  4152. 8001e30: eef8 7a67 vcvt.f32.u32 s15, s15
  4153. 8001e34: edc7 7a14 vstr s15, [r7, #80] @ 0x50
  4154. osMutexRelease (vRefmVMutex);
  4155. 8001e38: 4ba4 ldr r3, [pc, #656] @ (80020cc <ADC1MeasTask+0x2fc>)
  4156. 8001e3a: 681b ldr r3, [r3, #0]
  4157. 8001e3c: 4618 mov r0, r3
  4158. 8001e3e: f011 fe05 bl 8013a4c <osMutexRelease>
  4159. }
  4160. gainCorrection = gainCorrection / EXT_VREF_mV;
  4161. 8001e42: ed97 7a14 vldr s14, [r7, #80] @ 0x50
  4162. 8001e46: eddf 6aa3 vldr s13, [pc, #652] @ 80020d4 <ADC1MeasTask+0x304>
  4163. 8001e4a: eec7 7a26 vdiv.f32 s15, s14, s13
  4164. 8001e4e: edc7 7a14 vstr s15, [r7, #80] @ 0x50
  4165. #endif
  4166. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  4167. 8001e52: 4ba1 ldr r3, [pc, #644] @ (80020d8 <ADC1MeasTask+0x308>)
  4168. 8001e54: 681b ldr r3, [r3, #0]
  4169. 8001e56: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4170. 8001e5a: 4618 mov r0, r3
  4171. 8001e5c: f011 fdab bl 80139b6 <osMutexAcquire>
  4172. 8001e60: 4603 mov r3, r0
  4173. 8001e62: 2b00 cmp r3, #0
  4174. 8001e64: d1cd bne.n 8001e02 <ADC1MeasTask+0x32>
  4175. for (uint8_t i = 0; i < CHANNELS_COUNT; i++) {
  4176. 8001e66: 2300 movs r3, #0
  4177. 8001e68: f887 304f strb.w r3, [r7, #79] @ 0x4f
  4178. 8001e6c: e10d b.n 800208a <ADC1MeasTask+0x2ba>
  4179. #ifdef MOCK_VOLTAGES_AND_CURRENS
  4180. float voltage = voltageWave[i][samplesCounter % SAMPLE_BUFFER_LENGTH];
  4181. float current = currentWave[i][samplesCounter % SAMPLE_BUFFER_LENGTH];
  4182. #else
  4183. float voltage = (adcData.adcDataBuffer[UL1 + i] & 0xFFFF) * deltaADC * U_CHANNEL_CONST * gainCorrection * U_MeasCorrectionData[i].gain + U_MeasCorrectionData[i].offset;
  4184. 8001e6e: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4185. 8001e72: 009b lsls r3, r3, #2
  4186. 8001e74: 3358 adds r3, #88 @ 0x58
  4187. 8001e76: 443b add r3, r7
  4188. 8001e78: f853 3c4c ldr.w r3, [r3, #-76]
  4189. 8001e7c: b29b uxth r3, r3
  4190. 8001e7e: ee07 3a90 vmov s15, r3
  4191. 8001e82: eeb8 7b67 vcvt.f64.u32 d7, s15
  4192. 8001e86: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4193. 8001e8a: ee27 6b06 vmul.f64 d6, d7, d6
  4194. 8001e8e: ed9f 5b88 vldr d5, [pc, #544] @ 80020b0 <ADC1MeasTask+0x2e0>
  4195. 8001e92: ee86 7b05 vdiv.f64 d7, d6, d5
  4196. 8001e96: ed9f 6b88 vldr d6, [pc, #544] @ 80020b8 <ADC1MeasTask+0x2e8>
  4197. 8001e9a: ee27 6b06 vmul.f64 d6, d7, d6
  4198. 8001e9e: edd7 7a14 vldr s15, [r7, #80] @ 0x50
  4199. 8001ea2: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4200. 8001ea6: ee26 6b07 vmul.f64 d6, d6, d7
  4201. 8001eaa: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4202. 8001eae: 4a8b ldr r2, [pc, #556] @ (80020dc <ADC1MeasTask+0x30c>)
  4203. 8001eb0: 00db lsls r3, r3, #3
  4204. 8001eb2: 4413 add r3, r2
  4205. 8001eb4: edd3 7a00 vldr s15, [r3]
  4206. 8001eb8: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4207. 8001ebc: ee26 6b07 vmul.f64 d6, d6, d7
  4208. 8001ec0: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4209. 8001ec4: 4a85 ldr r2, [pc, #532] @ (80020dc <ADC1MeasTask+0x30c>)
  4210. 8001ec6: 00db lsls r3, r3, #3
  4211. 8001ec8: 4413 add r3, r2
  4212. 8001eca: 3304 adds r3, #4
  4213. 8001ecc: edd3 7a00 vldr s15, [r3]
  4214. 8001ed0: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4215. 8001ed4: ee36 7b07 vadd.f64 d7, d6, d7
  4216. 8001ed8: eef7 7bc7 vcvt.f32.f64 s15, d7
  4217. 8001edc: edc7 7a11 vstr s15, [r7, #68] @ 0x44
  4218. float ref = (float)(adcData.adcDataBuffer[IL1Ref + i] & 0xFFFF);
  4219. 8001ee0: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4220. 8001ee4: 3303 adds r3, #3
  4221. 8001ee6: 009b lsls r3, r3, #2
  4222. 8001ee8: 3358 adds r3, #88 @ 0x58
  4223. 8001eea: 443b add r3, r7
  4224. 8001eec: f853 3c4c ldr.w r3, [r3, #-76]
  4225. 8001ef0: b29b uxth r3, r3
  4226. 8001ef2: ee07 3a90 vmov s15, r3
  4227. 8001ef6: eef8 7a67 vcvt.f32.u32 s15, s15
  4228. 8001efa: edc7 7a10 vstr s15, [r7, #64] @ 0x40
  4229. float adcVal = (float)(adcData.adcDataBuffer[UL1 + i] >> 16);
  4230. 8001efe: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4231. 8001f02: 009b lsls r3, r3, #2
  4232. 8001f04: 3358 adds r3, #88 @ 0x58
  4233. 8001f06: 443b add r3, r7
  4234. 8001f08: f853 3c4c ldr.w r3, [r3, #-76]
  4235. 8001f0c: 0c1b lsrs r3, r3, #16
  4236. 8001f0e: ee07 3a90 vmov s15, r3
  4237. 8001f12: eef8 7a67 vcvt.f32.u32 s15, s15
  4238. 8001f16: edc7 7a0f vstr s15, [r7, #60] @ 0x3c
  4239. float current = (adcVal - ref) * deltaADC * I_CHANNEL_CONST * gainCorrection * I_MeasCorrectionData[i].gain + I_MeasCorrectionData[i].offset;
  4240. 8001f1a: ed97 7a0f vldr s14, [r7, #60] @ 0x3c
  4241. 8001f1e: edd7 7a10 vldr s15, [r7, #64] @ 0x40
  4242. 8001f22: ee77 7a67 vsub.f32 s15, s14, s15
  4243. 8001f26: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4244. 8001f2a: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4245. 8001f2e: ee27 6b06 vmul.f64 d6, d7, d6
  4246. 8001f32: ed9f 5b5f vldr d5, [pc, #380] @ 80020b0 <ADC1MeasTask+0x2e0>
  4247. 8001f36: ee86 7b05 vdiv.f64 d7, d6, d5
  4248. 8001f3a: ed9f 6b61 vldr d6, [pc, #388] @ 80020c0 <ADC1MeasTask+0x2f0>
  4249. 8001f3e: ee27 6b06 vmul.f64 d6, d7, d6
  4250. 8001f42: edd7 7a14 vldr s15, [r7, #80] @ 0x50
  4251. 8001f46: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4252. 8001f4a: ee26 6b07 vmul.f64 d6, d6, d7
  4253. 8001f4e: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4254. 8001f52: 4a63 ldr r2, [pc, #396] @ (80020e0 <ADC1MeasTask+0x310>)
  4255. 8001f54: 00db lsls r3, r3, #3
  4256. 8001f56: 4413 add r3, r2
  4257. 8001f58: edd3 7a00 vldr s15, [r3]
  4258. 8001f5c: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4259. 8001f60: ee26 6b07 vmul.f64 d6, d6, d7
  4260. 8001f64: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4261. 8001f68: 4a5d ldr r2, [pc, #372] @ (80020e0 <ADC1MeasTask+0x310>)
  4262. 8001f6a: 00db lsls r3, r3, #3
  4263. 8001f6c: 4413 add r3, r2
  4264. 8001f6e: 3304 adds r3, #4
  4265. 8001f70: edd3 7a00 vldr s15, [r3]
  4266. 8001f74: eeb7 7ae7 vcvt.f64.f32 d7, s15
  4267. 8001f78: ee36 7b07 vadd.f64 d7, d6, d7
  4268. 8001f7c: eef7 7bc7 vcvt.f32.f64 s15, d7
  4269. 8001f80: edc7 7a0e vstr s15, [r7, #56] @ 0x38
  4270. #endif
  4271. voltageAcc[i] += voltage * voltage;
  4272. 8001f84: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4273. 8001f88: 009b lsls r3, r3, #2
  4274. 8001f8a: 3358 adds r3, #88 @ 0x58
  4275. 8001f8c: 443b add r3, r7
  4276. 8001f8e: 3b24 subs r3, #36 @ 0x24
  4277. 8001f90: ed93 7a00 vldr s14, [r3]
  4278. 8001f94: edd7 7a11 vldr s15, [r7, #68] @ 0x44
  4279. 8001f98: ee67 7aa7 vmul.f32 s15, s15, s15
  4280. 8001f9c: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4281. 8001fa0: ee77 7a27 vadd.f32 s15, s14, s15
  4282. 8001fa4: 009b lsls r3, r3, #2
  4283. 8001fa6: 3358 adds r3, #88 @ 0x58
  4284. 8001fa8: 443b add r3, r7
  4285. 8001faa: 3b24 subs r3, #36 @ 0x24
  4286. 8001fac: edc3 7a00 vstr s15, [r3]
  4287. currentAcc[i] += current * current;
  4288. 8001fb0: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4289. 8001fb4: 009b lsls r3, r3, #2
  4290. 8001fb6: 3358 adds r3, #88 @ 0x58
  4291. 8001fb8: 443b add r3, r7
  4292. 8001fba: 3b28 subs r3, #40 @ 0x28
  4293. 8001fbc: ed93 7a00 vldr s14, [r3]
  4294. 8001fc0: edd7 7a0e vldr s15, [r7, #56] @ 0x38
  4295. 8001fc4: ee67 7aa7 vmul.f32 s15, s15, s15
  4296. 8001fc8: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4297. 8001fcc: ee77 7a27 vadd.f32 s15, s14, s15
  4298. 8001fd0: 009b lsls r3, r3, #2
  4299. 8001fd2: 3358 adds r3, #88 @ 0x58
  4300. 8001fd4: 443b add r3, r7
  4301. 8001fd6: 3b28 subs r3, #40 @ 0x28
  4302. 8001fd8: edc3 7a00 vstr s15, [r3]
  4303. powerAcc[i] += voltage * current;
  4304. 8001fdc: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4305. 8001fe0: 009b lsls r3, r3, #2
  4306. 8001fe2: 3358 adds r3, #88 @ 0x58
  4307. 8001fe4: 443b add r3, r7
  4308. 8001fe6: 3b2c subs r3, #44 @ 0x2c
  4309. 8001fe8: ed93 7a00 vldr s14, [r3]
  4310. 8001fec: edd7 6a11 vldr s13, [r7, #68] @ 0x44
  4311. 8001ff0: edd7 7a0e vldr s15, [r7, #56] @ 0x38
  4312. 8001ff4: ee66 7aa7 vmul.f32 s15, s13, s15
  4313. 8001ff8: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4314. 8001ffc: ee77 7a27 vadd.f32 s15, s14, s15
  4315. 8002000: 009b lsls r3, r3, #2
  4316. 8002002: 3358 adds r3, #88 @ 0x58
  4317. 8002004: 443b add r3, r7
  4318. 8002006: 3b2c subs r3, #44 @ 0x2c
  4319. 8002008: edc3 7a00 vstr s15, [r3]
  4320. if (fabs (resMeasurements.voltagePeak[i]) < fabs (voltage)) {
  4321. 800200c: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4322. 8002010: 4a34 ldr r2, [pc, #208] @ (80020e4 <ADC1MeasTask+0x314>)
  4323. 8002012: 3302 adds r3, #2
  4324. 8002014: 009b lsls r3, r3, #2
  4325. 8002016: 4413 add r3, r2
  4326. 8002018: 3304 adds r3, #4
  4327. 800201a: edd3 7a00 vldr s15, [r3]
  4328. 800201e: eeb0 7ae7 vabs.f32 s14, s15
  4329. 8002022: edd7 7a11 vldr s15, [r7, #68] @ 0x44
  4330. 8002026: eef0 7ae7 vabs.f32 s15, s15
  4331. 800202a: eeb4 7ae7 vcmpe.f32 s14, s15
  4332. 800202e: eef1 fa10 vmrs APSR_nzcv, fpscr
  4333. 8002032: d508 bpl.n 8002046 <ADC1MeasTask+0x276>
  4334. resMeasurements.voltagePeak[i] = voltage;
  4335. 8002034: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4336. 8002038: 4a2a ldr r2, [pc, #168] @ (80020e4 <ADC1MeasTask+0x314>)
  4337. 800203a: 3302 adds r3, #2
  4338. 800203c: 009b lsls r3, r3, #2
  4339. 800203e: 4413 add r3, r2
  4340. 8002040: 3304 adds r3, #4
  4341. 8002042: 6c7a ldr r2, [r7, #68] @ 0x44
  4342. 8002044: 601a str r2, [r3, #0]
  4343. }
  4344. if (fabs (resMeasurements.currentPeak[i]) < fabs (current)) {
  4345. 8002046: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4346. 800204a: 4a26 ldr r2, [pc, #152] @ (80020e4 <ADC1MeasTask+0x314>)
  4347. 800204c: 3308 adds r3, #8
  4348. 800204e: 009b lsls r3, r3, #2
  4349. 8002050: 4413 add r3, r2
  4350. 8002052: 3304 adds r3, #4
  4351. 8002054: edd3 7a00 vldr s15, [r3]
  4352. 8002058: eeb0 7ae7 vabs.f32 s14, s15
  4353. 800205c: edd7 7a0e vldr s15, [r7, #56] @ 0x38
  4354. 8002060: eef0 7ae7 vabs.f32 s15, s15
  4355. 8002064: eeb4 7ae7 vcmpe.f32 s14, s15
  4356. 8002068: eef1 fa10 vmrs APSR_nzcv, fpscr
  4357. 800206c: d508 bpl.n 8002080 <ADC1MeasTask+0x2b0>
  4358. resMeasurements.currentPeak[i] = current;
  4359. 800206e: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4360. 8002072: 4a1c ldr r2, [pc, #112] @ (80020e4 <ADC1MeasTask+0x314>)
  4361. 8002074: 3308 adds r3, #8
  4362. 8002076: 009b lsls r3, r3, #2
  4363. 8002078: 4413 add r3, r2
  4364. 800207a: 3304 adds r3, #4
  4365. 800207c: 6bba ldr r2, [r7, #56] @ 0x38
  4366. 800207e: 601a str r2, [r3, #0]
  4367. for (uint8_t i = 0; i < CHANNELS_COUNT; i++) {
  4368. 8002080: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4369. 8002084: 3301 adds r3, #1
  4370. 8002086: f887 304f strb.w r3, [r7, #79] @ 0x4f
  4371. 800208a: f897 304f ldrb.w r3, [r7, #79] @ 0x4f
  4372. 800208e: 2b00 cmp r3, #0
  4373. 8002090: f43f aeed beq.w 8001e6e <ADC1MeasTask+0x9e>
  4374. }
  4375. }
  4376. samplesCounter += 1;
  4377. 8002094: 6d7b ldr r3, [r7, #84] @ 0x54
  4378. 8002096: 3301 adds r3, #1
  4379. 8002098: 657b str r3, [r7, #84] @ 0x54
  4380. if (samplesCounter > 33332)
  4381. 800209a: 6d7b ldr r3, [r7, #84] @ 0x54
  4382. 800209c: f248 2234 movw r2, #33332 @ 0x8234
  4383. 80020a0: 4293 cmp r3, r2
  4384. 80020a2: f240 809a bls.w 80021da <ADC1MeasTask+0x40a>
  4385. {
  4386. for (uint8_t i = 0; i < CHANNELS_COUNT; i++) {
  4387. 80020a6: 2300 movs r3, #0
  4388. 80020a8: f887 304e strb.w r3, [r7, #78] @ 0x4e
  4389. 80020ac: e08c b.n 80021c8 <ADC1MeasTask+0x3f8>
  4390. 80020ae: bf00 nop
  4391. 80020b0: 00000000 .word 0x00000000
  4392. 80020b4: 40efffe0 .word 0x40efffe0
  4393. 80020b8: f5c28f5c .word 0xf5c28f5c
  4394. 80020bc: 401e5c28 .word 0x401e5c28
  4395. 80020c0: 83e425af .word 0x83e425af
  4396. 80020c4: 401e4d9e .word 0x401e4d9e
  4397. 80020c8: 240008c8 .word 0x240008c8
  4398. 80020cc: 240008d4 .word 0x240008d4
  4399. 80020d0: 24000030 .word 0x24000030
  4400. 80020d4: 453b8000 .word 0x453b8000
  4401. 80020d8: 240008d8 .word 0x240008d8
  4402. 80020dc: 24000000 .word 0x24000000
  4403. 80020e0: 24000018 .word 0x24000018
  4404. 80020e4: 24000900 .word 0x24000900
  4405. resMeasurements.voltageRMS[i] = sqrtf(voltageAcc[i] / samplesCounter);
  4406. 80020e8: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4407. 80020ec: 009b lsls r3, r3, #2
  4408. 80020ee: 3358 adds r3, #88 @ 0x58
  4409. 80020f0: 443b add r3, r7
  4410. 80020f2: 3b24 subs r3, #36 @ 0x24
  4411. 80020f4: ed93 7a00 vldr s14, [r3]
  4412. 80020f8: 6d7b ldr r3, [r7, #84] @ 0x54
  4413. 80020fa: ee07 3a90 vmov s15, r3
  4414. 80020fe: eef8 7a67 vcvt.f32.u32 s15, s15
  4415. 8002102: eec7 6a27 vdiv.f32 s13, s14, s15
  4416. 8002106: f897 404e ldrb.w r4, [r7, #78] @ 0x4e
  4417. 800210a: eeb0 0a66 vmov.f32 s0, s13
  4418. 800210e: f018 f81f bl 801a150 <sqrtf>
  4419. 8002112: eef0 7a40 vmov.f32 s15, s0
  4420. 8002116: 4a46 ldr r2, [pc, #280] @ (8002230 <ADC1MeasTask+0x460>)
  4421. 8002118: 00a3 lsls r3, r4, #2
  4422. 800211a: 4413 add r3, r2
  4423. 800211c: edc3 7a00 vstr s15, [r3]
  4424. resMeasurements.currentRMS[i] = sqrtf(currentAcc[i] / samplesCounter);
  4425. 8002120: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4426. 8002124: 009b lsls r3, r3, #2
  4427. 8002126: 3358 adds r3, #88 @ 0x58
  4428. 8002128: 443b add r3, r7
  4429. 800212a: 3b28 subs r3, #40 @ 0x28
  4430. 800212c: ed93 7a00 vldr s14, [r3]
  4431. 8002130: 6d7b ldr r3, [r7, #84] @ 0x54
  4432. 8002132: ee07 3a90 vmov s15, r3
  4433. 8002136: eef8 7a67 vcvt.f32.u32 s15, s15
  4434. 800213a: eec7 6a27 vdiv.f32 s13, s14, s15
  4435. 800213e: f897 404e ldrb.w r4, [r7, #78] @ 0x4e
  4436. 8002142: eeb0 0a66 vmov.f32 s0, s13
  4437. 8002146: f018 f803 bl 801a150 <sqrtf>
  4438. 800214a: eef0 7a40 vmov.f32 s15, s0
  4439. 800214e: 4a38 ldr r2, [pc, #224] @ (8002230 <ADC1MeasTask+0x460>)
  4440. 8002150: 1da3 adds r3, r4, #6
  4441. 8002152: 009b lsls r3, r3, #2
  4442. 8002154: 4413 add r3, r2
  4443. 8002156: edc3 7a00 vstr s15, [r3]
  4444. resMeasurements.power[i] = powerAcc[i] / samplesCounter;
  4445. 800215a: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4446. 800215e: 009b lsls r3, r3, #2
  4447. 8002160: 3358 adds r3, #88 @ 0x58
  4448. 8002162: 443b add r3, r7
  4449. 8002164: 3b2c subs r3, #44 @ 0x2c
  4450. 8002166: edd3 6a00 vldr s13, [r3]
  4451. 800216a: 6d7b ldr r3, [r7, #84] @ 0x54
  4452. 800216c: ee07 3a90 vmov s15, r3
  4453. 8002170: eeb8 7a67 vcvt.f32.u32 s14, s15
  4454. 8002174: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4455. 8002178: eec6 7a87 vdiv.f32 s15, s13, s14
  4456. 800217c: 4a2c ldr r2, [pc, #176] @ (8002230 <ADC1MeasTask+0x460>)
  4457. 800217e: 330c adds r3, #12
  4458. 8002180: 009b lsls r3, r3, #2
  4459. 8002182: 4413 add r3, r2
  4460. 8002184: edc3 7a00 vstr s15, [r3]
  4461. voltageAcc[i] = 0;
  4462. 8002188: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4463. 800218c: 009b lsls r3, r3, #2
  4464. 800218e: 3358 adds r3, #88 @ 0x58
  4465. 8002190: 443b add r3, r7
  4466. 8002192: 3b24 subs r3, #36 @ 0x24
  4467. 8002194: f04f 0200 mov.w r2, #0
  4468. 8002198: 601a str r2, [r3, #0]
  4469. currentAcc[i] = 0;
  4470. 800219a: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4471. 800219e: 009b lsls r3, r3, #2
  4472. 80021a0: 3358 adds r3, #88 @ 0x58
  4473. 80021a2: 443b add r3, r7
  4474. 80021a4: 3b28 subs r3, #40 @ 0x28
  4475. 80021a6: f04f 0200 mov.w r2, #0
  4476. 80021aa: 601a str r2, [r3, #0]
  4477. powerAcc[i] = 0;
  4478. 80021ac: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4479. 80021b0: 009b lsls r3, r3, #2
  4480. 80021b2: 3358 adds r3, #88 @ 0x58
  4481. 80021b4: 443b add r3, r7
  4482. 80021b6: 3b2c subs r3, #44 @ 0x2c
  4483. 80021b8: f04f 0200 mov.w r2, #0
  4484. 80021bc: 601a str r2, [r3, #0]
  4485. for (uint8_t i = 0; i < CHANNELS_COUNT; i++) {
  4486. 80021be: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4487. 80021c2: 3301 adds r3, #1
  4488. 80021c4: f887 304e strb.w r3, [r7, #78] @ 0x4e
  4489. 80021c8: f897 304e ldrb.w r3, [r7, #78] @ 0x4e
  4490. 80021cc: 2b00 cmp r3, #0
  4491. 80021ce: d08b beq.n 80020e8 <ADC1MeasTask+0x318>
  4492. }
  4493. samplesCounter = 0;
  4494. 80021d0: 2300 movs r3, #0
  4495. 80021d2: 657b str r3, [r7, #84] @ 0x54
  4496. DbgLEDToggle(DBG_LED3);
  4497. 80021d4: 2040 movs r0, #64 @ 0x40
  4498. 80021d6: f000 fc53 bl 8002a80 <DbgLEDToggle>
  4499. }
  4500. float fanFBVoltage = (adcData.adcDataBuffer[FanFB] & 0xFFFF) * deltaADC * -4.35 + 12;
  4501. 80021da: 6a7b ldr r3, [r7, #36] @ 0x24
  4502. 80021dc: b29b uxth r3, r3
  4503. 80021de: ee07 3a90 vmov s15, r3
  4504. 80021e2: eeb8 7b67 vcvt.f64.u32 d7, s15
  4505. 80021e6: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4506. 80021ea: ee27 6b06 vmul.f64 d6, d7, d6
  4507. 80021ee: ed9f 5b0c vldr d5, [pc, #48] @ 8002220 <ADC1MeasTask+0x450>
  4508. 80021f2: ee86 7b05 vdiv.f64 d7, d6, d5
  4509. 80021f6: ed9f 6b0c vldr d6, [pc, #48] @ 8002228 <ADC1MeasTask+0x458>
  4510. 80021fa: ee27 7b06 vmul.f64 d7, d7, d6
  4511. 80021fe: eeb2 6b08 vmov.f64 d6, #40 @ 0x41400000 12.0
  4512. 8002202: ee37 7b06 vadd.f64 d7, d7, d6
  4513. 8002206: eef7 7bc7 vcvt.f32.f64 s15, d7
  4514. 800220a: edc7 7a12 vstr s15, [r7, #72] @ 0x48
  4515. sensorsInfo.fanVoltage = fanFBVoltage;
  4516. 800220e: 4a09 ldr r2, [pc, #36] @ (8002234 <ADC1MeasTask+0x464>)
  4517. 8002210: 6cbb ldr r3, [r7, #72] @ 0x48
  4518. 8002212: 6093 str r3, [r2, #8]
  4519. osMutexRelease (resMeasurementsMutex);
  4520. 8002214: 4b08 ldr r3, [pc, #32] @ (8002238 <ADC1MeasTask+0x468>)
  4521. 8002216: 681b ldr r3, [r3, #0]
  4522. 8002218: 4618 mov r0, r3
  4523. 800221a: f011 fc17 bl 8013a4c <osMutexRelease>
  4524. osMessageQueueGet (adc1MeasDataQueue, &adcData, 0, osWaitForever);
  4525. 800221e: e5f0 b.n 8001e02 <ADC1MeasTask+0x32>
  4526. 8002220: 00000000 .word 0x00000000
  4527. 8002224: 40efffe0 .word 0x40efffe0
  4528. 8002228: 66666666 .word 0x66666666
  4529. 800222c: c0116666 .word 0xc0116666
  4530. 8002230: 24000900 .word 0x24000900
  4531. 8002234: 24000940 .word 0x24000940
  4532. 8002238: 240008d8 .word 0x240008d8
  4533. 800223c: 00000000 .word 0x00000000
  4534. 08002240 <ADC3MeasTask>:
  4535. }
  4536. }
  4537. }
  4538. void ADC3MeasTask (void* arg) {
  4539. 8002240: b580 push {r7, lr}
  4540. 8002242: b0bc sub sp, #240 @ 0xf0
  4541. 8002244: af00 add r7, sp, #0
  4542. 8002246: 6078 str r0, [r7, #4]
  4543. float motorXSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  4544. 8002248: f107 03a4 add.w r3, r7, #164 @ 0xa4
  4545. 800224c: 2228 movs r2, #40 @ 0x28
  4546. 800224e: 2100 movs r1, #0
  4547. 8002250: 4618 mov r0, r3
  4548. 8002252: f016 f909 bl 8018468 <memset>
  4549. float motorYSensCircBuffer[CIRC_BUFF_LEN] = { 0 };
  4550. 8002256: f107 037c add.w r3, r7, #124 @ 0x7c
  4551. 800225a: 2228 movs r2, #40 @ 0x28
  4552. 800225c: 2100 movs r1, #0
  4553. 800225e: 4618 mov r0, r3
  4554. 8002260: f016 f902 bl 8018468 <memset>
  4555. #ifdef PV_BOARD
  4556. float pvT1CircBuffer[CIRC_BUFF_LEN] = { 0 };
  4557. 8002264: f107 0354 add.w r3, r7, #84 @ 0x54
  4558. 8002268: 2228 movs r2, #40 @ 0x28
  4559. 800226a: 2100 movs r1, #0
  4560. 800226c: 4618 mov r0, r3
  4561. 800226e: f016 f8fb bl 8018468 <memset>
  4562. float pvT2CircBuffer[CIRC_BUFF_LEN] = { 0 };
  4563. 8002272: f107 032c add.w r3, r7, #44 @ 0x2c
  4564. 8002276: 2228 movs r2, #40 @ 0x28
  4565. 8002278: 2100 movs r1, #0
  4566. 800227a: 4618 mov r0, r3
  4567. 800227c: f016 f8f4 bl 8018468 <memset>
  4568. #endif
  4569. uint32_t circBuffPos = 0;
  4570. 8002280: 2300 movs r3, #0
  4571. 8002282: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  4572. ADC3_Data adcData = { 0 };
  4573. 8002286: f107 030c add.w r3, r7, #12
  4574. 800228a: 2220 movs r2, #32
  4575. 800228c: 2100 movs r1, #0
  4576. 800228e: 4618 mov r0, r3
  4577. 8002290: f016 f8ea bl 8018468 <memset>
  4578. while (pdTRUE) {
  4579. osMessageQueueGet (adc3MeasDataQueue, &adcData, 0, osWaitForever);
  4580. 8002294: 4bc2 ldr r3, [pc, #776] @ (80025a0 <ADC3MeasTask+0x360>)
  4581. 8002296: 6818 ldr r0, [r3, #0]
  4582. 8002298: f107 010c add.w r1, r7, #12
  4583. 800229c: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  4584. 80022a0: 2200 movs r2, #0
  4585. 80022a2: f011 fce3 bl 8013c6c <osMessageQueueGet>
  4586. uint32_t vRef = __LL_ADC_CALC_VREFANALOG_VOLTAGE (adcData.adcDataBuffer[VrefInt], LL_ADC_RESOLUTION_16B);
  4587. 80022a6: 4bbf ldr r3, [pc, #764] @ (80025a4 <ADC3MeasTask+0x364>)
  4588. 80022a8: 881b ldrh r3, [r3, #0]
  4589. 80022aa: 461a mov r2, r3
  4590. 80022ac: f640 43e4 movw r3, #3300 @ 0xce4
  4591. 80022b0: fb02 f303 mul.w r3, r2, r3
  4592. 80022b4: 8aba ldrh r2, [r7, #20]
  4593. 80022b6: fbb3 f3f2 udiv r3, r3, r2
  4594. 80022ba: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  4595. if (osMutexAcquire (vRefmVMutex, osWaitForever) == osOK) {
  4596. 80022be: 4bba ldr r3, [pc, #744] @ (80025a8 <ADC3MeasTask+0x368>)
  4597. 80022c0: 681b ldr r3, [r3, #0]
  4598. 80022c2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4599. 80022c6: 4618 mov r0, r3
  4600. 80022c8: f011 fb75 bl 80139b6 <osMutexAcquire>
  4601. 80022cc: 4603 mov r3, r0
  4602. 80022ce: 2b00 cmp r3, #0
  4603. 80022d0: d108 bne.n 80022e4 <ADC3MeasTask+0xa4>
  4604. vRefmV = vRef;
  4605. 80022d2: 4ab6 ldr r2, [pc, #728] @ (80025ac <ADC3MeasTask+0x36c>)
  4606. 80022d4: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  4607. 80022d8: 6013 str r3, [r2, #0]
  4608. osMutexRelease (vRefmVMutex);
  4609. 80022da: 4bb3 ldr r3, [pc, #716] @ (80025a8 <ADC3MeasTask+0x368>)
  4610. 80022dc: 681b ldr r3, [r3, #0]
  4611. 80022de: 4618 mov r0, r3
  4612. 80022e0: f011 fbb4 bl 8013a4c <osMutexRelease>
  4613. }
  4614. float motorXCurrentSense = adcData.adcDataBuffer[motorXSense] * deltaADC * 10 / 8.33333;
  4615. 80022e4: 8a3b ldrh r3, [r7, #16]
  4616. 80022e6: ee07 3a90 vmov s15, r3
  4617. 80022ea: eeb8 7be7 vcvt.f64.s32 d7, s15
  4618. 80022ee: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4619. 80022f2: ee27 6b06 vmul.f64 d6, d7, d6
  4620. 80022f6: ed9f 5ba2 vldr d5, [pc, #648] @ 8002580 <ADC3MeasTask+0x340>
  4621. 80022fa: ee86 7b05 vdiv.f64 d7, d6, d5
  4622. 80022fe: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  4623. 8002302: ee27 6b06 vmul.f64 d6, d7, d6
  4624. 8002306: ed9f 5ba0 vldr d5, [pc, #640] @ 8002588 <ADC3MeasTask+0x348>
  4625. 800230a: ee86 7b05 vdiv.f64 d7, d6, d5
  4626. 800230e: eef7 7bc7 vcvt.f32.f64 s15, d7
  4627. 8002312: edc7 7a34 vstr s15, [r7, #208] @ 0xd0
  4628. float motorYCurrentSense = adcData.adcDataBuffer[motorYSense] * deltaADC * 10 / 8.33333;
  4629. 8002316: 8a7b ldrh r3, [r7, #18]
  4630. 8002318: ee07 3a90 vmov s15, r3
  4631. 800231c: eeb8 7be7 vcvt.f64.s32 d7, s15
  4632. 8002320: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4633. 8002324: ee27 6b06 vmul.f64 d6, d7, d6
  4634. 8002328: ed9f 5b95 vldr d5, [pc, #596] @ 8002580 <ADC3MeasTask+0x340>
  4635. 800232c: ee86 7b05 vdiv.f64 d7, d6, d5
  4636. 8002330: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  4637. 8002334: ee27 6b06 vmul.f64 d6, d7, d6
  4638. 8002338: ed9f 5b93 vldr d5, [pc, #588] @ 8002588 <ADC3MeasTask+0x348>
  4639. 800233c: ee86 7b05 vdiv.f64 d7, d6, d5
  4640. 8002340: eef7 7bc7 vcvt.f32.f64 s15, d7
  4641. 8002344: edc7 7a33 vstr s15, [r7, #204] @ 0xcc
  4642. motorXSensCircBuffer[circBuffPos] = motorXCurrentSense;
  4643. 8002348: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  4644. 800234c: 009b lsls r3, r3, #2
  4645. 800234e: 33f0 adds r3, #240 @ 0xf0
  4646. 8002350: 443b add r3, r7
  4647. 8002352: 3b4c subs r3, #76 @ 0x4c
  4648. 8002354: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  4649. 8002358: 601a str r2, [r3, #0]
  4650. motorYSensCircBuffer[circBuffPos] = motorYCurrentSense;
  4651. 800235a: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  4652. 800235e: 009b lsls r3, r3, #2
  4653. 8002360: 33f0 adds r3, #240 @ 0xf0
  4654. 8002362: 443b add r3, r7
  4655. 8002364: 3b74 subs r3, #116 @ 0x74
  4656. 8002366: f8d7 20cc ldr.w r2, [r7, #204] @ 0xcc
  4657. 800236a: 601a str r2, [r3, #0]
  4658. #ifdef PV_BOARD
  4659. pvT1CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp1] * deltaADC * 45.33333333 - 63;
  4660. 800236c: 89bb ldrh r3, [r7, #12]
  4661. 800236e: ee07 3a90 vmov s15, r3
  4662. 8002372: eeb8 7be7 vcvt.f64.s32 d7, s15
  4663. 8002376: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4664. 800237a: ee27 6b06 vmul.f64 d6, d7, d6
  4665. 800237e: ed9f 5b80 vldr d5, [pc, #512] @ 8002580 <ADC3MeasTask+0x340>
  4666. 8002382: ee86 7b05 vdiv.f64 d7, d6, d5
  4667. 8002386: ed9f 6b82 vldr d6, [pc, #520] @ 8002590 <ADC3MeasTask+0x350>
  4668. 800238a: ee27 7b06 vmul.f64 d7, d7, d6
  4669. 800238e: ed9f 6b82 vldr d6, [pc, #520] @ 8002598 <ADC3MeasTask+0x358>
  4670. 8002392: ee37 7b46 vsub.f64 d7, d7, d6
  4671. 8002396: eef7 7bc7 vcvt.f32.f64 s15, d7
  4672. 800239a: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  4673. 800239e: 009b lsls r3, r3, #2
  4674. 80023a0: 33f0 adds r3, #240 @ 0xf0
  4675. 80023a2: 443b add r3, r7
  4676. 80023a4: 3b9c subs r3, #156 @ 0x9c
  4677. 80023a6: edc3 7a00 vstr s15, [r3]
  4678. pvT2CircBuffer[circBuffPos] = adcData.adcDataBuffer[pvTemp2] * deltaADC * 45.33333333 - 63;
  4679. 80023aa: 89fb ldrh r3, [r7, #14]
  4680. 80023ac: ee07 3a90 vmov s15, r3
  4681. 80023b0: eeb8 7be7 vcvt.f64.s32 d7, s15
  4682. 80023b4: eeb0 6b08 vmov.f64 d6, #8 @ 0x40400000 3.0
  4683. 80023b8: ee27 6b06 vmul.f64 d6, d7, d6
  4684. 80023bc: ed9f 5b70 vldr d5, [pc, #448] @ 8002580 <ADC3MeasTask+0x340>
  4685. 80023c0: ee86 7b05 vdiv.f64 d7, d6, d5
  4686. 80023c4: ed9f 6b72 vldr d6, [pc, #456] @ 8002590 <ADC3MeasTask+0x350>
  4687. 80023c8: ee27 7b06 vmul.f64 d7, d7, d6
  4688. 80023cc: ed9f 6b72 vldr d6, [pc, #456] @ 8002598 <ADC3MeasTask+0x358>
  4689. 80023d0: ee37 7b46 vsub.f64 d7, d7, d6
  4690. 80023d4: eef7 7bc7 vcvt.f32.f64 s15, d7
  4691. 80023d8: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  4692. 80023dc: 009b lsls r3, r3, #2
  4693. 80023de: 33f0 adds r3, #240 @ 0xf0
  4694. 80023e0: 443b add r3, r7
  4695. 80023e2: 3bc4 subs r3, #196 @ 0xc4
  4696. 80023e4: edc3 7a00 vstr s15, [r3]
  4697. #endif
  4698. float motorXAveCurrent = 0;
  4699. 80023e8: f04f 0300 mov.w r3, #0
  4700. 80023ec: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  4701. float motorYAveCurrent = 0;
  4702. 80023f0: f04f 0300 mov.w r3, #0
  4703. 80023f4: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  4704. float pvT1AveTemp = 0;
  4705. 80023f8: f04f 0300 mov.w r3, #0
  4706. 80023fc: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  4707. float pvT2AveTemp = 0;
  4708. 8002400: f04f 0300 mov.w r3, #0
  4709. 8002404: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  4710. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  4711. 8002408: 2300 movs r3, #0
  4712. 800240a: f887 30db strb.w r3, [r7, #219] @ 0xdb
  4713. 800240e: e03c b.n 800248a <ADC3MeasTask+0x24a>
  4714. motorXAveCurrent += motorXSensCircBuffer[i];
  4715. 8002410: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  4716. 8002414: 009b lsls r3, r3, #2
  4717. 8002416: 33f0 adds r3, #240 @ 0xf0
  4718. 8002418: 443b add r3, r7
  4719. 800241a: 3b4c subs r3, #76 @ 0x4c
  4720. 800241c: edd3 7a00 vldr s15, [r3]
  4721. 8002420: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  4722. 8002424: ee77 7a27 vadd.f32 s15, s14, s15
  4723. 8002428: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  4724. motorYAveCurrent += motorYSensCircBuffer[i];
  4725. 800242c: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  4726. 8002430: 009b lsls r3, r3, #2
  4727. 8002432: 33f0 adds r3, #240 @ 0xf0
  4728. 8002434: 443b add r3, r7
  4729. 8002436: 3b74 subs r3, #116 @ 0x74
  4730. 8002438: edd3 7a00 vldr s15, [r3]
  4731. 800243c: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  4732. 8002440: ee77 7a27 vadd.f32 s15, s14, s15
  4733. 8002444: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  4734. #ifdef PV_BOARD
  4735. pvT1AveTemp += pvT1CircBuffer[i];
  4736. 8002448: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  4737. 800244c: 009b lsls r3, r3, #2
  4738. 800244e: 33f0 adds r3, #240 @ 0xf0
  4739. 8002450: 443b add r3, r7
  4740. 8002452: 3b9c subs r3, #156 @ 0x9c
  4741. 8002454: edd3 7a00 vldr s15, [r3]
  4742. 8002458: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  4743. 800245c: ee77 7a27 vadd.f32 s15, s14, s15
  4744. 8002460: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  4745. pvT2AveTemp += pvT2CircBuffer[i];
  4746. 8002464: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  4747. 8002468: 009b lsls r3, r3, #2
  4748. 800246a: 33f0 adds r3, #240 @ 0xf0
  4749. 800246c: 443b add r3, r7
  4750. 800246e: 3bc4 subs r3, #196 @ 0xc4
  4751. 8002470: edd3 7a00 vldr s15, [r3]
  4752. 8002474: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  4753. 8002478: ee77 7a27 vadd.f32 s15, s14, s15
  4754. 800247c: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  4755. for (uint8_t i = 0; i < CIRC_BUFF_LEN; i++) {
  4756. 8002480: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  4757. 8002484: 3301 adds r3, #1
  4758. 8002486: f887 30db strb.w r3, [r7, #219] @ 0xdb
  4759. 800248a: f897 30db ldrb.w r3, [r7, #219] @ 0xdb
  4760. 800248e: 2b09 cmp r3, #9
  4761. 8002490: d9be bls.n 8002410 <ADC3MeasTask+0x1d0>
  4762. #endif
  4763. }
  4764. motorXAveCurrent /= CIRC_BUFF_LEN;
  4765. 8002492: ed97 7a3a vldr s14, [r7, #232] @ 0xe8
  4766. 8002496: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4767. 800249a: eec7 7a26 vdiv.f32 s15, s14, s13
  4768. 800249e: edc7 7a3a vstr s15, [r7, #232] @ 0xe8
  4769. motorYAveCurrent /= CIRC_BUFF_LEN;
  4770. 80024a2: ed97 7a39 vldr s14, [r7, #228] @ 0xe4
  4771. 80024a6: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4772. 80024aa: eec7 7a26 vdiv.f32 s15, s14, s13
  4773. 80024ae: edc7 7a39 vstr s15, [r7, #228] @ 0xe4
  4774. pvT1AveTemp /= CIRC_BUFF_LEN;
  4775. 80024b2: ed97 7a38 vldr s14, [r7, #224] @ 0xe0
  4776. 80024b6: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4777. 80024ba: eec7 7a26 vdiv.f32 s15, s14, s13
  4778. 80024be: edc7 7a38 vstr s15, [r7, #224] @ 0xe0
  4779. pvT2AveTemp /= CIRC_BUFF_LEN;
  4780. 80024c2: ed97 7a37 vldr s14, [r7, #220] @ 0xdc
  4781. 80024c6: eef2 6a04 vmov.f32 s13, #36 @ 0x41200000 10.0
  4782. 80024ca: eec7 7a26 vdiv.f32 s15, s14, s13
  4783. 80024ce: edc7 7a37 vstr s15, [r7, #220] @ 0xdc
  4784. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  4785. 80024d2: 4b37 ldr r3, [pc, #220] @ (80025b0 <ADC3MeasTask+0x370>)
  4786. 80024d4: 681b ldr r3, [r3, #0]
  4787. 80024d6: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4788. 80024da: 4618 mov r0, r3
  4789. 80024dc: f011 fa6b bl 80139b6 <osMutexAcquire>
  4790. 80024e0: 4603 mov r3, r0
  4791. 80024e2: 2b00 cmp r3, #0
  4792. 80024e4: d138 bne.n 8002558 <ADC3MeasTask+0x318>
  4793. if (sensorsInfo.motorXStatus == 1) {
  4794. 80024e6: 4b33 ldr r3, [pc, #204] @ (80025b4 <ADC3MeasTask+0x374>)
  4795. 80024e8: 7d1b ldrb r3, [r3, #20]
  4796. 80024ea: 2b01 cmp r3, #1
  4797. 80024ec: d111 bne.n 8002512 <ADC3MeasTask+0x2d2>
  4798. sensorsInfo.motorXAveCurrent = motorXAveCurrent;
  4799. 80024ee: 4a31 ldr r2, [pc, #196] @ (80025b4 <ADC3MeasTask+0x374>)
  4800. 80024f0: f8d7 30e8 ldr.w r3, [r7, #232] @ 0xe8
  4801. 80024f4: 6193 str r3, [r2, #24]
  4802. if (sensorsInfo.motorXPeakCurrent < motorXCurrentSense) {
  4803. 80024f6: 4b2f ldr r3, [pc, #188] @ (80025b4 <ADC3MeasTask+0x374>)
  4804. 80024f8: edd3 7a08 vldr s15, [r3, #32]
  4805. 80024fc: ed97 7a34 vldr s14, [r7, #208] @ 0xd0
  4806. 8002500: eeb4 7ae7 vcmpe.f32 s14, s15
  4807. 8002504: eef1 fa10 vmrs APSR_nzcv, fpscr
  4808. 8002508: dd03 ble.n 8002512 <ADC3MeasTask+0x2d2>
  4809. sensorsInfo.motorXPeakCurrent = motorXCurrentSense;
  4810. 800250a: 4a2a ldr r2, [pc, #168] @ (80025b4 <ADC3MeasTask+0x374>)
  4811. 800250c: f8d7 30d0 ldr.w r3, [r7, #208] @ 0xd0
  4812. 8002510: 6213 str r3, [r2, #32]
  4813. }
  4814. }
  4815. if (sensorsInfo.motorYStatus == 1) {
  4816. 8002512: 4b28 ldr r3, [pc, #160] @ (80025b4 <ADC3MeasTask+0x374>)
  4817. 8002514: 7d5b ldrb r3, [r3, #21]
  4818. 8002516: 2b01 cmp r3, #1
  4819. 8002518: d111 bne.n 800253e <ADC3MeasTask+0x2fe>
  4820. sensorsInfo.motorYAveCurrent = motorYAveCurrent;
  4821. 800251a: 4a26 ldr r2, [pc, #152] @ (80025b4 <ADC3MeasTask+0x374>)
  4822. 800251c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  4823. 8002520: 61d3 str r3, [r2, #28]
  4824. if (sensorsInfo.motorYPeakCurrent < motorYCurrentSense) {
  4825. 8002522: 4b24 ldr r3, [pc, #144] @ (80025b4 <ADC3MeasTask+0x374>)
  4826. 8002524: edd3 7a09 vldr s15, [r3, #36] @ 0x24
  4827. 8002528: ed97 7a33 vldr s14, [r7, #204] @ 0xcc
  4828. 800252c: eeb4 7ae7 vcmpe.f32 s14, s15
  4829. 8002530: eef1 fa10 vmrs APSR_nzcv, fpscr
  4830. 8002534: dd03 ble.n 800253e <ADC3MeasTask+0x2fe>
  4831. sensorsInfo.motorYPeakCurrent = motorYCurrentSense;
  4832. 8002536: 4a1f ldr r2, [pc, #124] @ (80025b4 <ADC3MeasTask+0x374>)
  4833. 8002538: f8d7 30cc ldr.w r3, [r7, #204] @ 0xcc
  4834. 800253c: 6253 str r3, [r2, #36] @ 0x24
  4835. }
  4836. }
  4837. sensorsInfo.pvTemperature[0] = pvT1AveTemp;
  4838. 800253e: 4a1d ldr r2, [pc, #116] @ (80025b4 <ADC3MeasTask+0x374>)
  4839. 8002540: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  4840. 8002544: 6013 str r3, [r2, #0]
  4841. sensorsInfo.pvTemperature[1] = pvT2AveTemp;
  4842. 8002546: 4a1b ldr r2, [pc, #108] @ (80025b4 <ADC3MeasTask+0x374>)
  4843. 8002548: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  4844. 800254c: 6053 str r3, [r2, #4]
  4845. osMutexRelease (sensorsInfoMutex);
  4846. 800254e: 4b18 ldr r3, [pc, #96] @ (80025b0 <ADC3MeasTask+0x370>)
  4847. 8002550: 681b ldr r3, [r3, #0]
  4848. 8002552: 4618 mov r0, r3
  4849. 8002554: f011 fa7a bl 8013a4c <osMutexRelease>
  4850. }
  4851. ++circBuffPos;
  4852. 8002558: f8d7 30ec ldr.w r3, [r7, #236] @ 0xec
  4853. 800255c: 3301 adds r3, #1
  4854. 800255e: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  4855. circBuffPos = circBuffPos % CIRC_BUFF_LEN;
  4856. 8002562: f8d7 20ec ldr.w r2, [r7, #236] @ 0xec
  4857. 8002566: 4b14 ldr r3, [pc, #80] @ (80025b8 <ADC3MeasTask+0x378>)
  4858. 8002568: fba3 1302 umull r1, r3, r3, r2
  4859. 800256c: 08d9 lsrs r1, r3, #3
  4860. 800256e: 460b mov r3, r1
  4861. 8002570: 009b lsls r3, r3, #2
  4862. 8002572: 440b add r3, r1
  4863. 8002574: 005b lsls r3, r3, #1
  4864. 8002576: 1ad3 subs r3, r2, r3
  4865. 8002578: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  4866. while (pdTRUE) {
  4867. 800257c: e68a b.n 8002294 <ADC3MeasTask+0x54>
  4868. 800257e: bf00 nop
  4869. 8002580: 00000000 .word 0x00000000
  4870. 8002584: 40efffe0 .word 0x40efffe0
  4871. 8002588: 3ad18d26 .word 0x3ad18d26
  4872. 800258c: 4020aaaa .word 0x4020aaaa
  4873. 8002590: aaa38226 .word 0xaaa38226
  4874. 8002594: 4046aaaa .word 0x4046aaaa
  4875. 8002598: 00000000 .word 0x00000000
  4876. 800259c: 404f8000 .word 0x404f8000
  4877. 80025a0: 240008d0 .word 0x240008d0
  4878. 80025a4: 1ff1e860 .word 0x1ff1e860
  4879. 80025a8: 240008d4 .word 0x240008d4
  4880. 80025ac: 24000030 .word 0x24000030
  4881. 80025b0: 240008dc .word 0x240008dc
  4882. 80025b4: 24000940 .word 0x24000940
  4883. 80025b8: cccccccd .word 0xcccccccd
  4884. 080025bc <LimiterSwitchTask>:
  4885. }
  4886. }
  4887. void LimiterSwitchTask (void* arg) {
  4888. 80025bc: b580 push {r7, lr}
  4889. 80025be: b08c sub sp, #48 @ 0x30
  4890. 80025c0: af06 add r7, sp, #24
  4891. 80025c2: 6078 str r0, [r7, #4]
  4892. uint8_t limitXSwitchDownPrevState = 0;
  4893. 80025c4: 2300 movs r3, #0
  4894. 80025c6: 75fb strb r3, [r7, #23]
  4895. uint8_t limitXSwitchCenterPrevState = 0;
  4896. 80025c8: 2300 movs r3, #0
  4897. 80025ca: 75bb strb r3, [r7, #22]
  4898. uint8_t limitXSwitchUpPrevState = 0;
  4899. 80025cc: 2300 movs r3, #0
  4900. 80025ce: 757b strb r3, [r7, #21]
  4901. uint8_t limitYSwitchDownPrevState = 0;
  4902. 80025d0: 2300 movs r3, #0
  4903. 80025d2: 753b strb r3, [r7, #20]
  4904. uint8_t limitYSwitchCenterPrevState = 0;
  4905. 80025d4: 2300 movs r3, #0
  4906. 80025d6: 74fb strb r3, [r7, #19]
  4907. uint8_t limitYSwitchUpPrevState = 0;
  4908. 80025d8: 2300 movs r3, #0
  4909. 80025da: 74bb strb r3, [r7, #18]
  4910. uint8_t pinStates = 0;
  4911. 80025dc: 2300 movs r3, #0
  4912. 80025de: 73fb strb r3, [r7, #15]
  4913. uint8_t limiterXTriggered = 0;
  4914. 80025e0: 2300 movs r3, #0
  4915. 80025e2: 747b strb r3, [r7, #17]
  4916. uint8_t limiterYTriggered = 0;
  4917. 80025e4: 2300 movs r3, #0
  4918. 80025e6: 743b strb r3, [r7, #16]
  4919. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  4920. 80025e8: 4bad ldr r3, [pc, #692] @ (80028a0 <LimiterSwitchTask+0x2e4>)
  4921. 80025ea: 681b ldr r3, [r3, #0]
  4922. 80025ec: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4923. 80025f0: 4618 mov r0, r3
  4924. 80025f2: f011 f9e0 bl 80139b6 <osMutexAcquire>
  4925. 80025f6: 4603 mov r3, r0
  4926. 80025f8: 2b00 cmp r3, #0
  4927. 80025fa: d10c bne.n 8002616 <LimiterSwitchTask+0x5a>
  4928. sensorsInfo.positionXWeak = 1;
  4929. 80025fc: 4ba9 ldr r3, [pc, #676] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  4930. 80025fe: 2201 movs r2, #1
  4931. 8002600: f883 2038 strb.w r2, [r3, #56] @ 0x38
  4932. sensorsInfo.positionYWeak = 1;
  4933. 8002604: 4ba7 ldr r3, [pc, #668] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  4934. 8002606: 2201 movs r2, #1
  4935. 8002608: f883 2039 strb.w r2, [r3, #57] @ 0x39
  4936. osMutexRelease (sensorsInfoMutex);
  4937. 800260c: 4ba4 ldr r3, [pc, #656] @ (80028a0 <LimiterSwitchTask+0x2e4>)
  4938. 800260e: 681b ldr r3, [r3, #0]
  4939. 8002610: 4618 mov r0, r3
  4940. 8002612: f011 fa1b bl 8013a4c <osMutexRelease>
  4941. }
  4942. while (pdTRUE) {
  4943. osDelay (pdMS_TO_TICKS (100));
  4944. 8002616: 2064 movs r0, #100 @ 0x64
  4945. 8002618: f011 f835 bl 8013686 <osDelay>
  4946. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  4947. 800261c: 4ba0 ldr r3, [pc, #640] @ (80028a0 <LimiterSwitchTask+0x2e4>)
  4948. 800261e: 681b ldr r3, [r3, #0]
  4949. 8002620: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  4950. 8002624: 4618 mov r0, r3
  4951. 8002626: f011 f9c6 bl 80139b6 <osMutexAcquire>
  4952. 800262a: 4603 mov r3, r0
  4953. 800262c: 2b00 cmp r3, #0
  4954. 800262e: d1f2 bne.n 8002616 <LimiterSwitchTask+0x5a>
  4955. sensorsInfo.limitXSwitchDown = HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_12);
  4956. 8002630: f44f 5180 mov.w r1, #4096 @ 0x1000
  4957. 8002634: 489c ldr r0, [pc, #624] @ (80028a8 <LimiterSwitchTask+0x2ec>)
  4958. 8002636: f008 fdab bl 800b190 <HAL_GPIO_ReadPin>
  4959. 800263a: 4603 mov r3, r0
  4960. 800263c: 461a mov r2, r3
  4961. 800263e: 4b99 ldr r3, [pc, #612] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  4962. 8002640: f883 2029 strb.w r2, [r3, #41] @ 0x29
  4963. pinStates = (limitXSwitchDownPrevState << 1) | sensorsInfo.limitXSwitchDown;
  4964. 8002644: 7dfb ldrb r3, [r7, #23]
  4965. 8002646: 005b lsls r3, r3, #1
  4966. 8002648: b25a sxtb r2, r3
  4967. 800264a: 4b96 ldr r3, [pc, #600] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  4968. 800264c: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  4969. 8002650: b25b sxtb r3, r3
  4970. 8002652: 4313 orrs r3, r2
  4971. 8002654: b25b sxtb r3, r3
  4972. 8002656: 73fb strb r3, [r7, #15]
  4973. if ((pinStates & 0x3) == 0x1) {
  4974. 8002658: 7bfb ldrb r3, [r7, #15]
  4975. 800265a: f003 0303 and.w r3, r3, #3
  4976. 800265e: 2b01 cmp r3, #1
  4977. 8002660: d109 bne.n 8002676 <LimiterSwitchTask+0xba>
  4978. limiterXTriggered = 1;
  4979. 8002662: 2301 movs r3, #1
  4980. 8002664: 747b strb r3, [r7, #17]
  4981. sensorsInfo.currentXPosition = 0;
  4982. 8002666: 4b8f ldr r3, [pc, #572] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  4983. 8002668: f04f 0200 mov.w r2, #0
  4984. 800266c: 631a str r2, [r3, #48] @ 0x30
  4985. sensorsInfo.positionXWeak = 0;
  4986. 800266e: 4b8d ldr r3, [pc, #564] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  4987. 8002670: 2200 movs r2, #0
  4988. 8002672: f883 2038 strb.w r2, [r3, #56] @ 0x38
  4989. }
  4990. limitXSwitchDownPrevState = sensorsInfo.limitXSwitchDown;
  4991. 8002676: 4b8b ldr r3, [pc, #556] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  4992. 8002678: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  4993. 800267c: 75fb strb r3, [r7, #23]
  4994. sensorsInfo.limitXSwitchUp = HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_13);
  4995. 800267e: f44f 5100 mov.w r1, #8192 @ 0x2000
  4996. 8002682: 4889 ldr r0, [pc, #548] @ (80028a8 <LimiterSwitchTask+0x2ec>)
  4997. 8002684: f008 fd84 bl 800b190 <HAL_GPIO_ReadPin>
  4998. 8002688: 4603 mov r3, r0
  4999. 800268a: 461a mov r2, r3
  5000. 800268c: 4b85 ldr r3, [pc, #532] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5001. 800268e: f883 2028 strb.w r2, [r3, #40] @ 0x28
  5002. pinStates = (limitXSwitchUpPrevState << 1) | sensorsInfo.limitXSwitchUp;
  5003. 8002692: 7d7b ldrb r3, [r7, #21]
  5004. 8002694: 005b lsls r3, r3, #1
  5005. 8002696: b25a sxtb r2, r3
  5006. 8002698: 4b82 ldr r3, [pc, #520] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5007. 800269a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5008. 800269e: b25b sxtb r3, r3
  5009. 80026a0: 4313 orrs r3, r2
  5010. 80026a2: b25b sxtb r3, r3
  5011. 80026a4: 73fb strb r3, [r7, #15]
  5012. if ((pinStates & 0x3) == 0x1) {
  5013. 80026a6: 7bfb ldrb r3, [r7, #15]
  5014. 80026a8: f003 0303 and.w r3, r3, #3
  5015. 80026ac: 2b01 cmp r3, #1
  5016. 80026ae: d108 bne.n 80026c2 <LimiterSwitchTask+0x106>
  5017. limiterXTriggered = 1;
  5018. 80026b0: 2301 movs r3, #1
  5019. 80026b2: 747b strb r3, [r7, #17]
  5020. sensorsInfo.currentXPosition = 100;
  5021. 80026b4: 4b7b ldr r3, [pc, #492] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5022. 80026b6: 4a7d ldr r2, [pc, #500] @ (80028ac <LimiterSwitchTask+0x2f0>)
  5023. 80026b8: 631a str r2, [r3, #48] @ 0x30
  5024. sensorsInfo.positionXWeak = 0;
  5025. 80026ba: 4b7a ldr r3, [pc, #488] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5026. 80026bc: 2200 movs r2, #0
  5027. 80026be: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5028. }
  5029. limitXSwitchUpPrevState = sensorsInfo.limitXSwitchUp;
  5030. 80026c2: 4b78 ldr r3, [pc, #480] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5031. 80026c4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5032. 80026c8: 757b strb r3, [r7, #21]
  5033. sensorsInfo.limitXSwitchCenter = HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_10);
  5034. 80026ca: f44f 6180 mov.w r1, #1024 @ 0x400
  5035. 80026ce: 4876 ldr r0, [pc, #472] @ (80028a8 <LimiterSwitchTask+0x2ec>)
  5036. 80026d0: f008 fd5e bl 800b190 <HAL_GPIO_ReadPin>
  5037. 80026d4: 4603 mov r3, r0
  5038. 80026d6: 461a mov r2, r3
  5039. 80026d8: 4b72 ldr r3, [pc, #456] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5040. 80026da: f883 202a strb.w r2, [r3, #42] @ 0x2a
  5041. pinStates = (limitXSwitchCenterPrevState << 1) | sensorsInfo.limitXSwitchCenter;
  5042. 80026de: 7dbb ldrb r3, [r7, #22]
  5043. 80026e0: 005b lsls r3, r3, #1
  5044. 80026e2: b25a sxtb r2, r3
  5045. 80026e4: 4b6f ldr r3, [pc, #444] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5046. 80026e6: f893 302a ldrb.w r3, [r3, #42] @ 0x2a
  5047. 80026ea: b25b sxtb r3, r3
  5048. 80026ec: 4313 orrs r3, r2
  5049. 80026ee: b25b sxtb r3, r3
  5050. 80026f0: 73fb strb r3, [r7, #15]
  5051. if ((pinStates & 0x3) == 0x1) {
  5052. 80026f2: 7bfb ldrb r3, [r7, #15]
  5053. 80026f4: f003 0303 and.w r3, r3, #3
  5054. 80026f8: 2b01 cmp r3, #1
  5055. 80026fa: d106 bne.n 800270a <LimiterSwitchTask+0x14e>
  5056. sensorsInfo.currentXPosition = AXE_X_MIDDLE_VALUE;
  5057. 80026fc: 4b69 ldr r3, [pc, #420] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5058. 80026fe: 4a6c ldr r2, [pc, #432] @ (80028b0 <LimiterSwitchTask+0x2f4>)
  5059. 8002700: 631a str r2, [r3, #48] @ 0x30
  5060. sensorsInfo.positionXWeak = 0;
  5061. 8002702: 4b68 ldr r3, [pc, #416] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5062. 8002704: 2200 movs r2, #0
  5063. 8002706: f883 2038 strb.w r2, [r3, #56] @ 0x38
  5064. }
  5065. limitXSwitchCenterPrevState = sensorsInfo.limitXSwitchCenter;
  5066. 800270a: 4b66 ldr r3, [pc, #408] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5067. 800270c: f893 302a ldrb.w r3, [r3, #42] @ 0x2a
  5068. 8002710: 75bb strb r3, [r7, #22]
  5069. sensorsInfo.limitYSwitchDown = HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_11);
  5070. 8002712: f44f 6100 mov.w r1, #2048 @ 0x800
  5071. 8002716: 4864 ldr r0, [pc, #400] @ (80028a8 <LimiterSwitchTask+0x2ec>)
  5072. 8002718: f008 fd3a bl 800b190 <HAL_GPIO_ReadPin>
  5073. 800271c: 4603 mov r3, r0
  5074. 800271e: 461a mov r2, r3
  5075. 8002720: 4b60 ldr r3, [pc, #384] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5076. 8002722: f883 202c strb.w r2, [r3, #44] @ 0x2c
  5077. pinStates = (limitYSwitchDownPrevState << 1) | sensorsInfo.limitYSwitchDown;
  5078. 8002726: 7d3b ldrb r3, [r7, #20]
  5079. 8002728: 005b lsls r3, r3, #1
  5080. 800272a: b25a sxtb r2, r3
  5081. 800272c: 4b5d ldr r3, [pc, #372] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5082. 800272e: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5083. 8002732: b25b sxtb r3, r3
  5084. 8002734: 4313 orrs r3, r2
  5085. 8002736: b25b sxtb r3, r3
  5086. 8002738: 73fb strb r3, [r7, #15]
  5087. if ((pinStates & 0x3) == 0x1) {
  5088. 800273a: 7bfb ldrb r3, [r7, #15]
  5089. 800273c: f003 0303 and.w r3, r3, #3
  5090. 8002740: 2b01 cmp r3, #1
  5091. 8002742: d109 bne.n 8002758 <LimiterSwitchTask+0x19c>
  5092. limiterYTriggered = 1;
  5093. 8002744: 2301 movs r3, #1
  5094. 8002746: 743b strb r3, [r7, #16]
  5095. sensorsInfo.currentYPosition = 0;
  5096. 8002748: 4b56 ldr r3, [pc, #344] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5097. 800274a: f04f 0200 mov.w r2, #0
  5098. 800274e: 635a str r2, [r3, #52] @ 0x34
  5099. sensorsInfo.positionYWeak = 0;
  5100. 8002750: 4b54 ldr r3, [pc, #336] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5101. 8002752: 2200 movs r2, #0
  5102. 8002754: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5103. }
  5104. limitYSwitchDownPrevState = sensorsInfo.limitYSwitchDown;
  5105. 8002758: 4b52 ldr r3, [pc, #328] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5106. 800275a: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5107. 800275e: 753b strb r3, [r7, #20]
  5108. sensorsInfo.limitYSwitchUp = HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_9);
  5109. 8002760: f44f 7100 mov.w r1, #512 @ 0x200
  5110. 8002764: 4850 ldr r0, [pc, #320] @ (80028a8 <LimiterSwitchTask+0x2ec>)
  5111. 8002766: f008 fd13 bl 800b190 <HAL_GPIO_ReadPin>
  5112. 800276a: 4603 mov r3, r0
  5113. 800276c: 461a mov r2, r3
  5114. 800276e: 4b4d ldr r3, [pc, #308] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5115. 8002770: f883 202b strb.w r2, [r3, #43] @ 0x2b
  5116. pinStates = (limitYSwitchUpPrevState << 1) | sensorsInfo.limitYSwitchUp;
  5117. 8002774: 7cbb ldrb r3, [r7, #18]
  5118. 8002776: 005b lsls r3, r3, #1
  5119. 8002778: b25a sxtb r2, r3
  5120. 800277a: 4b4a ldr r3, [pc, #296] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5121. 800277c: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5122. 8002780: b25b sxtb r3, r3
  5123. 8002782: 4313 orrs r3, r2
  5124. 8002784: b25b sxtb r3, r3
  5125. 8002786: 73fb strb r3, [r7, #15]
  5126. if ((pinStates & 0x3) == 0x1) {
  5127. 8002788: 7bfb ldrb r3, [r7, #15]
  5128. 800278a: f003 0303 and.w r3, r3, #3
  5129. 800278e: 2b01 cmp r3, #1
  5130. 8002790: d108 bne.n 80027a4 <LimiterSwitchTask+0x1e8>
  5131. limiterYTriggered = 1;
  5132. 8002792: 2301 movs r3, #1
  5133. 8002794: 743b strb r3, [r7, #16]
  5134. sensorsInfo.currentYPosition = 100;
  5135. 8002796: 4b43 ldr r3, [pc, #268] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5136. 8002798: 4a44 ldr r2, [pc, #272] @ (80028ac <LimiterSwitchTask+0x2f0>)
  5137. 800279a: 635a str r2, [r3, #52] @ 0x34
  5138. sensorsInfo.positionYWeak = 0;
  5139. 800279c: 4b41 ldr r3, [pc, #260] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5140. 800279e: 2200 movs r2, #0
  5141. 80027a0: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5142. }
  5143. limitYSwitchUpPrevState = sensorsInfo.limitYSwitchUp;
  5144. 80027a4: 4b3f ldr r3, [pc, #252] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5145. 80027a6: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5146. 80027aa: 74bb strb r3, [r7, #18]
  5147. sensorsInfo.limitYSwitchCenter = HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_8);
  5148. 80027ac: f44f 7180 mov.w r1, #256 @ 0x100
  5149. 80027b0: 483d ldr r0, [pc, #244] @ (80028a8 <LimiterSwitchTask+0x2ec>)
  5150. 80027b2: f008 fced bl 800b190 <HAL_GPIO_ReadPin>
  5151. 80027b6: 4603 mov r3, r0
  5152. 80027b8: 461a mov r2, r3
  5153. 80027ba: 4b3a ldr r3, [pc, #232] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5154. 80027bc: f883 202d strb.w r2, [r3, #45] @ 0x2d
  5155. pinStates = (limitYSwitchCenterPrevState << 1) | sensorsInfo.limitYSwitchCenter;
  5156. 80027c0: 7cfb ldrb r3, [r7, #19]
  5157. 80027c2: 005b lsls r3, r3, #1
  5158. 80027c4: b25a sxtb r2, r3
  5159. 80027c6: 4b37 ldr r3, [pc, #220] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5160. 80027c8: f893 302d ldrb.w r3, [r3, #45] @ 0x2d
  5161. 80027cc: b25b sxtb r3, r3
  5162. 80027ce: 4313 orrs r3, r2
  5163. 80027d0: b25b sxtb r3, r3
  5164. 80027d2: 73fb strb r3, [r7, #15]
  5165. if ((pinStates & 0x3) == 0x1) {
  5166. 80027d4: 7bfb ldrb r3, [r7, #15]
  5167. 80027d6: f003 0303 and.w r3, r3, #3
  5168. 80027da: 2b01 cmp r3, #1
  5169. 80027dc: d106 bne.n 80027ec <LimiterSwitchTask+0x230>
  5170. sensorsInfo.currentYPosition = AXE_Y_MIDDLE_VALUE;
  5171. 80027de: 4b31 ldr r3, [pc, #196] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5172. 80027e0: 4a33 ldr r2, [pc, #204] @ (80028b0 <LimiterSwitchTask+0x2f4>)
  5173. 80027e2: 635a str r2, [r3, #52] @ 0x34
  5174. sensorsInfo.positionYWeak = 0;
  5175. 80027e4: 4b2f ldr r3, [pc, #188] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5176. 80027e6: 2200 movs r2, #0
  5177. 80027e8: f883 2039 strb.w r2, [r3, #57] @ 0x39
  5178. }
  5179. limitYSwitchCenterPrevState = sensorsInfo.limitYSwitchCenter;
  5180. 80027ec: 4b2d ldr r3, [pc, #180] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5181. 80027ee: f893 302d ldrb.w r3, [r3, #45] @ 0x2d
  5182. 80027f2: 74fb strb r3, [r7, #19]
  5183. if (((sensorsInfo.limitXSwitchDown == 1) || (sensorsInfo.limitXSwitchUp == 1)) && (limiterXTriggered == 1)) {
  5184. 80027f4: 4b2b ldr r3, [pc, #172] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5185. 80027f6: f893 3029 ldrb.w r3, [r3, #41] @ 0x29
  5186. 80027fa: 2b01 cmp r3, #1
  5187. 80027fc: d004 beq.n 8002808 <LimiterSwitchTask+0x24c>
  5188. 80027fe: 4b29 ldr r3, [pc, #164] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5189. 8002800: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  5190. 8002804: 2b01 cmp r3, #1
  5191. 8002806: d11b bne.n 8002840 <LimiterSwitchTask+0x284>
  5192. 8002808: 7c7b ldrb r3, [r7, #17]
  5193. 800280a: 2b01 cmp r3, #1
  5194. 800280c: d118 bne.n 8002840 <LimiterSwitchTask+0x284>
  5195. sensorsInfo.motorXStatus = MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, 0, 0, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  5196. 800280e: 4b29 ldr r3, [pc, #164] @ (80028b4 <LimiterSwitchTask+0x2f8>)
  5197. 8002810: 681b ldr r3, [r3, #0]
  5198. 8002812: 4a24 ldr r2, [pc, #144] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5199. 8002814: f892 2028 ldrb.w r2, [r2, #40] @ 0x28
  5200. 8002818: 4922 ldr r1, [pc, #136] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5201. 800281a: f891 1029 ldrb.w r1, [r1, #41] @ 0x29
  5202. 800281e: 9104 str r1, [sp, #16]
  5203. 8002820: 9203 str r2, [sp, #12]
  5204. 8002822: 2200 movs r2, #0
  5205. 8002824: 9202 str r2, [sp, #8]
  5206. 8002826: 2200 movs r2, #0
  5207. 8002828: 9201 str r2, [sp, #4]
  5208. 800282a: 9300 str r3, [sp, #0]
  5209. 800282c: 2304 movs r3, #4
  5210. 800282e: 2200 movs r2, #0
  5211. 8002830: 4921 ldr r1, [pc, #132] @ (80028b8 <LimiterSwitchTask+0x2fc>)
  5212. 8002832: 4822 ldr r0, [pc, #136] @ (80028bc <LimiterSwitchTask+0x300>)
  5213. 8002834: f000 f98e bl 8002b54 <MotorControl>
  5214. 8002838: 4603 mov r3, r0
  5215. 800283a: 461a mov r2, r3
  5216. 800283c: 4b19 ldr r3, [pc, #100] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5217. 800283e: 751a strb r2, [r3, #20]
  5218. }
  5219. if (((sensorsInfo.limitYSwitchDown == 1) || (sensorsInfo.limitYSwitchUp == 1)) && (limiterYTriggered == 1)) {
  5220. 8002840: 4b18 ldr r3, [pc, #96] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5221. 8002842: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
  5222. 8002846: 2b01 cmp r3, #1
  5223. 8002848: d004 beq.n 8002854 <LimiterSwitchTask+0x298>
  5224. 800284a: 4b16 ldr r3, [pc, #88] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5225. 800284c: f893 302b ldrb.w r3, [r3, #43] @ 0x2b
  5226. 8002850: 2b01 cmp r3, #1
  5227. 8002852: d11b bne.n 800288c <LimiterSwitchTask+0x2d0>
  5228. 8002854: 7c3b ldrb r3, [r7, #16]
  5229. 8002856: 2b01 cmp r3, #1
  5230. 8002858: d118 bne.n 800288c <LimiterSwitchTask+0x2d0>
  5231. sensorsInfo.motorYStatus = MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, 0, 0, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  5232. 800285a: 4b19 ldr r3, [pc, #100] @ (80028c0 <LimiterSwitchTask+0x304>)
  5233. 800285c: 681b ldr r3, [r3, #0]
  5234. 800285e: 4a11 ldr r2, [pc, #68] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5235. 8002860: f892 202b ldrb.w r2, [r2, #43] @ 0x2b
  5236. 8002864: 490f ldr r1, [pc, #60] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5237. 8002866: f891 102c ldrb.w r1, [r1, #44] @ 0x2c
  5238. 800286a: 9104 str r1, [sp, #16]
  5239. 800286c: 9203 str r2, [sp, #12]
  5240. 800286e: 2200 movs r2, #0
  5241. 8002870: 9202 str r2, [sp, #8]
  5242. 8002872: 2200 movs r2, #0
  5243. 8002874: 9201 str r2, [sp, #4]
  5244. 8002876: 9300 str r3, [sp, #0]
  5245. 8002878: 230c movs r3, #12
  5246. 800287a: 2208 movs r2, #8
  5247. 800287c: 490e ldr r1, [pc, #56] @ (80028b8 <LimiterSwitchTask+0x2fc>)
  5248. 800287e: 480f ldr r0, [pc, #60] @ (80028bc <LimiterSwitchTask+0x300>)
  5249. 8002880: f000 f968 bl 8002b54 <MotorControl>
  5250. 8002884: 4603 mov r3, r0
  5251. 8002886: 461a mov r2, r3
  5252. 8002888: 4b06 ldr r3, [pc, #24] @ (80028a4 <LimiterSwitchTask+0x2e8>)
  5253. 800288a: 755a strb r2, [r3, #21]
  5254. }
  5255. limiterXTriggered = 0;
  5256. 800288c: 2300 movs r3, #0
  5257. 800288e: 747b strb r3, [r7, #17]
  5258. limiterYTriggered = 0;
  5259. 8002890: 2300 movs r3, #0
  5260. 8002892: 743b strb r3, [r7, #16]
  5261. osMutexRelease (sensorsInfoMutex);
  5262. 8002894: 4b02 ldr r3, [pc, #8] @ (80028a0 <LimiterSwitchTask+0x2e4>)
  5263. 8002896: 681b ldr r3, [r3, #0]
  5264. 8002898: 4618 mov r0, r3
  5265. 800289a: f011 f8d7 bl 8013a4c <osMutexRelease>
  5266. osDelay (pdMS_TO_TICKS (100));
  5267. 800289e: e6ba b.n 8002616 <LimiterSwitchTask+0x5a>
  5268. 80028a0: 240008dc .word 0x240008dc
  5269. 80028a4: 24000940 .word 0x24000940
  5270. 80028a8: 58020c00 .word 0x58020c00
  5271. 80028ac: 42c80000 .word 0x42c80000
  5272. 80028b0: 42480000 .word 0x42480000
  5273. 80028b4: 2400080c .word 0x2400080c
  5274. 80028b8: 24000888 .word 0x24000888
  5275. 80028bc: 240005e8 .word 0x240005e8
  5276. 80028c0: 2400083c .word 0x2400083c
  5277. 080028c4 <EncoderTask>:
  5278. }
  5279. }
  5280. }
  5281. void EncoderTask (void* arg) {
  5282. 80028c4: b590 push {r4, r7, lr}
  5283. 80028c6: b08b sub sp, #44 @ 0x2c
  5284. 80028c8: af00 add r7, sp, #0
  5285. 80028ca: 6078 str r0, [r7, #4]
  5286. // 01 11 10 00
  5287. const uint32_t encoderStates[4] = { 0x00, 0x01, 0x03, 0x02 };
  5288. 80028cc: 4b55 ldr r3, [pc, #340] @ (8002a24 <EncoderTask+0x160>)
  5289. 80028ce: f107 040c add.w r4, r7, #12
  5290. 80028d2: cb0f ldmia r3, {r0, r1, r2, r3}
  5291. 80028d4: e884 000f stmia.w r4, {r0, r1, r2, r3}
  5292. uint8_t step = 0;
  5293. 80028d8: 2300 movs r3, #0
  5294. 80028da: f887 3027 strb.w r3, [r7, #39] @ 0x27
  5295. EncoderTaskArg* encoderTaskArg = (EncoderTaskArg*)arg;
  5296. 80028de: 687b ldr r3, [r7, #4]
  5297. 80028e0: 61fb str r3, [r7, #28]
  5298. uint32_t pinStates = encoderTaskArg->initPinStates;
  5299. 80028e2: 69fb ldr r3, [r7, #28]
  5300. 80028e4: 68db ldr r3, [r3, #12]
  5301. 80028e6: 60bb str r3, [r7, #8]
  5302. for (uint8_t i = 0; i < 4; i++) {
  5303. 80028e8: 2300 movs r3, #0
  5304. 80028ea: f887 3026 strb.w r3, [r7, #38] @ 0x26
  5305. 80028ee: e014 b.n 800291a <EncoderTask+0x56>
  5306. if (pinStates == encoderStates[i]) {
  5307. 80028f0: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  5308. 80028f4: 009b lsls r3, r3, #2
  5309. 80028f6: 3328 adds r3, #40 @ 0x28
  5310. 80028f8: 443b add r3, r7
  5311. 80028fa: f853 2c1c ldr.w r2, [r3, #-28]
  5312. 80028fe: 68bb ldr r3, [r7, #8]
  5313. 8002900: 429a cmp r2, r3
  5314. 8002902: d105 bne.n 8002910 <EncoderTask+0x4c>
  5315. step = i;
  5316. 8002904: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  5317. 8002908: f887 3027 strb.w r3, [r7, #39] @ 0x27
  5318. break;
  5319. 800290c: bf00 nop
  5320. 800290e: e008 b.n 8002922 <EncoderTask+0x5e>
  5321. for (uint8_t i = 0; i < 4; i++) {
  5322. 8002910: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  5323. 8002914: 3301 adds r3, #1
  5324. 8002916: f887 3026 strb.w r3, [r7, #38] @ 0x26
  5325. 800291a: f897 3026 ldrb.w r3, [r7, #38] @ 0x26
  5326. 800291e: 2b03 cmp r3, #3
  5327. 8002920: d9e6 bls.n 80028f0 <EncoderTask+0x2c>
  5328. }
  5329. }
  5330. while (pdTRUE) {
  5331. osMessageQueueGet (encoderTaskArg->dataQueue, &pinStates, 0, osWaitForever);
  5332. 8002922: 69fb ldr r3, [r7, #28]
  5333. 8002924: 6918 ldr r0, [r3, #16]
  5334. 8002926: f107 0108 add.w r1, r7, #8
  5335. 800292a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  5336. 800292e: 2200 movs r2, #0
  5337. 8002930: f011 f99c bl 8013c6c <osMessageQueueGet>
  5338. float encoderValue = *encoderTaskArg->pvEncoder;
  5339. 8002934: 69fb ldr r3, [r7, #28]
  5340. 8002936: 689b ldr r3, [r3, #8]
  5341. 8002938: 681b ldr r3, [r3, #0]
  5342. 800293a: 623b str r3, [r7, #32]
  5343. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  5344. 800293c: 4b3a ldr r3, [pc, #232] @ (8002a28 <EncoderTask+0x164>)
  5345. 800293e: 681b ldr r3, [r3, #0]
  5346. 8002940: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  5347. 8002944: 4618 mov r0, r3
  5348. 8002946: f011 f836 bl 80139b6 <osMutexAcquire>
  5349. 800294a: 4603 mov r3, r0
  5350. 800294c: 2b00 cmp r3, #0
  5351. 800294e: d161 bne.n 8002a14 <EncoderTask+0x150>
  5352. if (encoderStates[(step + 1) % 4] == pinStates) {
  5353. 8002950: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  5354. 8002954: 3301 adds r3, #1
  5355. 8002956: 425a negs r2, r3
  5356. 8002958: f003 0303 and.w r3, r3, #3
  5357. 800295c: f002 0203 and.w r2, r2, #3
  5358. 8002960: bf58 it pl
  5359. 8002962: 4253 negpl r3, r2
  5360. 8002964: 009b lsls r3, r3, #2
  5361. 8002966: 3328 adds r3, #40 @ 0x28
  5362. 8002968: 443b add r3, r7
  5363. 800296a: f853 2c1c ldr.w r2, [r3, #-28]
  5364. 800296e: 68bb ldr r3, [r7, #8]
  5365. 8002970: 429a cmp r2, r3
  5366. 8002972: d10d bne.n 8002990 <EncoderTask+0xcc>
  5367. step++;
  5368. 8002974: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  5369. 8002978: 3301 adds r3, #1
  5370. 800297a: f887 3027 strb.w r3, [r7, #39] @ 0x27
  5371. encoderValue++;
  5372. 800297e: edd7 7a08 vldr s15, [r7, #32]
  5373. 8002982: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  5374. 8002986: ee77 7a87 vadd.f32 s15, s15, s14
  5375. 800298a: edc7 7a08 vstr s15, [r7, #32]
  5376. 800298e: e022 b.n 80029d6 <EncoderTask+0x112>
  5377. // encoderValue += 360.0 / ENCODER_X_IMP_PER_TURN;
  5378. // printf ("Forward\n");
  5379. } else if (encoderStates[(step - 1) % 4] == pinStates) {
  5380. 8002990: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  5381. 8002994: 3b01 subs r3, #1
  5382. 8002996: 425a negs r2, r3
  5383. 8002998: f003 0303 and.w r3, r3, #3
  5384. 800299c: f002 0203 and.w r2, r2, #3
  5385. 80029a0: bf58 it pl
  5386. 80029a2: 4253 negpl r3, r2
  5387. 80029a4: 009b lsls r3, r3, #2
  5388. 80029a6: 3328 adds r3, #40 @ 0x28
  5389. 80029a8: 443b add r3, r7
  5390. 80029aa: f853 2c1c ldr.w r2, [r3, #-28]
  5391. 80029ae: 68bb ldr r3, [r7, #8]
  5392. 80029b0: 429a cmp r2, r3
  5393. 80029b2: d10d bne.n 80029d0 <EncoderTask+0x10c>
  5394. encoderValue--;
  5395. 80029b4: edd7 7a08 vldr s15, [r7, #32]
  5396. 80029b8: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  5397. 80029bc: ee77 7ac7 vsub.f32 s15, s15, s14
  5398. 80029c0: edc7 7a08 vstr s15, [r7, #32]
  5399. // encoderValue -= 360.0 / ENCODER_X_IMP_PER_TURN;
  5400. // if (encoderValue < 0) {
  5401. // encoderValue = 360.0 + encoderValue;
  5402. // }
  5403. // printf ("Reverse\n");
  5404. step--;
  5405. 80029c4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  5406. 80029c8: 3b01 subs r3, #1
  5407. 80029ca: f887 3027 strb.w r3, [r7, #39] @ 0x27
  5408. 80029ce: e002 b.n 80029d6 <EncoderTask+0x112>
  5409. } else {
  5410. printf ("Forbidden\n");
  5411. 80029d0: 4816 ldr r0, [pc, #88] @ (8002a2c <EncoderTask+0x168>)
  5412. 80029d2: f015 fc69 bl 80182a8 <puts>
  5413. }
  5414. step = step % 4;
  5415. 80029d6: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  5416. 80029da: f003 0303 and.w r3, r3, #3
  5417. 80029de: f887 3027 strb.w r3, [r7, #39] @ 0x27
  5418. // *encoderTaskArg->pvEncoder = fmodf (encoderValue, 360.0);
  5419. *encoderTaskArg->pvEncoder = encoderValue;
  5420. 80029e2: 69fb ldr r3, [r7, #28]
  5421. 80029e4: 689b ldr r3, [r3, #8]
  5422. 80029e6: 6a3a ldr r2, [r7, #32]
  5423. 80029e8: 601a str r2, [r3, #0]
  5424. *encoderTaskArg->currentPosition = 100 * (*encoderTaskArg->pvEncoder) / MAX_X_AXE_ANGLE;
  5425. 80029ea: 69fb ldr r3, [r7, #28]
  5426. 80029ec: 689b ldr r3, [r3, #8]
  5427. 80029ee: edd3 7a00 vldr s15, [r3]
  5428. 80029f2: ed9f 7a0f vldr s14, [pc, #60] @ 8002a30 <EncoderTask+0x16c>
  5429. 80029f6: ee27 7a87 vmul.f32 s14, s15, s14
  5430. 80029fa: 69fb ldr r3, [r7, #28]
  5431. 80029fc: 685b ldr r3, [r3, #4]
  5432. 80029fe: eddf 6a0d vldr s13, [pc, #52] @ 8002a34 <EncoderTask+0x170>
  5433. 8002a02: eec7 7a26 vdiv.f32 s15, s14, s13
  5434. 8002a06: edc3 7a00 vstr s15, [r3]
  5435. osMutexRelease (sensorsInfoMutex);
  5436. 8002a0a: 4b07 ldr r3, [pc, #28] @ (8002a28 <EncoderTask+0x164>)
  5437. 8002a0c: 681b ldr r3, [r3, #0]
  5438. 8002a0e: 4618 mov r0, r3
  5439. 8002a10: f011 f81c bl 8013a4c <osMutexRelease>
  5440. }
  5441. DbgLEDToggle (encoderTaskArg->dbgLed);
  5442. 8002a14: 69fb ldr r3, [r7, #28]
  5443. 8002a16: 881b ldrh r3, [r3, #0]
  5444. 8002a18: b2db uxtb r3, r3
  5445. 8002a1a: 4618 mov r0, r3
  5446. 8002a1c: f000 f830 bl 8002a80 <DbgLEDToggle>
  5447. while (pdTRUE) {
  5448. 8002a20: e77f b.n 8002922 <EncoderTask+0x5e>
  5449. 8002a22: bf00 nop
  5450. 8002a24: 0801a1fc .word 0x0801a1fc
  5451. 8002a28: 240008dc .word 0x240008dc
  5452. 8002a2c: 0801a1f0 .word 0x0801a1f0
  5453. 8002a30: 42c80000 .word 0x42c80000
  5454. 8002a34: 43b40000 .word 0x43b40000
  5455. 08002a38 <DbgLEDOn>:
  5456. #include <stdlib.h>
  5457. #include "peripherial.h"
  5458. void DbgLEDOn (uint8_t ledNumber) {
  5459. 8002a38: b580 push {r7, lr}
  5460. 8002a3a: b082 sub sp, #8
  5461. 8002a3c: af00 add r7, sp, #0
  5462. 8002a3e: 4603 mov r3, r0
  5463. 8002a40: 71fb strb r3, [r7, #7]
  5464. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_SET);
  5465. 8002a42: 79fb ldrb r3, [r7, #7]
  5466. 8002a44: b29b uxth r3, r3
  5467. 8002a46: 2201 movs r2, #1
  5468. 8002a48: 4619 mov r1, r3
  5469. 8002a4a: 4803 ldr r0, [pc, #12] @ (8002a58 <DbgLEDOn+0x20>)
  5470. 8002a4c: f008 fbb8 bl 800b1c0 <HAL_GPIO_WritePin>
  5471. }
  5472. 8002a50: bf00 nop
  5473. 8002a52: 3708 adds r7, #8
  5474. 8002a54: 46bd mov sp, r7
  5475. 8002a56: bd80 pop {r7, pc}
  5476. 8002a58: 58020c00 .word 0x58020c00
  5477. 08002a5c <DbgLEDOff>:
  5478. void DbgLEDOff (uint8_t ledNumber) {
  5479. 8002a5c: b580 push {r7, lr}
  5480. 8002a5e: b082 sub sp, #8
  5481. 8002a60: af00 add r7, sp, #0
  5482. 8002a62: 4603 mov r3, r0
  5483. 8002a64: 71fb strb r3, [r7, #7]
  5484. HAL_GPIO_WritePin (GPIOD, ledNumber, GPIO_PIN_RESET);
  5485. 8002a66: 79fb ldrb r3, [r7, #7]
  5486. 8002a68: b29b uxth r3, r3
  5487. 8002a6a: 2200 movs r2, #0
  5488. 8002a6c: 4619 mov r1, r3
  5489. 8002a6e: 4803 ldr r0, [pc, #12] @ (8002a7c <DbgLEDOff+0x20>)
  5490. 8002a70: f008 fba6 bl 800b1c0 <HAL_GPIO_WritePin>
  5491. }
  5492. 8002a74: bf00 nop
  5493. 8002a76: 3708 adds r7, #8
  5494. 8002a78: 46bd mov sp, r7
  5495. 8002a7a: bd80 pop {r7, pc}
  5496. 8002a7c: 58020c00 .word 0x58020c00
  5497. 08002a80 <DbgLEDToggle>:
  5498. void DbgLEDToggle (uint8_t ledNumber) {
  5499. 8002a80: b580 push {r7, lr}
  5500. 8002a82: b082 sub sp, #8
  5501. 8002a84: af00 add r7, sp, #0
  5502. 8002a86: 4603 mov r3, r0
  5503. 8002a88: 71fb strb r3, [r7, #7]
  5504. HAL_GPIO_TogglePin (GPIOD, ledNumber);
  5505. 8002a8a: 79fb ldrb r3, [r7, #7]
  5506. 8002a8c: b29b uxth r3, r3
  5507. 8002a8e: 4619 mov r1, r3
  5508. 8002a90: 4803 ldr r0, [pc, #12] @ (8002aa0 <DbgLEDToggle+0x20>)
  5509. 8002a92: f008 fbae bl 800b1f2 <HAL_GPIO_TogglePin>
  5510. }
  5511. 8002a96: bf00 nop
  5512. 8002a98: 3708 adds r7, #8
  5513. 8002a9a: 46bd mov sp, r7
  5514. 8002a9c: bd80 pop {r7, pc}
  5515. 8002a9e: bf00 nop
  5516. 8002aa0: 58020c00 .word 0x58020c00
  5517. 08002aa4 <EnableCurrentSensors>:
  5518. void EnableCurrentSensors (void) {
  5519. 8002aa4: b580 push {r7, lr}
  5520. 8002aa6: af00 add r7, sp, #0
  5521. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_SET);
  5522. 8002aa8: 2201 movs r2, #1
  5523. 8002aaa: f44f 4100 mov.w r1, #32768 @ 0x8000
  5524. 8002aae: 4802 ldr r0, [pc, #8] @ (8002ab8 <EnableCurrentSensors+0x14>)
  5525. 8002ab0: f008 fb86 bl 800b1c0 <HAL_GPIO_WritePin>
  5526. }
  5527. 8002ab4: bf00 nop
  5528. 8002ab6: bd80 pop {r7, pc}
  5529. 8002ab8: 58021000 .word 0x58021000
  5530. 08002abc <SelectCurrentSensorGain>:
  5531. void DisableCurrentSensors (void) {
  5532. HAL_GPIO_WritePin (GPIOE, MCU_CS_PWR_EN, GPIO_PIN_RESET);
  5533. }
  5534. void SelectCurrentSensorGain (CurrentSensor sensor, CurrentSensorGain gain) {
  5535. 8002abc: b580 push {r7, lr}
  5536. 8002abe: b084 sub sp, #16
  5537. 8002ac0: af00 add r7, sp, #0
  5538. 8002ac2: 4603 mov r3, r0
  5539. 8002ac4: 460a mov r2, r1
  5540. 8002ac6: 71fb strb r3, [r7, #7]
  5541. 8002ac8: 4613 mov r3, r2
  5542. 8002aca: 71bb strb r3, [r7, #6]
  5543. uint8_t gpioOffset = 0;
  5544. 8002acc: 2300 movs r3, #0
  5545. 8002ace: 73fb strb r3, [r7, #15]
  5546. switch (sensor) {
  5547. 8002ad0: 79fb ldrb r3, [r7, #7]
  5548. 8002ad2: 2b02 cmp r3, #2
  5549. 8002ad4: d00c beq.n 8002af0 <SelectCurrentSensorGain+0x34>
  5550. 8002ad6: 2b02 cmp r3, #2
  5551. 8002ad8: dc0d bgt.n 8002af6 <SelectCurrentSensorGain+0x3a>
  5552. 8002ada: 2b00 cmp r3, #0
  5553. 8002adc: d002 beq.n 8002ae4 <SelectCurrentSensorGain+0x28>
  5554. 8002ade: 2b01 cmp r3, #1
  5555. 8002ae0: d003 beq.n 8002aea <SelectCurrentSensorGain+0x2e>
  5556. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  5557. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  5558. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  5559. default: break;
  5560. 8002ae2: e008 b.n 8002af6 <SelectCurrentSensorGain+0x3a>
  5561. case CurrentSensorL1: gpioOffset = CURRENT_SENSOR_L1_GPIO_OFFSET; break;
  5562. 8002ae4: 2307 movs r3, #7
  5563. 8002ae6: 73fb strb r3, [r7, #15]
  5564. 8002ae8: e006 b.n 8002af8 <SelectCurrentSensorGain+0x3c>
  5565. case CurrentSensorL2: gpioOffset = CURRENT_SENSOR_L2_GPIO_OFFSET; break;
  5566. 8002aea: 2309 movs r3, #9
  5567. 8002aec: 73fb strb r3, [r7, #15]
  5568. 8002aee: e003 b.n 8002af8 <SelectCurrentSensorGain+0x3c>
  5569. case CurrentSensorL3: gpioOffset = CURRENT_SENSOR_L3_GPIO_OFFSET; break;
  5570. 8002af0: 230d movs r3, #13
  5571. 8002af2: 73fb strb r3, [r7, #15]
  5572. 8002af4: e000 b.n 8002af8 <SelectCurrentSensorGain+0x3c>
  5573. default: break;
  5574. 8002af6: bf00 nop
  5575. }
  5576. if (gpioOffset > 0) {
  5577. 8002af8: 7bfb ldrb r3, [r7, #15]
  5578. 8002afa: 2b00 cmp r3, #0
  5579. 8002afc: d023 beq.n 8002b46 <SelectCurrentSensorGain+0x8a>
  5580. uint16_t gain0Gpio = 1 << gpioOffset;
  5581. 8002afe: 7bfb ldrb r3, [r7, #15]
  5582. 8002b00: 2201 movs r2, #1
  5583. 8002b02: fa02 f303 lsl.w r3, r2, r3
  5584. 8002b06: 81bb strh r3, [r7, #12]
  5585. uint16_t gain1Gpio = 1 << (gpioOffset + 1);
  5586. 8002b08: 7bfb ldrb r3, [r7, #15]
  5587. 8002b0a: 3301 adds r3, #1
  5588. 8002b0c: 2201 movs r2, #1
  5589. 8002b0e: fa02 f303 lsl.w r3, r2, r3
  5590. 8002b12: 817b strh r3, [r7, #10]
  5591. uint16_t gpioState = ((uint16_t)gain) & 0x0001;
  5592. 8002b14: 79bb ldrb r3, [r7, #6]
  5593. 8002b16: b29b uxth r3, r3
  5594. 8002b18: f003 0301 and.w r3, r3, #1
  5595. 8002b1c: 813b strh r3, [r7, #8]
  5596. HAL_GPIO_WritePin (GPIOE, gain0Gpio, gpioState);
  5597. 8002b1e: 893b ldrh r3, [r7, #8]
  5598. 8002b20: b2da uxtb r2, r3
  5599. 8002b22: 89bb ldrh r3, [r7, #12]
  5600. 8002b24: 4619 mov r1, r3
  5601. 8002b26: 480a ldr r0, [pc, #40] @ (8002b50 <SelectCurrentSensorGain+0x94>)
  5602. 8002b28: f008 fb4a bl 800b1c0 <HAL_GPIO_WritePin>
  5603. gpioState = (((uint16_t)gain) >> 1) & 0x0001;
  5604. 8002b2c: 79bb ldrb r3, [r7, #6]
  5605. 8002b2e: 085b lsrs r3, r3, #1
  5606. 8002b30: b2db uxtb r3, r3
  5607. 8002b32: f003 0301 and.w r3, r3, #1
  5608. 8002b36: 813b strh r3, [r7, #8]
  5609. HAL_GPIO_WritePin (GPIOE, gain1Gpio, gpioState);
  5610. 8002b38: 893b ldrh r3, [r7, #8]
  5611. 8002b3a: b2da uxtb r2, r3
  5612. 8002b3c: 897b ldrh r3, [r7, #10]
  5613. 8002b3e: 4619 mov r1, r3
  5614. 8002b40: 4803 ldr r0, [pc, #12] @ (8002b50 <SelectCurrentSensorGain+0x94>)
  5615. 8002b42: f008 fb3d bl 800b1c0 <HAL_GPIO_WritePin>
  5616. }
  5617. }
  5618. 8002b46: bf00 nop
  5619. 8002b48: 3710 adds r7, #16
  5620. 8002b4a: 46bd mov sp, r7
  5621. 8002b4c: bd80 pop {r7, pc}
  5622. 8002b4e: bf00 nop
  5623. 8002b50: 58021000 .word 0x58021000
  5624. 08002b54 <MotorControl>:
  5625. uint8_t
  5626. MotorControl (TIM_HandleTypeDef* htim, TIM_OC_InitTypeDef* motorTimerConfigOC, uint8_t channel1, uint8_t channel2, osTimerId_t motorTimerHandle, int32_t motorPWMPulse, int32_t motorTimerPeriod, uint8_t switchLimiterUpStat, uint8_t switchLimiterDownStat) {
  5627. 8002b54: b580 push {r7, lr}
  5628. 8002b56: b088 sub sp, #32
  5629. 8002b58: af02 add r7, sp, #8
  5630. 8002b5a: 60f8 str r0, [r7, #12]
  5631. 8002b5c: 60b9 str r1, [r7, #8]
  5632. 8002b5e: 4611 mov r1, r2
  5633. 8002b60: 461a mov r2, r3
  5634. 8002b62: 460b mov r3, r1
  5635. 8002b64: 71fb strb r3, [r7, #7]
  5636. 8002b66: 4613 mov r3, r2
  5637. 8002b68: 71bb strb r3, [r7, #6]
  5638. uint32_t motorStatus = 0;
  5639. 8002b6a: 2300 movs r3, #0
  5640. 8002b6c: 617b str r3, [r7, #20]
  5641. MotorDriverState setMotorState = HiZ;
  5642. 8002b6e: 2300 movs r3, #0
  5643. 8002b70: 74fb strb r3, [r7, #19]
  5644. HAL_TIM_PWM_Stop (htim, channel1);
  5645. 8002b72: 79fb ldrb r3, [r7, #7]
  5646. 8002b74: 4619 mov r1, r3
  5647. 8002b76: 68f8 ldr r0, [r7, #12]
  5648. 8002b78: f00c fd2a bl 800f5d0 <HAL_TIM_PWM_Stop>
  5649. HAL_TIM_PWM_Stop (htim, channel2);
  5650. 8002b7c: 79bb ldrb r3, [r7, #6]
  5651. 8002b7e: 4619 mov r1, r3
  5652. 8002b80: 68f8 ldr r0, [r7, #12]
  5653. 8002b82: f00c fd25 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5654. if (motorTimerPeriod > 0) {
  5655. 8002b86: 6abb ldr r3, [r7, #40] @ 0x28
  5656. 8002b88: 2b00 cmp r3, #0
  5657. 8002b8a: f340 808c ble.w 8002ca6 <MotorControl+0x152>
  5658. if (motorPWMPulse > 0) {
  5659. 8002b8e: 6a7b ldr r3, [r7, #36] @ 0x24
  5660. 8002b90: 2b00 cmp r3, #0
  5661. 8002b92: dd2c ble.n 8002bee <MotorControl+0x9a>
  5662. // Forward
  5663. if (switchLimiterUpStat == 0) {
  5664. 8002b94: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  5665. 8002b98: 2b00 cmp r3, #0
  5666. 8002b9a: d11d bne.n 8002bd8 <MotorControl+0x84>
  5667. setMotorState = Forward;
  5668. 8002b9c: 2301 movs r3, #1
  5669. 8002b9e: 74fb strb r3, [r7, #19]
  5670. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  5671. 8002ba0: 79f9 ldrb r1, [r7, #7]
  5672. 8002ba2: 79b8 ldrb r0, [r7, #6]
  5673. 8002ba4: 6a7b ldr r3, [r7, #36] @ 0x24
  5674. 8002ba6: ea83 72e3 eor.w r2, r3, r3, asr #31
  5675. 8002baa: eba2 72e3 sub.w r2, r2, r3, asr #31
  5676. 8002bae: 4613 mov r3, r2
  5677. 8002bb0: 009b lsls r3, r3, #2
  5678. 8002bb2: 4413 add r3, r2
  5679. 8002bb4: 005b lsls r3, r3, #1
  5680. 8002bb6: 9301 str r3, [sp, #4]
  5681. 8002bb8: 7cfb ldrb r3, [r7, #19]
  5682. 8002bba: 9300 str r3, [sp, #0]
  5683. 8002bbc: 4603 mov r3, r0
  5684. 8002bbe: 460a mov r2, r1
  5685. 8002bc0: 68b9 ldr r1, [r7, #8]
  5686. 8002bc2: 68f8 ldr r0, [r7, #12]
  5687. 8002bc4: f000 f8ff bl 8002dc6 <MotorAction>
  5688. HAL_TIM_PWM_Start (htim, channel1);
  5689. 8002bc8: 79fb ldrb r3, [r7, #7]
  5690. 8002bca: 4619 mov r1, r3
  5691. 8002bcc: 68f8 ldr r0, [r7, #12]
  5692. 8002bce: f00c fbf1 bl 800f3b4 <HAL_TIM_PWM_Start>
  5693. motorStatus = 1;
  5694. 8002bd2: 2301 movs r3, #1
  5695. 8002bd4: 617b str r3, [r7, #20]
  5696. 8002bd6: e004 b.n 8002be2 <MotorControl+0x8e>
  5697. } else {
  5698. HAL_TIM_PWM_Stop (htim, channel1);
  5699. 8002bd8: 79fb ldrb r3, [r7, #7]
  5700. 8002bda: 4619 mov r1, r3
  5701. 8002bdc: 68f8 ldr r0, [r7, #12]
  5702. 8002bde: f00c fcf7 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5703. }
  5704. HAL_TIM_PWM_Stop (htim, channel2);
  5705. 8002be2: 79bb ldrb r3, [r7, #6]
  5706. 8002be4: 4619 mov r1, r3
  5707. 8002be6: 68f8 ldr r0, [r7, #12]
  5708. 8002be8: f00c fcf2 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5709. 8002bec: e051 b.n 8002c92 <MotorControl+0x13e>
  5710. } else if (motorPWMPulse < 0) {
  5711. 8002bee: 6a7b ldr r3, [r7, #36] @ 0x24
  5712. 8002bf0: 2b00 cmp r3, #0
  5713. 8002bf2: da2c bge.n 8002c4e <MotorControl+0xfa>
  5714. // Reverse
  5715. if (switchLimiterDownStat == 0) {
  5716. 8002bf4: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  5717. 8002bf8: 2b00 cmp r3, #0
  5718. 8002bfa: d11d bne.n 8002c38 <MotorControl+0xe4>
  5719. setMotorState = Reverse;
  5720. 8002bfc: 2302 movs r3, #2
  5721. 8002bfe: 74fb strb r3, [r7, #19]
  5722. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  5723. 8002c00: 79f9 ldrb r1, [r7, #7]
  5724. 8002c02: 79b8 ldrb r0, [r7, #6]
  5725. 8002c04: 6a7b ldr r3, [r7, #36] @ 0x24
  5726. 8002c06: ea83 72e3 eor.w r2, r3, r3, asr #31
  5727. 8002c0a: eba2 72e3 sub.w r2, r2, r3, asr #31
  5728. 8002c0e: 4613 mov r3, r2
  5729. 8002c10: 009b lsls r3, r3, #2
  5730. 8002c12: 4413 add r3, r2
  5731. 8002c14: 005b lsls r3, r3, #1
  5732. 8002c16: 9301 str r3, [sp, #4]
  5733. 8002c18: 7cfb ldrb r3, [r7, #19]
  5734. 8002c1a: 9300 str r3, [sp, #0]
  5735. 8002c1c: 4603 mov r3, r0
  5736. 8002c1e: 460a mov r2, r1
  5737. 8002c20: 68b9 ldr r1, [r7, #8]
  5738. 8002c22: 68f8 ldr r0, [r7, #12]
  5739. 8002c24: f000 f8cf bl 8002dc6 <MotorAction>
  5740. HAL_TIM_PWM_Start (htim, channel2);
  5741. 8002c28: 79bb ldrb r3, [r7, #6]
  5742. 8002c2a: 4619 mov r1, r3
  5743. 8002c2c: 68f8 ldr r0, [r7, #12]
  5744. 8002c2e: f00c fbc1 bl 800f3b4 <HAL_TIM_PWM_Start>
  5745. motorStatus = 1;
  5746. 8002c32: 2301 movs r3, #1
  5747. 8002c34: 617b str r3, [r7, #20]
  5748. 8002c36: e004 b.n 8002c42 <MotorControl+0xee>
  5749. } else {
  5750. HAL_TIM_PWM_Stop (htim, channel2);
  5751. 8002c38: 79bb ldrb r3, [r7, #6]
  5752. 8002c3a: 4619 mov r1, r3
  5753. 8002c3c: 68f8 ldr r0, [r7, #12]
  5754. 8002c3e: f00c fcc7 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5755. }
  5756. HAL_TIM_PWM_Stop (htim, channel1);
  5757. 8002c42: 79fb ldrb r3, [r7, #7]
  5758. 8002c44: 4619 mov r1, r3
  5759. 8002c46: 68f8 ldr r0, [r7, #12]
  5760. 8002c48: f00c fcc2 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5761. 8002c4c: e021 b.n 8002c92 <MotorControl+0x13e>
  5762. } else {
  5763. // Brake
  5764. setMotorState = Brake;
  5765. 8002c4e: 2303 movs r3, #3
  5766. 8002c50: 74fb strb r3, [r7, #19]
  5767. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  5768. 8002c52: 79f9 ldrb r1, [r7, #7]
  5769. 8002c54: 79b8 ldrb r0, [r7, #6]
  5770. 8002c56: 6a7b ldr r3, [r7, #36] @ 0x24
  5771. 8002c58: ea83 72e3 eor.w r2, r3, r3, asr #31
  5772. 8002c5c: eba2 72e3 sub.w r2, r2, r3, asr #31
  5773. 8002c60: 4613 mov r3, r2
  5774. 8002c62: 009b lsls r3, r3, #2
  5775. 8002c64: 4413 add r3, r2
  5776. 8002c66: 005b lsls r3, r3, #1
  5777. 8002c68: 9301 str r3, [sp, #4]
  5778. 8002c6a: 7cfb ldrb r3, [r7, #19]
  5779. 8002c6c: 9300 str r3, [sp, #0]
  5780. 8002c6e: 4603 mov r3, r0
  5781. 8002c70: 460a mov r2, r1
  5782. 8002c72: 68b9 ldr r1, [r7, #8]
  5783. 8002c74: 68f8 ldr r0, [r7, #12]
  5784. 8002c76: f000 f8a6 bl 8002dc6 <MotorAction>
  5785. HAL_TIM_PWM_Start (htim, channel1);
  5786. 8002c7a: 79fb ldrb r3, [r7, #7]
  5787. 8002c7c: 4619 mov r1, r3
  5788. 8002c7e: 68f8 ldr r0, [r7, #12]
  5789. 8002c80: f00c fb98 bl 800f3b4 <HAL_TIM_PWM_Start>
  5790. HAL_TIM_PWM_Start (htim, channel2);
  5791. 8002c84: 79bb ldrb r3, [r7, #6]
  5792. 8002c86: 4619 mov r1, r3
  5793. 8002c88: 68f8 ldr r0, [r7, #12]
  5794. 8002c8a: f00c fb93 bl 800f3b4 <HAL_TIM_PWM_Start>
  5795. motorStatus = 0;
  5796. 8002c8e: 2300 movs r3, #0
  5797. 8002c90: 617b str r3, [r7, #20]
  5798. }
  5799. osTimerStart (motorTimerHandle, motorTimerPeriod * 1000);
  5800. 8002c92: 6abb ldr r3, [r7, #40] @ 0x28
  5801. 8002c94: f44f 727a mov.w r2, #1000 @ 0x3e8
  5802. 8002c98: fb02 f303 mul.w r3, r2, r3
  5803. 8002c9c: 4619 mov r1, r3
  5804. 8002c9e: 6a38 ldr r0, [r7, #32]
  5805. 8002ca0: f010 fd9e bl 80137e0 <osTimerStart>
  5806. 8002ca4: e089 b.n 8002dba <MotorControl+0x266>
  5807. } else if ((motorTimerPeriod == 0) && (motorPWMPulse == 0)) {
  5808. 8002ca6: 6abb ldr r3, [r7, #40] @ 0x28
  5809. 8002ca8: 2b00 cmp r3, #0
  5810. 8002caa: d126 bne.n 8002cfa <MotorControl+0x1a6>
  5811. 8002cac: 6a7b ldr r3, [r7, #36] @ 0x24
  5812. 8002cae: 2b00 cmp r3, #0
  5813. 8002cb0: d123 bne.n 8002cfa <MotorControl+0x1a6>
  5814. MotorAction (htim, motorTimerConfigOC, channel1, channel2, HiZ, abs (motorPWMPulse) * 10);
  5815. 8002cb2: 79f9 ldrb r1, [r7, #7]
  5816. 8002cb4: 79b8 ldrb r0, [r7, #6]
  5817. 8002cb6: 6a7b ldr r3, [r7, #36] @ 0x24
  5818. 8002cb8: ea83 72e3 eor.w r2, r3, r3, asr #31
  5819. 8002cbc: eba2 72e3 sub.w r2, r2, r3, asr #31
  5820. 8002cc0: 4613 mov r3, r2
  5821. 8002cc2: 009b lsls r3, r3, #2
  5822. 8002cc4: 4413 add r3, r2
  5823. 8002cc6: 005b lsls r3, r3, #1
  5824. 8002cc8: 9301 str r3, [sp, #4]
  5825. 8002cca: 2300 movs r3, #0
  5826. 8002ccc: 9300 str r3, [sp, #0]
  5827. 8002cce: 4603 mov r3, r0
  5828. 8002cd0: 460a mov r2, r1
  5829. 8002cd2: 68b9 ldr r1, [r7, #8]
  5830. 8002cd4: 68f8 ldr r0, [r7, #12]
  5831. 8002cd6: f000 f876 bl 8002dc6 <MotorAction>
  5832. HAL_TIM_PWM_Stop (htim, channel1);
  5833. 8002cda: 79fb ldrb r3, [r7, #7]
  5834. 8002cdc: 4619 mov r1, r3
  5835. 8002cde: 68f8 ldr r0, [r7, #12]
  5836. 8002ce0: f00c fc76 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5837. HAL_TIM_PWM_Stop (htim, channel2);
  5838. 8002ce4: 79bb ldrb r3, [r7, #6]
  5839. 8002ce6: 4619 mov r1, r3
  5840. 8002ce8: 68f8 ldr r0, [r7, #12]
  5841. 8002cea: f00c fc71 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5842. osTimerStop (motorTimerHandle);
  5843. 8002cee: 6a38 ldr r0, [r7, #32]
  5844. 8002cf0: f010 fda4 bl 801383c <osTimerStop>
  5845. motorStatus = 0;
  5846. 8002cf4: 2300 movs r3, #0
  5847. 8002cf6: 617b str r3, [r7, #20]
  5848. 8002cf8: e05f b.n 8002dba <MotorControl+0x266>
  5849. } else if (motorTimerPeriod == -1) {
  5850. 8002cfa: 6abb ldr r3, [r7, #40] @ 0x28
  5851. 8002cfc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  5852. 8002d00: d15b bne.n 8002dba <MotorControl+0x266>
  5853. if (motorPWMPulse > 0) {
  5854. 8002d02: 6a7b ldr r3, [r7, #36] @ 0x24
  5855. 8002d04: 2b00 cmp r3, #0
  5856. 8002d06: dd2c ble.n 8002d62 <MotorControl+0x20e>
  5857. // Forward
  5858. if (switchLimiterUpStat == 0) {
  5859. 8002d08: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
  5860. 8002d0c: 2b00 cmp r3, #0
  5861. 8002d0e: d11d bne.n 8002d4c <MotorControl+0x1f8>
  5862. setMotorState = Forward;
  5863. 8002d10: 2301 movs r3, #1
  5864. 8002d12: 74fb strb r3, [r7, #19]
  5865. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  5866. 8002d14: 79f9 ldrb r1, [r7, #7]
  5867. 8002d16: 79b8 ldrb r0, [r7, #6]
  5868. 8002d18: 6a7b ldr r3, [r7, #36] @ 0x24
  5869. 8002d1a: ea83 72e3 eor.w r2, r3, r3, asr #31
  5870. 8002d1e: eba2 72e3 sub.w r2, r2, r3, asr #31
  5871. 8002d22: 4613 mov r3, r2
  5872. 8002d24: 009b lsls r3, r3, #2
  5873. 8002d26: 4413 add r3, r2
  5874. 8002d28: 005b lsls r3, r3, #1
  5875. 8002d2a: 9301 str r3, [sp, #4]
  5876. 8002d2c: 7cfb ldrb r3, [r7, #19]
  5877. 8002d2e: 9300 str r3, [sp, #0]
  5878. 8002d30: 4603 mov r3, r0
  5879. 8002d32: 460a mov r2, r1
  5880. 8002d34: 68b9 ldr r1, [r7, #8]
  5881. 8002d36: 68f8 ldr r0, [r7, #12]
  5882. 8002d38: f000 f845 bl 8002dc6 <MotorAction>
  5883. HAL_TIM_PWM_Start (htim, channel1);
  5884. 8002d3c: 79fb ldrb r3, [r7, #7]
  5885. 8002d3e: 4619 mov r1, r3
  5886. 8002d40: 68f8 ldr r0, [r7, #12]
  5887. 8002d42: f00c fb37 bl 800f3b4 <HAL_TIM_PWM_Start>
  5888. motorStatus = 1;
  5889. 8002d46: 2301 movs r3, #1
  5890. 8002d48: 617b str r3, [r7, #20]
  5891. 8002d4a: e004 b.n 8002d56 <MotorControl+0x202>
  5892. } else {
  5893. HAL_TIM_PWM_Stop (htim, channel1);
  5894. 8002d4c: 79fb ldrb r3, [r7, #7]
  5895. 8002d4e: 4619 mov r1, r3
  5896. 8002d50: 68f8 ldr r0, [r7, #12]
  5897. 8002d52: f00c fc3d bl 800f5d0 <HAL_TIM_PWM_Stop>
  5898. }
  5899. HAL_TIM_PWM_Stop (htim, channel2);
  5900. 8002d56: 79bb ldrb r3, [r7, #6]
  5901. 8002d58: 4619 mov r1, r3
  5902. 8002d5a: 68f8 ldr r0, [r7, #12]
  5903. 8002d5c: f00c fc38 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5904. 8002d60: e02b b.n 8002dba <MotorControl+0x266>
  5905. } else {
  5906. // Reverse
  5907. if (switchLimiterDownStat == 0) {
  5908. 8002d62: f897 3030 ldrb.w r3, [r7, #48] @ 0x30
  5909. 8002d66: 2b00 cmp r3, #0
  5910. 8002d68: d11d bne.n 8002da6 <MotorControl+0x252>
  5911. setMotorState = Reverse;
  5912. 8002d6a: 2302 movs r3, #2
  5913. 8002d6c: 74fb strb r3, [r7, #19]
  5914. MotorAction (htim, motorTimerConfigOC, channel1, channel2, setMotorState, abs (motorPWMPulse) * 10);
  5915. 8002d6e: 79f9 ldrb r1, [r7, #7]
  5916. 8002d70: 79b8 ldrb r0, [r7, #6]
  5917. 8002d72: 6a7b ldr r3, [r7, #36] @ 0x24
  5918. 8002d74: ea83 72e3 eor.w r2, r3, r3, asr #31
  5919. 8002d78: eba2 72e3 sub.w r2, r2, r3, asr #31
  5920. 8002d7c: 4613 mov r3, r2
  5921. 8002d7e: 009b lsls r3, r3, #2
  5922. 8002d80: 4413 add r3, r2
  5923. 8002d82: 005b lsls r3, r3, #1
  5924. 8002d84: 9301 str r3, [sp, #4]
  5925. 8002d86: 7cfb ldrb r3, [r7, #19]
  5926. 8002d88: 9300 str r3, [sp, #0]
  5927. 8002d8a: 4603 mov r3, r0
  5928. 8002d8c: 460a mov r2, r1
  5929. 8002d8e: 68b9 ldr r1, [r7, #8]
  5930. 8002d90: 68f8 ldr r0, [r7, #12]
  5931. 8002d92: f000 f818 bl 8002dc6 <MotorAction>
  5932. HAL_TIM_PWM_Start (htim, channel2);
  5933. 8002d96: 79bb ldrb r3, [r7, #6]
  5934. 8002d98: 4619 mov r1, r3
  5935. 8002d9a: 68f8 ldr r0, [r7, #12]
  5936. 8002d9c: f00c fb0a bl 800f3b4 <HAL_TIM_PWM_Start>
  5937. motorStatus = 1;
  5938. 8002da0: 2301 movs r3, #1
  5939. 8002da2: 617b str r3, [r7, #20]
  5940. 8002da4: e004 b.n 8002db0 <MotorControl+0x25c>
  5941. } else {
  5942. HAL_TIM_PWM_Stop (htim, channel2);
  5943. 8002da6: 79bb ldrb r3, [r7, #6]
  5944. 8002da8: 4619 mov r1, r3
  5945. 8002daa: 68f8 ldr r0, [r7, #12]
  5946. 8002dac: f00c fc10 bl 800f5d0 <HAL_TIM_PWM_Stop>
  5947. }
  5948. HAL_TIM_PWM_Stop (htim, channel1);
  5949. 8002db0: 79fb ldrb r3, [r7, #7]
  5950. 8002db2: 4619 mov r1, r3
  5951. 8002db4: 68f8 ldr r0, [r7, #12]
  5952. 8002db6: f00c fc0b bl 800f5d0 <HAL_TIM_PWM_Stop>
  5953. }
  5954. }
  5955. return motorStatus;
  5956. 8002dba: 697b ldr r3, [r7, #20]
  5957. 8002dbc: b2db uxtb r3, r3
  5958. }
  5959. 8002dbe: 4618 mov r0, r3
  5960. 8002dc0: 3718 adds r7, #24
  5961. 8002dc2: 46bd mov sp, r7
  5962. 8002dc4: bd80 pop {r7, pc}
  5963. 08002dc6 <MotorAction>:
  5964. void MotorAction (TIM_HandleTypeDef* tim, TIM_OC_InitTypeDef* timerConf, uint32_t channel1, uint32_t channel2, MotorDriverState setState, uint32_t pulse) {
  5965. 8002dc6: b580 push {r7, lr}
  5966. 8002dc8: b084 sub sp, #16
  5967. 8002dca: af00 add r7, sp, #0
  5968. 8002dcc: 60f8 str r0, [r7, #12]
  5969. 8002dce: 60b9 str r1, [r7, #8]
  5970. 8002dd0: 607a str r2, [r7, #4]
  5971. 8002dd2: 603b str r3, [r7, #0]
  5972. timerConf->Pulse = pulse;
  5973. 8002dd4: 68bb ldr r3, [r7, #8]
  5974. 8002dd6: 69fa ldr r2, [r7, #28]
  5975. 8002dd8: 605a str r2, [r3, #4]
  5976. switch (setState) {
  5977. 8002dda: 7e3b ldrb r3, [r7, #24]
  5978. 8002ddc: 2b02 cmp r3, #2
  5979. 8002dde: dc02 bgt.n 8002de6 <MotorAction+0x20>
  5980. 8002de0: 2b00 cmp r3, #0
  5981. 8002de2: da03 bge.n 8002dec <MotorAction+0x26>
  5982. 8002de4: e038 b.n 8002e58 <MotorAction+0x92>
  5983. 8002de6: 2b03 cmp r3, #3
  5984. 8002de8: d01b beq.n 8002e22 <MotorAction+0x5c>
  5985. 8002dea: e035 b.n 8002e58 <MotorAction+0x92>
  5986. case Forward:
  5987. case Reverse:
  5988. case HiZ:
  5989. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  5990. 8002dec: 68bb ldr r3, [r7, #8]
  5991. 8002dee: 2200 movs r2, #0
  5992. 8002df0: 609a str r2, [r3, #8]
  5993. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  5994. 8002df2: 687a ldr r2, [r7, #4]
  5995. 8002df4: 68b9 ldr r1, [r7, #8]
  5996. 8002df6: 68f8 ldr r0, [r7, #12]
  5997. 8002df8: f00c fd88 bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  5998. 8002dfc: 4603 mov r3, r0
  5999. 8002dfe: 2b00 cmp r3, #0
  6000. 8002e00: d001 beq.n 8002e06 <MotorAction+0x40>
  6001. Error_Handler ();
  6002. 8002e02: f7fe fec3 bl 8001b8c <Error_Handler>
  6003. }
  6004. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6005. 8002e06: 68bb ldr r3, [r7, #8]
  6006. 8002e08: 2200 movs r2, #0
  6007. 8002e0a: 609a str r2, [r3, #8]
  6008. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6009. 8002e0c: 683a ldr r2, [r7, #0]
  6010. 8002e0e: 68b9 ldr r1, [r7, #8]
  6011. 8002e10: 68f8 ldr r0, [r7, #12]
  6012. 8002e12: f00c fd7b bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  6013. 8002e16: 4603 mov r3, r0
  6014. 8002e18: 2b00 cmp r3, #0
  6015. 8002e1a: d038 beq.n 8002e8e <MotorAction+0xc8>
  6016. Error_Handler ();
  6017. 8002e1c: f7fe feb6 bl 8001b8c <Error_Handler>
  6018. }
  6019. break;
  6020. 8002e20: e035 b.n 8002e8e <MotorAction+0xc8>
  6021. case Brake:
  6022. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6023. 8002e22: 68bb ldr r3, [r7, #8]
  6024. 8002e24: 2202 movs r2, #2
  6025. 8002e26: 609a str r2, [r3, #8]
  6026. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6027. 8002e28: 687a ldr r2, [r7, #4]
  6028. 8002e2a: 68b9 ldr r1, [r7, #8]
  6029. 8002e2c: 68f8 ldr r0, [r7, #12]
  6030. 8002e2e: f00c fd6d bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  6031. 8002e32: 4603 mov r3, r0
  6032. 8002e34: 2b00 cmp r3, #0
  6033. 8002e36: d001 beq.n 8002e3c <MotorAction+0x76>
  6034. Error_Handler ();
  6035. 8002e38: f7fe fea8 bl 8001b8c <Error_Handler>
  6036. }
  6037. timerConf->OCPolarity = TIM_OCPOLARITY_LOW;
  6038. 8002e3c: 68bb ldr r3, [r7, #8]
  6039. 8002e3e: 2202 movs r2, #2
  6040. 8002e40: 609a str r2, [r3, #8]
  6041. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6042. 8002e42: 683a ldr r2, [r7, #0]
  6043. 8002e44: 68b9 ldr r1, [r7, #8]
  6044. 8002e46: 68f8 ldr r0, [r7, #12]
  6045. 8002e48: f00c fd60 bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  6046. 8002e4c: 4603 mov r3, r0
  6047. 8002e4e: 2b00 cmp r3, #0
  6048. 8002e50: d01f beq.n 8002e92 <MotorAction+0xcc>
  6049. Error_Handler ();
  6050. 8002e52: f7fe fe9b bl 8001b8c <Error_Handler>
  6051. }
  6052. break;
  6053. 8002e56: e01c b.n 8002e92 <MotorAction+0xcc>
  6054. default:
  6055. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6056. 8002e58: 68bb ldr r3, [r7, #8]
  6057. 8002e5a: 2200 movs r2, #0
  6058. 8002e5c: 609a str r2, [r3, #8]
  6059. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel1) != HAL_OK) {
  6060. 8002e5e: 687a ldr r2, [r7, #4]
  6061. 8002e60: 68b9 ldr r1, [r7, #8]
  6062. 8002e62: 68f8 ldr r0, [r7, #12]
  6063. 8002e64: f00c fd52 bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  6064. 8002e68: 4603 mov r3, r0
  6065. 8002e6a: 2b00 cmp r3, #0
  6066. 8002e6c: d001 beq.n 8002e72 <MotorAction+0xac>
  6067. Error_Handler ();
  6068. 8002e6e: f7fe fe8d bl 8001b8c <Error_Handler>
  6069. }
  6070. timerConf->OCPolarity = TIM_OCPOLARITY_HIGH;
  6071. 8002e72: 68bb ldr r3, [r7, #8]
  6072. 8002e74: 2200 movs r2, #0
  6073. 8002e76: 609a str r2, [r3, #8]
  6074. if (HAL_TIM_PWM_ConfigChannel (tim, timerConf, channel2) != HAL_OK) {
  6075. 8002e78: 683a ldr r2, [r7, #0]
  6076. 8002e7a: 68b9 ldr r1, [r7, #8]
  6077. 8002e7c: 68f8 ldr r0, [r7, #12]
  6078. 8002e7e: f00c fd45 bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  6079. 8002e82: 4603 mov r3, r0
  6080. 8002e84: 2b00 cmp r3, #0
  6081. 8002e86: d006 beq.n 8002e96 <MotorAction+0xd0>
  6082. Error_Handler ();
  6083. 8002e88: f7fe fe80 bl 8001b8c <Error_Handler>
  6084. }
  6085. break;
  6086. 8002e8c: e003 b.n 8002e96 <MotorAction+0xd0>
  6087. break;
  6088. 8002e8e: bf00 nop
  6089. 8002e90: e002 b.n 8002e98 <MotorAction+0xd2>
  6090. break;
  6091. 8002e92: bf00 nop
  6092. 8002e94: e000 b.n 8002e98 <MotorAction+0xd2>
  6093. break;
  6094. 8002e96: bf00 nop
  6095. }
  6096. }
  6097. 8002e98: bf00 nop
  6098. 8002e9a: 3710 adds r7, #16
  6099. 8002e9c: 46bd mov sp, r7
  6100. 8002e9e: bd80 pop {r7, pc}
  6101. 08002ea0 <PositionControlTaskInit>:
  6102. extern osTimerId_t motorXTimerHandle;
  6103. extern osTimerId_t motorYTimerHandle;
  6104. extern TIM_HandleTypeDef htim3;
  6105. extern TIM_OC_InitTypeDef motorXYTimerConfigOC;
  6106. void PositionControlTaskInit (void) {
  6107. 8002ea0: b580 push {r7, lr}
  6108. 8002ea2: b08a sub sp, #40 @ 0x28
  6109. 8002ea4: af00 add r7, sp, #0
  6110. // positionSettingMutex = osMutexNew (NULL);
  6111. osThreadAttr_t osThreadAttrPositionControlTask = { 0 };
  6112. 8002ea6: 1d3b adds r3, r7, #4
  6113. 8002ea8: 2224 movs r2, #36 @ 0x24
  6114. 8002eaa: 2100 movs r1, #0
  6115. 8002eac: 4618 mov r0, r3
  6116. 8002eae: f015 fadb bl 8018468 <memset>
  6117. osThreadAttrPositionControlTask.stack_size = configMINIMAL_STACK_SIZE * 2;
  6118. 8002eb2: f44f 6380 mov.w r3, #1024 @ 0x400
  6119. 8002eb6: 61bb str r3, [r7, #24]
  6120. osThreadAttrPositionControlTask.priority = (osPriority_t)osPriorityNormal;
  6121. 8002eb8: 2318 movs r3, #24
  6122. 8002eba: 61fb str r3, [r7, #28]
  6123. positionXControlTaskInitArg.channel1 = TIM_CHANNEL_1;
  6124. 8002ebc: 4b3b ldr r3, [pc, #236] @ (8002fac <PositionControlTaskInit+0x10c>)
  6125. 8002ebe: 2200 movs r2, #0
  6126. 8002ec0: 721a strb r2, [r3, #8]
  6127. positionXControlTaskInitArg.channel2 = TIM_CHANNEL_2;
  6128. 8002ec2: 4b3a ldr r3, [pc, #232] @ (8002fac <PositionControlTaskInit+0x10c>)
  6129. 8002ec4: 2204 movs r2, #4
  6130. 8002ec6: 725a strb r2, [r3, #9]
  6131. positionXControlTaskInitArg.htim = &htim3;
  6132. 8002ec8: 4b38 ldr r3, [pc, #224] @ (8002fac <PositionControlTaskInit+0x10c>)
  6133. 8002eca: 4a39 ldr r2, [pc, #228] @ (8002fb0 <PositionControlTaskInit+0x110>)
  6134. 8002ecc: 601a str r2, [r3, #0]
  6135. positionXControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6136. 8002ece: 4b37 ldr r3, [pc, #220] @ (8002fac <PositionControlTaskInit+0x10c>)
  6137. 8002ed0: 4a38 ldr r2, [pc, #224] @ (8002fb4 <PositionControlTaskInit+0x114>)
  6138. 8002ed2: 605a str r2, [r3, #4]
  6139. positionXControlTaskInitArg.motorTimerHandle = motorXTimerHandle;
  6140. 8002ed4: 4b38 ldr r3, [pc, #224] @ (8002fb8 <PositionControlTaskInit+0x118>)
  6141. 8002ed6: 681b ldr r3, [r3, #0]
  6142. 8002ed8: 4a34 ldr r2, [pc, #208] @ (8002fac <PositionControlTaskInit+0x10c>)
  6143. 8002eda: 60d3 str r3, [r2, #12]
  6144. positionXControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6145. 8002edc: 2200 movs r2, #0
  6146. 8002ede: 2104 movs r1, #4
  6147. 8002ee0: 2010 movs r0, #16
  6148. 8002ee2: f010 fdf0 bl 8013ac6 <osMessageQueueNew>
  6149. 8002ee6: 4603 mov r3, r0
  6150. 8002ee8: 4a30 ldr r2, [pc, #192] @ (8002fac <PositionControlTaskInit+0x10c>)
  6151. 8002eea: 6113 str r3, [r2, #16]
  6152. positionXControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitXSwitchCenter);
  6153. 8002eec: 4b2f ldr r3, [pc, #188] @ (8002fac <PositionControlTaskInit+0x10c>)
  6154. 8002eee: 4a33 ldr r2, [pc, #204] @ (8002fbc <PositionControlTaskInit+0x11c>)
  6155. 8002ef0: 61da str r2, [r3, #28]
  6156. positionXControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitXSwitchUp);
  6157. 8002ef2: 4b2e ldr r3, [pc, #184] @ (8002fac <PositionControlTaskInit+0x10c>)
  6158. 8002ef4: 4a32 ldr r2, [pc, #200] @ (8002fc0 <PositionControlTaskInit+0x120>)
  6159. 8002ef6: 615a str r2, [r3, #20]
  6160. positionXControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitXSwitchDown);
  6161. 8002ef8: 4b2c ldr r3, [pc, #176] @ (8002fac <PositionControlTaskInit+0x10c>)
  6162. 8002efa: 4a32 ldr r2, [pc, #200] @ (8002fc4 <PositionControlTaskInit+0x124>)
  6163. 8002efc: 619a str r2, [r3, #24]
  6164. positionXControlTaskInitArg.currentPosition = &(sensorsInfo.currentXPosition);
  6165. 8002efe: 4b2b ldr r3, [pc, #172] @ (8002fac <PositionControlTaskInit+0x10c>)
  6166. 8002f00: 4a31 ldr r2, [pc, #196] @ (8002fc8 <PositionControlTaskInit+0x128>)
  6167. 8002f02: 621a str r2, [r3, #32]
  6168. positionXControlTaskInitArg.motorStatus = &(sensorsInfo.motorXStatus);
  6169. 8002f04: 4b29 ldr r3, [pc, #164] @ (8002fac <PositionControlTaskInit+0x10c>)
  6170. 8002f06: 4a31 ldr r2, [pc, #196] @ (8002fcc <PositionControlTaskInit+0x12c>)
  6171. 8002f08: 629a str r2, [r3, #40] @ 0x28
  6172. positionXControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorXPeakCurrent);
  6173. 8002f0a: 4b28 ldr r3, [pc, #160] @ (8002fac <PositionControlTaskInit+0x10c>)
  6174. 8002f0c: 4a30 ldr r2, [pc, #192] @ (8002fd0 <PositionControlTaskInit+0x130>)
  6175. 8002f0e: 62da str r2, [r3, #44] @ 0x2c
  6176. positionXControlTaskInitArg.positionSetting = &positionXSetting;
  6177. 8002f10: 4b26 ldr r3, [pc, #152] @ (8002fac <PositionControlTaskInit+0x10c>)
  6178. 8002f12: 4a30 ldr r2, [pc, #192] @ (8002fd4 <PositionControlTaskInit+0x134>)
  6179. 8002f14: 625a str r2, [r3, #36] @ 0x24
  6180. positionXControlTaskInitArg.axe = 'X';
  6181. 8002f16: 4b25 ldr r3, [pc, #148] @ (8002fac <PositionControlTaskInit+0x10c>)
  6182. 8002f18: 2258 movs r2, #88 @ 0x58
  6183. 8002f1a: f883 2030 strb.w r2, [r3, #48] @ 0x30
  6184. positionYControlTaskInitArg.channel1 = TIM_CHANNEL_3;
  6185. 8002f1e: 4b2e ldr r3, [pc, #184] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6186. 8002f20: 2208 movs r2, #8
  6187. 8002f22: 721a strb r2, [r3, #8]
  6188. positionYControlTaskInitArg.channel2 = TIM_CHANNEL_4;
  6189. 8002f24: 4b2c ldr r3, [pc, #176] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6190. 8002f26: 220c movs r2, #12
  6191. 8002f28: 725a strb r2, [r3, #9]
  6192. positionYControlTaskInitArg.htim = &htim3;
  6193. 8002f2a: 4b2b ldr r3, [pc, #172] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6194. 8002f2c: 4a20 ldr r2, [pc, #128] @ (8002fb0 <PositionControlTaskInit+0x110>)
  6195. 8002f2e: 601a str r2, [r3, #0]
  6196. positionYControlTaskInitArg.motorTimerConfigOC = &motorXYTimerConfigOC;
  6197. 8002f30: 4b29 ldr r3, [pc, #164] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6198. 8002f32: 4a20 ldr r2, [pc, #128] @ (8002fb4 <PositionControlTaskInit+0x114>)
  6199. 8002f34: 605a str r2, [r3, #4]
  6200. positionYControlTaskInitArg.motorTimerHandle = motorYTimerHandle;
  6201. 8002f36: 4b29 ldr r3, [pc, #164] @ (8002fdc <PositionControlTaskInit+0x13c>)
  6202. 8002f38: 681b ldr r3, [r3, #0]
  6203. 8002f3a: 4a27 ldr r2, [pc, #156] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6204. 8002f3c: 60d3 str r3, [r2, #12]
  6205. positionYControlTaskInitArg.positionSettingQueue = osMessageQueueNew (16, sizeof (PositionControlTaskData), NULL);
  6206. 8002f3e: 2200 movs r2, #0
  6207. 8002f40: 2104 movs r1, #4
  6208. 8002f42: 2010 movs r0, #16
  6209. 8002f44: f010 fdbf bl 8013ac6 <osMessageQueueNew>
  6210. 8002f48: 4603 mov r3, r0
  6211. 8002f4a: 4a23 ldr r2, [pc, #140] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6212. 8002f4c: 6113 str r3, [r2, #16]
  6213. positionYControlTaskInitArg.switchLimiterCenterStat = &(sensorsInfo.limitYSwitchCenter);
  6214. 8002f4e: 4b22 ldr r3, [pc, #136] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6215. 8002f50: 4a23 ldr r2, [pc, #140] @ (8002fe0 <PositionControlTaskInit+0x140>)
  6216. 8002f52: 61da str r2, [r3, #28]
  6217. positionYControlTaskInitArg.switchLimiterUpStat = &(sensorsInfo.limitYSwitchUp);
  6218. 8002f54: 4b20 ldr r3, [pc, #128] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6219. 8002f56: 4a23 ldr r2, [pc, #140] @ (8002fe4 <PositionControlTaskInit+0x144>)
  6220. 8002f58: 615a str r2, [r3, #20]
  6221. positionYControlTaskInitArg.switchLimiterDownStat = &(sensorsInfo.limitYSwitchDown);
  6222. 8002f5a: 4b1f ldr r3, [pc, #124] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6223. 8002f5c: 4a22 ldr r2, [pc, #136] @ (8002fe8 <PositionControlTaskInit+0x148>)
  6224. 8002f5e: 619a str r2, [r3, #24]
  6225. positionYControlTaskInitArg.currentPosition = &(sensorsInfo.currentYPosition);
  6226. 8002f60: 4b1d ldr r3, [pc, #116] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6227. 8002f62: 4a22 ldr r2, [pc, #136] @ (8002fec <PositionControlTaskInit+0x14c>)
  6228. 8002f64: 621a str r2, [r3, #32]
  6229. positionYControlTaskInitArg.motorStatus = &(sensorsInfo.motorYStatus);
  6230. 8002f66: 4b1c ldr r3, [pc, #112] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6231. 8002f68: 4a21 ldr r2, [pc, #132] @ (8002ff0 <PositionControlTaskInit+0x150>)
  6232. 8002f6a: 629a str r2, [r3, #40] @ 0x28
  6233. positionYControlTaskInitArg.motorPeakCurrent = &(sensorsInfo.motorYPeakCurrent);
  6234. 8002f6c: 4b1a ldr r3, [pc, #104] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6235. 8002f6e: 4a21 ldr r2, [pc, #132] @ (8002ff4 <PositionControlTaskInit+0x154>)
  6236. 8002f70: 62da str r2, [r3, #44] @ 0x2c
  6237. positionXControlTaskInitArg.positionSetting = &positionYSetting;
  6238. 8002f72: 4b0e ldr r3, [pc, #56] @ (8002fac <PositionControlTaskInit+0x10c>)
  6239. 8002f74: 4a20 ldr r2, [pc, #128] @ (8002ff8 <PositionControlTaskInit+0x158>)
  6240. 8002f76: 625a str r2, [r3, #36] @ 0x24
  6241. positionYControlTaskInitArg.axe = 'Y';
  6242. 8002f78: 4b17 ldr r3, [pc, #92] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6243. 8002f7a: 2259 movs r2, #89 @ 0x59
  6244. 8002f7c: f883 2030 strb.w r2, [r3, #48] @ 0x30
  6245. positionXControlTaskHandle = osThreadNew (PositionControlTask, &positionXControlTaskInitArg, &osThreadAttrPositionControlTask);
  6246. 8002f80: 1d3b adds r3, r7, #4
  6247. 8002f82: 461a mov r2, r3
  6248. 8002f84: 4909 ldr r1, [pc, #36] @ (8002fac <PositionControlTaskInit+0x10c>)
  6249. 8002f86: 481d ldr r0, [pc, #116] @ (8002ffc <PositionControlTaskInit+0x15c>)
  6250. 8002f88: f010 faea bl 8013560 <osThreadNew>
  6251. 8002f8c: 4603 mov r3, r0
  6252. 8002f8e: 4a1c ldr r2, [pc, #112] @ (8003000 <PositionControlTaskInit+0x160>)
  6253. 8002f90: 6013 str r3, [r2, #0]
  6254. positionYControlTaskHandle = osThreadNew (PositionControlTask, &positionYControlTaskInitArg, &osThreadAttrPositionControlTask);
  6255. 8002f92: 1d3b adds r3, r7, #4
  6256. 8002f94: 461a mov r2, r3
  6257. 8002f96: 4910 ldr r1, [pc, #64] @ (8002fd8 <PositionControlTaskInit+0x138>)
  6258. 8002f98: 4818 ldr r0, [pc, #96] @ (8002ffc <PositionControlTaskInit+0x15c>)
  6259. 8002f9a: f010 fae1 bl 8013560 <osThreadNew>
  6260. 8002f9e: 4603 mov r3, r0
  6261. 8002fa0: 4a18 ldr r2, [pc, #96] @ (8003004 <PositionControlTaskInit+0x164>)
  6262. 8002fa2: 6013 str r3, [r2, #0]
  6263. }
  6264. 8002fa4: bf00 nop
  6265. 8002fa6: 3728 adds r7, #40 @ 0x28
  6266. 8002fa8: 46bd mov sp, r7
  6267. 8002faa: bd80 pop {r7, pc}
  6268. 8002fac: 24000a00 .word 0x24000a00
  6269. 8002fb0: 240005e8 .word 0x240005e8
  6270. 8002fb4: 24000888 .word 0x24000888
  6271. 8002fb8: 2400080c .word 0x2400080c
  6272. 8002fbc: 2400096a .word 0x2400096a
  6273. 8002fc0: 24000968 .word 0x24000968
  6274. 8002fc4: 24000969 .word 0x24000969
  6275. 8002fc8: 24000970 .word 0x24000970
  6276. 8002fcc: 24000954 .word 0x24000954
  6277. 8002fd0: 24000960 .word 0x24000960
  6278. 8002fd4: 240009c0 .word 0x240009c0
  6279. 8002fd8: 24000a40 .word 0x24000a40
  6280. 8002fdc: 2400083c .word 0x2400083c
  6281. 8002fe0: 2400096d .word 0x2400096d
  6282. 8002fe4: 2400096b .word 0x2400096b
  6283. 8002fe8: 2400096c .word 0x2400096c
  6284. 8002fec: 24000974 .word 0x24000974
  6285. 8002ff0: 24000955 .word 0x24000955
  6286. 8002ff4: 24000964 .word 0x24000964
  6287. 8002ff8: 240009e0 .word 0x240009e0
  6288. 8002ffc: 08003009 .word 0x08003009
  6289. 8003000: 240009e4 .word 0x240009e4
  6290. 8003004: 240009e8 .word 0x240009e8
  6291. 08003008 <PositionControlTask>:
  6292. void PositionControlTask (void* argument) {
  6293. 8003008: b5f0 push {r4, r5, r6, r7, lr}
  6294. 800300a: b09f sub sp, #124 @ 0x7c
  6295. 800300c: af06 add r7, sp, #24
  6296. 800300e: 6078 str r0, [r7, #4]
  6297. 8003010: f107 0360 add.w r3, r7, #96 @ 0x60
  6298. 8003014: 3b58 subs r3, #88 @ 0x58
  6299. 8003016: 331f adds r3, #31
  6300. 8003018: 095b lsrs r3, r3, #5
  6301. 800301a: 015c lsls r4, r3, #5
  6302. const int32_t PositionControlTaskTimeOut = 100;
  6303. 800301c: 2364 movs r3, #100 @ 0x64
  6304. 800301e: 643b str r3, [r7, #64] @ 0x40
  6305. PositionControlTaskInitArg* posCtrlTaskArg = (PositionControlTaskInitArg*)argument;
  6306. 8003020: 687b ldr r3, [r7, #4]
  6307. 8003022: 63fb str r3, [r7, #60] @ 0x3c
  6308. PositionControlTaskData posCtrlData __attribute__ ((aligned (32))) = { 0 };
  6309. 8003024: f04f 0300 mov.w r3, #0
  6310. 8003028: 6023 str r3, [r4, #0]
  6311. uint32_t motorStatus = 0;
  6312. 800302a: 2300 movs r3, #0
  6313. 800302c: 63bb str r3, [r7, #56] @ 0x38
  6314. osStatus_t queueSatus;
  6315. int32_t pwmValue = MOTOR_START_STOP_PWM_VALUE;
  6316. 800302e: 233c movs r3, #60 @ 0x3c
  6317. 8003030: 65fb str r3, [r7, #92] @ 0x5c
  6318. int32_t sign = 0;
  6319. 8003032: 2300 movs r3, #0
  6320. 8003034: 65bb str r3, [r7, #88] @ 0x58
  6321. MovementPhases movementPhase = idlePhase;
  6322. 8003036: 2300 movs r3, #0
  6323. 8003038: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6324. float startPosition = 0;
  6325. 800303c: f04f 0300 mov.w r3, #0
  6326. 8003040: 653b str r3, [r7, #80] @ 0x50
  6327. float prevPosition = 0;
  6328. 8003042: f04f 0300 mov.w r3, #0
  6329. 8003046: 64fb str r3, [r7, #76] @ 0x4c
  6330. int32_t timeLeftMS = 0;
  6331. 8003048: 2300 movs r3, #0
  6332. 800304a: 64bb str r3, [r7, #72] @ 0x48
  6333. int32_t moveCmdTimeoutCounter = 0;
  6334. 800304c: 2300 movs r3, #0
  6335. 800304e: 647b str r3, [r7, #68] @ 0x44
  6336. while (pdTRUE) {
  6337. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  6338. 8003050: 6bfb ldr r3, [r7, #60] @ 0x3c
  6339. 8003052: 6918 ldr r0, [r3, #16]
  6340. 8003054: 6c3b ldr r3, [r7, #64] @ 0x40
  6341. 8003056: f44f 727a mov.w r2, #1000 @ 0x3e8
  6342. 800305a: fb02 f303 mul.w r3, r2, r3
  6343. 800305e: 4a9b ldr r2, [pc, #620] @ (80032cc <PositionControlTask+0x2c4>)
  6344. 8003060: fba2 2303 umull r2, r3, r2, r3
  6345. 8003064: 099b lsrs r3, r3, #6
  6346. 8003066: 2200 movs r2, #0
  6347. 8003068: 4621 mov r1, r4
  6348. 800306a: f010 fdff bl 8013c6c <osMessageQueueGet>
  6349. 800306e: 6378 str r0, [r7, #52] @ 0x34
  6350. if (queueSatus == osOK) {
  6351. 8003070: 6b7b ldr r3, [r7, #52] @ 0x34
  6352. 8003072: 2b00 cmp r3, #0
  6353. 8003074: d13b bne.n 80030ee <PositionControlTask+0xe6>
  6354. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  6355. 8003076: 4b96 ldr r3, [pc, #600] @ (80032d0 <PositionControlTask+0x2c8>)
  6356. 8003078: 681b ldr r3, [r3, #0]
  6357. 800307a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6358. 800307e: 4618 mov r0, r3
  6359. 8003080: f010 fc99 bl 80139b6 <osMutexAcquire>
  6360. 8003084: 4603 mov r3, r0
  6361. 8003086: 2b00 cmp r3, #0
  6362. 8003088: d1e2 bne.n 8003050 <PositionControlTask+0x48>
  6363. float posDiff = posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition;
  6364. 800308a: ed94 7a00 vldr s14, [r4]
  6365. 800308e: 6bfb ldr r3, [r7, #60] @ 0x3c
  6366. 8003090: 6a1b ldr r3, [r3, #32]
  6367. 8003092: edd3 7a00 vldr s15, [r3]
  6368. 8003096: ee77 7a67 vsub.f32 s15, s14, s15
  6369. 800309a: edc7 7a0b vstr s15, [r7, #44] @ 0x2c
  6370. if (posDiff != 0) {
  6371. 800309e: edd7 7a0b vldr s15, [r7, #44] @ 0x2c
  6372. 80030a2: eef5 7a40 vcmp.f32 s15, #0.0
  6373. 80030a6: eef1 fa10 vmrs APSR_nzcv, fpscr
  6374. 80030aa: d016 beq.n 80030da <PositionControlTask+0xd2>
  6375. sign = posDiff > 0 ? 1 : -1;
  6376. 80030ac: edd7 7a0b vldr s15, [r7, #44] @ 0x2c
  6377. 80030b0: eef5 7ac0 vcmpe.f32 s15, #0.0
  6378. 80030b4: eef1 fa10 vmrs APSR_nzcv, fpscr
  6379. 80030b8: dd01 ble.n 80030be <PositionControlTask+0xb6>
  6380. 80030ba: 2301 movs r3, #1
  6381. 80030bc: e001 b.n 80030c2 <PositionControlTask+0xba>
  6382. 80030be: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  6383. 80030c2: 65bb str r3, [r7, #88] @ 0x58
  6384. startPosition = *posCtrlTaskArg->currentPosition;
  6385. 80030c4: 6bfb ldr r3, [r7, #60] @ 0x3c
  6386. 80030c6: 6a1b ldr r3, [r3, #32]
  6387. 80030c8: 681b ldr r3, [r3, #0]
  6388. 80030ca: 653b str r3, [r7, #80] @ 0x50
  6389. movementPhase = startPhase;
  6390. 80030cc: 2301 movs r3, #1
  6391. 80030ce: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6392. moveCmdTimeoutCounter = 0;
  6393. 80030d2: 2300 movs r3, #0
  6394. 80030d4: 647b str r3, [r7, #68] @ 0x44
  6395. timeLeftMS = 0;
  6396. 80030d6: 2300 movs r3, #0
  6397. 80030d8: 64bb str r3, [r7, #72] @ 0x48
  6398. #ifdef DBG_POSITION
  6399. printf ("Axe %c start phase\n", posCtrlTaskArg->axe);
  6400. #endif
  6401. }
  6402. *(posCtrlTaskArg->positionSetting) = posCtrlData.positionSettingValue;
  6403. 80030da: 6bfb ldr r3, [r7, #60] @ 0x3c
  6404. 80030dc: 6a5b ldr r3, [r3, #36] @ 0x24
  6405. 80030de: 6822 ldr r2, [r4, #0]
  6406. 80030e0: 601a str r2, [r3, #0]
  6407. osMutexRelease (sensorsInfoMutex);
  6408. 80030e2: 4b7b ldr r3, [pc, #492] @ (80032d0 <PositionControlTask+0x2c8>)
  6409. 80030e4: 681b ldr r3, [r3, #0]
  6410. 80030e6: 4618 mov r0, r3
  6411. 80030e8: f010 fcb0 bl 8013a4c <osMutexRelease>
  6412. 80030ec: e7b0 b.n 8003050 <PositionControlTask+0x48>
  6413. // if (osMutexAcquire (positionSettingMutex, osWaitForever) == osOK) {
  6414. // osMutexRelease (positionSettingMutex);
  6415. // }
  6416. }
  6417. } else if (queueSatus == osErrorTimeout) {
  6418. 80030ee: 6b7b ldr r3, [r7, #52] @ 0x34
  6419. 80030f0: f113 0f02 cmn.w r3, #2
  6420. 80030f4: d1ac bne.n 8003050 <PositionControlTask+0x48>
  6421. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  6422. 80030f6: 4b76 ldr r3, [pc, #472] @ (80032d0 <PositionControlTask+0x2c8>)
  6423. 80030f8: 681b ldr r3, [r3, #0]
  6424. 80030fa: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6425. 80030fe: 4618 mov r0, r3
  6426. 8003100: f010 fc59 bl 80139b6 <osMutexAcquire>
  6427. 8003104: 4603 mov r3, r0
  6428. 8003106: 2b00 cmp r3, #0
  6429. 8003108: d1a2 bne.n 8003050 <PositionControlTask+0x48>
  6430. if (((*posCtrlTaskArg->motorStatus != 0) && (movementPhase != idlePhase)) || (movementPhase == startPhase) ) {
  6431. 800310a: 6bfb ldr r3, [r7, #60] @ 0x3c
  6432. 800310c: 6a9b ldr r3, [r3, #40] @ 0x28
  6433. 800310e: 781b ldrb r3, [r3, #0]
  6434. 8003110: 2b00 cmp r3, #0
  6435. 8003112: d003 beq.n 800311c <PositionControlTask+0x114>
  6436. 8003114: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6437. 8003118: 2b00 cmp r3, #0
  6438. 800311a: d104 bne.n 8003126 <PositionControlTask+0x11e>
  6439. 800311c: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6440. 8003120: 2b01 cmp r3, #1
  6441. 8003122: f040 81c9 bne.w 80034b8 <PositionControlTask+0x4b0>
  6442. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  6443. 8003126: 6bfb ldr r3, [r7, #60] @ 0x3c
  6444. 8003128: 699b ldr r3, [r3, #24]
  6445. 800312a: 781b ldrb r3, [r3, #0]
  6446. 800312c: 2b01 cmp r3, #1
  6447. 800312e: d104 bne.n 800313a <PositionControlTask+0x132>
  6448. 8003130: 6bfb ldr r3, [r7, #60] @ 0x3c
  6449. 8003132: 695b ldr r3, [r3, #20]
  6450. 8003134: 781b ldrb r3, [r3, #0]
  6451. 8003136: 2b01 cmp r3, #1
  6452. 8003138: d009 beq.n 800314e <PositionControlTask+0x146>
  6453. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  6454. 800313a: 6bfb ldr r3, [r7, #60] @ 0x3c
  6455. 800313c: 695b ldr r3, [r3, #20]
  6456. 800313e: 781b ldrb r3, [r3, #0]
  6457. if (((*posCtrlTaskArg->switchLimiterDownStat == 1) && (*posCtrlTaskArg->switchLimiterUpStat == 1)) ||
  6458. 8003140: 2b01 cmp r3, #1
  6459. 8003142: d12b bne.n 800319c <PositionControlTask+0x194>
  6460. ((*posCtrlTaskArg->switchLimiterUpStat == 1) && (*posCtrlTaskArg->switchLimiterCenterStat == 1))) {
  6461. 8003144: 6bfb ldr r3, [r7, #60] @ 0x3c
  6462. 8003146: 69db ldr r3, [r3, #28]
  6463. 8003148: 781b ldrb r3, [r3, #0]
  6464. 800314a: 2b01 cmp r3, #1
  6465. 800314c: d126 bne.n 800319c <PositionControlTask+0x194>
  6466. movementPhase = idlePhase;
  6467. 800314e: 2300 movs r3, #0
  6468. 8003150: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6469. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  6470. 8003154: 6bfb ldr r3, [r7, #60] @ 0x3c
  6471. 8003156: 6818 ldr r0, [r3, #0]
  6472. 8003158: 6bfb ldr r3, [r7, #60] @ 0x3c
  6473. 800315a: 685d ldr r5, [r3, #4]
  6474. 800315c: 6bfb ldr r3, [r7, #60] @ 0x3c
  6475. 800315e: 7a1e ldrb r6, [r3, #8]
  6476. 8003160: 6bfb ldr r3, [r7, #60] @ 0x3c
  6477. 8003162: f893 c009 ldrb.w ip, [r3, #9]
  6478. 8003166: 6bfb ldr r3, [r7, #60] @ 0x3c
  6479. 8003168: 68db ldr r3, [r3, #12]
  6480. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6481. 800316a: 6bfa ldr r2, [r7, #60] @ 0x3c
  6482. 800316c: 6952 ldr r2, [r2, #20]
  6483. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  6484. 800316e: 7812 ldrb r2, [r2, #0]
  6485. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6486. 8003170: 6bf9 ldr r1, [r7, #60] @ 0x3c
  6487. 8003172: 6989 ldr r1, [r1, #24]
  6488. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  6489. 8003174: 7809 ldrb r1, [r1, #0]
  6490. 8003176: 9104 str r1, [sp, #16]
  6491. 8003178: 9203 str r2, [sp, #12]
  6492. 800317a: 2200 movs r2, #0
  6493. 800317c: 9202 str r2, [sp, #8]
  6494. 800317e: 2200 movs r2, #0
  6495. 8003180: 9201 str r2, [sp, #4]
  6496. 8003182: 9300 str r3, [sp, #0]
  6497. 8003184: 4663 mov r3, ip
  6498. 8003186: 4632 mov r2, r6
  6499. 8003188: 4629 mov r1, r5
  6500. 800318a: f7ff fce3 bl 8002b54 <MotorControl>
  6501. 800318e: 4603 mov r3, r0
  6502. 8003190: 63bb str r3, [r7, #56] @ 0x38
  6503. *posCtrlTaskArg->motorStatus = motorStatus;
  6504. 8003192: 6bfb ldr r3, [r7, #60] @ 0x3c
  6505. 8003194: 6a9b ldr r3, [r3, #40] @ 0x28
  6506. 8003196: 6bba ldr r2, [r7, #56] @ 0x38
  6507. 8003198: b2d2 uxtb r2, r2
  6508. 800319a: 701a strb r2, [r3, #0]
  6509. printf ("Axe %c limiters wrong state - idle phase\n", posCtrlTaskArg->axe);
  6510. #endif
  6511. }
  6512. timeLeftMS += PositionControlTaskTimeOut;
  6513. 800319c: 6cba ldr r2, [r7, #72] @ 0x48
  6514. 800319e: 6c3b ldr r3, [r7, #64] @ 0x40
  6515. 80031a0: 4413 add r3, r2
  6516. 80031a2: 64bb str r3, [r7, #72] @ 0x48
  6517. if (prevPosition == *posCtrlTaskArg->currentPosition) {
  6518. 80031a4: 6bfb ldr r3, [r7, #60] @ 0x3c
  6519. 80031a6: 6a1b ldr r3, [r3, #32]
  6520. 80031a8: edd3 7a00 vldr s15, [r3]
  6521. 80031ac: ed97 7a13 vldr s14, [r7, #76] @ 0x4c
  6522. 80031b0: eeb4 7a67 vcmp.f32 s14, s15
  6523. 80031b4: eef1 fa10 vmrs APSR_nzcv, fpscr
  6524. 80031b8: d104 bne.n 80031c4 <PositionControlTask+0x1bc>
  6525. moveCmdTimeoutCounter += PositionControlTaskTimeOut;
  6526. 80031ba: 6c7a ldr r2, [r7, #68] @ 0x44
  6527. 80031bc: 6c3b ldr r3, [r7, #64] @ 0x40
  6528. 80031be: 4413 add r3, r2
  6529. 80031c0: 647b str r3, [r7, #68] @ 0x44
  6530. 80031c2: e001 b.n 80031c8 <PositionControlTask+0x1c0>
  6531. } else {
  6532. moveCmdTimeoutCounter = 0;
  6533. 80031c4: 2300 movs r3, #0
  6534. 80031c6: 647b str r3, [r7, #68] @ 0x44
  6535. }
  6536. prevPosition = *posCtrlTaskArg->currentPosition;
  6537. 80031c8: 6bfb ldr r3, [r7, #60] @ 0x3c
  6538. 80031ca: 6a1b ldr r3, [r3, #32]
  6539. 80031cc: 681b ldr r3, [r3, #0]
  6540. 80031ce: 64fb str r3, [r7, #76] @ 0x4c
  6541. if (moveCmdTimeoutCounter > NO_MOVE_TIMEOUT_MS) {
  6542. 80031d0: 6c7b ldr r3, [r7, #68] @ 0x44
  6543. 80031d2: f241 3288 movw r2, #5000 @ 0x1388
  6544. 80031d6: 4293 cmp r3, r2
  6545. 80031d8: dd26 ble.n 8003228 <PositionControlTask+0x220>
  6546. movementPhase = idlePhase;
  6547. 80031da: 2300 movs r3, #0
  6548. 80031dc: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6549. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  6550. 80031e0: 6bfb ldr r3, [r7, #60] @ 0x3c
  6551. 80031e2: 6818 ldr r0, [r3, #0]
  6552. 80031e4: 6bfb ldr r3, [r7, #60] @ 0x3c
  6553. 80031e6: 685d ldr r5, [r3, #4]
  6554. 80031e8: 6bfb ldr r3, [r7, #60] @ 0x3c
  6555. 80031ea: 7a1e ldrb r6, [r3, #8]
  6556. 80031ec: 6bfb ldr r3, [r7, #60] @ 0x3c
  6557. 80031ee: f893 c009 ldrb.w ip, [r3, #9]
  6558. 80031f2: 6bfb ldr r3, [r7, #60] @ 0x3c
  6559. 80031f4: 68db ldr r3, [r3, #12]
  6560. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6561. 80031f6: 6bfa ldr r2, [r7, #60] @ 0x3c
  6562. 80031f8: 6952 ldr r2, [r2, #20]
  6563. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  6564. 80031fa: 7812 ldrb r2, [r2, #0]
  6565. 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6566. 80031fc: 6bf9 ldr r1, [r7, #60] @ 0x3c
  6567. 80031fe: 6989 ldr r1, [r1, #24]
  6568. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle, 0,
  6569. 8003200: 7809 ldrb r1, [r1, #0]
  6570. 8003202: 9104 str r1, [sp, #16]
  6571. 8003204: 9203 str r2, [sp, #12]
  6572. 8003206: 2200 movs r2, #0
  6573. 8003208: 9202 str r2, [sp, #8]
  6574. 800320a: 2200 movs r2, #0
  6575. 800320c: 9201 str r2, [sp, #4]
  6576. 800320e: 9300 str r3, [sp, #0]
  6577. 8003210: 4663 mov r3, ip
  6578. 8003212: 4632 mov r2, r6
  6579. 8003214: 4629 mov r1, r5
  6580. 8003216: f7ff fc9d bl 8002b54 <MotorControl>
  6581. 800321a: 4603 mov r3, r0
  6582. 800321c: 63bb str r3, [r7, #56] @ 0x38
  6583. *posCtrlTaskArg->motorStatus = motorStatus;
  6584. 800321e: 6bfb ldr r3, [r7, #60] @ 0x3c
  6585. 8003220: 6a9b ldr r3, [r3, #40] @ 0x28
  6586. 8003222: 6bba ldr r2, [r7, #56] @ 0x38
  6587. 8003224: b2d2 uxtb r2, r2
  6588. 8003226: 701a strb r2, [r3, #0]
  6589. #ifdef DBG_POSITION
  6590. printf ("Axe %c no movement idle phase\n", posCtrlTaskArg->axe);
  6591. #endif
  6592. }
  6593. switch (movementPhase) {
  6594. 8003228: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6595. 800322c: 3b01 subs r3, #1
  6596. 800322e: 2b04 cmp r3, #4
  6597. 8003230: f200 813a bhi.w 80034a8 <PositionControlTask+0x4a0>
  6598. 8003234: a201 add r2, pc, #4 @ (adr r2, 800323c <PositionControlTask+0x234>)
  6599. 8003236: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  6600. 800323a: bf00 nop
  6601. 800323c: 08003251 .word 0x08003251
  6602. 8003240: 080032d5 .word 0x080032d5
  6603. 8003244: 08003363 .word 0x08003363
  6604. 8003248: 080033b1 .word 0x080033b1
  6605. 800324c: 08003415 .word 0x08003415
  6606. case startPhase:
  6607. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6608. 8003250: 6bfb ldr r3, [r7, #60] @ 0x3c
  6609. 8003252: 681d ldr r5, [r3, #0]
  6610. 8003254: 6bfb ldr r3, [r7, #60] @ 0x3c
  6611. 8003256: 685e ldr r6, [r3, #4]
  6612. 8003258: 6bfb ldr r3, [r7, #60] @ 0x3c
  6613. 800325a: f893 c008 ldrb.w ip, [r3, #8]
  6614. 800325e: 6bfb ldr r3, [r7, #60] @ 0x3c
  6615. 8003260: f893 e009 ldrb.w lr, [r3, #9]
  6616. 8003264: 6bfb ldr r3, [r7, #60] @ 0x3c
  6617. 8003266: 68db ldr r3, [r3, #12]
  6618. 8003268: 6dba ldr r2, [r7, #88] @ 0x58
  6619. 800326a: 6df9 ldr r1, [r7, #92] @ 0x5c
  6620. 800326c: fb01 f202 mul.w r2, r1, r2
  6621. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6622. 8003270: 6bf9 ldr r1, [r7, #60] @ 0x3c
  6623. 8003272: 6949 ldr r1, [r1, #20]
  6624. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6625. 8003274: 7809 ldrb r1, [r1, #0]
  6626. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6627. 8003276: 6bf8 ldr r0, [r7, #60] @ 0x3c
  6628. 8003278: 6980 ldr r0, [r0, #24]
  6629. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6630. 800327a: 7800 ldrb r0, [r0, #0]
  6631. 800327c: 9004 str r0, [sp, #16]
  6632. 800327e: 9103 str r1, [sp, #12]
  6633. 8003280: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6634. 8003284: 9102 str r1, [sp, #8]
  6635. 8003286: 9201 str r2, [sp, #4]
  6636. 8003288: 9300 str r3, [sp, #0]
  6637. 800328a: 4673 mov r3, lr
  6638. 800328c: 4662 mov r2, ip
  6639. 800328e: 4631 mov r1, r6
  6640. 8003290: 4628 mov r0, r5
  6641. 8003292: f7ff fc5f bl 8002b54 <MotorControl>
  6642. 8003296: 4603 mov r3, r0
  6643. 8003298: 63bb str r3, [r7, #56] @ 0x38
  6644. *posCtrlTaskArg->motorStatus = motorStatus;
  6645. 800329a: 6bfb ldr r3, [r7, #60] @ 0x3c
  6646. 800329c: 6a9b ldr r3, [r3, #40] @ 0x28
  6647. 800329e: 6bba ldr r2, [r7, #56] @ 0x38
  6648. 80032a0: b2d2 uxtb r2, r2
  6649. 80032a2: 701a strb r2, [r3, #0]
  6650. if (motorStatus == 1) {
  6651. 80032a4: 6bbb ldr r3, [r7, #56] @ 0x38
  6652. 80032a6: 2b01 cmp r3, #1
  6653. 80032a8: d10c bne.n 80032c4 <PositionControlTask+0x2bc>
  6654. *posCtrlTaskArg->motorPeakCurrent = 0.0;
  6655. 80032aa: 6bfb ldr r3, [r7, #60] @ 0x3c
  6656. 80032ac: 6adb ldr r3, [r3, #44] @ 0x2c
  6657. 80032ae: f04f 0200 mov.w r2, #0
  6658. 80032b2: 601a str r2, [r3, #0]
  6659. #ifdef DBG_POSITION
  6660. printf ("Axe %c speed up phase\n", posCtrlTaskArg->axe);
  6661. #endif
  6662. movementPhase = speedUpPhase;
  6663. 80032b4: 2302 movs r3, #2
  6664. 80032b6: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6665. timeLeftMS = 0;
  6666. 80032ba: 2300 movs r3, #0
  6667. 80032bc: 64bb str r3, [r7, #72] @ 0x48
  6668. moveCmdTimeoutCounter = 0;
  6669. 80032be: 2300 movs r3, #0
  6670. 80032c0: 647b str r3, [r7, #68] @ 0x44
  6671. #ifdef DBG_POSITION
  6672. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  6673. #endif
  6674. }
  6675. break;
  6676. 80032c2: e0f8 b.n 80034b6 <PositionControlTask+0x4ae>
  6677. movementPhase = idlePhase;
  6678. 80032c4: 2300 movs r3, #0
  6679. 80032c6: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6680. break;
  6681. 80032ca: e0f4 b.n 80034b6 <PositionControlTask+0x4ae>
  6682. 80032cc: 10624dd3 .word 0x10624dd3
  6683. 80032d0: 240008dc .word 0x240008dc
  6684. case speedUpPhase:
  6685. if ((abs (*posCtrlTaskArg->currentPosition - startPosition) >= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  6686. 80032d4: 6bfb ldr r3, [r7, #60] @ 0x3c
  6687. 80032d6: 6a1b ldr r3, [r3, #32]
  6688. 80032d8: ed93 7a00 vldr s14, [r3]
  6689. 80032dc: edd7 7a14 vldr s15, [r7, #80] @ 0x50
  6690. 80032e0: ee77 7a67 vsub.f32 s15, s14, s15
  6691. 80032e4: eefd 7ae7 vcvt.s32.f32 s15, s15
  6692. 80032e8: ee17 3a90 vmov r3, s15
  6693. 80032ec: 2b00 cmp r3, #0
  6694. 80032ee: bfb8 it lt
  6695. 80032f0: 425b neglt r3, r3
  6696. 80032f2: 2b04 cmp r3, #4
  6697. 80032f4: dc05 bgt.n 8003302 <PositionControlTask+0x2fa>
  6698. 80032f6: 6cbb ldr r3, [r7, #72] @ 0x48
  6699. 80032f8: f241 3287 movw r2, #4999 @ 0x1387
  6700. 80032fc: 4293 cmp r3, r2
  6701. 80032fe: f340 80d5 ble.w 80034ac <PositionControlTask+0x4a4>
  6702. pwmValue = MOTOR_HIGH_SPEED_PWM_VALUE;
  6703. 8003302: 2364 movs r3, #100 @ 0x64
  6704. 8003304: 65fb str r3, [r7, #92] @ 0x5c
  6705. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6706. 8003306: 6bfb ldr r3, [r7, #60] @ 0x3c
  6707. 8003308: 681d ldr r5, [r3, #0]
  6708. 800330a: 6bfb ldr r3, [r7, #60] @ 0x3c
  6709. 800330c: 685e ldr r6, [r3, #4]
  6710. 800330e: 6bfb ldr r3, [r7, #60] @ 0x3c
  6711. 8003310: f893 c008 ldrb.w ip, [r3, #8]
  6712. 8003314: 6bfb ldr r3, [r7, #60] @ 0x3c
  6713. 8003316: f893 e009 ldrb.w lr, [r3, #9]
  6714. 800331a: 6bfb ldr r3, [r7, #60] @ 0x3c
  6715. 800331c: 68db ldr r3, [r3, #12]
  6716. 800331e: 6dba ldr r2, [r7, #88] @ 0x58
  6717. 8003320: 6df9 ldr r1, [r7, #92] @ 0x5c
  6718. 8003322: fb01 f202 mul.w r2, r1, r2
  6719. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6720. 8003326: 6bf9 ldr r1, [r7, #60] @ 0x3c
  6721. 8003328: 6949 ldr r1, [r1, #20]
  6722. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6723. 800332a: 7809 ldrb r1, [r1, #0]
  6724. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6725. 800332c: 6bf8 ldr r0, [r7, #60] @ 0x3c
  6726. 800332e: 6980 ldr r0, [r0, #24]
  6727. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6728. 8003330: 7800 ldrb r0, [r0, #0]
  6729. 8003332: 9004 str r0, [sp, #16]
  6730. 8003334: 9103 str r1, [sp, #12]
  6731. 8003336: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6732. 800333a: 9102 str r1, [sp, #8]
  6733. 800333c: 9201 str r2, [sp, #4]
  6734. 800333e: 9300 str r3, [sp, #0]
  6735. 8003340: 4673 mov r3, lr
  6736. 8003342: 4662 mov r2, ip
  6737. 8003344: 4631 mov r1, r6
  6738. 8003346: 4628 mov r0, r5
  6739. 8003348: f7ff fc04 bl 8002b54 <MotorControl>
  6740. 800334c: 4603 mov r3, r0
  6741. 800334e: 63bb str r3, [r7, #56] @ 0x38
  6742. *posCtrlTaskArg->motorStatus = motorStatus;
  6743. 8003350: 6bfb ldr r3, [r7, #60] @ 0x3c
  6744. 8003352: 6a9b ldr r3, [r3, #40] @ 0x28
  6745. 8003354: 6bba ldr r2, [r7, #56] @ 0x38
  6746. 8003356: b2d2 uxtb r2, r2
  6747. 8003358: 701a strb r2, [r3, #0]
  6748. movementPhase = movePhase;
  6749. 800335a: 2303 movs r3, #3
  6750. 800335c: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6751. #ifdef DBG_POSITION
  6752. printf ("Axe %c move phase\n", posCtrlTaskArg->axe);
  6753. #endif
  6754. }
  6755. break;
  6756. 8003360: e0a4 b.n 80034ac <PositionControlTask+0x4a4>
  6757. case movePhase:
  6758. if (abs (*posCtrlTaskArg->currentPosition - *posCtrlTaskArg->positionSetting) <= ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT) {
  6759. 8003362: 6bfb ldr r3, [r7, #60] @ 0x3c
  6760. 8003364: 6a1b ldr r3, [r3, #32]
  6761. 8003366: ed93 7a00 vldr s14, [r3]
  6762. 800336a: 6bfb ldr r3, [r7, #60] @ 0x3c
  6763. 800336c: 6a5b ldr r3, [r3, #36] @ 0x24
  6764. 800336e: edd3 7a00 vldr s15, [r3]
  6765. 8003372: ee77 7a67 vsub.f32 s15, s14, s15
  6766. 8003376: eefd 7ae7 vcvt.s32.f32 s15, s15
  6767. 800337a: ee17 3a90 vmov r3, s15
  6768. 800337e: f113 0f05 cmn.w r3, #5
  6769. 8003382: f2c0 8095 blt.w 80034b0 <PositionControlTask+0x4a8>
  6770. 8003386: 6bfb ldr r3, [r7, #60] @ 0x3c
  6771. 8003388: 6a1b ldr r3, [r3, #32]
  6772. 800338a: ed93 7a00 vldr s14, [r3]
  6773. 800338e: 6bfb ldr r3, [r7, #60] @ 0x3c
  6774. 8003390: 6a5b ldr r3, [r3, #36] @ 0x24
  6775. 8003392: edd3 7a00 vldr s15, [r3]
  6776. 8003396: ee77 7a67 vsub.f32 s15, s14, s15
  6777. 800339a: eefd 7ae7 vcvt.s32.f32 s15, s15
  6778. 800339e: ee17 3a90 vmov r3, s15
  6779. 80033a2: 2b05 cmp r3, #5
  6780. 80033a4: f300 8084 bgt.w 80034b0 <PositionControlTask+0x4a8>
  6781. movementPhase = slowDownPhase;
  6782. 80033a8: 2304 movs r3, #4
  6783. 80033aa: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6784. #ifdef DBG_POSITION
  6785. printf ("Axe %c slow down phase\n", posCtrlTaskArg->axe);
  6786. #endif
  6787. }
  6788. break;
  6789. 80033ae: e07f b.n 80034b0 <PositionControlTask+0x4a8>
  6790. case slowDownPhase:
  6791. pwmValue = MOTOR_START_STOP_PWM_VALUE;
  6792. 80033b0: 233c movs r3, #60 @ 0x3c
  6793. 80033b2: 65fb str r3, [r7, #92] @ 0x5c
  6794. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6795. 80033b4: 6bfb ldr r3, [r7, #60] @ 0x3c
  6796. 80033b6: 681d ldr r5, [r3, #0]
  6797. 80033b8: 6bfb ldr r3, [r7, #60] @ 0x3c
  6798. 80033ba: 685e ldr r6, [r3, #4]
  6799. 80033bc: 6bfb ldr r3, [r7, #60] @ 0x3c
  6800. 80033be: f893 c008 ldrb.w ip, [r3, #8]
  6801. 80033c2: 6bfb ldr r3, [r7, #60] @ 0x3c
  6802. 80033c4: f893 e009 ldrb.w lr, [r3, #9]
  6803. 80033c8: 6bfb ldr r3, [r7, #60] @ 0x3c
  6804. 80033ca: 68db ldr r3, [r3, #12]
  6805. 80033cc: 6dba ldr r2, [r7, #88] @ 0x58
  6806. 80033ce: 6df9 ldr r1, [r7, #92] @ 0x5c
  6807. 80033d0: fb01 f202 mul.w r2, r1, r2
  6808. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6809. 80033d4: 6bf9 ldr r1, [r7, #60] @ 0x3c
  6810. 80033d6: 6949 ldr r1, [r1, #20]
  6811. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6812. 80033d8: 7809 ldrb r1, [r1, #0]
  6813. sign * pwmValue, -1, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6814. 80033da: 6bf8 ldr r0, [r7, #60] @ 0x3c
  6815. 80033dc: 6980 ldr r0, [r0, #24]
  6816. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6817. 80033de: 7800 ldrb r0, [r0, #0]
  6818. 80033e0: 9004 str r0, [sp, #16]
  6819. 80033e2: 9103 str r1, [sp, #12]
  6820. 80033e4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  6821. 80033e8: 9102 str r1, [sp, #8]
  6822. 80033ea: 9201 str r2, [sp, #4]
  6823. 80033ec: 9300 str r3, [sp, #0]
  6824. 80033ee: 4673 mov r3, lr
  6825. 80033f0: 4662 mov r2, ip
  6826. 80033f2: 4631 mov r1, r6
  6827. 80033f4: 4628 mov r0, r5
  6828. 80033f6: f7ff fbad bl 8002b54 <MotorControl>
  6829. 80033fa: 4603 mov r3, r0
  6830. 80033fc: 63bb str r3, [r7, #56] @ 0x38
  6831. *posCtrlTaskArg->motorStatus = motorStatus;
  6832. 80033fe: 6bfb ldr r3, [r7, #60] @ 0x3c
  6833. 8003400: 6a9b ldr r3, [r3, #40] @ 0x28
  6834. 8003402: 6bba ldr r2, [r7, #56] @ 0x38
  6835. 8003404: b2d2 uxtb r2, r2
  6836. 8003406: 701a strb r2, [r3, #0]
  6837. movementPhase = stopPhase;
  6838. 8003408: 2305 movs r3, #5
  6839. 800340a: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6840. timeLeftMS = 0;
  6841. 800340e: 2300 movs r3, #0
  6842. 8003410: 64bb str r3, [r7, #72] @ 0x48
  6843. #ifdef DBG_POSITION
  6844. printf ("Axe %c stop phase\n", posCtrlTaskArg->axe);
  6845. #endif
  6846. break;
  6847. 8003412: e050 b.n 80034b6 <PositionControlTask+0x4ae>
  6848. case stopPhase:
  6849. float posDiff = sign > 0 ? posCtrlData.positionSettingValue - *posCtrlTaskArg->currentPosition : *posCtrlTaskArg->currentPosition - posCtrlData.positionSettingValue;
  6850. 8003414: 6dbb ldr r3, [r7, #88] @ 0x58
  6851. 8003416: 2b00 cmp r3, #0
  6852. 8003418: dd08 ble.n 800342c <PositionControlTask+0x424>
  6853. 800341a: ed94 7a00 vldr s14, [r4]
  6854. 800341e: 6bfb ldr r3, [r7, #60] @ 0x3c
  6855. 8003420: 6a1b ldr r3, [r3, #32]
  6856. 8003422: edd3 7a00 vldr s15, [r3]
  6857. 8003426: ee77 7a67 vsub.f32 s15, s14, s15
  6858. 800342a: e007 b.n 800343c <PositionControlTask+0x434>
  6859. 800342c: 6bfb ldr r3, [r7, #60] @ 0x3c
  6860. 800342e: 6a1b ldr r3, [r3, #32]
  6861. 8003430: ed93 7a00 vldr s14, [r3]
  6862. 8003434: edd4 7a00 vldr s15, [r4]
  6863. 8003438: ee77 7a67 vsub.f32 s15, s14, s15
  6864. 800343c: edc7 7a0c vstr s15, [r7, #48] @ 0x30
  6865. if ((posDiff <= 0) || (timeLeftMS >= TIME_MS_FOR_MOTOR_SPEED_LIMIT)) {
  6866. 8003440: edd7 7a0c vldr s15, [r7, #48] @ 0x30
  6867. 8003444: eef5 7ac0 vcmpe.f32 s15, #0.0
  6868. 8003448: eef1 fa10 vmrs APSR_nzcv, fpscr
  6869. 800344c: d904 bls.n 8003458 <PositionControlTask+0x450>
  6870. 800344e: 6cbb ldr r3, [r7, #72] @ 0x48
  6871. 8003450: f241 3287 movw r2, #4999 @ 0x1387
  6872. 8003454: 4293 cmp r3, r2
  6873. 8003456: dd2d ble.n 80034b4 <PositionControlTask+0x4ac>
  6874. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6875. 8003458: 6bfb ldr r3, [r7, #60] @ 0x3c
  6876. 800345a: 6818 ldr r0, [r3, #0]
  6877. 800345c: 6bfb ldr r3, [r7, #60] @ 0x3c
  6878. 800345e: 685d ldr r5, [r3, #4]
  6879. 8003460: 6bfb ldr r3, [r7, #60] @ 0x3c
  6880. 8003462: 7a1e ldrb r6, [r3, #8]
  6881. 8003464: 6bfb ldr r3, [r7, #60] @ 0x3c
  6882. 8003466: f893 c009 ldrb.w ip, [r3, #9]
  6883. 800346a: 6bfb ldr r3, [r7, #60] @ 0x3c
  6884. 800346c: 68db ldr r3, [r3, #12]
  6885. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6886. 800346e: 6bfa ldr r2, [r7, #60] @ 0x3c
  6887. 8003470: 6952 ldr r2, [r2, #20]
  6888. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6889. 8003472: 7812 ldrb r2, [r2, #0]
  6890. 0, 0, *posCtrlTaskArg->switchLimiterUpStat, *posCtrlTaskArg->switchLimiterDownStat);
  6891. 8003474: 6bf9 ldr r1, [r7, #60] @ 0x3c
  6892. 8003476: 6989 ldr r1, [r1, #24]
  6893. motorStatus = MotorControl (posCtrlTaskArg->htim, posCtrlTaskArg->motorTimerConfigOC, posCtrlTaskArg->channel1, posCtrlTaskArg->channel2, posCtrlTaskArg->motorTimerHandle,
  6894. 8003478: 7809 ldrb r1, [r1, #0]
  6895. 800347a: 9104 str r1, [sp, #16]
  6896. 800347c: 9203 str r2, [sp, #12]
  6897. 800347e: 2200 movs r2, #0
  6898. 8003480: 9202 str r2, [sp, #8]
  6899. 8003482: 2200 movs r2, #0
  6900. 8003484: 9201 str r2, [sp, #4]
  6901. 8003486: 9300 str r3, [sp, #0]
  6902. 8003488: 4663 mov r3, ip
  6903. 800348a: 4632 mov r2, r6
  6904. 800348c: 4629 mov r1, r5
  6905. 800348e: f7ff fb61 bl 8002b54 <MotorControl>
  6906. 8003492: 4603 mov r3, r0
  6907. 8003494: 63bb str r3, [r7, #56] @ 0x38
  6908. *posCtrlTaskArg->motorStatus = motorStatus;
  6909. 8003496: 6bfb ldr r3, [r7, #60] @ 0x3c
  6910. 8003498: 6a9b ldr r3, [r3, #40] @ 0x28
  6911. 800349a: 6bba ldr r2, [r7, #56] @ 0x38
  6912. 800349c: b2d2 uxtb r2, r2
  6913. 800349e: 701a strb r2, [r3, #0]
  6914. movementPhase = idlePhase;
  6915. 80034a0: 2300 movs r3, #0
  6916. 80034a2: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6917. #ifdef DBG_POSITION
  6918. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  6919. #endif
  6920. }
  6921. break;
  6922. 80034a6: e005 b.n 80034b4 <PositionControlTask+0x4ac>
  6923. default: break;
  6924. 80034a8: bf00 nop
  6925. 80034aa: e011 b.n 80034d0 <PositionControlTask+0x4c8>
  6926. break;
  6927. 80034ac: bf00 nop
  6928. 80034ae: e00f b.n 80034d0 <PositionControlTask+0x4c8>
  6929. break;
  6930. 80034b0: bf00 nop
  6931. 80034b2: e00d b.n 80034d0 <PositionControlTask+0x4c8>
  6932. break;
  6933. 80034b4: bf00 nop
  6934. switch (movementPhase) {
  6935. 80034b6: e00b b.n 80034d0 <PositionControlTask+0x4c8>
  6936. }
  6937. } else {
  6938. if ((*posCtrlTaskArg->motorStatus == 0) && (movementPhase != idlePhase)) {
  6939. 80034b8: 6bfb ldr r3, [r7, #60] @ 0x3c
  6940. 80034ba: 6a9b ldr r3, [r3, #40] @ 0x28
  6941. 80034bc: 781b ldrb r3, [r3, #0]
  6942. 80034be: 2b00 cmp r3, #0
  6943. 80034c0: d106 bne.n 80034d0 <PositionControlTask+0x4c8>
  6944. 80034c2: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  6945. 80034c6: 2b00 cmp r3, #0
  6946. 80034c8: d002 beq.n 80034d0 <PositionControlTask+0x4c8>
  6947. movementPhase = idlePhase;
  6948. 80034ca: 2300 movs r3, #0
  6949. 80034cc: f887 3057 strb.w r3, [r7, #87] @ 0x57
  6950. #ifdef DBG_POSITION
  6951. printf ("Axe %c idle phase\n", posCtrlTaskArg->axe);
  6952. #endif
  6953. }
  6954. }
  6955. osMutexRelease (sensorsInfoMutex);
  6956. 80034d0: 4b02 ldr r3, [pc, #8] @ (80034dc <PositionControlTask+0x4d4>)
  6957. 80034d2: 681b ldr r3, [r3, #0]
  6958. 80034d4: 4618 mov r0, r3
  6959. 80034d6: f010 fab9 bl 8013a4c <osMutexRelease>
  6960. queueSatus = osMessageQueueGet (posCtrlTaskArg->positionSettingQueue, &posCtrlData, 0, pdMS_TO_TICKS (PositionControlTaskTimeOut));
  6961. 80034da: e5b9 b.n 8003050 <PositionControlTask+0x48>
  6962. 80034dc: 240008dc .word 0x240008dc
  6963. 080034e0 <WriteDataToBuffer>:
  6964. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6965. }
  6966. *buffPos = newBuffPos;
  6967. }
  6968. void WriteDataToBuffer (uint8_t* buff, uint16_t* buffPos, void* data, uint8_t dataSize) {
  6969. 80034e0: b480 push {r7}
  6970. 80034e2: b089 sub sp, #36 @ 0x24
  6971. 80034e4: af00 add r7, sp, #0
  6972. 80034e6: 60f8 str r0, [r7, #12]
  6973. 80034e8: 60b9 str r1, [r7, #8]
  6974. 80034ea: 607a str r2, [r7, #4]
  6975. 80034ec: 70fb strb r3, [r7, #3]
  6976. uint32_t* uDataPtr = data;
  6977. 80034ee: 687b ldr r3, [r7, #4]
  6978. 80034f0: 61bb str r3, [r7, #24]
  6979. uint32_t uData = *uDataPtr;
  6980. 80034f2: 69bb ldr r3, [r7, #24]
  6981. 80034f4: 681b ldr r3, [r3, #0]
  6982. 80034f6: 617b str r3, [r7, #20]
  6983. uint8_t i = 0;
  6984. 80034f8: 2300 movs r3, #0
  6985. 80034fa: 77fb strb r3, [r7, #31]
  6986. uint8_t newBuffPos = *buffPos;
  6987. 80034fc: 68bb ldr r3, [r7, #8]
  6988. 80034fe: 881b ldrh r3, [r3, #0]
  6989. 8003500: 77bb strb r3, [r7, #30]
  6990. for (i = 0; i < dataSize; i++) {
  6991. 8003502: 2300 movs r3, #0
  6992. 8003504: 77fb strb r3, [r7, #31]
  6993. 8003506: e00e b.n 8003526 <WriteDataToBuffer+0x46>
  6994. buff[newBuffPos++] = (uint8_t)((uData >> (i * 8)) & 0xFF);
  6995. 8003508: 7ffb ldrb r3, [r7, #31]
  6996. 800350a: 00db lsls r3, r3, #3
  6997. 800350c: 697a ldr r2, [r7, #20]
  6998. 800350e: 40da lsrs r2, r3
  6999. 8003510: 7fbb ldrb r3, [r7, #30]
  7000. 8003512: 1c59 adds r1, r3, #1
  7001. 8003514: 77b9 strb r1, [r7, #30]
  7002. 8003516: 4619 mov r1, r3
  7003. 8003518: 68fb ldr r3, [r7, #12]
  7004. 800351a: 440b add r3, r1
  7005. 800351c: b2d2 uxtb r2, r2
  7006. 800351e: 701a strb r2, [r3, #0]
  7007. for (i = 0; i < dataSize; i++) {
  7008. 8003520: 7ffb ldrb r3, [r7, #31]
  7009. 8003522: 3301 adds r3, #1
  7010. 8003524: 77fb strb r3, [r7, #31]
  7011. 8003526: 7ffa ldrb r2, [r7, #31]
  7012. 8003528: 78fb ldrb r3, [r7, #3]
  7013. 800352a: 429a cmp r2, r3
  7014. 800352c: d3ec bcc.n 8003508 <WriteDataToBuffer+0x28>
  7015. }
  7016. *buffPos = newBuffPos;
  7017. 800352e: 7fbb ldrb r3, [r7, #30]
  7018. 8003530: b29a uxth r2, r3
  7019. 8003532: 68bb ldr r3, [r7, #8]
  7020. 8003534: 801a strh r2, [r3, #0]
  7021. }
  7022. 8003536: bf00 nop
  7023. 8003538: 3724 adds r7, #36 @ 0x24
  7024. 800353a: 46bd mov sp, r7
  7025. 800353c: f85d 7b04 ldr.w r7, [sp], #4
  7026. 8003540: 4770 bx lr
  7027. 08003542 <ReadFloatFromBuffer>:
  7028. void ReadFloatFromBuffer(uint8_t* buff, uint16_t* buffPos, float* data)
  7029. {
  7030. 8003542: b480 push {r7}
  7031. 8003544: b087 sub sp, #28
  7032. 8003546: af00 add r7, sp, #0
  7033. 8003548: 60f8 str r0, [r7, #12]
  7034. 800354a: 60b9 str r1, [r7, #8]
  7035. 800354c: 607a str r2, [r7, #4]
  7036. uint32_t* word = (uint32_t *)data;
  7037. 800354e: 687b ldr r3, [r7, #4]
  7038. 8003550: 617b str r3, [r7, #20]
  7039. *word = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7040. 8003552: 68bb ldr r3, [r7, #8]
  7041. 8003554: 881b ldrh r3, [r3, #0]
  7042. 8003556: 3303 adds r3, #3
  7043. 8003558: 68fa ldr r2, [r7, #12]
  7044. 800355a: 4413 add r3, r2
  7045. 800355c: 781b ldrb r3, [r3, #0]
  7046. 800355e: 061a lsls r2, r3, #24
  7047. 8003560: 68bb ldr r3, [r7, #8]
  7048. 8003562: 881b ldrh r3, [r3, #0]
  7049. 8003564: 3302 adds r3, #2
  7050. 8003566: 68f9 ldr r1, [r7, #12]
  7051. 8003568: 440b add r3, r1
  7052. 800356a: 781b ldrb r3, [r3, #0]
  7053. 800356c: 041b lsls r3, r3, #16
  7054. 800356e: 431a orrs r2, r3
  7055. 8003570: 68bb ldr r3, [r7, #8]
  7056. 8003572: 881b ldrh r3, [r3, #0]
  7057. 8003574: 3301 adds r3, #1
  7058. 8003576: 68f9 ldr r1, [r7, #12]
  7059. 8003578: 440b add r3, r1
  7060. 800357a: 781b ldrb r3, [r3, #0]
  7061. 800357c: 021b lsls r3, r3, #8
  7062. 800357e: 4313 orrs r3, r2
  7063. 8003580: 68ba ldr r2, [r7, #8]
  7064. 8003582: 8812 ldrh r2, [r2, #0]
  7065. 8003584: 4611 mov r1, r2
  7066. 8003586: 68fa ldr r2, [r7, #12]
  7067. 8003588: 440a add r2, r1
  7068. 800358a: 7812 ldrb r2, [r2, #0]
  7069. 800358c: 4313 orrs r3, r2
  7070. 800358e: 461a mov r2, r3
  7071. 8003590: 697b ldr r3, [r7, #20]
  7072. 8003592: 601a str r2, [r3, #0]
  7073. *buffPos += sizeof(float);
  7074. 8003594: 68bb ldr r3, [r7, #8]
  7075. 8003596: 881b ldrh r3, [r3, #0]
  7076. 8003598: 3304 adds r3, #4
  7077. 800359a: b29a uxth r2, r3
  7078. 800359c: 68bb ldr r3, [r7, #8]
  7079. 800359e: 801a strh r2, [r3, #0]
  7080. }
  7081. 80035a0: bf00 nop
  7082. 80035a2: 371c adds r7, #28
  7083. 80035a4: 46bd mov sp, r7
  7084. 80035a6: f85d 7b04 ldr.w r7, [sp], #4
  7085. 80035aa: 4770 bx lr
  7086. 080035ac <ReadWordFromBufer>:
  7087. *data = CONVERT_BYTES_TO_SHORT_WORD(&buff[*buffPos]);
  7088. *buffPos += sizeof(uint16_t);
  7089. }
  7090. void ReadWordFromBufer(uint8_t* buff, uint16_t* buffPos, uint32_t* data)
  7091. {
  7092. 80035ac: b480 push {r7}
  7093. 80035ae: b085 sub sp, #20
  7094. 80035b0: af00 add r7, sp, #0
  7095. 80035b2: 60f8 str r0, [r7, #12]
  7096. 80035b4: 60b9 str r1, [r7, #8]
  7097. 80035b6: 607a str r2, [r7, #4]
  7098. *data = CONVERT_BYTES_TO_WORD(&buff[*buffPos]);
  7099. 80035b8: 68bb ldr r3, [r7, #8]
  7100. 80035ba: 881b ldrh r3, [r3, #0]
  7101. 80035bc: 3303 adds r3, #3
  7102. 80035be: 68fa ldr r2, [r7, #12]
  7103. 80035c0: 4413 add r3, r2
  7104. 80035c2: 781b ldrb r3, [r3, #0]
  7105. 80035c4: 061a lsls r2, r3, #24
  7106. 80035c6: 68bb ldr r3, [r7, #8]
  7107. 80035c8: 881b ldrh r3, [r3, #0]
  7108. 80035ca: 3302 adds r3, #2
  7109. 80035cc: 68f9 ldr r1, [r7, #12]
  7110. 80035ce: 440b add r3, r1
  7111. 80035d0: 781b ldrb r3, [r3, #0]
  7112. 80035d2: 041b lsls r3, r3, #16
  7113. 80035d4: 431a orrs r2, r3
  7114. 80035d6: 68bb ldr r3, [r7, #8]
  7115. 80035d8: 881b ldrh r3, [r3, #0]
  7116. 80035da: 3301 adds r3, #1
  7117. 80035dc: 68f9 ldr r1, [r7, #12]
  7118. 80035de: 440b add r3, r1
  7119. 80035e0: 781b ldrb r3, [r3, #0]
  7120. 80035e2: 021b lsls r3, r3, #8
  7121. 80035e4: 4313 orrs r3, r2
  7122. 80035e6: 68ba ldr r2, [r7, #8]
  7123. 80035e8: 8812 ldrh r2, [r2, #0]
  7124. 80035ea: 4611 mov r1, r2
  7125. 80035ec: 68fa ldr r2, [r7, #12]
  7126. 80035ee: 440a add r2, r1
  7127. 80035f0: 7812 ldrb r2, [r2, #0]
  7128. 80035f2: 4313 orrs r3, r2
  7129. 80035f4: 461a mov r2, r3
  7130. 80035f6: 687b ldr r3, [r7, #4]
  7131. 80035f8: 601a str r2, [r3, #0]
  7132. *buffPos += sizeof(uint32_t);
  7133. 80035fa: 68bb ldr r3, [r7, #8]
  7134. 80035fc: 881b ldrh r3, [r3, #0]
  7135. 80035fe: 3304 adds r3, #4
  7136. 8003600: b29a uxth r2, r3
  7137. 8003602: 68bb ldr r3, [r7, #8]
  7138. 8003604: 801a strh r2, [r3, #0]
  7139. }
  7140. 8003606: bf00 nop
  7141. 8003608: 3714 adds r7, #20
  7142. 800360a: 46bd mov sp, r7
  7143. 800360c: f85d 7b04 ldr.w r7, [sp], #4
  7144. 8003610: 4770 bx lr
  7145. ...
  7146. 08003614 <PrepareRespFrame>:
  7147. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7148. return txBufferPos;
  7149. }
  7150. uint16_t PrepareRespFrame (uint8_t* txBuffer, uint16_t frameId, SerialProtocolCommands frameCommand, SerialProtocolRespStatus respStatus, uint8_t* dataBuffer, uint16_t dataLength) {
  7151. 8003614: b580 push {r7, lr}
  7152. 8003616: b084 sub sp, #16
  7153. 8003618: af00 add r7, sp, #0
  7154. 800361a: 6078 str r0, [r7, #4]
  7155. 800361c: 4608 mov r0, r1
  7156. 800361e: 4611 mov r1, r2
  7157. 8003620: 461a mov r2, r3
  7158. 8003622: 4603 mov r3, r0
  7159. 8003624: 807b strh r3, [r7, #2]
  7160. 8003626: 460b mov r3, r1
  7161. 8003628: 707b strb r3, [r7, #1]
  7162. 800362a: 4613 mov r3, r2
  7163. 800362c: 703b strb r3, [r7, #0]
  7164. uint16_t crc = 0;
  7165. 800362e: 2300 movs r3, #0
  7166. 8003630: 81bb strh r3, [r7, #12]
  7167. uint16_t txBufferPos = 0;
  7168. 8003632: 2300 movs r3, #0
  7169. 8003634: 81fb strh r3, [r7, #14]
  7170. uint16_t frameCmd = ((uint16_t)frameCommand) | 0x8000; // MSB set means response
  7171. 8003636: 787b ldrb r3, [r7, #1]
  7172. 8003638: b21a sxth r2, r3
  7173. 800363a: 4b43 ldr r3, [pc, #268] @ (8003748 <PrepareRespFrame+0x134>)
  7174. 800363c: 4313 orrs r3, r2
  7175. 800363e: b21b sxth r3, r3
  7176. 8003640: 817b strh r3, [r7, #10]
  7177. memset (txBuffer, 0x00, dataLength);
  7178. 8003642: 8bbb ldrh r3, [r7, #28]
  7179. 8003644: 461a mov r2, r3
  7180. 8003646: 2100 movs r1, #0
  7181. 8003648: 6878 ldr r0, [r7, #4]
  7182. 800364a: f014 ff0d bl 8018468 <memset>
  7183. txBuffer[txBufferPos++] = FRAME_INDICATOR;
  7184. 800364e: 89fb ldrh r3, [r7, #14]
  7185. 8003650: 1c5a adds r2, r3, #1
  7186. 8003652: 81fa strh r2, [r7, #14]
  7187. 8003654: 461a mov r2, r3
  7188. 8003656: 687b ldr r3, [r7, #4]
  7189. 8003658: 4413 add r3, r2
  7190. 800365a: 22aa movs r2, #170 @ 0xaa
  7191. 800365c: 701a strb r2, [r3, #0]
  7192. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameId);
  7193. 800365e: 89fb ldrh r3, [r7, #14]
  7194. 8003660: 1c5a adds r2, r3, #1
  7195. 8003662: 81fa strh r2, [r7, #14]
  7196. 8003664: 461a mov r2, r3
  7197. 8003666: 687b ldr r3, [r7, #4]
  7198. 8003668: 4413 add r3, r2
  7199. 800366a: 887a ldrh r2, [r7, #2]
  7200. 800366c: b2d2 uxtb r2, r2
  7201. 800366e: 701a strb r2, [r3, #0]
  7202. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameId);
  7203. 8003670: 887b ldrh r3, [r7, #2]
  7204. 8003672: 0a1b lsrs r3, r3, #8
  7205. 8003674: b29a uxth r2, r3
  7206. 8003676: 89fb ldrh r3, [r7, #14]
  7207. 8003678: 1c59 adds r1, r3, #1
  7208. 800367a: 81f9 strh r1, [r7, #14]
  7209. 800367c: 4619 mov r1, r3
  7210. 800367e: 687b ldr r3, [r7, #4]
  7211. 8003680: 440b add r3, r1
  7212. 8003682: b2d2 uxtb r2, r2
  7213. 8003684: 701a strb r2, [r3, #0]
  7214. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (frameCmd);
  7215. 8003686: 89fb ldrh r3, [r7, #14]
  7216. 8003688: 1c5a adds r2, r3, #1
  7217. 800368a: 81fa strh r2, [r7, #14]
  7218. 800368c: 461a mov r2, r3
  7219. 800368e: 687b ldr r3, [r7, #4]
  7220. 8003690: 4413 add r3, r2
  7221. 8003692: 897a ldrh r2, [r7, #10]
  7222. 8003694: b2d2 uxtb r2, r2
  7223. 8003696: 701a strb r2, [r3, #0]
  7224. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (frameCmd);
  7225. 8003698: 897b ldrh r3, [r7, #10]
  7226. 800369a: 0a1b lsrs r3, r3, #8
  7227. 800369c: b29a uxth r2, r3
  7228. 800369e: 89fb ldrh r3, [r7, #14]
  7229. 80036a0: 1c59 adds r1, r3, #1
  7230. 80036a2: 81f9 strh r1, [r7, #14]
  7231. 80036a4: 4619 mov r1, r3
  7232. 80036a6: 687b ldr r3, [r7, #4]
  7233. 80036a8: 440b add r3, r1
  7234. 80036aa: b2d2 uxtb r2, r2
  7235. 80036ac: 701a strb r2, [r3, #0]
  7236. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (dataLength);
  7237. 80036ae: 89fb ldrh r3, [r7, #14]
  7238. 80036b0: 1c5a adds r2, r3, #1
  7239. 80036b2: 81fa strh r2, [r7, #14]
  7240. 80036b4: 461a mov r2, r3
  7241. 80036b6: 687b ldr r3, [r7, #4]
  7242. 80036b8: 4413 add r3, r2
  7243. 80036ba: 8bba ldrh r2, [r7, #28]
  7244. 80036bc: b2d2 uxtb r2, r2
  7245. 80036be: 701a strb r2, [r3, #0]
  7246. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (dataLength);
  7247. 80036c0: 8bbb ldrh r3, [r7, #28]
  7248. 80036c2: 0a1b lsrs r3, r3, #8
  7249. 80036c4: b29a uxth r2, r3
  7250. 80036c6: 89fb ldrh r3, [r7, #14]
  7251. 80036c8: 1c59 adds r1, r3, #1
  7252. 80036ca: 81f9 strh r1, [r7, #14]
  7253. 80036cc: 4619 mov r1, r3
  7254. 80036ce: 687b ldr r3, [r7, #4]
  7255. 80036d0: 440b add r3, r1
  7256. 80036d2: b2d2 uxtb r2, r2
  7257. 80036d4: 701a strb r2, [r3, #0]
  7258. txBuffer[txBufferPos++] = (uint8_t)respStatus;
  7259. 80036d6: 89fb ldrh r3, [r7, #14]
  7260. 80036d8: 1c5a adds r2, r3, #1
  7261. 80036da: 81fa strh r2, [r7, #14]
  7262. 80036dc: 461a mov r2, r3
  7263. 80036de: 687b ldr r3, [r7, #4]
  7264. 80036e0: 4413 add r3, r2
  7265. 80036e2: 783a ldrb r2, [r7, #0]
  7266. 80036e4: 701a strb r2, [r3, #0]
  7267. if (dataLength > 0) {
  7268. 80036e6: 8bbb ldrh r3, [r7, #28]
  7269. 80036e8: 2b00 cmp r3, #0
  7270. 80036ea: d00b beq.n 8003704 <PrepareRespFrame+0xf0>
  7271. memcpy (&txBuffer[txBufferPos], dataBuffer, dataLength);
  7272. 80036ec: 89fb ldrh r3, [r7, #14]
  7273. 80036ee: 687a ldr r2, [r7, #4]
  7274. 80036f0: 4413 add r3, r2
  7275. 80036f2: 8bba ldrh r2, [r7, #28]
  7276. 80036f4: 69b9 ldr r1, [r7, #24]
  7277. 80036f6: 4618 mov r0, r3
  7278. 80036f8: f014 ff8b bl 8018612 <memcpy>
  7279. txBufferPos += dataLength;
  7280. 80036fc: 89fa ldrh r2, [r7, #14]
  7281. 80036fe: 8bbb ldrh r3, [r7, #28]
  7282. 8003700: 4413 add r3, r2
  7283. 8003702: 81fb strh r3, [r7, #14]
  7284. }
  7285. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)txBuffer, txBufferPos);
  7286. 8003704: 89fb ldrh r3, [r7, #14]
  7287. 8003706: 461a mov r2, r3
  7288. 8003708: 6879 ldr r1, [r7, #4]
  7289. 800370a: 4810 ldr r0, [pc, #64] @ (800374c <PrepareRespFrame+0x138>)
  7290. 800370c: f004 f962 bl 80079d4 <HAL_CRC_Calculate>
  7291. 8003710: 4603 mov r3, r0
  7292. 8003712: 81bb strh r3, [r7, #12]
  7293. txBuffer[txBufferPos++] = GET_SHORT_WORD_FIRST_BYTE (crc);
  7294. 8003714: 89fb ldrh r3, [r7, #14]
  7295. 8003716: 1c5a adds r2, r3, #1
  7296. 8003718: 81fa strh r2, [r7, #14]
  7297. 800371a: 461a mov r2, r3
  7298. 800371c: 687b ldr r3, [r7, #4]
  7299. 800371e: 4413 add r3, r2
  7300. 8003720: 89ba ldrh r2, [r7, #12]
  7301. 8003722: b2d2 uxtb r2, r2
  7302. 8003724: 701a strb r2, [r3, #0]
  7303. txBuffer[txBufferPos++] = GET_SHORT_WORD_SECOND_BYTE (crc);
  7304. 8003726: 89bb ldrh r3, [r7, #12]
  7305. 8003728: 0a1b lsrs r3, r3, #8
  7306. 800372a: b29a uxth r2, r3
  7307. 800372c: 89fb ldrh r3, [r7, #14]
  7308. 800372e: 1c59 adds r1, r3, #1
  7309. 8003730: 81f9 strh r1, [r7, #14]
  7310. 8003732: 4619 mov r1, r3
  7311. 8003734: 687b ldr r3, [r7, #4]
  7312. 8003736: 440b add r3, r1
  7313. 8003738: b2d2 uxtb r2, r2
  7314. 800373a: 701a strb r2, [r3, #0]
  7315. return txBufferPos;
  7316. 800373c: 89fb ldrh r3, [r7, #14]
  7317. }
  7318. 800373e: 4618 mov r0, r3
  7319. 8003740: 3710 adds r7, #16
  7320. 8003742: 46bd mov sp, r7
  7321. 8003744: bd80 pop {r7, pc}
  7322. 8003746: bf00 nop
  7323. 8003748: ffff8000 .word 0xffff8000
  7324. 800374c: 24000540 .word 0x24000540
  7325. 08003750 <HAL_MspInit>:
  7326. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  7327. /**
  7328. * Initializes the Global MSP.
  7329. */
  7330. void HAL_MspInit(void)
  7331. {
  7332. 8003750: b580 push {r7, lr}
  7333. 8003752: b086 sub sp, #24
  7334. 8003754: af00 add r7, sp, #0
  7335. /* USER CODE BEGIN MspInit 0 */
  7336. /* USER CODE END MspInit 0 */
  7337. PWREx_AVDTypeDef sConfigAVD = {0};
  7338. 8003756: f107 0310 add.w r3, r7, #16
  7339. 800375a: 2200 movs r2, #0
  7340. 800375c: 601a str r2, [r3, #0]
  7341. 800375e: 605a str r2, [r3, #4]
  7342. PWR_PVDTypeDef sConfigPVD = {0};
  7343. 8003760: f107 0308 add.w r3, r7, #8
  7344. 8003764: 2200 movs r2, #0
  7345. 8003766: 601a str r2, [r3, #0]
  7346. 8003768: 605a str r2, [r3, #4]
  7347. __HAL_RCC_SYSCFG_CLK_ENABLE();
  7348. 800376a: 4b26 ldr r3, [pc, #152] @ (8003804 <HAL_MspInit+0xb4>)
  7349. 800376c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7350. 8003770: 4a24 ldr r2, [pc, #144] @ (8003804 <HAL_MspInit+0xb4>)
  7351. 8003772: f043 0302 orr.w r3, r3, #2
  7352. 8003776: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7353. 800377a: 4b22 ldr r3, [pc, #136] @ (8003804 <HAL_MspInit+0xb4>)
  7354. 800377c: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7355. 8003780: f003 0302 and.w r3, r3, #2
  7356. 8003784: 607b str r3, [r7, #4]
  7357. 8003786: 687b ldr r3, [r7, #4]
  7358. /* System interrupt init*/
  7359. /* PendSV_IRQn interrupt configuration */
  7360. HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
  7361. 8003788: 2200 movs r2, #0
  7362. 800378a: 210f movs r1, #15
  7363. 800378c: f06f 0001 mvn.w r0, #1
  7364. 8003790: f004 f81c bl 80077cc <HAL_NVIC_SetPriority>
  7365. /* Peripheral interrupt init */
  7366. /* RCC_IRQn interrupt configuration */
  7367. HAL_NVIC_SetPriority(RCC_IRQn, 5, 0);
  7368. 8003794: 2200 movs r2, #0
  7369. 8003796: 2105 movs r1, #5
  7370. 8003798: 2005 movs r0, #5
  7371. 800379a: f004 f817 bl 80077cc <HAL_NVIC_SetPriority>
  7372. HAL_NVIC_EnableIRQ(RCC_IRQn);
  7373. 800379e: 2005 movs r0, #5
  7374. 80037a0: f004 f82e bl 8007800 <HAL_NVIC_EnableIRQ>
  7375. /** AVD Configuration
  7376. */
  7377. sConfigAVD.AVDLevel = PWR_AVDLEVEL_3;
  7378. 80037a4: f44f 23c0 mov.w r3, #393216 @ 0x60000
  7379. 80037a8: 613b str r3, [r7, #16]
  7380. sConfigAVD.Mode = PWR_AVD_MODE_NORMAL;
  7381. 80037aa: 2300 movs r3, #0
  7382. 80037ac: 617b str r3, [r7, #20]
  7383. HAL_PWREx_ConfigAVD(&sConfigAVD);
  7384. 80037ae: f107 0310 add.w r3, r7, #16
  7385. 80037b2: 4618 mov r0, r3
  7386. 80037b4: f007 fe74 bl 800b4a0 <HAL_PWREx_ConfigAVD>
  7387. /** Enable the AVD Output
  7388. */
  7389. HAL_PWREx_EnableAVD();
  7390. 80037b8: f007 fee8 bl 800b58c <HAL_PWREx_EnableAVD>
  7391. /** PVD Configuration
  7392. */
  7393. sConfigPVD.PVDLevel = PWR_PVDLEVEL_6;
  7394. 80037bc: 23c0 movs r3, #192 @ 0xc0
  7395. 80037be: 60bb str r3, [r7, #8]
  7396. sConfigPVD.Mode = PWR_PVD_MODE_NORMAL;
  7397. 80037c0: 2300 movs r3, #0
  7398. 80037c2: 60fb str r3, [r7, #12]
  7399. HAL_PWR_ConfigPVD(&sConfigPVD);
  7400. 80037c4: f107 0308 add.w r3, r7, #8
  7401. 80037c8: 4618 mov r0, r3
  7402. 80037ca: f007 fda5 bl 800b318 <HAL_PWR_ConfigPVD>
  7403. /** Enable the PVD Output
  7404. */
  7405. HAL_PWR_EnablePVD();
  7406. 80037ce: f007 fe1d bl 800b40c <HAL_PWR_EnablePVD>
  7407. /** Enable the VREF clock
  7408. */
  7409. __HAL_RCC_VREF_CLK_ENABLE();
  7410. 80037d2: 4b0c ldr r3, [pc, #48] @ (8003804 <HAL_MspInit+0xb4>)
  7411. 80037d4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7412. 80037d8: 4a0a ldr r2, [pc, #40] @ (8003804 <HAL_MspInit+0xb4>)
  7413. 80037da: f443 4300 orr.w r3, r3, #32768 @ 0x8000
  7414. 80037de: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7415. 80037e2: 4b08 ldr r3, [pc, #32] @ (8003804 <HAL_MspInit+0xb4>)
  7416. 80037e4: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7417. 80037e8: f403 4300 and.w r3, r3, #32768 @ 0x8000
  7418. 80037ec: 603b str r3, [r7, #0]
  7419. 80037ee: 683b ldr r3, [r7, #0]
  7420. /** Disable the Internal Voltage Reference buffer
  7421. */
  7422. HAL_SYSCFG_DisableVREFBUF();
  7423. 80037f0: f002 f880 bl 80058f4 <HAL_SYSCFG_DisableVREFBUF>
  7424. /** Configure the internal voltage reference buffer high impedance mode
  7425. */
  7426. HAL_SYSCFG_VREFBUF_HighImpedanceConfig(SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE);
  7427. 80037f4: 2002 movs r0, #2
  7428. 80037f6: f002 f869 bl 80058cc <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>
  7429. /* USER CODE BEGIN MspInit 1 */
  7430. /* USER CODE END MspInit 1 */
  7431. }
  7432. 80037fa: bf00 nop
  7433. 80037fc: 3718 adds r7, #24
  7434. 80037fe: 46bd mov sp, r7
  7435. 8003800: bd80 pop {r7, pc}
  7436. 8003802: bf00 nop
  7437. 8003804: 58024400 .word 0x58024400
  7438. 08003808 <HAL_ADC_MspInit>:
  7439. * This function configures the hardware resources used in this example
  7440. * @param hadc: ADC handle pointer
  7441. * @retval None
  7442. */
  7443. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  7444. {
  7445. 8003808: b580 push {r7, lr}
  7446. 800380a: b092 sub sp, #72 @ 0x48
  7447. 800380c: af00 add r7, sp, #0
  7448. 800380e: 6078 str r0, [r7, #4]
  7449. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7450. 8003810: f107 0334 add.w r3, r7, #52 @ 0x34
  7451. 8003814: 2200 movs r2, #0
  7452. 8003816: 601a str r2, [r3, #0]
  7453. 8003818: 605a str r2, [r3, #4]
  7454. 800381a: 609a str r2, [r3, #8]
  7455. 800381c: 60da str r2, [r3, #12]
  7456. 800381e: 611a str r2, [r3, #16]
  7457. if(hadc->Instance==ADC1)
  7458. 8003820: 687b ldr r3, [r7, #4]
  7459. 8003822: 681b ldr r3, [r3, #0]
  7460. 8003824: 4a9d ldr r2, [pc, #628] @ (8003a9c <HAL_ADC_MspInit+0x294>)
  7461. 8003826: 4293 cmp r3, r2
  7462. 8003828: f040 8099 bne.w 800395e <HAL_ADC_MspInit+0x156>
  7463. {
  7464. /* USER CODE BEGIN ADC1_MspInit 0 */
  7465. /* USER CODE END ADC1_MspInit 0 */
  7466. /* Peripheral clock enable */
  7467. HAL_RCC_ADC12_CLK_ENABLED++;
  7468. 800382c: 4b9c ldr r3, [pc, #624] @ (8003aa0 <HAL_ADC_MspInit+0x298>)
  7469. 800382e: 681b ldr r3, [r3, #0]
  7470. 8003830: 3301 adds r3, #1
  7471. 8003832: 4a9b ldr r2, [pc, #620] @ (8003aa0 <HAL_ADC_MspInit+0x298>)
  7472. 8003834: 6013 str r3, [r2, #0]
  7473. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  7474. 8003836: 4b9a ldr r3, [pc, #616] @ (8003aa0 <HAL_ADC_MspInit+0x298>)
  7475. 8003838: 681b ldr r3, [r3, #0]
  7476. 800383a: 2b01 cmp r3, #1
  7477. 800383c: d10e bne.n 800385c <HAL_ADC_MspInit+0x54>
  7478. __HAL_RCC_ADC12_CLK_ENABLE();
  7479. 800383e: 4b99 ldr r3, [pc, #612] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7480. 8003840: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7481. 8003844: 4a97 ldr r2, [pc, #604] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7482. 8003846: f043 0320 orr.w r3, r3, #32
  7483. 800384a: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  7484. 800384e: 4b95 ldr r3, [pc, #596] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7485. 8003850: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7486. 8003854: f003 0320 and.w r3, r3, #32
  7487. 8003858: 633b str r3, [r7, #48] @ 0x30
  7488. 800385a: 6b3b ldr r3, [r7, #48] @ 0x30
  7489. }
  7490. __HAL_RCC_GPIOA_CLK_ENABLE();
  7491. 800385c: 4b91 ldr r3, [pc, #580] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7492. 800385e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7493. 8003862: 4a90 ldr r2, [pc, #576] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7494. 8003864: f043 0301 orr.w r3, r3, #1
  7495. 8003868: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7496. 800386c: 4b8d ldr r3, [pc, #564] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7497. 800386e: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7498. 8003872: f003 0301 and.w r3, r3, #1
  7499. 8003876: 62fb str r3, [r7, #44] @ 0x2c
  7500. 8003878: 6afb ldr r3, [r7, #44] @ 0x2c
  7501. __HAL_RCC_GPIOC_CLK_ENABLE();
  7502. 800387a: 4b8a ldr r3, [pc, #552] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7503. 800387c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7504. 8003880: 4a88 ldr r2, [pc, #544] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7505. 8003882: f043 0304 orr.w r3, r3, #4
  7506. 8003886: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7507. 800388a: 4b86 ldr r3, [pc, #536] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7508. 800388c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7509. 8003890: f003 0304 and.w r3, r3, #4
  7510. 8003894: 62bb str r3, [r7, #40] @ 0x28
  7511. 8003896: 6abb ldr r3, [r7, #40] @ 0x28
  7512. __HAL_RCC_GPIOB_CLK_ENABLE();
  7513. 8003898: 4b82 ldr r3, [pc, #520] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7514. 800389a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7515. 800389e: 4a81 ldr r2, [pc, #516] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7516. 80038a0: f043 0302 orr.w r3, r3, #2
  7517. 80038a4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7518. 80038a8: 4b7e ldr r3, [pc, #504] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7519. 80038aa: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7520. 80038ae: f003 0302 and.w r3, r3, #2
  7521. 80038b2: 627b str r3, [r7, #36] @ 0x24
  7522. 80038b4: 6a7b ldr r3, [r7, #36] @ 0x24
  7523. PA3 ------> ADC1_INP15
  7524. PA7 ------> ADC1_INP7
  7525. PC5 ------> ADC1_INP8
  7526. PB0 ------> ADC1_INP9
  7527. */
  7528. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3
  7529. 80038b6: 238f movs r3, #143 @ 0x8f
  7530. 80038b8: 637b str r3, [r7, #52] @ 0x34
  7531. |GPIO_PIN_7;
  7532. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7533. 80038ba: 2303 movs r3, #3
  7534. 80038bc: 63bb str r3, [r7, #56] @ 0x38
  7535. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7536. 80038be: 2300 movs r3, #0
  7537. 80038c0: 63fb str r3, [r7, #60] @ 0x3c
  7538. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7539. 80038c2: f107 0334 add.w r3, r7, #52 @ 0x34
  7540. 80038c6: 4619 mov r1, r3
  7541. 80038c8: 4877 ldr r0, [pc, #476] @ (8003aa8 <HAL_ADC_MspInit+0x2a0>)
  7542. 80038ca: f007 fab1 bl 800ae30 <HAL_GPIO_Init>
  7543. GPIO_InitStruct.Pin = GPIO_PIN_5;
  7544. 80038ce: 2320 movs r3, #32
  7545. 80038d0: 637b str r3, [r7, #52] @ 0x34
  7546. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7547. 80038d2: 2303 movs r3, #3
  7548. 80038d4: 63bb str r3, [r7, #56] @ 0x38
  7549. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7550. 80038d6: 2300 movs r3, #0
  7551. 80038d8: 63fb str r3, [r7, #60] @ 0x3c
  7552. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7553. 80038da: f107 0334 add.w r3, r7, #52 @ 0x34
  7554. 80038de: 4619 mov r1, r3
  7555. 80038e0: 4872 ldr r0, [pc, #456] @ (8003aac <HAL_ADC_MspInit+0x2a4>)
  7556. 80038e2: f007 faa5 bl 800ae30 <HAL_GPIO_Init>
  7557. GPIO_InitStruct.Pin = GPIO_PIN_0;
  7558. 80038e6: 2301 movs r3, #1
  7559. 80038e8: 637b str r3, [r7, #52] @ 0x34
  7560. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7561. 80038ea: 2303 movs r3, #3
  7562. 80038ec: 63bb str r3, [r7, #56] @ 0x38
  7563. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7564. 80038ee: 2300 movs r3, #0
  7565. 80038f0: 63fb str r3, [r7, #60] @ 0x3c
  7566. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7567. 80038f2: f107 0334 add.w r3, r7, #52 @ 0x34
  7568. 80038f6: 4619 mov r1, r3
  7569. 80038f8: 486d ldr r0, [pc, #436] @ (8003ab0 <HAL_ADC_MspInit+0x2a8>)
  7570. 80038fa: f007 fa99 bl 800ae30 <HAL_GPIO_Init>
  7571. /* ADC1 DMA Init */
  7572. /* ADC1 Init */
  7573. hdma_adc1.Instance = DMA1_Stream0;
  7574. 80038fe: 4b6d ldr r3, [pc, #436] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7575. 8003900: 4a6d ldr r2, [pc, #436] @ (8003ab8 <HAL_ADC_MspInit+0x2b0>)
  7576. 8003902: 601a str r2, [r3, #0]
  7577. hdma_adc1.Init.Request = DMA_REQUEST_ADC1;
  7578. 8003904: 4b6b ldr r3, [pc, #428] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7579. 8003906: 2209 movs r2, #9
  7580. 8003908: 605a str r2, [r3, #4]
  7581. hdma_adc1.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7582. 800390a: 4b6a ldr r3, [pc, #424] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7583. 800390c: 2200 movs r2, #0
  7584. 800390e: 609a str r2, [r3, #8]
  7585. hdma_adc1.Init.PeriphInc = DMA_PINC_DISABLE;
  7586. 8003910: 4b68 ldr r3, [pc, #416] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7587. 8003912: 2200 movs r2, #0
  7588. 8003914: 60da str r2, [r3, #12]
  7589. hdma_adc1.Init.MemInc = DMA_MINC_ENABLE;
  7590. 8003916: 4b67 ldr r3, [pc, #412] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7591. 8003918: f44f 6280 mov.w r2, #1024 @ 0x400
  7592. 800391c: 611a str r2, [r3, #16]
  7593. hdma_adc1.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7594. 800391e: 4b65 ldr r3, [pc, #404] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7595. 8003920: f44f 6200 mov.w r2, #2048 @ 0x800
  7596. 8003924: 615a str r2, [r3, #20]
  7597. hdma_adc1.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7598. 8003926: 4b63 ldr r3, [pc, #396] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7599. 8003928: f44f 5200 mov.w r2, #8192 @ 0x2000
  7600. 800392c: 619a str r2, [r3, #24]
  7601. hdma_adc1.Init.Mode = DMA_NORMAL;
  7602. 800392e: 4b61 ldr r3, [pc, #388] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7603. 8003930: 2200 movs r2, #0
  7604. 8003932: 61da str r2, [r3, #28]
  7605. hdma_adc1.Init.Priority = DMA_PRIORITY_LOW;
  7606. 8003934: 4b5f ldr r3, [pc, #380] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7607. 8003936: 2200 movs r2, #0
  7608. 8003938: 621a str r2, [r3, #32]
  7609. hdma_adc1.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7610. 800393a: 4b5e ldr r3, [pc, #376] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7611. 800393c: 2200 movs r2, #0
  7612. 800393e: 625a str r2, [r3, #36] @ 0x24
  7613. if (HAL_DMA_Init(&hdma_adc1) != HAL_OK)
  7614. 8003940: 485c ldr r0, [pc, #368] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7615. 8003942: f004 fc39 bl 80081b8 <HAL_DMA_Init>
  7616. 8003946: 4603 mov r3, r0
  7617. 8003948: 2b00 cmp r3, #0
  7618. 800394a: d001 beq.n 8003950 <HAL_ADC_MspInit+0x148>
  7619. {
  7620. Error_Handler();
  7621. 800394c: f7fe f91e bl 8001b8c <Error_Handler>
  7622. }
  7623. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc1);
  7624. 8003950: 687b ldr r3, [r7, #4]
  7625. 8003952: 4a58 ldr r2, [pc, #352] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7626. 8003954: 64da str r2, [r3, #76] @ 0x4c
  7627. 8003956: 4a57 ldr r2, [pc, #348] @ (8003ab4 <HAL_ADC_MspInit+0x2ac>)
  7628. 8003958: 687b ldr r3, [r7, #4]
  7629. 800395a: 6393 str r3, [r2, #56] @ 0x38
  7630. /* USER CODE BEGIN ADC3_MspInit 1 */
  7631. /* USER CODE END ADC3_MspInit 1 */
  7632. }
  7633. }
  7634. 800395c: e11e b.n 8003b9c <HAL_ADC_MspInit+0x394>
  7635. else if(hadc->Instance==ADC2)
  7636. 800395e: 687b ldr r3, [r7, #4]
  7637. 8003960: 681b ldr r3, [r3, #0]
  7638. 8003962: 4a56 ldr r2, [pc, #344] @ (8003abc <HAL_ADC_MspInit+0x2b4>)
  7639. 8003964: 4293 cmp r3, r2
  7640. 8003966: f040 80af bne.w 8003ac8 <HAL_ADC_MspInit+0x2c0>
  7641. HAL_RCC_ADC12_CLK_ENABLED++;
  7642. 800396a: 4b4d ldr r3, [pc, #308] @ (8003aa0 <HAL_ADC_MspInit+0x298>)
  7643. 800396c: 681b ldr r3, [r3, #0]
  7644. 800396e: 3301 adds r3, #1
  7645. 8003970: 4a4b ldr r2, [pc, #300] @ (8003aa0 <HAL_ADC_MspInit+0x298>)
  7646. 8003972: 6013 str r3, [r2, #0]
  7647. if(HAL_RCC_ADC12_CLK_ENABLED==1){
  7648. 8003974: 4b4a ldr r3, [pc, #296] @ (8003aa0 <HAL_ADC_MspInit+0x298>)
  7649. 8003976: 681b ldr r3, [r3, #0]
  7650. 8003978: 2b01 cmp r3, #1
  7651. 800397a: d10e bne.n 800399a <HAL_ADC_MspInit+0x192>
  7652. __HAL_RCC_ADC12_CLK_ENABLE();
  7653. 800397c: 4b49 ldr r3, [pc, #292] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7654. 800397e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7655. 8003982: 4a48 ldr r2, [pc, #288] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7656. 8003984: f043 0320 orr.w r3, r3, #32
  7657. 8003988: f8c2 30d8 str.w r3, [r2, #216] @ 0xd8
  7658. 800398c: 4b45 ldr r3, [pc, #276] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7659. 800398e: f8d3 30d8 ldr.w r3, [r3, #216] @ 0xd8
  7660. 8003992: f003 0320 and.w r3, r3, #32
  7661. 8003996: 623b str r3, [r7, #32]
  7662. 8003998: 6a3b ldr r3, [r7, #32]
  7663. __HAL_RCC_GPIOA_CLK_ENABLE();
  7664. 800399a: 4b42 ldr r3, [pc, #264] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7665. 800399c: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7666. 80039a0: 4a40 ldr r2, [pc, #256] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7667. 80039a2: f043 0301 orr.w r3, r3, #1
  7668. 80039a6: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7669. 80039aa: 4b3e ldr r3, [pc, #248] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7670. 80039ac: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7671. 80039b0: f003 0301 and.w r3, r3, #1
  7672. 80039b4: 61fb str r3, [r7, #28]
  7673. 80039b6: 69fb ldr r3, [r7, #28]
  7674. __HAL_RCC_GPIOC_CLK_ENABLE();
  7675. 80039b8: 4b3a ldr r3, [pc, #232] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7676. 80039ba: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7677. 80039be: 4a39 ldr r2, [pc, #228] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7678. 80039c0: f043 0304 orr.w r3, r3, #4
  7679. 80039c4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7680. 80039c8: 4b36 ldr r3, [pc, #216] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7681. 80039ca: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7682. 80039ce: f003 0304 and.w r3, r3, #4
  7683. 80039d2: 61bb str r3, [r7, #24]
  7684. 80039d4: 69bb ldr r3, [r7, #24]
  7685. __HAL_RCC_GPIOB_CLK_ENABLE();
  7686. 80039d6: 4b33 ldr r3, [pc, #204] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7687. 80039d8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7688. 80039dc: 4a31 ldr r2, [pc, #196] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7689. 80039de: f043 0302 orr.w r3, r3, #2
  7690. 80039e2: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7691. 80039e6: 4b2f ldr r3, [pc, #188] @ (8003aa4 <HAL_ADC_MspInit+0x29c>)
  7692. 80039e8: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7693. 80039ec: f003 0302 and.w r3, r3, #2
  7694. 80039f0: 617b str r3, [r7, #20]
  7695. 80039f2: 697b ldr r3, [r7, #20]
  7696. GPIO_InitStruct.Pin = GPIO_PIN_6;
  7697. 80039f4: 2340 movs r3, #64 @ 0x40
  7698. 80039f6: 637b str r3, [r7, #52] @ 0x34
  7699. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7700. 80039f8: 2303 movs r3, #3
  7701. 80039fa: 63bb str r3, [r7, #56] @ 0x38
  7702. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7703. 80039fc: 2300 movs r3, #0
  7704. 80039fe: 63fb str r3, [r7, #60] @ 0x3c
  7705. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  7706. 8003a00: f107 0334 add.w r3, r7, #52 @ 0x34
  7707. 8003a04: 4619 mov r1, r3
  7708. 8003a06: 4828 ldr r0, [pc, #160] @ (8003aa8 <HAL_ADC_MspInit+0x2a0>)
  7709. 8003a08: f007 fa12 bl 800ae30 <HAL_GPIO_Init>
  7710. GPIO_InitStruct.Pin = GPIO_PIN_4;
  7711. 8003a0c: 2310 movs r3, #16
  7712. 8003a0e: 637b str r3, [r7, #52] @ 0x34
  7713. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7714. 8003a10: 2303 movs r3, #3
  7715. 8003a12: 63bb str r3, [r7, #56] @ 0x38
  7716. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7717. 8003a14: 2300 movs r3, #0
  7718. 8003a16: 63fb str r3, [r7, #60] @ 0x3c
  7719. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7720. 8003a18: f107 0334 add.w r3, r7, #52 @ 0x34
  7721. 8003a1c: 4619 mov r1, r3
  7722. 8003a1e: 4823 ldr r0, [pc, #140] @ (8003aac <HAL_ADC_MspInit+0x2a4>)
  7723. 8003a20: f007 fa06 bl 800ae30 <HAL_GPIO_Init>
  7724. GPIO_InitStruct.Pin = GPIO_PIN_1;
  7725. 8003a24: 2302 movs r3, #2
  7726. 8003a26: 637b str r3, [r7, #52] @ 0x34
  7727. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7728. 8003a28: 2303 movs r3, #3
  7729. 8003a2a: 63bb str r3, [r7, #56] @ 0x38
  7730. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7731. 8003a2c: 2300 movs r3, #0
  7732. 8003a2e: 63fb str r3, [r7, #60] @ 0x3c
  7733. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7734. 8003a30: f107 0334 add.w r3, r7, #52 @ 0x34
  7735. 8003a34: 4619 mov r1, r3
  7736. 8003a36: 481e ldr r0, [pc, #120] @ (8003ab0 <HAL_ADC_MspInit+0x2a8>)
  7737. 8003a38: f007 f9fa bl 800ae30 <HAL_GPIO_Init>
  7738. hdma_adc2.Instance = DMA1_Stream1;
  7739. 8003a3c: 4b20 ldr r3, [pc, #128] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7740. 8003a3e: 4a21 ldr r2, [pc, #132] @ (8003ac4 <HAL_ADC_MspInit+0x2bc>)
  7741. 8003a40: 601a str r2, [r3, #0]
  7742. hdma_adc2.Init.Request = DMA_REQUEST_ADC2;
  7743. 8003a42: 4b1f ldr r3, [pc, #124] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7744. 8003a44: 220a movs r2, #10
  7745. 8003a46: 605a str r2, [r3, #4]
  7746. hdma_adc2.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7747. 8003a48: 4b1d ldr r3, [pc, #116] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7748. 8003a4a: 2200 movs r2, #0
  7749. 8003a4c: 609a str r2, [r3, #8]
  7750. hdma_adc2.Init.PeriphInc = DMA_PINC_DISABLE;
  7751. 8003a4e: 4b1c ldr r3, [pc, #112] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7752. 8003a50: 2200 movs r2, #0
  7753. 8003a52: 60da str r2, [r3, #12]
  7754. hdma_adc2.Init.MemInc = DMA_MINC_ENABLE;
  7755. 8003a54: 4b1a ldr r3, [pc, #104] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7756. 8003a56: f44f 6280 mov.w r2, #1024 @ 0x400
  7757. 8003a5a: 611a str r2, [r3, #16]
  7758. hdma_adc2.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7759. 8003a5c: 4b18 ldr r3, [pc, #96] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7760. 8003a5e: f44f 6200 mov.w r2, #2048 @ 0x800
  7761. 8003a62: 615a str r2, [r3, #20]
  7762. hdma_adc2.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7763. 8003a64: 4b16 ldr r3, [pc, #88] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7764. 8003a66: f44f 5200 mov.w r2, #8192 @ 0x2000
  7765. 8003a6a: 619a str r2, [r3, #24]
  7766. hdma_adc2.Init.Mode = DMA_NORMAL;
  7767. 8003a6c: 4b14 ldr r3, [pc, #80] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7768. 8003a6e: 2200 movs r2, #0
  7769. 8003a70: 61da str r2, [r3, #28]
  7770. hdma_adc2.Init.Priority = DMA_PRIORITY_LOW;
  7771. 8003a72: 4b13 ldr r3, [pc, #76] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7772. 8003a74: 2200 movs r2, #0
  7773. 8003a76: 621a str r2, [r3, #32]
  7774. hdma_adc2.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7775. 8003a78: 4b11 ldr r3, [pc, #68] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7776. 8003a7a: 2200 movs r2, #0
  7777. 8003a7c: 625a str r2, [r3, #36] @ 0x24
  7778. if (HAL_DMA_Init(&hdma_adc2) != HAL_OK)
  7779. 8003a7e: 4810 ldr r0, [pc, #64] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7780. 8003a80: f004 fb9a bl 80081b8 <HAL_DMA_Init>
  7781. 8003a84: 4603 mov r3, r0
  7782. 8003a86: 2b00 cmp r3, #0
  7783. 8003a88: d001 beq.n 8003a8e <HAL_ADC_MspInit+0x286>
  7784. Error_Handler();
  7785. 8003a8a: f7fe f87f bl 8001b8c <Error_Handler>
  7786. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc2);
  7787. 8003a8e: 687b ldr r3, [r7, #4]
  7788. 8003a90: 4a0b ldr r2, [pc, #44] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7789. 8003a92: 64da str r2, [r3, #76] @ 0x4c
  7790. 8003a94: 4a0a ldr r2, [pc, #40] @ (8003ac0 <HAL_ADC_MspInit+0x2b8>)
  7791. 8003a96: 687b ldr r3, [r7, #4]
  7792. 8003a98: 6393 str r3, [r2, #56] @ 0x38
  7793. }
  7794. 8003a9a: e07f b.n 8003b9c <HAL_ADC_MspInit+0x394>
  7795. 8003a9c: 40022000 .word 0x40022000
  7796. 8003aa0: 24000a74 .word 0x24000a74
  7797. 8003aa4: 58024400 .word 0x58024400
  7798. 8003aa8: 58020000 .word 0x58020000
  7799. 8003aac: 58020800 .word 0x58020800
  7800. 8003ab0: 58020400 .word 0x58020400
  7801. 8003ab4: 240003ac .word 0x240003ac
  7802. 8003ab8: 40020010 .word 0x40020010
  7803. 8003abc: 40022100 .word 0x40022100
  7804. 8003ac0: 24000424 .word 0x24000424
  7805. 8003ac4: 40020028 .word 0x40020028
  7806. else if(hadc->Instance==ADC3)
  7807. 8003ac8: 687b ldr r3, [r7, #4]
  7808. 8003aca: 681b ldr r3, [r3, #0]
  7809. 8003acc: 4a35 ldr r2, [pc, #212] @ (8003ba4 <HAL_ADC_MspInit+0x39c>)
  7810. 8003ace: 4293 cmp r3, r2
  7811. 8003ad0: d164 bne.n 8003b9c <HAL_ADC_MspInit+0x394>
  7812. __HAL_RCC_ADC3_CLK_ENABLE();
  7813. 8003ad2: 4b35 ldr r3, [pc, #212] @ (8003ba8 <HAL_ADC_MspInit+0x3a0>)
  7814. 8003ad4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7815. 8003ad8: 4a33 ldr r2, [pc, #204] @ (8003ba8 <HAL_ADC_MspInit+0x3a0>)
  7816. 8003ada: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  7817. 8003ade: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7818. 8003ae2: 4b31 ldr r3, [pc, #196] @ (8003ba8 <HAL_ADC_MspInit+0x3a0>)
  7819. 8003ae4: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7820. 8003ae8: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  7821. 8003aec: 613b str r3, [r7, #16]
  7822. 8003aee: 693b ldr r3, [r7, #16]
  7823. __HAL_RCC_GPIOC_CLK_ENABLE();
  7824. 8003af0: 4b2d ldr r3, [pc, #180] @ (8003ba8 <HAL_ADC_MspInit+0x3a0>)
  7825. 8003af2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7826. 8003af6: 4a2c ldr r2, [pc, #176] @ (8003ba8 <HAL_ADC_MspInit+0x3a0>)
  7827. 8003af8: f043 0304 orr.w r3, r3, #4
  7828. 8003afc: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7829. 8003b00: 4b29 ldr r3, [pc, #164] @ (8003ba8 <HAL_ADC_MspInit+0x3a0>)
  7830. 8003b02: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7831. 8003b06: f003 0304 and.w r3, r3, #4
  7832. 8003b0a: 60fb str r3, [r7, #12]
  7833. 8003b0c: 68fb ldr r3, [r7, #12]
  7834. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  7835. 8003b0e: 2303 movs r3, #3
  7836. 8003b10: 637b str r3, [r7, #52] @ 0x34
  7837. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7838. 8003b12: 2303 movs r3, #3
  7839. 8003b14: 63bb str r3, [r7, #56] @ 0x38
  7840. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7841. 8003b16: 2300 movs r3, #0
  7842. 8003b18: 63fb str r3, [r7, #60] @ 0x3c
  7843. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  7844. 8003b1a: f107 0334 add.w r3, r7, #52 @ 0x34
  7845. 8003b1e: 4619 mov r1, r3
  7846. 8003b20: 4822 ldr r0, [pc, #136] @ (8003bac <HAL_ADC_MspInit+0x3a4>)
  7847. 8003b22: f007 f985 bl 800ae30 <HAL_GPIO_Init>
  7848. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC2, SYSCFG_SWITCH_PC2_OPEN);
  7849. 8003b26: f04f 6180 mov.w r1, #67108864 @ 0x4000000
  7850. 8003b2a: f04f 6080 mov.w r0, #67108864 @ 0x4000000
  7851. 8003b2e: f001 fef1 bl 8005914 <HAL_SYSCFG_AnalogSwitchConfig>
  7852. HAL_SYSCFG_AnalogSwitchConfig(SYSCFG_SWITCH_PC3, SYSCFG_SWITCH_PC3_OPEN);
  7853. 8003b32: f04f 6100 mov.w r1, #134217728 @ 0x8000000
  7854. 8003b36: f04f 6000 mov.w r0, #134217728 @ 0x8000000
  7855. 8003b3a: f001 feeb bl 8005914 <HAL_SYSCFG_AnalogSwitchConfig>
  7856. hdma_adc3.Instance = DMA1_Stream2;
  7857. 8003b3e: 4b1c ldr r3, [pc, #112] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7858. 8003b40: 4a1c ldr r2, [pc, #112] @ (8003bb4 <HAL_ADC_MspInit+0x3ac>)
  7859. 8003b42: 601a str r2, [r3, #0]
  7860. hdma_adc3.Init.Request = DMA_REQUEST_ADC3;
  7861. 8003b44: 4b1a ldr r3, [pc, #104] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7862. 8003b46: 2273 movs r2, #115 @ 0x73
  7863. 8003b48: 605a str r2, [r3, #4]
  7864. hdma_adc3.Init.Direction = DMA_PERIPH_TO_MEMORY;
  7865. 8003b4a: 4b19 ldr r3, [pc, #100] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7866. 8003b4c: 2200 movs r2, #0
  7867. 8003b4e: 609a str r2, [r3, #8]
  7868. hdma_adc3.Init.PeriphInc = DMA_PINC_DISABLE;
  7869. 8003b50: 4b17 ldr r3, [pc, #92] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7870. 8003b52: 2200 movs r2, #0
  7871. 8003b54: 60da str r2, [r3, #12]
  7872. hdma_adc3.Init.MemInc = DMA_MINC_ENABLE;
  7873. 8003b56: 4b16 ldr r3, [pc, #88] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7874. 8003b58: f44f 6280 mov.w r2, #1024 @ 0x400
  7875. 8003b5c: 611a str r2, [r3, #16]
  7876. hdma_adc3.Init.PeriphDataAlignment = DMA_PDATAALIGN_HALFWORD;
  7877. 8003b5e: 4b14 ldr r3, [pc, #80] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7878. 8003b60: f44f 6200 mov.w r2, #2048 @ 0x800
  7879. 8003b64: 615a str r2, [r3, #20]
  7880. hdma_adc3.Init.MemDataAlignment = DMA_MDATAALIGN_HALFWORD;
  7881. 8003b66: 4b12 ldr r3, [pc, #72] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7882. 8003b68: f44f 5200 mov.w r2, #8192 @ 0x2000
  7883. 8003b6c: 619a str r2, [r3, #24]
  7884. hdma_adc3.Init.Mode = DMA_NORMAL;
  7885. 8003b6e: 4b10 ldr r3, [pc, #64] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7886. 8003b70: 2200 movs r2, #0
  7887. 8003b72: 61da str r2, [r3, #28]
  7888. hdma_adc3.Init.Priority = DMA_PRIORITY_LOW;
  7889. 8003b74: 4b0e ldr r3, [pc, #56] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7890. 8003b76: 2200 movs r2, #0
  7891. 8003b78: 621a str r2, [r3, #32]
  7892. hdma_adc3.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
  7893. 8003b7a: 4b0d ldr r3, [pc, #52] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7894. 8003b7c: 2200 movs r2, #0
  7895. 8003b7e: 625a str r2, [r3, #36] @ 0x24
  7896. if (HAL_DMA_Init(&hdma_adc3) != HAL_OK)
  7897. 8003b80: 480b ldr r0, [pc, #44] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7898. 8003b82: f004 fb19 bl 80081b8 <HAL_DMA_Init>
  7899. 8003b86: 4603 mov r3, r0
  7900. 8003b88: 2b00 cmp r3, #0
  7901. 8003b8a: d001 beq.n 8003b90 <HAL_ADC_MspInit+0x388>
  7902. Error_Handler();
  7903. 8003b8c: f7fd fffe bl 8001b8c <Error_Handler>
  7904. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc3);
  7905. 8003b90: 687b ldr r3, [r7, #4]
  7906. 8003b92: 4a07 ldr r2, [pc, #28] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7907. 8003b94: 64da str r2, [r3, #76] @ 0x4c
  7908. 8003b96: 4a06 ldr r2, [pc, #24] @ (8003bb0 <HAL_ADC_MspInit+0x3a8>)
  7909. 8003b98: 687b ldr r3, [r7, #4]
  7910. 8003b9a: 6393 str r3, [r2, #56] @ 0x38
  7911. }
  7912. 8003b9c: bf00 nop
  7913. 8003b9e: 3748 adds r7, #72 @ 0x48
  7914. 8003ba0: 46bd mov sp, r7
  7915. 8003ba2: bd80 pop {r7, pc}
  7916. 8003ba4: 58026000 .word 0x58026000
  7917. 8003ba8: 58024400 .word 0x58024400
  7918. 8003bac: 58020800 .word 0x58020800
  7919. 8003bb0: 2400049c .word 0x2400049c
  7920. 8003bb4: 40020040 .word 0x40020040
  7921. 08003bb8 <HAL_COMP_MspInit>:
  7922. * This function configures the hardware resources used in this example
  7923. * @param hcomp: COMP handle pointer
  7924. * @retval None
  7925. */
  7926. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  7927. {
  7928. 8003bb8: b580 push {r7, lr}
  7929. 8003bba: b08a sub sp, #40 @ 0x28
  7930. 8003bbc: af00 add r7, sp, #0
  7931. 8003bbe: 6078 str r0, [r7, #4]
  7932. GPIO_InitTypeDef GPIO_InitStruct = {0};
  7933. 8003bc0: f107 0314 add.w r3, r7, #20
  7934. 8003bc4: 2200 movs r2, #0
  7935. 8003bc6: 601a str r2, [r3, #0]
  7936. 8003bc8: 605a str r2, [r3, #4]
  7937. 8003bca: 609a str r2, [r3, #8]
  7938. 8003bcc: 60da str r2, [r3, #12]
  7939. 8003bce: 611a str r2, [r3, #16]
  7940. if(hcomp->Instance==COMP1)
  7941. 8003bd0: 687b ldr r3, [r7, #4]
  7942. 8003bd2: 681b ldr r3, [r3, #0]
  7943. 8003bd4: 4a18 ldr r2, [pc, #96] @ (8003c38 <HAL_COMP_MspInit+0x80>)
  7944. 8003bd6: 4293 cmp r3, r2
  7945. 8003bd8: d129 bne.n 8003c2e <HAL_COMP_MspInit+0x76>
  7946. {
  7947. /* USER CODE BEGIN COMP1_MspInit 0 */
  7948. /* USER CODE END COMP1_MspInit 0 */
  7949. /* Peripheral clock enable */
  7950. __HAL_RCC_COMP12_CLK_ENABLE();
  7951. 8003bda: 4b18 ldr r3, [pc, #96] @ (8003c3c <HAL_COMP_MspInit+0x84>)
  7952. 8003bdc: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7953. 8003be0: 4a16 ldr r2, [pc, #88] @ (8003c3c <HAL_COMP_MspInit+0x84>)
  7954. 8003be2: f443 4380 orr.w r3, r3, #16384 @ 0x4000
  7955. 8003be6: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  7956. 8003bea: 4b14 ldr r3, [pc, #80] @ (8003c3c <HAL_COMP_MspInit+0x84>)
  7957. 8003bec: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  7958. 8003bf0: f403 4380 and.w r3, r3, #16384 @ 0x4000
  7959. 8003bf4: 613b str r3, [r7, #16]
  7960. 8003bf6: 693b ldr r3, [r7, #16]
  7961. __HAL_RCC_GPIOB_CLK_ENABLE();
  7962. 8003bf8: 4b10 ldr r3, [pc, #64] @ (8003c3c <HAL_COMP_MspInit+0x84>)
  7963. 8003bfa: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7964. 8003bfe: 4a0f ldr r2, [pc, #60] @ (8003c3c <HAL_COMP_MspInit+0x84>)
  7965. 8003c00: f043 0302 orr.w r3, r3, #2
  7966. 8003c04: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  7967. 8003c08: 4b0c ldr r3, [pc, #48] @ (8003c3c <HAL_COMP_MspInit+0x84>)
  7968. 8003c0a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  7969. 8003c0e: f003 0302 and.w r3, r3, #2
  7970. 8003c12: 60fb str r3, [r7, #12]
  7971. 8003c14: 68fb ldr r3, [r7, #12]
  7972. /**COMP1 GPIO Configuration
  7973. PB2 ------> COMP1_INP
  7974. */
  7975. GPIO_InitStruct.Pin = GPIO_PIN_2;
  7976. 8003c16: 2304 movs r3, #4
  7977. 8003c18: 617b str r3, [r7, #20]
  7978. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  7979. 8003c1a: 2303 movs r3, #3
  7980. 8003c1c: 61bb str r3, [r7, #24]
  7981. GPIO_InitStruct.Pull = GPIO_NOPULL;
  7982. 8003c1e: 2300 movs r3, #0
  7983. 8003c20: 61fb str r3, [r7, #28]
  7984. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  7985. 8003c22: f107 0314 add.w r3, r7, #20
  7986. 8003c26: 4619 mov r1, r3
  7987. 8003c28: 4805 ldr r0, [pc, #20] @ (8003c40 <HAL_COMP_MspInit+0x88>)
  7988. 8003c2a: f007 f901 bl 800ae30 <HAL_GPIO_Init>
  7989. /* USER CODE BEGIN COMP1_MspInit 1 */
  7990. /* USER CODE END COMP1_MspInit 1 */
  7991. }
  7992. }
  7993. 8003c2e: bf00 nop
  7994. 8003c30: 3728 adds r7, #40 @ 0x28
  7995. 8003c32: 46bd mov sp, r7
  7996. 8003c34: bd80 pop {r7, pc}
  7997. 8003c36: bf00 nop
  7998. 8003c38: 5800380c .word 0x5800380c
  7999. 8003c3c: 58024400 .word 0x58024400
  8000. 8003c40: 58020400 .word 0x58020400
  8001. 08003c44 <HAL_CRC_MspInit>:
  8002. * This function configures the hardware resources used in this example
  8003. * @param hcrc: CRC handle pointer
  8004. * @retval None
  8005. */
  8006. void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
  8007. {
  8008. 8003c44: b480 push {r7}
  8009. 8003c46: b085 sub sp, #20
  8010. 8003c48: af00 add r7, sp, #0
  8011. 8003c4a: 6078 str r0, [r7, #4]
  8012. if(hcrc->Instance==CRC)
  8013. 8003c4c: 687b ldr r3, [r7, #4]
  8014. 8003c4e: 681b ldr r3, [r3, #0]
  8015. 8003c50: 4a0b ldr r2, [pc, #44] @ (8003c80 <HAL_CRC_MspInit+0x3c>)
  8016. 8003c52: 4293 cmp r3, r2
  8017. 8003c54: d10e bne.n 8003c74 <HAL_CRC_MspInit+0x30>
  8018. {
  8019. /* USER CODE BEGIN CRC_MspInit 0 */
  8020. /* USER CODE END CRC_MspInit 0 */
  8021. /* Peripheral clock enable */
  8022. __HAL_RCC_CRC_CLK_ENABLE();
  8023. 8003c56: 4b0b ldr r3, [pc, #44] @ (8003c84 <HAL_CRC_MspInit+0x40>)
  8024. 8003c58: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8025. 8003c5c: 4a09 ldr r2, [pc, #36] @ (8003c84 <HAL_CRC_MspInit+0x40>)
  8026. 8003c5e: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  8027. 8003c62: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8028. 8003c66: 4b07 ldr r3, [pc, #28] @ (8003c84 <HAL_CRC_MspInit+0x40>)
  8029. 8003c68: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8030. 8003c6c: f403 2300 and.w r3, r3, #524288 @ 0x80000
  8031. 8003c70: 60fb str r3, [r7, #12]
  8032. 8003c72: 68fb ldr r3, [r7, #12]
  8033. /* USER CODE BEGIN CRC_MspInit 1 */
  8034. /* USER CODE END CRC_MspInit 1 */
  8035. }
  8036. }
  8037. 8003c74: bf00 nop
  8038. 8003c76: 3714 adds r7, #20
  8039. 8003c78: 46bd mov sp, r7
  8040. 8003c7a: f85d 7b04 ldr.w r7, [sp], #4
  8041. 8003c7e: 4770 bx lr
  8042. 8003c80: 58024c00 .word 0x58024c00
  8043. 8003c84: 58024400 .word 0x58024400
  8044. 08003c88 <HAL_DAC_MspInit>:
  8045. * This function configures the hardware resources used in this example
  8046. * @param hdac: DAC handle pointer
  8047. * @retval None
  8048. */
  8049. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  8050. {
  8051. 8003c88: b580 push {r7, lr}
  8052. 8003c8a: b08a sub sp, #40 @ 0x28
  8053. 8003c8c: af00 add r7, sp, #0
  8054. 8003c8e: 6078 str r0, [r7, #4]
  8055. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8056. 8003c90: f107 0314 add.w r3, r7, #20
  8057. 8003c94: 2200 movs r2, #0
  8058. 8003c96: 601a str r2, [r3, #0]
  8059. 8003c98: 605a str r2, [r3, #4]
  8060. 8003c9a: 609a str r2, [r3, #8]
  8061. 8003c9c: 60da str r2, [r3, #12]
  8062. 8003c9e: 611a str r2, [r3, #16]
  8063. if(hdac->Instance==DAC1)
  8064. 8003ca0: 687b ldr r3, [r7, #4]
  8065. 8003ca2: 681b ldr r3, [r3, #0]
  8066. 8003ca4: 4a1c ldr r2, [pc, #112] @ (8003d18 <HAL_DAC_MspInit+0x90>)
  8067. 8003ca6: 4293 cmp r3, r2
  8068. 8003ca8: d131 bne.n 8003d0e <HAL_DAC_MspInit+0x86>
  8069. {
  8070. /* USER CODE BEGIN DAC1_MspInit 0 */
  8071. /* USER CODE END DAC1_MspInit 0 */
  8072. /* Peripheral clock enable */
  8073. __HAL_RCC_DAC12_CLK_ENABLE();
  8074. 8003caa: 4b1c ldr r3, [pc, #112] @ (8003d1c <HAL_DAC_MspInit+0x94>)
  8075. 8003cac: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8076. 8003cb0: 4a1a ldr r2, [pc, #104] @ (8003d1c <HAL_DAC_MspInit+0x94>)
  8077. 8003cb2: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
  8078. 8003cb6: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8079. 8003cba: 4b18 ldr r3, [pc, #96] @ (8003d1c <HAL_DAC_MspInit+0x94>)
  8080. 8003cbc: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8081. 8003cc0: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  8082. 8003cc4: 613b str r3, [r7, #16]
  8083. 8003cc6: 693b ldr r3, [r7, #16]
  8084. __HAL_RCC_GPIOA_CLK_ENABLE();
  8085. 8003cc8: 4b14 ldr r3, [pc, #80] @ (8003d1c <HAL_DAC_MspInit+0x94>)
  8086. 8003cca: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8087. 8003cce: 4a13 ldr r2, [pc, #76] @ (8003d1c <HAL_DAC_MspInit+0x94>)
  8088. 8003cd0: f043 0301 orr.w r3, r3, #1
  8089. 8003cd4: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8090. 8003cd8: 4b10 ldr r3, [pc, #64] @ (8003d1c <HAL_DAC_MspInit+0x94>)
  8091. 8003cda: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8092. 8003cde: f003 0301 and.w r3, r3, #1
  8093. 8003ce2: 60fb str r3, [r7, #12]
  8094. 8003ce4: 68fb ldr r3, [r7, #12]
  8095. /**DAC1 GPIO Configuration
  8096. PA4 ------> DAC1_OUT1
  8097. PA5 ------> DAC1_OUT2
  8098. */
  8099. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  8100. 8003ce6: 2330 movs r3, #48 @ 0x30
  8101. 8003ce8: 617b str r3, [r7, #20]
  8102. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  8103. 8003cea: 2303 movs r3, #3
  8104. 8003cec: 61bb str r3, [r7, #24]
  8105. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8106. 8003cee: 2300 movs r3, #0
  8107. 8003cf0: 61fb str r3, [r7, #28]
  8108. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8109. 8003cf2: f107 0314 add.w r3, r7, #20
  8110. 8003cf6: 4619 mov r1, r3
  8111. 8003cf8: 4809 ldr r0, [pc, #36] @ (8003d20 <HAL_DAC_MspInit+0x98>)
  8112. 8003cfa: f007 f899 bl 800ae30 <HAL_GPIO_Init>
  8113. /* DAC1 interrupt Init */
  8114. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 5, 0);
  8115. 8003cfe: 2200 movs r2, #0
  8116. 8003d00: 2105 movs r1, #5
  8117. 8003d02: 2036 movs r0, #54 @ 0x36
  8118. 8003d04: f003 fd62 bl 80077cc <HAL_NVIC_SetPriority>
  8119. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8120. 8003d08: 2036 movs r0, #54 @ 0x36
  8121. 8003d0a: f003 fd79 bl 8007800 <HAL_NVIC_EnableIRQ>
  8122. /* USER CODE BEGIN DAC1_MspInit 1 */
  8123. /* USER CODE END DAC1_MspInit 1 */
  8124. }
  8125. }
  8126. 8003d0e: bf00 nop
  8127. 8003d10: 3728 adds r7, #40 @ 0x28
  8128. 8003d12: 46bd mov sp, r7
  8129. 8003d14: bd80 pop {r7, pc}
  8130. 8003d16: bf00 nop
  8131. 8003d18: 40007400 .word 0x40007400
  8132. 8003d1c: 58024400 .word 0x58024400
  8133. 8003d20: 58020000 .word 0x58020000
  8134. 08003d24 <HAL_RNG_MspInit>:
  8135. * This function configures the hardware resources used in this example
  8136. * @param hrng: RNG handle pointer
  8137. * @retval None
  8138. */
  8139. void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng)
  8140. {
  8141. 8003d24: b580 push {r7, lr}
  8142. 8003d26: b0b4 sub sp, #208 @ 0xd0
  8143. 8003d28: af00 add r7, sp, #0
  8144. 8003d2a: 6078 str r0, [r7, #4]
  8145. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8146. 8003d2c: f107 0310 add.w r3, r7, #16
  8147. 8003d30: 22c0 movs r2, #192 @ 0xc0
  8148. 8003d32: 2100 movs r1, #0
  8149. 8003d34: 4618 mov r0, r3
  8150. 8003d36: f014 fb97 bl 8018468 <memset>
  8151. if(hrng->Instance==RNG)
  8152. 8003d3a: 687b ldr r3, [r7, #4]
  8153. 8003d3c: 681b ldr r3, [r3, #0]
  8154. 8003d3e: 4a14 ldr r2, [pc, #80] @ (8003d90 <HAL_RNG_MspInit+0x6c>)
  8155. 8003d40: 4293 cmp r3, r2
  8156. 8003d42: d121 bne.n 8003d88 <HAL_RNG_MspInit+0x64>
  8157. /* USER CODE END RNG_MspInit 0 */
  8158. /** Initializes the peripherals clock
  8159. */
  8160. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_RNG;
  8161. 8003d44: f44f 3200 mov.w r2, #131072 @ 0x20000
  8162. 8003d48: f04f 0300 mov.w r3, #0
  8163. 8003d4c: e9c7 2304 strd r2, r3, [r7, #16]
  8164. PeriphClkInitStruct.RngClockSelection = RCC_RNGCLKSOURCE_HSI48;
  8165. 8003d50: 2300 movs r3, #0
  8166. 8003d52: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8167. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8168. 8003d56: f107 0310 add.w r3, r7, #16
  8169. 8003d5a: 4618 mov r0, r3
  8170. 8003d5c: f008 fc4e bl 800c5fc <HAL_RCCEx_PeriphCLKConfig>
  8171. 8003d60: 4603 mov r3, r0
  8172. 8003d62: 2b00 cmp r3, #0
  8173. 8003d64: d001 beq.n 8003d6a <HAL_RNG_MspInit+0x46>
  8174. {
  8175. Error_Handler();
  8176. 8003d66: f7fd ff11 bl 8001b8c <Error_Handler>
  8177. }
  8178. /* Peripheral clock enable */
  8179. __HAL_RCC_RNG_CLK_ENABLE();
  8180. 8003d6a: 4b0a ldr r3, [pc, #40] @ (8003d94 <HAL_RNG_MspInit+0x70>)
  8181. 8003d6c: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8182. 8003d70: 4a08 ldr r2, [pc, #32] @ (8003d94 <HAL_RNG_MspInit+0x70>)
  8183. 8003d72: f043 0340 orr.w r3, r3, #64 @ 0x40
  8184. 8003d76: f8c2 30dc str.w r3, [r2, #220] @ 0xdc
  8185. 8003d7a: 4b06 ldr r3, [pc, #24] @ (8003d94 <HAL_RNG_MspInit+0x70>)
  8186. 8003d7c: f8d3 30dc ldr.w r3, [r3, #220] @ 0xdc
  8187. 8003d80: f003 0340 and.w r3, r3, #64 @ 0x40
  8188. 8003d84: 60fb str r3, [r7, #12]
  8189. 8003d86: 68fb ldr r3, [r7, #12]
  8190. /* USER CODE BEGIN RNG_MspInit 1 */
  8191. /* USER CODE END RNG_MspInit 1 */
  8192. }
  8193. }
  8194. 8003d88: bf00 nop
  8195. 8003d8a: 37d0 adds r7, #208 @ 0xd0
  8196. 8003d8c: 46bd mov sp, r7
  8197. 8003d8e: bd80 pop {r7, pc}
  8198. 8003d90: 48021800 .word 0x48021800
  8199. 8003d94: 58024400 .word 0x58024400
  8200. 08003d98 <HAL_TIM_PWM_MspInit>:
  8201. * This function configures the hardware resources used in this example
  8202. * @param htim_pwm: TIM_PWM handle pointer
  8203. * @retval None
  8204. */
  8205. void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef* htim_pwm)
  8206. {
  8207. 8003d98: b480 push {r7}
  8208. 8003d9a: b085 sub sp, #20
  8209. 8003d9c: af00 add r7, sp, #0
  8210. 8003d9e: 6078 str r0, [r7, #4]
  8211. if(htim_pwm->Instance==TIM1)
  8212. 8003da0: 687b ldr r3, [r7, #4]
  8213. 8003da2: 681b ldr r3, [r3, #0]
  8214. 8003da4: 4a16 ldr r2, [pc, #88] @ (8003e00 <HAL_TIM_PWM_MspInit+0x68>)
  8215. 8003da6: 4293 cmp r3, r2
  8216. 8003da8: d10f bne.n 8003dca <HAL_TIM_PWM_MspInit+0x32>
  8217. {
  8218. /* USER CODE BEGIN TIM1_MspInit 0 */
  8219. /* USER CODE END TIM1_MspInit 0 */
  8220. /* Peripheral clock enable */
  8221. __HAL_RCC_TIM1_CLK_ENABLE();
  8222. 8003daa: 4b16 ldr r3, [pc, #88] @ (8003e04 <HAL_TIM_PWM_MspInit+0x6c>)
  8223. 8003dac: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8224. 8003db0: 4a14 ldr r2, [pc, #80] @ (8003e04 <HAL_TIM_PWM_MspInit+0x6c>)
  8225. 8003db2: f043 0301 orr.w r3, r3, #1
  8226. 8003db6: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8227. 8003dba: 4b12 ldr r3, [pc, #72] @ (8003e04 <HAL_TIM_PWM_MspInit+0x6c>)
  8228. 8003dbc: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8229. 8003dc0: f003 0301 and.w r3, r3, #1
  8230. 8003dc4: 60fb str r3, [r7, #12]
  8231. 8003dc6: 68fb ldr r3, [r7, #12]
  8232. /* USER CODE BEGIN TIM3_MspInit 1 */
  8233. /* USER CODE END TIM3_MspInit 1 */
  8234. }
  8235. }
  8236. 8003dc8: e013 b.n 8003df2 <HAL_TIM_PWM_MspInit+0x5a>
  8237. else if(htim_pwm->Instance==TIM3)
  8238. 8003dca: 687b ldr r3, [r7, #4]
  8239. 8003dcc: 681b ldr r3, [r3, #0]
  8240. 8003dce: 4a0e ldr r2, [pc, #56] @ (8003e08 <HAL_TIM_PWM_MspInit+0x70>)
  8241. 8003dd0: 4293 cmp r3, r2
  8242. 8003dd2: d10e bne.n 8003df2 <HAL_TIM_PWM_MspInit+0x5a>
  8243. __HAL_RCC_TIM3_CLK_ENABLE();
  8244. 8003dd4: 4b0b ldr r3, [pc, #44] @ (8003e04 <HAL_TIM_PWM_MspInit+0x6c>)
  8245. 8003dd6: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8246. 8003dda: 4a0a ldr r2, [pc, #40] @ (8003e04 <HAL_TIM_PWM_MspInit+0x6c>)
  8247. 8003ddc: f043 0302 orr.w r3, r3, #2
  8248. 8003de0: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8249. 8003de4: 4b07 ldr r3, [pc, #28] @ (8003e04 <HAL_TIM_PWM_MspInit+0x6c>)
  8250. 8003de6: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8251. 8003dea: f003 0302 and.w r3, r3, #2
  8252. 8003dee: 60bb str r3, [r7, #8]
  8253. 8003df0: 68bb ldr r3, [r7, #8]
  8254. }
  8255. 8003df2: bf00 nop
  8256. 8003df4: 3714 adds r7, #20
  8257. 8003df6: 46bd mov sp, r7
  8258. 8003df8: f85d 7b04 ldr.w r7, [sp], #4
  8259. 8003dfc: 4770 bx lr
  8260. 8003dfe: bf00 nop
  8261. 8003e00: 40010000 .word 0x40010000
  8262. 8003e04: 58024400 .word 0x58024400
  8263. 8003e08: 40000400 .word 0x40000400
  8264. 08003e0c <HAL_TIM_Base_MspInit>:
  8265. * This function configures the hardware resources used in this example
  8266. * @param htim_base: TIM_Base handle pointer
  8267. * @retval None
  8268. */
  8269. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  8270. {
  8271. 8003e0c: b480 push {r7}
  8272. 8003e0e: b085 sub sp, #20
  8273. 8003e10: af00 add r7, sp, #0
  8274. 8003e12: 6078 str r0, [r7, #4]
  8275. if(htim_base->Instance==TIM8)
  8276. 8003e14: 687b ldr r3, [r7, #4]
  8277. 8003e16: 681b ldr r3, [r3, #0]
  8278. 8003e18: 4a0b ldr r2, [pc, #44] @ (8003e48 <HAL_TIM_Base_MspInit+0x3c>)
  8279. 8003e1a: 4293 cmp r3, r2
  8280. 8003e1c: d10e bne.n 8003e3c <HAL_TIM_Base_MspInit+0x30>
  8281. {
  8282. /* USER CODE BEGIN TIM8_MspInit 0 */
  8283. /* USER CODE END TIM8_MspInit 0 */
  8284. /* Peripheral clock enable */
  8285. __HAL_RCC_TIM8_CLK_ENABLE();
  8286. 8003e1e: 4b0b ldr r3, [pc, #44] @ (8003e4c <HAL_TIM_Base_MspInit+0x40>)
  8287. 8003e20: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8288. 8003e24: 4a09 ldr r2, [pc, #36] @ (8003e4c <HAL_TIM_Base_MspInit+0x40>)
  8289. 8003e26: f043 0302 orr.w r3, r3, #2
  8290. 8003e2a: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8291. 8003e2e: 4b07 ldr r3, [pc, #28] @ (8003e4c <HAL_TIM_Base_MspInit+0x40>)
  8292. 8003e30: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8293. 8003e34: f003 0302 and.w r3, r3, #2
  8294. 8003e38: 60fb str r3, [r7, #12]
  8295. 8003e3a: 68fb ldr r3, [r7, #12]
  8296. /* USER CODE BEGIN TIM8_MspInit 1 */
  8297. /* USER CODE END TIM8_MspInit 1 */
  8298. }
  8299. }
  8300. 8003e3c: bf00 nop
  8301. 8003e3e: 3714 adds r7, #20
  8302. 8003e40: 46bd mov sp, r7
  8303. 8003e42: f85d 7b04 ldr.w r7, [sp], #4
  8304. 8003e46: 4770 bx lr
  8305. 8003e48: 40010400 .word 0x40010400
  8306. 8003e4c: 58024400 .word 0x58024400
  8307. 08003e50 <HAL_TIM_MspPostInit>:
  8308. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  8309. {
  8310. 8003e50: b580 push {r7, lr}
  8311. 8003e52: b08a sub sp, #40 @ 0x28
  8312. 8003e54: af00 add r7, sp, #0
  8313. 8003e56: 6078 str r0, [r7, #4]
  8314. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8315. 8003e58: f107 0314 add.w r3, r7, #20
  8316. 8003e5c: 2200 movs r2, #0
  8317. 8003e5e: 601a str r2, [r3, #0]
  8318. 8003e60: 605a str r2, [r3, #4]
  8319. 8003e62: 609a str r2, [r3, #8]
  8320. 8003e64: 60da str r2, [r3, #12]
  8321. 8003e66: 611a str r2, [r3, #16]
  8322. if(htim->Instance==TIM1)
  8323. 8003e68: 687b ldr r3, [r7, #4]
  8324. 8003e6a: 681b ldr r3, [r3, #0]
  8325. 8003e6c: 4a26 ldr r2, [pc, #152] @ (8003f08 <HAL_TIM_MspPostInit+0xb8>)
  8326. 8003e6e: 4293 cmp r3, r2
  8327. 8003e70: d120 bne.n 8003eb4 <HAL_TIM_MspPostInit+0x64>
  8328. {
  8329. /* USER CODE BEGIN TIM1_MspPostInit 0 */
  8330. /* USER CODE END TIM1_MspPostInit 0 */
  8331. __HAL_RCC_GPIOA_CLK_ENABLE();
  8332. 8003e72: 4b26 ldr r3, [pc, #152] @ (8003f0c <HAL_TIM_MspPostInit+0xbc>)
  8333. 8003e74: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8334. 8003e78: 4a24 ldr r2, [pc, #144] @ (8003f0c <HAL_TIM_MspPostInit+0xbc>)
  8335. 8003e7a: f043 0301 orr.w r3, r3, #1
  8336. 8003e7e: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8337. 8003e82: 4b22 ldr r3, [pc, #136] @ (8003f0c <HAL_TIM_MspPostInit+0xbc>)
  8338. 8003e84: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8339. 8003e88: f003 0301 and.w r3, r3, #1
  8340. 8003e8c: 613b str r3, [r7, #16]
  8341. 8003e8e: 693b ldr r3, [r7, #16]
  8342. /**TIM1 GPIO Configuration
  8343. PA9 ------> TIM1_CH2
  8344. */
  8345. GPIO_InitStruct.Pin = GPIO_PIN_9;
  8346. 8003e90: f44f 7300 mov.w r3, #512 @ 0x200
  8347. 8003e94: 617b str r3, [r7, #20]
  8348. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8349. 8003e96: 2302 movs r3, #2
  8350. 8003e98: 61bb str r3, [r7, #24]
  8351. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8352. 8003e9a: 2300 movs r3, #0
  8353. 8003e9c: 61fb str r3, [r7, #28]
  8354. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8355. 8003e9e: 2300 movs r3, #0
  8356. 8003ea0: 623b str r3, [r7, #32]
  8357. GPIO_InitStruct.Alternate = GPIO_AF1_TIM1;
  8358. 8003ea2: 2301 movs r3, #1
  8359. 8003ea4: 627b str r3, [r7, #36] @ 0x24
  8360. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  8361. 8003ea6: f107 0314 add.w r3, r7, #20
  8362. 8003eaa: 4619 mov r1, r3
  8363. 8003eac: 4818 ldr r0, [pc, #96] @ (8003f10 <HAL_TIM_MspPostInit+0xc0>)
  8364. 8003eae: f006 ffbf bl 800ae30 <HAL_GPIO_Init>
  8365. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  8366. /* USER CODE END TIM3_MspPostInit 1 */
  8367. }
  8368. }
  8369. 8003eb2: e024 b.n 8003efe <HAL_TIM_MspPostInit+0xae>
  8370. else if(htim->Instance==TIM3)
  8371. 8003eb4: 687b ldr r3, [r7, #4]
  8372. 8003eb6: 681b ldr r3, [r3, #0]
  8373. 8003eb8: 4a16 ldr r2, [pc, #88] @ (8003f14 <HAL_TIM_MspPostInit+0xc4>)
  8374. 8003eba: 4293 cmp r3, r2
  8375. 8003ebc: d11f bne.n 8003efe <HAL_TIM_MspPostInit+0xae>
  8376. __HAL_RCC_GPIOC_CLK_ENABLE();
  8377. 8003ebe: 4b13 ldr r3, [pc, #76] @ (8003f0c <HAL_TIM_MspPostInit+0xbc>)
  8378. 8003ec0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8379. 8003ec4: 4a11 ldr r2, [pc, #68] @ (8003f0c <HAL_TIM_MspPostInit+0xbc>)
  8380. 8003ec6: f043 0304 orr.w r3, r3, #4
  8381. 8003eca: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8382. 8003ece: 4b0f ldr r3, [pc, #60] @ (8003f0c <HAL_TIM_MspPostInit+0xbc>)
  8383. 8003ed0: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8384. 8003ed4: f003 0304 and.w r3, r3, #4
  8385. 8003ed8: 60fb str r3, [r7, #12]
  8386. 8003eda: 68fb ldr r3, [r7, #12]
  8387. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9;
  8388. 8003edc: f44f 7370 mov.w r3, #960 @ 0x3c0
  8389. 8003ee0: 617b str r3, [r7, #20]
  8390. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8391. 8003ee2: 2302 movs r3, #2
  8392. 8003ee4: 61bb str r3, [r7, #24]
  8393. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8394. 8003ee6: 2300 movs r3, #0
  8395. 8003ee8: 61fb str r3, [r7, #28]
  8396. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
  8397. 8003eea: 2301 movs r3, #1
  8398. 8003eec: 623b str r3, [r7, #32]
  8399. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  8400. 8003eee: 2302 movs r3, #2
  8401. 8003ef0: 627b str r3, [r7, #36] @ 0x24
  8402. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  8403. 8003ef2: f107 0314 add.w r3, r7, #20
  8404. 8003ef6: 4619 mov r1, r3
  8405. 8003ef8: 4807 ldr r0, [pc, #28] @ (8003f18 <HAL_TIM_MspPostInit+0xc8>)
  8406. 8003efa: f006 ff99 bl 800ae30 <HAL_GPIO_Init>
  8407. }
  8408. 8003efe: bf00 nop
  8409. 8003f00: 3728 adds r7, #40 @ 0x28
  8410. 8003f02: 46bd mov sp, r7
  8411. 8003f04: bd80 pop {r7, pc}
  8412. 8003f06: bf00 nop
  8413. 8003f08: 40010000 .word 0x40010000
  8414. 8003f0c: 58024400 .word 0x58024400
  8415. 8003f10: 58020000 .word 0x58020000
  8416. 8003f14: 40000400 .word 0x40000400
  8417. 8003f18: 58020800 .word 0x58020800
  8418. 08003f1c <HAL_UART_MspInit>:
  8419. * This function configures the hardware resources used in this example
  8420. * @param huart: UART handle pointer
  8421. * @retval None
  8422. */
  8423. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  8424. {
  8425. 8003f1c: b580 push {r7, lr}
  8426. 8003f1e: b0bc sub sp, #240 @ 0xf0
  8427. 8003f20: af00 add r7, sp, #0
  8428. 8003f22: 6078 str r0, [r7, #4]
  8429. GPIO_InitTypeDef GPIO_InitStruct = {0};
  8430. 8003f24: f107 03dc add.w r3, r7, #220 @ 0xdc
  8431. 8003f28: 2200 movs r2, #0
  8432. 8003f2a: 601a str r2, [r3, #0]
  8433. 8003f2c: 605a str r2, [r3, #4]
  8434. 8003f2e: 609a str r2, [r3, #8]
  8435. 8003f30: 60da str r2, [r3, #12]
  8436. 8003f32: 611a str r2, [r3, #16]
  8437. RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
  8438. 8003f34: f107 0318 add.w r3, r7, #24
  8439. 8003f38: 22c0 movs r2, #192 @ 0xc0
  8440. 8003f3a: 2100 movs r1, #0
  8441. 8003f3c: 4618 mov r0, r3
  8442. 8003f3e: f014 fa93 bl 8018468 <memset>
  8443. if(huart->Instance==UART8)
  8444. 8003f42: 687b ldr r3, [r7, #4]
  8445. 8003f44: 681b ldr r3, [r3, #0]
  8446. 8003f46: 4a55 ldr r2, [pc, #340] @ (800409c <HAL_UART_MspInit+0x180>)
  8447. 8003f48: 4293 cmp r3, r2
  8448. 8003f4a: d14e bne.n 8003fea <HAL_UART_MspInit+0xce>
  8449. /* USER CODE END UART8_MspInit 0 */
  8450. /** Initializes the peripherals clock
  8451. */
  8452. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_UART8;
  8453. 8003f4c: f04f 0202 mov.w r2, #2
  8454. 8003f50: f04f 0300 mov.w r3, #0
  8455. 8003f54: e9c7 2306 strd r2, r3, [r7, #24]
  8456. PeriphClkInitStruct.Usart234578ClockSelection = RCC_USART234578CLKSOURCE_D2PCLK1;
  8457. 8003f58: 2300 movs r3, #0
  8458. 8003f5a: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  8459. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8460. 8003f5e: f107 0318 add.w r3, r7, #24
  8461. 8003f62: 4618 mov r0, r3
  8462. 8003f64: f008 fb4a bl 800c5fc <HAL_RCCEx_PeriphCLKConfig>
  8463. 8003f68: 4603 mov r3, r0
  8464. 8003f6a: 2b00 cmp r3, #0
  8465. 8003f6c: d001 beq.n 8003f72 <HAL_UART_MspInit+0x56>
  8466. {
  8467. Error_Handler();
  8468. 8003f6e: f7fd fe0d bl 8001b8c <Error_Handler>
  8469. }
  8470. /* Peripheral clock enable */
  8471. __HAL_RCC_UART8_CLK_ENABLE();
  8472. 8003f72: 4b4b ldr r3, [pc, #300] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8473. 8003f74: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8474. 8003f78: 4a49 ldr r2, [pc, #292] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8475. 8003f7a: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
  8476. 8003f7e: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8477. 8003f82: 4b47 ldr r3, [pc, #284] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8478. 8003f84: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8479. 8003f88: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  8480. 8003f8c: 617b str r3, [r7, #20]
  8481. 8003f8e: 697b ldr r3, [r7, #20]
  8482. __HAL_RCC_GPIOE_CLK_ENABLE();
  8483. 8003f90: 4b43 ldr r3, [pc, #268] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8484. 8003f92: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8485. 8003f96: 4a42 ldr r2, [pc, #264] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8486. 8003f98: f043 0310 orr.w r3, r3, #16
  8487. 8003f9c: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8488. 8003fa0: 4b3f ldr r3, [pc, #252] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8489. 8003fa2: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8490. 8003fa6: f003 0310 and.w r3, r3, #16
  8491. 8003faa: 613b str r3, [r7, #16]
  8492. 8003fac: 693b ldr r3, [r7, #16]
  8493. /**UART8 GPIO Configuration
  8494. PE0 ------> UART8_RX
  8495. PE1 ------> UART8_TX
  8496. */
  8497. GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1;
  8498. 8003fae: 2303 movs r3, #3
  8499. 8003fb0: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8500. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8501. 8003fb4: 2302 movs r3, #2
  8502. 8003fb6: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8503. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8504. 8003fba: 2300 movs r3, #0
  8505. 8003fbc: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8506. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8507. 8003fc0: 2300 movs r3, #0
  8508. 8003fc2: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8509. GPIO_InitStruct.Alternate = GPIO_AF8_UART8;
  8510. 8003fc6: 2308 movs r3, #8
  8511. 8003fc8: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8512. HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
  8513. 8003fcc: f107 03dc add.w r3, r7, #220 @ 0xdc
  8514. 8003fd0: 4619 mov r1, r3
  8515. 8003fd2: 4834 ldr r0, [pc, #208] @ (80040a4 <HAL_UART_MspInit+0x188>)
  8516. 8003fd4: f006 ff2c bl 800ae30 <HAL_GPIO_Init>
  8517. /* UART8 interrupt Init */
  8518. HAL_NVIC_SetPriority(UART8_IRQn, 5, 0);
  8519. 8003fd8: 2200 movs r2, #0
  8520. 8003fda: 2105 movs r1, #5
  8521. 8003fdc: 2053 movs r0, #83 @ 0x53
  8522. 8003fde: f003 fbf5 bl 80077cc <HAL_NVIC_SetPriority>
  8523. HAL_NVIC_EnableIRQ(UART8_IRQn);
  8524. 8003fe2: 2053 movs r0, #83 @ 0x53
  8525. 8003fe4: f003 fc0c bl 8007800 <HAL_NVIC_EnableIRQ>
  8526. /* USER CODE BEGIN USART1_MspInit 1 */
  8527. /* USER CODE END USART1_MspInit 1 */
  8528. }
  8529. }
  8530. 8003fe8: e053 b.n 8004092 <HAL_UART_MspInit+0x176>
  8531. else if(huart->Instance==USART1)
  8532. 8003fea: 687b ldr r3, [r7, #4]
  8533. 8003fec: 681b ldr r3, [r3, #0]
  8534. 8003fee: 4a2e ldr r2, [pc, #184] @ (80040a8 <HAL_UART_MspInit+0x18c>)
  8535. 8003ff0: 4293 cmp r3, r2
  8536. 8003ff2: d14e bne.n 8004092 <HAL_UART_MspInit+0x176>
  8537. PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART1;
  8538. 8003ff4: f04f 0201 mov.w r2, #1
  8539. 8003ff8: f04f 0300 mov.w r3, #0
  8540. 8003ffc: e9c7 2306 strd r2, r3, [r7, #24]
  8541. PeriphClkInitStruct.Usart16ClockSelection = RCC_USART16CLKSOURCE_D2PCLK2;
  8542. 8004000: 2300 movs r3, #0
  8543. 8004002: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  8544. if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
  8545. 8004006: f107 0318 add.w r3, r7, #24
  8546. 800400a: 4618 mov r0, r3
  8547. 800400c: f008 faf6 bl 800c5fc <HAL_RCCEx_PeriphCLKConfig>
  8548. 8004010: 4603 mov r3, r0
  8549. 8004012: 2b00 cmp r3, #0
  8550. 8004014: d001 beq.n 800401a <HAL_UART_MspInit+0xfe>
  8551. Error_Handler();
  8552. 8004016: f7fd fdb9 bl 8001b8c <Error_Handler>
  8553. __HAL_RCC_USART1_CLK_ENABLE();
  8554. 800401a: 4b21 ldr r3, [pc, #132] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8555. 800401c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8556. 8004020: 4a1f ldr r2, [pc, #124] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8557. 8004022: f043 0310 orr.w r3, r3, #16
  8558. 8004026: f8c2 30f0 str.w r3, [r2, #240] @ 0xf0
  8559. 800402a: 4b1d ldr r3, [pc, #116] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8560. 800402c: f8d3 30f0 ldr.w r3, [r3, #240] @ 0xf0
  8561. 8004030: f003 0310 and.w r3, r3, #16
  8562. 8004034: 60fb str r3, [r7, #12]
  8563. 8004036: 68fb ldr r3, [r7, #12]
  8564. __HAL_RCC_GPIOB_CLK_ENABLE();
  8565. 8004038: 4b19 ldr r3, [pc, #100] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8566. 800403a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8567. 800403e: 4a18 ldr r2, [pc, #96] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8568. 8004040: f043 0302 orr.w r3, r3, #2
  8569. 8004044: f8c2 30e0 str.w r3, [r2, #224] @ 0xe0
  8570. 8004048: 4b15 ldr r3, [pc, #84] @ (80040a0 <HAL_UART_MspInit+0x184>)
  8571. 800404a: f8d3 30e0 ldr.w r3, [r3, #224] @ 0xe0
  8572. 800404e: f003 0302 and.w r3, r3, #2
  8573. 8004052: 60bb str r3, [r7, #8]
  8574. 8004054: 68bb ldr r3, [r7, #8]
  8575. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  8576. 8004056: f44f 4340 mov.w r3, #49152 @ 0xc000
  8577. 800405a: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  8578. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  8579. 800405e: 2302 movs r3, #2
  8580. 8004060: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  8581. GPIO_InitStruct.Pull = GPIO_NOPULL;
  8582. 8004064: 2300 movs r3, #0
  8583. 8004066: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  8584. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  8585. 800406a: 2300 movs r3, #0
  8586. 800406c: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  8587. GPIO_InitStruct.Alternate = GPIO_AF4_USART1;
  8588. 8004070: 2304 movs r3, #4
  8589. 8004072: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  8590. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  8591. 8004076: f107 03dc add.w r3, r7, #220 @ 0xdc
  8592. 800407a: 4619 mov r1, r3
  8593. 800407c: 480b ldr r0, [pc, #44] @ (80040ac <HAL_UART_MspInit+0x190>)
  8594. 800407e: f006 fed7 bl 800ae30 <HAL_GPIO_Init>
  8595. HAL_NVIC_SetPriority(USART1_IRQn, 5, 0);
  8596. 8004082: 2200 movs r2, #0
  8597. 8004084: 2105 movs r1, #5
  8598. 8004086: 2025 movs r0, #37 @ 0x25
  8599. 8004088: f003 fba0 bl 80077cc <HAL_NVIC_SetPriority>
  8600. HAL_NVIC_EnableIRQ(USART1_IRQn);
  8601. 800408c: 2025 movs r0, #37 @ 0x25
  8602. 800408e: f003 fbb7 bl 8007800 <HAL_NVIC_EnableIRQ>
  8603. }
  8604. 8004092: bf00 nop
  8605. 8004094: 37f0 adds r7, #240 @ 0xf0
  8606. 8004096: 46bd mov sp, r7
  8607. 8004098: bd80 pop {r7, pc}
  8608. 800409a: bf00 nop
  8609. 800409c: 40007c00 .word 0x40007c00
  8610. 80040a0: 58024400 .word 0x58024400
  8611. 80040a4: 58021000 .word 0x58021000
  8612. 80040a8: 40011000 .word 0x40011000
  8613. 80040ac: 58020400 .word 0x58020400
  8614. 080040b0 <HAL_InitTick>:
  8615. * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
  8616. * @param TickPriority: Tick interrupt priority.
  8617. * @retval HAL status
  8618. */
  8619. HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  8620. {
  8621. 80040b0: b580 push {r7, lr}
  8622. 80040b2: b090 sub sp, #64 @ 0x40
  8623. 80040b4: af00 add r7, sp, #0
  8624. 80040b6: 6078 str r0, [r7, #4]
  8625. uint32_t uwTimclock, uwAPB1Prescaler;
  8626. uint32_t uwPrescalerValue;
  8627. uint32_t pFLatency;
  8628. /*Configure the TIM6 IRQ priority */
  8629. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  8630. 80040b8: 687b ldr r3, [r7, #4]
  8631. 80040ba: 2b0f cmp r3, #15
  8632. 80040bc: d827 bhi.n 800410e <HAL_InitTick+0x5e>
  8633. {
  8634. HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0U);
  8635. 80040be: 2200 movs r2, #0
  8636. 80040c0: 6879 ldr r1, [r7, #4]
  8637. 80040c2: 2036 movs r0, #54 @ 0x36
  8638. 80040c4: f003 fb82 bl 80077cc <HAL_NVIC_SetPriority>
  8639. /* Enable the TIM6 global Interrupt */
  8640. HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
  8641. 80040c8: 2036 movs r0, #54 @ 0x36
  8642. 80040ca: f003 fb99 bl 8007800 <HAL_NVIC_EnableIRQ>
  8643. uwTickPrio = TickPriority;
  8644. 80040ce: 4a29 ldr r2, [pc, #164] @ (8004174 <HAL_InitTick+0xc4>)
  8645. 80040d0: 687b ldr r3, [r7, #4]
  8646. 80040d2: 6013 str r3, [r2, #0]
  8647. {
  8648. return HAL_ERROR;
  8649. }
  8650. /* Enable TIM6 clock */
  8651. __HAL_RCC_TIM6_CLK_ENABLE();
  8652. 80040d4: 4b28 ldr r3, [pc, #160] @ (8004178 <HAL_InitTick+0xc8>)
  8653. 80040d6: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8654. 80040da: 4a27 ldr r2, [pc, #156] @ (8004178 <HAL_InitTick+0xc8>)
  8655. 80040dc: f043 0310 orr.w r3, r3, #16
  8656. 80040e0: f8c2 30e8 str.w r3, [r2, #232] @ 0xe8
  8657. 80040e4: 4b24 ldr r3, [pc, #144] @ (8004178 <HAL_InitTick+0xc8>)
  8658. 80040e6: f8d3 30e8 ldr.w r3, [r3, #232] @ 0xe8
  8659. 80040ea: f003 0310 and.w r3, r3, #16
  8660. 80040ee: 60fb str r3, [r7, #12]
  8661. 80040f0: 68fb ldr r3, [r7, #12]
  8662. /* Get clock configuration */
  8663. HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
  8664. 80040f2: f107 0210 add.w r2, r7, #16
  8665. 80040f6: f107 0314 add.w r3, r7, #20
  8666. 80040fa: 4611 mov r1, r2
  8667. 80040fc: 4618 mov r0, r3
  8668. 80040fe: f008 fa3b bl 800c578 <HAL_RCC_GetClockConfig>
  8669. /* Get APB1 prescaler */
  8670. uwAPB1Prescaler = clkconfig.APB1CLKDivider;
  8671. 8004102: 6abb ldr r3, [r7, #40] @ 0x28
  8672. 8004104: 63bb str r3, [r7, #56] @ 0x38
  8673. /* Compute TIM6 clock */
  8674. if (uwAPB1Prescaler == RCC_HCLK_DIV1)
  8675. 8004106: 6bbb ldr r3, [r7, #56] @ 0x38
  8676. 8004108: 2b00 cmp r3, #0
  8677. 800410a: d106 bne.n 800411a <HAL_InitTick+0x6a>
  8678. 800410c: e001 b.n 8004112 <HAL_InitTick+0x62>
  8679. return HAL_ERROR;
  8680. 800410e: 2301 movs r3, #1
  8681. 8004110: e02b b.n 800416a <HAL_InitTick+0xba>
  8682. {
  8683. uwTimclock = HAL_RCC_GetPCLK1Freq();
  8684. 8004112: f008 fa05 bl 800c520 <HAL_RCC_GetPCLK1Freq>
  8685. 8004116: 63f8 str r0, [r7, #60] @ 0x3c
  8686. 8004118: e004 b.n 8004124 <HAL_InitTick+0x74>
  8687. }
  8688. else
  8689. {
  8690. uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
  8691. 800411a: f008 fa01 bl 800c520 <HAL_RCC_GetPCLK1Freq>
  8692. 800411e: 4603 mov r3, r0
  8693. 8004120: 005b lsls r3, r3, #1
  8694. 8004122: 63fb str r3, [r7, #60] @ 0x3c
  8695. }
  8696. /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
  8697. uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
  8698. 8004124: 6bfb ldr r3, [r7, #60] @ 0x3c
  8699. 8004126: 4a15 ldr r2, [pc, #84] @ (800417c <HAL_InitTick+0xcc>)
  8700. 8004128: fba2 2303 umull r2, r3, r2, r3
  8701. 800412c: 0c9b lsrs r3, r3, #18
  8702. 800412e: 3b01 subs r3, #1
  8703. 8004130: 637b str r3, [r7, #52] @ 0x34
  8704. /* Initialize TIM6 */
  8705. htim6.Instance = TIM6;
  8706. 8004132: 4b13 ldr r3, [pc, #76] @ (8004180 <HAL_InitTick+0xd0>)
  8707. 8004134: 4a13 ldr r2, [pc, #76] @ (8004184 <HAL_InitTick+0xd4>)
  8708. 8004136: 601a str r2, [r3, #0]
  8709. + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
  8710. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
  8711. + ClockDivision = 0
  8712. + Counter direction = Up
  8713. */
  8714. htim6.Init.Period = (1000000U / 1000U) - 1U;
  8715. 8004138: 4b11 ldr r3, [pc, #68] @ (8004180 <HAL_InitTick+0xd0>)
  8716. 800413a: f240 32e7 movw r2, #999 @ 0x3e7
  8717. 800413e: 60da str r2, [r3, #12]
  8718. htim6.Init.Prescaler = uwPrescalerValue;
  8719. 8004140: 4a0f ldr r2, [pc, #60] @ (8004180 <HAL_InitTick+0xd0>)
  8720. 8004142: 6b7b ldr r3, [r7, #52] @ 0x34
  8721. 8004144: 6053 str r3, [r2, #4]
  8722. htim6.Init.ClockDivision = 0;
  8723. 8004146: 4b0e ldr r3, [pc, #56] @ (8004180 <HAL_InitTick+0xd0>)
  8724. 8004148: 2200 movs r2, #0
  8725. 800414a: 611a str r2, [r3, #16]
  8726. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  8727. 800414c: 4b0c ldr r3, [pc, #48] @ (8004180 <HAL_InitTick+0xd0>)
  8728. 800414e: 2200 movs r2, #0
  8729. 8004150: 609a str r2, [r3, #8]
  8730. if(HAL_TIM_Base_Init(&htim6) == HAL_OK)
  8731. 8004152: 480b ldr r0, [pc, #44] @ (8004180 <HAL_InitTick+0xd0>)
  8732. 8004154: f00a ff96 bl 800f084 <HAL_TIM_Base_Init>
  8733. 8004158: 4603 mov r3, r0
  8734. 800415a: 2b00 cmp r3, #0
  8735. 800415c: d104 bne.n 8004168 <HAL_InitTick+0xb8>
  8736. {
  8737. /* Start the TIM time Base generation in interrupt mode */
  8738. return HAL_TIM_Base_Start_IT(&htim6);
  8739. 800415e: 4808 ldr r0, [pc, #32] @ (8004180 <HAL_InitTick+0xd0>)
  8740. 8004160: f00b f858 bl 800f214 <HAL_TIM_Base_Start_IT>
  8741. 8004164: 4603 mov r3, r0
  8742. 8004166: e000 b.n 800416a <HAL_InitTick+0xba>
  8743. }
  8744. /* Return function status */
  8745. return HAL_ERROR;
  8746. 8004168: 2301 movs r3, #1
  8747. }
  8748. 800416a: 4618 mov r0, r3
  8749. 800416c: 3740 adds r7, #64 @ 0x40
  8750. 800416e: 46bd mov sp, r7
  8751. 8004170: bd80 pop {r7, pc}
  8752. 8004172: bf00 nop
  8753. 8004174: 2400003c .word 0x2400003c
  8754. 8004178: 58024400 .word 0x58024400
  8755. 800417c: 431bde83 .word 0x431bde83
  8756. 8004180: 24000a78 .word 0x24000a78
  8757. 8004184: 40001000 .word 0x40001000
  8758. 08004188 <NMI_Handler>:
  8759. /******************************************************************************/
  8760. /**
  8761. * @brief This function handles Non maskable interrupt.
  8762. */
  8763. void NMI_Handler(void)
  8764. {
  8765. 8004188: b480 push {r7}
  8766. 800418a: af00 add r7, sp, #0
  8767. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  8768. /* USER CODE END NonMaskableInt_IRQn 0 */
  8769. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  8770. while (1)
  8771. 800418c: bf00 nop
  8772. 800418e: e7fd b.n 800418c <NMI_Handler+0x4>
  8773. 08004190 <HardFault_Handler>:
  8774. /**
  8775. * @brief This function handles Hard fault interrupt.
  8776. */
  8777. void HardFault_Handler(void)
  8778. {
  8779. 8004190: b480 push {r7}
  8780. 8004192: af00 add r7, sp, #0
  8781. /* USER CODE BEGIN HardFault_IRQn 0 */
  8782. /* USER CODE END HardFault_IRQn 0 */
  8783. while (1)
  8784. 8004194: bf00 nop
  8785. 8004196: e7fd b.n 8004194 <HardFault_Handler+0x4>
  8786. 08004198 <MemManage_Handler>:
  8787. /**
  8788. * @brief This function handles Memory management fault.
  8789. */
  8790. void MemManage_Handler(void)
  8791. {
  8792. 8004198: b480 push {r7}
  8793. 800419a: af00 add r7, sp, #0
  8794. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  8795. /* USER CODE END MemoryManagement_IRQn 0 */
  8796. while (1)
  8797. 800419c: bf00 nop
  8798. 800419e: e7fd b.n 800419c <MemManage_Handler+0x4>
  8799. 080041a0 <BusFault_Handler>:
  8800. /**
  8801. * @brief This function handles Pre-fetch fault, memory access fault.
  8802. */
  8803. void BusFault_Handler(void)
  8804. {
  8805. 80041a0: b480 push {r7}
  8806. 80041a2: af00 add r7, sp, #0
  8807. /* USER CODE BEGIN BusFault_IRQn 0 */
  8808. /* USER CODE END BusFault_IRQn 0 */
  8809. while (1)
  8810. 80041a4: bf00 nop
  8811. 80041a6: e7fd b.n 80041a4 <BusFault_Handler+0x4>
  8812. 080041a8 <UsageFault_Handler>:
  8813. /**
  8814. * @brief This function handles Undefined instruction or illegal state.
  8815. */
  8816. void UsageFault_Handler(void)
  8817. {
  8818. 80041a8: b480 push {r7}
  8819. 80041aa: af00 add r7, sp, #0
  8820. /* USER CODE BEGIN UsageFault_IRQn 0 */
  8821. /* USER CODE END UsageFault_IRQn 0 */
  8822. while (1)
  8823. 80041ac: bf00 nop
  8824. 80041ae: e7fd b.n 80041ac <UsageFault_Handler+0x4>
  8825. 080041b0 <DebugMon_Handler>:
  8826. /**
  8827. * @brief This function handles Debug monitor.
  8828. */
  8829. void DebugMon_Handler(void)
  8830. {
  8831. 80041b0: b480 push {r7}
  8832. 80041b2: af00 add r7, sp, #0
  8833. /* USER CODE END DebugMonitor_IRQn 0 */
  8834. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  8835. /* USER CODE END DebugMonitor_IRQn 1 */
  8836. }
  8837. 80041b4: bf00 nop
  8838. 80041b6: 46bd mov sp, r7
  8839. 80041b8: f85d 7b04 ldr.w r7, [sp], #4
  8840. 80041bc: 4770 bx lr
  8841. 080041be <RCC_IRQHandler>:
  8842. /**
  8843. * @brief This function handles RCC global interrupt.
  8844. */
  8845. void RCC_IRQHandler(void)
  8846. {
  8847. 80041be: b480 push {r7}
  8848. 80041c0: af00 add r7, sp, #0
  8849. /* USER CODE END RCC_IRQn 0 */
  8850. /* USER CODE BEGIN RCC_IRQn 1 */
  8851. /* USER CODE END RCC_IRQn 1 */
  8852. }
  8853. 80041c2: bf00 nop
  8854. 80041c4: 46bd mov sp, r7
  8855. 80041c6: f85d 7b04 ldr.w r7, [sp], #4
  8856. 80041ca: 4770 bx lr
  8857. 080041cc <DMA1_Stream0_IRQHandler>:
  8858. /**
  8859. * @brief This function handles DMA1 stream0 global interrupt.
  8860. */
  8861. void DMA1_Stream0_IRQHandler(void)
  8862. {
  8863. 80041cc: b580 push {r7, lr}
  8864. 80041ce: af00 add r7, sp, #0
  8865. /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */
  8866. /* USER CODE END DMA1_Stream0_IRQn 0 */
  8867. HAL_DMA_IRQHandler(&hdma_adc1);
  8868. 80041d0: 4802 ldr r0, [pc, #8] @ (80041dc <DMA1_Stream0_IRQHandler+0x10>)
  8869. 80041d2: f005 fb1b bl 800980c <HAL_DMA_IRQHandler>
  8870. /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */
  8871. /* USER CODE END DMA1_Stream0_IRQn 1 */
  8872. }
  8873. 80041d6: bf00 nop
  8874. 80041d8: bd80 pop {r7, pc}
  8875. 80041da: bf00 nop
  8876. 80041dc: 240003ac .word 0x240003ac
  8877. 080041e0 <DMA1_Stream1_IRQHandler>:
  8878. /**
  8879. * @brief This function handles DMA1 stream1 global interrupt.
  8880. */
  8881. void DMA1_Stream1_IRQHandler(void)
  8882. {
  8883. 80041e0: b580 push {r7, lr}
  8884. 80041e2: af00 add r7, sp, #0
  8885. /* USER CODE BEGIN DMA1_Stream1_IRQn 0 */
  8886. /* USER CODE END DMA1_Stream1_IRQn 0 */
  8887. HAL_DMA_IRQHandler(&hdma_adc2);
  8888. 80041e4: 4802 ldr r0, [pc, #8] @ (80041f0 <DMA1_Stream1_IRQHandler+0x10>)
  8889. 80041e6: f005 fb11 bl 800980c <HAL_DMA_IRQHandler>
  8890. /* USER CODE BEGIN DMA1_Stream1_IRQn 1 */
  8891. /* USER CODE END DMA1_Stream1_IRQn 1 */
  8892. }
  8893. 80041ea: bf00 nop
  8894. 80041ec: bd80 pop {r7, pc}
  8895. 80041ee: bf00 nop
  8896. 80041f0: 24000424 .word 0x24000424
  8897. 080041f4 <DMA1_Stream2_IRQHandler>:
  8898. /**
  8899. * @brief This function handles DMA1 stream2 global interrupt.
  8900. */
  8901. void DMA1_Stream2_IRQHandler(void)
  8902. {
  8903. 80041f4: b580 push {r7, lr}
  8904. 80041f6: af00 add r7, sp, #0
  8905. /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */
  8906. /* USER CODE END DMA1_Stream2_IRQn 0 */
  8907. HAL_DMA_IRQHandler(&hdma_adc3);
  8908. 80041f8: 4802 ldr r0, [pc, #8] @ (8004204 <DMA1_Stream2_IRQHandler+0x10>)
  8909. 80041fa: f005 fb07 bl 800980c <HAL_DMA_IRQHandler>
  8910. /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */
  8911. /* USER CODE END DMA1_Stream2_IRQn 1 */
  8912. }
  8913. 80041fe: bf00 nop
  8914. 8004200: bd80 pop {r7, pc}
  8915. 8004202: bf00 nop
  8916. 8004204: 2400049c .word 0x2400049c
  8917. 08004208 <USART1_IRQHandler>:
  8918. /**
  8919. * @brief This function handles USART1 global interrupt.
  8920. */
  8921. void USART1_IRQHandler(void)
  8922. {
  8923. 8004208: b580 push {r7, lr}
  8924. 800420a: af00 add r7, sp, #0
  8925. /* USER CODE BEGIN USART1_IRQn 0 */
  8926. /* USER CODE END USART1_IRQn 0 */
  8927. HAL_UART_IRQHandler(&huart1);
  8928. 800420c: 4802 ldr r0, [pc, #8] @ (8004218 <USART1_IRQHandler+0x10>)
  8929. 800420e: f00c fc39 bl 8010a84 <HAL_UART_IRQHandler>
  8930. /* USER CODE BEGIN USART1_IRQn 1 */
  8931. /* USER CODE END USART1_IRQn 1 */
  8932. }
  8933. 8004212: bf00 nop
  8934. 8004214: bd80 pop {r7, pc}
  8935. 8004216: bf00 nop
  8936. 8004218: 24000714 .word 0x24000714
  8937. 0800421c <EXTI15_10_IRQHandler>:
  8938. /**
  8939. * @brief This function handles EXTI line[15:10] interrupts.
  8940. */
  8941. void EXTI15_10_IRQHandler(void)
  8942. {
  8943. 800421c: b580 push {r7, lr}
  8944. 800421e: af00 add r7, sp, #0
  8945. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  8946. /* USER CODE END EXTI15_10_IRQn 0 */
  8947. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_10);
  8948. 8004220: f44f 6080 mov.w r0, #1024 @ 0x400
  8949. 8004224: f006 ffff bl 800b226 <HAL_GPIO_EXTI_IRQHandler>
  8950. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
  8951. 8004228: f44f 6000 mov.w r0, #2048 @ 0x800
  8952. 800422c: f006 fffb bl 800b226 <HAL_GPIO_EXTI_IRQHandler>
  8953. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_14);
  8954. 8004230: f44f 4080 mov.w r0, #16384 @ 0x4000
  8955. 8004234: f006 fff7 bl 800b226 <HAL_GPIO_EXTI_IRQHandler>
  8956. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_15);
  8957. 8004238: f44f 4000 mov.w r0, #32768 @ 0x8000
  8958. 800423c: f006 fff3 bl 800b226 <HAL_GPIO_EXTI_IRQHandler>
  8959. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  8960. /* USER CODE END EXTI15_10_IRQn 1 */
  8961. }
  8962. 8004240: bf00 nop
  8963. 8004242: bd80 pop {r7, pc}
  8964. 08004244 <TIM6_DAC_IRQHandler>:
  8965. /**
  8966. * @brief This function handles TIM6 global interrupt, DAC1_CH1 and DAC1_CH2 underrun error interrupts.
  8967. */
  8968. void TIM6_DAC_IRQHandler(void)
  8969. {
  8970. 8004244: b580 push {r7, lr}
  8971. 8004246: af00 add r7, sp, #0
  8972. /* USER CODE BEGIN TIM6_DAC_IRQn 0 */
  8973. /* USER CODE END TIM6_DAC_IRQn 0 */
  8974. if (hdac1.State != HAL_DAC_STATE_RESET) {
  8975. 8004248: 4b06 ldr r3, [pc, #24] @ (8004264 <TIM6_DAC_IRQHandler+0x20>)
  8976. 800424a: 791b ldrb r3, [r3, #4]
  8977. 800424c: b2db uxtb r3, r3
  8978. 800424e: 2b00 cmp r3, #0
  8979. 8004250: d002 beq.n 8004258 <TIM6_DAC_IRQHandler+0x14>
  8980. HAL_DAC_IRQHandler(&hdac1);
  8981. 8004252: 4804 ldr r0, [pc, #16] @ (8004264 <TIM6_DAC_IRQHandler+0x20>)
  8982. 8004254: f003 fdd9 bl 8007e0a <HAL_DAC_IRQHandler>
  8983. }
  8984. HAL_TIM_IRQHandler(&htim6);
  8985. 8004258: 4803 ldr r0, [pc, #12] @ (8004268 <TIM6_DAC_IRQHandler+0x24>)
  8986. 800425a: f00b fa4f bl 800f6fc <HAL_TIM_IRQHandler>
  8987. /* USER CODE BEGIN TIM6_DAC_IRQn 1 */
  8988. /* USER CODE END TIM6_DAC_IRQn 1 */
  8989. }
  8990. 800425e: bf00 nop
  8991. 8004260: bd80 pop {r7, pc}
  8992. 8004262: bf00 nop
  8993. 8004264: 24000564 .word 0x24000564
  8994. 8004268: 24000a78 .word 0x24000a78
  8995. 0800426c <UART8_IRQHandler>:
  8996. /**
  8997. * @brief This function handles UART8 global interrupt.
  8998. */
  8999. void UART8_IRQHandler(void)
  9000. {
  9001. 800426c: b580 push {r7, lr}
  9002. 800426e: af00 add r7, sp, #0
  9003. /* USER CODE BEGIN UART8_IRQn 0 */
  9004. /* USER CODE END UART8_IRQn 0 */
  9005. HAL_UART_IRQHandler(&huart8);
  9006. 8004270: 4802 ldr r0, [pc, #8] @ (800427c <UART8_IRQHandler+0x10>)
  9007. 8004272: f00c fc07 bl 8010a84 <HAL_UART_IRQHandler>
  9008. /* USER CODE BEGIN UART8_IRQn 1 */
  9009. /* USER CODE END UART8_IRQn 1 */
  9010. }
  9011. 8004276: bf00 nop
  9012. 8004278: bd80 pop {r7, pc}
  9013. 800427a: bf00 nop
  9014. 800427c: 24000680 .word 0x24000680
  9015. 08004280 <_getpid>:
  9016. void initialise_monitor_handles()
  9017. {
  9018. }
  9019. int _getpid(void)
  9020. {
  9021. 8004280: b480 push {r7}
  9022. 8004282: af00 add r7, sp, #0
  9023. return 1;
  9024. 8004284: 2301 movs r3, #1
  9025. }
  9026. 8004286: 4618 mov r0, r3
  9027. 8004288: 46bd mov sp, r7
  9028. 800428a: f85d 7b04 ldr.w r7, [sp], #4
  9029. 800428e: 4770 bx lr
  9030. 08004290 <_kill>:
  9031. int _kill(int pid, int sig)
  9032. {
  9033. 8004290: b580 push {r7, lr}
  9034. 8004292: b082 sub sp, #8
  9035. 8004294: af00 add r7, sp, #0
  9036. 8004296: 6078 str r0, [r7, #4]
  9037. 8004298: 6039 str r1, [r7, #0]
  9038. (void)pid;
  9039. (void)sig;
  9040. errno = EINVAL;
  9041. 800429a: f014 f98d bl 80185b8 <__errno>
  9042. 800429e: 4603 mov r3, r0
  9043. 80042a0: 2216 movs r2, #22
  9044. 80042a2: 601a str r2, [r3, #0]
  9045. return -1;
  9046. 80042a4: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9047. }
  9048. 80042a8: 4618 mov r0, r3
  9049. 80042aa: 3708 adds r7, #8
  9050. 80042ac: 46bd mov sp, r7
  9051. 80042ae: bd80 pop {r7, pc}
  9052. 080042b0 <_exit>:
  9053. void _exit (int status)
  9054. {
  9055. 80042b0: b580 push {r7, lr}
  9056. 80042b2: b082 sub sp, #8
  9057. 80042b4: af00 add r7, sp, #0
  9058. 80042b6: 6078 str r0, [r7, #4]
  9059. _kill(status, -1);
  9060. 80042b8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9061. 80042bc: 6878 ldr r0, [r7, #4]
  9062. 80042be: f7ff ffe7 bl 8004290 <_kill>
  9063. while (1) {} /* Make sure we hang here */
  9064. 80042c2: bf00 nop
  9065. 80042c4: e7fd b.n 80042c2 <_exit+0x12>
  9066. 080042c6 <_read>:
  9067. }
  9068. __attribute__((weak)) int _read(int file, char *ptr, int len)
  9069. {
  9070. 80042c6: b580 push {r7, lr}
  9071. 80042c8: b086 sub sp, #24
  9072. 80042ca: af00 add r7, sp, #0
  9073. 80042cc: 60f8 str r0, [r7, #12]
  9074. 80042ce: 60b9 str r1, [r7, #8]
  9075. 80042d0: 607a str r2, [r7, #4]
  9076. (void)file;
  9077. int DataIdx;
  9078. for (DataIdx = 0; DataIdx < len; DataIdx++)
  9079. 80042d2: 2300 movs r3, #0
  9080. 80042d4: 617b str r3, [r7, #20]
  9081. 80042d6: e00a b.n 80042ee <_read+0x28>
  9082. {
  9083. *ptr++ = __io_getchar();
  9084. 80042d8: f3af 8000 nop.w
  9085. 80042dc: 4601 mov r1, r0
  9086. 80042de: 68bb ldr r3, [r7, #8]
  9087. 80042e0: 1c5a adds r2, r3, #1
  9088. 80042e2: 60ba str r2, [r7, #8]
  9089. 80042e4: b2ca uxtb r2, r1
  9090. 80042e6: 701a strb r2, [r3, #0]
  9091. for (DataIdx = 0; DataIdx < len; DataIdx++)
  9092. 80042e8: 697b ldr r3, [r7, #20]
  9093. 80042ea: 3301 adds r3, #1
  9094. 80042ec: 617b str r3, [r7, #20]
  9095. 80042ee: 697a ldr r2, [r7, #20]
  9096. 80042f0: 687b ldr r3, [r7, #4]
  9097. 80042f2: 429a cmp r2, r3
  9098. 80042f4: dbf0 blt.n 80042d8 <_read+0x12>
  9099. }
  9100. return len;
  9101. 80042f6: 687b ldr r3, [r7, #4]
  9102. }
  9103. 80042f8: 4618 mov r0, r3
  9104. 80042fa: 3718 adds r7, #24
  9105. 80042fc: 46bd mov sp, r7
  9106. 80042fe: bd80 pop {r7, pc}
  9107. 08004300 <_write>:
  9108. __attribute__((weak)) int _write(int file, char *ptr, int len)
  9109. {
  9110. 8004300: b580 push {r7, lr}
  9111. 8004302: b086 sub sp, #24
  9112. 8004304: af00 add r7, sp, #0
  9113. 8004306: 60f8 str r0, [r7, #12]
  9114. 8004308: 60b9 str r1, [r7, #8]
  9115. 800430a: 607a str r2, [r7, #4]
  9116. (void)file;
  9117. int DataIdx;
  9118. for (DataIdx = 0; DataIdx < len; DataIdx++)
  9119. 800430c: 2300 movs r3, #0
  9120. 800430e: 617b str r3, [r7, #20]
  9121. 8004310: e009 b.n 8004326 <_write+0x26>
  9122. {
  9123. __io_putchar(*ptr++);
  9124. 8004312: 68bb ldr r3, [r7, #8]
  9125. 8004314: 1c5a adds r2, r3, #1
  9126. 8004316: 60ba str r2, [r7, #8]
  9127. 8004318: 781b ldrb r3, [r3, #0]
  9128. 800431a: 4618 mov r0, r3
  9129. 800431c: f7fc f9f9 bl 8000712 <__io_putchar>
  9130. for (DataIdx = 0; DataIdx < len; DataIdx++)
  9131. 8004320: 697b ldr r3, [r7, #20]
  9132. 8004322: 3301 adds r3, #1
  9133. 8004324: 617b str r3, [r7, #20]
  9134. 8004326: 697a ldr r2, [r7, #20]
  9135. 8004328: 687b ldr r3, [r7, #4]
  9136. 800432a: 429a cmp r2, r3
  9137. 800432c: dbf1 blt.n 8004312 <_write+0x12>
  9138. }
  9139. return len;
  9140. 800432e: 687b ldr r3, [r7, #4]
  9141. }
  9142. 8004330: 4618 mov r0, r3
  9143. 8004332: 3718 adds r7, #24
  9144. 8004334: 46bd mov sp, r7
  9145. 8004336: bd80 pop {r7, pc}
  9146. 08004338 <_close>:
  9147. int _close(int file)
  9148. {
  9149. 8004338: b480 push {r7}
  9150. 800433a: b083 sub sp, #12
  9151. 800433c: af00 add r7, sp, #0
  9152. 800433e: 6078 str r0, [r7, #4]
  9153. (void)file;
  9154. return -1;
  9155. 8004340: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9156. }
  9157. 8004344: 4618 mov r0, r3
  9158. 8004346: 370c adds r7, #12
  9159. 8004348: 46bd mov sp, r7
  9160. 800434a: f85d 7b04 ldr.w r7, [sp], #4
  9161. 800434e: 4770 bx lr
  9162. 08004350 <_fstat>:
  9163. int _fstat(int file, struct stat *st)
  9164. {
  9165. 8004350: b480 push {r7}
  9166. 8004352: b083 sub sp, #12
  9167. 8004354: af00 add r7, sp, #0
  9168. 8004356: 6078 str r0, [r7, #4]
  9169. 8004358: 6039 str r1, [r7, #0]
  9170. (void)file;
  9171. st->st_mode = S_IFCHR;
  9172. 800435a: 683b ldr r3, [r7, #0]
  9173. 800435c: f44f 5200 mov.w r2, #8192 @ 0x2000
  9174. 8004360: 605a str r2, [r3, #4]
  9175. return 0;
  9176. 8004362: 2300 movs r3, #0
  9177. }
  9178. 8004364: 4618 mov r0, r3
  9179. 8004366: 370c adds r7, #12
  9180. 8004368: 46bd mov sp, r7
  9181. 800436a: f85d 7b04 ldr.w r7, [sp], #4
  9182. 800436e: 4770 bx lr
  9183. 08004370 <_isatty>:
  9184. int _isatty(int file)
  9185. {
  9186. 8004370: b480 push {r7}
  9187. 8004372: b083 sub sp, #12
  9188. 8004374: af00 add r7, sp, #0
  9189. 8004376: 6078 str r0, [r7, #4]
  9190. (void)file;
  9191. return 1;
  9192. 8004378: 2301 movs r3, #1
  9193. }
  9194. 800437a: 4618 mov r0, r3
  9195. 800437c: 370c adds r7, #12
  9196. 800437e: 46bd mov sp, r7
  9197. 8004380: f85d 7b04 ldr.w r7, [sp], #4
  9198. 8004384: 4770 bx lr
  9199. 08004386 <_lseek>:
  9200. int _lseek(int file, int ptr, int dir)
  9201. {
  9202. 8004386: b480 push {r7}
  9203. 8004388: b085 sub sp, #20
  9204. 800438a: af00 add r7, sp, #0
  9205. 800438c: 60f8 str r0, [r7, #12]
  9206. 800438e: 60b9 str r1, [r7, #8]
  9207. 8004390: 607a str r2, [r7, #4]
  9208. (void)file;
  9209. (void)ptr;
  9210. (void)dir;
  9211. return 0;
  9212. 8004392: 2300 movs r3, #0
  9213. }
  9214. 8004394: 4618 mov r0, r3
  9215. 8004396: 3714 adds r7, #20
  9216. 8004398: 46bd mov sp, r7
  9217. 800439a: f85d 7b04 ldr.w r7, [sp], #4
  9218. 800439e: 4770 bx lr
  9219. 080043a0 <_sbrk>:
  9220. *
  9221. * @param incr Memory size
  9222. * @return Pointer to allocated memory
  9223. */
  9224. void *_sbrk(ptrdiff_t incr)
  9225. {
  9226. 80043a0: b580 push {r7, lr}
  9227. 80043a2: b086 sub sp, #24
  9228. 80043a4: af00 add r7, sp, #0
  9229. 80043a6: 6078 str r0, [r7, #4]
  9230. extern uint8_t _end; /* Symbol defined in the linker script */
  9231. extern uint8_t _estack; /* Symbol defined in the linker script */
  9232. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  9233. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  9234. 80043a8: 4a14 ldr r2, [pc, #80] @ (80043fc <_sbrk+0x5c>)
  9235. 80043aa: 4b15 ldr r3, [pc, #84] @ (8004400 <_sbrk+0x60>)
  9236. 80043ac: 1ad3 subs r3, r2, r3
  9237. 80043ae: 617b str r3, [r7, #20]
  9238. const uint8_t *max_heap = (uint8_t *)stack_limit;
  9239. 80043b0: 697b ldr r3, [r7, #20]
  9240. 80043b2: 613b str r3, [r7, #16]
  9241. uint8_t *prev_heap_end;
  9242. /* Initialize heap end at first call */
  9243. if (NULL == __sbrk_heap_end)
  9244. 80043b4: 4b13 ldr r3, [pc, #76] @ (8004404 <_sbrk+0x64>)
  9245. 80043b6: 681b ldr r3, [r3, #0]
  9246. 80043b8: 2b00 cmp r3, #0
  9247. 80043ba: d102 bne.n 80043c2 <_sbrk+0x22>
  9248. {
  9249. __sbrk_heap_end = &_end;
  9250. 80043bc: 4b11 ldr r3, [pc, #68] @ (8004404 <_sbrk+0x64>)
  9251. 80043be: 4a12 ldr r2, [pc, #72] @ (8004408 <_sbrk+0x68>)
  9252. 80043c0: 601a str r2, [r3, #0]
  9253. }
  9254. /* Protect heap from growing into the reserved MSP stack */
  9255. if (__sbrk_heap_end + incr > max_heap)
  9256. 80043c2: 4b10 ldr r3, [pc, #64] @ (8004404 <_sbrk+0x64>)
  9257. 80043c4: 681a ldr r2, [r3, #0]
  9258. 80043c6: 687b ldr r3, [r7, #4]
  9259. 80043c8: 4413 add r3, r2
  9260. 80043ca: 693a ldr r2, [r7, #16]
  9261. 80043cc: 429a cmp r2, r3
  9262. 80043ce: d207 bcs.n 80043e0 <_sbrk+0x40>
  9263. {
  9264. errno = ENOMEM;
  9265. 80043d0: f014 f8f2 bl 80185b8 <__errno>
  9266. 80043d4: 4603 mov r3, r0
  9267. 80043d6: 220c movs r2, #12
  9268. 80043d8: 601a str r2, [r3, #0]
  9269. return (void *)-1;
  9270. 80043da: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  9271. 80043de: e009 b.n 80043f4 <_sbrk+0x54>
  9272. }
  9273. prev_heap_end = __sbrk_heap_end;
  9274. 80043e0: 4b08 ldr r3, [pc, #32] @ (8004404 <_sbrk+0x64>)
  9275. 80043e2: 681b ldr r3, [r3, #0]
  9276. 80043e4: 60fb str r3, [r7, #12]
  9277. __sbrk_heap_end += incr;
  9278. 80043e6: 4b07 ldr r3, [pc, #28] @ (8004404 <_sbrk+0x64>)
  9279. 80043e8: 681a ldr r2, [r3, #0]
  9280. 80043ea: 687b ldr r3, [r7, #4]
  9281. 80043ec: 4413 add r3, r2
  9282. 80043ee: 4a05 ldr r2, [pc, #20] @ (8004404 <_sbrk+0x64>)
  9283. 80043f0: 6013 str r3, [r2, #0]
  9284. return (void *)prev_heap_end;
  9285. 80043f2: 68fb ldr r3, [r7, #12]
  9286. }
  9287. 80043f4: 4618 mov r0, r3
  9288. 80043f6: 3718 adds r7, #24
  9289. 80043f8: 46bd mov sp, r7
  9290. 80043fa: bd80 pop {r7, pc}
  9291. 80043fc: 24060000 .word 0x24060000
  9292. 8004400: 00000400 .word 0x00000400
  9293. 8004404: 24000ac4 .word 0x24000ac4
  9294. 8004408: 240132f8 .word 0x240132f8
  9295. 0800440c <SystemInit>:
  9296. * configuration.
  9297. * @param None
  9298. * @retval None
  9299. */
  9300. void SystemInit (void)
  9301. {
  9302. 800440c: b480 push {r7}
  9303. 800440e: af00 add r7, sp, #0
  9304. __IO uint32_t tmpreg;
  9305. #endif /* DATA_IN_D2_SRAM */
  9306. /* FPU settings ------------------------------------------------------------*/
  9307. #if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
  9308. SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
  9309. 8004410: 4b37 ldr r3, [pc, #220] @ (80044f0 <SystemInit+0xe4>)
  9310. 8004412: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  9311. 8004416: 4a36 ldr r2, [pc, #216] @ (80044f0 <SystemInit+0xe4>)
  9312. 8004418: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  9313. 800441c: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  9314. #endif
  9315. /* Reset the RCC clock configuration to the default reset state ------------*/
  9316. /* Increasing the CPU frequency */
  9317. if(FLASH_LATENCY_DEFAULT > (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9318. 8004420: 4b34 ldr r3, [pc, #208] @ (80044f4 <SystemInit+0xe8>)
  9319. 8004422: 681b ldr r3, [r3, #0]
  9320. 8004424: f003 030f and.w r3, r3, #15
  9321. 8004428: 2b06 cmp r3, #6
  9322. 800442a: d807 bhi.n 800443c <SystemInit+0x30>
  9323. {
  9324. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9325. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9326. 800442c: 4b31 ldr r3, [pc, #196] @ (80044f4 <SystemInit+0xe8>)
  9327. 800442e: 681b ldr r3, [r3, #0]
  9328. 8004430: f023 030f bic.w r3, r3, #15
  9329. 8004434: 4a2f ldr r2, [pc, #188] @ (80044f4 <SystemInit+0xe8>)
  9330. 8004436: f043 0307 orr.w r3, r3, #7
  9331. 800443a: 6013 str r3, [r2, #0]
  9332. }
  9333. /* Set HSION bit */
  9334. RCC->CR |= RCC_CR_HSION;
  9335. 800443c: 4b2e ldr r3, [pc, #184] @ (80044f8 <SystemInit+0xec>)
  9336. 800443e: 681b ldr r3, [r3, #0]
  9337. 8004440: 4a2d ldr r2, [pc, #180] @ (80044f8 <SystemInit+0xec>)
  9338. 8004442: f043 0301 orr.w r3, r3, #1
  9339. 8004446: 6013 str r3, [r2, #0]
  9340. /* Reset CFGR register */
  9341. RCC->CFGR = 0x00000000;
  9342. 8004448: 4b2b ldr r3, [pc, #172] @ (80044f8 <SystemInit+0xec>)
  9343. 800444a: 2200 movs r2, #0
  9344. 800444c: 611a str r2, [r3, #16]
  9345. /* Reset HSEON, HSECSSON, CSION, HSI48ON, CSIKERON, PLL1ON, PLL2ON and PLL3ON bits */
  9346. RCC->CR &= 0xEAF6ED7FU;
  9347. 800444e: 4b2a ldr r3, [pc, #168] @ (80044f8 <SystemInit+0xec>)
  9348. 8004450: 681a ldr r2, [r3, #0]
  9349. 8004452: 4929 ldr r1, [pc, #164] @ (80044f8 <SystemInit+0xec>)
  9350. 8004454: 4b29 ldr r3, [pc, #164] @ (80044fc <SystemInit+0xf0>)
  9351. 8004456: 4013 ands r3, r2
  9352. 8004458: 600b str r3, [r1, #0]
  9353. /* Decreasing the number of wait states because of lower CPU frequency */
  9354. if(FLASH_LATENCY_DEFAULT < (READ_BIT((FLASH->ACR), FLASH_ACR_LATENCY)))
  9355. 800445a: 4b26 ldr r3, [pc, #152] @ (80044f4 <SystemInit+0xe8>)
  9356. 800445c: 681b ldr r3, [r3, #0]
  9357. 800445e: f003 0308 and.w r3, r3, #8
  9358. 8004462: 2b00 cmp r3, #0
  9359. 8004464: d007 beq.n 8004476 <SystemInit+0x6a>
  9360. {
  9361. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  9362. MODIFY_REG(FLASH->ACR, FLASH_ACR_LATENCY, (uint32_t)(FLASH_LATENCY_DEFAULT));
  9363. 8004466: 4b23 ldr r3, [pc, #140] @ (80044f4 <SystemInit+0xe8>)
  9364. 8004468: 681b ldr r3, [r3, #0]
  9365. 800446a: f023 030f bic.w r3, r3, #15
  9366. 800446e: 4a21 ldr r2, [pc, #132] @ (80044f4 <SystemInit+0xe8>)
  9367. 8004470: f043 0307 orr.w r3, r3, #7
  9368. 8004474: 6013 str r3, [r2, #0]
  9369. }
  9370. #if defined(D3_SRAM_BASE)
  9371. /* Reset D1CFGR register */
  9372. RCC->D1CFGR = 0x00000000;
  9373. 8004476: 4b20 ldr r3, [pc, #128] @ (80044f8 <SystemInit+0xec>)
  9374. 8004478: 2200 movs r2, #0
  9375. 800447a: 619a str r2, [r3, #24]
  9376. /* Reset D2CFGR register */
  9377. RCC->D2CFGR = 0x00000000;
  9378. 800447c: 4b1e ldr r3, [pc, #120] @ (80044f8 <SystemInit+0xec>)
  9379. 800447e: 2200 movs r2, #0
  9380. 8004480: 61da str r2, [r3, #28]
  9381. /* Reset D3CFGR register */
  9382. RCC->D3CFGR = 0x00000000;
  9383. 8004482: 4b1d ldr r3, [pc, #116] @ (80044f8 <SystemInit+0xec>)
  9384. 8004484: 2200 movs r2, #0
  9385. 8004486: 621a str r2, [r3, #32]
  9386. /* Reset SRDCFGR register */
  9387. RCC->SRDCFGR = 0x00000000;
  9388. #endif
  9389. /* Reset PLLCKSELR register */
  9390. RCC->PLLCKSELR = 0x02020200;
  9391. 8004488: 4b1b ldr r3, [pc, #108] @ (80044f8 <SystemInit+0xec>)
  9392. 800448a: 4a1d ldr r2, [pc, #116] @ (8004500 <SystemInit+0xf4>)
  9393. 800448c: 629a str r2, [r3, #40] @ 0x28
  9394. /* Reset PLLCFGR register */
  9395. RCC->PLLCFGR = 0x01FF0000;
  9396. 800448e: 4b1a ldr r3, [pc, #104] @ (80044f8 <SystemInit+0xec>)
  9397. 8004490: 4a1c ldr r2, [pc, #112] @ (8004504 <SystemInit+0xf8>)
  9398. 8004492: 62da str r2, [r3, #44] @ 0x2c
  9399. /* Reset PLL1DIVR register */
  9400. RCC->PLL1DIVR = 0x01010280;
  9401. 8004494: 4b18 ldr r3, [pc, #96] @ (80044f8 <SystemInit+0xec>)
  9402. 8004496: 4a1c ldr r2, [pc, #112] @ (8004508 <SystemInit+0xfc>)
  9403. 8004498: 631a str r2, [r3, #48] @ 0x30
  9404. /* Reset PLL1FRACR register */
  9405. RCC->PLL1FRACR = 0x00000000;
  9406. 800449a: 4b17 ldr r3, [pc, #92] @ (80044f8 <SystemInit+0xec>)
  9407. 800449c: 2200 movs r2, #0
  9408. 800449e: 635a str r2, [r3, #52] @ 0x34
  9409. /* Reset PLL2DIVR register */
  9410. RCC->PLL2DIVR = 0x01010280;
  9411. 80044a0: 4b15 ldr r3, [pc, #84] @ (80044f8 <SystemInit+0xec>)
  9412. 80044a2: 4a19 ldr r2, [pc, #100] @ (8004508 <SystemInit+0xfc>)
  9413. 80044a4: 639a str r2, [r3, #56] @ 0x38
  9414. /* Reset PLL2FRACR register */
  9415. RCC->PLL2FRACR = 0x00000000;
  9416. 80044a6: 4b14 ldr r3, [pc, #80] @ (80044f8 <SystemInit+0xec>)
  9417. 80044a8: 2200 movs r2, #0
  9418. 80044aa: 63da str r2, [r3, #60] @ 0x3c
  9419. /* Reset PLL3DIVR register */
  9420. RCC->PLL3DIVR = 0x01010280;
  9421. 80044ac: 4b12 ldr r3, [pc, #72] @ (80044f8 <SystemInit+0xec>)
  9422. 80044ae: 4a16 ldr r2, [pc, #88] @ (8004508 <SystemInit+0xfc>)
  9423. 80044b0: 641a str r2, [r3, #64] @ 0x40
  9424. /* Reset PLL3FRACR register */
  9425. RCC->PLL3FRACR = 0x00000000;
  9426. 80044b2: 4b11 ldr r3, [pc, #68] @ (80044f8 <SystemInit+0xec>)
  9427. 80044b4: 2200 movs r2, #0
  9428. 80044b6: 645a str r2, [r3, #68] @ 0x44
  9429. /* Reset HSEBYP bit */
  9430. RCC->CR &= 0xFFFBFFFFU;
  9431. 80044b8: 4b0f ldr r3, [pc, #60] @ (80044f8 <SystemInit+0xec>)
  9432. 80044ba: 681b ldr r3, [r3, #0]
  9433. 80044bc: 4a0e ldr r2, [pc, #56] @ (80044f8 <SystemInit+0xec>)
  9434. 80044be: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  9435. 80044c2: 6013 str r3, [r2, #0]
  9436. /* Disable all interrupts */
  9437. RCC->CIER = 0x00000000;
  9438. 80044c4: 4b0c ldr r3, [pc, #48] @ (80044f8 <SystemInit+0xec>)
  9439. 80044c6: 2200 movs r2, #0
  9440. 80044c8: 661a str r2, [r3, #96] @ 0x60
  9441. #if (STM32H7_DEV_ID == 0x450UL)
  9442. /* dual core CM7 or single core line */
  9443. if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
  9444. 80044ca: 4b10 ldr r3, [pc, #64] @ (800450c <SystemInit+0x100>)
  9445. 80044cc: 681a ldr r2, [r3, #0]
  9446. 80044ce: 4b10 ldr r3, [pc, #64] @ (8004510 <SystemInit+0x104>)
  9447. 80044d0: 4013 ands r3, r2
  9448. 80044d2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  9449. 80044d6: d202 bcs.n 80044de <SystemInit+0xd2>
  9450. {
  9451. /* if stm32h7 revY*/
  9452. /* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
  9453. *((__IO uint32_t*)0x51008108) = 0x000000001U;
  9454. 80044d8: 4b0e ldr r3, [pc, #56] @ (8004514 <SystemInit+0x108>)
  9455. 80044da: 2201 movs r2, #1
  9456. 80044dc: 601a str r2, [r3, #0]
  9457. /*
  9458. * Disable the FMC bank1 (enabled after reset).
  9459. * This, prevents CPU speculation access on this bank which blocks the use of FMC during
  9460. * 24us. During this time the others FMC master (such as LTDC) cannot use it!
  9461. */
  9462. FMC_Bank1_R->BTCR[0] = 0x000030D2;
  9463. 80044de: 4b0e ldr r3, [pc, #56] @ (8004518 <SystemInit+0x10c>)
  9464. 80044e0: f243 02d2 movw r2, #12498 @ 0x30d2
  9465. 80044e4: 601a str r2, [r3, #0]
  9466. #if defined(USER_VECT_TAB_ADDRESS)
  9467. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal D1 AXI-RAM or in Internal FLASH */
  9468. #endif /* USER_VECT_TAB_ADDRESS */
  9469. #endif /*DUAL_CORE && CORE_CM4*/
  9470. }
  9471. 80044e6: bf00 nop
  9472. 80044e8: 46bd mov sp, r7
  9473. 80044ea: f85d 7b04 ldr.w r7, [sp], #4
  9474. 80044ee: 4770 bx lr
  9475. 80044f0: e000ed00 .word 0xe000ed00
  9476. 80044f4: 52002000 .word 0x52002000
  9477. 80044f8: 58024400 .word 0x58024400
  9478. 80044fc: eaf6ed7f .word 0xeaf6ed7f
  9479. 8004500: 02020200 .word 0x02020200
  9480. 8004504: 01ff0000 .word 0x01ff0000
  9481. 8004508: 01010280 .word 0x01010280
  9482. 800450c: 5c001000 .word 0x5c001000
  9483. 8004510: ffff0000 .word 0xffff0000
  9484. 8004514: 51008108 .word 0x51008108
  9485. 8004518: 52004000 .word 0x52004000
  9486. 0800451c <__NVIC_SystemReset>:
  9487. {
  9488. 800451c: b480 push {r7}
  9489. 800451e: af00 add r7, sp, #0
  9490. __ASM volatile ("dsb 0xF":::"memory");
  9491. 8004520: f3bf 8f4f dsb sy
  9492. }
  9493. 8004524: bf00 nop
  9494. (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
  9495. 8004526: 4b06 ldr r3, [pc, #24] @ (8004540 <__NVIC_SystemReset+0x24>)
  9496. 8004528: 68db ldr r3, [r3, #12]
  9497. 800452a: f403 62e0 and.w r2, r3, #1792 @ 0x700
  9498. SCB->AIRCR = (uint32_t)((0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  9499. 800452e: 4904 ldr r1, [pc, #16] @ (8004540 <__NVIC_SystemReset+0x24>)
  9500. 8004530: 4b04 ldr r3, [pc, #16] @ (8004544 <__NVIC_SystemReset+0x28>)
  9501. 8004532: 4313 orrs r3, r2
  9502. 8004534: 60cb str r3, [r1, #12]
  9503. __ASM volatile ("dsb 0xF":::"memory");
  9504. 8004536: f3bf 8f4f dsb sy
  9505. }
  9506. 800453a: bf00 nop
  9507. __NOP();
  9508. 800453c: bf00 nop
  9509. 800453e: e7fd b.n 800453c <__NVIC_SystemReset+0x20>
  9510. 8004540: e000ed00 .word 0xe000ed00
  9511. 8004544: 05fa0004 .word 0x05fa0004
  9512. 08004548 <UartTasksInit>:
  9513. uint8_t outputDataBuffer[OUTPUT_DATA_BUFF_SIZE];
  9514. uint16_t outputDataBufferPos = 0;
  9515. extern RNG_HandleTypeDef hrng;
  9516. void UartTasksInit (void) {
  9517. 8004548: b580 push {r7, lr}
  9518. 800454a: af00 add r7, sp, #0
  9519. uart1TaskData.uartRxBuffer = uart1RxBuffer;
  9520. 800454c: 4b24 ldr r3, [pc, #144] @ (80045e0 <UartTasksInit+0x98>)
  9521. 800454e: 4a25 ldr r2, [pc, #148] @ (80045e4 <UartTasksInit+0x9c>)
  9522. 8004550: 601a str r2, [r3, #0]
  9523. uart1TaskData.uartRxBufferLen = UART1_RX_BUFF_SIZE;
  9524. 8004552: 4b23 ldr r3, [pc, #140] @ (80045e0 <UartTasksInit+0x98>)
  9525. 8004554: f44f 7280 mov.w r2, #256 @ 0x100
  9526. 8004558: 809a strh r2, [r3, #4]
  9527. uart1TaskData.uartTxBuffer = uart1TxBuffer;
  9528. 800455a: 4b21 ldr r3, [pc, #132] @ (80045e0 <UartTasksInit+0x98>)
  9529. 800455c: 4a22 ldr r2, [pc, #136] @ (80045e8 <UartTasksInit+0xa0>)
  9530. 800455e: 609a str r2, [r3, #8]
  9531. uart1TaskData.uartRxBufferLen = UART1_TX_BUFF_SIZE;
  9532. 8004560: 4b1f ldr r3, [pc, #124] @ (80045e0 <UartTasksInit+0x98>)
  9533. 8004562: f44f 7280 mov.w r2, #256 @ 0x100
  9534. 8004566: 809a strh r2, [r3, #4]
  9535. uart1TaskData.frameData = uart1TaskFrameData;
  9536. 8004568: 4b1d ldr r3, [pc, #116] @ (80045e0 <UartTasksInit+0x98>)
  9537. 800456a: 4a20 ldr r2, [pc, #128] @ (80045ec <UartTasksInit+0xa4>)
  9538. 800456c: 611a str r2, [r3, #16]
  9539. uart1TaskData.frameDataLen = UART1_RX_BUFF_SIZE;
  9540. 800456e: 4b1c ldr r3, [pc, #112] @ (80045e0 <UartTasksInit+0x98>)
  9541. 8004570: f44f 7280 mov.w r2, #256 @ 0x100
  9542. 8004574: 829a strh r2, [r3, #20]
  9543. uart1TaskData.huart = &huart1;
  9544. 8004576: 4b1a ldr r3, [pc, #104] @ (80045e0 <UartTasksInit+0x98>)
  9545. 8004578: 4a1d ldr r2, [pc, #116] @ (80045f0 <UartTasksInit+0xa8>)
  9546. 800457a: 631a str r2, [r3, #48] @ 0x30
  9547. uart1TaskData.uartNumber = 1;
  9548. 800457c: 4b18 ldr r3, [pc, #96] @ (80045e0 <UartTasksInit+0x98>)
  9549. 800457e: 2201 movs r2, #1
  9550. 8004580: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9551. uart1TaskData.processDataCb = Uart1ReceivedDataProcessCallback;
  9552. 8004584: 4b16 ldr r3, [pc, #88] @ (80045e0 <UartTasksInit+0x98>)
  9553. 8004586: 4a1b ldr r2, [pc, #108] @ (80045f4 <UartTasksInit+0xac>)
  9554. 8004588: 629a str r2, [r3, #40] @ 0x28
  9555. uart1TaskData.processRxDataMsgBuffer = NULL;
  9556. 800458a: 4b15 ldr r3, [pc, #84] @ (80045e0 <UartTasksInit+0x98>)
  9557. 800458c: 2200 movs r2, #0
  9558. 800458e: 625a str r2, [r3, #36] @ 0x24
  9559. uart8TaskData.uartRxBuffer = uart8RxBuffer;
  9560. 8004590: 4b19 ldr r3, [pc, #100] @ (80045f8 <UartTasksInit+0xb0>)
  9561. 8004592: 4a1a ldr r2, [pc, #104] @ (80045fc <UartTasksInit+0xb4>)
  9562. 8004594: 601a str r2, [r3, #0]
  9563. uart8TaskData.uartRxBufferLen = UART8_RX_BUFF_SIZE;
  9564. 8004596: 4b18 ldr r3, [pc, #96] @ (80045f8 <UartTasksInit+0xb0>)
  9565. 8004598: f44f 7280 mov.w r2, #256 @ 0x100
  9566. 800459c: 809a strh r2, [r3, #4]
  9567. uart8TaskData.uartTxBuffer = uart8TxBuffer;
  9568. 800459e: 4b16 ldr r3, [pc, #88] @ (80045f8 <UartTasksInit+0xb0>)
  9569. 80045a0: 4a17 ldr r2, [pc, #92] @ (8004600 <UartTasksInit+0xb8>)
  9570. 80045a2: 609a str r2, [r3, #8]
  9571. uart8TaskData.uartRxBufferLen = UART8_TX_BUFF_SIZE;
  9572. 80045a4: 4b14 ldr r3, [pc, #80] @ (80045f8 <UartTasksInit+0xb0>)
  9573. 80045a6: f44f 7280 mov.w r2, #256 @ 0x100
  9574. 80045aa: 809a strh r2, [r3, #4]
  9575. uart8TaskData.frameData = uart8TaskFrameData;
  9576. 80045ac: 4b12 ldr r3, [pc, #72] @ (80045f8 <UartTasksInit+0xb0>)
  9577. 80045ae: 4a15 ldr r2, [pc, #84] @ (8004604 <UartTasksInit+0xbc>)
  9578. 80045b0: 611a str r2, [r3, #16]
  9579. uart8TaskData.frameDataLen = UART8_RX_BUFF_SIZE;
  9580. 80045b2: 4b11 ldr r3, [pc, #68] @ (80045f8 <UartTasksInit+0xb0>)
  9581. 80045b4: f44f 7280 mov.w r2, #256 @ 0x100
  9582. 80045b8: 829a strh r2, [r3, #20]
  9583. uart8TaskData.huart = &huart8;
  9584. 80045ba: 4b0f ldr r3, [pc, #60] @ (80045f8 <UartTasksInit+0xb0>)
  9585. 80045bc: 4a12 ldr r2, [pc, #72] @ (8004608 <UartTasksInit+0xc0>)
  9586. 80045be: 631a str r2, [r3, #48] @ 0x30
  9587. uart8TaskData.uartNumber = 8;
  9588. 80045c0: 4b0d ldr r3, [pc, #52] @ (80045f8 <UartTasksInit+0xb0>)
  9589. 80045c2: 2208 movs r2, #8
  9590. 80045c4: f883 2034 strb.w r2, [r3, #52] @ 0x34
  9591. uart8TaskData.processDataCb = Uart8ReceivedDataProcessCallback;
  9592. 80045c8: 4b0b ldr r3, [pc, #44] @ (80045f8 <UartTasksInit+0xb0>)
  9593. 80045ca: 4a10 ldr r2, [pc, #64] @ (800460c <UartTasksInit+0xc4>)
  9594. 80045cc: 629a str r2, [r3, #40] @ 0x28
  9595. uart8TaskData.processRxDataMsgBuffer = NULL;
  9596. 80045ce: 4b0a ldr r3, [pc, #40] @ (80045f8 <UartTasksInit+0xb0>)
  9597. 80045d0: 2200 movs r2, #0
  9598. 80045d2: 625a str r2, [r3, #36] @ 0x24
  9599. #ifdef USE_UART8_INSTEAD_UART1
  9600. UartTaskCreate (&uart8TaskData);
  9601. #else
  9602. UartTaskCreate (&uart1TaskData);
  9603. 80045d4: 4802 ldr r0, [pc, #8] @ (80045e0 <UartTasksInit+0x98>)
  9604. 80045d6: f000 f81b bl 8004610 <UartTaskCreate>
  9605. #endif
  9606. }
  9607. 80045da: bf00 nop
  9608. 80045dc: bd80 pop {r7, pc}
  9609. 80045de: bf00 nop
  9610. 80045e0: 240010c8 .word 0x240010c8
  9611. 80045e4: 24000ac8 .word 0x24000ac8
  9612. 80045e8: 24000bc8 .word 0x24000bc8
  9613. 80045ec: 24000cc8 .word 0x24000cc8
  9614. 80045f0: 24000714 .word 0x24000714
  9615. 80045f4: 08004cb9 .word 0x08004cb9
  9616. 80045f8: 24001100 .word 0x24001100
  9617. 80045fc: 24000dc8 .word 0x24000dc8
  9618. 8004600: 24000ec8 .word 0x24000ec8
  9619. 8004604: 24000fc8 .word 0x24000fc8
  9620. 8004608: 24000680 .word 0x24000680
  9621. 800460c: 08004c9d .word 0x08004c9d
  9622. 08004610 <UartTaskCreate>:
  9623. void UartTaskCreate (UartTaskData* uartTaskData) {
  9624. 8004610: b580 push {r7, lr}
  9625. 8004612: b08c sub sp, #48 @ 0x30
  9626. 8004614: af00 add r7, sp, #0
  9627. 8004616: 6078 str r0, [r7, #4]
  9628. osThreadAttr_t osThreadAttrRxUart = { 0 };
  9629. 8004618: f107 030c add.w r3, r7, #12
  9630. 800461c: 2224 movs r2, #36 @ 0x24
  9631. 800461e: 2100 movs r1, #0
  9632. 8004620: 4618 mov r0, r3
  9633. 8004622: f013 ff21 bl 8018468 <memset>
  9634. osThreadAttrRxUart.stack_size = configMINIMAL_STACK_SIZE * 2;
  9635. 8004626: f44f 6380 mov.w r3, #1024 @ 0x400
  9636. 800462a: 623b str r3, [r7, #32]
  9637. osThreadAttrRxUart.priority = (osPriority_t)osPriorityHigh;
  9638. 800462c: 2328 movs r3, #40 @ 0x28
  9639. 800462e: 627b str r3, [r7, #36] @ 0x24
  9640. uartTaskData->uartRecieveTaskHandle = osThreadNew (UartRxTask, uartTaskData, &osThreadAttrRxUart);
  9641. 8004630: f107 030c add.w r3, r7, #12
  9642. 8004634: 461a mov r2, r3
  9643. 8004636: 6879 ldr r1, [r7, #4]
  9644. 8004638: 4804 ldr r0, [pc, #16] @ (800464c <UartTaskCreate+0x3c>)
  9645. 800463a: f00e ff91 bl 8013560 <osThreadNew>
  9646. 800463e: 4602 mov r2, r0
  9647. 8004640: 687b ldr r3, [r7, #4]
  9648. 8004642: 619a str r2, [r3, #24]
  9649. }
  9650. 8004644: bf00 nop
  9651. 8004646: 3730 adds r7, #48 @ 0x30
  9652. 8004648: 46bd mov sp, r7
  9653. 800464a: bd80 pop {r7, pc}
  9654. 800464c: 08004765 .word 0x08004765
  9655. 08004650 <HAL_UART_RxCpltCallback>:
  9656. void HAL_UART_RxCpltCallback (UART_HandleTypeDef* huart) {
  9657. 8004650: b480 push {r7}
  9658. 8004652: b083 sub sp, #12
  9659. 8004654: af00 add r7, sp, #0
  9660. 8004656: 6078 str r0, [r7, #4]
  9661. }
  9662. 8004658: bf00 nop
  9663. 800465a: 370c adds r7, #12
  9664. 800465c: 46bd mov sp, r7
  9665. 800465e: f85d 7b04 ldr.w r7, [sp], #4
  9666. 8004662: 4770 bx lr
  9667. 08004664 <HAL_UARTEx_RxEventCallback>:
  9668. void HAL_UARTEx_RxEventCallback (UART_HandleTypeDef* huart, uint16_t Size) {
  9669. 8004664: b580 push {r7, lr}
  9670. 8004666: b082 sub sp, #8
  9671. 8004668: af00 add r7, sp, #0
  9672. 800466a: 6078 str r0, [r7, #4]
  9673. 800466c: 460b mov r3, r1
  9674. 800466e: 807b strh r3, [r7, #2]
  9675. if (huart->Instance == USART1) {
  9676. 8004670: 687b ldr r3, [r7, #4]
  9677. 8004672: 681b ldr r3, [r3, #0]
  9678. 8004674: 4a0c ldr r2, [pc, #48] @ (80046a8 <HAL_UARTEx_RxEventCallback+0x44>)
  9679. 8004676: 4293 cmp r3, r2
  9680. 8004678: d106 bne.n 8004688 <HAL_UARTEx_RxEventCallback+0x24>
  9681. HandleUartRxCallback (&uart1TaskData, huart, Size);
  9682. 800467a: 887b ldrh r3, [r7, #2]
  9683. 800467c: 461a mov r2, r3
  9684. 800467e: 6879 ldr r1, [r7, #4]
  9685. 8004680: 480a ldr r0, [pc, #40] @ (80046ac <HAL_UARTEx_RxEventCallback+0x48>)
  9686. 8004682: f000 f823 bl 80046cc <HandleUartRxCallback>
  9687. } else if (huart->Instance == UART8) {
  9688. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9689. }
  9690. }
  9691. 8004686: e00a b.n 800469e <HAL_UARTEx_RxEventCallback+0x3a>
  9692. } else if (huart->Instance == UART8) {
  9693. 8004688: 687b ldr r3, [r7, #4]
  9694. 800468a: 681b ldr r3, [r3, #0]
  9695. 800468c: 4a08 ldr r2, [pc, #32] @ (80046b0 <HAL_UARTEx_RxEventCallback+0x4c>)
  9696. 800468e: 4293 cmp r3, r2
  9697. 8004690: d105 bne.n 800469e <HAL_UARTEx_RxEventCallback+0x3a>
  9698. HandleUartRxCallback (&uart8TaskData, huart, Size);
  9699. 8004692: 887b ldrh r3, [r7, #2]
  9700. 8004694: 461a mov r2, r3
  9701. 8004696: 6879 ldr r1, [r7, #4]
  9702. 8004698: 4806 ldr r0, [pc, #24] @ (80046b4 <HAL_UARTEx_RxEventCallback+0x50>)
  9703. 800469a: f000 f817 bl 80046cc <HandleUartRxCallback>
  9704. }
  9705. 800469e: bf00 nop
  9706. 80046a0: 3708 adds r7, #8
  9707. 80046a2: 46bd mov sp, r7
  9708. 80046a4: bd80 pop {r7, pc}
  9709. 80046a6: bf00 nop
  9710. 80046a8: 40011000 .word 0x40011000
  9711. 80046ac: 240010c8 .word 0x240010c8
  9712. 80046b0: 40007c00 .word 0x40007c00
  9713. 80046b4: 24001100 .word 0x24001100
  9714. 080046b8 <HAL_UART_TxCpltCallback>:
  9715. void HAL_UART_TxCpltCallback (UART_HandleTypeDef* huart) {
  9716. 80046b8: b480 push {r7}
  9717. 80046ba: b083 sub sp, #12
  9718. 80046bc: af00 add r7, sp, #0
  9719. 80046be: 6078 str r0, [r7, #4]
  9720. if (huart->Instance == UART8) {
  9721. }
  9722. }
  9723. 80046c0: bf00 nop
  9724. 80046c2: 370c adds r7, #12
  9725. 80046c4: 46bd mov sp, r7
  9726. 80046c6: f85d 7b04 ldr.w r7, [sp], #4
  9727. 80046ca: 4770 bx lr
  9728. 080046cc <HandleUartRxCallback>:
  9729. void HandleUartRxCallback (UartTaskData* uartTaskData, UART_HandleTypeDef* huart, uint16_t Size) {
  9730. 80046cc: b580 push {r7, lr}
  9731. 80046ce: b088 sub sp, #32
  9732. 80046d0: af02 add r7, sp, #8
  9733. 80046d2: 60f8 str r0, [r7, #12]
  9734. 80046d4: 60b9 str r1, [r7, #8]
  9735. 80046d6: 4613 mov r3, r2
  9736. 80046d8: 80fb strh r3, [r7, #6]
  9737. BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
  9738. 80046da: 2300 movs r3, #0
  9739. 80046dc: 617b str r3, [r7, #20]
  9740. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9741. 80046de: 68fb ldr r3, [r7, #12]
  9742. 80046e0: 6a1b ldr r3, [r3, #32]
  9743. 80046e2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9744. 80046e6: 4618 mov r0, r3
  9745. 80046e8: f00f f965 bl 80139b6 <osMutexAcquire>
  9746. memcpy (&(uartTaskData->frameData[uartTaskData->frameBytesCount]), uartTaskData->uartRxBuffer, Size);
  9747. 80046ec: 68fb ldr r3, [r7, #12]
  9748. 80046ee: 691b ldr r3, [r3, #16]
  9749. 80046f0: 68fa ldr r2, [r7, #12]
  9750. 80046f2: 8ad2 ldrh r2, [r2, #22]
  9751. 80046f4: 1898 adds r0, r3, r2
  9752. 80046f6: 68fb ldr r3, [r7, #12]
  9753. 80046f8: 681b ldr r3, [r3, #0]
  9754. 80046fa: 88fa ldrh r2, [r7, #6]
  9755. 80046fc: 4619 mov r1, r3
  9756. 80046fe: f013 ff88 bl 8018612 <memcpy>
  9757. uartTaskData->frameBytesCount += Size;
  9758. 8004702: 68fb ldr r3, [r7, #12]
  9759. 8004704: 8ada ldrh r2, [r3, #22]
  9760. 8004706: 88fb ldrh r3, [r7, #6]
  9761. 8004708: 4413 add r3, r2
  9762. 800470a: b29a uxth r2, r3
  9763. 800470c: 68fb ldr r3, [r7, #12]
  9764. 800470e: 82da strh r2, [r3, #22]
  9765. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9766. 8004710: 68fb ldr r3, [r7, #12]
  9767. 8004712: 6a1b ldr r3, [r3, #32]
  9768. 8004714: 4618 mov r0, r3
  9769. 8004716: f00f f999 bl 8013a4c <osMutexRelease>
  9770. xTaskNotifyFromISR (uartTaskData->uartRecieveTaskHandle, Size, eSetValueWithOverwrite, &pxHigherPriorityTaskWoken);
  9771. 800471a: 68fb ldr r3, [r7, #12]
  9772. 800471c: 6998 ldr r0, [r3, #24]
  9773. 800471e: 88f9 ldrh r1, [r7, #6]
  9774. 8004720: f107 0314 add.w r3, r7, #20
  9775. 8004724: 9300 str r3, [sp, #0]
  9776. 8004726: 2300 movs r3, #0
  9777. 8004728: 2203 movs r2, #3
  9778. 800472a: f011 fe89 bl 8016440 <xTaskGenericNotifyFromISR>
  9779. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9780. 800472e: 68fb ldr r3, [r7, #12]
  9781. 8004730: 6b18 ldr r0, [r3, #48] @ 0x30
  9782. 8004732: 68fb ldr r3, [r7, #12]
  9783. 8004734: 6819 ldr r1, [r3, #0]
  9784. 8004736: 68fb ldr r3, [r7, #12]
  9785. 8004738: 889b ldrh r3, [r3, #4]
  9786. 800473a: 461a mov r2, r3
  9787. 800473c: f00e fde3 bl 8013306 <HAL_UARTEx_ReceiveToIdle_IT>
  9788. portEND_SWITCHING_ISR (pxHigherPriorityTaskWoken);
  9789. 8004740: 697b ldr r3, [r7, #20]
  9790. 8004742: 2b00 cmp r3, #0
  9791. 8004744: d007 beq.n 8004756 <HandleUartRxCallback+0x8a>
  9792. 8004746: 4b06 ldr r3, [pc, #24] @ (8004760 <HandleUartRxCallback+0x94>)
  9793. 8004748: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  9794. 800474c: 601a str r2, [r3, #0]
  9795. 800474e: f3bf 8f4f dsb sy
  9796. 8004752: f3bf 8f6f isb sy
  9797. }
  9798. 8004756: bf00 nop
  9799. 8004758: 3718 adds r7, #24
  9800. 800475a: 46bd mov sp, r7
  9801. 800475c: bd80 pop {r7, pc}
  9802. 800475e: bf00 nop
  9803. 8004760: e000ed04 .word 0xe000ed04
  9804. 08004764 <UartRxTask>:
  9805. void UartRxTask (void* argument) {
  9806. 8004764: b580 push {r7, lr}
  9807. 8004766: b0d2 sub sp, #328 @ 0x148
  9808. 8004768: af02 add r7, sp, #8
  9809. 800476a: f507 73a0 add.w r3, r7, #320 @ 0x140
  9810. 800476e: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9811. 8004772: 6018 str r0, [r3, #0]
  9812. UartTaskData* uartTaskData = (UartTaskData*)argument;
  9813. 8004774: f507 73a0 add.w r3, r7, #320 @ 0x140
  9814. 8004778: f5a3 739e sub.w r3, r3, #316 @ 0x13c
  9815. 800477c: 681b ldr r3, [r3, #0]
  9816. 800477e: f8c7 312c str.w r3, [r7, #300] @ 0x12c
  9817. SerialProtocolFrameData spFrameData = { 0 };
  9818. 8004782: f507 73a0 add.w r3, r7, #320 @ 0x140
  9819. 8004786: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9820. 800478a: 4618 mov r0, r3
  9821. 800478c: f44f 7386 mov.w r3, #268 @ 0x10c
  9822. 8004790: 461a mov r2, r3
  9823. 8004792: 2100 movs r1, #0
  9824. 8004794: f013 fe68 bl 8018468 <memset>
  9825. uint32_t bytesRec = 0;
  9826. 8004798: f507 73a0 add.w r3, r7, #320 @ 0x140
  9827. 800479c: f5a3 739a sub.w r3, r3, #308 @ 0x134
  9828. 80047a0: 2200 movs r2, #0
  9829. 80047a2: 601a str r2, [r3, #0]
  9830. uint32_t crc = 0;
  9831. 80047a4: 2300 movs r3, #0
  9832. 80047a6: f8c7 3128 str.w r3, [r7, #296] @ 0x128
  9833. uint16_t frameCommandRaw = 0x0000;
  9834. 80047aa: 2300 movs r3, #0
  9835. 80047ac: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  9836. uint16_t frameBytesCount = 0;
  9837. 80047b0: 2300 movs r3, #0
  9838. 80047b2: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9839. uint16_t frameCrc = 0;
  9840. 80047b6: 2300 movs r3, #0
  9841. 80047b8: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  9842. uint16_t frameTotalLength = 0;
  9843. 80047bc: 2300 movs r3, #0
  9844. 80047be: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  9845. uint16_t dataToSend = 0;
  9846. 80047c2: 2300 movs r3, #0
  9847. 80047c4: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  9848. portBASE_TYPE crcPass = pdFAIL;
  9849. 80047c8: 2300 movs r3, #0
  9850. 80047ca: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  9851. portBASE_TYPE proceed = pdFALSE;
  9852. 80047ce: 2300 movs r3, #0
  9853. 80047d0: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9854. portBASE_TYPE frameTimeout = pdFAIL;
  9855. 80047d4: 2300 movs r3, #0
  9856. 80047d6: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9857. enum SerialReceiverStates receverState = srWaitForHeader;
  9858. 80047da: 2300 movs r3, #0
  9859. 80047dc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9860. uartTaskData->rxDataBufferMutex = osMutexNew (NULL);
  9861. 80047e0: 2000 movs r0, #0
  9862. 80047e2: f00f f862 bl 80138aa <osMutexNew>
  9863. 80047e6: 4602 mov r2, r0
  9864. 80047e8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9865. 80047ec: 621a str r2, [r3, #32]
  9866. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9867. 80047ee: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9868. 80047f2: 6b18 ldr r0, [r3, #48] @ 0x30
  9869. 80047f4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9870. 80047f8: 6819 ldr r1, [r3, #0]
  9871. 80047fa: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9872. 80047fe: 889b ldrh r3, [r3, #4]
  9873. 8004800: 461a mov r2, r3
  9874. 8004802: f00e fd80 bl 8013306 <HAL_UARTEx_ReceiveToIdle_IT>
  9875. while (pdTRUE) {
  9876. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  9877. 8004806: f107 020c add.w r2, r7, #12
  9878. 800480a: f44f 63fa mov.w r3, #2000 @ 0x7d0
  9879. 800480e: 2100 movs r1, #0
  9880. 8004810: 2000 movs r0, #0
  9881. 8004812: f011 fcf3 bl 80161fc <xTaskNotifyWait>
  9882. 8004816: 4603 mov r3, r0
  9883. 8004818: 2b00 cmp r3, #0
  9884. 800481a: bf0c ite eq
  9885. 800481c: 2301 moveq r3, #1
  9886. 800481e: 2300 movne r3, #0
  9887. 8004820: b2db uxtb r3, r3
  9888. 8004822: f8c7 311c str.w r3, [r7, #284] @ 0x11c
  9889. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9890. 8004826: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9891. 800482a: 6a1b ldr r3, [r3, #32]
  9892. 800482c: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9893. 8004830: 4618 mov r0, r3
  9894. 8004832: f00f f8c0 bl 80139b6 <osMutexAcquire>
  9895. frameBytesCount = uartTaskData->frameBytesCount;
  9896. 8004836: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9897. 800483a: 8adb ldrh r3, [r3, #22]
  9898. 800483c: f8a7 3124 strh.w r3, [r7, #292] @ 0x124
  9899. osMutexRelease (uartTaskData->rxDataBufferMutex);
  9900. 8004840: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9901. 8004844: 6a1b ldr r3, [r3, #32]
  9902. 8004846: 4618 mov r0, r3
  9903. 8004848: f00f f900 bl 8013a4c <osMutexRelease>
  9904. if ((frameTimeout == pdTRUE) && (frameBytesCount > 0)) {
  9905. 800484c: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9906. 8004850: 2b01 cmp r3, #1
  9907. 8004852: d10a bne.n 800486a <UartRxTask+0x106>
  9908. 8004854: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9909. 8004858: 2b00 cmp r3, #0
  9910. 800485a: d006 beq.n 800486a <UartRxTask+0x106>
  9911. receverState = srFail;
  9912. 800485c: 2304 movs r3, #4
  9913. 800485e: f887 3133 strb.w r3, [r7, #307] @ 0x133
  9914. proceed = pdTRUE;
  9915. 8004862: 2301 movs r3, #1
  9916. 8004864: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9917. 8004868: e01b b.n 80048a2 <UartRxTask+0x13e>
  9918. } else {
  9919. if (frameTimeout == pdFALSE) {
  9920. 800486a: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  9921. 800486e: 2b00 cmp r3, #0
  9922. 8004870: d103 bne.n 800487a <UartRxTask+0x116>
  9923. proceed = pdTRUE;
  9924. 8004872: 2301 movs r3, #1
  9925. 8004874: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  9926. 8004878: e206 b.n 8004c88 <UartRxTask+0x524>
  9927. #ifdef SERIAL_PROTOCOL_DBG
  9928. printf ("Uart%d: RX bytes received: %ld\n", uartTaskData->uartNumber, bytesRec);
  9929. #endif
  9930. } else {
  9931. if (uartTaskData->huart->RxState == HAL_UART_STATE_READY) {
  9932. 800487a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9933. 800487e: 6b1b ldr r3, [r3, #48] @ 0x30
  9934. 8004880: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  9935. 8004884: 2b20 cmp r3, #32
  9936. 8004886: f040 81ff bne.w 8004c88 <UartRxTask+0x524>
  9937. HAL_UARTEx_ReceiveToIdle_IT (uartTaskData->huart, uartTaskData->uartRxBuffer, uartTaskData->uartRxBufferLen);
  9938. 800488a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9939. 800488e: 6b18 ldr r0, [r3, #48] @ 0x30
  9940. 8004890: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9941. 8004894: 6819 ldr r1, [r3, #0]
  9942. 8004896: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9943. 800489a: 889b ldrh r3, [r3, #4]
  9944. 800489c: 461a mov r2, r3
  9945. 800489e: f00e fd32 bl 8013306 <HAL_UARTEx_ReceiveToIdle_IT>
  9946. }
  9947. }
  9948. }
  9949. while (proceed) {
  9950. 80048a2: e1f1 b.n 8004c88 <UartRxTask+0x524>
  9951. switch (receverState) {
  9952. 80048a4: f897 3133 ldrb.w r3, [r7, #307] @ 0x133
  9953. 80048a8: 2b04 cmp r3, #4
  9954. 80048aa: f200 81c8 bhi.w 8004c3e <UartRxTask+0x4da>
  9955. 80048ae: a201 add r2, pc, #4 @ (adr r2, 80048b4 <UartRxTask+0x150>)
  9956. 80048b0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  9957. 80048b4: 080048c9 .word 0x080048c9
  9958. 80048b8: 08004a2b .word 0x08004a2b
  9959. 80048bc: 08004a0f .word 0x08004a0f
  9960. 80048c0: 08004abb .word 0x08004abb
  9961. 80048c4: 08004b67 .word 0x08004b67
  9962. case srWaitForHeader:
  9963. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  9964. 80048c8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9965. 80048cc: 6a1b ldr r3, [r3, #32]
  9966. 80048ce: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  9967. 80048d2: 4618 mov r0, r3
  9968. 80048d4: f00f f86f bl 80139b6 <osMutexAcquire>
  9969. if (uartTaskData->frameData[0] == FRAME_INDICATOR) {
  9970. 80048d8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9971. 80048dc: 691b ldr r3, [r3, #16]
  9972. 80048de: 781b ldrb r3, [r3, #0]
  9973. 80048e0: 2baa cmp r3, #170 @ 0xaa
  9974. 80048e2: f040 8082 bne.w 80049ea <UartRxTask+0x286>
  9975. if (frameBytesCount > FRAME_ID_LENGTH) {
  9976. 80048e6: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  9977. 80048ea: 2b02 cmp r3, #2
  9978. 80048ec: d914 bls.n 8004918 <UartRxTask+0x1b4>
  9979. spFrameData.frameHeader.frameId =
  9980. CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_ID_LENGTH - FRAME_COMMAND_LENGTH]));
  9981. 80048ee: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9982. 80048f2: 691b ldr r3, [r3, #16]
  9983. 80048f4: 3302 adds r3, #2
  9984. 80048f6: 781b ldrb r3, [r3, #0]
  9985. 80048f8: 021b lsls r3, r3, #8
  9986. 80048fa: b21a sxth r2, r3
  9987. 80048fc: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  9988. 8004900: 691b ldr r3, [r3, #16]
  9989. 8004902: 3301 adds r3, #1
  9990. 8004904: 781b ldrb r3, [r3, #0]
  9991. 8004906: b21b sxth r3, r3
  9992. 8004908: 4313 orrs r3, r2
  9993. 800490a: b21b sxth r3, r3
  9994. 800490c: b29a uxth r2, r3
  9995. spFrameData.frameHeader.frameId =
  9996. 800490e: f507 73a0 add.w r3, r7, #320 @ 0x140
  9997. 8004912: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  9998. 8004916: 801a strh r2, [r3, #0]
  9999. }
  10000. if (frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH) {
  10001. 8004918: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10002. 800491c: 2b04 cmp r3, #4
  10003. 800491e: d923 bls.n 8004968 <UartRxTask+0x204>
  10004. frameCommandRaw = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH - FRAME_COMMAND_LENGTH]));
  10005. 8004920: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10006. 8004924: 691b ldr r3, [r3, #16]
  10007. 8004926: 3304 adds r3, #4
  10008. 8004928: 781b ldrb r3, [r3, #0]
  10009. 800492a: 021b lsls r3, r3, #8
  10010. 800492c: b21a sxth r2, r3
  10011. 800492e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10012. 8004932: 691b ldr r3, [r3, #16]
  10013. 8004934: 3303 adds r3, #3
  10014. 8004936: 781b ldrb r3, [r3, #0]
  10015. 8004938: b21b sxth r3, r3
  10016. 800493a: 4313 orrs r3, r2
  10017. 800493c: b21b sxth r3, r3
  10018. 800493e: f8a7 3126 strh.w r3, [r7, #294] @ 0x126
  10019. spFrameData.frameHeader.frameCommand = (SerialProtocolCommands)(frameCommandRaw & 0x7FFF);
  10020. 8004942: f8b7 3126 ldrh.w r3, [r7, #294] @ 0x126
  10021. 8004946: b2da uxtb r2, r3
  10022. 8004948: f507 73a0 add.w r3, r7, #320 @ 0x140
  10023. 800494c: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10024. 8004950: 709a strb r2, [r3, #2]
  10025. spFrameData.frameHeader.isResponseFrame = (frameCommandRaw & 0x8000) != 0 ? pdTRUE : pdFALSE;
  10026. 8004952: f9b7 3126 ldrsh.w r3, [r7, #294] @ 0x126
  10027. 8004956: 13db asrs r3, r3, #15
  10028. 8004958: b21b sxth r3, r3
  10029. 800495a: f003 0201 and.w r2, r3, #1
  10030. 800495e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10031. 8004962: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10032. 8004966: 609a str r2, [r3, #8]
  10033. }
  10034. if ((frameBytesCount > FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH) && ((spFrameData.frameHeader.frameCommand & 0x8000) != 0)) {
  10035. 8004968: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10036. 800496c: 2b05 cmp r3, #5
  10037. 800496e: d913 bls.n 8004998 <UartRxTask+0x234>
  10038. 8004970: f507 73a0 add.w r3, r7, #320 @ 0x140
  10039. 8004974: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10040. 8004978: 789b ldrb r3, [r3, #2]
  10041. 800497a: f403 4300 and.w r3, r3, #32768 @ 0x8000
  10042. 800497e: 2b00 cmp r3, #0
  10043. 8004980: d00a beq.n 8004998 <UartRxTask+0x234>
  10044. spFrameData.frameHeader.respStatus = (SerialProtocolRespStatus)(uartTaskData->frameData[FRAME_ID_LENGTH + FRAME_COMMAND_LENGTH + FRAME_RESP_STAT_LENGTH]);
  10045. 8004982: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10046. 8004986: 691b ldr r3, [r3, #16]
  10047. 8004988: 3305 adds r3, #5
  10048. 800498a: 781b ldrb r3, [r3, #0]
  10049. 800498c: b25a sxtb r2, r3
  10050. 800498e: f507 73a0 add.w r3, r7, #320 @ 0x140
  10051. 8004992: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10052. 8004996: 70da strb r2, [r3, #3]
  10053. }
  10054. if (frameBytesCount >= FRAME_HEADER_LENGTH) {
  10055. 8004998: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10056. 800499c: 2b07 cmp r3, #7
  10057. 800499e: d920 bls.n 80049e2 <UartRxTask+0x27e>
  10058. spFrameData.frameHeader.frameDataLength = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[FRAME_HEADER_LENGTH - FRAME_RESP_STAT_LENGTH - FRAME_DATALEN_LENGTH]));
  10059. 80049a0: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10060. 80049a4: 691b ldr r3, [r3, #16]
  10061. 80049a6: 3306 adds r3, #6
  10062. 80049a8: 781b ldrb r3, [r3, #0]
  10063. 80049aa: 021b lsls r3, r3, #8
  10064. 80049ac: b21a sxth r2, r3
  10065. 80049ae: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10066. 80049b2: 691b ldr r3, [r3, #16]
  10067. 80049b4: 3305 adds r3, #5
  10068. 80049b6: 781b ldrb r3, [r3, #0]
  10069. 80049b8: b21b sxth r3, r3
  10070. 80049ba: 4313 orrs r3, r2
  10071. 80049bc: b21b sxth r3, r3
  10072. 80049be: b29a uxth r2, r3
  10073. 80049c0: f507 73a0 add.w r3, r7, #320 @ 0x140
  10074. 80049c4: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10075. 80049c8: 809a strh r2, [r3, #4]
  10076. frameTotalLength = FRAME_HEADER_LENGTH + spFrameData.frameHeader.frameDataLength + FRAME_CRC_LENGTH;
  10077. 80049ca: f507 73a0 add.w r3, r7, #320 @ 0x140
  10078. 80049ce: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10079. 80049d2: 889b ldrh r3, [r3, #4]
  10080. 80049d4: 330a adds r3, #10
  10081. 80049d6: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10082. receverState = srRecieveData;
  10083. 80049da: 2302 movs r3, #2
  10084. 80049dc: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10085. 80049e0: e00e b.n 8004a00 <UartRxTask+0x29c>
  10086. } else {
  10087. proceed = pdFALSE;
  10088. 80049e2: 2300 movs r3, #0
  10089. 80049e4: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10090. 80049e8: e00a b.n 8004a00 <UartRxTask+0x29c>
  10091. }
  10092. } else {
  10093. if (frameBytesCount > 0) {
  10094. 80049ea: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10095. 80049ee: 2b00 cmp r3, #0
  10096. 80049f0: d003 beq.n 80049fa <UartRxTask+0x296>
  10097. receverState = srFail;
  10098. 80049f2: 2304 movs r3, #4
  10099. 80049f4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10100. 80049f8: e002 b.n 8004a00 <UartRxTask+0x29c>
  10101. } else {
  10102. proceed = pdFALSE;
  10103. 80049fa: 2300 movs r3, #0
  10104. 80049fc: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10105. }
  10106. }
  10107. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10108. 8004a00: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10109. 8004a04: 6a1b ldr r3, [r3, #32]
  10110. 8004a06: 4618 mov r0, r3
  10111. 8004a08: f00f f820 bl 8013a4c <osMutexRelease>
  10112. break;
  10113. 8004a0c: e13c b.n 8004c88 <UartRxTask+0x524>
  10114. case srRecieveData:
  10115. if (frameBytesCount >= frameTotalLength) {
  10116. 8004a0e: f8b7 2124 ldrh.w r2, [r7, #292] @ 0x124
  10117. 8004a12: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10118. 8004a16: 429a cmp r2, r3
  10119. 8004a18: d303 bcc.n 8004a22 <UartRxTask+0x2be>
  10120. receverState = srCheckCrc;
  10121. 8004a1a: 2301 movs r3, #1
  10122. 8004a1c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10123. } else {
  10124. proceed = pdFALSE;
  10125. }
  10126. break;
  10127. 8004a20: e132 b.n 8004c88 <UartRxTask+0x524>
  10128. proceed = pdFALSE;
  10129. 8004a22: 2300 movs r3, #0
  10130. 8004a24: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10131. break;
  10132. 8004a28: e12e b.n 8004c88 <UartRxTask+0x524>
  10133. case srCheckCrc:
  10134. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10135. 8004a2a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10136. 8004a2e: 6a1b ldr r3, [r3, #32]
  10137. 8004a30: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10138. 8004a34: 4618 mov r0, r3
  10139. 8004a36: f00e ffbe bl 80139b6 <osMutexAcquire>
  10140. frameCrc = CONVERT_BYTES_TO_SHORT_WORD (&(uartTaskData->frameData[frameTotalLength - FRAME_CRC_LENGTH]));
  10141. 8004a3a: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10142. 8004a3e: 691a ldr r2, [r3, #16]
  10143. 8004a40: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10144. 8004a44: 3b01 subs r3, #1
  10145. 8004a46: 4413 add r3, r2
  10146. 8004a48: 781b ldrb r3, [r3, #0]
  10147. 8004a4a: 021b lsls r3, r3, #8
  10148. 8004a4c: b21a sxth r2, r3
  10149. 8004a4e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10150. 8004a52: 6919 ldr r1, [r3, #16]
  10151. 8004a54: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10152. 8004a58: 3b02 subs r3, #2
  10153. 8004a5a: 440b add r3, r1
  10154. 8004a5c: 781b ldrb r3, [r3, #0]
  10155. 8004a5e: b21b sxth r3, r3
  10156. 8004a60: 4313 orrs r3, r2
  10157. 8004a62: b21b sxth r3, r3
  10158. 8004a64: f8a7 3122 strh.w r3, [r7, #290] @ 0x122
  10159. crc = HAL_CRC_Calculate (&hcrc, (uint32_t*)(uartTaskData->frameData), frameTotalLength - FRAME_CRC_LENGTH);
  10160. 8004a68: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10161. 8004a6c: 6919 ldr r1, [r3, #16]
  10162. 8004a6e: f8b7 313e ldrh.w r3, [r7, #318] @ 0x13e
  10163. 8004a72: 3b02 subs r3, #2
  10164. 8004a74: 461a mov r2, r3
  10165. 8004a76: 4887 ldr r0, [pc, #540] @ (8004c94 <UartRxTask+0x530>)
  10166. 8004a78: f002 ffac bl 80079d4 <HAL_CRC_Calculate>
  10167. 8004a7c: f8c7 0128 str.w r0, [r7, #296] @ 0x128
  10168. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10169. 8004a80: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10170. 8004a84: 6a1b ldr r3, [r3, #32]
  10171. 8004a86: 4618 mov r0, r3
  10172. 8004a88: f00e ffe0 bl 8013a4c <osMutexRelease>
  10173. crcPass = frameCrc == crc;
  10174. 8004a8c: f8b7 3122 ldrh.w r3, [r7, #290] @ 0x122
  10175. 8004a90: f8d7 2128 ldr.w r2, [r7, #296] @ 0x128
  10176. 8004a94: 429a cmp r2, r3
  10177. 8004a96: bf0c ite eq
  10178. 8004a98: 2301 moveq r3, #1
  10179. 8004a9a: 2300 movne r3, #0
  10180. 8004a9c: b2db uxtb r3, r3
  10181. 8004a9e: f8c7 3138 str.w r3, [r7, #312] @ 0x138
  10182. if (crcPass) {
  10183. 8004aa2: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10184. 8004aa6: 2b00 cmp r3, #0
  10185. 8004aa8: d003 beq.n 8004ab2 <UartRxTask+0x34e>
  10186. #ifdef SERIAL_PROTOCOL_DBG
  10187. printf ("Uart%d: Frame CRC PASS\n", uartTaskData->uartNumber);
  10188. #endif
  10189. receverState = srExecuteCmd;
  10190. 8004aaa: 2303 movs r3, #3
  10191. 8004aac: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10192. } else {
  10193. receverState = srFail;
  10194. }
  10195. break;
  10196. 8004ab0: e0ea b.n 8004c88 <UartRxTask+0x524>
  10197. receverState = srFail;
  10198. 8004ab2: 2304 movs r3, #4
  10199. 8004ab4: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10200. break;
  10201. 8004ab8: e0e6 b.n 8004c88 <UartRxTask+0x524>
  10202. case srExecuteCmd:
  10203. if ((uartTaskData->processDataCb != NULL) || (uartTaskData->processRxDataMsgBuffer != NULL)) {
  10204. 8004aba: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10205. 8004abe: 6a9b ldr r3, [r3, #40] @ 0x28
  10206. 8004ac0: 2b00 cmp r3, #0
  10207. 8004ac2: d104 bne.n 8004ace <UartRxTask+0x36a>
  10208. 8004ac4: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10209. 8004ac8: 6a5b ldr r3, [r3, #36] @ 0x24
  10210. 8004aca: 2b00 cmp r3, #0
  10211. 8004acc: d01e beq.n 8004b0c <UartRxTask+0x3a8>
  10212. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10213. 8004ace: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10214. 8004ad2: 6a1b ldr r3, [r3, #32]
  10215. 8004ad4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10216. 8004ad8: 4618 mov r0, r3
  10217. 8004ada: f00e ff6c bl 80139b6 <osMutexAcquire>
  10218. memcpy (spFrameData.dataBuffer, &(uartTaskData->frameData[FRAME_HEADER_LENGTH]), spFrameData.frameHeader.frameDataLength);
  10219. 8004ade: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10220. 8004ae2: 691b ldr r3, [r3, #16]
  10221. 8004ae4: f103 0108 add.w r1, r3, #8
  10222. 8004ae8: f507 73a0 add.w r3, r7, #320 @ 0x140
  10223. 8004aec: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10224. 8004af0: 889b ldrh r3, [r3, #4]
  10225. 8004af2: 461a mov r2, r3
  10226. 8004af4: f107 0310 add.w r3, r7, #16
  10227. 8004af8: 330c adds r3, #12
  10228. 8004afa: 4618 mov r0, r3
  10229. 8004afc: f013 fd89 bl 8018612 <memcpy>
  10230. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10231. 8004b00: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10232. 8004b04: 6a1b ldr r3, [r3, #32]
  10233. 8004b06: 4618 mov r0, r3
  10234. 8004b08: f00e ffa0 bl 8013a4c <osMutexRelease>
  10235. }
  10236. if (uartTaskData->processRxDataMsgBuffer != NULL) {
  10237. 8004b0c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10238. 8004b10: 6a5b ldr r3, [r3, #36] @ 0x24
  10239. 8004b12: 2b00 cmp r3, #0
  10240. 8004b14: d015 beq.n 8004b42 <UartRxTask+0x3de>
  10241. if (xMessageBufferSend (uartTaskData->processRxDataMsgBuffer, &spFrameData, sizeof (SerialProtocolFrameHeader) + spFrameData.frameHeader.frameDataLength, pdMS_TO_TICKS (200)) == pdFALSE) {
  10242. 8004b16: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10243. 8004b1a: 6a58 ldr r0, [r3, #36] @ 0x24
  10244. 8004b1c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10245. 8004b20: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10246. 8004b24: 889b ldrh r3, [r3, #4]
  10247. 8004b26: f103 020c add.w r2, r3, #12
  10248. 8004b2a: f107 0110 add.w r1, r7, #16
  10249. 8004b2e: 23c8 movs r3, #200 @ 0xc8
  10250. 8004b30: f010 f9ae bl 8014e90 <xStreamBufferSend>
  10251. 8004b34: 4603 mov r3, r0
  10252. 8004b36: 2b00 cmp r3, #0
  10253. 8004b38: d103 bne.n 8004b42 <UartRxTask+0x3de>
  10254. receverState = srFail;
  10255. 8004b3a: 2304 movs r3, #4
  10256. 8004b3c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10257. break;
  10258. 8004b40: e0a2 b.n 8004c88 <UartRxTask+0x524>
  10259. }
  10260. }
  10261. if (uartTaskData->processDataCb != NULL) {
  10262. 8004b42: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10263. 8004b46: 6a9b ldr r3, [r3, #40] @ 0x28
  10264. 8004b48: 2b00 cmp r3, #0
  10265. 8004b4a: d008 beq.n 8004b5e <UartRxTask+0x3fa>
  10266. uartTaskData->processDataCb (uartTaskData, &spFrameData);
  10267. 8004b4c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10268. 8004b50: 6a9b ldr r3, [r3, #40] @ 0x28
  10269. 8004b52: f107 0210 add.w r2, r7, #16
  10270. 8004b56: 4611 mov r1, r2
  10271. 8004b58: f8d7 012c ldr.w r0, [r7, #300] @ 0x12c
  10272. 8004b5c: 4798 blx r3
  10273. }
  10274. receverState = srFinish;
  10275. 8004b5e: 2305 movs r3, #5
  10276. 8004b60: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10277. break;
  10278. 8004b64: e090 b.n 8004c88 <UartRxTask+0x524>
  10279. case srFail:
  10280. dataToSend = 0;
  10281. 8004b66: 2300 movs r3, #0
  10282. 8004b68: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10283. if ((frameTimeout == pdTRUE) && (frameBytesCount > 2)) {
  10284. 8004b6c: f8d7 311c ldr.w r3, [r7, #284] @ 0x11c
  10285. 8004b70: 2b01 cmp r3, #1
  10286. 8004b72: d11c bne.n 8004bae <UartRxTask+0x44a>
  10287. 8004b74: f8b7 3124 ldrh.w r3, [r7, #292] @ 0x124
  10288. 8004b78: 2b02 cmp r3, #2
  10289. 8004b7a: d918 bls.n 8004bae <UartRxTask+0x44a>
  10290. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spTimeout, NULL, 0);
  10291. 8004b7c: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10292. 8004b80: 6898 ldr r0, [r3, #8]
  10293. 8004b82: f507 73a0 add.w r3, r7, #320 @ 0x140
  10294. 8004b86: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10295. 8004b8a: 8819 ldrh r1, [r3, #0]
  10296. 8004b8c: f507 73a0 add.w r3, r7, #320 @ 0x140
  10297. 8004b90: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10298. 8004b94: 789a ldrb r2, [r3, #2]
  10299. 8004b96: 2300 movs r3, #0
  10300. 8004b98: 9301 str r3, [sp, #4]
  10301. 8004b9a: 2300 movs r3, #0
  10302. 8004b9c: 9300 str r3, [sp, #0]
  10303. 8004b9e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  10304. 8004ba2: f7fe fd37 bl 8003614 <PrepareRespFrame>
  10305. 8004ba6: 4603 mov r3, r0
  10306. 8004ba8: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10307. 8004bac: e034 b.n 8004c18 <UartRxTask+0x4b4>
  10308. #ifdef SERIAL_PROTOCOL_DBG
  10309. printf ("Uart%d: RX data receiver timeout!\n", uartTaskData->uartNumber);
  10310. #endif
  10311. } else if (!crcPass) {
  10312. 8004bae: f8d7 3138 ldr.w r3, [r7, #312] @ 0x138
  10313. 8004bb2: 2b00 cmp r3, #0
  10314. 8004bb4: d118 bne.n 8004be8 <UartRxTask+0x484>
  10315. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spCrcFail, NULL, 0);
  10316. 8004bb6: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10317. 8004bba: 6898 ldr r0, [r3, #8]
  10318. 8004bbc: f507 73a0 add.w r3, r7, #320 @ 0x140
  10319. 8004bc0: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10320. 8004bc4: 8819 ldrh r1, [r3, #0]
  10321. 8004bc6: f507 73a0 add.w r3, r7, #320 @ 0x140
  10322. 8004bca: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10323. 8004bce: 789a ldrb r2, [r3, #2]
  10324. 8004bd0: 2300 movs r3, #0
  10325. 8004bd2: 9301 str r3, [sp, #4]
  10326. 8004bd4: 2300 movs r3, #0
  10327. 8004bd6: 9300 str r3, [sp, #0]
  10328. 8004bd8: f06f 0301 mvn.w r3, #1
  10329. 8004bdc: f7fe fd1a bl 8003614 <PrepareRespFrame>
  10330. 8004be0: 4603 mov r3, r0
  10331. 8004be2: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10332. 8004be6: e017 b.n 8004c18 <UartRxTask+0x4b4>
  10333. #ifdef SERIAL_PROTOCOL_DBG
  10334. printf ("Uart%d: Frame CRC FAIL\n", uartTaskData->uartNumber);
  10335. #endif
  10336. } else {
  10337. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData.frameHeader.frameId, spFrameData.frameHeader.frameCommand, spInternalError, NULL, 0);
  10338. 8004be8: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10339. 8004bec: 6898 ldr r0, [r3, #8]
  10340. 8004bee: f507 73a0 add.w r3, r7, #320 @ 0x140
  10341. 8004bf2: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10342. 8004bf6: 8819 ldrh r1, [r3, #0]
  10343. 8004bf8: f507 73a0 add.w r3, r7, #320 @ 0x140
  10344. 8004bfc: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10345. 8004c00: 789a ldrb r2, [r3, #2]
  10346. 8004c02: 2300 movs r3, #0
  10347. 8004c04: 9301 str r3, [sp, #4]
  10348. 8004c06: 2300 movs r3, #0
  10349. 8004c08: 9300 str r3, [sp, #0]
  10350. 8004c0a: f06f 0303 mvn.w r3, #3
  10351. 8004c0e: f7fe fd01 bl 8003614 <PrepareRespFrame>
  10352. 8004c12: 4603 mov r3, r0
  10353. 8004c14: f8a7 313c strh.w r3, [r7, #316] @ 0x13c
  10354. }
  10355. if (dataToSend > 0) {
  10356. 8004c18: f8b7 313c ldrh.w r3, [r7, #316] @ 0x13c
  10357. 8004c1c: 2b00 cmp r3, #0
  10358. 8004c1e: d00a beq.n 8004c36 <UartRxTask+0x4d2>
  10359. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  10360. 8004c20: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10361. 8004c24: 6b18 ldr r0, [r3, #48] @ 0x30
  10362. 8004c26: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10363. 8004c2a: 689b ldr r3, [r3, #8]
  10364. 8004c2c: f8b7 213c ldrh.w r2, [r7, #316] @ 0x13c
  10365. 8004c30: 4619 mov r1, r3
  10366. 8004c32: f00b fe93 bl 801095c <HAL_UART_Transmit_IT>
  10367. }
  10368. #ifdef SERIAL_PROTOCOL_DBG
  10369. printf ("Uart%d: TX bytes sent: %d\n", dataToSend, uartTaskData->uartNumber);
  10370. #endif
  10371. receverState = srFinish;
  10372. 8004c36: 2305 movs r3, #5
  10373. 8004c38: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10374. break;
  10375. 8004c3c: e024 b.n 8004c88 <UartRxTask+0x524>
  10376. case srFinish:
  10377. default:
  10378. osMutexAcquire (uartTaskData->rxDataBufferMutex, osWaitForever);
  10379. 8004c3e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10380. 8004c42: 6a1b ldr r3, [r3, #32]
  10381. 8004c44: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10382. 8004c48: 4618 mov r0, r3
  10383. 8004c4a: f00e feb4 bl 80139b6 <osMutexAcquire>
  10384. uartTaskData->frameBytesCount = 0;
  10385. 8004c4e: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10386. 8004c52: 2200 movs r2, #0
  10387. 8004c54: 82da strh r2, [r3, #22]
  10388. osMutexRelease (uartTaskData->rxDataBufferMutex);
  10389. 8004c56: f8d7 312c ldr.w r3, [r7, #300] @ 0x12c
  10390. 8004c5a: 6a1b ldr r3, [r3, #32]
  10391. 8004c5c: 4618 mov r0, r3
  10392. 8004c5e: f00e fef5 bl 8013a4c <osMutexRelease>
  10393. spFrameData.frameHeader.frameCommand = spUnknown;
  10394. 8004c62: f507 73a0 add.w r3, r7, #320 @ 0x140
  10395. 8004c66: f5a3 7398 sub.w r3, r3, #304 @ 0x130
  10396. 8004c6a: 2212 movs r2, #18
  10397. 8004c6c: 709a strb r2, [r3, #2]
  10398. frameTotalLength = 0;
  10399. 8004c6e: 2300 movs r3, #0
  10400. 8004c70: f8a7 313e strh.w r3, [r7, #318] @ 0x13e
  10401. outputDataBufferPos = 0;
  10402. 8004c74: 4b08 ldr r3, [pc, #32] @ (8004c98 <UartRxTask+0x534>)
  10403. 8004c76: 2200 movs r2, #0
  10404. 8004c78: 801a strh r2, [r3, #0]
  10405. receverState = srWaitForHeader;
  10406. 8004c7a: 2300 movs r3, #0
  10407. 8004c7c: f887 3133 strb.w r3, [r7, #307] @ 0x133
  10408. proceed = pdFALSE;
  10409. 8004c80: 2300 movs r3, #0
  10410. 8004c82: f8c7 3134 str.w r3, [r7, #308] @ 0x134
  10411. break;
  10412. 8004c86: bf00 nop
  10413. while (proceed) {
  10414. 8004c88: f8d7 3134 ldr.w r3, [r7, #308] @ 0x134
  10415. 8004c8c: 2b00 cmp r3, #0
  10416. 8004c8e: f47f ae09 bne.w 80048a4 <UartRxTask+0x140>
  10417. frameTimeout = !(xTaskNotifyWait (0, 0, &bytesRec, pdMS_TO_TICKS (FRAME_TIMEOUT_MS)));
  10418. 8004c92: e5b8 b.n 8004806 <UartRxTask+0xa2>
  10419. 8004c94: 24000540 .word 0x24000540
  10420. 8004c98: 240011b8 .word 0x240011b8
  10421. 08004c9c <Uart8ReceivedDataProcessCallback>:
  10422. }
  10423. }
  10424. }
  10425. }
  10426. void Uart8ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10427. 8004c9c: b580 push {r7, lr}
  10428. 8004c9e: b082 sub sp, #8
  10429. 8004ca0: af00 add r7, sp, #0
  10430. 8004ca2: 6078 str r0, [r7, #4]
  10431. 8004ca4: 6039 str r1, [r7, #0]
  10432. Uart1ReceivedDataProcessCallback (arg, spFrameData);
  10433. 8004ca6: 6839 ldr r1, [r7, #0]
  10434. 8004ca8: 6878 ldr r0, [r7, #4]
  10435. 8004caa: f000 f805 bl 8004cb8 <Uart1ReceivedDataProcessCallback>
  10436. }
  10437. 8004cae: bf00 nop
  10438. 8004cb0: 3708 adds r7, #8
  10439. 8004cb2: 46bd mov sp, r7
  10440. 8004cb4: bd80 pop {r7, pc}
  10441. ...
  10442. 08004cb8 <Uart1ReceivedDataProcessCallback>:
  10443. void Uart1ReceivedDataProcessCallback (void* arg, SerialProtocolFrameData* spFrameData) {
  10444. 8004cb8: b590 push {r4, r7, lr}
  10445. 8004cba: b0ab sub sp, #172 @ 0xac
  10446. 8004cbc: af06 add r7, sp, #24
  10447. 8004cbe: 6078 str r0, [r7, #4]
  10448. 8004cc0: 6039 str r1, [r7, #0]
  10449. 8004cc2: f107 0390 add.w r3, r7, #144 @ 0x90
  10450. 8004cc6: 3b88 subs r3, #136 @ 0x88
  10451. 8004cc8: 331f adds r3, #31
  10452. 8004cca: 095b lsrs r3, r3, #5
  10453. 8004ccc: 015c lsls r4, r3, #5
  10454. UartTaskData* uartTaskData = (UartTaskData*)arg;
  10455. 8004cce: 687b ldr r3, [r7, #4]
  10456. 8004cd0: 66fb str r3, [r7, #108] @ 0x6c
  10457. uint16_t dataToSend = 0;
  10458. 8004cd2: 2300 movs r3, #0
  10459. 8004cd4: f8a7 306a strh.w r3, [r7, #106] @ 0x6a
  10460. outputDataBufferPos = 0;
  10461. 8004cd8: 4bba ldr r3, [pc, #744] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10462. 8004cda: 2200 movs r2, #0
  10463. 8004cdc: 801a strh r2, [r3, #0]
  10464. uint16_t inputDataBufferPos = 0;
  10465. 8004cde: 2300 movs r3, #0
  10466. 8004ce0: f8a7 3054 strh.w r3, [r7, #84] @ 0x54
  10467. SerialProtocolRespStatus respStatus = spUnknownCommand;
  10468. 8004ce4: 23fd movs r3, #253 @ 0xfd
  10469. 8004ce6: f887 308f strb.w r3, [r7, #143] @ 0x8f
  10470. switch (spFrameData->frameHeader.frameCommand) {
  10471. 8004cea: 683b ldr r3, [r7, #0]
  10472. 8004cec: 789b ldrb r3, [r3, #2]
  10473. 8004cee: 2b11 cmp r3, #17
  10474. 8004cf0: f200 8522 bhi.w 8005738 <Uart1ReceivedDataProcessCallback+0xa80>
  10475. 8004cf4: a201 add r2, pc, #4 @ (adr r2, 8004cfc <Uart1ReceivedDataProcessCallback+0x44>)
  10476. 8004cf6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  10477. 8004cfa: bf00 nop
  10478. 8004cfc: 08004d45 .word 0x08004d45
  10479. 8004d00: 08004e55 .word 0x08004e55
  10480. 8004d04: 08005041 .word 0x08005041
  10481. 8004d08: 080050fd .word 0x080050fd
  10482. 8004d0c: 0800519f .word 0x0800519f
  10483. 8004d10: 080052bd .word 0x080052bd
  10484. 8004d14: 08005345 .word 0x08005345
  10485. 8004d18: 08005241 .word 0x08005241
  10486. 8004d1c: 0800539b .word 0x0800539b
  10487. 8004d20: 0800540d .word 0x0800540d
  10488. 8004d24: 08005473 .word 0x08005473
  10489. 8004d28: 080054d9 .word 0x080054d9
  10490. 8004d2c: 0800553b .word 0x0800553b
  10491. 8004d30: 0800559f .word 0x0800559f
  10492. 8004d34: 08005601 .word 0x08005601
  10493. 8004d38: 08005665 .word 0x08005665
  10494. 8004d3c: 08005691 .word 0x08005691
  10495. 8004d40: 080056e5 .word 0x080056e5
  10496. case spGetElectricalMeasurments:
  10497. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  10498. 8004d44: 4ba0 ldr r3, [pc, #640] @ (8004fc8 <Uart1ReceivedDataProcessCallback+0x310>)
  10499. 8004d46: 681b ldr r3, [r3, #0]
  10500. 8004d48: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10501. 8004d4c: 4618 mov r0, r3
  10502. 8004d4e: f00e fe32 bl 80139b6 <osMutexAcquire>
  10503. 8004d52: 4603 mov r3, r0
  10504. 8004d54: 2b00 cmp r3, #0
  10505. 8004d56: d178 bne.n 8004e4a <Uart1ReceivedDataProcessCallback+0x192>
  10506. for (int i = 0; i < 3; i++) {
  10507. 8004d58: 2300 movs r3, #0
  10508. 8004d5a: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  10509. 8004d5e: e00e b.n 8004d7e <Uart1ReceivedDataProcessCallback+0xc6>
  10510. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltageRMS[i], sizeof (float));
  10511. 8004d60: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  10512. 8004d64: 009b lsls r3, r3, #2
  10513. 8004d66: 4a99 ldr r2, [pc, #612] @ (8004fcc <Uart1ReceivedDataProcessCallback+0x314>)
  10514. 8004d68: 441a add r2, r3
  10515. 8004d6a: 2304 movs r3, #4
  10516. 8004d6c: 4995 ldr r1, [pc, #596] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10517. 8004d6e: 4898 ldr r0, [pc, #608] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10518. 8004d70: f7fe fbb6 bl 80034e0 <WriteDataToBuffer>
  10519. for (int i = 0; i < 3; i++) {
  10520. 8004d74: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  10521. 8004d78: 3301 adds r3, #1
  10522. 8004d7a: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  10523. 8004d7e: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  10524. 8004d82: 2b02 cmp r3, #2
  10525. 8004d84: ddec ble.n 8004d60 <Uart1ReceivedDataProcessCallback+0xa8>
  10526. }
  10527. for (int i = 0; i < 3; i++) {
  10528. 8004d86: 2300 movs r3, #0
  10529. 8004d88: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  10530. 8004d8c: e010 b.n 8004db0 <Uart1ReceivedDataProcessCallback+0xf8>
  10531. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.voltagePeak[i], sizeof (float));
  10532. 8004d8e: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  10533. 8004d92: 3302 adds r3, #2
  10534. 8004d94: 009b lsls r3, r3, #2
  10535. 8004d96: 4a8d ldr r2, [pc, #564] @ (8004fcc <Uart1ReceivedDataProcessCallback+0x314>)
  10536. 8004d98: 4413 add r3, r2
  10537. 8004d9a: 1d1a adds r2, r3, #4
  10538. 8004d9c: 2304 movs r3, #4
  10539. 8004d9e: 4989 ldr r1, [pc, #548] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10540. 8004da0: 488b ldr r0, [pc, #556] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10541. 8004da2: f7fe fb9d bl 80034e0 <WriteDataToBuffer>
  10542. for (int i = 0; i < 3; i++) {
  10543. 8004da6: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  10544. 8004daa: 3301 adds r3, #1
  10545. 8004dac: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  10546. 8004db0: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  10547. 8004db4: 2b02 cmp r3, #2
  10548. 8004db6: ddea ble.n 8004d8e <Uart1ReceivedDataProcessCallback+0xd6>
  10549. }
  10550. for (int i = 0; i < 3; i++) {
  10551. 8004db8: 2300 movs r3, #0
  10552. 8004dba: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  10553. 8004dbe: e00f b.n 8004de0 <Uart1ReceivedDataProcessCallback+0x128>
  10554. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentRMS[i], sizeof (float));
  10555. 8004dc0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  10556. 8004dc4: 3306 adds r3, #6
  10557. 8004dc6: 009b lsls r3, r3, #2
  10558. 8004dc8: 4a80 ldr r2, [pc, #512] @ (8004fcc <Uart1ReceivedDataProcessCallback+0x314>)
  10559. 8004dca: 441a add r2, r3
  10560. 8004dcc: 2304 movs r3, #4
  10561. 8004dce: 497d ldr r1, [pc, #500] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10562. 8004dd0: 487f ldr r0, [pc, #508] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10563. 8004dd2: f7fe fb85 bl 80034e0 <WriteDataToBuffer>
  10564. for (int i = 0; i < 3; i++) {
  10565. 8004dd6: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  10566. 8004dda: 3301 adds r3, #1
  10567. 8004ddc: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  10568. 8004de0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  10569. 8004de4: 2b02 cmp r3, #2
  10570. 8004de6: ddeb ble.n 8004dc0 <Uart1ReceivedDataProcessCallback+0x108>
  10571. }
  10572. for (int i = 0; i < 3; i++) {
  10573. 8004de8: 2300 movs r3, #0
  10574. 8004dea: 67fb str r3, [r7, #124] @ 0x7c
  10575. 8004dec: e00d b.n 8004e0a <Uart1ReceivedDataProcessCallback+0x152>
  10576. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.currentPeak[i], sizeof (float));
  10577. 8004dee: 6ffb ldr r3, [r7, #124] @ 0x7c
  10578. 8004df0: 3308 adds r3, #8
  10579. 8004df2: 009b lsls r3, r3, #2
  10580. 8004df4: 4a75 ldr r2, [pc, #468] @ (8004fcc <Uart1ReceivedDataProcessCallback+0x314>)
  10581. 8004df6: 4413 add r3, r2
  10582. 8004df8: 1d1a adds r2, r3, #4
  10583. 8004dfa: 2304 movs r3, #4
  10584. 8004dfc: 4971 ldr r1, [pc, #452] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10585. 8004dfe: 4874 ldr r0, [pc, #464] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10586. 8004e00: f7fe fb6e bl 80034e0 <WriteDataToBuffer>
  10587. for (int i = 0; i < 3; i++) {
  10588. 8004e04: 6ffb ldr r3, [r7, #124] @ 0x7c
  10589. 8004e06: 3301 adds r3, #1
  10590. 8004e08: 67fb str r3, [r7, #124] @ 0x7c
  10591. 8004e0a: 6ffb ldr r3, [r7, #124] @ 0x7c
  10592. 8004e0c: 2b02 cmp r3, #2
  10593. 8004e0e: ddee ble.n 8004dee <Uart1ReceivedDataProcessCallback+0x136>
  10594. }
  10595. for (int i = 0; i < 3; i++) {
  10596. 8004e10: 2300 movs r3, #0
  10597. 8004e12: 67bb str r3, [r7, #120] @ 0x78
  10598. 8004e14: e00c b.n 8004e30 <Uart1ReceivedDataProcessCallback+0x178>
  10599. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &resMeasurements.power[i], sizeof (float));
  10600. 8004e16: 6fbb ldr r3, [r7, #120] @ 0x78
  10601. 8004e18: 330c adds r3, #12
  10602. 8004e1a: 009b lsls r3, r3, #2
  10603. 8004e1c: 4a6b ldr r2, [pc, #428] @ (8004fcc <Uart1ReceivedDataProcessCallback+0x314>)
  10604. 8004e1e: 441a add r2, r3
  10605. 8004e20: 2304 movs r3, #4
  10606. 8004e22: 4968 ldr r1, [pc, #416] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10607. 8004e24: 486a ldr r0, [pc, #424] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10608. 8004e26: f7fe fb5b bl 80034e0 <WriteDataToBuffer>
  10609. for (int i = 0; i < 3; i++) {
  10610. 8004e2a: 6fbb ldr r3, [r7, #120] @ 0x78
  10611. 8004e2c: 3301 adds r3, #1
  10612. 8004e2e: 67bb str r3, [r7, #120] @ 0x78
  10613. 8004e30: 6fbb ldr r3, [r7, #120] @ 0x78
  10614. 8004e32: 2b02 cmp r3, #2
  10615. 8004e34: ddef ble.n 8004e16 <Uart1ReceivedDataProcessCallback+0x15e>
  10616. }
  10617. osMutexRelease (resMeasurementsMutex);
  10618. 8004e36: 4b64 ldr r3, [pc, #400] @ (8004fc8 <Uart1ReceivedDataProcessCallback+0x310>)
  10619. 8004e38: 681b ldr r3, [r3, #0]
  10620. 8004e3a: 4618 mov r0, r3
  10621. 8004e3c: f00e fe06 bl 8013a4c <osMutexRelease>
  10622. respStatus = spOK;
  10623. 8004e40: 2300 movs r3, #0
  10624. 8004e42: f887 308f strb.w r3, [r7, #143] @ 0x8f
  10625. } else {
  10626. respStatus = spInternalError;
  10627. }
  10628. break;
  10629. 8004e46: f000 bc7e b.w 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  10630. respStatus = spInternalError;
  10631. 8004e4a: 23fc movs r3, #252 @ 0xfc
  10632. 8004e4c: f887 308f strb.w r3, [r7, #143] @ 0x8f
  10633. break;
  10634. 8004e50: f000 bc79 b.w 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  10635. case spGetSensorMeasurments:
  10636. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10637. 8004e54: 4b5f ldr r3, [pc, #380] @ (8004fd4 <Uart1ReceivedDataProcessCallback+0x31c>)
  10638. 8004e56: 681b ldr r3, [r3, #0]
  10639. 8004e58: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10640. 8004e5c: 4618 mov r0, r3
  10641. 8004e5e: f00e fdaa bl 80139b6 <osMutexAcquire>
  10642. 8004e62: 4603 mov r3, r0
  10643. 8004e64: 2b00 cmp r3, #0
  10644. 8004e66: f040 80e7 bne.w 8005038 <Uart1ReceivedDataProcessCallback+0x380>
  10645. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[0], sizeof (float));
  10646. 8004e6a: 2304 movs r3, #4
  10647. 8004e6c: 4a5a ldr r2, [pc, #360] @ (8004fd8 <Uart1ReceivedDataProcessCallback+0x320>)
  10648. 8004e6e: 4955 ldr r1, [pc, #340] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10649. 8004e70: 4857 ldr r0, [pc, #348] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10650. 8004e72: f7fe fb35 bl 80034e0 <WriteDataToBuffer>
  10651. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvTemperature[1], sizeof (float));
  10652. 8004e76: 2304 movs r3, #4
  10653. 8004e78: 4a58 ldr r2, [pc, #352] @ (8004fdc <Uart1ReceivedDataProcessCallback+0x324>)
  10654. 8004e7a: 4952 ldr r1, [pc, #328] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10655. 8004e7c: 4854 ldr r0, [pc, #336] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10656. 8004e7e: f7fe fb2f bl 80034e0 <WriteDataToBuffer>
  10657. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.fanVoltage, sizeof (float));
  10658. 8004e82: 2304 movs r3, #4
  10659. 8004e84: 4a56 ldr r2, [pc, #344] @ (8004fe0 <Uart1ReceivedDataProcessCallback+0x328>)
  10660. 8004e86: 494f ldr r1, [pc, #316] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10661. 8004e88: 4851 ldr r0, [pc, #324] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10662. 8004e8a: f7fe fb29 bl 80034e0 <WriteDataToBuffer>
  10663. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderX, sizeof (float));
  10664. 8004e8e: 2304 movs r3, #4
  10665. 8004e90: 4a54 ldr r2, [pc, #336] @ (8004fe4 <Uart1ReceivedDataProcessCallback+0x32c>)
  10666. 8004e92: 494c ldr r1, [pc, #304] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10667. 8004e94: 484e ldr r0, [pc, #312] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10668. 8004e96: f7fe fb23 bl 80034e0 <WriteDataToBuffer>
  10669. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.pvEncoderY, sizeof (float));
  10670. 8004e9a: 2304 movs r3, #4
  10671. 8004e9c: 4a52 ldr r2, [pc, #328] @ (8004fe8 <Uart1ReceivedDataProcessCallback+0x330>)
  10672. 8004e9e: 4949 ldr r1, [pc, #292] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10673. 8004ea0: 484b ldr r0, [pc, #300] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10674. 8004ea2: f7fe fb1d bl 80034e0 <WriteDataToBuffer>
  10675. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXStatus, sizeof (uint8_t));
  10676. 8004ea6: 2301 movs r3, #1
  10677. 8004ea8: 4a50 ldr r2, [pc, #320] @ (8004fec <Uart1ReceivedDataProcessCallback+0x334>)
  10678. 8004eaa: 4946 ldr r1, [pc, #280] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10679. 8004eac: 4848 ldr r0, [pc, #288] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10680. 8004eae: f7fe fb17 bl 80034e0 <WriteDataToBuffer>
  10681. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYStatus, sizeof (uint8_t));
  10682. 8004eb2: 2301 movs r3, #1
  10683. 8004eb4: 4a4e ldr r2, [pc, #312] @ (8004ff0 <Uart1ReceivedDataProcessCallback+0x338>)
  10684. 8004eb6: 4943 ldr r1, [pc, #268] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10685. 8004eb8: 4845 ldr r0, [pc, #276] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10686. 8004eba: f7fe fb11 bl 80034e0 <WriteDataToBuffer>
  10687. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXAveCurrent, sizeof (float));
  10688. 8004ebe: 2304 movs r3, #4
  10689. 8004ec0: 4a4c ldr r2, [pc, #304] @ (8004ff4 <Uart1ReceivedDataProcessCallback+0x33c>)
  10690. 8004ec2: 4940 ldr r1, [pc, #256] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10691. 8004ec4: 4842 ldr r0, [pc, #264] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10692. 8004ec6: f7fe fb0b bl 80034e0 <WriteDataToBuffer>
  10693. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYAveCurrent, sizeof (float));
  10694. 8004eca: 2304 movs r3, #4
  10695. 8004ecc: 4a4a ldr r2, [pc, #296] @ (8004ff8 <Uart1ReceivedDataProcessCallback+0x340>)
  10696. 8004ece: 493d ldr r1, [pc, #244] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10697. 8004ed0: 483f ldr r0, [pc, #252] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10698. 8004ed2: f7fe fb05 bl 80034e0 <WriteDataToBuffer>
  10699. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorXPeakCurrent, sizeof (float));
  10700. 8004ed6: 2304 movs r3, #4
  10701. 8004ed8: 4a48 ldr r2, [pc, #288] @ (8004ffc <Uart1ReceivedDataProcessCallback+0x344>)
  10702. 8004eda: 493a ldr r1, [pc, #232] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10703. 8004edc: 483c ldr r0, [pc, #240] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10704. 8004ede: f7fe faff bl 80034e0 <WriteDataToBuffer>
  10705. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.motorYPeakCurrent, sizeof (float));
  10706. 8004ee2: 2304 movs r3, #4
  10707. 8004ee4: 4a46 ldr r2, [pc, #280] @ (8005000 <Uart1ReceivedDataProcessCallback+0x348>)
  10708. 8004ee6: 4937 ldr r1, [pc, #220] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10709. 8004ee8: 4839 ldr r0, [pc, #228] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10710. 8004eea: f7fe faf9 bl 80034e0 <WriteDataToBuffer>
  10711. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchUp, sizeof (uint8_t));
  10712. 8004eee: 2301 movs r3, #1
  10713. 8004ef0: 4a44 ldr r2, [pc, #272] @ (8005004 <Uart1ReceivedDataProcessCallback+0x34c>)
  10714. 8004ef2: 4934 ldr r1, [pc, #208] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10715. 8004ef4: 4836 ldr r0, [pc, #216] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10716. 8004ef6: f7fe faf3 bl 80034e0 <WriteDataToBuffer>
  10717. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchDown, sizeof (uint8_t));
  10718. 8004efa: 2301 movs r3, #1
  10719. 8004efc: 4a42 ldr r2, [pc, #264] @ (8005008 <Uart1ReceivedDataProcessCallback+0x350>)
  10720. 8004efe: 4931 ldr r1, [pc, #196] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10721. 8004f00: 4833 ldr r0, [pc, #204] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10722. 8004f02: f7fe faed bl 80034e0 <WriteDataToBuffer>
  10723. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitXSwitchCenter, sizeof (uint8_t));
  10724. 8004f06: 2301 movs r3, #1
  10725. 8004f08: 4a40 ldr r2, [pc, #256] @ (800500c <Uart1ReceivedDataProcessCallback+0x354>)
  10726. 8004f0a: 492e ldr r1, [pc, #184] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10727. 8004f0c: 4830 ldr r0, [pc, #192] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10728. 8004f0e: f7fe fae7 bl 80034e0 <WriteDataToBuffer>
  10729. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchUp, sizeof (uint8_t));
  10730. 8004f12: 2301 movs r3, #1
  10731. 8004f14: 4a3e ldr r2, [pc, #248] @ (8005010 <Uart1ReceivedDataProcessCallback+0x358>)
  10732. 8004f16: 492b ldr r1, [pc, #172] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10733. 8004f18: 482d ldr r0, [pc, #180] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10734. 8004f1a: f7fe fae1 bl 80034e0 <WriteDataToBuffer>
  10735. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchDown, sizeof (uint8_t));
  10736. 8004f1e: 2301 movs r3, #1
  10737. 8004f20: 4a3c ldr r2, [pc, #240] @ (8005014 <Uart1ReceivedDataProcessCallback+0x35c>)
  10738. 8004f22: 4928 ldr r1, [pc, #160] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10739. 8004f24: 482a ldr r0, [pc, #168] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10740. 8004f26: f7fe fadb bl 80034e0 <WriteDataToBuffer>
  10741. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.limitYSwitchCenter, sizeof (uint8_t));
  10742. 8004f2a: 2301 movs r3, #1
  10743. 8004f2c: 4a3a ldr r2, [pc, #232] @ (8005018 <Uart1ReceivedDataProcessCallback+0x360>)
  10744. 8004f2e: 4925 ldr r1, [pc, #148] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10745. 8004f30: 4827 ldr r0, [pc, #156] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10746. 8004f32: f7fe fad5 bl 80034e0 <WriteDataToBuffer>
  10747. uint8_t comparatorOutput = HAL_COMP_GetOutputLevel (&hcomp1) == COMP_OUTPUT_LEVEL_HIGH ? 1 : 0;
  10748. 8004f36: 4839 ldr r0, [pc, #228] @ (800501c <Uart1ReceivedDataProcessCallback+0x364>)
  10749. 8004f38: f002 fb72 bl 8007620 <HAL_COMP_GetOutputLevel>
  10750. 8004f3c: 4603 mov r3, r0
  10751. 8004f3e: 2b01 cmp r3, #1
  10752. 8004f40: bf0c ite eq
  10753. 8004f42: 2301 moveq r3, #1
  10754. 8004f44: 2300 movne r3, #0
  10755. 8004f46: b2db uxtb r3, r3
  10756. 8004f48: f887 3057 strb.w r3, [r7, #87] @ 0x57
  10757. sensorsInfo.powerSupplyFailMask = ~((comparatorOutput << 1) | HAL_GPIO_ReadPin (GPIOD, GPIO_PIN_3)) & 0x01;
  10758. 8004f4c: f897 3057 ldrb.w r3, [r7, #87] @ 0x57
  10759. 8004f50: 005c lsls r4, r3, #1
  10760. 8004f52: 2108 movs r1, #8
  10761. 8004f54: 4832 ldr r0, [pc, #200] @ (8005020 <Uart1ReceivedDataProcessCallback+0x368>)
  10762. 8004f56: f006 f91b bl 800b190 <HAL_GPIO_ReadPin>
  10763. 8004f5a: 4603 mov r3, r0
  10764. 8004f5c: 4323 orrs r3, r4
  10765. 8004f5e: f003 0301 and.w r3, r3, #1
  10766. 8004f62: 2b00 cmp r3, #0
  10767. 8004f64: bf0c ite eq
  10768. 8004f66: 2301 moveq r3, #1
  10769. 8004f68: 2300 movne r3, #0
  10770. 8004f6a: b2db uxtb r3, r3
  10771. 8004f6c: 461a mov r2, r3
  10772. 8004f6e: 4b1a ldr r3, [pc, #104] @ (8004fd8 <Uart1ReceivedDataProcessCallback+0x320>)
  10773. 8004f70: f883 202e strb.w r2, [r3, #46] @ 0x2e
  10774. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.powerSupplyFailMask, sizeof (uint8_t));
  10775. 8004f74: 2301 movs r3, #1
  10776. 8004f76: 4a2b ldr r2, [pc, #172] @ (8005024 <Uart1ReceivedDataProcessCallback+0x36c>)
  10777. 8004f78: 4912 ldr r1, [pc, #72] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10778. 8004f7a: 4815 ldr r0, [pc, #84] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10779. 8004f7c: f7fe fab0 bl 80034e0 <WriteDataToBuffer>
  10780. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentXPosition, sizeof (float));
  10781. 8004f80: 2304 movs r3, #4
  10782. 8004f82: 4a29 ldr r2, [pc, #164] @ (8005028 <Uart1ReceivedDataProcessCallback+0x370>)
  10783. 8004f84: 490f ldr r1, [pc, #60] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10784. 8004f86: 4812 ldr r0, [pc, #72] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10785. 8004f88: f7fe faaa bl 80034e0 <WriteDataToBuffer>
  10786. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.currentYPosition, sizeof (float));
  10787. 8004f8c: 2304 movs r3, #4
  10788. 8004f8e: 4a27 ldr r2, [pc, #156] @ (800502c <Uart1ReceivedDataProcessCallback+0x374>)
  10789. 8004f90: 490c ldr r1, [pc, #48] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10790. 8004f92: 480f ldr r0, [pc, #60] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10791. 8004f94: f7fe faa4 bl 80034e0 <WriteDataToBuffer>
  10792. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionXWeak, sizeof (uint8_t));
  10793. 8004f98: 2301 movs r3, #1
  10794. 8004f9a: 4a25 ldr r2, [pc, #148] @ (8005030 <Uart1ReceivedDataProcessCallback+0x378>)
  10795. 8004f9c: 4909 ldr r1, [pc, #36] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10796. 8004f9e: 480c ldr r0, [pc, #48] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10797. 8004fa0: f7fe fa9e bl 80034e0 <WriteDataToBuffer>
  10798. WriteDataToBuffer (outputDataBuffer, &outputDataBufferPos, &sensorsInfo.positionYWeak, sizeof (uint8_t));
  10799. 8004fa4: 2301 movs r3, #1
  10800. 8004fa6: 4a23 ldr r2, [pc, #140] @ (8005034 <Uart1ReceivedDataProcessCallback+0x37c>)
  10801. 8004fa8: 4906 ldr r1, [pc, #24] @ (8004fc4 <Uart1ReceivedDataProcessCallback+0x30c>)
  10802. 8004faa: 4809 ldr r0, [pc, #36] @ (8004fd0 <Uart1ReceivedDataProcessCallback+0x318>)
  10803. 8004fac: f7fe fa98 bl 80034e0 <WriteDataToBuffer>
  10804. osMutexRelease (sensorsInfoMutex);
  10805. 8004fb0: 4b08 ldr r3, [pc, #32] @ (8004fd4 <Uart1ReceivedDataProcessCallback+0x31c>)
  10806. 8004fb2: 681b ldr r3, [r3, #0]
  10807. 8004fb4: 4618 mov r0, r3
  10808. 8004fb6: f00e fd49 bl 8013a4c <osMutexRelease>
  10809. respStatus = spOK;
  10810. 8004fba: 2300 movs r3, #0
  10811. 8004fbc: f887 308f strb.w r3, [r7, #143] @ 0x8f
  10812. } else {
  10813. respStatus = spInternalError;
  10814. }
  10815. break;
  10816. 8004fc0: e3c1 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  10817. 8004fc2: bf00 nop
  10818. 8004fc4: 240011b8 .word 0x240011b8
  10819. 8004fc8: 240008d8 .word 0x240008d8
  10820. 8004fcc: 24000900 .word 0x24000900
  10821. 8004fd0: 24001138 .word 0x24001138
  10822. 8004fd4: 240008dc .word 0x240008dc
  10823. 8004fd8: 24000940 .word 0x24000940
  10824. 8004fdc: 24000944 .word 0x24000944
  10825. 8004fe0: 24000948 .word 0x24000948
  10826. 8004fe4: 2400094c .word 0x2400094c
  10827. 8004fe8: 24000950 .word 0x24000950
  10828. 8004fec: 24000954 .word 0x24000954
  10829. 8004ff0: 24000955 .word 0x24000955
  10830. 8004ff4: 24000958 .word 0x24000958
  10831. 8004ff8: 2400095c .word 0x2400095c
  10832. 8004ffc: 24000960 .word 0x24000960
  10833. 8005000: 24000964 .word 0x24000964
  10834. 8005004: 24000968 .word 0x24000968
  10835. 8005008: 24000969 .word 0x24000969
  10836. 800500c: 2400096a .word 0x2400096a
  10837. 8005010: 2400096b .word 0x2400096b
  10838. 8005014: 2400096c .word 0x2400096c
  10839. 8005018: 2400096d .word 0x2400096d
  10840. 800501c: 24000514 .word 0x24000514
  10841. 8005020: 58020c00 .word 0x58020c00
  10842. 8005024: 2400096e .word 0x2400096e
  10843. 8005028: 24000970 .word 0x24000970
  10844. 800502c: 24000974 .word 0x24000974
  10845. 8005030: 24000978 .word 0x24000978
  10846. 8005034: 24000979 .word 0x24000979
  10847. respStatus = spInternalError;
  10848. 8005038: 23fc movs r3, #252 @ 0xfc
  10849. 800503a: f887 308f strb.w r3, [r7, #143] @ 0x8f
  10850. break;
  10851. 800503e: e382 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  10852. case spSetFanSpeed:
  10853. osTimerStop (fanTimerHandle);
  10854. 8005040: 4bb4 ldr r3, [pc, #720] @ (8005314 <Uart1ReceivedDataProcessCallback+0x65c>)
  10855. 8005042: 681b ldr r3, [r3, #0]
  10856. 8005044: 4618 mov r0, r3
  10857. 8005046: f00e fbf9 bl 801383c <osTimerStop>
  10858. int32_t fanTimerPeriod = 0;
  10859. 800504a: 2300 movs r3, #0
  10860. 800504c: 653b str r3, [r7, #80] @ 0x50
  10861. uint32_t pulse = 0;
  10862. 800504e: 2300 movs r3, #0
  10863. 8005050: 64fb str r3, [r7, #76] @ 0x4c
  10864. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, &pulse);
  10865. 8005052: 683b ldr r3, [r7, #0]
  10866. 8005054: 330c adds r3, #12
  10867. 8005056: f107 024c add.w r2, r7, #76 @ 0x4c
  10868. 800505a: f107 0154 add.w r1, r7, #84 @ 0x54
  10869. 800505e: 4618 mov r0, r3
  10870. 8005060: f7fe faa4 bl 80035ac <ReadWordFromBufer>
  10871. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&fanTimerPeriod);
  10872. 8005064: 683b ldr r3, [r7, #0]
  10873. 8005066: 330c adds r3, #12
  10874. 8005068: f107 0250 add.w r2, r7, #80 @ 0x50
  10875. 800506c: f107 0154 add.w r1, r7, #84 @ 0x54
  10876. 8005070: 4618 mov r0, r3
  10877. 8005072: f7fe fa9b bl 80035ac <ReadWordFromBufer>
  10878. fanTimerConfigOC.Pulse = pulse * 10;
  10879. 8005076: 6cfa ldr r2, [r7, #76] @ 0x4c
  10880. 8005078: 4613 mov r3, r2
  10881. 800507a: 009b lsls r3, r3, #2
  10882. 800507c: 4413 add r3, r2
  10883. 800507e: 005b lsls r3, r3, #1
  10884. 8005080: 461a mov r2, r3
  10885. 8005082: 4ba5 ldr r3, [pc, #660] @ (8005318 <Uart1ReceivedDataProcessCallback+0x660>)
  10886. 8005084: 605a str r2, [r3, #4]
  10887. if (HAL_TIM_PWM_ConfigChannel (&htim1, &fanTimerConfigOC, TIM_CHANNEL_2) != HAL_OK) {
  10888. 8005086: 2204 movs r2, #4
  10889. 8005088: 49a3 ldr r1, [pc, #652] @ (8005318 <Uart1ReceivedDataProcessCallback+0x660>)
  10890. 800508a: 48a4 ldr r0, [pc, #656] @ (800531c <Uart1ReceivedDataProcessCallback+0x664>)
  10891. 800508c: f00a fc3e bl 800f90c <HAL_TIM_PWM_ConfigChannel>
  10892. 8005090: 4603 mov r3, r0
  10893. 8005092: 2b00 cmp r3, #0
  10894. 8005094: d001 beq.n 800509a <Uart1ReceivedDataProcessCallback+0x3e2>
  10895. Error_Handler ();
  10896. 8005096: f7fc fd79 bl 8001b8c <Error_Handler>
  10897. }
  10898. if (fanTimerPeriod > 0) {
  10899. 800509a: 6d3b ldr r3, [r7, #80] @ 0x50
  10900. 800509c: 2b00 cmp r3, #0
  10901. 800509e: dd0f ble.n 80050c0 <Uart1ReceivedDataProcessCallback+0x408>
  10902. osTimerStart (fanTimerHandle, fanTimerPeriod * 1000);
  10903. 80050a0: 4b9c ldr r3, [pc, #624] @ (8005314 <Uart1ReceivedDataProcessCallback+0x65c>)
  10904. 80050a2: 681a ldr r2, [r3, #0]
  10905. 80050a4: 6d3b ldr r3, [r7, #80] @ 0x50
  10906. 80050a6: f44f 717a mov.w r1, #1000 @ 0x3e8
  10907. 80050aa: fb01 f303 mul.w r3, r1, r3
  10908. 80050ae: 4619 mov r1, r3
  10909. 80050b0: 4610 mov r0, r2
  10910. 80050b2: f00e fb95 bl 80137e0 <osTimerStart>
  10911. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10912. 80050b6: 2104 movs r1, #4
  10913. 80050b8: 4898 ldr r0, [pc, #608] @ (800531c <Uart1ReceivedDataProcessCallback+0x664>)
  10914. 80050ba: f00a f97b bl 800f3b4 <HAL_TIM_PWM_Start>
  10915. 80050be: e019 b.n 80050f4 <Uart1ReceivedDataProcessCallback+0x43c>
  10916. } else if (fanTimerPeriod == 0) {
  10917. 80050c0: 6d3b ldr r3, [r7, #80] @ 0x50
  10918. 80050c2: 2b00 cmp r3, #0
  10919. 80050c4: d109 bne.n 80050da <Uart1ReceivedDataProcessCallback+0x422>
  10920. osTimerStop (fanTimerHandle);
  10921. 80050c6: 4b93 ldr r3, [pc, #588] @ (8005314 <Uart1ReceivedDataProcessCallback+0x65c>)
  10922. 80050c8: 681b ldr r3, [r3, #0]
  10923. 80050ca: 4618 mov r0, r3
  10924. 80050cc: f00e fbb6 bl 801383c <osTimerStop>
  10925. HAL_TIM_PWM_Stop (&htim1, TIM_CHANNEL_2);
  10926. 80050d0: 2104 movs r1, #4
  10927. 80050d2: 4892 ldr r0, [pc, #584] @ (800531c <Uart1ReceivedDataProcessCallback+0x664>)
  10928. 80050d4: f00a fa7c bl 800f5d0 <HAL_TIM_PWM_Stop>
  10929. 80050d8: e00c b.n 80050f4 <Uart1ReceivedDataProcessCallback+0x43c>
  10930. } else if (fanTimerPeriod == -1) {
  10931. 80050da: 6d3b ldr r3, [r7, #80] @ 0x50
  10932. 80050dc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  10933. 80050e0: d108 bne.n 80050f4 <Uart1ReceivedDataProcessCallback+0x43c>
  10934. osTimerStop (fanTimerHandle);
  10935. 80050e2: 4b8c ldr r3, [pc, #560] @ (8005314 <Uart1ReceivedDataProcessCallback+0x65c>)
  10936. 80050e4: 681b ldr r3, [r3, #0]
  10937. 80050e6: 4618 mov r0, r3
  10938. 80050e8: f00e fba8 bl 801383c <osTimerStop>
  10939. HAL_TIM_PWM_Start (&htim1, TIM_CHANNEL_2);
  10940. 80050ec: 2104 movs r1, #4
  10941. 80050ee: 488b ldr r0, [pc, #556] @ (800531c <Uart1ReceivedDataProcessCallback+0x664>)
  10942. 80050f0: f00a f960 bl 800f3b4 <HAL_TIM_PWM_Start>
  10943. }
  10944. respStatus = spOK;
  10945. 80050f4: 2300 movs r3, #0
  10946. 80050f6: f887 308f strb.w r3, [r7, #143] @ 0x8f
  10947. break;
  10948. 80050fa: e324 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  10949. case spSetMotorXOn:
  10950. int32_t motorXPWMPulse = 0;
  10951. 80050fc: 2300 movs r3, #0
  10952. 80050fe: 64bb str r3, [r7, #72] @ 0x48
  10953. int32_t motorXTimerPeriod = 0;
  10954. 8005100: 2300 movs r3, #0
  10955. 8005102: 647b str r3, [r7, #68] @ 0x44
  10956. uint32_t motorXStatus = 0;
  10957. 8005104: 2300 movs r3, #0
  10958. 8005106: 65bb str r3, [r7, #88] @ 0x58
  10959. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXPWMPulse);
  10960. 8005108: 683b ldr r3, [r7, #0]
  10961. 800510a: 330c adds r3, #12
  10962. 800510c: f107 0248 add.w r2, r7, #72 @ 0x48
  10963. 8005110: f107 0154 add.w r1, r7, #84 @ 0x54
  10964. 8005114: 4618 mov r0, r3
  10965. 8005116: f7fe fa49 bl 80035ac <ReadWordFromBufer>
  10966. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXTimerPeriod);
  10967. 800511a: 683b ldr r3, [r7, #0]
  10968. 800511c: 330c adds r3, #12
  10969. 800511e: f107 0244 add.w r2, r7, #68 @ 0x44
  10970. 8005122: f107 0154 add.w r1, r7, #84 @ 0x54
  10971. 8005126: 4618 mov r0, r3
  10972. 8005128: f7fe fa40 bl 80035ac <ReadWordFromBufer>
  10973. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  10974. 800512c: 4b7c ldr r3, [pc, #496] @ (8005320 <Uart1ReceivedDataProcessCallback+0x668>)
  10975. 800512e: 681b ldr r3, [r3, #0]
  10976. 8005130: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  10977. 8005134: 4618 mov r0, r3
  10978. 8005136: f00e fc3e bl 80139b6 <osMutexAcquire>
  10979. 800513a: 4603 mov r3, r0
  10980. 800513c: 2b00 cmp r3, #0
  10981. 800513e: d12a bne.n 8005196 <Uart1ReceivedDataProcessCallback+0x4de>
  10982. motorXStatus =
  10983. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_1, TIM_CHANNEL_2, motorXTimerHandle, motorXPWMPulse, motorXTimerPeriod, sensorsInfo.limitXSwitchUp, sensorsInfo.limitXSwitchDown);
  10984. 8005140: 4b78 ldr r3, [pc, #480] @ (8005324 <Uart1ReceivedDataProcessCallback+0x66c>)
  10985. 8005142: 681b ldr r3, [r3, #0]
  10986. 8005144: 6cba ldr r2, [r7, #72] @ 0x48
  10987. 8005146: 6c79 ldr r1, [r7, #68] @ 0x44
  10988. 8005148: 4877 ldr r0, [pc, #476] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  10989. 800514a: f890 0028 ldrb.w r0, [r0, #40] @ 0x28
  10990. 800514e: 4c76 ldr r4, [pc, #472] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  10991. 8005150: f894 4029 ldrb.w r4, [r4, #41] @ 0x29
  10992. 8005154: 9404 str r4, [sp, #16]
  10993. 8005156: 9003 str r0, [sp, #12]
  10994. 8005158: 9102 str r1, [sp, #8]
  10995. 800515a: 9201 str r2, [sp, #4]
  10996. 800515c: 9300 str r3, [sp, #0]
  10997. 800515e: 2304 movs r3, #4
  10998. 8005160: 2200 movs r2, #0
  10999. 8005162: 4972 ldr r1, [pc, #456] @ (800532c <Uart1ReceivedDataProcessCallback+0x674>)
  11000. 8005164: 4872 ldr r0, [pc, #456] @ (8005330 <Uart1ReceivedDataProcessCallback+0x678>)
  11001. 8005166: f7fd fcf5 bl 8002b54 <MotorControl>
  11002. 800516a: 4603 mov r3, r0
  11003. motorXStatus =
  11004. 800516c: 65bb str r3, [r7, #88] @ 0x58
  11005. sensorsInfo.motorXStatus = motorXStatus;
  11006. 800516e: 6dbb ldr r3, [r7, #88] @ 0x58
  11007. 8005170: b2da uxtb r2, r3
  11008. 8005172: 4b6d ldr r3, [pc, #436] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  11009. 8005174: 751a strb r2, [r3, #20]
  11010. if (motorXStatus == 1) {
  11011. 8005176: 6dbb ldr r3, [r7, #88] @ 0x58
  11012. 8005178: 2b01 cmp r3, #1
  11013. 800517a: d103 bne.n 8005184 <Uart1ReceivedDataProcessCallback+0x4cc>
  11014. sensorsInfo.motorXPeakCurrent = 0.0;
  11015. 800517c: 4b6a ldr r3, [pc, #424] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  11016. 800517e: f04f 0200 mov.w r2, #0
  11017. 8005182: 621a str r2, [r3, #32]
  11018. }
  11019. osMutexRelease (sensorsInfoMutex);
  11020. 8005184: 4b66 ldr r3, [pc, #408] @ (8005320 <Uart1ReceivedDataProcessCallback+0x668>)
  11021. 8005186: 681b ldr r3, [r3, #0]
  11022. 8005188: 4618 mov r0, r3
  11023. 800518a: f00e fc5f bl 8013a4c <osMutexRelease>
  11024. respStatus = spOK;
  11025. 800518e: 2300 movs r3, #0
  11026. 8005190: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11027. } else {
  11028. respStatus = spInternalError;
  11029. }
  11030. break;
  11031. 8005194: e2d7 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11032. respStatus = spInternalError;
  11033. 8005196: 23fc movs r3, #252 @ 0xfc
  11034. 8005198: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11035. break;
  11036. 800519c: e2d3 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11037. case spSetMotorYOn:
  11038. int32_t motorYPWMPulse = 0;
  11039. 800519e: 2300 movs r3, #0
  11040. 80051a0: 643b str r3, [r7, #64] @ 0x40
  11041. int32_t motorYTimerPeriod = 0;
  11042. 80051a2: 2300 movs r3, #0
  11043. 80051a4: 63fb str r3, [r7, #60] @ 0x3c
  11044. uint32_t motorYStatus = 0;
  11045. 80051a6: 2300 movs r3, #0
  11046. 80051a8: 65fb str r3, [r7, #92] @ 0x5c
  11047. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYPWMPulse);
  11048. 80051aa: 683b ldr r3, [r7, #0]
  11049. 80051ac: 330c adds r3, #12
  11050. 80051ae: f107 0240 add.w r2, r7, #64 @ 0x40
  11051. 80051b2: f107 0154 add.w r1, r7, #84 @ 0x54
  11052. 80051b6: 4618 mov r0, r3
  11053. 80051b8: f7fe f9f8 bl 80035ac <ReadWordFromBufer>
  11054. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYTimerPeriod);
  11055. 80051bc: 683b ldr r3, [r7, #0]
  11056. 80051be: 330c adds r3, #12
  11057. 80051c0: f107 023c add.w r2, r7, #60 @ 0x3c
  11058. 80051c4: f107 0154 add.w r1, r7, #84 @ 0x54
  11059. 80051c8: 4618 mov r0, r3
  11060. 80051ca: f7fe f9ef bl 80035ac <ReadWordFromBufer>
  11061. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11062. 80051ce: 4b54 ldr r3, [pc, #336] @ (8005320 <Uart1ReceivedDataProcessCallback+0x668>)
  11063. 80051d0: 681b ldr r3, [r3, #0]
  11064. 80051d2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11065. 80051d6: 4618 mov r0, r3
  11066. 80051d8: f00e fbed bl 80139b6 <osMutexAcquire>
  11067. 80051dc: 4603 mov r3, r0
  11068. 80051de: 2b00 cmp r3, #0
  11069. 80051e0: d12a bne.n 8005238 <Uart1ReceivedDataProcessCallback+0x580>
  11070. motorYStatus =
  11071. MotorControl (&htim3, &motorXYTimerConfigOC, TIM_CHANNEL_3, TIM_CHANNEL_4, motorYTimerHandle, motorYPWMPulse, motorYTimerPeriod, sensorsInfo.limitYSwitchUp, sensorsInfo.limitYSwitchDown);
  11072. 80051e2: 4b54 ldr r3, [pc, #336] @ (8005334 <Uart1ReceivedDataProcessCallback+0x67c>)
  11073. 80051e4: 681b ldr r3, [r3, #0]
  11074. 80051e6: 6c3a ldr r2, [r7, #64] @ 0x40
  11075. 80051e8: 6bf9 ldr r1, [r7, #60] @ 0x3c
  11076. 80051ea: 484f ldr r0, [pc, #316] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  11077. 80051ec: f890 002b ldrb.w r0, [r0, #43] @ 0x2b
  11078. 80051f0: 4c4d ldr r4, [pc, #308] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  11079. 80051f2: f894 402c ldrb.w r4, [r4, #44] @ 0x2c
  11080. 80051f6: 9404 str r4, [sp, #16]
  11081. 80051f8: 9003 str r0, [sp, #12]
  11082. 80051fa: 9102 str r1, [sp, #8]
  11083. 80051fc: 9201 str r2, [sp, #4]
  11084. 80051fe: 9300 str r3, [sp, #0]
  11085. 8005200: 230c movs r3, #12
  11086. 8005202: 2208 movs r2, #8
  11087. 8005204: 4949 ldr r1, [pc, #292] @ (800532c <Uart1ReceivedDataProcessCallback+0x674>)
  11088. 8005206: 484a ldr r0, [pc, #296] @ (8005330 <Uart1ReceivedDataProcessCallback+0x678>)
  11089. 8005208: f7fd fca4 bl 8002b54 <MotorControl>
  11090. 800520c: 4603 mov r3, r0
  11091. motorYStatus =
  11092. 800520e: 65fb str r3, [r7, #92] @ 0x5c
  11093. sensorsInfo.motorYStatus = motorYStatus;
  11094. 8005210: 6dfb ldr r3, [r7, #92] @ 0x5c
  11095. 8005212: b2da uxtb r2, r3
  11096. 8005214: 4b44 ldr r3, [pc, #272] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  11097. 8005216: 755a strb r2, [r3, #21]
  11098. if (motorYStatus == 1) {
  11099. 8005218: 6dfb ldr r3, [r7, #92] @ 0x5c
  11100. 800521a: 2b01 cmp r3, #1
  11101. 800521c: d103 bne.n 8005226 <Uart1ReceivedDataProcessCallback+0x56e>
  11102. sensorsInfo.motorYPeakCurrent = 0.0;
  11103. 800521e: 4b42 ldr r3, [pc, #264] @ (8005328 <Uart1ReceivedDataProcessCallback+0x670>)
  11104. 8005220: f04f 0200 mov.w r2, #0
  11105. 8005224: 625a str r2, [r3, #36] @ 0x24
  11106. }
  11107. osMutexRelease (sensorsInfoMutex);
  11108. 8005226: 4b3e ldr r3, [pc, #248] @ (8005320 <Uart1ReceivedDataProcessCallback+0x668>)
  11109. 8005228: 681b ldr r3, [r3, #0]
  11110. 800522a: 4618 mov r0, r3
  11111. 800522c: f00e fc0e bl 8013a4c <osMutexRelease>
  11112. respStatus = spOK;
  11113. 8005230: 2300 movs r3, #0
  11114. 8005232: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11115. } else {
  11116. respStatus = spInternalError;
  11117. }
  11118. break;
  11119. 8005236: e286 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11120. respStatus = spInternalError;
  11121. 8005238: 23fc movs r3, #252 @ 0xfc
  11122. 800523a: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11123. break;
  11124. 800523e: e282 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11125. case spSetDiodeOn:
  11126. osTimerStop (debugLedTimerHandle);
  11127. 8005240: 4b3d ldr r3, [pc, #244] @ (8005338 <Uart1ReceivedDataProcessCallback+0x680>)
  11128. 8005242: 681b ldr r3, [r3, #0]
  11129. 8005244: 4618 mov r0, r3
  11130. 8005246: f00e faf9 bl 801383c <osTimerStop>
  11131. int32_t dbgLedTimerPeriod = 0;
  11132. 800524a: 2300 movs r3, #0
  11133. 800524c: 63bb str r3, [r7, #56] @ 0x38
  11134. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&dbgLedTimerPeriod);
  11135. 800524e: 683b ldr r3, [r7, #0]
  11136. 8005250: 330c adds r3, #12
  11137. 8005252: f107 0238 add.w r2, r7, #56 @ 0x38
  11138. 8005256: f107 0154 add.w r1, r7, #84 @ 0x54
  11139. 800525a: 4618 mov r0, r3
  11140. 800525c: f7fe f9a6 bl 80035ac <ReadWordFromBufer>
  11141. if (dbgLedTimerPeriod > 0) {
  11142. 8005260: 6bbb ldr r3, [r7, #56] @ 0x38
  11143. 8005262: 2b00 cmp r3, #0
  11144. 8005264: dd0e ble.n 8005284 <Uart1ReceivedDataProcessCallback+0x5cc>
  11145. osTimerStart (debugLedTimerHandle, dbgLedTimerPeriod * 1000);
  11146. 8005266: 4b34 ldr r3, [pc, #208] @ (8005338 <Uart1ReceivedDataProcessCallback+0x680>)
  11147. 8005268: 681a ldr r2, [r3, #0]
  11148. 800526a: 6bbb ldr r3, [r7, #56] @ 0x38
  11149. 800526c: f44f 717a mov.w r1, #1000 @ 0x3e8
  11150. 8005270: fb01 f303 mul.w r3, r1, r3
  11151. 8005274: 4619 mov r1, r3
  11152. 8005276: 4610 mov r0, r2
  11153. 8005278: f00e fab2 bl 80137e0 <osTimerStart>
  11154. DbgLEDOn (DBG_LED1);
  11155. 800527c: 2010 movs r0, #16
  11156. 800527e: f7fd fbdb bl 8002a38 <DbgLEDOn>
  11157. 8005282: e017 b.n 80052b4 <Uart1ReceivedDataProcessCallback+0x5fc>
  11158. } else if (dbgLedTimerPeriod == 0) {
  11159. 8005284: 6bbb ldr r3, [r7, #56] @ 0x38
  11160. 8005286: 2b00 cmp r3, #0
  11161. 8005288: d108 bne.n 800529c <Uart1ReceivedDataProcessCallback+0x5e4>
  11162. osTimerStop (debugLedTimerHandle);
  11163. 800528a: 4b2b ldr r3, [pc, #172] @ (8005338 <Uart1ReceivedDataProcessCallback+0x680>)
  11164. 800528c: 681b ldr r3, [r3, #0]
  11165. 800528e: 4618 mov r0, r3
  11166. 8005290: f00e fad4 bl 801383c <osTimerStop>
  11167. DbgLEDOff (DBG_LED1);
  11168. 8005294: 2010 movs r0, #16
  11169. 8005296: f7fd fbe1 bl 8002a5c <DbgLEDOff>
  11170. 800529a: e00b b.n 80052b4 <Uart1ReceivedDataProcessCallback+0x5fc>
  11171. } else if (dbgLedTimerPeriod == -1) {
  11172. 800529c: 6bbb ldr r3, [r7, #56] @ 0x38
  11173. 800529e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  11174. 80052a2: d107 bne.n 80052b4 <Uart1ReceivedDataProcessCallback+0x5fc>
  11175. osTimerStop (debugLedTimerHandle);
  11176. 80052a4: 4b24 ldr r3, [pc, #144] @ (8005338 <Uart1ReceivedDataProcessCallback+0x680>)
  11177. 80052a6: 681b ldr r3, [r3, #0]
  11178. 80052a8: 4618 mov r0, r3
  11179. 80052aa: f00e fac7 bl 801383c <osTimerStop>
  11180. DbgLEDOn (DBG_LED1);
  11181. 80052ae: 2010 movs r0, #16
  11182. 80052b0: f7fd fbc2 bl 8002a38 <DbgLEDOn>
  11183. }
  11184. respStatus = spOK;
  11185. 80052b4: 2300 movs r3, #0
  11186. 80052b6: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11187. break;
  11188. 80052ba: e244 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11189. case spSetmotorXMaxCurrent:
  11190. float motorXMaxCurrent = 0;
  11191. 80052bc: f04f 0300 mov.w r3, #0
  11192. 80052c0: 637b str r3, [r7, #52] @ 0x34
  11193. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorXMaxCurrent);
  11194. 80052c2: 683b ldr r3, [r7, #0]
  11195. 80052c4: 330c adds r3, #12
  11196. 80052c6: f107 0234 add.w r2, r7, #52 @ 0x34
  11197. 80052ca: f107 0154 add.w r1, r7, #84 @ 0x54
  11198. 80052ce: 4618 mov r0, r3
  11199. 80052d0: f7fe f96c bl 80035ac <ReadWordFromBufer>
  11200. uint32_t dacDataCh1 = (uint32_t)(4095 * motorXMaxCurrent / (EXT_VREF_mV * 0.001));
  11201. 80052d4: edd7 7a0d vldr s15, [r7, #52] @ 0x34
  11202. 80052d8: ed9f 7a19 vldr s14, [pc, #100] @ 8005340 <Uart1ReceivedDataProcessCallback+0x688>
  11203. 80052dc: ee67 7a87 vmul.f32 s15, s15, s14
  11204. 80052e0: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11205. 80052e4: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11206. 80052e8: ee86 7b05 vdiv.f64 d7, d6, d5
  11207. 80052ec: eefc 7bc7 vcvt.u32.f64 s15, d7
  11208. 80052f0: ee17 3a90 vmov r3, s15
  11209. 80052f4: 663b str r3, [r7, #96] @ 0x60
  11210. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_1, DAC_ALIGN_12B_R, dacDataCh1);
  11211. 80052f6: 6e3b ldr r3, [r7, #96] @ 0x60
  11212. 80052f8: 2200 movs r2, #0
  11213. 80052fa: 2100 movs r1, #0
  11214. 80052fc: 480f ldr r0, [pc, #60] @ (800533c <Uart1ReceivedDataProcessCallback+0x684>)
  11215. 80052fe: f002 fdda bl 8007eb6 <HAL_DAC_SetValue>
  11216. HAL_DAC_Start (&hdac1, DAC_CHANNEL_1);
  11217. 8005302: 2100 movs r1, #0
  11218. 8005304: 480d ldr r0, [pc, #52] @ (800533c <Uart1ReceivedDataProcessCallback+0x684>)
  11219. 8005306: f002 fd29 bl 8007d5c <HAL_DAC_Start>
  11220. respStatus = spOK;
  11221. 800530a: 2300 movs r3, #0
  11222. 800530c: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11223. break;
  11224. 8005310: e219 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11225. 8005312: bf00 nop
  11226. 8005314: 240007dc .word 0x240007dc
  11227. 8005318: 2400086c .word 0x2400086c
  11228. 800531c: 2400059c .word 0x2400059c
  11229. 8005320: 240008dc .word 0x240008dc
  11230. 8005324: 2400080c .word 0x2400080c
  11231. 8005328: 24000940 .word 0x24000940
  11232. 800532c: 24000888 .word 0x24000888
  11233. 8005330: 240005e8 .word 0x240005e8
  11234. 8005334: 2400083c .word 0x2400083c
  11235. 8005338: 240007ac .word 0x240007ac
  11236. 800533c: 24000564 .word 0x24000564
  11237. 8005340: 457ff000 .word 0x457ff000
  11238. case spSetmotorYMaxCurrent:
  11239. float motorYMaxCurrent = 0;
  11240. 8005344: f04f 0300 mov.w r3, #0
  11241. 8005348: 633b str r3, [r7, #48] @ 0x30
  11242. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&motorYMaxCurrent);
  11243. 800534a: 683b ldr r3, [r7, #0]
  11244. 800534c: 330c adds r3, #12
  11245. 800534e: f107 0230 add.w r2, r7, #48 @ 0x30
  11246. 8005352: f107 0154 add.w r1, r7, #84 @ 0x54
  11247. 8005356: 4618 mov r0, r3
  11248. 8005358: f7fe f928 bl 80035ac <ReadWordFromBufer>
  11249. uint32_t dacDataCh2 = (uint32_t)(4095 * motorYMaxCurrent / (EXT_VREF_mV * 0.001));
  11250. 800535c: edd7 7a0c vldr s15, [r7, #48] @ 0x30
  11251. 8005360: ed1f 7a09 vldr s14, [pc, #-36] @ 8005340 <Uart1ReceivedDataProcessCallback+0x688>
  11252. 8005364: ee67 7a87 vmul.f32 s15, s15, s14
  11253. 8005368: eeb7 6ae7 vcvt.f64.f32 d6, s15
  11254. 800536c: eeb0 5b08 vmov.f64 d5, #8 @ 0x40400000 3.0
  11255. 8005370: ee86 7b05 vdiv.f64 d7, d6, d5
  11256. 8005374: eefc 7bc7 vcvt.u32.f64 s15, d7
  11257. 8005378: ee17 3a90 vmov r3, s15
  11258. 800537c: 667b str r3, [r7, #100] @ 0x64
  11259. HAL_DAC_SetValue (&hdac1, DAC_CHANNEL_2, DAC_ALIGN_12B_R, dacDataCh2);
  11260. 800537e: 6e7b ldr r3, [r7, #100] @ 0x64
  11261. 8005380: 2200 movs r2, #0
  11262. 8005382: 2110 movs r1, #16
  11263. 8005384: 48b9 ldr r0, [pc, #740] @ (800566c <Uart1ReceivedDataProcessCallback+0x9b4>)
  11264. 8005386: f002 fd96 bl 8007eb6 <HAL_DAC_SetValue>
  11265. HAL_DAC_Start (&hdac1, DAC_CHANNEL_2);
  11266. 800538a: 2110 movs r1, #16
  11267. 800538c: 48b7 ldr r0, [pc, #732] @ (800566c <Uart1ReceivedDataProcessCallback+0x9b4>)
  11268. 800538e: f002 fce5 bl 8007d5c <HAL_DAC_Start>
  11269. respStatus = spOK;
  11270. 8005392: 2300 movs r3, #0
  11271. 8005394: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11272. break;
  11273. 8005398: e1d5 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11274. case spClearPeakMeasurments:
  11275. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11276. 800539a: 4bb5 ldr r3, [pc, #724] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11277. 800539c: 681b ldr r3, [r3, #0]
  11278. 800539e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11279. 80053a2: 4618 mov r0, r3
  11280. 80053a4: f00e fb07 bl 80139b6 <osMutexAcquire>
  11281. 80053a8: 4603 mov r3, r0
  11282. 80053aa: 2b00 cmp r3, #0
  11283. 80053ac: d12a bne.n 8005404 <Uart1ReceivedDataProcessCallback+0x74c>
  11284. for (int i = 0; i < 3; i++) {
  11285. 80053ae: 2300 movs r3, #0
  11286. 80053b0: 677b str r3, [r7, #116] @ 0x74
  11287. 80053b2: e01b b.n 80053ec <Uart1ReceivedDataProcessCallback+0x734>
  11288. resMeasurements.voltagePeak[i] = resMeasurements.voltageRMS[i];
  11289. 80053b4: 4aaf ldr r2, [pc, #700] @ (8005674 <Uart1ReceivedDataProcessCallback+0x9bc>)
  11290. 80053b6: 6f7b ldr r3, [r7, #116] @ 0x74
  11291. 80053b8: 009b lsls r3, r3, #2
  11292. 80053ba: 4413 add r3, r2
  11293. 80053bc: 681a ldr r2, [r3, #0]
  11294. 80053be: 49ad ldr r1, [pc, #692] @ (8005674 <Uart1ReceivedDataProcessCallback+0x9bc>)
  11295. 80053c0: 6f7b ldr r3, [r7, #116] @ 0x74
  11296. 80053c2: 3302 adds r3, #2
  11297. 80053c4: 009b lsls r3, r3, #2
  11298. 80053c6: 440b add r3, r1
  11299. 80053c8: 3304 adds r3, #4
  11300. 80053ca: 601a str r2, [r3, #0]
  11301. resMeasurements.currentPeak[i] = resMeasurements.currentRMS[i];
  11302. 80053cc: 4aa9 ldr r2, [pc, #676] @ (8005674 <Uart1ReceivedDataProcessCallback+0x9bc>)
  11303. 80053ce: 6f7b ldr r3, [r7, #116] @ 0x74
  11304. 80053d0: 3306 adds r3, #6
  11305. 80053d2: 009b lsls r3, r3, #2
  11306. 80053d4: 4413 add r3, r2
  11307. 80053d6: 681a ldr r2, [r3, #0]
  11308. 80053d8: 49a6 ldr r1, [pc, #664] @ (8005674 <Uart1ReceivedDataProcessCallback+0x9bc>)
  11309. 80053da: 6f7b ldr r3, [r7, #116] @ 0x74
  11310. 80053dc: 3308 adds r3, #8
  11311. 80053de: 009b lsls r3, r3, #2
  11312. 80053e0: 440b add r3, r1
  11313. 80053e2: 3304 adds r3, #4
  11314. 80053e4: 601a str r2, [r3, #0]
  11315. for (int i = 0; i < 3; i++) {
  11316. 80053e6: 6f7b ldr r3, [r7, #116] @ 0x74
  11317. 80053e8: 3301 adds r3, #1
  11318. 80053ea: 677b str r3, [r7, #116] @ 0x74
  11319. 80053ec: 6f7b ldr r3, [r7, #116] @ 0x74
  11320. 80053ee: 2b02 cmp r3, #2
  11321. 80053f0: dde0 ble.n 80053b4 <Uart1ReceivedDataProcessCallback+0x6fc>
  11322. }
  11323. osMutexRelease (resMeasurementsMutex);
  11324. 80053f2: 4b9f ldr r3, [pc, #636] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11325. 80053f4: 681b ldr r3, [r3, #0]
  11326. 80053f6: 4618 mov r0, r3
  11327. 80053f8: f00e fb28 bl 8013a4c <osMutexRelease>
  11328. respStatus = spOK;
  11329. 80053fc: 2300 movs r3, #0
  11330. 80053fe: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11331. } else {
  11332. respStatus = spInternalError;
  11333. }
  11334. break;
  11335. 8005402: e1a0 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11336. respStatus = spInternalError;
  11337. 8005404: 23fc movs r3, #252 @ 0xfc
  11338. 8005406: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11339. break;
  11340. 800540a: e19c b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11341. case spSetEncoderXValue:
  11342. float enocoderXValue = 0;
  11343. 800540c: f04f 0300 mov.w r3, #0
  11344. 8005410: 62fb str r3, [r7, #44] @ 0x2c
  11345. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderXValue);
  11346. 8005412: 683b ldr r3, [r7, #0]
  11347. 8005414: 330c adds r3, #12
  11348. 8005416: f107 022c add.w r2, r7, #44 @ 0x2c
  11349. 800541a: f107 0154 add.w r1, r7, #84 @ 0x54
  11350. 800541e: 4618 mov r0, r3
  11351. 8005420: f7fe f8c4 bl 80035ac <ReadWordFromBufer>
  11352. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11353. 8005424: 4b94 ldr r3, [pc, #592] @ (8005678 <Uart1ReceivedDataProcessCallback+0x9c0>)
  11354. 8005426: 681b ldr r3, [r3, #0]
  11355. 8005428: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11356. 800542c: 4618 mov r0, r3
  11357. 800542e: f00e fac2 bl 80139b6 <osMutexAcquire>
  11358. 8005432: 4603 mov r3, r0
  11359. 8005434: 2b00 cmp r3, #0
  11360. 8005436: d118 bne.n 800546a <Uart1ReceivedDataProcessCallback+0x7b2>
  11361. sensorsInfo.pvEncoderX = enocoderXValue;
  11362. 8005438: 6afb ldr r3, [r7, #44] @ 0x2c
  11363. 800543a: 4a90 ldr r2, [pc, #576] @ (800567c <Uart1ReceivedDataProcessCallback+0x9c4>)
  11364. 800543c: 60d3 str r3, [r2, #12]
  11365. sensorsInfo.currentXPosition = 100 * enocoderXValue / MAX_X_AXE_ANGLE;
  11366. 800543e: edd7 7a0b vldr s15, [r7, #44] @ 0x2c
  11367. 8005442: ed9f 7a8f vldr s14, [pc, #572] @ 8005680 <Uart1ReceivedDataProcessCallback+0x9c8>
  11368. 8005446: ee27 7a87 vmul.f32 s14, s15, s14
  11369. 800544a: eddf 6a8e vldr s13, [pc, #568] @ 8005684 <Uart1ReceivedDataProcessCallback+0x9cc>
  11370. 800544e: eec7 7a26 vdiv.f32 s15, s14, s13
  11371. 8005452: 4b8a ldr r3, [pc, #552] @ (800567c <Uart1ReceivedDataProcessCallback+0x9c4>)
  11372. 8005454: edc3 7a0c vstr s15, [r3, #48] @ 0x30
  11373. osMutexRelease (sensorsInfoMutex);
  11374. 8005458: 4b87 ldr r3, [pc, #540] @ (8005678 <Uart1ReceivedDataProcessCallback+0x9c0>)
  11375. 800545a: 681b ldr r3, [r3, #0]
  11376. 800545c: 4618 mov r0, r3
  11377. 800545e: f00e faf5 bl 8013a4c <osMutexRelease>
  11378. respStatus = spOK;
  11379. 8005462: 2300 movs r3, #0
  11380. 8005464: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11381. } else {
  11382. respStatus = spInternalError;
  11383. }
  11384. break;
  11385. 8005468: e16d b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11386. respStatus = spInternalError;
  11387. 800546a: 23fc movs r3, #252 @ 0xfc
  11388. 800546c: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11389. break;
  11390. 8005470: e169 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11391. case spSetEncoderYValue:
  11392. float enocoderYValue = 0;
  11393. 8005472: f04f 0300 mov.w r3, #0
  11394. 8005476: 62bb str r3, [r7, #40] @ 0x28
  11395. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&enocoderYValue);
  11396. 8005478: 683b ldr r3, [r7, #0]
  11397. 800547a: 330c adds r3, #12
  11398. 800547c: f107 0228 add.w r2, r7, #40 @ 0x28
  11399. 8005480: f107 0154 add.w r1, r7, #84 @ 0x54
  11400. 8005484: 4618 mov r0, r3
  11401. 8005486: f7fe f891 bl 80035ac <ReadWordFromBufer>
  11402. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11403. 800548a: 4b7b ldr r3, [pc, #492] @ (8005678 <Uart1ReceivedDataProcessCallback+0x9c0>)
  11404. 800548c: 681b ldr r3, [r3, #0]
  11405. 800548e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11406. 8005492: 4618 mov r0, r3
  11407. 8005494: f00e fa8f bl 80139b6 <osMutexAcquire>
  11408. 8005498: 4603 mov r3, r0
  11409. 800549a: 2b00 cmp r3, #0
  11410. 800549c: d118 bne.n 80054d0 <Uart1ReceivedDataProcessCallback+0x818>
  11411. sensorsInfo.pvEncoderY = enocoderYValue;
  11412. 800549e: 6abb ldr r3, [r7, #40] @ 0x28
  11413. 80054a0: 4a76 ldr r2, [pc, #472] @ (800567c <Uart1ReceivedDataProcessCallback+0x9c4>)
  11414. 80054a2: 6113 str r3, [r2, #16]
  11415. sensorsInfo.currentYPosition = 100 * enocoderYValue / MAX_X_AXE_ANGLE;
  11416. 80054a4: edd7 7a0a vldr s15, [r7, #40] @ 0x28
  11417. 80054a8: ed9f 7a75 vldr s14, [pc, #468] @ 8005680 <Uart1ReceivedDataProcessCallback+0x9c8>
  11418. 80054ac: ee27 7a87 vmul.f32 s14, s15, s14
  11419. 80054b0: eddf 6a74 vldr s13, [pc, #464] @ 8005684 <Uart1ReceivedDataProcessCallback+0x9cc>
  11420. 80054b4: eec7 7a26 vdiv.f32 s15, s14, s13
  11421. 80054b8: 4b70 ldr r3, [pc, #448] @ (800567c <Uart1ReceivedDataProcessCallback+0x9c4>)
  11422. 80054ba: edc3 7a0d vstr s15, [r3, #52] @ 0x34
  11423. osMutexRelease (sensorsInfoMutex);
  11424. 80054be: 4b6e ldr r3, [pc, #440] @ (8005678 <Uart1ReceivedDataProcessCallback+0x9c0>)
  11425. 80054c0: 681b ldr r3, [r3, #0]
  11426. 80054c2: 4618 mov r0, r3
  11427. 80054c4: f00e fac2 bl 8013a4c <osMutexRelease>
  11428. respStatus = spOK;
  11429. 80054c8: 2300 movs r3, #0
  11430. 80054ca: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11431. } else {
  11432. respStatus = spInternalError;
  11433. }
  11434. break;
  11435. 80054ce: e13a b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11436. respStatus = spInternalError;
  11437. 80054d0: 23fc movs r3, #252 @ 0xfc
  11438. 80054d2: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11439. break;
  11440. 80054d6: e136 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11441. case spSetVoltageMeasGains:
  11442. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11443. 80054d8: 4b65 ldr r3, [pc, #404] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11444. 80054da: 681b ldr r3, [r3, #0]
  11445. 80054dc: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11446. 80054e0: 4618 mov r0, r3
  11447. 80054e2: f00e fa68 bl 80139b6 <osMutexAcquire>
  11448. 80054e6: 4603 mov r3, r0
  11449. 80054e8: 2b00 cmp r3, #0
  11450. 80054ea: d122 bne.n 8005532 <Uart1ReceivedDataProcessCallback+0x87a>
  11451. for (uint8_t i = 0; i < 3; i++) {
  11452. 80054ec: 2300 movs r3, #0
  11453. 80054ee: f887 3073 strb.w r3, [r7, #115] @ 0x73
  11454. 80054f2: e011 b.n 8005518 <Uart1ReceivedDataProcessCallback+0x860>
  11455. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].gain);
  11456. 80054f4: 683b ldr r3, [r7, #0]
  11457. 80054f6: f103 000c add.w r0, r3, #12
  11458. 80054fa: f897 3073 ldrb.w r3, [r7, #115] @ 0x73
  11459. 80054fe: 00db lsls r3, r3, #3
  11460. 8005500: 4a61 ldr r2, [pc, #388] @ (8005688 <Uart1ReceivedDataProcessCallback+0x9d0>)
  11461. 8005502: 441a add r2, r3
  11462. 8005504: f107 0354 add.w r3, r7, #84 @ 0x54
  11463. 8005508: 4619 mov r1, r3
  11464. 800550a: f7fe f84f bl 80035ac <ReadWordFromBufer>
  11465. for (uint8_t i = 0; i < 3; i++) {
  11466. 800550e: f897 3073 ldrb.w r3, [r7, #115] @ 0x73
  11467. 8005512: 3301 adds r3, #1
  11468. 8005514: f887 3073 strb.w r3, [r7, #115] @ 0x73
  11469. 8005518: f897 3073 ldrb.w r3, [r7, #115] @ 0x73
  11470. 800551c: 2b02 cmp r3, #2
  11471. 800551e: d9e9 bls.n 80054f4 <Uart1ReceivedDataProcessCallback+0x83c>
  11472. }
  11473. osMutexRelease (resMeasurementsMutex);
  11474. 8005520: 4b53 ldr r3, [pc, #332] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11475. 8005522: 681b ldr r3, [r3, #0]
  11476. 8005524: 4618 mov r0, r3
  11477. 8005526: f00e fa91 bl 8013a4c <osMutexRelease>
  11478. respStatus = spOK;
  11479. 800552a: 2300 movs r3, #0
  11480. 800552c: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11481. } else {
  11482. respStatus = spInternalError;
  11483. }
  11484. break;
  11485. 8005530: e109 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11486. respStatus = spInternalError;
  11487. 8005532: 23fc movs r3, #252 @ 0xfc
  11488. 8005534: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11489. break;
  11490. 8005538: e105 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11491. case spSetVoltageMeasOffsets:
  11492. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11493. 800553a: 4b4d ldr r3, [pc, #308] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11494. 800553c: 681b ldr r3, [r3, #0]
  11495. 800553e: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11496. 8005542: 4618 mov r0, r3
  11497. 8005544: f00e fa37 bl 80139b6 <osMutexAcquire>
  11498. 8005548: 4603 mov r3, r0
  11499. 800554a: 2b00 cmp r3, #0
  11500. 800554c: d123 bne.n 8005596 <Uart1ReceivedDataProcessCallback+0x8de>
  11501. for (uint8_t i = 0; i < 3; i++) {
  11502. 800554e: 2300 movs r3, #0
  11503. 8005550: f887 3072 strb.w r3, [r7, #114] @ 0x72
  11504. 8005554: e012 b.n 800557c <Uart1ReceivedDataProcessCallback+0x8c4>
  11505. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&U_MeasCorrectionData[i].offset);
  11506. 8005556: 683b ldr r3, [r7, #0]
  11507. 8005558: f103 000c add.w r0, r3, #12
  11508. 800555c: f897 3072 ldrb.w r3, [r7, #114] @ 0x72
  11509. 8005560: 00db lsls r3, r3, #3
  11510. 8005562: 4a49 ldr r2, [pc, #292] @ (8005688 <Uart1ReceivedDataProcessCallback+0x9d0>)
  11511. 8005564: 4413 add r3, r2
  11512. 8005566: 1d1a adds r2, r3, #4
  11513. 8005568: f107 0354 add.w r3, r7, #84 @ 0x54
  11514. 800556c: 4619 mov r1, r3
  11515. 800556e: f7fe f81d bl 80035ac <ReadWordFromBufer>
  11516. for (uint8_t i = 0; i < 3; i++) {
  11517. 8005572: f897 3072 ldrb.w r3, [r7, #114] @ 0x72
  11518. 8005576: 3301 adds r3, #1
  11519. 8005578: f887 3072 strb.w r3, [r7, #114] @ 0x72
  11520. 800557c: f897 3072 ldrb.w r3, [r7, #114] @ 0x72
  11521. 8005580: 2b02 cmp r3, #2
  11522. 8005582: d9e8 bls.n 8005556 <Uart1ReceivedDataProcessCallback+0x89e>
  11523. }
  11524. osMutexRelease (resMeasurementsMutex);
  11525. 8005584: 4b3a ldr r3, [pc, #232] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11526. 8005586: 681b ldr r3, [r3, #0]
  11527. 8005588: 4618 mov r0, r3
  11528. 800558a: f00e fa5f bl 8013a4c <osMutexRelease>
  11529. respStatus = spOK;
  11530. 800558e: 2300 movs r3, #0
  11531. 8005590: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11532. } else {
  11533. respStatus = spInternalError;
  11534. }
  11535. break;
  11536. 8005594: e0d7 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11537. respStatus = spInternalError;
  11538. 8005596: 23fc movs r3, #252 @ 0xfc
  11539. 8005598: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11540. break;
  11541. 800559c: e0d3 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11542. case spSetCurrentMeasGains:
  11543. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11544. 800559e: 4b34 ldr r3, [pc, #208] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11545. 80055a0: 681b ldr r3, [r3, #0]
  11546. 80055a2: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11547. 80055a6: 4618 mov r0, r3
  11548. 80055a8: f00e fa05 bl 80139b6 <osMutexAcquire>
  11549. 80055ac: 4603 mov r3, r0
  11550. 80055ae: 2b00 cmp r3, #0
  11551. 80055b0: d122 bne.n 80055f8 <Uart1ReceivedDataProcessCallback+0x940>
  11552. for (uint8_t i = 0; i < 3; i++) {
  11553. 80055b2: 2300 movs r3, #0
  11554. 80055b4: f887 3071 strb.w r3, [r7, #113] @ 0x71
  11555. 80055b8: e011 b.n 80055de <Uart1ReceivedDataProcessCallback+0x926>
  11556. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].gain);
  11557. 80055ba: 683b ldr r3, [r7, #0]
  11558. 80055bc: f103 000c add.w r0, r3, #12
  11559. 80055c0: f897 3071 ldrb.w r3, [r7, #113] @ 0x71
  11560. 80055c4: 00db lsls r3, r3, #3
  11561. 80055c6: 4a31 ldr r2, [pc, #196] @ (800568c <Uart1ReceivedDataProcessCallback+0x9d4>)
  11562. 80055c8: 441a add r2, r3
  11563. 80055ca: f107 0354 add.w r3, r7, #84 @ 0x54
  11564. 80055ce: 4619 mov r1, r3
  11565. 80055d0: f7fd ffec bl 80035ac <ReadWordFromBufer>
  11566. for (uint8_t i = 0; i < 3; i++) {
  11567. 80055d4: f897 3071 ldrb.w r3, [r7, #113] @ 0x71
  11568. 80055d8: 3301 adds r3, #1
  11569. 80055da: f887 3071 strb.w r3, [r7, #113] @ 0x71
  11570. 80055de: f897 3071 ldrb.w r3, [r7, #113] @ 0x71
  11571. 80055e2: 2b02 cmp r3, #2
  11572. 80055e4: d9e9 bls.n 80055ba <Uart1ReceivedDataProcessCallback+0x902>
  11573. }
  11574. osMutexRelease (resMeasurementsMutex);
  11575. 80055e6: 4b22 ldr r3, [pc, #136] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11576. 80055e8: 681b ldr r3, [r3, #0]
  11577. 80055ea: 4618 mov r0, r3
  11578. 80055ec: f00e fa2e bl 8013a4c <osMutexRelease>
  11579. respStatus = spOK;
  11580. 80055f0: 2300 movs r3, #0
  11581. 80055f2: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11582. } else {
  11583. respStatus = spInternalError;
  11584. }
  11585. break;
  11586. 80055f6: e0a6 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11587. respStatus = spInternalError;
  11588. 80055f8: 23fc movs r3, #252 @ 0xfc
  11589. 80055fa: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11590. break;
  11591. 80055fe: e0a2 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11592. case spSetCurrentMeasOffsets:
  11593. if (osMutexAcquire (resMeasurementsMutex, osWaitForever) == osOK) {
  11594. 8005600: 4b1b ldr r3, [pc, #108] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11595. 8005602: 681b ldr r3, [r3, #0]
  11596. 8005604: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11597. 8005608: 4618 mov r0, r3
  11598. 800560a: f00e f9d4 bl 80139b6 <osMutexAcquire>
  11599. 800560e: 4603 mov r3, r0
  11600. 8005610: 2b00 cmp r3, #0
  11601. 8005612: d123 bne.n 800565c <Uart1ReceivedDataProcessCallback+0x9a4>
  11602. for (uint8_t i = 0; i < 3; i++) {
  11603. 8005614: 2300 movs r3, #0
  11604. 8005616: f887 3070 strb.w r3, [r7, #112] @ 0x70
  11605. 800561a: e012 b.n 8005642 <Uart1ReceivedDataProcessCallback+0x98a>
  11606. ReadWordFromBufer (spFrameData->dataBuffer, &inputDataBufferPos, (uint32_t*)&I_MeasCorrectionData[i].offset);
  11607. 800561c: 683b ldr r3, [r7, #0]
  11608. 800561e: f103 000c add.w r0, r3, #12
  11609. 8005622: f897 3070 ldrb.w r3, [r7, #112] @ 0x70
  11610. 8005626: 00db lsls r3, r3, #3
  11611. 8005628: 4a18 ldr r2, [pc, #96] @ (800568c <Uart1ReceivedDataProcessCallback+0x9d4>)
  11612. 800562a: 4413 add r3, r2
  11613. 800562c: 1d1a adds r2, r3, #4
  11614. 800562e: f107 0354 add.w r3, r7, #84 @ 0x54
  11615. 8005632: 4619 mov r1, r3
  11616. 8005634: f7fd ffba bl 80035ac <ReadWordFromBufer>
  11617. for (uint8_t i = 0; i < 3; i++) {
  11618. 8005638: f897 3070 ldrb.w r3, [r7, #112] @ 0x70
  11619. 800563c: 3301 adds r3, #1
  11620. 800563e: f887 3070 strb.w r3, [r7, #112] @ 0x70
  11621. 8005642: f897 3070 ldrb.w r3, [r7, #112] @ 0x70
  11622. 8005646: 2b02 cmp r3, #2
  11623. 8005648: d9e8 bls.n 800561c <Uart1ReceivedDataProcessCallback+0x964>
  11624. }
  11625. osMutexRelease (resMeasurementsMutex);
  11626. 800564a: 4b09 ldr r3, [pc, #36] @ (8005670 <Uart1ReceivedDataProcessCallback+0x9b8>)
  11627. 800564c: 681b ldr r3, [r3, #0]
  11628. 800564e: 4618 mov r0, r3
  11629. 8005650: f00e f9fc bl 8013a4c <osMutexRelease>
  11630. respStatus = spOK;
  11631. 8005654: 2300 movs r3, #0
  11632. 8005656: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11633. } else {
  11634. respStatus = spInternalError;
  11635. }
  11636. break;
  11637. 800565a: e074 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11638. respStatus = spInternalError;
  11639. 800565c: 23fc movs r3, #252 @ 0xfc
  11640. 800565e: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11641. break;
  11642. 8005662: e070 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11643. __ASM volatile ("cpsid i" : : : "memory");
  11644. 8005664: b672 cpsid i
  11645. }
  11646. 8005666: bf00 nop
  11647. case spResetSystem:
  11648. __disable_irq();
  11649. NVIC_SystemReset();
  11650. 8005668: f7fe ff58 bl 800451c <__NVIC_SystemReset>
  11651. 800566c: 24000564 .word 0x24000564
  11652. 8005670: 240008d8 .word 0x240008d8
  11653. 8005674: 24000900 .word 0x24000900
  11654. 8005678: 240008dc .word 0x240008dc
  11655. 800567c: 24000940 .word 0x24000940
  11656. 8005680: 42c80000 .word 0x42c80000
  11657. 8005684: 43b40000 .word 0x43b40000
  11658. 8005688: 24000000 .word 0x24000000
  11659. 800568c: 24000018 .word 0x24000018
  11660. break;
  11661. case spSetPositonX:
  11662. PositionControlTaskData posXData __attribute__ ((aligned (32))) = { 0 };
  11663. 8005690: f04f 0300 mov.w r3, #0
  11664. 8005694: 6023 str r3, [r4, #0]
  11665. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11666. 8005696: 4b3e ldr r3, [pc, #248] @ (8005790 <Uart1ReceivedDataProcessCallback+0xad8>)
  11667. 8005698: 681b ldr r3, [r3, #0]
  11668. 800569a: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11669. 800569e: 4618 mov r0, r3
  11670. 80056a0: f00e f989 bl 80139b6 <osMutexAcquire>
  11671. 80056a4: 4603 mov r3, r0
  11672. 80056a6: 2b00 cmp r3, #0
  11673. 80056a8: d108 bne.n 80056bc <Uart1ReceivedDataProcessCallback+0xa04>
  11674. sensorsInfo.positionXWeak = 1;
  11675. 80056aa: 4b3a ldr r3, [pc, #232] @ (8005794 <Uart1ReceivedDataProcessCallback+0xadc>)
  11676. 80056ac: 2201 movs r2, #1
  11677. 80056ae: f883 2038 strb.w r2, [r3, #56] @ 0x38
  11678. osMutexRelease (sensorsInfoMutex);
  11679. 80056b2: 4b37 ldr r3, [pc, #220] @ (8005790 <Uart1ReceivedDataProcessCallback+0xad8>)
  11680. 80056b4: 681b ldr r3, [r3, #0]
  11681. 80056b6: 4618 mov r0, r3
  11682. 80056b8: f00e f9c8 bl 8013a4c <osMutexRelease>
  11683. }
  11684. if (positionXControlTaskInitArg.positionSettingQueue != NULL)
  11685. 80056bc: 4b36 ldr r3, [pc, #216] @ (8005798 <Uart1ReceivedDataProcessCallback+0xae0>)
  11686. 80056be: 691b ldr r3, [r3, #16]
  11687. 80056c0: 2b00 cmp r3, #0
  11688. 80056c2: d03d beq.n 8005740 <Uart1ReceivedDataProcessCallback+0xa88>
  11689. {
  11690. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posXData.positionSettingValue);
  11691. 80056c4: 683b ldr r3, [r7, #0]
  11692. 80056c6: 330c adds r3, #12
  11693. 80056c8: f107 0154 add.w r1, r7, #84 @ 0x54
  11694. 80056cc: 4622 mov r2, r4
  11695. 80056ce: 4618 mov r0, r3
  11696. 80056d0: f7fd ff37 bl 8003542 <ReadFloatFromBuffer>
  11697. osMessageQueuePut(positionXControlTaskInitArg.positionSettingQueue, &posXData, 0, 0);
  11698. 80056d4: 4b30 ldr r3, [pc, #192] @ (8005798 <Uart1ReceivedDataProcessCallback+0xae0>)
  11699. 80056d6: 6918 ldr r0, [r3, #16]
  11700. 80056d8: 2300 movs r3, #0
  11701. 80056da: 2200 movs r2, #0
  11702. 80056dc: 4621 mov r1, r4
  11703. 80056de: f00e fa65 bl 8013bac <osMessageQueuePut>
  11704. }
  11705. break;
  11706. 80056e2: e02d b.n 8005740 <Uart1ReceivedDataProcessCallback+0xa88>
  11707. case spSetPositonY:
  11708. if (osMutexAcquire (sensorsInfoMutex, osWaitForever) == osOK) {
  11709. 80056e4: 4b2a ldr r3, [pc, #168] @ (8005790 <Uart1ReceivedDataProcessCallback+0xad8>)
  11710. 80056e6: 681b ldr r3, [r3, #0]
  11711. 80056e8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  11712. 80056ec: 4618 mov r0, r3
  11713. 80056ee: f00e f962 bl 80139b6 <osMutexAcquire>
  11714. 80056f2: 4603 mov r3, r0
  11715. 80056f4: 2b00 cmp r3, #0
  11716. 80056f6: d108 bne.n 800570a <Uart1ReceivedDataProcessCallback+0xa52>
  11717. sensorsInfo.positionYWeak = 1;
  11718. 80056f8: 4b26 ldr r3, [pc, #152] @ (8005794 <Uart1ReceivedDataProcessCallback+0xadc>)
  11719. 80056fa: 2201 movs r2, #1
  11720. 80056fc: f883 2039 strb.w r2, [r3, #57] @ 0x39
  11721. osMutexRelease (sensorsInfoMutex);
  11722. 8005700: 4b23 ldr r3, [pc, #140] @ (8005790 <Uart1ReceivedDataProcessCallback+0xad8>)
  11723. 8005702: 681b ldr r3, [r3, #0]
  11724. 8005704: 4618 mov r0, r3
  11725. 8005706: f00e f9a1 bl 8013a4c <osMutexRelease>
  11726. }
  11727. PositionControlTaskData posYData __attribute__ ((aligned (32))) = { 0 };
  11728. 800570a: f04f 0300 mov.w r3, #0
  11729. 800570e: 6023 str r3, [r4, #0]
  11730. if (positionYControlTaskInitArg.positionSettingQueue != NULL)
  11731. 8005710: 4b22 ldr r3, [pc, #136] @ (800579c <Uart1ReceivedDataProcessCallback+0xae4>)
  11732. 8005712: 691b ldr r3, [r3, #16]
  11733. 8005714: 2b00 cmp r3, #0
  11734. 8005716: d015 beq.n 8005744 <Uart1ReceivedDataProcessCallback+0xa8c>
  11735. {
  11736. ReadFloatFromBuffer(spFrameData->dataBuffer, &inputDataBufferPos, &posYData.positionSettingValue);
  11737. 8005718: 683b ldr r3, [r7, #0]
  11738. 800571a: 330c adds r3, #12
  11739. 800571c: f107 0154 add.w r1, r7, #84 @ 0x54
  11740. 8005720: 4622 mov r2, r4
  11741. 8005722: 4618 mov r0, r3
  11742. 8005724: f7fd ff0d bl 8003542 <ReadFloatFromBuffer>
  11743. osMessageQueuePut(positionYControlTaskInitArg.positionSettingQueue, &posYData, 0, 0);
  11744. 8005728: 4b1c ldr r3, [pc, #112] @ (800579c <Uart1ReceivedDataProcessCallback+0xae4>)
  11745. 800572a: 6918 ldr r0, [r3, #16]
  11746. 800572c: 2300 movs r3, #0
  11747. 800572e: 2200 movs r2, #0
  11748. 8005730: 4621 mov r1, r4
  11749. 8005732: f00e fa3b bl 8013bac <osMessageQueuePut>
  11750. }
  11751. break;
  11752. 8005736: e005 b.n 8005744 <Uart1ReceivedDataProcessCallback+0xa8c>
  11753. default: respStatus = spUnknownCommand; break;
  11754. 8005738: 23fd movs r3, #253 @ 0xfd
  11755. 800573a: f887 308f strb.w r3, [r7, #143] @ 0x8f
  11756. 800573e: e002 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11757. break;
  11758. 8005740: bf00 nop
  11759. 8005742: e000 b.n 8005746 <Uart1ReceivedDataProcessCallback+0xa8e>
  11760. break;
  11761. 8005744: bf00 nop
  11762. }
  11763. dataToSend = PrepareRespFrame (uartTaskData->uartTxBuffer, spFrameData->frameHeader.frameId, spFrameData->frameHeader.frameCommand, respStatus, outputDataBuffer, outputDataBufferPos);
  11764. 8005746: 6efb ldr r3, [r7, #108] @ 0x6c
  11765. 8005748: 6898 ldr r0, [r3, #8]
  11766. 800574a: 683b ldr r3, [r7, #0]
  11767. 800574c: 8819 ldrh r1, [r3, #0]
  11768. 800574e: 683b ldr r3, [r7, #0]
  11769. 8005750: 789a ldrb r2, [r3, #2]
  11770. 8005752: 4b13 ldr r3, [pc, #76] @ (80057a0 <Uart1ReceivedDataProcessCallback+0xae8>)
  11771. 8005754: 881b ldrh r3, [r3, #0]
  11772. 8005756: f997 408f ldrsb.w r4, [r7, #143] @ 0x8f
  11773. 800575a: 9301 str r3, [sp, #4]
  11774. 800575c: 4b11 ldr r3, [pc, #68] @ (80057a4 <Uart1ReceivedDataProcessCallback+0xaec>)
  11775. 800575e: 9300 str r3, [sp, #0]
  11776. 8005760: 4623 mov r3, r4
  11777. 8005762: f7fd ff57 bl 8003614 <PrepareRespFrame>
  11778. 8005766: 4603 mov r3, r0
  11779. 8005768: f8a7 306a strh.w r3, [r7, #106] @ 0x6a
  11780. if (dataToSend > 0) {
  11781. 800576c: f8b7 306a ldrh.w r3, [r7, #106] @ 0x6a
  11782. 8005770: 2b00 cmp r3, #0
  11783. 8005772: d008 beq.n 8005786 <Uart1ReceivedDataProcessCallback+0xace>
  11784. HAL_UART_Transmit_IT (uartTaskData->huart, uartTaskData->uartTxBuffer, dataToSend);
  11785. 8005774: 6efb ldr r3, [r7, #108] @ 0x6c
  11786. 8005776: 6b18 ldr r0, [r3, #48] @ 0x30
  11787. 8005778: 6efb ldr r3, [r7, #108] @ 0x6c
  11788. 800577a: 689b ldr r3, [r3, #8]
  11789. 800577c: f8b7 206a ldrh.w r2, [r7, #106] @ 0x6a
  11790. 8005780: 4619 mov r1, r3
  11791. 8005782: f00b f8eb bl 801095c <HAL_UART_Transmit_IT>
  11792. }
  11793. #ifdef SERIAL_PROTOCOL_DBG
  11794. printf ("Uart%d: TX bytes sent: %d\n", uartTaskData->uartNumber, dataToSend);
  11795. #endif
  11796. }
  11797. 8005786: bf00 nop
  11798. 8005788: 3794 adds r7, #148 @ 0x94
  11799. 800578a: 46bd mov sp, r7
  11800. 800578c: bd90 pop {r4, r7, pc}
  11801. 800578e: bf00 nop
  11802. 8005790: 240008dc .word 0x240008dc
  11803. 8005794: 24000940 .word 0x24000940
  11804. 8005798: 24000a00 .word 0x24000a00
  11805. 800579c: 24000a40 .word 0x24000a40
  11806. 80057a0: 240011b8 .word 0x240011b8
  11807. 80057a4: 24001138 .word 0x24001138
  11808. 080057a8 <Reset_Handler>:
  11809. .section .text.Reset_Handler
  11810. .weak Reset_Handler
  11811. .type Reset_Handler, %function
  11812. Reset_Handler:
  11813. ldr sp, =_estack /* set stack pointer */
  11814. 80057a8: f8df d034 ldr.w sp, [pc, #52] @ 80057e0 <LoopFillZerobss+0xe>
  11815. /* Call the clock system initialization function.*/
  11816. bl SystemInit
  11817. 80057ac: f7fe fe2e bl 800440c <SystemInit>
  11818. /* Copy the data segment initializers from flash to SRAM */
  11819. ldr r0, =_sdata
  11820. 80057b0: 480c ldr r0, [pc, #48] @ (80057e4 <LoopFillZerobss+0x12>)
  11821. ldr r1, =_edata
  11822. 80057b2: 490d ldr r1, [pc, #52] @ (80057e8 <LoopFillZerobss+0x16>)
  11823. ldr r2, =_sidata
  11824. 80057b4: 4a0d ldr r2, [pc, #52] @ (80057ec <LoopFillZerobss+0x1a>)
  11825. movs r3, #0
  11826. 80057b6: 2300 movs r3, #0
  11827. b LoopCopyDataInit
  11828. 80057b8: e002 b.n 80057c0 <LoopCopyDataInit>
  11829. 080057ba <CopyDataInit>:
  11830. CopyDataInit:
  11831. ldr r4, [r2, r3]
  11832. 80057ba: 58d4 ldr r4, [r2, r3]
  11833. str r4, [r0, r3]
  11834. 80057bc: 50c4 str r4, [r0, r3]
  11835. adds r3, r3, #4
  11836. 80057be: 3304 adds r3, #4
  11837. 080057c0 <LoopCopyDataInit>:
  11838. LoopCopyDataInit:
  11839. adds r4, r0, r3
  11840. 80057c0: 18c4 adds r4, r0, r3
  11841. cmp r4, r1
  11842. 80057c2: 428c cmp r4, r1
  11843. bcc CopyDataInit
  11844. 80057c4: d3f9 bcc.n 80057ba <CopyDataInit>
  11845. /* Zero fill the bss segment. */
  11846. ldr r2, =_sbss
  11847. 80057c6: 4a0a ldr r2, [pc, #40] @ (80057f0 <LoopFillZerobss+0x1e>)
  11848. ldr r4, =_ebss
  11849. 80057c8: 4c0a ldr r4, [pc, #40] @ (80057f4 <LoopFillZerobss+0x22>)
  11850. movs r3, #0
  11851. 80057ca: 2300 movs r3, #0
  11852. b LoopFillZerobss
  11853. 80057cc: e001 b.n 80057d2 <LoopFillZerobss>
  11854. 080057ce <FillZerobss>:
  11855. FillZerobss:
  11856. str r3, [r2]
  11857. 80057ce: 6013 str r3, [r2, #0]
  11858. adds r2, r2, #4
  11859. 80057d0: 3204 adds r2, #4
  11860. 080057d2 <LoopFillZerobss>:
  11861. LoopFillZerobss:
  11862. cmp r2, r4
  11863. 80057d2: 42a2 cmp r2, r4
  11864. bcc FillZerobss
  11865. 80057d4: d3fb bcc.n 80057ce <FillZerobss>
  11866. /* Call static constructors */
  11867. bl __libc_init_array
  11868. 80057d6: f012 fef5 bl 80185c4 <__libc_init_array>
  11869. /* Call the application's entry point.*/
  11870. bl main
  11871. 80057da: f7fa fffd bl 80007d8 <main>
  11872. bx lr
  11873. 80057de: 4770 bx lr
  11874. ldr sp, =_estack /* set stack pointer */
  11875. 80057e0: 24060000 .word 0x24060000
  11876. ldr r0, =_sdata
  11877. 80057e4: 24000000 .word 0x24000000
  11878. ldr r1, =_edata
  11879. 80057e8: 24000210 .word 0x24000210
  11880. ldr r2, =_sidata
  11881. 80057ec: 0801a648 .word 0x0801a648
  11882. ldr r2, =_sbss
  11883. 80057f0: 24000220 .word 0x24000220
  11884. ldr r4, =_ebss
  11885. 80057f4: 240132f4 .word 0x240132f4
  11886. 080057f8 <ADC3_IRQHandler>:
  11887. * @retval None
  11888. */
  11889. .section .text.Default_Handler,"ax",%progbits
  11890. Default_Handler:
  11891. Infinite_Loop:
  11892. b Infinite_Loop
  11893. 80057f8: e7fe b.n 80057f8 <ADC3_IRQHandler>
  11894. ...
  11895. 080057fc <HAL_Init>:
  11896. * need to ensure that the SysTick time base is always set to 1 millisecond
  11897. * to have correct HAL operation.
  11898. * @retval HAL status
  11899. */
  11900. HAL_StatusTypeDef HAL_Init(void)
  11901. {
  11902. 80057fc: b580 push {r7, lr}
  11903. 80057fe: b082 sub sp, #8
  11904. 8005800: af00 add r7, sp, #0
  11905. __HAL_ART_CONFIG_BASE_ADDRESS(0x08100000UL); /* Configure the Cortex-M4 ART Base address to the Flash Bank 2 : */
  11906. __HAL_ART_ENABLE(); /* Enable the Cortex-M4 ART */
  11907. #endif /* DUAL_CORE && CORE_CM4 */
  11908. /* Set Interrupt Group Priority */
  11909. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  11910. 8005802: 2003 movs r0, #3
  11911. 8005804: f001 ffd7 bl 80077b6 <HAL_NVIC_SetPriorityGrouping>
  11912. /* Update the SystemCoreClock global variable */
  11913. #if defined(RCC_D1CFGR_D1CPRE)
  11914. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  11915. 8005808: f006 fce0 bl 800c1cc <HAL_RCC_GetSysClockFreq>
  11916. 800580c: 4602 mov r2, r0
  11917. 800580e: 4b15 ldr r3, [pc, #84] @ (8005864 <HAL_Init+0x68>)
  11918. 8005810: 699b ldr r3, [r3, #24]
  11919. 8005812: 0a1b lsrs r3, r3, #8
  11920. 8005814: f003 030f and.w r3, r3, #15
  11921. 8005818: 4913 ldr r1, [pc, #76] @ (8005868 <HAL_Init+0x6c>)
  11922. 800581a: 5ccb ldrb r3, [r1, r3]
  11923. 800581c: f003 031f and.w r3, r3, #31
  11924. 8005820: fa22 f303 lsr.w r3, r2, r3
  11925. 8005824: 607b str r3, [r7, #4]
  11926. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  11927. #endif
  11928. /* Update the SystemD2Clock global variable */
  11929. #if defined(RCC_D1CFGR_HPRE)
  11930. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  11931. 8005826: 4b0f ldr r3, [pc, #60] @ (8005864 <HAL_Init+0x68>)
  11932. 8005828: 699b ldr r3, [r3, #24]
  11933. 800582a: f003 030f and.w r3, r3, #15
  11934. 800582e: 4a0e ldr r2, [pc, #56] @ (8005868 <HAL_Init+0x6c>)
  11935. 8005830: 5cd3 ldrb r3, [r2, r3]
  11936. 8005832: f003 031f and.w r3, r3, #31
  11937. 8005836: 687a ldr r2, [r7, #4]
  11938. 8005838: fa22 f303 lsr.w r3, r2, r3
  11939. 800583c: 4a0b ldr r2, [pc, #44] @ (800586c <HAL_Init+0x70>)
  11940. 800583e: 6013 str r3, [r2, #0]
  11941. #endif
  11942. #if defined(DUAL_CORE) && defined(CORE_CM4)
  11943. SystemCoreClock = SystemD2Clock;
  11944. #else
  11945. SystemCoreClock = common_system_clock;
  11946. 8005840: 4a0b ldr r2, [pc, #44] @ (8005870 <HAL_Init+0x74>)
  11947. 8005842: 687b ldr r3, [r7, #4]
  11948. 8005844: 6013 str r3, [r2, #0]
  11949. #endif /* DUAL_CORE && CORE_CM4 */
  11950. /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
  11951. if(HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  11952. 8005846: 2005 movs r0, #5
  11953. 8005848: f7fe fc32 bl 80040b0 <HAL_InitTick>
  11954. 800584c: 4603 mov r3, r0
  11955. 800584e: 2b00 cmp r3, #0
  11956. 8005850: d001 beq.n 8005856 <HAL_Init+0x5a>
  11957. {
  11958. return HAL_ERROR;
  11959. 8005852: 2301 movs r3, #1
  11960. 8005854: e002 b.n 800585c <HAL_Init+0x60>
  11961. }
  11962. /* Init the low level hardware */
  11963. HAL_MspInit();
  11964. 8005856: f7fd ff7b bl 8003750 <HAL_MspInit>
  11965. /* Return function status */
  11966. return HAL_OK;
  11967. 800585a: 2300 movs r3, #0
  11968. }
  11969. 800585c: 4618 mov r0, r3
  11970. 800585e: 3708 adds r7, #8
  11971. 8005860: 46bd mov sp, r7
  11972. 8005862: bd80 pop {r7, pc}
  11973. 8005864: 58024400 .word 0x58024400
  11974. 8005868: 0801a288 .word 0x0801a288
  11975. 800586c: 24000038 .word 0x24000038
  11976. 8005870: 24000034 .word 0x24000034
  11977. 08005874 <HAL_IncTick>:
  11978. * @note This function is declared as __weak to be overwritten in case of other
  11979. * implementations in user file.
  11980. * @retval None
  11981. */
  11982. __weak void HAL_IncTick(void)
  11983. {
  11984. 8005874: b480 push {r7}
  11985. 8005876: af00 add r7, sp, #0
  11986. uwTick += (uint32_t)uwTickFreq;
  11987. 8005878: 4b06 ldr r3, [pc, #24] @ (8005894 <HAL_IncTick+0x20>)
  11988. 800587a: 781b ldrb r3, [r3, #0]
  11989. 800587c: 461a mov r2, r3
  11990. 800587e: 4b06 ldr r3, [pc, #24] @ (8005898 <HAL_IncTick+0x24>)
  11991. 8005880: 681b ldr r3, [r3, #0]
  11992. 8005882: 4413 add r3, r2
  11993. 8005884: 4a04 ldr r2, [pc, #16] @ (8005898 <HAL_IncTick+0x24>)
  11994. 8005886: 6013 str r3, [r2, #0]
  11995. }
  11996. 8005888: bf00 nop
  11997. 800588a: 46bd mov sp, r7
  11998. 800588c: f85d 7b04 ldr.w r7, [sp], #4
  11999. 8005890: 4770 bx lr
  12000. 8005892: bf00 nop
  12001. 8005894: 24000040 .word 0x24000040
  12002. 8005898: 240011bc .word 0x240011bc
  12003. 0800589c <HAL_GetTick>:
  12004. * @note This function is declared as __weak to be overwritten in case of other
  12005. * implementations in user file.
  12006. * @retval tick value
  12007. */
  12008. __weak uint32_t HAL_GetTick(void)
  12009. {
  12010. 800589c: b480 push {r7}
  12011. 800589e: af00 add r7, sp, #0
  12012. return uwTick;
  12013. 80058a0: 4b03 ldr r3, [pc, #12] @ (80058b0 <HAL_GetTick+0x14>)
  12014. 80058a2: 681b ldr r3, [r3, #0]
  12015. }
  12016. 80058a4: 4618 mov r0, r3
  12017. 80058a6: 46bd mov sp, r7
  12018. 80058a8: f85d 7b04 ldr.w r7, [sp], #4
  12019. 80058ac: 4770 bx lr
  12020. 80058ae: bf00 nop
  12021. 80058b0: 240011bc .word 0x240011bc
  12022. 080058b4 <HAL_GetREVID>:
  12023. /**
  12024. * @brief Returns the device revision identifier.
  12025. * @retval Device revision identifier
  12026. */
  12027. uint32_t HAL_GetREVID(void)
  12028. {
  12029. 80058b4: b480 push {r7}
  12030. 80058b6: af00 add r7, sp, #0
  12031. return((DBGMCU->IDCODE) >> 16);
  12032. 80058b8: 4b03 ldr r3, [pc, #12] @ (80058c8 <HAL_GetREVID+0x14>)
  12033. 80058ba: 681b ldr r3, [r3, #0]
  12034. 80058bc: 0c1b lsrs r3, r3, #16
  12035. }
  12036. 80058be: 4618 mov r0, r3
  12037. 80058c0: 46bd mov sp, r7
  12038. 80058c2: f85d 7b04 ldr.w r7, [sp], #4
  12039. 80058c6: 4770 bx lr
  12040. 80058c8: 5c001000 .word 0x5c001000
  12041. 080058cc <HAL_SYSCFG_VREFBUF_HighImpedanceConfig>:
  12042. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_DISABLE: VREF+ pin is internally connect to VREFINT output.
  12043. * @arg SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE: VREF+ pin is high impedance.
  12044. * @retval None
  12045. */
  12046. void HAL_SYSCFG_VREFBUF_HighImpedanceConfig(uint32_t Mode)
  12047. {
  12048. 80058cc: b480 push {r7}
  12049. 80058ce: b083 sub sp, #12
  12050. 80058d0: af00 add r7, sp, #0
  12051. 80058d2: 6078 str r0, [r7, #4]
  12052. /* Check the parameters */
  12053. assert_param(IS_SYSCFG_VREFBUF_HIGH_IMPEDANCE(Mode));
  12054. MODIFY_REG(VREFBUF->CSR, VREFBUF_CSR_HIZ, Mode);
  12055. 80058d4: 4b06 ldr r3, [pc, #24] @ (80058f0 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12056. 80058d6: 681b ldr r3, [r3, #0]
  12057. 80058d8: f023 0202 bic.w r2, r3, #2
  12058. 80058dc: 4904 ldr r1, [pc, #16] @ (80058f0 <HAL_SYSCFG_VREFBUF_HighImpedanceConfig+0x24>)
  12059. 80058de: 687b ldr r3, [r7, #4]
  12060. 80058e0: 4313 orrs r3, r2
  12061. 80058e2: 600b str r3, [r1, #0]
  12062. }
  12063. 80058e4: bf00 nop
  12064. 80058e6: 370c adds r7, #12
  12065. 80058e8: 46bd mov sp, r7
  12066. 80058ea: f85d 7b04 ldr.w r7, [sp], #4
  12067. 80058ee: 4770 bx lr
  12068. 80058f0: 58003c00 .word 0x58003c00
  12069. 080058f4 <HAL_SYSCFG_DisableVREFBUF>:
  12070. * @brief Disable the Internal Voltage Reference buffer (VREFBUF).
  12071. *
  12072. * @retval None
  12073. */
  12074. void HAL_SYSCFG_DisableVREFBUF(void)
  12075. {
  12076. 80058f4: b480 push {r7}
  12077. 80058f6: af00 add r7, sp, #0
  12078. CLEAR_BIT(VREFBUF->CSR, VREFBUF_CSR_ENVR);
  12079. 80058f8: 4b05 ldr r3, [pc, #20] @ (8005910 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12080. 80058fa: 681b ldr r3, [r3, #0]
  12081. 80058fc: 4a04 ldr r2, [pc, #16] @ (8005910 <HAL_SYSCFG_DisableVREFBUF+0x1c>)
  12082. 80058fe: f023 0301 bic.w r3, r3, #1
  12083. 8005902: 6013 str r3, [r2, #0]
  12084. }
  12085. 8005904: bf00 nop
  12086. 8005906: 46bd mov sp, r7
  12087. 8005908: f85d 7b04 ldr.w r7, [sp], #4
  12088. 800590c: 4770 bx lr
  12089. 800590e: bf00 nop
  12090. 8005910: 58003c00 .word 0x58003c00
  12091. 08005914 <HAL_SYSCFG_AnalogSwitchConfig>:
  12092. * @arg SYSCFG_SWITCH_PC3_CLOSE
  12093. * @retval None
  12094. */
  12095. void HAL_SYSCFG_AnalogSwitchConfig(uint32_t SYSCFG_AnalogSwitch , uint32_t SYSCFG_SwitchState )
  12096. {
  12097. 8005914: b480 push {r7}
  12098. 8005916: b083 sub sp, #12
  12099. 8005918: af00 add r7, sp, #0
  12100. 800591a: 6078 str r0, [r7, #4]
  12101. 800591c: 6039 str r1, [r7, #0]
  12102. /* Check the parameter */
  12103. assert_param(IS_SYSCFG_ANALOG_SWITCH(SYSCFG_AnalogSwitch));
  12104. assert_param(IS_SYSCFG_SWITCH_STATE(SYSCFG_SwitchState));
  12105. MODIFY_REG(SYSCFG->PMCR, (uint32_t) SYSCFG_AnalogSwitch, (uint32_t)(SYSCFG_SwitchState));
  12106. 800591e: 4b07 ldr r3, [pc, #28] @ (800593c <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12107. 8005920: 685a ldr r2, [r3, #4]
  12108. 8005922: 687b ldr r3, [r7, #4]
  12109. 8005924: 43db mvns r3, r3
  12110. 8005926: 401a ands r2, r3
  12111. 8005928: 4904 ldr r1, [pc, #16] @ (800593c <HAL_SYSCFG_AnalogSwitchConfig+0x28>)
  12112. 800592a: 683b ldr r3, [r7, #0]
  12113. 800592c: 4313 orrs r3, r2
  12114. 800592e: 604b str r3, [r1, #4]
  12115. }
  12116. 8005930: bf00 nop
  12117. 8005932: 370c adds r7, #12
  12118. 8005934: 46bd mov sp, r7
  12119. 8005936: f85d 7b04 ldr.w r7, [sp], #4
  12120. 800593a: 4770 bx lr
  12121. 800593c: 58000400 .word 0x58000400
  12122. 08005940 <LL_ADC_SetCommonClock>:
  12123. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV128
  12124. * @arg @ref LL_ADC_CLOCK_ASYNC_DIV256
  12125. * @retval None
  12126. */
  12127. __STATIC_INLINE void LL_ADC_SetCommonClock(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t CommonClock)
  12128. {
  12129. 8005940: b480 push {r7}
  12130. 8005942: b083 sub sp, #12
  12131. 8005944: af00 add r7, sp, #0
  12132. 8005946: 6078 str r0, [r7, #4]
  12133. 8005948: 6039 str r1, [r7, #0]
  12134. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_CKMODE | ADC_CCR_PRESC, CommonClock);
  12135. 800594a: 687b ldr r3, [r7, #4]
  12136. 800594c: 689b ldr r3, [r3, #8]
  12137. 800594e: f423 127c bic.w r2, r3, #4128768 @ 0x3f0000
  12138. 8005952: 683b ldr r3, [r7, #0]
  12139. 8005954: 431a orrs r2, r3
  12140. 8005956: 687b ldr r3, [r7, #4]
  12141. 8005958: 609a str r2, [r3, #8]
  12142. }
  12143. 800595a: bf00 nop
  12144. 800595c: 370c adds r7, #12
  12145. 800595e: 46bd mov sp, r7
  12146. 8005960: f85d 7b04 ldr.w r7, [sp], #4
  12147. 8005964: 4770 bx lr
  12148. 08005966 <LL_ADC_SetCommonPathInternalCh>:
  12149. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12150. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12151. * @retval None
  12152. */
  12153. __STATIC_INLINE void LL_ADC_SetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON, uint32_t PathInternal)
  12154. {
  12155. 8005966: b480 push {r7}
  12156. 8005968: b083 sub sp, #12
  12157. 800596a: af00 add r7, sp, #0
  12158. 800596c: 6078 str r0, [r7, #4]
  12159. 800596e: 6039 str r1, [r7, #0]
  12160. MODIFY_REG(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN, PathInternal);
  12161. 8005970: 687b ldr r3, [r7, #4]
  12162. 8005972: 689b ldr r3, [r3, #8]
  12163. 8005974: f023 72e0 bic.w r2, r3, #29360128 @ 0x1c00000
  12164. 8005978: 683b ldr r3, [r7, #0]
  12165. 800597a: 431a orrs r2, r3
  12166. 800597c: 687b ldr r3, [r7, #4]
  12167. 800597e: 609a str r2, [r3, #8]
  12168. }
  12169. 8005980: bf00 nop
  12170. 8005982: 370c adds r7, #12
  12171. 8005984: 46bd mov sp, r7
  12172. 8005986: f85d 7b04 ldr.w r7, [sp], #4
  12173. 800598a: 4770 bx lr
  12174. 0800598c <LL_ADC_GetCommonPathInternalCh>:
  12175. * @arg @ref LL_ADC_PATH_INTERNAL_VREFINT
  12176. * @arg @ref LL_ADC_PATH_INTERNAL_TEMPSENSOR
  12177. * @arg @ref LL_ADC_PATH_INTERNAL_VBAT
  12178. */
  12179. __STATIC_INLINE uint32_t LL_ADC_GetCommonPathInternalCh(ADC_Common_TypeDef *ADCxy_COMMON)
  12180. {
  12181. 800598c: b480 push {r7}
  12182. 800598e: b083 sub sp, #12
  12183. 8005990: af00 add r7, sp, #0
  12184. 8005992: 6078 str r0, [r7, #4]
  12185. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_VREFEN | ADC_CCR_TSEN | ADC_CCR_VBATEN));
  12186. 8005994: 687b ldr r3, [r7, #4]
  12187. 8005996: 689b ldr r3, [r3, #8]
  12188. 8005998: f003 73e0 and.w r3, r3, #29360128 @ 0x1c00000
  12189. }
  12190. 800599c: 4618 mov r0, r3
  12191. 800599e: 370c adds r7, #12
  12192. 80059a0: 46bd mov sp, r7
  12193. 80059a2: f85d 7b04 ldr.w r7, [sp], #4
  12194. 80059a6: 4770 bx lr
  12195. 080059a8 <LL_ADC_SetOffset>:
  12196. * Other channels are slow channels (conversion rate: refer to reference manual).
  12197. * @param OffsetLevel Value between Min_Data=0x000 and Max_Data=0x3FFFFFF
  12198. * @retval None
  12199. */
  12200. __STATIC_INLINE void LL_ADC_SetOffset(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t Channel, uint32_t OffsetLevel)
  12201. {
  12202. 80059a8: b480 push {r7}
  12203. 80059aa: b087 sub sp, #28
  12204. 80059ac: af00 add r7, sp, #0
  12205. 80059ae: 60f8 str r0, [r7, #12]
  12206. 80059b0: 60b9 str r1, [r7, #8]
  12207. 80059b2: 607a str r2, [r7, #4]
  12208. 80059b4: 603b str r3, [r7, #0]
  12209. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  12210. 80059b6: 68fb ldr r3, [r7, #12]
  12211. 80059b8: 3360 adds r3, #96 @ 0x60
  12212. 80059ba: 461a mov r2, r3
  12213. 80059bc: 68bb ldr r3, [r7, #8]
  12214. 80059be: 009b lsls r3, r3, #2
  12215. 80059c0: 4413 add r3, r2
  12216. 80059c2: 617b str r3, [r7, #20]
  12217. ADC3_OFR1_OFFSET1_EN | (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12218. }
  12219. else
  12220. #endif /* ADC_VER_V5_V90 */
  12221. {
  12222. MODIFY_REG(*preg,
  12223. 80059c4: 697b ldr r3, [r7, #20]
  12224. 80059c6: 681b ldr r3, [r3, #0]
  12225. 80059c8: f003 4200 and.w r2, r3, #2147483648 @ 0x80000000
  12226. 80059cc: 687b ldr r3, [r7, #4]
  12227. 80059ce: f003 41f8 and.w r1, r3, #2080374784 @ 0x7c000000
  12228. 80059d2: 683b ldr r3, [r7, #0]
  12229. 80059d4: 430b orrs r3, r1
  12230. 80059d6: 431a orrs r2, r3
  12231. 80059d8: 697b ldr r3, [r7, #20]
  12232. 80059da: 601a str r2, [r3, #0]
  12233. ADC_OFR1_OFFSET1_CH | ADC_OFR1_OFFSET1,
  12234. (Channel & ADC_CHANNEL_ID_NUMBER_MASK) | OffsetLevel);
  12235. }
  12236. }
  12237. 80059dc: bf00 nop
  12238. 80059de: 371c adds r7, #28
  12239. 80059e0: 46bd mov sp, r7
  12240. 80059e2: f85d 7b04 ldr.w r7, [sp], #4
  12241. 80059e6: 4770 bx lr
  12242. 080059e8 <LL_ADC_SetDataRightShift>:
  12243. * @arg @ref LL_ADC_OFFSET_RSHIFT_ENABLE
  12244. * @arg @ref LL_ADC_OFFSET_RSHIFT_DISABLE
  12245. * @retval Returned None
  12246. */
  12247. __STATIC_INLINE void LL_ADC_SetDataRightShift(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t RigthShift)
  12248. {
  12249. 80059e8: b480 push {r7}
  12250. 80059ea: b085 sub sp, #20
  12251. 80059ec: af00 add r7, sp, #0
  12252. 80059ee: 60f8 str r0, [r7, #12]
  12253. 80059f0: 60b9 str r1, [r7, #8]
  12254. 80059f2: 607a str r2, [r7, #4]
  12255. MODIFY_REG(ADCx->CFGR2, (ADC_CFGR2_RSHIFT1 | ADC_CFGR2_RSHIFT2 | ADC_CFGR2_RSHIFT3 | ADC_CFGR2_RSHIFT4), RigthShift << (Offsety & 0x1FUL));
  12256. 80059f4: 68fb ldr r3, [r7, #12]
  12257. 80059f6: 691b ldr r3, [r3, #16]
  12258. 80059f8: f423 42f0 bic.w r2, r3, #30720 @ 0x7800
  12259. 80059fc: 68bb ldr r3, [r7, #8]
  12260. 80059fe: f003 031f and.w r3, r3, #31
  12261. 8005a02: 6879 ldr r1, [r7, #4]
  12262. 8005a04: fa01 f303 lsl.w r3, r1, r3
  12263. 8005a08: 431a orrs r2, r3
  12264. 8005a0a: 68fb ldr r3, [r7, #12]
  12265. 8005a0c: 611a str r2, [r3, #16]
  12266. }
  12267. 8005a0e: bf00 nop
  12268. 8005a10: 3714 adds r7, #20
  12269. 8005a12: 46bd mov sp, r7
  12270. 8005a14: f85d 7b04 ldr.w r7, [sp], #4
  12271. 8005a18: 4770 bx lr
  12272. 08005a1a <LL_ADC_SetOffsetSignedSaturation>:
  12273. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE
  12274. * @arg @ref LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE
  12275. * @retval Returned None
  12276. */
  12277. __STATIC_INLINE void LL_ADC_SetOffsetSignedSaturation(ADC_TypeDef *ADCx, uint32_t Offsety, uint32_t OffsetSignedSaturation)
  12278. {
  12279. 8005a1a: b480 push {r7}
  12280. 8005a1c: b087 sub sp, #28
  12281. 8005a1e: af00 add r7, sp, #0
  12282. 8005a20: 60f8 str r0, [r7, #12]
  12283. 8005a22: 60b9 str r1, [r7, #8]
  12284. 8005a24: 607a str r2, [r7, #4]
  12285. /* Function not available on this instance */
  12286. }
  12287. else
  12288. #endif /* ADC_VER_V5_V90 */
  12289. {
  12290. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->OFR1, Offsety);
  12291. 8005a26: 68fb ldr r3, [r7, #12]
  12292. 8005a28: 3360 adds r3, #96 @ 0x60
  12293. 8005a2a: 461a mov r2, r3
  12294. 8005a2c: 68bb ldr r3, [r7, #8]
  12295. 8005a2e: 009b lsls r3, r3, #2
  12296. 8005a30: 4413 add r3, r2
  12297. 8005a32: 617b str r3, [r7, #20]
  12298. MODIFY_REG(*preg, ADC_OFR1_SSATE, OffsetSignedSaturation);
  12299. 8005a34: 697b ldr r3, [r7, #20]
  12300. 8005a36: 681b ldr r3, [r3, #0]
  12301. 8005a38: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  12302. 8005a3c: 687b ldr r3, [r7, #4]
  12303. 8005a3e: 431a orrs r2, r3
  12304. 8005a40: 697b ldr r3, [r7, #20]
  12305. 8005a42: 601a str r2, [r3, #0]
  12306. }
  12307. }
  12308. 8005a44: bf00 nop
  12309. 8005a46: 371c adds r7, #28
  12310. 8005a48: 46bd mov sp, r7
  12311. 8005a4a: f85d 7b04 ldr.w r7, [sp], #4
  12312. 8005a4e: 4770 bx lr
  12313. 08005a50 <LL_ADC_REG_IsTriggerSourceSWStart>:
  12314. * @param ADCx ADC instance
  12315. * @retval Value "0" if trigger source external trigger
  12316. * Value "1" if trigger source SW start.
  12317. */
  12318. __STATIC_INLINE uint32_t LL_ADC_REG_IsTriggerSourceSWStart(ADC_TypeDef *ADCx)
  12319. {
  12320. 8005a50: b480 push {r7}
  12321. 8005a52: b083 sub sp, #12
  12322. 8005a54: af00 add r7, sp, #0
  12323. 8005a56: 6078 str r0, [r7, #4]
  12324. return ((READ_BIT(ADCx->CFGR, ADC_CFGR_EXTEN) == (LL_ADC_REG_TRIG_SOFTWARE & ADC_CFGR_EXTEN)) ? 1UL : 0UL);
  12325. 8005a58: 687b ldr r3, [r7, #4]
  12326. 8005a5a: 68db ldr r3, [r3, #12]
  12327. 8005a5c: f403 6340 and.w r3, r3, #3072 @ 0xc00
  12328. 8005a60: 2b00 cmp r3, #0
  12329. 8005a62: d101 bne.n 8005a68 <LL_ADC_REG_IsTriggerSourceSWStart+0x18>
  12330. 8005a64: 2301 movs r3, #1
  12331. 8005a66: e000 b.n 8005a6a <LL_ADC_REG_IsTriggerSourceSWStart+0x1a>
  12332. 8005a68: 2300 movs r3, #0
  12333. }
  12334. 8005a6a: 4618 mov r0, r3
  12335. 8005a6c: 370c adds r7, #12
  12336. 8005a6e: 46bd mov sp, r7
  12337. 8005a70: f85d 7b04 ldr.w r7, [sp], #4
  12338. 8005a74: 4770 bx lr
  12339. 08005a76 <LL_ADC_REG_SetSequencerRanks>:
  12340. * (3) On STM32H7, fast channel (0.125 us for 14-bit resolution (ADC conversion rate up to 8 Ms/s)).
  12341. * Other channels are slow channels (conversion rate: refer to reference manual).
  12342. * @retval None
  12343. */
  12344. __STATIC_INLINE void LL_ADC_REG_SetSequencerRanks(ADC_TypeDef *ADCx, uint32_t Rank, uint32_t Channel)
  12345. {
  12346. 8005a76: b480 push {r7}
  12347. 8005a78: b087 sub sp, #28
  12348. 8005a7a: af00 add r7, sp, #0
  12349. 8005a7c: 60f8 str r0, [r7, #12]
  12350. 8005a7e: 60b9 str r1, [r7, #8]
  12351. 8005a80: 607a str r2, [r7, #4]
  12352. /* Set bits with content of parameter "Channel" with bits position */
  12353. /* in register and register position depending on parameter "Rank". */
  12354. /* Parameters "Rank" and "Channel" are used with masks because containing */
  12355. /* other bits reserved for other purpose. */
  12356. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SQR1, ((Rank & ADC_REG_SQRX_REGOFFSET_MASK) >> ADC_SQRX_REGOFFSET_POS));
  12357. 8005a82: 68fb ldr r3, [r7, #12]
  12358. 8005a84: 3330 adds r3, #48 @ 0x30
  12359. 8005a86: 461a mov r2, r3
  12360. 8005a88: 68bb ldr r3, [r7, #8]
  12361. 8005a8a: 0a1b lsrs r3, r3, #8
  12362. 8005a8c: 009b lsls r3, r3, #2
  12363. 8005a8e: f003 030c and.w r3, r3, #12
  12364. 8005a92: 4413 add r3, r2
  12365. 8005a94: 617b str r3, [r7, #20]
  12366. MODIFY_REG(*preg,
  12367. 8005a96: 697b ldr r3, [r7, #20]
  12368. 8005a98: 681a ldr r2, [r3, #0]
  12369. 8005a9a: 68bb ldr r3, [r7, #8]
  12370. 8005a9c: f003 031f and.w r3, r3, #31
  12371. 8005aa0: 211f movs r1, #31
  12372. 8005aa2: fa01 f303 lsl.w r3, r1, r3
  12373. 8005aa6: 43db mvns r3, r3
  12374. 8005aa8: 401a ands r2, r3
  12375. 8005aaa: 687b ldr r3, [r7, #4]
  12376. 8005aac: 0e9b lsrs r3, r3, #26
  12377. 8005aae: f003 011f and.w r1, r3, #31
  12378. 8005ab2: 68bb ldr r3, [r7, #8]
  12379. 8005ab4: f003 031f and.w r3, r3, #31
  12380. 8005ab8: fa01 f303 lsl.w r3, r1, r3
  12381. 8005abc: 431a orrs r2, r3
  12382. 8005abe: 697b ldr r3, [r7, #20]
  12383. 8005ac0: 601a str r2, [r3, #0]
  12384. ADC_CHANNEL_ID_NUMBER_MASK_POSBIT0 << (Rank & ADC_REG_RANK_ID_SQRX_MASK),
  12385. ((Channel & ADC_CHANNEL_ID_NUMBER_MASK) >> ADC_CHANNEL_ID_NUMBER_BITOFFSET_POS) << (Rank & ADC_REG_RANK_ID_SQRX_MASK));
  12386. }
  12387. 8005ac2: bf00 nop
  12388. 8005ac4: 371c adds r7, #28
  12389. 8005ac6: 46bd mov sp, r7
  12390. 8005ac8: f85d 7b04 ldr.w r7, [sp], #4
  12391. 8005acc: 4770 bx lr
  12392. 08005ace <LL_ADC_REG_SetDataTransferMode>:
  12393. * @param ADCx ADC instance
  12394. * @param DataTransferMode Select Data Management configuration
  12395. * @retval None
  12396. */
  12397. __STATIC_INLINE void LL_ADC_REG_SetDataTransferMode(ADC_TypeDef *ADCx, uint32_t DataTransferMode)
  12398. {
  12399. 8005ace: b480 push {r7}
  12400. 8005ad0: b083 sub sp, #12
  12401. 8005ad2: af00 add r7, sp, #0
  12402. 8005ad4: 6078 str r0, [r7, #4]
  12403. 8005ad6: 6039 str r1, [r7, #0]
  12404. MODIFY_REG(ADCx->CFGR, ADC_CFGR_DMNGT, DataTransferMode);
  12405. 8005ad8: 687b ldr r3, [r7, #4]
  12406. 8005ada: 68db ldr r3, [r3, #12]
  12407. 8005adc: f023 0203 bic.w r2, r3, #3
  12408. 8005ae0: 683b ldr r3, [r7, #0]
  12409. 8005ae2: 431a orrs r2, r3
  12410. 8005ae4: 687b ldr r3, [r7, #4]
  12411. 8005ae6: 60da str r2, [r3, #12]
  12412. }
  12413. 8005ae8: bf00 nop
  12414. 8005aea: 370c adds r7, #12
  12415. 8005aec: 46bd mov sp, r7
  12416. 8005aee: f85d 7b04 ldr.w r7, [sp], #4
  12417. 8005af2: 4770 bx lr
  12418. 08005af4 <LL_ADC_SetChannelSamplingTime>:
  12419. * @arg @ref LL_ADC_SAMPLINGTIME_387CYCLES_5
  12420. * @arg @ref LL_ADC_SAMPLINGTIME_810CYCLES_5
  12421. * @retval None
  12422. */
  12423. __STATIC_INLINE void LL_ADC_SetChannelSamplingTime(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SamplingTime)
  12424. {
  12425. 8005af4: b480 push {r7}
  12426. 8005af6: b087 sub sp, #28
  12427. 8005af8: af00 add r7, sp, #0
  12428. 8005afa: 60f8 str r0, [r7, #12]
  12429. 8005afc: 60b9 str r1, [r7, #8]
  12430. 8005afe: 607a str r2, [r7, #4]
  12431. /* Set bits with content of parameter "SamplingTime" with bits position */
  12432. /* in register and register position depending on parameter "Channel". */
  12433. /* Parameter "Channel" is used with masks because containing */
  12434. /* other bits reserved for other purpose. */
  12435. __IO uint32_t *preg = __ADC_PTR_REG_OFFSET(ADCx->SMPR1, ((Channel & ADC_CHANNEL_SMPRX_REGOFFSET_MASK) >> ADC_SMPRX_REGOFFSET_POS));
  12436. 8005b00: 68fb ldr r3, [r7, #12]
  12437. 8005b02: 3314 adds r3, #20
  12438. 8005b04: 461a mov r2, r3
  12439. 8005b06: 68bb ldr r3, [r7, #8]
  12440. 8005b08: 0e5b lsrs r3, r3, #25
  12441. 8005b0a: 009b lsls r3, r3, #2
  12442. 8005b0c: f003 0304 and.w r3, r3, #4
  12443. 8005b10: 4413 add r3, r2
  12444. 8005b12: 617b str r3, [r7, #20]
  12445. MODIFY_REG(*preg,
  12446. 8005b14: 697b ldr r3, [r7, #20]
  12447. 8005b16: 681a ldr r2, [r3, #0]
  12448. 8005b18: 68bb ldr r3, [r7, #8]
  12449. 8005b1a: 0d1b lsrs r3, r3, #20
  12450. 8005b1c: f003 031f and.w r3, r3, #31
  12451. 8005b20: 2107 movs r1, #7
  12452. 8005b22: fa01 f303 lsl.w r3, r1, r3
  12453. 8005b26: 43db mvns r3, r3
  12454. 8005b28: 401a ands r2, r3
  12455. 8005b2a: 68bb ldr r3, [r7, #8]
  12456. 8005b2c: 0d1b lsrs r3, r3, #20
  12457. 8005b2e: f003 031f and.w r3, r3, #31
  12458. 8005b32: 6879 ldr r1, [r7, #4]
  12459. 8005b34: fa01 f303 lsl.w r3, r1, r3
  12460. 8005b38: 431a orrs r2, r3
  12461. 8005b3a: 697b ldr r3, [r7, #20]
  12462. 8005b3c: 601a str r2, [r3, #0]
  12463. ADC_SMPR1_SMP0 << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS),
  12464. SamplingTime << ((Channel & ADC_CHANNEL_SMPx_BITOFFSET_MASK) >> ADC_CHANNEL_SMPx_BITOFFSET_POS));
  12465. }
  12466. 8005b3e: bf00 nop
  12467. 8005b40: 371c adds r7, #28
  12468. 8005b42: 46bd mov sp, r7
  12469. 8005b44: f85d 7b04 ldr.w r7, [sp], #4
  12470. 8005b48: 4770 bx lr
  12471. ...
  12472. 08005b4c <LL_ADC_SetChannelSingleDiff>:
  12473. * @arg @ref LL_ADC_SINGLE_ENDED
  12474. * @arg @ref LL_ADC_DIFFERENTIAL_ENDED
  12475. * @retval None
  12476. */
  12477. __STATIC_INLINE void LL_ADC_SetChannelSingleDiff(ADC_TypeDef *ADCx, uint32_t Channel, uint32_t SingleDiff)
  12478. {
  12479. 8005b4c: b480 push {r7}
  12480. 8005b4e: b085 sub sp, #20
  12481. 8005b50: af00 add r7, sp, #0
  12482. 8005b52: 60f8 str r0, [r7, #12]
  12483. 8005b54: 60b9 str r1, [r7, #8]
  12484. 8005b56: 607a str r2, [r7, #4]
  12485. }
  12486. #else /* ADC_VER_V5_V90 */
  12487. /* Bits of channels in single or differential mode are set only for */
  12488. /* differential mode (for single mode, mask of bits allowed to be set is */
  12489. /* shifted out of range of bits of channels in single or differential mode. */
  12490. MODIFY_REG(ADCx->DIFSEL,
  12491. 8005b58: 68fb ldr r3, [r7, #12]
  12492. 8005b5a: f8d3 20c0 ldr.w r2, [r3, #192] @ 0xc0
  12493. 8005b5e: 68bb ldr r3, [r7, #8]
  12494. 8005b60: f3c3 0313 ubfx r3, r3, #0, #20
  12495. 8005b64: 43db mvns r3, r3
  12496. 8005b66: 401a ands r2, r3
  12497. 8005b68: 687b ldr r3, [r7, #4]
  12498. 8005b6a: f003 0318 and.w r3, r3, #24
  12499. 8005b6e: 4908 ldr r1, [pc, #32] @ (8005b90 <LL_ADC_SetChannelSingleDiff+0x44>)
  12500. 8005b70: 40d9 lsrs r1, r3
  12501. 8005b72: 68bb ldr r3, [r7, #8]
  12502. 8005b74: 400b ands r3, r1
  12503. 8005b76: f3c3 0313 ubfx r3, r3, #0, #20
  12504. 8005b7a: 431a orrs r2, r3
  12505. 8005b7c: 68fb ldr r3, [r7, #12]
  12506. 8005b7e: f8c3 20c0 str.w r2, [r3, #192] @ 0xc0
  12507. Channel & ADC_SINGLEDIFF_CHANNEL_MASK,
  12508. (Channel & ADC_SINGLEDIFF_CHANNEL_MASK) & (ADC_DIFSEL_DIFSEL >> (SingleDiff & ADC_SINGLEDIFF_CHANNEL_SHIFT_MASK)));
  12509. #endif /* ADC_VER_V5_V90 */
  12510. }
  12511. 8005b82: bf00 nop
  12512. 8005b84: 3714 adds r7, #20
  12513. 8005b86: 46bd mov sp, r7
  12514. 8005b88: f85d 7b04 ldr.w r7, [sp], #4
  12515. 8005b8c: 4770 bx lr
  12516. 8005b8e: bf00 nop
  12517. 8005b90: 000fffff .word 0x000fffff
  12518. 08005b94 <LL_ADC_GetMultimode>:
  12519. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_SIM
  12520. * @arg @ref LL_ADC_MULTI_DUAL_REG_SIM_INJ_ALT
  12521. * @arg @ref LL_ADC_MULTI_DUAL_REG_INT_INJ_SIM
  12522. */
  12523. __STATIC_INLINE uint32_t LL_ADC_GetMultimode(ADC_Common_TypeDef *ADCxy_COMMON)
  12524. {
  12525. 8005b94: b480 push {r7}
  12526. 8005b96: b083 sub sp, #12
  12527. 8005b98: af00 add r7, sp, #0
  12528. 8005b9a: 6078 str r0, [r7, #4]
  12529. return (uint32_t)(READ_BIT(ADCxy_COMMON->CCR, ADC_CCR_DUAL));
  12530. 8005b9c: 687b ldr r3, [r7, #4]
  12531. 8005b9e: 689b ldr r3, [r3, #8]
  12532. 8005ba0: f003 031f and.w r3, r3, #31
  12533. }
  12534. 8005ba4: 4618 mov r0, r3
  12535. 8005ba6: 370c adds r7, #12
  12536. 8005ba8: 46bd mov sp, r7
  12537. 8005baa: f85d 7b04 ldr.w r7, [sp], #4
  12538. 8005bae: 4770 bx lr
  12539. 08005bb0 <LL_ADC_DisableDeepPowerDown>:
  12540. * @rmtoll CR DEEPPWD LL_ADC_DisableDeepPowerDown
  12541. * @param ADCx ADC instance
  12542. * @retval None
  12543. */
  12544. __STATIC_INLINE void LL_ADC_DisableDeepPowerDown(ADC_TypeDef *ADCx)
  12545. {
  12546. 8005bb0: b480 push {r7}
  12547. 8005bb2: b083 sub sp, #12
  12548. 8005bb4: af00 add r7, sp, #0
  12549. 8005bb6: 6078 str r0, [r7, #4]
  12550. /* Note: Write register with some additional bits forced to state reset */
  12551. /* instead of modifying only the selected bit for this function, */
  12552. /* to not interfere with bits with HW property "rs". */
  12553. CLEAR_BIT(ADCx->CR, (ADC_CR_DEEPPWD | ADC_CR_BITS_PROPERTY_RS));
  12554. 8005bb8: 687b ldr r3, [r7, #4]
  12555. 8005bba: 689a ldr r2, [r3, #8]
  12556. 8005bbc: 4b04 ldr r3, [pc, #16] @ (8005bd0 <LL_ADC_DisableDeepPowerDown+0x20>)
  12557. 8005bbe: 4013 ands r3, r2
  12558. 8005bc0: 687a ldr r2, [r7, #4]
  12559. 8005bc2: 6093 str r3, [r2, #8]
  12560. }
  12561. 8005bc4: bf00 nop
  12562. 8005bc6: 370c adds r7, #12
  12563. 8005bc8: 46bd mov sp, r7
  12564. 8005bca: f85d 7b04 ldr.w r7, [sp], #4
  12565. 8005bce: 4770 bx lr
  12566. 8005bd0: 5fffffc0 .word 0x5fffffc0
  12567. 08005bd4 <LL_ADC_IsDeepPowerDownEnabled>:
  12568. * @rmtoll CR DEEPPWD LL_ADC_IsDeepPowerDownEnabled
  12569. * @param ADCx ADC instance
  12570. * @retval 0: deep power down is disabled, 1: deep power down is enabled.
  12571. */
  12572. __STATIC_INLINE uint32_t LL_ADC_IsDeepPowerDownEnabled(ADC_TypeDef *ADCx)
  12573. {
  12574. 8005bd4: b480 push {r7}
  12575. 8005bd6: b083 sub sp, #12
  12576. 8005bd8: af00 add r7, sp, #0
  12577. 8005bda: 6078 str r0, [r7, #4]
  12578. return ((READ_BIT(ADCx->CR, ADC_CR_DEEPPWD) == (ADC_CR_DEEPPWD)) ? 1UL : 0UL);
  12579. 8005bdc: 687b ldr r3, [r7, #4]
  12580. 8005bde: 689b ldr r3, [r3, #8]
  12581. 8005be0: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  12582. 8005be4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  12583. 8005be8: d101 bne.n 8005bee <LL_ADC_IsDeepPowerDownEnabled+0x1a>
  12584. 8005bea: 2301 movs r3, #1
  12585. 8005bec: e000 b.n 8005bf0 <LL_ADC_IsDeepPowerDownEnabled+0x1c>
  12586. 8005bee: 2300 movs r3, #0
  12587. }
  12588. 8005bf0: 4618 mov r0, r3
  12589. 8005bf2: 370c adds r7, #12
  12590. 8005bf4: 46bd mov sp, r7
  12591. 8005bf6: f85d 7b04 ldr.w r7, [sp], #4
  12592. 8005bfa: 4770 bx lr
  12593. 08005bfc <LL_ADC_EnableInternalRegulator>:
  12594. * @rmtoll CR ADVREGEN LL_ADC_EnableInternalRegulator
  12595. * @param ADCx ADC instance
  12596. * @retval None
  12597. */
  12598. __STATIC_INLINE void LL_ADC_EnableInternalRegulator(ADC_TypeDef *ADCx)
  12599. {
  12600. 8005bfc: b480 push {r7}
  12601. 8005bfe: b083 sub sp, #12
  12602. 8005c00: af00 add r7, sp, #0
  12603. 8005c02: 6078 str r0, [r7, #4]
  12604. /* Note: Write register with some additional bits forced to state reset */
  12605. /* instead of modifying only the selected bit for this function, */
  12606. /* to not interfere with bits with HW property "rs". */
  12607. MODIFY_REG(ADCx->CR,
  12608. 8005c04: 687b ldr r3, [r7, #4]
  12609. 8005c06: 689a ldr r2, [r3, #8]
  12610. 8005c08: 4b05 ldr r3, [pc, #20] @ (8005c20 <LL_ADC_EnableInternalRegulator+0x24>)
  12611. 8005c0a: 4013 ands r3, r2
  12612. 8005c0c: f043 5280 orr.w r2, r3, #268435456 @ 0x10000000
  12613. 8005c10: 687b ldr r3, [r7, #4]
  12614. 8005c12: 609a str r2, [r3, #8]
  12615. ADC_CR_BITS_PROPERTY_RS,
  12616. ADC_CR_ADVREGEN);
  12617. }
  12618. 8005c14: bf00 nop
  12619. 8005c16: 370c adds r7, #12
  12620. 8005c18: 46bd mov sp, r7
  12621. 8005c1a: f85d 7b04 ldr.w r7, [sp], #4
  12622. 8005c1e: 4770 bx lr
  12623. 8005c20: 6fffffc0 .word 0x6fffffc0
  12624. 08005c24 <LL_ADC_IsInternalRegulatorEnabled>:
  12625. * @rmtoll CR ADVREGEN LL_ADC_IsInternalRegulatorEnabled
  12626. * @param ADCx ADC instance
  12627. * @retval 0: internal regulator is disabled, 1: internal regulator is enabled.
  12628. */
  12629. __STATIC_INLINE uint32_t LL_ADC_IsInternalRegulatorEnabled(ADC_TypeDef *ADCx)
  12630. {
  12631. 8005c24: b480 push {r7}
  12632. 8005c26: b083 sub sp, #12
  12633. 8005c28: af00 add r7, sp, #0
  12634. 8005c2a: 6078 str r0, [r7, #4]
  12635. return ((READ_BIT(ADCx->CR, ADC_CR_ADVREGEN) == (ADC_CR_ADVREGEN)) ? 1UL : 0UL);
  12636. 8005c2c: 687b ldr r3, [r7, #4]
  12637. 8005c2e: 689b ldr r3, [r3, #8]
  12638. 8005c30: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  12639. 8005c34: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  12640. 8005c38: d101 bne.n 8005c3e <LL_ADC_IsInternalRegulatorEnabled+0x1a>
  12641. 8005c3a: 2301 movs r3, #1
  12642. 8005c3c: e000 b.n 8005c40 <LL_ADC_IsInternalRegulatorEnabled+0x1c>
  12643. 8005c3e: 2300 movs r3, #0
  12644. }
  12645. 8005c40: 4618 mov r0, r3
  12646. 8005c42: 370c adds r7, #12
  12647. 8005c44: 46bd mov sp, r7
  12648. 8005c46: f85d 7b04 ldr.w r7, [sp], #4
  12649. 8005c4a: 4770 bx lr
  12650. 08005c4c <LL_ADC_Enable>:
  12651. * @rmtoll CR ADEN LL_ADC_Enable
  12652. * @param ADCx ADC instance
  12653. * @retval None
  12654. */
  12655. __STATIC_INLINE void LL_ADC_Enable(ADC_TypeDef *ADCx)
  12656. {
  12657. 8005c4c: b480 push {r7}
  12658. 8005c4e: b083 sub sp, #12
  12659. 8005c50: af00 add r7, sp, #0
  12660. 8005c52: 6078 str r0, [r7, #4]
  12661. /* Note: Write register with some additional bits forced to state reset */
  12662. /* instead of modifying only the selected bit for this function, */
  12663. /* to not interfere with bits with HW property "rs". */
  12664. MODIFY_REG(ADCx->CR,
  12665. 8005c54: 687b ldr r3, [r7, #4]
  12666. 8005c56: 689a ldr r2, [r3, #8]
  12667. 8005c58: 4b05 ldr r3, [pc, #20] @ (8005c70 <LL_ADC_Enable+0x24>)
  12668. 8005c5a: 4013 ands r3, r2
  12669. 8005c5c: f043 0201 orr.w r2, r3, #1
  12670. 8005c60: 687b ldr r3, [r7, #4]
  12671. 8005c62: 609a str r2, [r3, #8]
  12672. ADC_CR_BITS_PROPERTY_RS,
  12673. ADC_CR_ADEN);
  12674. }
  12675. 8005c64: bf00 nop
  12676. 8005c66: 370c adds r7, #12
  12677. 8005c68: 46bd mov sp, r7
  12678. 8005c6a: f85d 7b04 ldr.w r7, [sp], #4
  12679. 8005c6e: 4770 bx lr
  12680. 8005c70: 7fffffc0 .word 0x7fffffc0
  12681. 08005c74 <LL_ADC_Disable>:
  12682. * @rmtoll CR ADDIS LL_ADC_Disable
  12683. * @param ADCx ADC instance
  12684. * @retval None
  12685. */
  12686. __STATIC_INLINE void LL_ADC_Disable(ADC_TypeDef *ADCx)
  12687. {
  12688. 8005c74: b480 push {r7}
  12689. 8005c76: b083 sub sp, #12
  12690. 8005c78: af00 add r7, sp, #0
  12691. 8005c7a: 6078 str r0, [r7, #4]
  12692. /* Note: Write register with some additional bits forced to state reset */
  12693. /* instead of modifying only the selected bit for this function, */
  12694. /* to not interfere with bits with HW property "rs". */
  12695. MODIFY_REG(ADCx->CR,
  12696. 8005c7c: 687b ldr r3, [r7, #4]
  12697. 8005c7e: 689a ldr r2, [r3, #8]
  12698. 8005c80: 4b05 ldr r3, [pc, #20] @ (8005c98 <LL_ADC_Disable+0x24>)
  12699. 8005c82: 4013 ands r3, r2
  12700. 8005c84: f043 0202 orr.w r2, r3, #2
  12701. 8005c88: 687b ldr r3, [r7, #4]
  12702. 8005c8a: 609a str r2, [r3, #8]
  12703. ADC_CR_BITS_PROPERTY_RS,
  12704. ADC_CR_ADDIS);
  12705. }
  12706. 8005c8c: bf00 nop
  12707. 8005c8e: 370c adds r7, #12
  12708. 8005c90: 46bd mov sp, r7
  12709. 8005c92: f85d 7b04 ldr.w r7, [sp], #4
  12710. 8005c96: 4770 bx lr
  12711. 8005c98: 7fffffc0 .word 0x7fffffc0
  12712. 08005c9c <LL_ADC_IsEnabled>:
  12713. * @rmtoll CR ADEN LL_ADC_IsEnabled
  12714. * @param ADCx ADC instance
  12715. * @retval 0: ADC is disabled, 1: ADC is enabled.
  12716. */
  12717. __STATIC_INLINE uint32_t LL_ADC_IsEnabled(ADC_TypeDef *ADCx)
  12718. {
  12719. 8005c9c: b480 push {r7}
  12720. 8005c9e: b083 sub sp, #12
  12721. 8005ca0: af00 add r7, sp, #0
  12722. 8005ca2: 6078 str r0, [r7, #4]
  12723. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  12724. 8005ca4: 687b ldr r3, [r7, #4]
  12725. 8005ca6: 689b ldr r3, [r3, #8]
  12726. 8005ca8: f003 0301 and.w r3, r3, #1
  12727. 8005cac: 2b01 cmp r3, #1
  12728. 8005cae: d101 bne.n 8005cb4 <LL_ADC_IsEnabled+0x18>
  12729. 8005cb0: 2301 movs r3, #1
  12730. 8005cb2: e000 b.n 8005cb6 <LL_ADC_IsEnabled+0x1a>
  12731. 8005cb4: 2300 movs r3, #0
  12732. }
  12733. 8005cb6: 4618 mov r0, r3
  12734. 8005cb8: 370c adds r7, #12
  12735. 8005cba: 46bd mov sp, r7
  12736. 8005cbc: f85d 7b04 ldr.w r7, [sp], #4
  12737. 8005cc0: 4770 bx lr
  12738. 08005cc2 <LL_ADC_IsDisableOngoing>:
  12739. * @rmtoll CR ADDIS LL_ADC_IsDisableOngoing
  12740. * @param ADCx ADC instance
  12741. * @retval 0: no ADC disable command on going.
  12742. */
  12743. __STATIC_INLINE uint32_t LL_ADC_IsDisableOngoing(ADC_TypeDef *ADCx)
  12744. {
  12745. 8005cc2: b480 push {r7}
  12746. 8005cc4: b083 sub sp, #12
  12747. 8005cc6: af00 add r7, sp, #0
  12748. 8005cc8: 6078 str r0, [r7, #4]
  12749. return ((READ_BIT(ADCx->CR, ADC_CR_ADDIS) == (ADC_CR_ADDIS)) ? 1UL : 0UL);
  12750. 8005cca: 687b ldr r3, [r7, #4]
  12751. 8005ccc: 689b ldr r3, [r3, #8]
  12752. 8005cce: f003 0302 and.w r3, r3, #2
  12753. 8005cd2: 2b02 cmp r3, #2
  12754. 8005cd4: d101 bne.n 8005cda <LL_ADC_IsDisableOngoing+0x18>
  12755. 8005cd6: 2301 movs r3, #1
  12756. 8005cd8: e000 b.n 8005cdc <LL_ADC_IsDisableOngoing+0x1a>
  12757. 8005cda: 2300 movs r3, #0
  12758. }
  12759. 8005cdc: 4618 mov r0, r3
  12760. 8005cde: 370c adds r7, #12
  12761. 8005ce0: 46bd mov sp, r7
  12762. 8005ce2: f85d 7b04 ldr.w r7, [sp], #4
  12763. 8005ce6: 4770 bx lr
  12764. 08005ce8 <LL_ADC_REG_StartConversion>:
  12765. * @rmtoll CR ADSTART LL_ADC_REG_StartConversion
  12766. * @param ADCx ADC instance
  12767. * @retval None
  12768. */
  12769. __STATIC_INLINE void LL_ADC_REG_StartConversion(ADC_TypeDef *ADCx)
  12770. {
  12771. 8005ce8: b480 push {r7}
  12772. 8005cea: b083 sub sp, #12
  12773. 8005cec: af00 add r7, sp, #0
  12774. 8005cee: 6078 str r0, [r7, #4]
  12775. /* Note: Write register with some additional bits forced to state reset */
  12776. /* instead of modifying only the selected bit for this function, */
  12777. /* to not interfere with bits with HW property "rs". */
  12778. MODIFY_REG(ADCx->CR,
  12779. 8005cf0: 687b ldr r3, [r7, #4]
  12780. 8005cf2: 689a ldr r2, [r3, #8]
  12781. 8005cf4: 4b05 ldr r3, [pc, #20] @ (8005d0c <LL_ADC_REG_StartConversion+0x24>)
  12782. 8005cf6: 4013 ands r3, r2
  12783. 8005cf8: f043 0204 orr.w r2, r3, #4
  12784. 8005cfc: 687b ldr r3, [r7, #4]
  12785. 8005cfe: 609a str r2, [r3, #8]
  12786. ADC_CR_BITS_PROPERTY_RS,
  12787. ADC_CR_ADSTART);
  12788. }
  12789. 8005d00: bf00 nop
  12790. 8005d02: 370c adds r7, #12
  12791. 8005d04: 46bd mov sp, r7
  12792. 8005d06: f85d 7b04 ldr.w r7, [sp], #4
  12793. 8005d0a: 4770 bx lr
  12794. 8005d0c: 7fffffc0 .word 0x7fffffc0
  12795. 08005d10 <LL_ADC_REG_IsConversionOngoing>:
  12796. * @rmtoll CR ADSTART LL_ADC_REG_IsConversionOngoing
  12797. * @param ADCx ADC instance
  12798. * @retval 0: no conversion is on going on ADC group regular.
  12799. */
  12800. __STATIC_INLINE uint32_t LL_ADC_REG_IsConversionOngoing(ADC_TypeDef *ADCx)
  12801. {
  12802. 8005d10: b480 push {r7}
  12803. 8005d12: b083 sub sp, #12
  12804. 8005d14: af00 add r7, sp, #0
  12805. 8005d16: 6078 str r0, [r7, #4]
  12806. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  12807. 8005d18: 687b ldr r3, [r7, #4]
  12808. 8005d1a: 689b ldr r3, [r3, #8]
  12809. 8005d1c: f003 0304 and.w r3, r3, #4
  12810. 8005d20: 2b04 cmp r3, #4
  12811. 8005d22: d101 bne.n 8005d28 <LL_ADC_REG_IsConversionOngoing+0x18>
  12812. 8005d24: 2301 movs r3, #1
  12813. 8005d26: e000 b.n 8005d2a <LL_ADC_REG_IsConversionOngoing+0x1a>
  12814. 8005d28: 2300 movs r3, #0
  12815. }
  12816. 8005d2a: 4618 mov r0, r3
  12817. 8005d2c: 370c adds r7, #12
  12818. 8005d2e: 46bd mov sp, r7
  12819. 8005d30: f85d 7b04 ldr.w r7, [sp], #4
  12820. 8005d34: 4770 bx lr
  12821. 08005d36 <LL_ADC_INJ_IsConversionOngoing>:
  12822. * @rmtoll CR JADSTART LL_ADC_INJ_IsConversionOngoing
  12823. * @param ADCx ADC instance
  12824. * @retval 0: no conversion is on going on ADC group injected.
  12825. */
  12826. __STATIC_INLINE uint32_t LL_ADC_INJ_IsConversionOngoing(ADC_TypeDef *ADCx)
  12827. {
  12828. 8005d36: b480 push {r7}
  12829. 8005d38: b083 sub sp, #12
  12830. 8005d3a: af00 add r7, sp, #0
  12831. 8005d3c: 6078 str r0, [r7, #4]
  12832. return ((READ_BIT(ADCx->CR, ADC_CR_JADSTART) == (ADC_CR_JADSTART)) ? 1UL : 0UL);
  12833. 8005d3e: 687b ldr r3, [r7, #4]
  12834. 8005d40: 689b ldr r3, [r3, #8]
  12835. 8005d42: f003 0308 and.w r3, r3, #8
  12836. 8005d46: 2b08 cmp r3, #8
  12837. 8005d48: d101 bne.n 8005d4e <LL_ADC_INJ_IsConversionOngoing+0x18>
  12838. 8005d4a: 2301 movs r3, #1
  12839. 8005d4c: e000 b.n 8005d50 <LL_ADC_INJ_IsConversionOngoing+0x1a>
  12840. 8005d4e: 2300 movs r3, #0
  12841. }
  12842. 8005d50: 4618 mov r0, r3
  12843. 8005d52: 370c adds r7, #12
  12844. 8005d54: 46bd mov sp, r7
  12845. 8005d56: f85d 7b04 ldr.w r7, [sp], #4
  12846. 8005d5a: 4770 bx lr
  12847. 08005d5c <HAL_ADC_Init>:
  12848. * without disabling the other ADCs.
  12849. * @param hadc ADC handle
  12850. * @retval HAL status
  12851. */
  12852. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef *hadc)
  12853. {
  12854. 8005d5c: b590 push {r4, r7, lr}
  12855. 8005d5e: b089 sub sp, #36 @ 0x24
  12856. 8005d60: af00 add r7, sp, #0
  12857. 8005d62: 6078 str r0, [r7, #4]
  12858. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  12859. 8005d64: 2300 movs r3, #0
  12860. 8005d66: 77fb strb r3, [r7, #31]
  12861. uint32_t tmpCFGR;
  12862. uint32_t tmp_adc_reg_is_conversion_on_going;
  12863. __IO uint32_t wait_loop_index = 0UL;
  12864. 8005d68: 2300 movs r3, #0
  12865. 8005d6a: 60bb str r3, [r7, #8]
  12866. uint32_t tmp_adc_is_conversion_on_going_regular;
  12867. uint32_t tmp_adc_is_conversion_on_going_injected;
  12868. /* Check ADC handle */
  12869. if (hadc == NULL)
  12870. 8005d6c: 687b ldr r3, [r7, #4]
  12871. 8005d6e: 2b00 cmp r3, #0
  12872. 8005d70: d101 bne.n 8005d76 <HAL_ADC_Init+0x1a>
  12873. {
  12874. return HAL_ERROR;
  12875. 8005d72: 2301 movs r3, #1
  12876. 8005d74: e18f b.n 8006096 <HAL_ADC_Init+0x33a>
  12877. assert_param(IS_ADC_EOC_SELECTION(hadc->Init.EOCSelection));
  12878. assert_param(IS_ADC_OVERRUN(hadc->Init.Overrun));
  12879. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.LowPowerAutoWait));
  12880. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.OversamplingMode));
  12881. if (hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  12882. 8005d76: 687b ldr r3, [r7, #4]
  12883. 8005d78: 68db ldr r3, [r3, #12]
  12884. 8005d7a: 2b00 cmp r3, #0
  12885. /* DISCEN and CONT bits cannot be set at the same time */
  12886. assert_param(!((hadc->Init.DiscontinuousConvMode == ENABLE) && (hadc->Init.ContinuousConvMode == ENABLE)));
  12887. /* Actions performed only if ADC is coming from state reset: */
  12888. /* - Initialization of ADC MSP */
  12889. if (hadc->State == HAL_ADC_STATE_RESET)
  12890. 8005d7c: 687b ldr r3, [r7, #4]
  12891. 8005d7e: 6d5b ldr r3, [r3, #84] @ 0x54
  12892. 8005d80: 2b00 cmp r3, #0
  12893. 8005d82: d109 bne.n 8005d98 <HAL_ADC_Init+0x3c>
  12894. /* Init the low level hardware */
  12895. hadc->MspInitCallback(hadc);
  12896. #else
  12897. /* Init the low level hardware */
  12898. HAL_ADC_MspInit(hadc);
  12899. 8005d84: 6878 ldr r0, [r7, #4]
  12900. 8005d86: f7fd fd3f bl 8003808 <HAL_ADC_MspInit>
  12901. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  12902. /* Set ADC error code to none */
  12903. ADC_CLEAR_ERRORCODE(hadc);
  12904. 8005d8a: 687b ldr r3, [r7, #4]
  12905. 8005d8c: 2200 movs r2, #0
  12906. 8005d8e: 659a str r2, [r3, #88] @ 0x58
  12907. /* Initialize Lock */
  12908. hadc->Lock = HAL_UNLOCKED;
  12909. 8005d90: 687b ldr r3, [r7, #4]
  12910. 8005d92: 2200 movs r2, #0
  12911. 8005d94: f883 2050 strb.w r2, [r3, #80] @ 0x50
  12912. }
  12913. /* - Exit from deep-power-down mode and ADC voltage regulator enable */
  12914. if (LL_ADC_IsDeepPowerDownEnabled(hadc->Instance) != 0UL)
  12915. 8005d98: 687b ldr r3, [r7, #4]
  12916. 8005d9a: 681b ldr r3, [r3, #0]
  12917. 8005d9c: 4618 mov r0, r3
  12918. 8005d9e: f7ff ff19 bl 8005bd4 <LL_ADC_IsDeepPowerDownEnabled>
  12919. 8005da2: 4603 mov r3, r0
  12920. 8005da4: 2b00 cmp r3, #0
  12921. 8005da6: d004 beq.n 8005db2 <HAL_ADC_Init+0x56>
  12922. {
  12923. /* Disable ADC deep power down mode */
  12924. LL_ADC_DisableDeepPowerDown(hadc->Instance);
  12925. 8005da8: 687b ldr r3, [r7, #4]
  12926. 8005daa: 681b ldr r3, [r3, #0]
  12927. 8005dac: 4618 mov r0, r3
  12928. 8005dae: f7ff feff bl 8005bb0 <LL_ADC_DisableDeepPowerDown>
  12929. /* System was in deep power down mode, calibration must
  12930. be relaunched or a previously saved calibration factor
  12931. re-applied once the ADC voltage regulator is enabled */
  12932. }
  12933. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12934. 8005db2: 687b ldr r3, [r7, #4]
  12935. 8005db4: 681b ldr r3, [r3, #0]
  12936. 8005db6: 4618 mov r0, r3
  12937. 8005db8: f7ff ff34 bl 8005c24 <LL_ADC_IsInternalRegulatorEnabled>
  12938. 8005dbc: 4603 mov r3, r0
  12939. 8005dbe: 2b00 cmp r3, #0
  12940. 8005dc0: d114 bne.n 8005dec <HAL_ADC_Init+0x90>
  12941. {
  12942. /* Enable ADC internal voltage regulator */
  12943. LL_ADC_EnableInternalRegulator(hadc->Instance);
  12944. 8005dc2: 687b ldr r3, [r7, #4]
  12945. 8005dc4: 681b ldr r3, [r3, #0]
  12946. 8005dc6: 4618 mov r0, r3
  12947. 8005dc8: f7ff ff18 bl 8005bfc <LL_ADC_EnableInternalRegulator>
  12948. /* Note: Variable divided by 2 to compensate partially */
  12949. /* CPU processing cycles, scaling in us split to not */
  12950. /* exceed 32 bits register capacity and handle low frequency. */
  12951. wait_loop_index = ((LL_ADC_DELAY_INTERNAL_REGUL_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  12952. 8005dcc: 4b87 ldr r3, [pc, #540] @ (8005fec <HAL_ADC_Init+0x290>)
  12953. 8005dce: 681b ldr r3, [r3, #0]
  12954. 8005dd0: 099b lsrs r3, r3, #6
  12955. 8005dd2: 4a87 ldr r2, [pc, #540] @ (8005ff0 <HAL_ADC_Init+0x294>)
  12956. 8005dd4: fba2 2303 umull r2, r3, r2, r3
  12957. 8005dd8: 099b lsrs r3, r3, #6
  12958. 8005dda: 3301 adds r3, #1
  12959. 8005ddc: 60bb str r3, [r7, #8]
  12960. while (wait_loop_index != 0UL)
  12961. 8005dde: e002 b.n 8005de6 <HAL_ADC_Init+0x8a>
  12962. {
  12963. wait_loop_index--;
  12964. 8005de0: 68bb ldr r3, [r7, #8]
  12965. 8005de2: 3b01 subs r3, #1
  12966. 8005de4: 60bb str r3, [r7, #8]
  12967. while (wait_loop_index != 0UL)
  12968. 8005de6: 68bb ldr r3, [r7, #8]
  12969. 8005de8: 2b00 cmp r3, #0
  12970. 8005dea: d1f9 bne.n 8005de0 <HAL_ADC_Init+0x84>
  12971. }
  12972. /* Verification that ADC voltage regulator is correctly enabled, whether */
  12973. /* or not ADC is coming from state reset (if any potential problem of */
  12974. /* clocking, voltage regulator would not be enabled). */
  12975. if (LL_ADC_IsInternalRegulatorEnabled(hadc->Instance) == 0UL)
  12976. 8005dec: 687b ldr r3, [r7, #4]
  12977. 8005dee: 681b ldr r3, [r3, #0]
  12978. 8005df0: 4618 mov r0, r3
  12979. 8005df2: f7ff ff17 bl 8005c24 <LL_ADC_IsInternalRegulatorEnabled>
  12980. 8005df6: 4603 mov r3, r0
  12981. 8005df8: 2b00 cmp r3, #0
  12982. 8005dfa: d10d bne.n 8005e18 <HAL_ADC_Init+0xbc>
  12983. {
  12984. /* Update ADC state machine to error */
  12985. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  12986. 8005dfc: 687b ldr r3, [r7, #4]
  12987. 8005dfe: 6d5b ldr r3, [r3, #84] @ 0x54
  12988. 8005e00: f043 0210 orr.w r2, r3, #16
  12989. 8005e04: 687b ldr r3, [r7, #4]
  12990. 8005e06: 655a str r2, [r3, #84] @ 0x54
  12991. /* Set ADC error code to ADC peripheral internal error */
  12992. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  12993. 8005e08: 687b ldr r3, [r7, #4]
  12994. 8005e0a: 6d9b ldr r3, [r3, #88] @ 0x58
  12995. 8005e0c: f043 0201 orr.w r2, r3, #1
  12996. 8005e10: 687b ldr r3, [r7, #4]
  12997. 8005e12: 659a str r2, [r3, #88] @ 0x58
  12998. tmp_hal_status = HAL_ERROR;
  12999. 8005e14: 2301 movs r3, #1
  13000. 8005e16: 77fb strb r3, [r7, #31]
  13001. /* Configuration of ADC parameters if previous preliminary actions are */
  13002. /* correctly completed and if there is no conversion on going on regular */
  13003. /* group (ADC may already be enabled at this point if HAL_ADC_Init() is */
  13004. /* called to update a parameter on the fly). */
  13005. tmp_adc_reg_is_conversion_on_going = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13006. 8005e18: 687b ldr r3, [r7, #4]
  13007. 8005e1a: 681b ldr r3, [r3, #0]
  13008. 8005e1c: 4618 mov r0, r3
  13009. 8005e1e: f7ff ff77 bl 8005d10 <LL_ADC_REG_IsConversionOngoing>
  13010. 8005e22: 6178 str r0, [r7, #20]
  13011. if (((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) == 0UL)
  13012. 8005e24: 687b ldr r3, [r7, #4]
  13013. 8005e26: 6d5b ldr r3, [r3, #84] @ 0x54
  13014. 8005e28: f003 0310 and.w r3, r3, #16
  13015. 8005e2c: 2b00 cmp r3, #0
  13016. 8005e2e: f040 8129 bne.w 8006084 <HAL_ADC_Init+0x328>
  13017. && (tmp_adc_reg_is_conversion_on_going == 0UL)
  13018. 8005e32: 697b ldr r3, [r7, #20]
  13019. 8005e34: 2b00 cmp r3, #0
  13020. 8005e36: f040 8125 bne.w 8006084 <HAL_ADC_Init+0x328>
  13021. )
  13022. {
  13023. /* Set ADC state */
  13024. ADC_STATE_CLR_SET(hadc->State,
  13025. 8005e3a: 687b ldr r3, [r7, #4]
  13026. 8005e3c: 6d5b ldr r3, [r3, #84] @ 0x54
  13027. 8005e3e: f423 7381 bic.w r3, r3, #258 @ 0x102
  13028. 8005e42: f043 0202 orr.w r2, r3, #2
  13029. 8005e46: 687b ldr r3, [r7, #4]
  13030. 8005e48: 655a str r2, [r3, #84] @ 0x54
  13031. /* Configuration of common ADC parameters */
  13032. /* Parameters update conditioned to ADC state: */
  13033. /* Parameters that can be updated only when ADC is disabled: */
  13034. /* - clock configuration */
  13035. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  13036. 8005e4a: 687b ldr r3, [r7, #4]
  13037. 8005e4c: 681b ldr r3, [r3, #0]
  13038. 8005e4e: 4618 mov r0, r3
  13039. 8005e50: f7ff ff24 bl 8005c9c <LL_ADC_IsEnabled>
  13040. 8005e54: 4603 mov r3, r0
  13041. 8005e56: 2b00 cmp r3, #0
  13042. 8005e58: d136 bne.n 8005ec8 <HAL_ADC_Init+0x16c>
  13043. {
  13044. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  13045. 8005e5a: 687b ldr r3, [r7, #4]
  13046. 8005e5c: 681b ldr r3, [r3, #0]
  13047. 8005e5e: 4a65 ldr r2, [pc, #404] @ (8005ff4 <HAL_ADC_Init+0x298>)
  13048. 8005e60: 4293 cmp r3, r2
  13049. 8005e62: d004 beq.n 8005e6e <HAL_ADC_Init+0x112>
  13050. 8005e64: 687b ldr r3, [r7, #4]
  13051. 8005e66: 681b ldr r3, [r3, #0]
  13052. 8005e68: 4a63 ldr r2, [pc, #396] @ (8005ff8 <HAL_ADC_Init+0x29c>)
  13053. 8005e6a: 4293 cmp r3, r2
  13054. 8005e6c: d10e bne.n 8005e8c <HAL_ADC_Init+0x130>
  13055. 8005e6e: 4861 ldr r0, [pc, #388] @ (8005ff4 <HAL_ADC_Init+0x298>)
  13056. 8005e70: f7ff ff14 bl 8005c9c <LL_ADC_IsEnabled>
  13057. 8005e74: 4604 mov r4, r0
  13058. 8005e76: 4860 ldr r0, [pc, #384] @ (8005ff8 <HAL_ADC_Init+0x29c>)
  13059. 8005e78: f7ff ff10 bl 8005c9c <LL_ADC_IsEnabled>
  13060. 8005e7c: 4603 mov r3, r0
  13061. 8005e7e: 4323 orrs r3, r4
  13062. 8005e80: 2b00 cmp r3, #0
  13063. 8005e82: bf0c ite eq
  13064. 8005e84: 2301 moveq r3, #1
  13065. 8005e86: 2300 movne r3, #0
  13066. 8005e88: b2db uxtb r3, r3
  13067. 8005e8a: e008 b.n 8005e9e <HAL_ADC_Init+0x142>
  13068. 8005e8c: 485b ldr r0, [pc, #364] @ (8005ffc <HAL_ADC_Init+0x2a0>)
  13069. 8005e8e: f7ff ff05 bl 8005c9c <LL_ADC_IsEnabled>
  13070. 8005e92: 4603 mov r3, r0
  13071. 8005e94: 2b00 cmp r3, #0
  13072. 8005e96: bf0c ite eq
  13073. 8005e98: 2301 moveq r3, #1
  13074. 8005e9a: 2300 movne r3, #0
  13075. 8005e9c: b2db uxtb r3, r3
  13076. 8005e9e: 2b00 cmp r3, #0
  13077. 8005ea0: d012 beq.n 8005ec8 <HAL_ADC_Init+0x16c>
  13078. /* parameters: MDMA, DMACFG, DELAY, DUAL (set by API */
  13079. /* HAL_ADCEx_MultiModeConfigChannel() ) */
  13080. /* - internal measurement paths: Vbat, temperature sensor, Vref */
  13081. /* (set into HAL_ADC_ConfigChannel() or */
  13082. /* HAL_ADCEx_InjectedConfigChannel() ) */
  13083. LL_ADC_SetCommonClock(__LL_ADC_COMMON_INSTANCE(hadc->Instance), hadc->Init.ClockPrescaler);
  13084. 8005ea2: 687b ldr r3, [r7, #4]
  13085. 8005ea4: 681b ldr r3, [r3, #0]
  13086. 8005ea6: 4a53 ldr r2, [pc, #332] @ (8005ff4 <HAL_ADC_Init+0x298>)
  13087. 8005ea8: 4293 cmp r3, r2
  13088. 8005eaa: d004 beq.n 8005eb6 <HAL_ADC_Init+0x15a>
  13089. 8005eac: 687b ldr r3, [r7, #4]
  13090. 8005eae: 681b ldr r3, [r3, #0]
  13091. 8005eb0: 4a51 ldr r2, [pc, #324] @ (8005ff8 <HAL_ADC_Init+0x29c>)
  13092. 8005eb2: 4293 cmp r3, r2
  13093. 8005eb4: d101 bne.n 8005eba <HAL_ADC_Init+0x15e>
  13094. 8005eb6: 4a52 ldr r2, [pc, #328] @ (8006000 <HAL_ADC_Init+0x2a4>)
  13095. 8005eb8: e000 b.n 8005ebc <HAL_ADC_Init+0x160>
  13096. 8005eba: 4a52 ldr r2, [pc, #328] @ (8006004 <HAL_ADC_Init+0x2a8>)
  13097. 8005ebc: 687b ldr r3, [r7, #4]
  13098. 8005ebe: 685b ldr r3, [r3, #4]
  13099. 8005ec0: 4619 mov r1, r3
  13100. 8005ec2: 4610 mov r0, r2
  13101. 8005ec4: f7ff fd3c bl 8005940 <LL_ADC_SetCommonClock>
  13102. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13103. }
  13104. #else
  13105. if ((HAL_GetREVID() > REV_ID_Y) && (ADC_RESOLUTION_8B == hadc->Init.Resolution))
  13106. 8005ec8: f7ff fcf4 bl 80058b4 <HAL_GetREVID>
  13107. 8005ecc: 4603 mov r3, r0
  13108. 8005ece: f241 0203 movw r2, #4099 @ 0x1003
  13109. 8005ed2: 4293 cmp r3, r2
  13110. 8005ed4: d914 bls.n 8005f00 <HAL_ADC_Init+0x1a4>
  13111. 8005ed6: 687b ldr r3, [r7, #4]
  13112. 8005ed8: 689b ldr r3, [r3, #8]
  13113. 8005eda: 2b10 cmp r3, #16
  13114. 8005edc: d110 bne.n 8005f00 <HAL_ADC_Init+0x1a4>
  13115. {
  13116. /* for STM32H7 silicon rev.B and above , ADC_CFGR_RES value for 8bits resolution is : b111 */
  13117. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13118. 8005ede: 687b ldr r3, [r7, #4]
  13119. 8005ee0: 7d5b ldrb r3, [r3, #21]
  13120. 8005ee2: 035a lsls r2, r3, #13
  13121. hadc->Init.Overrun |
  13122. 8005ee4: 687b ldr r3, [r7, #4]
  13123. 8005ee6: 6b1b ldr r3, [r3, #48] @ 0x30
  13124. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13125. 8005ee8: 431a orrs r2, r3
  13126. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13127. 8005eea: 687b ldr r3, [r7, #4]
  13128. 8005eec: 689b ldr r3, [r3, #8]
  13129. hadc->Init.Overrun |
  13130. 8005eee: 431a orrs r2, r3
  13131. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13132. 8005ef0: 687b ldr r3, [r7, #4]
  13133. 8005ef2: 7f1b ldrb r3, [r3, #28]
  13134. 8005ef4: 041b lsls r3, r3, #16
  13135. hadc->Init.Resolution | (ADC_CFGR_RES_1 | ADC_CFGR_RES_0) |
  13136. 8005ef6: 4313 orrs r3, r2
  13137. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13138. 8005ef8: f043 030c orr.w r3, r3, #12
  13139. 8005efc: 61bb str r3, [r7, #24]
  13140. 8005efe: e00d b.n 8005f1c <HAL_ADC_Init+0x1c0>
  13141. }
  13142. else
  13143. {
  13144. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13145. 8005f00: 687b ldr r3, [r7, #4]
  13146. 8005f02: 7d5b ldrb r3, [r3, #21]
  13147. 8005f04: 035a lsls r2, r3, #13
  13148. hadc->Init.Overrun |
  13149. 8005f06: 687b ldr r3, [r7, #4]
  13150. 8005f08: 6b1b ldr r3, [r3, #48] @ 0x30
  13151. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13152. 8005f0a: 431a orrs r2, r3
  13153. hadc->Init.Resolution |
  13154. 8005f0c: 687b ldr r3, [r7, #4]
  13155. 8005f0e: 689b ldr r3, [r3, #8]
  13156. hadc->Init.Overrun |
  13157. 8005f10: 431a orrs r2, r3
  13158. ADC_CFGR_REG_DISCONTINUOUS((uint32_t)hadc->Init.DiscontinuousConvMode));
  13159. 8005f12: 687b ldr r3, [r7, #4]
  13160. 8005f14: 7f1b ldrb r3, [r3, #28]
  13161. 8005f16: 041b lsls r3, r3, #16
  13162. tmpCFGR = (ADC_CFGR_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) |
  13163. 8005f18: 4313 orrs r3, r2
  13164. 8005f1a: 61bb str r3, [r7, #24]
  13165. }
  13166. #endif /* ADC_VER_V5_3 */
  13167. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  13168. 8005f1c: 687b ldr r3, [r7, #4]
  13169. 8005f1e: 7f1b ldrb r3, [r3, #28]
  13170. 8005f20: 2b01 cmp r3, #1
  13171. 8005f22: d106 bne.n 8005f32 <HAL_ADC_Init+0x1d6>
  13172. {
  13173. tmpCFGR |= ADC_CFGR_DISCONTINUOUS_NUM(hadc->Init.NbrOfDiscConversion);
  13174. 8005f24: 687b ldr r3, [r7, #4]
  13175. 8005f26: 6a1b ldr r3, [r3, #32]
  13176. 8005f28: 3b01 subs r3, #1
  13177. 8005f2a: 045b lsls r3, r3, #17
  13178. 8005f2c: 69ba ldr r2, [r7, #24]
  13179. 8005f2e: 4313 orrs r3, r2
  13180. 8005f30: 61bb str r3, [r7, #24]
  13181. /* Enable external trigger if trigger selection is different of software */
  13182. /* start. */
  13183. /* Note: This configuration keeps the hardware feature of parameter */
  13184. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  13185. /* software start. */
  13186. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  13187. 8005f32: 687b ldr r3, [r7, #4]
  13188. 8005f34: 6a5b ldr r3, [r3, #36] @ 0x24
  13189. 8005f36: 2b00 cmp r3, #0
  13190. 8005f38: d009 beq.n 8005f4e <HAL_ADC_Init+0x1f2>
  13191. {
  13192. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13193. 8005f3a: 687b ldr r3, [r7, #4]
  13194. 8005f3c: 6a5b ldr r3, [r3, #36] @ 0x24
  13195. 8005f3e: f403 7278 and.w r2, r3, #992 @ 0x3e0
  13196. | hadc->Init.ExternalTrigConvEdge
  13197. 8005f42: 687b ldr r3, [r7, #4]
  13198. 8005f44: 6a9b ldr r3, [r3, #40] @ 0x28
  13199. 8005f46: 4313 orrs r3, r2
  13200. tmpCFGR |= ((hadc->Init.ExternalTrigConv & ADC_CFGR_EXTSEL)
  13201. 8005f48: 69ba ldr r2, [r7, #24]
  13202. 8005f4a: 4313 orrs r3, r2
  13203. 8005f4c: 61bb str r3, [r7, #24]
  13204. /* Update Configuration Register CFGR */
  13205. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13206. }
  13207. #else
  13208. /* Update Configuration Register CFGR */
  13209. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_1, tmpCFGR);
  13210. 8005f4e: 687b ldr r3, [r7, #4]
  13211. 8005f50: 681b ldr r3, [r3, #0]
  13212. 8005f52: 68da ldr r2, [r3, #12]
  13213. 8005f54: 4b2c ldr r3, [pc, #176] @ (8006008 <HAL_ADC_Init+0x2ac>)
  13214. 8005f56: 4013 ands r3, r2
  13215. 8005f58: 687a ldr r2, [r7, #4]
  13216. 8005f5a: 6812 ldr r2, [r2, #0]
  13217. 8005f5c: 69b9 ldr r1, [r7, #24]
  13218. 8005f5e: 430b orrs r3, r1
  13219. 8005f60: 60d3 str r3, [r2, #12]
  13220. /* Parameters that can be updated when ADC is disabled or enabled without */
  13221. /* conversion on going on regular and injected groups: */
  13222. /* - Conversion data management Init.ConversionDataManagement */
  13223. /* - LowPowerAutoWait feature Init.LowPowerAutoWait */
  13224. /* - Oversampling parameters Init.Oversampling */
  13225. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13226. 8005f62: 687b ldr r3, [r7, #4]
  13227. 8005f64: 681b ldr r3, [r3, #0]
  13228. 8005f66: 4618 mov r0, r3
  13229. 8005f68: f7ff fed2 bl 8005d10 <LL_ADC_REG_IsConversionOngoing>
  13230. 8005f6c: 6138 str r0, [r7, #16]
  13231. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13232. 8005f6e: 687b ldr r3, [r7, #4]
  13233. 8005f70: 681b ldr r3, [r3, #0]
  13234. 8005f72: 4618 mov r0, r3
  13235. 8005f74: f7ff fedf bl 8005d36 <LL_ADC_INJ_IsConversionOngoing>
  13236. 8005f78: 60f8 str r0, [r7, #12]
  13237. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13238. 8005f7a: 693b ldr r3, [r7, #16]
  13239. 8005f7c: 2b00 cmp r3, #0
  13240. 8005f7e: d15f bne.n 8006040 <HAL_ADC_Init+0x2e4>
  13241. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13242. 8005f80: 68fb ldr r3, [r7, #12]
  13243. 8005f82: 2b00 cmp r3, #0
  13244. 8005f84: d15c bne.n 8006040 <HAL_ADC_Init+0x2e4>
  13245. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13246. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13247. }
  13248. #else
  13249. tmpCFGR = (
  13250. ADC_CFGR_AUTOWAIT((uint32_t)hadc->Init.LowPowerAutoWait) |
  13251. 8005f86: 687b ldr r3, [r7, #4]
  13252. 8005f88: 7d1b ldrb r3, [r3, #20]
  13253. 8005f8a: 039a lsls r2, r3, #14
  13254. ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13255. 8005f8c: 687b ldr r3, [r7, #4]
  13256. 8005f8e: 6adb ldr r3, [r3, #44] @ 0x2c
  13257. tmpCFGR = (
  13258. 8005f90: 4313 orrs r3, r2
  13259. 8005f92: 61bb str r3, [r7, #24]
  13260. #endif
  13261. MODIFY_REG(hadc->Instance->CFGR, ADC_CFGR_FIELDS_2, tmpCFGR);
  13262. 8005f94: 687b ldr r3, [r7, #4]
  13263. 8005f96: 681b ldr r3, [r3, #0]
  13264. 8005f98: 68da ldr r2, [r3, #12]
  13265. 8005f9a: 4b1c ldr r3, [pc, #112] @ (800600c <HAL_ADC_Init+0x2b0>)
  13266. 8005f9c: 4013 ands r3, r2
  13267. 8005f9e: 687a ldr r2, [r7, #4]
  13268. 8005fa0: 6812 ldr r2, [r2, #0]
  13269. 8005fa2: 69b9 ldr r1, [r7, #24]
  13270. 8005fa4: 430b orrs r3, r1
  13271. 8005fa6: 60d3 str r3, [r2, #12]
  13272. if (hadc->Init.OversamplingMode == ENABLE)
  13273. 8005fa8: 687b ldr r3, [r7, #4]
  13274. 8005faa: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
  13275. 8005fae: 2b01 cmp r3, #1
  13276. 8005fb0: d130 bne.n 8006014 <HAL_ADC_Init+0x2b8>
  13277. #endif
  13278. assert_param(IS_ADC_RIGHT_BIT_SHIFT(hadc->Init.Oversampling.RightBitShift));
  13279. assert_param(IS_ADC_TRIGGERED_OVERSAMPLING_MODE(hadc->Init.Oversampling.TriggeredMode));
  13280. assert_param(IS_ADC_REGOVERSAMPLING_MODE(hadc->Init.Oversampling.OversamplingStopReset));
  13281. if ((hadc->Init.ExternalTrigConv == ADC_SOFTWARE_START)
  13282. 8005fb2: 687b ldr r3, [r7, #4]
  13283. 8005fb4: 6a5b ldr r3, [r3, #36] @ 0x24
  13284. 8005fb6: 2b00 cmp r3, #0
  13285. /* - Oversampling Ratio */
  13286. /* - Right bit shift */
  13287. /* - Left bit shift */
  13288. /* - Triggered mode */
  13289. /* - Oversampling mode (continued/resumed) */
  13290. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_FIELDS,
  13291. 8005fb8: 687b ldr r3, [r7, #4]
  13292. 8005fba: 681b ldr r3, [r3, #0]
  13293. 8005fbc: 691a ldr r2, [r3, #16]
  13294. 8005fbe: 4b14 ldr r3, [pc, #80] @ (8006010 <HAL_ADC_Init+0x2b4>)
  13295. 8005fc0: 4013 ands r3, r2
  13296. 8005fc2: 687a ldr r2, [r7, #4]
  13297. 8005fc4: 6bd2 ldr r2, [r2, #60] @ 0x3c
  13298. 8005fc6: 3a01 subs r2, #1
  13299. 8005fc8: 0411 lsls r1, r2, #16
  13300. 8005fca: 687a ldr r2, [r7, #4]
  13301. 8005fcc: 6c12 ldr r2, [r2, #64] @ 0x40
  13302. 8005fce: 4311 orrs r1, r2
  13303. 8005fd0: 687a ldr r2, [r7, #4]
  13304. 8005fd2: 6c52 ldr r2, [r2, #68] @ 0x44
  13305. 8005fd4: 4311 orrs r1, r2
  13306. 8005fd6: 687a ldr r2, [r7, #4]
  13307. 8005fd8: 6c92 ldr r2, [r2, #72] @ 0x48
  13308. 8005fda: 430a orrs r2, r1
  13309. 8005fdc: 431a orrs r2, r3
  13310. 8005fde: 687b ldr r3, [r7, #4]
  13311. 8005fe0: 681b ldr r3, [r3, #0]
  13312. 8005fe2: f042 0201 orr.w r2, r2, #1
  13313. 8005fe6: 611a str r2, [r3, #16]
  13314. 8005fe8: e01c b.n 8006024 <HAL_ADC_Init+0x2c8>
  13315. 8005fea: bf00 nop
  13316. 8005fec: 24000034 .word 0x24000034
  13317. 8005ff0: 053e2d63 .word 0x053e2d63
  13318. 8005ff4: 40022000 .word 0x40022000
  13319. 8005ff8: 40022100 .word 0x40022100
  13320. 8005ffc: 58026000 .word 0x58026000
  13321. 8006000: 40022300 .word 0x40022300
  13322. 8006004: 58026300 .word 0x58026300
  13323. 8006008: fff0c003 .word 0xfff0c003
  13324. 800600c: ffffbffc .word 0xffffbffc
  13325. 8006010: fc00f81e .word 0xfc00f81e
  13326. }
  13327. else
  13328. {
  13329. /* Disable ADC oversampling scope on ADC group regular */
  13330. CLEAR_BIT(hadc->Instance->CFGR2, ADC_CFGR2_ROVSE);
  13331. 8006014: 687b ldr r3, [r7, #4]
  13332. 8006016: 681b ldr r3, [r3, #0]
  13333. 8006018: 691a ldr r2, [r3, #16]
  13334. 800601a: 687b ldr r3, [r7, #4]
  13335. 800601c: 681b ldr r3, [r3, #0]
  13336. 800601e: f022 0201 bic.w r2, r2, #1
  13337. 8006022: 611a str r2, [r3, #16]
  13338. }
  13339. /* Set the LeftShift parameter: it is applied to the final result with or without oversampling */
  13340. MODIFY_REG(hadc->Instance->CFGR2, ADC_CFGR2_LSHIFT, hadc->Init.LeftBitShift);
  13341. 8006024: 687b ldr r3, [r7, #4]
  13342. 8006026: 681b ldr r3, [r3, #0]
  13343. 8006028: 691b ldr r3, [r3, #16]
  13344. 800602a: f023 4170 bic.w r1, r3, #4026531840 @ 0xf0000000
  13345. 800602e: 687b ldr r3, [r7, #4]
  13346. 8006030: 6b5a ldr r2, [r3, #52] @ 0x34
  13347. 8006032: 687b ldr r3, [r7, #4]
  13348. 8006034: 681b ldr r3, [r3, #0]
  13349. 8006036: 430a orrs r2, r1
  13350. 8006038: 611a str r2, [r3, #16]
  13351. /* Configure the BOOST Mode */
  13352. ADC_ConfigureBoostMode(hadc);
  13353. }
  13354. #else
  13355. /* Configure the BOOST Mode */
  13356. ADC_ConfigureBoostMode(hadc);
  13357. 800603a: 6878 ldr r0, [r7, #4]
  13358. 800603c: f000 fde2 bl 8006c04 <ADC_ConfigureBoostMode>
  13359. /* Note: Scan mode is not present by hardware on this device, but */
  13360. /* emulated by software for alignment over all STM32 devices. */
  13361. /* - if scan mode is enabled, regular channels sequence length is set to */
  13362. /* parameter "NbrOfConversion". */
  13363. if (hadc->Init.ScanConvMode == ADC_SCAN_ENABLE)
  13364. 8006040: 687b ldr r3, [r7, #4]
  13365. 8006042: 68db ldr r3, [r3, #12]
  13366. 8006044: 2b01 cmp r3, #1
  13367. 8006046: d10c bne.n 8006062 <HAL_ADC_Init+0x306>
  13368. {
  13369. /* Set number of ranks in regular group sequencer */
  13370. MODIFY_REG(hadc->Instance->SQR1, ADC_SQR1_L, (hadc->Init.NbrOfConversion - (uint8_t)1));
  13371. 8006048: 687b ldr r3, [r7, #4]
  13372. 800604a: 681b ldr r3, [r3, #0]
  13373. 800604c: 6b1b ldr r3, [r3, #48] @ 0x30
  13374. 800604e: f023 010f bic.w r1, r3, #15
  13375. 8006052: 687b ldr r3, [r7, #4]
  13376. 8006054: 699b ldr r3, [r3, #24]
  13377. 8006056: 1e5a subs r2, r3, #1
  13378. 8006058: 687b ldr r3, [r7, #4]
  13379. 800605a: 681b ldr r3, [r3, #0]
  13380. 800605c: 430a orrs r2, r1
  13381. 800605e: 631a str r2, [r3, #48] @ 0x30
  13382. 8006060: e007 b.n 8006072 <HAL_ADC_Init+0x316>
  13383. }
  13384. else
  13385. {
  13386. CLEAR_BIT(hadc->Instance->SQR1, ADC_SQR1_L);
  13387. 8006062: 687b ldr r3, [r7, #4]
  13388. 8006064: 681b ldr r3, [r3, #0]
  13389. 8006066: 6b1a ldr r2, [r3, #48] @ 0x30
  13390. 8006068: 687b ldr r3, [r7, #4]
  13391. 800606a: 681b ldr r3, [r3, #0]
  13392. 800606c: f022 020f bic.w r2, r2, #15
  13393. 8006070: 631a str r2, [r3, #48] @ 0x30
  13394. }
  13395. /* Initialize the ADC state */
  13396. /* Clear HAL_ADC_STATE_BUSY_INTERNAL bit, set HAL_ADC_STATE_READY bit */
  13397. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY);
  13398. 8006072: 687b ldr r3, [r7, #4]
  13399. 8006074: 6d5b ldr r3, [r3, #84] @ 0x54
  13400. 8006076: f023 0303 bic.w r3, r3, #3
  13401. 800607a: f043 0201 orr.w r2, r3, #1
  13402. 800607e: 687b ldr r3, [r7, #4]
  13403. 8006080: 655a str r2, [r3, #84] @ 0x54
  13404. 8006082: e007 b.n 8006094 <HAL_ADC_Init+0x338>
  13405. }
  13406. else
  13407. {
  13408. /* Update ADC state machine to error */
  13409. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  13410. 8006084: 687b ldr r3, [r7, #4]
  13411. 8006086: 6d5b ldr r3, [r3, #84] @ 0x54
  13412. 8006088: f043 0210 orr.w r2, r3, #16
  13413. 800608c: 687b ldr r3, [r7, #4]
  13414. 800608e: 655a str r2, [r3, #84] @ 0x54
  13415. tmp_hal_status = HAL_ERROR;
  13416. 8006090: 2301 movs r3, #1
  13417. 8006092: 77fb strb r3, [r7, #31]
  13418. }
  13419. /* Return function status */
  13420. return tmp_hal_status;
  13421. 8006094: 7ffb ldrb r3, [r7, #31]
  13422. }
  13423. 8006096: 4618 mov r0, r3
  13424. 8006098: 3724 adds r7, #36 @ 0x24
  13425. 800609a: 46bd mov sp, r7
  13426. 800609c: bd90 pop {r4, r7, pc}
  13427. 800609e: bf00 nop
  13428. 080060a0 <HAL_ADC_Start_DMA>:
  13429. * @param pData Destination Buffer address.
  13430. * @param Length Number of data to be transferred from ADC peripheral to memory
  13431. * @retval HAL status.
  13432. */
  13433. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  13434. {
  13435. 80060a0: b580 push {r7, lr}
  13436. 80060a2: b086 sub sp, #24
  13437. 80060a4: af00 add r7, sp, #0
  13438. 80060a6: 60f8 str r0, [r7, #12]
  13439. 80060a8: 60b9 str r1, [r7, #8]
  13440. 80060aa: 607a str r2, [r7, #4]
  13441. HAL_StatusTypeDef tmp_hal_status;
  13442. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  13443. 80060ac: 68fb ldr r3, [r7, #12]
  13444. 80060ae: 681b ldr r3, [r3, #0]
  13445. 80060b0: 4a55 ldr r2, [pc, #340] @ (8006208 <HAL_ADC_Start_DMA+0x168>)
  13446. 80060b2: 4293 cmp r3, r2
  13447. 80060b4: d004 beq.n 80060c0 <HAL_ADC_Start_DMA+0x20>
  13448. 80060b6: 68fb ldr r3, [r7, #12]
  13449. 80060b8: 681b ldr r3, [r3, #0]
  13450. 80060ba: 4a54 ldr r2, [pc, #336] @ (800620c <HAL_ADC_Start_DMA+0x16c>)
  13451. 80060bc: 4293 cmp r3, r2
  13452. 80060be: d101 bne.n 80060c4 <HAL_ADC_Start_DMA+0x24>
  13453. 80060c0: 4b53 ldr r3, [pc, #332] @ (8006210 <HAL_ADC_Start_DMA+0x170>)
  13454. 80060c2: e000 b.n 80060c6 <HAL_ADC_Start_DMA+0x26>
  13455. 80060c4: 4b53 ldr r3, [pc, #332] @ (8006214 <HAL_ADC_Start_DMA+0x174>)
  13456. 80060c6: 4618 mov r0, r3
  13457. 80060c8: f7ff fd64 bl 8005b94 <LL_ADC_GetMultimode>
  13458. 80060cc: 6138 str r0, [r7, #16]
  13459. /* Check the parameters */
  13460. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  13461. /* Perform ADC enable and conversion start if no conversion is on going */
  13462. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  13463. 80060ce: 68fb ldr r3, [r7, #12]
  13464. 80060d0: 681b ldr r3, [r3, #0]
  13465. 80060d2: 4618 mov r0, r3
  13466. 80060d4: f7ff fe1c bl 8005d10 <LL_ADC_REG_IsConversionOngoing>
  13467. 80060d8: 4603 mov r3, r0
  13468. 80060da: 2b00 cmp r3, #0
  13469. 80060dc: f040 808c bne.w 80061f8 <HAL_ADC_Start_DMA+0x158>
  13470. {
  13471. /* Process locked */
  13472. __HAL_LOCK(hadc);
  13473. 80060e0: 68fb ldr r3, [r7, #12]
  13474. 80060e2: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  13475. 80060e6: 2b01 cmp r3, #1
  13476. 80060e8: d101 bne.n 80060ee <HAL_ADC_Start_DMA+0x4e>
  13477. 80060ea: 2302 movs r3, #2
  13478. 80060ec: e087 b.n 80061fe <HAL_ADC_Start_DMA+0x15e>
  13479. 80060ee: 68fb ldr r3, [r7, #12]
  13480. 80060f0: 2201 movs r2, #1
  13481. 80060f2: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13482. /* Ensure that multimode regular conversions are not enabled. */
  13483. /* Otherwise, dedicated API HAL_ADCEx_MultiModeStart_DMA() must be used. */
  13484. if ((tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  13485. 80060f6: 693b ldr r3, [r7, #16]
  13486. 80060f8: 2b00 cmp r3, #0
  13487. 80060fa: d005 beq.n 8006108 <HAL_ADC_Start_DMA+0x68>
  13488. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_SIMULT)
  13489. 80060fc: 693b ldr r3, [r7, #16]
  13490. 80060fe: 2b05 cmp r3, #5
  13491. 8006100: d002 beq.n 8006108 <HAL_ADC_Start_DMA+0x68>
  13492. || (tmp_multimode_config == LL_ADC_MULTI_DUAL_INJ_ALTERN)
  13493. 8006102: 693b ldr r3, [r7, #16]
  13494. 8006104: 2b09 cmp r3, #9
  13495. 8006106: d170 bne.n 80061ea <HAL_ADC_Start_DMA+0x14a>
  13496. )
  13497. {
  13498. /* Enable the ADC peripheral */
  13499. tmp_hal_status = ADC_Enable(hadc);
  13500. 8006108: 68f8 ldr r0, [r7, #12]
  13501. 800610a: f000 fbfd bl 8006908 <ADC_Enable>
  13502. 800610e: 4603 mov r3, r0
  13503. 8006110: 75fb strb r3, [r7, #23]
  13504. /* Start conversion if ADC is effectively enabled */
  13505. if (tmp_hal_status == HAL_OK)
  13506. 8006112: 7dfb ldrb r3, [r7, #23]
  13507. 8006114: 2b00 cmp r3, #0
  13508. 8006116: d163 bne.n 80061e0 <HAL_ADC_Start_DMA+0x140>
  13509. {
  13510. /* Set ADC state */
  13511. /* - Clear state bitfield related to regular group conversion results */
  13512. /* - Set state bitfield related to regular operation */
  13513. ADC_STATE_CLR_SET(hadc->State,
  13514. 8006118: 68fb ldr r3, [r7, #12]
  13515. 800611a: 6d5a ldr r2, [r3, #84] @ 0x54
  13516. 800611c: 4b3e ldr r3, [pc, #248] @ (8006218 <HAL_ADC_Start_DMA+0x178>)
  13517. 800611e: 4013 ands r3, r2
  13518. 8006120: f443 7280 orr.w r2, r3, #256 @ 0x100
  13519. 8006124: 68fb ldr r3, [r7, #12]
  13520. 8006126: 655a str r2, [r3, #84] @ 0x54
  13521. HAL_ADC_STATE_REG_BUSY);
  13522. /* Reset HAL_ADC_STATE_MULTIMODE_SLAVE bit
  13523. - if ADC instance is master or if multimode feature is not available
  13524. - if multimode setting is disabled (ADC instance slave in independent mode) */
  13525. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  13526. 8006128: 68fb ldr r3, [r7, #12]
  13527. 800612a: 681b ldr r3, [r3, #0]
  13528. 800612c: 4a37 ldr r2, [pc, #220] @ (800620c <HAL_ADC_Start_DMA+0x16c>)
  13529. 800612e: 4293 cmp r3, r2
  13530. 8006130: d002 beq.n 8006138 <HAL_ADC_Start_DMA+0x98>
  13531. 8006132: 68fb ldr r3, [r7, #12]
  13532. 8006134: 681b ldr r3, [r3, #0]
  13533. 8006136: e000 b.n 800613a <HAL_ADC_Start_DMA+0x9a>
  13534. 8006138: 4b33 ldr r3, [pc, #204] @ (8006208 <HAL_ADC_Start_DMA+0x168>)
  13535. 800613a: 68fa ldr r2, [r7, #12]
  13536. 800613c: 6812 ldr r2, [r2, #0]
  13537. 800613e: 4293 cmp r3, r2
  13538. 8006140: d002 beq.n 8006148 <HAL_ADC_Start_DMA+0xa8>
  13539. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  13540. 8006142: 693b ldr r3, [r7, #16]
  13541. 8006144: 2b00 cmp r3, #0
  13542. 8006146: d105 bne.n 8006154 <HAL_ADC_Start_DMA+0xb4>
  13543. )
  13544. {
  13545. CLEAR_BIT(hadc->State, HAL_ADC_STATE_MULTIMODE_SLAVE);
  13546. 8006148: 68fb ldr r3, [r7, #12]
  13547. 800614a: 6d5b ldr r3, [r3, #84] @ 0x54
  13548. 800614c: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  13549. 8006150: 68fb ldr r3, [r7, #12]
  13550. 8006152: 655a str r2, [r3, #84] @ 0x54
  13551. }
  13552. /* Check if a conversion is on going on ADC group injected */
  13553. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) != 0UL)
  13554. 8006154: 68fb ldr r3, [r7, #12]
  13555. 8006156: 6d5b ldr r3, [r3, #84] @ 0x54
  13556. 8006158: f403 5380 and.w r3, r3, #4096 @ 0x1000
  13557. 800615c: 2b00 cmp r3, #0
  13558. 800615e: d006 beq.n 800616e <HAL_ADC_Start_DMA+0xce>
  13559. {
  13560. /* Reset ADC error code fields related to regular conversions only */
  13561. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  13562. 8006160: 68fb ldr r3, [r7, #12]
  13563. 8006162: 6d9b ldr r3, [r3, #88] @ 0x58
  13564. 8006164: f023 0206 bic.w r2, r3, #6
  13565. 8006168: 68fb ldr r3, [r7, #12]
  13566. 800616a: 659a str r2, [r3, #88] @ 0x58
  13567. 800616c: e002 b.n 8006174 <HAL_ADC_Start_DMA+0xd4>
  13568. }
  13569. else
  13570. {
  13571. /* Reset all ADC error code fields */
  13572. ADC_CLEAR_ERRORCODE(hadc);
  13573. 800616e: 68fb ldr r3, [r7, #12]
  13574. 8006170: 2200 movs r2, #0
  13575. 8006172: 659a str r2, [r3, #88] @ 0x58
  13576. }
  13577. /* Set the DMA transfer complete callback */
  13578. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  13579. 8006174: 68fb ldr r3, [r7, #12]
  13580. 8006176: 6cdb ldr r3, [r3, #76] @ 0x4c
  13581. 8006178: 4a28 ldr r2, [pc, #160] @ (800621c <HAL_ADC_Start_DMA+0x17c>)
  13582. 800617a: 63da str r2, [r3, #60] @ 0x3c
  13583. /* Set the DMA half transfer complete callback */
  13584. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  13585. 800617c: 68fb ldr r3, [r7, #12]
  13586. 800617e: 6cdb ldr r3, [r3, #76] @ 0x4c
  13587. 8006180: 4a27 ldr r2, [pc, #156] @ (8006220 <HAL_ADC_Start_DMA+0x180>)
  13588. 8006182: 641a str r2, [r3, #64] @ 0x40
  13589. /* Set the DMA error callback */
  13590. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  13591. 8006184: 68fb ldr r3, [r7, #12]
  13592. 8006186: 6cdb ldr r3, [r3, #76] @ 0x4c
  13593. 8006188: 4a26 ldr r2, [pc, #152] @ (8006224 <HAL_ADC_Start_DMA+0x184>)
  13594. 800618a: 64da str r2, [r3, #76] @ 0x4c
  13595. /* ADC start (in case of SW start): */
  13596. /* Clear regular group conversion flag and overrun flag */
  13597. /* (To ensure of no unknown state from potential previous ADC */
  13598. /* operations) */
  13599. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  13600. 800618c: 68fb ldr r3, [r7, #12]
  13601. 800618e: 681b ldr r3, [r3, #0]
  13602. 8006190: 221c movs r2, #28
  13603. 8006192: 601a str r2, [r3, #0]
  13604. /* Process unlocked */
  13605. /* Unlock before starting ADC conversions: in case of potential */
  13606. /* interruption, to let the process to ADC IRQ Handler. */
  13607. __HAL_UNLOCK(hadc);
  13608. 8006194: 68fb ldr r3, [r7, #12]
  13609. 8006196: 2200 movs r2, #0
  13610. 8006198: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13611. /* With DMA, overrun event is always considered as an error even if
  13612. hadc->Init.Overrun is set to ADC_OVR_DATA_OVERWRITTEN. Therefore,
  13613. ADC_IT_OVR is enabled. */
  13614. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  13615. 800619c: 68fb ldr r3, [r7, #12]
  13616. 800619e: 681b ldr r3, [r3, #0]
  13617. 80061a0: 685a ldr r2, [r3, #4]
  13618. 80061a2: 68fb ldr r3, [r7, #12]
  13619. 80061a4: 681b ldr r3, [r3, #0]
  13620. 80061a6: f042 0210 orr.w r2, r2, #16
  13621. 80061aa: 605a str r2, [r3, #4]
  13622. {
  13623. LL_ADC_REG_SetDataTransferMode(hadc->Instance, ADC_CFGR_DMACONTREQ((uint32_t)hadc->Init.ConversionDataManagement));
  13624. }
  13625. #else
  13626. LL_ADC_REG_SetDataTransferMode(hadc->Instance, (uint32_t)hadc->Init.ConversionDataManagement);
  13627. 80061ac: 68fb ldr r3, [r7, #12]
  13628. 80061ae: 681a ldr r2, [r3, #0]
  13629. 80061b0: 68fb ldr r3, [r7, #12]
  13630. 80061b2: 6adb ldr r3, [r3, #44] @ 0x2c
  13631. 80061b4: 4619 mov r1, r3
  13632. 80061b6: 4610 mov r0, r2
  13633. 80061b8: f7ff fc89 bl 8005ace <LL_ADC_REG_SetDataTransferMode>
  13634. #endif
  13635. /* Start the DMA channel */
  13636. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  13637. 80061bc: 68fb ldr r3, [r7, #12]
  13638. 80061be: 6cd8 ldr r0, [r3, #76] @ 0x4c
  13639. 80061c0: 68fb ldr r3, [r7, #12]
  13640. 80061c2: 681b ldr r3, [r3, #0]
  13641. 80061c4: 3340 adds r3, #64 @ 0x40
  13642. 80061c6: 4619 mov r1, r3
  13643. 80061c8: 68ba ldr r2, [r7, #8]
  13644. 80061ca: 687b ldr r3, [r7, #4]
  13645. 80061cc: f002 fb50 bl 8008870 <HAL_DMA_Start_IT>
  13646. 80061d0: 4603 mov r3, r0
  13647. 80061d2: 75fb strb r3, [r7, #23]
  13648. /* Enable conversion of regular group. */
  13649. /* If software start has been selected, conversion starts immediately. */
  13650. /* If external trigger has been selected, conversion will start at next */
  13651. /* trigger event. */
  13652. /* Start ADC group regular conversion */
  13653. LL_ADC_REG_StartConversion(hadc->Instance);
  13654. 80061d4: 68fb ldr r3, [r7, #12]
  13655. 80061d6: 681b ldr r3, [r3, #0]
  13656. 80061d8: 4618 mov r0, r3
  13657. 80061da: f7ff fd85 bl 8005ce8 <LL_ADC_REG_StartConversion>
  13658. if (tmp_hal_status == HAL_OK)
  13659. 80061de: e00d b.n 80061fc <HAL_ADC_Start_DMA+0x15c>
  13660. }
  13661. else
  13662. {
  13663. /* Process unlocked */
  13664. __HAL_UNLOCK(hadc);
  13665. 80061e0: 68fb ldr r3, [r7, #12]
  13666. 80061e2: 2200 movs r2, #0
  13667. 80061e4: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13668. if (tmp_hal_status == HAL_OK)
  13669. 80061e8: e008 b.n 80061fc <HAL_ADC_Start_DMA+0x15c>
  13670. }
  13671. }
  13672. else
  13673. {
  13674. tmp_hal_status = HAL_ERROR;
  13675. 80061ea: 2301 movs r3, #1
  13676. 80061ec: 75fb strb r3, [r7, #23]
  13677. /* Process unlocked */
  13678. __HAL_UNLOCK(hadc);
  13679. 80061ee: 68fb ldr r3, [r7, #12]
  13680. 80061f0: 2200 movs r2, #0
  13681. 80061f2: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13682. 80061f6: e001 b.n 80061fc <HAL_ADC_Start_DMA+0x15c>
  13683. }
  13684. }
  13685. else
  13686. {
  13687. tmp_hal_status = HAL_BUSY;
  13688. 80061f8: 2302 movs r3, #2
  13689. 80061fa: 75fb strb r3, [r7, #23]
  13690. }
  13691. /* Return function status */
  13692. return tmp_hal_status;
  13693. 80061fc: 7dfb ldrb r3, [r7, #23]
  13694. }
  13695. 80061fe: 4618 mov r0, r3
  13696. 8006200: 3718 adds r7, #24
  13697. 8006202: 46bd mov sp, r7
  13698. 8006204: bd80 pop {r7, pc}
  13699. 8006206: bf00 nop
  13700. 8006208: 40022000 .word 0x40022000
  13701. 800620c: 40022100 .word 0x40022100
  13702. 8006210: 40022300 .word 0x40022300
  13703. 8006214: 58026300 .word 0x58026300
  13704. 8006218: fffff0fe .word 0xfffff0fe
  13705. 800621c: 08006adb .word 0x08006adb
  13706. 8006220: 08006bb3 .word 0x08006bb3
  13707. 8006224: 08006bcf .word 0x08006bcf
  13708. 08006228 <HAL_ADC_ConvHalfCpltCallback>:
  13709. * @brief Conversion DMA half-transfer callback in non-blocking mode.
  13710. * @param hadc ADC handle
  13711. * @retval None
  13712. */
  13713. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef *hadc)
  13714. {
  13715. 8006228: b480 push {r7}
  13716. 800622a: b083 sub sp, #12
  13717. 800622c: af00 add r7, sp, #0
  13718. 800622e: 6078 str r0, [r7, #4]
  13719. UNUSED(hadc);
  13720. /* NOTE : This function should not be modified. When the callback is needed,
  13721. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  13722. */
  13723. }
  13724. 8006230: bf00 nop
  13725. 8006232: 370c adds r7, #12
  13726. 8006234: 46bd mov sp, r7
  13727. 8006236: f85d 7b04 ldr.w r7, [sp], #4
  13728. 800623a: 4770 bx lr
  13729. 0800623c <HAL_ADC_ErrorCallback>:
  13730. * (this function is also clearing overrun flag)
  13731. * @param hadc ADC handle
  13732. * @retval None
  13733. */
  13734. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  13735. {
  13736. 800623c: b480 push {r7}
  13737. 800623e: b083 sub sp, #12
  13738. 8006240: af00 add r7, sp, #0
  13739. 8006242: 6078 str r0, [r7, #4]
  13740. UNUSED(hadc);
  13741. /* NOTE : This function should not be modified. When the callback is needed,
  13742. function HAL_ADC_ErrorCallback must be implemented in the user file.
  13743. */
  13744. }
  13745. 8006244: bf00 nop
  13746. 8006246: 370c adds r7, #12
  13747. 8006248: 46bd mov sp, r7
  13748. 800624a: f85d 7b04 ldr.w r7, [sp], #4
  13749. 800624e: 4770 bx lr
  13750. 08006250 <HAL_ADC_ConfigChannel>:
  13751. * @param hadc ADC handle
  13752. * @param sConfig Structure of ADC channel assigned to ADC group regular.
  13753. * @retval HAL status
  13754. */
  13755. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef *hadc, ADC_ChannelConfTypeDef *sConfig)
  13756. {
  13757. 8006250: b590 push {r4, r7, lr}
  13758. 8006252: b0a1 sub sp, #132 @ 0x84
  13759. 8006254: af00 add r7, sp, #0
  13760. 8006256: 6078 str r0, [r7, #4]
  13761. 8006258: 6039 str r1, [r7, #0]
  13762. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  13763. 800625a: 2300 movs r3, #0
  13764. 800625c: f887 307f strb.w r3, [r7, #127] @ 0x7f
  13765. uint32_t tmpOffsetShifted;
  13766. uint32_t tmp_config_internal_channel;
  13767. __IO uint32_t wait_loop_index = 0;
  13768. 8006260: 2300 movs r3, #0
  13769. 8006262: 60bb str r3, [r7, #8]
  13770. /* if ROVSE is set, the value of the OFFSETy_EN bit in ADCx_OFRy register is
  13771. ignored (considered as reset) */
  13772. assert_param(!((sConfig->OffsetNumber != ADC_OFFSET_NONE) && (hadc->Init.OversamplingMode == ENABLE)));
  13773. /* Verification of channel number */
  13774. if (sConfig->SingleDiff != ADC_DIFFERENTIAL_ENDED)
  13775. 8006264: 683b ldr r3, [r7, #0]
  13776. 8006266: 68db ldr r3, [r3, #12]
  13777. 8006268: 4a65 ldr r2, [pc, #404] @ (8006400 <HAL_ADC_ConfigChannel+0x1b0>)
  13778. 800626a: 4293 cmp r3, r2
  13779. }
  13780. #endif
  13781. }
  13782. /* Process locked */
  13783. __HAL_LOCK(hadc);
  13784. 800626c: 687b ldr r3, [r7, #4]
  13785. 800626e: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  13786. 8006272: 2b01 cmp r3, #1
  13787. 8006274: d101 bne.n 800627a <HAL_ADC_ConfigChannel+0x2a>
  13788. 8006276: 2302 movs r3, #2
  13789. 8006278: e32e b.n 80068d8 <HAL_ADC_ConfigChannel+0x688>
  13790. 800627a: 687b ldr r3, [r7, #4]
  13791. 800627c: 2201 movs r2, #1
  13792. 800627e: f883 2050 strb.w r2, [r3, #80] @ 0x50
  13793. /* Parameters update conditioned to ADC state: */
  13794. /* Parameters that can be updated when ADC is disabled or enabled without */
  13795. /* conversion on going on regular group: */
  13796. /* - Channel number */
  13797. /* - Channel rank */
  13798. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  13799. 8006282: 687b ldr r3, [r7, #4]
  13800. 8006284: 681b ldr r3, [r3, #0]
  13801. 8006286: 4618 mov r0, r3
  13802. 8006288: f7ff fd42 bl 8005d10 <LL_ADC_REG_IsConversionOngoing>
  13803. 800628c: 4603 mov r3, r0
  13804. 800628e: 2b00 cmp r3, #0
  13805. 8006290: f040 8313 bne.w 80068ba <HAL_ADC_ConfigChannel+0x66a>
  13806. {
  13807. if (!(__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel)))
  13808. 8006294: 683b ldr r3, [r7, #0]
  13809. 8006296: 681b ldr r3, [r3, #0]
  13810. 8006298: 2b00 cmp r3, #0
  13811. 800629a: db2c blt.n 80062f6 <HAL_ADC_ConfigChannel+0xa6>
  13812. /* ADC channels preselection */
  13813. hadc->Instance->PCSEL_RES0 |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13814. }
  13815. #else
  13816. /* ADC channels preselection */
  13817. hadc->Instance->PCSEL |= (1UL << (__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) & 0x1FUL));
  13818. 800629c: 683b ldr r3, [r7, #0]
  13819. 800629e: 681b ldr r3, [r3, #0]
  13820. 80062a0: f3c3 0313 ubfx r3, r3, #0, #20
  13821. 80062a4: 2b00 cmp r3, #0
  13822. 80062a6: d108 bne.n 80062ba <HAL_ADC_ConfigChannel+0x6a>
  13823. 80062a8: 683b ldr r3, [r7, #0]
  13824. 80062aa: 681b ldr r3, [r3, #0]
  13825. 80062ac: 0e9b lsrs r3, r3, #26
  13826. 80062ae: f003 031f and.w r3, r3, #31
  13827. 80062b2: 2201 movs r2, #1
  13828. 80062b4: fa02 f303 lsl.w r3, r2, r3
  13829. 80062b8: e016 b.n 80062e8 <HAL_ADC_ConfigChannel+0x98>
  13830. 80062ba: 683b ldr r3, [r7, #0]
  13831. 80062bc: 681b ldr r3, [r3, #0]
  13832. 80062be: 667b str r3, [r7, #100] @ 0x64
  13833. uint32_t result;
  13834. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  13835. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  13836. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  13837. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  13838. 80062c0: 6e7b ldr r3, [r7, #100] @ 0x64
  13839. 80062c2: fa93 f3a3 rbit r3, r3
  13840. 80062c6: 663b str r3, [r7, #96] @ 0x60
  13841. result |= value & 1U;
  13842. s--;
  13843. }
  13844. result <<= s; /* shift when v's highest bits are zero */
  13845. #endif
  13846. return result;
  13847. 80062c8: 6e3b ldr r3, [r7, #96] @ 0x60
  13848. 80062ca: 66bb str r3, [r7, #104] @ 0x68
  13849. optimisations using the logic "value was passed to __builtin_clz, so it
  13850. is non-zero".
  13851. ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
  13852. single CLZ instruction.
  13853. */
  13854. if (value == 0U)
  13855. 80062cc: 6ebb ldr r3, [r7, #104] @ 0x68
  13856. 80062ce: 2b00 cmp r3, #0
  13857. 80062d0: d101 bne.n 80062d6 <HAL_ADC_ConfigChannel+0x86>
  13858. {
  13859. return 32U;
  13860. 80062d2: 2320 movs r3, #32
  13861. 80062d4: e003 b.n 80062de <HAL_ADC_ConfigChannel+0x8e>
  13862. }
  13863. return __builtin_clz(value);
  13864. 80062d6: 6ebb ldr r3, [r7, #104] @ 0x68
  13865. 80062d8: fab3 f383 clz r3, r3
  13866. 80062dc: b2db uxtb r3, r3
  13867. 80062de: f003 031f and.w r3, r3, #31
  13868. 80062e2: 2201 movs r2, #1
  13869. 80062e4: fa02 f303 lsl.w r3, r2, r3
  13870. 80062e8: 687a ldr r2, [r7, #4]
  13871. 80062ea: 6812 ldr r2, [r2, #0]
  13872. 80062ec: 69d1 ldr r1, [r2, #28]
  13873. 80062ee: 687a ldr r2, [r7, #4]
  13874. 80062f0: 6812 ldr r2, [r2, #0]
  13875. 80062f2: 430b orrs r3, r1
  13876. 80062f4: 61d3 str r3, [r2, #28]
  13877. #endif /* ADC_VER_V5_V90 */
  13878. }
  13879. /* Set ADC group regular sequence: channel on the selected scan sequence rank */
  13880. LL_ADC_REG_SetSequencerRanks(hadc->Instance, sConfig->Rank, sConfig->Channel);
  13881. 80062f6: 687b ldr r3, [r7, #4]
  13882. 80062f8: 6818 ldr r0, [r3, #0]
  13883. 80062fa: 683b ldr r3, [r7, #0]
  13884. 80062fc: 6859 ldr r1, [r3, #4]
  13885. 80062fe: 683b ldr r3, [r7, #0]
  13886. 8006300: 681b ldr r3, [r3, #0]
  13887. 8006302: 461a mov r2, r3
  13888. 8006304: f7ff fbb7 bl 8005a76 <LL_ADC_REG_SetSequencerRanks>
  13889. /* Parameters update conditioned to ADC state: */
  13890. /* Parameters that can be updated when ADC is disabled or enabled without */
  13891. /* conversion on going on regular group: */
  13892. /* - Channel sampling time */
  13893. /* - Channel offset */
  13894. tmp_adc_is_conversion_on_going_regular = LL_ADC_REG_IsConversionOngoing(hadc->Instance);
  13895. 8006308: 687b ldr r3, [r7, #4]
  13896. 800630a: 681b ldr r3, [r3, #0]
  13897. 800630c: 4618 mov r0, r3
  13898. 800630e: f7ff fcff bl 8005d10 <LL_ADC_REG_IsConversionOngoing>
  13899. 8006312: 67b8 str r0, [r7, #120] @ 0x78
  13900. tmp_adc_is_conversion_on_going_injected = LL_ADC_INJ_IsConversionOngoing(hadc->Instance);
  13901. 8006314: 687b ldr r3, [r7, #4]
  13902. 8006316: 681b ldr r3, [r3, #0]
  13903. 8006318: 4618 mov r0, r3
  13904. 800631a: f7ff fd0c bl 8005d36 <LL_ADC_INJ_IsConversionOngoing>
  13905. 800631e: 6778 str r0, [r7, #116] @ 0x74
  13906. if ((tmp_adc_is_conversion_on_going_regular == 0UL)
  13907. 8006320: 6fbb ldr r3, [r7, #120] @ 0x78
  13908. 8006322: 2b00 cmp r3, #0
  13909. 8006324: f040 80b8 bne.w 8006498 <HAL_ADC_ConfigChannel+0x248>
  13910. && (tmp_adc_is_conversion_on_going_injected == 0UL)
  13911. 8006328: 6f7b ldr r3, [r7, #116] @ 0x74
  13912. 800632a: 2b00 cmp r3, #0
  13913. 800632c: f040 80b4 bne.w 8006498 <HAL_ADC_ConfigChannel+0x248>
  13914. )
  13915. {
  13916. /* Set sampling time of the selected ADC channel */
  13917. LL_ADC_SetChannelSamplingTime(hadc->Instance, sConfig->Channel, sConfig->SamplingTime);
  13918. 8006330: 687b ldr r3, [r7, #4]
  13919. 8006332: 6818 ldr r0, [r3, #0]
  13920. 8006334: 683b ldr r3, [r7, #0]
  13921. 8006336: 6819 ldr r1, [r3, #0]
  13922. 8006338: 683b ldr r3, [r7, #0]
  13923. 800633a: 689b ldr r3, [r3, #8]
  13924. 800633c: 461a mov r2, r3
  13925. 800633e: f7ff fbd9 bl 8005af4 <LL_ADC_SetChannelSamplingTime>
  13926. tmpOffsetShifted = ADC3_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13927. }
  13928. else
  13929. #endif /* ADC_VER_V5_V90 */
  13930. {
  13931. tmpOffsetShifted = ADC_OFFSET_SHIFT_RESOLUTION(hadc, (uint32_t)sConfig->Offset);
  13932. 8006342: 4b30 ldr r3, [pc, #192] @ (8006404 <HAL_ADC_ConfigChannel+0x1b4>)
  13933. 8006344: 681b ldr r3, [r3, #0]
  13934. 8006346: f003 4370 and.w r3, r3, #4026531840 @ 0xf0000000
  13935. 800634a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  13936. 800634e: d10b bne.n 8006368 <HAL_ADC_ConfigChannel+0x118>
  13937. 8006350: 683b ldr r3, [r7, #0]
  13938. 8006352: 695a ldr r2, [r3, #20]
  13939. 8006354: 687b ldr r3, [r7, #4]
  13940. 8006356: 681b ldr r3, [r3, #0]
  13941. 8006358: 68db ldr r3, [r3, #12]
  13942. 800635a: 089b lsrs r3, r3, #2
  13943. 800635c: f003 0307 and.w r3, r3, #7
  13944. 8006360: 005b lsls r3, r3, #1
  13945. 8006362: fa02 f303 lsl.w r3, r2, r3
  13946. 8006366: e01d b.n 80063a4 <HAL_ADC_ConfigChannel+0x154>
  13947. 8006368: 687b ldr r3, [r7, #4]
  13948. 800636a: 681b ldr r3, [r3, #0]
  13949. 800636c: 68db ldr r3, [r3, #12]
  13950. 800636e: f003 0310 and.w r3, r3, #16
  13951. 8006372: 2b00 cmp r3, #0
  13952. 8006374: d10b bne.n 800638e <HAL_ADC_ConfigChannel+0x13e>
  13953. 8006376: 683b ldr r3, [r7, #0]
  13954. 8006378: 695a ldr r2, [r3, #20]
  13955. 800637a: 687b ldr r3, [r7, #4]
  13956. 800637c: 681b ldr r3, [r3, #0]
  13957. 800637e: 68db ldr r3, [r3, #12]
  13958. 8006380: 089b lsrs r3, r3, #2
  13959. 8006382: f003 0307 and.w r3, r3, #7
  13960. 8006386: 005b lsls r3, r3, #1
  13961. 8006388: fa02 f303 lsl.w r3, r2, r3
  13962. 800638c: e00a b.n 80063a4 <HAL_ADC_ConfigChannel+0x154>
  13963. 800638e: 683b ldr r3, [r7, #0]
  13964. 8006390: 695a ldr r2, [r3, #20]
  13965. 8006392: 687b ldr r3, [r7, #4]
  13966. 8006394: 681b ldr r3, [r3, #0]
  13967. 8006396: 68db ldr r3, [r3, #12]
  13968. 8006398: 089b lsrs r3, r3, #2
  13969. 800639a: f003 0304 and.w r3, r3, #4
  13970. 800639e: 005b lsls r3, r3, #1
  13971. 80063a0: fa02 f303 lsl.w r3, r2, r3
  13972. 80063a4: 673b str r3, [r7, #112] @ 0x70
  13973. }
  13974. if (sConfig->OffsetNumber != ADC_OFFSET_NONE)
  13975. 80063a6: 683b ldr r3, [r7, #0]
  13976. 80063a8: 691b ldr r3, [r3, #16]
  13977. 80063aa: 2b04 cmp r3, #4
  13978. 80063ac: d02c beq.n 8006408 <HAL_ADC_ConfigChannel+0x1b8>
  13979. {
  13980. /* Set ADC selected offset number */
  13981. LL_ADC_SetOffset(hadc->Instance, sConfig->OffsetNumber, sConfig->Channel, tmpOffsetShifted);
  13982. 80063ae: 687b ldr r3, [r7, #4]
  13983. 80063b0: 6818 ldr r0, [r3, #0]
  13984. 80063b2: 683b ldr r3, [r7, #0]
  13985. 80063b4: 6919 ldr r1, [r3, #16]
  13986. 80063b6: 683b ldr r3, [r7, #0]
  13987. 80063b8: 681a ldr r2, [r3, #0]
  13988. 80063ba: 6f3b ldr r3, [r7, #112] @ 0x70
  13989. 80063bc: f7ff faf4 bl 80059a8 <LL_ADC_SetOffset>
  13990. else
  13991. #endif /* ADC_VER_V5_V90 */
  13992. {
  13993. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetSignedSaturation));
  13994. /* Set ADC selected offset signed saturation */
  13995. LL_ADC_SetOffsetSignedSaturation(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetSignedSaturation == ENABLE) ? LL_ADC_OFFSET_SIGNED_SATURATION_ENABLE : LL_ADC_OFFSET_SIGNED_SATURATION_DISABLE);
  13996. 80063c0: 687b ldr r3, [r7, #4]
  13997. 80063c2: 6818 ldr r0, [r3, #0]
  13998. 80063c4: 683b ldr r3, [r7, #0]
  13999. 80063c6: 6919 ldr r1, [r3, #16]
  14000. 80063c8: 683b ldr r3, [r7, #0]
  14001. 80063ca: 7e5b ldrb r3, [r3, #25]
  14002. 80063cc: 2b01 cmp r3, #1
  14003. 80063ce: d102 bne.n 80063d6 <HAL_ADC_ConfigChannel+0x186>
  14004. 80063d0: f04f 4300 mov.w r3, #2147483648 @ 0x80000000
  14005. 80063d4: e000 b.n 80063d8 <HAL_ADC_ConfigChannel+0x188>
  14006. 80063d6: 2300 movs r3, #0
  14007. 80063d8: 461a mov r2, r3
  14008. 80063da: f7ff fb1e bl 8005a1a <LL_ADC_SetOffsetSignedSaturation>
  14009. assert_param(IS_FUNCTIONAL_STATE(sConfig->OffsetRightShift));
  14010. /* Set ADC selected offset right shift */
  14011. LL_ADC_SetDataRightShift(hadc->Instance, sConfig->OffsetNumber, (sConfig->OffsetRightShift == ENABLE) ? LL_ADC_OFFSET_RSHIFT_ENABLE : LL_ADC_OFFSET_RSHIFT_DISABLE);
  14012. 80063de: 687b ldr r3, [r7, #4]
  14013. 80063e0: 6818 ldr r0, [r3, #0]
  14014. 80063e2: 683b ldr r3, [r7, #0]
  14015. 80063e4: 6919 ldr r1, [r3, #16]
  14016. 80063e6: 683b ldr r3, [r7, #0]
  14017. 80063e8: 7e1b ldrb r3, [r3, #24]
  14018. 80063ea: 2b01 cmp r3, #1
  14019. 80063ec: d102 bne.n 80063f4 <HAL_ADC_ConfigChannel+0x1a4>
  14020. 80063ee: f44f 6300 mov.w r3, #2048 @ 0x800
  14021. 80063f2: e000 b.n 80063f6 <HAL_ADC_ConfigChannel+0x1a6>
  14022. 80063f4: 2300 movs r3, #0
  14023. 80063f6: 461a mov r2, r3
  14024. 80063f8: f7ff faf6 bl 80059e8 <LL_ADC_SetDataRightShift>
  14025. 80063fc: e04c b.n 8006498 <HAL_ADC_ConfigChannel+0x248>
  14026. 80063fe: bf00 nop
  14027. 8006400: 47ff0000 .word 0x47ff0000
  14028. 8006404: 5c001000 .word 0x5c001000
  14029. }
  14030. }
  14031. else
  14032. #endif /* ADC_VER_V5_V90 */
  14033. {
  14034. if (((hadc->Instance->OFR1) & ADC_OFR1_OFFSET1_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14035. 8006408: 687b ldr r3, [r7, #4]
  14036. 800640a: 681b ldr r3, [r3, #0]
  14037. 800640c: 6e1b ldr r3, [r3, #96] @ 0x60
  14038. 800640e: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14039. 8006412: 683b ldr r3, [r7, #0]
  14040. 8006414: 681b ldr r3, [r3, #0]
  14041. 8006416: 069b lsls r3, r3, #26
  14042. 8006418: 429a cmp r2, r3
  14043. 800641a: d107 bne.n 800642c <HAL_ADC_ConfigChannel+0x1dc>
  14044. {
  14045. CLEAR_BIT(hadc->Instance->OFR1, ADC_OFR1_SSATE);
  14046. 800641c: 687b ldr r3, [r7, #4]
  14047. 800641e: 681b ldr r3, [r3, #0]
  14048. 8006420: 6e1a ldr r2, [r3, #96] @ 0x60
  14049. 8006422: 687b ldr r3, [r7, #4]
  14050. 8006424: 681b ldr r3, [r3, #0]
  14051. 8006426: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14052. 800642a: 661a str r2, [r3, #96] @ 0x60
  14053. }
  14054. if (((hadc->Instance->OFR2) & ADC_OFR2_OFFSET2_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14055. 800642c: 687b ldr r3, [r7, #4]
  14056. 800642e: 681b ldr r3, [r3, #0]
  14057. 8006430: 6e5b ldr r3, [r3, #100] @ 0x64
  14058. 8006432: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14059. 8006436: 683b ldr r3, [r7, #0]
  14060. 8006438: 681b ldr r3, [r3, #0]
  14061. 800643a: 069b lsls r3, r3, #26
  14062. 800643c: 429a cmp r2, r3
  14063. 800643e: d107 bne.n 8006450 <HAL_ADC_ConfigChannel+0x200>
  14064. {
  14065. CLEAR_BIT(hadc->Instance->OFR2, ADC_OFR2_SSATE);
  14066. 8006440: 687b ldr r3, [r7, #4]
  14067. 8006442: 681b ldr r3, [r3, #0]
  14068. 8006444: 6e5a ldr r2, [r3, #100] @ 0x64
  14069. 8006446: 687b ldr r3, [r7, #4]
  14070. 8006448: 681b ldr r3, [r3, #0]
  14071. 800644a: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14072. 800644e: 665a str r2, [r3, #100] @ 0x64
  14073. }
  14074. if (((hadc->Instance->OFR3) & ADC_OFR3_OFFSET3_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14075. 8006450: 687b ldr r3, [r7, #4]
  14076. 8006452: 681b ldr r3, [r3, #0]
  14077. 8006454: 6e9b ldr r3, [r3, #104] @ 0x68
  14078. 8006456: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14079. 800645a: 683b ldr r3, [r7, #0]
  14080. 800645c: 681b ldr r3, [r3, #0]
  14081. 800645e: 069b lsls r3, r3, #26
  14082. 8006460: 429a cmp r2, r3
  14083. 8006462: d107 bne.n 8006474 <HAL_ADC_ConfigChannel+0x224>
  14084. {
  14085. CLEAR_BIT(hadc->Instance->OFR3, ADC_OFR3_SSATE);
  14086. 8006464: 687b ldr r3, [r7, #4]
  14087. 8006466: 681b ldr r3, [r3, #0]
  14088. 8006468: 6e9a ldr r2, [r3, #104] @ 0x68
  14089. 800646a: 687b ldr r3, [r7, #4]
  14090. 800646c: 681b ldr r3, [r3, #0]
  14091. 800646e: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14092. 8006472: 669a str r2, [r3, #104] @ 0x68
  14093. }
  14094. if (((hadc->Instance->OFR4) & ADC_OFR4_OFFSET4_CH) == ADC_OFR_CHANNEL(sConfig->Channel))
  14095. 8006474: 687b ldr r3, [r7, #4]
  14096. 8006476: 681b ldr r3, [r3, #0]
  14097. 8006478: 6edb ldr r3, [r3, #108] @ 0x6c
  14098. 800647a: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14099. 800647e: 683b ldr r3, [r7, #0]
  14100. 8006480: 681b ldr r3, [r3, #0]
  14101. 8006482: 069b lsls r3, r3, #26
  14102. 8006484: 429a cmp r2, r3
  14103. 8006486: d107 bne.n 8006498 <HAL_ADC_ConfigChannel+0x248>
  14104. {
  14105. CLEAR_BIT(hadc->Instance->OFR4, ADC_OFR4_SSATE);
  14106. 8006488: 687b ldr r3, [r7, #4]
  14107. 800648a: 681b ldr r3, [r3, #0]
  14108. 800648c: 6eda ldr r2, [r3, #108] @ 0x6c
  14109. 800648e: 687b ldr r3, [r7, #4]
  14110. 8006490: 681b ldr r3, [r3, #0]
  14111. 8006492: f022 4200 bic.w r2, r2, #2147483648 @ 0x80000000
  14112. 8006496: 66da str r2, [r3, #108] @ 0x6c
  14113. /* Parameters update conditioned to ADC state: */
  14114. /* Parameters that can be updated only when ADC is disabled: */
  14115. /* - Single or differential mode */
  14116. /* - Internal measurement channels: Vbat/VrefInt/TempSensor */
  14117. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14118. 8006498: 687b ldr r3, [r7, #4]
  14119. 800649a: 681b ldr r3, [r3, #0]
  14120. 800649c: 4618 mov r0, r3
  14121. 800649e: f7ff fbfd bl 8005c9c <LL_ADC_IsEnabled>
  14122. 80064a2: 4603 mov r3, r0
  14123. 80064a4: 2b00 cmp r3, #0
  14124. 80064a6: f040 8211 bne.w 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14125. {
  14126. /* Set mode single-ended or differential input of the selected ADC channel */
  14127. LL_ADC_SetChannelSingleDiff(hadc->Instance, sConfig->Channel, sConfig->SingleDiff);
  14128. 80064aa: 687b ldr r3, [r7, #4]
  14129. 80064ac: 6818 ldr r0, [r3, #0]
  14130. 80064ae: 683b ldr r3, [r7, #0]
  14131. 80064b0: 6819 ldr r1, [r3, #0]
  14132. 80064b2: 683b ldr r3, [r7, #0]
  14133. 80064b4: 68db ldr r3, [r3, #12]
  14134. 80064b6: 461a mov r2, r3
  14135. 80064b8: f7ff fb48 bl 8005b4c <LL_ADC_SetChannelSingleDiff>
  14136. /* Configuration of differential mode */
  14137. if (sConfig->SingleDiff == ADC_DIFFERENTIAL_ENDED)
  14138. 80064bc: 683b ldr r3, [r7, #0]
  14139. 80064be: 68db ldr r3, [r3, #12]
  14140. 80064c0: 4aa1 ldr r2, [pc, #644] @ (8006748 <HAL_ADC_ConfigChannel+0x4f8>)
  14141. 80064c2: 4293 cmp r3, r2
  14142. 80064c4: f040 812e bne.w 8006724 <HAL_ADC_ConfigChannel+0x4d4>
  14143. {
  14144. /* Set sampling time of the selected ADC channel */
  14145. /* Note: ADC channel number masked with value "0x1F" to ensure shift value within 32 bits range */
  14146. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14147. 80064c8: 687b ldr r3, [r7, #4]
  14148. 80064ca: 6818 ldr r0, [r3, #0]
  14149. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14150. 80064cc: 683b ldr r3, [r7, #0]
  14151. 80064ce: 681b ldr r3, [r3, #0]
  14152. 80064d0: f3c3 0313 ubfx r3, r3, #0, #20
  14153. 80064d4: 2b00 cmp r3, #0
  14154. 80064d6: d10b bne.n 80064f0 <HAL_ADC_ConfigChannel+0x2a0>
  14155. 80064d8: 683b ldr r3, [r7, #0]
  14156. 80064da: 681b ldr r3, [r3, #0]
  14157. 80064dc: 0e9b lsrs r3, r3, #26
  14158. 80064de: 3301 adds r3, #1
  14159. 80064e0: f003 031f and.w r3, r3, #31
  14160. 80064e4: 2b09 cmp r3, #9
  14161. 80064e6: bf94 ite ls
  14162. 80064e8: 2301 movls r3, #1
  14163. 80064ea: 2300 movhi r3, #0
  14164. 80064ec: b2db uxtb r3, r3
  14165. 80064ee: e019 b.n 8006524 <HAL_ADC_ConfigChannel+0x2d4>
  14166. 80064f0: 683b ldr r3, [r7, #0]
  14167. 80064f2: 681b ldr r3, [r3, #0]
  14168. 80064f4: 65bb str r3, [r7, #88] @ 0x58
  14169. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14170. 80064f6: 6dbb ldr r3, [r7, #88] @ 0x58
  14171. 80064f8: fa93 f3a3 rbit r3, r3
  14172. 80064fc: 657b str r3, [r7, #84] @ 0x54
  14173. return result;
  14174. 80064fe: 6d7b ldr r3, [r7, #84] @ 0x54
  14175. 8006500: 65fb str r3, [r7, #92] @ 0x5c
  14176. if (value == 0U)
  14177. 8006502: 6dfb ldr r3, [r7, #92] @ 0x5c
  14178. 8006504: 2b00 cmp r3, #0
  14179. 8006506: d101 bne.n 800650c <HAL_ADC_ConfigChannel+0x2bc>
  14180. return 32U;
  14181. 8006508: 2320 movs r3, #32
  14182. 800650a: e003 b.n 8006514 <HAL_ADC_ConfigChannel+0x2c4>
  14183. return __builtin_clz(value);
  14184. 800650c: 6dfb ldr r3, [r7, #92] @ 0x5c
  14185. 800650e: fab3 f383 clz r3, r3
  14186. 8006512: b2db uxtb r3, r3
  14187. 8006514: 3301 adds r3, #1
  14188. 8006516: f003 031f and.w r3, r3, #31
  14189. 800651a: 2b09 cmp r3, #9
  14190. 800651c: bf94 ite ls
  14191. 800651e: 2301 movls r3, #1
  14192. 8006520: 2300 movhi r3, #0
  14193. 8006522: b2db uxtb r3, r3
  14194. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14195. 8006524: 2b00 cmp r3, #0
  14196. 8006526: d079 beq.n 800661c <HAL_ADC_ConfigChannel+0x3cc>
  14197. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14198. 8006528: 683b ldr r3, [r7, #0]
  14199. 800652a: 681b ldr r3, [r3, #0]
  14200. 800652c: f3c3 0313 ubfx r3, r3, #0, #20
  14201. 8006530: 2b00 cmp r3, #0
  14202. 8006532: d107 bne.n 8006544 <HAL_ADC_ConfigChannel+0x2f4>
  14203. 8006534: 683b ldr r3, [r7, #0]
  14204. 8006536: 681b ldr r3, [r3, #0]
  14205. 8006538: 0e9b lsrs r3, r3, #26
  14206. 800653a: 3301 adds r3, #1
  14207. 800653c: 069b lsls r3, r3, #26
  14208. 800653e: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14209. 8006542: e015 b.n 8006570 <HAL_ADC_ConfigChannel+0x320>
  14210. 8006544: 683b ldr r3, [r7, #0]
  14211. 8006546: 681b ldr r3, [r3, #0]
  14212. 8006548: 64fb str r3, [r7, #76] @ 0x4c
  14213. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14214. 800654a: 6cfb ldr r3, [r7, #76] @ 0x4c
  14215. 800654c: fa93 f3a3 rbit r3, r3
  14216. 8006550: 64bb str r3, [r7, #72] @ 0x48
  14217. return result;
  14218. 8006552: 6cbb ldr r3, [r7, #72] @ 0x48
  14219. 8006554: 653b str r3, [r7, #80] @ 0x50
  14220. if (value == 0U)
  14221. 8006556: 6d3b ldr r3, [r7, #80] @ 0x50
  14222. 8006558: 2b00 cmp r3, #0
  14223. 800655a: d101 bne.n 8006560 <HAL_ADC_ConfigChannel+0x310>
  14224. return 32U;
  14225. 800655c: 2320 movs r3, #32
  14226. 800655e: e003 b.n 8006568 <HAL_ADC_ConfigChannel+0x318>
  14227. return __builtin_clz(value);
  14228. 8006560: 6d3b ldr r3, [r7, #80] @ 0x50
  14229. 8006562: fab3 f383 clz r3, r3
  14230. 8006566: b2db uxtb r3, r3
  14231. 8006568: 3301 adds r3, #1
  14232. 800656a: 069b lsls r3, r3, #26
  14233. 800656c: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14234. 8006570: 683b ldr r3, [r7, #0]
  14235. 8006572: 681b ldr r3, [r3, #0]
  14236. 8006574: f3c3 0313 ubfx r3, r3, #0, #20
  14237. 8006578: 2b00 cmp r3, #0
  14238. 800657a: d109 bne.n 8006590 <HAL_ADC_ConfigChannel+0x340>
  14239. 800657c: 683b ldr r3, [r7, #0]
  14240. 800657e: 681b ldr r3, [r3, #0]
  14241. 8006580: 0e9b lsrs r3, r3, #26
  14242. 8006582: 3301 adds r3, #1
  14243. 8006584: f003 031f and.w r3, r3, #31
  14244. 8006588: 2101 movs r1, #1
  14245. 800658a: fa01 f303 lsl.w r3, r1, r3
  14246. 800658e: e017 b.n 80065c0 <HAL_ADC_ConfigChannel+0x370>
  14247. 8006590: 683b ldr r3, [r7, #0]
  14248. 8006592: 681b ldr r3, [r3, #0]
  14249. 8006594: 643b str r3, [r7, #64] @ 0x40
  14250. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14251. 8006596: 6c3b ldr r3, [r7, #64] @ 0x40
  14252. 8006598: fa93 f3a3 rbit r3, r3
  14253. 800659c: 63fb str r3, [r7, #60] @ 0x3c
  14254. return result;
  14255. 800659e: 6bfb ldr r3, [r7, #60] @ 0x3c
  14256. 80065a0: 647b str r3, [r7, #68] @ 0x44
  14257. if (value == 0U)
  14258. 80065a2: 6c7b ldr r3, [r7, #68] @ 0x44
  14259. 80065a4: 2b00 cmp r3, #0
  14260. 80065a6: d101 bne.n 80065ac <HAL_ADC_ConfigChannel+0x35c>
  14261. return 32U;
  14262. 80065a8: 2320 movs r3, #32
  14263. 80065aa: e003 b.n 80065b4 <HAL_ADC_ConfigChannel+0x364>
  14264. return __builtin_clz(value);
  14265. 80065ac: 6c7b ldr r3, [r7, #68] @ 0x44
  14266. 80065ae: fab3 f383 clz r3, r3
  14267. 80065b2: b2db uxtb r3, r3
  14268. 80065b4: 3301 adds r3, #1
  14269. 80065b6: f003 031f and.w r3, r3, #31
  14270. 80065ba: 2101 movs r1, #1
  14271. 80065bc: fa01 f303 lsl.w r3, r1, r3
  14272. 80065c0: ea42 0103 orr.w r1, r2, r3
  14273. 80065c4: 683b ldr r3, [r7, #0]
  14274. 80065c6: 681b ldr r3, [r3, #0]
  14275. 80065c8: f3c3 0313 ubfx r3, r3, #0, #20
  14276. 80065cc: 2b00 cmp r3, #0
  14277. 80065ce: d10a bne.n 80065e6 <HAL_ADC_ConfigChannel+0x396>
  14278. 80065d0: 683b ldr r3, [r7, #0]
  14279. 80065d2: 681b ldr r3, [r3, #0]
  14280. 80065d4: 0e9b lsrs r3, r3, #26
  14281. 80065d6: 3301 adds r3, #1
  14282. 80065d8: f003 021f and.w r2, r3, #31
  14283. 80065dc: 4613 mov r3, r2
  14284. 80065de: 005b lsls r3, r3, #1
  14285. 80065e0: 4413 add r3, r2
  14286. 80065e2: 051b lsls r3, r3, #20
  14287. 80065e4: e018 b.n 8006618 <HAL_ADC_ConfigChannel+0x3c8>
  14288. 80065e6: 683b ldr r3, [r7, #0]
  14289. 80065e8: 681b ldr r3, [r3, #0]
  14290. 80065ea: 637b str r3, [r7, #52] @ 0x34
  14291. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14292. 80065ec: 6b7b ldr r3, [r7, #52] @ 0x34
  14293. 80065ee: fa93 f3a3 rbit r3, r3
  14294. 80065f2: 633b str r3, [r7, #48] @ 0x30
  14295. return result;
  14296. 80065f4: 6b3b ldr r3, [r7, #48] @ 0x30
  14297. 80065f6: 63bb str r3, [r7, #56] @ 0x38
  14298. if (value == 0U)
  14299. 80065f8: 6bbb ldr r3, [r7, #56] @ 0x38
  14300. 80065fa: 2b00 cmp r3, #0
  14301. 80065fc: d101 bne.n 8006602 <HAL_ADC_ConfigChannel+0x3b2>
  14302. return 32U;
  14303. 80065fe: 2320 movs r3, #32
  14304. 8006600: e003 b.n 800660a <HAL_ADC_ConfigChannel+0x3ba>
  14305. return __builtin_clz(value);
  14306. 8006602: 6bbb ldr r3, [r7, #56] @ 0x38
  14307. 8006604: fab3 f383 clz r3, r3
  14308. 8006608: b2db uxtb r3, r3
  14309. 800660a: 3301 adds r3, #1
  14310. 800660c: f003 021f and.w r2, r3, #31
  14311. 8006610: 4613 mov r3, r2
  14312. 8006612: 005b lsls r3, r3, #1
  14313. 8006614: 4413 add r3, r2
  14314. 8006616: 051b lsls r3, r3, #20
  14315. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14316. 8006618: 430b orrs r3, r1
  14317. 800661a: e07e b.n 800671a <HAL_ADC_ConfigChannel+0x4ca>
  14318. (uint32_t)(__LL_ADC_DECIMAL_NB_TO_CHANNEL((__LL_ADC_CHANNEL_TO_DECIMAL_NB((uint32_t)sConfig->Channel) + 1UL) & 0x1FUL)),
  14319. 800661c: 683b ldr r3, [r7, #0]
  14320. 800661e: 681b ldr r3, [r3, #0]
  14321. 8006620: f3c3 0313 ubfx r3, r3, #0, #20
  14322. 8006624: 2b00 cmp r3, #0
  14323. 8006626: d107 bne.n 8006638 <HAL_ADC_ConfigChannel+0x3e8>
  14324. 8006628: 683b ldr r3, [r7, #0]
  14325. 800662a: 681b ldr r3, [r3, #0]
  14326. 800662c: 0e9b lsrs r3, r3, #26
  14327. 800662e: 3301 adds r3, #1
  14328. 8006630: 069b lsls r3, r3, #26
  14329. 8006632: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14330. 8006636: e015 b.n 8006664 <HAL_ADC_ConfigChannel+0x414>
  14331. 8006638: 683b ldr r3, [r7, #0]
  14332. 800663a: 681b ldr r3, [r3, #0]
  14333. 800663c: 62bb str r3, [r7, #40] @ 0x28
  14334. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14335. 800663e: 6abb ldr r3, [r7, #40] @ 0x28
  14336. 8006640: fa93 f3a3 rbit r3, r3
  14337. 8006644: 627b str r3, [r7, #36] @ 0x24
  14338. return result;
  14339. 8006646: 6a7b ldr r3, [r7, #36] @ 0x24
  14340. 8006648: 62fb str r3, [r7, #44] @ 0x2c
  14341. if (value == 0U)
  14342. 800664a: 6afb ldr r3, [r7, #44] @ 0x2c
  14343. 800664c: 2b00 cmp r3, #0
  14344. 800664e: d101 bne.n 8006654 <HAL_ADC_ConfigChannel+0x404>
  14345. return 32U;
  14346. 8006650: 2320 movs r3, #32
  14347. 8006652: e003 b.n 800665c <HAL_ADC_ConfigChannel+0x40c>
  14348. return __builtin_clz(value);
  14349. 8006654: 6afb ldr r3, [r7, #44] @ 0x2c
  14350. 8006656: fab3 f383 clz r3, r3
  14351. 800665a: b2db uxtb r3, r3
  14352. 800665c: 3301 adds r3, #1
  14353. 800665e: 069b lsls r3, r3, #26
  14354. 8006660: f003 42f8 and.w r2, r3, #2080374784 @ 0x7c000000
  14355. 8006664: 683b ldr r3, [r7, #0]
  14356. 8006666: 681b ldr r3, [r3, #0]
  14357. 8006668: f3c3 0313 ubfx r3, r3, #0, #20
  14358. 800666c: 2b00 cmp r3, #0
  14359. 800666e: d109 bne.n 8006684 <HAL_ADC_ConfigChannel+0x434>
  14360. 8006670: 683b ldr r3, [r7, #0]
  14361. 8006672: 681b ldr r3, [r3, #0]
  14362. 8006674: 0e9b lsrs r3, r3, #26
  14363. 8006676: 3301 adds r3, #1
  14364. 8006678: f003 031f and.w r3, r3, #31
  14365. 800667c: 2101 movs r1, #1
  14366. 800667e: fa01 f303 lsl.w r3, r1, r3
  14367. 8006682: e017 b.n 80066b4 <HAL_ADC_ConfigChannel+0x464>
  14368. 8006684: 683b ldr r3, [r7, #0]
  14369. 8006686: 681b ldr r3, [r3, #0]
  14370. 8006688: 61fb str r3, [r7, #28]
  14371. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14372. 800668a: 69fb ldr r3, [r7, #28]
  14373. 800668c: fa93 f3a3 rbit r3, r3
  14374. 8006690: 61bb str r3, [r7, #24]
  14375. return result;
  14376. 8006692: 69bb ldr r3, [r7, #24]
  14377. 8006694: 623b str r3, [r7, #32]
  14378. if (value == 0U)
  14379. 8006696: 6a3b ldr r3, [r7, #32]
  14380. 8006698: 2b00 cmp r3, #0
  14381. 800669a: d101 bne.n 80066a0 <HAL_ADC_ConfigChannel+0x450>
  14382. return 32U;
  14383. 800669c: 2320 movs r3, #32
  14384. 800669e: e003 b.n 80066a8 <HAL_ADC_ConfigChannel+0x458>
  14385. return __builtin_clz(value);
  14386. 80066a0: 6a3b ldr r3, [r7, #32]
  14387. 80066a2: fab3 f383 clz r3, r3
  14388. 80066a6: b2db uxtb r3, r3
  14389. 80066a8: 3301 adds r3, #1
  14390. 80066aa: f003 031f and.w r3, r3, #31
  14391. 80066ae: 2101 movs r1, #1
  14392. 80066b0: fa01 f303 lsl.w r3, r1, r3
  14393. 80066b4: ea42 0103 orr.w r1, r2, r3
  14394. 80066b8: 683b ldr r3, [r7, #0]
  14395. 80066ba: 681b ldr r3, [r3, #0]
  14396. 80066bc: f3c3 0313 ubfx r3, r3, #0, #20
  14397. 80066c0: 2b00 cmp r3, #0
  14398. 80066c2: d10d bne.n 80066e0 <HAL_ADC_ConfigChannel+0x490>
  14399. 80066c4: 683b ldr r3, [r7, #0]
  14400. 80066c6: 681b ldr r3, [r3, #0]
  14401. 80066c8: 0e9b lsrs r3, r3, #26
  14402. 80066ca: 3301 adds r3, #1
  14403. 80066cc: f003 021f and.w r2, r3, #31
  14404. 80066d0: 4613 mov r3, r2
  14405. 80066d2: 005b lsls r3, r3, #1
  14406. 80066d4: 4413 add r3, r2
  14407. 80066d6: 3b1e subs r3, #30
  14408. 80066d8: 051b lsls r3, r3, #20
  14409. 80066da: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  14410. 80066de: e01b b.n 8006718 <HAL_ADC_ConfigChannel+0x4c8>
  14411. 80066e0: 683b ldr r3, [r7, #0]
  14412. 80066e2: 681b ldr r3, [r3, #0]
  14413. 80066e4: 613b str r3, [r7, #16]
  14414. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  14415. 80066e6: 693b ldr r3, [r7, #16]
  14416. 80066e8: fa93 f3a3 rbit r3, r3
  14417. 80066ec: 60fb str r3, [r7, #12]
  14418. return result;
  14419. 80066ee: 68fb ldr r3, [r7, #12]
  14420. 80066f0: 617b str r3, [r7, #20]
  14421. if (value == 0U)
  14422. 80066f2: 697b ldr r3, [r7, #20]
  14423. 80066f4: 2b00 cmp r3, #0
  14424. 80066f6: d101 bne.n 80066fc <HAL_ADC_ConfigChannel+0x4ac>
  14425. return 32U;
  14426. 80066f8: 2320 movs r3, #32
  14427. 80066fa: e003 b.n 8006704 <HAL_ADC_ConfigChannel+0x4b4>
  14428. return __builtin_clz(value);
  14429. 80066fc: 697b ldr r3, [r7, #20]
  14430. 80066fe: fab3 f383 clz r3, r3
  14431. 8006702: b2db uxtb r3, r3
  14432. 8006704: 3301 adds r3, #1
  14433. 8006706: f003 021f and.w r2, r3, #31
  14434. 800670a: 4613 mov r3, r2
  14435. 800670c: 005b lsls r3, r3, #1
  14436. 800670e: 4413 add r3, r2
  14437. 8006710: 3b1e subs r3, #30
  14438. 8006712: 051b lsls r3, r3, #20
  14439. 8006714: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
  14440. LL_ADC_SetChannelSamplingTime(hadc->Instance,
  14441. 8006718: 430b orrs r3, r1
  14442. 800671a: 683a ldr r2, [r7, #0]
  14443. 800671c: 6892 ldr r2, [r2, #8]
  14444. 800671e: 4619 mov r1, r3
  14445. 8006720: f7ff f9e8 bl 8005af4 <LL_ADC_SetChannelSamplingTime>
  14446. /* If internal channel selected, enable dedicated internal buffers and */
  14447. /* paths. */
  14448. /* Note: these internal measurement paths can be disabled using */
  14449. /* HAL_ADC_DeInit(). */
  14450. if (__LL_ADC_IS_CHANNEL_INTERNAL(sConfig->Channel))
  14451. 8006724: 683b ldr r3, [r7, #0]
  14452. 8006726: 681b ldr r3, [r3, #0]
  14453. 8006728: 2b00 cmp r3, #0
  14454. 800672a: f280 80cf bge.w 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14455. {
  14456. /* Configuration of common ADC parameters */
  14457. tmp_config_internal_channel = LL_ADC_GetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14458. 800672e: 687b ldr r3, [r7, #4]
  14459. 8006730: 681b ldr r3, [r3, #0]
  14460. 8006732: 4a06 ldr r2, [pc, #24] @ (800674c <HAL_ADC_ConfigChannel+0x4fc>)
  14461. 8006734: 4293 cmp r3, r2
  14462. 8006736: d004 beq.n 8006742 <HAL_ADC_ConfigChannel+0x4f2>
  14463. 8006738: 687b ldr r3, [r7, #4]
  14464. 800673a: 681b ldr r3, [r3, #0]
  14465. 800673c: 4a04 ldr r2, [pc, #16] @ (8006750 <HAL_ADC_ConfigChannel+0x500>)
  14466. 800673e: 4293 cmp r3, r2
  14467. 8006740: d10a bne.n 8006758 <HAL_ADC_ConfigChannel+0x508>
  14468. 8006742: 4b04 ldr r3, [pc, #16] @ (8006754 <HAL_ADC_ConfigChannel+0x504>)
  14469. 8006744: e009 b.n 800675a <HAL_ADC_ConfigChannel+0x50a>
  14470. 8006746: bf00 nop
  14471. 8006748: 47ff0000 .word 0x47ff0000
  14472. 800674c: 40022000 .word 0x40022000
  14473. 8006750: 40022100 .word 0x40022100
  14474. 8006754: 40022300 .word 0x40022300
  14475. 8006758: 4b61 ldr r3, [pc, #388] @ (80068e0 <HAL_ADC_ConfigChannel+0x690>)
  14476. 800675a: 4618 mov r0, r3
  14477. 800675c: f7ff f916 bl 800598c <LL_ADC_GetCommonPathInternalCh>
  14478. 8006760: 66f8 str r0, [r7, #108] @ 0x6c
  14479. /* Software is allowed to change common parameters only when all ADCs */
  14480. /* of the common group are disabled. */
  14481. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  14482. 8006762: 687b ldr r3, [r7, #4]
  14483. 8006764: 681b ldr r3, [r3, #0]
  14484. 8006766: 4a5f ldr r2, [pc, #380] @ (80068e4 <HAL_ADC_ConfigChannel+0x694>)
  14485. 8006768: 4293 cmp r3, r2
  14486. 800676a: d004 beq.n 8006776 <HAL_ADC_ConfigChannel+0x526>
  14487. 800676c: 687b ldr r3, [r7, #4]
  14488. 800676e: 681b ldr r3, [r3, #0]
  14489. 8006770: 4a5d ldr r2, [pc, #372] @ (80068e8 <HAL_ADC_ConfigChannel+0x698>)
  14490. 8006772: 4293 cmp r3, r2
  14491. 8006774: d10e bne.n 8006794 <HAL_ADC_ConfigChannel+0x544>
  14492. 8006776: 485b ldr r0, [pc, #364] @ (80068e4 <HAL_ADC_ConfigChannel+0x694>)
  14493. 8006778: f7ff fa90 bl 8005c9c <LL_ADC_IsEnabled>
  14494. 800677c: 4604 mov r4, r0
  14495. 800677e: 485a ldr r0, [pc, #360] @ (80068e8 <HAL_ADC_ConfigChannel+0x698>)
  14496. 8006780: f7ff fa8c bl 8005c9c <LL_ADC_IsEnabled>
  14497. 8006784: 4603 mov r3, r0
  14498. 8006786: 4323 orrs r3, r4
  14499. 8006788: 2b00 cmp r3, #0
  14500. 800678a: bf0c ite eq
  14501. 800678c: 2301 moveq r3, #1
  14502. 800678e: 2300 movne r3, #0
  14503. 8006790: b2db uxtb r3, r3
  14504. 8006792: e008 b.n 80067a6 <HAL_ADC_ConfigChannel+0x556>
  14505. 8006794: 4855 ldr r0, [pc, #340] @ (80068ec <HAL_ADC_ConfigChannel+0x69c>)
  14506. 8006796: f7ff fa81 bl 8005c9c <LL_ADC_IsEnabled>
  14507. 800679a: 4603 mov r3, r0
  14508. 800679c: 2b00 cmp r3, #0
  14509. 800679e: bf0c ite eq
  14510. 80067a0: 2301 moveq r3, #1
  14511. 80067a2: 2300 movne r3, #0
  14512. 80067a4: b2db uxtb r3, r3
  14513. 80067a6: 2b00 cmp r3, #0
  14514. 80067a8: d07d beq.n 80068a6 <HAL_ADC_ConfigChannel+0x656>
  14515. {
  14516. /* If the requested internal measurement path has already been enabled, */
  14517. /* bypass the configuration processing. */
  14518. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_TEMPSENSOR) == 0UL))
  14519. 80067aa: 683b ldr r3, [r7, #0]
  14520. 80067ac: 681b ldr r3, [r3, #0]
  14521. 80067ae: 4a50 ldr r2, [pc, #320] @ (80068f0 <HAL_ADC_ConfigChannel+0x6a0>)
  14522. 80067b0: 4293 cmp r3, r2
  14523. 80067b2: d130 bne.n 8006816 <HAL_ADC_ConfigChannel+0x5c6>
  14524. 80067b4: 6efb ldr r3, [r7, #108] @ 0x6c
  14525. 80067b6: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  14526. 80067ba: 2b00 cmp r3, #0
  14527. 80067bc: d12b bne.n 8006816 <HAL_ADC_ConfigChannel+0x5c6>
  14528. {
  14529. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  14530. 80067be: 687b ldr r3, [r7, #4]
  14531. 80067c0: 681b ldr r3, [r3, #0]
  14532. 80067c2: 4a4a ldr r2, [pc, #296] @ (80068ec <HAL_ADC_ConfigChannel+0x69c>)
  14533. 80067c4: 4293 cmp r3, r2
  14534. 80067c6: f040 8081 bne.w 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14535. {
  14536. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_TEMPSENSOR | tmp_config_internal_channel);
  14537. 80067ca: 687b ldr r3, [r7, #4]
  14538. 80067cc: 681b ldr r3, [r3, #0]
  14539. 80067ce: 4a45 ldr r2, [pc, #276] @ (80068e4 <HAL_ADC_ConfigChannel+0x694>)
  14540. 80067d0: 4293 cmp r3, r2
  14541. 80067d2: d004 beq.n 80067de <HAL_ADC_ConfigChannel+0x58e>
  14542. 80067d4: 687b ldr r3, [r7, #4]
  14543. 80067d6: 681b ldr r3, [r3, #0]
  14544. 80067d8: 4a43 ldr r2, [pc, #268] @ (80068e8 <HAL_ADC_ConfigChannel+0x698>)
  14545. 80067da: 4293 cmp r3, r2
  14546. 80067dc: d101 bne.n 80067e2 <HAL_ADC_ConfigChannel+0x592>
  14547. 80067de: 4a45 ldr r2, [pc, #276] @ (80068f4 <HAL_ADC_ConfigChannel+0x6a4>)
  14548. 80067e0: e000 b.n 80067e4 <HAL_ADC_ConfigChannel+0x594>
  14549. 80067e2: 4a3f ldr r2, [pc, #252] @ (80068e0 <HAL_ADC_ConfigChannel+0x690>)
  14550. 80067e4: 6efb ldr r3, [r7, #108] @ 0x6c
  14551. 80067e6: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  14552. 80067ea: 4619 mov r1, r3
  14553. 80067ec: 4610 mov r0, r2
  14554. 80067ee: f7ff f8ba bl 8005966 <LL_ADC_SetCommonPathInternalCh>
  14555. /* Delay for temperature sensor stabilization time */
  14556. /* Wait loop initialization and execution */
  14557. /* Note: Variable divided by 2 to compensate partially */
  14558. /* CPU processing cycles, scaling in us split to not */
  14559. /* exceed 32 bits register capacity and handle low frequency. */
  14560. wait_loop_index = ((LL_ADC_DELAY_TEMPSENSOR_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  14561. 80067f2: 4b41 ldr r3, [pc, #260] @ (80068f8 <HAL_ADC_ConfigChannel+0x6a8>)
  14562. 80067f4: 681b ldr r3, [r3, #0]
  14563. 80067f6: 099b lsrs r3, r3, #6
  14564. 80067f8: 4a40 ldr r2, [pc, #256] @ (80068fc <HAL_ADC_ConfigChannel+0x6ac>)
  14565. 80067fa: fba2 2303 umull r2, r3, r2, r3
  14566. 80067fe: 099b lsrs r3, r3, #6
  14567. 8006800: 3301 adds r3, #1
  14568. 8006802: 005b lsls r3, r3, #1
  14569. 8006804: 60bb str r3, [r7, #8]
  14570. while (wait_loop_index != 0UL)
  14571. 8006806: e002 b.n 800680e <HAL_ADC_ConfigChannel+0x5be>
  14572. {
  14573. wait_loop_index--;
  14574. 8006808: 68bb ldr r3, [r7, #8]
  14575. 800680a: 3b01 subs r3, #1
  14576. 800680c: 60bb str r3, [r7, #8]
  14577. while (wait_loop_index != 0UL)
  14578. 800680e: 68bb ldr r3, [r7, #8]
  14579. 8006810: 2b00 cmp r3, #0
  14580. 8006812: d1f9 bne.n 8006808 <HAL_ADC_ConfigChannel+0x5b8>
  14581. if (ADC_TEMPERATURE_SENSOR_INSTANCE(hadc))
  14582. 8006814: e05a b.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14583. }
  14584. }
  14585. }
  14586. else if ((sConfig->Channel == ADC_CHANNEL_VBAT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VBAT) == 0UL))
  14587. 8006816: 683b ldr r3, [r7, #0]
  14588. 8006818: 681b ldr r3, [r3, #0]
  14589. 800681a: 4a39 ldr r2, [pc, #228] @ (8006900 <HAL_ADC_ConfigChannel+0x6b0>)
  14590. 800681c: 4293 cmp r3, r2
  14591. 800681e: d11e bne.n 800685e <HAL_ADC_ConfigChannel+0x60e>
  14592. 8006820: 6efb ldr r3, [r7, #108] @ 0x6c
  14593. 8006822: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  14594. 8006826: 2b00 cmp r3, #0
  14595. 8006828: d119 bne.n 800685e <HAL_ADC_ConfigChannel+0x60e>
  14596. {
  14597. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14598. 800682a: 687b ldr r3, [r7, #4]
  14599. 800682c: 681b ldr r3, [r3, #0]
  14600. 800682e: 4a2f ldr r2, [pc, #188] @ (80068ec <HAL_ADC_ConfigChannel+0x69c>)
  14601. 8006830: 4293 cmp r3, r2
  14602. 8006832: d14b bne.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14603. {
  14604. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VBAT | tmp_config_internal_channel);
  14605. 8006834: 687b ldr r3, [r7, #4]
  14606. 8006836: 681b ldr r3, [r3, #0]
  14607. 8006838: 4a2a ldr r2, [pc, #168] @ (80068e4 <HAL_ADC_ConfigChannel+0x694>)
  14608. 800683a: 4293 cmp r3, r2
  14609. 800683c: d004 beq.n 8006848 <HAL_ADC_ConfigChannel+0x5f8>
  14610. 800683e: 687b ldr r3, [r7, #4]
  14611. 8006840: 681b ldr r3, [r3, #0]
  14612. 8006842: 4a29 ldr r2, [pc, #164] @ (80068e8 <HAL_ADC_ConfigChannel+0x698>)
  14613. 8006844: 4293 cmp r3, r2
  14614. 8006846: d101 bne.n 800684c <HAL_ADC_ConfigChannel+0x5fc>
  14615. 8006848: 4a2a ldr r2, [pc, #168] @ (80068f4 <HAL_ADC_ConfigChannel+0x6a4>)
  14616. 800684a: e000 b.n 800684e <HAL_ADC_ConfigChannel+0x5fe>
  14617. 800684c: 4a24 ldr r2, [pc, #144] @ (80068e0 <HAL_ADC_ConfigChannel+0x690>)
  14618. 800684e: 6efb ldr r3, [r7, #108] @ 0x6c
  14619. 8006850: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  14620. 8006854: 4619 mov r1, r3
  14621. 8006856: 4610 mov r0, r2
  14622. 8006858: f7ff f885 bl 8005966 <LL_ADC_SetCommonPathInternalCh>
  14623. if (ADC_BATTERY_VOLTAGE_INSTANCE(hadc))
  14624. 800685c: e036 b.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14625. }
  14626. }
  14627. else if ((sConfig->Channel == ADC_CHANNEL_VREFINT) && ((tmp_config_internal_channel & LL_ADC_PATH_INTERNAL_VREFINT) == 0UL))
  14628. 800685e: 683b ldr r3, [r7, #0]
  14629. 8006860: 681b ldr r3, [r3, #0]
  14630. 8006862: 4a28 ldr r2, [pc, #160] @ (8006904 <HAL_ADC_ConfigChannel+0x6b4>)
  14631. 8006864: 4293 cmp r3, r2
  14632. 8006866: d131 bne.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14633. 8006868: 6efb ldr r3, [r7, #108] @ 0x6c
  14634. 800686a: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  14635. 800686e: 2b00 cmp r3, #0
  14636. 8006870: d12c bne.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14637. {
  14638. if (ADC_VREFINT_INSTANCE(hadc))
  14639. 8006872: 687b ldr r3, [r7, #4]
  14640. 8006874: 681b ldr r3, [r3, #0]
  14641. 8006876: 4a1d ldr r2, [pc, #116] @ (80068ec <HAL_ADC_ConfigChannel+0x69c>)
  14642. 8006878: 4293 cmp r3, r2
  14643. 800687a: d127 bne.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14644. {
  14645. LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(hadc->Instance), LL_ADC_PATH_INTERNAL_VREFINT | tmp_config_internal_channel);
  14646. 800687c: 687b ldr r3, [r7, #4]
  14647. 800687e: 681b ldr r3, [r3, #0]
  14648. 8006880: 4a18 ldr r2, [pc, #96] @ (80068e4 <HAL_ADC_ConfigChannel+0x694>)
  14649. 8006882: 4293 cmp r3, r2
  14650. 8006884: d004 beq.n 8006890 <HAL_ADC_ConfigChannel+0x640>
  14651. 8006886: 687b ldr r3, [r7, #4]
  14652. 8006888: 681b ldr r3, [r3, #0]
  14653. 800688a: 4a17 ldr r2, [pc, #92] @ (80068e8 <HAL_ADC_ConfigChannel+0x698>)
  14654. 800688c: 4293 cmp r3, r2
  14655. 800688e: d101 bne.n 8006894 <HAL_ADC_ConfigChannel+0x644>
  14656. 8006890: 4a18 ldr r2, [pc, #96] @ (80068f4 <HAL_ADC_ConfigChannel+0x6a4>)
  14657. 8006892: e000 b.n 8006896 <HAL_ADC_ConfigChannel+0x646>
  14658. 8006894: 4a12 ldr r2, [pc, #72] @ (80068e0 <HAL_ADC_ConfigChannel+0x690>)
  14659. 8006896: 6efb ldr r3, [r7, #108] @ 0x6c
  14660. 8006898: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  14661. 800689c: 4619 mov r1, r3
  14662. 800689e: 4610 mov r0, r2
  14663. 80068a0: f7ff f861 bl 8005966 <LL_ADC_SetCommonPathInternalCh>
  14664. 80068a4: e012 b.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14665. /* enabled and other ADC of the common group are enabled, internal */
  14666. /* measurement paths cannot be enabled. */
  14667. else
  14668. {
  14669. /* Update ADC state machine to error */
  14670. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14671. 80068a6: 687b ldr r3, [r7, #4]
  14672. 80068a8: 6d5b ldr r3, [r3, #84] @ 0x54
  14673. 80068aa: f043 0220 orr.w r2, r3, #32
  14674. 80068ae: 687b ldr r3, [r7, #4]
  14675. 80068b0: 655a str r2, [r3, #84] @ 0x54
  14676. tmp_hal_status = HAL_ERROR;
  14677. 80068b2: 2301 movs r3, #1
  14678. 80068b4: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14679. 80068b8: e008 b.n 80068cc <HAL_ADC_ConfigChannel+0x67c>
  14680. /* channel could be done on neither of the channel configuration structure */
  14681. /* parameters. */
  14682. else
  14683. {
  14684. /* Update ADC state machine to error */
  14685. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  14686. 80068ba: 687b ldr r3, [r7, #4]
  14687. 80068bc: 6d5b ldr r3, [r3, #84] @ 0x54
  14688. 80068be: f043 0220 orr.w r2, r3, #32
  14689. 80068c2: 687b ldr r3, [r7, #4]
  14690. 80068c4: 655a str r2, [r3, #84] @ 0x54
  14691. tmp_hal_status = HAL_ERROR;
  14692. 80068c6: 2301 movs r3, #1
  14693. 80068c8: f887 307f strb.w r3, [r7, #127] @ 0x7f
  14694. }
  14695. /* Process unlocked */
  14696. __HAL_UNLOCK(hadc);
  14697. 80068cc: 687b ldr r3, [r7, #4]
  14698. 80068ce: 2200 movs r2, #0
  14699. 80068d0: f883 2050 strb.w r2, [r3, #80] @ 0x50
  14700. /* Return function status */
  14701. return tmp_hal_status;
  14702. 80068d4: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  14703. }
  14704. 80068d8: 4618 mov r0, r3
  14705. 80068da: 3784 adds r7, #132 @ 0x84
  14706. 80068dc: 46bd mov sp, r7
  14707. 80068de: bd90 pop {r4, r7, pc}
  14708. 80068e0: 58026300 .word 0x58026300
  14709. 80068e4: 40022000 .word 0x40022000
  14710. 80068e8: 40022100 .word 0x40022100
  14711. 80068ec: 58026000 .word 0x58026000
  14712. 80068f0: cb840000 .word 0xcb840000
  14713. 80068f4: 40022300 .word 0x40022300
  14714. 80068f8: 24000034 .word 0x24000034
  14715. 80068fc: 053e2d63 .word 0x053e2d63
  14716. 8006900: c7520000 .word 0xc7520000
  14717. 8006904: cfb80000 .word 0xcfb80000
  14718. 08006908 <ADC_Enable>:
  14719. * and voltage regulator must be enabled (done into HAL_ADC_Init()).
  14720. * @param hadc ADC handle
  14721. * @retval HAL status.
  14722. */
  14723. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef *hadc)
  14724. {
  14725. 8006908: b580 push {r7, lr}
  14726. 800690a: b084 sub sp, #16
  14727. 800690c: af00 add r7, sp, #0
  14728. 800690e: 6078 str r0, [r7, #4]
  14729. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  14730. /* enabling phase not yet completed: flag ADC ready not yet set). */
  14731. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  14732. /* causes: ADC clock not running, ...). */
  14733. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14734. 8006910: 687b ldr r3, [r7, #4]
  14735. 8006912: 681b ldr r3, [r3, #0]
  14736. 8006914: 4618 mov r0, r3
  14737. 8006916: f7ff f9c1 bl 8005c9c <LL_ADC_IsEnabled>
  14738. 800691a: 4603 mov r3, r0
  14739. 800691c: 2b00 cmp r3, #0
  14740. 800691e: d16e bne.n 80069fe <ADC_Enable+0xf6>
  14741. {
  14742. /* Check if conditions to enable the ADC are fulfilled */
  14743. if ((hadc->Instance->CR & (ADC_CR_ADCAL | ADC_CR_JADSTP | ADC_CR_ADSTP | ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADDIS | ADC_CR_ADEN)) != 0UL)
  14744. 8006920: 687b ldr r3, [r7, #4]
  14745. 8006922: 681b ldr r3, [r3, #0]
  14746. 8006924: 689a ldr r2, [r3, #8]
  14747. 8006926: 4b38 ldr r3, [pc, #224] @ (8006a08 <ADC_Enable+0x100>)
  14748. 8006928: 4013 ands r3, r2
  14749. 800692a: 2b00 cmp r3, #0
  14750. 800692c: d00d beq.n 800694a <ADC_Enable+0x42>
  14751. {
  14752. /* Update ADC state machine to error */
  14753. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14754. 800692e: 687b ldr r3, [r7, #4]
  14755. 8006930: 6d5b ldr r3, [r3, #84] @ 0x54
  14756. 8006932: f043 0210 orr.w r2, r3, #16
  14757. 8006936: 687b ldr r3, [r7, #4]
  14758. 8006938: 655a str r2, [r3, #84] @ 0x54
  14759. /* Set ADC error code to ADC peripheral internal error */
  14760. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14761. 800693a: 687b ldr r3, [r7, #4]
  14762. 800693c: 6d9b ldr r3, [r3, #88] @ 0x58
  14763. 800693e: f043 0201 orr.w r2, r3, #1
  14764. 8006942: 687b ldr r3, [r7, #4]
  14765. 8006944: 659a str r2, [r3, #88] @ 0x58
  14766. return HAL_ERROR;
  14767. 8006946: 2301 movs r3, #1
  14768. 8006948: e05a b.n 8006a00 <ADC_Enable+0xf8>
  14769. }
  14770. /* Enable the ADC peripheral */
  14771. LL_ADC_Enable(hadc->Instance);
  14772. 800694a: 687b ldr r3, [r7, #4]
  14773. 800694c: 681b ldr r3, [r3, #0]
  14774. 800694e: 4618 mov r0, r3
  14775. 8006950: f7ff f97c bl 8005c4c <LL_ADC_Enable>
  14776. /* Wait for ADC effectively enabled */
  14777. tickstart = HAL_GetTick();
  14778. 8006954: f7fe ffa2 bl 800589c <HAL_GetTick>
  14779. 8006958: 60f8 str r0, [r7, #12]
  14780. /* Poll for ADC ready flag raised except case of multimode enabled
  14781. and ADC slave selected. */
  14782. uint32_t tmp_multimode_config = LL_ADC_GetMultimode(__LL_ADC_COMMON_INSTANCE(hadc->Instance));
  14783. 800695a: 687b ldr r3, [r7, #4]
  14784. 800695c: 681b ldr r3, [r3, #0]
  14785. 800695e: 4a2b ldr r2, [pc, #172] @ (8006a0c <ADC_Enable+0x104>)
  14786. 8006960: 4293 cmp r3, r2
  14787. 8006962: d004 beq.n 800696e <ADC_Enable+0x66>
  14788. 8006964: 687b ldr r3, [r7, #4]
  14789. 8006966: 681b ldr r3, [r3, #0]
  14790. 8006968: 4a29 ldr r2, [pc, #164] @ (8006a10 <ADC_Enable+0x108>)
  14791. 800696a: 4293 cmp r3, r2
  14792. 800696c: d101 bne.n 8006972 <ADC_Enable+0x6a>
  14793. 800696e: 4b29 ldr r3, [pc, #164] @ (8006a14 <ADC_Enable+0x10c>)
  14794. 8006970: e000 b.n 8006974 <ADC_Enable+0x6c>
  14795. 8006972: 4b29 ldr r3, [pc, #164] @ (8006a18 <ADC_Enable+0x110>)
  14796. 8006974: 4618 mov r0, r3
  14797. 8006976: f7ff f90d bl 8005b94 <LL_ADC_GetMultimode>
  14798. 800697a: 60b8 str r0, [r7, #8]
  14799. if ((__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) == hadc->Instance)
  14800. 800697c: 687b ldr r3, [r7, #4]
  14801. 800697e: 681b ldr r3, [r3, #0]
  14802. 8006980: 4a23 ldr r2, [pc, #140] @ (8006a10 <ADC_Enable+0x108>)
  14803. 8006982: 4293 cmp r3, r2
  14804. 8006984: d002 beq.n 800698c <ADC_Enable+0x84>
  14805. 8006986: 687b ldr r3, [r7, #4]
  14806. 8006988: 681b ldr r3, [r3, #0]
  14807. 800698a: e000 b.n 800698e <ADC_Enable+0x86>
  14808. 800698c: 4b1f ldr r3, [pc, #124] @ (8006a0c <ADC_Enable+0x104>)
  14809. 800698e: 687a ldr r2, [r7, #4]
  14810. 8006990: 6812 ldr r2, [r2, #0]
  14811. 8006992: 4293 cmp r3, r2
  14812. 8006994: d02c beq.n 80069f0 <ADC_Enable+0xe8>
  14813. || (tmp_multimode_config == LL_ADC_MULTI_INDEPENDENT)
  14814. 8006996: 68bb ldr r3, [r7, #8]
  14815. 8006998: 2b00 cmp r3, #0
  14816. 800699a: d130 bne.n 80069fe <ADC_Enable+0xf6>
  14817. )
  14818. {
  14819. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14820. 800699c: e028 b.n 80069f0 <ADC_Enable+0xe8>
  14821. The workaround is to continue setting ADEN until ADRDY is becomes 1.
  14822. Additionally, ADC_ENABLE_TIMEOUT is defined to encompass this
  14823. 4 ADC clock cycle duration */
  14824. /* Note: Test of ADC enabled required due to hardware constraint to */
  14825. /* not enable ADC if already enabled. */
  14826. if (LL_ADC_IsEnabled(hadc->Instance) == 0UL)
  14827. 800699e: 687b ldr r3, [r7, #4]
  14828. 80069a0: 681b ldr r3, [r3, #0]
  14829. 80069a2: 4618 mov r0, r3
  14830. 80069a4: f7ff f97a bl 8005c9c <LL_ADC_IsEnabled>
  14831. 80069a8: 4603 mov r3, r0
  14832. 80069aa: 2b00 cmp r3, #0
  14833. 80069ac: d104 bne.n 80069b8 <ADC_Enable+0xb0>
  14834. {
  14835. LL_ADC_Enable(hadc->Instance);
  14836. 80069ae: 687b ldr r3, [r7, #4]
  14837. 80069b0: 681b ldr r3, [r3, #0]
  14838. 80069b2: 4618 mov r0, r3
  14839. 80069b4: f7ff f94a bl 8005c4c <LL_ADC_Enable>
  14840. }
  14841. if ((HAL_GetTick() - tickstart) > ADC_ENABLE_TIMEOUT)
  14842. 80069b8: f7fe ff70 bl 800589c <HAL_GetTick>
  14843. 80069bc: 4602 mov r2, r0
  14844. 80069be: 68fb ldr r3, [r7, #12]
  14845. 80069c0: 1ad3 subs r3, r2, r3
  14846. 80069c2: 2b02 cmp r3, #2
  14847. 80069c4: d914 bls.n 80069f0 <ADC_Enable+0xe8>
  14848. {
  14849. /* New check to avoid false timeout detection in case of preemption */
  14850. if (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14851. 80069c6: 687b ldr r3, [r7, #4]
  14852. 80069c8: 681b ldr r3, [r3, #0]
  14853. 80069ca: 681b ldr r3, [r3, #0]
  14854. 80069cc: f003 0301 and.w r3, r3, #1
  14855. 80069d0: 2b01 cmp r3, #1
  14856. 80069d2: d00d beq.n 80069f0 <ADC_Enable+0xe8>
  14857. {
  14858. /* Update ADC state machine to error */
  14859. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14860. 80069d4: 687b ldr r3, [r7, #4]
  14861. 80069d6: 6d5b ldr r3, [r3, #84] @ 0x54
  14862. 80069d8: f043 0210 orr.w r2, r3, #16
  14863. 80069dc: 687b ldr r3, [r7, #4]
  14864. 80069de: 655a str r2, [r3, #84] @ 0x54
  14865. /* Set ADC error code to ADC peripheral internal error */
  14866. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14867. 80069e0: 687b ldr r3, [r7, #4]
  14868. 80069e2: 6d9b ldr r3, [r3, #88] @ 0x58
  14869. 80069e4: f043 0201 orr.w r2, r3, #1
  14870. 80069e8: 687b ldr r3, [r7, #4]
  14871. 80069ea: 659a str r2, [r3, #88] @ 0x58
  14872. return HAL_ERROR;
  14873. 80069ec: 2301 movs r3, #1
  14874. 80069ee: e007 b.n 8006a00 <ADC_Enable+0xf8>
  14875. while (__HAL_ADC_GET_FLAG(hadc, ADC_FLAG_RDY) == 0UL)
  14876. 80069f0: 687b ldr r3, [r7, #4]
  14877. 80069f2: 681b ldr r3, [r3, #0]
  14878. 80069f4: 681b ldr r3, [r3, #0]
  14879. 80069f6: f003 0301 and.w r3, r3, #1
  14880. 80069fa: 2b01 cmp r3, #1
  14881. 80069fc: d1cf bne.n 800699e <ADC_Enable+0x96>
  14882. }
  14883. }
  14884. }
  14885. /* Return HAL status */
  14886. return HAL_OK;
  14887. 80069fe: 2300 movs r3, #0
  14888. }
  14889. 8006a00: 4618 mov r0, r3
  14890. 8006a02: 3710 adds r7, #16
  14891. 8006a04: 46bd mov sp, r7
  14892. 8006a06: bd80 pop {r7, pc}
  14893. 8006a08: 8000003f .word 0x8000003f
  14894. 8006a0c: 40022000 .word 0x40022000
  14895. 8006a10: 40022100 .word 0x40022100
  14896. 8006a14: 40022300 .word 0x40022300
  14897. 8006a18: 58026300 .word 0x58026300
  14898. 08006a1c <ADC_Disable>:
  14899. * stopped.
  14900. * @param hadc ADC handle
  14901. * @retval HAL status.
  14902. */
  14903. HAL_StatusTypeDef ADC_Disable(ADC_HandleTypeDef *hadc)
  14904. {
  14905. 8006a1c: b580 push {r7, lr}
  14906. 8006a1e: b084 sub sp, #16
  14907. 8006a20: af00 add r7, sp, #0
  14908. 8006a22: 6078 str r0, [r7, #4]
  14909. uint32_t tickstart;
  14910. const uint32_t tmp_adc_is_disable_on_going = LL_ADC_IsDisableOngoing(hadc->Instance);
  14911. 8006a24: 687b ldr r3, [r7, #4]
  14912. 8006a26: 681b ldr r3, [r3, #0]
  14913. 8006a28: 4618 mov r0, r3
  14914. 8006a2a: f7ff f94a bl 8005cc2 <LL_ADC_IsDisableOngoing>
  14915. 8006a2e: 60f8 str r0, [r7, #12]
  14916. /* Verification if ADC is not already disabled: */
  14917. /* Note: forbidden to disable ADC (set bit ADC_CR_ADDIS) if ADC is already */
  14918. /* disabled. */
  14919. if ((LL_ADC_IsEnabled(hadc->Instance) != 0UL)
  14920. 8006a30: 687b ldr r3, [r7, #4]
  14921. 8006a32: 681b ldr r3, [r3, #0]
  14922. 8006a34: 4618 mov r0, r3
  14923. 8006a36: f7ff f931 bl 8005c9c <LL_ADC_IsEnabled>
  14924. 8006a3a: 4603 mov r3, r0
  14925. 8006a3c: 2b00 cmp r3, #0
  14926. 8006a3e: d047 beq.n 8006ad0 <ADC_Disable+0xb4>
  14927. && (tmp_adc_is_disable_on_going == 0UL)
  14928. 8006a40: 68fb ldr r3, [r7, #12]
  14929. 8006a42: 2b00 cmp r3, #0
  14930. 8006a44: d144 bne.n 8006ad0 <ADC_Disable+0xb4>
  14931. )
  14932. {
  14933. /* Check if conditions to disable the ADC are fulfilled */
  14934. if ((hadc->Instance->CR & (ADC_CR_JADSTART | ADC_CR_ADSTART | ADC_CR_ADEN)) == ADC_CR_ADEN)
  14935. 8006a46: 687b ldr r3, [r7, #4]
  14936. 8006a48: 681b ldr r3, [r3, #0]
  14937. 8006a4a: 689b ldr r3, [r3, #8]
  14938. 8006a4c: f003 030d and.w r3, r3, #13
  14939. 8006a50: 2b01 cmp r3, #1
  14940. 8006a52: d10c bne.n 8006a6e <ADC_Disable+0x52>
  14941. {
  14942. /* Disable the ADC peripheral */
  14943. LL_ADC_Disable(hadc->Instance);
  14944. 8006a54: 687b ldr r3, [r7, #4]
  14945. 8006a56: 681b ldr r3, [r3, #0]
  14946. 8006a58: 4618 mov r0, r3
  14947. 8006a5a: f7ff f90b bl 8005c74 <LL_ADC_Disable>
  14948. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOSMP | ADC_FLAG_RDY));
  14949. 8006a5e: 687b ldr r3, [r7, #4]
  14950. 8006a60: 681b ldr r3, [r3, #0]
  14951. 8006a62: 2203 movs r2, #3
  14952. 8006a64: 601a str r2, [r3, #0]
  14953. return HAL_ERROR;
  14954. }
  14955. /* Wait for ADC effectively disabled */
  14956. /* Get tick count */
  14957. tickstart = HAL_GetTick();
  14958. 8006a66: f7fe ff19 bl 800589c <HAL_GetTick>
  14959. 8006a6a: 60b8 str r0, [r7, #8]
  14960. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14961. 8006a6c: e029 b.n 8006ac2 <ADC_Disable+0xa6>
  14962. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14963. 8006a6e: 687b ldr r3, [r7, #4]
  14964. 8006a70: 6d5b ldr r3, [r3, #84] @ 0x54
  14965. 8006a72: f043 0210 orr.w r2, r3, #16
  14966. 8006a76: 687b ldr r3, [r7, #4]
  14967. 8006a78: 655a str r2, [r3, #84] @ 0x54
  14968. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  14969. 8006a7a: 687b ldr r3, [r7, #4]
  14970. 8006a7c: 6d9b ldr r3, [r3, #88] @ 0x58
  14971. 8006a7e: f043 0201 orr.w r2, r3, #1
  14972. 8006a82: 687b ldr r3, [r7, #4]
  14973. 8006a84: 659a str r2, [r3, #88] @ 0x58
  14974. return HAL_ERROR;
  14975. 8006a86: 2301 movs r3, #1
  14976. 8006a88: e023 b.n 8006ad2 <ADC_Disable+0xb6>
  14977. {
  14978. if ((HAL_GetTick() - tickstart) > ADC_DISABLE_TIMEOUT)
  14979. 8006a8a: f7fe ff07 bl 800589c <HAL_GetTick>
  14980. 8006a8e: 4602 mov r2, r0
  14981. 8006a90: 68bb ldr r3, [r7, #8]
  14982. 8006a92: 1ad3 subs r3, r2, r3
  14983. 8006a94: 2b02 cmp r3, #2
  14984. 8006a96: d914 bls.n 8006ac2 <ADC_Disable+0xa6>
  14985. {
  14986. /* New check to avoid false timeout detection in case of preemption */
  14987. if ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  14988. 8006a98: 687b ldr r3, [r7, #4]
  14989. 8006a9a: 681b ldr r3, [r3, #0]
  14990. 8006a9c: 689b ldr r3, [r3, #8]
  14991. 8006a9e: f003 0301 and.w r3, r3, #1
  14992. 8006aa2: 2b00 cmp r3, #0
  14993. 8006aa4: d00d beq.n 8006ac2 <ADC_Disable+0xa6>
  14994. {
  14995. /* Update ADC state machine to error */
  14996. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  14997. 8006aa6: 687b ldr r3, [r7, #4]
  14998. 8006aa8: 6d5b ldr r3, [r3, #84] @ 0x54
  14999. 8006aaa: f043 0210 orr.w r2, r3, #16
  15000. 8006aae: 687b ldr r3, [r7, #4]
  15001. 8006ab0: 655a str r2, [r3, #84] @ 0x54
  15002. /* Set ADC error code to ADC peripheral internal error */
  15003. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  15004. 8006ab2: 687b ldr r3, [r7, #4]
  15005. 8006ab4: 6d9b ldr r3, [r3, #88] @ 0x58
  15006. 8006ab6: f043 0201 orr.w r2, r3, #1
  15007. 8006aba: 687b ldr r3, [r7, #4]
  15008. 8006abc: 659a str r2, [r3, #88] @ 0x58
  15009. return HAL_ERROR;
  15010. 8006abe: 2301 movs r3, #1
  15011. 8006ac0: e007 b.n 8006ad2 <ADC_Disable+0xb6>
  15012. while ((hadc->Instance->CR & ADC_CR_ADEN) != 0UL)
  15013. 8006ac2: 687b ldr r3, [r7, #4]
  15014. 8006ac4: 681b ldr r3, [r3, #0]
  15015. 8006ac6: 689b ldr r3, [r3, #8]
  15016. 8006ac8: f003 0301 and.w r3, r3, #1
  15017. 8006acc: 2b00 cmp r3, #0
  15018. 8006ace: d1dc bne.n 8006a8a <ADC_Disable+0x6e>
  15019. }
  15020. }
  15021. }
  15022. /* Return HAL status */
  15023. return HAL_OK;
  15024. 8006ad0: 2300 movs r3, #0
  15025. }
  15026. 8006ad2: 4618 mov r0, r3
  15027. 8006ad4: 3710 adds r7, #16
  15028. 8006ad6: 46bd mov sp, r7
  15029. 8006ad8: bd80 pop {r7, pc}
  15030. 08006ada <ADC_DMAConvCplt>:
  15031. * @brief DMA transfer complete callback.
  15032. * @param hdma pointer to DMA handle.
  15033. * @retval None
  15034. */
  15035. void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  15036. {
  15037. 8006ada: b580 push {r7, lr}
  15038. 8006adc: b084 sub sp, #16
  15039. 8006ade: af00 add r7, sp, #0
  15040. 8006ae0: 6078 str r0, [r7, #4]
  15041. /* Retrieve ADC handle corresponding to current DMA handle */
  15042. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15043. 8006ae2: 687b ldr r3, [r7, #4]
  15044. 8006ae4: 6b9b ldr r3, [r3, #56] @ 0x38
  15045. 8006ae6: 60fb str r3, [r7, #12]
  15046. /* Update state machine on conversion status if not in error state */
  15047. if ((hadc->State & (HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA)) == 0UL)
  15048. 8006ae8: 68fb ldr r3, [r7, #12]
  15049. 8006aea: 6d5b ldr r3, [r3, #84] @ 0x54
  15050. 8006aec: f003 0350 and.w r3, r3, #80 @ 0x50
  15051. 8006af0: 2b00 cmp r3, #0
  15052. 8006af2: d14b bne.n 8006b8c <ADC_DMAConvCplt+0xb2>
  15053. {
  15054. /* Set ADC state */
  15055. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  15056. 8006af4: 68fb ldr r3, [r7, #12]
  15057. 8006af6: 6d5b ldr r3, [r3, #84] @ 0x54
  15058. 8006af8: f443 7200 orr.w r2, r3, #512 @ 0x200
  15059. 8006afc: 68fb ldr r3, [r7, #12]
  15060. 8006afe: 655a str r2, [r3, #84] @ 0x54
  15061. /* Determine whether any further conversion upcoming on group regular */
  15062. /* by external trigger, continuous mode or scan sequence on going */
  15063. /* to disable interruption. */
  15064. /* Is it the end of the regular sequence ? */
  15065. if ((hadc->Instance->ISR & ADC_FLAG_EOS) != 0UL)
  15066. 8006b00: 68fb ldr r3, [r7, #12]
  15067. 8006b02: 681b ldr r3, [r3, #0]
  15068. 8006b04: 681b ldr r3, [r3, #0]
  15069. 8006b06: f003 0308 and.w r3, r3, #8
  15070. 8006b0a: 2b00 cmp r3, #0
  15071. 8006b0c: d021 beq.n 8006b52 <ADC_DMAConvCplt+0x78>
  15072. {
  15073. /* Are conversions software-triggered ? */
  15074. if (LL_ADC_REG_IsTriggerSourceSWStart(hadc->Instance) != 0UL)
  15075. 8006b0e: 68fb ldr r3, [r7, #12]
  15076. 8006b10: 681b ldr r3, [r3, #0]
  15077. 8006b12: 4618 mov r0, r3
  15078. 8006b14: f7fe ff9c bl 8005a50 <LL_ADC_REG_IsTriggerSourceSWStart>
  15079. 8006b18: 4603 mov r3, r0
  15080. 8006b1a: 2b00 cmp r3, #0
  15081. 8006b1c: d032 beq.n 8006b84 <ADC_DMAConvCplt+0xaa>
  15082. {
  15083. /* Is CONT bit set ? */
  15084. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_CONT) == 0UL)
  15085. 8006b1e: 68fb ldr r3, [r7, #12]
  15086. 8006b20: 681b ldr r3, [r3, #0]
  15087. 8006b22: 68db ldr r3, [r3, #12]
  15088. 8006b24: f403 5300 and.w r3, r3, #8192 @ 0x2000
  15089. 8006b28: 2b00 cmp r3, #0
  15090. 8006b2a: d12b bne.n 8006b84 <ADC_DMAConvCplt+0xaa>
  15091. {
  15092. /* CONT bit is not set, no more conversions expected */
  15093. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15094. 8006b2c: 68fb ldr r3, [r7, #12]
  15095. 8006b2e: 6d5b ldr r3, [r3, #84] @ 0x54
  15096. 8006b30: f423 7280 bic.w r2, r3, #256 @ 0x100
  15097. 8006b34: 68fb ldr r3, [r7, #12]
  15098. 8006b36: 655a str r2, [r3, #84] @ 0x54
  15099. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15100. 8006b38: 68fb ldr r3, [r7, #12]
  15101. 8006b3a: 6d5b ldr r3, [r3, #84] @ 0x54
  15102. 8006b3c: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15103. 8006b40: 2b00 cmp r3, #0
  15104. 8006b42: d11f bne.n 8006b84 <ADC_DMAConvCplt+0xaa>
  15105. {
  15106. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15107. 8006b44: 68fb ldr r3, [r7, #12]
  15108. 8006b46: 6d5b ldr r3, [r3, #84] @ 0x54
  15109. 8006b48: f043 0201 orr.w r2, r3, #1
  15110. 8006b4c: 68fb ldr r3, [r7, #12]
  15111. 8006b4e: 655a str r2, [r3, #84] @ 0x54
  15112. 8006b50: e018 b.n 8006b84 <ADC_DMAConvCplt+0xaa>
  15113. }
  15114. else
  15115. {
  15116. /* DMA End of Transfer interrupt was triggered but conversions sequence
  15117. is not over. If DMACFG is set to 0, conversions are stopped. */
  15118. if (READ_BIT(hadc->Instance->CFGR, ADC_CFGR_DMNGT) == 0UL)
  15119. 8006b52: 68fb ldr r3, [r7, #12]
  15120. 8006b54: 681b ldr r3, [r3, #0]
  15121. 8006b56: 68db ldr r3, [r3, #12]
  15122. 8006b58: f003 0303 and.w r3, r3, #3
  15123. 8006b5c: 2b00 cmp r3, #0
  15124. 8006b5e: d111 bne.n 8006b84 <ADC_DMAConvCplt+0xaa>
  15125. {
  15126. /* DMACFG bit is not set, conversions are stopped. */
  15127. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  15128. 8006b60: 68fb ldr r3, [r7, #12]
  15129. 8006b62: 6d5b ldr r3, [r3, #84] @ 0x54
  15130. 8006b64: f423 7280 bic.w r2, r3, #256 @ 0x100
  15131. 8006b68: 68fb ldr r3, [r7, #12]
  15132. 8006b6a: 655a str r2, [r3, #84] @ 0x54
  15133. if ((hadc->State & HAL_ADC_STATE_INJ_BUSY) == 0UL)
  15134. 8006b6c: 68fb ldr r3, [r7, #12]
  15135. 8006b6e: 6d5b ldr r3, [r3, #84] @ 0x54
  15136. 8006b70: f403 5380 and.w r3, r3, #4096 @ 0x1000
  15137. 8006b74: 2b00 cmp r3, #0
  15138. 8006b76: d105 bne.n 8006b84 <ADC_DMAConvCplt+0xaa>
  15139. {
  15140. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  15141. 8006b78: 68fb ldr r3, [r7, #12]
  15142. 8006b7a: 6d5b ldr r3, [r3, #84] @ 0x54
  15143. 8006b7c: f043 0201 orr.w r2, r3, #1
  15144. 8006b80: 68fb ldr r3, [r7, #12]
  15145. 8006b82: 655a str r2, [r3, #84] @ 0x54
  15146. /* Conversion complete callback */
  15147. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15148. hadc->ConvCpltCallback(hadc);
  15149. #else
  15150. HAL_ADC_ConvCpltCallback(hadc);
  15151. 8006b84: 68f8 ldr r0, [r7, #12]
  15152. 8006b86: f7fa fde5 bl 8001754 <HAL_ADC_ConvCpltCallback>
  15153. {
  15154. /* Call ADC DMA error callback */
  15155. hadc->DMA_Handle->XferErrorCallback(hdma);
  15156. }
  15157. }
  15158. }
  15159. 8006b8a: e00e b.n 8006baa <ADC_DMAConvCplt+0xd0>
  15160. if ((hadc->State & HAL_ADC_STATE_ERROR_INTERNAL) != 0UL)
  15161. 8006b8c: 68fb ldr r3, [r7, #12]
  15162. 8006b8e: 6d5b ldr r3, [r3, #84] @ 0x54
  15163. 8006b90: f003 0310 and.w r3, r3, #16
  15164. 8006b94: 2b00 cmp r3, #0
  15165. 8006b96: d003 beq.n 8006ba0 <ADC_DMAConvCplt+0xc6>
  15166. HAL_ADC_ErrorCallback(hadc);
  15167. 8006b98: 68f8 ldr r0, [r7, #12]
  15168. 8006b9a: f7ff fb4f bl 800623c <HAL_ADC_ErrorCallback>
  15169. }
  15170. 8006b9e: e004 b.n 8006baa <ADC_DMAConvCplt+0xd0>
  15171. hadc->DMA_Handle->XferErrorCallback(hdma);
  15172. 8006ba0: 68fb ldr r3, [r7, #12]
  15173. 8006ba2: 6cdb ldr r3, [r3, #76] @ 0x4c
  15174. 8006ba4: 6cdb ldr r3, [r3, #76] @ 0x4c
  15175. 8006ba6: 6878 ldr r0, [r7, #4]
  15176. 8006ba8: 4798 blx r3
  15177. }
  15178. 8006baa: bf00 nop
  15179. 8006bac: 3710 adds r7, #16
  15180. 8006bae: 46bd mov sp, r7
  15181. 8006bb0: bd80 pop {r7, pc}
  15182. 08006bb2 <ADC_DMAHalfConvCplt>:
  15183. * @brief DMA half transfer complete callback.
  15184. * @param hdma pointer to DMA handle.
  15185. * @retval None
  15186. */
  15187. void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  15188. {
  15189. 8006bb2: b580 push {r7, lr}
  15190. 8006bb4: b084 sub sp, #16
  15191. 8006bb6: af00 add r7, sp, #0
  15192. 8006bb8: 6078 str r0, [r7, #4]
  15193. /* Retrieve ADC handle corresponding to current DMA handle */
  15194. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15195. 8006bba: 687b ldr r3, [r7, #4]
  15196. 8006bbc: 6b9b ldr r3, [r3, #56] @ 0x38
  15197. 8006bbe: 60fb str r3, [r7, #12]
  15198. /* Half conversion callback */
  15199. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15200. hadc->ConvHalfCpltCallback(hadc);
  15201. #else
  15202. HAL_ADC_ConvHalfCpltCallback(hadc);
  15203. 8006bc0: 68f8 ldr r0, [r7, #12]
  15204. 8006bc2: f7ff fb31 bl 8006228 <HAL_ADC_ConvHalfCpltCallback>
  15205. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15206. }
  15207. 8006bc6: bf00 nop
  15208. 8006bc8: 3710 adds r7, #16
  15209. 8006bca: 46bd mov sp, r7
  15210. 8006bcc: bd80 pop {r7, pc}
  15211. 08006bce <ADC_DMAError>:
  15212. * @brief DMA error callback.
  15213. * @param hdma pointer to DMA handle.
  15214. * @retval None
  15215. */
  15216. void ADC_DMAError(DMA_HandleTypeDef *hdma)
  15217. {
  15218. 8006bce: b580 push {r7, lr}
  15219. 8006bd0: b084 sub sp, #16
  15220. 8006bd2: af00 add r7, sp, #0
  15221. 8006bd4: 6078 str r0, [r7, #4]
  15222. /* Retrieve ADC handle corresponding to current DMA handle */
  15223. ADC_HandleTypeDef *hadc = (ADC_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent;
  15224. 8006bd6: 687b ldr r3, [r7, #4]
  15225. 8006bd8: 6b9b ldr r3, [r3, #56] @ 0x38
  15226. 8006bda: 60fb str r3, [r7, #12]
  15227. /* Set ADC state */
  15228. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  15229. 8006bdc: 68fb ldr r3, [r7, #12]
  15230. 8006bde: 6d5b ldr r3, [r3, #84] @ 0x54
  15231. 8006be0: f043 0240 orr.w r2, r3, #64 @ 0x40
  15232. 8006be4: 68fb ldr r3, [r7, #12]
  15233. 8006be6: 655a str r2, [r3, #84] @ 0x54
  15234. /* Set ADC error code to DMA error */
  15235. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  15236. 8006be8: 68fb ldr r3, [r7, #12]
  15237. 8006bea: 6d9b ldr r3, [r3, #88] @ 0x58
  15238. 8006bec: f043 0204 orr.w r2, r3, #4
  15239. 8006bf0: 68fb ldr r3, [r7, #12]
  15240. 8006bf2: 659a str r2, [r3, #88] @ 0x58
  15241. /* Error callback */
  15242. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  15243. hadc->ErrorCallback(hadc);
  15244. #else
  15245. HAL_ADC_ErrorCallback(hadc);
  15246. 8006bf4: 68f8 ldr r0, [r7, #12]
  15247. 8006bf6: f7ff fb21 bl 800623c <HAL_ADC_ErrorCallback>
  15248. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  15249. }
  15250. 8006bfa: bf00 nop
  15251. 8006bfc: 3710 adds r7, #16
  15252. 8006bfe: 46bd mov sp, r7
  15253. 8006c00: bd80 pop {r7, pc}
  15254. ...
  15255. 08006c04 <ADC_ConfigureBoostMode>:
  15256. * stopped.
  15257. * @param hadc ADC handle
  15258. * @retval None.
  15259. */
  15260. void ADC_ConfigureBoostMode(ADC_HandleTypeDef *hadc)
  15261. {
  15262. 8006c04: b580 push {r7, lr}
  15263. 8006c06: b084 sub sp, #16
  15264. 8006c08: af00 add r7, sp, #0
  15265. 8006c0a: 6078 str r0, [r7, #4]
  15266. uint32_t freq;
  15267. if (ADC_IS_SYNCHRONOUS_CLOCK_MODE(hadc))
  15268. 8006c0c: 687b ldr r3, [r7, #4]
  15269. 8006c0e: 681b ldr r3, [r3, #0]
  15270. 8006c10: 4a7a ldr r2, [pc, #488] @ (8006dfc <ADC_ConfigureBoostMode+0x1f8>)
  15271. 8006c12: 4293 cmp r3, r2
  15272. 8006c14: d004 beq.n 8006c20 <ADC_ConfigureBoostMode+0x1c>
  15273. 8006c16: 687b ldr r3, [r7, #4]
  15274. 8006c18: 681b ldr r3, [r3, #0]
  15275. 8006c1a: 4a79 ldr r2, [pc, #484] @ (8006e00 <ADC_ConfigureBoostMode+0x1fc>)
  15276. 8006c1c: 4293 cmp r3, r2
  15277. 8006c1e: d109 bne.n 8006c34 <ADC_ConfigureBoostMode+0x30>
  15278. 8006c20: 4b78 ldr r3, [pc, #480] @ (8006e04 <ADC_ConfigureBoostMode+0x200>)
  15279. 8006c22: 689b ldr r3, [r3, #8]
  15280. 8006c24: f403 3340 and.w r3, r3, #196608 @ 0x30000
  15281. 8006c28: 2b00 cmp r3, #0
  15282. 8006c2a: bf14 ite ne
  15283. 8006c2c: 2301 movne r3, #1
  15284. 8006c2e: 2300 moveq r3, #0
  15285. 8006c30: b2db uxtb r3, r3
  15286. 8006c32: e008 b.n 8006c46 <ADC_ConfigureBoostMode+0x42>
  15287. 8006c34: 4b74 ldr r3, [pc, #464] @ (8006e08 <ADC_ConfigureBoostMode+0x204>)
  15288. 8006c36: 689b ldr r3, [r3, #8]
  15289. 8006c38: f403 3340 and.w r3, r3, #196608 @ 0x30000
  15290. 8006c3c: 2b00 cmp r3, #0
  15291. 8006c3e: bf14 ite ne
  15292. 8006c40: 2301 movne r3, #1
  15293. 8006c42: 2300 moveq r3, #0
  15294. 8006c44: b2db uxtb r3, r3
  15295. 8006c46: 2b00 cmp r3, #0
  15296. 8006c48: d01c beq.n 8006c84 <ADC_ConfigureBoostMode+0x80>
  15297. {
  15298. freq = HAL_RCC_GetHCLKFreq();
  15299. 8006c4a: f005 fc39 bl 800c4c0 <HAL_RCC_GetHCLKFreq>
  15300. 8006c4e: 60f8 str r0, [r7, #12]
  15301. switch (hadc->Init.ClockPrescaler)
  15302. 8006c50: 687b ldr r3, [r7, #4]
  15303. 8006c52: 685b ldr r3, [r3, #4]
  15304. 8006c54: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  15305. 8006c58: d010 beq.n 8006c7c <ADC_ConfigureBoostMode+0x78>
  15306. 8006c5a: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  15307. 8006c5e: d873 bhi.n 8006d48 <ADC_ConfigureBoostMode+0x144>
  15308. 8006c60: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  15309. 8006c64: d002 beq.n 8006c6c <ADC_ConfigureBoostMode+0x68>
  15310. 8006c66: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  15311. 8006c6a: d16d bne.n 8006d48 <ADC_ConfigureBoostMode+0x144>
  15312. {
  15313. case ADC_CLOCK_SYNC_PCLK_DIV1:
  15314. case ADC_CLOCK_SYNC_PCLK_DIV2:
  15315. freq /= (hadc->Init.ClockPrescaler >> ADC_CCR_CKMODE_Pos);
  15316. 8006c6c: 687b ldr r3, [r7, #4]
  15317. 8006c6e: 685b ldr r3, [r3, #4]
  15318. 8006c70: 0c1b lsrs r3, r3, #16
  15319. 8006c72: 68fa ldr r2, [r7, #12]
  15320. 8006c74: fbb2 f3f3 udiv r3, r2, r3
  15321. 8006c78: 60fb str r3, [r7, #12]
  15322. break;
  15323. 8006c7a: e068 b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15324. case ADC_CLOCK_SYNC_PCLK_DIV4:
  15325. freq /= 4UL;
  15326. 8006c7c: 68fb ldr r3, [r7, #12]
  15327. 8006c7e: 089b lsrs r3, r3, #2
  15328. 8006c80: 60fb str r3, [r7, #12]
  15329. break;
  15330. 8006c82: e064 b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15331. break;
  15332. }
  15333. }
  15334. else
  15335. {
  15336. freq = HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_ADC);
  15337. 8006c84: f44f 2000 mov.w r0, #524288 @ 0x80000
  15338. 8006c88: f04f 0100 mov.w r1, #0
  15339. 8006c8c: f006 fea4 bl 800d9d8 <HAL_RCCEx_GetPeriphCLKFreq>
  15340. 8006c90: 60f8 str r0, [r7, #12]
  15341. switch (hadc->Init.ClockPrescaler)
  15342. 8006c92: 687b ldr r3, [r7, #4]
  15343. 8006c94: 685b ldr r3, [r3, #4]
  15344. 8006c96: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  15345. 8006c9a: d051 beq.n 8006d40 <ADC_ConfigureBoostMode+0x13c>
  15346. 8006c9c: f5b3 1f30 cmp.w r3, #2883584 @ 0x2c0000
  15347. 8006ca0: d854 bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15348. 8006ca2: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  15349. 8006ca6: d047 beq.n 8006d38 <ADC_ConfigureBoostMode+0x134>
  15350. 8006ca8: f5b3 1f20 cmp.w r3, #2621440 @ 0x280000
  15351. 8006cac: d84e bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15352. 8006cae: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  15353. 8006cb2: d03d beq.n 8006d30 <ADC_ConfigureBoostMode+0x12c>
  15354. 8006cb4: f5b3 1f10 cmp.w r3, #2359296 @ 0x240000
  15355. 8006cb8: d848 bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15356. 8006cba: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  15357. 8006cbe: d033 beq.n 8006d28 <ADC_ConfigureBoostMode+0x124>
  15358. 8006cc0: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  15359. 8006cc4: d842 bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15360. 8006cc6: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  15361. 8006cca: d029 beq.n 8006d20 <ADC_ConfigureBoostMode+0x11c>
  15362. 8006ccc: f5b3 1fe0 cmp.w r3, #1835008 @ 0x1c0000
  15363. 8006cd0: d83c bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15364. 8006cd2: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  15365. 8006cd6: d01a beq.n 8006d0e <ADC_ConfigureBoostMode+0x10a>
  15366. 8006cd8: f5b3 1fc0 cmp.w r3, #1572864 @ 0x180000
  15367. 8006cdc: d836 bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15368. 8006cde: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  15369. 8006ce2: d014 beq.n 8006d0e <ADC_ConfigureBoostMode+0x10a>
  15370. 8006ce4: f5b3 1fa0 cmp.w r3, #1310720 @ 0x140000
  15371. 8006ce8: d830 bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15372. 8006cea: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  15373. 8006cee: d00e beq.n 8006d0e <ADC_ConfigureBoostMode+0x10a>
  15374. 8006cf0: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  15375. 8006cf4: d82a bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15376. 8006cf6: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  15377. 8006cfa: d008 beq.n 8006d0e <ADC_ConfigureBoostMode+0x10a>
  15378. 8006cfc: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000
  15379. 8006d00: d824 bhi.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15380. 8006d02: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  15381. 8006d06: d002 beq.n 8006d0e <ADC_ConfigureBoostMode+0x10a>
  15382. 8006d08: f5b3 2f00 cmp.w r3, #524288 @ 0x80000
  15383. 8006d0c: d11e bne.n 8006d4c <ADC_ConfigureBoostMode+0x148>
  15384. case ADC_CLOCK_ASYNC_DIV4:
  15385. case ADC_CLOCK_ASYNC_DIV6:
  15386. case ADC_CLOCK_ASYNC_DIV8:
  15387. case ADC_CLOCK_ASYNC_DIV10:
  15388. case ADC_CLOCK_ASYNC_DIV12:
  15389. freq /= ((hadc->Init.ClockPrescaler >> ADC_CCR_PRESC_Pos) << 1UL);
  15390. 8006d0e: 687b ldr r3, [r7, #4]
  15391. 8006d10: 685b ldr r3, [r3, #4]
  15392. 8006d12: 0c9b lsrs r3, r3, #18
  15393. 8006d14: 005b lsls r3, r3, #1
  15394. 8006d16: 68fa ldr r2, [r7, #12]
  15395. 8006d18: fbb2 f3f3 udiv r3, r2, r3
  15396. 8006d1c: 60fb str r3, [r7, #12]
  15397. break;
  15398. 8006d1e: e016 b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15399. case ADC_CLOCK_ASYNC_DIV16:
  15400. freq /= 16UL;
  15401. 8006d20: 68fb ldr r3, [r7, #12]
  15402. 8006d22: 091b lsrs r3, r3, #4
  15403. 8006d24: 60fb str r3, [r7, #12]
  15404. break;
  15405. 8006d26: e012 b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15406. case ADC_CLOCK_ASYNC_DIV32:
  15407. freq /= 32UL;
  15408. 8006d28: 68fb ldr r3, [r7, #12]
  15409. 8006d2a: 095b lsrs r3, r3, #5
  15410. 8006d2c: 60fb str r3, [r7, #12]
  15411. break;
  15412. 8006d2e: e00e b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15413. case ADC_CLOCK_ASYNC_DIV64:
  15414. freq /= 64UL;
  15415. 8006d30: 68fb ldr r3, [r7, #12]
  15416. 8006d32: 099b lsrs r3, r3, #6
  15417. 8006d34: 60fb str r3, [r7, #12]
  15418. break;
  15419. 8006d36: e00a b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15420. case ADC_CLOCK_ASYNC_DIV128:
  15421. freq /= 128UL;
  15422. 8006d38: 68fb ldr r3, [r7, #12]
  15423. 8006d3a: 09db lsrs r3, r3, #7
  15424. 8006d3c: 60fb str r3, [r7, #12]
  15425. break;
  15426. 8006d3e: e006 b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15427. case ADC_CLOCK_ASYNC_DIV256:
  15428. freq /= 256UL;
  15429. 8006d40: 68fb ldr r3, [r7, #12]
  15430. 8006d42: 0a1b lsrs r3, r3, #8
  15431. 8006d44: 60fb str r3, [r7, #12]
  15432. break;
  15433. 8006d46: e002 b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15434. break;
  15435. 8006d48: bf00 nop
  15436. 8006d4a: e000 b.n 8006d4e <ADC_ConfigureBoostMode+0x14a>
  15437. default:
  15438. break;
  15439. 8006d4c: bf00 nop
  15440. else /* if(freq > 25000000UL) */
  15441. {
  15442. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15443. }
  15444. #else
  15445. if (HAL_GetREVID() <= REV_ID_Y) /* STM32H7 silicon Rev.Y */
  15446. 8006d4e: f7fe fdb1 bl 80058b4 <HAL_GetREVID>
  15447. 8006d52: 4603 mov r3, r0
  15448. 8006d54: f241 0203 movw r2, #4099 @ 0x1003
  15449. 8006d58: 4293 cmp r3, r2
  15450. 8006d5a: d815 bhi.n 8006d88 <ADC_ConfigureBoostMode+0x184>
  15451. {
  15452. if (freq > 20000000UL)
  15453. 8006d5c: 68fb ldr r3, [r7, #12]
  15454. 8006d5e: 4a2b ldr r2, [pc, #172] @ (8006e0c <ADC_ConfigureBoostMode+0x208>)
  15455. 8006d60: 4293 cmp r3, r2
  15456. 8006d62: d908 bls.n 8006d76 <ADC_ConfigureBoostMode+0x172>
  15457. {
  15458. SET_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  15459. 8006d64: 687b ldr r3, [r7, #4]
  15460. 8006d66: 681b ldr r3, [r3, #0]
  15461. 8006d68: 689a ldr r2, [r3, #8]
  15462. 8006d6a: 687b ldr r3, [r7, #4]
  15463. 8006d6c: 681b ldr r3, [r3, #0]
  15464. 8006d6e: f442 7280 orr.w r2, r2, #256 @ 0x100
  15465. 8006d72: 609a str r2, [r3, #8]
  15466. {
  15467. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15468. }
  15469. }
  15470. #endif /* ADC_VER_V5_3 */
  15471. }
  15472. 8006d74: e03e b.n 8006df4 <ADC_ConfigureBoostMode+0x1f0>
  15473. CLEAR_BIT(hadc->Instance->CR, ADC_CR_BOOST_0);
  15474. 8006d76: 687b ldr r3, [r7, #4]
  15475. 8006d78: 681b ldr r3, [r3, #0]
  15476. 8006d7a: 689a ldr r2, [r3, #8]
  15477. 8006d7c: 687b ldr r3, [r7, #4]
  15478. 8006d7e: 681b ldr r3, [r3, #0]
  15479. 8006d80: f422 7280 bic.w r2, r2, #256 @ 0x100
  15480. 8006d84: 609a str r2, [r3, #8]
  15481. }
  15482. 8006d86: e035 b.n 8006df4 <ADC_ConfigureBoostMode+0x1f0>
  15483. freq /= 2U; /* divider by 2 for Rev.V */
  15484. 8006d88: 68fb ldr r3, [r7, #12]
  15485. 8006d8a: 085b lsrs r3, r3, #1
  15486. 8006d8c: 60fb str r3, [r7, #12]
  15487. if (freq <= 6250000UL)
  15488. 8006d8e: 68fb ldr r3, [r7, #12]
  15489. 8006d90: 4a1f ldr r2, [pc, #124] @ (8006e10 <ADC_ConfigureBoostMode+0x20c>)
  15490. 8006d92: 4293 cmp r3, r2
  15491. 8006d94: d808 bhi.n 8006da8 <ADC_ConfigureBoostMode+0x1a4>
  15492. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, 0UL);
  15493. 8006d96: 687b ldr r3, [r7, #4]
  15494. 8006d98: 681b ldr r3, [r3, #0]
  15495. 8006d9a: 689a ldr r2, [r3, #8]
  15496. 8006d9c: 687b ldr r3, [r7, #4]
  15497. 8006d9e: 681b ldr r3, [r3, #0]
  15498. 8006da0: f422 7240 bic.w r2, r2, #768 @ 0x300
  15499. 8006da4: 609a str r2, [r3, #8]
  15500. }
  15501. 8006da6: e025 b.n 8006df4 <ADC_ConfigureBoostMode+0x1f0>
  15502. else if (freq <= 12500000UL)
  15503. 8006da8: 68fb ldr r3, [r7, #12]
  15504. 8006daa: 4a1a ldr r2, [pc, #104] @ (8006e14 <ADC_ConfigureBoostMode+0x210>)
  15505. 8006dac: 4293 cmp r3, r2
  15506. 8006dae: d80a bhi.n 8006dc6 <ADC_ConfigureBoostMode+0x1c2>
  15507. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_0);
  15508. 8006db0: 687b ldr r3, [r7, #4]
  15509. 8006db2: 681b ldr r3, [r3, #0]
  15510. 8006db4: 689b ldr r3, [r3, #8]
  15511. 8006db6: f423 7240 bic.w r2, r3, #768 @ 0x300
  15512. 8006dba: 687b ldr r3, [r7, #4]
  15513. 8006dbc: 681b ldr r3, [r3, #0]
  15514. 8006dbe: f442 7280 orr.w r2, r2, #256 @ 0x100
  15515. 8006dc2: 609a str r2, [r3, #8]
  15516. }
  15517. 8006dc4: e016 b.n 8006df4 <ADC_ConfigureBoostMode+0x1f0>
  15518. else if (freq <= 25000000UL)
  15519. 8006dc6: 68fb ldr r3, [r7, #12]
  15520. 8006dc8: 4a13 ldr r2, [pc, #76] @ (8006e18 <ADC_ConfigureBoostMode+0x214>)
  15521. 8006dca: 4293 cmp r3, r2
  15522. 8006dcc: d80a bhi.n 8006de4 <ADC_ConfigureBoostMode+0x1e0>
  15523. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1);
  15524. 8006dce: 687b ldr r3, [r7, #4]
  15525. 8006dd0: 681b ldr r3, [r3, #0]
  15526. 8006dd2: 689b ldr r3, [r3, #8]
  15527. 8006dd4: f423 7240 bic.w r2, r3, #768 @ 0x300
  15528. 8006dd8: 687b ldr r3, [r7, #4]
  15529. 8006dda: 681b ldr r3, [r3, #0]
  15530. 8006ddc: f442 7200 orr.w r2, r2, #512 @ 0x200
  15531. 8006de0: 609a str r2, [r3, #8]
  15532. }
  15533. 8006de2: e007 b.n 8006df4 <ADC_ConfigureBoostMode+0x1f0>
  15534. MODIFY_REG(hadc->Instance->CR, ADC_CR_BOOST, ADC_CR_BOOST_1 | ADC_CR_BOOST_0);
  15535. 8006de4: 687b ldr r3, [r7, #4]
  15536. 8006de6: 681b ldr r3, [r3, #0]
  15537. 8006de8: 689a ldr r2, [r3, #8]
  15538. 8006dea: 687b ldr r3, [r7, #4]
  15539. 8006dec: 681b ldr r3, [r3, #0]
  15540. 8006dee: f442 7240 orr.w r2, r2, #768 @ 0x300
  15541. 8006df2: 609a str r2, [r3, #8]
  15542. }
  15543. 8006df4: bf00 nop
  15544. 8006df6: 3710 adds r7, #16
  15545. 8006df8: 46bd mov sp, r7
  15546. 8006dfa: bd80 pop {r7, pc}
  15547. 8006dfc: 40022000 .word 0x40022000
  15548. 8006e00: 40022100 .word 0x40022100
  15549. 8006e04: 40022300 .word 0x40022300
  15550. 8006e08: 58026300 .word 0x58026300
  15551. 8006e0c: 01312d00 .word 0x01312d00
  15552. 8006e10: 005f5e10 .word 0x005f5e10
  15553. 8006e14: 00bebc20 .word 0x00bebc20
  15554. 8006e18: 017d7840 .word 0x017d7840
  15555. 08006e1c <LL_ADC_IsEnabled>:
  15556. {
  15557. 8006e1c: b480 push {r7}
  15558. 8006e1e: b083 sub sp, #12
  15559. 8006e20: af00 add r7, sp, #0
  15560. 8006e22: 6078 str r0, [r7, #4]
  15561. return ((READ_BIT(ADCx->CR, ADC_CR_ADEN) == (ADC_CR_ADEN)) ? 1UL : 0UL);
  15562. 8006e24: 687b ldr r3, [r7, #4]
  15563. 8006e26: 689b ldr r3, [r3, #8]
  15564. 8006e28: f003 0301 and.w r3, r3, #1
  15565. 8006e2c: 2b01 cmp r3, #1
  15566. 8006e2e: d101 bne.n 8006e34 <LL_ADC_IsEnabled+0x18>
  15567. 8006e30: 2301 movs r3, #1
  15568. 8006e32: e000 b.n 8006e36 <LL_ADC_IsEnabled+0x1a>
  15569. 8006e34: 2300 movs r3, #0
  15570. }
  15571. 8006e36: 4618 mov r0, r3
  15572. 8006e38: 370c adds r7, #12
  15573. 8006e3a: 46bd mov sp, r7
  15574. 8006e3c: f85d 7b04 ldr.w r7, [sp], #4
  15575. 8006e40: 4770 bx lr
  15576. ...
  15577. 08006e44 <LL_ADC_StartCalibration>:
  15578. {
  15579. 8006e44: b480 push {r7}
  15580. 8006e46: b085 sub sp, #20
  15581. 8006e48: af00 add r7, sp, #0
  15582. 8006e4a: 60f8 str r0, [r7, #12]
  15583. 8006e4c: 60b9 str r1, [r7, #8]
  15584. 8006e4e: 607a str r2, [r7, #4]
  15585. MODIFY_REG(ADCx->CR,
  15586. 8006e50: 68fb ldr r3, [r7, #12]
  15587. 8006e52: 689a ldr r2, [r3, #8]
  15588. 8006e54: 4b09 ldr r3, [pc, #36] @ (8006e7c <LL_ADC_StartCalibration+0x38>)
  15589. 8006e56: 4013 ands r3, r2
  15590. 8006e58: 68ba ldr r2, [r7, #8]
  15591. 8006e5a: f402 3180 and.w r1, r2, #65536 @ 0x10000
  15592. 8006e5e: 687a ldr r2, [r7, #4]
  15593. 8006e60: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000
  15594. 8006e64: 430a orrs r2, r1
  15595. 8006e66: 4313 orrs r3, r2
  15596. 8006e68: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
  15597. 8006e6c: 68fb ldr r3, [r7, #12]
  15598. 8006e6e: 609a str r2, [r3, #8]
  15599. }
  15600. 8006e70: bf00 nop
  15601. 8006e72: 3714 adds r7, #20
  15602. 8006e74: 46bd mov sp, r7
  15603. 8006e76: f85d 7b04 ldr.w r7, [sp], #4
  15604. 8006e7a: 4770 bx lr
  15605. 8006e7c: 3ffeffc0 .word 0x3ffeffc0
  15606. 08006e80 <LL_ADC_IsCalibrationOnGoing>:
  15607. {
  15608. 8006e80: b480 push {r7}
  15609. 8006e82: b083 sub sp, #12
  15610. 8006e84: af00 add r7, sp, #0
  15611. 8006e86: 6078 str r0, [r7, #4]
  15612. return ((READ_BIT(ADCx->CR, ADC_CR_ADCAL) == (ADC_CR_ADCAL)) ? 1UL : 0UL);
  15613. 8006e88: 687b ldr r3, [r7, #4]
  15614. 8006e8a: 689b ldr r3, [r3, #8]
  15615. 8006e8c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  15616. 8006e90: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  15617. 8006e94: d101 bne.n 8006e9a <LL_ADC_IsCalibrationOnGoing+0x1a>
  15618. 8006e96: 2301 movs r3, #1
  15619. 8006e98: e000 b.n 8006e9c <LL_ADC_IsCalibrationOnGoing+0x1c>
  15620. 8006e9a: 2300 movs r3, #0
  15621. }
  15622. 8006e9c: 4618 mov r0, r3
  15623. 8006e9e: 370c adds r7, #12
  15624. 8006ea0: 46bd mov sp, r7
  15625. 8006ea2: f85d 7b04 ldr.w r7, [sp], #4
  15626. 8006ea6: 4770 bx lr
  15627. 08006ea8 <LL_ADC_REG_StartConversion>:
  15628. {
  15629. 8006ea8: b480 push {r7}
  15630. 8006eaa: b083 sub sp, #12
  15631. 8006eac: af00 add r7, sp, #0
  15632. 8006eae: 6078 str r0, [r7, #4]
  15633. MODIFY_REG(ADCx->CR,
  15634. 8006eb0: 687b ldr r3, [r7, #4]
  15635. 8006eb2: 689a ldr r2, [r3, #8]
  15636. 8006eb4: 4b05 ldr r3, [pc, #20] @ (8006ecc <LL_ADC_REG_StartConversion+0x24>)
  15637. 8006eb6: 4013 ands r3, r2
  15638. 8006eb8: f043 0204 orr.w r2, r3, #4
  15639. 8006ebc: 687b ldr r3, [r7, #4]
  15640. 8006ebe: 609a str r2, [r3, #8]
  15641. }
  15642. 8006ec0: bf00 nop
  15643. 8006ec2: 370c adds r7, #12
  15644. 8006ec4: 46bd mov sp, r7
  15645. 8006ec6: f85d 7b04 ldr.w r7, [sp], #4
  15646. 8006eca: 4770 bx lr
  15647. 8006ecc: 7fffffc0 .word 0x7fffffc0
  15648. 08006ed0 <LL_ADC_REG_IsConversionOngoing>:
  15649. {
  15650. 8006ed0: b480 push {r7}
  15651. 8006ed2: b083 sub sp, #12
  15652. 8006ed4: af00 add r7, sp, #0
  15653. 8006ed6: 6078 str r0, [r7, #4]
  15654. return ((READ_BIT(ADCx->CR, ADC_CR_ADSTART) == (ADC_CR_ADSTART)) ? 1UL : 0UL);
  15655. 8006ed8: 687b ldr r3, [r7, #4]
  15656. 8006eda: 689b ldr r3, [r3, #8]
  15657. 8006edc: f003 0304 and.w r3, r3, #4
  15658. 8006ee0: 2b04 cmp r3, #4
  15659. 8006ee2: d101 bne.n 8006ee8 <LL_ADC_REG_IsConversionOngoing+0x18>
  15660. 8006ee4: 2301 movs r3, #1
  15661. 8006ee6: e000 b.n 8006eea <LL_ADC_REG_IsConversionOngoing+0x1a>
  15662. 8006ee8: 2300 movs r3, #0
  15663. }
  15664. 8006eea: 4618 mov r0, r3
  15665. 8006eec: 370c adds r7, #12
  15666. 8006eee: 46bd mov sp, r7
  15667. 8006ef0: f85d 7b04 ldr.w r7, [sp], #4
  15668. 8006ef4: 4770 bx lr
  15669. ...
  15670. 08006ef8 <HAL_ADCEx_Calibration_Start>:
  15671. * @arg @ref ADC_SINGLE_ENDED Channel in mode input single ended
  15672. * @arg @ref ADC_DIFFERENTIAL_ENDED Channel in mode input differential ended
  15673. * @retval HAL status
  15674. */
  15675. HAL_StatusTypeDef HAL_ADCEx_Calibration_Start(ADC_HandleTypeDef *hadc, uint32_t CalibrationMode, uint32_t SingleDiff)
  15676. {
  15677. 8006ef8: b580 push {r7, lr}
  15678. 8006efa: b086 sub sp, #24
  15679. 8006efc: af00 add r7, sp, #0
  15680. 8006efe: 60f8 str r0, [r7, #12]
  15681. 8006f00: 60b9 str r1, [r7, #8]
  15682. 8006f02: 607a str r2, [r7, #4]
  15683. HAL_StatusTypeDef tmp_hal_status;
  15684. __IO uint32_t wait_loop_index = 0UL;
  15685. 8006f04: 2300 movs r3, #0
  15686. 8006f06: 613b str r3, [r7, #16]
  15687. /* Check the parameters */
  15688. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  15689. assert_param(IS_ADC_SINGLE_DIFFERENTIAL(SingleDiff));
  15690. /* Process locked */
  15691. __HAL_LOCK(hadc);
  15692. 8006f08: 68fb ldr r3, [r7, #12]
  15693. 8006f0a: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15694. 8006f0e: 2b01 cmp r3, #1
  15695. 8006f10: d101 bne.n 8006f16 <HAL_ADCEx_Calibration_Start+0x1e>
  15696. 8006f12: 2302 movs r3, #2
  15697. 8006f14: e04c b.n 8006fb0 <HAL_ADCEx_Calibration_Start+0xb8>
  15698. 8006f16: 68fb ldr r3, [r7, #12]
  15699. 8006f18: 2201 movs r2, #1
  15700. 8006f1a: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15701. /* Calibration prerequisite: ADC must be disabled. */
  15702. /* Disable the ADC (if not already disabled) */
  15703. tmp_hal_status = ADC_Disable(hadc);
  15704. 8006f1e: 68f8 ldr r0, [r7, #12]
  15705. 8006f20: f7ff fd7c bl 8006a1c <ADC_Disable>
  15706. 8006f24: 4603 mov r3, r0
  15707. 8006f26: 75fb strb r3, [r7, #23]
  15708. /* Check if ADC is effectively disabled */
  15709. if (tmp_hal_status == HAL_OK)
  15710. 8006f28: 7dfb ldrb r3, [r7, #23]
  15711. 8006f2a: 2b00 cmp r3, #0
  15712. 8006f2c: d135 bne.n 8006f9a <HAL_ADCEx_Calibration_Start+0xa2>
  15713. {
  15714. /* Set ADC state */
  15715. ADC_STATE_CLR_SET(hadc->State,
  15716. 8006f2e: 68fb ldr r3, [r7, #12]
  15717. 8006f30: 6d5a ldr r2, [r3, #84] @ 0x54
  15718. 8006f32: 4b21 ldr r3, [pc, #132] @ (8006fb8 <HAL_ADCEx_Calibration_Start+0xc0>)
  15719. 8006f34: 4013 ands r3, r2
  15720. 8006f36: f043 0202 orr.w r2, r3, #2
  15721. 8006f3a: 68fb ldr r3, [r7, #12]
  15722. 8006f3c: 655a str r2, [r3, #84] @ 0x54
  15723. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  15724. HAL_ADC_STATE_BUSY_INTERNAL);
  15725. /* Start ADC calibration in mode single-ended or differential */
  15726. LL_ADC_StartCalibration(hadc->Instance, CalibrationMode, SingleDiff);
  15727. 8006f3e: 68fb ldr r3, [r7, #12]
  15728. 8006f40: 681b ldr r3, [r3, #0]
  15729. 8006f42: 687a ldr r2, [r7, #4]
  15730. 8006f44: 68b9 ldr r1, [r7, #8]
  15731. 8006f46: 4618 mov r0, r3
  15732. 8006f48: f7ff ff7c bl 8006e44 <LL_ADC_StartCalibration>
  15733. /* Wait for calibration completion */
  15734. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15735. 8006f4c: e014 b.n 8006f78 <HAL_ADCEx_Calibration_Start+0x80>
  15736. {
  15737. wait_loop_index++;
  15738. 8006f4e: 693b ldr r3, [r7, #16]
  15739. 8006f50: 3301 adds r3, #1
  15740. 8006f52: 613b str r3, [r7, #16]
  15741. if (wait_loop_index >= ADC_CALIBRATION_TIMEOUT)
  15742. 8006f54: 693b ldr r3, [r7, #16]
  15743. 8006f56: 4a19 ldr r2, [pc, #100] @ (8006fbc <HAL_ADCEx_Calibration_Start+0xc4>)
  15744. 8006f58: 4293 cmp r3, r2
  15745. 8006f5a: d30d bcc.n 8006f78 <HAL_ADCEx_Calibration_Start+0x80>
  15746. {
  15747. /* Update ADC state machine to error */
  15748. ADC_STATE_CLR_SET(hadc->State,
  15749. 8006f5c: 68fb ldr r3, [r7, #12]
  15750. 8006f5e: 6d5b ldr r3, [r3, #84] @ 0x54
  15751. 8006f60: f023 0312 bic.w r3, r3, #18
  15752. 8006f64: f043 0210 orr.w r2, r3, #16
  15753. 8006f68: 68fb ldr r3, [r7, #12]
  15754. 8006f6a: 655a str r2, [r3, #84] @ 0x54
  15755. HAL_ADC_STATE_BUSY_INTERNAL,
  15756. HAL_ADC_STATE_ERROR_INTERNAL);
  15757. /* Process unlocked */
  15758. __HAL_UNLOCK(hadc);
  15759. 8006f6c: 68fb ldr r3, [r7, #12]
  15760. 8006f6e: 2200 movs r2, #0
  15761. 8006f70: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15762. return HAL_ERROR;
  15763. 8006f74: 2301 movs r3, #1
  15764. 8006f76: e01b b.n 8006fb0 <HAL_ADCEx_Calibration_Start+0xb8>
  15765. while (LL_ADC_IsCalibrationOnGoing(hadc->Instance) != 0UL)
  15766. 8006f78: 68fb ldr r3, [r7, #12]
  15767. 8006f7a: 681b ldr r3, [r3, #0]
  15768. 8006f7c: 4618 mov r0, r3
  15769. 8006f7e: f7ff ff7f bl 8006e80 <LL_ADC_IsCalibrationOnGoing>
  15770. 8006f82: 4603 mov r3, r0
  15771. 8006f84: 2b00 cmp r3, #0
  15772. 8006f86: d1e2 bne.n 8006f4e <HAL_ADCEx_Calibration_Start+0x56>
  15773. }
  15774. }
  15775. /* Set ADC state */
  15776. ADC_STATE_CLR_SET(hadc->State,
  15777. 8006f88: 68fb ldr r3, [r7, #12]
  15778. 8006f8a: 6d5b ldr r3, [r3, #84] @ 0x54
  15779. 8006f8c: f023 0303 bic.w r3, r3, #3
  15780. 8006f90: f043 0201 orr.w r2, r3, #1
  15781. 8006f94: 68fb ldr r3, [r7, #12]
  15782. 8006f96: 655a str r2, [r3, #84] @ 0x54
  15783. 8006f98: e005 b.n 8006fa6 <HAL_ADCEx_Calibration_Start+0xae>
  15784. HAL_ADC_STATE_BUSY_INTERNAL,
  15785. HAL_ADC_STATE_READY);
  15786. }
  15787. else
  15788. {
  15789. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  15790. 8006f9a: 68fb ldr r3, [r7, #12]
  15791. 8006f9c: 6d5b ldr r3, [r3, #84] @ 0x54
  15792. 8006f9e: f043 0210 orr.w r2, r3, #16
  15793. 8006fa2: 68fb ldr r3, [r7, #12]
  15794. 8006fa4: 655a str r2, [r3, #84] @ 0x54
  15795. /* Note: No need to update variable "tmp_hal_status" here: already set */
  15796. /* to state "HAL_ERROR" by function disabling the ADC. */
  15797. }
  15798. /* Process unlocked */
  15799. __HAL_UNLOCK(hadc);
  15800. 8006fa6: 68fb ldr r3, [r7, #12]
  15801. 8006fa8: 2200 movs r2, #0
  15802. 8006faa: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15803. /* Return function status */
  15804. return tmp_hal_status;
  15805. 8006fae: 7dfb ldrb r3, [r7, #23]
  15806. }
  15807. 8006fb0: 4618 mov r0, r3
  15808. 8006fb2: 3718 adds r7, #24
  15809. 8006fb4: 46bd mov sp, r7
  15810. 8006fb6: bd80 pop {r7, pc}
  15811. 8006fb8: ffffeefd .word 0xffffeefd
  15812. 8006fbc: 25c3f800 .word 0x25c3f800
  15813. 08006fc0 <HAL_ADCEx_MultiModeStart_DMA>:
  15814. * @param pData Destination Buffer address.
  15815. * @param Length Length of data to be transferred from ADC peripheral to memory (in bytes).
  15816. * @retval HAL status
  15817. */
  15818. HAL_StatusTypeDef HAL_ADCEx_MultiModeStart_DMA(ADC_HandleTypeDef *hadc, uint32_t *pData, uint32_t Length)
  15819. {
  15820. 8006fc0: b580 push {r7, lr}
  15821. 8006fc2: b0a0 sub sp, #128 @ 0x80
  15822. 8006fc4: af00 add r7, sp, #0
  15823. 8006fc6: 60f8 str r0, [r7, #12]
  15824. 8006fc8: 60b9 str r1, [r7, #8]
  15825. 8006fca: 607a str r2, [r7, #4]
  15826. /* Check the parameters */
  15827. assert_param(IS_ADC_MULTIMODE_MASTER_INSTANCE(hadc->Instance));
  15828. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  15829. assert_param(IS_ADC_EXTTRIG_EDGE(hadc->Init.ExternalTrigConvEdge));
  15830. if (LL_ADC_REG_IsConversionOngoing(hadc->Instance) != 0UL)
  15831. 8006fcc: 68fb ldr r3, [r7, #12]
  15832. 8006fce: 681b ldr r3, [r3, #0]
  15833. 8006fd0: 4618 mov r0, r3
  15834. 8006fd2: f7ff ff7d bl 8006ed0 <LL_ADC_REG_IsConversionOngoing>
  15835. 8006fd6: 4603 mov r3, r0
  15836. 8006fd8: 2b00 cmp r3, #0
  15837. 8006fda: d001 beq.n 8006fe0 <HAL_ADCEx_MultiModeStart_DMA+0x20>
  15838. {
  15839. return HAL_BUSY;
  15840. 8006fdc: 2302 movs r3, #2
  15841. 8006fde: e0b9 b.n 8007154 <HAL_ADCEx_MultiModeStart_DMA+0x194>
  15842. }
  15843. else
  15844. {
  15845. /* Process locked */
  15846. __HAL_LOCK(hadc);
  15847. 8006fe0: 68fb ldr r3, [r7, #12]
  15848. 8006fe2: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  15849. 8006fe6: 2b01 cmp r3, #1
  15850. 8006fe8: d101 bne.n 8006fee <HAL_ADCEx_MultiModeStart_DMA+0x2e>
  15851. 8006fea: 2302 movs r3, #2
  15852. 8006fec: e0b2 b.n 8007154 <HAL_ADCEx_MultiModeStart_DMA+0x194>
  15853. 8006fee: 68fb ldr r3, [r7, #12]
  15854. 8006ff0: 2201 movs r2, #1
  15855. 8006ff2: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15856. /* Case of ADC slave using its own DMA channel: check whether handle selected
  15857. corresponds to ADC master or slave instance */
  15858. if (__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) != hadc->Instance)
  15859. 8006ff6: 68fb ldr r3, [r7, #12]
  15860. 8006ff8: 681b ldr r3, [r3, #0]
  15861. 8006ffa: 4a58 ldr r2, [pc, #352] @ (800715c <HAL_ADCEx_MultiModeStart_DMA+0x19c>)
  15862. 8006ffc: 4293 cmp r3, r2
  15863. 8006ffe: d002 beq.n 8007006 <HAL_ADCEx_MultiModeStart_DMA+0x46>
  15864. 8007000: 68fb ldr r3, [r7, #12]
  15865. 8007002: 681b ldr r3, [r3, #0]
  15866. 8007004: e000 b.n 8007008 <HAL_ADCEx_MultiModeStart_DMA+0x48>
  15867. 8007006: 4b56 ldr r3, [pc, #344] @ (8007160 <HAL_ADCEx_MultiModeStart_DMA+0x1a0>)
  15868. 8007008: 68fa ldr r2, [r7, #12]
  15869. 800700a: 6812 ldr r2, [r2, #0]
  15870. 800700c: 4293 cmp r3, r2
  15871. 800700e: d006 beq.n 800701e <HAL_ADCEx_MultiModeStart_DMA+0x5e>
  15872. {
  15873. /* Case of ADC slave selected: enable ADC instance */
  15874. tmp_hal_status = ADC_Enable(hadc);
  15875. 8007010: 68f8 ldr r0, [r7, #12]
  15876. 8007012: f7ff fc79 bl 8006908 <ADC_Enable>
  15877. 8007016: 4603 mov r3, r0
  15878. 8007018: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15879. 800701c: e02e b.n 800707c <HAL_ADCEx_MultiModeStart_DMA+0xbc>
  15880. }
  15881. else
  15882. {
  15883. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  15884. 800701e: 2300 movs r3, #0
  15885. 8007020: 66bb str r3, [r7, #104] @ 0x68
  15886. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  15887. 8007022: 2300 movs r3, #0
  15888. 8007024: 66fb str r3, [r7, #108] @ 0x6c
  15889. /* Set a temporary handle of the ADC slave associated to the ADC master */
  15890. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  15891. 8007026: 68fb ldr r3, [r7, #12]
  15892. 8007028: 681b ldr r3, [r3, #0]
  15893. 800702a: 4a4d ldr r2, [pc, #308] @ (8007160 <HAL_ADCEx_MultiModeStart_DMA+0x1a0>)
  15894. 800702c: 4293 cmp r3, r2
  15895. 800702e: d102 bne.n 8007036 <HAL_ADCEx_MultiModeStart_DMA+0x76>
  15896. 8007030: 4b4a ldr r3, [pc, #296] @ (800715c <HAL_ADCEx_MultiModeStart_DMA+0x19c>)
  15897. 8007032: 617b str r3, [r7, #20]
  15898. 8007034: e001 b.n 800703a <HAL_ADCEx_MultiModeStart_DMA+0x7a>
  15899. 8007036: 2300 movs r3, #0
  15900. 8007038: 617b str r3, [r7, #20]
  15901. if (tmphadcSlave.Instance == NULL)
  15902. 800703a: 697b ldr r3, [r7, #20]
  15903. 800703c: 2b00 cmp r3, #0
  15904. 800703e: d10b bne.n 8007058 <HAL_ADCEx_MultiModeStart_DMA+0x98>
  15905. {
  15906. /* Set ADC state */
  15907. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  15908. 8007040: 68fb ldr r3, [r7, #12]
  15909. 8007042: 6d5b ldr r3, [r3, #84] @ 0x54
  15910. 8007044: f043 0220 orr.w r2, r3, #32
  15911. 8007048: 68fb ldr r3, [r7, #12]
  15912. 800704a: 655a str r2, [r3, #84] @ 0x54
  15913. /* Process unlocked */
  15914. __HAL_UNLOCK(hadc);
  15915. 800704c: 68fb ldr r3, [r7, #12]
  15916. 800704e: 2200 movs r2, #0
  15917. 8007050: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15918. return HAL_ERROR;
  15919. 8007054: 2301 movs r3, #1
  15920. 8007056: e07d b.n 8007154 <HAL_ADCEx_MultiModeStart_DMA+0x194>
  15921. }
  15922. /* Enable the ADC peripherals: master and slave (in case if not already */
  15923. /* enabled previously) */
  15924. tmp_hal_status = ADC_Enable(hadc);
  15925. 8007058: 68f8 ldr r0, [r7, #12]
  15926. 800705a: f7ff fc55 bl 8006908 <ADC_Enable>
  15927. 800705e: 4603 mov r3, r0
  15928. 8007060: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15929. if (tmp_hal_status == HAL_OK)
  15930. 8007064: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  15931. 8007068: 2b00 cmp r3, #0
  15932. 800706a: d107 bne.n 800707c <HAL_ADCEx_MultiModeStart_DMA+0xbc>
  15933. {
  15934. tmp_hal_status = ADC_Enable(&tmphadcSlave);
  15935. 800706c: f107 0314 add.w r3, r7, #20
  15936. 8007070: 4618 mov r0, r3
  15937. 8007072: f7ff fc49 bl 8006908 <ADC_Enable>
  15938. 8007076: 4603 mov r3, r0
  15939. 8007078: f887 307f strb.w r3, [r7, #127] @ 0x7f
  15940. }
  15941. }
  15942. /* Start multimode conversion of ADCs pair */
  15943. if (tmp_hal_status == HAL_OK)
  15944. 800707c: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  15945. 8007080: 2b00 cmp r3, #0
  15946. 8007082: d161 bne.n 8007148 <HAL_ADCEx_MultiModeStart_DMA+0x188>
  15947. {
  15948. /* Set ADC state */
  15949. ADC_STATE_CLR_SET(hadc->State,
  15950. 8007084: 68fb ldr r3, [r7, #12]
  15951. 8007086: 6d5a ldr r2, [r3, #84] @ 0x54
  15952. 8007088: 4b36 ldr r3, [pc, #216] @ (8007164 <HAL_ADCEx_MultiModeStart_DMA+0x1a4>)
  15953. 800708a: 4013 ands r3, r2
  15954. 800708c: f443 7280 orr.w r2, r3, #256 @ 0x100
  15955. 8007090: 68fb ldr r3, [r7, #12]
  15956. 8007092: 655a str r2, [r3, #84] @ 0x54
  15957. (HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR | HAL_ADC_STATE_REG_EOSMP),
  15958. HAL_ADC_STATE_REG_BUSY);
  15959. /* Set ADC error code to none */
  15960. ADC_CLEAR_ERRORCODE(hadc);
  15961. 8007094: 68fb ldr r3, [r7, #12]
  15962. 8007096: 2200 movs r2, #0
  15963. 8007098: 659a str r2, [r3, #88] @ 0x58
  15964. /* Set the DMA transfer complete callback */
  15965. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  15966. 800709a: 68fb ldr r3, [r7, #12]
  15967. 800709c: 6cdb ldr r3, [r3, #76] @ 0x4c
  15968. 800709e: 4a32 ldr r2, [pc, #200] @ (8007168 <HAL_ADCEx_MultiModeStart_DMA+0x1a8>)
  15969. 80070a0: 63da str r2, [r3, #60] @ 0x3c
  15970. /* Set the DMA half transfer complete callback */
  15971. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  15972. 80070a2: 68fb ldr r3, [r7, #12]
  15973. 80070a4: 6cdb ldr r3, [r3, #76] @ 0x4c
  15974. 80070a6: 4a31 ldr r2, [pc, #196] @ (800716c <HAL_ADCEx_MultiModeStart_DMA+0x1ac>)
  15975. 80070a8: 641a str r2, [r3, #64] @ 0x40
  15976. /* Set the DMA error callback */
  15977. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError ;
  15978. 80070aa: 68fb ldr r3, [r7, #12]
  15979. 80070ac: 6cdb ldr r3, [r3, #76] @ 0x4c
  15980. 80070ae: 4a30 ldr r2, [pc, #192] @ (8007170 <HAL_ADCEx_MultiModeStart_DMA+0x1b0>)
  15981. 80070b0: 64da str r2, [r3, #76] @ 0x4c
  15982. /* Manage ADC and DMA start: ADC overrun interruption, DMA start, ADC */
  15983. /* start (in case of SW start): */
  15984. /* Clear regular group conversion flag and overrun flag */
  15985. /* (To ensure of no unknown state from potential previous ADC operations) */
  15986. __HAL_ADC_CLEAR_FLAG(hadc, (ADC_FLAG_EOC | ADC_FLAG_EOS | ADC_FLAG_OVR));
  15987. 80070b2: 68fb ldr r3, [r7, #12]
  15988. 80070b4: 681b ldr r3, [r3, #0]
  15989. 80070b6: 221c movs r2, #28
  15990. 80070b8: 601a str r2, [r3, #0]
  15991. /* Process unlocked */
  15992. /* Unlock before starting ADC conversions: in case of potential */
  15993. /* interruption, to let the process to ADC IRQ Handler. */
  15994. __HAL_UNLOCK(hadc);
  15995. 80070ba: 68fb ldr r3, [r7, #12]
  15996. 80070bc: 2200 movs r2, #0
  15997. 80070be: f883 2050 strb.w r2, [r3, #80] @ 0x50
  15998. /* Enable ADC overrun interrupt */
  15999. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  16000. 80070c2: 68fb ldr r3, [r7, #12]
  16001. 80070c4: 681b ldr r3, [r3, #0]
  16002. 80070c6: 685a ldr r2, [r3, #4]
  16003. 80070c8: 68fb ldr r3, [r7, #12]
  16004. 80070ca: 681b ldr r3, [r3, #0]
  16005. 80070cc: f042 0210 orr.w r2, r2, #16
  16006. 80070d0: 605a str r2, [r3, #4]
  16007. /* Case of ADC slave using its own DMA channel: check whether handle selected
  16008. corresponds to ADC master or slave instance */
  16009. if (__LL_ADC_MULTI_INSTANCE_MASTER(hadc->Instance) != hadc->Instance)
  16010. 80070d2: 68fb ldr r3, [r7, #12]
  16011. 80070d4: 681b ldr r3, [r3, #0]
  16012. 80070d6: 4a21 ldr r2, [pc, #132] @ (800715c <HAL_ADCEx_MultiModeStart_DMA+0x19c>)
  16013. 80070d8: 4293 cmp r3, r2
  16014. 80070da: d002 beq.n 80070e2 <HAL_ADCEx_MultiModeStart_DMA+0x122>
  16015. 80070dc: 68fb ldr r3, [r7, #12]
  16016. 80070de: 681b ldr r3, [r3, #0]
  16017. 80070e0: e000 b.n 80070e4 <HAL_ADCEx_MultiModeStart_DMA+0x124>
  16018. 80070e2: 4b1f ldr r3, [pc, #124] @ (8007160 <HAL_ADCEx_MultiModeStart_DMA+0x1a0>)
  16019. 80070e4: 68fa ldr r2, [r7, #12]
  16020. 80070e6: 6812 ldr r2, [r2, #0]
  16021. 80070e8: 4293 cmp r3, r2
  16022. 80070ea: d00d beq.n 8007108 <HAL_ADCEx_MultiModeStart_DMA+0x148>
  16023. {
  16024. /* Case of ADC slave selected: Start the DMA channel. */
  16025. /* Note: Data transfer will start upon next call of this function using handle of ADC master */
  16026. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  16027. 80070ec: 68fb ldr r3, [r7, #12]
  16028. 80070ee: 6cd8 ldr r0, [r3, #76] @ 0x4c
  16029. 80070f0: 68fb ldr r3, [r7, #12]
  16030. 80070f2: 681b ldr r3, [r3, #0]
  16031. 80070f4: 3340 adds r3, #64 @ 0x40
  16032. 80070f6: 4619 mov r1, r3
  16033. 80070f8: 68ba ldr r2, [r7, #8]
  16034. 80070fa: 687b ldr r3, [r7, #4]
  16035. 80070fc: f001 fbb8 bl 8008870 <HAL_DMA_Start_IT>
  16036. 8007100: 4603 mov r3, r0
  16037. 8007102: f887 307f strb.w r3, [r7, #127] @ 0x7f
  16038. 8007106: e023 b.n 8007150 <HAL_ADCEx_MultiModeStart_DMA+0x190>
  16039. }
  16040. else
  16041. {
  16042. /* Pointer to the common control register */
  16043. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  16044. 8007108: 68fb ldr r3, [r7, #12]
  16045. 800710a: 681b ldr r3, [r3, #0]
  16046. 800710c: 4a14 ldr r2, [pc, #80] @ (8007160 <HAL_ADCEx_MultiModeStart_DMA+0x1a0>)
  16047. 800710e: 4293 cmp r3, r2
  16048. 8007110: d004 beq.n 800711c <HAL_ADCEx_MultiModeStart_DMA+0x15c>
  16049. 8007112: 68fb ldr r3, [r7, #12]
  16050. 8007114: 681b ldr r3, [r3, #0]
  16051. 8007116: 4a11 ldr r2, [pc, #68] @ (800715c <HAL_ADCEx_MultiModeStart_DMA+0x19c>)
  16052. 8007118: 4293 cmp r3, r2
  16053. 800711a: d101 bne.n 8007120 <HAL_ADCEx_MultiModeStart_DMA+0x160>
  16054. 800711c: 4b15 ldr r3, [pc, #84] @ (8007174 <HAL_ADCEx_MultiModeStart_DMA+0x1b4>)
  16055. 800711e: e000 b.n 8007122 <HAL_ADCEx_MultiModeStart_DMA+0x162>
  16056. 8007120: 4b15 ldr r3, [pc, #84] @ (8007178 <HAL_ADCEx_MultiModeStart_DMA+0x1b8>)
  16057. 8007122: 67bb str r3, [r7, #120] @ 0x78
  16058. /* Start the DMA channel */
  16059. tmp_hal_status = HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&tmpADC_Common->CDR, (uint32_t)pData, Length);
  16060. 8007124: 68fb ldr r3, [r7, #12]
  16061. 8007126: 6cd8 ldr r0, [r3, #76] @ 0x4c
  16062. 8007128: 6fbb ldr r3, [r7, #120] @ 0x78
  16063. 800712a: 330c adds r3, #12
  16064. 800712c: 4619 mov r1, r3
  16065. 800712e: 68ba ldr r2, [r7, #8]
  16066. 8007130: 687b ldr r3, [r7, #4]
  16067. 8007132: f001 fb9d bl 8008870 <HAL_DMA_Start_IT>
  16068. 8007136: 4603 mov r3, r0
  16069. 8007138: f887 307f strb.w r3, [r7, #127] @ 0x7f
  16070. /* Enable conversion of regular group. */
  16071. /* If software start has been selected, conversion starts immediately. */
  16072. /* If external trigger has been selected, conversion will start at next */
  16073. /* trigger event. */
  16074. /* Start ADC group regular conversion */
  16075. LL_ADC_REG_StartConversion(hadc->Instance);
  16076. 800713c: 68fb ldr r3, [r7, #12]
  16077. 800713e: 681b ldr r3, [r3, #0]
  16078. 8007140: 4618 mov r0, r3
  16079. 8007142: f7ff feb1 bl 8006ea8 <LL_ADC_REG_StartConversion>
  16080. 8007146: e003 b.n 8007150 <HAL_ADCEx_MultiModeStart_DMA+0x190>
  16081. }
  16082. }
  16083. else
  16084. {
  16085. /* Process unlocked */
  16086. __HAL_UNLOCK(hadc);
  16087. 8007148: 68fb ldr r3, [r7, #12]
  16088. 800714a: 2200 movs r2, #0
  16089. 800714c: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16090. }
  16091. /* Return function status */
  16092. return tmp_hal_status;
  16093. 8007150: f897 307f ldrb.w r3, [r7, #127] @ 0x7f
  16094. }
  16095. }
  16096. 8007154: 4618 mov r0, r3
  16097. 8007156: 3780 adds r7, #128 @ 0x80
  16098. 8007158: 46bd mov sp, r7
  16099. 800715a: bd80 pop {r7, pc}
  16100. 800715c: 40022100 .word 0x40022100
  16101. 8007160: 40022000 .word 0x40022000
  16102. 8007164: fffff0fe .word 0xfffff0fe
  16103. 8007168: 08006adb .word 0x08006adb
  16104. 800716c: 08006bb3 .word 0x08006bb3
  16105. 8007170: 08006bcf .word 0x08006bcf
  16106. 8007174: 40022300 .word 0x40022300
  16107. 8007178: 58026300 .word 0x58026300
  16108. 0800717c <HAL_ADCEx_MultiModeConfigChannel>:
  16109. * @param hadc Master ADC handle
  16110. * @param multimode Structure of ADC multimode configuration
  16111. * @retval HAL status
  16112. */
  16113. HAL_StatusTypeDef HAL_ADCEx_MultiModeConfigChannel(ADC_HandleTypeDef *hadc, ADC_MultiModeTypeDef *multimode)
  16114. {
  16115. 800717c: b590 push {r4, r7, lr}
  16116. 800717e: b09f sub sp, #124 @ 0x7c
  16117. 8007180: af00 add r7, sp, #0
  16118. 8007182: 6078 str r0, [r7, #4]
  16119. 8007184: 6039 str r1, [r7, #0]
  16120. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  16121. 8007186: 2300 movs r3, #0
  16122. 8007188: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16123. assert_param(IS_ADC_DUAL_DATA_MODE(multimode->DualModeData));
  16124. assert_param(IS_ADC_SAMPLING_DELAY(multimode->TwoSamplingDelay));
  16125. }
  16126. /* Process locked */
  16127. __HAL_LOCK(hadc);
  16128. 800718c: 687b ldr r3, [r7, #4]
  16129. 800718e: f893 3050 ldrb.w r3, [r3, #80] @ 0x50
  16130. 8007192: 2b01 cmp r3, #1
  16131. 8007194: d101 bne.n 800719a <HAL_ADCEx_MultiModeConfigChannel+0x1e>
  16132. 8007196: 2302 movs r3, #2
  16133. 8007198: e0be b.n 8007318 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16134. 800719a: 687b ldr r3, [r7, #4]
  16135. 800719c: 2201 movs r2, #1
  16136. 800719e: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16137. tmphadcSlave.State = HAL_ADC_STATE_RESET;
  16138. 80071a2: 2300 movs r3, #0
  16139. 80071a4: 65fb str r3, [r7, #92] @ 0x5c
  16140. tmphadcSlave.ErrorCode = HAL_ADC_ERROR_NONE;
  16141. 80071a6: 2300 movs r3, #0
  16142. 80071a8: 663b str r3, [r7, #96] @ 0x60
  16143. ADC_MULTI_SLAVE(hadc, &tmphadcSlave);
  16144. 80071aa: 687b ldr r3, [r7, #4]
  16145. 80071ac: 681b ldr r3, [r3, #0]
  16146. 80071ae: 4a5c ldr r2, [pc, #368] @ (8007320 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16147. 80071b0: 4293 cmp r3, r2
  16148. 80071b2: d102 bne.n 80071ba <HAL_ADCEx_MultiModeConfigChannel+0x3e>
  16149. 80071b4: 4b5b ldr r3, [pc, #364] @ (8007324 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16150. 80071b6: 60bb str r3, [r7, #8]
  16151. 80071b8: e001 b.n 80071be <HAL_ADCEx_MultiModeConfigChannel+0x42>
  16152. 80071ba: 2300 movs r3, #0
  16153. 80071bc: 60bb str r3, [r7, #8]
  16154. if (tmphadcSlave.Instance == NULL)
  16155. 80071be: 68bb ldr r3, [r7, #8]
  16156. 80071c0: 2b00 cmp r3, #0
  16157. 80071c2: d10b bne.n 80071dc <HAL_ADCEx_MultiModeConfigChannel+0x60>
  16158. {
  16159. /* Update ADC state machine to error */
  16160. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16161. 80071c4: 687b ldr r3, [r7, #4]
  16162. 80071c6: 6d5b ldr r3, [r3, #84] @ 0x54
  16163. 80071c8: f043 0220 orr.w r2, r3, #32
  16164. 80071cc: 687b ldr r3, [r7, #4]
  16165. 80071ce: 655a str r2, [r3, #84] @ 0x54
  16166. /* Process unlocked */
  16167. __HAL_UNLOCK(hadc);
  16168. 80071d0: 687b ldr r3, [r7, #4]
  16169. 80071d2: 2200 movs r2, #0
  16170. 80071d4: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16171. return HAL_ERROR;
  16172. 80071d8: 2301 movs r3, #1
  16173. 80071da: e09d b.n 8007318 <HAL_ADCEx_MultiModeConfigChannel+0x19c>
  16174. /* Parameters update conditioned to ADC state: */
  16175. /* Parameters that can be updated when ADC is disabled or enabled without */
  16176. /* conversion on going on regular group: */
  16177. /* - Multimode DATA Format configuration */
  16178. tmphadcSlave_conversion_on_going = LL_ADC_REG_IsConversionOngoing((&tmphadcSlave)->Instance);
  16179. 80071dc: 68bb ldr r3, [r7, #8]
  16180. 80071de: 4618 mov r0, r3
  16181. 80071e0: f7ff fe76 bl 8006ed0 <LL_ADC_REG_IsConversionOngoing>
  16182. 80071e4: 6738 str r0, [r7, #112] @ 0x70
  16183. if ((LL_ADC_REG_IsConversionOngoing(hadc->Instance) == 0UL)
  16184. 80071e6: 687b ldr r3, [r7, #4]
  16185. 80071e8: 681b ldr r3, [r3, #0]
  16186. 80071ea: 4618 mov r0, r3
  16187. 80071ec: f7ff fe70 bl 8006ed0 <LL_ADC_REG_IsConversionOngoing>
  16188. 80071f0: 4603 mov r3, r0
  16189. 80071f2: 2b00 cmp r3, #0
  16190. 80071f4: d17f bne.n 80072f6 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16191. && (tmphadcSlave_conversion_on_going == 0UL))
  16192. 80071f6: 6f3b ldr r3, [r7, #112] @ 0x70
  16193. 80071f8: 2b00 cmp r3, #0
  16194. 80071fa: d17c bne.n 80072f6 <HAL_ADCEx_MultiModeConfigChannel+0x17a>
  16195. {
  16196. /* Pointer to the common control register */
  16197. tmpADC_Common = __LL_ADC_COMMON_INSTANCE(hadc->Instance);
  16198. 80071fc: 687b ldr r3, [r7, #4]
  16199. 80071fe: 681b ldr r3, [r3, #0]
  16200. 8007200: 4a47 ldr r2, [pc, #284] @ (8007320 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16201. 8007202: 4293 cmp r3, r2
  16202. 8007204: d004 beq.n 8007210 <HAL_ADCEx_MultiModeConfigChannel+0x94>
  16203. 8007206: 687b ldr r3, [r7, #4]
  16204. 8007208: 681b ldr r3, [r3, #0]
  16205. 800720a: 4a46 ldr r2, [pc, #280] @ (8007324 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16206. 800720c: 4293 cmp r3, r2
  16207. 800720e: d101 bne.n 8007214 <HAL_ADCEx_MultiModeConfigChannel+0x98>
  16208. 8007210: 4b45 ldr r3, [pc, #276] @ (8007328 <HAL_ADCEx_MultiModeConfigChannel+0x1ac>)
  16209. 8007212: e000 b.n 8007216 <HAL_ADCEx_MultiModeConfigChannel+0x9a>
  16210. 8007214: 4b45 ldr r3, [pc, #276] @ (800732c <HAL_ADCEx_MultiModeConfigChannel+0x1b0>)
  16211. 8007216: 66fb str r3, [r7, #108] @ 0x6c
  16212. /* If multimode is selected, configure all multimode parameters. */
  16213. /* Otherwise, reset multimode parameters (can be used in case of */
  16214. /* transition from multimode to independent mode). */
  16215. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16216. 8007218: 683b ldr r3, [r7, #0]
  16217. 800721a: 681b ldr r3, [r3, #0]
  16218. 800721c: 2b00 cmp r3, #0
  16219. 800721e: d039 beq.n 8007294 <HAL_ADCEx_MultiModeConfigChannel+0x118>
  16220. {
  16221. MODIFY_REG(tmpADC_Common->CCR, ADC_CCR_DAMDF, multimode->DualModeData);
  16222. 8007220: 6efb ldr r3, [r7, #108] @ 0x6c
  16223. 8007222: 689b ldr r3, [r3, #8]
  16224. 8007224: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16225. 8007228: 683b ldr r3, [r7, #0]
  16226. 800722a: 685b ldr r3, [r3, #4]
  16227. 800722c: 431a orrs r2, r3
  16228. 800722e: 6efb ldr r3, [r7, #108] @ 0x6c
  16229. 8007230: 609a str r2, [r3, #8]
  16230. /* from 1 to 8 clock cycles for 12 bits */
  16231. /* from 1 to 6 clock cycles for 10 and 8 bits */
  16232. /* If a higher delay is selected, it will be clipped to maximum delay */
  16233. /* range */
  16234. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16235. 8007232: 687b ldr r3, [r7, #4]
  16236. 8007234: 681b ldr r3, [r3, #0]
  16237. 8007236: 4a3a ldr r2, [pc, #232] @ (8007320 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16238. 8007238: 4293 cmp r3, r2
  16239. 800723a: d004 beq.n 8007246 <HAL_ADCEx_MultiModeConfigChannel+0xca>
  16240. 800723c: 687b ldr r3, [r7, #4]
  16241. 800723e: 681b ldr r3, [r3, #0]
  16242. 8007240: 4a38 ldr r2, [pc, #224] @ (8007324 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16243. 8007242: 4293 cmp r3, r2
  16244. 8007244: d10e bne.n 8007264 <HAL_ADCEx_MultiModeConfigChannel+0xe8>
  16245. 8007246: 4836 ldr r0, [pc, #216] @ (8007320 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16246. 8007248: f7ff fde8 bl 8006e1c <LL_ADC_IsEnabled>
  16247. 800724c: 4604 mov r4, r0
  16248. 800724e: 4835 ldr r0, [pc, #212] @ (8007324 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16249. 8007250: f7ff fde4 bl 8006e1c <LL_ADC_IsEnabled>
  16250. 8007254: 4603 mov r3, r0
  16251. 8007256: 4323 orrs r3, r4
  16252. 8007258: 2b00 cmp r3, #0
  16253. 800725a: bf0c ite eq
  16254. 800725c: 2301 moveq r3, #1
  16255. 800725e: 2300 movne r3, #0
  16256. 8007260: b2db uxtb r3, r3
  16257. 8007262: e008 b.n 8007276 <HAL_ADCEx_MultiModeConfigChannel+0xfa>
  16258. 8007264: 4832 ldr r0, [pc, #200] @ (8007330 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16259. 8007266: f7ff fdd9 bl 8006e1c <LL_ADC_IsEnabled>
  16260. 800726a: 4603 mov r3, r0
  16261. 800726c: 2b00 cmp r3, #0
  16262. 800726e: bf0c ite eq
  16263. 8007270: 2301 moveq r3, #1
  16264. 8007272: 2300 movne r3, #0
  16265. 8007274: b2db uxtb r3, r3
  16266. 8007276: 2b00 cmp r3, #0
  16267. 8007278: d047 beq.n 800730a <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16268. {
  16269. MODIFY_REG(tmpADC_Common->CCR,
  16270. 800727a: 6efb ldr r3, [r7, #108] @ 0x6c
  16271. 800727c: 689a ldr r2, [r3, #8]
  16272. 800727e: 4b2d ldr r3, [pc, #180] @ (8007334 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16273. 8007280: 4013 ands r3, r2
  16274. 8007282: 683a ldr r2, [r7, #0]
  16275. 8007284: 6811 ldr r1, [r2, #0]
  16276. 8007286: 683a ldr r2, [r7, #0]
  16277. 8007288: 6892 ldr r2, [r2, #8]
  16278. 800728a: 430a orrs r2, r1
  16279. 800728c: 431a orrs r2, r3
  16280. 800728e: 6efb ldr r3, [r7, #108] @ 0x6c
  16281. 8007290: 609a str r2, [r3, #8]
  16282. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16283. 8007292: e03a b.n 800730a <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16284. );
  16285. }
  16286. }
  16287. else /* ADC_MODE_INDEPENDENT */
  16288. {
  16289. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DAMDF);
  16290. 8007294: 6efb ldr r3, [r7, #108] @ 0x6c
  16291. 8007296: 689b ldr r3, [r3, #8]
  16292. 8007298: f423 4240 bic.w r2, r3, #49152 @ 0xc000
  16293. 800729c: 6efb ldr r3, [r7, #108] @ 0x6c
  16294. 800729e: 609a str r2, [r3, #8]
  16295. /* Parameters that can be updated only when ADC is disabled: */
  16296. /* - Multimode mode selection */
  16297. /* - Multimode delay */
  16298. if (__LL_ADC_IS_ENABLED_ALL_COMMON_INSTANCE(__LL_ADC_COMMON_INSTANCE(hadc->Instance)) == 0UL)
  16299. 80072a0: 687b ldr r3, [r7, #4]
  16300. 80072a2: 681b ldr r3, [r3, #0]
  16301. 80072a4: 4a1e ldr r2, [pc, #120] @ (8007320 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16302. 80072a6: 4293 cmp r3, r2
  16303. 80072a8: d004 beq.n 80072b4 <HAL_ADCEx_MultiModeConfigChannel+0x138>
  16304. 80072aa: 687b ldr r3, [r7, #4]
  16305. 80072ac: 681b ldr r3, [r3, #0]
  16306. 80072ae: 4a1d ldr r2, [pc, #116] @ (8007324 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16307. 80072b0: 4293 cmp r3, r2
  16308. 80072b2: d10e bne.n 80072d2 <HAL_ADCEx_MultiModeConfigChannel+0x156>
  16309. 80072b4: 481a ldr r0, [pc, #104] @ (8007320 <HAL_ADCEx_MultiModeConfigChannel+0x1a4>)
  16310. 80072b6: f7ff fdb1 bl 8006e1c <LL_ADC_IsEnabled>
  16311. 80072ba: 4604 mov r4, r0
  16312. 80072bc: 4819 ldr r0, [pc, #100] @ (8007324 <HAL_ADCEx_MultiModeConfigChannel+0x1a8>)
  16313. 80072be: f7ff fdad bl 8006e1c <LL_ADC_IsEnabled>
  16314. 80072c2: 4603 mov r3, r0
  16315. 80072c4: 4323 orrs r3, r4
  16316. 80072c6: 2b00 cmp r3, #0
  16317. 80072c8: bf0c ite eq
  16318. 80072ca: 2301 moveq r3, #1
  16319. 80072cc: 2300 movne r3, #0
  16320. 80072ce: b2db uxtb r3, r3
  16321. 80072d0: e008 b.n 80072e4 <HAL_ADCEx_MultiModeConfigChannel+0x168>
  16322. 80072d2: 4817 ldr r0, [pc, #92] @ (8007330 <HAL_ADCEx_MultiModeConfigChannel+0x1b4>)
  16323. 80072d4: f7ff fda2 bl 8006e1c <LL_ADC_IsEnabled>
  16324. 80072d8: 4603 mov r3, r0
  16325. 80072da: 2b00 cmp r3, #0
  16326. 80072dc: bf0c ite eq
  16327. 80072de: 2301 moveq r3, #1
  16328. 80072e0: 2300 movne r3, #0
  16329. 80072e2: b2db uxtb r3, r3
  16330. 80072e4: 2b00 cmp r3, #0
  16331. 80072e6: d010 beq.n 800730a <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16332. {
  16333. CLEAR_BIT(tmpADC_Common->CCR, ADC_CCR_DUAL | ADC_CCR_DELAY);
  16334. 80072e8: 6efb ldr r3, [r7, #108] @ 0x6c
  16335. 80072ea: 689a ldr r2, [r3, #8]
  16336. 80072ec: 4b11 ldr r3, [pc, #68] @ (8007334 <HAL_ADCEx_MultiModeConfigChannel+0x1b8>)
  16337. 80072ee: 4013 ands r3, r2
  16338. 80072f0: 6efa ldr r2, [r7, #108] @ 0x6c
  16339. 80072f2: 6093 str r3, [r2, #8]
  16340. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16341. 80072f4: e009 b.n 800730a <HAL_ADCEx_MultiModeConfigChannel+0x18e>
  16342. /* If one of the ADC sharing the same common group is enabled, no update */
  16343. /* could be done on neither of the multimode structure parameters. */
  16344. else
  16345. {
  16346. /* Update ADC state machine to error */
  16347. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  16348. 80072f6: 687b ldr r3, [r7, #4]
  16349. 80072f8: 6d5b ldr r3, [r3, #84] @ 0x54
  16350. 80072fa: f043 0220 orr.w r2, r3, #32
  16351. 80072fe: 687b ldr r3, [r7, #4]
  16352. 8007300: 655a str r2, [r3, #84] @ 0x54
  16353. tmp_hal_status = HAL_ERROR;
  16354. 8007302: 2301 movs r3, #1
  16355. 8007304: f887 3077 strb.w r3, [r7, #119] @ 0x77
  16356. 8007308: e000 b.n 800730c <HAL_ADCEx_MultiModeConfigChannel+0x190>
  16357. if (multimode->Mode != ADC_MODE_INDEPENDENT)
  16358. 800730a: bf00 nop
  16359. }
  16360. /* Process unlocked */
  16361. __HAL_UNLOCK(hadc);
  16362. 800730c: 687b ldr r3, [r7, #4]
  16363. 800730e: 2200 movs r2, #0
  16364. 8007310: f883 2050 strb.w r2, [r3, #80] @ 0x50
  16365. /* Return function status */
  16366. return tmp_hal_status;
  16367. 8007314: f897 3077 ldrb.w r3, [r7, #119] @ 0x77
  16368. }
  16369. 8007318: 4618 mov r0, r3
  16370. 800731a: 377c adds r7, #124 @ 0x7c
  16371. 800731c: 46bd mov sp, r7
  16372. 800731e: bd90 pop {r4, r7, pc}
  16373. 8007320: 40022000 .word 0x40022000
  16374. 8007324: 40022100 .word 0x40022100
  16375. 8007328: 40022300 .word 0x40022300
  16376. 800732c: 58026300 .word 0x58026300
  16377. 8007330: 58026000 .word 0x58026000
  16378. 8007334: fffff0e0 .word 0xfffff0e0
  16379. 08007338 <HAL_COMP_Init>:
  16380. * To unlock the configuration, perform a system reset.
  16381. * @param hcomp COMP handle
  16382. * @retval HAL status
  16383. */
  16384. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  16385. {
  16386. 8007338: b580 push {r7, lr}
  16387. 800733a: b088 sub sp, #32
  16388. 800733c: af00 add r7, sp, #0
  16389. 800733e: 6078 str r0, [r7, #4]
  16390. uint32_t tmp_csr ;
  16391. uint32_t exti_line ;
  16392. uint32_t comp_voltage_scaler_initialized; /* Value "0" is comparator voltage scaler is not initialized */
  16393. __IO uint32_t wait_loop_index = 0UL;
  16394. 8007340: 2300 movs r3, #0
  16395. 8007342: 60fb str r3, [r7, #12]
  16396. HAL_StatusTypeDef status = HAL_OK;
  16397. 8007344: 2300 movs r3, #0
  16398. 8007346: 77fb strb r3, [r7, #31]
  16399. /* Check the COMP handle allocation and lock status */
  16400. if(hcomp == NULL)
  16401. 8007348: 687b ldr r3, [r7, #4]
  16402. 800734a: 2b00 cmp r3, #0
  16403. 800734c: d102 bne.n 8007354 <HAL_COMP_Init+0x1c>
  16404. {
  16405. status = HAL_ERROR;
  16406. 800734e: 2301 movs r3, #1
  16407. 8007350: 77fb strb r3, [r7, #31]
  16408. 8007352: e10e b.n 8007572 <HAL_COMP_Init+0x23a>
  16409. }
  16410. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16411. 8007354: 687b ldr r3, [r7, #4]
  16412. 8007356: 681b ldr r3, [r3, #0]
  16413. 8007358: 681b ldr r3, [r3, #0]
  16414. 800735a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16415. 800735e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16416. 8007362: d102 bne.n 800736a <HAL_COMP_Init+0x32>
  16417. {
  16418. status = HAL_ERROR;
  16419. 8007364: 2301 movs r3, #1
  16420. 8007366: 77fb strb r3, [r7, #31]
  16421. 8007368: e103 b.n 8007572 <HAL_COMP_Init+0x23a>
  16422. assert_param(IS_COMP_HYSTERESIS(hcomp->Init.Hysteresis));
  16423. assert_param(IS_COMP_BLANKINGSRCE(hcomp->Init.BlankingSrce));
  16424. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  16425. assert_param(IS_COMP_WINDOWMODE(hcomp->Init.WindowMode));
  16426. if(hcomp->State == HAL_COMP_STATE_RESET)
  16427. 800736a: 687b ldr r3, [r7, #4]
  16428. 800736c: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16429. 8007370: b2db uxtb r3, r3
  16430. 8007372: 2b00 cmp r3, #0
  16431. 8007374: d109 bne.n 800738a <HAL_COMP_Init+0x52>
  16432. {
  16433. /* Allocate lock resource and initialize it */
  16434. hcomp->Lock = HAL_UNLOCKED;
  16435. 8007376: 687b ldr r3, [r7, #4]
  16436. 8007378: 2200 movs r2, #0
  16437. 800737a: f883 2024 strb.w r2, [r3, #36] @ 0x24
  16438. /* Set COMP error code to none */
  16439. COMP_CLEAR_ERRORCODE(hcomp);
  16440. 800737e: 687b ldr r3, [r7, #4]
  16441. 8007380: 2200 movs r2, #0
  16442. 8007382: 629a str r2, [r3, #40] @ 0x28
  16443. /* Init the low level hardware */
  16444. hcomp->MspInitCallback(hcomp);
  16445. #else
  16446. /* Init the low level hardware */
  16447. HAL_COMP_MspInit(hcomp);
  16448. 8007384: 6878 ldr r0, [r7, #4]
  16449. 8007386: f7fc fc17 bl 8003bb8 <HAL_COMP_MspInit>
  16450. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  16451. }
  16452. /* Memorize voltage scaler state before initialization */
  16453. comp_voltage_scaler_initialized = READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN);
  16454. 800738a: 687b ldr r3, [r7, #4]
  16455. 800738c: 681b ldr r3, [r3, #0]
  16456. 800738e: 681b ldr r3, [r3, #0]
  16457. 8007390: f003 0304 and.w r3, r3, #4
  16458. 8007394: 61bb str r3, [r7, #24]
  16459. /* Set BLANKING bits according to hcomp->Init.BlankingSrce value */
  16460. /* Set HYST bits according to hcomp->Init.Hysteresis value */
  16461. /* Set POLARITY bit according to hcomp->Init.OutputPol value */
  16462. /* Set POWERMODE bits according to hcomp->Init.Mode value */
  16463. tmp_csr = (hcomp->Init.InvertingInput | \
  16464. 8007396: 687b ldr r3, [r7, #4]
  16465. 8007398: 691a ldr r2, [r3, #16]
  16466. hcomp->Init.NonInvertingInput | \
  16467. 800739a: 687b ldr r3, [r7, #4]
  16468. 800739c: 68db ldr r3, [r3, #12]
  16469. tmp_csr = (hcomp->Init.InvertingInput | \
  16470. 800739e: 431a orrs r2, r3
  16471. hcomp->Init.BlankingSrce | \
  16472. 80073a0: 687b ldr r3, [r7, #4]
  16473. 80073a2: 69db ldr r3, [r3, #28]
  16474. hcomp->Init.NonInvertingInput | \
  16475. 80073a4: 431a orrs r2, r3
  16476. hcomp->Init.Hysteresis | \
  16477. 80073a6: 687b ldr r3, [r7, #4]
  16478. 80073a8: 695b ldr r3, [r3, #20]
  16479. hcomp->Init.BlankingSrce | \
  16480. 80073aa: 431a orrs r2, r3
  16481. hcomp->Init.OutputPol | \
  16482. 80073ac: 687b ldr r3, [r7, #4]
  16483. 80073ae: 699b ldr r3, [r3, #24]
  16484. hcomp->Init.Hysteresis | \
  16485. 80073b0: 431a orrs r2, r3
  16486. hcomp->Init.Mode );
  16487. 80073b2: 687b ldr r3, [r7, #4]
  16488. 80073b4: 689b ldr r3, [r3, #8]
  16489. tmp_csr = (hcomp->Init.InvertingInput | \
  16490. 80073b6: 4313 orrs r3, r2
  16491. 80073b8: 617b str r3, [r7, #20]
  16492. COMP_CFGRx_INP2SEL | COMP_CFGRx_WINMODE | COMP_CFGRx_POLARITY | COMP_CFGRx_HYST |
  16493. COMP_CFGRx_BLANKING | COMP_CFGRx_BRGEN | COMP_CFGRx_SCALEN,
  16494. tmp_csr
  16495. );
  16496. #else
  16497. MODIFY_REG(hcomp->Instance->CFGR,
  16498. 80073ba: 687b ldr r3, [r7, #4]
  16499. 80073bc: 681b ldr r3, [r3, #0]
  16500. 80073be: 681a ldr r2, [r3, #0]
  16501. 80073c0: 4b6e ldr r3, [pc, #440] @ (800757c <HAL_COMP_Init+0x244>)
  16502. 80073c2: 4013 ands r3, r2
  16503. 80073c4: 687a ldr r2, [r7, #4]
  16504. 80073c6: 6812 ldr r2, [r2, #0]
  16505. 80073c8: 6979 ldr r1, [r7, #20]
  16506. 80073ca: 430b orrs r3, r1
  16507. 80073cc: 6013 str r3, [r2, #0]
  16508. #endif
  16509. /* Set window mode */
  16510. /* Note: Window mode bit is located into 1 out of the 2 pairs of COMP */
  16511. /* instances. Therefore, this function can update another COMP */
  16512. /* instance that the one currently selected. */
  16513. if(hcomp->Init.WindowMode == COMP_WINDOWMODE_COMP1_INPUT_PLUS_COMMON)
  16514. 80073ce: 687b ldr r3, [r7, #4]
  16515. 80073d0: 685b ldr r3, [r3, #4]
  16516. 80073d2: 2b10 cmp r3, #16
  16517. 80073d4: d108 bne.n 80073e8 <HAL_COMP_Init+0xb0>
  16518. {
  16519. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16520. 80073d6: 687b ldr r3, [r7, #4]
  16521. 80073d8: 681b ldr r3, [r3, #0]
  16522. 80073da: 681a ldr r2, [r3, #0]
  16523. 80073dc: 687b ldr r3, [r7, #4]
  16524. 80073de: 681b ldr r3, [r3, #0]
  16525. 80073e0: f042 0210 orr.w r2, r2, #16
  16526. 80073e4: 601a str r2, [r3, #0]
  16527. 80073e6: e007 b.n 80073f8 <HAL_COMP_Init+0xc0>
  16528. }
  16529. else
  16530. {
  16531. CLEAR_BIT(hcomp->Instance->CFGR, COMP_CFGRx_WINMODE);
  16532. 80073e8: 687b ldr r3, [r7, #4]
  16533. 80073ea: 681b ldr r3, [r3, #0]
  16534. 80073ec: 681a ldr r2, [r3, #0]
  16535. 80073ee: 687b ldr r3, [r7, #4]
  16536. 80073f0: 681b ldr r3, [r3, #0]
  16537. 80073f2: f022 0210 bic.w r2, r2, #16
  16538. 80073f6: 601a str r2, [r3, #0]
  16539. }
  16540. /* Delay for COMP scaler bridge voltage stabilization */
  16541. /* Apply the delay if voltage scaler bridge is enabled for the first time */
  16542. if ((READ_BIT(hcomp->Instance->CFGR, COMP_CFGRx_SCALEN) != 0UL) &&
  16543. 80073f8: 687b ldr r3, [r7, #4]
  16544. 80073fa: 681b ldr r3, [r3, #0]
  16545. 80073fc: 681b ldr r3, [r3, #0]
  16546. 80073fe: f003 0304 and.w r3, r3, #4
  16547. 8007402: 2b00 cmp r3, #0
  16548. 8007404: d016 beq.n 8007434 <HAL_COMP_Init+0xfc>
  16549. 8007406: 69bb ldr r3, [r7, #24]
  16550. 8007408: 2b00 cmp r3, #0
  16551. 800740a: d013 beq.n 8007434 <HAL_COMP_Init+0xfc>
  16552. {
  16553. /* Wait loop initialization and execution */
  16554. /* Note: Variable divided by 2 to compensate partially */
  16555. /* CPU processing cycles.*/
  16556. wait_loop_index = ((COMP_DELAY_VOLTAGE_SCALER_STAB_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  16557. 800740c: 4b5c ldr r3, [pc, #368] @ (8007580 <HAL_COMP_Init+0x248>)
  16558. 800740e: 681b ldr r3, [r3, #0]
  16559. 8007410: 099b lsrs r3, r3, #6
  16560. 8007412: 4a5c ldr r2, [pc, #368] @ (8007584 <HAL_COMP_Init+0x24c>)
  16561. 8007414: fba2 2303 umull r2, r3, r2, r3
  16562. 8007418: 099b lsrs r3, r3, #6
  16563. 800741a: 1c5a adds r2, r3, #1
  16564. 800741c: 4613 mov r3, r2
  16565. 800741e: 009b lsls r3, r3, #2
  16566. 8007420: 4413 add r3, r2
  16567. 8007422: 009b lsls r3, r3, #2
  16568. 8007424: 60fb str r3, [r7, #12]
  16569. while(wait_loop_index != 0UL)
  16570. 8007426: e002 b.n 800742e <HAL_COMP_Init+0xf6>
  16571. {
  16572. wait_loop_index --;
  16573. 8007428: 68fb ldr r3, [r7, #12]
  16574. 800742a: 3b01 subs r3, #1
  16575. 800742c: 60fb str r3, [r7, #12]
  16576. while(wait_loop_index != 0UL)
  16577. 800742e: 68fb ldr r3, [r7, #12]
  16578. 8007430: 2b00 cmp r3, #0
  16579. 8007432: d1f9 bne.n 8007428 <HAL_COMP_Init+0xf0>
  16580. }
  16581. }
  16582. /* Get the EXTI line corresponding to the selected COMP instance */
  16583. exti_line = COMP_GET_EXTI_LINE(hcomp->Instance);
  16584. 8007434: 687b ldr r3, [r7, #4]
  16585. 8007436: 681b ldr r3, [r3, #0]
  16586. 8007438: 4a53 ldr r2, [pc, #332] @ (8007588 <HAL_COMP_Init+0x250>)
  16587. 800743a: 4293 cmp r3, r2
  16588. 800743c: d102 bne.n 8007444 <HAL_COMP_Init+0x10c>
  16589. 800743e: f44f 1380 mov.w r3, #1048576 @ 0x100000
  16590. 8007442: e001 b.n 8007448 <HAL_COMP_Init+0x110>
  16591. 8007444: f44f 1300 mov.w r3, #2097152 @ 0x200000
  16592. 8007448: 613b str r3, [r7, #16]
  16593. /* Manage EXTI settings */
  16594. if((hcomp->Init.TriggerMode & (COMP_EXTI_IT | COMP_EXTI_EVENT)) != 0UL)
  16595. 800744a: 687b ldr r3, [r7, #4]
  16596. 800744c: 6a1b ldr r3, [r3, #32]
  16597. 800744e: f003 0303 and.w r3, r3, #3
  16598. 8007452: 2b00 cmp r3, #0
  16599. 8007454: d06d beq.n 8007532 <HAL_COMP_Init+0x1fa>
  16600. {
  16601. /* Configure EXTI rising edge */
  16602. if((hcomp->Init.TriggerMode & COMP_EXTI_RISING) != 0UL)
  16603. 8007456: 687b ldr r3, [r7, #4]
  16604. 8007458: 6a1b ldr r3, [r3, #32]
  16605. 800745a: f003 0310 and.w r3, r3, #16
  16606. 800745e: 2b00 cmp r3, #0
  16607. 8007460: d008 beq.n 8007474 <HAL_COMP_Init+0x13c>
  16608. {
  16609. SET_BIT(EXTI->RTSR1, exti_line);
  16610. 8007462: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16611. 8007466: 681a ldr r2, [r3, #0]
  16612. 8007468: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16613. 800746c: 693b ldr r3, [r7, #16]
  16614. 800746e: 4313 orrs r3, r2
  16615. 8007470: 600b str r3, [r1, #0]
  16616. 8007472: e008 b.n 8007486 <HAL_COMP_Init+0x14e>
  16617. }
  16618. else
  16619. {
  16620. CLEAR_BIT(EXTI->RTSR1, exti_line);
  16621. 8007474: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16622. 8007478: 681a ldr r2, [r3, #0]
  16623. 800747a: 693b ldr r3, [r7, #16]
  16624. 800747c: 43db mvns r3, r3
  16625. 800747e: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16626. 8007482: 4013 ands r3, r2
  16627. 8007484: 600b str r3, [r1, #0]
  16628. }
  16629. /* Configure EXTI falling edge */
  16630. if((hcomp->Init.TriggerMode & COMP_EXTI_FALLING) != 0UL)
  16631. 8007486: 687b ldr r3, [r7, #4]
  16632. 8007488: 6a1b ldr r3, [r3, #32]
  16633. 800748a: f003 0320 and.w r3, r3, #32
  16634. 800748e: 2b00 cmp r3, #0
  16635. 8007490: d008 beq.n 80074a4 <HAL_COMP_Init+0x16c>
  16636. {
  16637. SET_BIT(EXTI->FTSR1, exti_line);
  16638. 8007492: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16639. 8007496: 685a ldr r2, [r3, #4]
  16640. 8007498: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16641. 800749c: 693b ldr r3, [r7, #16]
  16642. 800749e: 4313 orrs r3, r2
  16643. 80074a0: 604b str r3, [r1, #4]
  16644. 80074a2: e008 b.n 80074b6 <HAL_COMP_Init+0x17e>
  16645. }
  16646. else
  16647. {
  16648. CLEAR_BIT(EXTI->FTSR1, exti_line);
  16649. 80074a4: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16650. 80074a8: 685a ldr r2, [r3, #4]
  16651. 80074aa: 693b ldr r3, [r7, #16]
  16652. 80074ac: 43db mvns r3, r3
  16653. 80074ae: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16654. 80074b2: 4013 ands r3, r2
  16655. 80074b4: 604b str r3, [r1, #4]
  16656. }
  16657. #if !defined (CORE_CM4)
  16658. /* Clear COMP EXTI pending bit (if any) */
  16659. WRITE_REG(EXTI->PR1, exti_line);
  16660. 80074b6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  16661. 80074ba: 693b ldr r3, [r7, #16]
  16662. 80074bc: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  16663. /* Configure EXTI event mode */
  16664. if((hcomp->Init.TriggerMode & COMP_EXTI_EVENT) != 0UL)
  16665. 80074c0: 687b ldr r3, [r7, #4]
  16666. 80074c2: 6a1b ldr r3, [r3, #32]
  16667. 80074c4: f003 0302 and.w r3, r3, #2
  16668. 80074c8: 2b00 cmp r3, #0
  16669. 80074ca: d00a beq.n 80074e2 <HAL_COMP_Init+0x1aa>
  16670. {
  16671. SET_BIT(EXTI->EMR1, exti_line);
  16672. 80074cc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16673. 80074d0: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16674. 80074d4: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16675. 80074d8: 693b ldr r3, [r7, #16]
  16676. 80074da: 4313 orrs r3, r2
  16677. 80074dc: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16678. 80074e0: e00a b.n 80074f8 <HAL_COMP_Init+0x1c0>
  16679. }
  16680. else
  16681. {
  16682. CLEAR_BIT(EXTI->EMR1, exti_line);
  16683. 80074e2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16684. 80074e6: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16685. 80074ea: 693b ldr r3, [r7, #16]
  16686. 80074ec: 43db mvns r3, r3
  16687. 80074ee: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16688. 80074f2: 4013 ands r3, r2
  16689. 80074f4: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16690. }
  16691. /* Configure EXTI interrupt mode */
  16692. if((hcomp->Init.TriggerMode & COMP_EXTI_IT) != 0UL)
  16693. 80074f8: 687b ldr r3, [r7, #4]
  16694. 80074fa: 6a1b ldr r3, [r3, #32]
  16695. 80074fc: f003 0301 and.w r3, r3, #1
  16696. 8007500: 2b00 cmp r3, #0
  16697. 8007502: d00a beq.n 800751a <HAL_COMP_Init+0x1e2>
  16698. {
  16699. SET_BIT(EXTI->IMR1, exti_line);
  16700. 8007504: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16701. 8007508: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16702. 800750c: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16703. 8007510: 693b ldr r3, [r7, #16]
  16704. 8007512: 4313 orrs r3, r2
  16705. 8007514: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16706. 8007518: e021 b.n 800755e <HAL_COMP_Init+0x226>
  16707. }
  16708. else
  16709. {
  16710. CLEAR_BIT(EXTI->IMR1, exti_line);
  16711. 800751a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16712. 800751e: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16713. 8007522: 693b ldr r3, [r7, #16]
  16714. 8007524: 43db mvns r3, r3
  16715. 8007526: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16716. 800752a: 4013 ands r3, r2
  16717. 800752c: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16718. 8007530: e015 b.n 800755e <HAL_COMP_Init+0x226>
  16719. }
  16720. }
  16721. else
  16722. {
  16723. /* Disable EXTI event mode */
  16724. CLEAR_BIT(EXTI->EMR1, exti_line);
  16725. 8007532: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16726. 8007536: f8d3 2084 ldr.w r2, [r3, #132] @ 0x84
  16727. 800753a: 693b ldr r3, [r7, #16]
  16728. 800753c: 43db mvns r3, r3
  16729. 800753e: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16730. 8007542: 4013 ands r3, r2
  16731. 8007544: f8c1 3084 str.w r3, [r1, #132] @ 0x84
  16732. /* Disable EXTI interrupt mode */
  16733. CLEAR_BIT(EXTI->IMR1, exti_line);
  16734. 8007548: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  16735. 800754c: f8d3 2080 ldr.w r2, [r3, #128] @ 0x80
  16736. 8007550: 693b ldr r3, [r7, #16]
  16737. 8007552: 43db mvns r3, r3
  16738. 8007554: f04f 41b0 mov.w r1, #1476395008 @ 0x58000000
  16739. 8007558: 4013 ands r3, r2
  16740. 800755a: f8c1 3080 str.w r3, [r1, #128] @ 0x80
  16741. }
  16742. #endif
  16743. /* Set HAL COMP handle state */
  16744. /* Note: Transition from state reset to state ready, */
  16745. /* otherwise (coming from state ready or busy) no state update. */
  16746. if (hcomp->State == HAL_COMP_STATE_RESET)
  16747. 800755e: 687b ldr r3, [r7, #4]
  16748. 8007560: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16749. 8007564: b2db uxtb r3, r3
  16750. 8007566: 2b00 cmp r3, #0
  16751. 8007568: d103 bne.n 8007572 <HAL_COMP_Init+0x23a>
  16752. {
  16753. hcomp->State = HAL_COMP_STATE_READY;
  16754. 800756a: 687b ldr r3, [r7, #4]
  16755. 800756c: 2201 movs r2, #1
  16756. 800756e: f883 2025 strb.w r2, [r3, #37] @ 0x25
  16757. }
  16758. }
  16759. return status;
  16760. 8007572: 7ffb ldrb r3, [r7, #31]
  16761. }
  16762. 8007574: 4618 mov r0, r3
  16763. 8007576: 3720 adds r7, #32
  16764. 8007578: 46bd mov sp, r7
  16765. 800757a: bd80 pop {r7, pc}
  16766. 800757c: f0e8cce1 .word 0xf0e8cce1
  16767. 8007580: 24000034 .word 0x24000034
  16768. 8007584: 053e2d63 .word 0x053e2d63
  16769. 8007588: 5800380c .word 0x5800380c
  16770. 0800758c <HAL_COMP_Start>:
  16771. * @brief Start the comparator.
  16772. * @param hcomp COMP handle
  16773. * @retval HAL status
  16774. */
  16775. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  16776. {
  16777. 800758c: b480 push {r7}
  16778. 800758e: b085 sub sp, #20
  16779. 8007590: af00 add r7, sp, #0
  16780. 8007592: 6078 str r0, [r7, #4]
  16781. __IO uint32_t wait_loop_index = 0UL;
  16782. 8007594: 2300 movs r3, #0
  16783. 8007596: 60bb str r3, [r7, #8]
  16784. HAL_StatusTypeDef status = HAL_OK;
  16785. 8007598: 2300 movs r3, #0
  16786. 800759a: 73fb strb r3, [r7, #15]
  16787. /* Check the COMP handle allocation and lock status */
  16788. if(hcomp == NULL)
  16789. 800759c: 687b ldr r3, [r7, #4]
  16790. 800759e: 2b00 cmp r3, #0
  16791. 80075a0: d102 bne.n 80075a8 <HAL_COMP_Start+0x1c>
  16792. {
  16793. status = HAL_ERROR;
  16794. 80075a2: 2301 movs r3, #1
  16795. 80075a4: 73fb strb r3, [r7, #15]
  16796. 80075a6: e030 b.n 800760a <HAL_COMP_Start+0x7e>
  16797. }
  16798. else if(__HAL_COMP_IS_LOCKED(hcomp))
  16799. 80075a8: 687b ldr r3, [r7, #4]
  16800. 80075aa: 681b ldr r3, [r3, #0]
  16801. 80075ac: 681b ldr r3, [r3, #0]
  16802. 80075ae: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
  16803. 80075b2: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
  16804. 80075b6: d102 bne.n 80075be <HAL_COMP_Start+0x32>
  16805. {
  16806. status = HAL_ERROR;
  16807. 80075b8: 2301 movs r3, #1
  16808. 80075ba: 73fb strb r3, [r7, #15]
  16809. 80075bc: e025 b.n 800760a <HAL_COMP_Start+0x7e>
  16810. else
  16811. {
  16812. /* Check the parameter */
  16813. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  16814. if(hcomp->State == HAL_COMP_STATE_READY)
  16815. 80075be: 687b ldr r3, [r7, #4]
  16816. 80075c0: f893 3025 ldrb.w r3, [r3, #37] @ 0x25
  16817. 80075c4: b2db uxtb r3, r3
  16818. 80075c6: 2b01 cmp r3, #1
  16819. 80075c8: d11d bne.n 8007606 <HAL_COMP_Start+0x7a>
  16820. {
  16821. /* Enable the selected comparator */
  16822. SET_BIT(hcomp->Instance->CFGR, COMP_CFGRx_EN);
  16823. 80075ca: 687b ldr r3, [r7, #4]
  16824. 80075cc: 681b ldr r3, [r3, #0]
  16825. 80075ce: 681a ldr r2, [r3, #0]
  16826. 80075d0: 687b ldr r3, [r7, #4]
  16827. 80075d2: 681b ldr r3, [r3, #0]
  16828. 80075d4: f042 0201 orr.w r2, r2, #1
  16829. 80075d8: 601a str r2, [r3, #0]
  16830. /* Set HAL COMP handle state */
  16831. hcomp->State = HAL_COMP_STATE_BUSY;
  16832. 80075da: 687b ldr r3, [r7, #4]
  16833. 80075dc: 2202 movs r2, #2
  16834. 80075de: f883 2025 strb.w r2, [r3, #37] @ 0x25
  16835. /* Delay for COMP startup time */
  16836. /* Wait loop initialization and execution */
  16837. /* Note: Variable divided by 2 to compensate partially */
  16838. /* CPU processing cycles. */
  16839. wait_loop_index = ((COMP_DELAY_STARTUP_US / 10UL) * ((SystemCoreClock / (100000UL * 2UL)) + 1UL));
  16840. 80075e2: 4b0d ldr r3, [pc, #52] @ (8007618 <HAL_COMP_Start+0x8c>)
  16841. 80075e4: 681b ldr r3, [r3, #0]
  16842. 80075e6: 099b lsrs r3, r3, #6
  16843. 80075e8: 4a0c ldr r2, [pc, #48] @ (800761c <HAL_COMP_Start+0x90>)
  16844. 80075ea: fba2 2303 umull r2, r3, r2, r3
  16845. 80075ee: 099b lsrs r3, r3, #6
  16846. 80075f0: 3301 adds r3, #1
  16847. 80075f2: 00db lsls r3, r3, #3
  16848. 80075f4: 60bb str r3, [r7, #8]
  16849. while(wait_loop_index != 0UL)
  16850. 80075f6: e002 b.n 80075fe <HAL_COMP_Start+0x72>
  16851. {
  16852. wait_loop_index--;
  16853. 80075f8: 68bb ldr r3, [r7, #8]
  16854. 80075fa: 3b01 subs r3, #1
  16855. 80075fc: 60bb str r3, [r7, #8]
  16856. while(wait_loop_index != 0UL)
  16857. 80075fe: 68bb ldr r3, [r7, #8]
  16858. 8007600: 2b00 cmp r3, #0
  16859. 8007602: d1f9 bne.n 80075f8 <HAL_COMP_Start+0x6c>
  16860. 8007604: e001 b.n 800760a <HAL_COMP_Start+0x7e>
  16861. }
  16862. }
  16863. else
  16864. {
  16865. status = HAL_ERROR;
  16866. 8007606: 2301 movs r3, #1
  16867. 8007608: 73fb strb r3, [r7, #15]
  16868. }
  16869. }
  16870. return status;
  16871. 800760a: 7bfb ldrb r3, [r7, #15]
  16872. }
  16873. 800760c: 4618 mov r0, r3
  16874. 800760e: 3714 adds r7, #20
  16875. 8007610: 46bd mov sp, r7
  16876. 8007612: f85d 7b04 ldr.w r7, [sp], #4
  16877. 8007616: 4770 bx lr
  16878. 8007618: 24000034 .word 0x24000034
  16879. 800761c: 053e2d63 .word 0x053e2d63
  16880. 08007620 <HAL_COMP_GetOutputLevel>:
  16881. * @arg @ref COMP_OUTPUT_LEVEL_LOW
  16882. * @arg @ref COMP_OUTPUT_LEVEL_HIGH
  16883. *
  16884. */
  16885. uint32_t HAL_COMP_GetOutputLevel(COMP_HandleTypeDef *hcomp)
  16886. {
  16887. 8007620: b480 push {r7}
  16888. 8007622: b083 sub sp, #12
  16889. 8007624: af00 add r7, sp, #0
  16890. 8007626: 6078 str r0, [r7, #4]
  16891. /* Check the parameter */
  16892. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  16893. if (hcomp->Instance == COMP1)
  16894. 8007628: 687b ldr r3, [r7, #4]
  16895. 800762a: 681b ldr r3, [r3, #0]
  16896. 800762c: 4a09 ldr r2, [pc, #36] @ (8007654 <HAL_COMP_GetOutputLevel+0x34>)
  16897. 800762e: 4293 cmp r3, r2
  16898. 8007630: d104 bne.n 800763c <HAL_COMP_GetOutputLevel+0x1c>
  16899. {
  16900. return (uint32_t)(READ_BIT(COMP12->SR, COMP_SR_C1VAL));
  16901. 8007632: 4b09 ldr r3, [pc, #36] @ (8007658 <HAL_COMP_GetOutputLevel+0x38>)
  16902. 8007634: 681b ldr r3, [r3, #0]
  16903. 8007636: f003 0301 and.w r3, r3, #1
  16904. 800763a: e004 b.n 8007646 <HAL_COMP_GetOutputLevel+0x26>
  16905. }
  16906. else
  16907. {
  16908. return (uint32_t)((READ_BIT(COMP12->SR, COMP_SR_C2VAL))>> 1UL);
  16909. 800763c: 4b06 ldr r3, [pc, #24] @ (8007658 <HAL_COMP_GetOutputLevel+0x38>)
  16910. 800763e: 681b ldr r3, [r3, #0]
  16911. 8007640: 085b lsrs r3, r3, #1
  16912. 8007642: f003 0301 and.w r3, r3, #1
  16913. }
  16914. }
  16915. 8007646: 4618 mov r0, r3
  16916. 8007648: 370c adds r7, #12
  16917. 800764a: 46bd mov sp, r7
  16918. 800764c: f85d 7b04 ldr.w r7, [sp], #4
  16919. 8007650: 4770 bx lr
  16920. 8007652: bf00 nop
  16921. 8007654: 5800380c .word 0x5800380c
  16922. 8007658: 58003800 .word 0x58003800
  16923. 0800765c <__NVIC_SetPriorityGrouping>:
  16924. {
  16925. 800765c: b480 push {r7}
  16926. 800765e: b085 sub sp, #20
  16927. 8007660: af00 add r7, sp, #0
  16928. 8007662: 6078 str r0, [r7, #4]
  16929. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  16930. 8007664: 687b ldr r3, [r7, #4]
  16931. 8007666: f003 0307 and.w r3, r3, #7
  16932. 800766a: 60fb str r3, [r7, #12]
  16933. reg_value = SCB->AIRCR; /* read old register configuration */
  16934. 800766c: 4b0b ldr r3, [pc, #44] @ (800769c <__NVIC_SetPriorityGrouping+0x40>)
  16935. 800766e: 68db ldr r3, [r3, #12]
  16936. 8007670: 60bb str r3, [r7, #8]
  16937. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  16938. 8007672: 68ba ldr r2, [r7, #8]
  16939. 8007674: f64f 03ff movw r3, #63743 @ 0xf8ff
  16940. 8007678: 4013 ands r3, r2
  16941. 800767a: 60bb str r3, [r7, #8]
  16942. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  16943. 800767c: 68fb ldr r3, [r7, #12]
  16944. 800767e: 021a lsls r2, r3, #8
  16945. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  16946. 8007680: 68bb ldr r3, [r7, #8]
  16947. 8007682: 431a orrs r2, r3
  16948. reg_value = (reg_value |
  16949. 8007684: 4b06 ldr r3, [pc, #24] @ (80076a0 <__NVIC_SetPriorityGrouping+0x44>)
  16950. 8007686: 4313 orrs r3, r2
  16951. 8007688: 60bb str r3, [r7, #8]
  16952. SCB->AIRCR = reg_value;
  16953. 800768a: 4a04 ldr r2, [pc, #16] @ (800769c <__NVIC_SetPriorityGrouping+0x40>)
  16954. 800768c: 68bb ldr r3, [r7, #8]
  16955. 800768e: 60d3 str r3, [r2, #12]
  16956. }
  16957. 8007690: bf00 nop
  16958. 8007692: 3714 adds r7, #20
  16959. 8007694: 46bd mov sp, r7
  16960. 8007696: f85d 7b04 ldr.w r7, [sp], #4
  16961. 800769a: 4770 bx lr
  16962. 800769c: e000ed00 .word 0xe000ed00
  16963. 80076a0: 05fa0000 .word 0x05fa0000
  16964. 080076a4 <__NVIC_GetPriorityGrouping>:
  16965. {
  16966. 80076a4: b480 push {r7}
  16967. 80076a6: af00 add r7, sp, #0
  16968. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  16969. 80076a8: 4b04 ldr r3, [pc, #16] @ (80076bc <__NVIC_GetPriorityGrouping+0x18>)
  16970. 80076aa: 68db ldr r3, [r3, #12]
  16971. 80076ac: 0a1b lsrs r3, r3, #8
  16972. 80076ae: f003 0307 and.w r3, r3, #7
  16973. }
  16974. 80076b2: 4618 mov r0, r3
  16975. 80076b4: 46bd mov sp, r7
  16976. 80076b6: f85d 7b04 ldr.w r7, [sp], #4
  16977. 80076ba: 4770 bx lr
  16978. 80076bc: e000ed00 .word 0xe000ed00
  16979. 080076c0 <__NVIC_EnableIRQ>:
  16980. {
  16981. 80076c0: b480 push {r7}
  16982. 80076c2: b083 sub sp, #12
  16983. 80076c4: af00 add r7, sp, #0
  16984. 80076c6: 4603 mov r3, r0
  16985. 80076c8: 80fb strh r3, [r7, #6]
  16986. if ((int32_t)(IRQn) >= 0)
  16987. 80076ca: f9b7 3006 ldrsh.w r3, [r7, #6]
  16988. 80076ce: 2b00 cmp r3, #0
  16989. 80076d0: db0b blt.n 80076ea <__NVIC_EnableIRQ+0x2a>
  16990. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  16991. 80076d2: 88fb ldrh r3, [r7, #6]
  16992. 80076d4: f003 021f and.w r2, r3, #31
  16993. 80076d8: 4907 ldr r1, [pc, #28] @ (80076f8 <__NVIC_EnableIRQ+0x38>)
  16994. 80076da: f9b7 3006 ldrsh.w r3, [r7, #6]
  16995. 80076de: 095b lsrs r3, r3, #5
  16996. 80076e0: 2001 movs r0, #1
  16997. 80076e2: fa00 f202 lsl.w r2, r0, r2
  16998. 80076e6: f841 2023 str.w r2, [r1, r3, lsl #2]
  16999. }
  17000. 80076ea: bf00 nop
  17001. 80076ec: 370c adds r7, #12
  17002. 80076ee: 46bd mov sp, r7
  17003. 80076f0: f85d 7b04 ldr.w r7, [sp], #4
  17004. 80076f4: 4770 bx lr
  17005. 80076f6: bf00 nop
  17006. 80076f8: e000e100 .word 0xe000e100
  17007. 080076fc <__NVIC_SetPriority>:
  17008. {
  17009. 80076fc: b480 push {r7}
  17010. 80076fe: b083 sub sp, #12
  17011. 8007700: af00 add r7, sp, #0
  17012. 8007702: 4603 mov r3, r0
  17013. 8007704: 6039 str r1, [r7, #0]
  17014. 8007706: 80fb strh r3, [r7, #6]
  17015. if ((int32_t)(IRQn) >= 0)
  17016. 8007708: f9b7 3006 ldrsh.w r3, [r7, #6]
  17017. 800770c: 2b00 cmp r3, #0
  17018. 800770e: db0a blt.n 8007726 <__NVIC_SetPriority+0x2a>
  17019. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17020. 8007710: 683b ldr r3, [r7, #0]
  17021. 8007712: b2da uxtb r2, r3
  17022. 8007714: 490c ldr r1, [pc, #48] @ (8007748 <__NVIC_SetPriority+0x4c>)
  17023. 8007716: f9b7 3006 ldrsh.w r3, [r7, #6]
  17024. 800771a: 0112 lsls r2, r2, #4
  17025. 800771c: b2d2 uxtb r2, r2
  17026. 800771e: 440b add r3, r1
  17027. 8007720: f883 2300 strb.w r2, [r3, #768] @ 0x300
  17028. }
  17029. 8007724: e00a b.n 800773c <__NVIC_SetPriority+0x40>
  17030. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  17031. 8007726: 683b ldr r3, [r7, #0]
  17032. 8007728: b2da uxtb r2, r3
  17033. 800772a: 4908 ldr r1, [pc, #32] @ (800774c <__NVIC_SetPriority+0x50>)
  17034. 800772c: 88fb ldrh r3, [r7, #6]
  17035. 800772e: f003 030f and.w r3, r3, #15
  17036. 8007732: 3b04 subs r3, #4
  17037. 8007734: 0112 lsls r2, r2, #4
  17038. 8007736: b2d2 uxtb r2, r2
  17039. 8007738: 440b add r3, r1
  17040. 800773a: 761a strb r2, [r3, #24]
  17041. }
  17042. 800773c: bf00 nop
  17043. 800773e: 370c adds r7, #12
  17044. 8007740: 46bd mov sp, r7
  17045. 8007742: f85d 7b04 ldr.w r7, [sp], #4
  17046. 8007746: 4770 bx lr
  17047. 8007748: e000e100 .word 0xe000e100
  17048. 800774c: e000ed00 .word 0xe000ed00
  17049. 08007750 <NVIC_EncodePriority>:
  17050. {
  17051. 8007750: b480 push {r7}
  17052. 8007752: b089 sub sp, #36 @ 0x24
  17053. 8007754: af00 add r7, sp, #0
  17054. 8007756: 60f8 str r0, [r7, #12]
  17055. 8007758: 60b9 str r1, [r7, #8]
  17056. 800775a: 607a str r2, [r7, #4]
  17057. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  17058. 800775c: 68fb ldr r3, [r7, #12]
  17059. 800775e: f003 0307 and.w r3, r3, #7
  17060. 8007762: 61fb str r3, [r7, #28]
  17061. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  17062. 8007764: 69fb ldr r3, [r7, #28]
  17063. 8007766: f1c3 0307 rsb r3, r3, #7
  17064. 800776a: 2b04 cmp r3, #4
  17065. 800776c: bf28 it cs
  17066. 800776e: 2304 movcs r3, #4
  17067. 8007770: 61bb str r3, [r7, #24]
  17068. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  17069. 8007772: 69fb ldr r3, [r7, #28]
  17070. 8007774: 3304 adds r3, #4
  17071. 8007776: 2b06 cmp r3, #6
  17072. 8007778: d902 bls.n 8007780 <NVIC_EncodePriority+0x30>
  17073. 800777a: 69fb ldr r3, [r7, #28]
  17074. 800777c: 3b03 subs r3, #3
  17075. 800777e: e000 b.n 8007782 <NVIC_EncodePriority+0x32>
  17076. 8007780: 2300 movs r3, #0
  17077. 8007782: 617b str r3, [r7, #20]
  17078. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17079. 8007784: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17080. 8007788: 69bb ldr r3, [r7, #24]
  17081. 800778a: fa02 f303 lsl.w r3, r2, r3
  17082. 800778e: 43da mvns r2, r3
  17083. 8007790: 68bb ldr r3, [r7, #8]
  17084. 8007792: 401a ands r2, r3
  17085. 8007794: 697b ldr r3, [r7, #20]
  17086. 8007796: 409a lsls r2, r3
  17087. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  17088. 8007798: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
  17089. 800779c: 697b ldr r3, [r7, #20]
  17090. 800779e: fa01 f303 lsl.w r3, r1, r3
  17091. 80077a2: 43d9 mvns r1, r3
  17092. 80077a4: 687b ldr r3, [r7, #4]
  17093. 80077a6: 400b ands r3, r1
  17094. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  17095. 80077a8: 4313 orrs r3, r2
  17096. }
  17097. 80077aa: 4618 mov r0, r3
  17098. 80077ac: 3724 adds r7, #36 @ 0x24
  17099. 80077ae: 46bd mov sp, r7
  17100. 80077b0: f85d 7b04 ldr.w r7, [sp], #4
  17101. 80077b4: 4770 bx lr
  17102. 080077b6 <HAL_NVIC_SetPriorityGrouping>:
  17103. * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
  17104. * The pending IRQ priority will be managed only by the subpriority.
  17105. * @retval None
  17106. */
  17107. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  17108. {
  17109. 80077b6: b580 push {r7, lr}
  17110. 80077b8: b082 sub sp, #8
  17111. 80077ba: af00 add r7, sp, #0
  17112. 80077bc: 6078 str r0, [r7, #4]
  17113. /* Check the parameters */
  17114. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  17115. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  17116. NVIC_SetPriorityGrouping(PriorityGroup);
  17117. 80077be: 6878 ldr r0, [r7, #4]
  17118. 80077c0: f7ff ff4c bl 800765c <__NVIC_SetPriorityGrouping>
  17119. }
  17120. 80077c4: bf00 nop
  17121. 80077c6: 3708 adds r7, #8
  17122. 80077c8: 46bd mov sp, r7
  17123. 80077ca: bd80 pop {r7, pc}
  17124. 080077cc <HAL_NVIC_SetPriority>:
  17125. * This parameter can be a value between 0 and 15
  17126. * A lower priority value indicates a higher priority.
  17127. * @retval None
  17128. */
  17129. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  17130. {
  17131. 80077cc: b580 push {r7, lr}
  17132. 80077ce: b086 sub sp, #24
  17133. 80077d0: af00 add r7, sp, #0
  17134. 80077d2: 4603 mov r3, r0
  17135. 80077d4: 60b9 str r1, [r7, #8]
  17136. 80077d6: 607a str r2, [r7, #4]
  17137. 80077d8: 81fb strh r3, [r7, #14]
  17138. /* Check the parameters */
  17139. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  17140. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  17141. prioritygroup = NVIC_GetPriorityGrouping();
  17142. 80077da: f7ff ff63 bl 80076a4 <__NVIC_GetPriorityGrouping>
  17143. 80077de: 6178 str r0, [r7, #20]
  17144. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  17145. 80077e0: 687a ldr r2, [r7, #4]
  17146. 80077e2: 68b9 ldr r1, [r7, #8]
  17147. 80077e4: 6978 ldr r0, [r7, #20]
  17148. 80077e6: f7ff ffb3 bl 8007750 <NVIC_EncodePriority>
  17149. 80077ea: 4602 mov r2, r0
  17150. 80077ec: f9b7 300e ldrsh.w r3, [r7, #14]
  17151. 80077f0: 4611 mov r1, r2
  17152. 80077f2: 4618 mov r0, r3
  17153. 80077f4: f7ff ff82 bl 80076fc <__NVIC_SetPriority>
  17154. }
  17155. 80077f8: bf00 nop
  17156. 80077fa: 3718 adds r7, #24
  17157. 80077fc: 46bd mov sp, r7
  17158. 80077fe: bd80 pop {r7, pc}
  17159. 08007800 <HAL_NVIC_EnableIRQ>:
  17160. * This parameter can be an enumerator of IRQn_Type enumeration
  17161. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32h7xxxx.h))
  17162. * @retval None
  17163. */
  17164. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  17165. {
  17166. 8007800: b580 push {r7, lr}
  17167. 8007802: b082 sub sp, #8
  17168. 8007804: af00 add r7, sp, #0
  17169. 8007806: 4603 mov r3, r0
  17170. 8007808: 80fb strh r3, [r7, #6]
  17171. /* Check the parameters */
  17172. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  17173. /* Enable interrupt */
  17174. NVIC_EnableIRQ(IRQn);
  17175. 800780a: f9b7 3006 ldrsh.w r3, [r7, #6]
  17176. 800780e: 4618 mov r0, r3
  17177. 8007810: f7ff ff56 bl 80076c0 <__NVIC_EnableIRQ>
  17178. }
  17179. 8007814: bf00 nop
  17180. 8007816: 3708 adds r7, #8
  17181. 8007818: 46bd mov sp, r7
  17182. 800781a: bd80 pop {r7, pc}
  17183. 0800781c <HAL_MPU_Disable>:
  17184. /**
  17185. * @brief Disables the MPU
  17186. * @retval None
  17187. */
  17188. void HAL_MPU_Disable(void)
  17189. {
  17190. 800781c: b480 push {r7}
  17191. 800781e: af00 add r7, sp, #0
  17192. __ASM volatile ("dmb 0xF":::"memory");
  17193. 8007820: f3bf 8f5f dmb sy
  17194. }
  17195. 8007824: bf00 nop
  17196. /* Make sure outstanding transfers are done */
  17197. __DMB();
  17198. /* Disable fault exceptions */
  17199. SCB->SHCSR &= ~SCB_SHCSR_MEMFAULTENA_Msk;
  17200. 8007826: 4b07 ldr r3, [pc, #28] @ (8007844 <HAL_MPU_Disable+0x28>)
  17201. 8007828: 6a5b ldr r3, [r3, #36] @ 0x24
  17202. 800782a: 4a06 ldr r2, [pc, #24] @ (8007844 <HAL_MPU_Disable+0x28>)
  17203. 800782c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  17204. 8007830: 6253 str r3, [r2, #36] @ 0x24
  17205. /* Disable the MPU and clear the control register*/
  17206. MPU->CTRL = 0;
  17207. 8007832: 4b05 ldr r3, [pc, #20] @ (8007848 <HAL_MPU_Disable+0x2c>)
  17208. 8007834: 2200 movs r2, #0
  17209. 8007836: 605a str r2, [r3, #4]
  17210. }
  17211. 8007838: bf00 nop
  17212. 800783a: 46bd mov sp, r7
  17213. 800783c: f85d 7b04 ldr.w r7, [sp], #4
  17214. 8007840: 4770 bx lr
  17215. 8007842: bf00 nop
  17216. 8007844: e000ed00 .word 0xe000ed00
  17217. 8007848: e000ed90 .word 0xe000ed90
  17218. 0800784c <HAL_MPU_Enable>:
  17219. * @arg MPU_PRIVILEGED_DEFAULT
  17220. * @arg MPU_HFNMI_PRIVDEF
  17221. * @retval None
  17222. */
  17223. void HAL_MPU_Enable(uint32_t MPU_Control)
  17224. {
  17225. 800784c: b480 push {r7}
  17226. 800784e: b083 sub sp, #12
  17227. 8007850: af00 add r7, sp, #0
  17228. 8007852: 6078 str r0, [r7, #4]
  17229. /* Enable the MPU */
  17230. MPU->CTRL = MPU_Control | MPU_CTRL_ENABLE_Msk;
  17231. 8007854: 4a0b ldr r2, [pc, #44] @ (8007884 <HAL_MPU_Enable+0x38>)
  17232. 8007856: 687b ldr r3, [r7, #4]
  17233. 8007858: f043 0301 orr.w r3, r3, #1
  17234. 800785c: 6053 str r3, [r2, #4]
  17235. /* Enable fault exceptions */
  17236. SCB->SHCSR |= SCB_SHCSR_MEMFAULTENA_Msk;
  17237. 800785e: 4b0a ldr r3, [pc, #40] @ (8007888 <HAL_MPU_Enable+0x3c>)
  17238. 8007860: 6a5b ldr r3, [r3, #36] @ 0x24
  17239. 8007862: 4a09 ldr r2, [pc, #36] @ (8007888 <HAL_MPU_Enable+0x3c>)
  17240. 8007864: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  17241. 8007868: 6253 str r3, [r2, #36] @ 0x24
  17242. __ASM volatile ("dsb 0xF":::"memory");
  17243. 800786a: f3bf 8f4f dsb sy
  17244. }
  17245. 800786e: bf00 nop
  17246. __ASM volatile ("isb 0xF":::"memory");
  17247. 8007870: f3bf 8f6f isb sy
  17248. }
  17249. 8007874: bf00 nop
  17250. /* Ensure MPU setting take effects */
  17251. __DSB();
  17252. __ISB();
  17253. }
  17254. 8007876: bf00 nop
  17255. 8007878: 370c adds r7, #12
  17256. 800787a: 46bd mov sp, r7
  17257. 800787c: f85d 7b04 ldr.w r7, [sp], #4
  17258. 8007880: 4770 bx lr
  17259. 8007882: bf00 nop
  17260. 8007884: e000ed90 .word 0xe000ed90
  17261. 8007888: e000ed00 .word 0xe000ed00
  17262. 0800788c <HAL_MPU_ConfigRegion>:
  17263. * @param MPU_Init Pointer to a MPU_Region_InitTypeDef structure that contains
  17264. * the initialization and configuration information.
  17265. * @retval None
  17266. */
  17267. void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init)
  17268. {
  17269. 800788c: b480 push {r7}
  17270. 800788e: b083 sub sp, #12
  17271. 8007890: af00 add r7, sp, #0
  17272. 8007892: 6078 str r0, [r7, #4]
  17273. assert_param(IS_MPU_ACCESS_BUFFERABLE(MPU_Init->IsBufferable));
  17274. assert_param(IS_MPU_SUB_REGION_DISABLE(MPU_Init->SubRegionDisable));
  17275. assert_param(IS_MPU_REGION_SIZE(MPU_Init->Size));
  17276. /* Set the Region number */
  17277. MPU->RNR = MPU_Init->Number;
  17278. 8007894: 687b ldr r3, [r7, #4]
  17279. 8007896: 785a ldrb r2, [r3, #1]
  17280. 8007898: 4b1b ldr r3, [pc, #108] @ (8007908 <HAL_MPU_ConfigRegion+0x7c>)
  17281. 800789a: 609a str r2, [r3, #8]
  17282. /* Disable the Region */
  17283. CLEAR_BIT(MPU->RASR, MPU_RASR_ENABLE_Msk);
  17284. 800789c: 4b1a ldr r3, [pc, #104] @ (8007908 <HAL_MPU_ConfigRegion+0x7c>)
  17285. 800789e: 691b ldr r3, [r3, #16]
  17286. 80078a0: 4a19 ldr r2, [pc, #100] @ (8007908 <HAL_MPU_ConfigRegion+0x7c>)
  17287. 80078a2: f023 0301 bic.w r3, r3, #1
  17288. 80078a6: 6113 str r3, [r2, #16]
  17289. /* Apply configuration */
  17290. MPU->RBAR = MPU_Init->BaseAddress;
  17291. 80078a8: 4a17 ldr r2, [pc, #92] @ (8007908 <HAL_MPU_ConfigRegion+0x7c>)
  17292. 80078aa: 687b ldr r3, [r7, #4]
  17293. 80078ac: 685b ldr r3, [r3, #4]
  17294. 80078ae: 60d3 str r3, [r2, #12]
  17295. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17296. 80078b0: 687b ldr r3, [r7, #4]
  17297. 80078b2: 7b1b ldrb r3, [r3, #12]
  17298. 80078b4: 071a lsls r2, r3, #28
  17299. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17300. 80078b6: 687b ldr r3, [r7, #4]
  17301. 80078b8: 7adb ldrb r3, [r3, #11]
  17302. 80078ba: 061b lsls r3, r3, #24
  17303. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17304. 80078bc: 431a orrs r2, r3
  17305. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17306. 80078be: 687b ldr r3, [r7, #4]
  17307. 80078c0: 7a9b ldrb r3, [r3, #10]
  17308. 80078c2: 04db lsls r3, r3, #19
  17309. ((uint32_t)MPU_Init->AccessPermission << MPU_RASR_AP_Pos) |
  17310. 80078c4: 431a orrs r2, r3
  17311. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17312. 80078c6: 687b ldr r3, [r7, #4]
  17313. 80078c8: 7b5b ldrb r3, [r3, #13]
  17314. 80078ca: 049b lsls r3, r3, #18
  17315. ((uint32_t)MPU_Init->TypeExtField << MPU_RASR_TEX_Pos) |
  17316. 80078cc: 431a orrs r2, r3
  17317. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17318. 80078ce: 687b ldr r3, [r7, #4]
  17319. 80078d0: 7b9b ldrb r3, [r3, #14]
  17320. 80078d2: 045b lsls r3, r3, #17
  17321. ((uint32_t)MPU_Init->IsShareable << MPU_RASR_S_Pos) |
  17322. 80078d4: 431a orrs r2, r3
  17323. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17324. 80078d6: 687b ldr r3, [r7, #4]
  17325. 80078d8: 7bdb ldrb r3, [r3, #15]
  17326. 80078da: 041b lsls r3, r3, #16
  17327. ((uint32_t)MPU_Init->IsCacheable << MPU_RASR_C_Pos) |
  17328. 80078dc: 431a orrs r2, r3
  17329. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17330. 80078de: 687b ldr r3, [r7, #4]
  17331. 80078e0: 7a5b ldrb r3, [r3, #9]
  17332. 80078e2: 021b lsls r3, r3, #8
  17333. ((uint32_t)MPU_Init->IsBufferable << MPU_RASR_B_Pos) |
  17334. 80078e4: 431a orrs r2, r3
  17335. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17336. 80078e6: 687b ldr r3, [r7, #4]
  17337. 80078e8: 7a1b ldrb r3, [r3, #8]
  17338. 80078ea: 005b lsls r3, r3, #1
  17339. ((uint32_t)MPU_Init->SubRegionDisable << MPU_RASR_SRD_Pos) |
  17340. 80078ec: 4313 orrs r3, r2
  17341. ((uint32_t)MPU_Init->Enable << MPU_RASR_ENABLE_Pos);
  17342. 80078ee: 687a ldr r2, [r7, #4]
  17343. 80078f0: 7812 ldrb r2, [r2, #0]
  17344. 80078f2: 4611 mov r1, r2
  17345. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17346. 80078f4: 4a04 ldr r2, [pc, #16] @ (8007908 <HAL_MPU_ConfigRegion+0x7c>)
  17347. ((uint32_t)MPU_Init->Size << MPU_RASR_SIZE_Pos) |
  17348. 80078f6: 430b orrs r3, r1
  17349. MPU->RASR = ((uint32_t)MPU_Init->DisableExec << MPU_RASR_XN_Pos) |
  17350. 80078f8: 6113 str r3, [r2, #16]
  17351. }
  17352. 80078fa: bf00 nop
  17353. 80078fc: 370c adds r7, #12
  17354. 80078fe: 46bd mov sp, r7
  17355. 8007900: f85d 7b04 ldr.w r7, [sp], #4
  17356. 8007904: 4770 bx lr
  17357. 8007906: bf00 nop
  17358. 8007908: e000ed90 .word 0xe000ed90
  17359. 0800790c <HAL_CRC_Init>:
  17360. * parameters in the CRC_InitTypeDef and create the associated handle.
  17361. * @param hcrc CRC handle
  17362. * @retval HAL status
  17363. */
  17364. HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
  17365. {
  17366. 800790c: b580 push {r7, lr}
  17367. 800790e: b082 sub sp, #8
  17368. 8007910: af00 add r7, sp, #0
  17369. 8007912: 6078 str r0, [r7, #4]
  17370. /* Check the CRC handle allocation */
  17371. if (hcrc == NULL)
  17372. 8007914: 687b ldr r3, [r7, #4]
  17373. 8007916: 2b00 cmp r3, #0
  17374. 8007918: d101 bne.n 800791e <HAL_CRC_Init+0x12>
  17375. {
  17376. return HAL_ERROR;
  17377. 800791a: 2301 movs r3, #1
  17378. 800791c: e054 b.n 80079c8 <HAL_CRC_Init+0xbc>
  17379. }
  17380. /* Check the parameters */
  17381. assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
  17382. if (hcrc->State == HAL_CRC_STATE_RESET)
  17383. 800791e: 687b ldr r3, [r7, #4]
  17384. 8007920: 7f5b ldrb r3, [r3, #29]
  17385. 8007922: b2db uxtb r3, r3
  17386. 8007924: 2b00 cmp r3, #0
  17387. 8007926: d105 bne.n 8007934 <HAL_CRC_Init+0x28>
  17388. {
  17389. /* Allocate lock resource and initialize it */
  17390. hcrc->Lock = HAL_UNLOCKED;
  17391. 8007928: 687b ldr r3, [r7, #4]
  17392. 800792a: 2200 movs r2, #0
  17393. 800792c: 771a strb r2, [r3, #28]
  17394. /* Init the low level hardware */
  17395. HAL_CRC_MspInit(hcrc);
  17396. 800792e: 6878 ldr r0, [r7, #4]
  17397. 8007930: f7fc f988 bl 8003c44 <HAL_CRC_MspInit>
  17398. }
  17399. hcrc->State = HAL_CRC_STATE_BUSY;
  17400. 8007934: 687b ldr r3, [r7, #4]
  17401. 8007936: 2202 movs r2, #2
  17402. 8007938: 775a strb r2, [r3, #29]
  17403. /* check whether or not non-default generating polynomial has been
  17404. * picked up by user */
  17405. assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse));
  17406. if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE)
  17407. 800793a: 687b ldr r3, [r7, #4]
  17408. 800793c: 791b ldrb r3, [r3, #4]
  17409. 800793e: 2b00 cmp r3, #0
  17410. 8007940: d10c bne.n 800795c <HAL_CRC_Init+0x50>
  17411. {
  17412. /* initialize peripheral with default generating polynomial */
  17413. WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY);
  17414. 8007942: 687b ldr r3, [r7, #4]
  17415. 8007944: 681b ldr r3, [r3, #0]
  17416. 8007946: 4a22 ldr r2, [pc, #136] @ (80079d0 <HAL_CRC_Init+0xc4>)
  17417. 8007948: 615a str r2, [r3, #20]
  17418. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B);
  17419. 800794a: 687b ldr r3, [r7, #4]
  17420. 800794c: 681b ldr r3, [r3, #0]
  17421. 800794e: 689a ldr r2, [r3, #8]
  17422. 8007950: 687b ldr r3, [r7, #4]
  17423. 8007952: 681b ldr r3, [r3, #0]
  17424. 8007954: f022 0218 bic.w r2, r2, #24
  17425. 8007958: 609a str r2, [r3, #8]
  17426. 800795a: e00c b.n 8007976 <HAL_CRC_Init+0x6a>
  17427. }
  17428. else
  17429. {
  17430. /* initialize CRC peripheral with generating polynomial defined by user */
  17431. if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK)
  17432. 800795c: 687b ldr r3, [r7, #4]
  17433. 800795e: 6899 ldr r1, [r3, #8]
  17434. 8007960: 687b ldr r3, [r7, #4]
  17435. 8007962: 68db ldr r3, [r3, #12]
  17436. 8007964: 461a mov r2, r3
  17437. 8007966: 6878 ldr r0, [r7, #4]
  17438. 8007968: f000 f948 bl 8007bfc <HAL_CRCEx_Polynomial_Set>
  17439. 800796c: 4603 mov r3, r0
  17440. 800796e: 2b00 cmp r3, #0
  17441. 8007970: d001 beq.n 8007976 <HAL_CRC_Init+0x6a>
  17442. {
  17443. return HAL_ERROR;
  17444. 8007972: 2301 movs r3, #1
  17445. 8007974: e028 b.n 80079c8 <HAL_CRC_Init+0xbc>
  17446. }
  17447. /* check whether or not non-default CRC initial value has been
  17448. * picked up by user */
  17449. assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse));
  17450. if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE)
  17451. 8007976: 687b ldr r3, [r7, #4]
  17452. 8007978: 795b ldrb r3, [r3, #5]
  17453. 800797a: 2b00 cmp r3, #0
  17454. 800797c: d105 bne.n 800798a <HAL_CRC_Init+0x7e>
  17455. {
  17456. WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE);
  17457. 800797e: 687b ldr r3, [r7, #4]
  17458. 8007980: 681b ldr r3, [r3, #0]
  17459. 8007982: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  17460. 8007986: 611a str r2, [r3, #16]
  17461. 8007988: e004 b.n 8007994 <HAL_CRC_Init+0x88>
  17462. }
  17463. else
  17464. {
  17465. WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue);
  17466. 800798a: 687b ldr r3, [r7, #4]
  17467. 800798c: 681b ldr r3, [r3, #0]
  17468. 800798e: 687a ldr r2, [r7, #4]
  17469. 8007990: 6912 ldr r2, [r2, #16]
  17470. 8007992: 611a str r2, [r3, #16]
  17471. }
  17472. /* set input data inversion mode */
  17473. assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode));
  17474. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode);
  17475. 8007994: 687b ldr r3, [r7, #4]
  17476. 8007996: 681b ldr r3, [r3, #0]
  17477. 8007998: 689b ldr r3, [r3, #8]
  17478. 800799a: f023 0160 bic.w r1, r3, #96 @ 0x60
  17479. 800799e: 687b ldr r3, [r7, #4]
  17480. 80079a0: 695a ldr r2, [r3, #20]
  17481. 80079a2: 687b ldr r3, [r7, #4]
  17482. 80079a4: 681b ldr r3, [r3, #0]
  17483. 80079a6: 430a orrs r2, r1
  17484. 80079a8: 609a str r2, [r3, #8]
  17485. /* set output data inversion mode */
  17486. assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode));
  17487. MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode);
  17488. 80079aa: 687b ldr r3, [r7, #4]
  17489. 80079ac: 681b ldr r3, [r3, #0]
  17490. 80079ae: 689b ldr r3, [r3, #8]
  17491. 80079b0: f023 0180 bic.w r1, r3, #128 @ 0x80
  17492. 80079b4: 687b ldr r3, [r7, #4]
  17493. 80079b6: 699a ldr r2, [r3, #24]
  17494. 80079b8: 687b ldr r3, [r7, #4]
  17495. 80079ba: 681b ldr r3, [r3, #0]
  17496. 80079bc: 430a orrs r2, r1
  17497. 80079be: 609a str r2, [r3, #8]
  17498. /* makes sure the input data format (bytes, halfwords or words stream)
  17499. * is properly specified by user */
  17500. assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat));
  17501. /* Change CRC peripheral state */
  17502. hcrc->State = HAL_CRC_STATE_READY;
  17503. 80079c0: 687b ldr r3, [r7, #4]
  17504. 80079c2: 2201 movs r2, #1
  17505. 80079c4: 775a strb r2, [r3, #29]
  17506. /* Return function status */
  17507. return HAL_OK;
  17508. 80079c6: 2300 movs r3, #0
  17509. }
  17510. 80079c8: 4618 mov r0, r3
  17511. 80079ca: 3708 adds r7, #8
  17512. 80079cc: 46bd mov sp, r7
  17513. 80079ce: bd80 pop {r7, pc}
  17514. 80079d0: 04c11db7 .word 0x04c11db7
  17515. 080079d4 <HAL_CRC_Calculate>:
  17516. * and the API will internally adjust its input data processing based on the
  17517. * handle field hcrc->InputDataFormat.
  17518. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17519. */
  17520. uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t BufferLength)
  17521. {
  17522. 80079d4: b580 push {r7, lr}
  17523. 80079d6: b086 sub sp, #24
  17524. 80079d8: af00 add r7, sp, #0
  17525. 80079da: 60f8 str r0, [r7, #12]
  17526. 80079dc: 60b9 str r1, [r7, #8]
  17527. 80079de: 607a str r2, [r7, #4]
  17528. uint32_t index; /* CRC input data buffer index */
  17529. uint32_t temp = 0U; /* CRC output (read from hcrc->Instance->DR register) */
  17530. 80079e0: 2300 movs r3, #0
  17531. 80079e2: 613b str r3, [r7, #16]
  17532. /* Change CRC peripheral state */
  17533. hcrc->State = HAL_CRC_STATE_BUSY;
  17534. 80079e4: 68fb ldr r3, [r7, #12]
  17535. 80079e6: 2202 movs r2, #2
  17536. 80079e8: 775a strb r2, [r3, #29]
  17537. /* Reset CRC Calculation Unit (hcrc->Instance->INIT is
  17538. * written in hcrc->Instance->DR) */
  17539. __HAL_CRC_DR_RESET(hcrc);
  17540. 80079ea: 68fb ldr r3, [r7, #12]
  17541. 80079ec: 681b ldr r3, [r3, #0]
  17542. 80079ee: 689a ldr r2, [r3, #8]
  17543. 80079f0: 68fb ldr r3, [r7, #12]
  17544. 80079f2: 681b ldr r3, [r3, #0]
  17545. 80079f4: f042 0201 orr.w r2, r2, #1
  17546. 80079f8: 609a str r2, [r3, #8]
  17547. switch (hcrc->InputDataFormat)
  17548. 80079fa: 68fb ldr r3, [r7, #12]
  17549. 80079fc: 6a1b ldr r3, [r3, #32]
  17550. 80079fe: 2b03 cmp r3, #3
  17551. 8007a00: d006 beq.n 8007a10 <HAL_CRC_Calculate+0x3c>
  17552. 8007a02: 2b03 cmp r3, #3
  17553. 8007a04: d829 bhi.n 8007a5a <HAL_CRC_Calculate+0x86>
  17554. 8007a06: 2b01 cmp r3, #1
  17555. 8007a08: d019 beq.n 8007a3e <HAL_CRC_Calculate+0x6a>
  17556. 8007a0a: 2b02 cmp r3, #2
  17557. 8007a0c: d01e beq.n 8007a4c <HAL_CRC_Calculate+0x78>
  17558. /* Specific 16-bit input data handling */
  17559. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  17560. break;
  17561. default:
  17562. break;
  17563. 8007a0e: e024 b.n 8007a5a <HAL_CRC_Calculate+0x86>
  17564. for (index = 0U; index < BufferLength; index++)
  17565. 8007a10: 2300 movs r3, #0
  17566. 8007a12: 617b str r3, [r7, #20]
  17567. 8007a14: e00a b.n 8007a2c <HAL_CRC_Calculate+0x58>
  17568. hcrc->Instance->DR = pBuffer[index];
  17569. 8007a16: 697b ldr r3, [r7, #20]
  17570. 8007a18: 009b lsls r3, r3, #2
  17571. 8007a1a: 68ba ldr r2, [r7, #8]
  17572. 8007a1c: 441a add r2, r3
  17573. 8007a1e: 68fb ldr r3, [r7, #12]
  17574. 8007a20: 681b ldr r3, [r3, #0]
  17575. 8007a22: 6812 ldr r2, [r2, #0]
  17576. 8007a24: 601a str r2, [r3, #0]
  17577. for (index = 0U; index < BufferLength; index++)
  17578. 8007a26: 697b ldr r3, [r7, #20]
  17579. 8007a28: 3301 adds r3, #1
  17580. 8007a2a: 617b str r3, [r7, #20]
  17581. 8007a2c: 697a ldr r2, [r7, #20]
  17582. 8007a2e: 687b ldr r3, [r7, #4]
  17583. 8007a30: 429a cmp r2, r3
  17584. 8007a32: d3f0 bcc.n 8007a16 <HAL_CRC_Calculate+0x42>
  17585. temp = hcrc->Instance->DR;
  17586. 8007a34: 68fb ldr r3, [r7, #12]
  17587. 8007a36: 681b ldr r3, [r3, #0]
  17588. 8007a38: 681b ldr r3, [r3, #0]
  17589. 8007a3a: 613b str r3, [r7, #16]
  17590. break;
  17591. 8007a3c: e00e b.n 8007a5c <HAL_CRC_Calculate+0x88>
  17592. temp = CRC_Handle_8(hcrc, (uint8_t *)pBuffer, BufferLength);
  17593. 8007a3e: 687a ldr r2, [r7, #4]
  17594. 8007a40: 68b9 ldr r1, [r7, #8]
  17595. 8007a42: 68f8 ldr r0, [r7, #12]
  17596. 8007a44: f000 f812 bl 8007a6c <CRC_Handle_8>
  17597. 8007a48: 6138 str r0, [r7, #16]
  17598. break;
  17599. 8007a4a: e007 b.n 8007a5c <HAL_CRC_Calculate+0x88>
  17600. temp = CRC_Handle_16(hcrc, (uint16_t *)(void *)pBuffer, BufferLength); /* Derogation MisraC2012 R.11.5 */
  17601. 8007a4c: 687a ldr r2, [r7, #4]
  17602. 8007a4e: 68b9 ldr r1, [r7, #8]
  17603. 8007a50: 68f8 ldr r0, [r7, #12]
  17604. 8007a52: f000 f899 bl 8007b88 <CRC_Handle_16>
  17605. 8007a56: 6138 str r0, [r7, #16]
  17606. break;
  17607. 8007a58: e000 b.n 8007a5c <HAL_CRC_Calculate+0x88>
  17608. break;
  17609. 8007a5a: bf00 nop
  17610. }
  17611. /* Change CRC peripheral state */
  17612. hcrc->State = HAL_CRC_STATE_READY;
  17613. 8007a5c: 68fb ldr r3, [r7, #12]
  17614. 8007a5e: 2201 movs r2, #1
  17615. 8007a60: 775a strb r2, [r3, #29]
  17616. /* Return the CRC computed value */
  17617. return temp;
  17618. 8007a62: 693b ldr r3, [r7, #16]
  17619. }
  17620. 8007a64: 4618 mov r0, r3
  17621. 8007a66: 3718 adds r7, #24
  17622. 8007a68: 46bd mov sp, r7
  17623. 8007a6a: bd80 pop {r7, pc}
  17624. 08007a6c <CRC_Handle_8>:
  17625. * @param pBuffer pointer to the input data buffer
  17626. * @param BufferLength input data buffer length
  17627. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17628. */
  17629. static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
  17630. {
  17631. 8007a6c: b480 push {r7}
  17632. 8007a6e: b089 sub sp, #36 @ 0x24
  17633. 8007a70: af00 add r7, sp, #0
  17634. 8007a72: 60f8 str r0, [r7, #12]
  17635. 8007a74: 60b9 str r1, [r7, #8]
  17636. 8007a76: 607a str r2, [r7, #4]
  17637. __IO uint16_t *pReg;
  17638. /* Processing time optimization: 4 bytes are entered in a row with a single word write,
  17639. * last bytes must be carefully fed to the CRC calculator to ensure a correct type
  17640. * handling by the peripheral */
  17641. for (i = 0U; i < (BufferLength / 4U); i++)
  17642. 8007a78: 2300 movs r3, #0
  17643. 8007a7a: 61fb str r3, [r7, #28]
  17644. 8007a7c: e023 b.n 8007ac6 <CRC_Handle_8+0x5a>
  17645. {
  17646. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17647. 8007a7e: 69fb ldr r3, [r7, #28]
  17648. 8007a80: 009b lsls r3, r3, #2
  17649. 8007a82: 68ba ldr r2, [r7, #8]
  17650. 8007a84: 4413 add r3, r2
  17651. 8007a86: 781b ldrb r3, [r3, #0]
  17652. 8007a88: 061a lsls r2, r3, #24
  17653. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  17654. 8007a8a: 69fb ldr r3, [r7, #28]
  17655. 8007a8c: 009b lsls r3, r3, #2
  17656. 8007a8e: 3301 adds r3, #1
  17657. 8007a90: 68b9 ldr r1, [r7, #8]
  17658. 8007a92: 440b add r3, r1
  17659. 8007a94: 781b ldrb r3, [r3, #0]
  17660. 8007a96: 041b lsls r3, r3, #16
  17661. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17662. 8007a98: 431a orrs r2, r3
  17663. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  17664. 8007a9a: 69fb ldr r3, [r7, #28]
  17665. 8007a9c: 009b lsls r3, r3, #2
  17666. 8007a9e: 3302 adds r3, #2
  17667. 8007aa0: 68b9 ldr r1, [r7, #8]
  17668. 8007aa2: 440b add r3, r1
  17669. 8007aa4: 781b ldrb r3, [r3, #0]
  17670. 8007aa6: 021b lsls r3, r3, #8
  17671. ((uint32_t)pBuffer[(4U * i) + 1U] << 16U) | \
  17672. 8007aa8: 431a orrs r2, r3
  17673. (uint32_t)pBuffer[(4U * i) + 3U];
  17674. 8007aaa: 69fb ldr r3, [r7, #28]
  17675. 8007aac: 009b lsls r3, r3, #2
  17676. 8007aae: 3303 adds r3, #3
  17677. 8007ab0: 68b9 ldr r1, [r7, #8]
  17678. 8007ab2: 440b add r3, r1
  17679. 8007ab4: 781b ldrb r3, [r3, #0]
  17680. 8007ab6: 4619 mov r1, r3
  17681. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17682. 8007ab8: 68fb ldr r3, [r7, #12]
  17683. 8007aba: 681b ldr r3, [r3, #0]
  17684. ((uint32_t)pBuffer[(4U * i) + 2U] << 8U) | \
  17685. 8007abc: 430a orrs r2, r1
  17686. hcrc->Instance->DR = ((uint32_t)pBuffer[4U * i] << 24U) | \
  17687. 8007abe: 601a str r2, [r3, #0]
  17688. for (i = 0U; i < (BufferLength / 4U); i++)
  17689. 8007ac0: 69fb ldr r3, [r7, #28]
  17690. 8007ac2: 3301 adds r3, #1
  17691. 8007ac4: 61fb str r3, [r7, #28]
  17692. 8007ac6: 687b ldr r3, [r7, #4]
  17693. 8007ac8: 089b lsrs r3, r3, #2
  17694. 8007aca: 69fa ldr r2, [r7, #28]
  17695. 8007acc: 429a cmp r2, r3
  17696. 8007ace: d3d6 bcc.n 8007a7e <CRC_Handle_8+0x12>
  17697. }
  17698. /* last bytes specific handling */
  17699. if ((BufferLength % 4U) != 0U)
  17700. 8007ad0: 687b ldr r3, [r7, #4]
  17701. 8007ad2: f003 0303 and.w r3, r3, #3
  17702. 8007ad6: 2b00 cmp r3, #0
  17703. 8007ad8: d04d beq.n 8007b76 <CRC_Handle_8+0x10a>
  17704. {
  17705. if ((BufferLength % 4U) == 1U)
  17706. 8007ada: 687b ldr r3, [r7, #4]
  17707. 8007adc: f003 0303 and.w r3, r3, #3
  17708. 8007ae0: 2b01 cmp r3, #1
  17709. 8007ae2: d107 bne.n 8007af4 <CRC_Handle_8+0x88>
  17710. {
  17711. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[4U * i]; /* Derogation MisraC2012 R.11.5 */
  17712. 8007ae4: 69fb ldr r3, [r7, #28]
  17713. 8007ae6: 009b lsls r3, r3, #2
  17714. 8007ae8: 68ba ldr r2, [r7, #8]
  17715. 8007aea: 4413 add r3, r2
  17716. 8007aec: 68fa ldr r2, [r7, #12]
  17717. 8007aee: 6812 ldr r2, [r2, #0]
  17718. 8007af0: 781b ldrb r3, [r3, #0]
  17719. 8007af2: 7013 strb r3, [r2, #0]
  17720. }
  17721. if ((BufferLength % 4U) == 2U)
  17722. 8007af4: 687b ldr r3, [r7, #4]
  17723. 8007af6: f003 0303 and.w r3, r3, #3
  17724. 8007afa: 2b02 cmp r3, #2
  17725. 8007afc: d116 bne.n 8007b2c <CRC_Handle_8+0xc0>
  17726. {
  17727. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  17728. 8007afe: 69fb ldr r3, [r7, #28]
  17729. 8007b00: 009b lsls r3, r3, #2
  17730. 8007b02: 68ba ldr r2, [r7, #8]
  17731. 8007b04: 4413 add r3, r2
  17732. 8007b06: 781b ldrb r3, [r3, #0]
  17733. 8007b08: 021b lsls r3, r3, #8
  17734. 8007b0a: b21a sxth r2, r3
  17735. 8007b0c: 69fb ldr r3, [r7, #28]
  17736. 8007b0e: 009b lsls r3, r3, #2
  17737. 8007b10: 3301 adds r3, #1
  17738. 8007b12: 68b9 ldr r1, [r7, #8]
  17739. 8007b14: 440b add r3, r1
  17740. 8007b16: 781b ldrb r3, [r3, #0]
  17741. 8007b18: b21b sxth r3, r3
  17742. 8007b1a: 4313 orrs r3, r2
  17743. 8007b1c: b21b sxth r3, r3
  17744. 8007b1e: 837b strh r3, [r7, #26]
  17745. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17746. 8007b20: 68fb ldr r3, [r7, #12]
  17747. 8007b22: 681b ldr r3, [r3, #0]
  17748. 8007b24: 617b str r3, [r7, #20]
  17749. *pReg = data;
  17750. 8007b26: 697b ldr r3, [r7, #20]
  17751. 8007b28: 8b7a ldrh r2, [r7, #26]
  17752. 8007b2a: 801a strh r2, [r3, #0]
  17753. }
  17754. if ((BufferLength % 4U) == 3U)
  17755. 8007b2c: 687b ldr r3, [r7, #4]
  17756. 8007b2e: f003 0303 and.w r3, r3, #3
  17757. 8007b32: 2b03 cmp r3, #3
  17758. 8007b34: d11f bne.n 8007b76 <CRC_Handle_8+0x10a>
  17759. {
  17760. data = ((uint16_t)(pBuffer[4U * i]) << 8U) | (uint16_t)pBuffer[(4U * i) + 1U];
  17761. 8007b36: 69fb ldr r3, [r7, #28]
  17762. 8007b38: 009b lsls r3, r3, #2
  17763. 8007b3a: 68ba ldr r2, [r7, #8]
  17764. 8007b3c: 4413 add r3, r2
  17765. 8007b3e: 781b ldrb r3, [r3, #0]
  17766. 8007b40: 021b lsls r3, r3, #8
  17767. 8007b42: b21a sxth r2, r3
  17768. 8007b44: 69fb ldr r3, [r7, #28]
  17769. 8007b46: 009b lsls r3, r3, #2
  17770. 8007b48: 3301 adds r3, #1
  17771. 8007b4a: 68b9 ldr r1, [r7, #8]
  17772. 8007b4c: 440b add r3, r1
  17773. 8007b4e: 781b ldrb r3, [r3, #0]
  17774. 8007b50: b21b sxth r3, r3
  17775. 8007b52: 4313 orrs r3, r2
  17776. 8007b54: b21b sxth r3, r3
  17777. 8007b56: 837b strh r3, [r7, #26]
  17778. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17779. 8007b58: 68fb ldr r3, [r7, #12]
  17780. 8007b5a: 681b ldr r3, [r3, #0]
  17781. 8007b5c: 617b str r3, [r7, #20]
  17782. *pReg = data;
  17783. 8007b5e: 697b ldr r3, [r7, #20]
  17784. 8007b60: 8b7a ldrh r2, [r7, #26]
  17785. 8007b62: 801a strh r2, [r3, #0]
  17786. *(__IO uint8_t *)(__IO void *)(&hcrc->Instance->DR) = pBuffer[(4U * i) + 2U]; /* Derogation MisraC2012 R.11.5 */
  17787. 8007b64: 69fb ldr r3, [r7, #28]
  17788. 8007b66: 009b lsls r3, r3, #2
  17789. 8007b68: 3302 adds r3, #2
  17790. 8007b6a: 68ba ldr r2, [r7, #8]
  17791. 8007b6c: 4413 add r3, r2
  17792. 8007b6e: 68fa ldr r2, [r7, #12]
  17793. 8007b70: 6812 ldr r2, [r2, #0]
  17794. 8007b72: 781b ldrb r3, [r3, #0]
  17795. 8007b74: 7013 strb r3, [r2, #0]
  17796. }
  17797. }
  17798. /* Return the CRC computed value */
  17799. return hcrc->Instance->DR;
  17800. 8007b76: 68fb ldr r3, [r7, #12]
  17801. 8007b78: 681b ldr r3, [r3, #0]
  17802. 8007b7a: 681b ldr r3, [r3, #0]
  17803. }
  17804. 8007b7c: 4618 mov r0, r3
  17805. 8007b7e: 3724 adds r7, #36 @ 0x24
  17806. 8007b80: 46bd mov sp, r7
  17807. 8007b82: f85d 7b04 ldr.w r7, [sp], #4
  17808. 8007b86: 4770 bx lr
  17809. 08007b88 <CRC_Handle_16>:
  17810. * @param pBuffer pointer to the input data buffer
  17811. * @param BufferLength input data buffer length
  17812. * @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
  17813. */
  17814. static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint32_t BufferLength)
  17815. {
  17816. 8007b88: b480 push {r7}
  17817. 8007b8a: b087 sub sp, #28
  17818. 8007b8c: af00 add r7, sp, #0
  17819. 8007b8e: 60f8 str r0, [r7, #12]
  17820. 8007b90: 60b9 str r1, [r7, #8]
  17821. 8007b92: 607a str r2, [r7, #4]
  17822. __IO uint16_t *pReg;
  17823. /* Processing time optimization: 2 HalfWords are entered in a row with a single word write,
  17824. * in case of odd length, last HalfWord must be carefully fed to the CRC calculator to ensure
  17825. * a correct type handling by the peripheral */
  17826. for (i = 0U; i < (BufferLength / 2U); i++)
  17827. 8007b94: 2300 movs r3, #0
  17828. 8007b96: 617b str r3, [r7, #20]
  17829. 8007b98: e013 b.n 8007bc2 <CRC_Handle_16+0x3a>
  17830. {
  17831. hcrc->Instance->DR = ((uint32_t)pBuffer[2U * i] << 16U) | (uint32_t)pBuffer[(2U * i) + 1U];
  17832. 8007b9a: 697b ldr r3, [r7, #20]
  17833. 8007b9c: 009b lsls r3, r3, #2
  17834. 8007b9e: 68ba ldr r2, [r7, #8]
  17835. 8007ba0: 4413 add r3, r2
  17836. 8007ba2: 881b ldrh r3, [r3, #0]
  17837. 8007ba4: 041a lsls r2, r3, #16
  17838. 8007ba6: 697b ldr r3, [r7, #20]
  17839. 8007ba8: 009b lsls r3, r3, #2
  17840. 8007baa: 3302 adds r3, #2
  17841. 8007bac: 68b9 ldr r1, [r7, #8]
  17842. 8007bae: 440b add r3, r1
  17843. 8007bb0: 881b ldrh r3, [r3, #0]
  17844. 8007bb2: 4619 mov r1, r3
  17845. 8007bb4: 68fb ldr r3, [r7, #12]
  17846. 8007bb6: 681b ldr r3, [r3, #0]
  17847. 8007bb8: 430a orrs r2, r1
  17848. 8007bba: 601a str r2, [r3, #0]
  17849. for (i = 0U; i < (BufferLength / 2U); i++)
  17850. 8007bbc: 697b ldr r3, [r7, #20]
  17851. 8007bbe: 3301 adds r3, #1
  17852. 8007bc0: 617b str r3, [r7, #20]
  17853. 8007bc2: 687b ldr r3, [r7, #4]
  17854. 8007bc4: 085b lsrs r3, r3, #1
  17855. 8007bc6: 697a ldr r2, [r7, #20]
  17856. 8007bc8: 429a cmp r2, r3
  17857. 8007bca: d3e6 bcc.n 8007b9a <CRC_Handle_16+0x12>
  17858. }
  17859. if ((BufferLength % 2U) != 0U)
  17860. 8007bcc: 687b ldr r3, [r7, #4]
  17861. 8007bce: f003 0301 and.w r3, r3, #1
  17862. 8007bd2: 2b00 cmp r3, #0
  17863. 8007bd4: d009 beq.n 8007bea <CRC_Handle_16+0x62>
  17864. {
  17865. pReg = (__IO uint16_t *)(__IO void *)(&hcrc->Instance->DR); /* Derogation MisraC2012 R.11.5 */
  17866. 8007bd6: 68fb ldr r3, [r7, #12]
  17867. 8007bd8: 681b ldr r3, [r3, #0]
  17868. 8007bda: 613b str r3, [r7, #16]
  17869. *pReg = pBuffer[2U * i];
  17870. 8007bdc: 697b ldr r3, [r7, #20]
  17871. 8007bde: 009b lsls r3, r3, #2
  17872. 8007be0: 68ba ldr r2, [r7, #8]
  17873. 8007be2: 4413 add r3, r2
  17874. 8007be4: 881a ldrh r2, [r3, #0]
  17875. 8007be6: 693b ldr r3, [r7, #16]
  17876. 8007be8: 801a strh r2, [r3, #0]
  17877. }
  17878. /* Return the CRC computed value */
  17879. return hcrc->Instance->DR;
  17880. 8007bea: 68fb ldr r3, [r7, #12]
  17881. 8007bec: 681b ldr r3, [r3, #0]
  17882. 8007bee: 681b ldr r3, [r3, #0]
  17883. }
  17884. 8007bf0: 4618 mov r0, r3
  17885. 8007bf2: 371c adds r7, #28
  17886. 8007bf4: 46bd mov sp, r7
  17887. 8007bf6: f85d 7b04 ldr.w r7, [sp], #4
  17888. 8007bfa: 4770 bx lr
  17889. 08007bfc <HAL_CRCEx_Polynomial_Set>:
  17890. * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16)
  17891. * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32)
  17892. * @retval HAL status
  17893. */
  17894. HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
  17895. {
  17896. 8007bfc: b480 push {r7}
  17897. 8007bfe: b087 sub sp, #28
  17898. 8007c00: af00 add r7, sp, #0
  17899. 8007c02: 60f8 str r0, [r7, #12]
  17900. 8007c04: 60b9 str r1, [r7, #8]
  17901. 8007c06: 607a str r2, [r7, #4]
  17902. HAL_StatusTypeDef status = HAL_OK;
  17903. 8007c08: 2300 movs r3, #0
  17904. 8007c0a: 75fb strb r3, [r7, #23]
  17905. uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */
  17906. 8007c0c: 231f movs r3, #31
  17907. 8007c0e: 613b str r3, [r7, #16]
  17908. /* Check the parameters */
  17909. assert_param(IS_CRC_POL_LENGTH(PolyLength));
  17910. /* Ensure that the generating polynomial is odd */
  17911. if ((Pol & (uint32_t)(0x1U)) == 0U)
  17912. 8007c10: 68bb ldr r3, [r7, #8]
  17913. 8007c12: f003 0301 and.w r3, r3, #1
  17914. 8007c16: 2b00 cmp r3, #0
  17915. 8007c18: d102 bne.n 8007c20 <HAL_CRCEx_Polynomial_Set+0x24>
  17916. {
  17917. status = HAL_ERROR;
  17918. 8007c1a: 2301 movs r3, #1
  17919. 8007c1c: 75fb strb r3, [r7, #23]
  17920. 8007c1e: e063 b.n 8007ce8 <HAL_CRCEx_Polynomial_Set+0xec>
  17921. * definition. HAL_ERROR is reported if Pol degree is
  17922. * larger than that indicated by PolyLength.
  17923. * Look for MSB position: msb will contain the degree of
  17924. * the second to the largest polynomial member. E.g., for
  17925. * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */
  17926. while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U))
  17927. 8007c20: bf00 nop
  17928. 8007c22: 693b ldr r3, [r7, #16]
  17929. 8007c24: 1e5a subs r2, r3, #1
  17930. 8007c26: 613a str r2, [r7, #16]
  17931. 8007c28: 2b00 cmp r3, #0
  17932. 8007c2a: d009 beq.n 8007c40 <HAL_CRCEx_Polynomial_Set+0x44>
  17933. 8007c2c: 693b ldr r3, [r7, #16]
  17934. 8007c2e: f003 031f and.w r3, r3, #31
  17935. 8007c32: 68ba ldr r2, [r7, #8]
  17936. 8007c34: fa22 f303 lsr.w r3, r2, r3
  17937. 8007c38: f003 0301 and.w r3, r3, #1
  17938. 8007c3c: 2b00 cmp r3, #0
  17939. 8007c3e: d0f0 beq.n 8007c22 <HAL_CRCEx_Polynomial_Set+0x26>
  17940. {
  17941. }
  17942. switch (PolyLength)
  17943. 8007c40: 687b ldr r3, [r7, #4]
  17944. 8007c42: 2b18 cmp r3, #24
  17945. 8007c44: d846 bhi.n 8007cd4 <HAL_CRCEx_Polynomial_Set+0xd8>
  17946. 8007c46: a201 add r2, pc, #4 @ (adr r2, 8007c4c <HAL_CRCEx_Polynomial_Set+0x50>)
  17947. 8007c48: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  17948. 8007c4c: 08007cdb .word 0x08007cdb
  17949. 8007c50: 08007cd5 .word 0x08007cd5
  17950. 8007c54: 08007cd5 .word 0x08007cd5
  17951. 8007c58: 08007cd5 .word 0x08007cd5
  17952. 8007c5c: 08007cd5 .word 0x08007cd5
  17953. 8007c60: 08007cd5 .word 0x08007cd5
  17954. 8007c64: 08007cd5 .word 0x08007cd5
  17955. 8007c68: 08007cd5 .word 0x08007cd5
  17956. 8007c6c: 08007cc9 .word 0x08007cc9
  17957. 8007c70: 08007cd5 .word 0x08007cd5
  17958. 8007c74: 08007cd5 .word 0x08007cd5
  17959. 8007c78: 08007cd5 .word 0x08007cd5
  17960. 8007c7c: 08007cd5 .word 0x08007cd5
  17961. 8007c80: 08007cd5 .word 0x08007cd5
  17962. 8007c84: 08007cd5 .word 0x08007cd5
  17963. 8007c88: 08007cd5 .word 0x08007cd5
  17964. 8007c8c: 08007cbd .word 0x08007cbd
  17965. 8007c90: 08007cd5 .word 0x08007cd5
  17966. 8007c94: 08007cd5 .word 0x08007cd5
  17967. 8007c98: 08007cd5 .word 0x08007cd5
  17968. 8007c9c: 08007cd5 .word 0x08007cd5
  17969. 8007ca0: 08007cd5 .word 0x08007cd5
  17970. 8007ca4: 08007cd5 .word 0x08007cd5
  17971. 8007ca8: 08007cd5 .word 0x08007cd5
  17972. 8007cac: 08007cb1 .word 0x08007cb1
  17973. {
  17974. case CRC_POLYLENGTH_7B:
  17975. if (msb >= HAL_CRC_LENGTH_7B)
  17976. 8007cb0: 693b ldr r3, [r7, #16]
  17977. 8007cb2: 2b06 cmp r3, #6
  17978. 8007cb4: d913 bls.n 8007cde <HAL_CRCEx_Polynomial_Set+0xe2>
  17979. {
  17980. status = HAL_ERROR;
  17981. 8007cb6: 2301 movs r3, #1
  17982. 8007cb8: 75fb strb r3, [r7, #23]
  17983. }
  17984. break;
  17985. 8007cba: e010 b.n 8007cde <HAL_CRCEx_Polynomial_Set+0xe2>
  17986. case CRC_POLYLENGTH_8B:
  17987. if (msb >= HAL_CRC_LENGTH_8B)
  17988. 8007cbc: 693b ldr r3, [r7, #16]
  17989. 8007cbe: 2b07 cmp r3, #7
  17990. 8007cc0: d90f bls.n 8007ce2 <HAL_CRCEx_Polynomial_Set+0xe6>
  17991. {
  17992. status = HAL_ERROR;
  17993. 8007cc2: 2301 movs r3, #1
  17994. 8007cc4: 75fb strb r3, [r7, #23]
  17995. }
  17996. break;
  17997. 8007cc6: e00c b.n 8007ce2 <HAL_CRCEx_Polynomial_Set+0xe6>
  17998. case CRC_POLYLENGTH_16B:
  17999. if (msb >= HAL_CRC_LENGTH_16B)
  18000. 8007cc8: 693b ldr r3, [r7, #16]
  18001. 8007cca: 2b0f cmp r3, #15
  18002. 8007ccc: d90b bls.n 8007ce6 <HAL_CRCEx_Polynomial_Set+0xea>
  18003. {
  18004. status = HAL_ERROR;
  18005. 8007cce: 2301 movs r3, #1
  18006. 8007cd0: 75fb strb r3, [r7, #23]
  18007. }
  18008. break;
  18009. 8007cd2: e008 b.n 8007ce6 <HAL_CRCEx_Polynomial_Set+0xea>
  18010. case CRC_POLYLENGTH_32B:
  18011. /* no polynomial definition vs. polynomial length issue possible */
  18012. break;
  18013. default:
  18014. status = HAL_ERROR;
  18015. 8007cd4: 2301 movs r3, #1
  18016. 8007cd6: 75fb strb r3, [r7, #23]
  18017. break;
  18018. 8007cd8: e006 b.n 8007ce8 <HAL_CRCEx_Polynomial_Set+0xec>
  18019. break;
  18020. 8007cda: bf00 nop
  18021. 8007cdc: e004 b.n 8007ce8 <HAL_CRCEx_Polynomial_Set+0xec>
  18022. break;
  18023. 8007cde: bf00 nop
  18024. 8007ce0: e002 b.n 8007ce8 <HAL_CRCEx_Polynomial_Set+0xec>
  18025. break;
  18026. 8007ce2: bf00 nop
  18027. 8007ce4: e000 b.n 8007ce8 <HAL_CRCEx_Polynomial_Set+0xec>
  18028. break;
  18029. 8007ce6: bf00 nop
  18030. }
  18031. }
  18032. if (status == HAL_OK)
  18033. 8007ce8: 7dfb ldrb r3, [r7, #23]
  18034. 8007cea: 2b00 cmp r3, #0
  18035. 8007cec: d10d bne.n 8007d0a <HAL_CRCEx_Polynomial_Set+0x10e>
  18036. {
  18037. /* set generating polynomial */
  18038. WRITE_REG(hcrc->Instance->POL, Pol);
  18039. 8007cee: 68fb ldr r3, [r7, #12]
  18040. 8007cf0: 681b ldr r3, [r3, #0]
  18041. 8007cf2: 68ba ldr r2, [r7, #8]
  18042. 8007cf4: 615a str r2, [r3, #20]
  18043. /* set generating polynomial size */
  18044. MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength);
  18045. 8007cf6: 68fb ldr r3, [r7, #12]
  18046. 8007cf8: 681b ldr r3, [r3, #0]
  18047. 8007cfa: 689b ldr r3, [r3, #8]
  18048. 8007cfc: f023 0118 bic.w r1, r3, #24
  18049. 8007d00: 68fb ldr r3, [r7, #12]
  18050. 8007d02: 681b ldr r3, [r3, #0]
  18051. 8007d04: 687a ldr r2, [r7, #4]
  18052. 8007d06: 430a orrs r2, r1
  18053. 8007d08: 609a str r2, [r3, #8]
  18054. }
  18055. /* Return function status */
  18056. return status;
  18057. 8007d0a: 7dfb ldrb r3, [r7, #23]
  18058. }
  18059. 8007d0c: 4618 mov r0, r3
  18060. 8007d0e: 371c adds r7, #28
  18061. 8007d10: 46bd mov sp, r7
  18062. 8007d12: f85d 7b04 ldr.w r7, [sp], #4
  18063. 8007d16: 4770 bx lr
  18064. 08007d18 <HAL_DAC_Init>:
  18065. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18066. * the configuration information for the specified DAC.
  18067. * @retval HAL status
  18068. */
  18069. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  18070. {
  18071. 8007d18: b580 push {r7, lr}
  18072. 8007d1a: b082 sub sp, #8
  18073. 8007d1c: af00 add r7, sp, #0
  18074. 8007d1e: 6078 str r0, [r7, #4]
  18075. /* Check the DAC peripheral handle */
  18076. if (hdac == NULL)
  18077. 8007d20: 687b ldr r3, [r7, #4]
  18078. 8007d22: 2b00 cmp r3, #0
  18079. 8007d24: d101 bne.n 8007d2a <HAL_DAC_Init+0x12>
  18080. {
  18081. return HAL_ERROR;
  18082. 8007d26: 2301 movs r3, #1
  18083. 8007d28: e014 b.n 8007d54 <HAL_DAC_Init+0x3c>
  18084. }
  18085. /* Check the parameters */
  18086. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  18087. if (hdac->State == HAL_DAC_STATE_RESET)
  18088. 8007d2a: 687b ldr r3, [r7, #4]
  18089. 8007d2c: 791b ldrb r3, [r3, #4]
  18090. 8007d2e: b2db uxtb r3, r3
  18091. 8007d30: 2b00 cmp r3, #0
  18092. 8007d32: d105 bne.n 8007d40 <HAL_DAC_Init+0x28>
  18093. hdac->MspInitCallback = HAL_DAC_MspInit;
  18094. }
  18095. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18096. /* Allocate lock resource and initialize it */
  18097. hdac->Lock = HAL_UNLOCKED;
  18098. 8007d34: 687b ldr r3, [r7, #4]
  18099. 8007d36: 2200 movs r2, #0
  18100. 8007d38: 715a strb r2, [r3, #5]
  18101. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18102. /* Init the low level hardware */
  18103. hdac->MspInitCallback(hdac);
  18104. #else
  18105. /* Init the low level hardware */
  18106. HAL_DAC_MspInit(hdac);
  18107. 8007d3a: 6878 ldr r0, [r7, #4]
  18108. 8007d3c: f7fb ffa4 bl 8003c88 <HAL_DAC_MspInit>
  18109. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18110. }
  18111. /* Initialize the DAC state*/
  18112. hdac->State = HAL_DAC_STATE_BUSY;
  18113. 8007d40: 687b ldr r3, [r7, #4]
  18114. 8007d42: 2202 movs r2, #2
  18115. 8007d44: 711a strb r2, [r3, #4]
  18116. /* Set DAC error code to none */
  18117. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  18118. 8007d46: 687b ldr r3, [r7, #4]
  18119. 8007d48: 2200 movs r2, #0
  18120. 8007d4a: 611a str r2, [r3, #16]
  18121. /* Initialize the DAC state*/
  18122. hdac->State = HAL_DAC_STATE_READY;
  18123. 8007d4c: 687b ldr r3, [r7, #4]
  18124. 8007d4e: 2201 movs r2, #1
  18125. 8007d50: 711a strb r2, [r3, #4]
  18126. /* Return function status */
  18127. return HAL_OK;
  18128. 8007d52: 2300 movs r3, #0
  18129. }
  18130. 8007d54: 4618 mov r0, r3
  18131. 8007d56: 3708 adds r7, #8
  18132. 8007d58: 46bd mov sp, r7
  18133. 8007d5a: bd80 pop {r7, pc}
  18134. 08007d5c <HAL_DAC_Start>:
  18135. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  18136. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18137. * @retval HAL status
  18138. */
  18139. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  18140. {
  18141. 8007d5c: b480 push {r7}
  18142. 8007d5e: b083 sub sp, #12
  18143. 8007d60: af00 add r7, sp, #0
  18144. 8007d62: 6078 str r0, [r7, #4]
  18145. 8007d64: 6039 str r1, [r7, #0]
  18146. /* Check the DAC peripheral handle */
  18147. if (hdac == NULL)
  18148. 8007d66: 687b ldr r3, [r7, #4]
  18149. 8007d68: 2b00 cmp r3, #0
  18150. 8007d6a: d101 bne.n 8007d70 <HAL_DAC_Start+0x14>
  18151. {
  18152. return HAL_ERROR;
  18153. 8007d6c: 2301 movs r3, #1
  18154. 8007d6e: e046 b.n 8007dfe <HAL_DAC_Start+0xa2>
  18155. /* Check the parameters */
  18156. assert_param(IS_DAC_CHANNEL(Channel));
  18157. /* Process locked */
  18158. __HAL_LOCK(hdac);
  18159. 8007d70: 687b ldr r3, [r7, #4]
  18160. 8007d72: 795b ldrb r3, [r3, #5]
  18161. 8007d74: 2b01 cmp r3, #1
  18162. 8007d76: d101 bne.n 8007d7c <HAL_DAC_Start+0x20>
  18163. 8007d78: 2302 movs r3, #2
  18164. 8007d7a: e040 b.n 8007dfe <HAL_DAC_Start+0xa2>
  18165. 8007d7c: 687b ldr r3, [r7, #4]
  18166. 8007d7e: 2201 movs r2, #1
  18167. 8007d80: 715a strb r2, [r3, #5]
  18168. /* Change DAC state */
  18169. hdac->State = HAL_DAC_STATE_BUSY;
  18170. 8007d82: 687b ldr r3, [r7, #4]
  18171. 8007d84: 2202 movs r2, #2
  18172. 8007d86: 711a strb r2, [r3, #4]
  18173. /* Enable the Peripheral */
  18174. __HAL_DAC_ENABLE(hdac, Channel);
  18175. 8007d88: 687b ldr r3, [r7, #4]
  18176. 8007d8a: 681b ldr r3, [r3, #0]
  18177. 8007d8c: 6819 ldr r1, [r3, #0]
  18178. 8007d8e: 683b ldr r3, [r7, #0]
  18179. 8007d90: f003 0310 and.w r3, r3, #16
  18180. 8007d94: 2201 movs r2, #1
  18181. 8007d96: 409a lsls r2, r3
  18182. 8007d98: 687b ldr r3, [r7, #4]
  18183. 8007d9a: 681b ldr r3, [r3, #0]
  18184. 8007d9c: 430a orrs r2, r1
  18185. 8007d9e: 601a str r2, [r3, #0]
  18186. if (Channel == DAC_CHANNEL_1)
  18187. 8007da0: 683b ldr r3, [r7, #0]
  18188. 8007da2: 2b00 cmp r3, #0
  18189. 8007da4: d10f bne.n 8007dc6 <HAL_DAC_Start+0x6a>
  18190. {
  18191. /* Check if software trigger enabled */
  18192. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  18193. 8007da6: 687b ldr r3, [r7, #4]
  18194. 8007da8: 681b ldr r3, [r3, #0]
  18195. 8007daa: 681b ldr r3, [r3, #0]
  18196. 8007dac: f003 033e and.w r3, r3, #62 @ 0x3e
  18197. 8007db0: 2b02 cmp r3, #2
  18198. 8007db2: d11d bne.n 8007df0 <HAL_DAC_Start+0x94>
  18199. {
  18200. /* Enable the selected DAC software conversion */
  18201. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  18202. 8007db4: 687b ldr r3, [r7, #4]
  18203. 8007db6: 681b ldr r3, [r3, #0]
  18204. 8007db8: 685a ldr r2, [r3, #4]
  18205. 8007dba: 687b ldr r3, [r7, #4]
  18206. 8007dbc: 681b ldr r3, [r3, #0]
  18207. 8007dbe: f042 0201 orr.w r2, r2, #1
  18208. 8007dc2: 605a str r2, [r3, #4]
  18209. 8007dc4: e014 b.n 8007df0 <HAL_DAC_Start+0x94>
  18210. }
  18211. else
  18212. {
  18213. /* Check if software trigger enabled */
  18214. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  18215. 8007dc6: 687b ldr r3, [r7, #4]
  18216. 8007dc8: 681b ldr r3, [r3, #0]
  18217. 8007dca: 681b ldr r3, [r3, #0]
  18218. 8007dcc: f403 1278 and.w r2, r3, #4063232 @ 0x3e0000
  18219. 8007dd0: 683b ldr r3, [r7, #0]
  18220. 8007dd2: f003 0310 and.w r3, r3, #16
  18221. 8007dd6: 2102 movs r1, #2
  18222. 8007dd8: fa01 f303 lsl.w r3, r1, r3
  18223. 8007ddc: 429a cmp r2, r3
  18224. 8007dde: d107 bne.n 8007df0 <HAL_DAC_Start+0x94>
  18225. {
  18226. /* Enable the selected DAC software conversion*/
  18227. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  18228. 8007de0: 687b ldr r3, [r7, #4]
  18229. 8007de2: 681b ldr r3, [r3, #0]
  18230. 8007de4: 685a ldr r2, [r3, #4]
  18231. 8007de6: 687b ldr r3, [r7, #4]
  18232. 8007de8: 681b ldr r3, [r3, #0]
  18233. 8007dea: f042 0202 orr.w r2, r2, #2
  18234. 8007dee: 605a str r2, [r3, #4]
  18235. }
  18236. }
  18237. /* Change DAC state */
  18238. hdac->State = HAL_DAC_STATE_READY;
  18239. 8007df0: 687b ldr r3, [r7, #4]
  18240. 8007df2: 2201 movs r2, #1
  18241. 8007df4: 711a strb r2, [r3, #4]
  18242. /* Process unlocked */
  18243. __HAL_UNLOCK(hdac);
  18244. 8007df6: 687b ldr r3, [r7, #4]
  18245. 8007df8: 2200 movs r2, #0
  18246. 8007dfa: 715a strb r2, [r3, #5]
  18247. /* Return function status */
  18248. return HAL_OK;
  18249. 8007dfc: 2300 movs r3, #0
  18250. }
  18251. 8007dfe: 4618 mov r0, r3
  18252. 8007e00: 370c adds r7, #12
  18253. 8007e02: 46bd mov sp, r7
  18254. 8007e04: f85d 7b04 ldr.w r7, [sp], #4
  18255. 8007e08: 4770 bx lr
  18256. 08007e0a <HAL_DAC_IRQHandler>:
  18257. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18258. * the configuration information for the specified DAC.
  18259. * @retval None
  18260. */
  18261. void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
  18262. {
  18263. 8007e0a: b580 push {r7, lr}
  18264. 8007e0c: b084 sub sp, #16
  18265. 8007e0e: af00 add r7, sp, #0
  18266. 8007e10: 6078 str r0, [r7, #4]
  18267. uint32_t itsource = hdac->Instance->CR;
  18268. 8007e12: 687b ldr r3, [r7, #4]
  18269. 8007e14: 681b ldr r3, [r3, #0]
  18270. 8007e16: 681b ldr r3, [r3, #0]
  18271. 8007e18: 60fb str r3, [r7, #12]
  18272. uint32_t itflag = hdac->Instance->SR;
  18273. 8007e1a: 687b ldr r3, [r7, #4]
  18274. 8007e1c: 681b ldr r3, [r3, #0]
  18275. 8007e1e: 6b5b ldr r3, [r3, #52] @ 0x34
  18276. 8007e20: 60bb str r3, [r7, #8]
  18277. if ((itsource & DAC_IT_DMAUDR1) == DAC_IT_DMAUDR1)
  18278. 8007e22: 68fb ldr r3, [r7, #12]
  18279. 8007e24: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18280. 8007e28: 2b00 cmp r3, #0
  18281. 8007e2a: d01d beq.n 8007e68 <HAL_DAC_IRQHandler+0x5e>
  18282. {
  18283. /* Check underrun flag of DAC channel 1 */
  18284. if ((itflag & DAC_FLAG_DMAUDR1) == DAC_FLAG_DMAUDR1)
  18285. 8007e2c: 68bb ldr r3, [r7, #8]
  18286. 8007e2e: f403 5300 and.w r3, r3, #8192 @ 0x2000
  18287. 8007e32: 2b00 cmp r3, #0
  18288. 8007e34: d018 beq.n 8007e68 <HAL_DAC_IRQHandler+0x5e>
  18289. {
  18290. /* Change DAC state to error state */
  18291. hdac->State = HAL_DAC_STATE_ERROR;
  18292. 8007e36: 687b ldr r3, [r7, #4]
  18293. 8007e38: 2204 movs r2, #4
  18294. 8007e3a: 711a strb r2, [r3, #4]
  18295. /* Set DAC error code to channel1 DMA underrun error */
  18296. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH1);
  18297. 8007e3c: 687b ldr r3, [r7, #4]
  18298. 8007e3e: 691b ldr r3, [r3, #16]
  18299. 8007e40: f043 0201 orr.w r2, r3, #1
  18300. 8007e44: 687b ldr r3, [r7, #4]
  18301. 8007e46: 611a str r2, [r3, #16]
  18302. /* Clear the underrun flag */
  18303. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR1);
  18304. 8007e48: 687b ldr r3, [r7, #4]
  18305. 8007e4a: 681b ldr r3, [r3, #0]
  18306. 8007e4c: f44f 5200 mov.w r2, #8192 @ 0x2000
  18307. 8007e50: 635a str r2, [r3, #52] @ 0x34
  18308. /* Disable the selected DAC channel1 DMA request */
  18309. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN1);
  18310. 8007e52: 687b ldr r3, [r7, #4]
  18311. 8007e54: 681b ldr r3, [r3, #0]
  18312. 8007e56: 681a ldr r2, [r3, #0]
  18313. 8007e58: 687b ldr r3, [r7, #4]
  18314. 8007e5a: 681b ldr r3, [r3, #0]
  18315. 8007e5c: f422 5280 bic.w r2, r2, #4096 @ 0x1000
  18316. 8007e60: 601a str r2, [r3, #0]
  18317. /* Error callback */
  18318. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18319. hdac->DMAUnderrunCallbackCh1(hdac);
  18320. #else
  18321. HAL_DAC_DMAUnderrunCallbackCh1(hdac);
  18322. 8007e62: 6878 ldr r0, [r7, #4]
  18323. 8007e64: f000 f851 bl 8007f0a <HAL_DAC_DMAUnderrunCallbackCh1>
  18324. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18325. }
  18326. }
  18327. if ((itsource & DAC_IT_DMAUDR2) == DAC_IT_DMAUDR2)
  18328. 8007e68: 68fb ldr r3, [r7, #12]
  18329. 8007e6a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18330. 8007e6e: 2b00 cmp r3, #0
  18331. 8007e70: d01d beq.n 8007eae <HAL_DAC_IRQHandler+0xa4>
  18332. {
  18333. /* Check underrun flag of DAC channel 2 */
  18334. if ((itflag & DAC_FLAG_DMAUDR2) == DAC_FLAG_DMAUDR2)
  18335. 8007e72: 68bb ldr r3, [r7, #8]
  18336. 8007e74: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  18337. 8007e78: 2b00 cmp r3, #0
  18338. 8007e7a: d018 beq.n 8007eae <HAL_DAC_IRQHandler+0xa4>
  18339. {
  18340. /* Change DAC state to error state */
  18341. hdac->State = HAL_DAC_STATE_ERROR;
  18342. 8007e7c: 687b ldr r3, [r7, #4]
  18343. 8007e7e: 2204 movs r2, #4
  18344. 8007e80: 711a strb r2, [r3, #4]
  18345. /* Set DAC error code to channel2 DMA underrun error */
  18346. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_DMAUNDERRUNCH2);
  18347. 8007e82: 687b ldr r3, [r7, #4]
  18348. 8007e84: 691b ldr r3, [r3, #16]
  18349. 8007e86: f043 0202 orr.w r2, r3, #2
  18350. 8007e8a: 687b ldr r3, [r7, #4]
  18351. 8007e8c: 611a str r2, [r3, #16]
  18352. /* Clear the underrun flag */
  18353. __HAL_DAC_CLEAR_FLAG(hdac, DAC_FLAG_DMAUDR2);
  18354. 8007e8e: 687b ldr r3, [r7, #4]
  18355. 8007e90: 681b ldr r3, [r3, #0]
  18356. 8007e92: f04f 5200 mov.w r2, #536870912 @ 0x20000000
  18357. 8007e96: 635a str r2, [r3, #52] @ 0x34
  18358. /* Disable the selected DAC channel2 DMA request */
  18359. __HAL_DAC_DISABLE_IT(hdac, DAC_CR_DMAEN2);
  18360. 8007e98: 687b ldr r3, [r7, #4]
  18361. 8007e9a: 681b ldr r3, [r3, #0]
  18362. 8007e9c: 681a ldr r2, [r3, #0]
  18363. 8007e9e: 687b ldr r3, [r7, #4]
  18364. 8007ea0: 681b ldr r3, [r3, #0]
  18365. 8007ea2: f022 5280 bic.w r2, r2, #268435456 @ 0x10000000
  18366. 8007ea6: 601a str r2, [r3, #0]
  18367. /* Error callback */
  18368. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  18369. hdac->DMAUnderrunCallbackCh2(hdac);
  18370. #else
  18371. HAL_DACEx_DMAUnderrunCallbackCh2(hdac);
  18372. 8007ea8: 6878 ldr r0, [r7, #4]
  18373. 8007eaa: f000 f97b bl 80081a4 <HAL_DACEx_DMAUnderrunCallbackCh2>
  18374. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  18375. }
  18376. }
  18377. }
  18378. 8007eae: bf00 nop
  18379. 8007eb0: 3710 adds r7, #16
  18380. 8007eb2: 46bd mov sp, r7
  18381. 8007eb4: bd80 pop {r7, pc}
  18382. 08007eb6 <HAL_DAC_SetValue>:
  18383. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  18384. * @param Data Data to be loaded in the selected data holding register.
  18385. * @retval HAL status
  18386. */
  18387. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  18388. {
  18389. 8007eb6: b480 push {r7}
  18390. 8007eb8: b087 sub sp, #28
  18391. 8007eba: af00 add r7, sp, #0
  18392. 8007ebc: 60f8 str r0, [r7, #12]
  18393. 8007ebe: 60b9 str r1, [r7, #8]
  18394. 8007ec0: 607a str r2, [r7, #4]
  18395. 8007ec2: 603b str r3, [r7, #0]
  18396. __IO uint32_t tmp = 0UL;
  18397. 8007ec4: 2300 movs r3, #0
  18398. 8007ec6: 617b str r3, [r7, #20]
  18399. /* Check the DAC peripheral handle */
  18400. if (hdac == NULL)
  18401. 8007ec8: 68fb ldr r3, [r7, #12]
  18402. 8007eca: 2b00 cmp r3, #0
  18403. 8007ecc: d101 bne.n 8007ed2 <HAL_DAC_SetValue+0x1c>
  18404. {
  18405. return HAL_ERROR;
  18406. 8007ece: 2301 movs r3, #1
  18407. 8007ed0: e015 b.n 8007efe <HAL_DAC_SetValue+0x48>
  18408. /* Check the parameters */
  18409. assert_param(IS_DAC_CHANNEL(Channel));
  18410. assert_param(IS_DAC_ALIGN(Alignment));
  18411. assert_param(IS_DAC_DATA(Data));
  18412. tmp = (uint32_t)hdac->Instance;
  18413. 8007ed2: 68fb ldr r3, [r7, #12]
  18414. 8007ed4: 681b ldr r3, [r3, #0]
  18415. 8007ed6: 617b str r3, [r7, #20]
  18416. if (Channel == DAC_CHANNEL_1)
  18417. 8007ed8: 68bb ldr r3, [r7, #8]
  18418. 8007eda: 2b00 cmp r3, #0
  18419. 8007edc: d105 bne.n 8007eea <HAL_DAC_SetValue+0x34>
  18420. {
  18421. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  18422. 8007ede: 697a ldr r2, [r7, #20]
  18423. 8007ee0: 687b ldr r3, [r7, #4]
  18424. 8007ee2: 4413 add r3, r2
  18425. 8007ee4: 3308 adds r3, #8
  18426. 8007ee6: 617b str r3, [r7, #20]
  18427. 8007ee8: e004 b.n 8007ef4 <HAL_DAC_SetValue+0x3e>
  18428. }
  18429. else
  18430. {
  18431. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  18432. 8007eea: 697a ldr r2, [r7, #20]
  18433. 8007eec: 687b ldr r3, [r7, #4]
  18434. 8007eee: 4413 add r3, r2
  18435. 8007ef0: 3314 adds r3, #20
  18436. 8007ef2: 617b str r3, [r7, #20]
  18437. }
  18438. /* Set the DAC channel selected data holding register */
  18439. *(__IO uint32_t *) tmp = Data;
  18440. 8007ef4: 697b ldr r3, [r7, #20]
  18441. 8007ef6: 461a mov r2, r3
  18442. 8007ef8: 683b ldr r3, [r7, #0]
  18443. 8007efa: 6013 str r3, [r2, #0]
  18444. /* Return function status */
  18445. return HAL_OK;
  18446. 8007efc: 2300 movs r3, #0
  18447. }
  18448. 8007efe: 4618 mov r0, r3
  18449. 8007f00: 371c adds r7, #28
  18450. 8007f02: 46bd mov sp, r7
  18451. 8007f04: f85d 7b04 ldr.w r7, [sp], #4
  18452. 8007f08: 4770 bx lr
  18453. 08007f0a <HAL_DAC_DMAUnderrunCallbackCh1>:
  18454. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18455. * the configuration information for the specified DAC.
  18456. * @retval None
  18457. */
  18458. __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac)
  18459. {
  18460. 8007f0a: b480 push {r7}
  18461. 8007f0c: b083 sub sp, #12
  18462. 8007f0e: af00 add r7, sp, #0
  18463. 8007f10: 6078 str r0, [r7, #4]
  18464. UNUSED(hdac);
  18465. /* NOTE : This function should not be modified, when the callback is needed,
  18466. the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file
  18467. */
  18468. }
  18469. 8007f12: bf00 nop
  18470. 8007f14: 370c adds r7, #12
  18471. 8007f16: 46bd mov sp, r7
  18472. 8007f18: f85d 7b04 ldr.w r7, [sp], #4
  18473. 8007f1c: 4770 bx lr
  18474. ...
  18475. 08007f20 <HAL_DAC_ConfigChannel>:
  18476. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  18477. * @retval HAL status
  18478. */
  18479. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac,
  18480. const DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  18481. {
  18482. 8007f20: b580 push {r7, lr}
  18483. 8007f22: b08a sub sp, #40 @ 0x28
  18484. 8007f24: af00 add r7, sp, #0
  18485. 8007f26: 60f8 str r0, [r7, #12]
  18486. 8007f28: 60b9 str r1, [r7, #8]
  18487. 8007f2a: 607a str r2, [r7, #4]
  18488. HAL_StatusTypeDef status = HAL_OK;
  18489. 8007f2c: 2300 movs r3, #0
  18490. 8007f2e: f887 3023 strb.w r3, [r7, #35] @ 0x23
  18491. uint32_t tmpreg2;
  18492. uint32_t tickstart;
  18493. uint32_t connectOnChip;
  18494. /* Check the DAC peripheral handle and channel configuration struct */
  18495. if ((hdac == NULL) || (sConfig == NULL))
  18496. 8007f32: 68fb ldr r3, [r7, #12]
  18497. 8007f34: 2b00 cmp r3, #0
  18498. 8007f36: d002 beq.n 8007f3e <HAL_DAC_ConfigChannel+0x1e>
  18499. 8007f38: 68bb ldr r3, [r7, #8]
  18500. 8007f3a: 2b00 cmp r3, #0
  18501. 8007f3c: d101 bne.n 8007f42 <HAL_DAC_ConfigChannel+0x22>
  18502. {
  18503. return HAL_ERROR;
  18504. 8007f3e: 2301 movs r3, #1
  18505. 8007f40: e12a b.n 8008198 <HAL_DAC_ConfigChannel+0x278>
  18506. assert_param(IS_DAC_REFRESHTIME(sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime));
  18507. }
  18508. assert_param(IS_DAC_CHANNEL(Channel));
  18509. /* Process locked */
  18510. __HAL_LOCK(hdac);
  18511. 8007f42: 68fb ldr r3, [r7, #12]
  18512. 8007f44: 795b ldrb r3, [r3, #5]
  18513. 8007f46: 2b01 cmp r3, #1
  18514. 8007f48: d101 bne.n 8007f4e <HAL_DAC_ConfigChannel+0x2e>
  18515. 8007f4a: 2302 movs r3, #2
  18516. 8007f4c: e124 b.n 8008198 <HAL_DAC_ConfigChannel+0x278>
  18517. 8007f4e: 68fb ldr r3, [r7, #12]
  18518. 8007f50: 2201 movs r2, #1
  18519. 8007f52: 715a strb r2, [r3, #5]
  18520. /* Change DAC state */
  18521. hdac->State = HAL_DAC_STATE_BUSY;
  18522. 8007f54: 68fb ldr r3, [r7, #12]
  18523. 8007f56: 2202 movs r2, #2
  18524. 8007f58: 711a strb r2, [r3, #4]
  18525. /* Sample and hold configuration */
  18526. if (sConfig->DAC_SampleAndHold == DAC_SAMPLEANDHOLD_ENABLE)
  18527. 8007f5a: 68bb ldr r3, [r7, #8]
  18528. 8007f5c: 681b ldr r3, [r3, #0]
  18529. 8007f5e: 2b04 cmp r3, #4
  18530. 8007f60: d17a bne.n 8008058 <HAL_DAC_ConfigChannel+0x138>
  18531. {
  18532. /* Get timeout */
  18533. tickstart = HAL_GetTick();
  18534. 8007f62: f7fd fc9b bl 800589c <HAL_GetTick>
  18535. 8007f66: 61f8 str r0, [r7, #28]
  18536. if (Channel == DAC_CHANNEL_1)
  18537. 8007f68: 687b ldr r3, [r7, #4]
  18538. 8007f6a: 2b00 cmp r3, #0
  18539. 8007f6c: d13d bne.n 8007fea <HAL_DAC_ConfigChannel+0xca>
  18540. {
  18541. /* SHSR1 can be written when BWST1 is cleared */
  18542. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18543. 8007f6e: e018 b.n 8007fa2 <HAL_DAC_ConfigChannel+0x82>
  18544. {
  18545. /* Check for the Timeout */
  18546. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  18547. 8007f70: f7fd fc94 bl 800589c <HAL_GetTick>
  18548. 8007f74: 4602 mov r2, r0
  18549. 8007f76: 69fb ldr r3, [r7, #28]
  18550. 8007f78: 1ad3 subs r3, r2, r3
  18551. 8007f7a: 2b01 cmp r3, #1
  18552. 8007f7c: d911 bls.n 8007fa2 <HAL_DAC_ConfigChannel+0x82>
  18553. {
  18554. /* New check to avoid false timeout detection in case of preemption */
  18555. if (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18556. 8007f7e: 68fb ldr r3, [r7, #12]
  18557. 8007f80: 681b ldr r3, [r3, #0]
  18558. 8007f82: 6b5a ldr r2, [r3, #52] @ 0x34
  18559. 8007f84: 4b86 ldr r3, [pc, #536] @ (80081a0 <HAL_DAC_ConfigChannel+0x280>)
  18560. 8007f86: 4013 ands r3, r2
  18561. 8007f88: 2b00 cmp r3, #0
  18562. 8007f8a: d00a beq.n 8007fa2 <HAL_DAC_ConfigChannel+0x82>
  18563. {
  18564. /* Update error code */
  18565. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  18566. 8007f8c: 68fb ldr r3, [r7, #12]
  18567. 8007f8e: 691b ldr r3, [r3, #16]
  18568. 8007f90: f043 0208 orr.w r2, r3, #8
  18569. 8007f94: 68fb ldr r3, [r7, #12]
  18570. 8007f96: 611a str r2, [r3, #16]
  18571. /* Change the DMA state */
  18572. hdac->State = HAL_DAC_STATE_TIMEOUT;
  18573. 8007f98: 68fb ldr r3, [r7, #12]
  18574. 8007f9a: 2203 movs r2, #3
  18575. 8007f9c: 711a strb r2, [r3, #4]
  18576. return HAL_TIMEOUT;
  18577. 8007f9e: 2303 movs r3, #3
  18578. 8007fa0: e0fa b.n 8008198 <HAL_DAC_ConfigChannel+0x278>
  18579. while (((hdac->Instance->SR) & DAC_SR_BWST1) != 0UL)
  18580. 8007fa2: 68fb ldr r3, [r7, #12]
  18581. 8007fa4: 681b ldr r3, [r3, #0]
  18582. 8007fa6: 6b5a ldr r2, [r3, #52] @ 0x34
  18583. 8007fa8: 4b7d ldr r3, [pc, #500] @ (80081a0 <HAL_DAC_ConfigChannel+0x280>)
  18584. 8007faa: 4013 ands r3, r2
  18585. 8007fac: 2b00 cmp r3, #0
  18586. 8007fae: d1df bne.n 8007f70 <HAL_DAC_ConfigChannel+0x50>
  18587. }
  18588. }
  18589. }
  18590. hdac->Instance->SHSR1 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  18591. 8007fb0: 68fb ldr r3, [r7, #12]
  18592. 8007fb2: 681b ldr r3, [r3, #0]
  18593. 8007fb4: 68ba ldr r2, [r7, #8]
  18594. 8007fb6: 6992 ldr r2, [r2, #24]
  18595. 8007fb8: 641a str r2, [r3, #64] @ 0x40
  18596. 8007fba: e020 b.n 8007ffe <HAL_DAC_ConfigChannel+0xde>
  18597. {
  18598. /* SHSR2 can be written when BWST2 is cleared */
  18599. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  18600. {
  18601. /* Check for the Timeout */
  18602. if ((HAL_GetTick() - tickstart) > TIMEOUT_DAC_CALIBCONFIG)
  18603. 8007fbc: f7fd fc6e bl 800589c <HAL_GetTick>
  18604. 8007fc0: 4602 mov r2, r0
  18605. 8007fc2: 69fb ldr r3, [r7, #28]
  18606. 8007fc4: 1ad3 subs r3, r2, r3
  18607. 8007fc6: 2b01 cmp r3, #1
  18608. 8007fc8: d90f bls.n 8007fea <HAL_DAC_ConfigChannel+0xca>
  18609. {
  18610. /* New check to avoid false timeout detection in case of preemption */
  18611. if (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  18612. 8007fca: 68fb ldr r3, [r7, #12]
  18613. 8007fcc: 681b ldr r3, [r3, #0]
  18614. 8007fce: 6b5b ldr r3, [r3, #52] @ 0x34
  18615. 8007fd0: 2b00 cmp r3, #0
  18616. 8007fd2: da0a bge.n 8007fea <HAL_DAC_ConfigChannel+0xca>
  18617. {
  18618. /* Update error code */
  18619. SET_BIT(hdac->ErrorCode, HAL_DAC_ERROR_TIMEOUT);
  18620. 8007fd4: 68fb ldr r3, [r7, #12]
  18621. 8007fd6: 691b ldr r3, [r3, #16]
  18622. 8007fd8: f043 0208 orr.w r2, r3, #8
  18623. 8007fdc: 68fb ldr r3, [r7, #12]
  18624. 8007fde: 611a str r2, [r3, #16]
  18625. /* Change the DMA state */
  18626. hdac->State = HAL_DAC_STATE_TIMEOUT;
  18627. 8007fe0: 68fb ldr r3, [r7, #12]
  18628. 8007fe2: 2203 movs r2, #3
  18629. 8007fe4: 711a strb r2, [r3, #4]
  18630. return HAL_TIMEOUT;
  18631. 8007fe6: 2303 movs r3, #3
  18632. 8007fe8: e0d6 b.n 8008198 <HAL_DAC_ConfigChannel+0x278>
  18633. while (((hdac->Instance->SR) & DAC_SR_BWST2) != 0UL)
  18634. 8007fea: 68fb ldr r3, [r7, #12]
  18635. 8007fec: 681b ldr r3, [r3, #0]
  18636. 8007fee: 6b5b ldr r3, [r3, #52] @ 0x34
  18637. 8007ff0: 2b00 cmp r3, #0
  18638. 8007ff2: dbe3 blt.n 8007fbc <HAL_DAC_ConfigChannel+0x9c>
  18639. }
  18640. }
  18641. }
  18642. hdac->Instance->SHSR2 = sConfig->DAC_SampleAndHoldConfig.DAC_SampleTime;
  18643. 8007ff4: 68fb ldr r3, [r7, #12]
  18644. 8007ff6: 681b ldr r3, [r3, #0]
  18645. 8007ff8: 68ba ldr r2, [r7, #8]
  18646. 8007ffa: 6992 ldr r2, [r2, #24]
  18647. 8007ffc: 645a str r2, [r3, #68] @ 0x44
  18648. }
  18649. /* HoldTime */
  18650. MODIFY_REG(hdac->Instance->SHHR, DAC_SHHR_THOLD1 << (Channel & 0x10UL),
  18651. 8007ffe: 68fb ldr r3, [r7, #12]
  18652. 8008000: 681b ldr r3, [r3, #0]
  18653. 8008002: 6c9a ldr r2, [r3, #72] @ 0x48
  18654. 8008004: 687b ldr r3, [r7, #4]
  18655. 8008006: f003 0310 and.w r3, r3, #16
  18656. 800800a: f240 31ff movw r1, #1023 @ 0x3ff
  18657. 800800e: fa01 f303 lsl.w r3, r1, r3
  18658. 8008012: 43db mvns r3, r3
  18659. 8008014: ea02 0103 and.w r1, r2, r3
  18660. 8008018: 68bb ldr r3, [r7, #8]
  18661. 800801a: 69da ldr r2, [r3, #28]
  18662. 800801c: 687b ldr r3, [r7, #4]
  18663. 800801e: f003 0310 and.w r3, r3, #16
  18664. 8008022: 409a lsls r2, r3
  18665. 8008024: 68fb ldr r3, [r7, #12]
  18666. 8008026: 681b ldr r3, [r3, #0]
  18667. 8008028: 430a orrs r2, r1
  18668. 800802a: 649a str r2, [r3, #72] @ 0x48
  18669. (sConfig->DAC_SampleAndHoldConfig.DAC_HoldTime) << (Channel & 0x10UL));
  18670. /* RefreshTime */
  18671. MODIFY_REG(hdac->Instance->SHRR, DAC_SHRR_TREFRESH1 << (Channel & 0x10UL),
  18672. 800802c: 68fb ldr r3, [r7, #12]
  18673. 800802e: 681b ldr r3, [r3, #0]
  18674. 8008030: 6cda ldr r2, [r3, #76] @ 0x4c
  18675. 8008032: 687b ldr r3, [r7, #4]
  18676. 8008034: f003 0310 and.w r3, r3, #16
  18677. 8008038: 21ff movs r1, #255 @ 0xff
  18678. 800803a: fa01 f303 lsl.w r3, r1, r3
  18679. 800803e: 43db mvns r3, r3
  18680. 8008040: ea02 0103 and.w r1, r2, r3
  18681. 8008044: 68bb ldr r3, [r7, #8]
  18682. 8008046: 6a1a ldr r2, [r3, #32]
  18683. 8008048: 687b ldr r3, [r7, #4]
  18684. 800804a: f003 0310 and.w r3, r3, #16
  18685. 800804e: 409a lsls r2, r3
  18686. 8008050: 68fb ldr r3, [r7, #12]
  18687. 8008052: 681b ldr r3, [r3, #0]
  18688. 8008054: 430a orrs r2, r1
  18689. 8008056: 64da str r2, [r3, #76] @ 0x4c
  18690. (sConfig->DAC_SampleAndHoldConfig.DAC_RefreshTime) << (Channel & 0x10UL));
  18691. }
  18692. if (sConfig->DAC_UserTrimming == DAC_TRIMMING_USER)
  18693. 8008058: 68bb ldr r3, [r7, #8]
  18694. 800805a: 691b ldr r3, [r3, #16]
  18695. 800805c: 2b01 cmp r3, #1
  18696. 800805e: d11d bne.n 800809c <HAL_DAC_ConfigChannel+0x17c>
  18697. /* USER TRIMMING */
  18698. {
  18699. /* Get the DAC CCR value */
  18700. tmpreg1 = hdac->Instance->CCR;
  18701. 8008060: 68fb ldr r3, [r7, #12]
  18702. 8008062: 681b ldr r3, [r3, #0]
  18703. 8008064: 6b9b ldr r3, [r3, #56] @ 0x38
  18704. 8008066: 61bb str r3, [r7, #24]
  18705. /* Clear trimming value */
  18706. tmpreg1 &= ~(((uint32_t)(DAC_CCR_OTRIM1)) << (Channel & 0x10UL));
  18707. 8008068: 687b ldr r3, [r7, #4]
  18708. 800806a: f003 0310 and.w r3, r3, #16
  18709. 800806e: 221f movs r2, #31
  18710. 8008070: fa02 f303 lsl.w r3, r2, r3
  18711. 8008074: 43db mvns r3, r3
  18712. 8008076: 69ba ldr r2, [r7, #24]
  18713. 8008078: 4013 ands r3, r2
  18714. 800807a: 61bb str r3, [r7, #24]
  18715. /* Configure for the selected trimming offset */
  18716. tmpreg2 = sConfig->DAC_TrimmingValue;
  18717. 800807c: 68bb ldr r3, [r7, #8]
  18718. 800807e: 695b ldr r3, [r3, #20]
  18719. 8008080: 617b str r3, [r7, #20]
  18720. /* Calculate CCR register value depending on DAC_Channel */
  18721. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18722. 8008082: 687b ldr r3, [r7, #4]
  18723. 8008084: f003 0310 and.w r3, r3, #16
  18724. 8008088: 697a ldr r2, [r7, #20]
  18725. 800808a: fa02 f303 lsl.w r3, r2, r3
  18726. 800808e: 69ba ldr r2, [r7, #24]
  18727. 8008090: 4313 orrs r3, r2
  18728. 8008092: 61bb str r3, [r7, #24]
  18729. /* Write to DAC CCR */
  18730. hdac->Instance->CCR = tmpreg1;
  18731. 8008094: 68fb ldr r3, [r7, #12]
  18732. 8008096: 681b ldr r3, [r3, #0]
  18733. 8008098: 69ba ldr r2, [r7, #24]
  18734. 800809a: 639a str r2, [r3, #56] @ 0x38
  18735. }
  18736. /* else factory trimming is used (factory setting are available at reset)*/
  18737. /* SW Nothing has nothing to do */
  18738. /* Get the DAC MCR value */
  18739. tmpreg1 = hdac->Instance->MCR;
  18740. 800809c: 68fb ldr r3, [r7, #12]
  18741. 800809e: 681b ldr r3, [r3, #0]
  18742. 80080a0: 6bdb ldr r3, [r3, #60] @ 0x3c
  18743. 80080a2: 61bb str r3, [r7, #24]
  18744. /* Clear DAC_MCR_MODEx bits */
  18745. tmpreg1 &= ~(((uint32_t)(DAC_MCR_MODE1)) << (Channel & 0x10UL));
  18746. 80080a4: 687b ldr r3, [r7, #4]
  18747. 80080a6: f003 0310 and.w r3, r3, #16
  18748. 80080aa: 2207 movs r2, #7
  18749. 80080ac: fa02 f303 lsl.w r3, r2, r3
  18750. 80080b0: 43db mvns r3, r3
  18751. 80080b2: 69ba ldr r2, [r7, #24]
  18752. 80080b4: 4013 ands r3, r2
  18753. 80080b6: 61bb str r3, [r7, #24]
  18754. /* Configure for the selected DAC channel: mode, buffer output & on chip peripheral connect */
  18755. if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_EXTERNAL)
  18756. 80080b8: 68bb ldr r3, [r7, #8]
  18757. 80080ba: 68db ldr r3, [r3, #12]
  18758. 80080bc: 2b01 cmp r3, #1
  18759. 80080be: d102 bne.n 80080c6 <HAL_DAC_ConfigChannel+0x1a6>
  18760. {
  18761. connectOnChip = 0x00000000UL;
  18762. 80080c0: 2300 movs r3, #0
  18763. 80080c2: 627b str r3, [r7, #36] @ 0x24
  18764. 80080c4: e00f b.n 80080e6 <HAL_DAC_ConfigChannel+0x1c6>
  18765. }
  18766. else if (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_INTERNAL)
  18767. 80080c6: 68bb ldr r3, [r7, #8]
  18768. 80080c8: 68db ldr r3, [r3, #12]
  18769. 80080ca: 2b02 cmp r3, #2
  18770. 80080cc: d102 bne.n 80080d4 <HAL_DAC_ConfigChannel+0x1b4>
  18771. {
  18772. connectOnChip = DAC_MCR_MODE1_0;
  18773. 80080ce: 2301 movs r3, #1
  18774. 80080d0: 627b str r3, [r7, #36] @ 0x24
  18775. 80080d2: e008 b.n 80080e6 <HAL_DAC_ConfigChannel+0x1c6>
  18776. }
  18777. else /* (sConfig->DAC_ConnectOnChipPeripheral == DAC_CHIPCONNECT_BOTH) */
  18778. {
  18779. if (sConfig->DAC_OutputBuffer == DAC_OUTPUTBUFFER_ENABLE)
  18780. 80080d4: 68bb ldr r3, [r7, #8]
  18781. 80080d6: 689b ldr r3, [r3, #8]
  18782. 80080d8: 2b00 cmp r3, #0
  18783. 80080da: d102 bne.n 80080e2 <HAL_DAC_ConfigChannel+0x1c2>
  18784. {
  18785. connectOnChip = DAC_MCR_MODE1_0;
  18786. 80080dc: 2301 movs r3, #1
  18787. 80080de: 627b str r3, [r7, #36] @ 0x24
  18788. 80080e0: e001 b.n 80080e6 <HAL_DAC_ConfigChannel+0x1c6>
  18789. }
  18790. else
  18791. {
  18792. connectOnChip = 0x00000000UL;
  18793. 80080e2: 2300 movs r3, #0
  18794. 80080e4: 627b str r3, [r7, #36] @ 0x24
  18795. }
  18796. }
  18797. tmpreg2 = (sConfig->DAC_SampleAndHold | sConfig->DAC_OutputBuffer | connectOnChip);
  18798. 80080e6: 68bb ldr r3, [r7, #8]
  18799. 80080e8: 681a ldr r2, [r3, #0]
  18800. 80080ea: 68bb ldr r3, [r7, #8]
  18801. 80080ec: 689b ldr r3, [r3, #8]
  18802. 80080ee: 4313 orrs r3, r2
  18803. 80080f0: 6a7a ldr r2, [r7, #36] @ 0x24
  18804. 80080f2: 4313 orrs r3, r2
  18805. 80080f4: 617b str r3, [r7, #20]
  18806. /* Calculate MCR register value depending on DAC_Channel */
  18807. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18808. 80080f6: 687b ldr r3, [r7, #4]
  18809. 80080f8: f003 0310 and.w r3, r3, #16
  18810. 80080fc: 697a ldr r2, [r7, #20]
  18811. 80080fe: fa02 f303 lsl.w r3, r2, r3
  18812. 8008102: 69ba ldr r2, [r7, #24]
  18813. 8008104: 4313 orrs r3, r2
  18814. 8008106: 61bb str r3, [r7, #24]
  18815. /* Write to DAC MCR */
  18816. hdac->Instance->MCR = tmpreg1;
  18817. 8008108: 68fb ldr r3, [r7, #12]
  18818. 800810a: 681b ldr r3, [r3, #0]
  18819. 800810c: 69ba ldr r2, [r7, #24]
  18820. 800810e: 63da str r2, [r3, #60] @ 0x3c
  18821. /* DAC in normal operating mode hence clear DAC_CR_CENx bit */
  18822. CLEAR_BIT(hdac->Instance->CR, DAC_CR_CEN1 << (Channel & 0x10UL));
  18823. 8008110: 68fb ldr r3, [r7, #12]
  18824. 8008112: 681b ldr r3, [r3, #0]
  18825. 8008114: 6819 ldr r1, [r3, #0]
  18826. 8008116: 687b ldr r3, [r7, #4]
  18827. 8008118: f003 0310 and.w r3, r3, #16
  18828. 800811c: f44f 4280 mov.w r2, #16384 @ 0x4000
  18829. 8008120: fa02 f303 lsl.w r3, r2, r3
  18830. 8008124: 43da mvns r2, r3
  18831. 8008126: 68fb ldr r3, [r7, #12]
  18832. 8008128: 681b ldr r3, [r3, #0]
  18833. 800812a: 400a ands r2, r1
  18834. 800812c: 601a str r2, [r3, #0]
  18835. /* Get the DAC CR value */
  18836. tmpreg1 = hdac->Instance->CR;
  18837. 800812e: 68fb ldr r3, [r7, #12]
  18838. 8008130: 681b ldr r3, [r3, #0]
  18839. 8008132: 681b ldr r3, [r3, #0]
  18840. 8008134: 61bb str r3, [r7, #24]
  18841. /* Clear TENx, TSELx, WAVEx and MAMPx bits */
  18842. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1)) << (Channel & 0x10UL));
  18843. 8008136: 687b ldr r3, [r7, #4]
  18844. 8008138: f003 0310 and.w r3, r3, #16
  18845. 800813c: f640 72fe movw r2, #4094 @ 0xffe
  18846. 8008140: fa02 f303 lsl.w r3, r2, r3
  18847. 8008144: 43db mvns r3, r3
  18848. 8008146: 69ba ldr r2, [r7, #24]
  18849. 8008148: 4013 ands r3, r2
  18850. 800814a: 61bb str r3, [r7, #24]
  18851. /* Configure for the selected DAC channel: trigger */
  18852. /* Set TSELx and TENx bits according to DAC_Trigger value */
  18853. tmpreg2 = sConfig->DAC_Trigger;
  18854. 800814c: 68bb ldr r3, [r7, #8]
  18855. 800814e: 685b ldr r3, [r3, #4]
  18856. 8008150: 617b str r3, [r7, #20]
  18857. /* Calculate CR register value depending on DAC_Channel */
  18858. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  18859. 8008152: 687b ldr r3, [r7, #4]
  18860. 8008154: f003 0310 and.w r3, r3, #16
  18861. 8008158: 697a ldr r2, [r7, #20]
  18862. 800815a: fa02 f303 lsl.w r3, r2, r3
  18863. 800815e: 69ba ldr r2, [r7, #24]
  18864. 8008160: 4313 orrs r3, r2
  18865. 8008162: 61bb str r3, [r7, #24]
  18866. /* Write to DAC CR */
  18867. hdac->Instance->CR = tmpreg1;
  18868. 8008164: 68fb ldr r3, [r7, #12]
  18869. 8008166: 681b ldr r3, [r3, #0]
  18870. 8008168: 69ba ldr r2, [r7, #24]
  18871. 800816a: 601a str r2, [r3, #0]
  18872. /* Disable wave generation */
  18873. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  18874. 800816c: 68fb ldr r3, [r7, #12]
  18875. 800816e: 681b ldr r3, [r3, #0]
  18876. 8008170: 6819 ldr r1, [r3, #0]
  18877. 8008172: 687b ldr r3, [r7, #4]
  18878. 8008174: f003 0310 and.w r3, r3, #16
  18879. 8008178: 22c0 movs r2, #192 @ 0xc0
  18880. 800817a: fa02 f303 lsl.w r3, r2, r3
  18881. 800817e: 43da mvns r2, r3
  18882. 8008180: 68fb ldr r3, [r7, #12]
  18883. 8008182: 681b ldr r3, [r3, #0]
  18884. 8008184: 400a ands r2, r1
  18885. 8008186: 601a str r2, [r3, #0]
  18886. /* Change DAC state */
  18887. hdac->State = HAL_DAC_STATE_READY;
  18888. 8008188: 68fb ldr r3, [r7, #12]
  18889. 800818a: 2201 movs r2, #1
  18890. 800818c: 711a strb r2, [r3, #4]
  18891. /* Process unlocked */
  18892. __HAL_UNLOCK(hdac);
  18893. 800818e: 68fb ldr r3, [r7, #12]
  18894. 8008190: 2200 movs r2, #0
  18895. 8008192: 715a strb r2, [r3, #5]
  18896. /* Return function status */
  18897. return status;
  18898. 8008194: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
  18899. }
  18900. 8008198: 4618 mov r0, r3
  18901. 800819a: 3728 adds r7, #40 @ 0x28
  18902. 800819c: 46bd mov sp, r7
  18903. 800819e: bd80 pop {r7, pc}
  18904. 80081a0: 20008000 .word 0x20008000
  18905. 080081a4 <HAL_DACEx_DMAUnderrunCallbackCh2>:
  18906. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  18907. * the configuration information for the specified DAC.
  18908. * @retval None
  18909. */
  18910. __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac)
  18911. {
  18912. 80081a4: b480 push {r7}
  18913. 80081a6: b083 sub sp, #12
  18914. 80081a8: af00 add r7, sp, #0
  18915. 80081aa: 6078 str r0, [r7, #4]
  18916. UNUSED(hdac);
  18917. /* NOTE : This function should not be modified, when the callback is needed,
  18918. the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file
  18919. */
  18920. }
  18921. 80081ac: bf00 nop
  18922. 80081ae: 370c adds r7, #12
  18923. 80081b0: 46bd mov sp, r7
  18924. 80081b2: f85d 7b04 ldr.w r7, [sp], #4
  18925. 80081b6: 4770 bx lr
  18926. 080081b8 <HAL_DMA_Init>:
  18927. * @param hdma: Pointer to a DMA_HandleTypeDef structure that contains
  18928. * the configuration information for the specified DMA Stream.
  18929. * @retval HAL status
  18930. */
  18931. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  18932. {
  18933. 80081b8: b580 push {r7, lr}
  18934. 80081ba: b086 sub sp, #24
  18935. 80081bc: af00 add r7, sp, #0
  18936. 80081be: 6078 str r0, [r7, #4]
  18937. uint32_t registerValue;
  18938. uint32_t tickstart = HAL_GetTick();
  18939. 80081c0: f7fd fb6c bl 800589c <HAL_GetTick>
  18940. 80081c4: 6138 str r0, [r7, #16]
  18941. DMA_Base_Registers *regs_dma;
  18942. BDMA_Base_Registers *regs_bdma;
  18943. /* Check the DMA peripheral handle */
  18944. if(hdma == NULL)
  18945. 80081c6: 687b ldr r3, [r7, #4]
  18946. 80081c8: 2b00 cmp r3, #0
  18947. 80081ca: d101 bne.n 80081d0 <HAL_DMA_Init+0x18>
  18948. {
  18949. return HAL_ERROR;
  18950. 80081cc: 2301 movs r3, #1
  18951. 80081ce: e316 b.n 80087fe <HAL_DMA_Init+0x646>
  18952. assert_param(IS_DMA_PERIPHERAL_DATA_SIZE(hdma->Init.PeriphDataAlignment));
  18953. assert_param(IS_DMA_MEMORY_DATA_SIZE(hdma->Init.MemDataAlignment));
  18954. assert_param(IS_DMA_MODE(hdma->Init.Mode));
  18955. assert_param(IS_DMA_PRIORITY(hdma->Init.Priority));
  18956. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  18957. 80081d0: 687b ldr r3, [r7, #4]
  18958. 80081d2: 681b ldr r3, [r3, #0]
  18959. 80081d4: 4a66 ldr r2, [pc, #408] @ (8008370 <HAL_DMA_Init+0x1b8>)
  18960. 80081d6: 4293 cmp r3, r2
  18961. 80081d8: d04a beq.n 8008270 <HAL_DMA_Init+0xb8>
  18962. 80081da: 687b ldr r3, [r7, #4]
  18963. 80081dc: 681b ldr r3, [r3, #0]
  18964. 80081de: 4a65 ldr r2, [pc, #404] @ (8008374 <HAL_DMA_Init+0x1bc>)
  18965. 80081e0: 4293 cmp r3, r2
  18966. 80081e2: d045 beq.n 8008270 <HAL_DMA_Init+0xb8>
  18967. 80081e4: 687b ldr r3, [r7, #4]
  18968. 80081e6: 681b ldr r3, [r3, #0]
  18969. 80081e8: 4a63 ldr r2, [pc, #396] @ (8008378 <HAL_DMA_Init+0x1c0>)
  18970. 80081ea: 4293 cmp r3, r2
  18971. 80081ec: d040 beq.n 8008270 <HAL_DMA_Init+0xb8>
  18972. 80081ee: 687b ldr r3, [r7, #4]
  18973. 80081f0: 681b ldr r3, [r3, #0]
  18974. 80081f2: 4a62 ldr r2, [pc, #392] @ (800837c <HAL_DMA_Init+0x1c4>)
  18975. 80081f4: 4293 cmp r3, r2
  18976. 80081f6: d03b beq.n 8008270 <HAL_DMA_Init+0xb8>
  18977. 80081f8: 687b ldr r3, [r7, #4]
  18978. 80081fa: 681b ldr r3, [r3, #0]
  18979. 80081fc: 4a60 ldr r2, [pc, #384] @ (8008380 <HAL_DMA_Init+0x1c8>)
  18980. 80081fe: 4293 cmp r3, r2
  18981. 8008200: d036 beq.n 8008270 <HAL_DMA_Init+0xb8>
  18982. 8008202: 687b ldr r3, [r7, #4]
  18983. 8008204: 681b ldr r3, [r3, #0]
  18984. 8008206: 4a5f ldr r2, [pc, #380] @ (8008384 <HAL_DMA_Init+0x1cc>)
  18985. 8008208: 4293 cmp r3, r2
  18986. 800820a: d031 beq.n 8008270 <HAL_DMA_Init+0xb8>
  18987. 800820c: 687b ldr r3, [r7, #4]
  18988. 800820e: 681b ldr r3, [r3, #0]
  18989. 8008210: 4a5d ldr r2, [pc, #372] @ (8008388 <HAL_DMA_Init+0x1d0>)
  18990. 8008212: 4293 cmp r3, r2
  18991. 8008214: d02c beq.n 8008270 <HAL_DMA_Init+0xb8>
  18992. 8008216: 687b ldr r3, [r7, #4]
  18993. 8008218: 681b ldr r3, [r3, #0]
  18994. 800821a: 4a5c ldr r2, [pc, #368] @ (800838c <HAL_DMA_Init+0x1d4>)
  18995. 800821c: 4293 cmp r3, r2
  18996. 800821e: d027 beq.n 8008270 <HAL_DMA_Init+0xb8>
  18997. 8008220: 687b ldr r3, [r7, #4]
  18998. 8008222: 681b ldr r3, [r3, #0]
  18999. 8008224: 4a5a ldr r2, [pc, #360] @ (8008390 <HAL_DMA_Init+0x1d8>)
  19000. 8008226: 4293 cmp r3, r2
  19001. 8008228: d022 beq.n 8008270 <HAL_DMA_Init+0xb8>
  19002. 800822a: 687b ldr r3, [r7, #4]
  19003. 800822c: 681b ldr r3, [r3, #0]
  19004. 800822e: 4a59 ldr r2, [pc, #356] @ (8008394 <HAL_DMA_Init+0x1dc>)
  19005. 8008230: 4293 cmp r3, r2
  19006. 8008232: d01d beq.n 8008270 <HAL_DMA_Init+0xb8>
  19007. 8008234: 687b ldr r3, [r7, #4]
  19008. 8008236: 681b ldr r3, [r3, #0]
  19009. 8008238: 4a57 ldr r2, [pc, #348] @ (8008398 <HAL_DMA_Init+0x1e0>)
  19010. 800823a: 4293 cmp r3, r2
  19011. 800823c: d018 beq.n 8008270 <HAL_DMA_Init+0xb8>
  19012. 800823e: 687b ldr r3, [r7, #4]
  19013. 8008240: 681b ldr r3, [r3, #0]
  19014. 8008242: 4a56 ldr r2, [pc, #344] @ (800839c <HAL_DMA_Init+0x1e4>)
  19015. 8008244: 4293 cmp r3, r2
  19016. 8008246: d013 beq.n 8008270 <HAL_DMA_Init+0xb8>
  19017. 8008248: 687b ldr r3, [r7, #4]
  19018. 800824a: 681b ldr r3, [r3, #0]
  19019. 800824c: 4a54 ldr r2, [pc, #336] @ (80083a0 <HAL_DMA_Init+0x1e8>)
  19020. 800824e: 4293 cmp r3, r2
  19021. 8008250: d00e beq.n 8008270 <HAL_DMA_Init+0xb8>
  19022. 8008252: 687b ldr r3, [r7, #4]
  19023. 8008254: 681b ldr r3, [r3, #0]
  19024. 8008256: 4a53 ldr r2, [pc, #332] @ (80083a4 <HAL_DMA_Init+0x1ec>)
  19025. 8008258: 4293 cmp r3, r2
  19026. 800825a: d009 beq.n 8008270 <HAL_DMA_Init+0xb8>
  19027. 800825c: 687b ldr r3, [r7, #4]
  19028. 800825e: 681b ldr r3, [r3, #0]
  19029. 8008260: 4a51 ldr r2, [pc, #324] @ (80083a8 <HAL_DMA_Init+0x1f0>)
  19030. 8008262: 4293 cmp r3, r2
  19031. 8008264: d004 beq.n 8008270 <HAL_DMA_Init+0xb8>
  19032. 8008266: 687b ldr r3, [r7, #4]
  19033. 8008268: 681b ldr r3, [r3, #0]
  19034. 800826a: 4a50 ldr r2, [pc, #320] @ (80083ac <HAL_DMA_Init+0x1f4>)
  19035. 800826c: 4293 cmp r3, r2
  19036. 800826e: d101 bne.n 8008274 <HAL_DMA_Init+0xbc>
  19037. 8008270: 2301 movs r3, #1
  19038. 8008272: e000 b.n 8008276 <HAL_DMA_Init+0xbe>
  19039. 8008274: 2300 movs r3, #0
  19040. 8008276: 2b00 cmp r3, #0
  19041. 8008278: f000 813b beq.w 80084f2 <HAL_DMA_Init+0x33a>
  19042. assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst));
  19043. assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst));
  19044. }
  19045. /* Change DMA peripheral state */
  19046. hdma->State = HAL_DMA_STATE_BUSY;
  19047. 800827c: 687b ldr r3, [r7, #4]
  19048. 800827e: 2202 movs r2, #2
  19049. 8008280: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19050. /* Allocate lock resource */
  19051. __HAL_UNLOCK(hdma);
  19052. 8008284: 687b ldr r3, [r7, #4]
  19053. 8008286: 2200 movs r2, #0
  19054. 8008288: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19055. /* Disable the peripheral */
  19056. __HAL_DMA_DISABLE(hdma);
  19057. 800828c: 687b ldr r3, [r7, #4]
  19058. 800828e: 681b ldr r3, [r3, #0]
  19059. 8008290: 4a37 ldr r2, [pc, #220] @ (8008370 <HAL_DMA_Init+0x1b8>)
  19060. 8008292: 4293 cmp r3, r2
  19061. 8008294: d04a beq.n 800832c <HAL_DMA_Init+0x174>
  19062. 8008296: 687b ldr r3, [r7, #4]
  19063. 8008298: 681b ldr r3, [r3, #0]
  19064. 800829a: 4a36 ldr r2, [pc, #216] @ (8008374 <HAL_DMA_Init+0x1bc>)
  19065. 800829c: 4293 cmp r3, r2
  19066. 800829e: d045 beq.n 800832c <HAL_DMA_Init+0x174>
  19067. 80082a0: 687b ldr r3, [r7, #4]
  19068. 80082a2: 681b ldr r3, [r3, #0]
  19069. 80082a4: 4a34 ldr r2, [pc, #208] @ (8008378 <HAL_DMA_Init+0x1c0>)
  19070. 80082a6: 4293 cmp r3, r2
  19071. 80082a8: d040 beq.n 800832c <HAL_DMA_Init+0x174>
  19072. 80082aa: 687b ldr r3, [r7, #4]
  19073. 80082ac: 681b ldr r3, [r3, #0]
  19074. 80082ae: 4a33 ldr r2, [pc, #204] @ (800837c <HAL_DMA_Init+0x1c4>)
  19075. 80082b0: 4293 cmp r3, r2
  19076. 80082b2: d03b beq.n 800832c <HAL_DMA_Init+0x174>
  19077. 80082b4: 687b ldr r3, [r7, #4]
  19078. 80082b6: 681b ldr r3, [r3, #0]
  19079. 80082b8: 4a31 ldr r2, [pc, #196] @ (8008380 <HAL_DMA_Init+0x1c8>)
  19080. 80082ba: 4293 cmp r3, r2
  19081. 80082bc: d036 beq.n 800832c <HAL_DMA_Init+0x174>
  19082. 80082be: 687b ldr r3, [r7, #4]
  19083. 80082c0: 681b ldr r3, [r3, #0]
  19084. 80082c2: 4a30 ldr r2, [pc, #192] @ (8008384 <HAL_DMA_Init+0x1cc>)
  19085. 80082c4: 4293 cmp r3, r2
  19086. 80082c6: d031 beq.n 800832c <HAL_DMA_Init+0x174>
  19087. 80082c8: 687b ldr r3, [r7, #4]
  19088. 80082ca: 681b ldr r3, [r3, #0]
  19089. 80082cc: 4a2e ldr r2, [pc, #184] @ (8008388 <HAL_DMA_Init+0x1d0>)
  19090. 80082ce: 4293 cmp r3, r2
  19091. 80082d0: d02c beq.n 800832c <HAL_DMA_Init+0x174>
  19092. 80082d2: 687b ldr r3, [r7, #4]
  19093. 80082d4: 681b ldr r3, [r3, #0]
  19094. 80082d6: 4a2d ldr r2, [pc, #180] @ (800838c <HAL_DMA_Init+0x1d4>)
  19095. 80082d8: 4293 cmp r3, r2
  19096. 80082da: d027 beq.n 800832c <HAL_DMA_Init+0x174>
  19097. 80082dc: 687b ldr r3, [r7, #4]
  19098. 80082de: 681b ldr r3, [r3, #0]
  19099. 80082e0: 4a2b ldr r2, [pc, #172] @ (8008390 <HAL_DMA_Init+0x1d8>)
  19100. 80082e2: 4293 cmp r3, r2
  19101. 80082e4: d022 beq.n 800832c <HAL_DMA_Init+0x174>
  19102. 80082e6: 687b ldr r3, [r7, #4]
  19103. 80082e8: 681b ldr r3, [r3, #0]
  19104. 80082ea: 4a2a ldr r2, [pc, #168] @ (8008394 <HAL_DMA_Init+0x1dc>)
  19105. 80082ec: 4293 cmp r3, r2
  19106. 80082ee: d01d beq.n 800832c <HAL_DMA_Init+0x174>
  19107. 80082f0: 687b ldr r3, [r7, #4]
  19108. 80082f2: 681b ldr r3, [r3, #0]
  19109. 80082f4: 4a28 ldr r2, [pc, #160] @ (8008398 <HAL_DMA_Init+0x1e0>)
  19110. 80082f6: 4293 cmp r3, r2
  19111. 80082f8: d018 beq.n 800832c <HAL_DMA_Init+0x174>
  19112. 80082fa: 687b ldr r3, [r7, #4]
  19113. 80082fc: 681b ldr r3, [r3, #0]
  19114. 80082fe: 4a27 ldr r2, [pc, #156] @ (800839c <HAL_DMA_Init+0x1e4>)
  19115. 8008300: 4293 cmp r3, r2
  19116. 8008302: d013 beq.n 800832c <HAL_DMA_Init+0x174>
  19117. 8008304: 687b ldr r3, [r7, #4]
  19118. 8008306: 681b ldr r3, [r3, #0]
  19119. 8008308: 4a25 ldr r2, [pc, #148] @ (80083a0 <HAL_DMA_Init+0x1e8>)
  19120. 800830a: 4293 cmp r3, r2
  19121. 800830c: d00e beq.n 800832c <HAL_DMA_Init+0x174>
  19122. 800830e: 687b ldr r3, [r7, #4]
  19123. 8008310: 681b ldr r3, [r3, #0]
  19124. 8008312: 4a24 ldr r2, [pc, #144] @ (80083a4 <HAL_DMA_Init+0x1ec>)
  19125. 8008314: 4293 cmp r3, r2
  19126. 8008316: d009 beq.n 800832c <HAL_DMA_Init+0x174>
  19127. 8008318: 687b ldr r3, [r7, #4]
  19128. 800831a: 681b ldr r3, [r3, #0]
  19129. 800831c: 4a22 ldr r2, [pc, #136] @ (80083a8 <HAL_DMA_Init+0x1f0>)
  19130. 800831e: 4293 cmp r3, r2
  19131. 8008320: d004 beq.n 800832c <HAL_DMA_Init+0x174>
  19132. 8008322: 687b ldr r3, [r7, #4]
  19133. 8008324: 681b ldr r3, [r3, #0]
  19134. 8008326: 4a21 ldr r2, [pc, #132] @ (80083ac <HAL_DMA_Init+0x1f4>)
  19135. 8008328: 4293 cmp r3, r2
  19136. 800832a: d108 bne.n 800833e <HAL_DMA_Init+0x186>
  19137. 800832c: 687b ldr r3, [r7, #4]
  19138. 800832e: 681b ldr r3, [r3, #0]
  19139. 8008330: 681a ldr r2, [r3, #0]
  19140. 8008332: 687b ldr r3, [r7, #4]
  19141. 8008334: 681b ldr r3, [r3, #0]
  19142. 8008336: f022 0201 bic.w r2, r2, #1
  19143. 800833a: 601a str r2, [r3, #0]
  19144. 800833c: e007 b.n 800834e <HAL_DMA_Init+0x196>
  19145. 800833e: 687b ldr r3, [r7, #4]
  19146. 8008340: 681b ldr r3, [r3, #0]
  19147. 8008342: 681a ldr r2, [r3, #0]
  19148. 8008344: 687b ldr r3, [r7, #4]
  19149. 8008346: 681b ldr r3, [r3, #0]
  19150. 8008348: f022 0201 bic.w r2, r2, #1
  19151. 800834c: 601a str r2, [r3, #0]
  19152. /* Check if the DMA Stream is effectively disabled */
  19153. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19154. 800834e: e02f b.n 80083b0 <HAL_DMA_Init+0x1f8>
  19155. {
  19156. /* Check for the Timeout */
  19157. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  19158. 8008350: f7fd faa4 bl 800589c <HAL_GetTick>
  19159. 8008354: 4602 mov r2, r0
  19160. 8008356: 693b ldr r3, [r7, #16]
  19161. 8008358: 1ad3 subs r3, r2, r3
  19162. 800835a: 2b05 cmp r3, #5
  19163. 800835c: d928 bls.n 80083b0 <HAL_DMA_Init+0x1f8>
  19164. {
  19165. /* Update error code */
  19166. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  19167. 800835e: 687b ldr r3, [r7, #4]
  19168. 8008360: 2220 movs r2, #32
  19169. 8008362: 655a str r2, [r3, #84] @ 0x54
  19170. /* Change the DMA state */
  19171. hdma->State = HAL_DMA_STATE_ERROR;
  19172. 8008364: 687b ldr r3, [r7, #4]
  19173. 8008366: 2203 movs r2, #3
  19174. 8008368: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19175. return HAL_ERROR;
  19176. 800836c: 2301 movs r3, #1
  19177. 800836e: e246 b.n 80087fe <HAL_DMA_Init+0x646>
  19178. 8008370: 40020010 .word 0x40020010
  19179. 8008374: 40020028 .word 0x40020028
  19180. 8008378: 40020040 .word 0x40020040
  19181. 800837c: 40020058 .word 0x40020058
  19182. 8008380: 40020070 .word 0x40020070
  19183. 8008384: 40020088 .word 0x40020088
  19184. 8008388: 400200a0 .word 0x400200a0
  19185. 800838c: 400200b8 .word 0x400200b8
  19186. 8008390: 40020410 .word 0x40020410
  19187. 8008394: 40020428 .word 0x40020428
  19188. 8008398: 40020440 .word 0x40020440
  19189. 800839c: 40020458 .word 0x40020458
  19190. 80083a0: 40020470 .word 0x40020470
  19191. 80083a4: 40020488 .word 0x40020488
  19192. 80083a8: 400204a0 .word 0x400204a0
  19193. 80083ac: 400204b8 .word 0x400204b8
  19194. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  19195. 80083b0: 687b ldr r3, [r7, #4]
  19196. 80083b2: 681b ldr r3, [r3, #0]
  19197. 80083b4: 681b ldr r3, [r3, #0]
  19198. 80083b6: f003 0301 and.w r3, r3, #1
  19199. 80083ba: 2b00 cmp r3, #0
  19200. 80083bc: d1c8 bne.n 8008350 <HAL_DMA_Init+0x198>
  19201. }
  19202. }
  19203. /* Get the CR register value */
  19204. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->CR;
  19205. 80083be: 687b ldr r3, [r7, #4]
  19206. 80083c0: 681b ldr r3, [r3, #0]
  19207. 80083c2: 681b ldr r3, [r3, #0]
  19208. 80083c4: 617b str r3, [r7, #20]
  19209. /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */
  19210. registerValue &= ((uint32_t)~(DMA_SxCR_MBURST | DMA_SxCR_PBURST | \
  19211. 80083c6: 697a ldr r2, [r7, #20]
  19212. 80083c8: 4b83 ldr r3, [pc, #524] @ (80085d8 <HAL_DMA_Init+0x420>)
  19213. 80083ca: 4013 ands r3, r2
  19214. 80083cc: 617b str r3, [r7, #20]
  19215. DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \
  19216. DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \
  19217. DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM));
  19218. /* Prepare the DMA Stream configuration */
  19219. registerValue |= hdma->Init.Direction |
  19220. 80083ce: 687b ldr r3, [r7, #4]
  19221. 80083d0: 689a ldr r2, [r3, #8]
  19222. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19223. 80083d2: 687b ldr r3, [r7, #4]
  19224. 80083d4: 68db ldr r3, [r3, #12]
  19225. registerValue |= hdma->Init.Direction |
  19226. 80083d6: 431a orrs r2, r3
  19227. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19228. 80083d8: 687b ldr r3, [r7, #4]
  19229. 80083da: 691b ldr r3, [r3, #16]
  19230. 80083dc: 431a orrs r2, r3
  19231. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19232. 80083de: 687b ldr r3, [r7, #4]
  19233. 80083e0: 695b ldr r3, [r3, #20]
  19234. hdma->Init.PeriphInc | hdma->Init.MemInc |
  19235. 80083e2: 431a orrs r2, r3
  19236. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19237. 80083e4: 687b ldr r3, [r7, #4]
  19238. 80083e6: 699b ldr r3, [r3, #24]
  19239. 80083e8: 431a orrs r2, r3
  19240. hdma->Init.Mode | hdma->Init.Priority;
  19241. 80083ea: 687b ldr r3, [r7, #4]
  19242. 80083ec: 69db ldr r3, [r3, #28]
  19243. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  19244. 80083ee: 431a orrs r2, r3
  19245. hdma->Init.Mode | hdma->Init.Priority;
  19246. 80083f0: 687b ldr r3, [r7, #4]
  19247. 80083f2: 6a1b ldr r3, [r3, #32]
  19248. 80083f4: 4313 orrs r3, r2
  19249. registerValue |= hdma->Init.Direction |
  19250. 80083f6: 697a ldr r2, [r7, #20]
  19251. 80083f8: 4313 orrs r3, r2
  19252. 80083fa: 617b str r3, [r7, #20]
  19253. /* the Memory burst and peripheral burst are not used when the FIFO is disabled */
  19254. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19255. 80083fc: 687b ldr r3, [r7, #4]
  19256. 80083fe: 6a5b ldr r3, [r3, #36] @ 0x24
  19257. 8008400: 2b04 cmp r3, #4
  19258. 8008402: d107 bne.n 8008414 <HAL_DMA_Init+0x25c>
  19259. {
  19260. /* Get memory burst and peripheral burst */
  19261. registerValue |= hdma->Init.MemBurst | hdma->Init.PeriphBurst;
  19262. 8008404: 687b ldr r3, [r7, #4]
  19263. 8008406: 6ada ldr r2, [r3, #44] @ 0x2c
  19264. 8008408: 687b ldr r3, [r7, #4]
  19265. 800840a: 6b1b ldr r3, [r3, #48] @ 0x30
  19266. 800840c: 4313 orrs r3, r2
  19267. 800840e: 697a ldr r2, [r7, #20]
  19268. 8008410: 4313 orrs r3, r2
  19269. 8008412: 617b str r3, [r7, #20]
  19270. }
  19271. /* Work around for Errata 2.22: UART/USART- DMA transfer lock: DMA stream could be
  19272. lock when transferring data to/from USART/UART */
  19273. #if (STM32H7_DEV_ID == 0x450UL)
  19274. if((DBGMCU->IDCODE & 0xFFFF0000U) >= 0x20000000U)
  19275. 8008414: 4b71 ldr r3, [pc, #452] @ (80085dc <HAL_DMA_Init+0x424>)
  19276. 8008416: 681a ldr r2, [r3, #0]
  19277. 8008418: 4b71 ldr r3, [pc, #452] @ (80085e0 <HAL_DMA_Init+0x428>)
  19278. 800841a: 4013 ands r3, r2
  19279. 800841c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  19280. 8008420: d328 bcc.n 8008474 <HAL_DMA_Init+0x2bc>
  19281. {
  19282. #endif /* STM32H7_DEV_ID == 0x450UL */
  19283. if(IS_DMA_UART_USART_REQUEST(hdma->Init.Request) != 0U)
  19284. 8008422: 687b ldr r3, [r7, #4]
  19285. 8008424: 685b ldr r3, [r3, #4]
  19286. 8008426: 2b28 cmp r3, #40 @ 0x28
  19287. 8008428: d903 bls.n 8008432 <HAL_DMA_Init+0x27a>
  19288. 800842a: 687b ldr r3, [r7, #4]
  19289. 800842c: 685b ldr r3, [r3, #4]
  19290. 800842e: 2b2e cmp r3, #46 @ 0x2e
  19291. 8008430: d917 bls.n 8008462 <HAL_DMA_Init+0x2aa>
  19292. 8008432: 687b ldr r3, [r7, #4]
  19293. 8008434: 685b ldr r3, [r3, #4]
  19294. 8008436: 2b3e cmp r3, #62 @ 0x3e
  19295. 8008438: d903 bls.n 8008442 <HAL_DMA_Init+0x28a>
  19296. 800843a: 687b ldr r3, [r7, #4]
  19297. 800843c: 685b ldr r3, [r3, #4]
  19298. 800843e: 2b42 cmp r3, #66 @ 0x42
  19299. 8008440: d90f bls.n 8008462 <HAL_DMA_Init+0x2aa>
  19300. 8008442: 687b ldr r3, [r7, #4]
  19301. 8008444: 685b ldr r3, [r3, #4]
  19302. 8008446: 2b46 cmp r3, #70 @ 0x46
  19303. 8008448: d903 bls.n 8008452 <HAL_DMA_Init+0x29a>
  19304. 800844a: 687b ldr r3, [r7, #4]
  19305. 800844c: 685b ldr r3, [r3, #4]
  19306. 800844e: 2b48 cmp r3, #72 @ 0x48
  19307. 8008450: d907 bls.n 8008462 <HAL_DMA_Init+0x2aa>
  19308. 8008452: 687b ldr r3, [r7, #4]
  19309. 8008454: 685b ldr r3, [r3, #4]
  19310. 8008456: 2b4e cmp r3, #78 @ 0x4e
  19311. 8008458: d905 bls.n 8008466 <HAL_DMA_Init+0x2ae>
  19312. 800845a: 687b ldr r3, [r7, #4]
  19313. 800845c: 685b ldr r3, [r3, #4]
  19314. 800845e: 2b52 cmp r3, #82 @ 0x52
  19315. 8008460: d801 bhi.n 8008466 <HAL_DMA_Init+0x2ae>
  19316. 8008462: 2301 movs r3, #1
  19317. 8008464: e000 b.n 8008468 <HAL_DMA_Init+0x2b0>
  19318. 8008466: 2300 movs r3, #0
  19319. 8008468: 2b00 cmp r3, #0
  19320. 800846a: d003 beq.n 8008474 <HAL_DMA_Init+0x2bc>
  19321. {
  19322. registerValue |= DMA_SxCR_TRBUFF;
  19323. 800846c: 697b ldr r3, [r7, #20]
  19324. 800846e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  19325. 8008472: 617b str r3, [r7, #20]
  19326. #if (STM32H7_DEV_ID == 0x450UL)
  19327. }
  19328. #endif /* STM32H7_DEV_ID == 0x450UL */
  19329. /* Write to DMA Stream CR register */
  19330. ((DMA_Stream_TypeDef *)hdma->Instance)->CR = registerValue;
  19331. 8008474: 687b ldr r3, [r7, #4]
  19332. 8008476: 681b ldr r3, [r3, #0]
  19333. 8008478: 697a ldr r2, [r7, #20]
  19334. 800847a: 601a str r2, [r3, #0]
  19335. /* Get the FCR register value */
  19336. registerValue = ((DMA_Stream_TypeDef *)hdma->Instance)->FCR;
  19337. 800847c: 687b ldr r3, [r7, #4]
  19338. 800847e: 681b ldr r3, [r3, #0]
  19339. 8008480: 695b ldr r3, [r3, #20]
  19340. 8008482: 617b str r3, [r7, #20]
  19341. /* Clear Direct mode and FIFO threshold bits */
  19342. registerValue &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH);
  19343. 8008484: 697b ldr r3, [r7, #20]
  19344. 8008486: f023 0307 bic.w r3, r3, #7
  19345. 800848a: 617b str r3, [r7, #20]
  19346. /* Prepare the DMA Stream FIFO configuration */
  19347. registerValue |= hdma->Init.FIFOMode;
  19348. 800848c: 687b ldr r3, [r7, #4]
  19349. 800848e: 6a5b ldr r3, [r3, #36] @ 0x24
  19350. 8008490: 697a ldr r2, [r7, #20]
  19351. 8008492: 4313 orrs r3, r2
  19352. 8008494: 617b str r3, [r7, #20]
  19353. /* the FIFO threshold is not used when the FIFO mode is disabled */
  19354. if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE)
  19355. 8008496: 687b ldr r3, [r7, #4]
  19356. 8008498: 6a5b ldr r3, [r3, #36] @ 0x24
  19357. 800849a: 2b04 cmp r3, #4
  19358. 800849c: d117 bne.n 80084ce <HAL_DMA_Init+0x316>
  19359. {
  19360. /* Get the FIFO threshold */
  19361. registerValue |= hdma->Init.FIFOThreshold;
  19362. 800849e: 687b ldr r3, [r7, #4]
  19363. 80084a0: 6a9b ldr r3, [r3, #40] @ 0x28
  19364. 80084a2: 697a ldr r2, [r7, #20]
  19365. 80084a4: 4313 orrs r3, r2
  19366. 80084a6: 617b str r3, [r7, #20]
  19367. /* Check compatibility between FIFO threshold level and size of the memory burst */
  19368. /* for INCR4, INCR8, INCR16 */
  19369. if(hdma->Init.MemBurst != DMA_MBURST_SINGLE)
  19370. 80084a8: 687b ldr r3, [r7, #4]
  19371. 80084aa: 6adb ldr r3, [r3, #44] @ 0x2c
  19372. 80084ac: 2b00 cmp r3, #0
  19373. 80084ae: d00e beq.n 80084ce <HAL_DMA_Init+0x316>
  19374. {
  19375. if (DMA_CheckFifoParam(hdma) != HAL_OK)
  19376. 80084b0: 6878 ldr r0, [r7, #4]
  19377. 80084b2: f002 fb33 bl 800ab1c <DMA_CheckFifoParam>
  19378. 80084b6: 4603 mov r3, r0
  19379. 80084b8: 2b00 cmp r3, #0
  19380. 80084ba: d008 beq.n 80084ce <HAL_DMA_Init+0x316>
  19381. {
  19382. /* Update error code */
  19383. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  19384. 80084bc: 687b ldr r3, [r7, #4]
  19385. 80084be: 2240 movs r2, #64 @ 0x40
  19386. 80084c0: 655a str r2, [r3, #84] @ 0x54
  19387. /* Change the DMA state */
  19388. hdma->State = HAL_DMA_STATE_READY;
  19389. 80084c2: 687b ldr r3, [r7, #4]
  19390. 80084c4: 2201 movs r2, #1
  19391. 80084c6: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19392. return HAL_ERROR;
  19393. 80084ca: 2301 movs r3, #1
  19394. 80084cc: e197 b.n 80087fe <HAL_DMA_Init+0x646>
  19395. }
  19396. }
  19397. }
  19398. /* Write to DMA Stream FCR */
  19399. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR = registerValue;
  19400. 80084ce: 687b ldr r3, [r7, #4]
  19401. 80084d0: 681b ldr r3, [r3, #0]
  19402. 80084d2: 697a ldr r2, [r7, #20]
  19403. 80084d4: 615a str r2, [r3, #20]
  19404. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  19405. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  19406. regs_dma = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  19407. 80084d6: 6878 ldr r0, [r7, #4]
  19408. 80084d8: f002 fa6e bl 800a9b8 <DMA_CalcBaseAndBitshift>
  19409. 80084dc: 4603 mov r3, r0
  19410. 80084de: 60bb str r3, [r7, #8]
  19411. /* Clear all interrupt flags */
  19412. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  19413. 80084e0: 687b ldr r3, [r7, #4]
  19414. 80084e2: 6ddb ldr r3, [r3, #92] @ 0x5c
  19415. 80084e4: f003 031f and.w r3, r3, #31
  19416. 80084e8: 223f movs r2, #63 @ 0x3f
  19417. 80084ea: 409a lsls r2, r3
  19418. 80084ec: 68bb ldr r3, [r7, #8]
  19419. 80084ee: 609a str r2, [r3, #8]
  19420. 80084f0: e0cd b.n 800868e <HAL_DMA_Init+0x4d6>
  19421. }
  19422. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  19423. 80084f2: 687b ldr r3, [r7, #4]
  19424. 80084f4: 681b ldr r3, [r3, #0]
  19425. 80084f6: 4a3b ldr r2, [pc, #236] @ (80085e4 <HAL_DMA_Init+0x42c>)
  19426. 80084f8: 4293 cmp r3, r2
  19427. 80084fa: d022 beq.n 8008542 <HAL_DMA_Init+0x38a>
  19428. 80084fc: 687b ldr r3, [r7, #4]
  19429. 80084fe: 681b ldr r3, [r3, #0]
  19430. 8008500: 4a39 ldr r2, [pc, #228] @ (80085e8 <HAL_DMA_Init+0x430>)
  19431. 8008502: 4293 cmp r3, r2
  19432. 8008504: d01d beq.n 8008542 <HAL_DMA_Init+0x38a>
  19433. 8008506: 687b ldr r3, [r7, #4]
  19434. 8008508: 681b ldr r3, [r3, #0]
  19435. 800850a: 4a38 ldr r2, [pc, #224] @ (80085ec <HAL_DMA_Init+0x434>)
  19436. 800850c: 4293 cmp r3, r2
  19437. 800850e: d018 beq.n 8008542 <HAL_DMA_Init+0x38a>
  19438. 8008510: 687b ldr r3, [r7, #4]
  19439. 8008512: 681b ldr r3, [r3, #0]
  19440. 8008514: 4a36 ldr r2, [pc, #216] @ (80085f0 <HAL_DMA_Init+0x438>)
  19441. 8008516: 4293 cmp r3, r2
  19442. 8008518: d013 beq.n 8008542 <HAL_DMA_Init+0x38a>
  19443. 800851a: 687b ldr r3, [r7, #4]
  19444. 800851c: 681b ldr r3, [r3, #0]
  19445. 800851e: 4a35 ldr r2, [pc, #212] @ (80085f4 <HAL_DMA_Init+0x43c>)
  19446. 8008520: 4293 cmp r3, r2
  19447. 8008522: d00e beq.n 8008542 <HAL_DMA_Init+0x38a>
  19448. 8008524: 687b ldr r3, [r7, #4]
  19449. 8008526: 681b ldr r3, [r3, #0]
  19450. 8008528: 4a33 ldr r2, [pc, #204] @ (80085f8 <HAL_DMA_Init+0x440>)
  19451. 800852a: 4293 cmp r3, r2
  19452. 800852c: d009 beq.n 8008542 <HAL_DMA_Init+0x38a>
  19453. 800852e: 687b ldr r3, [r7, #4]
  19454. 8008530: 681b ldr r3, [r3, #0]
  19455. 8008532: 4a32 ldr r2, [pc, #200] @ (80085fc <HAL_DMA_Init+0x444>)
  19456. 8008534: 4293 cmp r3, r2
  19457. 8008536: d004 beq.n 8008542 <HAL_DMA_Init+0x38a>
  19458. 8008538: 687b ldr r3, [r7, #4]
  19459. 800853a: 681b ldr r3, [r3, #0]
  19460. 800853c: 4a30 ldr r2, [pc, #192] @ (8008600 <HAL_DMA_Init+0x448>)
  19461. 800853e: 4293 cmp r3, r2
  19462. 8008540: d101 bne.n 8008546 <HAL_DMA_Init+0x38e>
  19463. 8008542: 2301 movs r3, #1
  19464. 8008544: e000 b.n 8008548 <HAL_DMA_Init+0x390>
  19465. 8008546: 2300 movs r3, #0
  19466. 8008548: 2b00 cmp r3, #0
  19467. 800854a: f000 8097 beq.w 800867c <HAL_DMA_Init+0x4c4>
  19468. {
  19469. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  19470. 800854e: 687b ldr r3, [r7, #4]
  19471. 8008550: 681b ldr r3, [r3, #0]
  19472. 8008552: 4a24 ldr r2, [pc, #144] @ (80085e4 <HAL_DMA_Init+0x42c>)
  19473. 8008554: 4293 cmp r3, r2
  19474. 8008556: d021 beq.n 800859c <HAL_DMA_Init+0x3e4>
  19475. 8008558: 687b ldr r3, [r7, #4]
  19476. 800855a: 681b ldr r3, [r3, #0]
  19477. 800855c: 4a22 ldr r2, [pc, #136] @ (80085e8 <HAL_DMA_Init+0x430>)
  19478. 800855e: 4293 cmp r3, r2
  19479. 8008560: d01c beq.n 800859c <HAL_DMA_Init+0x3e4>
  19480. 8008562: 687b ldr r3, [r7, #4]
  19481. 8008564: 681b ldr r3, [r3, #0]
  19482. 8008566: 4a21 ldr r2, [pc, #132] @ (80085ec <HAL_DMA_Init+0x434>)
  19483. 8008568: 4293 cmp r3, r2
  19484. 800856a: d017 beq.n 800859c <HAL_DMA_Init+0x3e4>
  19485. 800856c: 687b ldr r3, [r7, #4]
  19486. 800856e: 681b ldr r3, [r3, #0]
  19487. 8008570: 4a1f ldr r2, [pc, #124] @ (80085f0 <HAL_DMA_Init+0x438>)
  19488. 8008572: 4293 cmp r3, r2
  19489. 8008574: d012 beq.n 800859c <HAL_DMA_Init+0x3e4>
  19490. 8008576: 687b ldr r3, [r7, #4]
  19491. 8008578: 681b ldr r3, [r3, #0]
  19492. 800857a: 4a1e ldr r2, [pc, #120] @ (80085f4 <HAL_DMA_Init+0x43c>)
  19493. 800857c: 4293 cmp r3, r2
  19494. 800857e: d00d beq.n 800859c <HAL_DMA_Init+0x3e4>
  19495. 8008580: 687b ldr r3, [r7, #4]
  19496. 8008582: 681b ldr r3, [r3, #0]
  19497. 8008584: 4a1c ldr r2, [pc, #112] @ (80085f8 <HAL_DMA_Init+0x440>)
  19498. 8008586: 4293 cmp r3, r2
  19499. 8008588: d008 beq.n 800859c <HAL_DMA_Init+0x3e4>
  19500. 800858a: 687b ldr r3, [r7, #4]
  19501. 800858c: 681b ldr r3, [r3, #0]
  19502. 800858e: 4a1b ldr r2, [pc, #108] @ (80085fc <HAL_DMA_Init+0x444>)
  19503. 8008590: 4293 cmp r3, r2
  19504. 8008592: d003 beq.n 800859c <HAL_DMA_Init+0x3e4>
  19505. 8008594: 687b ldr r3, [r7, #4]
  19506. 8008596: 681b ldr r3, [r3, #0]
  19507. 8008598: 4a19 ldr r2, [pc, #100] @ (8008600 <HAL_DMA_Init+0x448>)
  19508. 800859a: 4293 cmp r3, r2
  19509. /* Check the request parameter */
  19510. assert_param(IS_BDMA_REQUEST(hdma->Init.Request));
  19511. }
  19512. /* Change DMA peripheral state */
  19513. hdma->State = HAL_DMA_STATE_BUSY;
  19514. 800859c: 687b ldr r3, [r7, #4]
  19515. 800859e: 2202 movs r2, #2
  19516. 80085a0: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19517. /* Allocate lock resource */
  19518. __HAL_UNLOCK(hdma);
  19519. 80085a4: 687b ldr r3, [r7, #4]
  19520. 80085a6: 2200 movs r2, #0
  19521. 80085a8: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19522. /* Get the CR register value */
  19523. registerValue = ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR;
  19524. 80085ac: 687b ldr r3, [r7, #4]
  19525. 80085ae: 681b ldr r3, [r3, #0]
  19526. 80085b0: 681b ldr r3, [r3, #0]
  19527. 80085b2: 617b str r3, [r7, #20]
  19528. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, MEM2MEM, DBM and CT bits */
  19529. registerValue &= ((uint32_t)~(BDMA_CCR_PL | BDMA_CCR_MSIZE | BDMA_CCR_PSIZE | \
  19530. 80085b4: 697a ldr r2, [r7, #20]
  19531. 80085b6: 4b13 ldr r3, [pc, #76] @ (8008604 <HAL_DMA_Init+0x44c>)
  19532. 80085b8: 4013 ands r3, r2
  19533. 80085ba: 617b str r3, [r7, #20]
  19534. BDMA_CCR_MINC | BDMA_CCR_PINC | BDMA_CCR_CIRC | \
  19535. BDMA_CCR_DIR | BDMA_CCR_MEM2MEM | BDMA_CCR_DBM | \
  19536. BDMA_CCR_CT));
  19537. /* Prepare the DMA Channel configuration */
  19538. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19539. 80085bc: 687b ldr r3, [r7, #4]
  19540. 80085be: 689b ldr r3, [r3, #8]
  19541. 80085c0: 2b40 cmp r3, #64 @ 0x40
  19542. 80085c2: d021 beq.n 8008608 <HAL_DMA_Init+0x450>
  19543. 80085c4: 687b ldr r3, [r7, #4]
  19544. 80085c6: 689b ldr r3, [r3, #8]
  19545. 80085c8: 2b80 cmp r3, #128 @ 0x80
  19546. 80085ca: d102 bne.n 80085d2 <HAL_DMA_Init+0x41a>
  19547. 80085cc: f44f 4380 mov.w r3, #16384 @ 0x4000
  19548. 80085d0: e01b b.n 800860a <HAL_DMA_Init+0x452>
  19549. 80085d2: 2300 movs r3, #0
  19550. 80085d4: e019 b.n 800860a <HAL_DMA_Init+0x452>
  19551. 80085d6: bf00 nop
  19552. 80085d8: fe10803f .word 0xfe10803f
  19553. 80085dc: 5c001000 .word 0x5c001000
  19554. 80085e0: ffff0000 .word 0xffff0000
  19555. 80085e4: 58025408 .word 0x58025408
  19556. 80085e8: 5802541c .word 0x5802541c
  19557. 80085ec: 58025430 .word 0x58025430
  19558. 80085f0: 58025444 .word 0x58025444
  19559. 80085f4: 58025458 .word 0x58025458
  19560. 80085f8: 5802546c .word 0x5802546c
  19561. 80085fc: 58025480 .word 0x58025480
  19562. 8008600: 58025494 .word 0x58025494
  19563. 8008604: fffe000f .word 0xfffe000f
  19564. 8008608: 2310 movs r3, #16
  19565. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19566. 800860a: 687a ldr r2, [r7, #4]
  19567. 800860c: 68d2 ldr r2, [r2, #12]
  19568. 800860e: 08d2 lsrs r2, r2, #3
  19569. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19570. 8008610: 431a orrs r2, r3
  19571. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19572. 8008612: 687b ldr r3, [r7, #4]
  19573. 8008614: 691b ldr r3, [r3, #16]
  19574. 8008616: 08db lsrs r3, r3, #3
  19575. DMA_TO_BDMA_PERIPHERAL_INC(hdma->Init.PeriphInc) |
  19576. 8008618: 431a orrs r2, r3
  19577. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19578. 800861a: 687b ldr r3, [r7, #4]
  19579. 800861c: 695b ldr r3, [r3, #20]
  19580. 800861e: 08db lsrs r3, r3, #3
  19581. DMA_TO_BDMA_MEMORY_INC(hdma->Init.MemInc) |
  19582. 8008620: 431a orrs r2, r3
  19583. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19584. 8008622: 687b ldr r3, [r7, #4]
  19585. 8008624: 699b ldr r3, [r3, #24]
  19586. 8008626: 08db lsrs r3, r3, #3
  19587. DMA_TO_BDMA_PDATA_SIZE(hdma->Init.PeriphDataAlignment) |
  19588. 8008628: 431a orrs r2, r3
  19589. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  19590. 800862a: 687b ldr r3, [r7, #4]
  19591. 800862c: 69db ldr r3, [r3, #28]
  19592. 800862e: 08db lsrs r3, r3, #3
  19593. DMA_TO_BDMA_MDATA_SIZE(hdma->Init.MemDataAlignment) |
  19594. 8008630: 431a orrs r2, r3
  19595. DMA_TO_BDMA_PRIORITY(hdma->Init.Priority);
  19596. 8008632: 687b ldr r3, [r7, #4]
  19597. 8008634: 6a1b ldr r3, [r3, #32]
  19598. 8008636: 091b lsrs r3, r3, #4
  19599. DMA_TO_BDMA_MODE(hdma->Init.Mode) |
  19600. 8008638: 4313 orrs r3, r2
  19601. registerValue |= DMA_TO_BDMA_DIRECTION(hdma->Init.Direction) |
  19602. 800863a: 697a ldr r2, [r7, #20]
  19603. 800863c: 4313 orrs r3, r2
  19604. 800863e: 617b str r3, [r7, #20]
  19605. /* Write to DMA Channel CR register */
  19606. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR = registerValue;
  19607. 8008640: 687b ldr r3, [r7, #4]
  19608. 8008642: 681b ldr r3, [r3, #0]
  19609. 8008644: 697a ldr r2, [r7, #20]
  19610. 8008646: 601a str r2, [r3, #0]
  19611. /* calculation of the channel index */
  19612. hdma->StreamIndex = (((uint32_t)((uint32_t*)hdma->Instance) - (uint32_t)BDMA_Channel0) / ((uint32_t)BDMA_Channel1 - (uint32_t)BDMA_Channel0)) << 2U;
  19613. 8008648: 687b ldr r3, [r7, #4]
  19614. 800864a: 681b ldr r3, [r3, #0]
  19615. 800864c: 461a mov r2, r3
  19616. 800864e: 4b6e ldr r3, [pc, #440] @ (8008808 <HAL_DMA_Init+0x650>)
  19617. 8008650: 4413 add r3, r2
  19618. 8008652: 4a6e ldr r2, [pc, #440] @ (800880c <HAL_DMA_Init+0x654>)
  19619. 8008654: fba2 2303 umull r2, r3, r2, r3
  19620. 8008658: 091b lsrs r3, r3, #4
  19621. 800865a: 009a lsls r2, r3, #2
  19622. 800865c: 687b ldr r3, [r7, #4]
  19623. 800865e: 65da str r2, [r3, #92] @ 0x5c
  19624. /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate
  19625. DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */
  19626. regs_bdma = (BDMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma);
  19627. 8008660: 6878 ldr r0, [r7, #4]
  19628. 8008662: f002 f9a9 bl 800a9b8 <DMA_CalcBaseAndBitshift>
  19629. 8008666: 4603 mov r3, r0
  19630. 8008668: 60fb str r3, [r7, #12]
  19631. /* Clear all interrupt flags */
  19632. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  19633. 800866a: 687b ldr r3, [r7, #4]
  19634. 800866c: 6ddb ldr r3, [r3, #92] @ 0x5c
  19635. 800866e: f003 031f and.w r3, r3, #31
  19636. 8008672: 2201 movs r2, #1
  19637. 8008674: 409a lsls r2, r3
  19638. 8008676: 68fb ldr r3, [r7, #12]
  19639. 8008678: 605a str r2, [r3, #4]
  19640. 800867a: e008 b.n 800868e <HAL_DMA_Init+0x4d6>
  19641. }
  19642. else
  19643. {
  19644. hdma->ErrorCode = HAL_DMA_ERROR_PARAM;
  19645. 800867c: 687b ldr r3, [r7, #4]
  19646. 800867e: 2240 movs r2, #64 @ 0x40
  19647. 8008680: 655a str r2, [r3, #84] @ 0x54
  19648. hdma->State = HAL_DMA_STATE_ERROR;
  19649. 8008682: 687b ldr r3, [r7, #4]
  19650. 8008684: 2203 movs r2, #3
  19651. 8008686: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19652. return HAL_ERROR;
  19653. 800868a: 2301 movs r3, #1
  19654. 800868c: e0b7 b.n 80087fe <HAL_DMA_Init+0x646>
  19655. }
  19656. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  19657. 800868e: 687b ldr r3, [r7, #4]
  19658. 8008690: 681b ldr r3, [r3, #0]
  19659. 8008692: 4a5f ldr r2, [pc, #380] @ (8008810 <HAL_DMA_Init+0x658>)
  19660. 8008694: 4293 cmp r3, r2
  19661. 8008696: d072 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19662. 8008698: 687b ldr r3, [r7, #4]
  19663. 800869a: 681b ldr r3, [r3, #0]
  19664. 800869c: 4a5d ldr r2, [pc, #372] @ (8008814 <HAL_DMA_Init+0x65c>)
  19665. 800869e: 4293 cmp r3, r2
  19666. 80086a0: d06d beq.n 800877e <HAL_DMA_Init+0x5c6>
  19667. 80086a2: 687b ldr r3, [r7, #4]
  19668. 80086a4: 681b ldr r3, [r3, #0]
  19669. 80086a6: 4a5c ldr r2, [pc, #368] @ (8008818 <HAL_DMA_Init+0x660>)
  19670. 80086a8: 4293 cmp r3, r2
  19671. 80086aa: d068 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19672. 80086ac: 687b ldr r3, [r7, #4]
  19673. 80086ae: 681b ldr r3, [r3, #0]
  19674. 80086b0: 4a5a ldr r2, [pc, #360] @ (800881c <HAL_DMA_Init+0x664>)
  19675. 80086b2: 4293 cmp r3, r2
  19676. 80086b4: d063 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19677. 80086b6: 687b ldr r3, [r7, #4]
  19678. 80086b8: 681b ldr r3, [r3, #0]
  19679. 80086ba: 4a59 ldr r2, [pc, #356] @ (8008820 <HAL_DMA_Init+0x668>)
  19680. 80086bc: 4293 cmp r3, r2
  19681. 80086be: d05e beq.n 800877e <HAL_DMA_Init+0x5c6>
  19682. 80086c0: 687b ldr r3, [r7, #4]
  19683. 80086c2: 681b ldr r3, [r3, #0]
  19684. 80086c4: 4a57 ldr r2, [pc, #348] @ (8008824 <HAL_DMA_Init+0x66c>)
  19685. 80086c6: 4293 cmp r3, r2
  19686. 80086c8: d059 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19687. 80086ca: 687b ldr r3, [r7, #4]
  19688. 80086cc: 681b ldr r3, [r3, #0]
  19689. 80086ce: 4a56 ldr r2, [pc, #344] @ (8008828 <HAL_DMA_Init+0x670>)
  19690. 80086d0: 4293 cmp r3, r2
  19691. 80086d2: d054 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19692. 80086d4: 687b ldr r3, [r7, #4]
  19693. 80086d6: 681b ldr r3, [r3, #0]
  19694. 80086d8: 4a54 ldr r2, [pc, #336] @ (800882c <HAL_DMA_Init+0x674>)
  19695. 80086da: 4293 cmp r3, r2
  19696. 80086dc: d04f beq.n 800877e <HAL_DMA_Init+0x5c6>
  19697. 80086de: 687b ldr r3, [r7, #4]
  19698. 80086e0: 681b ldr r3, [r3, #0]
  19699. 80086e2: 4a53 ldr r2, [pc, #332] @ (8008830 <HAL_DMA_Init+0x678>)
  19700. 80086e4: 4293 cmp r3, r2
  19701. 80086e6: d04a beq.n 800877e <HAL_DMA_Init+0x5c6>
  19702. 80086e8: 687b ldr r3, [r7, #4]
  19703. 80086ea: 681b ldr r3, [r3, #0]
  19704. 80086ec: 4a51 ldr r2, [pc, #324] @ (8008834 <HAL_DMA_Init+0x67c>)
  19705. 80086ee: 4293 cmp r3, r2
  19706. 80086f0: d045 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19707. 80086f2: 687b ldr r3, [r7, #4]
  19708. 80086f4: 681b ldr r3, [r3, #0]
  19709. 80086f6: 4a50 ldr r2, [pc, #320] @ (8008838 <HAL_DMA_Init+0x680>)
  19710. 80086f8: 4293 cmp r3, r2
  19711. 80086fa: d040 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19712. 80086fc: 687b ldr r3, [r7, #4]
  19713. 80086fe: 681b ldr r3, [r3, #0]
  19714. 8008700: 4a4e ldr r2, [pc, #312] @ (800883c <HAL_DMA_Init+0x684>)
  19715. 8008702: 4293 cmp r3, r2
  19716. 8008704: d03b beq.n 800877e <HAL_DMA_Init+0x5c6>
  19717. 8008706: 687b ldr r3, [r7, #4]
  19718. 8008708: 681b ldr r3, [r3, #0]
  19719. 800870a: 4a4d ldr r2, [pc, #308] @ (8008840 <HAL_DMA_Init+0x688>)
  19720. 800870c: 4293 cmp r3, r2
  19721. 800870e: d036 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19722. 8008710: 687b ldr r3, [r7, #4]
  19723. 8008712: 681b ldr r3, [r3, #0]
  19724. 8008714: 4a4b ldr r2, [pc, #300] @ (8008844 <HAL_DMA_Init+0x68c>)
  19725. 8008716: 4293 cmp r3, r2
  19726. 8008718: d031 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19727. 800871a: 687b ldr r3, [r7, #4]
  19728. 800871c: 681b ldr r3, [r3, #0]
  19729. 800871e: 4a4a ldr r2, [pc, #296] @ (8008848 <HAL_DMA_Init+0x690>)
  19730. 8008720: 4293 cmp r3, r2
  19731. 8008722: d02c beq.n 800877e <HAL_DMA_Init+0x5c6>
  19732. 8008724: 687b ldr r3, [r7, #4]
  19733. 8008726: 681b ldr r3, [r3, #0]
  19734. 8008728: 4a48 ldr r2, [pc, #288] @ (800884c <HAL_DMA_Init+0x694>)
  19735. 800872a: 4293 cmp r3, r2
  19736. 800872c: d027 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19737. 800872e: 687b ldr r3, [r7, #4]
  19738. 8008730: 681b ldr r3, [r3, #0]
  19739. 8008732: 4a47 ldr r2, [pc, #284] @ (8008850 <HAL_DMA_Init+0x698>)
  19740. 8008734: 4293 cmp r3, r2
  19741. 8008736: d022 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19742. 8008738: 687b ldr r3, [r7, #4]
  19743. 800873a: 681b ldr r3, [r3, #0]
  19744. 800873c: 4a45 ldr r2, [pc, #276] @ (8008854 <HAL_DMA_Init+0x69c>)
  19745. 800873e: 4293 cmp r3, r2
  19746. 8008740: d01d beq.n 800877e <HAL_DMA_Init+0x5c6>
  19747. 8008742: 687b ldr r3, [r7, #4]
  19748. 8008744: 681b ldr r3, [r3, #0]
  19749. 8008746: 4a44 ldr r2, [pc, #272] @ (8008858 <HAL_DMA_Init+0x6a0>)
  19750. 8008748: 4293 cmp r3, r2
  19751. 800874a: d018 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19752. 800874c: 687b ldr r3, [r7, #4]
  19753. 800874e: 681b ldr r3, [r3, #0]
  19754. 8008750: 4a42 ldr r2, [pc, #264] @ (800885c <HAL_DMA_Init+0x6a4>)
  19755. 8008752: 4293 cmp r3, r2
  19756. 8008754: d013 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19757. 8008756: 687b ldr r3, [r7, #4]
  19758. 8008758: 681b ldr r3, [r3, #0]
  19759. 800875a: 4a41 ldr r2, [pc, #260] @ (8008860 <HAL_DMA_Init+0x6a8>)
  19760. 800875c: 4293 cmp r3, r2
  19761. 800875e: d00e beq.n 800877e <HAL_DMA_Init+0x5c6>
  19762. 8008760: 687b ldr r3, [r7, #4]
  19763. 8008762: 681b ldr r3, [r3, #0]
  19764. 8008764: 4a3f ldr r2, [pc, #252] @ (8008864 <HAL_DMA_Init+0x6ac>)
  19765. 8008766: 4293 cmp r3, r2
  19766. 8008768: d009 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19767. 800876a: 687b ldr r3, [r7, #4]
  19768. 800876c: 681b ldr r3, [r3, #0]
  19769. 800876e: 4a3e ldr r2, [pc, #248] @ (8008868 <HAL_DMA_Init+0x6b0>)
  19770. 8008770: 4293 cmp r3, r2
  19771. 8008772: d004 beq.n 800877e <HAL_DMA_Init+0x5c6>
  19772. 8008774: 687b ldr r3, [r7, #4]
  19773. 8008776: 681b ldr r3, [r3, #0]
  19774. 8008778: 4a3c ldr r2, [pc, #240] @ (800886c <HAL_DMA_Init+0x6b4>)
  19775. 800877a: 4293 cmp r3, r2
  19776. 800877c: d101 bne.n 8008782 <HAL_DMA_Init+0x5ca>
  19777. 800877e: 2301 movs r3, #1
  19778. 8008780: e000 b.n 8008784 <HAL_DMA_Init+0x5cc>
  19779. 8008782: 2300 movs r3, #0
  19780. 8008784: 2b00 cmp r3, #0
  19781. 8008786: d032 beq.n 80087ee <HAL_DMA_Init+0x636>
  19782. {
  19783. /* Initialize parameters for DMAMUX channel :
  19784. DMAmuxChannel, DMAmuxChannelStatus and DMAmuxChannelStatusMask
  19785. */
  19786. DMA_CalcDMAMUXChannelBaseAndMask(hdma);
  19787. 8008788: 6878 ldr r0, [r7, #4]
  19788. 800878a: f002 fa43 bl 800ac14 <DMA_CalcDMAMUXChannelBaseAndMask>
  19789. if(hdma->Init.Direction == DMA_MEMORY_TO_MEMORY)
  19790. 800878e: 687b ldr r3, [r7, #4]
  19791. 8008790: 689b ldr r3, [r3, #8]
  19792. 8008792: 2b80 cmp r3, #128 @ 0x80
  19793. 8008794: d102 bne.n 800879c <HAL_DMA_Init+0x5e4>
  19794. {
  19795. /* if memory to memory force the request to 0*/
  19796. hdma->Init.Request = DMA_REQUEST_MEM2MEM;
  19797. 8008796: 687b ldr r3, [r7, #4]
  19798. 8008798: 2200 movs r2, #0
  19799. 800879a: 605a str r2, [r3, #4]
  19800. }
  19801. /* Set peripheral request to DMAMUX channel */
  19802. hdma->DMAmuxChannel->CCR = (hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID);
  19803. 800879c: 687b ldr r3, [r7, #4]
  19804. 800879e: 685a ldr r2, [r3, #4]
  19805. 80087a0: 687b ldr r3, [r7, #4]
  19806. 80087a2: 6e1b ldr r3, [r3, #96] @ 0x60
  19807. 80087a4: b2d2 uxtb r2, r2
  19808. 80087a6: 601a str r2, [r3, #0]
  19809. /* Clear the DMAMUX synchro overrun flag */
  19810. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  19811. 80087a8: 687b ldr r3, [r7, #4]
  19812. 80087aa: 6e5b ldr r3, [r3, #100] @ 0x64
  19813. 80087ac: 687a ldr r2, [r7, #4]
  19814. 80087ae: 6e92 ldr r2, [r2, #104] @ 0x68
  19815. 80087b0: 605a str r2, [r3, #4]
  19816. /* Initialize parameters for DMAMUX request generator :
  19817. if the DMA request is DMA_REQUEST_GENERATOR0 to DMA_REQUEST_GENERATOR7
  19818. */
  19819. if((hdma->Init.Request >= DMA_REQUEST_GENERATOR0) && (hdma->Init.Request <= DMA_REQUEST_GENERATOR7))
  19820. 80087b2: 687b ldr r3, [r7, #4]
  19821. 80087b4: 685b ldr r3, [r3, #4]
  19822. 80087b6: 2b00 cmp r3, #0
  19823. 80087b8: d010 beq.n 80087dc <HAL_DMA_Init+0x624>
  19824. 80087ba: 687b ldr r3, [r7, #4]
  19825. 80087bc: 685b ldr r3, [r3, #4]
  19826. 80087be: 2b08 cmp r3, #8
  19827. 80087c0: d80c bhi.n 80087dc <HAL_DMA_Init+0x624>
  19828. {
  19829. /* Initialize parameters for DMAMUX request generator :
  19830. DMAmuxRequestGen, DMAmuxRequestGenStatus and DMAmuxRequestGenStatusMask */
  19831. DMA_CalcDMAMUXRequestGenBaseAndMask(hdma);
  19832. 80087c2: 6878 ldr r0, [r7, #4]
  19833. 80087c4: f002 fac0 bl 800ad48 <DMA_CalcDMAMUXRequestGenBaseAndMask>
  19834. /* Reset the DMAMUX request generator register */
  19835. hdma->DMAmuxRequestGen->RGCR = 0U;
  19836. 80087c8: 687b ldr r3, [r7, #4]
  19837. 80087ca: 6edb ldr r3, [r3, #108] @ 0x6c
  19838. 80087cc: 2200 movs r2, #0
  19839. 80087ce: 601a str r2, [r3, #0]
  19840. /* Clear the DMAMUX request generator overrun flag */
  19841. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  19842. 80087d0: 687b ldr r3, [r7, #4]
  19843. 80087d2: 6f1b ldr r3, [r3, #112] @ 0x70
  19844. 80087d4: 687a ldr r2, [r7, #4]
  19845. 80087d6: 6f52 ldr r2, [r2, #116] @ 0x74
  19846. 80087d8: 605a str r2, [r3, #4]
  19847. 80087da: e008 b.n 80087ee <HAL_DMA_Init+0x636>
  19848. }
  19849. else
  19850. {
  19851. hdma->DMAmuxRequestGen = 0U;
  19852. 80087dc: 687b ldr r3, [r7, #4]
  19853. 80087de: 2200 movs r2, #0
  19854. 80087e0: 66da str r2, [r3, #108] @ 0x6c
  19855. hdma->DMAmuxRequestGenStatus = 0U;
  19856. 80087e2: 687b ldr r3, [r7, #4]
  19857. 80087e4: 2200 movs r2, #0
  19858. 80087e6: 671a str r2, [r3, #112] @ 0x70
  19859. hdma->DMAmuxRequestGenStatusMask = 0U;
  19860. 80087e8: 687b ldr r3, [r7, #4]
  19861. 80087ea: 2200 movs r2, #0
  19862. 80087ec: 675a str r2, [r3, #116] @ 0x74
  19863. }
  19864. }
  19865. /* Initialize the error code */
  19866. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  19867. 80087ee: 687b ldr r3, [r7, #4]
  19868. 80087f0: 2200 movs r2, #0
  19869. 80087f2: 655a str r2, [r3, #84] @ 0x54
  19870. /* Initialize the DMA state */
  19871. hdma->State = HAL_DMA_STATE_READY;
  19872. 80087f4: 687b ldr r3, [r7, #4]
  19873. 80087f6: 2201 movs r2, #1
  19874. 80087f8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19875. return HAL_OK;
  19876. 80087fc: 2300 movs r3, #0
  19877. }
  19878. 80087fe: 4618 mov r0, r3
  19879. 8008800: 3718 adds r7, #24
  19880. 8008802: 46bd mov sp, r7
  19881. 8008804: bd80 pop {r7, pc}
  19882. 8008806: bf00 nop
  19883. 8008808: a7fdabf8 .word 0xa7fdabf8
  19884. 800880c: cccccccd .word 0xcccccccd
  19885. 8008810: 40020010 .word 0x40020010
  19886. 8008814: 40020028 .word 0x40020028
  19887. 8008818: 40020040 .word 0x40020040
  19888. 800881c: 40020058 .word 0x40020058
  19889. 8008820: 40020070 .word 0x40020070
  19890. 8008824: 40020088 .word 0x40020088
  19891. 8008828: 400200a0 .word 0x400200a0
  19892. 800882c: 400200b8 .word 0x400200b8
  19893. 8008830: 40020410 .word 0x40020410
  19894. 8008834: 40020428 .word 0x40020428
  19895. 8008838: 40020440 .word 0x40020440
  19896. 800883c: 40020458 .word 0x40020458
  19897. 8008840: 40020470 .word 0x40020470
  19898. 8008844: 40020488 .word 0x40020488
  19899. 8008848: 400204a0 .word 0x400204a0
  19900. 800884c: 400204b8 .word 0x400204b8
  19901. 8008850: 58025408 .word 0x58025408
  19902. 8008854: 5802541c .word 0x5802541c
  19903. 8008858: 58025430 .word 0x58025430
  19904. 800885c: 58025444 .word 0x58025444
  19905. 8008860: 58025458 .word 0x58025458
  19906. 8008864: 5802546c .word 0x5802546c
  19907. 8008868: 58025480 .word 0x58025480
  19908. 800886c: 58025494 .word 0x58025494
  19909. 08008870 <HAL_DMA_Start_IT>:
  19910. * @param DstAddress: The destination memory Buffer address
  19911. * @param DataLength: The length of data to be transferred from source to destination
  19912. * @retval HAL status
  19913. */
  19914. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  19915. {
  19916. 8008870: b580 push {r7, lr}
  19917. 8008872: b086 sub sp, #24
  19918. 8008874: af00 add r7, sp, #0
  19919. 8008876: 60f8 str r0, [r7, #12]
  19920. 8008878: 60b9 str r1, [r7, #8]
  19921. 800887a: 607a str r2, [r7, #4]
  19922. 800887c: 603b str r3, [r7, #0]
  19923. HAL_StatusTypeDef status = HAL_OK;
  19924. 800887e: 2300 movs r3, #0
  19925. 8008880: 75fb strb r3, [r7, #23]
  19926. /* Check the parameters */
  19927. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  19928. /* Check the DMA peripheral handle */
  19929. if(hdma == NULL)
  19930. 8008882: 68fb ldr r3, [r7, #12]
  19931. 8008884: 2b00 cmp r3, #0
  19932. 8008886: d101 bne.n 800888c <HAL_DMA_Start_IT+0x1c>
  19933. {
  19934. return HAL_ERROR;
  19935. 8008888: 2301 movs r3, #1
  19936. 800888a: e226 b.n 8008cda <HAL_DMA_Start_IT+0x46a>
  19937. }
  19938. /* Process locked */
  19939. __HAL_LOCK(hdma);
  19940. 800888c: 68fb ldr r3, [r7, #12]
  19941. 800888e: f893 3034 ldrb.w r3, [r3, #52] @ 0x34
  19942. 8008892: 2b01 cmp r3, #1
  19943. 8008894: d101 bne.n 800889a <HAL_DMA_Start_IT+0x2a>
  19944. 8008896: 2302 movs r3, #2
  19945. 8008898: e21f b.n 8008cda <HAL_DMA_Start_IT+0x46a>
  19946. 800889a: 68fb ldr r3, [r7, #12]
  19947. 800889c: 2201 movs r2, #1
  19948. 800889e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  19949. if(HAL_DMA_STATE_READY == hdma->State)
  19950. 80088a2: 68fb ldr r3, [r7, #12]
  19951. 80088a4: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  19952. 80088a8: b2db uxtb r3, r3
  19953. 80088aa: 2b01 cmp r3, #1
  19954. 80088ac: f040 820a bne.w 8008cc4 <HAL_DMA_Start_IT+0x454>
  19955. {
  19956. /* Change DMA peripheral state */
  19957. hdma->State = HAL_DMA_STATE_BUSY;
  19958. 80088b0: 68fb ldr r3, [r7, #12]
  19959. 80088b2: 2202 movs r2, #2
  19960. 80088b4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  19961. /* Initialize the error code */
  19962. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  19963. 80088b8: 68fb ldr r3, [r7, #12]
  19964. 80088ba: 2200 movs r2, #0
  19965. 80088bc: 655a str r2, [r3, #84] @ 0x54
  19966. /* Disable the peripheral */
  19967. __HAL_DMA_DISABLE(hdma);
  19968. 80088be: 68fb ldr r3, [r7, #12]
  19969. 80088c0: 681b ldr r3, [r3, #0]
  19970. 80088c2: 4a68 ldr r2, [pc, #416] @ (8008a64 <HAL_DMA_Start_IT+0x1f4>)
  19971. 80088c4: 4293 cmp r3, r2
  19972. 80088c6: d04a beq.n 800895e <HAL_DMA_Start_IT+0xee>
  19973. 80088c8: 68fb ldr r3, [r7, #12]
  19974. 80088ca: 681b ldr r3, [r3, #0]
  19975. 80088cc: 4a66 ldr r2, [pc, #408] @ (8008a68 <HAL_DMA_Start_IT+0x1f8>)
  19976. 80088ce: 4293 cmp r3, r2
  19977. 80088d0: d045 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  19978. 80088d2: 68fb ldr r3, [r7, #12]
  19979. 80088d4: 681b ldr r3, [r3, #0]
  19980. 80088d6: 4a65 ldr r2, [pc, #404] @ (8008a6c <HAL_DMA_Start_IT+0x1fc>)
  19981. 80088d8: 4293 cmp r3, r2
  19982. 80088da: d040 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  19983. 80088dc: 68fb ldr r3, [r7, #12]
  19984. 80088de: 681b ldr r3, [r3, #0]
  19985. 80088e0: 4a63 ldr r2, [pc, #396] @ (8008a70 <HAL_DMA_Start_IT+0x200>)
  19986. 80088e2: 4293 cmp r3, r2
  19987. 80088e4: d03b beq.n 800895e <HAL_DMA_Start_IT+0xee>
  19988. 80088e6: 68fb ldr r3, [r7, #12]
  19989. 80088e8: 681b ldr r3, [r3, #0]
  19990. 80088ea: 4a62 ldr r2, [pc, #392] @ (8008a74 <HAL_DMA_Start_IT+0x204>)
  19991. 80088ec: 4293 cmp r3, r2
  19992. 80088ee: d036 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  19993. 80088f0: 68fb ldr r3, [r7, #12]
  19994. 80088f2: 681b ldr r3, [r3, #0]
  19995. 80088f4: 4a60 ldr r2, [pc, #384] @ (8008a78 <HAL_DMA_Start_IT+0x208>)
  19996. 80088f6: 4293 cmp r3, r2
  19997. 80088f8: d031 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  19998. 80088fa: 68fb ldr r3, [r7, #12]
  19999. 80088fc: 681b ldr r3, [r3, #0]
  20000. 80088fe: 4a5f ldr r2, [pc, #380] @ (8008a7c <HAL_DMA_Start_IT+0x20c>)
  20001. 8008900: 4293 cmp r3, r2
  20002. 8008902: d02c beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20003. 8008904: 68fb ldr r3, [r7, #12]
  20004. 8008906: 681b ldr r3, [r3, #0]
  20005. 8008908: 4a5d ldr r2, [pc, #372] @ (8008a80 <HAL_DMA_Start_IT+0x210>)
  20006. 800890a: 4293 cmp r3, r2
  20007. 800890c: d027 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20008. 800890e: 68fb ldr r3, [r7, #12]
  20009. 8008910: 681b ldr r3, [r3, #0]
  20010. 8008912: 4a5c ldr r2, [pc, #368] @ (8008a84 <HAL_DMA_Start_IT+0x214>)
  20011. 8008914: 4293 cmp r3, r2
  20012. 8008916: d022 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20013. 8008918: 68fb ldr r3, [r7, #12]
  20014. 800891a: 681b ldr r3, [r3, #0]
  20015. 800891c: 4a5a ldr r2, [pc, #360] @ (8008a88 <HAL_DMA_Start_IT+0x218>)
  20016. 800891e: 4293 cmp r3, r2
  20017. 8008920: d01d beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20018. 8008922: 68fb ldr r3, [r7, #12]
  20019. 8008924: 681b ldr r3, [r3, #0]
  20020. 8008926: 4a59 ldr r2, [pc, #356] @ (8008a8c <HAL_DMA_Start_IT+0x21c>)
  20021. 8008928: 4293 cmp r3, r2
  20022. 800892a: d018 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20023. 800892c: 68fb ldr r3, [r7, #12]
  20024. 800892e: 681b ldr r3, [r3, #0]
  20025. 8008930: 4a57 ldr r2, [pc, #348] @ (8008a90 <HAL_DMA_Start_IT+0x220>)
  20026. 8008932: 4293 cmp r3, r2
  20027. 8008934: d013 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20028. 8008936: 68fb ldr r3, [r7, #12]
  20029. 8008938: 681b ldr r3, [r3, #0]
  20030. 800893a: 4a56 ldr r2, [pc, #344] @ (8008a94 <HAL_DMA_Start_IT+0x224>)
  20031. 800893c: 4293 cmp r3, r2
  20032. 800893e: d00e beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20033. 8008940: 68fb ldr r3, [r7, #12]
  20034. 8008942: 681b ldr r3, [r3, #0]
  20035. 8008944: 4a54 ldr r2, [pc, #336] @ (8008a98 <HAL_DMA_Start_IT+0x228>)
  20036. 8008946: 4293 cmp r3, r2
  20037. 8008948: d009 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20038. 800894a: 68fb ldr r3, [r7, #12]
  20039. 800894c: 681b ldr r3, [r3, #0]
  20040. 800894e: 4a53 ldr r2, [pc, #332] @ (8008a9c <HAL_DMA_Start_IT+0x22c>)
  20041. 8008950: 4293 cmp r3, r2
  20042. 8008952: d004 beq.n 800895e <HAL_DMA_Start_IT+0xee>
  20043. 8008954: 68fb ldr r3, [r7, #12]
  20044. 8008956: 681b ldr r3, [r3, #0]
  20045. 8008958: 4a51 ldr r2, [pc, #324] @ (8008aa0 <HAL_DMA_Start_IT+0x230>)
  20046. 800895a: 4293 cmp r3, r2
  20047. 800895c: d108 bne.n 8008970 <HAL_DMA_Start_IT+0x100>
  20048. 800895e: 68fb ldr r3, [r7, #12]
  20049. 8008960: 681b ldr r3, [r3, #0]
  20050. 8008962: 681a ldr r2, [r3, #0]
  20051. 8008964: 68fb ldr r3, [r7, #12]
  20052. 8008966: 681b ldr r3, [r3, #0]
  20053. 8008968: f022 0201 bic.w r2, r2, #1
  20054. 800896c: 601a str r2, [r3, #0]
  20055. 800896e: e007 b.n 8008980 <HAL_DMA_Start_IT+0x110>
  20056. 8008970: 68fb ldr r3, [r7, #12]
  20057. 8008972: 681b ldr r3, [r3, #0]
  20058. 8008974: 681a ldr r2, [r3, #0]
  20059. 8008976: 68fb ldr r3, [r7, #12]
  20060. 8008978: 681b ldr r3, [r3, #0]
  20061. 800897a: f022 0201 bic.w r2, r2, #1
  20062. 800897e: 601a str r2, [r3, #0]
  20063. /* Configure the source, destination address and the data length */
  20064. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  20065. 8008980: 683b ldr r3, [r7, #0]
  20066. 8008982: 687a ldr r2, [r7, #4]
  20067. 8008984: 68b9 ldr r1, [r7, #8]
  20068. 8008986: 68f8 ldr r0, [r7, #12]
  20069. 8008988: f001 fe6a bl 800a660 <DMA_SetConfig>
  20070. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20071. 800898c: 68fb ldr r3, [r7, #12]
  20072. 800898e: 681b ldr r3, [r3, #0]
  20073. 8008990: 4a34 ldr r2, [pc, #208] @ (8008a64 <HAL_DMA_Start_IT+0x1f4>)
  20074. 8008992: 4293 cmp r3, r2
  20075. 8008994: d04a beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20076. 8008996: 68fb ldr r3, [r7, #12]
  20077. 8008998: 681b ldr r3, [r3, #0]
  20078. 800899a: 4a33 ldr r2, [pc, #204] @ (8008a68 <HAL_DMA_Start_IT+0x1f8>)
  20079. 800899c: 4293 cmp r3, r2
  20080. 800899e: d045 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20081. 80089a0: 68fb ldr r3, [r7, #12]
  20082. 80089a2: 681b ldr r3, [r3, #0]
  20083. 80089a4: 4a31 ldr r2, [pc, #196] @ (8008a6c <HAL_DMA_Start_IT+0x1fc>)
  20084. 80089a6: 4293 cmp r3, r2
  20085. 80089a8: d040 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20086. 80089aa: 68fb ldr r3, [r7, #12]
  20087. 80089ac: 681b ldr r3, [r3, #0]
  20088. 80089ae: 4a30 ldr r2, [pc, #192] @ (8008a70 <HAL_DMA_Start_IT+0x200>)
  20089. 80089b0: 4293 cmp r3, r2
  20090. 80089b2: d03b beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20091. 80089b4: 68fb ldr r3, [r7, #12]
  20092. 80089b6: 681b ldr r3, [r3, #0]
  20093. 80089b8: 4a2e ldr r2, [pc, #184] @ (8008a74 <HAL_DMA_Start_IT+0x204>)
  20094. 80089ba: 4293 cmp r3, r2
  20095. 80089bc: d036 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20096. 80089be: 68fb ldr r3, [r7, #12]
  20097. 80089c0: 681b ldr r3, [r3, #0]
  20098. 80089c2: 4a2d ldr r2, [pc, #180] @ (8008a78 <HAL_DMA_Start_IT+0x208>)
  20099. 80089c4: 4293 cmp r3, r2
  20100. 80089c6: d031 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20101. 80089c8: 68fb ldr r3, [r7, #12]
  20102. 80089ca: 681b ldr r3, [r3, #0]
  20103. 80089cc: 4a2b ldr r2, [pc, #172] @ (8008a7c <HAL_DMA_Start_IT+0x20c>)
  20104. 80089ce: 4293 cmp r3, r2
  20105. 80089d0: d02c beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20106. 80089d2: 68fb ldr r3, [r7, #12]
  20107. 80089d4: 681b ldr r3, [r3, #0]
  20108. 80089d6: 4a2a ldr r2, [pc, #168] @ (8008a80 <HAL_DMA_Start_IT+0x210>)
  20109. 80089d8: 4293 cmp r3, r2
  20110. 80089da: d027 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20111. 80089dc: 68fb ldr r3, [r7, #12]
  20112. 80089de: 681b ldr r3, [r3, #0]
  20113. 80089e0: 4a28 ldr r2, [pc, #160] @ (8008a84 <HAL_DMA_Start_IT+0x214>)
  20114. 80089e2: 4293 cmp r3, r2
  20115. 80089e4: d022 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20116. 80089e6: 68fb ldr r3, [r7, #12]
  20117. 80089e8: 681b ldr r3, [r3, #0]
  20118. 80089ea: 4a27 ldr r2, [pc, #156] @ (8008a88 <HAL_DMA_Start_IT+0x218>)
  20119. 80089ec: 4293 cmp r3, r2
  20120. 80089ee: d01d beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20121. 80089f0: 68fb ldr r3, [r7, #12]
  20122. 80089f2: 681b ldr r3, [r3, #0]
  20123. 80089f4: 4a25 ldr r2, [pc, #148] @ (8008a8c <HAL_DMA_Start_IT+0x21c>)
  20124. 80089f6: 4293 cmp r3, r2
  20125. 80089f8: d018 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20126. 80089fa: 68fb ldr r3, [r7, #12]
  20127. 80089fc: 681b ldr r3, [r3, #0]
  20128. 80089fe: 4a24 ldr r2, [pc, #144] @ (8008a90 <HAL_DMA_Start_IT+0x220>)
  20129. 8008a00: 4293 cmp r3, r2
  20130. 8008a02: d013 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20131. 8008a04: 68fb ldr r3, [r7, #12]
  20132. 8008a06: 681b ldr r3, [r3, #0]
  20133. 8008a08: 4a22 ldr r2, [pc, #136] @ (8008a94 <HAL_DMA_Start_IT+0x224>)
  20134. 8008a0a: 4293 cmp r3, r2
  20135. 8008a0c: d00e beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20136. 8008a0e: 68fb ldr r3, [r7, #12]
  20137. 8008a10: 681b ldr r3, [r3, #0]
  20138. 8008a12: 4a21 ldr r2, [pc, #132] @ (8008a98 <HAL_DMA_Start_IT+0x228>)
  20139. 8008a14: 4293 cmp r3, r2
  20140. 8008a16: d009 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20141. 8008a18: 68fb ldr r3, [r7, #12]
  20142. 8008a1a: 681b ldr r3, [r3, #0]
  20143. 8008a1c: 4a1f ldr r2, [pc, #124] @ (8008a9c <HAL_DMA_Start_IT+0x22c>)
  20144. 8008a1e: 4293 cmp r3, r2
  20145. 8008a20: d004 beq.n 8008a2c <HAL_DMA_Start_IT+0x1bc>
  20146. 8008a22: 68fb ldr r3, [r7, #12]
  20147. 8008a24: 681b ldr r3, [r3, #0]
  20148. 8008a26: 4a1e ldr r2, [pc, #120] @ (8008aa0 <HAL_DMA_Start_IT+0x230>)
  20149. 8008a28: 4293 cmp r3, r2
  20150. 8008a2a: d101 bne.n 8008a30 <HAL_DMA_Start_IT+0x1c0>
  20151. 8008a2c: 2301 movs r3, #1
  20152. 8008a2e: e000 b.n 8008a32 <HAL_DMA_Start_IT+0x1c2>
  20153. 8008a30: 2300 movs r3, #0
  20154. 8008a32: 2b00 cmp r3, #0
  20155. 8008a34: d036 beq.n 8008aa4 <HAL_DMA_Start_IT+0x234>
  20156. {
  20157. /* Enable Common interrupts*/
  20158. MODIFY_REG(((DMA_Stream_TypeDef *)hdma->Instance)->CR, (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT), (DMA_IT_TC | DMA_IT_TE | DMA_IT_DME));
  20159. 8008a36: 68fb ldr r3, [r7, #12]
  20160. 8008a38: 681b ldr r3, [r3, #0]
  20161. 8008a3a: 681b ldr r3, [r3, #0]
  20162. 8008a3c: f023 021e bic.w r2, r3, #30
  20163. 8008a40: 68fb ldr r3, [r7, #12]
  20164. 8008a42: 681b ldr r3, [r3, #0]
  20165. 8008a44: f042 0216 orr.w r2, r2, #22
  20166. 8008a48: 601a str r2, [r3, #0]
  20167. if(hdma->XferHalfCpltCallback != NULL)
  20168. 8008a4a: 68fb ldr r3, [r7, #12]
  20169. 8008a4c: 6c1b ldr r3, [r3, #64] @ 0x40
  20170. 8008a4e: 2b00 cmp r3, #0
  20171. 8008a50: d03e beq.n 8008ad0 <HAL_DMA_Start_IT+0x260>
  20172. {
  20173. /* Enable Half Transfer IT if corresponding Callback is set */
  20174. ((DMA_Stream_TypeDef *)hdma->Instance)->CR |= DMA_IT_HT;
  20175. 8008a52: 68fb ldr r3, [r7, #12]
  20176. 8008a54: 681b ldr r3, [r3, #0]
  20177. 8008a56: 681a ldr r2, [r3, #0]
  20178. 8008a58: 68fb ldr r3, [r7, #12]
  20179. 8008a5a: 681b ldr r3, [r3, #0]
  20180. 8008a5c: f042 0208 orr.w r2, r2, #8
  20181. 8008a60: 601a str r2, [r3, #0]
  20182. 8008a62: e035 b.n 8008ad0 <HAL_DMA_Start_IT+0x260>
  20183. 8008a64: 40020010 .word 0x40020010
  20184. 8008a68: 40020028 .word 0x40020028
  20185. 8008a6c: 40020040 .word 0x40020040
  20186. 8008a70: 40020058 .word 0x40020058
  20187. 8008a74: 40020070 .word 0x40020070
  20188. 8008a78: 40020088 .word 0x40020088
  20189. 8008a7c: 400200a0 .word 0x400200a0
  20190. 8008a80: 400200b8 .word 0x400200b8
  20191. 8008a84: 40020410 .word 0x40020410
  20192. 8008a88: 40020428 .word 0x40020428
  20193. 8008a8c: 40020440 .word 0x40020440
  20194. 8008a90: 40020458 .word 0x40020458
  20195. 8008a94: 40020470 .word 0x40020470
  20196. 8008a98: 40020488 .word 0x40020488
  20197. 8008a9c: 400204a0 .word 0x400204a0
  20198. 8008aa0: 400204b8 .word 0x400204b8
  20199. }
  20200. }
  20201. else /* BDMA channel */
  20202. {
  20203. /* Enable Common interrupts */
  20204. MODIFY_REG(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR, (BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE), (BDMA_CCR_TCIE | BDMA_CCR_TEIE));
  20205. 8008aa4: 68fb ldr r3, [r7, #12]
  20206. 8008aa6: 681b ldr r3, [r3, #0]
  20207. 8008aa8: 681b ldr r3, [r3, #0]
  20208. 8008aaa: f023 020e bic.w r2, r3, #14
  20209. 8008aae: 68fb ldr r3, [r7, #12]
  20210. 8008ab0: 681b ldr r3, [r3, #0]
  20211. 8008ab2: f042 020a orr.w r2, r2, #10
  20212. 8008ab6: 601a str r2, [r3, #0]
  20213. if(hdma->XferHalfCpltCallback != NULL)
  20214. 8008ab8: 68fb ldr r3, [r7, #12]
  20215. 8008aba: 6c1b ldr r3, [r3, #64] @ 0x40
  20216. 8008abc: 2b00 cmp r3, #0
  20217. 8008abe: d007 beq.n 8008ad0 <HAL_DMA_Start_IT+0x260>
  20218. {
  20219. /*Enable Half Transfer IT if corresponding Callback is set */
  20220. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR |= BDMA_CCR_HTIE;
  20221. 8008ac0: 68fb ldr r3, [r7, #12]
  20222. 8008ac2: 681b ldr r3, [r3, #0]
  20223. 8008ac4: 681a ldr r2, [r3, #0]
  20224. 8008ac6: 68fb ldr r3, [r7, #12]
  20225. 8008ac8: 681b ldr r3, [r3, #0]
  20226. 8008aca: f042 0204 orr.w r2, r2, #4
  20227. 8008ace: 601a str r2, [r3, #0]
  20228. }
  20229. }
  20230. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20231. 8008ad0: 68fb ldr r3, [r7, #12]
  20232. 8008ad2: 681b ldr r3, [r3, #0]
  20233. 8008ad4: 4a83 ldr r2, [pc, #524] @ (8008ce4 <HAL_DMA_Start_IT+0x474>)
  20234. 8008ad6: 4293 cmp r3, r2
  20235. 8008ad8: d072 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20236. 8008ada: 68fb ldr r3, [r7, #12]
  20237. 8008adc: 681b ldr r3, [r3, #0]
  20238. 8008ade: 4a82 ldr r2, [pc, #520] @ (8008ce8 <HAL_DMA_Start_IT+0x478>)
  20239. 8008ae0: 4293 cmp r3, r2
  20240. 8008ae2: d06d beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20241. 8008ae4: 68fb ldr r3, [r7, #12]
  20242. 8008ae6: 681b ldr r3, [r3, #0]
  20243. 8008ae8: 4a80 ldr r2, [pc, #512] @ (8008cec <HAL_DMA_Start_IT+0x47c>)
  20244. 8008aea: 4293 cmp r3, r2
  20245. 8008aec: d068 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20246. 8008aee: 68fb ldr r3, [r7, #12]
  20247. 8008af0: 681b ldr r3, [r3, #0]
  20248. 8008af2: 4a7f ldr r2, [pc, #508] @ (8008cf0 <HAL_DMA_Start_IT+0x480>)
  20249. 8008af4: 4293 cmp r3, r2
  20250. 8008af6: d063 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20251. 8008af8: 68fb ldr r3, [r7, #12]
  20252. 8008afa: 681b ldr r3, [r3, #0]
  20253. 8008afc: 4a7d ldr r2, [pc, #500] @ (8008cf4 <HAL_DMA_Start_IT+0x484>)
  20254. 8008afe: 4293 cmp r3, r2
  20255. 8008b00: d05e beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20256. 8008b02: 68fb ldr r3, [r7, #12]
  20257. 8008b04: 681b ldr r3, [r3, #0]
  20258. 8008b06: 4a7c ldr r2, [pc, #496] @ (8008cf8 <HAL_DMA_Start_IT+0x488>)
  20259. 8008b08: 4293 cmp r3, r2
  20260. 8008b0a: d059 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20261. 8008b0c: 68fb ldr r3, [r7, #12]
  20262. 8008b0e: 681b ldr r3, [r3, #0]
  20263. 8008b10: 4a7a ldr r2, [pc, #488] @ (8008cfc <HAL_DMA_Start_IT+0x48c>)
  20264. 8008b12: 4293 cmp r3, r2
  20265. 8008b14: d054 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20266. 8008b16: 68fb ldr r3, [r7, #12]
  20267. 8008b18: 681b ldr r3, [r3, #0]
  20268. 8008b1a: 4a79 ldr r2, [pc, #484] @ (8008d00 <HAL_DMA_Start_IT+0x490>)
  20269. 8008b1c: 4293 cmp r3, r2
  20270. 8008b1e: d04f beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20271. 8008b20: 68fb ldr r3, [r7, #12]
  20272. 8008b22: 681b ldr r3, [r3, #0]
  20273. 8008b24: 4a77 ldr r2, [pc, #476] @ (8008d04 <HAL_DMA_Start_IT+0x494>)
  20274. 8008b26: 4293 cmp r3, r2
  20275. 8008b28: d04a beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20276. 8008b2a: 68fb ldr r3, [r7, #12]
  20277. 8008b2c: 681b ldr r3, [r3, #0]
  20278. 8008b2e: 4a76 ldr r2, [pc, #472] @ (8008d08 <HAL_DMA_Start_IT+0x498>)
  20279. 8008b30: 4293 cmp r3, r2
  20280. 8008b32: d045 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20281. 8008b34: 68fb ldr r3, [r7, #12]
  20282. 8008b36: 681b ldr r3, [r3, #0]
  20283. 8008b38: 4a74 ldr r2, [pc, #464] @ (8008d0c <HAL_DMA_Start_IT+0x49c>)
  20284. 8008b3a: 4293 cmp r3, r2
  20285. 8008b3c: d040 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20286. 8008b3e: 68fb ldr r3, [r7, #12]
  20287. 8008b40: 681b ldr r3, [r3, #0]
  20288. 8008b42: 4a73 ldr r2, [pc, #460] @ (8008d10 <HAL_DMA_Start_IT+0x4a0>)
  20289. 8008b44: 4293 cmp r3, r2
  20290. 8008b46: d03b beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20291. 8008b48: 68fb ldr r3, [r7, #12]
  20292. 8008b4a: 681b ldr r3, [r3, #0]
  20293. 8008b4c: 4a71 ldr r2, [pc, #452] @ (8008d14 <HAL_DMA_Start_IT+0x4a4>)
  20294. 8008b4e: 4293 cmp r3, r2
  20295. 8008b50: d036 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20296. 8008b52: 68fb ldr r3, [r7, #12]
  20297. 8008b54: 681b ldr r3, [r3, #0]
  20298. 8008b56: 4a70 ldr r2, [pc, #448] @ (8008d18 <HAL_DMA_Start_IT+0x4a8>)
  20299. 8008b58: 4293 cmp r3, r2
  20300. 8008b5a: d031 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20301. 8008b5c: 68fb ldr r3, [r7, #12]
  20302. 8008b5e: 681b ldr r3, [r3, #0]
  20303. 8008b60: 4a6e ldr r2, [pc, #440] @ (8008d1c <HAL_DMA_Start_IT+0x4ac>)
  20304. 8008b62: 4293 cmp r3, r2
  20305. 8008b64: d02c beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20306. 8008b66: 68fb ldr r3, [r7, #12]
  20307. 8008b68: 681b ldr r3, [r3, #0]
  20308. 8008b6a: 4a6d ldr r2, [pc, #436] @ (8008d20 <HAL_DMA_Start_IT+0x4b0>)
  20309. 8008b6c: 4293 cmp r3, r2
  20310. 8008b6e: d027 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20311. 8008b70: 68fb ldr r3, [r7, #12]
  20312. 8008b72: 681b ldr r3, [r3, #0]
  20313. 8008b74: 4a6b ldr r2, [pc, #428] @ (8008d24 <HAL_DMA_Start_IT+0x4b4>)
  20314. 8008b76: 4293 cmp r3, r2
  20315. 8008b78: d022 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20316. 8008b7a: 68fb ldr r3, [r7, #12]
  20317. 8008b7c: 681b ldr r3, [r3, #0]
  20318. 8008b7e: 4a6a ldr r2, [pc, #424] @ (8008d28 <HAL_DMA_Start_IT+0x4b8>)
  20319. 8008b80: 4293 cmp r3, r2
  20320. 8008b82: d01d beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20321. 8008b84: 68fb ldr r3, [r7, #12]
  20322. 8008b86: 681b ldr r3, [r3, #0]
  20323. 8008b88: 4a68 ldr r2, [pc, #416] @ (8008d2c <HAL_DMA_Start_IT+0x4bc>)
  20324. 8008b8a: 4293 cmp r3, r2
  20325. 8008b8c: d018 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20326. 8008b8e: 68fb ldr r3, [r7, #12]
  20327. 8008b90: 681b ldr r3, [r3, #0]
  20328. 8008b92: 4a67 ldr r2, [pc, #412] @ (8008d30 <HAL_DMA_Start_IT+0x4c0>)
  20329. 8008b94: 4293 cmp r3, r2
  20330. 8008b96: d013 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20331. 8008b98: 68fb ldr r3, [r7, #12]
  20332. 8008b9a: 681b ldr r3, [r3, #0]
  20333. 8008b9c: 4a65 ldr r2, [pc, #404] @ (8008d34 <HAL_DMA_Start_IT+0x4c4>)
  20334. 8008b9e: 4293 cmp r3, r2
  20335. 8008ba0: d00e beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20336. 8008ba2: 68fb ldr r3, [r7, #12]
  20337. 8008ba4: 681b ldr r3, [r3, #0]
  20338. 8008ba6: 4a64 ldr r2, [pc, #400] @ (8008d38 <HAL_DMA_Start_IT+0x4c8>)
  20339. 8008ba8: 4293 cmp r3, r2
  20340. 8008baa: d009 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20341. 8008bac: 68fb ldr r3, [r7, #12]
  20342. 8008bae: 681b ldr r3, [r3, #0]
  20343. 8008bb0: 4a62 ldr r2, [pc, #392] @ (8008d3c <HAL_DMA_Start_IT+0x4cc>)
  20344. 8008bb2: 4293 cmp r3, r2
  20345. 8008bb4: d004 beq.n 8008bc0 <HAL_DMA_Start_IT+0x350>
  20346. 8008bb6: 68fb ldr r3, [r7, #12]
  20347. 8008bb8: 681b ldr r3, [r3, #0]
  20348. 8008bba: 4a61 ldr r2, [pc, #388] @ (8008d40 <HAL_DMA_Start_IT+0x4d0>)
  20349. 8008bbc: 4293 cmp r3, r2
  20350. 8008bbe: d101 bne.n 8008bc4 <HAL_DMA_Start_IT+0x354>
  20351. 8008bc0: 2301 movs r3, #1
  20352. 8008bc2: e000 b.n 8008bc6 <HAL_DMA_Start_IT+0x356>
  20353. 8008bc4: 2300 movs r3, #0
  20354. 8008bc6: 2b00 cmp r3, #0
  20355. 8008bc8: d01a beq.n 8008c00 <HAL_DMA_Start_IT+0x390>
  20356. {
  20357. /* Check if DMAMUX Synchronization is enabled */
  20358. if((hdma->DMAmuxChannel->CCR & DMAMUX_CxCR_SE) != 0U)
  20359. 8008bca: 68fb ldr r3, [r7, #12]
  20360. 8008bcc: 6e1b ldr r3, [r3, #96] @ 0x60
  20361. 8008bce: 681b ldr r3, [r3, #0]
  20362. 8008bd0: f403 3380 and.w r3, r3, #65536 @ 0x10000
  20363. 8008bd4: 2b00 cmp r3, #0
  20364. 8008bd6: d007 beq.n 8008be8 <HAL_DMA_Start_IT+0x378>
  20365. {
  20366. /* Enable DMAMUX sync overrun IT*/
  20367. hdma->DMAmuxChannel->CCR |= DMAMUX_CxCR_SOIE;
  20368. 8008bd8: 68fb ldr r3, [r7, #12]
  20369. 8008bda: 6e1b ldr r3, [r3, #96] @ 0x60
  20370. 8008bdc: 681a ldr r2, [r3, #0]
  20371. 8008bde: 68fb ldr r3, [r7, #12]
  20372. 8008be0: 6e1b ldr r3, [r3, #96] @ 0x60
  20373. 8008be2: f442 7280 orr.w r2, r2, #256 @ 0x100
  20374. 8008be6: 601a str r2, [r3, #0]
  20375. }
  20376. if(hdma->DMAmuxRequestGen != 0U)
  20377. 8008be8: 68fb ldr r3, [r7, #12]
  20378. 8008bea: 6edb ldr r3, [r3, #108] @ 0x6c
  20379. 8008bec: 2b00 cmp r3, #0
  20380. 8008bee: d007 beq.n 8008c00 <HAL_DMA_Start_IT+0x390>
  20381. {
  20382. /* if using DMAMUX request generator, enable the DMAMUX request generator overrun IT*/
  20383. /* enable the request gen overrun IT */
  20384. hdma->DMAmuxRequestGen->RGCR |= DMAMUX_RGxCR_OIE;
  20385. 8008bf0: 68fb ldr r3, [r7, #12]
  20386. 8008bf2: 6edb ldr r3, [r3, #108] @ 0x6c
  20387. 8008bf4: 681a ldr r2, [r3, #0]
  20388. 8008bf6: 68fb ldr r3, [r7, #12]
  20389. 8008bf8: 6edb ldr r3, [r3, #108] @ 0x6c
  20390. 8008bfa: f442 7280 orr.w r2, r2, #256 @ 0x100
  20391. 8008bfe: 601a str r2, [r3, #0]
  20392. }
  20393. }
  20394. /* Enable the Peripheral */
  20395. __HAL_DMA_ENABLE(hdma);
  20396. 8008c00: 68fb ldr r3, [r7, #12]
  20397. 8008c02: 681b ldr r3, [r3, #0]
  20398. 8008c04: 4a37 ldr r2, [pc, #220] @ (8008ce4 <HAL_DMA_Start_IT+0x474>)
  20399. 8008c06: 4293 cmp r3, r2
  20400. 8008c08: d04a beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20401. 8008c0a: 68fb ldr r3, [r7, #12]
  20402. 8008c0c: 681b ldr r3, [r3, #0]
  20403. 8008c0e: 4a36 ldr r2, [pc, #216] @ (8008ce8 <HAL_DMA_Start_IT+0x478>)
  20404. 8008c10: 4293 cmp r3, r2
  20405. 8008c12: d045 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20406. 8008c14: 68fb ldr r3, [r7, #12]
  20407. 8008c16: 681b ldr r3, [r3, #0]
  20408. 8008c18: 4a34 ldr r2, [pc, #208] @ (8008cec <HAL_DMA_Start_IT+0x47c>)
  20409. 8008c1a: 4293 cmp r3, r2
  20410. 8008c1c: d040 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20411. 8008c1e: 68fb ldr r3, [r7, #12]
  20412. 8008c20: 681b ldr r3, [r3, #0]
  20413. 8008c22: 4a33 ldr r2, [pc, #204] @ (8008cf0 <HAL_DMA_Start_IT+0x480>)
  20414. 8008c24: 4293 cmp r3, r2
  20415. 8008c26: d03b beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20416. 8008c28: 68fb ldr r3, [r7, #12]
  20417. 8008c2a: 681b ldr r3, [r3, #0]
  20418. 8008c2c: 4a31 ldr r2, [pc, #196] @ (8008cf4 <HAL_DMA_Start_IT+0x484>)
  20419. 8008c2e: 4293 cmp r3, r2
  20420. 8008c30: d036 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20421. 8008c32: 68fb ldr r3, [r7, #12]
  20422. 8008c34: 681b ldr r3, [r3, #0]
  20423. 8008c36: 4a30 ldr r2, [pc, #192] @ (8008cf8 <HAL_DMA_Start_IT+0x488>)
  20424. 8008c38: 4293 cmp r3, r2
  20425. 8008c3a: d031 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20426. 8008c3c: 68fb ldr r3, [r7, #12]
  20427. 8008c3e: 681b ldr r3, [r3, #0]
  20428. 8008c40: 4a2e ldr r2, [pc, #184] @ (8008cfc <HAL_DMA_Start_IT+0x48c>)
  20429. 8008c42: 4293 cmp r3, r2
  20430. 8008c44: d02c beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20431. 8008c46: 68fb ldr r3, [r7, #12]
  20432. 8008c48: 681b ldr r3, [r3, #0]
  20433. 8008c4a: 4a2d ldr r2, [pc, #180] @ (8008d00 <HAL_DMA_Start_IT+0x490>)
  20434. 8008c4c: 4293 cmp r3, r2
  20435. 8008c4e: d027 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20436. 8008c50: 68fb ldr r3, [r7, #12]
  20437. 8008c52: 681b ldr r3, [r3, #0]
  20438. 8008c54: 4a2b ldr r2, [pc, #172] @ (8008d04 <HAL_DMA_Start_IT+0x494>)
  20439. 8008c56: 4293 cmp r3, r2
  20440. 8008c58: d022 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20441. 8008c5a: 68fb ldr r3, [r7, #12]
  20442. 8008c5c: 681b ldr r3, [r3, #0]
  20443. 8008c5e: 4a2a ldr r2, [pc, #168] @ (8008d08 <HAL_DMA_Start_IT+0x498>)
  20444. 8008c60: 4293 cmp r3, r2
  20445. 8008c62: d01d beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20446. 8008c64: 68fb ldr r3, [r7, #12]
  20447. 8008c66: 681b ldr r3, [r3, #0]
  20448. 8008c68: 4a28 ldr r2, [pc, #160] @ (8008d0c <HAL_DMA_Start_IT+0x49c>)
  20449. 8008c6a: 4293 cmp r3, r2
  20450. 8008c6c: d018 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20451. 8008c6e: 68fb ldr r3, [r7, #12]
  20452. 8008c70: 681b ldr r3, [r3, #0]
  20453. 8008c72: 4a27 ldr r2, [pc, #156] @ (8008d10 <HAL_DMA_Start_IT+0x4a0>)
  20454. 8008c74: 4293 cmp r3, r2
  20455. 8008c76: d013 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20456. 8008c78: 68fb ldr r3, [r7, #12]
  20457. 8008c7a: 681b ldr r3, [r3, #0]
  20458. 8008c7c: 4a25 ldr r2, [pc, #148] @ (8008d14 <HAL_DMA_Start_IT+0x4a4>)
  20459. 8008c7e: 4293 cmp r3, r2
  20460. 8008c80: d00e beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20461. 8008c82: 68fb ldr r3, [r7, #12]
  20462. 8008c84: 681b ldr r3, [r3, #0]
  20463. 8008c86: 4a24 ldr r2, [pc, #144] @ (8008d18 <HAL_DMA_Start_IT+0x4a8>)
  20464. 8008c88: 4293 cmp r3, r2
  20465. 8008c8a: d009 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20466. 8008c8c: 68fb ldr r3, [r7, #12]
  20467. 8008c8e: 681b ldr r3, [r3, #0]
  20468. 8008c90: 4a22 ldr r2, [pc, #136] @ (8008d1c <HAL_DMA_Start_IT+0x4ac>)
  20469. 8008c92: 4293 cmp r3, r2
  20470. 8008c94: d004 beq.n 8008ca0 <HAL_DMA_Start_IT+0x430>
  20471. 8008c96: 68fb ldr r3, [r7, #12]
  20472. 8008c98: 681b ldr r3, [r3, #0]
  20473. 8008c9a: 4a21 ldr r2, [pc, #132] @ (8008d20 <HAL_DMA_Start_IT+0x4b0>)
  20474. 8008c9c: 4293 cmp r3, r2
  20475. 8008c9e: d108 bne.n 8008cb2 <HAL_DMA_Start_IT+0x442>
  20476. 8008ca0: 68fb ldr r3, [r7, #12]
  20477. 8008ca2: 681b ldr r3, [r3, #0]
  20478. 8008ca4: 681a ldr r2, [r3, #0]
  20479. 8008ca6: 68fb ldr r3, [r7, #12]
  20480. 8008ca8: 681b ldr r3, [r3, #0]
  20481. 8008caa: f042 0201 orr.w r2, r2, #1
  20482. 8008cae: 601a str r2, [r3, #0]
  20483. 8008cb0: e012 b.n 8008cd8 <HAL_DMA_Start_IT+0x468>
  20484. 8008cb2: 68fb ldr r3, [r7, #12]
  20485. 8008cb4: 681b ldr r3, [r3, #0]
  20486. 8008cb6: 681a ldr r2, [r3, #0]
  20487. 8008cb8: 68fb ldr r3, [r7, #12]
  20488. 8008cba: 681b ldr r3, [r3, #0]
  20489. 8008cbc: f042 0201 orr.w r2, r2, #1
  20490. 8008cc0: 601a str r2, [r3, #0]
  20491. 8008cc2: e009 b.n 8008cd8 <HAL_DMA_Start_IT+0x468>
  20492. }
  20493. else
  20494. {
  20495. /* Set the error code to busy */
  20496. hdma->ErrorCode = HAL_DMA_ERROR_BUSY;
  20497. 8008cc4: 68fb ldr r3, [r7, #12]
  20498. 8008cc6: f44f 6200 mov.w r2, #2048 @ 0x800
  20499. 8008cca: 655a str r2, [r3, #84] @ 0x54
  20500. /* Process unlocked */
  20501. __HAL_UNLOCK(hdma);
  20502. 8008ccc: 68fb ldr r3, [r7, #12]
  20503. 8008cce: 2200 movs r2, #0
  20504. 8008cd0: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20505. /* Return error status */
  20506. status = HAL_ERROR;
  20507. 8008cd4: 2301 movs r3, #1
  20508. 8008cd6: 75fb strb r3, [r7, #23]
  20509. }
  20510. return status;
  20511. 8008cd8: 7dfb ldrb r3, [r7, #23]
  20512. }
  20513. 8008cda: 4618 mov r0, r3
  20514. 8008cdc: 3718 adds r7, #24
  20515. 8008cde: 46bd mov sp, r7
  20516. 8008ce0: bd80 pop {r7, pc}
  20517. 8008ce2: bf00 nop
  20518. 8008ce4: 40020010 .word 0x40020010
  20519. 8008ce8: 40020028 .word 0x40020028
  20520. 8008cec: 40020040 .word 0x40020040
  20521. 8008cf0: 40020058 .word 0x40020058
  20522. 8008cf4: 40020070 .word 0x40020070
  20523. 8008cf8: 40020088 .word 0x40020088
  20524. 8008cfc: 400200a0 .word 0x400200a0
  20525. 8008d00: 400200b8 .word 0x400200b8
  20526. 8008d04: 40020410 .word 0x40020410
  20527. 8008d08: 40020428 .word 0x40020428
  20528. 8008d0c: 40020440 .word 0x40020440
  20529. 8008d10: 40020458 .word 0x40020458
  20530. 8008d14: 40020470 .word 0x40020470
  20531. 8008d18: 40020488 .word 0x40020488
  20532. 8008d1c: 400204a0 .word 0x400204a0
  20533. 8008d20: 400204b8 .word 0x400204b8
  20534. 8008d24: 58025408 .word 0x58025408
  20535. 8008d28: 5802541c .word 0x5802541c
  20536. 8008d2c: 58025430 .word 0x58025430
  20537. 8008d30: 58025444 .word 0x58025444
  20538. 8008d34: 58025458 .word 0x58025458
  20539. 8008d38: 5802546c .word 0x5802546c
  20540. 8008d3c: 58025480 .word 0x58025480
  20541. 8008d40: 58025494 .word 0x58025494
  20542. 08008d44 <HAL_DMA_Abort>:
  20543. * and the Stream will be effectively disabled only after the transfer of
  20544. * this single data is finished.
  20545. * @retval HAL status
  20546. */
  20547. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  20548. {
  20549. 8008d44: b580 push {r7, lr}
  20550. 8008d46: b086 sub sp, #24
  20551. 8008d48: af00 add r7, sp, #0
  20552. 8008d4a: 6078 str r0, [r7, #4]
  20553. /* calculate DMA base and stream number */
  20554. DMA_Base_Registers *regs_dma;
  20555. BDMA_Base_Registers *regs_bdma;
  20556. const __IO uint32_t *enableRegister;
  20557. uint32_t tickstart = HAL_GetTick();
  20558. 8008d4c: f7fc fda6 bl 800589c <HAL_GetTick>
  20559. 8008d50: 6138 str r0, [r7, #16]
  20560. /* Check the DMA peripheral handle */
  20561. if(hdma == NULL)
  20562. 8008d52: 687b ldr r3, [r7, #4]
  20563. 8008d54: 2b00 cmp r3, #0
  20564. 8008d56: d101 bne.n 8008d5c <HAL_DMA_Abort+0x18>
  20565. {
  20566. return HAL_ERROR;
  20567. 8008d58: 2301 movs r3, #1
  20568. 8008d5a: e2dc b.n 8009316 <HAL_DMA_Abort+0x5d2>
  20569. }
  20570. /* Check the DMA peripheral state */
  20571. if(hdma->State != HAL_DMA_STATE_BUSY)
  20572. 8008d5c: 687b ldr r3, [r7, #4]
  20573. 8008d5e: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  20574. 8008d62: b2db uxtb r3, r3
  20575. 8008d64: 2b02 cmp r3, #2
  20576. 8008d66: d008 beq.n 8008d7a <HAL_DMA_Abort+0x36>
  20577. {
  20578. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  20579. 8008d68: 687b ldr r3, [r7, #4]
  20580. 8008d6a: 2280 movs r2, #128 @ 0x80
  20581. 8008d6c: 655a str r2, [r3, #84] @ 0x54
  20582. /* Process Unlocked */
  20583. __HAL_UNLOCK(hdma);
  20584. 8008d6e: 687b ldr r3, [r7, #4]
  20585. 8008d70: 2200 movs r2, #0
  20586. 8008d72: f883 2034 strb.w r2, [r3, #52] @ 0x34
  20587. return HAL_ERROR;
  20588. 8008d76: 2301 movs r3, #1
  20589. 8008d78: e2cd b.n 8009316 <HAL_DMA_Abort+0x5d2>
  20590. }
  20591. else
  20592. {
  20593. /* Disable all the transfer interrupts */
  20594. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  20595. 8008d7a: 687b ldr r3, [r7, #4]
  20596. 8008d7c: 681b ldr r3, [r3, #0]
  20597. 8008d7e: 4a76 ldr r2, [pc, #472] @ (8008f58 <HAL_DMA_Abort+0x214>)
  20598. 8008d80: 4293 cmp r3, r2
  20599. 8008d82: d04a beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20600. 8008d84: 687b ldr r3, [r7, #4]
  20601. 8008d86: 681b ldr r3, [r3, #0]
  20602. 8008d88: 4a74 ldr r2, [pc, #464] @ (8008f5c <HAL_DMA_Abort+0x218>)
  20603. 8008d8a: 4293 cmp r3, r2
  20604. 8008d8c: d045 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20605. 8008d8e: 687b ldr r3, [r7, #4]
  20606. 8008d90: 681b ldr r3, [r3, #0]
  20607. 8008d92: 4a73 ldr r2, [pc, #460] @ (8008f60 <HAL_DMA_Abort+0x21c>)
  20608. 8008d94: 4293 cmp r3, r2
  20609. 8008d96: d040 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20610. 8008d98: 687b ldr r3, [r7, #4]
  20611. 8008d9a: 681b ldr r3, [r3, #0]
  20612. 8008d9c: 4a71 ldr r2, [pc, #452] @ (8008f64 <HAL_DMA_Abort+0x220>)
  20613. 8008d9e: 4293 cmp r3, r2
  20614. 8008da0: d03b beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20615. 8008da2: 687b ldr r3, [r7, #4]
  20616. 8008da4: 681b ldr r3, [r3, #0]
  20617. 8008da6: 4a70 ldr r2, [pc, #448] @ (8008f68 <HAL_DMA_Abort+0x224>)
  20618. 8008da8: 4293 cmp r3, r2
  20619. 8008daa: d036 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20620. 8008dac: 687b ldr r3, [r7, #4]
  20621. 8008dae: 681b ldr r3, [r3, #0]
  20622. 8008db0: 4a6e ldr r2, [pc, #440] @ (8008f6c <HAL_DMA_Abort+0x228>)
  20623. 8008db2: 4293 cmp r3, r2
  20624. 8008db4: d031 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20625. 8008db6: 687b ldr r3, [r7, #4]
  20626. 8008db8: 681b ldr r3, [r3, #0]
  20627. 8008dba: 4a6d ldr r2, [pc, #436] @ (8008f70 <HAL_DMA_Abort+0x22c>)
  20628. 8008dbc: 4293 cmp r3, r2
  20629. 8008dbe: d02c beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20630. 8008dc0: 687b ldr r3, [r7, #4]
  20631. 8008dc2: 681b ldr r3, [r3, #0]
  20632. 8008dc4: 4a6b ldr r2, [pc, #428] @ (8008f74 <HAL_DMA_Abort+0x230>)
  20633. 8008dc6: 4293 cmp r3, r2
  20634. 8008dc8: d027 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20635. 8008dca: 687b ldr r3, [r7, #4]
  20636. 8008dcc: 681b ldr r3, [r3, #0]
  20637. 8008dce: 4a6a ldr r2, [pc, #424] @ (8008f78 <HAL_DMA_Abort+0x234>)
  20638. 8008dd0: 4293 cmp r3, r2
  20639. 8008dd2: d022 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20640. 8008dd4: 687b ldr r3, [r7, #4]
  20641. 8008dd6: 681b ldr r3, [r3, #0]
  20642. 8008dd8: 4a68 ldr r2, [pc, #416] @ (8008f7c <HAL_DMA_Abort+0x238>)
  20643. 8008dda: 4293 cmp r3, r2
  20644. 8008ddc: d01d beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20645. 8008dde: 687b ldr r3, [r7, #4]
  20646. 8008de0: 681b ldr r3, [r3, #0]
  20647. 8008de2: 4a67 ldr r2, [pc, #412] @ (8008f80 <HAL_DMA_Abort+0x23c>)
  20648. 8008de4: 4293 cmp r3, r2
  20649. 8008de6: d018 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20650. 8008de8: 687b ldr r3, [r7, #4]
  20651. 8008dea: 681b ldr r3, [r3, #0]
  20652. 8008dec: 4a65 ldr r2, [pc, #404] @ (8008f84 <HAL_DMA_Abort+0x240>)
  20653. 8008dee: 4293 cmp r3, r2
  20654. 8008df0: d013 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20655. 8008df2: 687b ldr r3, [r7, #4]
  20656. 8008df4: 681b ldr r3, [r3, #0]
  20657. 8008df6: 4a64 ldr r2, [pc, #400] @ (8008f88 <HAL_DMA_Abort+0x244>)
  20658. 8008df8: 4293 cmp r3, r2
  20659. 8008dfa: d00e beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20660. 8008dfc: 687b ldr r3, [r7, #4]
  20661. 8008dfe: 681b ldr r3, [r3, #0]
  20662. 8008e00: 4a62 ldr r2, [pc, #392] @ (8008f8c <HAL_DMA_Abort+0x248>)
  20663. 8008e02: 4293 cmp r3, r2
  20664. 8008e04: d009 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20665. 8008e06: 687b ldr r3, [r7, #4]
  20666. 8008e08: 681b ldr r3, [r3, #0]
  20667. 8008e0a: 4a61 ldr r2, [pc, #388] @ (8008f90 <HAL_DMA_Abort+0x24c>)
  20668. 8008e0c: 4293 cmp r3, r2
  20669. 8008e0e: d004 beq.n 8008e1a <HAL_DMA_Abort+0xd6>
  20670. 8008e10: 687b ldr r3, [r7, #4]
  20671. 8008e12: 681b ldr r3, [r3, #0]
  20672. 8008e14: 4a5f ldr r2, [pc, #380] @ (8008f94 <HAL_DMA_Abort+0x250>)
  20673. 8008e16: 4293 cmp r3, r2
  20674. 8008e18: d101 bne.n 8008e1e <HAL_DMA_Abort+0xda>
  20675. 8008e1a: 2301 movs r3, #1
  20676. 8008e1c: e000 b.n 8008e20 <HAL_DMA_Abort+0xdc>
  20677. 8008e1e: 2300 movs r3, #0
  20678. 8008e20: 2b00 cmp r3, #0
  20679. 8008e22: d013 beq.n 8008e4c <HAL_DMA_Abort+0x108>
  20680. {
  20681. /* Disable DMA All Interrupts */
  20682. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME | DMA_IT_HT);
  20683. 8008e24: 687b ldr r3, [r7, #4]
  20684. 8008e26: 681b ldr r3, [r3, #0]
  20685. 8008e28: 681a ldr r2, [r3, #0]
  20686. 8008e2a: 687b ldr r3, [r7, #4]
  20687. 8008e2c: 681b ldr r3, [r3, #0]
  20688. 8008e2e: f022 021e bic.w r2, r2, #30
  20689. 8008e32: 601a str r2, [r3, #0]
  20690. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  20691. 8008e34: 687b ldr r3, [r7, #4]
  20692. 8008e36: 681b ldr r3, [r3, #0]
  20693. 8008e38: 695a ldr r2, [r3, #20]
  20694. 8008e3a: 687b ldr r3, [r7, #4]
  20695. 8008e3c: 681b ldr r3, [r3, #0]
  20696. 8008e3e: f022 0280 bic.w r2, r2, #128 @ 0x80
  20697. 8008e42: 615a str r2, [r3, #20]
  20698. enableRegister = (__IO uint32_t *)(&(((DMA_Stream_TypeDef *)hdma->Instance)->CR));
  20699. 8008e44: 687b ldr r3, [r7, #4]
  20700. 8008e46: 681b ldr r3, [r3, #0]
  20701. 8008e48: 617b str r3, [r7, #20]
  20702. 8008e4a: e00a b.n 8008e62 <HAL_DMA_Abort+0x11e>
  20703. }
  20704. else /* BDMA channel */
  20705. {
  20706. /* Disable DMA All Interrupts */
  20707. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  20708. 8008e4c: 687b ldr r3, [r7, #4]
  20709. 8008e4e: 681b ldr r3, [r3, #0]
  20710. 8008e50: 681a ldr r2, [r3, #0]
  20711. 8008e52: 687b ldr r3, [r7, #4]
  20712. 8008e54: 681b ldr r3, [r3, #0]
  20713. 8008e56: f022 020e bic.w r2, r2, #14
  20714. 8008e5a: 601a str r2, [r3, #0]
  20715. enableRegister = (__IO uint32_t *)(&(((BDMA_Channel_TypeDef *)hdma->Instance)->CCR));
  20716. 8008e5c: 687b ldr r3, [r7, #4]
  20717. 8008e5e: 681b ldr r3, [r3, #0]
  20718. 8008e60: 617b str r3, [r7, #20]
  20719. }
  20720. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  20721. 8008e62: 687b ldr r3, [r7, #4]
  20722. 8008e64: 681b ldr r3, [r3, #0]
  20723. 8008e66: 4a3c ldr r2, [pc, #240] @ (8008f58 <HAL_DMA_Abort+0x214>)
  20724. 8008e68: 4293 cmp r3, r2
  20725. 8008e6a: d072 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20726. 8008e6c: 687b ldr r3, [r7, #4]
  20727. 8008e6e: 681b ldr r3, [r3, #0]
  20728. 8008e70: 4a3a ldr r2, [pc, #232] @ (8008f5c <HAL_DMA_Abort+0x218>)
  20729. 8008e72: 4293 cmp r3, r2
  20730. 8008e74: d06d beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20731. 8008e76: 687b ldr r3, [r7, #4]
  20732. 8008e78: 681b ldr r3, [r3, #0]
  20733. 8008e7a: 4a39 ldr r2, [pc, #228] @ (8008f60 <HAL_DMA_Abort+0x21c>)
  20734. 8008e7c: 4293 cmp r3, r2
  20735. 8008e7e: d068 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20736. 8008e80: 687b ldr r3, [r7, #4]
  20737. 8008e82: 681b ldr r3, [r3, #0]
  20738. 8008e84: 4a37 ldr r2, [pc, #220] @ (8008f64 <HAL_DMA_Abort+0x220>)
  20739. 8008e86: 4293 cmp r3, r2
  20740. 8008e88: d063 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20741. 8008e8a: 687b ldr r3, [r7, #4]
  20742. 8008e8c: 681b ldr r3, [r3, #0]
  20743. 8008e8e: 4a36 ldr r2, [pc, #216] @ (8008f68 <HAL_DMA_Abort+0x224>)
  20744. 8008e90: 4293 cmp r3, r2
  20745. 8008e92: d05e beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20746. 8008e94: 687b ldr r3, [r7, #4]
  20747. 8008e96: 681b ldr r3, [r3, #0]
  20748. 8008e98: 4a34 ldr r2, [pc, #208] @ (8008f6c <HAL_DMA_Abort+0x228>)
  20749. 8008e9a: 4293 cmp r3, r2
  20750. 8008e9c: d059 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20751. 8008e9e: 687b ldr r3, [r7, #4]
  20752. 8008ea0: 681b ldr r3, [r3, #0]
  20753. 8008ea2: 4a33 ldr r2, [pc, #204] @ (8008f70 <HAL_DMA_Abort+0x22c>)
  20754. 8008ea4: 4293 cmp r3, r2
  20755. 8008ea6: d054 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20756. 8008ea8: 687b ldr r3, [r7, #4]
  20757. 8008eaa: 681b ldr r3, [r3, #0]
  20758. 8008eac: 4a31 ldr r2, [pc, #196] @ (8008f74 <HAL_DMA_Abort+0x230>)
  20759. 8008eae: 4293 cmp r3, r2
  20760. 8008eb0: d04f beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20761. 8008eb2: 687b ldr r3, [r7, #4]
  20762. 8008eb4: 681b ldr r3, [r3, #0]
  20763. 8008eb6: 4a30 ldr r2, [pc, #192] @ (8008f78 <HAL_DMA_Abort+0x234>)
  20764. 8008eb8: 4293 cmp r3, r2
  20765. 8008eba: d04a beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20766. 8008ebc: 687b ldr r3, [r7, #4]
  20767. 8008ebe: 681b ldr r3, [r3, #0]
  20768. 8008ec0: 4a2e ldr r2, [pc, #184] @ (8008f7c <HAL_DMA_Abort+0x238>)
  20769. 8008ec2: 4293 cmp r3, r2
  20770. 8008ec4: d045 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20771. 8008ec6: 687b ldr r3, [r7, #4]
  20772. 8008ec8: 681b ldr r3, [r3, #0]
  20773. 8008eca: 4a2d ldr r2, [pc, #180] @ (8008f80 <HAL_DMA_Abort+0x23c>)
  20774. 8008ecc: 4293 cmp r3, r2
  20775. 8008ece: d040 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20776. 8008ed0: 687b ldr r3, [r7, #4]
  20777. 8008ed2: 681b ldr r3, [r3, #0]
  20778. 8008ed4: 4a2b ldr r2, [pc, #172] @ (8008f84 <HAL_DMA_Abort+0x240>)
  20779. 8008ed6: 4293 cmp r3, r2
  20780. 8008ed8: d03b beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20781. 8008eda: 687b ldr r3, [r7, #4]
  20782. 8008edc: 681b ldr r3, [r3, #0]
  20783. 8008ede: 4a2a ldr r2, [pc, #168] @ (8008f88 <HAL_DMA_Abort+0x244>)
  20784. 8008ee0: 4293 cmp r3, r2
  20785. 8008ee2: d036 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20786. 8008ee4: 687b ldr r3, [r7, #4]
  20787. 8008ee6: 681b ldr r3, [r3, #0]
  20788. 8008ee8: 4a28 ldr r2, [pc, #160] @ (8008f8c <HAL_DMA_Abort+0x248>)
  20789. 8008eea: 4293 cmp r3, r2
  20790. 8008eec: d031 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20791. 8008eee: 687b ldr r3, [r7, #4]
  20792. 8008ef0: 681b ldr r3, [r3, #0]
  20793. 8008ef2: 4a27 ldr r2, [pc, #156] @ (8008f90 <HAL_DMA_Abort+0x24c>)
  20794. 8008ef4: 4293 cmp r3, r2
  20795. 8008ef6: d02c beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20796. 8008ef8: 687b ldr r3, [r7, #4]
  20797. 8008efa: 681b ldr r3, [r3, #0]
  20798. 8008efc: 4a25 ldr r2, [pc, #148] @ (8008f94 <HAL_DMA_Abort+0x250>)
  20799. 8008efe: 4293 cmp r3, r2
  20800. 8008f00: d027 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20801. 8008f02: 687b ldr r3, [r7, #4]
  20802. 8008f04: 681b ldr r3, [r3, #0]
  20803. 8008f06: 4a24 ldr r2, [pc, #144] @ (8008f98 <HAL_DMA_Abort+0x254>)
  20804. 8008f08: 4293 cmp r3, r2
  20805. 8008f0a: d022 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20806. 8008f0c: 687b ldr r3, [r7, #4]
  20807. 8008f0e: 681b ldr r3, [r3, #0]
  20808. 8008f10: 4a22 ldr r2, [pc, #136] @ (8008f9c <HAL_DMA_Abort+0x258>)
  20809. 8008f12: 4293 cmp r3, r2
  20810. 8008f14: d01d beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20811. 8008f16: 687b ldr r3, [r7, #4]
  20812. 8008f18: 681b ldr r3, [r3, #0]
  20813. 8008f1a: 4a21 ldr r2, [pc, #132] @ (8008fa0 <HAL_DMA_Abort+0x25c>)
  20814. 8008f1c: 4293 cmp r3, r2
  20815. 8008f1e: d018 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20816. 8008f20: 687b ldr r3, [r7, #4]
  20817. 8008f22: 681b ldr r3, [r3, #0]
  20818. 8008f24: 4a1f ldr r2, [pc, #124] @ (8008fa4 <HAL_DMA_Abort+0x260>)
  20819. 8008f26: 4293 cmp r3, r2
  20820. 8008f28: d013 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20821. 8008f2a: 687b ldr r3, [r7, #4]
  20822. 8008f2c: 681b ldr r3, [r3, #0]
  20823. 8008f2e: 4a1e ldr r2, [pc, #120] @ (8008fa8 <HAL_DMA_Abort+0x264>)
  20824. 8008f30: 4293 cmp r3, r2
  20825. 8008f32: d00e beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20826. 8008f34: 687b ldr r3, [r7, #4]
  20827. 8008f36: 681b ldr r3, [r3, #0]
  20828. 8008f38: 4a1c ldr r2, [pc, #112] @ (8008fac <HAL_DMA_Abort+0x268>)
  20829. 8008f3a: 4293 cmp r3, r2
  20830. 8008f3c: d009 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20831. 8008f3e: 687b ldr r3, [r7, #4]
  20832. 8008f40: 681b ldr r3, [r3, #0]
  20833. 8008f42: 4a1b ldr r2, [pc, #108] @ (8008fb0 <HAL_DMA_Abort+0x26c>)
  20834. 8008f44: 4293 cmp r3, r2
  20835. 8008f46: d004 beq.n 8008f52 <HAL_DMA_Abort+0x20e>
  20836. 8008f48: 687b ldr r3, [r7, #4]
  20837. 8008f4a: 681b ldr r3, [r3, #0]
  20838. 8008f4c: 4a19 ldr r2, [pc, #100] @ (8008fb4 <HAL_DMA_Abort+0x270>)
  20839. 8008f4e: 4293 cmp r3, r2
  20840. 8008f50: d132 bne.n 8008fb8 <HAL_DMA_Abort+0x274>
  20841. 8008f52: 2301 movs r3, #1
  20842. 8008f54: e031 b.n 8008fba <HAL_DMA_Abort+0x276>
  20843. 8008f56: bf00 nop
  20844. 8008f58: 40020010 .word 0x40020010
  20845. 8008f5c: 40020028 .word 0x40020028
  20846. 8008f60: 40020040 .word 0x40020040
  20847. 8008f64: 40020058 .word 0x40020058
  20848. 8008f68: 40020070 .word 0x40020070
  20849. 8008f6c: 40020088 .word 0x40020088
  20850. 8008f70: 400200a0 .word 0x400200a0
  20851. 8008f74: 400200b8 .word 0x400200b8
  20852. 8008f78: 40020410 .word 0x40020410
  20853. 8008f7c: 40020428 .word 0x40020428
  20854. 8008f80: 40020440 .word 0x40020440
  20855. 8008f84: 40020458 .word 0x40020458
  20856. 8008f88: 40020470 .word 0x40020470
  20857. 8008f8c: 40020488 .word 0x40020488
  20858. 8008f90: 400204a0 .word 0x400204a0
  20859. 8008f94: 400204b8 .word 0x400204b8
  20860. 8008f98: 58025408 .word 0x58025408
  20861. 8008f9c: 5802541c .word 0x5802541c
  20862. 8008fa0: 58025430 .word 0x58025430
  20863. 8008fa4: 58025444 .word 0x58025444
  20864. 8008fa8: 58025458 .word 0x58025458
  20865. 8008fac: 5802546c .word 0x5802546c
  20866. 8008fb0: 58025480 .word 0x58025480
  20867. 8008fb4: 58025494 .word 0x58025494
  20868. 8008fb8: 2300 movs r3, #0
  20869. 8008fba: 2b00 cmp r3, #0
  20870. 8008fbc: d007 beq.n 8008fce <HAL_DMA_Abort+0x28a>
  20871. {
  20872. /* disable the DMAMUX sync overrun IT */
  20873. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  20874. 8008fbe: 687b ldr r3, [r7, #4]
  20875. 8008fc0: 6e1b ldr r3, [r3, #96] @ 0x60
  20876. 8008fc2: 681a ldr r2, [r3, #0]
  20877. 8008fc4: 687b ldr r3, [r7, #4]
  20878. 8008fc6: 6e1b ldr r3, [r3, #96] @ 0x60
  20879. 8008fc8: f422 7280 bic.w r2, r2, #256 @ 0x100
  20880. 8008fcc: 601a str r2, [r3, #0]
  20881. }
  20882. /* Disable the stream */
  20883. __HAL_DMA_DISABLE(hdma);
  20884. 8008fce: 687b ldr r3, [r7, #4]
  20885. 8008fd0: 681b ldr r3, [r3, #0]
  20886. 8008fd2: 4a6d ldr r2, [pc, #436] @ (8009188 <HAL_DMA_Abort+0x444>)
  20887. 8008fd4: 4293 cmp r3, r2
  20888. 8008fd6: d04a beq.n 800906e <HAL_DMA_Abort+0x32a>
  20889. 8008fd8: 687b ldr r3, [r7, #4]
  20890. 8008fda: 681b ldr r3, [r3, #0]
  20891. 8008fdc: 4a6b ldr r2, [pc, #428] @ (800918c <HAL_DMA_Abort+0x448>)
  20892. 8008fde: 4293 cmp r3, r2
  20893. 8008fe0: d045 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20894. 8008fe2: 687b ldr r3, [r7, #4]
  20895. 8008fe4: 681b ldr r3, [r3, #0]
  20896. 8008fe6: 4a6a ldr r2, [pc, #424] @ (8009190 <HAL_DMA_Abort+0x44c>)
  20897. 8008fe8: 4293 cmp r3, r2
  20898. 8008fea: d040 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20899. 8008fec: 687b ldr r3, [r7, #4]
  20900. 8008fee: 681b ldr r3, [r3, #0]
  20901. 8008ff0: 4a68 ldr r2, [pc, #416] @ (8009194 <HAL_DMA_Abort+0x450>)
  20902. 8008ff2: 4293 cmp r3, r2
  20903. 8008ff4: d03b beq.n 800906e <HAL_DMA_Abort+0x32a>
  20904. 8008ff6: 687b ldr r3, [r7, #4]
  20905. 8008ff8: 681b ldr r3, [r3, #0]
  20906. 8008ffa: 4a67 ldr r2, [pc, #412] @ (8009198 <HAL_DMA_Abort+0x454>)
  20907. 8008ffc: 4293 cmp r3, r2
  20908. 8008ffe: d036 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20909. 8009000: 687b ldr r3, [r7, #4]
  20910. 8009002: 681b ldr r3, [r3, #0]
  20911. 8009004: 4a65 ldr r2, [pc, #404] @ (800919c <HAL_DMA_Abort+0x458>)
  20912. 8009006: 4293 cmp r3, r2
  20913. 8009008: d031 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20914. 800900a: 687b ldr r3, [r7, #4]
  20915. 800900c: 681b ldr r3, [r3, #0]
  20916. 800900e: 4a64 ldr r2, [pc, #400] @ (80091a0 <HAL_DMA_Abort+0x45c>)
  20917. 8009010: 4293 cmp r3, r2
  20918. 8009012: d02c beq.n 800906e <HAL_DMA_Abort+0x32a>
  20919. 8009014: 687b ldr r3, [r7, #4]
  20920. 8009016: 681b ldr r3, [r3, #0]
  20921. 8009018: 4a62 ldr r2, [pc, #392] @ (80091a4 <HAL_DMA_Abort+0x460>)
  20922. 800901a: 4293 cmp r3, r2
  20923. 800901c: d027 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20924. 800901e: 687b ldr r3, [r7, #4]
  20925. 8009020: 681b ldr r3, [r3, #0]
  20926. 8009022: 4a61 ldr r2, [pc, #388] @ (80091a8 <HAL_DMA_Abort+0x464>)
  20927. 8009024: 4293 cmp r3, r2
  20928. 8009026: d022 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20929. 8009028: 687b ldr r3, [r7, #4]
  20930. 800902a: 681b ldr r3, [r3, #0]
  20931. 800902c: 4a5f ldr r2, [pc, #380] @ (80091ac <HAL_DMA_Abort+0x468>)
  20932. 800902e: 4293 cmp r3, r2
  20933. 8009030: d01d beq.n 800906e <HAL_DMA_Abort+0x32a>
  20934. 8009032: 687b ldr r3, [r7, #4]
  20935. 8009034: 681b ldr r3, [r3, #0]
  20936. 8009036: 4a5e ldr r2, [pc, #376] @ (80091b0 <HAL_DMA_Abort+0x46c>)
  20937. 8009038: 4293 cmp r3, r2
  20938. 800903a: d018 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20939. 800903c: 687b ldr r3, [r7, #4]
  20940. 800903e: 681b ldr r3, [r3, #0]
  20941. 8009040: 4a5c ldr r2, [pc, #368] @ (80091b4 <HAL_DMA_Abort+0x470>)
  20942. 8009042: 4293 cmp r3, r2
  20943. 8009044: d013 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20944. 8009046: 687b ldr r3, [r7, #4]
  20945. 8009048: 681b ldr r3, [r3, #0]
  20946. 800904a: 4a5b ldr r2, [pc, #364] @ (80091b8 <HAL_DMA_Abort+0x474>)
  20947. 800904c: 4293 cmp r3, r2
  20948. 800904e: d00e beq.n 800906e <HAL_DMA_Abort+0x32a>
  20949. 8009050: 687b ldr r3, [r7, #4]
  20950. 8009052: 681b ldr r3, [r3, #0]
  20951. 8009054: 4a59 ldr r2, [pc, #356] @ (80091bc <HAL_DMA_Abort+0x478>)
  20952. 8009056: 4293 cmp r3, r2
  20953. 8009058: d009 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20954. 800905a: 687b ldr r3, [r7, #4]
  20955. 800905c: 681b ldr r3, [r3, #0]
  20956. 800905e: 4a58 ldr r2, [pc, #352] @ (80091c0 <HAL_DMA_Abort+0x47c>)
  20957. 8009060: 4293 cmp r3, r2
  20958. 8009062: d004 beq.n 800906e <HAL_DMA_Abort+0x32a>
  20959. 8009064: 687b ldr r3, [r7, #4]
  20960. 8009066: 681b ldr r3, [r3, #0]
  20961. 8009068: 4a56 ldr r2, [pc, #344] @ (80091c4 <HAL_DMA_Abort+0x480>)
  20962. 800906a: 4293 cmp r3, r2
  20963. 800906c: d108 bne.n 8009080 <HAL_DMA_Abort+0x33c>
  20964. 800906e: 687b ldr r3, [r7, #4]
  20965. 8009070: 681b ldr r3, [r3, #0]
  20966. 8009072: 681a ldr r2, [r3, #0]
  20967. 8009074: 687b ldr r3, [r7, #4]
  20968. 8009076: 681b ldr r3, [r3, #0]
  20969. 8009078: f022 0201 bic.w r2, r2, #1
  20970. 800907c: 601a str r2, [r3, #0]
  20971. 800907e: e007 b.n 8009090 <HAL_DMA_Abort+0x34c>
  20972. 8009080: 687b ldr r3, [r7, #4]
  20973. 8009082: 681b ldr r3, [r3, #0]
  20974. 8009084: 681a ldr r2, [r3, #0]
  20975. 8009086: 687b ldr r3, [r7, #4]
  20976. 8009088: 681b ldr r3, [r3, #0]
  20977. 800908a: f022 0201 bic.w r2, r2, #1
  20978. 800908e: 601a str r2, [r3, #0]
  20979. /* Check if the DMA Stream is effectively disabled */
  20980. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  20981. 8009090: e013 b.n 80090ba <HAL_DMA_Abort+0x376>
  20982. {
  20983. /* Check for the Timeout */
  20984. if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT)
  20985. 8009092: f7fc fc03 bl 800589c <HAL_GetTick>
  20986. 8009096: 4602 mov r2, r0
  20987. 8009098: 693b ldr r3, [r7, #16]
  20988. 800909a: 1ad3 subs r3, r2, r3
  20989. 800909c: 2b05 cmp r3, #5
  20990. 800909e: d90c bls.n 80090ba <HAL_DMA_Abort+0x376>
  20991. {
  20992. /* Update error code */
  20993. hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT;
  20994. 80090a0: 687b ldr r3, [r7, #4]
  20995. 80090a2: 2220 movs r2, #32
  20996. 80090a4: 655a str r2, [r3, #84] @ 0x54
  20997. /* Change the DMA state */
  20998. hdma->State = HAL_DMA_STATE_ERROR;
  20999. 80090a6: 687b ldr r3, [r7, #4]
  21000. 80090a8: 2203 movs r2, #3
  21001. 80090aa: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21002. /* Process Unlocked */
  21003. __HAL_UNLOCK(hdma);
  21004. 80090ae: 687b ldr r3, [r7, #4]
  21005. 80090b0: 2200 movs r2, #0
  21006. 80090b2: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21007. return HAL_ERROR;
  21008. 80090b6: 2301 movs r3, #1
  21009. 80090b8: e12d b.n 8009316 <HAL_DMA_Abort+0x5d2>
  21010. while(((*enableRegister) & DMA_SxCR_EN) != 0U)
  21011. 80090ba: 697b ldr r3, [r7, #20]
  21012. 80090bc: 681b ldr r3, [r3, #0]
  21013. 80090be: f003 0301 and.w r3, r3, #1
  21014. 80090c2: 2b00 cmp r3, #0
  21015. 80090c4: d1e5 bne.n 8009092 <HAL_DMA_Abort+0x34e>
  21016. }
  21017. }
  21018. /* Clear all interrupt flags at correct offset within the register */
  21019. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21020. 80090c6: 687b ldr r3, [r7, #4]
  21021. 80090c8: 681b ldr r3, [r3, #0]
  21022. 80090ca: 4a2f ldr r2, [pc, #188] @ (8009188 <HAL_DMA_Abort+0x444>)
  21023. 80090cc: 4293 cmp r3, r2
  21024. 80090ce: d04a beq.n 8009166 <HAL_DMA_Abort+0x422>
  21025. 80090d0: 687b ldr r3, [r7, #4]
  21026. 80090d2: 681b ldr r3, [r3, #0]
  21027. 80090d4: 4a2d ldr r2, [pc, #180] @ (800918c <HAL_DMA_Abort+0x448>)
  21028. 80090d6: 4293 cmp r3, r2
  21029. 80090d8: d045 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21030. 80090da: 687b ldr r3, [r7, #4]
  21031. 80090dc: 681b ldr r3, [r3, #0]
  21032. 80090de: 4a2c ldr r2, [pc, #176] @ (8009190 <HAL_DMA_Abort+0x44c>)
  21033. 80090e0: 4293 cmp r3, r2
  21034. 80090e2: d040 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21035. 80090e4: 687b ldr r3, [r7, #4]
  21036. 80090e6: 681b ldr r3, [r3, #0]
  21037. 80090e8: 4a2a ldr r2, [pc, #168] @ (8009194 <HAL_DMA_Abort+0x450>)
  21038. 80090ea: 4293 cmp r3, r2
  21039. 80090ec: d03b beq.n 8009166 <HAL_DMA_Abort+0x422>
  21040. 80090ee: 687b ldr r3, [r7, #4]
  21041. 80090f0: 681b ldr r3, [r3, #0]
  21042. 80090f2: 4a29 ldr r2, [pc, #164] @ (8009198 <HAL_DMA_Abort+0x454>)
  21043. 80090f4: 4293 cmp r3, r2
  21044. 80090f6: d036 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21045. 80090f8: 687b ldr r3, [r7, #4]
  21046. 80090fa: 681b ldr r3, [r3, #0]
  21047. 80090fc: 4a27 ldr r2, [pc, #156] @ (800919c <HAL_DMA_Abort+0x458>)
  21048. 80090fe: 4293 cmp r3, r2
  21049. 8009100: d031 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21050. 8009102: 687b ldr r3, [r7, #4]
  21051. 8009104: 681b ldr r3, [r3, #0]
  21052. 8009106: 4a26 ldr r2, [pc, #152] @ (80091a0 <HAL_DMA_Abort+0x45c>)
  21053. 8009108: 4293 cmp r3, r2
  21054. 800910a: d02c beq.n 8009166 <HAL_DMA_Abort+0x422>
  21055. 800910c: 687b ldr r3, [r7, #4]
  21056. 800910e: 681b ldr r3, [r3, #0]
  21057. 8009110: 4a24 ldr r2, [pc, #144] @ (80091a4 <HAL_DMA_Abort+0x460>)
  21058. 8009112: 4293 cmp r3, r2
  21059. 8009114: d027 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21060. 8009116: 687b ldr r3, [r7, #4]
  21061. 8009118: 681b ldr r3, [r3, #0]
  21062. 800911a: 4a23 ldr r2, [pc, #140] @ (80091a8 <HAL_DMA_Abort+0x464>)
  21063. 800911c: 4293 cmp r3, r2
  21064. 800911e: d022 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21065. 8009120: 687b ldr r3, [r7, #4]
  21066. 8009122: 681b ldr r3, [r3, #0]
  21067. 8009124: 4a21 ldr r2, [pc, #132] @ (80091ac <HAL_DMA_Abort+0x468>)
  21068. 8009126: 4293 cmp r3, r2
  21069. 8009128: d01d beq.n 8009166 <HAL_DMA_Abort+0x422>
  21070. 800912a: 687b ldr r3, [r7, #4]
  21071. 800912c: 681b ldr r3, [r3, #0]
  21072. 800912e: 4a20 ldr r2, [pc, #128] @ (80091b0 <HAL_DMA_Abort+0x46c>)
  21073. 8009130: 4293 cmp r3, r2
  21074. 8009132: d018 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21075. 8009134: 687b ldr r3, [r7, #4]
  21076. 8009136: 681b ldr r3, [r3, #0]
  21077. 8009138: 4a1e ldr r2, [pc, #120] @ (80091b4 <HAL_DMA_Abort+0x470>)
  21078. 800913a: 4293 cmp r3, r2
  21079. 800913c: d013 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21080. 800913e: 687b ldr r3, [r7, #4]
  21081. 8009140: 681b ldr r3, [r3, #0]
  21082. 8009142: 4a1d ldr r2, [pc, #116] @ (80091b8 <HAL_DMA_Abort+0x474>)
  21083. 8009144: 4293 cmp r3, r2
  21084. 8009146: d00e beq.n 8009166 <HAL_DMA_Abort+0x422>
  21085. 8009148: 687b ldr r3, [r7, #4]
  21086. 800914a: 681b ldr r3, [r3, #0]
  21087. 800914c: 4a1b ldr r2, [pc, #108] @ (80091bc <HAL_DMA_Abort+0x478>)
  21088. 800914e: 4293 cmp r3, r2
  21089. 8009150: d009 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21090. 8009152: 687b ldr r3, [r7, #4]
  21091. 8009154: 681b ldr r3, [r3, #0]
  21092. 8009156: 4a1a ldr r2, [pc, #104] @ (80091c0 <HAL_DMA_Abort+0x47c>)
  21093. 8009158: 4293 cmp r3, r2
  21094. 800915a: d004 beq.n 8009166 <HAL_DMA_Abort+0x422>
  21095. 800915c: 687b ldr r3, [r7, #4]
  21096. 800915e: 681b ldr r3, [r3, #0]
  21097. 8009160: 4a18 ldr r2, [pc, #96] @ (80091c4 <HAL_DMA_Abort+0x480>)
  21098. 8009162: 4293 cmp r3, r2
  21099. 8009164: d101 bne.n 800916a <HAL_DMA_Abort+0x426>
  21100. 8009166: 2301 movs r3, #1
  21101. 8009168: e000 b.n 800916c <HAL_DMA_Abort+0x428>
  21102. 800916a: 2300 movs r3, #0
  21103. 800916c: 2b00 cmp r3, #0
  21104. 800916e: d02b beq.n 80091c8 <HAL_DMA_Abort+0x484>
  21105. {
  21106. regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21107. 8009170: 687b ldr r3, [r7, #4]
  21108. 8009172: 6d9b ldr r3, [r3, #88] @ 0x58
  21109. 8009174: 60bb str r3, [r7, #8]
  21110. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  21111. 8009176: 687b ldr r3, [r7, #4]
  21112. 8009178: 6ddb ldr r3, [r3, #92] @ 0x5c
  21113. 800917a: f003 031f and.w r3, r3, #31
  21114. 800917e: 223f movs r2, #63 @ 0x3f
  21115. 8009180: 409a lsls r2, r3
  21116. 8009182: 68bb ldr r3, [r7, #8]
  21117. 8009184: 609a str r2, [r3, #8]
  21118. 8009186: e02a b.n 80091de <HAL_DMA_Abort+0x49a>
  21119. 8009188: 40020010 .word 0x40020010
  21120. 800918c: 40020028 .word 0x40020028
  21121. 8009190: 40020040 .word 0x40020040
  21122. 8009194: 40020058 .word 0x40020058
  21123. 8009198: 40020070 .word 0x40020070
  21124. 800919c: 40020088 .word 0x40020088
  21125. 80091a0: 400200a0 .word 0x400200a0
  21126. 80091a4: 400200b8 .word 0x400200b8
  21127. 80091a8: 40020410 .word 0x40020410
  21128. 80091ac: 40020428 .word 0x40020428
  21129. 80091b0: 40020440 .word 0x40020440
  21130. 80091b4: 40020458 .word 0x40020458
  21131. 80091b8: 40020470 .word 0x40020470
  21132. 80091bc: 40020488 .word 0x40020488
  21133. 80091c0: 400204a0 .word 0x400204a0
  21134. 80091c4: 400204b8 .word 0x400204b8
  21135. }
  21136. else /* BDMA channel */
  21137. {
  21138. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21139. 80091c8: 687b ldr r3, [r7, #4]
  21140. 80091ca: 6d9b ldr r3, [r3, #88] @ 0x58
  21141. 80091cc: 60fb str r3, [r7, #12]
  21142. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21143. 80091ce: 687b ldr r3, [r7, #4]
  21144. 80091d0: 6ddb ldr r3, [r3, #92] @ 0x5c
  21145. 80091d2: f003 031f and.w r3, r3, #31
  21146. 80091d6: 2201 movs r2, #1
  21147. 80091d8: 409a lsls r2, r3
  21148. 80091da: 68fb ldr r3, [r7, #12]
  21149. 80091dc: 605a str r2, [r3, #4]
  21150. }
  21151. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21152. 80091de: 687b ldr r3, [r7, #4]
  21153. 80091e0: 681b ldr r3, [r3, #0]
  21154. 80091e2: 4a4f ldr r2, [pc, #316] @ (8009320 <HAL_DMA_Abort+0x5dc>)
  21155. 80091e4: 4293 cmp r3, r2
  21156. 80091e6: d072 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21157. 80091e8: 687b ldr r3, [r7, #4]
  21158. 80091ea: 681b ldr r3, [r3, #0]
  21159. 80091ec: 4a4d ldr r2, [pc, #308] @ (8009324 <HAL_DMA_Abort+0x5e0>)
  21160. 80091ee: 4293 cmp r3, r2
  21161. 80091f0: d06d beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21162. 80091f2: 687b ldr r3, [r7, #4]
  21163. 80091f4: 681b ldr r3, [r3, #0]
  21164. 80091f6: 4a4c ldr r2, [pc, #304] @ (8009328 <HAL_DMA_Abort+0x5e4>)
  21165. 80091f8: 4293 cmp r3, r2
  21166. 80091fa: d068 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21167. 80091fc: 687b ldr r3, [r7, #4]
  21168. 80091fe: 681b ldr r3, [r3, #0]
  21169. 8009200: 4a4a ldr r2, [pc, #296] @ (800932c <HAL_DMA_Abort+0x5e8>)
  21170. 8009202: 4293 cmp r3, r2
  21171. 8009204: d063 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21172. 8009206: 687b ldr r3, [r7, #4]
  21173. 8009208: 681b ldr r3, [r3, #0]
  21174. 800920a: 4a49 ldr r2, [pc, #292] @ (8009330 <HAL_DMA_Abort+0x5ec>)
  21175. 800920c: 4293 cmp r3, r2
  21176. 800920e: d05e beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21177. 8009210: 687b ldr r3, [r7, #4]
  21178. 8009212: 681b ldr r3, [r3, #0]
  21179. 8009214: 4a47 ldr r2, [pc, #284] @ (8009334 <HAL_DMA_Abort+0x5f0>)
  21180. 8009216: 4293 cmp r3, r2
  21181. 8009218: d059 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21182. 800921a: 687b ldr r3, [r7, #4]
  21183. 800921c: 681b ldr r3, [r3, #0]
  21184. 800921e: 4a46 ldr r2, [pc, #280] @ (8009338 <HAL_DMA_Abort+0x5f4>)
  21185. 8009220: 4293 cmp r3, r2
  21186. 8009222: d054 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21187. 8009224: 687b ldr r3, [r7, #4]
  21188. 8009226: 681b ldr r3, [r3, #0]
  21189. 8009228: 4a44 ldr r2, [pc, #272] @ (800933c <HAL_DMA_Abort+0x5f8>)
  21190. 800922a: 4293 cmp r3, r2
  21191. 800922c: d04f beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21192. 800922e: 687b ldr r3, [r7, #4]
  21193. 8009230: 681b ldr r3, [r3, #0]
  21194. 8009232: 4a43 ldr r2, [pc, #268] @ (8009340 <HAL_DMA_Abort+0x5fc>)
  21195. 8009234: 4293 cmp r3, r2
  21196. 8009236: d04a beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21197. 8009238: 687b ldr r3, [r7, #4]
  21198. 800923a: 681b ldr r3, [r3, #0]
  21199. 800923c: 4a41 ldr r2, [pc, #260] @ (8009344 <HAL_DMA_Abort+0x600>)
  21200. 800923e: 4293 cmp r3, r2
  21201. 8009240: d045 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21202. 8009242: 687b ldr r3, [r7, #4]
  21203. 8009244: 681b ldr r3, [r3, #0]
  21204. 8009246: 4a40 ldr r2, [pc, #256] @ (8009348 <HAL_DMA_Abort+0x604>)
  21205. 8009248: 4293 cmp r3, r2
  21206. 800924a: d040 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21207. 800924c: 687b ldr r3, [r7, #4]
  21208. 800924e: 681b ldr r3, [r3, #0]
  21209. 8009250: 4a3e ldr r2, [pc, #248] @ (800934c <HAL_DMA_Abort+0x608>)
  21210. 8009252: 4293 cmp r3, r2
  21211. 8009254: d03b beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21212. 8009256: 687b ldr r3, [r7, #4]
  21213. 8009258: 681b ldr r3, [r3, #0]
  21214. 800925a: 4a3d ldr r2, [pc, #244] @ (8009350 <HAL_DMA_Abort+0x60c>)
  21215. 800925c: 4293 cmp r3, r2
  21216. 800925e: d036 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21217. 8009260: 687b ldr r3, [r7, #4]
  21218. 8009262: 681b ldr r3, [r3, #0]
  21219. 8009264: 4a3b ldr r2, [pc, #236] @ (8009354 <HAL_DMA_Abort+0x610>)
  21220. 8009266: 4293 cmp r3, r2
  21221. 8009268: d031 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21222. 800926a: 687b ldr r3, [r7, #4]
  21223. 800926c: 681b ldr r3, [r3, #0]
  21224. 800926e: 4a3a ldr r2, [pc, #232] @ (8009358 <HAL_DMA_Abort+0x614>)
  21225. 8009270: 4293 cmp r3, r2
  21226. 8009272: d02c beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21227. 8009274: 687b ldr r3, [r7, #4]
  21228. 8009276: 681b ldr r3, [r3, #0]
  21229. 8009278: 4a38 ldr r2, [pc, #224] @ (800935c <HAL_DMA_Abort+0x618>)
  21230. 800927a: 4293 cmp r3, r2
  21231. 800927c: d027 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21232. 800927e: 687b ldr r3, [r7, #4]
  21233. 8009280: 681b ldr r3, [r3, #0]
  21234. 8009282: 4a37 ldr r2, [pc, #220] @ (8009360 <HAL_DMA_Abort+0x61c>)
  21235. 8009284: 4293 cmp r3, r2
  21236. 8009286: d022 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21237. 8009288: 687b ldr r3, [r7, #4]
  21238. 800928a: 681b ldr r3, [r3, #0]
  21239. 800928c: 4a35 ldr r2, [pc, #212] @ (8009364 <HAL_DMA_Abort+0x620>)
  21240. 800928e: 4293 cmp r3, r2
  21241. 8009290: d01d beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21242. 8009292: 687b ldr r3, [r7, #4]
  21243. 8009294: 681b ldr r3, [r3, #0]
  21244. 8009296: 4a34 ldr r2, [pc, #208] @ (8009368 <HAL_DMA_Abort+0x624>)
  21245. 8009298: 4293 cmp r3, r2
  21246. 800929a: d018 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21247. 800929c: 687b ldr r3, [r7, #4]
  21248. 800929e: 681b ldr r3, [r3, #0]
  21249. 80092a0: 4a32 ldr r2, [pc, #200] @ (800936c <HAL_DMA_Abort+0x628>)
  21250. 80092a2: 4293 cmp r3, r2
  21251. 80092a4: d013 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21252. 80092a6: 687b ldr r3, [r7, #4]
  21253. 80092a8: 681b ldr r3, [r3, #0]
  21254. 80092aa: 4a31 ldr r2, [pc, #196] @ (8009370 <HAL_DMA_Abort+0x62c>)
  21255. 80092ac: 4293 cmp r3, r2
  21256. 80092ae: d00e beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21257. 80092b0: 687b ldr r3, [r7, #4]
  21258. 80092b2: 681b ldr r3, [r3, #0]
  21259. 80092b4: 4a2f ldr r2, [pc, #188] @ (8009374 <HAL_DMA_Abort+0x630>)
  21260. 80092b6: 4293 cmp r3, r2
  21261. 80092b8: d009 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21262. 80092ba: 687b ldr r3, [r7, #4]
  21263. 80092bc: 681b ldr r3, [r3, #0]
  21264. 80092be: 4a2e ldr r2, [pc, #184] @ (8009378 <HAL_DMA_Abort+0x634>)
  21265. 80092c0: 4293 cmp r3, r2
  21266. 80092c2: d004 beq.n 80092ce <HAL_DMA_Abort+0x58a>
  21267. 80092c4: 687b ldr r3, [r7, #4]
  21268. 80092c6: 681b ldr r3, [r3, #0]
  21269. 80092c8: 4a2c ldr r2, [pc, #176] @ (800937c <HAL_DMA_Abort+0x638>)
  21270. 80092ca: 4293 cmp r3, r2
  21271. 80092cc: d101 bne.n 80092d2 <HAL_DMA_Abort+0x58e>
  21272. 80092ce: 2301 movs r3, #1
  21273. 80092d0: e000 b.n 80092d4 <HAL_DMA_Abort+0x590>
  21274. 80092d2: 2300 movs r3, #0
  21275. 80092d4: 2b00 cmp r3, #0
  21276. 80092d6: d015 beq.n 8009304 <HAL_DMA_Abort+0x5c0>
  21277. {
  21278. /* Clear the DMAMUX synchro overrun flag */
  21279. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21280. 80092d8: 687b ldr r3, [r7, #4]
  21281. 80092da: 6e5b ldr r3, [r3, #100] @ 0x64
  21282. 80092dc: 687a ldr r2, [r7, #4]
  21283. 80092de: 6e92 ldr r2, [r2, #104] @ 0x68
  21284. 80092e0: 605a str r2, [r3, #4]
  21285. if(hdma->DMAmuxRequestGen != 0U)
  21286. 80092e2: 687b ldr r3, [r7, #4]
  21287. 80092e4: 6edb ldr r3, [r3, #108] @ 0x6c
  21288. 80092e6: 2b00 cmp r3, #0
  21289. 80092e8: d00c beq.n 8009304 <HAL_DMA_Abort+0x5c0>
  21290. {
  21291. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT */
  21292. /* disable the request gen overrun IT */
  21293. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21294. 80092ea: 687b ldr r3, [r7, #4]
  21295. 80092ec: 6edb ldr r3, [r3, #108] @ 0x6c
  21296. 80092ee: 681a ldr r2, [r3, #0]
  21297. 80092f0: 687b ldr r3, [r7, #4]
  21298. 80092f2: 6edb ldr r3, [r3, #108] @ 0x6c
  21299. 80092f4: f422 7280 bic.w r2, r2, #256 @ 0x100
  21300. 80092f8: 601a str r2, [r3, #0]
  21301. /* Clear the DMAMUX request generator overrun flag */
  21302. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21303. 80092fa: 687b ldr r3, [r7, #4]
  21304. 80092fc: 6f1b ldr r3, [r3, #112] @ 0x70
  21305. 80092fe: 687a ldr r2, [r7, #4]
  21306. 8009300: 6f52 ldr r2, [r2, #116] @ 0x74
  21307. 8009302: 605a str r2, [r3, #4]
  21308. }
  21309. }
  21310. /* Change the DMA state */
  21311. hdma->State = HAL_DMA_STATE_READY;
  21312. 8009304: 687b ldr r3, [r7, #4]
  21313. 8009306: 2201 movs r2, #1
  21314. 8009308: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21315. /* Process Unlocked */
  21316. __HAL_UNLOCK(hdma);
  21317. 800930c: 687b ldr r3, [r7, #4]
  21318. 800930e: 2200 movs r2, #0
  21319. 8009310: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21320. }
  21321. return HAL_OK;
  21322. 8009314: 2300 movs r3, #0
  21323. }
  21324. 8009316: 4618 mov r0, r3
  21325. 8009318: 3718 adds r7, #24
  21326. 800931a: 46bd mov sp, r7
  21327. 800931c: bd80 pop {r7, pc}
  21328. 800931e: bf00 nop
  21329. 8009320: 40020010 .word 0x40020010
  21330. 8009324: 40020028 .word 0x40020028
  21331. 8009328: 40020040 .word 0x40020040
  21332. 800932c: 40020058 .word 0x40020058
  21333. 8009330: 40020070 .word 0x40020070
  21334. 8009334: 40020088 .word 0x40020088
  21335. 8009338: 400200a0 .word 0x400200a0
  21336. 800933c: 400200b8 .word 0x400200b8
  21337. 8009340: 40020410 .word 0x40020410
  21338. 8009344: 40020428 .word 0x40020428
  21339. 8009348: 40020440 .word 0x40020440
  21340. 800934c: 40020458 .word 0x40020458
  21341. 8009350: 40020470 .word 0x40020470
  21342. 8009354: 40020488 .word 0x40020488
  21343. 8009358: 400204a0 .word 0x400204a0
  21344. 800935c: 400204b8 .word 0x400204b8
  21345. 8009360: 58025408 .word 0x58025408
  21346. 8009364: 5802541c .word 0x5802541c
  21347. 8009368: 58025430 .word 0x58025430
  21348. 800936c: 58025444 .word 0x58025444
  21349. 8009370: 58025458 .word 0x58025458
  21350. 8009374: 5802546c .word 0x5802546c
  21351. 8009378: 58025480 .word 0x58025480
  21352. 800937c: 58025494 .word 0x58025494
  21353. 08009380 <HAL_DMA_Abort_IT>:
  21354. * @param hdma : pointer to a DMA_HandleTypeDef structure that contains
  21355. * the configuration information for the specified DMA Stream.
  21356. * @retval HAL status
  21357. */
  21358. HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma)
  21359. {
  21360. 8009380: b580 push {r7, lr}
  21361. 8009382: b084 sub sp, #16
  21362. 8009384: af00 add r7, sp, #0
  21363. 8009386: 6078 str r0, [r7, #4]
  21364. BDMA_Base_Registers *regs_bdma;
  21365. /* Check the DMA peripheral handle */
  21366. if(hdma == NULL)
  21367. 8009388: 687b ldr r3, [r7, #4]
  21368. 800938a: 2b00 cmp r3, #0
  21369. 800938c: d101 bne.n 8009392 <HAL_DMA_Abort_IT+0x12>
  21370. {
  21371. return HAL_ERROR;
  21372. 800938e: 2301 movs r3, #1
  21373. 8009390: e237 b.n 8009802 <HAL_DMA_Abort_IT+0x482>
  21374. }
  21375. if(hdma->State != HAL_DMA_STATE_BUSY)
  21376. 8009392: 687b ldr r3, [r7, #4]
  21377. 8009394: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  21378. 8009398: b2db uxtb r3, r3
  21379. 800939a: 2b02 cmp r3, #2
  21380. 800939c: d004 beq.n 80093a8 <HAL_DMA_Abort_IT+0x28>
  21381. {
  21382. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  21383. 800939e: 687b ldr r3, [r7, #4]
  21384. 80093a0: 2280 movs r2, #128 @ 0x80
  21385. 80093a2: 655a str r2, [r3, #84] @ 0x54
  21386. return HAL_ERROR;
  21387. 80093a4: 2301 movs r3, #1
  21388. 80093a6: e22c b.n 8009802 <HAL_DMA_Abort_IT+0x482>
  21389. }
  21390. else
  21391. {
  21392. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21393. 80093a8: 687b ldr r3, [r7, #4]
  21394. 80093aa: 681b ldr r3, [r3, #0]
  21395. 80093ac: 4a5c ldr r2, [pc, #368] @ (8009520 <HAL_DMA_Abort_IT+0x1a0>)
  21396. 80093ae: 4293 cmp r3, r2
  21397. 80093b0: d04a beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21398. 80093b2: 687b ldr r3, [r7, #4]
  21399. 80093b4: 681b ldr r3, [r3, #0]
  21400. 80093b6: 4a5b ldr r2, [pc, #364] @ (8009524 <HAL_DMA_Abort_IT+0x1a4>)
  21401. 80093b8: 4293 cmp r3, r2
  21402. 80093ba: d045 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21403. 80093bc: 687b ldr r3, [r7, #4]
  21404. 80093be: 681b ldr r3, [r3, #0]
  21405. 80093c0: 4a59 ldr r2, [pc, #356] @ (8009528 <HAL_DMA_Abort_IT+0x1a8>)
  21406. 80093c2: 4293 cmp r3, r2
  21407. 80093c4: d040 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21408. 80093c6: 687b ldr r3, [r7, #4]
  21409. 80093c8: 681b ldr r3, [r3, #0]
  21410. 80093ca: 4a58 ldr r2, [pc, #352] @ (800952c <HAL_DMA_Abort_IT+0x1ac>)
  21411. 80093cc: 4293 cmp r3, r2
  21412. 80093ce: d03b beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21413. 80093d0: 687b ldr r3, [r7, #4]
  21414. 80093d2: 681b ldr r3, [r3, #0]
  21415. 80093d4: 4a56 ldr r2, [pc, #344] @ (8009530 <HAL_DMA_Abort_IT+0x1b0>)
  21416. 80093d6: 4293 cmp r3, r2
  21417. 80093d8: d036 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21418. 80093da: 687b ldr r3, [r7, #4]
  21419. 80093dc: 681b ldr r3, [r3, #0]
  21420. 80093de: 4a55 ldr r2, [pc, #340] @ (8009534 <HAL_DMA_Abort_IT+0x1b4>)
  21421. 80093e0: 4293 cmp r3, r2
  21422. 80093e2: d031 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21423. 80093e4: 687b ldr r3, [r7, #4]
  21424. 80093e6: 681b ldr r3, [r3, #0]
  21425. 80093e8: 4a53 ldr r2, [pc, #332] @ (8009538 <HAL_DMA_Abort_IT+0x1b8>)
  21426. 80093ea: 4293 cmp r3, r2
  21427. 80093ec: d02c beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21428. 80093ee: 687b ldr r3, [r7, #4]
  21429. 80093f0: 681b ldr r3, [r3, #0]
  21430. 80093f2: 4a52 ldr r2, [pc, #328] @ (800953c <HAL_DMA_Abort_IT+0x1bc>)
  21431. 80093f4: 4293 cmp r3, r2
  21432. 80093f6: d027 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21433. 80093f8: 687b ldr r3, [r7, #4]
  21434. 80093fa: 681b ldr r3, [r3, #0]
  21435. 80093fc: 4a50 ldr r2, [pc, #320] @ (8009540 <HAL_DMA_Abort_IT+0x1c0>)
  21436. 80093fe: 4293 cmp r3, r2
  21437. 8009400: d022 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21438. 8009402: 687b ldr r3, [r7, #4]
  21439. 8009404: 681b ldr r3, [r3, #0]
  21440. 8009406: 4a4f ldr r2, [pc, #316] @ (8009544 <HAL_DMA_Abort_IT+0x1c4>)
  21441. 8009408: 4293 cmp r3, r2
  21442. 800940a: d01d beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21443. 800940c: 687b ldr r3, [r7, #4]
  21444. 800940e: 681b ldr r3, [r3, #0]
  21445. 8009410: 4a4d ldr r2, [pc, #308] @ (8009548 <HAL_DMA_Abort_IT+0x1c8>)
  21446. 8009412: 4293 cmp r3, r2
  21447. 8009414: d018 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21448. 8009416: 687b ldr r3, [r7, #4]
  21449. 8009418: 681b ldr r3, [r3, #0]
  21450. 800941a: 4a4c ldr r2, [pc, #304] @ (800954c <HAL_DMA_Abort_IT+0x1cc>)
  21451. 800941c: 4293 cmp r3, r2
  21452. 800941e: d013 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21453. 8009420: 687b ldr r3, [r7, #4]
  21454. 8009422: 681b ldr r3, [r3, #0]
  21455. 8009424: 4a4a ldr r2, [pc, #296] @ (8009550 <HAL_DMA_Abort_IT+0x1d0>)
  21456. 8009426: 4293 cmp r3, r2
  21457. 8009428: d00e beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21458. 800942a: 687b ldr r3, [r7, #4]
  21459. 800942c: 681b ldr r3, [r3, #0]
  21460. 800942e: 4a49 ldr r2, [pc, #292] @ (8009554 <HAL_DMA_Abort_IT+0x1d4>)
  21461. 8009430: 4293 cmp r3, r2
  21462. 8009432: d009 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21463. 8009434: 687b ldr r3, [r7, #4]
  21464. 8009436: 681b ldr r3, [r3, #0]
  21465. 8009438: 4a47 ldr r2, [pc, #284] @ (8009558 <HAL_DMA_Abort_IT+0x1d8>)
  21466. 800943a: 4293 cmp r3, r2
  21467. 800943c: d004 beq.n 8009448 <HAL_DMA_Abort_IT+0xc8>
  21468. 800943e: 687b ldr r3, [r7, #4]
  21469. 8009440: 681b ldr r3, [r3, #0]
  21470. 8009442: 4a46 ldr r2, [pc, #280] @ (800955c <HAL_DMA_Abort_IT+0x1dc>)
  21471. 8009444: 4293 cmp r3, r2
  21472. 8009446: d101 bne.n 800944c <HAL_DMA_Abort_IT+0xcc>
  21473. 8009448: 2301 movs r3, #1
  21474. 800944a: e000 b.n 800944e <HAL_DMA_Abort_IT+0xce>
  21475. 800944c: 2300 movs r3, #0
  21476. 800944e: 2b00 cmp r3, #0
  21477. 8009450: f000 8086 beq.w 8009560 <HAL_DMA_Abort_IT+0x1e0>
  21478. {
  21479. /* Set Abort State */
  21480. hdma->State = HAL_DMA_STATE_ABORT;
  21481. 8009454: 687b ldr r3, [r7, #4]
  21482. 8009456: 2204 movs r2, #4
  21483. 8009458: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21484. /* Disable the stream */
  21485. __HAL_DMA_DISABLE(hdma);
  21486. 800945c: 687b ldr r3, [r7, #4]
  21487. 800945e: 681b ldr r3, [r3, #0]
  21488. 8009460: 4a2f ldr r2, [pc, #188] @ (8009520 <HAL_DMA_Abort_IT+0x1a0>)
  21489. 8009462: 4293 cmp r3, r2
  21490. 8009464: d04a beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21491. 8009466: 687b ldr r3, [r7, #4]
  21492. 8009468: 681b ldr r3, [r3, #0]
  21493. 800946a: 4a2e ldr r2, [pc, #184] @ (8009524 <HAL_DMA_Abort_IT+0x1a4>)
  21494. 800946c: 4293 cmp r3, r2
  21495. 800946e: d045 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21496. 8009470: 687b ldr r3, [r7, #4]
  21497. 8009472: 681b ldr r3, [r3, #0]
  21498. 8009474: 4a2c ldr r2, [pc, #176] @ (8009528 <HAL_DMA_Abort_IT+0x1a8>)
  21499. 8009476: 4293 cmp r3, r2
  21500. 8009478: d040 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21501. 800947a: 687b ldr r3, [r7, #4]
  21502. 800947c: 681b ldr r3, [r3, #0]
  21503. 800947e: 4a2b ldr r2, [pc, #172] @ (800952c <HAL_DMA_Abort_IT+0x1ac>)
  21504. 8009480: 4293 cmp r3, r2
  21505. 8009482: d03b beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21506. 8009484: 687b ldr r3, [r7, #4]
  21507. 8009486: 681b ldr r3, [r3, #0]
  21508. 8009488: 4a29 ldr r2, [pc, #164] @ (8009530 <HAL_DMA_Abort_IT+0x1b0>)
  21509. 800948a: 4293 cmp r3, r2
  21510. 800948c: d036 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21511. 800948e: 687b ldr r3, [r7, #4]
  21512. 8009490: 681b ldr r3, [r3, #0]
  21513. 8009492: 4a28 ldr r2, [pc, #160] @ (8009534 <HAL_DMA_Abort_IT+0x1b4>)
  21514. 8009494: 4293 cmp r3, r2
  21515. 8009496: d031 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21516. 8009498: 687b ldr r3, [r7, #4]
  21517. 800949a: 681b ldr r3, [r3, #0]
  21518. 800949c: 4a26 ldr r2, [pc, #152] @ (8009538 <HAL_DMA_Abort_IT+0x1b8>)
  21519. 800949e: 4293 cmp r3, r2
  21520. 80094a0: d02c beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21521. 80094a2: 687b ldr r3, [r7, #4]
  21522. 80094a4: 681b ldr r3, [r3, #0]
  21523. 80094a6: 4a25 ldr r2, [pc, #148] @ (800953c <HAL_DMA_Abort_IT+0x1bc>)
  21524. 80094a8: 4293 cmp r3, r2
  21525. 80094aa: d027 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21526. 80094ac: 687b ldr r3, [r7, #4]
  21527. 80094ae: 681b ldr r3, [r3, #0]
  21528. 80094b0: 4a23 ldr r2, [pc, #140] @ (8009540 <HAL_DMA_Abort_IT+0x1c0>)
  21529. 80094b2: 4293 cmp r3, r2
  21530. 80094b4: d022 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21531. 80094b6: 687b ldr r3, [r7, #4]
  21532. 80094b8: 681b ldr r3, [r3, #0]
  21533. 80094ba: 4a22 ldr r2, [pc, #136] @ (8009544 <HAL_DMA_Abort_IT+0x1c4>)
  21534. 80094bc: 4293 cmp r3, r2
  21535. 80094be: d01d beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21536. 80094c0: 687b ldr r3, [r7, #4]
  21537. 80094c2: 681b ldr r3, [r3, #0]
  21538. 80094c4: 4a20 ldr r2, [pc, #128] @ (8009548 <HAL_DMA_Abort_IT+0x1c8>)
  21539. 80094c6: 4293 cmp r3, r2
  21540. 80094c8: d018 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21541. 80094ca: 687b ldr r3, [r7, #4]
  21542. 80094cc: 681b ldr r3, [r3, #0]
  21543. 80094ce: 4a1f ldr r2, [pc, #124] @ (800954c <HAL_DMA_Abort_IT+0x1cc>)
  21544. 80094d0: 4293 cmp r3, r2
  21545. 80094d2: d013 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21546. 80094d4: 687b ldr r3, [r7, #4]
  21547. 80094d6: 681b ldr r3, [r3, #0]
  21548. 80094d8: 4a1d ldr r2, [pc, #116] @ (8009550 <HAL_DMA_Abort_IT+0x1d0>)
  21549. 80094da: 4293 cmp r3, r2
  21550. 80094dc: d00e beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21551. 80094de: 687b ldr r3, [r7, #4]
  21552. 80094e0: 681b ldr r3, [r3, #0]
  21553. 80094e2: 4a1c ldr r2, [pc, #112] @ (8009554 <HAL_DMA_Abort_IT+0x1d4>)
  21554. 80094e4: 4293 cmp r3, r2
  21555. 80094e6: d009 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21556. 80094e8: 687b ldr r3, [r7, #4]
  21557. 80094ea: 681b ldr r3, [r3, #0]
  21558. 80094ec: 4a1a ldr r2, [pc, #104] @ (8009558 <HAL_DMA_Abort_IT+0x1d8>)
  21559. 80094ee: 4293 cmp r3, r2
  21560. 80094f0: d004 beq.n 80094fc <HAL_DMA_Abort_IT+0x17c>
  21561. 80094f2: 687b ldr r3, [r7, #4]
  21562. 80094f4: 681b ldr r3, [r3, #0]
  21563. 80094f6: 4a19 ldr r2, [pc, #100] @ (800955c <HAL_DMA_Abort_IT+0x1dc>)
  21564. 80094f8: 4293 cmp r3, r2
  21565. 80094fa: d108 bne.n 800950e <HAL_DMA_Abort_IT+0x18e>
  21566. 80094fc: 687b ldr r3, [r7, #4]
  21567. 80094fe: 681b ldr r3, [r3, #0]
  21568. 8009500: 681a ldr r2, [r3, #0]
  21569. 8009502: 687b ldr r3, [r7, #4]
  21570. 8009504: 681b ldr r3, [r3, #0]
  21571. 8009506: f022 0201 bic.w r2, r2, #1
  21572. 800950a: 601a str r2, [r3, #0]
  21573. 800950c: e178 b.n 8009800 <HAL_DMA_Abort_IT+0x480>
  21574. 800950e: 687b ldr r3, [r7, #4]
  21575. 8009510: 681b ldr r3, [r3, #0]
  21576. 8009512: 681a ldr r2, [r3, #0]
  21577. 8009514: 687b ldr r3, [r7, #4]
  21578. 8009516: 681b ldr r3, [r3, #0]
  21579. 8009518: f022 0201 bic.w r2, r2, #1
  21580. 800951c: 601a str r2, [r3, #0]
  21581. 800951e: e16f b.n 8009800 <HAL_DMA_Abort_IT+0x480>
  21582. 8009520: 40020010 .word 0x40020010
  21583. 8009524: 40020028 .word 0x40020028
  21584. 8009528: 40020040 .word 0x40020040
  21585. 800952c: 40020058 .word 0x40020058
  21586. 8009530: 40020070 .word 0x40020070
  21587. 8009534: 40020088 .word 0x40020088
  21588. 8009538: 400200a0 .word 0x400200a0
  21589. 800953c: 400200b8 .word 0x400200b8
  21590. 8009540: 40020410 .word 0x40020410
  21591. 8009544: 40020428 .word 0x40020428
  21592. 8009548: 40020440 .word 0x40020440
  21593. 800954c: 40020458 .word 0x40020458
  21594. 8009550: 40020470 .word 0x40020470
  21595. 8009554: 40020488 .word 0x40020488
  21596. 8009558: 400204a0 .word 0x400204a0
  21597. 800955c: 400204b8 .word 0x400204b8
  21598. }
  21599. else /* BDMA channel */
  21600. {
  21601. /* Disable DMA All Interrupts */
  21602. ((BDMA_Channel_TypeDef *)hdma->Instance)->CCR &= ~(BDMA_CCR_TCIE | BDMA_CCR_HTIE | BDMA_CCR_TEIE);
  21603. 8009560: 687b ldr r3, [r7, #4]
  21604. 8009562: 681b ldr r3, [r3, #0]
  21605. 8009564: 681a ldr r2, [r3, #0]
  21606. 8009566: 687b ldr r3, [r7, #4]
  21607. 8009568: 681b ldr r3, [r3, #0]
  21608. 800956a: f022 020e bic.w r2, r2, #14
  21609. 800956e: 601a str r2, [r3, #0]
  21610. /* Disable the channel */
  21611. __HAL_DMA_DISABLE(hdma);
  21612. 8009570: 687b ldr r3, [r7, #4]
  21613. 8009572: 681b ldr r3, [r3, #0]
  21614. 8009574: 4a6c ldr r2, [pc, #432] @ (8009728 <HAL_DMA_Abort_IT+0x3a8>)
  21615. 8009576: 4293 cmp r3, r2
  21616. 8009578: d04a beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21617. 800957a: 687b ldr r3, [r7, #4]
  21618. 800957c: 681b ldr r3, [r3, #0]
  21619. 800957e: 4a6b ldr r2, [pc, #428] @ (800972c <HAL_DMA_Abort_IT+0x3ac>)
  21620. 8009580: 4293 cmp r3, r2
  21621. 8009582: d045 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21622. 8009584: 687b ldr r3, [r7, #4]
  21623. 8009586: 681b ldr r3, [r3, #0]
  21624. 8009588: 4a69 ldr r2, [pc, #420] @ (8009730 <HAL_DMA_Abort_IT+0x3b0>)
  21625. 800958a: 4293 cmp r3, r2
  21626. 800958c: d040 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21627. 800958e: 687b ldr r3, [r7, #4]
  21628. 8009590: 681b ldr r3, [r3, #0]
  21629. 8009592: 4a68 ldr r2, [pc, #416] @ (8009734 <HAL_DMA_Abort_IT+0x3b4>)
  21630. 8009594: 4293 cmp r3, r2
  21631. 8009596: d03b beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21632. 8009598: 687b ldr r3, [r7, #4]
  21633. 800959a: 681b ldr r3, [r3, #0]
  21634. 800959c: 4a66 ldr r2, [pc, #408] @ (8009738 <HAL_DMA_Abort_IT+0x3b8>)
  21635. 800959e: 4293 cmp r3, r2
  21636. 80095a0: d036 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21637. 80095a2: 687b ldr r3, [r7, #4]
  21638. 80095a4: 681b ldr r3, [r3, #0]
  21639. 80095a6: 4a65 ldr r2, [pc, #404] @ (800973c <HAL_DMA_Abort_IT+0x3bc>)
  21640. 80095a8: 4293 cmp r3, r2
  21641. 80095aa: d031 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21642. 80095ac: 687b ldr r3, [r7, #4]
  21643. 80095ae: 681b ldr r3, [r3, #0]
  21644. 80095b0: 4a63 ldr r2, [pc, #396] @ (8009740 <HAL_DMA_Abort_IT+0x3c0>)
  21645. 80095b2: 4293 cmp r3, r2
  21646. 80095b4: d02c beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21647. 80095b6: 687b ldr r3, [r7, #4]
  21648. 80095b8: 681b ldr r3, [r3, #0]
  21649. 80095ba: 4a62 ldr r2, [pc, #392] @ (8009744 <HAL_DMA_Abort_IT+0x3c4>)
  21650. 80095bc: 4293 cmp r3, r2
  21651. 80095be: d027 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21652. 80095c0: 687b ldr r3, [r7, #4]
  21653. 80095c2: 681b ldr r3, [r3, #0]
  21654. 80095c4: 4a60 ldr r2, [pc, #384] @ (8009748 <HAL_DMA_Abort_IT+0x3c8>)
  21655. 80095c6: 4293 cmp r3, r2
  21656. 80095c8: d022 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21657. 80095ca: 687b ldr r3, [r7, #4]
  21658. 80095cc: 681b ldr r3, [r3, #0]
  21659. 80095ce: 4a5f ldr r2, [pc, #380] @ (800974c <HAL_DMA_Abort_IT+0x3cc>)
  21660. 80095d0: 4293 cmp r3, r2
  21661. 80095d2: d01d beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21662. 80095d4: 687b ldr r3, [r7, #4]
  21663. 80095d6: 681b ldr r3, [r3, #0]
  21664. 80095d8: 4a5d ldr r2, [pc, #372] @ (8009750 <HAL_DMA_Abort_IT+0x3d0>)
  21665. 80095da: 4293 cmp r3, r2
  21666. 80095dc: d018 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21667. 80095de: 687b ldr r3, [r7, #4]
  21668. 80095e0: 681b ldr r3, [r3, #0]
  21669. 80095e2: 4a5c ldr r2, [pc, #368] @ (8009754 <HAL_DMA_Abort_IT+0x3d4>)
  21670. 80095e4: 4293 cmp r3, r2
  21671. 80095e6: d013 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21672. 80095e8: 687b ldr r3, [r7, #4]
  21673. 80095ea: 681b ldr r3, [r3, #0]
  21674. 80095ec: 4a5a ldr r2, [pc, #360] @ (8009758 <HAL_DMA_Abort_IT+0x3d8>)
  21675. 80095ee: 4293 cmp r3, r2
  21676. 80095f0: d00e beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21677. 80095f2: 687b ldr r3, [r7, #4]
  21678. 80095f4: 681b ldr r3, [r3, #0]
  21679. 80095f6: 4a59 ldr r2, [pc, #356] @ (800975c <HAL_DMA_Abort_IT+0x3dc>)
  21680. 80095f8: 4293 cmp r3, r2
  21681. 80095fa: d009 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21682. 80095fc: 687b ldr r3, [r7, #4]
  21683. 80095fe: 681b ldr r3, [r3, #0]
  21684. 8009600: 4a57 ldr r2, [pc, #348] @ (8009760 <HAL_DMA_Abort_IT+0x3e0>)
  21685. 8009602: 4293 cmp r3, r2
  21686. 8009604: d004 beq.n 8009610 <HAL_DMA_Abort_IT+0x290>
  21687. 8009606: 687b ldr r3, [r7, #4]
  21688. 8009608: 681b ldr r3, [r3, #0]
  21689. 800960a: 4a56 ldr r2, [pc, #344] @ (8009764 <HAL_DMA_Abort_IT+0x3e4>)
  21690. 800960c: 4293 cmp r3, r2
  21691. 800960e: d108 bne.n 8009622 <HAL_DMA_Abort_IT+0x2a2>
  21692. 8009610: 687b ldr r3, [r7, #4]
  21693. 8009612: 681b ldr r3, [r3, #0]
  21694. 8009614: 681a ldr r2, [r3, #0]
  21695. 8009616: 687b ldr r3, [r7, #4]
  21696. 8009618: 681b ldr r3, [r3, #0]
  21697. 800961a: f022 0201 bic.w r2, r2, #1
  21698. 800961e: 601a str r2, [r3, #0]
  21699. 8009620: e007 b.n 8009632 <HAL_DMA_Abort_IT+0x2b2>
  21700. 8009622: 687b ldr r3, [r7, #4]
  21701. 8009624: 681b ldr r3, [r3, #0]
  21702. 8009626: 681a ldr r2, [r3, #0]
  21703. 8009628: 687b ldr r3, [r7, #4]
  21704. 800962a: 681b ldr r3, [r3, #0]
  21705. 800962c: f022 0201 bic.w r2, r2, #1
  21706. 8009630: 601a str r2, [r3, #0]
  21707. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  21708. 8009632: 687b ldr r3, [r7, #4]
  21709. 8009634: 681b ldr r3, [r3, #0]
  21710. 8009636: 4a3c ldr r2, [pc, #240] @ (8009728 <HAL_DMA_Abort_IT+0x3a8>)
  21711. 8009638: 4293 cmp r3, r2
  21712. 800963a: d072 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21713. 800963c: 687b ldr r3, [r7, #4]
  21714. 800963e: 681b ldr r3, [r3, #0]
  21715. 8009640: 4a3a ldr r2, [pc, #232] @ (800972c <HAL_DMA_Abort_IT+0x3ac>)
  21716. 8009642: 4293 cmp r3, r2
  21717. 8009644: d06d beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21718. 8009646: 687b ldr r3, [r7, #4]
  21719. 8009648: 681b ldr r3, [r3, #0]
  21720. 800964a: 4a39 ldr r2, [pc, #228] @ (8009730 <HAL_DMA_Abort_IT+0x3b0>)
  21721. 800964c: 4293 cmp r3, r2
  21722. 800964e: d068 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21723. 8009650: 687b ldr r3, [r7, #4]
  21724. 8009652: 681b ldr r3, [r3, #0]
  21725. 8009654: 4a37 ldr r2, [pc, #220] @ (8009734 <HAL_DMA_Abort_IT+0x3b4>)
  21726. 8009656: 4293 cmp r3, r2
  21727. 8009658: d063 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21728. 800965a: 687b ldr r3, [r7, #4]
  21729. 800965c: 681b ldr r3, [r3, #0]
  21730. 800965e: 4a36 ldr r2, [pc, #216] @ (8009738 <HAL_DMA_Abort_IT+0x3b8>)
  21731. 8009660: 4293 cmp r3, r2
  21732. 8009662: d05e beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21733. 8009664: 687b ldr r3, [r7, #4]
  21734. 8009666: 681b ldr r3, [r3, #0]
  21735. 8009668: 4a34 ldr r2, [pc, #208] @ (800973c <HAL_DMA_Abort_IT+0x3bc>)
  21736. 800966a: 4293 cmp r3, r2
  21737. 800966c: d059 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21738. 800966e: 687b ldr r3, [r7, #4]
  21739. 8009670: 681b ldr r3, [r3, #0]
  21740. 8009672: 4a33 ldr r2, [pc, #204] @ (8009740 <HAL_DMA_Abort_IT+0x3c0>)
  21741. 8009674: 4293 cmp r3, r2
  21742. 8009676: d054 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21743. 8009678: 687b ldr r3, [r7, #4]
  21744. 800967a: 681b ldr r3, [r3, #0]
  21745. 800967c: 4a31 ldr r2, [pc, #196] @ (8009744 <HAL_DMA_Abort_IT+0x3c4>)
  21746. 800967e: 4293 cmp r3, r2
  21747. 8009680: d04f beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21748. 8009682: 687b ldr r3, [r7, #4]
  21749. 8009684: 681b ldr r3, [r3, #0]
  21750. 8009686: 4a30 ldr r2, [pc, #192] @ (8009748 <HAL_DMA_Abort_IT+0x3c8>)
  21751. 8009688: 4293 cmp r3, r2
  21752. 800968a: d04a beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21753. 800968c: 687b ldr r3, [r7, #4]
  21754. 800968e: 681b ldr r3, [r3, #0]
  21755. 8009690: 4a2e ldr r2, [pc, #184] @ (800974c <HAL_DMA_Abort_IT+0x3cc>)
  21756. 8009692: 4293 cmp r3, r2
  21757. 8009694: d045 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21758. 8009696: 687b ldr r3, [r7, #4]
  21759. 8009698: 681b ldr r3, [r3, #0]
  21760. 800969a: 4a2d ldr r2, [pc, #180] @ (8009750 <HAL_DMA_Abort_IT+0x3d0>)
  21761. 800969c: 4293 cmp r3, r2
  21762. 800969e: d040 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21763. 80096a0: 687b ldr r3, [r7, #4]
  21764. 80096a2: 681b ldr r3, [r3, #0]
  21765. 80096a4: 4a2b ldr r2, [pc, #172] @ (8009754 <HAL_DMA_Abort_IT+0x3d4>)
  21766. 80096a6: 4293 cmp r3, r2
  21767. 80096a8: d03b beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21768. 80096aa: 687b ldr r3, [r7, #4]
  21769. 80096ac: 681b ldr r3, [r3, #0]
  21770. 80096ae: 4a2a ldr r2, [pc, #168] @ (8009758 <HAL_DMA_Abort_IT+0x3d8>)
  21771. 80096b0: 4293 cmp r3, r2
  21772. 80096b2: d036 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21773. 80096b4: 687b ldr r3, [r7, #4]
  21774. 80096b6: 681b ldr r3, [r3, #0]
  21775. 80096b8: 4a28 ldr r2, [pc, #160] @ (800975c <HAL_DMA_Abort_IT+0x3dc>)
  21776. 80096ba: 4293 cmp r3, r2
  21777. 80096bc: d031 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21778. 80096be: 687b ldr r3, [r7, #4]
  21779. 80096c0: 681b ldr r3, [r3, #0]
  21780. 80096c2: 4a27 ldr r2, [pc, #156] @ (8009760 <HAL_DMA_Abort_IT+0x3e0>)
  21781. 80096c4: 4293 cmp r3, r2
  21782. 80096c6: d02c beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21783. 80096c8: 687b ldr r3, [r7, #4]
  21784. 80096ca: 681b ldr r3, [r3, #0]
  21785. 80096cc: 4a25 ldr r2, [pc, #148] @ (8009764 <HAL_DMA_Abort_IT+0x3e4>)
  21786. 80096ce: 4293 cmp r3, r2
  21787. 80096d0: d027 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21788. 80096d2: 687b ldr r3, [r7, #4]
  21789. 80096d4: 681b ldr r3, [r3, #0]
  21790. 80096d6: 4a24 ldr r2, [pc, #144] @ (8009768 <HAL_DMA_Abort_IT+0x3e8>)
  21791. 80096d8: 4293 cmp r3, r2
  21792. 80096da: d022 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21793. 80096dc: 687b ldr r3, [r7, #4]
  21794. 80096de: 681b ldr r3, [r3, #0]
  21795. 80096e0: 4a22 ldr r2, [pc, #136] @ (800976c <HAL_DMA_Abort_IT+0x3ec>)
  21796. 80096e2: 4293 cmp r3, r2
  21797. 80096e4: d01d beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21798. 80096e6: 687b ldr r3, [r7, #4]
  21799. 80096e8: 681b ldr r3, [r3, #0]
  21800. 80096ea: 4a21 ldr r2, [pc, #132] @ (8009770 <HAL_DMA_Abort_IT+0x3f0>)
  21801. 80096ec: 4293 cmp r3, r2
  21802. 80096ee: d018 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21803. 80096f0: 687b ldr r3, [r7, #4]
  21804. 80096f2: 681b ldr r3, [r3, #0]
  21805. 80096f4: 4a1f ldr r2, [pc, #124] @ (8009774 <HAL_DMA_Abort_IT+0x3f4>)
  21806. 80096f6: 4293 cmp r3, r2
  21807. 80096f8: d013 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21808. 80096fa: 687b ldr r3, [r7, #4]
  21809. 80096fc: 681b ldr r3, [r3, #0]
  21810. 80096fe: 4a1e ldr r2, [pc, #120] @ (8009778 <HAL_DMA_Abort_IT+0x3f8>)
  21811. 8009700: 4293 cmp r3, r2
  21812. 8009702: d00e beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21813. 8009704: 687b ldr r3, [r7, #4]
  21814. 8009706: 681b ldr r3, [r3, #0]
  21815. 8009708: 4a1c ldr r2, [pc, #112] @ (800977c <HAL_DMA_Abort_IT+0x3fc>)
  21816. 800970a: 4293 cmp r3, r2
  21817. 800970c: d009 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21818. 800970e: 687b ldr r3, [r7, #4]
  21819. 8009710: 681b ldr r3, [r3, #0]
  21820. 8009712: 4a1b ldr r2, [pc, #108] @ (8009780 <HAL_DMA_Abort_IT+0x400>)
  21821. 8009714: 4293 cmp r3, r2
  21822. 8009716: d004 beq.n 8009722 <HAL_DMA_Abort_IT+0x3a2>
  21823. 8009718: 687b ldr r3, [r7, #4]
  21824. 800971a: 681b ldr r3, [r3, #0]
  21825. 800971c: 4a19 ldr r2, [pc, #100] @ (8009784 <HAL_DMA_Abort_IT+0x404>)
  21826. 800971e: 4293 cmp r3, r2
  21827. 8009720: d132 bne.n 8009788 <HAL_DMA_Abort_IT+0x408>
  21828. 8009722: 2301 movs r3, #1
  21829. 8009724: e031 b.n 800978a <HAL_DMA_Abort_IT+0x40a>
  21830. 8009726: bf00 nop
  21831. 8009728: 40020010 .word 0x40020010
  21832. 800972c: 40020028 .word 0x40020028
  21833. 8009730: 40020040 .word 0x40020040
  21834. 8009734: 40020058 .word 0x40020058
  21835. 8009738: 40020070 .word 0x40020070
  21836. 800973c: 40020088 .word 0x40020088
  21837. 8009740: 400200a0 .word 0x400200a0
  21838. 8009744: 400200b8 .word 0x400200b8
  21839. 8009748: 40020410 .word 0x40020410
  21840. 800974c: 40020428 .word 0x40020428
  21841. 8009750: 40020440 .word 0x40020440
  21842. 8009754: 40020458 .word 0x40020458
  21843. 8009758: 40020470 .word 0x40020470
  21844. 800975c: 40020488 .word 0x40020488
  21845. 8009760: 400204a0 .word 0x400204a0
  21846. 8009764: 400204b8 .word 0x400204b8
  21847. 8009768: 58025408 .word 0x58025408
  21848. 800976c: 5802541c .word 0x5802541c
  21849. 8009770: 58025430 .word 0x58025430
  21850. 8009774: 58025444 .word 0x58025444
  21851. 8009778: 58025458 .word 0x58025458
  21852. 800977c: 5802546c .word 0x5802546c
  21853. 8009780: 58025480 .word 0x58025480
  21854. 8009784: 58025494 .word 0x58025494
  21855. 8009788: 2300 movs r3, #0
  21856. 800978a: 2b00 cmp r3, #0
  21857. 800978c: d028 beq.n 80097e0 <HAL_DMA_Abort_IT+0x460>
  21858. {
  21859. /* disable the DMAMUX sync overrun IT */
  21860. hdma->DMAmuxChannel->CCR &= ~DMAMUX_CxCR_SOIE;
  21861. 800978e: 687b ldr r3, [r7, #4]
  21862. 8009790: 6e1b ldr r3, [r3, #96] @ 0x60
  21863. 8009792: 681a ldr r2, [r3, #0]
  21864. 8009794: 687b ldr r3, [r7, #4]
  21865. 8009796: 6e1b ldr r3, [r3, #96] @ 0x60
  21866. 8009798: f422 7280 bic.w r2, r2, #256 @ 0x100
  21867. 800979c: 601a str r2, [r3, #0]
  21868. /* Clear all flags */
  21869. regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21870. 800979e: 687b ldr r3, [r7, #4]
  21871. 80097a0: 6d9b ldr r3, [r3, #88] @ 0x58
  21872. 80097a2: 60fb str r3, [r7, #12]
  21873. regs_bdma->IFCR = ((BDMA_IFCR_CGIF0) << (hdma->StreamIndex & 0x1FU));
  21874. 80097a4: 687b ldr r3, [r7, #4]
  21875. 80097a6: 6ddb ldr r3, [r3, #92] @ 0x5c
  21876. 80097a8: f003 031f and.w r3, r3, #31
  21877. 80097ac: 2201 movs r2, #1
  21878. 80097ae: 409a lsls r2, r3
  21879. 80097b0: 68fb ldr r3, [r7, #12]
  21880. 80097b2: 605a str r2, [r3, #4]
  21881. /* Clear the DMAMUX synchro overrun flag */
  21882. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  21883. 80097b4: 687b ldr r3, [r7, #4]
  21884. 80097b6: 6e5b ldr r3, [r3, #100] @ 0x64
  21885. 80097b8: 687a ldr r2, [r7, #4]
  21886. 80097ba: 6e92 ldr r2, [r2, #104] @ 0x68
  21887. 80097bc: 605a str r2, [r3, #4]
  21888. if(hdma->DMAmuxRequestGen != 0U)
  21889. 80097be: 687b ldr r3, [r7, #4]
  21890. 80097c0: 6edb ldr r3, [r3, #108] @ 0x6c
  21891. 80097c2: 2b00 cmp r3, #0
  21892. 80097c4: d00c beq.n 80097e0 <HAL_DMA_Abort_IT+0x460>
  21893. {
  21894. /* if using DMAMUX request generator, disable the DMAMUX request generator overrun IT*/
  21895. /* disable the request gen overrun IT */
  21896. hdma->DMAmuxRequestGen->RGCR &= ~DMAMUX_RGxCR_OIE;
  21897. 80097c6: 687b ldr r3, [r7, #4]
  21898. 80097c8: 6edb ldr r3, [r3, #108] @ 0x6c
  21899. 80097ca: 681a ldr r2, [r3, #0]
  21900. 80097cc: 687b ldr r3, [r7, #4]
  21901. 80097ce: 6edb ldr r3, [r3, #108] @ 0x6c
  21902. 80097d0: f422 7280 bic.w r2, r2, #256 @ 0x100
  21903. 80097d4: 601a str r2, [r3, #0]
  21904. /* Clear the DMAMUX request generator overrun flag */
  21905. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  21906. 80097d6: 687b ldr r3, [r7, #4]
  21907. 80097d8: 6f1b ldr r3, [r3, #112] @ 0x70
  21908. 80097da: 687a ldr r2, [r7, #4]
  21909. 80097dc: 6f52 ldr r2, [r2, #116] @ 0x74
  21910. 80097de: 605a str r2, [r3, #4]
  21911. }
  21912. }
  21913. /* Change the DMA state */
  21914. hdma->State = HAL_DMA_STATE_READY;
  21915. 80097e0: 687b ldr r3, [r7, #4]
  21916. 80097e2: 2201 movs r2, #1
  21917. 80097e4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  21918. /* Process Unlocked */
  21919. __HAL_UNLOCK(hdma);
  21920. 80097e8: 687b ldr r3, [r7, #4]
  21921. 80097ea: 2200 movs r2, #0
  21922. 80097ec: f883 2034 strb.w r2, [r3, #52] @ 0x34
  21923. /* Call User Abort callback */
  21924. if(hdma->XferAbortCallback != NULL)
  21925. 80097f0: 687b ldr r3, [r7, #4]
  21926. 80097f2: 6d1b ldr r3, [r3, #80] @ 0x50
  21927. 80097f4: 2b00 cmp r3, #0
  21928. 80097f6: d003 beq.n 8009800 <HAL_DMA_Abort_IT+0x480>
  21929. {
  21930. hdma->XferAbortCallback(hdma);
  21931. 80097f8: 687b ldr r3, [r7, #4]
  21932. 80097fa: 6d1b ldr r3, [r3, #80] @ 0x50
  21933. 80097fc: 6878 ldr r0, [r7, #4]
  21934. 80097fe: 4798 blx r3
  21935. }
  21936. }
  21937. }
  21938. return HAL_OK;
  21939. 8009800: 2300 movs r3, #0
  21940. }
  21941. 8009802: 4618 mov r0, r3
  21942. 8009804: 3710 adds r7, #16
  21943. 8009806: 46bd mov sp, r7
  21944. 8009808: bd80 pop {r7, pc}
  21945. 800980a: bf00 nop
  21946. 0800980c <HAL_DMA_IRQHandler>:
  21947. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  21948. * the configuration information for the specified DMA Stream.
  21949. * @retval None
  21950. */
  21951. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  21952. {
  21953. 800980c: b580 push {r7, lr}
  21954. 800980e: b08a sub sp, #40 @ 0x28
  21955. 8009810: af00 add r7, sp, #0
  21956. 8009812: 6078 str r0, [r7, #4]
  21957. uint32_t tmpisr_dma, tmpisr_bdma;
  21958. uint32_t ccr_reg;
  21959. __IO uint32_t count = 0U;
  21960. 8009814: 2300 movs r3, #0
  21961. 8009816: 60fb str r3, [r7, #12]
  21962. uint32_t timeout = SystemCoreClock / 9600U;
  21963. 8009818: 4b67 ldr r3, [pc, #412] @ (80099b8 <HAL_DMA_IRQHandler+0x1ac>)
  21964. 800981a: 681b ldr r3, [r3, #0]
  21965. 800981c: 4a67 ldr r2, [pc, #412] @ (80099bc <HAL_DMA_IRQHandler+0x1b0>)
  21966. 800981e: fba2 2303 umull r2, r3, r2, r3
  21967. 8009822: 0a9b lsrs r3, r3, #10
  21968. 8009824: 627b str r3, [r7, #36] @ 0x24
  21969. /* calculate DMA base and stream number */
  21970. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  21971. 8009826: 687b ldr r3, [r7, #4]
  21972. 8009828: 6d9b ldr r3, [r3, #88] @ 0x58
  21973. 800982a: 623b str r3, [r7, #32]
  21974. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  21975. 800982c: 687b ldr r3, [r7, #4]
  21976. 800982e: 6d9b ldr r3, [r3, #88] @ 0x58
  21977. 8009830: 61fb str r3, [r7, #28]
  21978. tmpisr_dma = regs_dma->ISR;
  21979. 8009832: 6a3b ldr r3, [r7, #32]
  21980. 8009834: 681b ldr r3, [r3, #0]
  21981. 8009836: 61bb str r3, [r7, #24]
  21982. tmpisr_bdma = regs_bdma->ISR;
  21983. 8009838: 69fb ldr r3, [r7, #28]
  21984. 800983a: 681b ldr r3, [r3, #0]
  21985. 800983c: 617b str r3, [r7, #20]
  21986. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  21987. 800983e: 687b ldr r3, [r7, #4]
  21988. 8009840: 681b ldr r3, [r3, #0]
  21989. 8009842: 4a5f ldr r2, [pc, #380] @ (80099c0 <HAL_DMA_IRQHandler+0x1b4>)
  21990. 8009844: 4293 cmp r3, r2
  21991. 8009846: d04a beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  21992. 8009848: 687b ldr r3, [r7, #4]
  21993. 800984a: 681b ldr r3, [r3, #0]
  21994. 800984c: 4a5d ldr r2, [pc, #372] @ (80099c4 <HAL_DMA_IRQHandler+0x1b8>)
  21995. 800984e: 4293 cmp r3, r2
  21996. 8009850: d045 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  21997. 8009852: 687b ldr r3, [r7, #4]
  21998. 8009854: 681b ldr r3, [r3, #0]
  21999. 8009856: 4a5c ldr r2, [pc, #368] @ (80099c8 <HAL_DMA_IRQHandler+0x1bc>)
  22000. 8009858: 4293 cmp r3, r2
  22001. 800985a: d040 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22002. 800985c: 687b ldr r3, [r7, #4]
  22003. 800985e: 681b ldr r3, [r3, #0]
  22004. 8009860: 4a5a ldr r2, [pc, #360] @ (80099cc <HAL_DMA_IRQHandler+0x1c0>)
  22005. 8009862: 4293 cmp r3, r2
  22006. 8009864: d03b beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22007. 8009866: 687b ldr r3, [r7, #4]
  22008. 8009868: 681b ldr r3, [r3, #0]
  22009. 800986a: 4a59 ldr r2, [pc, #356] @ (80099d0 <HAL_DMA_IRQHandler+0x1c4>)
  22010. 800986c: 4293 cmp r3, r2
  22011. 800986e: d036 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22012. 8009870: 687b ldr r3, [r7, #4]
  22013. 8009872: 681b ldr r3, [r3, #0]
  22014. 8009874: 4a57 ldr r2, [pc, #348] @ (80099d4 <HAL_DMA_IRQHandler+0x1c8>)
  22015. 8009876: 4293 cmp r3, r2
  22016. 8009878: d031 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22017. 800987a: 687b ldr r3, [r7, #4]
  22018. 800987c: 681b ldr r3, [r3, #0]
  22019. 800987e: 4a56 ldr r2, [pc, #344] @ (80099d8 <HAL_DMA_IRQHandler+0x1cc>)
  22020. 8009880: 4293 cmp r3, r2
  22021. 8009882: d02c beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22022. 8009884: 687b ldr r3, [r7, #4]
  22023. 8009886: 681b ldr r3, [r3, #0]
  22024. 8009888: 4a54 ldr r2, [pc, #336] @ (80099dc <HAL_DMA_IRQHandler+0x1d0>)
  22025. 800988a: 4293 cmp r3, r2
  22026. 800988c: d027 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22027. 800988e: 687b ldr r3, [r7, #4]
  22028. 8009890: 681b ldr r3, [r3, #0]
  22029. 8009892: 4a53 ldr r2, [pc, #332] @ (80099e0 <HAL_DMA_IRQHandler+0x1d4>)
  22030. 8009894: 4293 cmp r3, r2
  22031. 8009896: d022 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22032. 8009898: 687b ldr r3, [r7, #4]
  22033. 800989a: 681b ldr r3, [r3, #0]
  22034. 800989c: 4a51 ldr r2, [pc, #324] @ (80099e4 <HAL_DMA_IRQHandler+0x1d8>)
  22035. 800989e: 4293 cmp r3, r2
  22036. 80098a0: d01d beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22037. 80098a2: 687b ldr r3, [r7, #4]
  22038. 80098a4: 681b ldr r3, [r3, #0]
  22039. 80098a6: 4a50 ldr r2, [pc, #320] @ (80099e8 <HAL_DMA_IRQHandler+0x1dc>)
  22040. 80098a8: 4293 cmp r3, r2
  22041. 80098aa: d018 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22042. 80098ac: 687b ldr r3, [r7, #4]
  22043. 80098ae: 681b ldr r3, [r3, #0]
  22044. 80098b0: 4a4e ldr r2, [pc, #312] @ (80099ec <HAL_DMA_IRQHandler+0x1e0>)
  22045. 80098b2: 4293 cmp r3, r2
  22046. 80098b4: d013 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22047. 80098b6: 687b ldr r3, [r7, #4]
  22048. 80098b8: 681b ldr r3, [r3, #0]
  22049. 80098ba: 4a4d ldr r2, [pc, #308] @ (80099f0 <HAL_DMA_IRQHandler+0x1e4>)
  22050. 80098bc: 4293 cmp r3, r2
  22051. 80098be: d00e beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22052. 80098c0: 687b ldr r3, [r7, #4]
  22053. 80098c2: 681b ldr r3, [r3, #0]
  22054. 80098c4: 4a4b ldr r2, [pc, #300] @ (80099f4 <HAL_DMA_IRQHandler+0x1e8>)
  22055. 80098c6: 4293 cmp r3, r2
  22056. 80098c8: d009 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22057. 80098ca: 687b ldr r3, [r7, #4]
  22058. 80098cc: 681b ldr r3, [r3, #0]
  22059. 80098ce: 4a4a ldr r2, [pc, #296] @ (80099f8 <HAL_DMA_IRQHandler+0x1ec>)
  22060. 80098d0: 4293 cmp r3, r2
  22061. 80098d2: d004 beq.n 80098de <HAL_DMA_IRQHandler+0xd2>
  22062. 80098d4: 687b ldr r3, [r7, #4]
  22063. 80098d6: 681b ldr r3, [r3, #0]
  22064. 80098d8: 4a48 ldr r2, [pc, #288] @ (80099fc <HAL_DMA_IRQHandler+0x1f0>)
  22065. 80098da: 4293 cmp r3, r2
  22066. 80098dc: d101 bne.n 80098e2 <HAL_DMA_IRQHandler+0xd6>
  22067. 80098de: 2301 movs r3, #1
  22068. 80098e0: e000 b.n 80098e4 <HAL_DMA_IRQHandler+0xd8>
  22069. 80098e2: 2300 movs r3, #0
  22070. 80098e4: 2b00 cmp r3, #0
  22071. 80098e6: f000 842b beq.w 800a140 <HAL_DMA_IRQHandler+0x934>
  22072. {
  22073. /* Transfer Error Interrupt management ***************************************/
  22074. if ((tmpisr_dma & (DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22075. 80098ea: 687b ldr r3, [r7, #4]
  22076. 80098ec: 6ddb ldr r3, [r3, #92] @ 0x5c
  22077. 80098ee: f003 031f and.w r3, r3, #31
  22078. 80098f2: 2208 movs r2, #8
  22079. 80098f4: 409a lsls r2, r3
  22080. 80098f6: 69bb ldr r3, [r7, #24]
  22081. 80098f8: 4013 ands r3, r2
  22082. 80098fa: 2b00 cmp r3, #0
  22083. 80098fc: f000 80a2 beq.w 8009a44 <HAL_DMA_IRQHandler+0x238>
  22084. {
  22085. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != 0U)
  22086. 8009900: 687b ldr r3, [r7, #4]
  22087. 8009902: 681b ldr r3, [r3, #0]
  22088. 8009904: 4a2e ldr r2, [pc, #184] @ (80099c0 <HAL_DMA_IRQHandler+0x1b4>)
  22089. 8009906: 4293 cmp r3, r2
  22090. 8009908: d04a beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22091. 800990a: 687b ldr r3, [r7, #4]
  22092. 800990c: 681b ldr r3, [r3, #0]
  22093. 800990e: 4a2d ldr r2, [pc, #180] @ (80099c4 <HAL_DMA_IRQHandler+0x1b8>)
  22094. 8009910: 4293 cmp r3, r2
  22095. 8009912: d045 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22096. 8009914: 687b ldr r3, [r7, #4]
  22097. 8009916: 681b ldr r3, [r3, #0]
  22098. 8009918: 4a2b ldr r2, [pc, #172] @ (80099c8 <HAL_DMA_IRQHandler+0x1bc>)
  22099. 800991a: 4293 cmp r3, r2
  22100. 800991c: d040 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22101. 800991e: 687b ldr r3, [r7, #4]
  22102. 8009920: 681b ldr r3, [r3, #0]
  22103. 8009922: 4a2a ldr r2, [pc, #168] @ (80099cc <HAL_DMA_IRQHandler+0x1c0>)
  22104. 8009924: 4293 cmp r3, r2
  22105. 8009926: d03b beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22106. 8009928: 687b ldr r3, [r7, #4]
  22107. 800992a: 681b ldr r3, [r3, #0]
  22108. 800992c: 4a28 ldr r2, [pc, #160] @ (80099d0 <HAL_DMA_IRQHandler+0x1c4>)
  22109. 800992e: 4293 cmp r3, r2
  22110. 8009930: d036 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22111. 8009932: 687b ldr r3, [r7, #4]
  22112. 8009934: 681b ldr r3, [r3, #0]
  22113. 8009936: 4a27 ldr r2, [pc, #156] @ (80099d4 <HAL_DMA_IRQHandler+0x1c8>)
  22114. 8009938: 4293 cmp r3, r2
  22115. 800993a: d031 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22116. 800993c: 687b ldr r3, [r7, #4]
  22117. 800993e: 681b ldr r3, [r3, #0]
  22118. 8009940: 4a25 ldr r2, [pc, #148] @ (80099d8 <HAL_DMA_IRQHandler+0x1cc>)
  22119. 8009942: 4293 cmp r3, r2
  22120. 8009944: d02c beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22121. 8009946: 687b ldr r3, [r7, #4]
  22122. 8009948: 681b ldr r3, [r3, #0]
  22123. 800994a: 4a24 ldr r2, [pc, #144] @ (80099dc <HAL_DMA_IRQHandler+0x1d0>)
  22124. 800994c: 4293 cmp r3, r2
  22125. 800994e: d027 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22126. 8009950: 687b ldr r3, [r7, #4]
  22127. 8009952: 681b ldr r3, [r3, #0]
  22128. 8009954: 4a22 ldr r2, [pc, #136] @ (80099e0 <HAL_DMA_IRQHandler+0x1d4>)
  22129. 8009956: 4293 cmp r3, r2
  22130. 8009958: d022 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22131. 800995a: 687b ldr r3, [r7, #4]
  22132. 800995c: 681b ldr r3, [r3, #0]
  22133. 800995e: 4a21 ldr r2, [pc, #132] @ (80099e4 <HAL_DMA_IRQHandler+0x1d8>)
  22134. 8009960: 4293 cmp r3, r2
  22135. 8009962: d01d beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22136. 8009964: 687b ldr r3, [r7, #4]
  22137. 8009966: 681b ldr r3, [r3, #0]
  22138. 8009968: 4a1f ldr r2, [pc, #124] @ (80099e8 <HAL_DMA_IRQHandler+0x1dc>)
  22139. 800996a: 4293 cmp r3, r2
  22140. 800996c: d018 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22141. 800996e: 687b ldr r3, [r7, #4]
  22142. 8009970: 681b ldr r3, [r3, #0]
  22143. 8009972: 4a1e ldr r2, [pc, #120] @ (80099ec <HAL_DMA_IRQHandler+0x1e0>)
  22144. 8009974: 4293 cmp r3, r2
  22145. 8009976: d013 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22146. 8009978: 687b ldr r3, [r7, #4]
  22147. 800997a: 681b ldr r3, [r3, #0]
  22148. 800997c: 4a1c ldr r2, [pc, #112] @ (80099f0 <HAL_DMA_IRQHandler+0x1e4>)
  22149. 800997e: 4293 cmp r3, r2
  22150. 8009980: d00e beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22151. 8009982: 687b ldr r3, [r7, #4]
  22152. 8009984: 681b ldr r3, [r3, #0]
  22153. 8009986: 4a1b ldr r2, [pc, #108] @ (80099f4 <HAL_DMA_IRQHandler+0x1e8>)
  22154. 8009988: 4293 cmp r3, r2
  22155. 800998a: d009 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22156. 800998c: 687b ldr r3, [r7, #4]
  22157. 800998e: 681b ldr r3, [r3, #0]
  22158. 8009990: 4a19 ldr r2, [pc, #100] @ (80099f8 <HAL_DMA_IRQHandler+0x1ec>)
  22159. 8009992: 4293 cmp r3, r2
  22160. 8009994: d004 beq.n 80099a0 <HAL_DMA_IRQHandler+0x194>
  22161. 8009996: 687b ldr r3, [r7, #4]
  22162. 8009998: 681b ldr r3, [r3, #0]
  22163. 800999a: 4a18 ldr r2, [pc, #96] @ (80099fc <HAL_DMA_IRQHandler+0x1f0>)
  22164. 800999c: 4293 cmp r3, r2
  22165. 800999e: d12f bne.n 8009a00 <HAL_DMA_IRQHandler+0x1f4>
  22166. 80099a0: 687b ldr r3, [r7, #4]
  22167. 80099a2: 681b ldr r3, [r3, #0]
  22168. 80099a4: 681b ldr r3, [r3, #0]
  22169. 80099a6: f003 0304 and.w r3, r3, #4
  22170. 80099aa: 2b00 cmp r3, #0
  22171. 80099ac: bf14 ite ne
  22172. 80099ae: 2301 movne r3, #1
  22173. 80099b0: 2300 moveq r3, #0
  22174. 80099b2: b2db uxtb r3, r3
  22175. 80099b4: e02e b.n 8009a14 <HAL_DMA_IRQHandler+0x208>
  22176. 80099b6: bf00 nop
  22177. 80099b8: 24000034 .word 0x24000034
  22178. 80099bc: 1b4e81b5 .word 0x1b4e81b5
  22179. 80099c0: 40020010 .word 0x40020010
  22180. 80099c4: 40020028 .word 0x40020028
  22181. 80099c8: 40020040 .word 0x40020040
  22182. 80099cc: 40020058 .word 0x40020058
  22183. 80099d0: 40020070 .word 0x40020070
  22184. 80099d4: 40020088 .word 0x40020088
  22185. 80099d8: 400200a0 .word 0x400200a0
  22186. 80099dc: 400200b8 .word 0x400200b8
  22187. 80099e0: 40020410 .word 0x40020410
  22188. 80099e4: 40020428 .word 0x40020428
  22189. 80099e8: 40020440 .word 0x40020440
  22190. 80099ec: 40020458 .word 0x40020458
  22191. 80099f0: 40020470 .word 0x40020470
  22192. 80099f4: 40020488 .word 0x40020488
  22193. 80099f8: 400204a0 .word 0x400204a0
  22194. 80099fc: 400204b8 .word 0x400204b8
  22195. 8009a00: 687b ldr r3, [r7, #4]
  22196. 8009a02: 681b ldr r3, [r3, #0]
  22197. 8009a04: 681b ldr r3, [r3, #0]
  22198. 8009a06: f003 0308 and.w r3, r3, #8
  22199. 8009a0a: 2b00 cmp r3, #0
  22200. 8009a0c: bf14 ite ne
  22201. 8009a0e: 2301 movne r3, #1
  22202. 8009a10: 2300 moveq r3, #0
  22203. 8009a12: b2db uxtb r3, r3
  22204. 8009a14: 2b00 cmp r3, #0
  22205. 8009a16: d015 beq.n 8009a44 <HAL_DMA_IRQHandler+0x238>
  22206. {
  22207. /* Disable the transfer error interrupt */
  22208. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TE);
  22209. 8009a18: 687b ldr r3, [r7, #4]
  22210. 8009a1a: 681b ldr r3, [r3, #0]
  22211. 8009a1c: 681a ldr r2, [r3, #0]
  22212. 8009a1e: 687b ldr r3, [r7, #4]
  22213. 8009a20: 681b ldr r3, [r3, #0]
  22214. 8009a22: f022 0204 bic.w r2, r2, #4
  22215. 8009a26: 601a str r2, [r3, #0]
  22216. /* Clear the transfer error flag */
  22217. regs_dma->IFCR = DMA_FLAG_TEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22218. 8009a28: 687b ldr r3, [r7, #4]
  22219. 8009a2a: 6ddb ldr r3, [r3, #92] @ 0x5c
  22220. 8009a2c: f003 031f and.w r3, r3, #31
  22221. 8009a30: 2208 movs r2, #8
  22222. 8009a32: 409a lsls r2, r3
  22223. 8009a34: 6a3b ldr r3, [r7, #32]
  22224. 8009a36: 609a str r2, [r3, #8]
  22225. /* Update error code */
  22226. hdma->ErrorCode |= HAL_DMA_ERROR_TE;
  22227. 8009a38: 687b ldr r3, [r7, #4]
  22228. 8009a3a: 6d5b ldr r3, [r3, #84] @ 0x54
  22229. 8009a3c: f043 0201 orr.w r2, r3, #1
  22230. 8009a40: 687b ldr r3, [r7, #4]
  22231. 8009a42: 655a str r2, [r3, #84] @ 0x54
  22232. }
  22233. }
  22234. /* FIFO Error Interrupt management ******************************************/
  22235. if ((tmpisr_dma & (DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22236. 8009a44: 687b ldr r3, [r7, #4]
  22237. 8009a46: 6ddb ldr r3, [r3, #92] @ 0x5c
  22238. 8009a48: f003 031f and.w r3, r3, #31
  22239. 8009a4c: 69ba ldr r2, [r7, #24]
  22240. 8009a4e: fa22 f303 lsr.w r3, r2, r3
  22241. 8009a52: f003 0301 and.w r3, r3, #1
  22242. 8009a56: 2b00 cmp r3, #0
  22243. 8009a58: d06e beq.n 8009b38 <HAL_DMA_IRQHandler+0x32c>
  22244. {
  22245. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != 0U)
  22246. 8009a5a: 687b ldr r3, [r7, #4]
  22247. 8009a5c: 681b ldr r3, [r3, #0]
  22248. 8009a5e: 4a69 ldr r2, [pc, #420] @ (8009c04 <HAL_DMA_IRQHandler+0x3f8>)
  22249. 8009a60: 4293 cmp r3, r2
  22250. 8009a62: d04a beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22251. 8009a64: 687b ldr r3, [r7, #4]
  22252. 8009a66: 681b ldr r3, [r3, #0]
  22253. 8009a68: 4a67 ldr r2, [pc, #412] @ (8009c08 <HAL_DMA_IRQHandler+0x3fc>)
  22254. 8009a6a: 4293 cmp r3, r2
  22255. 8009a6c: d045 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22256. 8009a6e: 687b ldr r3, [r7, #4]
  22257. 8009a70: 681b ldr r3, [r3, #0]
  22258. 8009a72: 4a66 ldr r2, [pc, #408] @ (8009c0c <HAL_DMA_IRQHandler+0x400>)
  22259. 8009a74: 4293 cmp r3, r2
  22260. 8009a76: d040 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22261. 8009a78: 687b ldr r3, [r7, #4]
  22262. 8009a7a: 681b ldr r3, [r3, #0]
  22263. 8009a7c: 4a64 ldr r2, [pc, #400] @ (8009c10 <HAL_DMA_IRQHandler+0x404>)
  22264. 8009a7e: 4293 cmp r3, r2
  22265. 8009a80: d03b beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22266. 8009a82: 687b ldr r3, [r7, #4]
  22267. 8009a84: 681b ldr r3, [r3, #0]
  22268. 8009a86: 4a63 ldr r2, [pc, #396] @ (8009c14 <HAL_DMA_IRQHandler+0x408>)
  22269. 8009a88: 4293 cmp r3, r2
  22270. 8009a8a: d036 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22271. 8009a8c: 687b ldr r3, [r7, #4]
  22272. 8009a8e: 681b ldr r3, [r3, #0]
  22273. 8009a90: 4a61 ldr r2, [pc, #388] @ (8009c18 <HAL_DMA_IRQHandler+0x40c>)
  22274. 8009a92: 4293 cmp r3, r2
  22275. 8009a94: d031 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22276. 8009a96: 687b ldr r3, [r7, #4]
  22277. 8009a98: 681b ldr r3, [r3, #0]
  22278. 8009a9a: 4a60 ldr r2, [pc, #384] @ (8009c1c <HAL_DMA_IRQHandler+0x410>)
  22279. 8009a9c: 4293 cmp r3, r2
  22280. 8009a9e: d02c beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22281. 8009aa0: 687b ldr r3, [r7, #4]
  22282. 8009aa2: 681b ldr r3, [r3, #0]
  22283. 8009aa4: 4a5e ldr r2, [pc, #376] @ (8009c20 <HAL_DMA_IRQHandler+0x414>)
  22284. 8009aa6: 4293 cmp r3, r2
  22285. 8009aa8: d027 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22286. 8009aaa: 687b ldr r3, [r7, #4]
  22287. 8009aac: 681b ldr r3, [r3, #0]
  22288. 8009aae: 4a5d ldr r2, [pc, #372] @ (8009c24 <HAL_DMA_IRQHandler+0x418>)
  22289. 8009ab0: 4293 cmp r3, r2
  22290. 8009ab2: d022 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22291. 8009ab4: 687b ldr r3, [r7, #4]
  22292. 8009ab6: 681b ldr r3, [r3, #0]
  22293. 8009ab8: 4a5b ldr r2, [pc, #364] @ (8009c28 <HAL_DMA_IRQHandler+0x41c>)
  22294. 8009aba: 4293 cmp r3, r2
  22295. 8009abc: d01d beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22296. 8009abe: 687b ldr r3, [r7, #4]
  22297. 8009ac0: 681b ldr r3, [r3, #0]
  22298. 8009ac2: 4a5a ldr r2, [pc, #360] @ (8009c2c <HAL_DMA_IRQHandler+0x420>)
  22299. 8009ac4: 4293 cmp r3, r2
  22300. 8009ac6: d018 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22301. 8009ac8: 687b ldr r3, [r7, #4]
  22302. 8009aca: 681b ldr r3, [r3, #0]
  22303. 8009acc: 4a58 ldr r2, [pc, #352] @ (8009c30 <HAL_DMA_IRQHandler+0x424>)
  22304. 8009ace: 4293 cmp r3, r2
  22305. 8009ad0: d013 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22306. 8009ad2: 687b ldr r3, [r7, #4]
  22307. 8009ad4: 681b ldr r3, [r3, #0]
  22308. 8009ad6: 4a57 ldr r2, [pc, #348] @ (8009c34 <HAL_DMA_IRQHandler+0x428>)
  22309. 8009ad8: 4293 cmp r3, r2
  22310. 8009ada: d00e beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22311. 8009adc: 687b ldr r3, [r7, #4]
  22312. 8009ade: 681b ldr r3, [r3, #0]
  22313. 8009ae0: 4a55 ldr r2, [pc, #340] @ (8009c38 <HAL_DMA_IRQHandler+0x42c>)
  22314. 8009ae2: 4293 cmp r3, r2
  22315. 8009ae4: d009 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22316. 8009ae6: 687b ldr r3, [r7, #4]
  22317. 8009ae8: 681b ldr r3, [r3, #0]
  22318. 8009aea: 4a54 ldr r2, [pc, #336] @ (8009c3c <HAL_DMA_IRQHandler+0x430>)
  22319. 8009aec: 4293 cmp r3, r2
  22320. 8009aee: d004 beq.n 8009afa <HAL_DMA_IRQHandler+0x2ee>
  22321. 8009af0: 687b ldr r3, [r7, #4]
  22322. 8009af2: 681b ldr r3, [r3, #0]
  22323. 8009af4: 4a52 ldr r2, [pc, #328] @ (8009c40 <HAL_DMA_IRQHandler+0x434>)
  22324. 8009af6: 4293 cmp r3, r2
  22325. 8009af8: d10a bne.n 8009b10 <HAL_DMA_IRQHandler+0x304>
  22326. 8009afa: 687b ldr r3, [r7, #4]
  22327. 8009afc: 681b ldr r3, [r3, #0]
  22328. 8009afe: 695b ldr r3, [r3, #20]
  22329. 8009b00: f003 0380 and.w r3, r3, #128 @ 0x80
  22330. 8009b04: 2b00 cmp r3, #0
  22331. 8009b06: bf14 ite ne
  22332. 8009b08: 2301 movne r3, #1
  22333. 8009b0a: 2300 moveq r3, #0
  22334. 8009b0c: b2db uxtb r3, r3
  22335. 8009b0e: e003 b.n 8009b18 <HAL_DMA_IRQHandler+0x30c>
  22336. 8009b10: 687b ldr r3, [r7, #4]
  22337. 8009b12: 681b ldr r3, [r3, #0]
  22338. 8009b14: 681b ldr r3, [r3, #0]
  22339. 8009b16: 2300 movs r3, #0
  22340. 8009b18: 2b00 cmp r3, #0
  22341. 8009b1a: d00d beq.n 8009b38 <HAL_DMA_IRQHandler+0x32c>
  22342. {
  22343. /* Clear the FIFO error flag */
  22344. regs_dma->IFCR = DMA_FLAG_FEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22345. 8009b1c: 687b ldr r3, [r7, #4]
  22346. 8009b1e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22347. 8009b20: f003 031f and.w r3, r3, #31
  22348. 8009b24: 2201 movs r2, #1
  22349. 8009b26: 409a lsls r2, r3
  22350. 8009b28: 6a3b ldr r3, [r7, #32]
  22351. 8009b2a: 609a str r2, [r3, #8]
  22352. /* Update error code */
  22353. hdma->ErrorCode |= HAL_DMA_ERROR_FE;
  22354. 8009b2c: 687b ldr r3, [r7, #4]
  22355. 8009b2e: 6d5b ldr r3, [r3, #84] @ 0x54
  22356. 8009b30: f043 0202 orr.w r2, r3, #2
  22357. 8009b34: 687b ldr r3, [r7, #4]
  22358. 8009b36: 655a str r2, [r3, #84] @ 0x54
  22359. }
  22360. }
  22361. /* Direct Mode Error Interrupt management ***********************************/
  22362. if ((tmpisr_dma & (DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22363. 8009b38: 687b ldr r3, [r7, #4]
  22364. 8009b3a: 6ddb ldr r3, [r3, #92] @ 0x5c
  22365. 8009b3c: f003 031f and.w r3, r3, #31
  22366. 8009b40: 2204 movs r2, #4
  22367. 8009b42: 409a lsls r2, r3
  22368. 8009b44: 69bb ldr r3, [r7, #24]
  22369. 8009b46: 4013 ands r3, r2
  22370. 8009b48: 2b00 cmp r3, #0
  22371. 8009b4a: f000 808f beq.w 8009c6c <HAL_DMA_IRQHandler+0x460>
  22372. {
  22373. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != 0U)
  22374. 8009b4e: 687b ldr r3, [r7, #4]
  22375. 8009b50: 681b ldr r3, [r3, #0]
  22376. 8009b52: 4a2c ldr r2, [pc, #176] @ (8009c04 <HAL_DMA_IRQHandler+0x3f8>)
  22377. 8009b54: 4293 cmp r3, r2
  22378. 8009b56: d04a beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22379. 8009b58: 687b ldr r3, [r7, #4]
  22380. 8009b5a: 681b ldr r3, [r3, #0]
  22381. 8009b5c: 4a2a ldr r2, [pc, #168] @ (8009c08 <HAL_DMA_IRQHandler+0x3fc>)
  22382. 8009b5e: 4293 cmp r3, r2
  22383. 8009b60: d045 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22384. 8009b62: 687b ldr r3, [r7, #4]
  22385. 8009b64: 681b ldr r3, [r3, #0]
  22386. 8009b66: 4a29 ldr r2, [pc, #164] @ (8009c0c <HAL_DMA_IRQHandler+0x400>)
  22387. 8009b68: 4293 cmp r3, r2
  22388. 8009b6a: d040 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22389. 8009b6c: 687b ldr r3, [r7, #4]
  22390. 8009b6e: 681b ldr r3, [r3, #0]
  22391. 8009b70: 4a27 ldr r2, [pc, #156] @ (8009c10 <HAL_DMA_IRQHandler+0x404>)
  22392. 8009b72: 4293 cmp r3, r2
  22393. 8009b74: d03b beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22394. 8009b76: 687b ldr r3, [r7, #4]
  22395. 8009b78: 681b ldr r3, [r3, #0]
  22396. 8009b7a: 4a26 ldr r2, [pc, #152] @ (8009c14 <HAL_DMA_IRQHandler+0x408>)
  22397. 8009b7c: 4293 cmp r3, r2
  22398. 8009b7e: d036 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22399. 8009b80: 687b ldr r3, [r7, #4]
  22400. 8009b82: 681b ldr r3, [r3, #0]
  22401. 8009b84: 4a24 ldr r2, [pc, #144] @ (8009c18 <HAL_DMA_IRQHandler+0x40c>)
  22402. 8009b86: 4293 cmp r3, r2
  22403. 8009b88: d031 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22404. 8009b8a: 687b ldr r3, [r7, #4]
  22405. 8009b8c: 681b ldr r3, [r3, #0]
  22406. 8009b8e: 4a23 ldr r2, [pc, #140] @ (8009c1c <HAL_DMA_IRQHandler+0x410>)
  22407. 8009b90: 4293 cmp r3, r2
  22408. 8009b92: d02c beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22409. 8009b94: 687b ldr r3, [r7, #4]
  22410. 8009b96: 681b ldr r3, [r3, #0]
  22411. 8009b98: 4a21 ldr r2, [pc, #132] @ (8009c20 <HAL_DMA_IRQHandler+0x414>)
  22412. 8009b9a: 4293 cmp r3, r2
  22413. 8009b9c: d027 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22414. 8009b9e: 687b ldr r3, [r7, #4]
  22415. 8009ba0: 681b ldr r3, [r3, #0]
  22416. 8009ba2: 4a20 ldr r2, [pc, #128] @ (8009c24 <HAL_DMA_IRQHandler+0x418>)
  22417. 8009ba4: 4293 cmp r3, r2
  22418. 8009ba6: d022 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22419. 8009ba8: 687b ldr r3, [r7, #4]
  22420. 8009baa: 681b ldr r3, [r3, #0]
  22421. 8009bac: 4a1e ldr r2, [pc, #120] @ (8009c28 <HAL_DMA_IRQHandler+0x41c>)
  22422. 8009bae: 4293 cmp r3, r2
  22423. 8009bb0: d01d beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22424. 8009bb2: 687b ldr r3, [r7, #4]
  22425. 8009bb4: 681b ldr r3, [r3, #0]
  22426. 8009bb6: 4a1d ldr r2, [pc, #116] @ (8009c2c <HAL_DMA_IRQHandler+0x420>)
  22427. 8009bb8: 4293 cmp r3, r2
  22428. 8009bba: d018 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22429. 8009bbc: 687b ldr r3, [r7, #4]
  22430. 8009bbe: 681b ldr r3, [r3, #0]
  22431. 8009bc0: 4a1b ldr r2, [pc, #108] @ (8009c30 <HAL_DMA_IRQHandler+0x424>)
  22432. 8009bc2: 4293 cmp r3, r2
  22433. 8009bc4: d013 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22434. 8009bc6: 687b ldr r3, [r7, #4]
  22435. 8009bc8: 681b ldr r3, [r3, #0]
  22436. 8009bca: 4a1a ldr r2, [pc, #104] @ (8009c34 <HAL_DMA_IRQHandler+0x428>)
  22437. 8009bcc: 4293 cmp r3, r2
  22438. 8009bce: d00e beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22439. 8009bd0: 687b ldr r3, [r7, #4]
  22440. 8009bd2: 681b ldr r3, [r3, #0]
  22441. 8009bd4: 4a18 ldr r2, [pc, #96] @ (8009c38 <HAL_DMA_IRQHandler+0x42c>)
  22442. 8009bd6: 4293 cmp r3, r2
  22443. 8009bd8: d009 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22444. 8009bda: 687b ldr r3, [r7, #4]
  22445. 8009bdc: 681b ldr r3, [r3, #0]
  22446. 8009bde: 4a17 ldr r2, [pc, #92] @ (8009c3c <HAL_DMA_IRQHandler+0x430>)
  22447. 8009be0: 4293 cmp r3, r2
  22448. 8009be2: d004 beq.n 8009bee <HAL_DMA_IRQHandler+0x3e2>
  22449. 8009be4: 687b ldr r3, [r7, #4]
  22450. 8009be6: 681b ldr r3, [r3, #0]
  22451. 8009be8: 4a15 ldr r2, [pc, #84] @ (8009c40 <HAL_DMA_IRQHandler+0x434>)
  22452. 8009bea: 4293 cmp r3, r2
  22453. 8009bec: d12a bne.n 8009c44 <HAL_DMA_IRQHandler+0x438>
  22454. 8009bee: 687b ldr r3, [r7, #4]
  22455. 8009bf0: 681b ldr r3, [r3, #0]
  22456. 8009bf2: 681b ldr r3, [r3, #0]
  22457. 8009bf4: f003 0302 and.w r3, r3, #2
  22458. 8009bf8: 2b00 cmp r3, #0
  22459. 8009bfa: bf14 ite ne
  22460. 8009bfc: 2301 movne r3, #1
  22461. 8009bfe: 2300 moveq r3, #0
  22462. 8009c00: b2db uxtb r3, r3
  22463. 8009c02: e023 b.n 8009c4c <HAL_DMA_IRQHandler+0x440>
  22464. 8009c04: 40020010 .word 0x40020010
  22465. 8009c08: 40020028 .word 0x40020028
  22466. 8009c0c: 40020040 .word 0x40020040
  22467. 8009c10: 40020058 .word 0x40020058
  22468. 8009c14: 40020070 .word 0x40020070
  22469. 8009c18: 40020088 .word 0x40020088
  22470. 8009c1c: 400200a0 .word 0x400200a0
  22471. 8009c20: 400200b8 .word 0x400200b8
  22472. 8009c24: 40020410 .word 0x40020410
  22473. 8009c28: 40020428 .word 0x40020428
  22474. 8009c2c: 40020440 .word 0x40020440
  22475. 8009c30: 40020458 .word 0x40020458
  22476. 8009c34: 40020470 .word 0x40020470
  22477. 8009c38: 40020488 .word 0x40020488
  22478. 8009c3c: 400204a0 .word 0x400204a0
  22479. 8009c40: 400204b8 .word 0x400204b8
  22480. 8009c44: 687b ldr r3, [r7, #4]
  22481. 8009c46: 681b ldr r3, [r3, #0]
  22482. 8009c48: 681b ldr r3, [r3, #0]
  22483. 8009c4a: 2300 movs r3, #0
  22484. 8009c4c: 2b00 cmp r3, #0
  22485. 8009c4e: d00d beq.n 8009c6c <HAL_DMA_IRQHandler+0x460>
  22486. {
  22487. /* Clear the direct mode error flag */
  22488. regs_dma->IFCR = DMA_FLAG_DMEIF0_4 << (hdma->StreamIndex & 0x1FU);
  22489. 8009c50: 687b ldr r3, [r7, #4]
  22490. 8009c52: 6ddb ldr r3, [r3, #92] @ 0x5c
  22491. 8009c54: f003 031f and.w r3, r3, #31
  22492. 8009c58: 2204 movs r2, #4
  22493. 8009c5a: 409a lsls r2, r3
  22494. 8009c5c: 6a3b ldr r3, [r7, #32]
  22495. 8009c5e: 609a str r2, [r3, #8]
  22496. /* Update error code */
  22497. hdma->ErrorCode |= HAL_DMA_ERROR_DME;
  22498. 8009c60: 687b ldr r3, [r7, #4]
  22499. 8009c62: 6d5b ldr r3, [r3, #84] @ 0x54
  22500. 8009c64: f043 0204 orr.w r2, r3, #4
  22501. 8009c68: 687b ldr r3, [r7, #4]
  22502. 8009c6a: 655a str r2, [r3, #84] @ 0x54
  22503. }
  22504. }
  22505. /* Half Transfer Complete Interrupt management ******************************/
  22506. if ((tmpisr_dma & (DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22507. 8009c6c: 687b ldr r3, [r7, #4]
  22508. 8009c6e: 6ddb ldr r3, [r3, #92] @ 0x5c
  22509. 8009c70: f003 031f and.w r3, r3, #31
  22510. 8009c74: 2210 movs r2, #16
  22511. 8009c76: 409a lsls r2, r3
  22512. 8009c78: 69bb ldr r3, [r7, #24]
  22513. 8009c7a: 4013 ands r3, r2
  22514. 8009c7c: 2b00 cmp r3, #0
  22515. 8009c7e: f000 80a6 beq.w 8009dce <HAL_DMA_IRQHandler+0x5c2>
  22516. {
  22517. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != 0U)
  22518. 8009c82: 687b ldr r3, [r7, #4]
  22519. 8009c84: 681b ldr r3, [r3, #0]
  22520. 8009c86: 4a85 ldr r2, [pc, #532] @ (8009e9c <HAL_DMA_IRQHandler+0x690>)
  22521. 8009c88: 4293 cmp r3, r2
  22522. 8009c8a: d04a beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22523. 8009c8c: 687b ldr r3, [r7, #4]
  22524. 8009c8e: 681b ldr r3, [r3, #0]
  22525. 8009c90: 4a83 ldr r2, [pc, #524] @ (8009ea0 <HAL_DMA_IRQHandler+0x694>)
  22526. 8009c92: 4293 cmp r3, r2
  22527. 8009c94: d045 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22528. 8009c96: 687b ldr r3, [r7, #4]
  22529. 8009c98: 681b ldr r3, [r3, #0]
  22530. 8009c9a: 4a82 ldr r2, [pc, #520] @ (8009ea4 <HAL_DMA_IRQHandler+0x698>)
  22531. 8009c9c: 4293 cmp r3, r2
  22532. 8009c9e: d040 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22533. 8009ca0: 687b ldr r3, [r7, #4]
  22534. 8009ca2: 681b ldr r3, [r3, #0]
  22535. 8009ca4: 4a80 ldr r2, [pc, #512] @ (8009ea8 <HAL_DMA_IRQHandler+0x69c>)
  22536. 8009ca6: 4293 cmp r3, r2
  22537. 8009ca8: d03b beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22538. 8009caa: 687b ldr r3, [r7, #4]
  22539. 8009cac: 681b ldr r3, [r3, #0]
  22540. 8009cae: 4a7f ldr r2, [pc, #508] @ (8009eac <HAL_DMA_IRQHandler+0x6a0>)
  22541. 8009cb0: 4293 cmp r3, r2
  22542. 8009cb2: d036 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22543. 8009cb4: 687b ldr r3, [r7, #4]
  22544. 8009cb6: 681b ldr r3, [r3, #0]
  22545. 8009cb8: 4a7d ldr r2, [pc, #500] @ (8009eb0 <HAL_DMA_IRQHandler+0x6a4>)
  22546. 8009cba: 4293 cmp r3, r2
  22547. 8009cbc: d031 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22548. 8009cbe: 687b ldr r3, [r7, #4]
  22549. 8009cc0: 681b ldr r3, [r3, #0]
  22550. 8009cc2: 4a7c ldr r2, [pc, #496] @ (8009eb4 <HAL_DMA_IRQHandler+0x6a8>)
  22551. 8009cc4: 4293 cmp r3, r2
  22552. 8009cc6: d02c beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22553. 8009cc8: 687b ldr r3, [r7, #4]
  22554. 8009cca: 681b ldr r3, [r3, #0]
  22555. 8009ccc: 4a7a ldr r2, [pc, #488] @ (8009eb8 <HAL_DMA_IRQHandler+0x6ac>)
  22556. 8009cce: 4293 cmp r3, r2
  22557. 8009cd0: d027 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22558. 8009cd2: 687b ldr r3, [r7, #4]
  22559. 8009cd4: 681b ldr r3, [r3, #0]
  22560. 8009cd6: 4a79 ldr r2, [pc, #484] @ (8009ebc <HAL_DMA_IRQHandler+0x6b0>)
  22561. 8009cd8: 4293 cmp r3, r2
  22562. 8009cda: d022 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22563. 8009cdc: 687b ldr r3, [r7, #4]
  22564. 8009cde: 681b ldr r3, [r3, #0]
  22565. 8009ce0: 4a77 ldr r2, [pc, #476] @ (8009ec0 <HAL_DMA_IRQHandler+0x6b4>)
  22566. 8009ce2: 4293 cmp r3, r2
  22567. 8009ce4: d01d beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22568. 8009ce6: 687b ldr r3, [r7, #4]
  22569. 8009ce8: 681b ldr r3, [r3, #0]
  22570. 8009cea: 4a76 ldr r2, [pc, #472] @ (8009ec4 <HAL_DMA_IRQHandler+0x6b8>)
  22571. 8009cec: 4293 cmp r3, r2
  22572. 8009cee: d018 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22573. 8009cf0: 687b ldr r3, [r7, #4]
  22574. 8009cf2: 681b ldr r3, [r3, #0]
  22575. 8009cf4: 4a74 ldr r2, [pc, #464] @ (8009ec8 <HAL_DMA_IRQHandler+0x6bc>)
  22576. 8009cf6: 4293 cmp r3, r2
  22577. 8009cf8: d013 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22578. 8009cfa: 687b ldr r3, [r7, #4]
  22579. 8009cfc: 681b ldr r3, [r3, #0]
  22580. 8009cfe: 4a73 ldr r2, [pc, #460] @ (8009ecc <HAL_DMA_IRQHandler+0x6c0>)
  22581. 8009d00: 4293 cmp r3, r2
  22582. 8009d02: d00e beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22583. 8009d04: 687b ldr r3, [r7, #4]
  22584. 8009d06: 681b ldr r3, [r3, #0]
  22585. 8009d08: 4a71 ldr r2, [pc, #452] @ (8009ed0 <HAL_DMA_IRQHandler+0x6c4>)
  22586. 8009d0a: 4293 cmp r3, r2
  22587. 8009d0c: d009 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22588. 8009d0e: 687b ldr r3, [r7, #4]
  22589. 8009d10: 681b ldr r3, [r3, #0]
  22590. 8009d12: 4a70 ldr r2, [pc, #448] @ (8009ed4 <HAL_DMA_IRQHandler+0x6c8>)
  22591. 8009d14: 4293 cmp r3, r2
  22592. 8009d16: d004 beq.n 8009d22 <HAL_DMA_IRQHandler+0x516>
  22593. 8009d18: 687b ldr r3, [r7, #4]
  22594. 8009d1a: 681b ldr r3, [r3, #0]
  22595. 8009d1c: 4a6e ldr r2, [pc, #440] @ (8009ed8 <HAL_DMA_IRQHandler+0x6cc>)
  22596. 8009d1e: 4293 cmp r3, r2
  22597. 8009d20: d10a bne.n 8009d38 <HAL_DMA_IRQHandler+0x52c>
  22598. 8009d22: 687b ldr r3, [r7, #4]
  22599. 8009d24: 681b ldr r3, [r3, #0]
  22600. 8009d26: 681b ldr r3, [r3, #0]
  22601. 8009d28: f003 0308 and.w r3, r3, #8
  22602. 8009d2c: 2b00 cmp r3, #0
  22603. 8009d2e: bf14 ite ne
  22604. 8009d30: 2301 movne r3, #1
  22605. 8009d32: 2300 moveq r3, #0
  22606. 8009d34: b2db uxtb r3, r3
  22607. 8009d36: e009 b.n 8009d4c <HAL_DMA_IRQHandler+0x540>
  22608. 8009d38: 687b ldr r3, [r7, #4]
  22609. 8009d3a: 681b ldr r3, [r3, #0]
  22610. 8009d3c: 681b ldr r3, [r3, #0]
  22611. 8009d3e: f003 0304 and.w r3, r3, #4
  22612. 8009d42: 2b00 cmp r3, #0
  22613. 8009d44: bf14 ite ne
  22614. 8009d46: 2301 movne r3, #1
  22615. 8009d48: 2300 moveq r3, #0
  22616. 8009d4a: b2db uxtb r3, r3
  22617. 8009d4c: 2b00 cmp r3, #0
  22618. 8009d4e: d03e beq.n 8009dce <HAL_DMA_IRQHandler+0x5c2>
  22619. {
  22620. /* Clear the half transfer complete flag */
  22621. regs_dma->IFCR = DMA_FLAG_HTIF0_4 << (hdma->StreamIndex & 0x1FU);
  22622. 8009d50: 687b ldr r3, [r7, #4]
  22623. 8009d52: 6ddb ldr r3, [r3, #92] @ 0x5c
  22624. 8009d54: f003 031f and.w r3, r3, #31
  22625. 8009d58: 2210 movs r2, #16
  22626. 8009d5a: 409a lsls r2, r3
  22627. 8009d5c: 6a3b ldr r3, [r7, #32]
  22628. 8009d5e: 609a str r2, [r3, #8]
  22629. /* Multi_Buffering mode enabled */
  22630. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  22631. 8009d60: 687b ldr r3, [r7, #4]
  22632. 8009d62: 681b ldr r3, [r3, #0]
  22633. 8009d64: 681b ldr r3, [r3, #0]
  22634. 8009d66: f403 2380 and.w r3, r3, #262144 @ 0x40000
  22635. 8009d6a: 2b00 cmp r3, #0
  22636. 8009d6c: d018 beq.n 8009da0 <HAL_DMA_IRQHandler+0x594>
  22637. {
  22638. /* Current memory buffer used is Memory 0 */
  22639. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  22640. 8009d6e: 687b ldr r3, [r7, #4]
  22641. 8009d70: 681b ldr r3, [r3, #0]
  22642. 8009d72: 681b ldr r3, [r3, #0]
  22643. 8009d74: f403 2300 and.w r3, r3, #524288 @ 0x80000
  22644. 8009d78: 2b00 cmp r3, #0
  22645. 8009d7a: d108 bne.n 8009d8e <HAL_DMA_IRQHandler+0x582>
  22646. {
  22647. if(hdma->XferHalfCpltCallback != NULL)
  22648. 8009d7c: 687b ldr r3, [r7, #4]
  22649. 8009d7e: 6c1b ldr r3, [r3, #64] @ 0x40
  22650. 8009d80: 2b00 cmp r3, #0
  22651. 8009d82: d024 beq.n 8009dce <HAL_DMA_IRQHandler+0x5c2>
  22652. {
  22653. /* Half transfer callback */
  22654. hdma->XferHalfCpltCallback(hdma);
  22655. 8009d84: 687b ldr r3, [r7, #4]
  22656. 8009d86: 6c1b ldr r3, [r3, #64] @ 0x40
  22657. 8009d88: 6878 ldr r0, [r7, #4]
  22658. 8009d8a: 4798 blx r3
  22659. 8009d8c: e01f b.n 8009dce <HAL_DMA_IRQHandler+0x5c2>
  22660. }
  22661. }
  22662. /* Current memory buffer used is Memory 1 */
  22663. else
  22664. {
  22665. if(hdma->XferM1HalfCpltCallback != NULL)
  22666. 8009d8e: 687b ldr r3, [r7, #4]
  22667. 8009d90: 6c9b ldr r3, [r3, #72] @ 0x48
  22668. 8009d92: 2b00 cmp r3, #0
  22669. 8009d94: d01b beq.n 8009dce <HAL_DMA_IRQHandler+0x5c2>
  22670. {
  22671. /* Half transfer callback */
  22672. hdma->XferM1HalfCpltCallback(hdma);
  22673. 8009d96: 687b ldr r3, [r7, #4]
  22674. 8009d98: 6c9b ldr r3, [r3, #72] @ 0x48
  22675. 8009d9a: 6878 ldr r0, [r7, #4]
  22676. 8009d9c: 4798 blx r3
  22677. 8009d9e: e016 b.n 8009dce <HAL_DMA_IRQHandler+0x5c2>
  22678. }
  22679. }
  22680. else
  22681. {
  22682. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  22683. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  22684. 8009da0: 687b ldr r3, [r7, #4]
  22685. 8009da2: 681b ldr r3, [r3, #0]
  22686. 8009da4: 681b ldr r3, [r3, #0]
  22687. 8009da6: f403 7380 and.w r3, r3, #256 @ 0x100
  22688. 8009daa: 2b00 cmp r3, #0
  22689. 8009dac: d107 bne.n 8009dbe <HAL_DMA_IRQHandler+0x5b2>
  22690. {
  22691. /* Disable the half transfer interrupt */
  22692. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  22693. 8009dae: 687b ldr r3, [r7, #4]
  22694. 8009db0: 681b ldr r3, [r3, #0]
  22695. 8009db2: 681a ldr r2, [r3, #0]
  22696. 8009db4: 687b ldr r3, [r7, #4]
  22697. 8009db6: 681b ldr r3, [r3, #0]
  22698. 8009db8: f022 0208 bic.w r2, r2, #8
  22699. 8009dbc: 601a str r2, [r3, #0]
  22700. }
  22701. if(hdma->XferHalfCpltCallback != NULL)
  22702. 8009dbe: 687b ldr r3, [r7, #4]
  22703. 8009dc0: 6c1b ldr r3, [r3, #64] @ 0x40
  22704. 8009dc2: 2b00 cmp r3, #0
  22705. 8009dc4: d003 beq.n 8009dce <HAL_DMA_IRQHandler+0x5c2>
  22706. {
  22707. /* Half transfer callback */
  22708. hdma->XferHalfCpltCallback(hdma);
  22709. 8009dc6: 687b ldr r3, [r7, #4]
  22710. 8009dc8: 6c1b ldr r3, [r3, #64] @ 0x40
  22711. 8009dca: 6878 ldr r0, [r7, #4]
  22712. 8009dcc: 4798 blx r3
  22713. }
  22714. }
  22715. }
  22716. }
  22717. /* Transfer Complete Interrupt management ***********************************/
  22718. if ((tmpisr_dma & (DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU))) != 0U)
  22719. 8009dce: 687b ldr r3, [r7, #4]
  22720. 8009dd0: 6ddb ldr r3, [r3, #92] @ 0x5c
  22721. 8009dd2: f003 031f and.w r3, r3, #31
  22722. 8009dd6: 2220 movs r2, #32
  22723. 8009dd8: 409a lsls r2, r3
  22724. 8009dda: 69bb ldr r3, [r7, #24]
  22725. 8009ddc: 4013 ands r3, r2
  22726. 8009dde: 2b00 cmp r3, #0
  22727. 8009de0: f000 8110 beq.w 800a004 <HAL_DMA_IRQHandler+0x7f8>
  22728. {
  22729. if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != 0U)
  22730. 8009de4: 687b ldr r3, [r7, #4]
  22731. 8009de6: 681b ldr r3, [r3, #0]
  22732. 8009de8: 4a2c ldr r2, [pc, #176] @ (8009e9c <HAL_DMA_IRQHandler+0x690>)
  22733. 8009dea: 4293 cmp r3, r2
  22734. 8009dec: d04a beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22735. 8009dee: 687b ldr r3, [r7, #4]
  22736. 8009df0: 681b ldr r3, [r3, #0]
  22737. 8009df2: 4a2b ldr r2, [pc, #172] @ (8009ea0 <HAL_DMA_IRQHandler+0x694>)
  22738. 8009df4: 4293 cmp r3, r2
  22739. 8009df6: d045 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22740. 8009df8: 687b ldr r3, [r7, #4]
  22741. 8009dfa: 681b ldr r3, [r3, #0]
  22742. 8009dfc: 4a29 ldr r2, [pc, #164] @ (8009ea4 <HAL_DMA_IRQHandler+0x698>)
  22743. 8009dfe: 4293 cmp r3, r2
  22744. 8009e00: d040 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22745. 8009e02: 687b ldr r3, [r7, #4]
  22746. 8009e04: 681b ldr r3, [r3, #0]
  22747. 8009e06: 4a28 ldr r2, [pc, #160] @ (8009ea8 <HAL_DMA_IRQHandler+0x69c>)
  22748. 8009e08: 4293 cmp r3, r2
  22749. 8009e0a: d03b beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22750. 8009e0c: 687b ldr r3, [r7, #4]
  22751. 8009e0e: 681b ldr r3, [r3, #0]
  22752. 8009e10: 4a26 ldr r2, [pc, #152] @ (8009eac <HAL_DMA_IRQHandler+0x6a0>)
  22753. 8009e12: 4293 cmp r3, r2
  22754. 8009e14: d036 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22755. 8009e16: 687b ldr r3, [r7, #4]
  22756. 8009e18: 681b ldr r3, [r3, #0]
  22757. 8009e1a: 4a25 ldr r2, [pc, #148] @ (8009eb0 <HAL_DMA_IRQHandler+0x6a4>)
  22758. 8009e1c: 4293 cmp r3, r2
  22759. 8009e1e: d031 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22760. 8009e20: 687b ldr r3, [r7, #4]
  22761. 8009e22: 681b ldr r3, [r3, #0]
  22762. 8009e24: 4a23 ldr r2, [pc, #140] @ (8009eb4 <HAL_DMA_IRQHandler+0x6a8>)
  22763. 8009e26: 4293 cmp r3, r2
  22764. 8009e28: d02c beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22765. 8009e2a: 687b ldr r3, [r7, #4]
  22766. 8009e2c: 681b ldr r3, [r3, #0]
  22767. 8009e2e: 4a22 ldr r2, [pc, #136] @ (8009eb8 <HAL_DMA_IRQHandler+0x6ac>)
  22768. 8009e30: 4293 cmp r3, r2
  22769. 8009e32: d027 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22770. 8009e34: 687b ldr r3, [r7, #4]
  22771. 8009e36: 681b ldr r3, [r3, #0]
  22772. 8009e38: 4a20 ldr r2, [pc, #128] @ (8009ebc <HAL_DMA_IRQHandler+0x6b0>)
  22773. 8009e3a: 4293 cmp r3, r2
  22774. 8009e3c: d022 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22775. 8009e3e: 687b ldr r3, [r7, #4]
  22776. 8009e40: 681b ldr r3, [r3, #0]
  22777. 8009e42: 4a1f ldr r2, [pc, #124] @ (8009ec0 <HAL_DMA_IRQHandler+0x6b4>)
  22778. 8009e44: 4293 cmp r3, r2
  22779. 8009e46: d01d beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22780. 8009e48: 687b ldr r3, [r7, #4]
  22781. 8009e4a: 681b ldr r3, [r3, #0]
  22782. 8009e4c: 4a1d ldr r2, [pc, #116] @ (8009ec4 <HAL_DMA_IRQHandler+0x6b8>)
  22783. 8009e4e: 4293 cmp r3, r2
  22784. 8009e50: d018 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22785. 8009e52: 687b ldr r3, [r7, #4]
  22786. 8009e54: 681b ldr r3, [r3, #0]
  22787. 8009e56: 4a1c ldr r2, [pc, #112] @ (8009ec8 <HAL_DMA_IRQHandler+0x6bc>)
  22788. 8009e58: 4293 cmp r3, r2
  22789. 8009e5a: d013 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22790. 8009e5c: 687b ldr r3, [r7, #4]
  22791. 8009e5e: 681b ldr r3, [r3, #0]
  22792. 8009e60: 4a1a ldr r2, [pc, #104] @ (8009ecc <HAL_DMA_IRQHandler+0x6c0>)
  22793. 8009e62: 4293 cmp r3, r2
  22794. 8009e64: d00e beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22795. 8009e66: 687b ldr r3, [r7, #4]
  22796. 8009e68: 681b ldr r3, [r3, #0]
  22797. 8009e6a: 4a19 ldr r2, [pc, #100] @ (8009ed0 <HAL_DMA_IRQHandler+0x6c4>)
  22798. 8009e6c: 4293 cmp r3, r2
  22799. 8009e6e: d009 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22800. 8009e70: 687b ldr r3, [r7, #4]
  22801. 8009e72: 681b ldr r3, [r3, #0]
  22802. 8009e74: 4a17 ldr r2, [pc, #92] @ (8009ed4 <HAL_DMA_IRQHandler+0x6c8>)
  22803. 8009e76: 4293 cmp r3, r2
  22804. 8009e78: d004 beq.n 8009e84 <HAL_DMA_IRQHandler+0x678>
  22805. 8009e7a: 687b ldr r3, [r7, #4]
  22806. 8009e7c: 681b ldr r3, [r3, #0]
  22807. 8009e7e: 4a16 ldr r2, [pc, #88] @ (8009ed8 <HAL_DMA_IRQHandler+0x6cc>)
  22808. 8009e80: 4293 cmp r3, r2
  22809. 8009e82: d12b bne.n 8009edc <HAL_DMA_IRQHandler+0x6d0>
  22810. 8009e84: 687b ldr r3, [r7, #4]
  22811. 8009e86: 681b ldr r3, [r3, #0]
  22812. 8009e88: 681b ldr r3, [r3, #0]
  22813. 8009e8a: f003 0310 and.w r3, r3, #16
  22814. 8009e8e: 2b00 cmp r3, #0
  22815. 8009e90: bf14 ite ne
  22816. 8009e92: 2301 movne r3, #1
  22817. 8009e94: 2300 moveq r3, #0
  22818. 8009e96: b2db uxtb r3, r3
  22819. 8009e98: e02a b.n 8009ef0 <HAL_DMA_IRQHandler+0x6e4>
  22820. 8009e9a: bf00 nop
  22821. 8009e9c: 40020010 .word 0x40020010
  22822. 8009ea0: 40020028 .word 0x40020028
  22823. 8009ea4: 40020040 .word 0x40020040
  22824. 8009ea8: 40020058 .word 0x40020058
  22825. 8009eac: 40020070 .word 0x40020070
  22826. 8009eb0: 40020088 .word 0x40020088
  22827. 8009eb4: 400200a0 .word 0x400200a0
  22828. 8009eb8: 400200b8 .word 0x400200b8
  22829. 8009ebc: 40020410 .word 0x40020410
  22830. 8009ec0: 40020428 .word 0x40020428
  22831. 8009ec4: 40020440 .word 0x40020440
  22832. 8009ec8: 40020458 .word 0x40020458
  22833. 8009ecc: 40020470 .word 0x40020470
  22834. 8009ed0: 40020488 .word 0x40020488
  22835. 8009ed4: 400204a0 .word 0x400204a0
  22836. 8009ed8: 400204b8 .word 0x400204b8
  22837. 8009edc: 687b ldr r3, [r7, #4]
  22838. 8009ede: 681b ldr r3, [r3, #0]
  22839. 8009ee0: 681b ldr r3, [r3, #0]
  22840. 8009ee2: f003 0302 and.w r3, r3, #2
  22841. 8009ee6: 2b00 cmp r3, #0
  22842. 8009ee8: bf14 ite ne
  22843. 8009eea: 2301 movne r3, #1
  22844. 8009eec: 2300 moveq r3, #0
  22845. 8009eee: b2db uxtb r3, r3
  22846. 8009ef0: 2b00 cmp r3, #0
  22847. 8009ef2: f000 8087 beq.w 800a004 <HAL_DMA_IRQHandler+0x7f8>
  22848. {
  22849. /* Clear the transfer complete flag */
  22850. regs_dma->IFCR = DMA_FLAG_TCIF0_4 << (hdma->StreamIndex & 0x1FU);
  22851. 8009ef6: 687b ldr r3, [r7, #4]
  22852. 8009ef8: 6ddb ldr r3, [r3, #92] @ 0x5c
  22853. 8009efa: f003 031f and.w r3, r3, #31
  22854. 8009efe: 2220 movs r2, #32
  22855. 8009f00: 409a lsls r2, r3
  22856. 8009f02: 6a3b ldr r3, [r7, #32]
  22857. 8009f04: 609a str r2, [r3, #8]
  22858. if(HAL_DMA_STATE_ABORT == hdma->State)
  22859. 8009f06: 687b ldr r3, [r7, #4]
  22860. 8009f08: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
  22861. 8009f0c: b2db uxtb r3, r3
  22862. 8009f0e: 2b04 cmp r3, #4
  22863. 8009f10: d139 bne.n 8009f86 <HAL_DMA_IRQHandler+0x77a>
  22864. {
  22865. /* Disable all the transfer interrupts */
  22866. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME);
  22867. 8009f12: 687b ldr r3, [r7, #4]
  22868. 8009f14: 681b ldr r3, [r3, #0]
  22869. 8009f16: 681a ldr r2, [r3, #0]
  22870. 8009f18: 687b ldr r3, [r7, #4]
  22871. 8009f1a: 681b ldr r3, [r3, #0]
  22872. 8009f1c: f022 0216 bic.w r2, r2, #22
  22873. 8009f20: 601a str r2, [r3, #0]
  22874. ((DMA_Stream_TypeDef *)hdma->Instance)->FCR &= ~(DMA_IT_FE);
  22875. 8009f22: 687b ldr r3, [r7, #4]
  22876. 8009f24: 681b ldr r3, [r3, #0]
  22877. 8009f26: 695a ldr r2, [r3, #20]
  22878. 8009f28: 687b ldr r3, [r7, #4]
  22879. 8009f2a: 681b ldr r3, [r3, #0]
  22880. 8009f2c: f022 0280 bic.w r2, r2, #128 @ 0x80
  22881. 8009f30: 615a str r2, [r3, #20]
  22882. if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL))
  22883. 8009f32: 687b ldr r3, [r7, #4]
  22884. 8009f34: 6c1b ldr r3, [r3, #64] @ 0x40
  22885. 8009f36: 2b00 cmp r3, #0
  22886. 8009f38: d103 bne.n 8009f42 <HAL_DMA_IRQHandler+0x736>
  22887. 8009f3a: 687b ldr r3, [r7, #4]
  22888. 8009f3c: 6c9b ldr r3, [r3, #72] @ 0x48
  22889. 8009f3e: 2b00 cmp r3, #0
  22890. 8009f40: d007 beq.n 8009f52 <HAL_DMA_IRQHandler+0x746>
  22891. {
  22892. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_HT);
  22893. 8009f42: 687b ldr r3, [r7, #4]
  22894. 8009f44: 681b ldr r3, [r3, #0]
  22895. 8009f46: 681a ldr r2, [r3, #0]
  22896. 8009f48: 687b ldr r3, [r7, #4]
  22897. 8009f4a: 681b ldr r3, [r3, #0]
  22898. 8009f4c: f022 0208 bic.w r2, r2, #8
  22899. 8009f50: 601a str r2, [r3, #0]
  22900. }
  22901. /* Clear all interrupt flags at correct offset within the register */
  22902. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  22903. 8009f52: 687b ldr r3, [r7, #4]
  22904. 8009f54: 6ddb ldr r3, [r3, #92] @ 0x5c
  22905. 8009f56: f003 031f and.w r3, r3, #31
  22906. 8009f5a: 223f movs r2, #63 @ 0x3f
  22907. 8009f5c: 409a lsls r2, r3
  22908. 8009f5e: 6a3b ldr r3, [r7, #32]
  22909. 8009f60: 609a str r2, [r3, #8]
  22910. /* Change the DMA state */
  22911. hdma->State = HAL_DMA_STATE_READY;
  22912. 8009f62: 687b ldr r3, [r7, #4]
  22913. 8009f64: 2201 movs r2, #1
  22914. 8009f66: f883 2035 strb.w r2, [r3, #53] @ 0x35
  22915. /* Process Unlocked */
  22916. __HAL_UNLOCK(hdma);
  22917. 8009f6a: 687b ldr r3, [r7, #4]
  22918. 8009f6c: 2200 movs r2, #0
  22919. 8009f6e: f883 2034 strb.w r2, [r3, #52] @ 0x34
  22920. if(hdma->XferAbortCallback != NULL)
  22921. 8009f72: 687b ldr r3, [r7, #4]
  22922. 8009f74: 6d1b ldr r3, [r3, #80] @ 0x50
  22923. 8009f76: 2b00 cmp r3, #0
  22924. 8009f78: f000 834a beq.w 800a610 <HAL_DMA_IRQHandler+0xe04>
  22925. {
  22926. hdma->XferAbortCallback(hdma);
  22927. 8009f7c: 687b ldr r3, [r7, #4]
  22928. 8009f7e: 6d1b ldr r3, [r3, #80] @ 0x50
  22929. 8009f80: 6878 ldr r0, [r7, #4]
  22930. 8009f82: 4798 blx r3
  22931. }
  22932. return;
  22933. 8009f84: e344 b.n 800a610 <HAL_DMA_IRQHandler+0xe04>
  22934. }
  22935. if(((((DMA_Stream_TypeDef *)hdma->Instance)->CR) & (uint32_t)(DMA_SxCR_DBM)) != 0U)
  22936. 8009f86: 687b ldr r3, [r7, #4]
  22937. 8009f88: 681b ldr r3, [r3, #0]
  22938. 8009f8a: 681b ldr r3, [r3, #0]
  22939. 8009f8c: f403 2380 and.w r3, r3, #262144 @ 0x40000
  22940. 8009f90: 2b00 cmp r3, #0
  22941. 8009f92: d018 beq.n 8009fc6 <HAL_DMA_IRQHandler+0x7ba>
  22942. {
  22943. /* Current memory buffer used is Memory 0 */
  22944. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CT) == 0U)
  22945. 8009f94: 687b ldr r3, [r7, #4]
  22946. 8009f96: 681b ldr r3, [r3, #0]
  22947. 8009f98: 681b ldr r3, [r3, #0]
  22948. 8009f9a: f403 2300 and.w r3, r3, #524288 @ 0x80000
  22949. 8009f9e: 2b00 cmp r3, #0
  22950. 8009fa0: d108 bne.n 8009fb4 <HAL_DMA_IRQHandler+0x7a8>
  22951. {
  22952. if(hdma->XferM1CpltCallback != NULL)
  22953. 8009fa2: 687b ldr r3, [r7, #4]
  22954. 8009fa4: 6c5b ldr r3, [r3, #68] @ 0x44
  22955. 8009fa6: 2b00 cmp r3, #0
  22956. 8009fa8: d02c beq.n 800a004 <HAL_DMA_IRQHandler+0x7f8>
  22957. {
  22958. /* Transfer complete Callback for memory1 */
  22959. hdma->XferM1CpltCallback(hdma);
  22960. 8009faa: 687b ldr r3, [r7, #4]
  22961. 8009fac: 6c5b ldr r3, [r3, #68] @ 0x44
  22962. 8009fae: 6878 ldr r0, [r7, #4]
  22963. 8009fb0: 4798 blx r3
  22964. 8009fb2: e027 b.n 800a004 <HAL_DMA_IRQHandler+0x7f8>
  22965. }
  22966. }
  22967. /* Current memory buffer used is Memory 1 */
  22968. else
  22969. {
  22970. if(hdma->XferCpltCallback != NULL)
  22971. 8009fb4: 687b ldr r3, [r7, #4]
  22972. 8009fb6: 6bdb ldr r3, [r3, #60] @ 0x3c
  22973. 8009fb8: 2b00 cmp r3, #0
  22974. 8009fba: d023 beq.n 800a004 <HAL_DMA_IRQHandler+0x7f8>
  22975. {
  22976. /* Transfer complete Callback for memory0 */
  22977. hdma->XferCpltCallback(hdma);
  22978. 8009fbc: 687b ldr r3, [r7, #4]
  22979. 8009fbe: 6bdb ldr r3, [r3, #60] @ 0x3c
  22980. 8009fc0: 6878 ldr r0, [r7, #4]
  22981. 8009fc2: 4798 blx r3
  22982. 8009fc4: e01e b.n 800a004 <HAL_DMA_IRQHandler+0x7f8>
  22983. }
  22984. }
  22985. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  22986. else
  22987. {
  22988. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_CIRC) == 0U)
  22989. 8009fc6: 687b ldr r3, [r7, #4]
  22990. 8009fc8: 681b ldr r3, [r3, #0]
  22991. 8009fca: 681b ldr r3, [r3, #0]
  22992. 8009fcc: f403 7380 and.w r3, r3, #256 @ 0x100
  22993. 8009fd0: 2b00 cmp r3, #0
  22994. 8009fd2: d10f bne.n 8009ff4 <HAL_DMA_IRQHandler+0x7e8>
  22995. {
  22996. /* Disable the transfer complete interrupt */
  22997. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= ~(DMA_IT_TC);
  22998. 8009fd4: 687b ldr r3, [r7, #4]
  22999. 8009fd6: 681b ldr r3, [r3, #0]
  23000. 8009fd8: 681a ldr r2, [r3, #0]
  23001. 8009fda: 687b ldr r3, [r7, #4]
  23002. 8009fdc: 681b ldr r3, [r3, #0]
  23003. 8009fde: f022 0210 bic.w r2, r2, #16
  23004. 8009fe2: 601a str r2, [r3, #0]
  23005. /* Change the DMA state */
  23006. hdma->State = HAL_DMA_STATE_READY;
  23007. 8009fe4: 687b ldr r3, [r7, #4]
  23008. 8009fe6: 2201 movs r2, #1
  23009. 8009fe8: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23010. /* Process Unlocked */
  23011. __HAL_UNLOCK(hdma);
  23012. 8009fec: 687b ldr r3, [r7, #4]
  23013. 8009fee: 2200 movs r2, #0
  23014. 8009ff0: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23015. }
  23016. if(hdma->XferCpltCallback != NULL)
  23017. 8009ff4: 687b ldr r3, [r7, #4]
  23018. 8009ff6: 6bdb ldr r3, [r3, #60] @ 0x3c
  23019. 8009ff8: 2b00 cmp r3, #0
  23020. 8009ffa: d003 beq.n 800a004 <HAL_DMA_IRQHandler+0x7f8>
  23021. {
  23022. /* Transfer complete callback */
  23023. hdma->XferCpltCallback(hdma);
  23024. 8009ffc: 687b ldr r3, [r7, #4]
  23025. 8009ffe: 6bdb ldr r3, [r3, #60] @ 0x3c
  23026. 800a000: 6878 ldr r0, [r7, #4]
  23027. 800a002: 4798 blx r3
  23028. }
  23029. }
  23030. }
  23031. /* manage error case */
  23032. if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
  23033. 800a004: 687b ldr r3, [r7, #4]
  23034. 800a006: 6d5b ldr r3, [r3, #84] @ 0x54
  23035. 800a008: 2b00 cmp r3, #0
  23036. 800a00a: f000 8306 beq.w 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23037. {
  23038. if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != 0U)
  23039. 800a00e: 687b ldr r3, [r7, #4]
  23040. 800a010: 6d5b ldr r3, [r3, #84] @ 0x54
  23041. 800a012: f003 0301 and.w r3, r3, #1
  23042. 800a016: 2b00 cmp r3, #0
  23043. 800a018: f000 8088 beq.w 800a12c <HAL_DMA_IRQHandler+0x920>
  23044. {
  23045. hdma->State = HAL_DMA_STATE_ABORT;
  23046. 800a01c: 687b ldr r3, [r7, #4]
  23047. 800a01e: 2204 movs r2, #4
  23048. 800a020: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23049. /* Disable the stream */
  23050. __HAL_DMA_DISABLE(hdma);
  23051. 800a024: 687b ldr r3, [r7, #4]
  23052. 800a026: 681b ldr r3, [r3, #0]
  23053. 800a028: 4a7a ldr r2, [pc, #488] @ (800a214 <HAL_DMA_IRQHandler+0xa08>)
  23054. 800a02a: 4293 cmp r3, r2
  23055. 800a02c: d04a beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23056. 800a02e: 687b ldr r3, [r7, #4]
  23057. 800a030: 681b ldr r3, [r3, #0]
  23058. 800a032: 4a79 ldr r2, [pc, #484] @ (800a218 <HAL_DMA_IRQHandler+0xa0c>)
  23059. 800a034: 4293 cmp r3, r2
  23060. 800a036: d045 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23061. 800a038: 687b ldr r3, [r7, #4]
  23062. 800a03a: 681b ldr r3, [r3, #0]
  23063. 800a03c: 4a77 ldr r2, [pc, #476] @ (800a21c <HAL_DMA_IRQHandler+0xa10>)
  23064. 800a03e: 4293 cmp r3, r2
  23065. 800a040: d040 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23066. 800a042: 687b ldr r3, [r7, #4]
  23067. 800a044: 681b ldr r3, [r3, #0]
  23068. 800a046: 4a76 ldr r2, [pc, #472] @ (800a220 <HAL_DMA_IRQHandler+0xa14>)
  23069. 800a048: 4293 cmp r3, r2
  23070. 800a04a: d03b beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23071. 800a04c: 687b ldr r3, [r7, #4]
  23072. 800a04e: 681b ldr r3, [r3, #0]
  23073. 800a050: 4a74 ldr r2, [pc, #464] @ (800a224 <HAL_DMA_IRQHandler+0xa18>)
  23074. 800a052: 4293 cmp r3, r2
  23075. 800a054: d036 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23076. 800a056: 687b ldr r3, [r7, #4]
  23077. 800a058: 681b ldr r3, [r3, #0]
  23078. 800a05a: 4a73 ldr r2, [pc, #460] @ (800a228 <HAL_DMA_IRQHandler+0xa1c>)
  23079. 800a05c: 4293 cmp r3, r2
  23080. 800a05e: d031 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23081. 800a060: 687b ldr r3, [r7, #4]
  23082. 800a062: 681b ldr r3, [r3, #0]
  23083. 800a064: 4a71 ldr r2, [pc, #452] @ (800a22c <HAL_DMA_IRQHandler+0xa20>)
  23084. 800a066: 4293 cmp r3, r2
  23085. 800a068: d02c beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23086. 800a06a: 687b ldr r3, [r7, #4]
  23087. 800a06c: 681b ldr r3, [r3, #0]
  23088. 800a06e: 4a70 ldr r2, [pc, #448] @ (800a230 <HAL_DMA_IRQHandler+0xa24>)
  23089. 800a070: 4293 cmp r3, r2
  23090. 800a072: d027 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23091. 800a074: 687b ldr r3, [r7, #4]
  23092. 800a076: 681b ldr r3, [r3, #0]
  23093. 800a078: 4a6e ldr r2, [pc, #440] @ (800a234 <HAL_DMA_IRQHandler+0xa28>)
  23094. 800a07a: 4293 cmp r3, r2
  23095. 800a07c: d022 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23096. 800a07e: 687b ldr r3, [r7, #4]
  23097. 800a080: 681b ldr r3, [r3, #0]
  23098. 800a082: 4a6d ldr r2, [pc, #436] @ (800a238 <HAL_DMA_IRQHandler+0xa2c>)
  23099. 800a084: 4293 cmp r3, r2
  23100. 800a086: d01d beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23101. 800a088: 687b ldr r3, [r7, #4]
  23102. 800a08a: 681b ldr r3, [r3, #0]
  23103. 800a08c: 4a6b ldr r2, [pc, #428] @ (800a23c <HAL_DMA_IRQHandler+0xa30>)
  23104. 800a08e: 4293 cmp r3, r2
  23105. 800a090: d018 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23106. 800a092: 687b ldr r3, [r7, #4]
  23107. 800a094: 681b ldr r3, [r3, #0]
  23108. 800a096: 4a6a ldr r2, [pc, #424] @ (800a240 <HAL_DMA_IRQHandler+0xa34>)
  23109. 800a098: 4293 cmp r3, r2
  23110. 800a09a: d013 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23111. 800a09c: 687b ldr r3, [r7, #4]
  23112. 800a09e: 681b ldr r3, [r3, #0]
  23113. 800a0a0: 4a68 ldr r2, [pc, #416] @ (800a244 <HAL_DMA_IRQHandler+0xa38>)
  23114. 800a0a2: 4293 cmp r3, r2
  23115. 800a0a4: d00e beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23116. 800a0a6: 687b ldr r3, [r7, #4]
  23117. 800a0a8: 681b ldr r3, [r3, #0]
  23118. 800a0aa: 4a67 ldr r2, [pc, #412] @ (800a248 <HAL_DMA_IRQHandler+0xa3c>)
  23119. 800a0ac: 4293 cmp r3, r2
  23120. 800a0ae: d009 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23121. 800a0b0: 687b ldr r3, [r7, #4]
  23122. 800a0b2: 681b ldr r3, [r3, #0]
  23123. 800a0b4: 4a65 ldr r2, [pc, #404] @ (800a24c <HAL_DMA_IRQHandler+0xa40>)
  23124. 800a0b6: 4293 cmp r3, r2
  23125. 800a0b8: d004 beq.n 800a0c4 <HAL_DMA_IRQHandler+0x8b8>
  23126. 800a0ba: 687b ldr r3, [r7, #4]
  23127. 800a0bc: 681b ldr r3, [r3, #0]
  23128. 800a0be: 4a64 ldr r2, [pc, #400] @ (800a250 <HAL_DMA_IRQHandler+0xa44>)
  23129. 800a0c0: 4293 cmp r3, r2
  23130. 800a0c2: d108 bne.n 800a0d6 <HAL_DMA_IRQHandler+0x8ca>
  23131. 800a0c4: 687b ldr r3, [r7, #4]
  23132. 800a0c6: 681b ldr r3, [r3, #0]
  23133. 800a0c8: 681a ldr r2, [r3, #0]
  23134. 800a0ca: 687b ldr r3, [r7, #4]
  23135. 800a0cc: 681b ldr r3, [r3, #0]
  23136. 800a0ce: f022 0201 bic.w r2, r2, #1
  23137. 800a0d2: 601a str r2, [r3, #0]
  23138. 800a0d4: e007 b.n 800a0e6 <HAL_DMA_IRQHandler+0x8da>
  23139. 800a0d6: 687b ldr r3, [r7, #4]
  23140. 800a0d8: 681b ldr r3, [r3, #0]
  23141. 800a0da: 681a ldr r2, [r3, #0]
  23142. 800a0dc: 687b ldr r3, [r7, #4]
  23143. 800a0de: 681b ldr r3, [r3, #0]
  23144. 800a0e0: f022 0201 bic.w r2, r2, #1
  23145. 800a0e4: 601a str r2, [r3, #0]
  23146. do
  23147. {
  23148. if (++count > timeout)
  23149. 800a0e6: 68fb ldr r3, [r7, #12]
  23150. 800a0e8: 3301 adds r3, #1
  23151. 800a0ea: 60fb str r3, [r7, #12]
  23152. 800a0ec: 6a7a ldr r2, [r7, #36] @ 0x24
  23153. 800a0ee: 429a cmp r2, r3
  23154. 800a0f0: d307 bcc.n 800a102 <HAL_DMA_IRQHandler+0x8f6>
  23155. {
  23156. break;
  23157. }
  23158. }
  23159. while((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U);
  23160. 800a0f2: 687b ldr r3, [r7, #4]
  23161. 800a0f4: 681b ldr r3, [r3, #0]
  23162. 800a0f6: 681b ldr r3, [r3, #0]
  23163. 800a0f8: f003 0301 and.w r3, r3, #1
  23164. 800a0fc: 2b00 cmp r3, #0
  23165. 800a0fe: d1f2 bne.n 800a0e6 <HAL_DMA_IRQHandler+0x8da>
  23166. 800a100: e000 b.n 800a104 <HAL_DMA_IRQHandler+0x8f8>
  23167. break;
  23168. 800a102: bf00 nop
  23169. if((((DMA_Stream_TypeDef *)hdma->Instance)->CR & DMA_SxCR_EN) != 0U)
  23170. 800a104: 687b ldr r3, [r7, #4]
  23171. 800a106: 681b ldr r3, [r3, #0]
  23172. 800a108: 681b ldr r3, [r3, #0]
  23173. 800a10a: f003 0301 and.w r3, r3, #1
  23174. 800a10e: 2b00 cmp r3, #0
  23175. 800a110: d004 beq.n 800a11c <HAL_DMA_IRQHandler+0x910>
  23176. {
  23177. /* Change the DMA state to error if DMA disable fails */
  23178. hdma->State = HAL_DMA_STATE_ERROR;
  23179. 800a112: 687b ldr r3, [r7, #4]
  23180. 800a114: 2203 movs r2, #3
  23181. 800a116: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23182. 800a11a: e003 b.n 800a124 <HAL_DMA_IRQHandler+0x918>
  23183. }
  23184. else
  23185. {
  23186. /* Change the DMA state to Ready if DMA disable success */
  23187. hdma->State = HAL_DMA_STATE_READY;
  23188. 800a11c: 687b ldr r3, [r7, #4]
  23189. 800a11e: 2201 movs r2, #1
  23190. 800a120: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23191. }
  23192. /* Process Unlocked */
  23193. __HAL_UNLOCK(hdma);
  23194. 800a124: 687b ldr r3, [r7, #4]
  23195. 800a126: 2200 movs r2, #0
  23196. 800a128: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23197. }
  23198. if(hdma->XferErrorCallback != NULL)
  23199. 800a12c: 687b ldr r3, [r7, #4]
  23200. 800a12e: 6cdb ldr r3, [r3, #76] @ 0x4c
  23201. 800a130: 2b00 cmp r3, #0
  23202. 800a132: f000 8272 beq.w 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23203. {
  23204. /* Transfer error callback */
  23205. hdma->XferErrorCallback(hdma);
  23206. 800a136: 687b ldr r3, [r7, #4]
  23207. 800a138: 6cdb ldr r3, [r3, #76] @ 0x4c
  23208. 800a13a: 6878 ldr r0, [r7, #4]
  23209. 800a13c: 4798 blx r3
  23210. 800a13e: e26c b.n 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23211. }
  23212. }
  23213. }
  23214. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  23215. 800a140: 687b ldr r3, [r7, #4]
  23216. 800a142: 681b ldr r3, [r3, #0]
  23217. 800a144: 4a43 ldr r2, [pc, #268] @ (800a254 <HAL_DMA_IRQHandler+0xa48>)
  23218. 800a146: 4293 cmp r3, r2
  23219. 800a148: d022 beq.n 800a190 <HAL_DMA_IRQHandler+0x984>
  23220. 800a14a: 687b ldr r3, [r7, #4]
  23221. 800a14c: 681b ldr r3, [r3, #0]
  23222. 800a14e: 4a42 ldr r2, [pc, #264] @ (800a258 <HAL_DMA_IRQHandler+0xa4c>)
  23223. 800a150: 4293 cmp r3, r2
  23224. 800a152: d01d beq.n 800a190 <HAL_DMA_IRQHandler+0x984>
  23225. 800a154: 687b ldr r3, [r7, #4]
  23226. 800a156: 681b ldr r3, [r3, #0]
  23227. 800a158: 4a40 ldr r2, [pc, #256] @ (800a25c <HAL_DMA_IRQHandler+0xa50>)
  23228. 800a15a: 4293 cmp r3, r2
  23229. 800a15c: d018 beq.n 800a190 <HAL_DMA_IRQHandler+0x984>
  23230. 800a15e: 687b ldr r3, [r7, #4]
  23231. 800a160: 681b ldr r3, [r3, #0]
  23232. 800a162: 4a3f ldr r2, [pc, #252] @ (800a260 <HAL_DMA_IRQHandler+0xa54>)
  23233. 800a164: 4293 cmp r3, r2
  23234. 800a166: d013 beq.n 800a190 <HAL_DMA_IRQHandler+0x984>
  23235. 800a168: 687b ldr r3, [r7, #4]
  23236. 800a16a: 681b ldr r3, [r3, #0]
  23237. 800a16c: 4a3d ldr r2, [pc, #244] @ (800a264 <HAL_DMA_IRQHandler+0xa58>)
  23238. 800a16e: 4293 cmp r3, r2
  23239. 800a170: d00e beq.n 800a190 <HAL_DMA_IRQHandler+0x984>
  23240. 800a172: 687b ldr r3, [r7, #4]
  23241. 800a174: 681b ldr r3, [r3, #0]
  23242. 800a176: 4a3c ldr r2, [pc, #240] @ (800a268 <HAL_DMA_IRQHandler+0xa5c>)
  23243. 800a178: 4293 cmp r3, r2
  23244. 800a17a: d009 beq.n 800a190 <HAL_DMA_IRQHandler+0x984>
  23245. 800a17c: 687b ldr r3, [r7, #4]
  23246. 800a17e: 681b ldr r3, [r3, #0]
  23247. 800a180: 4a3a ldr r2, [pc, #232] @ (800a26c <HAL_DMA_IRQHandler+0xa60>)
  23248. 800a182: 4293 cmp r3, r2
  23249. 800a184: d004 beq.n 800a190 <HAL_DMA_IRQHandler+0x984>
  23250. 800a186: 687b ldr r3, [r7, #4]
  23251. 800a188: 681b ldr r3, [r3, #0]
  23252. 800a18a: 4a39 ldr r2, [pc, #228] @ (800a270 <HAL_DMA_IRQHandler+0xa64>)
  23253. 800a18c: 4293 cmp r3, r2
  23254. 800a18e: d101 bne.n 800a194 <HAL_DMA_IRQHandler+0x988>
  23255. 800a190: 2301 movs r3, #1
  23256. 800a192: e000 b.n 800a196 <HAL_DMA_IRQHandler+0x98a>
  23257. 800a194: 2300 movs r3, #0
  23258. 800a196: 2b00 cmp r3, #0
  23259. 800a198: f000 823f beq.w 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23260. {
  23261. ccr_reg = (((BDMA_Channel_TypeDef *)hdma->Instance)->CCR);
  23262. 800a19c: 687b ldr r3, [r7, #4]
  23263. 800a19e: 681b ldr r3, [r3, #0]
  23264. 800a1a0: 681b ldr r3, [r3, #0]
  23265. 800a1a2: 613b str r3, [r7, #16]
  23266. /* Half Transfer Complete Interrupt management ******************************/
  23267. if (((tmpisr_bdma & (BDMA_FLAG_HT0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_HTIE) != 0U))
  23268. 800a1a4: 687b ldr r3, [r7, #4]
  23269. 800a1a6: 6ddb ldr r3, [r3, #92] @ 0x5c
  23270. 800a1a8: f003 031f and.w r3, r3, #31
  23271. 800a1ac: 2204 movs r2, #4
  23272. 800a1ae: 409a lsls r2, r3
  23273. 800a1b0: 697b ldr r3, [r7, #20]
  23274. 800a1b2: 4013 ands r3, r2
  23275. 800a1b4: 2b00 cmp r3, #0
  23276. 800a1b6: f000 80cd beq.w 800a354 <HAL_DMA_IRQHandler+0xb48>
  23277. 800a1ba: 693b ldr r3, [r7, #16]
  23278. 800a1bc: f003 0304 and.w r3, r3, #4
  23279. 800a1c0: 2b00 cmp r3, #0
  23280. 800a1c2: f000 80c7 beq.w 800a354 <HAL_DMA_IRQHandler+0xb48>
  23281. {
  23282. /* Clear the half transfer complete flag */
  23283. regs_bdma->IFCR = (BDMA_ISR_HTIF0 << (hdma->StreamIndex & 0x1FU));
  23284. 800a1c6: 687b ldr r3, [r7, #4]
  23285. 800a1c8: 6ddb ldr r3, [r3, #92] @ 0x5c
  23286. 800a1ca: f003 031f and.w r3, r3, #31
  23287. 800a1ce: 2204 movs r2, #4
  23288. 800a1d0: 409a lsls r2, r3
  23289. 800a1d2: 69fb ldr r3, [r7, #28]
  23290. 800a1d4: 605a str r2, [r3, #4]
  23291. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23292. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23293. 800a1d6: 693b ldr r3, [r7, #16]
  23294. 800a1d8: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23295. 800a1dc: 2b00 cmp r3, #0
  23296. 800a1de: d049 beq.n 800a274 <HAL_DMA_IRQHandler+0xa68>
  23297. {
  23298. /* Current memory buffer used is Memory 0 */
  23299. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23300. 800a1e0: 693b ldr r3, [r7, #16]
  23301. 800a1e2: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23302. 800a1e6: 2b00 cmp r3, #0
  23303. 800a1e8: d109 bne.n 800a1fe <HAL_DMA_IRQHandler+0x9f2>
  23304. {
  23305. if(hdma->XferM1HalfCpltCallback != NULL)
  23306. 800a1ea: 687b ldr r3, [r7, #4]
  23307. 800a1ec: 6c9b ldr r3, [r3, #72] @ 0x48
  23308. 800a1ee: 2b00 cmp r3, #0
  23309. 800a1f0: f000 8210 beq.w 800a614 <HAL_DMA_IRQHandler+0xe08>
  23310. {
  23311. /* Half transfer Callback for Memory 1 */
  23312. hdma->XferM1HalfCpltCallback(hdma);
  23313. 800a1f4: 687b ldr r3, [r7, #4]
  23314. 800a1f6: 6c9b ldr r3, [r3, #72] @ 0x48
  23315. 800a1f8: 6878 ldr r0, [r7, #4]
  23316. 800a1fa: 4798 blx r3
  23317. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23318. 800a1fc: e20a b.n 800a614 <HAL_DMA_IRQHandler+0xe08>
  23319. }
  23320. }
  23321. /* Current memory buffer used is Memory 1 */
  23322. else
  23323. {
  23324. if(hdma->XferHalfCpltCallback != NULL)
  23325. 800a1fe: 687b ldr r3, [r7, #4]
  23326. 800a200: 6c1b ldr r3, [r3, #64] @ 0x40
  23327. 800a202: 2b00 cmp r3, #0
  23328. 800a204: f000 8206 beq.w 800a614 <HAL_DMA_IRQHandler+0xe08>
  23329. {
  23330. /* Half transfer Callback for Memory 0 */
  23331. hdma->XferHalfCpltCallback(hdma);
  23332. 800a208: 687b ldr r3, [r7, #4]
  23333. 800a20a: 6c1b ldr r3, [r3, #64] @ 0x40
  23334. 800a20c: 6878 ldr r0, [r7, #4]
  23335. 800a20e: 4798 blx r3
  23336. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23337. 800a210: e200 b.n 800a614 <HAL_DMA_IRQHandler+0xe08>
  23338. 800a212: bf00 nop
  23339. 800a214: 40020010 .word 0x40020010
  23340. 800a218: 40020028 .word 0x40020028
  23341. 800a21c: 40020040 .word 0x40020040
  23342. 800a220: 40020058 .word 0x40020058
  23343. 800a224: 40020070 .word 0x40020070
  23344. 800a228: 40020088 .word 0x40020088
  23345. 800a22c: 400200a0 .word 0x400200a0
  23346. 800a230: 400200b8 .word 0x400200b8
  23347. 800a234: 40020410 .word 0x40020410
  23348. 800a238: 40020428 .word 0x40020428
  23349. 800a23c: 40020440 .word 0x40020440
  23350. 800a240: 40020458 .word 0x40020458
  23351. 800a244: 40020470 .word 0x40020470
  23352. 800a248: 40020488 .word 0x40020488
  23353. 800a24c: 400204a0 .word 0x400204a0
  23354. 800a250: 400204b8 .word 0x400204b8
  23355. 800a254: 58025408 .word 0x58025408
  23356. 800a258: 5802541c .word 0x5802541c
  23357. 800a25c: 58025430 .word 0x58025430
  23358. 800a260: 58025444 .word 0x58025444
  23359. 800a264: 58025458 .word 0x58025458
  23360. 800a268: 5802546c .word 0x5802546c
  23361. 800a26c: 58025480 .word 0x58025480
  23362. 800a270: 58025494 .word 0x58025494
  23363. }
  23364. }
  23365. }
  23366. else
  23367. {
  23368. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23369. 800a274: 693b ldr r3, [r7, #16]
  23370. 800a276: f003 0320 and.w r3, r3, #32
  23371. 800a27a: 2b00 cmp r3, #0
  23372. 800a27c: d160 bne.n 800a340 <HAL_DMA_IRQHandler+0xb34>
  23373. {
  23374. /* Disable the half transfer interrupt */
  23375. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  23376. 800a27e: 687b ldr r3, [r7, #4]
  23377. 800a280: 681b ldr r3, [r3, #0]
  23378. 800a282: 4a7f ldr r2, [pc, #508] @ (800a480 <HAL_DMA_IRQHandler+0xc74>)
  23379. 800a284: 4293 cmp r3, r2
  23380. 800a286: d04a beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23381. 800a288: 687b ldr r3, [r7, #4]
  23382. 800a28a: 681b ldr r3, [r3, #0]
  23383. 800a28c: 4a7d ldr r2, [pc, #500] @ (800a484 <HAL_DMA_IRQHandler+0xc78>)
  23384. 800a28e: 4293 cmp r3, r2
  23385. 800a290: d045 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23386. 800a292: 687b ldr r3, [r7, #4]
  23387. 800a294: 681b ldr r3, [r3, #0]
  23388. 800a296: 4a7c ldr r2, [pc, #496] @ (800a488 <HAL_DMA_IRQHandler+0xc7c>)
  23389. 800a298: 4293 cmp r3, r2
  23390. 800a29a: d040 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23391. 800a29c: 687b ldr r3, [r7, #4]
  23392. 800a29e: 681b ldr r3, [r3, #0]
  23393. 800a2a0: 4a7a ldr r2, [pc, #488] @ (800a48c <HAL_DMA_IRQHandler+0xc80>)
  23394. 800a2a2: 4293 cmp r3, r2
  23395. 800a2a4: d03b beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23396. 800a2a6: 687b ldr r3, [r7, #4]
  23397. 800a2a8: 681b ldr r3, [r3, #0]
  23398. 800a2aa: 4a79 ldr r2, [pc, #484] @ (800a490 <HAL_DMA_IRQHandler+0xc84>)
  23399. 800a2ac: 4293 cmp r3, r2
  23400. 800a2ae: d036 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23401. 800a2b0: 687b ldr r3, [r7, #4]
  23402. 800a2b2: 681b ldr r3, [r3, #0]
  23403. 800a2b4: 4a77 ldr r2, [pc, #476] @ (800a494 <HAL_DMA_IRQHandler+0xc88>)
  23404. 800a2b6: 4293 cmp r3, r2
  23405. 800a2b8: d031 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23406. 800a2ba: 687b ldr r3, [r7, #4]
  23407. 800a2bc: 681b ldr r3, [r3, #0]
  23408. 800a2be: 4a76 ldr r2, [pc, #472] @ (800a498 <HAL_DMA_IRQHandler+0xc8c>)
  23409. 800a2c0: 4293 cmp r3, r2
  23410. 800a2c2: d02c beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23411. 800a2c4: 687b ldr r3, [r7, #4]
  23412. 800a2c6: 681b ldr r3, [r3, #0]
  23413. 800a2c8: 4a74 ldr r2, [pc, #464] @ (800a49c <HAL_DMA_IRQHandler+0xc90>)
  23414. 800a2ca: 4293 cmp r3, r2
  23415. 800a2cc: d027 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23416. 800a2ce: 687b ldr r3, [r7, #4]
  23417. 800a2d0: 681b ldr r3, [r3, #0]
  23418. 800a2d2: 4a73 ldr r2, [pc, #460] @ (800a4a0 <HAL_DMA_IRQHandler+0xc94>)
  23419. 800a2d4: 4293 cmp r3, r2
  23420. 800a2d6: d022 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23421. 800a2d8: 687b ldr r3, [r7, #4]
  23422. 800a2da: 681b ldr r3, [r3, #0]
  23423. 800a2dc: 4a71 ldr r2, [pc, #452] @ (800a4a4 <HAL_DMA_IRQHandler+0xc98>)
  23424. 800a2de: 4293 cmp r3, r2
  23425. 800a2e0: d01d beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23426. 800a2e2: 687b ldr r3, [r7, #4]
  23427. 800a2e4: 681b ldr r3, [r3, #0]
  23428. 800a2e6: 4a70 ldr r2, [pc, #448] @ (800a4a8 <HAL_DMA_IRQHandler+0xc9c>)
  23429. 800a2e8: 4293 cmp r3, r2
  23430. 800a2ea: d018 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23431. 800a2ec: 687b ldr r3, [r7, #4]
  23432. 800a2ee: 681b ldr r3, [r3, #0]
  23433. 800a2f0: 4a6e ldr r2, [pc, #440] @ (800a4ac <HAL_DMA_IRQHandler+0xca0>)
  23434. 800a2f2: 4293 cmp r3, r2
  23435. 800a2f4: d013 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23436. 800a2f6: 687b ldr r3, [r7, #4]
  23437. 800a2f8: 681b ldr r3, [r3, #0]
  23438. 800a2fa: 4a6d ldr r2, [pc, #436] @ (800a4b0 <HAL_DMA_IRQHandler+0xca4>)
  23439. 800a2fc: 4293 cmp r3, r2
  23440. 800a2fe: d00e beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23441. 800a300: 687b ldr r3, [r7, #4]
  23442. 800a302: 681b ldr r3, [r3, #0]
  23443. 800a304: 4a6b ldr r2, [pc, #428] @ (800a4b4 <HAL_DMA_IRQHandler+0xca8>)
  23444. 800a306: 4293 cmp r3, r2
  23445. 800a308: d009 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23446. 800a30a: 687b ldr r3, [r7, #4]
  23447. 800a30c: 681b ldr r3, [r3, #0]
  23448. 800a30e: 4a6a ldr r2, [pc, #424] @ (800a4b8 <HAL_DMA_IRQHandler+0xcac>)
  23449. 800a310: 4293 cmp r3, r2
  23450. 800a312: d004 beq.n 800a31e <HAL_DMA_IRQHandler+0xb12>
  23451. 800a314: 687b ldr r3, [r7, #4]
  23452. 800a316: 681b ldr r3, [r3, #0]
  23453. 800a318: 4a68 ldr r2, [pc, #416] @ (800a4bc <HAL_DMA_IRQHandler+0xcb0>)
  23454. 800a31a: 4293 cmp r3, r2
  23455. 800a31c: d108 bne.n 800a330 <HAL_DMA_IRQHandler+0xb24>
  23456. 800a31e: 687b ldr r3, [r7, #4]
  23457. 800a320: 681b ldr r3, [r3, #0]
  23458. 800a322: 681a ldr r2, [r3, #0]
  23459. 800a324: 687b ldr r3, [r7, #4]
  23460. 800a326: 681b ldr r3, [r3, #0]
  23461. 800a328: f022 0208 bic.w r2, r2, #8
  23462. 800a32c: 601a str r2, [r3, #0]
  23463. 800a32e: e007 b.n 800a340 <HAL_DMA_IRQHandler+0xb34>
  23464. 800a330: 687b ldr r3, [r7, #4]
  23465. 800a332: 681b ldr r3, [r3, #0]
  23466. 800a334: 681a ldr r2, [r3, #0]
  23467. 800a336: 687b ldr r3, [r7, #4]
  23468. 800a338: 681b ldr r3, [r3, #0]
  23469. 800a33a: f022 0204 bic.w r2, r2, #4
  23470. 800a33e: 601a str r2, [r3, #0]
  23471. }
  23472. /* DMA peripheral state is not updated in Half Transfer */
  23473. /* but in Transfer Complete case */
  23474. if(hdma->XferHalfCpltCallback != NULL)
  23475. 800a340: 687b ldr r3, [r7, #4]
  23476. 800a342: 6c1b ldr r3, [r3, #64] @ 0x40
  23477. 800a344: 2b00 cmp r3, #0
  23478. 800a346: f000 8165 beq.w 800a614 <HAL_DMA_IRQHandler+0xe08>
  23479. {
  23480. /* Half transfer callback */
  23481. hdma->XferHalfCpltCallback(hdma);
  23482. 800a34a: 687b ldr r3, [r7, #4]
  23483. 800a34c: 6c1b ldr r3, [r3, #64] @ 0x40
  23484. 800a34e: 6878 ldr r0, [r7, #4]
  23485. 800a350: 4798 blx r3
  23486. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23487. 800a352: e15f b.n 800a614 <HAL_DMA_IRQHandler+0xe08>
  23488. }
  23489. }
  23490. }
  23491. /* Transfer Complete Interrupt management ***********************************/
  23492. else if (((tmpisr_bdma & (BDMA_FLAG_TC0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TCIE) != 0U))
  23493. 800a354: 687b ldr r3, [r7, #4]
  23494. 800a356: 6ddb ldr r3, [r3, #92] @ 0x5c
  23495. 800a358: f003 031f and.w r3, r3, #31
  23496. 800a35c: 2202 movs r2, #2
  23497. 800a35e: 409a lsls r2, r3
  23498. 800a360: 697b ldr r3, [r7, #20]
  23499. 800a362: 4013 ands r3, r2
  23500. 800a364: 2b00 cmp r3, #0
  23501. 800a366: f000 80c5 beq.w 800a4f4 <HAL_DMA_IRQHandler+0xce8>
  23502. 800a36a: 693b ldr r3, [r7, #16]
  23503. 800a36c: f003 0302 and.w r3, r3, #2
  23504. 800a370: 2b00 cmp r3, #0
  23505. 800a372: f000 80bf beq.w 800a4f4 <HAL_DMA_IRQHandler+0xce8>
  23506. {
  23507. /* Clear the transfer complete flag */
  23508. regs_bdma->IFCR = (BDMA_ISR_TCIF0) << (hdma->StreamIndex & 0x1FU);
  23509. 800a376: 687b ldr r3, [r7, #4]
  23510. 800a378: 6ddb ldr r3, [r3, #92] @ 0x5c
  23511. 800a37a: f003 031f and.w r3, r3, #31
  23512. 800a37e: 2202 movs r2, #2
  23513. 800a380: 409a lsls r2, r3
  23514. 800a382: 69fb ldr r3, [r7, #28]
  23515. 800a384: 605a str r2, [r3, #4]
  23516. /* Disable the transfer complete interrupt if the DMA mode is Double Buffering */
  23517. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23518. 800a386: 693b ldr r3, [r7, #16]
  23519. 800a388: f403 4300 and.w r3, r3, #32768 @ 0x8000
  23520. 800a38c: 2b00 cmp r3, #0
  23521. 800a38e: d018 beq.n 800a3c2 <HAL_DMA_IRQHandler+0xbb6>
  23522. {
  23523. /* Current memory buffer used is Memory 0 */
  23524. if((ccr_reg & BDMA_CCR_CT) == 0U)
  23525. 800a390: 693b ldr r3, [r7, #16]
  23526. 800a392: f403 3380 and.w r3, r3, #65536 @ 0x10000
  23527. 800a396: 2b00 cmp r3, #0
  23528. 800a398: d109 bne.n 800a3ae <HAL_DMA_IRQHandler+0xba2>
  23529. {
  23530. if(hdma->XferM1CpltCallback != NULL)
  23531. 800a39a: 687b ldr r3, [r7, #4]
  23532. 800a39c: 6c5b ldr r3, [r3, #68] @ 0x44
  23533. 800a39e: 2b00 cmp r3, #0
  23534. 800a3a0: f000 813a beq.w 800a618 <HAL_DMA_IRQHandler+0xe0c>
  23535. {
  23536. /* Transfer complete Callback for Memory 1 */
  23537. hdma->XferM1CpltCallback(hdma);
  23538. 800a3a4: 687b ldr r3, [r7, #4]
  23539. 800a3a6: 6c5b ldr r3, [r3, #68] @ 0x44
  23540. 800a3a8: 6878 ldr r0, [r7, #4]
  23541. 800a3aa: 4798 blx r3
  23542. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23543. 800a3ac: e134 b.n 800a618 <HAL_DMA_IRQHandler+0xe0c>
  23544. }
  23545. }
  23546. /* Current memory buffer used is Memory 1 */
  23547. else
  23548. {
  23549. if(hdma->XferCpltCallback != NULL)
  23550. 800a3ae: 687b ldr r3, [r7, #4]
  23551. 800a3b0: 6bdb ldr r3, [r3, #60] @ 0x3c
  23552. 800a3b2: 2b00 cmp r3, #0
  23553. 800a3b4: f000 8130 beq.w 800a618 <HAL_DMA_IRQHandler+0xe0c>
  23554. {
  23555. /* Transfer complete Callback for Memory 0 */
  23556. hdma->XferCpltCallback(hdma);
  23557. 800a3b8: 687b ldr r3, [r7, #4]
  23558. 800a3ba: 6bdb ldr r3, [r3, #60] @ 0x3c
  23559. 800a3bc: 6878 ldr r0, [r7, #4]
  23560. 800a3be: 4798 blx r3
  23561. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23562. 800a3c0: e12a b.n 800a618 <HAL_DMA_IRQHandler+0xe0c>
  23563. }
  23564. }
  23565. }
  23566. else
  23567. {
  23568. if((ccr_reg & BDMA_CCR_CIRC) == 0U)
  23569. 800a3c2: 693b ldr r3, [r7, #16]
  23570. 800a3c4: f003 0320 and.w r3, r3, #32
  23571. 800a3c8: 2b00 cmp r3, #0
  23572. 800a3ca: f040 8089 bne.w 800a4e0 <HAL_DMA_IRQHandler+0xcd4>
  23573. {
  23574. /* Disable the transfer complete and error interrupt, if the DMA mode is not CIRCULAR */
  23575. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  23576. 800a3ce: 687b ldr r3, [r7, #4]
  23577. 800a3d0: 681b ldr r3, [r3, #0]
  23578. 800a3d2: 4a2b ldr r2, [pc, #172] @ (800a480 <HAL_DMA_IRQHandler+0xc74>)
  23579. 800a3d4: 4293 cmp r3, r2
  23580. 800a3d6: d04a beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23581. 800a3d8: 687b ldr r3, [r7, #4]
  23582. 800a3da: 681b ldr r3, [r3, #0]
  23583. 800a3dc: 4a29 ldr r2, [pc, #164] @ (800a484 <HAL_DMA_IRQHandler+0xc78>)
  23584. 800a3de: 4293 cmp r3, r2
  23585. 800a3e0: d045 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23586. 800a3e2: 687b ldr r3, [r7, #4]
  23587. 800a3e4: 681b ldr r3, [r3, #0]
  23588. 800a3e6: 4a28 ldr r2, [pc, #160] @ (800a488 <HAL_DMA_IRQHandler+0xc7c>)
  23589. 800a3e8: 4293 cmp r3, r2
  23590. 800a3ea: d040 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23591. 800a3ec: 687b ldr r3, [r7, #4]
  23592. 800a3ee: 681b ldr r3, [r3, #0]
  23593. 800a3f0: 4a26 ldr r2, [pc, #152] @ (800a48c <HAL_DMA_IRQHandler+0xc80>)
  23594. 800a3f2: 4293 cmp r3, r2
  23595. 800a3f4: d03b beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23596. 800a3f6: 687b ldr r3, [r7, #4]
  23597. 800a3f8: 681b ldr r3, [r3, #0]
  23598. 800a3fa: 4a25 ldr r2, [pc, #148] @ (800a490 <HAL_DMA_IRQHandler+0xc84>)
  23599. 800a3fc: 4293 cmp r3, r2
  23600. 800a3fe: d036 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23601. 800a400: 687b ldr r3, [r7, #4]
  23602. 800a402: 681b ldr r3, [r3, #0]
  23603. 800a404: 4a23 ldr r2, [pc, #140] @ (800a494 <HAL_DMA_IRQHandler+0xc88>)
  23604. 800a406: 4293 cmp r3, r2
  23605. 800a408: d031 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23606. 800a40a: 687b ldr r3, [r7, #4]
  23607. 800a40c: 681b ldr r3, [r3, #0]
  23608. 800a40e: 4a22 ldr r2, [pc, #136] @ (800a498 <HAL_DMA_IRQHandler+0xc8c>)
  23609. 800a410: 4293 cmp r3, r2
  23610. 800a412: d02c beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23611. 800a414: 687b ldr r3, [r7, #4]
  23612. 800a416: 681b ldr r3, [r3, #0]
  23613. 800a418: 4a20 ldr r2, [pc, #128] @ (800a49c <HAL_DMA_IRQHandler+0xc90>)
  23614. 800a41a: 4293 cmp r3, r2
  23615. 800a41c: d027 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23616. 800a41e: 687b ldr r3, [r7, #4]
  23617. 800a420: 681b ldr r3, [r3, #0]
  23618. 800a422: 4a1f ldr r2, [pc, #124] @ (800a4a0 <HAL_DMA_IRQHandler+0xc94>)
  23619. 800a424: 4293 cmp r3, r2
  23620. 800a426: d022 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23621. 800a428: 687b ldr r3, [r7, #4]
  23622. 800a42a: 681b ldr r3, [r3, #0]
  23623. 800a42c: 4a1d ldr r2, [pc, #116] @ (800a4a4 <HAL_DMA_IRQHandler+0xc98>)
  23624. 800a42e: 4293 cmp r3, r2
  23625. 800a430: d01d beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23626. 800a432: 687b ldr r3, [r7, #4]
  23627. 800a434: 681b ldr r3, [r3, #0]
  23628. 800a436: 4a1c ldr r2, [pc, #112] @ (800a4a8 <HAL_DMA_IRQHandler+0xc9c>)
  23629. 800a438: 4293 cmp r3, r2
  23630. 800a43a: d018 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23631. 800a43c: 687b ldr r3, [r7, #4]
  23632. 800a43e: 681b ldr r3, [r3, #0]
  23633. 800a440: 4a1a ldr r2, [pc, #104] @ (800a4ac <HAL_DMA_IRQHandler+0xca0>)
  23634. 800a442: 4293 cmp r3, r2
  23635. 800a444: d013 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23636. 800a446: 687b ldr r3, [r7, #4]
  23637. 800a448: 681b ldr r3, [r3, #0]
  23638. 800a44a: 4a19 ldr r2, [pc, #100] @ (800a4b0 <HAL_DMA_IRQHandler+0xca4>)
  23639. 800a44c: 4293 cmp r3, r2
  23640. 800a44e: d00e beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23641. 800a450: 687b ldr r3, [r7, #4]
  23642. 800a452: 681b ldr r3, [r3, #0]
  23643. 800a454: 4a17 ldr r2, [pc, #92] @ (800a4b4 <HAL_DMA_IRQHandler+0xca8>)
  23644. 800a456: 4293 cmp r3, r2
  23645. 800a458: d009 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23646. 800a45a: 687b ldr r3, [r7, #4]
  23647. 800a45c: 681b ldr r3, [r3, #0]
  23648. 800a45e: 4a16 ldr r2, [pc, #88] @ (800a4b8 <HAL_DMA_IRQHandler+0xcac>)
  23649. 800a460: 4293 cmp r3, r2
  23650. 800a462: d004 beq.n 800a46e <HAL_DMA_IRQHandler+0xc62>
  23651. 800a464: 687b ldr r3, [r7, #4]
  23652. 800a466: 681b ldr r3, [r3, #0]
  23653. 800a468: 4a14 ldr r2, [pc, #80] @ (800a4bc <HAL_DMA_IRQHandler+0xcb0>)
  23654. 800a46a: 4293 cmp r3, r2
  23655. 800a46c: d128 bne.n 800a4c0 <HAL_DMA_IRQHandler+0xcb4>
  23656. 800a46e: 687b ldr r3, [r7, #4]
  23657. 800a470: 681b ldr r3, [r3, #0]
  23658. 800a472: 681a ldr r2, [r3, #0]
  23659. 800a474: 687b ldr r3, [r7, #4]
  23660. 800a476: 681b ldr r3, [r3, #0]
  23661. 800a478: f022 0214 bic.w r2, r2, #20
  23662. 800a47c: 601a str r2, [r3, #0]
  23663. 800a47e: e027 b.n 800a4d0 <HAL_DMA_IRQHandler+0xcc4>
  23664. 800a480: 40020010 .word 0x40020010
  23665. 800a484: 40020028 .word 0x40020028
  23666. 800a488: 40020040 .word 0x40020040
  23667. 800a48c: 40020058 .word 0x40020058
  23668. 800a490: 40020070 .word 0x40020070
  23669. 800a494: 40020088 .word 0x40020088
  23670. 800a498: 400200a0 .word 0x400200a0
  23671. 800a49c: 400200b8 .word 0x400200b8
  23672. 800a4a0: 40020410 .word 0x40020410
  23673. 800a4a4: 40020428 .word 0x40020428
  23674. 800a4a8: 40020440 .word 0x40020440
  23675. 800a4ac: 40020458 .word 0x40020458
  23676. 800a4b0: 40020470 .word 0x40020470
  23677. 800a4b4: 40020488 .word 0x40020488
  23678. 800a4b8: 400204a0 .word 0x400204a0
  23679. 800a4bc: 400204b8 .word 0x400204b8
  23680. 800a4c0: 687b ldr r3, [r7, #4]
  23681. 800a4c2: 681b ldr r3, [r3, #0]
  23682. 800a4c4: 681a ldr r2, [r3, #0]
  23683. 800a4c6: 687b ldr r3, [r7, #4]
  23684. 800a4c8: 681b ldr r3, [r3, #0]
  23685. 800a4ca: f022 020a bic.w r2, r2, #10
  23686. 800a4ce: 601a str r2, [r3, #0]
  23687. /* Change the DMA state */
  23688. hdma->State = HAL_DMA_STATE_READY;
  23689. 800a4d0: 687b ldr r3, [r7, #4]
  23690. 800a4d2: 2201 movs r2, #1
  23691. 800a4d4: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23692. /* Process Unlocked */
  23693. __HAL_UNLOCK(hdma);
  23694. 800a4d8: 687b ldr r3, [r7, #4]
  23695. 800a4da: 2200 movs r2, #0
  23696. 800a4dc: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23697. }
  23698. if(hdma->XferCpltCallback != NULL)
  23699. 800a4e0: 687b ldr r3, [r7, #4]
  23700. 800a4e2: 6bdb ldr r3, [r3, #60] @ 0x3c
  23701. 800a4e4: 2b00 cmp r3, #0
  23702. 800a4e6: f000 8097 beq.w 800a618 <HAL_DMA_IRQHandler+0xe0c>
  23703. {
  23704. /* Transfer complete callback */
  23705. hdma->XferCpltCallback(hdma);
  23706. 800a4ea: 687b ldr r3, [r7, #4]
  23707. 800a4ec: 6bdb ldr r3, [r3, #60] @ 0x3c
  23708. 800a4ee: 6878 ldr r0, [r7, #4]
  23709. 800a4f0: 4798 blx r3
  23710. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23711. 800a4f2: e091 b.n 800a618 <HAL_DMA_IRQHandler+0xe0c>
  23712. }
  23713. }
  23714. }
  23715. /* Transfer Error Interrupt management **************************************/
  23716. else if (((tmpisr_bdma & (BDMA_FLAG_TE0 << (hdma->StreamIndex & 0x1FU))) != 0U) && ((ccr_reg & BDMA_CCR_TEIE) != 0U))
  23717. 800a4f4: 687b ldr r3, [r7, #4]
  23718. 800a4f6: 6ddb ldr r3, [r3, #92] @ 0x5c
  23719. 800a4f8: f003 031f and.w r3, r3, #31
  23720. 800a4fc: 2208 movs r2, #8
  23721. 800a4fe: 409a lsls r2, r3
  23722. 800a500: 697b ldr r3, [r7, #20]
  23723. 800a502: 4013 ands r3, r2
  23724. 800a504: 2b00 cmp r3, #0
  23725. 800a506: f000 8088 beq.w 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23726. 800a50a: 693b ldr r3, [r7, #16]
  23727. 800a50c: f003 0308 and.w r3, r3, #8
  23728. 800a510: 2b00 cmp r3, #0
  23729. 800a512: f000 8082 beq.w 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23730. {
  23731. /* When a DMA transfer error occurs */
  23732. /* A hardware clear of its EN bits is performed */
  23733. /* Disable ALL DMA IT */
  23734. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  23735. 800a516: 687b ldr r3, [r7, #4]
  23736. 800a518: 681b ldr r3, [r3, #0]
  23737. 800a51a: 4a41 ldr r2, [pc, #260] @ (800a620 <HAL_DMA_IRQHandler+0xe14>)
  23738. 800a51c: 4293 cmp r3, r2
  23739. 800a51e: d04a beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23740. 800a520: 687b ldr r3, [r7, #4]
  23741. 800a522: 681b ldr r3, [r3, #0]
  23742. 800a524: 4a3f ldr r2, [pc, #252] @ (800a624 <HAL_DMA_IRQHandler+0xe18>)
  23743. 800a526: 4293 cmp r3, r2
  23744. 800a528: d045 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23745. 800a52a: 687b ldr r3, [r7, #4]
  23746. 800a52c: 681b ldr r3, [r3, #0]
  23747. 800a52e: 4a3e ldr r2, [pc, #248] @ (800a628 <HAL_DMA_IRQHandler+0xe1c>)
  23748. 800a530: 4293 cmp r3, r2
  23749. 800a532: d040 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23750. 800a534: 687b ldr r3, [r7, #4]
  23751. 800a536: 681b ldr r3, [r3, #0]
  23752. 800a538: 4a3c ldr r2, [pc, #240] @ (800a62c <HAL_DMA_IRQHandler+0xe20>)
  23753. 800a53a: 4293 cmp r3, r2
  23754. 800a53c: d03b beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23755. 800a53e: 687b ldr r3, [r7, #4]
  23756. 800a540: 681b ldr r3, [r3, #0]
  23757. 800a542: 4a3b ldr r2, [pc, #236] @ (800a630 <HAL_DMA_IRQHandler+0xe24>)
  23758. 800a544: 4293 cmp r3, r2
  23759. 800a546: d036 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23760. 800a548: 687b ldr r3, [r7, #4]
  23761. 800a54a: 681b ldr r3, [r3, #0]
  23762. 800a54c: 4a39 ldr r2, [pc, #228] @ (800a634 <HAL_DMA_IRQHandler+0xe28>)
  23763. 800a54e: 4293 cmp r3, r2
  23764. 800a550: d031 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23765. 800a552: 687b ldr r3, [r7, #4]
  23766. 800a554: 681b ldr r3, [r3, #0]
  23767. 800a556: 4a38 ldr r2, [pc, #224] @ (800a638 <HAL_DMA_IRQHandler+0xe2c>)
  23768. 800a558: 4293 cmp r3, r2
  23769. 800a55a: d02c beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23770. 800a55c: 687b ldr r3, [r7, #4]
  23771. 800a55e: 681b ldr r3, [r3, #0]
  23772. 800a560: 4a36 ldr r2, [pc, #216] @ (800a63c <HAL_DMA_IRQHandler+0xe30>)
  23773. 800a562: 4293 cmp r3, r2
  23774. 800a564: d027 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23775. 800a566: 687b ldr r3, [r7, #4]
  23776. 800a568: 681b ldr r3, [r3, #0]
  23777. 800a56a: 4a35 ldr r2, [pc, #212] @ (800a640 <HAL_DMA_IRQHandler+0xe34>)
  23778. 800a56c: 4293 cmp r3, r2
  23779. 800a56e: d022 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23780. 800a570: 687b ldr r3, [r7, #4]
  23781. 800a572: 681b ldr r3, [r3, #0]
  23782. 800a574: 4a33 ldr r2, [pc, #204] @ (800a644 <HAL_DMA_IRQHandler+0xe38>)
  23783. 800a576: 4293 cmp r3, r2
  23784. 800a578: d01d beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23785. 800a57a: 687b ldr r3, [r7, #4]
  23786. 800a57c: 681b ldr r3, [r3, #0]
  23787. 800a57e: 4a32 ldr r2, [pc, #200] @ (800a648 <HAL_DMA_IRQHandler+0xe3c>)
  23788. 800a580: 4293 cmp r3, r2
  23789. 800a582: d018 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23790. 800a584: 687b ldr r3, [r7, #4]
  23791. 800a586: 681b ldr r3, [r3, #0]
  23792. 800a588: 4a30 ldr r2, [pc, #192] @ (800a64c <HAL_DMA_IRQHandler+0xe40>)
  23793. 800a58a: 4293 cmp r3, r2
  23794. 800a58c: d013 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23795. 800a58e: 687b ldr r3, [r7, #4]
  23796. 800a590: 681b ldr r3, [r3, #0]
  23797. 800a592: 4a2f ldr r2, [pc, #188] @ (800a650 <HAL_DMA_IRQHandler+0xe44>)
  23798. 800a594: 4293 cmp r3, r2
  23799. 800a596: d00e beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23800. 800a598: 687b ldr r3, [r7, #4]
  23801. 800a59a: 681b ldr r3, [r3, #0]
  23802. 800a59c: 4a2d ldr r2, [pc, #180] @ (800a654 <HAL_DMA_IRQHandler+0xe48>)
  23803. 800a59e: 4293 cmp r3, r2
  23804. 800a5a0: d009 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23805. 800a5a2: 687b ldr r3, [r7, #4]
  23806. 800a5a4: 681b ldr r3, [r3, #0]
  23807. 800a5a6: 4a2c ldr r2, [pc, #176] @ (800a658 <HAL_DMA_IRQHandler+0xe4c>)
  23808. 800a5a8: 4293 cmp r3, r2
  23809. 800a5aa: d004 beq.n 800a5b6 <HAL_DMA_IRQHandler+0xdaa>
  23810. 800a5ac: 687b ldr r3, [r7, #4]
  23811. 800a5ae: 681b ldr r3, [r3, #0]
  23812. 800a5b0: 4a2a ldr r2, [pc, #168] @ (800a65c <HAL_DMA_IRQHandler+0xe50>)
  23813. 800a5b2: 4293 cmp r3, r2
  23814. 800a5b4: d108 bne.n 800a5c8 <HAL_DMA_IRQHandler+0xdbc>
  23815. 800a5b6: 687b ldr r3, [r7, #4]
  23816. 800a5b8: 681b ldr r3, [r3, #0]
  23817. 800a5ba: 681a ldr r2, [r3, #0]
  23818. 800a5bc: 687b ldr r3, [r7, #4]
  23819. 800a5be: 681b ldr r3, [r3, #0]
  23820. 800a5c0: f022 021c bic.w r2, r2, #28
  23821. 800a5c4: 601a str r2, [r3, #0]
  23822. 800a5c6: e007 b.n 800a5d8 <HAL_DMA_IRQHandler+0xdcc>
  23823. 800a5c8: 687b ldr r3, [r7, #4]
  23824. 800a5ca: 681b ldr r3, [r3, #0]
  23825. 800a5cc: 681a ldr r2, [r3, #0]
  23826. 800a5ce: 687b ldr r3, [r7, #4]
  23827. 800a5d0: 681b ldr r3, [r3, #0]
  23828. 800a5d2: f022 020e bic.w r2, r2, #14
  23829. 800a5d6: 601a str r2, [r3, #0]
  23830. /* Clear all flags */
  23831. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  23832. 800a5d8: 687b ldr r3, [r7, #4]
  23833. 800a5da: 6ddb ldr r3, [r3, #92] @ 0x5c
  23834. 800a5dc: f003 031f and.w r3, r3, #31
  23835. 800a5e0: 2201 movs r2, #1
  23836. 800a5e2: 409a lsls r2, r3
  23837. 800a5e4: 69fb ldr r3, [r7, #28]
  23838. 800a5e6: 605a str r2, [r3, #4]
  23839. /* Update error code */
  23840. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  23841. 800a5e8: 687b ldr r3, [r7, #4]
  23842. 800a5ea: 2201 movs r2, #1
  23843. 800a5ec: 655a str r2, [r3, #84] @ 0x54
  23844. /* Change the DMA state */
  23845. hdma->State = HAL_DMA_STATE_READY;
  23846. 800a5ee: 687b ldr r3, [r7, #4]
  23847. 800a5f0: 2201 movs r2, #1
  23848. 800a5f2: f883 2035 strb.w r2, [r3, #53] @ 0x35
  23849. /* Process Unlocked */
  23850. __HAL_UNLOCK(hdma);
  23851. 800a5f6: 687b ldr r3, [r7, #4]
  23852. 800a5f8: 2200 movs r2, #0
  23853. 800a5fa: f883 2034 strb.w r2, [r3, #52] @ 0x34
  23854. if (hdma->XferErrorCallback != NULL)
  23855. 800a5fe: 687b ldr r3, [r7, #4]
  23856. 800a600: 6cdb ldr r3, [r3, #76] @ 0x4c
  23857. 800a602: 2b00 cmp r3, #0
  23858. 800a604: d009 beq.n 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23859. {
  23860. /* Transfer error callback */
  23861. hdma->XferErrorCallback(hdma);
  23862. 800a606: 687b ldr r3, [r7, #4]
  23863. 800a608: 6cdb ldr r3, [r3, #76] @ 0x4c
  23864. 800a60a: 6878 ldr r0, [r7, #4]
  23865. 800a60c: 4798 blx r3
  23866. 800a60e: e004 b.n 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23867. return;
  23868. 800a610: bf00 nop
  23869. 800a612: e002 b.n 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23870. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23871. 800a614: bf00 nop
  23872. 800a616: e000 b.n 800a61a <HAL_DMA_IRQHandler+0xe0e>
  23873. if((ccr_reg & BDMA_CCR_DBM) != 0U)
  23874. 800a618: bf00 nop
  23875. }
  23876. else
  23877. {
  23878. /* Nothing To Do */
  23879. }
  23880. }
  23881. 800a61a: 3728 adds r7, #40 @ 0x28
  23882. 800a61c: 46bd mov sp, r7
  23883. 800a61e: bd80 pop {r7, pc}
  23884. 800a620: 40020010 .word 0x40020010
  23885. 800a624: 40020028 .word 0x40020028
  23886. 800a628: 40020040 .word 0x40020040
  23887. 800a62c: 40020058 .word 0x40020058
  23888. 800a630: 40020070 .word 0x40020070
  23889. 800a634: 40020088 .word 0x40020088
  23890. 800a638: 400200a0 .word 0x400200a0
  23891. 800a63c: 400200b8 .word 0x400200b8
  23892. 800a640: 40020410 .word 0x40020410
  23893. 800a644: 40020428 .word 0x40020428
  23894. 800a648: 40020440 .word 0x40020440
  23895. 800a64c: 40020458 .word 0x40020458
  23896. 800a650: 40020470 .word 0x40020470
  23897. 800a654: 40020488 .word 0x40020488
  23898. 800a658: 400204a0 .word 0x400204a0
  23899. 800a65c: 400204b8 .word 0x400204b8
  23900. 0800a660 <DMA_SetConfig>:
  23901. * @param DstAddress: The destination memory Buffer address
  23902. * @param DataLength: The length of data to be transferred from source to destination
  23903. * @retval None
  23904. */
  23905. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  23906. {
  23907. 800a660: b480 push {r7}
  23908. 800a662: b087 sub sp, #28
  23909. 800a664: af00 add r7, sp, #0
  23910. 800a666: 60f8 str r0, [r7, #12]
  23911. 800a668: 60b9 str r1, [r7, #8]
  23912. 800a66a: 607a str r2, [r7, #4]
  23913. 800a66c: 603b str r3, [r7, #0]
  23914. /* calculate DMA base and stream number */
  23915. DMA_Base_Registers *regs_dma = (DMA_Base_Registers *)hdma->StreamBaseAddress;
  23916. 800a66e: 68fb ldr r3, [r7, #12]
  23917. 800a670: 6d9b ldr r3, [r3, #88] @ 0x58
  23918. 800a672: 617b str r3, [r7, #20]
  23919. BDMA_Base_Registers *regs_bdma = (BDMA_Base_Registers *)hdma->StreamBaseAddress;
  23920. 800a674: 68fb ldr r3, [r7, #12]
  23921. 800a676: 6d9b ldr r3, [r3, #88] @ 0x58
  23922. 800a678: 613b str r3, [r7, #16]
  23923. if(IS_DMA_DMAMUX_ALL_INSTANCE(hdma->Instance) != 0U) /* No DMAMUX available for BDMA1 */
  23924. 800a67a: 68fb ldr r3, [r7, #12]
  23925. 800a67c: 681b ldr r3, [r3, #0]
  23926. 800a67e: 4a7f ldr r2, [pc, #508] @ (800a87c <DMA_SetConfig+0x21c>)
  23927. 800a680: 4293 cmp r3, r2
  23928. 800a682: d072 beq.n 800a76a <DMA_SetConfig+0x10a>
  23929. 800a684: 68fb ldr r3, [r7, #12]
  23930. 800a686: 681b ldr r3, [r3, #0]
  23931. 800a688: 4a7d ldr r2, [pc, #500] @ (800a880 <DMA_SetConfig+0x220>)
  23932. 800a68a: 4293 cmp r3, r2
  23933. 800a68c: d06d beq.n 800a76a <DMA_SetConfig+0x10a>
  23934. 800a68e: 68fb ldr r3, [r7, #12]
  23935. 800a690: 681b ldr r3, [r3, #0]
  23936. 800a692: 4a7c ldr r2, [pc, #496] @ (800a884 <DMA_SetConfig+0x224>)
  23937. 800a694: 4293 cmp r3, r2
  23938. 800a696: d068 beq.n 800a76a <DMA_SetConfig+0x10a>
  23939. 800a698: 68fb ldr r3, [r7, #12]
  23940. 800a69a: 681b ldr r3, [r3, #0]
  23941. 800a69c: 4a7a ldr r2, [pc, #488] @ (800a888 <DMA_SetConfig+0x228>)
  23942. 800a69e: 4293 cmp r3, r2
  23943. 800a6a0: d063 beq.n 800a76a <DMA_SetConfig+0x10a>
  23944. 800a6a2: 68fb ldr r3, [r7, #12]
  23945. 800a6a4: 681b ldr r3, [r3, #0]
  23946. 800a6a6: 4a79 ldr r2, [pc, #484] @ (800a88c <DMA_SetConfig+0x22c>)
  23947. 800a6a8: 4293 cmp r3, r2
  23948. 800a6aa: d05e beq.n 800a76a <DMA_SetConfig+0x10a>
  23949. 800a6ac: 68fb ldr r3, [r7, #12]
  23950. 800a6ae: 681b ldr r3, [r3, #0]
  23951. 800a6b0: 4a77 ldr r2, [pc, #476] @ (800a890 <DMA_SetConfig+0x230>)
  23952. 800a6b2: 4293 cmp r3, r2
  23953. 800a6b4: d059 beq.n 800a76a <DMA_SetConfig+0x10a>
  23954. 800a6b6: 68fb ldr r3, [r7, #12]
  23955. 800a6b8: 681b ldr r3, [r3, #0]
  23956. 800a6ba: 4a76 ldr r2, [pc, #472] @ (800a894 <DMA_SetConfig+0x234>)
  23957. 800a6bc: 4293 cmp r3, r2
  23958. 800a6be: d054 beq.n 800a76a <DMA_SetConfig+0x10a>
  23959. 800a6c0: 68fb ldr r3, [r7, #12]
  23960. 800a6c2: 681b ldr r3, [r3, #0]
  23961. 800a6c4: 4a74 ldr r2, [pc, #464] @ (800a898 <DMA_SetConfig+0x238>)
  23962. 800a6c6: 4293 cmp r3, r2
  23963. 800a6c8: d04f beq.n 800a76a <DMA_SetConfig+0x10a>
  23964. 800a6ca: 68fb ldr r3, [r7, #12]
  23965. 800a6cc: 681b ldr r3, [r3, #0]
  23966. 800a6ce: 4a73 ldr r2, [pc, #460] @ (800a89c <DMA_SetConfig+0x23c>)
  23967. 800a6d0: 4293 cmp r3, r2
  23968. 800a6d2: d04a beq.n 800a76a <DMA_SetConfig+0x10a>
  23969. 800a6d4: 68fb ldr r3, [r7, #12]
  23970. 800a6d6: 681b ldr r3, [r3, #0]
  23971. 800a6d8: 4a71 ldr r2, [pc, #452] @ (800a8a0 <DMA_SetConfig+0x240>)
  23972. 800a6da: 4293 cmp r3, r2
  23973. 800a6dc: d045 beq.n 800a76a <DMA_SetConfig+0x10a>
  23974. 800a6de: 68fb ldr r3, [r7, #12]
  23975. 800a6e0: 681b ldr r3, [r3, #0]
  23976. 800a6e2: 4a70 ldr r2, [pc, #448] @ (800a8a4 <DMA_SetConfig+0x244>)
  23977. 800a6e4: 4293 cmp r3, r2
  23978. 800a6e6: d040 beq.n 800a76a <DMA_SetConfig+0x10a>
  23979. 800a6e8: 68fb ldr r3, [r7, #12]
  23980. 800a6ea: 681b ldr r3, [r3, #0]
  23981. 800a6ec: 4a6e ldr r2, [pc, #440] @ (800a8a8 <DMA_SetConfig+0x248>)
  23982. 800a6ee: 4293 cmp r3, r2
  23983. 800a6f0: d03b beq.n 800a76a <DMA_SetConfig+0x10a>
  23984. 800a6f2: 68fb ldr r3, [r7, #12]
  23985. 800a6f4: 681b ldr r3, [r3, #0]
  23986. 800a6f6: 4a6d ldr r2, [pc, #436] @ (800a8ac <DMA_SetConfig+0x24c>)
  23987. 800a6f8: 4293 cmp r3, r2
  23988. 800a6fa: d036 beq.n 800a76a <DMA_SetConfig+0x10a>
  23989. 800a6fc: 68fb ldr r3, [r7, #12]
  23990. 800a6fe: 681b ldr r3, [r3, #0]
  23991. 800a700: 4a6b ldr r2, [pc, #428] @ (800a8b0 <DMA_SetConfig+0x250>)
  23992. 800a702: 4293 cmp r3, r2
  23993. 800a704: d031 beq.n 800a76a <DMA_SetConfig+0x10a>
  23994. 800a706: 68fb ldr r3, [r7, #12]
  23995. 800a708: 681b ldr r3, [r3, #0]
  23996. 800a70a: 4a6a ldr r2, [pc, #424] @ (800a8b4 <DMA_SetConfig+0x254>)
  23997. 800a70c: 4293 cmp r3, r2
  23998. 800a70e: d02c beq.n 800a76a <DMA_SetConfig+0x10a>
  23999. 800a710: 68fb ldr r3, [r7, #12]
  24000. 800a712: 681b ldr r3, [r3, #0]
  24001. 800a714: 4a68 ldr r2, [pc, #416] @ (800a8b8 <DMA_SetConfig+0x258>)
  24002. 800a716: 4293 cmp r3, r2
  24003. 800a718: d027 beq.n 800a76a <DMA_SetConfig+0x10a>
  24004. 800a71a: 68fb ldr r3, [r7, #12]
  24005. 800a71c: 681b ldr r3, [r3, #0]
  24006. 800a71e: 4a67 ldr r2, [pc, #412] @ (800a8bc <DMA_SetConfig+0x25c>)
  24007. 800a720: 4293 cmp r3, r2
  24008. 800a722: d022 beq.n 800a76a <DMA_SetConfig+0x10a>
  24009. 800a724: 68fb ldr r3, [r7, #12]
  24010. 800a726: 681b ldr r3, [r3, #0]
  24011. 800a728: 4a65 ldr r2, [pc, #404] @ (800a8c0 <DMA_SetConfig+0x260>)
  24012. 800a72a: 4293 cmp r3, r2
  24013. 800a72c: d01d beq.n 800a76a <DMA_SetConfig+0x10a>
  24014. 800a72e: 68fb ldr r3, [r7, #12]
  24015. 800a730: 681b ldr r3, [r3, #0]
  24016. 800a732: 4a64 ldr r2, [pc, #400] @ (800a8c4 <DMA_SetConfig+0x264>)
  24017. 800a734: 4293 cmp r3, r2
  24018. 800a736: d018 beq.n 800a76a <DMA_SetConfig+0x10a>
  24019. 800a738: 68fb ldr r3, [r7, #12]
  24020. 800a73a: 681b ldr r3, [r3, #0]
  24021. 800a73c: 4a62 ldr r2, [pc, #392] @ (800a8c8 <DMA_SetConfig+0x268>)
  24022. 800a73e: 4293 cmp r3, r2
  24023. 800a740: d013 beq.n 800a76a <DMA_SetConfig+0x10a>
  24024. 800a742: 68fb ldr r3, [r7, #12]
  24025. 800a744: 681b ldr r3, [r3, #0]
  24026. 800a746: 4a61 ldr r2, [pc, #388] @ (800a8cc <DMA_SetConfig+0x26c>)
  24027. 800a748: 4293 cmp r3, r2
  24028. 800a74a: d00e beq.n 800a76a <DMA_SetConfig+0x10a>
  24029. 800a74c: 68fb ldr r3, [r7, #12]
  24030. 800a74e: 681b ldr r3, [r3, #0]
  24031. 800a750: 4a5f ldr r2, [pc, #380] @ (800a8d0 <DMA_SetConfig+0x270>)
  24032. 800a752: 4293 cmp r3, r2
  24033. 800a754: d009 beq.n 800a76a <DMA_SetConfig+0x10a>
  24034. 800a756: 68fb ldr r3, [r7, #12]
  24035. 800a758: 681b ldr r3, [r3, #0]
  24036. 800a75a: 4a5e ldr r2, [pc, #376] @ (800a8d4 <DMA_SetConfig+0x274>)
  24037. 800a75c: 4293 cmp r3, r2
  24038. 800a75e: d004 beq.n 800a76a <DMA_SetConfig+0x10a>
  24039. 800a760: 68fb ldr r3, [r7, #12]
  24040. 800a762: 681b ldr r3, [r3, #0]
  24041. 800a764: 4a5c ldr r2, [pc, #368] @ (800a8d8 <DMA_SetConfig+0x278>)
  24042. 800a766: 4293 cmp r3, r2
  24043. 800a768: d101 bne.n 800a76e <DMA_SetConfig+0x10e>
  24044. 800a76a: 2301 movs r3, #1
  24045. 800a76c: e000 b.n 800a770 <DMA_SetConfig+0x110>
  24046. 800a76e: 2300 movs r3, #0
  24047. 800a770: 2b00 cmp r3, #0
  24048. 800a772: d00d beq.n 800a790 <DMA_SetConfig+0x130>
  24049. {
  24050. /* Clear the DMAMUX synchro overrun flag */
  24051. hdma->DMAmuxChannelStatus->CFR = hdma->DMAmuxChannelStatusMask;
  24052. 800a774: 68fb ldr r3, [r7, #12]
  24053. 800a776: 6e5b ldr r3, [r3, #100] @ 0x64
  24054. 800a778: 68fa ldr r2, [r7, #12]
  24055. 800a77a: 6e92 ldr r2, [r2, #104] @ 0x68
  24056. 800a77c: 605a str r2, [r3, #4]
  24057. if(hdma->DMAmuxRequestGen != 0U)
  24058. 800a77e: 68fb ldr r3, [r7, #12]
  24059. 800a780: 6edb ldr r3, [r3, #108] @ 0x6c
  24060. 800a782: 2b00 cmp r3, #0
  24061. 800a784: d004 beq.n 800a790 <DMA_SetConfig+0x130>
  24062. {
  24063. /* Clear the DMAMUX request generator overrun flag */
  24064. hdma->DMAmuxRequestGenStatus->RGCFR = hdma->DMAmuxRequestGenStatusMask;
  24065. 800a786: 68fb ldr r3, [r7, #12]
  24066. 800a788: 6f1b ldr r3, [r3, #112] @ 0x70
  24067. 800a78a: 68fa ldr r2, [r7, #12]
  24068. 800a78c: 6f52 ldr r2, [r2, #116] @ 0x74
  24069. 800a78e: 605a str r2, [r3, #4]
  24070. }
  24071. }
  24072. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24073. 800a790: 68fb ldr r3, [r7, #12]
  24074. 800a792: 681b ldr r3, [r3, #0]
  24075. 800a794: 4a39 ldr r2, [pc, #228] @ (800a87c <DMA_SetConfig+0x21c>)
  24076. 800a796: 4293 cmp r3, r2
  24077. 800a798: d04a beq.n 800a830 <DMA_SetConfig+0x1d0>
  24078. 800a79a: 68fb ldr r3, [r7, #12]
  24079. 800a79c: 681b ldr r3, [r3, #0]
  24080. 800a79e: 4a38 ldr r2, [pc, #224] @ (800a880 <DMA_SetConfig+0x220>)
  24081. 800a7a0: 4293 cmp r3, r2
  24082. 800a7a2: d045 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24083. 800a7a4: 68fb ldr r3, [r7, #12]
  24084. 800a7a6: 681b ldr r3, [r3, #0]
  24085. 800a7a8: 4a36 ldr r2, [pc, #216] @ (800a884 <DMA_SetConfig+0x224>)
  24086. 800a7aa: 4293 cmp r3, r2
  24087. 800a7ac: d040 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24088. 800a7ae: 68fb ldr r3, [r7, #12]
  24089. 800a7b0: 681b ldr r3, [r3, #0]
  24090. 800a7b2: 4a35 ldr r2, [pc, #212] @ (800a888 <DMA_SetConfig+0x228>)
  24091. 800a7b4: 4293 cmp r3, r2
  24092. 800a7b6: d03b beq.n 800a830 <DMA_SetConfig+0x1d0>
  24093. 800a7b8: 68fb ldr r3, [r7, #12]
  24094. 800a7ba: 681b ldr r3, [r3, #0]
  24095. 800a7bc: 4a33 ldr r2, [pc, #204] @ (800a88c <DMA_SetConfig+0x22c>)
  24096. 800a7be: 4293 cmp r3, r2
  24097. 800a7c0: d036 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24098. 800a7c2: 68fb ldr r3, [r7, #12]
  24099. 800a7c4: 681b ldr r3, [r3, #0]
  24100. 800a7c6: 4a32 ldr r2, [pc, #200] @ (800a890 <DMA_SetConfig+0x230>)
  24101. 800a7c8: 4293 cmp r3, r2
  24102. 800a7ca: d031 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24103. 800a7cc: 68fb ldr r3, [r7, #12]
  24104. 800a7ce: 681b ldr r3, [r3, #0]
  24105. 800a7d0: 4a30 ldr r2, [pc, #192] @ (800a894 <DMA_SetConfig+0x234>)
  24106. 800a7d2: 4293 cmp r3, r2
  24107. 800a7d4: d02c beq.n 800a830 <DMA_SetConfig+0x1d0>
  24108. 800a7d6: 68fb ldr r3, [r7, #12]
  24109. 800a7d8: 681b ldr r3, [r3, #0]
  24110. 800a7da: 4a2f ldr r2, [pc, #188] @ (800a898 <DMA_SetConfig+0x238>)
  24111. 800a7dc: 4293 cmp r3, r2
  24112. 800a7de: d027 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24113. 800a7e0: 68fb ldr r3, [r7, #12]
  24114. 800a7e2: 681b ldr r3, [r3, #0]
  24115. 800a7e4: 4a2d ldr r2, [pc, #180] @ (800a89c <DMA_SetConfig+0x23c>)
  24116. 800a7e6: 4293 cmp r3, r2
  24117. 800a7e8: d022 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24118. 800a7ea: 68fb ldr r3, [r7, #12]
  24119. 800a7ec: 681b ldr r3, [r3, #0]
  24120. 800a7ee: 4a2c ldr r2, [pc, #176] @ (800a8a0 <DMA_SetConfig+0x240>)
  24121. 800a7f0: 4293 cmp r3, r2
  24122. 800a7f2: d01d beq.n 800a830 <DMA_SetConfig+0x1d0>
  24123. 800a7f4: 68fb ldr r3, [r7, #12]
  24124. 800a7f6: 681b ldr r3, [r3, #0]
  24125. 800a7f8: 4a2a ldr r2, [pc, #168] @ (800a8a4 <DMA_SetConfig+0x244>)
  24126. 800a7fa: 4293 cmp r3, r2
  24127. 800a7fc: d018 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24128. 800a7fe: 68fb ldr r3, [r7, #12]
  24129. 800a800: 681b ldr r3, [r3, #0]
  24130. 800a802: 4a29 ldr r2, [pc, #164] @ (800a8a8 <DMA_SetConfig+0x248>)
  24131. 800a804: 4293 cmp r3, r2
  24132. 800a806: d013 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24133. 800a808: 68fb ldr r3, [r7, #12]
  24134. 800a80a: 681b ldr r3, [r3, #0]
  24135. 800a80c: 4a27 ldr r2, [pc, #156] @ (800a8ac <DMA_SetConfig+0x24c>)
  24136. 800a80e: 4293 cmp r3, r2
  24137. 800a810: d00e beq.n 800a830 <DMA_SetConfig+0x1d0>
  24138. 800a812: 68fb ldr r3, [r7, #12]
  24139. 800a814: 681b ldr r3, [r3, #0]
  24140. 800a816: 4a26 ldr r2, [pc, #152] @ (800a8b0 <DMA_SetConfig+0x250>)
  24141. 800a818: 4293 cmp r3, r2
  24142. 800a81a: d009 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24143. 800a81c: 68fb ldr r3, [r7, #12]
  24144. 800a81e: 681b ldr r3, [r3, #0]
  24145. 800a820: 4a24 ldr r2, [pc, #144] @ (800a8b4 <DMA_SetConfig+0x254>)
  24146. 800a822: 4293 cmp r3, r2
  24147. 800a824: d004 beq.n 800a830 <DMA_SetConfig+0x1d0>
  24148. 800a826: 68fb ldr r3, [r7, #12]
  24149. 800a828: 681b ldr r3, [r3, #0]
  24150. 800a82a: 4a23 ldr r2, [pc, #140] @ (800a8b8 <DMA_SetConfig+0x258>)
  24151. 800a82c: 4293 cmp r3, r2
  24152. 800a82e: d101 bne.n 800a834 <DMA_SetConfig+0x1d4>
  24153. 800a830: 2301 movs r3, #1
  24154. 800a832: e000 b.n 800a836 <DMA_SetConfig+0x1d6>
  24155. 800a834: 2300 movs r3, #0
  24156. 800a836: 2b00 cmp r3, #0
  24157. 800a838: d059 beq.n 800a8ee <DMA_SetConfig+0x28e>
  24158. {
  24159. /* Clear all interrupt flags at correct offset within the register */
  24160. regs_dma->IFCR = 0x3FUL << (hdma->StreamIndex & 0x1FU);
  24161. 800a83a: 68fb ldr r3, [r7, #12]
  24162. 800a83c: 6ddb ldr r3, [r3, #92] @ 0x5c
  24163. 800a83e: f003 031f and.w r3, r3, #31
  24164. 800a842: 223f movs r2, #63 @ 0x3f
  24165. 800a844: 409a lsls r2, r3
  24166. 800a846: 697b ldr r3, [r7, #20]
  24167. 800a848: 609a str r2, [r3, #8]
  24168. /* Clear DBM bit */
  24169. ((DMA_Stream_TypeDef *)hdma->Instance)->CR &= (uint32_t)(~DMA_SxCR_DBM);
  24170. 800a84a: 68fb ldr r3, [r7, #12]
  24171. 800a84c: 681b ldr r3, [r3, #0]
  24172. 800a84e: 681a ldr r2, [r3, #0]
  24173. 800a850: 68fb ldr r3, [r7, #12]
  24174. 800a852: 681b ldr r3, [r3, #0]
  24175. 800a854: f422 2280 bic.w r2, r2, #262144 @ 0x40000
  24176. 800a858: 601a str r2, [r3, #0]
  24177. /* Configure DMA Stream data length */
  24178. ((DMA_Stream_TypeDef *)hdma->Instance)->NDTR = DataLength;
  24179. 800a85a: 68fb ldr r3, [r7, #12]
  24180. 800a85c: 681b ldr r3, [r3, #0]
  24181. 800a85e: 683a ldr r2, [r7, #0]
  24182. 800a860: 605a str r2, [r3, #4]
  24183. /* Peripheral to Memory */
  24184. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24185. 800a862: 68fb ldr r3, [r7, #12]
  24186. 800a864: 689b ldr r3, [r3, #8]
  24187. 800a866: 2b40 cmp r3, #64 @ 0x40
  24188. 800a868: d138 bne.n 800a8dc <DMA_SetConfig+0x27c>
  24189. {
  24190. /* Configure DMA Stream destination address */
  24191. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = DstAddress;
  24192. 800a86a: 68fb ldr r3, [r7, #12]
  24193. 800a86c: 681b ldr r3, [r3, #0]
  24194. 800a86e: 687a ldr r2, [r7, #4]
  24195. 800a870: 609a str r2, [r3, #8]
  24196. /* Configure DMA Stream source address */
  24197. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = SrcAddress;
  24198. 800a872: 68fb ldr r3, [r7, #12]
  24199. 800a874: 681b ldr r3, [r3, #0]
  24200. 800a876: 68ba ldr r2, [r7, #8]
  24201. 800a878: 60da str r2, [r3, #12]
  24202. }
  24203. else
  24204. {
  24205. /* Nothing To Do */
  24206. }
  24207. }
  24208. 800a87a: e086 b.n 800a98a <DMA_SetConfig+0x32a>
  24209. 800a87c: 40020010 .word 0x40020010
  24210. 800a880: 40020028 .word 0x40020028
  24211. 800a884: 40020040 .word 0x40020040
  24212. 800a888: 40020058 .word 0x40020058
  24213. 800a88c: 40020070 .word 0x40020070
  24214. 800a890: 40020088 .word 0x40020088
  24215. 800a894: 400200a0 .word 0x400200a0
  24216. 800a898: 400200b8 .word 0x400200b8
  24217. 800a89c: 40020410 .word 0x40020410
  24218. 800a8a0: 40020428 .word 0x40020428
  24219. 800a8a4: 40020440 .word 0x40020440
  24220. 800a8a8: 40020458 .word 0x40020458
  24221. 800a8ac: 40020470 .word 0x40020470
  24222. 800a8b0: 40020488 .word 0x40020488
  24223. 800a8b4: 400204a0 .word 0x400204a0
  24224. 800a8b8: 400204b8 .word 0x400204b8
  24225. 800a8bc: 58025408 .word 0x58025408
  24226. 800a8c0: 5802541c .word 0x5802541c
  24227. 800a8c4: 58025430 .word 0x58025430
  24228. 800a8c8: 58025444 .word 0x58025444
  24229. 800a8cc: 58025458 .word 0x58025458
  24230. 800a8d0: 5802546c .word 0x5802546c
  24231. 800a8d4: 58025480 .word 0x58025480
  24232. 800a8d8: 58025494 .word 0x58025494
  24233. ((DMA_Stream_TypeDef *)hdma->Instance)->PAR = SrcAddress;
  24234. 800a8dc: 68fb ldr r3, [r7, #12]
  24235. 800a8de: 681b ldr r3, [r3, #0]
  24236. 800a8e0: 68ba ldr r2, [r7, #8]
  24237. 800a8e2: 609a str r2, [r3, #8]
  24238. ((DMA_Stream_TypeDef *)hdma->Instance)->M0AR = DstAddress;
  24239. 800a8e4: 68fb ldr r3, [r7, #12]
  24240. 800a8e6: 681b ldr r3, [r3, #0]
  24241. 800a8e8: 687a ldr r2, [r7, #4]
  24242. 800a8ea: 60da str r2, [r3, #12]
  24243. }
  24244. 800a8ec: e04d b.n 800a98a <DMA_SetConfig+0x32a>
  24245. else if(IS_BDMA_CHANNEL_INSTANCE(hdma->Instance) != 0U) /* BDMA instance(s) */
  24246. 800a8ee: 68fb ldr r3, [r7, #12]
  24247. 800a8f0: 681b ldr r3, [r3, #0]
  24248. 800a8f2: 4a29 ldr r2, [pc, #164] @ (800a998 <DMA_SetConfig+0x338>)
  24249. 800a8f4: 4293 cmp r3, r2
  24250. 800a8f6: d022 beq.n 800a93e <DMA_SetConfig+0x2de>
  24251. 800a8f8: 68fb ldr r3, [r7, #12]
  24252. 800a8fa: 681b ldr r3, [r3, #0]
  24253. 800a8fc: 4a27 ldr r2, [pc, #156] @ (800a99c <DMA_SetConfig+0x33c>)
  24254. 800a8fe: 4293 cmp r3, r2
  24255. 800a900: d01d beq.n 800a93e <DMA_SetConfig+0x2de>
  24256. 800a902: 68fb ldr r3, [r7, #12]
  24257. 800a904: 681b ldr r3, [r3, #0]
  24258. 800a906: 4a26 ldr r2, [pc, #152] @ (800a9a0 <DMA_SetConfig+0x340>)
  24259. 800a908: 4293 cmp r3, r2
  24260. 800a90a: d018 beq.n 800a93e <DMA_SetConfig+0x2de>
  24261. 800a90c: 68fb ldr r3, [r7, #12]
  24262. 800a90e: 681b ldr r3, [r3, #0]
  24263. 800a910: 4a24 ldr r2, [pc, #144] @ (800a9a4 <DMA_SetConfig+0x344>)
  24264. 800a912: 4293 cmp r3, r2
  24265. 800a914: d013 beq.n 800a93e <DMA_SetConfig+0x2de>
  24266. 800a916: 68fb ldr r3, [r7, #12]
  24267. 800a918: 681b ldr r3, [r3, #0]
  24268. 800a91a: 4a23 ldr r2, [pc, #140] @ (800a9a8 <DMA_SetConfig+0x348>)
  24269. 800a91c: 4293 cmp r3, r2
  24270. 800a91e: d00e beq.n 800a93e <DMA_SetConfig+0x2de>
  24271. 800a920: 68fb ldr r3, [r7, #12]
  24272. 800a922: 681b ldr r3, [r3, #0]
  24273. 800a924: 4a21 ldr r2, [pc, #132] @ (800a9ac <DMA_SetConfig+0x34c>)
  24274. 800a926: 4293 cmp r3, r2
  24275. 800a928: d009 beq.n 800a93e <DMA_SetConfig+0x2de>
  24276. 800a92a: 68fb ldr r3, [r7, #12]
  24277. 800a92c: 681b ldr r3, [r3, #0]
  24278. 800a92e: 4a20 ldr r2, [pc, #128] @ (800a9b0 <DMA_SetConfig+0x350>)
  24279. 800a930: 4293 cmp r3, r2
  24280. 800a932: d004 beq.n 800a93e <DMA_SetConfig+0x2de>
  24281. 800a934: 68fb ldr r3, [r7, #12]
  24282. 800a936: 681b ldr r3, [r3, #0]
  24283. 800a938: 4a1e ldr r2, [pc, #120] @ (800a9b4 <DMA_SetConfig+0x354>)
  24284. 800a93a: 4293 cmp r3, r2
  24285. 800a93c: d101 bne.n 800a942 <DMA_SetConfig+0x2e2>
  24286. 800a93e: 2301 movs r3, #1
  24287. 800a940: e000 b.n 800a944 <DMA_SetConfig+0x2e4>
  24288. 800a942: 2300 movs r3, #0
  24289. 800a944: 2b00 cmp r3, #0
  24290. 800a946: d020 beq.n 800a98a <DMA_SetConfig+0x32a>
  24291. regs_bdma->IFCR = (BDMA_ISR_GIF0) << (hdma->StreamIndex & 0x1FU);
  24292. 800a948: 68fb ldr r3, [r7, #12]
  24293. 800a94a: 6ddb ldr r3, [r3, #92] @ 0x5c
  24294. 800a94c: f003 031f and.w r3, r3, #31
  24295. 800a950: 2201 movs r2, #1
  24296. 800a952: 409a lsls r2, r3
  24297. 800a954: 693b ldr r3, [r7, #16]
  24298. 800a956: 605a str r2, [r3, #4]
  24299. ((BDMA_Channel_TypeDef *)hdma->Instance)->CNDTR = DataLength;
  24300. 800a958: 68fb ldr r3, [r7, #12]
  24301. 800a95a: 681b ldr r3, [r3, #0]
  24302. 800a95c: 683a ldr r2, [r7, #0]
  24303. 800a95e: 605a str r2, [r3, #4]
  24304. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  24305. 800a960: 68fb ldr r3, [r7, #12]
  24306. 800a962: 689b ldr r3, [r3, #8]
  24307. 800a964: 2b40 cmp r3, #64 @ 0x40
  24308. 800a966: d108 bne.n 800a97a <DMA_SetConfig+0x31a>
  24309. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = DstAddress;
  24310. 800a968: 68fb ldr r3, [r7, #12]
  24311. 800a96a: 681b ldr r3, [r3, #0]
  24312. 800a96c: 687a ldr r2, [r7, #4]
  24313. 800a96e: 609a str r2, [r3, #8]
  24314. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = SrcAddress;
  24315. 800a970: 68fb ldr r3, [r7, #12]
  24316. 800a972: 681b ldr r3, [r3, #0]
  24317. 800a974: 68ba ldr r2, [r7, #8]
  24318. 800a976: 60da str r2, [r3, #12]
  24319. }
  24320. 800a978: e007 b.n 800a98a <DMA_SetConfig+0x32a>
  24321. ((BDMA_Channel_TypeDef *)hdma->Instance)->CPAR = SrcAddress;
  24322. 800a97a: 68fb ldr r3, [r7, #12]
  24323. 800a97c: 681b ldr r3, [r3, #0]
  24324. 800a97e: 68ba ldr r2, [r7, #8]
  24325. 800a980: 609a str r2, [r3, #8]
  24326. ((BDMA_Channel_TypeDef *)hdma->Instance)->CM0AR = DstAddress;
  24327. 800a982: 68fb ldr r3, [r7, #12]
  24328. 800a984: 681b ldr r3, [r3, #0]
  24329. 800a986: 687a ldr r2, [r7, #4]
  24330. 800a988: 60da str r2, [r3, #12]
  24331. }
  24332. 800a98a: bf00 nop
  24333. 800a98c: 371c adds r7, #28
  24334. 800a98e: 46bd mov sp, r7
  24335. 800a990: f85d 7b04 ldr.w r7, [sp], #4
  24336. 800a994: 4770 bx lr
  24337. 800a996: bf00 nop
  24338. 800a998: 58025408 .word 0x58025408
  24339. 800a99c: 5802541c .word 0x5802541c
  24340. 800a9a0: 58025430 .word 0x58025430
  24341. 800a9a4: 58025444 .word 0x58025444
  24342. 800a9a8: 58025458 .word 0x58025458
  24343. 800a9ac: 5802546c .word 0x5802546c
  24344. 800a9b0: 58025480 .word 0x58025480
  24345. 800a9b4: 58025494 .word 0x58025494
  24346. 0800a9b8 <DMA_CalcBaseAndBitshift>:
  24347. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24348. * the configuration information for the specified DMA Stream.
  24349. * @retval Stream base address
  24350. */
  24351. static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma)
  24352. {
  24353. 800a9b8: b480 push {r7}
  24354. 800a9ba: b085 sub sp, #20
  24355. 800a9bc: af00 add r7, sp, #0
  24356. 800a9be: 6078 str r0, [r7, #4]
  24357. if(IS_DMA_STREAM_INSTANCE(hdma->Instance) != 0U) /* DMA1 or DMA2 instance */
  24358. 800a9c0: 687b ldr r3, [r7, #4]
  24359. 800a9c2: 681b ldr r3, [r3, #0]
  24360. 800a9c4: 4a42 ldr r2, [pc, #264] @ (800aad0 <DMA_CalcBaseAndBitshift+0x118>)
  24361. 800a9c6: 4293 cmp r3, r2
  24362. 800a9c8: d04a beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24363. 800a9ca: 687b ldr r3, [r7, #4]
  24364. 800a9cc: 681b ldr r3, [r3, #0]
  24365. 800a9ce: 4a41 ldr r2, [pc, #260] @ (800aad4 <DMA_CalcBaseAndBitshift+0x11c>)
  24366. 800a9d0: 4293 cmp r3, r2
  24367. 800a9d2: d045 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24368. 800a9d4: 687b ldr r3, [r7, #4]
  24369. 800a9d6: 681b ldr r3, [r3, #0]
  24370. 800a9d8: 4a3f ldr r2, [pc, #252] @ (800aad8 <DMA_CalcBaseAndBitshift+0x120>)
  24371. 800a9da: 4293 cmp r3, r2
  24372. 800a9dc: d040 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24373. 800a9de: 687b ldr r3, [r7, #4]
  24374. 800a9e0: 681b ldr r3, [r3, #0]
  24375. 800a9e2: 4a3e ldr r2, [pc, #248] @ (800aadc <DMA_CalcBaseAndBitshift+0x124>)
  24376. 800a9e4: 4293 cmp r3, r2
  24377. 800a9e6: d03b beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24378. 800a9e8: 687b ldr r3, [r7, #4]
  24379. 800a9ea: 681b ldr r3, [r3, #0]
  24380. 800a9ec: 4a3c ldr r2, [pc, #240] @ (800aae0 <DMA_CalcBaseAndBitshift+0x128>)
  24381. 800a9ee: 4293 cmp r3, r2
  24382. 800a9f0: d036 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24383. 800a9f2: 687b ldr r3, [r7, #4]
  24384. 800a9f4: 681b ldr r3, [r3, #0]
  24385. 800a9f6: 4a3b ldr r2, [pc, #236] @ (800aae4 <DMA_CalcBaseAndBitshift+0x12c>)
  24386. 800a9f8: 4293 cmp r3, r2
  24387. 800a9fa: d031 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24388. 800a9fc: 687b ldr r3, [r7, #4]
  24389. 800a9fe: 681b ldr r3, [r3, #0]
  24390. 800aa00: 4a39 ldr r2, [pc, #228] @ (800aae8 <DMA_CalcBaseAndBitshift+0x130>)
  24391. 800aa02: 4293 cmp r3, r2
  24392. 800aa04: d02c beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24393. 800aa06: 687b ldr r3, [r7, #4]
  24394. 800aa08: 681b ldr r3, [r3, #0]
  24395. 800aa0a: 4a38 ldr r2, [pc, #224] @ (800aaec <DMA_CalcBaseAndBitshift+0x134>)
  24396. 800aa0c: 4293 cmp r3, r2
  24397. 800aa0e: d027 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24398. 800aa10: 687b ldr r3, [r7, #4]
  24399. 800aa12: 681b ldr r3, [r3, #0]
  24400. 800aa14: 4a36 ldr r2, [pc, #216] @ (800aaf0 <DMA_CalcBaseAndBitshift+0x138>)
  24401. 800aa16: 4293 cmp r3, r2
  24402. 800aa18: d022 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24403. 800aa1a: 687b ldr r3, [r7, #4]
  24404. 800aa1c: 681b ldr r3, [r3, #0]
  24405. 800aa1e: 4a35 ldr r2, [pc, #212] @ (800aaf4 <DMA_CalcBaseAndBitshift+0x13c>)
  24406. 800aa20: 4293 cmp r3, r2
  24407. 800aa22: d01d beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24408. 800aa24: 687b ldr r3, [r7, #4]
  24409. 800aa26: 681b ldr r3, [r3, #0]
  24410. 800aa28: 4a33 ldr r2, [pc, #204] @ (800aaf8 <DMA_CalcBaseAndBitshift+0x140>)
  24411. 800aa2a: 4293 cmp r3, r2
  24412. 800aa2c: d018 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24413. 800aa2e: 687b ldr r3, [r7, #4]
  24414. 800aa30: 681b ldr r3, [r3, #0]
  24415. 800aa32: 4a32 ldr r2, [pc, #200] @ (800aafc <DMA_CalcBaseAndBitshift+0x144>)
  24416. 800aa34: 4293 cmp r3, r2
  24417. 800aa36: d013 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24418. 800aa38: 687b ldr r3, [r7, #4]
  24419. 800aa3a: 681b ldr r3, [r3, #0]
  24420. 800aa3c: 4a30 ldr r2, [pc, #192] @ (800ab00 <DMA_CalcBaseAndBitshift+0x148>)
  24421. 800aa3e: 4293 cmp r3, r2
  24422. 800aa40: d00e beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24423. 800aa42: 687b ldr r3, [r7, #4]
  24424. 800aa44: 681b ldr r3, [r3, #0]
  24425. 800aa46: 4a2f ldr r2, [pc, #188] @ (800ab04 <DMA_CalcBaseAndBitshift+0x14c>)
  24426. 800aa48: 4293 cmp r3, r2
  24427. 800aa4a: d009 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24428. 800aa4c: 687b ldr r3, [r7, #4]
  24429. 800aa4e: 681b ldr r3, [r3, #0]
  24430. 800aa50: 4a2d ldr r2, [pc, #180] @ (800ab08 <DMA_CalcBaseAndBitshift+0x150>)
  24431. 800aa52: 4293 cmp r3, r2
  24432. 800aa54: d004 beq.n 800aa60 <DMA_CalcBaseAndBitshift+0xa8>
  24433. 800aa56: 687b ldr r3, [r7, #4]
  24434. 800aa58: 681b ldr r3, [r3, #0]
  24435. 800aa5a: 4a2c ldr r2, [pc, #176] @ (800ab0c <DMA_CalcBaseAndBitshift+0x154>)
  24436. 800aa5c: 4293 cmp r3, r2
  24437. 800aa5e: d101 bne.n 800aa64 <DMA_CalcBaseAndBitshift+0xac>
  24438. 800aa60: 2301 movs r3, #1
  24439. 800aa62: e000 b.n 800aa66 <DMA_CalcBaseAndBitshift+0xae>
  24440. 800aa64: 2300 movs r3, #0
  24441. 800aa66: 2b00 cmp r3, #0
  24442. 800aa68: d024 beq.n 800aab4 <DMA_CalcBaseAndBitshift+0xfc>
  24443. {
  24444. uint32_t stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24445. 800aa6a: 687b ldr r3, [r7, #4]
  24446. 800aa6c: 681b ldr r3, [r3, #0]
  24447. 800aa6e: b2db uxtb r3, r3
  24448. 800aa70: 3b10 subs r3, #16
  24449. 800aa72: 4a27 ldr r2, [pc, #156] @ (800ab10 <DMA_CalcBaseAndBitshift+0x158>)
  24450. 800aa74: fba2 2303 umull r2, r3, r2, r3
  24451. 800aa78: 091b lsrs r3, r3, #4
  24452. 800aa7a: 60fb str r3, [r7, #12]
  24453. /* lookup table for necessary bitshift of flags within status registers */
  24454. static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U};
  24455. hdma->StreamIndex = flagBitshiftOffset[stream_number & 0x7U];
  24456. 800aa7c: 68fb ldr r3, [r7, #12]
  24457. 800aa7e: f003 0307 and.w r3, r3, #7
  24458. 800aa82: 4a24 ldr r2, [pc, #144] @ (800ab14 <DMA_CalcBaseAndBitshift+0x15c>)
  24459. 800aa84: 5cd3 ldrb r3, [r2, r3]
  24460. 800aa86: 461a mov r2, r3
  24461. 800aa88: 687b ldr r3, [r7, #4]
  24462. 800aa8a: 65da str r2, [r3, #92] @ 0x5c
  24463. if (stream_number > 3U)
  24464. 800aa8c: 68fb ldr r3, [r7, #12]
  24465. 800aa8e: 2b03 cmp r3, #3
  24466. 800aa90: d908 bls.n 800aaa4 <DMA_CalcBaseAndBitshift+0xec>
  24467. {
  24468. /* return pointer to HISR and HIFCR */
  24469. hdma->StreamBaseAddress = (((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU)) + 4U);
  24470. 800aa92: 687b ldr r3, [r7, #4]
  24471. 800aa94: 681b ldr r3, [r3, #0]
  24472. 800aa96: 461a mov r2, r3
  24473. 800aa98: 4b1f ldr r3, [pc, #124] @ (800ab18 <DMA_CalcBaseAndBitshift+0x160>)
  24474. 800aa9a: 4013 ands r3, r2
  24475. 800aa9c: 1d1a adds r2, r3, #4
  24476. 800aa9e: 687b ldr r3, [r7, #4]
  24477. 800aaa0: 659a str r2, [r3, #88] @ 0x58
  24478. 800aaa2: e00d b.n 800aac0 <DMA_CalcBaseAndBitshift+0x108>
  24479. }
  24480. else
  24481. {
  24482. /* return pointer to LISR and LIFCR */
  24483. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0x3FFU));
  24484. 800aaa4: 687b ldr r3, [r7, #4]
  24485. 800aaa6: 681b ldr r3, [r3, #0]
  24486. 800aaa8: 461a mov r2, r3
  24487. 800aaaa: 4b1b ldr r3, [pc, #108] @ (800ab18 <DMA_CalcBaseAndBitshift+0x160>)
  24488. 800aaac: 4013 ands r3, r2
  24489. 800aaae: 687a ldr r2, [r7, #4]
  24490. 800aab0: 6593 str r3, [r2, #88] @ 0x58
  24491. 800aab2: e005 b.n 800aac0 <DMA_CalcBaseAndBitshift+0x108>
  24492. }
  24493. }
  24494. else /* BDMA instance(s) */
  24495. {
  24496. /* return pointer to ISR and IFCR */
  24497. hdma->StreamBaseAddress = ((uint32_t)((uint32_t*)hdma->Instance) & (uint32_t)(~0xFFU));
  24498. 800aab4: 687b ldr r3, [r7, #4]
  24499. 800aab6: 681b ldr r3, [r3, #0]
  24500. 800aab8: f023 02ff bic.w r2, r3, #255 @ 0xff
  24501. 800aabc: 687b ldr r3, [r7, #4]
  24502. 800aabe: 659a str r2, [r3, #88] @ 0x58
  24503. }
  24504. return hdma->StreamBaseAddress;
  24505. 800aac0: 687b ldr r3, [r7, #4]
  24506. 800aac2: 6d9b ldr r3, [r3, #88] @ 0x58
  24507. }
  24508. 800aac4: 4618 mov r0, r3
  24509. 800aac6: 3714 adds r7, #20
  24510. 800aac8: 46bd mov sp, r7
  24511. 800aaca: f85d 7b04 ldr.w r7, [sp], #4
  24512. 800aace: 4770 bx lr
  24513. 800aad0: 40020010 .word 0x40020010
  24514. 800aad4: 40020028 .word 0x40020028
  24515. 800aad8: 40020040 .word 0x40020040
  24516. 800aadc: 40020058 .word 0x40020058
  24517. 800aae0: 40020070 .word 0x40020070
  24518. 800aae4: 40020088 .word 0x40020088
  24519. 800aae8: 400200a0 .word 0x400200a0
  24520. 800aaec: 400200b8 .word 0x400200b8
  24521. 800aaf0: 40020410 .word 0x40020410
  24522. 800aaf4: 40020428 .word 0x40020428
  24523. 800aaf8: 40020440 .word 0x40020440
  24524. 800aafc: 40020458 .word 0x40020458
  24525. 800ab00: 40020470 .word 0x40020470
  24526. 800ab04: 40020488 .word 0x40020488
  24527. 800ab08: 400204a0 .word 0x400204a0
  24528. 800ab0c: 400204b8 .word 0x400204b8
  24529. 800ab10: aaaaaaab .word 0xaaaaaaab
  24530. 800ab14: 0801a298 .word 0x0801a298
  24531. 800ab18: fffffc00 .word 0xfffffc00
  24532. 0800ab1c <DMA_CheckFifoParam>:
  24533. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24534. * the configuration information for the specified DMA Stream.
  24535. * @retval HAL status
  24536. */
  24537. static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma)
  24538. {
  24539. 800ab1c: b480 push {r7}
  24540. 800ab1e: b085 sub sp, #20
  24541. 800ab20: af00 add r7, sp, #0
  24542. 800ab22: 6078 str r0, [r7, #4]
  24543. HAL_StatusTypeDef status = HAL_OK;
  24544. 800ab24: 2300 movs r3, #0
  24545. 800ab26: 73fb strb r3, [r7, #15]
  24546. /* Memory Data size equal to Byte */
  24547. if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE)
  24548. 800ab28: 687b ldr r3, [r7, #4]
  24549. 800ab2a: 699b ldr r3, [r3, #24]
  24550. 800ab2c: 2b00 cmp r3, #0
  24551. 800ab2e: d120 bne.n 800ab72 <DMA_CheckFifoParam+0x56>
  24552. {
  24553. switch (hdma->Init.FIFOThreshold)
  24554. 800ab30: 687b ldr r3, [r7, #4]
  24555. 800ab32: 6a9b ldr r3, [r3, #40] @ 0x28
  24556. 800ab34: 2b03 cmp r3, #3
  24557. 800ab36: d858 bhi.n 800abea <DMA_CheckFifoParam+0xce>
  24558. 800ab38: a201 add r2, pc, #4 @ (adr r2, 800ab40 <DMA_CheckFifoParam+0x24>)
  24559. 800ab3a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24560. 800ab3e: bf00 nop
  24561. 800ab40: 0800ab51 .word 0x0800ab51
  24562. 800ab44: 0800ab63 .word 0x0800ab63
  24563. 800ab48: 0800ab51 .word 0x0800ab51
  24564. 800ab4c: 0800abeb .word 0x0800abeb
  24565. {
  24566. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  24567. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  24568. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24569. 800ab50: 687b ldr r3, [r7, #4]
  24570. 800ab52: 6adb ldr r3, [r3, #44] @ 0x2c
  24571. 800ab54: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24572. 800ab58: 2b00 cmp r3, #0
  24573. 800ab5a: d048 beq.n 800abee <DMA_CheckFifoParam+0xd2>
  24574. {
  24575. status = HAL_ERROR;
  24576. 800ab5c: 2301 movs r3, #1
  24577. 800ab5e: 73fb strb r3, [r7, #15]
  24578. }
  24579. break;
  24580. 800ab60: e045 b.n 800abee <DMA_CheckFifoParam+0xd2>
  24581. case DMA_FIFO_THRESHOLD_HALFFULL:
  24582. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  24583. 800ab62: 687b ldr r3, [r7, #4]
  24584. 800ab64: 6adb ldr r3, [r3, #44] @ 0x2c
  24585. 800ab66: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  24586. 800ab6a: d142 bne.n 800abf2 <DMA_CheckFifoParam+0xd6>
  24587. {
  24588. status = HAL_ERROR;
  24589. 800ab6c: 2301 movs r3, #1
  24590. 800ab6e: 73fb strb r3, [r7, #15]
  24591. }
  24592. break;
  24593. 800ab70: e03f b.n 800abf2 <DMA_CheckFifoParam+0xd6>
  24594. break;
  24595. }
  24596. }
  24597. /* Memory Data size equal to Half-Word */
  24598. else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD)
  24599. 800ab72: 687b ldr r3, [r7, #4]
  24600. 800ab74: 699b ldr r3, [r3, #24]
  24601. 800ab76: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  24602. 800ab7a: d123 bne.n 800abc4 <DMA_CheckFifoParam+0xa8>
  24603. {
  24604. switch (hdma->Init.FIFOThreshold)
  24605. 800ab7c: 687b ldr r3, [r7, #4]
  24606. 800ab7e: 6a9b ldr r3, [r3, #40] @ 0x28
  24607. 800ab80: 2b03 cmp r3, #3
  24608. 800ab82: d838 bhi.n 800abf6 <DMA_CheckFifoParam+0xda>
  24609. 800ab84: a201 add r2, pc, #4 @ (adr r2, 800ab8c <DMA_CheckFifoParam+0x70>)
  24610. 800ab86: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  24611. 800ab8a: bf00 nop
  24612. 800ab8c: 0800ab9d .word 0x0800ab9d
  24613. 800ab90: 0800aba3 .word 0x0800aba3
  24614. 800ab94: 0800ab9d .word 0x0800ab9d
  24615. 800ab98: 0800abb5 .word 0x0800abb5
  24616. {
  24617. case DMA_FIFO_THRESHOLD_1QUARTERFULL:
  24618. case DMA_FIFO_THRESHOLD_3QUARTERSFULL:
  24619. status = HAL_ERROR;
  24620. 800ab9c: 2301 movs r3, #1
  24621. 800ab9e: 73fb strb r3, [r7, #15]
  24622. break;
  24623. 800aba0: e030 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24624. case DMA_FIFO_THRESHOLD_HALFFULL:
  24625. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24626. 800aba2: 687b ldr r3, [r7, #4]
  24627. 800aba4: 6adb ldr r3, [r3, #44] @ 0x2c
  24628. 800aba6: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24629. 800abaa: 2b00 cmp r3, #0
  24630. 800abac: d025 beq.n 800abfa <DMA_CheckFifoParam+0xde>
  24631. {
  24632. status = HAL_ERROR;
  24633. 800abae: 2301 movs r3, #1
  24634. 800abb0: 73fb strb r3, [r7, #15]
  24635. }
  24636. break;
  24637. 800abb2: e022 b.n 800abfa <DMA_CheckFifoParam+0xde>
  24638. case DMA_FIFO_THRESHOLD_FULL:
  24639. if (hdma->Init.MemBurst == DMA_MBURST_INC16)
  24640. 800abb4: 687b ldr r3, [r7, #4]
  24641. 800abb6: 6adb ldr r3, [r3, #44] @ 0x2c
  24642. 800abb8: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000
  24643. 800abbc: d11f bne.n 800abfe <DMA_CheckFifoParam+0xe2>
  24644. {
  24645. status = HAL_ERROR;
  24646. 800abbe: 2301 movs r3, #1
  24647. 800abc0: 73fb strb r3, [r7, #15]
  24648. }
  24649. break;
  24650. 800abc2: e01c b.n 800abfe <DMA_CheckFifoParam+0xe2>
  24651. }
  24652. /* Memory Data size equal to Word */
  24653. else
  24654. {
  24655. switch (hdma->Init.FIFOThreshold)
  24656. 800abc4: 687b ldr r3, [r7, #4]
  24657. 800abc6: 6a9b ldr r3, [r3, #40] @ 0x28
  24658. 800abc8: 2b02 cmp r3, #2
  24659. 800abca: d902 bls.n 800abd2 <DMA_CheckFifoParam+0xb6>
  24660. 800abcc: 2b03 cmp r3, #3
  24661. 800abce: d003 beq.n 800abd8 <DMA_CheckFifoParam+0xbc>
  24662. status = HAL_ERROR;
  24663. }
  24664. break;
  24665. default:
  24666. break;
  24667. 800abd0: e018 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24668. status = HAL_ERROR;
  24669. 800abd2: 2301 movs r3, #1
  24670. 800abd4: 73fb strb r3, [r7, #15]
  24671. break;
  24672. 800abd6: e015 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24673. if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1)
  24674. 800abd8: 687b ldr r3, [r7, #4]
  24675. 800abda: 6adb ldr r3, [r3, #44] @ 0x2c
  24676. 800abdc: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  24677. 800abe0: 2b00 cmp r3, #0
  24678. 800abe2: d00e beq.n 800ac02 <DMA_CheckFifoParam+0xe6>
  24679. status = HAL_ERROR;
  24680. 800abe4: 2301 movs r3, #1
  24681. 800abe6: 73fb strb r3, [r7, #15]
  24682. break;
  24683. 800abe8: e00b b.n 800ac02 <DMA_CheckFifoParam+0xe6>
  24684. break;
  24685. 800abea: bf00 nop
  24686. 800abec: e00a b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24687. break;
  24688. 800abee: bf00 nop
  24689. 800abf0: e008 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24690. break;
  24691. 800abf2: bf00 nop
  24692. 800abf4: e006 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24693. break;
  24694. 800abf6: bf00 nop
  24695. 800abf8: e004 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24696. break;
  24697. 800abfa: bf00 nop
  24698. 800abfc: e002 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24699. break;
  24700. 800abfe: bf00 nop
  24701. 800ac00: e000 b.n 800ac04 <DMA_CheckFifoParam+0xe8>
  24702. break;
  24703. 800ac02: bf00 nop
  24704. }
  24705. }
  24706. return status;
  24707. 800ac04: 7bfb ldrb r3, [r7, #15]
  24708. }
  24709. 800ac06: 4618 mov r0, r3
  24710. 800ac08: 3714 adds r7, #20
  24711. 800ac0a: 46bd mov sp, r7
  24712. 800ac0c: f85d 7b04 ldr.w r7, [sp], #4
  24713. 800ac10: 4770 bx lr
  24714. 800ac12: bf00 nop
  24715. 0800ac14 <DMA_CalcDMAMUXChannelBaseAndMask>:
  24716. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24717. * the configuration information for the specified DMA Stream.
  24718. * @retval HAL status
  24719. */
  24720. static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma)
  24721. {
  24722. 800ac14: b480 push {r7}
  24723. 800ac16: b085 sub sp, #20
  24724. 800ac18: af00 add r7, sp, #0
  24725. 800ac1a: 6078 str r0, [r7, #4]
  24726. uint32_t stream_number;
  24727. uint32_t stream_baseaddress = (uint32_t)((uint32_t*)hdma->Instance);
  24728. 800ac1c: 687b ldr r3, [r7, #4]
  24729. 800ac1e: 681b ldr r3, [r3, #0]
  24730. 800ac20: 60bb str r3, [r7, #8]
  24731. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  24732. 800ac22: 687b ldr r3, [r7, #4]
  24733. 800ac24: 681b ldr r3, [r3, #0]
  24734. 800ac26: 4a38 ldr r2, [pc, #224] @ (800ad08 <DMA_CalcDMAMUXChannelBaseAndMask+0xf4>)
  24735. 800ac28: 4293 cmp r3, r2
  24736. 800ac2a: d022 beq.n 800ac72 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24737. 800ac2c: 687b ldr r3, [r7, #4]
  24738. 800ac2e: 681b ldr r3, [r3, #0]
  24739. 800ac30: 4a36 ldr r2, [pc, #216] @ (800ad0c <DMA_CalcDMAMUXChannelBaseAndMask+0xf8>)
  24740. 800ac32: 4293 cmp r3, r2
  24741. 800ac34: d01d beq.n 800ac72 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24742. 800ac36: 687b ldr r3, [r7, #4]
  24743. 800ac38: 681b ldr r3, [r3, #0]
  24744. 800ac3a: 4a35 ldr r2, [pc, #212] @ (800ad10 <DMA_CalcDMAMUXChannelBaseAndMask+0xfc>)
  24745. 800ac3c: 4293 cmp r3, r2
  24746. 800ac3e: d018 beq.n 800ac72 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24747. 800ac40: 687b ldr r3, [r7, #4]
  24748. 800ac42: 681b ldr r3, [r3, #0]
  24749. 800ac44: 4a33 ldr r2, [pc, #204] @ (800ad14 <DMA_CalcDMAMUXChannelBaseAndMask+0x100>)
  24750. 800ac46: 4293 cmp r3, r2
  24751. 800ac48: d013 beq.n 800ac72 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24752. 800ac4a: 687b ldr r3, [r7, #4]
  24753. 800ac4c: 681b ldr r3, [r3, #0]
  24754. 800ac4e: 4a32 ldr r2, [pc, #200] @ (800ad18 <DMA_CalcDMAMUXChannelBaseAndMask+0x104>)
  24755. 800ac50: 4293 cmp r3, r2
  24756. 800ac52: d00e beq.n 800ac72 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24757. 800ac54: 687b ldr r3, [r7, #4]
  24758. 800ac56: 681b ldr r3, [r3, #0]
  24759. 800ac58: 4a30 ldr r2, [pc, #192] @ (800ad1c <DMA_CalcDMAMUXChannelBaseAndMask+0x108>)
  24760. 800ac5a: 4293 cmp r3, r2
  24761. 800ac5c: d009 beq.n 800ac72 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24762. 800ac5e: 687b ldr r3, [r7, #4]
  24763. 800ac60: 681b ldr r3, [r3, #0]
  24764. 800ac62: 4a2f ldr r2, [pc, #188] @ (800ad20 <DMA_CalcDMAMUXChannelBaseAndMask+0x10c>)
  24765. 800ac64: 4293 cmp r3, r2
  24766. 800ac66: d004 beq.n 800ac72 <DMA_CalcDMAMUXChannelBaseAndMask+0x5e>
  24767. 800ac68: 687b ldr r3, [r7, #4]
  24768. 800ac6a: 681b ldr r3, [r3, #0]
  24769. 800ac6c: 4a2d ldr r2, [pc, #180] @ (800ad24 <DMA_CalcDMAMUXChannelBaseAndMask+0x110>)
  24770. 800ac6e: 4293 cmp r3, r2
  24771. 800ac70: d101 bne.n 800ac76 <DMA_CalcDMAMUXChannelBaseAndMask+0x62>
  24772. 800ac72: 2301 movs r3, #1
  24773. 800ac74: e000 b.n 800ac78 <DMA_CalcDMAMUXChannelBaseAndMask+0x64>
  24774. 800ac76: 2300 movs r3, #0
  24775. 800ac78: 2b00 cmp r3, #0
  24776. 800ac7a: d01a beq.n 800acb2 <DMA_CalcDMAMUXChannelBaseAndMask+0x9e>
  24777. {
  24778. /* BDMA Channels are connected to DMAMUX2 channels */
  24779. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 8U) / 20U;
  24780. 800ac7c: 687b ldr r3, [r7, #4]
  24781. 800ac7e: 681b ldr r3, [r3, #0]
  24782. 800ac80: b2db uxtb r3, r3
  24783. 800ac82: 3b08 subs r3, #8
  24784. 800ac84: 4a28 ldr r2, [pc, #160] @ (800ad28 <DMA_CalcDMAMUXChannelBaseAndMask+0x114>)
  24785. 800ac86: fba2 2303 umull r2, r3, r2, r3
  24786. 800ac8a: 091b lsrs r3, r3, #4
  24787. 800ac8c: 60fb str r3, [r7, #12]
  24788. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_Channel0) + (stream_number * 4U)));
  24789. 800ac8e: 68fa ldr r2, [r7, #12]
  24790. 800ac90: 4b26 ldr r3, [pc, #152] @ (800ad2c <DMA_CalcDMAMUXChannelBaseAndMask+0x118>)
  24791. 800ac92: 4413 add r3, r2
  24792. 800ac94: 009b lsls r3, r3, #2
  24793. 800ac96: 461a mov r2, r3
  24794. 800ac98: 687b ldr r3, [r7, #4]
  24795. 800ac9a: 661a str r2, [r3, #96] @ 0x60
  24796. hdma->DMAmuxChannelStatus = DMAMUX2_ChannelStatus;
  24797. 800ac9c: 687b ldr r3, [r7, #4]
  24798. 800ac9e: 4a24 ldr r2, [pc, #144] @ (800ad30 <DMA_CalcDMAMUXChannelBaseAndMask+0x11c>)
  24799. 800aca0: 665a str r2, [r3, #100] @ 0x64
  24800. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24801. 800aca2: 68fb ldr r3, [r7, #12]
  24802. 800aca4: f003 031f and.w r3, r3, #31
  24803. 800aca8: 2201 movs r2, #1
  24804. 800acaa: 409a lsls r2, r3
  24805. 800acac: 687b ldr r3, [r7, #4]
  24806. 800acae: 669a str r2, [r3, #104] @ 0x68
  24807. }
  24808. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  24809. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  24810. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24811. }
  24812. }
  24813. 800acb0: e024 b.n 800acfc <DMA_CalcDMAMUXChannelBaseAndMask+0xe8>
  24814. stream_number = (((uint32_t)((uint32_t*)hdma->Instance) & 0xFFU) - 16U) / 24U;
  24815. 800acb2: 687b ldr r3, [r7, #4]
  24816. 800acb4: 681b ldr r3, [r3, #0]
  24817. 800acb6: b2db uxtb r3, r3
  24818. 800acb8: 3b10 subs r3, #16
  24819. 800acba: 4a1e ldr r2, [pc, #120] @ (800ad34 <DMA_CalcDMAMUXChannelBaseAndMask+0x120>)
  24820. 800acbc: fba2 2303 umull r2, r3, r2, r3
  24821. 800acc0: 091b lsrs r3, r3, #4
  24822. 800acc2: 60fb str r3, [r7, #12]
  24823. if((stream_baseaddress <= ((uint32_t)DMA2_Stream7) ) && \
  24824. 800acc4: 68bb ldr r3, [r7, #8]
  24825. 800acc6: 4a1c ldr r2, [pc, #112] @ (800ad38 <DMA_CalcDMAMUXChannelBaseAndMask+0x124>)
  24826. 800acc8: 4293 cmp r3, r2
  24827. 800acca: d806 bhi.n 800acda <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  24828. 800accc: 68bb ldr r3, [r7, #8]
  24829. 800acce: 4a1b ldr r2, [pc, #108] @ (800ad3c <DMA_CalcDMAMUXChannelBaseAndMask+0x128>)
  24830. 800acd0: 4293 cmp r3, r2
  24831. 800acd2: d902 bls.n 800acda <DMA_CalcDMAMUXChannelBaseAndMask+0xc6>
  24832. stream_number += 8U;
  24833. 800acd4: 68fb ldr r3, [r7, #12]
  24834. 800acd6: 3308 adds r3, #8
  24835. 800acd8: 60fb str r3, [r7, #12]
  24836. hdma->DMAmuxChannel = (DMAMUX_Channel_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_Channel0) + (stream_number * 4U)));
  24837. 800acda: 68fa ldr r2, [r7, #12]
  24838. 800acdc: 4b18 ldr r3, [pc, #96] @ (800ad40 <DMA_CalcDMAMUXChannelBaseAndMask+0x12c>)
  24839. 800acde: 4413 add r3, r2
  24840. 800ace0: 009b lsls r3, r3, #2
  24841. 800ace2: 461a mov r2, r3
  24842. 800ace4: 687b ldr r3, [r7, #4]
  24843. 800ace6: 661a str r2, [r3, #96] @ 0x60
  24844. hdma->DMAmuxChannelStatus = DMAMUX1_ChannelStatus;
  24845. 800ace8: 687b ldr r3, [r7, #4]
  24846. 800acea: 4a16 ldr r2, [pc, #88] @ (800ad44 <DMA_CalcDMAMUXChannelBaseAndMask+0x130>)
  24847. 800acec: 665a str r2, [r3, #100] @ 0x64
  24848. hdma->DMAmuxChannelStatusMask = 1UL << (stream_number & 0x1FU);
  24849. 800acee: 68fb ldr r3, [r7, #12]
  24850. 800acf0: f003 031f and.w r3, r3, #31
  24851. 800acf4: 2201 movs r2, #1
  24852. 800acf6: 409a lsls r2, r3
  24853. 800acf8: 687b ldr r3, [r7, #4]
  24854. 800acfa: 669a str r2, [r3, #104] @ 0x68
  24855. }
  24856. 800acfc: bf00 nop
  24857. 800acfe: 3714 adds r7, #20
  24858. 800ad00: 46bd mov sp, r7
  24859. 800ad02: f85d 7b04 ldr.w r7, [sp], #4
  24860. 800ad06: 4770 bx lr
  24861. 800ad08: 58025408 .word 0x58025408
  24862. 800ad0c: 5802541c .word 0x5802541c
  24863. 800ad10: 58025430 .word 0x58025430
  24864. 800ad14: 58025444 .word 0x58025444
  24865. 800ad18: 58025458 .word 0x58025458
  24866. 800ad1c: 5802546c .word 0x5802546c
  24867. 800ad20: 58025480 .word 0x58025480
  24868. 800ad24: 58025494 .word 0x58025494
  24869. 800ad28: cccccccd .word 0xcccccccd
  24870. 800ad2c: 16009600 .word 0x16009600
  24871. 800ad30: 58025880 .word 0x58025880
  24872. 800ad34: aaaaaaab .word 0xaaaaaaab
  24873. 800ad38: 400204b8 .word 0x400204b8
  24874. 800ad3c: 4002040f .word 0x4002040f
  24875. 800ad40: 10008200 .word 0x10008200
  24876. 800ad44: 40020880 .word 0x40020880
  24877. 0800ad48 <DMA_CalcDMAMUXRequestGenBaseAndMask>:
  24878. * @param hdma: pointer to a DMA_HandleTypeDef structure that contains
  24879. * the configuration information for the specified DMA Stream.
  24880. * @retval HAL status
  24881. */
  24882. static void DMA_CalcDMAMUXRequestGenBaseAndMask(DMA_HandleTypeDef *hdma)
  24883. {
  24884. 800ad48: b480 push {r7}
  24885. 800ad4a: b085 sub sp, #20
  24886. 800ad4c: af00 add r7, sp, #0
  24887. 800ad4e: 6078 str r0, [r7, #4]
  24888. uint32_t request = hdma->Init.Request & DMAMUX_CxCR_DMAREQ_ID;
  24889. 800ad50: 687b ldr r3, [r7, #4]
  24890. 800ad52: 685b ldr r3, [r3, #4]
  24891. 800ad54: b2db uxtb r3, r3
  24892. 800ad56: 60fb str r3, [r7, #12]
  24893. if((request >= DMA_REQUEST_GENERATOR0) && (request <= DMA_REQUEST_GENERATOR7))
  24894. 800ad58: 68fb ldr r3, [r7, #12]
  24895. 800ad5a: 2b00 cmp r3, #0
  24896. 800ad5c: d04a beq.n 800adf4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24897. 800ad5e: 68fb ldr r3, [r7, #12]
  24898. 800ad60: 2b08 cmp r3, #8
  24899. 800ad62: d847 bhi.n 800adf4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xac>
  24900. {
  24901. if(IS_BDMA_CHANNEL_DMAMUX_INSTANCE(hdma->Instance) != 0U)
  24902. 800ad64: 687b ldr r3, [r7, #4]
  24903. 800ad66: 681b ldr r3, [r3, #0]
  24904. 800ad68: 4a25 ldr r2, [pc, #148] @ (800ae00 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xb8>)
  24905. 800ad6a: 4293 cmp r3, r2
  24906. 800ad6c: d022 beq.n 800adb4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24907. 800ad6e: 687b ldr r3, [r7, #4]
  24908. 800ad70: 681b ldr r3, [r3, #0]
  24909. 800ad72: 4a24 ldr r2, [pc, #144] @ (800ae04 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xbc>)
  24910. 800ad74: 4293 cmp r3, r2
  24911. 800ad76: d01d beq.n 800adb4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24912. 800ad78: 687b ldr r3, [r7, #4]
  24913. 800ad7a: 681b ldr r3, [r3, #0]
  24914. 800ad7c: 4a22 ldr r2, [pc, #136] @ (800ae08 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc0>)
  24915. 800ad7e: 4293 cmp r3, r2
  24916. 800ad80: d018 beq.n 800adb4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24917. 800ad82: 687b ldr r3, [r7, #4]
  24918. 800ad84: 681b ldr r3, [r3, #0]
  24919. 800ad86: 4a21 ldr r2, [pc, #132] @ (800ae0c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc4>)
  24920. 800ad88: 4293 cmp r3, r2
  24921. 800ad8a: d013 beq.n 800adb4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24922. 800ad8c: 687b ldr r3, [r7, #4]
  24923. 800ad8e: 681b ldr r3, [r3, #0]
  24924. 800ad90: 4a1f ldr r2, [pc, #124] @ (800ae10 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xc8>)
  24925. 800ad92: 4293 cmp r3, r2
  24926. 800ad94: d00e beq.n 800adb4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24927. 800ad96: 687b ldr r3, [r7, #4]
  24928. 800ad98: 681b ldr r3, [r3, #0]
  24929. 800ad9a: 4a1e ldr r2, [pc, #120] @ (800ae14 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xcc>)
  24930. 800ad9c: 4293 cmp r3, r2
  24931. 800ad9e: d009 beq.n 800adb4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24932. 800ada0: 687b ldr r3, [r7, #4]
  24933. 800ada2: 681b ldr r3, [r3, #0]
  24934. 800ada4: 4a1c ldr r2, [pc, #112] @ (800ae18 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd0>)
  24935. 800ada6: 4293 cmp r3, r2
  24936. 800ada8: d004 beq.n 800adb4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x6c>
  24937. 800adaa: 687b ldr r3, [r7, #4]
  24938. 800adac: 681b ldr r3, [r3, #0]
  24939. 800adae: 4a1b ldr r2, [pc, #108] @ (800ae1c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd4>)
  24940. 800adb0: 4293 cmp r3, r2
  24941. 800adb2: d101 bne.n 800adb8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x70>
  24942. 800adb4: 2301 movs r3, #1
  24943. 800adb6: e000 b.n 800adba <DMA_CalcDMAMUXRequestGenBaseAndMask+0x72>
  24944. 800adb8: 2300 movs r3, #0
  24945. 800adba: 2b00 cmp r3, #0
  24946. 800adbc: d00a beq.n 800add4 <DMA_CalcDMAMUXRequestGenBaseAndMask+0x8c>
  24947. {
  24948. /* BDMA Channels are connected to DMAMUX2 request generator blocks */
  24949. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX2_RequestGenerator0) + ((request - 1U) * 4U)));
  24950. 800adbe: 68fa ldr r2, [r7, #12]
  24951. 800adc0: 4b17 ldr r3, [pc, #92] @ (800ae20 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xd8>)
  24952. 800adc2: 4413 add r3, r2
  24953. 800adc4: 009b lsls r3, r3, #2
  24954. 800adc6: 461a mov r2, r3
  24955. 800adc8: 687b ldr r3, [r7, #4]
  24956. 800adca: 66da str r2, [r3, #108] @ 0x6c
  24957. hdma->DMAmuxRequestGenStatus = DMAMUX2_RequestGenStatus;
  24958. 800adcc: 687b ldr r3, [r7, #4]
  24959. 800adce: 4a15 ldr r2, [pc, #84] @ (800ae24 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xdc>)
  24960. 800add0: 671a str r2, [r3, #112] @ 0x70
  24961. 800add2: e009 b.n 800ade8 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xa0>
  24962. }
  24963. else
  24964. {
  24965. /* DMA1 and DMA2 Streams use DMAMUX1 request generator blocks */
  24966. hdma->DMAmuxRequestGen = (DMAMUX_RequestGen_TypeDef *)((uint32_t)(((uint32_t)DMAMUX1_RequestGenerator0) + ((request - 1U) * 4U)));
  24967. 800add4: 68fa ldr r2, [r7, #12]
  24968. 800add6: 4b14 ldr r3, [pc, #80] @ (800ae28 <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe0>)
  24969. 800add8: 4413 add r3, r2
  24970. 800adda: 009b lsls r3, r3, #2
  24971. 800addc: 461a mov r2, r3
  24972. 800adde: 687b ldr r3, [r7, #4]
  24973. 800ade0: 66da str r2, [r3, #108] @ 0x6c
  24974. hdma->DMAmuxRequestGenStatus = DMAMUX1_RequestGenStatus;
  24975. 800ade2: 687b ldr r3, [r7, #4]
  24976. 800ade4: 4a11 ldr r2, [pc, #68] @ (800ae2c <DMA_CalcDMAMUXRequestGenBaseAndMask+0xe4>)
  24977. 800ade6: 671a str r2, [r3, #112] @ 0x70
  24978. }
  24979. hdma->DMAmuxRequestGenStatusMask = 1UL << (request - 1U);
  24980. 800ade8: 68fb ldr r3, [r7, #12]
  24981. 800adea: 3b01 subs r3, #1
  24982. 800adec: 2201 movs r2, #1
  24983. 800adee: 409a lsls r2, r3
  24984. 800adf0: 687b ldr r3, [r7, #4]
  24985. 800adf2: 675a str r2, [r3, #116] @ 0x74
  24986. }
  24987. }
  24988. 800adf4: bf00 nop
  24989. 800adf6: 3714 adds r7, #20
  24990. 800adf8: 46bd mov sp, r7
  24991. 800adfa: f85d 7b04 ldr.w r7, [sp], #4
  24992. 800adfe: 4770 bx lr
  24993. 800ae00: 58025408 .word 0x58025408
  24994. 800ae04: 5802541c .word 0x5802541c
  24995. 800ae08: 58025430 .word 0x58025430
  24996. 800ae0c: 58025444 .word 0x58025444
  24997. 800ae10: 58025458 .word 0x58025458
  24998. 800ae14: 5802546c .word 0x5802546c
  24999. 800ae18: 58025480 .word 0x58025480
  25000. 800ae1c: 58025494 .word 0x58025494
  25001. 800ae20: 1600963f .word 0x1600963f
  25002. 800ae24: 58025940 .word 0x58025940
  25003. 800ae28: 1000823f .word 0x1000823f
  25004. 800ae2c: 40020940 .word 0x40020940
  25005. 0800ae30 <HAL_GPIO_Init>:
  25006. * @param GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
  25007. * the configuration information for the specified GPIO peripheral.
  25008. * @retval None
  25009. */
  25010. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  25011. {
  25012. 800ae30: b480 push {r7}
  25013. 800ae32: b089 sub sp, #36 @ 0x24
  25014. 800ae34: af00 add r7, sp, #0
  25015. 800ae36: 6078 str r0, [r7, #4]
  25016. 800ae38: 6039 str r1, [r7, #0]
  25017. uint32_t position = 0x00U;
  25018. 800ae3a: 2300 movs r3, #0
  25019. 800ae3c: 61fb str r3, [r7, #28]
  25020. EXTI_Core_TypeDef *EXTI_CurrentCPU;
  25021. #if defined(DUAL_CORE) && defined(CORE_CM4)
  25022. EXTI_CurrentCPU = EXTI_D2; /* EXTI for CM4 CPU */
  25023. #else
  25024. EXTI_CurrentCPU = EXTI_D1; /* EXTI for CM7 CPU */
  25025. 800ae3e: 4b89 ldr r3, [pc, #548] @ (800b064 <HAL_GPIO_Init+0x234>)
  25026. 800ae40: 617b str r3, [r7, #20]
  25027. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  25028. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  25029. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  25030. /* Configure the port pins */
  25031. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25032. 800ae42: e194 b.n 800b16e <HAL_GPIO_Init+0x33e>
  25033. {
  25034. /* Get current io position */
  25035. iocurrent = (GPIO_Init->Pin) & (1UL << position);
  25036. 800ae44: 683b ldr r3, [r7, #0]
  25037. 800ae46: 681a ldr r2, [r3, #0]
  25038. 800ae48: 2101 movs r1, #1
  25039. 800ae4a: 69fb ldr r3, [r7, #28]
  25040. 800ae4c: fa01 f303 lsl.w r3, r1, r3
  25041. 800ae50: 4013 ands r3, r2
  25042. 800ae52: 613b str r3, [r7, #16]
  25043. if (iocurrent != 0x00U)
  25044. 800ae54: 693b ldr r3, [r7, #16]
  25045. 800ae56: 2b00 cmp r3, #0
  25046. 800ae58: f000 8186 beq.w 800b168 <HAL_GPIO_Init+0x338>
  25047. {
  25048. /*--------------------- GPIO Mode Configuration ------------------------*/
  25049. /* In case of Output or Alternate function mode selection */
  25050. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  25051. 800ae5c: 683b ldr r3, [r7, #0]
  25052. 800ae5e: 685b ldr r3, [r3, #4]
  25053. 800ae60: f003 0303 and.w r3, r3, #3
  25054. 800ae64: 2b01 cmp r3, #1
  25055. 800ae66: d005 beq.n 800ae74 <HAL_GPIO_Init+0x44>
  25056. 800ae68: 683b ldr r3, [r7, #0]
  25057. 800ae6a: 685b ldr r3, [r3, #4]
  25058. 800ae6c: f003 0303 and.w r3, r3, #3
  25059. 800ae70: 2b02 cmp r3, #2
  25060. 800ae72: d130 bne.n 800aed6 <HAL_GPIO_Init+0xa6>
  25061. {
  25062. /* Check the Speed parameter */
  25063. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  25064. /* Configure the IO Speed */
  25065. temp = GPIOx->OSPEEDR;
  25066. 800ae74: 687b ldr r3, [r7, #4]
  25067. 800ae76: 689b ldr r3, [r3, #8]
  25068. 800ae78: 61bb str r3, [r7, #24]
  25069. temp &= ~(GPIO_OSPEEDR_OSPEED0 << (position * 2U));
  25070. 800ae7a: 69fb ldr r3, [r7, #28]
  25071. 800ae7c: 005b lsls r3, r3, #1
  25072. 800ae7e: 2203 movs r2, #3
  25073. 800ae80: fa02 f303 lsl.w r3, r2, r3
  25074. 800ae84: 43db mvns r3, r3
  25075. 800ae86: 69ba ldr r2, [r7, #24]
  25076. 800ae88: 4013 ands r3, r2
  25077. 800ae8a: 61bb str r3, [r7, #24]
  25078. temp |= (GPIO_Init->Speed << (position * 2U));
  25079. 800ae8c: 683b ldr r3, [r7, #0]
  25080. 800ae8e: 68da ldr r2, [r3, #12]
  25081. 800ae90: 69fb ldr r3, [r7, #28]
  25082. 800ae92: 005b lsls r3, r3, #1
  25083. 800ae94: fa02 f303 lsl.w r3, r2, r3
  25084. 800ae98: 69ba ldr r2, [r7, #24]
  25085. 800ae9a: 4313 orrs r3, r2
  25086. 800ae9c: 61bb str r3, [r7, #24]
  25087. GPIOx->OSPEEDR = temp;
  25088. 800ae9e: 687b ldr r3, [r7, #4]
  25089. 800aea0: 69ba ldr r2, [r7, #24]
  25090. 800aea2: 609a str r2, [r3, #8]
  25091. /* Configure the IO Output Type */
  25092. temp = GPIOx->OTYPER;
  25093. 800aea4: 687b ldr r3, [r7, #4]
  25094. 800aea6: 685b ldr r3, [r3, #4]
  25095. 800aea8: 61bb str r3, [r7, #24]
  25096. temp &= ~(GPIO_OTYPER_OT0 << position) ;
  25097. 800aeaa: 2201 movs r2, #1
  25098. 800aeac: 69fb ldr r3, [r7, #28]
  25099. 800aeae: fa02 f303 lsl.w r3, r2, r3
  25100. 800aeb2: 43db mvns r3, r3
  25101. 800aeb4: 69ba ldr r2, [r7, #24]
  25102. 800aeb6: 4013 ands r3, r2
  25103. 800aeb8: 61bb str r3, [r7, #24]
  25104. temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  25105. 800aeba: 683b ldr r3, [r7, #0]
  25106. 800aebc: 685b ldr r3, [r3, #4]
  25107. 800aebe: 091b lsrs r3, r3, #4
  25108. 800aec0: f003 0201 and.w r2, r3, #1
  25109. 800aec4: 69fb ldr r3, [r7, #28]
  25110. 800aec6: fa02 f303 lsl.w r3, r2, r3
  25111. 800aeca: 69ba ldr r2, [r7, #24]
  25112. 800aecc: 4313 orrs r3, r2
  25113. 800aece: 61bb str r3, [r7, #24]
  25114. GPIOx->OTYPER = temp;
  25115. 800aed0: 687b ldr r3, [r7, #4]
  25116. 800aed2: 69ba ldr r2, [r7, #24]
  25117. 800aed4: 605a str r2, [r3, #4]
  25118. }
  25119. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  25120. 800aed6: 683b ldr r3, [r7, #0]
  25121. 800aed8: 685b ldr r3, [r3, #4]
  25122. 800aeda: f003 0303 and.w r3, r3, #3
  25123. 800aede: 2b03 cmp r3, #3
  25124. 800aee0: d017 beq.n 800af12 <HAL_GPIO_Init+0xe2>
  25125. {
  25126. /* Check the Pull parameter */
  25127. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  25128. /* Activate the Pull-up or Pull down resistor for the current IO */
  25129. temp = GPIOx->PUPDR;
  25130. 800aee2: 687b ldr r3, [r7, #4]
  25131. 800aee4: 68db ldr r3, [r3, #12]
  25132. 800aee6: 61bb str r3, [r7, #24]
  25133. temp &= ~(GPIO_PUPDR_PUPD0 << (position * 2U));
  25134. 800aee8: 69fb ldr r3, [r7, #28]
  25135. 800aeea: 005b lsls r3, r3, #1
  25136. 800aeec: 2203 movs r2, #3
  25137. 800aeee: fa02 f303 lsl.w r3, r2, r3
  25138. 800aef2: 43db mvns r3, r3
  25139. 800aef4: 69ba ldr r2, [r7, #24]
  25140. 800aef6: 4013 ands r3, r2
  25141. 800aef8: 61bb str r3, [r7, #24]
  25142. temp |= ((GPIO_Init->Pull) << (position * 2U));
  25143. 800aefa: 683b ldr r3, [r7, #0]
  25144. 800aefc: 689a ldr r2, [r3, #8]
  25145. 800aefe: 69fb ldr r3, [r7, #28]
  25146. 800af00: 005b lsls r3, r3, #1
  25147. 800af02: fa02 f303 lsl.w r3, r2, r3
  25148. 800af06: 69ba ldr r2, [r7, #24]
  25149. 800af08: 4313 orrs r3, r2
  25150. 800af0a: 61bb str r3, [r7, #24]
  25151. GPIOx->PUPDR = temp;
  25152. 800af0c: 687b ldr r3, [r7, #4]
  25153. 800af0e: 69ba ldr r2, [r7, #24]
  25154. 800af10: 60da str r2, [r3, #12]
  25155. }
  25156. /* In case of Alternate function mode selection */
  25157. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  25158. 800af12: 683b ldr r3, [r7, #0]
  25159. 800af14: 685b ldr r3, [r3, #4]
  25160. 800af16: f003 0303 and.w r3, r3, #3
  25161. 800af1a: 2b02 cmp r3, #2
  25162. 800af1c: d123 bne.n 800af66 <HAL_GPIO_Init+0x136>
  25163. /* Check the Alternate function parameters */
  25164. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  25165. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  25166. /* Configure Alternate function mapped with the current IO */
  25167. temp = GPIOx->AFR[position >> 3U];
  25168. 800af1e: 69fb ldr r3, [r7, #28]
  25169. 800af20: 08da lsrs r2, r3, #3
  25170. 800af22: 687b ldr r3, [r7, #4]
  25171. 800af24: 3208 adds r2, #8
  25172. 800af26: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  25173. 800af2a: 61bb str r3, [r7, #24]
  25174. temp &= ~(0xFU << ((position & 0x07U) * 4U));
  25175. 800af2c: 69fb ldr r3, [r7, #28]
  25176. 800af2e: f003 0307 and.w r3, r3, #7
  25177. 800af32: 009b lsls r3, r3, #2
  25178. 800af34: 220f movs r2, #15
  25179. 800af36: fa02 f303 lsl.w r3, r2, r3
  25180. 800af3a: 43db mvns r3, r3
  25181. 800af3c: 69ba ldr r2, [r7, #24]
  25182. 800af3e: 4013 ands r3, r2
  25183. 800af40: 61bb str r3, [r7, #24]
  25184. temp |= ((GPIO_Init->Alternate) << ((position & 0x07U) * 4U));
  25185. 800af42: 683b ldr r3, [r7, #0]
  25186. 800af44: 691a ldr r2, [r3, #16]
  25187. 800af46: 69fb ldr r3, [r7, #28]
  25188. 800af48: f003 0307 and.w r3, r3, #7
  25189. 800af4c: 009b lsls r3, r3, #2
  25190. 800af4e: fa02 f303 lsl.w r3, r2, r3
  25191. 800af52: 69ba ldr r2, [r7, #24]
  25192. 800af54: 4313 orrs r3, r2
  25193. 800af56: 61bb str r3, [r7, #24]
  25194. GPIOx->AFR[position >> 3U] = temp;
  25195. 800af58: 69fb ldr r3, [r7, #28]
  25196. 800af5a: 08da lsrs r2, r3, #3
  25197. 800af5c: 687b ldr r3, [r7, #4]
  25198. 800af5e: 3208 adds r2, #8
  25199. 800af60: 69b9 ldr r1, [r7, #24]
  25200. 800af62: f843 1022 str.w r1, [r3, r2, lsl #2]
  25201. }
  25202. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  25203. temp = GPIOx->MODER;
  25204. 800af66: 687b ldr r3, [r7, #4]
  25205. 800af68: 681b ldr r3, [r3, #0]
  25206. 800af6a: 61bb str r3, [r7, #24]
  25207. temp &= ~(GPIO_MODER_MODE0 << (position * 2U));
  25208. 800af6c: 69fb ldr r3, [r7, #28]
  25209. 800af6e: 005b lsls r3, r3, #1
  25210. 800af70: 2203 movs r2, #3
  25211. 800af72: fa02 f303 lsl.w r3, r2, r3
  25212. 800af76: 43db mvns r3, r3
  25213. 800af78: 69ba ldr r2, [r7, #24]
  25214. 800af7a: 4013 ands r3, r2
  25215. 800af7c: 61bb str r3, [r7, #24]
  25216. temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
  25217. 800af7e: 683b ldr r3, [r7, #0]
  25218. 800af80: 685b ldr r3, [r3, #4]
  25219. 800af82: f003 0203 and.w r2, r3, #3
  25220. 800af86: 69fb ldr r3, [r7, #28]
  25221. 800af88: 005b lsls r3, r3, #1
  25222. 800af8a: fa02 f303 lsl.w r3, r2, r3
  25223. 800af8e: 69ba ldr r2, [r7, #24]
  25224. 800af90: 4313 orrs r3, r2
  25225. 800af92: 61bb str r3, [r7, #24]
  25226. GPIOx->MODER = temp;
  25227. 800af94: 687b ldr r3, [r7, #4]
  25228. 800af96: 69ba ldr r2, [r7, #24]
  25229. 800af98: 601a str r2, [r3, #0]
  25230. /*--------------------- EXTI Mode Configuration ------------------------*/
  25231. /* Configure the External Interrupt or event for the current IO */
  25232. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  25233. 800af9a: 683b ldr r3, [r7, #0]
  25234. 800af9c: 685b ldr r3, [r3, #4]
  25235. 800af9e: f403 3340 and.w r3, r3, #196608 @ 0x30000
  25236. 800afa2: 2b00 cmp r3, #0
  25237. 800afa4: f000 80e0 beq.w 800b168 <HAL_GPIO_Init+0x338>
  25238. {
  25239. /* Enable SYSCFG Clock */
  25240. __HAL_RCC_SYSCFG_CLK_ENABLE();
  25241. 800afa8: 4b2f ldr r3, [pc, #188] @ (800b068 <HAL_GPIO_Init+0x238>)
  25242. 800afaa: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25243. 800afae: 4a2e ldr r2, [pc, #184] @ (800b068 <HAL_GPIO_Init+0x238>)
  25244. 800afb0: f043 0302 orr.w r3, r3, #2
  25245. 800afb4: f8c2 30f4 str.w r3, [r2, #244] @ 0xf4
  25246. 800afb8: 4b2b ldr r3, [pc, #172] @ (800b068 <HAL_GPIO_Init+0x238>)
  25247. 800afba: f8d3 30f4 ldr.w r3, [r3, #244] @ 0xf4
  25248. 800afbe: f003 0302 and.w r3, r3, #2
  25249. 800afc2: 60fb str r3, [r7, #12]
  25250. 800afc4: 68fb ldr r3, [r7, #12]
  25251. temp = SYSCFG->EXTICR[position >> 2U];
  25252. 800afc6: 4a29 ldr r2, [pc, #164] @ (800b06c <HAL_GPIO_Init+0x23c>)
  25253. 800afc8: 69fb ldr r3, [r7, #28]
  25254. 800afca: 089b lsrs r3, r3, #2
  25255. 800afcc: 3302 adds r3, #2
  25256. 800afce: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  25257. 800afd2: 61bb str r3, [r7, #24]
  25258. temp &= ~(0x0FUL << (4U * (position & 0x03U)));
  25259. 800afd4: 69fb ldr r3, [r7, #28]
  25260. 800afd6: f003 0303 and.w r3, r3, #3
  25261. 800afda: 009b lsls r3, r3, #2
  25262. 800afdc: 220f movs r2, #15
  25263. 800afde: fa02 f303 lsl.w r3, r2, r3
  25264. 800afe2: 43db mvns r3, r3
  25265. 800afe4: 69ba ldr r2, [r7, #24]
  25266. 800afe6: 4013 ands r3, r2
  25267. 800afe8: 61bb str r3, [r7, #24]
  25268. temp |= (GPIO_GET_INDEX(GPIOx) << (4U * (position & 0x03U)));
  25269. 800afea: 687b ldr r3, [r7, #4]
  25270. 800afec: 4a20 ldr r2, [pc, #128] @ (800b070 <HAL_GPIO_Init+0x240>)
  25271. 800afee: 4293 cmp r3, r2
  25272. 800aff0: d052 beq.n 800b098 <HAL_GPIO_Init+0x268>
  25273. 800aff2: 687b ldr r3, [r7, #4]
  25274. 800aff4: 4a1f ldr r2, [pc, #124] @ (800b074 <HAL_GPIO_Init+0x244>)
  25275. 800aff6: 4293 cmp r3, r2
  25276. 800aff8: d031 beq.n 800b05e <HAL_GPIO_Init+0x22e>
  25277. 800affa: 687b ldr r3, [r7, #4]
  25278. 800affc: 4a1e ldr r2, [pc, #120] @ (800b078 <HAL_GPIO_Init+0x248>)
  25279. 800affe: 4293 cmp r3, r2
  25280. 800b000: d02b beq.n 800b05a <HAL_GPIO_Init+0x22a>
  25281. 800b002: 687b ldr r3, [r7, #4]
  25282. 800b004: 4a1d ldr r2, [pc, #116] @ (800b07c <HAL_GPIO_Init+0x24c>)
  25283. 800b006: 4293 cmp r3, r2
  25284. 800b008: d025 beq.n 800b056 <HAL_GPIO_Init+0x226>
  25285. 800b00a: 687b ldr r3, [r7, #4]
  25286. 800b00c: 4a1c ldr r2, [pc, #112] @ (800b080 <HAL_GPIO_Init+0x250>)
  25287. 800b00e: 4293 cmp r3, r2
  25288. 800b010: d01f beq.n 800b052 <HAL_GPIO_Init+0x222>
  25289. 800b012: 687b ldr r3, [r7, #4]
  25290. 800b014: 4a1b ldr r2, [pc, #108] @ (800b084 <HAL_GPIO_Init+0x254>)
  25291. 800b016: 4293 cmp r3, r2
  25292. 800b018: d019 beq.n 800b04e <HAL_GPIO_Init+0x21e>
  25293. 800b01a: 687b ldr r3, [r7, #4]
  25294. 800b01c: 4a1a ldr r2, [pc, #104] @ (800b088 <HAL_GPIO_Init+0x258>)
  25295. 800b01e: 4293 cmp r3, r2
  25296. 800b020: d013 beq.n 800b04a <HAL_GPIO_Init+0x21a>
  25297. 800b022: 687b ldr r3, [r7, #4]
  25298. 800b024: 4a19 ldr r2, [pc, #100] @ (800b08c <HAL_GPIO_Init+0x25c>)
  25299. 800b026: 4293 cmp r3, r2
  25300. 800b028: d00d beq.n 800b046 <HAL_GPIO_Init+0x216>
  25301. 800b02a: 687b ldr r3, [r7, #4]
  25302. 800b02c: 4a18 ldr r2, [pc, #96] @ (800b090 <HAL_GPIO_Init+0x260>)
  25303. 800b02e: 4293 cmp r3, r2
  25304. 800b030: d007 beq.n 800b042 <HAL_GPIO_Init+0x212>
  25305. 800b032: 687b ldr r3, [r7, #4]
  25306. 800b034: 4a17 ldr r2, [pc, #92] @ (800b094 <HAL_GPIO_Init+0x264>)
  25307. 800b036: 4293 cmp r3, r2
  25308. 800b038: d101 bne.n 800b03e <HAL_GPIO_Init+0x20e>
  25309. 800b03a: 2309 movs r3, #9
  25310. 800b03c: e02d b.n 800b09a <HAL_GPIO_Init+0x26a>
  25311. 800b03e: 230a movs r3, #10
  25312. 800b040: e02b b.n 800b09a <HAL_GPIO_Init+0x26a>
  25313. 800b042: 2308 movs r3, #8
  25314. 800b044: e029 b.n 800b09a <HAL_GPIO_Init+0x26a>
  25315. 800b046: 2307 movs r3, #7
  25316. 800b048: e027 b.n 800b09a <HAL_GPIO_Init+0x26a>
  25317. 800b04a: 2306 movs r3, #6
  25318. 800b04c: e025 b.n 800b09a <HAL_GPIO_Init+0x26a>
  25319. 800b04e: 2305 movs r3, #5
  25320. 800b050: e023 b.n 800b09a <HAL_GPIO_Init+0x26a>
  25321. 800b052: 2304 movs r3, #4
  25322. 800b054: e021 b.n 800b09a <HAL_GPIO_Init+0x26a>
  25323. 800b056: 2303 movs r3, #3
  25324. 800b058: e01f b.n 800b09a <HAL_GPIO_Init+0x26a>
  25325. 800b05a: 2302 movs r3, #2
  25326. 800b05c: e01d b.n 800b09a <HAL_GPIO_Init+0x26a>
  25327. 800b05e: 2301 movs r3, #1
  25328. 800b060: e01b b.n 800b09a <HAL_GPIO_Init+0x26a>
  25329. 800b062: bf00 nop
  25330. 800b064: 58000080 .word 0x58000080
  25331. 800b068: 58024400 .word 0x58024400
  25332. 800b06c: 58000400 .word 0x58000400
  25333. 800b070: 58020000 .word 0x58020000
  25334. 800b074: 58020400 .word 0x58020400
  25335. 800b078: 58020800 .word 0x58020800
  25336. 800b07c: 58020c00 .word 0x58020c00
  25337. 800b080: 58021000 .word 0x58021000
  25338. 800b084: 58021400 .word 0x58021400
  25339. 800b088: 58021800 .word 0x58021800
  25340. 800b08c: 58021c00 .word 0x58021c00
  25341. 800b090: 58022000 .word 0x58022000
  25342. 800b094: 58022400 .word 0x58022400
  25343. 800b098: 2300 movs r3, #0
  25344. 800b09a: 69fa ldr r2, [r7, #28]
  25345. 800b09c: f002 0203 and.w r2, r2, #3
  25346. 800b0a0: 0092 lsls r2, r2, #2
  25347. 800b0a2: 4093 lsls r3, r2
  25348. 800b0a4: 69ba ldr r2, [r7, #24]
  25349. 800b0a6: 4313 orrs r3, r2
  25350. 800b0a8: 61bb str r3, [r7, #24]
  25351. SYSCFG->EXTICR[position >> 2U] = temp;
  25352. 800b0aa: 4938 ldr r1, [pc, #224] @ (800b18c <HAL_GPIO_Init+0x35c>)
  25353. 800b0ac: 69fb ldr r3, [r7, #28]
  25354. 800b0ae: 089b lsrs r3, r3, #2
  25355. 800b0b0: 3302 adds r3, #2
  25356. 800b0b2: 69ba ldr r2, [r7, #24]
  25357. 800b0b4: f841 2023 str.w r2, [r1, r3, lsl #2]
  25358. /* Clear Rising Falling edge configuration */
  25359. temp = EXTI->RTSR1;
  25360. 800b0b8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25361. 800b0bc: 681b ldr r3, [r3, #0]
  25362. 800b0be: 61bb str r3, [r7, #24]
  25363. temp &= ~(iocurrent);
  25364. 800b0c0: 693b ldr r3, [r7, #16]
  25365. 800b0c2: 43db mvns r3, r3
  25366. 800b0c4: 69ba ldr r2, [r7, #24]
  25367. 800b0c6: 4013 ands r3, r2
  25368. 800b0c8: 61bb str r3, [r7, #24]
  25369. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  25370. 800b0ca: 683b ldr r3, [r7, #0]
  25371. 800b0cc: 685b ldr r3, [r3, #4]
  25372. 800b0ce: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  25373. 800b0d2: 2b00 cmp r3, #0
  25374. 800b0d4: d003 beq.n 800b0de <HAL_GPIO_Init+0x2ae>
  25375. {
  25376. temp |= iocurrent;
  25377. 800b0d6: 69ba ldr r2, [r7, #24]
  25378. 800b0d8: 693b ldr r3, [r7, #16]
  25379. 800b0da: 4313 orrs r3, r2
  25380. 800b0dc: 61bb str r3, [r7, #24]
  25381. }
  25382. EXTI->RTSR1 = temp;
  25383. 800b0de: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25384. 800b0e2: 69bb ldr r3, [r7, #24]
  25385. 800b0e4: 6013 str r3, [r2, #0]
  25386. temp = EXTI->FTSR1;
  25387. 800b0e6: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25388. 800b0ea: 685b ldr r3, [r3, #4]
  25389. 800b0ec: 61bb str r3, [r7, #24]
  25390. temp &= ~(iocurrent);
  25391. 800b0ee: 693b ldr r3, [r7, #16]
  25392. 800b0f0: 43db mvns r3, r3
  25393. 800b0f2: 69ba ldr r2, [r7, #24]
  25394. 800b0f4: 4013 ands r3, r2
  25395. 800b0f6: 61bb str r3, [r7, #24]
  25396. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  25397. 800b0f8: 683b ldr r3, [r7, #0]
  25398. 800b0fa: 685b ldr r3, [r3, #4]
  25399. 800b0fc: f403 1300 and.w r3, r3, #2097152 @ 0x200000
  25400. 800b100: 2b00 cmp r3, #0
  25401. 800b102: d003 beq.n 800b10c <HAL_GPIO_Init+0x2dc>
  25402. {
  25403. temp |= iocurrent;
  25404. 800b104: 69ba ldr r2, [r7, #24]
  25405. 800b106: 693b ldr r3, [r7, #16]
  25406. 800b108: 4313 orrs r3, r2
  25407. 800b10a: 61bb str r3, [r7, #24]
  25408. }
  25409. EXTI->FTSR1 = temp;
  25410. 800b10c: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25411. 800b110: 69bb ldr r3, [r7, #24]
  25412. 800b112: 6053 str r3, [r2, #4]
  25413. temp = EXTI_CurrentCPU->EMR1;
  25414. 800b114: 697b ldr r3, [r7, #20]
  25415. 800b116: 685b ldr r3, [r3, #4]
  25416. 800b118: 61bb str r3, [r7, #24]
  25417. temp &= ~(iocurrent);
  25418. 800b11a: 693b ldr r3, [r7, #16]
  25419. 800b11c: 43db mvns r3, r3
  25420. 800b11e: 69ba ldr r2, [r7, #24]
  25421. 800b120: 4013 ands r3, r2
  25422. 800b122: 61bb str r3, [r7, #24]
  25423. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  25424. 800b124: 683b ldr r3, [r7, #0]
  25425. 800b126: 685b ldr r3, [r3, #4]
  25426. 800b128: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25427. 800b12c: 2b00 cmp r3, #0
  25428. 800b12e: d003 beq.n 800b138 <HAL_GPIO_Init+0x308>
  25429. {
  25430. temp |= iocurrent;
  25431. 800b130: 69ba ldr r2, [r7, #24]
  25432. 800b132: 693b ldr r3, [r7, #16]
  25433. 800b134: 4313 orrs r3, r2
  25434. 800b136: 61bb str r3, [r7, #24]
  25435. }
  25436. EXTI_CurrentCPU->EMR1 = temp;
  25437. 800b138: 697b ldr r3, [r7, #20]
  25438. 800b13a: 69ba ldr r2, [r7, #24]
  25439. 800b13c: 605a str r2, [r3, #4]
  25440. /* Clear EXTI line configuration */
  25441. temp = EXTI_CurrentCPU->IMR1;
  25442. 800b13e: 697b ldr r3, [r7, #20]
  25443. 800b140: 681b ldr r3, [r3, #0]
  25444. 800b142: 61bb str r3, [r7, #24]
  25445. temp &= ~(iocurrent);
  25446. 800b144: 693b ldr r3, [r7, #16]
  25447. 800b146: 43db mvns r3, r3
  25448. 800b148: 69ba ldr r2, [r7, #24]
  25449. 800b14a: 4013 ands r3, r2
  25450. 800b14c: 61bb str r3, [r7, #24]
  25451. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  25452. 800b14e: 683b ldr r3, [r7, #0]
  25453. 800b150: 685b ldr r3, [r3, #4]
  25454. 800b152: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25455. 800b156: 2b00 cmp r3, #0
  25456. 800b158: d003 beq.n 800b162 <HAL_GPIO_Init+0x332>
  25457. {
  25458. temp |= iocurrent;
  25459. 800b15a: 69ba ldr r2, [r7, #24]
  25460. 800b15c: 693b ldr r3, [r7, #16]
  25461. 800b15e: 4313 orrs r3, r2
  25462. 800b160: 61bb str r3, [r7, #24]
  25463. }
  25464. EXTI_CurrentCPU->IMR1 = temp;
  25465. 800b162: 697b ldr r3, [r7, #20]
  25466. 800b164: 69ba ldr r2, [r7, #24]
  25467. 800b166: 601a str r2, [r3, #0]
  25468. }
  25469. }
  25470. position++;
  25471. 800b168: 69fb ldr r3, [r7, #28]
  25472. 800b16a: 3301 adds r3, #1
  25473. 800b16c: 61fb str r3, [r7, #28]
  25474. while (((GPIO_Init->Pin) >> position) != 0x00U)
  25475. 800b16e: 683b ldr r3, [r7, #0]
  25476. 800b170: 681a ldr r2, [r3, #0]
  25477. 800b172: 69fb ldr r3, [r7, #28]
  25478. 800b174: fa22 f303 lsr.w r3, r2, r3
  25479. 800b178: 2b00 cmp r3, #0
  25480. 800b17a: f47f ae63 bne.w 800ae44 <HAL_GPIO_Init+0x14>
  25481. }
  25482. }
  25483. 800b17e: bf00 nop
  25484. 800b180: bf00 nop
  25485. 800b182: 3724 adds r7, #36 @ 0x24
  25486. 800b184: 46bd mov sp, r7
  25487. 800b186: f85d 7b04 ldr.w r7, [sp], #4
  25488. 800b18a: 4770 bx lr
  25489. 800b18c: 58000400 .word 0x58000400
  25490. 0800b190 <HAL_GPIO_ReadPin>:
  25491. * @param GPIO_Pin: specifies the port bit to read.
  25492. * This parameter can be GPIO_PIN_x where x can be (0..15).
  25493. * @retval The input port pin value.
  25494. */
  25495. GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25496. {
  25497. 800b190: b480 push {r7}
  25498. 800b192: b085 sub sp, #20
  25499. 800b194: af00 add r7, sp, #0
  25500. 800b196: 6078 str r0, [r7, #4]
  25501. 800b198: 460b mov r3, r1
  25502. 800b19a: 807b strh r3, [r7, #2]
  25503. GPIO_PinState bitstatus;
  25504. /* Check the parameters */
  25505. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25506. if ((GPIOx->IDR & GPIO_Pin) != 0x00U)
  25507. 800b19c: 687b ldr r3, [r7, #4]
  25508. 800b19e: 691a ldr r2, [r3, #16]
  25509. 800b1a0: 887b ldrh r3, [r7, #2]
  25510. 800b1a2: 4013 ands r3, r2
  25511. 800b1a4: 2b00 cmp r3, #0
  25512. 800b1a6: d002 beq.n 800b1ae <HAL_GPIO_ReadPin+0x1e>
  25513. {
  25514. bitstatus = GPIO_PIN_SET;
  25515. 800b1a8: 2301 movs r3, #1
  25516. 800b1aa: 73fb strb r3, [r7, #15]
  25517. 800b1ac: e001 b.n 800b1b2 <HAL_GPIO_ReadPin+0x22>
  25518. }
  25519. else
  25520. {
  25521. bitstatus = GPIO_PIN_RESET;
  25522. 800b1ae: 2300 movs r3, #0
  25523. 800b1b0: 73fb strb r3, [r7, #15]
  25524. }
  25525. return bitstatus;
  25526. 800b1b2: 7bfb ldrb r3, [r7, #15]
  25527. }
  25528. 800b1b4: 4618 mov r0, r3
  25529. 800b1b6: 3714 adds r7, #20
  25530. 800b1b8: 46bd mov sp, r7
  25531. 800b1ba: f85d 7b04 ldr.w r7, [sp], #4
  25532. 800b1be: 4770 bx lr
  25533. 0800b1c0 <HAL_GPIO_WritePin>:
  25534. * @arg GPIO_PIN_RESET: to clear the port pin
  25535. * @arg GPIO_PIN_SET: to set the port pin
  25536. * @retval None
  25537. */
  25538. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  25539. {
  25540. 800b1c0: b480 push {r7}
  25541. 800b1c2: b083 sub sp, #12
  25542. 800b1c4: af00 add r7, sp, #0
  25543. 800b1c6: 6078 str r0, [r7, #4]
  25544. 800b1c8: 460b mov r3, r1
  25545. 800b1ca: 807b strh r3, [r7, #2]
  25546. 800b1cc: 4613 mov r3, r2
  25547. 800b1ce: 707b strb r3, [r7, #1]
  25548. /* Check the parameters */
  25549. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25550. assert_param(IS_GPIO_PIN_ACTION(PinState));
  25551. if (PinState != GPIO_PIN_RESET)
  25552. 800b1d0: 787b ldrb r3, [r7, #1]
  25553. 800b1d2: 2b00 cmp r3, #0
  25554. 800b1d4: d003 beq.n 800b1de <HAL_GPIO_WritePin+0x1e>
  25555. {
  25556. GPIOx->BSRR = GPIO_Pin;
  25557. 800b1d6: 887a ldrh r2, [r7, #2]
  25558. 800b1d8: 687b ldr r3, [r7, #4]
  25559. 800b1da: 619a str r2, [r3, #24]
  25560. }
  25561. else
  25562. {
  25563. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25564. }
  25565. }
  25566. 800b1dc: e003 b.n 800b1e6 <HAL_GPIO_WritePin+0x26>
  25567. GPIOx->BSRR = (uint32_t)GPIO_Pin << GPIO_NUMBER;
  25568. 800b1de: 887b ldrh r3, [r7, #2]
  25569. 800b1e0: 041a lsls r2, r3, #16
  25570. 800b1e2: 687b ldr r3, [r7, #4]
  25571. 800b1e4: 619a str r2, [r3, #24]
  25572. }
  25573. 800b1e6: bf00 nop
  25574. 800b1e8: 370c adds r7, #12
  25575. 800b1ea: 46bd mov sp, r7
  25576. 800b1ec: f85d 7b04 ldr.w r7, [sp], #4
  25577. 800b1f0: 4770 bx lr
  25578. 0800b1f2 <HAL_GPIO_TogglePin>:
  25579. * @param GPIOx: Where x can be (A..K) to select the GPIO peripheral.
  25580. * @param GPIO_Pin: Specifies the pins to be toggled.
  25581. * @retval None
  25582. */
  25583. void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
  25584. {
  25585. 800b1f2: b480 push {r7}
  25586. 800b1f4: b085 sub sp, #20
  25587. 800b1f6: af00 add r7, sp, #0
  25588. 800b1f8: 6078 str r0, [r7, #4]
  25589. 800b1fa: 460b mov r3, r1
  25590. 800b1fc: 807b strh r3, [r7, #2]
  25591. /* Check the parameters */
  25592. assert_param(IS_GPIO_PIN(GPIO_Pin));
  25593. /* get current Output Data Register value */
  25594. odr = GPIOx->ODR;
  25595. 800b1fe: 687b ldr r3, [r7, #4]
  25596. 800b200: 695b ldr r3, [r3, #20]
  25597. 800b202: 60fb str r3, [r7, #12]
  25598. /* Set selected pins that were at low level, and reset ones that were high */
  25599. GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
  25600. 800b204: 887a ldrh r2, [r7, #2]
  25601. 800b206: 68fb ldr r3, [r7, #12]
  25602. 800b208: 4013 ands r3, r2
  25603. 800b20a: 041a lsls r2, r3, #16
  25604. 800b20c: 68fb ldr r3, [r7, #12]
  25605. 800b20e: 43d9 mvns r1, r3
  25606. 800b210: 887b ldrh r3, [r7, #2]
  25607. 800b212: 400b ands r3, r1
  25608. 800b214: 431a orrs r2, r3
  25609. 800b216: 687b ldr r3, [r7, #4]
  25610. 800b218: 619a str r2, [r3, #24]
  25611. }
  25612. 800b21a: bf00 nop
  25613. 800b21c: 3714 adds r7, #20
  25614. 800b21e: 46bd mov sp, r7
  25615. 800b220: f85d 7b04 ldr.w r7, [sp], #4
  25616. 800b224: 4770 bx lr
  25617. 0800b226 <HAL_GPIO_EXTI_IRQHandler>:
  25618. * @brief Handle EXTI interrupt request.
  25619. * @param GPIO_Pin: Specifies the port pin connected to corresponding EXTI line.
  25620. * @retval None
  25621. */
  25622. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  25623. {
  25624. 800b226: b580 push {r7, lr}
  25625. 800b228: b082 sub sp, #8
  25626. 800b22a: af00 add r7, sp, #0
  25627. 800b22c: 4603 mov r3, r0
  25628. 800b22e: 80fb strh r3, [r7, #6]
  25629. __HAL_GPIO_EXTID2_CLEAR_IT(GPIO_Pin);
  25630. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  25631. }
  25632. #else
  25633. /* EXTI line interrupt detected */
  25634. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != 0x00U)
  25635. 800b230: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25636. 800b234: f8d3 2088 ldr.w r2, [r3, #136] @ 0x88
  25637. 800b238: 88fb ldrh r3, [r7, #6]
  25638. 800b23a: 4013 ands r3, r2
  25639. 800b23c: 2b00 cmp r3, #0
  25640. 800b23e: d008 beq.n 800b252 <HAL_GPIO_EXTI_IRQHandler+0x2c>
  25641. {
  25642. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  25643. 800b240: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25644. 800b244: 88fb ldrh r3, [r7, #6]
  25645. 800b246: f8c2 3088 str.w r3, [r2, #136] @ 0x88
  25646. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  25647. 800b24a: 88fb ldrh r3, [r7, #6]
  25648. 800b24c: 4618 mov r0, r3
  25649. 800b24e: f7f5 fa6d bl 800072c <HAL_GPIO_EXTI_Callback>
  25650. }
  25651. #endif
  25652. }
  25653. 800b252: bf00 nop
  25654. 800b254: 3708 adds r7, #8
  25655. 800b256: 46bd mov sp, r7
  25656. 800b258: bd80 pop {r7, pc}
  25657. 0800b25a <HAL_IWDG_Init>:
  25658. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  25659. * the configuration information for the specified IWDG module.
  25660. * @retval HAL status
  25661. */
  25662. HAL_StatusTypeDef HAL_IWDG_Init(IWDG_HandleTypeDef *hiwdg)
  25663. {
  25664. 800b25a: b580 push {r7, lr}
  25665. 800b25c: b084 sub sp, #16
  25666. 800b25e: af00 add r7, sp, #0
  25667. 800b260: 6078 str r0, [r7, #4]
  25668. uint32_t tickstart;
  25669. /* Check the IWDG handle allocation */
  25670. if (hiwdg == NULL)
  25671. 800b262: 687b ldr r3, [r7, #4]
  25672. 800b264: 2b00 cmp r3, #0
  25673. 800b266: d101 bne.n 800b26c <HAL_IWDG_Init+0x12>
  25674. {
  25675. return HAL_ERROR;
  25676. 800b268: 2301 movs r3, #1
  25677. 800b26a: e041 b.n 800b2f0 <HAL_IWDG_Init+0x96>
  25678. assert_param(IS_IWDG_PRESCALER(hiwdg->Init.Prescaler));
  25679. assert_param(IS_IWDG_RELOAD(hiwdg->Init.Reload));
  25680. assert_param(IS_IWDG_WINDOW(hiwdg->Init.Window));
  25681. /* Enable IWDG. LSI is turned on automatically */
  25682. __HAL_IWDG_START(hiwdg);
  25683. 800b26c: 687b ldr r3, [r7, #4]
  25684. 800b26e: 681b ldr r3, [r3, #0]
  25685. 800b270: f64c 42cc movw r2, #52428 @ 0xcccc
  25686. 800b274: 601a str r2, [r3, #0]
  25687. /* Enable write access to IWDG_PR, IWDG_RLR and IWDG_WINR registers by writing
  25688. 0x5555 in KR */
  25689. IWDG_ENABLE_WRITE_ACCESS(hiwdg);
  25690. 800b276: 687b ldr r3, [r7, #4]
  25691. 800b278: 681b ldr r3, [r3, #0]
  25692. 800b27a: f245 5255 movw r2, #21845 @ 0x5555
  25693. 800b27e: 601a str r2, [r3, #0]
  25694. /* Write to IWDG registers the Prescaler & Reload values to work with */
  25695. hiwdg->Instance->PR = hiwdg->Init.Prescaler;
  25696. 800b280: 687b ldr r3, [r7, #4]
  25697. 800b282: 681b ldr r3, [r3, #0]
  25698. 800b284: 687a ldr r2, [r7, #4]
  25699. 800b286: 6852 ldr r2, [r2, #4]
  25700. 800b288: 605a str r2, [r3, #4]
  25701. hiwdg->Instance->RLR = hiwdg->Init.Reload;
  25702. 800b28a: 687b ldr r3, [r7, #4]
  25703. 800b28c: 681b ldr r3, [r3, #0]
  25704. 800b28e: 687a ldr r2, [r7, #4]
  25705. 800b290: 6892 ldr r2, [r2, #8]
  25706. 800b292: 609a str r2, [r3, #8]
  25707. /* Check pending flag, if previous update not done, return timeout */
  25708. tickstart = HAL_GetTick();
  25709. 800b294: f7fa fb02 bl 800589c <HAL_GetTick>
  25710. 800b298: 60f8 str r0, [r7, #12]
  25711. /* Wait for register to be updated */
  25712. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25713. 800b29a: e00f b.n 800b2bc <HAL_IWDG_Init+0x62>
  25714. {
  25715. if ((HAL_GetTick() - tickstart) > HAL_IWDG_DEFAULT_TIMEOUT)
  25716. 800b29c: f7fa fafe bl 800589c <HAL_GetTick>
  25717. 800b2a0: 4602 mov r2, r0
  25718. 800b2a2: 68fb ldr r3, [r7, #12]
  25719. 800b2a4: 1ad3 subs r3, r2, r3
  25720. 800b2a6: 2b31 cmp r3, #49 @ 0x31
  25721. 800b2a8: d908 bls.n 800b2bc <HAL_IWDG_Init+0x62>
  25722. {
  25723. if ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25724. 800b2aa: 687b ldr r3, [r7, #4]
  25725. 800b2ac: 681b ldr r3, [r3, #0]
  25726. 800b2ae: 68db ldr r3, [r3, #12]
  25727. 800b2b0: f003 0307 and.w r3, r3, #7
  25728. 800b2b4: 2b00 cmp r3, #0
  25729. 800b2b6: d001 beq.n 800b2bc <HAL_IWDG_Init+0x62>
  25730. {
  25731. return HAL_TIMEOUT;
  25732. 800b2b8: 2303 movs r3, #3
  25733. 800b2ba: e019 b.n 800b2f0 <HAL_IWDG_Init+0x96>
  25734. while ((hiwdg->Instance->SR & IWDG_KERNEL_UPDATE_FLAGS) != 0x00u)
  25735. 800b2bc: 687b ldr r3, [r7, #4]
  25736. 800b2be: 681b ldr r3, [r3, #0]
  25737. 800b2c0: 68db ldr r3, [r3, #12]
  25738. 800b2c2: f003 0307 and.w r3, r3, #7
  25739. 800b2c6: 2b00 cmp r3, #0
  25740. 800b2c8: d1e8 bne.n 800b29c <HAL_IWDG_Init+0x42>
  25741. }
  25742. }
  25743. /* If window parameter is different than current value, modify window
  25744. register */
  25745. if (hiwdg->Instance->WINR != hiwdg->Init.Window)
  25746. 800b2ca: 687b ldr r3, [r7, #4]
  25747. 800b2cc: 681b ldr r3, [r3, #0]
  25748. 800b2ce: 691a ldr r2, [r3, #16]
  25749. 800b2d0: 687b ldr r3, [r7, #4]
  25750. 800b2d2: 68db ldr r3, [r3, #12]
  25751. 800b2d4: 429a cmp r2, r3
  25752. 800b2d6: d005 beq.n 800b2e4 <HAL_IWDG_Init+0x8a>
  25753. {
  25754. /* Write to IWDG WINR the IWDG_Window value to compare with. In any case,
  25755. even if window feature is disabled, Watchdog will be reloaded by writing
  25756. windows register */
  25757. hiwdg->Instance->WINR = hiwdg->Init.Window;
  25758. 800b2d8: 687b ldr r3, [r7, #4]
  25759. 800b2da: 681b ldr r3, [r3, #0]
  25760. 800b2dc: 687a ldr r2, [r7, #4]
  25761. 800b2de: 68d2 ldr r2, [r2, #12]
  25762. 800b2e0: 611a str r2, [r3, #16]
  25763. 800b2e2: e004 b.n 800b2ee <HAL_IWDG_Init+0x94>
  25764. }
  25765. else
  25766. {
  25767. /* Reload IWDG counter with value defined in the reload register */
  25768. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  25769. 800b2e4: 687b ldr r3, [r7, #4]
  25770. 800b2e6: 681b ldr r3, [r3, #0]
  25771. 800b2e8: f64a 22aa movw r2, #43690 @ 0xaaaa
  25772. 800b2ec: 601a str r2, [r3, #0]
  25773. }
  25774. /* Return function status */
  25775. return HAL_OK;
  25776. 800b2ee: 2300 movs r3, #0
  25777. }
  25778. 800b2f0: 4618 mov r0, r3
  25779. 800b2f2: 3710 adds r7, #16
  25780. 800b2f4: 46bd mov sp, r7
  25781. 800b2f6: bd80 pop {r7, pc}
  25782. 0800b2f8 <HAL_IWDG_Refresh>:
  25783. * @param hiwdg pointer to a IWDG_HandleTypeDef structure that contains
  25784. * the configuration information for the specified IWDG module.
  25785. * @retval HAL status
  25786. */
  25787. HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
  25788. {
  25789. 800b2f8: b480 push {r7}
  25790. 800b2fa: b083 sub sp, #12
  25791. 800b2fc: af00 add r7, sp, #0
  25792. 800b2fe: 6078 str r0, [r7, #4]
  25793. /* Reload IWDG counter with value defined in the reload register */
  25794. __HAL_IWDG_RELOAD_COUNTER(hiwdg);
  25795. 800b300: 687b ldr r3, [r7, #4]
  25796. 800b302: 681b ldr r3, [r3, #0]
  25797. 800b304: f64a 22aa movw r2, #43690 @ 0xaaaa
  25798. 800b308: 601a str r2, [r3, #0]
  25799. /* Return function status */
  25800. return HAL_OK;
  25801. 800b30a: 2300 movs r3, #0
  25802. }
  25803. 800b30c: 4618 mov r0, r3
  25804. 800b30e: 370c adds r7, #12
  25805. 800b310: 46bd mov sp, r7
  25806. 800b312: f85d 7b04 ldr.w r7, [sp], #4
  25807. 800b316: 4770 bx lr
  25808. 0800b318 <HAL_PWR_ConfigPVD>:
  25809. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  25810. * only Cortex-M4 or wake up Cortex-M7 and Cortex-M4.
  25811. * @retval None.
  25812. */
  25813. void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
  25814. {
  25815. 800b318: b480 push {r7}
  25816. 800b31a: b083 sub sp, #12
  25817. 800b31c: af00 add r7, sp, #0
  25818. 800b31e: 6078 str r0, [r7, #4]
  25819. /* Check the PVD configuration parameter */
  25820. if (sConfigPVD == NULL)
  25821. 800b320: 687b ldr r3, [r7, #4]
  25822. 800b322: 2b00 cmp r3, #0
  25823. 800b324: d069 beq.n 800b3fa <HAL_PWR_ConfigPVD+0xe2>
  25824. /* Check the parameters */
  25825. assert_param (IS_PWR_PVD_LEVEL (sConfigPVD->PVDLevel));
  25826. assert_param (IS_PWR_PVD_MODE (sConfigPVD->Mode));
  25827. /* Set PLS[7:5] bits according to PVDLevel value */
  25828. MODIFY_REG (PWR->CR1, PWR_CR1_PLS, sConfigPVD->PVDLevel);
  25829. 800b326: 4b38 ldr r3, [pc, #224] @ (800b408 <HAL_PWR_ConfigPVD+0xf0>)
  25830. 800b328: 681b ldr r3, [r3, #0]
  25831. 800b32a: f023 02e0 bic.w r2, r3, #224 @ 0xe0
  25832. 800b32e: 687b ldr r3, [r7, #4]
  25833. 800b330: 681b ldr r3, [r3, #0]
  25834. 800b332: 4935 ldr r1, [pc, #212] @ (800b408 <HAL_PWR_ConfigPVD+0xf0>)
  25835. 800b334: 4313 orrs r3, r2
  25836. 800b336: 600b str r3, [r1, #0]
  25837. /* Clear previous config */
  25838. #if !defined (DUAL_CORE)
  25839. __HAL_PWR_PVD_EXTI_DISABLE_EVENT ();
  25840. 800b338: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25841. 800b33c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25842. 800b340: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25843. 800b344: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25844. 800b348: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25845. __HAL_PWR_PVD_EXTI_DISABLE_IT ();
  25846. 800b34c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25847. 800b350: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25848. 800b354: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25849. 800b358: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25850. 800b35c: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25851. #endif /* !defined (DUAL_CORE) */
  25852. __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ();
  25853. 800b360: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25854. 800b364: 681b ldr r3, [r3, #0]
  25855. 800b366: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25856. 800b36a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25857. 800b36e: 6013 str r3, [r2, #0]
  25858. __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ();
  25859. 800b370: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25860. 800b374: 685b ldr r3, [r3, #4]
  25861. 800b376: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25862. 800b37a: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  25863. 800b37e: 6053 str r3, [r2, #4]
  25864. #if !defined (DUAL_CORE)
  25865. /* Interrupt mode configuration */
  25866. if ((sConfigPVD->Mode & PVD_MODE_IT) == PVD_MODE_IT)
  25867. 800b380: 687b ldr r3, [r7, #4]
  25868. 800b382: 685b ldr r3, [r3, #4]
  25869. 800b384: f403 3380 and.w r3, r3, #65536 @ 0x10000
  25870. 800b388: 2b00 cmp r3, #0
  25871. 800b38a: d009 beq.n 800b3a0 <HAL_PWR_ConfigPVD+0x88>
  25872. {
  25873. __HAL_PWR_PVD_EXTI_ENABLE_IT ();
  25874. 800b38c: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25875. 800b390: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  25876. 800b394: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25877. 800b398: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25878. 800b39c: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  25879. }
  25880. /* Event mode configuration */
  25881. if ((sConfigPVD->Mode & PVD_MODE_EVT) == PVD_MODE_EVT)
  25882. 800b3a0: 687b ldr r3, [r7, #4]
  25883. 800b3a2: 685b ldr r3, [r3, #4]
  25884. 800b3a4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  25885. 800b3a8: 2b00 cmp r3, #0
  25886. 800b3aa: d009 beq.n 800b3c0 <HAL_PWR_ConfigPVD+0xa8>
  25887. {
  25888. __HAL_PWR_PVD_EXTI_ENABLE_EVENT ();
  25889. 800b3ac: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25890. 800b3b0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  25891. 800b3b4: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25892. 800b3b8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25893. 800b3bc: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  25894. }
  25895. #endif /* !defined (DUAL_CORE) */
  25896. /* Rising edge configuration */
  25897. if ((sConfigPVD->Mode & PVD_RISING_EDGE) == PVD_RISING_EDGE)
  25898. 800b3c0: 687b ldr r3, [r7, #4]
  25899. 800b3c2: 685b ldr r3, [r3, #4]
  25900. 800b3c4: f003 0301 and.w r3, r3, #1
  25901. 800b3c8: 2b00 cmp r3, #0
  25902. 800b3ca: d007 beq.n 800b3dc <HAL_PWR_ConfigPVD+0xc4>
  25903. {
  25904. __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ();
  25905. 800b3cc: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25906. 800b3d0: 681b ldr r3, [r3, #0]
  25907. 800b3d2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25908. 800b3d6: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25909. 800b3da: 6013 str r3, [r2, #0]
  25910. }
  25911. /* Falling edge configuration */
  25912. if ((sConfigPVD->Mode & PVD_FALLING_EDGE) == PVD_FALLING_EDGE)
  25913. 800b3dc: 687b ldr r3, [r7, #4]
  25914. 800b3de: 685b ldr r3, [r3, #4]
  25915. 800b3e0: f003 0302 and.w r3, r3, #2
  25916. 800b3e4: 2b00 cmp r3, #0
  25917. 800b3e6: d009 beq.n 800b3fc <HAL_PWR_ConfigPVD+0xe4>
  25918. {
  25919. __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ();
  25920. 800b3e8: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  25921. 800b3ec: 685b ldr r3, [r3, #4]
  25922. 800b3ee: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  25923. 800b3f2: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  25924. 800b3f6: 6053 str r3, [r2, #4]
  25925. 800b3f8: e000 b.n 800b3fc <HAL_PWR_ConfigPVD+0xe4>
  25926. return;
  25927. 800b3fa: bf00 nop
  25928. }
  25929. }
  25930. 800b3fc: 370c adds r7, #12
  25931. 800b3fe: 46bd mov sp, r7
  25932. 800b400: f85d 7b04 ldr.w r7, [sp], #4
  25933. 800b404: 4770 bx lr
  25934. 800b406: bf00 nop
  25935. 800b408: 58024800 .word 0x58024800
  25936. 0800b40c <HAL_PWR_EnablePVD>:
  25937. /**
  25938. * @brief Enable the Programmable Voltage Detector (PVD).
  25939. * @retval None.
  25940. */
  25941. void HAL_PWR_EnablePVD (void)
  25942. {
  25943. 800b40c: b480 push {r7}
  25944. 800b40e: af00 add r7, sp, #0
  25945. /* Enable the power voltage detector */
  25946. SET_BIT (PWR->CR1, PWR_CR1_PVDEN);
  25947. 800b410: 4b05 ldr r3, [pc, #20] @ (800b428 <HAL_PWR_EnablePVD+0x1c>)
  25948. 800b412: 681b ldr r3, [r3, #0]
  25949. 800b414: 4a04 ldr r2, [pc, #16] @ (800b428 <HAL_PWR_EnablePVD+0x1c>)
  25950. 800b416: f043 0310 orr.w r3, r3, #16
  25951. 800b41a: 6013 str r3, [r2, #0]
  25952. }
  25953. 800b41c: bf00 nop
  25954. 800b41e: 46bd mov sp, r7
  25955. 800b420: f85d 7b04 ldr.w r7, [sp], #4
  25956. 800b424: 4770 bx lr
  25957. 800b426: bf00 nop
  25958. 800b428: 58024800 .word 0x58024800
  25959. 0800b42c <HAL_PWREx_ConfigSupply>:
  25960. * PWR_SMPS_2V5_SUPPLIES_EXT are used only for lines that supports SMPS
  25961. * regulator.
  25962. * @retval HAL status.
  25963. */
  25964. HAL_StatusTypeDef HAL_PWREx_ConfigSupply (uint32_t SupplySource)
  25965. {
  25966. 800b42c: b580 push {r7, lr}
  25967. 800b42e: b084 sub sp, #16
  25968. 800b430: af00 add r7, sp, #0
  25969. 800b432: 6078 str r0, [r7, #4]
  25970. /* Check the parameters */
  25971. assert_param (IS_PWR_SUPPLY (SupplySource));
  25972. /* Check if supply source was configured */
  25973. #if defined (PWR_FLAG_SCUEN)
  25974. if (__HAL_PWR_GET_FLAG (PWR_FLAG_SCUEN) == 0U)
  25975. 800b434: 4b19 ldr r3, [pc, #100] @ (800b49c <HAL_PWREx_ConfigSupply+0x70>)
  25976. 800b436: 68db ldr r3, [r3, #12]
  25977. 800b438: f003 0304 and.w r3, r3, #4
  25978. 800b43c: 2b04 cmp r3, #4
  25979. 800b43e: d00a beq.n 800b456 <HAL_PWREx_ConfigSupply+0x2a>
  25980. #else
  25981. if ((PWR->CR3 & (PWR_CR3_SMPSEN | PWR_CR3_LDOEN | PWR_CR3_BYPASS)) != (PWR_CR3_SMPSEN | PWR_CR3_LDOEN))
  25982. #endif /* defined (PWR_FLAG_SCUEN) */
  25983. {
  25984. /* Check supply configuration */
  25985. if ((PWR->CR3 & PWR_SUPPLY_CONFIG_MASK) != SupplySource)
  25986. 800b440: 4b16 ldr r3, [pc, #88] @ (800b49c <HAL_PWREx_ConfigSupply+0x70>)
  25987. 800b442: 68db ldr r3, [r3, #12]
  25988. 800b444: f003 0307 and.w r3, r3, #7
  25989. 800b448: 687a ldr r2, [r7, #4]
  25990. 800b44a: 429a cmp r2, r3
  25991. 800b44c: d001 beq.n 800b452 <HAL_PWREx_ConfigSupply+0x26>
  25992. {
  25993. /* Supply configuration update locked, can't apply a new supply config */
  25994. return HAL_ERROR;
  25995. 800b44e: 2301 movs r3, #1
  25996. 800b450: e01f b.n 800b492 <HAL_PWREx_ConfigSupply+0x66>
  25997. else
  25998. {
  25999. /* Supply configuration update locked, but new supply configuration
  26000. matches with old supply configuration : nothing to do
  26001. */
  26002. return HAL_OK;
  26003. 800b452: 2300 movs r3, #0
  26004. 800b454: e01d b.n 800b492 <HAL_PWREx_ConfigSupply+0x66>
  26005. }
  26006. }
  26007. /* Set the power supply configuration */
  26008. MODIFY_REG (PWR->CR3, PWR_SUPPLY_CONFIG_MASK, SupplySource);
  26009. 800b456: 4b11 ldr r3, [pc, #68] @ (800b49c <HAL_PWREx_ConfigSupply+0x70>)
  26010. 800b458: 68db ldr r3, [r3, #12]
  26011. 800b45a: f023 0207 bic.w r2, r3, #7
  26012. 800b45e: 490f ldr r1, [pc, #60] @ (800b49c <HAL_PWREx_ConfigSupply+0x70>)
  26013. 800b460: 687b ldr r3, [r7, #4]
  26014. 800b462: 4313 orrs r3, r2
  26015. 800b464: 60cb str r3, [r1, #12]
  26016. /* Get tick */
  26017. tickstart = HAL_GetTick ();
  26018. 800b466: f7fa fa19 bl 800589c <HAL_GetTick>
  26019. 800b46a: 60f8 str r0, [r7, #12]
  26020. /* Wait till voltage level flag is set */
  26021. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26022. 800b46c: e009 b.n 800b482 <HAL_PWREx_ConfigSupply+0x56>
  26023. {
  26024. if ((HAL_GetTick () - tickstart) > PWR_FLAG_SETTING_DELAY)
  26025. 800b46e: f7fa fa15 bl 800589c <HAL_GetTick>
  26026. 800b472: 4602 mov r2, r0
  26027. 800b474: 68fb ldr r3, [r7, #12]
  26028. 800b476: 1ad3 subs r3, r2, r3
  26029. 800b478: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
  26030. 800b47c: d901 bls.n 800b482 <HAL_PWREx_ConfigSupply+0x56>
  26031. {
  26032. return HAL_ERROR;
  26033. 800b47e: 2301 movs r3, #1
  26034. 800b480: e007 b.n 800b492 <HAL_PWREx_ConfigSupply+0x66>
  26035. while (__HAL_PWR_GET_FLAG (PWR_FLAG_ACTVOSRDY) == 0U)
  26036. 800b482: 4b06 ldr r3, [pc, #24] @ (800b49c <HAL_PWREx_ConfigSupply+0x70>)
  26037. 800b484: 685b ldr r3, [r3, #4]
  26038. 800b486: f403 5300 and.w r3, r3, #8192 @ 0x2000
  26039. 800b48a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  26040. 800b48e: d1ee bne.n 800b46e <HAL_PWREx_ConfigSupply+0x42>
  26041. }
  26042. }
  26043. }
  26044. #endif /* defined (SMPS) */
  26045. return HAL_OK;
  26046. 800b490: 2300 movs r3, #0
  26047. }
  26048. 800b492: 4618 mov r0, r3
  26049. 800b494: 3710 adds r7, #16
  26050. 800b496: 46bd mov sp, r7
  26051. 800b498: bd80 pop {r7, pc}
  26052. 800b49a: bf00 nop
  26053. 800b49c: 58024800 .word 0x58024800
  26054. 0800b4a0 <HAL_PWREx_ConfigAVD>:
  26055. * driver. All combination are allowed: wake up only Cortex-M7, wake up
  26056. * only Cortex-M4 and wake up Cortex-M7 and Cortex-M4.
  26057. * @retval None.
  26058. */
  26059. void HAL_PWREx_ConfigAVD (PWREx_AVDTypeDef *sConfigAVD)
  26060. {
  26061. 800b4a0: b480 push {r7}
  26062. 800b4a2: b083 sub sp, #12
  26063. 800b4a4: af00 add r7, sp, #0
  26064. 800b4a6: 6078 str r0, [r7, #4]
  26065. /* Check the parameters */
  26066. assert_param (IS_PWR_AVD_LEVEL (sConfigAVD->AVDLevel));
  26067. assert_param (IS_PWR_AVD_MODE (sConfigAVD->Mode));
  26068. /* Set the ALS[18:17] bits according to AVDLevel value */
  26069. MODIFY_REG (PWR->CR1, PWR_CR1_ALS, sConfigAVD->AVDLevel);
  26070. 800b4a8: 4b37 ldr r3, [pc, #220] @ (800b588 <HAL_PWREx_ConfigAVD+0xe8>)
  26071. 800b4aa: 681b ldr r3, [r3, #0]
  26072. 800b4ac: f423 22c0 bic.w r2, r3, #393216 @ 0x60000
  26073. 800b4b0: 687b ldr r3, [r7, #4]
  26074. 800b4b2: 681b ldr r3, [r3, #0]
  26075. 800b4b4: 4934 ldr r1, [pc, #208] @ (800b588 <HAL_PWREx_ConfigAVD+0xe8>)
  26076. 800b4b6: 4313 orrs r3, r2
  26077. 800b4b8: 600b str r3, [r1, #0]
  26078. /* Clear any previous config */
  26079. #if !defined (DUAL_CORE)
  26080. __HAL_PWR_AVD_EXTI_DISABLE_EVENT ();
  26081. 800b4ba: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26082. 800b4be: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26083. 800b4c2: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26084. 800b4c6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26085. 800b4ca: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26086. __HAL_PWR_AVD_EXTI_DISABLE_IT ();
  26087. 800b4ce: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26088. 800b4d2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26089. 800b4d6: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26090. 800b4da: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26091. 800b4de: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26092. #endif /* !defined (DUAL_CORE) */
  26093. __HAL_PWR_AVD_EXTI_DISABLE_RISING_EDGE ();
  26094. 800b4e2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26095. 800b4e6: 681b ldr r3, [r3, #0]
  26096. 800b4e8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26097. 800b4ec: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26098. 800b4f0: 6013 str r3, [r2, #0]
  26099. __HAL_PWR_AVD_EXTI_DISABLE_FALLING_EDGE ();
  26100. 800b4f2: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26101. 800b4f6: 685b ldr r3, [r3, #4]
  26102. 800b4f8: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26103. 800b4fc: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26104. 800b500: 6053 str r3, [r2, #4]
  26105. #if !defined (DUAL_CORE)
  26106. /* Configure the interrupt mode */
  26107. if ((sConfigAVD->Mode & AVD_MODE_IT) == AVD_MODE_IT)
  26108. 800b502: 687b ldr r3, [r7, #4]
  26109. 800b504: 685b ldr r3, [r3, #4]
  26110. 800b506: f403 3380 and.w r3, r3, #65536 @ 0x10000
  26111. 800b50a: 2b00 cmp r3, #0
  26112. 800b50c: d009 beq.n 800b522 <HAL_PWREx_ConfigAVD+0x82>
  26113. {
  26114. __HAL_PWR_AVD_EXTI_ENABLE_IT ();
  26115. 800b50e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26116. 800b512: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  26117. 800b516: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26118. 800b51a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26119. 800b51e: f8c2 3080 str.w r3, [r2, #128] @ 0x80
  26120. }
  26121. /* Configure the event mode */
  26122. if ((sConfigAVD->Mode & AVD_MODE_EVT) == AVD_MODE_EVT)
  26123. 800b522: 687b ldr r3, [r7, #4]
  26124. 800b524: 685b ldr r3, [r3, #4]
  26125. 800b526: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26126. 800b52a: 2b00 cmp r3, #0
  26127. 800b52c: d009 beq.n 800b542 <HAL_PWREx_ConfigAVD+0xa2>
  26128. {
  26129. __HAL_PWR_AVD_EXTI_ENABLE_EVENT ();
  26130. 800b52e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26131. 800b532: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  26132. 800b536: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26133. 800b53a: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26134. 800b53e: f8c2 3084 str.w r3, [r2, #132] @ 0x84
  26135. }
  26136. #endif /* !defined (DUAL_CORE) */
  26137. /* Rising edge configuration */
  26138. if ((sConfigAVD->Mode & AVD_RISING_EDGE) == AVD_RISING_EDGE)
  26139. 800b542: 687b ldr r3, [r7, #4]
  26140. 800b544: 685b ldr r3, [r3, #4]
  26141. 800b546: f003 0301 and.w r3, r3, #1
  26142. 800b54a: 2b00 cmp r3, #0
  26143. 800b54c: d007 beq.n 800b55e <HAL_PWREx_ConfigAVD+0xbe>
  26144. {
  26145. __HAL_PWR_AVD_EXTI_ENABLE_RISING_EDGE ();
  26146. 800b54e: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26147. 800b552: 681b ldr r3, [r3, #0]
  26148. 800b554: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26149. 800b558: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26150. 800b55c: 6013 str r3, [r2, #0]
  26151. }
  26152. /* Falling edge configuration */
  26153. if ((sConfigAVD->Mode & AVD_FALLING_EDGE) == AVD_FALLING_EDGE)
  26154. 800b55e: 687b ldr r3, [r7, #4]
  26155. 800b560: 685b ldr r3, [r3, #4]
  26156. 800b562: f003 0302 and.w r3, r3, #2
  26157. 800b566: 2b00 cmp r3, #0
  26158. 800b568: d007 beq.n 800b57a <HAL_PWREx_ConfigAVD+0xda>
  26159. {
  26160. __HAL_PWR_AVD_EXTI_ENABLE_FALLING_EDGE ();
  26161. 800b56a: f04f 43b0 mov.w r3, #1476395008 @ 0x58000000
  26162. 800b56e: 685b ldr r3, [r3, #4]
  26163. 800b570: f04f 42b0 mov.w r2, #1476395008 @ 0x58000000
  26164. 800b574: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26165. 800b578: 6053 str r3, [r2, #4]
  26166. }
  26167. }
  26168. 800b57a: bf00 nop
  26169. 800b57c: 370c adds r7, #12
  26170. 800b57e: 46bd mov sp, r7
  26171. 800b580: f85d 7b04 ldr.w r7, [sp], #4
  26172. 800b584: 4770 bx lr
  26173. 800b586: bf00 nop
  26174. 800b588: 58024800 .word 0x58024800
  26175. 0800b58c <HAL_PWREx_EnableAVD>:
  26176. /**
  26177. * @brief Enable the Analog Voltage Detector (AVD).
  26178. * @retval None.
  26179. */
  26180. void HAL_PWREx_EnableAVD (void)
  26181. {
  26182. 800b58c: b480 push {r7}
  26183. 800b58e: af00 add r7, sp, #0
  26184. /* Enable the Analog Voltage Detector */
  26185. SET_BIT (PWR->CR1, PWR_CR1_AVDEN);
  26186. 800b590: 4b05 ldr r3, [pc, #20] @ (800b5a8 <HAL_PWREx_EnableAVD+0x1c>)
  26187. 800b592: 681b ldr r3, [r3, #0]
  26188. 800b594: 4a04 ldr r2, [pc, #16] @ (800b5a8 <HAL_PWREx_EnableAVD+0x1c>)
  26189. 800b596: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26190. 800b59a: 6013 str r3, [r2, #0]
  26191. }
  26192. 800b59c: bf00 nop
  26193. 800b59e: 46bd mov sp, r7
  26194. 800b5a0: f85d 7b04 ldr.w r7, [sp], #4
  26195. 800b5a4: 4770 bx lr
  26196. 800b5a6: bf00 nop
  26197. 800b5a8: 58024800 .word 0x58024800
  26198. 0800b5ac <HAL_RCC_OscConfig>:
  26199. * supported by this function. User should request a transition to HSE Off
  26200. * first and then HSE On or HSE Bypass.
  26201. * @retval HAL status
  26202. */
  26203. __weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  26204. {
  26205. 800b5ac: b580 push {r7, lr}
  26206. 800b5ae: b08c sub sp, #48 @ 0x30
  26207. 800b5b0: af00 add r7, sp, #0
  26208. 800b5b2: 6078 str r0, [r7, #4]
  26209. uint32_t tickstart;
  26210. uint32_t temp1_pllckcfg, temp2_pllckcfg;
  26211. /* Check Null pointer */
  26212. if (RCC_OscInitStruct == NULL)
  26213. 800b5b4: 687b ldr r3, [r7, #4]
  26214. 800b5b6: 2b00 cmp r3, #0
  26215. 800b5b8: d102 bne.n 800b5c0 <HAL_RCC_OscConfig+0x14>
  26216. {
  26217. return HAL_ERROR;
  26218. 800b5ba: 2301 movs r3, #1
  26219. 800b5bc: f000 bc48 b.w 800be50 <HAL_RCC_OscConfig+0x8a4>
  26220. }
  26221. /* Check the parameters */
  26222. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  26223. /*------------------------------- HSE Configuration ------------------------*/
  26224. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  26225. 800b5c0: 687b ldr r3, [r7, #4]
  26226. 800b5c2: 681b ldr r3, [r3, #0]
  26227. 800b5c4: f003 0301 and.w r3, r3, #1
  26228. 800b5c8: 2b00 cmp r3, #0
  26229. 800b5ca: f000 8088 beq.w 800b6de <HAL_RCC_OscConfig+0x132>
  26230. {
  26231. /* Check the parameters */
  26232. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  26233. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26234. 800b5ce: 4b99 ldr r3, [pc, #612] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26235. 800b5d0: 691b ldr r3, [r3, #16]
  26236. 800b5d2: f003 0338 and.w r3, r3, #56 @ 0x38
  26237. 800b5d6: 62fb str r3, [r7, #44] @ 0x2c
  26238. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26239. 800b5d8: 4b96 ldr r3, [pc, #600] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26240. 800b5da: 6a9b ldr r3, [r3, #40] @ 0x28
  26241. 800b5dc: 62bb str r3, [r7, #40] @ 0x28
  26242. /* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
  26243. if ((temp_sysclksrc == RCC_CFGR_SWS_HSE) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSE)))
  26244. 800b5de: 6afb ldr r3, [r7, #44] @ 0x2c
  26245. 800b5e0: 2b10 cmp r3, #16
  26246. 800b5e2: d007 beq.n 800b5f4 <HAL_RCC_OscConfig+0x48>
  26247. 800b5e4: 6afb ldr r3, [r7, #44] @ 0x2c
  26248. 800b5e6: 2b18 cmp r3, #24
  26249. 800b5e8: d111 bne.n 800b60e <HAL_RCC_OscConfig+0x62>
  26250. 800b5ea: 6abb ldr r3, [r7, #40] @ 0x28
  26251. 800b5ec: f003 0303 and.w r3, r3, #3
  26252. 800b5f0: 2b02 cmp r3, #2
  26253. 800b5f2: d10c bne.n 800b60e <HAL_RCC_OscConfig+0x62>
  26254. {
  26255. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26256. 800b5f4: 4b8f ldr r3, [pc, #572] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26257. 800b5f6: 681b ldr r3, [r3, #0]
  26258. 800b5f8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26259. 800b5fc: 2b00 cmp r3, #0
  26260. 800b5fe: d06d beq.n 800b6dc <HAL_RCC_OscConfig+0x130>
  26261. 800b600: 687b ldr r3, [r7, #4]
  26262. 800b602: 685b ldr r3, [r3, #4]
  26263. 800b604: 2b00 cmp r3, #0
  26264. 800b606: d169 bne.n 800b6dc <HAL_RCC_OscConfig+0x130>
  26265. {
  26266. return HAL_ERROR;
  26267. 800b608: 2301 movs r3, #1
  26268. 800b60a: f000 bc21 b.w 800be50 <HAL_RCC_OscConfig+0x8a4>
  26269. }
  26270. }
  26271. else
  26272. {
  26273. /* Set the new HSE configuration ---------------------------------------*/
  26274. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  26275. 800b60e: 687b ldr r3, [r7, #4]
  26276. 800b610: 685b ldr r3, [r3, #4]
  26277. 800b612: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  26278. 800b616: d106 bne.n 800b626 <HAL_RCC_OscConfig+0x7a>
  26279. 800b618: 4b86 ldr r3, [pc, #536] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26280. 800b61a: 681b ldr r3, [r3, #0]
  26281. 800b61c: 4a85 ldr r2, [pc, #532] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26282. 800b61e: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26283. 800b622: 6013 str r3, [r2, #0]
  26284. 800b624: e02e b.n 800b684 <HAL_RCC_OscConfig+0xd8>
  26285. 800b626: 687b ldr r3, [r7, #4]
  26286. 800b628: 685b ldr r3, [r3, #4]
  26287. 800b62a: 2b00 cmp r3, #0
  26288. 800b62c: d10c bne.n 800b648 <HAL_RCC_OscConfig+0x9c>
  26289. 800b62e: 4b81 ldr r3, [pc, #516] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26290. 800b630: 681b ldr r3, [r3, #0]
  26291. 800b632: 4a80 ldr r2, [pc, #512] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26292. 800b634: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26293. 800b638: 6013 str r3, [r2, #0]
  26294. 800b63a: 4b7e ldr r3, [pc, #504] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26295. 800b63c: 681b ldr r3, [r3, #0]
  26296. 800b63e: 4a7d ldr r2, [pc, #500] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26297. 800b640: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26298. 800b644: 6013 str r3, [r2, #0]
  26299. 800b646: e01d b.n 800b684 <HAL_RCC_OscConfig+0xd8>
  26300. 800b648: 687b ldr r3, [r7, #4]
  26301. 800b64a: 685b ldr r3, [r3, #4]
  26302. 800b64c: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  26303. 800b650: d10c bne.n 800b66c <HAL_RCC_OscConfig+0xc0>
  26304. 800b652: 4b78 ldr r3, [pc, #480] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26305. 800b654: 681b ldr r3, [r3, #0]
  26306. 800b656: 4a77 ldr r2, [pc, #476] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26307. 800b658: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  26308. 800b65c: 6013 str r3, [r2, #0]
  26309. 800b65e: 4b75 ldr r3, [pc, #468] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26310. 800b660: 681b ldr r3, [r3, #0]
  26311. 800b662: 4a74 ldr r2, [pc, #464] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26312. 800b664: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  26313. 800b668: 6013 str r3, [r2, #0]
  26314. 800b66a: e00b b.n 800b684 <HAL_RCC_OscConfig+0xd8>
  26315. 800b66c: 4b71 ldr r3, [pc, #452] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26316. 800b66e: 681b ldr r3, [r3, #0]
  26317. 800b670: 4a70 ldr r2, [pc, #448] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26318. 800b672: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  26319. 800b676: 6013 str r3, [r2, #0]
  26320. 800b678: 4b6e ldr r3, [pc, #440] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26321. 800b67a: 681b ldr r3, [r3, #0]
  26322. 800b67c: 4a6d ldr r2, [pc, #436] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26323. 800b67e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  26324. 800b682: 6013 str r3, [r2, #0]
  26325. /* Check the HSE State */
  26326. if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  26327. 800b684: 687b ldr r3, [r7, #4]
  26328. 800b686: 685b ldr r3, [r3, #4]
  26329. 800b688: 2b00 cmp r3, #0
  26330. 800b68a: d013 beq.n 800b6b4 <HAL_RCC_OscConfig+0x108>
  26331. {
  26332. /* Get Start Tick*/
  26333. tickstart = HAL_GetTick();
  26334. 800b68c: f7fa f906 bl 800589c <HAL_GetTick>
  26335. 800b690: 6278 str r0, [r7, #36] @ 0x24
  26336. /* Wait till HSE is ready */
  26337. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26338. 800b692: e008 b.n 800b6a6 <HAL_RCC_OscConfig+0xfa>
  26339. {
  26340. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26341. 800b694: f7fa f902 bl 800589c <HAL_GetTick>
  26342. 800b698: 4602 mov r2, r0
  26343. 800b69a: 6a7b ldr r3, [r7, #36] @ 0x24
  26344. 800b69c: 1ad3 subs r3, r2, r3
  26345. 800b69e: 2b64 cmp r3, #100 @ 0x64
  26346. 800b6a0: d901 bls.n 800b6a6 <HAL_RCC_OscConfig+0xfa>
  26347. {
  26348. return HAL_TIMEOUT;
  26349. 800b6a2: 2303 movs r3, #3
  26350. 800b6a4: e3d4 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26351. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  26352. 800b6a6: 4b63 ldr r3, [pc, #396] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26353. 800b6a8: 681b ldr r3, [r3, #0]
  26354. 800b6aa: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26355. 800b6ae: 2b00 cmp r3, #0
  26356. 800b6b0: d0f0 beq.n 800b694 <HAL_RCC_OscConfig+0xe8>
  26357. 800b6b2: e014 b.n 800b6de <HAL_RCC_OscConfig+0x132>
  26358. }
  26359. }
  26360. else
  26361. {
  26362. /* Get Start Tick*/
  26363. tickstart = HAL_GetTick();
  26364. 800b6b4: f7fa f8f2 bl 800589c <HAL_GetTick>
  26365. 800b6b8: 6278 str r0, [r7, #36] @ 0x24
  26366. /* Wait till HSE is disabled */
  26367. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26368. 800b6ba: e008 b.n 800b6ce <HAL_RCC_OscConfig+0x122>
  26369. {
  26370. if ((uint32_t)(HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
  26371. 800b6bc: f7fa f8ee bl 800589c <HAL_GetTick>
  26372. 800b6c0: 4602 mov r2, r0
  26373. 800b6c2: 6a7b ldr r3, [r7, #36] @ 0x24
  26374. 800b6c4: 1ad3 subs r3, r2, r3
  26375. 800b6c6: 2b64 cmp r3, #100 @ 0x64
  26376. 800b6c8: d901 bls.n 800b6ce <HAL_RCC_OscConfig+0x122>
  26377. {
  26378. return HAL_TIMEOUT;
  26379. 800b6ca: 2303 movs r3, #3
  26380. 800b6cc: e3c0 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26381. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  26382. 800b6ce: 4b59 ldr r3, [pc, #356] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26383. 800b6d0: 681b ldr r3, [r3, #0]
  26384. 800b6d2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  26385. 800b6d6: 2b00 cmp r3, #0
  26386. 800b6d8: d1f0 bne.n 800b6bc <HAL_RCC_OscConfig+0x110>
  26387. 800b6da: e000 b.n 800b6de <HAL_RCC_OscConfig+0x132>
  26388. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  26389. 800b6dc: bf00 nop
  26390. }
  26391. }
  26392. }
  26393. }
  26394. /*----------------------------- HSI Configuration --------------------------*/
  26395. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  26396. 800b6de: 687b ldr r3, [r7, #4]
  26397. 800b6e0: 681b ldr r3, [r3, #0]
  26398. 800b6e2: f003 0302 and.w r3, r3, #2
  26399. 800b6e6: 2b00 cmp r3, #0
  26400. 800b6e8: f000 80ca beq.w 800b880 <HAL_RCC_OscConfig+0x2d4>
  26401. /* Check the parameters */
  26402. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  26403. assert_param(IS_RCC_HSICALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  26404. /* When the HSI is used as system clock it will not be disabled */
  26405. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26406. 800b6ec: 4b51 ldr r3, [pc, #324] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26407. 800b6ee: 691b ldr r3, [r3, #16]
  26408. 800b6f0: f003 0338 and.w r3, r3, #56 @ 0x38
  26409. 800b6f4: 623b str r3, [r7, #32]
  26410. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26411. 800b6f6: 4b4f ldr r3, [pc, #316] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26412. 800b6f8: 6a9b ldr r3, [r3, #40] @ 0x28
  26413. 800b6fa: 61fb str r3, [r7, #28]
  26414. if ((temp_sysclksrc == RCC_CFGR_SWS_HSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_HSI)))
  26415. 800b6fc: 6a3b ldr r3, [r7, #32]
  26416. 800b6fe: 2b00 cmp r3, #0
  26417. 800b700: d007 beq.n 800b712 <HAL_RCC_OscConfig+0x166>
  26418. 800b702: 6a3b ldr r3, [r7, #32]
  26419. 800b704: 2b18 cmp r3, #24
  26420. 800b706: d156 bne.n 800b7b6 <HAL_RCC_OscConfig+0x20a>
  26421. 800b708: 69fb ldr r3, [r7, #28]
  26422. 800b70a: f003 0303 and.w r3, r3, #3
  26423. 800b70e: 2b00 cmp r3, #0
  26424. 800b710: d151 bne.n 800b7b6 <HAL_RCC_OscConfig+0x20a>
  26425. {
  26426. /* When HSI is used as system clock it will not be disabled */
  26427. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26428. 800b712: 4b48 ldr r3, [pc, #288] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26429. 800b714: 681b ldr r3, [r3, #0]
  26430. 800b716: f003 0304 and.w r3, r3, #4
  26431. 800b71a: 2b00 cmp r3, #0
  26432. 800b71c: d005 beq.n 800b72a <HAL_RCC_OscConfig+0x17e>
  26433. 800b71e: 687b ldr r3, [r7, #4]
  26434. 800b720: 68db ldr r3, [r3, #12]
  26435. 800b722: 2b00 cmp r3, #0
  26436. 800b724: d101 bne.n 800b72a <HAL_RCC_OscConfig+0x17e>
  26437. {
  26438. return HAL_ERROR;
  26439. 800b726: 2301 movs r3, #1
  26440. 800b728: e392 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26441. }
  26442. /* Otherwise, only HSI division and calibration are allowed */
  26443. else
  26444. {
  26445. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2, HSIDIV4, or HSIDIV8) */
  26446. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26447. 800b72a: 4b42 ldr r3, [pc, #264] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26448. 800b72c: 681b ldr r3, [r3, #0]
  26449. 800b72e: f023 0219 bic.w r2, r3, #25
  26450. 800b732: 687b ldr r3, [r7, #4]
  26451. 800b734: 68db ldr r3, [r3, #12]
  26452. 800b736: 493f ldr r1, [pc, #252] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26453. 800b738: 4313 orrs r3, r2
  26454. 800b73a: 600b str r3, [r1, #0]
  26455. /* Get Start Tick*/
  26456. tickstart = HAL_GetTick();
  26457. 800b73c: f7fa f8ae bl 800589c <HAL_GetTick>
  26458. 800b740: 6278 str r0, [r7, #36] @ 0x24
  26459. /* Wait till HSI is ready */
  26460. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26461. 800b742: e008 b.n 800b756 <HAL_RCC_OscConfig+0x1aa>
  26462. {
  26463. if ((uint32_t)(HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26464. 800b744: f7fa f8aa bl 800589c <HAL_GetTick>
  26465. 800b748: 4602 mov r2, r0
  26466. 800b74a: 6a7b ldr r3, [r7, #36] @ 0x24
  26467. 800b74c: 1ad3 subs r3, r2, r3
  26468. 800b74e: 2b02 cmp r3, #2
  26469. 800b750: d901 bls.n 800b756 <HAL_RCC_OscConfig+0x1aa>
  26470. {
  26471. return HAL_TIMEOUT;
  26472. 800b752: 2303 movs r3, #3
  26473. 800b754: e37c b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26474. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26475. 800b756: 4b37 ldr r3, [pc, #220] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26476. 800b758: 681b ldr r3, [r3, #0]
  26477. 800b75a: f003 0304 and.w r3, r3, #4
  26478. 800b75e: 2b00 cmp r3, #0
  26479. 800b760: d0f0 beq.n 800b744 <HAL_RCC_OscConfig+0x198>
  26480. }
  26481. }
  26482. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26483. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26484. 800b762: f7fa f8a7 bl 80058b4 <HAL_GetREVID>
  26485. 800b766: 4603 mov r3, r0
  26486. 800b768: f241 0203 movw r2, #4099 @ 0x1003
  26487. 800b76c: 4293 cmp r3, r2
  26488. 800b76e: d817 bhi.n 800b7a0 <HAL_RCC_OscConfig+0x1f4>
  26489. 800b770: 687b ldr r3, [r7, #4]
  26490. 800b772: 691b ldr r3, [r3, #16]
  26491. 800b774: 2b40 cmp r3, #64 @ 0x40
  26492. 800b776: d108 bne.n 800b78a <HAL_RCC_OscConfig+0x1de>
  26493. 800b778: 4b2e ldr r3, [pc, #184] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26494. 800b77a: 685b ldr r3, [r3, #4]
  26495. 800b77c: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26496. 800b780: 4a2c ldr r2, [pc, #176] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26497. 800b782: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26498. 800b786: 6053 str r3, [r2, #4]
  26499. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26500. 800b788: e07a b.n 800b880 <HAL_RCC_OscConfig+0x2d4>
  26501. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26502. 800b78a: 4b2a ldr r3, [pc, #168] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26503. 800b78c: 685b ldr r3, [r3, #4]
  26504. 800b78e: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26505. 800b792: 687b ldr r3, [r7, #4]
  26506. 800b794: 691b ldr r3, [r3, #16]
  26507. 800b796: 031b lsls r3, r3, #12
  26508. 800b798: 4926 ldr r1, [pc, #152] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26509. 800b79a: 4313 orrs r3, r2
  26510. 800b79c: 604b str r3, [r1, #4]
  26511. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26512. 800b79e: e06f b.n 800b880 <HAL_RCC_OscConfig+0x2d4>
  26513. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26514. 800b7a0: 4b24 ldr r3, [pc, #144] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26515. 800b7a2: 685b ldr r3, [r3, #4]
  26516. 800b7a4: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  26517. 800b7a8: 687b ldr r3, [r7, #4]
  26518. 800b7aa: 691b ldr r3, [r3, #16]
  26519. 800b7ac: 061b lsls r3, r3, #24
  26520. 800b7ae: 4921 ldr r1, [pc, #132] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26521. 800b7b0: 4313 orrs r3, r2
  26522. 800b7b2: 604b str r3, [r1, #4]
  26523. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState == RCC_HSI_OFF))
  26524. 800b7b4: e064 b.n 800b880 <HAL_RCC_OscConfig+0x2d4>
  26525. }
  26526. else
  26527. {
  26528. /* Check the HSI State */
  26529. if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
  26530. 800b7b6: 687b ldr r3, [r7, #4]
  26531. 800b7b8: 68db ldr r3, [r3, #12]
  26532. 800b7ba: 2b00 cmp r3, #0
  26533. 800b7bc: d047 beq.n 800b84e <HAL_RCC_OscConfig+0x2a2>
  26534. {
  26535. /* Enable the Internal High Speed oscillator (HSI, HSIDIV2,HSIDIV4, or HSIDIV8) */
  26536. __HAL_RCC_HSI_CONFIG(RCC_OscInitStruct->HSIState);
  26537. 800b7be: 4b1d ldr r3, [pc, #116] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26538. 800b7c0: 681b ldr r3, [r3, #0]
  26539. 800b7c2: f023 0219 bic.w r2, r3, #25
  26540. 800b7c6: 687b ldr r3, [r7, #4]
  26541. 800b7c8: 68db ldr r3, [r3, #12]
  26542. 800b7ca: 491a ldr r1, [pc, #104] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26543. 800b7cc: 4313 orrs r3, r2
  26544. 800b7ce: 600b str r3, [r1, #0]
  26545. /* Get Start Tick*/
  26546. tickstart = HAL_GetTick();
  26547. 800b7d0: f7fa f864 bl 800589c <HAL_GetTick>
  26548. 800b7d4: 6278 str r0, [r7, #36] @ 0x24
  26549. /* Wait till HSI is ready */
  26550. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26551. 800b7d6: e008 b.n 800b7ea <HAL_RCC_OscConfig+0x23e>
  26552. {
  26553. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26554. 800b7d8: f7fa f860 bl 800589c <HAL_GetTick>
  26555. 800b7dc: 4602 mov r2, r0
  26556. 800b7de: 6a7b ldr r3, [r7, #36] @ 0x24
  26557. 800b7e0: 1ad3 subs r3, r2, r3
  26558. 800b7e2: 2b02 cmp r3, #2
  26559. 800b7e4: d901 bls.n 800b7ea <HAL_RCC_OscConfig+0x23e>
  26560. {
  26561. return HAL_TIMEOUT;
  26562. 800b7e6: 2303 movs r3, #3
  26563. 800b7e8: e332 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26564. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  26565. 800b7ea: 4b12 ldr r3, [pc, #72] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26566. 800b7ec: 681b ldr r3, [r3, #0]
  26567. 800b7ee: f003 0304 and.w r3, r3, #4
  26568. 800b7f2: 2b00 cmp r3, #0
  26569. 800b7f4: d0f0 beq.n 800b7d8 <HAL_RCC_OscConfig+0x22c>
  26570. }
  26571. }
  26572. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  26573. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  26574. 800b7f6: f7fa f85d bl 80058b4 <HAL_GetREVID>
  26575. 800b7fa: 4603 mov r3, r0
  26576. 800b7fc: f241 0203 movw r2, #4099 @ 0x1003
  26577. 800b800: 4293 cmp r3, r2
  26578. 800b802: d819 bhi.n 800b838 <HAL_RCC_OscConfig+0x28c>
  26579. 800b804: 687b ldr r3, [r7, #4]
  26580. 800b806: 691b ldr r3, [r3, #16]
  26581. 800b808: 2b40 cmp r3, #64 @ 0x40
  26582. 800b80a: d108 bne.n 800b81e <HAL_RCC_OscConfig+0x272>
  26583. 800b80c: 4b09 ldr r3, [pc, #36] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26584. 800b80e: 685b ldr r3, [r3, #4]
  26585. 800b810: f423 337c bic.w r3, r3, #258048 @ 0x3f000
  26586. 800b814: 4a07 ldr r2, [pc, #28] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26587. 800b816: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  26588. 800b81a: 6053 str r3, [r2, #4]
  26589. 800b81c: e030 b.n 800b880 <HAL_RCC_OscConfig+0x2d4>
  26590. 800b81e: 4b05 ldr r3, [pc, #20] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26591. 800b820: 685b ldr r3, [r3, #4]
  26592. 800b822: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  26593. 800b826: 687b ldr r3, [r7, #4]
  26594. 800b828: 691b ldr r3, [r3, #16]
  26595. 800b82a: 031b lsls r3, r3, #12
  26596. 800b82c: 4901 ldr r1, [pc, #4] @ (800b834 <HAL_RCC_OscConfig+0x288>)
  26597. 800b82e: 4313 orrs r3, r2
  26598. 800b830: 604b str r3, [r1, #4]
  26599. 800b832: e025 b.n 800b880 <HAL_RCC_OscConfig+0x2d4>
  26600. 800b834: 58024400 .word 0x58024400
  26601. 800b838: 4b9a ldr r3, [pc, #616] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26602. 800b83a: 685b ldr r3, [r3, #4]
  26603. 800b83c: f023 42fe bic.w r2, r3, #2130706432 @ 0x7f000000
  26604. 800b840: 687b ldr r3, [r7, #4]
  26605. 800b842: 691b ldr r3, [r3, #16]
  26606. 800b844: 061b lsls r3, r3, #24
  26607. 800b846: 4997 ldr r1, [pc, #604] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26608. 800b848: 4313 orrs r3, r2
  26609. 800b84a: 604b str r3, [r1, #4]
  26610. 800b84c: e018 b.n 800b880 <HAL_RCC_OscConfig+0x2d4>
  26611. }
  26612. else
  26613. {
  26614. /* Disable the Internal High Speed oscillator (HSI). */
  26615. __HAL_RCC_HSI_DISABLE();
  26616. 800b84e: 4b95 ldr r3, [pc, #596] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26617. 800b850: 681b ldr r3, [r3, #0]
  26618. 800b852: 4a94 ldr r2, [pc, #592] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26619. 800b854: f023 0301 bic.w r3, r3, #1
  26620. 800b858: 6013 str r3, [r2, #0]
  26621. /* Get Start Tick*/
  26622. tickstart = HAL_GetTick();
  26623. 800b85a: f7fa f81f bl 800589c <HAL_GetTick>
  26624. 800b85e: 6278 str r0, [r7, #36] @ 0x24
  26625. /* Wait till HSI is disabled */
  26626. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  26627. 800b860: e008 b.n 800b874 <HAL_RCC_OscConfig+0x2c8>
  26628. {
  26629. if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
  26630. 800b862: f7fa f81b bl 800589c <HAL_GetTick>
  26631. 800b866: 4602 mov r2, r0
  26632. 800b868: 6a7b ldr r3, [r7, #36] @ 0x24
  26633. 800b86a: 1ad3 subs r3, r2, r3
  26634. 800b86c: 2b02 cmp r3, #2
  26635. 800b86e: d901 bls.n 800b874 <HAL_RCC_OscConfig+0x2c8>
  26636. {
  26637. return HAL_TIMEOUT;
  26638. 800b870: 2303 movs r3, #3
  26639. 800b872: e2ed b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26640. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  26641. 800b874: 4b8b ldr r3, [pc, #556] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26642. 800b876: 681b ldr r3, [r3, #0]
  26643. 800b878: f003 0304 and.w r3, r3, #4
  26644. 800b87c: 2b00 cmp r3, #0
  26645. 800b87e: d1f0 bne.n 800b862 <HAL_RCC_OscConfig+0x2b6>
  26646. }
  26647. }
  26648. }
  26649. }
  26650. /*----------------------------- CSI Configuration --------------------------*/
  26651. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_CSI) == RCC_OSCILLATORTYPE_CSI)
  26652. 800b880: 687b ldr r3, [r7, #4]
  26653. 800b882: 681b ldr r3, [r3, #0]
  26654. 800b884: f003 0310 and.w r3, r3, #16
  26655. 800b888: 2b00 cmp r3, #0
  26656. 800b88a: f000 80a9 beq.w 800b9e0 <HAL_RCC_OscConfig+0x434>
  26657. /* Check the parameters */
  26658. assert_param(IS_RCC_CSI(RCC_OscInitStruct->CSIState));
  26659. assert_param(IS_RCC_CSICALIBRATION_VALUE(RCC_OscInitStruct->CSICalibrationValue));
  26660. /* When the CSI is used as system clock it will not disabled */
  26661. const uint32_t temp_sysclksrc = __HAL_RCC_GET_SYSCLK_SOURCE();
  26662. 800b88e: 4b85 ldr r3, [pc, #532] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26663. 800b890: 691b ldr r3, [r3, #16]
  26664. 800b892: f003 0338 and.w r3, r3, #56 @ 0x38
  26665. 800b896: 61bb str r3, [r7, #24]
  26666. const uint32_t temp_pllckselr = RCC->PLLCKSELR;
  26667. 800b898: 4b82 ldr r3, [pc, #520] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26668. 800b89a: 6a9b ldr r3, [r3, #40] @ 0x28
  26669. 800b89c: 617b str r3, [r7, #20]
  26670. if ((temp_sysclksrc == RCC_CFGR_SWS_CSI) || ((temp_sysclksrc == RCC_CFGR_SWS_PLL1) && ((temp_pllckselr & RCC_PLLCKSELR_PLLSRC) == RCC_PLLCKSELR_PLLSRC_CSI)))
  26671. 800b89e: 69bb ldr r3, [r7, #24]
  26672. 800b8a0: 2b08 cmp r3, #8
  26673. 800b8a2: d007 beq.n 800b8b4 <HAL_RCC_OscConfig+0x308>
  26674. 800b8a4: 69bb ldr r3, [r7, #24]
  26675. 800b8a6: 2b18 cmp r3, #24
  26676. 800b8a8: d13a bne.n 800b920 <HAL_RCC_OscConfig+0x374>
  26677. 800b8aa: 697b ldr r3, [r7, #20]
  26678. 800b8ac: f003 0303 and.w r3, r3, #3
  26679. 800b8b0: 2b01 cmp r3, #1
  26680. 800b8b2: d135 bne.n 800b920 <HAL_RCC_OscConfig+0x374>
  26681. {
  26682. /* When CSI is used as system clock it will not disabled */
  26683. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26684. 800b8b4: 4b7b ldr r3, [pc, #492] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26685. 800b8b6: 681b ldr r3, [r3, #0]
  26686. 800b8b8: f403 7380 and.w r3, r3, #256 @ 0x100
  26687. 800b8bc: 2b00 cmp r3, #0
  26688. 800b8be: d005 beq.n 800b8cc <HAL_RCC_OscConfig+0x320>
  26689. 800b8c0: 687b ldr r3, [r7, #4]
  26690. 800b8c2: 69db ldr r3, [r3, #28]
  26691. 800b8c4: 2b80 cmp r3, #128 @ 0x80
  26692. 800b8c6: d001 beq.n 800b8cc <HAL_RCC_OscConfig+0x320>
  26693. {
  26694. return HAL_ERROR;
  26695. 800b8c8: 2301 movs r3, #1
  26696. 800b8ca: e2c1 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26697. }
  26698. /* Otherwise, just the calibration is allowed */
  26699. else
  26700. {
  26701. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  26702. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26703. 800b8cc: f7f9 fff2 bl 80058b4 <HAL_GetREVID>
  26704. 800b8d0: 4603 mov r3, r0
  26705. 800b8d2: f241 0203 movw r2, #4099 @ 0x1003
  26706. 800b8d6: 4293 cmp r3, r2
  26707. 800b8d8: d817 bhi.n 800b90a <HAL_RCC_OscConfig+0x35e>
  26708. 800b8da: 687b ldr r3, [r7, #4]
  26709. 800b8dc: 6a1b ldr r3, [r3, #32]
  26710. 800b8de: 2b20 cmp r3, #32
  26711. 800b8e0: d108 bne.n 800b8f4 <HAL_RCC_OscConfig+0x348>
  26712. 800b8e2: 4b70 ldr r3, [pc, #448] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26713. 800b8e4: 685b ldr r3, [r3, #4]
  26714. 800b8e6: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  26715. 800b8ea: 4a6e ldr r2, [pc, #440] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26716. 800b8ec: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  26717. 800b8f0: 6053 str r3, [r2, #4]
  26718. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26719. 800b8f2: e075 b.n 800b9e0 <HAL_RCC_OscConfig+0x434>
  26720. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26721. 800b8f4: 4b6b ldr r3, [pc, #428] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26722. 800b8f6: 685b ldr r3, [r3, #4]
  26723. 800b8f8: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  26724. 800b8fc: 687b ldr r3, [r7, #4]
  26725. 800b8fe: 6a1b ldr r3, [r3, #32]
  26726. 800b900: 069b lsls r3, r3, #26
  26727. 800b902: 4968 ldr r1, [pc, #416] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26728. 800b904: 4313 orrs r3, r2
  26729. 800b906: 604b str r3, [r1, #4]
  26730. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26731. 800b908: e06a b.n 800b9e0 <HAL_RCC_OscConfig+0x434>
  26732. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26733. 800b90a: 4b66 ldr r3, [pc, #408] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26734. 800b90c: 68db ldr r3, [r3, #12]
  26735. 800b90e: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  26736. 800b912: 687b ldr r3, [r7, #4]
  26737. 800b914: 6a1b ldr r3, [r3, #32]
  26738. 800b916: 061b lsls r3, r3, #24
  26739. 800b918: 4962 ldr r1, [pc, #392] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26740. 800b91a: 4313 orrs r3, r2
  26741. 800b91c: 60cb str r3, [r1, #12]
  26742. if ((__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U) && (RCC_OscInitStruct->CSIState != RCC_CSI_ON))
  26743. 800b91e: e05f b.n 800b9e0 <HAL_RCC_OscConfig+0x434>
  26744. }
  26745. }
  26746. else
  26747. {
  26748. /* Check the CSI State */
  26749. if ((RCC_OscInitStruct->CSIState) != RCC_CSI_OFF)
  26750. 800b920: 687b ldr r3, [r7, #4]
  26751. 800b922: 69db ldr r3, [r3, #28]
  26752. 800b924: 2b00 cmp r3, #0
  26753. 800b926: d042 beq.n 800b9ae <HAL_RCC_OscConfig+0x402>
  26754. {
  26755. /* Enable the Internal High Speed oscillator (CSI). */
  26756. __HAL_RCC_CSI_ENABLE();
  26757. 800b928: 4b5e ldr r3, [pc, #376] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26758. 800b92a: 681b ldr r3, [r3, #0]
  26759. 800b92c: 4a5d ldr r2, [pc, #372] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26760. 800b92e: f043 0380 orr.w r3, r3, #128 @ 0x80
  26761. 800b932: 6013 str r3, [r2, #0]
  26762. /* Get Start Tick*/
  26763. tickstart = HAL_GetTick();
  26764. 800b934: f7f9 ffb2 bl 800589c <HAL_GetTick>
  26765. 800b938: 6278 str r0, [r7, #36] @ 0x24
  26766. /* Wait till CSI is ready */
  26767. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  26768. 800b93a: e008 b.n 800b94e <HAL_RCC_OscConfig+0x3a2>
  26769. {
  26770. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  26771. 800b93c: f7f9 ffae bl 800589c <HAL_GetTick>
  26772. 800b940: 4602 mov r2, r0
  26773. 800b942: 6a7b ldr r3, [r7, #36] @ 0x24
  26774. 800b944: 1ad3 subs r3, r2, r3
  26775. 800b946: 2b02 cmp r3, #2
  26776. 800b948: d901 bls.n 800b94e <HAL_RCC_OscConfig+0x3a2>
  26777. {
  26778. return HAL_TIMEOUT;
  26779. 800b94a: 2303 movs r3, #3
  26780. 800b94c: e280 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26781. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  26782. 800b94e: 4b55 ldr r3, [pc, #340] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26783. 800b950: 681b ldr r3, [r3, #0]
  26784. 800b952: f403 7380 and.w r3, r3, #256 @ 0x100
  26785. 800b956: 2b00 cmp r3, #0
  26786. 800b958: d0f0 beq.n 800b93c <HAL_RCC_OscConfig+0x390>
  26787. }
  26788. }
  26789. /* Adjusts the Internal High Speed oscillator (CSI) calibration value.*/
  26790. __HAL_RCC_CSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->CSICalibrationValue);
  26791. 800b95a: f7f9 ffab bl 80058b4 <HAL_GetREVID>
  26792. 800b95e: 4603 mov r3, r0
  26793. 800b960: f241 0203 movw r2, #4099 @ 0x1003
  26794. 800b964: 4293 cmp r3, r2
  26795. 800b966: d817 bhi.n 800b998 <HAL_RCC_OscConfig+0x3ec>
  26796. 800b968: 687b ldr r3, [r7, #4]
  26797. 800b96a: 6a1b ldr r3, [r3, #32]
  26798. 800b96c: 2b20 cmp r3, #32
  26799. 800b96e: d108 bne.n 800b982 <HAL_RCC_OscConfig+0x3d6>
  26800. 800b970: 4b4c ldr r3, [pc, #304] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26801. 800b972: 685b ldr r3, [r3, #4]
  26802. 800b974: f023 43f8 bic.w r3, r3, #2080374784 @ 0x7c000000
  26803. 800b978: 4a4a ldr r2, [pc, #296] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26804. 800b97a: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
  26805. 800b97e: 6053 str r3, [r2, #4]
  26806. 800b980: e02e b.n 800b9e0 <HAL_RCC_OscConfig+0x434>
  26807. 800b982: 4b48 ldr r3, [pc, #288] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26808. 800b984: 685b ldr r3, [r3, #4]
  26809. 800b986: f023 42f8 bic.w r2, r3, #2080374784 @ 0x7c000000
  26810. 800b98a: 687b ldr r3, [r7, #4]
  26811. 800b98c: 6a1b ldr r3, [r3, #32]
  26812. 800b98e: 069b lsls r3, r3, #26
  26813. 800b990: 4944 ldr r1, [pc, #272] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26814. 800b992: 4313 orrs r3, r2
  26815. 800b994: 604b str r3, [r1, #4]
  26816. 800b996: e023 b.n 800b9e0 <HAL_RCC_OscConfig+0x434>
  26817. 800b998: 4b42 ldr r3, [pc, #264] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26818. 800b99a: 68db ldr r3, [r3, #12]
  26819. 800b99c: f023 527c bic.w r2, r3, #1056964608 @ 0x3f000000
  26820. 800b9a0: 687b ldr r3, [r7, #4]
  26821. 800b9a2: 6a1b ldr r3, [r3, #32]
  26822. 800b9a4: 061b lsls r3, r3, #24
  26823. 800b9a6: 493f ldr r1, [pc, #252] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26824. 800b9a8: 4313 orrs r3, r2
  26825. 800b9aa: 60cb str r3, [r1, #12]
  26826. 800b9ac: e018 b.n 800b9e0 <HAL_RCC_OscConfig+0x434>
  26827. }
  26828. else
  26829. {
  26830. /* Disable the Internal High Speed oscillator (CSI). */
  26831. __HAL_RCC_CSI_DISABLE();
  26832. 800b9ae: 4b3d ldr r3, [pc, #244] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26833. 800b9b0: 681b ldr r3, [r3, #0]
  26834. 800b9b2: 4a3c ldr r2, [pc, #240] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26835. 800b9b4: f023 0380 bic.w r3, r3, #128 @ 0x80
  26836. 800b9b8: 6013 str r3, [r2, #0]
  26837. /* Get Start Tick*/
  26838. tickstart = HAL_GetTick();
  26839. 800b9ba: f7f9 ff6f bl 800589c <HAL_GetTick>
  26840. 800b9be: 6278 str r0, [r7, #36] @ 0x24
  26841. /* Wait till CSI is disabled */
  26842. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  26843. 800b9c0: e008 b.n 800b9d4 <HAL_RCC_OscConfig+0x428>
  26844. {
  26845. if ((HAL_GetTick() - tickstart) > CSI_TIMEOUT_VALUE)
  26846. 800b9c2: f7f9 ff6b bl 800589c <HAL_GetTick>
  26847. 800b9c6: 4602 mov r2, r0
  26848. 800b9c8: 6a7b ldr r3, [r7, #36] @ 0x24
  26849. 800b9ca: 1ad3 subs r3, r2, r3
  26850. 800b9cc: 2b02 cmp r3, #2
  26851. 800b9ce: d901 bls.n 800b9d4 <HAL_RCC_OscConfig+0x428>
  26852. {
  26853. return HAL_TIMEOUT;
  26854. 800b9d0: 2303 movs r3, #3
  26855. 800b9d2: e23d b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26856. while (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) != 0U)
  26857. 800b9d4: 4b33 ldr r3, [pc, #204] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26858. 800b9d6: 681b ldr r3, [r3, #0]
  26859. 800b9d8: f403 7380 and.w r3, r3, #256 @ 0x100
  26860. 800b9dc: 2b00 cmp r3, #0
  26861. 800b9de: d1f0 bne.n 800b9c2 <HAL_RCC_OscConfig+0x416>
  26862. }
  26863. }
  26864. }
  26865. }
  26866. /*------------------------------ LSI Configuration -------------------------*/
  26867. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  26868. 800b9e0: 687b ldr r3, [r7, #4]
  26869. 800b9e2: 681b ldr r3, [r3, #0]
  26870. 800b9e4: f003 0308 and.w r3, r3, #8
  26871. 800b9e8: 2b00 cmp r3, #0
  26872. 800b9ea: d036 beq.n 800ba5a <HAL_RCC_OscConfig+0x4ae>
  26873. {
  26874. /* Check the parameters */
  26875. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  26876. /* Check the LSI State */
  26877. if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
  26878. 800b9ec: 687b ldr r3, [r7, #4]
  26879. 800b9ee: 695b ldr r3, [r3, #20]
  26880. 800b9f0: 2b00 cmp r3, #0
  26881. 800b9f2: d019 beq.n 800ba28 <HAL_RCC_OscConfig+0x47c>
  26882. {
  26883. /* Enable the Internal Low Speed oscillator (LSI). */
  26884. __HAL_RCC_LSI_ENABLE();
  26885. 800b9f4: 4b2b ldr r3, [pc, #172] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26886. 800b9f6: 6f5b ldr r3, [r3, #116] @ 0x74
  26887. 800b9f8: 4a2a ldr r2, [pc, #168] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26888. 800b9fa: f043 0301 orr.w r3, r3, #1
  26889. 800b9fe: 6753 str r3, [r2, #116] @ 0x74
  26890. /* Get Start Tick*/
  26891. tickstart = HAL_GetTick();
  26892. 800ba00: f7f9 ff4c bl 800589c <HAL_GetTick>
  26893. 800ba04: 6278 str r0, [r7, #36] @ 0x24
  26894. /* Wait till LSI is ready */
  26895. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  26896. 800ba06: e008 b.n 800ba1a <HAL_RCC_OscConfig+0x46e>
  26897. {
  26898. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  26899. 800ba08: f7f9 ff48 bl 800589c <HAL_GetTick>
  26900. 800ba0c: 4602 mov r2, r0
  26901. 800ba0e: 6a7b ldr r3, [r7, #36] @ 0x24
  26902. 800ba10: 1ad3 subs r3, r2, r3
  26903. 800ba12: 2b02 cmp r3, #2
  26904. 800ba14: d901 bls.n 800ba1a <HAL_RCC_OscConfig+0x46e>
  26905. {
  26906. return HAL_TIMEOUT;
  26907. 800ba16: 2303 movs r3, #3
  26908. 800ba18: e21a b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26909. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  26910. 800ba1a: 4b22 ldr r3, [pc, #136] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26911. 800ba1c: 6f5b ldr r3, [r3, #116] @ 0x74
  26912. 800ba1e: f003 0302 and.w r3, r3, #2
  26913. 800ba22: 2b00 cmp r3, #0
  26914. 800ba24: d0f0 beq.n 800ba08 <HAL_RCC_OscConfig+0x45c>
  26915. 800ba26: e018 b.n 800ba5a <HAL_RCC_OscConfig+0x4ae>
  26916. }
  26917. }
  26918. else
  26919. {
  26920. /* Disable the Internal Low Speed oscillator (LSI). */
  26921. __HAL_RCC_LSI_DISABLE();
  26922. 800ba28: 4b1e ldr r3, [pc, #120] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26923. 800ba2a: 6f5b ldr r3, [r3, #116] @ 0x74
  26924. 800ba2c: 4a1d ldr r2, [pc, #116] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26925. 800ba2e: f023 0301 bic.w r3, r3, #1
  26926. 800ba32: 6753 str r3, [r2, #116] @ 0x74
  26927. /* Get Start Tick*/
  26928. tickstart = HAL_GetTick();
  26929. 800ba34: f7f9 ff32 bl 800589c <HAL_GetTick>
  26930. 800ba38: 6278 str r0, [r7, #36] @ 0x24
  26931. /* Wait till LSI is ready */
  26932. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  26933. 800ba3a: e008 b.n 800ba4e <HAL_RCC_OscConfig+0x4a2>
  26934. {
  26935. if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
  26936. 800ba3c: f7f9 ff2e bl 800589c <HAL_GetTick>
  26937. 800ba40: 4602 mov r2, r0
  26938. 800ba42: 6a7b ldr r3, [r7, #36] @ 0x24
  26939. 800ba44: 1ad3 subs r3, r2, r3
  26940. 800ba46: 2b02 cmp r3, #2
  26941. 800ba48: d901 bls.n 800ba4e <HAL_RCC_OscConfig+0x4a2>
  26942. {
  26943. return HAL_TIMEOUT;
  26944. 800ba4a: 2303 movs r3, #3
  26945. 800ba4c: e200 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26946. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  26947. 800ba4e: 4b15 ldr r3, [pc, #84] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26948. 800ba50: 6f5b ldr r3, [r3, #116] @ 0x74
  26949. 800ba52: f003 0302 and.w r3, r3, #2
  26950. 800ba56: 2b00 cmp r3, #0
  26951. 800ba58: d1f0 bne.n 800ba3c <HAL_RCC_OscConfig+0x490>
  26952. }
  26953. }
  26954. }
  26955. /*------------------------------ HSI48 Configuration -------------------------*/
  26956. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48)
  26957. 800ba5a: 687b ldr r3, [r7, #4]
  26958. 800ba5c: 681b ldr r3, [r3, #0]
  26959. 800ba5e: f003 0320 and.w r3, r3, #32
  26960. 800ba62: 2b00 cmp r3, #0
  26961. 800ba64: d039 beq.n 800bada <HAL_RCC_OscConfig+0x52e>
  26962. {
  26963. /* Check the parameters */
  26964. assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State));
  26965. /* Check the HSI48 State */
  26966. if ((RCC_OscInitStruct->HSI48State) != RCC_HSI48_OFF)
  26967. 800ba66: 687b ldr r3, [r7, #4]
  26968. 800ba68: 699b ldr r3, [r3, #24]
  26969. 800ba6a: 2b00 cmp r3, #0
  26970. 800ba6c: d01c beq.n 800baa8 <HAL_RCC_OscConfig+0x4fc>
  26971. {
  26972. /* Enable the Internal Low Speed oscillator (HSI48). */
  26973. __HAL_RCC_HSI48_ENABLE();
  26974. 800ba6e: 4b0d ldr r3, [pc, #52] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26975. 800ba70: 681b ldr r3, [r3, #0]
  26976. 800ba72: 4a0c ldr r2, [pc, #48] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  26977. 800ba74: f443 5380 orr.w r3, r3, #4096 @ 0x1000
  26978. 800ba78: 6013 str r3, [r2, #0]
  26979. /* Get time-out */
  26980. tickstart = HAL_GetTick();
  26981. 800ba7a: f7f9 ff0f bl 800589c <HAL_GetTick>
  26982. 800ba7e: 6278 str r0, [r7, #36] @ 0x24
  26983. /* Wait till HSI48 is ready */
  26984. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  26985. 800ba80: e008 b.n 800ba94 <HAL_RCC_OscConfig+0x4e8>
  26986. {
  26987. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  26988. 800ba82: f7f9 ff0b bl 800589c <HAL_GetTick>
  26989. 800ba86: 4602 mov r2, r0
  26990. 800ba88: 6a7b ldr r3, [r7, #36] @ 0x24
  26991. 800ba8a: 1ad3 subs r3, r2, r3
  26992. 800ba8c: 2b02 cmp r3, #2
  26993. 800ba8e: d901 bls.n 800ba94 <HAL_RCC_OscConfig+0x4e8>
  26994. {
  26995. return HAL_TIMEOUT;
  26996. 800ba90: 2303 movs r3, #3
  26997. 800ba92: e1dd b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  26998. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == 0U)
  26999. 800ba94: 4b03 ldr r3, [pc, #12] @ (800baa4 <HAL_RCC_OscConfig+0x4f8>)
  27000. 800ba96: 681b ldr r3, [r3, #0]
  27001. 800ba98: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27002. 800ba9c: 2b00 cmp r3, #0
  27003. 800ba9e: d0f0 beq.n 800ba82 <HAL_RCC_OscConfig+0x4d6>
  27004. 800baa0: e01b b.n 800bada <HAL_RCC_OscConfig+0x52e>
  27005. 800baa2: bf00 nop
  27006. 800baa4: 58024400 .word 0x58024400
  27007. }
  27008. }
  27009. else
  27010. {
  27011. /* Disable the Internal Low Speed oscillator (HSI48). */
  27012. __HAL_RCC_HSI48_DISABLE();
  27013. 800baa8: 4b9b ldr r3, [pc, #620] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27014. 800baaa: 681b ldr r3, [r3, #0]
  27015. 800baac: 4a9a ldr r2, [pc, #616] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27016. 800baae: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  27017. 800bab2: 6013 str r3, [r2, #0]
  27018. /* Get time-out */
  27019. tickstart = HAL_GetTick();
  27020. 800bab4: f7f9 fef2 bl 800589c <HAL_GetTick>
  27021. 800bab8: 6278 str r0, [r7, #36] @ 0x24
  27022. /* Wait till HSI48 is ready */
  27023. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27024. 800baba: e008 b.n 800bace <HAL_RCC_OscConfig+0x522>
  27025. {
  27026. if ((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE)
  27027. 800babc: f7f9 feee bl 800589c <HAL_GetTick>
  27028. 800bac0: 4602 mov r2, r0
  27029. 800bac2: 6a7b ldr r3, [r7, #36] @ 0x24
  27030. 800bac4: 1ad3 subs r3, r2, r3
  27031. 800bac6: 2b02 cmp r3, #2
  27032. 800bac8: d901 bls.n 800bace <HAL_RCC_OscConfig+0x522>
  27033. {
  27034. return HAL_TIMEOUT;
  27035. 800baca: 2303 movs r3, #3
  27036. 800bacc: e1c0 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27037. while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != 0U)
  27038. 800bace: 4b92 ldr r3, [pc, #584] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27039. 800bad0: 681b ldr r3, [r3, #0]
  27040. 800bad2: f403 5300 and.w r3, r3, #8192 @ 0x2000
  27041. 800bad6: 2b00 cmp r3, #0
  27042. 800bad8: d1f0 bne.n 800babc <HAL_RCC_OscConfig+0x510>
  27043. }
  27044. }
  27045. }
  27046. }
  27047. /*------------------------------ LSE Configuration -------------------------*/
  27048. if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  27049. 800bada: 687b ldr r3, [r7, #4]
  27050. 800badc: 681b ldr r3, [r3, #0]
  27051. 800bade: f003 0304 and.w r3, r3, #4
  27052. 800bae2: 2b00 cmp r3, #0
  27053. 800bae4: f000 8081 beq.w 800bbea <HAL_RCC_OscConfig+0x63e>
  27054. {
  27055. /* Check the parameters */
  27056. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  27057. /* Enable write access to Backup domain */
  27058. PWR->CR1 |= PWR_CR1_DBP;
  27059. 800bae8: 4b8c ldr r3, [pc, #560] @ (800bd1c <HAL_RCC_OscConfig+0x770>)
  27060. 800baea: 681b ldr r3, [r3, #0]
  27061. 800baec: 4a8b ldr r2, [pc, #556] @ (800bd1c <HAL_RCC_OscConfig+0x770>)
  27062. 800baee: f443 7380 orr.w r3, r3, #256 @ 0x100
  27063. 800baf2: 6013 str r3, [r2, #0]
  27064. /* Wait for Backup domain Write protection disable */
  27065. tickstart = HAL_GetTick();
  27066. 800baf4: f7f9 fed2 bl 800589c <HAL_GetTick>
  27067. 800baf8: 6278 str r0, [r7, #36] @ 0x24
  27068. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27069. 800bafa: e008 b.n 800bb0e <HAL_RCC_OscConfig+0x562>
  27070. {
  27071. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  27072. 800bafc: f7f9 fece bl 800589c <HAL_GetTick>
  27073. 800bb00: 4602 mov r2, r0
  27074. 800bb02: 6a7b ldr r3, [r7, #36] @ 0x24
  27075. 800bb04: 1ad3 subs r3, r2, r3
  27076. 800bb06: 2b64 cmp r3, #100 @ 0x64
  27077. 800bb08: d901 bls.n 800bb0e <HAL_RCC_OscConfig+0x562>
  27078. {
  27079. return HAL_TIMEOUT;
  27080. 800bb0a: 2303 movs r3, #3
  27081. 800bb0c: e1a0 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27082. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  27083. 800bb0e: 4b83 ldr r3, [pc, #524] @ (800bd1c <HAL_RCC_OscConfig+0x770>)
  27084. 800bb10: 681b ldr r3, [r3, #0]
  27085. 800bb12: f403 7380 and.w r3, r3, #256 @ 0x100
  27086. 800bb16: 2b00 cmp r3, #0
  27087. 800bb18: d0f0 beq.n 800bafc <HAL_RCC_OscConfig+0x550>
  27088. }
  27089. }
  27090. /* Set the new LSE configuration -----------------------------------------*/
  27091. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  27092. 800bb1a: 687b ldr r3, [r7, #4]
  27093. 800bb1c: 689b ldr r3, [r3, #8]
  27094. 800bb1e: 2b01 cmp r3, #1
  27095. 800bb20: d106 bne.n 800bb30 <HAL_RCC_OscConfig+0x584>
  27096. 800bb22: 4b7d ldr r3, [pc, #500] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27097. 800bb24: 6f1b ldr r3, [r3, #112] @ 0x70
  27098. 800bb26: 4a7c ldr r2, [pc, #496] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27099. 800bb28: f043 0301 orr.w r3, r3, #1
  27100. 800bb2c: 6713 str r3, [r2, #112] @ 0x70
  27101. 800bb2e: e02d b.n 800bb8c <HAL_RCC_OscConfig+0x5e0>
  27102. 800bb30: 687b ldr r3, [r7, #4]
  27103. 800bb32: 689b ldr r3, [r3, #8]
  27104. 800bb34: 2b00 cmp r3, #0
  27105. 800bb36: d10c bne.n 800bb52 <HAL_RCC_OscConfig+0x5a6>
  27106. 800bb38: 4b77 ldr r3, [pc, #476] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27107. 800bb3a: 6f1b ldr r3, [r3, #112] @ 0x70
  27108. 800bb3c: 4a76 ldr r2, [pc, #472] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27109. 800bb3e: f023 0301 bic.w r3, r3, #1
  27110. 800bb42: 6713 str r3, [r2, #112] @ 0x70
  27111. 800bb44: 4b74 ldr r3, [pc, #464] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27112. 800bb46: 6f1b ldr r3, [r3, #112] @ 0x70
  27113. 800bb48: 4a73 ldr r2, [pc, #460] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27114. 800bb4a: f023 0304 bic.w r3, r3, #4
  27115. 800bb4e: 6713 str r3, [r2, #112] @ 0x70
  27116. 800bb50: e01c b.n 800bb8c <HAL_RCC_OscConfig+0x5e0>
  27117. 800bb52: 687b ldr r3, [r7, #4]
  27118. 800bb54: 689b ldr r3, [r3, #8]
  27119. 800bb56: 2b05 cmp r3, #5
  27120. 800bb58: d10c bne.n 800bb74 <HAL_RCC_OscConfig+0x5c8>
  27121. 800bb5a: 4b6f ldr r3, [pc, #444] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27122. 800bb5c: 6f1b ldr r3, [r3, #112] @ 0x70
  27123. 800bb5e: 4a6e ldr r2, [pc, #440] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27124. 800bb60: f043 0304 orr.w r3, r3, #4
  27125. 800bb64: 6713 str r3, [r2, #112] @ 0x70
  27126. 800bb66: 4b6c ldr r3, [pc, #432] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27127. 800bb68: 6f1b ldr r3, [r3, #112] @ 0x70
  27128. 800bb6a: 4a6b ldr r2, [pc, #428] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27129. 800bb6c: f043 0301 orr.w r3, r3, #1
  27130. 800bb70: 6713 str r3, [r2, #112] @ 0x70
  27131. 800bb72: e00b b.n 800bb8c <HAL_RCC_OscConfig+0x5e0>
  27132. 800bb74: 4b68 ldr r3, [pc, #416] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27133. 800bb76: 6f1b ldr r3, [r3, #112] @ 0x70
  27134. 800bb78: 4a67 ldr r2, [pc, #412] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27135. 800bb7a: f023 0301 bic.w r3, r3, #1
  27136. 800bb7e: 6713 str r3, [r2, #112] @ 0x70
  27137. 800bb80: 4b65 ldr r3, [pc, #404] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27138. 800bb82: 6f1b ldr r3, [r3, #112] @ 0x70
  27139. 800bb84: 4a64 ldr r2, [pc, #400] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27140. 800bb86: f023 0304 bic.w r3, r3, #4
  27141. 800bb8a: 6713 str r3, [r2, #112] @ 0x70
  27142. /* Check the LSE State */
  27143. if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
  27144. 800bb8c: 687b ldr r3, [r7, #4]
  27145. 800bb8e: 689b ldr r3, [r3, #8]
  27146. 800bb90: 2b00 cmp r3, #0
  27147. 800bb92: d015 beq.n 800bbc0 <HAL_RCC_OscConfig+0x614>
  27148. {
  27149. /* Get Start Tick*/
  27150. tickstart = HAL_GetTick();
  27151. 800bb94: f7f9 fe82 bl 800589c <HAL_GetTick>
  27152. 800bb98: 6278 str r0, [r7, #36] @ 0x24
  27153. /* Wait till LSE is ready */
  27154. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27155. 800bb9a: e00a b.n 800bbb2 <HAL_RCC_OscConfig+0x606>
  27156. {
  27157. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27158. 800bb9c: f7f9 fe7e bl 800589c <HAL_GetTick>
  27159. 800bba0: 4602 mov r2, r0
  27160. 800bba2: 6a7b ldr r3, [r7, #36] @ 0x24
  27161. 800bba4: 1ad3 subs r3, r2, r3
  27162. 800bba6: f241 3288 movw r2, #5000 @ 0x1388
  27163. 800bbaa: 4293 cmp r3, r2
  27164. 800bbac: d901 bls.n 800bbb2 <HAL_RCC_OscConfig+0x606>
  27165. {
  27166. return HAL_TIMEOUT;
  27167. 800bbae: 2303 movs r3, #3
  27168. 800bbb0: e14e b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27169. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  27170. 800bbb2: 4b59 ldr r3, [pc, #356] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27171. 800bbb4: 6f1b ldr r3, [r3, #112] @ 0x70
  27172. 800bbb6: f003 0302 and.w r3, r3, #2
  27173. 800bbba: 2b00 cmp r3, #0
  27174. 800bbbc: d0ee beq.n 800bb9c <HAL_RCC_OscConfig+0x5f0>
  27175. 800bbbe: e014 b.n 800bbea <HAL_RCC_OscConfig+0x63e>
  27176. }
  27177. }
  27178. else
  27179. {
  27180. /* Get Start Tick*/
  27181. tickstart = HAL_GetTick();
  27182. 800bbc0: f7f9 fe6c bl 800589c <HAL_GetTick>
  27183. 800bbc4: 6278 str r0, [r7, #36] @ 0x24
  27184. /* Wait till LSE is disabled */
  27185. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27186. 800bbc6: e00a b.n 800bbde <HAL_RCC_OscConfig+0x632>
  27187. {
  27188. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  27189. 800bbc8: f7f9 fe68 bl 800589c <HAL_GetTick>
  27190. 800bbcc: 4602 mov r2, r0
  27191. 800bbce: 6a7b ldr r3, [r7, #36] @ 0x24
  27192. 800bbd0: 1ad3 subs r3, r2, r3
  27193. 800bbd2: f241 3288 movw r2, #5000 @ 0x1388
  27194. 800bbd6: 4293 cmp r3, r2
  27195. 800bbd8: d901 bls.n 800bbde <HAL_RCC_OscConfig+0x632>
  27196. {
  27197. return HAL_TIMEOUT;
  27198. 800bbda: 2303 movs r3, #3
  27199. 800bbdc: e138 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27200. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  27201. 800bbde: 4b4e ldr r3, [pc, #312] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27202. 800bbe0: 6f1b ldr r3, [r3, #112] @ 0x70
  27203. 800bbe2: f003 0302 and.w r3, r3, #2
  27204. 800bbe6: 2b00 cmp r3, #0
  27205. 800bbe8: d1ee bne.n 800bbc8 <HAL_RCC_OscConfig+0x61c>
  27206. }
  27207. }
  27208. /*-------------------------------- PLL Configuration -----------------------*/
  27209. /* Check the parameters */
  27210. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  27211. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  27212. 800bbea: 687b ldr r3, [r7, #4]
  27213. 800bbec: 6a5b ldr r3, [r3, #36] @ 0x24
  27214. 800bbee: 2b00 cmp r3, #0
  27215. 800bbf0: f000 812d beq.w 800be4e <HAL_RCC_OscConfig+0x8a2>
  27216. {
  27217. /* Check if the PLL is used as system clock or not */
  27218. if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL1)
  27219. 800bbf4: 4b48 ldr r3, [pc, #288] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27220. 800bbf6: 691b ldr r3, [r3, #16]
  27221. 800bbf8: f003 0338 and.w r3, r3, #56 @ 0x38
  27222. 800bbfc: 2b18 cmp r3, #24
  27223. 800bbfe: f000 80bd beq.w 800bd7c <HAL_RCC_OscConfig+0x7d0>
  27224. {
  27225. if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  27226. 800bc02: 687b ldr r3, [r7, #4]
  27227. 800bc04: 6a5b ldr r3, [r3, #36] @ 0x24
  27228. 800bc06: 2b02 cmp r3, #2
  27229. 800bc08: f040 809e bne.w 800bd48 <HAL_RCC_OscConfig+0x79c>
  27230. assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
  27231. assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
  27232. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27233. /* Disable the main PLL. */
  27234. __HAL_RCC_PLL_DISABLE();
  27235. 800bc0c: 4b42 ldr r3, [pc, #264] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27236. 800bc0e: 681b ldr r3, [r3, #0]
  27237. 800bc10: 4a41 ldr r2, [pc, #260] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27238. 800bc12: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27239. 800bc16: 6013 str r3, [r2, #0]
  27240. /* Get Start Tick*/
  27241. tickstart = HAL_GetTick();
  27242. 800bc18: f7f9 fe40 bl 800589c <HAL_GetTick>
  27243. 800bc1c: 6278 str r0, [r7, #36] @ 0x24
  27244. /* Wait till PLL is disabled */
  27245. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27246. 800bc1e: e008 b.n 800bc32 <HAL_RCC_OscConfig+0x686>
  27247. {
  27248. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27249. 800bc20: f7f9 fe3c bl 800589c <HAL_GetTick>
  27250. 800bc24: 4602 mov r2, r0
  27251. 800bc26: 6a7b ldr r3, [r7, #36] @ 0x24
  27252. 800bc28: 1ad3 subs r3, r2, r3
  27253. 800bc2a: 2b02 cmp r3, #2
  27254. 800bc2c: d901 bls.n 800bc32 <HAL_RCC_OscConfig+0x686>
  27255. {
  27256. return HAL_TIMEOUT;
  27257. 800bc2e: 2303 movs r3, #3
  27258. 800bc30: e10e b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27259. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27260. 800bc32: 4b39 ldr r3, [pc, #228] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27261. 800bc34: 681b ldr r3, [r3, #0]
  27262. 800bc36: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27263. 800bc3a: 2b00 cmp r3, #0
  27264. 800bc3c: d1f0 bne.n 800bc20 <HAL_RCC_OscConfig+0x674>
  27265. }
  27266. }
  27267. /* Configure the main PLL clock source, multiplication and division factors. */
  27268. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  27269. 800bc3e: 4b36 ldr r3, [pc, #216] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27270. 800bc40: 6a9a ldr r2, [r3, #40] @ 0x28
  27271. 800bc42: 4b37 ldr r3, [pc, #220] @ (800bd20 <HAL_RCC_OscConfig+0x774>)
  27272. 800bc44: 4013 ands r3, r2
  27273. 800bc46: 687a ldr r2, [r7, #4]
  27274. 800bc48: 6a91 ldr r1, [r2, #40] @ 0x28
  27275. 800bc4a: 687a ldr r2, [r7, #4]
  27276. 800bc4c: 6ad2 ldr r2, [r2, #44] @ 0x2c
  27277. 800bc4e: 0112 lsls r2, r2, #4
  27278. 800bc50: 430a orrs r2, r1
  27279. 800bc52: 4931 ldr r1, [pc, #196] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27280. 800bc54: 4313 orrs r3, r2
  27281. 800bc56: 628b str r3, [r1, #40] @ 0x28
  27282. 800bc58: 687b ldr r3, [r7, #4]
  27283. 800bc5a: 6b1b ldr r3, [r3, #48] @ 0x30
  27284. 800bc5c: 3b01 subs r3, #1
  27285. 800bc5e: f3c3 0208 ubfx r2, r3, #0, #9
  27286. 800bc62: 687b ldr r3, [r7, #4]
  27287. 800bc64: 6b5b ldr r3, [r3, #52] @ 0x34
  27288. 800bc66: 3b01 subs r3, #1
  27289. 800bc68: 025b lsls r3, r3, #9
  27290. 800bc6a: b29b uxth r3, r3
  27291. 800bc6c: 431a orrs r2, r3
  27292. 800bc6e: 687b ldr r3, [r7, #4]
  27293. 800bc70: 6b9b ldr r3, [r3, #56] @ 0x38
  27294. 800bc72: 3b01 subs r3, #1
  27295. 800bc74: 041b lsls r3, r3, #16
  27296. 800bc76: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  27297. 800bc7a: 431a orrs r2, r3
  27298. 800bc7c: 687b ldr r3, [r7, #4]
  27299. 800bc7e: 6bdb ldr r3, [r3, #60] @ 0x3c
  27300. 800bc80: 3b01 subs r3, #1
  27301. 800bc82: 061b lsls r3, r3, #24
  27302. 800bc84: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  27303. 800bc88: 4923 ldr r1, [pc, #140] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27304. 800bc8a: 4313 orrs r3, r2
  27305. 800bc8c: 630b str r3, [r1, #48] @ 0x30
  27306. RCC_OscInitStruct->PLL.PLLP,
  27307. RCC_OscInitStruct->PLL.PLLQ,
  27308. RCC_OscInitStruct->PLL.PLLR);
  27309. /* Disable PLLFRACN . */
  27310. __HAL_RCC_PLLFRACN_DISABLE();
  27311. 800bc8e: 4b22 ldr r3, [pc, #136] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27312. 800bc90: 6adb ldr r3, [r3, #44] @ 0x2c
  27313. 800bc92: 4a21 ldr r2, [pc, #132] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27314. 800bc94: f023 0301 bic.w r3, r3, #1
  27315. 800bc98: 62d3 str r3, [r2, #44] @ 0x2c
  27316. /* Configure PLL PLL1FRACN */
  27317. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27318. 800bc9a: 4b1f ldr r3, [pc, #124] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27319. 800bc9c: 6b5a ldr r2, [r3, #52] @ 0x34
  27320. 800bc9e: 4b21 ldr r3, [pc, #132] @ (800bd24 <HAL_RCC_OscConfig+0x778>)
  27321. 800bca0: 4013 ands r3, r2
  27322. 800bca2: 687a ldr r2, [r7, #4]
  27323. 800bca4: 6c92 ldr r2, [r2, #72] @ 0x48
  27324. 800bca6: 00d2 lsls r2, r2, #3
  27325. 800bca8: 491b ldr r1, [pc, #108] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27326. 800bcaa: 4313 orrs r3, r2
  27327. 800bcac: 634b str r3, [r1, #52] @ 0x34
  27328. /* Select PLL1 input reference frequency range: VCI */
  27329. __HAL_RCC_PLL_VCIRANGE(RCC_OscInitStruct->PLL.PLLRGE) ;
  27330. 800bcae: 4b1a ldr r3, [pc, #104] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27331. 800bcb0: 6adb ldr r3, [r3, #44] @ 0x2c
  27332. 800bcb2: f023 020c bic.w r2, r3, #12
  27333. 800bcb6: 687b ldr r3, [r7, #4]
  27334. 800bcb8: 6c1b ldr r3, [r3, #64] @ 0x40
  27335. 800bcba: 4917 ldr r1, [pc, #92] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27336. 800bcbc: 4313 orrs r3, r2
  27337. 800bcbe: 62cb str r3, [r1, #44] @ 0x2c
  27338. /* Select PLL1 output frequency range : VCO */
  27339. __HAL_RCC_PLL_VCORANGE(RCC_OscInitStruct->PLL.PLLVCOSEL) ;
  27340. 800bcc0: 4b15 ldr r3, [pc, #84] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27341. 800bcc2: 6adb ldr r3, [r3, #44] @ 0x2c
  27342. 800bcc4: f023 0202 bic.w r2, r3, #2
  27343. 800bcc8: 687b ldr r3, [r7, #4]
  27344. 800bcca: 6c5b ldr r3, [r3, #68] @ 0x44
  27345. 800bccc: 4912 ldr r1, [pc, #72] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27346. 800bcce: 4313 orrs r3, r2
  27347. 800bcd0: 62cb str r3, [r1, #44] @ 0x2c
  27348. /* Enable PLL System Clock output. */
  27349. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVP);
  27350. 800bcd2: 4b11 ldr r3, [pc, #68] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27351. 800bcd4: 6adb ldr r3, [r3, #44] @ 0x2c
  27352. 800bcd6: 4a10 ldr r2, [pc, #64] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27353. 800bcd8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  27354. 800bcdc: 62d3 str r3, [r2, #44] @ 0x2c
  27355. /* Enable PLL1Q Clock output. */
  27356. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  27357. 800bcde: 4b0e ldr r3, [pc, #56] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27358. 800bce0: 6adb ldr r3, [r3, #44] @ 0x2c
  27359. 800bce2: 4a0d ldr r2, [pc, #52] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27360. 800bce4: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  27361. 800bce8: 62d3 str r3, [r2, #44] @ 0x2c
  27362. /* Enable PLL1R Clock output. */
  27363. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVR);
  27364. 800bcea: 4b0b ldr r3, [pc, #44] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27365. 800bcec: 6adb ldr r3, [r3, #44] @ 0x2c
  27366. 800bcee: 4a0a ldr r2, [pc, #40] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27367. 800bcf0: f443 2380 orr.w r3, r3, #262144 @ 0x40000
  27368. 800bcf4: 62d3 str r3, [r2, #44] @ 0x2c
  27369. /* Enable PLL1FRACN . */
  27370. __HAL_RCC_PLLFRACN_ENABLE();
  27371. 800bcf6: 4b08 ldr r3, [pc, #32] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27372. 800bcf8: 6adb ldr r3, [r3, #44] @ 0x2c
  27373. 800bcfa: 4a07 ldr r2, [pc, #28] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27374. 800bcfc: f043 0301 orr.w r3, r3, #1
  27375. 800bd00: 62d3 str r3, [r2, #44] @ 0x2c
  27376. /* Enable the main PLL. */
  27377. __HAL_RCC_PLL_ENABLE();
  27378. 800bd02: 4b05 ldr r3, [pc, #20] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27379. 800bd04: 681b ldr r3, [r3, #0]
  27380. 800bd06: 4a04 ldr r2, [pc, #16] @ (800bd18 <HAL_RCC_OscConfig+0x76c>)
  27381. 800bd08: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  27382. 800bd0c: 6013 str r3, [r2, #0]
  27383. /* Get Start Tick*/
  27384. tickstart = HAL_GetTick();
  27385. 800bd0e: f7f9 fdc5 bl 800589c <HAL_GetTick>
  27386. 800bd12: 6278 str r0, [r7, #36] @ 0x24
  27387. /* Wait till PLL is ready */
  27388. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27389. 800bd14: e011 b.n 800bd3a <HAL_RCC_OscConfig+0x78e>
  27390. 800bd16: bf00 nop
  27391. 800bd18: 58024400 .word 0x58024400
  27392. 800bd1c: 58024800 .word 0x58024800
  27393. 800bd20: fffffc0c .word 0xfffffc0c
  27394. 800bd24: ffff0007 .word 0xffff0007
  27395. {
  27396. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27397. 800bd28: f7f9 fdb8 bl 800589c <HAL_GetTick>
  27398. 800bd2c: 4602 mov r2, r0
  27399. 800bd2e: 6a7b ldr r3, [r7, #36] @ 0x24
  27400. 800bd30: 1ad3 subs r3, r2, r3
  27401. 800bd32: 2b02 cmp r3, #2
  27402. 800bd34: d901 bls.n 800bd3a <HAL_RCC_OscConfig+0x78e>
  27403. {
  27404. return HAL_TIMEOUT;
  27405. 800bd36: 2303 movs r3, #3
  27406. 800bd38: e08a b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27407. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27408. 800bd3a: 4b47 ldr r3, [pc, #284] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27409. 800bd3c: 681b ldr r3, [r3, #0]
  27410. 800bd3e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27411. 800bd42: 2b00 cmp r3, #0
  27412. 800bd44: d0f0 beq.n 800bd28 <HAL_RCC_OscConfig+0x77c>
  27413. 800bd46: e082 b.n 800be4e <HAL_RCC_OscConfig+0x8a2>
  27414. }
  27415. }
  27416. else
  27417. {
  27418. /* Disable the main PLL. */
  27419. __HAL_RCC_PLL_DISABLE();
  27420. 800bd48: 4b43 ldr r3, [pc, #268] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27421. 800bd4a: 681b ldr r3, [r3, #0]
  27422. 800bd4c: 4a42 ldr r2, [pc, #264] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27423. 800bd4e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
  27424. 800bd52: 6013 str r3, [r2, #0]
  27425. /* Get Start Tick*/
  27426. tickstart = HAL_GetTick();
  27427. 800bd54: f7f9 fda2 bl 800589c <HAL_GetTick>
  27428. 800bd58: 6278 str r0, [r7, #36] @ 0x24
  27429. /* Wait till PLL is disabled */
  27430. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27431. 800bd5a: e008 b.n 800bd6e <HAL_RCC_OscConfig+0x7c2>
  27432. {
  27433. if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
  27434. 800bd5c: f7f9 fd9e bl 800589c <HAL_GetTick>
  27435. 800bd60: 4602 mov r2, r0
  27436. 800bd62: 6a7b ldr r3, [r7, #36] @ 0x24
  27437. 800bd64: 1ad3 subs r3, r2, r3
  27438. 800bd66: 2b02 cmp r3, #2
  27439. 800bd68: d901 bls.n 800bd6e <HAL_RCC_OscConfig+0x7c2>
  27440. {
  27441. return HAL_TIMEOUT;
  27442. 800bd6a: 2303 movs r3, #3
  27443. 800bd6c: e070 b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27444. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  27445. 800bd6e: 4b3a ldr r3, [pc, #232] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27446. 800bd70: 681b ldr r3, [r3, #0]
  27447. 800bd72: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27448. 800bd76: 2b00 cmp r3, #0
  27449. 800bd78: d1f0 bne.n 800bd5c <HAL_RCC_OscConfig+0x7b0>
  27450. 800bd7a: e068 b.n 800be4e <HAL_RCC_OscConfig+0x8a2>
  27451. }
  27452. }
  27453. else
  27454. {
  27455. /* Do not return HAL_ERROR if request repeats the current configuration */
  27456. temp1_pllckcfg = RCC->PLLCKSELR;
  27457. 800bd7c: 4b36 ldr r3, [pc, #216] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27458. 800bd7e: 6a9b ldr r3, [r3, #40] @ 0x28
  27459. 800bd80: 613b str r3, [r7, #16]
  27460. temp2_pllckcfg = RCC->PLL1DIVR;
  27461. 800bd82: 4b35 ldr r3, [pc, #212] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27462. 800bd84: 6b1b ldr r3, [r3, #48] @ 0x30
  27463. 800bd86: 60fb str r3, [r7, #12]
  27464. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27465. 800bd88: 687b ldr r3, [r7, #4]
  27466. 800bd8a: 6a5b ldr r3, [r3, #36] @ 0x24
  27467. 800bd8c: 2b01 cmp r3, #1
  27468. 800bd8e: d031 beq.n 800bdf4 <HAL_RCC_OscConfig+0x848>
  27469. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27470. 800bd90: 693b ldr r3, [r7, #16]
  27471. 800bd92: f003 0203 and.w r2, r3, #3
  27472. 800bd96: 687b ldr r3, [r7, #4]
  27473. 800bd98: 6a9b ldr r3, [r3, #40] @ 0x28
  27474. if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
  27475. 800bd9a: 429a cmp r2, r3
  27476. 800bd9c: d12a bne.n 800bdf4 <HAL_RCC_OscConfig+0x848>
  27477. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27478. 800bd9e: 693b ldr r3, [r7, #16]
  27479. 800bda0: 091b lsrs r3, r3, #4
  27480. 800bda2: f003 023f and.w r2, r3, #63 @ 0x3f
  27481. 800bda6: 687b ldr r3, [r7, #4]
  27482. 800bda8: 6adb ldr r3, [r3, #44] @ 0x2c
  27483. (READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  27484. 800bdaa: 429a cmp r2, r3
  27485. 800bdac: d122 bne.n 800bdf4 <HAL_RCC_OscConfig+0x848>
  27486. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27487. 800bdae: 68fb ldr r3, [r7, #12]
  27488. 800bdb0: f3c3 0208 ubfx r2, r3, #0, #9
  27489. 800bdb4: 687b ldr r3, [r7, #4]
  27490. 800bdb6: 6b1b ldr r3, [r3, #48] @ 0x30
  27491. 800bdb8: 3b01 subs r3, #1
  27492. ((READ_BIT(temp1_pllckcfg, RCC_PLLCKSELR_DIVM1) >> RCC_PLLCKSELR_DIVM1_Pos) != RCC_OscInitStruct->PLL.PLLM) ||
  27493. 800bdba: 429a cmp r2, r3
  27494. 800bdbc: d11a bne.n 800bdf4 <HAL_RCC_OscConfig+0x848>
  27495. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27496. 800bdbe: 68fb ldr r3, [r7, #12]
  27497. 800bdc0: 0a5b lsrs r3, r3, #9
  27498. 800bdc2: f003 027f and.w r2, r3, #127 @ 0x7f
  27499. 800bdc6: 687b ldr r3, [r7, #4]
  27500. 800bdc8: 6b5b ldr r3, [r3, #52] @ 0x34
  27501. 800bdca: 3b01 subs r3, #1
  27502. (READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_N1) != (RCC_OscInitStruct->PLL.PLLN - 1U)) ||
  27503. 800bdcc: 429a cmp r2, r3
  27504. 800bdce: d111 bne.n 800bdf4 <HAL_RCC_OscConfig+0x848>
  27505. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27506. 800bdd0: 68fb ldr r3, [r7, #12]
  27507. 800bdd2: 0c1b lsrs r3, r3, #16
  27508. 800bdd4: f003 027f and.w r2, r3, #127 @ 0x7f
  27509. 800bdd8: 687b ldr r3, [r7, #4]
  27510. 800bdda: 6b9b ldr r3, [r3, #56] @ 0x38
  27511. 800bddc: 3b01 subs r3, #1
  27512. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_P1) >> RCC_PLL1DIVR_P1_Pos) != (RCC_OscInitStruct->PLL.PLLP - 1U)) ||
  27513. 800bdde: 429a cmp r2, r3
  27514. 800bde0: d108 bne.n 800bdf4 <HAL_RCC_OscConfig+0x848>
  27515. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_R1) >> RCC_PLL1DIVR_R1_Pos) != (RCC_OscInitStruct->PLL.PLLR - 1U)))
  27516. 800bde2: 68fb ldr r3, [r7, #12]
  27517. 800bde4: 0e1b lsrs r3, r3, #24
  27518. 800bde6: f003 027f and.w r2, r3, #127 @ 0x7f
  27519. 800bdea: 687b ldr r3, [r7, #4]
  27520. 800bdec: 6bdb ldr r3, [r3, #60] @ 0x3c
  27521. 800bdee: 3b01 subs r3, #1
  27522. ((READ_BIT(temp2_pllckcfg, RCC_PLL1DIVR_Q1) >> RCC_PLL1DIVR_Q1_Pos) != (RCC_OscInitStruct->PLL.PLLQ - 1U)) ||
  27523. 800bdf0: 429a cmp r2, r3
  27524. 800bdf2: d001 beq.n 800bdf8 <HAL_RCC_OscConfig+0x84c>
  27525. {
  27526. return HAL_ERROR;
  27527. 800bdf4: 2301 movs r3, #1
  27528. 800bdf6: e02b b.n 800be50 <HAL_RCC_OscConfig+0x8a4>
  27529. }
  27530. else
  27531. {
  27532. /* Check if only fractional part needs to be updated */
  27533. temp1_pllckcfg = ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> RCC_PLL1FRACR_FRACN1_Pos);
  27534. 800bdf8: 4b17 ldr r3, [pc, #92] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27535. 800bdfa: 6b5b ldr r3, [r3, #52] @ 0x34
  27536. 800bdfc: 08db lsrs r3, r3, #3
  27537. 800bdfe: f3c3 030c ubfx r3, r3, #0, #13
  27538. 800be02: 613b str r3, [r7, #16]
  27539. if (RCC_OscInitStruct->PLL.PLLFRACN != temp1_pllckcfg)
  27540. 800be04: 687b ldr r3, [r7, #4]
  27541. 800be06: 6c9b ldr r3, [r3, #72] @ 0x48
  27542. 800be08: 693a ldr r2, [r7, #16]
  27543. 800be0a: 429a cmp r2, r3
  27544. 800be0c: d01f beq.n 800be4e <HAL_RCC_OscConfig+0x8a2>
  27545. {
  27546. assert_param(IS_RCC_PLLFRACN_VALUE(RCC_OscInitStruct->PLL.PLLFRACN));
  27547. /* Disable PLL1FRACEN */
  27548. __HAL_RCC_PLLFRACN_DISABLE();
  27549. 800be0e: 4b12 ldr r3, [pc, #72] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27550. 800be10: 6adb ldr r3, [r3, #44] @ 0x2c
  27551. 800be12: 4a11 ldr r2, [pc, #68] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27552. 800be14: f023 0301 bic.w r3, r3, #1
  27553. 800be18: 62d3 str r3, [r2, #44] @ 0x2c
  27554. /* Get Start Tick*/
  27555. tickstart = HAL_GetTick();
  27556. 800be1a: f7f9 fd3f bl 800589c <HAL_GetTick>
  27557. 800be1e: 6278 str r0, [r7, #36] @ 0x24
  27558. /* Wait at least 2 CK_REF (PLL input source divided by M) period to make sure next latched value will be taken into account. */
  27559. while ((HAL_GetTick() - tickstart) < PLL_FRAC_TIMEOUT_VALUE)
  27560. 800be20: bf00 nop
  27561. 800be22: f7f9 fd3b bl 800589c <HAL_GetTick>
  27562. 800be26: 4602 mov r2, r0
  27563. 800be28: 6a7b ldr r3, [r7, #36] @ 0x24
  27564. 800be2a: 4293 cmp r3, r2
  27565. 800be2c: d0f9 beq.n 800be22 <HAL_RCC_OscConfig+0x876>
  27566. {
  27567. }
  27568. /* Configure PLL1 PLL1FRACN */
  27569. __HAL_RCC_PLLFRACN_CONFIG(RCC_OscInitStruct->PLL.PLLFRACN);
  27570. 800be2e: 4b0a ldr r3, [pc, #40] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27571. 800be30: 6b5a ldr r2, [r3, #52] @ 0x34
  27572. 800be32: 4b0a ldr r3, [pc, #40] @ (800be5c <HAL_RCC_OscConfig+0x8b0>)
  27573. 800be34: 4013 ands r3, r2
  27574. 800be36: 687a ldr r2, [r7, #4]
  27575. 800be38: 6c92 ldr r2, [r2, #72] @ 0x48
  27576. 800be3a: 00d2 lsls r2, r2, #3
  27577. 800be3c: 4906 ldr r1, [pc, #24] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27578. 800be3e: 4313 orrs r3, r2
  27579. 800be40: 634b str r3, [r1, #52] @ 0x34
  27580. /* Enable PLL1FRACEN to latch new value. */
  27581. __HAL_RCC_PLLFRACN_ENABLE();
  27582. 800be42: 4b05 ldr r3, [pc, #20] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27583. 800be44: 6adb ldr r3, [r3, #44] @ 0x2c
  27584. 800be46: 4a04 ldr r2, [pc, #16] @ (800be58 <HAL_RCC_OscConfig+0x8ac>)
  27585. 800be48: f043 0301 orr.w r3, r3, #1
  27586. 800be4c: 62d3 str r3, [r2, #44] @ 0x2c
  27587. }
  27588. }
  27589. }
  27590. }
  27591. return HAL_OK;
  27592. 800be4e: 2300 movs r3, #0
  27593. }
  27594. 800be50: 4618 mov r0, r3
  27595. 800be52: 3730 adds r7, #48 @ 0x30
  27596. 800be54: 46bd mov sp, r7
  27597. 800be56: bd80 pop {r7, pc}
  27598. 800be58: 58024400 .word 0x58024400
  27599. 800be5c: ffff0007 .word 0xffff0007
  27600. 0800be60 <HAL_RCC_ClockConfig>:
  27601. * D1CPRE[3:0] bits to ensure that Domain1 core clock not exceed the maximum allowed frequency
  27602. * (for more details refer to section above "Initialization/de-initialization functions")
  27603. * @retval None
  27604. */
  27605. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  27606. {
  27607. 800be60: b580 push {r7, lr}
  27608. 800be62: b086 sub sp, #24
  27609. 800be64: af00 add r7, sp, #0
  27610. 800be66: 6078 str r0, [r7, #4]
  27611. 800be68: 6039 str r1, [r7, #0]
  27612. HAL_StatusTypeDef halstatus;
  27613. uint32_t tickstart;
  27614. uint32_t common_system_clock;
  27615. /* Check Null pointer */
  27616. if (RCC_ClkInitStruct == NULL)
  27617. 800be6a: 687b ldr r3, [r7, #4]
  27618. 800be6c: 2b00 cmp r3, #0
  27619. 800be6e: d101 bne.n 800be74 <HAL_RCC_ClockConfig+0x14>
  27620. {
  27621. return HAL_ERROR;
  27622. 800be70: 2301 movs r3, #1
  27623. 800be72: e19c b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  27624. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  27625. must be correctly programmed according to the frequency of the CPU clock
  27626. (HCLK) and the supply voltage of the device. */
  27627. /* Increasing the CPU frequency */
  27628. if (FLatency > __HAL_FLASH_GET_LATENCY())
  27629. 800be74: 4b8a ldr r3, [pc, #552] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  27630. 800be76: 681b ldr r3, [r3, #0]
  27631. 800be78: f003 030f and.w r3, r3, #15
  27632. 800be7c: 683a ldr r2, [r7, #0]
  27633. 800be7e: 429a cmp r2, r3
  27634. 800be80: d910 bls.n 800bea4 <HAL_RCC_ClockConfig+0x44>
  27635. {
  27636. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  27637. __HAL_FLASH_SET_LATENCY(FLatency);
  27638. 800be82: 4b87 ldr r3, [pc, #540] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  27639. 800be84: 681b ldr r3, [r3, #0]
  27640. 800be86: f023 020f bic.w r2, r3, #15
  27641. 800be8a: 4985 ldr r1, [pc, #532] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  27642. 800be8c: 683b ldr r3, [r7, #0]
  27643. 800be8e: 4313 orrs r3, r2
  27644. 800be90: 600b str r3, [r1, #0]
  27645. /* Check that the new number of wait states is taken into account to access the Flash
  27646. memory by reading the FLASH_ACR register */
  27647. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  27648. 800be92: 4b83 ldr r3, [pc, #524] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  27649. 800be94: 681b ldr r3, [r3, #0]
  27650. 800be96: f003 030f and.w r3, r3, #15
  27651. 800be9a: 683a ldr r2, [r7, #0]
  27652. 800be9c: 429a cmp r2, r3
  27653. 800be9e: d001 beq.n 800bea4 <HAL_RCC_ClockConfig+0x44>
  27654. {
  27655. return HAL_ERROR;
  27656. 800bea0: 2301 movs r3, #1
  27657. 800bea2: e184 b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  27658. }
  27659. /* Increasing the BUS frequency divider */
  27660. /*-------------------------- D1PCLK1/CDPCLK1 Configuration ---------------------------*/
  27661. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  27662. 800bea4: 687b ldr r3, [r7, #4]
  27663. 800bea6: 681b ldr r3, [r3, #0]
  27664. 800bea8: f003 0304 and.w r3, r3, #4
  27665. 800beac: 2b00 cmp r3, #0
  27666. 800beae: d010 beq.n 800bed2 <HAL_RCC_ClockConfig+0x72>
  27667. {
  27668. #if defined (RCC_D1CFGR_D1PPRE)
  27669. if ((RCC_ClkInitStruct->APB3CLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  27670. 800beb0: 687b ldr r3, [r7, #4]
  27671. 800beb2: 691a ldr r2, [r3, #16]
  27672. 800beb4: 4b7b ldr r3, [pc, #492] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27673. 800beb6: 699b ldr r3, [r3, #24]
  27674. 800beb8: f003 0370 and.w r3, r3, #112 @ 0x70
  27675. 800bebc: 429a cmp r2, r3
  27676. 800bebe: d908 bls.n 800bed2 <HAL_RCC_ClockConfig+0x72>
  27677. {
  27678. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  27679. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  27680. 800bec0: 4b78 ldr r3, [pc, #480] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27681. 800bec2: 699b ldr r3, [r3, #24]
  27682. 800bec4: f023 0270 bic.w r2, r3, #112 @ 0x70
  27683. 800bec8: 687b ldr r3, [r7, #4]
  27684. 800beca: 691b ldr r3, [r3, #16]
  27685. 800becc: 4975 ldr r1, [pc, #468] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27686. 800bece: 4313 orrs r3, r2
  27687. 800bed0: 618b str r3, [r1, #24]
  27688. }
  27689. #endif
  27690. }
  27691. /*-------------------------- PCLK1 Configuration ---------------------------*/
  27692. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  27693. 800bed2: 687b ldr r3, [r7, #4]
  27694. 800bed4: 681b ldr r3, [r3, #0]
  27695. 800bed6: f003 0308 and.w r3, r3, #8
  27696. 800beda: 2b00 cmp r3, #0
  27697. 800bedc: d010 beq.n 800bf00 <HAL_RCC_ClockConfig+0xa0>
  27698. {
  27699. #if defined (RCC_D2CFGR_D2PPRE1)
  27700. if ((RCC_ClkInitStruct->APB1CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  27701. 800bede: 687b ldr r3, [r7, #4]
  27702. 800bee0: 695a ldr r2, [r3, #20]
  27703. 800bee2: 4b70 ldr r3, [pc, #448] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27704. 800bee4: 69db ldr r3, [r3, #28]
  27705. 800bee6: f003 0370 and.w r3, r3, #112 @ 0x70
  27706. 800beea: 429a cmp r2, r3
  27707. 800beec: d908 bls.n 800bf00 <HAL_RCC_ClockConfig+0xa0>
  27708. {
  27709. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  27710. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27711. 800beee: 4b6d ldr r3, [pc, #436] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27712. 800bef0: 69db ldr r3, [r3, #28]
  27713. 800bef2: f023 0270 bic.w r2, r3, #112 @ 0x70
  27714. 800bef6: 687b ldr r3, [r7, #4]
  27715. 800bef8: 695b ldr r3, [r3, #20]
  27716. 800befa: 496a ldr r1, [pc, #424] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27717. 800befc: 4313 orrs r3, r2
  27718. 800befe: 61cb str r3, [r1, #28]
  27719. MODIFY_REG(RCC->CDCFGR2, RCC_CDCFGR2_CDPPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  27720. }
  27721. #endif
  27722. }
  27723. /*-------------------------- PCLK2 Configuration ---------------------------*/
  27724. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  27725. 800bf00: 687b ldr r3, [r7, #4]
  27726. 800bf02: 681b ldr r3, [r3, #0]
  27727. 800bf04: f003 0310 and.w r3, r3, #16
  27728. 800bf08: 2b00 cmp r3, #0
  27729. 800bf0a: d010 beq.n 800bf2e <HAL_RCC_ClockConfig+0xce>
  27730. {
  27731. #if defined(RCC_D2CFGR_D2PPRE2)
  27732. if ((RCC_ClkInitStruct->APB2CLKDivider) > (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  27733. 800bf0c: 687b ldr r3, [r7, #4]
  27734. 800bf0e: 699a ldr r2, [r3, #24]
  27735. 800bf10: 4b64 ldr r3, [pc, #400] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27736. 800bf12: 69db ldr r3, [r3, #28]
  27737. 800bf14: f403 63e0 and.w r3, r3, #1792 @ 0x700
  27738. 800bf18: 429a cmp r2, r3
  27739. 800bf1a: d908 bls.n 800bf2e <HAL_RCC_ClockConfig+0xce>
  27740. {
  27741. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  27742. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  27743. 800bf1c: 4b61 ldr r3, [pc, #388] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27744. 800bf1e: 69db ldr r3, [r3, #28]
  27745. 800bf20: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  27746. 800bf24: 687b ldr r3, [r7, #4]
  27747. 800bf26: 699b ldr r3, [r3, #24]
  27748. 800bf28: 495e ldr r1, [pc, #376] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27749. 800bf2a: 4313 orrs r3, r2
  27750. 800bf2c: 61cb str r3, [r1, #28]
  27751. }
  27752. #endif
  27753. }
  27754. /*-------------------------- D3PCLK1 Configuration ---------------------------*/
  27755. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  27756. 800bf2e: 687b ldr r3, [r7, #4]
  27757. 800bf30: 681b ldr r3, [r3, #0]
  27758. 800bf32: f003 0320 and.w r3, r3, #32
  27759. 800bf36: 2b00 cmp r3, #0
  27760. 800bf38: d010 beq.n 800bf5c <HAL_RCC_ClockConfig+0xfc>
  27761. {
  27762. #if defined(RCC_D3CFGR_D3PPRE)
  27763. if ((RCC_ClkInitStruct->APB4CLKDivider) > (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  27764. 800bf3a: 687b ldr r3, [r7, #4]
  27765. 800bf3c: 69da ldr r2, [r3, #28]
  27766. 800bf3e: 4b59 ldr r3, [pc, #356] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27767. 800bf40: 6a1b ldr r3, [r3, #32]
  27768. 800bf42: f003 0370 and.w r3, r3, #112 @ 0x70
  27769. 800bf46: 429a cmp r2, r3
  27770. 800bf48: d908 bls.n 800bf5c <HAL_RCC_ClockConfig+0xfc>
  27771. {
  27772. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  27773. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  27774. 800bf4a: 4b56 ldr r3, [pc, #344] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27775. 800bf4c: 6a1b ldr r3, [r3, #32]
  27776. 800bf4e: f023 0270 bic.w r2, r3, #112 @ 0x70
  27777. 800bf52: 687b ldr r3, [r7, #4]
  27778. 800bf54: 69db ldr r3, [r3, #28]
  27779. 800bf56: 4953 ldr r1, [pc, #332] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27780. 800bf58: 4313 orrs r3, r2
  27781. 800bf5a: 620b str r3, [r1, #32]
  27782. }
  27783. #endif
  27784. }
  27785. /*-------------------------- HCLK Configuration --------------------------*/
  27786. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  27787. 800bf5c: 687b ldr r3, [r7, #4]
  27788. 800bf5e: 681b ldr r3, [r3, #0]
  27789. 800bf60: f003 0302 and.w r3, r3, #2
  27790. 800bf64: 2b00 cmp r3, #0
  27791. 800bf66: d010 beq.n 800bf8a <HAL_RCC_ClockConfig+0x12a>
  27792. {
  27793. #if defined (RCC_D1CFGR_HPRE)
  27794. if ((RCC_ClkInitStruct->AHBCLKDivider) > (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  27795. 800bf68: 687b ldr r3, [r7, #4]
  27796. 800bf6a: 68da ldr r2, [r3, #12]
  27797. 800bf6c: 4b4d ldr r3, [pc, #308] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27798. 800bf6e: 699b ldr r3, [r3, #24]
  27799. 800bf70: f003 030f and.w r3, r3, #15
  27800. 800bf74: 429a cmp r2, r3
  27801. 800bf76: d908 bls.n 800bf8a <HAL_RCC_ClockConfig+0x12a>
  27802. {
  27803. /* Set the new HCLK clock divider */
  27804. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  27805. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  27806. 800bf78: 4b4a ldr r3, [pc, #296] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27807. 800bf7a: 699b ldr r3, [r3, #24]
  27808. 800bf7c: f023 020f bic.w r2, r3, #15
  27809. 800bf80: 687b ldr r3, [r7, #4]
  27810. 800bf82: 68db ldr r3, [r3, #12]
  27811. 800bf84: 4947 ldr r1, [pc, #284] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27812. 800bf86: 4313 orrs r3, r2
  27813. 800bf88: 618b str r3, [r1, #24]
  27814. }
  27815. #endif
  27816. }
  27817. /*------------------------- SYSCLK Configuration -------------------------*/
  27818. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  27819. 800bf8a: 687b ldr r3, [r7, #4]
  27820. 800bf8c: 681b ldr r3, [r3, #0]
  27821. 800bf8e: f003 0301 and.w r3, r3, #1
  27822. 800bf92: 2b00 cmp r3, #0
  27823. 800bf94: d055 beq.n 800c042 <HAL_RCC_ClockConfig+0x1e2>
  27824. {
  27825. assert_param(IS_RCC_SYSCLK(RCC_ClkInitStruct->SYSCLKDivider));
  27826. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  27827. #if defined(RCC_D1CFGR_D1CPRE)
  27828. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1CPRE, RCC_ClkInitStruct->SYSCLKDivider);
  27829. 800bf96: 4b43 ldr r3, [pc, #268] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27830. 800bf98: 699b ldr r3, [r3, #24]
  27831. 800bf9a: f423 6270 bic.w r2, r3, #3840 @ 0xf00
  27832. 800bf9e: 687b ldr r3, [r7, #4]
  27833. 800bfa0: 689b ldr r3, [r3, #8]
  27834. 800bfa2: 4940 ldr r1, [pc, #256] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27835. 800bfa4: 4313 orrs r3, r2
  27836. 800bfa6: 618b str r3, [r1, #24]
  27837. #else
  27838. MODIFY_REG(RCC->CDCFGR1, RCC_CDCFGR1_CDCPRE, RCC_ClkInitStruct->SYSCLKDivider);
  27839. #endif
  27840. /* HSE is selected as System Clock Source */
  27841. if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  27842. 800bfa8: 687b ldr r3, [r7, #4]
  27843. 800bfaa: 685b ldr r3, [r3, #4]
  27844. 800bfac: 2b02 cmp r3, #2
  27845. 800bfae: d107 bne.n 800bfc0 <HAL_RCC_ClockConfig+0x160>
  27846. {
  27847. /* Check the HSE ready flag */
  27848. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  27849. 800bfb0: 4b3c ldr r3, [pc, #240] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27850. 800bfb2: 681b ldr r3, [r3, #0]
  27851. 800bfb4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  27852. 800bfb8: 2b00 cmp r3, #0
  27853. 800bfba: d121 bne.n 800c000 <HAL_RCC_ClockConfig+0x1a0>
  27854. {
  27855. return HAL_ERROR;
  27856. 800bfbc: 2301 movs r3, #1
  27857. 800bfbe: e0f6 b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  27858. }
  27859. }
  27860. /* PLL is selected as System Clock Source */
  27861. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  27862. 800bfc0: 687b ldr r3, [r7, #4]
  27863. 800bfc2: 685b ldr r3, [r3, #4]
  27864. 800bfc4: 2b03 cmp r3, #3
  27865. 800bfc6: d107 bne.n 800bfd8 <HAL_RCC_ClockConfig+0x178>
  27866. {
  27867. /* Check the PLL ready flag */
  27868. if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  27869. 800bfc8: 4b36 ldr r3, [pc, #216] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27870. 800bfca: 681b ldr r3, [r3, #0]
  27871. 800bfcc: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  27872. 800bfd0: 2b00 cmp r3, #0
  27873. 800bfd2: d115 bne.n 800c000 <HAL_RCC_ClockConfig+0x1a0>
  27874. {
  27875. return HAL_ERROR;
  27876. 800bfd4: 2301 movs r3, #1
  27877. 800bfd6: e0ea b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  27878. }
  27879. }
  27880. /* CSI is selected as System Clock Source */
  27881. else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_CSI)
  27882. 800bfd8: 687b ldr r3, [r7, #4]
  27883. 800bfda: 685b ldr r3, [r3, #4]
  27884. 800bfdc: 2b01 cmp r3, #1
  27885. 800bfde: d107 bne.n 800bff0 <HAL_RCC_ClockConfig+0x190>
  27886. {
  27887. /* Check the PLL ready flag */
  27888. if (__HAL_RCC_GET_FLAG(RCC_FLAG_CSIRDY) == 0U)
  27889. 800bfe0: 4b30 ldr r3, [pc, #192] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27890. 800bfe2: 681b ldr r3, [r3, #0]
  27891. 800bfe4: f403 7380 and.w r3, r3, #256 @ 0x100
  27892. 800bfe8: 2b00 cmp r3, #0
  27893. 800bfea: d109 bne.n 800c000 <HAL_RCC_ClockConfig+0x1a0>
  27894. {
  27895. return HAL_ERROR;
  27896. 800bfec: 2301 movs r3, #1
  27897. 800bfee: e0de b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  27898. }
  27899. /* HSI is selected as System Clock Source */
  27900. else
  27901. {
  27902. /* Check the HSI ready flag */
  27903. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  27904. 800bff0: 4b2c ldr r3, [pc, #176] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27905. 800bff2: 681b ldr r3, [r3, #0]
  27906. 800bff4: f003 0304 and.w r3, r3, #4
  27907. 800bff8: 2b00 cmp r3, #0
  27908. 800bffa: d101 bne.n 800c000 <HAL_RCC_ClockConfig+0x1a0>
  27909. {
  27910. return HAL_ERROR;
  27911. 800bffc: 2301 movs r3, #1
  27912. 800bffe: e0d6 b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  27913. }
  27914. }
  27915. MODIFY_REG(RCC->CFGR, RCC_CFGR_SW, RCC_ClkInitStruct->SYSCLKSource);
  27916. 800c000: 4b28 ldr r3, [pc, #160] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27917. 800c002: 691b ldr r3, [r3, #16]
  27918. 800c004: f023 0207 bic.w r2, r3, #7
  27919. 800c008: 687b ldr r3, [r7, #4]
  27920. 800c00a: 685b ldr r3, [r3, #4]
  27921. 800c00c: 4925 ldr r1, [pc, #148] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27922. 800c00e: 4313 orrs r3, r2
  27923. 800c010: 610b str r3, [r1, #16]
  27924. /* Get Start Tick*/
  27925. tickstart = HAL_GetTick();
  27926. 800c012: f7f9 fc43 bl 800589c <HAL_GetTick>
  27927. 800c016: 6178 str r0, [r7, #20]
  27928. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  27929. 800c018: e00a b.n 800c030 <HAL_RCC_ClockConfig+0x1d0>
  27930. {
  27931. if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
  27932. 800c01a: f7f9 fc3f bl 800589c <HAL_GetTick>
  27933. 800c01e: 4602 mov r2, r0
  27934. 800c020: 697b ldr r3, [r7, #20]
  27935. 800c022: 1ad3 subs r3, r2, r3
  27936. 800c024: f241 3288 movw r2, #5000 @ 0x1388
  27937. 800c028: 4293 cmp r3, r2
  27938. 800c02a: d901 bls.n 800c030 <HAL_RCC_ClockConfig+0x1d0>
  27939. {
  27940. return HAL_TIMEOUT;
  27941. 800c02c: 2303 movs r3, #3
  27942. 800c02e: e0be b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  27943. while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
  27944. 800c030: 4b1c ldr r3, [pc, #112] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27945. 800c032: 691b ldr r3, [r3, #16]
  27946. 800c034: f003 0238 and.w r2, r3, #56 @ 0x38
  27947. 800c038: 687b ldr r3, [r7, #4]
  27948. 800c03a: 685b ldr r3, [r3, #4]
  27949. 800c03c: 00db lsls r3, r3, #3
  27950. 800c03e: 429a cmp r2, r3
  27951. 800c040: d1eb bne.n 800c01a <HAL_RCC_ClockConfig+0x1ba>
  27952. }
  27953. /* Decreasing the BUS frequency divider */
  27954. /*-------------------------- HCLK Configuration --------------------------*/
  27955. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  27956. 800c042: 687b ldr r3, [r7, #4]
  27957. 800c044: 681b ldr r3, [r3, #0]
  27958. 800c046: f003 0302 and.w r3, r3, #2
  27959. 800c04a: 2b00 cmp r3, #0
  27960. 800c04c: d010 beq.n 800c070 <HAL_RCC_ClockConfig+0x210>
  27961. {
  27962. #if defined(RCC_D1CFGR_HPRE)
  27963. if ((RCC_ClkInitStruct->AHBCLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_HPRE))
  27964. 800c04e: 687b ldr r3, [r7, #4]
  27965. 800c050: 68da ldr r2, [r3, #12]
  27966. 800c052: 4b14 ldr r3, [pc, #80] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27967. 800c054: 699b ldr r3, [r3, #24]
  27968. 800c056: f003 030f and.w r3, r3, #15
  27969. 800c05a: 429a cmp r2, r3
  27970. 800c05c: d208 bcs.n 800c070 <HAL_RCC_ClockConfig+0x210>
  27971. {
  27972. /* Set the new HCLK clock divider */
  27973. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  27974. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  27975. 800c05e: 4b11 ldr r3, [pc, #68] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27976. 800c060: 699b ldr r3, [r3, #24]
  27977. 800c062: f023 020f bic.w r2, r3, #15
  27978. 800c066: 687b ldr r3, [r7, #4]
  27979. 800c068: 68db ldr r3, [r3, #12]
  27980. 800c06a: 490e ldr r1, [pc, #56] @ (800c0a4 <HAL_RCC_ClockConfig+0x244>)
  27981. 800c06c: 4313 orrs r3, r2
  27982. 800c06e: 618b str r3, [r1, #24]
  27983. }
  27984. #endif
  27985. }
  27986. /* Decreasing the number of wait states because of lower CPU frequency */
  27987. if (FLatency < __HAL_FLASH_GET_LATENCY())
  27988. 800c070: 4b0b ldr r3, [pc, #44] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  27989. 800c072: 681b ldr r3, [r3, #0]
  27990. 800c074: f003 030f and.w r3, r3, #15
  27991. 800c078: 683a ldr r2, [r7, #0]
  27992. 800c07a: 429a cmp r2, r3
  27993. 800c07c: d214 bcs.n 800c0a8 <HAL_RCC_ClockConfig+0x248>
  27994. {
  27995. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  27996. __HAL_FLASH_SET_LATENCY(FLatency);
  27997. 800c07e: 4b08 ldr r3, [pc, #32] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  27998. 800c080: 681b ldr r3, [r3, #0]
  27999. 800c082: f023 020f bic.w r2, r3, #15
  28000. 800c086: 4906 ldr r1, [pc, #24] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  28001. 800c088: 683b ldr r3, [r7, #0]
  28002. 800c08a: 4313 orrs r3, r2
  28003. 800c08c: 600b str r3, [r1, #0]
  28004. /* Check that the new number of wait states is taken into account to access the Flash
  28005. memory by reading the FLASH_ACR register */
  28006. if (__HAL_FLASH_GET_LATENCY() != FLatency)
  28007. 800c08e: 4b04 ldr r3, [pc, #16] @ (800c0a0 <HAL_RCC_ClockConfig+0x240>)
  28008. 800c090: 681b ldr r3, [r3, #0]
  28009. 800c092: f003 030f and.w r3, r3, #15
  28010. 800c096: 683a ldr r2, [r7, #0]
  28011. 800c098: 429a cmp r2, r3
  28012. 800c09a: d005 beq.n 800c0a8 <HAL_RCC_ClockConfig+0x248>
  28013. {
  28014. return HAL_ERROR;
  28015. 800c09c: 2301 movs r3, #1
  28016. 800c09e: e086 b.n 800c1ae <HAL_RCC_ClockConfig+0x34e>
  28017. 800c0a0: 52002000 .word 0x52002000
  28018. 800c0a4: 58024400 .word 0x58024400
  28019. }
  28020. }
  28021. /*-------------------------- D1PCLK1/CDPCLK Configuration ---------------------------*/
  28022. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D1PCLK1) == RCC_CLOCKTYPE_D1PCLK1)
  28023. 800c0a8: 687b ldr r3, [r7, #4]
  28024. 800c0aa: 681b ldr r3, [r3, #0]
  28025. 800c0ac: f003 0304 and.w r3, r3, #4
  28026. 800c0b0: 2b00 cmp r3, #0
  28027. 800c0b2: d010 beq.n 800c0d6 <HAL_RCC_ClockConfig+0x276>
  28028. {
  28029. #if defined(RCC_D1CFGR_D1PPRE)
  28030. if ((RCC_ClkInitStruct->APB3CLKDivider) < (RCC->D1CFGR & RCC_D1CFGR_D1PPRE))
  28031. 800c0b4: 687b ldr r3, [r7, #4]
  28032. 800c0b6: 691a ldr r2, [r3, #16]
  28033. 800c0b8: 4b3f ldr r3, [pc, #252] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28034. 800c0ba: 699b ldr r3, [r3, #24]
  28035. 800c0bc: f003 0370 and.w r3, r3, #112 @ 0x70
  28036. 800c0c0: 429a cmp r2, r3
  28037. 800c0c2: d208 bcs.n 800c0d6 <HAL_RCC_ClockConfig+0x276>
  28038. {
  28039. assert_param(IS_RCC_D1PCLK1(RCC_ClkInitStruct->APB3CLKDivider));
  28040. MODIFY_REG(RCC->D1CFGR, RCC_D1CFGR_D1PPRE, RCC_ClkInitStruct->APB3CLKDivider);
  28041. 800c0c4: 4b3c ldr r3, [pc, #240] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28042. 800c0c6: 699b ldr r3, [r3, #24]
  28043. 800c0c8: f023 0270 bic.w r2, r3, #112 @ 0x70
  28044. 800c0cc: 687b ldr r3, [r7, #4]
  28045. 800c0ce: 691b ldr r3, [r3, #16]
  28046. 800c0d0: 4939 ldr r1, [pc, #228] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28047. 800c0d2: 4313 orrs r3, r2
  28048. 800c0d4: 618b str r3, [r1, #24]
  28049. }
  28050. #endif
  28051. }
  28052. /*-------------------------- PCLK1 Configuration ---------------------------*/
  28053. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  28054. 800c0d6: 687b ldr r3, [r7, #4]
  28055. 800c0d8: 681b ldr r3, [r3, #0]
  28056. 800c0da: f003 0308 and.w r3, r3, #8
  28057. 800c0de: 2b00 cmp r3, #0
  28058. 800c0e0: d010 beq.n 800c104 <HAL_RCC_ClockConfig+0x2a4>
  28059. {
  28060. #if defined(RCC_D2CFGR_D2PPRE1)
  28061. if ((RCC_ClkInitStruct->APB1CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE1))
  28062. 800c0e2: 687b ldr r3, [r7, #4]
  28063. 800c0e4: 695a ldr r2, [r3, #20]
  28064. 800c0e6: 4b34 ldr r3, [pc, #208] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28065. 800c0e8: 69db ldr r3, [r3, #28]
  28066. 800c0ea: f003 0370 and.w r3, r3, #112 @ 0x70
  28067. 800c0ee: 429a cmp r2, r3
  28068. 800c0f0: d208 bcs.n 800c104 <HAL_RCC_ClockConfig+0x2a4>
  28069. {
  28070. assert_param(IS_RCC_PCLK1(RCC_ClkInitStruct->APB1CLKDivider));
  28071. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE1, (RCC_ClkInitStruct->APB1CLKDivider));
  28072. 800c0f2: 4b31 ldr r3, [pc, #196] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28073. 800c0f4: 69db ldr r3, [r3, #28]
  28074. 800c0f6: f023 0270 bic.w r2, r3, #112 @ 0x70
  28075. 800c0fa: 687b ldr r3, [r7, #4]
  28076. 800c0fc: 695b ldr r3, [r3, #20]
  28077. 800c0fe: 492e ldr r1, [pc, #184] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28078. 800c100: 4313 orrs r3, r2
  28079. 800c102: 61cb str r3, [r1, #28]
  28080. }
  28081. #endif
  28082. }
  28083. /*-------------------------- PCLK2 Configuration ---------------------------*/
  28084. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  28085. 800c104: 687b ldr r3, [r7, #4]
  28086. 800c106: 681b ldr r3, [r3, #0]
  28087. 800c108: f003 0310 and.w r3, r3, #16
  28088. 800c10c: 2b00 cmp r3, #0
  28089. 800c10e: d010 beq.n 800c132 <HAL_RCC_ClockConfig+0x2d2>
  28090. {
  28091. #if defined (RCC_D2CFGR_D2PPRE2)
  28092. if ((RCC_ClkInitStruct->APB2CLKDivider) < (RCC->D2CFGR & RCC_D2CFGR_D2PPRE2))
  28093. 800c110: 687b ldr r3, [r7, #4]
  28094. 800c112: 699a ldr r2, [r3, #24]
  28095. 800c114: 4b28 ldr r3, [pc, #160] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28096. 800c116: 69db ldr r3, [r3, #28]
  28097. 800c118: f403 63e0 and.w r3, r3, #1792 @ 0x700
  28098. 800c11c: 429a cmp r2, r3
  28099. 800c11e: d208 bcs.n 800c132 <HAL_RCC_ClockConfig+0x2d2>
  28100. {
  28101. assert_param(IS_RCC_PCLK2(RCC_ClkInitStruct->APB2CLKDivider));
  28102. MODIFY_REG(RCC->D2CFGR, RCC_D2CFGR_D2PPRE2, (RCC_ClkInitStruct->APB2CLKDivider));
  28103. 800c120: 4b25 ldr r3, [pc, #148] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28104. 800c122: 69db ldr r3, [r3, #28]
  28105. 800c124: f423 62e0 bic.w r2, r3, #1792 @ 0x700
  28106. 800c128: 687b ldr r3, [r7, #4]
  28107. 800c12a: 699b ldr r3, [r3, #24]
  28108. 800c12c: 4922 ldr r1, [pc, #136] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28109. 800c12e: 4313 orrs r3, r2
  28110. 800c130: 61cb str r3, [r1, #28]
  28111. }
  28112. #endif
  28113. }
  28114. /*-------------------------- D3PCLK1/SRDPCLK1 Configuration ---------------------------*/
  28115. if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_D3PCLK1) == RCC_CLOCKTYPE_D3PCLK1)
  28116. 800c132: 687b ldr r3, [r7, #4]
  28117. 800c134: 681b ldr r3, [r3, #0]
  28118. 800c136: f003 0320 and.w r3, r3, #32
  28119. 800c13a: 2b00 cmp r3, #0
  28120. 800c13c: d010 beq.n 800c160 <HAL_RCC_ClockConfig+0x300>
  28121. {
  28122. #if defined(RCC_D3CFGR_D3PPRE)
  28123. if ((RCC_ClkInitStruct->APB4CLKDivider) < (RCC->D3CFGR & RCC_D3CFGR_D3PPRE))
  28124. 800c13e: 687b ldr r3, [r7, #4]
  28125. 800c140: 69da ldr r2, [r3, #28]
  28126. 800c142: 4b1d ldr r3, [pc, #116] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28127. 800c144: 6a1b ldr r3, [r3, #32]
  28128. 800c146: f003 0370 and.w r3, r3, #112 @ 0x70
  28129. 800c14a: 429a cmp r2, r3
  28130. 800c14c: d208 bcs.n 800c160 <HAL_RCC_ClockConfig+0x300>
  28131. {
  28132. assert_param(IS_RCC_D3PCLK1(RCC_ClkInitStruct->APB4CLKDivider));
  28133. MODIFY_REG(RCC->D3CFGR, RCC_D3CFGR_D3PPRE, (RCC_ClkInitStruct->APB4CLKDivider));
  28134. 800c14e: 4b1a ldr r3, [pc, #104] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28135. 800c150: 6a1b ldr r3, [r3, #32]
  28136. 800c152: f023 0270 bic.w r2, r3, #112 @ 0x70
  28137. 800c156: 687b ldr r3, [r7, #4]
  28138. 800c158: 69db ldr r3, [r3, #28]
  28139. 800c15a: 4917 ldr r1, [pc, #92] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28140. 800c15c: 4313 orrs r3, r2
  28141. 800c15e: 620b str r3, [r1, #32]
  28142. #endif
  28143. }
  28144. /* Update the SystemCoreClock global variable */
  28145. #if defined(RCC_D1CFGR_D1CPRE)
  28146. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos]) & 0x1FU);
  28147. 800c160: f000 f834 bl 800c1cc <HAL_RCC_GetSysClockFreq>
  28148. 800c164: 4602 mov r2, r0
  28149. 800c166: 4b14 ldr r3, [pc, #80] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28150. 800c168: 699b ldr r3, [r3, #24]
  28151. 800c16a: 0a1b lsrs r3, r3, #8
  28152. 800c16c: f003 030f and.w r3, r3, #15
  28153. 800c170: 4912 ldr r1, [pc, #72] @ (800c1bc <HAL_RCC_ClockConfig+0x35c>)
  28154. 800c172: 5ccb ldrb r3, [r1, r3]
  28155. 800c174: f003 031f and.w r3, r3, #31
  28156. 800c178: fa22 f303 lsr.w r3, r2, r3
  28157. 800c17c: 613b str r3, [r7, #16]
  28158. #else
  28159. common_system_clock = HAL_RCC_GetSysClockFreq() >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos]) & 0x1FU);
  28160. #endif
  28161. #if defined(RCC_D1CFGR_HPRE)
  28162. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28163. 800c17e: 4b0e ldr r3, [pc, #56] @ (800c1b8 <HAL_RCC_ClockConfig+0x358>)
  28164. 800c180: 699b ldr r3, [r3, #24]
  28165. 800c182: f003 030f and.w r3, r3, #15
  28166. 800c186: 4a0d ldr r2, [pc, #52] @ (800c1bc <HAL_RCC_ClockConfig+0x35c>)
  28167. 800c188: 5cd3 ldrb r3, [r2, r3]
  28168. 800c18a: f003 031f and.w r3, r3, #31
  28169. 800c18e: 693a ldr r2, [r7, #16]
  28170. 800c190: fa22 f303 lsr.w r3, r2, r3
  28171. 800c194: 4a0a ldr r2, [pc, #40] @ (800c1c0 <HAL_RCC_ClockConfig+0x360>)
  28172. 800c196: 6013 str r3, [r2, #0]
  28173. #endif
  28174. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28175. SystemCoreClock = SystemD2Clock;
  28176. #else
  28177. SystemCoreClock = common_system_clock;
  28178. 800c198: 4a0a ldr r2, [pc, #40] @ (800c1c4 <HAL_RCC_ClockConfig+0x364>)
  28179. 800c19a: 693b ldr r3, [r7, #16]
  28180. 800c19c: 6013 str r3, [r2, #0]
  28181. #endif /* DUAL_CORE && CORE_CM4 */
  28182. /* Configure the source of time base considering new system clocks settings*/
  28183. halstatus = HAL_InitTick(uwTickPrio);
  28184. 800c19e: 4b0a ldr r3, [pc, #40] @ (800c1c8 <HAL_RCC_ClockConfig+0x368>)
  28185. 800c1a0: 681b ldr r3, [r3, #0]
  28186. 800c1a2: 4618 mov r0, r3
  28187. 800c1a4: f7f7 ff84 bl 80040b0 <HAL_InitTick>
  28188. 800c1a8: 4603 mov r3, r0
  28189. 800c1aa: 73fb strb r3, [r7, #15]
  28190. return halstatus;
  28191. 800c1ac: 7bfb ldrb r3, [r7, #15]
  28192. }
  28193. 800c1ae: 4618 mov r0, r3
  28194. 800c1b0: 3718 adds r7, #24
  28195. 800c1b2: 46bd mov sp, r7
  28196. 800c1b4: bd80 pop {r7, pc}
  28197. 800c1b6: bf00 nop
  28198. 800c1b8: 58024400 .word 0x58024400
  28199. 800c1bc: 0801a288 .word 0x0801a288
  28200. 800c1c0: 24000038 .word 0x24000038
  28201. 800c1c4: 24000034 .word 0x24000034
  28202. 800c1c8: 2400003c .word 0x2400003c
  28203. 0800c1cc <HAL_RCC_GetSysClockFreq>:
  28204. *
  28205. *
  28206. * @retval SYSCLK frequency
  28207. */
  28208. uint32_t HAL_RCC_GetSysClockFreq(void)
  28209. {
  28210. 800c1cc: b480 push {r7}
  28211. 800c1ce: b089 sub sp, #36 @ 0x24
  28212. 800c1d0: af00 add r7, sp, #0
  28213. float_t fracn1, pllvco;
  28214. uint32_t sysclockfreq;
  28215. /* Get SYSCLK source -------------------------------------------------------*/
  28216. switch (RCC->CFGR & RCC_CFGR_SWS)
  28217. 800c1d2: 4bb3 ldr r3, [pc, #716] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28218. 800c1d4: 691b ldr r3, [r3, #16]
  28219. 800c1d6: f003 0338 and.w r3, r3, #56 @ 0x38
  28220. 800c1da: 2b18 cmp r3, #24
  28221. 800c1dc: f200 8155 bhi.w 800c48a <HAL_RCC_GetSysClockFreq+0x2be>
  28222. 800c1e0: a201 add r2, pc, #4 @ (adr r2, 800c1e8 <HAL_RCC_GetSysClockFreq+0x1c>)
  28223. 800c1e2: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28224. 800c1e6: bf00 nop
  28225. 800c1e8: 0800c24d .word 0x0800c24d
  28226. 800c1ec: 0800c48b .word 0x0800c48b
  28227. 800c1f0: 0800c48b .word 0x0800c48b
  28228. 800c1f4: 0800c48b .word 0x0800c48b
  28229. 800c1f8: 0800c48b .word 0x0800c48b
  28230. 800c1fc: 0800c48b .word 0x0800c48b
  28231. 800c200: 0800c48b .word 0x0800c48b
  28232. 800c204: 0800c48b .word 0x0800c48b
  28233. 800c208: 0800c273 .word 0x0800c273
  28234. 800c20c: 0800c48b .word 0x0800c48b
  28235. 800c210: 0800c48b .word 0x0800c48b
  28236. 800c214: 0800c48b .word 0x0800c48b
  28237. 800c218: 0800c48b .word 0x0800c48b
  28238. 800c21c: 0800c48b .word 0x0800c48b
  28239. 800c220: 0800c48b .word 0x0800c48b
  28240. 800c224: 0800c48b .word 0x0800c48b
  28241. 800c228: 0800c279 .word 0x0800c279
  28242. 800c22c: 0800c48b .word 0x0800c48b
  28243. 800c230: 0800c48b .word 0x0800c48b
  28244. 800c234: 0800c48b .word 0x0800c48b
  28245. 800c238: 0800c48b .word 0x0800c48b
  28246. 800c23c: 0800c48b .word 0x0800c48b
  28247. 800c240: 0800c48b .word 0x0800c48b
  28248. 800c244: 0800c48b .word 0x0800c48b
  28249. 800c248: 0800c27f .word 0x0800c27f
  28250. {
  28251. case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
  28252. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28253. 800c24c: 4b94 ldr r3, [pc, #592] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28254. 800c24e: 681b ldr r3, [r3, #0]
  28255. 800c250: f003 0320 and.w r3, r3, #32
  28256. 800c254: 2b00 cmp r3, #0
  28257. 800c256: d009 beq.n 800c26c <HAL_RCC_GetSysClockFreq+0xa0>
  28258. {
  28259. sysclockfreq = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28260. 800c258: 4b91 ldr r3, [pc, #580] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28261. 800c25a: 681b ldr r3, [r3, #0]
  28262. 800c25c: 08db lsrs r3, r3, #3
  28263. 800c25e: f003 0303 and.w r3, r3, #3
  28264. 800c262: 4a90 ldr r2, [pc, #576] @ (800c4a4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28265. 800c264: fa22 f303 lsr.w r3, r2, r3
  28266. 800c268: 61bb str r3, [r7, #24]
  28267. else
  28268. {
  28269. sysclockfreq = (uint32_t) HSI_VALUE;
  28270. }
  28271. break;
  28272. 800c26a: e111 b.n 800c490 <HAL_RCC_GetSysClockFreq+0x2c4>
  28273. sysclockfreq = (uint32_t) HSI_VALUE;
  28274. 800c26c: 4b8d ldr r3, [pc, #564] @ (800c4a4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28275. 800c26e: 61bb str r3, [r7, #24]
  28276. break;
  28277. 800c270: e10e b.n 800c490 <HAL_RCC_GetSysClockFreq+0x2c4>
  28278. case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
  28279. sysclockfreq = CSI_VALUE;
  28280. 800c272: 4b8d ldr r3, [pc, #564] @ (800c4a8 <HAL_RCC_GetSysClockFreq+0x2dc>)
  28281. 800c274: 61bb str r3, [r7, #24]
  28282. break;
  28283. 800c276: e10b b.n 800c490 <HAL_RCC_GetSysClockFreq+0x2c4>
  28284. case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
  28285. sysclockfreq = HSE_VALUE;
  28286. 800c278: 4b8c ldr r3, [pc, #560] @ (800c4ac <HAL_RCC_GetSysClockFreq+0x2e0>)
  28287. 800c27a: 61bb str r3, [r7, #24]
  28288. break;
  28289. 800c27c: e108 b.n 800c490 <HAL_RCC_GetSysClockFreq+0x2c4>
  28290. case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
  28291. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
  28292. SYSCLK = PLL_VCO / PLLR
  28293. */
  28294. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  28295. 800c27e: 4b88 ldr r3, [pc, #544] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28296. 800c280: 6a9b ldr r3, [r3, #40] @ 0x28
  28297. 800c282: f003 0303 and.w r3, r3, #3
  28298. 800c286: 617b str r3, [r7, #20]
  28299. pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4) ;
  28300. 800c288: 4b85 ldr r3, [pc, #532] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28301. 800c28a: 6a9b ldr r3, [r3, #40] @ 0x28
  28302. 800c28c: 091b lsrs r3, r3, #4
  28303. 800c28e: f003 033f and.w r3, r3, #63 @ 0x3f
  28304. 800c292: 613b str r3, [r7, #16]
  28305. pllfracen = ((RCC-> PLLCFGR & RCC_PLLCFGR_PLL1FRACEN) >> RCC_PLLCFGR_PLL1FRACEN_Pos);
  28306. 800c294: 4b82 ldr r3, [pc, #520] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28307. 800c296: 6adb ldr r3, [r3, #44] @ 0x2c
  28308. 800c298: f003 0301 and.w r3, r3, #1
  28309. 800c29c: 60fb str r3, [r7, #12]
  28310. fracn1 = (float_t)(uint32_t)(pllfracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  28311. 800c29e: 4b80 ldr r3, [pc, #512] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28312. 800c2a0: 6b5b ldr r3, [r3, #52] @ 0x34
  28313. 800c2a2: 08db lsrs r3, r3, #3
  28314. 800c2a4: f3c3 030c ubfx r3, r3, #0, #13
  28315. 800c2a8: 68fa ldr r2, [r7, #12]
  28316. 800c2aa: fb02 f303 mul.w r3, r2, r3
  28317. 800c2ae: ee07 3a90 vmov s15, r3
  28318. 800c2b2: eef8 7a67 vcvt.f32.u32 s15, s15
  28319. 800c2b6: edc7 7a02 vstr s15, [r7, #8]
  28320. if (pllm != 0U)
  28321. 800c2ba: 693b ldr r3, [r7, #16]
  28322. 800c2bc: 2b00 cmp r3, #0
  28323. 800c2be: f000 80e1 beq.w 800c484 <HAL_RCC_GetSysClockFreq+0x2b8>
  28324. 800c2c2: 697b ldr r3, [r7, #20]
  28325. 800c2c4: 2b02 cmp r3, #2
  28326. 800c2c6: f000 8083 beq.w 800c3d0 <HAL_RCC_GetSysClockFreq+0x204>
  28327. 800c2ca: 697b ldr r3, [r7, #20]
  28328. 800c2cc: 2b02 cmp r3, #2
  28329. 800c2ce: f200 80a1 bhi.w 800c414 <HAL_RCC_GetSysClockFreq+0x248>
  28330. 800c2d2: 697b ldr r3, [r7, #20]
  28331. 800c2d4: 2b00 cmp r3, #0
  28332. 800c2d6: d003 beq.n 800c2e0 <HAL_RCC_GetSysClockFreq+0x114>
  28333. 800c2d8: 697b ldr r3, [r7, #20]
  28334. 800c2da: 2b01 cmp r3, #1
  28335. 800c2dc: d056 beq.n 800c38c <HAL_RCC_GetSysClockFreq+0x1c0>
  28336. 800c2de: e099 b.n 800c414 <HAL_RCC_GetSysClockFreq+0x248>
  28337. {
  28338. switch (pllsource)
  28339. {
  28340. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  28341. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  28342. 800c2e0: 4b6f ldr r3, [pc, #444] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28343. 800c2e2: 681b ldr r3, [r3, #0]
  28344. 800c2e4: f003 0320 and.w r3, r3, #32
  28345. 800c2e8: 2b00 cmp r3, #0
  28346. 800c2ea: d02d beq.n 800c348 <HAL_RCC_GetSysClockFreq+0x17c>
  28347. {
  28348. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  28349. 800c2ec: 4b6c ldr r3, [pc, #432] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28350. 800c2ee: 681b ldr r3, [r3, #0]
  28351. 800c2f0: 08db lsrs r3, r3, #3
  28352. 800c2f2: f003 0303 and.w r3, r3, #3
  28353. 800c2f6: 4a6b ldr r2, [pc, #428] @ (800c4a4 <HAL_RCC_GetSysClockFreq+0x2d8>)
  28354. 800c2f8: fa22 f303 lsr.w r3, r2, r3
  28355. 800c2fc: 607b str r3, [r7, #4]
  28356. pllvco = ((float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28357. 800c2fe: 687b ldr r3, [r7, #4]
  28358. 800c300: ee07 3a90 vmov s15, r3
  28359. 800c304: eef8 6a67 vcvt.f32.u32 s13, s15
  28360. 800c308: 693b ldr r3, [r7, #16]
  28361. 800c30a: ee07 3a90 vmov s15, r3
  28362. 800c30e: eef8 7a67 vcvt.f32.u32 s15, s15
  28363. 800c312: ee86 7aa7 vdiv.f32 s14, s13, s15
  28364. 800c316: 4b62 ldr r3, [pc, #392] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28365. 800c318: 6b1b ldr r3, [r3, #48] @ 0x30
  28366. 800c31a: f3c3 0308 ubfx r3, r3, #0, #9
  28367. 800c31e: ee07 3a90 vmov s15, r3
  28368. 800c322: eef8 6a67 vcvt.f32.u32 s13, s15
  28369. 800c326: ed97 6a02 vldr s12, [r7, #8]
  28370. 800c32a: eddf 5a61 vldr s11, [pc, #388] @ 800c4b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  28371. 800c32e: eec6 7a25 vdiv.f32 s15, s12, s11
  28372. 800c332: ee76 7aa7 vadd.f32 s15, s13, s15
  28373. 800c336: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28374. 800c33a: ee77 7aa6 vadd.f32 s15, s15, s13
  28375. 800c33e: ee67 7a27 vmul.f32 s15, s14, s15
  28376. 800c342: edc7 7a07 vstr s15, [r7, #28]
  28377. }
  28378. else
  28379. {
  28380. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28381. }
  28382. break;
  28383. 800c346: e087 b.n 800c458 <HAL_RCC_GetSysClockFreq+0x28c>
  28384. pllvco = ((float_t)HSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28385. 800c348: 693b ldr r3, [r7, #16]
  28386. 800c34a: ee07 3a90 vmov s15, r3
  28387. 800c34e: eef8 7a67 vcvt.f32.u32 s15, s15
  28388. 800c352: eddf 6a58 vldr s13, [pc, #352] @ 800c4b4 <HAL_RCC_GetSysClockFreq+0x2e8>
  28389. 800c356: ee86 7aa7 vdiv.f32 s14, s13, s15
  28390. 800c35a: 4b51 ldr r3, [pc, #324] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28391. 800c35c: 6b1b ldr r3, [r3, #48] @ 0x30
  28392. 800c35e: f3c3 0308 ubfx r3, r3, #0, #9
  28393. 800c362: ee07 3a90 vmov s15, r3
  28394. 800c366: eef8 6a67 vcvt.f32.u32 s13, s15
  28395. 800c36a: ed97 6a02 vldr s12, [r7, #8]
  28396. 800c36e: eddf 5a50 vldr s11, [pc, #320] @ 800c4b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  28397. 800c372: eec6 7a25 vdiv.f32 s15, s12, s11
  28398. 800c376: ee76 7aa7 vadd.f32 s15, s13, s15
  28399. 800c37a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28400. 800c37e: ee77 7aa6 vadd.f32 s15, s15, s13
  28401. 800c382: ee67 7a27 vmul.f32 s15, s14, s15
  28402. 800c386: edc7 7a07 vstr s15, [r7, #28]
  28403. break;
  28404. 800c38a: e065 b.n 800c458 <HAL_RCC_GetSysClockFreq+0x28c>
  28405. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  28406. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28407. 800c38c: 693b ldr r3, [r7, #16]
  28408. 800c38e: ee07 3a90 vmov s15, r3
  28409. 800c392: eef8 7a67 vcvt.f32.u32 s15, s15
  28410. 800c396: eddf 6a48 vldr s13, [pc, #288] @ 800c4b8 <HAL_RCC_GetSysClockFreq+0x2ec>
  28411. 800c39a: ee86 7aa7 vdiv.f32 s14, s13, s15
  28412. 800c39e: 4b40 ldr r3, [pc, #256] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28413. 800c3a0: 6b1b ldr r3, [r3, #48] @ 0x30
  28414. 800c3a2: f3c3 0308 ubfx r3, r3, #0, #9
  28415. 800c3a6: ee07 3a90 vmov s15, r3
  28416. 800c3aa: eef8 6a67 vcvt.f32.u32 s13, s15
  28417. 800c3ae: ed97 6a02 vldr s12, [r7, #8]
  28418. 800c3b2: eddf 5a3f vldr s11, [pc, #252] @ 800c4b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  28419. 800c3b6: eec6 7a25 vdiv.f32 s15, s12, s11
  28420. 800c3ba: ee76 7aa7 vadd.f32 s15, s13, s15
  28421. 800c3be: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28422. 800c3c2: ee77 7aa6 vadd.f32 s15, s15, s13
  28423. 800c3c6: ee67 7a27 vmul.f32 s15, s14, s15
  28424. 800c3ca: edc7 7a07 vstr s15, [r7, #28]
  28425. break;
  28426. 800c3ce: e043 b.n 800c458 <HAL_RCC_GetSysClockFreq+0x28c>
  28427. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  28428. pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28429. 800c3d0: 693b ldr r3, [r7, #16]
  28430. 800c3d2: ee07 3a90 vmov s15, r3
  28431. 800c3d6: eef8 7a67 vcvt.f32.u32 s15, s15
  28432. 800c3da: eddf 6a38 vldr s13, [pc, #224] @ 800c4bc <HAL_RCC_GetSysClockFreq+0x2f0>
  28433. 800c3de: ee86 7aa7 vdiv.f32 s14, s13, s15
  28434. 800c3e2: 4b2f ldr r3, [pc, #188] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28435. 800c3e4: 6b1b ldr r3, [r3, #48] @ 0x30
  28436. 800c3e6: f3c3 0308 ubfx r3, r3, #0, #9
  28437. 800c3ea: ee07 3a90 vmov s15, r3
  28438. 800c3ee: eef8 6a67 vcvt.f32.u32 s13, s15
  28439. 800c3f2: ed97 6a02 vldr s12, [r7, #8]
  28440. 800c3f6: eddf 5a2e vldr s11, [pc, #184] @ 800c4b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  28441. 800c3fa: eec6 7a25 vdiv.f32 s15, s12, s11
  28442. 800c3fe: ee76 7aa7 vadd.f32 s15, s13, s15
  28443. 800c402: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28444. 800c406: ee77 7aa6 vadd.f32 s15, s15, s13
  28445. 800c40a: ee67 7a27 vmul.f32 s15, s14, s15
  28446. 800c40e: edc7 7a07 vstr s15, [r7, #28]
  28447. break;
  28448. 800c412: e021 b.n 800c458 <HAL_RCC_GetSysClockFreq+0x28c>
  28449. default:
  28450. pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  28451. 800c414: 693b ldr r3, [r7, #16]
  28452. 800c416: ee07 3a90 vmov s15, r3
  28453. 800c41a: eef8 7a67 vcvt.f32.u32 s15, s15
  28454. 800c41e: eddf 6a26 vldr s13, [pc, #152] @ 800c4b8 <HAL_RCC_GetSysClockFreq+0x2ec>
  28455. 800c422: ee86 7aa7 vdiv.f32 s14, s13, s15
  28456. 800c426: 4b1e ldr r3, [pc, #120] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28457. 800c428: 6b1b ldr r3, [r3, #48] @ 0x30
  28458. 800c42a: f3c3 0308 ubfx r3, r3, #0, #9
  28459. 800c42e: ee07 3a90 vmov s15, r3
  28460. 800c432: eef8 6a67 vcvt.f32.u32 s13, s15
  28461. 800c436: ed97 6a02 vldr s12, [r7, #8]
  28462. 800c43a: eddf 5a1d vldr s11, [pc, #116] @ 800c4b0 <HAL_RCC_GetSysClockFreq+0x2e4>
  28463. 800c43e: eec6 7a25 vdiv.f32 s15, s12, s11
  28464. 800c442: ee76 7aa7 vadd.f32 s15, s13, s15
  28465. 800c446: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  28466. 800c44a: ee77 7aa6 vadd.f32 s15, s15, s13
  28467. 800c44e: ee67 7a27 vmul.f32 s15, s14, s15
  28468. 800c452: edc7 7a07 vstr s15, [r7, #28]
  28469. break;
  28470. 800c456: bf00 nop
  28471. }
  28472. pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + 1U) ;
  28473. 800c458: 4b11 ldr r3, [pc, #68] @ (800c4a0 <HAL_RCC_GetSysClockFreq+0x2d4>)
  28474. 800c45a: 6b1b ldr r3, [r3, #48] @ 0x30
  28475. 800c45c: 0a5b lsrs r3, r3, #9
  28476. 800c45e: f003 037f and.w r3, r3, #127 @ 0x7f
  28477. 800c462: 3301 adds r3, #1
  28478. 800c464: 603b str r3, [r7, #0]
  28479. sysclockfreq = (uint32_t)(float_t)(pllvco / (float_t)pllp);
  28480. 800c466: 683b ldr r3, [r7, #0]
  28481. 800c468: ee07 3a90 vmov s15, r3
  28482. 800c46c: eeb8 7a67 vcvt.f32.u32 s14, s15
  28483. 800c470: edd7 6a07 vldr s13, [r7, #28]
  28484. 800c474: eec6 7a87 vdiv.f32 s15, s13, s14
  28485. 800c478: eefc 7ae7 vcvt.u32.f32 s15, s15
  28486. 800c47c: ee17 3a90 vmov r3, s15
  28487. 800c480: 61bb str r3, [r7, #24]
  28488. }
  28489. else
  28490. {
  28491. sysclockfreq = 0U;
  28492. }
  28493. break;
  28494. 800c482: e005 b.n 800c490 <HAL_RCC_GetSysClockFreq+0x2c4>
  28495. sysclockfreq = 0U;
  28496. 800c484: 2300 movs r3, #0
  28497. 800c486: 61bb str r3, [r7, #24]
  28498. break;
  28499. 800c488: e002 b.n 800c490 <HAL_RCC_GetSysClockFreq+0x2c4>
  28500. default:
  28501. sysclockfreq = CSI_VALUE;
  28502. 800c48a: 4b07 ldr r3, [pc, #28] @ (800c4a8 <HAL_RCC_GetSysClockFreq+0x2dc>)
  28503. 800c48c: 61bb str r3, [r7, #24]
  28504. break;
  28505. 800c48e: bf00 nop
  28506. }
  28507. return sysclockfreq;
  28508. 800c490: 69bb ldr r3, [r7, #24]
  28509. }
  28510. 800c492: 4618 mov r0, r3
  28511. 800c494: 3724 adds r7, #36 @ 0x24
  28512. 800c496: 46bd mov sp, r7
  28513. 800c498: f85d 7b04 ldr.w r7, [sp], #4
  28514. 800c49c: 4770 bx lr
  28515. 800c49e: bf00 nop
  28516. 800c4a0: 58024400 .word 0x58024400
  28517. 800c4a4: 03d09000 .word 0x03d09000
  28518. 800c4a8: 003d0900 .word 0x003d0900
  28519. 800c4ac: 017d7840 .word 0x017d7840
  28520. 800c4b0: 46000000 .word 0x46000000
  28521. 800c4b4: 4c742400 .word 0x4c742400
  28522. 800c4b8: 4a742400 .word 0x4a742400
  28523. 800c4bc: 4bbebc20 .word 0x4bbebc20
  28524. 0800c4c0 <HAL_RCC_GetHCLKFreq>:
  28525. * @note The SystemD2Clock CMSIS variable is used to store System domain2 Clock Frequency
  28526. * and updated within this function
  28527. * @retval HCLK frequency
  28528. */
  28529. uint32_t HAL_RCC_GetHCLKFreq(void)
  28530. {
  28531. 800c4c0: b580 push {r7, lr}
  28532. 800c4c2: b082 sub sp, #8
  28533. 800c4c4: af00 add r7, sp, #0
  28534. uint32_t common_system_clock;
  28535. #if defined(RCC_D1CFGR_D1CPRE)
  28536. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE) >> RCC_D1CFGR_D1CPRE_Pos] & 0x1FU);
  28537. 800c4c6: f7ff fe81 bl 800c1cc <HAL_RCC_GetSysClockFreq>
  28538. 800c4ca: 4602 mov r2, r0
  28539. 800c4cc: 4b10 ldr r3, [pc, #64] @ (800c510 <HAL_RCC_GetHCLKFreq+0x50>)
  28540. 800c4ce: 699b ldr r3, [r3, #24]
  28541. 800c4d0: 0a1b lsrs r3, r3, #8
  28542. 800c4d2: f003 030f and.w r3, r3, #15
  28543. 800c4d6: 490f ldr r1, [pc, #60] @ (800c514 <HAL_RCC_GetHCLKFreq+0x54>)
  28544. 800c4d8: 5ccb ldrb r3, [r1, r3]
  28545. 800c4da: f003 031f and.w r3, r3, #31
  28546. 800c4de: fa22 f303 lsr.w r3, r2, r3
  28547. 800c4e2: 607b str r3, [r7, #4]
  28548. #else
  28549. common_system_clock = HAL_RCC_GetSysClockFreq() >> (D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE) >> RCC_CDCFGR1_CDCPRE_Pos] & 0x1FU);
  28550. #endif
  28551. #if defined(RCC_D1CFGR_HPRE)
  28552. SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE) >> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
  28553. 800c4e4: 4b0a ldr r3, [pc, #40] @ (800c510 <HAL_RCC_GetHCLKFreq+0x50>)
  28554. 800c4e6: 699b ldr r3, [r3, #24]
  28555. 800c4e8: f003 030f and.w r3, r3, #15
  28556. 800c4ec: 4a09 ldr r2, [pc, #36] @ (800c514 <HAL_RCC_GetHCLKFreq+0x54>)
  28557. 800c4ee: 5cd3 ldrb r3, [r2, r3]
  28558. 800c4f0: f003 031f and.w r3, r3, #31
  28559. 800c4f4: 687a ldr r2, [r7, #4]
  28560. 800c4f6: fa22 f303 lsr.w r3, r2, r3
  28561. 800c4fa: 4a07 ldr r2, [pc, #28] @ (800c518 <HAL_RCC_GetHCLKFreq+0x58>)
  28562. 800c4fc: 6013 str r3, [r2, #0]
  28563. #endif
  28564. #if defined(DUAL_CORE) && defined(CORE_CM4)
  28565. SystemCoreClock = SystemD2Clock;
  28566. #else
  28567. SystemCoreClock = common_system_clock;
  28568. 800c4fe: 4a07 ldr r2, [pc, #28] @ (800c51c <HAL_RCC_GetHCLKFreq+0x5c>)
  28569. 800c500: 687b ldr r3, [r7, #4]
  28570. 800c502: 6013 str r3, [r2, #0]
  28571. #endif /* DUAL_CORE && CORE_CM4 */
  28572. return SystemD2Clock;
  28573. 800c504: 4b04 ldr r3, [pc, #16] @ (800c518 <HAL_RCC_GetHCLKFreq+0x58>)
  28574. 800c506: 681b ldr r3, [r3, #0]
  28575. }
  28576. 800c508: 4618 mov r0, r3
  28577. 800c50a: 3708 adds r7, #8
  28578. 800c50c: 46bd mov sp, r7
  28579. 800c50e: bd80 pop {r7, pc}
  28580. 800c510: 58024400 .word 0x58024400
  28581. 800c514: 0801a288 .word 0x0801a288
  28582. 800c518: 24000038 .word 0x24000038
  28583. 800c51c: 24000034 .word 0x24000034
  28584. 0800c520 <HAL_RCC_GetPCLK1Freq>:
  28585. * @note Each time PCLK1 changes, this function must be called to update the
  28586. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  28587. * @retval PCLK1 frequency
  28588. */
  28589. uint32_t HAL_RCC_GetPCLK1Freq(void)
  28590. {
  28591. 800c520: b580 push {r7, lr}
  28592. 800c522: af00 add r7, sp, #0
  28593. #if defined (RCC_D2CFGR_D2PPRE1)
  28594. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  28595. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1) >> RCC_D2CFGR_D2PPRE1_Pos]) & 0x1FU));
  28596. 800c524: f7ff ffcc bl 800c4c0 <HAL_RCC_GetHCLKFreq>
  28597. 800c528: 4602 mov r2, r0
  28598. 800c52a: 4b06 ldr r3, [pc, #24] @ (800c544 <HAL_RCC_GetPCLK1Freq+0x24>)
  28599. 800c52c: 69db ldr r3, [r3, #28]
  28600. 800c52e: 091b lsrs r3, r3, #4
  28601. 800c530: f003 0307 and.w r3, r3, #7
  28602. 800c534: 4904 ldr r1, [pc, #16] @ (800c548 <HAL_RCC_GetPCLK1Freq+0x28>)
  28603. 800c536: 5ccb ldrb r3, [r1, r3]
  28604. 800c538: f003 031f and.w r3, r3, #31
  28605. 800c53c: fa22 f303 lsr.w r3, r2, r3
  28606. #else
  28607. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  28608. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE1) >> RCC_CDCFGR2_CDPPRE1_Pos]) & 0x1FU));
  28609. #endif
  28610. }
  28611. 800c540: 4618 mov r0, r3
  28612. 800c542: bd80 pop {r7, pc}
  28613. 800c544: 58024400 .word 0x58024400
  28614. 800c548: 0801a288 .word 0x0801a288
  28615. 0800c54c <HAL_RCC_GetPCLK2Freq>:
  28616. * @note Each time PCLK2 changes, this function must be called to update the
  28617. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  28618. * @retval PCLK1 frequency
  28619. */
  28620. uint32_t HAL_RCC_GetPCLK2Freq(void)
  28621. {
  28622. 800c54c: b580 push {r7, lr}
  28623. 800c54e: af00 add r7, sp, #0
  28624. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  28625. #if defined(RCC_D2CFGR_D2PPRE2)
  28626. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2) >> RCC_D2CFGR_D2PPRE2_Pos]) & 0x1FU));
  28627. 800c550: f7ff ffb6 bl 800c4c0 <HAL_RCC_GetHCLKFreq>
  28628. 800c554: 4602 mov r2, r0
  28629. 800c556: 4b06 ldr r3, [pc, #24] @ (800c570 <HAL_RCC_GetPCLK2Freq+0x24>)
  28630. 800c558: 69db ldr r3, [r3, #28]
  28631. 800c55a: 0a1b lsrs r3, r3, #8
  28632. 800c55c: f003 0307 and.w r3, r3, #7
  28633. 800c560: 4904 ldr r1, [pc, #16] @ (800c574 <HAL_RCC_GetPCLK2Freq+0x28>)
  28634. 800c562: 5ccb ldrb r3, [r1, r3]
  28635. 800c564: f003 031f and.w r3, r3, #31
  28636. 800c568: fa22 f303 lsr.w r3, r2, r3
  28637. #else
  28638. return (HAL_RCC_GetHCLKFreq() >> ((D1CorePrescTable[(RCC->CDCFGR2 & RCC_CDCFGR2_CDPPRE2) >> RCC_CDCFGR2_CDPPRE2_Pos]) & 0x1FU));
  28639. #endif
  28640. }
  28641. 800c56c: 4618 mov r0, r3
  28642. 800c56e: bd80 pop {r7, pc}
  28643. 800c570: 58024400 .word 0x58024400
  28644. 800c574: 0801a288 .word 0x0801a288
  28645. 0800c578 <HAL_RCC_GetClockConfig>:
  28646. * will be configured.
  28647. * @param pFLatency: Pointer on the Flash Latency.
  28648. * @retval None
  28649. */
  28650. void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
  28651. {
  28652. 800c578: b480 push {r7}
  28653. 800c57a: b083 sub sp, #12
  28654. 800c57c: af00 add r7, sp, #0
  28655. 800c57e: 6078 str r0, [r7, #4]
  28656. 800c580: 6039 str r1, [r7, #0]
  28657. /* Set all possible values for the Clock type parameter --------------------*/
  28658. RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_D1PCLK1 | RCC_CLOCKTYPE_PCLK1 |
  28659. 800c582: 687b ldr r3, [r7, #4]
  28660. 800c584: 223f movs r2, #63 @ 0x3f
  28661. 800c586: 601a str r2, [r3, #0]
  28662. RCC_CLOCKTYPE_PCLK2 | RCC_CLOCKTYPE_D3PCLK1 ;
  28663. /* Get the SYSCLK configuration --------------------------------------------*/
  28664. RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
  28665. 800c588: 4b1a ldr r3, [pc, #104] @ (800c5f4 <HAL_RCC_GetClockConfig+0x7c>)
  28666. 800c58a: 691b ldr r3, [r3, #16]
  28667. 800c58c: f003 0207 and.w r2, r3, #7
  28668. 800c590: 687b ldr r3, [r7, #4]
  28669. 800c592: 605a str r2, [r3, #4]
  28670. #if defined(RCC_D1CFGR_D1CPRE)
  28671. /* Get the SYSCLK configuration ----------------------------------------------*/
  28672. RCC_ClkInitStruct->SYSCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1CPRE);
  28673. 800c594: 4b17 ldr r3, [pc, #92] @ (800c5f4 <HAL_RCC_GetClockConfig+0x7c>)
  28674. 800c596: 699b ldr r3, [r3, #24]
  28675. 800c598: f403 6270 and.w r2, r3, #3840 @ 0xf00
  28676. 800c59c: 687b ldr r3, [r7, #4]
  28677. 800c59e: 609a str r2, [r3, #8]
  28678. /* Get the D1HCLK configuration ----------------------------------------------*/
  28679. RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_HPRE);
  28680. 800c5a0: 4b14 ldr r3, [pc, #80] @ (800c5f4 <HAL_RCC_GetClockConfig+0x7c>)
  28681. 800c5a2: 699b ldr r3, [r3, #24]
  28682. 800c5a4: f003 020f and.w r2, r3, #15
  28683. 800c5a8: 687b ldr r3, [r7, #4]
  28684. 800c5aa: 60da str r2, [r3, #12]
  28685. /* Get the APB3 configuration ----------------------------------------------*/
  28686. RCC_ClkInitStruct->APB3CLKDivider = (uint32_t)(RCC->D1CFGR & RCC_D1CFGR_D1PPRE);
  28687. 800c5ac: 4b11 ldr r3, [pc, #68] @ (800c5f4 <HAL_RCC_GetClockConfig+0x7c>)
  28688. 800c5ae: 699b ldr r3, [r3, #24]
  28689. 800c5b0: f003 0270 and.w r2, r3, #112 @ 0x70
  28690. 800c5b4: 687b ldr r3, [r7, #4]
  28691. 800c5b6: 611a str r2, [r3, #16]
  28692. /* Get the APB1 configuration ----------------------------------------------*/
  28693. RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE1);
  28694. 800c5b8: 4b0e ldr r3, [pc, #56] @ (800c5f4 <HAL_RCC_GetClockConfig+0x7c>)
  28695. 800c5ba: 69db ldr r3, [r3, #28]
  28696. 800c5bc: f003 0270 and.w r2, r3, #112 @ 0x70
  28697. 800c5c0: 687b ldr r3, [r7, #4]
  28698. 800c5c2: 615a str r2, [r3, #20]
  28699. /* Get the APB2 configuration ----------------------------------------------*/
  28700. RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)(RCC->D2CFGR & RCC_D2CFGR_D2PPRE2);
  28701. 800c5c4: 4b0b ldr r3, [pc, #44] @ (800c5f4 <HAL_RCC_GetClockConfig+0x7c>)
  28702. 800c5c6: 69db ldr r3, [r3, #28]
  28703. 800c5c8: f403 62e0 and.w r2, r3, #1792 @ 0x700
  28704. 800c5cc: 687b ldr r3, [r7, #4]
  28705. 800c5ce: 619a str r2, [r3, #24]
  28706. /* Get the APB4 configuration ----------------------------------------------*/
  28707. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->D3CFGR & RCC_D3CFGR_D3PPRE);
  28708. 800c5d0: 4b08 ldr r3, [pc, #32] @ (800c5f4 <HAL_RCC_GetClockConfig+0x7c>)
  28709. 800c5d2: 6a1b ldr r3, [r3, #32]
  28710. 800c5d4: f003 0270 and.w r2, r3, #112 @ 0x70
  28711. 800c5d8: 687b ldr r3, [r7, #4]
  28712. 800c5da: 61da str r2, [r3, #28]
  28713. /* Get the APB4 configuration ----------------------------------------------*/
  28714. RCC_ClkInitStruct->APB4CLKDivider = (uint32_t)(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE);
  28715. #endif
  28716. /* Get the Flash Wait State (Latency) configuration ------------------------*/
  28717. *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
  28718. 800c5dc: 4b06 ldr r3, [pc, #24] @ (800c5f8 <HAL_RCC_GetClockConfig+0x80>)
  28719. 800c5de: 681b ldr r3, [r3, #0]
  28720. 800c5e0: f003 020f and.w r2, r3, #15
  28721. 800c5e4: 683b ldr r3, [r7, #0]
  28722. 800c5e6: 601a str r2, [r3, #0]
  28723. }
  28724. 800c5e8: bf00 nop
  28725. 800c5ea: 370c adds r7, #12
  28726. 800c5ec: 46bd mov sp, r7
  28727. 800c5ee: f85d 7b04 ldr.w r7, [sp], #4
  28728. 800c5f2: 4770 bx lr
  28729. 800c5f4: 58024400 .word 0x58024400
  28730. 800c5f8: 52002000 .word 0x52002000
  28731. 0800c5fc <HAL_RCCEx_PeriphCLKConfig>:
  28732. * (*) : Available on some STM32H7 lines only.
  28733. *
  28734. * @retval HAL status
  28735. */
  28736. HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
  28737. {
  28738. 800c5fc: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  28739. 800c600: b0c8 sub sp, #288 @ 0x120
  28740. 800c602: af00 add r7, sp, #0
  28741. 800c604: f8c7 010c str.w r0, [r7, #268] @ 0x10c
  28742. uint32_t tmpreg;
  28743. uint32_t tickstart;
  28744. HAL_StatusTypeDef ret = HAL_OK; /* Intermediate status */
  28745. 800c608: 2300 movs r3, #0
  28746. 800c60a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28747. HAL_StatusTypeDef status = HAL_OK; /* Final status */
  28748. 800c60e: 2300 movs r3, #0
  28749. 800c610: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28750. /*---------------------------- SPDIFRX configuration -------------------------------*/
  28751. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX)
  28752. 800c614: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28753. 800c618: e9d3 2300 ldrd r2, r3, [r3]
  28754. 800c61c: f002 6400 and.w r4, r2, #134217728 @ 0x8000000
  28755. 800c620: 2500 movs r5, #0
  28756. 800c622: ea54 0305 orrs.w r3, r4, r5
  28757. 800c626: d049 beq.n 800c6bc <HAL_RCCEx_PeriphCLKConfig+0xc0>
  28758. {
  28759. switch (PeriphClkInit->SpdifrxClockSelection)
  28760. 800c628: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28761. 800c62c: 6e9b ldr r3, [r3, #104] @ 0x68
  28762. 800c62e: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  28763. 800c632: d02f beq.n 800c694 <HAL_RCCEx_PeriphCLKConfig+0x98>
  28764. 800c634: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  28765. 800c638: d828 bhi.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x90>
  28766. 800c63a: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28767. 800c63e: d01a beq.n 800c676 <HAL_RCCEx_PeriphCLKConfig+0x7a>
  28768. 800c640: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  28769. 800c644: d822 bhi.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x90>
  28770. 800c646: 2b00 cmp r3, #0
  28771. 800c648: d003 beq.n 800c652 <HAL_RCCEx_PeriphCLKConfig+0x56>
  28772. 800c64a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  28773. 800c64e: d007 beq.n 800c660 <HAL_RCCEx_PeriphCLKConfig+0x64>
  28774. 800c650: e01c b.n 800c68c <HAL_RCCEx_PeriphCLKConfig+0x90>
  28775. {
  28776. case RCC_SPDIFRXCLKSOURCE_PLL: /* PLL is used as clock source for SPDIFRX*/
  28777. /* Enable PLL1Q Clock output generated form System PLL . */
  28778. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28779. 800c652: 4bb8 ldr r3, [pc, #736] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28780. 800c654: 6adb ldr r3, [r3, #44] @ 0x2c
  28781. 800c656: 4ab7 ldr r2, [pc, #732] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28782. 800c658: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28783. 800c65c: 62d3 str r3, [r2, #44] @ 0x2c
  28784. /* SPDIFRX clock source configuration done later after clock selection check */
  28785. break;
  28786. 800c65e: e01a b.n 800c696 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28787. case RCC_SPDIFRXCLKSOURCE_PLL2: /* PLL2 is used as clock source for SPDIFRX*/
  28788. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  28789. 800c660: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28790. 800c664: 3308 adds r3, #8
  28791. 800c666: 2102 movs r1, #2
  28792. 800c668: 4618 mov r0, r3
  28793. 800c66a: f002 fb45 bl 800ecf8 <RCCEx_PLL2_Config>
  28794. 800c66e: 4603 mov r3, r0
  28795. 800c670: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28796. /* SPDIFRX clock source configuration done later after clock selection check */
  28797. break;
  28798. 800c674: e00f b.n 800c696 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28799. case RCC_SPDIFRXCLKSOURCE_PLL3: /* PLL3 is used as clock source for SPDIFRX*/
  28800. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  28801. 800c676: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28802. 800c67a: 3328 adds r3, #40 @ 0x28
  28803. 800c67c: 2102 movs r1, #2
  28804. 800c67e: 4618 mov r0, r3
  28805. 800c680: f002 fbec bl 800ee5c <RCCEx_PLL3_Config>
  28806. 800c684: 4603 mov r3, r0
  28807. 800c686: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28808. /* SPDIFRX clock source configuration done later after clock selection check */
  28809. break;
  28810. 800c68a: e004 b.n 800c696 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28811. /* Internal OSC clock is used as source of SPDIFRX clock*/
  28812. /* SPDIFRX clock source configuration done later after clock selection check */
  28813. break;
  28814. default:
  28815. ret = HAL_ERROR;
  28816. 800c68c: 2301 movs r3, #1
  28817. 800c68e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28818. break;
  28819. 800c692: e000 b.n 800c696 <HAL_RCCEx_PeriphCLKConfig+0x9a>
  28820. break;
  28821. 800c694: bf00 nop
  28822. }
  28823. if (ret == HAL_OK)
  28824. 800c696: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28825. 800c69a: 2b00 cmp r3, #0
  28826. 800c69c: d10a bne.n 800c6b4 <HAL_RCCEx_PeriphCLKConfig+0xb8>
  28827. {
  28828. /* Set the source of SPDIFRX clock*/
  28829. __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifrxClockSelection);
  28830. 800c69e: 4ba5 ldr r3, [pc, #660] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28831. 800c6a0: 6d1b ldr r3, [r3, #80] @ 0x50
  28832. 800c6a2: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  28833. 800c6a6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28834. 800c6aa: 6e9b ldr r3, [r3, #104] @ 0x68
  28835. 800c6ac: 4aa1 ldr r2, [pc, #644] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28836. 800c6ae: 430b orrs r3, r1
  28837. 800c6b0: 6513 str r3, [r2, #80] @ 0x50
  28838. 800c6b2: e003 b.n 800c6bc <HAL_RCCEx_PeriphCLKConfig+0xc0>
  28839. }
  28840. else
  28841. {
  28842. /* set overall return value */
  28843. status = ret;
  28844. 800c6b4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28845. 800c6b8: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28846. }
  28847. }
  28848. /*---------------------------- SAI1 configuration -------------------------------*/
  28849. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1)
  28850. 800c6bc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28851. 800c6c0: e9d3 2300 ldrd r2, r3, [r3]
  28852. 800c6c4: f402 7880 and.w r8, r2, #256 @ 0x100
  28853. 800c6c8: f04f 0900 mov.w r9, #0
  28854. 800c6cc: ea58 0309 orrs.w r3, r8, r9
  28855. 800c6d0: d047 beq.n 800c762 <HAL_RCCEx_PeriphCLKConfig+0x166>
  28856. {
  28857. switch (PeriphClkInit->Sai1ClockSelection)
  28858. 800c6d2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28859. 800c6d6: 6d9b ldr r3, [r3, #88] @ 0x58
  28860. 800c6d8: 2b04 cmp r3, #4
  28861. 800c6da: d82a bhi.n 800c732 <HAL_RCCEx_PeriphCLKConfig+0x136>
  28862. 800c6dc: a201 add r2, pc, #4 @ (adr r2, 800c6e4 <HAL_RCCEx_PeriphCLKConfig+0xe8>)
  28863. 800c6de: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  28864. 800c6e2: bf00 nop
  28865. 800c6e4: 0800c6f9 .word 0x0800c6f9
  28866. 800c6e8: 0800c707 .word 0x0800c707
  28867. 800c6ec: 0800c71d .word 0x0800c71d
  28868. 800c6f0: 0800c73b .word 0x0800c73b
  28869. 800c6f4: 0800c73b .word 0x0800c73b
  28870. {
  28871. case RCC_SAI1CLKSOURCE_PLL: /* PLL is used as clock source for SAI1*/
  28872. /* Enable SAI Clock output generated form System PLL . */
  28873. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28874. 800c6f8: 4b8e ldr r3, [pc, #568] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28875. 800c6fa: 6adb ldr r3, [r3, #44] @ 0x2c
  28876. 800c6fc: 4a8d ldr r2, [pc, #564] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28877. 800c6fe: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28878. 800c702: 62d3 str r3, [r2, #44] @ 0x2c
  28879. /* SAI1 clock source configuration done later after clock selection check */
  28880. break;
  28881. 800c704: e01a b.n 800c73c <HAL_RCCEx_PeriphCLKConfig+0x140>
  28882. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI1*/
  28883. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28884. 800c706: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28885. 800c70a: 3308 adds r3, #8
  28886. 800c70c: 2100 movs r1, #0
  28887. 800c70e: 4618 mov r0, r3
  28888. 800c710: f002 faf2 bl 800ecf8 <RCCEx_PLL2_Config>
  28889. 800c714: 4603 mov r3, r0
  28890. 800c716: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28891. /* SAI1 clock source configuration done later after clock selection check */
  28892. break;
  28893. 800c71a: e00f b.n 800c73c <HAL_RCCEx_PeriphCLKConfig+0x140>
  28894. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI1*/
  28895. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28896. 800c71c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28897. 800c720: 3328 adds r3, #40 @ 0x28
  28898. 800c722: 2100 movs r1, #0
  28899. 800c724: 4618 mov r0, r3
  28900. 800c726: f002 fb99 bl 800ee5c <RCCEx_PLL3_Config>
  28901. 800c72a: 4603 mov r3, r0
  28902. 800c72c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28903. /* SAI1 clock source configuration done later after clock selection check */
  28904. break;
  28905. 800c730: e004 b.n 800c73c <HAL_RCCEx_PeriphCLKConfig+0x140>
  28906. /* HSI, HSE, or CSI oscillator is used as source of SAI1 clock */
  28907. /* SAI1 clock source configuration done later after clock selection check */
  28908. break;
  28909. default:
  28910. ret = HAL_ERROR;
  28911. 800c732: 2301 movs r3, #1
  28912. 800c734: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28913. break;
  28914. 800c738: e000 b.n 800c73c <HAL_RCCEx_PeriphCLKConfig+0x140>
  28915. break;
  28916. 800c73a: bf00 nop
  28917. }
  28918. if (ret == HAL_OK)
  28919. 800c73c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28920. 800c740: 2b00 cmp r3, #0
  28921. 800c742: d10a bne.n 800c75a <HAL_RCCEx_PeriphCLKConfig+0x15e>
  28922. {
  28923. /* Set the source of SAI1 clock*/
  28924. __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
  28925. 800c744: 4b7b ldr r3, [pc, #492] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28926. 800c746: 6d1b ldr r3, [r3, #80] @ 0x50
  28927. 800c748: f023 0107 bic.w r1, r3, #7
  28928. 800c74c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28929. 800c750: 6d9b ldr r3, [r3, #88] @ 0x58
  28930. 800c752: 4a78 ldr r2, [pc, #480] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28931. 800c754: 430b orrs r3, r1
  28932. 800c756: 6513 str r3, [r2, #80] @ 0x50
  28933. 800c758: e003 b.n 800c762 <HAL_RCCEx_PeriphCLKConfig+0x166>
  28934. }
  28935. else
  28936. {
  28937. /* set overall return value */
  28938. status = ret;
  28939. 800c75a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  28940. 800c75e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  28941. }
  28942. }
  28943. #if defined(SAI3)
  28944. /*---------------------------- SAI2/3 configuration -------------------------------*/
  28945. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI23) == RCC_PERIPHCLK_SAI23)
  28946. 800c762: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28947. 800c766: e9d3 2300 ldrd r2, r3, [r3]
  28948. 800c76a: f402 7a00 and.w sl, r2, #512 @ 0x200
  28949. 800c76e: f04f 0b00 mov.w fp, #0
  28950. 800c772: ea5a 030b orrs.w r3, sl, fp
  28951. 800c776: d04c beq.n 800c812 <HAL_RCCEx_PeriphCLKConfig+0x216>
  28952. {
  28953. switch (PeriphClkInit->Sai23ClockSelection)
  28954. 800c778: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28955. 800c77c: 6ddb ldr r3, [r3, #92] @ 0x5c
  28956. 800c77e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28957. 800c782: d030 beq.n 800c7e6 <HAL_RCCEx_PeriphCLKConfig+0x1ea>
  28958. 800c784: f5b3 7f80 cmp.w r3, #256 @ 0x100
  28959. 800c788: d829 bhi.n 800c7de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28960. 800c78a: 2bc0 cmp r3, #192 @ 0xc0
  28961. 800c78c: d02d beq.n 800c7ea <HAL_RCCEx_PeriphCLKConfig+0x1ee>
  28962. 800c78e: 2bc0 cmp r3, #192 @ 0xc0
  28963. 800c790: d825 bhi.n 800c7de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28964. 800c792: 2b80 cmp r3, #128 @ 0x80
  28965. 800c794: d018 beq.n 800c7c8 <HAL_RCCEx_PeriphCLKConfig+0x1cc>
  28966. 800c796: 2b80 cmp r3, #128 @ 0x80
  28967. 800c798: d821 bhi.n 800c7de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28968. 800c79a: 2b00 cmp r3, #0
  28969. 800c79c: d002 beq.n 800c7a4 <HAL_RCCEx_PeriphCLKConfig+0x1a8>
  28970. 800c79e: 2b40 cmp r3, #64 @ 0x40
  28971. 800c7a0: d007 beq.n 800c7b2 <HAL_RCCEx_PeriphCLKConfig+0x1b6>
  28972. 800c7a2: e01c b.n 800c7de <HAL_RCCEx_PeriphCLKConfig+0x1e2>
  28973. {
  28974. case RCC_SAI23CLKSOURCE_PLL: /* PLL is used as clock source for SAI2/3 */
  28975. /* Enable SAI Clock output generated form System PLL . */
  28976. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  28977. 800c7a4: 4b63 ldr r3, [pc, #396] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28978. 800c7a6: 6adb ldr r3, [r3, #44] @ 0x2c
  28979. 800c7a8: 4a62 ldr r2, [pc, #392] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  28980. 800c7aa: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  28981. 800c7ae: 62d3 str r3, [r2, #44] @ 0x2c
  28982. /* SAI2/3 clock source configuration done later after clock selection check */
  28983. break;
  28984. 800c7b0: e01c b.n 800c7ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28985. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2/3 */
  28986. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  28987. 800c7b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  28988. 800c7b6: 3308 adds r3, #8
  28989. 800c7b8: 2100 movs r1, #0
  28990. 800c7ba: 4618 mov r0, r3
  28991. 800c7bc: f002 fa9c bl 800ecf8 <RCCEx_PLL2_Config>
  28992. 800c7c0: 4603 mov r3, r0
  28993. 800c7c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  28994. /* SAI2/3 clock source configuration done later after clock selection check */
  28995. break;
  28996. 800c7c6: e011 b.n 800c7ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  28997. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2/3 */
  28998. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  28999. 800c7c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29000. 800c7cc: 3328 adds r3, #40 @ 0x28
  29001. 800c7ce: 2100 movs r1, #0
  29002. 800c7d0: 4618 mov r0, r3
  29003. 800c7d2: f002 fb43 bl 800ee5c <RCCEx_PLL3_Config>
  29004. 800c7d6: 4603 mov r3, r0
  29005. 800c7d8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29006. /* SAI2/3 clock source configuration done later after clock selection check */
  29007. break;
  29008. 800c7dc: e006 b.n 800c7ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29009. /* HSI, HSE, or CSI oscillator is used as source of SAI2/3 clock */
  29010. /* SAI2/3 clock source configuration done later after clock selection check */
  29011. break;
  29012. default:
  29013. ret = HAL_ERROR;
  29014. 800c7de: 2301 movs r3, #1
  29015. 800c7e0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29016. break;
  29017. 800c7e4: e002 b.n 800c7ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29018. break;
  29019. 800c7e6: bf00 nop
  29020. 800c7e8: e000 b.n 800c7ec <HAL_RCCEx_PeriphCLKConfig+0x1f0>
  29021. break;
  29022. 800c7ea: bf00 nop
  29023. }
  29024. if (ret == HAL_OK)
  29025. 800c7ec: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29026. 800c7f0: 2b00 cmp r3, #0
  29027. 800c7f2: d10a bne.n 800c80a <HAL_RCCEx_PeriphCLKConfig+0x20e>
  29028. {
  29029. /* Set the source of SAI2/3 clock*/
  29030. __HAL_RCC_SAI23_CONFIG(PeriphClkInit->Sai23ClockSelection);
  29031. 800c7f4: 4b4f ldr r3, [pc, #316] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29032. 800c7f6: 6d1b ldr r3, [r3, #80] @ 0x50
  29033. 800c7f8: f423 71e0 bic.w r1, r3, #448 @ 0x1c0
  29034. 800c7fc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29035. 800c800: 6ddb ldr r3, [r3, #92] @ 0x5c
  29036. 800c802: 4a4c ldr r2, [pc, #304] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29037. 800c804: 430b orrs r3, r1
  29038. 800c806: 6513 str r3, [r2, #80] @ 0x50
  29039. 800c808: e003 b.n 800c812 <HAL_RCCEx_PeriphCLKConfig+0x216>
  29040. }
  29041. else
  29042. {
  29043. /* set overall return value */
  29044. status = ret;
  29045. 800c80a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29046. 800c80e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29047. }
  29048. #endif /*SAI2B*/
  29049. #if defined(SAI4)
  29050. /*---------------------------- SAI4A configuration -------------------------------*/
  29051. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4A) == RCC_PERIPHCLK_SAI4A)
  29052. 800c812: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29053. 800c816: e9d3 2300 ldrd r2, r3, [r3]
  29054. 800c81a: f402 6380 and.w r3, r2, #1024 @ 0x400
  29055. 800c81e: f8c7 3100 str.w r3, [r7, #256] @ 0x100
  29056. 800c822: 2300 movs r3, #0
  29057. 800c824: f8c7 3104 str.w r3, [r7, #260] @ 0x104
  29058. 800c828: e9d7 1240 ldrd r1, r2, [r7, #256] @ 0x100
  29059. 800c82c: 460b mov r3, r1
  29060. 800c82e: 4313 orrs r3, r2
  29061. 800c830: d053 beq.n 800c8da <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29062. {
  29063. switch (PeriphClkInit->Sai4AClockSelection)
  29064. 800c832: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29065. 800c836: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29066. 800c83a: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29067. 800c83e: d035 beq.n 800c8ac <HAL_RCCEx_PeriphCLKConfig+0x2b0>
  29068. 800c840: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  29069. 800c844: d82e bhi.n 800c8a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29070. 800c846: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29071. 800c84a: d031 beq.n 800c8b0 <HAL_RCCEx_PeriphCLKConfig+0x2b4>
  29072. 800c84c: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  29073. 800c850: d828 bhi.n 800c8a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29074. 800c852: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29075. 800c856: d01a beq.n 800c88e <HAL_RCCEx_PeriphCLKConfig+0x292>
  29076. 800c858: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  29077. 800c85c: d822 bhi.n 800c8a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29078. 800c85e: 2b00 cmp r3, #0
  29079. 800c860: d003 beq.n 800c86a <HAL_RCCEx_PeriphCLKConfig+0x26e>
  29080. 800c862: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  29081. 800c866: d007 beq.n 800c878 <HAL_RCCEx_PeriphCLKConfig+0x27c>
  29082. 800c868: e01c b.n 800c8a4 <HAL_RCCEx_PeriphCLKConfig+0x2a8>
  29083. {
  29084. case RCC_SAI4ACLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29085. /* Enable SAI Clock output generated form System PLL . */
  29086. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29087. 800c86a: 4b32 ldr r3, [pc, #200] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29088. 800c86c: 6adb ldr r3, [r3, #44] @ 0x2c
  29089. 800c86e: 4a31 ldr r2, [pc, #196] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29090. 800c870: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29091. 800c874: 62d3 str r3, [r2, #44] @ 0x2c
  29092. /* SAI1 clock source configuration done later after clock selection check */
  29093. break;
  29094. 800c876: e01c b.n 800c8b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29095. case RCC_SAI4ACLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29096. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29097. 800c878: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29098. 800c87c: 3308 adds r3, #8
  29099. 800c87e: 2100 movs r1, #0
  29100. 800c880: 4618 mov r0, r3
  29101. 800c882: f002 fa39 bl 800ecf8 <RCCEx_PLL2_Config>
  29102. 800c886: 4603 mov r3, r0
  29103. 800c888: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29104. /* SAI2 clock source configuration done later after clock selection check */
  29105. break;
  29106. 800c88c: e011 b.n 800c8b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29107. case RCC_SAI4ACLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29108. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29109. 800c88e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29110. 800c892: 3328 adds r3, #40 @ 0x28
  29111. 800c894: 2100 movs r1, #0
  29112. 800c896: 4618 mov r0, r3
  29113. 800c898: f002 fae0 bl 800ee5c <RCCEx_PLL3_Config>
  29114. 800c89c: 4603 mov r3, r0
  29115. 800c89e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29116. /* SAI1 clock source configuration done later after clock selection check */
  29117. break;
  29118. 800c8a2: e006 b.n 800c8b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29119. /* SAI4A clock source configuration done later after clock selection check */
  29120. break;
  29121. #endif /* RCC_VER_3_0 */
  29122. default:
  29123. ret = HAL_ERROR;
  29124. 800c8a4: 2301 movs r3, #1
  29125. 800c8a6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29126. break;
  29127. 800c8aa: e002 b.n 800c8b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29128. break;
  29129. 800c8ac: bf00 nop
  29130. 800c8ae: e000 b.n 800c8b2 <HAL_RCCEx_PeriphCLKConfig+0x2b6>
  29131. break;
  29132. 800c8b0: bf00 nop
  29133. }
  29134. if (ret == HAL_OK)
  29135. 800c8b2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29136. 800c8b6: 2b00 cmp r3, #0
  29137. 800c8b8: d10b bne.n 800c8d2 <HAL_RCCEx_PeriphCLKConfig+0x2d6>
  29138. {
  29139. /* Set the source of SAI4A clock*/
  29140. __HAL_RCC_SAI4A_CONFIG(PeriphClkInit->Sai4AClockSelection);
  29141. 800c8ba: 4b1e ldr r3, [pc, #120] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29142. 800c8bc: 6d9b ldr r3, [r3, #88] @ 0x58
  29143. 800c8be: f423 0160 bic.w r1, r3, #14680064 @ 0xe00000
  29144. 800c8c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29145. 800c8c6: f8d3 30a8 ldr.w r3, [r3, #168] @ 0xa8
  29146. 800c8ca: 4a1a ldr r2, [pc, #104] @ (800c934 <HAL_RCCEx_PeriphCLKConfig+0x338>)
  29147. 800c8cc: 430b orrs r3, r1
  29148. 800c8ce: 6593 str r3, [r2, #88] @ 0x58
  29149. 800c8d0: e003 b.n 800c8da <HAL_RCCEx_PeriphCLKConfig+0x2de>
  29150. }
  29151. else
  29152. {
  29153. /* set overall return value */
  29154. status = ret;
  29155. 800c8d2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29156. 800c8d6: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29157. }
  29158. }
  29159. /*---------------------------- SAI4B configuration -------------------------------*/
  29160. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI4B) == RCC_PERIPHCLK_SAI4B)
  29161. 800c8da: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29162. 800c8de: e9d3 2300 ldrd r2, r3, [r3]
  29163. 800c8e2: f402 6300 and.w r3, r2, #2048 @ 0x800
  29164. 800c8e6: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
  29165. 800c8ea: 2300 movs r3, #0
  29166. 800c8ec: f8c7 30fc str.w r3, [r7, #252] @ 0xfc
  29167. 800c8f0: e9d7 123e ldrd r1, r2, [r7, #248] @ 0xf8
  29168. 800c8f4: 460b mov r3, r1
  29169. 800c8f6: 4313 orrs r3, r2
  29170. 800c8f8: d056 beq.n 800c9a8 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29171. {
  29172. switch (PeriphClkInit->Sai4BClockSelection)
  29173. 800c8fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29174. 800c8fe: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29175. 800c902: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29176. 800c906: d038 beq.n 800c97a <HAL_RCCEx_PeriphCLKConfig+0x37e>
  29177. 800c908: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  29178. 800c90c: d831 bhi.n 800c972 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29179. 800c90e: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29180. 800c912: d034 beq.n 800c97e <HAL_RCCEx_PeriphCLKConfig+0x382>
  29181. 800c914: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  29182. 800c918: d82b bhi.n 800c972 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29183. 800c91a: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29184. 800c91e: d01d beq.n 800c95c <HAL_RCCEx_PeriphCLKConfig+0x360>
  29185. 800c920: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  29186. 800c924: d825 bhi.n 800c972 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29187. 800c926: 2b00 cmp r3, #0
  29188. 800c928: d006 beq.n 800c938 <HAL_RCCEx_PeriphCLKConfig+0x33c>
  29189. 800c92a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  29190. 800c92e: d00a beq.n 800c946 <HAL_RCCEx_PeriphCLKConfig+0x34a>
  29191. 800c930: e01f b.n 800c972 <HAL_RCCEx_PeriphCLKConfig+0x376>
  29192. 800c932: bf00 nop
  29193. 800c934: 58024400 .word 0x58024400
  29194. {
  29195. case RCC_SAI4BCLKSOURCE_PLL: /* PLL is used as clock source for SAI2*/
  29196. /* Enable SAI Clock output generated form System PLL . */
  29197. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29198. 800c938: 4ba2 ldr r3, [pc, #648] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29199. 800c93a: 6adb ldr r3, [r3, #44] @ 0x2c
  29200. 800c93c: 4aa1 ldr r2, [pc, #644] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29201. 800c93e: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29202. 800c942: 62d3 str r3, [r2, #44] @ 0x2c
  29203. /* SAI1 clock source configuration done later after clock selection check */
  29204. break;
  29205. 800c944: e01c b.n 800c980 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29206. case RCC_SAI4BCLKSOURCE_PLL2: /* PLL2 is used as clock source for SAI2*/
  29207. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29208. 800c946: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29209. 800c94a: 3308 adds r3, #8
  29210. 800c94c: 2100 movs r1, #0
  29211. 800c94e: 4618 mov r0, r3
  29212. 800c950: f002 f9d2 bl 800ecf8 <RCCEx_PLL2_Config>
  29213. 800c954: 4603 mov r3, r0
  29214. 800c956: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29215. /* SAI2 clock source configuration done later after clock selection check */
  29216. break;
  29217. 800c95a: e011 b.n 800c980 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29218. case RCC_SAI4BCLKSOURCE_PLL3: /* PLL3 is used as clock source for SAI2*/
  29219. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29220. 800c95c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29221. 800c960: 3328 adds r3, #40 @ 0x28
  29222. 800c962: 2100 movs r1, #0
  29223. 800c964: 4618 mov r0, r3
  29224. 800c966: f002 fa79 bl 800ee5c <RCCEx_PLL3_Config>
  29225. 800c96a: 4603 mov r3, r0
  29226. 800c96c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29227. /* SAI1 clock source configuration done later after clock selection check */
  29228. break;
  29229. 800c970: e006 b.n 800c980 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29230. /* SAI4B clock source configuration done later after clock selection check */
  29231. break;
  29232. #endif /* RCC_VER_3_0 */
  29233. default:
  29234. ret = HAL_ERROR;
  29235. 800c972: 2301 movs r3, #1
  29236. 800c974: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29237. break;
  29238. 800c978: e002 b.n 800c980 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29239. break;
  29240. 800c97a: bf00 nop
  29241. 800c97c: e000 b.n 800c980 <HAL_RCCEx_PeriphCLKConfig+0x384>
  29242. break;
  29243. 800c97e: bf00 nop
  29244. }
  29245. if (ret == HAL_OK)
  29246. 800c980: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29247. 800c984: 2b00 cmp r3, #0
  29248. 800c986: d10b bne.n 800c9a0 <HAL_RCCEx_PeriphCLKConfig+0x3a4>
  29249. {
  29250. /* Set the source of SAI4B clock*/
  29251. __HAL_RCC_SAI4B_CONFIG(PeriphClkInit->Sai4BClockSelection);
  29252. 800c988: 4b8e ldr r3, [pc, #568] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29253. 800c98a: 6d9b ldr r3, [r3, #88] @ 0x58
  29254. 800c98c: f023 61e0 bic.w r1, r3, #117440512 @ 0x7000000
  29255. 800c990: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29256. 800c994: f8d3 30ac ldr.w r3, [r3, #172] @ 0xac
  29257. 800c998: 4a8a ldr r2, [pc, #552] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29258. 800c99a: 430b orrs r3, r1
  29259. 800c99c: 6593 str r3, [r2, #88] @ 0x58
  29260. 800c99e: e003 b.n 800c9a8 <HAL_RCCEx_PeriphCLKConfig+0x3ac>
  29261. }
  29262. else
  29263. {
  29264. /* set overall return value */
  29265. status = ret;
  29266. 800c9a0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29267. 800c9a4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29268. }
  29269. #endif /*SAI4*/
  29270. #if defined(QUADSPI)
  29271. /*---------------------------- QSPI configuration -------------------------------*/
  29272. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_QSPI) == RCC_PERIPHCLK_QSPI)
  29273. 800c9a8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29274. 800c9ac: e9d3 2300 ldrd r2, r3, [r3]
  29275. 800c9b0: f002 7300 and.w r3, r2, #33554432 @ 0x2000000
  29276. 800c9b4: f8c7 30f0 str.w r3, [r7, #240] @ 0xf0
  29277. 800c9b8: 2300 movs r3, #0
  29278. 800c9ba: f8c7 30f4 str.w r3, [r7, #244] @ 0xf4
  29279. 800c9be: e9d7 123c ldrd r1, r2, [r7, #240] @ 0xf0
  29280. 800c9c2: 460b mov r3, r1
  29281. 800c9c4: 4313 orrs r3, r2
  29282. 800c9c6: d03a beq.n 800ca3e <HAL_RCCEx_PeriphCLKConfig+0x442>
  29283. {
  29284. switch (PeriphClkInit->QspiClockSelection)
  29285. 800c9c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29286. 800c9cc: 6cdb ldr r3, [r3, #76] @ 0x4c
  29287. 800c9ce: 2b30 cmp r3, #48 @ 0x30
  29288. 800c9d0: d01f beq.n 800ca12 <HAL_RCCEx_PeriphCLKConfig+0x416>
  29289. 800c9d2: 2b30 cmp r3, #48 @ 0x30
  29290. 800c9d4: d819 bhi.n 800ca0a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29291. 800c9d6: 2b20 cmp r3, #32
  29292. 800c9d8: d00c beq.n 800c9f4 <HAL_RCCEx_PeriphCLKConfig+0x3f8>
  29293. 800c9da: 2b20 cmp r3, #32
  29294. 800c9dc: d815 bhi.n 800ca0a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29295. 800c9de: 2b00 cmp r3, #0
  29296. 800c9e0: d019 beq.n 800ca16 <HAL_RCCEx_PeriphCLKConfig+0x41a>
  29297. 800c9e2: 2b10 cmp r3, #16
  29298. 800c9e4: d111 bne.n 800ca0a <HAL_RCCEx_PeriphCLKConfig+0x40e>
  29299. {
  29300. case RCC_QSPICLKSOURCE_PLL: /* PLL is used as clock source for QSPI*/
  29301. /* Enable QSPI Clock output generated form System PLL . */
  29302. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29303. 800c9e6: 4b77 ldr r3, [pc, #476] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29304. 800c9e8: 6adb ldr r3, [r3, #44] @ 0x2c
  29305. 800c9ea: 4a76 ldr r2, [pc, #472] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29306. 800c9ec: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29307. 800c9f0: 62d3 str r3, [r2, #44] @ 0x2c
  29308. /* QSPI clock source configuration done later after clock selection check */
  29309. break;
  29310. 800c9f2: e011 b.n 800ca18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29311. case RCC_QSPICLKSOURCE_PLL2: /* PLL2 is used as clock source for QSPI*/
  29312. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29313. 800c9f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29314. 800c9f8: 3308 adds r3, #8
  29315. 800c9fa: 2102 movs r1, #2
  29316. 800c9fc: 4618 mov r0, r3
  29317. 800c9fe: f002 f97b bl 800ecf8 <RCCEx_PLL2_Config>
  29318. 800ca02: 4603 mov r3, r0
  29319. 800ca04: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29320. /* QSPI clock source configuration done later after clock selection check */
  29321. break;
  29322. 800ca08: e006 b.n 800ca18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29323. case RCC_QSPICLKSOURCE_D1HCLK:
  29324. /* Domain1 HCLK clock selected as QSPI kernel peripheral clock */
  29325. break;
  29326. default:
  29327. ret = HAL_ERROR;
  29328. 800ca0a: 2301 movs r3, #1
  29329. 800ca0c: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29330. break;
  29331. 800ca10: e002 b.n 800ca18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29332. break;
  29333. 800ca12: bf00 nop
  29334. 800ca14: e000 b.n 800ca18 <HAL_RCCEx_PeriphCLKConfig+0x41c>
  29335. break;
  29336. 800ca16: bf00 nop
  29337. }
  29338. if (ret == HAL_OK)
  29339. 800ca18: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29340. 800ca1c: 2b00 cmp r3, #0
  29341. 800ca1e: d10a bne.n 800ca36 <HAL_RCCEx_PeriphCLKConfig+0x43a>
  29342. {
  29343. /* Set the source of QSPI clock*/
  29344. __HAL_RCC_QSPI_CONFIG(PeriphClkInit->QspiClockSelection);
  29345. 800ca20: 4b68 ldr r3, [pc, #416] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29346. 800ca22: 6cdb ldr r3, [r3, #76] @ 0x4c
  29347. 800ca24: f023 0130 bic.w r1, r3, #48 @ 0x30
  29348. 800ca28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29349. 800ca2c: 6cdb ldr r3, [r3, #76] @ 0x4c
  29350. 800ca2e: 4a65 ldr r2, [pc, #404] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29351. 800ca30: 430b orrs r3, r1
  29352. 800ca32: 64d3 str r3, [r2, #76] @ 0x4c
  29353. 800ca34: e003 b.n 800ca3e <HAL_RCCEx_PeriphCLKConfig+0x442>
  29354. }
  29355. else
  29356. {
  29357. /* set overall return value */
  29358. status = ret;
  29359. 800ca36: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29360. 800ca3a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29361. }
  29362. }
  29363. #endif /*OCTOSPI*/
  29364. /*---------------------------- SPI1/2/3 configuration -------------------------------*/
  29365. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI123) == RCC_PERIPHCLK_SPI123)
  29366. 800ca3e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29367. 800ca42: e9d3 2300 ldrd r2, r3, [r3]
  29368. 800ca46: f402 5380 and.w r3, r2, #4096 @ 0x1000
  29369. 800ca4a: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
  29370. 800ca4e: 2300 movs r3, #0
  29371. 800ca50: f8c7 30ec str.w r3, [r7, #236] @ 0xec
  29372. 800ca54: e9d7 123a ldrd r1, r2, [r7, #232] @ 0xe8
  29373. 800ca58: 460b mov r3, r1
  29374. 800ca5a: 4313 orrs r3, r2
  29375. 800ca5c: d051 beq.n 800cb02 <HAL_RCCEx_PeriphCLKConfig+0x506>
  29376. {
  29377. switch (PeriphClkInit->Spi123ClockSelection)
  29378. 800ca5e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29379. 800ca62: 6e1b ldr r3, [r3, #96] @ 0x60
  29380. 800ca64: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29381. 800ca68: d035 beq.n 800cad6 <HAL_RCCEx_PeriphCLKConfig+0x4da>
  29382. 800ca6a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  29383. 800ca6e: d82e bhi.n 800cace <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29384. 800ca70: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29385. 800ca74: d031 beq.n 800cada <HAL_RCCEx_PeriphCLKConfig+0x4de>
  29386. 800ca76: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  29387. 800ca7a: d828 bhi.n 800cace <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29388. 800ca7c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29389. 800ca80: d01a beq.n 800cab8 <HAL_RCCEx_PeriphCLKConfig+0x4bc>
  29390. 800ca82: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  29391. 800ca86: d822 bhi.n 800cace <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29392. 800ca88: 2b00 cmp r3, #0
  29393. 800ca8a: d003 beq.n 800ca94 <HAL_RCCEx_PeriphCLKConfig+0x498>
  29394. 800ca8c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  29395. 800ca90: d007 beq.n 800caa2 <HAL_RCCEx_PeriphCLKConfig+0x4a6>
  29396. 800ca92: e01c b.n 800cace <HAL_RCCEx_PeriphCLKConfig+0x4d2>
  29397. {
  29398. case RCC_SPI123CLKSOURCE_PLL: /* PLL is used as clock source for SPI1/2/3 */
  29399. /* Enable SPI Clock output generated form System PLL . */
  29400. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29401. 800ca94: 4b4b ldr r3, [pc, #300] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29402. 800ca96: 6adb ldr r3, [r3, #44] @ 0x2c
  29403. 800ca98: 4a4a ldr r2, [pc, #296] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29404. 800ca9a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29405. 800ca9e: 62d3 str r3, [r2, #44] @ 0x2c
  29406. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29407. break;
  29408. 800caa0: e01c b.n 800cadc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29409. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI1/2/3 */
  29410. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  29411. 800caa2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29412. 800caa6: 3308 adds r3, #8
  29413. 800caa8: 2100 movs r1, #0
  29414. 800caaa: 4618 mov r0, r3
  29415. 800caac: f002 f924 bl 800ecf8 <RCCEx_PLL2_Config>
  29416. 800cab0: 4603 mov r3, r0
  29417. 800cab2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29418. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29419. break;
  29420. 800cab6: e011 b.n 800cadc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29421. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI1/2/3 */
  29422. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  29423. 800cab8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29424. 800cabc: 3328 adds r3, #40 @ 0x28
  29425. 800cabe: 2100 movs r1, #0
  29426. 800cac0: 4618 mov r0, r3
  29427. 800cac2: f002 f9cb bl 800ee5c <RCCEx_PLL3_Config>
  29428. 800cac6: 4603 mov r3, r0
  29429. 800cac8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29430. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29431. break;
  29432. 800cacc: e006 b.n 800cadc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29433. /* HSI, HSE, or CSI oscillator is used as source of SPI1/2/3 clock */
  29434. /* SPI1/2/3 clock source configuration done later after clock selection check */
  29435. break;
  29436. default:
  29437. ret = HAL_ERROR;
  29438. 800cace: 2301 movs r3, #1
  29439. 800cad0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29440. break;
  29441. 800cad4: e002 b.n 800cadc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29442. break;
  29443. 800cad6: bf00 nop
  29444. 800cad8: e000 b.n 800cadc <HAL_RCCEx_PeriphCLKConfig+0x4e0>
  29445. break;
  29446. 800cada: bf00 nop
  29447. }
  29448. if (ret == HAL_OK)
  29449. 800cadc: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29450. 800cae0: 2b00 cmp r3, #0
  29451. 800cae2: d10a bne.n 800cafa <HAL_RCCEx_PeriphCLKConfig+0x4fe>
  29452. {
  29453. /* Set the source of SPI1/2/3 clock*/
  29454. __HAL_RCC_SPI123_CONFIG(PeriphClkInit->Spi123ClockSelection);
  29455. 800cae4: 4b37 ldr r3, [pc, #220] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29456. 800cae6: 6d1b ldr r3, [r3, #80] @ 0x50
  29457. 800cae8: f423 41e0 bic.w r1, r3, #28672 @ 0x7000
  29458. 800caec: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29459. 800caf0: 6e1b ldr r3, [r3, #96] @ 0x60
  29460. 800caf2: 4a34 ldr r2, [pc, #208] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29461. 800caf4: 430b orrs r3, r1
  29462. 800caf6: 6513 str r3, [r2, #80] @ 0x50
  29463. 800caf8: e003 b.n 800cb02 <HAL_RCCEx_PeriphCLKConfig+0x506>
  29464. }
  29465. else
  29466. {
  29467. /* set overall return value */
  29468. status = ret;
  29469. 800cafa: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29470. 800cafe: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29471. }
  29472. }
  29473. /*---------------------------- SPI4/5 configuration -------------------------------*/
  29474. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI45) == RCC_PERIPHCLK_SPI45)
  29475. 800cb02: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29476. 800cb06: e9d3 2300 ldrd r2, r3, [r3]
  29477. 800cb0a: f402 5300 and.w r3, r2, #8192 @ 0x2000
  29478. 800cb0e: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  29479. 800cb12: 2300 movs r3, #0
  29480. 800cb14: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  29481. 800cb18: e9d7 1238 ldrd r1, r2, [r7, #224] @ 0xe0
  29482. 800cb1c: 460b mov r3, r1
  29483. 800cb1e: 4313 orrs r3, r2
  29484. 800cb20: d056 beq.n 800cbd0 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29485. {
  29486. switch (PeriphClkInit->Spi45ClockSelection)
  29487. 800cb22: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29488. 800cb26: 6e5b ldr r3, [r3, #100] @ 0x64
  29489. 800cb28: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29490. 800cb2c: d033 beq.n 800cb96 <HAL_RCCEx_PeriphCLKConfig+0x59a>
  29491. 800cb2e: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  29492. 800cb32: d82c bhi.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x592>
  29493. 800cb34: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29494. 800cb38: d02f beq.n 800cb9a <HAL_RCCEx_PeriphCLKConfig+0x59e>
  29495. 800cb3a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  29496. 800cb3e: d826 bhi.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x592>
  29497. 800cb40: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29498. 800cb44: d02b beq.n 800cb9e <HAL_RCCEx_PeriphCLKConfig+0x5a2>
  29499. 800cb46: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  29500. 800cb4a: d820 bhi.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x592>
  29501. 800cb4c: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29502. 800cb50: d012 beq.n 800cb78 <HAL_RCCEx_PeriphCLKConfig+0x57c>
  29503. 800cb52: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  29504. 800cb56: d81a bhi.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x592>
  29505. 800cb58: 2b00 cmp r3, #0
  29506. 800cb5a: d022 beq.n 800cba2 <HAL_RCCEx_PeriphCLKConfig+0x5a6>
  29507. 800cb5c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  29508. 800cb60: d115 bne.n 800cb8e <HAL_RCCEx_PeriphCLKConfig+0x592>
  29509. /* SPI4/5 clock source configuration done later after clock selection check */
  29510. break;
  29511. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI4/5 */
  29512. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29513. 800cb62: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29514. 800cb66: 3308 adds r3, #8
  29515. 800cb68: 2101 movs r1, #1
  29516. 800cb6a: 4618 mov r0, r3
  29517. 800cb6c: f002 f8c4 bl 800ecf8 <RCCEx_PLL2_Config>
  29518. 800cb70: 4603 mov r3, r0
  29519. 800cb72: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29520. /* SPI4/5 clock source configuration done later after clock selection check */
  29521. break;
  29522. 800cb76: e015 b.n 800cba4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29523. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI4/5 */
  29524. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29525. 800cb78: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29526. 800cb7c: 3328 adds r3, #40 @ 0x28
  29527. 800cb7e: 2101 movs r1, #1
  29528. 800cb80: 4618 mov r0, r3
  29529. 800cb82: f002 f96b bl 800ee5c <RCCEx_PLL3_Config>
  29530. 800cb86: 4603 mov r3, r0
  29531. 800cb88: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29532. /* SPI4/5 clock source configuration done later after clock selection check */
  29533. break;
  29534. 800cb8c: e00a b.n 800cba4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29535. /* HSE, oscillator is used as source of SPI4/5 clock */
  29536. /* SPI4/5 clock source configuration done later after clock selection check */
  29537. break;
  29538. default:
  29539. ret = HAL_ERROR;
  29540. 800cb8e: 2301 movs r3, #1
  29541. 800cb90: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29542. break;
  29543. 800cb94: e006 b.n 800cba4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29544. break;
  29545. 800cb96: bf00 nop
  29546. 800cb98: e004 b.n 800cba4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29547. break;
  29548. 800cb9a: bf00 nop
  29549. 800cb9c: e002 b.n 800cba4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29550. break;
  29551. 800cb9e: bf00 nop
  29552. 800cba0: e000 b.n 800cba4 <HAL_RCCEx_PeriphCLKConfig+0x5a8>
  29553. break;
  29554. 800cba2: bf00 nop
  29555. }
  29556. if (ret == HAL_OK)
  29557. 800cba4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29558. 800cba8: 2b00 cmp r3, #0
  29559. 800cbaa: d10d bne.n 800cbc8 <HAL_RCCEx_PeriphCLKConfig+0x5cc>
  29560. {
  29561. /* Set the source of SPI4/5 clock*/
  29562. __HAL_RCC_SPI45_CONFIG(PeriphClkInit->Spi45ClockSelection);
  29563. 800cbac: 4b05 ldr r3, [pc, #20] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29564. 800cbae: 6d1b ldr r3, [r3, #80] @ 0x50
  29565. 800cbb0: f423 21e0 bic.w r1, r3, #458752 @ 0x70000
  29566. 800cbb4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29567. 800cbb8: 6e5b ldr r3, [r3, #100] @ 0x64
  29568. 800cbba: 4a02 ldr r2, [pc, #8] @ (800cbc4 <HAL_RCCEx_PeriphCLKConfig+0x5c8>)
  29569. 800cbbc: 430b orrs r3, r1
  29570. 800cbbe: 6513 str r3, [r2, #80] @ 0x50
  29571. 800cbc0: e006 b.n 800cbd0 <HAL_RCCEx_PeriphCLKConfig+0x5d4>
  29572. 800cbc2: bf00 nop
  29573. 800cbc4: 58024400 .word 0x58024400
  29574. }
  29575. else
  29576. {
  29577. /* set overall return value */
  29578. status = ret;
  29579. 800cbc8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29580. 800cbcc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29581. }
  29582. }
  29583. /*---------------------------- SPI6 configuration -------------------------------*/
  29584. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPI6) == RCC_PERIPHCLK_SPI6)
  29585. 800cbd0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29586. 800cbd4: e9d3 2300 ldrd r2, r3, [r3]
  29587. 800cbd8: f402 4380 and.w r3, r2, #16384 @ 0x4000
  29588. 800cbdc: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  29589. 800cbe0: 2300 movs r3, #0
  29590. 800cbe2: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  29591. 800cbe6: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
  29592. 800cbea: 460b mov r3, r1
  29593. 800cbec: 4313 orrs r3, r2
  29594. 800cbee: d055 beq.n 800cc9c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  29595. {
  29596. switch (PeriphClkInit->Spi6ClockSelection)
  29597. 800cbf0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29598. 800cbf4: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  29599. 800cbf8: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29600. 800cbfc: d033 beq.n 800cc66 <HAL_RCCEx_PeriphCLKConfig+0x66a>
  29601. 800cbfe: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  29602. 800cc02: d82c bhi.n 800cc5e <HAL_RCCEx_PeriphCLKConfig+0x662>
  29603. 800cc04: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29604. 800cc08: d02f beq.n 800cc6a <HAL_RCCEx_PeriphCLKConfig+0x66e>
  29605. 800cc0a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  29606. 800cc0e: d826 bhi.n 800cc5e <HAL_RCCEx_PeriphCLKConfig+0x662>
  29607. 800cc10: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29608. 800cc14: d02b beq.n 800cc6e <HAL_RCCEx_PeriphCLKConfig+0x672>
  29609. 800cc16: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  29610. 800cc1a: d820 bhi.n 800cc5e <HAL_RCCEx_PeriphCLKConfig+0x662>
  29611. 800cc1c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29612. 800cc20: d012 beq.n 800cc48 <HAL_RCCEx_PeriphCLKConfig+0x64c>
  29613. 800cc22: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29614. 800cc26: d81a bhi.n 800cc5e <HAL_RCCEx_PeriphCLKConfig+0x662>
  29615. 800cc28: 2b00 cmp r3, #0
  29616. 800cc2a: d022 beq.n 800cc72 <HAL_RCCEx_PeriphCLKConfig+0x676>
  29617. 800cc2c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  29618. 800cc30: d115 bne.n 800cc5e <HAL_RCCEx_PeriphCLKConfig+0x662>
  29619. /* SPI6 clock source configuration done later after clock selection check */
  29620. break;
  29621. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is used as clock source for SPI6*/
  29622. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29623. 800cc32: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29624. 800cc36: 3308 adds r3, #8
  29625. 800cc38: 2101 movs r1, #1
  29626. 800cc3a: 4618 mov r0, r3
  29627. 800cc3c: f002 f85c bl 800ecf8 <RCCEx_PLL2_Config>
  29628. 800cc40: 4603 mov r3, r0
  29629. 800cc42: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29630. /* SPI6 clock source configuration done later after clock selection check */
  29631. break;
  29632. 800cc46: e015 b.n 800cc74 <HAL_RCCEx_PeriphCLKConfig+0x678>
  29633. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is used as clock source for SPI6*/
  29634. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  29635. 800cc48: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29636. 800cc4c: 3328 adds r3, #40 @ 0x28
  29637. 800cc4e: 2101 movs r1, #1
  29638. 800cc50: 4618 mov r0, r3
  29639. 800cc52: f002 f903 bl 800ee5c <RCCEx_PLL3_Config>
  29640. 800cc56: 4603 mov r3, r0
  29641. 800cc58: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29642. /* SPI6 clock source configuration done later after clock selection check */
  29643. break;
  29644. 800cc5c: e00a b.n 800cc74 <HAL_RCCEx_PeriphCLKConfig+0x678>
  29645. /* SPI6 clock source configuration done later after clock selection check */
  29646. break;
  29647. #endif
  29648. default:
  29649. ret = HAL_ERROR;
  29650. 800cc5e: 2301 movs r3, #1
  29651. 800cc60: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29652. break;
  29653. 800cc64: e006 b.n 800cc74 <HAL_RCCEx_PeriphCLKConfig+0x678>
  29654. break;
  29655. 800cc66: bf00 nop
  29656. 800cc68: e004 b.n 800cc74 <HAL_RCCEx_PeriphCLKConfig+0x678>
  29657. break;
  29658. 800cc6a: bf00 nop
  29659. 800cc6c: e002 b.n 800cc74 <HAL_RCCEx_PeriphCLKConfig+0x678>
  29660. break;
  29661. 800cc6e: bf00 nop
  29662. 800cc70: e000 b.n 800cc74 <HAL_RCCEx_PeriphCLKConfig+0x678>
  29663. break;
  29664. 800cc72: bf00 nop
  29665. }
  29666. if (ret == HAL_OK)
  29667. 800cc74: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29668. 800cc78: 2b00 cmp r3, #0
  29669. 800cc7a: d10b bne.n 800cc94 <HAL_RCCEx_PeriphCLKConfig+0x698>
  29670. {
  29671. /* Set the source of SPI6 clock*/
  29672. __HAL_RCC_SPI6_CONFIG(PeriphClkInit->Spi6ClockSelection);
  29673. 800cc7c: 4ba3 ldr r3, [pc, #652] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29674. 800cc7e: 6d9b ldr r3, [r3, #88] @ 0x58
  29675. 800cc80: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  29676. 800cc84: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29677. 800cc88: f8d3 30b0 ldr.w r3, [r3, #176] @ 0xb0
  29678. 800cc8c: 4a9f ldr r2, [pc, #636] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29679. 800cc8e: 430b orrs r3, r1
  29680. 800cc90: 6593 str r3, [r2, #88] @ 0x58
  29681. 800cc92: e003 b.n 800cc9c <HAL_RCCEx_PeriphCLKConfig+0x6a0>
  29682. }
  29683. else
  29684. {
  29685. /* set overall return value */
  29686. status = ret;
  29687. 800cc94: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29688. 800cc98: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29689. }
  29690. #endif /*DSI*/
  29691. #if defined(FDCAN1) || defined(FDCAN2)
  29692. /*---------------------------- FDCAN configuration -------------------------------*/
  29693. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FDCAN) == RCC_PERIPHCLK_FDCAN)
  29694. 800cc9c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29695. 800cca0: e9d3 2300 ldrd r2, r3, [r3]
  29696. 800cca4: f402 4300 and.w r3, r2, #32768 @ 0x8000
  29697. 800cca8: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  29698. 800ccac: 2300 movs r3, #0
  29699. 800ccae: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  29700. 800ccb2: e9d7 1234 ldrd r1, r2, [r7, #208] @ 0xd0
  29701. 800ccb6: 460b mov r3, r1
  29702. 800ccb8: 4313 orrs r3, r2
  29703. 800ccba: d037 beq.n 800cd2c <HAL_RCCEx_PeriphCLKConfig+0x730>
  29704. {
  29705. switch (PeriphClkInit->FdcanClockSelection)
  29706. 800ccbc: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29707. 800ccc0: 6f1b ldr r3, [r3, #112] @ 0x70
  29708. 800ccc2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29709. 800ccc6: d00e beq.n 800cce6 <HAL_RCCEx_PeriphCLKConfig+0x6ea>
  29710. 800ccc8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  29711. 800cccc: d816 bhi.n 800ccfc <HAL_RCCEx_PeriphCLKConfig+0x700>
  29712. 800ccce: 2b00 cmp r3, #0
  29713. 800ccd0: d018 beq.n 800cd04 <HAL_RCCEx_PeriphCLKConfig+0x708>
  29714. 800ccd2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  29715. 800ccd6: d111 bne.n 800ccfc <HAL_RCCEx_PeriphCLKConfig+0x700>
  29716. {
  29717. case RCC_FDCANCLKSOURCE_PLL: /* PLL is used as clock source for FDCAN*/
  29718. /* Enable FDCAN Clock output generated form System PLL . */
  29719. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29720. 800ccd8: 4b8c ldr r3, [pc, #560] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29721. 800ccda: 6adb ldr r3, [r3, #44] @ 0x2c
  29722. 800ccdc: 4a8b ldr r2, [pc, #556] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29723. 800ccde: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29724. 800cce2: 62d3 str r3, [r2, #44] @ 0x2c
  29725. /* FDCAN clock source configuration done later after clock selection check */
  29726. break;
  29727. 800cce4: e00f b.n 800cd06 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29728. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is used as clock source for FDCAN*/
  29729. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  29730. 800cce6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29731. 800ccea: 3308 adds r3, #8
  29732. 800ccec: 2101 movs r1, #1
  29733. 800ccee: 4618 mov r0, r3
  29734. 800ccf0: f002 f802 bl 800ecf8 <RCCEx_PLL2_Config>
  29735. 800ccf4: 4603 mov r3, r0
  29736. 800ccf6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29737. /* FDCAN clock source configuration done later after clock selection check */
  29738. break;
  29739. 800ccfa: e004 b.n 800cd06 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29740. /* HSE is used as clock source for FDCAN*/
  29741. /* FDCAN clock source configuration done later after clock selection check */
  29742. break;
  29743. default:
  29744. ret = HAL_ERROR;
  29745. 800ccfc: 2301 movs r3, #1
  29746. 800ccfe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29747. break;
  29748. 800cd02: e000 b.n 800cd06 <HAL_RCCEx_PeriphCLKConfig+0x70a>
  29749. break;
  29750. 800cd04: bf00 nop
  29751. }
  29752. if (ret == HAL_OK)
  29753. 800cd06: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29754. 800cd0a: 2b00 cmp r3, #0
  29755. 800cd0c: d10a bne.n 800cd24 <HAL_RCCEx_PeriphCLKConfig+0x728>
  29756. {
  29757. /* Set the source of FDCAN clock*/
  29758. __HAL_RCC_FDCAN_CONFIG(PeriphClkInit->FdcanClockSelection);
  29759. 800cd0e: 4b7f ldr r3, [pc, #508] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29760. 800cd10: 6d1b ldr r3, [r3, #80] @ 0x50
  29761. 800cd12: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  29762. 800cd16: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29763. 800cd1a: 6f1b ldr r3, [r3, #112] @ 0x70
  29764. 800cd1c: 4a7b ldr r2, [pc, #492] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29765. 800cd1e: 430b orrs r3, r1
  29766. 800cd20: 6513 str r3, [r2, #80] @ 0x50
  29767. 800cd22: e003 b.n 800cd2c <HAL_RCCEx_PeriphCLKConfig+0x730>
  29768. }
  29769. else
  29770. {
  29771. /* set overall return value */
  29772. status = ret;
  29773. 800cd24: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29774. 800cd28: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29775. }
  29776. }
  29777. #endif /*FDCAN1 || FDCAN2*/
  29778. /*---------------------------- FMC configuration -------------------------------*/
  29779. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMC) == RCC_PERIPHCLK_FMC)
  29780. 800cd2c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29781. 800cd30: e9d3 2300 ldrd r2, r3, [r3]
  29782. 800cd34: f002 7380 and.w r3, r2, #16777216 @ 0x1000000
  29783. 800cd38: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  29784. 800cd3c: 2300 movs r3, #0
  29785. 800cd3e: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
  29786. 800cd42: e9d7 1232 ldrd r1, r2, [r7, #200] @ 0xc8
  29787. 800cd46: 460b mov r3, r1
  29788. 800cd48: 4313 orrs r3, r2
  29789. 800cd4a: d039 beq.n 800cdc0 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  29790. {
  29791. switch (PeriphClkInit->FmcClockSelection)
  29792. 800cd4c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29793. 800cd50: 6c9b ldr r3, [r3, #72] @ 0x48
  29794. 800cd52: 2b03 cmp r3, #3
  29795. 800cd54: d81c bhi.n 800cd90 <HAL_RCCEx_PeriphCLKConfig+0x794>
  29796. 800cd56: a201 add r2, pc, #4 @ (adr r2, 800cd5c <HAL_RCCEx_PeriphCLKConfig+0x760>)
  29797. 800cd58: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  29798. 800cd5c: 0800cd99 .word 0x0800cd99
  29799. 800cd60: 0800cd6d .word 0x0800cd6d
  29800. 800cd64: 0800cd7b .word 0x0800cd7b
  29801. 800cd68: 0800cd99 .word 0x0800cd99
  29802. {
  29803. case RCC_FMCCLKSOURCE_PLL: /* PLL is used as clock source for FMC*/
  29804. /* Enable FMC Clock output generated form System PLL . */
  29805. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  29806. 800cd6c: 4b67 ldr r3, [pc, #412] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29807. 800cd6e: 6adb ldr r3, [r3, #44] @ 0x2c
  29808. 800cd70: 4a66 ldr r2, [pc, #408] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29809. 800cd72: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  29810. 800cd76: 62d3 str r3, [r2, #44] @ 0x2c
  29811. /* FMC clock source configuration done later after clock selection check */
  29812. break;
  29813. 800cd78: e00f b.n 800cd9a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29814. case RCC_FMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for FMC*/
  29815. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  29816. 800cd7a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29817. 800cd7e: 3308 adds r3, #8
  29818. 800cd80: 2102 movs r1, #2
  29819. 800cd82: 4618 mov r0, r3
  29820. 800cd84: f001 ffb8 bl 800ecf8 <RCCEx_PLL2_Config>
  29821. 800cd88: 4603 mov r3, r0
  29822. 800cd8a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29823. /* FMC clock source configuration done later after clock selection check */
  29824. break;
  29825. 800cd8e: e004 b.n 800cd9a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29826. case RCC_FMCCLKSOURCE_HCLK:
  29827. /* D1/CD HCLK clock selected as FMC kernel peripheral clock */
  29828. break;
  29829. default:
  29830. ret = HAL_ERROR;
  29831. 800cd90: 2301 movs r3, #1
  29832. 800cd92: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29833. break;
  29834. 800cd96: e000 b.n 800cd9a <HAL_RCCEx_PeriphCLKConfig+0x79e>
  29835. break;
  29836. 800cd98: bf00 nop
  29837. }
  29838. if (ret == HAL_OK)
  29839. 800cd9a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29840. 800cd9e: 2b00 cmp r3, #0
  29841. 800cda0: d10a bne.n 800cdb8 <HAL_RCCEx_PeriphCLKConfig+0x7bc>
  29842. {
  29843. /* Set the source of FMC clock*/
  29844. __HAL_RCC_FMC_CONFIG(PeriphClkInit->FmcClockSelection);
  29845. 800cda2: 4b5a ldr r3, [pc, #360] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29846. 800cda4: 6cdb ldr r3, [r3, #76] @ 0x4c
  29847. 800cda6: f023 0103 bic.w r1, r3, #3
  29848. 800cdaa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29849. 800cdae: 6c9b ldr r3, [r3, #72] @ 0x48
  29850. 800cdb0: 4a56 ldr r2, [pc, #344] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29851. 800cdb2: 430b orrs r3, r1
  29852. 800cdb4: 64d3 str r3, [r2, #76] @ 0x4c
  29853. 800cdb6: e003 b.n 800cdc0 <HAL_RCCEx_PeriphCLKConfig+0x7c4>
  29854. }
  29855. else
  29856. {
  29857. /* set overall return value */
  29858. status = ret;
  29859. 800cdb8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29860. 800cdbc: f887 311e strb.w r3, [r7, #286] @ 0x11e
  29861. }
  29862. }
  29863. /*---------------------------- RTC configuration -------------------------------*/
  29864. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == RCC_PERIPHCLK_RTC)
  29865. 800cdc0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29866. 800cdc4: e9d3 2300 ldrd r2, r3, [r3]
  29867. 800cdc8: f402 0380 and.w r3, r2, #4194304 @ 0x400000
  29868. 800cdcc: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  29869. 800cdd0: 2300 movs r3, #0
  29870. 800cdd2: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  29871. 800cdd6: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
  29872. 800cdda: 460b mov r3, r1
  29873. 800cddc: 4313 orrs r3, r2
  29874. 800cdde: f000 809f beq.w 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x924>
  29875. {
  29876. /* check for RTC Parameters used to output RTCCLK */
  29877. assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
  29878. /* Enable write access to Backup domain */
  29879. SET_BIT(PWR->CR1, PWR_CR1_DBP);
  29880. 800cde2: 4b4b ldr r3, [pc, #300] @ (800cf10 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29881. 800cde4: 681b ldr r3, [r3, #0]
  29882. 800cde6: 4a4a ldr r2, [pc, #296] @ (800cf10 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29883. 800cde8: f443 7380 orr.w r3, r3, #256 @ 0x100
  29884. 800cdec: 6013 str r3, [r2, #0]
  29885. /* Wait for Backup domain Write protection disable */
  29886. tickstart = HAL_GetTick();
  29887. 800cdee: f7f8 fd55 bl 800589c <HAL_GetTick>
  29888. 800cdf2: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  29889. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  29890. 800cdf6: e00b b.n 800ce10 <HAL_RCCEx_PeriphCLKConfig+0x814>
  29891. {
  29892. if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  29893. 800cdf8: f7f8 fd50 bl 800589c <HAL_GetTick>
  29894. 800cdfc: 4602 mov r2, r0
  29895. 800cdfe: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  29896. 800ce02: 1ad3 subs r3, r2, r3
  29897. 800ce04: 2b64 cmp r3, #100 @ 0x64
  29898. 800ce06: d903 bls.n 800ce10 <HAL_RCCEx_PeriphCLKConfig+0x814>
  29899. {
  29900. ret = HAL_TIMEOUT;
  29901. 800ce08: 2303 movs r3, #3
  29902. 800ce0a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29903. break;
  29904. 800ce0e: e005 b.n 800ce1c <HAL_RCCEx_PeriphCLKConfig+0x820>
  29905. while ((PWR->CR1 & PWR_CR1_DBP) == 0U)
  29906. 800ce10: 4b3f ldr r3, [pc, #252] @ (800cf10 <HAL_RCCEx_PeriphCLKConfig+0x914>)
  29907. 800ce12: 681b ldr r3, [r3, #0]
  29908. 800ce14: f403 7380 and.w r3, r3, #256 @ 0x100
  29909. 800ce18: 2b00 cmp r3, #0
  29910. 800ce1a: d0ed beq.n 800cdf8 <HAL_RCCEx_PeriphCLKConfig+0x7fc>
  29911. }
  29912. }
  29913. if (ret == HAL_OK)
  29914. 800ce1c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29915. 800ce20: 2b00 cmp r3, #0
  29916. 800ce22: d179 bne.n 800cf18 <HAL_RCCEx_PeriphCLKConfig+0x91c>
  29917. {
  29918. /* Reset the Backup domain only if the RTC Clock source selection is modified */
  29919. if ((RCC->BDCR & RCC_BDCR_RTCSEL) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))
  29920. 800ce24: 4b39 ldr r3, [pc, #228] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29921. 800ce26: 6f1a ldr r2, [r3, #112] @ 0x70
  29922. 800ce28: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29923. 800ce2c: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29924. 800ce30: 4053 eors r3, r2
  29925. 800ce32: f403 7340 and.w r3, r3, #768 @ 0x300
  29926. 800ce36: 2b00 cmp r3, #0
  29927. 800ce38: d015 beq.n 800ce66 <HAL_RCCEx_PeriphCLKConfig+0x86a>
  29928. {
  29929. /* Store the content of BDCR register before the reset of Backup Domain */
  29930. tmpreg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
  29931. 800ce3a: 4b34 ldr r3, [pc, #208] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29932. 800ce3c: 6f1b ldr r3, [r3, #112] @ 0x70
  29933. 800ce3e: f423 7340 bic.w r3, r3, #768 @ 0x300
  29934. 800ce42: f8c7 3114 str.w r3, [r7, #276] @ 0x114
  29935. /* RTC Clock selection can be changed only if the Backup Domain is reset */
  29936. __HAL_RCC_BACKUPRESET_FORCE();
  29937. 800ce46: 4b31 ldr r3, [pc, #196] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29938. 800ce48: 6f1b ldr r3, [r3, #112] @ 0x70
  29939. 800ce4a: 4a30 ldr r2, [pc, #192] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29940. 800ce4c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
  29941. 800ce50: 6713 str r3, [r2, #112] @ 0x70
  29942. __HAL_RCC_BACKUPRESET_RELEASE();
  29943. 800ce52: 4b2e ldr r3, [pc, #184] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29944. 800ce54: 6f1b ldr r3, [r3, #112] @ 0x70
  29945. 800ce56: 4a2d ldr r2, [pc, #180] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29946. 800ce58: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  29947. 800ce5c: 6713 str r3, [r2, #112] @ 0x70
  29948. /* Restore the Content of BDCR register */
  29949. RCC->BDCR = tmpreg;
  29950. 800ce5e: 4a2b ldr r2, [pc, #172] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29951. 800ce60: f8d7 3114 ldr.w r3, [r7, #276] @ 0x114
  29952. 800ce64: 6713 str r3, [r2, #112] @ 0x70
  29953. }
  29954. /* If LSE is selected as RTC clock source (and enabled prior to Backup Domain reset), wait for LSE reactivation */
  29955. if (PeriphClkInit->RTCClockSelection == RCC_RTCCLKSOURCE_LSE)
  29956. 800ce66: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29957. 800ce6a: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  29958. 800ce6e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  29959. 800ce72: d118 bne.n 800cea6 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  29960. {
  29961. /* Get Start Tick*/
  29962. tickstart = HAL_GetTick();
  29963. 800ce74: f7f8 fd12 bl 800589c <HAL_GetTick>
  29964. 800ce78: f8c7 0118 str.w r0, [r7, #280] @ 0x118
  29965. /* Wait till LSE is ready */
  29966. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  29967. 800ce7c: e00d b.n 800ce9a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  29968. {
  29969. if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
  29970. 800ce7e: f7f8 fd0d bl 800589c <HAL_GetTick>
  29971. 800ce82: 4602 mov r2, r0
  29972. 800ce84: f8d7 3118 ldr.w r3, [r7, #280] @ 0x118
  29973. 800ce88: 1ad2 subs r2, r2, r3
  29974. 800ce8a: f241 3388 movw r3, #5000 @ 0x1388
  29975. 800ce8e: 429a cmp r2, r3
  29976. 800ce90: d903 bls.n 800ce9a <HAL_RCCEx_PeriphCLKConfig+0x89e>
  29977. {
  29978. ret = HAL_TIMEOUT;
  29979. 800ce92: 2303 movs r3, #3
  29980. 800ce94: f887 311f strb.w r3, [r7, #287] @ 0x11f
  29981. break;
  29982. 800ce98: e005 b.n 800cea6 <HAL_RCCEx_PeriphCLKConfig+0x8aa>
  29983. while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  29984. 800ce9a: 4b1c ldr r3, [pc, #112] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  29985. 800ce9c: 6f1b ldr r3, [r3, #112] @ 0x70
  29986. 800ce9e: f003 0302 and.w r3, r3, #2
  29987. 800cea2: 2b00 cmp r3, #0
  29988. 800cea4: d0eb beq.n 800ce7e <HAL_RCCEx_PeriphCLKConfig+0x882>
  29989. }
  29990. }
  29991. }
  29992. if (ret == HAL_OK)
  29993. 800cea6: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  29994. 800ceaa: 2b00 cmp r3, #0
  29995. 800ceac: d129 bne.n 800cf02 <HAL_RCCEx_PeriphCLKConfig+0x906>
  29996. {
  29997. __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
  29998. 800ceae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  29999. 800ceb2: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30000. 800ceb6: f403 7340 and.w r3, r3, #768 @ 0x300
  30001. 800ceba: f5b3 7f40 cmp.w r3, #768 @ 0x300
  30002. 800cebe: d10e bne.n 800cede <HAL_RCCEx_PeriphCLKConfig+0x8e2>
  30003. 800cec0: 4b12 ldr r3, [pc, #72] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30004. 800cec2: 691b ldr r3, [r3, #16]
  30005. 800cec4: f423 517c bic.w r1, r3, #16128 @ 0x3f00
  30006. 800cec8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30007. 800cecc: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30008. 800ced0: 091a lsrs r2, r3, #4
  30009. 800ced2: 4b10 ldr r3, [pc, #64] @ (800cf14 <HAL_RCCEx_PeriphCLKConfig+0x918>)
  30010. 800ced4: 4013 ands r3, r2
  30011. 800ced6: 4a0d ldr r2, [pc, #52] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30012. 800ced8: 430b orrs r3, r1
  30013. 800ceda: 6113 str r3, [r2, #16]
  30014. 800cedc: e005 b.n 800ceea <HAL_RCCEx_PeriphCLKConfig+0x8ee>
  30015. 800cede: 4b0b ldr r3, [pc, #44] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30016. 800cee0: 691b ldr r3, [r3, #16]
  30017. 800cee2: 4a0a ldr r2, [pc, #40] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30018. 800cee4: f423 537c bic.w r3, r3, #16128 @ 0x3f00
  30019. 800cee8: 6113 str r3, [r2, #16]
  30020. 800ceea: 4b08 ldr r3, [pc, #32] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30021. 800ceec: 6f19 ldr r1, [r3, #112] @ 0x70
  30022. 800ceee: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30023. 800cef2: f8d3 30b4 ldr.w r3, [r3, #180] @ 0xb4
  30024. 800cef6: f3c3 030b ubfx r3, r3, #0, #12
  30025. 800cefa: 4a04 ldr r2, [pc, #16] @ (800cf0c <HAL_RCCEx_PeriphCLKConfig+0x910>)
  30026. 800cefc: 430b orrs r3, r1
  30027. 800cefe: 6713 str r3, [r2, #112] @ 0x70
  30028. 800cf00: e00e b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30029. }
  30030. else
  30031. {
  30032. /* set overall return value */
  30033. status = ret;
  30034. 800cf02: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30035. 800cf06: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30036. 800cf0a: e009 b.n 800cf20 <HAL_RCCEx_PeriphCLKConfig+0x924>
  30037. 800cf0c: 58024400 .word 0x58024400
  30038. 800cf10: 58024800 .word 0x58024800
  30039. 800cf14: 00ffffcf .word 0x00ffffcf
  30040. }
  30041. }
  30042. else
  30043. {
  30044. /* set overall return value */
  30045. status = ret;
  30046. 800cf18: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30047. 800cf1c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30048. }
  30049. }
  30050. /*-------------------------- USART1/6 configuration --------------------------*/
  30051. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART16) == RCC_PERIPHCLK_USART16)
  30052. 800cf20: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30053. 800cf24: e9d3 2300 ldrd r2, r3, [r3]
  30054. 800cf28: f002 0301 and.w r3, r2, #1
  30055. 800cf2c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  30056. 800cf30: 2300 movs r3, #0
  30057. 800cf32: f8c7 30bc str.w r3, [r7, #188] @ 0xbc
  30058. 800cf36: e9d7 122e ldrd r1, r2, [r7, #184] @ 0xb8
  30059. 800cf3a: 460b mov r3, r1
  30060. 800cf3c: 4313 orrs r3, r2
  30061. 800cf3e: f000 8089 beq.w 800d054 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30062. {
  30063. switch (PeriphClkInit->Usart16ClockSelection)
  30064. 800cf42: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30065. 800cf46: 6fdb ldr r3, [r3, #124] @ 0x7c
  30066. 800cf48: 2b28 cmp r3, #40 @ 0x28
  30067. 800cf4a: d86b bhi.n 800d024 <HAL_RCCEx_PeriphCLKConfig+0xa28>
  30068. 800cf4c: a201 add r2, pc, #4 @ (adr r2, 800cf54 <HAL_RCCEx_PeriphCLKConfig+0x958>)
  30069. 800cf4e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30070. 800cf52: bf00 nop
  30071. 800cf54: 0800d02d .word 0x0800d02d
  30072. 800cf58: 0800d025 .word 0x0800d025
  30073. 800cf5c: 0800d025 .word 0x0800d025
  30074. 800cf60: 0800d025 .word 0x0800d025
  30075. 800cf64: 0800d025 .word 0x0800d025
  30076. 800cf68: 0800d025 .word 0x0800d025
  30077. 800cf6c: 0800d025 .word 0x0800d025
  30078. 800cf70: 0800d025 .word 0x0800d025
  30079. 800cf74: 0800cff9 .word 0x0800cff9
  30080. 800cf78: 0800d025 .word 0x0800d025
  30081. 800cf7c: 0800d025 .word 0x0800d025
  30082. 800cf80: 0800d025 .word 0x0800d025
  30083. 800cf84: 0800d025 .word 0x0800d025
  30084. 800cf88: 0800d025 .word 0x0800d025
  30085. 800cf8c: 0800d025 .word 0x0800d025
  30086. 800cf90: 0800d025 .word 0x0800d025
  30087. 800cf94: 0800d00f .word 0x0800d00f
  30088. 800cf98: 0800d025 .word 0x0800d025
  30089. 800cf9c: 0800d025 .word 0x0800d025
  30090. 800cfa0: 0800d025 .word 0x0800d025
  30091. 800cfa4: 0800d025 .word 0x0800d025
  30092. 800cfa8: 0800d025 .word 0x0800d025
  30093. 800cfac: 0800d025 .word 0x0800d025
  30094. 800cfb0: 0800d025 .word 0x0800d025
  30095. 800cfb4: 0800d02d .word 0x0800d02d
  30096. 800cfb8: 0800d025 .word 0x0800d025
  30097. 800cfbc: 0800d025 .word 0x0800d025
  30098. 800cfc0: 0800d025 .word 0x0800d025
  30099. 800cfc4: 0800d025 .word 0x0800d025
  30100. 800cfc8: 0800d025 .word 0x0800d025
  30101. 800cfcc: 0800d025 .word 0x0800d025
  30102. 800cfd0: 0800d025 .word 0x0800d025
  30103. 800cfd4: 0800d02d .word 0x0800d02d
  30104. 800cfd8: 0800d025 .word 0x0800d025
  30105. 800cfdc: 0800d025 .word 0x0800d025
  30106. 800cfe0: 0800d025 .word 0x0800d025
  30107. 800cfe4: 0800d025 .word 0x0800d025
  30108. 800cfe8: 0800d025 .word 0x0800d025
  30109. 800cfec: 0800d025 .word 0x0800d025
  30110. 800cff0: 0800d025 .word 0x0800d025
  30111. 800cff4: 0800d02d .word 0x0800d02d
  30112. case RCC_USART16CLKSOURCE_PCLK2: /* CD/D2 PCLK2 as clock source for USART1/6 */
  30113. /* USART1/6 clock source configuration done later after clock selection check */
  30114. break;
  30115. case RCC_USART16CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART1/6 */
  30116. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30117. 800cff8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30118. 800cffc: 3308 adds r3, #8
  30119. 800cffe: 2101 movs r1, #1
  30120. 800d000: 4618 mov r0, r3
  30121. 800d002: f001 fe79 bl 800ecf8 <RCCEx_PLL2_Config>
  30122. 800d006: 4603 mov r3, r0
  30123. 800d008: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30124. /* USART1/6 clock source configuration done later after clock selection check */
  30125. break;
  30126. 800d00c: e00f b.n 800d02e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30127. case RCC_USART16CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART1/6 */
  30128. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30129. 800d00e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30130. 800d012: 3328 adds r3, #40 @ 0x28
  30131. 800d014: 2101 movs r1, #1
  30132. 800d016: 4618 mov r0, r3
  30133. 800d018: f001 ff20 bl 800ee5c <RCCEx_PLL3_Config>
  30134. 800d01c: 4603 mov r3, r0
  30135. 800d01e: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30136. /* USART1/6 clock source configuration done later after clock selection check */
  30137. break;
  30138. 800d022: e004 b.n 800d02e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30139. /* LSE, oscillator is used as source of USART1/6 clock */
  30140. /* USART1/6 clock source configuration done later after clock selection check */
  30141. break;
  30142. default:
  30143. ret = HAL_ERROR;
  30144. 800d024: 2301 movs r3, #1
  30145. 800d026: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30146. break;
  30147. 800d02a: e000 b.n 800d02e <HAL_RCCEx_PeriphCLKConfig+0xa32>
  30148. break;
  30149. 800d02c: bf00 nop
  30150. }
  30151. if (ret == HAL_OK)
  30152. 800d02e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30153. 800d032: 2b00 cmp r3, #0
  30154. 800d034: d10a bne.n 800d04c <HAL_RCCEx_PeriphCLKConfig+0xa50>
  30155. {
  30156. /* Set the source of USART1/6 clock */
  30157. __HAL_RCC_USART16_CONFIG(PeriphClkInit->Usart16ClockSelection);
  30158. 800d036: 4bbf ldr r3, [pc, #764] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30159. 800d038: 6d5b ldr r3, [r3, #84] @ 0x54
  30160. 800d03a: f023 0138 bic.w r1, r3, #56 @ 0x38
  30161. 800d03e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30162. 800d042: 6fdb ldr r3, [r3, #124] @ 0x7c
  30163. 800d044: 4abb ldr r2, [pc, #748] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30164. 800d046: 430b orrs r3, r1
  30165. 800d048: 6553 str r3, [r2, #84] @ 0x54
  30166. 800d04a: e003 b.n 800d054 <HAL_RCCEx_PeriphCLKConfig+0xa58>
  30167. }
  30168. else
  30169. {
  30170. /* set overall return value */
  30171. status = ret;
  30172. 800d04c: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30173. 800d050: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30174. }
  30175. }
  30176. /*-------------------------- USART2/3/4/5/7/8 Configuration --------------------------*/
  30177. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART234578) == RCC_PERIPHCLK_USART234578)
  30178. 800d054: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30179. 800d058: e9d3 2300 ldrd r2, r3, [r3]
  30180. 800d05c: f002 0302 and.w r3, r2, #2
  30181. 800d060: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  30182. 800d064: 2300 movs r3, #0
  30183. 800d066: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  30184. 800d06a: e9d7 122c ldrd r1, r2, [r7, #176] @ 0xb0
  30185. 800d06e: 460b mov r3, r1
  30186. 800d070: 4313 orrs r3, r2
  30187. 800d072: d041 beq.n 800d0f8 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30188. {
  30189. switch (PeriphClkInit->Usart234578ClockSelection)
  30190. 800d074: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30191. 800d078: 6f9b ldr r3, [r3, #120] @ 0x78
  30192. 800d07a: 2b05 cmp r3, #5
  30193. 800d07c: d824 bhi.n 800d0c8 <HAL_RCCEx_PeriphCLKConfig+0xacc>
  30194. 800d07e: a201 add r2, pc, #4 @ (adr r2, 800d084 <HAL_RCCEx_PeriphCLKConfig+0xa88>)
  30195. 800d080: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30196. 800d084: 0800d0d1 .word 0x0800d0d1
  30197. 800d088: 0800d09d .word 0x0800d09d
  30198. 800d08c: 0800d0b3 .word 0x0800d0b3
  30199. 800d090: 0800d0d1 .word 0x0800d0d1
  30200. 800d094: 0800d0d1 .word 0x0800d0d1
  30201. 800d098: 0800d0d1 .word 0x0800d0d1
  30202. case RCC_USART234578CLKSOURCE_PCLK1: /* CD/D2 PCLK1 as clock source for USART2/3/4/5/7/8 */
  30203. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30204. break;
  30205. case RCC_USART234578CLKSOURCE_PLL2: /* PLL2 is used as clock source for USART2/3/4/5/7/8 */
  30206. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30207. 800d09c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30208. 800d0a0: 3308 adds r3, #8
  30209. 800d0a2: 2101 movs r1, #1
  30210. 800d0a4: 4618 mov r0, r3
  30211. 800d0a6: f001 fe27 bl 800ecf8 <RCCEx_PLL2_Config>
  30212. 800d0aa: 4603 mov r3, r0
  30213. 800d0ac: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30214. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30215. break;
  30216. 800d0b0: e00f b.n 800d0d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30217. case RCC_USART234578CLKSOURCE_PLL3: /* PLL3 is used as clock source for USART2/3/4/5/7/8 */
  30218. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30219. 800d0b2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30220. 800d0b6: 3328 adds r3, #40 @ 0x28
  30221. 800d0b8: 2101 movs r1, #1
  30222. 800d0ba: 4618 mov r0, r3
  30223. 800d0bc: f001 fece bl 800ee5c <RCCEx_PLL3_Config>
  30224. 800d0c0: 4603 mov r3, r0
  30225. 800d0c2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30226. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30227. break;
  30228. 800d0c6: e004 b.n 800d0d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30229. /* LSE, oscillator is used as source of USART2/3/4/5/7/8 clock */
  30230. /* USART2/3/4/5/7/8 clock source configuration done later after clock selection check */
  30231. break;
  30232. default:
  30233. ret = HAL_ERROR;
  30234. 800d0c8: 2301 movs r3, #1
  30235. 800d0ca: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30236. break;
  30237. 800d0ce: e000 b.n 800d0d2 <HAL_RCCEx_PeriphCLKConfig+0xad6>
  30238. break;
  30239. 800d0d0: bf00 nop
  30240. }
  30241. if (ret == HAL_OK)
  30242. 800d0d2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30243. 800d0d6: 2b00 cmp r3, #0
  30244. 800d0d8: d10a bne.n 800d0f0 <HAL_RCCEx_PeriphCLKConfig+0xaf4>
  30245. {
  30246. /* Set the source of USART2/3/4/5/7/8 clock */
  30247. __HAL_RCC_USART234578_CONFIG(PeriphClkInit->Usart234578ClockSelection);
  30248. 800d0da: 4b96 ldr r3, [pc, #600] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30249. 800d0dc: 6d5b ldr r3, [r3, #84] @ 0x54
  30250. 800d0de: f023 0107 bic.w r1, r3, #7
  30251. 800d0e2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30252. 800d0e6: 6f9b ldr r3, [r3, #120] @ 0x78
  30253. 800d0e8: 4a92 ldr r2, [pc, #584] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30254. 800d0ea: 430b orrs r3, r1
  30255. 800d0ec: 6553 str r3, [r2, #84] @ 0x54
  30256. 800d0ee: e003 b.n 800d0f8 <HAL_RCCEx_PeriphCLKConfig+0xafc>
  30257. }
  30258. else
  30259. {
  30260. /* set overall return value */
  30261. status = ret;
  30262. 800d0f0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30263. 800d0f4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30264. }
  30265. }
  30266. /*-------------------------- LPUART1 Configuration -------------------------*/
  30267. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPUART1) == RCC_PERIPHCLK_LPUART1)
  30268. 800d0f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30269. 800d0fc: e9d3 2300 ldrd r2, r3, [r3]
  30270. 800d100: f002 0304 and.w r3, r2, #4
  30271. 800d104: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  30272. 800d108: 2300 movs r3, #0
  30273. 800d10a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  30274. 800d10e: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
  30275. 800d112: 460b mov r3, r1
  30276. 800d114: 4313 orrs r3, r2
  30277. 800d116: d044 beq.n 800d1a2 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30278. {
  30279. switch (PeriphClkInit->Lpuart1ClockSelection)
  30280. 800d118: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30281. 800d11c: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30282. 800d120: 2b05 cmp r3, #5
  30283. 800d122: d825 bhi.n 800d170 <HAL_RCCEx_PeriphCLKConfig+0xb74>
  30284. 800d124: a201 add r2, pc, #4 @ (adr r2, 800d12c <HAL_RCCEx_PeriphCLKConfig+0xb30>)
  30285. 800d126: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  30286. 800d12a: bf00 nop
  30287. 800d12c: 0800d179 .word 0x0800d179
  30288. 800d130: 0800d145 .word 0x0800d145
  30289. 800d134: 0800d15b .word 0x0800d15b
  30290. 800d138: 0800d179 .word 0x0800d179
  30291. 800d13c: 0800d179 .word 0x0800d179
  30292. 800d140: 0800d179 .word 0x0800d179
  30293. case RCC_LPUART1CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPUART1 */
  30294. /* LPUART1 clock source configuration done later after clock selection check */
  30295. break;
  30296. case RCC_LPUART1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPUART1 */
  30297. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  30298. 800d144: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30299. 800d148: 3308 adds r3, #8
  30300. 800d14a: 2101 movs r1, #1
  30301. 800d14c: 4618 mov r0, r3
  30302. 800d14e: f001 fdd3 bl 800ecf8 <RCCEx_PLL2_Config>
  30303. 800d152: 4603 mov r3, r0
  30304. 800d154: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30305. /* LPUART1 clock source configuration done later after clock selection check */
  30306. break;
  30307. 800d158: e00f b.n 800d17a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30308. case RCC_LPUART1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPUART1 */
  30309. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30310. 800d15a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30311. 800d15e: 3328 adds r3, #40 @ 0x28
  30312. 800d160: 2101 movs r1, #1
  30313. 800d162: 4618 mov r0, r3
  30314. 800d164: f001 fe7a bl 800ee5c <RCCEx_PLL3_Config>
  30315. 800d168: 4603 mov r3, r0
  30316. 800d16a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30317. /* LPUART1 clock source configuration done later after clock selection check */
  30318. break;
  30319. 800d16e: e004 b.n 800d17a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30320. /* LSE, oscillator is used as source of LPUART1 clock */
  30321. /* LPUART1 clock source configuration done later after clock selection check */
  30322. break;
  30323. default:
  30324. ret = HAL_ERROR;
  30325. 800d170: 2301 movs r3, #1
  30326. 800d172: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30327. break;
  30328. 800d176: e000 b.n 800d17a <HAL_RCCEx_PeriphCLKConfig+0xb7e>
  30329. break;
  30330. 800d178: bf00 nop
  30331. }
  30332. if (ret == HAL_OK)
  30333. 800d17a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30334. 800d17e: 2b00 cmp r3, #0
  30335. 800d180: d10b bne.n 800d19a <HAL_RCCEx_PeriphCLKConfig+0xb9e>
  30336. {
  30337. /* Set the source of LPUART1 clock */
  30338. __HAL_RCC_LPUART1_CONFIG(PeriphClkInit->Lpuart1ClockSelection);
  30339. 800d182: 4b6c ldr r3, [pc, #432] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30340. 800d184: 6d9b ldr r3, [r3, #88] @ 0x58
  30341. 800d186: f023 0107 bic.w r1, r3, #7
  30342. 800d18a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30343. 800d18e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94
  30344. 800d192: 4a68 ldr r2, [pc, #416] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30345. 800d194: 430b orrs r3, r1
  30346. 800d196: 6593 str r3, [r2, #88] @ 0x58
  30347. 800d198: e003 b.n 800d1a2 <HAL_RCCEx_PeriphCLKConfig+0xba6>
  30348. }
  30349. else
  30350. {
  30351. /* set overall return value */
  30352. status = ret;
  30353. 800d19a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30354. 800d19e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30355. }
  30356. }
  30357. /*---------------------------- LPTIM1 configuration -------------------------------*/
  30358. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
  30359. 800d1a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30360. 800d1a6: e9d3 2300 ldrd r2, r3, [r3]
  30361. 800d1aa: f002 0320 and.w r3, r2, #32
  30362. 800d1ae: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  30363. 800d1b2: 2300 movs r3, #0
  30364. 800d1b4: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  30365. 800d1b8: e9d7 1228 ldrd r1, r2, [r7, #160] @ 0xa0
  30366. 800d1bc: 460b mov r3, r1
  30367. 800d1be: 4313 orrs r3, r2
  30368. 800d1c0: d055 beq.n 800d26e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30369. {
  30370. switch (PeriphClkInit->Lptim1ClockSelection)
  30371. 800d1c2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30372. 800d1c6: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30373. 800d1ca: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30374. 800d1ce: d033 beq.n 800d238 <HAL_RCCEx_PeriphCLKConfig+0xc3c>
  30375. 800d1d0: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  30376. 800d1d4: d82c bhi.n 800d230 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30377. 800d1d6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30378. 800d1da: d02f beq.n 800d23c <HAL_RCCEx_PeriphCLKConfig+0xc40>
  30379. 800d1dc: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  30380. 800d1e0: d826 bhi.n 800d230 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30381. 800d1e2: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30382. 800d1e6: d02b beq.n 800d240 <HAL_RCCEx_PeriphCLKConfig+0xc44>
  30383. 800d1e8: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  30384. 800d1ec: d820 bhi.n 800d230 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30385. 800d1ee: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30386. 800d1f2: d012 beq.n 800d21a <HAL_RCCEx_PeriphCLKConfig+0xc1e>
  30387. 800d1f4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  30388. 800d1f8: d81a bhi.n 800d230 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30389. 800d1fa: 2b00 cmp r3, #0
  30390. 800d1fc: d022 beq.n 800d244 <HAL_RCCEx_PeriphCLKConfig+0xc48>
  30391. 800d1fe: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  30392. 800d202: d115 bne.n 800d230 <HAL_RCCEx_PeriphCLKConfig+0xc34>
  30393. /* LPTIM1 clock source configuration done later after clock selection check */
  30394. break;
  30395. case RCC_LPTIM1CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM1*/
  30396. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30397. 800d204: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30398. 800d208: 3308 adds r3, #8
  30399. 800d20a: 2100 movs r1, #0
  30400. 800d20c: 4618 mov r0, r3
  30401. 800d20e: f001 fd73 bl 800ecf8 <RCCEx_PLL2_Config>
  30402. 800d212: 4603 mov r3, r0
  30403. 800d214: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30404. /* LPTIM1 clock source configuration done later after clock selection check */
  30405. break;
  30406. 800d218: e015 b.n 800d246 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30407. case RCC_LPTIM1CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM1*/
  30408. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30409. 800d21a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30410. 800d21e: 3328 adds r3, #40 @ 0x28
  30411. 800d220: 2102 movs r1, #2
  30412. 800d222: 4618 mov r0, r3
  30413. 800d224: f001 fe1a bl 800ee5c <RCCEx_PLL3_Config>
  30414. 800d228: 4603 mov r3, r0
  30415. 800d22a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30416. /* LPTIM1 clock source configuration done later after clock selection check */
  30417. break;
  30418. 800d22e: e00a b.n 800d246 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30419. /* HSI, HSE, or CSI oscillator is used as source of LPTIM1 clock */
  30420. /* LPTIM1 clock source configuration done later after clock selection check */
  30421. break;
  30422. default:
  30423. ret = HAL_ERROR;
  30424. 800d230: 2301 movs r3, #1
  30425. 800d232: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30426. break;
  30427. 800d236: e006 b.n 800d246 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30428. break;
  30429. 800d238: bf00 nop
  30430. 800d23a: e004 b.n 800d246 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30431. break;
  30432. 800d23c: bf00 nop
  30433. 800d23e: e002 b.n 800d246 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30434. break;
  30435. 800d240: bf00 nop
  30436. 800d242: e000 b.n 800d246 <HAL_RCCEx_PeriphCLKConfig+0xc4a>
  30437. break;
  30438. 800d244: bf00 nop
  30439. }
  30440. if (ret == HAL_OK)
  30441. 800d246: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30442. 800d24a: 2b00 cmp r3, #0
  30443. 800d24c: d10b bne.n 800d266 <HAL_RCCEx_PeriphCLKConfig+0xc6a>
  30444. {
  30445. /* Set the source of LPTIM1 clock*/
  30446. __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
  30447. 800d24e: 4b39 ldr r3, [pc, #228] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30448. 800d250: 6d5b ldr r3, [r3, #84] @ 0x54
  30449. 800d252: f023 41e0 bic.w r1, r3, #1879048192 @ 0x70000000
  30450. 800d256: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30451. 800d25a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  30452. 800d25e: 4a35 ldr r2, [pc, #212] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30453. 800d260: 430b orrs r3, r1
  30454. 800d262: 6553 str r3, [r2, #84] @ 0x54
  30455. 800d264: e003 b.n 800d26e <HAL_RCCEx_PeriphCLKConfig+0xc72>
  30456. }
  30457. else
  30458. {
  30459. /* set overall return value */
  30460. status = ret;
  30461. 800d266: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30462. 800d26a: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30463. }
  30464. }
  30465. /*---------------------------- LPTIM2 configuration -------------------------------*/
  30466. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM2) == RCC_PERIPHCLK_LPTIM2)
  30467. 800d26e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30468. 800d272: e9d3 2300 ldrd r2, r3, [r3]
  30469. 800d276: f002 0340 and.w r3, r2, #64 @ 0x40
  30470. 800d27a: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  30471. 800d27e: 2300 movs r3, #0
  30472. 800d280: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  30473. 800d284: e9d7 1226 ldrd r1, r2, [r7, #152] @ 0x98
  30474. 800d288: 460b mov r3, r1
  30475. 800d28a: 4313 orrs r3, r2
  30476. 800d28c: d058 beq.n 800d340 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30477. {
  30478. switch (PeriphClkInit->Lptim2ClockSelection)
  30479. 800d28e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30480. 800d292: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30481. 800d296: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30482. 800d29a: d033 beq.n 800d304 <HAL_RCCEx_PeriphCLKConfig+0xd08>
  30483. 800d29c: f5b3 5fa0 cmp.w r3, #5120 @ 0x1400
  30484. 800d2a0: d82c bhi.n 800d2fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30485. 800d2a2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30486. 800d2a6: d02f beq.n 800d308 <HAL_RCCEx_PeriphCLKConfig+0xd0c>
  30487. 800d2a8: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30488. 800d2ac: d826 bhi.n 800d2fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30489. 800d2ae: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30490. 800d2b2: d02b beq.n 800d30c <HAL_RCCEx_PeriphCLKConfig+0xd10>
  30491. 800d2b4: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
  30492. 800d2b8: d820 bhi.n 800d2fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30493. 800d2ba: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30494. 800d2be: d012 beq.n 800d2e6 <HAL_RCCEx_PeriphCLKConfig+0xcea>
  30495. 800d2c0: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  30496. 800d2c4: d81a bhi.n 800d2fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30497. 800d2c6: 2b00 cmp r3, #0
  30498. 800d2c8: d022 beq.n 800d310 <HAL_RCCEx_PeriphCLKConfig+0xd14>
  30499. 800d2ca: f5b3 6f80 cmp.w r3, #1024 @ 0x400
  30500. 800d2ce: d115 bne.n 800d2fc <HAL_RCCEx_PeriphCLKConfig+0xd00>
  30501. /* LPTIM2 clock source configuration done later after clock selection check */
  30502. break;
  30503. case RCC_LPTIM2CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM2*/
  30504. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30505. 800d2d0: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30506. 800d2d4: 3308 adds r3, #8
  30507. 800d2d6: 2100 movs r1, #0
  30508. 800d2d8: 4618 mov r0, r3
  30509. 800d2da: f001 fd0d bl 800ecf8 <RCCEx_PLL2_Config>
  30510. 800d2de: 4603 mov r3, r0
  30511. 800d2e0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30512. /* LPTIM2 clock source configuration done later after clock selection check */
  30513. break;
  30514. 800d2e4: e015 b.n 800d312 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30515. case RCC_LPTIM2CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM2*/
  30516. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30517. 800d2e6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30518. 800d2ea: 3328 adds r3, #40 @ 0x28
  30519. 800d2ec: 2102 movs r1, #2
  30520. 800d2ee: 4618 mov r0, r3
  30521. 800d2f0: f001 fdb4 bl 800ee5c <RCCEx_PLL3_Config>
  30522. 800d2f4: 4603 mov r3, r0
  30523. 800d2f6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30524. /* LPTIM2 clock source configuration done later after clock selection check */
  30525. break;
  30526. 800d2fa: e00a b.n 800d312 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30527. /* HSI, HSE, or CSI oscillator is used as source of LPTIM2 clock */
  30528. /* LPTIM2 clock source configuration done later after clock selection check */
  30529. break;
  30530. default:
  30531. ret = HAL_ERROR;
  30532. 800d2fc: 2301 movs r3, #1
  30533. 800d2fe: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30534. break;
  30535. 800d302: e006 b.n 800d312 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30536. break;
  30537. 800d304: bf00 nop
  30538. 800d306: e004 b.n 800d312 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30539. break;
  30540. 800d308: bf00 nop
  30541. 800d30a: e002 b.n 800d312 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30542. break;
  30543. 800d30c: bf00 nop
  30544. 800d30e: e000 b.n 800d312 <HAL_RCCEx_PeriphCLKConfig+0xd16>
  30545. break;
  30546. 800d310: bf00 nop
  30547. }
  30548. if (ret == HAL_OK)
  30549. 800d312: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30550. 800d316: 2b00 cmp r3, #0
  30551. 800d318: d10e bne.n 800d338 <HAL_RCCEx_PeriphCLKConfig+0xd3c>
  30552. {
  30553. /* Set the source of LPTIM2 clock*/
  30554. __HAL_RCC_LPTIM2_CONFIG(PeriphClkInit->Lptim2ClockSelection);
  30555. 800d31a: 4b06 ldr r3, [pc, #24] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30556. 800d31c: 6d9b ldr r3, [r3, #88] @ 0x58
  30557. 800d31e: f423 51e0 bic.w r1, r3, #7168 @ 0x1c00
  30558. 800d322: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30559. 800d326: f8d3 309c ldr.w r3, [r3, #156] @ 0x9c
  30560. 800d32a: 4a02 ldr r2, [pc, #8] @ (800d334 <HAL_RCCEx_PeriphCLKConfig+0xd38>)
  30561. 800d32c: 430b orrs r3, r1
  30562. 800d32e: 6593 str r3, [r2, #88] @ 0x58
  30563. 800d330: e006 b.n 800d340 <HAL_RCCEx_PeriphCLKConfig+0xd44>
  30564. 800d332: bf00 nop
  30565. 800d334: 58024400 .word 0x58024400
  30566. }
  30567. else
  30568. {
  30569. /* set overall return value */
  30570. status = ret;
  30571. 800d338: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30572. 800d33c: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30573. }
  30574. }
  30575. /*---------------------------- LPTIM345 configuration -------------------------------*/
  30576. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM345) == RCC_PERIPHCLK_LPTIM345)
  30577. 800d340: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30578. 800d344: e9d3 2300 ldrd r2, r3, [r3]
  30579. 800d348: f002 0380 and.w r3, r2, #128 @ 0x80
  30580. 800d34c: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  30581. 800d350: 2300 movs r3, #0
  30582. 800d352: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  30583. 800d356: e9d7 1224 ldrd r1, r2, [r7, #144] @ 0x90
  30584. 800d35a: 460b mov r3, r1
  30585. 800d35c: 4313 orrs r3, r2
  30586. 800d35e: d055 beq.n 800d40c <HAL_RCCEx_PeriphCLKConfig+0xe10>
  30587. {
  30588. switch (PeriphClkInit->Lptim345ClockSelection)
  30589. 800d360: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30590. 800d364: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  30591. 800d368: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30592. 800d36c: d033 beq.n 800d3d6 <HAL_RCCEx_PeriphCLKConfig+0xdda>
  30593. 800d36e: f5b3 4f20 cmp.w r3, #40960 @ 0xa000
  30594. 800d372: d82c bhi.n 800d3ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30595. 800d374: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  30596. 800d378: d02f beq.n 800d3da <HAL_RCCEx_PeriphCLKConfig+0xdde>
  30597. 800d37a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  30598. 800d37e: d826 bhi.n 800d3ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30599. 800d380: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  30600. 800d384: d02b beq.n 800d3de <HAL_RCCEx_PeriphCLKConfig+0xde2>
  30601. 800d386: f5b3 4fc0 cmp.w r3, #24576 @ 0x6000
  30602. 800d38a: d820 bhi.n 800d3ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30603. 800d38c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  30604. 800d390: d012 beq.n 800d3b8 <HAL_RCCEx_PeriphCLKConfig+0xdbc>
  30605. 800d392: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  30606. 800d396: d81a bhi.n 800d3ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30607. 800d398: 2b00 cmp r3, #0
  30608. 800d39a: d022 beq.n 800d3e2 <HAL_RCCEx_PeriphCLKConfig+0xde6>
  30609. 800d39c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  30610. 800d3a0: d115 bne.n 800d3ce <HAL_RCCEx_PeriphCLKConfig+0xdd2>
  30611. case RCC_LPTIM345CLKSOURCE_PCLK4: /* SRD/D3 PCLK1 (PCLK4) as clock source for LPTIM3/4/5 */
  30612. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  30613. break;
  30614. case RCC_LPTIM345CLKSOURCE_PLL2: /* PLL2 is used as clock source for LPTIM3/4/5 */
  30615. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30616. 800d3a2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30617. 800d3a6: 3308 adds r3, #8
  30618. 800d3a8: 2100 movs r1, #0
  30619. 800d3aa: 4618 mov r0, r3
  30620. 800d3ac: f001 fca4 bl 800ecf8 <RCCEx_PLL2_Config>
  30621. 800d3b0: 4603 mov r3, r0
  30622. 800d3b2: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30623. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  30624. break;
  30625. 800d3b6: e015 b.n 800d3e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  30626. case RCC_LPTIM345CLKSOURCE_PLL3: /* PLL3 is used as clock source for LPTIM3/4/5 */
  30627. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30628. 800d3b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30629. 800d3bc: 3328 adds r3, #40 @ 0x28
  30630. 800d3be: 2102 movs r1, #2
  30631. 800d3c0: 4618 mov r0, r3
  30632. 800d3c2: f001 fd4b bl 800ee5c <RCCEx_PLL3_Config>
  30633. 800d3c6: 4603 mov r3, r0
  30634. 800d3c8: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30635. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  30636. break;
  30637. 800d3cc: e00a b.n 800d3e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  30638. /* HSI, HSE, or CSI oscillator is used as source of LPTIM3/4/5 clock */
  30639. /* LPTIM3/4/5 clock source configuration done later after clock selection check */
  30640. break;
  30641. default:
  30642. ret = HAL_ERROR;
  30643. 800d3ce: 2301 movs r3, #1
  30644. 800d3d0: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30645. break;
  30646. 800d3d4: e006 b.n 800d3e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  30647. break;
  30648. 800d3d6: bf00 nop
  30649. 800d3d8: e004 b.n 800d3e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  30650. break;
  30651. 800d3da: bf00 nop
  30652. 800d3dc: e002 b.n 800d3e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  30653. break;
  30654. 800d3de: bf00 nop
  30655. 800d3e0: e000 b.n 800d3e4 <HAL_RCCEx_PeriphCLKConfig+0xde8>
  30656. break;
  30657. 800d3e2: bf00 nop
  30658. }
  30659. if (ret == HAL_OK)
  30660. 800d3e4: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30661. 800d3e8: 2b00 cmp r3, #0
  30662. 800d3ea: d10b bne.n 800d404 <HAL_RCCEx_PeriphCLKConfig+0xe08>
  30663. {
  30664. /* Set the source of LPTIM3/4/5 clock */
  30665. __HAL_RCC_LPTIM345_CONFIG(PeriphClkInit->Lptim345ClockSelection);
  30666. 800d3ec: 4bbb ldr r3, [pc, #748] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30667. 800d3ee: 6d9b ldr r3, [r3, #88] @ 0x58
  30668. 800d3f0: f423 4160 bic.w r1, r3, #57344 @ 0xe000
  30669. 800d3f4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30670. 800d3f8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  30671. 800d3fc: 4ab7 ldr r2, [pc, #732] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30672. 800d3fe: 430b orrs r3, r1
  30673. 800d400: 6593 str r3, [r2, #88] @ 0x58
  30674. 800d402: e003 b.n 800d40c <HAL_RCCEx_PeriphCLKConfig+0xe10>
  30675. }
  30676. else
  30677. {
  30678. /* set overall return value */
  30679. status = ret;
  30680. 800d404: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30681. 800d408: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30682. __HAL_RCC_I2C1235_CONFIG(PeriphClkInit->I2c1235ClockSelection);
  30683. }
  30684. #else
  30685. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C123) == RCC_PERIPHCLK_I2C123)
  30686. 800d40c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30687. 800d410: e9d3 2300 ldrd r2, r3, [r3]
  30688. 800d414: f002 0308 and.w r3, r2, #8
  30689. 800d418: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  30690. 800d41c: 2300 movs r3, #0
  30691. 800d41e: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  30692. 800d422: e9d7 1222 ldrd r1, r2, [r7, #136] @ 0x88
  30693. 800d426: 460b mov r3, r1
  30694. 800d428: 4313 orrs r3, r2
  30695. 800d42a: d01e beq.n 800d46a <HAL_RCCEx_PeriphCLKConfig+0xe6e>
  30696. {
  30697. /* Check the parameters */
  30698. assert_param(IS_RCC_I2C123CLKSOURCE(PeriphClkInit->I2c123ClockSelection));
  30699. if ((PeriphClkInit->I2c123ClockSelection) == RCC_I2C123CLKSOURCE_PLL3)
  30700. 800d42c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30701. 800d430: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  30702. 800d434: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  30703. 800d438: d10c bne.n 800d454 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  30704. {
  30705. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  30706. 800d43a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30707. 800d43e: 3328 adds r3, #40 @ 0x28
  30708. 800d440: 2102 movs r1, #2
  30709. 800d442: 4618 mov r0, r3
  30710. 800d444: f001 fd0a bl 800ee5c <RCCEx_PLL3_Config>
  30711. 800d448: 4603 mov r3, r0
  30712. 800d44a: 2b00 cmp r3, #0
  30713. 800d44c: d002 beq.n 800d454 <HAL_RCCEx_PeriphCLKConfig+0xe58>
  30714. {
  30715. status = HAL_ERROR;
  30716. 800d44e: 2301 movs r3, #1
  30717. 800d450: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30718. }
  30719. }
  30720. __HAL_RCC_I2C123_CONFIG(PeriphClkInit->I2c123ClockSelection);
  30721. 800d454: 4ba1 ldr r3, [pc, #644] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30722. 800d456: 6d5b ldr r3, [r3, #84] @ 0x54
  30723. 800d458: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  30724. 800d45c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30725. 800d460: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
  30726. 800d464: 4a9d ldr r2, [pc, #628] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30727. 800d466: 430b orrs r3, r1
  30728. 800d468: 6553 str r3, [r2, #84] @ 0x54
  30729. }
  30730. #endif /* I2C5 */
  30731. /*------------------------------ I2C4 Configuration ------------------------*/
  30732. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4)
  30733. 800d46a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30734. 800d46e: e9d3 2300 ldrd r2, r3, [r3]
  30735. 800d472: f002 0310 and.w r3, r2, #16
  30736. 800d476: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  30737. 800d47a: 2300 movs r3, #0
  30738. 800d47c: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  30739. 800d480: e9d7 1220 ldrd r1, r2, [r7, #128] @ 0x80
  30740. 800d484: 460b mov r3, r1
  30741. 800d486: 4313 orrs r3, r2
  30742. 800d488: d01e beq.n 800d4c8 <HAL_RCCEx_PeriphCLKConfig+0xecc>
  30743. {
  30744. /* Check the parameters */
  30745. assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection));
  30746. if ((PeriphClkInit->I2c4ClockSelection) == RCC_I2C4CLKSOURCE_PLL3)
  30747. 800d48a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30748. 800d48e: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  30749. 800d492: f5b3 7f80 cmp.w r3, #256 @ 0x100
  30750. 800d496: d10c bne.n 800d4b2 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  30751. {
  30752. if (RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE) != HAL_OK)
  30753. 800d498: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30754. 800d49c: 3328 adds r3, #40 @ 0x28
  30755. 800d49e: 2102 movs r1, #2
  30756. 800d4a0: 4618 mov r0, r3
  30757. 800d4a2: f001 fcdb bl 800ee5c <RCCEx_PLL3_Config>
  30758. 800d4a6: 4603 mov r3, r0
  30759. 800d4a8: 2b00 cmp r3, #0
  30760. 800d4aa: d002 beq.n 800d4b2 <HAL_RCCEx_PeriphCLKConfig+0xeb6>
  30761. {
  30762. status = HAL_ERROR;
  30763. 800d4ac: 2301 movs r3, #1
  30764. 800d4ae: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30765. }
  30766. }
  30767. __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection);
  30768. 800d4b2: 4b8a ldr r3, [pc, #552] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30769. 800d4b4: 6d9b ldr r3, [r3, #88] @ 0x58
  30770. 800d4b6: f423 7140 bic.w r1, r3, #768 @ 0x300
  30771. 800d4ba: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30772. 800d4be: f8d3 3098 ldr.w r3, [r3, #152] @ 0x98
  30773. 800d4c2: 4a86 ldr r2, [pc, #536] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30774. 800d4c4: 430b orrs r3, r1
  30775. 800d4c6: 6593 str r3, [r2, #88] @ 0x58
  30776. }
  30777. /*---------------------------- ADC configuration -------------------------------*/
  30778. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_ADC) == RCC_PERIPHCLK_ADC)
  30779. 800d4c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30780. 800d4cc: e9d3 2300 ldrd r2, r3, [r3]
  30781. 800d4d0: f402 2300 and.w r3, r2, #524288 @ 0x80000
  30782. 800d4d4: 67bb str r3, [r7, #120] @ 0x78
  30783. 800d4d6: 2300 movs r3, #0
  30784. 800d4d8: 67fb str r3, [r7, #124] @ 0x7c
  30785. 800d4da: e9d7 121e ldrd r1, r2, [r7, #120] @ 0x78
  30786. 800d4de: 460b mov r3, r1
  30787. 800d4e0: 4313 orrs r3, r2
  30788. 800d4e2: d03e beq.n 800d562 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  30789. {
  30790. switch (PeriphClkInit->AdcClockSelection)
  30791. 800d4e4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30792. 800d4e8: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  30793. 800d4ec: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30794. 800d4f0: d022 beq.n 800d538 <HAL_RCCEx_PeriphCLKConfig+0xf3c>
  30795. 800d4f2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  30796. 800d4f6: d81b bhi.n 800d530 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  30797. 800d4f8: 2b00 cmp r3, #0
  30798. 800d4fa: d003 beq.n 800d504 <HAL_RCCEx_PeriphCLKConfig+0xf08>
  30799. 800d4fc: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  30800. 800d500: d00b beq.n 800d51a <HAL_RCCEx_PeriphCLKConfig+0xf1e>
  30801. 800d502: e015 b.n 800d530 <HAL_RCCEx_PeriphCLKConfig+0xf34>
  30802. {
  30803. case RCC_ADCCLKSOURCE_PLL2: /* PLL2 is used as clock source for ADC*/
  30804. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  30805. 800d504: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30806. 800d508: 3308 adds r3, #8
  30807. 800d50a: 2100 movs r1, #0
  30808. 800d50c: 4618 mov r0, r3
  30809. 800d50e: f001 fbf3 bl 800ecf8 <RCCEx_PLL2_Config>
  30810. 800d512: 4603 mov r3, r0
  30811. 800d514: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30812. /* ADC clock source configuration done later after clock selection check */
  30813. break;
  30814. 800d518: e00f b.n 800d53a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30815. case RCC_ADCCLKSOURCE_PLL3: /* PLL3 is used as clock source for ADC*/
  30816. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  30817. 800d51a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30818. 800d51e: 3328 adds r3, #40 @ 0x28
  30819. 800d520: 2102 movs r1, #2
  30820. 800d522: 4618 mov r0, r3
  30821. 800d524: f001 fc9a bl 800ee5c <RCCEx_PLL3_Config>
  30822. 800d528: 4603 mov r3, r0
  30823. 800d52a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30824. /* ADC clock source configuration done later after clock selection check */
  30825. break;
  30826. 800d52e: e004 b.n 800d53a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30827. /* HSI, HSE, or CSI oscillator is used as source of ADC clock */
  30828. /* ADC clock source configuration done later after clock selection check */
  30829. break;
  30830. default:
  30831. ret = HAL_ERROR;
  30832. 800d530: 2301 movs r3, #1
  30833. 800d532: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30834. break;
  30835. 800d536: e000 b.n 800d53a <HAL_RCCEx_PeriphCLKConfig+0xf3e>
  30836. break;
  30837. 800d538: bf00 nop
  30838. }
  30839. if (ret == HAL_OK)
  30840. 800d53a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30841. 800d53e: 2b00 cmp r3, #0
  30842. 800d540: d10b bne.n 800d55a <HAL_RCCEx_PeriphCLKConfig+0xf5e>
  30843. {
  30844. /* Set the source of ADC clock*/
  30845. __HAL_RCC_ADC_CONFIG(PeriphClkInit->AdcClockSelection);
  30846. 800d542: 4b66 ldr r3, [pc, #408] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30847. 800d544: 6d9b ldr r3, [r3, #88] @ 0x58
  30848. 800d546: f423 3140 bic.w r1, r3, #196608 @ 0x30000
  30849. 800d54a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30850. 800d54e: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
  30851. 800d552: 4a62 ldr r2, [pc, #392] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30852. 800d554: 430b orrs r3, r1
  30853. 800d556: 6593 str r3, [r2, #88] @ 0x58
  30854. 800d558: e003 b.n 800d562 <HAL_RCCEx_PeriphCLKConfig+0xf66>
  30855. }
  30856. else
  30857. {
  30858. /* set overall return value */
  30859. status = ret;
  30860. 800d55a: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30861. 800d55e: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30862. }
  30863. }
  30864. /*------------------------------ USB Configuration -------------------------*/
  30865. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB)
  30866. 800d562: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30867. 800d566: e9d3 2300 ldrd r2, r3, [r3]
  30868. 800d56a: f402 2380 and.w r3, r2, #262144 @ 0x40000
  30869. 800d56e: 673b str r3, [r7, #112] @ 0x70
  30870. 800d570: 2300 movs r3, #0
  30871. 800d572: 677b str r3, [r7, #116] @ 0x74
  30872. 800d574: e9d7 121c ldrd r1, r2, [r7, #112] @ 0x70
  30873. 800d578: 460b mov r3, r1
  30874. 800d57a: 4313 orrs r3, r2
  30875. 800d57c: d03b beq.n 800d5f6 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  30876. {
  30877. switch (PeriphClkInit->UsbClockSelection)
  30878. 800d57e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30879. 800d582: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30880. 800d586: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  30881. 800d58a: d01f beq.n 800d5cc <HAL_RCCEx_PeriphCLKConfig+0xfd0>
  30882. 800d58c: f5b3 1f40 cmp.w r3, #3145728 @ 0x300000
  30883. 800d590: d818 bhi.n 800d5c4 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  30884. 800d592: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  30885. 800d596: d003 beq.n 800d5a0 <HAL_RCCEx_PeriphCLKConfig+0xfa4>
  30886. 800d598: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  30887. 800d59c: d007 beq.n 800d5ae <HAL_RCCEx_PeriphCLKConfig+0xfb2>
  30888. 800d59e: e011 b.n 800d5c4 <HAL_RCCEx_PeriphCLKConfig+0xfc8>
  30889. {
  30890. case RCC_USBCLKSOURCE_PLL: /* PLL is used as clock source for USB*/
  30891. /* Enable USB Clock output generated form System USB . */
  30892. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30893. 800d5a0: 4b4e ldr r3, [pc, #312] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30894. 800d5a2: 6adb ldr r3, [r3, #44] @ 0x2c
  30895. 800d5a4: 4a4d ldr r2, [pc, #308] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30896. 800d5a6: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30897. 800d5aa: 62d3 str r3, [r2, #44] @ 0x2c
  30898. /* USB clock source configuration done later after clock selection check */
  30899. break;
  30900. 800d5ac: e00f b.n 800d5ce <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30901. case RCC_USBCLKSOURCE_PLL3: /* PLL3 is used as clock source for USB*/
  30902. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  30903. 800d5ae: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30904. 800d5b2: 3328 adds r3, #40 @ 0x28
  30905. 800d5b4: 2101 movs r1, #1
  30906. 800d5b6: 4618 mov r0, r3
  30907. 800d5b8: f001 fc50 bl 800ee5c <RCCEx_PLL3_Config>
  30908. 800d5bc: 4603 mov r3, r0
  30909. 800d5be: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30910. /* USB clock source configuration done later after clock selection check */
  30911. break;
  30912. 800d5c2: e004 b.n 800d5ce <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30913. /* HSI48 oscillator is used as source of USB clock */
  30914. /* USB clock source configuration done later after clock selection check */
  30915. break;
  30916. default:
  30917. ret = HAL_ERROR;
  30918. 800d5c4: 2301 movs r3, #1
  30919. 800d5c6: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30920. break;
  30921. 800d5ca: e000 b.n 800d5ce <HAL_RCCEx_PeriphCLKConfig+0xfd2>
  30922. break;
  30923. 800d5cc: bf00 nop
  30924. }
  30925. if (ret == HAL_OK)
  30926. 800d5ce: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30927. 800d5d2: 2b00 cmp r3, #0
  30928. 800d5d4: d10b bne.n 800d5ee <HAL_RCCEx_PeriphCLKConfig+0xff2>
  30929. {
  30930. /* Set the source of USB clock*/
  30931. __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection);
  30932. 800d5d6: 4b41 ldr r3, [pc, #260] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30933. 800d5d8: 6d5b ldr r3, [r3, #84] @ 0x54
  30934. 800d5da: f423 1140 bic.w r1, r3, #3145728 @ 0x300000
  30935. 800d5de: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30936. 800d5e2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  30937. 800d5e6: 4a3d ldr r2, [pc, #244] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30938. 800d5e8: 430b orrs r3, r1
  30939. 800d5ea: 6553 str r3, [r2, #84] @ 0x54
  30940. 800d5ec: e003 b.n 800d5f6 <HAL_RCCEx_PeriphCLKConfig+0xffa>
  30941. }
  30942. else
  30943. {
  30944. /* set overall return value */
  30945. status = ret;
  30946. 800d5ee: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  30947. 800d5f2: f887 311e strb.w r3, [r7, #286] @ 0x11e
  30948. }
  30949. }
  30950. /*------------------------------------- SDMMC Configuration ------------------------------------*/
  30951. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC) == RCC_PERIPHCLK_SDMMC)
  30952. 800d5f6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30953. 800d5fa: e9d3 2300 ldrd r2, r3, [r3]
  30954. 800d5fe: f402 3380 and.w r3, r2, #65536 @ 0x10000
  30955. 800d602: 66bb str r3, [r7, #104] @ 0x68
  30956. 800d604: 2300 movs r3, #0
  30957. 800d606: 66fb str r3, [r7, #108] @ 0x6c
  30958. 800d608: e9d7 121a ldrd r1, r2, [r7, #104] @ 0x68
  30959. 800d60c: 460b mov r3, r1
  30960. 800d60e: 4313 orrs r3, r2
  30961. 800d610: d031 beq.n 800d676 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  30962. {
  30963. /* Check the parameters */
  30964. assert_param(IS_RCC_SDMMC(PeriphClkInit->SdmmcClockSelection));
  30965. switch (PeriphClkInit->SdmmcClockSelection)
  30966. 800d612: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30967. 800d616: 6d1b ldr r3, [r3, #80] @ 0x50
  30968. 800d618: 2b00 cmp r3, #0
  30969. 800d61a: d003 beq.n 800d624 <HAL_RCCEx_PeriphCLKConfig+0x1028>
  30970. 800d61c: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  30971. 800d620: d007 beq.n 800d632 <HAL_RCCEx_PeriphCLKConfig+0x1036>
  30972. 800d622: e011 b.n 800d648 <HAL_RCCEx_PeriphCLKConfig+0x104c>
  30973. {
  30974. case RCC_SDMMCCLKSOURCE_PLL: /* PLL is used as clock source for SDMMC*/
  30975. /* Enable SDMMC Clock output generated form System PLL . */
  30976. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  30977. 800d624: 4b2d ldr r3, [pc, #180] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30978. 800d626: 6adb ldr r3, [r3, #44] @ 0x2c
  30979. 800d628: 4a2c ldr r2, [pc, #176] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  30980. 800d62a: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  30981. 800d62e: 62d3 str r3, [r2, #44] @ 0x2c
  30982. /* SDMMC clock source configuration done later after clock selection check */
  30983. break;
  30984. 800d630: e00e b.n 800d650 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  30985. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is used as clock source for SDMMC*/
  30986. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  30987. 800d632: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  30988. 800d636: 3308 adds r3, #8
  30989. 800d638: 2102 movs r1, #2
  30990. 800d63a: 4618 mov r0, r3
  30991. 800d63c: f001 fb5c bl 800ecf8 <RCCEx_PLL2_Config>
  30992. 800d640: 4603 mov r3, r0
  30993. 800d642: f887 311f strb.w r3, [r7, #287] @ 0x11f
  30994. /* SDMMC clock source configuration done later after clock selection check */
  30995. break;
  30996. 800d646: e003 b.n 800d650 <HAL_RCCEx_PeriphCLKConfig+0x1054>
  30997. default:
  30998. ret = HAL_ERROR;
  30999. 800d648: 2301 movs r3, #1
  31000. 800d64a: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31001. break;
  31002. 800d64e: bf00 nop
  31003. }
  31004. if (ret == HAL_OK)
  31005. 800d650: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31006. 800d654: 2b00 cmp r3, #0
  31007. 800d656: d10a bne.n 800d66e <HAL_RCCEx_PeriphCLKConfig+0x1072>
  31008. {
  31009. /* Set the source of SDMMC clock*/
  31010. __HAL_RCC_SDMMC_CONFIG(PeriphClkInit->SdmmcClockSelection);
  31011. 800d658: 4b20 ldr r3, [pc, #128] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31012. 800d65a: 6cdb ldr r3, [r3, #76] @ 0x4c
  31013. 800d65c: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  31014. 800d660: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31015. 800d664: 6d1b ldr r3, [r3, #80] @ 0x50
  31016. 800d666: 4a1d ldr r2, [pc, #116] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31017. 800d668: 430b orrs r3, r1
  31018. 800d66a: 64d3 str r3, [r2, #76] @ 0x4c
  31019. 800d66c: e003 b.n 800d676 <HAL_RCCEx_PeriphCLKConfig+0x107a>
  31020. }
  31021. else
  31022. {
  31023. /* set overall return value */
  31024. status = ret;
  31025. 800d66e: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31026. 800d672: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31027. }
  31028. }
  31029. #endif /* LTDC */
  31030. /*------------------------------ RNG Configuration -------------------------*/
  31031. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RNG) == RCC_PERIPHCLK_RNG)
  31032. 800d676: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31033. 800d67a: e9d3 2300 ldrd r2, r3, [r3]
  31034. 800d67e: f402 3300 and.w r3, r2, #131072 @ 0x20000
  31035. 800d682: 663b str r3, [r7, #96] @ 0x60
  31036. 800d684: 2300 movs r3, #0
  31037. 800d686: 667b str r3, [r7, #100] @ 0x64
  31038. 800d688: e9d7 1218 ldrd r1, r2, [r7, #96] @ 0x60
  31039. 800d68c: 460b mov r3, r1
  31040. 800d68e: 4313 orrs r3, r2
  31041. 800d690: d03b beq.n 800d70a <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31042. {
  31043. switch (PeriphClkInit->RngClockSelection)
  31044. 800d692: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31045. 800d696: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31046. 800d69a: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31047. 800d69e: d018 beq.n 800d6d2 <HAL_RCCEx_PeriphCLKConfig+0x10d6>
  31048. 800d6a0: f5b3 7f40 cmp.w r3, #768 @ 0x300
  31049. 800d6a4: d811 bhi.n 800d6ca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31050. 800d6a6: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31051. 800d6aa: d014 beq.n 800d6d6 <HAL_RCCEx_PeriphCLKConfig+0x10da>
  31052. 800d6ac: f5b3 7f00 cmp.w r3, #512 @ 0x200
  31053. 800d6b0: d80b bhi.n 800d6ca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31054. 800d6b2: 2b00 cmp r3, #0
  31055. 800d6b4: d014 beq.n 800d6e0 <HAL_RCCEx_PeriphCLKConfig+0x10e4>
  31056. 800d6b6: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31057. 800d6ba: d106 bne.n 800d6ca <HAL_RCCEx_PeriphCLKConfig+0x10ce>
  31058. {
  31059. case RCC_RNGCLKSOURCE_PLL: /* PLL is used as clock source for RNG*/
  31060. /* Enable RNG Clock output generated form System RNG . */
  31061. __HAL_RCC_PLLCLKOUT_ENABLE(RCC_PLL1_DIVQ);
  31062. 800d6bc: 4b07 ldr r3, [pc, #28] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31063. 800d6be: 6adb ldr r3, [r3, #44] @ 0x2c
  31064. 800d6c0: 4a06 ldr r2, [pc, #24] @ (800d6dc <HAL_RCCEx_PeriphCLKConfig+0x10e0>)
  31065. 800d6c2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
  31066. 800d6c6: 62d3 str r3, [r2, #44] @ 0x2c
  31067. /* RNG clock source configuration done later after clock selection check */
  31068. break;
  31069. 800d6c8: e00b b.n 800d6e2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31070. /* HSI48 oscillator is used as source of RNG clock */
  31071. /* RNG clock source configuration done later after clock selection check */
  31072. break;
  31073. default:
  31074. ret = HAL_ERROR;
  31075. 800d6ca: 2301 movs r3, #1
  31076. 800d6cc: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31077. break;
  31078. 800d6d0: e007 b.n 800d6e2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31079. break;
  31080. 800d6d2: bf00 nop
  31081. 800d6d4: e005 b.n 800d6e2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31082. break;
  31083. 800d6d6: bf00 nop
  31084. 800d6d8: e003 b.n 800d6e2 <HAL_RCCEx_PeriphCLKConfig+0x10e6>
  31085. 800d6da: bf00 nop
  31086. 800d6dc: 58024400 .word 0x58024400
  31087. break;
  31088. 800d6e0: bf00 nop
  31089. }
  31090. if (ret == HAL_OK)
  31091. 800d6e2: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31092. 800d6e6: 2b00 cmp r3, #0
  31093. 800d6e8: d10b bne.n 800d702 <HAL_RCCEx_PeriphCLKConfig+0x1106>
  31094. {
  31095. /* Set the source of RNG clock*/
  31096. __HAL_RCC_RNG_CONFIG(PeriphClkInit->RngClockSelection);
  31097. 800d6ea: 4bba ldr r3, [pc, #744] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31098. 800d6ec: 6d5b ldr r3, [r3, #84] @ 0x54
  31099. 800d6ee: f423 7140 bic.w r1, r3, #768 @ 0x300
  31100. 800d6f2: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31101. 800d6f6: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  31102. 800d6fa: 4ab6 ldr r2, [pc, #728] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31103. 800d6fc: 430b orrs r3, r1
  31104. 800d6fe: 6553 str r3, [r2, #84] @ 0x54
  31105. 800d700: e003 b.n 800d70a <HAL_RCCEx_PeriphCLKConfig+0x110e>
  31106. }
  31107. else
  31108. {
  31109. /* set overall return value */
  31110. status = ret;
  31111. 800d702: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31112. 800d706: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31113. }
  31114. }
  31115. /*------------------------------ SWPMI1 Configuration ------------------------*/
  31116. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SWPMI1) == RCC_PERIPHCLK_SWPMI1)
  31117. 800d70a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31118. 800d70e: e9d3 2300 ldrd r2, r3, [r3]
  31119. 800d712: f402 1380 and.w r3, r2, #1048576 @ 0x100000
  31120. 800d716: 65bb str r3, [r7, #88] @ 0x58
  31121. 800d718: 2300 movs r3, #0
  31122. 800d71a: 65fb str r3, [r7, #92] @ 0x5c
  31123. 800d71c: e9d7 1216 ldrd r1, r2, [r7, #88] @ 0x58
  31124. 800d720: 460b mov r3, r1
  31125. 800d722: 4313 orrs r3, r2
  31126. 800d724: d009 beq.n 800d73a <HAL_RCCEx_PeriphCLKConfig+0x113e>
  31127. {
  31128. /* Check the parameters */
  31129. assert_param(IS_RCC_SWPMI1CLKSOURCE(PeriphClkInit->Swpmi1ClockSelection));
  31130. /* Configure the SWPMI1 interface clock source */
  31131. __HAL_RCC_SWPMI1_CONFIG(PeriphClkInit->Swpmi1ClockSelection);
  31132. 800d726: 4bab ldr r3, [pc, #684] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31133. 800d728: 6d1b ldr r3, [r3, #80] @ 0x50
  31134. 800d72a: f023 4100 bic.w r1, r3, #2147483648 @ 0x80000000
  31135. 800d72e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31136. 800d732: 6f5b ldr r3, [r3, #116] @ 0x74
  31137. 800d734: 4aa7 ldr r2, [pc, #668] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31138. 800d736: 430b orrs r3, r1
  31139. 800d738: 6513 str r3, [r2, #80] @ 0x50
  31140. }
  31141. #if defined(HRTIM1)
  31142. /*------------------------------ HRTIM1 clock Configuration ----------------*/
  31143. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_HRTIM1) == RCC_PERIPHCLK_HRTIM1)
  31144. 800d73a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31145. 800d73e: e9d3 2300 ldrd r2, r3, [r3]
  31146. 800d742: f002 5380 and.w r3, r2, #268435456 @ 0x10000000
  31147. 800d746: 653b str r3, [r7, #80] @ 0x50
  31148. 800d748: 2300 movs r3, #0
  31149. 800d74a: 657b str r3, [r7, #84] @ 0x54
  31150. 800d74c: e9d7 1214 ldrd r1, r2, [r7, #80] @ 0x50
  31151. 800d750: 460b mov r3, r1
  31152. 800d752: 4313 orrs r3, r2
  31153. 800d754: d00a beq.n 800d76c <HAL_RCCEx_PeriphCLKConfig+0x1170>
  31154. {
  31155. /* Check the parameters */
  31156. assert_param(IS_RCC_HRTIM1CLKSOURCE(PeriphClkInit->Hrtim1ClockSelection));
  31157. /* Configure the HRTIM1 clock source */
  31158. __HAL_RCC_HRTIM1_CONFIG(PeriphClkInit->Hrtim1ClockSelection);
  31159. 800d756: 4b9f ldr r3, [pc, #636] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31160. 800d758: 691b ldr r3, [r3, #16]
  31161. 800d75a: f423 4180 bic.w r1, r3, #16384 @ 0x4000
  31162. 800d75e: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31163. 800d762: f8d3 30b8 ldr.w r3, [r3, #184] @ 0xb8
  31164. 800d766: 4a9b ldr r2, [pc, #620] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31165. 800d768: 430b orrs r3, r1
  31166. 800d76a: 6113 str r3, [r2, #16]
  31167. }
  31168. #endif /*HRTIM1*/
  31169. /*------------------------------ DFSDM1 Configuration ------------------------*/
  31170. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_DFSDM1) == RCC_PERIPHCLK_DFSDM1)
  31171. 800d76c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31172. 800d770: e9d3 2300 ldrd r2, r3, [r3]
  31173. 800d774: f402 1300 and.w r3, r2, #2097152 @ 0x200000
  31174. 800d778: 64bb str r3, [r7, #72] @ 0x48
  31175. 800d77a: 2300 movs r3, #0
  31176. 800d77c: 64fb str r3, [r7, #76] @ 0x4c
  31177. 800d77e: e9d7 1212 ldrd r1, r2, [r7, #72] @ 0x48
  31178. 800d782: 460b mov r3, r1
  31179. 800d784: 4313 orrs r3, r2
  31180. 800d786: d009 beq.n 800d79c <HAL_RCCEx_PeriphCLKConfig+0x11a0>
  31181. {
  31182. /* Check the parameters */
  31183. assert_param(IS_RCC_DFSDM1CLKSOURCE(PeriphClkInit->Dfsdm1ClockSelection));
  31184. /* Configure the DFSDM1 interface clock source */
  31185. __HAL_RCC_DFSDM1_CONFIG(PeriphClkInit->Dfsdm1ClockSelection);
  31186. 800d788: 4b92 ldr r3, [pc, #584] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31187. 800d78a: 6d1b ldr r3, [r3, #80] @ 0x50
  31188. 800d78c: f023 7180 bic.w r1, r3, #16777216 @ 0x1000000
  31189. 800d790: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31190. 800d794: 6edb ldr r3, [r3, #108] @ 0x6c
  31191. 800d796: 4a8f ldr r2, [pc, #572] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31192. 800d798: 430b orrs r3, r1
  31193. 800d79a: 6513 str r3, [r2, #80] @ 0x50
  31194. __HAL_RCC_DFSDM2_CONFIG(PeriphClkInit->Dfsdm2ClockSelection);
  31195. }
  31196. #endif /* DFSDM2 */
  31197. /*------------------------------------ TIM configuration --------------------------------------*/
  31198. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == RCC_PERIPHCLK_TIM)
  31199. 800d79c: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31200. 800d7a0: e9d3 2300 ldrd r2, r3, [r3]
  31201. 800d7a4: f002 4380 and.w r3, r2, #1073741824 @ 0x40000000
  31202. 800d7a8: 643b str r3, [r7, #64] @ 0x40
  31203. 800d7aa: 2300 movs r3, #0
  31204. 800d7ac: 647b str r3, [r7, #68] @ 0x44
  31205. 800d7ae: e9d7 1210 ldrd r1, r2, [r7, #64] @ 0x40
  31206. 800d7b2: 460b mov r3, r1
  31207. 800d7b4: 4313 orrs r3, r2
  31208. 800d7b6: d00e beq.n 800d7d6 <HAL_RCCEx_PeriphCLKConfig+0x11da>
  31209. {
  31210. /* Check the parameters */
  31211. assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
  31212. /* Configure Timer Prescaler */
  31213. __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
  31214. 800d7b8: 4b86 ldr r3, [pc, #536] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31215. 800d7ba: 691b ldr r3, [r3, #16]
  31216. 800d7bc: 4a85 ldr r2, [pc, #532] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31217. 800d7be: f423 4300 bic.w r3, r3, #32768 @ 0x8000
  31218. 800d7c2: 6113 str r3, [r2, #16]
  31219. 800d7c4: 4b83 ldr r3, [pc, #524] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31220. 800d7c6: 6919 ldr r1, [r3, #16]
  31221. 800d7c8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31222. 800d7cc: f8d3 30bc ldr.w r3, [r3, #188] @ 0xbc
  31223. 800d7d0: 4a80 ldr r2, [pc, #512] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31224. 800d7d2: 430b orrs r3, r1
  31225. 800d7d4: 6113 str r3, [r2, #16]
  31226. }
  31227. /*------------------------------------ CKPER configuration --------------------------------------*/
  31228. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CKPER) == RCC_PERIPHCLK_CKPER)
  31229. 800d7d6: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31230. 800d7da: e9d3 2300 ldrd r2, r3, [r3]
  31231. 800d7de: f002 4300 and.w r3, r2, #2147483648 @ 0x80000000
  31232. 800d7e2: 63bb str r3, [r7, #56] @ 0x38
  31233. 800d7e4: 2300 movs r3, #0
  31234. 800d7e6: 63fb str r3, [r7, #60] @ 0x3c
  31235. 800d7e8: e9d7 120e ldrd r1, r2, [r7, #56] @ 0x38
  31236. 800d7ec: 460b mov r3, r1
  31237. 800d7ee: 4313 orrs r3, r2
  31238. 800d7f0: d009 beq.n 800d806 <HAL_RCCEx_PeriphCLKConfig+0x120a>
  31239. {
  31240. /* Check the parameters */
  31241. assert_param(IS_RCC_CLKPSOURCE(PeriphClkInit->CkperClockSelection));
  31242. /* Configure the CKPER clock source */
  31243. __HAL_RCC_CLKP_CONFIG(PeriphClkInit->CkperClockSelection);
  31244. 800d7f2: 4b78 ldr r3, [pc, #480] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31245. 800d7f4: 6cdb ldr r3, [r3, #76] @ 0x4c
  31246. 800d7f6: f023 5140 bic.w r1, r3, #805306368 @ 0x30000000
  31247. 800d7fa: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31248. 800d7fe: 6d5b ldr r3, [r3, #84] @ 0x54
  31249. 800d800: 4a74 ldr r2, [pc, #464] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31250. 800d802: 430b orrs r3, r1
  31251. 800d804: 64d3 str r3, [r2, #76] @ 0x4c
  31252. }
  31253. /*------------------------------ CEC Configuration ------------------------*/
  31254. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC)
  31255. 800d806: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31256. 800d80a: e9d3 2300 ldrd r2, r3, [r3]
  31257. 800d80e: f402 0300 and.w r3, r2, #8388608 @ 0x800000
  31258. 800d812: 633b str r3, [r7, #48] @ 0x30
  31259. 800d814: 2300 movs r3, #0
  31260. 800d816: 637b str r3, [r7, #52] @ 0x34
  31261. 800d818: e9d7 120c ldrd r1, r2, [r7, #48] @ 0x30
  31262. 800d81c: 460b mov r3, r1
  31263. 800d81e: 4313 orrs r3, r2
  31264. 800d820: d00a beq.n 800d838 <HAL_RCCEx_PeriphCLKConfig+0x123c>
  31265. {
  31266. /* Check the parameters */
  31267. assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection));
  31268. /* Configure the CEC interface clock source */
  31269. __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection);
  31270. 800d822: 4b6c ldr r3, [pc, #432] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31271. 800d824: 6d5b ldr r3, [r3, #84] @ 0x54
  31272. 800d826: f423 0140 bic.w r1, r3, #12582912 @ 0xc00000
  31273. 800d82a: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31274. 800d82e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  31275. 800d832: 4a68 ldr r2, [pc, #416] @ (800d9d4 <HAL_RCCEx_PeriphCLKConfig+0x13d8>)
  31276. 800d834: 430b orrs r3, r1
  31277. 800d836: 6553 str r3, [r2, #84] @ 0x54
  31278. }
  31279. /*---------------------------- PLL2 configuration -------------------------------*/
  31280. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVP) == RCC_PERIPHCLK_PLL2_DIVP)
  31281. 800d838: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31282. 800d83c: e9d3 2300 ldrd r2, r3, [r3]
  31283. 800d840: 2100 movs r1, #0
  31284. 800d842: 62b9 str r1, [r7, #40] @ 0x28
  31285. 800d844: f003 0301 and.w r3, r3, #1
  31286. 800d848: 62fb str r3, [r7, #44] @ 0x2c
  31287. 800d84a: e9d7 120a ldrd r1, r2, [r7, #40] @ 0x28
  31288. 800d84e: 460b mov r3, r1
  31289. 800d850: 4313 orrs r3, r2
  31290. 800d852: d011 beq.n 800d878 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31291. {
  31292. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_P_UPDATE);
  31293. 800d854: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31294. 800d858: 3308 adds r3, #8
  31295. 800d85a: 2100 movs r1, #0
  31296. 800d85c: 4618 mov r0, r3
  31297. 800d85e: f001 fa4b bl 800ecf8 <RCCEx_PLL2_Config>
  31298. 800d862: 4603 mov r3, r0
  31299. 800d864: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31300. if (ret == HAL_OK)
  31301. 800d868: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31302. 800d86c: 2b00 cmp r3, #0
  31303. 800d86e: d003 beq.n 800d878 <HAL_RCCEx_PeriphCLKConfig+0x127c>
  31304. /*Nothing to do*/
  31305. }
  31306. else
  31307. {
  31308. /* set overall return value */
  31309. status = ret;
  31310. 800d870: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31311. 800d874: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31312. }
  31313. }
  31314. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVQ) == RCC_PERIPHCLK_PLL2_DIVQ)
  31315. 800d878: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31316. 800d87c: e9d3 2300 ldrd r2, r3, [r3]
  31317. 800d880: 2100 movs r1, #0
  31318. 800d882: 6239 str r1, [r7, #32]
  31319. 800d884: f003 0302 and.w r3, r3, #2
  31320. 800d888: 627b str r3, [r7, #36] @ 0x24
  31321. 800d88a: e9d7 1208 ldrd r1, r2, [r7, #32]
  31322. 800d88e: 460b mov r3, r1
  31323. 800d890: 4313 orrs r3, r2
  31324. 800d892: d011 beq.n 800d8b8 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31325. {
  31326. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_Q_UPDATE);
  31327. 800d894: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31328. 800d898: 3308 adds r3, #8
  31329. 800d89a: 2101 movs r1, #1
  31330. 800d89c: 4618 mov r0, r3
  31331. 800d89e: f001 fa2b bl 800ecf8 <RCCEx_PLL2_Config>
  31332. 800d8a2: 4603 mov r3, r0
  31333. 800d8a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31334. if (ret == HAL_OK)
  31335. 800d8a8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31336. 800d8ac: 2b00 cmp r3, #0
  31337. 800d8ae: d003 beq.n 800d8b8 <HAL_RCCEx_PeriphCLKConfig+0x12bc>
  31338. /*Nothing to do*/
  31339. }
  31340. else
  31341. {
  31342. /* set overall return value */
  31343. status = ret;
  31344. 800d8b0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31345. 800d8b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31346. }
  31347. }
  31348. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL2_DIVR) == RCC_PERIPHCLK_PLL2_DIVR)
  31349. 800d8b8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31350. 800d8bc: e9d3 2300 ldrd r2, r3, [r3]
  31351. 800d8c0: 2100 movs r1, #0
  31352. 800d8c2: 61b9 str r1, [r7, #24]
  31353. 800d8c4: f003 0304 and.w r3, r3, #4
  31354. 800d8c8: 61fb str r3, [r7, #28]
  31355. 800d8ca: e9d7 1206 ldrd r1, r2, [r7, #24]
  31356. 800d8ce: 460b mov r3, r1
  31357. 800d8d0: 4313 orrs r3, r2
  31358. 800d8d2: d011 beq.n 800d8f8 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31359. {
  31360. ret = RCCEx_PLL2_Config(&(PeriphClkInit->PLL2), DIVIDER_R_UPDATE);
  31361. 800d8d4: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31362. 800d8d8: 3308 adds r3, #8
  31363. 800d8da: 2102 movs r1, #2
  31364. 800d8dc: 4618 mov r0, r3
  31365. 800d8de: f001 fa0b bl 800ecf8 <RCCEx_PLL2_Config>
  31366. 800d8e2: 4603 mov r3, r0
  31367. 800d8e4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31368. if (ret == HAL_OK)
  31369. 800d8e8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31370. 800d8ec: 2b00 cmp r3, #0
  31371. 800d8ee: d003 beq.n 800d8f8 <HAL_RCCEx_PeriphCLKConfig+0x12fc>
  31372. /*Nothing to do*/
  31373. }
  31374. else
  31375. {
  31376. /* set overall return value */
  31377. status = ret;
  31378. 800d8f0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31379. 800d8f4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31380. }
  31381. }
  31382. /*---------------------------- PLL3 configuration -------------------------------*/
  31383. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVP) == RCC_PERIPHCLK_PLL3_DIVP)
  31384. 800d8f8: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31385. 800d8fc: e9d3 2300 ldrd r2, r3, [r3]
  31386. 800d900: 2100 movs r1, #0
  31387. 800d902: 6139 str r1, [r7, #16]
  31388. 800d904: f003 0308 and.w r3, r3, #8
  31389. 800d908: 617b str r3, [r7, #20]
  31390. 800d90a: e9d7 1204 ldrd r1, r2, [r7, #16]
  31391. 800d90e: 460b mov r3, r1
  31392. 800d910: 4313 orrs r3, r2
  31393. 800d912: d011 beq.n 800d938 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31394. {
  31395. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_P_UPDATE);
  31396. 800d914: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31397. 800d918: 3328 adds r3, #40 @ 0x28
  31398. 800d91a: 2100 movs r1, #0
  31399. 800d91c: 4618 mov r0, r3
  31400. 800d91e: f001 fa9d bl 800ee5c <RCCEx_PLL3_Config>
  31401. 800d922: 4603 mov r3, r0
  31402. 800d924: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31403. if (ret == HAL_OK)
  31404. 800d928: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31405. 800d92c: 2b00 cmp r3, #0
  31406. 800d92e: d003 beq.n 800d938 <HAL_RCCEx_PeriphCLKConfig+0x133c>
  31407. /*Nothing to do*/
  31408. }
  31409. else
  31410. {
  31411. /* set overall return value */
  31412. status = ret;
  31413. 800d930: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31414. 800d934: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31415. }
  31416. }
  31417. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVQ) == RCC_PERIPHCLK_PLL3_DIVQ)
  31418. 800d938: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31419. 800d93c: e9d3 2300 ldrd r2, r3, [r3]
  31420. 800d940: 2100 movs r1, #0
  31421. 800d942: 60b9 str r1, [r7, #8]
  31422. 800d944: f003 0310 and.w r3, r3, #16
  31423. 800d948: 60fb str r3, [r7, #12]
  31424. 800d94a: e9d7 1202 ldrd r1, r2, [r7, #8]
  31425. 800d94e: 460b mov r3, r1
  31426. 800d950: 4313 orrs r3, r2
  31427. 800d952: d011 beq.n 800d978 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31428. {
  31429. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_Q_UPDATE);
  31430. 800d954: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31431. 800d958: 3328 adds r3, #40 @ 0x28
  31432. 800d95a: 2101 movs r1, #1
  31433. 800d95c: 4618 mov r0, r3
  31434. 800d95e: f001 fa7d bl 800ee5c <RCCEx_PLL3_Config>
  31435. 800d962: 4603 mov r3, r0
  31436. 800d964: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31437. if (ret == HAL_OK)
  31438. 800d968: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31439. 800d96c: 2b00 cmp r3, #0
  31440. 800d96e: d003 beq.n 800d978 <HAL_RCCEx_PeriphCLKConfig+0x137c>
  31441. /*Nothing to do*/
  31442. }
  31443. else
  31444. {
  31445. /* set overall return value */
  31446. status = ret;
  31447. 800d970: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31448. 800d974: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31449. }
  31450. }
  31451. if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLL3_DIVR) == RCC_PERIPHCLK_PLL3_DIVR)
  31452. 800d978: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31453. 800d97c: e9d3 2300 ldrd r2, r3, [r3]
  31454. 800d980: 2100 movs r1, #0
  31455. 800d982: 6039 str r1, [r7, #0]
  31456. 800d984: f003 0320 and.w r3, r3, #32
  31457. 800d988: 607b str r3, [r7, #4]
  31458. 800d98a: e9d7 1200 ldrd r1, r2, [r7]
  31459. 800d98e: 460b mov r3, r1
  31460. 800d990: 4313 orrs r3, r2
  31461. 800d992: d011 beq.n 800d9b8 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31462. {
  31463. ret = RCCEx_PLL3_Config(&(PeriphClkInit->PLL3), DIVIDER_R_UPDATE);
  31464. 800d994: f8d7 310c ldr.w r3, [r7, #268] @ 0x10c
  31465. 800d998: 3328 adds r3, #40 @ 0x28
  31466. 800d99a: 2102 movs r1, #2
  31467. 800d99c: 4618 mov r0, r3
  31468. 800d99e: f001 fa5d bl 800ee5c <RCCEx_PLL3_Config>
  31469. 800d9a2: 4603 mov r3, r0
  31470. 800d9a4: f887 311f strb.w r3, [r7, #287] @ 0x11f
  31471. if (ret == HAL_OK)
  31472. 800d9a8: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31473. 800d9ac: 2b00 cmp r3, #0
  31474. 800d9ae: d003 beq.n 800d9b8 <HAL_RCCEx_PeriphCLKConfig+0x13bc>
  31475. /*Nothing to do*/
  31476. }
  31477. else
  31478. {
  31479. /* set overall return value */
  31480. status = ret;
  31481. 800d9b0: f897 311f ldrb.w r3, [r7, #287] @ 0x11f
  31482. 800d9b4: f887 311e strb.w r3, [r7, #286] @ 0x11e
  31483. }
  31484. }
  31485. if (status == HAL_OK)
  31486. 800d9b8: f897 311e ldrb.w r3, [r7, #286] @ 0x11e
  31487. 800d9bc: 2b00 cmp r3, #0
  31488. 800d9be: d101 bne.n 800d9c4 <HAL_RCCEx_PeriphCLKConfig+0x13c8>
  31489. {
  31490. return HAL_OK;
  31491. 800d9c0: 2300 movs r3, #0
  31492. 800d9c2: e000 b.n 800d9c6 <HAL_RCCEx_PeriphCLKConfig+0x13ca>
  31493. }
  31494. return HAL_ERROR;
  31495. 800d9c4: 2301 movs r3, #1
  31496. }
  31497. 800d9c6: 4618 mov r0, r3
  31498. 800d9c8: f507 7790 add.w r7, r7, #288 @ 0x120
  31499. 800d9cc: 46bd mov sp, r7
  31500. 800d9ce: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  31501. 800d9d2: bf00 nop
  31502. 800d9d4: 58024400 .word 0x58024400
  31503. 0800d9d8 <HAL_RCCEx_GetPeriphCLKFreq>:
  31504. * @retval Frequency in KHz
  31505. *
  31506. * (*) : Available on some STM32H7 lines only.
  31507. */
  31508. uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint64_t PeriphClk)
  31509. {
  31510. 800d9d8: b580 push {r7, lr}
  31511. 800d9da: b090 sub sp, #64 @ 0x40
  31512. 800d9dc: af00 add r7, sp, #0
  31513. 800d9de: e9c7 0100 strd r0, r1, [r7]
  31514. /* This variable is used to store the SAI and CKP clock source */
  31515. uint32_t saiclocksource;
  31516. uint32_t ckpclocksource;
  31517. uint32_t srcclk;
  31518. if (PeriphClk == RCC_PERIPHCLK_SAI1)
  31519. 800d9e2: e9d7 2300 ldrd r2, r3, [r7]
  31520. 800d9e6: f5a2 7180 sub.w r1, r2, #256 @ 0x100
  31521. 800d9ea: 430b orrs r3, r1
  31522. 800d9ec: f040 8094 bne.w 800db18 <HAL_RCCEx_GetPeriphCLKFreq+0x140>
  31523. {
  31524. saiclocksource = __HAL_RCC_GET_SAI1_SOURCE();
  31525. 800d9f0: 4b9e ldr r3, [pc, #632] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31526. 800d9f2: 6d1b ldr r3, [r3, #80] @ 0x50
  31527. 800d9f4: f003 0307 and.w r3, r3, #7
  31528. 800d9f8: 633b str r3, [r7, #48] @ 0x30
  31529. switch (saiclocksource)
  31530. 800d9fa: 6b3b ldr r3, [r7, #48] @ 0x30
  31531. 800d9fc: 2b04 cmp r3, #4
  31532. 800d9fe: f200 8087 bhi.w 800db10 <HAL_RCCEx_GetPeriphCLKFreq+0x138>
  31533. 800da02: a201 add r2, pc, #4 @ (adr r2, 800da08 <HAL_RCCEx_GetPeriphCLKFreq+0x30>)
  31534. 800da04: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  31535. 800da08: 0800da1d .word 0x0800da1d
  31536. 800da0c: 0800da45 .word 0x0800da45
  31537. 800da10: 0800da6d .word 0x0800da6d
  31538. 800da14: 0800db09 .word 0x0800db09
  31539. 800da18: 0800da95 .word 0x0800da95
  31540. {
  31541. case RCC_SAI1CLKSOURCE_PLL: /* PLL1 is the clock source for SAI1 */
  31542. {
  31543. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31544. 800da1c: 4b93 ldr r3, [pc, #588] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31545. 800da1e: 681b ldr r3, [r3, #0]
  31546. 800da20: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31547. 800da24: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31548. 800da28: d108 bne.n 800da3c <HAL_RCCEx_GetPeriphCLKFreq+0x64>
  31549. {
  31550. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31551. 800da2a: f107 0324 add.w r3, r7, #36 @ 0x24
  31552. 800da2e: 4618 mov r0, r3
  31553. 800da30: f001 f810 bl 800ea54 <HAL_RCCEx_GetPLL1ClockFreq>
  31554. frequency = pll1_clocks.PLL1_Q_Frequency;
  31555. 800da34: 6abb ldr r3, [r7, #40] @ 0x28
  31556. 800da36: 63fb str r3, [r7, #60] @ 0x3c
  31557. }
  31558. else
  31559. {
  31560. frequency = 0;
  31561. }
  31562. break;
  31563. 800da38: f000 bd45 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31564. frequency = 0;
  31565. 800da3c: 2300 movs r3, #0
  31566. 800da3e: 63fb str r3, [r7, #60] @ 0x3c
  31567. break;
  31568. 800da40: f000 bd41 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31569. }
  31570. case RCC_SAI1CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI1 */
  31571. {
  31572. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31573. 800da44: 4b89 ldr r3, [pc, #548] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31574. 800da46: 681b ldr r3, [r3, #0]
  31575. 800da48: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31576. 800da4c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31577. 800da50: d108 bne.n 800da64 <HAL_RCCEx_GetPeriphCLKFreq+0x8c>
  31578. {
  31579. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31580. 800da52: f107 0318 add.w r3, r7, #24
  31581. 800da56: 4618 mov r0, r3
  31582. 800da58: f000 fd54 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  31583. frequency = pll2_clocks.PLL2_P_Frequency;
  31584. 800da5c: 69bb ldr r3, [r7, #24]
  31585. 800da5e: 63fb str r3, [r7, #60] @ 0x3c
  31586. }
  31587. else
  31588. {
  31589. frequency = 0;
  31590. }
  31591. break;
  31592. 800da60: f000 bd31 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31593. frequency = 0;
  31594. 800da64: 2300 movs r3, #0
  31595. 800da66: 63fb str r3, [r7, #60] @ 0x3c
  31596. break;
  31597. 800da68: f000 bd2d b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31598. }
  31599. case RCC_SAI1CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI1 */
  31600. {
  31601. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31602. 800da6c: 4b7f ldr r3, [pc, #508] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31603. 800da6e: 681b ldr r3, [r3, #0]
  31604. 800da70: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31605. 800da74: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31606. 800da78: d108 bne.n 800da8c <HAL_RCCEx_GetPeriphCLKFreq+0xb4>
  31607. {
  31608. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31609. 800da7a: f107 030c add.w r3, r7, #12
  31610. 800da7e: 4618 mov r0, r3
  31611. 800da80: f000 fe94 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  31612. frequency = pll3_clocks.PLL3_P_Frequency;
  31613. 800da84: 68fb ldr r3, [r7, #12]
  31614. 800da86: 63fb str r3, [r7, #60] @ 0x3c
  31615. }
  31616. else
  31617. {
  31618. frequency = 0;
  31619. }
  31620. break;
  31621. 800da88: f000 bd1d b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31622. frequency = 0;
  31623. 800da8c: 2300 movs r3, #0
  31624. 800da8e: 63fb str r3, [r7, #60] @ 0x3c
  31625. break;
  31626. 800da90: f000 bd19 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31627. }
  31628. case RCC_SAI1CLKSOURCE_CLKP: /* CKPER is the clock source for SAI1*/
  31629. {
  31630. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31631. 800da94: 4b75 ldr r3, [pc, #468] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31632. 800da96: 6cdb ldr r3, [r3, #76] @ 0x4c
  31633. 800da98: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31634. 800da9c: 637b str r3, [r7, #52] @ 0x34
  31635. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31636. 800da9e: 4b73 ldr r3, [pc, #460] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31637. 800daa0: 681b ldr r3, [r3, #0]
  31638. 800daa2: f003 0304 and.w r3, r3, #4
  31639. 800daa6: 2b04 cmp r3, #4
  31640. 800daa8: d10c bne.n 800dac4 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  31641. 800daaa: 6b7b ldr r3, [r7, #52] @ 0x34
  31642. 800daac: 2b00 cmp r3, #0
  31643. 800daae: d109 bne.n 800dac4 <HAL_RCCEx_GetPeriphCLKFreq+0xec>
  31644. {
  31645. /* In Case the CKPER Source is HSI */
  31646. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31647. 800dab0: 4b6e ldr r3, [pc, #440] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31648. 800dab2: 681b ldr r3, [r3, #0]
  31649. 800dab4: 08db lsrs r3, r3, #3
  31650. 800dab6: f003 0303 and.w r3, r3, #3
  31651. 800daba: 4a6d ldr r2, [pc, #436] @ (800dc70 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  31652. 800dabc: fa22 f303 lsr.w r3, r2, r3
  31653. 800dac0: 63fb str r3, [r7, #60] @ 0x3c
  31654. 800dac2: e01f b.n 800db04 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  31655. }
  31656. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31657. 800dac4: 4b69 ldr r3, [pc, #420] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31658. 800dac6: 681b ldr r3, [r3, #0]
  31659. 800dac8: f403 7380 and.w r3, r3, #256 @ 0x100
  31660. 800dacc: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31661. 800dad0: d106 bne.n 800dae0 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  31662. 800dad2: 6b7b ldr r3, [r7, #52] @ 0x34
  31663. 800dad4: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31664. 800dad8: d102 bne.n 800dae0 <HAL_RCCEx_GetPeriphCLKFreq+0x108>
  31665. {
  31666. /* In Case the CKPER Source is CSI */
  31667. frequency = CSI_VALUE;
  31668. 800dada: 4b66 ldr r3, [pc, #408] @ (800dc74 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  31669. 800dadc: 63fb str r3, [r7, #60] @ 0x3c
  31670. 800dade: e011 b.n 800db04 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  31671. }
  31672. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31673. 800dae0: 4b62 ldr r3, [pc, #392] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31674. 800dae2: 681b ldr r3, [r3, #0]
  31675. 800dae4: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31676. 800dae8: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31677. 800daec: d106 bne.n 800dafc <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  31678. 800daee: 6b7b ldr r3, [r7, #52] @ 0x34
  31679. 800daf0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31680. 800daf4: d102 bne.n 800dafc <HAL_RCCEx_GetPeriphCLKFreq+0x124>
  31681. {
  31682. /* In Case the CKPER Source is HSE */
  31683. frequency = HSE_VALUE;
  31684. 800daf6: 4b60 ldr r3, [pc, #384] @ (800dc78 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  31685. 800daf8: 63fb str r3, [r7, #60] @ 0x3c
  31686. 800dafa: e003 b.n 800db04 <HAL_RCCEx_GetPeriphCLKFreq+0x12c>
  31687. }
  31688. else
  31689. {
  31690. /* In Case the CKPER is disabled*/
  31691. frequency = 0;
  31692. 800dafc: 2300 movs r3, #0
  31693. 800dafe: 63fb str r3, [r7, #60] @ 0x3c
  31694. }
  31695. break;
  31696. 800db00: f000 bce1 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31697. 800db04: f000 bcdf b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31698. }
  31699. case (RCC_SAI1CLKSOURCE_PIN): /* External clock is the clock source for SAI1 */
  31700. {
  31701. frequency = EXTERNAL_CLOCK_VALUE;
  31702. 800db08: 4b5c ldr r3, [pc, #368] @ (800dc7c <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  31703. 800db0a: 63fb str r3, [r7, #60] @ 0x3c
  31704. break;
  31705. 800db0c: f000 bcdb b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31706. }
  31707. default :
  31708. {
  31709. frequency = 0;
  31710. 800db10: 2300 movs r3, #0
  31711. 800db12: 63fb str r3, [r7, #60] @ 0x3c
  31712. break;
  31713. 800db14: f000 bcd7 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31714. }
  31715. }
  31716. }
  31717. #if defined(SAI3)
  31718. else if (PeriphClk == RCC_PERIPHCLK_SAI23)
  31719. 800db18: e9d7 2300 ldrd r2, r3, [r7]
  31720. 800db1c: f5a2 7100 sub.w r1, r2, #512 @ 0x200
  31721. 800db20: 430b orrs r3, r1
  31722. 800db22: f040 80ad bne.w 800dc80 <HAL_RCCEx_GetPeriphCLKFreq+0x2a8>
  31723. {
  31724. saiclocksource = __HAL_RCC_GET_SAI23_SOURCE();
  31725. 800db26: 4b51 ldr r3, [pc, #324] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31726. 800db28: 6d1b ldr r3, [r3, #80] @ 0x50
  31727. 800db2a: f403 73e0 and.w r3, r3, #448 @ 0x1c0
  31728. 800db2e: 633b str r3, [r7, #48] @ 0x30
  31729. switch (saiclocksource)
  31730. 800db30: 6b3b ldr r3, [r7, #48] @ 0x30
  31731. 800db32: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31732. 800db36: d056 beq.n 800dbe6 <HAL_RCCEx_GetPeriphCLKFreq+0x20e>
  31733. 800db38: 6b3b ldr r3, [r7, #48] @ 0x30
  31734. 800db3a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31735. 800db3e: f200 8090 bhi.w 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31736. 800db42: 6b3b ldr r3, [r7, #48] @ 0x30
  31737. 800db44: 2bc0 cmp r3, #192 @ 0xc0
  31738. 800db46: f000 8088 beq.w 800dc5a <HAL_RCCEx_GetPeriphCLKFreq+0x282>
  31739. 800db4a: 6b3b ldr r3, [r7, #48] @ 0x30
  31740. 800db4c: 2bc0 cmp r3, #192 @ 0xc0
  31741. 800db4e: f200 8088 bhi.w 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31742. 800db52: 6b3b ldr r3, [r7, #48] @ 0x30
  31743. 800db54: 2b80 cmp r3, #128 @ 0x80
  31744. 800db56: d032 beq.n 800dbbe <HAL_RCCEx_GetPeriphCLKFreq+0x1e6>
  31745. 800db58: 6b3b ldr r3, [r7, #48] @ 0x30
  31746. 800db5a: 2b80 cmp r3, #128 @ 0x80
  31747. 800db5c: f200 8081 bhi.w 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31748. 800db60: 6b3b ldr r3, [r7, #48] @ 0x30
  31749. 800db62: 2b00 cmp r3, #0
  31750. 800db64: d003 beq.n 800db6e <HAL_RCCEx_GetPeriphCLKFreq+0x196>
  31751. 800db66: 6b3b ldr r3, [r7, #48] @ 0x30
  31752. 800db68: 2b40 cmp r3, #64 @ 0x40
  31753. 800db6a: d014 beq.n 800db96 <HAL_RCCEx_GetPeriphCLKFreq+0x1be>
  31754. 800db6c: e079 b.n 800dc62 <HAL_RCCEx_GetPeriphCLKFreq+0x28a>
  31755. {
  31756. case RCC_SAI23CLKSOURCE_PLL: /* PLL1 is the clock source for SAI2/3 */
  31757. {
  31758. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31759. 800db6e: 4b3f ldr r3, [pc, #252] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31760. 800db70: 681b ldr r3, [r3, #0]
  31761. 800db72: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31762. 800db76: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31763. 800db7a: d108 bne.n 800db8e <HAL_RCCEx_GetPeriphCLKFreq+0x1b6>
  31764. {
  31765. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31766. 800db7c: f107 0324 add.w r3, r7, #36 @ 0x24
  31767. 800db80: 4618 mov r0, r3
  31768. 800db82: f000 ff67 bl 800ea54 <HAL_RCCEx_GetPLL1ClockFreq>
  31769. frequency = pll1_clocks.PLL1_Q_Frequency;
  31770. 800db86: 6abb ldr r3, [r7, #40] @ 0x28
  31771. 800db88: 63fb str r3, [r7, #60] @ 0x3c
  31772. }
  31773. else
  31774. {
  31775. frequency = 0;
  31776. }
  31777. break;
  31778. 800db8a: f000 bc9c b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31779. frequency = 0;
  31780. 800db8e: 2300 movs r3, #0
  31781. 800db90: 63fb str r3, [r7, #60] @ 0x3c
  31782. break;
  31783. 800db92: f000 bc98 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31784. }
  31785. case RCC_SAI23CLKSOURCE_PLL2: /* PLL2 is the clock source for SAI2/3 */
  31786. {
  31787. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  31788. 800db96: 4b35 ldr r3, [pc, #212] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31789. 800db98: 681b ldr r3, [r3, #0]
  31790. 800db9a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  31791. 800db9e: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  31792. 800dba2: d108 bne.n 800dbb6 <HAL_RCCEx_GetPeriphCLKFreq+0x1de>
  31793. {
  31794. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  31795. 800dba4: f107 0318 add.w r3, r7, #24
  31796. 800dba8: 4618 mov r0, r3
  31797. 800dbaa: f000 fcab bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  31798. frequency = pll2_clocks.PLL2_P_Frequency;
  31799. 800dbae: 69bb ldr r3, [r7, #24]
  31800. 800dbb0: 63fb str r3, [r7, #60] @ 0x3c
  31801. }
  31802. else
  31803. {
  31804. frequency = 0;
  31805. }
  31806. break;
  31807. 800dbb2: f000 bc88 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31808. frequency = 0;
  31809. 800dbb6: 2300 movs r3, #0
  31810. 800dbb8: 63fb str r3, [r7, #60] @ 0x3c
  31811. break;
  31812. 800dbba: f000 bc84 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31813. }
  31814. case RCC_SAI23CLKSOURCE_PLL3: /* PLL3 is the clock source for SAI2/3 */
  31815. {
  31816. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  31817. 800dbbe: 4b2b ldr r3, [pc, #172] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31818. 800dbc0: 681b ldr r3, [r3, #0]
  31819. 800dbc2: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  31820. 800dbc6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31821. 800dbca: d108 bne.n 800dbde <HAL_RCCEx_GetPeriphCLKFreq+0x206>
  31822. {
  31823. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  31824. 800dbcc: f107 030c add.w r3, r7, #12
  31825. 800dbd0: 4618 mov r0, r3
  31826. 800dbd2: f000 fdeb bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  31827. frequency = pll3_clocks.PLL3_P_Frequency;
  31828. 800dbd6: 68fb ldr r3, [r7, #12]
  31829. 800dbd8: 63fb str r3, [r7, #60] @ 0x3c
  31830. }
  31831. else
  31832. {
  31833. frequency = 0;
  31834. }
  31835. break;
  31836. 800dbda: f000 bc74 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31837. frequency = 0;
  31838. 800dbde: 2300 movs r3, #0
  31839. 800dbe0: 63fb str r3, [r7, #60] @ 0x3c
  31840. break;
  31841. 800dbe2: f000 bc70 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31842. }
  31843. case RCC_SAI23CLKSOURCE_CLKP: /* CKPER is the clock source for SAI2/3 */
  31844. {
  31845. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  31846. 800dbe6: 4b21 ldr r3, [pc, #132] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31847. 800dbe8: 6cdb ldr r3, [r3, #76] @ 0x4c
  31848. 800dbea: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  31849. 800dbee: 637b str r3, [r7, #52] @ 0x34
  31850. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  31851. 800dbf0: 4b1e ldr r3, [pc, #120] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31852. 800dbf2: 681b ldr r3, [r3, #0]
  31853. 800dbf4: f003 0304 and.w r3, r3, #4
  31854. 800dbf8: 2b04 cmp r3, #4
  31855. 800dbfa: d10c bne.n 800dc16 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  31856. 800dbfc: 6b7b ldr r3, [r7, #52] @ 0x34
  31857. 800dbfe: 2b00 cmp r3, #0
  31858. 800dc00: d109 bne.n 800dc16 <HAL_RCCEx_GetPeriphCLKFreq+0x23e>
  31859. {
  31860. /* In Case the CKPER Source is HSI */
  31861. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  31862. 800dc02: 4b1a ldr r3, [pc, #104] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31863. 800dc04: 681b ldr r3, [r3, #0]
  31864. 800dc06: 08db lsrs r3, r3, #3
  31865. 800dc08: f003 0303 and.w r3, r3, #3
  31866. 800dc0c: 4a18 ldr r2, [pc, #96] @ (800dc70 <HAL_RCCEx_GetPeriphCLKFreq+0x298>)
  31867. 800dc0e: fa22 f303 lsr.w r3, r2, r3
  31868. 800dc12: 63fb str r3, [r7, #60] @ 0x3c
  31869. 800dc14: e01f b.n 800dc56 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31870. }
  31871. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  31872. 800dc16: 4b15 ldr r3, [pc, #84] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31873. 800dc18: 681b ldr r3, [r3, #0]
  31874. 800dc1a: f403 7380 and.w r3, r3, #256 @ 0x100
  31875. 800dc1e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  31876. 800dc22: d106 bne.n 800dc32 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  31877. 800dc24: 6b7b ldr r3, [r7, #52] @ 0x34
  31878. 800dc26: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  31879. 800dc2a: d102 bne.n 800dc32 <HAL_RCCEx_GetPeriphCLKFreq+0x25a>
  31880. {
  31881. /* In Case the CKPER Source is CSI */
  31882. frequency = CSI_VALUE;
  31883. 800dc2c: 4b11 ldr r3, [pc, #68] @ (800dc74 <HAL_RCCEx_GetPeriphCLKFreq+0x29c>)
  31884. 800dc2e: 63fb str r3, [r7, #60] @ 0x3c
  31885. 800dc30: e011 b.n 800dc56 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31886. }
  31887. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  31888. 800dc32: 4b0e ldr r3, [pc, #56] @ (800dc6c <HAL_RCCEx_GetPeriphCLKFreq+0x294>)
  31889. 800dc34: 681b ldr r3, [r3, #0]
  31890. 800dc36: f403 3300 and.w r3, r3, #131072 @ 0x20000
  31891. 800dc3a: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  31892. 800dc3e: d106 bne.n 800dc4e <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  31893. 800dc40: 6b7b ldr r3, [r7, #52] @ 0x34
  31894. 800dc42: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  31895. 800dc46: d102 bne.n 800dc4e <HAL_RCCEx_GetPeriphCLKFreq+0x276>
  31896. {
  31897. /* In Case the CKPER Source is HSE */
  31898. frequency = HSE_VALUE;
  31899. 800dc48: 4b0b ldr r3, [pc, #44] @ (800dc78 <HAL_RCCEx_GetPeriphCLKFreq+0x2a0>)
  31900. 800dc4a: 63fb str r3, [r7, #60] @ 0x3c
  31901. 800dc4c: e003 b.n 800dc56 <HAL_RCCEx_GetPeriphCLKFreq+0x27e>
  31902. }
  31903. else
  31904. {
  31905. /* In Case the CKPER is disabled*/
  31906. frequency = 0;
  31907. 800dc4e: 2300 movs r3, #0
  31908. 800dc50: 63fb str r3, [r7, #60] @ 0x3c
  31909. }
  31910. break;
  31911. 800dc52: f000 bc38 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31912. 800dc56: f000 bc36 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31913. }
  31914. case (RCC_SAI23CLKSOURCE_PIN): /* External clock is the clock source for SAI2/3 */
  31915. {
  31916. frequency = EXTERNAL_CLOCK_VALUE;
  31917. 800dc5a: 4b08 ldr r3, [pc, #32] @ (800dc7c <HAL_RCCEx_GetPeriphCLKFreq+0x2a4>)
  31918. 800dc5c: 63fb str r3, [r7, #60] @ 0x3c
  31919. break;
  31920. 800dc5e: f000 bc32 b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31921. }
  31922. default :
  31923. {
  31924. frequency = 0;
  31925. 800dc62: 2300 movs r3, #0
  31926. 800dc64: 63fb str r3, [r7, #60] @ 0x3c
  31927. break;
  31928. 800dc66: f000 bc2e b.w 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  31929. 800dc6a: bf00 nop
  31930. 800dc6c: 58024400 .word 0x58024400
  31931. 800dc70: 03d09000 .word 0x03d09000
  31932. 800dc74: 003d0900 .word 0x003d0900
  31933. 800dc78: 017d7840 .word 0x017d7840
  31934. 800dc7c: 00bb8000 .word 0x00bb8000
  31935. }
  31936. }
  31937. #endif
  31938. #if defined(SAI4)
  31939. else if (PeriphClk == RCC_PERIPHCLK_SAI4A)
  31940. 800dc80: e9d7 2300 ldrd r2, r3, [r7]
  31941. 800dc84: f5a2 6180 sub.w r1, r2, #1024 @ 0x400
  31942. 800dc88: 430b orrs r3, r1
  31943. 800dc8a: f040 809c bne.w 800ddc6 <HAL_RCCEx_GetPeriphCLKFreq+0x3ee>
  31944. {
  31945. saiclocksource = __HAL_RCC_GET_SAI4A_SOURCE();
  31946. 800dc8e: 4b9e ldr r3, [pc, #632] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31947. 800dc90: 6d9b ldr r3, [r3, #88] @ 0x58
  31948. 800dc92: f403 0360 and.w r3, r3, #14680064 @ 0xe00000
  31949. 800dc96: 633b str r3, [r7, #48] @ 0x30
  31950. switch (saiclocksource)
  31951. 800dc98: 6b3b ldr r3, [r7, #48] @ 0x30
  31952. 800dc9a: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  31953. 800dc9e: d054 beq.n 800dd4a <HAL_RCCEx_GetPeriphCLKFreq+0x372>
  31954. 800dca0: 6b3b ldr r3, [r7, #48] @ 0x30
  31955. 800dca2: f5b3 0f00 cmp.w r3, #8388608 @ 0x800000
  31956. 800dca6: f200 808b bhi.w 800ddc0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31957. 800dcaa: 6b3b ldr r3, [r7, #48] @ 0x30
  31958. 800dcac: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  31959. 800dcb0: f000 8083 beq.w 800ddba <HAL_RCCEx_GetPeriphCLKFreq+0x3e2>
  31960. 800dcb4: 6b3b ldr r3, [r7, #48] @ 0x30
  31961. 800dcb6: f5b3 0fc0 cmp.w r3, #6291456 @ 0x600000
  31962. 800dcba: f200 8081 bhi.w 800ddc0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31963. 800dcbe: 6b3b ldr r3, [r7, #48] @ 0x30
  31964. 800dcc0: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  31965. 800dcc4: d02f beq.n 800dd26 <HAL_RCCEx_GetPeriphCLKFreq+0x34e>
  31966. 800dcc6: 6b3b ldr r3, [r7, #48] @ 0x30
  31967. 800dcc8: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
  31968. 800dccc: d878 bhi.n 800ddc0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31969. 800dcce: 6b3b ldr r3, [r7, #48] @ 0x30
  31970. 800dcd0: 2b00 cmp r3, #0
  31971. 800dcd2: d004 beq.n 800dcde <HAL_RCCEx_GetPeriphCLKFreq+0x306>
  31972. 800dcd4: 6b3b ldr r3, [r7, #48] @ 0x30
  31973. 800dcd6: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
  31974. 800dcda: d012 beq.n 800dd02 <HAL_RCCEx_GetPeriphCLKFreq+0x32a>
  31975. 800dcdc: e070 b.n 800ddc0 <HAL_RCCEx_GetPeriphCLKFreq+0x3e8>
  31976. {
  31977. case RCC_SAI4ACLKSOURCE_PLL: /* PLL1 is the clock source for SAI4A */
  31978. {
  31979. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  31980. 800dcde: 4b8a ldr r3, [pc, #552] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  31981. 800dce0: 681b ldr r3, [r3, #0]
  31982. 800dce2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  31983. 800dce6: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  31984. 800dcea: d107 bne.n 800dcfc <HAL_RCCEx_GetPeriphCLKFreq+0x324>
  31985. {
  31986. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  31987. 800dcec: f107 0324 add.w r3, r7, #36 @ 0x24
  31988. 800dcf0: 4618 mov r0, r3
  31989. 800dcf2: f000 feaf bl 800ea54 <HAL_RCCEx_GetPLL1ClockFreq>
  31990. frequency = pll1_clocks.PLL1_Q_Frequency;
  31991. 800dcf6: 6abb ldr r3, [r7, #40] @ 0x28
  31992. 800dcf8: 63fb str r3, [r7, #60] @ 0x3c
  31993. }
  31994. else
  31995. {
  31996. frequency = 0;
  31997. }
  31998. break;
  31999. 800dcfa: e3e4 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32000. frequency = 0;
  32001. 800dcfc: 2300 movs r3, #0
  32002. 800dcfe: 63fb str r3, [r7, #60] @ 0x3c
  32003. break;
  32004. 800dd00: e3e1 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32005. }
  32006. case RCC_SAI4ACLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4A */
  32007. {
  32008. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32009. 800dd02: 4b81 ldr r3, [pc, #516] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32010. 800dd04: 681b ldr r3, [r3, #0]
  32011. 800dd06: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32012. 800dd0a: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32013. 800dd0e: d107 bne.n 800dd20 <HAL_RCCEx_GetPeriphCLKFreq+0x348>
  32014. {
  32015. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32016. 800dd10: f107 0318 add.w r3, r7, #24
  32017. 800dd14: 4618 mov r0, r3
  32018. 800dd16: f000 fbf5 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  32019. frequency = pll2_clocks.PLL2_P_Frequency;
  32020. 800dd1a: 69bb ldr r3, [r7, #24]
  32021. 800dd1c: 63fb str r3, [r7, #60] @ 0x3c
  32022. }
  32023. else
  32024. {
  32025. frequency = 0;
  32026. }
  32027. break;
  32028. 800dd1e: e3d2 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32029. frequency = 0;
  32030. 800dd20: 2300 movs r3, #0
  32031. 800dd22: 63fb str r3, [r7, #60] @ 0x3c
  32032. break;
  32033. 800dd24: e3cf b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32034. }
  32035. case RCC_SAI4ACLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4A */
  32036. {
  32037. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32038. 800dd26: 4b78 ldr r3, [pc, #480] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32039. 800dd28: 681b ldr r3, [r3, #0]
  32040. 800dd2a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32041. 800dd2e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32042. 800dd32: d107 bne.n 800dd44 <HAL_RCCEx_GetPeriphCLKFreq+0x36c>
  32043. {
  32044. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32045. 800dd34: f107 030c add.w r3, r7, #12
  32046. 800dd38: 4618 mov r0, r3
  32047. 800dd3a: f000 fd37 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  32048. frequency = pll3_clocks.PLL3_P_Frequency;
  32049. 800dd3e: 68fb ldr r3, [r7, #12]
  32050. 800dd40: 63fb str r3, [r7, #60] @ 0x3c
  32051. }
  32052. else
  32053. {
  32054. frequency = 0;
  32055. }
  32056. break;
  32057. 800dd42: e3c0 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32058. frequency = 0;
  32059. 800dd44: 2300 movs r3, #0
  32060. 800dd46: 63fb str r3, [r7, #60] @ 0x3c
  32061. break;
  32062. 800dd48: e3bd b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32063. }
  32064. case RCC_SAI4ACLKSOURCE_CLKP: /* CKPER is the clock source for SAI4A*/
  32065. {
  32066. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32067. 800dd4a: 4b6f ldr r3, [pc, #444] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32068. 800dd4c: 6cdb ldr r3, [r3, #76] @ 0x4c
  32069. 800dd4e: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32070. 800dd52: 637b str r3, [r7, #52] @ 0x34
  32071. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32072. 800dd54: 4b6c ldr r3, [pc, #432] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32073. 800dd56: 681b ldr r3, [r3, #0]
  32074. 800dd58: f003 0304 and.w r3, r3, #4
  32075. 800dd5c: 2b04 cmp r3, #4
  32076. 800dd5e: d10c bne.n 800dd7a <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32077. 800dd60: 6b7b ldr r3, [r7, #52] @ 0x34
  32078. 800dd62: 2b00 cmp r3, #0
  32079. 800dd64: d109 bne.n 800dd7a <HAL_RCCEx_GetPeriphCLKFreq+0x3a2>
  32080. {
  32081. /* In Case the CKPER Source is HSI */
  32082. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32083. 800dd66: 4b68 ldr r3, [pc, #416] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32084. 800dd68: 681b ldr r3, [r3, #0]
  32085. 800dd6a: 08db lsrs r3, r3, #3
  32086. 800dd6c: f003 0303 and.w r3, r3, #3
  32087. 800dd70: 4a66 ldr r2, [pc, #408] @ (800df0c <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32088. 800dd72: fa22 f303 lsr.w r3, r2, r3
  32089. 800dd76: 63fb str r3, [r7, #60] @ 0x3c
  32090. 800dd78: e01e b.n 800ddb8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32091. }
  32092. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32093. 800dd7a: 4b63 ldr r3, [pc, #396] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32094. 800dd7c: 681b ldr r3, [r3, #0]
  32095. 800dd7e: f403 7380 and.w r3, r3, #256 @ 0x100
  32096. 800dd82: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32097. 800dd86: d106 bne.n 800dd96 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32098. 800dd88: 6b7b ldr r3, [r7, #52] @ 0x34
  32099. 800dd8a: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32100. 800dd8e: d102 bne.n 800dd96 <HAL_RCCEx_GetPeriphCLKFreq+0x3be>
  32101. {
  32102. /* In Case the CKPER Source is CSI */
  32103. frequency = CSI_VALUE;
  32104. 800dd90: 4b5f ldr r3, [pc, #380] @ (800df10 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32105. 800dd92: 63fb str r3, [r7, #60] @ 0x3c
  32106. 800dd94: e010 b.n 800ddb8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32107. }
  32108. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32109. 800dd96: 4b5c ldr r3, [pc, #368] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32110. 800dd98: 681b ldr r3, [r3, #0]
  32111. 800dd9a: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32112. 800dd9e: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32113. 800dda2: d106 bne.n 800ddb2 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32114. 800dda4: 6b7b ldr r3, [r7, #52] @ 0x34
  32115. 800dda6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32116. 800ddaa: d102 bne.n 800ddb2 <HAL_RCCEx_GetPeriphCLKFreq+0x3da>
  32117. {
  32118. /* In Case the CKPER Source is HSE */
  32119. frequency = HSE_VALUE;
  32120. 800ddac: 4b59 ldr r3, [pc, #356] @ (800df14 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32121. 800ddae: 63fb str r3, [r7, #60] @ 0x3c
  32122. 800ddb0: e002 b.n 800ddb8 <HAL_RCCEx_GetPeriphCLKFreq+0x3e0>
  32123. }
  32124. else
  32125. {
  32126. /* In Case the CKPER is disabled*/
  32127. frequency = 0;
  32128. 800ddb2: 2300 movs r3, #0
  32129. 800ddb4: 63fb str r3, [r7, #60] @ 0x3c
  32130. }
  32131. break;
  32132. 800ddb6: e386 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32133. 800ddb8: e385 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32134. }
  32135. case RCC_SAI4ACLKSOURCE_PIN: /* External clock is the clock source for SAI4A */
  32136. {
  32137. frequency = EXTERNAL_CLOCK_VALUE;
  32138. 800ddba: 4b57 ldr r3, [pc, #348] @ (800df18 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32139. 800ddbc: 63fb str r3, [r7, #60] @ 0x3c
  32140. break;
  32141. 800ddbe: e382 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32142. }
  32143. default :
  32144. {
  32145. frequency = 0;
  32146. 800ddc0: 2300 movs r3, #0
  32147. 800ddc2: 63fb str r3, [r7, #60] @ 0x3c
  32148. break;
  32149. 800ddc4: e37f b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32150. }
  32151. }
  32152. }
  32153. else if (PeriphClk == RCC_PERIPHCLK_SAI4B)
  32154. 800ddc6: e9d7 2300 ldrd r2, r3, [r7]
  32155. 800ddca: f5a2 6100 sub.w r1, r2, #2048 @ 0x800
  32156. 800ddce: 430b orrs r3, r1
  32157. 800ddd0: f040 80a7 bne.w 800df22 <HAL_RCCEx_GetPeriphCLKFreq+0x54a>
  32158. {
  32159. saiclocksource = __HAL_RCC_GET_SAI4B_SOURCE();
  32160. 800ddd4: 4b4c ldr r3, [pc, #304] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32161. 800ddd6: 6d9b ldr r3, [r3, #88] @ 0x58
  32162. 800ddd8: f003 63e0 and.w r3, r3, #117440512 @ 0x7000000
  32163. 800dddc: 633b str r3, [r7, #48] @ 0x30
  32164. switch (saiclocksource)
  32165. 800ddde: 6b3b ldr r3, [r7, #48] @ 0x30
  32166. 800dde0: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32167. 800dde4: d055 beq.n 800de92 <HAL_RCCEx_GetPeriphCLKFreq+0x4ba>
  32168. 800dde6: 6b3b ldr r3, [r7, #48] @ 0x30
  32169. 800dde8: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
  32170. 800ddec: f200 8096 bhi.w 800df1c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32171. 800ddf0: 6b3b ldr r3, [r7, #48] @ 0x30
  32172. 800ddf2: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32173. 800ddf6: f000 8084 beq.w 800df02 <HAL_RCCEx_GetPeriphCLKFreq+0x52a>
  32174. 800ddfa: 6b3b ldr r3, [r7, #48] @ 0x30
  32175. 800ddfc: f1b3 7f40 cmp.w r3, #50331648 @ 0x3000000
  32176. 800de00: f200 808c bhi.w 800df1c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32177. 800de04: 6b3b ldr r3, [r7, #48] @ 0x30
  32178. 800de06: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32179. 800de0a: d030 beq.n 800de6e <HAL_RCCEx_GetPeriphCLKFreq+0x496>
  32180. 800de0c: 6b3b ldr r3, [r7, #48] @ 0x30
  32181. 800de0e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32182. 800de12: f200 8083 bhi.w 800df1c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32183. 800de16: 6b3b ldr r3, [r7, #48] @ 0x30
  32184. 800de18: 2b00 cmp r3, #0
  32185. 800de1a: d004 beq.n 800de26 <HAL_RCCEx_GetPeriphCLKFreq+0x44e>
  32186. 800de1c: 6b3b ldr r3, [r7, #48] @ 0x30
  32187. 800de1e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  32188. 800de22: d012 beq.n 800de4a <HAL_RCCEx_GetPeriphCLKFreq+0x472>
  32189. 800de24: e07a b.n 800df1c <HAL_RCCEx_GetPeriphCLKFreq+0x544>
  32190. {
  32191. case RCC_SAI4BCLKSOURCE_PLL: /* PLL1 is the clock source for SAI4B */
  32192. {
  32193. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32194. 800de26: 4b38 ldr r3, [pc, #224] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32195. 800de28: 681b ldr r3, [r3, #0]
  32196. 800de2a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32197. 800de2e: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32198. 800de32: d107 bne.n 800de44 <HAL_RCCEx_GetPeriphCLKFreq+0x46c>
  32199. {
  32200. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32201. 800de34: f107 0324 add.w r3, r7, #36 @ 0x24
  32202. 800de38: 4618 mov r0, r3
  32203. 800de3a: f000 fe0b bl 800ea54 <HAL_RCCEx_GetPLL1ClockFreq>
  32204. frequency = pll1_clocks.PLL1_Q_Frequency;
  32205. 800de3e: 6abb ldr r3, [r7, #40] @ 0x28
  32206. 800de40: 63fb str r3, [r7, #60] @ 0x3c
  32207. }
  32208. else
  32209. {
  32210. frequency = 0;
  32211. }
  32212. break;
  32213. 800de42: e340 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32214. frequency = 0;
  32215. 800de44: 2300 movs r3, #0
  32216. 800de46: 63fb str r3, [r7, #60] @ 0x3c
  32217. break;
  32218. 800de48: e33d b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32219. }
  32220. case RCC_SAI4BCLKSOURCE_PLL2: /* PLLI2 is the clock source for SAI4B */
  32221. {
  32222. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32223. 800de4a: 4b2f ldr r3, [pc, #188] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32224. 800de4c: 681b ldr r3, [r3, #0]
  32225. 800de4e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32226. 800de52: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32227. 800de56: d107 bne.n 800de68 <HAL_RCCEx_GetPeriphCLKFreq+0x490>
  32228. {
  32229. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32230. 800de58: f107 0318 add.w r3, r7, #24
  32231. 800de5c: 4618 mov r0, r3
  32232. 800de5e: f000 fb51 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  32233. frequency = pll2_clocks.PLL2_P_Frequency;
  32234. 800de62: 69bb ldr r3, [r7, #24]
  32235. 800de64: 63fb str r3, [r7, #60] @ 0x3c
  32236. }
  32237. else
  32238. {
  32239. frequency = 0;
  32240. }
  32241. break;
  32242. 800de66: e32e b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32243. frequency = 0;
  32244. 800de68: 2300 movs r3, #0
  32245. 800de6a: 63fb str r3, [r7, #60] @ 0x3c
  32246. break;
  32247. 800de6c: e32b b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32248. }
  32249. case RCC_SAI4BCLKSOURCE_PLL3: /* PLLI3 is the clock source for SAI4B */
  32250. {
  32251. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32252. 800de6e: 4b26 ldr r3, [pc, #152] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32253. 800de70: 681b ldr r3, [r3, #0]
  32254. 800de72: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32255. 800de76: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32256. 800de7a: d107 bne.n 800de8c <HAL_RCCEx_GetPeriphCLKFreq+0x4b4>
  32257. {
  32258. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32259. 800de7c: f107 030c add.w r3, r7, #12
  32260. 800de80: 4618 mov r0, r3
  32261. 800de82: f000 fc93 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  32262. frequency = pll3_clocks.PLL3_P_Frequency;
  32263. 800de86: 68fb ldr r3, [r7, #12]
  32264. 800de88: 63fb str r3, [r7, #60] @ 0x3c
  32265. }
  32266. else
  32267. {
  32268. frequency = 0;
  32269. }
  32270. break;
  32271. 800de8a: e31c b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32272. frequency = 0;
  32273. 800de8c: 2300 movs r3, #0
  32274. 800de8e: 63fb str r3, [r7, #60] @ 0x3c
  32275. break;
  32276. 800de90: e319 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32277. }
  32278. case RCC_SAI4BCLKSOURCE_CLKP: /* CKPER is the clock source for SAI4B*/
  32279. {
  32280. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32281. 800de92: 4b1d ldr r3, [pc, #116] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32282. 800de94: 6cdb ldr r3, [r3, #76] @ 0x4c
  32283. 800de96: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32284. 800de9a: 637b str r3, [r7, #52] @ 0x34
  32285. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32286. 800de9c: 4b1a ldr r3, [pc, #104] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32287. 800de9e: 681b ldr r3, [r3, #0]
  32288. 800dea0: f003 0304 and.w r3, r3, #4
  32289. 800dea4: 2b04 cmp r3, #4
  32290. 800dea6: d10c bne.n 800dec2 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32291. 800dea8: 6b7b ldr r3, [r7, #52] @ 0x34
  32292. 800deaa: 2b00 cmp r3, #0
  32293. 800deac: d109 bne.n 800dec2 <HAL_RCCEx_GetPeriphCLKFreq+0x4ea>
  32294. {
  32295. /* In Case the CKPER Source is HSI */
  32296. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32297. 800deae: 4b16 ldr r3, [pc, #88] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32298. 800deb0: 681b ldr r3, [r3, #0]
  32299. 800deb2: 08db lsrs r3, r3, #3
  32300. 800deb4: f003 0303 and.w r3, r3, #3
  32301. 800deb8: 4a14 ldr r2, [pc, #80] @ (800df0c <HAL_RCCEx_GetPeriphCLKFreq+0x534>)
  32302. 800deba: fa22 f303 lsr.w r3, r2, r3
  32303. 800debe: 63fb str r3, [r7, #60] @ 0x3c
  32304. 800dec0: e01e b.n 800df00 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32305. }
  32306. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32307. 800dec2: 4b11 ldr r3, [pc, #68] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32308. 800dec4: 681b ldr r3, [r3, #0]
  32309. 800dec6: f403 7380 and.w r3, r3, #256 @ 0x100
  32310. 800deca: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32311. 800dece: d106 bne.n 800dede <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32312. 800ded0: 6b7b ldr r3, [r7, #52] @ 0x34
  32313. 800ded2: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32314. 800ded6: d102 bne.n 800dede <HAL_RCCEx_GetPeriphCLKFreq+0x506>
  32315. {
  32316. /* In Case the CKPER Source is CSI */
  32317. frequency = CSI_VALUE;
  32318. 800ded8: 4b0d ldr r3, [pc, #52] @ (800df10 <HAL_RCCEx_GetPeriphCLKFreq+0x538>)
  32319. 800deda: 63fb str r3, [r7, #60] @ 0x3c
  32320. 800dedc: e010 b.n 800df00 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32321. }
  32322. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32323. 800dede: 4b0a ldr r3, [pc, #40] @ (800df08 <HAL_RCCEx_GetPeriphCLKFreq+0x530>)
  32324. 800dee0: 681b ldr r3, [r3, #0]
  32325. 800dee2: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32326. 800dee6: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32327. 800deea: d106 bne.n 800defa <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32328. 800deec: 6b7b ldr r3, [r7, #52] @ 0x34
  32329. 800deee: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32330. 800def2: d102 bne.n 800defa <HAL_RCCEx_GetPeriphCLKFreq+0x522>
  32331. {
  32332. /* In Case the CKPER Source is HSE */
  32333. frequency = HSE_VALUE;
  32334. 800def4: 4b07 ldr r3, [pc, #28] @ (800df14 <HAL_RCCEx_GetPeriphCLKFreq+0x53c>)
  32335. 800def6: 63fb str r3, [r7, #60] @ 0x3c
  32336. 800def8: e002 b.n 800df00 <HAL_RCCEx_GetPeriphCLKFreq+0x528>
  32337. }
  32338. else
  32339. {
  32340. /* In Case the CKPER is disabled*/
  32341. frequency = 0;
  32342. 800defa: 2300 movs r3, #0
  32343. 800defc: 63fb str r3, [r7, #60] @ 0x3c
  32344. }
  32345. break;
  32346. 800defe: e2e2 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32347. 800df00: e2e1 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32348. }
  32349. case RCC_SAI4BCLKSOURCE_PIN: /* External clock is the clock source for SAI4B */
  32350. {
  32351. frequency = EXTERNAL_CLOCK_VALUE;
  32352. 800df02: 4b05 ldr r3, [pc, #20] @ (800df18 <HAL_RCCEx_GetPeriphCLKFreq+0x540>)
  32353. 800df04: 63fb str r3, [r7, #60] @ 0x3c
  32354. break;
  32355. 800df06: e2de b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32356. 800df08: 58024400 .word 0x58024400
  32357. 800df0c: 03d09000 .word 0x03d09000
  32358. 800df10: 003d0900 .word 0x003d0900
  32359. 800df14: 017d7840 .word 0x017d7840
  32360. 800df18: 00bb8000 .word 0x00bb8000
  32361. }
  32362. default :
  32363. {
  32364. frequency = 0;
  32365. 800df1c: 2300 movs r3, #0
  32366. 800df1e: 63fb str r3, [r7, #60] @ 0x3c
  32367. break;
  32368. 800df20: e2d1 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32369. }
  32370. }
  32371. }
  32372. #endif /*SAI4*/
  32373. else if (PeriphClk == RCC_PERIPHCLK_SPI123)
  32374. 800df22: e9d7 2300 ldrd r2, r3, [r7]
  32375. 800df26: f5a2 5180 sub.w r1, r2, #4096 @ 0x1000
  32376. 800df2a: 430b orrs r3, r1
  32377. 800df2c: f040 809c bne.w 800e068 <HAL_RCCEx_GetPeriphCLKFreq+0x690>
  32378. {
  32379. /* Get SPI1/2/3 clock source */
  32380. srcclk = __HAL_RCC_GET_SPI123_SOURCE();
  32381. 800df30: 4b93 ldr r3, [pc, #588] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32382. 800df32: 6d1b ldr r3, [r3, #80] @ 0x50
  32383. 800df34: f403 43e0 and.w r3, r3, #28672 @ 0x7000
  32384. 800df38: 63bb str r3, [r7, #56] @ 0x38
  32385. switch (srcclk)
  32386. 800df3a: 6bbb ldr r3, [r7, #56] @ 0x38
  32387. 800df3c: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32388. 800df40: d054 beq.n 800dfec <HAL_RCCEx_GetPeriphCLKFreq+0x614>
  32389. 800df42: 6bbb ldr r3, [r7, #56] @ 0x38
  32390. 800df44: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
  32391. 800df48: f200 808b bhi.w 800e062 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32392. 800df4c: 6bbb ldr r3, [r7, #56] @ 0x38
  32393. 800df4e: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32394. 800df52: f000 8083 beq.w 800e05c <HAL_RCCEx_GetPeriphCLKFreq+0x684>
  32395. 800df56: 6bbb ldr r3, [r7, #56] @ 0x38
  32396. 800df58: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
  32397. 800df5c: f200 8081 bhi.w 800e062 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32398. 800df60: 6bbb ldr r3, [r7, #56] @ 0x38
  32399. 800df62: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32400. 800df66: d02f beq.n 800dfc8 <HAL_RCCEx_GetPeriphCLKFreq+0x5f0>
  32401. 800df68: 6bbb ldr r3, [r7, #56] @ 0x38
  32402. 800df6a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  32403. 800df6e: d878 bhi.n 800e062 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32404. 800df70: 6bbb ldr r3, [r7, #56] @ 0x38
  32405. 800df72: 2b00 cmp r3, #0
  32406. 800df74: d004 beq.n 800df80 <HAL_RCCEx_GetPeriphCLKFreq+0x5a8>
  32407. 800df76: 6bbb ldr r3, [r7, #56] @ 0x38
  32408. 800df78: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  32409. 800df7c: d012 beq.n 800dfa4 <HAL_RCCEx_GetPeriphCLKFreq+0x5cc>
  32410. 800df7e: e070 b.n 800e062 <HAL_RCCEx_GetPeriphCLKFreq+0x68a>
  32411. {
  32412. case RCC_SPI123CLKSOURCE_PLL: /* PLL1 is the clock source for SPI123 */
  32413. {
  32414. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32415. 800df80: 4b7f ldr r3, [pc, #508] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32416. 800df82: 681b ldr r3, [r3, #0]
  32417. 800df84: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32418. 800df88: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32419. 800df8c: d107 bne.n 800df9e <HAL_RCCEx_GetPeriphCLKFreq+0x5c6>
  32420. {
  32421. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32422. 800df8e: f107 0324 add.w r3, r7, #36 @ 0x24
  32423. 800df92: 4618 mov r0, r3
  32424. 800df94: f000 fd5e bl 800ea54 <HAL_RCCEx_GetPLL1ClockFreq>
  32425. frequency = pll1_clocks.PLL1_Q_Frequency;
  32426. 800df98: 6abb ldr r3, [r7, #40] @ 0x28
  32427. 800df9a: 63fb str r3, [r7, #60] @ 0x3c
  32428. }
  32429. else
  32430. {
  32431. frequency = 0;
  32432. }
  32433. break;
  32434. 800df9c: e293 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32435. frequency = 0;
  32436. 800df9e: 2300 movs r3, #0
  32437. 800dfa0: 63fb str r3, [r7, #60] @ 0x3c
  32438. break;
  32439. 800dfa2: e290 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32440. }
  32441. case RCC_SPI123CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI123 */
  32442. {
  32443. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32444. 800dfa4: 4b76 ldr r3, [pc, #472] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32445. 800dfa6: 681b ldr r3, [r3, #0]
  32446. 800dfa8: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32447. 800dfac: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32448. 800dfb0: d107 bne.n 800dfc2 <HAL_RCCEx_GetPeriphCLKFreq+0x5ea>
  32449. {
  32450. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32451. 800dfb2: f107 0318 add.w r3, r7, #24
  32452. 800dfb6: 4618 mov r0, r3
  32453. 800dfb8: f000 faa4 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  32454. frequency = pll2_clocks.PLL2_P_Frequency;
  32455. 800dfbc: 69bb ldr r3, [r7, #24]
  32456. 800dfbe: 63fb str r3, [r7, #60] @ 0x3c
  32457. }
  32458. else
  32459. {
  32460. frequency = 0;
  32461. }
  32462. break;
  32463. 800dfc0: e281 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32464. frequency = 0;
  32465. 800dfc2: 2300 movs r3, #0
  32466. 800dfc4: 63fb str r3, [r7, #60] @ 0x3c
  32467. break;
  32468. 800dfc6: e27e b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32469. }
  32470. case RCC_SPI123CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI123 */
  32471. {
  32472. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32473. 800dfc8: 4b6d ldr r3, [pc, #436] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32474. 800dfca: 681b ldr r3, [r3, #0]
  32475. 800dfcc: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32476. 800dfd0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32477. 800dfd4: d107 bne.n 800dfe6 <HAL_RCCEx_GetPeriphCLKFreq+0x60e>
  32478. {
  32479. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32480. 800dfd6: f107 030c add.w r3, r7, #12
  32481. 800dfda: 4618 mov r0, r3
  32482. 800dfdc: f000 fbe6 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  32483. frequency = pll3_clocks.PLL3_P_Frequency;
  32484. 800dfe0: 68fb ldr r3, [r7, #12]
  32485. 800dfe2: 63fb str r3, [r7, #60] @ 0x3c
  32486. }
  32487. else
  32488. {
  32489. frequency = 0;
  32490. }
  32491. break;
  32492. 800dfe4: e26f b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32493. frequency = 0;
  32494. 800dfe6: 2300 movs r3, #0
  32495. 800dfe8: 63fb str r3, [r7, #60] @ 0x3c
  32496. break;
  32497. 800dfea: e26c b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32498. }
  32499. case RCC_SPI123CLKSOURCE_CLKP: /* CKPER is the clock source for SPI123 */
  32500. {
  32501. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32502. 800dfec: 4b64 ldr r3, [pc, #400] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32503. 800dfee: 6cdb ldr r3, [r3, #76] @ 0x4c
  32504. 800dff0: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32505. 800dff4: 637b str r3, [r7, #52] @ 0x34
  32506. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32507. 800dff6: 4b62 ldr r3, [pc, #392] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32508. 800dff8: 681b ldr r3, [r3, #0]
  32509. 800dffa: f003 0304 and.w r3, r3, #4
  32510. 800dffe: 2b04 cmp r3, #4
  32511. 800e000: d10c bne.n 800e01c <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32512. 800e002: 6b7b ldr r3, [r7, #52] @ 0x34
  32513. 800e004: 2b00 cmp r3, #0
  32514. 800e006: d109 bne.n 800e01c <HAL_RCCEx_GetPeriphCLKFreq+0x644>
  32515. {
  32516. /* In Case the CKPER Source is HSI */
  32517. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32518. 800e008: 4b5d ldr r3, [pc, #372] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32519. 800e00a: 681b ldr r3, [r3, #0]
  32520. 800e00c: 08db lsrs r3, r3, #3
  32521. 800e00e: f003 0303 and.w r3, r3, #3
  32522. 800e012: 4a5c ldr r2, [pc, #368] @ (800e184 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32523. 800e014: fa22 f303 lsr.w r3, r2, r3
  32524. 800e018: 63fb str r3, [r7, #60] @ 0x3c
  32525. 800e01a: e01e b.n 800e05a <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32526. }
  32527. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32528. 800e01c: 4b58 ldr r3, [pc, #352] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32529. 800e01e: 681b ldr r3, [r3, #0]
  32530. 800e020: f403 7380 and.w r3, r3, #256 @ 0x100
  32531. 800e024: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32532. 800e028: d106 bne.n 800e038 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32533. 800e02a: 6b7b ldr r3, [r7, #52] @ 0x34
  32534. 800e02c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32535. 800e030: d102 bne.n 800e038 <HAL_RCCEx_GetPeriphCLKFreq+0x660>
  32536. {
  32537. /* In Case the CKPER Source is CSI */
  32538. frequency = CSI_VALUE;
  32539. 800e032: 4b55 ldr r3, [pc, #340] @ (800e188 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32540. 800e034: 63fb str r3, [r7, #60] @ 0x3c
  32541. 800e036: e010 b.n 800e05a <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32542. }
  32543. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32544. 800e038: 4b51 ldr r3, [pc, #324] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32545. 800e03a: 681b ldr r3, [r3, #0]
  32546. 800e03c: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32547. 800e040: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32548. 800e044: d106 bne.n 800e054 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32549. 800e046: 6b7b ldr r3, [r7, #52] @ 0x34
  32550. 800e048: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32551. 800e04c: d102 bne.n 800e054 <HAL_RCCEx_GetPeriphCLKFreq+0x67c>
  32552. {
  32553. /* In Case the CKPER Source is HSE */
  32554. frequency = HSE_VALUE;
  32555. 800e04e: 4b4f ldr r3, [pc, #316] @ (800e18c <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  32556. 800e050: 63fb str r3, [r7, #60] @ 0x3c
  32557. 800e052: e002 b.n 800e05a <HAL_RCCEx_GetPeriphCLKFreq+0x682>
  32558. }
  32559. else
  32560. {
  32561. /* In Case the CKPER is disabled*/
  32562. frequency = 0;
  32563. 800e054: 2300 movs r3, #0
  32564. 800e056: 63fb str r3, [r7, #60] @ 0x3c
  32565. }
  32566. break;
  32567. 800e058: e235 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32568. 800e05a: e234 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32569. }
  32570. case (RCC_SPI123CLKSOURCE_PIN): /* External clock is the clock source for I2S */
  32571. {
  32572. frequency = EXTERNAL_CLOCK_VALUE;
  32573. 800e05c: 4b4c ldr r3, [pc, #304] @ (800e190 <HAL_RCCEx_GetPeriphCLKFreq+0x7b8>)
  32574. 800e05e: 63fb str r3, [r7, #60] @ 0x3c
  32575. break;
  32576. 800e060: e231 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32577. }
  32578. default :
  32579. {
  32580. frequency = 0;
  32581. 800e062: 2300 movs r3, #0
  32582. 800e064: 63fb str r3, [r7, #60] @ 0x3c
  32583. break;
  32584. 800e066: e22e b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32585. }
  32586. }
  32587. }
  32588. else if (PeriphClk == RCC_PERIPHCLK_SPI45)
  32589. 800e068: e9d7 2300 ldrd r2, r3, [r7]
  32590. 800e06c: f5a2 5100 sub.w r1, r2, #8192 @ 0x2000
  32591. 800e070: 430b orrs r3, r1
  32592. 800e072: f040 808f bne.w 800e194 <HAL_RCCEx_GetPeriphCLKFreq+0x7bc>
  32593. {
  32594. /* Get SPI45 clock source */
  32595. srcclk = __HAL_RCC_GET_SPI45_SOURCE();
  32596. 800e076: 4b42 ldr r3, [pc, #264] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32597. 800e078: 6d1b ldr r3, [r3, #80] @ 0x50
  32598. 800e07a: f403 23e0 and.w r3, r3, #458752 @ 0x70000
  32599. 800e07e: 63bb str r3, [r7, #56] @ 0x38
  32600. switch (srcclk)
  32601. 800e080: 6bbb ldr r3, [r7, #56] @ 0x38
  32602. 800e082: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  32603. 800e086: d06b beq.n 800e160 <HAL_RCCEx_GetPeriphCLKFreq+0x788>
  32604. 800e088: 6bbb ldr r3, [r7, #56] @ 0x38
  32605. 800e08a: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
  32606. 800e08e: d874 bhi.n 800e17a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  32607. 800e090: 6bbb ldr r3, [r7, #56] @ 0x38
  32608. 800e092: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  32609. 800e096: d056 beq.n 800e146 <HAL_RCCEx_GetPeriphCLKFreq+0x76e>
  32610. 800e098: 6bbb ldr r3, [r7, #56] @ 0x38
  32611. 800e09a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
  32612. 800e09e: d86c bhi.n 800e17a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  32613. 800e0a0: 6bbb ldr r3, [r7, #56] @ 0x38
  32614. 800e0a2: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  32615. 800e0a6: d03b beq.n 800e120 <HAL_RCCEx_GetPeriphCLKFreq+0x748>
  32616. 800e0a8: 6bbb ldr r3, [r7, #56] @ 0x38
  32617. 800e0aa: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
  32618. 800e0ae: d864 bhi.n 800e17a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  32619. 800e0b0: 6bbb ldr r3, [r7, #56] @ 0x38
  32620. 800e0b2: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32621. 800e0b6: d021 beq.n 800e0fc <HAL_RCCEx_GetPeriphCLKFreq+0x724>
  32622. 800e0b8: 6bbb ldr r3, [r7, #56] @ 0x38
  32623. 800e0ba: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32624. 800e0be: d85c bhi.n 800e17a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  32625. 800e0c0: 6bbb ldr r3, [r7, #56] @ 0x38
  32626. 800e0c2: 2b00 cmp r3, #0
  32627. 800e0c4: d004 beq.n 800e0d0 <HAL_RCCEx_GetPeriphCLKFreq+0x6f8>
  32628. 800e0c6: 6bbb ldr r3, [r7, #56] @ 0x38
  32629. 800e0c8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32630. 800e0cc: d004 beq.n 800e0d8 <HAL_RCCEx_GetPeriphCLKFreq+0x700>
  32631. 800e0ce: e054 b.n 800e17a <HAL_RCCEx_GetPeriphCLKFreq+0x7a2>
  32632. {
  32633. case RCC_SPI45CLKSOURCE_PCLK2: /* CD/D2 PCLK2 is the clock source for SPI4/5 */
  32634. {
  32635. frequency = HAL_RCC_GetPCLK1Freq();
  32636. 800e0d0: f7fe fa26 bl 800c520 <HAL_RCC_GetPCLK1Freq>
  32637. 800e0d4: 63f8 str r0, [r7, #60] @ 0x3c
  32638. break;
  32639. 800e0d6: e1f6 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32640. }
  32641. case RCC_SPI45CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI45 */
  32642. {
  32643. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32644. 800e0d8: 4b29 ldr r3, [pc, #164] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32645. 800e0da: 681b ldr r3, [r3, #0]
  32646. 800e0dc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32647. 800e0e0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32648. 800e0e4: d107 bne.n 800e0f6 <HAL_RCCEx_GetPeriphCLKFreq+0x71e>
  32649. {
  32650. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32651. 800e0e6: f107 0318 add.w r3, r7, #24
  32652. 800e0ea: 4618 mov r0, r3
  32653. 800e0ec: f000 fa0a bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  32654. frequency = pll2_clocks.PLL2_Q_Frequency;
  32655. 800e0f0: 69fb ldr r3, [r7, #28]
  32656. 800e0f2: 63fb str r3, [r7, #60] @ 0x3c
  32657. }
  32658. else
  32659. {
  32660. frequency = 0;
  32661. }
  32662. break;
  32663. 800e0f4: e1e7 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32664. frequency = 0;
  32665. 800e0f6: 2300 movs r3, #0
  32666. 800e0f8: 63fb str r3, [r7, #60] @ 0x3c
  32667. break;
  32668. 800e0fa: e1e4 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32669. }
  32670. case RCC_SPI45CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI45 */
  32671. {
  32672. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32673. 800e0fc: 4b20 ldr r3, [pc, #128] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32674. 800e0fe: 681b ldr r3, [r3, #0]
  32675. 800e100: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32676. 800e104: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32677. 800e108: d107 bne.n 800e11a <HAL_RCCEx_GetPeriphCLKFreq+0x742>
  32678. {
  32679. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32680. 800e10a: f107 030c add.w r3, r7, #12
  32681. 800e10e: 4618 mov r0, r3
  32682. 800e110: f000 fb4c bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  32683. frequency = pll3_clocks.PLL3_Q_Frequency;
  32684. 800e114: 693b ldr r3, [r7, #16]
  32685. 800e116: 63fb str r3, [r7, #60] @ 0x3c
  32686. }
  32687. else
  32688. {
  32689. frequency = 0;
  32690. }
  32691. break;
  32692. 800e118: e1d5 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32693. frequency = 0;
  32694. 800e11a: 2300 movs r3, #0
  32695. 800e11c: 63fb str r3, [r7, #60] @ 0x3c
  32696. break;
  32697. 800e11e: e1d2 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32698. }
  32699. case RCC_SPI45CLKSOURCE_HSI: /* HSI is the clock source for SPI45 */
  32700. {
  32701. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  32702. 800e120: 4b17 ldr r3, [pc, #92] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32703. 800e122: 681b ldr r3, [r3, #0]
  32704. 800e124: f003 0304 and.w r3, r3, #4
  32705. 800e128: 2b04 cmp r3, #4
  32706. 800e12a: d109 bne.n 800e140 <HAL_RCCEx_GetPeriphCLKFreq+0x768>
  32707. {
  32708. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32709. 800e12c: 4b14 ldr r3, [pc, #80] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32710. 800e12e: 681b ldr r3, [r3, #0]
  32711. 800e130: 08db lsrs r3, r3, #3
  32712. 800e132: f003 0303 and.w r3, r3, #3
  32713. 800e136: 4a13 ldr r2, [pc, #76] @ (800e184 <HAL_RCCEx_GetPeriphCLKFreq+0x7ac>)
  32714. 800e138: fa22 f303 lsr.w r3, r2, r3
  32715. 800e13c: 63fb str r3, [r7, #60] @ 0x3c
  32716. }
  32717. else
  32718. {
  32719. frequency = 0;
  32720. }
  32721. break;
  32722. 800e13e: e1c2 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32723. frequency = 0;
  32724. 800e140: 2300 movs r3, #0
  32725. 800e142: 63fb str r3, [r7, #60] @ 0x3c
  32726. break;
  32727. 800e144: e1bf b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32728. }
  32729. case RCC_SPI45CLKSOURCE_CSI: /* CSI is the clock source for SPI45 */
  32730. {
  32731. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  32732. 800e146: 4b0e ldr r3, [pc, #56] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32733. 800e148: 681b ldr r3, [r3, #0]
  32734. 800e14a: f403 7380 and.w r3, r3, #256 @ 0x100
  32735. 800e14e: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32736. 800e152: d102 bne.n 800e15a <HAL_RCCEx_GetPeriphCLKFreq+0x782>
  32737. {
  32738. frequency = CSI_VALUE;
  32739. 800e154: 4b0c ldr r3, [pc, #48] @ (800e188 <HAL_RCCEx_GetPeriphCLKFreq+0x7b0>)
  32740. 800e156: 63fb str r3, [r7, #60] @ 0x3c
  32741. }
  32742. else
  32743. {
  32744. frequency = 0;
  32745. }
  32746. break;
  32747. 800e158: e1b5 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32748. frequency = 0;
  32749. 800e15a: 2300 movs r3, #0
  32750. 800e15c: 63fb str r3, [r7, #60] @ 0x3c
  32751. break;
  32752. 800e15e: e1b2 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32753. }
  32754. case RCC_SPI45CLKSOURCE_HSE: /* HSE is the clock source for SPI45 */
  32755. {
  32756. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  32757. 800e160: 4b07 ldr r3, [pc, #28] @ (800e180 <HAL_RCCEx_GetPeriphCLKFreq+0x7a8>)
  32758. 800e162: 681b ldr r3, [r3, #0]
  32759. 800e164: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32760. 800e168: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32761. 800e16c: d102 bne.n 800e174 <HAL_RCCEx_GetPeriphCLKFreq+0x79c>
  32762. {
  32763. frequency = HSE_VALUE;
  32764. 800e16e: 4b07 ldr r3, [pc, #28] @ (800e18c <HAL_RCCEx_GetPeriphCLKFreq+0x7b4>)
  32765. 800e170: 63fb str r3, [r7, #60] @ 0x3c
  32766. }
  32767. else
  32768. {
  32769. frequency = 0;
  32770. }
  32771. break;
  32772. 800e172: e1a8 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32773. frequency = 0;
  32774. 800e174: 2300 movs r3, #0
  32775. 800e176: 63fb str r3, [r7, #60] @ 0x3c
  32776. break;
  32777. 800e178: e1a5 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32778. }
  32779. default :
  32780. {
  32781. frequency = 0;
  32782. 800e17a: 2300 movs r3, #0
  32783. 800e17c: 63fb str r3, [r7, #60] @ 0x3c
  32784. break;
  32785. 800e17e: e1a2 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32786. 800e180: 58024400 .word 0x58024400
  32787. 800e184: 03d09000 .word 0x03d09000
  32788. 800e188: 003d0900 .word 0x003d0900
  32789. 800e18c: 017d7840 .word 0x017d7840
  32790. 800e190: 00bb8000 .word 0x00bb8000
  32791. }
  32792. }
  32793. }
  32794. else if (PeriphClk == RCC_PERIPHCLK_ADC)
  32795. 800e194: e9d7 2300 ldrd r2, r3, [r7]
  32796. 800e198: f5a2 2100 sub.w r1, r2, #524288 @ 0x80000
  32797. 800e19c: 430b orrs r3, r1
  32798. 800e19e: d173 bne.n 800e288 <HAL_RCCEx_GetPeriphCLKFreq+0x8b0>
  32799. {
  32800. /* Get ADC clock source */
  32801. srcclk = __HAL_RCC_GET_ADC_SOURCE();
  32802. 800e1a0: 4b9c ldr r3, [pc, #624] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32803. 800e1a2: 6d9b ldr r3, [r3, #88] @ 0x58
  32804. 800e1a4: f403 3340 and.w r3, r3, #196608 @ 0x30000
  32805. 800e1a8: 63bb str r3, [r7, #56] @ 0x38
  32806. switch (srcclk)
  32807. 800e1aa: 6bbb ldr r3, [r7, #56] @ 0x38
  32808. 800e1ac: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32809. 800e1b0: d02f beq.n 800e212 <HAL_RCCEx_GetPeriphCLKFreq+0x83a>
  32810. 800e1b2: 6bbb ldr r3, [r7, #56] @ 0x38
  32811. 800e1b4: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32812. 800e1b8: d863 bhi.n 800e282 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  32813. 800e1ba: 6bbb ldr r3, [r7, #56] @ 0x38
  32814. 800e1bc: 2b00 cmp r3, #0
  32815. 800e1be: d004 beq.n 800e1ca <HAL_RCCEx_GetPeriphCLKFreq+0x7f2>
  32816. 800e1c0: 6bbb ldr r3, [r7, #56] @ 0x38
  32817. 800e1c2: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32818. 800e1c6: d012 beq.n 800e1ee <HAL_RCCEx_GetPeriphCLKFreq+0x816>
  32819. 800e1c8: e05b b.n 800e282 <HAL_RCCEx_GetPeriphCLKFreq+0x8aa>
  32820. {
  32821. case RCC_ADCCLKSOURCE_PLL2:
  32822. {
  32823. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  32824. 800e1ca: 4b92 ldr r3, [pc, #584] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32825. 800e1cc: 681b ldr r3, [r3, #0]
  32826. 800e1ce: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  32827. 800e1d2: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  32828. 800e1d6: d107 bne.n 800e1e8 <HAL_RCCEx_GetPeriphCLKFreq+0x810>
  32829. {
  32830. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  32831. 800e1d8: f107 0318 add.w r3, r7, #24
  32832. 800e1dc: 4618 mov r0, r3
  32833. 800e1de: f000 f991 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  32834. frequency = pll2_clocks.PLL2_P_Frequency;
  32835. 800e1e2: 69bb ldr r3, [r7, #24]
  32836. 800e1e4: 63fb str r3, [r7, #60] @ 0x3c
  32837. }
  32838. else
  32839. {
  32840. frequency = 0;
  32841. }
  32842. break;
  32843. 800e1e6: e16e b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32844. frequency = 0;
  32845. 800e1e8: 2300 movs r3, #0
  32846. 800e1ea: 63fb str r3, [r7, #60] @ 0x3c
  32847. break;
  32848. 800e1ec: e16b b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32849. }
  32850. case RCC_ADCCLKSOURCE_PLL3:
  32851. {
  32852. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  32853. 800e1ee: 4b89 ldr r3, [pc, #548] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32854. 800e1f0: 681b ldr r3, [r3, #0]
  32855. 800e1f2: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  32856. 800e1f6: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32857. 800e1fa: d107 bne.n 800e20c <HAL_RCCEx_GetPeriphCLKFreq+0x834>
  32858. {
  32859. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  32860. 800e1fc: f107 030c add.w r3, r7, #12
  32861. 800e200: 4618 mov r0, r3
  32862. 800e202: f000 fad3 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  32863. frequency = pll3_clocks.PLL3_R_Frequency;
  32864. 800e206: 697b ldr r3, [r7, #20]
  32865. 800e208: 63fb str r3, [r7, #60] @ 0x3c
  32866. }
  32867. else
  32868. {
  32869. frequency = 0;
  32870. }
  32871. break;
  32872. 800e20a: e15c b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32873. frequency = 0;
  32874. 800e20c: 2300 movs r3, #0
  32875. 800e20e: 63fb str r3, [r7, #60] @ 0x3c
  32876. break;
  32877. 800e210: e159 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32878. }
  32879. case RCC_ADCCLKSOURCE_CLKP:
  32880. {
  32881. ckpclocksource = __HAL_RCC_GET_CLKP_SOURCE();
  32882. 800e212: 4b80 ldr r3, [pc, #512] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32883. 800e214: 6cdb ldr r3, [r3, #76] @ 0x4c
  32884. 800e216: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  32885. 800e21a: 637b str r3, [r7, #52] @ 0x34
  32886. if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSI))
  32887. 800e21c: 4b7d ldr r3, [pc, #500] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32888. 800e21e: 681b ldr r3, [r3, #0]
  32889. 800e220: f003 0304 and.w r3, r3, #4
  32890. 800e224: 2b04 cmp r3, #4
  32891. 800e226: d10c bne.n 800e242 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  32892. 800e228: 6b7b ldr r3, [r7, #52] @ 0x34
  32893. 800e22a: 2b00 cmp r3, #0
  32894. 800e22c: d109 bne.n 800e242 <HAL_RCCEx_GetPeriphCLKFreq+0x86a>
  32895. {
  32896. /* In Case the CKPER Source is HSI */
  32897. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  32898. 800e22e: 4b79 ldr r3, [pc, #484] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32899. 800e230: 681b ldr r3, [r3, #0]
  32900. 800e232: 08db lsrs r3, r3, #3
  32901. 800e234: f003 0303 and.w r3, r3, #3
  32902. 800e238: 4a77 ldr r2, [pc, #476] @ (800e418 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  32903. 800e23a: fa22 f303 lsr.w r3, r2, r3
  32904. 800e23e: 63fb str r3, [r7, #60] @ 0x3c
  32905. 800e240: e01e b.n 800e280 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32906. }
  32907. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY)) && (ckpclocksource == RCC_CLKPSOURCE_CSI))
  32908. 800e242: 4b74 ldr r3, [pc, #464] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32909. 800e244: 681b ldr r3, [r3, #0]
  32910. 800e246: f403 7380 and.w r3, r3, #256 @ 0x100
  32911. 800e24a: f5b3 7f80 cmp.w r3, #256 @ 0x100
  32912. 800e24e: d106 bne.n 800e25e <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  32913. 800e250: 6b7b ldr r3, [r7, #52] @ 0x34
  32914. 800e252: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  32915. 800e256: d102 bne.n 800e25e <HAL_RCCEx_GetPeriphCLKFreq+0x886>
  32916. {
  32917. /* In Case the CKPER Source is CSI */
  32918. frequency = CSI_VALUE;
  32919. 800e258: 4b70 ldr r3, [pc, #448] @ (800e41c <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  32920. 800e25a: 63fb str r3, [r7, #60] @ 0x3c
  32921. 800e25c: e010 b.n 800e280 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32922. }
  32923. else if ((HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY)) && (ckpclocksource == RCC_CLKPSOURCE_HSE))
  32924. 800e25e: 4b6d ldr r3, [pc, #436] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32925. 800e260: 681b ldr r3, [r3, #0]
  32926. 800e262: f403 3300 and.w r3, r3, #131072 @ 0x20000
  32927. 800e266: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  32928. 800e26a: d106 bne.n 800e27a <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  32929. 800e26c: 6b7b ldr r3, [r7, #52] @ 0x34
  32930. 800e26e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  32931. 800e272: d102 bne.n 800e27a <HAL_RCCEx_GetPeriphCLKFreq+0x8a2>
  32932. {
  32933. /* In Case the CKPER Source is HSE */
  32934. frequency = HSE_VALUE;
  32935. 800e274: 4b6a ldr r3, [pc, #424] @ (800e420 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  32936. 800e276: 63fb str r3, [r7, #60] @ 0x3c
  32937. 800e278: e002 b.n 800e280 <HAL_RCCEx_GetPeriphCLKFreq+0x8a8>
  32938. }
  32939. else
  32940. {
  32941. /* In Case the CKPER is disabled*/
  32942. frequency = 0;
  32943. 800e27a: 2300 movs r3, #0
  32944. 800e27c: 63fb str r3, [r7, #60] @ 0x3c
  32945. }
  32946. break;
  32947. 800e27e: e122 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32948. 800e280: e121 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32949. }
  32950. default :
  32951. {
  32952. frequency = 0;
  32953. 800e282: 2300 movs r3, #0
  32954. 800e284: 63fb str r3, [r7, #60] @ 0x3c
  32955. break;
  32956. 800e286: e11e b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  32957. }
  32958. }
  32959. }
  32960. else if (PeriphClk == RCC_PERIPHCLK_SDMMC)
  32961. 800e288: e9d7 2300 ldrd r2, r3, [r7]
  32962. 800e28c: f5a2 3180 sub.w r1, r2, #65536 @ 0x10000
  32963. 800e290: 430b orrs r3, r1
  32964. 800e292: d133 bne.n 800e2fc <HAL_RCCEx_GetPeriphCLKFreq+0x924>
  32965. {
  32966. /* Get SDMMC clock source */
  32967. srcclk = __HAL_RCC_GET_SDMMC_SOURCE();
  32968. 800e294: 4b5f ldr r3, [pc, #380] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32969. 800e296: 6cdb ldr r3, [r3, #76] @ 0x4c
  32970. 800e298: f403 3380 and.w r3, r3, #65536 @ 0x10000
  32971. 800e29c: 63bb str r3, [r7, #56] @ 0x38
  32972. switch (srcclk)
  32973. 800e29e: 6bbb ldr r3, [r7, #56] @ 0x38
  32974. 800e2a0: 2b00 cmp r3, #0
  32975. 800e2a2: d004 beq.n 800e2ae <HAL_RCCEx_GetPeriphCLKFreq+0x8d6>
  32976. 800e2a4: 6bbb ldr r3, [r7, #56] @ 0x38
  32977. 800e2a6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  32978. 800e2aa: d012 beq.n 800e2d2 <HAL_RCCEx_GetPeriphCLKFreq+0x8fa>
  32979. 800e2ac: e023 b.n 800e2f6 <HAL_RCCEx_GetPeriphCLKFreq+0x91e>
  32980. {
  32981. case RCC_SDMMCCLKSOURCE_PLL: /* PLL1 is the clock source for SDMMC */
  32982. {
  32983. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  32984. 800e2ae: 4b59 ldr r3, [pc, #356] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  32985. 800e2b0: 681b ldr r3, [r3, #0]
  32986. 800e2b2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  32987. 800e2b6: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  32988. 800e2ba: d107 bne.n 800e2cc <HAL_RCCEx_GetPeriphCLKFreq+0x8f4>
  32989. {
  32990. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  32991. 800e2bc: f107 0324 add.w r3, r7, #36 @ 0x24
  32992. 800e2c0: 4618 mov r0, r3
  32993. 800e2c2: f000 fbc7 bl 800ea54 <HAL_RCCEx_GetPLL1ClockFreq>
  32994. frequency = pll1_clocks.PLL1_Q_Frequency;
  32995. 800e2c6: 6abb ldr r3, [r7, #40] @ 0x28
  32996. 800e2c8: 63fb str r3, [r7, #60] @ 0x3c
  32997. }
  32998. else
  32999. {
  33000. frequency = 0;
  33001. }
  33002. break;
  33003. 800e2ca: e0fc b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33004. frequency = 0;
  33005. 800e2cc: 2300 movs r3, #0
  33006. 800e2ce: 63fb str r3, [r7, #60] @ 0x3c
  33007. break;
  33008. 800e2d0: e0f9 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33009. }
  33010. case RCC_SDMMCCLKSOURCE_PLL2: /* PLL2 is the clock source for SDMMC */
  33011. {
  33012. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33013. 800e2d2: 4b50 ldr r3, [pc, #320] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33014. 800e2d4: 681b ldr r3, [r3, #0]
  33015. 800e2d6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33016. 800e2da: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33017. 800e2de: d107 bne.n 800e2f0 <HAL_RCCEx_GetPeriphCLKFreq+0x918>
  33018. {
  33019. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33020. 800e2e0: f107 0318 add.w r3, r7, #24
  33021. 800e2e4: 4618 mov r0, r3
  33022. 800e2e6: f000 f90d bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  33023. frequency = pll2_clocks.PLL2_R_Frequency;
  33024. 800e2ea: 6a3b ldr r3, [r7, #32]
  33025. 800e2ec: 63fb str r3, [r7, #60] @ 0x3c
  33026. }
  33027. else
  33028. {
  33029. frequency = 0;
  33030. }
  33031. break;
  33032. 800e2ee: e0ea b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33033. frequency = 0;
  33034. 800e2f0: 2300 movs r3, #0
  33035. 800e2f2: 63fb str r3, [r7, #60] @ 0x3c
  33036. break;
  33037. 800e2f4: e0e7 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33038. }
  33039. default :
  33040. {
  33041. frequency = 0;
  33042. 800e2f6: 2300 movs r3, #0
  33043. 800e2f8: 63fb str r3, [r7, #60] @ 0x3c
  33044. break;
  33045. 800e2fa: e0e4 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33046. }
  33047. }
  33048. }
  33049. else if (PeriphClk == RCC_PERIPHCLK_SPI6)
  33050. 800e2fc: e9d7 2300 ldrd r2, r3, [r7]
  33051. 800e300: f5a2 4180 sub.w r1, r2, #16384 @ 0x4000
  33052. 800e304: 430b orrs r3, r1
  33053. 800e306: f040 808d bne.w 800e424 <HAL_RCCEx_GetPeriphCLKFreq+0xa4c>
  33054. {
  33055. /* Get SPI6 clock source */
  33056. srcclk = __HAL_RCC_GET_SPI6_SOURCE();
  33057. 800e30a: 4b42 ldr r3, [pc, #264] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33058. 800e30c: 6d9b ldr r3, [r3, #88] @ 0x58
  33059. 800e30e: f003 43e0 and.w r3, r3, #1879048192 @ 0x70000000
  33060. 800e312: 63bb str r3, [r7, #56] @ 0x38
  33061. switch (srcclk)
  33062. 800e314: 6bbb ldr r3, [r7, #56] @ 0x38
  33063. 800e316: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33064. 800e31a: d06b beq.n 800e3f4 <HAL_RCCEx_GetPeriphCLKFreq+0xa1c>
  33065. 800e31c: 6bbb ldr r3, [r7, #56] @ 0x38
  33066. 800e31e: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000
  33067. 800e322: d874 bhi.n 800e40e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33068. 800e324: 6bbb ldr r3, [r7, #56] @ 0x38
  33069. 800e326: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33070. 800e32a: d056 beq.n 800e3da <HAL_RCCEx_GetPeriphCLKFreq+0xa02>
  33071. 800e32c: 6bbb ldr r3, [r7, #56] @ 0x38
  33072. 800e32e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  33073. 800e332: d86c bhi.n 800e40e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33074. 800e334: 6bbb ldr r3, [r7, #56] @ 0x38
  33075. 800e336: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33076. 800e33a: d03b beq.n 800e3b4 <HAL_RCCEx_GetPeriphCLKFreq+0x9dc>
  33077. 800e33c: 6bbb ldr r3, [r7, #56] @ 0x38
  33078. 800e33e: f1b3 5f40 cmp.w r3, #805306368 @ 0x30000000
  33079. 800e342: d864 bhi.n 800e40e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33080. 800e344: 6bbb ldr r3, [r7, #56] @ 0x38
  33081. 800e346: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33082. 800e34a: d021 beq.n 800e390 <HAL_RCCEx_GetPeriphCLKFreq+0x9b8>
  33083. 800e34c: 6bbb ldr r3, [r7, #56] @ 0x38
  33084. 800e34e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33085. 800e352: d85c bhi.n 800e40e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33086. 800e354: 6bbb ldr r3, [r7, #56] @ 0x38
  33087. 800e356: 2b00 cmp r3, #0
  33088. 800e358: d004 beq.n 800e364 <HAL_RCCEx_GetPeriphCLKFreq+0x98c>
  33089. 800e35a: 6bbb ldr r3, [r7, #56] @ 0x38
  33090. 800e35c: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33091. 800e360: d004 beq.n 800e36c <HAL_RCCEx_GetPeriphCLKFreq+0x994>
  33092. 800e362: e054 b.n 800e40e <HAL_RCCEx_GetPeriphCLKFreq+0xa36>
  33093. {
  33094. case RCC_SPI6CLKSOURCE_D3PCLK1: /* D3PCLK1 (PCLK4) is the clock source for SPI6 */
  33095. {
  33096. frequency = HAL_RCCEx_GetD3PCLK1Freq();
  33097. 800e364: f000 f8b8 bl 800e4d8 <HAL_RCCEx_GetD3PCLK1Freq>
  33098. 800e368: 63f8 str r0, [r7, #60] @ 0x3c
  33099. break;
  33100. 800e36a: e0ac b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33101. }
  33102. case RCC_SPI6CLKSOURCE_PLL2: /* PLL2 is the clock source for SPI6 */
  33103. {
  33104. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33105. 800e36c: 4b29 ldr r3, [pc, #164] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33106. 800e36e: 681b ldr r3, [r3, #0]
  33107. 800e370: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33108. 800e374: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33109. 800e378: d107 bne.n 800e38a <HAL_RCCEx_GetPeriphCLKFreq+0x9b2>
  33110. {
  33111. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33112. 800e37a: f107 0318 add.w r3, r7, #24
  33113. 800e37e: 4618 mov r0, r3
  33114. 800e380: f000 f8c0 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  33115. frequency = pll2_clocks.PLL2_Q_Frequency;
  33116. 800e384: 69fb ldr r3, [r7, #28]
  33117. 800e386: 63fb str r3, [r7, #60] @ 0x3c
  33118. }
  33119. else
  33120. {
  33121. frequency = 0;
  33122. }
  33123. break;
  33124. 800e388: e09d b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33125. frequency = 0;
  33126. 800e38a: 2300 movs r3, #0
  33127. 800e38c: 63fb str r3, [r7, #60] @ 0x3c
  33128. break;
  33129. 800e38e: e09a b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33130. }
  33131. case RCC_SPI6CLKSOURCE_PLL3: /* PLL3 is the clock source for SPI6 */
  33132. {
  33133. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL3RDY))
  33134. 800e390: 4b20 ldr r3, [pc, #128] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33135. 800e392: 681b ldr r3, [r3, #0]
  33136. 800e394: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  33137. 800e398: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33138. 800e39c: d107 bne.n 800e3ae <HAL_RCCEx_GetPeriphCLKFreq+0x9d6>
  33139. {
  33140. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  33141. 800e39e: f107 030c add.w r3, r7, #12
  33142. 800e3a2: 4618 mov r0, r3
  33143. 800e3a4: f000 fa02 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  33144. frequency = pll3_clocks.PLL3_Q_Frequency;
  33145. 800e3a8: 693b ldr r3, [r7, #16]
  33146. 800e3aa: 63fb str r3, [r7, #60] @ 0x3c
  33147. }
  33148. else
  33149. {
  33150. frequency = 0;
  33151. }
  33152. break;
  33153. 800e3ac: e08b b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33154. frequency = 0;
  33155. 800e3ae: 2300 movs r3, #0
  33156. 800e3b0: 63fb str r3, [r7, #60] @ 0x3c
  33157. break;
  33158. 800e3b2: e088 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33159. }
  33160. case RCC_SPI6CLKSOURCE_HSI: /* HSI is the clock source for SPI6 */
  33161. {
  33162. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSIRDY))
  33163. 800e3b4: 4b17 ldr r3, [pc, #92] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33164. 800e3b6: 681b ldr r3, [r3, #0]
  33165. 800e3b8: f003 0304 and.w r3, r3, #4
  33166. 800e3bc: 2b04 cmp r3, #4
  33167. 800e3be: d109 bne.n 800e3d4 <HAL_RCCEx_GetPeriphCLKFreq+0x9fc>
  33168. {
  33169. frequency = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33170. 800e3c0: 4b14 ldr r3, [pc, #80] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33171. 800e3c2: 681b ldr r3, [r3, #0]
  33172. 800e3c4: 08db lsrs r3, r3, #3
  33173. 800e3c6: f003 0303 and.w r3, r3, #3
  33174. 800e3ca: 4a13 ldr r2, [pc, #76] @ (800e418 <HAL_RCCEx_GetPeriphCLKFreq+0xa40>)
  33175. 800e3cc: fa22 f303 lsr.w r3, r2, r3
  33176. 800e3d0: 63fb str r3, [r7, #60] @ 0x3c
  33177. }
  33178. else
  33179. {
  33180. frequency = 0;
  33181. }
  33182. break;
  33183. 800e3d2: e078 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33184. frequency = 0;
  33185. 800e3d4: 2300 movs r3, #0
  33186. 800e3d6: 63fb str r3, [r7, #60] @ 0x3c
  33187. break;
  33188. 800e3d8: e075 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33189. }
  33190. case RCC_SPI6CLKSOURCE_CSI: /* CSI is the clock source for SPI6 */
  33191. {
  33192. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_CSIRDY))
  33193. 800e3da: 4b0e ldr r3, [pc, #56] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33194. 800e3dc: 681b ldr r3, [r3, #0]
  33195. 800e3de: f403 7380 and.w r3, r3, #256 @ 0x100
  33196. 800e3e2: f5b3 7f80 cmp.w r3, #256 @ 0x100
  33197. 800e3e6: d102 bne.n 800e3ee <HAL_RCCEx_GetPeriphCLKFreq+0xa16>
  33198. {
  33199. frequency = CSI_VALUE;
  33200. 800e3e8: 4b0c ldr r3, [pc, #48] @ (800e41c <HAL_RCCEx_GetPeriphCLKFreq+0xa44>)
  33201. 800e3ea: 63fb str r3, [r7, #60] @ 0x3c
  33202. }
  33203. else
  33204. {
  33205. frequency = 0;
  33206. }
  33207. break;
  33208. 800e3ec: e06b b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33209. frequency = 0;
  33210. 800e3ee: 2300 movs r3, #0
  33211. 800e3f0: 63fb str r3, [r7, #60] @ 0x3c
  33212. break;
  33213. 800e3f2: e068 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33214. }
  33215. case RCC_SPI6CLKSOURCE_HSE: /* HSE is the clock source for SPI6 */
  33216. {
  33217. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33218. 800e3f4: 4b07 ldr r3, [pc, #28] @ (800e414 <HAL_RCCEx_GetPeriphCLKFreq+0xa3c>)
  33219. 800e3f6: 681b ldr r3, [r3, #0]
  33220. 800e3f8: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33221. 800e3fc: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33222. 800e400: d102 bne.n 800e408 <HAL_RCCEx_GetPeriphCLKFreq+0xa30>
  33223. {
  33224. frequency = HSE_VALUE;
  33225. 800e402: 4b07 ldr r3, [pc, #28] @ (800e420 <HAL_RCCEx_GetPeriphCLKFreq+0xa48>)
  33226. 800e404: 63fb str r3, [r7, #60] @ 0x3c
  33227. }
  33228. else
  33229. {
  33230. frequency = 0;
  33231. }
  33232. break;
  33233. 800e406: e05e b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33234. frequency = 0;
  33235. 800e408: 2300 movs r3, #0
  33236. 800e40a: 63fb str r3, [r7, #60] @ 0x3c
  33237. break;
  33238. 800e40c: e05b b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33239. break;
  33240. }
  33241. #endif /* RCC_SPI6CLKSOURCE_PIN */
  33242. default :
  33243. {
  33244. frequency = 0;
  33245. 800e40e: 2300 movs r3, #0
  33246. 800e410: 63fb str r3, [r7, #60] @ 0x3c
  33247. break;
  33248. 800e412: e058 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33249. 800e414: 58024400 .word 0x58024400
  33250. 800e418: 03d09000 .word 0x03d09000
  33251. 800e41c: 003d0900 .word 0x003d0900
  33252. 800e420: 017d7840 .word 0x017d7840
  33253. }
  33254. }
  33255. }
  33256. else if (PeriphClk == RCC_PERIPHCLK_FDCAN)
  33257. 800e424: e9d7 2300 ldrd r2, r3, [r7]
  33258. 800e428: f5a2 4100 sub.w r1, r2, #32768 @ 0x8000
  33259. 800e42c: 430b orrs r3, r1
  33260. 800e42e: d148 bne.n 800e4c2 <HAL_RCCEx_GetPeriphCLKFreq+0xaea>
  33261. {
  33262. /* Get FDCAN clock source */
  33263. srcclk = __HAL_RCC_GET_FDCAN_SOURCE();
  33264. 800e430: 4b27 ldr r3, [pc, #156] @ (800e4d0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33265. 800e432: 6d1b ldr r3, [r3, #80] @ 0x50
  33266. 800e434: f003 5340 and.w r3, r3, #805306368 @ 0x30000000
  33267. 800e438: 63bb str r3, [r7, #56] @ 0x38
  33268. switch (srcclk)
  33269. 800e43a: 6bbb ldr r3, [r7, #56] @ 0x38
  33270. 800e43c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33271. 800e440: d02a beq.n 800e498 <HAL_RCCEx_GetPeriphCLKFreq+0xac0>
  33272. 800e442: 6bbb ldr r3, [r7, #56] @ 0x38
  33273. 800e444: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  33274. 800e448: d838 bhi.n 800e4bc <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33275. 800e44a: 6bbb ldr r3, [r7, #56] @ 0x38
  33276. 800e44c: 2b00 cmp r3, #0
  33277. 800e44e: d004 beq.n 800e45a <HAL_RCCEx_GetPeriphCLKFreq+0xa82>
  33278. 800e450: 6bbb ldr r3, [r7, #56] @ 0x38
  33279. 800e452: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  33280. 800e456: d00d beq.n 800e474 <HAL_RCCEx_GetPeriphCLKFreq+0xa9c>
  33281. 800e458: e030 b.n 800e4bc <HAL_RCCEx_GetPeriphCLKFreq+0xae4>
  33282. {
  33283. case RCC_FDCANCLKSOURCE_HSE: /* HSE is the clock source for FDCAN */
  33284. {
  33285. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_HSERDY))
  33286. 800e45a: 4b1d ldr r3, [pc, #116] @ (800e4d0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33287. 800e45c: 681b ldr r3, [r3, #0]
  33288. 800e45e: f403 3300 and.w r3, r3, #131072 @ 0x20000
  33289. 800e462: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
  33290. 800e466: d102 bne.n 800e46e <HAL_RCCEx_GetPeriphCLKFreq+0xa96>
  33291. {
  33292. frequency = HSE_VALUE;
  33293. 800e468: 4b1a ldr r3, [pc, #104] @ (800e4d4 <HAL_RCCEx_GetPeriphCLKFreq+0xafc>)
  33294. 800e46a: 63fb str r3, [r7, #60] @ 0x3c
  33295. }
  33296. else
  33297. {
  33298. frequency = 0;
  33299. }
  33300. break;
  33301. 800e46c: e02b b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33302. frequency = 0;
  33303. 800e46e: 2300 movs r3, #0
  33304. 800e470: 63fb str r3, [r7, #60] @ 0x3c
  33305. break;
  33306. 800e472: e028 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33307. }
  33308. case RCC_FDCANCLKSOURCE_PLL: /* PLL is the clock source for FDCAN */
  33309. {
  33310. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL1RDY))
  33311. 800e474: 4b16 ldr r3, [pc, #88] @ (800e4d0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33312. 800e476: 681b ldr r3, [r3, #0]
  33313. 800e478: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
  33314. 800e47c: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
  33315. 800e480: d107 bne.n 800e492 <HAL_RCCEx_GetPeriphCLKFreq+0xaba>
  33316. {
  33317. HAL_RCCEx_GetPLL1ClockFreq(&pll1_clocks);
  33318. 800e482: f107 0324 add.w r3, r7, #36 @ 0x24
  33319. 800e486: 4618 mov r0, r3
  33320. 800e488: f000 fae4 bl 800ea54 <HAL_RCCEx_GetPLL1ClockFreq>
  33321. frequency = pll1_clocks.PLL1_Q_Frequency;
  33322. 800e48c: 6abb ldr r3, [r7, #40] @ 0x28
  33323. 800e48e: 63fb str r3, [r7, #60] @ 0x3c
  33324. }
  33325. else
  33326. {
  33327. frequency = 0;
  33328. }
  33329. break;
  33330. 800e490: e019 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33331. frequency = 0;
  33332. 800e492: 2300 movs r3, #0
  33333. 800e494: 63fb str r3, [r7, #60] @ 0x3c
  33334. break;
  33335. 800e496: e016 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33336. }
  33337. case RCC_FDCANCLKSOURCE_PLL2: /* PLL2 is the clock source for FDCAN */
  33338. {
  33339. if (HAL_IS_BIT_SET(RCC->CR, RCC_CR_PLL2RDY))
  33340. 800e498: 4b0d ldr r3, [pc, #52] @ (800e4d0 <HAL_RCCEx_GetPeriphCLKFreq+0xaf8>)
  33341. 800e49a: 681b ldr r3, [r3, #0]
  33342. 800e49c: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  33343. 800e4a0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
  33344. 800e4a4: d107 bne.n 800e4b6 <HAL_RCCEx_GetPeriphCLKFreq+0xade>
  33345. {
  33346. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  33347. 800e4a6: f107 0318 add.w r3, r7, #24
  33348. 800e4aa: 4618 mov r0, r3
  33349. 800e4ac: f000 f82a bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  33350. frequency = pll2_clocks.PLL2_Q_Frequency;
  33351. 800e4b0: 69fb ldr r3, [r7, #28]
  33352. 800e4b2: 63fb str r3, [r7, #60] @ 0x3c
  33353. }
  33354. else
  33355. {
  33356. frequency = 0;
  33357. }
  33358. break;
  33359. 800e4b4: e007 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33360. frequency = 0;
  33361. 800e4b6: 2300 movs r3, #0
  33362. 800e4b8: 63fb str r3, [r7, #60] @ 0x3c
  33363. break;
  33364. 800e4ba: e004 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33365. }
  33366. default :
  33367. {
  33368. frequency = 0;
  33369. 800e4bc: 2300 movs r3, #0
  33370. 800e4be: 63fb str r3, [r7, #60] @ 0x3c
  33371. break;
  33372. 800e4c0: e001 b.n 800e4c6 <HAL_RCCEx_GetPeriphCLKFreq+0xaee>
  33373. }
  33374. }
  33375. }
  33376. else
  33377. {
  33378. frequency = 0;
  33379. 800e4c2: 2300 movs r3, #0
  33380. 800e4c4: 63fb str r3, [r7, #60] @ 0x3c
  33381. }
  33382. return frequency;
  33383. 800e4c6: 6bfb ldr r3, [r7, #60] @ 0x3c
  33384. }
  33385. 800e4c8: 4618 mov r0, r3
  33386. 800e4ca: 3740 adds r7, #64 @ 0x40
  33387. 800e4cc: 46bd mov sp, r7
  33388. 800e4ce: bd80 pop {r7, pc}
  33389. 800e4d0: 58024400 .word 0x58024400
  33390. 800e4d4: 017d7840 .word 0x017d7840
  33391. 0800e4d8 <HAL_RCCEx_GetD3PCLK1Freq>:
  33392. * @note Each time D3PCLK1 changes, this function must be called to update the
  33393. * right D3PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  33394. * @retval D3PCLK1 frequency
  33395. */
  33396. uint32_t HAL_RCCEx_GetD3PCLK1Freq(void)
  33397. {
  33398. 800e4d8: b580 push {r7, lr}
  33399. 800e4da: af00 add r7, sp, #0
  33400. #if defined(RCC_D3CFGR_D3PPRE)
  33401. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33402. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->D3CFGR & RCC_D3CFGR_D3PPRE) >> RCC_D3CFGR_D3PPRE_Pos] & 0x1FU));
  33403. 800e4dc: f7fd fff0 bl 800c4c0 <HAL_RCC_GetHCLKFreq>
  33404. 800e4e0: 4602 mov r2, r0
  33405. 800e4e2: 4b06 ldr r3, [pc, #24] @ (800e4fc <HAL_RCCEx_GetD3PCLK1Freq+0x24>)
  33406. 800e4e4: 6a1b ldr r3, [r3, #32]
  33407. 800e4e6: 091b lsrs r3, r3, #4
  33408. 800e4e8: f003 0307 and.w r3, r3, #7
  33409. 800e4ec: 4904 ldr r1, [pc, #16] @ (800e500 <HAL_RCCEx_GetD3PCLK1Freq+0x28>)
  33410. 800e4ee: 5ccb ldrb r3, [r1, r3]
  33411. 800e4f0: f003 031f and.w r3, r3, #31
  33412. 800e4f4: fa22 f303 lsr.w r3, r2, r3
  33413. #else
  33414. /* Get HCLK source and Compute D3PCLK1 frequency ---------------------------*/
  33415. return (HAL_RCC_GetHCLKFreq() >> (D1CorePrescTable[(RCC->SRDCFGR & RCC_SRDCFGR_SRDPPRE) >> RCC_SRDCFGR_SRDPPRE_Pos] & 0x1FU));
  33416. #endif
  33417. }
  33418. 800e4f8: 4618 mov r0, r3
  33419. 800e4fa: bd80 pop {r7, pc}
  33420. 800e4fc: 58024400 .word 0x58024400
  33421. 800e500: 0801a288 .word 0x0801a288
  33422. 0800e504 <HAL_RCCEx_GetPLL2ClockFreq>:
  33423. * right PLL2CLK value. Otherwise, any configuration based on this function will be incorrect.
  33424. * @param PLL2_Clocks structure.
  33425. * @retval None
  33426. */
  33427. void HAL_RCCEx_GetPLL2ClockFreq(PLL2_ClocksTypeDef *PLL2_Clocks)
  33428. {
  33429. 800e504: b480 push {r7}
  33430. 800e506: b089 sub sp, #36 @ 0x24
  33431. 800e508: af00 add r7, sp, #0
  33432. 800e50a: 6078 str r0, [r7, #4]
  33433. float_t fracn2, pll2vco;
  33434. /* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL2M) * PLL2N
  33435. PLL2xCLK = PLL2_VCO / PLL2x
  33436. */
  33437. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33438. 800e50c: 4ba1 ldr r3, [pc, #644] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33439. 800e50e: 6a9b ldr r3, [r3, #40] @ 0x28
  33440. 800e510: f003 0303 and.w r3, r3, #3
  33441. 800e514: 61bb str r3, [r7, #24]
  33442. pll2m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM2) >> 12);
  33443. 800e516: 4b9f ldr r3, [pc, #636] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33444. 800e518: 6a9b ldr r3, [r3, #40] @ 0x28
  33445. 800e51a: 0b1b lsrs r3, r3, #12
  33446. 800e51c: f003 033f and.w r3, r3, #63 @ 0x3f
  33447. 800e520: 617b str r3, [r7, #20]
  33448. pll2fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL2FRACEN) >> RCC_PLLCFGR_PLL2FRACEN_Pos;
  33449. 800e522: 4b9c ldr r3, [pc, #624] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33450. 800e524: 6adb ldr r3, [r3, #44] @ 0x2c
  33451. 800e526: 091b lsrs r3, r3, #4
  33452. 800e528: f003 0301 and.w r3, r3, #1
  33453. 800e52c: 613b str r3, [r7, #16]
  33454. fracn2 = (float_t)(uint32_t)(pll2fracen * ((RCC->PLL2FRACR & RCC_PLL2FRACR_FRACN2) >> 3));
  33455. 800e52e: 4b99 ldr r3, [pc, #612] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33456. 800e530: 6bdb ldr r3, [r3, #60] @ 0x3c
  33457. 800e532: 08db lsrs r3, r3, #3
  33458. 800e534: f3c3 030c ubfx r3, r3, #0, #13
  33459. 800e538: 693a ldr r2, [r7, #16]
  33460. 800e53a: fb02 f303 mul.w r3, r2, r3
  33461. 800e53e: ee07 3a90 vmov s15, r3
  33462. 800e542: eef8 7a67 vcvt.f32.u32 s15, s15
  33463. 800e546: edc7 7a03 vstr s15, [r7, #12]
  33464. if (pll2m != 0U)
  33465. 800e54a: 697b ldr r3, [r7, #20]
  33466. 800e54c: 2b00 cmp r3, #0
  33467. 800e54e: f000 8111 beq.w 800e774 <HAL_RCCEx_GetPLL2ClockFreq+0x270>
  33468. {
  33469. switch (pllsource)
  33470. 800e552: 69bb ldr r3, [r7, #24]
  33471. 800e554: 2b02 cmp r3, #2
  33472. 800e556: f000 8083 beq.w 800e660 <HAL_RCCEx_GetPLL2ClockFreq+0x15c>
  33473. 800e55a: 69bb ldr r3, [r7, #24]
  33474. 800e55c: 2b02 cmp r3, #2
  33475. 800e55e: f200 80a1 bhi.w 800e6a4 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33476. 800e562: 69bb ldr r3, [r7, #24]
  33477. 800e564: 2b00 cmp r3, #0
  33478. 800e566: d003 beq.n 800e570 <HAL_RCCEx_GetPLL2ClockFreq+0x6c>
  33479. 800e568: 69bb ldr r3, [r7, #24]
  33480. 800e56a: 2b01 cmp r3, #1
  33481. 800e56c: d056 beq.n 800e61c <HAL_RCCEx_GetPLL2ClockFreq+0x118>
  33482. 800e56e: e099 b.n 800e6a4 <HAL_RCCEx_GetPLL2ClockFreq+0x1a0>
  33483. {
  33484. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33485. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33486. 800e570: 4b88 ldr r3, [pc, #544] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33487. 800e572: 681b ldr r3, [r3, #0]
  33488. 800e574: f003 0320 and.w r3, r3, #32
  33489. 800e578: 2b00 cmp r3, #0
  33490. 800e57a: d02d beq.n 800e5d8 <HAL_RCCEx_GetPLL2ClockFreq+0xd4>
  33491. {
  33492. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33493. 800e57c: 4b85 ldr r3, [pc, #532] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33494. 800e57e: 681b ldr r3, [r3, #0]
  33495. 800e580: 08db lsrs r3, r3, #3
  33496. 800e582: f003 0303 and.w r3, r3, #3
  33497. 800e586: 4a84 ldr r2, [pc, #528] @ (800e798 <HAL_RCCEx_GetPLL2ClockFreq+0x294>)
  33498. 800e588: fa22 f303 lsr.w r3, r2, r3
  33499. 800e58c: 60bb str r3, [r7, #8]
  33500. pll2vco = ((float_t)hsivalue / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33501. 800e58e: 68bb ldr r3, [r7, #8]
  33502. 800e590: ee07 3a90 vmov s15, r3
  33503. 800e594: eef8 6a67 vcvt.f32.u32 s13, s15
  33504. 800e598: 697b ldr r3, [r7, #20]
  33505. 800e59a: ee07 3a90 vmov s15, r3
  33506. 800e59e: eef8 7a67 vcvt.f32.u32 s15, s15
  33507. 800e5a2: ee86 7aa7 vdiv.f32 s14, s13, s15
  33508. 800e5a6: 4b7b ldr r3, [pc, #492] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33509. 800e5a8: 6b9b ldr r3, [r3, #56] @ 0x38
  33510. 800e5aa: f3c3 0308 ubfx r3, r3, #0, #9
  33511. 800e5ae: ee07 3a90 vmov s15, r3
  33512. 800e5b2: eef8 6a67 vcvt.f32.u32 s13, s15
  33513. 800e5b6: ed97 6a03 vldr s12, [r7, #12]
  33514. 800e5ba: eddf 5a78 vldr s11, [pc, #480] @ 800e79c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33515. 800e5be: eec6 7a25 vdiv.f32 s15, s12, s11
  33516. 800e5c2: ee76 7aa7 vadd.f32 s15, s13, s15
  33517. 800e5c6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33518. 800e5ca: ee77 7aa6 vadd.f32 s15, s15, s13
  33519. 800e5ce: ee67 7a27 vmul.f32 s15, s14, s15
  33520. 800e5d2: edc7 7a07 vstr s15, [r7, #28]
  33521. }
  33522. else
  33523. {
  33524. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33525. }
  33526. break;
  33527. 800e5d6: e087 b.n 800e6e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33528. pll2vco = ((float_t)HSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33529. 800e5d8: 697b ldr r3, [r7, #20]
  33530. 800e5da: ee07 3a90 vmov s15, r3
  33531. 800e5de: eef8 7a67 vcvt.f32.u32 s15, s15
  33532. 800e5e2: eddf 6a6f vldr s13, [pc, #444] @ 800e7a0 <HAL_RCCEx_GetPLL2ClockFreq+0x29c>
  33533. 800e5e6: ee86 7aa7 vdiv.f32 s14, s13, s15
  33534. 800e5ea: 4b6a ldr r3, [pc, #424] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33535. 800e5ec: 6b9b ldr r3, [r3, #56] @ 0x38
  33536. 800e5ee: f3c3 0308 ubfx r3, r3, #0, #9
  33537. 800e5f2: ee07 3a90 vmov s15, r3
  33538. 800e5f6: eef8 6a67 vcvt.f32.u32 s13, s15
  33539. 800e5fa: ed97 6a03 vldr s12, [r7, #12]
  33540. 800e5fe: eddf 5a67 vldr s11, [pc, #412] @ 800e79c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33541. 800e602: eec6 7a25 vdiv.f32 s15, s12, s11
  33542. 800e606: ee76 7aa7 vadd.f32 s15, s13, s15
  33543. 800e60a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33544. 800e60e: ee77 7aa6 vadd.f32 s15, s15, s13
  33545. 800e612: ee67 7a27 vmul.f32 s15, s14, s15
  33546. 800e616: edc7 7a07 vstr s15, [r7, #28]
  33547. break;
  33548. 800e61a: e065 b.n 800e6e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33549. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33550. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33551. 800e61c: 697b ldr r3, [r7, #20]
  33552. 800e61e: ee07 3a90 vmov s15, r3
  33553. 800e622: eef8 7a67 vcvt.f32.u32 s15, s15
  33554. 800e626: eddf 6a5f vldr s13, [pc, #380] @ 800e7a4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  33555. 800e62a: ee86 7aa7 vdiv.f32 s14, s13, s15
  33556. 800e62e: 4b59 ldr r3, [pc, #356] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33557. 800e630: 6b9b ldr r3, [r3, #56] @ 0x38
  33558. 800e632: f3c3 0308 ubfx r3, r3, #0, #9
  33559. 800e636: ee07 3a90 vmov s15, r3
  33560. 800e63a: eef8 6a67 vcvt.f32.u32 s13, s15
  33561. 800e63e: ed97 6a03 vldr s12, [r7, #12]
  33562. 800e642: eddf 5a56 vldr s11, [pc, #344] @ 800e79c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33563. 800e646: eec6 7a25 vdiv.f32 s15, s12, s11
  33564. 800e64a: ee76 7aa7 vadd.f32 s15, s13, s15
  33565. 800e64e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33566. 800e652: ee77 7aa6 vadd.f32 s15, s15, s13
  33567. 800e656: ee67 7a27 vmul.f32 s15, s14, s15
  33568. 800e65a: edc7 7a07 vstr s15, [r7, #28]
  33569. break;
  33570. 800e65e: e043 b.n 800e6e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33571. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33572. pll2vco = ((float_t)HSE_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33573. 800e660: 697b ldr r3, [r7, #20]
  33574. 800e662: ee07 3a90 vmov s15, r3
  33575. 800e666: eef8 7a67 vcvt.f32.u32 s15, s15
  33576. 800e66a: eddf 6a4f vldr s13, [pc, #316] @ 800e7a8 <HAL_RCCEx_GetPLL2ClockFreq+0x2a4>
  33577. 800e66e: ee86 7aa7 vdiv.f32 s14, s13, s15
  33578. 800e672: 4b48 ldr r3, [pc, #288] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33579. 800e674: 6b9b ldr r3, [r3, #56] @ 0x38
  33580. 800e676: f3c3 0308 ubfx r3, r3, #0, #9
  33581. 800e67a: ee07 3a90 vmov s15, r3
  33582. 800e67e: eef8 6a67 vcvt.f32.u32 s13, s15
  33583. 800e682: ed97 6a03 vldr s12, [r7, #12]
  33584. 800e686: eddf 5a45 vldr s11, [pc, #276] @ 800e79c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33585. 800e68a: eec6 7a25 vdiv.f32 s15, s12, s11
  33586. 800e68e: ee76 7aa7 vadd.f32 s15, s13, s15
  33587. 800e692: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33588. 800e696: ee77 7aa6 vadd.f32 s15, s15, s13
  33589. 800e69a: ee67 7a27 vmul.f32 s15, s14, s15
  33590. 800e69e: edc7 7a07 vstr s15, [r7, #28]
  33591. break;
  33592. 800e6a2: e021 b.n 800e6e8 <HAL_RCCEx_GetPLL2ClockFreq+0x1e4>
  33593. default:
  33594. pll2vco = ((float_t)CSI_VALUE / (float_t)pll2m) * ((float_t)(uint32_t)(RCC->PLL2DIVR & RCC_PLL2DIVR_N2) + (fracn2 / (float_t)0x2000) + (float_t)1);
  33595. 800e6a4: 697b ldr r3, [r7, #20]
  33596. 800e6a6: ee07 3a90 vmov s15, r3
  33597. 800e6aa: eef8 7a67 vcvt.f32.u32 s15, s15
  33598. 800e6ae: eddf 6a3d vldr s13, [pc, #244] @ 800e7a4 <HAL_RCCEx_GetPLL2ClockFreq+0x2a0>
  33599. 800e6b2: ee86 7aa7 vdiv.f32 s14, s13, s15
  33600. 800e6b6: 4b37 ldr r3, [pc, #220] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33601. 800e6b8: 6b9b ldr r3, [r3, #56] @ 0x38
  33602. 800e6ba: f3c3 0308 ubfx r3, r3, #0, #9
  33603. 800e6be: ee07 3a90 vmov s15, r3
  33604. 800e6c2: eef8 6a67 vcvt.f32.u32 s13, s15
  33605. 800e6c6: ed97 6a03 vldr s12, [r7, #12]
  33606. 800e6ca: eddf 5a34 vldr s11, [pc, #208] @ 800e79c <HAL_RCCEx_GetPLL2ClockFreq+0x298>
  33607. 800e6ce: eec6 7a25 vdiv.f32 s15, s12, s11
  33608. 800e6d2: ee76 7aa7 vadd.f32 s15, s13, s15
  33609. 800e6d6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33610. 800e6da: ee77 7aa6 vadd.f32 s15, s15, s13
  33611. 800e6de: ee67 7a27 vmul.f32 s15, s14, s15
  33612. 800e6e2: edc7 7a07 vstr s15, [r7, #28]
  33613. break;
  33614. 800e6e6: bf00 nop
  33615. }
  33616. PLL2_Clocks->PLL2_P_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_P2) >> 9) + (float_t)1)) ;
  33617. 800e6e8: 4b2a ldr r3, [pc, #168] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33618. 800e6ea: 6b9b ldr r3, [r3, #56] @ 0x38
  33619. 800e6ec: 0a5b lsrs r3, r3, #9
  33620. 800e6ee: f003 037f and.w r3, r3, #127 @ 0x7f
  33621. 800e6f2: ee07 3a90 vmov s15, r3
  33622. 800e6f6: eef8 7a67 vcvt.f32.u32 s15, s15
  33623. 800e6fa: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33624. 800e6fe: ee37 7a87 vadd.f32 s14, s15, s14
  33625. 800e702: edd7 6a07 vldr s13, [r7, #28]
  33626. 800e706: eec6 7a87 vdiv.f32 s15, s13, s14
  33627. 800e70a: eefc 7ae7 vcvt.u32.f32 s15, s15
  33628. 800e70e: ee17 2a90 vmov r2, s15
  33629. 800e712: 687b ldr r3, [r7, #4]
  33630. 800e714: 601a str r2, [r3, #0]
  33631. PLL2_Clocks->PLL2_Q_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_Q2) >> 16) + (float_t)1)) ;
  33632. 800e716: 4b1f ldr r3, [pc, #124] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33633. 800e718: 6b9b ldr r3, [r3, #56] @ 0x38
  33634. 800e71a: 0c1b lsrs r3, r3, #16
  33635. 800e71c: f003 037f and.w r3, r3, #127 @ 0x7f
  33636. 800e720: ee07 3a90 vmov s15, r3
  33637. 800e724: eef8 7a67 vcvt.f32.u32 s15, s15
  33638. 800e728: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33639. 800e72c: ee37 7a87 vadd.f32 s14, s15, s14
  33640. 800e730: edd7 6a07 vldr s13, [r7, #28]
  33641. 800e734: eec6 7a87 vdiv.f32 s15, s13, s14
  33642. 800e738: eefc 7ae7 vcvt.u32.f32 s15, s15
  33643. 800e73c: ee17 2a90 vmov r2, s15
  33644. 800e740: 687b ldr r3, [r7, #4]
  33645. 800e742: 605a str r2, [r3, #4]
  33646. PLL2_Clocks->PLL2_R_Frequency = (uint32_t)(float_t)(pll2vco / ((float_t)(uint32_t)((RCC->PLL2DIVR & RCC_PLL2DIVR_R2) >> 24) + (float_t)1)) ;
  33647. 800e744: 4b13 ldr r3, [pc, #76] @ (800e794 <HAL_RCCEx_GetPLL2ClockFreq+0x290>)
  33648. 800e746: 6b9b ldr r3, [r3, #56] @ 0x38
  33649. 800e748: 0e1b lsrs r3, r3, #24
  33650. 800e74a: f003 037f and.w r3, r3, #127 @ 0x7f
  33651. 800e74e: ee07 3a90 vmov s15, r3
  33652. 800e752: eef8 7a67 vcvt.f32.u32 s15, s15
  33653. 800e756: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33654. 800e75a: ee37 7a87 vadd.f32 s14, s15, s14
  33655. 800e75e: edd7 6a07 vldr s13, [r7, #28]
  33656. 800e762: eec6 7a87 vdiv.f32 s15, s13, s14
  33657. 800e766: eefc 7ae7 vcvt.u32.f32 s15, s15
  33658. 800e76a: ee17 2a90 vmov r2, s15
  33659. 800e76e: 687b ldr r3, [r7, #4]
  33660. 800e770: 609a str r2, [r3, #8]
  33661. {
  33662. PLL2_Clocks->PLL2_P_Frequency = 0U;
  33663. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  33664. PLL2_Clocks->PLL2_R_Frequency = 0U;
  33665. }
  33666. }
  33667. 800e772: e008 b.n 800e786 <HAL_RCCEx_GetPLL2ClockFreq+0x282>
  33668. PLL2_Clocks->PLL2_P_Frequency = 0U;
  33669. 800e774: 687b ldr r3, [r7, #4]
  33670. 800e776: 2200 movs r2, #0
  33671. 800e778: 601a str r2, [r3, #0]
  33672. PLL2_Clocks->PLL2_Q_Frequency = 0U;
  33673. 800e77a: 687b ldr r3, [r7, #4]
  33674. 800e77c: 2200 movs r2, #0
  33675. 800e77e: 605a str r2, [r3, #4]
  33676. PLL2_Clocks->PLL2_R_Frequency = 0U;
  33677. 800e780: 687b ldr r3, [r7, #4]
  33678. 800e782: 2200 movs r2, #0
  33679. 800e784: 609a str r2, [r3, #8]
  33680. }
  33681. 800e786: bf00 nop
  33682. 800e788: 3724 adds r7, #36 @ 0x24
  33683. 800e78a: 46bd mov sp, r7
  33684. 800e78c: f85d 7b04 ldr.w r7, [sp], #4
  33685. 800e790: 4770 bx lr
  33686. 800e792: bf00 nop
  33687. 800e794: 58024400 .word 0x58024400
  33688. 800e798: 03d09000 .word 0x03d09000
  33689. 800e79c: 46000000 .word 0x46000000
  33690. 800e7a0: 4c742400 .word 0x4c742400
  33691. 800e7a4: 4a742400 .word 0x4a742400
  33692. 800e7a8: 4bbebc20 .word 0x4bbebc20
  33693. 0800e7ac <HAL_RCCEx_GetPLL3ClockFreq>:
  33694. * right PLL3CLK value. Otherwise, any configuration based on this function will be incorrect.
  33695. * @param PLL3_Clocks structure.
  33696. * @retval None
  33697. */
  33698. void HAL_RCCEx_GetPLL3ClockFreq(PLL3_ClocksTypeDef *PLL3_Clocks)
  33699. {
  33700. 800e7ac: b480 push {r7}
  33701. 800e7ae: b089 sub sp, #36 @ 0x24
  33702. 800e7b0: af00 add r7, sp, #0
  33703. 800e7b2: 6078 str r0, [r7, #4]
  33704. float_t fracn3, pll3vco;
  33705. /* PLL3_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLL3M) * PLL3N
  33706. PLL3xCLK = PLL3_VCO / PLLxR
  33707. */
  33708. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33709. 800e7b4: 4ba1 ldr r3, [pc, #644] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33710. 800e7b6: 6a9b ldr r3, [r3, #40] @ 0x28
  33711. 800e7b8: f003 0303 and.w r3, r3, #3
  33712. 800e7bc: 61bb str r3, [r7, #24]
  33713. pll3m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM3) >> 20) ;
  33714. 800e7be: 4b9f ldr r3, [pc, #636] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33715. 800e7c0: 6a9b ldr r3, [r3, #40] @ 0x28
  33716. 800e7c2: 0d1b lsrs r3, r3, #20
  33717. 800e7c4: f003 033f and.w r3, r3, #63 @ 0x3f
  33718. 800e7c8: 617b str r3, [r7, #20]
  33719. pll3fracen = (RCC->PLLCFGR & RCC_PLLCFGR_PLL3FRACEN) >> RCC_PLLCFGR_PLL3FRACEN_Pos;
  33720. 800e7ca: 4b9c ldr r3, [pc, #624] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33721. 800e7cc: 6adb ldr r3, [r3, #44] @ 0x2c
  33722. 800e7ce: 0a1b lsrs r3, r3, #8
  33723. 800e7d0: f003 0301 and.w r3, r3, #1
  33724. 800e7d4: 613b str r3, [r7, #16]
  33725. fracn3 = (float_t)(uint32_t)(pll3fracen * ((RCC->PLL3FRACR & RCC_PLL3FRACR_FRACN3) >> 3));
  33726. 800e7d6: 4b99 ldr r3, [pc, #612] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33727. 800e7d8: 6c5b ldr r3, [r3, #68] @ 0x44
  33728. 800e7da: 08db lsrs r3, r3, #3
  33729. 800e7dc: f3c3 030c ubfx r3, r3, #0, #13
  33730. 800e7e0: 693a ldr r2, [r7, #16]
  33731. 800e7e2: fb02 f303 mul.w r3, r2, r3
  33732. 800e7e6: ee07 3a90 vmov s15, r3
  33733. 800e7ea: eef8 7a67 vcvt.f32.u32 s15, s15
  33734. 800e7ee: edc7 7a03 vstr s15, [r7, #12]
  33735. if (pll3m != 0U)
  33736. 800e7f2: 697b ldr r3, [r7, #20]
  33737. 800e7f4: 2b00 cmp r3, #0
  33738. 800e7f6: f000 8111 beq.w 800ea1c <HAL_RCCEx_GetPLL3ClockFreq+0x270>
  33739. {
  33740. switch (pllsource)
  33741. 800e7fa: 69bb ldr r3, [r7, #24]
  33742. 800e7fc: 2b02 cmp r3, #2
  33743. 800e7fe: f000 8083 beq.w 800e908 <HAL_RCCEx_GetPLL3ClockFreq+0x15c>
  33744. 800e802: 69bb ldr r3, [r7, #24]
  33745. 800e804: 2b02 cmp r3, #2
  33746. 800e806: f200 80a1 bhi.w 800e94c <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  33747. 800e80a: 69bb ldr r3, [r7, #24]
  33748. 800e80c: 2b00 cmp r3, #0
  33749. 800e80e: d003 beq.n 800e818 <HAL_RCCEx_GetPLL3ClockFreq+0x6c>
  33750. 800e810: 69bb ldr r3, [r7, #24]
  33751. 800e812: 2b01 cmp r3, #1
  33752. 800e814: d056 beq.n 800e8c4 <HAL_RCCEx_GetPLL3ClockFreq+0x118>
  33753. 800e816: e099 b.n 800e94c <HAL_RCCEx_GetPLL3ClockFreq+0x1a0>
  33754. {
  33755. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  33756. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  33757. 800e818: 4b88 ldr r3, [pc, #544] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33758. 800e81a: 681b ldr r3, [r3, #0]
  33759. 800e81c: f003 0320 and.w r3, r3, #32
  33760. 800e820: 2b00 cmp r3, #0
  33761. 800e822: d02d beq.n 800e880 <HAL_RCCEx_GetPLL3ClockFreq+0xd4>
  33762. {
  33763. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  33764. 800e824: 4b85 ldr r3, [pc, #532] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33765. 800e826: 681b ldr r3, [r3, #0]
  33766. 800e828: 08db lsrs r3, r3, #3
  33767. 800e82a: f003 0303 and.w r3, r3, #3
  33768. 800e82e: 4a84 ldr r2, [pc, #528] @ (800ea40 <HAL_RCCEx_GetPLL3ClockFreq+0x294>)
  33769. 800e830: fa22 f303 lsr.w r3, r2, r3
  33770. 800e834: 60bb str r3, [r7, #8]
  33771. pll3vco = ((float_t)hsivalue / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33772. 800e836: 68bb ldr r3, [r7, #8]
  33773. 800e838: ee07 3a90 vmov s15, r3
  33774. 800e83c: eef8 6a67 vcvt.f32.u32 s13, s15
  33775. 800e840: 697b ldr r3, [r7, #20]
  33776. 800e842: ee07 3a90 vmov s15, r3
  33777. 800e846: eef8 7a67 vcvt.f32.u32 s15, s15
  33778. 800e84a: ee86 7aa7 vdiv.f32 s14, s13, s15
  33779. 800e84e: 4b7b ldr r3, [pc, #492] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33780. 800e850: 6c1b ldr r3, [r3, #64] @ 0x40
  33781. 800e852: f3c3 0308 ubfx r3, r3, #0, #9
  33782. 800e856: ee07 3a90 vmov s15, r3
  33783. 800e85a: eef8 6a67 vcvt.f32.u32 s13, s15
  33784. 800e85e: ed97 6a03 vldr s12, [r7, #12]
  33785. 800e862: eddf 5a78 vldr s11, [pc, #480] @ 800ea44 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33786. 800e866: eec6 7a25 vdiv.f32 s15, s12, s11
  33787. 800e86a: ee76 7aa7 vadd.f32 s15, s13, s15
  33788. 800e86e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33789. 800e872: ee77 7aa6 vadd.f32 s15, s15, s13
  33790. 800e876: ee67 7a27 vmul.f32 s15, s14, s15
  33791. 800e87a: edc7 7a07 vstr s15, [r7, #28]
  33792. }
  33793. else
  33794. {
  33795. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33796. }
  33797. break;
  33798. 800e87e: e087 b.n 800e990 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33799. pll3vco = ((float_t)HSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33800. 800e880: 697b ldr r3, [r7, #20]
  33801. 800e882: ee07 3a90 vmov s15, r3
  33802. 800e886: eef8 7a67 vcvt.f32.u32 s15, s15
  33803. 800e88a: eddf 6a6f vldr s13, [pc, #444] @ 800ea48 <HAL_RCCEx_GetPLL3ClockFreq+0x29c>
  33804. 800e88e: ee86 7aa7 vdiv.f32 s14, s13, s15
  33805. 800e892: 4b6a ldr r3, [pc, #424] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33806. 800e894: 6c1b ldr r3, [r3, #64] @ 0x40
  33807. 800e896: f3c3 0308 ubfx r3, r3, #0, #9
  33808. 800e89a: ee07 3a90 vmov s15, r3
  33809. 800e89e: eef8 6a67 vcvt.f32.u32 s13, s15
  33810. 800e8a2: ed97 6a03 vldr s12, [r7, #12]
  33811. 800e8a6: eddf 5a67 vldr s11, [pc, #412] @ 800ea44 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33812. 800e8aa: eec6 7a25 vdiv.f32 s15, s12, s11
  33813. 800e8ae: ee76 7aa7 vadd.f32 s15, s13, s15
  33814. 800e8b2: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33815. 800e8b6: ee77 7aa6 vadd.f32 s15, s15, s13
  33816. 800e8ba: ee67 7a27 vmul.f32 s15, s14, s15
  33817. 800e8be: edc7 7a07 vstr s15, [r7, #28]
  33818. break;
  33819. 800e8c2: e065 b.n 800e990 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33820. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  33821. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33822. 800e8c4: 697b ldr r3, [r7, #20]
  33823. 800e8c6: ee07 3a90 vmov s15, r3
  33824. 800e8ca: eef8 7a67 vcvt.f32.u32 s15, s15
  33825. 800e8ce: eddf 6a5f vldr s13, [pc, #380] @ 800ea4c <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  33826. 800e8d2: ee86 7aa7 vdiv.f32 s14, s13, s15
  33827. 800e8d6: 4b59 ldr r3, [pc, #356] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33828. 800e8d8: 6c1b ldr r3, [r3, #64] @ 0x40
  33829. 800e8da: f3c3 0308 ubfx r3, r3, #0, #9
  33830. 800e8de: ee07 3a90 vmov s15, r3
  33831. 800e8e2: eef8 6a67 vcvt.f32.u32 s13, s15
  33832. 800e8e6: ed97 6a03 vldr s12, [r7, #12]
  33833. 800e8ea: eddf 5a56 vldr s11, [pc, #344] @ 800ea44 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33834. 800e8ee: eec6 7a25 vdiv.f32 s15, s12, s11
  33835. 800e8f2: ee76 7aa7 vadd.f32 s15, s13, s15
  33836. 800e8f6: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33837. 800e8fa: ee77 7aa6 vadd.f32 s15, s15, s13
  33838. 800e8fe: ee67 7a27 vmul.f32 s15, s14, s15
  33839. 800e902: edc7 7a07 vstr s15, [r7, #28]
  33840. break;
  33841. 800e906: e043 b.n 800e990 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33842. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  33843. pll3vco = ((float_t)HSE_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33844. 800e908: 697b ldr r3, [r7, #20]
  33845. 800e90a: ee07 3a90 vmov s15, r3
  33846. 800e90e: eef8 7a67 vcvt.f32.u32 s15, s15
  33847. 800e912: eddf 6a4f vldr s13, [pc, #316] @ 800ea50 <HAL_RCCEx_GetPLL3ClockFreq+0x2a4>
  33848. 800e916: ee86 7aa7 vdiv.f32 s14, s13, s15
  33849. 800e91a: 4b48 ldr r3, [pc, #288] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33850. 800e91c: 6c1b ldr r3, [r3, #64] @ 0x40
  33851. 800e91e: f3c3 0308 ubfx r3, r3, #0, #9
  33852. 800e922: ee07 3a90 vmov s15, r3
  33853. 800e926: eef8 6a67 vcvt.f32.u32 s13, s15
  33854. 800e92a: ed97 6a03 vldr s12, [r7, #12]
  33855. 800e92e: eddf 5a45 vldr s11, [pc, #276] @ 800ea44 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33856. 800e932: eec6 7a25 vdiv.f32 s15, s12, s11
  33857. 800e936: ee76 7aa7 vadd.f32 s15, s13, s15
  33858. 800e93a: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33859. 800e93e: ee77 7aa6 vadd.f32 s15, s15, s13
  33860. 800e942: ee67 7a27 vmul.f32 s15, s14, s15
  33861. 800e946: edc7 7a07 vstr s15, [r7, #28]
  33862. break;
  33863. 800e94a: e021 b.n 800e990 <HAL_RCCEx_GetPLL3ClockFreq+0x1e4>
  33864. default:
  33865. pll3vco = ((float_t)CSI_VALUE / (float_t)pll3m) * ((float_t)(uint32_t)(RCC->PLL3DIVR & RCC_PLL3DIVR_N3) + (fracn3 / (float_t)0x2000) + (float_t)1);
  33866. 800e94c: 697b ldr r3, [r7, #20]
  33867. 800e94e: ee07 3a90 vmov s15, r3
  33868. 800e952: eef8 7a67 vcvt.f32.u32 s15, s15
  33869. 800e956: eddf 6a3d vldr s13, [pc, #244] @ 800ea4c <HAL_RCCEx_GetPLL3ClockFreq+0x2a0>
  33870. 800e95a: ee86 7aa7 vdiv.f32 s14, s13, s15
  33871. 800e95e: 4b37 ldr r3, [pc, #220] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33872. 800e960: 6c1b ldr r3, [r3, #64] @ 0x40
  33873. 800e962: f3c3 0308 ubfx r3, r3, #0, #9
  33874. 800e966: ee07 3a90 vmov s15, r3
  33875. 800e96a: eef8 6a67 vcvt.f32.u32 s13, s15
  33876. 800e96e: ed97 6a03 vldr s12, [r7, #12]
  33877. 800e972: eddf 5a34 vldr s11, [pc, #208] @ 800ea44 <HAL_RCCEx_GetPLL3ClockFreq+0x298>
  33878. 800e976: eec6 7a25 vdiv.f32 s15, s12, s11
  33879. 800e97a: ee76 7aa7 vadd.f32 s15, s13, s15
  33880. 800e97e: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  33881. 800e982: ee77 7aa6 vadd.f32 s15, s15, s13
  33882. 800e986: ee67 7a27 vmul.f32 s15, s14, s15
  33883. 800e98a: edc7 7a07 vstr s15, [r7, #28]
  33884. break;
  33885. 800e98e: bf00 nop
  33886. }
  33887. PLL3_Clocks->PLL3_P_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_P3) >> 9) + (float_t)1)) ;
  33888. 800e990: 4b2a ldr r3, [pc, #168] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33889. 800e992: 6c1b ldr r3, [r3, #64] @ 0x40
  33890. 800e994: 0a5b lsrs r3, r3, #9
  33891. 800e996: f003 037f and.w r3, r3, #127 @ 0x7f
  33892. 800e99a: ee07 3a90 vmov s15, r3
  33893. 800e99e: eef8 7a67 vcvt.f32.u32 s15, s15
  33894. 800e9a2: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33895. 800e9a6: ee37 7a87 vadd.f32 s14, s15, s14
  33896. 800e9aa: edd7 6a07 vldr s13, [r7, #28]
  33897. 800e9ae: eec6 7a87 vdiv.f32 s15, s13, s14
  33898. 800e9b2: eefc 7ae7 vcvt.u32.f32 s15, s15
  33899. 800e9b6: ee17 2a90 vmov r2, s15
  33900. 800e9ba: 687b ldr r3, [r7, #4]
  33901. 800e9bc: 601a str r2, [r3, #0]
  33902. PLL3_Clocks->PLL3_Q_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_Q3) >> 16) + (float_t)1)) ;
  33903. 800e9be: 4b1f ldr r3, [pc, #124] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33904. 800e9c0: 6c1b ldr r3, [r3, #64] @ 0x40
  33905. 800e9c2: 0c1b lsrs r3, r3, #16
  33906. 800e9c4: f003 037f and.w r3, r3, #127 @ 0x7f
  33907. 800e9c8: ee07 3a90 vmov s15, r3
  33908. 800e9cc: eef8 7a67 vcvt.f32.u32 s15, s15
  33909. 800e9d0: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33910. 800e9d4: ee37 7a87 vadd.f32 s14, s15, s14
  33911. 800e9d8: edd7 6a07 vldr s13, [r7, #28]
  33912. 800e9dc: eec6 7a87 vdiv.f32 s15, s13, s14
  33913. 800e9e0: eefc 7ae7 vcvt.u32.f32 s15, s15
  33914. 800e9e4: ee17 2a90 vmov r2, s15
  33915. 800e9e8: 687b ldr r3, [r7, #4]
  33916. 800e9ea: 605a str r2, [r3, #4]
  33917. PLL3_Clocks->PLL3_R_Frequency = (uint32_t)(float_t)(pll3vco / ((float_t)(uint32_t)((RCC->PLL3DIVR & RCC_PLL3DIVR_R3) >> 24) + (float_t)1)) ;
  33918. 800e9ec: 4b13 ldr r3, [pc, #76] @ (800ea3c <HAL_RCCEx_GetPLL3ClockFreq+0x290>)
  33919. 800e9ee: 6c1b ldr r3, [r3, #64] @ 0x40
  33920. 800e9f0: 0e1b lsrs r3, r3, #24
  33921. 800e9f2: f003 037f and.w r3, r3, #127 @ 0x7f
  33922. 800e9f6: ee07 3a90 vmov s15, r3
  33923. 800e9fa: eef8 7a67 vcvt.f32.u32 s15, s15
  33924. 800e9fe: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  33925. 800ea02: ee37 7a87 vadd.f32 s14, s15, s14
  33926. 800ea06: edd7 6a07 vldr s13, [r7, #28]
  33927. 800ea0a: eec6 7a87 vdiv.f32 s15, s13, s14
  33928. 800ea0e: eefc 7ae7 vcvt.u32.f32 s15, s15
  33929. 800ea12: ee17 2a90 vmov r2, s15
  33930. 800ea16: 687b ldr r3, [r7, #4]
  33931. 800ea18: 609a str r2, [r3, #8]
  33932. PLL3_Clocks->PLL3_P_Frequency = 0U;
  33933. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  33934. PLL3_Clocks->PLL3_R_Frequency = 0U;
  33935. }
  33936. }
  33937. 800ea1a: e008 b.n 800ea2e <HAL_RCCEx_GetPLL3ClockFreq+0x282>
  33938. PLL3_Clocks->PLL3_P_Frequency = 0U;
  33939. 800ea1c: 687b ldr r3, [r7, #4]
  33940. 800ea1e: 2200 movs r2, #0
  33941. 800ea20: 601a str r2, [r3, #0]
  33942. PLL3_Clocks->PLL3_Q_Frequency = 0U;
  33943. 800ea22: 687b ldr r3, [r7, #4]
  33944. 800ea24: 2200 movs r2, #0
  33945. 800ea26: 605a str r2, [r3, #4]
  33946. PLL3_Clocks->PLL3_R_Frequency = 0U;
  33947. 800ea28: 687b ldr r3, [r7, #4]
  33948. 800ea2a: 2200 movs r2, #0
  33949. 800ea2c: 609a str r2, [r3, #8]
  33950. }
  33951. 800ea2e: bf00 nop
  33952. 800ea30: 3724 adds r7, #36 @ 0x24
  33953. 800ea32: 46bd mov sp, r7
  33954. 800ea34: f85d 7b04 ldr.w r7, [sp], #4
  33955. 800ea38: 4770 bx lr
  33956. 800ea3a: bf00 nop
  33957. 800ea3c: 58024400 .word 0x58024400
  33958. 800ea40: 03d09000 .word 0x03d09000
  33959. 800ea44: 46000000 .word 0x46000000
  33960. 800ea48: 4c742400 .word 0x4c742400
  33961. 800ea4c: 4a742400 .word 0x4a742400
  33962. 800ea50: 4bbebc20 .word 0x4bbebc20
  33963. 0800ea54 <HAL_RCCEx_GetPLL1ClockFreq>:
  33964. * right PLL1CLK value. Otherwise, any configuration based on this function will be incorrect.
  33965. * @param PLL1_Clocks structure.
  33966. * @retval None
  33967. */
  33968. void HAL_RCCEx_GetPLL1ClockFreq(PLL1_ClocksTypeDef *PLL1_Clocks)
  33969. {
  33970. 800ea54: b480 push {r7}
  33971. 800ea56: b089 sub sp, #36 @ 0x24
  33972. 800ea58: af00 add r7, sp, #0
  33973. 800ea5a: 6078 str r0, [r7, #4]
  33974. uint32_t pllsource, pll1m, pll1fracen, hsivalue;
  33975. float_t fracn1, pll1vco;
  33976. pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
  33977. 800ea5c: 4ba0 ldr r3, [pc, #640] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33978. 800ea5e: 6a9b ldr r3, [r3, #40] @ 0x28
  33979. 800ea60: f003 0303 and.w r3, r3, #3
  33980. 800ea64: 61bb str r3, [r7, #24]
  33981. pll1m = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1) >> 4);
  33982. 800ea66: 4b9e ldr r3, [pc, #632] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33983. 800ea68: 6a9b ldr r3, [r3, #40] @ 0x28
  33984. 800ea6a: 091b lsrs r3, r3, #4
  33985. 800ea6c: f003 033f and.w r3, r3, #63 @ 0x3f
  33986. 800ea70: 617b str r3, [r7, #20]
  33987. pll1fracen = RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN;
  33988. 800ea72: 4b9b ldr r3, [pc, #620] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33989. 800ea74: 6adb ldr r3, [r3, #44] @ 0x2c
  33990. 800ea76: f003 0301 and.w r3, r3, #1
  33991. 800ea7a: 613b str r3, [r7, #16]
  33992. fracn1 = (float_t)(uint32_t)(pll1fracen * ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1) >> 3));
  33993. 800ea7c: 4b98 ldr r3, [pc, #608] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  33994. 800ea7e: 6b5b ldr r3, [r3, #52] @ 0x34
  33995. 800ea80: 08db lsrs r3, r3, #3
  33996. 800ea82: f3c3 030c ubfx r3, r3, #0, #13
  33997. 800ea86: 693a ldr r2, [r7, #16]
  33998. 800ea88: fb02 f303 mul.w r3, r2, r3
  33999. 800ea8c: ee07 3a90 vmov s15, r3
  34000. 800ea90: eef8 7a67 vcvt.f32.u32 s15, s15
  34001. 800ea94: edc7 7a03 vstr s15, [r7, #12]
  34002. if (pll1m != 0U)
  34003. 800ea98: 697b ldr r3, [r7, #20]
  34004. 800ea9a: 2b00 cmp r3, #0
  34005. 800ea9c: f000 8111 beq.w 800ecc2 <HAL_RCCEx_GetPLL1ClockFreq+0x26e>
  34006. {
  34007. switch (pllsource)
  34008. 800eaa0: 69bb ldr r3, [r7, #24]
  34009. 800eaa2: 2b02 cmp r3, #2
  34010. 800eaa4: f000 8083 beq.w 800ebae <HAL_RCCEx_GetPLL1ClockFreq+0x15a>
  34011. 800eaa8: 69bb ldr r3, [r7, #24]
  34012. 800eaaa: 2b02 cmp r3, #2
  34013. 800eaac: f200 80a1 bhi.w 800ebf2 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34014. 800eab0: 69bb ldr r3, [r7, #24]
  34015. 800eab2: 2b00 cmp r3, #0
  34016. 800eab4: d003 beq.n 800eabe <HAL_RCCEx_GetPLL1ClockFreq+0x6a>
  34017. 800eab6: 69bb ldr r3, [r7, #24]
  34018. 800eab8: 2b01 cmp r3, #1
  34019. 800eaba: d056 beq.n 800eb6a <HAL_RCCEx_GetPLL1ClockFreq+0x116>
  34020. 800eabc: e099 b.n 800ebf2 <HAL_RCCEx_GetPLL1ClockFreq+0x19e>
  34021. {
  34022. case RCC_PLLSOURCE_HSI: /* HSI used as PLL clock source */
  34023. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  34024. 800eabe: 4b88 ldr r3, [pc, #544] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34025. 800eac0: 681b ldr r3, [r3, #0]
  34026. 800eac2: f003 0320 and.w r3, r3, #32
  34027. 800eac6: 2b00 cmp r3, #0
  34028. 800eac8: d02d beq.n 800eb26 <HAL_RCCEx_GetPLL1ClockFreq+0xd2>
  34029. {
  34030. hsivalue = (HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3));
  34031. 800eaca: 4b85 ldr r3, [pc, #532] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34032. 800eacc: 681b ldr r3, [r3, #0]
  34033. 800eace: 08db lsrs r3, r3, #3
  34034. 800ead0: f003 0303 and.w r3, r3, #3
  34035. 800ead4: 4a83 ldr r2, [pc, #524] @ (800ece4 <HAL_RCCEx_GetPLL1ClockFreq+0x290>)
  34036. 800ead6: fa22 f303 lsr.w r3, r2, r3
  34037. 800eada: 60bb str r3, [r7, #8]
  34038. pll1vco = ((float_t)hsivalue / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34039. 800eadc: 68bb ldr r3, [r7, #8]
  34040. 800eade: ee07 3a90 vmov s15, r3
  34041. 800eae2: eef8 6a67 vcvt.f32.u32 s13, s15
  34042. 800eae6: 697b ldr r3, [r7, #20]
  34043. 800eae8: ee07 3a90 vmov s15, r3
  34044. 800eaec: eef8 7a67 vcvt.f32.u32 s15, s15
  34045. 800eaf0: ee86 7aa7 vdiv.f32 s14, s13, s15
  34046. 800eaf4: 4b7a ldr r3, [pc, #488] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34047. 800eaf6: 6b1b ldr r3, [r3, #48] @ 0x30
  34048. 800eaf8: f3c3 0308 ubfx r3, r3, #0, #9
  34049. 800eafc: ee07 3a90 vmov s15, r3
  34050. 800eb00: eef8 6a67 vcvt.f32.u32 s13, s15
  34051. 800eb04: ed97 6a03 vldr s12, [r7, #12]
  34052. 800eb08: eddf 5a77 vldr s11, [pc, #476] @ 800ece8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34053. 800eb0c: eec6 7a25 vdiv.f32 s15, s12, s11
  34054. 800eb10: ee76 7aa7 vadd.f32 s15, s13, s15
  34055. 800eb14: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34056. 800eb18: ee77 7aa6 vadd.f32 s15, s15, s13
  34057. 800eb1c: ee67 7a27 vmul.f32 s15, s14, s15
  34058. 800eb20: edc7 7a07 vstr s15, [r7, #28]
  34059. }
  34060. else
  34061. {
  34062. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34063. }
  34064. break;
  34065. 800eb24: e087 b.n 800ec36 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34066. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34067. 800eb26: 697b ldr r3, [r7, #20]
  34068. 800eb28: ee07 3a90 vmov s15, r3
  34069. 800eb2c: eef8 7a67 vcvt.f32.u32 s15, s15
  34070. 800eb30: eddf 6a6e vldr s13, [pc, #440] @ 800ecec <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34071. 800eb34: ee86 7aa7 vdiv.f32 s14, s13, s15
  34072. 800eb38: 4b69 ldr r3, [pc, #420] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34073. 800eb3a: 6b1b ldr r3, [r3, #48] @ 0x30
  34074. 800eb3c: f3c3 0308 ubfx r3, r3, #0, #9
  34075. 800eb40: ee07 3a90 vmov s15, r3
  34076. 800eb44: eef8 6a67 vcvt.f32.u32 s13, s15
  34077. 800eb48: ed97 6a03 vldr s12, [r7, #12]
  34078. 800eb4c: eddf 5a66 vldr s11, [pc, #408] @ 800ece8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34079. 800eb50: eec6 7a25 vdiv.f32 s15, s12, s11
  34080. 800eb54: ee76 7aa7 vadd.f32 s15, s13, s15
  34081. 800eb58: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34082. 800eb5c: ee77 7aa6 vadd.f32 s15, s15, s13
  34083. 800eb60: ee67 7a27 vmul.f32 s15, s14, s15
  34084. 800eb64: edc7 7a07 vstr s15, [r7, #28]
  34085. break;
  34086. 800eb68: e065 b.n 800ec36 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34087. case RCC_PLLSOURCE_CSI: /* CSI used as PLL clock source */
  34088. pll1vco = ((float_t)CSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34089. 800eb6a: 697b ldr r3, [r7, #20]
  34090. 800eb6c: ee07 3a90 vmov s15, r3
  34091. 800eb70: eef8 7a67 vcvt.f32.u32 s15, s15
  34092. 800eb74: eddf 6a5e vldr s13, [pc, #376] @ 800ecf0 <HAL_RCCEx_GetPLL1ClockFreq+0x29c>
  34093. 800eb78: ee86 7aa7 vdiv.f32 s14, s13, s15
  34094. 800eb7c: 4b58 ldr r3, [pc, #352] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34095. 800eb7e: 6b1b ldr r3, [r3, #48] @ 0x30
  34096. 800eb80: f3c3 0308 ubfx r3, r3, #0, #9
  34097. 800eb84: ee07 3a90 vmov s15, r3
  34098. 800eb88: eef8 6a67 vcvt.f32.u32 s13, s15
  34099. 800eb8c: ed97 6a03 vldr s12, [r7, #12]
  34100. 800eb90: eddf 5a55 vldr s11, [pc, #340] @ 800ece8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34101. 800eb94: eec6 7a25 vdiv.f32 s15, s12, s11
  34102. 800eb98: ee76 7aa7 vadd.f32 s15, s13, s15
  34103. 800eb9c: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34104. 800eba0: ee77 7aa6 vadd.f32 s15, s15, s13
  34105. 800eba4: ee67 7a27 vmul.f32 s15, s14, s15
  34106. 800eba8: edc7 7a07 vstr s15, [r7, #28]
  34107. break;
  34108. 800ebac: e043 b.n 800ec36 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34109. case RCC_PLLSOURCE_HSE: /* HSE used as PLL clock source */
  34110. pll1vco = ((float_t)HSE_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34111. 800ebae: 697b ldr r3, [r7, #20]
  34112. 800ebb0: ee07 3a90 vmov s15, r3
  34113. 800ebb4: eef8 7a67 vcvt.f32.u32 s15, s15
  34114. 800ebb8: eddf 6a4e vldr s13, [pc, #312] @ 800ecf4 <HAL_RCCEx_GetPLL1ClockFreq+0x2a0>
  34115. 800ebbc: ee86 7aa7 vdiv.f32 s14, s13, s15
  34116. 800ebc0: 4b47 ldr r3, [pc, #284] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34117. 800ebc2: 6b1b ldr r3, [r3, #48] @ 0x30
  34118. 800ebc4: f3c3 0308 ubfx r3, r3, #0, #9
  34119. 800ebc8: ee07 3a90 vmov s15, r3
  34120. 800ebcc: eef8 6a67 vcvt.f32.u32 s13, s15
  34121. 800ebd0: ed97 6a03 vldr s12, [r7, #12]
  34122. 800ebd4: eddf 5a44 vldr s11, [pc, #272] @ 800ece8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34123. 800ebd8: eec6 7a25 vdiv.f32 s15, s12, s11
  34124. 800ebdc: ee76 7aa7 vadd.f32 s15, s13, s15
  34125. 800ebe0: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34126. 800ebe4: ee77 7aa6 vadd.f32 s15, s15, s13
  34127. 800ebe8: ee67 7a27 vmul.f32 s15, s14, s15
  34128. 800ebec: edc7 7a07 vstr s15, [r7, #28]
  34129. break;
  34130. 800ebf0: e021 b.n 800ec36 <HAL_RCCEx_GetPLL1ClockFreq+0x1e2>
  34131. default:
  34132. pll1vco = ((float_t)HSI_VALUE / (float_t)pll1m) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1 / (float_t)0x2000) + (float_t)1);
  34133. 800ebf2: 697b ldr r3, [r7, #20]
  34134. 800ebf4: ee07 3a90 vmov s15, r3
  34135. 800ebf8: eef8 7a67 vcvt.f32.u32 s15, s15
  34136. 800ebfc: eddf 6a3b vldr s13, [pc, #236] @ 800ecec <HAL_RCCEx_GetPLL1ClockFreq+0x298>
  34137. 800ec00: ee86 7aa7 vdiv.f32 s14, s13, s15
  34138. 800ec04: 4b36 ldr r3, [pc, #216] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34139. 800ec06: 6b1b ldr r3, [r3, #48] @ 0x30
  34140. 800ec08: f3c3 0308 ubfx r3, r3, #0, #9
  34141. 800ec0c: ee07 3a90 vmov s15, r3
  34142. 800ec10: eef8 6a67 vcvt.f32.u32 s13, s15
  34143. 800ec14: ed97 6a03 vldr s12, [r7, #12]
  34144. 800ec18: eddf 5a33 vldr s11, [pc, #204] @ 800ece8 <HAL_RCCEx_GetPLL1ClockFreq+0x294>
  34145. 800ec1c: eec6 7a25 vdiv.f32 s15, s12, s11
  34146. 800ec20: ee76 7aa7 vadd.f32 s15, s13, s15
  34147. 800ec24: eef7 6a00 vmov.f32 s13, #112 @ 0x3f800000 1.0
  34148. 800ec28: ee77 7aa6 vadd.f32 s15, s15, s13
  34149. 800ec2c: ee67 7a27 vmul.f32 s15, s14, s15
  34150. 800ec30: edc7 7a07 vstr s15, [r7, #28]
  34151. break;
  34152. 800ec34: bf00 nop
  34153. }
  34154. PLL1_Clocks->PLL1_P_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >> 9) + (float_t)1)) ;
  34155. 800ec36: 4b2a ldr r3, [pc, #168] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34156. 800ec38: 6b1b ldr r3, [r3, #48] @ 0x30
  34157. 800ec3a: 0a5b lsrs r3, r3, #9
  34158. 800ec3c: f003 037f and.w r3, r3, #127 @ 0x7f
  34159. 800ec40: ee07 3a90 vmov s15, r3
  34160. 800ec44: eef8 7a67 vcvt.f32.u32 s15, s15
  34161. 800ec48: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34162. 800ec4c: ee37 7a87 vadd.f32 s14, s15, s14
  34163. 800ec50: edd7 6a07 vldr s13, [r7, #28]
  34164. 800ec54: eec6 7a87 vdiv.f32 s15, s13, s14
  34165. 800ec58: eefc 7ae7 vcvt.u32.f32 s15, s15
  34166. 800ec5c: ee17 2a90 vmov r2, s15
  34167. 800ec60: 687b ldr r3, [r7, #4]
  34168. 800ec62: 601a str r2, [r3, #0]
  34169. PLL1_Clocks->PLL1_Q_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_Q1) >> 16) + (float_t)1)) ;
  34170. 800ec64: 4b1e ldr r3, [pc, #120] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34171. 800ec66: 6b1b ldr r3, [r3, #48] @ 0x30
  34172. 800ec68: 0c1b lsrs r3, r3, #16
  34173. 800ec6a: f003 037f and.w r3, r3, #127 @ 0x7f
  34174. 800ec6e: ee07 3a90 vmov s15, r3
  34175. 800ec72: eef8 7a67 vcvt.f32.u32 s15, s15
  34176. 800ec76: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34177. 800ec7a: ee37 7a87 vadd.f32 s14, s15, s14
  34178. 800ec7e: edd7 6a07 vldr s13, [r7, #28]
  34179. 800ec82: eec6 7a87 vdiv.f32 s15, s13, s14
  34180. 800ec86: eefc 7ae7 vcvt.u32.f32 s15, s15
  34181. 800ec8a: ee17 2a90 vmov r2, s15
  34182. 800ec8e: 687b ldr r3, [r7, #4]
  34183. 800ec90: 605a str r2, [r3, #4]
  34184. PLL1_Clocks->PLL1_R_Frequency = (uint32_t)(float_t)(pll1vco / ((float_t)(uint32_t)((RCC->PLL1DIVR & RCC_PLL1DIVR_R1) >> 24) + (float_t)1)) ;
  34185. 800ec92: 4b13 ldr r3, [pc, #76] @ (800ece0 <HAL_RCCEx_GetPLL1ClockFreq+0x28c>)
  34186. 800ec94: 6b1b ldr r3, [r3, #48] @ 0x30
  34187. 800ec96: 0e1b lsrs r3, r3, #24
  34188. 800ec98: f003 037f and.w r3, r3, #127 @ 0x7f
  34189. 800ec9c: ee07 3a90 vmov s15, r3
  34190. 800eca0: eef8 7a67 vcvt.f32.u32 s15, s15
  34191. 800eca4: eeb7 7a00 vmov.f32 s14, #112 @ 0x3f800000 1.0
  34192. 800eca8: ee37 7a87 vadd.f32 s14, s15, s14
  34193. 800ecac: edd7 6a07 vldr s13, [r7, #28]
  34194. 800ecb0: eec6 7a87 vdiv.f32 s15, s13, s14
  34195. 800ecb4: eefc 7ae7 vcvt.u32.f32 s15, s15
  34196. 800ecb8: ee17 2a90 vmov r2, s15
  34197. 800ecbc: 687b ldr r3, [r7, #4]
  34198. 800ecbe: 609a str r2, [r3, #8]
  34199. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34200. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34201. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34202. }
  34203. }
  34204. 800ecc0: e008 b.n 800ecd4 <HAL_RCCEx_GetPLL1ClockFreq+0x280>
  34205. PLL1_Clocks->PLL1_P_Frequency = 0U;
  34206. 800ecc2: 687b ldr r3, [r7, #4]
  34207. 800ecc4: 2200 movs r2, #0
  34208. 800ecc6: 601a str r2, [r3, #0]
  34209. PLL1_Clocks->PLL1_Q_Frequency = 0U;
  34210. 800ecc8: 687b ldr r3, [r7, #4]
  34211. 800ecca: 2200 movs r2, #0
  34212. 800eccc: 605a str r2, [r3, #4]
  34213. PLL1_Clocks->PLL1_R_Frequency = 0U;
  34214. 800ecce: 687b ldr r3, [r7, #4]
  34215. 800ecd0: 2200 movs r2, #0
  34216. 800ecd2: 609a str r2, [r3, #8]
  34217. }
  34218. 800ecd4: bf00 nop
  34219. 800ecd6: 3724 adds r7, #36 @ 0x24
  34220. 800ecd8: 46bd mov sp, r7
  34221. 800ecda: f85d 7b04 ldr.w r7, [sp], #4
  34222. 800ecde: 4770 bx lr
  34223. 800ece0: 58024400 .word 0x58024400
  34224. 800ece4: 03d09000 .word 0x03d09000
  34225. 800ece8: 46000000 .word 0x46000000
  34226. 800ecec: 4c742400 .word 0x4c742400
  34227. 800ecf0: 4a742400 .word 0x4a742400
  34228. 800ecf4: 4bbebc20 .word 0x4bbebc20
  34229. 0800ecf8 <RCCEx_PLL2_Config>:
  34230. * @note PLL2 is temporary disabled to apply new parameters
  34231. *
  34232. * @retval HAL status
  34233. */
  34234. static HAL_StatusTypeDef RCCEx_PLL2_Config(RCC_PLL2InitTypeDef *pll2, uint32_t Divider)
  34235. {
  34236. 800ecf8: b580 push {r7, lr}
  34237. 800ecfa: b084 sub sp, #16
  34238. 800ecfc: af00 add r7, sp, #0
  34239. 800ecfe: 6078 str r0, [r7, #4]
  34240. 800ed00: 6039 str r1, [r7, #0]
  34241. uint32_t tickstart;
  34242. HAL_StatusTypeDef status = HAL_OK;
  34243. 800ed02: 2300 movs r3, #0
  34244. 800ed04: 73fb strb r3, [r7, #15]
  34245. assert_param(IS_RCC_PLL2RGE_VALUE(pll2->PLL2RGE));
  34246. assert_param(IS_RCC_PLL2VCO_VALUE(pll2->PLL2VCOSEL));
  34247. assert_param(IS_RCC_PLLFRACN_VALUE(pll2->PLL2FRACN));
  34248. /* Check that PLL2 OSC clock source is already set */
  34249. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34250. 800ed06: 4b53 ldr r3, [pc, #332] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34251. 800ed08: 6a9b ldr r3, [r3, #40] @ 0x28
  34252. 800ed0a: f003 0303 and.w r3, r3, #3
  34253. 800ed0e: 2b03 cmp r3, #3
  34254. 800ed10: d101 bne.n 800ed16 <RCCEx_PLL2_Config+0x1e>
  34255. {
  34256. return HAL_ERROR;
  34257. 800ed12: 2301 movs r3, #1
  34258. 800ed14: e099 b.n 800ee4a <RCCEx_PLL2_Config+0x152>
  34259. else
  34260. {
  34261. /* Disable PLL2. */
  34262. __HAL_RCC_PLL2_DISABLE();
  34263. 800ed16: 4b4f ldr r3, [pc, #316] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34264. 800ed18: 681b ldr r3, [r3, #0]
  34265. 800ed1a: 4a4e ldr r2, [pc, #312] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34266. 800ed1c: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  34267. 800ed20: 6013 str r3, [r2, #0]
  34268. /* Get Start Tick*/
  34269. tickstart = HAL_GetTick();
  34270. 800ed22: f7f6 fdbb bl 800589c <HAL_GetTick>
  34271. 800ed26: 60b8 str r0, [r7, #8]
  34272. /* Wait till PLL is disabled */
  34273. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34274. 800ed28: e008 b.n 800ed3c <RCCEx_PLL2_Config+0x44>
  34275. {
  34276. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34277. 800ed2a: f7f6 fdb7 bl 800589c <HAL_GetTick>
  34278. 800ed2e: 4602 mov r2, r0
  34279. 800ed30: 68bb ldr r3, [r7, #8]
  34280. 800ed32: 1ad3 subs r3, r2, r3
  34281. 800ed34: 2b02 cmp r3, #2
  34282. 800ed36: d901 bls.n 800ed3c <RCCEx_PLL2_Config+0x44>
  34283. {
  34284. return HAL_TIMEOUT;
  34285. 800ed38: 2303 movs r3, #3
  34286. 800ed3a: e086 b.n 800ee4a <RCCEx_PLL2_Config+0x152>
  34287. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) != 0U)
  34288. 800ed3c: 4b45 ldr r3, [pc, #276] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34289. 800ed3e: 681b ldr r3, [r3, #0]
  34290. 800ed40: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34291. 800ed44: 2b00 cmp r3, #0
  34292. 800ed46: d1f0 bne.n 800ed2a <RCCEx_PLL2_Config+0x32>
  34293. }
  34294. }
  34295. /* Configure PLL2 multiplication and division factors. */
  34296. __HAL_RCC_PLL2_CONFIG(pll2->PLL2M,
  34297. 800ed48: 4b42 ldr r3, [pc, #264] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34298. 800ed4a: 6a9b ldr r3, [r3, #40] @ 0x28
  34299. 800ed4c: f423 327c bic.w r2, r3, #258048 @ 0x3f000
  34300. 800ed50: 687b ldr r3, [r7, #4]
  34301. 800ed52: 681b ldr r3, [r3, #0]
  34302. 800ed54: 031b lsls r3, r3, #12
  34303. 800ed56: 493f ldr r1, [pc, #252] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34304. 800ed58: 4313 orrs r3, r2
  34305. 800ed5a: 628b str r3, [r1, #40] @ 0x28
  34306. 800ed5c: 687b ldr r3, [r7, #4]
  34307. 800ed5e: 685b ldr r3, [r3, #4]
  34308. 800ed60: 3b01 subs r3, #1
  34309. 800ed62: f3c3 0208 ubfx r2, r3, #0, #9
  34310. 800ed66: 687b ldr r3, [r7, #4]
  34311. 800ed68: 689b ldr r3, [r3, #8]
  34312. 800ed6a: 3b01 subs r3, #1
  34313. 800ed6c: 025b lsls r3, r3, #9
  34314. 800ed6e: b29b uxth r3, r3
  34315. 800ed70: 431a orrs r2, r3
  34316. 800ed72: 687b ldr r3, [r7, #4]
  34317. 800ed74: 68db ldr r3, [r3, #12]
  34318. 800ed76: 3b01 subs r3, #1
  34319. 800ed78: 041b lsls r3, r3, #16
  34320. 800ed7a: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34321. 800ed7e: 431a orrs r2, r3
  34322. 800ed80: 687b ldr r3, [r7, #4]
  34323. 800ed82: 691b ldr r3, [r3, #16]
  34324. 800ed84: 3b01 subs r3, #1
  34325. 800ed86: 061b lsls r3, r3, #24
  34326. 800ed88: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34327. 800ed8c: 4931 ldr r1, [pc, #196] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34328. 800ed8e: 4313 orrs r3, r2
  34329. 800ed90: 638b str r3, [r1, #56] @ 0x38
  34330. pll2->PLL2P,
  34331. pll2->PLL2Q,
  34332. pll2->PLL2R);
  34333. /* Select PLL2 input reference frequency range: VCI */
  34334. __HAL_RCC_PLL2_VCIRANGE(pll2->PLL2RGE) ;
  34335. 800ed92: 4b30 ldr r3, [pc, #192] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34336. 800ed94: 6adb ldr r3, [r3, #44] @ 0x2c
  34337. 800ed96: f023 02c0 bic.w r2, r3, #192 @ 0xc0
  34338. 800ed9a: 687b ldr r3, [r7, #4]
  34339. 800ed9c: 695b ldr r3, [r3, #20]
  34340. 800ed9e: 492d ldr r1, [pc, #180] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34341. 800eda0: 4313 orrs r3, r2
  34342. 800eda2: 62cb str r3, [r1, #44] @ 0x2c
  34343. /* Select PLL2 output frequency range : VCO */
  34344. __HAL_RCC_PLL2_VCORANGE(pll2->PLL2VCOSEL) ;
  34345. 800eda4: 4b2b ldr r3, [pc, #172] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34346. 800eda6: 6adb ldr r3, [r3, #44] @ 0x2c
  34347. 800eda8: f023 0220 bic.w r2, r3, #32
  34348. 800edac: 687b ldr r3, [r7, #4]
  34349. 800edae: 699b ldr r3, [r3, #24]
  34350. 800edb0: 4928 ldr r1, [pc, #160] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34351. 800edb2: 4313 orrs r3, r2
  34352. 800edb4: 62cb str r3, [r1, #44] @ 0x2c
  34353. /* Disable PLL2FRACN . */
  34354. __HAL_RCC_PLL2FRACN_DISABLE();
  34355. 800edb6: 4b27 ldr r3, [pc, #156] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34356. 800edb8: 6adb ldr r3, [r3, #44] @ 0x2c
  34357. 800edba: 4a26 ldr r2, [pc, #152] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34358. 800edbc: f023 0310 bic.w r3, r3, #16
  34359. 800edc0: 62d3 str r3, [r2, #44] @ 0x2c
  34360. /* Configures PLL2 clock Fractional Part Of The Multiplication Factor */
  34361. __HAL_RCC_PLL2FRACN_CONFIG(pll2->PLL2FRACN);
  34362. 800edc2: 4b24 ldr r3, [pc, #144] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34363. 800edc4: 6bda ldr r2, [r3, #60] @ 0x3c
  34364. 800edc6: 4b24 ldr r3, [pc, #144] @ (800ee58 <RCCEx_PLL2_Config+0x160>)
  34365. 800edc8: 4013 ands r3, r2
  34366. 800edca: 687a ldr r2, [r7, #4]
  34367. 800edcc: 69d2 ldr r2, [r2, #28]
  34368. 800edce: 00d2 lsls r2, r2, #3
  34369. 800edd0: 4920 ldr r1, [pc, #128] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34370. 800edd2: 4313 orrs r3, r2
  34371. 800edd4: 63cb str r3, [r1, #60] @ 0x3c
  34372. /* Enable PLL2FRACN . */
  34373. __HAL_RCC_PLL2FRACN_ENABLE();
  34374. 800edd6: 4b1f ldr r3, [pc, #124] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34375. 800edd8: 6adb ldr r3, [r3, #44] @ 0x2c
  34376. 800edda: 4a1e ldr r2, [pc, #120] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34377. 800eddc: f043 0310 orr.w r3, r3, #16
  34378. 800ede0: 62d3 str r3, [r2, #44] @ 0x2c
  34379. /* Enable the PLL2 clock output */
  34380. if (Divider == DIVIDER_P_UPDATE)
  34381. 800ede2: 683b ldr r3, [r7, #0]
  34382. 800ede4: 2b00 cmp r3, #0
  34383. 800ede6: d106 bne.n 800edf6 <RCCEx_PLL2_Config+0xfe>
  34384. {
  34385. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVP);
  34386. 800ede8: 4b1a ldr r3, [pc, #104] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34387. 800edea: 6adb ldr r3, [r3, #44] @ 0x2c
  34388. 800edec: 4a19 ldr r2, [pc, #100] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34389. 800edee: f443 2300 orr.w r3, r3, #524288 @ 0x80000
  34390. 800edf2: 62d3 str r3, [r2, #44] @ 0x2c
  34391. 800edf4: e00f b.n 800ee16 <RCCEx_PLL2_Config+0x11e>
  34392. }
  34393. else if (Divider == DIVIDER_Q_UPDATE)
  34394. 800edf6: 683b ldr r3, [r7, #0]
  34395. 800edf8: 2b01 cmp r3, #1
  34396. 800edfa: d106 bne.n 800ee0a <RCCEx_PLL2_Config+0x112>
  34397. {
  34398. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVQ);
  34399. 800edfc: 4b15 ldr r3, [pc, #84] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34400. 800edfe: 6adb ldr r3, [r3, #44] @ 0x2c
  34401. 800ee00: 4a14 ldr r2, [pc, #80] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34402. 800ee02: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  34403. 800ee06: 62d3 str r3, [r2, #44] @ 0x2c
  34404. 800ee08: e005 b.n 800ee16 <RCCEx_PLL2_Config+0x11e>
  34405. }
  34406. else
  34407. {
  34408. __HAL_RCC_PLL2CLKOUT_ENABLE(RCC_PLL2_DIVR);
  34409. 800ee0a: 4b12 ldr r3, [pc, #72] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34410. 800ee0c: 6adb ldr r3, [r3, #44] @ 0x2c
  34411. 800ee0e: 4a11 ldr r2, [pc, #68] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34412. 800ee10: f443 1300 orr.w r3, r3, #2097152 @ 0x200000
  34413. 800ee14: 62d3 str r3, [r2, #44] @ 0x2c
  34414. }
  34415. /* Enable PLL2. */
  34416. __HAL_RCC_PLL2_ENABLE();
  34417. 800ee16: 4b0f ldr r3, [pc, #60] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34418. 800ee18: 681b ldr r3, [r3, #0]
  34419. 800ee1a: 4a0e ldr r2, [pc, #56] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34420. 800ee1c: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
  34421. 800ee20: 6013 str r3, [r2, #0]
  34422. /* Get Start Tick*/
  34423. tickstart = HAL_GetTick();
  34424. 800ee22: f7f6 fd3b bl 800589c <HAL_GetTick>
  34425. 800ee26: 60b8 str r0, [r7, #8]
  34426. /* Wait till PLL2 is ready */
  34427. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34428. 800ee28: e008 b.n 800ee3c <RCCEx_PLL2_Config+0x144>
  34429. {
  34430. if ((HAL_GetTick() - tickstart) > PLL2_TIMEOUT_VALUE)
  34431. 800ee2a: f7f6 fd37 bl 800589c <HAL_GetTick>
  34432. 800ee2e: 4602 mov r2, r0
  34433. 800ee30: 68bb ldr r3, [r7, #8]
  34434. 800ee32: 1ad3 subs r3, r2, r3
  34435. 800ee34: 2b02 cmp r3, #2
  34436. 800ee36: d901 bls.n 800ee3c <RCCEx_PLL2_Config+0x144>
  34437. {
  34438. return HAL_TIMEOUT;
  34439. 800ee38: 2303 movs r3, #3
  34440. 800ee3a: e006 b.n 800ee4a <RCCEx_PLL2_Config+0x152>
  34441. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL2RDY) == 0U)
  34442. 800ee3c: 4b05 ldr r3, [pc, #20] @ (800ee54 <RCCEx_PLL2_Config+0x15c>)
  34443. 800ee3e: 681b ldr r3, [r3, #0]
  34444. 800ee40: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
  34445. 800ee44: 2b00 cmp r3, #0
  34446. 800ee46: d0f0 beq.n 800ee2a <RCCEx_PLL2_Config+0x132>
  34447. }
  34448. }
  34449. return status;
  34450. 800ee48: 7bfb ldrb r3, [r7, #15]
  34451. }
  34452. 800ee4a: 4618 mov r0, r3
  34453. 800ee4c: 3710 adds r7, #16
  34454. 800ee4e: 46bd mov sp, r7
  34455. 800ee50: bd80 pop {r7, pc}
  34456. 800ee52: bf00 nop
  34457. 800ee54: 58024400 .word 0x58024400
  34458. 800ee58: ffff0007 .word 0xffff0007
  34459. 0800ee5c <RCCEx_PLL3_Config>:
  34460. * @note PLL3 is temporary disabled to apply new parameters
  34461. *
  34462. * @retval HAL status
  34463. */
  34464. static HAL_StatusTypeDef RCCEx_PLL3_Config(RCC_PLL3InitTypeDef *pll3, uint32_t Divider)
  34465. {
  34466. 800ee5c: b580 push {r7, lr}
  34467. 800ee5e: b084 sub sp, #16
  34468. 800ee60: af00 add r7, sp, #0
  34469. 800ee62: 6078 str r0, [r7, #4]
  34470. 800ee64: 6039 str r1, [r7, #0]
  34471. uint32_t tickstart;
  34472. HAL_StatusTypeDef status = HAL_OK;
  34473. 800ee66: 2300 movs r3, #0
  34474. 800ee68: 73fb strb r3, [r7, #15]
  34475. assert_param(IS_RCC_PLL3RGE_VALUE(pll3->PLL3RGE));
  34476. assert_param(IS_RCC_PLL3VCO_VALUE(pll3->PLL3VCOSEL));
  34477. assert_param(IS_RCC_PLLFRACN_VALUE(pll3->PLL3FRACN));
  34478. /* Check that PLL3 OSC clock source is already set */
  34479. if (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_NONE)
  34480. 800ee6a: 4b53 ldr r3, [pc, #332] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34481. 800ee6c: 6a9b ldr r3, [r3, #40] @ 0x28
  34482. 800ee6e: f003 0303 and.w r3, r3, #3
  34483. 800ee72: 2b03 cmp r3, #3
  34484. 800ee74: d101 bne.n 800ee7a <RCCEx_PLL3_Config+0x1e>
  34485. {
  34486. return HAL_ERROR;
  34487. 800ee76: 2301 movs r3, #1
  34488. 800ee78: e099 b.n 800efae <RCCEx_PLL3_Config+0x152>
  34489. else
  34490. {
  34491. /* Disable PLL3. */
  34492. __HAL_RCC_PLL3_DISABLE();
  34493. 800ee7a: 4b4f ldr r3, [pc, #316] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34494. 800ee7c: 681b ldr r3, [r3, #0]
  34495. 800ee7e: 4a4e ldr r2, [pc, #312] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34496. 800ee80: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  34497. 800ee84: 6013 str r3, [r2, #0]
  34498. /* Get Start Tick*/
  34499. tickstart = HAL_GetTick();
  34500. 800ee86: f7f6 fd09 bl 800589c <HAL_GetTick>
  34501. 800ee8a: 60b8 str r0, [r7, #8]
  34502. /* Wait till PLL3 is ready */
  34503. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34504. 800ee8c: e008 b.n 800eea0 <RCCEx_PLL3_Config+0x44>
  34505. {
  34506. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  34507. 800ee8e: f7f6 fd05 bl 800589c <HAL_GetTick>
  34508. 800ee92: 4602 mov r2, r0
  34509. 800ee94: 68bb ldr r3, [r7, #8]
  34510. 800ee96: 1ad3 subs r3, r2, r3
  34511. 800ee98: 2b02 cmp r3, #2
  34512. 800ee9a: d901 bls.n 800eea0 <RCCEx_PLL3_Config+0x44>
  34513. {
  34514. return HAL_TIMEOUT;
  34515. 800ee9c: 2303 movs r3, #3
  34516. 800ee9e: e086 b.n 800efae <RCCEx_PLL3_Config+0x152>
  34517. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) != 0U)
  34518. 800eea0: 4b45 ldr r3, [pc, #276] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34519. 800eea2: 681b ldr r3, [r3, #0]
  34520. 800eea4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34521. 800eea8: 2b00 cmp r3, #0
  34522. 800eeaa: d1f0 bne.n 800ee8e <RCCEx_PLL3_Config+0x32>
  34523. }
  34524. }
  34525. /* Configure the PLL3 multiplication and division factors. */
  34526. __HAL_RCC_PLL3_CONFIG(pll3->PLL3M,
  34527. 800eeac: 4b42 ldr r3, [pc, #264] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34528. 800eeae: 6a9b ldr r3, [r3, #40] @ 0x28
  34529. 800eeb0: f023 727c bic.w r2, r3, #66060288 @ 0x3f00000
  34530. 800eeb4: 687b ldr r3, [r7, #4]
  34531. 800eeb6: 681b ldr r3, [r3, #0]
  34532. 800eeb8: 051b lsls r3, r3, #20
  34533. 800eeba: 493f ldr r1, [pc, #252] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34534. 800eebc: 4313 orrs r3, r2
  34535. 800eebe: 628b str r3, [r1, #40] @ 0x28
  34536. 800eec0: 687b ldr r3, [r7, #4]
  34537. 800eec2: 685b ldr r3, [r3, #4]
  34538. 800eec4: 3b01 subs r3, #1
  34539. 800eec6: f3c3 0208 ubfx r2, r3, #0, #9
  34540. 800eeca: 687b ldr r3, [r7, #4]
  34541. 800eecc: 689b ldr r3, [r3, #8]
  34542. 800eece: 3b01 subs r3, #1
  34543. 800eed0: 025b lsls r3, r3, #9
  34544. 800eed2: b29b uxth r3, r3
  34545. 800eed4: 431a orrs r2, r3
  34546. 800eed6: 687b ldr r3, [r7, #4]
  34547. 800eed8: 68db ldr r3, [r3, #12]
  34548. 800eeda: 3b01 subs r3, #1
  34549. 800eedc: 041b lsls r3, r3, #16
  34550. 800eede: f403 03fe and.w r3, r3, #8323072 @ 0x7f0000
  34551. 800eee2: 431a orrs r2, r3
  34552. 800eee4: 687b ldr r3, [r7, #4]
  34553. 800eee6: 691b ldr r3, [r3, #16]
  34554. 800eee8: 3b01 subs r3, #1
  34555. 800eeea: 061b lsls r3, r3, #24
  34556. 800eeec: f003 43fe and.w r3, r3, #2130706432 @ 0x7f000000
  34557. 800eef0: 4931 ldr r1, [pc, #196] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34558. 800eef2: 4313 orrs r3, r2
  34559. 800eef4: 640b str r3, [r1, #64] @ 0x40
  34560. pll3->PLL3P,
  34561. pll3->PLL3Q,
  34562. pll3->PLL3R);
  34563. /* Select PLL3 input reference frequency range: VCI */
  34564. __HAL_RCC_PLL3_VCIRANGE(pll3->PLL3RGE) ;
  34565. 800eef6: 4b30 ldr r3, [pc, #192] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34566. 800eef8: 6adb ldr r3, [r3, #44] @ 0x2c
  34567. 800eefa: f423 6240 bic.w r2, r3, #3072 @ 0xc00
  34568. 800eefe: 687b ldr r3, [r7, #4]
  34569. 800ef00: 695b ldr r3, [r3, #20]
  34570. 800ef02: 492d ldr r1, [pc, #180] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34571. 800ef04: 4313 orrs r3, r2
  34572. 800ef06: 62cb str r3, [r1, #44] @ 0x2c
  34573. /* Select PLL3 output frequency range : VCO */
  34574. __HAL_RCC_PLL3_VCORANGE(pll3->PLL3VCOSEL) ;
  34575. 800ef08: 4b2b ldr r3, [pc, #172] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34576. 800ef0a: 6adb ldr r3, [r3, #44] @ 0x2c
  34577. 800ef0c: f423 7200 bic.w r2, r3, #512 @ 0x200
  34578. 800ef10: 687b ldr r3, [r7, #4]
  34579. 800ef12: 699b ldr r3, [r3, #24]
  34580. 800ef14: 4928 ldr r1, [pc, #160] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34581. 800ef16: 4313 orrs r3, r2
  34582. 800ef18: 62cb str r3, [r1, #44] @ 0x2c
  34583. /* Disable PLL3FRACN . */
  34584. __HAL_RCC_PLL3FRACN_DISABLE();
  34585. 800ef1a: 4b27 ldr r3, [pc, #156] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34586. 800ef1c: 6adb ldr r3, [r3, #44] @ 0x2c
  34587. 800ef1e: 4a26 ldr r2, [pc, #152] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34588. 800ef20: f423 7380 bic.w r3, r3, #256 @ 0x100
  34589. 800ef24: 62d3 str r3, [r2, #44] @ 0x2c
  34590. /* Configures PLL3 clock Fractional Part Of The Multiplication Factor */
  34591. __HAL_RCC_PLL3FRACN_CONFIG(pll3->PLL3FRACN);
  34592. 800ef26: 4b24 ldr r3, [pc, #144] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34593. 800ef28: 6c5a ldr r2, [r3, #68] @ 0x44
  34594. 800ef2a: 4b24 ldr r3, [pc, #144] @ (800efbc <RCCEx_PLL3_Config+0x160>)
  34595. 800ef2c: 4013 ands r3, r2
  34596. 800ef2e: 687a ldr r2, [r7, #4]
  34597. 800ef30: 69d2 ldr r2, [r2, #28]
  34598. 800ef32: 00d2 lsls r2, r2, #3
  34599. 800ef34: 4920 ldr r1, [pc, #128] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34600. 800ef36: 4313 orrs r3, r2
  34601. 800ef38: 644b str r3, [r1, #68] @ 0x44
  34602. /* Enable PLL3FRACN . */
  34603. __HAL_RCC_PLL3FRACN_ENABLE();
  34604. 800ef3a: 4b1f ldr r3, [pc, #124] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34605. 800ef3c: 6adb ldr r3, [r3, #44] @ 0x2c
  34606. 800ef3e: 4a1e ldr r2, [pc, #120] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34607. 800ef40: f443 7380 orr.w r3, r3, #256 @ 0x100
  34608. 800ef44: 62d3 str r3, [r2, #44] @ 0x2c
  34609. /* Enable the PLL3 clock output */
  34610. if (Divider == DIVIDER_P_UPDATE)
  34611. 800ef46: 683b ldr r3, [r7, #0]
  34612. 800ef48: 2b00 cmp r3, #0
  34613. 800ef4a: d106 bne.n 800ef5a <RCCEx_PLL3_Config+0xfe>
  34614. {
  34615. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVP);
  34616. 800ef4c: 4b1a ldr r3, [pc, #104] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34617. 800ef4e: 6adb ldr r3, [r3, #44] @ 0x2c
  34618. 800ef50: 4a19 ldr r2, [pc, #100] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34619. 800ef52: f443 0380 orr.w r3, r3, #4194304 @ 0x400000
  34620. 800ef56: 62d3 str r3, [r2, #44] @ 0x2c
  34621. 800ef58: e00f b.n 800ef7a <RCCEx_PLL3_Config+0x11e>
  34622. }
  34623. else if (Divider == DIVIDER_Q_UPDATE)
  34624. 800ef5a: 683b ldr r3, [r7, #0]
  34625. 800ef5c: 2b01 cmp r3, #1
  34626. 800ef5e: d106 bne.n 800ef6e <RCCEx_PLL3_Config+0x112>
  34627. {
  34628. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVQ);
  34629. 800ef60: 4b15 ldr r3, [pc, #84] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34630. 800ef62: 6adb ldr r3, [r3, #44] @ 0x2c
  34631. 800ef64: 4a14 ldr r2, [pc, #80] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34632. 800ef66: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  34633. 800ef6a: 62d3 str r3, [r2, #44] @ 0x2c
  34634. 800ef6c: e005 b.n 800ef7a <RCCEx_PLL3_Config+0x11e>
  34635. }
  34636. else
  34637. {
  34638. __HAL_RCC_PLL3CLKOUT_ENABLE(RCC_PLL3_DIVR);
  34639. 800ef6e: 4b12 ldr r3, [pc, #72] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34640. 800ef70: 6adb ldr r3, [r3, #44] @ 0x2c
  34641. 800ef72: 4a11 ldr r2, [pc, #68] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34642. 800ef74: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
  34643. 800ef78: 62d3 str r3, [r2, #44] @ 0x2c
  34644. }
  34645. /* Enable PLL3. */
  34646. __HAL_RCC_PLL3_ENABLE();
  34647. 800ef7a: 4b0f ldr r3, [pc, #60] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34648. 800ef7c: 681b ldr r3, [r3, #0]
  34649. 800ef7e: 4a0e ldr r2, [pc, #56] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34650. 800ef80: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  34651. 800ef84: 6013 str r3, [r2, #0]
  34652. /* Get Start Tick*/
  34653. tickstart = HAL_GetTick();
  34654. 800ef86: f7f6 fc89 bl 800589c <HAL_GetTick>
  34655. 800ef8a: 60b8 str r0, [r7, #8]
  34656. /* Wait till PLL3 is ready */
  34657. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  34658. 800ef8c: e008 b.n 800efa0 <RCCEx_PLL3_Config+0x144>
  34659. {
  34660. if ((HAL_GetTick() - tickstart) > PLL3_TIMEOUT_VALUE)
  34661. 800ef8e: f7f6 fc85 bl 800589c <HAL_GetTick>
  34662. 800ef92: 4602 mov r2, r0
  34663. 800ef94: 68bb ldr r3, [r7, #8]
  34664. 800ef96: 1ad3 subs r3, r2, r3
  34665. 800ef98: 2b02 cmp r3, #2
  34666. 800ef9a: d901 bls.n 800efa0 <RCCEx_PLL3_Config+0x144>
  34667. {
  34668. return HAL_TIMEOUT;
  34669. 800ef9c: 2303 movs r3, #3
  34670. 800ef9e: e006 b.n 800efae <RCCEx_PLL3_Config+0x152>
  34671. while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLL3RDY) == 0U)
  34672. 800efa0: 4b05 ldr r3, [pc, #20] @ (800efb8 <RCCEx_PLL3_Config+0x15c>)
  34673. 800efa2: 681b ldr r3, [r3, #0]
  34674. 800efa4: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
  34675. 800efa8: 2b00 cmp r3, #0
  34676. 800efaa: d0f0 beq.n 800ef8e <RCCEx_PLL3_Config+0x132>
  34677. }
  34678. }
  34679. return status;
  34680. 800efac: 7bfb ldrb r3, [r7, #15]
  34681. }
  34682. 800efae: 4618 mov r0, r3
  34683. 800efb0: 3710 adds r7, #16
  34684. 800efb2: 46bd mov sp, r7
  34685. 800efb4: bd80 pop {r7, pc}
  34686. 800efb6: bf00 nop
  34687. 800efb8: 58024400 .word 0x58024400
  34688. 800efbc: ffff0007 .word 0xffff0007
  34689. 0800efc0 <HAL_RNG_Init>:
  34690. * @param hrng pointer to a RNG_HandleTypeDef structure that contains
  34691. * the configuration information for RNG.
  34692. * @retval HAL status
  34693. */
  34694. HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng)
  34695. {
  34696. 800efc0: b580 push {r7, lr}
  34697. 800efc2: b084 sub sp, #16
  34698. 800efc4: af00 add r7, sp, #0
  34699. 800efc6: 6078 str r0, [r7, #4]
  34700. uint32_t tickstart;
  34701. /* Check the RNG handle allocation */
  34702. if (hrng == NULL)
  34703. 800efc8: 687b ldr r3, [r7, #4]
  34704. 800efca: 2b00 cmp r3, #0
  34705. 800efcc: d101 bne.n 800efd2 <HAL_RNG_Init+0x12>
  34706. {
  34707. return HAL_ERROR;
  34708. 800efce: 2301 movs r3, #1
  34709. 800efd0: e054 b.n 800f07c <HAL_RNG_Init+0xbc>
  34710. /* Init the low level hardware */
  34711. hrng->MspInitCallback(hrng);
  34712. }
  34713. #else
  34714. if (hrng->State == HAL_RNG_STATE_RESET)
  34715. 800efd2: 687b ldr r3, [r7, #4]
  34716. 800efd4: 7a5b ldrb r3, [r3, #9]
  34717. 800efd6: b2db uxtb r3, r3
  34718. 800efd8: 2b00 cmp r3, #0
  34719. 800efda: d105 bne.n 800efe8 <HAL_RNG_Init+0x28>
  34720. {
  34721. /* Allocate lock resource and initialize it */
  34722. hrng->Lock = HAL_UNLOCKED;
  34723. 800efdc: 687b ldr r3, [r7, #4]
  34724. 800efde: 2200 movs r2, #0
  34725. 800efe0: 721a strb r2, [r3, #8]
  34726. /* Init the low level hardware */
  34727. HAL_RNG_MspInit(hrng);
  34728. 800efe2: 6878 ldr r0, [r7, #4]
  34729. 800efe4: f7f4 fe9e bl 8003d24 <HAL_RNG_MspInit>
  34730. }
  34731. #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */
  34732. /* Change RNG peripheral state */
  34733. hrng->State = HAL_RNG_STATE_BUSY;
  34734. 800efe8: 687b ldr r3, [r7, #4]
  34735. 800efea: 2202 movs r2, #2
  34736. 800efec: 725a strb r2, [r3, #9]
  34737. }
  34738. }
  34739. }
  34740. #else
  34741. /* Clock Error Detection Configuration */
  34742. MODIFY_REG(hrng->Instance->CR, RNG_CR_CED, hrng->Init.ClockErrorDetection);
  34743. 800efee: 687b ldr r3, [r7, #4]
  34744. 800eff0: 681b ldr r3, [r3, #0]
  34745. 800eff2: 681b ldr r3, [r3, #0]
  34746. 800eff4: f023 0120 bic.w r1, r3, #32
  34747. 800eff8: 687b ldr r3, [r7, #4]
  34748. 800effa: 685a ldr r2, [r3, #4]
  34749. 800effc: 687b ldr r3, [r7, #4]
  34750. 800effe: 681b ldr r3, [r3, #0]
  34751. 800f000: 430a orrs r2, r1
  34752. 800f002: 601a str r2, [r3, #0]
  34753. #endif /* RNG_CR_CONDRST */
  34754. /* Enable the RNG Peripheral */
  34755. __HAL_RNG_ENABLE(hrng);
  34756. 800f004: 687b ldr r3, [r7, #4]
  34757. 800f006: 681b ldr r3, [r3, #0]
  34758. 800f008: 681a ldr r2, [r3, #0]
  34759. 800f00a: 687b ldr r3, [r7, #4]
  34760. 800f00c: 681b ldr r3, [r3, #0]
  34761. 800f00e: f042 0204 orr.w r2, r2, #4
  34762. 800f012: 601a str r2, [r3, #0]
  34763. /* verify that no seed error */
  34764. if (__HAL_RNG_GET_IT(hrng, RNG_IT_SEI) != RESET)
  34765. 800f014: 687b ldr r3, [r7, #4]
  34766. 800f016: 681b ldr r3, [r3, #0]
  34767. 800f018: 685b ldr r3, [r3, #4]
  34768. 800f01a: f003 0340 and.w r3, r3, #64 @ 0x40
  34769. 800f01e: 2b40 cmp r3, #64 @ 0x40
  34770. 800f020: d104 bne.n 800f02c <HAL_RNG_Init+0x6c>
  34771. {
  34772. hrng->State = HAL_RNG_STATE_ERROR;
  34773. 800f022: 687b ldr r3, [r7, #4]
  34774. 800f024: 2204 movs r2, #4
  34775. 800f026: 725a strb r2, [r3, #9]
  34776. return HAL_ERROR;
  34777. 800f028: 2301 movs r3, #1
  34778. 800f02a: e027 b.n 800f07c <HAL_RNG_Init+0xbc>
  34779. }
  34780. /* Get tick */
  34781. tickstart = HAL_GetTick();
  34782. 800f02c: f7f6 fc36 bl 800589c <HAL_GetTick>
  34783. 800f030: 60f8 str r0, [r7, #12]
  34784. /* Check if data register contains valid random data */
  34785. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34786. 800f032: e015 b.n 800f060 <HAL_RNG_Init+0xa0>
  34787. {
  34788. if ((HAL_GetTick() - tickstart) > RNG_TIMEOUT_VALUE)
  34789. 800f034: f7f6 fc32 bl 800589c <HAL_GetTick>
  34790. 800f038: 4602 mov r2, r0
  34791. 800f03a: 68fb ldr r3, [r7, #12]
  34792. 800f03c: 1ad3 subs r3, r2, r3
  34793. 800f03e: 2b02 cmp r3, #2
  34794. 800f040: d90e bls.n 800f060 <HAL_RNG_Init+0xa0>
  34795. {
  34796. /* New check to avoid false timeout detection in case of preemption */
  34797. if (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34798. 800f042: 687b ldr r3, [r7, #4]
  34799. 800f044: 681b ldr r3, [r3, #0]
  34800. 800f046: 685b ldr r3, [r3, #4]
  34801. 800f048: f003 0304 and.w r3, r3, #4
  34802. 800f04c: 2b04 cmp r3, #4
  34803. 800f04e: d107 bne.n 800f060 <HAL_RNG_Init+0xa0>
  34804. {
  34805. hrng->State = HAL_RNG_STATE_ERROR;
  34806. 800f050: 687b ldr r3, [r7, #4]
  34807. 800f052: 2204 movs r2, #4
  34808. 800f054: 725a strb r2, [r3, #9]
  34809. hrng->ErrorCode = HAL_RNG_ERROR_TIMEOUT;
  34810. 800f056: 687b ldr r3, [r7, #4]
  34811. 800f058: 2202 movs r2, #2
  34812. 800f05a: 60da str r2, [r3, #12]
  34813. return HAL_ERROR;
  34814. 800f05c: 2301 movs r3, #1
  34815. 800f05e: e00d b.n 800f07c <HAL_RNG_Init+0xbc>
  34816. while (__HAL_RNG_GET_FLAG(hrng, RNG_FLAG_SECS) != RESET)
  34817. 800f060: 687b ldr r3, [r7, #4]
  34818. 800f062: 681b ldr r3, [r3, #0]
  34819. 800f064: 685b ldr r3, [r3, #4]
  34820. 800f066: f003 0304 and.w r3, r3, #4
  34821. 800f06a: 2b04 cmp r3, #4
  34822. 800f06c: d0e2 beq.n 800f034 <HAL_RNG_Init+0x74>
  34823. }
  34824. }
  34825. }
  34826. /* Initialize the RNG state */
  34827. hrng->State = HAL_RNG_STATE_READY;
  34828. 800f06e: 687b ldr r3, [r7, #4]
  34829. 800f070: 2201 movs r2, #1
  34830. 800f072: 725a strb r2, [r3, #9]
  34831. /* Initialise the error code */
  34832. hrng->ErrorCode = HAL_RNG_ERROR_NONE;
  34833. 800f074: 687b ldr r3, [r7, #4]
  34834. 800f076: 2200 movs r2, #0
  34835. 800f078: 60da str r2, [r3, #12]
  34836. /* Return function status */
  34837. return HAL_OK;
  34838. 800f07a: 2300 movs r3, #0
  34839. }
  34840. 800f07c: 4618 mov r0, r3
  34841. 800f07e: 3710 adds r7, #16
  34842. 800f080: 46bd mov sp, r7
  34843. 800f082: bd80 pop {r7, pc}
  34844. 0800f084 <HAL_TIM_Base_Init>:
  34845. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  34846. * @param htim TIM Base handle
  34847. * @retval HAL status
  34848. */
  34849. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  34850. {
  34851. 800f084: b580 push {r7, lr}
  34852. 800f086: b082 sub sp, #8
  34853. 800f088: af00 add r7, sp, #0
  34854. 800f08a: 6078 str r0, [r7, #4]
  34855. /* Check the TIM handle allocation */
  34856. if (htim == NULL)
  34857. 800f08c: 687b ldr r3, [r7, #4]
  34858. 800f08e: 2b00 cmp r3, #0
  34859. 800f090: d101 bne.n 800f096 <HAL_TIM_Base_Init+0x12>
  34860. {
  34861. return HAL_ERROR;
  34862. 800f092: 2301 movs r3, #1
  34863. 800f094: e049 b.n 800f12a <HAL_TIM_Base_Init+0xa6>
  34864. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  34865. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  34866. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  34867. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  34868. if (htim->State == HAL_TIM_STATE_RESET)
  34869. 800f096: 687b ldr r3, [r7, #4]
  34870. 800f098: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34871. 800f09c: b2db uxtb r3, r3
  34872. 800f09e: 2b00 cmp r3, #0
  34873. 800f0a0: d106 bne.n 800f0b0 <HAL_TIM_Base_Init+0x2c>
  34874. {
  34875. /* Allocate lock resource and initialize it */
  34876. htim->Lock = HAL_UNLOCKED;
  34877. 800f0a2: 687b ldr r3, [r7, #4]
  34878. 800f0a4: 2200 movs r2, #0
  34879. 800f0a6: f883 203c strb.w r2, [r3, #60] @ 0x3c
  34880. }
  34881. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34882. htim->Base_MspInitCallback(htim);
  34883. #else
  34884. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  34885. HAL_TIM_Base_MspInit(htim);
  34886. 800f0aa: 6878 ldr r0, [r7, #4]
  34887. 800f0ac: f7f4 feae bl 8003e0c <HAL_TIM_Base_MspInit>
  34888. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  34889. }
  34890. /* Set the TIM state */
  34891. htim->State = HAL_TIM_STATE_BUSY;
  34892. 800f0b0: 687b ldr r3, [r7, #4]
  34893. 800f0b2: 2202 movs r2, #2
  34894. 800f0b4: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34895. /* Set the Time Base configuration */
  34896. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  34897. 800f0b8: 687b ldr r3, [r7, #4]
  34898. 800f0ba: 681a ldr r2, [r3, #0]
  34899. 800f0bc: 687b ldr r3, [r7, #4]
  34900. 800f0be: 3304 adds r3, #4
  34901. 800f0c0: 4619 mov r1, r3
  34902. 800f0c2: 4610 mov r0, r2
  34903. 800f0c4: f000 fe90 bl 800fde8 <TIM_Base_SetConfig>
  34904. /* Initialize the DMA burst operation state */
  34905. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  34906. 800f0c8: 687b ldr r3, [r7, #4]
  34907. 800f0ca: 2201 movs r2, #1
  34908. 800f0cc: f883 2048 strb.w r2, [r3, #72] @ 0x48
  34909. /* Initialize the TIM channels state */
  34910. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34911. 800f0d0: 687b ldr r3, [r7, #4]
  34912. 800f0d2: 2201 movs r2, #1
  34913. 800f0d4: f883 203e strb.w r2, [r3, #62] @ 0x3e
  34914. 800f0d8: 687b ldr r3, [r7, #4]
  34915. 800f0da: 2201 movs r2, #1
  34916. 800f0dc: f883 203f strb.w r2, [r3, #63] @ 0x3f
  34917. 800f0e0: 687b ldr r3, [r7, #4]
  34918. 800f0e2: 2201 movs r2, #1
  34919. 800f0e4: f883 2040 strb.w r2, [r3, #64] @ 0x40
  34920. 800f0e8: 687b ldr r3, [r7, #4]
  34921. 800f0ea: 2201 movs r2, #1
  34922. 800f0ec: f883 2041 strb.w r2, [r3, #65] @ 0x41
  34923. 800f0f0: 687b ldr r3, [r7, #4]
  34924. 800f0f2: 2201 movs r2, #1
  34925. 800f0f4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  34926. 800f0f8: 687b ldr r3, [r7, #4]
  34927. 800f0fa: 2201 movs r2, #1
  34928. 800f0fc: f883 2043 strb.w r2, [r3, #67] @ 0x43
  34929. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  34930. 800f100: 687b ldr r3, [r7, #4]
  34931. 800f102: 2201 movs r2, #1
  34932. 800f104: f883 2044 strb.w r2, [r3, #68] @ 0x44
  34933. 800f108: 687b ldr r3, [r7, #4]
  34934. 800f10a: 2201 movs r2, #1
  34935. 800f10c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  34936. 800f110: 687b ldr r3, [r7, #4]
  34937. 800f112: 2201 movs r2, #1
  34938. 800f114: f883 2046 strb.w r2, [r3, #70] @ 0x46
  34939. 800f118: 687b ldr r3, [r7, #4]
  34940. 800f11a: 2201 movs r2, #1
  34941. 800f11c: f883 2047 strb.w r2, [r3, #71] @ 0x47
  34942. /* Initialize the TIM state*/
  34943. htim->State = HAL_TIM_STATE_READY;
  34944. 800f120: 687b ldr r3, [r7, #4]
  34945. 800f122: 2201 movs r2, #1
  34946. 800f124: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34947. return HAL_OK;
  34948. 800f128: 2300 movs r3, #0
  34949. }
  34950. 800f12a: 4618 mov r0, r3
  34951. 800f12c: 3708 adds r7, #8
  34952. 800f12e: 46bd mov sp, r7
  34953. 800f130: bd80 pop {r7, pc}
  34954. ...
  34955. 0800f134 <HAL_TIM_Base_Start>:
  34956. * @brief Starts the TIM Base generation.
  34957. * @param htim TIM Base handle
  34958. * @retval HAL status
  34959. */
  34960. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  34961. {
  34962. 800f134: b480 push {r7}
  34963. 800f136: b085 sub sp, #20
  34964. 800f138: af00 add r7, sp, #0
  34965. 800f13a: 6078 str r0, [r7, #4]
  34966. /* Check the parameters */
  34967. assert_param(IS_TIM_INSTANCE(htim->Instance));
  34968. /* Check the TIM state */
  34969. if (htim->State != HAL_TIM_STATE_READY)
  34970. 800f13c: 687b ldr r3, [r7, #4]
  34971. 800f13e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  34972. 800f142: b2db uxtb r3, r3
  34973. 800f144: 2b01 cmp r3, #1
  34974. 800f146: d001 beq.n 800f14c <HAL_TIM_Base_Start+0x18>
  34975. {
  34976. return HAL_ERROR;
  34977. 800f148: 2301 movs r3, #1
  34978. 800f14a: e04c b.n 800f1e6 <HAL_TIM_Base_Start+0xb2>
  34979. }
  34980. /* Set the TIM state */
  34981. htim->State = HAL_TIM_STATE_BUSY;
  34982. 800f14c: 687b ldr r3, [r7, #4]
  34983. 800f14e: 2202 movs r2, #2
  34984. 800f150: f883 203d strb.w r2, [r3, #61] @ 0x3d
  34985. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  34986. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  34987. 800f154: 687b ldr r3, [r7, #4]
  34988. 800f156: 681b ldr r3, [r3, #0]
  34989. 800f158: 4a26 ldr r2, [pc, #152] @ (800f1f4 <HAL_TIM_Base_Start+0xc0>)
  34990. 800f15a: 4293 cmp r3, r2
  34991. 800f15c: d022 beq.n 800f1a4 <HAL_TIM_Base_Start+0x70>
  34992. 800f15e: 687b ldr r3, [r7, #4]
  34993. 800f160: 681b ldr r3, [r3, #0]
  34994. 800f162: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  34995. 800f166: d01d beq.n 800f1a4 <HAL_TIM_Base_Start+0x70>
  34996. 800f168: 687b ldr r3, [r7, #4]
  34997. 800f16a: 681b ldr r3, [r3, #0]
  34998. 800f16c: 4a22 ldr r2, [pc, #136] @ (800f1f8 <HAL_TIM_Base_Start+0xc4>)
  34999. 800f16e: 4293 cmp r3, r2
  35000. 800f170: d018 beq.n 800f1a4 <HAL_TIM_Base_Start+0x70>
  35001. 800f172: 687b ldr r3, [r7, #4]
  35002. 800f174: 681b ldr r3, [r3, #0]
  35003. 800f176: 4a21 ldr r2, [pc, #132] @ (800f1fc <HAL_TIM_Base_Start+0xc8>)
  35004. 800f178: 4293 cmp r3, r2
  35005. 800f17a: d013 beq.n 800f1a4 <HAL_TIM_Base_Start+0x70>
  35006. 800f17c: 687b ldr r3, [r7, #4]
  35007. 800f17e: 681b ldr r3, [r3, #0]
  35008. 800f180: 4a1f ldr r2, [pc, #124] @ (800f200 <HAL_TIM_Base_Start+0xcc>)
  35009. 800f182: 4293 cmp r3, r2
  35010. 800f184: d00e beq.n 800f1a4 <HAL_TIM_Base_Start+0x70>
  35011. 800f186: 687b ldr r3, [r7, #4]
  35012. 800f188: 681b ldr r3, [r3, #0]
  35013. 800f18a: 4a1e ldr r2, [pc, #120] @ (800f204 <HAL_TIM_Base_Start+0xd0>)
  35014. 800f18c: 4293 cmp r3, r2
  35015. 800f18e: d009 beq.n 800f1a4 <HAL_TIM_Base_Start+0x70>
  35016. 800f190: 687b ldr r3, [r7, #4]
  35017. 800f192: 681b ldr r3, [r3, #0]
  35018. 800f194: 4a1c ldr r2, [pc, #112] @ (800f208 <HAL_TIM_Base_Start+0xd4>)
  35019. 800f196: 4293 cmp r3, r2
  35020. 800f198: d004 beq.n 800f1a4 <HAL_TIM_Base_Start+0x70>
  35021. 800f19a: 687b ldr r3, [r7, #4]
  35022. 800f19c: 681b ldr r3, [r3, #0]
  35023. 800f19e: 4a1b ldr r2, [pc, #108] @ (800f20c <HAL_TIM_Base_Start+0xd8>)
  35024. 800f1a0: 4293 cmp r3, r2
  35025. 800f1a2: d115 bne.n 800f1d0 <HAL_TIM_Base_Start+0x9c>
  35026. {
  35027. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35028. 800f1a4: 687b ldr r3, [r7, #4]
  35029. 800f1a6: 681b ldr r3, [r3, #0]
  35030. 800f1a8: 689a ldr r2, [r3, #8]
  35031. 800f1aa: 4b19 ldr r3, [pc, #100] @ (800f210 <HAL_TIM_Base_Start+0xdc>)
  35032. 800f1ac: 4013 ands r3, r2
  35033. 800f1ae: 60fb str r3, [r7, #12]
  35034. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35035. 800f1b0: 68fb ldr r3, [r7, #12]
  35036. 800f1b2: 2b06 cmp r3, #6
  35037. 800f1b4: d015 beq.n 800f1e2 <HAL_TIM_Base_Start+0xae>
  35038. 800f1b6: 68fb ldr r3, [r7, #12]
  35039. 800f1b8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35040. 800f1bc: d011 beq.n 800f1e2 <HAL_TIM_Base_Start+0xae>
  35041. {
  35042. __HAL_TIM_ENABLE(htim);
  35043. 800f1be: 687b ldr r3, [r7, #4]
  35044. 800f1c0: 681b ldr r3, [r3, #0]
  35045. 800f1c2: 681a ldr r2, [r3, #0]
  35046. 800f1c4: 687b ldr r3, [r7, #4]
  35047. 800f1c6: 681b ldr r3, [r3, #0]
  35048. 800f1c8: f042 0201 orr.w r2, r2, #1
  35049. 800f1cc: 601a str r2, [r3, #0]
  35050. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35051. 800f1ce: e008 b.n 800f1e2 <HAL_TIM_Base_Start+0xae>
  35052. }
  35053. }
  35054. else
  35055. {
  35056. __HAL_TIM_ENABLE(htim);
  35057. 800f1d0: 687b ldr r3, [r7, #4]
  35058. 800f1d2: 681b ldr r3, [r3, #0]
  35059. 800f1d4: 681a ldr r2, [r3, #0]
  35060. 800f1d6: 687b ldr r3, [r7, #4]
  35061. 800f1d8: 681b ldr r3, [r3, #0]
  35062. 800f1da: f042 0201 orr.w r2, r2, #1
  35063. 800f1de: 601a str r2, [r3, #0]
  35064. 800f1e0: e000 b.n 800f1e4 <HAL_TIM_Base_Start+0xb0>
  35065. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35066. 800f1e2: bf00 nop
  35067. }
  35068. /* Return function status */
  35069. return HAL_OK;
  35070. 800f1e4: 2300 movs r3, #0
  35071. }
  35072. 800f1e6: 4618 mov r0, r3
  35073. 800f1e8: 3714 adds r7, #20
  35074. 800f1ea: 46bd mov sp, r7
  35075. 800f1ec: f85d 7b04 ldr.w r7, [sp], #4
  35076. 800f1f0: 4770 bx lr
  35077. 800f1f2: bf00 nop
  35078. 800f1f4: 40010000 .word 0x40010000
  35079. 800f1f8: 40000400 .word 0x40000400
  35080. 800f1fc: 40000800 .word 0x40000800
  35081. 800f200: 40000c00 .word 0x40000c00
  35082. 800f204: 40010400 .word 0x40010400
  35083. 800f208: 40001800 .word 0x40001800
  35084. 800f20c: 40014000 .word 0x40014000
  35085. 800f210: 00010007 .word 0x00010007
  35086. 0800f214 <HAL_TIM_Base_Start_IT>:
  35087. * @brief Starts the TIM Base generation in interrupt mode.
  35088. * @param htim TIM Base handle
  35089. * @retval HAL status
  35090. */
  35091. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  35092. {
  35093. 800f214: b480 push {r7}
  35094. 800f216: b085 sub sp, #20
  35095. 800f218: af00 add r7, sp, #0
  35096. 800f21a: 6078 str r0, [r7, #4]
  35097. /* Check the parameters */
  35098. assert_param(IS_TIM_INSTANCE(htim->Instance));
  35099. /* Check the TIM state */
  35100. if (htim->State != HAL_TIM_STATE_READY)
  35101. 800f21c: 687b ldr r3, [r7, #4]
  35102. 800f21e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35103. 800f222: b2db uxtb r3, r3
  35104. 800f224: 2b01 cmp r3, #1
  35105. 800f226: d001 beq.n 800f22c <HAL_TIM_Base_Start_IT+0x18>
  35106. {
  35107. return HAL_ERROR;
  35108. 800f228: 2301 movs r3, #1
  35109. 800f22a: e054 b.n 800f2d6 <HAL_TIM_Base_Start_IT+0xc2>
  35110. }
  35111. /* Set the TIM state */
  35112. htim->State = HAL_TIM_STATE_BUSY;
  35113. 800f22c: 687b ldr r3, [r7, #4]
  35114. 800f22e: 2202 movs r2, #2
  35115. 800f230: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35116. /* Enable the TIM Update interrupt */
  35117. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  35118. 800f234: 687b ldr r3, [r7, #4]
  35119. 800f236: 681b ldr r3, [r3, #0]
  35120. 800f238: 68da ldr r2, [r3, #12]
  35121. 800f23a: 687b ldr r3, [r7, #4]
  35122. 800f23c: 681b ldr r3, [r3, #0]
  35123. 800f23e: f042 0201 orr.w r2, r2, #1
  35124. 800f242: 60da str r2, [r3, #12]
  35125. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35126. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35127. 800f244: 687b ldr r3, [r7, #4]
  35128. 800f246: 681b ldr r3, [r3, #0]
  35129. 800f248: 4a26 ldr r2, [pc, #152] @ (800f2e4 <HAL_TIM_Base_Start_IT+0xd0>)
  35130. 800f24a: 4293 cmp r3, r2
  35131. 800f24c: d022 beq.n 800f294 <HAL_TIM_Base_Start_IT+0x80>
  35132. 800f24e: 687b ldr r3, [r7, #4]
  35133. 800f250: 681b ldr r3, [r3, #0]
  35134. 800f252: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35135. 800f256: d01d beq.n 800f294 <HAL_TIM_Base_Start_IT+0x80>
  35136. 800f258: 687b ldr r3, [r7, #4]
  35137. 800f25a: 681b ldr r3, [r3, #0]
  35138. 800f25c: 4a22 ldr r2, [pc, #136] @ (800f2e8 <HAL_TIM_Base_Start_IT+0xd4>)
  35139. 800f25e: 4293 cmp r3, r2
  35140. 800f260: d018 beq.n 800f294 <HAL_TIM_Base_Start_IT+0x80>
  35141. 800f262: 687b ldr r3, [r7, #4]
  35142. 800f264: 681b ldr r3, [r3, #0]
  35143. 800f266: 4a21 ldr r2, [pc, #132] @ (800f2ec <HAL_TIM_Base_Start_IT+0xd8>)
  35144. 800f268: 4293 cmp r3, r2
  35145. 800f26a: d013 beq.n 800f294 <HAL_TIM_Base_Start_IT+0x80>
  35146. 800f26c: 687b ldr r3, [r7, #4]
  35147. 800f26e: 681b ldr r3, [r3, #0]
  35148. 800f270: 4a1f ldr r2, [pc, #124] @ (800f2f0 <HAL_TIM_Base_Start_IT+0xdc>)
  35149. 800f272: 4293 cmp r3, r2
  35150. 800f274: d00e beq.n 800f294 <HAL_TIM_Base_Start_IT+0x80>
  35151. 800f276: 687b ldr r3, [r7, #4]
  35152. 800f278: 681b ldr r3, [r3, #0]
  35153. 800f27a: 4a1e ldr r2, [pc, #120] @ (800f2f4 <HAL_TIM_Base_Start_IT+0xe0>)
  35154. 800f27c: 4293 cmp r3, r2
  35155. 800f27e: d009 beq.n 800f294 <HAL_TIM_Base_Start_IT+0x80>
  35156. 800f280: 687b ldr r3, [r7, #4]
  35157. 800f282: 681b ldr r3, [r3, #0]
  35158. 800f284: 4a1c ldr r2, [pc, #112] @ (800f2f8 <HAL_TIM_Base_Start_IT+0xe4>)
  35159. 800f286: 4293 cmp r3, r2
  35160. 800f288: d004 beq.n 800f294 <HAL_TIM_Base_Start_IT+0x80>
  35161. 800f28a: 687b ldr r3, [r7, #4]
  35162. 800f28c: 681b ldr r3, [r3, #0]
  35163. 800f28e: 4a1b ldr r2, [pc, #108] @ (800f2fc <HAL_TIM_Base_Start_IT+0xe8>)
  35164. 800f290: 4293 cmp r3, r2
  35165. 800f292: d115 bne.n 800f2c0 <HAL_TIM_Base_Start_IT+0xac>
  35166. {
  35167. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35168. 800f294: 687b ldr r3, [r7, #4]
  35169. 800f296: 681b ldr r3, [r3, #0]
  35170. 800f298: 689a ldr r2, [r3, #8]
  35171. 800f29a: 4b19 ldr r3, [pc, #100] @ (800f300 <HAL_TIM_Base_Start_IT+0xec>)
  35172. 800f29c: 4013 ands r3, r2
  35173. 800f29e: 60fb str r3, [r7, #12]
  35174. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35175. 800f2a0: 68fb ldr r3, [r7, #12]
  35176. 800f2a2: 2b06 cmp r3, #6
  35177. 800f2a4: d015 beq.n 800f2d2 <HAL_TIM_Base_Start_IT+0xbe>
  35178. 800f2a6: 68fb ldr r3, [r7, #12]
  35179. 800f2a8: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35180. 800f2ac: d011 beq.n 800f2d2 <HAL_TIM_Base_Start_IT+0xbe>
  35181. {
  35182. __HAL_TIM_ENABLE(htim);
  35183. 800f2ae: 687b ldr r3, [r7, #4]
  35184. 800f2b0: 681b ldr r3, [r3, #0]
  35185. 800f2b2: 681a ldr r2, [r3, #0]
  35186. 800f2b4: 687b ldr r3, [r7, #4]
  35187. 800f2b6: 681b ldr r3, [r3, #0]
  35188. 800f2b8: f042 0201 orr.w r2, r2, #1
  35189. 800f2bc: 601a str r2, [r3, #0]
  35190. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35191. 800f2be: e008 b.n 800f2d2 <HAL_TIM_Base_Start_IT+0xbe>
  35192. }
  35193. }
  35194. else
  35195. {
  35196. __HAL_TIM_ENABLE(htim);
  35197. 800f2c0: 687b ldr r3, [r7, #4]
  35198. 800f2c2: 681b ldr r3, [r3, #0]
  35199. 800f2c4: 681a ldr r2, [r3, #0]
  35200. 800f2c6: 687b ldr r3, [r7, #4]
  35201. 800f2c8: 681b ldr r3, [r3, #0]
  35202. 800f2ca: f042 0201 orr.w r2, r2, #1
  35203. 800f2ce: 601a str r2, [r3, #0]
  35204. 800f2d0: e000 b.n 800f2d4 <HAL_TIM_Base_Start_IT+0xc0>
  35205. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35206. 800f2d2: bf00 nop
  35207. }
  35208. /* Return function status */
  35209. return HAL_OK;
  35210. 800f2d4: 2300 movs r3, #0
  35211. }
  35212. 800f2d6: 4618 mov r0, r3
  35213. 800f2d8: 3714 adds r7, #20
  35214. 800f2da: 46bd mov sp, r7
  35215. 800f2dc: f85d 7b04 ldr.w r7, [sp], #4
  35216. 800f2e0: 4770 bx lr
  35217. 800f2e2: bf00 nop
  35218. 800f2e4: 40010000 .word 0x40010000
  35219. 800f2e8: 40000400 .word 0x40000400
  35220. 800f2ec: 40000800 .word 0x40000800
  35221. 800f2f0: 40000c00 .word 0x40000c00
  35222. 800f2f4: 40010400 .word 0x40010400
  35223. 800f2f8: 40001800 .word 0x40001800
  35224. 800f2fc: 40014000 .word 0x40014000
  35225. 800f300: 00010007 .word 0x00010007
  35226. 0800f304 <HAL_TIM_PWM_Init>:
  35227. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  35228. * @param htim TIM PWM handle
  35229. * @retval HAL status
  35230. */
  35231. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  35232. {
  35233. 800f304: b580 push {r7, lr}
  35234. 800f306: b082 sub sp, #8
  35235. 800f308: af00 add r7, sp, #0
  35236. 800f30a: 6078 str r0, [r7, #4]
  35237. /* Check the TIM handle allocation */
  35238. if (htim == NULL)
  35239. 800f30c: 687b ldr r3, [r7, #4]
  35240. 800f30e: 2b00 cmp r3, #0
  35241. 800f310: d101 bne.n 800f316 <HAL_TIM_PWM_Init+0x12>
  35242. {
  35243. return HAL_ERROR;
  35244. 800f312: 2301 movs r3, #1
  35245. 800f314: e049 b.n 800f3aa <HAL_TIM_PWM_Init+0xa6>
  35246. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  35247. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  35248. assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
  35249. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  35250. if (htim->State == HAL_TIM_STATE_RESET)
  35251. 800f316: 687b ldr r3, [r7, #4]
  35252. 800f318: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
  35253. 800f31c: b2db uxtb r3, r3
  35254. 800f31e: 2b00 cmp r3, #0
  35255. 800f320: d106 bne.n 800f330 <HAL_TIM_PWM_Init+0x2c>
  35256. {
  35257. /* Allocate lock resource and initialize it */
  35258. htim->Lock = HAL_UNLOCKED;
  35259. 800f322: 687b ldr r3, [r7, #4]
  35260. 800f324: 2200 movs r2, #0
  35261. 800f326: f883 203c strb.w r2, [r3, #60] @ 0x3c
  35262. }
  35263. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  35264. htim->PWM_MspInitCallback(htim);
  35265. #else
  35266. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  35267. HAL_TIM_PWM_MspInit(htim);
  35268. 800f32a: 6878 ldr r0, [r7, #4]
  35269. 800f32c: f7f4 fd34 bl 8003d98 <HAL_TIM_PWM_MspInit>
  35270. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35271. }
  35272. /* Set the TIM state */
  35273. htim->State = HAL_TIM_STATE_BUSY;
  35274. 800f330: 687b ldr r3, [r7, #4]
  35275. 800f332: 2202 movs r2, #2
  35276. 800f334: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35277. /* Init the base time for the PWM */
  35278. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  35279. 800f338: 687b ldr r3, [r7, #4]
  35280. 800f33a: 681a ldr r2, [r3, #0]
  35281. 800f33c: 687b ldr r3, [r7, #4]
  35282. 800f33e: 3304 adds r3, #4
  35283. 800f340: 4619 mov r1, r3
  35284. 800f342: 4610 mov r0, r2
  35285. 800f344: f000 fd50 bl 800fde8 <TIM_Base_SetConfig>
  35286. /* Initialize the DMA burst operation state */
  35287. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  35288. 800f348: 687b ldr r3, [r7, #4]
  35289. 800f34a: 2201 movs r2, #1
  35290. 800f34c: f883 2048 strb.w r2, [r3, #72] @ 0x48
  35291. /* Initialize the TIM channels state */
  35292. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35293. 800f350: 687b ldr r3, [r7, #4]
  35294. 800f352: 2201 movs r2, #1
  35295. 800f354: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35296. 800f358: 687b ldr r3, [r7, #4]
  35297. 800f35a: 2201 movs r2, #1
  35298. 800f35c: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35299. 800f360: 687b ldr r3, [r7, #4]
  35300. 800f362: 2201 movs r2, #1
  35301. 800f364: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35302. 800f368: 687b ldr r3, [r7, #4]
  35303. 800f36a: 2201 movs r2, #1
  35304. 800f36c: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35305. 800f370: 687b ldr r3, [r7, #4]
  35306. 800f372: 2201 movs r2, #1
  35307. 800f374: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35308. 800f378: 687b ldr r3, [r7, #4]
  35309. 800f37a: 2201 movs r2, #1
  35310. 800f37c: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35311. TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  35312. 800f380: 687b ldr r3, [r7, #4]
  35313. 800f382: 2201 movs r2, #1
  35314. 800f384: f883 2044 strb.w r2, [r3, #68] @ 0x44
  35315. 800f388: 687b ldr r3, [r7, #4]
  35316. 800f38a: 2201 movs r2, #1
  35317. 800f38c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  35318. 800f390: 687b ldr r3, [r7, #4]
  35319. 800f392: 2201 movs r2, #1
  35320. 800f394: f883 2046 strb.w r2, [r3, #70] @ 0x46
  35321. 800f398: 687b ldr r3, [r7, #4]
  35322. 800f39a: 2201 movs r2, #1
  35323. 800f39c: f883 2047 strb.w r2, [r3, #71] @ 0x47
  35324. /* Initialize the TIM state*/
  35325. htim->State = HAL_TIM_STATE_READY;
  35326. 800f3a0: 687b ldr r3, [r7, #4]
  35327. 800f3a2: 2201 movs r2, #1
  35328. 800f3a4: f883 203d strb.w r2, [r3, #61] @ 0x3d
  35329. return HAL_OK;
  35330. 800f3a8: 2300 movs r3, #0
  35331. }
  35332. 800f3aa: 4618 mov r0, r3
  35333. 800f3ac: 3708 adds r7, #8
  35334. 800f3ae: 46bd mov sp, r7
  35335. 800f3b0: bd80 pop {r7, pc}
  35336. ...
  35337. 0800f3b4 <HAL_TIM_PWM_Start>:
  35338. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  35339. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  35340. * @retval HAL status
  35341. */
  35342. HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  35343. {
  35344. 800f3b4: b580 push {r7, lr}
  35345. 800f3b6: b084 sub sp, #16
  35346. 800f3b8: af00 add r7, sp, #0
  35347. 800f3ba: 6078 str r0, [r7, #4]
  35348. 800f3bc: 6039 str r1, [r7, #0]
  35349. /* Check the parameters */
  35350. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  35351. /* Check the TIM channel state */
  35352. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  35353. 800f3be: 683b ldr r3, [r7, #0]
  35354. 800f3c0: 2b00 cmp r3, #0
  35355. 800f3c2: d109 bne.n 800f3d8 <HAL_TIM_PWM_Start+0x24>
  35356. 800f3c4: 687b ldr r3, [r7, #4]
  35357. 800f3c6: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  35358. 800f3ca: b2db uxtb r3, r3
  35359. 800f3cc: 2b01 cmp r3, #1
  35360. 800f3ce: bf14 ite ne
  35361. 800f3d0: 2301 movne r3, #1
  35362. 800f3d2: 2300 moveq r3, #0
  35363. 800f3d4: b2db uxtb r3, r3
  35364. 800f3d6: e03c b.n 800f452 <HAL_TIM_PWM_Start+0x9e>
  35365. 800f3d8: 683b ldr r3, [r7, #0]
  35366. 800f3da: 2b04 cmp r3, #4
  35367. 800f3dc: d109 bne.n 800f3f2 <HAL_TIM_PWM_Start+0x3e>
  35368. 800f3de: 687b ldr r3, [r7, #4]
  35369. 800f3e0: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  35370. 800f3e4: b2db uxtb r3, r3
  35371. 800f3e6: 2b01 cmp r3, #1
  35372. 800f3e8: bf14 ite ne
  35373. 800f3ea: 2301 movne r3, #1
  35374. 800f3ec: 2300 moveq r3, #0
  35375. 800f3ee: b2db uxtb r3, r3
  35376. 800f3f0: e02f b.n 800f452 <HAL_TIM_PWM_Start+0x9e>
  35377. 800f3f2: 683b ldr r3, [r7, #0]
  35378. 800f3f4: 2b08 cmp r3, #8
  35379. 800f3f6: d109 bne.n 800f40c <HAL_TIM_PWM_Start+0x58>
  35380. 800f3f8: 687b ldr r3, [r7, #4]
  35381. 800f3fa: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  35382. 800f3fe: b2db uxtb r3, r3
  35383. 800f400: 2b01 cmp r3, #1
  35384. 800f402: bf14 ite ne
  35385. 800f404: 2301 movne r3, #1
  35386. 800f406: 2300 moveq r3, #0
  35387. 800f408: b2db uxtb r3, r3
  35388. 800f40a: e022 b.n 800f452 <HAL_TIM_PWM_Start+0x9e>
  35389. 800f40c: 683b ldr r3, [r7, #0]
  35390. 800f40e: 2b0c cmp r3, #12
  35391. 800f410: d109 bne.n 800f426 <HAL_TIM_PWM_Start+0x72>
  35392. 800f412: 687b ldr r3, [r7, #4]
  35393. 800f414: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  35394. 800f418: b2db uxtb r3, r3
  35395. 800f41a: 2b01 cmp r3, #1
  35396. 800f41c: bf14 ite ne
  35397. 800f41e: 2301 movne r3, #1
  35398. 800f420: 2300 moveq r3, #0
  35399. 800f422: b2db uxtb r3, r3
  35400. 800f424: e015 b.n 800f452 <HAL_TIM_PWM_Start+0x9e>
  35401. 800f426: 683b ldr r3, [r7, #0]
  35402. 800f428: 2b10 cmp r3, #16
  35403. 800f42a: d109 bne.n 800f440 <HAL_TIM_PWM_Start+0x8c>
  35404. 800f42c: 687b ldr r3, [r7, #4]
  35405. 800f42e: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  35406. 800f432: b2db uxtb r3, r3
  35407. 800f434: 2b01 cmp r3, #1
  35408. 800f436: bf14 ite ne
  35409. 800f438: 2301 movne r3, #1
  35410. 800f43a: 2300 moveq r3, #0
  35411. 800f43c: b2db uxtb r3, r3
  35412. 800f43e: e008 b.n 800f452 <HAL_TIM_PWM_Start+0x9e>
  35413. 800f440: 687b ldr r3, [r7, #4]
  35414. 800f442: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  35415. 800f446: b2db uxtb r3, r3
  35416. 800f448: 2b01 cmp r3, #1
  35417. 800f44a: bf14 ite ne
  35418. 800f44c: 2301 movne r3, #1
  35419. 800f44e: 2300 moveq r3, #0
  35420. 800f450: b2db uxtb r3, r3
  35421. 800f452: 2b00 cmp r3, #0
  35422. 800f454: d001 beq.n 800f45a <HAL_TIM_PWM_Start+0xa6>
  35423. {
  35424. return HAL_ERROR;
  35425. 800f456: 2301 movs r3, #1
  35426. 800f458: e0a1 b.n 800f59e <HAL_TIM_PWM_Start+0x1ea>
  35427. }
  35428. /* Set the TIM channel state */
  35429. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  35430. 800f45a: 683b ldr r3, [r7, #0]
  35431. 800f45c: 2b00 cmp r3, #0
  35432. 800f45e: d104 bne.n 800f46a <HAL_TIM_PWM_Start+0xb6>
  35433. 800f460: 687b ldr r3, [r7, #4]
  35434. 800f462: 2202 movs r2, #2
  35435. 800f464: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35436. 800f468: e023 b.n 800f4b2 <HAL_TIM_PWM_Start+0xfe>
  35437. 800f46a: 683b ldr r3, [r7, #0]
  35438. 800f46c: 2b04 cmp r3, #4
  35439. 800f46e: d104 bne.n 800f47a <HAL_TIM_PWM_Start+0xc6>
  35440. 800f470: 687b ldr r3, [r7, #4]
  35441. 800f472: 2202 movs r2, #2
  35442. 800f474: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35443. 800f478: e01b b.n 800f4b2 <HAL_TIM_PWM_Start+0xfe>
  35444. 800f47a: 683b ldr r3, [r7, #0]
  35445. 800f47c: 2b08 cmp r3, #8
  35446. 800f47e: d104 bne.n 800f48a <HAL_TIM_PWM_Start+0xd6>
  35447. 800f480: 687b ldr r3, [r7, #4]
  35448. 800f482: 2202 movs r2, #2
  35449. 800f484: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35450. 800f488: e013 b.n 800f4b2 <HAL_TIM_PWM_Start+0xfe>
  35451. 800f48a: 683b ldr r3, [r7, #0]
  35452. 800f48c: 2b0c cmp r3, #12
  35453. 800f48e: d104 bne.n 800f49a <HAL_TIM_PWM_Start+0xe6>
  35454. 800f490: 687b ldr r3, [r7, #4]
  35455. 800f492: 2202 movs r2, #2
  35456. 800f494: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35457. 800f498: e00b b.n 800f4b2 <HAL_TIM_PWM_Start+0xfe>
  35458. 800f49a: 683b ldr r3, [r7, #0]
  35459. 800f49c: 2b10 cmp r3, #16
  35460. 800f49e: d104 bne.n 800f4aa <HAL_TIM_PWM_Start+0xf6>
  35461. 800f4a0: 687b ldr r3, [r7, #4]
  35462. 800f4a2: 2202 movs r2, #2
  35463. 800f4a4: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35464. 800f4a8: e003 b.n 800f4b2 <HAL_TIM_PWM_Start+0xfe>
  35465. 800f4aa: 687b ldr r3, [r7, #4]
  35466. 800f4ac: 2202 movs r2, #2
  35467. 800f4ae: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35468. /* Enable the Capture compare channel */
  35469. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  35470. 800f4b2: 687b ldr r3, [r7, #4]
  35471. 800f4b4: 681b ldr r3, [r3, #0]
  35472. 800f4b6: 2201 movs r2, #1
  35473. 800f4b8: 6839 ldr r1, [r7, #0]
  35474. 800f4ba: 4618 mov r0, r3
  35475. 800f4bc: f001 f8ae bl 801061c <TIM_CCxChannelCmd>
  35476. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  35477. 800f4c0: 687b ldr r3, [r7, #4]
  35478. 800f4c2: 681b ldr r3, [r3, #0]
  35479. 800f4c4: 4a38 ldr r2, [pc, #224] @ (800f5a8 <HAL_TIM_PWM_Start+0x1f4>)
  35480. 800f4c6: 4293 cmp r3, r2
  35481. 800f4c8: d013 beq.n 800f4f2 <HAL_TIM_PWM_Start+0x13e>
  35482. 800f4ca: 687b ldr r3, [r7, #4]
  35483. 800f4cc: 681b ldr r3, [r3, #0]
  35484. 800f4ce: 4a37 ldr r2, [pc, #220] @ (800f5ac <HAL_TIM_PWM_Start+0x1f8>)
  35485. 800f4d0: 4293 cmp r3, r2
  35486. 800f4d2: d00e beq.n 800f4f2 <HAL_TIM_PWM_Start+0x13e>
  35487. 800f4d4: 687b ldr r3, [r7, #4]
  35488. 800f4d6: 681b ldr r3, [r3, #0]
  35489. 800f4d8: 4a35 ldr r2, [pc, #212] @ (800f5b0 <HAL_TIM_PWM_Start+0x1fc>)
  35490. 800f4da: 4293 cmp r3, r2
  35491. 800f4dc: d009 beq.n 800f4f2 <HAL_TIM_PWM_Start+0x13e>
  35492. 800f4de: 687b ldr r3, [r7, #4]
  35493. 800f4e0: 681b ldr r3, [r3, #0]
  35494. 800f4e2: 4a34 ldr r2, [pc, #208] @ (800f5b4 <HAL_TIM_PWM_Start+0x200>)
  35495. 800f4e4: 4293 cmp r3, r2
  35496. 800f4e6: d004 beq.n 800f4f2 <HAL_TIM_PWM_Start+0x13e>
  35497. 800f4e8: 687b ldr r3, [r7, #4]
  35498. 800f4ea: 681b ldr r3, [r3, #0]
  35499. 800f4ec: 4a32 ldr r2, [pc, #200] @ (800f5b8 <HAL_TIM_PWM_Start+0x204>)
  35500. 800f4ee: 4293 cmp r3, r2
  35501. 800f4f0: d101 bne.n 800f4f6 <HAL_TIM_PWM_Start+0x142>
  35502. 800f4f2: 2301 movs r3, #1
  35503. 800f4f4: e000 b.n 800f4f8 <HAL_TIM_PWM_Start+0x144>
  35504. 800f4f6: 2300 movs r3, #0
  35505. 800f4f8: 2b00 cmp r3, #0
  35506. 800f4fa: d007 beq.n 800f50c <HAL_TIM_PWM_Start+0x158>
  35507. {
  35508. /* Enable the main output */
  35509. __HAL_TIM_MOE_ENABLE(htim);
  35510. 800f4fc: 687b ldr r3, [r7, #4]
  35511. 800f4fe: 681b ldr r3, [r3, #0]
  35512. 800f500: 6c5a ldr r2, [r3, #68] @ 0x44
  35513. 800f502: 687b ldr r3, [r7, #4]
  35514. 800f504: 681b ldr r3, [r3, #0]
  35515. 800f506: f442 4200 orr.w r2, r2, #32768 @ 0x8000
  35516. 800f50a: 645a str r2, [r3, #68] @ 0x44
  35517. }
  35518. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  35519. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  35520. 800f50c: 687b ldr r3, [r7, #4]
  35521. 800f50e: 681b ldr r3, [r3, #0]
  35522. 800f510: 4a25 ldr r2, [pc, #148] @ (800f5a8 <HAL_TIM_PWM_Start+0x1f4>)
  35523. 800f512: 4293 cmp r3, r2
  35524. 800f514: d022 beq.n 800f55c <HAL_TIM_PWM_Start+0x1a8>
  35525. 800f516: 687b ldr r3, [r7, #4]
  35526. 800f518: 681b ldr r3, [r3, #0]
  35527. 800f51a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  35528. 800f51e: d01d beq.n 800f55c <HAL_TIM_PWM_Start+0x1a8>
  35529. 800f520: 687b ldr r3, [r7, #4]
  35530. 800f522: 681b ldr r3, [r3, #0]
  35531. 800f524: 4a25 ldr r2, [pc, #148] @ (800f5bc <HAL_TIM_PWM_Start+0x208>)
  35532. 800f526: 4293 cmp r3, r2
  35533. 800f528: d018 beq.n 800f55c <HAL_TIM_PWM_Start+0x1a8>
  35534. 800f52a: 687b ldr r3, [r7, #4]
  35535. 800f52c: 681b ldr r3, [r3, #0]
  35536. 800f52e: 4a24 ldr r2, [pc, #144] @ (800f5c0 <HAL_TIM_PWM_Start+0x20c>)
  35537. 800f530: 4293 cmp r3, r2
  35538. 800f532: d013 beq.n 800f55c <HAL_TIM_PWM_Start+0x1a8>
  35539. 800f534: 687b ldr r3, [r7, #4]
  35540. 800f536: 681b ldr r3, [r3, #0]
  35541. 800f538: 4a22 ldr r2, [pc, #136] @ (800f5c4 <HAL_TIM_PWM_Start+0x210>)
  35542. 800f53a: 4293 cmp r3, r2
  35543. 800f53c: d00e beq.n 800f55c <HAL_TIM_PWM_Start+0x1a8>
  35544. 800f53e: 687b ldr r3, [r7, #4]
  35545. 800f540: 681b ldr r3, [r3, #0]
  35546. 800f542: 4a1a ldr r2, [pc, #104] @ (800f5ac <HAL_TIM_PWM_Start+0x1f8>)
  35547. 800f544: 4293 cmp r3, r2
  35548. 800f546: d009 beq.n 800f55c <HAL_TIM_PWM_Start+0x1a8>
  35549. 800f548: 687b ldr r3, [r7, #4]
  35550. 800f54a: 681b ldr r3, [r3, #0]
  35551. 800f54c: 4a1e ldr r2, [pc, #120] @ (800f5c8 <HAL_TIM_PWM_Start+0x214>)
  35552. 800f54e: 4293 cmp r3, r2
  35553. 800f550: d004 beq.n 800f55c <HAL_TIM_PWM_Start+0x1a8>
  35554. 800f552: 687b ldr r3, [r7, #4]
  35555. 800f554: 681b ldr r3, [r3, #0]
  35556. 800f556: 4a16 ldr r2, [pc, #88] @ (800f5b0 <HAL_TIM_PWM_Start+0x1fc>)
  35557. 800f558: 4293 cmp r3, r2
  35558. 800f55a: d115 bne.n 800f588 <HAL_TIM_PWM_Start+0x1d4>
  35559. {
  35560. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  35561. 800f55c: 687b ldr r3, [r7, #4]
  35562. 800f55e: 681b ldr r3, [r3, #0]
  35563. 800f560: 689a ldr r2, [r3, #8]
  35564. 800f562: 4b1a ldr r3, [pc, #104] @ (800f5cc <HAL_TIM_PWM_Start+0x218>)
  35565. 800f564: 4013 ands r3, r2
  35566. 800f566: 60fb str r3, [r7, #12]
  35567. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35568. 800f568: 68fb ldr r3, [r7, #12]
  35569. 800f56a: 2b06 cmp r3, #6
  35570. 800f56c: d015 beq.n 800f59a <HAL_TIM_PWM_Start+0x1e6>
  35571. 800f56e: 68fb ldr r3, [r7, #12]
  35572. 800f570: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  35573. 800f574: d011 beq.n 800f59a <HAL_TIM_PWM_Start+0x1e6>
  35574. {
  35575. __HAL_TIM_ENABLE(htim);
  35576. 800f576: 687b ldr r3, [r7, #4]
  35577. 800f578: 681b ldr r3, [r3, #0]
  35578. 800f57a: 681a ldr r2, [r3, #0]
  35579. 800f57c: 687b ldr r3, [r7, #4]
  35580. 800f57e: 681b ldr r3, [r3, #0]
  35581. 800f580: f042 0201 orr.w r2, r2, #1
  35582. 800f584: 601a str r2, [r3, #0]
  35583. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35584. 800f586: e008 b.n 800f59a <HAL_TIM_PWM_Start+0x1e6>
  35585. }
  35586. }
  35587. else
  35588. {
  35589. __HAL_TIM_ENABLE(htim);
  35590. 800f588: 687b ldr r3, [r7, #4]
  35591. 800f58a: 681b ldr r3, [r3, #0]
  35592. 800f58c: 681a ldr r2, [r3, #0]
  35593. 800f58e: 687b ldr r3, [r7, #4]
  35594. 800f590: 681b ldr r3, [r3, #0]
  35595. 800f592: f042 0201 orr.w r2, r2, #1
  35596. 800f596: 601a str r2, [r3, #0]
  35597. 800f598: e000 b.n 800f59c <HAL_TIM_PWM_Start+0x1e8>
  35598. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  35599. 800f59a: bf00 nop
  35600. }
  35601. /* Return function status */
  35602. return HAL_OK;
  35603. 800f59c: 2300 movs r3, #0
  35604. }
  35605. 800f59e: 4618 mov r0, r3
  35606. 800f5a0: 3710 adds r7, #16
  35607. 800f5a2: 46bd mov sp, r7
  35608. 800f5a4: bd80 pop {r7, pc}
  35609. 800f5a6: bf00 nop
  35610. 800f5a8: 40010000 .word 0x40010000
  35611. 800f5ac: 40010400 .word 0x40010400
  35612. 800f5b0: 40014000 .word 0x40014000
  35613. 800f5b4: 40014400 .word 0x40014400
  35614. 800f5b8: 40014800 .word 0x40014800
  35615. 800f5bc: 40000400 .word 0x40000400
  35616. 800f5c0: 40000800 .word 0x40000800
  35617. 800f5c4: 40000c00 .word 0x40000c00
  35618. 800f5c8: 40001800 .word 0x40001800
  35619. 800f5cc: 00010007 .word 0x00010007
  35620. 0800f5d0 <HAL_TIM_PWM_Stop>:
  35621. * @arg TIM_CHANNEL_5: TIM Channel 5 selected
  35622. * @arg TIM_CHANNEL_6: TIM Channel 6 selected
  35623. * @retval HAL status
  35624. */
  35625. HAL_StatusTypeDef HAL_TIM_PWM_Stop(TIM_HandleTypeDef *htim, uint32_t Channel)
  35626. {
  35627. 800f5d0: b580 push {r7, lr}
  35628. 800f5d2: b082 sub sp, #8
  35629. 800f5d4: af00 add r7, sp, #0
  35630. 800f5d6: 6078 str r0, [r7, #4]
  35631. 800f5d8: 6039 str r1, [r7, #0]
  35632. /* Check the parameters */
  35633. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  35634. /* Disable the Capture compare channel */
  35635. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE);
  35636. 800f5da: 687b ldr r3, [r7, #4]
  35637. 800f5dc: 681b ldr r3, [r3, #0]
  35638. 800f5de: 2200 movs r2, #0
  35639. 800f5e0: 6839 ldr r1, [r7, #0]
  35640. 800f5e2: 4618 mov r0, r3
  35641. 800f5e4: f001 f81a bl 801061c <TIM_CCxChannelCmd>
  35642. if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET)
  35643. 800f5e8: 687b ldr r3, [r7, #4]
  35644. 800f5ea: 681b ldr r3, [r3, #0]
  35645. 800f5ec: 4a3e ldr r2, [pc, #248] @ (800f6e8 <HAL_TIM_PWM_Stop+0x118>)
  35646. 800f5ee: 4293 cmp r3, r2
  35647. 800f5f0: d013 beq.n 800f61a <HAL_TIM_PWM_Stop+0x4a>
  35648. 800f5f2: 687b ldr r3, [r7, #4]
  35649. 800f5f4: 681b ldr r3, [r3, #0]
  35650. 800f5f6: 4a3d ldr r2, [pc, #244] @ (800f6ec <HAL_TIM_PWM_Stop+0x11c>)
  35651. 800f5f8: 4293 cmp r3, r2
  35652. 800f5fa: d00e beq.n 800f61a <HAL_TIM_PWM_Stop+0x4a>
  35653. 800f5fc: 687b ldr r3, [r7, #4]
  35654. 800f5fe: 681b ldr r3, [r3, #0]
  35655. 800f600: 4a3b ldr r2, [pc, #236] @ (800f6f0 <HAL_TIM_PWM_Stop+0x120>)
  35656. 800f602: 4293 cmp r3, r2
  35657. 800f604: d009 beq.n 800f61a <HAL_TIM_PWM_Stop+0x4a>
  35658. 800f606: 687b ldr r3, [r7, #4]
  35659. 800f608: 681b ldr r3, [r3, #0]
  35660. 800f60a: 4a3a ldr r2, [pc, #232] @ (800f6f4 <HAL_TIM_PWM_Stop+0x124>)
  35661. 800f60c: 4293 cmp r3, r2
  35662. 800f60e: d004 beq.n 800f61a <HAL_TIM_PWM_Stop+0x4a>
  35663. 800f610: 687b ldr r3, [r7, #4]
  35664. 800f612: 681b ldr r3, [r3, #0]
  35665. 800f614: 4a38 ldr r2, [pc, #224] @ (800f6f8 <HAL_TIM_PWM_Stop+0x128>)
  35666. 800f616: 4293 cmp r3, r2
  35667. 800f618: d101 bne.n 800f61e <HAL_TIM_PWM_Stop+0x4e>
  35668. 800f61a: 2301 movs r3, #1
  35669. 800f61c: e000 b.n 800f620 <HAL_TIM_PWM_Stop+0x50>
  35670. 800f61e: 2300 movs r3, #0
  35671. 800f620: 2b00 cmp r3, #0
  35672. 800f622: d017 beq.n 800f654 <HAL_TIM_PWM_Stop+0x84>
  35673. {
  35674. /* Disable the Main Output */
  35675. __HAL_TIM_MOE_DISABLE(htim);
  35676. 800f624: 687b ldr r3, [r7, #4]
  35677. 800f626: 681b ldr r3, [r3, #0]
  35678. 800f628: 6a1a ldr r2, [r3, #32]
  35679. 800f62a: f241 1311 movw r3, #4369 @ 0x1111
  35680. 800f62e: 4013 ands r3, r2
  35681. 800f630: 2b00 cmp r3, #0
  35682. 800f632: d10f bne.n 800f654 <HAL_TIM_PWM_Stop+0x84>
  35683. 800f634: 687b ldr r3, [r7, #4]
  35684. 800f636: 681b ldr r3, [r3, #0]
  35685. 800f638: 6a1a ldr r2, [r3, #32]
  35686. 800f63a: f240 4344 movw r3, #1092 @ 0x444
  35687. 800f63e: 4013 ands r3, r2
  35688. 800f640: 2b00 cmp r3, #0
  35689. 800f642: d107 bne.n 800f654 <HAL_TIM_PWM_Stop+0x84>
  35690. 800f644: 687b ldr r3, [r7, #4]
  35691. 800f646: 681b ldr r3, [r3, #0]
  35692. 800f648: 6c5a ldr r2, [r3, #68] @ 0x44
  35693. 800f64a: 687b ldr r3, [r7, #4]
  35694. 800f64c: 681b ldr r3, [r3, #0]
  35695. 800f64e: f422 4200 bic.w r2, r2, #32768 @ 0x8000
  35696. 800f652: 645a str r2, [r3, #68] @ 0x44
  35697. }
  35698. /* Disable the Peripheral */
  35699. __HAL_TIM_DISABLE(htim);
  35700. 800f654: 687b ldr r3, [r7, #4]
  35701. 800f656: 681b ldr r3, [r3, #0]
  35702. 800f658: 6a1a ldr r2, [r3, #32]
  35703. 800f65a: f241 1311 movw r3, #4369 @ 0x1111
  35704. 800f65e: 4013 ands r3, r2
  35705. 800f660: 2b00 cmp r3, #0
  35706. 800f662: d10f bne.n 800f684 <HAL_TIM_PWM_Stop+0xb4>
  35707. 800f664: 687b ldr r3, [r7, #4]
  35708. 800f666: 681b ldr r3, [r3, #0]
  35709. 800f668: 6a1a ldr r2, [r3, #32]
  35710. 800f66a: f240 4344 movw r3, #1092 @ 0x444
  35711. 800f66e: 4013 ands r3, r2
  35712. 800f670: 2b00 cmp r3, #0
  35713. 800f672: d107 bne.n 800f684 <HAL_TIM_PWM_Stop+0xb4>
  35714. 800f674: 687b ldr r3, [r7, #4]
  35715. 800f676: 681b ldr r3, [r3, #0]
  35716. 800f678: 681a ldr r2, [r3, #0]
  35717. 800f67a: 687b ldr r3, [r7, #4]
  35718. 800f67c: 681b ldr r3, [r3, #0]
  35719. 800f67e: f022 0201 bic.w r2, r2, #1
  35720. 800f682: 601a str r2, [r3, #0]
  35721. /* Set the TIM channel state */
  35722. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY);
  35723. 800f684: 683b ldr r3, [r7, #0]
  35724. 800f686: 2b00 cmp r3, #0
  35725. 800f688: d104 bne.n 800f694 <HAL_TIM_PWM_Stop+0xc4>
  35726. 800f68a: 687b ldr r3, [r7, #4]
  35727. 800f68c: 2201 movs r2, #1
  35728. 800f68e: f883 203e strb.w r2, [r3, #62] @ 0x3e
  35729. 800f692: e023 b.n 800f6dc <HAL_TIM_PWM_Stop+0x10c>
  35730. 800f694: 683b ldr r3, [r7, #0]
  35731. 800f696: 2b04 cmp r3, #4
  35732. 800f698: d104 bne.n 800f6a4 <HAL_TIM_PWM_Stop+0xd4>
  35733. 800f69a: 687b ldr r3, [r7, #4]
  35734. 800f69c: 2201 movs r2, #1
  35735. 800f69e: f883 203f strb.w r2, [r3, #63] @ 0x3f
  35736. 800f6a2: e01b b.n 800f6dc <HAL_TIM_PWM_Stop+0x10c>
  35737. 800f6a4: 683b ldr r3, [r7, #0]
  35738. 800f6a6: 2b08 cmp r3, #8
  35739. 800f6a8: d104 bne.n 800f6b4 <HAL_TIM_PWM_Stop+0xe4>
  35740. 800f6aa: 687b ldr r3, [r7, #4]
  35741. 800f6ac: 2201 movs r2, #1
  35742. 800f6ae: f883 2040 strb.w r2, [r3, #64] @ 0x40
  35743. 800f6b2: e013 b.n 800f6dc <HAL_TIM_PWM_Stop+0x10c>
  35744. 800f6b4: 683b ldr r3, [r7, #0]
  35745. 800f6b6: 2b0c cmp r3, #12
  35746. 800f6b8: d104 bne.n 800f6c4 <HAL_TIM_PWM_Stop+0xf4>
  35747. 800f6ba: 687b ldr r3, [r7, #4]
  35748. 800f6bc: 2201 movs r2, #1
  35749. 800f6be: f883 2041 strb.w r2, [r3, #65] @ 0x41
  35750. 800f6c2: e00b b.n 800f6dc <HAL_TIM_PWM_Stop+0x10c>
  35751. 800f6c4: 683b ldr r3, [r7, #0]
  35752. 800f6c6: 2b10 cmp r3, #16
  35753. 800f6c8: d104 bne.n 800f6d4 <HAL_TIM_PWM_Stop+0x104>
  35754. 800f6ca: 687b ldr r3, [r7, #4]
  35755. 800f6cc: 2201 movs r2, #1
  35756. 800f6ce: f883 2042 strb.w r2, [r3, #66] @ 0x42
  35757. 800f6d2: e003 b.n 800f6dc <HAL_TIM_PWM_Stop+0x10c>
  35758. 800f6d4: 687b ldr r3, [r7, #4]
  35759. 800f6d6: 2201 movs r2, #1
  35760. 800f6d8: f883 2043 strb.w r2, [r3, #67] @ 0x43
  35761. /* Return function status */
  35762. return HAL_OK;
  35763. 800f6dc: 2300 movs r3, #0
  35764. }
  35765. 800f6de: 4618 mov r0, r3
  35766. 800f6e0: 3708 adds r7, #8
  35767. 800f6e2: 46bd mov sp, r7
  35768. 800f6e4: bd80 pop {r7, pc}
  35769. 800f6e6: bf00 nop
  35770. 800f6e8: 40010000 .word 0x40010000
  35771. 800f6ec: 40010400 .word 0x40010400
  35772. 800f6f0: 40014000 .word 0x40014000
  35773. 800f6f4: 40014400 .word 0x40014400
  35774. 800f6f8: 40014800 .word 0x40014800
  35775. 0800f6fc <HAL_TIM_IRQHandler>:
  35776. * @brief This function handles TIM interrupts requests.
  35777. * @param htim TIM handle
  35778. * @retval None
  35779. */
  35780. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  35781. {
  35782. 800f6fc: b580 push {r7, lr}
  35783. 800f6fe: b084 sub sp, #16
  35784. 800f700: af00 add r7, sp, #0
  35785. 800f702: 6078 str r0, [r7, #4]
  35786. uint32_t itsource = htim->Instance->DIER;
  35787. 800f704: 687b ldr r3, [r7, #4]
  35788. 800f706: 681b ldr r3, [r3, #0]
  35789. 800f708: 68db ldr r3, [r3, #12]
  35790. 800f70a: 60fb str r3, [r7, #12]
  35791. uint32_t itflag = htim->Instance->SR;
  35792. 800f70c: 687b ldr r3, [r7, #4]
  35793. 800f70e: 681b ldr r3, [r3, #0]
  35794. 800f710: 691b ldr r3, [r3, #16]
  35795. 800f712: 60bb str r3, [r7, #8]
  35796. /* Capture compare 1 event */
  35797. if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
  35798. 800f714: 68bb ldr r3, [r7, #8]
  35799. 800f716: f003 0302 and.w r3, r3, #2
  35800. 800f71a: 2b00 cmp r3, #0
  35801. 800f71c: d020 beq.n 800f760 <HAL_TIM_IRQHandler+0x64>
  35802. {
  35803. if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
  35804. 800f71e: 68fb ldr r3, [r7, #12]
  35805. 800f720: f003 0302 and.w r3, r3, #2
  35806. 800f724: 2b00 cmp r3, #0
  35807. 800f726: d01b beq.n 800f760 <HAL_TIM_IRQHandler+0x64>
  35808. {
  35809. {
  35810. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
  35811. 800f728: 687b ldr r3, [r7, #4]
  35812. 800f72a: 681b ldr r3, [r3, #0]
  35813. 800f72c: f06f 0202 mvn.w r2, #2
  35814. 800f730: 611a str r2, [r3, #16]
  35815. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  35816. 800f732: 687b ldr r3, [r7, #4]
  35817. 800f734: 2201 movs r2, #1
  35818. 800f736: 771a strb r2, [r3, #28]
  35819. /* Input capture event */
  35820. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  35821. 800f738: 687b ldr r3, [r7, #4]
  35822. 800f73a: 681b ldr r3, [r3, #0]
  35823. 800f73c: 699b ldr r3, [r3, #24]
  35824. 800f73e: f003 0303 and.w r3, r3, #3
  35825. 800f742: 2b00 cmp r3, #0
  35826. 800f744: d003 beq.n 800f74e <HAL_TIM_IRQHandler+0x52>
  35827. {
  35828. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35829. htim->IC_CaptureCallback(htim);
  35830. #else
  35831. HAL_TIM_IC_CaptureCallback(htim);
  35832. 800f746: 6878 ldr r0, [r7, #4]
  35833. 800f748: f000 faf6 bl 800fd38 <HAL_TIM_IC_CaptureCallback>
  35834. 800f74c: e005 b.n 800f75a <HAL_TIM_IRQHandler+0x5e>
  35835. {
  35836. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35837. htim->OC_DelayElapsedCallback(htim);
  35838. htim->PWM_PulseFinishedCallback(htim);
  35839. #else
  35840. HAL_TIM_OC_DelayElapsedCallback(htim);
  35841. 800f74e: 6878 ldr r0, [r7, #4]
  35842. 800f750: f000 fae8 bl 800fd24 <HAL_TIM_OC_DelayElapsedCallback>
  35843. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35844. 800f754: 6878 ldr r0, [r7, #4]
  35845. 800f756: f000 faf9 bl 800fd4c <HAL_TIM_PWM_PulseFinishedCallback>
  35846. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35847. }
  35848. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35849. 800f75a: 687b ldr r3, [r7, #4]
  35850. 800f75c: 2200 movs r2, #0
  35851. 800f75e: 771a strb r2, [r3, #28]
  35852. }
  35853. }
  35854. }
  35855. /* Capture compare 2 event */
  35856. if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
  35857. 800f760: 68bb ldr r3, [r7, #8]
  35858. 800f762: f003 0304 and.w r3, r3, #4
  35859. 800f766: 2b00 cmp r3, #0
  35860. 800f768: d020 beq.n 800f7ac <HAL_TIM_IRQHandler+0xb0>
  35861. {
  35862. if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
  35863. 800f76a: 68fb ldr r3, [r7, #12]
  35864. 800f76c: f003 0304 and.w r3, r3, #4
  35865. 800f770: 2b00 cmp r3, #0
  35866. 800f772: d01b beq.n 800f7ac <HAL_TIM_IRQHandler+0xb0>
  35867. {
  35868. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
  35869. 800f774: 687b ldr r3, [r7, #4]
  35870. 800f776: 681b ldr r3, [r3, #0]
  35871. 800f778: f06f 0204 mvn.w r2, #4
  35872. 800f77c: 611a str r2, [r3, #16]
  35873. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  35874. 800f77e: 687b ldr r3, [r7, #4]
  35875. 800f780: 2202 movs r2, #2
  35876. 800f782: 771a strb r2, [r3, #28]
  35877. /* Input capture event */
  35878. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  35879. 800f784: 687b ldr r3, [r7, #4]
  35880. 800f786: 681b ldr r3, [r3, #0]
  35881. 800f788: 699b ldr r3, [r3, #24]
  35882. 800f78a: f403 7340 and.w r3, r3, #768 @ 0x300
  35883. 800f78e: 2b00 cmp r3, #0
  35884. 800f790: d003 beq.n 800f79a <HAL_TIM_IRQHandler+0x9e>
  35885. {
  35886. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35887. htim->IC_CaptureCallback(htim);
  35888. #else
  35889. HAL_TIM_IC_CaptureCallback(htim);
  35890. 800f792: 6878 ldr r0, [r7, #4]
  35891. 800f794: f000 fad0 bl 800fd38 <HAL_TIM_IC_CaptureCallback>
  35892. 800f798: e005 b.n 800f7a6 <HAL_TIM_IRQHandler+0xaa>
  35893. {
  35894. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35895. htim->OC_DelayElapsedCallback(htim);
  35896. htim->PWM_PulseFinishedCallback(htim);
  35897. #else
  35898. HAL_TIM_OC_DelayElapsedCallback(htim);
  35899. 800f79a: 6878 ldr r0, [r7, #4]
  35900. 800f79c: f000 fac2 bl 800fd24 <HAL_TIM_OC_DelayElapsedCallback>
  35901. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35902. 800f7a0: 6878 ldr r0, [r7, #4]
  35903. 800f7a2: f000 fad3 bl 800fd4c <HAL_TIM_PWM_PulseFinishedCallback>
  35904. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35905. }
  35906. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35907. 800f7a6: 687b ldr r3, [r7, #4]
  35908. 800f7a8: 2200 movs r2, #0
  35909. 800f7aa: 771a strb r2, [r3, #28]
  35910. }
  35911. }
  35912. /* Capture compare 3 event */
  35913. if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
  35914. 800f7ac: 68bb ldr r3, [r7, #8]
  35915. 800f7ae: f003 0308 and.w r3, r3, #8
  35916. 800f7b2: 2b00 cmp r3, #0
  35917. 800f7b4: d020 beq.n 800f7f8 <HAL_TIM_IRQHandler+0xfc>
  35918. {
  35919. if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
  35920. 800f7b6: 68fb ldr r3, [r7, #12]
  35921. 800f7b8: f003 0308 and.w r3, r3, #8
  35922. 800f7bc: 2b00 cmp r3, #0
  35923. 800f7be: d01b beq.n 800f7f8 <HAL_TIM_IRQHandler+0xfc>
  35924. {
  35925. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
  35926. 800f7c0: 687b ldr r3, [r7, #4]
  35927. 800f7c2: 681b ldr r3, [r3, #0]
  35928. 800f7c4: f06f 0208 mvn.w r2, #8
  35929. 800f7c8: 611a str r2, [r3, #16]
  35930. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  35931. 800f7ca: 687b ldr r3, [r7, #4]
  35932. 800f7cc: 2204 movs r2, #4
  35933. 800f7ce: 771a strb r2, [r3, #28]
  35934. /* Input capture event */
  35935. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  35936. 800f7d0: 687b ldr r3, [r7, #4]
  35937. 800f7d2: 681b ldr r3, [r3, #0]
  35938. 800f7d4: 69db ldr r3, [r3, #28]
  35939. 800f7d6: f003 0303 and.w r3, r3, #3
  35940. 800f7da: 2b00 cmp r3, #0
  35941. 800f7dc: d003 beq.n 800f7e6 <HAL_TIM_IRQHandler+0xea>
  35942. {
  35943. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35944. htim->IC_CaptureCallback(htim);
  35945. #else
  35946. HAL_TIM_IC_CaptureCallback(htim);
  35947. 800f7de: 6878 ldr r0, [r7, #4]
  35948. 800f7e0: f000 faaa bl 800fd38 <HAL_TIM_IC_CaptureCallback>
  35949. 800f7e4: e005 b.n 800f7f2 <HAL_TIM_IRQHandler+0xf6>
  35950. {
  35951. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  35952. htim->OC_DelayElapsedCallback(htim);
  35953. htim->PWM_PulseFinishedCallback(htim);
  35954. #else
  35955. HAL_TIM_OC_DelayElapsedCallback(htim);
  35956. 800f7e6: 6878 ldr r0, [r7, #4]
  35957. 800f7e8: f000 fa9c bl 800fd24 <HAL_TIM_OC_DelayElapsedCallback>
  35958. HAL_TIM_PWM_PulseFinishedCallback(htim);
  35959. 800f7ec: 6878 ldr r0, [r7, #4]
  35960. 800f7ee: f000 faad bl 800fd4c <HAL_TIM_PWM_PulseFinishedCallback>
  35961. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  35962. }
  35963. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  35964. 800f7f2: 687b ldr r3, [r7, #4]
  35965. 800f7f4: 2200 movs r2, #0
  35966. 800f7f6: 771a strb r2, [r3, #28]
  35967. }
  35968. }
  35969. /* Capture compare 4 event */
  35970. if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
  35971. 800f7f8: 68bb ldr r3, [r7, #8]
  35972. 800f7fa: f003 0310 and.w r3, r3, #16
  35973. 800f7fe: 2b00 cmp r3, #0
  35974. 800f800: d020 beq.n 800f844 <HAL_TIM_IRQHandler+0x148>
  35975. {
  35976. if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
  35977. 800f802: 68fb ldr r3, [r7, #12]
  35978. 800f804: f003 0310 and.w r3, r3, #16
  35979. 800f808: 2b00 cmp r3, #0
  35980. 800f80a: d01b beq.n 800f844 <HAL_TIM_IRQHandler+0x148>
  35981. {
  35982. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
  35983. 800f80c: 687b ldr r3, [r7, #4]
  35984. 800f80e: 681b ldr r3, [r3, #0]
  35985. 800f810: f06f 0210 mvn.w r2, #16
  35986. 800f814: 611a str r2, [r3, #16]
  35987. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  35988. 800f816: 687b ldr r3, [r7, #4]
  35989. 800f818: 2208 movs r2, #8
  35990. 800f81a: 771a strb r2, [r3, #28]
  35991. /* Input capture event */
  35992. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  35993. 800f81c: 687b ldr r3, [r7, #4]
  35994. 800f81e: 681b ldr r3, [r3, #0]
  35995. 800f820: 69db ldr r3, [r3, #28]
  35996. 800f822: f403 7340 and.w r3, r3, #768 @ 0x300
  35997. 800f826: 2b00 cmp r3, #0
  35998. 800f828: d003 beq.n 800f832 <HAL_TIM_IRQHandler+0x136>
  35999. {
  36000. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36001. htim->IC_CaptureCallback(htim);
  36002. #else
  36003. HAL_TIM_IC_CaptureCallback(htim);
  36004. 800f82a: 6878 ldr r0, [r7, #4]
  36005. 800f82c: f000 fa84 bl 800fd38 <HAL_TIM_IC_CaptureCallback>
  36006. 800f830: e005 b.n 800f83e <HAL_TIM_IRQHandler+0x142>
  36007. {
  36008. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36009. htim->OC_DelayElapsedCallback(htim);
  36010. htim->PWM_PulseFinishedCallback(htim);
  36011. #else
  36012. HAL_TIM_OC_DelayElapsedCallback(htim);
  36013. 800f832: 6878 ldr r0, [r7, #4]
  36014. 800f834: f000 fa76 bl 800fd24 <HAL_TIM_OC_DelayElapsedCallback>
  36015. HAL_TIM_PWM_PulseFinishedCallback(htim);
  36016. 800f838: 6878 ldr r0, [r7, #4]
  36017. 800f83a: f000 fa87 bl 800fd4c <HAL_TIM_PWM_PulseFinishedCallback>
  36018. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36019. }
  36020. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  36021. 800f83e: 687b ldr r3, [r7, #4]
  36022. 800f840: 2200 movs r2, #0
  36023. 800f842: 771a strb r2, [r3, #28]
  36024. }
  36025. }
  36026. /* TIM Update event */
  36027. if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
  36028. 800f844: 68bb ldr r3, [r7, #8]
  36029. 800f846: f003 0301 and.w r3, r3, #1
  36030. 800f84a: 2b00 cmp r3, #0
  36031. 800f84c: d00c beq.n 800f868 <HAL_TIM_IRQHandler+0x16c>
  36032. {
  36033. if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
  36034. 800f84e: 68fb ldr r3, [r7, #12]
  36035. 800f850: f003 0301 and.w r3, r3, #1
  36036. 800f854: 2b00 cmp r3, #0
  36037. 800f856: d007 beq.n 800f868 <HAL_TIM_IRQHandler+0x16c>
  36038. {
  36039. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
  36040. 800f858: 687b ldr r3, [r7, #4]
  36041. 800f85a: 681b ldr r3, [r3, #0]
  36042. 800f85c: f06f 0201 mvn.w r2, #1
  36043. 800f860: 611a str r2, [r3, #16]
  36044. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36045. htim->PeriodElapsedCallback(htim);
  36046. #else
  36047. HAL_TIM_PeriodElapsedCallback(htim);
  36048. 800f862: 6878 ldr r0, [r7, #4]
  36049. 800f864: f7f2 f95e bl 8001b24 <HAL_TIM_PeriodElapsedCallback>
  36050. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36051. }
  36052. }
  36053. /* TIM Break input event */
  36054. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36055. 800f868: 68bb ldr r3, [r7, #8]
  36056. 800f86a: f003 0380 and.w r3, r3, #128 @ 0x80
  36057. 800f86e: 2b00 cmp r3, #0
  36058. 800f870: d104 bne.n 800f87c <HAL_TIM_IRQHandler+0x180>
  36059. ((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
  36060. 800f872: 68bb ldr r3, [r7, #8]
  36061. 800f874: f403 5300 and.w r3, r3, #8192 @ 0x2000
  36062. if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
  36063. 800f878: 2b00 cmp r3, #0
  36064. 800f87a: d00c beq.n 800f896 <HAL_TIM_IRQHandler+0x19a>
  36065. {
  36066. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36067. 800f87c: 68fb ldr r3, [r7, #12]
  36068. 800f87e: f003 0380 and.w r3, r3, #128 @ 0x80
  36069. 800f882: 2b00 cmp r3, #0
  36070. 800f884: d007 beq.n 800f896 <HAL_TIM_IRQHandler+0x19a>
  36071. {
  36072. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
  36073. 800f886: 687b ldr r3, [r7, #4]
  36074. 800f888: 681b ldr r3, [r3, #0]
  36075. 800f88a: f46f 5202 mvn.w r2, #8320 @ 0x2080
  36076. 800f88e: 611a str r2, [r3, #16]
  36077. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36078. htim->BreakCallback(htim);
  36079. #else
  36080. HAL_TIMEx_BreakCallback(htim);
  36081. 800f890: 6878 ldr r0, [r7, #4]
  36082. 800f892: f000 ffff bl 8010894 <HAL_TIMEx_BreakCallback>
  36083. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36084. }
  36085. }
  36086. /* TIM Break2 input event */
  36087. if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
  36088. 800f896: 68bb ldr r3, [r7, #8]
  36089. 800f898: f403 7380 and.w r3, r3, #256 @ 0x100
  36090. 800f89c: 2b00 cmp r3, #0
  36091. 800f89e: d00c beq.n 800f8ba <HAL_TIM_IRQHandler+0x1be>
  36092. {
  36093. if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
  36094. 800f8a0: 68fb ldr r3, [r7, #12]
  36095. 800f8a2: f003 0380 and.w r3, r3, #128 @ 0x80
  36096. 800f8a6: 2b00 cmp r3, #0
  36097. 800f8a8: d007 beq.n 800f8ba <HAL_TIM_IRQHandler+0x1be>
  36098. {
  36099. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
  36100. 800f8aa: 687b ldr r3, [r7, #4]
  36101. 800f8ac: 681b ldr r3, [r3, #0]
  36102. 800f8ae: f46f 7280 mvn.w r2, #256 @ 0x100
  36103. 800f8b2: 611a str r2, [r3, #16]
  36104. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36105. htim->Break2Callback(htim);
  36106. #else
  36107. HAL_TIMEx_Break2Callback(htim);
  36108. 800f8b4: 6878 ldr r0, [r7, #4]
  36109. 800f8b6: f000 fff7 bl 80108a8 <HAL_TIMEx_Break2Callback>
  36110. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36111. }
  36112. }
  36113. /* TIM Trigger detection event */
  36114. if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
  36115. 800f8ba: 68bb ldr r3, [r7, #8]
  36116. 800f8bc: f003 0340 and.w r3, r3, #64 @ 0x40
  36117. 800f8c0: 2b00 cmp r3, #0
  36118. 800f8c2: d00c beq.n 800f8de <HAL_TIM_IRQHandler+0x1e2>
  36119. {
  36120. if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
  36121. 800f8c4: 68fb ldr r3, [r7, #12]
  36122. 800f8c6: f003 0340 and.w r3, r3, #64 @ 0x40
  36123. 800f8ca: 2b00 cmp r3, #0
  36124. 800f8cc: d007 beq.n 800f8de <HAL_TIM_IRQHandler+0x1e2>
  36125. {
  36126. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
  36127. 800f8ce: 687b ldr r3, [r7, #4]
  36128. 800f8d0: 681b ldr r3, [r3, #0]
  36129. 800f8d2: f06f 0240 mvn.w r2, #64 @ 0x40
  36130. 800f8d6: 611a str r2, [r3, #16]
  36131. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36132. htim->TriggerCallback(htim);
  36133. #else
  36134. HAL_TIM_TriggerCallback(htim);
  36135. 800f8d8: 6878 ldr r0, [r7, #4]
  36136. 800f8da: f000 fa41 bl 800fd60 <HAL_TIM_TriggerCallback>
  36137. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36138. }
  36139. }
  36140. /* TIM commutation event */
  36141. if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
  36142. 800f8de: 68bb ldr r3, [r7, #8]
  36143. 800f8e0: f003 0320 and.w r3, r3, #32
  36144. 800f8e4: 2b00 cmp r3, #0
  36145. 800f8e6: d00c beq.n 800f902 <HAL_TIM_IRQHandler+0x206>
  36146. {
  36147. if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
  36148. 800f8e8: 68fb ldr r3, [r7, #12]
  36149. 800f8ea: f003 0320 and.w r3, r3, #32
  36150. 800f8ee: 2b00 cmp r3, #0
  36151. 800f8f0: d007 beq.n 800f902 <HAL_TIM_IRQHandler+0x206>
  36152. {
  36153. __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
  36154. 800f8f2: 687b ldr r3, [r7, #4]
  36155. 800f8f4: 681b ldr r3, [r3, #0]
  36156. 800f8f6: f06f 0220 mvn.w r2, #32
  36157. 800f8fa: 611a str r2, [r3, #16]
  36158. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  36159. htim->CommutationCallback(htim);
  36160. #else
  36161. HAL_TIMEx_CommutCallback(htim);
  36162. 800f8fc: 6878 ldr r0, [r7, #4]
  36163. 800f8fe: f000 ffbf bl 8010880 <HAL_TIMEx_CommutCallback>
  36164. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  36165. }
  36166. }
  36167. }
  36168. 800f902: bf00 nop
  36169. 800f904: 3710 adds r7, #16
  36170. 800f906: 46bd mov sp, r7
  36171. 800f908: bd80 pop {r7, pc}
  36172. ...
  36173. 0800f90c <HAL_TIM_PWM_ConfigChannel>:
  36174. * @retval HAL status
  36175. */
  36176. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  36177. const TIM_OC_InitTypeDef *sConfig,
  36178. uint32_t Channel)
  36179. {
  36180. 800f90c: b580 push {r7, lr}
  36181. 800f90e: b086 sub sp, #24
  36182. 800f910: af00 add r7, sp, #0
  36183. 800f912: 60f8 str r0, [r7, #12]
  36184. 800f914: 60b9 str r1, [r7, #8]
  36185. 800f916: 607a str r2, [r7, #4]
  36186. HAL_StatusTypeDef status = HAL_OK;
  36187. 800f918: 2300 movs r3, #0
  36188. 800f91a: 75fb strb r3, [r7, #23]
  36189. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  36190. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  36191. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  36192. /* Process Locked */
  36193. __HAL_LOCK(htim);
  36194. 800f91c: 68fb ldr r3, [r7, #12]
  36195. 800f91e: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36196. 800f922: 2b01 cmp r3, #1
  36197. 800f924: d101 bne.n 800f92a <HAL_TIM_PWM_ConfigChannel+0x1e>
  36198. 800f926: 2302 movs r3, #2
  36199. 800f928: e0ff b.n 800fb2a <HAL_TIM_PWM_ConfigChannel+0x21e>
  36200. 800f92a: 68fb ldr r3, [r7, #12]
  36201. 800f92c: 2201 movs r2, #1
  36202. 800f92e: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36203. switch (Channel)
  36204. 800f932: 687b ldr r3, [r7, #4]
  36205. 800f934: 2b14 cmp r3, #20
  36206. 800f936: f200 80f0 bhi.w 800fb1a <HAL_TIM_PWM_ConfigChannel+0x20e>
  36207. 800f93a: a201 add r2, pc, #4 @ (adr r2, 800f940 <HAL_TIM_PWM_ConfigChannel+0x34>)
  36208. 800f93c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  36209. 800f940: 0800f995 .word 0x0800f995
  36210. 800f944: 0800fb1b .word 0x0800fb1b
  36211. 800f948: 0800fb1b .word 0x0800fb1b
  36212. 800f94c: 0800fb1b .word 0x0800fb1b
  36213. 800f950: 0800f9d5 .word 0x0800f9d5
  36214. 800f954: 0800fb1b .word 0x0800fb1b
  36215. 800f958: 0800fb1b .word 0x0800fb1b
  36216. 800f95c: 0800fb1b .word 0x0800fb1b
  36217. 800f960: 0800fa17 .word 0x0800fa17
  36218. 800f964: 0800fb1b .word 0x0800fb1b
  36219. 800f968: 0800fb1b .word 0x0800fb1b
  36220. 800f96c: 0800fb1b .word 0x0800fb1b
  36221. 800f970: 0800fa57 .word 0x0800fa57
  36222. 800f974: 0800fb1b .word 0x0800fb1b
  36223. 800f978: 0800fb1b .word 0x0800fb1b
  36224. 800f97c: 0800fb1b .word 0x0800fb1b
  36225. 800f980: 0800fa99 .word 0x0800fa99
  36226. 800f984: 0800fb1b .word 0x0800fb1b
  36227. 800f988: 0800fb1b .word 0x0800fb1b
  36228. 800f98c: 0800fb1b .word 0x0800fb1b
  36229. 800f990: 0800fad9 .word 0x0800fad9
  36230. {
  36231. /* Check the parameters */
  36232. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  36233. /* Configure the Channel 1 in PWM mode */
  36234. TIM_OC1_SetConfig(htim->Instance, sConfig);
  36235. 800f994: 68fb ldr r3, [r7, #12]
  36236. 800f996: 681b ldr r3, [r3, #0]
  36237. 800f998: 68b9 ldr r1, [r7, #8]
  36238. 800f99a: 4618 mov r0, r3
  36239. 800f99c: f000 faca bl 800ff34 <TIM_OC1_SetConfig>
  36240. /* Set the Preload enable bit for channel1 */
  36241. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  36242. 800f9a0: 68fb ldr r3, [r7, #12]
  36243. 800f9a2: 681b ldr r3, [r3, #0]
  36244. 800f9a4: 699a ldr r2, [r3, #24]
  36245. 800f9a6: 68fb ldr r3, [r7, #12]
  36246. 800f9a8: 681b ldr r3, [r3, #0]
  36247. 800f9aa: f042 0208 orr.w r2, r2, #8
  36248. 800f9ae: 619a str r2, [r3, #24]
  36249. /* Configure the Output Fast mode */
  36250. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  36251. 800f9b0: 68fb ldr r3, [r7, #12]
  36252. 800f9b2: 681b ldr r3, [r3, #0]
  36253. 800f9b4: 699a ldr r2, [r3, #24]
  36254. 800f9b6: 68fb ldr r3, [r7, #12]
  36255. 800f9b8: 681b ldr r3, [r3, #0]
  36256. 800f9ba: f022 0204 bic.w r2, r2, #4
  36257. 800f9be: 619a str r2, [r3, #24]
  36258. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  36259. 800f9c0: 68fb ldr r3, [r7, #12]
  36260. 800f9c2: 681b ldr r3, [r3, #0]
  36261. 800f9c4: 6999 ldr r1, [r3, #24]
  36262. 800f9c6: 68bb ldr r3, [r7, #8]
  36263. 800f9c8: 691a ldr r2, [r3, #16]
  36264. 800f9ca: 68fb ldr r3, [r7, #12]
  36265. 800f9cc: 681b ldr r3, [r3, #0]
  36266. 800f9ce: 430a orrs r2, r1
  36267. 800f9d0: 619a str r2, [r3, #24]
  36268. break;
  36269. 800f9d2: e0a5 b.n 800fb20 <HAL_TIM_PWM_ConfigChannel+0x214>
  36270. {
  36271. /* Check the parameters */
  36272. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  36273. /* Configure the Channel 2 in PWM mode */
  36274. TIM_OC2_SetConfig(htim->Instance, sConfig);
  36275. 800f9d4: 68fb ldr r3, [r7, #12]
  36276. 800f9d6: 681b ldr r3, [r3, #0]
  36277. 800f9d8: 68b9 ldr r1, [r7, #8]
  36278. 800f9da: 4618 mov r0, r3
  36279. 800f9dc: f000 fb3a bl 8010054 <TIM_OC2_SetConfig>
  36280. /* Set the Preload enable bit for channel2 */
  36281. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  36282. 800f9e0: 68fb ldr r3, [r7, #12]
  36283. 800f9e2: 681b ldr r3, [r3, #0]
  36284. 800f9e4: 699a ldr r2, [r3, #24]
  36285. 800f9e6: 68fb ldr r3, [r7, #12]
  36286. 800f9e8: 681b ldr r3, [r3, #0]
  36287. 800f9ea: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36288. 800f9ee: 619a str r2, [r3, #24]
  36289. /* Configure the Output Fast mode */
  36290. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  36291. 800f9f0: 68fb ldr r3, [r7, #12]
  36292. 800f9f2: 681b ldr r3, [r3, #0]
  36293. 800f9f4: 699a ldr r2, [r3, #24]
  36294. 800f9f6: 68fb ldr r3, [r7, #12]
  36295. 800f9f8: 681b ldr r3, [r3, #0]
  36296. 800f9fa: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36297. 800f9fe: 619a str r2, [r3, #24]
  36298. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  36299. 800fa00: 68fb ldr r3, [r7, #12]
  36300. 800fa02: 681b ldr r3, [r3, #0]
  36301. 800fa04: 6999 ldr r1, [r3, #24]
  36302. 800fa06: 68bb ldr r3, [r7, #8]
  36303. 800fa08: 691b ldr r3, [r3, #16]
  36304. 800fa0a: 021a lsls r2, r3, #8
  36305. 800fa0c: 68fb ldr r3, [r7, #12]
  36306. 800fa0e: 681b ldr r3, [r3, #0]
  36307. 800fa10: 430a orrs r2, r1
  36308. 800fa12: 619a str r2, [r3, #24]
  36309. break;
  36310. 800fa14: e084 b.n 800fb20 <HAL_TIM_PWM_ConfigChannel+0x214>
  36311. {
  36312. /* Check the parameters */
  36313. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  36314. /* Configure the Channel 3 in PWM mode */
  36315. TIM_OC3_SetConfig(htim->Instance, sConfig);
  36316. 800fa16: 68fb ldr r3, [r7, #12]
  36317. 800fa18: 681b ldr r3, [r3, #0]
  36318. 800fa1a: 68b9 ldr r1, [r7, #8]
  36319. 800fa1c: 4618 mov r0, r3
  36320. 800fa1e: f000 fba3 bl 8010168 <TIM_OC3_SetConfig>
  36321. /* Set the Preload enable bit for channel3 */
  36322. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  36323. 800fa22: 68fb ldr r3, [r7, #12]
  36324. 800fa24: 681b ldr r3, [r3, #0]
  36325. 800fa26: 69da ldr r2, [r3, #28]
  36326. 800fa28: 68fb ldr r3, [r7, #12]
  36327. 800fa2a: 681b ldr r3, [r3, #0]
  36328. 800fa2c: f042 0208 orr.w r2, r2, #8
  36329. 800fa30: 61da str r2, [r3, #28]
  36330. /* Configure the Output Fast mode */
  36331. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  36332. 800fa32: 68fb ldr r3, [r7, #12]
  36333. 800fa34: 681b ldr r3, [r3, #0]
  36334. 800fa36: 69da ldr r2, [r3, #28]
  36335. 800fa38: 68fb ldr r3, [r7, #12]
  36336. 800fa3a: 681b ldr r3, [r3, #0]
  36337. 800fa3c: f022 0204 bic.w r2, r2, #4
  36338. 800fa40: 61da str r2, [r3, #28]
  36339. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  36340. 800fa42: 68fb ldr r3, [r7, #12]
  36341. 800fa44: 681b ldr r3, [r3, #0]
  36342. 800fa46: 69d9 ldr r1, [r3, #28]
  36343. 800fa48: 68bb ldr r3, [r7, #8]
  36344. 800fa4a: 691a ldr r2, [r3, #16]
  36345. 800fa4c: 68fb ldr r3, [r7, #12]
  36346. 800fa4e: 681b ldr r3, [r3, #0]
  36347. 800fa50: 430a orrs r2, r1
  36348. 800fa52: 61da str r2, [r3, #28]
  36349. break;
  36350. 800fa54: e064 b.n 800fb20 <HAL_TIM_PWM_ConfigChannel+0x214>
  36351. {
  36352. /* Check the parameters */
  36353. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  36354. /* Configure the Channel 4 in PWM mode */
  36355. TIM_OC4_SetConfig(htim->Instance, sConfig);
  36356. 800fa56: 68fb ldr r3, [r7, #12]
  36357. 800fa58: 681b ldr r3, [r3, #0]
  36358. 800fa5a: 68b9 ldr r1, [r7, #8]
  36359. 800fa5c: 4618 mov r0, r3
  36360. 800fa5e: f000 fc0b bl 8010278 <TIM_OC4_SetConfig>
  36361. /* Set the Preload enable bit for channel4 */
  36362. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  36363. 800fa62: 68fb ldr r3, [r7, #12]
  36364. 800fa64: 681b ldr r3, [r3, #0]
  36365. 800fa66: 69da ldr r2, [r3, #28]
  36366. 800fa68: 68fb ldr r3, [r7, #12]
  36367. 800fa6a: 681b ldr r3, [r3, #0]
  36368. 800fa6c: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36369. 800fa70: 61da str r2, [r3, #28]
  36370. /* Configure the Output Fast mode */
  36371. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  36372. 800fa72: 68fb ldr r3, [r7, #12]
  36373. 800fa74: 681b ldr r3, [r3, #0]
  36374. 800fa76: 69da ldr r2, [r3, #28]
  36375. 800fa78: 68fb ldr r3, [r7, #12]
  36376. 800fa7a: 681b ldr r3, [r3, #0]
  36377. 800fa7c: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36378. 800fa80: 61da str r2, [r3, #28]
  36379. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  36380. 800fa82: 68fb ldr r3, [r7, #12]
  36381. 800fa84: 681b ldr r3, [r3, #0]
  36382. 800fa86: 69d9 ldr r1, [r3, #28]
  36383. 800fa88: 68bb ldr r3, [r7, #8]
  36384. 800fa8a: 691b ldr r3, [r3, #16]
  36385. 800fa8c: 021a lsls r2, r3, #8
  36386. 800fa8e: 68fb ldr r3, [r7, #12]
  36387. 800fa90: 681b ldr r3, [r3, #0]
  36388. 800fa92: 430a orrs r2, r1
  36389. 800fa94: 61da str r2, [r3, #28]
  36390. break;
  36391. 800fa96: e043 b.n 800fb20 <HAL_TIM_PWM_ConfigChannel+0x214>
  36392. {
  36393. /* Check the parameters */
  36394. assert_param(IS_TIM_CC5_INSTANCE(htim->Instance));
  36395. /* Configure the Channel 5 in PWM mode */
  36396. TIM_OC5_SetConfig(htim->Instance, sConfig);
  36397. 800fa98: 68fb ldr r3, [r7, #12]
  36398. 800fa9a: 681b ldr r3, [r3, #0]
  36399. 800fa9c: 68b9 ldr r1, [r7, #8]
  36400. 800fa9e: 4618 mov r0, r3
  36401. 800faa0: f000 fc54 bl 801034c <TIM_OC5_SetConfig>
  36402. /* Set the Preload enable bit for channel5*/
  36403. htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE;
  36404. 800faa4: 68fb ldr r3, [r7, #12]
  36405. 800faa6: 681b ldr r3, [r3, #0]
  36406. 800faa8: 6d5a ldr r2, [r3, #84] @ 0x54
  36407. 800faaa: 68fb ldr r3, [r7, #12]
  36408. 800faac: 681b ldr r3, [r3, #0]
  36409. 800faae: f042 0208 orr.w r2, r2, #8
  36410. 800fab2: 655a str r2, [r3, #84] @ 0x54
  36411. /* Configure the Output Fast mode */
  36412. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE;
  36413. 800fab4: 68fb ldr r3, [r7, #12]
  36414. 800fab6: 681b ldr r3, [r3, #0]
  36415. 800fab8: 6d5a ldr r2, [r3, #84] @ 0x54
  36416. 800faba: 68fb ldr r3, [r7, #12]
  36417. 800fabc: 681b ldr r3, [r3, #0]
  36418. 800fabe: f022 0204 bic.w r2, r2, #4
  36419. 800fac2: 655a str r2, [r3, #84] @ 0x54
  36420. htim->Instance->CCMR3 |= sConfig->OCFastMode;
  36421. 800fac4: 68fb ldr r3, [r7, #12]
  36422. 800fac6: 681b ldr r3, [r3, #0]
  36423. 800fac8: 6d59 ldr r1, [r3, #84] @ 0x54
  36424. 800faca: 68bb ldr r3, [r7, #8]
  36425. 800facc: 691a ldr r2, [r3, #16]
  36426. 800face: 68fb ldr r3, [r7, #12]
  36427. 800fad0: 681b ldr r3, [r3, #0]
  36428. 800fad2: 430a orrs r2, r1
  36429. 800fad4: 655a str r2, [r3, #84] @ 0x54
  36430. break;
  36431. 800fad6: e023 b.n 800fb20 <HAL_TIM_PWM_ConfigChannel+0x214>
  36432. {
  36433. /* Check the parameters */
  36434. assert_param(IS_TIM_CC6_INSTANCE(htim->Instance));
  36435. /* Configure the Channel 6 in PWM mode */
  36436. TIM_OC6_SetConfig(htim->Instance, sConfig);
  36437. 800fad8: 68fb ldr r3, [r7, #12]
  36438. 800fada: 681b ldr r3, [r3, #0]
  36439. 800fadc: 68b9 ldr r1, [r7, #8]
  36440. 800fade: 4618 mov r0, r3
  36441. 800fae0: f000 fc98 bl 8010414 <TIM_OC6_SetConfig>
  36442. /* Set the Preload enable bit for channel6 */
  36443. htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE;
  36444. 800fae4: 68fb ldr r3, [r7, #12]
  36445. 800fae6: 681b ldr r3, [r3, #0]
  36446. 800fae8: 6d5a ldr r2, [r3, #84] @ 0x54
  36447. 800faea: 68fb ldr r3, [r7, #12]
  36448. 800faec: 681b ldr r3, [r3, #0]
  36449. 800faee: f442 6200 orr.w r2, r2, #2048 @ 0x800
  36450. 800faf2: 655a str r2, [r3, #84] @ 0x54
  36451. /* Configure the Output Fast mode */
  36452. htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE;
  36453. 800faf4: 68fb ldr r3, [r7, #12]
  36454. 800faf6: 681b ldr r3, [r3, #0]
  36455. 800faf8: 6d5a ldr r2, [r3, #84] @ 0x54
  36456. 800fafa: 68fb ldr r3, [r7, #12]
  36457. 800fafc: 681b ldr r3, [r3, #0]
  36458. 800fafe: f422 6280 bic.w r2, r2, #1024 @ 0x400
  36459. 800fb02: 655a str r2, [r3, #84] @ 0x54
  36460. htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U;
  36461. 800fb04: 68fb ldr r3, [r7, #12]
  36462. 800fb06: 681b ldr r3, [r3, #0]
  36463. 800fb08: 6d59 ldr r1, [r3, #84] @ 0x54
  36464. 800fb0a: 68bb ldr r3, [r7, #8]
  36465. 800fb0c: 691b ldr r3, [r3, #16]
  36466. 800fb0e: 021a lsls r2, r3, #8
  36467. 800fb10: 68fb ldr r3, [r7, #12]
  36468. 800fb12: 681b ldr r3, [r3, #0]
  36469. 800fb14: 430a orrs r2, r1
  36470. 800fb16: 655a str r2, [r3, #84] @ 0x54
  36471. break;
  36472. 800fb18: e002 b.n 800fb20 <HAL_TIM_PWM_ConfigChannel+0x214>
  36473. }
  36474. default:
  36475. status = HAL_ERROR;
  36476. 800fb1a: 2301 movs r3, #1
  36477. 800fb1c: 75fb strb r3, [r7, #23]
  36478. break;
  36479. 800fb1e: bf00 nop
  36480. }
  36481. __HAL_UNLOCK(htim);
  36482. 800fb20: 68fb ldr r3, [r7, #12]
  36483. 800fb22: 2200 movs r2, #0
  36484. 800fb24: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36485. return status;
  36486. 800fb28: 7dfb ldrb r3, [r7, #23]
  36487. }
  36488. 800fb2a: 4618 mov r0, r3
  36489. 800fb2c: 3718 adds r7, #24
  36490. 800fb2e: 46bd mov sp, r7
  36491. 800fb30: bd80 pop {r7, pc}
  36492. 800fb32: bf00 nop
  36493. 0800fb34 <HAL_TIM_ConfigClockSource>:
  36494. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  36495. * contains the clock source information for the TIM peripheral.
  36496. * @retval HAL status
  36497. */
  36498. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
  36499. {
  36500. 800fb34: b580 push {r7, lr}
  36501. 800fb36: b084 sub sp, #16
  36502. 800fb38: af00 add r7, sp, #0
  36503. 800fb3a: 6078 str r0, [r7, #4]
  36504. 800fb3c: 6039 str r1, [r7, #0]
  36505. HAL_StatusTypeDef status = HAL_OK;
  36506. 800fb3e: 2300 movs r3, #0
  36507. 800fb40: 73fb strb r3, [r7, #15]
  36508. uint32_t tmpsmcr;
  36509. /* Process Locked */
  36510. __HAL_LOCK(htim);
  36511. 800fb42: 687b ldr r3, [r7, #4]
  36512. 800fb44: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  36513. 800fb48: 2b01 cmp r3, #1
  36514. 800fb4a: d101 bne.n 800fb50 <HAL_TIM_ConfigClockSource+0x1c>
  36515. 800fb4c: 2302 movs r3, #2
  36516. 800fb4e: e0dc b.n 800fd0a <HAL_TIM_ConfigClockSource+0x1d6>
  36517. 800fb50: 687b ldr r3, [r7, #4]
  36518. 800fb52: 2201 movs r2, #1
  36519. 800fb54: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36520. htim->State = HAL_TIM_STATE_BUSY;
  36521. 800fb58: 687b ldr r3, [r7, #4]
  36522. 800fb5a: 2202 movs r2, #2
  36523. 800fb5c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36524. /* Check the parameters */
  36525. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  36526. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  36527. tmpsmcr = htim->Instance->SMCR;
  36528. 800fb60: 687b ldr r3, [r7, #4]
  36529. 800fb62: 681b ldr r3, [r3, #0]
  36530. 800fb64: 689b ldr r3, [r3, #8]
  36531. 800fb66: 60bb str r3, [r7, #8]
  36532. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  36533. 800fb68: 68ba ldr r2, [r7, #8]
  36534. 800fb6a: 4b6a ldr r3, [pc, #424] @ (800fd14 <HAL_TIM_ConfigClockSource+0x1e0>)
  36535. 800fb6c: 4013 ands r3, r2
  36536. 800fb6e: 60bb str r3, [r7, #8]
  36537. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  36538. 800fb70: 68bb ldr r3, [r7, #8]
  36539. 800fb72: f423 437f bic.w r3, r3, #65280 @ 0xff00
  36540. 800fb76: 60bb str r3, [r7, #8]
  36541. htim->Instance->SMCR = tmpsmcr;
  36542. 800fb78: 687b ldr r3, [r7, #4]
  36543. 800fb7a: 681b ldr r3, [r3, #0]
  36544. 800fb7c: 68ba ldr r2, [r7, #8]
  36545. 800fb7e: 609a str r2, [r3, #8]
  36546. switch (sClockSourceConfig->ClockSource)
  36547. 800fb80: 683b ldr r3, [r7, #0]
  36548. 800fb82: 681b ldr r3, [r3, #0]
  36549. 800fb84: 4a64 ldr r2, [pc, #400] @ (800fd18 <HAL_TIM_ConfigClockSource+0x1e4>)
  36550. 800fb86: 4293 cmp r3, r2
  36551. 800fb88: f000 80a9 beq.w 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36552. 800fb8c: 4a62 ldr r2, [pc, #392] @ (800fd18 <HAL_TIM_ConfigClockSource+0x1e4>)
  36553. 800fb8e: 4293 cmp r3, r2
  36554. 800fb90: f200 80ae bhi.w 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36555. 800fb94: 4a61 ldr r2, [pc, #388] @ (800fd1c <HAL_TIM_ConfigClockSource+0x1e8>)
  36556. 800fb96: 4293 cmp r3, r2
  36557. 800fb98: f000 80a1 beq.w 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36558. 800fb9c: 4a5f ldr r2, [pc, #380] @ (800fd1c <HAL_TIM_ConfigClockSource+0x1e8>)
  36559. 800fb9e: 4293 cmp r3, r2
  36560. 800fba0: f200 80a6 bhi.w 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36561. 800fba4: 4a5e ldr r2, [pc, #376] @ (800fd20 <HAL_TIM_ConfigClockSource+0x1ec>)
  36562. 800fba6: 4293 cmp r3, r2
  36563. 800fba8: f000 8099 beq.w 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36564. 800fbac: 4a5c ldr r2, [pc, #368] @ (800fd20 <HAL_TIM_ConfigClockSource+0x1ec>)
  36565. 800fbae: 4293 cmp r3, r2
  36566. 800fbb0: f200 809e bhi.w 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36567. 800fbb4: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36568. 800fbb8: f000 8091 beq.w 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36569. 800fbbc: f1b3 1f10 cmp.w r3, #1048592 @ 0x100010
  36570. 800fbc0: f200 8096 bhi.w 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36571. 800fbc4: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36572. 800fbc8: f000 8089 beq.w 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36573. 800fbcc: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  36574. 800fbd0: f200 808e bhi.w 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36575. 800fbd4: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36576. 800fbd8: d03e beq.n 800fc58 <HAL_TIM_ConfigClockSource+0x124>
  36577. 800fbda: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
  36578. 800fbde: f200 8087 bhi.w 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36579. 800fbe2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36580. 800fbe6: f000 8086 beq.w 800fcf6 <HAL_TIM_ConfigClockSource+0x1c2>
  36581. 800fbea: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  36582. 800fbee: d87f bhi.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36583. 800fbf0: 2b70 cmp r3, #112 @ 0x70
  36584. 800fbf2: d01a beq.n 800fc2a <HAL_TIM_ConfigClockSource+0xf6>
  36585. 800fbf4: 2b70 cmp r3, #112 @ 0x70
  36586. 800fbf6: d87b bhi.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36587. 800fbf8: 2b60 cmp r3, #96 @ 0x60
  36588. 800fbfa: d050 beq.n 800fc9e <HAL_TIM_ConfigClockSource+0x16a>
  36589. 800fbfc: 2b60 cmp r3, #96 @ 0x60
  36590. 800fbfe: d877 bhi.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36591. 800fc00: 2b50 cmp r3, #80 @ 0x50
  36592. 800fc02: d03c beq.n 800fc7e <HAL_TIM_ConfigClockSource+0x14a>
  36593. 800fc04: 2b50 cmp r3, #80 @ 0x50
  36594. 800fc06: d873 bhi.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36595. 800fc08: 2b40 cmp r3, #64 @ 0x40
  36596. 800fc0a: d058 beq.n 800fcbe <HAL_TIM_ConfigClockSource+0x18a>
  36597. 800fc0c: 2b40 cmp r3, #64 @ 0x40
  36598. 800fc0e: d86f bhi.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36599. 800fc10: 2b30 cmp r3, #48 @ 0x30
  36600. 800fc12: d064 beq.n 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36601. 800fc14: 2b30 cmp r3, #48 @ 0x30
  36602. 800fc16: d86b bhi.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36603. 800fc18: 2b20 cmp r3, #32
  36604. 800fc1a: d060 beq.n 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36605. 800fc1c: 2b20 cmp r3, #32
  36606. 800fc1e: d867 bhi.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36607. 800fc20: 2b00 cmp r3, #0
  36608. 800fc22: d05c beq.n 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36609. 800fc24: 2b10 cmp r3, #16
  36610. 800fc26: d05a beq.n 800fcde <HAL_TIM_ConfigClockSource+0x1aa>
  36611. 800fc28: e062 b.n 800fcf0 <HAL_TIM_ConfigClockSource+0x1bc>
  36612. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36613. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36614. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36615. /* Configure the ETR Clock source */
  36616. TIM_ETR_SetConfig(htim->Instance,
  36617. 800fc2a: 687b ldr r3, [r7, #4]
  36618. 800fc2c: 6818 ldr r0, [r3, #0]
  36619. sClockSourceConfig->ClockPrescaler,
  36620. 800fc2e: 683b ldr r3, [r7, #0]
  36621. 800fc30: 6899 ldr r1, [r3, #8]
  36622. sClockSourceConfig->ClockPolarity,
  36623. 800fc32: 683b ldr r3, [r7, #0]
  36624. 800fc34: 685a ldr r2, [r3, #4]
  36625. sClockSourceConfig->ClockFilter);
  36626. 800fc36: 683b ldr r3, [r7, #0]
  36627. 800fc38: 68db ldr r3, [r3, #12]
  36628. TIM_ETR_SetConfig(htim->Instance,
  36629. 800fc3a: f000 fccf bl 80105dc <TIM_ETR_SetConfig>
  36630. /* Select the External clock mode1 and the ETRF trigger */
  36631. tmpsmcr = htim->Instance->SMCR;
  36632. 800fc3e: 687b ldr r3, [r7, #4]
  36633. 800fc40: 681b ldr r3, [r3, #0]
  36634. 800fc42: 689b ldr r3, [r3, #8]
  36635. 800fc44: 60bb str r3, [r7, #8]
  36636. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  36637. 800fc46: 68bb ldr r3, [r7, #8]
  36638. 800fc48: f043 0377 orr.w r3, r3, #119 @ 0x77
  36639. 800fc4c: 60bb str r3, [r7, #8]
  36640. /* Write to TIMx SMCR */
  36641. htim->Instance->SMCR = tmpsmcr;
  36642. 800fc4e: 687b ldr r3, [r7, #4]
  36643. 800fc50: 681b ldr r3, [r3, #0]
  36644. 800fc52: 68ba ldr r2, [r7, #8]
  36645. 800fc54: 609a str r2, [r3, #8]
  36646. break;
  36647. 800fc56: e04f b.n 800fcf8 <HAL_TIM_ConfigClockSource+0x1c4>
  36648. assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
  36649. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36650. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36651. /* Configure the ETR Clock source */
  36652. TIM_ETR_SetConfig(htim->Instance,
  36653. 800fc58: 687b ldr r3, [r7, #4]
  36654. 800fc5a: 6818 ldr r0, [r3, #0]
  36655. sClockSourceConfig->ClockPrescaler,
  36656. 800fc5c: 683b ldr r3, [r7, #0]
  36657. 800fc5e: 6899 ldr r1, [r3, #8]
  36658. sClockSourceConfig->ClockPolarity,
  36659. 800fc60: 683b ldr r3, [r7, #0]
  36660. 800fc62: 685a ldr r2, [r3, #4]
  36661. sClockSourceConfig->ClockFilter);
  36662. 800fc64: 683b ldr r3, [r7, #0]
  36663. 800fc66: 68db ldr r3, [r3, #12]
  36664. TIM_ETR_SetConfig(htim->Instance,
  36665. 800fc68: f000 fcb8 bl 80105dc <TIM_ETR_SetConfig>
  36666. /* Enable the External clock mode2 */
  36667. htim->Instance->SMCR |= TIM_SMCR_ECE;
  36668. 800fc6c: 687b ldr r3, [r7, #4]
  36669. 800fc6e: 681b ldr r3, [r3, #0]
  36670. 800fc70: 689a ldr r2, [r3, #8]
  36671. 800fc72: 687b ldr r3, [r7, #4]
  36672. 800fc74: 681b ldr r3, [r3, #0]
  36673. 800fc76: f442 4280 orr.w r2, r2, #16384 @ 0x4000
  36674. 800fc7a: 609a str r2, [r3, #8]
  36675. break;
  36676. 800fc7c: e03c b.n 800fcf8 <HAL_TIM_ConfigClockSource+0x1c4>
  36677. /* Check TI1 input conditioning related parameters */
  36678. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36679. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36680. TIM_TI1_ConfigInputStage(htim->Instance,
  36681. 800fc7e: 687b ldr r3, [r7, #4]
  36682. 800fc80: 6818 ldr r0, [r3, #0]
  36683. sClockSourceConfig->ClockPolarity,
  36684. 800fc82: 683b ldr r3, [r7, #0]
  36685. 800fc84: 6859 ldr r1, [r3, #4]
  36686. sClockSourceConfig->ClockFilter);
  36687. 800fc86: 683b ldr r3, [r7, #0]
  36688. 800fc88: 68db ldr r3, [r3, #12]
  36689. TIM_TI1_ConfigInputStage(htim->Instance,
  36690. 800fc8a: 461a mov r2, r3
  36691. 800fc8c: f000 fc28 bl 80104e0 <TIM_TI1_ConfigInputStage>
  36692. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  36693. 800fc90: 687b ldr r3, [r7, #4]
  36694. 800fc92: 681b ldr r3, [r3, #0]
  36695. 800fc94: 2150 movs r1, #80 @ 0x50
  36696. 800fc96: 4618 mov r0, r3
  36697. 800fc98: f000 fc82 bl 80105a0 <TIM_ITRx_SetConfig>
  36698. break;
  36699. 800fc9c: e02c b.n 800fcf8 <HAL_TIM_ConfigClockSource+0x1c4>
  36700. /* Check TI2 input conditioning related parameters */
  36701. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36702. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36703. TIM_TI2_ConfigInputStage(htim->Instance,
  36704. 800fc9e: 687b ldr r3, [r7, #4]
  36705. 800fca0: 6818 ldr r0, [r3, #0]
  36706. sClockSourceConfig->ClockPolarity,
  36707. 800fca2: 683b ldr r3, [r7, #0]
  36708. 800fca4: 6859 ldr r1, [r3, #4]
  36709. sClockSourceConfig->ClockFilter);
  36710. 800fca6: 683b ldr r3, [r7, #0]
  36711. 800fca8: 68db ldr r3, [r3, #12]
  36712. TIM_TI2_ConfigInputStage(htim->Instance,
  36713. 800fcaa: 461a mov r2, r3
  36714. 800fcac: f000 fc47 bl 801053e <TIM_TI2_ConfigInputStage>
  36715. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  36716. 800fcb0: 687b ldr r3, [r7, #4]
  36717. 800fcb2: 681b ldr r3, [r3, #0]
  36718. 800fcb4: 2160 movs r1, #96 @ 0x60
  36719. 800fcb6: 4618 mov r0, r3
  36720. 800fcb8: f000 fc72 bl 80105a0 <TIM_ITRx_SetConfig>
  36721. break;
  36722. 800fcbc: e01c b.n 800fcf8 <HAL_TIM_ConfigClockSource+0x1c4>
  36723. /* Check TI1 input conditioning related parameters */
  36724. assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
  36725. assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
  36726. TIM_TI1_ConfigInputStage(htim->Instance,
  36727. 800fcbe: 687b ldr r3, [r7, #4]
  36728. 800fcc0: 6818 ldr r0, [r3, #0]
  36729. sClockSourceConfig->ClockPolarity,
  36730. 800fcc2: 683b ldr r3, [r7, #0]
  36731. 800fcc4: 6859 ldr r1, [r3, #4]
  36732. sClockSourceConfig->ClockFilter);
  36733. 800fcc6: 683b ldr r3, [r7, #0]
  36734. 800fcc8: 68db ldr r3, [r3, #12]
  36735. TIM_TI1_ConfigInputStage(htim->Instance,
  36736. 800fcca: 461a mov r2, r3
  36737. 800fccc: f000 fc08 bl 80104e0 <TIM_TI1_ConfigInputStage>
  36738. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  36739. 800fcd0: 687b ldr r3, [r7, #4]
  36740. 800fcd2: 681b ldr r3, [r3, #0]
  36741. 800fcd4: 2140 movs r1, #64 @ 0x40
  36742. 800fcd6: 4618 mov r0, r3
  36743. 800fcd8: f000 fc62 bl 80105a0 <TIM_ITRx_SetConfig>
  36744. break;
  36745. 800fcdc: e00c b.n 800fcf8 <HAL_TIM_ConfigClockSource+0x1c4>
  36746. case TIM_CLOCKSOURCE_ITR8:
  36747. {
  36748. /* Check whether or not the timer instance supports internal trigger input */
  36749. assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
  36750. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  36751. 800fcde: 687b ldr r3, [r7, #4]
  36752. 800fce0: 681a ldr r2, [r3, #0]
  36753. 800fce2: 683b ldr r3, [r7, #0]
  36754. 800fce4: 681b ldr r3, [r3, #0]
  36755. 800fce6: 4619 mov r1, r3
  36756. 800fce8: 4610 mov r0, r2
  36757. 800fcea: f000 fc59 bl 80105a0 <TIM_ITRx_SetConfig>
  36758. break;
  36759. 800fcee: e003 b.n 800fcf8 <HAL_TIM_ConfigClockSource+0x1c4>
  36760. }
  36761. default:
  36762. status = HAL_ERROR;
  36763. 800fcf0: 2301 movs r3, #1
  36764. 800fcf2: 73fb strb r3, [r7, #15]
  36765. break;
  36766. 800fcf4: e000 b.n 800fcf8 <HAL_TIM_ConfigClockSource+0x1c4>
  36767. break;
  36768. 800fcf6: bf00 nop
  36769. }
  36770. htim->State = HAL_TIM_STATE_READY;
  36771. 800fcf8: 687b ldr r3, [r7, #4]
  36772. 800fcfa: 2201 movs r2, #1
  36773. 800fcfc: f883 203d strb.w r2, [r3, #61] @ 0x3d
  36774. __HAL_UNLOCK(htim);
  36775. 800fd00: 687b ldr r3, [r7, #4]
  36776. 800fd02: 2200 movs r2, #0
  36777. 800fd04: f883 203c strb.w r2, [r3, #60] @ 0x3c
  36778. return status;
  36779. 800fd08: 7bfb ldrb r3, [r7, #15]
  36780. }
  36781. 800fd0a: 4618 mov r0, r3
  36782. 800fd0c: 3710 adds r7, #16
  36783. 800fd0e: 46bd mov sp, r7
  36784. 800fd10: bd80 pop {r7, pc}
  36785. 800fd12: bf00 nop
  36786. 800fd14: ffceff88 .word 0xffceff88
  36787. 800fd18: 00100040 .word 0x00100040
  36788. 800fd1c: 00100030 .word 0x00100030
  36789. 800fd20: 00100020 .word 0x00100020
  36790. 0800fd24 <HAL_TIM_OC_DelayElapsedCallback>:
  36791. * @brief Output Compare callback in non-blocking mode
  36792. * @param htim TIM OC handle
  36793. * @retval None
  36794. */
  36795. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  36796. {
  36797. 800fd24: b480 push {r7}
  36798. 800fd26: b083 sub sp, #12
  36799. 800fd28: af00 add r7, sp, #0
  36800. 800fd2a: 6078 str r0, [r7, #4]
  36801. UNUSED(htim);
  36802. /* NOTE : This function should not be modified, when the callback is needed,
  36803. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  36804. */
  36805. }
  36806. 800fd2c: bf00 nop
  36807. 800fd2e: 370c adds r7, #12
  36808. 800fd30: 46bd mov sp, r7
  36809. 800fd32: f85d 7b04 ldr.w r7, [sp], #4
  36810. 800fd36: 4770 bx lr
  36811. 0800fd38 <HAL_TIM_IC_CaptureCallback>:
  36812. * @brief Input Capture callback in non-blocking mode
  36813. * @param htim TIM IC handle
  36814. * @retval None
  36815. */
  36816. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  36817. {
  36818. 800fd38: b480 push {r7}
  36819. 800fd3a: b083 sub sp, #12
  36820. 800fd3c: af00 add r7, sp, #0
  36821. 800fd3e: 6078 str r0, [r7, #4]
  36822. UNUSED(htim);
  36823. /* NOTE : This function should not be modified, when the callback is needed,
  36824. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  36825. */
  36826. }
  36827. 800fd40: bf00 nop
  36828. 800fd42: 370c adds r7, #12
  36829. 800fd44: 46bd mov sp, r7
  36830. 800fd46: f85d 7b04 ldr.w r7, [sp], #4
  36831. 800fd4a: 4770 bx lr
  36832. 0800fd4c <HAL_TIM_PWM_PulseFinishedCallback>:
  36833. * @brief PWM Pulse finished callback in non-blocking mode
  36834. * @param htim TIM handle
  36835. * @retval None
  36836. */
  36837. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  36838. {
  36839. 800fd4c: b480 push {r7}
  36840. 800fd4e: b083 sub sp, #12
  36841. 800fd50: af00 add r7, sp, #0
  36842. 800fd52: 6078 str r0, [r7, #4]
  36843. UNUSED(htim);
  36844. /* NOTE : This function should not be modified, when the callback is needed,
  36845. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  36846. */
  36847. }
  36848. 800fd54: bf00 nop
  36849. 800fd56: 370c adds r7, #12
  36850. 800fd58: 46bd mov sp, r7
  36851. 800fd5a: f85d 7b04 ldr.w r7, [sp], #4
  36852. 800fd5e: 4770 bx lr
  36853. 0800fd60 <HAL_TIM_TriggerCallback>:
  36854. * @brief Hall Trigger detection callback in non-blocking mode
  36855. * @param htim TIM handle
  36856. * @retval None
  36857. */
  36858. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  36859. {
  36860. 800fd60: b480 push {r7}
  36861. 800fd62: b083 sub sp, #12
  36862. 800fd64: af00 add r7, sp, #0
  36863. 800fd66: 6078 str r0, [r7, #4]
  36864. UNUSED(htim);
  36865. /* NOTE : This function should not be modified, when the callback is needed,
  36866. the HAL_TIM_TriggerCallback could be implemented in the user file
  36867. */
  36868. }
  36869. 800fd68: bf00 nop
  36870. 800fd6a: 370c adds r7, #12
  36871. 800fd6c: 46bd mov sp, r7
  36872. 800fd6e: f85d 7b04 ldr.w r7, [sp], #4
  36873. 800fd72: 4770 bx lr
  36874. 0800fd74 <HAL_TIM_GetChannelState>:
  36875. * @arg TIM_CHANNEL_5: TIM Channel 5
  36876. * @arg TIM_CHANNEL_6: TIM Channel 6
  36877. * @retval TIM Channel state
  36878. */
  36879. HAL_TIM_ChannelStateTypeDef HAL_TIM_GetChannelState(const TIM_HandleTypeDef *htim, uint32_t Channel)
  36880. {
  36881. 800fd74: b480 push {r7}
  36882. 800fd76: b085 sub sp, #20
  36883. 800fd78: af00 add r7, sp, #0
  36884. 800fd7a: 6078 str r0, [r7, #4]
  36885. 800fd7c: 6039 str r1, [r7, #0]
  36886. HAL_TIM_ChannelStateTypeDef channel_state;
  36887. /* Check the parameters */
  36888. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  36889. channel_state = TIM_CHANNEL_STATE_GET(htim, Channel);
  36890. 800fd7e: 683b ldr r3, [r7, #0]
  36891. 800fd80: 2b00 cmp r3, #0
  36892. 800fd82: d104 bne.n 800fd8e <HAL_TIM_GetChannelState+0x1a>
  36893. 800fd84: 687b ldr r3, [r7, #4]
  36894. 800fd86: f893 303e ldrb.w r3, [r3, #62] @ 0x3e
  36895. 800fd8a: b2db uxtb r3, r3
  36896. 800fd8c: e023 b.n 800fdd6 <HAL_TIM_GetChannelState+0x62>
  36897. 800fd8e: 683b ldr r3, [r7, #0]
  36898. 800fd90: 2b04 cmp r3, #4
  36899. 800fd92: d104 bne.n 800fd9e <HAL_TIM_GetChannelState+0x2a>
  36900. 800fd94: 687b ldr r3, [r7, #4]
  36901. 800fd96: f893 303f ldrb.w r3, [r3, #63] @ 0x3f
  36902. 800fd9a: b2db uxtb r3, r3
  36903. 800fd9c: e01b b.n 800fdd6 <HAL_TIM_GetChannelState+0x62>
  36904. 800fd9e: 683b ldr r3, [r7, #0]
  36905. 800fda0: 2b08 cmp r3, #8
  36906. 800fda2: d104 bne.n 800fdae <HAL_TIM_GetChannelState+0x3a>
  36907. 800fda4: 687b ldr r3, [r7, #4]
  36908. 800fda6: f893 3040 ldrb.w r3, [r3, #64] @ 0x40
  36909. 800fdaa: b2db uxtb r3, r3
  36910. 800fdac: e013 b.n 800fdd6 <HAL_TIM_GetChannelState+0x62>
  36911. 800fdae: 683b ldr r3, [r7, #0]
  36912. 800fdb0: 2b0c cmp r3, #12
  36913. 800fdb2: d104 bne.n 800fdbe <HAL_TIM_GetChannelState+0x4a>
  36914. 800fdb4: 687b ldr r3, [r7, #4]
  36915. 800fdb6: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
  36916. 800fdba: b2db uxtb r3, r3
  36917. 800fdbc: e00b b.n 800fdd6 <HAL_TIM_GetChannelState+0x62>
  36918. 800fdbe: 683b ldr r3, [r7, #0]
  36919. 800fdc0: 2b10 cmp r3, #16
  36920. 800fdc2: d104 bne.n 800fdce <HAL_TIM_GetChannelState+0x5a>
  36921. 800fdc4: 687b ldr r3, [r7, #4]
  36922. 800fdc6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
  36923. 800fdca: b2db uxtb r3, r3
  36924. 800fdcc: e003 b.n 800fdd6 <HAL_TIM_GetChannelState+0x62>
  36925. 800fdce: 687b ldr r3, [r7, #4]
  36926. 800fdd0: f893 3043 ldrb.w r3, [r3, #67] @ 0x43
  36927. 800fdd4: b2db uxtb r3, r3
  36928. 800fdd6: 73fb strb r3, [r7, #15]
  36929. return channel_state;
  36930. 800fdd8: 7bfb ldrb r3, [r7, #15]
  36931. }
  36932. 800fdda: 4618 mov r0, r3
  36933. 800fddc: 3714 adds r7, #20
  36934. 800fdde: 46bd mov sp, r7
  36935. 800fde0: f85d 7b04 ldr.w r7, [sp], #4
  36936. 800fde4: 4770 bx lr
  36937. ...
  36938. 0800fde8 <TIM_Base_SetConfig>:
  36939. * @param TIMx TIM peripheral
  36940. * @param Structure TIM Base configuration structure
  36941. * @retval None
  36942. */
  36943. void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
  36944. {
  36945. 800fde8: b480 push {r7}
  36946. 800fdea: b085 sub sp, #20
  36947. 800fdec: af00 add r7, sp, #0
  36948. 800fdee: 6078 str r0, [r7, #4]
  36949. 800fdf0: 6039 str r1, [r7, #0]
  36950. uint32_t tmpcr1;
  36951. tmpcr1 = TIMx->CR1;
  36952. 800fdf2: 687b ldr r3, [r7, #4]
  36953. 800fdf4: 681b ldr r3, [r3, #0]
  36954. 800fdf6: 60fb str r3, [r7, #12]
  36955. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  36956. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  36957. 800fdf8: 687b ldr r3, [r7, #4]
  36958. 800fdfa: 4a46 ldr r2, [pc, #280] @ (800ff14 <TIM_Base_SetConfig+0x12c>)
  36959. 800fdfc: 4293 cmp r3, r2
  36960. 800fdfe: d013 beq.n 800fe28 <TIM_Base_SetConfig+0x40>
  36961. 800fe00: 687b ldr r3, [r7, #4]
  36962. 800fe02: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  36963. 800fe06: d00f beq.n 800fe28 <TIM_Base_SetConfig+0x40>
  36964. 800fe08: 687b ldr r3, [r7, #4]
  36965. 800fe0a: 4a43 ldr r2, [pc, #268] @ (800ff18 <TIM_Base_SetConfig+0x130>)
  36966. 800fe0c: 4293 cmp r3, r2
  36967. 800fe0e: d00b beq.n 800fe28 <TIM_Base_SetConfig+0x40>
  36968. 800fe10: 687b ldr r3, [r7, #4]
  36969. 800fe12: 4a42 ldr r2, [pc, #264] @ (800ff1c <TIM_Base_SetConfig+0x134>)
  36970. 800fe14: 4293 cmp r3, r2
  36971. 800fe16: d007 beq.n 800fe28 <TIM_Base_SetConfig+0x40>
  36972. 800fe18: 687b ldr r3, [r7, #4]
  36973. 800fe1a: 4a41 ldr r2, [pc, #260] @ (800ff20 <TIM_Base_SetConfig+0x138>)
  36974. 800fe1c: 4293 cmp r3, r2
  36975. 800fe1e: d003 beq.n 800fe28 <TIM_Base_SetConfig+0x40>
  36976. 800fe20: 687b ldr r3, [r7, #4]
  36977. 800fe22: 4a40 ldr r2, [pc, #256] @ (800ff24 <TIM_Base_SetConfig+0x13c>)
  36978. 800fe24: 4293 cmp r3, r2
  36979. 800fe26: d108 bne.n 800fe3a <TIM_Base_SetConfig+0x52>
  36980. {
  36981. /* Select the Counter Mode */
  36982. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  36983. 800fe28: 68fb ldr r3, [r7, #12]
  36984. 800fe2a: f023 0370 bic.w r3, r3, #112 @ 0x70
  36985. 800fe2e: 60fb str r3, [r7, #12]
  36986. tmpcr1 |= Structure->CounterMode;
  36987. 800fe30: 683b ldr r3, [r7, #0]
  36988. 800fe32: 685b ldr r3, [r3, #4]
  36989. 800fe34: 68fa ldr r2, [r7, #12]
  36990. 800fe36: 4313 orrs r3, r2
  36991. 800fe38: 60fb str r3, [r7, #12]
  36992. }
  36993. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  36994. 800fe3a: 687b ldr r3, [r7, #4]
  36995. 800fe3c: 4a35 ldr r2, [pc, #212] @ (800ff14 <TIM_Base_SetConfig+0x12c>)
  36996. 800fe3e: 4293 cmp r3, r2
  36997. 800fe40: d01f beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  36998. 800fe42: 687b ldr r3, [r7, #4]
  36999. 800fe44: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  37000. 800fe48: d01b beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  37001. 800fe4a: 687b ldr r3, [r7, #4]
  37002. 800fe4c: 4a32 ldr r2, [pc, #200] @ (800ff18 <TIM_Base_SetConfig+0x130>)
  37003. 800fe4e: 4293 cmp r3, r2
  37004. 800fe50: d017 beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  37005. 800fe52: 687b ldr r3, [r7, #4]
  37006. 800fe54: 4a31 ldr r2, [pc, #196] @ (800ff1c <TIM_Base_SetConfig+0x134>)
  37007. 800fe56: 4293 cmp r3, r2
  37008. 800fe58: d013 beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  37009. 800fe5a: 687b ldr r3, [r7, #4]
  37010. 800fe5c: 4a30 ldr r2, [pc, #192] @ (800ff20 <TIM_Base_SetConfig+0x138>)
  37011. 800fe5e: 4293 cmp r3, r2
  37012. 800fe60: d00f beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  37013. 800fe62: 687b ldr r3, [r7, #4]
  37014. 800fe64: 4a2f ldr r2, [pc, #188] @ (800ff24 <TIM_Base_SetConfig+0x13c>)
  37015. 800fe66: 4293 cmp r3, r2
  37016. 800fe68: d00b beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  37017. 800fe6a: 687b ldr r3, [r7, #4]
  37018. 800fe6c: 4a2e ldr r2, [pc, #184] @ (800ff28 <TIM_Base_SetConfig+0x140>)
  37019. 800fe6e: 4293 cmp r3, r2
  37020. 800fe70: d007 beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  37021. 800fe72: 687b ldr r3, [r7, #4]
  37022. 800fe74: 4a2d ldr r2, [pc, #180] @ (800ff2c <TIM_Base_SetConfig+0x144>)
  37023. 800fe76: 4293 cmp r3, r2
  37024. 800fe78: d003 beq.n 800fe82 <TIM_Base_SetConfig+0x9a>
  37025. 800fe7a: 687b ldr r3, [r7, #4]
  37026. 800fe7c: 4a2c ldr r2, [pc, #176] @ (800ff30 <TIM_Base_SetConfig+0x148>)
  37027. 800fe7e: 4293 cmp r3, r2
  37028. 800fe80: d108 bne.n 800fe94 <TIM_Base_SetConfig+0xac>
  37029. {
  37030. /* Set the clock division */
  37031. tmpcr1 &= ~TIM_CR1_CKD;
  37032. 800fe82: 68fb ldr r3, [r7, #12]
  37033. 800fe84: f423 7340 bic.w r3, r3, #768 @ 0x300
  37034. 800fe88: 60fb str r3, [r7, #12]
  37035. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  37036. 800fe8a: 683b ldr r3, [r7, #0]
  37037. 800fe8c: 68db ldr r3, [r3, #12]
  37038. 800fe8e: 68fa ldr r2, [r7, #12]
  37039. 800fe90: 4313 orrs r3, r2
  37040. 800fe92: 60fb str r3, [r7, #12]
  37041. }
  37042. /* Set the auto-reload preload */
  37043. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  37044. 800fe94: 68fb ldr r3, [r7, #12]
  37045. 800fe96: f023 0280 bic.w r2, r3, #128 @ 0x80
  37046. 800fe9a: 683b ldr r3, [r7, #0]
  37047. 800fe9c: 695b ldr r3, [r3, #20]
  37048. 800fe9e: 4313 orrs r3, r2
  37049. 800fea0: 60fb str r3, [r7, #12]
  37050. TIMx->CR1 = tmpcr1;
  37051. 800fea2: 687b ldr r3, [r7, #4]
  37052. 800fea4: 68fa ldr r2, [r7, #12]
  37053. 800fea6: 601a str r2, [r3, #0]
  37054. /* Set the Autoreload value */
  37055. TIMx->ARR = (uint32_t)Structure->Period ;
  37056. 800fea8: 683b ldr r3, [r7, #0]
  37057. 800feaa: 689a ldr r2, [r3, #8]
  37058. 800feac: 687b ldr r3, [r7, #4]
  37059. 800feae: 62da str r2, [r3, #44] @ 0x2c
  37060. /* Set the Prescaler value */
  37061. TIMx->PSC = Structure->Prescaler;
  37062. 800feb0: 683b ldr r3, [r7, #0]
  37063. 800feb2: 681a ldr r2, [r3, #0]
  37064. 800feb4: 687b ldr r3, [r7, #4]
  37065. 800feb6: 629a str r2, [r3, #40] @ 0x28
  37066. if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
  37067. 800feb8: 687b ldr r3, [r7, #4]
  37068. 800feba: 4a16 ldr r2, [pc, #88] @ (800ff14 <TIM_Base_SetConfig+0x12c>)
  37069. 800febc: 4293 cmp r3, r2
  37070. 800febe: d00f beq.n 800fee0 <TIM_Base_SetConfig+0xf8>
  37071. 800fec0: 687b ldr r3, [r7, #4]
  37072. 800fec2: 4a18 ldr r2, [pc, #96] @ (800ff24 <TIM_Base_SetConfig+0x13c>)
  37073. 800fec4: 4293 cmp r3, r2
  37074. 800fec6: d00b beq.n 800fee0 <TIM_Base_SetConfig+0xf8>
  37075. 800fec8: 687b ldr r3, [r7, #4]
  37076. 800feca: 4a17 ldr r2, [pc, #92] @ (800ff28 <TIM_Base_SetConfig+0x140>)
  37077. 800fecc: 4293 cmp r3, r2
  37078. 800fece: d007 beq.n 800fee0 <TIM_Base_SetConfig+0xf8>
  37079. 800fed0: 687b ldr r3, [r7, #4]
  37080. 800fed2: 4a16 ldr r2, [pc, #88] @ (800ff2c <TIM_Base_SetConfig+0x144>)
  37081. 800fed4: 4293 cmp r3, r2
  37082. 800fed6: d003 beq.n 800fee0 <TIM_Base_SetConfig+0xf8>
  37083. 800fed8: 687b ldr r3, [r7, #4]
  37084. 800feda: 4a15 ldr r2, [pc, #84] @ (800ff30 <TIM_Base_SetConfig+0x148>)
  37085. 800fedc: 4293 cmp r3, r2
  37086. 800fede: d103 bne.n 800fee8 <TIM_Base_SetConfig+0x100>
  37087. {
  37088. /* Set the Repetition Counter value */
  37089. TIMx->RCR = Structure->RepetitionCounter;
  37090. 800fee0: 683b ldr r3, [r7, #0]
  37091. 800fee2: 691a ldr r2, [r3, #16]
  37092. 800fee4: 687b ldr r3, [r7, #4]
  37093. 800fee6: 631a str r2, [r3, #48] @ 0x30
  37094. }
  37095. /* Generate an update event to reload the Prescaler
  37096. and the repetition counter (only for advanced timer) value immediately */
  37097. TIMx->EGR = TIM_EGR_UG;
  37098. 800fee8: 687b ldr r3, [r7, #4]
  37099. 800feea: 2201 movs r2, #1
  37100. 800feec: 615a str r2, [r3, #20]
  37101. /* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
  37102. if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
  37103. 800feee: 687b ldr r3, [r7, #4]
  37104. 800fef0: 691b ldr r3, [r3, #16]
  37105. 800fef2: f003 0301 and.w r3, r3, #1
  37106. 800fef6: 2b01 cmp r3, #1
  37107. 800fef8: d105 bne.n 800ff06 <TIM_Base_SetConfig+0x11e>
  37108. {
  37109. /* Clear the update flag */
  37110. CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
  37111. 800fefa: 687b ldr r3, [r7, #4]
  37112. 800fefc: 691b ldr r3, [r3, #16]
  37113. 800fefe: f023 0201 bic.w r2, r3, #1
  37114. 800ff02: 687b ldr r3, [r7, #4]
  37115. 800ff04: 611a str r2, [r3, #16]
  37116. }
  37117. }
  37118. 800ff06: bf00 nop
  37119. 800ff08: 3714 adds r7, #20
  37120. 800ff0a: 46bd mov sp, r7
  37121. 800ff0c: f85d 7b04 ldr.w r7, [sp], #4
  37122. 800ff10: 4770 bx lr
  37123. 800ff12: bf00 nop
  37124. 800ff14: 40010000 .word 0x40010000
  37125. 800ff18: 40000400 .word 0x40000400
  37126. 800ff1c: 40000800 .word 0x40000800
  37127. 800ff20: 40000c00 .word 0x40000c00
  37128. 800ff24: 40010400 .word 0x40010400
  37129. 800ff28: 40014000 .word 0x40014000
  37130. 800ff2c: 40014400 .word 0x40014400
  37131. 800ff30: 40014800 .word 0x40014800
  37132. 0800ff34 <TIM_OC1_SetConfig>:
  37133. * @param TIMx to select the TIM peripheral
  37134. * @param OC_Config The output configuration structure
  37135. * @retval None
  37136. */
  37137. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37138. {
  37139. 800ff34: b480 push {r7}
  37140. 800ff36: b087 sub sp, #28
  37141. 800ff38: af00 add r7, sp, #0
  37142. 800ff3a: 6078 str r0, [r7, #4]
  37143. 800ff3c: 6039 str r1, [r7, #0]
  37144. uint32_t tmpccmrx;
  37145. uint32_t tmpccer;
  37146. uint32_t tmpcr2;
  37147. /* Get the TIMx CCER register value */
  37148. tmpccer = TIMx->CCER;
  37149. 800ff3e: 687b ldr r3, [r7, #4]
  37150. 800ff40: 6a1b ldr r3, [r3, #32]
  37151. 800ff42: 617b str r3, [r7, #20]
  37152. /* Disable the Channel 1: Reset the CC1E Bit */
  37153. TIMx->CCER &= ~TIM_CCER_CC1E;
  37154. 800ff44: 687b ldr r3, [r7, #4]
  37155. 800ff46: 6a1b ldr r3, [r3, #32]
  37156. 800ff48: f023 0201 bic.w r2, r3, #1
  37157. 800ff4c: 687b ldr r3, [r7, #4]
  37158. 800ff4e: 621a str r2, [r3, #32]
  37159. /* Get the TIMx CR2 register value */
  37160. tmpcr2 = TIMx->CR2;
  37161. 800ff50: 687b ldr r3, [r7, #4]
  37162. 800ff52: 685b ldr r3, [r3, #4]
  37163. 800ff54: 613b str r3, [r7, #16]
  37164. /* Get the TIMx CCMR1 register value */
  37165. tmpccmrx = TIMx->CCMR1;
  37166. 800ff56: 687b ldr r3, [r7, #4]
  37167. 800ff58: 699b ldr r3, [r3, #24]
  37168. 800ff5a: 60fb str r3, [r7, #12]
  37169. /* Reset the Output Compare Mode Bits */
  37170. tmpccmrx &= ~TIM_CCMR1_OC1M;
  37171. 800ff5c: 68fa ldr r2, [r7, #12]
  37172. 800ff5e: 4b37 ldr r3, [pc, #220] @ (801003c <TIM_OC1_SetConfig+0x108>)
  37173. 800ff60: 4013 ands r3, r2
  37174. 800ff62: 60fb str r3, [r7, #12]
  37175. tmpccmrx &= ~TIM_CCMR1_CC1S;
  37176. 800ff64: 68fb ldr r3, [r7, #12]
  37177. 800ff66: f023 0303 bic.w r3, r3, #3
  37178. 800ff6a: 60fb str r3, [r7, #12]
  37179. /* Select the Output Compare Mode */
  37180. tmpccmrx |= OC_Config->OCMode;
  37181. 800ff6c: 683b ldr r3, [r7, #0]
  37182. 800ff6e: 681b ldr r3, [r3, #0]
  37183. 800ff70: 68fa ldr r2, [r7, #12]
  37184. 800ff72: 4313 orrs r3, r2
  37185. 800ff74: 60fb str r3, [r7, #12]
  37186. /* Reset the Output Polarity level */
  37187. tmpccer &= ~TIM_CCER_CC1P;
  37188. 800ff76: 697b ldr r3, [r7, #20]
  37189. 800ff78: f023 0302 bic.w r3, r3, #2
  37190. 800ff7c: 617b str r3, [r7, #20]
  37191. /* Set the Output Compare Polarity */
  37192. tmpccer |= OC_Config->OCPolarity;
  37193. 800ff7e: 683b ldr r3, [r7, #0]
  37194. 800ff80: 689b ldr r3, [r3, #8]
  37195. 800ff82: 697a ldr r2, [r7, #20]
  37196. 800ff84: 4313 orrs r3, r2
  37197. 800ff86: 617b str r3, [r7, #20]
  37198. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1))
  37199. 800ff88: 687b ldr r3, [r7, #4]
  37200. 800ff8a: 4a2d ldr r2, [pc, #180] @ (8010040 <TIM_OC1_SetConfig+0x10c>)
  37201. 800ff8c: 4293 cmp r3, r2
  37202. 800ff8e: d00f beq.n 800ffb0 <TIM_OC1_SetConfig+0x7c>
  37203. 800ff90: 687b ldr r3, [r7, #4]
  37204. 800ff92: 4a2c ldr r2, [pc, #176] @ (8010044 <TIM_OC1_SetConfig+0x110>)
  37205. 800ff94: 4293 cmp r3, r2
  37206. 800ff96: d00b beq.n 800ffb0 <TIM_OC1_SetConfig+0x7c>
  37207. 800ff98: 687b ldr r3, [r7, #4]
  37208. 800ff9a: 4a2b ldr r2, [pc, #172] @ (8010048 <TIM_OC1_SetConfig+0x114>)
  37209. 800ff9c: 4293 cmp r3, r2
  37210. 800ff9e: d007 beq.n 800ffb0 <TIM_OC1_SetConfig+0x7c>
  37211. 800ffa0: 687b ldr r3, [r7, #4]
  37212. 800ffa2: 4a2a ldr r2, [pc, #168] @ (801004c <TIM_OC1_SetConfig+0x118>)
  37213. 800ffa4: 4293 cmp r3, r2
  37214. 800ffa6: d003 beq.n 800ffb0 <TIM_OC1_SetConfig+0x7c>
  37215. 800ffa8: 687b ldr r3, [r7, #4]
  37216. 800ffaa: 4a29 ldr r2, [pc, #164] @ (8010050 <TIM_OC1_SetConfig+0x11c>)
  37217. 800ffac: 4293 cmp r3, r2
  37218. 800ffae: d10c bne.n 800ffca <TIM_OC1_SetConfig+0x96>
  37219. {
  37220. /* Check parameters */
  37221. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37222. /* Reset the Output N Polarity level */
  37223. tmpccer &= ~TIM_CCER_CC1NP;
  37224. 800ffb0: 697b ldr r3, [r7, #20]
  37225. 800ffb2: f023 0308 bic.w r3, r3, #8
  37226. 800ffb6: 617b str r3, [r7, #20]
  37227. /* Set the Output N Polarity */
  37228. tmpccer |= OC_Config->OCNPolarity;
  37229. 800ffb8: 683b ldr r3, [r7, #0]
  37230. 800ffba: 68db ldr r3, [r3, #12]
  37231. 800ffbc: 697a ldr r2, [r7, #20]
  37232. 800ffbe: 4313 orrs r3, r2
  37233. 800ffc0: 617b str r3, [r7, #20]
  37234. /* Reset the Output N State */
  37235. tmpccer &= ~TIM_CCER_CC1NE;
  37236. 800ffc2: 697b ldr r3, [r7, #20]
  37237. 800ffc4: f023 0304 bic.w r3, r3, #4
  37238. 800ffc8: 617b str r3, [r7, #20]
  37239. }
  37240. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37241. 800ffca: 687b ldr r3, [r7, #4]
  37242. 800ffcc: 4a1c ldr r2, [pc, #112] @ (8010040 <TIM_OC1_SetConfig+0x10c>)
  37243. 800ffce: 4293 cmp r3, r2
  37244. 800ffd0: d00f beq.n 800fff2 <TIM_OC1_SetConfig+0xbe>
  37245. 800ffd2: 687b ldr r3, [r7, #4]
  37246. 800ffd4: 4a1b ldr r2, [pc, #108] @ (8010044 <TIM_OC1_SetConfig+0x110>)
  37247. 800ffd6: 4293 cmp r3, r2
  37248. 800ffd8: d00b beq.n 800fff2 <TIM_OC1_SetConfig+0xbe>
  37249. 800ffda: 687b ldr r3, [r7, #4]
  37250. 800ffdc: 4a1a ldr r2, [pc, #104] @ (8010048 <TIM_OC1_SetConfig+0x114>)
  37251. 800ffde: 4293 cmp r3, r2
  37252. 800ffe0: d007 beq.n 800fff2 <TIM_OC1_SetConfig+0xbe>
  37253. 800ffe2: 687b ldr r3, [r7, #4]
  37254. 800ffe4: 4a19 ldr r2, [pc, #100] @ (801004c <TIM_OC1_SetConfig+0x118>)
  37255. 800ffe6: 4293 cmp r3, r2
  37256. 800ffe8: d003 beq.n 800fff2 <TIM_OC1_SetConfig+0xbe>
  37257. 800ffea: 687b ldr r3, [r7, #4]
  37258. 800ffec: 4a18 ldr r2, [pc, #96] @ (8010050 <TIM_OC1_SetConfig+0x11c>)
  37259. 800ffee: 4293 cmp r3, r2
  37260. 800fff0: d111 bne.n 8010016 <TIM_OC1_SetConfig+0xe2>
  37261. /* Check parameters */
  37262. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37263. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37264. /* Reset the Output Compare and Output Compare N IDLE State */
  37265. tmpcr2 &= ~TIM_CR2_OIS1;
  37266. 800fff2: 693b ldr r3, [r7, #16]
  37267. 800fff4: f423 7380 bic.w r3, r3, #256 @ 0x100
  37268. 800fff8: 613b str r3, [r7, #16]
  37269. tmpcr2 &= ~TIM_CR2_OIS1N;
  37270. 800fffa: 693b ldr r3, [r7, #16]
  37271. 800fffc: f423 7300 bic.w r3, r3, #512 @ 0x200
  37272. 8010000: 613b str r3, [r7, #16]
  37273. /* Set the Output Idle state */
  37274. tmpcr2 |= OC_Config->OCIdleState;
  37275. 8010002: 683b ldr r3, [r7, #0]
  37276. 8010004: 695b ldr r3, [r3, #20]
  37277. 8010006: 693a ldr r2, [r7, #16]
  37278. 8010008: 4313 orrs r3, r2
  37279. 801000a: 613b str r3, [r7, #16]
  37280. /* Set the Output N Idle state */
  37281. tmpcr2 |= OC_Config->OCNIdleState;
  37282. 801000c: 683b ldr r3, [r7, #0]
  37283. 801000e: 699b ldr r3, [r3, #24]
  37284. 8010010: 693a ldr r2, [r7, #16]
  37285. 8010012: 4313 orrs r3, r2
  37286. 8010014: 613b str r3, [r7, #16]
  37287. }
  37288. /* Write to TIMx CR2 */
  37289. TIMx->CR2 = tmpcr2;
  37290. 8010016: 687b ldr r3, [r7, #4]
  37291. 8010018: 693a ldr r2, [r7, #16]
  37292. 801001a: 605a str r2, [r3, #4]
  37293. /* Write to TIMx CCMR1 */
  37294. TIMx->CCMR1 = tmpccmrx;
  37295. 801001c: 687b ldr r3, [r7, #4]
  37296. 801001e: 68fa ldr r2, [r7, #12]
  37297. 8010020: 619a str r2, [r3, #24]
  37298. /* Set the Capture Compare Register value */
  37299. TIMx->CCR1 = OC_Config->Pulse;
  37300. 8010022: 683b ldr r3, [r7, #0]
  37301. 8010024: 685a ldr r2, [r3, #4]
  37302. 8010026: 687b ldr r3, [r7, #4]
  37303. 8010028: 635a str r2, [r3, #52] @ 0x34
  37304. /* Write to TIMx CCER */
  37305. TIMx->CCER = tmpccer;
  37306. 801002a: 687b ldr r3, [r7, #4]
  37307. 801002c: 697a ldr r2, [r7, #20]
  37308. 801002e: 621a str r2, [r3, #32]
  37309. }
  37310. 8010030: bf00 nop
  37311. 8010032: 371c adds r7, #28
  37312. 8010034: 46bd mov sp, r7
  37313. 8010036: f85d 7b04 ldr.w r7, [sp], #4
  37314. 801003a: 4770 bx lr
  37315. 801003c: fffeff8f .word 0xfffeff8f
  37316. 8010040: 40010000 .word 0x40010000
  37317. 8010044: 40010400 .word 0x40010400
  37318. 8010048: 40014000 .word 0x40014000
  37319. 801004c: 40014400 .word 0x40014400
  37320. 8010050: 40014800 .word 0x40014800
  37321. 08010054 <TIM_OC2_SetConfig>:
  37322. * @param TIMx to select the TIM peripheral
  37323. * @param OC_Config The output configuration structure
  37324. * @retval None
  37325. */
  37326. void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37327. {
  37328. 8010054: b480 push {r7}
  37329. 8010056: b087 sub sp, #28
  37330. 8010058: af00 add r7, sp, #0
  37331. 801005a: 6078 str r0, [r7, #4]
  37332. 801005c: 6039 str r1, [r7, #0]
  37333. uint32_t tmpccmrx;
  37334. uint32_t tmpccer;
  37335. uint32_t tmpcr2;
  37336. /* Get the TIMx CCER register value */
  37337. tmpccer = TIMx->CCER;
  37338. 801005e: 687b ldr r3, [r7, #4]
  37339. 8010060: 6a1b ldr r3, [r3, #32]
  37340. 8010062: 617b str r3, [r7, #20]
  37341. /* Disable the Channel 2: Reset the CC2E Bit */
  37342. TIMx->CCER &= ~TIM_CCER_CC2E;
  37343. 8010064: 687b ldr r3, [r7, #4]
  37344. 8010066: 6a1b ldr r3, [r3, #32]
  37345. 8010068: f023 0210 bic.w r2, r3, #16
  37346. 801006c: 687b ldr r3, [r7, #4]
  37347. 801006e: 621a str r2, [r3, #32]
  37348. /* Get the TIMx CR2 register value */
  37349. tmpcr2 = TIMx->CR2;
  37350. 8010070: 687b ldr r3, [r7, #4]
  37351. 8010072: 685b ldr r3, [r3, #4]
  37352. 8010074: 613b str r3, [r7, #16]
  37353. /* Get the TIMx CCMR1 register value */
  37354. tmpccmrx = TIMx->CCMR1;
  37355. 8010076: 687b ldr r3, [r7, #4]
  37356. 8010078: 699b ldr r3, [r3, #24]
  37357. 801007a: 60fb str r3, [r7, #12]
  37358. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37359. tmpccmrx &= ~TIM_CCMR1_OC2M;
  37360. 801007c: 68fa ldr r2, [r7, #12]
  37361. 801007e: 4b34 ldr r3, [pc, #208] @ (8010150 <TIM_OC2_SetConfig+0xfc>)
  37362. 8010080: 4013 ands r3, r2
  37363. 8010082: 60fb str r3, [r7, #12]
  37364. tmpccmrx &= ~TIM_CCMR1_CC2S;
  37365. 8010084: 68fb ldr r3, [r7, #12]
  37366. 8010086: f423 7340 bic.w r3, r3, #768 @ 0x300
  37367. 801008a: 60fb str r3, [r7, #12]
  37368. /* Select the Output Compare Mode */
  37369. tmpccmrx |= (OC_Config->OCMode << 8U);
  37370. 801008c: 683b ldr r3, [r7, #0]
  37371. 801008e: 681b ldr r3, [r3, #0]
  37372. 8010090: 021b lsls r3, r3, #8
  37373. 8010092: 68fa ldr r2, [r7, #12]
  37374. 8010094: 4313 orrs r3, r2
  37375. 8010096: 60fb str r3, [r7, #12]
  37376. /* Reset the Output Polarity level */
  37377. tmpccer &= ~TIM_CCER_CC2P;
  37378. 8010098: 697b ldr r3, [r7, #20]
  37379. 801009a: f023 0320 bic.w r3, r3, #32
  37380. 801009e: 617b str r3, [r7, #20]
  37381. /* Set the Output Compare Polarity */
  37382. tmpccer |= (OC_Config->OCPolarity << 4U);
  37383. 80100a0: 683b ldr r3, [r7, #0]
  37384. 80100a2: 689b ldr r3, [r3, #8]
  37385. 80100a4: 011b lsls r3, r3, #4
  37386. 80100a6: 697a ldr r2, [r7, #20]
  37387. 80100a8: 4313 orrs r3, r2
  37388. 80100aa: 617b str r3, [r7, #20]
  37389. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2))
  37390. 80100ac: 687b ldr r3, [r7, #4]
  37391. 80100ae: 4a29 ldr r2, [pc, #164] @ (8010154 <TIM_OC2_SetConfig+0x100>)
  37392. 80100b0: 4293 cmp r3, r2
  37393. 80100b2: d003 beq.n 80100bc <TIM_OC2_SetConfig+0x68>
  37394. 80100b4: 687b ldr r3, [r7, #4]
  37395. 80100b6: 4a28 ldr r2, [pc, #160] @ (8010158 <TIM_OC2_SetConfig+0x104>)
  37396. 80100b8: 4293 cmp r3, r2
  37397. 80100ba: d10d bne.n 80100d8 <TIM_OC2_SetConfig+0x84>
  37398. {
  37399. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37400. /* Reset the Output N Polarity level */
  37401. tmpccer &= ~TIM_CCER_CC2NP;
  37402. 80100bc: 697b ldr r3, [r7, #20]
  37403. 80100be: f023 0380 bic.w r3, r3, #128 @ 0x80
  37404. 80100c2: 617b str r3, [r7, #20]
  37405. /* Set the Output N Polarity */
  37406. tmpccer |= (OC_Config->OCNPolarity << 4U);
  37407. 80100c4: 683b ldr r3, [r7, #0]
  37408. 80100c6: 68db ldr r3, [r3, #12]
  37409. 80100c8: 011b lsls r3, r3, #4
  37410. 80100ca: 697a ldr r2, [r7, #20]
  37411. 80100cc: 4313 orrs r3, r2
  37412. 80100ce: 617b str r3, [r7, #20]
  37413. /* Reset the Output N State */
  37414. tmpccer &= ~TIM_CCER_CC2NE;
  37415. 80100d0: 697b ldr r3, [r7, #20]
  37416. 80100d2: f023 0340 bic.w r3, r3, #64 @ 0x40
  37417. 80100d6: 617b str r3, [r7, #20]
  37418. }
  37419. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37420. 80100d8: 687b ldr r3, [r7, #4]
  37421. 80100da: 4a1e ldr r2, [pc, #120] @ (8010154 <TIM_OC2_SetConfig+0x100>)
  37422. 80100dc: 4293 cmp r3, r2
  37423. 80100de: d00f beq.n 8010100 <TIM_OC2_SetConfig+0xac>
  37424. 80100e0: 687b ldr r3, [r7, #4]
  37425. 80100e2: 4a1d ldr r2, [pc, #116] @ (8010158 <TIM_OC2_SetConfig+0x104>)
  37426. 80100e4: 4293 cmp r3, r2
  37427. 80100e6: d00b beq.n 8010100 <TIM_OC2_SetConfig+0xac>
  37428. 80100e8: 687b ldr r3, [r7, #4]
  37429. 80100ea: 4a1c ldr r2, [pc, #112] @ (801015c <TIM_OC2_SetConfig+0x108>)
  37430. 80100ec: 4293 cmp r3, r2
  37431. 80100ee: d007 beq.n 8010100 <TIM_OC2_SetConfig+0xac>
  37432. 80100f0: 687b ldr r3, [r7, #4]
  37433. 80100f2: 4a1b ldr r2, [pc, #108] @ (8010160 <TIM_OC2_SetConfig+0x10c>)
  37434. 80100f4: 4293 cmp r3, r2
  37435. 80100f6: d003 beq.n 8010100 <TIM_OC2_SetConfig+0xac>
  37436. 80100f8: 687b ldr r3, [r7, #4]
  37437. 80100fa: 4a1a ldr r2, [pc, #104] @ (8010164 <TIM_OC2_SetConfig+0x110>)
  37438. 80100fc: 4293 cmp r3, r2
  37439. 80100fe: d113 bne.n 8010128 <TIM_OC2_SetConfig+0xd4>
  37440. /* Check parameters */
  37441. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37442. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37443. /* Reset the Output Compare and Output Compare N IDLE State */
  37444. tmpcr2 &= ~TIM_CR2_OIS2;
  37445. 8010100: 693b ldr r3, [r7, #16]
  37446. 8010102: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37447. 8010106: 613b str r3, [r7, #16]
  37448. tmpcr2 &= ~TIM_CR2_OIS2N;
  37449. 8010108: 693b ldr r3, [r7, #16]
  37450. 801010a: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37451. 801010e: 613b str r3, [r7, #16]
  37452. /* Set the Output Idle state */
  37453. tmpcr2 |= (OC_Config->OCIdleState << 2U);
  37454. 8010110: 683b ldr r3, [r7, #0]
  37455. 8010112: 695b ldr r3, [r3, #20]
  37456. 8010114: 009b lsls r3, r3, #2
  37457. 8010116: 693a ldr r2, [r7, #16]
  37458. 8010118: 4313 orrs r3, r2
  37459. 801011a: 613b str r3, [r7, #16]
  37460. /* Set the Output N Idle state */
  37461. tmpcr2 |= (OC_Config->OCNIdleState << 2U);
  37462. 801011c: 683b ldr r3, [r7, #0]
  37463. 801011e: 699b ldr r3, [r3, #24]
  37464. 8010120: 009b lsls r3, r3, #2
  37465. 8010122: 693a ldr r2, [r7, #16]
  37466. 8010124: 4313 orrs r3, r2
  37467. 8010126: 613b str r3, [r7, #16]
  37468. }
  37469. /* Write to TIMx CR2 */
  37470. TIMx->CR2 = tmpcr2;
  37471. 8010128: 687b ldr r3, [r7, #4]
  37472. 801012a: 693a ldr r2, [r7, #16]
  37473. 801012c: 605a str r2, [r3, #4]
  37474. /* Write to TIMx CCMR1 */
  37475. TIMx->CCMR1 = tmpccmrx;
  37476. 801012e: 687b ldr r3, [r7, #4]
  37477. 8010130: 68fa ldr r2, [r7, #12]
  37478. 8010132: 619a str r2, [r3, #24]
  37479. /* Set the Capture Compare Register value */
  37480. TIMx->CCR2 = OC_Config->Pulse;
  37481. 8010134: 683b ldr r3, [r7, #0]
  37482. 8010136: 685a ldr r2, [r3, #4]
  37483. 8010138: 687b ldr r3, [r7, #4]
  37484. 801013a: 639a str r2, [r3, #56] @ 0x38
  37485. /* Write to TIMx CCER */
  37486. TIMx->CCER = tmpccer;
  37487. 801013c: 687b ldr r3, [r7, #4]
  37488. 801013e: 697a ldr r2, [r7, #20]
  37489. 8010140: 621a str r2, [r3, #32]
  37490. }
  37491. 8010142: bf00 nop
  37492. 8010144: 371c adds r7, #28
  37493. 8010146: 46bd mov sp, r7
  37494. 8010148: f85d 7b04 ldr.w r7, [sp], #4
  37495. 801014c: 4770 bx lr
  37496. 801014e: bf00 nop
  37497. 8010150: feff8fff .word 0xfeff8fff
  37498. 8010154: 40010000 .word 0x40010000
  37499. 8010158: 40010400 .word 0x40010400
  37500. 801015c: 40014000 .word 0x40014000
  37501. 8010160: 40014400 .word 0x40014400
  37502. 8010164: 40014800 .word 0x40014800
  37503. 08010168 <TIM_OC3_SetConfig>:
  37504. * @param TIMx to select the TIM peripheral
  37505. * @param OC_Config The output configuration structure
  37506. * @retval None
  37507. */
  37508. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37509. {
  37510. 8010168: b480 push {r7}
  37511. 801016a: b087 sub sp, #28
  37512. 801016c: af00 add r7, sp, #0
  37513. 801016e: 6078 str r0, [r7, #4]
  37514. 8010170: 6039 str r1, [r7, #0]
  37515. uint32_t tmpccmrx;
  37516. uint32_t tmpccer;
  37517. uint32_t tmpcr2;
  37518. /* Get the TIMx CCER register value */
  37519. tmpccer = TIMx->CCER;
  37520. 8010172: 687b ldr r3, [r7, #4]
  37521. 8010174: 6a1b ldr r3, [r3, #32]
  37522. 8010176: 617b str r3, [r7, #20]
  37523. /* Disable the Channel 3: Reset the CC2E Bit */
  37524. TIMx->CCER &= ~TIM_CCER_CC3E;
  37525. 8010178: 687b ldr r3, [r7, #4]
  37526. 801017a: 6a1b ldr r3, [r3, #32]
  37527. 801017c: f423 7280 bic.w r2, r3, #256 @ 0x100
  37528. 8010180: 687b ldr r3, [r7, #4]
  37529. 8010182: 621a str r2, [r3, #32]
  37530. /* Get the TIMx CR2 register value */
  37531. tmpcr2 = TIMx->CR2;
  37532. 8010184: 687b ldr r3, [r7, #4]
  37533. 8010186: 685b ldr r3, [r3, #4]
  37534. 8010188: 613b str r3, [r7, #16]
  37535. /* Get the TIMx CCMR2 register value */
  37536. tmpccmrx = TIMx->CCMR2;
  37537. 801018a: 687b ldr r3, [r7, #4]
  37538. 801018c: 69db ldr r3, [r3, #28]
  37539. 801018e: 60fb str r3, [r7, #12]
  37540. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37541. tmpccmrx &= ~TIM_CCMR2_OC3M;
  37542. 8010190: 68fa ldr r2, [r7, #12]
  37543. 8010192: 4b33 ldr r3, [pc, #204] @ (8010260 <TIM_OC3_SetConfig+0xf8>)
  37544. 8010194: 4013 ands r3, r2
  37545. 8010196: 60fb str r3, [r7, #12]
  37546. tmpccmrx &= ~TIM_CCMR2_CC3S;
  37547. 8010198: 68fb ldr r3, [r7, #12]
  37548. 801019a: f023 0303 bic.w r3, r3, #3
  37549. 801019e: 60fb str r3, [r7, #12]
  37550. /* Select the Output Compare Mode */
  37551. tmpccmrx |= OC_Config->OCMode;
  37552. 80101a0: 683b ldr r3, [r7, #0]
  37553. 80101a2: 681b ldr r3, [r3, #0]
  37554. 80101a4: 68fa ldr r2, [r7, #12]
  37555. 80101a6: 4313 orrs r3, r2
  37556. 80101a8: 60fb str r3, [r7, #12]
  37557. /* Reset the Output Polarity level */
  37558. tmpccer &= ~TIM_CCER_CC3P;
  37559. 80101aa: 697b ldr r3, [r7, #20]
  37560. 80101ac: f423 7300 bic.w r3, r3, #512 @ 0x200
  37561. 80101b0: 617b str r3, [r7, #20]
  37562. /* Set the Output Compare Polarity */
  37563. tmpccer |= (OC_Config->OCPolarity << 8U);
  37564. 80101b2: 683b ldr r3, [r7, #0]
  37565. 80101b4: 689b ldr r3, [r3, #8]
  37566. 80101b6: 021b lsls r3, r3, #8
  37567. 80101b8: 697a ldr r2, [r7, #20]
  37568. 80101ba: 4313 orrs r3, r2
  37569. 80101bc: 617b str r3, [r7, #20]
  37570. if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3))
  37571. 80101be: 687b ldr r3, [r7, #4]
  37572. 80101c0: 4a28 ldr r2, [pc, #160] @ (8010264 <TIM_OC3_SetConfig+0xfc>)
  37573. 80101c2: 4293 cmp r3, r2
  37574. 80101c4: d003 beq.n 80101ce <TIM_OC3_SetConfig+0x66>
  37575. 80101c6: 687b ldr r3, [r7, #4]
  37576. 80101c8: 4a27 ldr r2, [pc, #156] @ (8010268 <TIM_OC3_SetConfig+0x100>)
  37577. 80101ca: 4293 cmp r3, r2
  37578. 80101cc: d10d bne.n 80101ea <TIM_OC3_SetConfig+0x82>
  37579. {
  37580. assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity));
  37581. /* Reset the Output N Polarity level */
  37582. tmpccer &= ~TIM_CCER_CC3NP;
  37583. 80101ce: 697b ldr r3, [r7, #20]
  37584. 80101d0: f423 6300 bic.w r3, r3, #2048 @ 0x800
  37585. 80101d4: 617b str r3, [r7, #20]
  37586. /* Set the Output N Polarity */
  37587. tmpccer |= (OC_Config->OCNPolarity << 8U);
  37588. 80101d6: 683b ldr r3, [r7, #0]
  37589. 80101d8: 68db ldr r3, [r3, #12]
  37590. 80101da: 021b lsls r3, r3, #8
  37591. 80101dc: 697a ldr r2, [r7, #20]
  37592. 80101de: 4313 orrs r3, r2
  37593. 80101e0: 617b str r3, [r7, #20]
  37594. /* Reset the Output N State */
  37595. tmpccer &= ~TIM_CCER_CC3NE;
  37596. 80101e2: 697b ldr r3, [r7, #20]
  37597. 80101e4: f423 6380 bic.w r3, r3, #1024 @ 0x400
  37598. 80101e8: 617b str r3, [r7, #20]
  37599. }
  37600. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37601. 80101ea: 687b ldr r3, [r7, #4]
  37602. 80101ec: 4a1d ldr r2, [pc, #116] @ (8010264 <TIM_OC3_SetConfig+0xfc>)
  37603. 80101ee: 4293 cmp r3, r2
  37604. 80101f0: d00f beq.n 8010212 <TIM_OC3_SetConfig+0xaa>
  37605. 80101f2: 687b ldr r3, [r7, #4]
  37606. 80101f4: 4a1c ldr r2, [pc, #112] @ (8010268 <TIM_OC3_SetConfig+0x100>)
  37607. 80101f6: 4293 cmp r3, r2
  37608. 80101f8: d00b beq.n 8010212 <TIM_OC3_SetConfig+0xaa>
  37609. 80101fa: 687b ldr r3, [r7, #4]
  37610. 80101fc: 4a1b ldr r2, [pc, #108] @ (801026c <TIM_OC3_SetConfig+0x104>)
  37611. 80101fe: 4293 cmp r3, r2
  37612. 8010200: d007 beq.n 8010212 <TIM_OC3_SetConfig+0xaa>
  37613. 8010202: 687b ldr r3, [r7, #4]
  37614. 8010204: 4a1a ldr r2, [pc, #104] @ (8010270 <TIM_OC3_SetConfig+0x108>)
  37615. 8010206: 4293 cmp r3, r2
  37616. 8010208: d003 beq.n 8010212 <TIM_OC3_SetConfig+0xaa>
  37617. 801020a: 687b ldr r3, [r7, #4]
  37618. 801020c: 4a19 ldr r2, [pc, #100] @ (8010274 <TIM_OC3_SetConfig+0x10c>)
  37619. 801020e: 4293 cmp r3, r2
  37620. 8010210: d113 bne.n 801023a <TIM_OC3_SetConfig+0xd2>
  37621. /* Check parameters */
  37622. assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState));
  37623. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37624. /* Reset the Output Compare and Output Compare N IDLE State */
  37625. tmpcr2 &= ~TIM_CR2_OIS3;
  37626. 8010212: 693b ldr r3, [r7, #16]
  37627. 8010214: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  37628. 8010218: 613b str r3, [r7, #16]
  37629. tmpcr2 &= ~TIM_CR2_OIS3N;
  37630. 801021a: 693b ldr r3, [r7, #16]
  37631. 801021c: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37632. 8010220: 613b str r3, [r7, #16]
  37633. /* Set the Output Idle state */
  37634. tmpcr2 |= (OC_Config->OCIdleState << 4U);
  37635. 8010222: 683b ldr r3, [r7, #0]
  37636. 8010224: 695b ldr r3, [r3, #20]
  37637. 8010226: 011b lsls r3, r3, #4
  37638. 8010228: 693a ldr r2, [r7, #16]
  37639. 801022a: 4313 orrs r3, r2
  37640. 801022c: 613b str r3, [r7, #16]
  37641. /* Set the Output N Idle state */
  37642. tmpcr2 |= (OC_Config->OCNIdleState << 4U);
  37643. 801022e: 683b ldr r3, [r7, #0]
  37644. 8010230: 699b ldr r3, [r3, #24]
  37645. 8010232: 011b lsls r3, r3, #4
  37646. 8010234: 693a ldr r2, [r7, #16]
  37647. 8010236: 4313 orrs r3, r2
  37648. 8010238: 613b str r3, [r7, #16]
  37649. }
  37650. /* Write to TIMx CR2 */
  37651. TIMx->CR2 = tmpcr2;
  37652. 801023a: 687b ldr r3, [r7, #4]
  37653. 801023c: 693a ldr r2, [r7, #16]
  37654. 801023e: 605a str r2, [r3, #4]
  37655. /* Write to TIMx CCMR2 */
  37656. TIMx->CCMR2 = tmpccmrx;
  37657. 8010240: 687b ldr r3, [r7, #4]
  37658. 8010242: 68fa ldr r2, [r7, #12]
  37659. 8010244: 61da str r2, [r3, #28]
  37660. /* Set the Capture Compare Register value */
  37661. TIMx->CCR3 = OC_Config->Pulse;
  37662. 8010246: 683b ldr r3, [r7, #0]
  37663. 8010248: 685a ldr r2, [r3, #4]
  37664. 801024a: 687b ldr r3, [r7, #4]
  37665. 801024c: 63da str r2, [r3, #60] @ 0x3c
  37666. /* Write to TIMx CCER */
  37667. TIMx->CCER = tmpccer;
  37668. 801024e: 687b ldr r3, [r7, #4]
  37669. 8010250: 697a ldr r2, [r7, #20]
  37670. 8010252: 621a str r2, [r3, #32]
  37671. }
  37672. 8010254: bf00 nop
  37673. 8010256: 371c adds r7, #28
  37674. 8010258: 46bd mov sp, r7
  37675. 801025a: f85d 7b04 ldr.w r7, [sp], #4
  37676. 801025e: 4770 bx lr
  37677. 8010260: fffeff8f .word 0xfffeff8f
  37678. 8010264: 40010000 .word 0x40010000
  37679. 8010268: 40010400 .word 0x40010400
  37680. 801026c: 40014000 .word 0x40014000
  37681. 8010270: 40014400 .word 0x40014400
  37682. 8010274: 40014800 .word 0x40014800
  37683. 08010278 <TIM_OC4_SetConfig>:
  37684. * @param TIMx to select the TIM peripheral
  37685. * @param OC_Config The output configuration structure
  37686. * @retval None
  37687. */
  37688. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config)
  37689. {
  37690. 8010278: b480 push {r7}
  37691. 801027a: b087 sub sp, #28
  37692. 801027c: af00 add r7, sp, #0
  37693. 801027e: 6078 str r0, [r7, #4]
  37694. 8010280: 6039 str r1, [r7, #0]
  37695. uint32_t tmpccmrx;
  37696. uint32_t tmpccer;
  37697. uint32_t tmpcr2;
  37698. /* Get the TIMx CCER register value */
  37699. tmpccer = TIMx->CCER;
  37700. 8010282: 687b ldr r3, [r7, #4]
  37701. 8010284: 6a1b ldr r3, [r3, #32]
  37702. 8010286: 613b str r3, [r7, #16]
  37703. /* Disable the Channel 4: Reset the CC4E Bit */
  37704. TIMx->CCER &= ~TIM_CCER_CC4E;
  37705. 8010288: 687b ldr r3, [r7, #4]
  37706. 801028a: 6a1b ldr r3, [r3, #32]
  37707. 801028c: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  37708. 8010290: 687b ldr r3, [r7, #4]
  37709. 8010292: 621a str r2, [r3, #32]
  37710. /* Get the TIMx CR2 register value */
  37711. tmpcr2 = TIMx->CR2;
  37712. 8010294: 687b ldr r3, [r7, #4]
  37713. 8010296: 685b ldr r3, [r3, #4]
  37714. 8010298: 617b str r3, [r7, #20]
  37715. /* Get the TIMx CCMR2 register value */
  37716. tmpccmrx = TIMx->CCMR2;
  37717. 801029a: 687b ldr r3, [r7, #4]
  37718. 801029c: 69db ldr r3, [r3, #28]
  37719. 801029e: 60fb str r3, [r7, #12]
  37720. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  37721. tmpccmrx &= ~TIM_CCMR2_OC4M;
  37722. 80102a0: 68fa ldr r2, [r7, #12]
  37723. 80102a2: 4b24 ldr r3, [pc, #144] @ (8010334 <TIM_OC4_SetConfig+0xbc>)
  37724. 80102a4: 4013 ands r3, r2
  37725. 80102a6: 60fb str r3, [r7, #12]
  37726. tmpccmrx &= ~TIM_CCMR2_CC4S;
  37727. 80102a8: 68fb ldr r3, [r7, #12]
  37728. 80102aa: f423 7340 bic.w r3, r3, #768 @ 0x300
  37729. 80102ae: 60fb str r3, [r7, #12]
  37730. /* Select the Output Compare Mode */
  37731. tmpccmrx |= (OC_Config->OCMode << 8U);
  37732. 80102b0: 683b ldr r3, [r7, #0]
  37733. 80102b2: 681b ldr r3, [r3, #0]
  37734. 80102b4: 021b lsls r3, r3, #8
  37735. 80102b6: 68fa ldr r2, [r7, #12]
  37736. 80102b8: 4313 orrs r3, r2
  37737. 80102ba: 60fb str r3, [r7, #12]
  37738. /* Reset the Output Polarity level */
  37739. tmpccer &= ~TIM_CCER_CC4P;
  37740. 80102bc: 693b ldr r3, [r7, #16]
  37741. 80102be: f423 5300 bic.w r3, r3, #8192 @ 0x2000
  37742. 80102c2: 613b str r3, [r7, #16]
  37743. /* Set the Output Compare Polarity */
  37744. tmpccer |= (OC_Config->OCPolarity << 12U);
  37745. 80102c4: 683b ldr r3, [r7, #0]
  37746. 80102c6: 689b ldr r3, [r3, #8]
  37747. 80102c8: 031b lsls r3, r3, #12
  37748. 80102ca: 693a ldr r2, [r7, #16]
  37749. 80102cc: 4313 orrs r3, r2
  37750. 80102ce: 613b str r3, [r7, #16]
  37751. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37752. 80102d0: 687b ldr r3, [r7, #4]
  37753. 80102d2: 4a19 ldr r2, [pc, #100] @ (8010338 <TIM_OC4_SetConfig+0xc0>)
  37754. 80102d4: 4293 cmp r3, r2
  37755. 80102d6: d00f beq.n 80102f8 <TIM_OC4_SetConfig+0x80>
  37756. 80102d8: 687b ldr r3, [r7, #4]
  37757. 80102da: 4a18 ldr r2, [pc, #96] @ (801033c <TIM_OC4_SetConfig+0xc4>)
  37758. 80102dc: 4293 cmp r3, r2
  37759. 80102de: d00b beq.n 80102f8 <TIM_OC4_SetConfig+0x80>
  37760. 80102e0: 687b ldr r3, [r7, #4]
  37761. 80102e2: 4a17 ldr r2, [pc, #92] @ (8010340 <TIM_OC4_SetConfig+0xc8>)
  37762. 80102e4: 4293 cmp r3, r2
  37763. 80102e6: d007 beq.n 80102f8 <TIM_OC4_SetConfig+0x80>
  37764. 80102e8: 687b ldr r3, [r7, #4]
  37765. 80102ea: 4a16 ldr r2, [pc, #88] @ (8010344 <TIM_OC4_SetConfig+0xcc>)
  37766. 80102ec: 4293 cmp r3, r2
  37767. 80102ee: d003 beq.n 80102f8 <TIM_OC4_SetConfig+0x80>
  37768. 80102f0: 687b ldr r3, [r7, #4]
  37769. 80102f2: 4a15 ldr r2, [pc, #84] @ (8010348 <TIM_OC4_SetConfig+0xd0>)
  37770. 80102f4: 4293 cmp r3, r2
  37771. 80102f6: d109 bne.n 801030c <TIM_OC4_SetConfig+0x94>
  37772. {
  37773. /* Check parameters */
  37774. assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState));
  37775. /* Reset the Output Compare IDLE State */
  37776. tmpcr2 &= ~TIM_CR2_OIS4;
  37777. 80102f8: 697b ldr r3, [r7, #20]
  37778. 80102fa: f423 4380 bic.w r3, r3, #16384 @ 0x4000
  37779. 80102fe: 617b str r3, [r7, #20]
  37780. /* Set the Output Idle state */
  37781. tmpcr2 |= (OC_Config->OCIdleState << 6U);
  37782. 8010300: 683b ldr r3, [r7, #0]
  37783. 8010302: 695b ldr r3, [r3, #20]
  37784. 8010304: 019b lsls r3, r3, #6
  37785. 8010306: 697a ldr r2, [r7, #20]
  37786. 8010308: 4313 orrs r3, r2
  37787. 801030a: 617b str r3, [r7, #20]
  37788. }
  37789. /* Write to TIMx CR2 */
  37790. TIMx->CR2 = tmpcr2;
  37791. 801030c: 687b ldr r3, [r7, #4]
  37792. 801030e: 697a ldr r2, [r7, #20]
  37793. 8010310: 605a str r2, [r3, #4]
  37794. /* Write to TIMx CCMR2 */
  37795. TIMx->CCMR2 = tmpccmrx;
  37796. 8010312: 687b ldr r3, [r7, #4]
  37797. 8010314: 68fa ldr r2, [r7, #12]
  37798. 8010316: 61da str r2, [r3, #28]
  37799. /* Set the Capture Compare Register value */
  37800. TIMx->CCR4 = OC_Config->Pulse;
  37801. 8010318: 683b ldr r3, [r7, #0]
  37802. 801031a: 685a ldr r2, [r3, #4]
  37803. 801031c: 687b ldr r3, [r7, #4]
  37804. 801031e: 641a str r2, [r3, #64] @ 0x40
  37805. /* Write to TIMx CCER */
  37806. TIMx->CCER = tmpccer;
  37807. 8010320: 687b ldr r3, [r7, #4]
  37808. 8010322: 693a ldr r2, [r7, #16]
  37809. 8010324: 621a str r2, [r3, #32]
  37810. }
  37811. 8010326: bf00 nop
  37812. 8010328: 371c adds r7, #28
  37813. 801032a: 46bd mov sp, r7
  37814. 801032c: f85d 7b04 ldr.w r7, [sp], #4
  37815. 8010330: 4770 bx lr
  37816. 8010332: bf00 nop
  37817. 8010334: feff8fff .word 0xfeff8fff
  37818. 8010338: 40010000 .word 0x40010000
  37819. 801033c: 40010400 .word 0x40010400
  37820. 8010340: 40014000 .word 0x40014000
  37821. 8010344: 40014400 .word 0x40014400
  37822. 8010348: 40014800 .word 0x40014800
  37823. 0801034c <TIM_OC5_SetConfig>:
  37824. * @param OC_Config The output configuration structure
  37825. * @retval None
  37826. */
  37827. static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx,
  37828. const TIM_OC_InitTypeDef *OC_Config)
  37829. {
  37830. 801034c: b480 push {r7}
  37831. 801034e: b087 sub sp, #28
  37832. 8010350: af00 add r7, sp, #0
  37833. 8010352: 6078 str r0, [r7, #4]
  37834. 8010354: 6039 str r1, [r7, #0]
  37835. uint32_t tmpccmrx;
  37836. uint32_t tmpccer;
  37837. uint32_t tmpcr2;
  37838. /* Get the TIMx CCER register value */
  37839. tmpccer = TIMx->CCER;
  37840. 8010356: 687b ldr r3, [r7, #4]
  37841. 8010358: 6a1b ldr r3, [r3, #32]
  37842. 801035a: 613b str r3, [r7, #16]
  37843. /* Disable the output: Reset the CCxE Bit */
  37844. TIMx->CCER &= ~TIM_CCER_CC5E;
  37845. 801035c: 687b ldr r3, [r7, #4]
  37846. 801035e: 6a1b ldr r3, [r3, #32]
  37847. 8010360: f423 3280 bic.w r2, r3, #65536 @ 0x10000
  37848. 8010364: 687b ldr r3, [r7, #4]
  37849. 8010366: 621a str r2, [r3, #32]
  37850. /* Get the TIMx CR2 register value */
  37851. tmpcr2 = TIMx->CR2;
  37852. 8010368: 687b ldr r3, [r7, #4]
  37853. 801036a: 685b ldr r3, [r3, #4]
  37854. 801036c: 617b str r3, [r7, #20]
  37855. /* Get the TIMx CCMR1 register value */
  37856. tmpccmrx = TIMx->CCMR3;
  37857. 801036e: 687b ldr r3, [r7, #4]
  37858. 8010370: 6d5b ldr r3, [r3, #84] @ 0x54
  37859. 8010372: 60fb str r3, [r7, #12]
  37860. /* Reset the Output Compare Mode Bits */
  37861. tmpccmrx &= ~(TIM_CCMR3_OC5M);
  37862. 8010374: 68fa ldr r2, [r7, #12]
  37863. 8010376: 4b21 ldr r3, [pc, #132] @ (80103fc <TIM_OC5_SetConfig+0xb0>)
  37864. 8010378: 4013 ands r3, r2
  37865. 801037a: 60fb str r3, [r7, #12]
  37866. /* Select the Output Compare Mode */
  37867. tmpccmrx |= OC_Config->OCMode;
  37868. 801037c: 683b ldr r3, [r7, #0]
  37869. 801037e: 681b ldr r3, [r3, #0]
  37870. 8010380: 68fa ldr r2, [r7, #12]
  37871. 8010382: 4313 orrs r3, r2
  37872. 8010384: 60fb str r3, [r7, #12]
  37873. /* Reset the Output Polarity level */
  37874. tmpccer &= ~TIM_CCER_CC5P;
  37875. 8010386: 693b ldr r3, [r7, #16]
  37876. 8010388: f423 3300 bic.w r3, r3, #131072 @ 0x20000
  37877. 801038c: 613b str r3, [r7, #16]
  37878. /* Set the Output Compare Polarity */
  37879. tmpccer |= (OC_Config->OCPolarity << 16U);
  37880. 801038e: 683b ldr r3, [r7, #0]
  37881. 8010390: 689b ldr r3, [r3, #8]
  37882. 8010392: 041b lsls r3, r3, #16
  37883. 8010394: 693a ldr r2, [r7, #16]
  37884. 8010396: 4313 orrs r3, r2
  37885. 8010398: 613b str r3, [r7, #16]
  37886. if (IS_TIM_BREAK_INSTANCE(TIMx))
  37887. 801039a: 687b ldr r3, [r7, #4]
  37888. 801039c: 4a18 ldr r2, [pc, #96] @ (8010400 <TIM_OC5_SetConfig+0xb4>)
  37889. 801039e: 4293 cmp r3, r2
  37890. 80103a0: d00f beq.n 80103c2 <TIM_OC5_SetConfig+0x76>
  37891. 80103a2: 687b ldr r3, [r7, #4]
  37892. 80103a4: 4a17 ldr r2, [pc, #92] @ (8010404 <TIM_OC5_SetConfig+0xb8>)
  37893. 80103a6: 4293 cmp r3, r2
  37894. 80103a8: d00b beq.n 80103c2 <TIM_OC5_SetConfig+0x76>
  37895. 80103aa: 687b ldr r3, [r7, #4]
  37896. 80103ac: 4a16 ldr r2, [pc, #88] @ (8010408 <TIM_OC5_SetConfig+0xbc>)
  37897. 80103ae: 4293 cmp r3, r2
  37898. 80103b0: d007 beq.n 80103c2 <TIM_OC5_SetConfig+0x76>
  37899. 80103b2: 687b ldr r3, [r7, #4]
  37900. 80103b4: 4a15 ldr r2, [pc, #84] @ (801040c <TIM_OC5_SetConfig+0xc0>)
  37901. 80103b6: 4293 cmp r3, r2
  37902. 80103b8: d003 beq.n 80103c2 <TIM_OC5_SetConfig+0x76>
  37903. 80103ba: 687b ldr r3, [r7, #4]
  37904. 80103bc: 4a14 ldr r2, [pc, #80] @ (8010410 <TIM_OC5_SetConfig+0xc4>)
  37905. 80103be: 4293 cmp r3, r2
  37906. 80103c0: d109 bne.n 80103d6 <TIM_OC5_SetConfig+0x8a>
  37907. {
  37908. /* Reset the Output Compare IDLE State */
  37909. tmpcr2 &= ~TIM_CR2_OIS5;
  37910. 80103c2: 697b ldr r3, [r7, #20]
  37911. 80103c4: f423 3380 bic.w r3, r3, #65536 @ 0x10000
  37912. 80103c8: 617b str r3, [r7, #20]
  37913. /* Set the Output Idle state */
  37914. tmpcr2 |= (OC_Config->OCIdleState << 8U);
  37915. 80103ca: 683b ldr r3, [r7, #0]
  37916. 80103cc: 695b ldr r3, [r3, #20]
  37917. 80103ce: 021b lsls r3, r3, #8
  37918. 80103d0: 697a ldr r2, [r7, #20]
  37919. 80103d2: 4313 orrs r3, r2
  37920. 80103d4: 617b str r3, [r7, #20]
  37921. }
  37922. /* Write to TIMx CR2 */
  37923. TIMx->CR2 = tmpcr2;
  37924. 80103d6: 687b ldr r3, [r7, #4]
  37925. 80103d8: 697a ldr r2, [r7, #20]
  37926. 80103da: 605a str r2, [r3, #4]
  37927. /* Write to TIMx CCMR3 */
  37928. TIMx->CCMR3 = tmpccmrx;
  37929. 80103dc: 687b ldr r3, [r7, #4]
  37930. 80103de: 68fa ldr r2, [r7, #12]
  37931. 80103e0: 655a str r2, [r3, #84] @ 0x54
  37932. /* Set the Capture Compare Register value */
  37933. TIMx->CCR5 = OC_Config->Pulse;
  37934. 80103e2: 683b ldr r3, [r7, #0]
  37935. 80103e4: 685a ldr r2, [r3, #4]
  37936. 80103e6: 687b ldr r3, [r7, #4]
  37937. 80103e8: 659a str r2, [r3, #88] @ 0x58
  37938. /* Write to TIMx CCER */
  37939. TIMx->CCER = tmpccer;
  37940. 80103ea: 687b ldr r3, [r7, #4]
  37941. 80103ec: 693a ldr r2, [r7, #16]
  37942. 80103ee: 621a str r2, [r3, #32]
  37943. }
  37944. 80103f0: bf00 nop
  37945. 80103f2: 371c adds r7, #28
  37946. 80103f4: 46bd mov sp, r7
  37947. 80103f6: f85d 7b04 ldr.w r7, [sp], #4
  37948. 80103fa: 4770 bx lr
  37949. 80103fc: fffeff8f .word 0xfffeff8f
  37950. 8010400: 40010000 .word 0x40010000
  37951. 8010404: 40010400 .word 0x40010400
  37952. 8010408: 40014000 .word 0x40014000
  37953. 801040c: 40014400 .word 0x40014400
  37954. 8010410: 40014800 .word 0x40014800
  37955. 08010414 <TIM_OC6_SetConfig>:
  37956. * @param OC_Config The output configuration structure
  37957. * @retval None
  37958. */
  37959. static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx,
  37960. const TIM_OC_InitTypeDef *OC_Config)
  37961. {
  37962. 8010414: b480 push {r7}
  37963. 8010416: b087 sub sp, #28
  37964. 8010418: af00 add r7, sp, #0
  37965. 801041a: 6078 str r0, [r7, #4]
  37966. 801041c: 6039 str r1, [r7, #0]
  37967. uint32_t tmpccmrx;
  37968. uint32_t tmpccer;
  37969. uint32_t tmpcr2;
  37970. /* Get the TIMx CCER register value */
  37971. tmpccer = TIMx->CCER;
  37972. 801041e: 687b ldr r3, [r7, #4]
  37973. 8010420: 6a1b ldr r3, [r3, #32]
  37974. 8010422: 613b str r3, [r7, #16]
  37975. /* Disable the output: Reset the CCxE Bit */
  37976. TIMx->CCER &= ~TIM_CCER_CC6E;
  37977. 8010424: 687b ldr r3, [r7, #4]
  37978. 8010426: 6a1b ldr r3, [r3, #32]
  37979. 8010428: f423 1280 bic.w r2, r3, #1048576 @ 0x100000
  37980. 801042c: 687b ldr r3, [r7, #4]
  37981. 801042e: 621a str r2, [r3, #32]
  37982. /* Get the TIMx CR2 register value */
  37983. tmpcr2 = TIMx->CR2;
  37984. 8010430: 687b ldr r3, [r7, #4]
  37985. 8010432: 685b ldr r3, [r3, #4]
  37986. 8010434: 617b str r3, [r7, #20]
  37987. /* Get the TIMx CCMR1 register value */
  37988. tmpccmrx = TIMx->CCMR3;
  37989. 8010436: 687b ldr r3, [r7, #4]
  37990. 8010438: 6d5b ldr r3, [r3, #84] @ 0x54
  37991. 801043a: 60fb str r3, [r7, #12]
  37992. /* Reset the Output Compare Mode Bits */
  37993. tmpccmrx &= ~(TIM_CCMR3_OC6M);
  37994. 801043c: 68fa ldr r2, [r7, #12]
  37995. 801043e: 4b22 ldr r3, [pc, #136] @ (80104c8 <TIM_OC6_SetConfig+0xb4>)
  37996. 8010440: 4013 ands r3, r2
  37997. 8010442: 60fb str r3, [r7, #12]
  37998. /* Select the Output Compare Mode */
  37999. tmpccmrx |= (OC_Config->OCMode << 8U);
  38000. 8010444: 683b ldr r3, [r7, #0]
  38001. 8010446: 681b ldr r3, [r3, #0]
  38002. 8010448: 021b lsls r3, r3, #8
  38003. 801044a: 68fa ldr r2, [r7, #12]
  38004. 801044c: 4313 orrs r3, r2
  38005. 801044e: 60fb str r3, [r7, #12]
  38006. /* Reset the Output Polarity level */
  38007. tmpccer &= (uint32_t)~TIM_CCER_CC6P;
  38008. 8010450: 693b ldr r3, [r7, #16]
  38009. 8010452: f423 1300 bic.w r3, r3, #2097152 @ 0x200000
  38010. 8010456: 613b str r3, [r7, #16]
  38011. /* Set the Output Compare Polarity */
  38012. tmpccer |= (OC_Config->OCPolarity << 20U);
  38013. 8010458: 683b ldr r3, [r7, #0]
  38014. 801045a: 689b ldr r3, [r3, #8]
  38015. 801045c: 051b lsls r3, r3, #20
  38016. 801045e: 693a ldr r2, [r7, #16]
  38017. 8010460: 4313 orrs r3, r2
  38018. 8010462: 613b str r3, [r7, #16]
  38019. if (IS_TIM_BREAK_INSTANCE(TIMx))
  38020. 8010464: 687b ldr r3, [r7, #4]
  38021. 8010466: 4a19 ldr r2, [pc, #100] @ (80104cc <TIM_OC6_SetConfig+0xb8>)
  38022. 8010468: 4293 cmp r3, r2
  38023. 801046a: d00f beq.n 801048c <TIM_OC6_SetConfig+0x78>
  38024. 801046c: 687b ldr r3, [r7, #4]
  38025. 801046e: 4a18 ldr r2, [pc, #96] @ (80104d0 <TIM_OC6_SetConfig+0xbc>)
  38026. 8010470: 4293 cmp r3, r2
  38027. 8010472: d00b beq.n 801048c <TIM_OC6_SetConfig+0x78>
  38028. 8010474: 687b ldr r3, [r7, #4]
  38029. 8010476: 4a17 ldr r2, [pc, #92] @ (80104d4 <TIM_OC6_SetConfig+0xc0>)
  38030. 8010478: 4293 cmp r3, r2
  38031. 801047a: d007 beq.n 801048c <TIM_OC6_SetConfig+0x78>
  38032. 801047c: 687b ldr r3, [r7, #4]
  38033. 801047e: 4a16 ldr r2, [pc, #88] @ (80104d8 <TIM_OC6_SetConfig+0xc4>)
  38034. 8010480: 4293 cmp r3, r2
  38035. 8010482: d003 beq.n 801048c <TIM_OC6_SetConfig+0x78>
  38036. 8010484: 687b ldr r3, [r7, #4]
  38037. 8010486: 4a15 ldr r2, [pc, #84] @ (80104dc <TIM_OC6_SetConfig+0xc8>)
  38038. 8010488: 4293 cmp r3, r2
  38039. 801048a: d109 bne.n 80104a0 <TIM_OC6_SetConfig+0x8c>
  38040. {
  38041. /* Reset the Output Compare IDLE State */
  38042. tmpcr2 &= ~TIM_CR2_OIS6;
  38043. 801048c: 697b ldr r3, [r7, #20]
  38044. 801048e: f423 2380 bic.w r3, r3, #262144 @ 0x40000
  38045. 8010492: 617b str r3, [r7, #20]
  38046. /* Set the Output Idle state */
  38047. tmpcr2 |= (OC_Config->OCIdleState << 10U);
  38048. 8010494: 683b ldr r3, [r7, #0]
  38049. 8010496: 695b ldr r3, [r3, #20]
  38050. 8010498: 029b lsls r3, r3, #10
  38051. 801049a: 697a ldr r2, [r7, #20]
  38052. 801049c: 4313 orrs r3, r2
  38053. 801049e: 617b str r3, [r7, #20]
  38054. }
  38055. /* Write to TIMx CR2 */
  38056. TIMx->CR2 = tmpcr2;
  38057. 80104a0: 687b ldr r3, [r7, #4]
  38058. 80104a2: 697a ldr r2, [r7, #20]
  38059. 80104a4: 605a str r2, [r3, #4]
  38060. /* Write to TIMx CCMR3 */
  38061. TIMx->CCMR3 = tmpccmrx;
  38062. 80104a6: 687b ldr r3, [r7, #4]
  38063. 80104a8: 68fa ldr r2, [r7, #12]
  38064. 80104aa: 655a str r2, [r3, #84] @ 0x54
  38065. /* Set the Capture Compare Register value */
  38066. TIMx->CCR6 = OC_Config->Pulse;
  38067. 80104ac: 683b ldr r3, [r7, #0]
  38068. 80104ae: 685a ldr r2, [r3, #4]
  38069. 80104b0: 687b ldr r3, [r7, #4]
  38070. 80104b2: 65da str r2, [r3, #92] @ 0x5c
  38071. /* Write to TIMx CCER */
  38072. TIMx->CCER = tmpccer;
  38073. 80104b4: 687b ldr r3, [r7, #4]
  38074. 80104b6: 693a ldr r2, [r7, #16]
  38075. 80104b8: 621a str r2, [r3, #32]
  38076. }
  38077. 80104ba: bf00 nop
  38078. 80104bc: 371c adds r7, #28
  38079. 80104be: 46bd mov sp, r7
  38080. 80104c0: f85d 7b04 ldr.w r7, [sp], #4
  38081. 80104c4: 4770 bx lr
  38082. 80104c6: bf00 nop
  38083. 80104c8: feff8fff .word 0xfeff8fff
  38084. 80104cc: 40010000 .word 0x40010000
  38085. 80104d0: 40010400 .word 0x40010400
  38086. 80104d4: 40014000 .word 0x40014000
  38087. 80104d8: 40014400 .word 0x40014400
  38088. 80104dc: 40014800 .word 0x40014800
  38089. 080104e0 <TIM_TI1_ConfigInputStage>:
  38090. * @param TIM_ICFilter Specifies the Input Capture Filter.
  38091. * This parameter must be a value between 0x00 and 0x0F.
  38092. * @retval None
  38093. */
  38094. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  38095. {
  38096. 80104e0: b480 push {r7}
  38097. 80104e2: b087 sub sp, #28
  38098. 80104e4: af00 add r7, sp, #0
  38099. 80104e6: 60f8 str r0, [r7, #12]
  38100. 80104e8: 60b9 str r1, [r7, #8]
  38101. 80104ea: 607a str r2, [r7, #4]
  38102. uint32_t tmpccmr1;
  38103. uint32_t tmpccer;
  38104. /* Disable the Channel 1: Reset the CC1E Bit */
  38105. tmpccer = TIMx->CCER;
  38106. 80104ec: 68fb ldr r3, [r7, #12]
  38107. 80104ee: 6a1b ldr r3, [r3, #32]
  38108. 80104f0: 617b str r3, [r7, #20]
  38109. TIMx->CCER &= ~TIM_CCER_CC1E;
  38110. 80104f2: 68fb ldr r3, [r7, #12]
  38111. 80104f4: 6a1b ldr r3, [r3, #32]
  38112. 80104f6: f023 0201 bic.w r2, r3, #1
  38113. 80104fa: 68fb ldr r3, [r7, #12]
  38114. 80104fc: 621a str r2, [r3, #32]
  38115. tmpccmr1 = TIMx->CCMR1;
  38116. 80104fe: 68fb ldr r3, [r7, #12]
  38117. 8010500: 699b ldr r3, [r3, #24]
  38118. 8010502: 613b str r3, [r7, #16]
  38119. /* Set the filter */
  38120. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  38121. 8010504: 693b ldr r3, [r7, #16]
  38122. 8010506: f023 03f0 bic.w r3, r3, #240 @ 0xf0
  38123. 801050a: 613b str r3, [r7, #16]
  38124. tmpccmr1 |= (TIM_ICFilter << 4U);
  38125. 801050c: 687b ldr r3, [r7, #4]
  38126. 801050e: 011b lsls r3, r3, #4
  38127. 8010510: 693a ldr r2, [r7, #16]
  38128. 8010512: 4313 orrs r3, r2
  38129. 8010514: 613b str r3, [r7, #16]
  38130. /* Select the Polarity and set the CC1E Bit */
  38131. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  38132. 8010516: 697b ldr r3, [r7, #20]
  38133. 8010518: f023 030a bic.w r3, r3, #10
  38134. 801051c: 617b str r3, [r7, #20]
  38135. tmpccer |= TIM_ICPolarity;
  38136. 801051e: 697a ldr r2, [r7, #20]
  38137. 8010520: 68bb ldr r3, [r7, #8]
  38138. 8010522: 4313 orrs r3, r2
  38139. 8010524: 617b str r3, [r7, #20]
  38140. /* Write to TIMx CCMR1 and CCER registers */
  38141. TIMx->CCMR1 = tmpccmr1;
  38142. 8010526: 68fb ldr r3, [r7, #12]
  38143. 8010528: 693a ldr r2, [r7, #16]
  38144. 801052a: 619a str r2, [r3, #24]
  38145. TIMx->CCER = tmpccer;
  38146. 801052c: 68fb ldr r3, [r7, #12]
  38147. 801052e: 697a ldr r2, [r7, #20]
  38148. 8010530: 621a str r2, [r3, #32]
  38149. }
  38150. 8010532: bf00 nop
  38151. 8010534: 371c adds r7, #28
  38152. 8010536: 46bd mov sp, r7
  38153. 8010538: f85d 7b04 ldr.w r7, [sp], #4
  38154. 801053c: 4770 bx lr
  38155. 0801053e <TIM_TI2_ConfigInputStage>:
  38156. * @param TIM_ICFilter Specifies the Input Capture Filter.
  38157. * This parameter must be a value between 0x00 and 0x0F.
  38158. * @retval None
  38159. */
  38160. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  38161. {
  38162. 801053e: b480 push {r7}
  38163. 8010540: b087 sub sp, #28
  38164. 8010542: af00 add r7, sp, #0
  38165. 8010544: 60f8 str r0, [r7, #12]
  38166. 8010546: 60b9 str r1, [r7, #8]
  38167. 8010548: 607a str r2, [r7, #4]
  38168. uint32_t tmpccmr1;
  38169. uint32_t tmpccer;
  38170. /* Disable the Channel 2: Reset the CC2E Bit */
  38171. tmpccer = TIMx->CCER;
  38172. 801054a: 68fb ldr r3, [r7, #12]
  38173. 801054c: 6a1b ldr r3, [r3, #32]
  38174. 801054e: 617b str r3, [r7, #20]
  38175. TIMx->CCER &= ~TIM_CCER_CC2E;
  38176. 8010550: 68fb ldr r3, [r7, #12]
  38177. 8010552: 6a1b ldr r3, [r3, #32]
  38178. 8010554: f023 0210 bic.w r2, r3, #16
  38179. 8010558: 68fb ldr r3, [r7, #12]
  38180. 801055a: 621a str r2, [r3, #32]
  38181. tmpccmr1 = TIMx->CCMR1;
  38182. 801055c: 68fb ldr r3, [r7, #12]
  38183. 801055e: 699b ldr r3, [r3, #24]
  38184. 8010560: 613b str r3, [r7, #16]
  38185. /* Set the filter */
  38186. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  38187. 8010562: 693b ldr r3, [r7, #16]
  38188. 8010564: f423 4370 bic.w r3, r3, #61440 @ 0xf000
  38189. 8010568: 613b str r3, [r7, #16]
  38190. tmpccmr1 |= (TIM_ICFilter << 12U);
  38191. 801056a: 687b ldr r3, [r7, #4]
  38192. 801056c: 031b lsls r3, r3, #12
  38193. 801056e: 693a ldr r2, [r7, #16]
  38194. 8010570: 4313 orrs r3, r2
  38195. 8010572: 613b str r3, [r7, #16]
  38196. /* Select the Polarity and set the CC2E Bit */
  38197. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  38198. 8010574: 697b ldr r3, [r7, #20]
  38199. 8010576: f023 03a0 bic.w r3, r3, #160 @ 0xa0
  38200. 801057a: 617b str r3, [r7, #20]
  38201. tmpccer |= (TIM_ICPolarity << 4U);
  38202. 801057c: 68bb ldr r3, [r7, #8]
  38203. 801057e: 011b lsls r3, r3, #4
  38204. 8010580: 697a ldr r2, [r7, #20]
  38205. 8010582: 4313 orrs r3, r2
  38206. 8010584: 617b str r3, [r7, #20]
  38207. /* Write to TIMx CCMR1 and CCER registers */
  38208. TIMx->CCMR1 = tmpccmr1 ;
  38209. 8010586: 68fb ldr r3, [r7, #12]
  38210. 8010588: 693a ldr r2, [r7, #16]
  38211. 801058a: 619a str r2, [r3, #24]
  38212. TIMx->CCER = tmpccer;
  38213. 801058c: 68fb ldr r3, [r7, #12]
  38214. 801058e: 697a ldr r2, [r7, #20]
  38215. 8010590: 621a str r2, [r3, #32]
  38216. }
  38217. 8010592: bf00 nop
  38218. 8010594: 371c adds r7, #28
  38219. 8010596: 46bd mov sp, r7
  38220. 8010598: f85d 7b04 ldr.w r7, [sp], #4
  38221. 801059c: 4770 bx lr
  38222. ...
  38223. 080105a0 <TIM_ITRx_SetConfig>:
  38224. * (*) Value not defined in all devices.
  38225. *
  38226. * @retval None
  38227. */
  38228. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  38229. {
  38230. 80105a0: b480 push {r7}
  38231. 80105a2: b085 sub sp, #20
  38232. 80105a4: af00 add r7, sp, #0
  38233. 80105a6: 6078 str r0, [r7, #4]
  38234. 80105a8: 6039 str r1, [r7, #0]
  38235. uint32_t tmpsmcr;
  38236. /* Get the TIMx SMCR register value */
  38237. tmpsmcr = TIMx->SMCR;
  38238. 80105aa: 687b ldr r3, [r7, #4]
  38239. 80105ac: 689b ldr r3, [r3, #8]
  38240. 80105ae: 60fb str r3, [r7, #12]
  38241. /* Reset the TS Bits */
  38242. tmpsmcr &= ~TIM_SMCR_TS;
  38243. 80105b0: 68fa ldr r2, [r7, #12]
  38244. 80105b2: 4b09 ldr r3, [pc, #36] @ (80105d8 <TIM_ITRx_SetConfig+0x38>)
  38245. 80105b4: 4013 ands r3, r2
  38246. 80105b6: 60fb str r3, [r7, #12]
  38247. /* Set the Input Trigger source and the slave mode*/
  38248. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  38249. 80105b8: 683a ldr r2, [r7, #0]
  38250. 80105ba: 68fb ldr r3, [r7, #12]
  38251. 80105bc: 4313 orrs r3, r2
  38252. 80105be: f043 0307 orr.w r3, r3, #7
  38253. 80105c2: 60fb str r3, [r7, #12]
  38254. /* Write to TIMx SMCR */
  38255. TIMx->SMCR = tmpsmcr;
  38256. 80105c4: 687b ldr r3, [r7, #4]
  38257. 80105c6: 68fa ldr r2, [r7, #12]
  38258. 80105c8: 609a str r2, [r3, #8]
  38259. }
  38260. 80105ca: bf00 nop
  38261. 80105cc: 3714 adds r7, #20
  38262. 80105ce: 46bd mov sp, r7
  38263. 80105d0: f85d 7b04 ldr.w r7, [sp], #4
  38264. 80105d4: 4770 bx lr
  38265. 80105d6: bf00 nop
  38266. 80105d8: ffcfff8f .word 0xffcfff8f
  38267. 080105dc <TIM_ETR_SetConfig>:
  38268. * This parameter must be a value between 0x00 and 0x0F
  38269. * @retval None
  38270. */
  38271. void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  38272. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  38273. {
  38274. 80105dc: b480 push {r7}
  38275. 80105de: b087 sub sp, #28
  38276. 80105e0: af00 add r7, sp, #0
  38277. 80105e2: 60f8 str r0, [r7, #12]
  38278. 80105e4: 60b9 str r1, [r7, #8]
  38279. 80105e6: 607a str r2, [r7, #4]
  38280. 80105e8: 603b str r3, [r7, #0]
  38281. uint32_t tmpsmcr;
  38282. tmpsmcr = TIMx->SMCR;
  38283. 80105ea: 68fb ldr r3, [r7, #12]
  38284. 80105ec: 689b ldr r3, [r3, #8]
  38285. 80105ee: 617b str r3, [r7, #20]
  38286. /* Reset the ETR Bits */
  38287. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  38288. 80105f0: 697b ldr r3, [r7, #20]
  38289. 80105f2: f423 437f bic.w r3, r3, #65280 @ 0xff00
  38290. 80105f6: 617b str r3, [r7, #20]
  38291. /* Set the Prescaler, the Filter value and the Polarity */
  38292. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  38293. 80105f8: 683b ldr r3, [r7, #0]
  38294. 80105fa: 021a lsls r2, r3, #8
  38295. 80105fc: 687b ldr r3, [r7, #4]
  38296. 80105fe: 431a orrs r2, r3
  38297. 8010600: 68bb ldr r3, [r7, #8]
  38298. 8010602: 4313 orrs r3, r2
  38299. 8010604: 697a ldr r2, [r7, #20]
  38300. 8010606: 4313 orrs r3, r2
  38301. 8010608: 617b str r3, [r7, #20]
  38302. /* Write to TIMx SMCR */
  38303. TIMx->SMCR = tmpsmcr;
  38304. 801060a: 68fb ldr r3, [r7, #12]
  38305. 801060c: 697a ldr r2, [r7, #20]
  38306. 801060e: 609a str r2, [r3, #8]
  38307. }
  38308. 8010610: bf00 nop
  38309. 8010612: 371c adds r7, #28
  38310. 8010614: 46bd mov sp, r7
  38311. 8010616: f85d 7b04 ldr.w r7, [sp], #4
  38312. 801061a: 4770 bx lr
  38313. 0801061c <TIM_CCxChannelCmd>:
  38314. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  38315. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  38316. * @retval None
  38317. */
  38318. void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  38319. {
  38320. 801061c: b480 push {r7}
  38321. 801061e: b087 sub sp, #28
  38322. 8010620: af00 add r7, sp, #0
  38323. 8010622: 60f8 str r0, [r7, #12]
  38324. 8010624: 60b9 str r1, [r7, #8]
  38325. 8010626: 607a str r2, [r7, #4]
  38326. /* Check the parameters */
  38327. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  38328. assert_param(IS_TIM_CHANNELS(Channel));
  38329. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  38330. 8010628: 68bb ldr r3, [r7, #8]
  38331. 801062a: f003 031f and.w r3, r3, #31
  38332. 801062e: 2201 movs r2, #1
  38333. 8010630: fa02 f303 lsl.w r3, r2, r3
  38334. 8010634: 617b str r3, [r7, #20]
  38335. /* Reset the CCxE Bit */
  38336. TIMx->CCER &= ~tmp;
  38337. 8010636: 68fb ldr r3, [r7, #12]
  38338. 8010638: 6a1a ldr r2, [r3, #32]
  38339. 801063a: 697b ldr r3, [r7, #20]
  38340. 801063c: 43db mvns r3, r3
  38341. 801063e: 401a ands r2, r3
  38342. 8010640: 68fb ldr r3, [r7, #12]
  38343. 8010642: 621a str r2, [r3, #32]
  38344. /* Set or reset the CCxE Bit */
  38345. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  38346. 8010644: 68fb ldr r3, [r7, #12]
  38347. 8010646: 6a1a ldr r2, [r3, #32]
  38348. 8010648: 68bb ldr r3, [r7, #8]
  38349. 801064a: f003 031f and.w r3, r3, #31
  38350. 801064e: 6879 ldr r1, [r7, #4]
  38351. 8010650: fa01 f303 lsl.w r3, r1, r3
  38352. 8010654: 431a orrs r2, r3
  38353. 8010656: 68fb ldr r3, [r7, #12]
  38354. 8010658: 621a str r2, [r3, #32]
  38355. }
  38356. 801065a: bf00 nop
  38357. 801065c: 371c adds r7, #28
  38358. 801065e: 46bd mov sp, r7
  38359. 8010660: f85d 7b04 ldr.w r7, [sp], #4
  38360. 8010664: 4770 bx lr
  38361. ...
  38362. 08010668 <HAL_TIMEx_MasterConfigSynchronization>:
  38363. * mode.
  38364. * @retval HAL status
  38365. */
  38366. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  38367. const TIM_MasterConfigTypeDef *sMasterConfig)
  38368. {
  38369. 8010668: b480 push {r7}
  38370. 801066a: b085 sub sp, #20
  38371. 801066c: af00 add r7, sp, #0
  38372. 801066e: 6078 str r0, [r7, #4]
  38373. 8010670: 6039 str r1, [r7, #0]
  38374. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  38375. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  38376. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  38377. /* Check input state */
  38378. __HAL_LOCK(htim);
  38379. 8010672: 687b ldr r3, [r7, #4]
  38380. 8010674: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  38381. 8010678: 2b01 cmp r3, #1
  38382. 801067a: d101 bne.n 8010680 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  38383. 801067c: 2302 movs r3, #2
  38384. 801067e: e06d b.n 801075c <HAL_TIMEx_MasterConfigSynchronization+0xf4>
  38385. 8010680: 687b ldr r3, [r7, #4]
  38386. 8010682: 2201 movs r2, #1
  38387. 8010684: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38388. /* Change the handler state */
  38389. htim->State = HAL_TIM_STATE_BUSY;
  38390. 8010688: 687b ldr r3, [r7, #4]
  38391. 801068a: 2202 movs r2, #2
  38392. 801068c: f883 203d strb.w r2, [r3, #61] @ 0x3d
  38393. /* Get the TIMx CR2 register value */
  38394. tmpcr2 = htim->Instance->CR2;
  38395. 8010690: 687b ldr r3, [r7, #4]
  38396. 8010692: 681b ldr r3, [r3, #0]
  38397. 8010694: 685b ldr r3, [r3, #4]
  38398. 8010696: 60fb str r3, [r7, #12]
  38399. /* Get the TIMx SMCR register value */
  38400. tmpsmcr = htim->Instance->SMCR;
  38401. 8010698: 687b ldr r3, [r7, #4]
  38402. 801069a: 681b ldr r3, [r3, #0]
  38403. 801069c: 689b ldr r3, [r3, #8]
  38404. 801069e: 60bb str r3, [r7, #8]
  38405. /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */
  38406. if (IS_TIM_TRGO2_INSTANCE(htim->Instance))
  38407. 80106a0: 687b ldr r3, [r7, #4]
  38408. 80106a2: 681b ldr r3, [r3, #0]
  38409. 80106a4: 4a30 ldr r2, [pc, #192] @ (8010768 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38410. 80106a6: 4293 cmp r3, r2
  38411. 80106a8: d004 beq.n 80106b4 <HAL_TIMEx_MasterConfigSynchronization+0x4c>
  38412. 80106aa: 687b ldr r3, [r7, #4]
  38413. 80106ac: 681b ldr r3, [r3, #0]
  38414. 80106ae: 4a2f ldr r2, [pc, #188] @ (801076c <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38415. 80106b0: 4293 cmp r3, r2
  38416. 80106b2: d108 bne.n 80106c6 <HAL_TIMEx_MasterConfigSynchronization+0x5e>
  38417. {
  38418. /* Check the parameters */
  38419. assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2));
  38420. /* Clear the MMS2 bits */
  38421. tmpcr2 &= ~TIM_CR2_MMS2;
  38422. 80106b4: 68fb ldr r3, [r7, #12]
  38423. 80106b6: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
  38424. 80106ba: 60fb str r3, [r7, #12]
  38425. /* Select the TRGO2 source*/
  38426. tmpcr2 |= sMasterConfig->MasterOutputTrigger2;
  38427. 80106bc: 683b ldr r3, [r7, #0]
  38428. 80106be: 685b ldr r3, [r3, #4]
  38429. 80106c0: 68fa ldr r2, [r7, #12]
  38430. 80106c2: 4313 orrs r3, r2
  38431. 80106c4: 60fb str r3, [r7, #12]
  38432. }
  38433. /* Reset the MMS Bits */
  38434. tmpcr2 &= ~TIM_CR2_MMS;
  38435. 80106c6: 68fb ldr r3, [r7, #12]
  38436. 80106c8: f023 0370 bic.w r3, r3, #112 @ 0x70
  38437. 80106cc: 60fb str r3, [r7, #12]
  38438. /* Select the TRGO source */
  38439. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  38440. 80106ce: 683b ldr r3, [r7, #0]
  38441. 80106d0: 681b ldr r3, [r3, #0]
  38442. 80106d2: 68fa ldr r2, [r7, #12]
  38443. 80106d4: 4313 orrs r3, r2
  38444. 80106d6: 60fb str r3, [r7, #12]
  38445. /* Update TIMx CR2 */
  38446. htim->Instance->CR2 = tmpcr2;
  38447. 80106d8: 687b ldr r3, [r7, #4]
  38448. 80106da: 681b ldr r3, [r3, #0]
  38449. 80106dc: 68fa ldr r2, [r7, #12]
  38450. 80106de: 605a str r2, [r3, #4]
  38451. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  38452. 80106e0: 687b ldr r3, [r7, #4]
  38453. 80106e2: 681b ldr r3, [r3, #0]
  38454. 80106e4: 4a20 ldr r2, [pc, #128] @ (8010768 <HAL_TIMEx_MasterConfigSynchronization+0x100>)
  38455. 80106e6: 4293 cmp r3, r2
  38456. 80106e8: d022 beq.n 8010730 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38457. 80106ea: 687b ldr r3, [r7, #4]
  38458. 80106ec: 681b ldr r3, [r3, #0]
  38459. 80106ee: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  38460. 80106f2: d01d beq.n 8010730 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38461. 80106f4: 687b ldr r3, [r7, #4]
  38462. 80106f6: 681b ldr r3, [r3, #0]
  38463. 80106f8: 4a1d ldr r2, [pc, #116] @ (8010770 <HAL_TIMEx_MasterConfigSynchronization+0x108>)
  38464. 80106fa: 4293 cmp r3, r2
  38465. 80106fc: d018 beq.n 8010730 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38466. 80106fe: 687b ldr r3, [r7, #4]
  38467. 8010700: 681b ldr r3, [r3, #0]
  38468. 8010702: 4a1c ldr r2, [pc, #112] @ (8010774 <HAL_TIMEx_MasterConfigSynchronization+0x10c>)
  38469. 8010704: 4293 cmp r3, r2
  38470. 8010706: d013 beq.n 8010730 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38471. 8010708: 687b ldr r3, [r7, #4]
  38472. 801070a: 681b ldr r3, [r3, #0]
  38473. 801070c: 4a1a ldr r2, [pc, #104] @ (8010778 <HAL_TIMEx_MasterConfigSynchronization+0x110>)
  38474. 801070e: 4293 cmp r3, r2
  38475. 8010710: d00e beq.n 8010730 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38476. 8010712: 687b ldr r3, [r7, #4]
  38477. 8010714: 681b ldr r3, [r3, #0]
  38478. 8010716: 4a15 ldr r2, [pc, #84] @ (801076c <HAL_TIMEx_MasterConfigSynchronization+0x104>)
  38479. 8010718: 4293 cmp r3, r2
  38480. 801071a: d009 beq.n 8010730 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38481. 801071c: 687b ldr r3, [r7, #4]
  38482. 801071e: 681b ldr r3, [r3, #0]
  38483. 8010720: 4a16 ldr r2, [pc, #88] @ (801077c <HAL_TIMEx_MasterConfigSynchronization+0x114>)
  38484. 8010722: 4293 cmp r3, r2
  38485. 8010724: d004 beq.n 8010730 <HAL_TIMEx_MasterConfigSynchronization+0xc8>
  38486. 8010726: 687b ldr r3, [r7, #4]
  38487. 8010728: 681b ldr r3, [r3, #0]
  38488. 801072a: 4a15 ldr r2, [pc, #84] @ (8010780 <HAL_TIMEx_MasterConfigSynchronization+0x118>)
  38489. 801072c: 4293 cmp r3, r2
  38490. 801072e: d10c bne.n 801074a <HAL_TIMEx_MasterConfigSynchronization+0xe2>
  38491. {
  38492. /* Reset the MSM Bit */
  38493. tmpsmcr &= ~TIM_SMCR_MSM;
  38494. 8010730: 68bb ldr r3, [r7, #8]
  38495. 8010732: f023 0380 bic.w r3, r3, #128 @ 0x80
  38496. 8010736: 60bb str r3, [r7, #8]
  38497. /* Set master mode */
  38498. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  38499. 8010738: 683b ldr r3, [r7, #0]
  38500. 801073a: 689b ldr r3, [r3, #8]
  38501. 801073c: 68ba ldr r2, [r7, #8]
  38502. 801073e: 4313 orrs r3, r2
  38503. 8010740: 60bb str r3, [r7, #8]
  38504. /* Update TIMx SMCR */
  38505. htim->Instance->SMCR = tmpsmcr;
  38506. 8010742: 687b ldr r3, [r7, #4]
  38507. 8010744: 681b ldr r3, [r3, #0]
  38508. 8010746: 68ba ldr r2, [r7, #8]
  38509. 8010748: 609a str r2, [r3, #8]
  38510. }
  38511. /* Change the htim state */
  38512. htim->State = HAL_TIM_STATE_READY;
  38513. 801074a: 687b ldr r3, [r7, #4]
  38514. 801074c: 2201 movs r2, #1
  38515. 801074e: f883 203d strb.w r2, [r3, #61] @ 0x3d
  38516. __HAL_UNLOCK(htim);
  38517. 8010752: 687b ldr r3, [r7, #4]
  38518. 8010754: 2200 movs r2, #0
  38519. 8010756: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38520. return HAL_OK;
  38521. 801075a: 2300 movs r3, #0
  38522. }
  38523. 801075c: 4618 mov r0, r3
  38524. 801075e: 3714 adds r7, #20
  38525. 8010760: 46bd mov sp, r7
  38526. 8010762: f85d 7b04 ldr.w r7, [sp], #4
  38527. 8010766: 4770 bx lr
  38528. 8010768: 40010000 .word 0x40010000
  38529. 801076c: 40010400 .word 0x40010400
  38530. 8010770: 40000400 .word 0x40000400
  38531. 8010774: 40000800 .word 0x40000800
  38532. 8010778: 40000c00 .word 0x40000c00
  38533. 801077c: 40001800 .word 0x40001800
  38534. 8010780: 40014000 .word 0x40014000
  38535. 08010784 <HAL_TIMEx_ConfigBreakDeadTime>:
  38536. * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro.
  38537. * @retval HAL status
  38538. */
  38539. HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim,
  38540. const TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig)
  38541. {
  38542. 8010784: b480 push {r7}
  38543. 8010786: b085 sub sp, #20
  38544. 8010788: af00 add r7, sp, #0
  38545. 801078a: 6078 str r0, [r7, #4]
  38546. 801078c: 6039 str r1, [r7, #0]
  38547. /* Keep this variable initialized to 0 as it is used to configure BDTR register */
  38548. uint32_t tmpbdtr = 0U;
  38549. 801078e: 2300 movs r3, #0
  38550. 8010790: 60fb str r3, [r7, #12]
  38551. #if defined(TIM_BDTR_BKBID)
  38552. assert_param(IS_TIM_BREAK_AFMODE(sBreakDeadTimeConfig->BreakAFMode));
  38553. #endif /* TIM_BDTR_BKBID */
  38554. /* Check input state */
  38555. __HAL_LOCK(htim);
  38556. 8010792: 687b ldr r3, [r7, #4]
  38557. 8010794: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
  38558. 8010798: 2b01 cmp r3, #1
  38559. 801079a: d101 bne.n 80107a0 <HAL_TIMEx_ConfigBreakDeadTime+0x1c>
  38560. 801079c: 2302 movs r3, #2
  38561. 801079e: e065 b.n 801086c <HAL_TIMEx_ConfigBreakDeadTime+0xe8>
  38562. 80107a0: 687b ldr r3, [r7, #4]
  38563. 80107a2: 2201 movs r2, #1
  38564. 80107a4: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38565. /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State,
  38566. the OSSI State, the dead time value and the Automatic Output Enable Bit */
  38567. /* Set the BDTR bits */
  38568. MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime);
  38569. 80107a8: 68fb ldr r3, [r7, #12]
  38570. 80107aa: f023 02ff bic.w r2, r3, #255 @ 0xff
  38571. 80107ae: 683b ldr r3, [r7, #0]
  38572. 80107b0: 68db ldr r3, [r3, #12]
  38573. 80107b2: 4313 orrs r3, r2
  38574. 80107b4: 60fb str r3, [r7, #12]
  38575. MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel);
  38576. 80107b6: 68fb ldr r3, [r7, #12]
  38577. 80107b8: f423 7240 bic.w r2, r3, #768 @ 0x300
  38578. 80107bc: 683b ldr r3, [r7, #0]
  38579. 80107be: 689b ldr r3, [r3, #8]
  38580. 80107c0: 4313 orrs r3, r2
  38581. 80107c2: 60fb str r3, [r7, #12]
  38582. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode);
  38583. 80107c4: 68fb ldr r3, [r7, #12]
  38584. 80107c6: f423 6280 bic.w r2, r3, #1024 @ 0x400
  38585. 80107ca: 683b ldr r3, [r7, #0]
  38586. 80107cc: 685b ldr r3, [r3, #4]
  38587. 80107ce: 4313 orrs r3, r2
  38588. 80107d0: 60fb str r3, [r7, #12]
  38589. MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode);
  38590. 80107d2: 68fb ldr r3, [r7, #12]
  38591. 80107d4: f423 6200 bic.w r2, r3, #2048 @ 0x800
  38592. 80107d8: 683b ldr r3, [r7, #0]
  38593. 80107da: 681b ldr r3, [r3, #0]
  38594. 80107dc: 4313 orrs r3, r2
  38595. 80107de: 60fb str r3, [r7, #12]
  38596. MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState);
  38597. 80107e0: 68fb ldr r3, [r7, #12]
  38598. 80107e2: f423 5280 bic.w r2, r3, #4096 @ 0x1000
  38599. 80107e6: 683b ldr r3, [r7, #0]
  38600. 80107e8: 691b ldr r3, [r3, #16]
  38601. 80107ea: 4313 orrs r3, r2
  38602. 80107ec: 60fb str r3, [r7, #12]
  38603. MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity);
  38604. 80107ee: 68fb ldr r3, [r7, #12]
  38605. 80107f0: f423 5200 bic.w r2, r3, #8192 @ 0x2000
  38606. 80107f4: 683b ldr r3, [r7, #0]
  38607. 80107f6: 695b ldr r3, [r3, #20]
  38608. 80107f8: 4313 orrs r3, r2
  38609. 80107fa: 60fb str r3, [r7, #12]
  38610. MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput);
  38611. 80107fc: 68fb ldr r3, [r7, #12]
  38612. 80107fe: f423 4280 bic.w r2, r3, #16384 @ 0x4000
  38613. 8010802: 683b ldr r3, [r7, #0]
  38614. 8010804: 6a9b ldr r3, [r3, #40] @ 0x28
  38615. 8010806: 4313 orrs r3, r2
  38616. 8010808: 60fb str r3, [r7, #12]
  38617. MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos));
  38618. 801080a: 68fb ldr r3, [r7, #12]
  38619. 801080c: f423 2270 bic.w r2, r3, #983040 @ 0xf0000
  38620. 8010810: 683b ldr r3, [r7, #0]
  38621. 8010812: 699b ldr r3, [r3, #24]
  38622. 8010814: 041b lsls r3, r3, #16
  38623. 8010816: 4313 orrs r3, r2
  38624. 8010818: 60fb str r3, [r7, #12]
  38625. #if defined(TIM_BDTR_BKBID)
  38626. MODIFY_REG(tmpbdtr, TIM_BDTR_BKBID, sBreakDeadTimeConfig->BreakAFMode);
  38627. #endif /* TIM_BDTR_BKBID */
  38628. if (IS_TIM_BKIN2_INSTANCE(htim->Instance))
  38629. 801081a: 687b ldr r3, [r7, #4]
  38630. 801081c: 681b ldr r3, [r3, #0]
  38631. 801081e: 4a16 ldr r2, [pc, #88] @ (8010878 <HAL_TIMEx_ConfigBreakDeadTime+0xf4>)
  38632. 8010820: 4293 cmp r3, r2
  38633. 8010822: d004 beq.n 801082e <HAL_TIMEx_ConfigBreakDeadTime+0xaa>
  38634. 8010824: 687b ldr r3, [r7, #4]
  38635. 8010826: 681b ldr r3, [r3, #0]
  38636. 8010828: 4a14 ldr r2, [pc, #80] @ (801087c <HAL_TIMEx_ConfigBreakDeadTime+0xf8>)
  38637. 801082a: 4293 cmp r3, r2
  38638. 801082c: d115 bne.n 801085a <HAL_TIMEx_ConfigBreakDeadTime+0xd6>
  38639. #if defined(TIM_BDTR_BKBID)
  38640. assert_param(IS_TIM_BREAK2_AFMODE(sBreakDeadTimeConfig->Break2AFMode));
  38641. #endif /* TIM_BDTR_BKBID */
  38642. /* Set the BREAK2 input related BDTR bits */
  38643. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos));
  38644. 801082e: 68fb ldr r3, [r7, #12]
  38645. 8010830: f423 0270 bic.w r2, r3, #15728640 @ 0xf00000
  38646. 8010834: 683b ldr r3, [r7, #0]
  38647. 8010836: 6a5b ldr r3, [r3, #36] @ 0x24
  38648. 8010838: 051b lsls r3, r3, #20
  38649. 801083a: 4313 orrs r3, r2
  38650. 801083c: 60fb str r3, [r7, #12]
  38651. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State);
  38652. 801083e: 68fb ldr r3, [r7, #12]
  38653. 8010840: f023 7280 bic.w r2, r3, #16777216 @ 0x1000000
  38654. 8010844: 683b ldr r3, [r7, #0]
  38655. 8010846: 69db ldr r3, [r3, #28]
  38656. 8010848: 4313 orrs r3, r2
  38657. 801084a: 60fb str r3, [r7, #12]
  38658. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity);
  38659. 801084c: 68fb ldr r3, [r7, #12]
  38660. 801084e: f023 7200 bic.w r2, r3, #33554432 @ 0x2000000
  38661. 8010852: 683b ldr r3, [r7, #0]
  38662. 8010854: 6a1b ldr r3, [r3, #32]
  38663. 8010856: 4313 orrs r3, r2
  38664. 8010858: 60fb str r3, [r7, #12]
  38665. MODIFY_REG(tmpbdtr, TIM_BDTR_BK2BID, sBreakDeadTimeConfig->Break2AFMode);
  38666. #endif /* TIM_BDTR_BKBID */
  38667. }
  38668. /* Set TIMx_BDTR */
  38669. htim->Instance->BDTR = tmpbdtr;
  38670. 801085a: 687b ldr r3, [r7, #4]
  38671. 801085c: 681b ldr r3, [r3, #0]
  38672. 801085e: 68fa ldr r2, [r7, #12]
  38673. 8010860: 645a str r2, [r3, #68] @ 0x44
  38674. __HAL_UNLOCK(htim);
  38675. 8010862: 687b ldr r3, [r7, #4]
  38676. 8010864: 2200 movs r2, #0
  38677. 8010866: f883 203c strb.w r2, [r3, #60] @ 0x3c
  38678. return HAL_OK;
  38679. 801086a: 2300 movs r3, #0
  38680. }
  38681. 801086c: 4618 mov r0, r3
  38682. 801086e: 3714 adds r7, #20
  38683. 8010870: 46bd mov sp, r7
  38684. 8010872: f85d 7b04 ldr.w r7, [sp], #4
  38685. 8010876: 4770 bx lr
  38686. 8010878: 40010000 .word 0x40010000
  38687. 801087c: 40010400 .word 0x40010400
  38688. 08010880 <HAL_TIMEx_CommutCallback>:
  38689. * @brief Commutation callback in non-blocking mode
  38690. * @param htim TIM handle
  38691. * @retval None
  38692. */
  38693. __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
  38694. {
  38695. 8010880: b480 push {r7}
  38696. 8010882: b083 sub sp, #12
  38697. 8010884: af00 add r7, sp, #0
  38698. 8010886: 6078 str r0, [r7, #4]
  38699. UNUSED(htim);
  38700. /* NOTE : This function should not be modified, when the callback is needed,
  38701. the HAL_TIMEx_CommutCallback could be implemented in the user file
  38702. */
  38703. }
  38704. 8010888: bf00 nop
  38705. 801088a: 370c adds r7, #12
  38706. 801088c: 46bd mov sp, r7
  38707. 801088e: f85d 7b04 ldr.w r7, [sp], #4
  38708. 8010892: 4770 bx lr
  38709. 08010894 <HAL_TIMEx_BreakCallback>:
  38710. * @brief Break detection callback in non-blocking mode
  38711. * @param htim TIM handle
  38712. * @retval None
  38713. */
  38714. __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
  38715. {
  38716. 8010894: b480 push {r7}
  38717. 8010896: b083 sub sp, #12
  38718. 8010898: af00 add r7, sp, #0
  38719. 801089a: 6078 str r0, [r7, #4]
  38720. UNUSED(htim);
  38721. /* NOTE : This function should not be modified, when the callback is needed,
  38722. the HAL_TIMEx_BreakCallback could be implemented in the user file
  38723. */
  38724. }
  38725. 801089c: bf00 nop
  38726. 801089e: 370c adds r7, #12
  38727. 80108a0: 46bd mov sp, r7
  38728. 80108a2: f85d 7b04 ldr.w r7, [sp], #4
  38729. 80108a6: 4770 bx lr
  38730. 080108a8 <HAL_TIMEx_Break2Callback>:
  38731. * @brief Break2 detection callback in non blocking mode
  38732. * @param htim: TIM handle
  38733. * @retval None
  38734. */
  38735. __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
  38736. {
  38737. 80108a8: b480 push {r7}
  38738. 80108aa: b083 sub sp, #12
  38739. 80108ac: af00 add r7, sp, #0
  38740. 80108ae: 6078 str r0, [r7, #4]
  38741. UNUSED(htim);
  38742. /* NOTE : This function Should not be modified, when the callback is needed,
  38743. the HAL_TIMEx_Break2Callback could be implemented in the user file
  38744. */
  38745. }
  38746. 80108b0: bf00 nop
  38747. 80108b2: 370c adds r7, #12
  38748. 80108b4: 46bd mov sp, r7
  38749. 80108b6: f85d 7b04 ldr.w r7, [sp], #4
  38750. 80108ba: 4770 bx lr
  38751. 080108bc <HAL_UART_Init>:
  38752. * parameters in the UART_InitTypeDef and initialize the associated handle.
  38753. * @param huart UART handle.
  38754. * @retval HAL status
  38755. */
  38756. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  38757. {
  38758. 80108bc: b580 push {r7, lr}
  38759. 80108be: b082 sub sp, #8
  38760. 80108c0: af00 add r7, sp, #0
  38761. 80108c2: 6078 str r0, [r7, #4]
  38762. /* Check the UART handle allocation */
  38763. if (huart == NULL)
  38764. 80108c4: 687b ldr r3, [r7, #4]
  38765. 80108c6: 2b00 cmp r3, #0
  38766. 80108c8: d101 bne.n 80108ce <HAL_UART_Init+0x12>
  38767. {
  38768. return HAL_ERROR;
  38769. 80108ca: 2301 movs r3, #1
  38770. 80108cc: e042 b.n 8010954 <HAL_UART_Init+0x98>
  38771. {
  38772. /* Check the parameters */
  38773. assert_param((IS_UART_INSTANCE(huart->Instance)) || (IS_LPUART_INSTANCE(huart->Instance)));
  38774. }
  38775. if (huart->gState == HAL_UART_STATE_RESET)
  38776. 80108ce: 687b ldr r3, [r7, #4]
  38777. 80108d0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  38778. 80108d4: 2b00 cmp r3, #0
  38779. 80108d6: d106 bne.n 80108e6 <HAL_UART_Init+0x2a>
  38780. {
  38781. /* Allocate lock resource and initialize it */
  38782. huart->Lock = HAL_UNLOCKED;
  38783. 80108d8: 687b ldr r3, [r7, #4]
  38784. 80108da: 2200 movs r2, #0
  38785. 80108dc: f883 2084 strb.w r2, [r3, #132] @ 0x84
  38786. /* Init the low level hardware */
  38787. huart->MspInitCallback(huart);
  38788. #else
  38789. /* Init the low level hardware : GPIO, CLOCK */
  38790. HAL_UART_MspInit(huart);
  38791. 80108e0: 6878 ldr r0, [r7, #4]
  38792. 80108e2: f7f3 fb1b bl 8003f1c <HAL_UART_MspInit>
  38793. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  38794. }
  38795. huart->gState = HAL_UART_STATE_BUSY;
  38796. 80108e6: 687b ldr r3, [r7, #4]
  38797. 80108e8: 2224 movs r2, #36 @ 0x24
  38798. 80108ea: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  38799. __HAL_UART_DISABLE(huart);
  38800. 80108ee: 687b ldr r3, [r7, #4]
  38801. 80108f0: 681b ldr r3, [r3, #0]
  38802. 80108f2: 681a ldr r2, [r3, #0]
  38803. 80108f4: 687b ldr r3, [r7, #4]
  38804. 80108f6: 681b ldr r3, [r3, #0]
  38805. 80108f8: f022 0201 bic.w r2, r2, #1
  38806. 80108fc: 601a str r2, [r3, #0]
  38807. /* Perform advanced settings configuration */
  38808. /* For some items, configuration requires to be done prior TE and RE bits are set */
  38809. if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
  38810. 80108fe: 687b ldr r3, [r7, #4]
  38811. 8010900: 6a9b ldr r3, [r3, #40] @ 0x28
  38812. 8010902: 2b00 cmp r3, #0
  38813. 8010904: d002 beq.n 801090c <HAL_UART_Init+0x50>
  38814. {
  38815. UART_AdvFeatureConfig(huart);
  38816. 8010906: 6878 ldr r0, [r7, #4]
  38817. 8010908: f001 f9e8 bl 8011cdc <UART_AdvFeatureConfig>
  38818. }
  38819. /* Set the UART Communication parameters */
  38820. if (UART_SetConfig(huart) == HAL_ERROR)
  38821. 801090c: 6878 ldr r0, [r7, #4]
  38822. 801090e: f000 fc7d bl 801120c <UART_SetConfig>
  38823. 8010912: 4603 mov r3, r0
  38824. 8010914: 2b01 cmp r3, #1
  38825. 8010916: d101 bne.n 801091c <HAL_UART_Init+0x60>
  38826. {
  38827. return HAL_ERROR;
  38828. 8010918: 2301 movs r3, #1
  38829. 801091a: e01b b.n 8010954 <HAL_UART_Init+0x98>
  38830. }
  38831. /* In asynchronous mode, the following bits must be kept cleared:
  38832. - LINEN and CLKEN bits in the USART_CR2 register,
  38833. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  38834. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  38835. 801091c: 687b ldr r3, [r7, #4]
  38836. 801091e: 681b ldr r3, [r3, #0]
  38837. 8010920: 685a ldr r2, [r3, #4]
  38838. 8010922: 687b ldr r3, [r7, #4]
  38839. 8010924: 681b ldr r3, [r3, #0]
  38840. 8010926: f422 4290 bic.w r2, r2, #18432 @ 0x4800
  38841. 801092a: 605a str r2, [r3, #4]
  38842. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  38843. 801092c: 687b ldr r3, [r7, #4]
  38844. 801092e: 681b ldr r3, [r3, #0]
  38845. 8010930: 689a ldr r2, [r3, #8]
  38846. 8010932: 687b ldr r3, [r7, #4]
  38847. 8010934: 681b ldr r3, [r3, #0]
  38848. 8010936: f022 022a bic.w r2, r2, #42 @ 0x2a
  38849. 801093a: 609a str r2, [r3, #8]
  38850. __HAL_UART_ENABLE(huart);
  38851. 801093c: 687b ldr r3, [r7, #4]
  38852. 801093e: 681b ldr r3, [r3, #0]
  38853. 8010940: 681a ldr r2, [r3, #0]
  38854. 8010942: 687b ldr r3, [r7, #4]
  38855. 8010944: 681b ldr r3, [r3, #0]
  38856. 8010946: f042 0201 orr.w r2, r2, #1
  38857. 801094a: 601a str r2, [r3, #0]
  38858. /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
  38859. return (UART_CheckIdleState(huart));
  38860. 801094c: 6878 ldr r0, [r7, #4]
  38861. 801094e: f001 fa67 bl 8011e20 <UART_CheckIdleState>
  38862. 8010952: 4603 mov r3, r0
  38863. }
  38864. 8010954: 4618 mov r0, r3
  38865. 8010956: 3708 adds r7, #8
  38866. 8010958: 46bd mov sp, r7
  38867. 801095a: bd80 pop {r7, pc}
  38868. 0801095c <HAL_UART_Transmit_IT>:
  38869. * @param pData Pointer to data buffer (u8 or u16 data elements).
  38870. * @param Size Amount of data elements (u8 or u16) to be sent.
  38871. * @retval HAL status
  38872. */
  38873. HAL_StatusTypeDef HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size)
  38874. {
  38875. 801095c: b480 push {r7}
  38876. 801095e: b091 sub sp, #68 @ 0x44
  38877. 8010960: af00 add r7, sp, #0
  38878. 8010962: 60f8 str r0, [r7, #12]
  38879. 8010964: 60b9 str r1, [r7, #8]
  38880. 8010966: 4613 mov r3, r2
  38881. 8010968: 80fb strh r3, [r7, #6]
  38882. /* Check that a Tx process is not already ongoing */
  38883. if (huart->gState == HAL_UART_STATE_READY)
  38884. 801096a: 68fb ldr r3, [r7, #12]
  38885. 801096c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  38886. 8010970: 2b20 cmp r3, #32
  38887. 8010972: d178 bne.n 8010a66 <HAL_UART_Transmit_IT+0x10a>
  38888. {
  38889. if ((pData == NULL) || (Size == 0U))
  38890. 8010974: 68bb ldr r3, [r7, #8]
  38891. 8010976: 2b00 cmp r3, #0
  38892. 8010978: d002 beq.n 8010980 <HAL_UART_Transmit_IT+0x24>
  38893. 801097a: 88fb ldrh r3, [r7, #6]
  38894. 801097c: 2b00 cmp r3, #0
  38895. 801097e: d101 bne.n 8010984 <HAL_UART_Transmit_IT+0x28>
  38896. {
  38897. return HAL_ERROR;
  38898. 8010980: 2301 movs r3, #1
  38899. 8010982: e071 b.n 8010a68 <HAL_UART_Transmit_IT+0x10c>
  38900. }
  38901. huart->pTxBuffPtr = pData;
  38902. 8010984: 68fb ldr r3, [r7, #12]
  38903. 8010986: 68ba ldr r2, [r7, #8]
  38904. 8010988: 651a str r2, [r3, #80] @ 0x50
  38905. huart->TxXferSize = Size;
  38906. 801098a: 68fb ldr r3, [r7, #12]
  38907. 801098c: 88fa ldrh r2, [r7, #6]
  38908. 801098e: f8a3 2054 strh.w r2, [r3, #84] @ 0x54
  38909. huart->TxXferCount = Size;
  38910. 8010992: 68fb ldr r3, [r7, #12]
  38911. 8010994: 88fa ldrh r2, [r7, #6]
  38912. 8010996: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  38913. huart->TxISR = NULL;
  38914. 801099a: 68fb ldr r3, [r7, #12]
  38915. 801099c: 2200 movs r2, #0
  38916. 801099e: 679a str r2, [r3, #120] @ 0x78
  38917. huart->ErrorCode = HAL_UART_ERROR_NONE;
  38918. 80109a0: 68fb ldr r3, [r7, #12]
  38919. 80109a2: 2200 movs r2, #0
  38920. 80109a4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  38921. huart->gState = HAL_UART_STATE_BUSY_TX;
  38922. 80109a8: 68fb ldr r3, [r7, #12]
  38923. 80109aa: 2221 movs r2, #33 @ 0x21
  38924. 80109ac: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  38925. /* Configure Tx interrupt processing */
  38926. if (huart->FifoMode == UART_FIFOMODE_ENABLE)
  38927. 80109b0: 68fb ldr r3, [r7, #12]
  38928. 80109b2: 6e5b ldr r3, [r3, #100] @ 0x64
  38929. 80109b4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  38930. 80109b8: d12a bne.n 8010a10 <HAL_UART_Transmit_IT+0xb4>
  38931. {
  38932. /* Set the Tx ISR function pointer according to the data word length */
  38933. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  38934. 80109ba: 68fb ldr r3, [r7, #12]
  38935. 80109bc: 689b ldr r3, [r3, #8]
  38936. 80109be: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  38937. 80109c2: d107 bne.n 80109d4 <HAL_UART_Transmit_IT+0x78>
  38938. 80109c4: 68fb ldr r3, [r7, #12]
  38939. 80109c6: 691b ldr r3, [r3, #16]
  38940. 80109c8: 2b00 cmp r3, #0
  38941. 80109ca: d103 bne.n 80109d4 <HAL_UART_Transmit_IT+0x78>
  38942. {
  38943. huart->TxISR = UART_TxISR_16BIT_FIFOEN;
  38944. 80109cc: 68fb ldr r3, [r7, #12]
  38945. 80109ce: 4a29 ldr r2, [pc, #164] @ (8010a74 <HAL_UART_Transmit_IT+0x118>)
  38946. 80109d0: 679a str r2, [r3, #120] @ 0x78
  38947. 80109d2: e002 b.n 80109da <HAL_UART_Transmit_IT+0x7e>
  38948. }
  38949. else
  38950. {
  38951. huart->TxISR = UART_TxISR_8BIT_FIFOEN;
  38952. 80109d4: 68fb ldr r3, [r7, #12]
  38953. 80109d6: 4a28 ldr r2, [pc, #160] @ (8010a78 <HAL_UART_Transmit_IT+0x11c>)
  38954. 80109d8: 679a str r2, [r3, #120] @ 0x78
  38955. }
  38956. /* Enable the TX FIFO threshold interrupt */
  38957. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  38958. 80109da: 68fb ldr r3, [r7, #12]
  38959. 80109dc: 681b ldr r3, [r3, #0]
  38960. 80109de: 3308 adds r3, #8
  38961. 80109e0: 62bb str r3, [r7, #40] @ 0x28
  38962. */
  38963. __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
  38964. {
  38965. uint32_t result;
  38966. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  38967. 80109e2: 6abb ldr r3, [r7, #40] @ 0x28
  38968. 80109e4: e853 3f00 ldrex r3, [r3]
  38969. 80109e8: 627b str r3, [r7, #36] @ 0x24
  38970. return(result);
  38971. 80109ea: 6a7b ldr r3, [r7, #36] @ 0x24
  38972. 80109ec: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
  38973. 80109f0: 63bb str r3, [r7, #56] @ 0x38
  38974. 80109f2: 68fb ldr r3, [r7, #12]
  38975. 80109f4: 681b ldr r3, [r3, #0]
  38976. 80109f6: 3308 adds r3, #8
  38977. 80109f8: 6bba ldr r2, [r7, #56] @ 0x38
  38978. 80109fa: 637a str r2, [r7, #52] @ 0x34
  38979. 80109fc: 633b str r3, [r7, #48] @ 0x30
  38980. */
  38981. __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
  38982. {
  38983. uint32_t result;
  38984. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  38985. 80109fe: 6b39 ldr r1, [r7, #48] @ 0x30
  38986. 8010a00: 6b7a ldr r2, [r7, #52] @ 0x34
  38987. 8010a02: e841 2300 strex r3, r2, [r1]
  38988. 8010a06: 62fb str r3, [r7, #44] @ 0x2c
  38989. return(result);
  38990. 8010a08: 6afb ldr r3, [r7, #44] @ 0x2c
  38991. 8010a0a: 2b00 cmp r3, #0
  38992. 8010a0c: d1e5 bne.n 80109da <HAL_UART_Transmit_IT+0x7e>
  38993. 8010a0e: e028 b.n 8010a62 <HAL_UART_Transmit_IT+0x106>
  38994. }
  38995. else
  38996. {
  38997. /* Set the Tx ISR function pointer according to the data word length */
  38998. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  38999. 8010a10: 68fb ldr r3, [r7, #12]
  39000. 8010a12: 689b ldr r3, [r3, #8]
  39001. 8010a14: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  39002. 8010a18: d107 bne.n 8010a2a <HAL_UART_Transmit_IT+0xce>
  39003. 8010a1a: 68fb ldr r3, [r7, #12]
  39004. 8010a1c: 691b ldr r3, [r3, #16]
  39005. 8010a1e: 2b00 cmp r3, #0
  39006. 8010a20: d103 bne.n 8010a2a <HAL_UART_Transmit_IT+0xce>
  39007. {
  39008. huart->TxISR = UART_TxISR_16BIT;
  39009. 8010a22: 68fb ldr r3, [r7, #12]
  39010. 8010a24: 4a15 ldr r2, [pc, #84] @ (8010a7c <HAL_UART_Transmit_IT+0x120>)
  39011. 8010a26: 679a str r2, [r3, #120] @ 0x78
  39012. 8010a28: e002 b.n 8010a30 <HAL_UART_Transmit_IT+0xd4>
  39013. }
  39014. else
  39015. {
  39016. huart->TxISR = UART_TxISR_8BIT;
  39017. 8010a2a: 68fb ldr r3, [r7, #12]
  39018. 8010a2c: 4a14 ldr r2, [pc, #80] @ (8010a80 <HAL_UART_Transmit_IT+0x124>)
  39019. 8010a2e: 679a str r2, [r3, #120] @ 0x78
  39020. }
  39021. /* Enable the Transmit Data Register Empty interrupt */
  39022. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  39023. 8010a30: 68fb ldr r3, [r7, #12]
  39024. 8010a32: 681b ldr r3, [r3, #0]
  39025. 8010a34: 617b str r3, [r7, #20]
  39026. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39027. 8010a36: 697b ldr r3, [r7, #20]
  39028. 8010a38: e853 3f00 ldrex r3, [r3]
  39029. 8010a3c: 613b str r3, [r7, #16]
  39030. return(result);
  39031. 8010a3e: 693b ldr r3, [r7, #16]
  39032. 8010a40: f043 0380 orr.w r3, r3, #128 @ 0x80
  39033. 8010a44: 63fb str r3, [r7, #60] @ 0x3c
  39034. 8010a46: 68fb ldr r3, [r7, #12]
  39035. 8010a48: 681b ldr r3, [r3, #0]
  39036. 8010a4a: 461a mov r2, r3
  39037. 8010a4c: 6bfb ldr r3, [r7, #60] @ 0x3c
  39038. 8010a4e: 623b str r3, [r7, #32]
  39039. 8010a50: 61fa str r2, [r7, #28]
  39040. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39041. 8010a52: 69f9 ldr r1, [r7, #28]
  39042. 8010a54: 6a3a ldr r2, [r7, #32]
  39043. 8010a56: e841 2300 strex r3, r2, [r1]
  39044. 8010a5a: 61bb str r3, [r7, #24]
  39045. return(result);
  39046. 8010a5c: 69bb ldr r3, [r7, #24]
  39047. 8010a5e: 2b00 cmp r3, #0
  39048. 8010a60: d1e6 bne.n 8010a30 <HAL_UART_Transmit_IT+0xd4>
  39049. }
  39050. return HAL_OK;
  39051. 8010a62: 2300 movs r3, #0
  39052. 8010a64: e000 b.n 8010a68 <HAL_UART_Transmit_IT+0x10c>
  39053. }
  39054. else
  39055. {
  39056. return HAL_BUSY;
  39057. 8010a66: 2302 movs r3, #2
  39058. }
  39059. }
  39060. 8010a68: 4618 mov r0, r3
  39061. 8010a6a: 3744 adds r7, #68 @ 0x44
  39062. 8010a6c: 46bd mov sp, r7
  39063. 8010a6e: f85d 7b04 ldr.w r7, [sp], #4
  39064. 8010a72: 4770 bx lr
  39065. 8010a74: 080125e7 .word 0x080125e7
  39066. 8010a78: 08012507 .word 0x08012507
  39067. 8010a7c: 08012445 .word 0x08012445
  39068. 8010a80: 0801238d .word 0x0801238d
  39069. 08010a84 <HAL_UART_IRQHandler>:
  39070. * @brief Handle UART interrupt request.
  39071. * @param huart UART handle.
  39072. * @retval None
  39073. */
  39074. void HAL_UART_IRQHandler(UART_HandleTypeDef *huart)
  39075. {
  39076. 8010a84: b580 push {r7, lr}
  39077. 8010a86: b0ba sub sp, #232 @ 0xe8
  39078. 8010a88: af00 add r7, sp, #0
  39079. 8010a8a: 6078 str r0, [r7, #4]
  39080. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  39081. 8010a8c: 687b ldr r3, [r7, #4]
  39082. 8010a8e: 681b ldr r3, [r3, #0]
  39083. 8010a90: 69db ldr r3, [r3, #28]
  39084. 8010a92: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
  39085. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  39086. 8010a96: 687b ldr r3, [r7, #4]
  39087. 8010a98: 681b ldr r3, [r3, #0]
  39088. 8010a9a: 681b ldr r3, [r3, #0]
  39089. 8010a9c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
  39090. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  39091. 8010aa0: 687b ldr r3, [r7, #4]
  39092. 8010aa2: 681b ldr r3, [r3, #0]
  39093. 8010aa4: 689b ldr r3, [r3, #8]
  39094. 8010aa6: f8c7 30dc str.w r3, [r7, #220] @ 0xdc
  39095. uint32_t errorflags;
  39096. uint32_t errorcode;
  39097. /* If no error occurs */
  39098. errorflags = (isrflags & (uint32_t)(USART_ISR_PE | USART_ISR_FE | USART_ISR_ORE | USART_ISR_NE | USART_ISR_RTOF));
  39099. 8010aaa: f8d7 20e4 ldr.w r2, [r7, #228] @ 0xe4
  39100. 8010aae: f640 030f movw r3, #2063 @ 0x80f
  39101. 8010ab2: 4013 ands r3, r2
  39102. 8010ab4: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
  39103. if (errorflags == 0U)
  39104. 8010ab8: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39105. 8010abc: 2b00 cmp r3, #0
  39106. 8010abe: d11b bne.n 8010af8 <HAL_UART_IRQHandler+0x74>
  39107. {
  39108. /* UART in mode Receiver ---------------------------------------------------*/
  39109. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39110. 8010ac0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39111. 8010ac4: f003 0320 and.w r3, r3, #32
  39112. 8010ac8: 2b00 cmp r3, #0
  39113. 8010aca: d015 beq.n 8010af8 <HAL_UART_IRQHandler+0x74>
  39114. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39115. 8010acc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39116. 8010ad0: f003 0320 and.w r3, r3, #32
  39117. 8010ad4: 2b00 cmp r3, #0
  39118. 8010ad6: d105 bne.n 8010ae4 <HAL_UART_IRQHandler+0x60>
  39119. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39120. 8010ad8: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39121. 8010adc: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39122. 8010ae0: 2b00 cmp r3, #0
  39123. 8010ae2: d009 beq.n 8010af8 <HAL_UART_IRQHandler+0x74>
  39124. {
  39125. if (huart->RxISR != NULL)
  39126. 8010ae4: 687b ldr r3, [r7, #4]
  39127. 8010ae6: 6f5b ldr r3, [r3, #116] @ 0x74
  39128. 8010ae8: 2b00 cmp r3, #0
  39129. 8010aea: f000 8377 beq.w 80111dc <HAL_UART_IRQHandler+0x758>
  39130. {
  39131. huart->RxISR(huart);
  39132. 8010aee: 687b ldr r3, [r7, #4]
  39133. 8010af0: 6f5b ldr r3, [r3, #116] @ 0x74
  39134. 8010af2: 6878 ldr r0, [r7, #4]
  39135. 8010af4: 4798 blx r3
  39136. }
  39137. return;
  39138. 8010af6: e371 b.n 80111dc <HAL_UART_IRQHandler+0x758>
  39139. }
  39140. }
  39141. /* If some errors occur */
  39142. if ((errorflags != 0U)
  39143. 8010af8: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8
  39144. 8010afc: 2b00 cmp r3, #0
  39145. 8010afe: f000 8123 beq.w 8010d48 <HAL_UART_IRQHandler+0x2c4>
  39146. && ((((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)
  39147. 8010b02: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39148. 8010b06: 4b8d ldr r3, [pc, #564] @ (8010d3c <HAL_UART_IRQHandler+0x2b8>)
  39149. 8010b08: 4013 ands r3, r2
  39150. 8010b0a: 2b00 cmp r3, #0
  39151. 8010b0c: d106 bne.n 8010b1c <HAL_UART_IRQHandler+0x98>
  39152. || ((cr1its & (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE | USART_CR1_RTOIE)) != 0U))))
  39153. 8010b0e: f8d7 20e0 ldr.w r2, [r7, #224] @ 0xe0
  39154. 8010b12: 4b8b ldr r3, [pc, #556] @ (8010d40 <HAL_UART_IRQHandler+0x2bc>)
  39155. 8010b14: 4013 ands r3, r2
  39156. 8010b16: 2b00 cmp r3, #0
  39157. 8010b18: f000 8116 beq.w 8010d48 <HAL_UART_IRQHandler+0x2c4>
  39158. {
  39159. /* UART parity error interrupt occurred -------------------------------------*/
  39160. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  39161. 8010b1c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39162. 8010b20: f003 0301 and.w r3, r3, #1
  39163. 8010b24: 2b00 cmp r3, #0
  39164. 8010b26: d011 beq.n 8010b4c <HAL_UART_IRQHandler+0xc8>
  39165. 8010b28: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39166. 8010b2c: f403 7380 and.w r3, r3, #256 @ 0x100
  39167. 8010b30: 2b00 cmp r3, #0
  39168. 8010b32: d00b beq.n 8010b4c <HAL_UART_IRQHandler+0xc8>
  39169. {
  39170. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  39171. 8010b34: 687b ldr r3, [r7, #4]
  39172. 8010b36: 681b ldr r3, [r3, #0]
  39173. 8010b38: 2201 movs r2, #1
  39174. 8010b3a: 621a str r2, [r3, #32]
  39175. huart->ErrorCode |= HAL_UART_ERROR_PE;
  39176. 8010b3c: 687b ldr r3, [r7, #4]
  39177. 8010b3e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39178. 8010b42: f043 0201 orr.w r2, r3, #1
  39179. 8010b46: 687b ldr r3, [r7, #4]
  39180. 8010b48: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39181. }
  39182. /* UART frame error interrupt occurred --------------------------------------*/
  39183. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39184. 8010b4c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39185. 8010b50: f003 0302 and.w r3, r3, #2
  39186. 8010b54: 2b00 cmp r3, #0
  39187. 8010b56: d011 beq.n 8010b7c <HAL_UART_IRQHandler+0xf8>
  39188. 8010b58: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39189. 8010b5c: f003 0301 and.w r3, r3, #1
  39190. 8010b60: 2b00 cmp r3, #0
  39191. 8010b62: d00b beq.n 8010b7c <HAL_UART_IRQHandler+0xf8>
  39192. {
  39193. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  39194. 8010b64: 687b ldr r3, [r7, #4]
  39195. 8010b66: 681b ldr r3, [r3, #0]
  39196. 8010b68: 2202 movs r2, #2
  39197. 8010b6a: 621a str r2, [r3, #32]
  39198. huart->ErrorCode |= HAL_UART_ERROR_FE;
  39199. 8010b6c: 687b ldr r3, [r7, #4]
  39200. 8010b6e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39201. 8010b72: f043 0204 orr.w r2, r3, #4
  39202. 8010b76: 687b ldr r3, [r7, #4]
  39203. 8010b78: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39204. }
  39205. /* UART noise error interrupt occurred --------------------------------------*/
  39206. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  39207. 8010b7c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39208. 8010b80: f003 0304 and.w r3, r3, #4
  39209. 8010b84: 2b00 cmp r3, #0
  39210. 8010b86: d011 beq.n 8010bac <HAL_UART_IRQHandler+0x128>
  39211. 8010b88: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39212. 8010b8c: f003 0301 and.w r3, r3, #1
  39213. 8010b90: 2b00 cmp r3, #0
  39214. 8010b92: d00b beq.n 8010bac <HAL_UART_IRQHandler+0x128>
  39215. {
  39216. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  39217. 8010b94: 687b ldr r3, [r7, #4]
  39218. 8010b96: 681b ldr r3, [r3, #0]
  39219. 8010b98: 2204 movs r2, #4
  39220. 8010b9a: 621a str r2, [r3, #32]
  39221. huart->ErrorCode |= HAL_UART_ERROR_NE;
  39222. 8010b9c: 687b ldr r3, [r7, #4]
  39223. 8010b9e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39224. 8010ba2: f043 0202 orr.w r2, r3, #2
  39225. 8010ba6: 687b ldr r3, [r7, #4]
  39226. 8010ba8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39227. }
  39228. /* UART Over-Run interrupt occurred -----------------------------------------*/
  39229. if (((isrflags & USART_ISR_ORE) != 0U)
  39230. 8010bac: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39231. 8010bb0: f003 0308 and.w r3, r3, #8
  39232. 8010bb4: 2b00 cmp r3, #0
  39233. 8010bb6: d017 beq.n 8010be8 <HAL_UART_IRQHandler+0x164>
  39234. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39235. 8010bb8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39236. 8010bbc: f003 0320 and.w r3, r3, #32
  39237. 8010bc0: 2b00 cmp r3, #0
  39238. 8010bc2: d105 bne.n 8010bd0 <HAL_UART_IRQHandler+0x14c>
  39239. ((cr3its & (USART_CR3_RXFTIE | USART_CR3_EIE)) != 0U)))
  39240. 8010bc4: f8d7 20dc ldr.w r2, [r7, #220] @ 0xdc
  39241. 8010bc8: 4b5c ldr r3, [pc, #368] @ (8010d3c <HAL_UART_IRQHandler+0x2b8>)
  39242. 8010bca: 4013 ands r3, r2
  39243. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U) ||
  39244. 8010bcc: 2b00 cmp r3, #0
  39245. 8010bce: d00b beq.n 8010be8 <HAL_UART_IRQHandler+0x164>
  39246. {
  39247. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  39248. 8010bd0: 687b ldr r3, [r7, #4]
  39249. 8010bd2: 681b ldr r3, [r3, #0]
  39250. 8010bd4: 2208 movs r2, #8
  39251. 8010bd6: 621a str r2, [r3, #32]
  39252. huart->ErrorCode |= HAL_UART_ERROR_ORE;
  39253. 8010bd8: 687b ldr r3, [r7, #4]
  39254. 8010bda: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39255. 8010bde: f043 0208 orr.w r2, r3, #8
  39256. 8010be2: 687b ldr r3, [r7, #4]
  39257. 8010be4: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39258. }
  39259. /* UART Receiver Timeout interrupt occurred ---------------------------------*/
  39260. if (((isrflags & USART_ISR_RTOF) != 0U) && ((cr1its & USART_CR1_RTOIE) != 0U))
  39261. 8010be8: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39262. 8010bec: f403 6300 and.w r3, r3, #2048 @ 0x800
  39263. 8010bf0: 2b00 cmp r3, #0
  39264. 8010bf2: d012 beq.n 8010c1a <HAL_UART_IRQHandler+0x196>
  39265. 8010bf4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39266. 8010bf8: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
  39267. 8010bfc: 2b00 cmp r3, #0
  39268. 8010bfe: d00c beq.n 8010c1a <HAL_UART_IRQHandler+0x196>
  39269. {
  39270. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  39271. 8010c00: 687b ldr r3, [r7, #4]
  39272. 8010c02: 681b ldr r3, [r3, #0]
  39273. 8010c04: f44f 6200 mov.w r2, #2048 @ 0x800
  39274. 8010c08: 621a str r2, [r3, #32]
  39275. huart->ErrorCode |= HAL_UART_ERROR_RTO;
  39276. 8010c0a: 687b ldr r3, [r7, #4]
  39277. 8010c0c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39278. 8010c10: f043 0220 orr.w r2, r3, #32
  39279. 8010c14: 687b ldr r3, [r7, #4]
  39280. 8010c16: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39281. }
  39282. /* Call UART Error Call back function if need be ----------------------------*/
  39283. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  39284. 8010c1a: 687b ldr r3, [r7, #4]
  39285. 8010c1c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39286. 8010c20: 2b00 cmp r3, #0
  39287. 8010c22: f000 82dd beq.w 80111e0 <HAL_UART_IRQHandler+0x75c>
  39288. {
  39289. /* UART in mode Receiver --------------------------------------------------*/
  39290. if (((isrflags & USART_ISR_RXNE_RXFNE) != 0U)
  39291. 8010c26: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39292. 8010c2a: f003 0320 and.w r3, r3, #32
  39293. 8010c2e: 2b00 cmp r3, #0
  39294. 8010c30: d013 beq.n 8010c5a <HAL_UART_IRQHandler+0x1d6>
  39295. && (((cr1its & USART_CR1_RXNEIE_RXFNEIE) != 0U)
  39296. 8010c32: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39297. 8010c36: f003 0320 and.w r3, r3, #32
  39298. 8010c3a: 2b00 cmp r3, #0
  39299. 8010c3c: d105 bne.n 8010c4a <HAL_UART_IRQHandler+0x1c6>
  39300. || ((cr3its & USART_CR3_RXFTIE) != 0U)))
  39301. 8010c3e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39302. 8010c42: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
  39303. 8010c46: 2b00 cmp r3, #0
  39304. 8010c48: d007 beq.n 8010c5a <HAL_UART_IRQHandler+0x1d6>
  39305. {
  39306. if (huart->RxISR != NULL)
  39307. 8010c4a: 687b ldr r3, [r7, #4]
  39308. 8010c4c: 6f5b ldr r3, [r3, #116] @ 0x74
  39309. 8010c4e: 2b00 cmp r3, #0
  39310. 8010c50: d003 beq.n 8010c5a <HAL_UART_IRQHandler+0x1d6>
  39311. {
  39312. huart->RxISR(huart);
  39313. 8010c52: 687b ldr r3, [r7, #4]
  39314. 8010c54: 6f5b ldr r3, [r3, #116] @ 0x74
  39315. 8010c56: 6878 ldr r0, [r7, #4]
  39316. 8010c58: 4798 blx r3
  39317. /* If Error is to be considered as blocking :
  39318. - Receiver Timeout error in Reception
  39319. - Overrun error in Reception
  39320. - any error occurs in DMA mode reception
  39321. */
  39322. errorcode = huart->ErrorCode;
  39323. 8010c5a: 687b ldr r3, [r7, #4]
  39324. 8010c5c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  39325. 8010c60: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4
  39326. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  39327. 8010c64: 687b ldr r3, [r7, #4]
  39328. 8010c66: 681b ldr r3, [r3, #0]
  39329. 8010c68: 689b ldr r3, [r3, #8]
  39330. 8010c6a: f003 0340 and.w r3, r3, #64 @ 0x40
  39331. 8010c6e: 2b40 cmp r3, #64 @ 0x40
  39332. 8010c70: d005 beq.n 8010c7e <HAL_UART_IRQHandler+0x1fa>
  39333. ((errorcode & (HAL_UART_ERROR_RTO | HAL_UART_ERROR_ORE)) != 0U))
  39334. 8010c72: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4
  39335. 8010c76: f003 0328 and.w r3, r3, #40 @ 0x28
  39336. if ((HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) ||
  39337. 8010c7a: 2b00 cmp r3, #0
  39338. 8010c7c: d054 beq.n 8010d28 <HAL_UART_IRQHandler+0x2a4>
  39339. {
  39340. /* Blocking error : transfer is aborted
  39341. Set the UART state ready to be able to start again the process,
  39342. Disable Rx Interrupts, and disable Rx DMA request, if ongoing */
  39343. UART_EndRxTransfer(huart);
  39344. 8010c7e: 6878 ldr r0, [r7, #4]
  39345. 8010c80: f001 fb08 bl 8012294 <UART_EndRxTransfer>
  39346. /* Abort the UART DMA Rx channel if enabled */
  39347. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39348. 8010c84: 687b ldr r3, [r7, #4]
  39349. 8010c86: 681b ldr r3, [r3, #0]
  39350. 8010c88: 689b ldr r3, [r3, #8]
  39351. 8010c8a: f003 0340 and.w r3, r3, #64 @ 0x40
  39352. 8010c8e: 2b40 cmp r3, #64 @ 0x40
  39353. 8010c90: d146 bne.n 8010d20 <HAL_UART_IRQHandler+0x29c>
  39354. {
  39355. /* Disable the UART DMA Rx request if enabled */
  39356. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  39357. 8010c92: 687b ldr r3, [r7, #4]
  39358. 8010c94: 681b ldr r3, [r3, #0]
  39359. 8010c96: 3308 adds r3, #8
  39360. 8010c98: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  39361. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39362. 8010c9c: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  39363. 8010ca0: e853 3f00 ldrex r3, [r3]
  39364. 8010ca4: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  39365. return(result);
  39366. 8010ca8: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  39367. 8010cac: f023 0340 bic.w r3, r3, #64 @ 0x40
  39368. 8010cb0: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
  39369. 8010cb4: 687b ldr r3, [r7, #4]
  39370. 8010cb6: 681b ldr r3, [r3, #0]
  39371. 8010cb8: 3308 adds r3, #8
  39372. 8010cba: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0
  39373. 8010cbe: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8
  39374. 8010cc2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  39375. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39376. 8010cc6: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4
  39377. 8010cca: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8
  39378. 8010cce: e841 2300 strex r3, r2, [r1]
  39379. 8010cd2: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  39380. return(result);
  39381. 8010cd6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  39382. 8010cda: 2b00 cmp r3, #0
  39383. 8010cdc: d1d9 bne.n 8010c92 <HAL_UART_IRQHandler+0x20e>
  39384. /* Abort the UART DMA Rx channel */
  39385. if (huart->hdmarx != NULL)
  39386. 8010cde: 687b ldr r3, [r7, #4]
  39387. 8010ce0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39388. 8010ce4: 2b00 cmp r3, #0
  39389. 8010ce6: d017 beq.n 8010d18 <HAL_UART_IRQHandler+0x294>
  39390. {
  39391. /* Set the UART DMA Abort callback :
  39392. will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */
  39393. huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError;
  39394. 8010ce8: 687b ldr r3, [r7, #4]
  39395. 8010cea: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39396. 8010cee: 4a15 ldr r2, [pc, #84] @ (8010d44 <HAL_UART_IRQHandler+0x2c0>)
  39397. 8010cf0: 651a str r2, [r3, #80] @ 0x50
  39398. /* Abort DMA RX */
  39399. if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK)
  39400. 8010cf2: 687b ldr r3, [r7, #4]
  39401. 8010cf4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39402. 8010cf8: 4618 mov r0, r3
  39403. 8010cfa: f7f8 fb41 bl 8009380 <HAL_DMA_Abort_IT>
  39404. 8010cfe: 4603 mov r3, r0
  39405. 8010d00: 2b00 cmp r3, #0
  39406. 8010d02: d019 beq.n 8010d38 <HAL_UART_IRQHandler+0x2b4>
  39407. {
  39408. /* Call Directly huart->hdmarx->XferAbortCallback function in case of error */
  39409. huart->hdmarx->XferAbortCallback(huart->hdmarx);
  39410. 8010d04: 687b ldr r3, [r7, #4]
  39411. 8010d06: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39412. 8010d0a: 6d1b ldr r3, [r3, #80] @ 0x50
  39413. 8010d0c: 687a ldr r2, [r7, #4]
  39414. 8010d0e: f8d2 2080 ldr.w r2, [r2, #128] @ 0x80
  39415. 8010d12: 4610 mov r0, r2
  39416. 8010d14: 4798 blx r3
  39417. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39418. 8010d16: e00f b.n 8010d38 <HAL_UART_IRQHandler+0x2b4>
  39419. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39420. /*Call registered error callback*/
  39421. huart->ErrorCallback(huart);
  39422. #else
  39423. /*Call legacy weak error callback*/
  39424. HAL_UART_ErrorCallback(huart);
  39425. 8010d18: 6878 ldr r0, [r7, #4]
  39426. 8010d1a: f000 fa6d bl 80111f8 <HAL_UART_ErrorCallback>
  39427. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39428. 8010d1e: e00b b.n 8010d38 <HAL_UART_IRQHandler+0x2b4>
  39429. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39430. /*Call registered error callback*/
  39431. huart->ErrorCallback(huart);
  39432. #else
  39433. /*Call legacy weak error callback*/
  39434. HAL_UART_ErrorCallback(huart);
  39435. 8010d20: 6878 ldr r0, [r7, #4]
  39436. 8010d22: f000 fa69 bl 80111f8 <HAL_UART_ErrorCallback>
  39437. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39438. 8010d26: e007 b.n 8010d38 <HAL_UART_IRQHandler+0x2b4>
  39439. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39440. /*Call registered error callback*/
  39441. huart->ErrorCallback(huart);
  39442. #else
  39443. /*Call legacy weak error callback*/
  39444. HAL_UART_ErrorCallback(huart);
  39445. 8010d28: 6878 ldr r0, [r7, #4]
  39446. 8010d2a: f000 fa65 bl 80111f8 <HAL_UART_ErrorCallback>
  39447. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  39448. huart->ErrorCode = HAL_UART_ERROR_NONE;
  39449. 8010d2e: 687b ldr r3, [r7, #4]
  39450. 8010d30: 2200 movs r2, #0
  39451. 8010d32: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  39452. }
  39453. }
  39454. return;
  39455. 8010d36: e253 b.n 80111e0 <HAL_UART_IRQHandler+0x75c>
  39456. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39457. 8010d38: bf00 nop
  39458. return;
  39459. 8010d3a: e251 b.n 80111e0 <HAL_UART_IRQHandler+0x75c>
  39460. 8010d3c: 10000001 .word 0x10000001
  39461. 8010d40: 04000120 .word 0x04000120
  39462. 8010d44: 08012361 .word 0x08012361
  39463. } /* End if some error occurs */
  39464. /* Check current reception Mode :
  39465. If Reception till IDLE event has been selected : */
  39466. if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  39467. 8010d48: 687b ldr r3, [r7, #4]
  39468. 8010d4a: 6edb ldr r3, [r3, #108] @ 0x6c
  39469. 8010d4c: 2b01 cmp r3, #1
  39470. 8010d4e: f040 81e7 bne.w 8011120 <HAL_UART_IRQHandler+0x69c>
  39471. && ((isrflags & USART_ISR_IDLE) != 0U)
  39472. 8010d52: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39473. 8010d56: f003 0310 and.w r3, r3, #16
  39474. 8010d5a: 2b00 cmp r3, #0
  39475. 8010d5c: f000 81e0 beq.w 8011120 <HAL_UART_IRQHandler+0x69c>
  39476. && ((cr1its & USART_ISR_IDLE) != 0U))
  39477. 8010d60: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39478. 8010d64: f003 0310 and.w r3, r3, #16
  39479. 8010d68: 2b00 cmp r3, #0
  39480. 8010d6a: f000 81d9 beq.w 8011120 <HAL_UART_IRQHandler+0x69c>
  39481. {
  39482. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  39483. 8010d6e: 687b ldr r3, [r7, #4]
  39484. 8010d70: 681b ldr r3, [r3, #0]
  39485. 8010d72: 2210 movs r2, #16
  39486. 8010d74: 621a str r2, [r3, #32]
  39487. /* Check if DMA mode is enabled in UART */
  39488. if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR))
  39489. 8010d76: 687b ldr r3, [r7, #4]
  39490. 8010d78: 681b ldr r3, [r3, #0]
  39491. 8010d7a: 689b ldr r3, [r3, #8]
  39492. 8010d7c: f003 0340 and.w r3, r3, #64 @ 0x40
  39493. 8010d80: 2b40 cmp r3, #64 @ 0x40
  39494. 8010d82: f040 8151 bne.w 8011028 <HAL_UART_IRQHandler+0x5a4>
  39495. {
  39496. /* DMA mode enabled */
  39497. /* Check received length : If all expected data are received, do nothing,
  39498. (DMA cplt callback will be called).
  39499. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  39500. uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx);
  39501. 8010d86: 687b ldr r3, [r7, #4]
  39502. 8010d88: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39503. 8010d8c: 681b ldr r3, [r3, #0]
  39504. 8010d8e: 4a96 ldr r2, [pc, #600] @ (8010fe8 <HAL_UART_IRQHandler+0x564>)
  39505. 8010d90: 4293 cmp r3, r2
  39506. 8010d92: d068 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39507. 8010d94: 687b ldr r3, [r7, #4]
  39508. 8010d96: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39509. 8010d9a: 681b ldr r3, [r3, #0]
  39510. 8010d9c: 4a93 ldr r2, [pc, #588] @ (8010fec <HAL_UART_IRQHandler+0x568>)
  39511. 8010d9e: 4293 cmp r3, r2
  39512. 8010da0: d061 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39513. 8010da2: 687b ldr r3, [r7, #4]
  39514. 8010da4: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39515. 8010da8: 681b ldr r3, [r3, #0]
  39516. 8010daa: 4a91 ldr r2, [pc, #580] @ (8010ff0 <HAL_UART_IRQHandler+0x56c>)
  39517. 8010dac: 4293 cmp r3, r2
  39518. 8010dae: d05a beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39519. 8010db0: 687b ldr r3, [r7, #4]
  39520. 8010db2: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39521. 8010db6: 681b ldr r3, [r3, #0]
  39522. 8010db8: 4a8e ldr r2, [pc, #568] @ (8010ff4 <HAL_UART_IRQHandler+0x570>)
  39523. 8010dba: 4293 cmp r3, r2
  39524. 8010dbc: d053 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39525. 8010dbe: 687b ldr r3, [r7, #4]
  39526. 8010dc0: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39527. 8010dc4: 681b ldr r3, [r3, #0]
  39528. 8010dc6: 4a8c ldr r2, [pc, #560] @ (8010ff8 <HAL_UART_IRQHandler+0x574>)
  39529. 8010dc8: 4293 cmp r3, r2
  39530. 8010dca: d04c beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39531. 8010dcc: 687b ldr r3, [r7, #4]
  39532. 8010dce: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39533. 8010dd2: 681b ldr r3, [r3, #0]
  39534. 8010dd4: 4a89 ldr r2, [pc, #548] @ (8010ffc <HAL_UART_IRQHandler+0x578>)
  39535. 8010dd6: 4293 cmp r3, r2
  39536. 8010dd8: d045 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39537. 8010dda: 687b ldr r3, [r7, #4]
  39538. 8010ddc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39539. 8010de0: 681b ldr r3, [r3, #0]
  39540. 8010de2: 4a87 ldr r2, [pc, #540] @ (8011000 <HAL_UART_IRQHandler+0x57c>)
  39541. 8010de4: 4293 cmp r3, r2
  39542. 8010de6: d03e beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39543. 8010de8: 687b ldr r3, [r7, #4]
  39544. 8010dea: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39545. 8010dee: 681b ldr r3, [r3, #0]
  39546. 8010df0: 4a84 ldr r2, [pc, #528] @ (8011004 <HAL_UART_IRQHandler+0x580>)
  39547. 8010df2: 4293 cmp r3, r2
  39548. 8010df4: d037 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39549. 8010df6: 687b ldr r3, [r7, #4]
  39550. 8010df8: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39551. 8010dfc: 681b ldr r3, [r3, #0]
  39552. 8010dfe: 4a82 ldr r2, [pc, #520] @ (8011008 <HAL_UART_IRQHandler+0x584>)
  39553. 8010e00: 4293 cmp r3, r2
  39554. 8010e02: d030 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39555. 8010e04: 687b ldr r3, [r7, #4]
  39556. 8010e06: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39557. 8010e0a: 681b ldr r3, [r3, #0]
  39558. 8010e0c: 4a7f ldr r2, [pc, #508] @ (801100c <HAL_UART_IRQHandler+0x588>)
  39559. 8010e0e: 4293 cmp r3, r2
  39560. 8010e10: d029 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39561. 8010e12: 687b ldr r3, [r7, #4]
  39562. 8010e14: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39563. 8010e18: 681b ldr r3, [r3, #0]
  39564. 8010e1a: 4a7d ldr r2, [pc, #500] @ (8011010 <HAL_UART_IRQHandler+0x58c>)
  39565. 8010e1c: 4293 cmp r3, r2
  39566. 8010e1e: d022 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39567. 8010e20: 687b ldr r3, [r7, #4]
  39568. 8010e22: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39569. 8010e26: 681b ldr r3, [r3, #0]
  39570. 8010e28: 4a7a ldr r2, [pc, #488] @ (8011014 <HAL_UART_IRQHandler+0x590>)
  39571. 8010e2a: 4293 cmp r3, r2
  39572. 8010e2c: d01b beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39573. 8010e2e: 687b ldr r3, [r7, #4]
  39574. 8010e30: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39575. 8010e34: 681b ldr r3, [r3, #0]
  39576. 8010e36: 4a78 ldr r2, [pc, #480] @ (8011018 <HAL_UART_IRQHandler+0x594>)
  39577. 8010e38: 4293 cmp r3, r2
  39578. 8010e3a: d014 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39579. 8010e3c: 687b ldr r3, [r7, #4]
  39580. 8010e3e: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39581. 8010e42: 681b ldr r3, [r3, #0]
  39582. 8010e44: 4a75 ldr r2, [pc, #468] @ (801101c <HAL_UART_IRQHandler+0x598>)
  39583. 8010e46: 4293 cmp r3, r2
  39584. 8010e48: d00d beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39585. 8010e4a: 687b ldr r3, [r7, #4]
  39586. 8010e4c: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39587. 8010e50: 681b ldr r3, [r3, #0]
  39588. 8010e52: 4a73 ldr r2, [pc, #460] @ (8011020 <HAL_UART_IRQHandler+0x59c>)
  39589. 8010e54: 4293 cmp r3, r2
  39590. 8010e56: d006 beq.n 8010e66 <HAL_UART_IRQHandler+0x3e2>
  39591. 8010e58: 687b ldr r3, [r7, #4]
  39592. 8010e5a: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39593. 8010e5e: 681b ldr r3, [r3, #0]
  39594. 8010e60: 4a70 ldr r2, [pc, #448] @ (8011024 <HAL_UART_IRQHandler+0x5a0>)
  39595. 8010e62: 4293 cmp r3, r2
  39596. 8010e64: d106 bne.n 8010e74 <HAL_UART_IRQHandler+0x3f0>
  39597. 8010e66: 687b ldr r3, [r7, #4]
  39598. 8010e68: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39599. 8010e6c: 681b ldr r3, [r3, #0]
  39600. 8010e6e: 685b ldr r3, [r3, #4]
  39601. 8010e70: b29b uxth r3, r3
  39602. 8010e72: e005 b.n 8010e80 <HAL_UART_IRQHandler+0x3fc>
  39603. 8010e74: 687b ldr r3, [r7, #4]
  39604. 8010e76: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39605. 8010e7a: 681b ldr r3, [r3, #0]
  39606. 8010e7c: 685b ldr r3, [r3, #4]
  39607. 8010e7e: b29b uxth r3, r3
  39608. 8010e80: f8a7 30be strh.w r3, [r7, #190] @ 0xbe
  39609. if ((nb_remaining_rx_data > 0U)
  39610. 8010e84: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe
  39611. 8010e88: 2b00 cmp r3, #0
  39612. 8010e8a: f000 81ab beq.w 80111e4 <HAL_UART_IRQHandler+0x760>
  39613. && (nb_remaining_rx_data < huart->RxXferSize))
  39614. 8010e8e: 687b ldr r3, [r7, #4]
  39615. 8010e90: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  39616. 8010e94: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  39617. 8010e98: 429a cmp r2, r3
  39618. 8010e9a: f080 81a3 bcs.w 80111e4 <HAL_UART_IRQHandler+0x760>
  39619. {
  39620. /* Reception is not complete */
  39621. huart->RxXferCount = nb_remaining_rx_data;
  39622. 8010e9e: 687b ldr r3, [r7, #4]
  39623. 8010ea0: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe
  39624. 8010ea4: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  39625. /* In Normal mode, end DMA xfer and HAL UART Rx process*/
  39626. if (huart->hdmarx->Init.Mode != DMA_CIRCULAR)
  39627. 8010ea8: 687b ldr r3, [r7, #4]
  39628. 8010eaa: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39629. 8010eae: 69db ldr r3, [r3, #28]
  39630. 8010eb0: f5b3 7f80 cmp.w r3, #256 @ 0x100
  39631. 8010eb4: f000 8087 beq.w 8010fc6 <HAL_UART_IRQHandler+0x542>
  39632. {
  39633. /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */
  39634. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  39635. 8010eb8: 687b ldr r3, [r7, #4]
  39636. 8010eba: 681b ldr r3, [r3, #0]
  39637. 8010ebc: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  39638. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39639. 8010ec0: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88
  39640. 8010ec4: e853 3f00 ldrex r3, [r3]
  39641. 8010ec8: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  39642. return(result);
  39643. 8010ecc: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  39644. 8010ed0: f423 7380 bic.w r3, r3, #256 @ 0x100
  39645. 8010ed4: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
  39646. 8010ed8: 687b ldr r3, [r7, #4]
  39647. 8010eda: 681b ldr r3, [r3, #0]
  39648. 8010edc: 461a mov r2, r3
  39649. 8010ede: f8d7 30b8 ldr.w r3, [r7, #184] @ 0xb8
  39650. 8010ee2: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  39651. 8010ee6: f8c7 2090 str.w r2, [r7, #144] @ 0x90
  39652. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39653. 8010eea: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90
  39654. 8010eee: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  39655. 8010ef2: e841 2300 strex r3, r2, [r1]
  39656. 8010ef6: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  39657. return(result);
  39658. 8010efa: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  39659. 8010efe: 2b00 cmp r3, #0
  39660. 8010f00: d1da bne.n 8010eb8 <HAL_UART_IRQHandler+0x434>
  39661. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  39662. 8010f02: 687b ldr r3, [r7, #4]
  39663. 8010f04: 681b ldr r3, [r3, #0]
  39664. 8010f06: 3308 adds r3, #8
  39665. 8010f08: 677b str r3, [r7, #116] @ 0x74
  39666. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39667. 8010f0a: 6f7b ldr r3, [r7, #116] @ 0x74
  39668. 8010f0c: e853 3f00 ldrex r3, [r3]
  39669. 8010f10: 673b str r3, [r7, #112] @ 0x70
  39670. return(result);
  39671. 8010f12: 6f3b ldr r3, [r7, #112] @ 0x70
  39672. 8010f14: f023 0301 bic.w r3, r3, #1
  39673. 8010f18: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  39674. 8010f1c: 687b ldr r3, [r7, #4]
  39675. 8010f1e: 681b ldr r3, [r3, #0]
  39676. 8010f20: 3308 adds r3, #8
  39677. 8010f22: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4
  39678. 8010f26: f8c7 2080 str.w r2, [r7, #128] @ 0x80
  39679. 8010f2a: 67fb str r3, [r7, #124] @ 0x7c
  39680. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39681. 8010f2c: 6ff9 ldr r1, [r7, #124] @ 0x7c
  39682. 8010f2e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  39683. 8010f32: e841 2300 strex r3, r2, [r1]
  39684. 8010f36: 67bb str r3, [r7, #120] @ 0x78
  39685. return(result);
  39686. 8010f38: 6fbb ldr r3, [r7, #120] @ 0x78
  39687. 8010f3a: 2b00 cmp r3, #0
  39688. 8010f3c: d1e1 bne.n 8010f02 <HAL_UART_IRQHandler+0x47e>
  39689. /* Disable the DMA transfer for the receiver request by resetting the DMAR bit
  39690. in the UART CR3 register */
  39691. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR);
  39692. 8010f3e: 687b ldr r3, [r7, #4]
  39693. 8010f40: 681b ldr r3, [r3, #0]
  39694. 8010f42: 3308 adds r3, #8
  39695. 8010f44: 663b str r3, [r7, #96] @ 0x60
  39696. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39697. 8010f46: 6e3b ldr r3, [r7, #96] @ 0x60
  39698. 8010f48: e853 3f00 ldrex r3, [r3]
  39699. 8010f4c: 65fb str r3, [r7, #92] @ 0x5c
  39700. return(result);
  39701. 8010f4e: 6dfb ldr r3, [r7, #92] @ 0x5c
  39702. 8010f50: f023 0340 bic.w r3, r3, #64 @ 0x40
  39703. 8010f54: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
  39704. 8010f58: 687b ldr r3, [r7, #4]
  39705. 8010f5a: 681b ldr r3, [r3, #0]
  39706. 8010f5c: 3308 adds r3, #8
  39707. 8010f5e: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0
  39708. 8010f62: 66fa str r2, [r7, #108] @ 0x6c
  39709. 8010f64: 66bb str r3, [r7, #104] @ 0x68
  39710. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39711. 8010f66: 6eb9 ldr r1, [r7, #104] @ 0x68
  39712. 8010f68: 6efa ldr r2, [r7, #108] @ 0x6c
  39713. 8010f6a: e841 2300 strex r3, r2, [r1]
  39714. 8010f6e: 667b str r3, [r7, #100] @ 0x64
  39715. return(result);
  39716. 8010f70: 6e7b ldr r3, [r7, #100] @ 0x64
  39717. 8010f72: 2b00 cmp r3, #0
  39718. 8010f74: d1e3 bne.n 8010f3e <HAL_UART_IRQHandler+0x4ba>
  39719. /* At end of Rx process, restore huart->RxState to Ready */
  39720. huart->RxState = HAL_UART_STATE_READY;
  39721. 8010f76: 687b ldr r3, [r7, #4]
  39722. 8010f78: 2220 movs r2, #32
  39723. 8010f7a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  39724. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  39725. 8010f7e: 687b ldr r3, [r7, #4]
  39726. 8010f80: 2200 movs r2, #0
  39727. 8010f82: 66da str r2, [r3, #108] @ 0x6c
  39728. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  39729. 8010f84: 687b ldr r3, [r7, #4]
  39730. 8010f86: 681b ldr r3, [r3, #0]
  39731. 8010f88: 64fb str r3, [r7, #76] @ 0x4c
  39732. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39733. 8010f8a: 6cfb ldr r3, [r7, #76] @ 0x4c
  39734. 8010f8c: e853 3f00 ldrex r3, [r3]
  39735. 8010f90: 64bb str r3, [r7, #72] @ 0x48
  39736. return(result);
  39737. 8010f92: 6cbb ldr r3, [r7, #72] @ 0x48
  39738. 8010f94: f023 0310 bic.w r3, r3, #16
  39739. 8010f98: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  39740. 8010f9c: 687b ldr r3, [r7, #4]
  39741. 8010f9e: 681b ldr r3, [r3, #0]
  39742. 8010fa0: 461a mov r2, r3
  39743. 8010fa2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  39744. 8010fa6: 65bb str r3, [r7, #88] @ 0x58
  39745. 8010fa8: 657a str r2, [r7, #84] @ 0x54
  39746. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39747. 8010faa: 6d79 ldr r1, [r7, #84] @ 0x54
  39748. 8010fac: 6dba ldr r2, [r7, #88] @ 0x58
  39749. 8010fae: e841 2300 strex r3, r2, [r1]
  39750. 8010fb2: 653b str r3, [r7, #80] @ 0x50
  39751. return(result);
  39752. 8010fb4: 6d3b ldr r3, [r7, #80] @ 0x50
  39753. 8010fb6: 2b00 cmp r3, #0
  39754. 8010fb8: d1e4 bne.n 8010f84 <HAL_UART_IRQHandler+0x500>
  39755. /* Last bytes received, so no need as the abort is immediate */
  39756. (void)HAL_DMA_Abort(huart->hdmarx);
  39757. 8010fba: 687b ldr r3, [r7, #4]
  39758. 8010fbc: f8d3 3080 ldr.w r3, [r3, #128] @ 0x80
  39759. 8010fc0: 4618 mov r0, r3
  39760. 8010fc2: f7f7 febf bl 8008d44 <HAL_DMA_Abort>
  39761. }
  39762. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  39763. In this case, Rx Event type is Idle Event */
  39764. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  39765. 8010fc6: 687b ldr r3, [r7, #4]
  39766. 8010fc8: 2202 movs r2, #2
  39767. 8010fca: 671a str r2, [r3, #112] @ 0x70
  39768. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39769. /*Call registered Rx Event callback*/
  39770. huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  39771. #else
  39772. /*Call legacy weak Rx Event callback*/
  39773. HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount));
  39774. 8010fcc: 687b ldr r3, [r7, #4]
  39775. 8010fce: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  39776. 8010fd2: 687b ldr r3, [r7, #4]
  39777. 8010fd4: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  39778. 8010fd8: b29b uxth r3, r3
  39779. 8010fda: 1ad3 subs r3, r2, r3
  39780. 8010fdc: b29b uxth r3, r3
  39781. 8010fde: 4619 mov r1, r3
  39782. 8010fe0: 6878 ldr r0, [r7, #4]
  39783. 8010fe2: f7f3 fb3f bl 8004664 <HAL_UARTEx_RxEventCallback>
  39784. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  39785. }
  39786. return;
  39787. 8010fe6: e0fd b.n 80111e4 <HAL_UART_IRQHandler+0x760>
  39788. 8010fe8: 40020010 .word 0x40020010
  39789. 8010fec: 40020028 .word 0x40020028
  39790. 8010ff0: 40020040 .word 0x40020040
  39791. 8010ff4: 40020058 .word 0x40020058
  39792. 8010ff8: 40020070 .word 0x40020070
  39793. 8010ffc: 40020088 .word 0x40020088
  39794. 8011000: 400200a0 .word 0x400200a0
  39795. 8011004: 400200b8 .word 0x400200b8
  39796. 8011008: 40020410 .word 0x40020410
  39797. 801100c: 40020428 .word 0x40020428
  39798. 8011010: 40020440 .word 0x40020440
  39799. 8011014: 40020458 .word 0x40020458
  39800. 8011018: 40020470 .word 0x40020470
  39801. 801101c: 40020488 .word 0x40020488
  39802. 8011020: 400204a0 .word 0x400204a0
  39803. 8011024: 400204b8 .word 0x400204b8
  39804. else
  39805. {
  39806. /* DMA mode not enabled */
  39807. /* Check received length : If all expected data are received, do nothing.
  39808. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */
  39809. uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount;
  39810. 8011028: 687b ldr r3, [r7, #4]
  39811. 801102a: f8b3 205c ldrh.w r2, [r3, #92] @ 0x5c
  39812. 801102e: 687b ldr r3, [r7, #4]
  39813. 8011030: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  39814. 8011034: b29b uxth r3, r3
  39815. 8011036: 1ad3 subs r3, r2, r3
  39816. 8011038: f8a7 30ce strh.w r3, [r7, #206] @ 0xce
  39817. if ((huart->RxXferCount > 0U)
  39818. 801103c: 687b ldr r3, [r7, #4]
  39819. 801103e: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  39820. 8011042: b29b uxth r3, r3
  39821. 8011044: 2b00 cmp r3, #0
  39822. 8011046: f000 80cf beq.w 80111e8 <HAL_UART_IRQHandler+0x764>
  39823. && (nb_rx_data > 0U))
  39824. 801104a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  39825. 801104e: 2b00 cmp r3, #0
  39826. 8011050: f000 80ca beq.w 80111e8 <HAL_UART_IRQHandler+0x764>
  39827. {
  39828. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  39829. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  39830. 8011054: 687b ldr r3, [r7, #4]
  39831. 8011056: 681b ldr r3, [r3, #0]
  39832. 8011058: 63bb str r3, [r7, #56] @ 0x38
  39833. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39834. 801105a: 6bbb ldr r3, [r7, #56] @ 0x38
  39835. 801105c: e853 3f00 ldrex r3, [r3]
  39836. 8011060: 637b str r3, [r7, #52] @ 0x34
  39837. return(result);
  39838. 8011062: 6b7b ldr r3, [r7, #52] @ 0x34
  39839. 8011064: f423 7390 bic.w r3, r3, #288 @ 0x120
  39840. 8011068: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
  39841. 801106c: 687b ldr r3, [r7, #4]
  39842. 801106e: 681b ldr r3, [r3, #0]
  39843. 8011070: 461a mov r2, r3
  39844. 8011072: f8d7 30c8 ldr.w r3, [r7, #200] @ 0xc8
  39845. 8011076: 647b str r3, [r7, #68] @ 0x44
  39846. 8011078: 643a str r2, [r7, #64] @ 0x40
  39847. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39848. 801107a: 6c39 ldr r1, [r7, #64] @ 0x40
  39849. 801107c: 6c7a ldr r2, [r7, #68] @ 0x44
  39850. 801107e: e841 2300 strex r3, r2, [r1]
  39851. 8011082: 63fb str r3, [r7, #60] @ 0x3c
  39852. return(result);
  39853. 8011084: 6bfb ldr r3, [r7, #60] @ 0x3c
  39854. 8011086: 2b00 cmp r3, #0
  39855. 8011088: d1e4 bne.n 8011054 <HAL_UART_IRQHandler+0x5d0>
  39856. /* Disable the UART Error Interrupt:(Frame error, noise error, overrun error) and RX FIFO Threshold interrupt */
  39857. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  39858. 801108a: 687b ldr r3, [r7, #4]
  39859. 801108c: 681b ldr r3, [r3, #0]
  39860. 801108e: 3308 adds r3, #8
  39861. 8011090: 627b str r3, [r7, #36] @ 0x24
  39862. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39863. 8011092: 6a7b ldr r3, [r7, #36] @ 0x24
  39864. 8011094: e853 3f00 ldrex r3, [r3]
  39865. 8011098: 623b str r3, [r7, #32]
  39866. return(result);
  39867. 801109a: 6a3a ldr r2, [r7, #32]
  39868. 801109c: 4b55 ldr r3, [pc, #340] @ (80111f4 <HAL_UART_IRQHandler+0x770>)
  39869. 801109e: 4013 ands r3, r2
  39870. 80110a0: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4
  39871. 80110a4: 687b ldr r3, [r7, #4]
  39872. 80110a6: 681b ldr r3, [r3, #0]
  39873. 80110a8: 3308 adds r3, #8
  39874. 80110aa: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4
  39875. 80110ae: 633a str r2, [r7, #48] @ 0x30
  39876. 80110b0: 62fb str r3, [r7, #44] @ 0x2c
  39877. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39878. 80110b2: 6af9 ldr r1, [r7, #44] @ 0x2c
  39879. 80110b4: 6b3a ldr r2, [r7, #48] @ 0x30
  39880. 80110b6: e841 2300 strex r3, r2, [r1]
  39881. 80110ba: 62bb str r3, [r7, #40] @ 0x28
  39882. return(result);
  39883. 80110bc: 6abb ldr r3, [r7, #40] @ 0x28
  39884. 80110be: 2b00 cmp r3, #0
  39885. 80110c0: d1e3 bne.n 801108a <HAL_UART_IRQHandler+0x606>
  39886. /* Rx process is completed, restore huart->RxState to Ready */
  39887. huart->RxState = HAL_UART_STATE_READY;
  39888. 80110c2: 687b ldr r3, [r7, #4]
  39889. 80110c4: 2220 movs r2, #32
  39890. 80110c6: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  39891. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  39892. 80110ca: 687b ldr r3, [r7, #4]
  39893. 80110cc: 2200 movs r2, #0
  39894. 80110ce: 66da str r2, [r3, #108] @ 0x6c
  39895. /* Clear RxISR function pointer */
  39896. huart->RxISR = NULL;
  39897. 80110d0: 687b ldr r3, [r7, #4]
  39898. 80110d2: 2200 movs r2, #0
  39899. 80110d4: 675a str r2, [r3, #116] @ 0x74
  39900. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  39901. 80110d6: 687b ldr r3, [r7, #4]
  39902. 80110d8: 681b ldr r3, [r3, #0]
  39903. 80110da: 613b str r3, [r7, #16]
  39904. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  39905. 80110dc: 693b ldr r3, [r7, #16]
  39906. 80110de: e853 3f00 ldrex r3, [r3]
  39907. 80110e2: 60fb str r3, [r7, #12]
  39908. return(result);
  39909. 80110e4: 68fb ldr r3, [r7, #12]
  39910. 80110e6: f023 0310 bic.w r3, r3, #16
  39911. 80110ea: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
  39912. 80110ee: 687b ldr r3, [r7, #4]
  39913. 80110f0: 681b ldr r3, [r3, #0]
  39914. 80110f2: 461a mov r2, r3
  39915. 80110f4: f8d7 30c0 ldr.w r3, [r7, #192] @ 0xc0
  39916. 80110f8: 61fb str r3, [r7, #28]
  39917. 80110fa: 61ba str r2, [r7, #24]
  39918. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  39919. 80110fc: 69b9 ldr r1, [r7, #24]
  39920. 80110fe: 69fa ldr r2, [r7, #28]
  39921. 8011100: e841 2300 strex r3, r2, [r1]
  39922. 8011104: 617b str r3, [r7, #20]
  39923. return(result);
  39924. 8011106: 697b ldr r3, [r7, #20]
  39925. 8011108: 2b00 cmp r3, #0
  39926. 801110a: d1e4 bne.n 80110d6 <HAL_UART_IRQHandler+0x652>
  39927. /* Initialize type of RxEvent that correspond to RxEvent callback execution;
  39928. In this case, Rx Event type is Idle Event */
  39929. huart->RxEventType = HAL_UART_RXEVENT_IDLE;
  39930. 801110c: 687b ldr r3, [r7, #4]
  39931. 801110e: 2202 movs r2, #2
  39932. 8011110: 671a str r2, [r3, #112] @ 0x70
  39933. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39934. /*Call registered Rx complete callback*/
  39935. huart->RxEventCallback(huart, nb_rx_data);
  39936. #else
  39937. /*Call legacy weak Rx Event callback*/
  39938. HAL_UARTEx_RxEventCallback(huart, nb_rx_data);
  39939. 8011112: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce
  39940. 8011116: 4619 mov r1, r3
  39941. 8011118: 6878 ldr r0, [r7, #4]
  39942. 801111a: f7f3 faa3 bl 8004664 <HAL_UARTEx_RxEventCallback>
  39943. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  39944. }
  39945. return;
  39946. 801111e: e063 b.n 80111e8 <HAL_UART_IRQHandler+0x764>
  39947. }
  39948. }
  39949. /* UART wakeup from Stop mode interrupt occurred ---------------------------*/
  39950. if (((isrflags & USART_ISR_WUF) != 0U) && ((cr3its & USART_CR3_WUFIE) != 0U))
  39951. 8011120: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39952. 8011124: f403 1380 and.w r3, r3, #1048576 @ 0x100000
  39953. 8011128: 2b00 cmp r3, #0
  39954. 801112a: d00e beq.n 801114a <HAL_UART_IRQHandler+0x6c6>
  39955. 801112c: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39956. 8011130: f403 0380 and.w r3, r3, #4194304 @ 0x400000
  39957. 8011134: 2b00 cmp r3, #0
  39958. 8011136: d008 beq.n 801114a <HAL_UART_IRQHandler+0x6c6>
  39959. {
  39960. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_WUF);
  39961. 8011138: 687b ldr r3, [r7, #4]
  39962. 801113a: 681b ldr r3, [r3, #0]
  39963. 801113c: f44f 1280 mov.w r2, #1048576 @ 0x100000
  39964. 8011140: 621a str r2, [r3, #32]
  39965. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  39966. /* Call registered Wakeup Callback */
  39967. huart->WakeupCallback(huart);
  39968. #else
  39969. /* Call legacy weak Wakeup Callback */
  39970. HAL_UARTEx_WakeupCallback(huart);
  39971. 8011142: 6878 ldr r0, [r7, #4]
  39972. 8011144: f002 f80c bl 8013160 <HAL_UARTEx_WakeupCallback>
  39973. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  39974. return;
  39975. 8011148: e051 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  39976. }
  39977. /* UART in mode Transmitter ------------------------------------------------*/
  39978. if (((isrflags & USART_ISR_TXE_TXFNF) != 0U)
  39979. 801114a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  39980. 801114e: f003 0380 and.w r3, r3, #128 @ 0x80
  39981. 8011152: 2b00 cmp r3, #0
  39982. 8011154: d014 beq.n 8011180 <HAL_UART_IRQHandler+0x6fc>
  39983. && (((cr1its & USART_CR1_TXEIE_TXFNFIE) != 0U)
  39984. 8011156: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  39985. 801115a: f003 0380 and.w r3, r3, #128 @ 0x80
  39986. 801115e: 2b00 cmp r3, #0
  39987. 8011160: d105 bne.n 801116e <HAL_UART_IRQHandler+0x6ea>
  39988. || ((cr3its & USART_CR3_TXFTIE) != 0U)))
  39989. 8011162: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc
  39990. 8011166: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  39991. 801116a: 2b00 cmp r3, #0
  39992. 801116c: d008 beq.n 8011180 <HAL_UART_IRQHandler+0x6fc>
  39993. {
  39994. if (huart->TxISR != NULL)
  39995. 801116e: 687b ldr r3, [r7, #4]
  39996. 8011170: 6f9b ldr r3, [r3, #120] @ 0x78
  39997. 8011172: 2b00 cmp r3, #0
  39998. 8011174: d03a beq.n 80111ec <HAL_UART_IRQHandler+0x768>
  39999. {
  40000. huart->TxISR(huart);
  40001. 8011176: 687b ldr r3, [r7, #4]
  40002. 8011178: 6f9b ldr r3, [r3, #120] @ 0x78
  40003. 801117a: 6878 ldr r0, [r7, #4]
  40004. 801117c: 4798 blx r3
  40005. }
  40006. return;
  40007. 801117e: e035 b.n 80111ec <HAL_UART_IRQHandler+0x768>
  40008. }
  40009. /* UART in mode Transmitter (transmission end) -----------------------------*/
  40010. if (((isrflags & USART_ISR_TC) != 0U) && ((cr1its & USART_CR1_TCIE) != 0U))
  40011. 8011180: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40012. 8011184: f003 0340 and.w r3, r3, #64 @ 0x40
  40013. 8011188: 2b00 cmp r3, #0
  40014. 801118a: d009 beq.n 80111a0 <HAL_UART_IRQHandler+0x71c>
  40015. 801118c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40016. 8011190: f003 0340 and.w r3, r3, #64 @ 0x40
  40017. 8011194: 2b00 cmp r3, #0
  40018. 8011196: d003 beq.n 80111a0 <HAL_UART_IRQHandler+0x71c>
  40019. {
  40020. UART_EndTransmit_IT(huart);
  40021. 8011198: 6878 ldr r0, [r7, #4]
  40022. 801119a: f001 fa99 bl 80126d0 <UART_EndTransmit_IT>
  40023. return;
  40024. 801119e: e026 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40025. }
  40026. /* UART TX Fifo Empty occurred ----------------------------------------------*/
  40027. if (((isrflags & USART_ISR_TXFE) != 0U) && ((cr1its & USART_CR1_TXFEIE) != 0U))
  40028. 80111a0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40029. 80111a4: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  40030. 80111a8: 2b00 cmp r3, #0
  40031. 80111aa: d009 beq.n 80111c0 <HAL_UART_IRQHandler+0x73c>
  40032. 80111ac: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40033. 80111b0: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
  40034. 80111b4: 2b00 cmp r3, #0
  40035. 80111b6: d003 beq.n 80111c0 <HAL_UART_IRQHandler+0x73c>
  40036. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40037. /* Call registered Tx Fifo Empty Callback */
  40038. huart->TxFifoEmptyCallback(huart);
  40039. #else
  40040. /* Call legacy weak Tx Fifo Empty Callback */
  40041. HAL_UARTEx_TxFifoEmptyCallback(huart);
  40042. 80111b8: 6878 ldr r0, [r7, #4]
  40043. 80111ba: f001 ffe5 bl 8013188 <HAL_UARTEx_TxFifoEmptyCallback>
  40044. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40045. return;
  40046. 80111be: e016 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40047. }
  40048. /* UART RX Fifo Full occurred ----------------------------------------------*/
  40049. if (((isrflags & USART_ISR_RXFF) != 0U) && ((cr1its & USART_CR1_RXFFIE) != 0U))
  40050. 80111c0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4
  40051. 80111c4: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
  40052. 80111c8: 2b00 cmp r3, #0
  40053. 80111ca: d010 beq.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40054. 80111cc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0
  40055. 80111d0: 2b00 cmp r3, #0
  40056. 80111d2: da0c bge.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40057. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  40058. /* Call registered Rx Fifo Full Callback */
  40059. huart->RxFifoFullCallback(huart);
  40060. #else
  40061. /* Call legacy weak Rx Fifo Full Callback */
  40062. HAL_UARTEx_RxFifoFullCallback(huart);
  40063. 80111d4: 6878 ldr r0, [r7, #4]
  40064. 80111d6: f001 ffcd bl 8013174 <HAL_UARTEx_RxFifoFullCallback>
  40065. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  40066. return;
  40067. 80111da: e008 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40068. return;
  40069. 80111dc: bf00 nop
  40070. 80111de: e006 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40071. return;
  40072. 80111e0: bf00 nop
  40073. 80111e2: e004 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40074. return;
  40075. 80111e4: bf00 nop
  40076. 80111e6: e002 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40077. return;
  40078. 80111e8: bf00 nop
  40079. 80111ea: e000 b.n 80111ee <HAL_UART_IRQHandler+0x76a>
  40080. return;
  40081. 80111ec: bf00 nop
  40082. }
  40083. }
  40084. 80111ee: 37e8 adds r7, #232 @ 0xe8
  40085. 80111f0: 46bd mov sp, r7
  40086. 80111f2: bd80 pop {r7, pc}
  40087. 80111f4: effffffe .word 0xeffffffe
  40088. 080111f8 <HAL_UART_ErrorCallback>:
  40089. * @brief UART error callback.
  40090. * @param huart UART handle.
  40091. * @retval None
  40092. */
  40093. __weak void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart)
  40094. {
  40095. 80111f8: b480 push {r7}
  40096. 80111fa: b083 sub sp, #12
  40097. 80111fc: af00 add r7, sp, #0
  40098. 80111fe: 6078 str r0, [r7, #4]
  40099. UNUSED(huart);
  40100. /* NOTE : This function should not be modified, when the callback is needed,
  40101. the HAL_UART_ErrorCallback can be implemented in the user file.
  40102. */
  40103. }
  40104. 8011200: bf00 nop
  40105. 8011202: 370c adds r7, #12
  40106. 8011204: 46bd mov sp, r7
  40107. 8011206: f85d 7b04 ldr.w r7, [sp], #4
  40108. 801120a: 4770 bx lr
  40109. 0801120c <UART_SetConfig>:
  40110. * @brief Configure the UART peripheral.
  40111. * @param huart UART handle.
  40112. * @retval HAL status
  40113. */
  40114. HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
  40115. {
  40116. 801120c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
  40117. 8011210: b092 sub sp, #72 @ 0x48
  40118. 8011212: af00 add r7, sp, #0
  40119. 8011214: 6178 str r0, [r7, #20]
  40120. uint32_t tmpreg;
  40121. uint16_t brrtemp;
  40122. UART_ClockSourceTypeDef clocksource;
  40123. uint32_t usartdiv;
  40124. HAL_StatusTypeDef ret = HAL_OK;
  40125. 8011216: 2300 movs r3, #0
  40126. 8011218: f887 3042 strb.w r3, [r7, #66] @ 0x42
  40127. * the UART Word Length, Parity, Mode and oversampling:
  40128. * set the M bits according to huart->Init.WordLength value
  40129. * set PCE and PS bits according to huart->Init.Parity value
  40130. * set TE and RE bits according to huart->Init.Mode value
  40131. * set OVER8 bit according to huart->Init.OverSampling value */
  40132. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ;
  40133. 801121c: 697b ldr r3, [r7, #20]
  40134. 801121e: 689a ldr r2, [r3, #8]
  40135. 8011220: 697b ldr r3, [r7, #20]
  40136. 8011222: 691b ldr r3, [r3, #16]
  40137. 8011224: 431a orrs r2, r3
  40138. 8011226: 697b ldr r3, [r7, #20]
  40139. 8011228: 695b ldr r3, [r3, #20]
  40140. 801122a: 431a orrs r2, r3
  40141. 801122c: 697b ldr r3, [r7, #20]
  40142. 801122e: 69db ldr r3, [r3, #28]
  40143. 8011230: 4313 orrs r3, r2
  40144. 8011232: 647b str r3, [r7, #68] @ 0x44
  40145. MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
  40146. 8011234: 697b ldr r3, [r7, #20]
  40147. 8011236: 681b ldr r3, [r3, #0]
  40148. 8011238: 681a ldr r2, [r3, #0]
  40149. 801123a: 4bbe ldr r3, [pc, #760] @ (8011534 <UART_SetConfig+0x328>)
  40150. 801123c: 4013 ands r3, r2
  40151. 801123e: 697a ldr r2, [r7, #20]
  40152. 8011240: 6812 ldr r2, [r2, #0]
  40153. 8011242: 6c79 ldr r1, [r7, #68] @ 0x44
  40154. 8011244: 430b orrs r3, r1
  40155. 8011246: 6013 str r3, [r2, #0]
  40156. /*-------------------------- USART CR2 Configuration -----------------------*/
  40157. /* Configure the UART Stop Bits: Set STOP[13:12] bits according
  40158. * to huart->Init.StopBits value */
  40159. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  40160. 8011248: 697b ldr r3, [r7, #20]
  40161. 801124a: 681b ldr r3, [r3, #0]
  40162. 801124c: 685b ldr r3, [r3, #4]
  40163. 801124e: f423 5140 bic.w r1, r3, #12288 @ 0x3000
  40164. 8011252: 697b ldr r3, [r7, #20]
  40165. 8011254: 68da ldr r2, [r3, #12]
  40166. 8011256: 697b ldr r3, [r7, #20]
  40167. 8011258: 681b ldr r3, [r3, #0]
  40168. 801125a: 430a orrs r2, r1
  40169. 801125c: 605a str r2, [r3, #4]
  40170. /* Configure
  40171. * - UART HardWare Flow Control: set CTSE and RTSE bits according
  40172. * to huart->Init.HwFlowCtl value
  40173. * - one-bit sampling method versus three samples' majority rule according
  40174. * to huart->Init.OneBitSampling (not applicable to LPUART) */
  40175. tmpreg = (uint32_t)huart->Init.HwFlowCtl;
  40176. 801125e: 697b ldr r3, [r7, #20]
  40177. 8011260: 699b ldr r3, [r3, #24]
  40178. 8011262: 647b str r3, [r7, #68] @ 0x44
  40179. if (!(UART_INSTANCE_LOWPOWER(huart)))
  40180. 8011264: 697b ldr r3, [r7, #20]
  40181. 8011266: 681b ldr r3, [r3, #0]
  40182. 8011268: 4ab3 ldr r2, [pc, #716] @ (8011538 <UART_SetConfig+0x32c>)
  40183. 801126a: 4293 cmp r3, r2
  40184. 801126c: d004 beq.n 8011278 <UART_SetConfig+0x6c>
  40185. {
  40186. tmpreg |= huart->Init.OneBitSampling;
  40187. 801126e: 697b ldr r3, [r7, #20]
  40188. 8011270: 6a1b ldr r3, [r3, #32]
  40189. 8011272: 6c7a ldr r2, [r7, #68] @ 0x44
  40190. 8011274: 4313 orrs r3, r2
  40191. 8011276: 647b str r3, [r7, #68] @ 0x44
  40192. }
  40193. MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
  40194. 8011278: 697b ldr r3, [r7, #20]
  40195. 801127a: 681b ldr r3, [r3, #0]
  40196. 801127c: 689a ldr r2, [r3, #8]
  40197. 801127e: 4baf ldr r3, [pc, #700] @ (801153c <UART_SetConfig+0x330>)
  40198. 8011280: 4013 ands r3, r2
  40199. 8011282: 697a ldr r2, [r7, #20]
  40200. 8011284: 6812 ldr r2, [r2, #0]
  40201. 8011286: 6c79 ldr r1, [r7, #68] @ 0x44
  40202. 8011288: 430b orrs r3, r1
  40203. 801128a: 6093 str r3, [r2, #8]
  40204. /*-------------------------- USART PRESC Configuration -----------------------*/
  40205. /* Configure
  40206. * - UART Clock Prescaler : set PRESCALER according to huart->Init.ClockPrescaler value */
  40207. MODIFY_REG(huart->Instance->PRESC, USART_PRESC_PRESCALER, huart->Init.ClockPrescaler);
  40208. 801128c: 697b ldr r3, [r7, #20]
  40209. 801128e: 681b ldr r3, [r3, #0]
  40210. 8011290: 6adb ldr r3, [r3, #44] @ 0x2c
  40211. 8011292: f023 010f bic.w r1, r3, #15
  40212. 8011296: 697b ldr r3, [r7, #20]
  40213. 8011298: 6a5a ldr r2, [r3, #36] @ 0x24
  40214. 801129a: 697b ldr r3, [r7, #20]
  40215. 801129c: 681b ldr r3, [r3, #0]
  40216. 801129e: 430a orrs r2, r1
  40217. 80112a0: 62da str r2, [r3, #44] @ 0x2c
  40218. /*-------------------------- USART BRR Configuration -----------------------*/
  40219. UART_GETCLOCKSOURCE(huart, clocksource);
  40220. 80112a2: 697b ldr r3, [r7, #20]
  40221. 80112a4: 681b ldr r3, [r3, #0]
  40222. 80112a6: 4aa6 ldr r2, [pc, #664] @ (8011540 <UART_SetConfig+0x334>)
  40223. 80112a8: 4293 cmp r3, r2
  40224. 80112aa: d177 bne.n 801139c <UART_SetConfig+0x190>
  40225. 80112ac: 4ba5 ldr r3, [pc, #660] @ (8011544 <UART_SetConfig+0x338>)
  40226. 80112ae: 6d5b ldr r3, [r3, #84] @ 0x54
  40227. 80112b0: f003 0338 and.w r3, r3, #56 @ 0x38
  40228. 80112b4: 2b28 cmp r3, #40 @ 0x28
  40229. 80112b6: d86d bhi.n 8011394 <UART_SetConfig+0x188>
  40230. 80112b8: a201 add r2, pc, #4 @ (adr r2, 80112c0 <UART_SetConfig+0xb4>)
  40231. 80112ba: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40232. 80112be: bf00 nop
  40233. 80112c0: 08011365 .word 0x08011365
  40234. 80112c4: 08011395 .word 0x08011395
  40235. 80112c8: 08011395 .word 0x08011395
  40236. 80112cc: 08011395 .word 0x08011395
  40237. 80112d0: 08011395 .word 0x08011395
  40238. 80112d4: 08011395 .word 0x08011395
  40239. 80112d8: 08011395 .word 0x08011395
  40240. 80112dc: 08011395 .word 0x08011395
  40241. 80112e0: 0801136d .word 0x0801136d
  40242. 80112e4: 08011395 .word 0x08011395
  40243. 80112e8: 08011395 .word 0x08011395
  40244. 80112ec: 08011395 .word 0x08011395
  40245. 80112f0: 08011395 .word 0x08011395
  40246. 80112f4: 08011395 .word 0x08011395
  40247. 80112f8: 08011395 .word 0x08011395
  40248. 80112fc: 08011395 .word 0x08011395
  40249. 8011300: 08011375 .word 0x08011375
  40250. 8011304: 08011395 .word 0x08011395
  40251. 8011308: 08011395 .word 0x08011395
  40252. 801130c: 08011395 .word 0x08011395
  40253. 8011310: 08011395 .word 0x08011395
  40254. 8011314: 08011395 .word 0x08011395
  40255. 8011318: 08011395 .word 0x08011395
  40256. 801131c: 08011395 .word 0x08011395
  40257. 8011320: 0801137d .word 0x0801137d
  40258. 8011324: 08011395 .word 0x08011395
  40259. 8011328: 08011395 .word 0x08011395
  40260. 801132c: 08011395 .word 0x08011395
  40261. 8011330: 08011395 .word 0x08011395
  40262. 8011334: 08011395 .word 0x08011395
  40263. 8011338: 08011395 .word 0x08011395
  40264. 801133c: 08011395 .word 0x08011395
  40265. 8011340: 08011385 .word 0x08011385
  40266. 8011344: 08011395 .word 0x08011395
  40267. 8011348: 08011395 .word 0x08011395
  40268. 801134c: 08011395 .word 0x08011395
  40269. 8011350: 08011395 .word 0x08011395
  40270. 8011354: 08011395 .word 0x08011395
  40271. 8011358: 08011395 .word 0x08011395
  40272. 801135c: 08011395 .word 0x08011395
  40273. 8011360: 0801138d .word 0x0801138d
  40274. 8011364: 2301 movs r3, #1
  40275. 8011366: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40276. 801136a: e222 b.n 80117b2 <UART_SetConfig+0x5a6>
  40277. 801136c: 2304 movs r3, #4
  40278. 801136e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40279. 8011372: e21e b.n 80117b2 <UART_SetConfig+0x5a6>
  40280. 8011374: 2308 movs r3, #8
  40281. 8011376: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40282. 801137a: e21a b.n 80117b2 <UART_SetConfig+0x5a6>
  40283. 801137c: 2310 movs r3, #16
  40284. 801137e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40285. 8011382: e216 b.n 80117b2 <UART_SetConfig+0x5a6>
  40286. 8011384: 2320 movs r3, #32
  40287. 8011386: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40288. 801138a: e212 b.n 80117b2 <UART_SetConfig+0x5a6>
  40289. 801138c: 2340 movs r3, #64 @ 0x40
  40290. 801138e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40291. 8011392: e20e b.n 80117b2 <UART_SetConfig+0x5a6>
  40292. 8011394: 2380 movs r3, #128 @ 0x80
  40293. 8011396: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40294. 801139a: e20a b.n 80117b2 <UART_SetConfig+0x5a6>
  40295. 801139c: 697b ldr r3, [r7, #20]
  40296. 801139e: 681b ldr r3, [r3, #0]
  40297. 80113a0: 4a69 ldr r2, [pc, #420] @ (8011548 <UART_SetConfig+0x33c>)
  40298. 80113a2: 4293 cmp r3, r2
  40299. 80113a4: d130 bne.n 8011408 <UART_SetConfig+0x1fc>
  40300. 80113a6: 4b67 ldr r3, [pc, #412] @ (8011544 <UART_SetConfig+0x338>)
  40301. 80113a8: 6d5b ldr r3, [r3, #84] @ 0x54
  40302. 80113aa: f003 0307 and.w r3, r3, #7
  40303. 80113ae: 2b05 cmp r3, #5
  40304. 80113b0: d826 bhi.n 8011400 <UART_SetConfig+0x1f4>
  40305. 80113b2: a201 add r2, pc, #4 @ (adr r2, 80113b8 <UART_SetConfig+0x1ac>)
  40306. 80113b4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40307. 80113b8: 080113d1 .word 0x080113d1
  40308. 80113bc: 080113d9 .word 0x080113d9
  40309. 80113c0: 080113e1 .word 0x080113e1
  40310. 80113c4: 080113e9 .word 0x080113e9
  40311. 80113c8: 080113f1 .word 0x080113f1
  40312. 80113cc: 080113f9 .word 0x080113f9
  40313. 80113d0: 2300 movs r3, #0
  40314. 80113d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40315. 80113d6: e1ec b.n 80117b2 <UART_SetConfig+0x5a6>
  40316. 80113d8: 2304 movs r3, #4
  40317. 80113da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40318. 80113de: e1e8 b.n 80117b2 <UART_SetConfig+0x5a6>
  40319. 80113e0: 2308 movs r3, #8
  40320. 80113e2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40321. 80113e6: e1e4 b.n 80117b2 <UART_SetConfig+0x5a6>
  40322. 80113e8: 2310 movs r3, #16
  40323. 80113ea: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40324. 80113ee: e1e0 b.n 80117b2 <UART_SetConfig+0x5a6>
  40325. 80113f0: 2320 movs r3, #32
  40326. 80113f2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40327. 80113f6: e1dc b.n 80117b2 <UART_SetConfig+0x5a6>
  40328. 80113f8: 2340 movs r3, #64 @ 0x40
  40329. 80113fa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40330. 80113fe: e1d8 b.n 80117b2 <UART_SetConfig+0x5a6>
  40331. 8011400: 2380 movs r3, #128 @ 0x80
  40332. 8011402: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40333. 8011406: e1d4 b.n 80117b2 <UART_SetConfig+0x5a6>
  40334. 8011408: 697b ldr r3, [r7, #20]
  40335. 801140a: 681b ldr r3, [r3, #0]
  40336. 801140c: 4a4f ldr r2, [pc, #316] @ (801154c <UART_SetConfig+0x340>)
  40337. 801140e: 4293 cmp r3, r2
  40338. 8011410: d130 bne.n 8011474 <UART_SetConfig+0x268>
  40339. 8011412: 4b4c ldr r3, [pc, #304] @ (8011544 <UART_SetConfig+0x338>)
  40340. 8011414: 6d5b ldr r3, [r3, #84] @ 0x54
  40341. 8011416: f003 0307 and.w r3, r3, #7
  40342. 801141a: 2b05 cmp r3, #5
  40343. 801141c: d826 bhi.n 801146c <UART_SetConfig+0x260>
  40344. 801141e: a201 add r2, pc, #4 @ (adr r2, 8011424 <UART_SetConfig+0x218>)
  40345. 8011420: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40346. 8011424: 0801143d .word 0x0801143d
  40347. 8011428: 08011445 .word 0x08011445
  40348. 801142c: 0801144d .word 0x0801144d
  40349. 8011430: 08011455 .word 0x08011455
  40350. 8011434: 0801145d .word 0x0801145d
  40351. 8011438: 08011465 .word 0x08011465
  40352. 801143c: 2300 movs r3, #0
  40353. 801143e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40354. 8011442: e1b6 b.n 80117b2 <UART_SetConfig+0x5a6>
  40355. 8011444: 2304 movs r3, #4
  40356. 8011446: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40357. 801144a: e1b2 b.n 80117b2 <UART_SetConfig+0x5a6>
  40358. 801144c: 2308 movs r3, #8
  40359. 801144e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40360. 8011452: e1ae b.n 80117b2 <UART_SetConfig+0x5a6>
  40361. 8011454: 2310 movs r3, #16
  40362. 8011456: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40363. 801145a: e1aa b.n 80117b2 <UART_SetConfig+0x5a6>
  40364. 801145c: 2320 movs r3, #32
  40365. 801145e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40366. 8011462: e1a6 b.n 80117b2 <UART_SetConfig+0x5a6>
  40367. 8011464: 2340 movs r3, #64 @ 0x40
  40368. 8011466: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40369. 801146a: e1a2 b.n 80117b2 <UART_SetConfig+0x5a6>
  40370. 801146c: 2380 movs r3, #128 @ 0x80
  40371. 801146e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40372. 8011472: e19e b.n 80117b2 <UART_SetConfig+0x5a6>
  40373. 8011474: 697b ldr r3, [r7, #20]
  40374. 8011476: 681b ldr r3, [r3, #0]
  40375. 8011478: 4a35 ldr r2, [pc, #212] @ (8011550 <UART_SetConfig+0x344>)
  40376. 801147a: 4293 cmp r3, r2
  40377. 801147c: d130 bne.n 80114e0 <UART_SetConfig+0x2d4>
  40378. 801147e: 4b31 ldr r3, [pc, #196] @ (8011544 <UART_SetConfig+0x338>)
  40379. 8011480: 6d5b ldr r3, [r3, #84] @ 0x54
  40380. 8011482: f003 0307 and.w r3, r3, #7
  40381. 8011486: 2b05 cmp r3, #5
  40382. 8011488: d826 bhi.n 80114d8 <UART_SetConfig+0x2cc>
  40383. 801148a: a201 add r2, pc, #4 @ (adr r2, 8011490 <UART_SetConfig+0x284>)
  40384. 801148c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40385. 8011490: 080114a9 .word 0x080114a9
  40386. 8011494: 080114b1 .word 0x080114b1
  40387. 8011498: 080114b9 .word 0x080114b9
  40388. 801149c: 080114c1 .word 0x080114c1
  40389. 80114a0: 080114c9 .word 0x080114c9
  40390. 80114a4: 080114d1 .word 0x080114d1
  40391. 80114a8: 2300 movs r3, #0
  40392. 80114aa: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40393. 80114ae: e180 b.n 80117b2 <UART_SetConfig+0x5a6>
  40394. 80114b0: 2304 movs r3, #4
  40395. 80114b2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40396. 80114b6: e17c b.n 80117b2 <UART_SetConfig+0x5a6>
  40397. 80114b8: 2308 movs r3, #8
  40398. 80114ba: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40399. 80114be: e178 b.n 80117b2 <UART_SetConfig+0x5a6>
  40400. 80114c0: 2310 movs r3, #16
  40401. 80114c2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40402. 80114c6: e174 b.n 80117b2 <UART_SetConfig+0x5a6>
  40403. 80114c8: 2320 movs r3, #32
  40404. 80114ca: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40405. 80114ce: e170 b.n 80117b2 <UART_SetConfig+0x5a6>
  40406. 80114d0: 2340 movs r3, #64 @ 0x40
  40407. 80114d2: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40408. 80114d6: e16c b.n 80117b2 <UART_SetConfig+0x5a6>
  40409. 80114d8: 2380 movs r3, #128 @ 0x80
  40410. 80114da: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40411. 80114de: e168 b.n 80117b2 <UART_SetConfig+0x5a6>
  40412. 80114e0: 697b ldr r3, [r7, #20]
  40413. 80114e2: 681b ldr r3, [r3, #0]
  40414. 80114e4: 4a1b ldr r2, [pc, #108] @ (8011554 <UART_SetConfig+0x348>)
  40415. 80114e6: 4293 cmp r3, r2
  40416. 80114e8: d142 bne.n 8011570 <UART_SetConfig+0x364>
  40417. 80114ea: 4b16 ldr r3, [pc, #88] @ (8011544 <UART_SetConfig+0x338>)
  40418. 80114ec: 6d5b ldr r3, [r3, #84] @ 0x54
  40419. 80114ee: f003 0307 and.w r3, r3, #7
  40420. 80114f2: 2b05 cmp r3, #5
  40421. 80114f4: d838 bhi.n 8011568 <UART_SetConfig+0x35c>
  40422. 80114f6: a201 add r2, pc, #4 @ (adr r2, 80114fc <UART_SetConfig+0x2f0>)
  40423. 80114f8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40424. 80114fc: 08011515 .word 0x08011515
  40425. 8011500: 0801151d .word 0x0801151d
  40426. 8011504: 08011525 .word 0x08011525
  40427. 8011508: 0801152d .word 0x0801152d
  40428. 801150c: 08011559 .word 0x08011559
  40429. 8011510: 08011561 .word 0x08011561
  40430. 8011514: 2300 movs r3, #0
  40431. 8011516: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40432. 801151a: e14a b.n 80117b2 <UART_SetConfig+0x5a6>
  40433. 801151c: 2304 movs r3, #4
  40434. 801151e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40435. 8011522: e146 b.n 80117b2 <UART_SetConfig+0x5a6>
  40436. 8011524: 2308 movs r3, #8
  40437. 8011526: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40438. 801152a: e142 b.n 80117b2 <UART_SetConfig+0x5a6>
  40439. 801152c: 2310 movs r3, #16
  40440. 801152e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40441. 8011532: e13e b.n 80117b2 <UART_SetConfig+0x5a6>
  40442. 8011534: cfff69f3 .word 0xcfff69f3
  40443. 8011538: 58000c00 .word 0x58000c00
  40444. 801153c: 11fff4ff .word 0x11fff4ff
  40445. 8011540: 40011000 .word 0x40011000
  40446. 8011544: 58024400 .word 0x58024400
  40447. 8011548: 40004400 .word 0x40004400
  40448. 801154c: 40004800 .word 0x40004800
  40449. 8011550: 40004c00 .word 0x40004c00
  40450. 8011554: 40005000 .word 0x40005000
  40451. 8011558: 2320 movs r3, #32
  40452. 801155a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40453. 801155e: e128 b.n 80117b2 <UART_SetConfig+0x5a6>
  40454. 8011560: 2340 movs r3, #64 @ 0x40
  40455. 8011562: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40456. 8011566: e124 b.n 80117b2 <UART_SetConfig+0x5a6>
  40457. 8011568: 2380 movs r3, #128 @ 0x80
  40458. 801156a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40459. 801156e: e120 b.n 80117b2 <UART_SetConfig+0x5a6>
  40460. 8011570: 697b ldr r3, [r7, #20]
  40461. 8011572: 681b ldr r3, [r3, #0]
  40462. 8011574: 4acb ldr r2, [pc, #812] @ (80118a4 <UART_SetConfig+0x698>)
  40463. 8011576: 4293 cmp r3, r2
  40464. 8011578: d176 bne.n 8011668 <UART_SetConfig+0x45c>
  40465. 801157a: 4bcb ldr r3, [pc, #812] @ (80118a8 <UART_SetConfig+0x69c>)
  40466. 801157c: 6d5b ldr r3, [r3, #84] @ 0x54
  40467. 801157e: f003 0338 and.w r3, r3, #56 @ 0x38
  40468. 8011582: 2b28 cmp r3, #40 @ 0x28
  40469. 8011584: d86c bhi.n 8011660 <UART_SetConfig+0x454>
  40470. 8011586: a201 add r2, pc, #4 @ (adr r2, 801158c <UART_SetConfig+0x380>)
  40471. 8011588: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40472. 801158c: 08011631 .word 0x08011631
  40473. 8011590: 08011661 .word 0x08011661
  40474. 8011594: 08011661 .word 0x08011661
  40475. 8011598: 08011661 .word 0x08011661
  40476. 801159c: 08011661 .word 0x08011661
  40477. 80115a0: 08011661 .word 0x08011661
  40478. 80115a4: 08011661 .word 0x08011661
  40479. 80115a8: 08011661 .word 0x08011661
  40480. 80115ac: 08011639 .word 0x08011639
  40481. 80115b0: 08011661 .word 0x08011661
  40482. 80115b4: 08011661 .word 0x08011661
  40483. 80115b8: 08011661 .word 0x08011661
  40484. 80115bc: 08011661 .word 0x08011661
  40485. 80115c0: 08011661 .word 0x08011661
  40486. 80115c4: 08011661 .word 0x08011661
  40487. 80115c8: 08011661 .word 0x08011661
  40488. 80115cc: 08011641 .word 0x08011641
  40489. 80115d0: 08011661 .word 0x08011661
  40490. 80115d4: 08011661 .word 0x08011661
  40491. 80115d8: 08011661 .word 0x08011661
  40492. 80115dc: 08011661 .word 0x08011661
  40493. 80115e0: 08011661 .word 0x08011661
  40494. 80115e4: 08011661 .word 0x08011661
  40495. 80115e8: 08011661 .word 0x08011661
  40496. 80115ec: 08011649 .word 0x08011649
  40497. 80115f0: 08011661 .word 0x08011661
  40498. 80115f4: 08011661 .word 0x08011661
  40499. 80115f8: 08011661 .word 0x08011661
  40500. 80115fc: 08011661 .word 0x08011661
  40501. 8011600: 08011661 .word 0x08011661
  40502. 8011604: 08011661 .word 0x08011661
  40503. 8011608: 08011661 .word 0x08011661
  40504. 801160c: 08011651 .word 0x08011651
  40505. 8011610: 08011661 .word 0x08011661
  40506. 8011614: 08011661 .word 0x08011661
  40507. 8011618: 08011661 .word 0x08011661
  40508. 801161c: 08011661 .word 0x08011661
  40509. 8011620: 08011661 .word 0x08011661
  40510. 8011624: 08011661 .word 0x08011661
  40511. 8011628: 08011661 .word 0x08011661
  40512. 801162c: 08011659 .word 0x08011659
  40513. 8011630: 2301 movs r3, #1
  40514. 8011632: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40515. 8011636: e0bc b.n 80117b2 <UART_SetConfig+0x5a6>
  40516. 8011638: 2304 movs r3, #4
  40517. 801163a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40518. 801163e: e0b8 b.n 80117b2 <UART_SetConfig+0x5a6>
  40519. 8011640: 2308 movs r3, #8
  40520. 8011642: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40521. 8011646: e0b4 b.n 80117b2 <UART_SetConfig+0x5a6>
  40522. 8011648: 2310 movs r3, #16
  40523. 801164a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40524. 801164e: e0b0 b.n 80117b2 <UART_SetConfig+0x5a6>
  40525. 8011650: 2320 movs r3, #32
  40526. 8011652: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40527. 8011656: e0ac b.n 80117b2 <UART_SetConfig+0x5a6>
  40528. 8011658: 2340 movs r3, #64 @ 0x40
  40529. 801165a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40530. 801165e: e0a8 b.n 80117b2 <UART_SetConfig+0x5a6>
  40531. 8011660: 2380 movs r3, #128 @ 0x80
  40532. 8011662: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40533. 8011666: e0a4 b.n 80117b2 <UART_SetConfig+0x5a6>
  40534. 8011668: 697b ldr r3, [r7, #20]
  40535. 801166a: 681b ldr r3, [r3, #0]
  40536. 801166c: 4a8f ldr r2, [pc, #572] @ (80118ac <UART_SetConfig+0x6a0>)
  40537. 801166e: 4293 cmp r3, r2
  40538. 8011670: d130 bne.n 80116d4 <UART_SetConfig+0x4c8>
  40539. 8011672: 4b8d ldr r3, [pc, #564] @ (80118a8 <UART_SetConfig+0x69c>)
  40540. 8011674: 6d5b ldr r3, [r3, #84] @ 0x54
  40541. 8011676: f003 0307 and.w r3, r3, #7
  40542. 801167a: 2b05 cmp r3, #5
  40543. 801167c: d826 bhi.n 80116cc <UART_SetConfig+0x4c0>
  40544. 801167e: a201 add r2, pc, #4 @ (adr r2, 8011684 <UART_SetConfig+0x478>)
  40545. 8011680: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40546. 8011684: 0801169d .word 0x0801169d
  40547. 8011688: 080116a5 .word 0x080116a5
  40548. 801168c: 080116ad .word 0x080116ad
  40549. 8011690: 080116b5 .word 0x080116b5
  40550. 8011694: 080116bd .word 0x080116bd
  40551. 8011698: 080116c5 .word 0x080116c5
  40552. 801169c: 2300 movs r3, #0
  40553. 801169e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40554. 80116a2: e086 b.n 80117b2 <UART_SetConfig+0x5a6>
  40555. 80116a4: 2304 movs r3, #4
  40556. 80116a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40557. 80116aa: e082 b.n 80117b2 <UART_SetConfig+0x5a6>
  40558. 80116ac: 2308 movs r3, #8
  40559. 80116ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40560. 80116b2: e07e b.n 80117b2 <UART_SetConfig+0x5a6>
  40561. 80116b4: 2310 movs r3, #16
  40562. 80116b6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40563. 80116ba: e07a b.n 80117b2 <UART_SetConfig+0x5a6>
  40564. 80116bc: 2320 movs r3, #32
  40565. 80116be: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40566. 80116c2: e076 b.n 80117b2 <UART_SetConfig+0x5a6>
  40567. 80116c4: 2340 movs r3, #64 @ 0x40
  40568. 80116c6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40569. 80116ca: e072 b.n 80117b2 <UART_SetConfig+0x5a6>
  40570. 80116cc: 2380 movs r3, #128 @ 0x80
  40571. 80116ce: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40572. 80116d2: e06e b.n 80117b2 <UART_SetConfig+0x5a6>
  40573. 80116d4: 697b ldr r3, [r7, #20]
  40574. 80116d6: 681b ldr r3, [r3, #0]
  40575. 80116d8: 4a75 ldr r2, [pc, #468] @ (80118b0 <UART_SetConfig+0x6a4>)
  40576. 80116da: 4293 cmp r3, r2
  40577. 80116dc: d130 bne.n 8011740 <UART_SetConfig+0x534>
  40578. 80116de: 4b72 ldr r3, [pc, #456] @ (80118a8 <UART_SetConfig+0x69c>)
  40579. 80116e0: 6d5b ldr r3, [r3, #84] @ 0x54
  40580. 80116e2: f003 0307 and.w r3, r3, #7
  40581. 80116e6: 2b05 cmp r3, #5
  40582. 80116e8: d826 bhi.n 8011738 <UART_SetConfig+0x52c>
  40583. 80116ea: a201 add r2, pc, #4 @ (adr r2, 80116f0 <UART_SetConfig+0x4e4>)
  40584. 80116ec: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40585. 80116f0: 08011709 .word 0x08011709
  40586. 80116f4: 08011711 .word 0x08011711
  40587. 80116f8: 08011719 .word 0x08011719
  40588. 80116fc: 08011721 .word 0x08011721
  40589. 8011700: 08011729 .word 0x08011729
  40590. 8011704: 08011731 .word 0x08011731
  40591. 8011708: 2300 movs r3, #0
  40592. 801170a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40593. 801170e: e050 b.n 80117b2 <UART_SetConfig+0x5a6>
  40594. 8011710: 2304 movs r3, #4
  40595. 8011712: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40596. 8011716: e04c b.n 80117b2 <UART_SetConfig+0x5a6>
  40597. 8011718: 2308 movs r3, #8
  40598. 801171a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40599. 801171e: e048 b.n 80117b2 <UART_SetConfig+0x5a6>
  40600. 8011720: 2310 movs r3, #16
  40601. 8011722: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40602. 8011726: e044 b.n 80117b2 <UART_SetConfig+0x5a6>
  40603. 8011728: 2320 movs r3, #32
  40604. 801172a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40605. 801172e: e040 b.n 80117b2 <UART_SetConfig+0x5a6>
  40606. 8011730: 2340 movs r3, #64 @ 0x40
  40607. 8011732: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40608. 8011736: e03c b.n 80117b2 <UART_SetConfig+0x5a6>
  40609. 8011738: 2380 movs r3, #128 @ 0x80
  40610. 801173a: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40611. 801173e: e038 b.n 80117b2 <UART_SetConfig+0x5a6>
  40612. 8011740: 697b ldr r3, [r7, #20]
  40613. 8011742: 681b ldr r3, [r3, #0]
  40614. 8011744: 4a5b ldr r2, [pc, #364] @ (80118b4 <UART_SetConfig+0x6a8>)
  40615. 8011746: 4293 cmp r3, r2
  40616. 8011748: d130 bne.n 80117ac <UART_SetConfig+0x5a0>
  40617. 801174a: 4b57 ldr r3, [pc, #348] @ (80118a8 <UART_SetConfig+0x69c>)
  40618. 801174c: 6d9b ldr r3, [r3, #88] @ 0x58
  40619. 801174e: f003 0307 and.w r3, r3, #7
  40620. 8011752: 2b05 cmp r3, #5
  40621. 8011754: d826 bhi.n 80117a4 <UART_SetConfig+0x598>
  40622. 8011756: a201 add r2, pc, #4 @ (adr r2, 801175c <UART_SetConfig+0x550>)
  40623. 8011758: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40624. 801175c: 08011775 .word 0x08011775
  40625. 8011760: 0801177d .word 0x0801177d
  40626. 8011764: 08011785 .word 0x08011785
  40627. 8011768: 0801178d .word 0x0801178d
  40628. 801176c: 08011795 .word 0x08011795
  40629. 8011770: 0801179d .word 0x0801179d
  40630. 8011774: 2302 movs r3, #2
  40631. 8011776: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40632. 801177a: e01a b.n 80117b2 <UART_SetConfig+0x5a6>
  40633. 801177c: 2304 movs r3, #4
  40634. 801177e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40635. 8011782: e016 b.n 80117b2 <UART_SetConfig+0x5a6>
  40636. 8011784: 2308 movs r3, #8
  40637. 8011786: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40638. 801178a: e012 b.n 80117b2 <UART_SetConfig+0x5a6>
  40639. 801178c: 2310 movs r3, #16
  40640. 801178e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40641. 8011792: e00e b.n 80117b2 <UART_SetConfig+0x5a6>
  40642. 8011794: 2320 movs r3, #32
  40643. 8011796: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40644. 801179a: e00a b.n 80117b2 <UART_SetConfig+0x5a6>
  40645. 801179c: 2340 movs r3, #64 @ 0x40
  40646. 801179e: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40647. 80117a2: e006 b.n 80117b2 <UART_SetConfig+0x5a6>
  40648. 80117a4: 2380 movs r3, #128 @ 0x80
  40649. 80117a6: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40650. 80117aa: e002 b.n 80117b2 <UART_SetConfig+0x5a6>
  40651. 80117ac: 2380 movs r3, #128 @ 0x80
  40652. 80117ae: f887 3043 strb.w r3, [r7, #67] @ 0x43
  40653. /* Check LPUART instance */
  40654. if (UART_INSTANCE_LOWPOWER(huart))
  40655. 80117b2: 697b ldr r3, [r7, #20]
  40656. 80117b4: 681b ldr r3, [r3, #0]
  40657. 80117b6: 4a3f ldr r2, [pc, #252] @ (80118b4 <UART_SetConfig+0x6a8>)
  40658. 80117b8: 4293 cmp r3, r2
  40659. 80117ba: f040 80f8 bne.w 80119ae <UART_SetConfig+0x7a2>
  40660. {
  40661. /* Retrieve frequency clock */
  40662. switch (clocksource)
  40663. 80117be: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  40664. 80117c2: 2b20 cmp r3, #32
  40665. 80117c4: dc46 bgt.n 8011854 <UART_SetConfig+0x648>
  40666. 80117c6: 2b02 cmp r3, #2
  40667. 80117c8: f2c0 8082 blt.w 80118d0 <UART_SetConfig+0x6c4>
  40668. 80117cc: 3b02 subs r3, #2
  40669. 80117ce: 2b1e cmp r3, #30
  40670. 80117d0: d87e bhi.n 80118d0 <UART_SetConfig+0x6c4>
  40671. 80117d2: a201 add r2, pc, #4 @ (adr r2, 80117d8 <UART_SetConfig+0x5cc>)
  40672. 80117d4: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40673. 80117d8: 0801185b .word 0x0801185b
  40674. 80117dc: 080118d1 .word 0x080118d1
  40675. 80117e0: 08011863 .word 0x08011863
  40676. 80117e4: 080118d1 .word 0x080118d1
  40677. 80117e8: 080118d1 .word 0x080118d1
  40678. 80117ec: 080118d1 .word 0x080118d1
  40679. 80117f0: 08011873 .word 0x08011873
  40680. 80117f4: 080118d1 .word 0x080118d1
  40681. 80117f8: 080118d1 .word 0x080118d1
  40682. 80117fc: 080118d1 .word 0x080118d1
  40683. 8011800: 080118d1 .word 0x080118d1
  40684. 8011804: 080118d1 .word 0x080118d1
  40685. 8011808: 080118d1 .word 0x080118d1
  40686. 801180c: 080118d1 .word 0x080118d1
  40687. 8011810: 08011883 .word 0x08011883
  40688. 8011814: 080118d1 .word 0x080118d1
  40689. 8011818: 080118d1 .word 0x080118d1
  40690. 801181c: 080118d1 .word 0x080118d1
  40691. 8011820: 080118d1 .word 0x080118d1
  40692. 8011824: 080118d1 .word 0x080118d1
  40693. 8011828: 080118d1 .word 0x080118d1
  40694. 801182c: 080118d1 .word 0x080118d1
  40695. 8011830: 080118d1 .word 0x080118d1
  40696. 8011834: 080118d1 .word 0x080118d1
  40697. 8011838: 080118d1 .word 0x080118d1
  40698. 801183c: 080118d1 .word 0x080118d1
  40699. 8011840: 080118d1 .word 0x080118d1
  40700. 8011844: 080118d1 .word 0x080118d1
  40701. 8011848: 080118d1 .word 0x080118d1
  40702. 801184c: 080118d1 .word 0x080118d1
  40703. 8011850: 080118c3 .word 0x080118c3
  40704. 8011854: 2b40 cmp r3, #64 @ 0x40
  40705. 8011856: d037 beq.n 80118c8 <UART_SetConfig+0x6bc>
  40706. 8011858: e03a b.n 80118d0 <UART_SetConfig+0x6c4>
  40707. {
  40708. case UART_CLOCKSOURCE_D3PCLK1:
  40709. pclk = HAL_RCCEx_GetD3PCLK1Freq();
  40710. 801185a: f7fc fe3d bl 800e4d8 <HAL_RCCEx_GetD3PCLK1Freq>
  40711. 801185e: 63f8 str r0, [r7, #60] @ 0x3c
  40712. break;
  40713. 8011860: e03c b.n 80118dc <UART_SetConfig+0x6d0>
  40714. case UART_CLOCKSOURCE_PLL2:
  40715. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  40716. 8011862: f107 0324 add.w r3, r7, #36 @ 0x24
  40717. 8011866: 4618 mov r0, r3
  40718. 8011868: f7fc fe4c bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  40719. pclk = pll2_clocks.PLL2_Q_Frequency;
  40720. 801186c: 6abb ldr r3, [r7, #40] @ 0x28
  40721. 801186e: 63fb str r3, [r7, #60] @ 0x3c
  40722. break;
  40723. 8011870: e034 b.n 80118dc <UART_SetConfig+0x6d0>
  40724. case UART_CLOCKSOURCE_PLL3:
  40725. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  40726. 8011872: f107 0318 add.w r3, r7, #24
  40727. 8011876: 4618 mov r0, r3
  40728. 8011878: f7fc ff98 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  40729. pclk = pll3_clocks.PLL3_Q_Frequency;
  40730. 801187c: 69fb ldr r3, [r7, #28]
  40731. 801187e: 63fb str r3, [r7, #60] @ 0x3c
  40732. break;
  40733. 8011880: e02c b.n 80118dc <UART_SetConfig+0x6d0>
  40734. case UART_CLOCKSOURCE_HSI:
  40735. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  40736. 8011882: 4b09 ldr r3, [pc, #36] @ (80118a8 <UART_SetConfig+0x69c>)
  40737. 8011884: 681b ldr r3, [r3, #0]
  40738. 8011886: f003 0320 and.w r3, r3, #32
  40739. 801188a: 2b00 cmp r3, #0
  40740. 801188c: d016 beq.n 80118bc <UART_SetConfig+0x6b0>
  40741. {
  40742. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  40743. 801188e: 4b06 ldr r3, [pc, #24] @ (80118a8 <UART_SetConfig+0x69c>)
  40744. 8011890: 681b ldr r3, [r3, #0]
  40745. 8011892: 08db lsrs r3, r3, #3
  40746. 8011894: f003 0303 and.w r3, r3, #3
  40747. 8011898: 4a07 ldr r2, [pc, #28] @ (80118b8 <UART_SetConfig+0x6ac>)
  40748. 801189a: fa22 f303 lsr.w r3, r2, r3
  40749. 801189e: 63fb str r3, [r7, #60] @ 0x3c
  40750. }
  40751. else
  40752. {
  40753. pclk = (uint32_t) HSI_VALUE;
  40754. }
  40755. break;
  40756. 80118a0: e01c b.n 80118dc <UART_SetConfig+0x6d0>
  40757. 80118a2: bf00 nop
  40758. 80118a4: 40011400 .word 0x40011400
  40759. 80118a8: 58024400 .word 0x58024400
  40760. 80118ac: 40007800 .word 0x40007800
  40761. 80118b0: 40007c00 .word 0x40007c00
  40762. 80118b4: 58000c00 .word 0x58000c00
  40763. 80118b8: 03d09000 .word 0x03d09000
  40764. pclk = (uint32_t) HSI_VALUE;
  40765. 80118bc: 4b9d ldr r3, [pc, #628] @ (8011b34 <UART_SetConfig+0x928>)
  40766. 80118be: 63fb str r3, [r7, #60] @ 0x3c
  40767. break;
  40768. 80118c0: e00c b.n 80118dc <UART_SetConfig+0x6d0>
  40769. case UART_CLOCKSOURCE_CSI:
  40770. pclk = (uint32_t) CSI_VALUE;
  40771. 80118c2: 4b9d ldr r3, [pc, #628] @ (8011b38 <UART_SetConfig+0x92c>)
  40772. 80118c4: 63fb str r3, [r7, #60] @ 0x3c
  40773. break;
  40774. 80118c6: e009 b.n 80118dc <UART_SetConfig+0x6d0>
  40775. case UART_CLOCKSOURCE_LSE:
  40776. pclk = (uint32_t) LSE_VALUE;
  40777. 80118c8: f44f 4300 mov.w r3, #32768 @ 0x8000
  40778. 80118cc: 63fb str r3, [r7, #60] @ 0x3c
  40779. break;
  40780. 80118ce: e005 b.n 80118dc <UART_SetConfig+0x6d0>
  40781. default:
  40782. pclk = 0U;
  40783. 80118d0: 2300 movs r3, #0
  40784. 80118d2: 63fb str r3, [r7, #60] @ 0x3c
  40785. ret = HAL_ERROR;
  40786. 80118d4: 2301 movs r3, #1
  40787. 80118d6: f887 3042 strb.w r3, [r7, #66] @ 0x42
  40788. break;
  40789. 80118da: bf00 nop
  40790. }
  40791. /* If proper clock source reported */
  40792. if (pclk != 0U)
  40793. 80118dc: 6bfb ldr r3, [r7, #60] @ 0x3c
  40794. 80118de: 2b00 cmp r3, #0
  40795. 80118e0: f000 81de beq.w 8011ca0 <UART_SetConfig+0xa94>
  40796. {
  40797. /* Compute clock after Prescaler */
  40798. lpuart_ker_ck_pres = (pclk / UARTPrescTable[huart->Init.ClockPrescaler]);
  40799. 80118e4: 697b ldr r3, [r7, #20]
  40800. 80118e6: 6a5b ldr r3, [r3, #36] @ 0x24
  40801. 80118e8: 4a94 ldr r2, [pc, #592] @ (8011b3c <UART_SetConfig+0x930>)
  40802. 80118ea: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  40803. 80118ee: 461a mov r2, r3
  40804. 80118f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  40805. 80118f2: fbb3 f3f2 udiv r3, r3, r2
  40806. 80118f6: 633b str r3, [r7, #48] @ 0x30
  40807. /* Ensure that Frequency clock is in the range [3 * baudrate, 4096 * baudrate] */
  40808. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  40809. 80118f8: 697b ldr r3, [r7, #20]
  40810. 80118fa: 685a ldr r2, [r3, #4]
  40811. 80118fc: 4613 mov r3, r2
  40812. 80118fe: 005b lsls r3, r3, #1
  40813. 8011900: 4413 add r3, r2
  40814. 8011902: 6b3a ldr r2, [r7, #48] @ 0x30
  40815. 8011904: 429a cmp r2, r3
  40816. 8011906: d305 bcc.n 8011914 <UART_SetConfig+0x708>
  40817. (lpuart_ker_ck_pres > (4096U * huart->Init.BaudRate)))
  40818. 8011908: 697b ldr r3, [r7, #20]
  40819. 801190a: 685b ldr r3, [r3, #4]
  40820. 801190c: 031b lsls r3, r3, #12
  40821. if ((lpuart_ker_ck_pres < (3U * huart->Init.BaudRate)) ||
  40822. 801190e: 6b3a ldr r2, [r7, #48] @ 0x30
  40823. 8011910: 429a cmp r2, r3
  40824. 8011912: d903 bls.n 801191c <UART_SetConfig+0x710>
  40825. {
  40826. ret = HAL_ERROR;
  40827. 8011914: 2301 movs r3, #1
  40828. 8011916: f887 3042 strb.w r3, [r7, #66] @ 0x42
  40829. 801191a: e1c1 b.n 8011ca0 <UART_SetConfig+0xa94>
  40830. }
  40831. else
  40832. {
  40833. /* Check computed UsartDiv value is in allocated range
  40834. (it is forbidden to write values lower than 0x300 in the LPUART_BRR register) */
  40835. usartdiv = (uint32_t)(UART_DIV_LPUART(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  40836. 801191c: 6bfb ldr r3, [r7, #60] @ 0x3c
  40837. 801191e: 2200 movs r2, #0
  40838. 8011920: 60bb str r3, [r7, #8]
  40839. 8011922: 60fa str r2, [r7, #12]
  40840. 8011924: 697b ldr r3, [r7, #20]
  40841. 8011926: 6a5b ldr r3, [r3, #36] @ 0x24
  40842. 8011928: 4a84 ldr r2, [pc, #528] @ (8011b3c <UART_SetConfig+0x930>)
  40843. 801192a: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  40844. 801192e: b29b uxth r3, r3
  40845. 8011930: 2200 movs r2, #0
  40846. 8011932: 603b str r3, [r7, #0]
  40847. 8011934: 607a str r2, [r7, #4]
  40848. 8011936: e9d7 2300 ldrd r2, r3, [r7]
  40849. 801193a: e9d7 0102 ldrd r0, r1, [r7, #8]
  40850. 801193e: f7ee fd27 bl 8000390 <__aeabi_uldivmod>
  40851. 8011942: 4602 mov r2, r0
  40852. 8011944: 460b mov r3, r1
  40853. 8011946: 4610 mov r0, r2
  40854. 8011948: 4619 mov r1, r3
  40855. 801194a: f04f 0200 mov.w r2, #0
  40856. 801194e: f04f 0300 mov.w r3, #0
  40857. 8011952: 020b lsls r3, r1, #8
  40858. 8011954: ea43 6310 orr.w r3, r3, r0, lsr #24
  40859. 8011958: 0202 lsls r2, r0, #8
  40860. 801195a: 6979 ldr r1, [r7, #20]
  40861. 801195c: 6849 ldr r1, [r1, #4]
  40862. 801195e: 0849 lsrs r1, r1, #1
  40863. 8011960: 2000 movs r0, #0
  40864. 8011962: 460c mov r4, r1
  40865. 8011964: 4605 mov r5, r0
  40866. 8011966: eb12 0804 adds.w r8, r2, r4
  40867. 801196a: eb43 0905 adc.w r9, r3, r5
  40868. 801196e: 697b ldr r3, [r7, #20]
  40869. 8011970: 685b ldr r3, [r3, #4]
  40870. 8011972: 2200 movs r2, #0
  40871. 8011974: 469a mov sl, r3
  40872. 8011976: 4693 mov fp, r2
  40873. 8011978: 4652 mov r2, sl
  40874. 801197a: 465b mov r3, fp
  40875. 801197c: 4640 mov r0, r8
  40876. 801197e: 4649 mov r1, r9
  40877. 8011980: f7ee fd06 bl 8000390 <__aeabi_uldivmod>
  40878. 8011984: 4602 mov r2, r0
  40879. 8011986: 460b mov r3, r1
  40880. 8011988: 4613 mov r3, r2
  40881. 801198a: 63bb str r3, [r7, #56] @ 0x38
  40882. if ((usartdiv >= LPUART_BRR_MIN) && (usartdiv <= LPUART_BRR_MAX))
  40883. 801198c: 6bbb ldr r3, [r7, #56] @ 0x38
  40884. 801198e: f5b3 7f40 cmp.w r3, #768 @ 0x300
  40885. 8011992: d308 bcc.n 80119a6 <UART_SetConfig+0x79a>
  40886. 8011994: 6bbb ldr r3, [r7, #56] @ 0x38
  40887. 8011996: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  40888. 801199a: d204 bcs.n 80119a6 <UART_SetConfig+0x79a>
  40889. {
  40890. huart->Instance->BRR = usartdiv;
  40891. 801199c: 697b ldr r3, [r7, #20]
  40892. 801199e: 681b ldr r3, [r3, #0]
  40893. 80119a0: 6bba ldr r2, [r7, #56] @ 0x38
  40894. 80119a2: 60da str r2, [r3, #12]
  40895. 80119a4: e17c b.n 8011ca0 <UART_SetConfig+0xa94>
  40896. }
  40897. else
  40898. {
  40899. ret = HAL_ERROR;
  40900. 80119a6: 2301 movs r3, #1
  40901. 80119a8: f887 3042 strb.w r3, [r7, #66] @ 0x42
  40902. 80119ac: e178 b.n 8011ca0 <UART_SetConfig+0xa94>
  40903. } /* if ( (lpuart_ker_ck_pres < (3 * huart->Init.BaudRate) ) ||
  40904. (lpuart_ker_ck_pres > (4096 * huart->Init.BaudRate) )) */
  40905. } /* if (pclk != 0) */
  40906. }
  40907. /* Check UART Over Sampling to set Baud Rate Register */
  40908. else if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  40909. 80119ae: 697b ldr r3, [r7, #20]
  40910. 80119b0: 69db ldr r3, [r3, #28]
  40911. 80119b2: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
  40912. 80119b6: f040 80c5 bne.w 8011b44 <UART_SetConfig+0x938>
  40913. {
  40914. switch (clocksource)
  40915. 80119ba: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  40916. 80119be: 2b20 cmp r3, #32
  40917. 80119c0: dc48 bgt.n 8011a54 <UART_SetConfig+0x848>
  40918. 80119c2: 2b00 cmp r3, #0
  40919. 80119c4: db7b blt.n 8011abe <UART_SetConfig+0x8b2>
  40920. 80119c6: 2b20 cmp r3, #32
  40921. 80119c8: d879 bhi.n 8011abe <UART_SetConfig+0x8b2>
  40922. 80119ca: a201 add r2, pc, #4 @ (adr r2, 80119d0 <UART_SetConfig+0x7c4>)
  40923. 80119cc: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  40924. 80119d0: 08011a5b .word 0x08011a5b
  40925. 80119d4: 08011a63 .word 0x08011a63
  40926. 80119d8: 08011abf .word 0x08011abf
  40927. 80119dc: 08011abf .word 0x08011abf
  40928. 80119e0: 08011a6b .word 0x08011a6b
  40929. 80119e4: 08011abf .word 0x08011abf
  40930. 80119e8: 08011abf .word 0x08011abf
  40931. 80119ec: 08011abf .word 0x08011abf
  40932. 80119f0: 08011a7b .word 0x08011a7b
  40933. 80119f4: 08011abf .word 0x08011abf
  40934. 80119f8: 08011abf .word 0x08011abf
  40935. 80119fc: 08011abf .word 0x08011abf
  40936. 8011a00: 08011abf .word 0x08011abf
  40937. 8011a04: 08011abf .word 0x08011abf
  40938. 8011a08: 08011abf .word 0x08011abf
  40939. 8011a0c: 08011abf .word 0x08011abf
  40940. 8011a10: 08011a8b .word 0x08011a8b
  40941. 8011a14: 08011abf .word 0x08011abf
  40942. 8011a18: 08011abf .word 0x08011abf
  40943. 8011a1c: 08011abf .word 0x08011abf
  40944. 8011a20: 08011abf .word 0x08011abf
  40945. 8011a24: 08011abf .word 0x08011abf
  40946. 8011a28: 08011abf .word 0x08011abf
  40947. 8011a2c: 08011abf .word 0x08011abf
  40948. 8011a30: 08011abf .word 0x08011abf
  40949. 8011a34: 08011abf .word 0x08011abf
  40950. 8011a38: 08011abf .word 0x08011abf
  40951. 8011a3c: 08011abf .word 0x08011abf
  40952. 8011a40: 08011abf .word 0x08011abf
  40953. 8011a44: 08011abf .word 0x08011abf
  40954. 8011a48: 08011abf .word 0x08011abf
  40955. 8011a4c: 08011abf .word 0x08011abf
  40956. 8011a50: 08011ab1 .word 0x08011ab1
  40957. 8011a54: 2b40 cmp r3, #64 @ 0x40
  40958. 8011a56: d02e beq.n 8011ab6 <UART_SetConfig+0x8aa>
  40959. 8011a58: e031 b.n 8011abe <UART_SetConfig+0x8b2>
  40960. {
  40961. case UART_CLOCKSOURCE_D2PCLK1:
  40962. pclk = HAL_RCC_GetPCLK1Freq();
  40963. 8011a5a: f7fa fd61 bl 800c520 <HAL_RCC_GetPCLK1Freq>
  40964. 8011a5e: 63f8 str r0, [r7, #60] @ 0x3c
  40965. break;
  40966. 8011a60: e033 b.n 8011aca <UART_SetConfig+0x8be>
  40967. case UART_CLOCKSOURCE_D2PCLK2:
  40968. pclk = HAL_RCC_GetPCLK2Freq();
  40969. 8011a62: f7fa fd73 bl 800c54c <HAL_RCC_GetPCLK2Freq>
  40970. 8011a66: 63f8 str r0, [r7, #60] @ 0x3c
  40971. break;
  40972. 8011a68: e02f b.n 8011aca <UART_SetConfig+0x8be>
  40973. case UART_CLOCKSOURCE_PLL2:
  40974. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  40975. 8011a6a: f107 0324 add.w r3, r7, #36 @ 0x24
  40976. 8011a6e: 4618 mov r0, r3
  40977. 8011a70: f7fc fd48 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  40978. pclk = pll2_clocks.PLL2_Q_Frequency;
  40979. 8011a74: 6abb ldr r3, [r7, #40] @ 0x28
  40980. 8011a76: 63fb str r3, [r7, #60] @ 0x3c
  40981. break;
  40982. 8011a78: e027 b.n 8011aca <UART_SetConfig+0x8be>
  40983. case UART_CLOCKSOURCE_PLL3:
  40984. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  40985. 8011a7a: f107 0318 add.w r3, r7, #24
  40986. 8011a7e: 4618 mov r0, r3
  40987. 8011a80: f7fc fe94 bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  40988. pclk = pll3_clocks.PLL3_Q_Frequency;
  40989. 8011a84: 69fb ldr r3, [r7, #28]
  40990. 8011a86: 63fb str r3, [r7, #60] @ 0x3c
  40991. break;
  40992. 8011a88: e01f b.n 8011aca <UART_SetConfig+0x8be>
  40993. case UART_CLOCKSOURCE_HSI:
  40994. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  40995. 8011a8a: 4b2d ldr r3, [pc, #180] @ (8011b40 <UART_SetConfig+0x934>)
  40996. 8011a8c: 681b ldr r3, [r3, #0]
  40997. 8011a8e: f003 0320 and.w r3, r3, #32
  40998. 8011a92: 2b00 cmp r3, #0
  40999. 8011a94: d009 beq.n 8011aaa <UART_SetConfig+0x89e>
  41000. {
  41001. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41002. 8011a96: 4b2a ldr r3, [pc, #168] @ (8011b40 <UART_SetConfig+0x934>)
  41003. 8011a98: 681b ldr r3, [r3, #0]
  41004. 8011a9a: 08db lsrs r3, r3, #3
  41005. 8011a9c: f003 0303 and.w r3, r3, #3
  41006. 8011aa0: 4a24 ldr r2, [pc, #144] @ (8011b34 <UART_SetConfig+0x928>)
  41007. 8011aa2: fa22 f303 lsr.w r3, r2, r3
  41008. 8011aa6: 63fb str r3, [r7, #60] @ 0x3c
  41009. }
  41010. else
  41011. {
  41012. pclk = (uint32_t) HSI_VALUE;
  41013. }
  41014. break;
  41015. 8011aa8: e00f b.n 8011aca <UART_SetConfig+0x8be>
  41016. pclk = (uint32_t) HSI_VALUE;
  41017. 8011aaa: 4b22 ldr r3, [pc, #136] @ (8011b34 <UART_SetConfig+0x928>)
  41018. 8011aac: 63fb str r3, [r7, #60] @ 0x3c
  41019. break;
  41020. 8011aae: e00c b.n 8011aca <UART_SetConfig+0x8be>
  41021. case UART_CLOCKSOURCE_CSI:
  41022. pclk = (uint32_t) CSI_VALUE;
  41023. 8011ab0: 4b21 ldr r3, [pc, #132] @ (8011b38 <UART_SetConfig+0x92c>)
  41024. 8011ab2: 63fb str r3, [r7, #60] @ 0x3c
  41025. break;
  41026. 8011ab4: e009 b.n 8011aca <UART_SetConfig+0x8be>
  41027. case UART_CLOCKSOURCE_LSE:
  41028. pclk = (uint32_t) LSE_VALUE;
  41029. 8011ab6: f44f 4300 mov.w r3, #32768 @ 0x8000
  41030. 8011aba: 63fb str r3, [r7, #60] @ 0x3c
  41031. break;
  41032. 8011abc: e005 b.n 8011aca <UART_SetConfig+0x8be>
  41033. default:
  41034. pclk = 0U;
  41035. 8011abe: 2300 movs r3, #0
  41036. 8011ac0: 63fb str r3, [r7, #60] @ 0x3c
  41037. ret = HAL_ERROR;
  41038. 8011ac2: 2301 movs r3, #1
  41039. 8011ac4: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41040. break;
  41041. 8011ac8: bf00 nop
  41042. }
  41043. /* USARTDIV must be greater than or equal to 0d16 */
  41044. if (pclk != 0U)
  41045. 8011aca: 6bfb ldr r3, [r7, #60] @ 0x3c
  41046. 8011acc: 2b00 cmp r3, #0
  41047. 8011ace: f000 80e7 beq.w 8011ca0 <UART_SetConfig+0xa94>
  41048. {
  41049. usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41050. 8011ad2: 697b ldr r3, [r7, #20]
  41051. 8011ad4: 6a5b ldr r3, [r3, #36] @ 0x24
  41052. 8011ad6: 4a19 ldr r2, [pc, #100] @ (8011b3c <UART_SetConfig+0x930>)
  41053. 8011ad8: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41054. 8011adc: 461a mov r2, r3
  41055. 8011ade: 6bfb ldr r3, [r7, #60] @ 0x3c
  41056. 8011ae0: fbb3 f3f2 udiv r3, r3, r2
  41057. 8011ae4: 005a lsls r2, r3, #1
  41058. 8011ae6: 697b ldr r3, [r7, #20]
  41059. 8011ae8: 685b ldr r3, [r3, #4]
  41060. 8011aea: 085b lsrs r3, r3, #1
  41061. 8011aec: 441a add r2, r3
  41062. 8011aee: 697b ldr r3, [r7, #20]
  41063. 8011af0: 685b ldr r3, [r3, #4]
  41064. 8011af2: fbb2 f3f3 udiv r3, r2, r3
  41065. 8011af6: 63bb str r3, [r7, #56] @ 0x38
  41066. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41067. 8011af8: 6bbb ldr r3, [r7, #56] @ 0x38
  41068. 8011afa: 2b0f cmp r3, #15
  41069. 8011afc: d916 bls.n 8011b2c <UART_SetConfig+0x920>
  41070. 8011afe: 6bbb ldr r3, [r7, #56] @ 0x38
  41071. 8011b00: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41072. 8011b04: d212 bcs.n 8011b2c <UART_SetConfig+0x920>
  41073. {
  41074. brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
  41075. 8011b06: 6bbb ldr r3, [r7, #56] @ 0x38
  41076. 8011b08: b29b uxth r3, r3
  41077. 8011b0a: f023 030f bic.w r3, r3, #15
  41078. 8011b0e: 86fb strh r3, [r7, #54] @ 0x36
  41079. brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
  41080. 8011b10: 6bbb ldr r3, [r7, #56] @ 0x38
  41081. 8011b12: 085b lsrs r3, r3, #1
  41082. 8011b14: b29b uxth r3, r3
  41083. 8011b16: f003 0307 and.w r3, r3, #7
  41084. 8011b1a: b29a uxth r2, r3
  41085. 8011b1c: 8efb ldrh r3, [r7, #54] @ 0x36
  41086. 8011b1e: 4313 orrs r3, r2
  41087. 8011b20: 86fb strh r3, [r7, #54] @ 0x36
  41088. huart->Instance->BRR = brrtemp;
  41089. 8011b22: 697b ldr r3, [r7, #20]
  41090. 8011b24: 681b ldr r3, [r3, #0]
  41091. 8011b26: 8efa ldrh r2, [r7, #54] @ 0x36
  41092. 8011b28: 60da str r2, [r3, #12]
  41093. 8011b2a: e0b9 b.n 8011ca0 <UART_SetConfig+0xa94>
  41094. }
  41095. else
  41096. {
  41097. ret = HAL_ERROR;
  41098. 8011b2c: 2301 movs r3, #1
  41099. 8011b2e: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41100. 8011b32: e0b5 b.n 8011ca0 <UART_SetConfig+0xa94>
  41101. 8011b34: 03d09000 .word 0x03d09000
  41102. 8011b38: 003d0900 .word 0x003d0900
  41103. 8011b3c: 0801a2a0 .word 0x0801a2a0
  41104. 8011b40: 58024400 .word 0x58024400
  41105. }
  41106. }
  41107. }
  41108. else
  41109. {
  41110. switch (clocksource)
  41111. 8011b44: f897 3043 ldrb.w r3, [r7, #67] @ 0x43
  41112. 8011b48: 2b20 cmp r3, #32
  41113. 8011b4a: dc49 bgt.n 8011be0 <UART_SetConfig+0x9d4>
  41114. 8011b4c: 2b00 cmp r3, #0
  41115. 8011b4e: db7c blt.n 8011c4a <UART_SetConfig+0xa3e>
  41116. 8011b50: 2b20 cmp r3, #32
  41117. 8011b52: d87a bhi.n 8011c4a <UART_SetConfig+0xa3e>
  41118. 8011b54: a201 add r2, pc, #4 @ (adr r2, 8011b5c <UART_SetConfig+0x950>)
  41119. 8011b56: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  41120. 8011b5a: bf00 nop
  41121. 8011b5c: 08011be7 .word 0x08011be7
  41122. 8011b60: 08011bef .word 0x08011bef
  41123. 8011b64: 08011c4b .word 0x08011c4b
  41124. 8011b68: 08011c4b .word 0x08011c4b
  41125. 8011b6c: 08011bf7 .word 0x08011bf7
  41126. 8011b70: 08011c4b .word 0x08011c4b
  41127. 8011b74: 08011c4b .word 0x08011c4b
  41128. 8011b78: 08011c4b .word 0x08011c4b
  41129. 8011b7c: 08011c07 .word 0x08011c07
  41130. 8011b80: 08011c4b .word 0x08011c4b
  41131. 8011b84: 08011c4b .word 0x08011c4b
  41132. 8011b88: 08011c4b .word 0x08011c4b
  41133. 8011b8c: 08011c4b .word 0x08011c4b
  41134. 8011b90: 08011c4b .word 0x08011c4b
  41135. 8011b94: 08011c4b .word 0x08011c4b
  41136. 8011b98: 08011c4b .word 0x08011c4b
  41137. 8011b9c: 08011c17 .word 0x08011c17
  41138. 8011ba0: 08011c4b .word 0x08011c4b
  41139. 8011ba4: 08011c4b .word 0x08011c4b
  41140. 8011ba8: 08011c4b .word 0x08011c4b
  41141. 8011bac: 08011c4b .word 0x08011c4b
  41142. 8011bb0: 08011c4b .word 0x08011c4b
  41143. 8011bb4: 08011c4b .word 0x08011c4b
  41144. 8011bb8: 08011c4b .word 0x08011c4b
  41145. 8011bbc: 08011c4b .word 0x08011c4b
  41146. 8011bc0: 08011c4b .word 0x08011c4b
  41147. 8011bc4: 08011c4b .word 0x08011c4b
  41148. 8011bc8: 08011c4b .word 0x08011c4b
  41149. 8011bcc: 08011c4b .word 0x08011c4b
  41150. 8011bd0: 08011c4b .word 0x08011c4b
  41151. 8011bd4: 08011c4b .word 0x08011c4b
  41152. 8011bd8: 08011c4b .word 0x08011c4b
  41153. 8011bdc: 08011c3d .word 0x08011c3d
  41154. 8011be0: 2b40 cmp r3, #64 @ 0x40
  41155. 8011be2: d02e beq.n 8011c42 <UART_SetConfig+0xa36>
  41156. 8011be4: e031 b.n 8011c4a <UART_SetConfig+0xa3e>
  41157. {
  41158. case UART_CLOCKSOURCE_D2PCLK1:
  41159. pclk = HAL_RCC_GetPCLK1Freq();
  41160. 8011be6: f7fa fc9b bl 800c520 <HAL_RCC_GetPCLK1Freq>
  41161. 8011bea: 63f8 str r0, [r7, #60] @ 0x3c
  41162. break;
  41163. 8011bec: e033 b.n 8011c56 <UART_SetConfig+0xa4a>
  41164. case UART_CLOCKSOURCE_D2PCLK2:
  41165. pclk = HAL_RCC_GetPCLK2Freq();
  41166. 8011bee: f7fa fcad bl 800c54c <HAL_RCC_GetPCLK2Freq>
  41167. 8011bf2: 63f8 str r0, [r7, #60] @ 0x3c
  41168. break;
  41169. 8011bf4: e02f b.n 8011c56 <UART_SetConfig+0xa4a>
  41170. case UART_CLOCKSOURCE_PLL2:
  41171. HAL_RCCEx_GetPLL2ClockFreq(&pll2_clocks);
  41172. 8011bf6: f107 0324 add.w r3, r7, #36 @ 0x24
  41173. 8011bfa: 4618 mov r0, r3
  41174. 8011bfc: f7fc fc82 bl 800e504 <HAL_RCCEx_GetPLL2ClockFreq>
  41175. pclk = pll2_clocks.PLL2_Q_Frequency;
  41176. 8011c00: 6abb ldr r3, [r7, #40] @ 0x28
  41177. 8011c02: 63fb str r3, [r7, #60] @ 0x3c
  41178. break;
  41179. 8011c04: e027 b.n 8011c56 <UART_SetConfig+0xa4a>
  41180. case UART_CLOCKSOURCE_PLL3:
  41181. HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
  41182. 8011c06: f107 0318 add.w r3, r7, #24
  41183. 8011c0a: 4618 mov r0, r3
  41184. 8011c0c: f7fc fdce bl 800e7ac <HAL_RCCEx_GetPLL3ClockFreq>
  41185. pclk = pll3_clocks.PLL3_Q_Frequency;
  41186. 8011c10: 69fb ldr r3, [r7, #28]
  41187. 8011c12: 63fb str r3, [r7, #60] @ 0x3c
  41188. break;
  41189. 8011c14: e01f b.n 8011c56 <UART_SetConfig+0xa4a>
  41190. case UART_CLOCKSOURCE_HSI:
  41191. if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIDIV) != 0U)
  41192. 8011c16: 4b2d ldr r3, [pc, #180] @ (8011ccc <UART_SetConfig+0xac0>)
  41193. 8011c18: 681b ldr r3, [r3, #0]
  41194. 8011c1a: f003 0320 and.w r3, r3, #32
  41195. 8011c1e: 2b00 cmp r3, #0
  41196. 8011c20: d009 beq.n 8011c36 <UART_SetConfig+0xa2a>
  41197. {
  41198. pclk = (uint32_t)(HSI_VALUE >> (__HAL_RCC_GET_HSI_DIVIDER() >> 3U));
  41199. 8011c22: 4b2a ldr r3, [pc, #168] @ (8011ccc <UART_SetConfig+0xac0>)
  41200. 8011c24: 681b ldr r3, [r3, #0]
  41201. 8011c26: 08db lsrs r3, r3, #3
  41202. 8011c28: f003 0303 and.w r3, r3, #3
  41203. 8011c2c: 4a28 ldr r2, [pc, #160] @ (8011cd0 <UART_SetConfig+0xac4>)
  41204. 8011c2e: fa22 f303 lsr.w r3, r2, r3
  41205. 8011c32: 63fb str r3, [r7, #60] @ 0x3c
  41206. }
  41207. else
  41208. {
  41209. pclk = (uint32_t) HSI_VALUE;
  41210. }
  41211. break;
  41212. 8011c34: e00f b.n 8011c56 <UART_SetConfig+0xa4a>
  41213. pclk = (uint32_t) HSI_VALUE;
  41214. 8011c36: 4b26 ldr r3, [pc, #152] @ (8011cd0 <UART_SetConfig+0xac4>)
  41215. 8011c38: 63fb str r3, [r7, #60] @ 0x3c
  41216. break;
  41217. 8011c3a: e00c b.n 8011c56 <UART_SetConfig+0xa4a>
  41218. case UART_CLOCKSOURCE_CSI:
  41219. pclk = (uint32_t) CSI_VALUE;
  41220. 8011c3c: 4b25 ldr r3, [pc, #148] @ (8011cd4 <UART_SetConfig+0xac8>)
  41221. 8011c3e: 63fb str r3, [r7, #60] @ 0x3c
  41222. break;
  41223. 8011c40: e009 b.n 8011c56 <UART_SetConfig+0xa4a>
  41224. case UART_CLOCKSOURCE_LSE:
  41225. pclk = (uint32_t) LSE_VALUE;
  41226. 8011c42: f44f 4300 mov.w r3, #32768 @ 0x8000
  41227. 8011c46: 63fb str r3, [r7, #60] @ 0x3c
  41228. break;
  41229. 8011c48: e005 b.n 8011c56 <UART_SetConfig+0xa4a>
  41230. default:
  41231. pclk = 0U;
  41232. 8011c4a: 2300 movs r3, #0
  41233. 8011c4c: 63fb str r3, [r7, #60] @ 0x3c
  41234. ret = HAL_ERROR;
  41235. 8011c4e: 2301 movs r3, #1
  41236. 8011c50: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41237. break;
  41238. 8011c54: bf00 nop
  41239. }
  41240. if (pclk != 0U)
  41241. 8011c56: 6bfb ldr r3, [r7, #60] @ 0x3c
  41242. 8011c58: 2b00 cmp r3, #0
  41243. 8011c5a: d021 beq.n 8011ca0 <UART_SetConfig+0xa94>
  41244. {
  41245. /* USARTDIV must be greater than or equal to 0d16 */
  41246. usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate, huart->Init.ClockPrescaler));
  41247. 8011c5c: 697b ldr r3, [r7, #20]
  41248. 8011c5e: 6a5b ldr r3, [r3, #36] @ 0x24
  41249. 8011c60: 4a1d ldr r2, [pc, #116] @ (8011cd8 <UART_SetConfig+0xacc>)
  41250. 8011c62: f832 3013 ldrh.w r3, [r2, r3, lsl #1]
  41251. 8011c66: 461a mov r2, r3
  41252. 8011c68: 6bfb ldr r3, [r7, #60] @ 0x3c
  41253. 8011c6a: fbb3 f2f2 udiv r2, r3, r2
  41254. 8011c6e: 697b ldr r3, [r7, #20]
  41255. 8011c70: 685b ldr r3, [r3, #4]
  41256. 8011c72: 085b lsrs r3, r3, #1
  41257. 8011c74: 441a add r2, r3
  41258. 8011c76: 697b ldr r3, [r7, #20]
  41259. 8011c78: 685b ldr r3, [r3, #4]
  41260. 8011c7a: fbb2 f3f3 udiv r3, r2, r3
  41261. 8011c7e: 63bb str r3, [r7, #56] @ 0x38
  41262. if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
  41263. 8011c80: 6bbb ldr r3, [r7, #56] @ 0x38
  41264. 8011c82: 2b0f cmp r3, #15
  41265. 8011c84: d909 bls.n 8011c9a <UART_SetConfig+0xa8e>
  41266. 8011c86: 6bbb ldr r3, [r7, #56] @ 0x38
  41267. 8011c88: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
  41268. 8011c8c: d205 bcs.n 8011c9a <UART_SetConfig+0xa8e>
  41269. {
  41270. huart->Instance->BRR = (uint16_t)usartdiv;
  41271. 8011c8e: 6bbb ldr r3, [r7, #56] @ 0x38
  41272. 8011c90: b29a uxth r2, r3
  41273. 8011c92: 697b ldr r3, [r7, #20]
  41274. 8011c94: 681b ldr r3, [r3, #0]
  41275. 8011c96: 60da str r2, [r3, #12]
  41276. 8011c98: e002 b.n 8011ca0 <UART_SetConfig+0xa94>
  41277. }
  41278. else
  41279. {
  41280. ret = HAL_ERROR;
  41281. 8011c9a: 2301 movs r3, #1
  41282. 8011c9c: f887 3042 strb.w r3, [r7, #66] @ 0x42
  41283. }
  41284. }
  41285. }
  41286. /* Initialize the number of data to process during RX/TX ISR execution */
  41287. huart->NbTxDataToProcess = 1;
  41288. 8011ca0: 697b ldr r3, [r7, #20]
  41289. 8011ca2: 2201 movs r2, #1
  41290. 8011ca4: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  41291. huart->NbRxDataToProcess = 1;
  41292. 8011ca8: 697b ldr r3, [r7, #20]
  41293. 8011caa: 2201 movs r2, #1
  41294. 8011cac: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  41295. /* Clear ISR function pointers */
  41296. huart->RxISR = NULL;
  41297. 8011cb0: 697b ldr r3, [r7, #20]
  41298. 8011cb2: 2200 movs r2, #0
  41299. 8011cb4: 675a str r2, [r3, #116] @ 0x74
  41300. huart->TxISR = NULL;
  41301. 8011cb6: 697b ldr r3, [r7, #20]
  41302. 8011cb8: 2200 movs r2, #0
  41303. 8011cba: 679a str r2, [r3, #120] @ 0x78
  41304. return ret;
  41305. 8011cbc: f897 3042 ldrb.w r3, [r7, #66] @ 0x42
  41306. }
  41307. 8011cc0: 4618 mov r0, r3
  41308. 8011cc2: 3748 adds r7, #72 @ 0x48
  41309. 8011cc4: 46bd mov sp, r7
  41310. 8011cc6: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
  41311. 8011cca: bf00 nop
  41312. 8011ccc: 58024400 .word 0x58024400
  41313. 8011cd0: 03d09000 .word 0x03d09000
  41314. 8011cd4: 003d0900 .word 0x003d0900
  41315. 8011cd8: 0801a2a0 .word 0x0801a2a0
  41316. 08011cdc <UART_AdvFeatureConfig>:
  41317. * @brief Configure the UART peripheral advanced features.
  41318. * @param huart UART handle.
  41319. * @retval None
  41320. */
  41321. void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
  41322. {
  41323. 8011cdc: b480 push {r7}
  41324. 8011cde: b083 sub sp, #12
  41325. 8011ce0: af00 add r7, sp, #0
  41326. 8011ce2: 6078 str r0, [r7, #4]
  41327. /* Check whether the set of advanced features to configure is properly set */
  41328. assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
  41329. /* if required, configure RX/TX pins swap */
  41330. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
  41331. 8011ce4: 687b ldr r3, [r7, #4]
  41332. 8011ce6: 6a9b ldr r3, [r3, #40] @ 0x28
  41333. 8011ce8: f003 0308 and.w r3, r3, #8
  41334. 8011cec: 2b00 cmp r3, #0
  41335. 8011cee: d00a beq.n 8011d06 <UART_AdvFeatureConfig+0x2a>
  41336. {
  41337. assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
  41338. MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
  41339. 8011cf0: 687b ldr r3, [r7, #4]
  41340. 8011cf2: 681b ldr r3, [r3, #0]
  41341. 8011cf4: 685b ldr r3, [r3, #4]
  41342. 8011cf6: f423 4100 bic.w r1, r3, #32768 @ 0x8000
  41343. 8011cfa: 687b ldr r3, [r7, #4]
  41344. 8011cfc: 6b9a ldr r2, [r3, #56] @ 0x38
  41345. 8011cfe: 687b ldr r3, [r7, #4]
  41346. 8011d00: 681b ldr r3, [r3, #0]
  41347. 8011d02: 430a orrs r2, r1
  41348. 8011d04: 605a str r2, [r3, #4]
  41349. }
  41350. /* if required, configure TX pin active level inversion */
  41351. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
  41352. 8011d06: 687b ldr r3, [r7, #4]
  41353. 8011d08: 6a9b ldr r3, [r3, #40] @ 0x28
  41354. 8011d0a: f003 0301 and.w r3, r3, #1
  41355. 8011d0e: 2b00 cmp r3, #0
  41356. 8011d10: d00a beq.n 8011d28 <UART_AdvFeatureConfig+0x4c>
  41357. {
  41358. assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
  41359. MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
  41360. 8011d12: 687b ldr r3, [r7, #4]
  41361. 8011d14: 681b ldr r3, [r3, #0]
  41362. 8011d16: 685b ldr r3, [r3, #4]
  41363. 8011d18: f423 3100 bic.w r1, r3, #131072 @ 0x20000
  41364. 8011d1c: 687b ldr r3, [r7, #4]
  41365. 8011d1e: 6ada ldr r2, [r3, #44] @ 0x2c
  41366. 8011d20: 687b ldr r3, [r7, #4]
  41367. 8011d22: 681b ldr r3, [r3, #0]
  41368. 8011d24: 430a orrs r2, r1
  41369. 8011d26: 605a str r2, [r3, #4]
  41370. }
  41371. /* if required, configure RX pin active level inversion */
  41372. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
  41373. 8011d28: 687b ldr r3, [r7, #4]
  41374. 8011d2a: 6a9b ldr r3, [r3, #40] @ 0x28
  41375. 8011d2c: f003 0302 and.w r3, r3, #2
  41376. 8011d30: 2b00 cmp r3, #0
  41377. 8011d32: d00a beq.n 8011d4a <UART_AdvFeatureConfig+0x6e>
  41378. {
  41379. assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
  41380. MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
  41381. 8011d34: 687b ldr r3, [r7, #4]
  41382. 8011d36: 681b ldr r3, [r3, #0]
  41383. 8011d38: 685b ldr r3, [r3, #4]
  41384. 8011d3a: f423 3180 bic.w r1, r3, #65536 @ 0x10000
  41385. 8011d3e: 687b ldr r3, [r7, #4]
  41386. 8011d40: 6b1a ldr r2, [r3, #48] @ 0x30
  41387. 8011d42: 687b ldr r3, [r7, #4]
  41388. 8011d44: 681b ldr r3, [r3, #0]
  41389. 8011d46: 430a orrs r2, r1
  41390. 8011d48: 605a str r2, [r3, #4]
  41391. }
  41392. /* if required, configure data inversion */
  41393. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
  41394. 8011d4a: 687b ldr r3, [r7, #4]
  41395. 8011d4c: 6a9b ldr r3, [r3, #40] @ 0x28
  41396. 8011d4e: f003 0304 and.w r3, r3, #4
  41397. 8011d52: 2b00 cmp r3, #0
  41398. 8011d54: d00a beq.n 8011d6c <UART_AdvFeatureConfig+0x90>
  41399. {
  41400. assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
  41401. MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
  41402. 8011d56: 687b ldr r3, [r7, #4]
  41403. 8011d58: 681b ldr r3, [r3, #0]
  41404. 8011d5a: 685b ldr r3, [r3, #4]
  41405. 8011d5c: f423 2180 bic.w r1, r3, #262144 @ 0x40000
  41406. 8011d60: 687b ldr r3, [r7, #4]
  41407. 8011d62: 6b5a ldr r2, [r3, #52] @ 0x34
  41408. 8011d64: 687b ldr r3, [r7, #4]
  41409. 8011d66: 681b ldr r3, [r3, #0]
  41410. 8011d68: 430a orrs r2, r1
  41411. 8011d6a: 605a str r2, [r3, #4]
  41412. }
  41413. /* if required, configure RX overrun detection disabling */
  41414. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
  41415. 8011d6c: 687b ldr r3, [r7, #4]
  41416. 8011d6e: 6a9b ldr r3, [r3, #40] @ 0x28
  41417. 8011d70: f003 0310 and.w r3, r3, #16
  41418. 8011d74: 2b00 cmp r3, #0
  41419. 8011d76: d00a beq.n 8011d8e <UART_AdvFeatureConfig+0xb2>
  41420. {
  41421. assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
  41422. MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
  41423. 8011d78: 687b ldr r3, [r7, #4]
  41424. 8011d7a: 681b ldr r3, [r3, #0]
  41425. 8011d7c: 689b ldr r3, [r3, #8]
  41426. 8011d7e: f423 5180 bic.w r1, r3, #4096 @ 0x1000
  41427. 8011d82: 687b ldr r3, [r7, #4]
  41428. 8011d84: 6bda ldr r2, [r3, #60] @ 0x3c
  41429. 8011d86: 687b ldr r3, [r7, #4]
  41430. 8011d88: 681b ldr r3, [r3, #0]
  41431. 8011d8a: 430a orrs r2, r1
  41432. 8011d8c: 609a str r2, [r3, #8]
  41433. }
  41434. /* if required, configure DMA disabling on reception error */
  41435. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
  41436. 8011d8e: 687b ldr r3, [r7, #4]
  41437. 8011d90: 6a9b ldr r3, [r3, #40] @ 0x28
  41438. 8011d92: f003 0320 and.w r3, r3, #32
  41439. 8011d96: 2b00 cmp r3, #0
  41440. 8011d98: d00a beq.n 8011db0 <UART_AdvFeatureConfig+0xd4>
  41441. {
  41442. assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
  41443. MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
  41444. 8011d9a: 687b ldr r3, [r7, #4]
  41445. 8011d9c: 681b ldr r3, [r3, #0]
  41446. 8011d9e: 689b ldr r3, [r3, #8]
  41447. 8011da0: f423 5100 bic.w r1, r3, #8192 @ 0x2000
  41448. 8011da4: 687b ldr r3, [r7, #4]
  41449. 8011da6: 6c1a ldr r2, [r3, #64] @ 0x40
  41450. 8011da8: 687b ldr r3, [r7, #4]
  41451. 8011daa: 681b ldr r3, [r3, #0]
  41452. 8011dac: 430a orrs r2, r1
  41453. 8011dae: 609a str r2, [r3, #8]
  41454. }
  41455. /* if required, configure auto Baud rate detection scheme */
  41456. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
  41457. 8011db0: 687b ldr r3, [r7, #4]
  41458. 8011db2: 6a9b ldr r3, [r3, #40] @ 0x28
  41459. 8011db4: f003 0340 and.w r3, r3, #64 @ 0x40
  41460. 8011db8: 2b00 cmp r3, #0
  41461. 8011dba: d01a beq.n 8011df2 <UART_AdvFeatureConfig+0x116>
  41462. {
  41463. assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
  41464. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
  41465. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
  41466. 8011dbc: 687b ldr r3, [r7, #4]
  41467. 8011dbe: 681b ldr r3, [r3, #0]
  41468. 8011dc0: 685b ldr r3, [r3, #4]
  41469. 8011dc2: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
  41470. 8011dc6: 687b ldr r3, [r7, #4]
  41471. 8011dc8: 6c5a ldr r2, [r3, #68] @ 0x44
  41472. 8011dca: 687b ldr r3, [r7, #4]
  41473. 8011dcc: 681b ldr r3, [r3, #0]
  41474. 8011dce: 430a orrs r2, r1
  41475. 8011dd0: 605a str r2, [r3, #4]
  41476. /* set auto Baudrate detection parameters if detection is enabled */
  41477. if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
  41478. 8011dd2: 687b ldr r3, [r7, #4]
  41479. 8011dd4: 6c5b ldr r3, [r3, #68] @ 0x44
  41480. 8011dd6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
  41481. 8011dda: d10a bne.n 8011df2 <UART_AdvFeatureConfig+0x116>
  41482. {
  41483. assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
  41484. MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
  41485. 8011ddc: 687b ldr r3, [r7, #4]
  41486. 8011dde: 681b ldr r3, [r3, #0]
  41487. 8011de0: 685b ldr r3, [r3, #4]
  41488. 8011de2: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
  41489. 8011de6: 687b ldr r3, [r7, #4]
  41490. 8011de8: 6c9a ldr r2, [r3, #72] @ 0x48
  41491. 8011dea: 687b ldr r3, [r7, #4]
  41492. 8011dec: 681b ldr r3, [r3, #0]
  41493. 8011dee: 430a orrs r2, r1
  41494. 8011df0: 605a str r2, [r3, #4]
  41495. }
  41496. }
  41497. /* if required, configure MSB first on communication line */
  41498. if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
  41499. 8011df2: 687b ldr r3, [r7, #4]
  41500. 8011df4: 6a9b ldr r3, [r3, #40] @ 0x28
  41501. 8011df6: f003 0380 and.w r3, r3, #128 @ 0x80
  41502. 8011dfa: 2b00 cmp r3, #0
  41503. 8011dfc: d00a beq.n 8011e14 <UART_AdvFeatureConfig+0x138>
  41504. {
  41505. assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
  41506. MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
  41507. 8011dfe: 687b ldr r3, [r7, #4]
  41508. 8011e00: 681b ldr r3, [r3, #0]
  41509. 8011e02: 685b ldr r3, [r3, #4]
  41510. 8011e04: f423 2100 bic.w r1, r3, #524288 @ 0x80000
  41511. 8011e08: 687b ldr r3, [r7, #4]
  41512. 8011e0a: 6cda ldr r2, [r3, #76] @ 0x4c
  41513. 8011e0c: 687b ldr r3, [r7, #4]
  41514. 8011e0e: 681b ldr r3, [r3, #0]
  41515. 8011e10: 430a orrs r2, r1
  41516. 8011e12: 605a str r2, [r3, #4]
  41517. }
  41518. }
  41519. 8011e14: bf00 nop
  41520. 8011e16: 370c adds r7, #12
  41521. 8011e18: 46bd mov sp, r7
  41522. 8011e1a: f85d 7b04 ldr.w r7, [sp], #4
  41523. 8011e1e: 4770 bx lr
  41524. 08011e20 <UART_CheckIdleState>:
  41525. * @brief Check the UART Idle State.
  41526. * @param huart UART handle.
  41527. * @retval HAL status
  41528. */
  41529. HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
  41530. {
  41531. 8011e20: b580 push {r7, lr}
  41532. 8011e22: b098 sub sp, #96 @ 0x60
  41533. 8011e24: af02 add r7, sp, #8
  41534. 8011e26: 6078 str r0, [r7, #4]
  41535. uint32_t tickstart;
  41536. /* Initialize the UART ErrorCode */
  41537. huart->ErrorCode = HAL_UART_ERROR_NONE;
  41538. 8011e28: 687b ldr r3, [r7, #4]
  41539. 8011e2a: 2200 movs r2, #0
  41540. 8011e2c: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41541. /* Init tickstart for timeout management */
  41542. tickstart = HAL_GetTick();
  41543. 8011e30: f7f3 fd34 bl 800589c <HAL_GetTick>
  41544. 8011e34: 6578 str r0, [r7, #84] @ 0x54
  41545. /* Check if the Transmitter is enabled */
  41546. if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
  41547. 8011e36: 687b ldr r3, [r7, #4]
  41548. 8011e38: 681b ldr r3, [r3, #0]
  41549. 8011e3a: 681b ldr r3, [r3, #0]
  41550. 8011e3c: f003 0308 and.w r3, r3, #8
  41551. 8011e40: 2b08 cmp r3, #8
  41552. 8011e42: d12f bne.n 8011ea4 <UART_CheckIdleState+0x84>
  41553. {
  41554. /* Wait until TEACK flag is set */
  41555. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  41556. 8011e44: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  41557. 8011e48: 9300 str r3, [sp, #0]
  41558. 8011e4a: 6d7b ldr r3, [r7, #84] @ 0x54
  41559. 8011e4c: 2200 movs r2, #0
  41560. 8011e4e: f44f 1100 mov.w r1, #2097152 @ 0x200000
  41561. 8011e52: 6878 ldr r0, [r7, #4]
  41562. 8011e54: f000 f88e bl 8011f74 <UART_WaitOnFlagUntilTimeout>
  41563. 8011e58: 4603 mov r3, r0
  41564. 8011e5a: 2b00 cmp r3, #0
  41565. 8011e5c: d022 beq.n 8011ea4 <UART_CheckIdleState+0x84>
  41566. {
  41567. /* Disable TXE interrupt for the interrupt process */
  41568. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE_TXFNFIE));
  41569. 8011e5e: 687b ldr r3, [r7, #4]
  41570. 8011e60: 681b ldr r3, [r3, #0]
  41571. 8011e62: 63bb str r3, [r7, #56] @ 0x38
  41572. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41573. 8011e64: 6bbb ldr r3, [r7, #56] @ 0x38
  41574. 8011e66: e853 3f00 ldrex r3, [r3]
  41575. 8011e6a: 637b str r3, [r7, #52] @ 0x34
  41576. return(result);
  41577. 8011e6c: 6b7b ldr r3, [r7, #52] @ 0x34
  41578. 8011e6e: f023 0380 bic.w r3, r3, #128 @ 0x80
  41579. 8011e72: 653b str r3, [r7, #80] @ 0x50
  41580. 8011e74: 687b ldr r3, [r7, #4]
  41581. 8011e76: 681b ldr r3, [r3, #0]
  41582. 8011e78: 461a mov r2, r3
  41583. 8011e7a: 6d3b ldr r3, [r7, #80] @ 0x50
  41584. 8011e7c: 647b str r3, [r7, #68] @ 0x44
  41585. 8011e7e: 643a str r2, [r7, #64] @ 0x40
  41586. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41587. 8011e80: 6c39 ldr r1, [r7, #64] @ 0x40
  41588. 8011e82: 6c7a ldr r2, [r7, #68] @ 0x44
  41589. 8011e84: e841 2300 strex r3, r2, [r1]
  41590. 8011e88: 63fb str r3, [r7, #60] @ 0x3c
  41591. return(result);
  41592. 8011e8a: 6bfb ldr r3, [r7, #60] @ 0x3c
  41593. 8011e8c: 2b00 cmp r3, #0
  41594. 8011e8e: d1e6 bne.n 8011e5e <UART_CheckIdleState+0x3e>
  41595. huart->gState = HAL_UART_STATE_READY;
  41596. 8011e90: 687b ldr r3, [r7, #4]
  41597. 8011e92: 2220 movs r2, #32
  41598. 8011e94: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  41599. __HAL_UNLOCK(huart);
  41600. 8011e98: 687b ldr r3, [r7, #4]
  41601. 8011e9a: 2200 movs r2, #0
  41602. 8011e9c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  41603. /* Timeout occurred */
  41604. return HAL_TIMEOUT;
  41605. 8011ea0: 2303 movs r3, #3
  41606. 8011ea2: e063 b.n 8011f6c <UART_CheckIdleState+0x14c>
  41607. }
  41608. }
  41609. /* Check if the Receiver is enabled */
  41610. if ((huart->Instance->CR1 & USART_CR1_RE) == USART_CR1_RE)
  41611. 8011ea4: 687b ldr r3, [r7, #4]
  41612. 8011ea6: 681b ldr r3, [r3, #0]
  41613. 8011ea8: 681b ldr r3, [r3, #0]
  41614. 8011eaa: f003 0304 and.w r3, r3, #4
  41615. 8011eae: 2b04 cmp r3, #4
  41616. 8011eb0: d149 bne.n 8011f46 <UART_CheckIdleState+0x126>
  41617. {
  41618. /* Wait until REACK flag is set */
  41619. if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_REACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
  41620. 8011eb2: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
  41621. 8011eb6: 9300 str r3, [sp, #0]
  41622. 8011eb8: 6d7b ldr r3, [r7, #84] @ 0x54
  41623. 8011eba: 2200 movs r2, #0
  41624. 8011ebc: f44f 0180 mov.w r1, #4194304 @ 0x400000
  41625. 8011ec0: 6878 ldr r0, [r7, #4]
  41626. 8011ec2: f000 f857 bl 8011f74 <UART_WaitOnFlagUntilTimeout>
  41627. 8011ec6: 4603 mov r3, r0
  41628. 8011ec8: 2b00 cmp r3, #0
  41629. 8011eca: d03c beq.n 8011f46 <UART_CheckIdleState+0x126>
  41630. {
  41631. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error)
  41632. interrupts for the interrupt process */
  41633. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  41634. 8011ecc: 687b ldr r3, [r7, #4]
  41635. 8011ece: 681b ldr r3, [r3, #0]
  41636. 8011ed0: 627b str r3, [r7, #36] @ 0x24
  41637. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41638. 8011ed2: 6a7b ldr r3, [r7, #36] @ 0x24
  41639. 8011ed4: e853 3f00 ldrex r3, [r3]
  41640. 8011ed8: 623b str r3, [r7, #32]
  41641. return(result);
  41642. 8011eda: 6a3b ldr r3, [r7, #32]
  41643. 8011edc: f423 7390 bic.w r3, r3, #288 @ 0x120
  41644. 8011ee0: 64fb str r3, [r7, #76] @ 0x4c
  41645. 8011ee2: 687b ldr r3, [r7, #4]
  41646. 8011ee4: 681b ldr r3, [r3, #0]
  41647. 8011ee6: 461a mov r2, r3
  41648. 8011ee8: 6cfb ldr r3, [r7, #76] @ 0x4c
  41649. 8011eea: 633b str r3, [r7, #48] @ 0x30
  41650. 8011eec: 62fa str r2, [r7, #44] @ 0x2c
  41651. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41652. 8011eee: 6af9 ldr r1, [r7, #44] @ 0x2c
  41653. 8011ef0: 6b3a ldr r2, [r7, #48] @ 0x30
  41654. 8011ef2: e841 2300 strex r3, r2, [r1]
  41655. 8011ef6: 62bb str r3, [r7, #40] @ 0x28
  41656. return(result);
  41657. 8011ef8: 6abb ldr r3, [r7, #40] @ 0x28
  41658. 8011efa: 2b00 cmp r3, #0
  41659. 8011efc: d1e6 bne.n 8011ecc <UART_CheckIdleState+0xac>
  41660. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  41661. 8011efe: 687b ldr r3, [r7, #4]
  41662. 8011f00: 681b ldr r3, [r3, #0]
  41663. 8011f02: 3308 adds r3, #8
  41664. 8011f04: 613b str r3, [r7, #16]
  41665. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41666. 8011f06: 693b ldr r3, [r7, #16]
  41667. 8011f08: e853 3f00 ldrex r3, [r3]
  41668. 8011f0c: 60fb str r3, [r7, #12]
  41669. return(result);
  41670. 8011f0e: 68fb ldr r3, [r7, #12]
  41671. 8011f10: f023 0301 bic.w r3, r3, #1
  41672. 8011f14: 64bb str r3, [r7, #72] @ 0x48
  41673. 8011f16: 687b ldr r3, [r7, #4]
  41674. 8011f18: 681b ldr r3, [r3, #0]
  41675. 8011f1a: 3308 adds r3, #8
  41676. 8011f1c: 6cba ldr r2, [r7, #72] @ 0x48
  41677. 8011f1e: 61fa str r2, [r7, #28]
  41678. 8011f20: 61bb str r3, [r7, #24]
  41679. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41680. 8011f22: 69b9 ldr r1, [r7, #24]
  41681. 8011f24: 69fa ldr r2, [r7, #28]
  41682. 8011f26: e841 2300 strex r3, r2, [r1]
  41683. 8011f2a: 617b str r3, [r7, #20]
  41684. return(result);
  41685. 8011f2c: 697b ldr r3, [r7, #20]
  41686. 8011f2e: 2b00 cmp r3, #0
  41687. 8011f30: d1e5 bne.n 8011efe <UART_CheckIdleState+0xde>
  41688. huart->RxState = HAL_UART_STATE_READY;
  41689. 8011f32: 687b ldr r3, [r7, #4]
  41690. 8011f34: 2220 movs r2, #32
  41691. 8011f36: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41692. __HAL_UNLOCK(huart);
  41693. 8011f3a: 687b ldr r3, [r7, #4]
  41694. 8011f3c: 2200 movs r2, #0
  41695. 8011f3e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  41696. /* Timeout occurred */
  41697. return HAL_TIMEOUT;
  41698. 8011f42: 2303 movs r3, #3
  41699. 8011f44: e012 b.n 8011f6c <UART_CheckIdleState+0x14c>
  41700. }
  41701. }
  41702. /* Initialize the UART State */
  41703. huart->gState = HAL_UART_STATE_READY;
  41704. 8011f46: 687b ldr r3, [r7, #4]
  41705. 8011f48: 2220 movs r2, #32
  41706. 8011f4a: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  41707. huart->RxState = HAL_UART_STATE_READY;
  41708. 8011f4e: 687b ldr r3, [r7, #4]
  41709. 8011f50: 2220 movs r2, #32
  41710. 8011f52: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41711. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  41712. 8011f56: 687b ldr r3, [r7, #4]
  41713. 8011f58: 2200 movs r2, #0
  41714. 8011f5a: 66da str r2, [r3, #108] @ 0x6c
  41715. huart->RxEventType = HAL_UART_RXEVENT_TC;
  41716. 8011f5c: 687b ldr r3, [r7, #4]
  41717. 8011f5e: 2200 movs r2, #0
  41718. 8011f60: 671a str r2, [r3, #112] @ 0x70
  41719. __HAL_UNLOCK(huart);
  41720. 8011f62: 687b ldr r3, [r7, #4]
  41721. 8011f64: 2200 movs r2, #0
  41722. 8011f66: f883 2084 strb.w r2, [r3, #132] @ 0x84
  41723. return HAL_OK;
  41724. 8011f6a: 2300 movs r3, #0
  41725. }
  41726. 8011f6c: 4618 mov r0, r3
  41727. 8011f6e: 3758 adds r7, #88 @ 0x58
  41728. 8011f70: 46bd mov sp, r7
  41729. 8011f72: bd80 pop {r7, pc}
  41730. 08011f74 <UART_WaitOnFlagUntilTimeout>:
  41731. * @param Timeout Timeout duration
  41732. * @retval HAL status
  41733. */
  41734. HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
  41735. uint32_t Tickstart, uint32_t Timeout)
  41736. {
  41737. 8011f74: b580 push {r7, lr}
  41738. 8011f76: b084 sub sp, #16
  41739. 8011f78: af00 add r7, sp, #0
  41740. 8011f7a: 60f8 str r0, [r7, #12]
  41741. 8011f7c: 60b9 str r1, [r7, #8]
  41742. 8011f7e: 603b str r3, [r7, #0]
  41743. 8011f80: 4613 mov r3, r2
  41744. 8011f82: 71fb strb r3, [r7, #7]
  41745. /* Wait until flag is set */
  41746. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  41747. 8011f84: e04f b.n 8012026 <UART_WaitOnFlagUntilTimeout+0xb2>
  41748. {
  41749. /* Check for the Timeout */
  41750. if (Timeout != HAL_MAX_DELAY)
  41751. 8011f86: 69bb ldr r3, [r7, #24]
  41752. 8011f88: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  41753. 8011f8c: d04b beq.n 8012026 <UART_WaitOnFlagUntilTimeout+0xb2>
  41754. {
  41755. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  41756. 8011f8e: f7f3 fc85 bl 800589c <HAL_GetTick>
  41757. 8011f92: 4602 mov r2, r0
  41758. 8011f94: 683b ldr r3, [r7, #0]
  41759. 8011f96: 1ad3 subs r3, r2, r3
  41760. 8011f98: 69ba ldr r2, [r7, #24]
  41761. 8011f9a: 429a cmp r2, r3
  41762. 8011f9c: d302 bcc.n 8011fa4 <UART_WaitOnFlagUntilTimeout+0x30>
  41763. 8011f9e: 69bb ldr r3, [r7, #24]
  41764. 8011fa0: 2b00 cmp r3, #0
  41765. 8011fa2: d101 bne.n 8011fa8 <UART_WaitOnFlagUntilTimeout+0x34>
  41766. {
  41767. return HAL_TIMEOUT;
  41768. 8011fa4: 2303 movs r3, #3
  41769. 8011fa6: e04e b.n 8012046 <UART_WaitOnFlagUntilTimeout+0xd2>
  41770. }
  41771. if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
  41772. 8011fa8: 68fb ldr r3, [r7, #12]
  41773. 8011faa: 681b ldr r3, [r3, #0]
  41774. 8011fac: 681b ldr r3, [r3, #0]
  41775. 8011fae: f003 0304 and.w r3, r3, #4
  41776. 8011fb2: 2b00 cmp r3, #0
  41777. 8011fb4: d037 beq.n 8012026 <UART_WaitOnFlagUntilTimeout+0xb2>
  41778. 8011fb6: 68bb ldr r3, [r7, #8]
  41779. 8011fb8: 2b80 cmp r3, #128 @ 0x80
  41780. 8011fba: d034 beq.n 8012026 <UART_WaitOnFlagUntilTimeout+0xb2>
  41781. 8011fbc: 68bb ldr r3, [r7, #8]
  41782. 8011fbe: 2b40 cmp r3, #64 @ 0x40
  41783. 8011fc0: d031 beq.n 8012026 <UART_WaitOnFlagUntilTimeout+0xb2>
  41784. {
  41785. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
  41786. 8011fc2: 68fb ldr r3, [r7, #12]
  41787. 8011fc4: 681b ldr r3, [r3, #0]
  41788. 8011fc6: 69db ldr r3, [r3, #28]
  41789. 8011fc8: f003 0308 and.w r3, r3, #8
  41790. 8011fcc: 2b08 cmp r3, #8
  41791. 8011fce: d110 bne.n 8011ff2 <UART_WaitOnFlagUntilTimeout+0x7e>
  41792. {
  41793. /* Clear Overrun Error flag*/
  41794. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
  41795. 8011fd0: 68fb ldr r3, [r7, #12]
  41796. 8011fd2: 681b ldr r3, [r3, #0]
  41797. 8011fd4: 2208 movs r2, #8
  41798. 8011fd6: 621a str r2, [r3, #32]
  41799. /* Blocking error : transfer is aborted
  41800. Set the UART state ready to be able to start again the process,
  41801. Disable Rx Interrupts if ongoing */
  41802. UART_EndRxTransfer(huart);
  41803. 8011fd8: 68f8 ldr r0, [r7, #12]
  41804. 8011fda: f000 f95b bl 8012294 <UART_EndRxTransfer>
  41805. huart->ErrorCode = HAL_UART_ERROR_ORE;
  41806. 8011fde: 68fb ldr r3, [r7, #12]
  41807. 8011fe0: 2208 movs r2, #8
  41808. 8011fe2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41809. /* Process Unlocked */
  41810. __HAL_UNLOCK(huart);
  41811. 8011fe6: 68fb ldr r3, [r7, #12]
  41812. 8011fe8: 2200 movs r2, #0
  41813. 8011fea: f883 2084 strb.w r2, [r3, #132] @ 0x84
  41814. return HAL_ERROR;
  41815. 8011fee: 2301 movs r3, #1
  41816. 8011ff0: e029 b.n 8012046 <UART_WaitOnFlagUntilTimeout+0xd2>
  41817. }
  41818. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
  41819. 8011ff2: 68fb ldr r3, [r7, #12]
  41820. 8011ff4: 681b ldr r3, [r3, #0]
  41821. 8011ff6: 69db ldr r3, [r3, #28]
  41822. 8011ff8: f403 6300 and.w r3, r3, #2048 @ 0x800
  41823. 8011ffc: f5b3 6f00 cmp.w r3, #2048 @ 0x800
  41824. 8012000: d111 bne.n 8012026 <UART_WaitOnFlagUntilTimeout+0xb2>
  41825. {
  41826. /* Clear Receiver Timeout flag*/
  41827. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
  41828. 8012002: 68fb ldr r3, [r7, #12]
  41829. 8012004: 681b ldr r3, [r3, #0]
  41830. 8012006: f44f 6200 mov.w r2, #2048 @ 0x800
  41831. 801200a: 621a str r2, [r3, #32]
  41832. /* Blocking error : transfer is aborted
  41833. Set the UART state ready to be able to start again the process,
  41834. Disable Rx Interrupts if ongoing */
  41835. UART_EndRxTransfer(huart);
  41836. 801200c: 68f8 ldr r0, [r7, #12]
  41837. 801200e: f000 f941 bl 8012294 <UART_EndRxTransfer>
  41838. huart->ErrorCode = HAL_UART_ERROR_RTO;
  41839. 8012012: 68fb ldr r3, [r7, #12]
  41840. 8012014: 2220 movs r2, #32
  41841. 8012016: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41842. /* Process Unlocked */
  41843. __HAL_UNLOCK(huart);
  41844. 801201a: 68fb ldr r3, [r7, #12]
  41845. 801201c: 2200 movs r2, #0
  41846. 801201e: f883 2084 strb.w r2, [r3, #132] @ 0x84
  41847. return HAL_TIMEOUT;
  41848. 8012022: 2303 movs r3, #3
  41849. 8012024: e00f b.n 8012046 <UART_WaitOnFlagUntilTimeout+0xd2>
  41850. while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
  41851. 8012026: 68fb ldr r3, [r7, #12]
  41852. 8012028: 681b ldr r3, [r3, #0]
  41853. 801202a: 69da ldr r2, [r3, #28]
  41854. 801202c: 68bb ldr r3, [r7, #8]
  41855. 801202e: 4013 ands r3, r2
  41856. 8012030: 68ba ldr r2, [r7, #8]
  41857. 8012032: 429a cmp r2, r3
  41858. 8012034: bf0c ite eq
  41859. 8012036: 2301 moveq r3, #1
  41860. 8012038: 2300 movne r3, #0
  41861. 801203a: b2db uxtb r3, r3
  41862. 801203c: 461a mov r2, r3
  41863. 801203e: 79fb ldrb r3, [r7, #7]
  41864. 8012040: 429a cmp r2, r3
  41865. 8012042: d0a0 beq.n 8011f86 <UART_WaitOnFlagUntilTimeout+0x12>
  41866. }
  41867. }
  41868. }
  41869. }
  41870. return HAL_OK;
  41871. 8012044: 2300 movs r3, #0
  41872. }
  41873. 8012046: 4618 mov r0, r3
  41874. 8012048: 3710 adds r7, #16
  41875. 801204a: 46bd mov sp, r7
  41876. 801204c: bd80 pop {r7, pc}
  41877. ...
  41878. 08012050 <UART_Start_Receive_IT>:
  41879. * @param pData Pointer to data buffer (u8 or u16 data elements).
  41880. * @param Size Amount of data elements (u8 or u16) to be received.
  41881. * @retval HAL status
  41882. */
  41883. HAL_StatusTypeDef UART_Start_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  41884. {
  41885. 8012050: b480 push {r7}
  41886. 8012052: b0a3 sub sp, #140 @ 0x8c
  41887. 8012054: af00 add r7, sp, #0
  41888. 8012056: 60f8 str r0, [r7, #12]
  41889. 8012058: 60b9 str r1, [r7, #8]
  41890. 801205a: 4613 mov r3, r2
  41891. 801205c: 80fb strh r3, [r7, #6]
  41892. huart->pRxBuffPtr = pData;
  41893. 801205e: 68fb ldr r3, [r7, #12]
  41894. 8012060: 68ba ldr r2, [r7, #8]
  41895. 8012062: 659a str r2, [r3, #88] @ 0x58
  41896. huart->RxXferSize = Size;
  41897. 8012064: 68fb ldr r3, [r7, #12]
  41898. 8012066: 88fa ldrh r2, [r7, #6]
  41899. 8012068: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
  41900. huart->RxXferCount = Size;
  41901. 801206c: 68fb ldr r3, [r7, #12]
  41902. 801206e: 88fa ldrh r2, [r7, #6]
  41903. 8012070: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  41904. huart->RxISR = NULL;
  41905. 8012074: 68fb ldr r3, [r7, #12]
  41906. 8012076: 2200 movs r2, #0
  41907. 8012078: 675a str r2, [r3, #116] @ 0x74
  41908. /* Computation of UART mask to apply to RDR register */
  41909. UART_MASK_COMPUTATION(huart);
  41910. 801207a: 68fb ldr r3, [r7, #12]
  41911. 801207c: 689b ldr r3, [r3, #8]
  41912. 801207e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  41913. 8012082: d10e bne.n 80120a2 <UART_Start_Receive_IT+0x52>
  41914. 8012084: 68fb ldr r3, [r7, #12]
  41915. 8012086: 691b ldr r3, [r3, #16]
  41916. 8012088: 2b00 cmp r3, #0
  41917. 801208a: d105 bne.n 8012098 <UART_Start_Receive_IT+0x48>
  41918. 801208c: 68fb ldr r3, [r7, #12]
  41919. 801208e: f240 12ff movw r2, #511 @ 0x1ff
  41920. 8012092: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  41921. 8012096: e02d b.n 80120f4 <UART_Start_Receive_IT+0xa4>
  41922. 8012098: 68fb ldr r3, [r7, #12]
  41923. 801209a: 22ff movs r2, #255 @ 0xff
  41924. 801209c: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  41925. 80120a0: e028 b.n 80120f4 <UART_Start_Receive_IT+0xa4>
  41926. 80120a2: 68fb ldr r3, [r7, #12]
  41927. 80120a4: 689b ldr r3, [r3, #8]
  41928. 80120a6: 2b00 cmp r3, #0
  41929. 80120a8: d10d bne.n 80120c6 <UART_Start_Receive_IT+0x76>
  41930. 80120aa: 68fb ldr r3, [r7, #12]
  41931. 80120ac: 691b ldr r3, [r3, #16]
  41932. 80120ae: 2b00 cmp r3, #0
  41933. 80120b0: d104 bne.n 80120bc <UART_Start_Receive_IT+0x6c>
  41934. 80120b2: 68fb ldr r3, [r7, #12]
  41935. 80120b4: 22ff movs r2, #255 @ 0xff
  41936. 80120b6: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  41937. 80120ba: e01b b.n 80120f4 <UART_Start_Receive_IT+0xa4>
  41938. 80120bc: 68fb ldr r3, [r7, #12]
  41939. 80120be: 227f movs r2, #127 @ 0x7f
  41940. 80120c0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  41941. 80120c4: e016 b.n 80120f4 <UART_Start_Receive_IT+0xa4>
  41942. 80120c6: 68fb ldr r3, [r7, #12]
  41943. 80120c8: 689b ldr r3, [r3, #8]
  41944. 80120ca: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  41945. 80120ce: d10d bne.n 80120ec <UART_Start_Receive_IT+0x9c>
  41946. 80120d0: 68fb ldr r3, [r7, #12]
  41947. 80120d2: 691b ldr r3, [r3, #16]
  41948. 80120d4: 2b00 cmp r3, #0
  41949. 80120d6: d104 bne.n 80120e2 <UART_Start_Receive_IT+0x92>
  41950. 80120d8: 68fb ldr r3, [r7, #12]
  41951. 80120da: 227f movs r2, #127 @ 0x7f
  41952. 80120dc: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  41953. 80120e0: e008 b.n 80120f4 <UART_Start_Receive_IT+0xa4>
  41954. 80120e2: 68fb ldr r3, [r7, #12]
  41955. 80120e4: 223f movs r2, #63 @ 0x3f
  41956. 80120e6: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  41957. 80120ea: e003 b.n 80120f4 <UART_Start_Receive_IT+0xa4>
  41958. 80120ec: 68fb ldr r3, [r7, #12]
  41959. 80120ee: 2200 movs r2, #0
  41960. 80120f0: f8a3 2060 strh.w r2, [r3, #96] @ 0x60
  41961. huart->ErrorCode = HAL_UART_ERROR_NONE;
  41962. 80120f4: 68fb ldr r3, [r7, #12]
  41963. 80120f6: 2200 movs r2, #0
  41964. 80120f8: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  41965. huart->RxState = HAL_UART_STATE_BUSY_RX;
  41966. 80120fc: 68fb ldr r3, [r7, #12]
  41967. 80120fe: 2222 movs r2, #34 @ 0x22
  41968. 8012100: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  41969. /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  41970. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE);
  41971. 8012104: 68fb ldr r3, [r7, #12]
  41972. 8012106: 681b ldr r3, [r3, #0]
  41973. 8012108: 3308 adds r3, #8
  41974. 801210a: 667b str r3, [r7, #100] @ 0x64
  41975. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  41976. 801210c: 6e7b ldr r3, [r7, #100] @ 0x64
  41977. 801210e: e853 3f00 ldrex r3, [r3]
  41978. 8012112: 663b str r3, [r7, #96] @ 0x60
  41979. return(result);
  41980. 8012114: 6e3b ldr r3, [r7, #96] @ 0x60
  41981. 8012116: f043 0301 orr.w r3, r3, #1
  41982. 801211a: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  41983. 801211e: 68fb ldr r3, [r7, #12]
  41984. 8012120: 681b ldr r3, [r3, #0]
  41985. 8012122: 3308 adds r3, #8
  41986. 8012124: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  41987. 8012128: 673a str r2, [r7, #112] @ 0x70
  41988. 801212a: 66fb str r3, [r7, #108] @ 0x6c
  41989. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  41990. 801212c: 6ef9 ldr r1, [r7, #108] @ 0x6c
  41991. 801212e: 6f3a ldr r2, [r7, #112] @ 0x70
  41992. 8012130: e841 2300 strex r3, r2, [r1]
  41993. 8012134: 66bb str r3, [r7, #104] @ 0x68
  41994. return(result);
  41995. 8012136: 6ebb ldr r3, [r7, #104] @ 0x68
  41996. 8012138: 2b00 cmp r3, #0
  41997. 801213a: d1e3 bne.n 8012104 <UART_Start_Receive_IT+0xb4>
  41998. /* Configure Rx interrupt processing */
  41999. if ((huart->FifoMode == UART_FIFOMODE_ENABLE) && (Size >= huart->NbRxDataToProcess))
  42000. 801213c: 68fb ldr r3, [r7, #12]
  42001. 801213e: 6e5b ldr r3, [r3, #100] @ 0x64
  42002. 8012140: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
  42003. 8012144: d14f bne.n 80121e6 <UART_Start_Receive_IT+0x196>
  42004. 8012146: 68fb ldr r3, [r7, #12]
  42005. 8012148: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  42006. 801214c: 88fa ldrh r2, [r7, #6]
  42007. 801214e: 429a cmp r2, r3
  42008. 8012150: d349 bcc.n 80121e6 <UART_Start_Receive_IT+0x196>
  42009. {
  42010. /* Set the Rx ISR function pointer according to the data word length */
  42011. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42012. 8012152: 68fb ldr r3, [r7, #12]
  42013. 8012154: 689b ldr r3, [r3, #8]
  42014. 8012156: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42015. 801215a: d107 bne.n 801216c <UART_Start_Receive_IT+0x11c>
  42016. 801215c: 68fb ldr r3, [r7, #12]
  42017. 801215e: 691b ldr r3, [r3, #16]
  42018. 8012160: 2b00 cmp r3, #0
  42019. 8012162: d103 bne.n 801216c <UART_Start_Receive_IT+0x11c>
  42020. {
  42021. huart->RxISR = UART_RxISR_16BIT_FIFOEN;
  42022. 8012164: 68fb ldr r3, [r7, #12]
  42023. 8012166: 4a47 ldr r2, [pc, #284] @ (8012284 <UART_Start_Receive_IT+0x234>)
  42024. 8012168: 675a str r2, [r3, #116] @ 0x74
  42025. 801216a: e002 b.n 8012172 <UART_Start_Receive_IT+0x122>
  42026. }
  42027. else
  42028. {
  42029. huart->RxISR = UART_RxISR_8BIT_FIFOEN;
  42030. 801216c: 68fb ldr r3, [r7, #12]
  42031. 801216e: 4a46 ldr r2, [pc, #280] @ (8012288 <UART_Start_Receive_IT+0x238>)
  42032. 8012170: 675a str r2, [r3, #116] @ 0x74
  42033. }
  42034. /* Enable the UART Parity Error interrupt and RX FIFO Threshold interrupt */
  42035. if (huart->Init.Parity != UART_PARITY_NONE)
  42036. 8012172: 68fb ldr r3, [r7, #12]
  42037. 8012174: 691b ldr r3, [r3, #16]
  42038. 8012176: 2b00 cmp r3, #0
  42039. 8012178: d01a beq.n 80121b0 <UART_Start_Receive_IT+0x160>
  42040. {
  42041. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  42042. 801217a: 68fb ldr r3, [r7, #12]
  42043. 801217c: 681b ldr r3, [r3, #0]
  42044. 801217e: 653b str r3, [r7, #80] @ 0x50
  42045. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42046. 8012180: 6d3b ldr r3, [r7, #80] @ 0x50
  42047. 8012182: e853 3f00 ldrex r3, [r3]
  42048. 8012186: 64fb str r3, [r7, #76] @ 0x4c
  42049. return(result);
  42050. 8012188: 6cfb ldr r3, [r7, #76] @ 0x4c
  42051. 801218a: f443 7380 orr.w r3, r3, #256 @ 0x100
  42052. 801218e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  42053. 8012192: 68fb ldr r3, [r7, #12]
  42054. 8012194: 681b ldr r3, [r3, #0]
  42055. 8012196: 461a mov r2, r3
  42056. 8012198: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  42057. 801219c: 65fb str r3, [r7, #92] @ 0x5c
  42058. 801219e: 65ba str r2, [r7, #88] @ 0x58
  42059. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42060. 80121a0: 6db9 ldr r1, [r7, #88] @ 0x58
  42061. 80121a2: 6dfa ldr r2, [r7, #92] @ 0x5c
  42062. 80121a4: e841 2300 strex r3, r2, [r1]
  42063. 80121a8: 657b str r3, [r7, #84] @ 0x54
  42064. return(result);
  42065. 80121aa: 6d7b ldr r3, [r7, #84] @ 0x54
  42066. 80121ac: 2b00 cmp r3, #0
  42067. 80121ae: d1e4 bne.n 801217a <UART_Start_Receive_IT+0x12a>
  42068. }
  42069. ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  42070. 80121b0: 68fb ldr r3, [r7, #12]
  42071. 80121b2: 681b ldr r3, [r3, #0]
  42072. 80121b4: 3308 adds r3, #8
  42073. 80121b6: 63fb str r3, [r7, #60] @ 0x3c
  42074. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42075. 80121b8: 6bfb ldr r3, [r7, #60] @ 0x3c
  42076. 80121ba: e853 3f00 ldrex r3, [r3]
  42077. 80121be: 63bb str r3, [r7, #56] @ 0x38
  42078. return(result);
  42079. 80121c0: 6bbb ldr r3, [r7, #56] @ 0x38
  42080. 80121c2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
  42081. 80121c6: 67fb str r3, [r7, #124] @ 0x7c
  42082. 80121c8: 68fb ldr r3, [r7, #12]
  42083. 80121ca: 681b ldr r3, [r3, #0]
  42084. 80121cc: 3308 adds r3, #8
  42085. 80121ce: 6ffa ldr r2, [r7, #124] @ 0x7c
  42086. 80121d0: 64ba str r2, [r7, #72] @ 0x48
  42087. 80121d2: 647b str r3, [r7, #68] @ 0x44
  42088. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42089. 80121d4: 6c79 ldr r1, [r7, #68] @ 0x44
  42090. 80121d6: 6cba ldr r2, [r7, #72] @ 0x48
  42091. 80121d8: e841 2300 strex r3, r2, [r1]
  42092. 80121dc: 643b str r3, [r7, #64] @ 0x40
  42093. return(result);
  42094. 80121de: 6c3b ldr r3, [r7, #64] @ 0x40
  42095. 80121e0: 2b00 cmp r3, #0
  42096. 80121e2: d1e5 bne.n 80121b0 <UART_Start_Receive_IT+0x160>
  42097. 80121e4: e046 b.n 8012274 <UART_Start_Receive_IT+0x224>
  42098. }
  42099. else
  42100. {
  42101. /* Set the Rx ISR function pointer according to the data word length */
  42102. if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
  42103. 80121e6: 68fb ldr r3, [r7, #12]
  42104. 80121e8: 689b ldr r3, [r3, #8]
  42105. 80121ea: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
  42106. 80121ee: d107 bne.n 8012200 <UART_Start_Receive_IT+0x1b0>
  42107. 80121f0: 68fb ldr r3, [r7, #12]
  42108. 80121f2: 691b ldr r3, [r3, #16]
  42109. 80121f4: 2b00 cmp r3, #0
  42110. 80121f6: d103 bne.n 8012200 <UART_Start_Receive_IT+0x1b0>
  42111. {
  42112. huart->RxISR = UART_RxISR_16BIT;
  42113. 80121f8: 68fb ldr r3, [r7, #12]
  42114. 80121fa: 4a24 ldr r2, [pc, #144] @ (801228c <UART_Start_Receive_IT+0x23c>)
  42115. 80121fc: 675a str r2, [r3, #116] @ 0x74
  42116. 80121fe: e002 b.n 8012206 <UART_Start_Receive_IT+0x1b6>
  42117. }
  42118. else
  42119. {
  42120. huart->RxISR = UART_RxISR_8BIT;
  42121. 8012200: 68fb ldr r3, [r7, #12]
  42122. 8012202: 4a23 ldr r2, [pc, #140] @ (8012290 <UART_Start_Receive_IT+0x240>)
  42123. 8012204: 675a str r2, [r3, #116] @ 0x74
  42124. }
  42125. /* Enable the UART Parity Error interrupt and Data Register Not Empty interrupt */
  42126. if (huart->Init.Parity != UART_PARITY_NONE)
  42127. 8012206: 68fb ldr r3, [r7, #12]
  42128. 8012208: 691b ldr r3, [r3, #16]
  42129. 801220a: 2b00 cmp r3, #0
  42130. 801220c: d019 beq.n 8012242 <UART_Start_Receive_IT+0x1f2>
  42131. {
  42132. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE | USART_CR1_RXNEIE_RXFNEIE);
  42133. 801220e: 68fb ldr r3, [r7, #12]
  42134. 8012210: 681b ldr r3, [r3, #0]
  42135. 8012212: 62bb str r3, [r7, #40] @ 0x28
  42136. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42137. 8012214: 6abb ldr r3, [r7, #40] @ 0x28
  42138. 8012216: e853 3f00 ldrex r3, [r3]
  42139. 801221a: 627b str r3, [r7, #36] @ 0x24
  42140. return(result);
  42141. 801221c: 6a7b ldr r3, [r7, #36] @ 0x24
  42142. 801221e: f443 7390 orr.w r3, r3, #288 @ 0x120
  42143. 8012222: 677b str r3, [r7, #116] @ 0x74
  42144. 8012224: 68fb ldr r3, [r7, #12]
  42145. 8012226: 681b ldr r3, [r3, #0]
  42146. 8012228: 461a mov r2, r3
  42147. 801222a: 6f7b ldr r3, [r7, #116] @ 0x74
  42148. 801222c: 637b str r3, [r7, #52] @ 0x34
  42149. 801222e: 633a str r2, [r7, #48] @ 0x30
  42150. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42151. 8012230: 6b39 ldr r1, [r7, #48] @ 0x30
  42152. 8012232: 6b7a ldr r2, [r7, #52] @ 0x34
  42153. 8012234: e841 2300 strex r3, r2, [r1]
  42154. 8012238: 62fb str r3, [r7, #44] @ 0x2c
  42155. return(result);
  42156. 801223a: 6afb ldr r3, [r7, #44] @ 0x2c
  42157. 801223c: 2b00 cmp r3, #0
  42158. 801223e: d1e6 bne.n 801220e <UART_Start_Receive_IT+0x1be>
  42159. 8012240: e018 b.n 8012274 <UART_Start_Receive_IT+0x224>
  42160. }
  42161. else
  42162. {
  42163. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  42164. 8012242: 68fb ldr r3, [r7, #12]
  42165. 8012244: 681b ldr r3, [r3, #0]
  42166. 8012246: 617b str r3, [r7, #20]
  42167. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42168. 8012248: 697b ldr r3, [r7, #20]
  42169. 801224a: e853 3f00 ldrex r3, [r3]
  42170. 801224e: 613b str r3, [r7, #16]
  42171. return(result);
  42172. 8012250: 693b ldr r3, [r7, #16]
  42173. 8012252: f043 0320 orr.w r3, r3, #32
  42174. 8012256: 67bb str r3, [r7, #120] @ 0x78
  42175. 8012258: 68fb ldr r3, [r7, #12]
  42176. 801225a: 681b ldr r3, [r3, #0]
  42177. 801225c: 461a mov r2, r3
  42178. 801225e: 6fbb ldr r3, [r7, #120] @ 0x78
  42179. 8012260: 623b str r3, [r7, #32]
  42180. 8012262: 61fa str r2, [r7, #28]
  42181. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42182. 8012264: 69f9 ldr r1, [r7, #28]
  42183. 8012266: 6a3a ldr r2, [r7, #32]
  42184. 8012268: e841 2300 strex r3, r2, [r1]
  42185. 801226c: 61bb str r3, [r7, #24]
  42186. return(result);
  42187. 801226e: 69bb ldr r3, [r7, #24]
  42188. 8012270: 2b00 cmp r3, #0
  42189. 8012272: d1e6 bne.n 8012242 <UART_Start_Receive_IT+0x1f2>
  42190. }
  42191. }
  42192. return HAL_OK;
  42193. 8012274: 2300 movs r3, #0
  42194. }
  42195. 8012276: 4618 mov r0, r3
  42196. 8012278: 378c adds r7, #140 @ 0x8c
  42197. 801227a: 46bd mov sp, r7
  42198. 801227c: f85d 7b04 ldr.w r7, [sp], #4
  42199. 8012280: 4770 bx lr
  42200. 8012282: bf00 nop
  42201. 8012284: 08012df9 .word 0x08012df9
  42202. 8012288: 08012a99 .word 0x08012a99
  42203. 801228c: 080128e1 .word 0x080128e1
  42204. 8012290: 08012729 .word 0x08012729
  42205. 08012294 <UART_EndRxTransfer>:
  42206. * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
  42207. * @param huart UART handle.
  42208. * @retval None
  42209. */
  42210. static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
  42211. {
  42212. 8012294: b480 push {r7}
  42213. 8012296: b095 sub sp, #84 @ 0x54
  42214. 8012298: af00 add r7, sp, #0
  42215. 801229a: 6078 str r0, [r7, #4]
  42216. /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
  42217. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  42218. 801229c: 687b ldr r3, [r7, #4]
  42219. 801229e: 681b ldr r3, [r3, #0]
  42220. 80122a0: 637b str r3, [r7, #52] @ 0x34
  42221. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42222. 80122a2: 6b7b ldr r3, [r7, #52] @ 0x34
  42223. 80122a4: e853 3f00 ldrex r3, [r3]
  42224. 80122a8: 633b str r3, [r7, #48] @ 0x30
  42225. return(result);
  42226. 80122aa: 6b3b ldr r3, [r7, #48] @ 0x30
  42227. 80122ac: f423 7390 bic.w r3, r3, #288 @ 0x120
  42228. 80122b0: 64fb str r3, [r7, #76] @ 0x4c
  42229. 80122b2: 687b ldr r3, [r7, #4]
  42230. 80122b4: 681b ldr r3, [r3, #0]
  42231. 80122b6: 461a mov r2, r3
  42232. 80122b8: 6cfb ldr r3, [r7, #76] @ 0x4c
  42233. 80122ba: 643b str r3, [r7, #64] @ 0x40
  42234. 80122bc: 63fa str r2, [r7, #60] @ 0x3c
  42235. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42236. 80122be: 6bf9 ldr r1, [r7, #60] @ 0x3c
  42237. 80122c0: 6c3a ldr r2, [r7, #64] @ 0x40
  42238. 80122c2: e841 2300 strex r3, r2, [r1]
  42239. 80122c6: 63bb str r3, [r7, #56] @ 0x38
  42240. return(result);
  42241. 80122c8: 6bbb ldr r3, [r7, #56] @ 0x38
  42242. 80122ca: 2b00 cmp r3, #0
  42243. 80122cc: d1e6 bne.n 801229c <UART_EndRxTransfer+0x8>
  42244. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  42245. 80122ce: 687b ldr r3, [r7, #4]
  42246. 80122d0: 681b ldr r3, [r3, #0]
  42247. 80122d2: 3308 adds r3, #8
  42248. 80122d4: 623b str r3, [r7, #32]
  42249. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42250. 80122d6: 6a3b ldr r3, [r7, #32]
  42251. 80122d8: e853 3f00 ldrex r3, [r3]
  42252. 80122dc: 61fb str r3, [r7, #28]
  42253. return(result);
  42254. 80122de: 69fa ldr r2, [r7, #28]
  42255. 80122e0: 4b1e ldr r3, [pc, #120] @ (801235c <UART_EndRxTransfer+0xc8>)
  42256. 80122e2: 4013 ands r3, r2
  42257. 80122e4: 64bb str r3, [r7, #72] @ 0x48
  42258. 80122e6: 687b ldr r3, [r7, #4]
  42259. 80122e8: 681b ldr r3, [r3, #0]
  42260. 80122ea: 3308 adds r3, #8
  42261. 80122ec: 6cba ldr r2, [r7, #72] @ 0x48
  42262. 80122ee: 62fa str r2, [r7, #44] @ 0x2c
  42263. 80122f0: 62bb str r3, [r7, #40] @ 0x28
  42264. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42265. 80122f2: 6ab9 ldr r1, [r7, #40] @ 0x28
  42266. 80122f4: 6afa ldr r2, [r7, #44] @ 0x2c
  42267. 80122f6: e841 2300 strex r3, r2, [r1]
  42268. 80122fa: 627b str r3, [r7, #36] @ 0x24
  42269. return(result);
  42270. 80122fc: 6a7b ldr r3, [r7, #36] @ 0x24
  42271. 80122fe: 2b00 cmp r3, #0
  42272. 8012300: d1e5 bne.n 80122ce <UART_EndRxTransfer+0x3a>
  42273. /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
  42274. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  42275. 8012302: 687b ldr r3, [r7, #4]
  42276. 8012304: 6edb ldr r3, [r3, #108] @ 0x6c
  42277. 8012306: 2b01 cmp r3, #1
  42278. 8012308: d118 bne.n 801233c <UART_EndRxTransfer+0xa8>
  42279. {
  42280. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  42281. 801230a: 687b ldr r3, [r7, #4]
  42282. 801230c: 681b ldr r3, [r3, #0]
  42283. 801230e: 60fb str r3, [r7, #12]
  42284. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42285. 8012310: 68fb ldr r3, [r7, #12]
  42286. 8012312: e853 3f00 ldrex r3, [r3]
  42287. 8012316: 60bb str r3, [r7, #8]
  42288. return(result);
  42289. 8012318: 68bb ldr r3, [r7, #8]
  42290. 801231a: f023 0310 bic.w r3, r3, #16
  42291. 801231e: 647b str r3, [r7, #68] @ 0x44
  42292. 8012320: 687b ldr r3, [r7, #4]
  42293. 8012322: 681b ldr r3, [r3, #0]
  42294. 8012324: 461a mov r2, r3
  42295. 8012326: 6c7b ldr r3, [r7, #68] @ 0x44
  42296. 8012328: 61bb str r3, [r7, #24]
  42297. 801232a: 617a str r2, [r7, #20]
  42298. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42299. 801232c: 6979 ldr r1, [r7, #20]
  42300. 801232e: 69ba ldr r2, [r7, #24]
  42301. 8012330: e841 2300 strex r3, r2, [r1]
  42302. 8012334: 613b str r3, [r7, #16]
  42303. return(result);
  42304. 8012336: 693b ldr r3, [r7, #16]
  42305. 8012338: 2b00 cmp r3, #0
  42306. 801233a: d1e6 bne.n 801230a <UART_EndRxTransfer+0x76>
  42307. }
  42308. /* At end of Rx process, restore huart->RxState to Ready */
  42309. huart->RxState = HAL_UART_STATE_READY;
  42310. 801233c: 687b ldr r3, [r7, #4]
  42311. 801233e: 2220 movs r2, #32
  42312. 8012340: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  42313. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  42314. 8012344: 687b ldr r3, [r7, #4]
  42315. 8012346: 2200 movs r2, #0
  42316. 8012348: 66da str r2, [r3, #108] @ 0x6c
  42317. /* Reset RxIsr function pointer */
  42318. huart->RxISR = NULL;
  42319. 801234a: 687b ldr r3, [r7, #4]
  42320. 801234c: 2200 movs r2, #0
  42321. 801234e: 675a str r2, [r3, #116] @ 0x74
  42322. }
  42323. 8012350: bf00 nop
  42324. 8012352: 3754 adds r7, #84 @ 0x54
  42325. 8012354: 46bd mov sp, r7
  42326. 8012356: f85d 7b04 ldr.w r7, [sp], #4
  42327. 801235a: 4770 bx lr
  42328. 801235c: effffffe .word 0xeffffffe
  42329. 08012360 <UART_DMAAbortOnError>:
  42330. * (To be called at end of DMA Abort procedure following error occurrence).
  42331. * @param hdma DMA handle.
  42332. * @retval None
  42333. */
  42334. static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma)
  42335. {
  42336. 8012360: b580 push {r7, lr}
  42337. 8012362: b084 sub sp, #16
  42338. 8012364: af00 add r7, sp, #0
  42339. 8012366: 6078 str r0, [r7, #4]
  42340. UART_HandleTypeDef *huart = (UART_HandleTypeDef *)(hdma->Parent);
  42341. 8012368: 687b ldr r3, [r7, #4]
  42342. 801236a: 6b9b ldr r3, [r3, #56] @ 0x38
  42343. 801236c: 60fb str r3, [r7, #12]
  42344. huart->RxXferCount = 0U;
  42345. 801236e: 68fb ldr r3, [r7, #12]
  42346. 8012370: 2200 movs r2, #0
  42347. 8012372: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  42348. huart->TxXferCount = 0U;
  42349. 8012376: 68fb ldr r3, [r7, #12]
  42350. 8012378: 2200 movs r2, #0
  42351. 801237a: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42352. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  42353. /*Call registered error callback*/
  42354. huart->ErrorCallback(huart);
  42355. #else
  42356. /*Call legacy weak error callback*/
  42357. HAL_UART_ErrorCallback(huart);
  42358. 801237e: 68f8 ldr r0, [r7, #12]
  42359. 8012380: f7fe ff3a bl 80111f8 <HAL_UART_ErrorCallback>
  42360. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  42361. }
  42362. 8012384: bf00 nop
  42363. 8012386: 3710 adds r7, #16
  42364. 8012388: 46bd mov sp, r7
  42365. 801238a: bd80 pop {r7, pc}
  42366. 0801238c <UART_TxISR_8BIT>:
  42367. * interruptions have been enabled by HAL_UART_Transmit_IT().
  42368. * @param huart UART handle.
  42369. * @retval None
  42370. */
  42371. static void UART_TxISR_8BIT(UART_HandleTypeDef *huart)
  42372. {
  42373. 801238c: b480 push {r7}
  42374. 801238e: b08f sub sp, #60 @ 0x3c
  42375. 8012390: af00 add r7, sp, #0
  42376. 8012392: 6078 str r0, [r7, #4]
  42377. /* Check that a Tx process is ongoing */
  42378. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  42379. 8012394: 687b ldr r3, [r7, #4]
  42380. 8012396: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  42381. 801239a: 2b21 cmp r3, #33 @ 0x21
  42382. 801239c: d14c bne.n 8012438 <UART_TxISR_8BIT+0xac>
  42383. {
  42384. if (huart->TxXferCount == 0U)
  42385. 801239e: 687b ldr r3, [r7, #4]
  42386. 80123a0: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42387. 80123a4: b29b uxth r3, r3
  42388. 80123a6: 2b00 cmp r3, #0
  42389. 80123a8: d132 bne.n 8012410 <UART_TxISR_8BIT+0x84>
  42390. {
  42391. /* Disable the UART Transmit Data Register Empty Interrupt */
  42392. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  42393. 80123aa: 687b ldr r3, [r7, #4]
  42394. 80123ac: 681b ldr r3, [r3, #0]
  42395. 80123ae: 623b str r3, [r7, #32]
  42396. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42397. 80123b0: 6a3b ldr r3, [r7, #32]
  42398. 80123b2: e853 3f00 ldrex r3, [r3]
  42399. 80123b6: 61fb str r3, [r7, #28]
  42400. return(result);
  42401. 80123b8: 69fb ldr r3, [r7, #28]
  42402. 80123ba: f023 0380 bic.w r3, r3, #128 @ 0x80
  42403. 80123be: 637b str r3, [r7, #52] @ 0x34
  42404. 80123c0: 687b ldr r3, [r7, #4]
  42405. 80123c2: 681b ldr r3, [r3, #0]
  42406. 80123c4: 461a mov r2, r3
  42407. 80123c6: 6b7b ldr r3, [r7, #52] @ 0x34
  42408. 80123c8: 62fb str r3, [r7, #44] @ 0x2c
  42409. 80123ca: 62ba str r2, [r7, #40] @ 0x28
  42410. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42411. 80123cc: 6ab9 ldr r1, [r7, #40] @ 0x28
  42412. 80123ce: 6afa ldr r2, [r7, #44] @ 0x2c
  42413. 80123d0: e841 2300 strex r3, r2, [r1]
  42414. 80123d4: 627b str r3, [r7, #36] @ 0x24
  42415. return(result);
  42416. 80123d6: 6a7b ldr r3, [r7, #36] @ 0x24
  42417. 80123d8: 2b00 cmp r3, #0
  42418. 80123da: d1e6 bne.n 80123aa <UART_TxISR_8BIT+0x1e>
  42419. /* Enable the UART Transmit Complete Interrupt */
  42420. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42421. 80123dc: 687b ldr r3, [r7, #4]
  42422. 80123de: 681b ldr r3, [r3, #0]
  42423. 80123e0: 60fb str r3, [r7, #12]
  42424. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42425. 80123e2: 68fb ldr r3, [r7, #12]
  42426. 80123e4: e853 3f00 ldrex r3, [r3]
  42427. 80123e8: 60bb str r3, [r7, #8]
  42428. return(result);
  42429. 80123ea: 68bb ldr r3, [r7, #8]
  42430. 80123ec: f043 0340 orr.w r3, r3, #64 @ 0x40
  42431. 80123f0: 633b str r3, [r7, #48] @ 0x30
  42432. 80123f2: 687b ldr r3, [r7, #4]
  42433. 80123f4: 681b ldr r3, [r3, #0]
  42434. 80123f6: 461a mov r2, r3
  42435. 80123f8: 6b3b ldr r3, [r7, #48] @ 0x30
  42436. 80123fa: 61bb str r3, [r7, #24]
  42437. 80123fc: 617a str r2, [r7, #20]
  42438. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42439. 80123fe: 6979 ldr r1, [r7, #20]
  42440. 8012400: 69ba ldr r2, [r7, #24]
  42441. 8012402: e841 2300 strex r3, r2, [r1]
  42442. 8012406: 613b str r3, [r7, #16]
  42443. return(result);
  42444. 8012408: 693b ldr r3, [r7, #16]
  42445. 801240a: 2b00 cmp r3, #0
  42446. 801240c: d1e6 bne.n 80123dc <UART_TxISR_8BIT+0x50>
  42447. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  42448. huart->pTxBuffPtr++;
  42449. huart->TxXferCount--;
  42450. }
  42451. }
  42452. }
  42453. 801240e: e013 b.n 8012438 <UART_TxISR_8BIT+0xac>
  42454. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  42455. 8012410: 687b ldr r3, [r7, #4]
  42456. 8012412: 6d1b ldr r3, [r3, #80] @ 0x50
  42457. 8012414: 781a ldrb r2, [r3, #0]
  42458. 8012416: 687b ldr r3, [r7, #4]
  42459. 8012418: 681b ldr r3, [r3, #0]
  42460. 801241a: 629a str r2, [r3, #40] @ 0x28
  42461. huart->pTxBuffPtr++;
  42462. 801241c: 687b ldr r3, [r7, #4]
  42463. 801241e: 6d1b ldr r3, [r3, #80] @ 0x50
  42464. 8012420: 1c5a adds r2, r3, #1
  42465. 8012422: 687b ldr r3, [r7, #4]
  42466. 8012424: 651a str r2, [r3, #80] @ 0x50
  42467. huart->TxXferCount--;
  42468. 8012426: 687b ldr r3, [r7, #4]
  42469. 8012428: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42470. 801242c: b29b uxth r3, r3
  42471. 801242e: 3b01 subs r3, #1
  42472. 8012430: b29a uxth r2, r3
  42473. 8012432: 687b ldr r3, [r7, #4]
  42474. 8012434: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42475. }
  42476. 8012438: bf00 nop
  42477. 801243a: 373c adds r7, #60 @ 0x3c
  42478. 801243c: 46bd mov sp, r7
  42479. 801243e: f85d 7b04 ldr.w r7, [sp], #4
  42480. 8012442: 4770 bx lr
  42481. 08012444 <UART_TxISR_16BIT>:
  42482. * interruptions have been enabled by HAL_UART_Transmit_IT().
  42483. * @param huart UART handle.
  42484. * @retval None
  42485. */
  42486. static void UART_TxISR_16BIT(UART_HandleTypeDef *huart)
  42487. {
  42488. 8012444: b480 push {r7}
  42489. 8012446: b091 sub sp, #68 @ 0x44
  42490. 8012448: af00 add r7, sp, #0
  42491. 801244a: 6078 str r0, [r7, #4]
  42492. const uint16_t *tmp;
  42493. /* Check that a Tx process is ongoing */
  42494. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  42495. 801244c: 687b ldr r3, [r7, #4]
  42496. 801244e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  42497. 8012452: 2b21 cmp r3, #33 @ 0x21
  42498. 8012454: d151 bne.n 80124fa <UART_TxISR_16BIT+0xb6>
  42499. {
  42500. if (huart->TxXferCount == 0U)
  42501. 8012456: 687b ldr r3, [r7, #4]
  42502. 8012458: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42503. 801245c: b29b uxth r3, r3
  42504. 801245e: 2b00 cmp r3, #0
  42505. 8012460: d132 bne.n 80124c8 <UART_TxISR_16BIT+0x84>
  42506. {
  42507. /* Disable the UART Transmit Data Register Empty Interrupt */
  42508. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TXEIE_TXFNFIE);
  42509. 8012462: 687b ldr r3, [r7, #4]
  42510. 8012464: 681b ldr r3, [r3, #0]
  42511. 8012466: 627b str r3, [r7, #36] @ 0x24
  42512. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42513. 8012468: 6a7b ldr r3, [r7, #36] @ 0x24
  42514. 801246a: e853 3f00 ldrex r3, [r3]
  42515. 801246e: 623b str r3, [r7, #32]
  42516. return(result);
  42517. 8012470: 6a3b ldr r3, [r7, #32]
  42518. 8012472: f023 0380 bic.w r3, r3, #128 @ 0x80
  42519. 8012476: 63bb str r3, [r7, #56] @ 0x38
  42520. 8012478: 687b ldr r3, [r7, #4]
  42521. 801247a: 681b ldr r3, [r3, #0]
  42522. 801247c: 461a mov r2, r3
  42523. 801247e: 6bbb ldr r3, [r7, #56] @ 0x38
  42524. 8012480: 633b str r3, [r7, #48] @ 0x30
  42525. 8012482: 62fa str r2, [r7, #44] @ 0x2c
  42526. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42527. 8012484: 6af9 ldr r1, [r7, #44] @ 0x2c
  42528. 8012486: 6b3a ldr r2, [r7, #48] @ 0x30
  42529. 8012488: e841 2300 strex r3, r2, [r1]
  42530. 801248c: 62bb str r3, [r7, #40] @ 0x28
  42531. return(result);
  42532. 801248e: 6abb ldr r3, [r7, #40] @ 0x28
  42533. 8012490: 2b00 cmp r3, #0
  42534. 8012492: d1e6 bne.n 8012462 <UART_TxISR_16BIT+0x1e>
  42535. /* Enable the UART Transmit Complete Interrupt */
  42536. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42537. 8012494: 687b ldr r3, [r7, #4]
  42538. 8012496: 681b ldr r3, [r3, #0]
  42539. 8012498: 613b str r3, [r7, #16]
  42540. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42541. 801249a: 693b ldr r3, [r7, #16]
  42542. 801249c: e853 3f00 ldrex r3, [r3]
  42543. 80124a0: 60fb str r3, [r7, #12]
  42544. return(result);
  42545. 80124a2: 68fb ldr r3, [r7, #12]
  42546. 80124a4: f043 0340 orr.w r3, r3, #64 @ 0x40
  42547. 80124a8: 637b str r3, [r7, #52] @ 0x34
  42548. 80124aa: 687b ldr r3, [r7, #4]
  42549. 80124ac: 681b ldr r3, [r3, #0]
  42550. 80124ae: 461a mov r2, r3
  42551. 80124b0: 6b7b ldr r3, [r7, #52] @ 0x34
  42552. 80124b2: 61fb str r3, [r7, #28]
  42553. 80124b4: 61ba str r2, [r7, #24]
  42554. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42555. 80124b6: 69b9 ldr r1, [r7, #24]
  42556. 80124b8: 69fa ldr r2, [r7, #28]
  42557. 80124ba: e841 2300 strex r3, r2, [r1]
  42558. 80124be: 617b str r3, [r7, #20]
  42559. return(result);
  42560. 80124c0: 697b ldr r3, [r7, #20]
  42561. 80124c2: 2b00 cmp r3, #0
  42562. 80124c4: d1e6 bne.n 8012494 <UART_TxISR_16BIT+0x50>
  42563. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  42564. huart->pTxBuffPtr += 2U;
  42565. huart->TxXferCount--;
  42566. }
  42567. }
  42568. }
  42569. 80124c6: e018 b.n 80124fa <UART_TxISR_16BIT+0xb6>
  42570. tmp = (const uint16_t *) huart->pTxBuffPtr;
  42571. 80124c8: 687b ldr r3, [r7, #4]
  42572. 80124ca: 6d1b ldr r3, [r3, #80] @ 0x50
  42573. 80124cc: 63fb str r3, [r7, #60] @ 0x3c
  42574. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  42575. 80124ce: 6bfb ldr r3, [r7, #60] @ 0x3c
  42576. 80124d0: 881b ldrh r3, [r3, #0]
  42577. 80124d2: 461a mov r2, r3
  42578. 80124d4: 687b ldr r3, [r7, #4]
  42579. 80124d6: 681b ldr r3, [r3, #0]
  42580. 80124d8: f3c2 0208 ubfx r2, r2, #0, #9
  42581. 80124dc: 629a str r2, [r3, #40] @ 0x28
  42582. huart->pTxBuffPtr += 2U;
  42583. 80124de: 687b ldr r3, [r7, #4]
  42584. 80124e0: 6d1b ldr r3, [r3, #80] @ 0x50
  42585. 80124e2: 1c9a adds r2, r3, #2
  42586. 80124e4: 687b ldr r3, [r7, #4]
  42587. 80124e6: 651a str r2, [r3, #80] @ 0x50
  42588. huart->TxXferCount--;
  42589. 80124e8: 687b ldr r3, [r7, #4]
  42590. 80124ea: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42591. 80124ee: b29b uxth r3, r3
  42592. 80124f0: 3b01 subs r3, #1
  42593. 80124f2: b29a uxth r2, r3
  42594. 80124f4: 687b ldr r3, [r7, #4]
  42595. 80124f6: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42596. }
  42597. 80124fa: bf00 nop
  42598. 80124fc: 3744 adds r7, #68 @ 0x44
  42599. 80124fe: 46bd mov sp, r7
  42600. 8012500: f85d 7b04 ldr.w r7, [sp], #4
  42601. 8012504: 4770 bx lr
  42602. 08012506 <UART_TxISR_8BIT_FIFOEN>:
  42603. * interruptions have been enabled by HAL_UART_Transmit_IT().
  42604. * @param huart UART handle.
  42605. * @retval None
  42606. */
  42607. static void UART_TxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  42608. {
  42609. 8012506: b480 push {r7}
  42610. 8012508: b091 sub sp, #68 @ 0x44
  42611. 801250a: af00 add r7, sp, #0
  42612. 801250c: 6078 str r0, [r7, #4]
  42613. uint16_t nb_tx_data;
  42614. /* Check that a Tx process is ongoing */
  42615. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  42616. 801250e: 687b ldr r3, [r7, #4]
  42617. 8012510: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  42618. 8012514: 2b21 cmp r3, #33 @ 0x21
  42619. 8012516: d160 bne.n 80125da <UART_TxISR_8BIT_FIFOEN+0xd4>
  42620. {
  42621. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  42622. 8012518: 687b ldr r3, [r7, #4]
  42623. 801251a: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  42624. 801251e: 87fb strh r3, [r7, #62] @ 0x3e
  42625. 8012520: e057 b.n 80125d2 <UART_TxISR_8BIT_FIFOEN+0xcc>
  42626. {
  42627. if (huart->TxXferCount == 0U)
  42628. 8012522: 687b ldr r3, [r7, #4]
  42629. 8012524: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42630. 8012528: b29b uxth r3, r3
  42631. 801252a: 2b00 cmp r3, #0
  42632. 801252c: d133 bne.n 8012596 <UART_TxISR_8BIT_FIFOEN+0x90>
  42633. {
  42634. /* Disable the TX FIFO threshold interrupt */
  42635. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  42636. 801252e: 687b ldr r3, [r7, #4]
  42637. 8012530: 681b ldr r3, [r3, #0]
  42638. 8012532: 3308 adds r3, #8
  42639. 8012534: 627b str r3, [r7, #36] @ 0x24
  42640. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42641. 8012536: 6a7b ldr r3, [r7, #36] @ 0x24
  42642. 8012538: e853 3f00 ldrex r3, [r3]
  42643. 801253c: 623b str r3, [r7, #32]
  42644. return(result);
  42645. 801253e: 6a3b ldr r3, [r7, #32]
  42646. 8012540: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  42647. 8012544: 63bb str r3, [r7, #56] @ 0x38
  42648. 8012546: 687b ldr r3, [r7, #4]
  42649. 8012548: 681b ldr r3, [r3, #0]
  42650. 801254a: 3308 adds r3, #8
  42651. 801254c: 6bba ldr r2, [r7, #56] @ 0x38
  42652. 801254e: 633a str r2, [r7, #48] @ 0x30
  42653. 8012550: 62fb str r3, [r7, #44] @ 0x2c
  42654. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42655. 8012552: 6af9 ldr r1, [r7, #44] @ 0x2c
  42656. 8012554: 6b3a ldr r2, [r7, #48] @ 0x30
  42657. 8012556: e841 2300 strex r3, r2, [r1]
  42658. 801255a: 62bb str r3, [r7, #40] @ 0x28
  42659. return(result);
  42660. 801255c: 6abb ldr r3, [r7, #40] @ 0x28
  42661. 801255e: 2b00 cmp r3, #0
  42662. 8012560: d1e5 bne.n 801252e <UART_TxISR_8BIT_FIFOEN+0x28>
  42663. /* Enable the UART Transmit Complete Interrupt */
  42664. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42665. 8012562: 687b ldr r3, [r7, #4]
  42666. 8012564: 681b ldr r3, [r3, #0]
  42667. 8012566: 613b str r3, [r7, #16]
  42668. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42669. 8012568: 693b ldr r3, [r7, #16]
  42670. 801256a: e853 3f00 ldrex r3, [r3]
  42671. 801256e: 60fb str r3, [r7, #12]
  42672. return(result);
  42673. 8012570: 68fb ldr r3, [r7, #12]
  42674. 8012572: f043 0340 orr.w r3, r3, #64 @ 0x40
  42675. 8012576: 637b str r3, [r7, #52] @ 0x34
  42676. 8012578: 687b ldr r3, [r7, #4]
  42677. 801257a: 681b ldr r3, [r3, #0]
  42678. 801257c: 461a mov r2, r3
  42679. 801257e: 6b7b ldr r3, [r7, #52] @ 0x34
  42680. 8012580: 61fb str r3, [r7, #28]
  42681. 8012582: 61ba str r2, [r7, #24]
  42682. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42683. 8012584: 69b9 ldr r1, [r7, #24]
  42684. 8012586: 69fa ldr r2, [r7, #28]
  42685. 8012588: e841 2300 strex r3, r2, [r1]
  42686. 801258c: 617b str r3, [r7, #20]
  42687. return(result);
  42688. 801258e: 697b ldr r3, [r7, #20]
  42689. 8012590: 2b00 cmp r3, #0
  42690. 8012592: d1e6 bne.n 8012562 <UART_TxISR_8BIT_FIFOEN+0x5c>
  42691. break; /* force exit loop */
  42692. 8012594: e021 b.n 80125da <UART_TxISR_8BIT_FIFOEN+0xd4>
  42693. }
  42694. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  42695. 8012596: 687b ldr r3, [r7, #4]
  42696. 8012598: 681b ldr r3, [r3, #0]
  42697. 801259a: 69db ldr r3, [r3, #28]
  42698. 801259c: f003 0380 and.w r3, r3, #128 @ 0x80
  42699. 80125a0: 2b00 cmp r3, #0
  42700. 80125a2: d013 beq.n 80125cc <UART_TxISR_8BIT_FIFOEN+0xc6>
  42701. {
  42702. huart->Instance->TDR = (uint8_t)(*huart->pTxBuffPtr & (uint8_t)0xFF);
  42703. 80125a4: 687b ldr r3, [r7, #4]
  42704. 80125a6: 6d1b ldr r3, [r3, #80] @ 0x50
  42705. 80125a8: 781a ldrb r2, [r3, #0]
  42706. 80125aa: 687b ldr r3, [r7, #4]
  42707. 80125ac: 681b ldr r3, [r3, #0]
  42708. 80125ae: 629a str r2, [r3, #40] @ 0x28
  42709. huart->pTxBuffPtr++;
  42710. 80125b0: 687b ldr r3, [r7, #4]
  42711. 80125b2: 6d1b ldr r3, [r3, #80] @ 0x50
  42712. 80125b4: 1c5a adds r2, r3, #1
  42713. 80125b6: 687b ldr r3, [r7, #4]
  42714. 80125b8: 651a str r2, [r3, #80] @ 0x50
  42715. huart->TxXferCount--;
  42716. 80125ba: 687b ldr r3, [r7, #4]
  42717. 80125bc: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42718. 80125c0: b29b uxth r3, r3
  42719. 80125c2: 3b01 subs r3, #1
  42720. 80125c4: b29a uxth r2, r3
  42721. 80125c6: 687b ldr r3, [r7, #4]
  42722. 80125c8: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42723. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  42724. 80125cc: 8ffb ldrh r3, [r7, #62] @ 0x3e
  42725. 80125ce: 3b01 subs r3, #1
  42726. 80125d0: 87fb strh r3, [r7, #62] @ 0x3e
  42727. 80125d2: 8ffb ldrh r3, [r7, #62] @ 0x3e
  42728. 80125d4: 2b00 cmp r3, #0
  42729. 80125d6: d1a4 bne.n 8012522 <UART_TxISR_8BIT_FIFOEN+0x1c>
  42730. {
  42731. /* Nothing to do */
  42732. }
  42733. }
  42734. }
  42735. }
  42736. 80125d8: e7ff b.n 80125da <UART_TxISR_8BIT_FIFOEN+0xd4>
  42737. 80125da: bf00 nop
  42738. 80125dc: 3744 adds r7, #68 @ 0x44
  42739. 80125de: 46bd mov sp, r7
  42740. 80125e0: f85d 7b04 ldr.w r7, [sp], #4
  42741. 80125e4: 4770 bx lr
  42742. 080125e6 <UART_TxISR_16BIT_FIFOEN>:
  42743. * interruptions have been enabled by HAL_UART_Transmit_IT().
  42744. * @param huart UART handle.
  42745. * @retval None
  42746. */
  42747. static void UART_TxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  42748. {
  42749. 80125e6: b480 push {r7}
  42750. 80125e8: b091 sub sp, #68 @ 0x44
  42751. 80125ea: af00 add r7, sp, #0
  42752. 80125ec: 6078 str r0, [r7, #4]
  42753. const uint16_t *tmp;
  42754. uint16_t nb_tx_data;
  42755. /* Check that a Tx process is ongoing */
  42756. if (huart->gState == HAL_UART_STATE_BUSY_TX)
  42757. 80125ee: 687b ldr r3, [r7, #4]
  42758. 80125f0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
  42759. 80125f4: 2b21 cmp r3, #33 @ 0x21
  42760. 80125f6: d165 bne.n 80126c4 <UART_TxISR_16BIT_FIFOEN+0xde>
  42761. {
  42762. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  42763. 80125f8: 687b ldr r3, [r7, #4]
  42764. 80125fa: f8b3 306a ldrh.w r3, [r3, #106] @ 0x6a
  42765. 80125fe: 87fb strh r3, [r7, #62] @ 0x3e
  42766. 8012600: e05c b.n 80126bc <UART_TxISR_16BIT_FIFOEN+0xd6>
  42767. {
  42768. if (huart->TxXferCount == 0U)
  42769. 8012602: 687b ldr r3, [r7, #4]
  42770. 8012604: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42771. 8012608: b29b uxth r3, r3
  42772. 801260a: 2b00 cmp r3, #0
  42773. 801260c: d133 bne.n 8012676 <UART_TxISR_16BIT_FIFOEN+0x90>
  42774. {
  42775. /* Disable the TX FIFO threshold interrupt */
  42776. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_TXFTIE);
  42777. 801260e: 687b ldr r3, [r7, #4]
  42778. 8012610: 681b ldr r3, [r3, #0]
  42779. 8012612: 3308 adds r3, #8
  42780. 8012614: 623b str r3, [r7, #32]
  42781. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42782. 8012616: 6a3b ldr r3, [r7, #32]
  42783. 8012618: e853 3f00 ldrex r3, [r3]
  42784. 801261c: 61fb str r3, [r7, #28]
  42785. return(result);
  42786. 801261e: 69fb ldr r3, [r7, #28]
  42787. 8012620: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
  42788. 8012624: 637b str r3, [r7, #52] @ 0x34
  42789. 8012626: 687b ldr r3, [r7, #4]
  42790. 8012628: 681b ldr r3, [r3, #0]
  42791. 801262a: 3308 adds r3, #8
  42792. 801262c: 6b7a ldr r2, [r7, #52] @ 0x34
  42793. 801262e: 62fa str r2, [r7, #44] @ 0x2c
  42794. 8012630: 62bb str r3, [r7, #40] @ 0x28
  42795. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42796. 8012632: 6ab9 ldr r1, [r7, #40] @ 0x28
  42797. 8012634: 6afa ldr r2, [r7, #44] @ 0x2c
  42798. 8012636: e841 2300 strex r3, r2, [r1]
  42799. 801263a: 627b str r3, [r7, #36] @ 0x24
  42800. return(result);
  42801. 801263c: 6a7b ldr r3, [r7, #36] @ 0x24
  42802. 801263e: 2b00 cmp r3, #0
  42803. 8012640: d1e5 bne.n 801260e <UART_TxISR_16BIT_FIFOEN+0x28>
  42804. /* Enable the UART Transmit Complete Interrupt */
  42805. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42806. 8012642: 687b ldr r3, [r7, #4]
  42807. 8012644: 681b ldr r3, [r3, #0]
  42808. 8012646: 60fb str r3, [r7, #12]
  42809. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42810. 8012648: 68fb ldr r3, [r7, #12]
  42811. 801264a: e853 3f00 ldrex r3, [r3]
  42812. 801264e: 60bb str r3, [r7, #8]
  42813. return(result);
  42814. 8012650: 68bb ldr r3, [r7, #8]
  42815. 8012652: f043 0340 orr.w r3, r3, #64 @ 0x40
  42816. 8012656: 633b str r3, [r7, #48] @ 0x30
  42817. 8012658: 687b ldr r3, [r7, #4]
  42818. 801265a: 681b ldr r3, [r3, #0]
  42819. 801265c: 461a mov r2, r3
  42820. 801265e: 6b3b ldr r3, [r7, #48] @ 0x30
  42821. 8012660: 61bb str r3, [r7, #24]
  42822. 8012662: 617a str r2, [r7, #20]
  42823. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42824. 8012664: 6979 ldr r1, [r7, #20]
  42825. 8012666: 69ba ldr r2, [r7, #24]
  42826. 8012668: e841 2300 strex r3, r2, [r1]
  42827. 801266c: 613b str r3, [r7, #16]
  42828. return(result);
  42829. 801266e: 693b ldr r3, [r7, #16]
  42830. 8012670: 2b00 cmp r3, #0
  42831. 8012672: d1e6 bne.n 8012642 <UART_TxISR_16BIT_FIFOEN+0x5c>
  42832. break; /* force exit loop */
  42833. 8012674: e026 b.n 80126c4 <UART_TxISR_16BIT_FIFOEN+0xde>
  42834. }
  42835. else if (READ_BIT(huart->Instance->ISR, USART_ISR_TXE_TXFNF) != 0U)
  42836. 8012676: 687b ldr r3, [r7, #4]
  42837. 8012678: 681b ldr r3, [r3, #0]
  42838. 801267a: 69db ldr r3, [r3, #28]
  42839. 801267c: f003 0380 and.w r3, r3, #128 @ 0x80
  42840. 8012680: 2b00 cmp r3, #0
  42841. 8012682: d018 beq.n 80126b6 <UART_TxISR_16BIT_FIFOEN+0xd0>
  42842. {
  42843. tmp = (const uint16_t *) huart->pTxBuffPtr;
  42844. 8012684: 687b ldr r3, [r7, #4]
  42845. 8012686: 6d1b ldr r3, [r3, #80] @ 0x50
  42846. 8012688: 63bb str r3, [r7, #56] @ 0x38
  42847. huart->Instance->TDR = (((uint32_t)(*tmp)) & 0x01FFUL);
  42848. 801268a: 6bbb ldr r3, [r7, #56] @ 0x38
  42849. 801268c: 881b ldrh r3, [r3, #0]
  42850. 801268e: 461a mov r2, r3
  42851. 8012690: 687b ldr r3, [r7, #4]
  42852. 8012692: 681b ldr r3, [r3, #0]
  42853. 8012694: f3c2 0208 ubfx r2, r2, #0, #9
  42854. 8012698: 629a str r2, [r3, #40] @ 0x28
  42855. huart->pTxBuffPtr += 2U;
  42856. 801269a: 687b ldr r3, [r7, #4]
  42857. 801269c: 6d1b ldr r3, [r3, #80] @ 0x50
  42858. 801269e: 1c9a adds r2, r3, #2
  42859. 80126a0: 687b ldr r3, [r7, #4]
  42860. 80126a2: 651a str r2, [r3, #80] @ 0x50
  42861. huart->TxXferCount--;
  42862. 80126a4: 687b ldr r3, [r7, #4]
  42863. 80126a6: f8b3 3056 ldrh.w r3, [r3, #86] @ 0x56
  42864. 80126aa: b29b uxth r3, r3
  42865. 80126ac: 3b01 subs r3, #1
  42866. 80126ae: b29a uxth r2, r3
  42867. 80126b0: 687b ldr r3, [r7, #4]
  42868. 80126b2: f8a3 2056 strh.w r2, [r3, #86] @ 0x56
  42869. for (nb_tx_data = huart->NbTxDataToProcess ; nb_tx_data > 0U ; nb_tx_data--)
  42870. 80126b6: 8ffb ldrh r3, [r7, #62] @ 0x3e
  42871. 80126b8: 3b01 subs r3, #1
  42872. 80126ba: 87fb strh r3, [r7, #62] @ 0x3e
  42873. 80126bc: 8ffb ldrh r3, [r7, #62] @ 0x3e
  42874. 80126be: 2b00 cmp r3, #0
  42875. 80126c0: d19f bne.n 8012602 <UART_TxISR_16BIT_FIFOEN+0x1c>
  42876. {
  42877. /* Nothing to do */
  42878. }
  42879. }
  42880. }
  42881. }
  42882. 80126c2: e7ff b.n 80126c4 <UART_TxISR_16BIT_FIFOEN+0xde>
  42883. 80126c4: bf00 nop
  42884. 80126c6: 3744 adds r7, #68 @ 0x44
  42885. 80126c8: 46bd mov sp, r7
  42886. 80126ca: f85d 7b04 ldr.w r7, [sp], #4
  42887. 80126ce: 4770 bx lr
  42888. 080126d0 <UART_EndTransmit_IT>:
  42889. * @param huart pointer to a UART_HandleTypeDef structure that contains
  42890. * the configuration information for the specified UART module.
  42891. * @retval None
  42892. */
  42893. static void UART_EndTransmit_IT(UART_HandleTypeDef *huart)
  42894. {
  42895. 80126d0: b580 push {r7, lr}
  42896. 80126d2: b088 sub sp, #32
  42897. 80126d4: af00 add r7, sp, #0
  42898. 80126d6: 6078 str r0, [r7, #4]
  42899. /* Disable the UART Transmit Complete Interrupt */
  42900. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_TCIE);
  42901. 80126d8: 687b ldr r3, [r7, #4]
  42902. 80126da: 681b ldr r3, [r3, #0]
  42903. 80126dc: 60fb str r3, [r7, #12]
  42904. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  42905. 80126de: 68fb ldr r3, [r7, #12]
  42906. 80126e0: e853 3f00 ldrex r3, [r3]
  42907. 80126e4: 60bb str r3, [r7, #8]
  42908. return(result);
  42909. 80126e6: 68bb ldr r3, [r7, #8]
  42910. 80126e8: f023 0340 bic.w r3, r3, #64 @ 0x40
  42911. 80126ec: 61fb str r3, [r7, #28]
  42912. 80126ee: 687b ldr r3, [r7, #4]
  42913. 80126f0: 681b ldr r3, [r3, #0]
  42914. 80126f2: 461a mov r2, r3
  42915. 80126f4: 69fb ldr r3, [r7, #28]
  42916. 80126f6: 61bb str r3, [r7, #24]
  42917. 80126f8: 617a str r2, [r7, #20]
  42918. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  42919. 80126fa: 6979 ldr r1, [r7, #20]
  42920. 80126fc: 69ba ldr r2, [r7, #24]
  42921. 80126fe: e841 2300 strex r3, r2, [r1]
  42922. 8012702: 613b str r3, [r7, #16]
  42923. return(result);
  42924. 8012704: 693b ldr r3, [r7, #16]
  42925. 8012706: 2b00 cmp r3, #0
  42926. 8012708: d1e6 bne.n 80126d8 <UART_EndTransmit_IT+0x8>
  42927. /* Tx process is ended, restore huart->gState to Ready */
  42928. huart->gState = HAL_UART_STATE_READY;
  42929. 801270a: 687b ldr r3, [r7, #4]
  42930. 801270c: 2220 movs r2, #32
  42931. 801270e: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  42932. /* Cleat TxISR function pointer */
  42933. huart->TxISR = NULL;
  42934. 8012712: 687b ldr r3, [r7, #4]
  42935. 8012714: 2200 movs r2, #0
  42936. 8012716: 679a str r2, [r3, #120] @ 0x78
  42937. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  42938. /*Call registered Tx complete callback*/
  42939. huart->TxCpltCallback(huart);
  42940. #else
  42941. /*Call legacy weak Tx complete callback*/
  42942. HAL_UART_TxCpltCallback(huart);
  42943. 8012718: 6878 ldr r0, [r7, #4]
  42944. 801271a: f7f1 ffcd bl 80046b8 <HAL_UART_TxCpltCallback>
  42945. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  42946. }
  42947. 801271e: bf00 nop
  42948. 8012720: 3720 adds r7, #32
  42949. 8012722: 46bd mov sp, r7
  42950. 8012724: bd80 pop {r7, pc}
  42951. ...
  42952. 08012728 <UART_RxISR_8BIT>:
  42953. * @brief RX interrupt handler for 7 or 8 bits data word length .
  42954. * @param huart UART handle.
  42955. * @retval None
  42956. */
  42957. static void UART_RxISR_8BIT(UART_HandleTypeDef *huart)
  42958. {
  42959. 8012728: b580 push {r7, lr}
  42960. 801272a: b09c sub sp, #112 @ 0x70
  42961. 801272c: af00 add r7, sp, #0
  42962. 801272e: 6078 str r0, [r7, #4]
  42963. uint16_t uhMask = huart->Mask;
  42964. 8012730: 687b ldr r3, [r7, #4]
  42965. 8012732: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  42966. 8012736: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  42967. uint16_t uhdata;
  42968. /* Check that a Rx process is ongoing */
  42969. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  42970. 801273a: 687b ldr r3, [r7, #4]
  42971. 801273c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  42972. 8012740: 2b22 cmp r3, #34 @ 0x22
  42973. 8012742: f040 80be bne.w 80128c2 <UART_RxISR_8BIT+0x19a>
  42974. {
  42975. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  42976. 8012746: 687b ldr r3, [r7, #4]
  42977. 8012748: 681b ldr r3, [r3, #0]
  42978. 801274a: 6a5b ldr r3, [r3, #36] @ 0x24
  42979. 801274c: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  42980. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  42981. 8012750: f8b7 306c ldrh.w r3, [r7, #108] @ 0x6c
  42982. 8012754: b2d9 uxtb r1, r3
  42983. 8012756: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  42984. 801275a: b2da uxtb r2, r3
  42985. 801275c: 687b ldr r3, [r7, #4]
  42986. 801275e: 6d9b ldr r3, [r3, #88] @ 0x58
  42987. 8012760: 400a ands r2, r1
  42988. 8012762: b2d2 uxtb r2, r2
  42989. 8012764: 701a strb r2, [r3, #0]
  42990. huart->pRxBuffPtr++;
  42991. 8012766: 687b ldr r3, [r7, #4]
  42992. 8012768: 6d9b ldr r3, [r3, #88] @ 0x58
  42993. 801276a: 1c5a adds r2, r3, #1
  42994. 801276c: 687b ldr r3, [r7, #4]
  42995. 801276e: 659a str r2, [r3, #88] @ 0x58
  42996. huart->RxXferCount--;
  42997. 8012770: 687b ldr r3, [r7, #4]
  42998. 8012772: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  42999. 8012776: b29b uxth r3, r3
  43000. 8012778: 3b01 subs r3, #1
  43001. 801277a: b29a uxth r2, r3
  43002. 801277c: 687b ldr r3, [r7, #4]
  43003. 801277e: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43004. if (huart->RxXferCount == 0U)
  43005. 8012782: 687b ldr r3, [r7, #4]
  43006. 8012784: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43007. 8012788: b29b uxth r3, r3
  43008. 801278a: 2b00 cmp r3, #0
  43009. 801278c: f040 80a1 bne.w 80128d2 <UART_RxISR_8BIT+0x1aa>
  43010. {
  43011. /* Disable the UART Parity Error Interrupt and RXNE interrupts */
  43012. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43013. 8012790: 687b ldr r3, [r7, #4]
  43014. 8012792: 681b ldr r3, [r3, #0]
  43015. 8012794: 64fb str r3, [r7, #76] @ 0x4c
  43016. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43017. 8012796: 6cfb ldr r3, [r7, #76] @ 0x4c
  43018. 8012798: e853 3f00 ldrex r3, [r3]
  43019. 801279c: 64bb str r3, [r7, #72] @ 0x48
  43020. return(result);
  43021. 801279e: 6cbb ldr r3, [r7, #72] @ 0x48
  43022. 80127a0: f423 7390 bic.w r3, r3, #288 @ 0x120
  43023. 80127a4: 66bb str r3, [r7, #104] @ 0x68
  43024. 80127a6: 687b ldr r3, [r7, #4]
  43025. 80127a8: 681b ldr r3, [r3, #0]
  43026. 80127aa: 461a mov r2, r3
  43027. 80127ac: 6ebb ldr r3, [r7, #104] @ 0x68
  43028. 80127ae: 65bb str r3, [r7, #88] @ 0x58
  43029. 80127b0: 657a str r2, [r7, #84] @ 0x54
  43030. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43031. 80127b2: 6d79 ldr r1, [r7, #84] @ 0x54
  43032. 80127b4: 6dba ldr r2, [r7, #88] @ 0x58
  43033. 80127b6: e841 2300 strex r3, r2, [r1]
  43034. 80127ba: 653b str r3, [r7, #80] @ 0x50
  43035. return(result);
  43036. 80127bc: 6d3b ldr r3, [r7, #80] @ 0x50
  43037. 80127be: 2b00 cmp r3, #0
  43038. 80127c0: d1e6 bne.n 8012790 <UART_RxISR_8BIT+0x68>
  43039. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43040. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43041. 80127c2: 687b ldr r3, [r7, #4]
  43042. 80127c4: 681b ldr r3, [r3, #0]
  43043. 80127c6: 3308 adds r3, #8
  43044. 80127c8: 63bb str r3, [r7, #56] @ 0x38
  43045. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43046. 80127ca: 6bbb ldr r3, [r7, #56] @ 0x38
  43047. 80127cc: e853 3f00 ldrex r3, [r3]
  43048. 80127d0: 637b str r3, [r7, #52] @ 0x34
  43049. return(result);
  43050. 80127d2: 6b7b ldr r3, [r7, #52] @ 0x34
  43051. 80127d4: f023 0301 bic.w r3, r3, #1
  43052. 80127d8: 667b str r3, [r7, #100] @ 0x64
  43053. 80127da: 687b ldr r3, [r7, #4]
  43054. 80127dc: 681b ldr r3, [r3, #0]
  43055. 80127de: 3308 adds r3, #8
  43056. 80127e0: 6e7a ldr r2, [r7, #100] @ 0x64
  43057. 80127e2: 647a str r2, [r7, #68] @ 0x44
  43058. 80127e4: 643b str r3, [r7, #64] @ 0x40
  43059. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43060. 80127e6: 6c39 ldr r1, [r7, #64] @ 0x40
  43061. 80127e8: 6c7a ldr r2, [r7, #68] @ 0x44
  43062. 80127ea: e841 2300 strex r3, r2, [r1]
  43063. 80127ee: 63fb str r3, [r7, #60] @ 0x3c
  43064. return(result);
  43065. 80127f0: 6bfb ldr r3, [r7, #60] @ 0x3c
  43066. 80127f2: 2b00 cmp r3, #0
  43067. 80127f4: d1e5 bne.n 80127c2 <UART_RxISR_8BIT+0x9a>
  43068. /* Rx process is completed, restore huart->RxState to Ready */
  43069. huart->RxState = HAL_UART_STATE_READY;
  43070. 80127f6: 687b ldr r3, [r7, #4]
  43071. 80127f8: 2220 movs r2, #32
  43072. 80127fa: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43073. /* Clear RxISR function pointer */
  43074. huart->RxISR = NULL;
  43075. 80127fe: 687b ldr r3, [r7, #4]
  43076. 8012800: 2200 movs r2, #0
  43077. 8012802: 675a str r2, [r3, #116] @ 0x74
  43078. /* Initialize type of RxEvent to Transfer Complete */
  43079. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43080. 8012804: 687b ldr r3, [r7, #4]
  43081. 8012806: 2200 movs r2, #0
  43082. 8012808: 671a str r2, [r3, #112] @ 0x70
  43083. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  43084. 801280a: 687b ldr r3, [r7, #4]
  43085. 801280c: 681b ldr r3, [r3, #0]
  43086. 801280e: 4a33 ldr r2, [pc, #204] @ (80128dc <UART_RxISR_8BIT+0x1b4>)
  43087. 8012810: 4293 cmp r3, r2
  43088. 8012812: d01f beq.n 8012854 <UART_RxISR_8BIT+0x12c>
  43089. {
  43090. /* Check that USART RTOEN bit is set */
  43091. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  43092. 8012814: 687b ldr r3, [r7, #4]
  43093. 8012816: 681b ldr r3, [r3, #0]
  43094. 8012818: 685b ldr r3, [r3, #4]
  43095. 801281a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  43096. 801281e: 2b00 cmp r3, #0
  43097. 8012820: d018 beq.n 8012854 <UART_RxISR_8BIT+0x12c>
  43098. {
  43099. /* Enable the UART Receiver Timeout Interrupt */
  43100. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  43101. 8012822: 687b ldr r3, [r7, #4]
  43102. 8012824: 681b ldr r3, [r3, #0]
  43103. 8012826: 627b str r3, [r7, #36] @ 0x24
  43104. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43105. 8012828: 6a7b ldr r3, [r7, #36] @ 0x24
  43106. 801282a: e853 3f00 ldrex r3, [r3]
  43107. 801282e: 623b str r3, [r7, #32]
  43108. return(result);
  43109. 8012830: 6a3b ldr r3, [r7, #32]
  43110. 8012832: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  43111. 8012836: 663b str r3, [r7, #96] @ 0x60
  43112. 8012838: 687b ldr r3, [r7, #4]
  43113. 801283a: 681b ldr r3, [r3, #0]
  43114. 801283c: 461a mov r2, r3
  43115. 801283e: 6e3b ldr r3, [r7, #96] @ 0x60
  43116. 8012840: 633b str r3, [r7, #48] @ 0x30
  43117. 8012842: 62fa str r2, [r7, #44] @ 0x2c
  43118. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43119. 8012844: 6af9 ldr r1, [r7, #44] @ 0x2c
  43120. 8012846: 6b3a ldr r2, [r7, #48] @ 0x30
  43121. 8012848: e841 2300 strex r3, r2, [r1]
  43122. 801284c: 62bb str r3, [r7, #40] @ 0x28
  43123. return(result);
  43124. 801284e: 6abb ldr r3, [r7, #40] @ 0x28
  43125. 8012850: 2b00 cmp r3, #0
  43126. 8012852: d1e6 bne.n 8012822 <UART_RxISR_8BIT+0xfa>
  43127. }
  43128. }
  43129. /* Check current reception Mode :
  43130. If Reception till IDLE event has been selected : */
  43131. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43132. 8012854: 687b ldr r3, [r7, #4]
  43133. 8012856: 6edb ldr r3, [r3, #108] @ 0x6c
  43134. 8012858: 2b01 cmp r3, #1
  43135. 801285a: d12e bne.n 80128ba <UART_RxISR_8BIT+0x192>
  43136. {
  43137. /* Set reception type to Standard */
  43138. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43139. 801285c: 687b ldr r3, [r7, #4]
  43140. 801285e: 2200 movs r2, #0
  43141. 8012860: 66da str r2, [r3, #108] @ 0x6c
  43142. /* Disable IDLE interrupt */
  43143. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43144. 8012862: 687b ldr r3, [r7, #4]
  43145. 8012864: 681b ldr r3, [r3, #0]
  43146. 8012866: 613b str r3, [r7, #16]
  43147. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43148. 8012868: 693b ldr r3, [r7, #16]
  43149. 801286a: e853 3f00 ldrex r3, [r3]
  43150. 801286e: 60fb str r3, [r7, #12]
  43151. return(result);
  43152. 8012870: 68fb ldr r3, [r7, #12]
  43153. 8012872: f023 0310 bic.w r3, r3, #16
  43154. 8012876: 65fb str r3, [r7, #92] @ 0x5c
  43155. 8012878: 687b ldr r3, [r7, #4]
  43156. 801287a: 681b ldr r3, [r3, #0]
  43157. 801287c: 461a mov r2, r3
  43158. 801287e: 6dfb ldr r3, [r7, #92] @ 0x5c
  43159. 8012880: 61fb str r3, [r7, #28]
  43160. 8012882: 61ba str r2, [r7, #24]
  43161. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43162. 8012884: 69b9 ldr r1, [r7, #24]
  43163. 8012886: 69fa ldr r2, [r7, #28]
  43164. 8012888: e841 2300 strex r3, r2, [r1]
  43165. 801288c: 617b str r3, [r7, #20]
  43166. return(result);
  43167. 801288e: 697b ldr r3, [r7, #20]
  43168. 8012890: 2b00 cmp r3, #0
  43169. 8012892: d1e6 bne.n 8012862 <UART_RxISR_8BIT+0x13a>
  43170. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  43171. 8012894: 687b ldr r3, [r7, #4]
  43172. 8012896: 681b ldr r3, [r3, #0]
  43173. 8012898: 69db ldr r3, [r3, #28]
  43174. 801289a: f003 0310 and.w r3, r3, #16
  43175. 801289e: 2b10 cmp r3, #16
  43176. 80128a0: d103 bne.n 80128aa <UART_RxISR_8BIT+0x182>
  43177. {
  43178. /* Clear IDLE Flag */
  43179. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  43180. 80128a2: 687b ldr r3, [r7, #4]
  43181. 80128a4: 681b ldr r3, [r3, #0]
  43182. 80128a6: 2210 movs r2, #16
  43183. 80128a8: 621a str r2, [r3, #32]
  43184. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43185. /*Call registered Rx Event callback*/
  43186. huart->RxEventCallback(huart, huart->RxXferSize);
  43187. #else
  43188. /*Call legacy weak Rx Event callback*/
  43189. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  43190. 80128aa: 687b ldr r3, [r7, #4]
  43191. 80128ac: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  43192. 80128b0: 4619 mov r1, r3
  43193. 80128b2: 6878 ldr r0, [r7, #4]
  43194. 80128b4: f7f1 fed6 bl 8004664 <HAL_UARTEx_RxEventCallback>
  43195. else
  43196. {
  43197. /* Clear RXNE interrupt flag */
  43198. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43199. }
  43200. }
  43201. 80128b8: e00b b.n 80128d2 <UART_RxISR_8BIT+0x1aa>
  43202. HAL_UART_RxCpltCallback(huart);
  43203. 80128ba: 6878 ldr r0, [r7, #4]
  43204. 80128bc: f7f1 fec8 bl 8004650 <HAL_UART_RxCpltCallback>
  43205. }
  43206. 80128c0: e007 b.n 80128d2 <UART_RxISR_8BIT+0x1aa>
  43207. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43208. 80128c2: 687b ldr r3, [r7, #4]
  43209. 80128c4: 681b ldr r3, [r3, #0]
  43210. 80128c6: 699a ldr r2, [r3, #24]
  43211. 80128c8: 687b ldr r3, [r7, #4]
  43212. 80128ca: 681b ldr r3, [r3, #0]
  43213. 80128cc: f042 0208 orr.w r2, r2, #8
  43214. 80128d0: 619a str r2, [r3, #24]
  43215. }
  43216. 80128d2: bf00 nop
  43217. 80128d4: 3770 adds r7, #112 @ 0x70
  43218. 80128d6: 46bd mov sp, r7
  43219. 80128d8: bd80 pop {r7, pc}
  43220. 80128da: bf00 nop
  43221. 80128dc: 58000c00 .word 0x58000c00
  43222. 080128e0 <UART_RxISR_16BIT>:
  43223. * interruptions have been enabled by HAL_UART_Receive_IT()
  43224. * @param huart UART handle.
  43225. * @retval None
  43226. */
  43227. static void UART_RxISR_16BIT(UART_HandleTypeDef *huart)
  43228. {
  43229. 80128e0: b580 push {r7, lr}
  43230. 80128e2: b09c sub sp, #112 @ 0x70
  43231. 80128e4: af00 add r7, sp, #0
  43232. 80128e6: 6078 str r0, [r7, #4]
  43233. uint16_t *tmp;
  43234. uint16_t uhMask = huart->Mask;
  43235. 80128e8: 687b ldr r3, [r7, #4]
  43236. 80128ea: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43237. 80128ee: f8a7 306e strh.w r3, [r7, #110] @ 0x6e
  43238. uint16_t uhdata;
  43239. /* Check that a Rx process is ongoing */
  43240. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43241. 80128f2: 687b ldr r3, [r7, #4]
  43242. 80128f4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43243. 80128f8: 2b22 cmp r3, #34 @ 0x22
  43244. 80128fa: f040 80be bne.w 8012a7a <UART_RxISR_16BIT+0x19a>
  43245. {
  43246. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43247. 80128fe: 687b ldr r3, [r7, #4]
  43248. 8012900: 681b ldr r3, [r3, #0]
  43249. 8012902: 6a5b ldr r3, [r3, #36] @ 0x24
  43250. 8012904: f8a7 306c strh.w r3, [r7, #108] @ 0x6c
  43251. tmp = (uint16_t *) huart->pRxBuffPtr ;
  43252. 8012908: 687b ldr r3, [r7, #4]
  43253. 801290a: 6d9b ldr r3, [r3, #88] @ 0x58
  43254. 801290c: 66bb str r3, [r7, #104] @ 0x68
  43255. *tmp = (uint16_t)(uhdata & uhMask);
  43256. 801290e: f8b7 206c ldrh.w r2, [r7, #108] @ 0x6c
  43257. 8012912: f8b7 306e ldrh.w r3, [r7, #110] @ 0x6e
  43258. 8012916: 4013 ands r3, r2
  43259. 8012918: b29a uxth r2, r3
  43260. 801291a: 6ebb ldr r3, [r7, #104] @ 0x68
  43261. 801291c: 801a strh r2, [r3, #0]
  43262. huart->pRxBuffPtr += 2U;
  43263. 801291e: 687b ldr r3, [r7, #4]
  43264. 8012920: 6d9b ldr r3, [r3, #88] @ 0x58
  43265. 8012922: 1c9a adds r2, r3, #2
  43266. 8012924: 687b ldr r3, [r7, #4]
  43267. 8012926: 659a str r2, [r3, #88] @ 0x58
  43268. huart->RxXferCount--;
  43269. 8012928: 687b ldr r3, [r7, #4]
  43270. 801292a: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43271. 801292e: b29b uxth r3, r3
  43272. 8012930: 3b01 subs r3, #1
  43273. 8012932: b29a uxth r2, r3
  43274. 8012934: 687b ldr r3, [r7, #4]
  43275. 8012936: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43276. if (huart->RxXferCount == 0U)
  43277. 801293a: 687b ldr r3, [r7, #4]
  43278. 801293c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43279. 8012940: b29b uxth r3, r3
  43280. 8012942: 2b00 cmp r3, #0
  43281. 8012944: f040 80a1 bne.w 8012a8a <UART_RxISR_16BIT+0x1aa>
  43282. {
  43283. /* Disable the UART Parity Error Interrupt and RXNE interrupt*/
  43284. ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE_RXFNEIE | USART_CR1_PEIE));
  43285. 8012948: 687b ldr r3, [r7, #4]
  43286. 801294a: 681b ldr r3, [r3, #0]
  43287. 801294c: 64bb str r3, [r7, #72] @ 0x48
  43288. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43289. 801294e: 6cbb ldr r3, [r7, #72] @ 0x48
  43290. 8012950: e853 3f00 ldrex r3, [r3]
  43291. 8012954: 647b str r3, [r7, #68] @ 0x44
  43292. return(result);
  43293. 8012956: 6c7b ldr r3, [r7, #68] @ 0x44
  43294. 8012958: f423 7390 bic.w r3, r3, #288 @ 0x120
  43295. 801295c: 667b str r3, [r7, #100] @ 0x64
  43296. 801295e: 687b ldr r3, [r7, #4]
  43297. 8012960: 681b ldr r3, [r3, #0]
  43298. 8012962: 461a mov r2, r3
  43299. 8012964: 6e7b ldr r3, [r7, #100] @ 0x64
  43300. 8012966: 657b str r3, [r7, #84] @ 0x54
  43301. 8012968: 653a str r2, [r7, #80] @ 0x50
  43302. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43303. 801296a: 6d39 ldr r1, [r7, #80] @ 0x50
  43304. 801296c: 6d7a ldr r2, [r7, #84] @ 0x54
  43305. 801296e: e841 2300 strex r3, r2, [r1]
  43306. 8012972: 64fb str r3, [r7, #76] @ 0x4c
  43307. return(result);
  43308. 8012974: 6cfb ldr r3, [r7, #76] @ 0x4c
  43309. 8012976: 2b00 cmp r3, #0
  43310. 8012978: d1e6 bne.n 8012948 <UART_RxISR_16BIT+0x68>
  43311. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */
  43312. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
  43313. 801297a: 687b ldr r3, [r7, #4]
  43314. 801297c: 681b ldr r3, [r3, #0]
  43315. 801297e: 3308 adds r3, #8
  43316. 8012980: 637b str r3, [r7, #52] @ 0x34
  43317. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43318. 8012982: 6b7b ldr r3, [r7, #52] @ 0x34
  43319. 8012984: e853 3f00 ldrex r3, [r3]
  43320. 8012988: 633b str r3, [r7, #48] @ 0x30
  43321. return(result);
  43322. 801298a: 6b3b ldr r3, [r7, #48] @ 0x30
  43323. 801298c: f023 0301 bic.w r3, r3, #1
  43324. 8012990: 663b str r3, [r7, #96] @ 0x60
  43325. 8012992: 687b ldr r3, [r7, #4]
  43326. 8012994: 681b ldr r3, [r3, #0]
  43327. 8012996: 3308 adds r3, #8
  43328. 8012998: 6e3a ldr r2, [r7, #96] @ 0x60
  43329. 801299a: 643a str r2, [r7, #64] @ 0x40
  43330. 801299c: 63fb str r3, [r7, #60] @ 0x3c
  43331. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43332. 801299e: 6bf9 ldr r1, [r7, #60] @ 0x3c
  43333. 80129a0: 6c3a ldr r2, [r7, #64] @ 0x40
  43334. 80129a2: e841 2300 strex r3, r2, [r1]
  43335. 80129a6: 63bb str r3, [r7, #56] @ 0x38
  43336. return(result);
  43337. 80129a8: 6bbb ldr r3, [r7, #56] @ 0x38
  43338. 80129aa: 2b00 cmp r3, #0
  43339. 80129ac: d1e5 bne.n 801297a <UART_RxISR_16BIT+0x9a>
  43340. /* Rx process is completed, restore huart->RxState to Ready */
  43341. huart->RxState = HAL_UART_STATE_READY;
  43342. 80129ae: 687b ldr r3, [r7, #4]
  43343. 80129b0: 2220 movs r2, #32
  43344. 80129b2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43345. /* Clear RxISR function pointer */
  43346. huart->RxISR = NULL;
  43347. 80129b6: 687b ldr r3, [r7, #4]
  43348. 80129b8: 2200 movs r2, #0
  43349. 80129ba: 675a str r2, [r3, #116] @ 0x74
  43350. /* Initialize type of RxEvent to Transfer Complete */
  43351. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43352. 80129bc: 687b ldr r3, [r7, #4]
  43353. 80129be: 2200 movs r2, #0
  43354. 80129c0: 671a str r2, [r3, #112] @ 0x70
  43355. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  43356. 80129c2: 687b ldr r3, [r7, #4]
  43357. 80129c4: 681b ldr r3, [r3, #0]
  43358. 80129c6: 4a33 ldr r2, [pc, #204] @ (8012a94 <UART_RxISR_16BIT+0x1b4>)
  43359. 80129c8: 4293 cmp r3, r2
  43360. 80129ca: d01f beq.n 8012a0c <UART_RxISR_16BIT+0x12c>
  43361. {
  43362. /* Check that USART RTOEN bit is set */
  43363. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  43364. 80129cc: 687b ldr r3, [r7, #4]
  43365. 80129ce: 681b ldr r3, [r3, #0]
  43366. 80129d0: 685b ldr r3, [r3, #4]
  43367. 80129d2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  43368. 80129d6: 2b00 cmp r3, #0
  43369. 80129d8: d018 beq.n 8012a0c <UART_RxISR_16BIT+0x12c>
  43370. {
  43371. /* Enable the UART Receiver Timeout Interrupt */
  43372. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  43373. 80129da: 687b ldr r3, [r7, #4]
  43374. 80129dc: 681b ldr r3, [r3, #0]
  43375. 80129de: 623b str r3, [r7, #32]
  43376. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43377. 80129e0: 6a3b ldr r3, [r7, #32]
  43378. 80129e2: e853 3f00 ldrex r3, [r3]
  43379. 80129e6: 61fb str r3, [r7, #28]
  43380. return(result);
  43381. 80129e8: 69fb ldr r3, [r7, #28]
  43382. 80129ea: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  43383. 80129ee: 65fb str r3, [r7, #92] @ 0x5c
  43384. 80129f0: 687b ldr r3, [r7, #4]
  43385. 80129f2: 681b ldr r3, [r3, #0]
  43386. 80129f4: 461a mov r2, r3
  43387. 80129f6: 6dfb ldr r3, [r7, #92] @ 0x5c
  43388. 80129f8: 62fb str r3, [r7, #44] @ 0x2c
  43389. 80129fa: 62ba str r2, [r7, #40] @ 0x28
  43390. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43391. 80129fc: 6ab9 ldr r1, [r7, #40] @ 0x28
  43392. 80129fe: 6afa ldr r2, [r7, #44] @ 0x2c
  43393. 8012a00: e841 2300 strex r3, r2, [r1]
  43394. 8012a04: 627b str r3, [r7, #36] @ 0x24
  43395. return(result);
  43396. 8012a06: 6a7b ldr r3, [r7, #36] @ 0x24
  43397. 8012a08: 2b00 cmp r3, #0
  43398. 8012a0a: d1e6 bne.n 80129da <UART_RxISR_16BIT+0xfa>
  43399. }
  43400. }
  43401. /* Check current reception Mode :
  43402. If Reception till IDLE event has been selected : */
  43403. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43404. 8012a0c: 687b ldr r3, [r7, #4]
  43405. 8012a0e: 6edb ldr r3, [r3, #108] @ 0x6c
  43406. 8012a10: 2b01 cmp r3, #1
  43407. 8012a12: d12e bne.n 8012a72 <UART_RxISR_16BIT+0x192>
  43408. {
  43409. /* Set reception type to Standard */
  43410. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43411. 8012a14: 687b ldr r3, [r7, #4]
  43412. 8012a16: 2200 movs r2, #0
  43413. 8012a18: 66da str r2, [r3, #108] @ 0x6c
  43414. /* Disable IDLE interrupt */
  43415. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43416. 8012a1a: 687b ldr r3, [r7, #4]
  43417. 8012a1c: 681b ldr r3, [r3, #0]
  43418. 8012a1e: 60fb str r3, [r7, #12]
  43419. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43420. 8012a20: 68fb ldr r3, [r7, #12]
  43421. 8012a22: e853 3f00 ldrex r3, [r3]
  43422. 8012a26: 60bb str r3, [r7, #8]
  43423. return(result);
  43424. 8012a28: 68bb ldr r3, [r7, #8]
  43425. 8012a2a: f023 0310 bic.w r3, r3, #16
  43426. 8012a2e: 65bb str r3, [r7, #88] @ 0x58
  43427. 8012a30: 687b ldr r3, [r7, #4]
  43428. 8012a32: 681b ldr r3, [r3, #0]
  43429. 8012a34: 461a mov r2, r3
  43430. 8012a36: 6dbb ldr r3, [r7, #88] @ 0x58
  43431. 8012a38: 61bb str r3, [r7, #24]
  43432. 8012a3a: 617a str r2, [r7, #20]
  43433. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43434. 8012a3c: 6979 ldr r1, [r7, #20]
  43435. 8012a3e: 69ba ldr r2, [r7, #24]
  43436. 8012a40: e841 2300 strex r3, r2, [r1]
  43437. 8012a44: 613b str r3, [r7, #16]
  43438. return(result);
  43439. 8012a46: 693b ldr r3, [r7, #16]
  43440. 8012a48: 2b00 cmp r3, #0
  43441. 8012a4a: d1e6 bne.n 8012a1a <UART_RxISR_16BIT+0x13a>
  43442. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  43443. 8012a4c: 687b ldr r3, [r7, #4]
  43444. 8012a4e: 681b ldr r3, [r3, #0]
  43445. 8012a50: 69db ldr r3, [r3, #28]
  43446. 8012a52: f003 0310 and.w r3, r3, #16
  43447. 8012a56: 2b10 cmp r3, #16
  43448. 8012a58: d103 bne.n 8012a62 <UART_RxISR_16BIT+0x182>
  43449. {
  43450. /* Clear IDLE Flag */
  43451. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  43452. 8012a5a: 687b ldr r3, [r7, #4]
  43453. 8012a5c: 681b ldr r3, [r3, #0]
  43454. 8012a5e: 2210 movs r2, #16
  43455. 8012a60: 621a str r2, [r3, #32]
  43456. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43457. /*Call registered Rx Event callback*/
  43458. huart->RxEventCallback(huart, huart->RxXferSize);
  43459. #else
  43460. /*Call legacy weak Rx Event callback*/
  43461. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  43462. 8012a62: 687b ldr r3, [r7, #4]
  43463. 8012a64: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  43464. 8012a68: 4619 mov r1, r3
  43465. 8012a6a: 6878 ldr r0, [r7, #4]
  43466. 8012a6c: f7f1 fdfa bl 8004664 <HAL_UARTEx_RxEventCallback>
  43467. else
  43468. {
  43469. /* Clear RXNE interrupt flag */
  43470. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43471. }
  43472. }
  43473. 8012a70: e00b b.n 8012a8a <UART_RxISR_16BIT+0x1aa>
  43474. HAL_UART_RxCpltCallback(huart);
  43475. 8012a72: 6878 ldr r0, [r7, #4]
  43476. 8012a74: f7f1 fdec bl 8004650 <HAL_UART_RxCpltCallback>
  43477. }
  43478. 8012a78: e007 b.n 8012a8a <UART_RxISR_16BIT+0x1aa>
  43479. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43480. 8012a7a: 687b ldr r3, [r7, #4]
  43481. 8012a7c: 681b ldr r3, [r3, #0]
  43482. 8012a7e: 699a ldr r2, [r3, #24]
  43483. 8012a80: 687b ldr r3, [r7, #4]
  43484. 8012a82: 681b ldr r3, [r3, #0]
  43485. 8012a84: f042 0208 orr.w r2, r2, #8
  43486. 8012a88: 619a str r2, [r3, #24]
  43487. }
  43488. 8012a8a: bf00 nop
  43489. 8012a8c: 3770 adds r7, #112 @ 0x70
  43490. 8012a8e: 46bd mov sp, r7
  43491. 8012a90: bd80 pop {r7, pc}
  43492. 8012a92: bf00 nop
  43493. 8012a94: 58000c00 .word 0x58000c00
  43494. 08012a98 <UART_RxISR_8BIT_FIFOEN>:
  43495. * interruptions have been enabled by HAL_UART_Receive_IT()
  43496. * @param huart UART handle.
  43497. * @retval None
  43498. */
  43499. static void UART_RxISR_8BIT_FIFOEN(UART_HandleTypeDef *huart)
  43500. {
  43501. 8012a98: b580 push {r7, lr}
  43502. 8012a9a: b0ac sub sp, #176 @ 0xb0
  43503. 8012a9c: af00 add r7, sp, #0
  43504. 8012a9e: 6078 str r0, [r7, #4]
  43505. uint16_t uhMask = huart->Mask;
  43506. 8012aa0: 687b ldr r3, [r7, #4]
  43507. 8012aa2: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  43508. 8012aa6: f8a7 30aa strh.w r3, [r7, #170] @ 0xaa
  43509. uint16_t uhdata;
  43510. uint16_t nb_rx_data;
  43511. uint16_t rxdatacount;
  43512. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  43513. 8012aaa: 687b ldr r3, [r7, #4]
  43514. 8012aac: 681b ldr r3, [r3, #0]
  43515. 8012aae: 69db ldr r3, [r3, #28]
  43516. 8012ab0: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  43517. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  43518. 8012ab4: 687b ldr r3, [r7, #4]
  43519. 8012ab6: 681b ldr r3, [r3, #0]
  43520. 8012ab8: 681b ldr r3, [r3, #0]
  43521. 8012aba: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
  43522. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  43523. 8012abe: 687b ldr r3, [r7, #4]
  43524. 8012ac0: 681b ldr r3, [r3, #0]
  43525. 8012ac2: 689b ldr r3, [r3, #8]
  43526. 8012ac4: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  43527. /* Check that a Rx process is ongoing */
  43528. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  43529. 8012ac8: 687b ldr r3, [r7, #4]
  43530. 8012aca: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  43531. 8012ace: 2b22 cmp r3, #34 @ 0x22
  43532. 8012ad0: f040 8180 bne.w 8012dd4 <UART_RxISR_8BIT_FIFOEN+0x33c>
  43533. {
  43534. nb_rx_data = huart->NbRxDataToProcess;
  43535. 8012ad4: 687b ldr r3, [r7, #4]
  43536. 8012ad6: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  43537. 8012ada: f8a7 309e strh.w r3, [r7, #158] @ 0x9e
  43538. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  43539. 8012ade: e123 b.n 8012d28 <UART_RxISR_8BIT_FIFOEN+0x290>
  43540. {
  43541. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  43542. 8012ae0: 687b ldr r3, [r7, #4]
  43543. 8012ae2: 681b ldr r3, [r3, #0]
  43544. 8012ae4: 6a5b ldr r3, [r3, #36] @ 0x24
  43545. 8012ae6: f8a7 309c strh.w r3, [r7, #156] @ 0x9c
  43546. *huart->pRxBuffPtr = (uint8_t)(uhdata & (uint8_t)uhMask);
  43547. 8012aea: f8b7 309c ldrh.w r3, [r7, #156] @ 0x9c
  43548. 8012aee: b2d9 uxtb r1, r3
  43549. 8012af0: f8b7 30aa ldrh.w r3, [r7, #170] @ 0xaa
  43550. 8012af4: b2da uxtb r2, r3
  43551. 8012af6: 687b ldr r3, [r7, #4]
  43552. 8012af8: 6d9b ldr r3, [r3, #88] @ 0x58
  43553. 8012afa: 400a ands r2, r1
  43554. 8012afc: b2d2 uxtb r2, r2
  43555. 8012afe: 701a strb r2, [r3, #0]
  43556. huart->pRxBuffPtr++;
  43557. 8012b00: 687b ldr r3, [r7, #4]
  43558. 8012b02: 6d9b ldr r3, [r3, #88] @ 0x58
  43559. 8012b04: 1c5a adds r2, r3, #1
  43560. 8012b06: 687b ldr r3, [r7, #4]
  43561. 8012b08: 659a str r2, [r3, #88] @ 0x58
  43562. huart->RxXferCount--;
  43563. 8012b0a: 687b ldr r3, [r7, #4]
  43564. 8012b0c: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43565. 8012b10: b29b uxth r3, r3
  43566. 8012b12: 3b01 subs r3, #1
  43567. 8012b14: b29a uxth r2, r3
  43568. 8012b16: 687b ldr r3, [r7, #4]
  43569. 8012b18: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  43570. isrflags = READ_REG(huart->Instance->ISR);
  43571. 8012b1c: 687b ldr r3, [r7, #4]
  43572. 8012b1e: 681b ldr r3, [r3, #0]
  43573. 8012b20: 69db ldr r3, [r3, #28]
  43574. 8012b22: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  43575. /* If some non blocking errors occurred */
  43576. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  43577. 8012b26: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43578. 8012b2a: f003 0307 and.w r3, r3, #7
  43579. 8012b2e: 2b00 cmp r3, #0
  43580. 8012b30: d053 beq.n 8012bda <UART_RxISR_8BIT_FIFOEN+0x142>
  43581. {
  43582. /* UART parity error interrupt occurred -------------------------------------*/
  43583. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  43584. 8012b32: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43585. 8012b36: f003 0301 and.w r3, r3, #1
  43586. 8012b3a: 2b00 cmp r3, #0
  43587. 8012b3c: d011 beq.n 8012b62 <UART_RxISR_8BIT_FIFOEN+0xca>
  43588. 8012b3e: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4
  43589. 8012b42: f403 7380 and.w r3, r3, #256 @ 0x100
  43590. 8012b46: 2b00 cmp r3, #0
  43591. 8012b48: d00b beq.n 8012b62 <UART_RxISR_8BIT_FIFOEN+0xca>
  43592. {
  43593. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  43594. 8012b4a: 687b ldr r3, [r7, #4]
  43595. 8012b4c: 681b ldr r3, [r3, #0]
  43596. 8012b4e: 2201 movs r2, #1
  43597. 8012b50: 621a str r2, [r3, #32]
  43598. huart->ErrorCode |= HAL_UART_ERROR_PE;
  43599. 8012b52: 687b ldr r3, [r7, #4]
  43600. 8012b54: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43601. 8012b58: f043 0201 orr.w r2, r3, #1
  43602. 8012b5c: 687b ldr r3, [r7, #4]
  43603. 8012b5e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43604. }
  43605. /* UART frame error interrupt occurred --------------------------------------*/
  43606. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  43607. 8012b62: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43608. 8012b66: f003 0302 and.w r3, r3, #2
  43609. 8012b6a: 2b00 cmp r3, #0
  43610. 8012b6c: d011 beq.n 8012b92 <UART_RxISR_8BIT_FIFOEN+0xfa>
  43611. 8012b6e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  43612. 8012b72: f003 0301 and.w r3, r3, #1
  43613. 8012b76: 2b00 cmp r3, #0
  43614. 8012b78: d00b beq.n 8012b92 <UART_RxISR_8BIT_FIFOEN+0xfa>
  43615. {
  43616. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  43617. 8012b7a: 687b ldr r3, [r7, #4]
  43618. 8012b7c: 681b ldr r3, [r3, #0]
  43619. 8012b7e: 2202 movs r2, #2
  43620. 8012b80: 621a str r2, [r3, #32]
  43621. huart->ErrorCode |= HAL_UART_ERROR_FE;
  43622. 8012b82: 687b ldr r3, [r7, #4]
  43623. 8012b84: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43624. 8012b88: f043 0204 orr.w r2, r3, #4
  43625. 8012b8c: 687b ldr r3, [r7, #4]
  43626. 8012b8e: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43627. }
  43628. /* UART noise error interrupt occurred --------------------------------------*/
  43629. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  43630. 8012b92: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43631. 8012b96: f003 0304 and.w r3, r3, #4
  43632. 8012b9a: 2b00 cmp r3, #0
  43633. 8012b9c: d011 beq.n 8012bc2 <UART_RxISR_8BIT_FIFOEN+0x12a>
  43634. 8012b9e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  43635. 8012ba2: f003 0301 and.w r3, r3, #1
  43636. 8012ba6: 2b00 cmp r3, #0
  43637. 8012ba8: d00b beq.n 8012bc2 <UART_RxISR_8BIT_FIFOEN+0x12a>
  43638. {
  43639. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  43640. 8012baa: 687b ldr r3, [r7, #4]
  43641. 8012bac: 681b ldr r3, [r3, #0]
  43642. 8012bae: 2204 movs r2, #4
  43643. 8012bb0: 621a str r2, [r3, #32]
  43644. huart->ErrorCode |= HAL_UART_ERROR_NE;
  43645. 8012bb2: 687b ldr r3, [r7, #4]
  43646. 8012bb4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43647. 8012bb8: f043 0202 orr.w r2, r3, #2
  43648. 8012bbc: 687b ldr r3, [r7, #4]
  43649. 8012bbe: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43650. }
  43651. /* Call UART Error Call back function if need be ----------------------------*/
  43652. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  43653. 8012bc2: 687b ldr r3, [r7, #4]
  43654. 8012bc4: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  43655. 8012bc8: 2b00 cmp r3, #0
  43656. 8012bca: d006 beq.n 8012bda <UART_RxISR_8BIT_FIFOEN+0x142>
  43657. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43658. /*Call registered error callback*/
  43659. huart->ErrorCallback(huart);
  43660. #else
  43661. /*Call legacy weak error callback*/
  43662. HAL_UART_ErrorCallback(huart);
  43663. 8012bcc: 6878 ldr r0, [r7, #4]
  43664. 8012bce: f7fe fb13 bl 80111f8 <HAL_UART_ErrorCallback>
  43665. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  43666. huart->ErrorCode = HAL_UART_ERROR_NONE;
  43667. 8012bd2: 687b ldr r3, [r7, #4]
  43668. 8012bd4: 2200 movs r2, #0
  43669. 8012bd6: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  43670. }
  43671. }
  43672. if (huart->RxXferCount == 0U)
  43673. 8012bda: 687b ldr r3, [r7, #4]
  43674. 8012bdc: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43675. 8012be0: b29b uxth r3, r3
  43676. 8012be2: 2b00 cmp r3, #0
  43677. 8012be4: f040 80a0 bne.w 8012d28 <UART_RxISR_8BIT_FIFOEN+0x290>
  43678. {
  43679. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  43680. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  43681. 8012be8: 687b ldr r3, [r7, #4]
  43682. 8012bea: 681b ldr r3, [r3, #0]
  43683. 8012bec: 673b str r3, [r7, #112] @ 0x70
  43684. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43685. 8012bee: 6f3b ldr r3, [r7, #112] @ 0x70
  43686. 8012bf0: e853 3f00 ldrex r3, [r3]
  43687. 8012bf4: 66fb str r3, [r7, #108] @ 0x6c
  43688. return(result);
  43689. 8012bf6: 6efb ldr r3, [r7, #108] @ 0x6c
  43690. 8012bf8: f423 7380 bic.w r3, r3, #256 @ 0x100
  43691. 8012bfc: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  43692. 8012c00: 687b ldr r3, [r7, #4]
  43693. 8012c02: 681b ldr r3, [r3, #0]
  43694. 8012c04: 461a mov r2, r3
  43695. 8012c06: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98
  43696. 8012c0a: 67fb str r3, [r7, #124] @ 0x7c
  43697. 8012c0c: 67ba str r2, [r7, #120] @ 0x78
  43698. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43699. 8012c0e: 6fb9 ldr r1, [r7, #120] @ 0x78
  43700. 8012c10: 6ffa ldr r2, [r7, #124] @ 0x7c
  43701. 8012c12: e841 2300 strex r3, r2, [r1]
  43702. 8012c16: 677b str r3, [r7, #116] @ 0x74
  43703. return(result);
  43704. 8012c18: 6f7b ldr r3, [r7, #116] @ 0x74
  43705. 8012c1a: 2b00 cmp r3, #0
  43706. 8012c1c: d1e4 bne.n 8012be8 <UART_RxISR_8BIT_FIFOEN+0x150>
  43707. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  43708. and RX FIFO Threshold interrupt */
  43709. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  43710. 8012c1e: 687b ldr r3, [r7, #4]
  43711. 8012c20: 681b ldr r3, [r3, #0]
  43712. 8012c22: 3308 adds r3, #8
  43713. 8012c24: 65fb str r3, [r7, #92] @ 0x5c
  43714. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43715. 8012c26: 6dfb ldr r3, [r7, #92] @ 0x5c
  43716. 8012c28: e853 3f00 ldrex r3, [r3]
  43717. 8012c2c: 65bb str r3, [r7, #88] @ 0x58
  43718. return(result);
  43719. 8012c2e: 6dba ldr r2, [r7, #88] @ 0x58
  43720. 8012c30: 4b6e ldr r3, [pc, #440] @ (8012dec <UART_RxISR_8BIT_FIFOEN+0x354>)
  43721. 8012c32: 4013 ands r3, r2
  43722. 8012c34: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  43723. 8012c38: 687b ldr r3, [r7, #4]
  43724. 8012c3a: 681b ldr r3, [r3, #0]
  43725. 8012c3c: 3308 adds r3, #8
  43726. 8012c3e: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94
  43727. 8012c42: 66ba str r2, [r7, #104] @ 0x68
  43728. 8012c44: 667b str r3, [r7, #100] @ 0x64
  43729. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43730. 8012c46: 6e79 ldr r1, [r7, #100] @ 0x64
  43731. 8012c48: 6eba ldr r2, [r7, #104] @ 0x68
  43732. 8012c4a: e841 2300 strex r3, r2, [r1]
  43733. 8012c4e: 663b str r3, [r7, #96] @ 0x60
  43734. return(result);
  43735. 8012c50: 6e3b ldr r3, [r7, #96] @ 0x60
  43736. 8012c52: 2b00 cmp r3, #0
  43737. 8012c54: d1e3 bne.n 8012c1e <UART_RxISR_8BIT_FIFOEN+0x186>
  43738. /* Rx process is completed, restore huart->RxState to Ready */
  43739. huart->RxState = HAL_UART_STATE_READY;
  43740. 8012c56: 687b ldr r3, [r7, #4]
  43741. 8012c58: 2220 movs r2, #32
  43742. 8012c5a: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  43743. /* Clear RxISR function pointer */
  43744. huart->RxISR = NULL;
  43745. 8012c5e: 687b ldr r3, [r7, #4]
  43746. 8012c60: 2200 movs r2, #0
  43747. 8012c62: 675a str r2, [r3, #116] @ 0x74
  43748. /* Initialize type of RxEvent to Transfer Complete */
  43749. huart->RxEventType = HAL_UART_RXEVENT_TC;
  43750. 8012c64: 687b ldr r3, [r7, #4]
  43751. 8012c66: 2200 movs r2, #0
  43752. 8012c68: 671a str r2, [r3, #112] @ 0x70
  43753. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  43754. 8012c6a: 687b ldr r3, [r7, #4]
  43755. 8012c6c: 681b ldr r3, [r3, #0]
  43756. 8012c6e: 4a60 ldr r2, [pc, #384] @ (8012df0 <UART_RxISR_8BIT_FIFOEN+0x358>)
  43757. 8012c70: 4293 cmp r3, r2
  43758. 8012c72: d021 beq.n 8012cb8 <UART_RxISR_8BIT_FIFOEN+0x220>
  43759. {
  43760. /* Check that USART RTOEN bit is set */
  43761. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  43762. 8012c74: 687b ldr r3, [r7, #4]
  43763. 8012c76: 681b ldr r3, [r3, #0]
  43764. 8012c78: 685b ldr r3, [r3, #4]
  43765. 8012c7a: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  43766. 8012c7e: 2b00 cmp r3, #0
  43767. 8012c80: d01a beq.n 8012cb8 <UART_RxISR_8BIT_FIFOEN+0x220>
  43768. {
  43769. /* Enable the UART Receiver Timeout Interrupt */
  43770. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  43771. 8012c82: 687b ldr r3, [r7, #4]
  43772. 8012c84: 681b ldr r3, [r3, #0]
  43773. 8012c86: 64bb str r3, [r7, #72] @ 0x48
  43774. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43775. 8012c88: 6cbb ldr r3, [r7, #72] @ 0x48
  43776. 8012c8a: e853 3f00 ldrex r3, [r3]
  43777. 8012c8e: 647b str r3, [r7, #68] @ 0x44
  43778. return(result);
  43779. 8012c90: 6c7b ldr r3, [r7, #68] @ 0x44
  43780. 8012c92: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  43781. 8012c96: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  43782. 8012c9a: 687b ldr r3, [r7, #4]
  43783. 8012c9c: 681b ldr r3, [r3, #0]
  43784. 8012c9e: 461a mov r2, r3
  43785. 8012ca0: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  43786. 8012ca4: 657b str r3, [r7, #84] @ 0x54
  43787. 8012ca6: 653a str r2, [r7, #80] @ 0x50
  43788. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43789. 8012ca8: 6d39 ldr r1, [r7, #80] @ 0x50
  43790. 8012caa: 6d7a ldr r2, [r7, #84] @ 0x54
  43791. 8012cac: e841 2300 strex r3, r2, [r1]
  43792. 8012cb0: 64fb str r3, [r7, #76] @ 0x4c
  43793. return(result);
  43794. 8012cb2: 6cfb ldr r3, [r7, #76] @ 0x4c
  43795. 8012cb4: 2b00 cmp r3, #0
  43796. 8012cb6: d1e4 bne.n 8012c82 <UART_RxISR_8BIT_FIFOEN+0x1ea>
  43797. }
  43798. }
  43799. /* Check current reception Mode :
  43800. If Reception till IDLE event has been selected : */
  43801. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  43802. 8012cb8: 687b ldr r3, [r7, #4]
  43803. 8012cba: 6edb ldr r3, [r3, #108] @ 0x6c
  43804. 8012cbc: 2b01 cmp r3, #1
  43805. 8012cbe: d130 bne.n 8012d22 <UART_RxISR_8BIT_FIFOEN+0x28a>
  43806. {
  43807. /* Set reception type to Standard */
  43808. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  43809. 8012cc0: 687b ldr r3, [r7, #4]
  43810. 8012cc2: 2200 movs r2, #0
  43811. 8012cc4: 66da str r2, [r3, #108] @ 0x6c
  43812. /* Disable IDLE interrupt */
  43813. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  43814. 8012cc6: 687b ldr r3, [r7, #4]
  43815. 8012cc8: 681b ldr r3, [r3, #0]
  43816. 8012cca: 637b str r3, [r7, #52] @ 0x34
  43817. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43818. 8012ccc: 6b7b ldr r3, [r7, #52] @ 0x34
  43819. 8012cce: e853 3f00 ldrex r3, [r3]
  43820. 8012cd2: 633b str r3, [r7, #48] @ 0x30
  43821. return(result);
  43822. 8012cd4: 6b3b ldr r3, [r7, #48] @ 0x30
  43823. 8012cd6: f023 0310 bic.w r3, r3, #16
  43824. 8012cda: f8c7 308c str.w r3, [r7, #140] @ 0x8c
  43825. 8012cde: 687b ldr r3, [r7, #4]
  43826. 8012ce0: 681b ldr r3, [r3, #0]
  43827. 8012ce2: 461a mov r2, r3
  43828. 8012ce4: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c
  43829. 8012ce8: 643b str r3, [r7, #64] @ 0x40
  43830. 8012cea: 63fa str r2, [r7, #60] @ 0x3c
  43831. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43832. 8012cec: 6bf9 ldr r1, [r7, #60] @ 0x3c
  43833. 8012cee: 6c3a ldr r2, [r7, #64] @ 0x40
  43834. 8012cf0: e841 2300 strex r3, r2, [r1]
  43835. 8012cf4: 63bb str r3, [r7, #56] @ 0x38
  43836. return(result);
  43837. 8012cf6: 6bbb ldr r3, [r7, #56] @ 0x38
  43838. 8012cf8: 2b00 cmp r3, #0
  43839. 8012cfa: d1e4 bne.n 8012cc6 <UART_RxISR_8BIT_FIFOEN+0x22e>
  43840. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  43841. 8012cfc: 687b ldr r3, [r7, #4]
  43842. 8012cfe: 681b ldr r3, [r3, #0]
  43843. 8012d00: 69db ldr r3, [r3, #28]
  43844. 8012d02: f003 0310 and.w r3, r3, #16
  43845. 8012d06: 2b10 cmp r3, #16
  43846. 8012d08: d103 bne.n 8012d12 <UART_RxISR_8BIT_FIFOEN+0x27a>
  43847. {
  43848. /* Clear IDLE Flag */
  43849. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  43850. 8012d0a: 687b ldr r3, [r7, #4]
  43851. 8012d0c: 681b ldr r3, [r3, #0]
  43852. 8012d0e: 2210 movs r2, #16
  43853. 8012d10: 621a str r2, [r3, #32]
  43854. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43855. /*Call registered Rx Event callback*/
  43856. huart->RxEventCallback(huart, huart->RxXferSize);
  43857. #else
  43858. /*Call legacy weak Rx Event callback*/
  43859. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  43860. 8012d12: 687b ldr r3, [r7, #4]
  43861. 8012d14: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  43862. 8012d18: 4619 mov r1, r3
  43863. 8012d1a: 6878 ldr r0, [r7, #4]
  43864. 8012d1c: f7f1 fca2 bl 8004664 <HAL_UARTEx_RxEventCallback>
  43865. 8012d20: e002 b.n 8012d28 <UART_RxISR_8BIT_FIFOEN+0x290>
  43866. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  43867. /*Call registered Rx complete callback*/
  43868. huart->RxCpltCallback(huart);
  43869. #else
  43870. /*Call legacy weak Rx complete callback*/
  43871. HAL_UART_RxCpltCallback(huart);
  43872. 8012d22: 6878 ldr r0, [r7, #4]
  43873. 8012d24: f7f1 fc94 bl 8004650 <HAL_UART_RxCpltCallback>
  43874. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  43875. 8012d28: f8b7 309e ldrh.w r3, [r7, #158] @ 0x9e
  43876. 8012d2c: 2b00 cmp r3, #0
  43877. 8012d2e: d006 beq.n 8012d3e <UART_RxISR_8BIT_FIFOEN+0x2a6>
  43878. 8012d30: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  43879. 8012d34: f003 0320 and.w r3, r3, #32
  43880. 8012d38: 2b00 cmp r3, #0
  43881. 8012d3a: f47f aed1 bne.w 8012ae0 <UART_RxISR_8BIT_FIFOEN+0x48>
  43882. /* When remaining number of bytes to receive is less than the RX FIFO
  43883. threshold, next incoming frames are processed as if FIFO mode was
  43884. disabled (i.e. one interrupt per received frame).
  43885. */
  43886. rxdatacount = huart->RxXferCount;
  43887. 8012d3e: 687b ldr r3, [r7, #4]
  43888. 8012d40: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  43889. 8012d44: f8a7 308a strh.w r3, [r7, #138] @ 0x8a
  43890. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  43891. 8012d48: f8b7 308a ldrh.w r3, [r7, #138] @ 0x8a
  43892. 8012d4c: 2b00 cmp r3, #0
  43893. 8012d4e: d049 beq.n 8012de4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  43894. 8012d50: 687b ldr r3, [r7, #4]
  43895. 8012d52: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  43896. 8012d56: f8b7 208a ldrh.w r2, [r7, #138] @ 0x8a
  43897. 8012d5a: 429a cmp r2, r3
  43898. 8012d5c: d242 bcs.n 8012de4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  43899. {
  43900. /* Disable the UART RXFT interrupt*/
  43901. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  43902. 8012d5e: 687b ldr r3, [r7, #4]
  43903. 8012d60: 681b ldr r3, [r3, #0]
  43904. 8012d62: 3308 adds r3, #8
  43905. 8012d64: 623b str r3, [r7, #32]
  43906. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43907. 8012d66: 6a3b ldr r3, [r7, #32]
  43908. 8012d68: e853 3f00 ldrex r3, [r3]
  43909. 8012d6c: 61fb str r3, [r7, #28]
  43910. return(result);
  43911. 8012d6e: 69fb ldr r3, [r7, #28]
  43912. 8012d70: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  43913. 8012d74: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  43914. 8012d78: 687b ldr r3, [r7, #4]
  43915. 8012d7a: 681b ldr r3, [r3, #0]
  43916. 8012d7c: 3308 adds r3, #8
  43917. 8012d7e: f8d7 2084 ldr.w r2, [r7, #132] @ 0x84
  43918. 8012d82: 62fa str r2, [r7, #44] @ 0x2c
  43919. 8012d84: 62bb str r3, [r7, #40] @ 0x28
  43920. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43921. 8012d86: 6ab9 ldr r1, [r7, #40] @ 0x28
  43922. 8012d88: 6afa ldr r2, [r7, #44] @ 0x2c
  43923. 8012d8a: e841 2300 strex r3, r2, [r1]
  43924. 8012d8e: 627b str r3, [r7, #36] @ 0x24
  43925. return(result);
  43926. 8012d90: 6a7b ldr r3, [r7, #36] @ 0x24
  43927. 8012d92: 2b00 cmp r3, #0
  43928. 8012d94: d1e3 bne.n 8012d5e <UART_RxISR_8BIT_FIFOEN+0x2c6>
  43929. /* Update the RxISR function pointer */
  43930. huart->RxISR = UART_RxISR_8BIT;
  43931. 8012d96: 687b ldr r3, [r7, #4]
  43932. 8012d98: 4a16 ldr r2, [pc, #88] @ (8012df4 <UART_RxISR_8BIT_FIFOEN+0x35c>)
  43933. 8012d9a: 675a str r2, [r3, #116] @ 0x74
  43934. /* Enable the UART Data Register Not Empty interrupt */
  43935. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  43936. 8012d9c: 687b ldr r3, [r7, #4]
  43937. 8012d9e: 681b ldr r3, [r3, #0]
  43938. 8012da0: 60fb str r3, [r7, #12]
  43939. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  43940. 8012da2: 68fb ldr r3, [r7, #12]
  43941. 8012da4: e853 3f00 ldrex r3, [r3]
  43942. 8012da8: 60bb str r3, [r7, #8]
  43943. return(result);
  43944. 8012daa: 68bb ldr r3, [r7, #8]
  43945. 8012dac: f043 0320 orr.w r3, r3, #32
  43946. 8012db0: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  43947. 8012db4: 687b ldr r3, [r7, #4]
  43948. 8012db6: 681b ldr r3, [r3, #0]
  43949. 8012db8: 461a mov r2, r3
  43950. 8012dba: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80
  43951. 8012dbe: 61bb str r3, [r7, #24]
  43952. 8012dc0: 617a str r2, [r7, #20]
  43953. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  43954. 8012dc2: 6979 ldr r1, [r7, #20]
  43955. 8012dc4: 69ba ldr r2, [r7, #24]
  43956. 8012dc6: e841 2300 strex r3, r2, [r1]
  43957. 8012dca: 613b str r3, [r7, #16]
  43958. return(result);
  43959. 8012dcc: 693b ldr r3, [r7, #16]
  43960. 8012dce: 2b00 cmp r3, #0
  43961. 8012dd0: d1e4 bne.n 8012d9c <UART_RxISR_8BIT_FIFOEN+0x304>
  43962. else
  43963. {
  43964. /* Clear RXNE interrupt flag */
  43965. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43966. }
  43967. }
  43968. 8012dd2: e007 b.n 8012de4 <UART_RxISR_8BIT_FIFOEN+0x34c>
  43969. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  43970. 8012dd4: 687b ldr r3, [r7, #4]
  43971. 8012dd6: 681b ldr r3, [r3, #0]
  43972. 8012dd8: 699a ldr r2, [r3, #24]
  43973. 8012dda: 687b ldr r3, [r7, #4]
  43974. 8012ddc: 681b ldr r3, [r3, #0]
  43975. 8012dde: f042 0208 orr.w r2, r2, #8
  43976. 8012de2: 619a str r2, [r3, #24]
  43977. }
  43978. 8012de4: bf00 nop
  43979. 8012de6: 37b0 adds r7, #176 @ 0xb0
  43980. 8012de8: 46bd mov sp, r7
  43981. 8012dea: bd80 pop {r7, pc}
  43982. 8012dec: effffffe .word 0xeffffffe
  43983. 8012df0: 58000c00 .word 0x58000c00
  43984. 8012df4: 08012729 .word 0x08012729
  43985. 08012df8 <UART_RxISR_16BIT_FIFOEN>:
  43986. * interruptions have been enabled by HAL_UART_Receive_IT()
  43987. * @param huart UART handle.
  43988. * @retval None
  43989. */
  43990. static void UART_RxISR_16BIT_FIFOEN(UART_HandleTypeDef *huart)
  43991. {
  43992. 8012df8: b580 push {r7, lr}
  43993. 8012dfa: b0ae sub sp, #184 @ 0xb8
  43994. 8012dfc: af00 add r7, sp, #0
  43995. 8012dfe: 6078 str r0, [r7, #4]
  43996. uint16_t *tmp;
  43997. uint16_t uhMask = huart->Mask;
  43998. 8012e00: 687b ldr r3, [r7, #4]
  43999. 8012e02: f8b3 3060 ldrh.w r3, [r3, #96] @ 0x60
  44000. 8012e06: f8a7 30b2 strh.w r3, [r7, #178] @ 0xb2
  44001. uint16_t uhdata;
  44002. uint16_t nb_rx_data;
  44003. uint16_t rxdatacount;
  44004. uint32_t isrflags = READ_REG(huart->Instance->ISR);
  44005. 8012e0a: 687b ldr r3, [r7, #4]
  44006. 8012e0c: 681b ldr r3, [r3, #0]
  44007. 8012e0e: 69db ldr r3, [r3, #28]
  44008. 8012e10: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44009. uint32_t cr1its = READ_REG(huart->Instance->CR1);
  44010. 8012e14: 687b ldr r3, [r7, #4]
  44011. 8012e16: 681b ldr r3, [r3, #0]
  44012. 8012e18: 681b ldr r3, [r3, #0]
  44013. 8012e1a: f8c7 30ac str.w r3, [r7, #172] @ 0xac
  44014. uint32_t cr3its = READ_REG(huart->Instance->CR3);
  44015. 8012e1e: 687b ldr r3, [r7, #4]
  44016. 8012e20: 681b ldr r3, [r3, #0]
  44017. 8012e22: 689b ldr r3, [r3, #8]
  44018. 8012e24: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
  44019. /* Check that a Rx process is ongoing */
  44020. if (huart->RxState == HAL_UART_STATE_BUSY_RX)
  44021. 8012e28: 687b ldr r3, [r7, #4]
  44022. 8012e2a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44023. 8012e2e: 2b22 cmp r3, #34 @ 0x22
  44024. 8012e30: f040 8184 bne.w 801313c <UART_RxISR_16BIT_FIFOEN+0x344>
  44025. {
  44026. nb_rx_data = huart->NbRxDataToProcess;
  44027. 8012e34: 687b ldr r3, [r7, #4]
  44028. 8012e36: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44029. 8012e3a: f8a7 30a6 strh.w r3, [r7, #166] @ 0xa6
  44030. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44031. 8012e3e: e127 b.n 8013090 <UART_RxISR_16BIT_FIFOEN+0x298>
  44032. {
  44033. uhdata = (uint16_t) READ_REG(huart->Instance->RDR);
  44034. 8012e40: 687b ldr r3, [r7, #4]
  44035. 8012e42: 681b ldr r3, [r3, #0]
  44036. 8012e44: 6a5b ldr r3, [r3, #36] @ 0x24
  44037. 8012e46: f8a7 30a4 strh.w r3, [r7, #164] @ 0xa4
  44038. tmp = (uint16_t *) huart->pRxBuffPtr ;
  44039. 8012e4a: 687b ldr r3, [r7, #4]
  44040. 8012e4c: 6d9b ldr r3, [r3, #88] @ 0x58
  44041. 8012e4e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
  44042. *tmp = (uint16_t)(uhdata & uhMask);
  44043. 8012e52: f8b7 20a4 ldrh.w r2, [r7, #164] @ 0xa4
  44044. 8012e56: f8b7 30b2 ldrh.w r3, [r7, #178] @ 0xb2
  44045. 8012e5a: 4013 ands r3, r2
  44046. 8012e5c: b29a uxth r2, r3
  44047. 8012e5e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0
  44048. 8012e62: 801a strh r2, [r3, #0]
  44049. huart->pRxBuffPtr += 2U;
  44050. 8012e64: 687b ldr r3, [r7, #4]
  44051. 8012e66: 6d9b ldr r3, [r3, #88] @ 0x58
  44052. 8012e68: 1c9a adds r2, r3, #2
  44053. 8012e6a: 687b ldr r3, [r7, #4]
  44054. 8012e6c: 659a str r2, [r3, #88] @ 0x58
  44055. huart->RxXferCount--;
  44056. 8012e6e: 687b ldr r3, [r7, #4]
  44057. 8012e70: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44058. 8012e74: b29b uxth r3, r3
  44059. 8012e76: 3b01 subs r3, #1
  44060. 8012e78: b29a uxth r2, r3
  44061. 8012e7a: 687b ldr r3, [r7, #4]
  44062. 8012e7c: f8a3 205e strh.w r2, [r3, #94] @ 0x5e
  44063. isrflags = READ_REG(huart->Instance->ISR);
  44064. 8012e80: 687b ldr r3, [r7, #4]
  44065. 8012e82: 681b ldr r3, [r3, #0]
  44066. 8012e84: 69db ldr r3, [r3, #28]
  44067. 8012e86: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
  44068. /* If some non blocking errors occurred */
  44069. if ((isrflags & (USART_ISR_PE | USART_ISR_FE | USART_ISR_NE)) != 0U)
  44070. 8012e8a: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44071. 8012e8e: f003 0307 and.w r3, r3, #7
  44072. 8012e92: 2b00 cmp r3, #0
  44073. 8012e94: d053 beq.n 8012f3e <UART_RxISR_16BIT_FIFOEN+0x146>
  44074. {
  44075. /* UART parity error interrupt occurred -------------------------------------*/
  44076. if (((isrflags & USART_ISR_PE) != 0U) && ((cr1its & USART_CR1_PEIE) != 0U))
  44077. 8012e96: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44078. 8012e9a: f003 0301 and.w r3, r3, #1
  44079. 8012e9e: 2b00 cmp r3, #0
  44080. 8012ea0: d011 beq.n 8012ec6 <UART_RxISR_16BIT_FIFOEN+0xce>
  44081. 8012ea2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac
  44082. 8012ea6: f403 7380 and.w r3, r3, #256 @ 0x100
  44083. 8012eaa: 2b00 cmp r3, #0
  44084. 8012eac: d00b beq.n 8012ec6 <UART_RxISR_16BIT_FIFOEN+0xce>
  44085. {
  44086. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF);
  44087. 8012eae: 687b ldr r3, [r7, #4]
  44088. 8012eb0: 681b ldr r3, [r3, #0]
  44089. 8012eb2: 2201 movs r2, #1
  44090. 8012eb4: 621a str r2, [r3, #32]
  44091. huart->ErrorCode |= HAL_UART_ERROR_PE;
  44092. 8012eb6: 687b ldr r3, [r7, #4]
  44093. 8012eb8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44094. 8012ebc: f043 0201 orr.w r2, r3, #1
  44095. 8012ec0: 687b ldr r3, [r7, #4]
  44096. 8012ec2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44097. }
  44098. /* UART frame error interrupt occurred --------------------------------------*/
  44099. if (((isrflags & USART_ISR_FE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44100. 8012ec6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44101. 8012eca: f003 0302 and.w r3, r3, #2
  44102. 8012ece: 2b00 cmp r3, #0
  44103. 8012ed0: d011 beq.n 8012ef6 <UART_RxISR_16BIT_FIFOEN+0xfe>
  44104. 8012ed2: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44105. 8012ed6: f003 0301 and.w r3, r3, #1
  44106. 8012eda: 2b00 cmp r3, #0
  44107. 8012edc: d00b beq.n 8012ef6 <UART_RxISR_16BIT_FIFOEN+0xfe>
  44108. {
  44109. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_FEF);
  44110. 8012ede: 687b ldr r3, [r7, #4]
  44111. 8012ee0: 681b ldr r3, [r3, #0]
  44112. 8012ee2: 2202 movs r2, #2
  44113. 8012ee4: 621a str r2, [r3, #32]
  44114. huart->ErrorCode |= HAL_UART_ERROR_FE;
  44115. 8012ee6: 687b ldr r3, [r7, #4]
  44116. 8012ee8: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44117. 8012eec: f043 0204 orr.w r2, r3, #4
  44118. 8012ef0: 687b ldr r3, [r7, #4]
  44119. 8012ef2: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44120. }
  44121. /* UART noise error interrupt occurred --------------------------------------*/
  44122. if (((isrflags & USART_ISR_NE) != 0U) && ((cr3its & USART_CR3_EIE) != 0U))
  44123. 8012ef6: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44124. 8012efa: f003 0304 and.w r3, r3, #4
  44125. 8012efe: 2b00 cmp r3, #0
  44126. 8012f00: d011 beq.n 8012f26 <UART_RxISR_16BIT_FIFOEN+0x12e>
  44127. 8012f02: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8
  44128. 8012f06: f003 0301 and.w r3, r3, #1
  44129. 8012f0a: 2b00 cmp r3, #0
  44130. 8012f0c: d00b beq.n 8012f26 <UART_RxISR_16BIT_FIFOEN+0x12e>
  44131. {
  44132. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_NEF);
  44133. 8012f0e: 687b ldr r3, [r7, #4]
  44134. 8012f10: 681b ldr r3, [r3, #0]
  44135. 8012f12: 2204 movs r2, #4
  44136. 8012f14: 621a str r2, [r3, #32]
  44137. huart->ErrorCode |= HAL_UART_ERROR_NE;
  44138. 8012f16: 687b ldr r3, [r7, #4]
  44139. 8012f18: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44140. 8012f1c: f043 0202 orr.w r2, r3, #2
  44141. 8012f20: 687b ldr r3, [r7, #4]
  44142. 8012f22: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44143. }
  44144. /* Call UART Error Call back function if need be ----------------------------*/
  44145. if (huart->ErrorCode != HAL_UART_ERROR_NONE)
  44146. 8012f26: 687b ldr r3, [r7, #4]
  44147. 8012f28: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
  44148. 8012f2c: 2b00 cmp r3, #0
  44149. 8012f2e: d006 beq.n 8012f3e <UART_RxISR_16BIT_FIFOEN+0x146>
  44150. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44151. /*Call registered error callback*/
  44152. huart->ErrorCallback(huart);
  44153. #else
  44154. /*Call legacy weak error callback*/
  44155. HAL_UART_ErrorCallback(huart);
  44156. 8012f30: 6878 ldr r0, [r7, #4]
  44157. 8012f32: f7fe f961 bl 80111f8 <HAL_UART_ErrorCallback>
  44158. #endif /* USE_HAL_UART_REGISTER_CALLBACKS */
  44159. huart->ErrorCode = HAL_UART_ERROR_NONE;
  44160. 8012f36: 687b ldr r3, [r7, #4]
  44161. 8012f38: 2200 movs r2, #0
  44162. 8012f3a: f8c3 2090 str.w r2, [r3, #144] @ 0x90
  44163. }
  44164. }
  44165. if (huart->RxXferCount == 0U)
  44166. 8012f3e: 687b ldr r3, [r7, #4]
  44167. 8012f40: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44168. 8012f44: b29b uxth r3, r3
  44169. 8012f46: 2b00 cmp r3, #0
  44170. 8012f48: f040 80a2 bne.w 8013090 <UART_RxISR_16BIT_FIFOEN+0x298>
  44171. {
  44172. /* Disable the UART Parity Error Interrupt and RXFT interrupt*/
  44173. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE);
  44174. 8012f4c: 687b ldr r3, [r7, #4]
  44175. 8012f4e: 681b ldr r3, [r3, #0]
  44176. 8012f50: 677b str r3, [r7, #116] @ 0x74
  44177. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44178. 8012f52: 6f7b ldr r3, [r7, #116] @ 0x74
  44179. 8012f54: e853 3f00 ldrex r3, [r3]
  44180. 8012f58: 673b str r3, [r7, #112] @ 0x70
  44181. return(result);
  44182. 8012f5a: 6f3b ldr r3, [r7, #112] @ 0x70
  44183. 8012f5c: f423 7380 bic.w r3, r3, #256 @ 0x100
  44184. 8012f60: f8c7 309c str.w r3, [r7, #156] @ 0x9c
  44185. 8012f64: 687b ldr r3, [r7, #4]
  44186. 8012f66: 681b ldr r3, [r3, #0]
  44187. 8012f68: 461a mov r2, r3
  44188. 8012f6a: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c
  44189. 8012f6e: f8c7 3080 str.w r3, [r7, #128] @ 0x80
  44190. 8012f72: 67fa str r2, [r7, #124] @ 0x7c
  44191. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44192. 8012f74: 6ff9 ldr r1, [r7, #124] @ 0x7c
  44193. 8012f76: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80
  44194. 8012f7a: e841 2300 strex r3, r2, [r1]
  44195. 8012f7e: 67bb str r3, [r7, #120] @ 0x78
  44196. return(result);
  44197. 8012f80: 6fbb ldr r3, [r7, #120] @ 0x78
  44198. 8012f82: 2b00 cmp r3, #0
  44199. 8012f84: d1e2 bne.n 8012f4c <UART_RxISR_16BIT_FIFOEN+0x154>
  44200. /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error)
  44201. and RX FIFO Threshold interrupt */
  44202. ATOMIC_CLEAR_BIT(huart->Instance->CR3, (USART_CR3_EIE | USART_CR3_RXFTIE));
  44203. 8012f86: 687b ldr r3, [r7, #4]
  44204. 8012f88: 681b ldr r3, [r3, #0]
  44205. 8012f8a: 3308 adds r3, #8
  44206. 8012f8c: 663b str r3, [r7, #96] @ 0x60
  44207. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44208. 8012f8e: 6e3b ldr r3, [r7, #96] @ 0x60
  44209. 8012f90: e853 3f00 ldrex r3, [r3]
  44210. 8012f94: 65fb str r3, [r7, #92] @ 0x5c
  44211. return(result);
  44212. 8012f96: 6dfa ldr r2, [r7, #92] @ 0x5c
  44213. 8012f98: 4b6e ldr r3, [pc, #440] @ (8013154 <UART_RxISR_16BIT_FIFOEN+0x35c>)
  44214. 8012f9a: 4013 ands r3, r2
  44215. 8012f9c: f8c7 3098 str.w r3, [r7, #152] @ 0x98
  44216. 8012fa0: 687b ldr r3, [r7, #4]
  44217. 8012fa2: 681b ldr r3, [r3, #0]
  44218. 8012fa4: 3308 adds r3, #8
  44219. 8012fa6: f8d7 2098 ldr.w r2, [r7, #152] @ 0x98
  44220. 8012faa: 66fa str r2, [r7, #108] @ 0x6c
  44221. 8012fac: 66bb str r3, [r7, #104] @ 0x68
  44222. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44223. 8012fae: 6eb9 ldr r1, [r7, #104] @ 0x68
  44224. 8012fb0: 6efa ldr r2, [r7, #108] @ 0x6c
  44225. 8012fb2: e841 2300 strex r3, r2, [r1]
  44226. 8012fb6: 667b str r3, [r7, #100] @ 0x64
  44227. return(result);
  44228. 8012fb8: 6e7b ldr r3, [r7, #100] @ 0x64
  44229. 8012fba: 2b00 cmp r3, #0
  44230. 8012fbc: d1e3 bne.n 8012f86 <UART_RxISR_16BIT_FIFOEN+0x18e>
  44231. /* Rx process is completed, restore huart->RxState to Ready */
  44232. huart->RxState = HAL_UART_STATE_READY;
  44233. 8012fbe: 687b ldr r3, [r7, #4]
  44234. 8012fc0: 2220 movs r2, #32
  44235. 8012fc2: f8c3 208c str.w r2, [r3, #140] @ 0x8c
  44236. /* Clear RxISR function pointer */
  44237. huart->RxISR = NULL;
  44238. 8012fc6: 687b ldr r3, [r7, #4]
  44239. 8012fc8: 2200 movs r2, #0
  44240. 8012fca: 675a str r2, [r3, #116] @ 0x74
  44241. /* Initialize type of RxEvent to Transfer Complete */
  44242. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44243. 8012fcc: 687b ldr r3, [r7, #4]
  44244. 8012fce: 2200 movs r2, #0
  44245. 8012fd0: 671a str r2, [r3, #112] @ 0x70
  44246. if (!(IS_LPUART_INSTANCE(huart->Instance)))
  44247. 8012fd2: 687b ldr r3, [r7, #4]
  44248. 8012fd4: 681b ldr r3, [r3, #0]
  44249. 8012fd6: 4a60 ldr r2, [pc, #384] @ (8013158 <UART_RxISR_16BIT_FIFOEN+0x360>)
  44250. 8012fd8: 4293 cmp r3, r2
  44251. 8012fda: d021 beq.n 8013020 <UART_RxISR_16BIT_FIFOEN+0x228>
  44252. {
  44253. /* Check that USART RTOEN bit is set */
  44254. if (READ_BIT(huart->Instance->CR2, USART_CR2_RTOEN) != 0U)
  44255. 8012fdc: 687b ldr r3, [r7, #4]
  44256. 8012fde: 681b ldr r3, [r3, #0]
  44257. 8012fe0: 685b ldr r3, [r3, #4]
  44258. 8012fe2: f403 0300 and.w r3, r3, #8388608 @ 0x800000
  44259. 8012fe6: 2b00 cmp r3, #0
  44260. 8012fe8: d01a beq.n 8013020 <UART_RxISR_16BIT_FIFOEN+0x228>
  44261. {
  44262. /* Enable the UART Receiver Timeout Interrupt */
  44263. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_RTOIE);
  44264. 8012fea: 687b ldr r3, [r7, #4]
  44265. 8012fec: 681b ldr r3, [r3, #0]
  44266. 8012fee: 64fb str r3, [r7, #76] @ 0x4c
  44267. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44268. 8012ff0: 6cfb ldr r3, [r7, #76] @ 0x4c
  44269. 8012ff2: e853 3f00 ldrex r3, [r3]
  44270. 8012ff6: 64bb str r3, [r7, #72] @ 0x48
  44271. return(result);
  44272. 8012ff8: 6cbb ldr r3, [r7, #72] @ 0x48
  44273. 8012ffa: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
  44274. 8012ffe: f8c7 3094 str.w r3, [r7, #148] @ 0x94
  44275. 8013002: 687b ldr r3, [r7, #4]
  44276. 8013004: 681b ldr r3, [r3, #0]
  44277. 8013006: 461a mov r2, r3
  44278. 8013008: f8d7 3094 ldr.w r3, [r7, #148] @ 0x94
  44279. 801300c: 65bb str r3, [r7, #88] @ 0x58
  44280. 801300e: 657a str r2, [r7, #84] @ 0x54
  44281. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44282. 8013010: 6d79 ldr r1, [r7, #84] @ 0x54
  44283. 8013012: 6dba ldr r2, [r7, #88] @ 0x58
  44284. 8013014: e841 2300 strex r3, r2, [r1]
  44285. 8013018: 653b str r3, [r7, #80] @ 0x50
  44286. return(result);
  44287. 801301a: 6d3b ldr r3, [r7, #80] @ 0x50
  44288. 801301c: 2b00 cmp r3, #0
  44289. 801301e: d1e4 bne.n 8012fea <UART_RxISR_16BIT_FIFOEN+0x1f2>
  44290. }
  44291. }
  44292. /* Check current reception Mode :
  44293. If Reception till IDLE event has been selected : */
  44294. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44295. 8013020: 687b ldr r3, [r7, #4]
  44296. 8013022: 6edb ldr r3, [r3, #108] @ 0x6c
  44297. 8013024: 2b01 cmp r3, #1
  44298. 8013026: d130 bne.n 801308a <UART_RxISR_16BIT_FIFOEN+0x292>
  44299. {
  44300. /* Set reception type to Standard */
  44301. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  44302. 8013028: 687b ldr r3, [r7, #4]
  44303. 801302a: 2200 movs r2, #0
  44304. 801302c: 66da str r2, [r3, #108] @ 0x6c
  44305. /* Disable IDLE interrupt */
  44306. ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44307. 801302e: 687b ldr r3, [r7, #4]
  44308. 8013030: 681b ldr r3, [r3, #0]
  44309. 8013032: 63bb str r3, [r7, #56] @ 0x38
  44310. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44311. 8013034: 6bbb ldr r3, [r7, #56] @ 0x38
  44312. 8013036: e853 3f00 ldrex r3, [r3]
  44313. 801303a: 637b str r3, [r7, #52] @ 0x34
  44314. return(result);
  44315. 801303c: 6b7b ldr r3, [r7, #52] @ 0x34
  44316. 801303e: f023 0310 bic.w r3, r3, #16
  44317. 8013042: f8c7 3090 str.w r3, [r7, #144] @ 0x90
  44318. 8013046: 687b ldr r3, [r7, #4]
  44319. 8013048: 681b ldr r3, [r3, #0]
  44320. 801304a: 461a mov r2, r3
  44321. 801304c: f8d7 3090 ldr.w r3, [r7, #144] @ 0x90
  44322. 8013050: 647b str r3, [r7, #68] @ 0x44
  44323. 8013052: 643a str r2, [r7, #64] @ 0x40
  44324. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44325. 8013054: 6c39 ldr r1, [r7, #64] @ 0x40
  44326. 8013056: 6c7a ldr r2, [r7, #68] @ 0x44
  44327. 8013058: e841 2300 strex r3, r2, [r1]
  44328. 801305c: 63fb str r3, [r7, #60] @ 0x3c
  44329. return(result);
  44330. 801305e: 6bfb ldr r3, [r7, #60] @ 0x3c
  44331. 8013060: 2b00 cmp r3, #0
  44332. 8013062: d1e4 bne.n 801302e <UART_RxISR_16BIT_FIFOEN+0x236>
  44333. if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE) == SET)
  44334. 8013064: 687b ldr r3, [r7, #4]
  44335. 8013066: 681b ldr r3, [r3, #0]
  44336. 8013068: 69db ldr r3, [r3, #28]
  44337. 801306a: f003 0310 and.w r3, r3, #16
  44338. 801306e: 2b10 cmp r3, #16
  44339. 8013070: d103 bne.n 801307a <UART_RxISR_16BIT_FIFOEN+0x282>
  44340. {
  44341. /* Clear IDLE Flag */
  44342. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44343. 8013072: 687b ldr r3, [r7, #4]
  44344. 8013074: 681b ldr r3, [r3, #0]
  44345. 8013076: 2210 movs r2, #16
  44346. 8013078: 621a str r2, [r3, #32]
  44347. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44348. /*Call registered Rx Event callback*/
  44349. huart->RxEventCallback(huart, huart->RxXferSize);
  44350. #else
  44351. /*Call legacy weak Rx Event callback*/
  44352. HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize);
  44353. 801307a: 687b ldr r3, [r7, #4]
  44354. 801307c: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
  44355. 8013080: 4619 mov r1, r3
  44356. 8013082: 6878 ldr r0, [r7, #4]
  44357. 8013084: f7f1 faee bl 8004664 <HAL_UARTEx_RxEventCallback>
  44358. 8013088: e002 b.n 8013090 <UART_RxISR_16BIT_FIFOEN+0x298>
  44359. #if (USE_HAL_UART_REGISTER_CALLBACKS == 1)
  44360. /*Call registered Rx complete callback*/
  44361. huart->RxCpltCallback(huart);
  44362. #else
  44363. /*Call legacy weak Rx complete callback*/
  44364. HAL_UART_RxCpltCallback(huart);
  44365. 801308a: 6878 ldr r0, [r7, #4]
  44366. 801308c: f7f1 fae0 bl 8004650 <HAL_UART_RxCpltCallback>
  44367. while ((nb_rx_data > 0U) && ((isrflags & USART_ISR_RXNE_RXFNE) != 0U))
  44368. 8013090: f8b7 30a6 ldrh.w r3, [r7, #166] @ 0xa6
  44369. 8013094: 2b00 cmp r3, #0
  44370. 8013096: d006 beq.n 80130a6 <UART_RxISR_16BIT_FIFOEN+0x2ae>
  44371. 8013098: f8d7 30b4 ldr.w r3, [r7, #180] @ 0xb4
  44372. 801309c: f003 0320 and.w r3, r3, #32
  44373. 80130a0: 2b00 cmp r3, #0
  44374. 80130a2: f47f aecd bne.w 8012e40 <UART_RxISR_16BIT_FIFOEN+0x48>
  44375. /* When remaining number of bytes to receive is less than the RX FIFO
  44376. threshold, next incoming frames are processed as if FIFO mode was
  44377. disabled (i.e. one interrupt per received frame).
  44378. */
  44379. rxdatacount = huart->RxXferCount;
  44380. 80130a6: 687b ldr r3, [r7, #4]
  44381. 80130a8: f8b3 305e ldrh.w r3, [r3, #94] @ 0x5e
  44382. 80130ac: f8a7 308e strh.w r3, [r7, #142] @ 0x8e
  44383. if ((rxdatacount != 0U) && (rxdatacount < huart->NbRxDataToProcess))
  44384. 80130b0: f8b7 308e ldrh.w r3, [r7, #142] @ 0x8e
  44385. 80130b4: 2b00 cmp r3, #0
  44386. 80130b6: d049 beq.n 801314c <UART_RxISR_16BIT_FIFOEN+0x354>
  44387. 80130b8: 687b ldr r3, [r7, #4]
  44388. 80130ba: f8b3 3068 ldrh.w r3, [r3, #104] @ 0x68
  44389. 80130be: f8b7 208e ldrh.w r2, [r7, #142] @ 0x8e
  44390. 80130c2: 429a cmp r2, r3
  44391. 80130c4: d242 bcs.n 801314c <UART_RxISR_16BIT_FIFOEN+0x354>
  44392. {
  44393. /* Disable the UART RXFT interrupt*/
  44394. ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_RXFTIE);
  44395. 80130c6: 687b ldr r3, [r7, #4]
  44396. 80130c8: 681b ldr r3, [r3, #0]
  44397. 80130ca: 3308 adds r3, #8
  44398. 80130cc: 627b str r3, [r7, #36] @ 0x24
  44399. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44400. 80130ce: 6a7b ldr r3, [r7, #36] @ 0x24
  44401. 80130d0: e853 3f00 ldrex r3, [r3]
  44402. 80130d4: 623b str r3, [r7, #32]
  44403. return(result);
  44404. 80130d6: 6a3b ldr r3, [r7, #32]
  44405. 80130d8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
  44406. 80130dc: f8c7 3088 str.w r3, [r7, #136] @ 0x88
  44407. 80130e0: 687b ldr r3, [r7, #4]
  44408. 80130e2: 681b ldr r3, [r3, #0]
  44409. 80130e4: 3308 adds r3, #8
  44410. 80130e6: f8d7 2088 ldr.w r2, [r7, #136] @ 0x88
  44411. 80130ea: 633a str r2, [r7, #48] @ 0x30
  44412. 80130ec: 62fb str r3, [r7, #44] @ 0x2c
  44413. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44414. 80130ee: 6af9 ldr r1, [r7, #44] @ 0x2c
  44415. 80130f0: 6b3a ldr r2, [r7, #48] @ 0x30
  44416. 80130f2: e841 2300 strex r3, r2, [r1]
  44417. 80130f6: 62bb str r3, [r7, #40] @ 0x28
  44418. return(result);
  44419. 80130f8: 6abb ldr r3, [r7, #40] @ 0x28
  44420. 80130fa: 2b00 cmp r3, #0
  44421. 80130fc: d1e3 bne.n 80130c6 <UART_RxISR_16BIT_FIFOEN+0x2ce>
  44422. /* Update the RxISR function pointer */
  44423. huart->RxISR = UART_RxISR_16BIT;
  44424. 80130fe: 687b ldr r3, [r7, #4]
  44425. 8013100: 4a16 ldr r2, [pc, #88] @ (801315c <UART_RxISR_16BIT_FIFOEN+0x364>)
  44426. 8013102: 675a str r2, [r3, #116] @ 0x74
  44427. /* Enable the UART Data Register Not Empty interrupt */
  44428. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_RXNEIE_RXFNEIE);
  44429. 8013104: 687b ldr r3, [r7, #4]
  44430. 8013106: 681b ldr r3, [r3, #0]
  44431. 8013108: 613b str r3, [r7, #16]
  44432. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44433. 801310a: 693b ldr r3, [r7, #16]
  44434. 801310c: e853 3f00 ldrex r3, [r3]
  44435. 8013110: 60fb str r3, [r7, #12]
  44436. return(result);
  44437. 8013112: 68fb ldr r3, [r7, #12]
  44438. 8013114: f043 0320 orr.w r3, r3, #32
  44439. 8013118: f8c7 3084 str.w r3, [r7, #132] @ 0x84
  44440. 801311c: 687b ldr r3, [r7, #4]
  44441. 801311e: 681b ldr r3, [r3, #0]
  44442. 8013120: 461a mov r2, r3
  44443. 8013122: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84
  44444. 8013126: 61fb str r3, [r7, #28]
  44445. 8013128: 61ba str r2, [r7, #24]
  44446. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44447. 801312a: 69b9 ldr r1, [r7, #24]
  44448. 801312c: 69fa ldr r2, [r7, #28]
  44449. 801312e: e841 2300 strex r3, r2, [r1]
  44450. 8013132: 617b str r3, [r7, #20]
  44451. return(result);
  44452. 8013134: 697b ldr r3, [r7, #20]
  44453. 8013136: 2b00 cmp r3, #0
  44454. 8013138: d1e4 bne.n 8013104 <UART_RxISR_16BIT_FIFOEN+0x30c>
  44455. else
  44456. {
  44457. /* Clear RXNE interrupt flag */
  44458. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44459. }
  44460. }
  44461. 801313a: e007 b.n 801314c <UART_RxISR_16BIT_FIFOEN+0x354>
  44462. __HAL_UART_SEND_REQ(huart, UART_RXDATA_FLUSH_REQUEST);
  44463. 801313c: 687b ldr r3, [r7, #4]
  44464. 801313e: 681b ldr r3, [r3, #0]
  44465. 8013140: 699a ldr r2, [r3, #24]
  44466. 8013142: 687b ldr r3, [r7, #4]
  44467. 8013144: 681b ldr r3, [r3, #0]
  44468. 8013146: f042 0208 orr.w r2, r2, #8
  44469. 801314a: 619a str r2, [r3, #24]
  44470. }
  44471. 801314c: bf00 nop
  44472. 801314e: 37b8 adds r7, #184 @ 0xb8
  44473. 8013150: 46bd mov sp, r7
  44474. 8013152: bd80 pop {r7, pc}
  44475. 8013154: effffffe .word 0xeffffffe
  44476. 8013158: 58000c00 .word 0x58000c00
  44477. 801315c: 080128e1 .word 0x080128e1
  44478. 08013160 <HAL_UARTEx_WakeupCallback>:
  44479. * @brief UART wakeup from Stop mode callback.
  44480. * @param huart UART handle.
  44481. * @retval None
  44482. */
  44483. __weak void HAL_UARTEx_WakeupCallback(UART_HandleTypeDef *huart)
  44484. {
  44485. 8013160: b480 push {r7}
  44486. 8013162: b083 sub sp, #12
  44487. 8013164: af00 add r7, sp, #0
  44488. 8013166: 6078 str r0, [r7, #4]
  44489. UNUSED(huart);
  44490. /* NOTE : This function should not be modified, when the callback is needed,
  44491. the HAL_UARTEx_WakeupCallback can be implemented in the user file.
  44492. */
  44493. }
  44494. 8013168: bf00 nop
  44495. 801316a: 370c adds r7, #12
  44496. 801316c: 46bd mov sp, r7
  44497. 801316e: f85d 7b04 ldr.w r7, [sp], #4
  44498. 8013172: 4770 bx lr
  44499. 08013174 <HAL_UARTEx_RxFifoFullCallback>:
  44500. * @brief UART RX Fifo full callback.
  44501. * @param huart UART handle.
  44502. * @retval None
  44503. */
  44504. __weak void HAL_UARTEx_RxFifoFullCallback(UART_HandleTypeDef *huart)
  44505. {
  44506. 8013174: b480 push {r7}
  44507. 8013176: b083 sub sp, #12
  44508. 8013178: af00 add r7, sp, #0
  44509. 801317a: 6078 str r0, [r7, #4]
  44510. UNUSED(huart);
  44511. /* NOTE : This function should not be modified, when the callback is needed,
  44512. the HAL_UARTEx_RxFifoFullCallback can be implemented in the user file.
  44513. */
  44514. }
  44515. 801317c: bf00 nop
  44516. 801317e: 370c adds r7, #12
  44517. 8013180: 46bd mov sp, r7
  44518. 8013182: f85d 7b04 ldr.w r7, [sp], #4
  44519. 8013186: 4770 bx lr
  44520. 08013188 <HAL_UARTEx_TxFifoEmptyCallback>:
  44521. * @brief UART TX Fifo empty callback.
  44522. * @param huart UART handle.
  44523. * @retval None
  44524. */
  44525. __weak void HAL_UARTEx_TxFifoEmptyCallback(UART_HandleTypeDef *huart)
  44526. {
  44527. 8013188: b480 push {r7}
  44528. 801318a: b083 sub sp, #12
  44529. 801318c: af00 add r7, sp, #0
  44530. 801318e: 6078 str r0, [r7, #4]
  44531. UNUSED(huart);
  44532. /* NOTE : This function should not be modified, when the callback is needed,
  44533. the HAL_UARTEx_TxFifoEmptyCallback can be implemented in the user file.
  44534. */
  44535. }
  44536. 8013190: bf00 nop
  44537. 8013192: 370c adds r7, #12
  44538. 8013194: 46bd mov sp, r7
  44539. 8013196: f85d 7b04 ldr.w r7, [sp], #4
  44540. 801319a: 4770 bx lr
  44541. 0801319c <HAL_UARTEx_DisableFifoMode>:
  44542. * @brief Disable the FIFO mode.
  44543. * @param huart UART handle.
  44544. * @retval HAL status
  44545. */
  44546. HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
  44547. {
  44548. 801319c: b480 push {r7}
  44549. 801319e: b085 sub sp, #20
  44550. 80131a0: af00 add r7, sp, #0
  44551. 80131a2: 6078 str r0, [r7, #4]
  44552. /* Check parameters */
  44553. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  44554. /* Process Locked */
  44555. __HAL_LOCK(huart);
  44556. 80131a4: 687b ldr r3, [r7, #4]
  44557. 80131a6: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  44558. 80131aa: 2b01 cmp r3, #1
  44559. 80131ac: d101 bne.n 80131b2 <HAL_UARTEx_DisableFifoMode+0x16>
  44560. 80131ae: 2302 movs r3, #2
  44561. 80131b0: e027 b.n 8013202 <HAL_UARTEx_DisableFifoMode+0x66>
  44562. 80131b2: 687b ldr r3, [r7, #4]
  44563. 80131b4: 2201 movs r2, #1
  44564. 80131b6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44565. huart->gState = HAL_UART_STATE_BUSY;
  44566. 80131ba: 687b ldr r3, [r7, #4]
  44567. 80131bc: 2224 movs r2, #36 @ 0x24
  44568. 80131be: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44569. /* Save actual UART configuration */
  44570. tmpcr1 = READ_REG(huart->Instance->CR1);
  44571. 80131c2: 687b ldr r3, [r7, #4]
  44572. 80131c4: 681b ldr r3, [r3, #0]
  44573. 80131c6: 681b ldr r3, [r3, #0]
  44574. 80131c8: 60fb str r3, [r7, #12]
  44575. /* Disable UART */
  44576. __HAL_UART_DISABLE(huart);
  44577. 80131ca: 687b ldr r3, [r7, #4]
  44578. 80131cc: 681b ldr r3, [r3, #0]
  44579. 80131ce: 681a ldr r2, [r3, #0]
  44580. 80131d0: 687b ldr r3, [r7, #4]
  44581. 80131d2: 681b ldr r3, [r3, #0]
  44582. 80131d4: f022 0201 bic.w r2, r2, #1
  44583. 80131d8: 601a str r2, [r3, #0]
  44584. /* Enable FIFO mode */
  44585. CLEAR_BIT(tmpcr1, USART_CR1_FIFOEN);
  44586. 80131da: 68fb ldr r3, [r7, #12]
  44587. 80131dc: f023 5300 bic.w r3, r3, #536870912 @ 0x20000000
  44588. 80131e0: 60fb str r3, [r7, #12]
  44589. huart->FifoMode = UART_FIFOMODE_DISABLE;
  44590. 80131e2: 687b ldr r3, [r7, #4]
  44591. 80131e4: 2200 movs r2, #0
  44592. 80131e6: 665a str r2, [r3, #100] @ 0x64
  44593. /* Restore UART configuration */
  44594. WRITE_REG(huart->Instance->CR1, tmpcr1);
  44595. 80131e8: 687b ldr r3, [r7, #4]
  44596. 80131ea: 681b ldr r3, [r3, #0]
  44597. 80131ec: 68fa ldr r2, [r7, #12]
  44598. 80131ee: 601a str r2, [r3, #0]
  44599. huart->gState = HAL_UART_STATE_READY;
  44600. 80131f0: 687b ldr r3, [r7, #4]
  44601. 80131f2: 2220 movs r2, #32
  44602. 80131f4: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44603. /* Process Unlocked */
  44604. __HAL_UNLOCK(huart);
  44605. 80131f8: 687b ldr r3, [r7, #4]
  44606. 80131fa: 2200 movs r2, #0
  44607. 80131fc: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44608. return HAL_OK;
  44609. 8013200: 2300 movs r3, #0
  44610. }
  44611. 8013202: 4618 mov r0, r3
  44612. 8013204: 3714 adds r7, #20
  44613. 8013206: 46bd mov sp, r7
  44614. 8013208: f85d 7b04 ldr.w r7, [sp], #4
  44615. 801320c: 4770 bx lr
  44616. 0801320e <HAL_UARTEx_SetTxFifoThreshold>:
  44617. * @arg @ref UART_TXFIFO_THRESHOLD_7_8
  44618. * @arg @ref UART_TXFIFO_THRESHOLD_8_8
  44619. * @retval HAL status
  44620. */
  44621. HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  44622. {
  44623. 801320e: b580 push {r7, lr}
  44624. 8013210: b084 sub sp, #16
  44625. 8013212: af00 add r7, sp, #0
  44626. 8013214: 6078 str r0, [r7, #4]
  44627. 8013216: 6039 str r1, [r7, #0]
  44628. /* Check parameters */
  44629. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  44630. assert_param(IS_UART_TXFIFO_THRESHOLD(Threshold));
  44631. /* Process Locked */
  44632. __HAL_LOCK(huart);
  44633. 8013218: 687b ldr r3, [r7, #4]
  44634. 801321a: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  44635. 801321e: 2b01 cmp r3, #1
  44636. 8013220: d101 bne.n 8013226 <HAL_UARTEx_SetTxFifoThreshold+0x18>
  44637. 8013222: 2302 movs r3, #2
  44638. 8013224: e02d b.n 8013282 <HAL_UARTEx_SetTxFifoThreshold+0x74>
  44639. 8013226: 687b ldr r3, [r7, #4]
  44640. 8013228: 2201 movs r2, #1
  44641. 801322a: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44642. huart->gState = HAL_UART_STATE_BUSY;
  44643. 801322e: 687b ldr r3, [r7, #4]
  44644. 8013230: 2224 movs r2, #36 @ 0x24
  44645. 8013232: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44646. /* Save actual UART configuration */
  44647. tmpcr1 = READ_REG(huart->Instance->CR1);
  44648. 8013236: 687b ldr r3, [r7, #4]
  44649. 8013238: 681b ldr r3, [r3, #0]
  44650. 801323a: 681b ldr r3, [r3, #0]
  44651. 801323c: 60fb str r3, [r7, #12]
  44652. /* Disable UART */
  44653. __HAL_UART_DISABLE(huart);
  44654. 801323e: 687b ldr r3, [r7, #4]
  44655. 8013240: 681b ldr r3, [r3, #0]
  44656. 8013242: 681a ldr r2, [r3, #0]
  44657. 8013244: 687b ldr r3, [r7, #4]
  44658. 8013246: 681b ldr r3, [r3, #0]
  44659. 8013248: f022 0201 bic.w r2, r2, #1
  44660. 801324c: 601a str r2, [r3, #0]
  44661. /* Update TX threshold configuration */
  44662. MODIFY_REG(huart->Instance->CR3, USART_CR3_TXFTCFG, Threshold);
  44663. 801324e: 687b ldr r3, [r7, #4]
  44664. 8013250: 681b ldr r3, [r3, #0]
  44665. 8013252: 689b ldr r3, [r3, #8]
  44666. 8013254: f023 4160 bic.w r1, r3, #3758096384 @ 0xe0000000
  44667. 8013258: 687b ldr r3, [r7, #4]
  44668. 801325a: 681b ldr r3, [r3, #0]
  44669. 801325c: 683a ldr r2, [r7, #0]
  44670. 801325e: 430a orrs r2, r1
  44671. 8013260: 609a str r2, [r3, #8]
  44672. /* Determine the number of data to process during RX/TX ISR execution */
  44673. UARTEx_SetNbDataToProcess(huart);
  44674. 8013262: 6878 ldr r0, [r7, #4]
  44675. 8013264: f000 f8a0 bl 80133a8 <UARTEx_SetNbDataToProcess>
  44676. /* Restore UART configuration */
  44677. WRITE_REG(huart->Instance->CR1, tmpcr1);
  44678. 8013268: 687b ldr r3, [r7, #4]
  44679. 801326a: 681b ldr r3, [r3, #0]
  44680. 801326c: 68fa ldr r2, [r7, #12]
  44681. 801326e: 601a str r2, [r3, #0]
  44682. huart->gState = HAL_UART_STATE_READY;
  44683. 8013270: 687b ldr r3, [r7, #4]
  44684. 8013272: 2220 movs r2, #32
  44685. 8013274: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44686. /* Process Unlocked */
  44687. __HAL_UNLOCK(huart);
  44688. 8013278: 687b ldr r3, [r7, #4]
  44689. 801327a: 2200 movs r2, #0
  44690. 801327c: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44691. return HAL_OK;
  44692. 8013280: 2300 movs r3, #0
  44693. }
  44694. 8013282: 4618 mov r0, r3
  44695. 8013284: 3710 adds r7, #16
  44696. 8013286: 46bd mov sp, r7
  44697. 8013288: bd80 pop {r7, pc}
  44698. 0801328a <HAL_UARTEx_SetRxFifoThreshold>:
  44699. * @arg @ref UART_RXFIFO_THRESHOLD_7_8
  44700. * @arg @ref UART_RXFIFO_THRESHOLD_8_8
  44701. * @retval HAL status
  44702. */
  44703. HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
  44704. {
  44705. 801328a: b580 push {r7, lr}
  44706. 801328c: b084 sub sp, #16
  44707. 801328e: af00 add r7, sp, #0
  44708. 8013290: 6078 str r0, [r7, #4]
  44709. 8013292: 6039 str r1, [r7, #0]
  44710. /* Check the parameters */
  44711. assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
  44712. assert_param(IS_UART_RXFIFO_THRESHOLD(Threshold));
  44713. /* Process Locked */
  44714. __HAL_LOCK(huart);
  44715. 8013294: 687b ldr r3, [r7, #4]
  44716. 8013296: f893 3084 ldrb.w r3, [r3, #132] @ 0x84
  44717. 801329a: 2b01 cmp r3, #1
  44718. 801329c: d101 bne.n 80132a2 <HAL_UARTEx_SetRxFifoThreshold+0x18>
  44719. 801329e: 2302 movs r3, #2
  44720. 80132a0: e02d b.n 80132fe <HAL_UARTEx_SetRxFifoThreshold+0x74>
  44721. 80132a2: 687b ldr r3, [r7, #4]
  44722. 80132a4: 2201 movs r2, #1
  44723. 80132a6: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44724. huart->gState = HAL_UART_STATE_BUSY;
  44725. 80132aa: 687b ldr r3, [r7, #4]
  44726. 80132ac: 2224 movs r2, #36 @ 0x24
  44727. 80132ae: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44728. /* Save actual UART configuration */
  44729. tmpcr1 = READ_REG(huart->Instance->CR1);
  44730. 80132b2: 687b ldr r3, [r7, #4]
  44731. 80132b4: 681b ldr r3, [r3, #0]
  44732. 80132b6: 681b ldr r3, [r3, #0]
  44733. 80132b8: 60fb str r3, [r7, #12]
  44734. /* Disable UART */
  44735. __HAL_UART_DISABLE(huart);
  44736. 80132ba: 687b ldr r3, [r7, #4]
  44737. 80132bc: 681b ldr r3, [r3, #0]
  44738. 80132be: 681a ldr r2, [r3, #0]
  44739. 80132c0: 687b ldr r3, [r7, #4]
  44740. 80132c2: 681b ldr r3, [r3, #0]
  44741. 80132c4: f022 0201 bic.w r2, r2, #1
  44742. 80132c8: 601a str r2, [r3, #0]
  44743. /* Update RX threshold configuration */
  44744. MODIFY_REG(huart->Instance->CR3, USART_CR3_RXFTCFG, Threshold);
  44745. 80132ca: 687b ldr r3, [r7, #4]
  44746. 80132cc: 681b ldr r3, [r3, #0]
  44747. 80132ce: 689b ldr r3, [r3, #8]
  44748. 80132d0: f023 6160 bic.w r1, r3, #234881024 @ 0xe000000
  44749. 80132d4: 687b ldr r3, [r7, #4]
  44750. 80132d6: 681b ldr r3, [r3, #0]
  44751. 80132d8: 683a ldr r2, [r7, #0]
  44752. 80132da: 430a orrs r2, r1
  44753. 80132dc: 609a str r2, [r3, #8]
  44754. /* Determine the number of data to process during RX/TX ISR execution */
  44755. UARTEx_SetNbDataToProcess(huart);
  44756. 80132de: 6878 ldr r0, [r7, #4]
  44757. 80132e0: f000 f862 bl 80133a8 <UARTEx_SetNbDataToProcess>
  44758. /* Restore UART configuration */
  44759. WRITE_REG(huart->Instance->CR1, tmpcr1);
  44760. 80132e4: 687b ldr r3, [r7, #4]
  44761. 80132e6: 681b ldr r3, [r3, #0]
  44762. 80132e8: 68fa ldr r2, [r7, #12]
  44763. 80132ea: 601a str r2, [r3, #0]
  44764. huart->gState = HAL_UART_STATE_READY;
  44765. 80132ec: 687b ldr r3, [r7, #4]
  44766. 80132ee: 2220 movs r2, #32
  44767. 80132f0: f8c3 2088 str.w r2, [r3, #136] @ 0x88
  44768. /* Process Unlocked */
  44769. __HAL_UNLOCK(huart);
  44770. 80132f4: 687b ldr r3, [r7, #4]
  44771. 80132f6: 2200 movs r2, #0
  44772. 80132f8: f883 2084 strb.w r2, [r3, #132] @ 0x84
  44773. return HAL_OK;
  44774. 80132fc: 2300 movs r3, #0
  44775. }
  44776. 80132fe: 4618 mov r0, r3
  44777. 8013300: 3710 adds r7, #16
  44778. 8013302: 46bd mov sp, r7
  44779. 8013304: bd80 pop {r7, pc}
  44780. 08013306 <HAL_UARTEx_ReceiveToIdle_IT>:
  44781. * @param pData Pointer to data buffer (uint8_t or uint16_t data elements).
  44782. * @param Size Amount of data elements (uint8_t or uint16_t) to be received.
  44783. * @retval HAL status
  44784. */
  44785. HAL_StatusTypeDef HAL_UARTEx_ReceiveToIdle_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)
  44786. {
  44787. 8013306: b580 push {r7, lr}
  44788. 8013308: b08c sub sp, #48 @ 0x30
  44789. 801330a: af00 add r7, sp, #0
  44790. 801330c: 60f8 str r0, [r7, #12]
  44791. 801330e: 60b9 str r1, [r7, #8]
  44792. 8013310: 4613 mov r3, r2
  44793. 8013312: 80fb strh r3, [r7, #6]
  44794. HAL_StatusTypeDef status = HAL_OK;
  44795. 8013314: 2300 movs r3, #0
  44796. 8013316: f887 302f strb.w r3, [r7, #47] @ 0x2f
  44797. /* Check that a Rx process is not already ongoing */
  44798. if (huart->RxState == HAL_UART_STATE_READY)
  44799. 801331a: 68fb ldr r3, [r7, #12]
  44800. 801331c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
  44801. 8013320: 2b20 cmp r3, #32
  44802. 8013322: d13b bne.n 801339c <HAL_UARTEx_ReceiveToIdle_IT+0x96>
  44803. {
  44804. if ((pData == NULL) || (Size == 0U))
  44805. 8013324: 68bb ldr r3, [r7, #8]
  44806. 8013326: 2b00 cmp r3, #0
  44807. 8013328: d002 beq.n 8013330 <HAL_UARTEx_ReceiveToIdle_IT+0x2a>
  44808. 801332a: 88fb ldrh r3, [r7, #6]
  44809. 801332c: 2b00 cmp r3, #0
  44810. 801332e: d101 bne.n 8013334 <HAL_UARTEx_ReceiveToIdle_IT+0x2e>
  44811. {
  44812. return HAL_ERROR;
  44813. 8013330: 2301 movs r3, #1
  44814. 8013332: e034 b.n 801339e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  44815. }
  44816. /* Set Reception type to reception till IDLE Event*/
  44817. huart->ReceptionType = HAL_UART_RECEPTION_TOIDLE;
  44818. 8013334: 68fb ldr r3, [r7, #12]
  44819. 8013336: 2201 movs r2, #1
  44820. 8013338: 66da str r2, [r3, #108] @ 0x6c
  44821. huart->RxEventType = HAL_UART_RXEVENT_TC;
  44822. 801333a: 68fb ldr r3, [r7, #12]
  44823. 801333c: 2200 movs r2, #0
  44824. 801333e: 671a str r2, [r3, #112] @ 0x70
  44825. (void)UART_Start_Receive_IT(huart, pData, Size);
  44826. 8013340: 88fb ldrh r3, [r7, #6]
  44827. 8013342: 461a mov r2, r3
  44828. 8013344: 68b9 ldr r1, [r7, #8]
  44829. 8013346: 68f8 ldr r0, [r7, #12]
  44830. 8013348: f7fe fe82 bl 8012050 <UART_Start_Receive_IT>
  44831. if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
  44832. 801334c: 68fb ldr r3, [r7, #12]
  44833. 801334e: 6edb ldr r3, [r3, #108] @ 0x6c
  44834. 8013350: 2b01 cmp r3, #1
  44835. 8013352: d11d bne.n 8013390 <HAL_UARTEx_ReceiveToIdle_IT+0x8a>
  44836. {
  44837. __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_IDLEF);
  44838. 8013354: 68fb ldr r3, [r7, #12]
  44839. 8013356: 681b ldr r3, [r3, #0]
  44840. 8013358: 2210 movs r2, #16
  44841. 801335a: 621a str r2, [r3, #32]
  44842. ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
  44843. 801335c: 68fb ldr r3, [r7, #12]
  44844. 801335e: 681b ldr r3, [r3, #0]
  44845. 8013360: 61bb str r3, [r7, #24]
  44846. __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
  44847. 8013362: 69bb ldr r3, [r7, #24]
  44848. 8013364: e853 3f00 ldrex r3, [r3]
  44849. 8013368: 617b str r3, [r7, #20]
  44850. return(result);
  44851. 801336a: 697b ldr r3, [r7, #20]
  44852. 801336c: f043 0310 orr.w r3, r3, #16
  44853. 8013370: 62bb str r3, [r7, #40] @ 0x28
  44854. 8013372: 68fb ldr r3, [r7, #12]
  44855. 8013374: 681b ldr r3, [r3, #0]
  44856. 8013376: 461a mov r2, r3
  44857. 8013378: 6abb ldr r3, [r7, #40] @ 0x28
  44858. 801337a: 627b str r3, [r7, #36] @ 0x24
  44859. 801337c: 623a str r2, [r7, #32]
  44860. __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
  44861. 801337e: 6a39 ldr r1, [r7, #32]
  44862. 8013380: 6a7a ldr r2, [r7, #36] @ 0x24
  44863. 8013382: e841 2300 strex r3, r2, [r1]
  44864. 8013386: 61fb str r3, [r7, #28]
  44865. return(result);
  44866. 8013388: 69fb ldr r3, [r7, #28]
  44867. 801338a: 2b00 cmp r3, #0
  44868. 801338c: d1e6 bne.n 801335c <HAL_UARTEx_ReceiveToIdle_IT+0x56>
  44869. 801338e: e002 b.n 8013396 <HAL_UARTEx_ReceiveToIdle_IT+0x90>
  44870. {
  44871. /* In case of errors already pending when reception is started,
  44872. Interrupts may have already been raised and lead to reception abortion.
  44873. (Overrun error for instance).
  44874. In such case Reception Type has been reset to HAL_UART_RECEPTION_STANDARD. */
  44875. status = HAL_ERROR;
  44876. 8013390: 2301 movs r3, #1
  44877. 8013392: f887 302f strb.w r3, [r7, #47] @ 0x2f
  44878. }
  44879. return status;
  44880. 8013396: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
  44881. 801339a: e000 b.n 801339e <HAL_UARTEx_ReceiveToIdle_IT+0x98>
  44882. }
  44883. else
  44884. {
  44885. return HAL_BUSY;
  44886. 801339c: 2302 movs r3, #2
  44887. }
  44888. }
  44889. 801339e: 4618 mov r0, r3
  44890. 80133a0: 3730 adds r7, #48 @ 0x30
  44891. 80133a2: 46bd mov sp, r7
  44892. 80133a4: bd80 pop {r7, pc}
  44893. ...
  44894. 080133a8 <UARTEx_SetNbDataToProcess>:
  44895. * the UART configuration registers.
  44896. * @param huart UART handle.
  44897. * @retval None
  44898. */
  44899. static void UARTEx_SetNbDataToProcess(UART_HandleTypeDef *huart)
  44900. {
  44901. 80133a8: b480 push {r7}
  44902. 80133aa: b085 sub sp, #20
  44903. 80133ac: af00 add r7, sp, #0
  44904. 80133ae: 6078 str r0, [r7, #4]
  44905. uint8_t rx_fifo_threshold;
  44906. uint8_t tx_fifo_threshold;
  44907. static const uint8_t numerator[] = {1U, 1U, 1U, 3U, 7U, 1U, 0U, 0U};
  44908. static const uint8_t denominator[] = {8U, 4U, 2U, 4U, 8U, 1U, 1U, 1U};
  44909. if (huart->FifoMode == UART_FIFOMODE_DISABLE)
  44910. 80133b0: 687b ldr r3, [r7, #4]
  44911. 80133b2: 6e5b ldr r3, [r3, #100] @ 0x64
  44912. 80133b4: 2b00 cmp r3, #0
  44913. 80133b6: d108 bne.n 80133ca <UARTEx_SetNbDataToProcess+0x22>
  44914. {
  44915. huart->NbTxDataToProcess = 1U;
  44916. 80133b8: 687b ldr r3, [r7, #4]
  44917. 80133ba: 2201 movs r2, #1
  44918. 80133bc: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  44919. huart->NbRxDataToProcess = 1U;
  44920. 80133c0: 687b ldr r3, [r7, #4]
  44921. 80133c2: 2201 movs r2, #1
  44922. 80133c4: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  44923. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  44924. (uint16_t)denominator[tx_fifo_threshold];
  44925. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  44926. (uint16_t)denominator[rx_fifo_threshold];
  44927. }
  44928. }
  44929. 80133c8: e031 b.n 801342e <UARTEx_SetNbDataToProcess+0x86>
  44930. rx_fifo_depth = RX_FIFO_DEPTH;
  44931. 80133ca: 2310 movs r3, #16
  44932. 80133cc: 73fb strb r3, [r7, #15]
  44933. tx_fifo_depth = TX_FIFO_DEPTH;
  44934. 80133ce: 2310 movs r3, #16
  44935. 80133d0: 73bb strb r3, [r7, #14]
  44936. rx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_RXFTCFG) >> USART_CR3_RXFTCFG_Pos);
  44937. 80133d2: 687b ldr r3, [r7, #4]
  44938. 80133d4: 681b ldr r3, [r3, #0]
  44939. 80133d6: 689b ldr r3, [r3, #8]
  44940. 80133d8: 0e5b lsrs r3, r3, #25
  44941. 80133da: b2db uxtb r3, r3
  44942. 80133dc: f003 0307 and.w r3, r3, #7
  44943. 80133e0: 737b strb r3, [r7, #13]
  44944. tx_fifo_threshold = (uint8_t)(READ_BIT(huart->Instance->CR3, USART_CR3_TXFTCFG) >> USART_CR3_TXFTCFG_Pos);
  44945. 80133e2: 687b ldr r3, [r7, #4]
  44946. 80133e4: 681b ldr r3, [r3, #0]
  44947. 80133e6: 689b ldr r3, [r3, #8]
  44948. 80133e8: 0f5b lsrs r3, r3, #29
  44949. 80133ea: b2db uxtb r3, r3
  44950. 80133ec: f003 0307 and.w r3, r3, #7
  44951. 80133f0: 733b strb r3, [r7, #12]
  44952. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  44953. 80133f2: 7bbb ldrb r3, [r7, #14]
  44954. 80133f4: 7b3a ldrb r2, [r7, #12]
  44955. 80133f6: 4911 ldr r1, [pc, #68] @ (801343c <UARTEx_SetNbDataToProcess+0x94>)
  44956. 80133f8: 5c8a ldrb r2, [r1, r2]
  44957. 80133fa: fb02 f303 mul.w r3, r2, r3
  44958. (uint16_t)denominator[tx_fifo_threshold];
  44959. 80133fe: 7b3a ldrb r2, [r7, #12]
  44960. 8013400: 490f ldr r1, [pc, #60] @ (8013440 <UARTEx_SetNbDataToProcess+0x98>)
  44961. 8013402: 5c8a ldrb r2, [r1, r2]
  44962. huart->NbTxDataToProcess = ((uint16_t)tx_fifo_depth * numerator[tx_fifo_threshold]) /
  44963. 8013404: fb93 f3f2 sdiv r3, r3, r2
  44964. 8013408: b29a uxth r2, r3
  44965. 801340a: 687b ldr r3, [r7, #4]
  44966. 801340c: f8a3 206a strh.w r2, [r3, #106] @ 0x6a
  44967. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  44968. 8013410: 7bfb ldrb r3, [r7, #15]
  44969. 8013412: 7b7a ldrb r2, [r7, #13]
  44970. 8013414: 4909 ldr r1, [pc, #36] @ (801343c <UARTEx_SetNbDataToProcess+0x94>)
  44971. 8013416: 5c8a ldrb r2, [r1, r2]
  44972. 8013418: fb02 f303 mul.w r3, r2, r3
  44973. (uint16_t)denominator[rx_fifo_threshold];
  44974. 801341c: 7b7a ldrb r2, [r7, #13]
  44975. 801341e: 4908 ldr r1, [pc, #32] @ (8013440 <UARTEx_SetNbDataToProcess+0x98>)
  44976. 8013420: 5c8a ldrb r2, [r1, r2]
  44977. huart->NbRxDataToProcess = ((uint16_t)rx_fifo_depth * numerator[rx_fifo_threshold]) /
  44978. 8013422: fb93 f3f2 sdiv r3, r3, r2
  44979. 8013426: b29a uxth r2, r3
  44980. 8013428: 687b ldr r3, [r7, #4]
  44981. 801342a: f8a3 2068 strh.w r2, [r3, #104] @ 0x68
  44982. }
  44983. 801342e: bf00 nop
  44984. 8013430: 3714 adds r7, #20
  44985. 8013432: 46bd mov sp, r7
  44986. 8013434: f85d 7b04 ldr.w r7, [sp], #4
  44987. 8013438: 4770 bx lr
  44988. 801343a: bf00 nop
  44989. 801343c: 0801a2b8 .word 0x0801a2b8
  44990. 8013440: 0801a2c0 .word 0x0801a2c0
  44991. 08013444 <__NVIC_SetPriority>:
  44992. {
  44993. 8013444: b480 push {r7}
  44994. 8013446: b083 sub sp, #12
  44995. 8013448: af00 add r7, sp, #0
  44996. 801344a: 4603 mov r3, r0
  44997. 801344c: 6039 str r1, [r7, #0]
  44998. 801344e: 80fb strh r3, [r7, #6]
  44999. if ((int32_t)(IRQn) >= 0)
  45000. 8013450: f9b7 3006 ldrsh.w r3, [r7, #6]
  45001. 8013454: 2b00 cmp r3, #0
  45002. 8013456: db0a blt.n 801346e <__NVIC_SetPriority+0x2a>
  45003. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45004. 8013458: 683b ldr r3, [r7, #0]
  45005. 801345a: b2da uxtb r2, r3
  45006. 801345c: 490c ldr r1, [pc, #48] @ (8013490 <__NVIC_SetPriority+0x4c>)
  45007. 801345e: f9b7 3006 ldrsh.w r3, [r7, #6]
  45008. 8013462: 0112 lsls r2, r2, #4
  45009. 8013464: b2d2 uxtb r2, r2
  45010. 8013466: 440b add r3, r1
  45011. 8013468: f883 2300 strb.w r2, [r3, #768] @ 0x300
  45012. }
  45013. 801346c: e00a b.n 8013484 <__NVIC_SetPriority+0x40>
  45014. SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  45015. 801346e: 683b ldr r3, [r7, #0]
  45016. 8013470: b2da uxtb r2, r3
  45017. 8013472: 4908 ldr r1, [pc, #32] @ (8013494 <__NVIC_SetPriority+0x50>)
  45018. 8013474: 88fb ldrh r3, [r7, #6]
  45019. 8013476: f003 030f and.w r3, r3, #15
  45020. 801347a: 3b04 subs r3, #4
  45021. 801347c: 0112 lsls r2, r2, #4
  45022. 801347e: b2d2 uxtb r2, r2
  45023. 8013480: 440b add r3, r1
  45024. 8013482: 761a strb r2, [r3, #24]
  45025. }
  45026. 8013484: bf00 nop
  45027. 8013486: 370c adds r7, #12
  45028. 8013488: 46bd mov sp, r7
  45029. 801348a: f85d 7b04 ldr.w r7, [sp], #4
  45030. 801348e: 4770 bx lr
  45031. 8013490: e000e100 .word 0xe000e100
  45032. 8013494: e000ed00 .word 0xe000ed00
  45033. 08013498 <SysTick_Handler>:
  45034. /*
  45035. SysTick handler implementation that also clears overflow flag.
  45036. */
  45037. #if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
  45038. void SysTick_Handler (void) {
  45039. 8013498: b580 push {r7, lr}
  45040. 801349a: af00 add r7, sp, #0
  45041. /* Clear overflow flag */
  45042. SysTick->CTRL;
  45043. 801349c: 4b05 ldr r3, [pc, #20] @ (80134b4 <SysTick_Handler+0x1c>)
  45044. 801349e: 681b ldr r3, [r3, #0]
  45045. if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
  45046. 80134a0: f002 fd1e bl 8015ee0 <xTaskGetSchedulerState>
  45047. 80134a4: 4603 mov r3, r0
  45048. 80134a6: 2b01 cmp r3, #1
  45049. 80134a8: d001 beq.n 80134ae <SysTick_Handler+0x16>
  45050. /* Call tick handler */
  45051. xPortSysTickHandler();
  45052. 80134aa: f003 ff2d bl 8017308 <xPortSysTickHandler>
  45053. }
  45054. }
  45055. 80134ae: bf00 nop
  45056. 80134b0: bd80 pop {r7, pc}
  45057. 80134b2: bf00 nop
  45058. 80134b4: e000e010 .word 0xe000e010
  45059. 080134b8 <SVC_Setup>:
  45060. #endif /* SysTick */
  45061. /*
  45062. Setup SVC to reset value.
  45063. */
  45064. __STATIC_INLINE void SVC_Setup (void) {
  45065. 80134b8: b580 push {r7, lr}
  45066. 80134ba: af00 add r7, sp, #0
  45067. #if (__ARM_ARCH_7A__ == 0U)
  45068. /* Service Call interrupt might be configured before kernel start */
  45069. /* and when its priority is lower or equal to BASEPRI, svc intruction */
  45070. /* causes a Hard Fault. */
  45071. NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
  45072. 80134bc: 2100 movs r1, #0
  45073. 80134be: f06f 0004 mvn.w r0, #4
  45074. 80134c2: f7ff ffbf bl 8013444 <__NVIC_SetPriority>
  45075. #endif
  45076. }
  45077. 80134c6: bf00 nop
  45078. 80134c8: bd80 pop {r7, pc}
  45079. ...
  45080. 080134cc <osKernelInitialize>:
  45081. static uint32_t OS_Tick_GetOverflow (void);
  45082. /* Get OS Tick interval */
  45083. static uint32_t OS_Tick_GetInterval (void);
  45084. /*---------------------------------------------------------------------------*/
  45085. osStatus_t osKernelInitialize (void) {
  45086. 80134cc: b480 push {r7}
  45087. 80134ce: b083 sub sp, #12
  45088. 80134d0: af00 add r7, sp, #0
  45089. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45090. 80134d2: f3ef 8305 mrs r3, IPSR
  45091. 80134d6: 603b str r3, [r7, #0]
  45092. return(result);
  45093. 80134d8: 683b ldr r3, [r7, #0]
  45094. osStatus_t stat;
  45095. if (IS_IRQ()) {
  45096. 80134da: 2b00 cmp r3, #0
  45097. 80134dc: d003 beq.n 80134e6 <osKernelInitialize+0x1a>
  45098. stat = osErrorISR;
  45099. 80134de: f06f 0305 mvn.w r3, #5
  45100. 80134e2: 607b str r3, [r7, #4]
  45101. 80134e4: e00c b.n 8013500 <osKernelInitialize+0x34>
  45102. }
  45103. else {
  45104. if (KernelState == osKernelInactive) {
  45105. 80134e6: 4b0a ldr r3, [pc, #40] @ (8013510 <osKernelInitialize+0x44>)
  45106. 80134e8: 681b ldr r3, [r3, #0]
  45107. 80134ea: 2b00 cmp r3, #0
  45108. 80134ec: d105 bne.n 80134fa <osKernelInitialize+0x2e>
  45109. EvrFreeRTOSSetup(0U);
  45110. #endif
  45111. #if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
  45112. vPortDefineHeapRegions (configHEAP_5_REGIONS);
  45113. #endif
  45114. KernelState = osKernelReady;
  45115. 80134ee: 4b08 ldr r3, [pc, #32] @ (8013510 <osKernelInitialize+0x44>)
  45116. 80134f0: 2201 movs r2, #1
  45117. 80134f2: 601a str r2, [r3, #0]
  45118. stat = osOK;
  45119. 80134f4: 2300 movs r3, #0
  45120. 80134f6: 607b str r3, [r7, #4]
  45121. 80134f8: e002 b.n 8013500 <osKernelInitialize+0x34>
  45122. } else {
  45123. stat = osError;
  45124. 80134fa: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45125. 80134fe: 607b str r3, [r7, #4]
  45126. }
  45127. }
  45128. return (stat);
  45129. 8013500: 687b ldr r3, [r7, #4]
  45130. }
  45131. 8013502: 4618 mov r0, r3
  45132. 8013504: 370c adds r7, #12
  45133. 8013506: 46bd mov sp, r7
  45134. 8013508: f85d 7b04 ldr.w r7, [sp], #4
  45135. 801350c: 4770 bx lr
  45136. 801350e: bf00 nop
  45137. 8013510: 240011c0 .word 0x240011c0
  45138. 08013514 <osKernelStart>:
  45139. }
  45140. return (state);
  45141. }
  45142. osStatus_t osKernelStart (void) {
  45143. 8013514: b580 push {r7, lr}
  45144. 8013516: b082 sub sp, #8
  45145. 8013518: af00 add r7, sp, #0
  45146. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45147. 801351a: f3ef 8305 mrs r3, IPSR
  45148. 801351e: 603b str r3, [r7, #0]
  45149. return(result);
  45150. 8013520: 683b ldr r3, [r7, #0]
  45151. osStatus_t stat;
  45152. if (IS_IRQ()) {
  45153. 8013522: 2b00 cmp r3, #0
  45154. 8013524: d003 beq.n 801352e <osKernelStart+0x1a>
  45155. stat = osErrorISR;
  45156. 8013526: f06f 0305 mvn.w r3, #5
  45157. 801352a: 607b str r3, [r7, #4]
  45158. 801352c: e010 b.n 8013550 <osKernelStart+0x3c>
  45159. }
  45160. else {
  45161. if (KernelState == osKernelReady) {
  45162. 801352e: 4b0b ldr r3, [pc, #44] @ (801355c <osKernelStart+0x48>)
  45163. 8013530: 681b ldr r3, [r3, #0]
  45164. 8013532: 2b01 cmp r3, #1
  45165. 8013534: d109 bne.n 801354a <osKernelStart+0x36>
  45166. /* Ensure SVC priority is at the reset value */
  45167. SVC_Setup();
  45168. 8013536: f7ff ffbf bl 80134b8 <SVC_Setup>
  45169. /* Change state to enable IRQ masking check */
  45170. KernelState = osKernelRunning;
  45171. 801353a: 4b08 ldr r3, [pc, #32] @ (801355c <osKernelStart+0x48>)
  45172. 801353c: 2202 movs r2, #2
  45173. 801353e: 601a str r2, [r3, #0]
  45174. /* Start the kernel scheduler */
  45175. vTaskStartScheduler();
  45176. 8013540: f002 f824 bl 801558c <vTaskStartScheduler>
  45177. stat = osOK;
  45178. 8013544: 2300 movs r3, #0
  45179. 8013546: 607b str r3, [r7, #4]
  45180. 8013548: e002 b.n 8013550 <osKernelStart+0x3c>
  45181. } else {
  45182. stat = osError;
  45183. 801354a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45184. 801354e: 607b str r3, [r7, #4]
  45185. }
  45186. }
  45187. return (stat);
  45188. 8013550: 687b ldr r3, [r7, #4]
  45189. }
  45190. 8013552: 4618 mov r0, r3
  45191. 8013554: 3708 adds r7, #8
  45192. 8013556: 46bd mov sp, r7
  45193. 8013558: bd80 pop {r7, pc}
  45194. 801355a: bf00 nop
  45195. 801355c: 240011c0 .word 0x240011c0
  45196. 08013560 <osThreadNew>:
  45197. return (configCPU_CLOCK_HZ);
  45198. }
  45199. /*---------------------------------------------------------------------------*/
  45200. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
  45201. 8013560: b580 push {r7, lr}
  45202. 8013562: b08e sub sp, #56 @ 0x38
  45203. 8013564: af04 add r7, sp, #16
  45204. 8013566: 60f8 str r0, [r7, #12]
  45205. 8013568: 60b9 str r1, [r7, #8]
  45206. 801356a: 607a str r2, [r7, #4]
  45207. uint32_t stack;
  45208. TaskHandle_t hTask;
  45209. UBaseType_t prio;
  45210. int32_t mem;
  45211. hTask = NULL;
  45212. 801356c: 2300 movs r3, #0
  45213. 801356e: 613b str r3, [r7, #16]
  45214. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45215. 8013570: f3ef 8305 mrs r3, IPSR
  45216. 8013574: 617b str r3, [r7, #20]
  45217. return(result);
  45218. 8013576: 697b ldr r3, [r7, #20]
  45219. if (!IS_IRQ() && (func != NULL)) {
  45220. 8013578: 2b00 cmp r3, #0
  45221. 801357a: d17f bne.n 801367c <osThreadNew+0x11c>
  45222. 801357c: 68fb ldr r3, [r7, #12]
  45223. 801357e: 2b00 cmp r3, #0
  45224. 8013580: d07c beq.n 801367c <osThreadNew+0x11c>
  45225. stack = configMINIMAL_STACK_SIZE;
  45226. 8013582: f44f 7300 mov.w r3, #512 @ 0x200
  45227. 8013586: 623b str r3, [r7, #32]
  45228. prio = (UBaseType_t)osPriorityNormal;
  45229. 8013588: 2318 movs r3, #24
  45230. 801358a: 61fb str r3, [r7, #28]
  45231. name = NULL;
  45232. 801358c: 2300 movs r3, #0
  45233. 801358e: 627b str r3, [r7, #36] @ 0x24
  45234. mem = -1;
  45235. 8013590: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45236. 8013594: 61bb str r3, [r7, #24]
  45237. if (attr != NULL) {
  45238. 8013596: 687b ldr r3, [r7, #4]
  45239. 8013598: 2b00 cmp r3, #0
  45240. 801359a: d045 beq.n 8013628 <osThreadNew+0xc8>
  45241. if (attr->name != NULL) {
  45242. 801359c: 687b ldr r3, [r7, #4]
  45243. 801359e: 681b ldr r3, [r3, #0]
  45244. 80135a0: 2b00 cmp r3, #0
  45245. 80135a2: d002 beq.n 80135aa <osThreadNew+0x4a>
  45246. name = attr->name;
  45247. 80135a4: 687b ldr r3, [r7, #4]
  45248. 80135a6: 681b ldr r3, [r3, #0]
  45249. 80135a8: 627b str r3, [r7, #36] @ 0x24
  45250. }
  45251. if (attr->priority != osPriorityNone) {
  45252. 80135aa: 687b ldr r3, [r7, #4]
  45253. 80135ac: 699b ldr r3, [r3, #24]
  45254. 80135ae: 2b00 cmp r3, #0
  45255. 80135b0: d002 beq.n 80135b8 <osThreadNew+0x58>
  45256. prio = (UBaseType_t)attr->priority;
  45257. 80135b2: 687b ldr r3, [r7, #4]
  45258. 80135b4: 699b ldr r3, [r3, #24]
  45259. 80135b6: 61fb str r3, [r7, #28]
  45260. }
  45261. if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
  45262. 80135b8: 69fb ldr r3, [r7, #28]
  45263. 80135ba: 2b00 cmp r3, #0
  45264. 80135bc: d008 beq.n 80135d0 <osThreadNew+0x70>
  45265. 80135be: 69fb ldr r3, [r7, #28]
  45266. 80135c0: 2b38 cmp r3, #56 @ 0x38
  45267. 80135c2: d805 bhi.n 80135d0 <osThreadNew+0x70>
  45268. 80135c4: 687b ldr r3, [r7, #4]
  45269. 80135c6: 685b ldr r3, [r3, #4]
  45270. 80135c8: f003 0301 and.w r3, r3, #1
  45271. 80135cc: 2b00 cmp r3, #0
  45272. 80135ce: d001 beq.n 80135d4 <osThreadNew+0x74>
  45273. return (NULL);
  45274. 80135d0: 2300 movs r3, #0
  45275. 80135d2: e054 b.n 801367e <osThreadNew+0x11e>
  45276. }
  45277. if (attr->stack_size > 0U) {
  45278. 80135d4: 687b ldr r3, [r7, #4]
  45279. 80135d6: 695b ldr r3, [r3, #20]
  45280. 80135d8: 2b00 cmp r3, #0
  45281. 80135da: d003 beq.n 80135e4 <osThreadNew+0x84>
  45282. /* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
  45283. /* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
  45284. stack = attr->stack_size / sizeof(StackType_t);
  45285. 80135dc: 687b ldr r3, [r7, #4]
  45286. 80135de: 695b ldr r3, [r3, #20]
  45287. 80135e0: 089b lsrs r3, r3, #2
  45288. 80135e2: 623b str r3, [r7, #32]
  45289. }
  45290. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45291. 80135e4: 687b ldr r3, [r7, #4]
  45292. 80135e6: 689b ldr r3, [r3, #8]
  45293. 80135e8: 2b00 cmp r3, #0
  45294. 80135ea: d00e beq.n 801360a <osThreadNew+0xaa>
  45295. 80135ec: 687b ldr r3, [r7, #4]
  45296. 80135ee: 68db ldr r3, [r3, #12]
  45297. 80135f0: 2ba7 cmp r3, #167 @ 0xa7
  45298. 80135f2: d90a bls.n 801360a <osThreadNew+0xaa>
  45299. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45300. 80135f4: 687b ldr r3, [r7, #4]
  45301. 80135f6: 691b ldr r3, [r3, #16]
  45302. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
  45303. 80135f8: 2b00 cmp r3, #0
  45304. 80135fa: d006 beq.n 801360a <osThreadNew+0xaa>
  45305. (attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
  45306. 80135fc: 687b ldr r3, [r7, #4]
  45307. 80135fe: 695b ldr r3, [r3, #20]
  45308. 8013600: 2b00 cmp r3, #0
  45309. 8013602: d002 beq.n 801360a <osThreadNew+0xaa>
  45310. mem = 1;
  45311. 8013604: 2301 movs r3, #1
  45312. 8013606: 61bb str r3, [r7, #24]
  45313. 8013608: e010 b.n 801362c <osThreadNew+0xcc>
  45314. }
  45315. else {
  45316. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
  45317. 801360a: 687b ldr r3, [r7, #4]
  45318. 801360c: 689b ldr r3, [r3, #8]
  45319. 801360e: 2b00 cmp r3, #0
  45320. 8013610: d10c bne.n 801362c <osThreadNew+0xcc>
  45321. 8013612: 687b ldr r3, [r7, #4]
  45322. 8013614: 68db ldr r3, [r3, #12]
  45323. 8013616: 2b00 cmp r3, #0
  45324. 8013618: d108 bne.n 801362c <osThreadNew+0xcc>
  45325. 801361a: 687b ldr r3, [r7, #4]
  45326. 801361c: 691b ldr r3, [r3, #16]
  45327. 801361e: 2b00 cmp r3, #0
  45328. 8013620: d104 bne.n 801362c <osThreadNew+0xcc>
  45329. mem = 0;
  45330. 8013622: 2300 movs r3, #0
  45331. 8013624: 61bb str r3, [r7, #24]
  45332. 8013626: e001 b.n 801362c <osThreadNew+0xcc>
  45333. }
  45334. }
  45335. }
  45336. else {
  45337. mem = 0;
  45338. 8013628: 2300 movs r3, #0
  45339. 801362a: 61bb str r3, [r7, #24]
  45340. }
  45341. if (mem == 1) {
  45342. 801362c: 69bb ldr r3, [r7, #24]
  45343. 801362e: 2b01 cmp r3, #1
  45344. 8013630: d110 bne.n 8013654 <osThreadNew+0xf4>
  45345. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  45346. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  45347. 8013632: 687b ldr r3, [r7, #4]
  45348. 8013634: 691b ldr r3, [r3, #16]
  45349. (StaticTask_t *)attr->cb_mem);
  45350. 8013636: 687a ldr r2, [r7, #4]
  45351. 8013638: 6892 ldr r2, [r2, #8]
  45352. hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
  45353. 801363a: 9202 str r2, [sp, #8]
  45354. 801363c: 9301 str r3, [sp, #4]
  45355. 801363e: 69fb ldr r3, [r7, #28]
  45356. 8013640: 9300 str r3, [sp, #0]
  45357. 8013642: 68bb ldr r3, [r7, #8]
  45358. 8013644: 6a3a ldr r2, [r7, #32]
  45359. 8013646: 6a79 ldr r1, [r7, #36] @ 0x24
  45360. 8013648: 68f8 ldr r0, [r7, #12]
  45361. 801364a: f001 fdac bl 80151a6 <xTaskCreateStatic>
  45362. 801364e: 4603 mov r3, r0
  45363. 8013650: 613b str r3, [r7, #16]
  45364. 8013652: e013 b.n 801367c <osThreadNew+0x11c>
  45365. #endif
  45366. }
  45367. else {
  45368. if (mem == 0) {
  45369. 8013654: 69bb ldr r3, [r7, #24]
  45370. 8013656: 2b00 cmp r3, #0
  45371. 8013658: d110 bne.n 801367c <osThreadNew+0x11c>
  45372. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  45373. if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
  45374. 801365a: 6a3b ldr r3, [r7, #32]
  45375. 801365c: b29a uxth r2, r3
  45376. 801365e: f107 0310 add.w r3, r7, #16
  45377. 8013662: 9301 str r3, [sp, #4]
  45378. 8013664: 69fb ldr r3, [r7, #28]
  45379. 8013666: 9300 str r3, [sp, #0]
  45380. 8013668: 68bb ldr r3, [r7, #8]
  45381. 801366a: 6a79 ldr r1, [r7, #36] @ 0x24
  45382. 801366c: 68f8 ldr r0, [r7, #12]
  45383. 801366e: f001 fdfa bl 8015266 <xTaskCreate>
  45384. 8013672: 4603 mov r3, r0
  45385. 8013674: 2b01 cmp r3, #1
  45386. 8013676: d001 beq.n 801367c <osThreadNew+0x11c>
  45387. hTask = NULL;
  45388. 8013678: 2300 movs r3, #0
  45389. 801367a: 613b str r3, [r7, #16]
  45390. #endif
  45391. }
  45392. }
  45393. }
  45394. return ((osThreadId_t)hTask);
  45395. 801367c: 693b ldr r3, [r7, #16]
  45396. }
  45397. 801367e: 4618 mov r0, r3
  45398. 8013680: 3728 adds r7, #40 @ 0x28
  45399. 8013682: 46bd mov sp, r7
  45400. 8013684: bd80 pop {r7, pc}
  45401. 08013686 <osDelay>:
  45402. /* Return flags before clearing */
  45403. return (rflags);
  45404. }
  45405. #endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
  45406. osStatus_t osDelay (uint32_t ticks) {
  45407. 8013686: b580 push {r7, lr}
  45408. 8013688: b084 sub sp, #16
  45409. 801368a: af00 add r7, sp, #0
  45410. 801368c: 6078 str r0, [r7, #4]
  45411. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45412. 801368e: f3ef 8305 mrs r3, IPSR
  45413. 8013692: 60bb str r3, [r7, #8]
  45414. return(result);
  45415. 8013694: 68bb ldr r3, [r7, #8]
  45416. osStatus_t stat;
  45417. if (IS_IRQ()) {
  45418. 8013696: 2b00 cmp r3, #0
  45419. 8013698: d003 beq.n 80136a2 <osDelay+0x1c>
  45420. stat = osErrorISR;
  45421. 801369a: f06f 0305 mvn.w r3, #5
  45422. 801369e: 60fb str r3, [r7, #12]
  45423. 80136a0: e007 b.n 80136b2 <osDelay+0x2c>
  45424. }
  45425. else {
  45426. stat = osOK;
  45427. 80136a2: 2300 movs r3, #0
  45428. 80136a4: 60fb str r3, [r7, #12]
  45429. if (ticks != 0U) {
  45430. 80136a6: 687b ldr r3, [r7, #4]
  45431. 80136a8: 2b00 cmp r3, #0
  45432. 80136aa: d002 beq.n 80136b2 <osDelay+0x2c>
  45433. vTaskDelay(ticks);
  45434. 80136ac: 6878 ldr r0, [r7, #4]
  45435. 80136ae: f001 ff37 bl 8015520 <vTaskDelay>
  45436. }
  45437. }
  45438. return (stat);
  45439. 80136b2: 68fb ldr r3, [r7, #12]
  45440. }
  45441. 80136b4: 4618 mov r0, r3
  45442. 80136b6: 3710 adds r7, #16
  45443. 80136b8: 46bd mov sp, r7
  45444. 80136ba: bd80 pop {r7, pc}
  45445. 080136bc <TimerCallback>:
  45446. }
  45447. /*---------------------------------------------------------------------------*/
  45448. #if (configUSE_OS2_TIMER == 1)
  45449. static void TimerCallback (TimerHandle_t hTimer) {
  45450. 80136bc: b580 push {r7, lr}
  45451. 80136be: b084 sub sp, #16
  45452. 80136c0: af00 add r7, sp, #0
  45453. 80136c2: 6078 str r0, [r7, #4]
  45454. TimerCallback_t *callb;
  45455. callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
  45456. 80136c4: 6878 ldr r0, [r7, #4]
  45457. 80136c6: f003 fc3d bl 8016f44 <pvTimerGetTimerID>
  45458. 80136ca: 60f8 str r0, [r7, #12]
  45459. if (callb != NULL) {
  45460. 80136cc: 68fb ldr r3, [r7, #12]
  45461. 80136ce: 2b00 cmp r3, #0
  45462. 80136d0: d005 beq.n 80136de <TimerCallback+0x22>
  45463. callb->func (callb->arg);
  45464. 80136d2: 68fb ldr r3, [r7, #12]
  45465. 80136d4: 681b ldr r3, [r3, #0]
  45466. 80136d6: 68fa ldr r2, [r7, #12]
  45467. 80136d8: 6852 ldr r2, [r2, #4]
  45468. 80136da: 4610 mov r0, r2
  45469. 80136dc: 4798 blx r3
  45470. }
  45471. }
  45472. 80136de: bf00 nop
  45473. 80136e0: 3710 adds r7, #16
  45474. 80136e2: 46bd mov sp, r7
  45475. 80136e4: bd80 pop {r7, pc}
  45476. ...
  45477. 080136e8 <osTimerNew>:
  45478. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
  45479. 80136e8: b580 push {r7, lr}
  45480. 80136ea: b08c sub sp, #48 @ 0x30
  45481. 80136ec: af02 add r7, sp, #8
  45482. 80136ee: 60f8 str r0, [r7, #12]
  45483. 80136f0: 607a str r2, [r7, #4]
  45484. 80136f2: 603b str r3, [r7, #0]
  45485. 80136f4: 460b mov r3, r1
  45486. 80136f6: 72fb strb r3, [r7, #11]
  45487. TimerHandle_t hTimer;
  45488. TimerCallback_t *callb;
  45489. UBaseType_t reload;
  45490. int32_t mem;
  45491. hTimer = NULL;
  45492. 80136f8: 2300 movs r3, #0
  45493. 80136fa: 623b str r3, [r7, #32]
  45494. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45495. 80136fc: f3ef 8305 mrs r3, IPSR
  45496. 8013700: 613b str r3, [r7, #16]
  45497. return(result);
  45498. 8013702: 693b ldr r3, [r7, #16]
  45499. if (!IS_IRQ() && (func != NULL)) {
  45500. 8013704: 2b00 cmp r3, #0
  45501. 8013706: d163 bne.n 80137d0 <osTimerNew+0xe8>
  45502. 8013708: 68fb ldr r3, [r7, #12]
  45503. 801370a: 2b00 cmp r3, #0
  45504. 801370c: d060 beq.n 80137d0 <osTimerNew+0xe8>
  45505. /* Allocate memory to store callback function and argument */
  45506. callb = pvPortMalloc (sizeof(TimerCallback_t));
  45507. 801370e: 2008 movs r0, #8
  45508. 8013710: f003 fe8c bl 801742c <pvPortMalloc>
  45509. 8013714: 6178 str r0, [r7, #20]
  45510. if (callb != NULL) {
  45511. 8013716: 697b ldr r3, [r7, #20]
  45512. 8013718: 2b00 cmp r3, #0
  45513. 801371a: d059 beq.n 80137d0 <osTimerNew+0xe8>
  45514. callb->func = func;
  45515. 801371c: 697b ldr r3, [r7, #20]
  45516. 801371e: 68fa ldr r2, [r7, #12]
  45517. 8013720: 601a str r2, [r3, #0]
  45518. callb->arg = argument;
  45519. 8013722: 697b ldr r3, [r7, #20]
  45520. 8013724: 687a ldr r2, [r7, #4]
  45521. 8013726: 605a str r2, [r3, #4]
  45522. if (type == osTimerOnce) {
  45523. 8013728: 7afb ldrb r3, [r7, #11]
  45524. 801372a: 2b00 cmp r3, #0
  45525. 801372c: d102 bne.n 8013734 <osTimerNew+0x4c>
  45526. reload = pdFALSE;
  45527. 801372e: 2300 movs r3, #0
  45528. 8013730: 61fb str r3, [r7, #28]
  45529. 8013732: e001 b.n 8013738 <osTimerNew+0x50>
  45530. } else {
  45531. reload = pdTRUE;
  45532. 8013734: 2301 movs r3, #1
  45533. 8013736: 61fb str r3, [r7, #28]
  45534. }
  45535. mem = -1;
  45536. 8013738: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45537. 801373c: 61bb str r3, [r7, #24]
  45538. name = NULL;
  45539. 801373e: 2300 movs r3, #0
  45540. 8013740: 627b str r3, [r7, #36] @ 0x24
  45541. if (attr != NULL) {
  45542. 8013742: 683b ldr r3, [r7, #0]
  45543. 8013744: 2b00 cmp r3, #0
  45544. 8013746: d01c beq.n 8013782 <osTimerNew+0x9a>
  45545. if (attr->name != NULL) {
  45546. 8013748: 683b ldr r3, [r7, #0]
  45547. 801374a: 681b ldr r3, [r3, #0]
  45548. 801374c: 2b00 cmp r3, #0
  45549. 801374e: d002 beq.n 8013756 <osTimerNew+0x6e>
  45550. name = attr->name;
  45551. 8013750: 683b ldr r3, [r7, #0]
  45552. 8013752: 681b ldr r3, [r3, #0]
  45553. 8013754: 627b str r3, [r7, #36] @ 0x24
  45554. }
  45555. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
  45556. 8013756: 683b ldr r3, [r7, #0]
  45557. 8013758: 689b ldr r3, [r3, #8]
  45558. 801375a: 2b00 cmp r3, #0
  45559. 801375c: d006 beq.n 801376c <osTimerNew+0x84>
  45560. 801375e: 683b ldr r3, [r7, #0]
  45561. 8013760: 68db ldr r3, [r3, #12]
  45562. 8013762: 2b2b cmp r3, #43 @ 0x2b
  45563. 8013764: d902 bls.n 801376c <osTimerNew+0x84>
  45564. mem = 1;
  45565. 8013766: 2301 movs r3, #1
  45566. 8013768: 61bb str r3, [r7, #24]
  45567. 801376a: e00c b.n 8013786 <osTimerNew+0x9e>
  45568. }
  45569. else {
  45570. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  45571. 801376c: 683b ldr r3, [r7, #0]
  45572. 801376e: 689b ldr r3, [r3, #8]
  45573. 8013770: 2b00 cmp r3, #0
  45574. 8013772: d108 bne.n 8013786 <osTimerNew+0x9e>
  45575. 8013774: 683b ldr r3, [r7, #0]
  45576. 8013776: 68db ldr r3, [r3, #12]
  45577. 8013778: 2b00 cmp r3, #0
  45578. 801377a: d104 bne.n 8013786 <osTimerNew+0x9e>
  45579. mem = 0;
  45580. 801377c: 2300 movs r3, #0
  45581. 801377e: 61bb str r3, [r7, #24]
  45582. 8013780: e001 b.n 8013786 <osTimerNew+0x9e>
  45583. }
  45584. }
  45585. }
  45586. else {
  45587. mem = 0;
  45588. 8013782: 2300 movs r3, #0
  45589. 8013784: 61bb str r3, [r7, #24]
  45590. }
  45591. if (mem == 1) {
  45592. 8013786: 69bb ldr r3, [r7, #24]
  45593. 8013788: 2b01 cmp r3, #1
  45594. 801378a: d10c bne.n 80137a6 <osTimerNew+0xbe>
  45595. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  45596. hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
  45597. 801378c: 683b ldr r3, [r7, #0]
  45598. 801378e: 689b ldr r3, [r3, #8]
  45599. 8013790: 9301 str r3, [sp, #4]
  45600. 8013792: 4b12 ldr r3, [pc, #72] @ (80137dc <osTimerNew+0xf4>)
  45601. 8013794: 9300 str r3, [sp, #0]
  45602. 8013796: 697b ldr r3, [r7, #20]
  45603. 8013798: 69fa ldr r2, [r7, #28]
  45604. 801379a: 2101 movs r1, #1
  45605. 801379c: 6a78 ldr r0, [r7, #36] @ 0x24
  45606. 801379e: f003 f81a bl 80167d6 <xTimerCreateStatic>
  45607. 80137a2: 6238 str r0, [r7, #32]
  45608. 80137a4: e00b b.n 80137be <osTimerNew+0xd6>
  45609. #endif
  45610. }
  45611. else {
  45612. if (mem == 0) {
  45613. 80137a6: 69bb ldr r3, [r7, #24]
  45614. 80137a8: 2b00 cmp r3, #0
  45615. 80137aa: d108 bne.n 80137be <osTimerNew+0xd6>
  45616. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  45617. hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
  45618. 80137ac: 4b0b ldr r3, [pc, #44] @ (80137dc <osTimerNew+0xf4>)
  45619. 80137ae: 9300 str r3, [sp, #0]
  45620. 80137b0: 697b ldr r3, [r7, #20]
  45621. 80137b2: 69fa ldr r2, [r7, #28]
  45622. 80137b4: 2101 movs r1, #1
  45623. 80137b6: 6a78 ldr r0, [r7, #36] @ 0x24
  45624. 80137b8: f002 ffec bl 8016794 <xTimerCreate>
  45625. 80137bc: 6238 str r0, [r7, #32]
  45626. #endif
  45627. }
  45628. }
  45629. if ((hTimer == NULL) && (callb != NULL)) {
  45630. 80137be: 6a3b ldr r3, [r7, #32]
  45631. 80137c0: 2b00 cmp r3, #0
  45632. 80137c2: d105 bne.n 80137d0 <osTimerNew+0xe8>
  45633. 80137c4: 697b ldr r3, [r7, #20]
  45634. 80137c6: 2b00 cmp r3, #0
  45635. 80137c8: d002 beq.n 80137d0 <osTimerNew+0xe8>
  45636. vPortFree (callb);
  45637. 80137ca: 6978 ldr r0, [r7, #20]
  45638. 80137cc: f003 fefc bl 80175c8 <vPortFree>
  45639. }
  45640. }
  45641. }
  45642. return ((osTimerId_t)hTimer);
  45643. 80137d0: 6a3b ldr r3, [r7, #32]
  45644. }
  45645. 80137d2: 4618 mov r0, r3
  45646. 80137d4: 3728 adds r7, #40 @ 0x28
  45647. 80137d6: 46bd mov sp, r7
  45648. 80137d8: bd80 pop {r7, pc}
  45649. 80137da: bf00 nop
  45650. 80137dc: 080136bd .word 0x080136bd
  45651. 080137e0 <osTimerStart>:
  45652. }
  45653. return (p);
  45654. }
  45655. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
  45656. 80137e0: b580 push {r7, lr}
  45657. 80137e2: b088 sub sp, #32
  45658. 80137e4: af02 add r7, sp, #8
  45659. 80137e6: 6078 str r0, [r7, #4]
  45660. 80137e8: 6039 str r1, [r7, #0]
  45661. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  45662. 80137ea: 687b ldr r3, [r7, #4]
  45663. 80137ec: 613b str r3, [r7, #16]
  45664. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45665. 80137ee: f3ef 8305 mrs r3, IPSR
  45666. 80137f2: 60fb str r3, [r7, #12]
  45667. return(result);
  45668. 80137f4: 68fb ldr r3, [r7, #12]
  45669. osStatus_t stat;
  45670. if (IS_IRQ()) {
  45671. 80137f6: 2b00 cmp r3, #0
  45672. 80137f8: d003 beq.n 8013802 <osTimerStart+0x22>
  45673. stat = osErrorISR;
  45674. 80137fa: f06f 0305 mvn.w r3, #5
  45675. 80137fe: 617b str r3, [r7, #20]
  45676. 8013800: e017 b.n 8013832 <osTimerStart+0x52>
  45677. }
  45678. else if (hTimer == NULL) {
  45679. 8013802: 693b ldr r3, [r7, #16]
  45680. 8013804: 2b00 cmp r3, #0
  45681. 8013806: d103 bne.n 8013810 <osTimerStart+0x30>
  45682. stat = osErrorParameter;
  45683. 8013808: f06f 0303 mvn.w r3, #3
  45684. 801380c: 617b str r3, [r7, #20]
  45685. 801380e: e010 b.n 8013832 <osTimerStart+0x52>
  45686. }
  45687. else {
  45688. if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
  45689. 8013810: 2300 movs r3, #0
  45690. 8013812: 9300 str r3, [sp, #0]
  45691. 8013814: 2300 movs r3, #0
  45692. 8013816: 683a ldr r2, [r7, #0]
  45693. 8013818: 2104 movs r1, #4
  45694. 801381a: 6938 ldr r0, [r7, #16]
  45695. 801381c: f003 f858 bl 80168d0 <xTimerGenericCommand>
  45696. 8013820: 4603 mov r3, r0
  45697. 8013822: 2b01 cmp r3, #1
  45698. 8013824: d102 bne.n 801382c <osTimerStart+0x4c>
  45699. stat = osOK;
  45700. 8013826: 2300 movs r3, #0
  45701. 8013828: 617b str r3, [r7, #20]
  45702. 801382a: e002 b.n 8013832 <osTimerStart+0x52>
  45703. } else {
  45704. stat = osErrorResource;
  45705. 801382c: f06f 0302 mvn.w r3, #2
  45706. 8013830: 617b str r3, [r7, #20]
  45707. }
  45708. }
  45709. return (stat);
  45710. 8013832: 697b ldr r3, [r7, #20]
  45711. }
  45712. 8013834: 4618 mov r0, r3
  45713. 8013836: 3718 adds r7, #24
  45714. 8013838: 46bd mov sp, r7
  45715. 801383a: bd80 pop {r7, pc}
  45716. 0801383c <osTimerStop>:
  45717. osStatus_t osTimerStop (osTimerId_t timer_id) {
  45718. 801383c: b580 push {r7, lr}
  45719. 801383e: b088 sub sp, #32
  45720. 8013840: af02 add r7, sp, #8
  45721. 8013842: 6078 str r0, [r7, #4]
  45722. TimerHandle_t hTimer = (TimerHandle_t)timer_id;
  45723. 8013844: 687b ldr r3, [r7, #4]
  45724. 8013846: 613b str r3, [r7, #16]
  45725. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45726. 8013848: f3ef 8305 mrs r3, IPSR
  45727. 801384c: 60fb str r3, [r7, #12]
  45728. return(result);
  45729. 801384e: 68fb ldr r3, [r7, #12]
  45730. osStatus_t stat;
  45731. if (IS_IRQ()) {
  45732. 8013850: 2b00 cmp r3, #0
  45733. 8013852: d003 beq.n 801385c <osTimerStop+0x20>
  45734. stat = osErrorISR;
  45735. 8013854: f06f 0305 mvn.w r3, #5
  45736. 8013858: 617b str r3, [r7, #20]
  45737. 801385a: e021 b.n 80138a0 <osTimerStop+0x64>
  45738. }
  45739. else if (hTimer == NULL) {
  45740. 801385c: 693b ldr r3, [r7, #16]
  45741. 801385e: 2b00 cmp r3, #0
  45742. 8013860: d103 bne.n 801386a <osTimerStop+0x2e>
  45743. stat = osErrorParameter;
  45744. 8013862: f06f 0303 mvn.w r3, #3
  45745. 8013866: 617b str r3, [r7, #20]
  45746. 8013868: e01a b.n 80138a0 <osTimerStop+0x64>
  45747. }
  45748. else {
  45749. if (xTimerIsTimerActive (hTimer) == pdFALSE) {
  45750. 801386a: 6938 ldr r0, [r7, #16]
  45751. 801386c: f003 fb40 bl 8016ef0 <xTimerIsTimerActive>
  45752. 8013870: 4603 mov r3, r0
  45753. 8013872: 2b00 cmp r3, #0
  45754. 8013874: d103 bne.n 801387e <osTimerStop+0x42>
  45755. stat = osErrorResource;
  45756. 8013876: f06f 0302 mvn.w r3, #2
  45757. 801387a: 617b str r3, [r7, #20]
  45758. 801387c: e010 b.n 80138a0 <osTimerStop+0x64>
  45759. }
  45760. else {
  45761. if (xTimerStop (hTimer, 0) == pdPASS) {
  45762. 801387e: 2300 movs r3, #0
  45763. 8013880: 9300 str r3, [sp, #0]
  45764. 8013882: 2300 movs r3, #0
  45765. 8013884: 2200 movs r2, #0
  45766. 8013886: 2103 movs r1, #3
  45767. 8013888: 6938 ldr r0, [r7, #16]
  45768. 801388a: f003 f821 bl 80168d0 <xTimerGenericCommand>
  45769. 801388e: 4603 mov r3, r0
  45770. 8013890: 2b01 cmp r3, #1
  45771. 8013892: d102 bne.n 801389a <osTimerStop+0x5e>
  45772. stat = osOK;
  45773. 8013894: 2300 movs r3, #0
  45774. 8013896: 617b str r3, [r7, #20]
  45775. 8013898: e002 b.n 80138a0 <osTimerStop+0x64>
  45776. } else {
  45777. stat = osError;
  45778. 801389a: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45779. 801389e: 617b str r3, [r7, #20]
  45780. }
  45781. }
  45782. }
  45783. return (stat);
  45784. 80138a0: 697b ldr r3, [r7, #20]
  45785. }
  45786. 80138a2: 4618 mov r0, r3
  45787. 80138a4: 3718 adds r7, #24
  45788. 80138a6: 46bd mov sp, r7
  45789. 80138a8: bd80 pop {r7, pc}
  45790. 080138aa <osMutexNew>:
  45791. }
  45792. /*---------------------------------------------------------------------------*/
  45793. #if (configUSE_OS2_MUTEX == 1)
  45794. osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
  45795. 80138aa: b580 push {r7, lr}
  45796. 80138ac: b088 sub sp, #32
  45797. 80138ae: af00 add r7, sp, #0
  45798. 80138b0: 6078 str r0, [r7, #4]
  45799. int32_t mem;
  45800. #if (configQUEUE_REGISTRY_SIZE > 0)
  45801. const char *name;
  45802. #endif
  45803. hMutex = NULL;
  45804. 80138b2: 2300 movs r3, #0
  45805. 80138b4: 61fb str r3, [r7, #28]
  45806. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  45807. 80138b6: f3ef 8305 mrs r3, IPSR
  45808. 80138ba: 60bb str r3, [r7, #8]
  45809. return(result);
  45810. 80138bc: 68bb ldr r3, [r7, #8]
  45811. if (!IS_IRQ()) {
  45812. 80138be: 2b00 cmp r3, #0
  45813. 80138c0: d174 bne.n 80139ac <osMutexNew+0x102>
  45814. if (attr != NULL) {
  45815. 80138c2: 687b ldr r3, [r7, #4]
  45816. 80138c4: 2b00 cmp r3, #0
  45817. 80138c6: d003 beq.n 80138d0 <osMutexNew+0x26>
  45818. type = attr->attr_bits;
  45819. 80138c8: 687b ldr r3, [r7, #4]
  45820. 80138ca: 685b ldr r3, [r3, #4]
  45821. 80138cc: 61bb str r3, [r7, #24]
  45822. 80138ce: e001 b.n 80138d4 <osMutexNew+0x2a>
  45823. } else {
  45824. type = 0U;
  45825. 80138d0: 2300 movs r3, #0
  45826. 80138d2: 61bb str r3, [r7, #24]
  45827. }
  45828. if ((type & osMutexRecursive) == osMutexRecursive) {
  45829. 80138d4: 69bb ldr r3, [r7, #24]
  45830. 80138d6: f003 0301 and.w r3, r3, #1
  45831. 80138da: 2b00 cmp r3, #0
  45832. 80138dc: d002 beq.n 80138e4 <osMutexNew+0x3a>
  45833. rmtx = 1U;
  45834. 80138de: 2301 movs r3, #1
  45835. 80138e0: 617b str r3, [r7, #20]
  45836. 80138e2: e001 b.n 80138e8 <osMutexNew+0x3e>
  45837. } else {
  45838. rmtx = 0U;
  45839. 80138e4: 2300 movs r3, #0
  45840. 80138e6: 617b str r3, [r7, #20]
  45841. }
  45842. if ((type & osMutexRobust) != osMutexRobust) {
  45843. 80138e8: 69bb ldr r3, [r7, #24]
  45844. 80138ea: f003 0308 and.w r3, r3, #8
  45845. 80138ee: 2b00 cmp r3, #0
  45846. 80138f0: d15c bne.n 80139ac <osMutexNew+0x102>
  45847. mem = -1;
  45848. 80138f2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  45849. 80138f6: 613b str r3, [r7, #16]
  45850. if (attr != NULL) {
  45851. 80138f8: 687b ldr r3, [r7, #4]
  45852. 80138fa: 2b00 cmp r3, #0
  45853. 80138fc: d015 beq.n 801392a <osMutexNew+0x80>
  45854. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
  45855. 80138fe: 687b ldr r3, [r7, #4]
  45856. 8013900: 689b ldr r3, [r3, #8]
  45857. 8013902: 2b00 cmp r3, #0
  45858. 8013904: d006 beq.n 8013914 <osMutexNew+0x6a>
  45859. 8013906: 687b ldr r3, [r7, #4]
  45860. 8013908: 68db ldr r3, [r3, #12]
  45861. 801390a: 2b4f cmp r3, #79 @ 0x4f
  45862. 801390c: d902 bls.n 8013914 <osMutexNew+0x6a>
  45863. mem = 1;
  45864. 801390e: 2301 movs r3, #1
  45865. 8013910: 613b str r3, [r7, #16]
  45866. 8013912: e00c b.n 801392e <osMutexNew+0x84>
  45867. }
  45868. else {
  45869. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
  45870. 8013914: 687b ldr r3, [r7, #4]
  45871. 8013916: 689b ldr r3, [r3, #8]
  45872. 8013918: 2b00 cmp r3, #0
  45873. 801391a: d108 bne.n 801392e <osMutexNew+0x84>
  45874. 801391c: 687b ldr r3, [r7, #4]
  45875. 801391e: 68db ldr r3, [r3, #12]
  45876. 8013920: 2b00 cmp r3, #0
  45877. 8013922: d104 bne.n 801392e <osMutexNew+0x84>
  45878. mem = 0;
  45879. 8013924: 2300 movs r3, #0
  45880. 8013926: 613b str r3, [r7, #16]
  45881. 8013928: e001 b.n 801392e <osMutexNew+0x84>
  45882. }
  45883. }
  45884. }
  45885. else {
  45886. mem = 0;
  45887. 801392a: 2300 movs r3, #0
  45888. 801392c: 613b str r3, [r7, #16]
  45889. }
  45890. if (mem == 1) {
  45891. 801392e: 693b ldr r3, [r7, #16]
  45892. 8013930: 2b01 cmp r3, #1
  45893. 8013932: d112 bne.n 801395a <osMutexNew+0xb0>
  45894. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  45895. if (rmtx != 0U) {
  45896. 8013934: 697b ldr r3, [r7, #20]
  45897. 8013936: 2b00 cmp r3, #0
  45898. 8013938: d007 beq.n 801394a <osMutexNew+0xa0>
  45899. #if (configUSE_RECURSIVE_MUTEXES == 1)
  45900. hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
  45901. 801393a: 687b ldr r3, [r7, #4]
  45902. 801393c: 689b ldr r3, [r3, #8]
  45903. 801393e: 4619 mov r1, r3
  45904. 8013940: 2004 movs r0, #4
  45905. 8013942: f000 fc50 bl 80141e6 <xQueueCreateMutexStatic>
  45906. 8013946: 61f8 str r0, [r7, #28]
  45907. 8013948: e016 b.n 8013978 <osMutexNew+0xce>
  45908. #endif
  45909. }
  45910. else {
  45911. hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
  45912. 801394a: 687b ldr r3, [r7, #4]
  45913. 801394c: 689b ldr r3, [r3, #8]
  45914. 801394e: 4619 mov r1, r3
  45915. 8013950: 2001 movs r0, #1
  45916. 8013952: f000 fc48 bl 80141e6 <xQueueCreateMutexStatic>
  45917. 8013956: 61f8 str r0, [r7, #28]
  45918. 8013958: e00e b.n 8013978 <osMutexNew+0xce>
  45919. }
  45920. #endif
  45921. }
  45922. else {
  45923. if (mem == 0) {
  45924. 801395a: 693b ldr r3, [r7, #16]
  45925. 801395c: 2b00 cmp r3, #0
  45926. 801395e: d10b bne.n 8013978 <osMutexNew+0xce>
  45927. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  45928. if (rmtx != 0U) {
  45929. 8013960: 697b ldr r3, [r7, #20]
  45930. 8013962: 2b00 cmp r3, #0
  45931. 8013964: d004 beq.n 8013970 <osMutexNew+0xc6>
  45932. #if (configUSE_RECURSIVE_MUTEXES == 1)
  45933. hMutex = xSemaphoreCreateRecursiveMutex ();
  45934. 8013966: 2004 movs r0, #4
  45935. 8013968: f000 fc25 bl 80141b6 <xQueueCreateMutex>
  45936. 801396c: 61f8 str r0, [r7, #28]
  45937. 801396e: e003 b.n 8013978 <osMutexNew+0xce>
  45938. #endif
  45939. } else {
  45940. hMutex = xSemaphoreCreateMutex ();
  45941. 8013970: 2001 movs r0, #1
  45942. 8013972: f000 fc20 bl 80141b6 <xQueueCreateMutex>
  45943. 8013976: 61f8 str r0, [r7, #28]
  45944. #endif
  45945. }
  45946. }
  45947. #if (configQUEUE_REGISTRY_SIZE > 0)
  45948. if (hMutex != NULL) {
  45949. 8013978: 69fb ldr r3, [r7, #28]
  45950. 801397a: 2b00 cmp r3, #0
  45951. 801397c: d00c beq.n 8013998 <osMutexNew+0xee>
  45952. if (attr != NULL) {
  45953. 801397e: 687b ldr r3, [r7, #4]
  45954. 8013980: 2b00 cmp r3, #0
  45955. 8013982: d003 beq.n 801398c <osMutexNew+0xe2>
  45956. name = attr->name;
  45957. 8013984: 687b ldr r3, [r7, #4]
  45958. 8013986: 681b ldr r3, [r3, #0]
  45959. 8013988: 60fb str r3, [r7, #12]
  45960. 801398a: e001 b.n 8013990 <osMutexNew+0xe6>
  45961. } else {
  45962. name = NULL;
  45963. 801398c: 2300 movs r3, #0
  45964. 801398e: 60fb str r3, [r7, #12]
  45965. }
  45966. vQueueAddToRegistry (hMutex, name);
  45967. 8013990: 68f9 ldr r1, [r7, #12]
  45968. 8013992: 69f8 ldr r0, [r7, #28]
  45969. 8013994: f001 f9ea bl 8014d6c <vQueueAddToRegistry>
  45970. }
  45971. #endif
  45972. if ((hMutex != NULL) && (rmtx != 0U)) {
  45973. 8013998: 69fb ldr r3, [r7, #28]
  45974. 801399a: 2b00 cmp r3, #0
  45975. 801399c: d006 beq.n 80139ac <osMutexNew+0x102>
  45976. 801399e: 697b ldr r3, [r7, #20]
  45977. 80139a0: 2b00 cmp r3, #0
  45978. 80139a2: d003 beq.n 80139ac <osMutexNew+0x102>
  45979. hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
  45980. 80139a4: 69fb ldr r3, [r7, #28]
  45981. 80139a6: f043 0301 orr.w r3, r3, #1
  45982. 80139aa: 61fb str r3, [r7, #28]
  45983. }
  45984. }
  45985. }
  45986. return ((osMutexId_t)hMutex);
  45987. 80139ac: 69fb ldr r3, [r7, #28]
  45988. }
  45989. 80139ae: 4618 mov r0, r3
  45990. 80139b0: 3720 adds r7, #32
  45991. 80139b2: 46bd mov sp, r7
  45992. 80139b4: bd80 pop {r7, pc}
  45993. 080139b6 <osMutexAcquire>:
  45994. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
  45995. 80139b6: b580 push {r7, lr}
  45996. 80139b8: b086 sub sp, #24
  45997. 80139ba: af00 add r7, sp, #0
  45998. 80139bc: 6078 str r0, [r7, #4]
  45999. 80139be: 6039 str r1, [r7, #0]
  46000. SemaphoreHandle_t hMutex;
  46001. osStatus_t stat;
  46002. uint32_t rmtx;
  46003. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46004. 80139c0: 687b ldr r3, [r7, #4]
  46005. 80139c2: f023 0301 bic.w r3, r3, #1
  46006. 80139c6: 613b str r3, [r7, #16]
  46007. rmtx = (uint32_t)mutex_id & 1U;
  46008. 80139c8: 687b ldr r3, [r7, #4]
  46009. 80139ca: f003 0301 and.w r3, r3, #1
  46010. 80139ce: 60fb str r3, [r7, #12]
  46011. stat = osOK;
  46012. 80139d0: 2300 movs r3, #0
  46013. 80139d2: 617b str r3, [r7, #20]
  46014. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46015. 80139d4: f3ef 8305 mrs r3, IPSR
  46016. 80139d8: 60bb str r3, [r7, #8]
  46017. return(result);
  46018. 80139da: 68bb ldr r3, [r7, #8]
  46019. if (IS_IRQ()) {
  46020. 80139dc: 2b00 cmp r3, #0
  46021. 80139de: d003 beq.n 80139e8 <osMutexAcquire+0x32>
  46022. stat = osErrorISR;
  46023. 80139e0: f06f 0305 mvn.w r3, #5
  46024. 80139e4: 617b str r3, [r7, #20]
  46025. 80139e6: e02c b.n 8013a42 <osMutexAcquire+0x8c>
  46026. }
  46027. else if (hMutex == NULL) {
  46028. 80139e8: 693b ldr r3, [r7, #16]
  46029. 80139ea: 2b00 cmp r3, #0
  46030. 80139ec: d103 bne.n 80139f6 <osMutexAcquire+0x40>
  46031. stat = osErrorParameter;
  46032. 80139ee: f06f 0303 mvn.w r3, #3
  46033. 80139f2: 617b str r3, [r7, #20]
  46034. 80139f4: e025 b.n 8013a42 <osMutexAcquire+0x8c>
  46035. }
  46036. else {
  46037. if (rmtx != 0U) {
  46038. 80139f6: 68fb ldr r3, [r7, #12]
  46039. 80139f8: 2b00 cmp r3, #0
  46040. 80139fa: d011 beq.n 8013a20 <osMutexAcquire+0x6a>
  46041. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46042. if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
  46043. 80139fc: 6839 ldr r1, [r7, #0]
  46044. 80139fe: 6938 ldr r0, [r7, #16]
  46045. 8013a00: f000 fc41 bl 8014286 <xQueueTakeMutexRecursive>
  46046. 8013a04: 4603 mov r3, r0
  46047. 8013a06: 2b01 cmp r3, #1
  46048. 8013a08: d01b beq.n 8013a42 <osMutexAcquire+0x8c>
  46049. if (timeout != 0U) {
  46050. 8013a0a: 683b ldr r3, [r7, #0]
  46051. 8013a0c: 2b00 cmp r3, #0
  46052. 8013a0e: d003 beq.n 8013a18 <osMutexAcquire+0x62>
  46053. stat = osErrorTimeout;
  46054. 8013a10: f06f 0301 mvn.w r3, #1
  46055. 8013a14: 617b str r3, [r7, #20]
  46056. 8013a16: e014 b.n 8013a42 <osMutexAcquire+0x8c>
  46057. } else {
  46058. stat = osErrorResource;
  46059. 8013a18: f06f 0302 mvn.w r3, #2
  46060. 8013a1c: 617b str r3, [r7, #20]
  46061. 8013a1e: e010 b.n 8013a42 <osMutexAcquire+0x8c>
  46062. }
  46063. }
  46064. #endif
  46065. }
  46066. else {
  46067. if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
  46068. 8013a20: 6839 ldr r1, [r7, #0]
  46069. 8013a22: 6938 ldr r0, [r7, #16]
  46070. 8013a24: f000 fee8 bl 80147f8 <xQueueSemaphoreTake>
  46071. 8013a28: 4603 mov r3, r0
  46072. 8013a2a: 2b01 cmp r3, #1
  46073. 8013a2c: d009 beq.n 8013a42 <osMutexAcquire+0x8c>
  46074. if (timeout != 0U) {
  46075. 8013a2e: 683b ldr r3, [r7, #0]
  46076. 8013a30: 2b00 cmp r3, #0
  46077. 8013a32: d003 beq.n 8013a3c <osMutexAcquire+0x86>
  46078. stat = osErrorTimeout;
  46079. 8013a34: f06f 0301 mvn.w r3, #1
  46080. 8013a38: 617b str r3, [r7, #20]
  46081. 8013a3a: e002 b.n 8013a42 <osMutexAcquire+0x8c>
  46082. } else {
  46083. stat = osErrorResource;
  46084. 8013a3c: f06f 0302 mvn.w r3, #2
  46085. 8013a40: 617b str r3, [r7, #20]
  46086. }
  46087. }
  46088. }
  46089. }
  46090. return (stat);
  46091. 8013a42: 697b ldr r3, [r7, #20]
  46092. }
  46093. 8013a44: 4618 mov r0, r3
  46094. 8013a46: 3718 adds r7, #24
  46095. 8013a48: 46bd mov sp, r7
  46096. 8013a4a: bd80 pop {r7, pc}
  46097. 08013a4c <osMutexRelease>:
  46098. osStatus_t osMutexRelease (osMutexId_t mutex_id) {
  46099. 8013a4c: b580 push {r7, lr}
  46100. 8013a4e: b086 sub sp, #24
  46101. 8013a50: af00 add r7, sp, #0
  46102. 8013a52: 6078 str r0, [r7, #4]
  46103. SemaphoreHandle_t hMutex;
  46104. osStatus_t stat;
  46105. uint32_t rmtx;
  46106. hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
  46107. 8013a54: 687b ldr r3, [r7, #4]
  46108. 8013a56: f023 0301 bic.w r3, r3, #1
  46109. 8013a5a: 613b str r3, [r7, #16]
  46110. rmtx = (uint32_t)mutex_id & 1U;
  46111. 8013a5c: 687b ldr r3, [r7, #4]
  46112. 8013a5e: f003 0301 and.w r3, r3, #1
  46113. 8013a62: 60fb str r3, [r7, #12]
  46114. stat = osOK;
  46115. 8013a64: 2300 movs r3, #0
  46116. 8013a66: 617b str r3, [r7, #20]
  46117. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46118. 8013a68: f3ef 8305 mrs r3, IPSR
  46119. 8013a6c: 60bb str r3, [r7, #8]
  46120. return(result);
  46121. 8013a6e: 68bb ldr r3, [r7, #8]
  46122. if (IS_IRQ()) {
  46123. 8013a70: 2b00 cmp r3, #0
  46124. 8013a72: d003 beq.n 8013a7c <osMutexRelease+0x30>
  46125. stat = osErrorISR;
  46126. 8013a74: f06f 0305 mvn.w r3, #5
  46127. 8013a78: 617b str r3, [r7, #20]
  46128. 8013a7a: e01f b.n 8013abc <osMutexRelease+0x70>
  46129. }
  46130. else if (hMutex == NULL) {
  46131. 8013a7c: 693b ldr r3, [r7, #16]
  46132. 8013a7e: 2b00 cmp r3, #0
  46133. 8013a80: d103 bne.n 8013a8a <osMutexRelease+0x3e>
  46134. stat = osErrorParameter;
  46135. 8013a82: f06f 0303 mvn.w r3, #3
  46136. 8013a86: 617b str r3, [r7, #20]
  46137. 8013a88: e018 b.n 8013abc <osMutexRelease+0x70>
  46138. }
  46139. else {
  46140. if (rmtx != 0U) {
  46141. 8013a8a: 68fb ldr r3, [r7, #12]
  46142. 8013a8c: 2b00 cmp r3, #0
  46143. 8013a8e: d009 beq.n 8013aa4 <osMutexRelease+0x58>
  46144. #if (configUSE_RECURSIVE_MUTEXES == 1)
  46145. if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
  46146. 8013a90: 6938 ldr r0, [r7, #16]
  46147. 8013a92: f000 fbc3 bl 801421c <xQueueGiveMutexRecursive>
  46148. 8013a96: 4603 mov r3, r0
  46149. 8013a98: 2b01 cmp r3, #1
  46150. 8013a9a: d00f beq.n 8013abc <osMutexRelease+0x70>
  46151. stat = osErrorResource;
  46152. 8013a9c: f06f 0302 mvn.w r3, #2
  46153. 8013aa0: 617b str r3, [r7, #20]
  46154. 8013aa2: e00b b.n 8013abc <osMutexRelease+0x70>
  46155. }
  46156. #endif
  46157. }
  46158. else {
  46159. if (xSemaphoreGive (hMutex) != pdPASS) {
  46160. 8013aa4: 2300 movs r3, #0
  46161. 8013aa6: 2200 movs r2, #0
  46162. 8013aa8: 2100 movs r1, #0
  46163. 8013aaa: 6938 ldr r0, [r7, #16]
  46164. 8013aac: f000 fc22 bl 80142f4 <xQueueGenericSend>
  46165. 8013ab0: 4603 mov r3, r0
  46166. 8013ab2: 2b01 cmp r3, #1
  46167. 8013ab4: d002 beq.n 8013abc <osMutexRelease+0x70>
  46168. stat = osErrorResource;
  46169. 8013ab6: f06f 0302 mvn.w r3, #2
  46170. 8013aba: 617b str r3, [r7, #20]
  46171. }
  46172. }
  46173. }
  46174. return (stat);
  46175. 8013abc: 697b ldr r3, [r7, #20]
  46176. }
  46177. 8013abe: 4618 mov r0, r3
  46178. 8013ac0: 3718 adds r7, #24
  46179. 8013ac2: 46bd mov sp, r7
  46180. 8013ac4: bd80 pop {r7, pc}
  46181. 08013ac6 <osMessageQueueNew>:
  46182. return (stat);
  46183. }
  46184. /*---------------------------------------------------------------------------*/
  46185. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
  46186. 8013ac6: b580 push {r7, lr}
  46187. 8013ac8: b08a sub sp, #40 @ 0x28
  46188. 8013aca: af02 add r7, sp, #8
  46189. 8013acc: 60f8 str r0, [r7, #12]
  46190. 8013ace: 60b9 str r1, [r7, #8]
  46191. 8013ad0: 607a str r2, [r7, #4]
  46192. int32_t mem;
  46193. #if (configQUEUE_REGISTRY_SIZE > 0)
  46194. const char *name;
  46195. #endif
  46196. hQueue = NULL;
  46197. 8013ad2: 2300 movs r3, #0
  46198. 8013ad4: 61fb str r3, [r7, #28]
  46199. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46200. 8013ad6: f3ef 8305 mrs r3, IPSR
  46201. 8013ada: 613b str r3, [r7, #16]
  46202. return(result);
  46203. 8013adc: 693b ldr r3, [r7, #16]
  46204. if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
  46205. 8013ade: 2b00 cmp r3, #0
  46206. 8013ae0: d15f bne.n 8013ba2 <osMessageQueueNew+0xdc>
  46207. 8013ae2: 68fb ldr r3, [r7, #12]
  46208. 8013ae4: 2b00 cmp r3, #0
  46209. 8013ae6: d05c beq.n 8013ba2 <osMessageQueueNew+0xdc>
  46210. 8013ae8: 68bb ldr r3, [r7, #8]
  46211. 8013aea: 2b00 cmp r3, #0
  46212. 8013aec: d059 beq.n 8013ba2 <osMessageQueueNew+0xdc>
  46213. mem = -1;
  46214. 8013aee: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  46215. 8013af2: 61bb str r3, [r7, #24]
  46216. if (attr != NULL) {
  46217. 8013af4: 687b ldr r3, [r7, #4]
  46218. 8013af6: 2b00 cmp r3, #0
  46219. 8013af8: d029 beq.n 8013b4e <osMessageQueueNew+0x88>
  46220. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46221. 8013afa: 687b ldr r3, [r7, #4]
  46222. 8013afc: 689b ldr r3, [r3, #8]
  46223. 8013afe: 2b00 cmp r3, #0
  46224. 8013b00: d012 beq.n 8013b28 <osMessageQueueNew+0x62>
  46225. 8013b02: 687b ldr r3, [r7, #4]
  46226. 8013b04: 68db ldr r3, [r3, #12]
  46227. 8013b06: 2b4f cmp r3, #79 @ 0x4f
  46228. 8013b08: d90e bls.n 8013b28 <osMessageQueueNew+0x62>
  46229. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46230. 8013b0a: 687b ldr r3, [r7, #4]
  46231. 8013b0c: 691b ldr r3, [r3, #16]
  46232. if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
  46233. 8013b0e: 2b00 cmp r3, #0
  46234. 8013b10: d00a beq.n 8013b28 <osMessageQueueNew+0x62>
  46235. (attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
  46236. 8013b12: 687b ldr r3, [r7, #4]
  46237. 8013b14: 695a ldr r2, [r3, #20]
  46238. 8013b16: 68fb ldr r3, [r7, #12]
  46239. 8013b18: 68b9 ldr r1, [r7, #8]
  46240. 8013b1a: fb01 f303 mul.w r3, r1, r3
  46241. 8013b1e: 429a cmp r2, r3
  46242. 8013b20: d302 bcc.n 8013b28 <osMessageQueueNew+0x62>
  46243. mem = 1;
  46244. 8013b22: 2301 movs r3, #1
  46245. 8013b24: 61bb str r3, [r7, #24]
  46246. 8013b26: e014 b.n 8013b52 <osMessageQueueNew+0x8c>
  46247. }
  46248. else {
  46249. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46250. 8013b28: 687b ldr r3, [r7, #4]
  46251. 8013b2a: 689b ldr r3, [r3, #8]
  46252. 8013b2c: 2b00 cmp r3, #0
  46253. 8013b2e: d110 bne.n 8013b52 <osMessageQueueNew+0x8c>
  46254. 8013b30: 687b ldr r3, [r7, #4]
  46255. 8013b32: 68db ldr r3, [r3, #12]
  46256. 8013b34: 2b00 cmp r3, #0
  46257. 8013b36: d10c bne.n 8013b52 <osMessageQueueNew+0x8c>
  46258. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46259. 8013b38: 687b ldr r3, [r7, #4]
  46260. 8013b3a: 691b ldr r3, [r3, #16]
  46261. if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
  46262. 8013b3c: 2b00 cmp r3, #0
  46263. 8013b3e: d108 bne.n 8013b52 <osMessageQueueNew+0x8c>
  46264. (attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
  46265. 8013b40: 687b ldr r3, [r7, #4]
  46266. 8013b42: 695b ldr r3, [r3, #20]
  46267. 8013b44: 2b00 cmp r3, #0
  46268. 8013b46: d104 bne.n 8013b52 <osMessageQueueNew+0x8c>
  46269. mem = 0;
  46270. 8013b48: 2300 movs r3, #0
  46271. 8013b4a: 61bb str r3, [r7, #24]
  46272. 8013b4c: e001 b.n 8013b52 <osMessageQueueNew+0x8c>
  46273. }
  46274. }
  46275. }
  46276. else {
  46277. mem = 0;
  46278. 8013b4e: 2300 movs r3, #0
  46279. 8013b50: 61bb str r3, [r7, #24]
  46280. }
  46281. if (mem == 1) {
  46282. 8013b52: 69bb ldr r3, [r7, #24]
  46283. 8013b54: 2b01 cmp r3, #1
  46284. 8013b56: d10b bne.n 8013b70 <osMessageQueueNew+0xaa>
  46285. #if (configSUPPORT_STATIC_ALLOCATION == 1)
  46286. hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
  46287. 8013b58: 687b ldr r3, [r7, #4]
  46288. 8013b5a: 691a ldr r2, [r3, #16]
  46289. 8013b5c: 687b ldr r3, [r7, #4]
  46290. 8013b5e: 689b ldr r3, [r3, #8]
  46291. 8013b60: 2100 movs r1, #0
  46292. 8013b62: 9100 str r1, [sp, #0]
  46293. 8013b64: 68b9 ldr r1, [r7, #8]
  46294. 8013b66: 68f8 ldr r0, [r7, #12]
  46295. 8013b68: f000 fa30 bl 8013fcc <xQueueGenericCreateStatic>
  46296. 8013b6c: 61f8 str r0, [r7, #28]
  46297. 8013b6e: e008 b.n 8013b82 <osMessageQueueNew+0xbc>
  46298. #endif
  46299. }
  46300. else {
  46301. if (mem == 0) {
  46302. 8013b70: 69bb ldr r3, [r7, #24]
  46303. 8013b72: 2b00 cmp r3, #0
  46304. 8013b74: d105 bne.n 8013b82 <osMessageQueueNew+0xbc>
  46305. #if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
  46306. hQueue = xQueueCreate (msg_count, msg_size);
  46307. 8013b76: 2200 movs r2, #0
  46308. 8013b78: 68b9 ldr r1, [r7, #8]
  46309. 8013b7a: 68f8 ldr r0, [r7, #12]
  46310. 8013b7c: f000 faa3 bl 80140c6 <xQueueGenericCreate>
  46311. 8013b80: 61f8 str r0, [r7, #28]
  46312. #endif
  46313. }
  46314. }
  46315. #if (configQUEUE_REGISTRY_SIZE > 0)
  46316. if (hQueue != NULL) {
  46317. 8013b82: 69fb ldr r3, [r7, #28]
  46318. 8013b84: 2b00 cmp r3, #0
  46319. 8013b86: d00c beq.n 8013ba2 <osMessageQueueNew+0xdc>
  46320. if (attr != NULL) {
  46321. 8013b88: 687b ldr r3, [r7, #4]
  46322. 8013b8a: 2b00 cmp r3, #0
  46323. 8013b8c: d003 beq.n 8013b96 <osMessageQueueNew+0xd0>
  46324. name = attr->name;
  46325. 8013b8e: 687b ldr r3, [r7, #4]
  46326. 8013b90: 681b ldr r3, [r3, #0]
  46327. 8013b92: 617b str r3, [r7, #20]
  46328. 8013b94: e001 b.n 8013b9a <osMessageQueueNew+0xd4>
  46329. } else {
  46330. name = NULL;
  46331. 8013b96: 2300 movs r3, #0
  46332. 8013b98: 617b str r3, [r7, #20]
  46333. }
  46334. vQueueAddToRegistry (hQueue, name);
  46335. 8013b9a: 6979 ldr r1, [r7, #20]
  46336. 8013b9c: 69f8 ldr r0, [r7, #28]
  46337. 8013b9e: f001 f8e5 bl 8014d6c <vQueueAddToRegistry>
  46338. }
  46339. #endif
  46340. }
  46341. return ((osMessageQueueId_t)hQueue);
  46342. 8013ba2: 69fb ldr r3, [r7, #28]
  46343. }
  46344. 8013ba4: 4618 mov r0, r3
  46345. 8013ba6: 3720 adds r7, #32
  46346. 8013ba8: 46bd mov sp, r7
  46347. 8013baa: bd80 pop {r7, pc}
  46348. 08013bac <osMessageQueuePut>:
  46349. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout) {
  46350. 8013bac: b580 push {r7, lr}
  46351. 8013bae: b088 sub sp, #32
  46352. 8013bb0: af00 add r7, sp, #0
  46353. 8013bb2: 60f8 str r0, [r7, #12]
  46354. 8013bb4: 60b9 str r1, [r7, #8]
  46355. 8013bb6: 603b str r3, [r7, #0]
  46356. 8013bb8: 4613 mov r3, r2
  46357. 8013bba: 71fb strb r3, [r7, #7]
  46358. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  46359. 8013bbc: 68fb ldr r3, [r7, #12]
  46360. 8013bbe: 61bb str r3, [r7, #24]
  46361. osStatus_t stat;
  46362. BaseType_t yield;
  46363. (void)msg_prio; /* Message priority is ignored */
  46364. stat = osOK;
  46365. 8013bc0: 2300 movs r3, #0
  46366. 8013bc2: 61fb str r3, [r7, #28]
  46367. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46368. 8013bc4: f3ef 8305 mrs r3, IPSR
  46369. 8013bc8: 617b str r3, [r7, #20]
  46370. return(result);
  46371. 8013bca: 697b ldr r3, [r7, #20]
  46372. if (IS_IRQ()) {
  46373. 8013bcc: 2b00 cmp r3, #0
  46374. 8013bce: d028 beq.n 8013c22 <osMessageQueuePut+0x76>
  46375. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  46376. 8013bd0: 69bb ldr r3, [r7, #24]
  46377. 8013bd2: 2b00 cmp r3, #0
  46378. 8013bd4: d005 beq.n 8013be2 <osMessageQueuePut+0x36>
  46379. 8013bd6: 68bb ldr r3, [r7, #8]
  46380. 8013bd8: 2b00 cmp r3, #0
  46381. 8013bda: d002 beq.n 8013be2 <osMessageQueuePut+0x36>
  46382. 8013bdc: 683b ldr r3, [r7, #0]
  46383. 8013bde: 2b00 cmp r3, #0
  46384. 8013be0: d003 beq.n 8013bea <osMessageQueuePut+0x3e>
  46385. stat = osErrorParameter;
  46386. 8013be2: f06f 0303 mvn.w r3, #3
  46387. 8013be6: 61fb str r3, [r7, #28]
  46388. 8013be8: e038 b.n 8013c5c <osMessageQueuePut+0xb0>
  46389. }
  46390. else {
  46391. yield = pdFALSE;
  46392. 8013bea: 2300 movs r3, #0
  46393. 8013bec: 613b str r3, [r7, #16]
  46394. if (xQueueSendToBackFromISR (hQueue, msg_ptr, &yield) != pdTRUE) {
  46395. 8013bee: f107 0210 add.w r2, r7, #16
  46396. 8013bf2: 2300 movs r3, #0
  46397. 8013bf4: 68b9 ldr r1, [r7, #8]
  46398. 8013bf6: 69b8 ldr r0, [r7, #24]
  46399. 8013bf8: f000 fc7e bl 80144f8 <xQueueGenericSendFromISR>
  46400. 8013bfc: 4603 mov r3, r0
  46401. 8013bfe: 2b01 cmp r3, #1
  46402. 8013c00: d003 beq.n 8013c0a <osMessageQueuePut+0x5e>
  46403. stat = osErrorResource;
  46404. 8013c02: f06f 0302 mvn.w r3, #2
  46405. 8013c06: 61fb str r3, [r7, #28]
  46406. 8013c08: e028 b.n 8013c5c <osMessageQueuePut+0xb0>
  46407. } else {
  46408. portYIELD_FROM_ISR (yield);
  46409. 8013c0a: 693b ldr r3, [r7, #16]
  46410. 8013c0c: 2b00 cmp r3, #0
  46411. 8013c0e: d025 beq.n 8013c5c <osMessageQueuePut+0xb0>
  46412. 8013c10: 4b15 ldr r3, [pc, #84] @ (8013c68 <osMessageQueuePut+0xbc>)
  46413. 8013c12: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46414. 8013c16: 601a str r2, [r3, #0]
  46415. 8013c18: f3bf 8f4f dsb sy
  46416. 8013c1c: f3bf 8f6f isb sy
  46417. 8013c20: e01c b.n 8013c5c <osMessageQueuePut+0xb0>
  46418. }
  46419. }
  46420. }
  46421. else {
  46422. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  46423. 8013c22: 69bb ldr r3, [r7, #24]
  46424. 8013c24: 2b00 cmp r3, #0
  46425. 8013c26: d002 beq.n 8013c2e <osMessageQueuePut+0x82>
  46426. 8013c28: 68bb ldr r3, [r7, #8]
  46427. 8013c2a: 2b00 cmp r3, #0
  46428. 8013c2c: d103 bne.n 8013c36 <osMessageQueuePut+0x8a>
  46429. stat = osErrorParameter;
  46430. 8013c2e: f06f 0303 mvn.w r3, #3
  46431. 8013c32: 61fb str r3, [r7, #28]
  46432. 8013c34: e012 b.n 8013c5c <osMessageQueuePut+0xb0>
  46433. }
  46434. else {
  46435. if (xQueueSendToBack (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  46436. 8013c36: 2300 movs r3, #0
  46437. 8013c38: 683a ldr r2, [r7, #0]
  46438. 8013c3a: 68b9 ldr r1, [r7, #8]
  46439. 8013c3c: 69b8 ldr r0, [r7, #24]
  46440. 8013c3e: f000 fb59 bl 80142f4 <xQueueGenericSend>
  46441. 8013c42: 4603 mov r3, r0
  46442. 8013c44: 2b01 cmp r3, #1
  46443. 8013c46: d009 beq.n 8013c5c <osMessageQueuePut+0xb0>
  46444. if (timeout != 0U) {
  46445. 8013c48: 683b ldr r3, [r7, #0]
  46446. 8013c4a: 2b00 cmp r3, #0
  46447. 8013c4c: d003 beq.n 8013c56 <osMessageQueuePut+0xaa>
  46448. stat = osErrorTimeout;
  46449. 8013c4e: f06f 0301 mvn.w r3, #1
  46450. 8013c52: 61fb str r3, [r7, #28]
  46451. 8013c54: e002 b.n 8013c5c <osMessageQueuePut+0xb0>
  46452. } else {
  46453. stat = osErrorResource;
  46454. 8013c56: f06f 0302 mvn.w r3, #2
  46455. 8013c5a: 61fb str r3, [r7, #28]
  46456. }
  46457. }
  46458. }
  46459. }
  46460. return (stat);
  46461. 8013c5c: 69fb ldr r3, [r7, #28]
  46462. }
  46463. 8013c5e: 4618 mov r0, r3
  46464. 8013c60: 3720 adds r7, #32
  46465. 8013c62: 46bd mov sp, r7
  46466. 8013c64: bd80 pop {r7, pc}
  46467. 8013c66: bf00 nop
  46468. 8013c68: e000ed04 .word 0xe000ed04
  46469. 08013c6c <osMessageQueueGet>:
  46470. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
  46471. 8013c6c: b580 push {r7, lr}
  46472. 8013c6e: b088 sub sp, #32
  46473. 8013c70: af00 add r7, sp, #0
  46474. 8013c72: 60f8 str r0, [r7, #12]
  46475. 8013c74: 60b9 str r1, [r7, #8]
  46476. 8013c76: 607a str r2, [r7, #4]
  46477. 8013c78: 603b str r3, [r7, #0]
  46478. QueueHandle_t hQueue = (QueueHandle_t)mq_id;
  46479. 8013c7a: 68fb ldr r3, [r7, #12]
  46480. 8013c7c: 61bb str r3, [r7, #24]
  46481. osStatus_t stat;
  46482. BaseType_t yield;
  46483. (void)msg_prio; /* Message priority is ignored */
  46484. stat = osOK;
  46485. 8013c7e: 2300 movs r3, #0
  46486. 8013c80: 61fb str r3, [r7, #28]
  46487. __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  46488. 8013c82: f3ef 8305 mrs r3, IPSR
  46489. 8013c86: 617b str r3, [r7, #20]
  46490. return(result);
  46491. 8013c88: 697b ldr r3, [r7, #20]
  46492. if (IS_IRQ()) {
  46493. 8013c8a: 2b00 cmp r3, #0
  46494. 8013c8c: d028 beq.n 8013ce0 <osMessageQueueGet+0x74>
  46495. if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
  46496. 8013c8e: 69bb ldr r3, [r7, #24]
  46497. 8013c90: 2b00 cmp r3, #0
  46498. 8013c92: d005 beq.n 8013ca0 <osMessageQueueGet+0x34>
  46499. 8013c94: 68bb ldr r3, [r7, #8]
  46500. 8013c96: 2b00 cmp r3, #0
  46501. 8013c98: d002 beq.n 8013ca0 <osMessageQueueGet+0x34>
  46502. 8013c9a: 683b ldr r3, [r7, #0]
  46503. 8013c9c: 2b00 cmp r3, #0
  46504. 8013c9e: d003 beq.n 8013ca8 <osMessageQueueGet+0x3c>
  46505. stat = osErrorParameter;
  46506. 8013ca0: f06f 0303 mvn.w r3, #3
  46507. 8013ca4: 61fb str r3, [r7, #28]
  46508. 8013ca6: e037 b.n 8013d18 <osMessageQueueGet+0xac>
  46509. }
  46510. else {
  46511. yield = pdFALSE;
  46512. 8013ca8: 2300 movs r3, #0
  46513. 8013caa: 613b str r3, [r7, #16]
  46514. if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
  46515. 8013cac: f107 0310 add.w r3, r7, #16
  46516. 8013cb0: 461a mov r2, r3
  46517. 8013cb2: 68b9 ldr r1, [r7, #8]
  46518. 8013cb4: 69b8 ldr r0, [r7, #24]
  46519. 8013cb6: f000 feaf bl 8014a18 <xQueueReceiveFromISR>
  46520. 8013cba: 4603 mov r3, r0
  46521. 8013cbc: 2b01 cmp r3, #1
  46522. 8013cbe: d003 beq.n 8013cc8 <osMessageQueueGet+0x5c>
  46523. stat = osErrorResource;
  46524. 8013cc0: f06f 0302 mvn.w r3, #2
  46525. 8013cc4: 61fb str r3, [r7, #28]
  46526. 8013cc6: e027 b.n 8013d18 <osMessageQueueGet+0xac>
  46527. } else {
  46528. portYIELD_FROM_ISR (yield);
  46529. 8013cc8: 693b ldr r3, [r7, #16]
  46530. 8013cca: 2b00 cmp r3, #0
  46531. 8013ccc: d024 beq.n 8013d18 <osMessageQueueGet+0xac>
  46532. 8013cce: 4b15 ldr r3, [pc, #84] @ (8013d24 <osMessageQueueGet+0xb8>)
  46533. 8013cd0: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  46534. 8013cd4: 601a str r2, [r3, #0]
  46535. 8013cd6: f3bf 8f4f dsb sy
  46536. 8013cda: f3bf 8f6f isb sy
  46537. 8013cde: e01b b.n 8013d18 <osMessageQueueGet+0xac>
  46538. }
  46539. }
  46540. }
  46541. else {
  46542. if ((hQueue == NULL) || (msg_ptr == NULL)) {
  46543. 8013ce0: 69bb ldr r3, [r7, #24]
  46544. 8013ce2: 2b00 cmp r3, #0
  46545. 8013ce4: d002 beq.n 8013cec <osMessageQueueGet+0x80>
  46546. 8013ce6: 68bb ldr r3, [r7, #8]
  46547. 8013ce8: 2b00 cmp r3, #0
  46548. 8013cea: d103 bne.n 8013cf4 <osMessageQueueGet+0x88>
  46549. stat = osErrorParameter;
  46550. 8013cec: f06f 0303 mvn.w r3, #3
  46551. 8013cf0: 61fb str r3, [r7, #28]
  46552. 8013cf2: e011 b.n 8013d18 <osMessageQueueGet+0xac>
  46553. }
  46554. else {
  46555. if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
  46556. 8013cf4: 683a ldr r2, [r7, #0]
  46557. 8013cf6: 68b9 ldr r1, [r7, #8]
  46558. 8013cf8: 69b8 ldr r0, [r7, #24]
  46559. 8013cfa: f000 fc9b bl 8014634 <xQueueReceive>
  46560. 8013cfe: 4603 mov r3, r0
  46561. 8013d00: 2b01 cmp r3, #1
  46562. 8013d02: d009 beq.n 8013d18 <osMessageQueueGet+0xac>
  46563. if (timeout != 0U) {
  46564. 8013d04: 683b ldr r3, [r7, #0]
  46565. 8013d06: 2b00 cmp r3, #0
  46566. 8013d08: d003 beq.n 8013d12 <osMessageQueueGet+0xa6>
  46567. stat = osErrorTimeout;
  46568. 8013d0a: f06f 0301 mvn.w r3, #1
  46569. 8013d0e: 61fb str r3, [r7, #28]
  46570. 8013d10: e002 b.n 8013d18 <osMessageQueueGet+0xac>
  46571. } else {
  46572. stat = osErrorResource;
  46573. 8013d12: f06f 0302 mvn.w r3, #2
  46574. 8013d16: 61fb str r3, [r7, #28]
  46575. }
  46576. }
  46577. }
  46578. }
  46579. return (stat);
  46580. 8013d18: 69fb ldr r3, [r7, #28]
  46581. }
  46582. 8013d1a: 4618 mov r0, r3
  46583. 8013d1c: 3720 adds r7, #32
  46584. 8013d1e: 46bd mov sp, r7
  46585. 8013d20: bd80 pop {r7, pc}
  46586. 8013d22: bf00 nop
  46587. 8013d24: e000ed04 .word 0xe000ed04
  46588. 08013d28 <vApplicationGetIdleTaskMemory>:
  46589. /*
  46590. vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  46591. equals to 1 and is required for static memory allocation support.
  46592. */
  46593. __WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
  46594. 8013d28: b480 push {r7}
  46595. 8013d2a: b085 sub sp, #20
  46596. 8013d2c: af00 add r7, sp, #0
  46597. 8013d2e: 60f8 str r0, [r7, #12]
  46598. 8013d30: 60b9 str r1, [r7, #8]
  46599. 8013d32: 607a str r2, [r7, #4]
  46600. /* Idle task control block and stack */
  46601. static StaticTask_t Idle_TCB;
  46602. static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
  46603. *ppxIdleTaskTCBBuffer = &Idle_TCB;
  46604. 8013d34: 68fb ldr r3, [r7, #12]
  46605. 8013d36: 4a07 ldr r2, [pc, #28] @ (8013d54 <vApplicationGetIdleTaskMemory+0x2c>)
  46606. 8013d38: 601a str r2, [r3, #0]
  46607. *ppxIdleTaskStackBuffer = &Idle_Stack[0];
  46608. 8013d3a: 68bb ldr r3, [r7, #8]
  46609. 8013d3c: 4a06 ldr r2, [pc, #24] @ (8013d58 <vApplicationGetIdleTaskMemory+0x30>)
  46610. 8013d3e: 601a str r2, [r3, #0]
  46611. *pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
  46612. 8013d40: 687b ldr r3, [r7, #4]
  46613. 8013d42: f44f 7200 mov.w r2, #512 @ 0x200
  46614. 8013d46: 601a str r2, [r3, #0]
  46615. }
  46616. 8013d48: bf00 nop
  46617. 8013d4a: 3714 adds r7, #20
  46618. 8013d4c: 46bd mov sp, r7
  46619. 8013d4e: f85d 7b04 ldr.w r7, [sp], #4
  46620. 8013d52: 4770 bx lr
  46621. 8013d54: 240011c4 .word 0x240011c4
  46622. 8013d58: 2400126c .word 0x2400126c
  46623. 08013d5c <vApplicationGetTimerTaskMemory>:
  46624. /*
  46625. vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
  46626. equals to 1 and is required for static memory allocation support.
  46627. */
  46628. __WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
  46629. 8013d5c: b480 push {r7}
  46630. 8013d5e: b085 sub sp, #20
  46631. 8013d60: af00 add r7, sp, #0
  46632. 8013d62: 60f8 str r0, [r7, #12]
  46633. 8013d64: 60b9 str r1, [r7, #8]
  46634. 8013d66: 607a str r2, [r7, #4]
  46635. /* Timer task control block and stack */
  46636. static StaticTask_t Timer_TCB;
  46637. static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
  46638. *ppxTimerTaskTCBBuffer = &Timer_TCB;
  46639. 8013d68: 68fb ldr r3, [r7, #12]
  46640. 8013d6a: 4a07 ldr r2, [pc, #28] @ (8013d88 <vApplicationGetTimerTaskMemory+0x2c>)
  46641. 8013d6c: 601a str r2, [r3, #0]
  46642. *ppxTimerTaskStackBuffer = &Timer_Stack[0];
  46643. 8013d6e: 68bb ldr r3, [r7, #8]
  46644. 8013d70: 4a06 ldr r2, [pc, #24] @ (8013d8c <vApplicationGetTimerTaskMemory+0x30>)
  46645. 8013d72: 601a str r2, [r3, #0]
  46646. *pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
  46647. 8013d74: 687b ldr r3, [r7, #4]
  46648. 8013d76: f44f 6280 mov.w r2, #1024 @ 0x400
  46649. 8013d7a: 601a str r2, [r3, #0]
  46650. }
  46651. 8013d7c: bf00 nop
  46652. 8013d7e: 3714 adds r7, #20
  46653. 8013d80: 46bd mov sp, r7
  46654. 8013d82: f85d 7b04 ldr.w r7, [sp], #4
  46655. 8013d86: 4770 bx lr
  46656. 8013d88: 24001a6c .word 0x24001a6c
  46657. 8013d8c: 24001b14 .word 0x24001b14
  46658. 08013d90 <vListInitialise>:
  46659. /*-----------------------------------------------------------
  46660. * PUBLIC LIST API documented in list.h
  46661. *----------------------------------------------------------*/
  46662. void vListInitialise( List_t * const pxList )
  46663. {
  46664. 8013d90: b480 push {r7}
  46665. 8013d92: b083 sub sp, #12
  46666. 8013d94: af00 add r7, sp, #0
  46667. 8013d96: 6078 str r0, [r7, #4]
  46668. /* The list structure contains a list item which is used to mark the
  46669. end of the list. To initialise the list the list end is inserted
  46670. as the only list entry. */
  46671. pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  46672. 8013d98: 687b ldr r3, [r7, #4]
  46673. 8013d9a: f103 0208 add.w r2, r3, #8
  46674. 8013d9e: 687b ldr r3, [r7, #4]
  46675. 8013da0: 605a str r2, [r3, #4]
  46676. /* The list end value is the highest possible value in the list to
  46677. ensure it remains at the end of the list. */
  46678. pxList->xListEnd.xItemValue = portMAX_DELAY;
  46679. 8013da2: 687b ldr r3, [r7, #4]
  46680. 8013da4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  46681. 8013da8: 609a str r2, [r3, #8]
  46682. /* The list end next and previous pointers point to itself so we know
  46683. when the list is empty. */
  46684. pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  46685. 8013daa: 687b ldr r3, [r7, #4]
  46686. 8013dac: f103 0208 add.w r2, r3, #8
  46687. 8013db0: 687b ldr r3, [r7, #4]
  46688. 8013db2: 60da str r2, [r3, #12]
  46689. pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
  46690. 8013db4: 687b ldr r3, [r7, #4]
  46691. 8013db6: f103 0208 add.w r2, r3, #8
  46692. 8013dba: 687b ldr r3, [r7, #4]
  46693. 8013dbc: 611a str r2, [r3, #16]
  46694. pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
  46695. 8013dbe: 687b ldr r3, [r7, #4]
  46696. 8013dc0: 2200 movs r2, #0
  46697. 8013dc2: 601a str r2, [r3, #0]
  46698. /* Write known values into the list if
  46699. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  46700. listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
  46701. listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
  46702. }
  46703. 8013dc4: bf00 nop
  46704. 8013dc6: 370c adds r7, #12
  46705. 8013dc8: 46bd mov sp, r7
  46706. 8013dca: f85d 7b04 ldr.w r7, [sp], #4
  46707. 8013dce: 4770 bx lr
  46708. 08013dd0 <vListInitialiseItem>:
  46709. /*-----------------------------------------------------------*/
  46710. void vListInitialiseItem( ListItem_t * const pxItem )
  46711. {
  46712. 8013dd0: b480 push {r7}
  46713. 8013dd2: b083 sub sp, #12
  46714. 8013dd4: af00 add r7, sp, #0
  46715. 8013dd6: 6078 str r0, [r7, #4]
  46716. /* Make sure the list item is not recorded as being on a list. */
  46717. pxItem->pxContainer = NULL;
  46718. 8013dd8: 687b ldr r3, [r7, #4]
  46719. 8013dda: 2200 movs r2, #0
  46720. 8013ddc: 611a str r2, [r3, #16]
  46721. /* Write known values into the list item if
  46722. configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
  46723. listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  46724. listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
  46725. }
  46726. 8013dde: bf00 nop
  46727. 8013de0: 370c adds r7, #12
  46728. 8013de2: 46bd mov sp, r7
  46729. 8013de4: f85d 7b04 ldr.w r7, [sp], #4
  46730. 8013de8: 4770 bx lr
  46731. 08013dea <vListInsertEnd>:
  46732. /*-----------------------------------------------------------*/
  46733. void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
  46734. {
  46735. 8013dea: b480 push {r7}
  46736. 8013dec: b085 sub sp, #20
  46737. 8013dee: af00 add r7, sp, #0
  46738. 8013df0: 6078 str r0, [r7, #4]
  46739. 8013df2: 6039 str r1, [r7, #0]
  46740. ListItem_t * const pxIndex = pxList->pxIndex;
  46741. 8013df4: 687b ldr r3, [r7, #4]
  46742. 8013df6: 685b ldr r3, [r3, #4]
  46743. 8013df8: 60fb str r3, [r7, #12]
  46744. listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
  46745. /* Insert a new list item into pxList, but rather than sort the list,
  46746. makes the new list item the last item to be removed by a call to
  46747. listGET_OWNER_OF_NEXT_ENTRY(). */
  46748. pxNewListItem->pxNext = pxIndex;
  46749. 8013dfa: 683b ldr r3, [r7, #0]
  46750. 8013dfc: 68fa ldr r2, [r7, #12]
  46751. 8013dfe: 605a str r2, [r3, #4]
  46752. pxNewListItem->pxPrevious = pxIndex->pxPrevious;
  46753. 8013e00: 68fb ldr r3, [r7, #12]
  46754. 8013e02: 689a ldr r2, [r3, #8]
  46755. 8013e04: 683b ldr r3, [r7, #0]
  46756. 8013e06: 609a str r2, [r3, #8]
  46757. /* Only used during decision coverage testing. */
  46758. mtCOVERAGE_TEST_DELAY();
  46759. pxIndex->pxPrevious->pxNext = pxNewListItem;
  46760. 8013e08: 68fb ldr r3, [r7, #12]
  46761. 8013e0a: 689b ldr r3, [r3, #8]
  46762. 8013e0c: 683a ldr r2, [r7, #0]
  46763. 8013e0e: 605a str r2, [r3, #4]
  46764. pxIndex->pxPrevious = pxNewListItem;
  46765. 8013e10: 68fb ldr r3, [r7, #12]
  46766. 8013e12: 683a ldr r2, [r7, #0]
  46767. 8013e14: 609a str r2, [r3, #8]
  46768. /* Remember which list the item is in. */
  46769. pxNewListItem->pxContainer = pxList;
  46770. 8013e16: 683b ldr r3, [r7, #0]
  46771. 8013e18: 687a ldr r2, [r7, #4]
  46772. 8013e1a: 611a str r2, [r3, #16]
  46773. ( pxList->uxNumberOfItems )++;
  46774. 8013e1c: 687b ldr r3, [r7, #4]
  46775. 8013e1e: 681b ldr r3, [r3, #0]
  46776. 8013e20: 1c5a adds r2, r3, #1
  46777. 8013e22: 687b ldr r3, [r7, #4]
  46778. 8013e24: 601a str r2, [r3, #0]
  46779. }
  46780. 8013e26: bf00 nop
  46781. 8013e28: 3714 adds r7, #20
  46782. 8013e2a: 46bd mov sp, r7
  46783. 8013e2c: f85d 7b04 ldr.w r7, [sp], #4
  46784. 8013e30: 4770 bx lr
  46785. 08013e32 <vListInsert>:
  46786. /*-----------------------------------------------------------*/
  46787. void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
  46788. {
  46789. 8013e32: b480 push {r7}
  46790. 8013e34: b085 sub sp, #20
  46791. 8013e36: af00 add r7, sp, #0
  46792. 8013e38: 6078 str r0, [r7, #4]
  46793. 8013e3a: 6039 str r1, [r7, #0]
  46794. ListItem_t *pxIterator;
  46795. const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
  46796. 8013e3c: 683b ldr r3, [r7, #0]
  46797. 8013e3e: 681b ldr r3, [r3, #0]
  46798. 8013e40: 60bb str r3, [r7, #8]
  46799. new list item should be placed after it. This ensures that TCBs which are
  46800. stored in ready lists (all of which have the same xItemValue value) get a
  46801. share of the CPU. However, if the xItemValue is the same as the back marker
  46802. the iteration loop below will not end. Therefore the value is checked
  46803. first, and the algorithm slightly modified if necessary. */
  46804. if( xValueOfInsertion == portMAX_DELAY )
  46805. 8013e42: 68bb ldr r3, [r7, #8]
  46806. 8013e44: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  46807. 8013e48: d103 bne.n 8013e52 <vListInsert+0x20>
  46808. {
  46809. pxIterator = pxList->xListEnd.pxPrevious;
  46810. 8013e4a: 687b ldr r3, [r7, #4]
  46811. 8013e4c: 691b ldr r3, [r3, #16]
  46812. 8013e4e: 60fb str r3, [r7, #12]
  46813. 8013e50: e00c b.n 8013e6c <vListInsert+0x3a>
  46814. 4) Using a queue or semaphore before it has been initialised or
  46815. before the scheduler has been started (are interrupts firing
  46816. before vTaskStartScheduler() has been called?).
  46817. **********************************************************************/
  46818. for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */
  46819. 8013e52: 687b ldr r3, [r7, #4]
  46820. 8013e54: 3308 adds r3, #8
  46821. 8013e56: 60fb str r3, [r7, #12]
  46822. 8013e58: e002 b.n 8013e60 <vListInsert+0x2e>
  46823. 8013e5a: 68fb ldr r3, [r7, #12]
  46824. 8013e5c: 685b ldr r3, [r3, #4]
  46825. 8013e5e: 60fb str r3, [r7, #12]
  46826. 8013e60: 68fb ldr r3, [r7, #12]
  46827. 8013e62: 685b ldr r3, [r3, #4]
  46828. 8013e64: 681b ldr r3, [r3, #0]
  46829. 8013e66: 68ba ldr r2, [r7, #8]
  46830. 8013e68: 429a cmp r2, r3
  46831. 8013e6a: d2f6 bcs.n 8013e5a <vListInsert+0x28>
  46832. /* There is nothing to do here, just iterating to the wanted
  46833. insertion position. */
  46834. }
  46835. }
  46836. pxNewListItem->pxNext = pxIterator->pxNext;
  46837. 8013e6c: 68fb ldr r3, [r7, #12]
  46838. 8013e6e: 685a ldr r2, [r3, #4]
  46839. 8013e70: 683b ldr r3, [r7, #0]
  46840. 8013e72: 605a str r2, [r3, #4]
  46841. pxNewListItem->pxNext->pxPrevious = pxNewListItem;
  46842. 8013e74: 683b ldr r3, [r7, #0]
  46843. 8013e76: 685b ldr r3, [r3, #4]
  46844. 8013e78: 683a ldr r2, [r7, #0]
  46845. 8013e7a: 609a str r2, [r3, #8]
  46846. pxNewListItem->pxPrevious = pxIterator;
  46847. 8013e7c: 683b ldr r3, [r7, #0]
  46848. 8013e7e: 68fa ldr r2, [r7, #12]
  46849. 8013e80: 609a str r2, [r3, #8]
  46850. pxIterator->pxNext = pxNewListItem;
  46851. 8013e82: 68fb ldr r3, [r7, #12]
  46852. 8013e84: 683a ldr r2, [r7, #0]
  46853. 8013e86: 605a str r2, [r3, #4]
  46854. /* Remember which list the item is in. This allows fast removal of the
  46855. item later. */
  46856. pxNewListItem->pxContainer = pxList;
  46857. 8013e88: 683b ldr r3, [r7, #0]
  46858. 8013e8a: 687a ldr r2, [r7, #4]
  46859. 8013e8c: 611a str r2, [r3, #16]
  46860. ( pxList->uxNumberOfItems )++;
  46861. 8013e8e: 687b ldr r3, [r7, #4]
  46862. 8013e90: 681b ldr r3, [r3, #0]
  46863. 8013e92: 1c5a adds r2, r3, #1
  46864. 8013e94: 687b ldr r3, [r7, #4]
  46865. 8013e96: 601a str r2, [r3, #0]
  46866. }
  46867. 8013e98: bf00 nop
  46868. 8013e9a: 3714 adds r7, #20
  46869. 8013e9c: 46bd mov sp, r7
  46870. 8013e9e: f85d 7b04 ldr.w r7, [sp], #4
  46871. 8013ea2: 4770 bx lr
  46872. 08013ea4 <uxListRemove>:
  46873. /*-----------------------------------------------------------*/
  46874. UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
  46875. {
  46876. 8013ea4: b480 push {r7}
  46877. 8013ea6: b085 sub sp, #20
  46878. 8013ea8: af00 add r7, sp, #0
  46879. 8013eaa: 6078 str r0, [r7, #4]
  46880. /* The list item knows which list it is in. Obtain the list from the list
  46881. item. */
  46882. List_t * const pxList = pxItemToRemove->pxContainer;
  46883. 8013eac: 687b ldr r3, [r7, #4]
  46884. 8013eae: 691b ldr r3, [r3, #16]
  46885. 8013eb0: 60fb str r3, [r7, #12]
  46886. pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
  46887. 8013eb2: 687b ldr r3, [r7, #4]
  46888. 8013eb4: 685b ldr r3, [r3, #4]
  46889. 8013eb6: 687a ldr r2, [r7, #4]
  46890. 8013eb8: 6892 ldr r2, [r2, #8]
  46891. 8013eba: 609a str r2, [r3, #8]
  46892. pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
  46893. 8013ebc: 687b ldr r3, [r7, #4]
  46894. 8013ebe: 689b ldr r3, [r3, #8]
  46895. 8013ec0: 687a ldr r2, [r7, #4]
  46896. 8013ec2: 6852 ldr r2, [r2, #4]
  46897. 8013ec4: 605a str r2, [r3, #4]
  46898. /* Only used during decision coverage testing. */
  46899. mtCOVERAGE_TEST_DELAY();
  46900. /* Make sure the index is left pointing to a valid item. */
  46901. if( pxList->pxIndex == pxItemToRemove )
  46902. 8013ec6: 68fb ldr r3, [r7, #12]
  46903. 8013ec8: 685b ldr r3, [r3, #4]
  46904. 8013eca: 687a ldr r2, [r7, #4]
  46905. 8013ecc: 429a cmp r2, r3
  46906. 8013ece: d103 bne.n 8013ed8 <uxListRemove+0x34>
  46907. {
  46908. pxList->pxIndex = pxItemToRemove->pxPrevious;
  46909. 8013ed0: 687b ldr r3, [r7, #4]
  46910. 8013ed2: 689a ldr r2, [r3, #8]
  46911. 8013ed4: 68fb ldr r3, [r7, #12]
  46912. 8013ed6: 605a str r2, [r3, #4]
  46913. else
  46914. {
  46915. mtCOVERAGE_TEST_MARKER();
  46916. }
  46917. pxItemToRemove->pxContainer = NULL;
  46918. 8013ed8: 687b ldr r3, [r7, #4]
  46919. 8013eda: 2200 movs r2, #0
  46920. 8013edc: 611a str r2, [r3, #16]
  46921. ( pxList->uxNumberOfItems )--;
  46922. 8013ede: 68fb ldr r3, [r7, #12]
  46923. 8013ee0: 681b ldr r3, [r3, #0]
  46924. 8013ee2: 1e5a subs r2, r3, #1
  46925. 8013ee4: 68fb ldr r3, [r7, #12]
  46926. 8013ee6: 601a str r2, [r3, #0]
  46927. return pxList->uxNumberOfItems;
  46928. 8013ee8: 68fb ldr r3, [r7, #12]
  46929. 8013eea: 681b ldr r3, [r3, #0]
  46930. }
  46931. 8013eec: 4618 mov r0, r3
  46932. 8013eee: 3714 adds r7, #20
  46933. 8013ef0: 46bd mov sp, r7
  46934. 8013ef2: f85d 7b04 ldr.w r7, [sp], #4
  46935. 8013ef6: 4770 bx lr
  46936. 08013ef8 <xQueueGenericReset>:
  46937. } \
  46938. taskEXIT_CRITICAL()
  46939. /*-----------------------------------------------------------*/
  46940. BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
  46941. {
  46942. 8013ef8: b580 push {r7, lr}
  46943. 8013efa: b084 sub sp, #16
  46944. 8013efc: af00 add r7, sp, #0
  46945. 8013efe: 6078 str r0, [r7, #4]
  46946. 8013f00: 6039 str r1, [r7, #0]
  46947. Queue_t * const pxQueue = xQueue;
  46948. 8013f02: 687b ldr r3, [r7, #4]
  46949. 8013f04: 60fb str r3, [r7, #12]
  46950. configASSERT( pxQueue );
  46951. 8013f06: 68fb ldr r3, [r7, #12]
  46952. 8013f08: 2b00 cmp r3, #0
  46953. 8013f0a: d10b bne.n 8013f24 <xQueueGenericReset+0x2c>
  46954. portFORCE_INLINE static void vPortRaiseBASEPRI( void )
  46955. {
  46956. uint32_t ulNewBASEPRI;
  46957. __asm volatile
  46958. 8013f0c: f04f 0350 mov.w r3, #80 @ 0x50
  46959. 8013f10: f383 8811 msr BASEPRI, r3
  46960. 8013f14: f3bf 8f6f isb sy
  46961. 8013f18: f3bf 8f4f dsb sy
  46962. 8013f1c: 60bb str r3, [r7, #8]
  46963. " msr basepri, %0 \n" \
  46964. " isb \n" \
  46965. " dsb \n" \
  46966. :"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  46967. );
  46968. }
  46969. 8013f1e: bf00 nop
  46970. 8013f20: bf00 nop
  46971. 8013f22: e7fd b.n 8013f20 <xQueueGenericReset+0x28>
  46972. taskENTER_CRITICAL();
  46973. 8013f24: f003 f960 bl 80171e8 <vPortEnterCritical>
  46974. {
  46975. pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  46976. 8013f28: 68fb ldr r3, [r7, #12]
  46977. 8013f2a: 681a ldr r2, [r3, #0]
  46978. 8013f2c: 68fb ldr r3, [r7, #12]
  46979. 8013f2e: 6bdb ldr r3, [r3, #60] @ 0x3c
  46980. 8013f30: 68f9 ldr r1, [r7, #12]
  46981. 8013f32: 6c09 ldr r1, [r1, #64] @ 0x40
  46982. 8013f34: fb01 f303 mul.w r3, r1, r3
  46983. 8013f38: 441a add r2, r3
  46984. 8013f3a: 68fb ldr r3, [r7, #12]
  46985. 8013f3c: 609a str r2, [r3, #8]
  46986. pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
  46987. 8013f3e: 68fb ldr r3, [r7, #12]
  46988. 8013f40: 2200 movs r2, #0
  46989. 8013f42: 639a str r2, [r3, #56] @ 0x38
  46990. pxQueue->pcWriteTo = pxQueue->pcHead;
  46991. 8013f44: 68fb ldr r3, [r7, #12]
  46992. 8013f46: 681a ldr r2, [r3, #0]
  46993. 8013f48: 68fb ldr r3, [r7, #12]
  46994. 8013f4a: 605a str r2, [r3, #4]
  46995. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  46996. 8013f4c: 68fb ldr r3, [r7, #12]
  46997. 8013f4e: 681a ldr r2, [r3, #0]
  46998. 8013f50: 68fb ldr r3, [r7, #12]
  46999. 8013f52: 6bdb ldr r3, [r3, #60] @ 0x3c
  47000. 8013f54: 3b01 subs r3, #1
  47001. 8013f56: 68f9 ldr r1, [r7, #12]
  47002. 8013f58: 6c09 ldr r1, [r1, #64] @ 0x40
  47003. 8013f5a: fb01 f303 mul.w r3, r1, r3
  47004. 8013f5e: 441a add r2, r3
  47005. 8013f60: 68fb ldr r3, [r7, #12]
  47006. 8013f62: 60da str r2, [r3, #12]
  47007. pxQueue->cRxLock = queueUNLOCKED;
  47008. 8013f64: 68fb ldr r3, [r7, #12]
  47009. 8013f66: 22ff movs r2, #255 @ 0xff
  47010. 8013f68: f883 2044 strb.w r2, [r3, #68] @ 0x44
  47011. pxQueue->cTxLock = queueUNLOCKED;
  47012. 8013f6c: 68fb ldr r3, [r7, #12]
  47013. 8013f6e: 22ff movs r2, #255 @ 0xff
  47014. 8013f70: f883 2045 strb.w r2, [r3, #69] @ 0x45
  47015. if( xNewQueue == pdFALSE )
  47016. 8013f74: 683b ldr r3, [r7, #0]
  47017. 8013f76: 2b00 cmp r3, #0
  47018. 8013f78: d114 bne.n 8013fa4 <xQueueGenericReset+0xac>
  47019. /* If there are tasks blocked waiting to read from the queue, then
  47020. the tasks will remain blocked as after this function exits the queue
  47021. will still be empty. If there are tasks blocked waiting to write to
  47022. the queue, then one should be unblocked as after this function exits
  47023. it will be possible to write to it. */
  47024. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  47025. 8013f7a: 68fb ldr r3, [r7, #12]
  47026. 8013f7c: 691b ldr r3, [r3, #16]
  47027. 8013f7e: 2b00 cmp r3, #0
  47028. 8013f80: d01a beq.n 8013fb8 <xQueueGenericReset+0xc0>
  47029. {
  47030. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  47031. 8013f82: 68fb ldr r3, [r7, #12]
  47032. 8013f84: 3310 adds r3, #16
  47033. 8013f86: 4618 mov r0, r3
  47034. 8013f88: f001 fdac bl 8015ae4 <xTaskRemoveFromEventList>
  47035. 8013f8c: 4603 mov r3, r0
  47036. 8013f8e: 2b00 cmp r3, #0
  47037. 8013f90: d012 beq.n 8013fb8 <xQueueGenericReset+0xc0>
  47038. {
  47039. queueYIELD_IF_USING_PREEMPTION();
  47040. 8013f92: 4b0d ldr r3, [pc, #52] @ (8013fc8 <xQueueGenericReset+0xd0>)
  47041. 8013f94: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47042. 8013f98: 601a str r2, [r3, #0]
  47043. 8013f9a: f3bf 8f4f dsb sy
  47044. 8013f9e: f3bf 8f6f isb sy
  47045. 8013fa2: e009 b.n 8013fb8 <xQueueGenericReset+0xc0>
  47046. }
  47047. }
  47048. else
  47049. {
  47050. /* Ensure the event queues start in the correct state. */
  47051. vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
  47052. 8013fa4: 68fb ldr r3, [r7, #12]
  47053. 8013fa6: 3310 adds r3, #16
  47054. 8013fa8: 4618 mov r0, r3
  47055. 8013faa: f7ff fef1 bl 8013d90 <vListInitialise>
  47056. vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
  47057. 8013fae: 68fb ldr r3, [r7, #12]
  47058. 8013fb0: 3324 adds r3, #36 @ 0x24
  47059. 8013fb2: 4618 mov r0, r3
  47060. 8013fb4: f7ff feec bl 8013d90 <vListInitialise>
  47061. }
  47062. }
  47063. taskEXIT_CRITICAL();
  47064. 8013fb8: f003 f948 bl 801724c <vPortExitCritical>
  47065. /* A value is returned for calling semantic consistency with previous
  47066. versions. */
  47067. return pdPASS;
  47068. 8013fbc: 2301 movs r3, #1
  47069. }
  47070. 8013fbe: 4618 mov r0, r3
  47071. 8013fc0: 3710 adds r7, #16
  47072. 8013fc2: 46bd mov sp, r7
  47073. 8013fc4: bd80 pop {r7, pc}
  47074. 8013fc6: bf00 nop
  47075. 8013fc8: e000ed04 .word 0xe000ed04
  47076. 08013fcc <xQueueGenericCreateStatic>:
  47077. /*-----------------------------------------------------------*/
  47078. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47079. QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
  47080. {
  47081. 8013fcc: b580 push {r7, lr}
  47082. 8013fce: b08e sub sp, #56 @ 0x38
  47083. 8013fd0: af02 add r7, sp, #8
  47084. 8013fd2: 60f8 str r0, [r7, #12]
  47085. 8013fd4: 60b9 str r1, [r7, #8]
  47086. 8013fd6: 607a str r2, [r7, #4]
  47087. 8013fd8: 603b str r3, [r7, #0]
  47088. Queue_t *pxNewQueue;
  47089. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47090. 8013fda: 68fb ldr r3, [r7, #12]
  47091. 8013fdc: 2b00 cmp r3, #0
  47092. 8013fde: d10b bne.n 8013ff8 <xQueueGenericCreateStatic+0x2c>
  47093. __asm volatile
  47094. 8013fe0: f04f 0350 mov.w r3, #80 @ 0x50
  47095. 8013fe4: f383 8811 msr BASEPRI, r3
  47096. 8013fe8: f3bf 8f6f isb sy
  47097. 8013fec: f3bf 8f4f dsb sy
  47098. 8013ff0: 62bb str r3, [r7, #40] @ 0x28
  47099. }
  47100. 8013ff2: bf00 nop
  47101. 8013ff4: bf00 nop
  47102. 8013ff6: e7fd b.n 8013ff4 <xQueueGenericCreateStatic+0x28>
  47103. /* The StaticQueue_t structure and the queue storage area must be
  47104. supplied. */
  47105. configASSERT( pxStaticQueue != NULL );
  47106. 8013ff8: 683b ldr r3, [r7, #0]
  47107. 8013ffa: 2b00 cmp r3, #0
  47108. 8013ffc: d10b bne.n 8014016 <xQueueGenericCreateStatic+0x4a>
  47109. __asm volatile
  47110. 8013ffe: f04f 0350 mov.w r3, #80 @ 0x50
  47111. 8014002: f383 8811 msr BASEPRI, r3
  47112. 8014006: f3bf 8f6f isb sy
  47113. 801400a: f3bf 8f4f dsb sy
  47114. 801400e: 627b str r3, [r7, #36] @ 0x24
  47115. }
  47116. 8014010: bf00 nop
  47117. 8014012: bf00 nop
  47118. 8014014: e7fd b.n 8014012 <xQueueGenericCreateStatic+0x46>
  47119. /* A queue storage area should be provided if the item size is not 0, and
  47120. should not be provided if the item size is 0. */
  47121. configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
  47122. 8014016: 687b ldr r3, [r7, #4]
  47123. 8014018: 2b00 cmp r3, #0
  47124. 801401a: d002 beq.n 8014022 <xQueueGenericCreateStatic+0x56>
  47125. 801401c: 68bb ldr r3, [r7, #8]
  47126. 801401e: 2b00 cmp r3, #0
  47127. 8014020: d001 beq.n 8014026 <xQueueGenericCreateStatic+0x5a>
  47128. 8014022: 2301 movs r3, #1
  47129. 8014024: e000 b.n 8014028 <xQueueGenericCreateStatic+0x5c>
  47130. 8014026: 2300 movs r3, #0
  47131. 8014028: 2b00 cmp r3, #0
  47132. 801402a: d10b bne.n 8014044 <xQueueGenericCreateStatic+0x78>
  47133. __asm volatile
  47134. 801402c: f04f 0350 mov.w r3, #80 @ 0x50
  47135. 8014030: f383 8811 msr BASEPRI, r3
  47136. 8014034: f3bf 8f6f isb sy
  47137. 8014038: f3bf 8f4f dsb sy
  47138. 801403c: 623b str r3, [r7, #32]
  47139. }
  47140. 801403e: bf00 nop
  47141. 8014040: bf00 nop
  47142. 8014042: e7fd b.n 8014040 <xQueueGenericCreateStatic+0x74>
  47143. configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
  47144. 8014044: 687b ldr r3, [r7, #4]
  47145. 8014046: 2b00 cmp r3, #0
  47146. 8014048: d102 bne.n 8014050 <xQueueGenericCreateStatic+0x84>
  47147. 801404a: 68bb ldr r3, [r7, #8]
  47148. 801404c: 2b00 cmp r3, #0
  47149. 801404e: d101 bne.n 8014054 <xQueueGenericCreateStatic+0x88>
  47150. 8014050: 2301 movs r3, #1
  47151. 8014052: e000 b.n 8014056 <xQueueGenericCreateStatic+0x8a>
  47152. 8014054: 2300 movs r3, #0
  47153. 8014056: 2b00 cmp r3, #0
  47154. 8014058: d10b bne.n 8014072 <xQueueGenericCreateStatic+0xa6>
  47155. __asm volatile
  47156. 801405a: f04f 0350 mov.w r3, #80 @ 0x50
  47157. 801405e: f383 8811 msr BASEPRI, r3
  47158. 8014062: f3bf 8f6f isb sy
  47159. 8014066: f3bf 8f4f dsb sy
  47160. 801406a: 61fb str r3, [r7, #28]
  47161. }
  47162. 801406c: bf00 nop
  47163. 801406e: bf00 nop
  47164. 8014070: e7fd b.n 801406e <xQueueGenericCreateStatic+0xa2>
  47165. #if( configASSERT_DEFINED == 1 )
  47166. {
  47167. /* Sanity check that the size of the structure used to declare a
  47168. variable of type StaticQueue_t or StaticSemaphore_t equals the size of
  47169. the real queue and semaphore structures. */
  47170. volatile size_t xSize = sizeof( StaticQueue_t );
  47171. 8014072: 2350 movs r3, #80 @ 0x50
  47172. 8014074: 617b str r3, [r7, #20]
  47173. configASSERT( xSize == sizeof( Queue_t ) );
  47174. 8014076: 697b ldr r3, [r7, #20]
  47175. 8014078: 2b50 cmp r3, #80 @ 0x50
  47176. 801407a: d00b beq.n 8014094 <xQueueGenericCreateStatic+0xc8>
  47177. __asm volatile
  47178. 801407c: f04f 0350 mov.w r3, #80 @ 0x50
  47179. 8014080: f383 8811 msr BASEPRI, r3
  47180. 8014084: f3bf 8f6f isb sy
  47181. 8014088: f3bf 8f4f dsb sy
  47182. 801408c: 61bb str r3, [r7, #24]
  47183. }
  47184. 801408e: bf00 nop
  47185. 8014090: bf00 nop
  47186. 8014092: e7fd b.n 8014090 <xQueueGenericCreateStatic+0xc4>
  47187. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  47188. 8014094: 697b ldr r3, [r7, #20]
  47189. #endif /* configASSERT_DEFINED */
  47190. /* The address of a statically allocated queue was passed in, use it.
  47191. The address of a statically allocated storage area was also passed in
  47192. but is already set. */
  47193. pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
  47194. 8014096: 683b ldr r3, [r7, #0]
  47195. 8014098: 62fb str r3, [r7, #44] @ 0x2c
  47196. if( pxNewQueue != NULL )
  47197. 801409a: 6afb ldr r3, [r7, #44] @ 0x2c
  47198. 801409c: 2b00 cmp r3, #0
  47199. 801409e: d00d beq.n 80140bc <xQueueGenericCreateStatic+0xf0>
  47200. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47201. {
  47202. /* Queues can be allocated wither statically or dynamically, so
  47203. note this queue was allocated statically in case the queue is
  47204. later deleted. */
  47205. pxNewQueue->ucStaticallyAllocated = pdTRUE;
  47206. 80140a0: 6afb ldr r3, [r7, #44] @ 0x2c
  47207. 80140a2: 2201 movs r2, #1
  47208. 80140a4: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47209. }
  47210. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  47211. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47212. 80140a8: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
  47213. 80140ac: 6afb ldr r3, [r7, #44] @ 0x2c
  47214. 80140ae: 9300 str r3, [sp, #0]
  47215. 80140b0: 4613 mov r3, r2
  47216. 80140b2: 687a ldr r2, [r7, #4]
  47217. 80140b4: 68b9 ldr r1, [r7, #8]
  47218. 80140b6: 68f8 ldr r0, [r7, #12]
  47219. 80140b8: f000 f840 bl 801413c <prvInitialiseNewQueue>
  47220. {
  47221. traceQUEUE_CREATE_FAILED( ucQueueType );
  47222. mtCOVERAGE_TEST_MARKER();
  47223. }
  47224. return pxNewQueue;
  47225. 80140bc: 6afb ldr r3, [r7, #44] @ 0x2c
  47226. }
  47227. 80140be: 4618 mov r0, r3
  47228. 80140c0: 3730 adds r7, #48 @ 0x30
  47229. 80140c2: 46bd mov sp, r7
  47230. 80140c4: bd80 pop {r7, pc}
  47231. 080140c6 <xQueueGenericCreate>:
  47232. /*-----------------------------------------------------------*/
  47233. #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  47234. QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
  47235. {
  47236. 80140c6: b580 push {r7, lr}
  47237. 80140c8: b08a sub sp, #40 @ 0x28
  47238. 80140ca: af02 add r7, sp, #8
  47239. 80140cc: 60f8 str r0, [r7, #12]
  47240. 80140ce: 60b9 str r1, [r7, #8]
  47241. 80140d0: 4613 mov r3, r2
  47242. 80140d2: 71fb strb r3, [r7, #7]
  47243. Queue_t *pxNewQueue;
  47244. size_t xQueueSizeInBytes;
  47245. uint8_t *pucQueueStorage;
  47246. configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
  47247. 80140d4: 68fb ldr r3, [r7, #12]
  47248. 80140d6: 2b00 cmp r3, #0
  47249. 80140d8: d10b bne.n 80140f2 <xQueueGenericCreate+0x2c>
  47250. __asm volatile
  47251. 80140da: f04f 0350 mov.w r3, #80 @ 0x50
  47252. 80140de: f383 8811 msr BASEPRI, r3
  47253. 80140e2: f3bf 8f6f isb sy
  47254. 80140e6: f3bf 8f4f dsb sy
  47255. 80140ea: 613b str r3, [r7, #16]
  47256. }
  47257. 80140ec: bf00 nop
  47258. 80140ee: bf00 nop
  47259. 80140f0: e7fd b.n 80140ee <xQueueGenericCreate+0x28>
  47260. /* Allocate enough space to hold the maximum number of items that
  47261. can be in the queue at any time. It is valid for uxItemSize to be
  47262. zero in the case the queue is used as a semaphore. */
  47263. xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  47264. 80140f2: 68fb ldr r3, [r7, #12]
  47265. 80140f4: 68ba ldr r2, [r7, #8]
  47266. 80140f6: fb02 f303 mul.w r3, r2, r3
  47267. 80140fa: 61fb str r3, [r7, #28]
  47268. alignment requirements of the Queue_t structure - which in this case
  47269. is an int8_t *. Therefore, whenever the stack alignment requirements
  47270. are greater than or equal to the pointer to char requirements the cast
  47271. is safe. In other cases alignment requirements are not strict (one or
  47272. two bytes). */
  47273. pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
  47274. 80140fc: 69fb ldr r3, [r7, #28]
  47275. 80140fe: 3350 adds r3, #80 @ 0x50
  47276. 8014100: 4618 mov r0, r3
  47277. 8014102: f003 f993 bl 801742c <pvPortMalloc>
  47278. 8014106: 61b8 str r0, [r7, #24]
  47279. if( pxNewQueue != NULL )
  47280. 8014108: 69bb ldr r3, [r7, #24]
  47281. 801410a: 2b00 cmp r3, #0
  47282. 801410c: d011 beq.n 8014132 <xQueueGenericCreate+0x6c>
  47283. {
  47284. /* Jump past the queue structure to find the location of the queue
  47285. storage area. */
  47286. pucQueueStorage = ( uint8_t * ) pxNewQueue;
  47287. 801410e: 69bb ldr r3, [r7, #24]
  47288. 8014110: 617b str r3, [r7, #20]
  47289. pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
  47290. 8014112: 697b ldr r3, [r7, #20]
  47291. 8014114: 3350 adds r3, #80 @ 0x50
  47292. 8014116: 617b str r3, [r7, #20]
  47293. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  47294. {
  47295. /* Queues can be created either statically or dynamically, so
  47296. note this task was created dynamically in case it is later
  47297. deleted. */
  47298. pxNewQueue->ucStaticallyAllocated = pdFALSE;
  47299. 8014118: 69bb ldr r3, [r7, #24]
  47300. 801411a: 2200 movs r2, #0
  47301. 801411c: f883 2046 strb.w r2, [r3, #70] @ 0x46
  47302. }
  47303. #endif /* configSUPPORT_STATIC_ALLOCATION */
  47304. prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
  47305. 8014120: 79fa ldrb r2, [r7, #7]
  47306. 8014122: 69bb ldr r3, [r7, #24]
  47307. 8014124: 9300 str r3, [sp, #0]
  47308. 8014126: 4613 mov r3, r2
  47309. 8014128: 697a ldr r2, [r7, #20]
  47310. 801412a: 68b9 ldr r1, [r7, #8]
  47311. 801412c: 68f8 ldr r0, [r7, #12]
  47312. 801412e: f000 f805 bl 801413c <prvInitialiseNewQueue>
  47313. {
  47314. traceQUEUE_CREATE_FAILED( ucQueueType );
  47315. mtCOVERAGE_TEST_MARKER();
  47316. }
  47317. return pxNewQueue;
  47318. 8014132: 69bb ldr r3, [r7, #24]
  47319. }
  47320. 8014134: 4618 mov r0, r3
  47321. 8014136: 3720 adds r7, #32
  47322. 8014138: 46bd mov sp, r7
  47323. 801413a: bd80 pop {r7, pc}
  47324. 0801413c <prvInitialiseNewQueue>:
  47325. #endif /* configSUPPORT_STATIC_ALLOCATION */
  47326. /*-----------------------------------------------------------*/
  47327. static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
  47328. {
  47329. 801413c: b580 push {r7, lr}
  47330. 801413e: b084 sub sp, #16
  47331. 8014140: af00 add r7, sp, #0
  47332. 8014142: 60f8 str r0, [r7, #12]
  47333. 8014144: 60b9 str r1, [r7, #8]
  47334. 8014146: 607a str r2, [r7, #4]
  47335. 8014148: 70fb strb r3, [r7, #3]
  47336. /* Remove compiler warnings about unused parameters should
  47337. configUSE_TRACE_FACILITY not be set to 1. */
  47338. ( void ) ucQueueType;
  47339. if( uxItemSize == ( UBaseType_t ) 0 )
  47340. 801414a: 68bb ldr r3, [r7, #8]
  47341. 801414c: 2b00 cmp r3, #0
  47342. 801414e: d103 bne.n 8014158 <prvInitialiseNewQueue+0x1c>
  47343. {
  47344. /* No RAM was allocated for the queue storage area, but PC head cannot
  47345. be set to NULL because NULL is used as a key to say the queue is used as
  47346. a mutex. Therefore just set pcHead to point to the queue as a benign
  47347. value that is known to be within the memory map. */
  47348. pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
  47349. 8014150: 69bb ldr r3, [r7, #24]
  47350. 8014152: 69ba ldr r2, [r7, #24]
  47351. 8014154: 601a str r2, [r3, #0]
  47352. 8014156: e002 b.n 801415e <prvInitialiseNewQueue+0x22>
  47353. }
  47354. else
  47355. {
  47356. /* Set the head to the start of the queue storage area. */
  47357. pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
  47358. 8014158: 69bb ldr r3, [r7, #24]
  47359. 801415a: 687a ldr r2, [r7, #4]
  47360. 801415c: 601a str r2, [r3, #0]
  47361. }
  47362. /* Initialise the queue members as described where the queue type is
  47363. defined. */
  47364. pxNewQueue->uxLength = uxQueueLength;
  47365. 801415e: 69bb ldr r3, [r7, #24]
  47366. 8014160: 68fa ldr r2, [r7, #12]
  47367. 8014162: 63da str r2, [r3, #60] @ 0x3c
  47368. pxNewQueue->uxItemSize = uxItemSize;
  47369. 8014164: 69bb ldr r3, [r7, #24]
  47370. 8014166: 68ba ldr r2, [r7, #8]
  47371. 8014168: 641a str r2, [r3, #64] @ 0x40
  47372. ( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
  47373. 801416a: 2101 movs r1, #1
  47374. 801416c: 69b8 ldr r0, [r7, #24]
  47375. 801416e: f7ff fec3 bl 8013ef8 <xQueueGenericReset>
  47376. #if ( configUSE_TRACE_FACILITY == 1 )
  47377. {
  47378. pxNewQueue->ucQueueType = ucQueueType;
  47379. 8014172: 69bb ldr r3, [r7, #24]
  47380. 8014174: 78fa ldrb r2, [r7, #3]
  47381. 8014176: f883 204c strb.w r2, [r3, #76] @ 0x4c
  47382. pxNewQueue->pxQueueSetContainer = NULL;
  47383. }
  47384. #endif /* configUSE_QUEUE_SETS */
  47385. traceQUEUE_CREATE( pxNewQueue );
  47386. }
  47387. 801417a: bf00 nop
  47388. 801417c: 3710 adds r7, #16
  47389. 801417e: 46bd mov sp, r7
  47390. 8014180: bd80 pop {r7, pc}
  47391. 08014182 <prvInitialiseMutex>:
  47392. /*-----------------------------------------------------------*/
  47393. #if( configUSE_MUTEXES == 1 )
  47394. static void prvInitialiseMutex( Queue_t *pxNewQueue )
  47395. {
  47396. 8014182: b580 push {r7, lr}
  47397. 8014184: b082 sub sp, #8
  47398. 8014186: af00 add r7, sp, #0
  47399. 8014188: 6078 str r0, [r7, #4]
  47400. if( pxNewQueue != NULL )
  47401. 801418a: 687b ldr r3, [r7, #4]
  47402. 801418c: 2b00 cmp r3, #0
  47403. 801418e: d00e beq.n 80141ae <prvInitialiseMutex+0x2c>
  47404. {
  47405. /* The queue create function will set all the queue structure members
  47406. correctly for a generic queue, but this function is creating a
  47407. mutex. Overwrite those members that need to be set differently -
  47408. in particular the information required for priority inheritance. */
  47409. pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
  47410. 8014190: 687b ldr r3, [r7, #4]
  47411. 8014192: 2200 movs r2, #0
  47412. 8014194: 609a str r2, [r3, #8]
  47413. pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
  47414. 8014196: 687b ldr r3, [r7, #4]
  47415. 8014198: 2200 movs r2, #0
  47416. 801419a: 601a str r2, [r3, #0]
  47417. /* In case this is a recursive mutex. */
  47418. pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
  47419. 801419c: 687b ldr r3, [r7, #4]
  47420. 801419e: 2200 movs r2, #0
  47421. 80141a0: 60da str r2, [r3, #12]
  47422. traceCREATE_MUTEX( pxNewQueue );
  47423. /* Start with the semaphore in the expected state. */
  47424. ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
  47425. 80141a2: 2300 movs r3, #0
  47426. 80141a4: 2200 movs r2, #0
  47427. 80141a6: 2100 movs r1, #0
  47428. 80141a8: 6878 ldr r0, [r7, #4]
  47429. 80141aa: f000 f8a3 bl 80142f4 <xQueueGenericSend>
  47430. }
  47431. else
  47432. {
  47433. traceCREATE_MUTEX_FAILED();
  47434. }
  47435. }
  47436. 80141ae: bf00 nop
  47437. 80141b0: 3708 adds r7, #8
  47438. 80141b2: 46bd mov sp, r7
  47439. 80141b4: bd80 pop {r7, pc}
  47440. 080141b6 <xQueueCreateMutex>:
  47441. /*-----------------------------------------------------------*/
  47442. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
  47443. QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
  47444. {
  47445. 80141b6: b580 push {r7, lr}
  47446. 80141b8: b086 sub sp, #24
  47447. 80141ba: af00 add r7, sp, #0
  47448. 80141bc: 4603 mov r3, r0
  47449. 80141be: 71fb strb r3, [r7, #7]
  47450. QueueHandle_t xNewQueue;
  47451. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  47452. 80141c0: 2301 movs r3, #1
  47453. 80141c2: 617b str r3, [r7, #20]
  47454. 80141c4: 2300 movs r3, #0
  47455. 80141c6: 613b str r3, [r7, #16]
  47456. xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
  47457. 80141c8: 79fb ldrb r3, [r7, #7]
  47458. 80141ca: 461a mov r2, r3
  47459. 80141cc: 6939 ldr r1, [r7, #16]
  47460. 80141ce: 6978 ldr r0, [r7, #20]
  47461. 80141d0: f7ff ff79 bl 80140c6 <xQueueGenericCreate>
  47462. 80141d4: 60f8 str r0, [r7, #12]
  47463. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  47464. 80141d6: 68f8 ldr r0, [r7, #12]
  47465. 80141d8: f7ff ffd3 bl 8014182 <prvInitialiseMutex>
  47466. return xNewQueue;
  47467. 80141dc: 68fb ldr r3, [r7, #12]
  47468. }
  47469. 80141de: 4618 mov r0, r3
  47470. 80141e0: 3718 adds r7, #24
  47471. 80141e2: 46bd mov sp, r7
  47472. 80141e4: bd80 pop {r7, pc}
  47473. 080141e6 <xQueueCreateMutexStatic>:
  47474. /*-----------------------------------------------------------*/
  47475. #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
  47476. QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
  47477. {
  47478. 80141e6: b580 push {r7, lr}
  47479. 80141e8: b088 sub sp, #32
  47480. 80141ea: af02 add r7, sp, #8
  47481. 80141ec: 4603 mov r3, r0
  47482. 80141ee: 6039 str r1, [r7, #0]
  47483. 80141f0: 71fb strb r3, [r7, #7]
  47484. QueueHandle_t xNewQueue;
  47485. const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
  47486. 80141f2: 2301 movs r3, #1
  47487. 80141f4: 617b str r3, [r7, #20]
  47488. 80141f6: 2300 movs r3, #0
  47489. 80141f8: 613b str r3, [r7, #16]
  47490. /* Prevent compiler warnings about unused parameters if
  47491. configUSE_TRACE_FACILITY does not equal 1. */
  47492. ( void ) ucQueueType;
  47493. xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
  47494. 80141fa: 79fb ldrb r3, [r7, #7]
  47495. 80141fc: 9300 str r3, [sp, #0]
  47496. 80141fe: 683b ldr r3, [r7, #0]
  47497. 8014200: 2200 movs r2, #0
  47498. 8014202: 6939 ldr r1, [r7, #16]
  47499. 8014204: 6978 ldr r0, [r7, #20]
  47500. 8014206: f7ff fee1 bl 8013fcc <xQueueGenericCreateStatic>
  47501. 801420a: 60f8 str r0, [r7, #12]
  47502. prvInitialiseMutex( ( Queue_t * ) xNewQueue );
  47503. 801420c: 68f8 ldr r0, [r7, #12]
  47504. 801420e: f7ff ffb8 bl 8014182 <prvInitialiseMutex>
  47505. return xNewQueue;
  47506. 8014212: 68fb ldr r3, [r7, #12]
  47507. }
  47508. 8014214: 4618 mov r0, r3
  47509. 8014216: 3718 adds r7, #24
  47510. 8014218: 46bd mov sp, r7
  47511. 801421a: bd80 pop {r7, pc}
  47512. 0801421c <xQueueGiveMutexRecursive>:
  47513. /*-----------------------------------------------------------*/
  47514. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  47515. BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
  47516. {
  47517. 801421c: b590 push {r4, r7, lr}
  47518. 801421e: b087 sub sp, #28
  47519. 8014220: af00 add r7, sp, #0
  47520. 8014222: 6078 str r0, [r7, #4]
  47521. BaseType_t xReturn;
  47522. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  47523. 8014224: 687b ldr r3, [r7, #4]
  47524. 8014226: 613b str r3, [r7, #16]
  47525. configASSERT( pxMutex );
  47526. 8014228: 693b ldr r3, [r7, #16]
  47527. 801422a: 2b00 cmp r3, #0
  47528. 801422c: d10b bne.n 8014246 <xQueueGiveMutexRecursive+0x2a>
  47529. __asm volatile
  47530. 801422e: f04f 0350 mov.w r3, #80 @ 0x50
  47531. 8014232: f383 8811 msr BASEPRI, r3
  47532. 8014236: f3bf 8f6f isb sy
  47533. 801423a: f3bf 8f4f dsb sy
  47534. 801423e: 60fb str r3, [r7, #12]
  47535. }
  47536. 8014240: bf00 nop
  47537. 8014242: bf00 nop
  47538. 8014244: e7fd b.n 8014242 <xQueueGiveMutexRecursive+0x26>
  47539. change outside of this task. If this task does not hold the mutex then
  47540. pxMutexHolder can never coincidentally equal the tasks handle, and as
  47541. this is the only condition we are interested in it does not matter if
  47542. pxMutexHolder is accessed simultaneously by another task. Therefore no
  47543. mutual exclusion is required to test the pxMutexHolder variable. */
  47544. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  47545. 8014246: 693b ldr r3, [r7, #16]
  47546. 8014248: 689c ldr r4, [r3, #8]
  47547. 801424a: f001 fe39 bl 8015ec0 <xTaskGetCurrentTaskHandle>
  47548. 801424e: 4603 mov r3, r0
  47549. 8014250: 429c cmp r4, r3
  47550. 8014252: d111 bne.n 8014278 <xQueueGiveMutexRecursive+0x5c>
  47551. /* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
  47552. the task handle, therefore no underflow check is required. Also,
  47553. uxRecursiveCallCount is only modified by the mutex holder, and as
  47554. there can only be one, no mutual exclusion is required to modify the
  47555. uxRecursiveCallCount member. */
  47556. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
  47557. 8014254: 693b ldr r3, [r7, #16]
  47558. 8014256: 68db ldr r3, [r3, #12]
  47559. 8014258: 1e5a subs r2, r3, #1
  47560. 801425a: 693b ldr r3, [r7, #16]
  47561. 801425c: 60da str r2, [r3, #12]
  47562. /* Has the recursive call count unwound to 0? */
  47563. if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
  47564. 801425e: 693b ldr r3, [r7, #16]
  47565. 8014260: 68db ldr r3, [r3, #12]
  47566. 8014262: 2b00 cmp r3, #0
  47567. 8014264: d105 bne.n 8014272 <xQueueGiveMutexRecursive+0x56>
  47568. {
  47569. /* Return the mutex. This will automatically unblock any other
  47570. task that might be waiting to access the mutex. */
  47571. ( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
  47572. 8014266: 2300 movs r3, #0
  47573. 8014268: 2200 movs r2, #0
  47574. 801426a: 2100 movs r1, #0
  47575. 801426c: 6938 ldr r0, [r7, #16]
  47576. 801426e: f000 f841 bl 80142f4 <xQueueGenericSend>
  47577. else
  47578. {
  47579. mtCOVERAGE_TEST_MARKER();
  47580. }
  47581. xReturn = pdPASS;
  47582. 8014272: 2301 movs r3, #1
  47583. 8014274: 617b str r3, [r7, #20]
  47584. 8014276: e001 b.n 801427c <xQueueGiveMutexRecursive+0x60>
  47585. }
  47586. else
  47587. {
  47588. /* The mutex cannot be given because the calling task is not the
  47589. holder. */
  47590. xReturn = pdFAIL;
  47591. 8014278: 2300 movs r3, #0
  47592. 801427a: 617b str r3, [r7, #20]
  47593. traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
  47594. }
  47595. return xReturn;
  47596. 801427c: 697b ldr r3, [r7, #20]
  47597. }
  47598. 801427e: 4618 mov r0, r3
  47599. 8014280: 371c adds r7, #28
  47600. 8014282: 46bd mov sp, r7
  47601. 8014284: bd90 pop {r4, r7, pc}
  47602. 08014286 <xQueueTakeMutexRecursive>:
  47603. /*-----------------------------------------------------------*/
  47604. #if ( configUSE_RECURSIVE_MUTEXES == 1 )
  47605. BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
  47606. {
  47607. 8014286: b590 push {r4, r7, lr}
  47608. 8014288: b087 sub sp, #28
  47609. 801428a: af00 add r7, sp, #0
  47610. 801428c: 6078 str r0, [r7, #4]
  47611. 801428e: 6039 str r1, [r7, #0]
  47612. BaseType_t xReturn;
  47613. Queue_t * const pxMutex = ( Queue_t * ) xMutex;
  47614. 8014290: 687b ldr r3, [r7, #4]
  47615. 8014292: 613b str r3, [r7, #16]
  47616. configASSERT( pxMutex );
  47617. 8014294: 693b ldr r3, [r7, #16]
  47618. 8014296: 2b00 cmp r3, #0
  47619. 8014298: d10b bne.n 80142b2 <xQueueTakeMutexRecursive+0x2c>
  47620. __asm volatile
  47621. 801429a: f04f 0350 mov.w r3, #80 @ 0x50
  47622. 801429e: f383 8811 msr BASEPRI, r3
  47623. 80142a2: f3bf 8f6f isb sy
  47624. 80142a6: f3bf 8f4f dsb sy
  47625. 80142aa: 60fb str r3, [r7, #12]
  47626. }
  47627. 80142ac: bf00 nop
  47628. 80142ae: bf00 nop
  47629. 80142b0: e7fd b.n 80142ae <xQueueTakeMutexRecursive+0x28>
  47630. /* Comments regarding mutual exclusion as per those within
  47631. xQueueGiveMutexRecursive(). */
  47632. traceTAKE_MUTEX_RECURSIVE( pxMutex );
  47633. if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
  47634. 80142b2: 693b ldr r3, [r7, #16]
  47635. 80142b4: 689c ldr r4, [r3, #8]
  47636. 80142b6: f001 fe03 bl 8015ec0 <xTaskGetCurrentTaskHandle>
  47637. 80142ba: 4603 mov r3, r0
  47638. 80142bc: 429c cmp r4, r3
  47639. 80142be: d107 bne.n 80142d0 <xQueueTakeMutexRecursive+0x4a>
  47640. {
  47641. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  47642. 80142c0: 693b ldr r3, [r7, #16]
  47643. 80142c2: 68db ldr r3, [r3, #12]
  47644. 80142c4: 1c5a adds r2, r3, #1
  47645. 80142c6: 693b ldr r3, [r7, #16]
  47646. 80142c8: 60da str r2, [r3, #12]
  47647. xReturn = pdPASS;
  47648. 80142ca: 2301 movs r3, #1
  47649. 80142cc: 617b str r3, [r7, #20]
  47650. 80142ce: e00c b.n 80142ea <xQueueTakeMutexRecursive+0x64>
  47651. }
  47652. else
  47653. {
  47654. xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
  47655. 80142d0: 6839 ldr r1, [r7, #0]
  47656. 80142d2: 6938 ldr r0, [r7, #16]
  47657. 80142d4: f000 fa90 bl 80147f8 <xQueueSemaphoreTake>
  47658. 80142d8: 6178 str r0, [r7, #20]
  47659. /* pdPASS will only be returned if the mutex was successfully
  47660. obtained. The calling task may have entered the Blocked state
  47661. before reaching here. */
  47662. if( xReturn != pdFAIL )
  47663. 80142da: 697b ldr r3, [r7, #20]
  47664. 80142dc: 2b00 cmp r3, #0
  47665. 80142de: d004 beq.n 80142ea <xQueueTakeMutexRecursive+0x64>
  47666. {
  47667. ( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
  47668. 80142e0: 693b ldr r3, [r7, #16]
  47669. 80142e2: 68db ldr r3, [r3, #12]
  47670. 80142e4: 1c5a adds r2, r3, #1
  47671. 80142e6: 693b ldr r3, [r7, #16]
  47672. 80142e8: 60da str r2, [r3, #12]
  47673. {
  47674. traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
  47675. }
  47676. }
  47677. return xReturn;
  47678. 80142ea: 697b ldr r3, [r7, #20]
  47679. }
  47680. 80142ec: 4618 mov r0, r3
  47681. 80142ee: 371c adds r7, #28
  47682. 80142f0: 46bd mov sp, r7
  47683. 80142f2: bd90 pop {r4, r7, pc}
  47684. 080142f4 <xQueueGenericSend>:
  47685. #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
  47686. /*-----------------------------------------------------------*/
  47687. BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
  47688. {
  47689. 80142f4: b580 push {r7, lr}
  47690. 80142f6: b08e sub sp, #56 @ 0x38
  47691. 80142f8: af00 add r7, sp, #0
  47692. 80142fa: 60f8 str r0, [r7, #12]
  47693. 80142fc: 60b9 str r1, [r7, #8]
  47694. 80142fe: 607a str r2, [r7, #4]
  47695. 8014300: 603b str r3, [r7, #0]
  47696. BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
  47697. 8014302: 2300 movs r3, #0
  47698. 8014304: 637b str r3, [r7, #52] @ 0x34
  47699. TimeOut_t xTimeOut;
  47700. Queue_t * const pxQueue = xQueue;
  47701. 8014306: 68fb ldr r3, [r7, #12]
  47702. 8014308: 633b str r3, [r7, #48] @ 0x30
  47703. configASSERT( pxQueue );
  47704. 801430a: 6b3b ldr r3, [r7, #48] @ 0x30
  47705. 801430c: 2b00 cmp r3, #0
  47706. 801430e: d10b bne.n 8014328 <xQueueGenericSend+0x34>
  47707. __asm volatile
  47708. 8014310: f04f 0350 mov.w r3, #80 @ 0x50
  47709. 8014314: f383 8811 msr BASEPRI, r3
  47710. 8014318: f3bf 8f6f isb sy
  47711. 801431c: f3bf 8f4f dsb sy
  47712. 8014320: 62bb str r3, [r7, #40] @ 0x28
  47713. }
  47714. 8014322: bf00 nop
  47715. 8014324: bf00 nop
  47716. 8014326: e7fd b.n 8014324 <xQueueGenericSend+0x30>
  47717. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  47718. 8014328: 68bb ldr r3, [r7, #8]
  47719. 801432a: 2b00 cmp r3, #0
  47720. 801432c: d103 bne.n 8014336 <xQueueGenericSend+0x42>
  47721. 801432e: 6b3b ldr r3, [r7, #48] @ 0x30
  47722. 8014330: 6c1b ldr r3, [r3, #64] @ 0x40
  47723. 8014332: 2b00 cmp r3, #0
  47724. 8014334: d101 bne.n 801433a <xQueueGenericSend+0x46>
  47725. 8014336: 2301 movs r3, #1
  47726. 8014338: e000 b.n 801433c <xQueueGenericSend+0x48>
  47727. 801433a: 2300 movs r3, #0
  47728. 801433c: 2b00 cmp r3, #0
  47729. 801433e: d10b bne.n 8014358 <xQueueGenericSend+0x64>
  47730. __asm volatile
  47731. 8014340: f04f 0350 mov.w r3, #80 @ 0x50
  47732. 8014344: f383 8811 msr BASEPRI, r3
  47733. 8014348: f3bf 8f6f isb sy
  47734. 801434c: f3bf 8f4f dsb sy
  47735. 8014350: 627b str r3, [r7, #36] @ 0x24
  47736. }
  47737. 8014352: bf00 nop
  47738. 8014354: bf00 nop
  47739. 8014356: e7fd b.n 8014354 <xQueueGenericSend+0x60>
  47740. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  47741. 8014358: 683b ldr r3, [r7, #0]
  47742. 801435a: 2b02 cmp r3, #2
  47743. 801435c: d103 bne.n 8014366 <xQueueGenericSend+0x72>
  47744. 801435e: 6b3b ldr r3, [r7, #48] @ 0x30
  47745. 8014360: 6bdb ldr r3, [r3, #60] @ 0x3c
  47746. 8014362: 2b01 cmp r3, #1
  47747. 8014364: d101 bne.n 801436a <xQueueGenericSend+0x76>
  47748. 8014366: 2301 movs r3, #1
  47749. 8014368: e000 b.n 801436c <xQueueGenericSend+0x78>
  47750. 801436a: 2300 movs r3, #0
  47751. 801436c: 2b00 cmp r3, #0
  47752. 801436e: d10b bne.n 8014388 <xQueueGenericSend+0x94>
  47753. __asm volatile
  47754. 8014370: f04f 0350 mov.w r3, #80 @ 0x50
  47755. 8014374: f383 8811 msr BASEPRI, r3
  47756. 8014378: f3bf 8f6f isb sy
  47757. 801437c: f3bf 8f4f dsb sy
  47758. 8014380: 623b str r3, [r7, #32]
  47759. }
  47760. 8014382: bf00 nop
  47761. 8014384: bf00 nop
  47762. 8014386: e7fd b.n 8014384 <xQueueGenericSend+0x90>
  47763. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  47764. {
  47765. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  47766. 8014388: f001 fdaa bl 8015ee0 <xTaskGetSchedulerState>
  47767. 801438c: 4603 mov r3, r0
  47768. 801438e: 2b00 cmp r3, #0
  47769. 8014390: d102 bne.n 8014398 <xQueueGenericSend+0xa4>
  47770. 8014392: 687b ldr r3, [r7, #4]
  47771. 8014394: 2b00 cmp r3, #0
  47772. 8014396: d101 bne.n 801439c <xQueueGenericSend+0xa8>
  47773. 8014398: 2301 movs r3, #1
  47774. 801439a: e000 b.n 801439e <xQueueGenericSend+0xaa>
  47775. 801439c: 2300 movs r3, #0
  47776. 801439e: 2b00 cmp r3, #0
  47777. 80143a0: d10b bne.n 80143ba <xQueueGenericSend+0xc6>
  47778. __asm volatile
  47779. 80143a2: f04f 0350 mov.w r3, #80 @ 0x50
  47780. 80143a6: f383 8811 msr BASEPRI, r3
  47781. 80143aa: f3bf 8f6f isb sy
  47782. 80143ae: f3bf 8f4f dsb sy
  47783. 80143b2: 61fb str r3, [r7, #28]
  47784. }
  47785. 80143b4: bf00 nop
  47786. 80143b6: bf00 nop
  47787. 80143b8: e7fd b.n 80143b6 <xQueueGenericSend+0xc2>
  47788. /*lint -save -e904 This function relaxes the coding standard somewhat to
  47789. allow return statements within the function itself. This is done in the
  47790. interest of execution time efficiency. */
  47791. for( ;; )
  47792. {
  47793. taskENTER_CRITICAL();
  47794. 80143ba: f002 ff15 bl 80171e8 <vPortEnterCritical>
  47795. {
  47796. /* Is there room on the queue now? The running task must be the
  47797. highest priority task wanting to access the queue. If the head item
  47798. in the queue is to be overwritten then it does not matter if the
  47799. queue is full. */
  47800. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  47801. 80143be: 6b3b ldr r3, [r7, #48] @ 0x30
  47802. 80143c0: 6b9a ldr r2, [r3, #56] @ 0x38
  47803. 80143c2: 6b3b ldr r3, [r7, #48] @ 0x30
  47804. 80143c4: 6bdb ldr r3, [r3, #60] @ 0x3c
  47805. 80143c6: 429a cmp r2, r3
  47806. 80143c8: d302 bcc.n 80143d0 <xQueueGenericSend+0xdc>
  47807. 80143ca: 683b ldr r3, [r7, #0]
  47808. 80143cc: 2b02 cmp r3, #2
  47809. 80143ce: d129 bne.n 8014424 <xQueueGenericSend+0x130>
  47810. }
  47811. }
  47812. }
  47813. #else /* configUSE_QUEUE_SETS */
  47814. {
  47815. xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  47816. 80143d0: 683a ldr r2, [r7, #0]
  47817. 80143d2: 68b9 ldr r1, [r7, #8]
  47818. 80143d4: 6b38 ldr r0, [r7, #48] @ 0x30
  47819. 80143d6: f000 fbb9 bl 8014b4c <prvCopyDataToQueue>
  47820. 80143da: 62f8 str r0, [r7, #44] @ 0x2c
  47821. /* If there was a task waiting for data to arrive on the
  47822. queue then unblock it now. */
  47823. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  47824. 80143dc: 6b3b ldr r3, [r7, #48] @ 0x30
  47825. 80143de: 6a5b ldr r3, [r3, #36] @ 0x24
  47826. 80143e0: 2b00 cmp r3, #0
  47827. 80143e2: d010 beq.n 8014406 <xQueueGenericSend+0x112>
  47828. {
  47829. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  47830. 80143e4: 6b3b ldr r3, [r7, #48] @ 0x30
  47831. 80143e6: 3324 adds r3, #36 @ 0x24
  47832. 80143e8: 4618 mov r0, r3
  47833. 80143ea: f001 fb7b bl 8015ae4 <xTaskRemoveFromEventList>
  47834. 80143ee: 4603 mov r3, r0
  47835. 80143f0: 2b00 cmp r3, #0
  47836. 80143f2: d013 beq.n 801441c <xQueueGenericSend+0x128>
  47837. {
  47838. /* The unblocked task has a priority higher than
  47839. our own so yield immediately. Yes it is ok to do
  47840. this from within the critical section - the kernel
  47841. takes care of that. */
  47842. queueYIELD_IF_USING_PREEMPTION();
  47843. 80143f4: 4b3f ldr r3, [pc, #252] @ (80144f4 <xQueueGenericSend+0x200>)
  47844. 80143f6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47845. 80143fa: 601a str r2, [r3, #0]
  47846. 80143fc: f3bf 8f4f dsb sy
  47847. 8014400: f3bf 8f6f isb sy
  47848. 8014404: e00a b.n 801441c <xQueueGenericSend+0x128>
  47849. else
  47850. {
  47851. mtCOVERAGE_TEST_MARKER();
  47852. }
  47853. }
  47854. else if( xYieldRequired != pdFALSE )
  47855. 8014406: 6afb ldr r3, [r7, #44] @ 0x2c
  47856. 8014408: 2b00 cmp r3, #0
  47857. 801440a: d007 beq.n 801441c <xQueueGenericSend+0x128>
  47858. {
  47859. /* This path is a special case that will only get
  47860. executed if the task was holding multiple mutexes and
  47861. the mutexes were given back in an order that is
  47862. different to that in which they were taken. */
  47863. queueYIELD_IF_USING_PREEMPTION();
  47864. 801440c: 4b39 ldr r3, [pc, #228] @ (80144f4 <xQueueGenericSend+0x200>)
  47865. 801440e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47866. 8014412: 601a str r2, [r3, #0]
  47867. 8014414: f3bf 8f4f dsb sy
  47868. 8014418: f3bf 8f6f isb sy
  47869. mtCOVERAGE_TEST_MARKER();
  47870. }
  47871. }
  47872. #endif /* configUSE_QUEUE_SETS */
  47873. taskEXIT_CRITICAL();
  47874. 801441c: f002 ff16 bl 801724c <vPortExitCritical>
  47875. return pdPASS;
  47876. 8014420: 2301 movs r3, #1
  47877. 8014422: e063 b.n 80144ec <xQueueGenericSend+0x1f8>
  47878. }
  47879. else
  47880. {
  47881. if( xTicksToWait == ( TickType_t ) 0 )
  47882. 8014424: 687b ldr r3, [r7, #4]
  47883. 8014426: 2b00 cmp r3, #0
  47884. 8014428: d103 bne.n 8014432 <xQueueGenericSend+0x13e>
  47885. {
  47886. /* The queue was full and no block time is specified (or
  47887. the block time has expired) so leave now. */
  47888. taskEXIT_CRITICAL();
  47889. 801442a: f002 ff0f bl 801724c <vPortExitCritical>
  47890. /* Return to the original privilege level before exiting
  47891. the function. */
  47892. traceQUEUE_SEND_FAILED( pxQueue );
  47893. return errQUEUE_FULL;
  47894. 801442e: 2300 movs r3, #0
  47895. 8014430: e05c b.n 80144ec <xQueueGenericSend+0x1f8>
  47896. }
  47897. else if( xEntryTimeSet == pdFALSE )
  47898. 8014432: 6b7b ldr r3, [r7, #52] @ 0x34
  47899. 8014434: 2b00 cmp r3, #0
  47900. 8014436: d106 bne.n 8014446 <xQueueGenericSend+0x152>
  47901. {
  47902. /* The queue was full and a block time was specified so
  47903. configure the timeout structure. */
  47904. vTaskInternalSetTimeOutState( &xTimeOut );
  47905. 8014438: f107 0314 add.w r3, r7, #20
  47906. 801443c: 4618 mov r0, r3
  47907. 801443e: f001 fbdd bl 8015bfc <vTaskInternalSetTimeOutState>
  47908. xEntryTimeSet = pdTRUE;
  47909. 8014442: 2301 movs r3, #1
  47910. 8014444: 637b str r3, [r7, #52] @ 0x34
  47911. /* Entry time was already set. */
  47912. mtCOVERAGE_TEST_MARKER();
  47913. }
  47914. }
  47915. }
  47916. taskEXIT_CRITICAL();
  47917. 8014446: f002 ff01 bl 801724c <vPortExitCritical>
  47918. /* Interrupts and other tasks can send to and receive from the queue
  47919. now the critical section has been exited. */
  47920. vTaskSuspendAll();
  47921. 801444a: f001 f90f bl 801566c <vTaskSuspendAll>
  47922. prvLockQueue( pxQueue );
  47923. 801444e: f002 fecb bl 80171e8 <vPortEnterCritical>
  47924. 8014452: 6b3b ldr r3, [r7, #48] @ 0x30
  47925. 8014454: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  47926. 8014458: b25b sxtb r3, r3
  47927. 801445a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47928. 801445e: d103 bne.n 8014468 <xQueueGenericSend+0x174>
  47929. 8014460: 6b3b ldr r3, [r7, #48] @ 0x30
  47930. 8014462: 2200 movs r2, #0
  47931. 8014464: f883 2044 strb.w r2, [r3, #68] @ 0x44
  47932. 8014468: 6b3b ldr r3, [r7, #48] @ 0x30
  47933. 801446a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  47934. 801446e: b25b sxtb r3, r3
  47935. 8014470: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  47936. 8014474: d103 bne.n 801447e <xQueueGenericSend+0x18a>
  47937. 8014476: 6b3b ldr r3, [r7, #48] @ 0x30
  47938. 8014478: 2200 movs r2, #0
  47939. 801447a: f883 2045 strb.w r2, [r3, #69] @ 0x45
  47940. 801447e: f002 fee5 bl 801724c <vPortExitCritical>
  47941. /* Update the timeout state to see if it has expired yet. */
  47942. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  47943. 8014482: 1d3a adds r2, r7, #4
  47944. 8014484: f107 0314 add.w r3, r7, #20
  47945. 8014488: 4611 mov r1, r2
  47946. 801448a: 4618 mov r0, r3
  47947. 801448c: f001 fbcc bl 8015c28 <xTaskCheckForTimeOut>
  47948. 8014490: 4603 mov r3, r0
  47949. 8014492: 2b00 cmp r3, #0
  47950. 8014494: d124 bne.n 80144e0 <xQueueGenericSend+0x1ec>
  47951. {
  47952. if( prvIsQueueFull( pxQueue ) != pdFALSE )
  47953. 8014496: 6b38 ldr r0, [r7, #48] @ 0x30
  47954. 8014498: f000 fc50 bl 8014d3c <prvIsQueueFull>
  47955. 801449c: 4603 mov r3, r0
  47956. 801449e: 2b00 cmp r3, #0
  47957. 80144a0: d018 beq.n 80144d4 <xQueueGenericSend+0x1e0>
  47958. {
  47959. traceBLOCKING_ON_QUEUE_SEND( pxQueue );
  47960. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
  47961. 80144a2: 6b3b ldr r3, [r7, #48] @ 0x30
  47962. 80144a4: 3310 adds r3, #16
  47963. 80144a6: 687a ldr r2, [r7, #4]
  47964. 80144a8: 4611 mov r1, r2
  47965. 80144aa: 4618 mov r0, r3
  47966. 80144ac: f001 fac8 bl 8015a40 <vTaskPlaceOnEventList>
  47967. /* Unlocking the queue means queue events can effect the
  47968. event list. It is possible that interrupts occurring now
  47969. remove this task from the event list again - but as the
  47970. scheduler is suspended the task will go onto the pending
  47971. ready last instead of the actual ready list. */
  47972. prvUnlockQueue( pxQueue );
  47973. 80144b0: 6b38 ldr r0, [r7, #48] @ 0x30
  47974. 80144b2: f000 fbdb bl 8014c6c <prvUnlockQueue>
  47975. /* Resuming the scheduler will move tasks from the pending
  47976. ready list into the ready list - so it is feasible that this
  47977. task is already in a ready list before it yields - in which
  47978. case the yield will not cause a context switch unless there
  47979. is also a higher priority task in the pending ready list. */
  47980. if( xTaskResumeAll() == pdFALSE )
  47981. 80144b6: f001 f8e7 bl 8015688 <xTaskResumeAll>
  47982. 80144ba: 4603 mov r3, r0
  47983. 80144bc: 2b00 cmp r3, #0
  47984. 80144be: f47f af7c bne.w 80143ba <xQueueGenericSend+0xc6>
  47985. {
  47986. portYIELD_WITHIN_API();
  47987. 80144c2: 4b0c ldr r3, [pc, #48] @ (80144f4 <xQueueGenericSend+0x200>)
  47988. 80144c4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  47989. 80144c8: 601a str r2, [r3, #0]
  47990. 80144ca: f3bf 8f4f dsb sy
  47991. 80144ce: f3bf 8f6f isb sy
  47992. 80144d2: e772 b.n 80143ba <xQueueGenericSend+0xc6>
  47993. }
  47994. }
  47995. else
  47996. {
  47997. /* Try again. */
  47998. prvUnlockQueue( pxQueue );
  47999. 80144d4: 6b38 ldr r0, [r7, #48] @ 0x30
  48000. 80144d6: f000 fbc9 bl 8014c6c <prvUnlockQueue>
  48001. ( void ) xTaskResumeAll();
  48002. 80144da: f001 f8d5 bl 8015688 <xTaskResumeAll>
  48003. 80144de: e76c b.n 80143ba <xQueueGenericSend+0xc6>
  48004. }
  48005. }
  48006. else
  48007. {
  48008. /* The timeout has expired. */
  48009. prvUnlockQueue( pxQueue );
  48010. 80144e0: 6b38 ldr r0, [r7, #48] @ 0x30
  48011. 80144e2: f000 fbc3 bl 8014c6c <prvUnlockQueue>
  48012. ( void ) xTaskResumeAll();
  48013. 80144e6: f001 f8cf bl 8015688 <xTaskResumeAll>
  48014. traceQUEUE_SEND_FAILED( pxQueue );
  48015. return errQUEUE_FULL;
  48016. 80144ea: 2300 movs r3, #0
  48017. }
  48018. } /*lint -restore */
  48019. }
  48020. 80144ec: 4618 mov r0, r3
  48021. 80144ee: 3738 adds r7, #56 @ 0x38
  48022. 80144f0: 46bd mov sp, r7
  48023. 80144f2: bd80 pop {r7, pc}
  48024. 80144f4: e000ed04 .word 0xe000ed04
  48025. 080144f8 <xQueueGenericSendFromISR>:
  48026. /*-----------------------------------------------------------*/
  48027. BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
  48028. {
  48029. 80144f8: b580 push {r7, lr}
  48030. 80144fa: b090 sub sp, #64 @ 0x40
  48031. 80144fc: af00 add r7, sp, #0
  48032. 80144fe: 60f8 str r0, [r7, #12]
  48033. 8014500: 60b9 str r1, [r7, #8]
  48034. 8014502: 607a str r2, [r7, #4]
  48035. 8014504: 603b str r3, [r7, #0]
  48036. BaseType_t xReturn;
  48037. UBaseType_t uxSavedInterruptStatus;
  48038. Queue_t * const pxQueue = xQueue;
  48039. 8014506: 68fb ldr r3, [r7, #12]
  48040. 8014508: 63bb str r3, [r7, #56] @ 0x38
  48041. configASSERT( pxQueue );
  48042. 801450a: 6bbb ldr r3, [r7, #56] @ 0x38
  48043. 801450c: 2b00 cmp r3, #0
  48044. 801450e: d10b bne.n 8014528 <xQueueGenericSendFromISR+0x30>
  48045. __asm volatile
  48046. 8014510: f04f 0350 mov.w r3, #80 @ 0x50
  48047. 8014514: f383 8811 msr BASEPRI, r3
  48048. 8014518: f3bf 8f6f isb sy
  48049. 801451c: f3bf 8f4f dsb sy
  48050. 8014520: 62bb str r3, [r7, #40] @ 0x28
  48051. }
  48052. 8014522: bf00 nop
  48053. 8014524: bf00 nop
  48054. 8014526: e7fd b.n 8014524 <xQueueGenericSendFromISR+0x2c>
  48055. configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48056. 8014528: 68bb ldr r3, [r7, #8]
  48057. 801452a: 2b00 cmp r3, #0
  48058. 801452c: d103 bne.n 8014536 <xQueueGenericSendFromISR+0x3e>
  48059. 801452e: 6bbb ldr r3, [r7, #56] @ 0x38
  48060. 8014530: 6c1b ldr r3, [r3, #64] @ 0x40
  48061. 8014532: 2b00 cmp r3, #0
  48062. 8014534: d101 bne.n 801453a <xQueueGenericSendFromISR+0x42>
  48063. 8014536: 2301 movs r3, #1
  48064. 8014538: e000 b.n 801453c <xQueueGenericSendFromISR+0x44>
  48065. 801453a: 2300 movs r3, #0
  48066. 801453c: 2b00 cmp r3, #0
  48067. 801453e: d10b bne.n 8014558 <xQueueGenericSendFromISR+0x60>
  48068. __asm volatile
  48069. 8014540: f04f 0350 mov.w r3, #80 @ 0x50
  48070. 8014544: f383 8811 msr BASEPRI, r3
  48071. 8014548: f3bf 8f6f isb sy
  48072. 801454c: f3bf 8f4f dsb sy
  48073. 8014550: 627b str r3, [r7, #36] @ 0x24
  48074. }
  48075. 8014552: bf00 nop
  48076. 8014554: bf00 nop
  48077. 8014556: e7fd b.n 8014554 <xQueueGenericSendFromISR+0x5c>
  48078. configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
  48079. 8014558: 683b ldr r3, [r7, #0]
  48080. 801455a: 2b02 cmp r3, #2
  48081. 801455c: d103 bne.n 8014566 <xQueueGenericSendFromISR+0x6e>
  48082. 801455e: 6bbb ldr r3, [r7, #56] @ 0x38
  48083. 8014560: 6bdb ldr r3, [r3, #60] @ 0x3c
  48084. 8014562: 2b01 cmp r3, #1
  48085. 8014564: d101 bne.n 801456a <xQueueGenericSendFromISR+0x72>
  48086. 8014566: 2301 movs r3, #1
  48087. 8014568: e000 b.n 801456c <xQueueGenericSendFromISR+0x74>
  48088. 801456a: 2300 movs r3, #0
  48089. 801456c: 2b00 cmp r3, #0
  48090. 801456e: d10b bne.n 8014588 <xQueueGenericSendFromISR+0x90>
  48091. __asm volatile
  48092. 8014570: f04f 0350 mov.w r3, #80 @ 0x50
  48093. 8014574: f383 8811 msr BASEPRI, r3
  48094. 8014578: f3bf 8f6f isb sy
  48095. 801457c: f3bf 8f4f dsb sy
  48096. 8014580: 623b str r3, [r7, #32]
  48097. }
  48098. 8014582: bf00 nop
  48099. 8014584: bf00 nop
  48100. 8014586: e7fd b.n 8014584 <xQueueGenericSendFromISR+0x8c>
  48101. that have been assigned a priority at or (logically) below the maximum
  48102. system call interrupt priority. FreeRTOS maintains a separate interrupt
  48103. safe API to ensure interrupt entry is as fast and as simple as possible.
  48104. More information (albeit Cortex-M specific) is provided on the following
  48105. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  48106. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  48107. 8014588: f002 ff0e bl 80173a8 <vPortValidateInterruptPriority>
  48108. portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
  48109. {
  48110. uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
  48111. __asm volatile
  48112. 801458c: f3ef 8211 mrs r2, BASEPRI
  48113. 8014590: f04f 0350 mov.w r3, #80 @ 0x50
  48114. 8014594: f383 8811 msr BASEPRI, r3
  48115. 8014598: f3bf 8f6f isb sy
  48116. 801459c: f3bf 8f4f dsb sy
  48117. 80145a0: 61fa str r2, [r7, #28]
  48118. 80145a2: 61bb str r3, [r7, #24]
  48119. :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
  48120. );
  48121. /* This return will not be reached but is necessary to prevent compiler
  48122. warnings. */
  48123. return ulOriginalBASEPRI;
  48124. 80145a4: 69fb ldr r3, [r7, #28]
  48125. /* Similar to xQueueGenericSend, except without blocking if there is no room
  48126. in the queue. Also don't directly wake a task that was blocked on a queue
  48127. read, instead return a flag to say whether a context switch is required or
  48128. not (i.e. has a task with a higher priority than us been woken by this
  48129. post). */
  48130. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  48131. 80145a6: 637b str r3, [r7, #52] @ 0x34
  48132. {
  48133. if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
  48134. 80145a8: 6bbb ldr r3, [r7, #56] @ 0x38
  48135. 80145aa: 6b9a ldr r2, [r3, #56] @ 0x38
  48136. 80145ac: 6bbb ldr r3, [r7, #56] @ 0x38
  48137. 80145ae: 6bdb ldr r3, [r3, #60] @ 0x3c
  48138. 80145b0: 429a cmp r2, r3
  48139. 80145b2: d302 bcc.n 80145ba <xQueueGenericSendFromISR+0xc2>
  48140. 80145b4: 683b ldr r3, [r7, #0]
  48141. 80145b6: 2b02 cmp r3, #2
  48142. 80145b8: d12f bne.n 801461a <xQueueGenericSendFromISR+0x122>
  48143. {
  48144. const int8_t cTxLock = pxQueue->cTxLock;
  48145. 80145ba: 6bbb ldr r3, [r7, #56] @ 0x38
  48146. 80145bc: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48147. 80145c0: f887 3033 strb.w r3, [r7, #51] @ 0x33
  48148. const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
  48149. 80145c4: 6bbb ldr r3, [r7, #56] @ 0x38
  48150. 80145c6: 6b9b ldr r3, [r3, #56] @ 0x38
  48151. 80145c8: 62fb str r3, [r7, #44] @ 0x2c
  48152. /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
  48153. semaphore or mutex. That means prvCopyDataToQueue() cannot result
  48154. in a task disinheriting a priority and prvCopyDataToQueue() can be
  48155. called here even though the disinherit function does not check if
  48156. the scheduler is suspended before accessing the ready lists. */
  48157. ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
  48158. 80145ca: 683a ldr r2, [r7, #0]
  48159. 80145cc: 68b9 ldr r1, [r7, #8]
  48160. 80145ce: 6bb8 ldr r0, [r7, #56] @ 0x38
  48161. 80145d0: f000 fabc bl 8014b4c <prvCopyDataToQueue>
  48162. /* The event list is not altered if the queue is locked. This will
  48163. be done when the queue is unlocked later. */
  48164. if( cTxLock == queueUNLOCKED )
  48165. 80145d4: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
  48166. 80145d8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48167. 80145dc: d112 bne.n 8014604 <xQueueGenericSendFromISR+0x10c>
  48168. }
  48169. }
  48170. }
  48171. #else /* configUSE_QUEUE_SETS */
  48172. {
  48173. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  48174. 80145de: 6bbb ldr r3, [r7, #56] @ 0x38
  48175. 80145e0: 6a5b ldr r3, [r3, #36] @ 0x24
  48176. 80145e2: 2b00 cmp r3, #0
  48177. 80145e4: d016 beq.n 8014614 <xQueueGenericSendFromISR+0x11c>
  48178. {
  48179. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  48180. 80145e6: 6bbb ldr r3, [r7, #56] @ 0x38
  48181. 80145e8: 3324 adds r3, #36 @ 0x24
  48182. 80145ea: 4618 mov r0, r3
  48183. 80145ec: f001 fa7a bl 8015ae4 <xTaskRemoveFromEventList>
  48184. 80145f0: 4603 mov r3, r0
  48185. 80145f2: 2b00 cmp r3, #0
  48186. 80145f4: d00e beq.n 8014614 <xQueueGenericSendFromISR+0x11c>
  48187. {
  48188. /* The task waiting has a higher priority so record that a
  48189. context switch is required. */
  48190. if( pxHigherPriorityTaskWoken != NULL )
  48191. 80145f6: 687b ldr r3, [r7, #4]
  48192. 80145f8: 2b00 cmp r3, #0
  48193. 80145fa: d00b beq.n 8014614 <xQueueGenericSendFromISR+0x11c>
  48194. {
  48195. *pxHigherPriorityTaskWoken = pdTRUE;
  48196. 80145fc: 687b ldr r3, [r7, #4]
  48197. 80145fe: 2201 movs r2, #1
  48198. 8014600: 601a str r2, [r3, #0]
  48199. 8014602: e007 b.n 8014614 <xQueueGenericSendFromISR+0x11c>
  48200. }
  48201. else
  48202. {
  48203. /* Increment the lock count so the task that unlocks the queue
  48204. knows that data was posted while it was locked. */
  48205. pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
  48206. 8014604: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
  48207. 8014608: 3301 adds r3, #1
  48208. 801460a: b2db uxtb r3, r3
  48209. 801460c: b25a sxtb r2, r3
  48210. 801460e: 6bbb ldr r3, [r7, #56] @ 0x38
  48211. 8014610: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48212. }
  48213. xReturn = pdPASS;
  48214. 8014614: 2301 movs r3, #1
  48215. 8014616: 63fb str r3, [r7, #60] @ 0x3c
  48216. {
  48217. 8014618: e001 b.n 801461e <xQueueGenericSendFromISR+0x126>
  48218. }
  48219. else
  48220. {
  48221. traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
  48222. xReturn = errQUEUE_FULL;
  48223. 801461a: 2300 movs r3, #0
  48224. 801461c: 63fb str r3, [r7, #60] @ 0x3c
  48225. 801461e: 6b7b ldr r3, [r7, #52] @ 0x34
  48226. 8014620: 617b str r3, [r7, #20]
  48227. }
  48228. /*-----------------------------------------------------------*/
  48229. portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
  48230. {
  48231. __asm volatile
  48232. 8014622: 697b ldr r3, [r7, #20]
  48233. 8014624: f383 8811 msr BASEPRI, r3
  48234. (
  48235. " msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
  48236. );
  48237. }
  48238. 8014628: bf00 nop
  48239. }
  48240. }
  48241. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  48242. return xReturn;
  48243. 801462a: 6bfb ldr r3, [r7, #60] @ 0x3c
  48244. }
  48245. 801462c: 4618 mov r0, r3
  48246. 801462e: 3740 adds r7, #64 @ 0x40
  48247. 8014630: 46bd mov sp, r7
  48248. 8014632: bd80 pop {r7, pc}
  48249. 08014634 <xQueueReceive>:
  48250. return xReturn;
  48251. }
  48252. /*-----------------------------------------------------------*/
  48253. BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
  48254. {
  48255. 8014634: b580 push {r7, lr}
  48256. 8014636: b08c sub sp, #48 @ 0x30
  48257. 8014638: af00 add r7, sp, #0
  48258. 801463a: 60f8 str r0, [r7, #12]
  48259. 801463c: 60b9 str r1, [r7, #8]
  48260. 801463e: 607a str r2, [r7, #4]
  48261. BaseType_t xEntryTimeSet = pdFALSE;
  48262. 8014640: 2300 movs r3, #0
  48263. 8014642: 62fb str r3, [r7, #44] @ 0x2c
  48264. TimeOut_t xTimeOut;
  48265. Queue_t * const pxQueue = xQueue;
  48266. 8014644: 68fb ldr r3, [r7, #12]
  48267. 8014646: 62bb str r3, [r7, #40] @ 0x28
  48268. /* Check the pointer is not NULL. */
  48269. configASSERT( ( pxQueue ) );
  48270. 8014648: 6abb ldr r3, [r7, #40] @ 0x28
  48271. 801464a: 2b00 cmp r3, #0
  48272. 801464c: d10b bne.n 8014666 <xQueueReceive+0x32>
  48273. __asm volatile
  48274. 801464e: f04f 0350 mov.w r3, #80 @ 0x50
  48275. 8014652: f383 8811 msr BASEPRI, r3
  48276. 8014656: f3bf 8f6f isb sy
  48277. 801465a: f3bf 8f4f dsb sy
  48278. 801465e: 623b str r3, [r7, #32]
  48279. }
  48280. 8014660: bf00 nop
  48281. 8014662: bf00 nop
  48282. 8014664: e7fd b.n 8014662 <xQueueReceive+0x2e>
  48283. /* The buffer into which data is received can only be NULL if the data size
  48284. is zero (so no data is copied into the buffer. */
  48285. configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48286. 8014666: 68bb ldr r3, [r7, #8]
  48287. 8014668: 2b00 cmp r3, #0
  48288. 801466a: d103 bne.n 8014674 <xQueueReceive+0x40>
  48289. 801466c: 6abb ldr r3, [r7, #40] @ 0x28
  48290. 801466e: 6c1b ldr r3, [r3, #64] @ 0x40
  48291. 8014670: 2b00 cmp r3, #0
  48292. 8014672: d101 bne.n 8014678 <xQueueReceive+0x44>
  48293. 8014674: 2301 movs r3, #1
  48294. 8014676: e000 b.n 801467a <xQueueReceive+0x46>
  48295. 8014678: 2300 movs r3, #0
  48296. 801467a: 2b00 cmp r3, #0
  48297. 801467c: d10b bne.n 8014696 <xQueueReceive+0x62>
  48298. __asm volatile
  48299. 801467e: f04f 0350 mov.w r3, #80 @ 0x50
  48300. 8014682: f383 8811 msr BASEPRI, r3
  48301. 8014686: f3bf 8f6f isb sy
  48302. 801468a: f3bf 8f4f dsb sy
  48303. 801468e: 61fb str r3, [r7, #28]
  48304. }
  48305. 8014690: bf00 nop
  48306. 8014692: bf00 nop
  48307. 8014694: e7fd b.n 8014692 <xQueueReceive+0x5e>
  48308. /* Cannot block if the scheduler is suspended. */
  48309. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48310. {
  48311. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48312. 8014696: f001 fc23 bl 8015ee0 <xTaskGetSchedulerState>
  48313. 801469a: 4603 mov r3, r0
  48314. 801469c: 2b00 cmp r3, #0
  48315. 801469e: d102 bne.n 80146a6 <xQueueReceive+0x72>
  48316. 80146a0: 687b ldr r3, [r7, #4]
  48317. 80146a2: 2b00 cmp r3, #0
  48318. 80146a4: d101 bne.n 80146aa <xQueueReceive+0x76>
  48319. 80146a6: 2301 movs r3, #1
  48320. 80146a8: e000 b.n 80146ac <xQueueReceive+0x78>
  48321. 80146aa: 2300 movs r3, #0
  48322. 80146ac: 2b00 cmp r3, #0
  48323. 80146ae: d10b bne.n 80146c8 <xQueueReceive+0x94>
  48324. __asm volatile
  48325. 80146b0: f04f 0350 mov.w r3, #80 @ 0x50
  48326. 80146b4: f383 8811 msr BASEPRI, r3
  48327. 80146b8: f3bf 8f6f isb sy
  48328. 80146bc: f3bf 8f4f dsb sy
  48329. 80146c0: 61bb str r3, [r7, #24]
  48330. }
  48331. 80146c2: bf00 nop
  48332. 80146c4: bf00 nop
  48333. 80146c6: e7fd b.n 80146c4 <xQueueReceive+0x90>
  48334. /*lint -save -e904 This function relaxes the coding standard somewhat to
  48335. allow return statements within the function itself. This is done in the
  48336. interest of execution time efficiency. */
  48337. for( ;; )
  48338. {
  48339. taskENTER_CRITICAL();
  48340. 80146c8: f002 fd8e bl 80171e8 <vPortEnterCritical>
  48341. {
  48342. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  48343. 80146cc: 6abb ldr r3, [r7, #40] @ 0x28
  48344. 80146ce: 6b9b ldr r3, [r3, #56] @ 0x38
  48345. 80146d0: 627b str r3, [r7, #36] @ 0x24
  48346. /* Is there data in the queue now? To be running the calling task
  48347. must be the highest priority task wanting to access the queue. */
  48348. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  48349. 80146d2: 6a7b ldr r3, [r7, #36] @ 0x24
  48350. 80146d4: 2b00 cmp r3, #0
  48351. 80146d6: d01f beq.n 8014718 <xQueueReceive+0xe4>
  48352. {
  48353. /* Data available, remove one item. */
  48354. prvCopyDataFromQueue( pxQueue, pvBuffer );
  48355. 80146d8: 68b9 ldr r1, [r7, #8]
  48356. 80146da: 6ab8 ldr r0, [r7, #40] @ 0x28
  48357. 80146dc: f000 faa0 bl 8014c20 <prvCopyDataFromQueue>
  48358. traceQUEUE_RECEIVE( pxQueue );
  48359. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  48360. 80146e0: 6a7b ldr r3, [r7, #36] @ 0x24
  48361. 80146e2: 1e5a subs r2, r3, #1
  48362. 80146e4: 6abb ldr r3, [r7, #40] @ 0x28
  48363. 80146e6: 639a str r2, [r3, #56] @ 0x38
  48364. /* There is now space in the queue, were any tasks waiting to
  48365. post to the queue? If so, unblock the highest priority waiting
  48366. task. */
  48367. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48368. 80146e8: 6abb ldr r3, [r7, #40] @ 0x28
  48369. 80146ea: 691b ldr r3, [r3, #16]
  48370. 80146ec: 2b00 cmp r3, #0
  48371. 80146ee: d00f beq.n 8014710 <xQueueReceive+0xdc>
  48372. {
  48373. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48374. 80146f0: 6abb ldr r3, [r7, #40] @ 0x28
  48375. 80146f2: 3310 adds r3, #16
  48376. 80146f4: 4618 mov r0, r3
  48377. 80146f6: f001 f9f5 bl 8015ae4 <xTaskRemoveFromEventList>
  48378. 80146fa: 4603 mov r3, r0
  48379. 80146fc: 2b00 cmp r3, #0
  48380. 80146fe: d007 beq.n 8014710 <xQueueReceive+0xdc>
  48381. {
  48382. queueYIELD_IF_USING_PREEMPTION();
  48383. 8014700: 4b3c ldr r3, [pc, #240] @ (80147f4 <xQueueReceive+0x1c0>)
  48384. 8014702: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48385. 8014706: 601a str r2, [r3, #0]
  48386. 8014708: f3bf 8f4f dsb sy
  48387. 801470c: f3bf 8f6f isb sy
  48388. else
  48389. {
  48390. mtCOVERAGE_TEST_MARKER();
  48391. }
  48392. taskEXIT_CRITICAL();
  48393. 8014710: f002 fd9c bl 801724c <vPortExitCritical>
  48394. return pdPASS;
  48395. 8014714: 2301 movs r3, #1
  48396. 8014716: e069 b.n 80147ec <xQueueReceive+0x1b8>
  48397. }
  48398. else
  48399. {
  48400. if( xTicksToWait == ( TickType_t ) 0 )
  48401. 8014718: 687b ldr r3, [r7, #4]
  48402. 801471a: 2b00 cmp r3, #0
  48403. 801471c: d103 bne.n 8014726 <xQueueReceive+0xf2>
  48404. {
  48405. /* The queue was empty and no block time is specified (or
  48406. the block time has expired) so leave now. */
  48407. taskEXIT_CRITICAL();
  48408. 801471e: f002 fd95 bl 801724c <vPortExitCritical>
  48409. traceQUEUE_RECEIVE_FAILED( pxQueue );
  48410. return errQUEUE_EMPTY;
  48411. 8014722: 2300 movs r3, #0
  48412. 8014724: e062 b.n 80147ec <xQueueReceive+0x1b8>
  48413. }
  48414. else if( xEntryTimeSet == pdFALSE )
  48415. 8014726: 6afb ldr r3, [r7, #44] @ 0x2c
  48416. 8014728: 2b00 cmp r3, #0
  48417. 801472a: d106 bne.n 801473a <xQueueReceive+0x106>
  48418. {
  48419. /* The queue was empty and a block time was specified so
  48420. configure the timeout structure. */
  48421. vTaskInternalSetTimeOutState( &xTimeOut );
  48422. 801472c: f107 0310 add.w r3, r7, #16
  48423. 8014730: 4618 mov r0, r3
  48424. 8014732: f001 fa63 bl 8015bfc <vTaskInternalSetTimeOutState>
  48425. xEntryTimeSet = pdTRUE;
  48426. 8014736: 2301 movs r3, #1
  48427. 8014738: 62fb str r3, [r7, #44] @ 0x2c
  48428. /* Entry time was already set. */
  48429. mtCOVERAGE_TEST_MARKER();
  48430. }
  48431. }
  48432. }
  48433. taskEXIT_CRITICAL();
  48434. 801473a: f002 fd87 bl 801724c <vPortExitCritical>
  48435. /* Interrupts and other tasks can send to and receive from the queue
  48436. now the critical section has been exited. */
  48437. vTaskSuspendAll();
  48438. 801473e: f000 ff95 bl 801566c <vTaskSuspendAll>
  48439. prvLockQueue( pxQueue );
  48440. 8014742: f002 fd51 bl 80171e8 <vPortEnterCritical>
  48441. 8014746: 6abb ldr r3, [r7, #40] @ 0x28
  48442. 8014748: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  48443. 801474c: b25b sxtb r3, r3
  48444. 801474e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48445. 8014752: d103 bne.n 801475c <xQueueReceive+0x128>
  48446. 8014754: 6abb ldr r3, [r7, #40] @ 0x28
  48447. 8014756: 2200 movs r2, #0
  48448. 8014758: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48449. 801475c: 6abb ldr r3, [r7, #40] @ 0x28
  48450. 801475e: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48451. 8014762: b25b sxtb r3, r3
  48452. 8014764: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48453. 8014768: d103 bne.n 8014772 <xQueueReceive+0x13e>
  48454. 801476a: 6abb ldr r3, [r7, #40] @ 0x28
  48455. 801476c: 2200 movs r2, #0
  48456. 801476e: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48457. 8014772: f002 fd6b bl 801724c <vPortExitCritical>
  48458. /* Update the timeout state to see if it has expired yet. */
  48459. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  48460. 8014776: 1d3a adds r2, r7, #4
  48461. 8014778: f107 0310 add.w r3, r7, #16
  48462. 801477c: 4611 mov r1, r2
  48463. 801477e: 4618 mov r0, r3
  48464. 8014780: f001 fa52 bl 8015c28 <xTaskCheckForTimeOut>
  48465. 8014784: 4603 mov r3, r0
  48466. 8014786: 2b00 cmp r3, #0
  48467. 8014788: d123 bne.n 80147d2 <xQueueReceive+0x19e>
  48468. {
  48469. /* The timeout has not expired. If the queue is still empty place
  48470. the task on the list of tasks waiting to receive from the queue. */
  48471. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  48472. 801478a: 6ab8 ldr r0, [r7, #40] @ 0x28
  48473. 801478c: f000 fac0 bl 8014d10 <prvIsQueueEmpty>
  48474. 8014790: 4603 mov r3, r0
  48475. 8014792: 2b00 cmp r3, #0
  48476. 8014794: d017 beq.n 80147c6 <xQueueReceive+0x192>
  48477. {
  48478. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  48479. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  48480. 8014796: 6abb ldr r3, [r7, #40] @ 0x28
  48481. 8014798: 3324 adds r3, #36 @ 0x24
  48482. 801479a: 687a ldr r2, [r7, #4]
  48483. 801479c: 4611 mov r1, r2
  48484. 801479e: 4618 mov r0, r3
  48485. 80147a0: f001 f94e bl 8015a40 <vTaskPlaceOnEventList>
  48486. prvUnlockQueue( pxQueue );
  48487. 80147a4: 6ab8 ldr r0, [r7, #40] @ 0x28
  48488. 80147a6: f000 fa61 bl 8014c6c <prvUnlockQueue>
  48489. if( xTaskResumeAll() == pdFALSE )
  48490. 80147aa: f000 ff6d bl 8015688 <xTaskResumeAll>
  48491. 80147ae: 4603 mov r3, r0
  48492. 80147b0: 2b00 cmp r3, #0
  48493. 80147b2: d189 bne.n 80146c8 <xQueueReceive+0x94>
  48494. {
  48495. portYIELD_WITHIN_API();
  48496. 80147b4: 4b0f ldr r3, [pc, #60] @ (80147f4 <xQueueReceive+0x1c0>)
  48497. 80147b6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48498. 80147ba: 601a str r2, [r3, #0]
  48499. 80147bc: f3bf 8f4f dsb sy
  48500. 80147c0: f3bf 8f6f isb sy
  48501. 80147c4: e780 b.n 80146c8 <xQueueReceive+0x94>
  48502. }
  48503. else
  48504. {
  48505. /* The queue contains data again. Loop back to try and read the
  48506. data. */
  48507. prvUnlockQueue( pxQueue );
  48508. 80147c6: 6ab8 ldr r0, [r7, #40] @ 0x28
  48509. 80147c8: f000 fa50 bl 8014c6c <prvUnlockQueue>
  48510. ( void ) xTaskResumeAll();
  48511. 80147cc: f000 ff5c bl 8015688 <xTaskResumeAll>
  48512. 80147d0: e77a b.n 80146c8 <xQueueReceive+0x94>
  48513. }
  48514. else
  48515. {
  48516. /* Timed out. If there is no data in the queue exit, otherwise loop
  48517. back and attempt to read the data. */
  48518. prvUnlockQueue( pxQueue );
  48519. 80147d2: 6ab8 ldr r0, [r7, #40] @ 0x28
  48520. 80147d4: f000 fa4a bl 8014c6c <prvUnlockQueue>
  48521. ( void ) xTaskResumeAll();
  48522. 80147d8: f000 ff56 bl 8015688 <xTaskResumeAll>
  48523. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  48524. 80147dc: 6ab8 ldr r0, [r7, #40] @ 0x28
  48525. 80147de: f000 fa97 bl 8014d10 <prvIsQueueEmpty>
  48526. 80147e2: 4603 mov r3, r0
  48527. 80147e4: 2b00 cmp r3, #0
  48528. 80147e6: f43f af6f beq.w 80146c8 <xQueueReceive+0x94>
  48529. {
  48530. traceQUEUE_RECEIVE_FAILED( pxQueue );
  48531. return errQUEUE_EMPTY;
  48532. 80147ea: 2300 movs r3, #0
  48533. {
  48534. mtCOVERAGE_TEST_MARKER();
  48535. }
  48536. }
  48537. } /*lint -restore */
  48538. }
  48539. 80147ec: 4618 mov r0, r3
  48540. 80147ee: 3730 adds r7, #48 @ 0x30
  48541. 80147f0: 46bd mov sp, r7
  48542. 80147f2: bd80 pop {r7, pc}
  48543. 80147f4: e000ed04 .word 0xe000ed04
  48544. 080147f8 <xQueueSemaphoreTake>:
  48545. /*-----------------------------------------------------------*/
  48546. BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
  48547. {
  48548. 80147f8: b580 push {r7, lr}
  48549. 80147fa: b08e sub sp, #56 @ 0x38
  48550. 80147fc: af00 add r7, sp, #0
  48551. 80147fe: 6078 str r0, [r7, #4]
  48552. 8014800: 6039 str r1, [r7, #0]
  48553. BaseType_t xEntryTimeSet = pdFALSE;
  48554. 8014802: 2300 movs r3, #0
  48555. 8014804: 637b str r3, [r7, #52] @ 0x34
  48556. TimeOut_t xTimeOut;
  48557. Queue_t * const pxQueue = xQueue;
  48558. 8014806: 687b ldr r3, [r7, #4]
  48559. 8014808: 62fb str r3, [r7, #44] @ 0x2c
  48560. #if( configUSE_MUTEXES == 1 )
  48561. BaseType_t xInheritanceOccurred = pdFALSE;
  48562. 801480a: 2300 movs r3, #0
  48563. 801480c: 633b str r3, [r7, #48] @ 0x30
  48564. #endif
  48565. /* Check the queue pointer is not NULL. */
  48566. configASSERT( ( pxQueue ) );
  48567. 801480e: 6afb ldr r3, [r7, #44] @ 0x2c
  48568. 8014810: 2b00 cmp r3, #0
  48569. 8014812: d10b bne.n 801482c <xQueueSemaphoreTake+0x34>
  48570. __asm volatile
  48571. 8014814: f04f 0350 mov.w r3, #80 @ 0x50
  48572. 8014818: f383 8811 msr BASEPRI, r3
  48573. 801481c: f3bf 8f6f isb sy
  48574. 8014820: f3bf 8f4f dsb sy
  48575. 8014824: 623b str r3, [r7, #32]
  48576. }
  48577. 8014826: bf00 nop
  48578. 8014828: bf00 nop
  48579. 801482a: e7fd b.n 8014828 <xQueueSemaphoreTake+0x30>
  48580. /* Check this really is a semaphore, in which case the item size will be
  48581. 0. */
  48582. configASSERT( pxQueue->uxItemSize == 0 );
  48583. 801482c: 6afb ldr r3, [r7, #44] @ 0x2c
  48584. 801482e: 6c1b ldr r3, [r3, #64] @ 0x40
  48585. 8014830: 2b00 cmp r3, #0
  48586. 8014832: d00b beq.n 801484c <xQueueSemaphoreTake+0x54>
  48587. __asm volatile
  48588. 8014834: f04f 0350 mov.w r3, #80 @ 0x50
  48589. 8014838: f383 8811 msr BASEPRI, r3
  48590. 801483c: f3bf 8f6f isb sy
  48591. 8014840: f3bf 8f4f dsb sy
  48592. 8014844: 61fb str r3, [r7, #28]
  48593. }
  48594. 8014846: bf00 nop
  48595. 8014848: bf00 nop
  48596. 801484a: e7fd b.n 8014848 <xQueueSemaphoreTake+0x50>
  48597. /* Cannot block if the scheduler is suspended. */
  48598. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  48599. {
  48600. configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
  48601. 801484c: f001 fb48 bl 8015ee0 <xTaskGetSchedulerState>
  48602. 8014850: 4603 mov r3, r0
  48603. 8014852: 2b00 cmp r3, #0
  48604. 8014854: d102 bne.n 801485c <xQueueSemaphoreTake+0x64>
  48605. 8014856: 683b ldr r3, [r7, #0]
  48606. 8014858: 2b00 cmp r3, #0
  48607. 801485a: d101 bne.n 8014860 <xQueueSemaphoreTake+0x68>
  48608. 801485c: 2301 movs r3, #1
  48609. 801485e: e000 b.n 8014862 <xQueueSemaphoreTake+0x6a>
  48610. 8014860: 2300 movs r3, #0
  48611. 8014862: 2b00 cmp r3, #0
  48612. 8014864: d10b bne.n 801487e <xQueueSemaphoreTake+0x86>
  48613. __asm volatile
  48614. 8014866: f04f 0350 mov.w r3, #80 @ 0x50
  48615. 801486a: f383 8811 msr BASEPRI, r3
  48616. 801486e: f3bf 8f6f isb sy
  48617. 8014872: f3bf 8f4f dsb sy
  48618. 8014876: 61bb str r3, [r7, #24]
  48619. }
  48620. 8014878: bf00 nop
  48621. 801487a: bf00 nop
  48622. 801487c: e7fd b.n 801487a <xQueueSemaphoreTake+0x82>
  48623. /*lint -save -e904 This function relaxes the coding standard somewhat to allow return
  48624. statements within the function itself. This is done in the interest
  48625. of execution time efficiency. */
  48626. for( ;; )
  48627. {
  48628. taskENTER_CRITICAL();
  48629. 801487e: f002 fcb3 bl 80171e8 <vPortEnterCritical>
  48630. {
  48631. /* Semaphores are queues with an item size of 0, and where the
  48632. number of messages in the queue is the semaphore's count value. */
  48633. const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
  48634. 8014882: 6afb ldr r3, [r7, #44] @ 0x2c
  48635. 8014884: 6b9b ldr r3, [r3, #56] @ 0x38
  48636. 8014886: 62bb str r3, [r7, #40] @ 0x28
  48637. /* Is there data in the queue now? To be running the calling task
  48638. must be the highest priority task wanting to access the queue. */
  48639. if( uxSemaphoreCount > ( UBaseType_t ) 0 )
  48640. 8014888: 6abb ldr r3, [r7, #40] @ 0x28
  48641. 801488a: 2b00 cmp r3, #0
  48642. 801488c: d024 beq.n 80148d8 <xQueueSemaphoreTake+0xe0>
  48643. {
  48644. traceQUEUE_RECEIVE( pxQueue );
  48645. /* Semaphores are queues with a data size of zero and where the
  48646. messages waiting is the semaphore's count. Reduce the count. */
  48647. pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
  48648. 801488e: 6abb ldr r3, [r7, #40] @ 0x28
  48649. 8014890: 1e5a subs r2, r3, #1
  48650. 8014892: 6afb ldr r3, [r7, #44] @ 0x2c
  48651. 8014894: 639a str r2, [r3, #56] @ 0x38
  48652. #if ( configUSE_MUTEXES == 1 )
  48653. {
  48654. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  48655. 8014896: 6afb ldr r3, [r7, #44] @ 0x2c
  48656. 8014898: 681b ldr r3, [r3, #0]
  48657. 801489a: 2b00 cmp r3, #0
  48658. 801489c: d104 bne.n 80148a8 <xQueueSemaphoreTake+0xb0>
  48659. {
  48660. /* Record the information required to implement
  48661. priority inheritance should it become necessary. */
  48662. pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
  48663. 801489e: f001 fc99 bl 80161d4 <pvTaskIncrementMutexHeldCount>
  48664. 80148a2: 4602 mov r2, r0
  48665. 80148a4: 6afb ldr r3, [r7, #44] @ 0x2c
  48666. 80148a6: 609a str r2, [r3, #8]
  48667. }
  48668. #endif /* configUSE_MUTEXES */
  48669. /* Check to see if other tasks are blocked waiting to give the
  48670. semaphore, and if so, unblock the highest priority such task. */
  48671. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  48672. 80148a8: 6afb ldr r3, [r7, #44] @ 0x2c
  48673. 80148aa: 691b ldr r3, [r3, #16]
  48674. 80148ac: 2b00 cmp r3, #0
  48675. 80148ae: d00f beq.n 80148d0 <xQueueSemaphoreTake+0xd8>
  48676. {
  48677. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  48678. 80148b0: 6afb ldr r3, [r7, #44] @ 0x2c
  48679. 80148b2: 3310 adds r3, #16
  48680. 80148b4: 4618 mov r0, r3
  48681. 80148b6: f001 f915 bl 8015ae4 <xTaskRemoveFromEventList>
  48682. 80148ba: 4603 mov r3, r0
  48683. 80148bc: 2b00 cmp r3, #0
  48684. 80148be: d007 beq.n 80148d0 <xQueueSemaphoreTake+0xd8>
  48685. {
  48686. queueYIELD_IF_USING_PREEMPTION();
  48687. 80148c0: 4b54 ldr r3, [pc, #336] @ (8014a14 <xQueueSemaphoreTake+0x21c>)
  48688. 80148c2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48689. 80148c6: 601a str r2, [r3, #0]
  48690. 80148c8: f3bf 8f4f dsb sy
  48691. 80148cc: f3bf 8f6f isb sy
  48692. else
  48693. {
  48694. mtCOVERAGE_TEST_MARKER();
  48695. }
  48696. taskEXIT_CRITICAL();
  48697. 80148d0: f002 fcbc bl 801724c <vPortExitCritical>
  48698. return pdPASS;
  48699. 80148d4: 2301 movs r3, #1
  48700. 80148d6: e098 b.n 8014a0a <xQueueSemaphoreTake+0x212>
  48701. }
  48702. else
  48703. {
  48704. if( xTicksToWait == ( TickType_t ) 0 )
  48705. 80148d8: 683b ldr r3, [r7, #0]
  48706. 80148da: 2b00 cmp r3, #0
  48707. 80148dc: d112 bne.n 8014904 <xQueueSemaphoreTake+0x10c>
  48708. /* For inheritance to have occurred there must have been an
  48709. initial timeout, and an adjusted timeout cannot become 0, as
  48710. if it were 0 the function would have exited. */
  48711. #if( configUSE_MUTEXES == 1 )
  48712. {
  48713. configASSERT( xInheritanceOccurred == pdFALSE );
  48714. 80148de: 6b3b ldr r3, [r7, #48] @ 0x30
  48715. 80148e0: 2b00 cmp r3, #0
  48716. 80148e2: d00b beq.n 80148fc <xQueueSemaphoreTake+0x104>
  48717. __asm volatile
  48718. 80148e4: f04f 0350 mov.w r3, #80 @ 0x50
  48719. 80148e8: f383 8811 msr BASEPRI, r3
  48720. 80148ec: f3bf 8f6f isb sy
  48721. 80148f0: f3bf 8f4f dsb sy
  48722. 80148f4: 617b str r3, [r7, #20]
  48723. }
  48724. 80148f6: bf00 nop
  48725. 80148f8: bf00 nop
  48726. 80148fa: e7fd b.n 80148f8 <xQueueSemaphoreTake+0x100>
  48727. }
  48728. #endif /* configUSE_MUTEXES */
  48729. /* The semaphore count was 0 and no block time is specified
  48730. (or the block time has expired) so exit now. */
  48731. taskEXIT_CRITICAL();
  48732. 80148fc: f002 fca6 bl 801724c <vPortExitCritical>
  48733. traceQUEUE_RECEIVE_FAILED( pxQueue );
  48734. return errQUEUE_EMPTY;
  48735. 8014900: 2300 movs r3, #0
  48736. 8014902: e082 b.n 8014a0a <xQueueSemaphoreTake+0x212>
  48737. }
  48738. else if( xEntryTimeSet == pdFALSE )
  48739. 8014904: 6b7b ldr r3, [r7, #52] @ 0x34
  48740. 8014906: 2b00 cmp r3, #0
  48741. 8014908: d106 bne.n 8014918 <xQueueSemaphoreTake+0x120>
  48742. {
  48743. /* The semaphore count was 0 and a block time was specified
  48744. so configure the timeout structure ready to block. */
  48745. vTaskInternalSetTimeOutState( &xTimeOut );
  48746. 801490a: f107 030c add.w r3, r7, #12
  48747. 801490e: 4618 mov r0, r3
  48748. 8014910: f001 f974 bl 8015bfc <vTaskInternalSetTimeOutState>
  48749. xEntryTimeSet = pdTRUE;
  48750. 8014914: 2301 movs r3, #1
  48751. 8014916: 637b str r3, [r7, #52] @ 0x34
  48752. /* Entry time was already set. */
  48753. mtCOVERAGE_TEST_MARKER();
  48754. }
  48755. }
  48756. }
  48757. taskEXIT_CRITICAL();
  48758. 8014918: f002 fc98 bl 801724c <vPortExitCritical>
  48759. /* Interrupts and other tasks can give to and take from the semaphore
  48760. now the critical section has been exited. */
  48761. vTaskSuspendAll();
  48762. 801491c: f000 fea6 bl 801566c <vTaskSuspendAll>
  48763. prvLockQueue( pxQueue );
  48764. 8014920: f002 fc62 bl 80171e8 <vPortEnterCritical>
  48765. 8014924: 6afb ldr r3, [r7, #44] @ 0x2c
  48766. 8014926: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  48767. 801492a: b25b sxtb r3, r3
  48768. 801492c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48769. 8014930: d103 bne.n 801493a <xQueueSemaphoreTake+0x142>
  48770. 8014932: 6afb ldr r3, [r7, #44] @ 0x2c
  48771. 8014934: 2200 movs r2, #0
  48772. 8014936: f883 2044 strb.w r2, [r3, #68] @ 0x44
  48773. 801493a: 6afb ldr r3, [r7, #44] @ 0x2c
  48774. 801493c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  48775. 8014940: b25b sxtb r3, r3
  48776. 8014942: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  48777. 8014946: d103 bne.n 8014950 <xQueueSemaphoreTake+0x158>
  48778. 8014948: 6afb ldr r3, [r7, #44] @ 0x2c
  48779. 801494a: 2200 movs r2, #0
  48780. 801494c: f883 2045 strb.w r2, [r3, #69] @ 0x45
  48781. 8014950: f002 fc7c bl 801724c <vPortExitCritical>
  48782. /* Update the timeout state to see if it has expired yet. */
  48783. if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
  48784. 8014954: 463a mov r2, r7
  48785. 8014956: f107 030c add.w r3, r7, #12
  48786. 801495a: 4611 mov r1, r2
  48787. 801495c: 4618 mov r0, r3
  48788. 801495e: f001 f963 bl 8015c28 <xTaskCheckForTimeOut>
  48789. 8014962: 4603 mov r3, r0
  48790. 8014964: 2b00 cmp r3, #0
  48791. 8014966: d132 bne.n 80149ce <xQueueSemaphoreTake+0x1d6>
  48792. {
  48793. /* A block time is specified and not expired. If the semaphore
  48794. count is 0 then enter the Blocked state to wait for a semaphore to
  48795. become available. As semaphores are implemented with queues the
  48796. queue being empty is equivalent to the semaphore count being 0. */
  48797. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  48798. 8014968: 6af8 ldr r0, [r7, #44] @ 0x2c
  48799. 801496a: f000 f9d1 bl 8014d10 <prvIsQueueEmpty>
  48800. 801496e: 4603 mov r3, r0
  48801. 8014970: 2b00 cmp r3, #0
  48802. 8014972: d026 beq.n 80149c2 <xQueueSemaphoreTake+0x1ca>
  48803. {
  48804. traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
  48805. #if ( configUSE_MUTEXES == 1 )
  48806. {
  48807. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  48808. 8014974: 6afb ldr r3, [r7, #44] @ 0x2c
  48809. 8014976: 681b ldr r3, [r3, #0]
  48810. 8014978: 2b00 cmp r3, #0
  48811. 801497a: d109 bne.n 8014990 <xQueueSemaphoreTake+0x198>
  48812. {
  48813. taskENTER_CRITICAL();
  48814. 801497c: f002 fc34 bl 80171e8 <vPortEnterCritical>
  48815. {
  48816. xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
  48817. 8014980: 6afb ldr r3, [r7, #44] @ 0x2c
  48818. 8014982: 689b ldr r3, [r3, #8]
  48819. 8014984: 4618 mov r0, r3
  48820. 8014986: f001 fac9 bl 8015f1c <xTaskPriorityInherit>
  48821. 801498a: 6338 str r0, [r7, #48] @ 0x30
  48822. }
  48823. taskEXIT_CRITICAL();
  48824. 801498c: f002 fc5e bl 801724c <vPortExitCritical>
  48825. mtCOVERAGE_TEST_MARKER();
  48826. }
  48827. }
  48828. #endif
  48829. vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
  48830. 8014990: 6afb ldr r3, [r7, #44] @ 0x2c
  48831. 8014992: 3324 adds r3, #36 @ 0x24
  48832. 8014994: 683a ldr r2, [r7, #0]
  48833. 8014996: 4611 mov r1, r2
  48834. 8014998: 4618 mov r0, r3
  48835. 801499a: f001 f851 bl 8015a40 <vTaskPlaceOnEventList>
  48836. prvUnlockQueue( pxQueue );
  48837. 801499e: 6af8 ldr r0, [r7, #44] @ 0x2c
  48838. 80149a0: f000 f964 bl 8014c6c <prvUnlockQueue>
  48839. if( xTaskResumeAll() == pdFALSE )
  48840. 80149a4: f000 fe70 bl 8015688 <xTaskResumeAll>
  48841. 80149a8: 4603 mov r3, r0
  48842. 80149aa: 2b00 cmp r3, #0
  48843. 80149ac: f47f af67 bne.w 801487e <xQueueSemaphoreTake+0x86>
  48844. {
  48845. portYIELD_WITHIN_API();
  48846. 80149b0: 4b18 ldr r3, [pc, #96] @ (8014a14 <xQueueSemaphoreTake+0x21c>)
  48847. 80149b2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  48848. 80149b6: 601a str r2, [r3, #0]
  48849. 80149b8: f3bf 8f4f dsb sy
  48850. 80149bc: f3bf 8f6f isb sy
  48851. 80149c0: e75d b.n 801487e <xQueueSemaphoreTake+0x86>
  48852. }
  48853. else
  48854. {
  48855. /* There was no timeout and the semaphore count was not 0, so
  48856. attempt to take the semaphore again. */
  48857. prvUnlockQueue( pxQueue );
  48858. 80149c2: 6af8 ldr r0, [r7, #44] @ 0x2c
  48859. 80149c4: f000 f952 bl 8014c6c <prvUnlockQueue>
  48860. ( void ) xTaskResumeAll();
  48861. 80149c8: f000 fe5e bl 8015688 <xTaskResumeAll>
  48862. 80149cc: e757 b.n 801487e <xQueueSemaphoreTake+0x86>
  48863. }
  48864. }
  48865. else
  48866. {
  48867. /* Timed out. */
  48868. prvUnlockQueue( pxQueue );
  48869. 80149ce: 6af8 ldr r0, [r7, #44] @ 0x2c
  48870. 80149d0: f000 f94c bl 8014c6c <prvUnlockQueue>
  48871. ( void ) xTaskResumeAll();
  48872. 80149d4: f000 fe58 bl 8015688 <xTaskResumeAll>
  48873. /* If the semaphore count is 0 exit now as the timeout has
  48874. expired. Otherwise return to attempt to take the semaphore that is
  48875. known to be available. As semaphores are implemented by queues the
  48876. queue being empty is equivalent to the semaphore count being 0. */
  48877. if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
  48878. 80149d8: 6af8 ldr r0, [r7, #44] @ 0x2c
  48879. 80149da: f000 f999 bl 8014d10 <prvIsQueueEmpty>
  48880. 80149de: 4603 mov r3, r0
  48881. 80149e0: 2b00 cmp r3, #0
  48882. 80149e2: f43f af4c beq.w 801487e <xQueueSemaphoreTake+0x86>
  48883. #if ( configUSE_MUTEXES == 1 )
  48884. {
  48885. /* xInheritanceOccurred could only have be set if
  48886. pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
  48887. test the mutex type again to check it is actually a mutex. */
  48888. if( xInheritanceOccurred != pdFALSE )
  48889. 80149e6: 6b3b ldr r3, [r7, #48] @ 0x30
  48890. 80149e8: 2b00 cmp r3, #0
  48891. 80149ea: d00d beq.n 8014a08 <xQueueSemaphoreTake+0x210>
  48892. {
  48893. taskENTER_CRITICAL();
  48894. 80149ec: f002 fbfc bl 80171e8 <vPortEnterCritical>
  48895. /* This task blocking on the mutex caused another
  48896. task to inherit this task's priority. Now this task
  48897. has timed out the priority should be disinherited
  48898. again, but only as low as the next highest priority
  48899. task that is waiting for the same mutex. */
  48900. uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
  48901. 80149f0: 6af8 ldr r0, [r7, #44] @ 0x2c
  48902. 80149f2: f000 f893 bl 8014b1c <prvGetDisinheritPriorityAfterTimeout>
  48903. 80149f6: 6278 str r0, [r7, #36] @ 0x24
  48904. vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
  48905. 80149f8: 6afb ldr r3, [r7, #44] @ 0x2c
  48906. 80149fa: 689b ldr r3, [r3, #8]
  48907. 80149fc: 6a79 ldr r1, [r7, #36] @ 0x24
  48908. 80149fe: 4618 mov r0, r3
  48909. 8014a00: f001 fb64 bl 80160cc <vTaskPriorityDisinheritAfterTimeout>
  48910. }
  48911. taskEXIT_CRITICAL();
  48912. 8014a04: f002 fc22 bl 801724c <vPortExitCritical>
  48913. }
  48914. }
  48915. #endif /* configUSE_MUTEXES */
  48916. traceQUEUE_RECEIVE_FAILED( pxQueue );
  48917. return errQUEUE_EMPTY;
  48918. 8014a08: 2300 movs r3, #0
  48919. {
  48920. mtCOVERAGE_TEST_MARKER();
  48921. }
  48922. }
  48923. } /*lint -restore */
  48924. }
  48925. 8014a0a: 4618 mov r0, r3
  48926. 8014a0c: 3738 adds r7, #56 @ 0x38
  48927. 8014a0e: 46bd mov sp, r7
  48928. 8014a10: bd80 pop {r7, pc}
  48929. 8014a12: bf00 nop
  48930. 8014a14: e000ed04 .word 0xe000ed04
  48931. 08014a18 <xQueueReceiveFromISR>:
  48932. } /*lint -restore */
  48933. }
  48934. /*-----------------------------------------------------------*/
  48935. BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
  48936. {
  48937. 8014a18: b580 push {r7, lr}
  48938. 8014a1a: b08e sub sp, #56 @ 0x38
  48939. 8014a1c: af00 add r7, sp, #0
  48940. 8014a1e: 60f8 str r0, [r7, #12]
  48941. 8014a20: 60b9 str r1, [r7, #8]
  48942. 8014a22: 607a str r2, [r7, #4]
  48943. BaseType_t xReturn;
  48944. UBaseType_t uxSavedInterruptStatus;
  48945. Queue_t * const pxQueue = xQueue;
  48946. 8014a24: 68fb ldr r3, [r7, #12]
  48947. 8014a26: 633b str r3, [r7, #48] @ 0x30
  48948. configASSERT( pxQueue );
  48949. 8014a28: 6b3b ldr r3, [r7, #48] @ 0x30
  48950. 8014a2a: 2b00 cmp r3, #0
  48951. 8014a2c: d10b bne.n 8014a46 <xQueueReceiveFromISR+0x2e>
  48952. __asm volatile
  48953. 8014a2e: f04f 0350 mov.w r3, #80 @ 0x50
  48954. 8014a32: f383 8811 msr BASEPRI, r3
  48955. 8014a36: f3bf 8f6f isb sy
  48956. 8014a3a: f3bf 8f4f dsb sy
  48957. 8014a3e: 623b str r3, [r7, #32]
  48958. }
  48959. 8014a40: bf00 nop
  48960. 8014a42: bf00 nop
  48961. 8014a44: e7fd b.n 8014a42 <xQueueReceiveFromISR+0x2a>
  48962. configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
  48963. 8014a46: 68bb ldr r3, [r7, #8]
  48964. 8014a48: 2b00 cmp r3, #0
  48965. 8014a4a: d103 bne.n 8014a54 <xQueueReceiveFromISR+0x3c>
  48966. 8014a4c: 6b3b ldr r3, [r7, #48] @ 0x30
  48967. 8014a4e: 6c1b ldr r3, [r3, #64] @ 0x40
  48968. 8014a50: 2b00 cmp r3, #0
  48969. 8014a52: d101 bne.n 8014a58 <xQueueReceiveFromISR+0x40>
  48970. 8014a54: 2301 movs r3, #1
  48971. 8014a56: e000 b.n 8014a5a <xQueueReceiveFromISR+0x42>
  48972. 8014a58: 2300 movs r3, #0
  48973. 8014a5a: 2b00 cmp r3, #0
  48974. 8014a5c: d10b bne.n 8014a76 <xQueueReceiveFromISR+0x5e>
  48975. __asm volatile
  48976. 8014a5e: f04f 0350 mov.w r3, #80 @ 0x50
  48977. 8014a62: f383 8811 msr BASEPRI, r3
  48978. 8014a66: f3bf 8f6f isb sy
  48979. 8014a6a: f3bf 8f4f dsb sy
  48980. 8014a6e: 61fb str r3, [r7, #28]
  48981. }
  48982. 8014a70: bf00 nop
  48983. 8014a72: bf00 nop
  48984. 8014a74: e7fd b.n 8014a72 <xQueueReceiveFromISR+0x5a>
  48985. that have been assigned a priority at or (logically) below the maximum
  48986. system call interrupt priority. FreeRTOS maintains a separate interrupt
  48987. safe API to ensure interrupt entry is as fast and as simple as possible.
  48988. More information (albeit Cortex-M specific) is provided on the following
  48989. link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  48990. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  48991. 8014a76: f002 fc97 bl 80173a8 <vPortValidateInterruptPriority>
  48992. __asm volatile
  48993. 8014a7a: f3ef 8211 mrs r2, BASEPRI
  48994. 8014a7e: f04f 0350 mov.w r3, #80 @ 0x50
  48995. 8014a82: f383 8811 msr BASEPRI, r3
  48996. 8014a86: f3bf 8f6f isb sy
  48997. 8014a8a: f3bf 8f4f dsb sy
  48998. 8014a8e: 61ba str r2, [r7, #24]
  48999. 8014a90: 617b str r3, [r7, #20]
  49000. return ulOriginalBASEPRI;
  49001. 8014a92: 69bb ldr r3, [r7, #24]
  49002. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  49003. 8014a94: 62fb str r3, [r7, #44] @ 0x2c
  49004. {
  49005. const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49006. 8014a96: 6b3b ldr r3, [r7, #48] @ 0x30
  49007. 8014a98: 6b9b ldr r3, [r3, #56] @ 0x38
  49008. 8014a9a: 62bb str r3, [r7, #40] @ 0x28
  49009. /* Cannot block in an ISR, so check there is data available. */
  49010. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49011. 8014a9c: 6abb ldr r3, [r7, #40] @ 0x28
  49012. 8014a9e: 2b00 cmp r3, #0
  49013. 8014aa0: d02f beq.n 8014b02 <xQueueReceiveFromISR+0xea>
  49014. {
  49015. const int8_t cRxLock = pxQueue->cRxLock;
  49016. 8014aa2: 6b3b ldr r3, [r7, #48] @ 0x30
  49017. 8014aa4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49018. 8014aa8: f887 3027 strb.w r3, [r7, #39] @ 0x27
  49019. traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
  49020. prvCopyDataFromQueue( pxQueue, pvBuffer );
  49021. 8014aac: 68b9 ldr r1, [r7, #8]
  49022. 8014aae: 6b38 ldr r0, [r7, #48] @ 0x30
  49023. 8014ab0: f000 f8b6 bl 8014c20 <prvCopyDataFromQueue>
  49024. pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
  49025. 8014ab4: 6abb ldr r3, [r7, #40] @ 0x28
  49026. 8014ab6: 1e5a subs r2, r3, #1
  49027. 8014ab8: 6b3b ldr r3, [r7, #48] @ 0x30
  49028. 8014aba: 639a str r2, [r3, #56] @ 0x38
  49029. /* If the queue is locked the event list will not be modified.
  49030. Instead update the lock count so the task that unlocks the queue
  49031. will know that an ISR has removed data while the queue was
  49032. locked. */
  49033. if( cRxLock == queueUNLOCKED )
  49034. 8014abc: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
  49035. 8014ac0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49036. 8014ac4: d112 bne.n 8014aec <xQueueReceiveFromISR+0xd4>
  49037. {
  49038. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49039. 8014ac6: 6b3b ldr r3, [r7, #48] @ 0x30
  49040. 8014ac8: 691b ldr r3, [r3, #16]
  49041. 8014aca: 2b00 cmp r3, #0
  49042. 8014acc: d016 beq.n 8014afc <xQueueReceiveFromISR+0xe4>
  49043. {
  49044. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49045. 8014ace: 6b3b ldr r3, [r7, #48] @ 0x30
  49046. 8014ad0: 3310 adds r3, #16
  49047. 8014ad2: 4618 mov r0, r3
  49048. 8014ad4: f001 f806 bl 8015ae4 <xTaskRemoveFromEventList>
  49049. 8014ad8: 4603 mov r3, r0
  49050. 8014ada: 2b00 cmp r3, #0
  49051. 8014adc: d00e beq.n 8014afc <xQueueReceiveFromISR+0xe4>
  49052. {
  49053. /* The task waiting has a higher priority than us so
  49054. force a context switch. */
  49055. if( pxHigherPriorityTaskWoken != NULL )
  49056. 8014ade: 687b ldr r3, [r7, #4]
  49057. 8014ae0: 2b00 cmp r3, #0
  49058. 8014ae2: d00b beq.n 8014afc <xQueueReceiveFromISR+0xe4>
  49059. {
  49060. *pxHigherPriorityTaskWoken = pdTRUE;
  49061. 8014ae4: 687b ldr r3, [r7, #4]
  49062. 8014ae6: 2201 movs r2, #1
  49063. 8014ae8: 601a str r2, [r3, #0]
  49064. 8014aea: e007 b.n 8014afc <xQueueReceiveFromISR+0xe4>
  49065. }
  49066. else
  49067. {
  49068. /* Increment the lock count so the task that unlocks the queue
  49069. knows that data was removed while it was locked. */
  49070. pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
  49071. 8014aec: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
  49072. 8014af0: 3301 adds r3, #1
  49073. 8014af2: b2db uxtb r3, r3
  49074. 8014af4: b25a sxtb r2, r3
  49075. 8014af6: 6b3b ldr r3, [r7, #48] @ 0x30
  49076. 8014af8: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49077. }
  49078. xReturn = pdPASS;
  49079. 8014afc: 2301 movs r3, #1
  49080. 8014afe: 637b str r3, [r7, #52] @ 0x34
  49081. 8014b00: e001 b.n 8014b06 <xQueueReceiveFromISR+0xee>
  49082. }
  49083. else
  49084. {
  49085. xReturn = pdFAIL;
  49086. 8014b02: 2300 movs r3, #0
  49087. 8014b04: 637b str r3, [r7, #52] @ 0x34
  49088. 8014b06: 6afb ldr r3, [r7, #44] @ 0x2c
  49089. 8014b08: 613b str r3, [r7, #16]
  49090. __asm volatile
  49091. 8014b0a: 693b ldr r3, [r7, #16]
  49092. 8014b0c: f383 8811 msr BASEPRI, r3
  49093. }
  49094. 8014b10: bf00 nop
  49095. traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
  49096. }
  49097. }
  49098. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  49099. return xReturn;
  49100. 8014b12: 6b7b ldr r3, [r7, #52] @ 0x34
  49101. }
  49102. 8014b14: 4618 mov r0, r3
  49103. 8014b16: 3738 adds r7, #56 @ 0x38
  49104. 8014b18: 46bd mov sp, r7
  49105. 8014b1a: bd80 pop {r7, pc}
  49106. 08014b1c <prvGetDisinheritPriorityAfterTimeout>:
  49107. /*-----------------------------------------------------------*/
  49108. #if( configUSE_MUTEXES == 1 )
  49109. static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
  49110. {
  49111. 8014b1c: b480 push {r7}
  49112. 8014b1e: b085 sub sp, #20
  49113. 8014b20: af00 add r7, sp, #0
  49114. 8014b22: 6078 str r0, [r7, #4]
  49115. priority, but the waiting task times out, then the holder should
  49116. disinherit the priority - but only down to the highest priority of any
  49117. other tasks that are waiting for the same mutex. For this purpose,
  49118. return the priority of the highest priority task that is waiting for the
  49119. mutex. */
  49120. if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
  49121. 8014b24: 687b ldr r3, [r7, #4]
  49122. 8014b26: 6a5b ldr r3, [r3, #36] @ 0x24
  49123. 8014b28: 2b00 cmp r3, #0
  49124. 8014b2a: d006 beq.n 8014b3a <prvGetDisinheritPriorityAfterTimeout+0x1e>
  49125. {
  49126. uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
  49127. 8014b2c: 687b ldr r3, [r7, #4]
  49128. 8014b2e: 6b1b ldr r3, [r3, #48] @ 0x30
  49129. 8014b30: 681b ldr r3, [r3, #0]
  49130. 8014b32: f1c3 0338 rsb r3, r3, #56 @ 0x38
  49131. 8014b36: 60fb str r3, [r7, #12]
  49132. 8014b38: e001 b.n 8014b3e <prvGetDisinheritPriorityAfterTimeout+0x22>
  49133. }
  49134. else
  49135. {
  49136. uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
  49137. 8014b3a: 2300 movs r3, #0
  49138. 8014b3c: 60fb str r3, [r7, #12]
  49139. }
  49140. return uxHighestPriorityOfWaitingTasks;
  49141. 8014b3e: 68fb ldr r3, [r7, #12]
  49142. }
  49143. 8014b40: 4618 mov r0, r3
  49144. 8014b42: 3714 adds r7, #20
  49145. 8014b44: 46bd mov sp, r7
  49146. 8014b46: f85d 7b04 ldr.w r7, [sp], #4
  49147. 8014b4a: 4770 bx lr
  49148. 08014b4c <prvCopyDataToQueue>:
  49149. #endif /* configUSE_MUTEXES */
  49150. /*-----------------------------------------------------------*/
  49151. static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
  49152. {
  49153. 8014b4c: b580 push {r7, lr}
  49154. 8014b4e: b086 sub sp, #24
  49155. 8014b50: af00 add r7, sp, #0
  49156. 8014b52: 60f8 str r0, [r7, #12]
  49157. 8014b54: 60b9 str r1, [r7, #8]
  49158. 8014b56: 607a str r2, [r7, #4]
  49159. BaseType_t xReturn = pdFALSE;
  49160. 8014b58: 2300 movs r3, #0
  49161. 8014b5a: 617b str r3, [r7, #20]
  49162. UBaseType_t uxMessagesWaiting;
  49163. /* This function is called from a critical section. */
  49164. uxMessagesWaiting = pxQueue->uxMessagesWaiting;
  49165. 8014b5c: 68fb ldr r3, [r7, #12]
  49166. 8014b5e: 6b9b ldr r3, [r3, #56] @ 0x38
  49167. 8014b60: 613b str r3, [r7, #16]
  49168. if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
  49169. 8014b62: 68fb ldr r3, [r7, #12]
  49170. 8014b64: 6c1b ldr r3, [r3, #64] @ 0x40
  49171. 8014b66: 2b00 cmp r3, #0
  49172. 8014b68: d10d bne.n 8014b86 <prvCopyDataToQueue+0x3a>
  49173. {
  49174. #if ( configUSE_MUTEXES == 1 )
  49175. {
  49176. if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
  49177. 8014b6a: 68fb ldr r3, [r7, #12]
  49178. 8014b6c: 681b ldr r3, [r3, #0]
  49179. 8014b6e: 2b00 cmp r3, #0
  49180. 8014b70: d14d bne.n 8014c0e <prvCopyDataToQueue+0xc2>
  49181. {
  49182. /* The mutex is no longer being held. */
  49183. xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
  49184. 8014b72: 68fb ldr r3, [r7, #12]
  49185. 8014b74: 689b ldr r3, [r3, #8]
  49186. 8014b76: 4618 mov r0, r3
  49187. 8014b78: f001 fa38 bl 8015fec <xTaskPriorityDisinherit>
  49188. 8014b7c: 6178 str r0, [r7, #20]
  49189. pxQueue->u.xSemaphore.xMutexHolder = NULL;
  49190. 8014b7e: 68fb ldr r3, [r7, #12]
  49191. 8014b80: 2200 movs r2, #0
  49192. 8014b82: 609a str r2, [r3, #8]
  49193. 8014b84: e043 b.n 8014c0e <prvCopyDataToQueue+0xc2>
  49194. mtCOVERAGE_TEST_MARKER();
  49195. }
  49196. }
  49197. #endif /* configUSE_MUTEXES */
  49198. }
  49199. else if( xPosition == queueSEND_TO_BACK )
  49200. 8014b86: 687b ldr r3, [r7, #4]
  49201. 8014b88: 2b00 cmp r3, #0
  49202. 8014b8a: d119 bne.n 8014bc0 <prvCopyDataToQueue+0x74>
  49203. {
  49204. ( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
  49205. 8014b8c: 68fb ldr r3, [r7, #12]
  49206. 8014b8e: 6858 ldr r0, [r3, #4]
  49207. 8014b90: 68fb ldr r3, [r7, #12]
  49208. 8014b92: 6c1b ldr r3, [r3, #64] @ 0x40
  49209. 8014b94: 461a mov r2, r3
  49210. 8014b96: 68b9 ldr r1, [r7, #8]
  49211. 8014b98: f003 fd3b bl 8018612 <memcpy>
  49212. pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
  49213. 8014b9c: 68fb ldr r3, [r7, #12]
  49214. 8014b9e: 685a ldr r2, [r3, #4]
  49215. 8014ba0: 68fb ldr r3, [r7, #12]
  49216. 8014ba2: 6c1b ldr r3, [r3, #64] @ 0x40
  49217. 8014ba4: 441a add r2, r3
  49218. 8014ba6: 68fb ldr r3, [r7, #12]
  49219. 8014ba8: 605a str r2, [r3, #4]
  49220. if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49221. 8014baa: 68fb ldr r3, [r7, #12]
  49222. 8014bac: 685a ldr r2, [r3, #4]
  49223. 8014bae: 68fb ldr r3, [r7, #12]
  49224. 8014bb0: 689b ldr r3, [r3, #8]
  49225. 8014bb2: 429a cmp r2, r3
  49226. 8014bb4: d32b bcc.n 8014c0e <prvCopyDataToQueue+0xc2>
  49227. {
  49228. pxQueue->pcWriteTo = pxQueue->pcHead;
  49229. 8014bb6: 68fb ldr r3, [r7, #12]
  49230. 8014bb8: 681a ldr r2, [r3, #0]
  49231. 8014bba: 68fb ldr r3, [r7, #12]
  49232. 8014bbc: 605a str r2, [r3, #4]
  49233. 8014bbe: e026 b.n 8014c0e <prvCopyDataToQueue+0xc2>
  49234. mtCOVERAGE_TEST_MARKER();
  49235. }
  49236. }
  49237. else
  49238. {
  49239. ( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */
  49240. 8014bc0: 68fb ldr r3, [r7, #12]
  49241. 8014bc2: 68d8 ldr r0, [r3, #12]
  49242. 8014bc4: 68fb ldr r3, [r7, #12]
  49243. 8014bc6: 6c1b ldr r3, [r3, #64] @ 0x40
  49244. 8014bc8: 461a mov r2, r3
  49245. 8014bca: 68b9 ldr r1, [r7, #8]
  49246. 8014bcc: f003 fd21 bl 8018612 <memcpy>
  49247. pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
  49248. 8014bd0: 68fb ldr r3, [r7, #12]
  49249. 8014bd2: 68da ldr r2, [r3, #12]
  49250. 8014bd4: 68fb ldr r3, [r7, #12]
  49251. 8014bd6: 6c1b ldr r3, [r3, #64] @ 0x40
  49252. 8014bd8: 425b negs r3, r3
  49253. 8014bda: 441a add r2, r3
  49254. 8014bdc: 68fb ldr r3, [r7, #12]
  49255. 8014bde: 60da str r2, [r3, #12]
  49256. if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
  49257. 8014be0: 68fb ldr r3, [r7, #12]
  49258. 8014be2: 68da ldr r2, [r3, #12]
  49259. 8014be4: 68fb ldr r3, [r7, #12]
  49260. 8014be6: 681b ldr r3, [r3, #0]
  49261. 8014be8: 429a cmp r2, r3
  49262. 8014bea: d207 bcs.n 8014bfc <prvCopyDataToQueue+0xb0>
  49263. {
  49264. pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
  49265. 8014bec: 68fb ldr r3, [r7, #12]
  49266. 8014bee: 689a ldr r2, [r3, #8]
  49267. 8014bf0: 68fb ldr r3, [r7, #12]
  49268. 8014bf2: 6c1b ldr r3, [r3, #64] @ 0x40
  49269. 8014bf4: 425b negs r3, r3
  49270. 8014bf6: 441a add r2, r3
  49271. 8014bf8: 68fb ldr r3, [r7, #12]
  49272. 8014bfa: 60da str r2, [r3, #12]
  49273. else
  49274. {
  49275. mtCOVERAGE_TEST_MARKER();
  49276. }
  49277. if( xPosition == queueOVERWRITE )
  49278. 8014bfc: 687b ldr r3, [r7, #4]
  49279. 8014bfe: 2b02 cmp r3, #2
  49280. 8014c00: d105 bne.n 8014c0e <prvCopyDataToQueue+0xc2>
  49281. {
  49282. if( uxMessagesWaiting > ( UBaseType_t ) 0 )
  49283. 8014c02: 693b ldr r3, [r7, #16]
  49284. 8014c04: 2b00 cmp r3, #0
  49285. 8014c06: d002 beq.n 8014c0e <prvCopyDataToQueue+0xc2>
  49286. {
  49287. /* An item is not being added but overwritten, so subtract
  49288. one from the recorded number of items in the queue so when
  49289. one is added again below the number of recorded items remains
  49290. correct. */
  49291. --uxMessagesWaiting;
  49292. 8014c08: 693b ldr r3, [r7, #16]
  49293. 8014c0a: 3b01 subs r3, #1
  49294. 8014c0c: 613b str r3, [r7, #16]
  49295. {
  49296. mtCOVERAGE_TEST_MARKER();
  49297. }
  49298. }
  49299. pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
  49300. 8014c0e: 693b ldr r3, [r7, #16]
  49301. 8014c10: 1c5a adds r2, r3, #1
  49302. 8014c12: 68fb ldr r3, [r7, #12]
  49303. 8014c14: 639a str r2, [r3, #56] @ 0x38
  49304. return xReturn;
  49305. 8014c16: 697b ldr r3, [r7, #20]
  49306. }
  49307. 8014c18: 4618 mov r0, r3
  49308. 8014c1a: 3718 adds r7, #24
  49309. 8014c1c: 46bd mov sp, r7
  49310. 8014c1e: bd80 pop {r7, pc}
  49311. 08014c20 <prvCopyDataFromQueue>:
  49312. /*-----------------------------------------------------------*/
  49313. static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
  49314. {
  49315. 8014c20: b580 push {r7, lr}
  49316. 8014c22: b082 sub sp, #8
  49317. 8014c24: af00 add r7, sp, #0
  49318. 8014c26: 6078 str r0, [r7, #4]
  49319. 8014c28: 6039 str r1, [r7, #0]
  49320. if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
  49321. 8014c2a: 687b ldr r3, [r7, #4]
  49322. 8014c2c: 6c1b ldr r3, [r3, #64] @ 0x40
  49323. 8014c2e: 2b00 cmp r3, #0
  49324. 8014c30: d018 beq.n 8014c64 <prvCopyDataFromQueue+0x44>
  49325. {
  49326. pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
  49327. 8014c32: 687b ldr r3, [r7, #4]
  49328. 8014c34: 68da ldr r2, [r3, #12]
  49329. 8014c36: 687b ldr r3, [r7, #4]
  49330. 8014c38: 6c1b ldr r3, [r3, #64] @ 0x40
  49331. 8014c3a: 441a add r2, r3
  49332. 8014c3c: 687b ldr r3, [r7, #4]
  49333. 8014c3e: 60da str r2, [r3, #12]
  49334. if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
  49335. 8014c40: 687b ldr r3, [r7, #4]
  49336. 8014c42: 68da ldr r2, [r3, #12]
  49337. 8014c44: 687b ldr r3, [r7, #4]
  49338. 8014c46: 689b ldr r3, [r3, #8]
  49339. 8014c48: 429a cmp r2, r3
  49340. 8014c4a: d303 bcc.n 8014c54 <prvCopyDataFromQueue+0x34>
  49341. {
  49342. pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
  49343. 8014c4c: 687b ldr r3, [r7, #4]
  49344. 8014c4e: 681a ldr r2, [r3, #0]
  49345. 8014c50: 687b ldr r3, [r7, #4]
  49346. 8014c52: 60da str r2, [r3, #12]
  49347. }
  49348. else
  49349. {
  49350. mtCOVERAGE_TEST_MARKER();
  49351. }
  49352. ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
  49353. 8014c54: 687b ldr r3, [r7, #4]
  49354. 8014c56: 68d9 ldr r1, [r3, #12]
  49355. 8014c58: 687b ldr r3, [r7, #4]
  49356. 8014c5a: 6c1b ldr r3, [r3, #64] @ 0x40
  49357. 8014c5c: 461a mov r2, r3
  49358. 8014c5e: 6838 ldr r0, [r7, #0]
  49359. 8014c60: f003 fcd7 bl 8018612 <memcpy>
  49360. }
  49361. }
  49362. 8014c64: bf00 nop
  49363. 8014c66: 3708 adds r7, #8
  49364. 8014c68: 46bd mov sp, r7
  49365. 8014c6a: bd80 pop {r7, pc}
  49366. 08014c6c <prvUnlockQueue>:
  49367. /*-----------------------------------------------------------*/
  49368. static void prvUnlockQueue( Queue_t * const pxQueue )
  49369. {
  49370. 8014c6c: b580 push {r7, lr}
  49371. 8014c6e: b084 sub sp, #16
  49372. 8014c70: af00 add r7, sp, #0
  49373. 8014c72: 6078 str r0, [r7, #4]
  49374. /* The lock counts contains the number of extra data items placed or
  49375. removed from the queue while the queue was locked. When a queue is
  49376. locked items can be added or removed, but the event lists cannot be
  49377. updated. */
  49378. taskENTER_CRITICAL();
  49379. 8014c74: f002 fab8 bl 80171e8 <vPortEnterCritical>
  49380. {
  49381. int8_t cTxLock = pxQueue->cTxLock;
  49382. 8014c78: 687b ldr r3, [r7, #4]
  49383. 8014c7a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49384. 8014c7e: 73fb strb r3, [r7, #15]
  49385. /* See if data was added to the queue while it was locked. */
  49386. while( cTxLock > queueLOCKED_UNMODIFIED )
  49387. 8014c80: e011 b.n 8014ca6 <prvUnlockQueue+0x3a>
  49388. }
  49389. #else /* configUSE_QUEUE_SETS */
  49390. {
  49391. /* Tasks that are removed from the event list will get added to
  49392. the pending ready list as the scheduler is still suspended. */
  49393. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
  49394. 8014c82: 687b ldr r3, [r7, #4]
  49395. 8014c84: 6a5b ldr r3, [r3, #36] @ 0x24
  49396. 8014c86: 2b00 cmp r3, #0
  49397. 8014c88: d012 beq.n 8014cb0 <prvUnlockQueue+0x44>
  49398. {
  49399. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
  49400. 8014c8a: 687b ldr r3, [r7, #4]
  49401. 8014c8c: 3324 adds r3, #36 @ 0x24
  49402. 8014c8e: 4618 mov r0, r3
  49403. 8014c90: f000 ff28 bl 8015ae4 <xTaskRemoveFromEventList>
  49404. 8014c94: 4603 mov r3, r0
  49405. 8014c96: 2b00 cmp r3, #0
  49406. 8014c98: d001 beq.n 8014c9e <prvUnlockQueue+0x32>
  49407. {
  49408. /* The task waiting has a higher priority so record that
  49409. a context switch is required. */
  49410. vTaskMissedYield();
  49411. 8014c9a: f001 f829 bl 8015cf0 <vTaskMissedYield>
  49412. break;
  49413. }
  49414. }
  49415. #endif /* configUSE_QUEUE_SETS */
  49416. --cTxLock;
  49417. 8014c9e: 7bfb ldrb r3, [r7, #15]
  49418. 8014ca0: 3b01 subs r3, #1
  49419. 8014ca2: b2db uxtb r3, r3
  49420. 8014ca4: 73fb strb r3, [r7, #15]
  49421. while( cTxLock > queueLOCKED_UNMODIFIED )
  49422. 8014ca6: f997 300f ldrsb.w r3, [r7, #15]
  49423. 8014caa: 2b00 cmp r3, #0
  49424. 8014cac: dce9 bgt.n 8014c82 <prvUnlockQueue+0x16>
  49425. 8014cae: e000 b.n 8014cb2 <prvUnlockQueue+0x46>
  49426. break;
  49427. 8014cb0: bf00 nop
  49428. }
  49429. pxQueue->cTxLock = queueUNLOCKED;
  49430. 8014cb2: 687b ldr r3, [r7, #4]
  49431. 8014cb4: 22ff movs r2, #255 @ 0xff
  49432. 8014cb6: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49433. }
  49434. taskEXIT_CRITICAL();
  49435. 8014cba: f002 fac7 bl 801724c <vPortExitCritical>
  49436. /* Do the same for the Rx lock. */
  49437. taskENTER_CRITICAL();
  49438. 8014cbe: f002 fa93 bl 80171e8 <vPortEnterCritical>
  49439. {
  49440. int8_t cRxLock = pxQueue->cRxLock;
  49441. 8014cc2: 687b ldr r3, [r7, #4]
  49442. 8014cc4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49443. 8014cc8: 73bb strb r3, [r7, #14]
  49444. while( cRxLock > queueLOCKED_UNMODIFIED )
  49445. 8014cca: e011 b.n 8014cf0 <prvUnlockQueue+0x84>
  49446. {
  49447. if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
  49448. 8014ccc: 687b ldr r3, [r7, #4]
  49449. 8014cce: 691b ldr r3, [r3, #16]
  49450. 8014cd0: 2b00 cmp r3, #0
  49451. 8014cd2: d012 beq.n 8014cfa <prvUnlockQueue+0x8e>
  49452. {
  49453. if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
  49454. 8014cd4: 687b ldr r3, [r7, #4]
  49455. 8014cd6: 3310 adds r3, #16
  49456. 8014cd8: 4618 mov r0, r3
  49457. 8014cda: f000 ff03 bl 8015ae4 <xTaskRemoveFromEventList>
  49458. 8014cde: 4603 mov r3, r0
  49459. 8014ce0: 2b00 cmp r3, #0
  49460. 8014ce2: d001 beq.n 8014ce8 <prvUnlockQueue+0x7c>
  49461. {
  49462. vTaskMissedYield();
  49463. 8014ce4: f001 f804 bl 8015cf0 <vTaskMissedYield>
  49464. else
  49465. {
  49466. mtCOVERAGE_TEST_MARKER();
  49467. }
  49468. --cRxLock;
  49469. 8014ce8: 7bbb ldrb r3, [r7, #14]
  49470. 8014cea: 3b01 subs r3, #1
  49471. 8014cec: b2db uxtb r3, r3
  49472. 8014cee: 73bb strb r3, [r7, #14]
  49473. while( cRxLock > queueLOCKED_UNMODIFIED )
  49474. 8014cf0: f997 300e ldrsb.w r3, [r7, #14]
  49475. 8014cf4: 2b00 cmp r3, #0
  49476. 8014cf6: dce9 bgt.n 8014ccc <prvUnlockQueue+0x60>
  49477. 8014cf8: e000 b.n 8014cfc <prvUnlockQueue+0x90>
  49478. }
  49479. else
  49480. {
  49481. break;
  49482. 8014cfa: bf00 nop
  49483. }
  49484. }
  49485. pxQueue->cRxLock = queueUNLOCKED;
  49486. 8014cfc: 687b ldr r3, [r7, #4]
  49487. 8014cfe: 22ff movs r2, #255 @ 0xff
  49488. 8014d00: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49489. }
  49490. taskEXIT_CRITICAL();
  49491. 8014d04: f002 faa2 bl 801724c <vPortExitCritical>
  49492. }
  49493. 8014d08: bf00 nop
  49494. 8014d0a: 3710 adds r7, #16
  49495. 8014d0c: 46bd mov sp, r7
  49496. 8014d0e: bd80 pop {r7, pc}
  49497. 08014d10 <prvIsQueueEmpty>:
  49498. /*-----------------------------------------------------------*/
  49499. static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
  49500. {
  49501. 8014d10: b580 push {r7, lr}
  49502. 8014d12: b084 sub sp, #16
  49503. 8014d14: af00 add r7, sp, #0
  49504. 8014d16: 6078 str r0, [r7, #4]
  49505. BaseType_t xReturn;
  49506. taskENTER_CRITICAL();
  49507. 8014d18: f002 fa66 bl 80171e8 <vPortEnterCritical>
  49508. {
  49509. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
  49510. 8014d1c: 687b ldr r3, [r7, #4]
  49511. 8014d1e: 6b9b ldr r3, [r3, #56] @ 0x38
  49512. 8014d20: 2b00 cmp r3, #0
  49513. 8014d22: d102 bne.n 8014d2a <prvIsQueueEmpty+0x1a>
  49514. {
  49515. xReturn = pdTRUE;
  49516. 8014d24: 2301 movs r3, #1
  49517. 8014d26: 60fb str r3, [r7, #12]
  49518. 8014d28: e001 b.n 8014d2e <prvIsQueueEmpty+0x1e>
  49519. }
  49520. else
  49521. {
  49522. xReturn = pdFALSE;
  49523. 8014d2a: 2300 movs r3, #0
  49524. 8014d2c: 60fb str r3, [r7, #12]
  49525. }
  49526. }
  49527. taskEXIT_CRITICAL();
  49528. 8014d2e: f002 fa8d bl 801724c <vPortExitCritical>
  49529. return xReturn;
  49530. 8014d32: 68fb ldr r3, [r7, #12]
  49531. }
  49532. 8014d34: 4618 mov r0, r3
  49533. 8014d36: 3710 adds r7, #16
  49534. 8014d38: 46bd mov sp, r7
  49535. 8014d3a: bd80 pop {r7, pc}
  49536. 08014d3c <prvIsQueueFull>:
  49537. return xReturn;
  49538. } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
  49539. /*-----------------------------------------------------------*/
  49540. static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
  49541. {
  49542. 8014d3c: b580 push {r7, lr}
  49543. 8014d3e: b084 sub sp, #16
  49544. 8014d40: af00 add r7, sp, #0
  49545. 8014d42: 6078 str r0, [r7, #4]
  49546. BaseType_t xReturn;
  49547. taskENTER_CRITICAL();
  49548. 8014d44: f002 fa50 bl 80171e8 <vPortEnterCritical>
  49549. {
  49550. if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
  49551. 8014d48: 687b ldr r3, [r7, #4]
  49552. 8014d4a: 6b9a ldr r2, [r3, #56] @ 0x38
  49553. 8014d4c: 687b ldr r3, [r7, #4]
  49554. 8014d4e: 6bdb ldr r3, [r3, #60] @ 0x3c
  49555. 8014d50: 429a cmp r2, r3
  49556. 8014d52: d102 bne.n 8014d5a <prvIsQueueFull+0x1e>
  49557. {
  49558. xReturn = pdTRUE;
  49559. 8014d54: 2301 movs r3, #1
  49560. 8014d56: 60fb str r3, [r7, #12]
  49561. 8014d58: e001 b.n 8014d5e <prvIsQueueFull+0x22>
  49562. }
  49563. else
  49564. {
  49565. xReturn = pdFALSE;
  49566. 8014d5a: 2300 movs r3, #0
  49567. 8014d5c: 60fb str r3, [r7, #12]
  49568. }
  49569. }
  49570. taskEXIT_CRITICAL();
  49571. 8014d5e: f002 fa75 bl 801724c <vPortExitCritical>
  49572. return xReturn;
  49573. 8014d62: 68fb ldr r3, [r7, #12]
  49574. }
  49575. 8014d64: 4618 mov r0, r3
  49576. 8014d66: 3710 adds r7, #16
  49577. 8014d68: 46bd mov sp, r7
  49578. 8014d6a: bd80 pop {r7, pc}
  49579. 08014d6c <vQueueAddToRegistry>:
  49580. /*-----------------------------------------------------------*/
  49581. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  49582. void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  49583. {
  49584. 8014d6c: b480 push {r7}
  49585. 8014d6e: b085 sub sp, #20
  49586. 8014d70: af00 add r7, sp, #0
  49587. 8014d72: 6078 str r0, [r7, #4]
  49588. 8014d74: 6039 str r1, [r7, #0]
  49589. UBaseType_t ux;
  49590. /* See if there is an empty space in the registry. A NULL name denotes
  49591. a free slot. */
  49592. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  49593. 8014d76: 2300 movs r3, #0
  49594. 8014d78: 60fb str r3, [r7, #12]
  49595. 8014d7a: e014 b.n 8014da6 <vQueueAddToRegistry+0x3a>
  49596. {
  49597. if( xQueueRegistry[ ux ].pcQueueName == NULL )
  49598. 8014d7c: 4a0f ldr r2, [pc, #60] @ (8014dbc <vQueueAddToRegistry+0x50>)
  49599. 8014d7e: 68fb ldr r3, [r7, #12]
  49600. 8014d80: f852 3033 ldr.w r3, [r2, r3, lsl #3]
  49601. 8014d84: 2b00 cmp r3, #0
  49602. 8014d86: d10b bne.n 8014da0 <vQueueAddToRegistry+0x34>
  49603. {
  49604. /* Store the information on this queue. */
  49605. xQueueRegistry[ ux ].pcQueueName = pcQueueName;
  49606. 8014d88: 490c ldr r1, [pc, #48] @ (8014dbc <vQueueAddToRegistry+0x50>)
  49607. 8014d8a: 68fb ldr r3, [r7, #12]
  49608. 8014d8c: 683a ldr r2, [r7, #0]
  49609. 8014d8e: f841 2033 str.w r2, [r1, r3, lsl #3]
  49610. xQueueRegistry[ ux ].xHandle = xQueue;
  49611. 8014d92: 4a0a ldr r2, [pc, #40] @ (8014dbc <vQueueAddToRegistry+0x50>)
  49612. 8014d94: 68fb ldr r3, [r7, #12]
  49613. 8014d96: 00db lsls r3, r3, #3
  49614. 8014d98: 4413 add r3, r2
  49615. 8014d9a: 687a ldr r2, [r7, #4]
  49616. 8014d9c: 605a str r2, [r3, #4]
  49617. traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
  49618. break;
  49619. 8014d9e: e006 b.n 8014dae <vQueueAddToRegistry+0x42>
  49620. for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
  49621. 8014da0: 68fb ldr r3, [r7, #12]
  49622. 8014da2: 3301 adds r3, #1
  49623. 8014da4: 60fb str r3, [r7, #12]
  49624. 8014da6: 68fb ldr r3, [r7, #12]
  49625. 8014da8: 2b07 cmp r3, #7
  49626. 8014daa: d9e7 bls.n 8014d7c <vQueueAddToRegistry+0x10>
  49627. else
  49628. {
  49629. mtCOVERAGE_TEST_MARKER();
  49630. }
  49631. }
  49632. }
  49633. 8014dac: bf00 nop
  49634. 8014dae: bf00 nop
  49635. 8014db0: 3714 adds r7, #20
  49636. 8014db2: 46bd mov sp, r7
  49637. 8014db4: f85d 7b04 ldr.w r7, [sp], #4
  49638. 8014db8: 4770 bx lr
  49639. 8014dba: bf00 nop
  49640. 8014dbc: 24002b14 .word 0x24002b14
  49641. 08014dc0 <vQueueWaitForMessageRestricted>:
  49642. /*-----------------------------------------------------------*/
  49643. #if ( configUSE_TIMERS == 1 )
  49644. void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  49645. {
  49646. 8014dc0: b580 push {r7, lr}
  49647. 8014dc2: b086 sub sp, #24
  49648. 8014dc4: af00 add r7, sp, #0
  49649. 8014dc6: 60f8 str r0, [r7, #12]
  49650. 8014dc8: 60b9 str r1, [r7, #8]
  49651. 8014dca: 607a str r2, [r7, #4]
  49652. Queue_t * const pxQueue = xQueue;
  49653. 8014dcc: 68fb ldr r3, [r7, #12]
  49654. 8014dce: 617b str r3, [r7, #20]
  49655. will not actually cause the task to block, just place it on a blocked
  49656. list. It will not block until the scheduler is unlocked - at which
  49657. time a yield will be performed. If an item is added to the queue while
  49658. the queue is locked, and the calling task blocks on the queue, then the
  49659. calling task will be immediately unblocked when the queue is unlocked. */
  49660. prvLockQueue( pxQueue );
  49661. 8014dd0: f002 fa0a bl 80171e8 <vPortEnterCritical>
  49662. 8014dd4: 697b ldr r3, [r7, #20]
  49663. 8014dd6: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
  49664. 8014dda: b25b sxtb r3, r3
  49665. 8014ddc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49666. 8014de0: d103 bne.n 8014dea <vQueueWaitForMessageRestricted+0x2a>
  49667. 8014de2: 697b ldr r3, [r7, #20]
  49668. 8014de4: 2200 movs r2, #0
  49669. 8014de6: f883 2044 strb.w r2, [r3, #68] @ 0x44
  49670. 8014dea: 697b ldr r3, [r7, #20]
  49671. 8014dec: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
  49672. 8014df0: b25b sxtb r3, r3
  49673. 8014df2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  49674. 8014df6: d103 bne.n 8014e00 <vQueueWaitForMessageRestricted+0x40>
  49675. 8014df8: 697b ldr r3, [r7, #20]
  49676. 8014dfa: 2200 movs r2, #0
  49677. 8014dfc: f883 2045 strb.w r2, [r3, #69] @ 0x45
  49678. 8014e00: f002 fa24 bl 801724c <vPortExitCritical>
  49679. if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
  49680. 8014e04: 697b ldr r3, [r7, #20]
  49681. 8014e06: 6b9b ldr r3, [r3, #56] @ 0x38
  49682. 8014e08: 2b00 cmp r3, #0
  49683. 8014e0a: d106 bne.n 8014e1a <vQueueWaitForMessageRestricted+0x5a>
  49684. {
  49685. /* There is nothing in the queue, block for the specified period. */
  49686. vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
  49687. 8014e0c: 697b ldr r3, [r7, #20]
  49688. 8014e0e: 3324 adds r3, #36 @ 0x24
  49689. 8014e10: 687a ldr r2, [r7, #4]
  49690. 8014e12: 68b9 ldr r1, [r7, #8]
  49691. 8014e14: 4618 mov r0, r3
  49692. 8014e16: f000 fe39 bl 8015a8c <vTaskPlaceOnEventListRestricted>
  49693. }
  49694. else
  49695. {
  49696. mtCOVERAGE_TEST_MARKER();
  49697. }
  49698. prvUnlockQueue( pxQueue );
  49699. 8014e1a: 6978 ldr r0, [r7, #20]
  49700. 8014e1c: f7ff ff26 bl 8014c6c <prvUnlockQueue>
  49701. }
  49702. 8014e20: bf00 nop
  49703. 8014e22: 3718 adds r7, #24
  49704. 8014e24: 46bd mov sp, r7
  49705. 8014e26: bd80 pop {r7, pc}
  49706. 08014e28 <xStreamBufferSpacesAvailable>:
  49707. return xReturn;
  49708. }
  49709. /*-----------------------------------------------------------*/
  49710. size_t xStreamBufferSpacesAvailable( StreamBufferHandle_t xStreamBuffer )
  49711. {
  49712. 8014e28: b480 push {r7}
  49713. 8014e2a: b087 sub sp, #28
  49714. 8014e2c: af00 add r7, sp, #0
  49715. 8014e2e: 6078 str r0, [r7, #4]
  49716. const StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  49717. 8014e30: 687b ldr r3, [r7, #4]
  49718. 8014e32: 613b str r3, [r7, #16]
  49719. size_t xSpace;
  49720. configASSERT( pxStreamBuffer );
  49721. 8014e34: 693b ldr r3, [r7, #16]
  49722. 8014e36: 2b00 cmp r3, #0
  49723. 8014e38: d10b bne.n 8014e52 <xStreamBufferSpacesAvailable+0x2a>
  49724. __asm volatile
  49725. 8014e3a: f04f 0350 mov.w r3, #80 @ 0x50
  49726. 8014e3e: f383 8811 msr BASEPRI, r3
  49727. 8014e42: f3bf 8f6f isb sy
  49728. 8014e46: f3bf 8f4f dsb sy
  49729. 8014e4a: 60fb str r3, [r7, #12]
  49730. }
  49731. 8014e4c: bf00 nop
  49732. 8014e4e: bf00 nop
  49733. 8014e50: e7fd b.n 8014e4e <xStreamBufferSpacesAvailable+0x26>
  49734. xSpace = pxStreamBuffer->xLength + pxStreamBuffer->xTail;
  49735. 8014e52: 693b ldr r3, [r7, #16]
  49736. 8014e54: 689a ldr r2, [r3, #8]
  49737. 8014e56: 693b ldr r3, [r7, #16]
  49738. 8014e58: 681b ldr r3, [r3, #0]
  49739. 8014e5a: 4413 add r3, r2
  49740. 8014e5c: 617b str r3, [r7, #20]
  49741. xSpace -= pxStreamBuffer->xHead;
  49742. 8014e5e: 693b ldr r3, [r7, #16]
  49743. 8014e60: 685b ldr r3, [r3, #4]
  49744. 8014e62: 697a ldr r2, [r7, #20]
  49745. 8014e64: 1ad3 subs r3, r2, r3
  49746. 8014e66: 617b str r3, [r7, #20]
  49747. xSpace -= ( size_t ) 1;
  49748. 8014e68: 697b ldr r3, [r7, #20]
  49749. 8014e6a: 3b01 subs r3, #1
  49750. 8014e6c: 617b str r3, [r7, #20]
  49751. if( xSpace >= pxStreamBuffer->xLength )
  49752. 8014e6e: 693b ldr r3, [r7, #16]
  49753. 8014e70: 689b ldr r3, [r3, #8]
  49754. 8014e72: 697a ldr r2, [r7, #20]
  49755. 8014e74: 429a cmp r2, r3
  49756. 8014e76: d304 bcc.n 8014e82 <xStreamBufferSpacesAvailable+0x5a>
  49757. {
  49758. xSpace -= pxStreamBuffer->xLength;
  49759. 8014e78: 693b ldr r3, [r7, #16]
  49760. 8014e7a: 689b ldr r3, [r3, #8]
  49761. 8014e7c: 697a ldr r2, [r7, #20]
  49762. 8014e7e: 1ad3 subs r3, r2, r3
  49763. 8014e80: 617b str r3, [r7, #20]
  49764. else
  49765. {
  49766. mtCOVERAGE_TEST_MARKER();
  49767. }
  49768. return xSpace;
  49769. 8014e82: 697b ldr r3, [r7, #20]
  49770. }
  49771. 8014e84: 4618 mov r0, r3
  49772. 8014e86: 371c adds r7, #28
  49773. 8014e88: 46bd mov sp, r7
  49774. 8014e8a: f85d 7b04 ldr.w r7, [sp], #4
  49775. 8014e8e: 4770 bx lr
  49776. 08014e90 <xStreamBufferSend>:
  49777. size_t xStreamBufferSend( StreamBufferHandle_t xStreamBuffer,
  49778. const void *pvTxData,
  49779. size_t xDataLengthBytes,
  49780. TickType_t xTicksToWait )
  49781. {
  49782. 8014e90: b580 push {r7, lr}
  49783. 8014e92: b090 sub sp, #64 @ 0x40
  49784. 8014e94: af02 add r7, sp, #8
  49785. 8014e96: 60f8 str r0, [r7, #12]
  49786. 8014e98: 60b9 str r1, [r7, #8]
  49787. 8014e9a: 607a str r2, [r7, #4]
  49788. 8014e9c: 603b str r3, [r7, #0]
  49789. StreamBuffer_t * const pxStreamBuffer = xStreamBuffer;
  49790. 8014e9e: 68fb ldr r3, [r7, #12]
  49791. 8014ea0: 62fb str r3, [r7, #44] @ 0x2c
  49792. size_t xReturn, xSpace = 0;
  49793. 8014ea2: 2300 movs r3, #0
  49794. 8014ea4: 637b str r3, [r7, #52] @ 0x34
  49795. size_t xRequiredSpace = xDataLengthBytes;
  49796. 8014ea6: 687b ldr r3, [r7, #4]
  49797. 8014ea8: 633b str r3, [r7, #48] @ 0x30
  49798. TimeOut_t xTimeOut;
  49799. configASSERT( pvTxData );
  49800. 8014eaa: 68bb ldr r3, [r7, #8]
  49801. 8014eac: 2b00 cmp r3, #0
  49802. 8014eae: d10b bne.n 8014ec8 <xStreamBufferSend+0x38>
  49803. __asm volatile
  49804. 8014eb0: f04f 0350 mov.w r3, #80 @ 0x50
  49805. 8014eb4: f383 8811 msr BASEPRI, r3
  49806. 8014eb8: f3bf 8f6f isb sy
  49807. 8014ebc: f3bf 8f4f dsb sy
  49808. 8014ec0: 627b str r3, [r7, #36] @ 0x24
  49809. }
  49810. 8014ec2: bf00 nop
  49811. 8014ec4: bf00 nop
  49812. 8014ec6: e7fd b.n 8014ec4 <xStreamBufferSend+0x34>
  49813. configASSERT( pxStreamBuffer );
  49814. 8014ec8: 6afb ldr r3, [r7, #44] @ 0x2c
  49815. 8014eca: 2b00 cmp r3, #0
  49816. 8014ecc: d10b bne.n 8014ee6 <xStreamBufferSend+0x56>
  49817. __asm volatile
  49818. 8014ece: f04f 0350 mov.w r3, #80 @ 0x50
  49819. 8014ed2: f383 8811 msr BASEPRI, r3
  49820. 8014ed6: f3bf 8f6f isb sy
  49821. 8014eda: f3bf 8f4f dsb sy
  49822. 8014ede: 623b str r3, [r7, #32]
  49823. }
  49824. 8014ee0: bf00 nop
  49825. 8014ee2: bf00 nop
  49826. 8014ee4: e7fd b.n 8014ee2 <xStreamBufferSend+0x52>
  49827. /* This send function is used to write to both message buffers and stream
  49828. buffers. If this is a message buffer then the space needed must be
  49829. increased by the amount of bytes needed to store the length of the
  49830. message. */
  49831. if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) != ( uint8_t ) 0 )
  49832. 8014ee6: 6afb ldr r3, [r7, #44] @ 0x2c
  49833. 8014ee8: 7f1b ldrb r3, [r3, #28]
  49834. 8014eea: f003 0301 and.w r3, r3, #1
  49835. 8014eee: 2b00 cmp r3, #0
  49836. 8014ef0: d012 beq.n 8014f18 <xStreamBufferSend+0x88>
  49837. {
  49838. xRequiredSpace += sbBYTES_TO_STORE_MESSAGE_LENGTH;
  49839. 8014ef2: 6b3b ldr r3, [r7, #48] @ 0x30
  49840. 8014ef4: 3304 adds r3, #4
  49841. 8014ef6: 633b str r3, [r7, #48] @ 0x30
  49842. /* Overflow? */
  49843. configASSERT( xRequiredSpace > xDataLengthBytes );
  49844. 8014ef8: 6b3a ldr r2, [r7, #48] @ 0x30
  49845. 8014efa: 687b ldr r3, [r7, #4]
  49846. 8014efc: 429a cmp r2, r3
  49847. 8014efe: d80b bhi.n 8014f18 <xStreamBufferSend+0x88>
  49848. __asm volatile
  49849. 8014f00: f04f 0350 mov.w r3, #80 @ 0x50
  49850. 8014f04: f383 8811 msr BASEPRI, r3
  49851. 8014f08: f3bf 8f6f isb sy
  49852. 8014f0c: f3bf 8f4f dsb sy
  49853. 8014f10: 61fb str r3, [r7, #28]
  49854. }
  49855. 8014f12: bf00 nop
  49856. 8014f14: bf00 nop
  49857. 8014f16: e7fd b.n 8014f14 <xStreamBufferSend+0x84>
  49858. else
  49859. {
  49860. mtCOVERAGE_TEST_MARKER();
  49861. }
  49862. if( xTicksToWait != ( TickType_t ) 0 )
  49863. 8014f18: 683b ldr r3, [r7, #0]
  49864. 8014f1a: 2b00 cmp r3, #0
  49865. 8014f1c: d03f beq.n 8014f9e <xStreamBufferSend+0x10e>
  49866. {
  49867. vTaskSetTimeOutState( &xTimeOut );
  49868. 8014f1e: f107 0310 add.w r3, r7, #16
  49869. 8014f22: 4618 mov r0, r3
  49870. 8014f24: f000 fe42 bl 8015bac <vTaskSetTimeOutState>
  49871. do
  49872. {
  49873. /* Wait until the required number of bytes are free in the message
  49874. buffer. */
  49875. taskENTER_CRITICAL();
  49876. 8014f28: f002 f95e bl 80171e8 <vPortEnterCritical>
  49877. {
  49878. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  49879. 8014f2c: 6af8 ldr r0, [r7, #44] @ 0x2c
  49880. 8014f2e: f7ff ff7b bl 8014e28 <xStreamBufferSpacesAvailable>
  49881. 8014f32: 6378 str r0, [r7, #52] @ 0x34
  49882. if( xSpace < xRequiredSpace )
  49883. 8014f34: 6b7a ldr r2, [r7, #52] @ 0x34
  49884. 8014f36: 6b3b ldr r3, [r7, #48] @ 0x30
  49885. 8014f38: 429a cmp r2, r3
  49886. 8014f3a: d218 bcs.n 8014f6e <xStreamBufferSend+0xde>
  49887. {
  49888. /* Clear notification state as going to wait for space. */
  49889. ( void ) xTaskNotifyStateClear( NULL );
  49890. 8014f3c: 2000 movs r0, #0
  49891. 8014f3e: f001 fb65 bl 801660c <xTaskNotifyStateClear>
  49892. /* Should only be one writer. */
  49893. configASSERT( pxStreamBuffer->xTaskWaitingToSend == NULL );
  49894. 8014f42: 6afb ldr r3, [r7, #44] @ 0x2c
  49895. 8014f44: 695b ldr r3, [r3, #20]
  49896. 8014f46: 2b00 cmp r3, #0
  49897. 8014f48: d00b beq.n 8014f62 <xStreamBufferSend+0xd2>
  49898. __asm volatile
  49899. 8014f4a: f04f 0350 mov.w r3, #80 @ 0x50
  49900. 8014f4e: f383 8811 msr BASEPRI, r3
  49901. 8014f52: f3bf 8f6f isb sy
  49902. 8014f56: f3bf 8f4f dsb sy
  49903. 8014f5a: 61bb str r3, [r7, #24]
  49904. }
  49905. 8014f5c: bf00 nop
  49906. 8014f5e: bf00 nop
  49907. 8014f60: e7fd b.n 8014f5e <xStreamBufferSend+0xce>
  49908. pxStreamBuffer->xTaskWaitingToSend = xTaskGetCurrentTaskHandle();
  49909. 8014f62: f000 ffad bl 8015ec0 <xTaskGetCurrentTaskHandle>
  49910. 8014f66: 4602 mov r2, r0
  49911. 8014f68: 6afb ldr r3, [r7, #44] @ 0x2c
  49912. 8014f6a: 615a str r2, [r3, #20]
  49913. 8014f6c: e002 b.n 8014f74 <xStreamBufferSend+0xe4>
  49914. }
  49915. else
  49916. {
  49917. taskEXIT_CRITICAL();
  49918. 8014f6e: f002 f96d bl 801724c <vPortExitCritical>
  49919. break;
  49920. 8014f72: e014 b.n 8014f9e <xStreamBufferSend+0x10e>
  49921. }
  49922. }
  49923. taskEXIT_CRITICAL();
  49924. 8014f74: f002 f96a bl 801724c <vPortExitCritical>
  49925. traceBLOCKING_ON_STREAM_BUFFER_SEND( xStreamBuffer );
  49926. ( void ) xTaskNotifyWait( ( uint32_t ) 0, ( uint32_t ) 0, NULL, xTicksToWait );
  49927. 8014f78: 683b ldr r3, [r7, #0]
  49928. 8014f7a: 2200 movs r2, #0
  49929. 8014f7c: 2100 movs r1, #0
  49930. 8014f7e: 2000 movs r0, #0
  49931. 8014f80: f001 f93c bl 80161fc <xTaskNotifyWait>
  49932. pxStreamBuffer->xTaskWaitingToSend = NULL;
  49933. 8014f84: 6afb ldr r3, [r7, #44] @ 0x2c
  49934. 8014f86: 2200 movs r2, #0
  49935. 8014f88: 615a str r2, [r3, #20]
  49936. } while( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE );
  49937. 8014f8a: 463a mov r2, r7
  49938. 8014f8c: f107 0310 add.w r3, r7, #16
  49939. 8014f90: 4611 mov r1, r2
  49940. 8014f92: 4618 mov r0, r3
  49941. 8014f94: f000 fe48 bl 8015c28 <xTaskCheckForTimeOut>
  49942. 8014f98: 4603 mov r3, r0
  49943. 8014f9a: 2b00 cmp r3, #0
  49944. 8014f9c: d0c4 beq.n 8014f28 <xStreamBufferSend+0x98>
  49945. else
  49946. {
  49947. mtCOVERAGE_TEST_MARKER();
  49948. }
  49949. if( xSpace == ( size_t ) 0 )
  49950. 8014f9e: 6b7b ldr r3, [r7, #52] @ 0x34
  49951. 8014fa0: 2b00 cmp r3, #0
  49952. 8014fa2: d103 bne.n 8014fac <xStreamBufferSend+0x11c>
  49953. {
  49954. xSpace = xStreamBufferSpacesAvailable( pxStreamBuffer );
  49955. 8014fa4: 6af8 ldr r0, [r7, #44] @ 0x2c
  49956. 8014fa6: f7ff ff3f bl 8014e28 <xStreamBufferSpacesAvailable>
  49957. 8014faa: 6378 str r0, [r7, #52] @ 0x34
  49958. else
  49959. {
  49960. mtCOVERAGE_TEST_MARKER();
  49961. }
  49962. xReturn = prvWriteMessageToBuffer( pxStreamBuffer, pvTxData, xDataLengthBytes, xSpace, xRequiredSpace );
  49963. 8014fac: 6b3b ldr r3, [r7, #48] @ 0x30
  49964. 8014fae: 9300 str r3, [sp, #0]
  49965. 8014fb0: 6b7b ldr r3, [r7, #52] @ 0x34
  49966. 8014fb2: 687a ldr r2, [r7, #4]
  49967. 8014fb4: 68b9 ldr r1, [r7, #8]
  49968. 8014fb6: 6af8 ldr r0, [r7, #44] @ 0x2c
  49969. 8014fb8: f000 f823 bl 8015002 <prvWriteMessageToBuffer>
  49970. 8014fbc: 62b8 str r0, [r7, #40] @ 0x28
  49971. if( xReturn > ( size_t ) 0 )
  49972. 8014fbe: 6abb ldr r3, [r7, #40] @ 0x28
  49973. 8014fc0: 2b00 cmp r3, #0
  49974. 8014fc2: d019 beq.n 8014ff8 <xStreamBufferSend+0x168>
  49975. {
  49976. traceSTREAM_BUFFER_SEND( xStreamBuffer, xReturn );
  49977. /* Was a task waiting for the data? */
  49978. if( prvBytesInBuffer( pxStreamBuffer ) >= pxStreamBuffer->xTriggerLevelBytes )
  49979. 8014fc4: 6af8 ldr r0, [r7, #44] @ 0x2c
  49980. 8014fc6: f000 f8ce bl 8015166 <prvBytesInBuffer>
  49981. 8014fca: 4602 mov r2, r0
  49982. 8014fcc: 6afb ldr r3, [r7, #44] @ 0x2c
  49983. 8014fce: 68db ldr r3, [r3, #12]
  49984. 8014fd0: 429a cmp r2, r3
  49985. 8014fd2: d311 bcc.n 8014ff8 <xStreamBufferSend+0x168>
  49986. {
  49987. sbSEND_COMPLETED( pxStreamBuffer );
  49988. 8014fd4: f000 fb4a bl 801566c <vTaskSuspendAll>
  49989. 8014fd8: 6afb ldr r3, [r7, #44] @ 0x2c
  49990. 8014fda: 691b ldr r3, [r3, #16]
  49991. 8014fdc: 2b00 cmp r3, #0
  49992. 8014fde: d009 beq.n 8014ff4 <xStreamBufferSend+0x164>
  49993. 8014fe0: 6afb ldr r3, [r7, #44] @ 0x2c
  49994. 8014fe2: 6918 ldr r0, [r3, #16]
  49995. 8014fe4: 2300 movs r3, #0
  49996. 8014fe6: 2200 movs r2, #0
  49997. 8014fe8: 2100 movs r1, #0
  49998. 8014fea: f001 f967 bl 80162bc <xTaskGenericNotify>
  49999. 8014fee: 6afb ldr r3, [r7, #44] @ 0x2c
  50000. 8014ff0: 2200 movs r2, #0
  50001. 8014ff2: 611a str r2, [r3, #16]
  50002. 8014ff4: f000 fb48 bl 8015688 <xTaskResumeAll>
  50003. {
  50004. mtCOVERAGE_TEST_MARKER();
  50005. traceSTREAM_BUFFER_SEND_FAILED( xStreamBuffer );
  50006. }
  50007. return xReturn;
  50008. 8014ff8: 6abb ldr r3, [r7, #40] @ 0x28
  50009. }
  50010. 8014ffa: 4618 mov r0, r3
  50011. 8014ffc: 3738 adds r7, #56 @ 0x38
  50012. 8014ffe: 46bd mov sp, r7
  50013. 8015000: bd80 pop {r7, pc}
  50014. 08015002 <prvWriteMessageToBuffer>:
  50015. static size_t prvWriteMessageToBuffer( StreamBuffer_t * const pxStreamBuffer,
  50016. const void * pvTxData,
  50017. size_t xDataLengthBytes,
  50018. size_t xSpace,
  50019. size_t xRequiredSpace )
  50020. {
  50021. 8015002: b580 push {r7, lr}
  50022. 8015004: b086 sub sp, #24
  50023. 8015006: af00 add r7, sp, #0
  50024. 8015008: 60f8 str r0, [r7, #12]
  50025. 801500a: 60b9 str r1, [r7, #8]
  50026. 801500c: 607a str r2, [r7, #4]
  50027. 801500e: 603b str r3, [r7, #0]
  50028. BaseType_t xShouldWrite;
  50029. size_t xReturn;
  50030. if( xSpace == ( size_t ) 0 )
  50031. 8015010: 683b ldr r3, [r7, #0]
  50032. 8015012: 2b00 cmp r3, #0
  50033. 8015014: d102 bne.n 801501c <prvWriteMessageToBuffer+0x1a>
  50034. {
  50035. /* Doesn't matter if this is a stream buffer or a message buffer, there
  50036. is no space to write. */
  50037. xShouldWrite = pdFALSE;
  50038. 8015016: 2300 movs r3, #0
  50039. 8015018: 617b str r3, [r7, #20]
  50040. 801501a: e01d b.n 8015058 <prvWriteMessageToBuffer+0x56>
  50041. }
  50042. else if( ( pxStreamBuffer->ucFlags & sbFLAGS_IS_MESSAGE_BUFFER ) == ( uint8_t ) 0 )
  50043. 801501c: 68fb ldr r3, [r7, #12]
  50044. 801501e: 7f1b ldrb r3, [r3, #28]
  50045. 8015020: f003 0301 and.w r3, r3, #1
  50046. 8015024: 2b00 cmp r3, #0
  50047. 8015026: d108 bne.n 801503a <prvWriteMessageToBuffer+0x38>
  50048. {
  50049. /* This is a stream buffer, as opposed to a message buffer, so writing a
  50050. stream of bytes rather than discrete messages. Write as many bytes as
  50051. possible. */
  50052. xShouldWrite = pdTRUE;
  50053. 8015028: 2301 movs r3, #1
  50054. 801502a: 617b str r3, [r7, #20]
  50055. xDataLengthBytes = configMIN( xDataLengthBytes, xSpace );
  50056. 801502c: 687a ldr r2, [r7, #4]
  50057. 801502e: 683b ldr r3, [r7, #0]
  50058. 8015030: 4293 cmp r3, r2
  50059. 8015032: bf28 it cs
  50060. 8015034: 4613 movcs r3, r2
  50061. 8015036: 607b str r3, [r7, #4]
  50062. 8015038: e00e b.n 8015058 <prvWriteMessageToBuffer+0x56>
  50063. }
  50064. else if( xSpace >= xRequiredSpace )
  50065. 801503a: 683a ldr r2, [r7, #0]
  50066. 801503c: 6a3b ldr r3, [r7, #32]
  50067. 801503e: 429a cmp r2, r3
  50068. 8015040: d308 bcc.n 8015054 <prvWriteMessageToBuffer+0x52>
  50069. {
  50070. /* This is a message buffer, as opposed to a stream buffer, and there
  50071. is enough space to write both the message length and the message itself
  50072. into the buffer. Start by writing the length of the data, the data
  50073. itself will be written later in this function. */
  50074. xShouldWrite = pdTRUE;
  50075. 8015042: 2301 movs r3, #1
  50076. 8015044: 617b str r3, [r7, #20]
  50077. ( void ) prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) &( xDataLengthBytes ), sbBYTES_TO_STORE_MESSAGE_LENGTH );
  50078. 8015046: 1d3b adds r3, r7, #4
  50079. 8015048: 2204 movs r2, #4
  50080. 801504a: 4619 mov r1, r3
  50081. 801504c: 68f8 ldr r0, [r7, #12]
  50082. 801504e: f000 f815 bl 801507c <prvWriteBytesToBuffer>
  50083. 8015052: e001 b.n 8015058 <prvWriteMessageToBuffer+0x56>
  50084. }
  50085. else
  50086. {
  50087. /* There is space available, but not enough space. */
  50088. xShouldWrite = pdFALSE;
  50089. 8015054: 2300 movs r3, #0
  50090. 8015056: 617b str r3, [r7, #20]
  50091. }
  50092. if( xShouldWrite != pdFALSE )
  50093. 8015058: 697b ldr r3, [r7, #20]
  50094. 801505a: 2b00 cmp r3, #0
  50095. 801505c: d007 beq.n 801506e <prvWriteMessageToBuffer+0x6c>
  50096. {
  50097. /* Writes the data itself. */
  50098. xReturn = prvWriteBytesToBuffer( pxStreamBuffer, ( const uint8_t * ) pvTxData, xDataLengthBytes ); /*lint !e9079 Storage buffer is implemented as uint8_t for ease of sizing, alighment and access. */
  50099. 801505e: 687b ldr r3, [r7, #4]
  50100. 8015060: 461a mov r2, r3
  50101. 8015062: 68b9 ldr r1, [r7, #8]
  50102. 8015064: 68f8 ldr r0, [r7, #12]
  50103. 8015066: f000 f809 bl 801507c <prvWriteBytesToBuffer>
  50104. 801506a: 6138 str r0, [r7, #16]
  50105. 801506c: e001 b.n 8015072 <prvWriteMessageToBuffer+0x70>
  50106. }
  50107. else
  50108. {
  50109. xReturn = 0;
  50110. 801506e: 2300 movs r3, #0
  50111. 8015070: 613b str r3, [r7, #16]
  50112. }
  50113. return xReturn;
  50114. 8015072: 693b ldr r3, [r7, #16]
  50115. }
  50116. 8015074: 4618 mov r0, r3
  50117. 8015076: 3718 adds r7, #24
  50118. 8015078: 46bd mov sp, r7
  50119. 801507a: bd80 pop {r7, pc}
  50120. 0801507c <prvWriteBytesToBuffer>:
  50121. return xReturn;
  50122. }
  50123. /*-----------------------------------------------------------*/
  50124. static size_t prvWriteBytesToBuffer( StreamBuffer_t * const pxStreamBuffer, const uint8_t *pucData, size_t xCount )
  50125. {
  50126. 801507c: b580 push {r7, lr}
  50127. 801507e: b08a sub sp, #40 @ 0x28
  50128. 8015080: af00 add r7, sp, #0
  50129. 8015082: 60f8 str r0, [r7, #12]
  50130. 8015084: 60b9 str r1, [r7, #8]
  50131. 8015086: 607a str r2, [r7, #4]
  50132. size_t xNextHead, xFirstLength;
  50133. configASSERT( xCount > ( size_t ) 0 );
  50134. 8015088: 687b ldr r3, [r7, #4]
  50135. 801508a: 2b00 cmp r3, #0
  50136. 801508c: d10b bne.n 80150a6 <prvWriteBytesToBuffer+0x2a>
  50137. __asm volatile
  50138. 801508e: f04f 0350 mov.w r3, #80 @ 0x50
  50139. 8015092: f383 8811 msr BASEPRI, r3
  50140. 8015096: f3bf 8f6f isb sy
  50141. 801509a: f3bf 8f4f dsb sy
  50142. 801509e: 61fb str r3, [r7, #28]
  50143. }
  50144. 80150a0: bf00 nop
  50145. 80150a2: bf00 nop
  50146. 80150a4: e7fd b.n 80150a2 <prvWriteBytesToBuffer+0x26>
  50147. xNextHead = pxStreamBuffer->xHead;
  50148. 80150a6: 68fb ldr r3, [r7, #12]
  50149. 80150a8: 685b ldr r3, [r3, #4]
  50150. 80150aa: 627b str r3, [r7, #36] @ 0x24
  50151. /* Calculate the number of bytes that can be added in the first write -
  50152. which may be less than the total number of bytes that need to be added if
  50153. the buffer will wrap back to the beginning. */
  50154. xFirstLength = configMIN( pxStreamBuffer->xLength - xNextHead, xCount );
  50155. 80150ac: 68fb ldr r3, [r7, #12]
  50156. 80150ae: 689a ldr r2, [r3, #8]
  50157. 80150b0: 6a7b ldr r3, [r7, #36] @ 0x24
  50158. 80150b2: 1ad3 subs r3, r2, r3
  50159. 80150b4: 687a ldr r2, [r7, #4]
  50160. 80150b6: 4293 cmp r3, r2
  50161. 80150b8: bf28 it cs
  50162. 80150ba: 4613 movcs r3, r2
  50163. 80150bc: 623b str r3, [r7, #32]
  50164. /* Write as many bytes as can be written in the first write. */
  50165. configASSERT( ( xNextHead + xFirstLength ) <= pxStreamBuffer->xLength );
  50166. 80150be: 6a7a ldr r2, [r7, #36] @ 0x24
  50167. 80150c0: 6a3b ldr r3, [r7, #32]
  50168. 80150c2: 441a add r2, r3
  50169. 80150c4: 68fb ldr r3, [r7, #12]
  50170. 80150c6: 689b ldr r3, [r3, #8]
  50171. 80150c8: 429a cmp r2, r3
  50172. 80150ca: d90b bls.n 80150e4 <prvWriteBytesToBuffer+0x68>
  50173. __asm volatile
  50174. 80150cc: f04f 0350 mov.w r3, #80 @ 0x50
  50175. 80150d0: f383 8811 msr BASEPRI, r3
  50176. 80150d4: f3bf 8f6f isb sy
  50177. 80150d8: f3bf 8f4f dsb sy
  50178. 80150dc: 61bb str r3, [r7, #24]
  50179. }
  50180. 80150de: bf00 nop
  50181. 80150e0: bf00 nop
  50182. 80150e2: e7fd b.n 80150e0 <prvWriteBytesToBuffer+0x64>
  50183. ( void ) memcpy( ( void* ) ( &( pxStreamBuffer->pucBuffer[ xNextHead ] ) ), ( const void * ) pucData, xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50184. 80150e4: 68fb ldr r3, [r7, #12]
  50185. 80150e6: 699a ldr r2, [r3, #24]
  50186. 80150e8: 6a7b ldr r3, [r7, #36] @ 0x24
  50187. 80150ea: 4413 add r3, r2
  50188. 80150ec: 6a3a ldr r2, [r7, #32]
  50189. 80150ee: 68b9 ldr r1, [r7, #8]
  50190. 80150f0: 4618 mov r0, r3
  50191. 80150f2: f003 fa8e bl 8018612 <memcpy>
  50192. /* If the number of bytes written was less than the number that could be
  50193. written in the first write... */
  50194. if( xCount > xFirstLength )
  50195. 80150f6: 687a ldr r2, [r7, #4]
  50196. 80150f8: 6a3b ldr r3, [r7, #32]
  50197. 80150fa: 429a cmp r2, r3
  50198. 80150fc: d91d bls.n 801513a <prvWriteBytesToBuffer+0xbe>
  50199. {
  50200. /* ...then write the remaining bytes to the start of the buffer. */
  50201. configASSERT( ( xCount - xFirstLength ) <= pxStreamBuffer->xLength );
  50202. 80150fe: 687a ldr r2, [r7, #4]
  50203. 8015100: 6a3b ldr r3, [r7, #32]
  50204. 8015102: 1ad2 subs r2, r2, r3
  50205. 8015104: 68fb ldr r3, [r7, #12]
  50206. 8015106: 689b ldr r3, [r3, #8]
  50207. 8015108: 429a cmp r2, r3
  50208. 801510a: d90b bls.n 8015124 <prvWriteBytesToBuffer+0xa8>
  50209. __asm volatile
  50210. 801510c: f04f 0350 mov.w r3, #80 @ 0x50
  50211. 8015110: f383 8811 msr BASEPRI, r3
  50212. 8015114: f3bf 8f6f isb sy
  50213. 8015118: f3bf 8f4f dsb sy
  50214. 801511c: 617b str r3, [r7, #20]
  50215. }
  50216. 801511e: bf00 nop
  50217. 8015120: bf00 nop
  50218. 8015122: e7fd b.n 8015120 <prvWriteBytesToBuffer+0xa4>
  50219. ( void ) memcpy( ( void * ) pxStreamBuffer->pucBuffer, ( const void * ) &( pucData[ xFirstLength ] ), xCount - xFirstLength ); /*lint !e9087 memcpy() requires void *. */
  50220. 8015124: 68fb ldr r3, [r7, #12]
  50221. 8015126: 6998 ldr r0, [r3, #24]
  50222. 8015128: 68ba ldr r2, [r7, #8]
  50223. 801512a: 6a3b ldr r3, [r7, #32]
  50224. 801512c: 18d1 adds r1, r2, r3
  50225. 801512e: 687a ldr r2, [r7, #4]
  50226. 8015130: 6a3b ldr r3, [r7, #32]
  50227. 8015132: 1ad3 subs r3, r2, r3
  50228. 8015134: 461a mov r2, r3
  50229. 8015136: f003 fa6c bl 8018612 <memcpy>
  50230. else
  50231. {
  50232. mtCOVERAGE_TEST_MARKER();
  50233. }
  50234. xNextHead += xCount;
  50235. 801513a: 6a7a ldr r2, [r7, #36] @ 0x24
  50236. 801513c: 687b ldr r3, [r7, #4]
  50237. 801513e: 4413 add r3, r2
  50238. 8015140: 627b str r3, [r7, #36] @ 0x24
  50239. if( xNextHead >= pxStreamBuffer->xLength )
  50240. 8015142: 68fb ldr r3, [r7, #12]
  50241. 8015144: 689b ldr r3, [r3, #8]
  50242. 8015146: 6a7a ldr r2, [r7, #36] @ 0x24
  50243. 8015148: 429a cmp r2, r3
  50244. 801514a: d304 bcc.n 8015156 <prvWriteBytesToBuffer+0xda>
  50245. {
  50246. xNextHead -= pxStreamBuffer->xLength;
  50247. 801514c: 68fb ldr r3, [r7, #12]
  50248. 801514e: 689b ldr r3, [r3, #8]
  50249. 8015150: 6a7a ldr r2, [r7, #36] @ 0x24
  50250. 8015152: 1ad3 subs r3, r2, r3
  50251. 8015154: 627b str r3, [r7, #36] @ 0x24
  50252. else
  50253. {
  50254. mtCOVERAGE_TEST_MARKER();
  50255. }
  50256. pxStreamBuffer->xHead = xNextHead;
  50257. 8015156: 68fb ldr r3, [r7, #12]
  50258. 8015158: 6a7a ldr r2, [r7, #36] @ 0x24
  50259. 801515a: 605a str r2, [r3, #4]
  50260. return xCount;
  50261. 801515c: 687b ldr r3, [r7, #4]
  50262. }
  50263. 801515e: 4618 mov r0, r3
  50264. 8015160: 3728 adds r7, #40 @ 0x28
  50265. 8015162: 46bd mov sp, r7
  50266. 8015164: bd80 pop {r7, pc}
  50267. 08015166 <prvBytesInBuffer>:
  50268. return xCount;
  50269. }
  50270. /*-----------------------------------------------------------*/
  50271. static size_t prvBytesInBuffer( const StreamBuffer_t * const pxStreamBuffer )
  50272. {
  50273. 8015166: b480 push {r7}
  50274. 8015168: b085 sub sp, #20
  50275. 801516a: af00 add r7, sp, #0
  50276. 801516c: 6078 str r0, [r7, #4]
  50277. /* Returns the distance between xTail and xHead. */
  50278. size_t xCount;
  50279. xCount = pxStreamBuffer->xLength + pxStreamBuffer->xHead;
  50280. 801516e: 687b ldr r3, [r7, #4]
  50281. 8015170: 689a ldr r2, [r3, #8]
  50282. 8015172: 687b ldr r3, [r7, #4]
  50283. 8015174: 685b ldr r3, [r3, #4]
  50284. 8015176: 4413 add r3, r2
  50285. 8015178: 60fb str r3, [r7, #12]
  50286. xCount -= pxStreamBuffer->xTail;
  50287. 801517a: 687b ldr r3, [r7, #4]
  50288. 801517c: 681b ldr r3, [r3, #0]
  50289. 801517e: 68fa ldr r2, [r7, #12]
  50290. 8015180: 1ad3 subs r3, r2, r3
  50291. 8015182: 60fb str r3, [r7, #12]
  50292. if ( xCount >= pxStreamBuffer->xLength )
  50293. 8015184: 687b ldr r3, [r7, #4]
  50294. 8015186: 689b ldr r3, [r3, #8]
  50295. 8015188: 68fa ldr r2, [r7, #12]
  50296. 801518a: 429a cmp r2, r3
  50297. 801518c: d304 bcc.n 8015198 <prvBytesInBuffer+0x32>
  50298. {
  50299. xCount -= pxStreamBuffer->xLength;
  50300. 801518e: 687b ldr r3, [r7, #4]
  50301. 8015190: 689b ldr r3, [r3, #8]
  50302. 8015192: 68fa ldr r2, [r7, #12]
  50303. 8015194: 1ad3 subs r3, r2, r3
  50304. 8015196: 60fb str r3, [r7, #12]
  50305. else
  50306. {
  50307. mtCOVERAGE_TEST_MARKER();
  50308. }
  50309. return xCount;
  50310. 8015198: 68fb ldr r3, [r7, #12]
  50311. }
  50312. 801519a: 4618 mov r0, r3
  50313. 801519c: 3714 adds r7, #20
  50314. 801519e: 46bd mov sp, r7
  50315. 80151a0: f85d 7b04 ldr.w r7, [sp], #4
  50316. 80151a4: 4770 bx lr
  50317. 080151a6 <xTaskCreateStatic>:
  50318. const uint32_t ulStackDepth,
  50319. void * const pvParameters,
  50320. UBaseType_t uxPriority,
  50321. StackType_t * const puxStackBuffer,
  50322. StaticTask_t * const pxTaskBuffer )
  50323. {
  50324. 80151a6: b580 push {r7, lr}
  50325. 80151a8: b08e sub sp, #56 @ 0x38
  50326. 80151aa: af04 add r7, sp, #16
  50327. 80151ac: 60f8 str r0, [r7, #12]
  50328. 80151ae: 60b9 str r1, [r7, #8]
  50329. 80151b0: 607a str r2, [r7, #4]
  50330. 80151b2: 603b str r3, [r7, #0]
  50331. TCB_t *pxNewTCB;
  50332. TaskHandle_t xReturn;
  50333. configASSERT( puxStackBuffer != NULL );
  50334. 80151b4: 6b7b ldr r3, [r7, #52] @ 0x34
  50335. 80151b6: 2b00 cmp r3, #0
  50336. 80151b8: d10b bne.n 80151d2 <xTaskCreateStatic+0x2c>
  50337. __asm volatile
  50338. 80151ba: f04f 0350 mov.w r3, #80 @ 0x50
  50339. 80151be: f383 8811 msr BASEPRI, r3
  50340. 80151c2: f3bf 8f6f isb sy
  50341. 80151c6: f3bf 8f4f dsb sy
  50342. 80151ca: 623b str r3, [r7, #32]
  50343. }
  50344. 80151cc: bf00 nop
  50345. 80151ce: bf00 nop
  50346. 80151d0: e7fd b.n 80151ce <xTaskCreateStatic+0x28>
  50347. configASSERT( pxTaskBuffer != NULL );
  50348. 80151d2: 6bbb ldr r3, [r7, #56] @ 0x38
  50349. 80151d4: 2b00 cmp r3, #0
  50350. 80151d6: d10b bne.n 80151f0 <xTaskCreateStatic+0x4a>
  50351. __asm volatile
  50352. 80151d8: f04f 0350 mov.w r3, #80 @ 0x50
  50353. 80151dc: f383 8811 msr BASEPRI, r3
  50354. 80151e0: f3bf 8f6f isb sy
  50355. 80151e4: f3bf 8f4f dsb sy
  50356. 80151e8: 61fb str r3, [r7, #28]
  50357. }
  50358. 80151ea: bf00 nop
  50359. 80151ec: bf00 nop
  50360. 80151ee: e7fd b.n 80151ec <xTaskCreateStatic+0x46>
  50361. #if( configASSERT_DEFINED == 1 )
  50362. {
  50363. /* Sanity check that the size of the structure used to declare a
  50364. variable of type StaticTask_t equals the size of the real task
  50365. structure. */
  50366. volatile size_t xSize = sizeof( StaticTask_t );
  50367. 80151f0: 23a8 movs r3, #168 @ 0xa8
  50368. 80151f2: 613b str r3, [r7, #16]
  50369. configASSERT( xSize == sizeof( TCB_t ) );
  50370. 80151f4: 693b ldr r3, [r7, #16]
  50371. 80151f6: 2ba8 cmp r3, #168 @ 0xa8
  50372. 80151f8: d00b beq.n 8015212 <xTaskCreateStatic+0x6c>
  50373. __asm volatile
  50374. 80151fa: f04f 0350 mov.w r3, #80 @ 0x50
  50375. 80151fe: f383 8811 msr BASEPRI, r3
  50376. 8015202: f3bf 8f6f isb sy
  50377. 8015206: f3bf 8f4f dsb sy
  50378. 801520a: 61bb str r3, [r7, #24]
  50379. }
  50380. 801520c: bf00 nop
  50381. 801520e: bf00 nop
  50382. 8015210: e7fd b.n 801520e <xTaskCreateStatic+0x68>
  50383. ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
  50384. 8015212: 693b ldr r3, [r7, #16]
  50385. }
  50386. #endif /* configASSERT_DEFINED */
  50387. if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
  50388. 8015214: 6bbb ldr r3, [r7, #56] @ 0x38
  50389. 8015216: 2b00 cmp r3, #0
  50390. 8015218: d01e beq.n 8015258 <xTaskCreateStatic+0xb2>
  50391. 801521a: 6b7b ldr r3, [r7, #52] @ 0x34
  50392. 801521c: 2b00 cmp r3, #0
  50393. 801521e: d01b beq.n 8015258 <xTaskCreateStatic+0xb2>
  50394. {
  50395. /* The memory used for the task's TCB and stack are passed into this
  50396. function - use them. */
  50397. pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
  50398. 8015220: 6bbb ldr r3, [r7, #56] @ 0x38
  50399. 8015222: 627b str r3, [r7, #36] @ 0x24
  50400. pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
  50401. 8015224: 6a7b ldr r3, [r7, #36] @ 0x24
  50402. 8015226: 6b7a ldr r2, [r7, #52] @ 0x34
  50403. 8015228: 631a str r2, [r3, #48] @ 0x30
  50404. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  50405. {
  50406. /* Tasks can be created statically or dynamically, so note this
  50407. task was created statically in case the task is later deleted. */
  50408. pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
  50409. 801522a: 6a7b ldr r3, [r7, #36] @ 0x24
  50410. 801522c: 2202 movs r2, #2
  50411. 801522e: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  50412. }
  50413. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  50414. prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
  50415. 8015232: 2300 movs r3, #0
  50416. 8015234: 9303 str r3, [sp, #12]
  50417. 8015236: 6a7b ldr r3, [r7, #36] @ 0x24
  50418. 8015238: 9302 str r3, [sp, #8]
  50419. 801523a: f107 0314 add.w r3, r7, #20
  50420. 801523e: 9301 str r3, [sp, #4]
  50421. 8015240: 6b3b ldr r3, [r7, #48] @ 0x30
  50422. 8015242: 9300 str r3, [sp, #0]
  50423. 8015244: 683b ldr r3, [r7, #0]
  50424. 8015246: 687a ldr r2, [r7, #4]
  50425. 8015248: 68b9 ldr r1, [r7, #8]
  50426. 801524a: 68f8 ldr r0, [r7, #12]
  50427. 801524c: f000 f850 bl 80152f0 <prvInitialiseNewTask>
  50428. prvAddNewTaskToReadyList( pxNewTCB );
  50429. 8015250: 6a78 ldr r0, [r7, #36] @ 0x24
  50430. 8015252: f000 f8f5 bl 8015440 <prvAddNewTaskToReadyList>
  50431. 8015256: e001 b.n 801525c <xTaskCreateStatic+0xb6>
  50432. }
  50433. else
  50434. {
  50435. xReturn = NULL;
  50436. 8015258: 2300 movs r3, #0
  50437. 801525a: 617b str r3, [r7, #20]
  50438. }
  50439. return xReturn;
  50440. 801525c: 697b ldr r3, [r7, #20]
  50441. }
  50442. 801525e: 4618 mov r0, r3
  50443. 8015260: 3728 adds r7, #40 @ 0x28
  50444. 8015262: 46bd mov sp, r7
  50445. 8015264: bd80 pop {r7, pc}
  50446. 08015266 <xTaskCreate>:
  50447. const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  50448. const configSTACK_DEPTH_TYPE usStackDepth,
  50449. void * const pvParameters,
  50450. UBaseType_t uxPriority,
  50451. TaskHandle_t * const pxCreatedTask )
  50452. {
  50453. 8015266: b580 push {r7, lr}
  50454. 8015268: b08c sub sp, #48 @ 0x30
  50455. 801526a: af04 add r7, sp, #16
  50456. 801526c: 60f8 str r0, [r7, #12]
  50457. 801526e: 60b9 str r1, [r7, #8]
  50458. 8015270: 603b str r3, [r7, #0]
  50459. 8015272: 4613 mov r3, r2
  50460. 8015274: 80fb strh r3, [r7, #6]
  50461. #else /* portSTACK_GROWTH */
  50462. {
  50463. StackType_t *pxStack;
  50464. /* Allocate space for the stack used by the task being created. */
  50465. pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */
  50466. 8015276: 88fb ldrh r3, [r7, #6]
  50467. 8015278: 009b lsls r3, r3, #2
  50468. 801527a: 4618 mov r0, r3
  50469. 801527c: f002 f8d6 bl 801742c <pvPortMalloc>
  50470. 8015280: 6178 str r0, [r7, #20]
  50471. if( pxStack != NULL )
  50472. 8015282: 697b ldr r3, [r7, #20]
  50473. 8015284: 2b00 cmp r3, #0
  50474. 8015286: d00e beq.n 80152a6 <xTaskCreate+0x40>
  50475. {
  50476. /* Allocate space for the TCB. */
  50477. pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
  50478. 8015288: 20a8 movs r0, #168 @ 0xa8
  50479. 801528a: f002 f8cf bl 801742c <pvPortMalloc>
  50480. 801528e: 61f8 str r0, [r7, #28]
  50481. if( pxNewTCB != NULL )
  50482. 8015290: 69fb ldr r3, [r7, #28]
  50483. 8015292: 2b00 cmp r3, #0
  50484. 8015294: d003 beq.n 801529e <xTaskCreate+0x38>
  50485. {
  50486. /* Store the stack location in the TCB. */
  50487. pxNewTCB->pxStack = pxStack;
  50488. 8015296: 69fb ldr r3, [r7, #28]
  50489. 8015298: 697a ldr r2, [r7, #20]
  50490. 801529a: 631a str r2, [r3, #48] @ 0x30
  50491. 801529c: e005 b.n 80152aa <xTaskCreate+0x44>
  50492. }
  50493. else
  50494. {
  50495. /* The stack cannot be used as the TCB was not created. Free
  50496. it again. */
  50497. vPortFree( pxStack );
  50498. 801529e: 6978 ldr r0, [r7, #20]
  50499. 80152a0: f002 f992 bl 80175c8 <vPortFree>
  50500. 80152a4: e001 b.n 80152aa <xTaskCreate+0x44>
  50501. }
  50502. }
  50503. else
  50504. {
  50505. pxNewTCB = NULL;
  50506. 80152a6: 2300 movs r3, #0
  50507. 80152a8: 61fb str r3, [r7, #28]
  50508. }
  50509. }
  50510. #endif /* portSTACK_GROWTH */
  50511. if( pxNewTCB != NULL )
  50512. 80152aa: 69fb ldr r3, [r7, #28]
  50513. 80152ac: 2b00 cmp r3, #0
  50514. 80152ae: d017 beq.n 80152e0 <xTaskCreate+0x7a>
  50515. {
  50516. #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
  50517. {
  50518. /* Tasks can be created statically or dynamically, so note this
  50519. task was created dynamically in case it is later deleted. */
  50520. pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
  50521. 80152b0: 69fb ldr r3, [r7, #28]
  50522. 80152b2: 2200 movs r2, #0
  50523. 80152b4: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
  50524. }
  50525. #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
  50526. prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
  50527. 80152b8: 88fa ldrh r2, [r7, #6]
  50528. 80152ba: 2300 movs r3, #0
  50529. 80152bc: 9303 str r3, [sp, #12]
  50530. 80152be: 69fb ldr r3, [r7, #28]
  50531. 80152c0: 9302 str r3, [sp, #8]
  50532. 80152c2: 6afb ldr r3, [r7, #44] @ 0x2c
  50533. 80152c4: 9301 str r3, [sp, #4]
  50534. 80152c6: 6abb ldr r3, [r7, #40] @ 0x28
  50535. 80152c8: 9300 str r3, [sp, #0]
  50536. 80152ca: 683b ldr r3, [r7, #0]
  50537. 80152cc: 68b9 ldr r1, [r7, #8]
  50538. 80152ce: 68f8 ldr r0, [r7, #12]
  50539. 80152d0: f000 f80e bl 80152f0 <prvInitialiseNewTask>
  50540. prvAddNewTaskToReadyList( pxNewTCB );
  50541. 80152d4: 69f8 ldr r0, [r7, #28]
  50542. 80152d6: f000 f8b3 bl 8015440 <prvAddNewTaskToReadyList>
  50543. xReturn = pdPASS;
  50544. 80152da: 2301 movs r3, #1
  50545. 80152dc: 61bb str r3, [r7, #24]
  50546. 80152de: e002 b.n 80152e6 <xTaskCreate+0x80>
  50547. }
  50548. else
  50549. {
  50550. xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
  50551. 80152e0: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  50552. 80152e4: 61bb str r3, [r7, #24]
  50553. }
  50554. return xReturn;
  50555. 80152e6: 69bb ldr r3, [r7, #24]
  50556. }
  50557. 80152e8: 4618 mov r0, r3
  50558. 80152ea: 3720 adds r7, #32
  50559. 80152ec: 46bd mov sp, r7
  50560. 80152ee: bd80 pop {r7, pc}
  50561. 080152f0 <prvInitialiseNewTask>:
  50562. void * const pvParameters,
  50563. UBaseType_t uxPriority,
  50564. TaskHandle_t * const pxCreatedTask,
  50565. TCB_t *pxNewTCB,
  50566. const MemoryRegion_t * const xRegions )
  50567. {
  50568. 80152f0: b580 push {r7, lr}
  50569. 80152f2: b088 sub sp, #32
  50570. 80152f4: af00 add r7, sp, #0
  50571. 80152f6: 60f8 str r0, [r7, #12]
  50572. 80152f8: 60b9 str r1, [r7, #8]
  50573. 80152fa: 607a str r2, [r7, #4]
  50574. 80152fc: 603b str r3, [r7, #0]
  50575. /* Avoid dependency on memset() if it is not required. */
  50576. #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
  50577. {
  50578. /* Fill the stack with a known value to assist debugging. */
  50579. ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
  50580. 80152fe: 6b3b ldr r3, [r7, #48] @ 0x30
  50581. 8015300: 6b18 ldr r0, [r3, #48] @ 0x30
  50582. 8015302: 687b ldr r3, [r7, #4]
  50583. 8015304: 009b lsls r3, r3, #2
  50584. 8015306: 461a mov r2, r3
  50585. 8015308: 21a5 movs r1, #165 @ 0xa5
  50586. 801530a: f003 f8ad bl 8018468 <memset>
  50587. grows from high memory to low (as per the 80x86) or vice versa.
  50588. portSTACK_GROWTH is used to make the result positive or negative as required
  50589. by the port. */
  50590. #if( portSTACK_GROWTH < 0 )
  50591. {
  50592. pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
  50593. 801530e: 6b3b ldr r3, [r7, #48] @ 0x30
  50594. 8015310: 6b1a ldr r2, [r3, #48] @ 0x30
  50595. 8015312: 6879 ldr r1, [r7, #4]
  50596. 8015314: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
  50597. 8015318: 440b add r3, r1
  50598. 801531a: 009b lsls r3, r3, #2
  50599. 801531c: 4413 add r3, r2
  50600. 801531e: 61bb str r3, [r7, #24]
  50601. pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */
  50602. 8015320: 69bb ldr r3, [r7, #24]
  50603. 8015322: f023 0307 bic.w r3, r3, #7
  50604. 8015326: 61bb str r3, [r7, #24]
  50605. /* Check the alignment of the calculated top of stack is correct. */
  50606. configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
  50607. 8015328: 69bb ldr r3, [r7, #24]
  50608. 801532a: f003 0307 and.w r3, r3, #7
  50609. 801532e: 2b00 cmp r3, #0
  50610. 8015330: d00b beq.n 801534a <prvInitialiseNewTask+0x5a>
  50611. __asm volatile
  50612. 8015332: f04f 0350 mov.w r3, #80 @ 0x50
  50613. 8015336: f383 8811 msr BASEPRI, r3
  50614. 801533a: f3bf 8f6f isb sy
  50615. 801533e: f3bf 8f4f dsb sy
  50616. 8015342: 617b str r3, [r7, #20]
  50617. }
  50618. 8015344: bf00 nop
  50619. 8015346: bf00 nop
  50620. 8015348: e7fd b.n 8015346 <prvInitialiseNewTask+0x56>
  50621. pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
  50622. }
  50623. #endif /* portSTACK_GROWTH */
  50624. /* Store the task name in the TCB. */
  50625. if( pcName != NULL )
  50626. 801534a: 68bb ldr r3, [r7, #8]
  50627. 801534c: 2b00 cmp r3, #0
  50628. 801534e: d01f beq.n 8015390 <prvInitialiseNewTask+0xa0>
  50629. {
  50630. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  50631. 8015350: 2300 movs r3, #0
  50632. 8015352: 61fb str r3, [r7, #28]
  50633. 8015354: e012 b.n 801537c <prvInitialiseNewTask+0x8c>
  50634. {
  50635. pxNewTCB->pcTaskName[ x ] = pcName[ x ];
  50636. 8015356: 68ba ldr r2, [r7, #8]
  50637. 8015358: 69fb ldr r3, [r7, #28]
  50638. 801535a: 4413 add r3, r2
  50639. 801535c: 7819 ldrb r1, [r3, #0]
  50640. 801535e: 6b3a ldr r2, [r7, #48] @ 0x30
  50641. 8015360: 69fb ldr r3, [r7, #28]
  50642. 8015362: 4413 add r3, r2
  50643. 8015364: 3334 adds r3, #52 @ 0x34
  50644. 8015366: 460a mov r2, r1
  50645. 8015368: 701a strb r2, [r3, #0]
  50646. /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
  50647. configMAX_TASK_NAME_LEN characters just in case the memory after the
  50648. string is not accessible (extremely unlikely). */
  50649. if( pcName[ x ] == ( char ) 0x00 )
  50650. 801536a: 68ba ldr r2, [r7, #8]
  50651. 801536c: 69fb ldr r3, [r7, #28]
  50652. 801536e: 4413 add r3, r2
  50653. 8015370: 781b ldrb r3, [r3, #0]
  50654. 8015372: 2b00 cmp r3, #0
  50655. 8015374: d006 beq.n 8015384 <prvInitialiseNewTask+0x94>
  50656. for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
  50657. 8015376: 69fb ldr r3, [r7, #28]
  50658. 8015378: 3301 adds r3, #1
  50659. 801537a: 61fb str r3, [r7, #28]
  50660. 801537c: 69fb ldr r3, [r7, #28]
  50661. 801537e: 2b0f cmp r3, #15
  50662. 8015380: d9e9 bls.n 8015356 <prvInitialiseNewTask+0x66>
  50663. 8015382: e000 b.n 8015386 <prvInitialiseNewTask+0x96>
  50664. {
  50665. break;
  50666. 8015384: bf00 nop
  50667. }
  50668. }
  50669. /* Ensure the name string is terminated in the case that the string length
  50670. was greater or equal to configMAX_TASK_NAME_LEN. */
  50671. pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
  50672. 8015386: 6b3b ldr r3, [r7, #48] @ 0x30
  50673. 8015388: 2200 movs r2, #0
  50674. 801538a: f883 2043 strb.w r2, [r3, #67] @ 0x43
  50675. 801538e: e003 b.n 8015398 <prvInitialiseNewTask+0xa8>
  50676. }
  50677. else
  50678. {
  50679. /* The task has not been given a name, so just ensure there is a NULL
  50680. terminator when it is read out. */
  50681. pxNewTCB->pcTaskName[ 0 ] = 0x00;
  50682. 8015390: 6b3b ldr r3, [r7, #48] @ 0x30
  50683. 8015392: 2200 movs r2, #0
  50684. 8015394: f883 2034 strb.w r2, [r3, #52] @ 0x34
  50685. }
  50686. /* This is used as an array index so must ensure it's not too large. First
  50687. remove the privilege bit if one is present. */
  50688. if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
  50689. 8015398: 6abb ldr r3, [r7, #40] @ 0x28
  50690. 801539a: 2b37 cmp r3, #55 @ 0x37
  50691. 801539c: d901 bls.n 80153a2 <prvInitialiseNewTask+0xb2>
  50692. {
  50693. uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
  50694. 801539e: 2337 movs r3, #55 @ 0x37
  50695. 80153a0: 62bb str r3, [r7, #40] @ 0x28
  50696. else
  50697. {
  50698. mtCOVERAGE_TEST_MARKER();
  50699. }
  50700. pxNewTCB->uxPriority = uxPriority;
  50701. 80153a2: 6b3b ldr r3, [r7, #48] @ 0x30
  50702. 80153a4: 6aba ldr r2, [r7, #40] @ 0x28
  50703. 80153a6: 62da str r2, [r3, #44] @ 0x2c
  50704. #if ( configUSE_MUTEXES == 1 )
  50705. {
  50706. pxNewTCB->uxBasePriority = uxPriority;
  50707. 80153a8: 6b3b ldr r3, [r7, #48] @ 0x30
  50708. 80153aa: 6aba ldr r2, [r7, #40] @ 0x28
  50709. 80153ac: 64da str r2, [r3, #76] @ 0x4c
  50710. pxNewTCB->uxMutexesHeld = 0;
  50711. 80153ae: 6b3b ldr r3, [r7, #48] @ 0x30
  50712. 80153b0: 2200 movs r2, #0
  50713. 80153b2: 651a str r2, [r3, #80] @ 0x50
  50714. }
  50715. #endif /* configUSE_MUTEXES */
  50716. vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
  50717. 80153b4: 6b3b ldr r3, [r7, #48] @ 0x30
  50718. 80153b6: 3304 adds r3, #4
  50719. 80153b8: 4618 mov r0, r3
  50720. 80153ba: f7fe fd09 bl 8013dd0 <vListInitialiseItem>
  50721. vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
  50722. 80153be: 6b3b ldr r3, [r7, #48] @ 0x30
  50723. 80153c0: 3318 adds r3, #24
  50724. 80153c2: 4618 mov r0, r3
  50725. 80153c4: f7fe fd04 bl 8013dd0 <vListInitialiseItem>
  50726. /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
  50727. back to the containing TCB from a generic item in a list. */
  50728. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
  50729. 80153c8: 6b3b ldr r3, [r7, #48] @ 0x30
  50730. 80153ca: 6b3a ldr r2, [r7, #48] @ 0x30
  50731. 80153cc: 611a str r2, [r3, #16]
  50732. /* Event lists are always in priority order. */
  50733. listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  50734. 80153ce: 6abb ldr r3, [r7, #40] @ 0x28
  50735. 80153d0: f1c3 0238 rsb r2, r3, #56 @ 0x38
  50736. 80153d4: 6b3b ldr r3, [r7, #48] @ 0x30
  50737. 80153d6: 619a str r2, [r3, #24]
  50738. listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
  50739. 80153d8: 6b3b ldr r3, [r7, #48] @ 0x30
  50740. 80153da: 6b3a ldr r2, [r7, #48] @ 0x30
  50741. 80153dc: 625a str r2, [r3, #36] @ 0x24
  50742. }
  50743. #endif
  50744. #if ( configUSE_TASK_NOTIFICATIONS == 1 )
  50745. {
  50746. pxNewTCB->ulNotifiedValue = 0;
  50747. 80153de: 6b3b ldr r3, [r7, #48] @ 0x30
  50748. 80153e0: 2200 movs r2, #0
  50749. 80153e2: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  50750. pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  50751. 80153e6: 6b3b ldr r3, [r7, #48] @ 0x30
  50752. 80153e8: 2200 movs r2, #0
  50753. 80153ea: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  50754. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  50755. {
  50756. /* Initialise this task's Newlib reent structure.
  50757. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  50758. for additional information. */
  50759. _REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
  50760. 80153ee: 6b3b ldr r3, [r7, #48] @ 0x30
  50761. 80153f0: 3354 adds r3, #84 @ 0x54
  50762. 80153f2: 224c movs r2, #76 @ 0x4c
  50763. 80153f4: 2100 movs r1, #0
  50764. 80153f6: 4618 mov r0, r3
  50765. 80153f8: f003 f836 bl 8018468 <memset>
  50766. 80153fc: 6b3b ldr r3, [r7, #48] @ 0x30
  50767. 80153fe: 4a0d ldr r2, [pc, #52] @ (8015434 <prvInitialiseNewTask+0x144>)
  50768. 8015400: 659a str r2, [r3, #88] @ 0x58
  50769. 8015402: 6b3b ldr r3, [r7, #48] @ 0x30
  50770. 8015404: 4a0c ldr r2, [pc, #48] @ (8015438 <prvInitialiseNewTask+0x148>)
  50771. 8015406: 65da str r2, [r3, #92] @ 0x5c
  50772. 8015408: 6b3b ldr r3, [r7, #48] @ 0x30
  50773. 801540a: 4a0c ldr r2, [pc, #48] @ (801543c <prvInitialiseNewTask+0x14c>)
  50774. 801540c: 661a str r2, [r3, #96] @ 0x60
  50775. }
  50776. #endif /* portSTACK_GROWTH */
  50777. }
  50778. #else /* portHAS_STACK_OVERFLOW_CHECKING */
  50779. {
  50780. pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
  50781. 801540e: 683a ldr r2, [r7, #0]
  50782. 8015410: 68f9 ldr r1, [r7, #12]
  50783. 8015412: 69b8 ldr r0, [r7, #24]
  50784. 8015414: f001 fdb8 bl 8016f88 <pxPortInitialiseStack>
  50785. 8015418: 4602 mov r2, r0
  50786. 801541a: 6b3b ldr r3, [r7, #48] @ 0x30
  50787. 801541c: 601a str r2, [r3, #0]
  50788. }
  50789. #endif /* portHAS_STACK_OVERFLOW_CHECKING */
  50790. }
  50791. #endif /* portUSING_MPU_WRAPPERS */
  50792. if( pxCreatedTask != NULL )
  50793. 801541e: 6afb ldr r3, [r7, #44] @ 0x2c
  50794. 8015420: 2b00 cmp r3, #0
  50795. 8015422: d002 beq.n 801542a <prvInitialiseNewTask+0x13a>
  50796. {
  50797. /* Pass the handle out in an anonymous way. The handle can be used to
  50798. change the created task's priority, delete the created task, etc.*/
  50799. *pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
  50800. 8015424: 6afb ldr r3, [r7, #44] @ 0x2c
  50801. 8015426: 6b3a ldr r2, [r7, #48] @ 0x30
  50802. 8015428: 601a str r2, [r3, #0]
  50803. }
  50804. else
  50805. {
  50806. mtCOVERAGE_TEST_MARKER();
  50807. }
  50808. }
  50809. 801542a: bf00 nop
  50810. 801542c: 3720 adds r7, #32
  50811. 801542e: 46bd mov sp, r7
  50812. 8015430: bd80 pop {r7, pc}
  50813. 8015432: bf00 nop
  50814. 8015434: 240131a8 .word 0x240131a8
  50815. 8015438: 24013210 .word 0x24013210
  50816. 801543c: 24013278 .word 0x24013278
  50817. 08015440 <prvAddNewTaskToReadyList>:
  50818. /*-----------------------------------------------------------*/
  50819. static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
  50820. {
  50821. 8015440: b580 push {r7, lr}
  50822. 8015442: b082 sub sp, #8
  50823. 8015444: af00 add r7, sp, #0
  50824. 8015446: 6078 str r0, [r7, #4]
  50825. /* Ensure interrupts don't access the task lists while the lists are being
  50826. updated. */
  50827. taskENTER_CRITICAL();
  50828. 8015448: f001 fece bl 80171e8 <vPortEnterCritical>
  50829. {
  50830. uxCurrentNumberOfTasks++;
  50831. 801544c: 4b2d ldr r3, [pc, #180] @ (8015504 <prvAddNewTaskToReadyList+0xc4>)
  50832. 801544e: 681b ldr r3, [r3, #0]
  50833. 8015450: 3301 adds r3, #1
  50834. 8015452: 4a2c ldr r2, [pc, #176] @ (8015504 <prvAddNewTaskToReadyList+0xc4>)
  50835. 8015454: 6013 str r3, [r2, #0]
  50836. if( pxCurrentTCB == NULL )
  50837. 8015456: 4b2c ldr r3, [pc, #176] @ (8015508 <prvAddNewTaskToReadyList+0xc8>)
  50838. 8015458: 681b ldr r3, [r3, #0]
  50839. 801545a: 2b00 cmp r3, #0
  50840. 801545c: d109 bne.n 8015472 <prvAddNewTaskToReadyList+0x32>
  50841. {
  50842. /* There are no other tasks, or all the other tasks are in
  50843. the suspended state - make this the current task. */
  50844. pxCurrentTCB = pxNewTCB;
  50845. 801545e: 4a2a ldr r2, [pc, #168] @ (8015508 <prvAddNewTaskToReadyList+0xc8>)
  50846. 8015460: 687b ldr r3, [r7, #4]
  50847. 8015462: 6013 str r3, [r2, #0]
  50848. if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
  50849. 8015464: 4b27 ldr r3, [pc, #156] @ (8015504 <prvAddNewTaskToReadyList+0xc4>)
  50850. 8015466: 681b ldr r3, [r3, #0]
  50851. 8015468: 2b01 cmp r3, #1
  50852. 801546a: d110 bne.n 801548e <prvAddNewTaskToReadyList+0x4e>
  50853. {
  50854. /* This is the first task to be created so do the preliminary
  50855. initialisation required. We will not recover if this call
  50856. fails, but we will report the failure. */
  50857. prvInitialiseTaskLists();
  50858. 801546c: f000 fc64 bl 8015d38 <prvInitialiseTaskLists>
  50859. 8015470: e00d b.n 801548e <prvAddNewTaskToReadyList+0x4e>
  50860. else
  50861. {
  50862. /* If the scheduler is not already running, make this task the
  50863. current task if it is the highest priority task to be created
  50864. so far. */
  50865. if( xSchedulerRunning == pdFALSE )
  50866. 8015472: 4b26 ldr r3, [pc, #152] @ (801550c <prvAddNewTaskToReadyList+0xcc>)
  50867. 8015474: 681b ldr r3, [r3, #0]
  50868. 8015476: 2b00 cmp r3, #0
  50869. 8015478: d109 bne.n 801548e <prvAddNewTaskToReadyList+0x4e>
  50870. {
  50871. if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
  50872. 801547a: 4b23 ldr r3, [pc, #140] @ (8015508 <prvAddNewTaskToReadyList+0xc8>)
  50873. 801547c: 681b ldr r3, [r3, #0]
  50874. 801547e: 6ada ldr r2, [r3, #44] @ 0x2c
  50875. 8015480: 687b ldr r3, [r7, #4]
  50876. 8015482: 6adb ldr r3, [r3, #44] @ 0x2c
  50877. 8015484: 429a cmp r2, r3
  50878. 8015486: d802 bhi.n 801548e <prvAddNewTaskToReadyList+0x4e>
  50879. {
  50880. pxCurrentTCB = pxNewTCB;
  50881. 8015488: 4a1f ldr r2, [pc, #124] @ (8015508 <prvAddNewTaskToReadyList+0xc8>)
  50882. 801548a: 687b ldr r3, [r7, #4]
  50883. 801548c: 6013 str r3, [r2, #0]
  50884. {
  50885. mtCOVERAGE_TEST_MARKER();
  50886. }
  50887. }
  50888. uxTaskNumber++;
  50889. 801548e: 4b20 ldr r3, [pc, #128] @ (8015510 <prvAddNewTaskToReadyList+0xd0>)
  50890. 8015490: 681b ldr r3, [r3, #0]
  50891. 8015492: 3301 adds r3, #1
  50892. 8015494: 4a1e ldr r2, [pc, #120] @ (8015510 <prvAddNewTaskToReadyList+0xd0>)
  50893. 8015496: 6013 str r3, [r2, #0]
  50894. #if ( configUSE_TRACE_FACILITY == 1 )
  50895. {
  50896. /* Add a counter into the TCB for tracing only. */
  50897. pxNewTCB->uxTCBNumber = uxTaskNumber;
  50898. 8015498: 4b1d ldr r3, [pc, #116] @ (8015510 <prvAddNewTaskToReadyList+0xd0>)
  50899. 801549a: 681a ldr r2, [r3, #0]
  50900. 801549c: 687b ldr r3, [r7, #4]
  50901. 801549e: 645a str r2, [r3, #68] @ 0x44
  50902. }
  50903. #endif /* configUSE_TRACE_FACILITY */
  50904. traceTASK_CREATE( pxNewTCB );
  50905. prvAddTaskToReadyList( pxNewTCB );
  50906. 80154a0: 687b ldr r3, [r7, #4]
  50907. 80154a2: 6ada ldr r2, [r3, #44] @ 0x2c
  50908. 80154a4: 4b1b ldr r3, [pc, #108] @ (8015514 <prvAddNewTaskToReadyList+0xd4>)
  50909. 80154a6: 681b ldr r3, [r3, #0]
  50910. 80154a8: 429a cmp r2, r3
  50911. 80154aa: d903 bls.n 80154b4 <prvAddNewTaskToReadyList+0x74>
  50912. 80154ac: 687b ldr r3, [r7, #4]
  50913. 80154ae: 6adb ldr r3, [r3, #44] @ 0x2c
  50914. 80154b0: 4a18 ldr r2, [pc, #96] @ (8015514 <prvAddNewTaskToReadyList+0xd4>)
  50915. 80154b2: 6013 str r3, [r2, #0]
  50916. 80154b4: 687b ldr r3, [r7, #4]
  50917. 80154b6: 6ada ldr r2, [r3, #44] @ 0x2c
  50918. 80154b8: 4613 mov r3, r2
  50919. 80154ba: 009b lsls r3, r3, #2
  50920. 80154bc: 4413 add r3, r2
  50921. 80154be: 009b lsls r3, r3, #2
  50922. 80154c0: 4a15 ldr r2, [pc, #84] @ (8015518 <prvAddNewTaskToReadyList+0xd8>)
  50923. 80154c2: 441a add r2, r3
  50924. 80154c4: 687b ldr r3, [r7, #4]
  50925. 80154c6: 3304 adds r3, #4
  50926. 80154c8: 4619 mov r1, r3
  50927. 80154ca: 4610 mov r0, r2
  50928. 80154cc: f7fe fc8d bl 8013dea <vListInsertEnd>
  50929. portSETUP_TCB( pxNewTCB );
  50930. }
  50931. taskEXIT_CRITICAL();
  50932. 80154d0: f001 febc bl 801724c <vPortExitCritical>
  50933. if( xSchedulerRunning != pdFALSE )
  50934. 80154d4: 4b0d ldr r3, [pc, #52] @ (801550c <prvAddNewTaskToReadyList+0xcc>)
  50935. 80154d6: 681b ldr r3, [r3, #0]
  50936. 80154d8: 2b00 cmp r3, #0
  50937. 80154da: d00e beq.n 80154fa <prvAddNewTaskToReadyList+0xba>
  50938. {
  50939. /* If the created task is of a higher priority than the current task
  50940. then it should run now. */
  50941. if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
  50942. 80154dc: 4b0a ldr r3, [pc, #40] @ (8015508 <prvAddNewTaskToReadyList+0xc8>)
  50943. 80154de: 681b ldr r3, [r3, #0]
  50944. 80154e0: 6ada ldr r2, [r3, #44] @ 0x2c
  50945. 80154e2: 687b ldr r3, [r7, #4]
  50946. 80154e4: 6adb ldr r3, [r3, #44] @ 0x2c
  50947. 80154e6: 429a cmp r2, r3
  50948. 80154e8: d207 bcs.n 80154fa <prvAddNewTaskToReadyList+0xba>
  50949. {
  50950. taskYIELD_IF_USING_PREEMPTION();
  50951. 80154ea: 4b0c ldr r3, [pc, #48] @ (801551c <prvAddNewTaskToReadyList+0xdc>)
  50952. 80154ec: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  50953. 80154f0: 601a str r2, [r3, #0]
  50954. 80154f2: f3bf 8f4f dsb sy
  50955. 80154f6: f3bf 8f6f isb sy
  50956. }
  50957. else
  50958. {
  50959. mtCOVERAGE_TEST_MARKER();
  50960. }
  50961. }
  50962. 80154fa: bf00 nop
  50963. 80154fc: 3708 adds r7, #8
  50964. 80154fe: 46bd mov sp, r7
  50965. 8015500: bd80 pop {r7, pc}
  50966. 8015502: bf00 nop
  50967. 8015504: 24003028 .word 0x24003028
  50968. 8015508: 24002b54 .word 0x24002b54
  50969. 801550c: 24003034 .word 0x24003034
  50970. 8015510: 24003044 .word 0x24003044
  50971. 8015514: 24003030 .word 0x24003030
  50972. 8015518: 24002b58 .word 0x24002b58
  50973. 801551c: e000ed04 .word 0xe000ed04
  50974. 08015520 <vTaskDelay>:
  50975. /*-----------------------------------------------------------*/
  50976. #if ( INCLUDE_vTaskDelay == 1 )
  50977. void vTaskDelay( const TickType_t xTicksToDelay )
  50978. {
  50979. 8015520: b580 push {r7, lr}
  50980. 8015522: b084 sub sp, #16
  50981. 8015524: af00 add r7, sp, #0
  50982. 8015526: 6078 str r0, [r7, #4]
  50983. BaseType_t xAlreadyYielded = pdFALSE;
  50984. 8015528: 2300 movs r3, #0
  50985. 801552a: 60fb str r3, [r7, #12]
  50986. /* A delay time of zero just forces a reschedule. */
  50987. if( xTicksToDelay > ( TickType_t ) 0U )
  50988. 801552c: 687b ldr r3, [r7, #4]
  50989. 801552e: 2b00 cmp r3, #0
  50990. 8015530: d018 beq.n 8015564 <vTaskDelay+0x44>
  50991. {
  50992. configASSERT( uxSchedulerSuspended == 0 );
  50993. 8015532: 4b14 ldr r3, [pc, #80] @ (8015584 <vTaskDelay+0x64>)
  50994. 8015534: 681b ldr r3, [r3, #0]
  50995. 8015536: 2b00 cmp r3, #0
  50996. 8015538: d00b beq.n 8015552 <vTaskDelay+0x32>
  50997. __asm volatile
  50998. 801553a: f04f 0350 mov.w r3, #80 @ 0x50
  50999. 801553e: f383 8811 msr BASEPRI, r3
  51000. 8015542: f3bf 8f6f isb sy
  51001. 8015546: f3bf 8f4f dsb sy
  51002. 801554a: 60bb str r3, [r7, #8]
  51003. }
  51004. 801554c: bf00 nop
  51005. 801554e: bf00 nop
  51006. 8015550: e7fd b.n 801554e <vTaskDelay+0x2e>
  51007. vTaskSuspendAll();
  51008. 8015552: f000 f88b bl 801566c <vTaskSuspendAll>
  51009. list or removed from the blocked list until the scheduler
  51010. is resumed.
  51011. This task cannot be in an event list as it is the currently
  51012. executing task. */
  51013. prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
  51014. 8015556: 2100 movs r1, #0
  51015. 8015558: 6878 ldr r0, [r7, #4]
  51016. 801555a: f001 f87d bl 8016658 <prvAddCurrentTaskToDelayedList>
  51017. }
  51018. xAlreadyYielded = xTaskResumeAll();
  51019. 801555e: f000 f893 bl 8015688 <xTaskResumeAll>
  51020. 8015562: 60f8 str r0, [r7, #12]
  51021. mtCOVERAGE_TEST_MARKER();
  51022. }
  51023. /* Force a reschedule if xTaskResumeAll has not already done so, we may
  51024. have put ourselves to sleep. */
  51025. if( xAlreadyYielded == pdFALSE )
  51026. 8015564: 68fb ldr r3, [r7, #12]
  51027. 8015566: 2b00 cmp r3, #0
  51028. 8015568: d107 bne.n 801557a <vTaskDelay+0x5a>
  51029. {
  51030. portYIELD_WITHIN_API();
  51031. 801556a: 4b07 ldr r3, [pc, #28] @ (8015588 <vTaskDelay+0x68>)
  51032. 801556c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51033. 8015570: 601a str r2, [r3, #0]
  51034. 8015572: f3bf 8f4f dsb sy
  51035. 8015576: f3bf 8f6f isb sy
  51036. }
  51037. else
  51038. {
  51039. mtCOVERAGE_TEST_MARKER();
  51040. }
  51041. }
  51042. 801557a: bf00 nop
  51043. 801557c: 3710 adds r7, #16
  51044. 801557e: 46bd mov sp, r7
  51045. 8015580: bd80 pop {r7, pc}
  51046. 8015582: bf00 nop
  51047. 8015584: 24003050 .word 0x24003050
  51048. 8015588: e000ed04 .word 0xe000ed04
  51049. 0801558c <vTaskStartScheduler>:
  51050. #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
  51051. /*-----------------------------------------------------------*/
  51052. void vTaskStartScheduler( void )
  51053. {
  51054. 801558c: b580 push {r7, lr}
  51055. 801558e: b08a sub sp, #40 @ 0x28
  51056. 8015590: af04 add r7, sp, #16
  51057. BaseType_t xReturn;
  51058. /* Add the idle task at the lowest priority. */
  51059. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  51060. {
  51061. StaticTask_t *pxIdleTaskTCBBuffer = NULL;
  51062. 8015592: 2300 movs r3, #0
  51063. 8015594: 60bb str r3, [r7, #8]
  51064. StackType_t *pxIdleTaskStackBuffer = NULL;
  51065. 8015596: 2300 movs r3, #0
  51066. 8015598: 607b str r3, [r7, #4]
  51067. uint32_t ulIdleTaskStackSize;
  51068. /* The Idle task is created using user provided RAM - obtain the
  51069. address of the RAM then create the idle task. */
  51070. vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
  51071. 801559a: 463a mov r2, r7
  51072. 801559c: 1d39 adds r1, r7, #4
  51073. 801559e: f107 0308 add.w r3, r7, #8
  51074. 80155a2: 4618 mov r0, r3
  51075. 80155a4: f7fe fbc0 bl 8013d28 <vApplicationGetIdleTaskMemory>
  51076. xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
  51077. 80155a8: 6839 ldr r1, [r7, #0]
  51078. 80155aa: 687b ldr r3, [r7, #4]
  51079. 80155ac: 68ba ldr r2, [r7, #8]
  51080. 80155ae: 9202 str r2, [sp, #8]
  51081. 80155b0: 9301 str r3, [sp, #4]
  51082. 80155b2: 2300 movs r3, #0
  51083. 80155b4: 9300 str r3, [sp, #0]
  51084. 80155b6: 2300 movs r3, #0
  51085. 80155b8: 460a mov r2, r1
  51086. 80155ba: 4924 ldr r1, [pc, #144] @ (801564c <vTaskStartScheduler+0xc0>)
  51087. 80155bc: 4824 ldr r0, [pc, #144] @ (8015650 <vTaskStartScheduler+0xc4>)
  51088. 80155be: f7ff fdf2 bl 80151a6 <xTaskCreateStatic>
  51089. 80155c2: 4603 mov r3, r0
  51090. 80155c4: 4a23 ldr r2, [pc, #140] @ (8015654 <vTaskStartScheduler+0xc8>)
  51091. 80155c6: 6013 str r3, [r2, #0]
  51092. ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
  51093. portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
  51094. pxIdleTaskStackBuffer,
  51095. pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
  51096. if( xIdleTaskHandle != NULL )
  51097. 80155c8: 4b22 ldr r3, [pc, #136] @ (8015654 <vTaskStartScheduler+0xc8>)
  51098. 80155ca: 681b ldr r3, [r3, #0]
  51099. 80155cc: 2b00 cmp r3, #0
  51100. 80155ce: d002 beq.n 80155d6 <vTaskStartScheduler+0x4a>
  51101. {
  51102. xReturn = pdPASS;
  51103. 80155d0: 2301 movs r3, #1
  51104. 80155d2: 617b str r3, [r7, #20]
  51105. 80155d4: e001 b.n 80155da <vTaskStartScheduler+0x4e>
  51106. }
  51107. else
  51108. {
  51109. xReturn = pdFAIL;
  51110. 80155d6: 2300 movs r3, #0
  51111. 80155d8: 617b str r3, [r7, #20]
  51112. }
  51113. #endif /* configSUPPORT_STATIC_ALLOCATION */
  51114. #if ( configUSE_TIMERS == 1 )
  51115. {
  51116. if( xReturn == pdPASS )
  51117. 80155da: 697b ldr r3, [r7, #20]
  51118. 80155dc: 2b01 cmp r3, #1
  51119. 80155de: d102 bne.n 80155e6 <vTaskStartScheduler+0x5a>
  51120. {
  51121. xReturn = xTimerCreateTimerTask();
  51122. 80155e0: f001 f88e bl 8016700 <xTimerCreateTimerTask>
  51123. 80155e4: 6178 str r0, [r7, #20]
  51124. mtCOVERAGE_TEST_MARKER();
  51125. }
  51126. }
  51127. #endif /* configUSE_TIMERS */
  51128. if( xReturn == pdPASS )
  51129. 80155e6: 697b ldr r3, [r7, #20]
  51130. 80155e8: 2b01 cmp r3, #1
  51131. 80155ea: d11b bne.n 8015624 <vTaskStartScheduler+0x98>
  51132. __asm volatile
  51133. 80155ec: f04f 0350 mov.w r3, #80 @ 0x50
  51134. 80155f0: f383 8811 msr BASEPRI, r3
  51135. 80155f4: f3bf 8f6f isb sy
  51136. 80155f8: f3bf 8f4f dsb sy
  51137. 80155fc: 613b str r3, [r7, #16]
  51138. }
  51139. 80155fe: bf00 nop
  51140. {
  51141. /* Switch Newlib's _impure_ptr variable to point to the _reent
  51142. structure specific to the task that will run first.
  51143. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  51144. for additional information. */
  51145. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  51146. 8015600: 4b15 ldr r3, [pc, #84] @ (8015658 <vTaskStartScheduler+0xcc>)
  51147. 8015602: 681b ldr r3, [r3, #0]
  51148. 8015604: 3354 adds r3, #84 @ 0x54
  51149. 8015606: 4a15 ldr r2, [pc, #84] @ (801565c <vTaskStartScheduler+0xd0>)
  51150. 8015608: 6013 str r3, [r2, #0]
  51151. }
  51152. #endif /* configUSE_NEWLIB_REENTRANT */
  51153. xNextTaskUnblockTime = portMAX_DELAY;
  51154. 801560a: 4b15 ldr r3, [pc, #84] @ (8015660 <vTaskStartScheduler+0xd4>)
  51155. 801560c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  51156. 8015610: 601a str r2, [r3, #0]
  51157. xSchedulerRunning = pdTRUE;
  51158. 8015612: 4b14 ldr r3, [pc, #80] @ (8015664 <vTaskStartScheduler+0xd8>)
  51159. 8015614: 2201 movs r2, #1
  51160. 8015616: 601a str r2, [r3, #0]
  51161. xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
  51162. 8015618: 4b13 ldr r3, [pc, #76] @ (8015668 <vTaskStartScheduler+0xdc>)
  51163. 801561a: 2200 movs r2, #0
  51164. 801561c: 601a str r2, [r3, #0]
  51165. traceTASK_SWITCHED_IN();
  51166. /* Setting up the timer tick is hardware specific and thus in the
  51167. portable interface. */
  51168. if( xPortStartScheduler() != pdFALSE )
  51169. 801561e: f001 fd3f bl 80170a0 <xPortStartScheduler>
  51170. }
  51171. /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
  51172. meaning xIdleTaskHandle is not used anywhere else. */
  51173. ( void ) xIdleTaskHandle;
  51174. }
  51175. 8015622: e00f b.n 8015644 <vTaskStartScheduler+0xb8>
  51176. configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
  51177. 8015624: 697b ldr r3, [r7, #20]
  51178. 8015626: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  51179. 801562a: d10b bne.n 8015644 <vTaskStartScheduler+0xb8>
  51180. __asm volatile
  51181. 801562c: f04f 0350 mov.w r3, #80 @ 0x50
  51182. 8015630: f383 8811 msr BASEPRI, r3
  51183. 8015634: f3bf 8f6f isb sy
  51184. 8015638: f3bf 8f4f dsb sy
  51185. 801563c: 60fb str r3, [r7, #12]
  51186. }
  51187. 801563e: bf00 nop
  51188. 8015640: bf00 nop
  51189. 8015642: e7fd b.n 8015640 <vTaskStartScheduler+0xb4>
  51190. }
  51191. 8015644: bf00 nop
  51192. 8015646: 3718 adds r7, #24
  51193. 8015648: 46bd mov sp, r7
  51194. 801564a: bd80 pop {r7, pc}
  51195. 801564c: 0801a20c .word 0x0801a20c
  51196. 8015650: 08015d09 .word 0x08015d09
  51197. 8015654: 2400304c .word 0x2400304c
  51198. 8015658: 24002b54 .word 0x24002b54
  51199. 801565c: 24000054 .word 0x24000054
  51200. 8015660: 24003048 .word 0x24003048
  51201. 8015664: 24003034 .word 0x24003034
  51202. 8015668: 2400302c .word 0x2400302c
  51203. 0801566c <vTaskSuspendAll>:
  51204. vPortEndScheduler();
  51205. }
  51206. /*----------------------------------------------------------*/
  51207. void vTaskSuspendAll( void )
  51208. {
  51209. 801566c: b480 push {r7}
  51210. 801566e: af00 add r7, sp, #0
  51211. do not otherwise exhibit real time behaviour. */
  51212. portSOFTWARE_BARRIER();
  51213. /* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
  51214. is used to allow calls to vTaskSuspendAll() to nest. */
  51215. ++uxSchedulerSuspended;
  51216. 8015670: 4b04 ldr r3, [pc, #16] @ (8015684 <vTaskSuspendAll+0x18>)
  51217. 8015672: 681b ldr r3, [r3, #0]
  51218. 8015674: 3301 adds r3, #1
  51219. 8015676: 4a03 ldr r2, [pc, #12] @ (8015684 <vTaskSuspendAll+0x18>)
  51220. 8015678: 6013 str r3, [r2, #0]
  51221. /* Enforces ordering for ports and optimised compilers that may otherwise place
  51222. the above increment elsewhere. */
  51223. portMEMORY_BARRIER();
  51224. }
  51225. 801567a: bf00 nop
  51226. 801567c: 46bd mov sp, r7
  51227. 801567e: f85d 7b04 ldr.w r7, [sp], #4
  51228. 8015682: 4770 bx lr
  51229. 8015684: 24003050 .word 0x24003050
  51230. 08015688 <xTaskResumeAll>:
  51231. #endif /* configUSE_TICKLESS_IDLE */
  51232. /*----------------------------------------------------------*/
  51233. BaseType_t xTaskResumeAll( void )
  51234. {
  51235. 8015688: b580 push {r7, lr}
  51236. 801568a: b084 sub sp, #16
  51237. 801568c: af00 add r7, sp, #0
  51238. TCB_t *pxTCB = NULL;
  51239. 801568e: 2300 movs r3, #0
  51240. 8015690: 60fb str r3, [r7, #12]
  51241. BaseType_t xAlreadyYielded = pdFALSE;
  51242. 8015692: 2300 movs r3, #0
  51243. 8015694: 60bb str r3, [r7, #8]
  51244. /* If uxSchedulerSuspended is zero then this function does not match a
  51245. previous call to vTaskSuspendAll(). */
  51246. configASSERT( uxSchedulerSuspended );
  51247. 8015696: 4b42 ldr r3, [pc, #264] @ (80157a0 <xTaskResumeAll+0x118>)
  51248. 8015698: 681b ldr r3, [r3, #0]
  51249. 801569a: 2b00 cmp r3, #0
  51250. 801569c: d10b bne.n 80156b6 <xTaskResumeAll+0x2e>
  51251. __asm volatile
  51252. 801569e: f04f 0350 mov.w r3, #80 @ 0x50
  51253. 80156a2: f383 8811 msr BASEPRI, r3
  51254. 80156a6: f3bf 8f6f isb sy
  51255. 80156aa: f3bf 8f4f dsb sy
  51256. 80156ae: 603b str r3, [r7, #0]
  51257. }
  51258. 80156b0: bf00 nop
  51259. 80156b2: bf00 nop
  51260. 80156b4: e7fd b.n 80156b2 <xTaskResumeAll+0x2a>
  51261. /* It is possible that an ISR caused a task to be removed from an event
  51262. list while the scheduler was suspended. If this was the case then the
  51263. removed task will have been added to the xPendingReadyList. Once the
  51264. scheduler has been resumed it is safe to move all the pending ready
  51265. tasks from this list into their appropriate ready list. */
  51266. taskENTER_CRITICAL();
  51267. 80156b6: f001 fd97 bl 80171e8 <vPortEnterCritical>
  51268. {
  51269. --uxSchedulerSuspended;
  51270. 80156ba: 4b39 ldr r3, [pc, #228] @ (80157a0 <xTaskResumeAll+0x118>)
  51271. 80156bc: 681b ldr r3, [r3, #0]
  51272. 80156be: 3b01 subs r3, #1
  51273. 80156c0: 4a37 ldr r2, [pc, #220] @ (80157a0 <xTaskResumeAll+0x118>)
  51274. 80156c2: 6013 str r3, [r2, #0]
  51275. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  51276. 80156c4: 4b36 ldr r3, [pc, #216] @ (80157a0 <xTaskResumeAll+0x118>)
  51277. 80156c6: 681b ldr r3, [r3, #0]
  51278. 80156c8: 2b00 cmp r3, #0
  51279. 80156ca: d162 bne.n 8015792 <xTaskResumeAll+0x10a>
  51280. {
  51281. if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
  51282. 80156cc: 4b35 ldr r3, [pc, #212] @ (80157a4 <xTaskResumeAll+0x11c>)
  51283. 80156ce: 681b ldr r3, [r3, #0]
  51284. 80156d0: 2b00 cmp r3, #0
  51285. 80156d2: d05e beq.n 8015792 <xTaskResumeAll+0x10a>
  51286. {
  51287. /* Move any readied tasks from the pending list into the
  51288. appropriate ready list. */
  51289. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  51290. 80156d4: e02f b.n 8015736 <xTaskResumeAll+0xae>
  51291. {
  51292. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  51293. 80156d6: 4b34 ldr r3, [pc, #208] @ (80157a8 <xTaskResumeAll+0x120>)
  51294. 80156d8: 68db ldr r3, [r3, #12]
  51295. 80156da: 68db ldr r3, [r3, #12]
  51296. 80156dc: 60fb str r3, [r7, #12]
  51297. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  51298. 80156de: 68fb ldr r3, [r7, #12]
  51299. 80156e0: 3318 adds r3, #24
  51300. 80156e2: 4618 mov r0, r3
  51301. 80156e4: f7fe fbde bl 8013ea4 <uxListRemove>
  51302. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  51303. 80156e8: 68fb ldr r3, [r7, #12]
  51304. 80156ea: 3304 adds r3, #4
  51305. 80156ec: 4618 mov r0, r3
  51306. 80156ee: f7fe fbd9 bl 8013ea4 <uxListRemove>
  51307. prvAddTaskToReadyList( pxTCB );
  51308. 80156f2: 68fb ldr r3, [r7, #12]
  51309. 80156f4: 6ada ldr r2, [r3, #44] @ 0x2c
  51310. 80156f6: 4b2d ldr r3, [pc, #180] @ (80157ac <xTaskResumeAll+0x124>)
  51311. 80156f8: 681b ldr r3, [r3, #0]
  51312. 80156fa: 429a cmp r2, r3
  51313. 80156fc: d903 bls.n 8015706 <xTaskResumeAll+0x7e>
  51314. 80156fe: 68fb ldr r3, [r7, #12]
  51315. 8015700: 6adb ldr r3, [r3, #44] @ 0x2c
  51316. 8015702: 4a2a ldr r2, [pc, #168] @ (80157ac <xTaskResumeAll+0x124>)
  51317. 8015704: 6013 str r3, [r2, #0]
  51318. 8015706: 68fb ldr r3, [r7, #12]
  51319. 8015708: 6ada ldr r2, [r3, #44] @ 0x2c
  51320. 801570a: 4613 mov r3, r2
  51321. 801570c: 009b lsls r3, r3, #2
  51322. 801570e: 4413 add r3, r2
  51323. 8015710: 009b lsls r3, r3, #2
  51324. 8015712: 4a27 ldr r2, [pc, #156] @ (80157b0 <xTaskResumeAll+0x128>)
  51325. 8015714: 441a add r2, r3
  51326. 8015716: 68fb ldr r3, [r7, #12]
  51327. 8015718: 3304 adds r3, #4
  51328. 801571a: 4619 mov r1, r3
  51329. 801571c: 4610 mov r0, r2
  51330. 801571e: f7fe fb64 bl 8013dea <vListInsertEnd>
  51331. /* If the moved task has a priority higher than the current
  51332. task then a yield must be performed. */
  51333. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  51334. 8015722: 68fb ldr r3, [r7, #12]
  51335. 8015724: 6ada ldr r2, [r3, #44] @ 0x2c
  51336. 8015726: 4b23 ldr r3, [pc, #140] @ (80157b4 <xTaskResumeAll+0x12c>)
  51337. 8015728: 681b ldr r3, [r3, #0]
  51338. 801572a: 6adb ldr r3, [r3, #44] @ 0x2c
  51339. 801572c: 429a cmp r2, r3
  51340. 801572e: d302 bcc.n 8015736 <xTaskResumeAll+0xae>
  51341. {
  51342. xYieldPending = pdTRUE;
  51343. 8015730: 4b21 ldr r3, [pc, #132] @ (80157b8 <xTaskResumeAll+0x130>)
  51344. 8015732: 2201 movs r2, #1
  51345. 8015734: 601a str r2, [r3, #0]
  51346. while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
  51347. 8015736: 4b1c ldr r3, [pc, #112] @ (80157a8 <xTaskResumeAll+0x120>)
  51348. 8015738: 681b ldr r3, [r3, #0]
  51349. 801573a: 2b00 cmp r3, #0
  51350. 801573c: d1cb bne.n 80156d6 <xTaskResumeAll+0x4e>
  51351. {
  51352. mtCOVERAGE_TEST_MARKER();
  51353. }
  51354. }
  51355. if( pxTCB != NULL )
  51356. 801573e: 68fb ldr r3, [r7, #12]
  51357. 8015740: 2b00 cmp r3, #0
  51358. 8015742: d001 beq.n 8015748 <xTaskResumeAll+0xc0>
  51359. which may have prevented the next unblock time from being
  51360. re-calculated, in which case re-calculate it now. Mainly
  51361. important for low power tickless implementations, where
  51362. this can prevent an unnecessary exit from low power
  51363. state. */
  51364. prvResetNextTaskUnblockTime();
  51365. 8015744: f000 fb9c bl 8015e80 <prvResetNextTaskUnblockTime>
  51366. /* If any ticks occurred while the scheduler was suspended then
  51367. they should be processed now. This ensures the tick count does
  51368. not slip, and that any delayed tasks are resumed at the correct
  51369. time. */
  51370. {
  51371. TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
  51372. 8015748: 4b1c ldr r3, [pc, #112] @ (80157bc <xTaskResumeAll+0x134>)
  51373. 801574a: 681b ldr r3, [r3, #0]
  51374. 801574c: 607b str r3, [r7, #4]
  51375. if( xPendedCounts > ( TickType_t ) 0U )
  51376. 801574e: 687b ldr r3, [r7, #4]
  51377. 8015750: 2b00 cmp r3, #0
  51378. 8015752: d010 beq.n 8015776 <xTaskResumeAll+0xee>
  51379. {
  51380. do
  51381. {
  51382. if( xTaskIncrementTick() != pdFALSE )
  51383. 8015754: f000 f846 bl 80157e4 <xTaskIncrementTick>
  51384. 8015758: 4603 mov r3, r0
  51385. 801575a: 2b00 cmp r3, #0
  51386. 801575c: d002 beq.n 8015764 <xTaskResumeAll+0xdc>
  51387. {
  51388. xYieldPending = pdTRUE;
  51389. 801575e: 4b16 ldr r3, [pc, #88] @ (80157b8 <xTaskResumeAll+0x130>)
  51390. 8015760: 2201 movs r2, #1
  51391. 8015762: 601a str r2, [r3, #0]
  51392. }
  51393. else
  51394. {
  51395. mtCOVERAGE_TEST_MARKER();
  51396. }
  51397. --xPendedCounts;
  51398. 8015764: 687b ldr r3, [r7, #4]
  51399. 8015766: 3b01 subs r3, #1
  51400. 8015768: 607b str r3, [r7, #4]
  51401. } while( xPendedCounts > ( TickType_t ) 0U );
  51402. 801576a: 687b ldr r3, [r7, #4]
  51403. 801576c: 2b00 cmp r3, #0
  51404. 801576e: d1f1 bne.n 8015754 <xTaskResumeAll+0xcc>
  51405. xPendedTicks = 0;
  51406. 8015770: 4b12 ldr r3, [pc, #72] @ (80157bc <xTaskResumeAll+0x134>)
  51407. 8015772: 2200 movs r2, #0
  51408. 8015774: 601a str r2, [r3, #0]
  51409. {
  51410. mtCOVERAGE_TEST_MARKER();
  51411. }
  51412. }
  51413. if( xYieldPending != pdFALSE )
  51414. 8015776: 4b10 ldr r3, [pc, #64] @ (80157b8 <xTaskResumeAll+0x130>)
  51415. 8015778: 681b ldr r3, [r3, #0]
  51416. 801577a: 2b00 cmp r3, #0
  51417. 801577c: d009 beq.n 8015792 <xTaskResumeAll+0x10a>
  51418. {
  51419. #if( configUSE_PREEMPTION != 0 )
  51420. {
  51421. xAlreadyYielded = pdTRUE;
  51422. 801577e: 2301 movs r3, #1
  51423. 8015780: 60bb str r3, [r7, #8]
  51424. }
  51425. #endif
  51426. taskYIELD_IF_USING_PREEMPTION();
  51427. 8015782: 4b0f ldr r3, [pc, #60] @ (80157c0 <xTaskResumeAll+0x138>)
  51428. 8015784: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  51429. 8015788: 601a str r2, [r3, #0]
  51430. 801578a: f3bf 8f4f dsb sy
  51431. 801578e: f3bf 8f6f isb sy
  51432. else
  51433. {
  51434. mtCOVERAGE_TEST_MARKER();
  51435. }
  51436. }
  51437. taskEXIT_CRITICAL();
  51438. 8015792: f001 fd5b bl 801724c <vPortExitCritical>
  51439. return xAlreadyYielded;
  51440. 8015796: 68bb ldr r3, [r7, #8]
  51441. }
  51442. 8015798: 4618 mov r0, r3
  51443. 801579a: 3710 adds r7, #16
  51444. 801579c: 46bd mov sp, r7
  51445. 801579e: bd80 pop {r7, pc}
  51446. 80157a0: 24003050 .word 0x24003050
  51447. 80157a4: 24003028 .word 0x24003028
  51448. 80157a8: 24002fe8 .word 0x24002fe8
  51449. 80157ac: 24003030 .word 0x24003030
  51450. 80157b0: 24002b58 .word 0x24002b58
  51451. 80157b4: 24002b54 .word 0x24002b54
  51452. 80157b8: 2400303c .word 0x2400303c
  51453. 80157bc: 24003038 .word 0x24003038
  51454. 80157c0: e000ed04 .word 0xe000ed04
  51455. 080157c4 <xTaskGetTickCount>:
  51456. /*-----------------------------------------------------------*/
  51457. TickType_t xTaskGetTickCount( void )
  51458. {
  51459. 80157c4: b480 push {r7}
  51460. 80157c6: b083 sub sp, #12
  51461. 80157c8: af00 add r7, sp, #0
  51462. TickType_t xTicks;
  51463. /* Critical section required if running on a 16 bit processor. */
  51464. portTICK_TYPE_ENTER_CRITICAL();
  51465. {
  51466. xTicks = xTickCount;
  51467. 80157ca: 4b05 ldr r3, [pc, #20] @ (80157e0 <xTaskGetTickCount+0x1c>)
  51468. 80157cc: 681b ldr r3, [r3, #0]
  51469. 80157ce: 607b str r3, [r7, #4]
  51470. }
  51471. portTICK_TYPE_EXIT_CRITICAL();
  51472. return xTicks;
  51473. 80157d0: 687b ldr r3, [r7, #4]
  51474. }
  51475. 80157d2: 4618 mov r0, r3
  51476. 80157d4: 370c adds r7, #12
  51477. 80157d6: 46bd mov sp, r7
  51478. 80157d8: f85d 7b04 ldr.w r7, [sp], #4
  51479. 80157dc: 4770 bx lr
  51480. 80157de: bf00 nop
  51481. 80157e0: 2400302c .word 0x2400302c
  51482. 080157e4 <xTaskIncrementTick>:
  51483. #endif /* INCLUDE_xTaskAbortDelay */
  51484. /*----------------------------------------------------------*/
  51485. BaseType_t xTaskIncrementTick( void )
  51486. {
  51487. 80157e4: b580 push {r7, lr}
  51488. 80157e6: b086 sub sp, #24
  51489. 80157e8: af00 add r7, sp, #0
  51490. TCB_t * pxTCB;
  51491. TickType_t xItemValue;
  51492. BaseType_t xSwitchRequired = pdFALSE;
  51493. 80157ea: 2300 movs r3, #0
  51494. 80157ec: 617b str r3, [r7, #20]
  51495. /* Called by the portable layer each time a tick interrupt occurs.
  51496. Increments the tick then checks to see if the new tick value will cause any
  51497. tasks to be unblocked. */
  51498. traceTASK_INCREMENT_TICK( xTickCount );
  51499. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  51500. 80157ee: 4b4f ldr r3, [pc, #316] @ (801592c <xTaskIncrementTick+0x148>)
  51501. 80157f0: 681b ldr r3, [r3, #0]
  51502. 80157f2: 2b00 cmp r3, #0
  51503. 80157f4: f040 8090 bne.w 8015918 <xTaskIncrementTick+0x134>
  51504. {
  51505. /* Minor optimisation. The tick count cannot change in this
  51506. block. */
  51507. const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
  51508. 80157f8: 4b4d ldr r3, [pc, #308] @ (8015930 <xTaskIncrementTick+0x14c>)
  51509. 80157fa: 681b ldr r3, [r3, #0]
  51510. 80157fc: 3301 adds r3, #1
  51511. 80157fe: 613b str r3, [r7, #16]
  51512. /* Increment the RTOS tick, switching the delayed and overflowed
  51513. delayed lists if it wraps to 0. */
  51514. xTickCount = xConstTickCount;
  51515. 8015800: 4a4b ldr r2, [pc, #300] @ (8015930 <xTaskIncrementTick+0x14c>)
  51516. 8015802: 693b ldr r3, [r7, #16]
  51517. 8015804: 6013 str r3, [r2, #0]
  51518. if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
  51519. 8015806: 693b ldr r3, [r7, #16]
  51520. 8015808: 2b00 cmp r3, #0
  51521. 801580a: d121 bne.n 8015850 <xTaskIncrementTick+0x6c>
  51522. {
  51523. taskSWITCH_DELAYED_LISTS();
  51524. 801580c: 4b49 ldr r3, [pc, #292] @ (8015934 <xTaskIncrementTick+0x150>)
  51525. 801580e: 681b ldr r3, [r3, #0]
  51526. 8015810: 681b ldr r3, [r3, #0]
  51527. 8015812: 2b00 cmp r3, #0
  51528. 8015814: d00b beq.n 801582e <xTaskIncrementTick+0x4a>
  51529. __asm volatile
  51530. 8015816: f04f 0350 mov.w r3, #80 @ 0x50
  51531. 801581a: f383 8811 msr BASEPRI, r3
  51532. 801581e: f3bf 8f6f isb sy
  51533. 8015822: f3bf 8f4f dsb sy
  51534. 8015826: 603b str r3, [r7, #0]
  51535. }
  51536. 8015828: bf00 nop
  51537. 801582a: bf00 nop
  51538. 801582c: e7fd b.n 801582a <xTaskIncrementTick+0x46>
  51539. 801582e: 4b41 ldr r3, [pc, #260] @ (8015934 <xTaskIncrementTick+0x150>)
  51540. 8015830: 681b ldr r3, [r3, #0]
  51541. 8015832: 60fb str r3, [r7, #12]
  51542. 8015834: 4b40 ldr r3, [pc, #256] @ (8015938 <xTaskIncrementTick+0x154>)
  51543. 8015836: 681b ldr r3, [r3, #0]
  51544. 8015838: 4a3e ldr r2, [pc, #248] @ (8015934 <xTaskIncrementTick+0x150>)
  51545. 801583a: 6013 str r3, [r2, #0]
  51546. 801583c: 4a3e ldr r2, [pc, #248] @ (8015938 <xTaskIncrementTick+0x154>)
  51547. 801583e: 68fb ldr r3, [r7, #12]
  51548. 8015840: 6013 str r3, [r2, #0]
  51549. 8015842: 4b3e ldr r3, [pc, #248] @ (801593c <xTaskIncrementTick+0x158>)
  51550. 8015844: 681b ldr r3, [r3, #0]
  51551. 8015846: 3301 adds r3, #1
  51552. 8015848: 4a3c ldr r2, [pc, #240] @ (801593c <xTaskIncrementTick+0x158>)
  51553. 801584a: 6013 str r3, [r2, #0]
  51554. 801584c: f000 fb18 bl 8015e80 <prvResetNextTaskUnblockTime>
  51555. /* See if this tick has made a timeout expire. Tasks are stored in
  51556. the queue in the order of their wake time - meaning once one task
  51557. has been found whose block time has not expired there is no need to
  51558. look any further down the list. */
  51559. if( xConstTickCount >= xNextTaskUnblockTime )
  51560. 8015850: 4b3b ldr r3, [pc, #236] @ (8015940 <xTaskIncrementTick+0x15c>)
  51561. 8015852: 681b ldr r3, [r3, #0]
  51562. 8015854: 693a ldr r2, [r7, #16]
  51563. 8015856: 429a cmp r2, r3
  51564. 8015858: d349 bcc.n 80158ee <xTaskIncrementTick+0x10a>
  51565. {
  51566. for( ;; )
  51567. {
  51568. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  51569. 801585a: 4b36 ldr r3, [pc, #216] @ (8015934 <xTaskIncrementTick+0x150>)
  51570. 801585c: 681b ldr r3, [r3, #0]
  51571. 801585e: 681b ldr r3, [r3, #0]
  51572. 8015860: 2b00 cmp r3, #0
  51573. 8015862: d104 bne.n 801586e <xTaskIncrementTick+0x8a>
  51574. /* The delayed list is empty. Set xNextTaskUnblockTime
  51575. to the maximum possible value so it is extremely
  51576. unlikely that the
  51577. if( xTickCount >= xNextTaskUnblockTime ) test will pass
  51578. next time through. */
  51579. xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  51580. 8015864: 4b36 ldr r3, [pc, #216] @ (8015940 <xTaskIncrementTick+0x15c>)
  51581. 8015866: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  51582. 801586a: 601a str r2, [r3, #0]
  51583. break;
  51584. 801586c: e03f b.n 80158ee <xTaskIncrementTick+0x10a>
  51585. {
  51586. /* The delayed list is not empty, get the value of the
  51587. item at the head of the delayed list. This is the time
  51588. at which the task at the head of the delayed list must
  51589. be removed from the Blocked state. */
  51590. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  51591. 801586e: 4b31 ldr r3, [pc, #196] @ (8015934 <xTaskIncrementTick+0x150>)
  51592. 8015870: 681b ldr r3, [r3, #0]
  51593. 8015872: 68db ldr r3, [r3, #12]
  51594. 8015874: 68db ldr r3, [r3, #12]
  51595. 8015876: 60bb str r3, [r7, #8]
  51596. xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
  51597. 8015878: 68bb ldr r3, [r7, #8]
  51598. 801587a: 685b ldr r3, [r3, #4]
  51599. 801587c: 607b str r3, [r7, #4]
  51600. if( xConstTickCount < xItemValue )
  51601. 801587e: 693a ldr r2, [r7, #16]
  51602. 8015880: 687b ldr r3, [r7, #4]
  51603. 8015882: 429a cmp r2, r3
  51604. 8015884: d203 bcs.n 801588e <xTaskIncrementTick+0xaa>
  51605. /* It is not time to unblock this item yet, but the
  51606. item value is the time at which the task at the head
  51607. of the blocked list must be removed from the Blocked
  51608. state - so record the item value in
  51609. xNextTaskUnblockTime. */
  51610. xNextTaskUnblockTime = xItemValue;
  51611. 8015886: 4a2e ldr r2, [pc, #184] @ (8015940 <xTaskIncrementTick+0x15c>)
  51612. 8015888: 687b ldr r3, [r7, #4]
  51613. 801588a: 6013 str r3, [r2, #0]
  51614. break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
  51615. 801588c: e02f b.n 80158ee <xTaskIncrementTick+0x10a>
  51616. {
  51617. mtCOVERAGE_TEST_MARKER();
  51618. }
  51619. /* It is time to remove the item from the Blocked state. */
  51620. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  51621. 801588e: 68bb ldr r3, [r7, #8]
  51622. 8015890: 3304 adds r3, #4
  51623. 8015892: 4618 mov r0, r3
  51624. 8015894: f7fe fb06 bl 8013ea4 <uxListRemove>
  51625. /* Is the task waiting on an event also? If so remove
  51626. it from the event list. */
  51627. if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
  51628. 8015898: 68bb ldr r3, [r7, #8]
  51629. 801589a: 6a9b ldr r3, [r3, #40] @ 0x28
  51630. 801589c: 2b00 cmp r3, #0
  51631. 801589e: d004 beq.n 80158aa <xTaskIncrementTick+0xc6>
  51632. {
  51633. ( void ) uxListRemove( &( pxTCB->xEventListItem ) );
  51634. 80158a0: 68bb ldr r3, [r7, #8]
  51635. 80158a2: 3318 adds r3, #24
  51636. 80158a4: 4618 mov r0, r3
  51637. 80158a6: f7fe fafd bl 8013ea4 <uxListRemove>
  51638. mtCOVERAGE_TEST_MARKER();
  51639. }
  51640. /* Place the unblocked task into the appropriate ready
  51641. list. */
  51642. prvAddTaskToReadyList( pxTCB );
  51643. 80158aa: 68bb ldr r3, [r7, #8]
  51644. 80158ac: 6ada ldr r2, [r3, #44] @ 0x2c
  51645. 80158ae: 4b25 ldr r3, [pc, #148] @ (8015944 <xTaskIncrementTick+0x160>)
  51646. 80158b0: 681b ldr r3, [r3, #0]
  51647. 80158b2: 429a cmp r2, r3
  51648. 80158b4: d903 bls.n 80158be <xTaskIncrementTick+0xda>
  51649. 80158b6: 68bb ldr r3, [r7, #8]
  51650. 80158b8: 6adb ldr r3, [r3, #44] @ 0x2c
  51651. 80158ba: 4a22 ldr r2, [pc, #136] @ (8015944 <xTaskIncrementTick+0x160>)
  51652. 80158bc: 6013 str r3, [r2, #0]
  51653. 80158be: 68bb ldr r3, [r7, #8]
  51654. 80158c0: 6ada ldr r2, [r3, #44] @ 0x2c
  51655. 80158c2: 4613 mov r3, r2
  51656. 80158c4: 009b lsls r3, r3, #2
  51657. 80158c6: 4413 add r3, r2
  51658. 80158c8: 009b lsls r3, r3, #2
  51659. 80158ca: 4a1f ldr r2, [pc, #124] @ (8015948 <xTaskIncrementTick+0x164>)
  51660. 80158cc: 441a add r2, r3
  51661. 80158ce: 68bb ldr r3, [r7, #8]
  51662. 80158d0: 3304 adds r3, #4
  51663. 80158d2: 4619 mov r1, r3
  51664. 80158d4: 4610 mov r0, r2
  51665. 80158d6: f7fe fa88 bl 8013dea <vListInsertEnd>
  51666. {
  51667. /* Preemption is on, but a context switch should
  51668. only be performed if the unblocked task has a
  51669. priority that is equal to or higher than the
  51670. currently executing task. */
  51671. if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
  51672. 80158da: 68bb ldr r3, [r7, #8]
  51673. 80158dc: 6ada ldr r2, [r3, #44] @ 0x2c
  51674. 80158de: 4b1b ldr r3, [pc, #108] @ (801594c <xTaskIncrementTick+0x168>)
  51675. 80158e0: 681b ldr r3, [r3, #0]
  51676. 80158e2: 6adb ldr r3, [r3, #44] @ 0x2c
  51677. 80158e4: 429a cmp r2, r3
  51678. 80158e6: d3b8 bcc.n 801585a <xTaskIncrementTick+0x76>
  51679. {
  51680. xSwitchRequired = pdTRUE;
  51681. 80158e8: 2301 movs r3, #1
  51682. 80158ea: 617b str r3, [r7, #20]
  51683. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  51684. 80158ec: e7b5 b.n 801585a <xTaskIncrementTick+0x76>
  51685. /* Tasks of equal priority to the currently running task will share
  51686. processing time (time slice) if preemption is on, and the application
  51687. writer has not explicitly turned time slicing off. */
  51688. #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
  51689. {
  51690. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
  51691. 80158ee: 4b17 ldr r3, [pc, #92] @ (801594c <xTaskIncrementTick+0x168>)
  51692. 80158f0: 681b ldr r3, [r3, #0]
  51693. 80158f2: 6ada ldr r2, [r3, #44] @ 0x2c
  51694. 80158f4: 4914 ldr r1, [pc, #80] @ (8015948 <xTaskIncrementTick+0x164>)
  51695. 80158f6: 4613 mov r3, r2
  51696. 80158f8: 009b lsls r3, r3, #2
  51697. 80158fa: 4413 add r3, r2
  51698. 80158fc: 009b lsls r3, r3, #2
  51699. 80158fe: 440b add r3, r1
  51700. 8015900: 681b ldr r3, [r3, #0]
  51701. 8015902: 2b01 cmp r3, #1
  51702. 8015904: d901 bls.n 801590a <xTaskIncrementTick+0x126>
  51703. {
  51704. xSwitchRequired = pdTRUE;
  51705. 8015906: 2301 movs r3, #1
  51706. 8015908: 617b str r3, [r7, #20]
  51707. }
  51708. #endif /* configUSE_TICK_HOOK */
  51709. #if ( configUSE_PREEMPTION == 1 )
  51710. {
  51711. if( xYieldPending != pdFALSE )
  51712. 801590a: 4b11 ldr r3, [pc, #68] @ (8015950 <xTaskIncrementTick+0x16c>)
  51713. 801590c: 681b ldr r3, [r3, #0]
  51714. 801590e: 2b00 cmp r3, #0
  51715. 8015910: d007 beq.n 8015922 <xTaskIncrementTick+0x13e>
  51716. {
  51717. xSwitchRequired = pdTRUE;
  51718. 8015912: 2301 movs r3, #1
  51719. 8015914: 617b str r3, [r7, #20]
  51720. 8015916: e004 b.n 8015922 <xTaskIncrementTick+0x13e>
  51721. }
  51722. #endif /* configUSE_PREEMPTION */
  51723. }
  51724. else
  51725. {
  51726. ++xPendedTicks;
  51727. 8015918: 4b0e ldr r3, [pc, #56] @ (8015954 <xTaskIncrementTick+0x170>)
  51728. 801591a: 681b ldr r3, [r3, #0]
  51729. 801591c: 3301 adds r3, #1
  51730. 801591e: 4a0d ldr r2, [pc, #52] @ (8015954 <xTaskIncrementTick+0x170>)
  51731. 8015920: 6013 str r3, [r2, #0]
  51732. vApplicationTickHook();
  51733. }
  51734. #endif
  51735. }
  51736. return xSwitchRequired;
  51737. 8015922: 697b ldr r3, [r7, #20]
  51738. }
  51739. 8015924: 4618 mov r0, r3
  51740. 8015926: 3718 adds r7, #24
  51741. 8015928: 46bd mov sp, r7
  51742. 801592a: bd80 pop {r7, pc}
  51743. 801592c: 24003050 .word 0x24003050
  51744. 8015930: 2400302c .word 0x2400302c
  51745. 8015934: 24002fe0 .word 0x24002fe0
  51746. 8015938: 24002fe4 .word 0x24002fe4
  51747. 801593c: 24003040 .word 0x24003040
  51748. 8015940: 24003048 .word 0x24003048
  51749. 8015944: 24003030 .word 0x24003030
  51750. 8015948: 24002b58 .word 0x24002b58
  51751. 801594c: 24002b54 .word 0x24002b54
  51752. 8015950: 2400303c .word 0x2400303c
  51753. 8015954: 24003038 .word 0x24003038
  51754. 08015958 <vTaskSwitchContext>:
  51755. #endif /* configUSE_APPLICATION_TASK_TAG */
  51756. /*-----------------------------------------------------------*/
  51757. void vTaskSwitchContext( void )
  51758. {
  51759. 8015958: b580 push {r7, lr}
  51760. 801595a: b084 sub sp, #16
  51761. 801595c: af00 add r7, sp, #0
  51762. if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
  51763. 801595e: 4b32 ldr r3, [pc, #200] @ (8015a28 <vTaskSwitchContext+0xd0>)
  51764. 8015960: 681b ldr r3, [r3, #0]
  51765. 8015962: 2b00 cmp r3, #0
  51766. 8015964: d003 beq.n 801596e <vTaskSwitchContext+0x16>
  51767. {
  51768. /* The scheduler is currently suspended - do not allow a context
  51769. switch. */
  51770. xYieldPending = pdTRUE;
  51771. 8015966: 4b31 ldr r3, [pc, #196] @ (8015a2c <vTaskSwitchContext+0xd4>)
  51772. 8015968: 2201 movs r2, #1
  51773. 801596a: 601a str r2, [r3, #0]
  51774. for additional information. */
  51775. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  51776. }
  51777. #endif /* configUSE_NEWLIB_REENTRANT */
  51778. }
  51779. }
  51780. 801596c: e058 b.n 8015a20 <vTaskSwitchContext+0xc8>
  51781. xYieldPending = pdFALSE;
  51782. 801596e: 4b2f ldr r3, [pc, #188] @ (8015a2c <vTaskSwitchContext+0xd4>)
  51783. 8015970: 2200 movs r2, #0
  51784. 8015972: 601a str r2, [r3, #0]
  51785. taskCHECK_FOR_STACK_OVERFLOW();
  51786. 8015974: 4b2e ldr r3, [pc, #184] @ (8015a30 <vTaskSwitchContext+0xd8>)
  51787. 8015976: 681b ldr r3, [r3, #0]
  51788. 8015978: 681a ldr r2, [r3, #0]
  51789. 801597a: 4b2d ldr r3, [pc, #180] @ (8015a30 <vTaskSwitchContext+0xd8>)
  51790. 801597c: 681b ldr r3, [r3, #0]
  51791. 801597e: 6b1b ldr r3, [r3, #48] @ 0x30
  51792. 8015980: 429a cmp r2, r3
  51793. 8015982: d808 bhi.n 8015996 <vTaskSwitchContext+0x3e>
  51794. 8015984: 4b2a ldr r3, [pc, #168] @ (8015a30 <vTaskSwitchContext+0xd8>)
  51795. 8015986: 681a ldr r2, [r3, #0]
  51796. 8015988: 4b29 ldr r3, [pc, #164] @ (8015a30 <vTaskSwitchContext+0xd8>)
  51797. 801598a: 681b ldr r3, [r3, #0]
  51798. 801598c: 3334 adds r3, #52 @ 0x34
  51799. 801598e: 4619 mov r1, r3
  51800. 8015990: 4610 mov r0, r2
  51801. 8015992: f7ea fe75 bl 8000680 <vApplicationStackOverflowHook>
  51802. taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  51803. 8015996: 4b27 ldr r3, [pc, #156] @ (8015a34 <vTaskSwitchContext+0xdc>)
  51804. 8015998: 681b ldr r3, [r3, #0]
  51805. 801599a: 60fb str r3, [r7, #12]
  51806. 801599c: e011 b.n 80159c2 <vTaskSwitchContext+0x6a>
  51807. 801599e: 68fb ldr r3, [r7, #12]
  51808. 80159a0: 2b00 cmp r3, #0
  51809. 80159a2: d10b bne.n 80159bc <vTaskSwitchContext+0x64>
  51810. __asm volatile
  51811. 80159a4: f04f 0350 mov.w r3, #80 @ 0x50
  51812. 80159a8: f383 8811 msr BASEPRI, r3
  51813. 80159ac: f3bf 8f6f isb sy
  51814. 80159b0: f3bf 8f4f dsb sy
  51815. 80159b4: 607b str r3, [r7, #4]
  51816. }
  51817. 80159b6: bf00 nop
  51818. 80159b8: bf00 nop
  51819. 80159ba: e7fd b.n 80159b8 <vTaskSwitchContext+0x60>
  51820. 80159bc: 68fb ldr r3, [r7, #12]
  51821. 80159be: 3b01 subs r3, #1
  51822. 80159c0: 60fb str r3, [r7, #12]
  51823. 80159c2: 491d ldr r1, [pc, #116] @ (8015a38 <vTaskSwitchContext+0xe0>)
  51824. 80159c4: 68fa ldr r2, [r7, #12]
  51825. 80159c6: 4613 mov r3, r2
  51826. 80159c8: 009b lsls r3, r3, #2
  51827. 80159ca: 4413 add r3, r2
  51828. 80159cc: 009b lsls r3, r3, #2
  51829. 80159ce: 440b add r3, r1
  51830. 80159d0: 681b ldr r3, [r3, #0]
  51831. 80159d2: 2b00 cmp r3, #0
  51832. 80159d4: d0e3 beq.n 801599e <vTaskSwitchContext+0x46>
  51833. 80159d6: 68fa ldr r2, [r7, #12]
  51834. 80159d8: 4613 mov r3, r2
  51835. 80159da: 009b lsls r3, r3, #2
  51836. 80159dc: 4413 add r3, r2
  51837. 80159de: 009b lsls r3, r3, #2
  51838. 80159e0: 4a15 ldr r2, [pc, #84] @ (8015a38 <vTaskSwitchContext+0xe0>)
  51839. 80159e2: 4413 add r3, r2
  51840. 80159e4: 60bb str r3, [r7, #8]
  51841. 80159e6: 68bb ldr r3, [r7, #8]
  51842. 80159e8: 685b ldr r3, [r3, #4]
  51843. 80159ea: 685a ldr r2, [r3, #4]
  51844. 80159ec: 68bb ldr r3, [r7, #8]
  51845. 80159ee: 605a str r2, [r3, #4]
  51846. 80159f0: 68bb ldr r3, [r7, #8]
  51847. 80159f2: 685a ldr r2, [r3, #4]
  51848. 80159f4: 68bb ldr r3, [r7, #8]
  51849. 80159f6: 3308 adds r3, #8
  51850. 80159f8: 429a cmp r2, r3
  51851. 80159fa: d104 bne.n 8015a06 <vTaskSwitchContext+0xae>
  51852. 80159fc: 68bb ldr r3, [r7, #8]
  51853. 80159fe: 685b ldr r3, [r3, #4]
  51854. 8015a00: 685a ldr r2, [r3, #4]
  51855. 8015a02: 68bb ldr r3, [r7, #8]
  51856. 8015a04: 605a str r2, [r3, #4]
  51857. 8015a06: 68bb ldr r3, [r7, #8]
  51858. 8015a08: 685b ldr r3, [r3, #4]
  51859. 8015a0a: 68db ldr r3, [r3, #12]
  51860. 8015a0c: 4a08 ldr r2, [pc, #32] @ (8015a30 <vTaskSwitchContext+0xd8>)
  51861. 8015a0e: 6013 str r3, [r2, #0]
  51862. 8015a10: 4a08 ldr r2, [pc, #32] @ (8015a34 <vTaskSwitchContext+0xdc>)
  51863. 8015a12: 68fb ldr r3, [r7, #12]
  51864. 8015a14: 6013 str r3, [r2, #0]
  51865. _impure_ptr = &( pxCurrentTCB->xNewLib_reent );
  51866. 8015a16: 4b06 ldr r3, [pc, #24] @ (8015a30 <vTaskSwitchContext+0xd8>)
  51867. 8015a18: 681b ldr r3, [r3, #0]
  51868. 8015a1a: 3354 adds r3, #84 @ 0x54
  51869. 8015a1c: 4a07 ldr r2, [pc, #28] @ (8015a3c <vTaskSwitchContext+0xe4>)
  51870. 8015a1e: 6013 str r3, [r2, #0]
  51871. }
  51872. 8015a20: bf00 nop
  51873. 8015a22: 3710 adds r7, #16
  51874. 8015a24: 46bd mov sp, r7
  51875. 8015a26: bd80 pop {r7, pc}
  51876. 8015a28: 24003050 .word 0x24003050
  51877. 8015a2c: 2400303c .word 0x2400303c
  51878. 8015a30: 24002b54 .word 0x24002b54
  51879. 8015a34: 24003030 .word 0x24003030
  51880. 8015a38: 24002b58 .word 0x24002b58
  51881. 8015a3c: 24000054 .word 0x24000054
  51882. 08015a40 <vTaskPlaceOnEventList>:
  51883. /*-----------------------------------------------------------*/
  51884. void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
  51885. {
  51886. 8015a40: b580 push {r7, lr}
  51887. 8015a42: b084 sub sp, #16
  51888. 8015a44: af00 add r7, sp, #0
  51889. 8015a46: 6078 str r0, [r7, #4]
  51890. 8015a48: 6039 str r1, [r7, #0]
  51891. configASSERT( pxEventList );
  51892. 8015a4a: 687b ldr r3, [r7, #4]
  51893. 8015a4c: 2b00 cmp r3, #0
  51894. 8015a4e: d10b bne.n 8015a68 <vTaskPlaceOnEventList+0x28>
  51895. __asm volatile
  51896. 8015a50: f04f 0350 mov.w r3, #80 @ 0x50
  51897. 8015a54: f383 8811 msr BASEPRI, r3
  51898. 8015a58: f3bf 8f6f isb sy
  51899. 8015a5c: f3bf 8f4f dsb sy
  51900. 8015a60: 60fb str r3, [r7, #12]
  51901. }
  51902. 8015a62: bf00 nop
  51903. 8015a64: bf00 nop
  51904. 8015a66: e7fd b.n 8015a64 <vTaskPlaceOnEventList+0x24>
  51905. /* Place the event list item of the TCB in the appropriate event list.
  51906. This is placed in the list in priority order so the highest priority task
  51907. is the first to be woken by the event. The queue that contains the event
  51908. list is locked, preventing simultaneous access from interrupts. */
  51909. vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  51910. 8015a68: 4b07 ldr r3, [pc, #28] @ (8015a88 <vTaskPlaceOnEventList+0x48>)
  51911. 8015a6a: 681b ldr r3, [r3, #0]
  51912. 8015a6c: 3318 adds r3, #24
  51913. 8015a6e: 4619 mov r1, r3
  51914. 8015a70: 6878 ldr r0, [r7, #4]
  51915. 8015a72: f7fe f9de bl 8013e32 <vListInsert>
  51916. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  51917. 8015a76: 2101 movs r1, #1
  51918. 8015a78: 6838 ldr r0, [r7, #0]
  51919. 8015a7a: f000 fded bl 8016658 <prvAddCurrentTaskToDelayedList>
  51920. }
  51921. 8015a7e: bf00 nop
  51922. 8015a80: 3710 adds r7, #16
  51923. 8015a82: 46bd mov sp, r7
  51924. 8015a84: bd80 pop {r7, pc}
  51925. 8015a86: bf00 nop
  51926. 8015a88: 24002b54 .word 0x24002b54
  51927. 08015a8c <vTaskPlaceOnEventListRestricted>:
  51928. /*-----------------------------------------------------------*/
  51929. #if( configUSE_TIMERS == 1 )
  51930. void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
  51931. {
  51932. 8015a8c: b580 push {r7, lr}
  51933. 8015a8e: b086 sub sp, #24
  51934. 8015a90: af00 add r7, sp, #0
  51935. 8015a92: 60f8 str r0, [r7, #12]
  51936. 8015a94: 60b9 str r1, [r7, #8]
  51937. 8015a96: 607a str r2, [r7, #4]
  51938. configASSERT( pxEventList );
  51939. 8015a98: 68fb ldr r3, [r7, #12]
  51940. 8015a9a: 2b00 cmp r3, #0
  51941. 8015a9c: d10b bne.n 8015ab6 <vTaskPlaceOnEventListRestricted+0x2a>
  51942. __asm volatile
  51943. 8015a9e: f04f 0350 mov.w r3, #80 @ 0x50
  51944. 8015aa2: f383 8811 msr BASEPRI, r3
  51945. 8015aa6: f3bf 8f6f isb sy
  51946. 8015aaa: f3bf 8f4f dsb sy
  51947. 8015aae: 617b str r3, [r7, #20]
  51948. }
  51949. 8015ab0: bf00 nop
  51950. 8015ab2: bf00 nop
  51951. 8015ab4: e7fd b.n 8015ab2 <vTaskPlaceOnEventListRestricted+0x26>
  51952. /* Place the event list item of the TCB in the appropriate event list.
  51953. In this case it is assume that this is the only task that is going to
  51954. be waiting on this event list, so the faster vListInsertEnd() function
  51955. can be used in place of vListInsert. */
  51956. vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
  51957. 8015ab6: 4b0a ldr r3, [pc, #40] @ (8015ae0 <vTaskPlaceOnEventListRestricted+0x54>)
  51958. 8015ab8: 681b ldr r3, [r3, #0]
  51959. 8015aba: 3318 adds r3, #24
  51960. 8015abc: 4619 mov r1, r3
  51961. 8015abe: 68f8 ldr r0, [r7, #12]
  51962. 8015ac0: f7fe f993 bl 8013dea <vListInsertEnd>
  51963. /* If the task should block indefinitely then set the block time to a
  51964. value that will be recognised as an indefinite delay inside the
  51965. prvAddCurrentTaskToDelayedList() function. */
  51966. if( xWaitIndefinitely != pdFALSE )
  51967. 8015ac4: 687b ldr r3, [r7, #4]
  51968. 8015ac6: 2b00 cmp r3, #0
  51969. 8015ac8: d002 beq.n 8015ad0 <vTaskPlaceOnEventListRestricted+0x44>
  51970. {
  51971. xTicksToWait = portMAX_DELAY;
  51972. 8015aca: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
  51973. 8015ace: 60bb str r3, [r7, #8]
  51974. }
  51975. traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
  51976. prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
  51977. 8015ad0: 6879 ldr r1, [r7, #4]
  51978. 8015ad2: 68b8 ldr r0, [r7, #8]
  51979. 8015ad4: f000 fdc0 bl 8016658 <prvAddCurrentTaskToDelayedList>
  51980. }
  51981. 8015ad8: bf00 nop
  51982. 8015ada: 3718 adds r7, #24
  51983. 8015adc: 46bd mov sp, r7
  51984. 8015ade: bd80 pop {r7, pc}
  51985. 8015ae0: 24002b54 .word 0x24002b54
  51986. 08015ae4 <xTaskRemoveFromEventList>:
  51987. #endif /* configUSE_TIMERS */
  51988. /*-----------------------------------------------------------*/
  51989. BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
  51990. {
  51991. 8015ae4: b580 push {r7, lr}
  51992. 8015ae6: b086 sub sp, #24
  51993. 8015ae8: af00 add r7, sp, #0
  51994. 8015aea: 6078 str r0, [r7, #4]
  51995. get called - the lock count on the queue will get modified instead. This
  51996. means exclusive access to the event list is guaranteed here.
  51997. This function assumes that a check has already been made to ensure that
  51998. pxEventList is not empty. */
  51999. pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52000. 8015aec: 687b ldr r3, [r7, #4]
  52001. 8015aee: 68db ldr r3, [r3, #12]
  52002. 8015af0: 68db ldr r3, [r3, #12]
  52003. 8015af2: 613b str r3, [r7, #16]
  52004. configASSERT( pxUnblockedTCB );
  52005. 8015af4: 693b ldr r3, [r7, #16]
  52006. 8015af6: 2b00 cmp r3, #0
  52007. 8015af8: d10b bne.n 8015b12 <xTaskRemoveFromEventList+0x2e>
  52008. __asm volatile
  52009. 8015afa: f04f 0350 mov.w r3, #80 @ 0x50
  52010. 8015afe: f383 8811 msr BASEPRI, r3
  52011. 8015b02: f3bf 8f6f isb sy
  52012. 8015b06: f3bf 8f4f dsb sy
  52013. 8015b0a: 60fb str r3, [r7, #12]
  52014. }
  52015. 8015b0c: bf00 nop
  52016. 8015b0e: bf00 nop
  52017. 8015b10: e7fd b.n 8015b0e <xTaskRemoveFromEventList+0x2a>
  52018. ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
  52019. 8015b12: 693b ldr r3, [r7, #16]
  52020. 8015b14: 3318 adds r3, #24
  52021. 8015b16: 4618 mov r0, r3
  52022. 8015b18: f7fe f9c4 bl 8013ea4 <uxListRemove>
  52023. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52024. 8015b1c: 4b1d ldr r3, [pc, #116] @ (8015b94 <xTaskRemoveFromEventList+0xb0>)
  52025. 8015b1e: 681b ldr r3, [r3, #0]
  52026. 8015b20: 2b00 cmp r3, #0
  52027. 8015b22: d11d bne.n 8015b60 <xTaskRemoveFromEventList+0x7c>
  52028. {
  52029. ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
  52030. 8015b24: 693b ldr r3, [r7, #16]
  52031. 8015b26: 3304 adds r3, #4
  52032. 8015b28: 4618 mov r0, r3
  52033. 8015b2a: f7fe f9bb bl 8013ea4 <uxListRemove>
  52034. prvAddTaskToReadyList( pxUnblockedTCB );
  52035. 8015b2e: 693b ldr r3, [r7, #16]
  52036. 8015b30: 6ada ldr r2, [r3, #44] @ 0x2c
  52037. 8015b32: 4b19 ldr r3, [pc, #100] @ (8015b98 <xTaskRemoveFromEventList+0xb4>)
  52038. 8015b34: 681b ldr r3, [r3, #0]
  52039. 8015b36: 429a cmp r2, r3
  52040. 8015b38: d903 bls.n 8015b42 <xTaskRemoveFromEventList+0x5e>
  52041. 8015b3a: 693b ldr r3, [r7, #16]
  52042. 8015b3c: 6adb ldr r3, [r3, #44] @ 0x2c
  52043. 8015b3e: 4a16 ldr r2, [pc, #88] @ (8015b98 <xTaskRemoveFromEventList+0xb4>)
  52044. 8015b40: 6013 str r3, [r2, #0]
  52045. 8015b42: 693b ldr r3, [r7, #16]
  52046. 8015b44: 6ada ldr r2, [r3, #44] @ 0x2c
  52047. 8015b46: 4613 mov r3, r2
  52048. 8015b48: 009b lsls r3, r3, #2
  52049. 8015b4a: 4413 add r3, r2
  52050. 8015b4c: 009b lsls r3, r3, #2
  52051. 8015b4e: 4a13 ldr r2, [pc, #76] @ (8015b9c <xTaskRemoveFromEventList+0xb8>)
  52052. 8015b50: 441a add r2, r3
  52053. 8015b52: 693b ldr r3, [r7, #16]
  52054. 8015b54: 3304 adds r3, #4
  52055. 8015b56: 4619 mov r1, r3
  52056. 8015b58: 4610 mov r0, r2
  52057. 8015b5a: f7fe f946 bl 8013dea <vListInsertEnd>
  52058. 8015b5e: e005 b.n 8015b6c <xTaskRemoveFromEventList+0x88>
  52059. }
  52060. else
  52061. {
  52062. /* The delayed and ready lists cannot be accessed, so hold this task
  52063. pending until the scheduler is resumed. */
  52064. vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
  52065. 8015b60: 693b ldr r3, [r7, #16]
  52066. 8015b62: 3318 adds r3, #24
  52067. 8015b64: 4619 mov r1, r3
  52068. 8015b66: 480e ldr r0, [pc, #56] @ (8015ba0 <xTaskRemoveFromEventList+0xbc>)
  52069. 8015b68: f7fe f93f bl 8013dea <vListInsertEnd>
  52070. }
  52071. if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
  52072. 8015b6c: 693b ldr r3, [r7, #16]
  52073. 8015b6e: 6ada ldr r2, [r3, #44] @ 0x2c
  52074. 8015b70: 4b0c ldr r3, [pc, #48] @ (8015ba4 <xTaskRemoveFromEventList+0xc0>)
  52075. 8015b72: 681b ldr r3, [r3, #0]
  52076. 8015b74: 6adb ldr r3, [r3, #44] @ 0x2c
  52077. 8015b76: 429a cmp r2, r3
  52078. 8015b78: d905 bls.n 8015b86 <xTaskRemoveFromEventList+0xa2>
  52079. {
  52080. /* Return true if the task removed from the event list has a higher
  52081. priority than the calling task. This allows the calling task to know if
  52082. it should force a context switch now. */
  52083. xReturn = pdTRUE;
  52084. 8015b7a: 2301 movs r3, #1
  52085. 8015b7c: 617b str r3, [r7, #20]
  52086. /* Mark that a yield is pending in case the user is not using the
  52087. "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
  52088. xYieldPending = pdTRUE;
  52089. 8015b7e: 4b0a ldr r3, [pc, #40] @ (8015ba8 <xTaskRemoveFromEventList+0xc4>)
  52090. 8015b80: 2201 movs r2, #1
  52091. 8015b82: 601a str r2, [r3, #0]
  52092. 8015b84: e001 b.n 8015b8a <xTaskRemoveFromEventList+0xa6>
  52093. }
  52094. else
  52095. {
  52096. xReturn = pdFALSE;
  52097. 8015b86: 2300 movs r3, #0
  52098. 8015b88: 617b str r3, [r7, #20]
  52099. }
  52100. return xReturn;
  52101. 8015b8a: 697b ldr r3, [r7, #20]
  52102. }
  52103. 8015b8c: 4618 mov r0, r3
  52104. 8015b8e: 3718 adds r7, #24
  52105. 8015b90: 46bd mov sp, r7
  52106. 8015b92: bd80 pop {r7, pc}
  52107. 8015b94: 24003050 .word 0x24003050
  52108. 8015b98: 24003030 .word 0x24003030
  52109. 8015b9c: 24002b58 .word 0x24002b58
  52110. 8015ba0: 24002fe8 .word 0x24002fe8
  52111. 8015ba4: 24002b54 .word 0x24002b54
  52112. 8015ba8: 2400303c .word 0x2400303c
  52113. 08015bac <vTaskSetTimeOutState>:
  52114. }
  52115. }
  52116. /*-----------------------------------------------------------*/
  52117. void vTaskSetTimeOutState( TimeOut_t * const pxTimeOut )
  52118. {
  52119. 8015bac: b580 push {r7, lr}
  52120. 8015bae: b084 sub sp, #16
  52121. 8015bb0: af00 add r7, sp, #0
  52122. 8015bb2: 6078 str r0, [r7, #4]
  52123. configASSERT( pxTimeOut );
  52124. 8015bb4: 687b ldr r3, [r7, #4]
  52125. 8015bb6: 2b00 cmp r3, #0
  52126. 8015bb8: d10b bne.n 8015bd2 <vTaskSetTimeOutState+0x26>
  52127. __asm volatile
  52128. 8015bba: f04f 0350 mov.w r3, #80 @ 0x50
  52129. 8015bbe: f383 8811 msr BASEPRI, r3
  52130. 8015bc2: f3bf 8f6f isb sy
  52131. 8015bc6: f3bf 8f4f dsb sy
  52132. 8015bca: 60fb str r3, [r7, #12]
  52133. }
  52134. 8015bcc: bf00 nop
  52135. 8015bce: bf00 nop
  52136. 8015bd0: e7fd b.n 8015bce <vTaskSetTimeOutState+0x22>
  52137. taskENTER_CRITICAL();
  52138. 8015bd2: f001 fb09 bl 80171e8 <vPortEnterCritical>
  52139. {
  52140. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52141. 8015bd6: 4b07 ldr r3, [pc, #28] @ (8015bf4 <vTaskSetTimeOutState+0x48>)
  52142. 8015bd8: 681a ldr r2, [r3, #0]
  52143. 8015bda: 687b ldr r3, [r7, #4]
  52144. 8015bdc: 601a str r2, [r3, #0]
  52145. pxTimeOut->xTimeOnEntering = xTickCount;
  52146. 8015bde: 4b06 ldr r3, [pc, #24] @ (8015bf8 <vTaskSetTimeOutState+0x4c>)
  52147. 8015be0: 681a ldr r2, [r3, #0]
  52148. 8015be2: 687b ldr r3, [r7, #4]
  52149. 8015be4: 605a str r2, [r3, #4]
  52150. }
  52151. taskEXIT_CRITICAL();
  52152. 8015be6: f001 fb31 bl 801724c <vPortExitCritical>
  52153. }
  52154. 8015bea: bf00 nop
  52155. 8015bec: 3710 adds r7, #16
  52156. 8015bee: 46bd mov sp, r7
  52157. 8015bf0: bd80 pop {r7, pc}
  52158. 8015bf2: bf00 nop
  52159. 8015bf4: 24003040 .word 0x24003040
  52160. 8015bf8: 2400302c .word 0x2400302c
  52161. 08015bfc <vTaskInternalSetTimeOutState>:
  52162. /*-----------------------------------------------------------*/
  52163. void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
  52164. {
  52165. 8015bfc: b480 push {r7}
  52166. 8015bfe: b083 sub sp, #12
  52167. 8015c00: af00 add r7, sp, #0
  52168. 8015c02: 6078 str r0, [r7, #4]
  52169. /* For internal use only as it does not use a critical section. */
  52170. pxTimeOut->xOverflowCount = xNumOfOverflows;
  52171. 8015c04: 4b06 ldr r3, [pc, #24] @ (8015c20 <vTaskInternalSetTimeOutState+0x24>)
  52172. 8015c06: 681a ldr r2, [r3, #0]
  52173. 8015c08: 687b ldr r3, [r7, #4]
  52174. 8015c0a: 601a str r2, [r3, #0]
  52175. pxTimeOut->xTimeOnEntering = xTickCount;
  52176. 8015c0c: 4b05 ldr r3, [pc, #20] @ (8015c24 <vTaskInternalSetTimeOutState+0x28>)
  52177. 8015c0e: 681a ldr r2, [r3, #0]
  52178. 8015c10: 687b ldr r3, [r7, #4]
  52179. 8015c12: 605a str r2, [r3, #4]
  52180. }
  52181. 8015c14: bf00 nop
  52182. 8015c16: 370c adds r7, #12
  52183. 8015c18: 46bd mov sp, r7
  52184. 8015c1a: f85d 7b04 ldr.w r7, [sp], #4
  52185. 8015c1e: 4770 bx lr
  52186. 8015c20: 24003040 .word 0x24003040
  52187. 8015c24: 2400302c .word 0x2400302c
  52188. 08015c28 <xTaskCheckForTimeOut>:
  52189. /*-----------------------------------------------------------*/
  52190. BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
  52191. {
  52192. 8015c28: b580 push {r7, lr}
  52193. 8015c2a: b088 sub sp, #32
  52194. 8015c2c: af00 add r7, sp, #0
  52195. 8015c2e: 6078 str r0, [r7, #4]
  52196. 8015c30: 6039 str r1, [r7, #0]
  52197. BaseType_t xReturn;
  52198. configASSERT( pxTimeOut );
  52199. 8015c32: 687b ldr r3, [r7, #4]
  52200. 8015c34: 2b00 cmp r3, #0
  52201. 8015c36: d10b bne.n 8015c50 <xTaskCheckForTimeOut+0x28>
  52202. __asm volatile
  52203. 8015c38: f04f 0350 mov.w r3, #80 @ 0x50
  52204. 8015c3c: f383 8811 msr BASEPRI, r3
  52205. 8015c40: f3bf 8f6f isb sy
  52206. 8015c44: f3bf 8f4f dsb sy
  52207. 8015c48: 613b str r3, [r7, #16]
  52208. }
  52209. 8015c4a: bf00 nop
  52210. 8015c4c: bf00 nop
  52211. 8015c4e: e7fd b.n 8015c4c <xTaskCheckForTimeOut+0x24>
  52212. configASSERT( pxTicksToWait );
  52213. 8015c50: 683b ldr r3, [r7, #0]
  52214. 8015c52: 2b00 cmp r3, #0
  52215. 8015c54: d10b bne.n 8015c6e <xTaskCheckForTimeOut+0x46>
  52216. __asm volatile
  52217. 8015c56: f04f 0350 mov.w r3, #80 @ 0x50
  52218. 8015c5a: f383 8811 msr BASEPRI, r3
  52219. 8015c5e: f3bf 8f6f isb sy
  52220. 8015c62: f3bf 8f4f dsb sy
  52221. 8015c66: 60fb str r3, [r7, #12]
  52222. }
  52223. 8015c68: bf00 nop
  52224. 8015c6a: bf00 nop
  52225. 8015c6c: e7fd b.n 8015c6a <xTaskCheckForTimeOut+0x42>
  52226. taskENTER_CRITICAL();
  52227. 8015c6e: f001 fabb bl 80171e8 <vPortEnterCritical>
  52228. {
  52229. /* Minor optimisation. The tick count cannot change in this block. */
  52230. const TickType_t xConstTickCount = xTickCount;
  52231. 8015c72: 4b1d ldr r3, [pc, #116] @ (8015ce8 <xTaskCheckForTimeOut+0xc0>)
  52232. 8015c74: 681b ldr r3, [r3, #0]
  52233. 8015c76: 61bb str r3, [r7, #24]
  52234. const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
  52235. 8015c78: 687b ldr r3, [r7, #4]
  52236. 8015c7a: 685b ldr r3, [r3, #4]
  52237. 8015c7c: 69ba ldr r2, [r7, #24]
  52238. 8015c7e: 1ad3 subs r3, r2, r3
  52239. 8015c80: 617b str r3, [r7, #20]
  52240. }
  52241. else
  52242. #endif
  52243. #if ( INCLUDE_vTaskSuspend == 1 )
  52244. if( *pxTicksToWait == portMAX_DELAY )
  52245. 8015c82: 683b ldr r3, [r7, #0]
  52246. 8015c84: 681b ldr r3, [r3, #0]
  52247. 8015c86: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  52248. 8015c8a: d102 bne.n 8015c92 <xTaskCheckForTimeOut+0x6a>
  52249. {
  52250. /* If INCLUDE_vTaskSuspend is set to 1 and the block time
  52251. specified is the maximum block time then the task should block
  52252. indefinitely, and therefore never time out. */
  52253. xReturn = pdFALSE;
  52254. 8015c8c: 2300 movs r3, #0
  52255. 8015c8e: 61fb str r3, [r7, #28]
  52256. 8015c90: e023 b.n 8015cda <xTaskCheckForTimeOut+0xb2>
  52257. }
  52258. else
  52259. #endif
  52260. if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
  52261. 8015c92: 687b ldr r3, [r7, #4]
  52262. 8015c94: 681a ldr r2, [r3, #0]
  52263. 8015c96: 4b15 ldr r3, [pc, #84] @ (8015cec <xTaskCheckForTimeOut+0xc4>)
  52264. 8015c98: 681b ldr r3, [r3, #0]
  52265. 8015c9a: 429a cmp r2, r3
  52266. 8015c9c: d007 beq.n 8015cae <xTaskCheckForTimeOut+0x86>
  52267. 8015c9e: 687b ldr r3, [r7, #4]
  52268. 8015ca0: 685b ldr r3, [r3, #4]
  52269. 8015ca2: 69ba ldr r2, [r7, #24]
  52270. 8015ca4: 429a cmp r2, r3
  52271. 8015ca6: d302 bcc.n 8015cae <xTaskCheckForTimeOut+0x86>
  52272. /* The tick count is greater than the time at which
  52273. vTaskSetTimeout() was called, but has also overflowed since
  52274. vTaskSetTimeOut() was called. It must have wrapped all the way
  52275. around and gone past again. This passed since vTaskSetTimeout()
  52276. was called. */
  52277. xReturn = pdTRUE;
  52278. 8015ca8: 2301 movs r3, #1
  52279. 8015caa: 61fb str r3, [r7, #28]
  52280. 8015cac: e015 b.n 8015cda <xTaskCheckForTimeOut+0xb2>
  52281. }
  52282. else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
  52283. 8015cae: 683b ldr r3, [r7, #0]
  52284. 8015cb0: 681b ldr r3, [r3, #0]
  52285. 8015cb2: 697a ldr r2, [r7, #20]
  52286. 8015cb4: 429a cmp r2, r3
  52287. 8015cb6: d20b bcs.n 8015cd0 <xTaskCheckForTimeOut+0xa8>
  52288. {
  52289. /* Not a genuine timeout. Adjust parameters for time remaining. */
  52290. *pxTicksToWait -= xElapsedTime;
  52291. 8015cb8: 683b ldr r3, [r7, #0]
  52292. 8015cba: 681a ldr r2, [r3, #0]
  52293. 8015cbc: 697b ldr r3, [r7, #20]
  52294. 8015cbe: 1ad2 subs r2, r2, r3
  52295. 8015cc0: 683b ldr r3, [r7, #0]
  52296. 8015cc2: 601a str r2, [r3, #0]
  52297. vTaskInternalSetTimeOutState( pxTimeOut );
  52298. 8015cc4: 6878 ldr r0, [r7, #4]
  52299. 8015cc6: f7ff ff99 bl 8015bfc <vTaskInternalSetTimeOutState>
  52300. xReturn = pdFALSE;
  52301. 8015cca: 2300 movs r3, #0
  52302. 8015ccc: 61fb str r3, [r7, #28]
  52303. 8015cce: e004 b.n 8015cda <xTaskCheckForTimeOut+0xb2>
  52304. }
  52305. else
  52306. {
  52307. *pxTicksToWait = 0;
  52308. 8015cd0: 683b ldr r3, [r7, #0]
  52309. 8015cd2: 2200 movs r2, #0
  52310. 8015cd4: 601a str r2, [r3, #0]
  52311. xReturn = pdTRUE;
  52312. 8015cd6: 2301 movs r3, #1
  52313. 8015cd8: 61fb str r3, [r7, #28]
  52314. }
  52315. }
  52316. taskEXIT_CRITICAL();
  52317. 8015cda: f001 fab7 bl 801724c <vPortExitCritical>
  52318. return xReturn;
  52319. 8015cde: 69fb ldr r3, [r7, #28]
  52320. }
  52321. 8015ce0: 4618 mov r0, r3
  52322. 8015ce2: 3720 adds r7, #32
  52323. 8015ce4: 46bd mov sp, r7
  52324. 8015ce6: bd80 pop {r7, pc}
  52325. 8015ce8: 2400302c .word 0x2400302c
  52326. 8015cec: 24003040 .word 0x24003040
  52327. 08015cf0 <vTaskMissedYield>:
  52328. /*-----------------------------------------------------------*/
  52329. void vTaskMissedYield( void )
  52330. {
  52331. 8015cf0: b480 push {r7}
  52332. 8015cf2: af00 add r7, sp, #0
  52333. xYieldPending = pdTRUE;
  52334. 8015cf4: 4b03 ldr r3, [pc, #12] @ (8015d04 <vTaskMissedYield+0x14>)
  52335. 8015cf6: 2201 movs r2, #1
  52336. 8015cf8: 601a str r2, [r3, #0]
  52337. }
  52338. 8015cfa: bf00 nop
  52339. 8015cfc: 46bd mov sp, r7
  52340. 8015cfe: f85d 7b04 ldr.w r7, [sp], #4
  52341. 8015d02: 4770 bx lr
  52342. 8015d04: 2400303c .word 0x2400303c
  52343. 08015d08 <prvIdleTask>:
  52344. *
  52345. * void prvIdleTask( void *pvParameters );
  52346. *
  52347. */
  52348. static portTASK_FUNCTION( prvIdleTask, pvParameters )
  52349. {
  52350. 8015d08: b580 push {r7, lr}
  52351. 8015d0a: b082 sub sp, #8
  52352. 8015d0c: af00 add r7, sp, #0
  52353. 8015d0e: 6078 str r0, [r7, #4]
  52354. for( ;; )
  52355. {
  52356. /* See if any tasks have deleted themselves - if so then the idle task
  52357. is responsible for freeing the deleted task's TCB and stack. */
  52358. prvCheckTasksWaitingTermination();
  52359. 8015d10: f000 f852 bl 8015db8 <prvCheckTasksWaitingTermination>
  52360. A critical region is not required here as we are just reading from
  52361. the list, and an occasional incorrect value will not matter. If
  52362. the ready list at the idle priority contains more than one task
  52363. then a task other than the idle task is ready to execute. */
  52364. if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
  52365. 8015d14: 4b06 ldr r3, [pc, #24] @ (8015d30 <prvIdleTask+0x28>)
  52366. 8015d16: 681b ldr r3, [r3, #0]
  52367. 8015d18: 2b01 cmp r3, #1
  52368. 8015d1a: d9f9 bls.n 8015d10 <prvIdleTask+0x8>
  52369. {
  52370. taskYIELD();
  52371. 8015d1c: 4b05 ldr r3, [pc, #20] @ (8015d34 <prvIdleTask+0x2c>)
  52372. 8015d1e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  52373. 8015d22: 601a str r2, [r3, #0]
  52374. 8015d24: f3bf 8f4f dsb sy
  52375. 8015d28: f3bf 8f6f isb sy
  52376. prvCheckTasksWaitingTermination();
  52377. 8015d2c: e7f0 b.n 8015d10 <prvIdleTask+0x8>
  52378. 8015d2e: bf00 nop
  52379. 8015d30: 24002b58 .word 0x24002b58
  52380. 8015d34: e000ed04 .word 0xe000ed04
  52381. 08015d38 <prvInitialiseTaskLists>:
  52382. #endif /* portUSING_MPU_WRAPPERS */
  52383. /*-----------------------------------------------------------*/
  52384. static void prvInitialiseTaskLists( void )
  52385. {
  52386. 8015d38: b580 push {r7, lr}
  52387. 8015d3a: b082 sub sp, #8
  52388. 8015d3c: af00 add r7, sp, #0
  52389. UBaseType_t uxPriority;
  52390. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  52391. 8015d3e: 2300 movs r3, #0
  52392. 8015d40: 607b str r3, [r7, #4]
  52393. 8015d42: e00c b.n 8015d5e <prvInitialiseTaskLists+0x26>
  52394. {
  52395. vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
  52396. 8015d44: 687a ldr r2, [r7, #4]
  52397. 8015d46: 4613 mov r3, r2
  52398. 8015d48: 009b lsls r3, r3, #2
  52399. 8015d4a: 4413 add r3, r2
  52400. 8015d4c: 009b lsls r3, r3, #2
  52401. 8015d4e: 4a12 ldr r2, [pc, #72] @ (8015d98 <prvInitialiseTaskLists+0x60>)
  52402. 8015d50: 4413 add r3, r2
  52403. 8015d52: 4618 mov r0, r3
  52404. 8015d54: f7fe f81c bl 8013d90 <vListInitialise>
  52405. for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
  52406. 8015d58: 687b ldr r3, [r7, #4]
  52407. 8015d5a: 3301 adds r3, #1
  52408. 8015d5c: 607b str r3, [r7, #4]
  52409. 8015d5e: 687b ldr r3, [r7, #4]
  52410. 8015d60: 2b37 cmp r3, #55 @ 0x37
  52411. 8015d62: d9ef bls.n 8015d44 <prvInitialiseTaskLists+0xc>
  52412. }
  52413. vListInitialise( &xDelayedTaskList1 );
  52414. 8015d64: 480d ldr r0, [pc, #52] @ (8015d9c <prvInitialiseTaskLists+0x64>)
  52415. 8015d66: f7fe f813 bl 8013d90 <vListInitialise>
  52416. vListInitialise( &xDelayedTaskList2 );
  52417. 8015d6a: 480d ldr r0, [pc, #52] @ (8015da0 <prvInitialiseTaskLists+0x68>)
  52418. 8015d6c: f7fe f810 bl 8013d90 <vListInitialise>
  52419. vListInitialise( &xPendingReadyList );
  52420. 8015d70: 480c ldr r0, [pc, #48] @ (8015da4 <prvInitialiseTaskLists+0x6c>)
  52421. 8015d72: f7fe f80d bl 8013d90 <vListInitialise>
  52422. #if ( INCLUDE_vTaskDelete == 1 )
  52423. {
  52424. vListInitialise( &xTasksWaitingTermination );
  52425. 8015d76: 480c ldr r0, [pc, #48] @ (8015da8 <prvInitialiseTaskLists+0x70>)
  52426. 8015d78: f7fe f80a bl 8013d90 <vListInitialise>
  52427. }
  52428. #endif /* INCLUDE_vTaskDelete */
  52429. #if ( INCLUDE_vTaskSuspend == 1 )
  52430. {
  52431. vListInitialise( &xSuspendedTaskList );
  52432. 8015d7c: 480b ldr r0, [pc, #44] @ (8015dac <prvInitialiseTaskLists+0x74>)
  52433. 8015d7e: f7fe f807 bl 8013d90 <vListInitialise>
  52434. }
  52435. #endif /* INCLUDE_vTaskSuspend */
  52436. /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
  52437. using list2. */
  52438. pxDelayedTaskList = &xDelayedTaskList1;
  52439. 8015d82: 4b0b ldr r3, [pc, #44] @ (8015db0 <prvInitialiseTaskLists+0x78>)
  52440. 8015d84: 4a05 ldr r2, [pc, #20] @ (8015d9c <prvInitialiseTaskLists+0x64>)
  52441. 8015d86: 601a str r2, [r3, #0]
  52442. pxOverflowDelayedTaskList = &xDelayedTaskList2;
  52443. 8015d88: 4b0a ldr r3, [pc, #40] @ (8015db4 <prvInitialiseTaskLists+0x7c>)
  52444. 8015d8a: 4a05 ldr r2, [pc, #20] @ (8015da0 <prvInitialiseTaskLists+0x68>)
  52445. 8015d8c: 601a str r2, [r3, #0]
  52446. }
  52447. 8015d8e: bf00 nop
  52448. 8015d90: 3708 adds r7, #8
  52449. 8015d92: 46bd mov sp, r7
  52450. 8015d94: bd80 pop {r7, pc}
  52451. 8015d96: bf00 nop
  52452. 8015d98: 24002b58 .word 0x24002b58
  52453. 8015d9c: 24002fb8 .word 0x24002fb8
  52454. 8015da0: 24002fcc .word 0x24002fcc
  52455. 8015da4: 24002fe8 .word 0x24002fe8
  52456. 8015da8: 24002ffc .word 0x24002ffc
  52457. 8015dac: 24003014 .word 0x24003014
  52458. 8015db0: 24002fe0 .word 0x24002fe0
  52459. 8015db4: 24002fe4 .word 0x24002fe4
  52460. 08015db8 <prvCheckTasksWaitingTermination>:
  52461. /*-----------------------------------------------------------*/
  52462. static void prvCheckTasksWaitingTermination( void )
  52463. {
  52464. 8015db8: b580 push {r7, lr}
  52465. 8015dba: b082 sub sp, #8
  52466. 8015dbc: af00 add r7, sp, #0
  52467. {
  52468. TCB_t *pxTCB;
  52469. /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
  52470. being called too often in the idle task. */
  52471. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  52472. 8015dbe: e019 b.n 8015df4 <prvCheckTasksWaitingTermination+0x3c>
  52473. {
  52474. taskENTER_CRITICAL();
  52475. 8015dc0: f001 fa12 bl 80171e8 <vPortEnterCritical>
  52476. {
  52477. pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52478. 8015dc4: 4b10 ldr r3, [pc, #64] @ (8015e08 <prvCheckTasksWaitingTermination+0x50>)
  52479. 8015dc6: 68db ldr r3, [r3, #12]
  52480. 8015dc8: 68db ldr r3, [r3, #12]
  52481. 8015dca: 607b str r3, [r7, #4]
  52482. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  52483. 8015dcc: 687b ldr r3, [r7, #4]
  52484. 8015dce: 3304 adds r3, #4
  52485. 8015dd0: 4618 mov r0, r3
  52486. 8015dd2: f7fe f867 bl 8013ea4 <uxListRemove>
  52487. --uxCurrentNumberOfTasks;
  52488. 8015dd6: 4b0d ldr r3, [pc, #52] @ (8015e0c <prvCheckTasksWaitingTermination+0x54>)
  52489. 8015dd8: 681b ldr r3, [r3, #0]
  52490. 8015dda: 3b01 subs r3, #1
  52491. 8015ddc: 4a0b ldr r2, [pc, #44] @ (8015e0c <prvCheckTasksWaitingTermination+0x54>)
  52492. 8015dde: 6013 str r3, [r2, #0]
  52493. --uxDeletedTasksWaitingCleanUp;
  52494. 8015de0: 4b0b ldr r3, [pc, #44] @ (8015e10 <prvCheckTasksWaitingTermination+0x58>)
  52495. 8015de2: 681b ldr r3, [r3, #0]
  52496. 8015de4: 3b01 subs r3, #1
  52497. 8015de6: 4a0a ldr r2, [pc, #40] @ (8015e10 <prvCheckTasksWaitingTermination+0x58>)
  52498. 8015de8: 6013 str r3, [r2, #0]
  52499. }
  52500. taskEXIT_CRITICAL();
  52501. 8015dea: f001 fa2f bl 801724c <vPortExitCritical>
  52502. prvDeleteTCB( pxTCB );
  52503. 8015dee: 6878 ldr r0, [r7, #4]
  52504. 8015df0: f000 f810 bl 8015e14 <prvDeleteTCB>
  52505. while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
  52506. 8015df4: 4b06 ldr r3, [pc, #24] @ (8015e10 <prvCheckTasksWaitingTermination+0x58>)
  52507. 8015df6: 681b ldr r3, [r3, #0]
  52508. 8015df8: 2b00 cmp r3, #0
  52509. 8015dfa: d1e1 bne.n 8015dc0 <prvCheckTasksWaitingTermination+0x8>
  52510. }
  52511. }
  52512. #endif /* INCLUDE_vTaskDelete */
  52513. }
  52514. 8015dfc: bf00 nop
  52515. 8015dfe: bf00 nop
  52516. 8015e00: 3708 adds r7, #8
  52517. 8015e02: 46bd mov sp, r7
  52518. 8015e04: bd80 pop {r7, pc}
  52519. 8015e06: bf00 nop
  52520. 8015e08: 24002ffc .word 0x24002ffc
  52521. 8015e0c: 24003028 .word 0x24003028
  52522. 8015e10: 24003010 .word 0x24003010
  52523. 08015e14 <prvDeleteTCB>:
  52524. /*-----------------------------------------------------------*/
  52525. #if ( INCLUDE_vTaskDelete == 1 )
  52526. static void prvDeleteTCB( TCB_t *pxTCB )
  52527. {
  52528. 8015e14: b580 push {r7, lr}
  52529. 8015e16: b084 sub sp, #16
  52530. 8015e18: af00 add r7, sp, #0
  52531. 8015e1a: 6078 str r0, [r7, #4]
  52532. to the task to free any memory allocated at the application level.
  52533. See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
  52534. for additional information. */
  52535. #if ( configUSE_NEWLIB_REENTRANT == 1 )
  52536. {
  52537. _reclaim_reent( &( pxTCB->xNewLib_reent ) );
  52538. 8015e1c: 687b ldr r3, [r7, #4]
  52539. 8015e1e: 3354 adds r3, #84 @ 0x54
  52540. 8015e20: 4618 mov r0, r3
  52541. 8015e22: f002 fb3d bl 80184a0 <_reclaim_reent>
  52542. #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
  52543. {
  52544. /* The task could have been allocated statically or dynamically, so
  52545. check what was statically allocated before trying to free the
  52546. memory. */
  52547. if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
  52548. 8015e26: 687b ldr r3, [r7, #4]
  52549. 8015e28: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  52550. 8015e2c: 2b00 cmp r3, #0
  52551. 8015e2e: d108 bne.n 8015e42 <prvDeleteTCB+0x2e>
  52552. {
  52553. /* Both the stack and TCB were allocated dynamically, so both
  52554. must be freed. */
  52555. vPortFree( pxTCB->pxStack );
  52556. 8015e30: 687b ldr r3, [r7, #4]
  52557. 8015e32: 6b1b ldr r3, [r3, #48] @ 0x30
  52558. 8015e34: 4618 mov r0, r3
  52559. 8015e36: f001 fbc7 bl 80175c8 <vPortFree>
  52560. vPortFree( pxTCB );
  52561. 8015e3a: 6878 ldr r0, [r7, #4]
  52562. 8015e3c: f001 fbc4 bl 80175c8 <vPortFree>
  52563. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  52564. mtCOVERAGE_TEST_MARKER();
  52565. }
  52566. }
  52567. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  52568. }
  52569. 8015e40: e019 b.n 8015e76 <prvDeleteTCB+0x62>
  52570. else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
  52571. 8015e42: 687b ldr r3, [r7, #4]
  52572. 8015e44: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  52573. 8015e48: 2b01 cmp r3, #1
  52574. 8015e4a: d103 bne.n 8015e54 <prvDeleteTCB+0x40>
  52575. vPortFree( pxTCB );
  52576. 8015e4c: 6878 ldr r0, [r7, #4]
  52577. 8015e4e: f001 fbbb bl 80175c8 <vPortFree>
  52578. }
  52579. 8015e52: e010 b.n 8015e76 <prvDeleteTCB+0x62>
  52580. configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
  52581. 8015e54: 687b ldr r3, [r7, #4]
  52582. 8015e56: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
  52583. 8015e5a: 2b02 cmp r3, #2
  52584. 8015e5c: d00b beq.n 8015e76 <prvDeleteTCB+0x62>
  52585. __asm volatile
  52586. 8015e5e: f04f 0350 mov.w r3, #80 @ 0x50
  52587. 8015e62: f383 8811 msr BASEPRI, r3
  52588. 8015e66: f3bf 8f6f isb sy
  52589. 8015e6a: f3bf 8f4f dsb sy
  52590. 8015e6e: 60fb str r3, [r7, #12]
  52591. }
  52592. 8015e70: bf00 nop
  52593. 8015e72: bf00 nop
  52594. 8015e74: e7fd b.n 8015e72 <prvDeleteTCB+0x5e>
  52595. }
  52596. 8015e76: bf00 nop
  52597. 8015e78: 3710 adds r7, #16
  52598. 8015e7a: 46bd mov sp, r7
  52599. 8015e7c: bd80 pop {r7, pc}
  52600. ...
  52601. 08015e80 <prvResetNextTaskUnblockTime>:
  52602. #endif /* INCLUDE_vTaskDelete */
  52603. /*-----------------------------------------------------------*/
  52604. static void prvResetNextTaskUnblockTime( void )
  52605. {
  52606. 8015e80: b480 push {r7}
  52607. 8015e82: b083 sub sp, #12
  52608. 8015e84: af00 add r7, sp, #0
  52609. TCB_t *pxTCB;
  52610. if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
  52611. 8015e86: 4b0c ldr r3, [pc, #48] @ (8015eb8 <prvResetNextTaskUnblockTime+0x38>)
  52612. 8015e88: 681b ldr r3, [r3, #0]
  52613. 8015e8a: 681b ldr r3, [r3, #0]
  52614. 8015e8c: 2b00 cmp r3, #0
  52615. 8015e8e: d104 bne.n 8015e9a <prvResetNextTaskUnblockTime+0x1a>
  52616. {
  52617. /* The new current delayed list is empty. Set xNextTaskUnblockTime to
  52618. the maximum possible value so it is extremely unlikely that the
  52619. if( xTickCount >= xNextTaskUnblockTime ) test will pass until
  52620. there is an item in the delayed list. */
  52621. xNextTaskUnblockTime = portMAX_DELAY;
  52622. 8015e90: 4b0a ldr r3, [pc, #40] @ (8015ebc <prvResetNextTaskUnblockTime+0x3c>)
  52623. 8015e92: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  52624. 8015e96: 601a str r2, [r3, #0]
  52625. which the task at the head of the delayed list should be removed
  52626. from the Blocked state. */
  52627. ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52628. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  52629. }
  52630. }
  52631. 8015e98: e008 b.n 8015eac <prvResetNextTaskUnblockTime+0x2c>
  52632. ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  52633. 8015e9a: 4b07 ldr r3, [pc, #28] @ (8015eb8 <prvResetNextTaskUnblockTime+0x38>)
  52634. 8015e9c: 681b ldr r3, [r3, #0]
  52635. 8015e9e: 68db ldr r3, [r3, #12]
  52636. 8015ea0: 68db ldr r3, [r3, #12]
  52637. 8015ea2: 607b str r3, [r7, #4]
  52638. xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
  52639. 8015ea4: 687b ldr r3, [r7, #4]
  52640. 8015ea6: 685b ldr r3, [r3, #4]
  52641. 8015ea8: 4a04 ldr r2, [pc, #16] @ (8015ebc <prvResetNextTaskUnblockTime+0x3c>)
  52642. 8015eaa: 6013 str r3, [r2, #0]
  52643. }
  52644. 8015eac: bf00 nop
  52645. 8015eae: 370c adds r7, #12
  52646. 8015eb0: 46bd mov sp, r7
  52647. 8015eb2: f85d 7b04 ldr.w r7, [sp], #4
  52648. 8015eb6: 4770 bx lr
  52649. 8015eb8: 24002fe0 .word 0x24002fe0
  52650. 8015ebc: 24003048 .word 0x24003048
  52651. 08015ec0 <xTaskGetCurrentTaskHandle>:
  52652. /*-----------------------------------------------------------*/
  52653. #if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
  52654. TaskHandle_t xTaskGetCurrentTaskHandle( void )
  52655. {
  52656. 8015ec0: b480 push {r7}
  52657. 8015ec2: b083 sub sp, #12
  52658. 8015ec4: af00 add r7, sp, #0
  52659. TaskHandle_t xReturn;
  52660. /* A critical section is not required as this is not called from
  52661. an interrupt and the current TCB will always be the same for any
  52662. individual execution thread. */
  52663. xReturn = pxCurrentTCB;
  52664. 8015ec6: 4b05 ldr r3, [pc, #20] @ (8015edc <xTaskGetCurrentTaskHandle+0x1c>)
  52665. 8015ec8: 681b ldr r3, [r3, #0]
  52666. 8015eca: 607b str r3, [r7, #4]
  52667. return xReturn;
  52668. 8015ecc: 687b ldr r3, [r7, #4]
  52669. }
  52670. 8015ece: 4618 mov r0, r3
  52671. 8015ed0: 370c adds r7, #12
  52672. 8015ed2: 46bd mov sp, r7
  52673. 8015ed4: f85d 7b04 ldr.w r7, [sp], #4
  52674. 8015ed8: 4770 bx lr
  52675. 8015eda: bf00 nop
  52676. 8015edc: 24002b54 .word 0x24002b54
  52677. 08015ee0 <xTaskGetSchedulerState>:
  52678. /*-----------------------------------------------------------*/
  52679. #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
  52680. BaseType_t xTaskGetSchedulerState( void )
  52681. {
  52682. 8015ee0: b480 push {r7}
  52683. 8015ee2: b083 sub sp, #12
  52684. 8015ee4: af00 add r7, sp, #0
  52685. BaseType_t xReturn;
  52686. if( xSchedulerRunning == pdFALSE )
  52687. 8015ee6: 4b0b ldr r3, [pc, #44] @ (8015f14 <xTaskGetSchedulerState+0x34>)
  52688. 8015ee8: 681b ldr r3, [r3, #0]
  52689. 8015eea: 2b00 cmp r3, #0
  52690. 8015eec: d102 bne.n 8015ef4 <xTaskGetSchedulerState+0x14>
  52691. {
  52692. xReturn = taskSCHEDULER_NOT_STARTED;
  52693. 8015eee: 2301 movs r3, #1
  52694. 8015ef0: 607b str r3, [r7, #4]
  52695. 8015ef2: e008 b.n 8015f06 <xTaskGetSchedulerState+0x26>
  52696. }
  52697. else
  52698. {
  52699. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  52700. 8015ef4: 4b08 ldr r3, [pc, #32] @ (8015f18 <xTaskGetSchedulerState+0x38>)
  52701. 8015ef6: 681b ldr r3, [r3, #0]
  52702. 8015ef8: 2b00 cmp r3, #0
  52703. 8015efa: d102 bne.n 8015f02 <xTaskGetSchedulerState+0x22>
  52704. {
  52705. xReturn = taskSCHEDULER_RUNNING;
  52706. 8015efc: 2302 movs r3, #2
  52707. 8015efe: 607b str r3, [r7, #4]
  52708. 8015f00: e001 b.n 8015f06 <xTaskGetSchedulerState+0x26>
  52709. }
  52710. else
  52711. {
  52712. xReturn = taskSCHEDULER_SUSPENDED;
  52713. 8015f02: 2300 movs r3, #0
  52714. 8015f04: 607b str r3, [r7, #4]
  52715. }
  52716. }
  52717. return xReturn;
  52718. 8015f06: 687b ldr r3, [r7, #4]
  52719. }
  52720. 8015f08: 4618 mov r0, r3
  52721. 8015f0a: 370c adds r7, #12
  52722. 8015f0c: 46bd mov sp, r7
  52723. 8015f0e: f85d 7b04 ldr.w r7, [sp], #4
  52724. 8015f12: 4770 bx lr
  52725. 8015f14: 24003034 .word 0x24003034
  52726. 8015f18: 24003050 .word 0x24003050
  52727. 08015f1c <xTaskPriorityInherit>:
  52728. /*-----------------------------------------------------------*/
  52729. #if ( configUSE_MUTEXES == 1 )
  52730. BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
  52731. {
  52732. 8015f1c: b580 push {r7, lr}
  52733. 8015f1e: b084 sub sp, #16
  52734. 8015f20: af00 add r7, sp, #0
  52735. 8015f22: 6078 str r0, [r7, #4]
  52736. TCB_t * const pxMutexHolderTCB = pxMutexHolder;
  52737. 8015f24: 687b ldr r3, [r7, #4]
  52738. 8015f26: 60bb str r3, [r7, #8]
  52739. BaseType_t xReturn = pdFALSE;
  52740. 8015f28: 2300 movs r3, #0
  52741. 8015f2a: 60fb str r3, [r7, #12]
  52742. /* If the mutex was given back by an interrupt while the queue was
  52743. locked then the mutex holder might now be NULL. _RB_ Is this still
  52744. needed as interrupts can no longer use mutexes? */
  52745. if( pxMutexHolder != NULL )
  52746. 8015f2c: 687b ldr r3, [r7, #4]
  52747. 8015f2e: 2b00 cmp r3, #0
  52748. 8015f30: d051 beq.n 8015fd6 <xTaskPriorityInherit+0xba>
  52749. {
  52750. /* If the holder of the mutex has a priority below the priority of
  52751. the task attempting to obtain the mutex then it will temporarily
  52752. inherit the priority of the task attempting to obtain the mutex. */
  52753. if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
  52754. 8015f32: 68bb ldr r3, [r7, #8]
  52755. 8015f34: 6ada ldr r2, [r3, #44] @ 0x2c
  52756. 8015f36: 4b2a ldr r3, [pc, #168] @ (8015fe0 <xTaskPriorityInherit+0xc4>)
  52757. 8015f38: 681b ldr r3, [r3, #0]
  52758. 8015f3a: 6adb ldr r3, [r3, #44] @ 0x2c
  52759. 8015f3c: 429a cmp r2, r3
  52760. 8015f3e: d241 bcs.n 8015fc4 <xTaskPriorityInherit+0xa8>
  52761. {
  52762. /* Adjust the mutex holder state to account for its new
  52763. priority. Only reset the event list item value if the value is
  52764. not being used for anything else. */
  52765. if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  52766. 8015f40: 68bb ldr r3, [r7, #8]
  52767. 8015f42: 699b ldr r3, [r3, #24]
  52768. 8015f44: 2b00 cmp r3, #0
  52769. 8015f46: db06 blt.n 8015f56 <xTaskPriorityInherit+0x3a>
  52770. {
  52771. listSET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  52772. 8015f48: 4b25 ldr r3, [pc, #148] @ (8015fe0 <xTaskPriorityInherit+0xc4>)
  52773. 8015f4a: 681b ldr r3, [r3, #0]
  52774. 8015f4c: 6adb ldr r3, [r3, #44] @ 0x2c
  52775. 8015f4e: f1c3 0238 rsb r2, r3, #56 @ 0x38
  52776. 8015f52: 68bb ldr r3, [r7, #8]
  52777. 8015f54: 619a str r2, [r3, #24]
  52778. mtCOVERAGE_TEST_MARKER();
  52779. }
  52780. /* If the task being modified is in the ready state it will need
  52781. to be moved into a new list. */
  52782. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
  52783. 8015f56: 68bb ldr r3, [r7, #8]
  52784. 8015f58: 6959 ldr r1, [r3, #20]
  52785. 8015f5a: 68bb ldr r3, [r7, #8]
  52786. 8015f5c: 6ada ldr r2, [r3, #44] @ 0x2c
  52787. 8015f5e: 4613 mov r3, r2
  52788. 8015f60: 009b lsls r3, r3, #2
  52789. 8015f62: 4413 add r3, r2
  52790. 8015f64: 009b lsls r3, r3, #2
  52791. 8015f66: 4a1f ldr r2, [pc, #124] @ (8015fe4 <xTaskPriorityInherit+0xc8>)
  52792. 8015f68: 4413 add r3, r2
  52793. 8015f6a: 4299 cmp r1, r3
  52794. 8015f6c: d122 bne.n 8015fb4 <xTaskPriorityInherit+0x98>
  52795. {
  52796. if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  52797. 8015f6e: 68bb ldr r3, [r7, #8]
  52798. 8015f70: 3304 adds r3, #4
  52799. 8015f72: 4618 mov r0, r3
  52800. 8015f74: f7fd ff96 bl 8013ea4 <uxListRemove>
  52801. {
  52802. mtCOVERAGE_TEST_MARKER();
  52803. }
  52804. /* Inherit the priority before being moved into the new list. */
  52805. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  52806. 8015f78: 4b19 ldr r3, [pc, #100] @ (8015fe0 <xTaskPriorityInherit+0xc4>)
  52807. 8015f7a: 681b ldr r3, [r3, #0]
  52808. 8015f7c: 6ada ldr r2, [r3, #44] @ 0x2c
  52809. 8015f7e: 68bb ldr r3, [r7, #8]
  52810. 8015f80: 62da str r2, [r3, #44] @ 0x2c
  52811. prvAddTaskToReadyList( pxMutexHolderTCB );
  52812. 8015f82: 68bb ldr r3, [r7, #8]
  52813. 8015f84: 6ada ldr r2, [r3, #44] @ 0x2c
  52814. 8015f86: 4b18 ldr r3, [pc, #96] @ (8015fe8 <xTaskPriorityInherit+0xcc>)
  52815. 8015f88: 681b ldr r3, [r3, #0]
  52816. 8015f8a: 429a cmp r2, r3
  52817. 8015f8c: d903 bls.n 8015f96 <xTaskPriorityInherit+0x7a>
  52818. 8015f8e: 68bb ldr r3, [r7, #8]
  52819. 8015f90: 6adb ldr r3, [r3, #44] @ 0x2c
  52820. 8015f92: 4a15 ldr r2, [pc, #84] @ (8015fe8 <xTaskPriorityInherit+0xcc>)
  52821. 8015f94: 6013 str r3, [r2, #0]
  52822. 8015f96: 68bb ldr r3, [r7, #8]
  52823. 8015f98: 6ada ldr r2, [r3, #44] @ 0x2c
  52824. 8015f9a: 4613 mov r3, r2
  52825. 8015f9c: 009b lsls r3, r3, #2
  52826. 8015f9e: 4413 add r3, r2
  52827. 8015fa0: 009b lsls r3, r3, #2
  52828. 8015fa2: 4a10 ldr r2, [pc, #64] @ (8015fe4 <xTaskPriorityInherit+0xc8>)
  52829. 8015fa4: 441a add r2, r3
  52830. 8015fa6: 68bb ldr r3, [r7, #8]
  52831. 8015fa8: 3304 adds r3, #4
  52832. 8015faa: 4619 mov r1, r3
  52833. 8015fac: 4610 mov r0, r2
  52834. 8015fae: f7fd ff1c bl 8013dea <vListInsertEnd>
  52835. 8015fb2: e004 b.n 8015fbe <xTaskPriorityInherit+0xa2>
  52836. }
  52837. else
  52838. {
  52839. /* Just inherit the priority. */
  52840. pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
  52841. 8015fb4: 4b0a ldr r3, [pc, #40] @ (8015fe0 <xTaskPriorityInherit+0xc4>)
  52842. 8015fb6: 681b ldr r3, [r3, #0]
  52843. 8015fb8: 6ada ldr r2, [r3, #44] @ 0x2c
  52844. 8015fba: 68bb ldr r3, [r7, #8]
  52845. 8015fbc: 62da str r2, [r3, #44] @ 0x2c
  52846. }
  52847. traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
  52848. /* Inheritance occurred. */
  52849. xReturn = pdTRUE;
  52850. 8015fbe: 2301 movs r3, #1
  52851. 8015fc0: 60fb str r3, [r7, #12]
  52852. 8015fc2: e008 b.n 8015fd6 <xTaskPriorityInherit+0xba>
  52853. }
  52854. else
  52855. {
  52856. if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
  52857. 8015fc4: 68bb ldr r3, [r7, #8]
  52858. 8015fc6: 6cda ldr r2, [r3, #76] @ 0x4c
  52859. 8015fc8: 4b05 ldr r3, [pc, #20] @ (8015fe0 <xTaskPriorityInherit+0xc4>)
  52860. 8015fca: 681b ldr r3, [r3, #0]
  52861. 8015fcc: 6adb ldr r3, [r3, #44] @ 0x2c
  52862. 8015fce: 429a cmp r2, r3
  52863. 8015fd0: d201 bcs.n 8015fd6 <xTaskPriorityInherit+0xba>
  52864. current priority of the mutex holder is not lower than the
  52865. priority of the task attempting to take the mutex.
  52866. Therefore the mutex holder must have already inherited a
  52867. priority, but inheritance would have occurred if that had
  52868. not been the case. */
  52869. xReturn = pdTRUE;
  52870. 8015fd2: 2301 movs r3, #1
  52871. 8015fd4: 60fb str r3, [r7, #12]
  52872. else
  52873. {
  52874. mtCOVERAGE_TEST_MARKER();
  52875. }
  52876. return xReturn;
  52877. 8015fd6: 68fb ldr r3, [r7, #12]
  52878. }
  52879. 8015fd8: 4618 mov r0, r3
  52880. 8015fda: 3710 adds r7, #16
  52881. 8015fdc: 46bd mov sp, r7
  52882. 8015fde: bd80 pop {r7, pc}
  52883. 8015fe0: 24002b54 .word 0x24002b54
  52884. 8015fe4: 24002b58 .word 0x24002b58
  52885. 8015fe8: 24003030 .word 0x24003030
  52886. 08015fec <xTaskPriorityDisinherit>:
  52887. /*-----------------------------------------------------------*/
  52888. #if ( configUSE_MUTEXES == 1 )
  52889. BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
  52890. {
  52891. 8015fec: b580 push {r7, lr}
  52892. 8015fee: b086 sub sp, #24
  52893. 8015ff0: af00 add r7, sp, #0
  52894. 8015ff2: 6078 str r0, [r7, #4]
  52895. TCB_t * const pxTCB = pxMutexHolder;
  52896. 8015ff4: 687b ldr r3, [r7, #4]
  52897. 8015ff6: 613b str r3, [r7, #16]
  52898. BaseType_t xReturn = pdFALSE;
  52899. 8015ff8: 2300 movs r3, #0
  52900. 8015ffa: 617b str r3, [r7, #20]
  52901. if( pxMutexHolder != NULL )
  52902. 8015ffc: 687b ldr r3, [r7, #4]
  52903. 8015ffe: 2b00 cmp r3, #0
  52904. 8016000: d058 beq.n 80160b4 <xTaskPriorityDisinherit+0xc8>
  52905. {
  52906. /* A task can only have an inherited priority if it holds the mutex.
  52907. If the mutex is held by a task then it cannot be given from an
  52908. interrupt, and if a mutex is given by the holding task then it must
  52909. be the running state task. */
  52910. configASSERT( pxTCB == pxCurrentTCB );
  52911. 8016002: 4b2f ldr r3, [pc, #188] @ (80160c0 <xTaskPriorityDisinherit+0xd4>)
  52912. 8016004: 681b ldr r3, [r3, #0]
  52913. 8016006: 693a ldr r2, [r7, #16]
  52914. 8016008: 429a cmp r2, r3
  52915. 801600a: d00b beq.n 8016024 <xTaskPriorityDisinherit+0x38>
  52916. __asm volatile
  52917. 801600c: f04f 0350 mov.w r3, #80 @ 0x50
  52918. 8016010: f383 8811 msr BASEPRI, r3
  52919. 8016014: f3bf 8f6f isb sy
  52920. 8016018: f3bf 8f4f dsb sy
  52921. 801601c: 60fb str r3, [r7, #12]
  52922. }
  52923. 801601e: bf00 nop
  52924. 8016020: bf00 nop
  52925. 8016022: e7fd b.n 8016020 <xTaskPriorityDisinherit+0x34>
  52926. configASSERT( pxTCB->uxMutexesHeld );
  52927. 8016024: 693b ldr r3, [r7, #16]
  52928. 8016026: 6d1b ldr r3, [r3, #80] @ 0x50
  52929. 8016028: 2b00 cmp r3, #0
  52930. 801602a: d10b bne.n 8016044 <xTaskPriorityDisinherit+0x58>
  52931. __asm volatile
  52932. 801602c: f04f 0350 mov.w r3, #80 @ 0x50
  52933. 8016030: f383 8811 msr BASEPRI, r3
  52934. 8016034: f3bf 8f6f isb sy
  52935. 8016038: f3bf 8f4f dsb sy
  52936. 801603c: 60bb str r3, [r7, #8]
  52937. }
  52938. 801603e: bf00 nop
  52939. 8016040: bf00 nop
  52940. 8016042: e7fd b.n 8016040 <xTaskPriorityDisinherit+0x54>
  52941. ( pxTCB->uxMutexesHeld )--;
  52942. 8016044: 693b ldr r3, [r7, #16]
  52943. 8016046: 6d1b ldr r3, [r3, #80] @ 0x50
  52944. 8016048: 1e5a subs r2, r3, #1
  52945. 801604a: 693b ldr r3, [r7, #16]
  52946. 801604c: 651a str r2, [r3, #80] @ 0x50
  52947. /* Has the holder of the mutex inherited the priority of another
  52948. task? */
  52949. if( pxTCB->uxPriority != pxTCB->uxBasePriority )
  52950. 801604e: 693b ldr r3, [r7, #16]
  52951. 8016050: 6ada ldr r2, [r3, #44] @ 0x2c
  52952. 8016052: 693b ldr r3, [r7, #16]
  52953. 8016054: 6cdb ldr r3, [r3, #76] @ 0x4c
  52954. 8016056: 429a cmp r2, r3
  52955. 8016058: d02c beq.n 80160b4 <xTaskPriorityDisinherit+0xc8>
  52956. {
  52957. /* Only disinherit if no other mutexes are held. */
  52958. if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
  52959. 801605a: 693b ldr r3, [r7, #16]
  52960. 801605c: 6d1b ldr r3, [r3, #80] @ 0x50
  52961. 801605e: 2b00 cmp r3, #0
  52962. 8016060: d128 bne.n 80160b4 <xTaskPriorityDisinherit+0xc8>
  52963. /* A task can only have an inherited priority if it holds
  52964. the mutex. If the mutex is held by a task then it cannot be
  52965. given from an interrupt, and if a mutex is given by the
  52966. holding task then it must be the running state task. Remove
  52967. the holding task from the ready/delayed list. */
  52968. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  52969. 8016062: 693b ldr r3, [r7, #16]
  52970. 8016064: 3304 adds r3, #4
  52971. 8016066: 4618 mov r0, r3
  52972. 8016068: f7fd ff1c bl 8013ea4 <uxListRemove>
  52973. }
  52974. /* Disinherit the priority before adding the task into the
  52975. new ready list. */
  52976. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  52977. pxTCB->uxPriority = pxTCB->uxBasePriority;
  52978. 801606c: 693b ldr r3, [r7, #16]
  52979. 801606e: 6cda ldr r2, [r3, #76] @ 0x4c
  52980. 8016070: 693b ldr r3, [r7, #16]
  52981. 8016072: 62da str r2, [r3, #44] @ 0x2c
  52982. /* Reset the event list item value. It cannot be in use for
  52983. any other purpose if this task is running, and it must be
  52984. running to give back the mutex. */
  52985. listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  52986. 8016074: 693b ldr r3, [r7, #16]
  52987. 8016076: 6adb ldr r3, [r3, #44] @ 0x2c
  52988. 8016078: f1c3 0238 rsb r2, r3, #56 @ 0x38
  52989. 801607c: 693b ldr r3, [r7, #16]
  52990. 801607e: 619a str r2, [r3, #24]
  52991. prvAddTaskToReadyList( pxTCB );
  52992. 8016080: 693b ldr r3, [r7, #16]
  52993. 8016082: 6ada ldr r2, [r3, #44] @ 0x2c
  52994. 8016084: 4b0f ldr r3, [pc, #60] @ (80160c4 <xTaskPriorityDisinherit+0xd8>)
  52995. 8016086: 681b ldr r3, [r3, #0]
  52996. 8016088: 429a cmp r2, r3
  52997. 801608a: d903 bls.n 8016094 <xTaskPriorityDisinherit+0xa8>
  52998. 801608c: 693b ldr r3, [r7, #16]
  52999. 801608e: 6adb ldr r3, [r3, #44] @ 0x2c
  53000. 8016090: 4a0c ldr r2, [pc, #48] @ (80160c4 <xTaskPriorityDisinherit+0xd8>)
  53001. 8016092: 6013 str r3, [r2, #0]
  53002. 8016094: 693b ldr r3, [r7, #16]
  53003. 8016096: 6ada ldr r2, [r3, #44] @ 0x2c
  53004. 8016098: 4613 mov r3, r2
  53005. 801609a: 009b lsls r3, r3, #2
  53006. 801609c: 4413 add r3, r2
  53007. 801609e: 009b lsls r3, r3, #2
  53008. 80160a0: 4a09 ldr r2, [pc, #36] @ (80160c8 <xTaskPriorityDisinherit+0xdc>)
  53009. 80160a2: 441a add r2, r3
  53010. 80160a4: 693b ldr r3, [r7, #16]
  53011. 80160a6: 3304 adds r3, #4
  53012. 80160a8: 4619 mov r1, r3
  53013. 80160aa: 4610 mov r0, r2
  53014. 80160ac: f7fd fe9d bl 8013dea <vListInsertEnd>
  53015. in an order different to that in which they were taken.
  53016. If a context switch did not occur when the first mutex was
  53017. returned, even if a task was waiting on it, then a context
  53018. switch should occur when the last mutex is returned whether
  53019. a task is waiting on it or not. */
  53020. xReturn = pdTRUE;
  53021. 80160b0: 2301 movs r3, #1
  53022. 80160b2: 617b str r3, [r7, #20]
  53023. else
  53024. {
  53025. mtCOVERAGE_TEST_MARKER();
  53026. }
  53027. return xReturn;
  53028. 80160b4: 697b ldr r3, [r7, #20]
  53029. }
  53030. 80160b6: 4618 mov r0, r3
  53031. 80160b8: 3718 adds r7, #24
  53032. 80160ba: 46bd mov sp, r7
  53033. 80160bc: bd80 pop {r7, pc}
  53034. 80160be: bf00 nop
  53035. 80160c0: 24002b54 .word 0x24002b54
  53036. 80160c4: 24003030 .word 0x24003030
  53037. 80160c8: 24002b58 .word 0x24002b58
  53038. 080160cc <vTaskPriorityDisinheritAfterTimeout>:
  53039. /*-----------------------------------------------------------*/
  53040. #if ( configUSE_MUTEXES == 1 )
  53041. void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
  53042. {
  53043. 80160cc: b580 push {r7, lr}
  53044. 80160ce: b088 sub sp, #32
  53045. 80160d0: af00 add r7, sp, #0
  53046. 80160d2: 6078 str r0, [r7, #4]
  53047. 80160d4: 6039 str r1, [r7, #0]
  53048. TCB_t * const pxTCB = pxMutexHolder;
  53049. 80160d6: 687b ldr r3, [r7, #4]
  53050. 80160d8: 61bb str r3, [r7, #24]
  53051. UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
  53052. const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
  53053. 80160da: 2301 movs r3, #1
  53054. 80160dc: 617b str r3, [r7, #20]
  53055. if( pxMutexHolder != NULL )
  53056. 80160de: 687b ldr r3, [r7, #4]
  53057. 80160e0: 2b00 cmp r3, #0
  53058. 80160e2: d06c beq.n 80161be <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53059. {
  53060. /* If pxMutexHolder is not NULL then the holder must hold at least
  53061. one mutex. */
  53062. configASSERT( pxTCB->uxMutexesHeld );
  53063. 80160e4: 69bb ldr r3, [r7, #24]
  53064. 80160e6: 6d1b ldr r3, [r3, #80] @ 0x50
  53065. 80160e8: 2b00 cmp r3, #0
  53066. 80160ea: d10b bne.n 8016104 <vTaskPriorityDisinheritAfterTimeout+0x38>
  53067. __asm volatile
  53068. 80160ec: f04f 0350 mov.w r3, #80 @ 0x50
  53069. 80160f0: f383 8811 msr BASEPRI, r3
  53070. 80160f4: f3bf 8f6f isb sy
  53071. 80160f8: f3bf 8f4f dsb sy
  53072. 80160fc: 60fb str r3, [r7, #12]
  53073. }
  53074. 80160fe: bf00 nop
  53075. 8016100: bf00 nop
  53076. 8016102: e7fd b.n 8016100 <vTaskPriorityDisinheritAfterTimeout+0x34>
  53077. /* Determine the priority to which the priority of the task that
  53078. holds the mutex should be set. This will be the greater of the
  53079. holding task's base priority and the priority of the highest
  53080. priority task that is waiting to obtain the mutex. */
  53081. if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
  53082. 8016104: 69bb ldr r3, [r7, #24]
  53083. 8016106: 6cdb ldr r3, [r3, #76] @ 0x4c
  53084. 8016108: 683a ldr r2, [r7, #0]
  53085. 801610a: 429a cmp r2, r3
  53086. 801610c: d902 bls.n 8016114 <vTaskPriorityDisinheritAfterTimeout+0x48>
  53087. {
  53088. uxPriorityToUse = uxHighestPriorityWaitingTask;
  53089. 801610e: 683b ldr r3, [r7, #0]
  53090. 8016110: 61fb str r3, [r7, #28]
  53091. 8016112: e002 b.n 801611a <vTaskPriorityDisinheritAfterTimeout+0x4e>
  53092. }
  53093. else
  53094. {
  53095. uxPriorityToUse = pxTCB->uxBasePriority;
  53096. 8016114: 69bb ldr r3, [r7, #24]
  53097. 8016116: 6cdb ldr r3, [r3, #76] @ 0x4c
  53098. 8016118: 61fb str r3, [r7, #28]
  53099. }
  53100. /* Does the priority need to change? */
  53101. if( pxTCB->uxPriority != uxPriorityToUse )
  53102. 801611a: 69bb ldr r3, [r7, #24]
  53103. 801611c: 6adb ldr r3, [r3, #44] @ 0x2c
  53104. 801611e: 69fa ldr r2, [r7, #28]
  53105. 8016120: 429a cmp r2, r3
  53106. 8016122: d04c beq.n 80161be <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53107. {
  53108. /* Only disinherit if no other mutexes are held. This is a
  53109. simplification in the priority inheritance implementation. If
  53110. the task that holds the mutex is also holding other mutexes then
  53111. the other mutexes may have caused the priority inheritance. */
  53112. if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
  53113. 8016124: 69bb ldr r3, [r7, #24]
  53114. 8016126: 6d1b ldr r3, [r3, #80] @ 0x50
  53115. 8016128: 697a ldr r2, [r7, #20]
  53116. 801612a: 429a cmp r2, r3
  53117. 801612c: d147 bne.n 80161be <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53118. {
  53119. /* If a task has timed out because it already holds the
  53120. mutex it was trying to obtain then it cannot of inherited
  53121. its own priority. */
  53122. configASSERT( pxTCB != pxCurrentTCB );
  53123. 801612e: 4b26 ldr r3, [pc, #152] @ (80161c8 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
  53124. 8016130: 681b ldr r3, [r3, #0]
  53125. 8016132: 69ba ldr r2, [r7, #24]
  53126. 8016134: 429a cmp r2, r3
  53127. 8016136: d10b bne.n 8016150 <vTaskPriorityDisinheritAfterTimeout+0x84>
  53128. __asm volatile
  53129. 8016138: f04f 0350 mov.w r3, #80 @ 0x50
  53130. 801613c: f383 8811 msr BASEPRI, r3
  53131. 8016140: f3bf 8f6f isb sy
  53132. 8016144: f3bf 8f4f dsb sy
  53133. 8016148: 60bb str r3, [r7, #8]
  53134. }
  53135. 801614a: bf00 nop
  53136. 801614c: bf00 nop
  53137. 801614e: e7fd b.n 801614c <vTaskPriorityDisinheritAfterTimeout+0x80>
  53138. /* Disinherit the priority, remembering the previous
  53139. priority to facilitate determining the subject task's
  53140. state. */
  53141. traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
  53142. uxPriorityUsedOnEntry = pxTCB->uxPriority;
  53143. 8016150: 69bb ldr r3, [r7, #24]
  53144. 8016152: 6adb ldr r3, [r3, #44] @ 0x2c
  53145. 8016154: 613b str r3, [r7, #16]
  53146. pxTCB->uxPriority = uxPriorityToUse;
  53147. 8016156: 69bb ldr r3, [r7, #24]
  53148. 8016158: 69fa ldr r2, [r7, #28]
  53149. 801615a: 62da str r2, [r3, #44] @ 0x2c
  53150. /* Only reset the event list item value if the value is not
  53151. being used for anything else. */
  53152. if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
  53153. 801615c: 69bb ldr r3, [r7, #24]
  53154. 801615e: 699b ldr r3, [r3, #24]
  53155. 8016160: 2b00 cmp r3, #0
  53156. 8016162: db04 blt.n 801616e <vTaskPriorityDisinheritAfterTimeout+0xa2>
  53157. {
  53158. listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriorityToUse ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  53159. 8016164: 69fb ldr r3, [r7, #28]
  53160. 8016166: f1c3 0238 rsb r2, r3, #56 @ 0x38
  53161. 801616a: 69bb ldr r3, [r7, #24]
  53162. 801616c: 619a str r2, [r3, #24]
  53163. then the task that holds the mutex could be in either the
  53164. Ready, Blocked or Suspended states. Only remove the task
  53165. from its current state list if it is in the Ready state as
  53166. the task's priority is going to change and there is one
  53167. Ready list per priority. */
  53168. if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
  53169. 801616e: 69bb ldr r3, [r7, #24]
  53170. 8016170: 6959 ldr r1, [r3, #20]
  53171. 8016172: 693a ldr r2, [r7, #16]
  53172. 8016174: 4613 mov r3, r2
  53173. 8016176: 009b lsls r3, r3, #2
  53174. 8016178: 4413 add r3, r2
  53175. 801617a: 009b lsls r3, r3, #2
  53176. 801617c: 4a13 ldr r2, [pc, #76] @ (80161cc <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53177. 801617e: 4413 add r3, r2
  53178. 8016180: 4299 cmp r1, r3
  53179. 8016182: d11c bne.n 80161be <vTaskPriorityDisinheritAfterTimeout+0xf2>
  53180. {
  53181. if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53182. 8016184: 69bb ldr r3, [r7, #24]
  53183. 8016186: 3304 adds r3, #4
  53184. 8016188: 4618 mov r0, r3
  53185. 801618a: f7fd fe8b bl 8013ea4 <uxListRemove>
  53186. else
  53187. {
  53188. mtCOVERAGE_TEST_MARKER();
  53189. }
  53190. prvAddTaskToReadyList( pxTCB );
  53191. 801618e: 69bb ldr r3, [r7, #24]
  53192. 8016190: 6ada ldr r2, [r3, #44] @ 0x2c
  53193. 8016192: 4b0f ldr r3, [pc, #60] @ (80161d0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53194. 8016194: 681b ldr r3, [r3, #0]
  53195. 8016196: 429a cmp r2, r3
  53196. 8016198: d903 bls.n 80161a2 <vTaskPriorityDisinheritAfterTimeout+0xd6>
  53197. 801619a: 69bb ldr r3, [r7, #24]
  53198. 801619c: 6adb ldr r3, [r3, #44] @ 0x2c
  53199. 801619e: 4a0c ldr r2, [pc, #48] @ (80161d0 <vTaskPriorityDisinheritAfterTimeout+0x104>)
  53200. 80161a0: 6013 str r3, [r2, #0]
  53201. 80161a2: 69bb ldr r3, [r7, #24]
  53202. 80161a4: 6ada ldr r2, [r3, #44] @ 0x2c
  53203. 80161a6: 4613 mov r3, r2
  53204. 80161a8: 009b lsls r3, r3, #2
  53205. 80161aa: 4413 add r3, r2
  53206. 80161ac: 009b lsls r3, r3, #2
  53207. 80161ae: 4a07 ldr r2, [pc, #28] @ (80161cc <vTaskPriorityDisinheritAfterTimeout+0x100>)
  53208. 80161b0: 441a add r2, r3
  53209. 80161b2: 69bb ldr r3, [r7, #24]
  53210. 80161b4: 3304 adds r3, #4
  53211. 80161b6: 4619 mov r1, r3
  53212. 80161b8: 4610 mov r0, r2
  53213. 80161ba: f7fd fe16 bl 8013dea <vListInsertEnd>
  53214. }
  53215. else
  53216. {
  53217. mtCOVERAGE_TEST_MARKER();
  53218. }
  53219. }
  53220. 80161be: bf00 nop
  53221. 80161c0: 3720 adds r7, #32
  53222. 80161c2: 46bd mov sp, r7
  53223. 80161c4: bd80 pop {r7, pc}
  53224. 80161c6: bf00 nop
  53225. 80161c8: 24002b54 .word 0x24002b54
  53226. 80161cc: 24002b58 .word 0x24002b58
  53227. 80161d0: 24003030 .word 0x24003030
  53228. 080161d4 <pvTaskIncrementMutexHeldCount>:
  53229. /*-----------------------------------------------------------*/
  53230. #if ( configUSE_MUTEXES == 1 )
  53231. TaskHandle_t pvTaskIncrementMutexHeldCount( void )
  53232. {
  53233. 80161d4: b480 push {r7}
  53234. 80161d6: af00 add r7, sp, #0
  53235. /* If xSemaphoreCreateMutex() is called before any tasks have been created
  53236. then pxCurrentTCB will be NULL. */
  53237. if( pxCurrentTCB != NULL )
  53238. 80161d8: 4b07 ldr r3, [pc, #28] @ (80161f8 <pvTaskIncrementMutexHeldCount+0x24>)
  53239. 80161da: 681b ldr r3, [r3, #0]
  53240. 80161dc: 2b00 cmp r3, #0
  53241. 80161de: d004 beq.n 80161ea <pvTaskIncrementMutexHeldCount+0x16>
  53242. {
  53243. ( pxCurrentTCB->uxMutexesHeld )++;
  53244. 80161e0: 4b05 ldr r3, [pc, #20] @ (80161f8 <pvTaskIncrementMutexHeldCount+0x24>)
  53245. 80161e2: 681b ldr r3, [r3, #0]
  53246. 80161e4: 6d1a ldr r2, [r3, #80] @ 0x50
  53247. 80161e6: 3201 adds r2, #1
  53248. 80161e8: 651a str r2, [r3, #80] @ 0x50
  53249. }
  53250. return pxCurrentTCB;
  53251. 80161ea: 4b03 ldr r3, [pc, #12] @ (80161f8 <pvTaskIncrementMutexHeldCount+0x24>)
  53252. 80161ec: 681b ldr r3, [r3, #0]
  53253. }
  53254. 80161ee: 4618 mov r0, r3
  53255. 80161f0: 46bd mov sp, r7
  53256. 80161f2: f85d 7b04 ldr.w r7, [sp], #4
  53257. 80161f6: 4770 bx lr
  53258. 80161f8: 24002b54 .word 0x24002b54
  53259. 080161fc <xTaskNotifyWait>:
  53260. /*-----------------------------------------------------------*/
  53261. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53262. BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
  53263. {
  53264. 80161fc: b580 push {r7, lr}
  53265. 80161fe: b086 sub sp, #24
  53266. 8016200: af00 add r7, sp, #0
  53267. 8016202: 60f8 str r0, [r7, #12]
  53268. 8016204: 60b9 str r1, [r7, #8]
  53269. 8016206: 607a str r2, [r7, #4]
  53270. 8016208: 603b str r3, [r7, #0]
  53271. BaseType_t xReturn;
  53272. taskENTER_CRITICAL();
  53273. 801620a: f000 ffed bl 80171e8 <vPortEnterCritical>
  53274. {
  53275. /* Only block if a notification is not already pending. */
  53276. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  53277. 801620e: 4b29 ldr r3, [pc, #164] @ (80162b4 <xTaskNotifyWait+0xb8>)
  53278. 8016210: 681b ldr r3, [r3, #0]
  53279. 8016212: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53280. 8016216: b2db uxtb r3, r3
  53281. 8016218: 2b02 cmp r3, #2
  53282. 801621a: d01c beq.n 8016256 <xTaskNotifyWait+0x5a>
  53283. {
  53284. /* Clear bits in the task's notification value as bits may get
  53285. set by the notifying task or interrupt. This can be used to
  53286. clear the value to zero. */
  53287. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
  53288. 801621c: 4b25 ldr r3, [pc, #148] @ (80162b4 <xTaskNotifyWait+0xb8>)
  53289. 801621e: 681b ldr r3, [r3, #0]
  53290. 8016220: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  53291. 8016224: 68fa ldr r2, [r7, #12]
  53292. 8016226: 43d2 mvns r2, r2
  53293. 8016228: 400a ands r2, r1
  53294. 801622a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53295. /* Mark this task as waiting for a notification. */
  53296. pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
  53297. 801622e: 4b21 ldr r3, [pc, #132] @ (80162b4 <xTaskNotifyWait+0xb8>)
  53298. 8016230: 681b ldr r3, [r3, #0]
  53299. 8016232: 2201 movs r2, #1
  53300. 8016234: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53301. if( xTicksToWait > ( TickType_t ) 0 )
  53302. 8016238: 683b ldr r3, [r7, #0]
  53303. 801623a: 2b00 cmp r3, #0
  53304. 801623c: d00b beq.n 8016256 <xTaskNotifyWait+0x5a>
  53305. {
  53306. prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
  53307. 801623e: 2101 movs r1, #1
  53308. 8016240: 6838 ldr r0, [r7, #0]
  53309. 8016242: f000 fa09 bl 8016658 <prvAddCurrentTaskToDelayedList>
  53310. /* All ports are written to allow a yield in a critical
  53311. section (some will yield immediately, others wait until the
  53312. critical section exits) - but it is not something that
  53313. application code should ever do. */
  53314. portYIELD_WITHIN_API();
  53315. 8016246: 4b1c ldr r3, [pc, #112] @ (80162b8 <xTaskNotifyWait+0xbc>)
  53316. 8016248: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53317. 801624c: 601a str r2, [r3, #0]
  53318. 801624e: f3bf 8f4f dsb sy
  53319. 8016252: f3bf 8f6f isb sy
  53320. else
  53321. {
  53322. mtCOVERAGE_TEST_MARKER();
  53323. }
  53324. }
  53325. taskEXIT_CRITICAL();
  53326. 8016256: f000 fff9 bl 801724c <vPortExitCritical>
  53327. taskENTER_CRITICAL();
  53328. 801625a: f000 ffc5 bl 80171e8 <vPortEnterCritical>
  53329. {
  53330. traceTASK_NOTIFY_WAIT();
  53331. if( pulNotificationValue != NULL )
  53332. 801625e: 687b ldr r3, [r7, #4]
  53333. 8016260: 2b00 cmp r3, #0
  53334. 8016262: d005 beq.n 8016270 <xTaskNotifyWait+0x74>
  53335. {
  53336. /* Output the current notification value, which may or may not
  53337. have changed. */
  53338. *pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
  53339. 8016264: 4b13 ldr r3, [pc, #76] @ (80162b4 <xTaskNotifyWait+0xb8>)
  53340. 8016266: 681b ldr r3, [r3, #0]
  53341. 8016268: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53342. 801626c: 687b ldr r3, [r7, #4]
  53343. 801626e: 601a str r2, [r3, #0]
  53344. /* If ucNotifyValue is set then either the task never entered the
  53345. blocked state (because a notification was already pending) or the
  53346. task unblocked because of a notification. Otherwise the task
  53347. unblocked because of a timeout. */
  53348. if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
  53349. 8016270: 4b10 ldr r3, [pc, #64] @ (80162b4 <xTaskNotifyWait+0xb8>)
  53350. 8016272: 681b ldr r3, [r3, #0]
  53351. 8016274: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53352. 8016278: b2db uxtb r3, r3
  53353. 801627a: 2b02 cmp r3, #2
  53354. 801627c: d002 beq.n 8016284 <xTaskNotifyWait+0x88>
  53355. {
  53356. /* A notification was not received. */
  53357. xReturn = pdFALSE;
  53358. 801627e: 2300 movs r3, #0
  53359. 8016280: 617b str r3, [r7, #20]
  53360. 8016282: e00a b.n 801629a <xTaskNotifyWait+0x9e>
  53361. }
  53362. else
  53363. {
  53364. /* A notification was already pending or a notification was
  53365. received while the task was waiting. */
  53366. pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
  53367. 8016284: 4b0b ldr r3, [pc, #44] @ (80162b4 <xTaskNotifyWait+0xb8>)
  53368. 8016286: 681b ldr r3, [r3, #0]
  53369. 8016288: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
  53370. 801628c: 68ba ldr r2, [r7, #8]
  53371. 801628e: 43d2 mvns r2, r2
  53372. 8016290: 400a ands r2, r1
  53373. 8016292: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53374. xReturn = pdTRUE;
  53375. 8016296: 2301 movs r3, #1
  53376. 8016298: 617b str r3, [r7, #20]
  53377. }
  53378. pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  53379. 801629a: 4b06 ldr r3, [pc, #24] @ (80162b4 <xTaskNotifyWait+0xb8>)
  53380. 801629c: 681b ldr r3, [r3, #0]
  53381. 801629e: 2200 movs r2, #0
  53382. 80162a0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53383. }
  53384. taskEXIT_CRITICAL();
  53385. 80162a4: f000 ffd2 bl 801724c <vPortExitCritical>
  53386. return xReturn;
  53387. 80162a8: 697b ldr r3, [r7, #20]
  53388. }
  53389. 80162aa: 4618 mov r0, r3
  53390. 80162ac: 3718 adds r7, #24
  53391. 80162ae: 46bd mov sp, r7
  53392. 80162b0: bd80 pop {r7, pc}
  53393. 80162b2: bf00 nop
  53394. 80162b4: 24002b54 .word 0x24002b54
  53395. 80162b8: e000ed04 .word 0xe000ed04
  53396. 080162bc <xTaskGenericNotify>:
  53397. /*-----------------------------------------------------------*/
  53398. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53399. BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
  53400. {
  53401. 80162bc: b580 push {r7, lr}
  53402. 80162be: b08a sub sp, #40 @ 0x28
  53403. 80162c0: af00 add r7, sp, #0
  53404. 80162c2: 60f8 str r0, [r7, #12]
  53405. 80162c4: 60b9 str r1, [r7, #8]
  53406. 80162c6: 603b str r3, [r7, #0]
  53407. 80162c8: 4613 mov r3, r2
  53408. 80162ca: 71fb strb r3, [r7, #7]
  53409. TCB_t * pxTCB;
  53410. BaseType_t xReturn = pdPASS;
  53411. 80162cc: 2301 movs r3, #1
  53412. 80162ce: 627b str r3, [r7, #36] @ 0x24
  53413. uint8_t ucOriginalNotifyState;
  53414. configASSERT( xTaskToNotify );
  53415. 80162d0: 68fb ldr r3, [r7, #12]
  53416. 80162d2: 2b00 cmp r3, #0
  53417. 80162d4: d10b bne.n 80162ee <xTaskGenericNotify+0x32>
  53418. __asm volatile
  53419. 80162d6: f04f 0350 mov.w r3, #80 @ 0x50
  53420. 80162da: f383 8811 msr BASEPRI, r3
  53421. 80162de: f3bf 8f6f isb sy
  53422. 80162e2: f3bf 8f4f dsb sy
  53423. 80162e6: 61bb str r3, [r7, #24]
  53424. }
  53425. 80162e8: bf00 nop
  53426. 80162ea: bf00 nop
  53427. 80162ec: e7fd b.n 80162ea <xTaskGenericNotify+0x2e>
  53428. pxTCB = xTaskToNotify;
  53429. 80162ee: 68fb ldr r3, [r7, #12]
  53430. 80162f0: 623b str r3, [r7, #32]
  53431. taskENTER_CRITICAL();
  53432. 80162f2: f000 ff79 bl 80171e8 <vPortEnterCritical>
  53433. {
  53434. if( pulPreviousNotificationValue != NULL )
  53435. 80162f6: 683b ldr r3, [r7, #0]
  53436. 80162f8: 2b00 cmp r3, #0
  53437. 80162fa: d004 beq.n 8016306 <xTaskGenericNotify+0x4a>
  53438. {
  53439. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  53440. 80162fc: 6a3b ldr r3, [r7, #32]
  53441. 80162fe: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53442. 8016302: 683b ldr r3, [r7, #0]
  53443. 8016304: 601a str r2, [r3, #0]
  53444. }
  53445. ucOriginalNotifyState = pxTCB->ucNotifyState;
  53446. 8016306: 6a3b ldr r3, [r7, #32]
  53447. 8016308: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53448. 801630c: 77fb strb r3, [r7, #31]
  53449. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  53450. 801630e: 6a3b ldr r3, [r7, #32]
  53451. 8016310: 2202 movs r2, #2
  53452. 8016312: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53453. switch( eAction )
  53454. 8016316: 79fb ldrb r3, [r7, #7]
  53455. 8016318: 2b04 cmp r3, #4
  53456. 801631a: d82e bhi.n 801637a <xTaskGenericNotify+0xbe>
  53457. 801631c: a201 add r2, pc, #4 @ (adr r2, 8016324 <xTaskGenericNotify+0x68>)
  53458. 801631e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  53459. 8016322: bf00 nop
  53460. 8016324: 0801639f .word 0x0801639f
  53461. 8016328: 08016339 .word 0x08016339
  53462. 801632c: 0801634b .word 0x0801634b
  53463. 8016330: 0801635b .word 0x0801635b
  53464. 8016334: 08016365 .word 0x08016365
  53465. {
  53466. case eSetBits :
  53467. pxTCB->ulNotifiedValue |= ulValue;
  53468. 8016338: 6a3b ldr r3, [r7, #32]
  53469. 801633a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53470. 801633e: 68bb ldr r3, [r7, #8]
  53471. 8016340: 431a orrs r2, r3
  53472. 8016342: 6a3b ldr r3, [r7, #32]
  53473. 8016344: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53474. break;
  53475. 8016348: e02c b.n 80163a4 <xTaskGenericNotify+0xe8>
  53476. case eIncrement :
  53477. ( pxTCB->ulNotifiedValue )++;
  53478. 801634a: 6a3b ldr r3, [r7, #32]
  53479. 801634c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  53480. 8016350: 1c5a adds r2, r3, #1
  53481. 8016352: 6a3b ldr r3, [r7, #32]
  53482. 8016354: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53483. break;
  53484. 8016358: e024 b.n 80163a4 <xTaskGenericNotify+0xe8>
  53485. case eSetValueWithOverwrite :
  53486. pxTCB->ulNotifiedValue = ulValue;
  53487. 801635a: 6a3b ldr r3, [r7, #32]
  53488. 801635c: 68ba ldr r2, [r7, #8]
  53489. 801635e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53490. break;
  53491. 8016362: e01f b.n 80163a4 <xTaskGenericNotify+0xe8>
  53492. case eSetValueWithoutOverwrite :
  53493. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  53494. 8016364: 7ffb ldrb r3, [r7, #31]
  53495. 8016366: 2b02 cmp r3, #2
  53496. 8016368: d004 beq.n 8016374 <xTaskGenericNotify+0xb8>
  53497. {
  53498. pxTCB->ulNotifiedValue = ulValue;
  53499. 801636a: 6a3b ldr r3, [r7, #32]
  53500. 801636c: 68ba ldr r2, [r7, #8]
  53501. 801636e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53502. else
  53503. {
  53504. /* The value could not be written to the task. */
  53505. xReturn = pdFAIL;
  53506. }
  53507. break;
  53508. 8016372: e017 b.n 80163a4 <xTaskGenericNotify+0xe8>
  53509. xReturn = pdFAIL;
  53510. 8016374: 2300 movs r3, #0
  53511. 8016376: 627b str r3, [r7, #36] @ 0x24
  53512. break;
  53513. 8016378: e014 b.n 80163a4 <xTaskGenericNotify+0xe8>
  53514. default:
  53515. /* Should not get here if all enums are handled.
  53516. Artificially force an assert by testing a value the
  53517. compiler can't assume is const. */
  53518. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  53519. 801637a: 6a3b ldr r3, [r7, #32]
  53520. 801637c: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  53521. 8016380: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53522. 8016384: d00d beq.n 80163a2 <xTaskGenericNotify+0xe6>
  53523. __asm volatile
  53524. 8016386: f04f 0350 mov.w r3, #80 @ 0x50
  53525. 801638a: f383 8811 msr BASEPRI, r3
  53526. 801638e: f3bf 8f6f isb sy
  53527. 8016392: f3bf 8f4f dsb sy
  53528. 8016396: 617b str r3, [r7, #20]
  53529. }
  53530. 8016398: bf00 nop
  53531. 801639a: bf00 nop
  53532. 801639c: e7fd b.n 801639a <xTaskGenericNotify+0xde>
  53533. break;
  53534. 801639e: bf00 nop
  53535. 80163a0: e000 b.n 80163a4 <xTaskGenericNotify+0xe8>
  53536. break;
  53537. 80163a2: bf00 nop
  53538. traceTASK_NOTIFY();
  53539. /* If the task is in the blocked state specifically to wait for a
  53540. notification then unblock it now. */
  53541. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  53542. 80163a4: 7ffb ldrb r3, [r7, #31]
  53543. 80163a6: 2b01 cmp r3, #1
  53544. 80163a8: d13b bne.n 8016422 <xTaskGenericNotify+0x166>
  53545. {
  53546. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53547. 80163aa: 6a3b ldr r3, [r7, #32]
  53548. 80163ac: 3304 adds r3, #4
  53549. 80163ae: 4618 mov r0, r3
  53550. 80163b0: f7fd fd78 bl 8013ea4 <uxListRemove>
  53551. prvAddTaskToReadyList( pxTCB );
  53552. 80163b4: 6a3b ldr r3, [r7, #32]
  53553. 80163b6: 6ada ldr r2, [r3, #44] @ 0x2c
  53554. 80163b8: 4b1d ldr r3, [pc, #116] @ (8016430 <xTaskGenericNotify+0x174>)
  53555. 80163ba: 681b ldr r3, [r3, #0]
  53556. 80163bc: 429a cmp r2, r3
  53557. 80163be: d903 bls.n 80163c8 <xTaskGenericNotify+0x10c>
  53558. 80163c0: 6a3b ldr r3, [r7, #32]
  53559. 80163c2: 6adb ldr r3, [r3, #44] @ 0x2c
  53560. 80163c4: 4a1a ldr r2, [pc, #104] @ (8016430 <xTaskGenericNotify+0x174>)
  53561. 80163c6: 6013 str r3, [r2, #0]
  53562. 80163c8: 6a3b ldr r3, [r7, #32]
  53563. 80163ca: 6ada ldr r2, [r3, #44] @ 0x2c
  53564. 80163cc: 4613 mov r3, r2
  53565. 80163ce: 009b lsls r3, r3, #2
  53566. 80163d0: 4413 add r3, r2
  53567. 80163d2: 009b lsls r3, r3, #2
  53568. 80163d4: 4a17 ldr r2, [pc, #92] @ (8016434 <xTaskGenericNotify+0x178>)
  53569. 80163d6: 441a add r2, r3
  53570. 80163d8: 6a3b ldr r3, [r7, #32]
  53571. 80163da: 3304 adds r3, #4
  53572. 80163dc: 4619 mov r1, r3
  53573. 80163de: 4610 mov r0, r2
  53574. 80163e0: f7fd fd03 bl 8013dea <vListInsertEnd>
  53575. /* The task should not have been on an event list. */
  53576. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  53577. 80163e4: 6a3b ldr r3, [r7, #32]
  53578. 80163e6: 6a9b ldr r3, [r3, #40] @ 0x28
  53579. 80163e8: 2b00 cmp r3, #0
  53580. 80163ea: d00b beq.n 8016404 <xTaskGenericNotify+0x148>
  53581. __asm volatile
  53582. 80163ec: f04f 0350 mov.w r3, #80 @ 0x50
  53583. 80163f0: f383 8811 msr BASEPRI, r3
  53584. 80163f4: f3bf 8f6f isb sy
  53585. 80163f8: f3bf 8f4f dsb sy
  53586. 80163fc: 613b str r3, [r7, #16]
  53587. }
  53588. 80163fe: bf00 nop
  53589. 8016400: bf00 nop
  53590. 8016402: e7fd b.n 8016400 <xTaskGenericNotify+0x144>
  53591. earliest possible time. */
  53592. prvResetNextTaskUnblockTime();
  53593. }
  53594. #endif
  53595. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  53596. 8016404: 6a3b ldr r3, [r7, #32]
  53597. 8016406: 6ada ldr r2, [r3, #44] @ 0x2c
  53598. 8016408: 4b0b ldr r3, [pc, #44] @ (8016438 <xTaskGenericNotify+0x17c>)
  53599. 801640a: 681b ldr r3, [r3, #0]
  53600. 801640c: 6adb ldr r3, [r3, #44] @ 0x2c
  53601. 801640e: 429a cmp r2, r3
  53602. 8016410: d907 bls.n 8016422 <xTaskGenericNotify+0x166>
  53603. {
  53604. /* The notified task has a priority above the currently
  53605. executing task so a yield is required. */
  53606. taskYIELD_IF_USING_PREEMPTION();
  53607. 8016412: 4b0a ldr r3, [pc, #40] @ (801643c <xTaskGenericNotify+0x180>)
  53608. 8016414: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  53609. 8016418: 601a str r2, [r3, #0]
  53610. 801641a: f3bf 8f4f dsb sy
  53611. 801641e: f3bf 8f6f isb sy
  53612. else
  53613. {
  53614. mtCOVERAGE_TEST_MARKER();
  53615. }
  53616. }
  53617. taskEXIT_CRITICAL();
  53618. 8016422: f000 ff13 bl 801724c <vPortExitCritical>
  53619. return xReturn;
  53620. 8016426: 6a7b ldr r3, [r7, #36] @ 0x24
  53621. }
  53622. 8016428: 4618 mov r0, r3
  53623. 801642a: 3728 adds r7, #40 @ 0x28
  53624. 801642c: 46bd mov sp, r7
  53625. 801642e: bd80 pop {r7, pc}
  53626. 8016430: 24003030 .word 0x24003030
  53627. 8016434: 24002b58 .word 0x24002b58
  53628. 8016438: 24002b54 .word 0x24002b54
  53629. 801643c: e000ed04 .word 0xe000ed04
  53630. 08016440 <xTaskGenericNotifyFromISR>:
  53631. /*-----------------------------------------------------------*/
  53632. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53633. BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
  53634. {
  53635. 8016440: b580 push {r7, lr}
  53636. 8016442: b08e sub sp, #56 @ 0x38
  53637. 8016444: af00 add r7, sp, #0
  53638. 8016446: 60f8 str r0, [r7, #12]
  53639. 8016448: 60b9 str r1, [r7, #8]
  53640. 801644a: 603b str r3, [r7, #0]
  53641. 801644c: 4613 mov r3, r2
  53642. 801644e: 71fb strb r3, [r7, #7]
  53643. TCB_t * pxTCB;
  53644. uint8_t ucOriginalNotifyState;
  53645. BaseType_t xReturn = pdPASS;
  53646. 8016450: 2301 movs r3, #1
  53647. 8016452: 637b str r3, [r7, #52] @ 0x34
  53648. UBaseType_t uxSavedInterruptStatus;
  53649. configASSERT( xTaskToNotify );
  53650. 8016454: 68fb ldr r3, [r7, #12]
  53651. 8016456: 2b00 cmp r3, #0
  53652. 8016458: d10b bne.n 8016472 <xTaskGenericNotifyFromISR+0x32>
  53653. __asm volatile
  53654. 801645a: f04f 0350 mov.w r3, #80 @ 0x50
  53655. 801645e: f383 8811 msr BASEPRI, r3
  53656. 8016462: f3bf 8f6f isb sy
  53657. 8016466: f3bf 8f4f dsb sy
  53658. 801646a: 627b str r3, [r7, #36] @ 0x24
  53659. }
  53660. 801646c: bf00 nop
  53661. 801646e: bf00 nop
  53662. 8016470: e7fd b.n 801646e <xTaskGenericNotifyFromISR+0x2e>
  53663. below the maximum system call interrupt priority. FreeRTOS maintains a
  53664. separate interrupt safe API to ensure interrupt entry is as fast and as
  53665. simple as possible. More information (albeit Cortex-M specific) is
  53666. provided on the following link:
  53667. http://www.freertos.org/RTOS-Cortex-M3-M4.html */
  53668. portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
  53669. 8016472: f000 ff99 bl 80173a8 <vPortValidateInterruptPriority>
  53670. pxTCB = xTaskToNotify;
  53671. 8016476: 68fb ldr r3, [r7, #12]
  53672. 8016478: 633b str r3, [r7, #48] @ 0x30
  53673. __asm volatile
  53674. 801647a: f3ef 8211 mrs r2, BASEPRI
  53675. 801647e: f04f 0350 mov.w r3, #80 @ 0x50
  53676. 8016482: f383 8811 msr BASEPRI, r3
  53677. 8016486: f3bf 8f6f isb sy
  53678. 801648a: f3bf 8f4f dsb sy
  53679. 801648e: 623a str r2, [r7, #32]
  53680. 8016490: 61fb str r3, [r7, #28]
  53681. return ulOriginalBASEPRI;
  53682. 8016492: 6a3b ldr r3, [r7, #32]
  53683. uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
  53684. 8016494: 62fb str r3, [r7, #44] @ 0x2c
  53685. {
  53686. if( pulPreviousNotificationValue != NULL )
  53687. 8016496: 683b ldr r3, [r7, #0]
  53688. 8016498: 2b00 cmp r3, #0
  53689. 801649a: d004 beq.n 80164a6 <xTaskGenericNotifyFromISR+0x66>
  53690. {
  53691. *pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
  53692. 801649c: 6b3b ldr r3, [r7, #48] @ 0x30
  53693. 801649e: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53694. 80164a2: 683b ldr r3, [r7, #0]
  53695. 80164a4: 601a str r2, [r3, #0]
  53696. }
  53697. ucOriginalNotifyState = pxTCB->ucNotifyState;
  53698. 80164a6: 6b3b ldr r3, [r7, #48] @ 0x30
  53699. 80164a8: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53700. 80164ac: f887 302b strb.w r3, [r7, #43] @ 0x2b
  53701. pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
  53702. 80164b0: 6b3b ldr r3, [r7, #48] @ 0x30
  53703. 80164b2: 2202 movs r2, #2
  53704. 80164b4: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53705. switch( eAction )
  53706. 80164b8: 79fb ldrb r3, [r7, #7]
  53707. 80164ba: 2b04 cmp r3, #4
  53708. 80164bc: d82e bhi.n 801651c <xTaskGenericNotifyFromISR+0xdc>
  53709. 80164be: a201 add r2, pc, #4 @ (adr r2, 80164c4 <xTaskGenericNotifyFromISR+0x84>)
  53710. 80164c0: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  53711. 80164c4: 08016541 .word 0x08016541
  53712. 80164c8: 080164d9 .word 0x080164d9
  53713. 80164cc: 080164eb .word 0x080164eb
  53714. 80164d0: 080164fb .word 0x080164fb
  53715. 80164d4: 08016505 .word 0x08016505
  53716. {
  53717. case eSetBits :
  53718. pxTCB->ulNotifiedValue |= ulValue;
  53719. 80164d8: 6b3b ldr r3, [r7, #48] @ 0x30
  53720. 80164da: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
  53721. 80164de: 68bb ldr r3, [r7, #8]
  53722. 80164e0: 431a orrs r2, r3
  53723. 80164e2: 6b3b ldr r3, [r7, #48] @ 0x30
  53724. 80164e4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53725. break;
  53726. 80164e8: e02d b.n 8016546 <xTaskGenericNotifyFromISR+0x106>
  53727. case eIncrement :
  53728. ( pxTCB->ulNotifiedValue )++;
  53729. 80164ea: 6b3b ldr r3, [r7, #48] @ 0x30
  53730. 80164ec: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  53731. 80164f0: 1c5a adds r2, r3, #1
  53732. 80164f2: 6b3b ldr r3, [r7, #48] @ 0x30
  53733. 80164f4: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53734. break;
  53735. 80164f8: e025 b.n 8016546 <xTaskGenericNotifyFromISR+0x106>
  53736. case eSetValueWithOverwrite :
  53737. pxTCB->ulNotifiedValue = ulValue;
  53738. 80164fa: 6b3b ldr r3, [r7, #48] @ 0x30
  53739. 80164fc: 68ba ldr r2, [r7, #8]
  53740. 80164fe: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53741. break;
  53742. 8016502: e020 b.n 8016546 <xTaskGenericNotifyFromISR+0x106>
  53743. case eSetValueWithoutOverwrite :
  53744. if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
  53745. 8016504: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  53746. 8016508: 2b02 cmp r3, #2
  53747. 801650a: d004 beq.n 8016516 <xTaskGenericNotifyFromISR+0xd6>
  53748. {
  53749. pxTCB->ulNotifiedValue = ulValue;
  53750. 801650c: 6b3b ldr r3, [r7, #48] @ 0x30
  53751. 801650e: 68ba ldr r2, [r7, #8]
  53752. 8016510: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
  53753. else
  53754. {
  53755. /* The value could not be written to the task. */
  53756. xReturn = pdFAIL;
  53757. }
  53758. break;
  53759. 8016514: e017 b.n 8016546 <xTaskGenericNotifyFromISR+0x106>
  53760. xReturn = pdFAIL;
  53761. 8016516: 2300 movs r3, #0
  53762. 8016518: 637b str r3, [r7, #52] @ 0x34
  53763. break;
  53764. 801651a: e014 b.n 8016546 <xTaskGenericNotifyFromISR+0x106>
  53765. default:
  53766. /* Should not get here if all enums are handled.
  53767. Artificially force an assert by testing a value the
  53768. compiler can't assume is const. */
  53769. configASSERT( pxTCB->ulNotifiedValue == ~0UL );
  53770. 801651c: 6b3b ldr r3, [r7, #48] @ 0x30
  53771. 801651e: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
  53772. 8016522: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  53773. 8016526: d00d beq.n 8016544 <xTaskGenericNotifyFromISR+0x104>
  53774. __asm volatile
  53775. 8016528: f04f 0350 mov.w r3, #80 @ 0x50
  53776. 801652c: f383 8811 msr BASEPRI, r3
  53777. 8016530: f3bf 8f6f isb sy
  53778. 8016534: f3bf 8f4f dsb sy
  53779. 8016538: 61bb str r3, [r7, #24]
  53780. }
  53781. 801653a: bf00 nop
  53782. 801653c: bf00 nop
  53783. 801653e: e7fd b.n 801653c <xTaskGenericNotifyFromISR+0xfc>
  53784. break;
  53785. 8016540: bf00 nop
  53786. 8016542: e000 b.n 8016546 <xTaskGenericNotifyFromISR+0x106>
  53787. break;
  53788. 8016544: bf00 nop
  53789. traceTASK_NOTIFY_FROM_ISR();
  53790. /* If the task is in the blocked state specifically to wait for a
  53791. notification then unblock it now. */
  53792. if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
  53793. 8016546: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
  53794. 801654a: 2b01 cmp r3, #1
  53795. 801654c: d147 bne.n 80165de <xTaskGenericNotifyFromISR+0x19e>
  53796. {
  53797. /* The task should not have been on an event list. */
  53798. configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
  53799. 801654e: 6b3b ldr r3, [r7, #48] @ 0x30
  53800. 8016550: 6a9b ldr r3, [r3, #40] @ 0x28
  53801. 8016552: 2b00 cmp r3, #0
  53802. 8016554: d00b beq.n 801656e <xTaskGenericNotifyFromISR+0x12e>
  53803. __asm volatile
  53804. 8016556: f04f 0350 mov.w r3, #80 @ 0x50
  53805. 801655a: f383 8811 msr BASEPRI, r3
  53806. 801655e: f3bf 8f6f isb sy
  53807. 8016562: f3bf 8f4f dsb sy
  53808. 8016566: 617b str r3, [r7, #20]
  53809. }
  53810. 8016568: bf00 nop
  53811. 801656a: bf00 nop
  53812. 801656c: e7fd b.n 801656a <xTaskGenericNotifyFromISR+0x12a>
  53813. if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
  53814. 801656e: 4b21 ldr r3, [pc, #132] @ (80165f4 <xTaskGenericNotifyFromISR+0x1b4>)
  53815. 8016570: 681b ldr r3, [r3, #0]
  53816. 8016572: 2b00 cmp r3, #0
  53817. 8016574: d11d bne.n 80165b2 <xTaskGenericNotifyFromISR+0x172>
  53818. {
  53819. ( void ) uxListRemove( &( pxTCB->xStateListItem ) );
  53820. 8016576: 6b3b ldr r3, [r7, #48] @ 0x30
  53821. 8016578: 3304 adds r3, #4
  53822. 801657a: 4618 mov r0, r3
  53823. 801657c: f7fd fc92 bl 8013ea4 <uxListRemove>
  53824. prvAddTaskToReadyList( pxTCB );
  53825. 8016580: 6b3b ldr r3, [r7, #48] @ 0x30
  53826. 8016582: 6ada ldr r2, [r3, #44] @ 0x2c
  53827. 8016584: 4b1c ldr r3, [pc, #112] @ (80165f8 <xTaskGenericNotifyFromISR+0x1b8>)
  53828. 8016586: 681b ldr r3, [r3, #0]
  53829. 8016588: 429a cmp r2, r3
  53830. 801658a: d903 bls.n 8016594 <xTaskGenericNotifyFromISR+0x154>
  53831. 801658c: 6b3b ldr r3, [r7, #48] @ 0x30
  53832. 801658e: 6adb ldr r3, [r3, #44] @ 0x2c
  53833. 8016590: 4a19 ldr r2, [pc, #100] @ (80165f8 <xTaskGenericNotifyFromISR+0x1b8>)
  53834. 8016592: 6013 str r3, [r2, #0]
  53835. 8016594: 6b3b ldr r3, [r7, #48] @ 0x30
  53836. 8016596: 6ada ldr r2, [r3, #44] @ 0x2c
  53837. 8016598: 4613 mov r3, r2
  53838. 801659a: 009b lsls r3, r3, #2
  53839. 801659c: 4413 add r3, r2
  53840. 801659e: 009b lsls r3, r3, #2
  53841. 80165a0: 4a16 ldr r2, [pc, #88] @ (80165fc <xTaskGenericNotifyFromISR+0x1bc>)
  53842. 80165a2: 441a add r2, r3
  53843. 80165a4: 6b3b ldr r3, [r7, #48] @ 0x30
  53844. 80165a6: 3304 adds r3, #4
  53845. 80165a8: 4619 mov r1, r3
  53846. 80165aa: 4610 mov r0, r2
  53847. 80165ac: f7fd fc1d bl 8013dea <vListInsertEnd>
  53848. 80165b0: e005 b.n 80165be <xTaskGenericNotifyFromISR+0x17e>
  53849. }
  53850. else
  53851. {
  53852. /* The delayed and ready lists cannot be accessed, so hold
  53853. this task pending until the scheduler is resumed. */
  53854. vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
  53855. 80165b2: 6b3b ldr r3, [r7, #48] @ 0x30
  53856. 80165b4: 3318 adds r3, #24
  53857. 80165b6: 4619 mov r1, r3
  53858. 80165b8: 4811 ldr r0, [pc, #68] @ (8016600 <xTaskGenericNotifyFromISR+0x1c0>)
  53859. 80165ba: f7fd fc16 bl 8013dea <vListInsertEnd>
  53860. }
  53861. if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
  53862. 80165be: 6b3b ldr r3, [r7, #48] @ 0x30
  53863. 80165c0: 6ada ldr r2, [r3, #44] @ 0x2c
  53864. 80165c2: 4b10 ldr r3, [pc, #64] @ (8016604 <xTaskGenericNotifyFromISR+0x1c4>)
  53865. 80165c4: 681b ldr r3, [r3, #0]
  53866. 80165c6: 6adb ldr r3, [r3, #44] @ 0x2c
  53867. 80165c8: 429a cmp r2, r3
  53868. 80165ca: d908 bls.n 80165de <xTaskGenericNotifyFromISR+0x19e>
  53869. {
  53870. /* The notified task has a priority above the currently
  53871. executing task so a yield is required. */
  53872. if( pxHigherPriorityTaskWoken != NULL )
  53873. 80165cc: 6c3b ldr r3, [r7, #64] @ 0x40
  53874. 80165ce: 2b00 cmp r3, #0
  53875. 80165d0: d002 beq.n 80165d8 <xTaskGenericNotifyFromISR+0x198>
  53876. {
  53877. *pxHigherPriorityTaskWoken = pdTRUE;
  53878. 80165d2: 6c3b ldr r3, [r7, #64] @ 0x40
  53879. 80165d4: 2201 movs r2, #1
  53880. 80165d6: 601a str r2, [r3, #0]
  53881. }
  53882. /* Mark that a yield is pending in case the user is not
  53883. using the "xHigherPriorityTaskWoken" parameter to an ISR
  53884. safe FreeRTOS function. */
  53885. xYieldPending = pdTRUE;
  53886. 80165d8: 4b0b ldr r3, [pc, #44] @ (8016608 <xTaskGenericNotifyFromISR+0x1c8>)
  53887. 80165da: 2201 movs r2, #1
  53888. 80165dc: 601a str r2, [r3, #0]
  53889. 80165de: 6afb ldr r3, [r7, #44] @ 0x2c
  53890. 80165e0: 613b str r3, [r7, #16]
  53891. __asm volatile
  53892. 80165e2: 693b ldr r3, [r7, #16]
  53893. 80165e4: f383 8811 msr BASEPRI, r3
  53894. }
  53895. 80165e8: bf00 nop
  53896. }
  53897. }
  53898. }
  53899. portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
  53900. return xReturn;
  53901. 80165ea: 6b7b ldr r3, [r7, #52] @ 0x34
  53902. }
  53903. 80165ec: 4618 mov r0, r3
  53904. 80165ee: 3738 adds r7, #56 @ 0x38
  53905. 80165f0: 46bd mov sp, r7
  53906. 80165f2: bd80 pop {r7, pc}
  53907. 80165f4: 24003050 .word 0x24003050
  53908. 80165f8: 24003030 .word 0x24003030
  53909. 80165fc: 24002b58 .word 0x24002b58
  53910. 8016600: 24002fe8 .word 0x24002fe8
  53911. 8016604: 24002b54 .word 0x24002b54
  53912. 8016608: 2400303c .word 0x2400303c
  53913. 0801660c <xTaskNotifyStateClear>:
  53914. /*-----------------------------------------------------------*/
  53915. #if( configUSE_TASK_NOTIFICATIONS == 1 )
  53916. BaseType_t xTaskNotifyStateClear( TaskHandle_t xTask )
  53917. {
  53918. 801660c: b580 push {r7, lr}
  53919. 801660e: b084 sub sp, #16
  53920. 8016610: af00 add r7, sp, #0
  53921. 8016612: 6078 str r0, [r7, #4]
  53922. TCB_t *pxTCB;
  53923. BaseType_t xReturn;
  53924. /* If null is passed in here then it is the calling task that is having
  53925. its notification state cleared. */
  53926. pxTCB = prvGetTCBFromHandle( xTask );
  53927. 8016614: 687b ldr r3, [r7, #4]
  53928. 8016616: 2b00 cmp r3, #0
  53929. 8016618: d102 bne.n 8016620 <xTaskNotifyStateClear+0x14>
  53930. 801661a: 4b0e ldr r3, [pc, #56] @ (8016654 <xTaskNotifyStateClear+0x48>)
  53931. 801661c: 681b ldr r3, [r3, #0]
  53932. 801661e: e000 b.n 8016622 <xTaskNotifyStateClear+0x16>
  53933. 8016620: 687b ldr r3, [r7, #4]
  53934. 8016622: 60bb str r3, [r7, #8]
  53935. taskENTER_CRITICAL();
  53936. 8016624: f000 fde0 bl 80171e8 <vPortEnterCritical>
  53937. {
  53938. if( pxTCB->ucNotifyState == taskNOTIFICATION_RECEIVED )
  53939. 8016628: 68bb ldr r3, [r7, #8]
  53940. 801662a: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
  53941. 801662e: b2db uxtb r3, r3
  53942. 8016630: 2b02 cmp r3, #2
  53943. 8016632: d106 bne.n 8016642 <xTaskNotifyStateClear+0x36>
  53944. {
  53945. pxTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
  53946. 8016634: 68bb ldr r3, [r7, #8]
  53947. 8016636: 2200 movs r2, #0
  53948. 8016638: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
  53949. xReturn = pdPASS;
  53950. 801663c: 2301 movs r3, #1
  53951. 801663e: 60fb str r3, [r7, #12]
  53952. 8016640: e001 b.n 8016646 <xTaskNotifyStateClear+0x3a>
  53953. }
  53954. else
  53955. {
  53956. xReturn = pdFAIL;
  53957. 8016642: 2300 movs r3, #0
  53958. 8016644: 60fb str r3, [r7, #12]
  53959. }
  53960. }
  53961. taskEXIT_CRITICAL();
  53962. 8016646: f000 fe01 bl 801724c <vPortExitCritical>
  53963. return xReturn;
  53964. 801664a: 68fb ldr r3, [r7, #12]
  53965. }
  53966. 801664c: 4618 mov r0, r3
  53967. 801664e: 3710 adds r7, #16
  53968. 8016650: 46bd mov sp, r7
  53969. 8016652: bd80 pop {r7, pc}
  53970. 8016654: 24002b54 .word 0x24002b54
  53971. 08016658 <prvAddCurrentTaskToDelayedList>:
  53972. #endif
  53973. /*-----------------------------------------------------------*/
  53974. static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
  53975. {
  53976. 8016658: b580 push {r7, lr}
  53977. 801665a: b084 sub sp, #16
  53978. 801665c: af00 add r7, sp, #0
  53979. 801665e: 6078 str r0, [r7, #4]
  53980. 8016660: 6039 str r1, [r7, #0]
  53981. TickType_t xTimeToWake;
  53982. const TickType_t xConstTickCount = xTickCount;
  53983. 8016662: 4b21 ldr r3, [pc, #132] @ (80166e8 <prvAddCurrentTaskToDelayedList+0x90>)
  53984. 8016664: 681b ldr r3, [r3, #0]
  53985. 8016666: 60fb str r3, [r7, #12]
  53986. }
  53987. #endif
  53988. /* Remove the task from the ready list before adding it to the blocked list
  53989. as the same list item is used for both lists. */
  53990. if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
  53991. 8016668: 4b20 ldr r3, [pc, #128] @ (80166ec <prvAddCurrentTaskToDelayedList+0x94>)
  53992. 801666a: 681b ldr r3, [r3, #0]
  53993. 801666c: 3304 adds r3, #4
  53994. 801666e: 4618 mov r0, r3
  53995. 8016670: f7fd fc18 bl 8013ea4 <uxListRemove>
  53996. mtCOVERAGE_TEST_MARKER();
  53997. }
  53998. #if ( INCLUDE_vTaskSuspend == 1 )
  53999. {
  54000. if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
  54001. 8016674: 687b ldr r3, [r7, #4]
  54002. 8016676: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  54003. 801667a: d10a bne.n 8016692 <prvAddCurrentTaskToDelayedList+0x3a>
  54004. 801667c: 683b ldr r3, [r7, #0]
  54005. 801667e: 2b00 cmp r3, #0
  54006. 8016680: d007 beq.n 8016692 <prvAddCurrentTaskToDelayedList+0x3a>
  54007. {
  54008. /* Add the task to the suspended task list instead of a delayed task
  54009. list to ensure it is not woken by a timing event. It will block
  54010. indefinitely. */
  54011. vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54012. 8016682: 4b1a ldr r3, [pc, #104] @ (80166ec <prvAddCurrentTaskToDelayedList+0x94>)
  54013. 8016684: 681b ldr r3, [r3, #0]
  54014. 8016686: 3304 adds r3, #4
  54015. 8016688: 4619 mov r1, r3
  54016. 801668a: 4819 ldr r0, [pc, #100] @ (80166f0 <prvAddCurrentTaskToDelayedList+0x98>)
  54017. 801668c: f7fd fbad bl 8013dea <vListInsertEnd>
  54018. /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
  54019. ( void ) xCanBlockIndefinitely;
  54020. }
  54021. #endif /* INCLUDE_vTaskSuspend */
  54022. }
  54023. 8016690: e026 b.n 80166e0 <prvAddCurrentTaskToDelayedList+0x88>
  54024. xTimeToWake = xConstTickCount + xTicksToWait;
  54025. 8016692: 68fa ldr r2, [r7, #12]
  54026. 8016694: 687b ldr r3, [r7, #4]
  54027. 8016696: 4413 add r3, r2
  54028. 8016698: 60bb str r3, [r7, #8]
  54029. listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
  54030. 801669a: 4b14 ldr r3, [pc, #80] @ (80166ec <prvAddCurrentTaskToDelayedList+0x94>)
  54031. 801669c: 681b ldr r3, [r3, #0]
  54032. 801669e: 68ba ldr r2, [r7, #8]
  54033. 80166a0: 605a str r2, [r3, #4]
  54034. if( xTimeToWake < xConstTickCount )
  54035. 80166a2: 68ba ldr r2, [r7, #8]
  54036. 80166a4: 68fb ldr r3, [r7, #12]
  54037. 80166a6: 429a cmp r2, r3
  54038. 80166a8: d209 bcs.n 80166be <prvAddCurrentTaskToDelayedList+0x66>
  54039. vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54040. 80166aa: 4b12 ldr r3, [pc, #72] @ (80166f4 <prvAddCurrentTaskToDelayedList+0x9c>)
  54041. 80166ac: 681a ldr r2, [r3, #0]
  54042. 80166ae: 4b0f ldr r3, [pc, #60] @ (80166ec <prvAddCurrentTaskToDelayedList+0x94>)
  54043. 80166b0: 681b ldr r3, [r3, #0]
  54044. 80166b2: 3304 adds r3, #4
  54045. 80166b4: 4619 mov r1, r3
  54046. 80166b6: 4610 mov r0, r2
  54047. 80166b8: f7fd fbbb bl 8013e32 <vListInsert>
  54048. }
  54049. 80166bc: e010 b.n 80166e0 <prvAddCurrentTaskToDelayedList+0x88>
  54050. vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
  54051. 80166be: 4b0e ldr r3, [pc, #56] @ (80166f8 <prvAddCurrentTaskToDelayedList+0xa0>)
  54052. 80166c0: 681a ldr r2, [r3, #0]
  54053. 80166c2: 4b0a ldr r3, [pc, #40] @ (80166ec <prvAddCurrentTaskToDelayedList+0x94>)
  54054. 80166c4: 681b ldr r3, [r3, #0]
  54055. 80166c6: 3304 adds r3, #4
  54056. 80166c8: 4619 mov r1, r3
  54057. 80166ca: 4610 mov r0, r2
  54058. 80166cc: f7fd fbb1 bl 8013e32 <vListInsert>
  54059. if( xTimeToWake < xNextTaskUnblockTime )
  54060. 80166d0: 4b0a ldr r3, [pc, #40] @ (80166fc <prvAddCurrentTaskToDelayedList+0xa4>)
  54061. 80166d2: 681b ldr r3, [r3, #0]
  54062. 80166d4: 68ba ldr r2, [r7, #8]
  54063. 80166d6: 429a cmp r2, r3
  54064. 80166d8: d202 bcs.n 80166e0 <prvAddCurrentTaskToDelayedList+0x88>
  54065. xNextTaskUnblockTime = xTimeToWake;
  54066. 80166da: 4a08 ldr r2, [pc, #32] @ (80166fc <prvAddCurrentTaskToDelayedList+0xa4>)
  54067. 80166dc: 68bb ldr r3, [r7, #8]
  54068. 80166de: 6013 str r3, [r2, #0]
  54069. }
  54070. 80166e0: bf00 nop
  54071. 80166e2: 3710 adds r7, #16
  54072. 80166e4: 46bd mov sp, r7
  54073. 80166e6: bd80 pop {r7, pc}
  54074. 80166e8: 2400302c .word 0x2400302c
  54075. 80166ec: 24002b54 .word 0x24002b54
  54076. 80166f0: 24003014 .word 0x24003014
  54077. 80166f4: 24002fe4 .word 0x24002fe4
  54078. 80166f8: 24002fe0 .word 0x24002fe0
  54079. 80166fc: 24003048 .word 0x24003048
  54080. 08016700 <xTimerCreateTimerTask>:
  54081. TimerCallbackFunction_t pxCallbackFunction,
  54082. Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
  54083. /*-----------------------------------------------------------*/
  54084. BaseType_t xTimerCreateTimerTask( void )
  54085. {
  54086. 8016700: b580 push {r7, lr}
  54087. 8016702: b08a sub sp, #40 @ 0x28
  54088. 8016704: af04 add r7, sp, #16
  54089. BaseType_t xReturn = pdFAIL;
  54090. 8016706: 2300 movs r3, #0
  54091. 8016708: 617b str r3, [r7, #20]
  54092. /* This function is called when the scheduler is started if
  54093. configUSE_TIMERS is set to 1. Check that the infrastructure used by the
  54094. timer service task has been created/initialised. If timers have already
  54095. been created then the initialisation will already have been performed. */
  54096. prvCheckForValidListAndQueue();
  54097. 801670a: f000 fbb1 bl 8016e70 <prvCheckForValidListAndQueue>
  54098. if( xTimerQueue != NULL )
  54099. 801670e: 4b1d ldr r3, [pc, #116] @ (8016784 <xTimerCreateTimerTask+0x84>)
  54100. 8016710: 681b ldr r3, [r3, #0]
  54101. 8016712: 2b00 cmp r3, #0
  54102. 8016714: d021 beq.n 801675a <xTimerCreateTimerTask+0x5a>
  54103. {
  54104. #if( configSUPPORT_STATIC_ALLOCATION == 1 )
  54105. {
  54106. StaticTask_t *pxTimerTaskTCBBuffer = NULL;
  54107. 8016716: 2300 movs r3, #0
  54108. 8016718: 60fb str r3, [r7, #12]
  54109. StackType_t *pxTimerTaskStackBuffer = NULL;
  54110. 801671a: 2300 movs r3, #0
  54111. 801671c: 60bb str r3, [r7, #8]
  54112. uint32_t ulTimerTaskStackSize;
  54113. vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
  54114. 801671e: 1d3a adds r2, r7, #4
  54115. 8016720: f107 0108 add.w r1, r7, #8
  54116. 8016724: f107 030c add.w r3, r7, #12
  54117. 8016728: 4618 mov r0, r3
  54118. 801672a: f7fd fb17 bl 8013d5c <vApplicationGetTimerTaskMemory>
  54119. xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
  54120. 801672e: 6879 ldr r1, [r7, #4]
  54121. 8016730: 68bb ldr r3, [r7, #8]
  54122. 8016732: 68fa ldr r2, [r7, #12]
  54123. 8016734: 9202 str r2, [sp, #8]
  54124. 8016736: 9301 str r3, [sp, #4]
  54125. 8016738: 2302 movs r3, #2
  54126. 801673a: 9300 str r3, [sp, #0]
  54127. 801673c: 2300 movs r3, #0
  54128. 801673e: 460a mov r2, r1
  54129. 8016740: 4911 ldr r1, [pc, #68] @ (8016788 <xTimerCreateTimerTask+0x88>)
  54130. 8016742: 4812 ldr r0, [pc, #72] @ (801678c <xTimerCreateTimerTask+0x8c>)
  54131. 8016744: f7fe fd2f bl 80151a6 <xTaskCreateStatic>
  54132. 8016748: 4603 mov r3, r0
  54133. 801674a: 4a11 ldr r2, [pc, #68] @ (8016790 <xTimerCreateTimerTask+0x90>)
  54134. 801674c: 6013 str r3, [r2, #0]
  54135. NULL,
  54136. ( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
  54137. pxTimerTaskStackBuffer,
  54138. pxTimerTaskTCBBuffer );
  54139. if( xTimerTaskHandle != NULL )
  54140. 801674e: 4b10 ldr r3, [pc, #64] @ (8016790 <xTimerCreateTimerTask+0x90>)
  54141. 8016750: 681b ldr r3, [r3, #0]
  54142. 8016752: 2b00 cmp r3, #0
  54143. 8016754: d001 beq.n 801675a <xTimerCreateTimerTask+0x5a>
  54144. {
  54145. xReturn = pdPASS;
  54146. 8016756: 2301 movs r3, #1
  54147. 8016758: 617b str r3, [r7, #20]
  54148. else
  54149. {
  54150. mtCOVERAGE_TEST_MARKER();
  54151. }
  54152. configASSERT( xReturn );
  54153. 801675a: 697b ldr r3, [r7, #20]
  54154. 801675c: 2b00 cmp r3, #0
  54155. 801675e: d10b bne.n 8016778 <xTimerCreateTimerTask+0x78>
  54156. __asm volatile
  54157. 8016760: f04f 0350 mov.w r3, #80 @ 0x50
  54158. 8016764: f383 8811 msr BASEPRI, r3
  54159. 8016768: f3bf 8f6f isb sy
  54160. 801676c: f3bf 8f4f dsb sy
  54161. 8016770: 613b str r3, [r7, #16]
  54162. }
  54163. 8016772: bf00 nop
  54164. 8016774: bf00 nop
  54165. 8016776: e7fd b.n 8016774 <xTimerCreateTimerTask+0x74>
  54166. return xReturn;
  54167. 8016778: 697b ldr r3, [r7, #20]
  54168. }
  54169. 801677a: 4618 mov r0, r3
  54170. 801677c: 3718 adds r7, #24
  54171. 801677e: 46bd mov sp, r7
  54172. 8016780: bd80 pop {r7, pc}
  54173. 8016782: bf00 nop
  54174. 8016784: 24003084 .word 0x24003084
  54175. 8016788: 0801a214 .word 0x0801a214
  54176. 801678c: 08016a09 .word 0x08016a09
  54177. 8016790: 24003088 .word 0x24003088
  54178. 08016794 <xTimerCreate>:
  54179. TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
  54180. const TickType_t xTimerPeriodInTicks,
  54181. const UBaseType_t uxAutoReload,
  54182. void * const pvTimerID,
  54183. TimerCallbackFunction_t pxCallbackFunction )
  54184. {
  54185. 8016794: b580 push {r7, lr}
  54186. 8016796: b088 sub sp, #32
  54187. 8016798: af02 add r7, sp, #8
  54188. 801679a: 60f8 str r0, [r7, #12]
  54189. 801679c: 60b9 str r1, [r7, #8]
  54190. 801679e: 607a str r2, [r7, #4]
  54191. 80167a0: 603b str r3, [r7, #0]
  54192. Timer_t *pxNewTimer;
  54193. pxNewTimer = ( Timer_t * ) pvPortMalloc( sizeof( Timer_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of Timer_t is always a pointer to the timer's mame. */
  54194. 80167a2: 202c movs r0, #44 @ 0x2c
  54195. 80167a4: f000 fe42 bl 801742c <pvPortMalloc>
  54196. 80167a8: 6178 str r0, [r7, #20]
  54197. if( pxNewTimer != NULL )
  54198. 80167aa: 697b ldr r3, [r7, #20]
  54199. 80167ac: 2b00 cmp r3, #0
  54200. 80167ae: d00d beq.n 80167cc <xTimerCreate+0x38>
  54201. {
  54202. /* Status is thus far zero as the timer is not created statically
  54203. and has not been started. The auto-reload bit may get set in
  54204. prvInitialiseNewTimer. */
  54205. pxNewTimer->ucStatus = 0x00;
  54206. 80167b0: 697b ldr r3, [r7, #20]
  54207. 80167b2: 2200 movs r2, #0
  54208. 80167b4: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54209. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54210. 80167b8: 697b ldr r3, [r7, #20]
  54211. 80167ba: 9301 str r3, [sp, #4]
  54212. 80167bc: 6a3b ldr r3, [r7, #32]
  54213. 80167be: 9300 str r3, [sp, #0]
  54214. 80167c0: 683b ldr r3, [r7, #0]
  54215. 80167c2: 687a ldr r2, [r7, #4]
  54216. 80167c4: 68b9 ldr r1, [r7, #8]
  54217. 80167c6: 68f8 ldr r0, [r7, #12]
  54218. 80167c8: f000 f845 bl 8016856 <prvInitialiseNewTimer>
  54219. }
  54220. return pxNewTimer;
  54221. 80167cc: 697b ldr r3, [r7, #20]
  54222. }
  54223. 80167ce: 4618 mov r0, r3
  54224. 80167d0: 3718 adds r7, #24
  54225. 80167d2: 46bd mov sp, r7
  54226. 80167d4: bd80 pop {r7, pc}
  54227. 080167d6 <xTimerCreateStatic>:
  54228. const TickType_t xTimerPeriodInTicks,
  54229. const UBaseType_t uxAutoReload,
  54230. void * const pvTimerID,
  54231. TimerCallbackFunction_t pxCallbackFunction,
  54232. StaticTimer_t *pxTimerBuffer )
  54233. {
  54234. 80167d6: b580 push {r7, lr}
  54235. 80167d8: b08a sub sp, #40 @ 0x28
  54236. 80167da: af02 add r7, sp, #8
  54237. 80167dc: 60f8 str r0, [r7, #12]
  54238. 80167de: 60b9 str r1, [r7, #8]
  54239. 80167e0: 607a str r2, [r7, #4]
  54240. 80167e2: 603b str r3, [r7, #0]
  54241. #if( configASSERT_DEFINED == 1 )
  54242. {
  54243. /* Sanity check that the size of the structure used to declare a
  54244. variable of type StaticTimer_t equals the size of the real timer
  54245. structure. */
  54246. volatile size_t xSize = sizeof( StaticTimer_t );
  54247. 80167e4: 232c movs r3, #44 @ 0x2c
  54248. 80167e6: 613b str r3, [r7, #16]
  54249. configASSERT( xSize == sizeof( Timer_t ) );
  54250. 80167e8: 693b ldr r3, [r7, #16]
  54251. 80167ea: 2b2c cmp r3, #44 @ 0x2c
  54252. 80167ec: d00b beq.n 8016806 <xTimerCreateStatic+0x30>
  54253. __asm volatile
  54254. 80167ee: f04f 0350 mov.w r3, #80 @ 0x50
  54255. 80167f2: f383 8811 msr BASEPRI, r3
  54256. 80167f6: f3bf 8f6f isb sy
  54257. 80167fa: f3bf 8f4f dsb sy
  54258. 80167fe: 61bb str r3, [r7, #24]
  54259. }
  54260. 8016800: bf00 nop
  54261. 8016802: bf00 nop
  54262. 8016804: e7fd b.n 8016802 <xTimerCreateStatic+0x2c>
  54263. ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
  54264. 8016806: 693b ldr r3, [r7, #16]
  54265. }
  54266. #endif /* configASSERT_DEFINED */
  54267. /* A pointer to a StaticTimer_t structure MUST be provided, use it. */
  54268. configASSERT( pxTimerBuffer );
  54269. 8016808: 6afb ldr r3, [r7, #44] @ 0x2c
  54270. 801680a: 2b00 cmp r3, #0
  54271. 801680c: d10b bne.n 8016826 <xTimerCreateStatic+0x50>
  54272. __asm volatile
  54273. 801680e: f04f 0350 mov.w r3, #80 @ 0x50
  54274. 8016812: f383 8811 msr BASEPRI, r3
  54275. 8016816: f3bf 8f6f isb sy
  54276. 801681a: f3bf 8f4f dsb sy
  54277. 801681e: 617b str r3, [r7, #20]
  54278. }
  54279. 8016820: bf00 nop
  54280. 8016822: bf00 nop
  54281. 8016824: e7fd b.n 8016822 <xTimerCreateStatic+0x4c>
  54282. pxNewTimer = ( Timer_t * ) pxTimerBuffer; /*lint !e740 !e9087 StaticTimer_t is a pointer to a Timer_t, so guaranteed to be aligned and sized correctly (checked by an assert()), so this is safe. */
  54283. 8016826: 6afb ldr r3, [r7, #44] @ 0x2c
  54284. 8016828: 61fb str r3, [r7, #28]
  54285. if( pxNewTimer != NULL )
  54286. 801682a: 69fb ldr r3, [r7, #28]
  54287. 801682c: 2b00 cmp r3, #0
  54288. 801682e: d00d beq.n 801684c <xTimerCreateStatic+0x76>
  54289. {
  54290. /* Timers can be created statically or dynamically so note this
  54291. timer was created statically in case it is later deleted. The
  54292. auto-reload bit may get set in prvInitialiseNewTimer(). */
  54293. pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
  54294. 8016830: 69fb ldr r3, [r7, #28]
  54295. 8016832: 2202 movs r2, #2
  54296. 8016834: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54297. prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
  54298. 8016838: 69fb ldr r3, [r7, #28]
  54299. 801683a: 9301 str r3, [sp, #4]
  54300. 801683c: 6abb ldr r3, [r7, #40] @ 0x28
  54301. 801683e: 9300 str r3, [sp, #0]
  54302. 8016840: 683b ldr r3, [r7, #0]
  54303. 8016842: 687a ldr r2, [r7, #4]
  54304. 8016844: 68b9 ldr r1, [r7, #8]
  54305. 8016846: 68f8 ldr r0, [r7, #12]
  54306. 8016848: f000 f805 bl 8016856 <prvInitialiseNewTimer>
  54307. }
  54308. return pxNewTimer;
  54309. 801684c: 69fb ldr r3, [r7, #28]
  54310. }
  54311. 801684e: 4618 mov r0, r3
  54312. 8016850: 3720 adds r7, #32
  54313. 8016852: 46bd mov sp, r7
  54314. 8016854: bd80 pop {r7, pc}
  54315. 08016856 <prvInitialiseNewTimer>:
  54316. const TickType_t xTimerPeriodInTicks,
  54317. const UBaseType_t uxAutoReload,
  54318. void * const pvTimerID,
  54319. TimerCallbackFunction_t pxCallbackFunction,
  54320. Timer_t *pxNewTimer )
  54321. {
  54322. 8016856: b580 push {r7, lr}
  54323. 8016858: b086 sub sp, #24
  54324. 801685a: af00 add r7, sp, #0
  54325. 801685c: 60f8 str r0, [r7, #12]
  54326. 801685e: 60b9 str r1, [r7, #8]
  54327. 8016860: 607a str r2, [r7, #4]
  54328. 8016862: 603b str r3, [r7, #0]
  54329. /* 0 is not a valid value for xTimerPeriodInTicks. */
  54330. configASSERT( ( xTimerPeriodInTicks > 0 ) );
  54331. 8016864: 68bb ldr r3, [r7, #8]
  54332. 8016866: 2b00 cmp r3, #0
  54333. 8016868: d10b bne.n 8016882 <prvInitialiseNewTimer+0x2c>
  54334. __asm volatile
  54335. 801686a: f04f 0350 mov.w r3, #80 @ 0x50
  54336. 801686e: f383 8811 msr BASEPRI, r3
  54337. 8016872: f3bf 8f6f isb sy
  54338. 8016876: f3bf 8f4f dsb sy
  54339. 801687a: 617b str r3, [r7, #20]
  54340. }
  54341. 801687c: bf00 nop
  54342. 801687e: bf00 nop
  54343. 8016880: e7fd b.n 801687e <prvInitialiseNewTimer+0x28>
  54344. if( pxNewTimer != NULL )
  54345. 8016882: 6a7b ldr r3, [r7, #36] @ 0x24
  54346. 8016884: 2b00 cmp r3, #0
  54347. 8016886: d01e beq.n 80168c6 <prvInitialiseNewTimer+0x70>
  54348. {
  54349. /* Ensure the infrastructure used by the timer service task has been
  54350. created/initialised. */
  54351. prvCheckForValidListAndQueue();
  54352. 8016888: f000 faf2 bl 8016e70 <prvCheckForValidListAndQueue>
  54353. /* Initialise the timer structure members using the function
  54354. parameters. */
  54355. pxNewTimer->pcTimerName = pcTimerName;
  54356. 801688c: 6a7b ldr r3, [r7, #36] @ 0x24
  54357. 801688e: 68fa ldr r2, [r7, #12]
  54358. 8016890: 601a str r2, [r3, #0]
  54359. pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
  54360. 8016892: 6a7b ldr r3, [r7, #36] @ 0x24
  54361. 8016894: 68ba ldr r2, [r7, #8]
  54362. 8016896: 619a str r2, [r3, #24]
  54363. pxNewTimer->pvTimerID = pvTimerID;
  54364. 8016898: 6a7b ldr r3, [r7, #36] @ 0x24
  54365. 801689a: 683a ldr r2, [r7, #0]
  54366. 801689c: 61da str r2, [r3, #28]
  54367. pxNewTimer->pxCallbackFunction = pxCallbackFunction;
  54368. 801689e: 6a7b ldr r3, [r7, #36] @ 0x24
  54369. 80168a0: 6a3a ldr r2, [r7, #32]
  54370. 80168a2: 621a str r2, [r3, #32]
  54371. vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
  54372. 80168a4: 6a7b ldr r3, [r7, #36] @ 0x24
  54373. 80168a6: 3304 adds r3, #4
  54374. 80168a8: 4618 mov r0, r3
  54375. 80168aa: f7fd fa91 bl 8013dd0 <vListInitialiseItem>
  54376. if( uxAutoReload != pdFALSE )
  54377. 80168ae: 687b ldr r3, [r7, #4]
  54378. 80168b0: 2b00 cmp r3, #0
  54379. 80168b2: d008 beq.n 80168c6 <prvInitialiseNewTimer+0x70>
  54380. {
  54381. pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
  54382. 80168b4: 6a7b ldr r3, [r7, #36] @ 0x24
  54383. 80168b6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54384. 80168ba: f043 0304 orr.w r3, r3, #4
  54385. 80168be: b2da uxtb r2, r3
  54386. 80168c0: 6a7b ldr r3, [r7, #36] @ 0x24
  54387. 80168c2: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54388. }
  54389. traceTIMER_CREATE( pxNewTimer );
  54390. }
  54391. }
  54392. 80168c6: bf00 nop
  54393. 80168c8: 3718 adds r7, #24
  54394. 80168ca: 46bd mov sp, r7
  54395. 80168cc: bd80 pop {r7, pc}
  54396. ...
  54397. 080168d0 <xTimerGenericCommand>:
  54398. /*-----------------------------------------------------------*/
  54399. BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
  54400. {
  54401. 80168d0: b580 push {r7, lr}
  54402. 80168d2: b08a sub sp, #40 @ 0x28
  54403. 80168d4: af00 add r7, sp, #0
  54404. 80168d6: 60f8 str r0, [r7, #12]
  54405. 80168d8: 60b9 str r1, [r7, #8]
  54406. 80168da: 607a str r2, [r7, #4]
  54407. 80168dc: 603b str r3, [r7, #0]
  54408. BaseType_t xReturn = pdFAIL;
  54409. 80168de: 2300 movs r3, #0
  54410. 80168e0: 627b str r3, [r7, #36] @ 0x24
  54411. DaemonTaskMessage_t xMessage;
  54412. configASSERT( xTimer );
  54413. 80168e2: 68fb ldr r3, [r7, #12]
  54414. 80168e4: 2b00 cmp r3, #0
  54415. 80168e6: d10b bne.n 8016900 <xTimerGenericCommand+0x30>
  54416. __asm volatile
  54417. 80168e8: f04f 0350 mov.w r3, #80 @ 0x50
  54418. 80168ec: f383 8811 msr BASEPRI, r3
  54419. 80168f0: f3bf 8f6f isb sy
  54420. 80168f4: f3bf 8f4f dsb sy
  54421. 80168f8: 623b str r3, [r7, #32]
  54422. }
  54423. 80168fa: bf00 nop
  54424. 80168fc: bf00 nop
  54425. 80168fe: e7fd b.n 80168fc <xTimerGenericCommand+0x2c>
  54426. /* Send a message to the timer service task to perform a particular action
  54427. on a particular timer definition. */
  54428. if( xTimerQueue != NULL )
  54429. 8016900: 4b19 ldr r3, [pc, #100] @ (8016968 <xTimerGenericCommand+0x98>)
  54430. 8016902: 681b ldr r3, [r3, #0]
  54431. 8016904: 2b00 cmp r3, #0
  54432. 8016906: d02a beq.n 801695e <xTimerGenericCommand+0x8e>
  54433. {
  54434. /* Send a command to the timer service task to start the xTimer timer. */
  54435. xMessage.xMessageID = xCommandID;
  54436. 8016908: 68bb ldr r3, [r7, #8]
  54437. 801690a: 613b str r3, [r7, #16]
  54438. xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
  54439. 801690c: 687b ldr r3, [r7, #4]
  54440. 801690e: 617b str r3, [r7, #20]
  54441. xMessage.u.xTimerParameters.pxTimer = xTimer;
  54442. 8016910: 68fb ldr r3, [r7, #12]
  54443. 8016912: 61bb str r3, [r7, #24]
  54444. if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
  54445. 8016914: 68bb ldr r3, [r7, #8]
  54446. 8016916: 2b05 cmp r3, #5
  54447. 8016918: dc18 bgt.n 801694c <xTimerGenericCommand+0x7c>
  54448. {
  54449. if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
  54450. 801691a: f7ff fae1 bl 8015ee0 <xTaskGetSchedulerState>
  54451. 801691e: 4603 mov r3, r0
  54452. 8016920: 2b02 cmp r3, #2
  54453. 8016922: d109 bne.n 8016938 <xTimerGenericCommand+0x68>
  54454. {
  54455. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
  54456. 8016924: 4b10 ldr r3, [pc, #64] @ (8016968 <xTimerGenericCommand+0x98>)
  54457. 8016926: 6818 ldr r0, [r3, #0]
  54458. 8016928: f107 0110 add.w r1, r7, #16
  54459. 801692c: 2300 movs r3, #0
  54460. 801692e: 6b3a ldr r2, [r7, #48] @ 0x30
  54461. 8016930: f7fd fce0 bl 80142f4 <xQueueGenericSend>
  54462. 8016934: 6278 str r0, [r7, #36] @ 0x24
  54463. 8016936: e012 b.n 801695e <xTimerGenericCommand+0x8e>
  54464. }
  54465. else
  54466. {
  54467. xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
  54468. 8016938: 4b0b ldr r3, [pc, #44] @ (8016968 <xTimerGenericCommand+0x98>)
  54469. 801693a: 6818 ldr r0, [r3, #0]
  54470. 801693c: f107 0110 add.w r1, r7, #16
  54471. 8016940: 2300 movs r3, #0
  54472. 8016942: 2200 movs r2, #0
  54473. 8016944: f7fd fcd6 bl 80142f4 <xQueueGenericSend>
  54474. 8016948: 6278 str r0, [r7, #36] @ 0x24
  54475. 801694a: e008 b.n 801695e <xTimerGenericCommand+0x8e>
  54476. }
  54477. }
  54478. else
  54479. {
  54480. xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
  54481. 801694c: 4b06 ldr r3, [pc, #24] @ (8016968 <xTimerGenericCommand+0x98>)
  54482. 801694e: 6818 ldr r0, [r3, #0]
  54483. 8016950: f107 0110 add.w r1, r7, #16
  54484. 8016954: 2300 movs r3, #0
  54485. 8016956: 683a ldr r2, [r7, #0]
  54486. 8016958: f7fd fdce bl 80144f8 <xQueueGenericSendFromISR>
  54487. 801695c: 6278 str r0, [r7, #36] @ 0x24
  54488. else
  54489. {
  54490. mtCOVERAGE_TEST_MARKER();
  54491. }
  54492. return xReturn;
  54493. 801695e: 6a7b ldr r3, [r7, #36] @ 0x24
  54494. }
  54495. 8016960: 4618 mov r0, r3
  54496. 8016962: 3728 adds r7, #40 @ 0x28
  54497. 8016964: 46bd mov sp, r7
  54498. 8016966: bd80 pop {r7, pc}
  54499. 8016968: 24003084 .word 0x24003084
  54500. 0801696c <prvProcessExpiredTimer>:
  54501. return pxTimer->pcTimerName;
  54502. }
  54503. /*-----------------------------------------------------------*/
  54504. static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
  54505. {
  54506. 801696c: b580 push {r7, lr}
  54507. 801696e: b088 sub sp, #32
  54508. 8016970: af02 add r7, sp, #8
  54509. 8016972: 6078 str r0, [r7, #4]
  54510. 8016974: 6039 str r1, [r7, #0]
  54511. BaseType_t xResult;
  54512. Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  54513. 8016976: 4b23 ldr r3, [pc, #140] @ (8016a04 <prvProcessExpiredTimer+0x98>)
  54514. 8016978: 681b ldr r3, [r3, #0]
  54515. 801697a: 68db ldr r3, [r3, #12]
  54516. 801697c: 68db ldr r3, [r3, #12]
  54517. 801697e: 617b str r3, [r7, #20]
  54518. /* Remove the timer from the list of active timers. A check has already
  54519. been performed to ensure the list is not empty. */
  54520. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  54521. 8016980: 697b ldr r3, [r7, #20]
  54522. 8016982: 3304 adds r3, #4
  54523. 8016984: 4618 mov r0, r3
  54524. 8016986: f7fd fa8d bl 8013ea4 <uxListRemove>
  54525. traceTIMER_EXPIRED( pxTimer );
  54526. /* If the timer is an auto-reload timer then calculate the next
  54527. expiry time and re-insert the timer in the list of active timers. */
  54528. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  54529. 801698a: 697b ldr r3, [r7, #20]
  54530. 801698c: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54531. 8016990: f003 0304 and.w r3, r3, #4
  54532. 8016994: 2b00 cmp r3, #0
  54533. 8016996: d023 beq.n 80169e0 <prvProcessExpiredTimer+0x74>
  54534. {
  54535. /* The timer is inserted into a list using a time relative to anything
  54536. other than the current time. It will therefore be inserted into the
  54537. correct list relative to the time this task thinks it is now. */
  54538. if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
  54539. 8016998: 697b ldr r3, [r7, #20]
  54540. 801699a: 699a ldr r2, [r3, #24]
  54541. 801699c: 687b ldr r3, [r7, #4]
  54542. 801699e: 18d1 adds r1, r2, r3
  54543. 80169a0: 687b ldr r3, [r7, #4]
  54544. 80169a2: 683a ldr r2, [r7, #0]
  54545. 80169a4: 6978 ldr r0, [r7, #20]
  54546. 80169a6: f000 f8d5 bl 8016b54 <prvInsertTimerInActiveList>
  54547. 80169aa: 4603 mov r3, r0
  54548. 80169ac: 2b00 cmp r3, #0
  54549. 80169ae: d020 beq.n 80169f2 <prvProcessExpiredTimer+0x86>
  54550. {
  54551. /* The timer expired before it was added to the active timer
  54552. list. Reload it now. */
  54553. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  54554. 80169b0: 2300 movs r3, #0
  54555. 80169b2: 9300 str r3, [sp, #0]
  54556. 80169b4: 2300 movs r3, #0
  54557. 80169b6: 687a ldr r2, [r7, #4]
  54558. 80169b8: 2100 movs r1, #0
  54559. 80169ba: 6978 ldr r0, [r7, #20]
  54560. 80169bc: f7ff ff88 bl 80168d0 <xTimerGenericCommand>
  54561. 80169c0: 6138 str r0, [r7, #16]
  54562. configASSERT( xResult );
  54563. 80169c2: 693b ldr r3, [r7, #16]
  54564. 80169c4: 2b00 cmp r3, #0
  54565. 80169c6: d114 bne.n 80169f2 <prvProcessExpiredTimer+0x86>
  54566. __asm volatile
  54567. 80169c8: f04f 0350 mov.w r3, #80 @ 0x50
  54568. 80169cc: f383 8811 msr BASEPRI, r3
  54569. 80169d0: f3bf 8f6f isb sy
  54570. 80169d4: f3bf 8f4f dsb sy
  54571. 80169d8: 60fb str r3, [r7, #12]
  54572. }
  54573. 80169da: bf00 nop
  54574. 80169dc: bf00 nop
  54575. 80169de: e7fd b.n 80169dc <prvProcessExpiredTimer+0x70>
  54576. mtCOVERAGE_TEST_MARKER();
  54577. }
  54578. }
  54579. else
  54580. {
  54581. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  54582. 80169e0: 697b ldr r3, [r7, #20]
  54583. 80169e2: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  54584. 80169e6: f023 0301 bic.w r3, r3, #1
  54585. 80169ea: b2da uxtb r2, r3
  54586. 80169ec: 697b ldr r3, [r7, #20]
  54587. 80169ee: f883 2028 strb.w r2, [r3, #40] @ 0x28
  54588. mtCOVERAGE_TEST_MARKER();
  54589. }
  54590. /* Call the timer callback. */
  54591. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  54592. 80169f2: 697b ldr r3, [r7, #20]
  54593. 80169f4: 6a1b ldr r3, [r3, #32]
  54594. 80169f6: 6978 ldr r0, [r7, #20]
  54595. 80169f8: 4798 blx r3
  54596. }
  54597. 80169fa: bf00 nop
  54598. 80169fc: 3718 adds r7, #24
  54599. 80169fe: 46bd mov sp, r7
  54600. 8016a00: bd80 pop {r7, pc}
  54601. 8016a02: bf00 nop
  54602. 8016a04: 2400307c .word 0x2400307c
  54603. 08016a08 <prvTimerTask>:
  54604. /*-----------------------------------------------------------*/
  54605. static portTASK_FUNCTION( prvTimerTask, pvParameters )
  54606. {
  54607. 8016a08: b580 push {r7, lr}
  54608. 8016a0a: b084 sub sp, #16
  54609. 8016a0c: af00 add r7, sp, #0
  54610. 8016a0e: 6078 str r0, [r7, #4]
  54611. for( ;; )
  54612. {
  54613. /* Query the timers list to see if it contains any timers, and if so,
  54614. obtain the time at which the next timer will expire. */
  54615. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  54616. 8016a10: f107 0308 add.w r3, r7, #8
  54617. 8016a14: 4618 mov r0, r3
  54618. 8016a16: f000 f859 bl 8016acc <prvGetNextExpireTime>
  54619. 8016a1a: 60f8 str r0, [r7, #12]
  54620. /* If a timer has expired, process it. Otherwise, block this task
  54621. until either a timer does expire, or a command is received. */
  54622. prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
  54623. 8016a1c: 68bb ldr r3, [r7, #8]
  54624. 8016a1e: 4619 mov r1, r3
  54625. 8016a20: 68f8 ldr r0, [r7, #12]
  54626. 8016a22: f000 f805 bl 8016a30 <prvProcessTimerOrBlockTask>
  54627. /* Empty the command queue. */
  54628. prvProcessReceivedCommands();
  54629. 8016a26: f000 f8d7 bl 8016bd8 <prvProcessReceivedCommands>
  54630. xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
  54631. 8016a2a: bf00 nop
  54632. 8016a2c: e7f0 b.n 8016a10 <prvTimerTask+0x8>
  54633. ...
  54634. 08016a30 <prvProcessTimerOrBlockTask>:
  54635. }
  54636. }
  54637. /*-----------------------------------------------------------*/
  54638. static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
  54639. {
  54640. 8016a30: b580 push {r7, lr}
  54641. 8016a32: b084 sub sp, #16
  54642. 8016a34: af00 add r7, sp, #0
  54643. 8016a36: 6078 str r0, [r7, #4]
  54644. 8016a38: 6039 str r1, [r7, #0]
  54645. TickType_t xTimeNow;
  54646. BaseType_t xTimerListsWereSwitched;
  54647. vTaskSuspendAll();
  54648. 8016a3a: f7fe fe17 bl 801566c <vTaskSuspendAll>
  54649. /* Obtain the time now to make an assessment as to whether the timer
  54650. has expired or not. If obtaining the time causes the lists to switch
  54651. then don't process this timer as any timers that remained in the list
  54652. when the lists were switched will have been processed within the
  54653. prvSampleTimeNow() function. */
  54654. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  54655. 8016a3e: f107 0308 add.w r3, r7, #8
  54656. 8016a42: 4618 mov r0, r3
  54657. 8016a44: f000 f866 bl 8016b14 <prvSampleTimeNow>
  54658. 8016a48: 60f8 str r0, [r7, #12]
  54659. if( xTimerListsWereSwitched == pdFALSE )
  54660. 8016a4a: 68bb ldr r3, [r7, #8]
  54661. 8016a4c: 2b00 cmp r3, #0
  54662. 8016a4e: d130 bne.n 8016ab2 <prvProcessTimerOrBlockTask+0x82>
  54663. {
  54664. /* The tick count has not overflowed, has the timer expired? */
  54665. if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
  54666. 8016a50: 683b ldr r3, [r7, #0]
  54667. 8016a52: 2b00 cmp r3, #0
  54668. 8016a54: d10a bne.n 8016a6c <prvProcessTimerOrBlockTask+0x3c>
  54669. 8016a56: 687a ldr r2, [r7, #4]
  54670. 8016a58: 68fb ldr r3, [r7, #12]
  54671. 8016a5a: 429a cmp r2, r3
  54672. 8016a5c: d806 bhi.n 8016a6c <prvProcessTimerOrBlockTask+0x3c>
  54673. {
  54674. ( void ) xTaskResumeAll();
  54675. 8016a5e: f7fe fe13 bl 8015688 <xTaskResumeAll>
  54676. prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
  54677. 8016a62: 68f9 ldr r1, [r7, #12]
  54678. 8016a64: 6878 ldr r0, [r7, #4]
  54679. 8016a66: f7ff ff81 bl 801696c <prvProcessExpiredTimer>
  54680. else
  54681. {
  54682. ( void ) xTaskResumeAll();
  54683. }
  54684. }
  54685. }
  54686. 8016a6a: e024 b.n 8016ab6 <prvProcessTimerOrBlockTask+0x86>
  54687. if( xListWasEmpty != pdFALSE )
  54688. 8016a6c: 683b ldr r3, [r7, #0]
  54689. 8016a6e: 2b00 cmp r3, #0
  54690. 8016a70: d008 beq.n 8016a84 <prvProcessTimerOrBlockTask+0x54>
  54691. xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
  54692. 8016a72: 4b13 ldr r3, [pc, #76] @ (8016ac0 <prvProcessTimerOrBlockTask+0x90>)
  54693. 8016a74: 681b ldr r3, [r3, #0]
  54694. 8016a76: 681b ldr r3, [r3, #0]
  54695. 8016a78: 2b00 cmp r3, #0
  54696. 8016a7a: d101 bne.n 8016a80 <prvProcessTimerOrBlockTask+0x50>
  54697. 8016a7c: 2301 movs r3, #1
  54698. 8016a7e: e000 b.n 8016a82 <prvProcessTimerOrBlockTask+0x52>
  54699. 8016a80: 2300 movs r3, #0
  54700. 8016a82: 603b str r3, [r7, #0]
  54701. vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
  54702. 8016a84: 4b0f ldr r3, [pc, #60] @ (8016ac4 <prvProcessTimerOrBlockTask+0x94>)
  54703. 8016a86: 6818 ldr r0, [r3, #0]
  54704. 8016a88: 687a ldr r2, [r7, #4]
  54705. 8016a8a: 68fb ldr r3, [r7, #12]
  54706. 8016a8c: 1ad3 subs r3, r2, r3
  54707. 8016a8e: 683a ldr r2, [r7, #0]
  54708. 8016a90: 4619 mov r1, r3
  54709. 8016a92: f7fe f995 bl 8014dc0 <vQueueWaitForMessageRestricted>
  54710. if( xTaskResumeAll() == pdFALSE )
  54711. 8016a96: f7fe fdf7 bl 8015688 <xTaskResumeAll>
  54712. 8016a9a: 4603 mov r3, r0
  54713. 8016a9c: 2b00 cmp r3, #0
  54714. 8016a9e: d10a bne.n 8016ab6 <prvProcessTimerOrBlockTask+0x86>
  54715. portYIELD_WITHIN_API();
  54716. 8016aa0: 4b09 ldr r3, [pc, #36] @ (8016ac8 <prvProcessTimerOrBlockTask+0x98>)
  54717. 8016aa2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  54718. 8016aa6: 601a str r2, [r3, #0]
  54719. 8016aa8: f3bf 8f4f dsb sy
  54720. 8016aac: f3bf 8f6f isb sy
  54721. }
  54722. 8016ab0: e001 b.n 8016ab6 <prvProcessTimerOrBlockTask+0x86>
  54723. ( void ) xTaskResumeAll();
  54724. 8016ab2: f7fe fde9 bl 8015688 <xTaskResumeAll>
  54725. }
  54726. 8016ab6: bf00 nop
  54727. 8016ab8: 3710 adds r7, #16
  54728. 8016aba: 46bd mov sp, r7
  54729. 8016abc: bd80 pop {r7, pc}
  54730. 8016abe: bf00 nop
  54731. 8016ac0: 24003080 .word 0x24003080
  54732. 8016ac4: 24003084 .word 0x24003084
  54733. 8016ac8: e000ed04 .word 0xe000ed04
  54734. 08016acc <prvGetNextExpireTime>:
  54735. /*-----------------------------------------------------------*/
  54736. static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
  54737. {
  54738. 8016acc: b480 push {r7}
  54739. 8016ace: b085 sub sp, #20
  54740. 8016ad0: af00 add r7, sp, #0
  54741. 8016ad2: 6078 str r0, [r7, #4]
  54742. the timer with the nearest expiry time will expire. If there are no
  54743. active timers then just set the next expire time to 0. That will cause
  54744. this task to unblock when the tick count overflows, at which point the
  54745. timer lists will be switched and the next expiry time can be
  54746. re-assessed. */
  54747. *pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
  54748. 8016ad4: 4b0e ldr r3, [pc, #56] @ (8016b10 <prvGetNextExpireTime+0x44>)
  54749. 8016ad6: 681b ldr r3, [r3, #0]
  54750. 8016ad8: 681b ldr r3, [r3, #0]
  54751. 8016ada: 2b00 cmp r3, #0
  54752. 8016adc: d101 bne.n 8016ae2 <prvGetNextExpireTime+0x16>
  54753. 8016ade: 2201 movs r2, #1
  54754. 8016ae0: e000 b.n 8016ae4 <prvGetNextExpireTime+0x18>
  54755. 8016ae2: 2200 movs r2, #0
  54756. 8016ae4: 687b ldr r3, [r7, #4]
  54757. 8016ae6: 601a str r2, [r3, #0]
  54758. if( *pxListWasEmpty == pdFALSE )
  54759. 8016ae8: 687b ldr r3, [r7, #4]
  54760. 8016aea: 681b ldr r3, [r3, #0]
  54761. 8016aec: 2b00 cmp r3, #0
  54762. 8016aee: d105 bne.n 8016afc <prvGetNextExpireTime+0x30>
  54763. {
  54764. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  54765. 8016af0: 4b07 ldr r3, [pc, #28] @ (8016b10 <prvGetNextExpireTime+0x44>)
  54766. 8016af2: 681b ldr r3, [r3, #0]
  54767. 8016af4: 68db ldr r3, [r3, #12]
  54768. 8016af6: 681b ldr r3, [r3, #0]
  54769. 8016af8: 60fb str r3, [r7, #12]
  54770. 8016afa: e001 b.n 8016b00 <prvGetNextExpireTime+0x34>
  54771. }
  54772. else
  54773. {
  54774. /* Ensure the task unblocks when the tick count rolls over. */
  54775. xNextExpireTime = ( TickType_t ) 0U;
  54776. 8016afc: 2300 movs r3, #0
  54777. 8016afe: 60fb str r3, [r7, #12]
  54778. }
  54779. return xNextExpireTime;
  54780. 8016b00: 68fb ldr r3, [r7, #12]
  54781. }
  54782. 8016b02: 4618 mov r0, r3
  54783. 8016b04: 3714 adds r7, #20
  54784. 8016b06: 46bd mov sp, r7
  54785. 8016b08: f85d 7b04 ldr.w r7, [sp], #4
  54786. 8016b0c: 4770 bx lr
  54787. 8016b0e: bf00 nop
  54788. 8016b10: 2400307c .word 0x2400307c
  54789. 08016b14 <prvSampleTimeNow>:
  54790. /*-----------------------------------------------------------*/
  54791. static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
  54792. {
  54793. 8016b14: b580 push {r7, lr}
  54794. 8016b16: b084 sub sp, #16
  54795. 8016b18: af00 add r7, sp, #0
  54796. 8016b1a: 6078 str r0, [r7, #4]
  54797. TickType_t xTimeNow;
  54798. PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
  54799. xTimeNow = xTaskGetTickCount();
  54800. 8016b1c: f7fe fe52 bl 80157c4 <xTaskGetTickCount>
  54801. 8016b20: 60f8 str r0, [r7, #12]
  54802. if( xTimeNow < xLastTime )
  54803. 8016b22: 4b0b ldr r3, [pc, #44] @ (8016b50 <prvSampleTimeNow+0x3c>)
  54804. 8016b24: 681b ldr r3, [r3, #0]
  54805. 8016b26: 68fa ldr r2, [r7, #12]
  54806. 8016b28: 429a cmp r2, r3
  54807. 8016b2a: d205 bcs.n 8016b38 <prvSampleTimeNow+0x24>
  54808. {
  54809. prvSwitchTimerLists();
  54810. 8016b2c: f000 f93a bl 8016da4 <prvSwitchTimerLists>
  54811. *pxTimerListsWereSwitched = pdTRUE;
  54812. 8016b30: 687b ldr r3, [r7, #4]
  54813. 8016b32: 2201 movs r2, #1
  54814. 8016b34: 601a str r2, [r3, #0]
  54815. 8016b36: e002 b.n 8016b3e <prvSampleTimeNow+0x2a>
  54816. }
  54817. else
  54818. {
  54819. *pxTimerListsWereSwitched = pdFALSE;
  54820. 8016b38: 687b ldr r3, [r7, #4]
  54821. 8016b3a: 2200 movs r2, #0
  54822. 8016b3c: 601a str r2, [r3, #0]
  54823. }
  54824. xLastTime = xTimeNow;
  54825. 8016b3e: 4a04 ldr r2, [pc, #16] @ (8016b50 <prvSampleTimeNow+0x3c>)
  54826. 8016b40: 68fb ldr r3, [r7, #12]
  54827. 8016b42: 6013 str r3, [r2, #0]
  54828. return xTimeNow;
  54829. 8016b44: 68fb ldr r3, [r7, #12]
  54830. }
  54831. 8016b46: 4618 mov r0, r3
  54832. 8016b48: 3710 adds r7, #16
  54833. 8016b4a: 46bd mov sp, r7
  54834. 8016b4c: bd80 pop {r7, pc}
  54835. 8016b4e: bf00 nop
  54836. 8016b50: 2400308c .word 0x2400308c
  54837. 08016b54 <prvInsertTimerInActiveList>:
  54838. /*-----------------------------------------------------------*/
  54839. static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
  54840. {
  54841. 8016b54: b580 push {r7, lr}
  54842. 8016b56: b086 sub sp, #24
  54843. 8016b58: af00 add r7, sp, #0
  54844. 8016b5a: 60f8 str r0, [r7, #12]
  54845. 8016b5c: 60b9 str r1, [r7, #8]
  54846. 8016b5e: 607a str r2, [r7, #4]
  54847. 8016b60: 603b str r3, [r7, #0]
  54848. BaseType_t xProcessTimerNow = pdFALSE;
  54849. 8016b62: 2300 movs r3, #0
  54850. 8016b64: 617b str r3, [r7, #20]
  54851. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
  54852. 8016b66: 68fb ldr r3, [r7, #12]
  54853. 8016b68: 68ba ldr r2, [r7, #8]
  54854. 8016b6a: 605a str r2, [r3, #4]
  54855. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  54856. 8016b6c: 68fb ldr r3, [r7, #12]
  54857. 8016b6e: 68fa ldr r2, [r7, #12]
  54858. 8016b70: 611a str r2, [r3, #16]
  54859. if( xNextExpiryTime <= xTimeNow )
  54860. 8016b72: 68ba ldr r2, [r7, #8]
  54861. 8016b74: 687b ldr r3, [r7, #4]
  54862. 8016b76: 429a cmp r2, r3
  54863. 8016b78: d812 bhi.n 8016ba0 <prvInsertTimerInActiveList+0x4c>
  54864. {
  54865. /* Has the expiry time elapsed between the command to start/reset a
  54866. timer was issued, and the time the command was processed? */
  54867. if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
  54868. 8016b7a: 687a ldr r2, [r7, #4]
  54869. 8016b7c: 683b ldr r3, [r7, #0]
  54870. 8016b7e: 1ad2 subs r2, r2, r3
  54871. 8016b80: 68fb ldr r3, [r7, #12]
  54872. 8016b82: 699b ldr r3, [r3, #24]
  54873. 8016b84: 429a cmp r2, r3
  54874. 8016b86: d302 bcc.n 8016b8e <prvInsertTimerInActiveList+0x3a>
  54875. {
  54876. /* The time between a command being issued and the command being
  54877. processed actually exceeds the timers period. */
  54878. xProcessTimerNow = pdTRUE;
  54879. 8016b88: 2301 movs r3, #1
  54880. 8016b8a: 617b str r3, [r7, #20]
  54881. 8016b8c: e01b b.n 8016bc6 <prvInsertTimerInActiveList+0x72>
  54882. }
  54883. else
  54884. {
  54885. vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
  54886. 8016b8e: 4b10 ldr r3, [pc, #64] @ (8016bd0 <prvInsertTimerInActiveList+0x7c>)
  54887. 8016b90: 681a ldr r2, [r3, #0]
  54888. 8016b92: 68fb ldr r3, [r7, #12]
  54889. 8016b94: 3304 adds r3, #4
  54890. 8016b96: 4619 mov r1, r3
  54891. 8016b98: 4610 mov r0, r2
  54892. 8016b9a: f7fd f94a bl 8013e32 <vListInsert>
  54893. 8016b9e: e012 b.n 8016bc6 <prvInsertTimerInActiveList+0x72>
  54894. }
  54895. }
  54896. else
  54897. {
  54898. if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
  54899. 8016ba0: 687a ldr r2, [r7, #4]
  54900. 8016ba2: 683b ldr r3, [r7, #0]
  54901. 8016ba4: 429a cmp r2, r3
  54902. 8016ba6: d206 bcs.n 8016bb6 <prvInsertTimerInActiveList+0x62>
  54903. 8016ba8: 68ba ldr r2, [r7, #8]
  54904. 8016baa: 683b ldr r3, [r7, #0]
  54905. 8016bac: 429a cmp r2, r3
  54906. 8016bae: d302 bcc.n 8016bb6 <prvInsertTimerInActiveList+0x62>
  54907. {
  54908. /* If, since the command was issued, the tick count has overflowed
  54909. but the expiry time has not, then the timer must have already passed
  54910. its expiry time and should be processed immediately. */
  54911. xProcessTimerNow = pdTRUE;
  54912. 8016bb0: 2301 movs r3, #1
  54913. 8016bb2: 617b str r3, [r7, #20]
  54914. 8016bb4: e007 b.n 8016bc6 <prvInsertTimerInActiveList+0x72>
  54915. }
  54916. else
  54917. {
  54918. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  54919. 8016bb6: 4b07 ldr r3, [pc, #28] @ (8016bd4 <prvInsertTimerInActiveList+0x80>)
  54920. 8016bb8: 681a ldr r2, [r3, #0]
  54921. 8016bba: 68fb ldr r3, [r7, #12]
  54922. 8016bbc: 3304 adds r3, #4
  54923. 8016bbe: 4619 mov r1, r3
  54924. 8016bc0: 4610 mov r0, r2
  54925. 8016bc2: f7fd f936 bl 8013e32 <vListInsert>
  54926. }
  54927. }
  54928. return xProcessTimerNow;
  54929. 8016bc6: 697b ldr r3, [r7, #20]
  54930. }
  54931. 8016bc8: 4618 mov r0, r3
  54932. 8016bca: 3718 adds r7, #24
  54933. 8016bcc: 46bd mov sp, r7
  54934. 8016bce: bd80 pop {r7, pc}
  54935. 8016bd0: 24003080 .word 0x24003080
  54936. 8016bd4: 2400307c .word 0x2400307c
  54937. 08016bd8 <prvProcessReceivedCommands>:
  54938. /*-----------------------------------------------------------*/
  54939. static void prvProcessReceivedCommands( void )
  54940. {
  54941. 8016bd8: b580 push {r7, lr}
  54942. 8016bda: b08e sub sp, #56 @ 0x38
  54943. 8016bdc: af02 add r7, sp, #8
  54944. DaemonTaskMessage_t xMessage;
  54945. Timer_t *pxTimer;
  54946. BaseType_t xTimerListsWereSwitched, xResult;
  54947. TickType_t xTimeNow;
  54948. while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
  54949. 8016bde: e0ce b.n 8016d7e <prvProcessReceivedCommands+0x1a6>
  54950. {
  54951. #if ( INCLUDE_xTimerPendFunctionCall == 1 )
  54952. {
  54953. /* Negative commands are pended function calls rather than timer
  54954. commands. */
  54955. if( xMessage.xMessageID < ( BaseType_t ) 0 )
  54956. 8016be0: 687b ldr r3, [r7, #4]
  54957. 8016be2: 2b00 cmp r3, #0
  54958. 8016be4: da19 bge.n 8016c1a <prvProcessReceivedCommands+0x42>
  54959. {
  54960. const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
  54961. 8016be6: 1d3b adds r3, r7, #4
  54962. 8016be8: 3304 adds r3, #4
  54963. 8016bea: 62fb str r3, [r7, #44] @ 0x2c
  54964. /* The timer uses the xCallbackParameters member to request a
  54965. callback be executed. Check the callback is not NULL. */
  54966. configASSERT( pxCallback );
  54967. 8016bec: 6afb ldr r3, [r7, #44] @ 0x2c
  54968. 8016bee: 2b00 cmp r3, #0
  54969. 8016bf0: d10b bne.n 8016c0a <prvProcessReceivedCommands+0x32>
  54970. __asm volatile
  54971. 8016bf2: f04f 0350 mov.w r3, #80 @ 0x50
  54972. 8016bf6: f383 8811 msr BASEPRI, r3
  54973. 8016bfa: f3bf 8f6f isb sy
  54974. 8016bfe: f3bf 8f4f dsb sy
  54975. 8016c02: 61fb str r3, [r7, #28]
  54976. }
  54977. 8016c04: bf00 nop
  54978. 8016c06: bf00 nop
  54979. 8016c08: e7fd b.n 8016c06 <prvProcessReceivedCommands+0x2e>
  54980. /* Call the function. */
  54981. pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
  54982. 8016c0a: 6afb ldr r3, [r7, #44] @ 0x2c
  54983. 8016c0c: 681b ldr r3, [r3, #0]
  54984. 8016c0e: 6afa ldr r2, [r7, #44] @ 0x2c
  54985. 8016c10: 6850 ldr r0, [r2, #4]
  54986. 8016c12: 6afa ldr r2, [r7, #44] @ 0x2c
  54987. 8016c14: 6892 ldr r2, [r2, #8]
  54988. 8016c16: 4611 mov r1, r2
  54989. 8016c18: 4798 blx r3
  54990. }
  54991. #endif /* INCLUDE_xTimerPendFunctionCall */
  54992. /* Commands that are positive are timer commands rather than pended
  54993. function calls. */
  54994. if( xMessage.xMessageID >= ( BaseType_t ) 0 )
  54995. 8016c1a: 687b ldr r3, [r7, #4]
  54996. 8016c1c: 2b00 cmp r3, #0
  54997. 8016c1e: f2c0 80ae blt.w 8016d7e <prvProcessReceivedCommands+0x1a6>
  54998. {
  54999. /* The messages uses the xTimerParameters member to work on a
  55000. software timer. */
  55001. pxTimer = xMessage.u.xTimerParameters.pxTimer;
  55002. 8016c22: 68fb ldr r3, [r7, #12]
  55003. 8016c24: 62bb str r3, [r7, #40] @ 0x28
  55004. if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
  55005. 8016c26: 6abb ldr r3, [r7, #40] @ 0x28
  55006. 8016c28: 695b ldr r3, [r3, #20]
  55007. 8016c2a: 2b00 cmp r3, #0
  55008. 8016c2c: d004 beq.n 8016c38 <prvProcessReceivedCommands+0x60>
  55009. {
  55010. /* The timer is in a list, remove it. */
  55011. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55012. 8016c2e: 6abb ldr r3, [r7, #40] @ 0x28
  55013. 8016c30: 3304 adds r3, #4
  55014. 8016c32: 4618 mov r0, r3
  55015. 8016c34: f7fd f936 bl 8013ea4 <uxListRemove>
  55016. it must be present in the function call. prvSampleTimeNow() must be
  55017. called after the message is received from xTimerQueue so there is no
  55018. possibility of a higher priority task adding a message to the message
  55019. queue with a time that is ahead of the timer daemon task (because it
  55020. pre-empted the timer daemon task after the xTimeNow value was set). */
  55021. xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
  55022. 8016c38: 463b mov r3, r7
  55023. 8016c3a: 4618 mov r0, r3
  55024. 8016c3c: f7ff ff6a bl 8016b14 <prvSampleTimeNow>
  55025. 8016c40: 6278 str r0, [r7, #36] @ 0x24
  55026. switch( xMessage.xMessageID )
  55027. 8016c42: 687b ldr r3, [r7, #4]
  55028. 8016c44: 2b09 cmp r3, #9
  55029. 8016c46: f200 8097 bhi.w 8016d78 <prvProcessReceivedCommands+0x1a0>
  55030. 8016c4a: a201 add r2, pc, #4 @ (adr r2, 8016c50 <prvProcessReceivedCommands+0x78>)
  55031. 8016c4c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  55032. 8016c50: 08016c79 .word 0x08016c79
  55033. 8016c54: 08016c79 .word 0x08016c79
  55034. 8016c58: 08016c79 .word 0x08016c79
  55035. 8016c5c: 08016cef .word 0x08016cef
  55036. 8016c60: 08016d03 .word 0x08016d03
  55037. 8016c64: 08016d4f .word 0x08016d4f
  55038. 8016c68: 08016c79 .word 0x08016c79
  55039. 8016c6c: 08016c79 .word 0x08016c79
  55040. 8016c70: 08016cef .word 0x08016cef
  55041. 8016c74: 08016d03 .word 0x08016d03
  55042. case tmrCOMMAND_START_FROM_ISR :
  55043. case tmrCOMMAND_RESET :
  55044. case tmrCOMMAND_RESET_FROM_ISR :
  55045. case tmrCOMMAND_START_DONT_TRACE :
  55046. /* Start or restart a timer. */
  55047. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55048. 8016c78: 6abb ldr r3, [r7, #40] @ 0x28
  55049. 8016c7a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55050. 8016c7e: f043 0301 orr.w r3, r3, #1
  55051. 8016c82: b2da uxtb r2, r3
  55052. 8016c84: 6abb ldr r3, [r7, #40] @ 0x28
  55053. 8016c86: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55054. if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
  55055. 8016c8a: 68ba ldr r2, [r7, #8]
  55056. 8016c8c: 6abb ldr r3, [r7, #40] @ 0x28
  55057. 8016c8e: 699b ldr r3, [r3, #24]
  55058. 8016c90: 18d1 adds r1, r2, r3
  55059. 8016c92: 68bb ldr r3, [r7, #8]
  55060. 8016c94: 6a7a ldr r2, [r7, #36] @ 0x24
  55061. 8016c96: 6ab8 ldr r0, [r7, #40] @ 0x28
  55062. 8016c98: f7ff ff5c bl 8016b54 <prvInsertTimerInActiveList>
  55063. 8016c9c: 4603 mov r3, r0
  55064. 8016c9e: 2b00 cmp r3, #0
  55065. 8016ca0: d06c beq.n 8016d7c <prvProcessReceivedCommands+0x1a4>
  55066. {
  55067. /* The timer expired before it was added to the active
  55068. timer list. Process it now. */
  55069. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55070. 8016ca2: 6abb ldr r3, [r7, #40] @ 0x28
  55071. 8016ca4: 6a1b ldr r3, [r3, #32]
  55072. 8016ca6: 6ab8 ldr r0, [r7, #40] @ 0x28
  55073. 8016ca8: 4798 blx r3
  55074. traceTIMER_EXPIRED( pxTimer );
  55075. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55076. 8016caa: 6abb ldr r3, [r7, #40] @ 0x28
  55077. 8016cac: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55078. 8016cb0: f003 0304 and.w r3, r3, #4
  55079. 8016cb4: 2b00 cmp r3, #0
  55080. 8016cb6: d061 beq.n 8016d7c <prvProcessReceivedCommands+0x1a4>
  55081. {
  55082. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
  55083. 8016cb8: 68ba ldr r2, [r7, #8]
  55084. 8016cba: 6abb ldr r3, [r7, #40] @ 0x28
  55085. 8016cbc: 699b ldr r3, [r3, #24]
  55086. 8016cbe: 441a add r2, r3
  55087. 8016cc0: 2300 movs r3, #0
  55088. 8016cc2: 9300 str r3, [sp, #0]
  55089. 8016cc4: 2300 movs r3, #0
  55090. 8016cc6: 2100 movs r1, #0
  55091. 8016cc8: 6ab8 ldr r0, [r7, #40] @ 0x28
  55092. 8016cca: f7ff fe01 bl 80168d0 <xTimerGenericCommand>
  55093. 8016cce: 6238 str r0, [r7, #32]
  55094. configASSERT( xResult );
  55095. 8016cd0: 6a3b ldr r3, [r7, #32]
  55096. 8016cd2: 2b00 cmp r3, #0
  55097. 8016cd4: d152 bne.n 8016d7c <prvProcessReceivedCommands+0x1a4>
  55098. __asm volatile
  55099. 8016cd6: f04f 0350 mov.w r3, #80 @ 0x50
  55100. 8016cda: f383 8811 msr BASEPRI, r3
  55101. 8016cde: f3bf 8f6f isb sy
  55102. 8016ce2: f3bf 8f4f dsb sy
  55103. 8016ce6: 61bb str r3, [r7, #24]
  55104. }
  55105. 8016ce8: bf00 nop
  55106. 8016cea: bf00 nop
  55107. 8016cec: e7fd b.n 8016cea <prvProcessReceivedCommands+0x112>
  55108. break;
  55109. case tmrCOMMAND_STOP :
  55110. case tmrCOMMAND_STOP_FROM_ISR :
  55111. /* The timer has already been removed from the active list. */
  55112. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55113. 8016cee: 6abb ldr r3, [r7, #40] @ 0x28
  55114. 8016cf0: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55115. 8016cf4: f023 0301 bic.w r3, r3, #1
  55116. 8016cf8: b2da uxtb r2, r3
  55117. 8016cfa: 6abb ldr r3, [r7, #40] @ 0x28
  55118. 8016cfc: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55119. break;
  55120. 8016d00: e03d b.n 8016d7e <prvProcessReceivedCommands+0x1a6>
  55121. case tmrCOMMAND_CHANGE_PERIOD :
  55122. case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
  55123. pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
  55124. 8016d02: 6abb ldr r3, [r7, #40] @ 0x28
  55125. 8016d04: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55126. 8016d08: f043 0301 orr.w r3, r3, #1
  55127. 8016d0c: b2da uxtb r2, r3
  55128. 8016d0e: 6abb ldr r3, [r7, #40] @ 0x28
  55129. 8016d10: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55130. pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
  55131. 8016d14: 68ba ldr r2, [r7, #8]
  55132. 8016d16: 6abb ldr r3, [r7, #40] @ 0x28
  55133. 8016d18: 619a str r2, [r3, #24]
  55134. configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
  55135. 8016d1a: 6abb ldr r3, [r7, #40] @ 0x28
  55136. 8016d1c: 699b ldr r3, [r3, #24]
  55137. 8016d1e: 2b00 cmp r3, #0
  55138. 8016d20: d10b bne.n 8016d3a <prvProcessReceivedCommands+0x162>
  55139. __asm volatile
  55140. 8016d22: f04f 0350 mov.w r3, #80 @ 0x50
  55141. 8016d26: f383 8811 msr BASEPRI, r3
  55142. 8016d2a: f3bf 8f6f isb sy
  55143. 8016d2e: f3bf 8f4f dsb sy
  55144. 8016d32: 617b str r3, [r7, #20]
  55145. }
  55146. 8016d34: bf00 nop
  55147. 8016d36: bf00 nop
  55148. 8016d38: e7fd b.n 8016d36 <prvProcessReceivedCommands+0x15e>
  55149. be longer or shorter than the old one. The command time is
  55150. therefore set to the current time, and as the period cannot
  55151. be zero the next expiry time can only be in the future,
  55152. meaning (unlike for the xTimerStart() case above) there is
  55153. no fail case that needs to be handled here. */
  55154. ( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
  55155. 8016d3a: 6abb ldr r3, [r7, #40] @ 0x28
  55156. 8016d3c: 699a ldr r2, [r3, #24]
  55157. 8016d3e: 6a7b ldr r3, [r7, #36] @ 0x24
  55158. 8016d40: 18d1 adds r1, r2, r3
  55159. 8016d42: 6a7b ldr r3, [r7, #36] @ 0x24
  55160. 8016d44: 6a7a ldr r2, [r7, #36] @ 0x24
  55161. 8016d46: 6ab8 ldr r0, [r7, #40] @ 0x28
  55162. 8016d48: f7ff ff04 bl 8016b54 <prvInsertTimerInActiveList>
  55163. break;
  55164. 8016d4c: e017 b.n 8016d7e <prvProcessReceivedCommands+0x1a6>
  55165. #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
  55166. {
  55167. /* The timer has already been removed from the active list,
  55168. just free up the memory if the memory was dynamically
  55169. allocated. */
  55170. if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
  55171. 8016d4e: 6abb ldr r3, [r7, #40] @ 0x28
  55172. 8016d50: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55173. 8016d54: f003 0302 and.w r3, r3, #2
  55174. 8016d58: 2b00 cmp r3, #0
  55175. 8016d5a: d103 bne.n 8016d64 <prvProcessReceivedCommands+0x18c>
  55176. {
  55177. vPortFree( pxTimer );
  55178. 8016d5c: 6ab8 ldr r0, [r7, #40] @ 0x28
  55179. 8016d5e: f000 fc33 bl 80175c8 <vPortFree>
  55180. no need to free the memory - just mark the timer as
  55181. "not active". */
  55182. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55183. }
  55184. #endif /* configSUPPORT_DYNAMIC_ALLOCATION */
  55185. break;
  55186. 8016d62: e00c b.n 8016d7e <prvProcessReceivedCommands+0x1a6>
  55187. pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
  55188. 8016d64: 6abb ldr r3, [r7, #40] @ 0x28
  55189. 8016d66: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55190. 8016d6a: f023 0301 bic.w r3, r3, #1
  55191. 8016d6e: b2da uxtb r2, r3
  55192. 8016d70: 6abb ldr r3, [r7, #40] @ 0x28
  55193. 8016d72: f883 2028 strb.w r2, [r3, #40] @ 0x28
  55194. break;
  55195. 8016d76: e002 b.n 8016d7e <prvProcessReceivedCommands+0x1a6>
  55196. default :
  55197. /* Don't expect to get here. */
  55198. break;
  55199. 8016d78: bf00 nop
  55200. 8016d7a: e000 b.n 8016d7e <prvProcessReceivedCommands+0x1a6>
  55201. break;
  55202. 8016d7c: bf00 nop
  55203. while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
  55204. 8016d7e: 4b08 ldr r3, [pc, #32] @ (8016da0 <prvProcessReceivedCommands+0x1c8>)
  55205. 8016d80: 681b ldr r3, [r3, #0]
  55206. 8016d82: 1d39 adds r1, r7, #4
  55207. 8016d84: 2200 movs r2, #0
  55208. 8016d86: 4618 mov r0, r3
  55209. 8016d88: f7fd fc54 bl 8014634 <xQueueReceive>
  55210. 8016d8c: 4603 mov r3, r0
  55211. 8016d8e: 2b00 cmp r3, #0
  55212. 8016d90: f47f af26 bne.w 8016be0 <prvProcessReceivedCommands+0x8>
  55213. }
  55214. }
  55215. }
  55216. }
  55217. 8016d94: bf00 nop
  55218. 8016d96: bf00 nop
  55219. 8016d98: 3730 adds r7, #48 @ 0x30
  55220. 8016d9a: 46bd mov sp, r7
  55221. 8016d9c: bd80 pop {r7, pc}
  55222. 8016d9e: bf00 nop
  55223. 8016da0: 24003084 .word 0x24003084
  55224. 08016da4 <prvSwitchTimerLists>:
  55225. /*-----------------------------------------------------------*/
  55226. static void prvSwitchTimerLists( void )
  55227. {
  55228. 8016da4: b580 push {r7, lr}
  55229. 8016da6: b088 sub sp, #32
  55230. 8016da8: af02 add r7, sp, #8
  55231. /* The tick count has overflowed. The timer lists must be switched.
  55232. If there are any timers still referenced from the current timer list
  55233. then they must have expired and should be processed before the lists
  55234. are switched. */
  55235. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  55236. 8016daa: e049 b.n 8016e40 <prvSwitchTimerLists+0x9c>
  55237. {
  55238. xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
  55239. 8016dac: 4b2e ldr r3, [pc, #184] @ (8016e68 <prvSwitchTimerLists+0xc4>)
  55240. 8016dae: 681b ldr r3, [r3, #0]
  55241. 8016db0: 68db ldr r3, [r3, #12]
  55242. 8016db2: 681b ldr r3, [r3, #0]
  55243. 8016db4: 613b str r3, [r7, #16]
  55244. /* Remove the timer from the list. */
  55245. pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
  55246. 8016db6: 4b2c ldr r3, [pc, #176] @ (8016e68 <prvSwitchTimerLists+0xc4>)
  55247. 8016db8: 681b ldr r3, [r3, #0]
  55248. 8016dba: 68db ldr r3, [r3, #12]
  55249. 8016dbc: 68db ldr r3, [r3, #12]
  55250. 8016dbe: 60fb str r3, [r7, #12]
  55251. ( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
  55252. 8016dc0: 68fb ldr r3, [r7, #12]
  55253. 8016dc2: 3304 adds r3, #4
  55254. 8016dc4: 4618 mov r0, r3
  55255. 8016dc6: f7fd f86d bl 8013ea4 <uxListRemove>
  55256. traceTIMER_EXPIRED( pxTimer );
  55257. /* Execute its callback, then send a command to restart the timer if
  55258. it is an auto-reload timer. It cannot be restarted here as the lists
  55259. have not yet been switched. */
  55260. pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
  55261. 8016dca: 68fb ldr r3, [r7, #12]
  55262. 8016dcc: 6a1b ldr r3, [r3, #32]
  55263. 8016dce: 68f8 ldr r0, [r7, #12]
  55264. 8016dd0: 4798 blx r3
  55265. if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
  55266. 8016dd2: 68fb ldr r3, [r7, #12]
  55267. 8016dd4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55268. 8016dd8: f003 0304 and.w r3, r3, #4
  55269. 8016ddc: 2b00 cmp r3, #0
  55270. 8016dde: d02f beq.n 8016e40 <prvSwitchTimerLists+0x9c>
  55271. the timer going into the same timer list then it has already expired
  55272. and the timer should be re-inserted into the current list so it is
  55273. processed again within this loop. Otherwise a command should be sent
  55274. to restart the timer to ensure it is only inserted into a list after
  55275. the lists have been swapped. */
  55276. xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
  55277. 8016de0: 68fb ldr r3, [r7, #12]
  55278. 8016de2: 699b ldr r3, [r3, #24]
  55279. 8016de4: 693a ldr r2, [r7, #16]
  55280. 8016de6: 4413 add r3, r2
  55281. 8016de8: 60bb str r3, [r7, #8]
  55282. if( xReloadTime > xNextExpireTime )
  55283. 8016dea: 68ba ldr r2, [r7, #8]
  55284. 8016dec: 693b ldr r3, [r7, #16]
  55285. 8016dee: 429a cmp r2, r3
  55286. 8016df0: d90e bls.n 8016e10 <prvSwitchTimerLists+0x6c>
  55287. {
  55288. listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
  55289. 8016df2: 68fb ldr r3, [r7, #12]
  55290. 8016df4: 68ba ldr r2, [r7, #8]
  55291. 8016df6: 605a str r2, [r3, #4]
  55292. listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
  55293. 8016df8: 68fb ldr r3, [r7, #12]
  55294. 8016dfa: 68fa ldr r2, [r7, #12]
  55295. 8016dfc: 611a str r2, [r3, #16]
  55296. vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
  55297. 8016dfe: 4b1a ldr r3, [pc, #104] @ (8016e68 <prvSwitchTimerLists+0xc4>)
  55298. 8016e00: 681a ldr r2, [r3, #0]
  55299. 8016e02: 68fb ldr r3, [r7, #12]
  55300. 8016e04: 3304 adds r3, #4
  55301. 8016e06: 4619 mov r1, r3
  55302. 8016e08: 4610 mov r0, r2
  55303. 8016e0a: f7fd f812 bl 8013e32 <vListInsert>
  55304. 8016e0e: e017 b.n 8016e40 <prvSwitchTimerLists+0x9c>
  55305. }
  55306. else
  55307. {
  55308. xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
  55309. 8016e10: 2300 movs r3, #0
  55310. 8016e12: 9300 str r3, [sp, #0]
  55311. 8016e14: 2300 movs r3, #0
  55312. 8016e16: 693a ldr r2, [r7, #16]
  55313. 8016e18: 2100 movs r1, #0
  55314. 8016e1a: 68f8 ldr r0, [r7, #12]
  55315. 8016e1c: f7ff fd58 bl 80168d0 <xTimerGenericCommand>
  55316. 8016e20: 6078 str r0, [r7, #4]
  55317. configASSERT( xResult );
  55318. 8016e22: 687b ldr r3, [r7, #4]
  55319. 8016e24: 2b00 cmp r3, #0
  55320. 8016e26: d10b bne.n 8016e40 <prvSwitchTimerLists+0x9c>
  55321. __asm volatile
  55322. 8016e28: f04f 0350 mov.w r3, #80 @ 0x50
  55323. 8016e2c: f383 8811 msr BASEPRI, r3
  55324. 8016e30: f3bf 8f6f isb sy
  55325. 8016e34: f3bf 8f4f dsb sy
  55326. 8016e38: 603b str r3, [r7, #0]
  55327. }
  55328. 8016e3a: bf00 nop
  55329. 8016e3c: bf00 nop
  55330. 8016e3e: e7fd b.n 8016e3c <prvSwitchTimerLists+0x98>
  55331. while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
  55332. 8016e40: 4b09 ldr r3, [pc, #36] @ (8016e68 <prvSwitchTimerLists+0xc4>)
  55333. 8016e42: 681b ldr r3, [r3, #0]
  55334. 8016e44: 681b ldr r3, [r3, #0]
  55335. 8016e46: 2b00 cmp r3, #0
  55336. 8016e48: d1b0 bne.n 8016dac <prvSwitchTimerLists+0x8>
  55337. {
  55338. mtCOVERAGE_TEST_MARKER();
  55339. }
  55340. }
  55341. pxTemp = pxCurrentTimerList;
  55342. 8016e4a: 4b07 ldr r3, [pc, #28] @ (8016e68 <prvSwitchTimerLists+0xc4>)
  55343. 8016e4c: 681b ldr r3, [r3, #0]
  55344. 8016e4e: 617b str r3, [r7, #20]
  55345. pxCurrentTimerList = pxOverflowTimerList;
  55346. 8016e50: 4b06 ldr r3, [pc, #24] @ (8016e6c <prvSwitchTimerLists+0xc8>)
  55347. 8016e52: 681b ldr r3, [r3, #0]
  55348. 8016e54: 4a04 ldr r2, [pc, #16] @ (8016e68 <prvSwitchTimerLists+0xc4>)
  55349. 8016e56: 6013 str r3, [r2, #0]
  55350. pxOverflowTimerList = pxTemp;
  55351. 8016e58: 4a04 ldr r2, [pc, #16] @ (8016e6c <prvSwitchTimerLists+0xc8>)
  55352. 8016e5a: 697b ldr r3, [r7, #20]
  55353. 8016e5c: 6013 str r3, [r2, #0]
  55354. }
  55355. 8016e5e: bf00 nop
  55356. 8016e60: 3718 adds r7, #24
  55357. 8016e62: 46bd mov sp, r7
  55358. 8016e64: bd80 pop {r7, pc}
  55359. 8016e66: bf00 nop
  55360. 8016e68: 2400307c .word 0x2400307c
  55361. 8016e6c: 24003080 .word 0x24003080
  55362. 08016e70 <prvCheckForValidListAndQueue>:
  55363. /*-----------------------------------------------------------*/
  55364. static void prvCheckForValidListAndQueue( void )
  55365. {
  55366. 8016e70: b580 push {r7, lr}
  55367. 8016e72: b082 sub sp, #8
  55368. 8016e74: af02 add r7, sp, #8
  55369. /* Check that the list from which active timers are referenced, and the
  55370. queue used to communicate with the timer service, have been
  55371. initialised. */
  55372. taskENTER_CRITICAL();
  55373. 8016e76: f000 f9b7 bl 80171e8 <vPortEnterCritical>
  55374. {
  55375. if( xTimerQueue == NULL )
  55376. 8016e7a: 4b15 ldr r3, [pc, #84] @ (8016ed0 <prvCheckForValidListAndQueue+0x60>)
  55377. 8016e7c: 681b ldr r3, [r3, #0]
  55378. 8016e7e: 2b00 cmp r3, #0
  55379. 8016e80: d120 bne.n 8016ec4 <prvCheckForValidListAndQueue+0x54>
  55380. {
  55381. vListInitialise( &xActiveTimerList1 );
  55382. 8016e82: 4814 ldr r0, [pc, #80] @ (8016ed4 <prvCheckForValidListAndQueue+0x64>)
  55383. 8016e84: f7fc ff84 bl 8013d90 <vListInitialise>
  55384. vListInitialise( &xActiveTimerList2 );
  55385. 8016e88: 4813 ldr r0, [pc, #76] @ (8016ed8 <prvCheckForValidListAndQueue+0x68>)
  55386. 8016e8a: f7fc ff81 bl 8013d90 <vListInitialise>
  55387. pxCurrentTimerList = &xActiveTimerList1;
  55388. 8016e8e: 4b13 ldr r3, [pc, #76] @ (8016edc <prvCheckForValidListAndQueue+0x6c>)
  55389. 8016e90: 4a10 ldr r2, [pc, #64] @ (8016ed4 <prvCheckForValidListAndQueue+0x64>)
  55390. 8016e92: 601a str r2, [r3, #0]
  55391. pxOverflowTimerList = &xActiveTimerList2;
  55392. 8016e94: 4b12 ldr r3, [pc, #72] @ (8016ee0 <prvCheckForValidListAndQueue+0x70>)
  55393. 8016e96: 4a10 ldr r2, [pc, #64] @ (8016ed8 <prvCheckForValidListAndQueue+0x68>)
  55394. 8016e98: 601a str r2, [r3, #0]
  55395. /* The timer queue is allocated statically in case
  55396. configSUPPORT_DYNAMIC_ALLOCATION is 0. */
  55397. static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  55398. static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
  55399. xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
  55400. 8016e9a: 2300 movs r3, #0
  55401. 8016e9c: 9300 str r3, [sp, #0]
  55402. 8016e9e: 4b11 ldr r3, [pc, #68] @ (8016ee4 <prvCheckForValidListAndQueue+0x74>)
  55403. 8016ea0: 4a11 ldr r2, [pc, #68] @ (8016ee8 <prvCheckForValidListAndQueue+0x78>)
  55404. 8016ea2: 2110 movs r1, #16
  55405. 8016ea4: 200a movs r0, #10
  55406. 8016ea6: f7fd f891 bl 8013fcc <xQueueGenericCreateStatic>
  55407. 8016eaa: 4603 mov r3, r0
  55408. 8016eac: 4a08 ldr r2, [pc, #32] @ (8016ed0 <prvCheckForValidListAndQueue+0x60>)
  55409. 8016eae: 6013 str r3, [r2, #0]
  55410. }
  55411. #endif
  55412. #if ( configQUEUE_REGISTRY_SIZE > 0 )
  55413. {
  55414. if( xTimerQueue != NULL )
  55415. 8016eb0: 4b07 ldr r3, [pc, #28] @ (8016ed0 <prvCheckForValidListAndQueue+0x60>)
  55416. 8016eb2: 681b ldr r3, [r3, #0]
  55417. 8016eb4: 2b00 cmp r3, #0
  55418. 8016eb6: d005 beq.n 8016ec4 <prvCheckForValidListAndQueue+0x54>
  55419. {
  55420. vQueueAddToRegistry( xTimerQueue, "TmrQ" );
  55421. 8016eb8: 4b05 ldr r3, [pc, #20] @ (8016ed0 <prvCheckForValidListAndQueue+0x60>)
  55422. 8016eba: 681b ldr r3, [r3, #0]
  55423. 8016ebc: 490b ldr r1, [pc, #44] @ (8016eec <prvCheckForValidListAndQueue+0x7c>)
  55424. 8016ebe: 4618 mov r0, r3
  55425. 8016ec0: f7fd ff54 bl 8014d6c <vQueueAddToRegistry>
  55426. else
  55427. {
  55428. mtCOVERAGE_TEST_MARKER();
  55429. }
  55430. }
  55431. taskEXIT_CRITICAL();
  55432. 8016ec4: f000 f9c2 bl 801724c <vPortExitCritical>
  55433. }
  55434. 8016ec8: bf00 nop
  55435. 8016eca: 46bd mov sp, r7
  55436. 8016ecc: bd80 pop {r7, pc}
  55437. 8016ece: bf00 nop
  55438. 8016ed0: 24003084 .word 0x24003084
  55439. 8016ed4: 24003054 .word 0x24003054
  55440. 8016ed8: 24003068 .word 0x24003068
  55441. 8016edc: 2400307c .word 0x2400307c
  55442. 8016ee0: 24003080 .word 0x24003080
  55443. 8016ee4: 24003130 .word 0x24003130
  55444. 8016ee8: 24003090 .word 0x24003090
  55445. 8016eec: 0801a21c .word 0x0801a21c
  55446. 08016ef0 <xTimerIsTimerActive>:
  55447. /*-----------------------------------------------------------*/
  55448. BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
  55449. {
  55450. 8016ef0: b580 push {r7, lr}
  55451. 8016ef2: b086 sub sp, #24
  55452. 8016ef4: af00 add r7, sp, #0
  55453. 8016ef6: 6078 str r0, [r7, #4]
  55454. BaseType_t xReturn;
  55455. Timer_t *pxTimer = xTimer;
  55456. 8016ef8: 687b ldr r3, [r7, #4]
  55457. 8016efa: 613b str r3, [r7, #16]
  55458. configASSERT( xTimer );
  55459. 8016efc: 687b ldr r3, [r7, #4]
  55460. 8016efe: 2b00 cmp r3, #0
  55461. 8016f00: d10b bne.n 8016f1a <xTimerIsTimerActive+0x2a>
  55462. __asm volatile
  55463. 8016f02: f04f 0350 mov.w r3, #80 @ 0x50
  55464. 8016f06: f383 8811 msr BASEPRI, r3
  55465. 8016f0a: f3bf 8f6f isb sy
  55466. 8016f0e: f3bf 8f4f dsb sy
  55467. 8016f12: 60fb str r3, [r7, #12]
  55468. }
  55469. 8016f14: bf00 nop
  55470. 8016f16: bf00 nop
  55471. 8016f18: e7fd b.n 8016f16 <xTimerIsTimerActive+0x26>
  55472. /* Is the timer in the list of active timers? */
  55473. taskENTER_CRITICAL();
  55474. 8016f1a: f000 f965 bl 80171e8 <vPortEnterCritical>
  55475. {
  55476. if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
  55477. 8016f1e: 693b ldr r3, [r7, #16]
  55478. 8016f20: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
  55479. 8016f24: f003 0301 and.w r3, r3, #1
  55480. 8016f28: 2b00 cmp r3, #0
  55481. 8016f2a: d102 bne.n 8016f32 <xTimerIsTimerActive+0x42>
  55482. {
  55483. xReturn = pdFALSE;
  55484. 8016f2c: 2300 movs r3, #0
  55485. 8016f2e: 617b str r3, [r7, #20]
  55486. 8016f30: e001 b.n 8016f36 <xTimerIsTimerActive+0x46>
  55487. }
  55488. else
  55489. {
  55490. xReturn = pdTRUE;
  55491. 8016f32: 2301 movs r3, #1
  55492. 8016f34: 617b str r3, [r7, #20]
  55493. }
  55494. }
  55495. taskEXIT_CRITICAL();
  55496. 8016f36: f000 f989 bl 801724c <vPortExitCritical>
  55497. return xReturn;
  55498. 8016f3a: 697b ldr r3, [r7, #20]
  55499. } /*lint !e818 Can't be pointer to const due to the typedef. */
  55500. 8016f3c: 4618 mov r0, r3
  55501. 8016f3e: 3718 adds r7, #24
  55502. 8016f40: 46bd mov sp, r7
  55503. 8016f42: bd80 pop {r7, pc}
  55504. 08016f44 <pvTimerGetTimerID>:
  55505. /*-----------------------------------------------------------*/
  55506. void *pvTimerGetTimerID( const TimerHandle_t xTimer )
  55507. {
  55508. 8016f44: b580 push {r7, lr}
  55509. 8016f46: b086 sub sp, #24
  55510. 8016f48: af00 add r7, sp, #0
  55511. 8016f4a: 6078 str r0, [r7, #4]
  55512. Timer_t * const pxTimer = xTimer;
  55513. 8016f4c: 687b ldr r3, [r7, #4]
  55514. 8016f4e: 617b str r3, [r7, #20]
  55515. void *pvReturn;
  55516. configASSERT( xTimer );
  55517. 8016f50: 687b ldr r3, [r7, #4]
  55518. 8016f52: 2b00 cmp r3, #0
  55519. 8016f54: d10b bne.n 8016f6e <pvTimerGetTimerID+0x2a>
  55520. __asm volatile
  55521. 8016f56: f04f 0350 mov.w r3, #80 @ 0x50
  55522. 8016f5a: f383 8811 msr BASEPRI, r3
  55523. 8016f5e: f3bf 8f6f isb sy
  55524. 8016f62: f3bf 8f4f dsb sy
  55525. 8016f66: 60fb str r3, [r7, #12]
  55526. }
  55527. 8016f68: bf00 nop
  55528. 8016f6a: bf00 nop
  55529. 8016f6c: e7fd b.n 8016f6a <pvTimerGetTimerID+0x26>
  55530. taskENTER_CRITICAL();
  55531. 8016f6e: f000 f93b bl 80171e8 <vPortEnterCritical>
  55532. {
  55533. pvReturn = pxTimer->pvTimerID;
  55534. 8016f72: 697b ldr r3, [r7, #20]
  55535. 8016f74: 69db ldr r3, [r3, #28]
  55536. 8016f76: 613b str r3, [r7, #16]
  55537. }
  55538. taskEXIT_CRITICAL();
  55539. 8016f78: f000 f968 bl 801724c <vPortExitCritical>
  55540. return pvReturn;
  55541. 8016f7c: 693b ldr r3, [r7, #16]
  55542. }
  55543. 8016f7e: 4618 mov r0, r3
  55544. 8016f80: 3718 adds r7, #24
  55545. 8016f82: 46bd mov sp, r7
  55546. 8016f84: bd80 pop {r7, pc}
  55547. ...
  55548. 08016f88 <pxPortInitialiseStack>:
  55549. /*
  55550. * See header file for description.
  55551. */
  55552. StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
  55553. {
  55554. 8016f88: b480 push {r7}
  55555. 8016f8a: b085 sub sp, #20
  55556. 8016f8c: af00 add r7, sp, #0
  55557. 8016f8e: 60f8 str r0, [r7, #12]
  55558. 8016f90: 60b9 str r1, [r7, #8]
  55559. 8016f92: 607a str r2, [r7, #4]
  55560. /* Simulate the stack frame as it would be created by a context switch
  55561. interrupt. */
  55562. /* Offset added to account for the way the MCU uses the stack on entry/exit
  55563. of interrupts, and to ensure alignment. */
  55564. pxTopOfStack--;
  55565. 8016f94: 68fb ldr r3, [r7, #12]
  55566. 8016f96: 3b04 subs r3, #4
  55567. 8016f98: 60fb str r3, [r7, #12]
  55568. *pxTopOfStack = portINITIAL_XPSR; /* xPSR */
  55569. 8016f9a: 68fb ldr r3, [r7, #12]
  55570. 8016f9c: f04f 7280 mov.w r2, #16777216 @ 0x1000000
  55571. 8016fa0: 601a str r2, [r3, #0]
  55572. pxTopOfStack--;
  55573. 8016fa2: 68fb ldr r3, [r7, #12]
  55574. 8016fa4: 3b04 subs r3, #4
  55575. 8016fa6: 60fb str r3, [r7, #12]
  55576. *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
  55577. 8016fa8: 68bb ldr r3, [r7, #8]
  55578. 8016faa: f023 0201 bic.w r2, r3, #1
  55579. 8016fae: 68fb ldr r3, [r7, #12]
  55580. 8016fb0: 601a str r2, [r3, #0]
  55581. pxTopOfStack--;
  55582. 8016fb2: 68fb ldr r3, [r7, #12]
  55583. 8016fb4: 3b04 subs r3, #4
  55584. 8016fb6: 60fb str r3, [r7, #12]
  55585. *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
  55586. 8016fb8: 4a0c ldr r2, [pc, #48] @ (8016fec <pxPortInitialiseStack+0x64>)
  55587. 8016fba: 68fb ldr r3, [r7, #12]
  55588. 8016fbc: 601a str r2, [r3, #0]
  55589. /* Save code space by skipping register initialisation. */
  55590. pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
  55591. 8016fbe: 68fb ldr r3, [r7, #12]
  55592. 8016fc0: 3b14 subs r3, #20
  55593. 8016fc2: 60fb str r3, [r7, #12]
  55594. *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
  55595. 8016fc4: 687a ldr r2, [r7, #4]
  55596. 8016fc6: 68fb ldr r3, [r7, #12]
  55597. 8016fc8: 601a str r2, [r3, #0]
  55598. /* A save method is being used that requires each task to maintain its
  55599. own exec return value. */
  55600. pxTopOfStack--;
  55601. 8016fca: 68fb ldr r3, [r7, #12]
  55602. 8016fcc: 3b04 subs r3, #4
  55603. 8016fce: 60fb str r3, [r7, #12]
  55604. *pxTopOfStack = portINITIAL_EXC_RETURN;
  55605. 8016fd0: 68fb ldr r3, [r7, #12]
  55606. 8016fd2: f06f 0202 mvn.w r2, #2
  55607. 8016fd6: 601a str r2, [r3, #0]
  55608. pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
  55609. 8016fd8: 68fb ldr r3, [r7, #12]
  55610. 8016fda: 3b20 subs r3, #32
  55611. 8016fdc: 60fb str r3, [r7, #12]
  55612. return pxTopOfStack;
  55613. 8016fde: 68fb ldr r3, [r7, #12]
  55614. }
  55615. 8016fe0: 4618 mov r0, r3
  55616. 8016fe2: 3714 adds r7, #20
  55617. 8016fe4: 46bd mov sp, r7
  55618. 8016fe6: f85d 7b04 ldr.w r7, [sp], #4
  55619. 8016fea: 4770 bx lr
  55620. 8016fec: 08016ff1 .word 0x08016ff1
  55621. 08016ff0 <prvTaskExitError>:
  55622. /*-----------------------------------------------------------*/
  55623. static void prvTaskExitError( void )
  55624. {
  55625. 8016ff0: b480 push {r7}
  55626. 8016ff2: b085 sub sp, #20
  55627. 8016ff4: af00 add r7, sp, #0
  55628. volatile uint32_t ulDummy = 0;
  55629. 8016ff6: 2300 movs r3, #0
  55630. 8016ff8: 607b str r3, [r7, #4]
  55631. its caller as there is nothing to return to. If a task wants to exit it
  55632. should instead call vTaskDelete( NULL ).
  55633. Artificially force an assert() to be triggered if configASSERT() is
  55634. defined, then stop here so application writers can catch the error. */
  55635. configASSERT( uxCriticalNesting == ~0UL );
  55636. 8016ffa: 4b13 ldr r3, [pc, #76] @ (8017048 <prvTaskExitError+0x58>)
  55637. 8016ffc: 681b ldr r3, [r3, #0]
  55638. 8016ffe: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
  55639. 8017002: d00b beq.n 801701c <prvTaskExitError+0x2c>
  55640. __asm volatile
  55641. 8017004: f04f 0350 mov.w r3, #80 @ 0x50
  55642. 8017008: f383 8811 msr BASEPRI, r3
  55643. 801700c: f3bf 8f6f isb sy
  55644. 8017010: f3bf 8f4f dsb sy
  55645. 8017014: 60fb str r3, [r7, #12]
  55646. }
  55647. 8017016: bf00 nop
  55648. 8017018: bf00 nop
  55649. 801701a: e7fd b.n 8017018 <prvTaskExitError+0x28>
  55650. __asm volatile
  55651. 801701c: f04f 0350 mov.w r3, #80 @ 0x50
  55652. 8017020: f383 8811 msr BASEPRI, r3
  55653. 8017024: f3bf 8f6f isb sy
  55654. 8017028: f3bf 8f4f dsb sy
  55655. 801702c: 60bb str r3, [r7, #8]
  55656. }
  55657. 801702e: bf00 nop
  55658. portDISABLE_INTERRUPTS();
  55659. while( ulDummy == 0 )
  55660. 8017030: bf00 nop
  55661. 8017032: 687b ldr r3, [r7, #4]
  55662. 8017034: 2b00 cmp r3, #0
  55663. 8017036: d0fc beq.n 8017032 <prvTaskExitError+0x42>
  55664. about code appearing after this function is called - making ulDummy
  55665. volatile makes the compiler think the function could return and
  55666. therefore not output an 'unreachable code' warning for code that appears
  55667. after it. */
  55668. }
  55669. }
  55670. 8017038: bf00 nop
  55671. 801703a: bf00 nop
  55672. 801703c: 3714 adds r7, #20
  55673. 801703e: 46bd mov sp, r7
  55674. 8017040: f85d 7b04 ldr.w r7, [sp], #4
  55675. 8017044: 4770 bx lr
  55676. 8017046: bf00 nop
  55677. 8017048: 24000044 .word 0x24000044
  55678. 801704c: 00000000 .word 0x00000000
  55679. 08017050 <SVC_Handler>:
  55680. /*-----------------------------------------------------------*/
  55681. void vPortSVCHandler( void )
  55682. {
  55683. __asm volatile (
  55684. 8017050: 4b07 ldr r3, [pc, #28] @ (8017070 <pxCurrentTCBConst2>)
  55685. 8017052: 6819 ldr r1, [r3, #0]
  55686. 8017054: 6808 ldr r0, [r1, #0]
  55687. 8017056: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  55688. 801705a: f380 8809 msr PSP, r0
  55689. 801705e: f3bf 8f6f isb sy
  55690. 8017062: f04f 0000 mov.w r0, #0
  55691. 8017066: f380 8811 msr BASEPRI, r0
  55692. 801706a: 4770 bx lr
  55693. 801706c: f3af 8000 nop.w
  55694. 08017070 <pxCurrentTCBConst2>:
  55695. 8017070: 24002b54 .word 0x24002b54
  55696. " bx r14 \n"
  55697. " \n"
  55698. " .align 4 \n"
  55699. "pxCurrentTCBConst2: .word pxCurrentTCB \n"
  55700. );
  55701. }
  55702. 8017074: bf00 nop
  55703. 8017076: bf00 nop
  55704. 08017078 <prvPortStartFirstTask>:
  55705. {
  55706. /* Start the first task. This also clears the bit that indicates the FPU is
  55707. in use in case the FPU was used before the scheduler was started - which
  55708. would otherwise result in the unnecessary leaving of space in the SVC stack
  55709. for lazy saving of FPU registers. */
  55710. __asm volatile(
  55711. 8017078: 4808 ldr r0, [pc, #32] @ (801709c <prvPortStartFirstTask+0x24>)
  55712. 801707a: 6800 ldr r0, [r0, #0]
  55713. 801707c: 6800 ldr r0, [r0, #0]
  55714. 801707e: f380 8808 msr MSP, r0
  55715. 8017082: f04f 0000 mov.w r0, #0
  55716. 8017086: f380 8814 msr CONTROL, r0
  55717. 801708a: b662 cpsie i
  55718. 801708c: b661 cpsie f
  55719. 801708e: f3bf 8f4f dsb sy
  55720. 8017092: f3bf 8f6f isb sy
  55721. 8017096: df00 svc 0
  55722. 8017098: bf00 nop
  55723. " dsb \n"
  55724. " isb \n"
  55725. " svc 0 \n" /* System call to start first task. */
  55726. " nop \n"
  55727. );
  55728. }
  55729. 801709a: bf00 nop
  55730. 801709c: e000ed08 .word 0xe000ed08
  55731. 080170a0 <xPortStartScheduler>:
  55732. /*
  55733. * See header file for description.
  55734. */
  55735. BaseType_t xPortStartScheduler( void )
  55736. {
  55737. 80170a0: b580 push {r7, lr}
  55738. 80170a2: b086 sub sp, #24
  55739. 80170a4: af00 add r7, sp, #0
  55740. configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
  55741. /* This port can be used on all revisions of the Cortex-M7 core other than
  55742. the r0p1 parts. r0p1 parts should use the port from the
  55743. /source/portable/GCC/ARM_CM7/r0p1 directory. */
  55744. configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
  55745. 80170a6: 4b47 ldr r3, [pc, #284] @ (80171c4 <xPortStartScheduler+0x124>)
  55746. 80170a8: 681b ldr r3, [r3, #0]
  55747. 80170aa: 4a47 ldr r2, [pc, #284] @ (80171c8 <xPortStartScheduler+0x128>)
  55748. 80170ac: 4293 cmp r3, r2
  55749. 80170ae: d10b bne.n 80170c8 <xPortStartScheduler+0x28>
  55750. __asm volatile
  55751. 80170b0: f04f 0350 mov.w r3, #80 @ 0x50
  55752. 80170b4: f383 8811 msr BASEPRI, r3
  55753. 80170b8: f3bf 8f6f isb sy
  55754. 80170bc: f3bf 8f4f dsb sy
  55755. 80170c0: 613b str r3, [r7, #16]
  55756. }
  55757. 80170c2: bf00 nop
  55758. 80170c4: bf00 nop
  55759. 80170c6: e7fd b.n 80170c4 <xPortStartScheduler+0x24>
  55760. configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
  55761. 80170c8: 4b3e ldr r3, [pc, #248] @ (80171c4 <xPortStartScheduler+0x124>)
  55762. 80170ca: 681b ldr r3, [r3, #0]
  55763. 80170cc: 4a3f ldr r2, [pc, #252] @ (80171cc <xPortStartScheduler+0x12c>)
  55764. 80170ce: 4293 cmp r3, r2
  55765. 80170d0: d10b bne.n 80170ea <xPortStartScheduler+0x4a>
  55766. __asm volatile
  55767. 80170d2: f04f 0350 mov.w r3, #80 @ 0x50
  55768. 80170d6: f383 8811 msr BASEPRI, r3
  55769. 80170da: f3bf 8f6f isb sy
  55770. 80170de: f3bf 8f4f dsb sy
  55771. 80170e2: 60fb str r3, [r7, #12]
  55772. }
  55773. 80170e4: bf00 nop
  55774. 80170e6: bf00 nop
  55775. 80170e8: e7fd b.n 80170e6 <xPortStartScheduler+0x46>
  55776. #if( configASSERT_DEFINED == 1 )
  55777. {
  55778. volatile uint32_t ulOriginalPriority;
  55779. volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
  55780. 80170ea: 4b39 ldr r3, [pc, #228] @ (80171d0 <xPortStartScheduler+0x130>)
  55781. 80170ec: 617b str r3, [r7, #20]
  55782. functions can be called. ISR safe functions are those that end in
  55783. "FromISR". FreeRTOS maintains separate thread and ISR API functions to
  55784. ensure interrupt entry is as fast and simple as possible.
  55785. Save the interrupt priority value that is about to be clobbered. */
  55786. ulOriginalPriority = *pucFirstUserPriorityRegister;
  55787. 80170ee: 697b ldr r3, [r7, #20]
  55788. 80170f0: 781b ldrb r3, [r3, #0]
  55789. 80170f2: b2db uxtb r3, r3
  55790. 80170f4: 607b str r3, [r7, #4]
  55791. /* Determine the number of priority bits available. First write to all
  55792. possible bits. */
  55793. *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
  55794. 80170f6: 697b ldr r3, [r7, #20]
  55795. 80170f8: 22ff movs r2, #255 @ 0xff
  55796. 80170fa: 701a strb r2, [r3, #0]
  55797. /* Read the value back to see how many bits stuck. */
  55798. ucMaxPriorityValue = *pucFirstUserPriorityRegister;
  55799. 80170fc: 697b ldr r3, [r7, #20]
  55800. 80170fe: 781b ldrb r3, [r3, #0]
  55801. 8017100: b2db uxtb r3, r3
  55802. 8017102: 70fb strb r3, [r7, #3]
  55803. /* Use the same mask on the maximum system call priority. */
  55804. ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
  55805. 8017104: 78fb ldrb r3, [r7, #3]
  55806. 8017106: b2db uxtb r3, r3
  55807. 8017108: f003 0350 and.w r3, r3, #80 @ 0x50
  55808. 801710c: b2da uxtb r2, r3
  55809. 801710e: 4b31 ldr r3, [pc, #196] @ (80171d4 <xPortStartScheduler+0x134>)
  55810. 8017110: 701a strb r2, [r3, #0]
  55811. /* Calculate the maximum acceptable priority group value for the number
  55812. of bits read back. */
  55813. ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
  55814. 8017112: 4b31 ldr r3, [pc, #196] @ (80171d8 <xPortStartScheduler+0x138>)
  55815. 8017114: 2207 movs r2, #7
  55816. 8017116: 601a str r2, [r3, #0]
  55817. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  55818. 8017118: e009 b.n 801712e <xPortStartScheduler+0x8e>
  55819. {
  55820. ulMaxPRIGROUPValue--;
  55821. 801711a: 4b2f ldr r3, [pc, #188] @ (80171d8 <xPortStartScheduler+0x138>)
  55822. 801711c: 681b ldr r3, [r3, #0]
  55823. 801711e: 3b01 subs r3, #1
  55824. 8017120: 4a2d ldr r2, [pc, #180] @ (80171d8 <xPortStartScheduler+0x138>)
  55825. 8017122: 6013 str r3, [r2, #0]
  55826. ucMaxPriorityValue <<= ( uint8_t ) 0x01;
  55827. 8017124: 78fb ldrb r3, [r7, #3]
  55828. 8017126: b2db uxtb r3, r3
  55829. 8017128: 005b lsls r3, r3, #1
  55830. 801712a: b2db uxtb r3, r3
  55831. 801712c: 70fb strb r3, [r7, #3]
  55832. while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
  55833. 801712e: 78fb ldrb r3, [r7, #3]
  55834. 8017130: b2db uxtb r3, r3
  55835. 8017132: f003 0380 and.w r3, r3, #128 @ 0x80
  55836. 8017136: 2b80 cmp r3, #128 @ 0x80
  55837. 8017138: d0ef beq.n 801711a <xPortStartScheduler+0x7a>
  55838. #ifdef configPRIO_BITS
  55839. {
  55840. /* Check the FreeRTOS configuration that defines the number of
  55841. priority bits matches the number of priority bits actually queried
  55842. from the hardware. */
  55843. configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
  55844. 801713a: 4b27 ldr r3, [pc, #156] @ (80171d8 <xPortStartScheduler+0x138>)
  55845. 801713c: 681b ldr r3, [r3, #0]
  55846. 801713e: f1c3 0307 rsb r3, r3, #7
  55847. 8017142: 2b04 cmp r3, #4
  55848. 8017144: d00b beq.n 801715e <xPortStartScheduler+0xbe>
  55849. __asm volatile
  55850. 8017146: f04f 0350 mov.w r3, #80 @ 0x50
  55851. 801714a: f383 8811 msr BASEPRI, r3
  55852. 801714e: f3bf 8f6f isb sy
  55853. 8017152: f3bf 8f4f dsb sy
  55854. 8017156: 60bb str r3, [r7, #8]
  55855. }
  55856. 8017158: bf00 nop
  55857. 801715a: bf00 nop
  55858. 801715c: e7fd b.n 801715a <xPortStartScheduler+0xba>
  55859. }
  55860. #endif
  55861. /* Shift the priority group value back to its position within the AIRCR
  55862. register. */
  55863. ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
  55864. 801715e: 4b1e ldr r3, [pc, #120] @ (80171d8 <xPortStartScheduler+0x138>)
  55865. 8017160: 681b ldr r3, [r3, #0]
  55866. 8017162: 021b lsls r3, r3, #8
  55867. 8017164: 4a1c ldr r2, [pc, #112] @ (80171d8 <xPortStartScheduler+0x138>)
  55868. 8017166: 6013 str r3, [r2, #0]
  55869. ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
  55870. 8017168: 4b1b ldr r3, [pc, #108] @ (80171d8 <xPortStartScheduler+0x138>)
  55871. 801716a: 681b ldr r3, [r3, #0]
  55872. 801716c: f403 63e0 and.w r3, r3, #1792 @ 0x700
  55873. 8017170: 4a19 ldr r2, [pc, #100] @ (80171d8 <xPortStartScheduler+0x138>)
  55874. 8017172: 6013 str r3, [r2, #0]
  55875. /* Restore the clobbered interrupt priority register to its original
  55876. value. */
  55877. *pucFirstUserPriorityRegister = ulOriginalPriority;
  55878. 8017174: 687b ldr r3, [r7, #4]
  55879. 8017176: b2da uxtb r2, r3
  55880. 8017178: 697b ldr r3, [r7, #20]
  55881. 801717a: 701a strb r2, [r3, #0]
  55882. }
  55883. #endif /* conifgASSERT_DEFINED */
  55884. /* Make PendSV and SysTick the lowest priority interrupts. */
  55885. portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
  55886. 801717c: 4b17 ldr r3, [pc, #92] @ (80171dc <xPortStartScheduler+0x13c>)
  55887. 801717e: 681b ldr r3, [r3, #0]
  55888. 8017180: 4a16 ldr r2, [pc, #88] @ (80171dc <xPortStartScheduler+0x13c>)
  55889. 8017182: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
  55890. 8017186: 6013 str r3, [r2, #0]
  55891. portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
  55892. 8017188: 4b14 ldr r3, [pc, #80] @ (80171dc <xPortStartScheduler+0x13c>)
  55893. 801718a: 681b ldr r3, [r3, #0]
  55894. 801718c: 4a13 ldr r2, [pc, #76] @ (80171dc <xPortStartScheduler+0x13c>)
  55895. 801718e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
  55896. 8017192: 6013 str r3, [r2, #0]
  55897. /* Start the timer that generates the tick ISR. Interrupts are disabled
  55898. here already. */
  55899. vPortSetupTimerInterrupt();
  55900. 8017194: f000 f8da bl 801734c <vPortSetupTimerInterrupt>
  55901. /* Initialise the critical nesting count ready for the first task. */
  55902. uxCriticalNesting = 0;
  55903. 8017198: 4b11 ldr r3, [pc, #68] @ (80171e0 <xPortStartScheduler+0x140>)
  55904. 801719a: 2200 movs r2, #0
  55905. 801719c: 601a str r2, [r3, #0]
  55906. /* Ensure the VFP is enabled - it should be anyway. */
  55907. vPortEnableVFP();
  55908. 801719e: f000 f8f9 bl 8017394 <vPortEnableVFP>
  55909. /* Lazy save always. */
  55910. *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
  55911. 80171a2: 4b10 ldr r3, [pc, #64] @ (80171e4 <xPortStartScheduler+0x144>)
  55912. 80171a4: 681b ldr r3, [r3, #0]
  55913. 80171a6: 4a0f ldr r2, [pc, #60] @ (80171e4 <xPortStartScheduler+0x144>)
  55914. 80171a8: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
  55915. 80171ac: 6013 str r3, [r2, #0]
  55916. /* Start the first task. */
  55917. prvPortStartFirstTask();
  55918. 80171ae: f7ff ff63 bl 8017078 <prvPortStartFirstTask>
  55919. exit error function to prevent compiler warnings about a static function
  55920. not being called in the case that the application writer overrides this
  55921. functionality by defining configTASK_RETURN_ADDRESS. Call
  55922. vTaskSwitchContext() so link time optimisation does not remove the
  55923. symbol. */
  55924. vTaskSwitchContext();
  55925. 80171b2: f7fe fbd1 bl 8015958 <vTaskSwitchContext>
  55926. prvTaskExitError();
  55927. 80171b6: f7ff ff1b bl 8016ff0 <prvTaskExitError>
  55928. /* Should not get here! */
  55929. return 0;
  55930. 80171ba: 2300 movs r3, #0
  55931. }
  55932. 80171bc: 4618 mov r0, r3
  55933. 80171be: 3718 adds r7, #24
  55934. 80171c0: 46bd mov sp, r7
  55935. 80171c2: bd80 pop {r7, pc}
  55936. 80171c4: e000ed00 .word 0xe000ed00
  55937. 80171c8: 410fc271 .word 0x410fc271
  55938. 80171cc: 410fc270 .word 0x410fc270
  55939. 80171d0: e000e400 .word 0xe000e400
  55940. 80171d4: 24003180 .word 0x24003180
  55941. 80171d8: 24003184 .word 0x24003184
  55942. 80171dc: e000ed20 .word 0xe000ed20
  55943. 80171e0: 24000044 .word 0x24000044
  55944. 80171e4: e000ef34 .word 0xe000ef34
  55945. 080171e8 <vPortEnterCritical>:
  55946. configASSERT( uxCriticalNesting == 1000UL );
  55947. }
  55948. /*-----------------------------------------------------------*/
  55949. void vPortEnterCritical( void )
  55950. {
  55951. 80171e8: b480 push {r7}
  55952. 80171ea: b083 sub sp, #12
  55953. 80171ec: af00 add r7, sp, #0
  55954. __asm volatile
  55955. 80171ee: f04f 0350 mov.w r3, #80 @ 0x50
  55956. 80171f2: f383 8811 msr BASEPRI, r3
  55957. 80171f6: f3bf 8f6f isb sy
  55958. 80171fa: f3bf 8f4f dsb sy
  55959. 80171fe: 607b str r3, [r7, #4]
  55960. }
  55961. 8017200: bf00 nop
  55962. portDISABLE_INTERRUPTS();
  55963. uxCriticalNesting++;
  55964. 8017202: 4b10 ldr r3, [pc, #64] @ (8017244 <vPortEnterCritical+0x5c>)
  55965. 8017204: 681b ldr r3, [r3, #0]
  55966. 8017206: 3301 adds r3, #1
  55967. 8017208: 4a0e ldr r2, [pc, #56] @ (8017244 <vPortEnterCritical+0x5c>)
  55968. 801720a: 6013 str r3, [r2, #0]
  55969. /* This is not the interrupt safe version of the enter critical function so
  55970. assert() if it is being called from an interrupt context. Only API
  55971. functions that end in "FromISR" can be used in an interrupt. Only assert if
  55972. the critical nesting count is 1 to protect against recursive calls if the
  55973. assert function also uses a critical section. */
  55974. if( uxCriticalNesting == 1 )
  55975. 801720c: 4b0d ldr r3, [pc, #52] @ (8017244 <vPortEnterCritical+0x5c>)
  55976. 801720e: 681b ldr r3, [r3, #0]
  55977. 8017210: 2b01 cmp r3, #1
  55978. 8017212: d110 bne.n 8017236 <vPortEnterCritical+0x4e>
  55979. {
  55980. configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
  55981. 8017214: 4b0c ldr r3, [pc, #48] @ (8017248 <vPortEnterCritical+0x60>)
  55982. 8017216: 681b ldr r3, [r3, #0]
  55983. 8017218: b2db uxtb r3, r3
  55984. 801721a: 2b00 cmp r3, #0
  55985. 801721c: d00b beq.n 8017236 <vPortEnterCritical+0x4e>
  55986. __asm volatile
  55987. 801721e: f04f 0350 mov.w r3, #80 @ 0x50
  55988. 8017222: f383 8811 msr BASEPRI, r3
  55989. 8017226: f3bf 8f6f isb sy
  55990. 801722a: f3bf 8f4f dsb sy
  55991. 801722e: 603b str r3, [r7, #0]
  55992. }
  55993. 8017230: bf00 nop
  55994. 8017232: bf00 nop
  55995. 8017234: e7fd b.n 8017232 <vPortEnterCritical+0x4a>
  55996. }
  55997. }
  55998. 8017236: bf00 nop
  55999. 8017238: 370c adds r7, #12
  56000. 801723a: 46bd mov sp, r7
  56001. 801723c: f85d 7b04 ldr.w r7, [sp], #4
  56002. 8017240: 4770 bx lr
  56003. 8017242: bf00 nop
  56004. 8017244: 24000044 .word 0x24000044
  56005. 8017248: e000ed04 .word 0xe000ed04
  56006. 0801724c <vPortExitCritical>:
  56007. /*-----------------------------------------------------------*/
  56008. void vPortExitCritical( void )
  56009. {
  56010. 801724c: b480 push {r7}
  56011. 801724e: b083 sub sp, #12
  56012. 8017250: af00 add r7, sp, #0
  56013. configASSERT( uxCriticalNesting );
  56014. 8017252: 4b12 ldr r3, [pc, #72] @ (801729c <vPortExitCritical+0x50>)
  56015. 8017254: 681b ldr r3, [r3, #0]
  56016. 8017256: 2b00 cmp r3, #0
  56017. 8017258: d10b bne.n 8017272 <vPortExitCritical+0x26>
  56018. __asm volatile
  56019. 801725a: f04f 0350 mov.w r3, #80 @ 0x50
  56020. 801725e: f383 8811 msr BASEPRI, r3
  56021. 8017262: f3bf 8f6f isb sy
  56022. 8017266: f3bf 8f4f dsb sy
  56023. 801726a: 607b str r3, [r7, #4]
  56024. }
  56025. 801726c: bf00 nop
  56026. 801726e: bf00 nop
  56027. 8017270: e7fd b.n 801726e <vPortExitCritical+0x22>
  56028. uxCriticalNesting--;
  56029. 8017272: 4b0a ldr r3, [pc, #40] @ (801729c <vPortExitCritical+0x50>)
  56030. 8017274: 681b ldr r3, [r3, #0]
  56031. 8017276: 3b01 subs r3, #1
  56032. 8017278: 4a08 ldr r2, [pc, #32] @ (801729c <vPortExitCritical+0x50>)
  56033. 801727a: 6013 str r3, [r2, #0]
  56034. if( uxCriticalNesting == 0 )
  56035. 801727c: 4b07 ldr r3, [pc, #28] @ (801729c <vPortExitCritical+0x50>)
  56036. 801727e: 681b ldr r3, [r3, #0]
  56037. 8017280: 2b00 cmp r3, #0
  56038. 8017282: d105 bne.n 8017290 <vPortExitCritical+0x44>
  56039. 8017284: 2300 movs r3, #0
  56040. 8017286: 603b str r3, [r7, #0]
  56041. __asm volatile
  56042. 8017288: 683b ldr r3, [r7, #0]
  56043. 801728a: f383 8811 msr BASEPRI, r3
  56044. }
  56045. 801728e: bf00 nop
  56046. {
  56047. portENABLE_INTERRUPTS();
  56048. }
  56049. }
  56050. 8017290: bf00 nop
  56051. 8017292: 370c adds r7, #12
  56052. 8017294: 46bd mov sp, r7
  56053. 8017296: f85d 7b04 ldr.w r7, [sp], #4
  56054. 801729a: 4770 bx lr
  56055. 801729c: 24000044 .word 0x24000044
  56056. 080172a0 <PendSV_Handler>:
  56057. void xPortPendSVHandler( void )
  56058. {
  56059. /* This is a naked function. */
  56060. __asm volatile
  56061. 80172a0: f3ef 8009 mrs r0, PSP
  56062. 80172a4: f3bf 8f6f isb sy
  56063. 80172a8: 4b15 ldr r3, [pc, #84] @ (8017300 <pxCurrentTCBConst>)
  56064. 80172aa: 681a ldr r2, [r3, #0]
  56065. 80172ac: f01e 0f10 tst.w lr, #16
  56066. 80172b0: bf08 it eq
  56067. 80172b2: ed20 8a10 vstmdbeq r0!, {s16-s31}
  56068. 80172b6: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56069. 80172ba: 6010 str r0, [r2, #0]
  56070. 80172bc: e92d 0009 stmdb sp!, {r0, r3}
  56071. 80172c0: f04f 0050 mov.w r0, #80 @ 0x50
  56072. 80172c4: f380 8811 msr BASEPRI, r0
  56073. 80172c8: f3bf 8f4f dsb sy
  56074. 80172cc: f3bf 8f6f isb sy
  56075. 80172d0: f7fe fb42 bl 8015958 <vTaskSwitchContext>
  56076. 80172d4: f04f 0000 mov.w r0, #0
  56077. 80172d8: f380 8811 msr BASEPRI, r0
  56078. 80172dc: bc09 pop {r0, r3}
  56079. 80172de: 6819 ldr r1, [r3, #0]
  56080. 80172e0: 6808 ldr r0, [r1, #0]
  56081. 80172e2: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  56082. 80172e6: f01e 0f10 tst.w lr, #16
  56083. 80172ea: bf08 it eq
  56084. 80172ec: ecb0 8a10 vldmiaeq r0!, {s16-s31}
  56085. 80172f0: f380 8809 msr PSP, r0
  56086. 80172f4: f3bf 8f6f isb sy
  56087. 80172f8: 4770 bx lr
  56088. 80172fa: bf00 nop
  56089. 80172fc: f3af 8000 nop.w
  56090. 08017300 <pxCurrentTCBConst>:
  56091. 8017300: 24002b54 .word 0x24002b54
  56092. " \n"
  56093. " .align 4 \n"
  56094. "pxCurrentTCBConst: .word pxCurrentTCB \n"
  56095. ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
  56096. );
  56097. }
  56098. 8017304: bf00 nop
  56099. 8017306: bf00 nop
  56100. 08017308 <xPortSysTickHandler>:
  56101. /*-----------------------------------------------------------*/
  56102. void xPortSysTickHandler( void )
  56103. {
  56104. 8017308: b580 push {r7, lr}
  56105. 801730a: b082 sub sp, #8
  56106. 801730c: af00 add r7, sp, #0
  56107. __asm volatile
  56108. 801730e: f04f 0350 mov.w r3, #80 @ 0x50
  56109. 8017312: f383 8811 msr BASEPRI, r3
  56110. 8017316: f3bf 8f6f isb sy
  56111. 801731a: f3bf 8f4f dsb sy
  56112. 801731e: 607b str r3, [r7, #4]
  56113. }
  56114. 8017320: bf00 nop
  56115. save and then restore the interrupt mask value as its value is already
  56116. known. */
  56117. portDISABLE_INTERRUPTS();
  56118. {
  56119. /* Increment the RTOS tick. */
  56120. if( xTaskIncrementTick() != pdFALSE )
  56121. 8017322: f7fe fa5f bl 80157e4 <xTaskIncrementTick>
  56122. 8017326: 4603 mov r3, r0
  56123. 8017328: 2b00 cmp r3, #0
  56124. 801732a: d003 beq.n 8017334 <xPortSysTickHandler+0x2c>
  56125. {
  56126. /* A context switch is required. Context switching is performed in
  56127. the PendSV interrupt. Pend the PendSV interrupt. */
  56128. portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
  56129. 801732c: 4b06 ldr r3, [pc, #24] @ (8017348 <xPortSysTickHandler+0x40>)
  56130. 801732e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
  56131. 8017332: 601a str r2, [r3, #0]
  56132. 8017334: 2300 movs r3, #0
  56133. 8017336: 603b str r3, [r7, #0]
  56134. __asm volatile
  56135. 8017338: 683b ldr r3, [r7, #0]
  56136. 801733a: f383 8811 msr BASEPRI, r3
  56137. }
  56138. 801733e: bf00 nop
  56139. }
  56140. }
  56141. portENABLE_INTERRUPTS();
  56142. }
  56143. 8017340: bf00 nop
  56144. 8017342: 3708 adds r7, #8
  56145. 8017344: 46bd mov sp, r7
  56146. 8017346: bd80 pop {r7, pc}
  56147. 8017348: e000ed04 .word 0xe000ed04
  56148. 0801734c <vPortSetupTimerInterrupt>:
  56149. /*
  56150. * Setup the systick timer to generate the tick interrupts at the required
  56151. * frequency.
  56152. */
  56153. __attribute__(( weak )) void vPortSetupTimerInterrupt( void )
  56154. {
  56155. 801734c: b480 push {r7}
  56156. 801734e: af00 add r7, sp, #0
  56157. ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
  56158. }
  56159. #endif /* configUSE_TICKLESS_IDLE */
  56160. /* Stop and clear the SysTick. */
  56161. portNVIC_SYSTICK_CTRL_REG = 0UL;
  56162. 8017350: 4b0b ldr r3, [pc, #44] @ (8017380 <vPortSetupTimerInterrupt+0x34>)
  56163. 8017352: 2200 movs r2, #0
  56164. 8017354: 601a str r2, [r3, #0]
  56165. portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
  56166. 8017356: 4b0b ldr r3, [pc, #44] @ (8017384 <vPortSetupTimerInterrupt+0x38>)
  56167. 8017358: 2200 movs r2, #0
  56168. 801735a: 601a str r2, [r3, #0]
  56169. /* Configure SysTick to interrupt at the requested rate. */
  56170. portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
  56171. 801735c: 4b0a ldr r3, [pc, #40] @ (8017388 <vPortSetupTimerInterrupt+0x3c>)
  56172. 801735e: 681b ldr r3, [r3, #0]
  56173. 8017360: 4a0a ldr r2, [pc, #40] @ (801738c <vPortSetupTimerInterrupt+0x40>)
  56174. 8017362: fba2 2303 umull r2, r3, r2, r3
  56175. 8017366: 099b lsrs r3, r3, #6
  56176. 8017368: 4a09 ldr r2, [pc, #36] @ (8017390 <vPortSetupTimerInterrupt+0x44>)
  56177. 801736a: 3b01 subs r3, #1
  56178. 801736c: 6013 str r3, [r2, #0]
  56179. portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
  56180. 801736e: 4b04 ldr r3, [pc, #16] @ (8017380 <vPortSetupTimerInterrupt+0x34>)
  56181. 8017370: 2207 movs r2, #7
  56182. 8017372: 601a str r2, [r3, #0]
  56183. }
  56184. 8017374: bf00 nop
  56185. 8017376: 46bd mov sp, r7
  56186. 8017378: f85d 7b04 ldr.w r7, [sp], #4
  56187. 801737c: 4770 bx lr
  56188. 801737e: bf00 nop
  56189. 8017380: e000e010 .word 0xe000e010
  56190. 8017384: e000e018 .word 0xe000e018
  56191. 8017388: 24000034 .word 0x24000034
  56192. 801738c: 10624dd3 .word 0x10624dd3
  56193. 8017390: e000e014 .word 0xe000e014
  56194. 08017394 <vPortEnableVFP>:
  56195. /*-----------------------------------------------------------*/
  56196. /* This is a naked function. */
  56197. static void vPortEnableVFP( void )
  56198. {
  56199. __asm volatile
  56200. 8017394: f8df 000c ldr.w r0, [pc, #12] @ 80173a4 <vPortEnableVFP+0x10>
  56201. 8017398: 6801 ldr r1, [r0, #0]
  56202. 801739a: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
  56203. 801739e: 6001 str r1, [r0, #0]
  56204. 80173a0: 4770 bx lr
  56205. " \n"
  56206. " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
  56207. " str r1, [r0] \n"
  56208. " bx r14 "
  56209. );
  56210. }
  56211. 80173a2: bf00 nop
  56212. 80173a4: e000ed88 .word 0xe000ed88
  56213. 080173a8 <vPortValidateInterruptPriority>:
  56214. /*-----------------------------------------------------------*/
  56215. #if( configASSERT_DEFINED == 1 )
  56216. void vPortValidateInterruptPriority( void )
  56217. {
  56218. 80173a8: b480 push {r7}
  56219. 80173aa: b085 sub sp, #20
  56220. 80173ac: af00 add r7, sp, #0
  56221. uint32_t ulCurrentInterrupt;
  56222. uint8_t ucCurrentPriority;
  56223. /* Obtain the number of the currently executing interrupt. */
  56224. __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
  56225. 80173ae: f3ef 8305 mrs r3, IPSR
  56226. 80173b2: 60fb str r3, [r7, #12]
  56227. /* Is the interrupt number a user defined interrupt? */
  56228. if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
  56229. 80173b4: 68fb ldr r3, [r7, #12]
  56230. 80173b6: 2b0f cmp r3, #15
  56231. 80173b8: d915 bls.n 80173e6 <vPortValidateInterruptPriority+0x3e>
  56232. {
  56233. /* Look up the interrupt's priority. */
  56234. ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
  56235. 80173ba: 4a18 ldr r2, [pc, #96] @ (801741c <vPortValidateInterruptPriority+0x74>)
  56236. 80173bc: 68fb ldr r3, [r7, #12]
  56237. 80173be: 4413 add r3, r2
  56238. 80173c0: 781b ldrb r3, [r3, #0]
  56239. 80173c2: 72fb strb r3, [r7, #11]
  56240. interrupt entry is as fast and simple as possible.
  56241. The following links provide detailed information:
  56242. http://www.freertos.org/RTOS-Cortex-M3-M4.html
  56243. http://www.freertos.org/FAQHelp.html */
  56244. configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
  56245. 80173c4: 4b16 ldr r3, [pc, #88] @ (8017420 <vPortValidateInterruptPriority+0x78>)
  56246. 80173c6: 781b ldrb r3, [r3, #0]
  56247. 80173c8: 7afa ldrb r2, [r7, #11]
  56248. 80173ca: 429a cmp r2, r3
  56249. 80173cc: d20b bcs.n 80173e6 <vPortValidateInterruptPriority+0x3e>
  56250. __asm volatile
  56251. 80173ce: f04f 0350 mov.w r3, #80 @ 0x50
  56252. 80173d2: f383 8811 msr BASEPRI, r3
  56253. 80173d6: f3bf 8f6f isb sy
  56254. 80173da: f3bf 8f4f dsb sy
  56255. 80173de: 607b str r3, [r7, #4]
  56256. }
  56257. 80173e0: bf00 nop
  56258. 80173e2: bf00 nop
  56259. 80173e4: e7fd b.n 80173e2 <vPortValidateInterruptPriority+0x3a>
  56260. configuration then the correct setting can be achieved on all Cortex-M
  56261. devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
  56262. scheduler. Note however that some vendor specific peripheral libraries
  56263. assume a non-zero priority group setting, in which cases using a value
  56264. of zero will result in unpredictable behaviour. */
  56265. configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
  56266. 80173e6: 4b0f ldr r3, [pc, #60] @ (8017424 <vPortValidateInterruptPriority+0x7c>)
  56267. 80173e8: 681b ldr r3, [r3, #0]
  56268. 80173ea: f403 62e0 and.w r2, r3, #1792 @ 0x700
  56269. 80173ee: 4b0e ldr r3, [pc, #56] @ (8017428 <vPortValidateInterruptPriority+0x80>)
  56270. 80173f0: 681b ldr r3, [r3, #0]
  56271. 80173f2: 429a cmp r2, r3
  56272. 80173f4: d90b bls.n 801740e <vPortValidateInterruptPriority+0x66>
  56273. __asm volatile
  56274. 80173f6: f04f 0350 mov.w r3, #80 @ 0x50
  56275. 80173fa: f383 8811 msr BASEPRI, r3
  56276. 80173fe: f3bf 8f6f isb sy
  56277. 8017402: f3bf 8f4f dsb sy
  56278. 8017406: 603b str r3, [r7, #0]
  56279. }
  56280. 8017408: bf00 nop
  56281. 801740a: bf00 nop
  56282. 801740c: e7fd b.n 801740a <vPortValidateInterruptPriority+0x62>
  56283. }
  56284. 801740e: bf00 nop
  56285. 8017410: 3714 adds r7, #20
  56286. 8017412: 46bd mov sp, r7
  56287. 8017414: f85d 7b04 ldr.w r7, [sp], #4
  56288. 8017418: 4770 bx lr
  56289. 801741a: bf00 nop
  56290. 801741c: e000e3f0 .word 0xe000e3f0
  56291. 8017420: 24003180 .word 0x24003180
  56292. 8017424: e000ed0c .word 0xe000ed0c
  56293. 8017428: 24003184 .word 0x24003184
  56294. 0801742c <pvPortMalloc>:
  56295. static size_t xBlockAllocatedBit = 0;
  56296. /*-----------------------------------------------------------*/
  56297. void *pvPortMalloc( size_t xWantedSize )
  56298. {
  56299. 801742c: b580 push {r7, lr}
  56300. 801742e: b08a sub sp, #40 @ 0x28
  56301. 8017430: af00 add r7, sp, #0
  56302. 8017432: 6078 str r0, [r7, #4]
  56303. BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
  56304. void *pvReturn = NULL;
  56305. 8017434: 2300 movs r3, #0
  56306. 8017436: 61fb str r3, [r7, #28]
  56307. vTaskSuspendAll();
  56308. 8017438: f7fe f918 bl 801566c <vTaskSuspendAll>
  56309. {
  56310. /* If this is the first call to malloc then the heap will require
  56311. initialisation to setup the list of free blocks. */
  56312. if( pxEnd == NULL )
  56313. 801743c: 4b5c ldr r3, [pc, #368] @ (80175b0 <pvPortMalloc+0x184>)
  56314. 801743e: 681b ldr r3, [r3, #0]
  56315. 8017440: 2b00 cmp r3, #0
  56316. 8017442: d101 bne.n 8017448 <pvPortMalloc+0x1c>
  56317. {
  56318. prvHeapInit();
  56319. 8017444: f000 f924 bl 8017690 <prvHeapInit>
  56320. /* Check the requested block size is not so large that the top bit is
  56321. set. The top bit of the block size member of the BlockLink_t structure
  56322. is used to determine who owns the block - the application or the
  56323. kernel, so it must be free. */
  56324. if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
  56325. 8017448: 4b5a ldr r3, [pc, #360] @ (80175b4 <pvPortMalloc+0x188>)
  56326. 801744a: 681a ldr r2, [r3, #0]
  56327. 801744c: 687b ldr r3, [r7, #4]
  56328. 801744e: 4013 ands r3, r2
  56329. 8017450: 2b00 cmp r3, #0
  56330. 8017452: f040 8095 bne.w 8017580 <pvPortMalloc+0x154>
  56331. {
  56332. /* The wanted size is increased so it can contain a BlockLink_t
  56333. structure in addition to the requested amount of bytes. */
  56334. if( xWantedSize > 0 )
  56335. 8017456: 687b ldr r3, [r7, #4]
  56336. 8017458: 2b00 cmp r3, #0
  56337. 801745a: d01e beq.n 801749a <pvPortMalloc+0x6e>
  56338. {
  56339. xWantedSize += xHeapStructSize;
  56340. 801745c: 2208 movs r2, #8
  56341. 801745e: 687b ldr r3, [r7, #4]
  56342. 8017460: 4413 add r3, r2
  56343. 8017462: 607b str r3, [r7, #4]
  56344. /* Ensure that blocks are always aligned to the required number
  56345. of bytes. */
  56346. if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
  56347. 8017464: 687b ldr r3, [r7, #4]
  56348. 8017466: f003 0307 and.w r3, r3, #7
  56349. 801746a: 2b00 cmp r3, #0
  56350. 801746c: d015 beq.n 801749a <pvPortMalloc+0x6e>
  56351. {
  56352. /* Byte alignment required. */
  56353. xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
  56354. 801746e: 687b ldr r3, [r7, #4]
  56355. 8017470: f023 0307 bic.w r3, r3, #7
  56356. 8017474: 3308 adds r3, #8
  56357. 8017476: 607b str r3, [r7, #4]
  56358. configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
  56359. 8017478: 687b ldr r3, [r7, #4]
  56360. 801747a: f003 0307 and.w r3, r3, #7
  56361. 801747e: 2b00 cmp r3, #0
  56362. 8017480: d00b beq.n 801749a <pvPortMalloc+0x6e>
  56363. __asm volatile
  56364. 8017482: f04f 0350 mov.w r3, #80 @ 0x50
  56365. 8017486: f383 8811 msr BASEPRI, r3
  56366. 801748a: f3bf 8f6f isb sy
  56367. 801748e: f3bf 8f4f dsb sy
  56368. 8017492: 617b str r3, [r7, #20]
  56369. }
  56370. 8017494: bf00 nop
  56371. 8017496: bf00 nop
  56372. 8017498: e7fd b.n 8017496 <pvPortMalloc+0x6a>
  56373. else
  56374. {
  56375. mtCOVERAGE_TEST_MARKER();
  56376. }
  56377. if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
  56378. 801749a: 687b ldr r3, [r7, #4]
  56379. 801749c: 2b00 cmp r3, #0
  56380. 801749e: d06f beq.n 8017580 <pvPortMalloc+0x154>
  56381. 80174a0: 4b45 ldr r3, [pc, #276] @ (80175b8 <pvPortMalloc+0x18c>)
  56382. 80174a2: 681b ldr r3, [r3, #0]
  56383. 80174a4: 687a ldr r2, [r7, #4]
  56384. 80174a6: 429a cmp r2, r3
  56385. 80174a8: d86a bhi.n 8017580 <pvPortMalloc+0x154>
  56386. {
  56387. /* Traverse the list from the start (lowest address) block until
  56388. one of adequate size is found. */
  56389. pxPreviousBlock = &xStart;
  56390. 80174aa: 4b44 ldr r3, [pc, #272] @ (80175bc <pvPortMalloc+0x190>)
  56391. 80174ac: 623b str r3, [r7, #32]
  56392. pxBlock = xStart.pxNextFreeBlock;
  56393. 80174ae: 4b43 ldr r3, [pc, #268] @ (80175bc <pvPortMalloc+0x190>)
  56394. 80174b0: 681b ldr r3, [r3, #0]
  56395. 80174b2: 627b str r3, [r7, #36] @ 0x24
  56396. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  56397. 80174b4: e004 b.n 80174c0 <pvPortMalloc+0x94>
  56398. {
  56399. pxPreviousBlock = pxBlock;
  56400. 80174b6: 6a7b ldr r3, [r7, #36] @ 0x24
  56401. 80174b8: 623b str r3, [r7, #32]
  56402. pxBlock = pxBlock->pxNextFreeBlock;
  56403. 80174ba: 6a7b ldr r3, [r7, #36] @ 0x24
  56404. 80174bc: 681b ldr r3, [r3, #0]
  56405. 80174be: 627b str r3, [r7, #36] @ 0x24
  56406. while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
  56407. 80174c0: 6a7b ldr r3, [r7, #36] @ 0x24
  56408. 80174c2: 685b ldr r3, [r3, #4]
  56409. 80174c4: 687a ldr r2, [r7, #4]
  56410. 80174c6: 429a cmp r2, r3
  56411. 80174c8: d903 bls.n 80174d2 <pvPortMalloc+0xa6>
  56412. 80174ca: 6a7b ldr r3, [r7, #36] @ 0x24
  56413. 80174cc: 681b ldr r3, [r3, #0]
  56414. 80174ce: 2b00 cmp r3, #0
  56415. 80174d0: d1f1 bne.n 80174b6 <pvPortMalloc+0x8a>
  56416. }
  56417. /* If the end marker was reached then a block of adequate size
  56418. was not found. */
  56419. if( pxBlock != pxEnd )
  56420. 80174d2: 4b37 ldr r3, [pc, #220] @ (80175b0 <pvPortMalloc+0x184>)
  56421. 80174d4: 681b ldr r3, [r3, #0]
  56422. 80174d6: 6a7a ldr r2, [r7, #36] @ 0x24
  56423. 80174d8: 429a cmp r2, r3
  56424. 80174da: d051 beq.n 8017580 <pvPortMalloc+0x154>
  56425. {
  56426. /* Return the memory space pointed to - jumping over the
  56427. BlockLink_t structure at its start. */
  56428. pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
  56429. 80174dc: 6a3b ldr r3, [r7, #32]
  56430. 80174de: 681b ldr r3, [r3, #0]
  56431. 80174e0: 2208 movs r2, #8
  56432. 80174e2: 4413 add r3, r2
  56433. 80174e4: 61fb str r3, [r7, #28]
  56434. /* This block is being returned for use so must be taken out
  56435. of the list of free blocks. */
  56436. pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
  56437. 80174e6: 6a7b ldr r3, [r7, #36] @ 0x24
  56438. 80174e8: 681a ldr r2, [r3, #0]
  56439. 80174ea: 6a3b ldr r3, [r7, #32]
  56440. 80174ec: 601a str r2, [r3, #0]
  56441. /* If the block is larger than required it can be split into
  56442. two. */
  56443. if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
  56444. 80174ee: 6a7b ldr r3, [r7, #36] @ 0x24
  56445. 80174f0: 685a ldr r2, [r3, #4]
  56446. 80174f2: 687b ldr r3, [r7, #4]
  56447. 80174f4: 1ad2 subs r2, r2, r3
  56448. 80174f6: 2308 movs r3, #8
  56449. 80174f8: 005b lsls r3, r3, #1
  56450. 80174fa: 429a cmp r2, r3
  56451. 80174fc: d920 bls.n 8017540 <pvPortMalloc+0x114>
  56452. {
  56453. /* This block is to be split into two. Create a new
  56454. block following the number of bytes requested. The void
  56455. cast is used to prevent byte alignment warnings from the
  56456. compiler. */
  56457. pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
  56458. 80174fe: 6a7a ldr r2, [r7, #36] @ 0x24
  56459. 8017500: 687b ldr r3, [r7, #4]
  56460. 8017502: 4413 add r3, r2
  56461. 8017504: 61bb str r3, [r7, #24]
  56462. configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
  56463. 8017506: 69bb ldr r3, [r7, #24]
  56464. 8017508: f003 0307 and.w r3, r3, #7
  56465. 801750c: 2b00 cmp r3, #0
  56466. 801750e: d00b beq.n 8017528 <pvPortMalloc+0xfc>
  56467. __asm volatile
  56468. 8017510: f04f 0350 mov.w r3, #80 @ 0x50
  56469. 8017514: f383 8811 msr BASEPRI, r3
  56470. 8017518: f3bf 8f6f isb sy
  56471. 801751c: f3bf 8f4f dsb sy
  56472. 8017520: 613b str r3, [r7, #16]
  56473. }
  56474. 8017522: bf00 nop
  56475. 8017524: bf00 nop
  56476. 8017526: e7fd b.n 8017524 <pvPortMalloc+0xf8>
  56477. /* Calculate the sizes of two blocks split from the
  56478. single block. */
  56479. pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
  56480. 8017528: 6a7b ldr r3, [r7, #36] @ 0x24
  56481. 801752a: 685a ldr r2, [r3, #4]
  56482. 801752c: 687b ldr r3, [r7, #4]
  56483. 801752e: 1ad2 subs r2, r2, r3
  56484. 8017530: 69bb ldr r3, [r7, #24]
  56485. 8017532: 605a str r2, [r3, #4]
  56486. pxBlock->xBlockSize = xWantedSize;
  56487. 8017534: 6a7b ldr r3, [r7, #36] @ 0x24
  56488. 8017536: 687a ldr r2, [r7, #4]
  56489. 8017538: 605a str r2, [r3, #4]
  56490. /* Insert the new block into the list of free blocks. */
  56491. prvInsertBlockIntoFreeList( pxNewBlockLink );
  56492. 801753a: 69b8 ldr r0, [r7, #24]
  56493. 801753c: f000 f90a bl 8017754 <prvInsertBlockIntoFreeList>
  56494. else
  56495. {
  56496. mtCOVERAGE_TEST_MARKER();
  56497. }
  56498. xFreeBytesRemaining -= pxBlock->xBlockSize;
  56499. 8017540: 4b1d ldr r3, [pc, #116] @ (80175b8 <pvPortMalloc+0x18c>)
  56500. 8017542: 681a ldr r2, [r3, #0]
  56501. 8017544: 6a7b ldr r3, [r7, #36] @ 0x24
  56502. 8017546: 685b ldr r3, [r3, #4]
  56503. 8017548: 1ad3 subs r3, r2, r3
  56504. 801754a: 4a1b ldr r2, [pc, #108] @ (80175b8 <pvPortMalloc+0x18c>)
  56505. 801754c: 6013 str r3, [r2, #0]
  56506. if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
  56507. 801754e: 4b1a ldr r3, [pc, #104] @ (80175b8 <pvPortMalloc+0x18c>)
  56508. 8017550: 681a ldr r2, [r3, #0]
  56509. 8017552: 4b1b ldr r3, [pc, #108] @ (80175c0 <pvPortMalloc+0x194>)
  56510. 8017554: 681b ldr r3, [r3, #0]
  56511. 8017556: 429a cmp r2, r3
  56512. 8017558: d203 bcs.n 8017562 <pvPortMalloc+0x136>
  56513. {
  56514. xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
  56515. 801755a: 4b17 ldr r3, [pc, #92] @ (80175b8 <pvPortMalloc+0x18c>)
  56516. 801755c: 681b ldr r3, [r3, #0]
  56517. 801755e: 4a18 ldr r2, [pc, #96] @ (80175c0 <pvPortMalloc+0x194>)
  56518. 8017560: 6013 str r3, [r2, #0]
  56519. mtCOVERAGE_TEST_MARKER();
  56520. }
  56521. /* The block is being returned - it is allocated and owned
  56522. by the application and has no "next" block. */
  56523. pxBlock->xBlockSize |= xBlockAllocatedBit;
  56524. 8017562: 6a7b ldr r3, [r7, #36] @ 0x24
  56525. 8017564: 685a ldr r2, [r3, #4]
  56526. 8017566: 4b13 ldr r3, [pc, #76] @ (80175b4 <pvPortMalloc+0x188>)
  56527. 8017568: 681b ldr r3, [r3, #0]
  56528. 801756a: 431a orrs r2, r3
  56529. 801756c: 6a7b ldr r3, [r7, #36] @ 0x24
  56530. 801756e: 605a str r2, [r3, #4]
  56531. pxBlock->pxNextFreeBlock = NULL;
  56532. 8017570: 6a7b ldr r3, [r7, #36] @ 0x24
  56533. 8017572: 2200 movs r2, #0
  56534. 8017574: 601a str r2, [r3, #0]
  56535. xNumberOfSuccessfulAllocations++;
  56536. 8017576: 4b13 ldr r3, [pc, #76] @ (80175c4 <pvPortMalloc+0x198>)
  56537. 8017578: 681b ldr r3, [r3, #0]
  56538. 801757a: 3301 adds r3, #1
  56539. 801757c: 4a11 ldr r2, [pc, #68] @ (80175c4 <pvPortMalloc+0x198>)
  56540. 801757e: 6013 str r3, [r2, #0]
  56541. mtCOVERAGE_TEST_MARKER();
  56542. }
  56543. traceMALLOC( pvReturn, xWantedSize );
  56544. }
  56545. ( void ) xTaskResumeAll();
  56546. 8017580: f7fe f882 bl 8015688 <xTaskResumeAll>
  56547. mtCOVERAGE_TEST_MARKER();
  56548. }
  56549. }
  56550. #endif
  56551. configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
  56552. 8017584: 69fb ldr r3, [r7, #28]
  56553. 8017586: f003 0307 and.w r3, r3, #7
  56554. 801758a: 2b00 cmp r3, #0
  56555. 801758c: d00b beq.n 80175a6 <pvPortMalloc+0x17a>
  56556. __asm volatile
  56557. 801758e: f04f 0350 mov.w r3, #80 @ 0x50
  56558. 8017592: f383 8811 msr BASEPRI, r3
  56559. 8017596: f3bf 8f6f isb sy
  56560. 801759a: f3bf 8f4f dsb sy
  56561. 801759e: 60fb str r3, [r7, #12]
  56562. }
  56563. 80175a0: bf00 nop
  56564. 80175a2: bf00 nop
  56565. 80175a4: e7fd b.n 80175a2 <pvPortMalloc+0x176>
  56566. return pvReturn;
  56567. 80175a6: 69fb ldr r3, [r7, #28]
  56568. }
  56569. 80175a8: 4618 mov r0, r3
  56570. 80175aa: 3728 adds r7, #40 @ 0x28
  56571. 80175ac: 46bd mov sp, r7
  56572. 80175ae: bd80 pop {r7, pc}
  56573. 80175b0: 24013190 .word 0x24013190
  56574. 80175b4: 240131a4 .word 0x240131a4
  56575. 80175b8: 24013194 .word 0x24013194
  56576. 80175bc: 24013188 .word 0x24013188
  56577. 80175c0: 24013198 .word 0x24013198
  56578. 80175c4: 2401319c .word 0x2401319c
  56579. 080175c8 <vPortFree>:
  56580. /*-----------------------------------------------------------*/
  56581. void vPortFree( void *pv )
  56582. {
  56583. 80175c8: b580 push {r7, lr}
  56584. 80175ca: b086 sub sp, #24
  56585. 80175cc: af00 add r7, sp, #0
  56586. 80175ce: 6078 str r0, [r7, #4]
  56587. uint8_t *puc = ( uint8_t * ) pv;
  56588. 80175d0: 687b ldr r3, [r7, #4]
  56589. 80175d2: 617b str r3, [r7, #20]
  56590. BlockLink_t *pxLink;
  56591. if( pv != NULL )
  56592. 80175d4: 687b ldr r3, [r7, #4]
  56593. 80175d6: 2b00 cmp r3, #0
  56594. 80175d8: d04f beq.n 801767a <vPortFree+0xb2>
  56595. {
  56596. /* The memory being freed will have an BlockLink_t structure immediately
  56597. before it. */
  56598. puc -= xHeapStructSize;
  56599. 80175da: 2308 movs r3, #8
  56600. 80175dc: 425b negs r3, r3
  56601. 80175de: 697a ldr r2, [r7, #20]
  56602. 80175e0: 4413 add r3, r2
  56603. 80175e2: 617b str r3, [r7, #20]
  56604. /* This casting is to keep the compiler from issuing warnings. */
  56605. pxLink = ( void * ) puc;
  56606. 80175e4: 697b ldr r3, [r7, #20]
  56607. 80175e6: 613b str r3, [r7, #16]
  56608. /* Check the block is actually allocated. */
  56609. configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
  56610. 80175e8: 693b ldr r3, [r7, #16]
  56611. 80175ea: 685a ldr r2, [r3, #4]
  56612. 80175ec: 4b25 ldr r3, [pc, #148] @ (8017684 <vPortFree+0xbc>)
  56613. 80175ee: 681b ldr r3, [r3, #0]
  56614. 80175f0: 4013 ands r3, r2
  56615. 80175f2: 2b00 cmp r3, #0
  56616. 80175f4: d10b bne.n 801760e <vPortFree+0x46>
  56617. __asm volatile
  56618. 80175f6: f04f 0350 mov.w r3, #80 @ 0x50
  56619. 80175fa: f383 8811 msr BASEPRI, r3
  56620. 80175fe: f3bf 8f6f isb sy
  56621. 8017602: f3bf 8f4f dsb sy
  56622. 8017606: 60fb str r3, [r7, #12]
  56623. }
  56624. 8017608: bf00 nop
  56625. 801760a: bf00 nop
  56626. 801760c: e7fd b.n 801760a <vPortFree+0x42>
  56627. configASSERT( pxLink->pxNextFreeBlock == NULL );
  56628. 801760e: 693b ldr r3, [r7, #16]
  56629. 8017610: 681b ldr r3, [r3, #0]
  56630. 8017612: 2b00 cmp r3, #0
  56631. 8017614: d00b beq.n 801762e <vPortFree+0x66>
  56632. __asm volatile
  56633. 8017616: f04f 0350 mov.w r3, #80 @ 0x50
  56634. 801761a: f383 8811 msr BASEPRI, r3
  56635. 801761e: f3bf 8f6f isb sy
  56636. 8017622: f3bf 8f4f dsb sy
  56637. 8017626: 60bb str r3, [r7, #8]
  56638. }
  56639. 8017628: bf00 nop
  56640. 801762a: bf00 nop
  56641. 801762c: e7fd b.n 801762a <vPortFree+0x62>
  56642. if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
  56643. 801762e: 693b ldr r3, [r7, #16]
  56644. 8017630: 685a ldr r2, [r3, #4]
  56645. 8017632: 4b14 ldr r3, [pc, #80] @ (8017684 <vPortFree+0xbc>)
  56646. 8017634: 681b ldr r3, [r3, #0]
  56647. 8017636: 4013 ands r3, r2
  56648. 8017638: 2b00 cmp r3, #0
  56649. 801763a: d01e beq.n 801767a <vPortFree+0xb2>
  56650. {
  56651. if( pxLink->pxNextFreeBlock == NULL )
  56652. 801763c: 693b ldr r3, [r7, #16]
  56653. 801763e: 681b ldr r3, [r3, #0]
  56654. 8017640: 2b00 cmp r3, #0
  56655. 8017642: d11a bne.n 801767a <vPortFree+0xb2>
  56656. {
  56657. /* The block is being returned to the heap - it is no longer
  56658. allocated. */
  56659. pxLink->xBlockSize &= ~xBlockAllocatedBit;
  56660. 8017644: 693b ldr r3, [r7, #16]
  56661. 8017646: 685a ldr r2, [r3, #4]
  56662. 8017648: 4b0e ldr r3, [pc, #56] @ (8017684 <vPortFree+0xbc>)
  56663. 801764a: 681b ldr r3, [r3, #0]
  56664. 801764c: 43db mvns r3, r3
  56665. 801764e: 401a ands r2, r3
  56666. 8017650: 693b ldr r3, [r7, #16]
  56667. 8017652: 605a str r2, [r3, #4]
  56668. vTaskSuspendAll();
  56669. 8017654: f7fe f80a bl 801566c <vTaskSuspendAll>
  56670. {
  56671. /* Add this block to the list of free blocks. */
  56672. xFreeBytesRemaining += pxLink->xBlockSize;
  56673. 8017658: 693b ldr r3, [r7, #16]
  56674. 801765a: 685a ldr r2, [r3, #4]
  56675. 801765c: 4b0a ldr r3, [pc, #40] @ (8017688 <vPortFree+0xc0>)
  56676. 801765e: 681b ldr r3, [r3, #0]
  56677. 8017660: 4413 add r3, r2
  56678. 8017662: 4a09 ldr r2, [pc, #36] @ (8017688 <vPortFree+0xc0>)
  56679. 8017664: 6013 str r3, [r2, #0]
  56680. traceFREE( pv, pxLink->xBlockSize );
  56681. prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
  56682. 8017666: 6938 ldr r0, [r7, #16]
  56683. 8017668: f000 f874 bl 8017754 <prvInsertBlockIntoFreeList>
  56684. xNumberOfSuccessfulFrees++;
  56685. 801766c: 4b07 ldr r3, [pc, #28] @ (801768c <vPortFree+0xc4>)
  56686. 801766e: 681b ldr r3, [r3, #0]
  56687. 8017670: 3301 adds r3, #1
  56688. 8017672: 4a06 ldr r2, [pc, #24] @ (801768c <vPortFree+0xc4>)
  56689. 8017674: 6013 str r3, [r2, #0]
  56690. }
  56691. ( void ) xTaskResumeAll();
  56692. 8017676: f7fe f807 bl 8015688 <xTaskResumeAll>
  56693. else
  56694. {
  56695. mtCOVERAGE_TEST_MARKER();
  56696. }
  56697. }
  56698. }
  56699. 801767a: bf00 nop
  56700. 801767c: 3718 adds r7, #24
  56701. 801767e: 46bd mov sp, r7
  56702. 8017680: bd80 pop {r7, pc}
  56703. 8017682: bf00 nop
  56704. 8017684: 240131a4 .word 0x240131a4
  56705. 8017688: 24013194 .word 0x24013194
  56706. 801768c: 240131a0 .word 0x240131a0
  56707. 08017690 <prvHeapInit>:
  56708. /* This just exists to keep the linker quiet. */
  56709. }
  56710. /*-----------------------------------------------------------*/
  56711. static void prvHeapInit( void )
  56712. {
  56713. 8017690: b480 push {r7}
  56714. 8017692: b085 sub sp, #20
  56715. 8017694: af00 add r7, sp, #0
  56716. BlockLink_t *pxFirstFreeBlock;
  56717. uint8_t *pucAlignedHeap;
  56718. size_t uxAddress;
  56719. size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
  56720. 8017696: f44f 3380 mov.w r3, #65536 @ 0x10000
  56721. 801769a: 60bb str r3, [r7, #8]
  56722. /* Ensure the heap starts on a correctly aligned boundary. */
  56723. uxAddress = ( size_t ) ucHeap;
  56724. 801769c: 4b27 ldr r3, [pc, #156] @ (801773c <prvHeapInit+0xac>)
  56725. 801769e: 60fb str r3, [r7, #12]
  56726. if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
  56727. 80176a0: 68fb ldr r3, [r7, #12]
  56728. 80176a2: f003 0307 and.w r3, r3, #7
  56729. 80176a6: 2b00 cmp r3, #0
  56730. 80176a8: d00c beq.n 80176c4 <prvHeapInit+0x34>
  56731. {
  56732. uxAddress += ( portBYTE_ALIGNMENT - 1 );
  56733. 80176aa: 68fb ldr r3, [r7, #12]
  56734. 80176ac: 3307 adds r3, #7
  56735. 80176ae: 60fb str r3, [r7, #12]
  56736. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  56737. 80176b0: 68fb ldr r3, [r7, #12]
  56738. 80176b2: f023 0307 bic.w r3, r3, #7
  56739. 80176b6: 60fb str r3, [r7, #12]
  56740. xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
  56741. 80176b8: 68ba ldr r2, [r7, #8]
  56742. 80176ba: 68fb ldr r3, [r7, #12]
  56743. 80176bc: 1ad3 subs r3, r2, r3
  56744. 80176be: 4a1f ldr r2, [pc, #124] @ (801773c <prvHeapInit+0xac>)
  56745. 80176c0: 4413 add r3, r2
  56746. 80176c2: 60bb str r3, [r7, #8]
  56747. }
  56748. pucAlignedHeap = ( uint8_t * ) uxAddress;
  56749. 80176c4: 68fb ldr r3, [r7, #12]
  56750. 80176c6: 607b str r3, [r7, #4]
  56751. /* xStart is used to hold a pointer to the first item in the list of free
  56752. blocks. The void cast is used to prevent compiler warnings. */
  56753. xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
  56754. 80176c8: 4a1d ldr r2, [pc, #116] @ (8017740 <prvHeapInit+0xb0>)
  56755. 80176ca: 687b ldr r3, [r7, #4]
  56756. 80176cc: 6013 str r3, [r2, #0]
  56757. xStart.xBlockSize = ( size_t ) 0;
  56758. 80176ce: 4b1c ldr r3, [pc, #112] @ (8017740 <prvHeapInit+0xb0>)
  56759. 80176d0: 2200 movs r2, #0
  56760. 80176d2: 605a str r2, [r3, #4]
  56761. /* pxEnd is used to mark the end of the list of free blocks and is inserted
  56762. at the end of the heap space. */
  56763. uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
  56764. 80176d4: 687b ldr r3, [r7, #4]
  56765. 80176d6: 68ba ldr r2, [r7, #8]
  56766. 80176d8: 4413 add r3, r2
  56767. 80176da: 60fb str r3, [r7, #12]
  56768. uxAddress -= xHeapStructSize;
  56769. 80176dc: 2208 movs r2, #8
  56770. 80176de: 68fb ldr r3, [r7, #12]
  56771. 80176e0: 1a9b subs r3, r3, r2
  56772. 80176e2: 60fb str r3, [r7, #12]
  56773. uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
  56774. 80176e4: 68fb ldr r3, [r7, #12]
  56775. 80176e6: f023 0307 bic.w r3, r3, #7
  56776. 80176ea: 60fb str r3, [r7, #12]
  56777. pxEnd = ( void * ) uxAddress;
  56778. 80176ec: 68fb ldr r3, [r7, #12]
  56779. 80176ee: 4a15 ldr r2, [pc, #84] @ (8017744 <prvHeapInit+0xb4>)
  56780. 80176f0: 6013 str r3, [r2, #0]
  56781. pxEnd->xBlockSize = 0;
  56782. 80176f2: 4b14 ldr r3, [pc, #80] @ (8017744 <prvHeapInit+0xb4>)
  56783. 80176f4: 681b ldr r3, [r3, #0]
  56784. 80176f6: 2200 movs r2, #0
  56785. 80176f8: 605a str r2, [r3, #4]
  56786. pxEnd->pxNextFreeBlock = NULL;
  56787. 80176fa: 4b12 ldr r3, [pc, #72] @ (8017744 <prvHeapInit+0xb4>)
  56788. 80176fc: 681b ldr r3, [r3, #0]
  56789. 80176fe: 2200 movs r2, #0
  56790. 8017700: 601a str r2, [r3, #0]
  56791. /* To start with there is a single free block that is sized to take up the
  56792. entire heap space, minus the space taken by pxEnd. */
  56793. pxFirstFreeBlock = ( void * ) pucAlignedHeap;
  56794. 8017702: 687b ldr r3, [r7, #4]
  56795. 8017704: 603b str r3, [r7, #0]
  56796. pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
  56797. 8017706: 683b ldr r3, [r7, #0]
  56798. 8017708: 68fa ldr r2, [r7, #12]
  56799. 801770a: 1ad2 subs r2, r2, r3
  56800. 801770c: 683b ldr r3, [r7, #0]
  56801. 801770e: 605a str r2, [r3, #4]
  56802. pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
  56803. 8017710: 4b0c ldr r3, [pc, #48] @ (8017744 <prvHeapInit+0xb4>)
  56804. 8017712: 681a ldr r2, [r3, #0]
  56805. 8017714: 683b ldr r3, [r7, #0]
  56806. 8017716: 601a str r2, [r3, #0]
  56807. /* Only one block exists - and it covers the entire usable heap space. */
  56808. xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  56809. 8017718: 683b ldr r3, [r7, #0]
  56810. 801771a: 685b ldr r3, [r3, #4]
  56811. 801771c: 4a0a ldr r2, [pc, #40] @ (8017748 <prvHeapInit+0xb8>)
  56812. 801771e: 6013 str r3, [r2, #0]
  56813. xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
  56814. 8017720: 683b ldr r3, [r7, #0]
  56815. 8017722: 685b ldr r3, [r3, #4]
  56816. 8017724: 4a09 ldr r2, [pc, #36] @ (801774c <prvHeapInit+0xbc>)
  56817. 8017726: 6013 str r3, [r2, #0]
  56818. /* Work out the position of the top bit in a size_t variable. */
  56819. xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
  56820. 8017728: 4b09 ldr r3, [pc, #36] @ (8017750 <prvHeapInit+0xc0>)
  56821. 801772a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
  56822. 801772e: 601a str r2, [r3, #0]
  56823. }
  56824. 8017730: bf00 nop
  56825. 8017732: 3714 adds r7, #20
  56826. 8017734: 46bd mov sp, r7
  56827. 8017736: f85d 7b04 ldr.w r7, [sp], #4
  56828. 801773a: 4770 bx lr
  56829. 801773c: 24003188 .word 0x24003188
  56830. 8017740: 24013188 .word 0x24013188
  56831. 8017744: 24013190 .word 0x24013190
  56832. 8017748: 24013198 .word 0x24013198
  56833. 801774c: 24013194 .word 0x24013194
  56834. 8017750: 240131a4 .word 0x240131a4
  56835. 08017754 <prvInsertBlockIntoFreeList>:
  56836. /*-----------------------------------------------------------*/
  56837. static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
  56838. {
  56839. 8017754: b480 push {r7}
  56840. 8017756: b085 sub sp, #20
  56841. 8017758: af00 add r7, sp, #0
  56842. 801775a: 6078 str r0, [r7, #4]
  56843. BlockLink_t *pxIterator;
  56844. uint8_t *puc;
  56845. /* Iterate through the list until a block is found that has a higher address
  56846. than the block being inserted. */
  56847. for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
  56848. 801775c: 4b28 ldr r3, [pc, #160] @ (8017800 <prvInsertBlockIntoFreeList+0xac>)
  56849. 801775e: 60fb str r3, [r7, #12]
  56850. 8017760: e002 b.n 8017768 <prvInsertBlockIntoFreeList+0x14>
  56851. 8017762: 68fb ldr r3, [r7, #12]
  56852. 8017764: 681b ldr r3, [r3, #0]
  56853. 8017766: 60fb str r3, [r7, #12]
  56854. 8017768: 68fb ldr r3, [r7, #12]
  56855. 801776a: 681b ldr r3, [r3, #0]
  56856. 801776c: 687a ldr r2, [r7, #4]
  56857. 801776e: 429a cmp r2, r3
  56858. 8017770: d8f7 bhi.n 8017762 <prvInsertBlockIntoFreeList+0xe>
  56859. /* Nothing to do here, just iterate to the right position. */
  56860. }
  56861. /* Do the block being inserted, and the block it is being inserted after
  56862. make a contiguous block of memory? */
  56863. puc = ( uint8_t * ) pxIterator;
  56864. 8017772: 68fb ldr r3, [r7, #12]
  56865. 8017774: 60bb str r3, [r7, #8]
  56866. if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
  56867. 8017776: 68fb ldr r3, [r7, #12]
  56868. 8017778: 685b ldr r3, [r3, #4]
  56869. 801777a: 68ba ldr r2, [r7, #8]
  56870. 801777c: 4413 add r3, r2
  56871. 801777e: 687a ldr r2, [r7, #4]
  56872. 8017780: 429a cmp r2, r3
  56873. 8017782: d108 bne.n 8017796 <prvInsertBlockIntoFreeList+0x42>
  56874. {
  56875. pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
  56876. 8017784: 68fb ldr r3, [r7, #12]
  56877. 8017786: 685a ldr r2, [r3, #4]
  56878. 8017788: 687b ldr r3, [r7, #4]
  56879. 801778a: 685b ldr r3, [r3, #4]
  56880. 801778c: 441a add r2, r3
  56881. 801778e: 68fb ldr r3, [r7, #12]
  56882. 8017790: 605a str r2, [r3, #4]
  56883. pxBlockToInsert = pxIterator;
  56884. 8017792: 68fb ldr r3, [r7, #12]
  56885. 8017794: 607b str r3, [r7, #4]
  56886. mtCOVERAGE_TEST_MARKER();
  56887. }
  56888. /* Do the block being inserted, and the block it is being inserted before
  56889. make a contiguous block of memory? */
  56890. puc = ( uint8_t * ) pxBlockToInsert;
  56891. 8017796: 687b ldr r3, [r7, #4]
  56892. 8017798: 60bb str r3, [r7, #8]
  56893. if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
  56894. 801779a: 687b ldr r3, [r7, #4]
  56895. 801779c: 685b ldr r3, [r3, #4]
  56896. 801779e: 68ba ldr r2, [r7, #8]
  56897. 80177a0: 441a add r2, r3
  56898. 80177a2: 68fb ldr r3, [r7, #12]
  56899. 80177a4: 681b ldr r3, [r3, #0]
  56900. 80177a6: 429a cmp r2, r3
  56901. 80177a8: d118 bne.n 80177dc <prvInsertBlockIntoFreeList+0x88>
  56902. {
  56903. if( pxIterator->pxNextFreeBlock != pxEnd )
  56904. 80177aa: 68fb ldr r3, [r7, #12]
  56905. 80177ac: 681a ldr r2, [r3, #0]
  56906. 80177ae: 4b15 ldr r3, [pc, #84] @ (8017804 <prvInsertBlockIntoFreeList+0xb0>)
  56907. 80177b0: 681b ldr r3, [r3, #0]
  56908. 80177b2: 429a cmp r2, r3
  56909. 80177b4: d00d beq.n 80177d2 <prvInsertBlockIntoFreeList+0x7e>
  56910. {
  56911. /* Form one big block from the two blocks. */
  56912. pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
  56913. 80177b6: 687b ldr r3, [r7, #4]
  56914. 80177b8: 685a ldr r2, [r3, #4]
  56915. 80177ba: 68fb ldr r3, [r7, #12]
  56916. 80177bc: 681b ldr r3, [r3, #0]
  56917. 80177be: 685b ldr r3, [r3, #4]
  56918. 80177c0: 441a add r2, r3
  56919. 80177c2: 687b ldr r3, [r7, #4]
  56920. 80177c4: 605a str r2, [r3, #4]
  56921. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
  56922. 80177c6: 68fb ldr r3, [r7, #12]
  56923. 80177c8: 681b ldr r3, [r3, #0]
  56924. 80177ca: 681a ldr r2, [r3, #0]
  56925. 80177cc: 687b ldr r3, [r7, #4]
  56926. 80177ce: 601a str r2, [r3, #0]
  56927. 80177d0: e008 b.n 80177e4 <prvInsertBlockIntoFreeList+0x90>
  56928. }
  56929. else
  56930. {
  56931. pxBlockToInsert->pxNextFreeBlock = pxEnd;
  56932. 80177d2: 4b0c ldr r3, [pc, #48] @ (8017804 <prvInsertBlockIntoFreeList+0xb0>)
  56933. 80177d4: 681a ldr r2, [r3, #0]
  56934. 80177d6: 687b ldr r3, [r7, #4]
  56935. 80177d8: 601a str r2, [r3, #0]
  56936. 80177da: e003 b.n 80177e4 <prvInsertBlockIntoFreeList+0x90>
  56937. }
  56938. }
  56939. else
  56940. {
  56941. pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
  56942. 80177dc: 68fb ldr r3, [r7, #12]
  56943. 80177de: 681a ldr r2, [r3, #0]
  56944. 80177e0: 687b ldr r3, [r7, #4]
  56945. 80177e2: 601a str r2, [r3, #0]
  56946. /* If the block being inserted plugged a gab, so was merged with the block
  56947. before and the block after, then it's pxNextFreeBlock pointer will have
  56948. already been set, and should not be set here as that would make it point
  56949. to itself. */
  56950. if( pxIterator != pxBlockToInsert )
  56951. 80177e4: 68fa ldr r2, [r7, #12]
  56952. 80177e6: 687b ldr r3, [r7, #4]
  56953. 80177e8: 429a cmp r2, r3
  56954. 80177ea: d002 beq.n 80177f2 <prvInsertBlockIntoFreeList+0x9e>
  56955. {
  56956. pxIterator->pxNextFreeBlock = pxBlockToInsert;
  56957. 80177ec: 68fb ldr r3, [r7, #12]
  56958. 80177ee: 687a ldr r2, [r7, #4]
  56959. 80177f0: 601a str r2, [r3, #0]
  56960. }
  56961. else
  56962. {
  56963. mtCOVERAGE_TEST_MARKER();
  56964. }
  56965. }
  56966. 80177f2: bf00 nop
  56967. 80177f4: 3714 adds r7, #20
  56968. 80177f6: 46bd mov sp, r7
  56969. 80177f8: f85d 7b04 ldr.w r7, [sp], #4
  56970. 80177fc: 4770 bx lr
  56971. 80177fe: bf00 nop
  56972. 8017800: 24013188 .word 0x24013188
  56973. 8017804: 24013190 .word 0x24013190
  56974. 08017808 <__cvt>:
  56975. 8017808: b5f0 push {r4, r5, r6, r7, lr}
  56976. 801780a: ed2d 8b02 vpush {d8}
  56977. 801780e: eeb0 8b40 vmov.f64 d8, d0
  56978. 8017812: b085 sub sp, #20
  56979. 8017814: 4617 mov r7, r2
  56980. 8017816: 9d0d ldr r5, [sp, #52] @ 0x34
  56981. 8017818: 9e0c ldr r6, [sp, #48] @ 0x30
  56982. 801781a: ee18 2a90 vmov r2, s17
  56983. 801781e: f025 0520 bic.w r5, r5, #32
  56984. 8017822: 2a00 cmp r2, #0
  56985. 8017824: bfb6 itet lt
  56986. 8017826: 222d movlt r2, #45 @ 0x2d
  56987. 8017828: 2200 movge r2, #0
  56988. 801782a: eeb1 8b40 vneglt.f64 d8, d0
  56989. 801782e: 2d46 cmp r5, #70 @ 0x46
  56990. 8017830: 460c mov r4, r1
  56991. 8017832: 701a strb r2, [r3, #0]
  56992. 8017834: d004 beq.n 8017840 <__cvt+0x38>
  56993. 8017836: 2d45 cmp r5, #69 @ 0x45
  56994. 8017838: d100 bne.n 801783c <__cvt+0x34>
  56995. 801783a: 3401 adds r4, #1
  56996. 801783c: 2102 movs r1, #2
  56997. 801783e: e000 b.n 8017842 <__cvt+0x3a>
  56998. 8017840: 2103 movs r1, #3
  56999. 8017842: ab03 add r3, sp, #12
  57000. 8017844: 9301 str r3, [sp, #4]
  57001. 8017846: ab02 add r3, sp, #8
  57002. 8017848: 9300 str r3, [sp, #0]
  57003. 801784a: 4622 mov r2, r4
  57004. 801784c: 4633 mov r3, r6
  57005. 801784e: eeb0 0b48 vmov.f64 d0, d8
  57006. 8017852: f000 ff75 bl 8018740 <_dtoa_r>
  57007. 8017856: 2d47 cmp r5, #71 @ 0x47
  57008. 8017858: d114 bne.n 8017884 <__cvt+0x7c>
  57009. 801785a: 07fb lsls r3, r7, #31
  57010. 801785c: d50a bpl.n 8017874 <__cvt+0x6c>
  57011. 801785e: 1902 adds r2, r0, r4
  57012. 8017860: eeb5 8b40 vcmp.f64 d8, #0.0
  57013. 8017864: eef1 fa10 vmrs APSR_nzcv, fpscr
  57014. 8017868: bf08 it eq
  57015. 801786a: 9203 streq r2, [sp, #12]
  57016. 801786c: 2130 movs r1, #48 @ 0x30
  57017. 801786e: 9b03 ldr r3, [sp, #12]
  57018. 8017870: 4293 cmp r3, r2
  57019. 8017872: d319 bcc.n 80178a8 <__cvt+0xa0>
  57020. 8017874: 9b03 ldr r3, [sp, #12]
  57021. 8017876: 9a0e ldr r2, [sp, #56] @ 0x38
  57022. 8017878: 1a1b subs r3, r3, r0
  57023. 801787a: 6013 str r3, [r2, #0]
  57024. 801787c: b005 add sp, #20
  57025. 801787e: ecbd 8b02 vpop {d8}
  57026. 8017882: bdf0 pop {r4, r5, r6, r7, pc}
  57027. 8017884: 2d46 cmp r5, #70 @ 0x46
  57028. 8017886: eb00 0204 add.w r2, r0, r4
  57029. 801788a: d1e9 bne.n 8017860 <__cvt+0x58>
  57030. 801788c: 7803 ldrb r3, [r0, #0]
  57031. 801788e: 2b30 cmp r3, #48 @ 0x30
  57032. 8017890: d107 bne.n 80178a2 <__cvt+0x9a>
  57033. 8017892: eeb5 8b40 vcmp.f64 d8, #0.0
  57034. 8017896: eef1 fa10 vmrs APSR_nzcv, fpscr
  57035. 801789a: bf1c itt ne
  57036. 801789c: f1c4 0401 rsbne r4, r4, #1
  57037. 80178a0: 6034 strne r4, [r6, #0]
  57038. 80178a2: 6833 ldr r3, [r6, #0]
  57039. 80178a4: 441a add r2, r3
  57040. 80178a6: e7db b.n 8017860 <__cvt+0x58>
  57041. 80178a8: 1c5c adds r4, r3, #1
  57042. 80178aa: 9403 str r4, [sp, #12]
  57043. 80178ac: 7019 strb r1, [r3, #0]
  57044. 80178ae: e7de b.n 801786e <__cvt+0x66>
  57045. 080178b0 <__exponent>:
  57046. 80178b0: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  57047. 80178b2: 2900 cmp r1, #0
  57048. 80178b4: bfba itte lt
  57049. 80178b6: 4249 neglt r1, r1
  57050. 80178b8: 232d movlt r3, #45 @ 0x2d
  57051. 80178ba: 232b movge r3, #43 @ 0x2b
  57052. 80178bc: 2909 cmp r1, #9
  57053. 80178be: 7002 strb r2, [r0, #0]
  57054. 80178c0: 7043 strb r3, [r0, #1]
  57055. 80178c2: dd29 ble.n 8017918 <__exponent+0x68>
  57056. 80178c4: f10d 0307 add.w r3, sp, #7
  57057. 80178c8: 461d mov r5, r3
  57058. 80178ca: 270a movs r7, #10
  57059. 80178cc: 461a mov r2, r3
  57060. 80178ce: fbb1 f6f7 udiv r6, r1, r7
  57061. 80178d2: fb07 1416 mls r4, r7, r6, r1
  57062. 80178d6: 3430 adds r4, #48 @ 0x30
  57063. 80178d8: f802 4c01 strb.w r4, [r2, #-1]
  57064. 80178dc: 460c mov r4, r1
  57065. 80178de: 2c63 cmp r4, #99 @ 0x63
  57066. 80178e0: f103 33ff add.w r3, r3, #4294967295 @ 0xffffffff
  57067. 80178e4: 4631 mov r1, r6
  57068. 80178e6: dcf1 bgt.n 80178cc <__exponent+0x1c>
  57069. 80178e8: 3130 adds r1, #48 @ 0x30
  57070. 80178ea: 1e94 subs r4, r2, #2
  57071. 80178ec: f803 1c01 strb.w r1, [r3, #-1]
  57072. 80178f0: 1c41 adds r1, r0, #1
  57073. 80178f2: 4623 mov r3, r4
  57074. 80178f4: 42ab cmp r3, r5
  57075. 80178f6: d30a bcc.n 801790e <__exponent+0x5e>
  57076. 80178f8: f10d 0309 add.w r3, sp, #9
  57077. 80178fc: 1a9b subs r3, r3, r2
  57078. 80178fe: 42ac cmp r4, r5
  57079. 8017900: bf88 it hi
  57080. 8017902: 2300 movhi r3, #0
  57081. 8017904: 3302 adds r3, #2
  57082. 8017906: 4403 add r3, r0
  57083. 8017908: 1a18 subs r0, r3, r0
  57084. 801790a: b003 add sp, #12
  57085. 801790c: bdf0 pop {r4, r5, r6, r7, pc}
  57086. 801790e: f813 6b01 ldrb.w r6, [r3], #1
  57087. 8017912: f801 6f01 strb.w r6, [r1, #1]!
  57088. 8017916: e7ed b.n 80178f4 <__exponent+0x44>
  57089. 8017918: 2330 movs r3, #48 @ 0x30
  57090. 801791a: 3130 adds r1, #48 @ 0x30
  57091. 801791c: 7083 strb r3, [r0, #2]
  57092. 801791e: 70c1 strb r1, [r0, #3]
  57093. 8017920: 1d03 adds r3, r0, #4
  57094. 8017922: e7f1 b.n 8017908 <__exponent+0x58>
  57095. 8017924: 0000 movs r0, r0
  57096. ...
  57097. 08017928 <_printf_float>:
  57098. 8017928: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  57099. 801792c: b08d sub sp, #52 @ 0x34
  57100. 801792e: 460c mov r4, r1
  57101. 8017930: f8dd 8058 ldr.w r8, [sp, #88] @ 0x58
  57102. 8017934: 4616 mov r6, r2
  57103. 8017936: 461f mov r7, r3
  57104. 8017938: 4605 mov r5, r0
  57105. 801793a: f000 fd9d bl 8018478 <_localeconv_r>
  57106. 801793e: f8d0 b000 ldr.w fp, [r0]
  57107. 8017942: 4658 mov r0, fp
  57108. 8017944: f7e8 fd1c bl 8000380 <strlen>
  57109. 8017948: 2300 movs r3, #0
  57110. 801794a: 930a str r3, [sp, #40] @ 0x28
  57111. 801794c: f8d8 3000 ldr.w r3, [r8]
  57112. 8017950: f894 9018 ldrb.w r9, [r4, #24]
  57113. 8017954: 6822 ldr r2, [r4, #0]
  57114. 8017956: 9005 str r0, [sp, #20]
  57115. 8017958: 3307 adds r3, #7
  57116. 801795a: f023 0307 bic.w r3, r3, #7
  57117. 801795e: f103 0108 add.w r1, r3, #8
  57118. 8017962: f8c8 1000 str.w r1, [r8]
  57119. 8017966: ed93 0b00 vldr d0, [r3]
  57120. 801796a: ed9f 6b97 vldr d6, [pc, #604] @ 8017bc8 <_printf_float+0x2a0>
  57121. 801796e: eeb0 7bc0 vabs.f64 d7, d0
  57122. 8017972: eeb4 7b46 vcmp.f64 d7, d6
  57123. 8017976: eef1 fa10 vmrs APSR_nzcv, fpscr
  57124. 801797a: ed84 0b12 vstr d0, [r4, #72] @ 0x48
  57125. 801797e: dd24 ble.n 80179ca <_printf_float+0xa2>
  57126. 8017980: eeb5 0bc0 vcmpe.f64 d0, #0.0
  57127. 8017984: eef1 fa10 vmrs APSR_nzcv, fpscr
  57128. 8017988: d502 bpl.n 8017990 <_printf_float+0x68>
  57129. 801798a: 232d movs r3, #45 @ 0x2d
  57130. 801798c: f884 3043 strb.w r3, [r4, #67] @ 0x43
  57131. 8017990: 498f ldr r1, [pc, #572] @ (8017bd0 <_printf_float+0x2a8>)
  57132. 8017992: 4b90 ldr r3, [pc, #576] @ (8017bd4 <_printf_float+0x2ac>)
  57133. 8017994: f1b9 0f47 cmp.w r9, #71 @ 0x47
  57134. 8017998: bf94 ite ls
  57135. 801799a: 4688 movls r8, r1
  57136. 801799c: 4698 movhi r8, r3
  57137. 801799e: f022 0204 bic.w r2, r2, #4
  57138. 80179a2: 2303 movs r3, #3
  57139. 80179a4: 6123 str r3, [r4, #16]
  57140. 80179a6: 6022 str r2, [r4, #0]
  57141. 80179a8: f04f 0a00 mov.w sl, #0
  57142. 80179ac: 9700 str r7, [sp, #0]
  57143. 80179ae: 4633 mov r3, r6
  57144. 80179b0: aa0b add r2, sp, #44 @ 0x2c
  57145. 80179b2: 4621 mov r1, r4
  57146. 80179b4: 4628 mov r0, r5
  57147. 80179b6: f000 f9d1 bl 8017d5c <_printf_common>
  57148. 80179ba: 3001 adds r0, #1
  57149. 80179bc: f040 8089 bne.w 8017ad2 <_printf_float+0x1aa>
  57150. 80179c0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  57151. 80179c4: b00d add sp, #52 @ 0x34
  57152. 80179c6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  57153. 80179ca: eeb4 0b40 vcmp.f64 d0, d0
  57154. 80179ce: eef1 fa10 vmrs APSR_nzcv, fpscr
  57155. 80179d2: d709 bvc.n 80179e8 <_printf_float+0xc0>
  57156. 80179d4: ee10 3a90 vmov r3, s1
  57157. 80179d8: 2b00 cmp r3, #0
  57158. 80179da: bfbc itt lt
  57159. 80179dc: 232d movlt r3, #45 @ 0x2d
  57160. 80179de: f884 3043 strblt.w r3, [r4, #67] @ 0x43
  57161. 80179e2: 497d ldr r1, [pc, #500] @ (8017bd8 <_printf_float+0x2b0>)
  57162. 80179e4: 4b7d ldr r3, [pc, #500] @ (8017bdc <_printf_float+0x2b4>)
  57163. 80179e6: e7d5 b.n 8017994 <_printf_float+0x6c>
  57164. 80179e8: 6863 ldr r3, [r4, #4]
  57165. 80179ea: 1c59 adds r1, r3, #1
  57166. 80179ec: f009 0adf and.w sl, r9, #223 @ 0xdf
  57167. 80179f0: d139 bne.n 8017a66 <_printf_float+0x13e>
  57168. 80179f2: 2306 movs r3, #6
  57169. 80179f4: 6063 str r3, [r4, #4]
  57170. 80179f6: f442 6280 orr.w r2, r2, #1024 @ 0x400
  57171. 80179fa: 2300 movs r3, #0
  57172. 80179fc: 6022 str r2, [r4, #0]
  57173. 80179fe: 9303 str r3, [sp, #12]
  57174. 8017a00: ab0a add r3, sp, #40 @ 0x28
  57175. 8017a02: e9cd 9301 strd r9, r3, [sp, #4]
  57176. 8017a06: ab09 add r3, sp, #36 @ 0x24
  57177. 8017a08: 9300 str r3, [sp, #0]
  57178. 8017a0a: 6861 ldr r1, [r4, #4]
  57179. 8017a0c: f10d 0323 add.w r3, sp, #35 @ 0x23
  57180. 8017a10: 4628 mov r0, r5
  57181. 8017a12: f7ff fef9 bl 8017808 <__cvt>
  57182. 8017a16: f1ba 0f47 cmp.w sl, #71 @ 0x47
  57183. 8017a1a: 9909 ldr r1, [sp, #36] @ 0x24
  57184. 8017a1c: 4680 mov r8, r0
  57185. 8017a1e: d129 bne.n 8017a74 <_printf_float+0x14c>
  57186. 8017a20: 1cc8 adds r0, r1, #3
  57187. 8017a22: db02 blt.n 8017a2a <_printf_float+0x102>
  57188. 8017a24: 6863 ldr r3, [r4, #4]
  57189. 8017a26: 4299 cmp r1, r3
  57190. 8017a28: dd41 ble.n 8017aae <_printf_float+0x186>
  57191. 8017a2a: f1a9 0902 sub.w r9, r9, #2
  57192. 8017a2e: fa5f f989 uxtb.w r9, r9
  57193. 8017a32: 3901 subs r1, #1
  57194. 8017a34: 464a mov r2, r9
  57195. 8017a36: f104 0050 add.w r0, r4, #80 @ 0x50
  57196. 8017a3a: 9109 str r1, [sp, #36] @ 0x24
  57197. 8017a3c: f7ff ff38 bl 80178b0 <__exponent>
  57198. 8017a40: 9a0a ldr r2, [sp, #40] @ 0x28
  57199. 8017a42: 1813 adds r3, r2, r0
  57200. 8017a44: 2a01 cmp r2, #1
  57201. 8017a46: 4682 mov sl, r0
  57202. 8017a48: 6123 str r3, [r4, #16]
  57203. 8017a4a: dc02 bgt.n 8017a52 <_printf_float+0x12a>
  57204. 8017a4c: 6822 ldr r2, [r4, #0]
  57205. 8017a4e: 07d2 lsls r2, r2, #31
  57206. 8017a50: d501 bpl.n 8017a56 <_printf_float+0x12e>
  57207. 8017a52: 3301 adds r3, #1
  57208. 8017a54: 6123 str r3, [r4, #16]
  57209. 8017a56: f89d 3023 ldrb.w r3, [sp, #35] @ 0x23
  57210. 8017a5a: 2b00 cmp r3, #0
  57211. 8017a5c: d0a6 beq.n 80179ac <_printf_float+0x84>
  57212. 8017a5e: 232d movs r3, #45 @ 0x2d
  57213. 8017a60: f884 3043 strb.w r3, [r4, #67] @ 0x43
  57214. 8017a64: e7a2 b.n 80179ac <_printf_float+0x84>
  57215. 8017a66: f1ba 0f47 cmp.w sl, #71 @ 0x47
  57216. 8017a6a: d1c4 bne.n 80179f6 <_printf_float+0xce>
  57217. 8017a6c: 2b00 cmp r3, #0
  57218. 8017a6e: d1c2 bne.n 80179f6 <_printf_float+0xce>
  57219. 8017a70: 2301 movs r3, #1
  57220. 8017a72: e7bf b.n 80179f4 <_printf_float+0xcc>
  57221. 8017a74: f1b9 0f65 cmp.w r9, #101 @ 0x65
  57222. 8017a78: d9db bls.n 8017a32 <_printf_float+0x10a>
  57223. 8017a7a: f1b9 0f66 cmp.w r9, #102 @ 0x66
  57224. 8017a7e: d118 bne.n 8017ab2 <_printf_float+0x18a>
  57225. 8017a80: 2900 cmp r1, #0
  57226. 8017a82: 6863 ldr r3, [r4, #4]
  57227. 8017a84: dd0b ble.n 8017a9e <_printf_float+0x176>
  57228. 8017a86: 6121 str r1, [r4, #16]
  57229. 8017a88: b913 cbnz r3, 8017a90 <_printf_float+0x168>
  57230. 8017a8a: 6822 ldr r2, [r4, #0]
  57231. 8017a8c: 07d0 lsls r0, r2, #31
  57232. 8017a8e: d502 bpl.n 8017a96 <_printf_float+0x16e>
  57233. 8017a90: 3301 adds r3, #1
  57234. 8017a92: 440b add r3, r1
  57235. 8017a94: 6123 str r3, [r4, #16]
  57236. 8017a96: 65a1 str r1, [r4, #88] @ 0x58
  57237. 8017a98: f04f 0a00 mov.w sl, #0
  57238. 8017a9c: e7db b.n 8017a56 <_printf_float+0x12e>
  57239. 8017a9e: b913 cbnz r3, 8017aa6 <_printf_float+0x17e>
  57240. 8017aa0: 6822 ldr r2, [r4, #0]
  57241. 8017aa2: 07d2 lsls r2, r2, #31
  57242. 8017aa4: d501 bpl.n 8017aaa <_printf_float+0x182>
  57243. 8017aa6: 3302 adds r3, #2
  57244. 8017aa8: e7f4 b.n 8017a94 <_printf_float+0x16c>
  57245. 8017aaa: 2301 movs r3, #1
  57246. 8017aac: e7f2 b.n 8017a94 <_printf_float+0x16c>
  57247. 8017aae: f04f 0967 mov.w r9, #103 @ 0x67
  57248. 8017ab2: 9b0a ldr r3, [sp, #40] @ 0x28
  57249. 8017ab4: 4299 cmp r1, r3
  57250. 8017ab6: db05 blt.n 8017ac4 <_printf_float+0x19c>
  57251. 8017ab8: 6823 ldr r3, [r4, #0]
  57252. 8017aba: 6121 str r1, [r4, #16]
  57253. 8017abc: 07d8 lsls r0, r3, #31
  57254. 8017abe: d5ea bpl.n 8017a96 <_printf_float+0x16e>
  57255. 8017ac0: 1c4b adds r3, r1, #1
  57256. 8017ac2: e7e7 b.n 8017a94 <_printf_float+0x16c>
  57257. 8017ac4: 2900 cmp r1, #0
  57258. 8017ac6: bfd4 ite le
  57259. 8017ac8: f1c1 0202 rsble r2, r1, #2
  57260. 8017acc: 2201 movgt r2, #1
  57261. 8017ace: 4413 add r3, r2
  57262. 8017ad0: e7e0 b.n 8017a94 <_printf_float+0x16c>
  57263. 8017ad2: 6823 ldr r3, [r4, #0]
  57264. 8017ad4: 055a lsls r2, r3, #21
  57265. 8017ad6: d407 bmi.n 8017ae8 <_printf_float+0x1c0>
  57266. 8017ad8: 6923 ldr r3, [r4, #16]
  57267. 8017ada: 4642 mov r2, r8
  57268. 8017adc: 4631 mov r1, r6
  57269. 8017ade: 4628 mov r0, r5
  57270. 8017ae0: 47b8 blx r7
  57271. 8017ae2: 3001 adds r0, #1
  57272. 8017ae4: d12a bne.n 8017b3c <_printf_float+0x214>
  57273. 8017ae6: e76b b.n 80179c0 <_printf_float+0x98>
  57274. 8017ae8: f1b9 0f65 cmp.w r9, #101 @ 0x65
  57275. 8017aec: f240 80e0 bls.w 8017cb0 <_printf_float+0x388>
  57276. 8017af0: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  57277. 8017af4: eeb5 7b40 vcmp.f64 d7, #0.0
  57278. 8017af8: eef1 fa10 vmrs APSR_nzcv, fpscr
  57279. 8017afc: d133 bne.n 8017b66 <_printf_float+0x23e>
  57280. 8017afe: 4a38 ldr r2, [pc, #224] @ (8017be0 <_printf_float+0x2b8>)
  57281. 8017b00: 2301 movs r3, #1
  57282. 8017b02: 4631 mov r1, r6
  57283. 8017b04: 4628 mov r0, r5
  57284. 8017b06: 47b8 blx r7
  57285. 8017b08: 3001 adds r0, #1
  57286. 8017b0a: f43f af59 beq.w 80179c0 <_printf_float+0x98>
  57287. 8017b0e: e9dd 3809 ldrd r3, r8, [sp, #36] @ 0x24
  57288. 8017b12: 4543 cmp r3, r8
  57289. 8017b14: db02 blt.n 8017b1c <_printf_float+0x1f4>
  57290. 8017b16: 6823 ldr r3, [r4, #0]
  57291. 8017b18: 07d8 lsls r0, r3, #31
  57292. 8017b1a: d50f bpl.n 8017b3c <_printf_float+0x214>
  57293. 8017b1c: 9b05 ldr r3, [sp, #20]
  57294. 8017b1e: 465a mov r2, fp
  57295. 8017b20: 4631 mov r1, r6
  57296. 8017b22: 4628 mov r0, r5
  57297. 8017b24: 47b8 blx r7
  57298. 8017b26: 3001 adds r0, #1
  57299. 8017b28: f43f af4a beq.w 80179c0 <_printf_float+0x98>
  57300. 8017b2c: f04f 0900 mov.w r9, #0
  57301. 8017b30: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  57302. 8017b34: f104 0a1a add.w sl, r4, #26
  57303. 8017b38: 45c8 cmp r8, r9
  57304. 8017b3a: dc09 bgt.n 8017b50 <_printf_float+0x228>
  57305. 8017b3c: 6823 ldr r3, [r4, #0]
  57306. 8017b3e: 079b lsls r3, r3, #30
  57307. 8017b40: f100 8107 bmi.w 8017d52 <_printf_float+0x42a>
  57308. 8017b44: 68e0 ldr r0, [r4, #12]
  57309. 8017b46: 9b0b ldr r3, [sp, #44] @ 0x2c
  57310. 8017b48: 4298 cmp r0, r3
  57311. 8017b4a: bfb8 it lt
  57312. 8017b4c: 4618 movlt r0, r3
  57313. 8017b4e: e739 b.n 80179c4 <_printf_float+0x9c>
  57314. 8017b50: 2301 movs r3, #1
  57315. 8017b52: 4652 mov r2, sl
  57316. 8017b54: 4631 mov r1, r6
  57317. 8017b56: 4628 mov r0, r5
  57318. 8017b58: 47b8 blx r7
  57319. 8017b5a: 3001 adds r0, #1
  57320. 8017b5c: f43f af30 beq.w 80179c0 <_printf_float+0x98>
  57321. 8017b60: f109 0901 add.w r9, r9, #1
  57322. 8017b64: e7e8 b.n 8017b38 <_printf_float+0x210>
  57323. 8017b66: 9b09 ldr r3, [sp, #36] @ 0x24
  57324. 8017b68: 2b00 cmp r3, #0
  57325. 8017b6a: dc3b bgt.n 8017be4 <_printf_float+0x2bc>
  57326. 8017b6c: 4a1c ldr r2, [pc, #112] @ (8017be0 <_printf_float+0x2b8>)
  57327. 8017b6e: 2301 movs r3, #1
  57328. 8017b70: 4631 mov r1, r6
  57329. 8017b72: 4628 mov r0, r5
  57330. 8017b74: 47b8 blx r7
  57331. 8017b76: 3001 adds r0, #1
  57332. 8017b78: f43f af22 beq.w 80179c0 <_printf_float+0x98>
  57333. 8017b7c: e9dd 3909 ldrd r3, r9, [sp, #36] @ 0x24
  57334. 8017b80: ea59 0303 orrs.w r3, r9, r3
  57335. 8017b84: d102 bne.n 8017b8c <_printf_float+0x264>
  57336. 8017b86: 6823 ldr r3, [r4, #0]
  57337. 8017b88: 07d9 lsls r1, r3, #31
  57338. 8017b8a: d5d7 bpl.n 8017b3c <_printf_float+0x214>
  57339. 8017b8c: 9b05 ldr r3, [sp, #20]
  57340. 8017b8e: 465a mov r2, fp
  57341. 8017b90: 4631 mov r1, r6
  57342. 8017b92: 4628 mov r0, r5
  57343. 8017b94: 47b8 blx r7
  57344. 8017b96: 3001 adds r0, #1
  57345. 8017b98: f43f af12 beq.w 80179c0 <_printf_float+0x98>
  57346. 8017b9c: f04f 0a00 mov.w sl, #0
  57347. 8017ba0: f104 0b1a add.w fp, r4, #26
  57348. 8017ba4: 9b09 ldr r3, [sp, #36] @ 0x24
  57349. 8017ba6: 425b negs r3, r3
  57350. 8017ba8: 4553 cmp r3, sl
  57351. 8017baa: dc01 bgt.n 8017bb0 <_printf_float+0x288>
  57352. 8017bac: 464b mov r3, r9
  57353. 8017bae: e794 b.n 8017ada <_printf_float+0x1b2>
  57354. 8017bb0: 2301 movs r3, #1
  57355. 8017bb2: 465a mov r2, fp
  57356. 8017bb4: 4631 mov r1, r6
  57357. 8017bb6: 4628 mov r0, r5
  57358. 8017bb8: 47b8 blx r7
  57359. 8017bba: 3001 adds r0, #1
  57360. 8017bbc: f43f af00 beq.w 80179c0 <_printf_float+0x98>
  57361. 8017bc0: f10a 0a01 add.w sl, sl, #1
  57362. 8017bc4: e7ee b.n 8017ba4 <_printf_float+0x27c>
  57363. 8017bc6: bf00 nop
  57364. 8017bc8: ffffffff .word 0xffffffff
  57365. 8017bcc: 7fefffff .word 0x7fefffff
  57366. 8017bd0: 0801a2c8 .word 0x0801a2c8
  57367. 8017bd4: 0801a2cc .word 0x0801a2cc
  57368. 8017bd8: 0801a2d0 .word 0x0801a2d0
  57369. 8017bdc: 0801a2d4 .word 0x0801a2d4
  57370. 8017be0: 0801a2d8 .word 0x0801a2d8
  57371. 8017be4: 6da3 ldr r3, [r4, #88] @ 0x58
  57372. 8017be6: f8dd a028 ldr.w sl, [sp, #40] @ 0x28
  57373. 8017bea: 4553 cmp r3, sl
  57374. 8017bec: bfa8 it ge
  57375. 8017bee: 4653 movge r3, sl
  57376. 8017bf0: 2b00 cmp r3, #0
  57377. 8017bf2: 4699 mov r9, r3
  57378. 8017bf4: dc37 bgt.n 8017c66 <_printf_float+0x33e>
  57379. 8017bf6: 2300 movs r3, #0
  57380. 8017bf8: 9307 str r3, [sp, #28]
  57381. 8017bfa: ea29 79e9 bic.w r9, r9, r9, asr #31
  57382. 8017bfe: f104 021a add.w r2, r4, #26
  57383. 8017c02: 6da3 ldr r3, [r4, #88] @ 0x58
  57384. 8017c04: 9907 ldr r1, [sp, #28]
  57385. 8017c06: 9306 str r3, [sp, #24]
  57386. 8017c08: eba3 0309 sub.w r3, r3, r9
  57387. 8017c0c: 428b cmp r3, r1
  57388. 8017c0e: dc31 bgt.n 8017c74 <_printf_float+0x34c>
  57389. 8017c10: 9b09 ldr r3, [sp, #36] @ 0x24
  57390. 8017c12: 459a cmp sl, r3
  57391. 8017c14: dc3b bgt.n 8017c8e <_printf_float+0x366>
  57392. 8017c16: 6823 ldr r3, [r4, #0]
  57393. 8017c18: 07da lsls r2, r3, #31
  57394. 8017c1a: d438 bmi.n 8017c8e <_printf_float+0x366>
  57395. 8017c1c: 9b09 ldr r3, [sp, #36] @ 0x24
  57396. 8017c1e: ebaa 0903 sub.w r9, sl, r3
  57397. 8017c22: 9b06 ldr r3, [sp, #24]
  57398. 8017c24: ebaa 0303 sub.w r3, sl, r3
  57399. 8017c28: 4599 cmp r9, r3
  57400. 8017c2a: bfa8 it ge
  57401. 8017c2c: 4699 movge r9, r3
  57402. 8017c2e: f1b9 0f00 cmp.w r9, #0
  57403. 8017c32: dc34 bgt.n 8017c9e <_printf_float+0x376>
  57404. 8017c34: f04f 0800 mov.w r8, #0
  57405. 8017c38: ea29 79e9 bic.w r9, r9, r9, asr #31
  57406. 8017c3c: f104 0b1a add.w fp, r4, #26
  57407. 8017c40: 9b09 ldr r3, [sp, #36] @ 0x24
  57408. 8017c42: ebaa 0303 sub.w r3, sl, r3
  57409. 8017c46: eba3 0309 sub.w r3, r3, r9
  57410. 8017c4a: 4543 cmp r3, r8
  57411. 8017c4c: f77f af76 ble.w 8017b3c <_printf_float+0x214>
  57412. 8017c50: 2301 movs r3, #1
  57413. 8017c52: 465a mov r2, fp
  57414. 8017c54: 4631 mov r1, r6
  57415. 8017c56: 4628 mov r0, r5
  57416. 8017c58: 47b8 blx r7
  57417. 8017c5a: 3001 adds r0, #1
  57418. 8017c5c: f43f aeb0 beq.w 80179c0 <_printf_float+0x98>
  57419. 8017c60: f108 0801 add.w r8, r8, #1
  57420. 8017c64: e7ec b.n 8017c40 <_printf_float+0x318>
  57421. 8017c66: 4642 mov r2, r8
  57422. 8017c68: 4631 mov r1, r6
  57423. 8017c6a: 4628 mov r0, r5
  57424. 8017c6c: 47b8 blx r7
  57425. 8017c6e: 3001 adds r0, #1
  57426. 8017c70: d1c1 bne.n 8017bf6 <_printf_float+0x2ce>
  57427. 8017c72: e6a5 b.n 80179c0 <_printf_float+0x98>
  57428. 8017c74: 2301 movs r3, #1
  57429. 8017c76: 4631 mov r1, r6
  57430. 8017c78: 4628 mov r0, r5
  57431. 8017c7a: 9206 str r2, [sp, #24]
  57432. 8017c7c: 47b8 blx r7
  57433. 8017c7e: 3001 adds r0, #1
  57434. 8017c80: f43f ae9e beq.w 80179c0 <_printf_float+0x98>
  57435. 8017c84: 9b07 ldr r3, [sp, #28]
  57436. 8017c86: 9a06 ldr r2, [sp, #24]
  57437. 8017c88: 3301 adds r3, #1
  57438. 8017c8a: 9307 str r3, [sp, #28]
  57439. 8017c8c: e7b9 b.n 8017c02 <_printf_float+0x2da>
  57440. 8017c8e: 9b05 ldr r3, [sp, #20]
  57441. 8017c90: 465a mov r2, fp
  57442. 8017c92: 4631 mov r1, r6
  57443. 8017c94: 4628 mov r0, r5
  57444. 8017c96: 47b8 blx r7
  57445. 8017c98: 3001 adds r0, #1
  57446. 8017c9a: d1bf bne.n 8017c1c <_printf_float+0x2f4>
  57447. 8017c9c: e690 b.n 80179c0 <_printf_float+0x98>
  57448. 8017c9e: 9a06 ldr r2, [sp, #24]
  57449. 8017ca0: 464b mov r3, r9
  57450. 8017ca2: 4442 add r2, r8
  57451. 8017ca4: 4631 mov r1, r6
  57452. 8017ca6: 4628 mov r0, r5
  57453. 8017ca8: 47b8 blx r7
  57454. 8017caa: 3001 adds r0, #1
  57455. 8017cac: d1c2 bne.n 8017c34 <_printf_float+0x30c>
  57456. 8017cae: e687 b.n 80179c0 <_printf_float+0x98>
  57457. 8017cb0: f8dd 9028 ldr.w r9, [sp, #40] @ 0x28
  57458. 8017cb4: f1b9 0f01 cmp.w r9, #1
  57459. 8017cb8: dc01 bgt.n 8017cbe <_printf_float+0x396>
  57460. 8017cba: 07db lsls r3, r3, #31
  57461. 8017cbc: d536 bpl.n 8017d2c <_printf_float+0x404>
  57462. 8017cbe: 2301 movs r3, #1
  57463. 8017cc0: 4642 mov r2, r8
  57464. 8017cc2: 4631 mov r1, r6
  57465. 8017cc4: 4628 mov r0, r5
  57466. 8017cc6: 47b8 blx r7
  57467. 8017cc8: 3001 adds r0, #1
  57468. 8017cca: f43f ae79 beq.w 80179c0 <_printf_float+0x98>
  57469. 8017cce: 9b05 ldr r3, [sp, #20]
  57470. 8017cd0: 465a mov r2, fp
  57471. 8017cd2: 4631 mov r1, r6
  57472. 8017cd4: 4628 mov r0, r5
  57473. 8017cd6: 47b8 blx r7
  57474. 8017cd8: 3001 adds r0, #1
  57475. 8017cda: f43f ae71 beq.w 80179c0 <_printf_float+0x98>
  57476. 8017cde: ed94 7b12 vldr d7, [r4, #72] @ 0x48
  57477. 8017ce2: eeb5 7b40 vcmp.f64 d7, #0.0
  57478. 8017ce6: eef1 fa10 vmrs APSR_nzcv, fpscr
  57479. 8017cea: f109 39ff add.w r9, r9, #4294967295 @ 0xffffffff
  57480. 8017cee: d018 beq.n 8017d22 <_printf_float+0x3fa>
  57481. 8017cf0: 464b mov r3, r9
  57482. 8017cf2: f108 0201 add.w r2, r8, #1
  57483. 8017cf6: 4631 mov r1, r6
  57484. 8017cf8: 4628 mov r0, r5
  57485. 8017cfa: 47b8 blx r7
  57486. 8017cfc: 3001 adds r0, #1
  57487. 8017cfe: d10c bne.n 8017d1a <_printf_float+0x3f2>
  57488. 8017d00: e65e b.n 80179c0 <_printf_float+0x98>
  57489. 8017d02: 2301 movs r3, #1
  57490. 8017d04: 465a mov r2, fp
  57491. 8017d06: 4631 mov r1, r6
  57492. 8017d08: 4628 mov r0, r5
  57493. 8017d0a: 47b8 blx r7
  57494. 8017d0c: 3001 adds r0, #1
  57495. 8017d0e: f43f ae57 beq.w 80179c0 <_printf_float+0x98>
  57496. 8017d12: f108 0801 add.w r8, r8, #1
  57497. 8017d16: 45c8 cmp r8, r9
  57498. 8017d18: dbf3 blt.n 8017d02 <_printf_float+0x3da>
  57499. 8017d1a: 4653 mov r3, sl
  57500. 8017d1c: f104 0250 add.w r2, r4, #80 @ 0x50
  57501. 8017d20: e6dc b.n 8017adc <_printf_float+0x1b4>
  57502. 8017d22: f04f 0800 mov.w r8, #0
  57503. 8017d26: f104 0b1a add.w fp, r4, #26
  57504. 8017d2a: e7f4 b.n 8017d16 <_printf_float+0x3ee>
  57505. 8017d2c: 2301 movs r3, #1
  57506. 8017d2e: 4642 mov r2, r8
  57507. 8017d30: e7e1 b.n 8017cf6 <_printf_float+0x3ce>
  57508. 8017d32: 2301 movs r3, #1
  57509. 8017d34: 464a mov r2, r9
  57510. 8017d36: 4631 mov r1, r6
  57511. 8017d38: 4628 mov r0, r5
  57512. 8017d3a: 47b8 blx r7
  57513. 8017d3c: 3001 adds r0, #1
  57514. 8017d3e: f43f ae3f beq.w 80179c0 <_printf_float+0x98>
  57515. 8017d42: f108 0801 add.w r8, r8, #1
  57516. 8017d46: 68e3 ldr r3, [r4, #12]
  57517. 8017d48: 990b ldr r1, [sp, #44] @ 0x2c
  57518. 8017d4a: 1a5b subs r3, r3, r1
  57519. 8017d4c: 4543 cmp r3, r8
  57520. 8017d4e: dcf0 bgt.n 8017d32 <_printf_float+0x40a>
  57521. 8017d50: e6f8 b.n 8017b44 <_printf_float+0x21c>
  57522. 8017d52: f04f 0800 mov.w r8, #0
  57523. 8017d56: f104 0919 add.w r9, r4, #25
  57524. 8017d5a: e7f4 b.n 8017d46 <_printf_float+0x41e>
  57525. 08017d5c <_printf_common>:
  57526. 8017d5c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  57527. 8017d60: 4616 mov r6, r2
  57528. 8017d62: 4698 mov r8, r3
  57529. 8017d64: 688a ldr r2, [r1, #8]
  57530. 8017d66: 690b ldr r3, [r1, #16]
  57531. 8017d68: f8dd 9020 ldr.w r9, [sp, #32]
  57532. 8017d6c: 4293 cmp r3, r2
  57533. 8017d6e: bfb8 it lt
  57534. 8017d70: 4613 movlt r3, r2
  57535. 8017d72: 6033 str r3, [r6, #0]
  57536. 8017d74: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
  57537. 8017d78: 4607 mov r7, r0
  57538. 8017d7a: 460c mov r4, r1
  57539. 8017d7c: b10a cbz r2, 8017d82 <_printf_common+0x26>
  57540. 8017d7e: 3301 adds r3, #1
  57541. 8017d80: 6033 str r3, [r6, #0]
  57542. 8017d82: 6823 ldr r3, [r4, #0]
  57543. 8017d84: 0699 lsls r1, r3, #26
  57544. 8017d86: bf42 ittt mi
  57545. 8017d88: 6833 ldrmi r3, [r6, #0]
  57546. 8017d8a: 3302 addmi r3, #2
  57547. 8017d8c: 6033 strmi r3, [r6, #0]
  57548. 8017d8e: 6825 ldr r5, [r4, #0]
  57549. 8017d90: f015 0506 ands.w r5, r5, #6
  57550. 8017d94: d106 bne.n 8017da4 <_printf_common+0x48>
  57551. 8017d96: f104 0a19 add.w sl, r4, #25
  57552. 8017d9a: 68e3 ldr r3, [r4, #12]
  57553. 8017d9c: 6832 ldr r2, [r6, #0]
  57554. 8017d9e: 1a9b subs r3, r3, r2
  57555. 8017da0: 42ab cmp r3, r5
  57556. 8017da2: dc26 bgt.n 8017df2 <_printf_common+0x96>
  57557. 8017da4: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
  57558. 8017da8: 6822 ldr r2, [r4, #0]
  57559. 8017daa: 3b00 subs r3, #0
  57560. 8017dac: bf18 it ne
  57561. 8017dae: 2301 movne r3, #1
  57562. 8017db0: 0692 lsls r2, r2, #26
  57563. 8017db2: d42b bmi.n 8017e0c <_printf_common+0xb0>
  57564. 8017db4: f104 0243 add.w r2, r4, #67 @ 0x43
  57565. 8017db8: 4641 mov r1, r8
  57566. 8017dba: 4638 mov r0, r7
  57567. 8017dbc: 47c8 blx r9
  57568. 8017dbe: 3001 adds r0, #1
  57569. 8017dc0: d01e beq.n 8017e00 <_printf_common+0xa4>
  57570. 8017dc2: 6823 ldr r3, [r4, #0]
  57571. 8017dc4: 6922 ldr r2, [r4, #16]
  57572. 8017dc6: f003 0306 and.w r3, r3, #6
  57573. 8017dca: 2b04 cmp r3, #4
  57574. 8017dcc: bf02 ittt eq
  57575. 8017dce: 68e5 ldreq r5, [r4, #12]
  57576. 8017dd0: 6833 ldreq r3, [r6, #0]
  57577. 8017dd2: 1aed subeq r5, r5, r3
  57578. 8017dd4: 68a3 ldr r3, [r4, #8]
  57579. 8017dd6: bf0c ite eq
  57580. 8017dd8: ea25 75e5 biceq.w r5, r5, r5, asr #31
  57581. 8017ddc: 2500 movne r5, #0
  57582. 8017dde: 4293 cmp r3, r2
  57583. 8017de0: bfc4 itt gt
  57584. 8017de2: 1a9b subgt r3, r3, r2
  57585. 8017de4: 18ed addgt r5, r5, r3
  57586. 8017de6: 2600 movs r6, #0
  57587. 8017de8: 341a adds r4, #26
  57588. 8017dea: 42b5 cmp r5, r6
  57589. 8017dec: d11a bne.n 8017e24 <_printf_common+0xc8>
  57590. 8017dee: 2000 movs r0, #0
  57591. 8017df0: e008 b.n 8017e04 <_printf_common+0xa8>
  57592. 8017df2: 2301 movs r3, #1
  57593. 8017df4: 4652 mov r2, sl
  57594. 8017df6: 4641 mov r1, r8
  57595. 8017df8: 4638 mov r0, r7
  57596. 8017dfa: 47c8 blx r9
  57597. 8017dfc: 3001 adds r0, #1
  57598. 8017dfe: d103 bne.n 8017e08 <_printf_common+0xac>
  57599. 8017e00: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  57600. 8017e04: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  57601. 8017e08: 3501 adds r5, #1
  57602. 8017e0a: e7c6 b.n 8017d9a <_printf_common+0x3e>
  57603. 8017e0c: 18e1 adds r1, r4, r3
  57604. 8017e0e: 1c5a adds r2, r3, #1
  57605. 8017e10: 2030 movs r0, #48 @ 0x30
  57606. 8017e12: f881 0043 strb.w r0, [r1, #67] @ 0x43
  57607. 8017e16: 4422 add r2, r4
  57608. 8017e18: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
  57609. 8017e1c: f882 1043 strb.w r1, [r2, #67] @ 0x43
  57610. 8017e20: 3302 adds r3, #2
  57611. 8017e22: e7c7 b.n 8017db4 <_printf_common+0x58>
  57612. 8017e24: 2301 movs r3, #1
  57613. 8017e26: 4622 mov r2, r4
  57614. 8017e28: 4641 mov r1, r8
  57615. 8017e2a: 4638 mov r0, r7
  57616. 8017e2c: 47c8 blx r9
  57617. 8017e2e: 3001 adds r0, #1
  57618. 8017e30: d0e6 beq.n 8017e00 <_printf_common+0xa4>
  57619. 8017e32: 3601 adds r6, #1
  57620. 8017e34: e7d9 b.n 8017dea <_printf_common+0x8e>
  57621. ...
  57622. 08017e38 <_printf_i>:
  57623. 8017e38: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  57624. 8017e3c: 7e0f ldrb r7, [r1, #24]
  57625. 8017e3e: 9e0c ldr r6, [sp, #48] @ 0x30
  57626. 8017e40: 2f78 cmp r7, #120 @ 0x78
  57627. 8017e42: 4691 mov r9, r2
  57628. 8017e44: 4680 mov r8, r0
  57629. 8017e46: 460c mov r4, r1
  57630. 8017e48: 469a mov sl, r3
  57631. 8017e4a: f101 0243 add.w r2, r1, #67 @ 0x43
  57632. 8017e4e: d807 bhi.n 8017e60 <_printf_i+0x28>
  57633. 8017e50: 2f62 cmp r7, #98 @ 0x62
  57634. 8017e52: d80a bhi.n 8017e6a <_printf_i+0x32>
  57635. 8017e54: 2f00 cmp r7, #0
  57636. 8017e56: f000 80d2 beq.w 8017ffe <_printf_i+0x1c6>
  57637. 8017e5a: 2f58 cmp r7, #88 @ 0x58
  57638. 8017e5c: f000 80b9 beq.w 8017fd2 <_printf_i+0x19a>
  57639. 8017e60: f104 0642 add.w r6, r4, #66 @ 0x42
  57640. 8017e64: f884 7042 strb.w r7, [r4, #66] @ 0x42
  57641. 8017e68: e03a b.n 8017ee0 <_printf_i+0xa8>
  57642. 8017e6a: f1a7 0363 sub.w r3, r7, #99 @ 0x63
  57643. 8017e6e: 2b15 cmp r3, #21
  57644. 8017e70: d8f6 bhi.n 8017e60 <_printf_i+0x28>
  57645. 8017e72: a101 add r1, pc, #4 @ (adr r1, 8017e78 <_printf_i+0x40>)
  57646. 8017e74: f851 f023 ldr.w pc, [r1, r3, lsl #2]
  57647. 8017e78: 08017ed1 .word 0x08017ed1
  57648. 8017e7c: 08017ee5 .word 0x08017ee5
  57649. 8017e80: 08017e61 .word 0x08017e61
  57650. 8017e84: 08017e61 .word 0x08017e61
  57651. 8017e88: 08017e61 .word 0x08017e61
  57652. 8017e8c: 08017e61 .word 0x08017e61
  57653. 8017e90: 08017ee5 .word 0x08017ee5
  57654. 8017e94: 08017e61 .word 0x08017e61
  57655. 8017e98: 08017e61 .word 0x08017e61
  57656. 8017e9c: 08017e61 .word 0x08017e61
  57657. 8017ea0: 08017e61 .word 0x08017e61
  57658. 8017ea4: 08017fe5 .word 0x08017fe5
  57659. 8017ea8: 08017f0f .word 0x08017f0f
  57660. 8017eac: 08017f9f .word 0x08017f9f
  57661. 8017eb0: 08017e61 .word 0x08017e61
  57662. 8017eb4: 08017e61 .word 0x08017e61
  57663. 8017eb8: 08018007 .word 0x08018007
  57664. 8017ebc: 08017e61 .word 0x08017e61
  57665. 8017ec0: 08017f0f .word 0x08017f0f
  57666. 8017ec4: 08017e61 .word 0x08017e61
  57667. 8017ec8: 08017e61 .word 0x08017e61
  57668. 8017ecc: 08017fa7 .word 0x08017fa7
  57669. 8017ed0: 6833 ldr r3, [r6, #0]
  57670. 8017ed2: 1d1a adds r2, r3, #4
  57671. 8017ed4: 681b ldr r3, [r3, #0]
  57672. 8017ed6: 6032 str r2, [r6, #0]
  57673. 8017ed8: f104 0642 add.w r6, r4, #66 @ 0x42
  57674. 8017edc: f884 3042 strb.w r3, [r4, #66] @ 0x42
  57675. 8017ee0: 2301 movs r3, #1
  57676. 8017ee2: e09d b.n 8018020 <_printf_i+0x1e8>
  57677. 8017ee4: 6833 ldr r3, [r6, #0]
  57678. 8017ee6: 6820 ldr r0, [r4, #0]
  57679. 8017ee8: 1d19 adds r1, r3, #4
  57680. 8017eea: 6031 str r1, [r6, #0]
  57681. 8017eec: 0606 lsls r6, r0, #24
  57682. 8017eee: d501 bpl.n 8017ef4 <_printf_i+0xbc>
  57683. 8017ef0: 681d ldr r5, [r3, #0]
  57684. 8017ef2: e003 b.n 8017efc <_printf_i+0xc4>
  57685. 8017ef4: 0645 lsls r5, r0, #25
  57686. 8017ef6: d5fb bpl.n 8017ef0 <_printf_i+0xb8>
  57687. 8017ef8: f9b3 5000 ldrsh.w r5, [r3]
  57688. 8017efc: 2d00 cmp r5, #0
  57689. 8017efe: da03 bge.n 8017f08 <_printf_i+0xd0>
  57690. 8017f00: 232d movs r3, #45 @ 0x2d
  57691. 8017f02: 426d negs r5, r5
  57692. 8017f04: f884 3043 strb.w r3, [r4, #67] @ 0x43
  57693. 8017f08: 4859 ldr r0, [pc, #356] @ (8018070 <_printf_i+0x238>)
  57694. 8017f0a: 230a movs r3, #10
  57695. 8017f0c: e011 b.n 8017f32 <_printf_i+0xfa>
  57696. 8017f0e: 6821 ldr r1, [r4, #0]
  57697. 8017f10: 6833 ldr r3, [r6, #0]
  57698. 8017f12: 0608 lsls r0, r1, #24
  57699. 8017f14: f853 5b04 ldr.w r5, [r3], #4
  57700. 8017f18: d402 bmi.n 8017f20 <_printf_i+0xe8>
  57701. 8017f1a: 0649 lsls r1, r1, #25
  57702. 8017f1c: bf48 it mi
  57703. 8017f1e: b2ad uxthmi r5, r5
  57704. 8017f20: 2f6f cmp r7, #111 @ 0x6f
  57705. 8017f22: 4853 ldr r0, [pc, #332] @ (8018070 <_printf_i+0x238>)
  57706. 8017f24: 6033 str r3, [r6, #0]
  57707. 8017f26: bf14 ite ne
  57708. 8017f28: 230a movne r3, #10
  57709. 8017f2a: 2308 moveq r3, #8
  57710. 8017f2c: 2100 movs r1, #0
  57711. 8017f2e: f884 1043 strb.w r1, [r4, #67] @ 0x43
  57712. 8017f32: 6866 ldr r6, [r4, #4]
  57713. 8017f34: 60a6 str r6, [r4, #8]
  57714. 8017f36: 2e00 cmp r6, #0
  57715. 8017f38: bfa2 ittt ge
  57716. 8017f3a: 6821 ldrge r1, [r4, #0]
  57717. 8017f3c: f021 0104 bicge.w r1, r1, #4
  57718. 8017f40: 6021 strge r1, [r4, #0]
  57719. 8017f42: b90d cbnz r5, 8017f48 <_printf_i+0x110>
  57720. 8017f44: 2e00 cmp r6, #0
  57721. 8017f46: d04b beq.n 8017fe0 <_printf_i+0x1a8>
  57722. 8017f48: 4616 mov r6, r2
  57723. 8017f4a: fbb5 f1f3 udiv r1, r5, r3
  57724. 8017f4e: fb03 5711 mls r7, r3, r1, r5
  57725. 8017f52: 5dc7 ldrb r7, [r0, r7]
  57726. 8017f54: f806 7d01 strb.w r7, [r6, #-1]!
  57727. 8017f58: 462f mov r7, r5
  57728. 8017f5a: 42bb cmp r3, r7
  57729. 8017f5c: 460d mov r5, r1
  57730. 8017f5e: d9f4 bls.n 8017f4a <_printf_i+0x112>
  57731. 8017f60: 2b08 cmp r3, #8
  57732. 8017f62: d10b bne.n 8017f7c <_printf_i+0x144>
  57733. 8017f64: 6823 ldr r3, [r4, #0]
  57734. 8017f66: 07df lsls r7, r3, #31
  57735. 8017f68: d508 bpl.n 8017f7c <_printf_i+0x144>
  57736. 8017f6a: 6923 ldr r3, [r4, #16]
  57737. 8017f6c: 6861 ldr r1, [r4, #4]
  57738. 8017f6e: 4299 cmp r1, r3
  57739. 8017f70: bfde ittt le
  57740. 8017f72: 2330 movle r3, #48 @ 0x30
  57741. 8017f74: f806 3c01 strble.w r3, [r6, #-1]
  57742. 8017f78: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
  57743. 8017f7c: 1b92 subs r2, r2, r6
  57744. 8017f7e: 6122 str r2, [r4, #16]
  57745. 8017f80: f8cd a000 str.w sl, [sp]
  57746. 8017f84: 464b mov r3, r9
  57747. 8017f86: aa03 add r2, sp, #12
  57748. 8017f88: 4621 mov r1, r4
  57749. 8017f8a: 4640 mov r0, r8
  57750. 8017f8c: f7ff fee6 bl 8017d5c <_printf_common>
  57751. 8017f90: 3001 adds r0, #1
  57752. 8017f92: d14a bne.n 801802a <_printf_i+0x1f2>
  57753. 8017f94: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  57754. 8017f98: b004 add sp, #16
  57755. 8017f9a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  57756. 8017f9e: 6823 ldr r3, [r4, #0]
  57757. 8017fa0: f043 0320 orr.w r3, r3, #32
  57758. 8017fa4: 6023 str r3, [r4, #0]
  57759. 8017fa6: 4833 ldr r0, [pc, #204] @ (8018074 <_printf_i+0x23c>)
  57760. 8017fa8: 2778 movs r7, #120 @ 0x78
  57761. 8017faa: f884 7045 strb.w r7, [r4, #69] @ 0x45
  57762. 8017fae: 6823 ldr r3, [r4, #0]
  57763. 8017fb0: 6831 ldr r1, [r6, #0]
  57764. 8017fb2: 061f lsls r7, r3, #24
  57765. 8017fb4: f851 5b04 ldr.w r5, [r1], #4
  57766. 8017fb8: d402 bmi.n 8017fc0 <_printf_i+0x188>
  57767. 8017fba: 065f lsls r7, r3, #25
  57768. 8017fbc: bf48 it mi
  57769. 8017fbe: b2ad uxthmi r5, r5
  57770. 8017fc0: 6031 str r1, [r6, #0]
  57771. 8017fc2: 07d9 lsls r1, r3, #31
  57772. 8017fc4: bf44 itt mi
  57773. 8017fc6: f043 0320 orrmi.w r3, r3, #32
  57774. 8017fca: 6023 strmi r3, [r4, #0]
  57775. 8017fcc: b11d cbz r5, 8017fd6 <_printf_i+0x19e>
  57776. 8017fce: 2310 movs r3, #16
  57777. 8017fd0: e7ac b.n 8017f2c <_printf_i+0xf4>
  57778. 8017fd2: 4827 ldr r0, [pc, #156] @ (8018070 <_printf_i+0x238>)
  57779. 8017fd4: e7e9 b.n 8017faa <_printf_i+0x172>
  57780. 8017fd6: 6823 ldr r3, [r4, #0]
  57781. 8017fd8: f023 0320 bic.w r3, r3, #32
  57782. 8017fdc: 6023 str r3, [r4, #0]
  57783. 8017fde: e7f6 b.n 8017fce <_printf_i+0x196>
  57784. 8017fe0: 4616 mov r6, r2
  57785. 8017fe2: e7bd b.n 8017f60 <_printf_i+0x128>
  57786. 8017fe4: 6833 ldr r3, [r6, #0]
  57787. 8017fe6: 6825 ldr r5, [r4, #0]
  57788. 8017fe8: 6961 ldr r1, [r4, #20]
  57789. 8017fea: 1d18 adds r0, r3, #4
  57790. 8017fec: 6030 str r0, [r6, #0]
  57791. 8017fee: 062e lsls r6, r5, #24
  57792. 8017ff0: 681b ldr r3, [r3, #0]
  57793. 8017ff2: d501 bpl.n 8017ff8 <_printf_i+0x1c0>
  57794. 8017ff4: 6019 str r1, [r3, #0]
  57795. 8017ff6: e002 b.n 8017ffe <_printf_i+0x1c6>
  57796. 8017ff8: 0668 lsls r0, r5, #25
  57797. 8017ffa: d5fb bpl.n 8017ff4 <_printf_i+0x1bc>
  57798. 8017ffc: 8019 strh r1, [r3, #0]
  57799. 8017ffe: 2300 movs r3, #0
  57800. 8018000: 6123 str r3, [r4, #16]
  57801. 8018002: 4616 mov r6, r2
  57802. 8018004: e7bc b.n 8017f80 <_printf_i+0x148>
  57803. 8018006: 6833 ldr r3, [r6, #0]
  57804. 8018008: 1d1a adds r2, r3, #4
  57805. 801800a: 6032 str r2, [r6, #0]
  57806. 801800c: 681e ldr r6, [r3, #0]
  57807. 801800e: 6862 ldr r2, [r4, #4]
  57808. 8018010: 2100 movs r1, #0
  57809. 8018012: 4630 mov r0, r6
  57810. 8018014: f7e8 f964 bl 80002e0 <memchr>
  57811. 8018018: b108 cbz r0, 801801e <_printf_i+0x1e6>
  57812. 801801a: 1b80 subs r0, r0, r6
  57813. 801801c: 6060 str r0, [r4, #4]
  57814. 801801e: 6863 ldr r3, [r4, #4]
  57815. 8018020: 6123 str r3, [r4, #16]
  57816. 8018022: 2300 movs r3, #0
  57817. 8018024: f884 3043 strb.w r3, [r4, #67] @ 0x43
  57818. 8018028: e7aa b.n 8017f80 <_printf_i+0x148>
  57819. 801802a: 6923 ldr r3, [r4, #16]
  57820. 801802c: 4632 mov r2, r6
  57821. 801802e: 4649 mov r1, r9
  57822. 8018030: 4640 mov r0, r8
  57823. 8018032: 47d0 blx sl
  57824. 8018034: 3001 adds r0, #1
  57825. 8018036: d0ad beq.n 8017f94 <_printf_i+0x15c>
  57826. 8018038: 6823 ldr r3, [r4, #0]
  57827. 801803a: 079b lsls r3, r3, #30
  57828. 801803c: d413 bmi.n 8018066 <_printf_i+0x22e>
  57829. 801803e: 68e0 ldr r0, [r4, #12]
  57830. 8018040: 9b03 ldr r3, [sp, #12]
  57831. 8018042: 4298 cmp r0, r3
  57832. 8018044: bfb8 it lt
  57833. 8018046: 4618 movlt r0, r3
  57834. 8018048: e7a6 b.n 8017f98 <_printf_i+0x160>
  57835. 801804a: 2301 movs r3, #1
  57836. 801804c: 4632 mov r2, r6
  57837. 801804e: 4649 mov r1, r9
  57838. 8018050: 4640 mov r0, r8
  57839. 8018052: 47d0 blx sl
  57840. 8018054: 3001 adds r0, #1
  57841. 8018056: d09d beq.n 8017f94 <_printf_i+0x15c>
  57842. 8018058: 3501 adds r5, #1
  57843. 801805a: 68e3 ldr r3, [r4, #12]
  57844. 801805c: 9903 ldr r1, [sp, #12]
  57845. 801805e: 1a5b subs r3, r3, r1
  57846. 8018060: 42ab cmp r3, r5
  57847. 8018062: dcf2 bgt.n 801804a <_printf_i+0x212>
  57848. 8018064: e7eb b.n 801803e <_printf_i+0x206>
  57849. 8018066: 2500 movs r5, #0
  57850. 8018068: f104 0619 add.w r6, r4, #25
  57851. 801806c: e7f5 b.n 801805a <_printf_i+0x222>
  57852. 801806e: bf00 nop
  57853. 8018070: 0801a2da .word 0x0801a2da
  57854. 8018074: 0801a2eb .word 0x0801a2eb
  57855. 08018078 <std>:
  57856. 8018078: 2300 movs r3, #0
  57857. 801807a: b510 push {r4, lr}
  57858. 801807c: 4604 mov r4, r0
  57859. 801807e: e9c0 3300 strd r3, r3, [r0]
  57860. 8018082: e9c0 3304 strd r3, r3, [r0, #16]
  57861. 8018086: 6083 str r3, [r0, #8]
  57862. 8018088: 8181 strh r1, [r0, #12]
  57863. 801808a: 6643 str r3, [r0, #100] @ 0x64
  57864. 801808c: 81c2 strh r2, [r0, #14]
  57865. 801808e: 6183 str r3, [r0, #24]
  57866. 8018090: 4619 mov r1, r3
  57867. 8018092: 2208 movs r2, #8
  57868. 8018094: 305c adds r0, #92 @ 0x5c
  57869. 8018096: f000 f9e7 bl 8018468 <memset>
  57870. 801809a: 4b0d ldr r3, [pc, #52] @ (80180d0 <std+0x58>)
  57871. 801809c: 6263 str r3, [r4, #36] @ 0x24
  57872. 801809e: 4b0d ldr r3, [pc, #52] @ (80180d4 <std+0x5c>)
  57873. 80180a0: 62a3 str r3, [r4, #40] @ 0x28
  57874. 80180a2: 4b0d ldr r3, [pc, #52] @ (80180d8 <std+0x60>)
  57875. 80180a4: 62e3 str r3, [r4, #44] @ 0x2c
  57876. 80180a6: 4b0d ldr r3, [pc, #52] @ (80180dc <std+0x64>)
  57877. 80180a8: 6323 str r3, [r4, #48] @ 0x30
  57878. 80180aa: 4b0d ldr r3, [pc, #52] @ (80180e0 <std+0x68>)
  57879. 80180ac: 6224 str r4, [r4, #32]
  57880. 80180ae: 429c cmp r4, r3
  57881. 80180b0: d006 beq.n 80180c0 <std+0x48>
  57882. 80180b2: f103 0268 add.w r2, r3, #104 @ 0x68
  57883. 80180b6: 4294 cmp r4, r2
  57884. 80180b8: d002 beq.n 80180c0 <std+0x48>
  57885. 80180ba: 33d0 adds r3, #208 @ 0xd0
  57886. 80180bc: 429c cmp r4, r3
  57887. 80180be: d105 bne.n 80180cc <std+0x54>
  57888. 80180c0: f104 0058 add.w r0, r4, #88 @ 0x58
  57889. 80180c4: e8bd 4010 ldmia.w sp!, {r4, lr}
  57890. 80180c8: f000 baa0 b.w 801860c <__retarget_lock_init_recursive>
  57891. 80180cc: bd10 pop {r4, pc}
  57892. 80180ce: bf00 nop
  57893. 80180d0: 080182b9 .word 0x080182b9
  57894. 80180d4: 080182db .word 0x080182db
  57895. 80180d8: 08018313 .word 0x08018313
  57896. 80180dc: 08018337 .word 0x08018337
  57897. 80180e0: 240131a8 .word 0x240131a8
  57898. 080180e4 <stdio_exit_handler>:
  57899. 80180e4: 4a02 ldr r2, [pc, #8] @ (80180f0 <stdio_exit_handler+0xc>)
  57900. 80180e6: 4903 ldr r1, [pc, #12] @ (80180f4 <stdio_exit_handler+0x10>)
  57901. 80180e8: 4803 ldr r0, [pc, #12] @ (80180f8 <stdio_exit_handler+0x14>)
  57902. 80180ea: f000 b869 b.w 80181c0 <_fwalk_sglue>
  57903. 80180ee: bf00 nop
  57904. 80180f0: 24000048 .word 0x24000048
  57905. 80180f4: 08019bf9 .word 0x08019bf9
  57906. 80180f8: 24000058 .word 0x24000058
  57907. 080180fc <cleanup_stdio>:
  57908. 80180fc: 6841 ldr r1, [r0, #4]
  57909. 80180fe: 4b0c ldr r3, [pc, #48] @ (8018130 <cleanup_stdio+0x34>)
  57910. 8018100: 4299 cmp r1, r3
  57911. 8018102: b510 push {r4, lr}
  57912. 8018104: 4604 mov r4, r0
  57913. 8018106: d001 beq.n 801810c <cleanup_stdio+0x10>
  57914. 8018108: f001 fd76 bl 8019bf8 <_fflush_r>
  57915. 801810c: 68a1 ldr r1, [r4, #8]
  57916. 801810e: 4b09 ldr r3, [pc, #36] @ (8018134 <cleanup_stdio+0x38>)
  57917. 8018110: 4299 cmp r1, r3
  57918. 8018112: d002 beq.n 801811a <cleanup_stdio+0x1e>
  57919. 8018114: 4620 mov r0, r4
  57920. 8018116: f001 fd6f bl 8019bf8 <_fflush_r>
  57921. 801811a: 68e1 ldr r1, [r4, #12]
  57922. 801811c: 4b06 ldr r3, [pc, #24] @ (8018138 <cleanup_stdio+0x3c>)
  57923. 801811e: 4299 cmp r1, r3
  57924. 8018120: d004 beq.n 801812c <cleanup_stdio+0x30>
  57925. 8018122: 4620 mov r0, r4
  57926. 8018124: e8bd 4010 ldmia.w sp!, {r4, lr}
  57927. 8018128: f001 bd66 b.w 8019bf8 <_fflush_r>
  57928. 801812c: bd10 pop {r4, pc}
  57929. 801812e: bf00 nop
  57930. 8018130: 240131a8 .word 0x240131a8
  57931. 8018134: 24013210 .word 0x24013210
  57932. 8018138: 24013278 .word 0x24013278
  57933. 0801813c <global_stdio_init.part.0>:
  57934. 801813c: b510 push {r4, lr}
  57935. 801813e: 4b0b ldr r3, [pc, #44] @ (801816c <global_stdio_init.part.0+0x30>)
  57936. 8018140: 4c0b ldr r4, [pc, #44] @ (8018170 <global_stdio_init.part.0+0x34>)
  57937. 8018142: 4a0c ldr r2, [pc, #48] @ (8018174 <global_stdio_init.part.0+0x38>)
  57938. 8018144: 601a str r2, [r3, #0]
  57939. 8018146: 4620 mov r0, r4
  57940. 8018148: 2200 movs r2, #0
  57941. 801814a: 2104 movs r1, #4
  57942. 801814c: f7ff ff94 bl 8018078 <std>
  57943. 8018150: f104 0068 add.w r0, r4, #104 @ 0x68
  57944. 8018154: 2201 movs r2, #1
  57945. 8018156: 2109 movs r1, #9
  57946. 8018158: f7ff ff8e bl 8018078 <std>
  57947. 801815c: f104 00d0 add.w r0, r4, #208 @ 0xd0
  57948. 8018160: 2202 movs r2, #2
  57949. 8018162: e8bd 4010 ldmia.w sp!, {r4, lr}
  57950. 8018166: 2112 movs r1, #18
  57951. 8018168: f7ff bf86 b.w 8018078 <std>
  57952. 801816c: 240132e0 .word 0x240132e0
  57953. 8018170: 240131a8 .word 0x240131a8
  57954. 8018174: 080180e5 .word 0x080180e5
  57955. 08018178 <__sfp_lock_acquire>:
  57956. 8018178: 4801 ldr r0, [pc, #4] @ (8018180 <__sfp_lock_acquire+0x8>)
  57957. 801817a: f000 ba48 b.w 801860e <__retarget_lock_acquire_recursive>
  57958. 801817e: bf00 nop
  57959. 8018180: 240132e9 .word 0x240132e9
  57960. 08018184 <__sfp_lock_release>:
  57961. 8018184: 4801 ldr r0, [pc, #4] @ (801818c <__sfp_lock_release+0x8>)
  57962. 8018186: f000 ba43 b.w 8018610 <__retarget_lock_release_recursive>
  57963. 801818a: bf00 nop
  57964. 801818c: 240132e9 .word 0x240132e9
  57965. 08018190 <__sinit>:
  57966. 8018190: b510 push {r4, lr}
  57967. 8018192: 4604 mov r4, r0
  57968. 8018194: f7ff fff0 bl 8018178 <__sfp_lock_acquire>
  57969. 8018198: 6a23 ldr r3, [r4, #32]
  57970. 801819a: b11b cbz r3, 80181a4 <__sinit+0x14>
  57971. 801819c: e8bd 4010 ldmia.w sp!, {r4, lr}
  57972. 80181a0: f7ff bff0 b.w 8018184 <__sfp_lock_release>
  57973. 80181a4: 4b04 ldr r3, [pc, #16] @ (80181b8 <__sinit+0x28>)
  57974. 80181a6: 6223 str r3, [r4, #32]
  57975. 80181a8: 4b04 ldr r3, [pc, #16] @ (80181bc <__sinit+0x2c>)
  57976. 80181aa: 681b ldr r3, [r3, #0]
  57977. 80181ac: 2b00 cmp r3, #0
  57978. 80181ae: d1f5 bne.n 801819c <__sinit+0xc>
  57979. 80181b0: f7ff ffc4 bl 801813c <global_stdio_init.part.0>
  57980. 80181b4: e7f2 b.n 801819c <__sinit+0xc>
  57981. 80181b6: bf00 nop
  57982. 80181b8: 080180fd .word 0x080180fd
  57983. 80181bc: 240132e0 .word 0x240132e0
  57984. 080181c0 <_fwalk_sglue>:
  57985. 80181c0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  57986. 80181c4: 4607 mov r7, r0
  57987. 80181c6: 4688 mov r8, r1
  57988. 80181c8: 4614 mov r4, r2
  57989. 80181ca: 2600 movs r6, #0
  57990. 80181cc: e9d4 9501 ldrd r9, r5, [r4, #4]
  57991. 80181d0: f1b9 0901 subs.w r9, r9, #1
  57992. 80181d4: d505 bpl.n 80181e2 <_fwalk_sglue+0x22>
  57993. 80181d6: 6824 ldr r4, [r4, #0]
  57994. 80181d8: 2c00 cmp r4, #0
  57995. 80181da: d1f7 bne.n 80181cc <_fwalk_sglue+0xc>
  57996. 80181dc: 4630 mov r0, r6
  57997. 80181de: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  57998. 80181e2: 89ab ldrh r3, [r5, #12]
  57999. 80181e4: 2b01 cmp r3, #1
  58000. 80181e6: d907 bls.n 80181f8 <_fwalk_sglue+0x38>
  58001. 80181e8: f9b5 300e ldrsh.w r3, [r5, #14]
  58002. 80181ec: 3301 adds r3, #1
  58003. 80181ee: d003 beq.n 80181f8 <_fwalk_sglue+0x38>
  58004. 80181f0: 4629 mov r1, r5
  58005. 80181f2: 4638 mov r0, r7
  58006. 80181f4: 47c0 blx r8
  58007. 80181f6: 4306 orrs r6, r0
  58008. 80181f8: 3568 adds r5, #104 @ 0x68
  58009. 80181fa: e7e9 b.n 80181d0 <_fwalk_sglue+0x10>
  58010. 080181fc <_puts_r>:
  58011. 80181fc: 6a03 ldr r3, [r0, #32]
  58012. 80181fe: b570 push {r4, r5, r6, lr}
  58013. 8018200: 6884 ldr r4, [r0, #8]
  58014. 8018202: 4605 mov r5, r0
  58015. 8018204: 460e mov r6, r1
  58016. 8018206: b90b cbnz r3, 801820c <_puts_r+0x10>
  58017. 8018208: f7ff ffc2 bl 8018190 <__sinit>
  58018. 801820c: 6e63 ldr r3, [r4, #100] @ 0x64
  58019. 801820e: 07db lsls r3, r3, #31
  58020. 8018210: d405 bmi.n 801821e <_puts_r+0x22>
  58021. 8018212: 89a3 ldrh r3, [r4, #12]
  58022. 8018214: 0598 lsls r0, r3, #22
  58023. 8018216: d402 bmi.n 801821e <_puts_r+0x22>
  58024. 8018218: 6da0 ldr r0, [r4, #88] @ 0x58
  58025. 801821a: f000 f9f8 bl 801860e <__retarget_lock_acquire_recursive>
  58026. 801821e: 89a3 ldrh r3, [r4, #12]
  58027. 8018220: 0719 lsls r1, r3, #28
  58028. 8018222: d502 bpl.n 801822a <_puts_r+0x2e>
  58029. 8018224: 6923 ldr r3, [r4, #16]
  58030. 8018226: 2b00 cmp r3, #0
  58031. 8018228: d135 bne.n 8018296 <_puts_r+0x9a>
  58032. 801822a: 4621 mov r1, r4
  58033. 801822c: 4628 mov r0, r5
  58034. 801822e: f000 f8c5 bl 80183bc <__swsetup_r>
  58035. 8018232: b380 cbz r0, 8018296 <_puts_r+0x9a>
  58036. 8018234: f04f 35ff mov.w r5, #4294967295 @ 0xffffffff
  58037. 8018238: 6e63 ldr r3, [r4, #100] @ 0x64
  58038. 801823a: 07da lsls r2, r3, #31
  58039. 801823c: d405 bmi.n 801824a <_puts_r+0x4e>
  58040. 801823e: 89a3 ldrh r3, [r4, #12]
  58041. 8018240: 059b lsls r3, r3, #22
  58042. 8018242: d402 bmi.n 801824a <_puts_r+0x4e>
  58043. 8018244: 6da0 ldr r0, [r4, #88] @ 0x58
  58044. 8018246: f000 f9e3 bl 8018610 <__retarget_lock_release_recursive>
  58045. 801824a: 4628 mov r0, r5
  58046. 801824c: bd70 pop {r4, r5, r6, pc}
  58047. 801824e: 2b00 cmp r3, #0
  58048. 8018250: da04 bge.n 801825c <_puts_r+0x60>
  58049. 8018252: 69a2 ldr r2, [r4, #24]
  58050. 8018254: 429a cmp r2, r3
  58051. 8018256: dc17 bgt.n 8018288 <_puts_r+0x8c>
  58052. 8018258: 290a cmp r1, #10
  58053. 801825a: d015 beq.n 8018288 <_puts_r+0x8c>
  58054. 801825c: 6823 ldr r3, [r4, #0]
  58055. 801825e: 1c5a adds r2, r3, #1
  58056. 8018260: 6022 str r2, [r4, #0]
  58057. 8018262: 7019 strb r1, [r3, #0]
  58058. 8018264: 68a3 ldr r3, [r4, #8]
  58059. 8018266: f816 1f01 ldrb.w r1, [r6, #1]!
  58060. 801826a: 3b01 subs r3, #1
  58061. 801826c: 60a3 str r3, [r4, #8]
  58062. 801826e: 2900 cmp r1, #0
  58063. 8018270: d1ed bne.n 801824e <_puts_r+0x52>
  58064. 8018272: 2b00 cmp r3, #0
  58065. 8018274: da11 bge.n 801829a <_puts_r+0x9e>
  58066. 8018276: 4622 mov r2, r4
  58067. 8018278: 210a movs r1, #10
  58068. 801827a: 4628 mov r0, r5
  58069. 801827c: f000 f85f bl 801833e <__swbuf_r>
  58070. 8018280: 3001 adds r0, #1
  58071. 8018282: d0d7 beq.n 8018234 <_puts_r+0x38>
  58072. 8018284: 250a movs r5, #10
  58073. 8018286: e7d7 b.n 8018238 <_puts_r+0x3c>
  58074. 8018288: 4622 mov r2, r4
  58075. 801828a: 4628 mov r0, r5
  58076. 801828c: f000 f857 bl 801833e <__swbuf_r>
  58077. 8018290: 3001 adds r0, #1
  58078. 8018292: d1e7 bne.n 8018264 <_puts_r+0x68>
  58079. 8018294: e7ce b.n 8018234 <_puts_r+0x38>
  58080. 8018296: 3e01 subs r6, #1
  58081. 8018298: e7e4 b.n 8018264 <_puts_r+0x68>
  58082. 801829a: 6823 ldr r3, [r4, #0]
  58083. 801829c: 1c5a adds r2, r3, #1
  58084. 801829e: 6022 str r2, [r4, #0]
  58085. 80182a0: 220a movs r2, #10
  58086. 80182a2: 701a strb r2, [r3, #0]
  58087. 80182a4: e7ee b.n 8018284 <_puts_r+0x88>
  58088. ...
  58089. 080182a8 <puts>:
  58090. 80182a8: 4b02 ldr r3, [pc, #8] @ (80182b4 <puts+0xc>)
  58091. 80182aa: 4601 mov r1, r0
  58092. 80182ac: 6818 ldr r0, [r3, #0]
  58093. 80182ae: f7ff bfa5 b.w 80181fc <_puts_r>
  58094. 80182b2: bf00 nop
  58095. 80182b4: 24000054 .word 0x24000054
  58096. 080182b8 <__sread>:
  58097. 80182b8: b510 push {r4, lr}
  58098. 80182ba: 460c mov r4, r1
  58099. 80182bc: f9b1 100e ldrsh.w r1, [r1, #14]
  58100. 80182c0: f000 f956 bl 8018570 <_read_r>
  58101. 80182c4: 2800 cmp r0, #0
  58102. 80182c6: bfab itete ge
  58103. 80182c8: 6d63 ldrge r3, [r4, #84] @ 0x54
  58104. 80182ca: 89a3 ldrhlt r3, [r4, #12]
  58105. 80182cc: 181b addge r3, r3, r0
  58106. 80182ce: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
  58107. 80182d2: bfac ite ge
  58108. 80182d4: 6563 strge r3, [r4, #84] @ 0x54
  58109. 80182d6: 81a3 strhlt r3, [r4, #12]
  58110. 80182d8: bd10 pop {r4, pc}
  58111. 080182da <__swrite>:
  58112. 80182da: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  58113. 80182de: 461f mov r7, r3
  58114. 80182e0: 898b ldrh r3, [r1, #12]
  58115. 80182e2: 05db lsls r3, r3, #23
  58116. 80182e4: 4605 mov r5, r0
  58117. 80182e6: 460c mov r4, r1
  58118. 80182e8: 4616 mov r6, r2
  58119. 80182ea: d505 bpl.n 80182f8 <__swrite+0x1e>
  58120. 80182ec: f9b1 100e ldrsh.w r1, [r1, #14]
  58121. 80182f0: 2302 movs r3, #2
  58122. 80182f2: 2200 movs r2, #0
  58123. 80182f4: f000 f92a bl 801854c <_lseek_r>
  58124. 80182f8: 89a3 ldrh r3, [r4, #12]
  58125. 80182fa: f9b4 100e ldrsh.w r1, [r4, #14]
  58126. 80182fe: f423 5380 bic.w r3, r3, #4096 @ 0x1000
  58127. 8018302: 81a3 strh r3, [r4, #12]
  58128. 8018304: 4632 mov r2, r6
  58129. 8018306: 463b mov r3, r7
  58130. 8018308: 4628 mov r0, r5
  58131. 801830a: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  58132. 801830e: f000 b941 b.w 8018594 <_write_r>
  58133. 08018312 <__sseek>:
  58134. 8018312: b510 push {r4, lr}
  58135. 8018314: 460c mov r4, r1
  58136. 8018316: f9b1 100e ldrsh.w r1, [r1, #14]
  58137. 801831a: f000 f917 bl 801854c <_lseek_r>
  58138. 801831e: 1c43 adds r3, r0, #1
  58139. 8018320: 89a3 ldrh r3, [r4, #12]
  58140. 8018322: bf15 itete ne
  58141. 8018324: 6560 strne r0, [r4, #84] @ 0x54
  58142. 8018326: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
  58143. 801832a: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
  58144. 801832e: 81a3 strheq r3, [r4, #12]
  58145. 8018330: bf18 it ne
  58146. 8018332: 81a3 strhne r3, [r4, #12]
  58147. 8018334: bd10 pop {r4, pc}
  58148. 08018336 <__sclose>:
  58149. 8018336: f9b1 100e ldrsh.w r1, [r1, #14]
  58150. 801833a: f000 b8a1 b.w 8018480 <_close_r>
  58151. 0801833e <__swbuf_r>:
  58152. 801833e: b5f8 push {r3, r4, r5, r6, r7, lr}
  58153. 8018340: 460e mov r6, r1
  58154. 8018342: 4614 mov r4, r2
  58155. 8018344: 4605 mov r5, r0
  58156. 8018346: b118 cbz r0, 8018350 <__swbuf_r+0x12>
  58157. 8018348: 6a03 ldr r3, [r0, #32]
  58158. 801834a: b90b cbnz r3, 8018350 <__swbuf_r+0x12>
  58159. 801834c: f7ff ff20 bl 8018190 <__sinit>
  58160. 8018350: 69a3 ldr r3, [r4, #24]
  58161. 8018352: 60a3 str r3, [r4, #8]
  58162. 8018354: 89a3 ldrh r3, [r4, #12]
  58163. 8018356: 071a lsls r2, r3, #28
  58164. 8018358: d501 bpl.n 801835e <__swbuf_r+0x20>
  58165. 801835a: 6923 ldr r3, [r4, #16]
  58166. 801835c: b943 cbnz r3, 8018370 <__swbuf_r+0x32>
  58167. 801835e: 4621 mov r1, r4
  58168. 8018360: 4628 mov r0, r5
  58169. 8018362: f000 f82b bl 80183bc <__swsetup_r>
  58170. 8018366: b118 cbz r0, 8018370 <__swbuf_r+0x32>
  58171. 8018368: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
  58172. 801836c: 4638 mov r0, r7
  58173. 801836e: bdf8 pop {r3, r4, r5, r6, r7, pc}
  58174. 8018370: 6823 ldr r3, [r4, #0]
  58175. 8018372: 6922 ldr r2, [r4, #16]
  58176. 8018374: 1a98 subs r0, r3, r2
  58177. 8018376: 6963 ldr r3, [r4, #20]
  58178. 8018378: b2f6 uxtb r6, r6
  58179. 801837a: 4283 cmp r3, r0
  58180. 801837c: 4637 mov r7, r6
  58181. 801837e: dc05 bgt.n 801838c <__swbuf_r+0x4e>
  58182. 8018380: 4621 mov r1, r4
  58183. 8018382: 4628 mov r0, r5
  58184. 8018384: f001 fc38 bl 8019bf8 <_fflush_r>
  58185. 8018388: 2800 cmp r0, #0
  58186. 801838a: d1ed bne.n 8018368 <__swbuf_r+0x2a>
  58187. 801838c: 68a3 ldr r3, [r4, #8]
  58188. 801838e: 3b01 subs r3, #1
  58189. 8018390: 60a3 str r3, [r4, #8]
  58190. 8018392: 6823 ldr r3, [r4, #0]
  58191. 8018394: 1c5a adds r2, r3, #1
  58192. 8018396: 6022 str r2, [r4, #0]
  58193. 8018398: 701e strb r6, [r3, #0]
  58194. 801839a: 6962 ldr r2, [r4, #20]
  58195. 801839c: 1c43 adds r3, r0, #1
  58196. 801839e: 429a cmp r2, r3
  58197. 80183a0: d004 beq.n 80183ac <__swbuf_r+0x6e>
  58198. 80183a2: 89a3 ldrh r3, [r4, #12]
  58199. 80183a4: 07db lsls r3, r3, #31
  58200. 80183a6: d5e1 bpl.n 801836c <__swbuf_r+0x2e>
  58201. 80183a8: 2e0a cmp r6, #10
  58202. 80183aa: d1df bne.n 801836c <__swbuf_r+0x2e>
  58203. 80183ac: 4621 mov r1, r4
  58204. 80183ae: 4628 mov r0, r5
  58205. 80183b0: f001 fc22 bl 8019bf8 <_fflush_r>
  58206. 80183b4: 2800 cmp r0, #0
  58207. 80183b6: d0d9 beq.n 801836c <__swbuf_r+0x2e>
  58208. 80183b8: e7d6 b.n 8018368 <__swbuf_r+0x2a>
  58209. ...
  58210. 080183bc <__swsetup_r>:
  58211. 80183bc: b538 push {r3, r4, r5, lr}
  58212. 80183be: 4b29 ldr r3, [pc, #164] @ (8018464 <__swsetup_r+0xa8>)
  58213. 80183c0: 4605 mov r5, r0
  58214. 80183c2: 6818 ldr r0, [r3, #0]
  58215. 80183c4: 460c mov r4, r1
  58216. 80183c6: b118 cbz r0, 80183d0 <__swsetup_r+0x14>
  58217. 80183c8: 6a03 ldr r3, [r0, #32]
  58218. 80183ca: b90b cbnz r3, 80183d0 <__swsetup_r+0x14>
  58219. 80183cc: f7ff fee0 bl 8018190 <__sinit>
  58220. 80183d0: f9b4 300c ldrsh.w r3, [r4, #12]
  58221. 80183d4: 0719 lsls r1, r3, #28
  58222. 80183d6: d422 bmi.n 801841e <__swsetup_r+0x62>
  58223. 80183d8: 06da lsls r2, r3, #27
  58224. 80183da: d407 bmi.n 80183ec <__swsetup_r+0x30>
  58225. 80183dc: 2209 movs r2, #9
  58226. 80183de: 602a str r2, [r5, #0]
  58227. 80183e0: f043 0340 orr.w r3, r3, #64 @ 0x40
  58228. 80183e4: 81a3 strh r3, [r4, #12]
  58229. 80183e6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  58230. 80183ea: e033 b.n 8018454 <__swsetup_r+0x98>
  58231. 80183ec: 0758 lsls r0, r3, #29
  58232. 80183ee: d512 bpl.n 8018416 <__swsetup_r+0x5a>
  58233. 80183f0: 6b61 ldr r1, [r4, #52] @ 0x34
  58234. 80183f2: b141 cbz r1, 8018406 <__swsetup_r+0x4a>
  58235. 80183f4: f104 0344 add.w r3, r4, #68 @ 0x44
  58236. 80183f8: 4299 cmp r1, r3
  58237. 80183fa: d002 beq.n 8018402 <__swsetup_r+0x46>
  58238. 80183fc: 4628 mov r0, r5
  58239. 80183fe: f000 fef5 bl 80191ec <_free_r>
  58240. 8018402: 2300 movs r3, #0
  58241. 8018404: 6363 str r3, [r4, #52] @ 0x34
  58242. 8018406: 89a3 ldrh r3, [r4, #12]
  58243. 8018408: f023 0324 bic.w r3, r3, #36 @ 0x24
  58244. 801840c: 81a3 strh r3, [r4, #12]
  58245. 801840e: 2300 movs r3, #0
  58246. 8018410: 6063 str r3, [r4, #4]
  58247. 8018412: 6923 ldr r3, [r4, #16]
  58248. 8018414: 6023 str r3, [r4, #0]
  58249. 8018416: 89a3 ldrh r3, [r4, #12]
  58250. 8018418: f043 0308 orr.w r3, r3, #8
  58251. 801841c: 81a3 strh r3, [r4, #12]
  58252. 801841e: 6923 ldr r3, [r4, #16]
  58253. 8018420: b94b cbnz r3, 8018436 <__swsetup_r+0x7a>
  58254. 8018422: 89a3 ldrh r3, [r4, #12]
  58255. 8018424: f403 7320 and.w r3, r3, #640 @ 0x280
  58256. 8018428: f5b3 7f00 cmp.w r3, #512 @ 0x200
  58257. 801842c: d003 beq.n 8018436 <__swsetup_r+0x7a>
  58258. 801842e: 4621 mov r1, r4
  58259. 8018430: 4628 mov r0, r5
  58260. 8018432: f001 fc2f bl 8019c94 <__smakebuf_r>
  58261. 8018436: f9b4 300c ldrsh.w r3, [r4, #12]
  58262. 801843a: f013 0201 ands.w r2, r3, #1
  58263. 801843e: d00a beq.n 8018456 <__swsetup_r+0x9a>
  58264. 8018440: 2200 movs r2, #0
  58265. 8018442: 60a2 str r2, [r4, #8]
  58266. 8018444: 6962 ldr r2, [r4, #20]
  58267. 8018446: 4252 negs r2, r2
  58268. 8018448: 61a2 str r2, [r4, #24]
  58269. 801844a: 6922 ldr r2, [r4, #16]
  58270. 801844c: b942 cbnz r2, 8018460 <__swsetup_r+0xa4>
  58271. 801844e: f013 0080 ands.w r0, r3, #128 @ 0x80
  58272. 8018452: d1c5 bne.n 80183e0 <__swsetup_r+0x24>
  58273. 8018454: bd38 pop {r3, r4, r5, pc}
  58274. 8018456: 0799 lsls r1, r3, #30
  58275. 8018458: bf58 it pl
  58276. 801845a: 6962 ldrpl r2, [r4, #20]
  58277. 801845c: 60a2 str r2, [r4, #8]
  58278. 801845e: e7f4 b.n 801844a <__swsetup_r+0x8e>
  58279. 8018460: 2000 movs r0, #0
  58280. 8018462: e7f7 b.n 8018454 <__swsetup_r+0x98>
  58281. 8018464: 24000054 .word 0x24000054
  58282. 08018468 <memset>:
  58283. 8018468: 4402 add r2, r0
  58284. 801846a: 4603 mov r3, r0
  58285. 801846c: 4293 cmp r3, r2
  58286. 801846e: d100 bne.n 8018472 <memset+0xa>
  58287. 8018470: 4770 bx lr
  58288. 8018472: f803 1b01 strb.w r1, [r3], #1
  58289. 8018476: e7f9 b.n 801846c <memset+0x4>
  58290. 08018478 <_localeconv_r>:
  58291. 8018478: 4800 ldr r0, [pc, #0] @ (801847c <_localeconv_r+0x4>)
  58292. 801847a: 4770 bx lr
  58293. 801847c: 24000194 .word 0x24000194
  58294. 08018480 <_close_r>:
  58295. 8018480: b538 push {r3, r4, r5, lr}
  58296. 8018482: 4d06 ldr r5, [pc, #24] @ (801849c <_close_r+0x1c>)
  58297. 8018484: 2300 movs r3, #0
  58298. 8018486: 4604 mov r4, r0
  58299. 8018488: 4608 mov r0, r1
  58300. 801848a: 602b str r3, [r5, #0]
  58301. 801848c: f7eb ff54 bl 8004338 <_close>
  58302. 8018490: 1c43 adds r3, r0, #1
  58303. 8018492: d102 bne.n 801849a <_close_r+0x1a>
  58304. 8018494: 682b ldr r3, [r5, #0]
  58305. 8018496: b103 cbz r3, 801849a <_close_r+0x1a>
  58306. 8018498: 6023 str r3, [r4, #0]
  58307. 801849a: bd38 pop {r3, r4, r5, pc}
  58308. 801849c: 240132e4 .word 0x240132e4
  58309. 080184a0 <_reclaim_reent>:
  58310. 80184a0: 4b29 ldr r3, [pc, #164] @ (8018548 <_reclaim_reent+0xa8>)
  58311. 80184a2: 681b ldr r3, [r3, #0]
  58312. 80184a4: 4283 cmp r3, r0
  58313. 80184a6: b570 push {r4, r5, r6, lr}
  58314. 80184a8: 4604 mov r4, r0
  58315. 80184aa: d04b beq.n 8018544 <_reclaim_reent+0xa4>
  58316. 80184ac: 69c3 ldr r3, [r0, #28]
  58317. 80184ae: b1ab cbz r3, 80184dc <_reclaim_reent+0x3c>
  58318. 80184b0: 68db ldr r3, [r3, #12]
  58319. 80184b2: b16b cbz r3, 80184d0 <_reclaim_reent+0x30>
  58320. 80184b4: 2500 movs r5, #0
  58321. 80184b6: 69e3 ldr r3, [r4, #28]
  58322. 80184b8: 68db ldr r3, [r3, #12]
  58323. 80184ba: 5959 ldr r1, [r3, r5]
  58324. 80184bc: 2900 cmp r1, #0
  58325. 80184be: d13b bne.n 8018538 <_reclaim_reent+0x98>
  58326. 80184c0: 3504 adds r5, #4
  58327. 80184c2: 2d80 cmp r5, #128 @ 0x80
  58328. 80184c4: d1f7 bne.n 80184b6 <_reclaim_reent+0x16>
  58329. 80184c6: 69e3 ldr r3, [r4, #28]
  58330. 80184c8: 4620 mov r0, r4
  58331. 80184ca: 68d9 ldr r1, [r3, #12]
  58332. 80184cc: f000 fe8e bl 80191ec <_free_r>
  58333. 80184d0: 69e3 ldr r3, [r4, #28]
  58334. 80184d2: 6819 ldr r1, [r3, #0]
  58335. 80184d4: b111 cbz r1, 80184dc <_reclaim_reent+0x3c>
  58336. 80184d6: 4620 mov r0, r4
  58337. 80184d8: f000 fe88 bl 80191ec <_free_r>
  58338. 80184dc: 6961 ldr r1, [r4, #20]
  58339. 80184de: b111 cbz r1, 80184e6 <_reclaim_reent+0x46>
  58340. 80184e0: 4620 mov r0, r4
  58341. 80184e2: f000 fe83 bl 80191ec <_free_r>
  58342. 80184e6: 69e1 ldr r1, [r4, #28]
  58343. 80184e8: b111 cbz r1, 80184f0 <_reclaim_reent+0x50>
  58344. 80184ea: 4620 mov r0, r4
  58345. 80184ec: f000 fe7e bl 80191ec <_free_r>
  58346. 80184f0: 6b21 ldr r1, [r4, #48] @ 0x30
  58347. 80184f2: b111 cbz r1, 80184fa <_reclaim_reent+0x5a>
  58348. 80184f4: 4620 mov r0, r4
  58349. 80184f6: f000 fe79 bl 80191ec <_free_r>
  58350. 80184fa: 6b61 ldr r1, [r4, #52] @ 0x34
  58351. 80184fc: b111 cbz r1, 8018504 <_reclaim_reent+0x64>
  58352. 80184fe: 4620 mov r0, r4
  58353. 8018500: f000 fe74 bl 80191ec <_free_r>
  58354. 8018504: 6ba1 ldr r1, [r4, #56] @ 0x38
  58355. 8018506: b111 cbz r1, 801850e <_reclaim_reent+0x6e>
  58356. 8018508: 4620 mov r0, r4
  58357. 801850a: f000 fe6f bl 80191ec <_free_r>
  58358. 801850e: 6ca1 ldr r1, [r4, #72] @ 0x48
  58359. 8018510: b111 cbz r1, 8018518 <_reclaim_reent+0x78>
  58360. 8018512: 4620 mov r0, r4
  58361. 8018514: f000 fe6a bl 80191ec <_free_r>
  58362. 8018518: 6c61 ldr r1, [r4, #68] @ 0x44
  58363. 801851a: b111 cbz r1, 8018522 <_reclaim_reent+0x82>
  58364. 801851c: 4620 mov r0, r4
  58365. 801851e: f000 fe65 bl 80191ec <_free_r>
  58366. 8018522: 6ae1 ldr r1, [r4, #44] @ 0x2c
  58367. 8018524: b111 cbz r1, 801852c <_reclaim_reent+0x8c>
  58368. 8018526: 4620 mov r0, r4
  58369. 8018528: f000 fe60 bl 80191ec <_free_r>
  58370. 801852c: 6a23 ldr r3, [r4, #32]
  58371. 801852e: b14b cbz r3, 8018544 <_reclaim_reent+0xa4>
  58372. 8018530: 4620 mov r0, r4
  58373. 8018532: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
  58374. 8018536: 4718 bx r3
  58375. 8018538: 680e ldr r6, [r1, #0]
  58376. 801853a: 4620 mov r0, r4
  58377. 801853c: f000 fe56 bl 80191ec <_free_r>
  58378. 8018540: 4631 mov r1, r6
  58379. 8018542: e7bb b.n 80184bc <_reclaim_reent+0x1c>
  58380. 8018544: bd70 pop {r4, r5, r6, pc}
  58381. 8018546: bf00 nop
  58382. 8018548: 24000054 .word 0x24000054
  58383. 0801854c <_lseek_r>:
  58384. 801854c: b538 push {r3, r4, r5, lr}
  58385. 801854e: 4d07 ldr r5, [pc, #28] @ (801856c <_lseek_r+0x20>)
  58386. 8018550: 4604 mov r4, r0
  58387. 8018552: 4608 mov r0, r1
  58388. 8018554: 4611 mov r1, r2
  58389. 8018556: 2200 movs r2, #0
  58390. 8018558: 602a str r2, [r5, #0]
  58391. 801855a: 461a mov r2, r3
  58392. 801855c: f7eb ff13 bl 8004386 <_lseek>
  58393. 8018560: 1c43 adds r3, r0, #1
  58394. 8018562: d102 bne.n 801856a <_lseek_r+0x1e>
  58395. 8018564: 682b ldr r3, [r5, #0]
  58396. 8018566: b103 cbz r3, 801856a <_lseek_r+0x1e>
  58397. 8018568: 6023 str r3, [r4, #0]
  58398. 801856a: bd38 pop {r3, r4, r5, pc}
  58399. 801856c: 240132e4 .word 0x240132e4
  58400. 08018570 <_read_r>:
  58401. 8018570: b538 push {r3, r4, r5, lr}
  58402. 8018572: 4d07 ldr r5, [pc, #28] @ (8018590 <_read_r+0x20>)
  58403. 8018574: 4604 mov r4, r0
  58404. 8018576: 4608 mov r0, r1
  58405. 8018578: 4611 mov r1, r2
  58406. 801857a: 2200 movs r2, #0
  58407. 801857c: 602a str r2, [r5, #0]
  58408. 801857e: 461a mov r2, r3
  58409. 8018580: f7eb fea1 bl 80042c6 <_read>
  58410. 8018584: 1c43 adds r3, r0, #1
  58411. 8018586: d102 bne.n 801858e <_read_r+0x1e>
  58412. 8018588: 682b ldr r3, [r5, #0]
  58413. 801858a: b103 cbz r3, 801858e <_read_r+0x1e>
  58414. 801858c: 6023 str r3, [r4, #0]
  58415. 801858e: bd38 pop {r3, r4, r5, pc}
  58416. 8018590: 240132e4 .word 0x240132e4
  58417. 08018594 <_write_r>:
  58418. 8018594: b538 push {r3, r4, r5, lr}
  58419. 8018596: 4d07 ldr r5, [pc, #28] @ (80185b4 <_write_r+0x20>)
  58420. 8018598: 4604 mov r4, r0
  58421. 801859a: 4608 mov r0, r1
  58422. 801859c: 4611 mov r1, r2
  58423. 801859e: 2200 movs r2, #0
  58424. 80185a0: 602a str r2, [r5, #0]
  58425. 80185a2: 461a mov r2, r3
  58426. 80185a4: f7eb feac bl 8004300 <_write>
  58427. 80185a8: 1c43 adds r3, r0, #1
  58428. 80185aa: d102 bne.n 80185b2 <_write_r+0x1e>
  58429. 80185ac: 682b ldr r3, [r5, #0]
  58430. 80185ae: b103 cbz r3, 80185b2 <_write_r+0x1e>
  58431. 80185b0: 6023 str r3, [r4, #0]
  58432. 80185b2: bd38 pop {r3, r4, r5, pc}
  58433. 80185b4: 240132e4 .word 0x240132e4
  58434. 080185b8 <__errno>:
  58435. 80185b8: 4b01 ldr r3, [pc, #4] @ (80185c0 <__errno+0x8>)
  58436. 80185ba: 6818 ldr r0, [r3, #0]
  58437. 80185bc: 4770 bx lr
  58438. 80185be: bf00 nop
  58439. 80185c0: 24000054 .word 0x24000054
  58440. 080185c4 <__libc_init_array>:
  58441. 80185c4: b570 push {r4, r5, r6, lr}
  58442. 80185c6: 4d0d ldr r5, [pc, #52] @ (80185fc <__libc_init_array+0x38>)
  58443. 80185c8: 4c0d ldr r4, [pc, #52] @ (8018600 <__libc_init_array+0x3c>)
  58444. 80185ca: 1b64 subs r4, r4, r5
  58445. 80185cc: 10a4 asrs r4, r4, #2
  58446. 80185ce: 2600 movs r6, #0
  58447. 80185d0: 42a6 cmp r6, r4
  58448. 80185d2: d109 bne.n 80185e8 <__libc_init_array+0x24>
  58449. 80185d4: 4d0b ldr r5, [pc, #44] @ (8018604 <__libc_init_array+0x40>)
  58450. 80185d6: 4c0c ldr r4, [pc, #48] @ (8018608 <__libc_init_array+0x44>)
  58451. 80185d8: f001 fddc bl 801a194 <_init>
  58452. 80185dc: 1b64 subs r4, r4, r5
  58453. 80185de: 10a4 asrs r4, r4, #2
  58454. 80185e0: 2600 movs r6, #0
  58455. 80185e2: 42a6 cmp r6, r4
  58456. 80185e4: d105 bne.n 80185f2 <__libc_init_array+0x2e>
  58457. 80185e6: bd70 pop {r4, r5, r6, pc}
  58458. 80185e8: f855 3b04 ldr.w r3, [r5], #4
  58459. 80185ec: 4798 blx r3
  58460. 80185ee: 3601 adds r6, #1
  58461. 80185f0: e7ee b.n 80185d0 <__libc_init_array+0xc>
  58462. 80185f2: f855 3b04 ldr.w r3, [r5], #4
  58463. 80185f6: 4798 blx r3
  58464. 80185f8: 3601 adds r6, #1
  58465. 80185fa: e7f2 b.n 80185e2 <__libc_init_array+0x1e>
  58466. 80185fc: 0801a640 .word 0x0801a640
  58467. 8018600: 0801a640 .word 0x0801a640
  58468. 8018604: 0801a640 .word 0x0801a640
  58469. 8018608: 0801a644 .word 0x0801a644
  58470. 0801860c <__retarget_lock_init_recursive>:
  58471. 801860c: 4770 bx lr
  58472. 0801860e <__retarget_lock_acquire_recursive>:
  58473. 801860e: 4770 bx lr
  58474. 08018610 <__retarget_lock_release_recursive>:
  58475. 8018610: 4770 bx lr
  58476. 08018612 <memcpy>:
  58477. 8018612: 440a add r2, r1
  58478. 8018614: 4291 cmp r1, r2
  58479. 8018616: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
  58480. 801861a: d100 bne.n 801861e <memcpy+0xc>
  58481. 801861c: 4770 bx lr
  58482. 801861e: b510 push {r4, lr}
  58483. 8018620: f811 4b01 ldrb.w r4, [r1], #1
  58484. 8018624: f803 4f01 strb.w r4, [r3, #1]!
  58485. 8018628: 4291 cmp r1, r2
  58486. 801862a: d1f9 bne.n 8018620 <memcpy+0xe>
  58487. 801862c: bd10 pop {r4, pc}
  58488. 0801862e <quorem>:
  58489. 801862e: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  58490. 8018632: 6903 ldr r3, [r0, #16]
  58491. 8018634: 690c ldr r4, [r1, #16]
  58492. 8018636: 42a3 cmp r3, r4
  58493. 8018638: 4607 mov r7, r0
  58494. 801863a: db7e blt.n 801873a <quorem+0x10c>
  58495. 801863c: 3c01 subs r4, #1
  58496. 801863e: f101 0814 add.w r8, r1, #20
  58497. 8018642: 00a3 lsls r3, r4, #2
  58498. 8018644: f100 0514 add.w r5, r0, #20
  58499. 8018648: 9300 str r3, [sp, #0]
  58500. 801864a: eb05 0384 add.w r3, r5, r4, lsl #2
  58501. 801864e: 9301 str r3, [sp, #4]
  58502. 8018650: f858 3024 ldr.w r3, [r8, r4, lsl #2]
  58503. 8018654: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  58504. 8018658: 3301 adds r3, #1
  58505. 801865a: 429a cmp r2, r3
  58506. 801865c: eb08 0984 add.w r9, r8, r4, lsl #2
  58507. 8018660: fbb2 f6f3 udiv r6, r2, r3
  58508. 8018664: d32e bcc.n 80186c4 <quorem+0x96>
  58509. 8018666: f04f 0a00 mov.w sl, #0
  58510. 801866a: 46c4 mov ip, r8
  58511. 801866c: 46ae mov lr, r5
  58512. 801866e: 46d3 mov fp, sl
  58513. 8018670: f85c 3b04 ldr.w r3, [ip], #4
  58514. 8018674: b298 uxth r0, r3
  58515. 8018676: fb06 a000 mla r0, r6, r0, sl
  58516. 801867a: 0c02 lsrs r2, r0, #16
  58517. 801867c: 0c1b lsrs r3, r3, #16
  58518. 801867e: fb06 2303 mla r3, r6, r3, r2
  58519. 8018682: f8de 2000 ldr.w r2, [lr]
  58520. 8018686: b280 uxth r0, r0
  58521. 8018688: b292 uxth r2, r2
  58522. 801868a: 1a12 subs r2, r2, r0
  58523. 801868c: 445a add r2, fp
  58524. 801868e: f8de 0000 ldr.w r0, [lr]
  58525. 8018692: ea4f 4a13 mov.w sl, r3, lsr #16
  58526. 8018696: b29b uxth r3, r3
  58527. 8018698: ebc3 4322 rsb r3, r3, r2, asr #16
  58528. 801869c: eb03 4310 add.w r3, r3, r0, lsr #16
  58529. 80186a0: b292 uxth r2, r2
  58530. 80186a2: ea42 4203 orr.w r2, r2, r3, lsl #16
  58531. 80186a6: 45e1 cmp r9, ip
  58532. 80186a8: f84e 2b04 str.w r2, [lr], #4
  58533. 80186ac: ea4f 4b23 mov.w fp, r3, asr #16
  58534. 80186b0: d2de bcs.n 8018670 <quorem+0x42>
  58535. 80186b2: 9b00 ldr r3, [sp, #0]
  58536. 80186b4: 58eb ldr r3, [r5, r3]
  58537. 80186b6: b92b cbnz r3, 80186c4 <quorem+0x96>
  58538. 80186b8: 9b01 ldr r3, [sp, #4]
  58539. 80186ba: 3b04 subs r3, #4
  58540. 80186bc: 429d cmp r5, r3
  58541. 80186be: 461a mov r2, r3
  58542. 80186c0: d32f bcc.n 8018722 <quorem+0xf4>
  58543. 80186c2: 613c str r4, [r7, #16]
  58544. 80186c4: 4638 mov r0, r7
  58545. 80186c6: f001 f90b bl 80198e0 <__mcmp>
  58546. 80186ca: 2800 cmp r0, #0
  58547. 80186cc: db25 blt.n 801871a <quorem+0xec>
  58548. 80186ce: 4629 mov r1, r5
  58549. 80186d0: 2000 movs r0, #0
  58550. 80186d2: f858 2b04 ldr.w r2, [r8], #4
  58551. 80186d6: f8d1 c000 ldr.w ip, [r1]
  58552. 80186da: fa1f fe82 uxth.w lr, r2
  58553. 80186de: fa1f f38c uxth.w r3, ip
  58554. 80186e2: eba3 030e sub.w r3, r3, lr
  58555. 80186e6: 4403 add r3, r0
  58556. 80186e8: 0c12 lsrs r2, r2, #16
  58557. 80186ea: ebc2 4223 rsb r2, r2, r3, asr #16
  58558. 80186ee: eb02 421c add.w r2, r2, ip, lsr #16
  58559. 80186f2: b29b uxth r3, r3
  58560. 80186f4: ea43 4302 orr.w r3, r3, r2, lsl #16
  58561. 80186f8: 45c1 cmp r9, r8
  58562. 80186fa: f841 3b04 str.w r3, [r1], #4
  58563. 80186fe: ea4f 4022 mov.w r0, r2, asr #16
  58564. 8018702: d2e6 bcs.n 80186d2 <quorem+0xa4>
  58565. 8018704: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  58566. 8018708: eb05 0384 add.w r3, r5, r4, lsl #2
  58567. 801870c: b922 cbnz r2, 8018718 <quorem+0xea>
  58568. 801870e: 3b04 subs r3, #4
  58569. 8018710: 429d cmp r5, r3
  58570. 8018712: 461a mov r2, r3
  58571. 8018714: d30b bcc.n 801872e <quorem+0x100>
  58572. 8018716: 613c str r4, [r7, #16]
  58573. 8018718: 3601 adds r6, #1
  58574. 801871a: 4630 mov r0, r6
  58575. 801871c: b003 add sp, #12
  58576. 801871e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  58577. 8018722: 6812 ldr r2, [r2, #0]
  58578. 8018724: 3b04 subs r3, #4
  58579. 8018726: 2a00 cmp r2, #0
  58580. 8018728: d1cb bne.n 80186c2 <quorem+0x94>
  58581. 801872a: 3c01 subs r4, #1
  58582. 801872c: e7c6 b.n 80186bc <quorem+0x8e>
  58583. 801872e: 6812 ldr r2, [r2, #0]
  58584. 8018730: 3b04 subs r3, #4
  58585. 8018732: 2a00 cmp r2, #0
  58586. 8018734: d1ef bne.n 8018716 <quorem+0xe8>
  58587. 8018736: 3c01 subs r4, #1
  58588. 8018738: e7ea b.n 8018710 <quorem+0xe2>
  58589. 801873a: 2000 movs r0, #0
  58590. 801873c: e7ee b.n 801871c <quorem+0xee>
  58591. ...
  58592. 08018740 <_dtoa_r>:
  58593. 8018740: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  58594. 8018744: ed2d 8b02 vpush {d8}
  58595. 8018748: 69c7 ldr r7, [r0, #28]
  58596. 801874a: b091 sub sp, #68 @ 0x44
  58597. 801874c: ed8d 0b02 vstr d0, [sp, #8]
  58598. 8018750: ec55 4b10 vmov r4, r5, d0
  58599. 8018754: 9e1c ldr r6, [sp, #112] @ 0x70
  58600. 8018756: 9107 str r1, [sp, #28]
  58601. 8018758: 4681 mov r9, r0
  58602. 801875a: 9209 str r2, [sp, #36] @ 0x24
  58603. 801875c: 930d str r3, [sp, #52] @ 0x34
  58604. 801875e: b97f cbnz r7, 8018780 <_dtoa_r+0x40>
  58605. 8018760: 2010 movs r0, #16
  58606. 8018762: f000 fd8d bl 8019280 <malloc>
  58607. 8018766: 4602 mov r2, r0
  58608. 8018768: f8c9 001c str.w r0, [r9, #28]
  58609. 801876c: b920 cbnz r0, 8018778 <_dtoa_r+0x38>
  58610. 801876e: 4ba0 ldr r3, [pc, #640] @ (80189f0 <_dtoa_r+0x2b0>)
  58611. 8018770: 21ef movs r1, #239 @ 0xef
  58612. 8018772: 48a0 ldr r0, [pc, #640] @ (80189f4 <_dtoa_r+0x2b4>)
  58613. 8018774: f001 fafc bl 8019d70 <__assert_func>
  58614. 8018778: e9c0 7701 strd r7, r7, [r0, #4]
  58615. 801877c: 6007 str r7, [r0, #0]
  58616. 801877e: 60c7 str r7, [r0, #12]
  58617. 8018780: f8d9 301c ldr.w r3, [r9, #28]
  58618. 8018784: 6819 ldr r1, [r3, #0]
  58619. 8018786: b159 cbz r1, 80187a0 <_dtoa_r+0x60>
  58620. 8018788: 685a ldr r2, [r3, #4]
  58621. 801878a: 604a str r2, [r1, #4]
  58622. 801878c: 2301 movs r3, #1
  58623. 801878e: 4093 lsls r3, r2
  58624. 8018790: 608b str r3, [r1, #8]
  58625. 8018792: 4648 mov r0, r9
  58626. 8018794: f000 fe6a bl 801946c <_Bfree>
  58627. 8018798: f8d9 301c ldr.w r3, [r9, #28]
  58628. 801879c: 2200 movs r2, #0
  58629. 801879e: 601a str r2, [r3, #0]
  58630. 80187a0: 1e2b subs r3, r5, #0
  58631. 80187a2: bfbb ittet lt
  58632. 80187a4: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000
  58633. 80187a8: 9303 strlt r3, [sp, #12]
  58634. 80187aa: 2300 movge r3, #0
  58635. 80187ac: 2201 movlt r2, #1
  58636. 80187ae: bfac ite ge
  58637. 80187b0: 6033 strge r3, [r6, #0]
  58638. 80187b2: 6032 strlt r2, [r6, #0]
  58639. 80187b4: 4b90 ldr r3, [pc, #576] @ (80189f8 <_dtoa_r+0x2b8>)
  58640. 80187b6: 9e03 ldr r6, [sp, #12]
  58641. 80187b8: 43b3 bics r3, r6
  58642. 80187ba: d110 bne.n 80187de <_dtoa_r+0x9e>
  58643. 80187bc: 9a0d ldr r2, [sp, #52] @ 0x34
  58644. 80187be: f242 730f movw r3, #9999 @ 0x270f
  58645. 80187c2: 6013 str r3, [r2, #0]
  58646. 80187c4: f3c6 0313 ubfx r3, r6, #0, #20
  58647. 80187c8: 4323 orrs r3, r4
  58648. 80187ca: f000 84de beq.w 801918a <_dtoa_r+0xa4a>
  58649. 80187ce: 9b1d ldr r3, [sp, #116] @ 0x74
  58650. 80187d0: 4f8a ldr r7, [pc, #552] @ (80189fc <_dtoa_r+0x2bc>)
  58651. 80187d2: 2b00 cmp r3, #0
  58652. 80187d4: f000 84e0 beq.w 8019198 <_dtoa_r+0xa58>
  58653. 80187d8: 1cfb adds r3, r7, #3
  58654. 80187da: f000 bcdb b.w 8019194 <_dtoa_r+0xa54>
  58655. 80187de: ed9d 8b02 vldr d8, [sp, #8]
  58656. 80187e2: eeb5 8b40 vcmp.f64 d8, #0.0
  58657. 80187e6: eef1 fa10 vmrs APSR_nzcv, fpscr
  58658. 80187ea: d10a bne.n 8018802 <_dtoa_r+0xc2>
  58659. 80187ec: 9a0d ldr r2, [sp, #52] @ 0x34
  58660. 80187ee: 2301 movs r3, #1
  58661. 80187f0: 6013 str r3, [r2, #0]
  58662. 80187f2: 9b1d ldr r3, [sp, #116] @ 0x74
  58663. 80187f4: b113 cbz r3, 80187fc <_dtoa_r+0xbc>
  58664. 80187f6: 9a1d ldr r2, [sp, #116] @ 0x74
  58665. 80187f8: 4b81 ldr r3, [pc, #516] @ (8018a00 <_dtoa_r+0x2c0>)
  58666. 80187fa: 6013 str r3, [r2, #0]
  58667. 80187fc: 4f81 ldr r7, [pc, #516] @ (8018a04 <_dtoa_r+0x2c4>)
  58668. 80187fe: f000 bccb b.w 8019198 <_dtoa_r+0xa58>
  58669. 8018802: aa0e add r2, sp, #56 @ 0x38
  58670. 8018804: a90f add r1, sp, #60 @ 0x3c
  58671. 8018806: 4648 mov r0, r9
  58672. 8018808: eeb0 0b48 vmov.f64 d0, d8
  58673. 801880c: f001 f918 bl 8019a40 <__d2b>
  58674. 8018810: f3c6 530a ubfx r3, r6, #20, #11
  58675. 8018814: 9a0e ldr r2, [sp, #56] @ 0x38
  58676. 8018816: 9001 str r0, [sp, #4]
  58677. 8018818: 2b00 cmp r3, #0
  58678. 801881a: d045 beq.n 80188a8 <_dtoa_r+0x168>
  58679. 801881c: eeb0 7b48 vmov.f64 d7, d8
  58680. 8018820: ee18 1a90 vmov r1, s17
  58681. 8018824: f3c1 0113 ubfx r1, r1, #0, #20
  58682. 8018828: f041 517f orr.w r1, r1, #1069547520 @ 0x3fc00000
  58683. 801882c: f441 1140 orr.w r1, r1, #3145728 @ 0x300000
  58684. 8018830: f2a3 33ff subw r3, r3, #1023 @ 0x3ff
  58685. 8018834: 2500 movs r5, #0
  58686. 8018836: ee07 1a90 vmov s15, r1
  58687. 801883a: eeb7 6b08 vmov.f64 d6, #120 @ 0x3fc00000 1.5
  58688. 801883e: ed9f 5b66 vldr d5, [pc, #408] @ 80189d8 <_dtoa_r+0x298>
  58689. 8018842: ee37 7b46 vsub.f64 d7, d7, d6
  58690. 8018846: ed9f 6b66 vldr d6, [pc, #408] @ 80189e0 <_dtoa_r+0x2a0>
  58691. 801884a: eea7 6b05 vfma.f64 d6, d7, d5
  58692. 801884e: ed9f 5b66 vldr d5, [pc, #408] @ 80189e8 <_dtoa_r+0x2a8>
  58693. 8018852: ee07 3a90 vmov s15, r3
  58694. 8018856: eeb8 4be7 vcvt.f64.s32 d4, s15
  58695. 801885a: eeb0 7b46 vmov.f64 d7, d6
  58696. 801885e: eea4 7b05 vfma.f64 d7, d4, d5
  58697. 8018862: eefd 6bc7 vcvt.s32.f64 s13, d7
  58698. 8018866: eeb5 7bc0 vcmpe.f64 d7, #0.0
  58699. 801886a: eef1 fa10 vmrs APSR_nzcv, fpscr
  58700. 801886e: ee16 8a90 vmov r8, s13
  58701. 8018872: d508 bpl.n 8018886 <_dtoa_r+0x146>
  58702. 8018874: eeb8 6be6 vcvt.f64.s32 d6, s13
  58703. 8018878: eeb4 6b47 vcmp.f64 d6, d7
  58704. 801887c: eef1 fa10 vmrs APSR_nzcv, fpscr
  58705. 8018880: bf18 it ne
  58706. 8018882: f108 38ff addne.w r8, r8, #4294967295 @ 0xffffffff
  58707. 8018886: f1b8 0f16 cmp.w r8, #22
  58708. 801888a: d82b bhi.n 80188e4 <_dtoa_r+0x1a4>
  58709. 801888c: 495e ldr r1, [pc, #376] @ (8018a08 <_dtoa_r+0x2c8>)
  58710. 801888e: eb01 01c8 add.w r1, r1, r8, lsl #3
  58711. 8018892: ed91 7b00 vldr d7, [r1]
  58712. 8018896: eeb4 8bc7 vcmpe.f64 d8, d7
  58713. 801889a: eef1 fa10 vmrs APSR_nzcv, fpscr
  58714. 801889e: d501 bpl.n 80188a4 <_dtoa_r+0x164>
  58715. 80188a0: f108 38ff add.w r8, r8, #4294967295 @ 0xffffffff
  58716. 80188a4: 2100 movs r1, #0
  58717. 80188a6: e01e b.n 80188e6 <_dtoa_r+0x1a6>
  58718. 80188a8: 9b0f ldr r3, [sp, #60] @ 0x3c
  58719. 80188aa: 4413 add r3, r2
  58720. 80188ac: f203 4132 addw r1, r3, #1074 @ 0x432
  58721. 80188b0: 2920 cmp r1, #32
  58722. 80188b2: bfc1 itttt gt
  58723. 80188b4: f1c1 0140 rsbgt r1, r1, #64 @ 0x40
  58724. 80188b8: 408e lslgt r6, r1
  58725. 80188ba: f203 4112 addwgt r1, r3, #1042 @ 0x412
  58726. 80188be: fa24 f101 lsrgt.w r1, r4, r1
  58727. 80188c2: bfd6 itet le
  58728. 80188c4: f1c1 0120 rsble r1, r1, #32
  58729. 80188c8: 4331 orrgt r1, r6
  58730. 80188ca: fa04 f101 lslle.w r1, r4, r1
  58731. 80188ce: ee07 1a90 vmov s15, r1
  58732. 80188d2: eeb8 7b67 vcvt.f64.u32 d7, s15
  58733. 80188d6: 3b01 subs r3, #1
  58734. 80188d8: ee17 1a90 vmov r1, s15
  58735. 80188dc: 2501 movs r5, #1
  58736. 80188de: f1a1 71f8 sub.w r1, r1, #32505856 @ 0x1f00000
  58737. 80188e2: e7a8 b.n 8018836 <_dtoa_r+0xf6>
  58738. 80188e4: 2101 movs r1, #1
  58739. 80188e6: 1ad2 subs r2, r2, r3
  58740. 80188e8: 1e53 subs r3, r2, #1
  58741. 80188ea: 9306 str r3, [sp, #24]
  58742. 80188ec: bf45 ittet mi
  58743. 80188ee: f1c2 0301 rsbmi r3, r2, #1
  58744. 80188f2: 9305 strmi r3, [sp, #20]
  58745. 80188f4: 2300 movpl r3, #0
  58746. 80188f6: 2300 movmi r3, #0
  58747. 80188f8: bf4c ite mi
  58748. 80188fa: 9306 strmi r3, [sp, #24]
  58749. 80188fc: 9305 strpl r3, [sp, #20]
  58750. 80188fe: f1b8 0f00 cmp.w r8, #0
  58751. 8018902: 910c str r1, [sp, #48] @ 0x30
  58752. 8018904: db18 blt.n 8018938 <_dtoa_r+0x1f8>
  58753. 8018906: 9b06 ldr r3, [sp, #24]
  58754. 8018908: f8cd 8028 str.w r8, [sp, #40] @ 0x28
  58755. 801890c: 4443 add r3, r8
  58756. 801890e: 9306 str r3, [sp, #24]
  58757. 8018910: 2300 movs r3, #0
  58758. 8018912: 9a07 ldr r2, [sp, #28]
  58759. 8018914: 2a09 cmp r2, #9
  58760. 8018916: d849 bhi.n 80189ac <_dtoa_r+0x26c>
  58761. 8018918: 2a05 cmp r2, #5
  58762. 801891a: bfc4 itt gt
  58763. 801891c: 3a04 subgt r2, #4
  58764. 801891e: 9207 strgt r2, [sp, #28]
  58765. 8018920: 9a07 ldr r2, [sp, #28]
  58766. 8018922: f1a2 0202 sub.w r2, r2, #2
  58767. 8018926: bfcc ite gt
  58768. 8018928: 2400 movgt r4, #0
  58769. 801892a: 2401 movle r4, #1
  58770. 801892c: 2a03 cmp r2, #3
  58771. 801892e: d848 bhi.n 80189c2 <_dtoa_r+0x282>
  58772. 8018930: e8df f002 tbb [pc, r2]
  58773. 8018934: 3a2c2e0b .word 0x3a2c2e0b
  58774. 8018938: 9b05 ldr r3, [sp, #20]
  58775. 801893a: 2200 movs r2, #0
  58776. 801893c: eba3 0308 sub.w r3, r3, r8
  58777. 8018940: 9305 str r3, [sp, #20]
  58778. 8018942: 920a str r2, [sp, #40] @ 0x28
  58779. 8018944: f1c8 0300 rsb r3, r8, #0
  58780. 8018948: e7e3 b.n 8018912 <_dtoa_r+0x1d2>
  58781. 801894a: 2200 movs r2, #0
  58782. 801894c: 9208 str r2, [sp, #32]
  58783. 801894e: 9a09 ldr r2, [sp, #36] @ 0x24
  58784. 8018950: 2a00 cmp r2, #0
  58785. 8018952: dc39 bgt.n 80189c8 <_dtoa_r+0x288>
  58786. 8018954: f04f 0b01 mov.w fp, #1
  58787. 8018958: 46da mov sl, fp
  58788. 801895a: 465a mov r2, fp
  58789. 801895c: f8cd b024 str.w fp, [sp, #36] @ 0x24
  58790. 8018960: f8d9 701c ldr.w r7, [r9, #28]
  58791. 8018964: 2100 movs r1, #0
  58792. 8018966: 2004 movs r0, #4
  58793. 8018968: f100 0614 add.w r6, r0, #20
  58794. 801896c: 4296 cmp r6, r2
  58795. 801896e: d930 bls.n 80189d2 <_dtoa_r+0x292>
  58796. 8018970: 6079 str r1, [r7, #4]
  58797. 8018972: 4648 mov r0, r9
  58798. 8018974: 9304 str r3, [sp, #16]
  58799. 8018976: f000 fd39 bl 80193ec <_Balloc>
  58800. 801897a: 9b04 ldr r3, [sp, #16]
  58801. 801897c: 4607 mov r7, r0
  58802. 801897e: 2800 cmp r0, #0
  58803. 8018980: d146 bne.n 8018a10 <_dtoa_r+0x2d0>
  58804. 8018982: 4b22 ldr r3, [pc, #136] @ (8018a0c <_dtoa_r+0x2cc>)
  58805. 8018984: 4602 mov r2, r0
  58806. 8018986: f240 11af movw r1, #431 @ 0x1af
  58807. 801898a: e6f2 b.n 8018772 <_dtoa_r+0x32>
  58808. 801898c: 2201 movs r2, #1
  58809. 801898e: e7dd b.n 801894c <_dtoa_r+0x20c>
  58810. 8018990: 2200 movs r2, #0
  58811. 8018992: 9208 str r2, [sp, #32]
  58812. 8018994: 9a09 ldr r2, [sp, #36] @ 0x24
  58813. 8018996: eb08 0b02 add.w fp, r8, r2
  58814. 801899a: f10b 0a01 add.w sl, fp, #1
  58815. 801899e: 4652 mov r2, sl
  58816. 80189a0: 2a01 cmp r2, #1
  58817. 80189a2: bfb8 it lt
  58818. 80189a4: 2201 movlt r2, #1
  58819. 80189a6: e7db b.n 8018960 <_dtoa_r+0x220>
  58820. 80189a8: 2201 movs r2, #1
  58821. 80189aa: e7f2 b.n 8018992 <_dtoa_r+0x252>
  58822. 80189ac: 2401 movs r4, #1
  58823. 80189ae: 2200 movs r2, #0
  58824. 80189b0: e9cd 2407 strd r2, r4, [sp, #28]
  58825. 80189b4: f04f 3bff mov.w fp, #4294967295 @ 0xffffffff
  58826. 80189b8: 2100 movs r1, #0
  58827. 80189ba: 46da mov sl, fp
  58828. 80189bc: 2212 movs r2, #18
  58829. 80189be: 9109 str r1, [sp, #36] @ 0x24
  58830. 80189c0: e7ce b.n 8018960 <_dtoa_r+0x220>
  58831. 80189c2: 2201 movs r2, #1
  58832. 80189c4: 9208 str r2, [sp, #32]
  58833. 80189c6: e7f5 b.n 80189b4 <_dtoa_r+0x274>
  58834. 80189c8: f8dd b024 ldr.w fp, [sp, #36] @ 0x24
  58835. 80189cc: 46da mov sl, fp
  58836. 80189ce: 465a mov r2, fp
  58837. 80189d0: e7c6 b.n 8018960 <_dtoa_r+0x220>
  58838. 80189d2: 3101 adds r1, #1
  58839. 80189d4: 0040 lsls r0, r0, #1
  58840. 80189d6: e7c7 b.n 8018968 <_dtoa_r+0x228>
  58841. 80189d8: 636f4361 .word 0x636f4361
  58842. 80189dc: 3fd287a7 .word 0x3fd287a7
  58843. 80189e0: 8b60c8b3 .word 0x8b60c8b3
  58844. 80189e4: 3fc68a28 .word 0x3fc68a28
  58845. 80189e8: 509f79fb .word 0x509f79fb
  58846. 80189ec: 3fd34413 .word 0x3fd34413
  58847. 80189f0: 0801a309 .word 0x0801a309
  58848. 80189f4: 0801a320 .word 0x0801a320
  58849. 80189f8: 7ff00000 .word 0x7ff00000
  58850. 80189fc: 0801a305 .word 0x0801a305
  58851. 8018a00: 0801a2d9 .word 0x0801a2d9
  58852. 8018a04: 0801a2d8 .word 0x0801a2d8
  58853. 8018a08: 0801a418 .word 0x0801a418
  58854. 8018a0c: 0801a378 .word 0x0801a378
  58855. 8018a10: f8d9 201c ldr.w r2, [r9, #28]
  58856. 8018a14: f1ba 0f0e cmp.w sl, #14
  58857. 8018a18: 6010 str r0, [r2, #0]
  58858. 8018a1a: d86f bhi.n 8018afc <_dtoa_r+0x3bc>
  58859. 8018a1c: 2c00 cmp r4, #0
  58860. 8018a1e: d06d beq.n 8018afc <_dtoa_r+0x3bc>
  58861. 8018a20: f1b8 0f00 cmp.w r8, #0
  58862. 8018a24: f340 80c2 ble.w 8018bac <_dtoa_r+0x46c>
  58863. 8018a28: 4aca ldr r2, [pc, #808] @ (8018d54 <_dtoa_r+0x614>)
  58864. 8018a2a: f008 010f and.w r1, r8, #15
  58865. 8018a2e: eb02 02c1 add.w r2, r2, r1, lsl #3
  58866. 8018a32: f418 7f80 tst.w r8, #256 @ 0x100
  58867. 8018a36: ed92 7b00 vldr d7, [r2]
  58868. 8018a3a: ea4f 1128 mov.w r1, r8, asr #4
  58869. 8018a3e: f000 80a9 beq.w 8018b94 <_dtoa_r+0x454>
  58870. 8018a42: 4ac5 ldr r2, [pc, #788] @ (8018d58 <_dtoa_r+0x618>)
  58871. 8018a44: ed92 6b08 vldr d6, [r2, #32]
  58872. 8018a48: ee88 6b06 vdiv.f64 d6, d8, d6
  58873. 8018a4c: ed8d 6b02 vstr d6, [sp, #8]
  58874. 8018a50: f001 010f and.w r1, r1, #15
  58875. 8018a54: 2203 movs r2, #3
  58876. 8018a56: 48c0 ldr r0, [pc, #768] @ (8018d58 <_dtoa_r+0x618>)
  58877. 8018a58: 2900 cmp r1, #0
  58878. 8018a5a: f040 809d bne.w 8018b98 <_dtoa_r+0x458>
  58879. 8018a5e: ed9d 6b02 vldr d6, [sp, #8]
  58880. 8018a62: ee86 7b07 vdiv.f64 d7, d6, d7
  58881. 8018a66: ed8d 7b02 vstr d7, [sp, #8]
  58882. 8018a6a: 990c ldr r1, [sp, #48] @ 0x30
  58883. 8018a6c: ed9d 7b02 vldr d7, [sp, #8]
  58884. 8018a70: 2900 cmp r1, #0
  58885. 8018a72: f000 80c1 beq.w 8018bf8 <_dtoa_r+0x4b8>
  58886. 8018a76: eeb7 6b00 vmov.f64 d6, #112 @ 0x3f800000 1.0
  58887. 8018a7a: eeb4 7bc6 vcmpe.f64 d7, d6
  58888. 8018a7e: eef1 fa10 vmrs APSR_nzcv, fpscr
  58889. 8018a82: f140 80b9 bpl.w 8018bf8 <_dtoa_r+0x4b8>
  58890. 8018a86: f1ba 0f00 cmp.w sl, #0
  58891. 8018a8a: f000 80b5 beq.w 8018bf8 <_dtoa_r+0x4b8>
  58892. 8018a8e: f1bb 0f00 cmp.w fp, #0
  58893. 8018a92: dd31 ble.n 8018af8 <_dtoa_r+0x3b8>
  58894. 8018a94: eeb2 6b04 vmov.f64 d6, #36 @ 0x41200000 10.0
  58895. 8018a98: ee27 7b06 vmul.f64 d7, d7, d6
  58896. 8018a9c: ed8d 7b02 vstr d7, [sp, #8]
  58897. 8018aa0: f108 31ff add.w r1, r8, #4294967295 @ 0xffffffff
  58898. 8018aa4: 9104 str r1, [sp, #16]
  58899. 8018aa6: 3201 adds r2, #1
  58900. 8018aa8: 465c mov r4, fp
  58901. 8018aaa: ed9d 6b02 vldr d6, [sp, #8]
  58902. 8018aae: eeb1 5b0c vmov.f64 d5, #28 @ 0x40e00000 7.0
  58903. 8018ab2: ee07 2a90 vmov s15, r2
  58904. 8018ab6: eeb8 7be7 vcvt.f64.s32 d7, s15
  58905. 8018aba: eea7 5b06 vfma.f64 d5, d7, d6
  58906. 8018abe: ee15 2a90 vmov r2, s11
  58907. 8018ac2: ec51 0b15 vmov r0, r1, d5
  58908. 8018ac6: f1a2 7150 sub.w r1, r2, #54525952 @ 0x3400000
  58909. 8018aca: 2c00 cmp r4, #0
  58910. 8018acc: f040 8098 bne.w 8018c00 <_dtoa_r+0x4c0>
  58911. 8018ad0: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  58912. 8018ad4: ee36 6b47 vsub.f64 d6, d6, d7
  58913. 8018ad8: ec41 0b17 vmov d7, r0, r1
  58914. 8018adc: eeb4 6bc7 vcmpe.f64 d6, d7
  58915. 8018ae0: eef1 fa10 vmrs APSR_nzcv, fpscr
  58916. 8018ae4: f300 8261 bgt.w 8018faa <_dtoa_r+0x86a>
  58917. 8018ae8: eeb1 7b47 vneg.f64 d7, d7
  58918. 8018aec: eeb4 6bc7 vcmpe.f64 d6, d7
  58919. 8018af0: eef1 fa10 vmrs APSR_nzcv, fpscr
  58920. 8018af4: f100 80f5 bmi.w 8018ce2 <_dtoa_r+0x5a2>
  58921. 8018af8: ed8d 8b02 vstr d8, [sp, #8]
  58922. 8018afc: 9a0f ldr r2, [sp, #60] @ 0x3c
  58923. 8018afe: 2a00 cmp r2, #0
  58924. 8018b00: f2c0 812c blt.w 8018d5c <_dtoa_r+0x61c>
  58925. 8018b04: f1b8 0f0e cmp.w r8, #14
  58926. 8018b08: f300 8128 bgt.w 8018d5c <_dtoa_r+0x61c>
  58927. 8018b0c: 4b91 ldr r3, [pc, #580] @ (8018d54 <_dtoa_r+0x614>)
  58928. 8018b0e: eb03 03c8 add.w r3, r3, r8, lsl #3
  58929. 8018b12: ed93 6b00 vldr d6, [r3]
  58930. 8018b16: 9b09 ldr r3, [sp, #36] @ 0x24
  58931. 8018b18: 2b00 cmp r3, #0
  58932. 8018b1a: da03 bge.n 8018b24 <_dtoa_r+0x3e4>
  58933. 8018b1c: f1ba 0f00 cmp.w sl, #0
  58934. 8018b20: f340 80d2 ble.w 8018cc8 <_dtoa_r+0x588>
  58935. 8018b24: eeb2 4b04 vmov.f64 d4, #36 @ 0x41200000 10.0
  58936. 8018b28: ed9d 7b02 vldr d7, [sp, #8]
  58937. 8018b2c: 463e mov r6, r7
  58938. 8018b2e: ee87 5b06 vdiv.f64 d5, d7, d6
  58939. 8018b32: eebd 5bc5 vcvt.s32.f64 s10, d5
  58940. 8018b36: ee15 3a10 vmov r3, s10
  58941. 8018b3a: 3330 adds r3, #48 @ 0x30
  58942. 8018b3c: f806 3b01 strb.w r3, [r6], #1
  58943. 8018b40: 1bf3 subs r3, r6, r7
  58944. 8018b42: 459a cmp sl, r3
  58945. 8018b44: eeb8 3bc5 vcvt.f64.s32 d3, s10
  58946. 8018b48: eea3 7b46 vfms.f64 d7, d3, d6
  58947. 8018b4c: f040 80f8 bne.w 8018d40 <_dtoa_r+0x600>
  58948. 8018b50: ee37 7b07 vadd.f64 d7, d7, d7
  58949. 8018b54: eeb4 7bc6 vcmpe.f64 d7, d6
  58950. 8018b58: eef1 fa10 vmrs APSR_nzcv, fpscr
  58951. 8018b5c: f300 80dd bgt.w 8018d1a <_dtoa_r+0x5da>
  58952. 8018b60: eeb4 7b46 vcmp.f64 d7, d6
  58953. 8018b64: eef1 fa10 vmrs APSR_nzcv, fpscr
  58954. 8018b68: d104 bne.n 8018b74 <_dtoa_r+0x434>
  58955. 8018b6a: ee15 3a10 vmov r3, s10
  58956. 8018b6e: 07db lsls r3, r3, #31
  58957. 8018b70: f100 80d3 bmi.w 8018d1a <_dtoa_r+0x5da>
  58958. 8018b74: 9901 ldr r1, [sp, #4]
  58959. 8018b76: 4648 mov r0, r9
  58960. 8018b78: f000 fc78 bl 801946c <_Bfree>
  58961. 8018b7c: 2300 movs r3, #0
  58962. 8018b7e: 9a0d ldr r2, [sp, #52] @ 0x34
  58963. 8018b80: 7033 strb r3, [r6, #0]
  58964. 8018b82: f108 0301 add.w r3, r8, #1
  58965. 8018b86: 6013 str r3, [r2, #0]
  58966. 8018b88: 9b1d ldr r3, [sp, #116] @ 0x74
  58967. 8018b8a: 2b00 cmp r3, #0
  58968. 8018b8c: f000 8304 beq.w 8019198 <_dtoa_r+0xa58>
  58969. 8018b90: 601e str r6, [r3, #0]
  58970. 8018b92: e301 b.n 8019198 <_dtoa_r+0xa58>
  58971. 8018b94: 2202 movs r2, #2
  58972. 8018b96: e75e b.n 8018a56 <_dtoa_r+0x316>
  58973. 8018b98: 07cc lsls r4, r1, #31
  58974. 8018b9a: d504 bpl.n 8018ba6 <_dtoa_r+0x466>
  58975. 8018b9c: ed90 6b00 vldr d6, [r0]
  58976. 8018ba0: 3201 adds r2, #1
  58977. 8018ba2: ee27 7b06 vmul.f64 d7, d7, d6
  58978. 8018ba6: 1049 asrs r1, r1, #1
  58979. 8018ba8: 3008 adds r0, #8
  58980. 8018baa: e755 b.n 8018a58 <_dtoa_r+0x318>
  58981. 8018bac: d022 beq.n 8018bf4 <_dtoa_r+0x4b4>
  58982. 8018bae: f1c8 0100 rsb r1, r8, #0
  58983. 8018bb2: 4a68 ldr r2, [pc, #416] @ (8018d54 <_dtoa_r+0x614>)
  58984. 8018bb4: f001 000f and.w r0, r1, #15
  58985. 8018bb8: eb02 02c0 add.w r2, r2, r0, lsl #3
  58986. 8018bbc: ed92 7b00 vldr d7, [r2]
  58987. 8018bc0: ee28 7b07 vmul.f64 d7, d8, d7
  58988. 8018bc4: ed8d 7b02 vstr d7, [sp, #8]
  58989. 8018bc8: 4863 ldr r0, [pc, #396] @ (8018d58 <_dtoa_r+0x618>)
  58990. 8018bca: 1109 asrs r1, r1, #4
  58991. 8018bcc: 2400 movs r4, #0
  58992. 8018bce: 2202 movs r2, #2
  58993. 8018bd0: b929 cbnz r1, 8018bde <_dtoa_r+0x49e>
  58994. 8018bd2: 2c00 cmp r4, #0
  58995. 8018bd4: f43f af49 beq.w 8018a6a <_dtoa_r+0x32a>
  58996. 8018bd8: ed8d 7b02 vstr d7, [sp, #8]
  58997. 8018bdc: e745 b.n 8018a6a <_dtoa_r+0x32a>
  58998. 8018bde: 07ce lsls r6, r1, #31
  58999. 8018be0: d505 bpl.n 8018bee <_dtoa_r+0x4ae>
  59000. 8018be2: ed90 6b00 vldr d6, [r0]
  59001. 8018be6: 3201 adds r2, #1
  59002. 8018be8: 2401 movs r4, #1
  59003. 8018bea: ee27 7b06 vmul.f64 d7, d7, d6
  59004. 8018bee: 1049 asrs r1, r1, #1
  59005. 8018bf0: 3008 adds r0, #8
  59006. 8018bf2: e7ed b.n 8018bd0 <_dtoa_r+0x490>
  59007. 8018bf4: 2202 movs r2, #2
  59008. 8018bf6: e738 b.n 8018a6a <_dtoa_r+0x32a>
  59009. 8018bf8: f8cd 8010 str.w r8, [sp, #16]
  59010. 8018bfc: 4654 mov r4, sl
  59011. 8018bfe: e754 b.n 8018aaa <_dtoa_r+0x36a>
  59012. 8018c00: 4a54 ldr r2, [pc, #336] @ (8018d54 <_dtoa_r+0x614>)
  59013. 8018c02: eb02 02c4 add.w r2, r2, r4, lsl #3
  59014. 8018c06: ed12 4b02 vldr d4, [r2, #-8]
  59015. 8018c0a: 9a08 ldr r2, [sp, #32]
  59016. 8018c0c: ec41 0b17 vmov d7, r0, r1
  59017. 8018c10: 443c add r4, r7
  59018. 8018c12: b34a cbz r2, 8018c68 <_dtoa_r+0x528>
  59019. 8018c14: eeb6 3b00 vmov.f64 d3, #96 @ 0x3f000000 0.5
  59020. 8018c18: eeb7 2b00 vmov.f64 d2, #112 @ 0x3f800000 1.0
  59021. 8018c1c: 463e mov r6, r7
  59022. 8018c1e: ee83 5b04 vdiv.f64 d5, d3, d4
  59023. 8018c22: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  59024. 8018c26: ee35 7b47 vsub.f64 d7, d5, d7
  59025. 8018c2a: eefd 4bc6 vcvt.s32.f64 s9, d6
  59026. 8018c2e: ee14 2a90 vmov r2, s9
  59027. 8018c32: eeb8 5be4 vcvt.f64.s32 d5, s9
  59028. 8018c36: 3230 adds r2, #48 @ 0x30
  59029. 8018c38: ee36 6b45 vsub.f64 d6, d6, d5
  59030. 8018c3c: eeb4 6bc7 vcmpe.f64 d6, d7
  59031. 8018c40: eef1 fa10 vmrs APSR_nzcv, fpscr
  59032. 8018c44: f806 2b01 strb.w r2, [r6], #1
  59033. 8018c48: d438 bmi.n 8018cbc <_dtoa_r+0x57c>
  59034. 8018c4a: ee32 5b46 vsub.f64 d5, d2, d6
  59035. 8018c4e: eeb4 5bc7 vcmpe.f64 d5, d7
  59036. 8018c52: eef1 fa10 vmrs APSR_nzcv, fpscr
  59037. 8018c56: d462 bmi.n 8018d1e <_dtoa_r+0x5de>
  59038. 8018c58: 42a6 cmp r6, r4
  59039. 8018c5a: f43f af4d beq.w 8018af8 <_dtoa_r+0x3b8>
  59040. 8018c5e: ee27 7b03 vmul.f64 d7, d7, d3
  59041. 8018c62: ee26 6b03 vmul.f64 d6, d6, d3
  59042. 8018c66: e7e0 b.n 8018c2a <_dtoa_r+0x4ea>
  59043. 8018c68: 4621 mov r1, r4
  59044. 8018c6a: 463e mov r6, r7
  59045. 8018c6c: ee27 7b04 vmul.f64 d7, d7, d4
  59046. 8018c70: eeb2 3b04 vmov.f64 d3, #36 @ 0x41200000 10.0
  59047. 8018c74: eefd 4bc6 vcvt.s32.f64 s9, d6
  59048. 8018c78: ee14 2a90 vmov r2, s9
  59049. 8018c7c: 3230 adds r2, #48 @ 0x30
  59050. 8018c7e: f806 2b01 strb.w r2, [r6], #1
  59051. 8018c82: 42a6 cmp r6, r4
  59052. 8018c84: eeb8 5be4 vcvt.f64.s32 d5, s9
  59053. 8018c88: ee36 6b45 vsub.f64 d6, d6, d5
  59054. 8018c8c: d119 bne.n 8018cc2 <_dtoa_r+0x582>
  59055. 8018c8e: eeb6 5b00 vmov.f64 d5, #96 @ 0x3f000000 0.5
  59056. 8018c92: ee37 4b05 vadd.f64 d4, d7, d5
  59057. 8018c96: eeb4 6bc4 vcmpe.f64 d6, d4
  59058. 8018c9a: eef1 fa10 vmrs APSR_nzcv, fpscr
  59059. 8018c9e: dc3e bgt.n 8018d1e <_dtoa_r+0x5de>
  59060. 8018ca0: ee35 5b47 vsub.f64 d5, d5, d7
  59061. 8018ca4: eeb4 6bc5 vcmpe.f64 d6, d5
  59062. 8018ca8: eef1 fa10 vmrs APSR_nzcv, fpscr
  59063. 8018cac: f57f af24 bpl.w 8018af8 <_dtoa_r+0x3b8>
  59064. 8018cb0: 460e mov r6, r1
  59065. 8018cb2: 3901 subs r1, #1
  59066. 8018cb4: f816 3c01 ldrb.w r3, [r6, #-1]
  59067. 8018cb8: 2b30 cmp r3, #48 @ 0x30
  59068. 8018cba: d0f9 beq.n 8018cb0 <_dtoa_r+0x570>
  59069. 8018cbc: f8dd 8010 ldr.w r8, [sp, #16]
  59070. 8018cc0: e758 b.n 8018b74 <_dtoa_r+0x434>
  59071. 8018cc2: ee26 6b03 vmul.f64 d6, d6, d3
  59072. 8018cc6: e7d5 b.n 8018c74 <_dtoa_r+0x534>
  59073. 8018cc8: d10b bne.n 8018ce2 <_dtoa_r+0x5a2>
  59074. 8018cca: eeb1 7b04 vmov.f64 d7, #20 @ 0x40a00000 5.0
  59075. 8018cce: ee26 6b07 vmul.f64 d6, d6, d7
  59076. 8018cd2: ed9d 7b02 vldr d7, [sp, #8]
  59077. 8018cd6: eeb4 6bc7 vcmpe.f64 d6, d7
  59078. 8018cda: eef1 fa10 vmrs APSR_nzcv, fpscr
  59079. 8018cde: f2c0 8161 blt.w 8018fa4 <_dtoa_r+0x864>
  59080. 8018ce2: 2400 movs r4, #0
  59081. 8018ce4: 4625 mov r5, r4
  59082. 8018ce6: 9b09 ldr r3, [sp, #36] @ 0x24
  59083. 8018ce8: 43db mvns r3, r3
  59084. 8018cea: 9304 str r3, [sp, #16]
  59085. 8018cec: 463e mov r6, r7
  59086. 8018cee: f04f 0800 mov.w r8, #0
  59087. 8018cf2: 4621 mov r1, r4
  59088. 8018cf4: 4648 mov r0, r9
  59089. 8018cf6: f000 fbb9 bl 801946c <_Bfree>
  59090. 8018cfa: 2d00 cmp r5, #0
  59091. 8018cfc: d0de beq.n 8018cbc <_dtoa_r+0x57c>
  59092. 8018cfe: f1b8 0f00 cmp.w r8, #0
  59093. 8018d02: d005 beq.n 8018d10 <_dtoa_r+0x5d0>
  59094. 8018d04: 45a8 cmp r8, r5
  59095. 8018d06: d003 beq.n 8018d10 <_dtoa_r+0x5d0>
  59096. 8018d08: 4641 mov r1, r8
  59097. 8018d0a: 4648 mov r0, r9
  59098. 8018d0c: f000 fbae bl 801946c <_Bfree>
  59099. 8018d10: 4629 mov r1, r5
  59100. 8018d12: 4648 mov r0, r9
  59101. 8018d14: f000 fbaa bl 801946c <_Bfree>
  59102. 8018d18: e7d0 b.n 8018cbc <_dtoa_r+0x57c>
  59103. 8018d1a: f8cd 8010 str.w r8, [sp, #16]
  59104. 8018d1e: 4633 mov r3, r6
  59105. 8018d20: 461e mov r6, r3
  59106. 8018d22: f813 2d01 ldrb.w r2, [r3, #-1]!
  59107. 8018d26: 2a39 cmp r2, #57 @ 0x39
  59108. 8018d28: d106 bne.n 8018d38 <_dtoa_r+0x5f8>
  59109. 8018d2a: 429f cmp r7, r3
  59110. 8018d2c: d1f8 bne.n 8018d20 <_dtoa_r+0x5e0>
  59111. 8018d2e: 9a04 ldr r2, [sp, #16]
  59112. 8018d30: 3201 adds r2, #1
  59113. 8018d32: 9204 str r2, [sp, #16]
  59114. 8018d34: 2230 movs r2, #48 @ 0x30
  59115. 8018d36: 703a strb r2, [r7, #0]
  59116. 8018d38: 781a ldrb r2, [r3, #0]
  59117. 8018d3a: 3201 adds r2, #1
  59118. 8018d3c: 701a strb r2, [r3, #0]
  59119. 8018d3e: e7bd b.n 8018cbc <_dtoa_r+0x57c>
  59120. 8018d40: ee27 7b04 vmul.f64 d7, d7, d4
  59121. 8018d44: eeb5 7b40 vcmp.f64 d7, #0.0
  59122. 8018d48: eef1 fa10 vmrs APSR_nzcv, fpscr
  59123. 8018d4c: f47f aeef bne.w 8018b2e <_dtoa_r+0x3ee>
  59124. 8018d50: e710 b.n 8018b74 <_dtoa_r+0x434>
  59125. 8018d52: bf00 nop
  59126. 8018d54: 0801a418 .word 0x0801a418
  59127. 8018d58: 0801a3f0 .word 0x0801a3f0
  59128. 8018d5c: 9908 ldr r1, [sp, #32]
  59129. 8018d5e: 2900 cmp r1, #0
  59130. 8018d60: f000 80e3 beq.w 8018f2a <_dtoa_r+0x7ea>
  59131. 8018d64: 9907 ldr r1, [sp, #28]
  59132. 8018d66: 2901 cmp r1, #1
  59133. 8018d68: f300 80c8 bgt.w 8018efc <_dtoa_r+0x7bc>
  59134. 8018d6c: 2d00 cmp r5, #0
  59135. 8018d6e: f000 80c1 beq.w 8018ef4 <_dtoa_r+0x7b4>
  59136. 8018d72: f202 4233 addw r2, r2, #1075 @ 0x433
  59137. 8018d76: 9e05 ldr r6, [sp, #20]
  59138. 8018d78: 461c mov r4, r3
  59139. 8018d7a: 9304 str r3, [sp, #16]
  59140. 8018d7c: 9b05 ldr r3, [sp, #20]
  59141. 8018d7e: 4413 add r3, r2
  59142. 8018d80: 9305 str r3, [sp, #20]
  59143. 8018d82: 9b06 ldr r3, [sp, #24]
  59144. 8018d84: 2101 movs r1, #1
  59145. 8018d86: 4413 add r3, r2
  59146. 8018d88: 4648 mov r0, r9
  59147. 8018d8a: 9306 str r3, [sp, #24]
  59148. 8018d8c: f000 fc22 bl 80195d4 <__i2b>
  59149. 8018d90: 9b04 ldr r3, [sp, #16]
  59150. 8018d92: 4605 mov r5, r0
  59151. 8018d94: b166 cbz r6, 8018db0 <_dtoa_r+0x670>
  59152. 8018d96: 9a06 ldr r2, [sp, #24]
  59153. 8018d98: 2a00 cmp r2, #0
  59154. 8018d9a: dd09 ble.n 8018db0 <_dtoa_r+0x670>
  59155. 8018d9c: 42b2 cmp r2, r6
  59156. 8018d9e: 9905 ldr r1, [sp, #20]
  59157. 8018da0: bfa8 it ge
  59158. 8018da2: 4632 movge r2, r6
  59159. 8018da4: 1a89 subs r1, r1, r2
  59160. 8018da6: 9105 str r1, [sp, #20]
  59161. 8018da8: 9906 ldr r1, [sp, #24]
  59162. 8018daa: 1ab6 subs r6, r6, r2
  59163. 8018dac: 1a8a subs r2, r1, r2
  59164. 8018dae: 9206 str r2, [sp, #24]
  59165. 8018db0: b1fb cbz r3, 8018df2 <_dtoa_r+0x6b2>
  59166. 8018db2: 9a08 ldr r2, [sp, #32]
  59167. 8018db4: 2a00 cmp r2, #0
  59168. 8018db6: f000 80bc beq.w 8018f32 <_dtoa_r+0x7f2>
  59169. 8018dba: b19c cbz r4, 8018de4 <_dtoa_r+0x6a4>
  59170. 8018dbc: 4629 mov r1, r5
  59171. 8018dbe: 4622 mov r2, r4
  59172. 8018dc0: 4648 mov r0, r9
  59173. 8018dc2: 930b str r3, [sp, #44] @ 0x2c
  59174. 8018dc4: f000 fcc6 bl 8019754 <__pow5mult>
  59175. 8018dc8: 9a01 ldr r2, [sp, #4]
  59176. 8018dca: 4601 mov r1, r0
  59177. 8018dcc: 4605 mov r5, r0
  59178. 8018dce: 4648 mov r0, r9
  59179. 8018dd0: f000 fc16 bl 8019600 <__multiply>
  59180. 8018dd4: 9901 ldr r1, [sp, #4]
  59181. 8018dd6: 9004 str r0, [sp, #16]
  59182. 8018dd8: 4648 mov r0, r9
  59183. 8018dda: f000 fb47 bl 801946c <_Bfree>
  59184. 8018dde: 9a04 ldr r2, [sp, #16]
  59185. 8018de0: 9b0b ldr r3, [sp, #44] @ 0x2c
  59186. 8018de2: 9201 str r2, [sp, #4]
  59187. 8018de4: 1b1a subs r2, r3, r4
  59188. 8018de6: d004 beq.n 8018df2 <_dtoa_r+0x6b2>
  59189. 8018de8: 9901 ldr r1, [sp, #4]
  59190. 8018dea: 4648 mov r0, r9
  59191. 8018dec: f000 fcb2 bl 8019754 <__pow5mult>
  59192. 8018df0: 9001 str r0, [sp, #4]
  59193. 8018df2: 2101 movs r1, #1
  59194. 8018df4: 4648 mov r0, r9
  59195. 8018df6: f000 fbed bl 80195d4 <__i2b>
  59196. 8018dfa: 9b0a ldr r3, [sp, #40] @ 0x28
  59197. 8018dfc: 4604 mov r4, r0
  59198. 8018dfe: 2b00 cmp r3, #0
  59199. 8018e00: f000 81d0 beq.w 80191a4 <_dtoa_r+0xa64>
  59200. 8018e04: 461a mov r2, r3
  59201. 8018e06: 4601 mov r1, r0
  59202. 8018e08: 4648 mov r0, r9
  59203. 8018e0a: f000 fca3 bl 8019754 <__pow5mult>
  59204. 8018e0e: 9b07 ldr r3, [sp, #28]
  59205. 8018e10: 2b01 cmp r3, #1
  59206. 8018e12: 4604 mov r4, r0
  59207. 8018e14: f300 8095 bgt.w 8018f42 <_dtoa_r+0x802>
  59208. 8018e18: 9b02 ldr r3, [sp, #8]
  59209. 8018e1a: 2b00 cmp r3, #0
  59210. 8018e1c: f040 808b bne.w 8018f36 <_dtoa_r+0x7f6>
  59211. 8018e20: 9b03 ldr r3, [sp, #12]
  59212. 8018e22: f3c3 0213 ubfx r2, r3, #0, #20
  59213. 8018e26: 2a00 cmp r2, #0
  59214. 8018e28: f040 8087 bne.w 8018f3a <_dtoa_r+0x7fa>
  59215. 8018e2c: f023 4200 bic.w r2, r3, #2147483648 @ 0x80000000
  59216. 8018e30: 0d12 lsrs r2, r2, #20
  59217. 8018e32: 0512 lsls r2, r2, #20
  59218. 8018e34: 2a00 cmp r2, #0
  59219. 8018e36: f000 8082 beq.w 8018f3e <_dtoa_r+0x7fe>
  59220. 8018e3a: 9b05 ldr r3, [sp, #20]
  59221. 8018e3c: 3301 adds r3, #1
  59222. 8018e3e: 9305 str r3, [sp, #20]
  59223. 8018e40: 9b06 ldr r3, [sp, #24]
  59224. 8018e42: 3301 adds r3, #1
  59225. 8018e44: 9306 str r3, [sp, #24]
  59226. 8018e46: 2301 movs r3, #1
  59227. 8018e48: 930b str r3, [sp, #44] @ 0x2c
  59228. 8018e4a: 9b0a ldr r3, [sp, #40] @ 0x28
  59229. 8018e4c: 2b00 cmp r3, #0
  59230. 8018e4e: f000 81af beq.w 80191b0 <_dtoa_r+0xa70>
  59231. 8018e52: 6922 ldr r2, [r4, #16]
  59232. 8018e54: eb04 0282 add.w r2, r4, r2, lsl #2
  59233. 8018e58: 6910 ldr r0, [r2, #16]
  59234. 8018e5a: f000 fb6f bl 801953c <__hi0bits>
  59235. 8018e5e: f1c0 0020 rsb r0, r0, #32
  59236. 8018e62: 9b06 ldr r3, [sp, #24]
  59237. 8018e64: 4418 add r0, r3
  59238. 8018e66: f010 001f ands.w r0, r0, #31
  59239. 8018e6a: d076 beq.n 8018f5a <_dtoa_r+0x81a>
  59240. 8018e6c: f1c0 0220 rsb r2, r0, #32
  59241. 8018e70: 2a04 cmp r2, #4
  59242. 8018e72: dd69 ble.n 8018f48 <_dtoa_r+0x808>
  59243. 8018e74: 9b05 ldr r3, [sp, #20]
  59244. 8018e76: f1c0 001c rsb r0, r0, #28
  59245. 8018e7a: 4403 add r3, r0
  59246. 8018e7c: 9305 str r3, [sp, #20]
  59247. 8018e7e: 9b06 ldr r3, [sp, #24]
  59248. 8018e80: 4406 add r6, r0
  59249. 8018e82: 4403 add r3, r0
  59250. 8018e84: 9306 str r3, [sp, #24]
  59251. 8018e86: 9b05 ldr r3, [sp, #20]
  59252. 8018e88: 2b00 cmp r3, #0
  59253. 8018e8a: dd05 ble.n 8018e98 <_dtoa_r+0x758>
  59254. 8018e8c: 9901 ldr r1, [sp, #4]
  59255. 8018e8e: 461a mov r2, r3
  59256. 8018e90: 4648 mov r0, r9
  59257. 8018e92: f000 fcb9 bl 8019808 <__lshift>
  59258. 8018e96: 9001 str r0, [sp, #4]
  59259. 8018e98: 9b06 ldr r3, [sp, #24]
  59260. 8018e9a: 2b00 cmp r3, #0
  59261. 8018e9c: dd05 ble.n 8018eaa <_dtoa_r+0x76a>
  59262. 8018e9e: 4621 mov r1, r4
  59263. 8018ea0: 461a mov r2, r3
  59264. 8018ea2: 4648 mov r0, r9
  59265. 8018ea4: f000 fcb0 bl 8019808 <__lshift>
  59266. 8018ea8: 4604 mov r4, r0
  59267. 8018eaa: 9b0c ldr r3, [sp, #48] @ 0x30
  59268. 8018eac: 2b00 cmp r3, #0
  59269. 8018eae: d056 beq.n 8018f5e <_dtoa_r+0x81e>
  59270. 8018eb0: 9801 ldr r0, [sp, #4]
  59271. 8018eb2: 4621 mov r1, r4
  59272. 8018eb4: f000 fd14 bl 80198e0 <__mcmp>
  59273. 8018eb8: 2800 cmp r0, #0
  59274. 8018eba: da50 bge.n 8018f5e <_dtoa_r+0x81e>
  59275. 8018ebc: f108 33ff add.w r3, r8, #4294967295 @ 0xffffffff
  59276. 8018ec0: 9304 str r3, [sp, #16]
  59277. 8018ec2: 9901 ldr r1, [sp, #4]
  59278. 8018ec4: 2300 movs r3, #0
  59279. 8018ec6: 220a movs r2, #10
  59280. 8018ec8: 4648 mov r0, r9
  59281. 8018eca: f000 faf1 bl 80194b0 <__multadd>
  59282. 8018ece: 9b08 ldr r3, [sp, #32]
  59283. 8018ed0: 9001 str r0, [sp, #4]
  59284. 8018ed2: 2b00 cmp r3, #0
  59285. 8018ed4: f000 816e beq.w 80191b4 <_dtoa_r+0xa74>
  59286. 8018ed8: 4629 mov r1, r5
  59287. 8018eda: 2300 movs r3, #0
  59288. 8018edc: 220a movs r2, #10
  59289. 8018ede: 4648 mov r0, r9
  59290. 8018ee0: f000 fae6 bl 80194b0 <__multadd>
  59291. 8018ee4: f1bb 0f00 cmp.w fp, #0
  59292. 8018ee8: 4605 mov r5, r0
  59293. 8018eea: dc64 bgt.n 8018fb6 <_dtoa_r+0x876>
  59294. 8018eec: 9b07 ldr r3, [sp, #28]
  59295. 8018eee: 2b02 cmp r3, #2
  59296. 8018ef0: dc3e bgt.n 8018f70 <_dtoa_r+0x830>
  59297. 8018ef2: e060 b.n 8018fb6 <_dtoa_r+0x876>
  59298. 8018ef4: 9a0e ldr r2, [sp, #56] @ 0x38
  59299. 8018ef6: f1c2 0236 rsb r2, r2, #54 @ 0x36
  59300. 8018efa: e73c b.n 8018d76 <_dtoa_r+0x636>
  59301. 8018efc: f10a 34ff add.w r4, sl, #4294967295 @ 0xffffffff
  59302. 8018f00: 42a3 cmp r3, r4
  59303. 8018f02: bfbf itttt lt
  59304. 8018f04: 1ae2 sublt r2, r4, r3
  59305. 8018f06: 9b0a ldrlt r3, [sp, #40] @ 0x28
  59306. 8018f08: 189b addlt r3, r3, r2
  59307. 8018f0a: 930a strlt r3, [sp, #40] @ 0x28
  59308. 8018f0c: bfae itee ge
  59309. 8018f0e: 1b1c subge r4, r3, r4
  59310. 8018f10: 4623 movlt r3, r4
  59311. 8018f12: 2400 movlt r4, #0
  59312. 8018f14: f1ba 0f00 cmp.w sl, #0
  59313. 8018f18: bfb5 itete lt
  59314. 8018f1a: 9a05 ldrlt r2, [sp, #20]
  59315. 8018f1c: 9e05 ldrge r6, [sp, #20]
  59316. 8018f1e: eba2 060a sublt.w r6, r2, sl
  59317. 8018f22: 4652 movge r2, sl
  59318. 8018f24: bfb8 it lt
  59319. 8018f26: 2200 movlt r2, #0
  59320. 8018f28: e727 b.n 8018d7a <_dtoa_r+0x63a>
  59321. 8018f2a: 9e05 ldr r6, [sp, #20]
  59322. 8018f2c: 9d08 ldr r5, [sp, #32]
  59323. 8018f2e: 461c mov r4, r3
  59324. 8018f30: e730 b.n 8018d94 <_dtoa_r+0x654>
  59325. 8018f32: 461a mov r2, r3
  59326. 8018f34: e758 b.n 8018de8 <_dtoa_r+0x6a8>
  59327. 8018f36: 2300 movs r3, #0
  59328. 8018f38: e786 b.n 8018e48 <_dtoa_r+0x708>
  59329. 8018f3a: 9b02 ldr r3, [sp, #8]
  59330. 8018f3c: e784 b.n 8018e48 <_dtoa_r+0x708>
  59331. 8018f3e: 920b str r2, [sp, #44] @ 0x2c
  59332. 8018f40: e783 b.n 8018e4a <_dtoa_r+0x70a>
  59333. 8018f42: 2300 movs r3, #0
  59334. 8018f44: 930b str r3, [sp, #44] @ 0x2c
  59335. 8018f46: e784 b.n 8018e52 <_dtoa_r+0x712>
  59336. 8018f48: d09d beq.n 8018e86 <_dtoa_r+0x746>
  59337. 8018f4a: 9b05 ldr r3, [sp, #20]
  59338. 8018f4c: 321c adds r2, #28
  59339. 8018f4e: 4413 add r3, r2
  59340. 8018f50: 9305 str r3, [sp, #20]
  59341. 8018f52: 9b06 ldr r3, [sp, #24]
  59342. 8018f54: 4416 add r6, r2
  59343. 8018f56: 4413 add r3, r2
  59344. 8018f58: e794 b.n 8018e84 <_dtoa_r+0x744>
  59345. 8018f5a: 4602 mov r2, r0
  59346. 8018f5c: e7f5 b.n 8018f4a <_dtoa_r+0x80a>
  59347. 8018f5e: f1ba 0f00 cmp.w sl, #0
  59348. 8018f62: f8cd 8010 str.w r8, [sp, #16]
  59349. 8018f66: 46d3 mov fp, sl
  59350. 8018f68: dc21 bgt.n 8018fae <_dtoa_r+0x86e>
  59351. 8018f6a: 9b07 ldr r3, [sp, #28]
  59352. 8018f6c: 2b02 cmp r3, #2
  59353. 8018f6e: dd1e ble.n 8018fae <_dtoa_r+0x86e>
  59354. 8018f70: f1bb 0f00 cmp.w fp, #0
  59355. 8018f74: f47f aeb7 bne.w 8018ce6 <_dtoa_r+0x5a6>
  59356. 8018f78: 4621 mov r1, r4
  59357. 8018f7a: 465b mov r3, fp
  59358. 8018f7c: 2205 movs r2, #5
  59359. 8018f7e: 4648 mov r0, r9
  59360. 8018f80: f000 fa96 bl 80194b0 <__multadd>
  59361. 8018f84: 4601 mov r1, r0
  59362. 8018f86: 4604 mov r4, r0
  59363. 8018f88: 9801 ldr r0, [sp, #4]
  59364. 8018f8a: f000 fca9 bl 80198e0 <__mcmp>
  59365. 8018f8e: 2800 cmp r0, #0
  59366. 8018f90: f77f aea9 ble.w 8018ce6 <_dtoa_r+0x5a6>
  59367. 8018f94: 463e mov r6, r7
  59368. 8018f96: 2331 movs r3, #49 @ 0x31
  59369. 8018f98: f806 3b01 strb.w r3, [r6], #1
  59370. 8018f9c: 9b04 ldr r3, [sp, #16]
  59371. 8018f9e: 3301 adds r3, #1
  59372. 8018fa0: 9304 str r3, [sp, #16]
  59373. 8018fa2: e6a4 b.n 8018cee <_dtoa_r+0x5ae>
  59374. 8018fa4: f8cd 8010 str.w r8, [sp, #16]
  59375. 8018fa8: 4654 mov r4, sl
  59376. 8018faa: 4625 mov r5, r4
  59377. 8018fac: e7f2 b.n 8018f94 <_dtoa_r+0x854>
  59378. 8018fae: 9b08 ldr r3, [sp, #32]
  59379. 8018fb0: 2b00 cmp r3, #0
  59380. 8018fb2: f000 8103 beq.w 80191bc <_dtoa_r+0xa7c>
  59381. 8018fb6: 2e00 cmp r6, #0
  59382. 8018fb8: dd05 ble.n 8018fc6 <_dtoa_r+0x886>
  59383. 8018fba: 4629 mov r1, r5
  59384. 8018fbc: 4632 mov r2, r6
  59385. 8018fbe: 4648 mov r0, r9
  59386. 8018fc0: f000 fc22 bl 8019808 <__lshift>
  59387. 8018fc4: 4605 mov r5, r0
  59388. 8018fc6: 9b0b ldr r3, [sp, #44] @ 0x2c
  59389. 8018fc8: 2b00 cmp r3, #0
  59390. 8018fca: d058 beq.n 801907e <_dtoa_r+0x93e>
  59391. 8018fcc: 6869 ldr r1, [r5, #4]
  59392. 8018fce: 4648 mov r0, r9
  59393. 8018fd0: f000 fa0c bl 80193ec <_Balloc>
  59394. 8018fd4: 4606 mov r6, r0
  59395. 8018fd6: b928 cbnz r0, 8018fe4 <_dtoa_r+0x8a4>
  59396. 8018fd8: 4b82 ldr r3, [pc, #520] @ (80191e4 <_dtoa_r+0xaa4>)
  59397. 8018fda: 4602 mov r2, r0
  59398. 8018fdc: f240 21ef movw r1, #751 @ 0x2ef
  59399. 8018fe0: f7ff bbc7 b.w 8018772 <_dtoa_r+0x32>
  59400. 8018fe4: 692a ldr r2, [r5, #16]
  59401. 8018fe6: 3202 adds r2, #2
  59402. 8018fe8: 0092 lsls r2, r2, #2
  59403. 8018fea: f105 010c add.w r1, r5, #12
  59404. 8018fee: 300c adds r0, #12
  59405. 8018ff0: f7ff fb0f bl 8018612 <memcpy>
  59406. 8018ff4: 2201 movs r2, #1
  59407. 8018ff6: 4631 mov r1, r6
  59408. 8018ff8: 4648 mov r0, r9
  59409. 8018ffa: f000 fc05 bl 8019808 <__lshift>
  59410. 8018ffe: 1c7b adds r3, r7, #1
  59411. 8019000: 9305 str r3, [sp, #20]
  59412. 8019002: eb07 030b add.w r3, r7, fp
  59413. 8019006: 9309 str r3, [sp, #36] @ 0x24
  59414. 8019008: 9b02 ldr r3, [sp, #8]
  59415. 801900a: f003 0301 and.w r3, r3, #1
  59416. 801900e: 46a8 mov r8, r5
  59417. 8019010: 9308 str r3, [sp, #32]
  59418. 8019012: 4605 mov r5, r0
  59419. 8019014: 9b05 ldr r3, [sp, #20]
  59420. 8019016: 9801 ldr r0, [sp, #4]
  59421. 8019018: 4621 mov r1, r4
  59422. 801901a: f103 3bff add.w fp, r3, #4294967295 @ 0xffffffff
  59423. 801901e: f7ff fb06 bl 801862e <quorem>
  59424. 8019022: 4641 mov r1, r8
  59425. 8019024: 9002 str r0, [sp, #8]
  59426. 8019026: f100 0a30 add.w sl, r0, #48 @ 0x30
  59427. 801902a: 9801 ldr r0, [sp, #4]
  59428. 801902c: f000 fc58 bl 80198e0 <__mcmp>
  59429. 8019030: 462a mov r2, r5
  59430. 8019032: 9006 str r0, [sp, #24]
  59431. 8019034: 4621 mov r1, r4
  59432. 8019036: 4648 mov r0, r9
  59433. 8019038: f000 fc6e bl 8019918 <__mdiff>
  59434. 801903c: 68c2 ldr r2, [r0, #12]
  59435. 801903e: 4606 mov r6, r0
  59436. 8019040: b9fa cbnz r2, 8019082 <_dtoa_r+0x942>
  59437. 8019042: 4601 mov r1, r0
  59438. 8019044: 9801 ldr r0, [sp, #4]
  59439. 8019046: f000 fc4b bl 80198e0 <__mcmp>
  59440. 801904a: 4602 mov r2, r0
  59441. 801904c: 4631 mov r1, r6
  59442. 801904e: 4648 mov r0, r9
  59443. 8019050: 920a str r2, [sp, #40] @ 0x28
  59444. 8019052: f000 fa0b bl 801946c <_Bfree>
  59445. 8019056: 9b07 ldr r3, [sp, #28]
  59446. 8019058: 9a0a ldr r2, [sp, #40] @ 0x28
  59447. 801905a: 9e05 ldr r6, [sp, #20]
  59448. 801905c: ea43 0102 orr.w r1, r3, r2
  59449. 8019060: 9b08 ldr r3, [sp, #32]
  59450. 8019062: 4319 orrs r1, r3
  59451. 8019064: d10f bne.n 8019086 <_dtoa_r+0x946>
  59452. 8019066: f1ba 0f39 cmp.w sl, #57 @ 0x39
  59453. 801906a: d028 beq.n 80190be <_dtoa_r+0x97e>
  59454. 801906c: 9b06 ldr r3, [sp, #24]
  59455. 801906e: 2b00 cmp r3, #0
  59456. 8019070: dd02 ble.n 8019078 <_dtoa_r+0x938>
  59457. 8019072: 9b02 ldr r3, [sp, #8]
  59458. 8019074: f103 0a31 add.w sl, r3, #49 @ 0x31
  59459. 8019078: f88b a000 strb.w sl, [fp]
  59460. 801907c: e639 b.n 8018cf2 <_dtoa_r+0x5b2>
  59461. 801907e: 4628 mov r0, r5
  59462. 8019080: e7bd b.n 8018ffe <_dtoa_r+0x8be>
  59463. 8019082: 2201 movs r2, #1
  59464. 8019084: e7e2 b.n 801904c <_dtoa_r+0x90c>
  59465. 8019086: 9b06 ldr r3, [sp, #24]
  59466. 8019088: 2b00 cmp r3, #0
  59467. 801908a: db04 blt.n 8019096 <_dtoa_r+0x956>
  59468. 801908c: 9907 ldr r1, [sp, #28]
  59469. 801908e: 430b orrs r3, r1
  59470. 8019090: 9908 ldr r1, [sp, #32]
  59471. 8019092: 430b orrs r3, r1
  59472. 8019094: d120 bne.n 80190d8 <_dtoa_r+0x998>
  59473. 8019096: 2a00 cmp r2, #0
  59474. 8019098: ddee ble.n 8019078 <_dtoa_r+0x938>
  59475. 801909a: 9901 ldr r1, [sp, #4]
  59476. 801909c: 2201 movs r2, #1
  59477. 801909e: 4648 mov r0, r9
  59478. 80190a0: f000 fbb2 bl 8019808 <__lshift>
  59479. 80190a4: 4621 mov r1, r4
  59480. 80190a6: 9001 str r0, [sp, #4]
  59481. 80190a8: f000 fc1a bl 80198e0 <__mcmp>
  59482. 80190ac: 2800 cmp r0, #0
  59483. 80190ae: dc03 bgt.n 80190b8 <_dtoa_r+0x978>
  59484. 80190b0: d1e2 bne.n 8019078 <_dtoa_r+0x938>
  59485. 80190b2: f01a 0f01 tst.w sl, #1
  59486. 80190b6: d0df beq.n 8019078 <_dtoa_r+0x938>
  59487. 80190b8: f1ba 0f39 cmp.w sl, #57 @ 0x39
  59488. 80190bc: d1d9 bne.n 8019072 <_dtoa_r+0x932>
  59489. 80190be: 2339 movs r3, #57 @ 0x39
  59490. 80190c0: f88b 3000 strb.w r3, [fp]
  59491. 80190c4: 4633 mov r3, r6
  59492. 80190c6: 461e mov r6, r3
  59493. 80190c8: 3b01 subs r3, #1
  59494. 80190ca: f816 2c01 ldrb.w r2, [r6, #-1]
  59495. 80190ce: 2a39 cmp r2, #57 @ 0x39
  59496. 80190d0: d053 beq.n 801917a <_dtoa_r+0xa3a>
  59497. 80190d2: 3201 adds r2, #1
  59498. 80190d4: 701a strb r2, [r3, #0]
  59499. 80190d6: e60c b.n 8018cf2 <_dtoa_r+0x5b2>
  59500. 80190d8: 2a00 cmp r2, #0
  59501. 80190da: dd07 ble.n 80190ec <_dtoa_r+0x9ac>
  59502. 80190dc: f1ba 0f39 cmp.w sl, #57 @ 0x39
  59503. 80190e0: d0ed beq.n 80190be <_dtoa_r+0x97e>
  59504. 80190e2: f10a 0301 add.w r3, sl, #1
  59505. 80190e6: f88b 3000 strb.w r3, [fp]
  59506. 80190ea: e602 b.n 8018cf2 <_dtoa_r+0x5b2>
  59507. 80190ec: 9b05 ldr r3, [sp, #20]
  59508. 80190ee: 9a05 ldr r2, [sp, #20]
  59509. 80190f0: f803 ac01 strb.w sl, [r3, #-1]
  59510. 80190f4: 9b09 ldr r3, [sp, #36] @ 0x24
  59511. 80190f6: 4293 cmp r3, r2
  59512. 80190f8: d029 beq.n 801914e <_dtoa_r+0xa0e>
  59513. 80190fa: 9901 ldr r1, [sp, #4]
  59514. 80190fc: 2300 movs r3, #0
  59515. 80190fe: 220a movs r2, #10
  59516. 8019100: 4648 mov r0, r9
  59517. 8019102: f000 f9d5 bl 80194b0 <__multadd>
  59518. 8019106: 45a8 cmp r8, r5
  59519. 8019108: 9001 str r0, [sp, #4]
  59520. 801910a: f04f 0300 mov.w r3, #0
  59521. 801910e: f04f 020a mov.w r2, #10
  59522. 8019112: 4641 mov r1, r8
  59523. 8019114: 4648 mov r0, r9
  59524. 8019116: d107 bne.n 8019128 <_dtoa_r+0x9e8>
  59525. 8019118: f000 f9ca bl 80194b0 <__multadd>
  59526. 801911c: 4680 mov r8, r0
  59527. 801911e: 4605 mov r5, r0
  59528. 8019120: 9b05 ldr r3, [sp, #20]
  59529. 8019122: 3301 adds r3, #1
  59530. 8019124: 9305 str r3, [sp, #20]
  59531. 8019126: e775 b.n 8019014 <_dtoa_r+0x8d4>
  59532. 8019128: f000 f9c2 bl 80194b0 <__multadd>
  59533. 801912c: 4629 mov r1, r5
  59534. 801912e: 4680 mov r8, r0
  59535. 8019130: 2300 movs r3, #0
  59536. 8019132: 220a movs r2, #10
  59537. 8019134: 4648 mov r0, r9
  59538. 8019136: f000 f9bb bl 80194b0 <__multadd>
  59539. 801913a: 4605 mov r5, r0
  59540. 801913c: e7f0 b.n 8019120 <_dtoa_r+0x9e0>
  59541. 801913e: f1bb 0f00 cmp.w fp, #0
  59542. 8019142: bfcc ite gt
  59543. 8019144: 465e movgt r6, fp
  59544. 8019146: 2601 movle r6, #1
  59545. 8019148: 443e add r6, r7
  59546. 801914a: f04f 0800 mov.w r8, #0
  59547. 801914e: 9901 ldr r1, [sp, #4]
  59548. 8019150: 2201 movs r2, #1
  59549. 8019152: 4648 mov r0, r9
  59550. 8019154: f000 fb58 bl 8019808 <__lshift>
  59551. 8019158: 4621 mov r1, r4
  59552. 801915a: 9001 str r0, [sp, #4]
  59553. 801915c: f000 fbc0 bl 80198e0 <__mcmp>
  59554. 8019160: 2800 cmp r0, #0
  59555. 8019162: dcaf bgt.n 80190c4 <_dtoa_r+0x984>
  59556. 8019164: d102 bne.n 801916c <_dtoa_r+0xa2c>
  59557. 8019166: f01a 0f01 tst.w sl, #1
  59558. 801916a: d1ab bne.n 80190c4 <_dtoa_r+0x984>
  59559. 801916c: 4633 mov r3, r6
  59560. 801916e: 461e mov r6, r3
  59561. 8019170: f813 2d01 ldrb.w r2, [r3, #-1]!
  59562. 8019174: 2a30 cmp r2, #48 @ 0x30
  59563. 8019176: d0fa beq.n 801916e <_dtoa_r+0xa2e>
  59564. 8019178: e5bb b.n 8018cf2 <_dtoa_r+0x5b2>
  59565. 801917a: 429f cmp r7, r3
  59566. 801917c: d1a3 bne.n 80190c6 <_dtoa_r+0x986>
  59567. 801917e: 9b04 ldr r3, [sp, #16]
  59568. 8019180: 3301 adds r3, #1
  59569. 8019182: 9304 str r3, [sp, #16]
  59570. 8019184: 2331 movs r3, #49 @ 0x31
  59571. 8019186: 703b strb r3, [r7, #0]
  59572. 8019188: e5b3 b.n 8018cf2 <_dtoa_r+0x5b2>
  59573. 801918a: 9b1d ldr r3, [sp, #116] @ 0x74
  59574. 801918c: 4f16 ldr r7, [pc, #88] @ (80191e8 <_dtoa_r+0xaa8>)
  59575. 801918e: b11b cbz r3, 8019198 <_dtoa_r+0xa58>
  59576. 8019190: f107 0308 add.w r3, r7, #8
  59577. 8019194: 9a1d ldr r2, [sp, #116] @ 0x74
  59578. 8019196: 6013 str r3, [r2, #0]
  59579. 8019198: 4638 mov r0, r7
  59580. 801919a: b011 add sp, #68 @ 0x44
  59581. 801919c: ecbd 8b02 vpop {d8}
  59582. 80191a0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  59583. 80191a4: 9b07 ldr r3, [sp, #28]
  59584. 80191a6: 2b01 cmp r3, #1
  59585. 80191a8: f77f ae36 ble.w 8018e18 <_dtoa_r+0x6d8>
  59586. 80191ac: 9b0a ldr r3, [sp, #40] @ 0x28
  59587. 80191ae: 930b str r3, [sp, #44] @ 0x2c
  59588. 80191b0: 2001 movs r0, #1
  59589. 80191b2: e656 b.n 8018e62 <_dtoa_r+0x722>
  59590. 80191b4: f1bb 0f00 cmp.w fp, #0
  59591. 80191b8: f77f aed7 ble.w 8018f6a <_dtoa_r+0x82a>
  59592. 80191bc: 463e mov r6, r7
  59593. 80191be: 9801 ldr r0, [sp, #4]
  59594. 80191c0: 4621 mov r1, r4
  59595. 80191c2: f7ff fa34 bl 801862e <quorem>
  59596. 80191c6: f100 0a30 add.w sl, r0, #48 @ 0x30
  59597. 80191ca: f806 ab01 strb.w sl, [r6], #1
  59598. 80191ce: 1bf2 subs r2, r6, r7
  59599. 80191d0: 4593 cmp fp, r2
  59600. 80191d2: ddb4 ble.n 801913e <_dtoa_r+0x9fe>
  59601. 80191d4: 9901 ldr r1, [sp, #4]
  59602. 80191d6: 2300 movs r3, #0
  59603. 80191d8: 220a movs r2, #10
  59604. 80191da: 4648 mov r0, r9
  59605. 80191dc: f000 f968 bl 80194b0 <__multadd>
  59606. 80191e0: 9001 str r0, [sp, #4]
  59607. 80191e2: e7ec b.n 80191be <_dtoa_r+0xa7e>
  59608. 80191e4: 0801a378 .word 0x0801a378
  59609. 80191e8: 0801a2fc .word 0x0801a2fc
  59610. 080191ec <_free_r>:
  59611. 80191ec: b538 push {r3, r4, r5, lr}
  59612. 80191ee: 4605 mov r5, r0
  59613. 80191f0: 2900 cmp r1, #0
  59614. 80191f2: d041 beq.n 8019278 <_free_r+0x8c>
  59615. 80191f4: f851 3c04 ldr.w r3, [r1, #-4]
  59616. 80191f8: 1f0c subs r4, r1, #4
  59617. 80191fa: 2b00 cmp r3, #0
  59618. 80191fc: bfb8 it lt
  59619. 80191fe: 18e4 addlt r4, r4, r3
  59620. 8019200: f000 f8e8 bl 80193d4 <__malloc_lock>
  59621. 8019204: 4a1d ldr r2, [pc, #116] @ (801927c <_free_r+0x90>)
  59622. 8019206: 6813 ldr r3, [r2, #0]
  59623. 8019208: b933 cbnz r3, 8019218 <_free_r+0x2c>
  59624. 801920a: 6063 str r3, [r4, #4]
  59625. 801920c: 6014 str r4, [r2, #0]
  59626. 801920e: 4628 mov r0, r5
  59627. 8019210: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  59628. 8019214: f000 b8e4 b.w 80193e0 <__malloc_unlock>
  59629. 8019218: 42a3 cmp r3, r4
  59630. 801921a: d908 bls.n 801922e <_free_r+0x42>
  59631. 801921c: 6820 ldr r0, [r4, #0]
  59632. 801921e: 1821 adds r1, r4, r0
  59633. 8019220: 428b cmp r3, r1
  59634. 8019222: bf01 itttt eq
  59635. 8019224: 6819 ldreq r1, [r3, #0]
  59636. 8019226: 685b ldreq r3, [r3, #4]
  59637. 8019228: 1809 addeq r1, r1, r0
  59638. 801922a: 6021 streq r1, [r4, #0]
  59639. 801922c: e7ed b.n 801920a <_free_r+0x1e>
  59640. 801922e: 461a mov r2, r3
  59641. 8019230: 685b ldr r3, [r3, #4]
  59642. 8019232: b10b cbz r3, 8019238 <_free_r+0x4c>
  59643. 8019234: 42a3 cmp r3, r4
  59644. 8019236: d9fa bls.n 801922e <_free_r+0x42>
  59645. 8019238: 6811 ldr r1, [r2, #0]
  59646. 801923a: 1850 adds r0, r2, r1
  59647. 801923c: 42a0 cmp r0, r4
  59648. 801923e: d10b bne.n 8019258 <_free_r+0x6c>
  59649. 8019240: 6820 ldr r0, [r4, #0]
  59650. 8019242: 4401 add r1, r0
  59651. 8019244: 1850 adds r0, r2, r1
  59652. 8019246: 4283 cmp r3, r0
  59653. 8019248: 6011 str r1, [r2, #0]
  59654. 801924a: d1e0 bne.n 801920e <_free_r+0x22>
  59655. 801924c: 6818 ldr r0, [r3, #0]
  59656. 801924e: 685b ldr r3, [r3, #4]
  59657. 8019250: 6053 str r3, [r2, #4]
  59658. 8019252: 4408 add r0, r1
  59659. 8019254: 6010 str r0, [r2, #0]
  59660. 8019256: e7da b.n 801920e <_free_r+0x22>
  59661. 8019258: d902 bls.n 8019260 <_free_r+0x74>
  59662. 801925a: 230c movs r3, #12
  59663. 801925c: 602b str r3, [r5, #0]
  59664. 801925e: e7d6 b.n 801920e <_free_r+0x22>
  59665. 8019260: 6820 ldr r0, [r4, #0]
  59666. 8019262: 1821 adds r1, r4, r0
  59667. 8019264: 428b cmp r3, r1
  59668. 8019266: bf04 itt eq
  59669. 8019268: 6819 ldreq r1, [r3, #0]
  59670. 801926a: 685b ldreq r3, [r3, #4]
  59671. 801926c: 6063 str r3, [r4, #4]
  59672. 801926e: bf04 itt eq
  59673. 8019270: 1809 addeq r1, r1, r0
  59674. 8019272: 6021 streq r1, [r4, #0]
  59675. 8019274: 6054 str r4, [r2, #4]
  59676. 8019276: e7ca b.n 801920e <_free_r+0x22>
  59677. 8019278: bd38 pop {r3, r4, r5, pc}
  59678. 801927a: bf00 nop
  59679. 801927c: 240132f0 .word 0x240132f0
  59680. 08019280 <malloc>:
  59681. 8019280: 4b02 ldr r3, [pc, #8] @ (801928c <malloc+0xc>)
  59682. 8019282: 4601 mov r1, r0
  59683. 8019284: 6818 ldr r0, [r3, #0]
  59684. 8019286: f000 b825 b.w 80192d4 <_malloc_r>
  59685. 801928a: bf00 nop
  59686. 801928c: 24000054 .word 0x24000054
  59687. 08019290 <sbrk_aligned>:
  59688. 8019290: b570 push {r4, r5, r6, lr}
  59689. 8019292: 4e0f ldr r6, [pc, #60] @ (80192d0 <sbrk_aligned+0x40>)
  59690. 8019294: 460c mov r4, r1
  59691. 8019296: 6831 ldr r1, [r6, #0]
  59692. 8019298: 4605 mov r5, r0
  59693. 801929a: b911 cbnz r1, 80192a2 <sbrk_aligned+0x12>
  59694. 801929c: f000 fd58 bl 8019d50 <_sbrk_r>
  59695. 80192a0: 6030 str r0, [r6, #0]
  59696. 80192a2: 4621 mov r1, r4
  59697. 80192a4: 4628 mov r0, r5
  59698. 80192a6: f000 fd53 bl 8019d50 <_sbrk_r>
  59699. 80192aa: 1c43 adds r3, r0, #1
  59700. 80192ac: d103 bne.n 80192b6 <sbrk_aligned+0x26>
  59701. 80192ae: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
  59702. 80192b2: 4620 mov r0, r4
  59703. 80192b4: bd70 pop {r4, r5, r6, pc}
  59704. 80192b6: 1cc4 adds r4, r0, #3
  59705. 80192b8: f024 0403 bic.w r4, r4, #3
  59706. 80192bc: 42a0 cmp r0, r4
  59707. 80192be: d0f8 beq.n 80192b2 <sbrk_aligned+0x22>
  59708. 80192c0: 1a21 subs r1, r4, r0
  59709. 80192c2: 4628 mov r0, r5
  59710. 80192c4: f000 fd44 bl 8019d50 <_sbrk_r>
  59711. 80192c8: 3001 adds r0, #1
  59712. 80192ca: d1f2 bne.n 80192b2 <sbrk_aligned+0x22>
  59713. 80192cc: e7ef b.n 80192ae <sbrk_aligned+0x1e>
  59714. 80192ce: bf00 nop
  59715. 80192d0: 240132ec .word 0x240132ec
  59716. 080192d4 <_malloc_r>:
  59717. 80192d4: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  59718. 80192d8: 1ccd adds r5, r1, #3
  59719. 80192da: f025 0503 bic.w r5, r5, #3
  59720. 80192de: 3508 adds r5, #8
  59721. 80192e0: 2d0c cmp r5, #12
  59722. 80192e2: bf38 it cc
  59723. 80192e4: 250c movcc r5, #12
  59724. 80192e6: 2d00 cmp r5, #0
  59725. 80192e8: 4606 mov r6, r0
  59726. 80192ea: db01 blt.n 80192f0 <_malloc_r+0x1c>
  59727. 80192ec: 42a9 cmp r1, r5
  59728. 80192ee: d904 bls.n 80192fa <_malloc_r+0x26>
  59729. 80192f0: 230c movs r3, #12
  59730. 80192f2: 6033 str r3, [r6, #0]
  59731. 80192f4: 2000 movs r0, #0
  59732. 80192f6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  59733. 80192fa: f8df 80d4 ldr.w r8, [pc, #212] @ 80193d0 <_malloc_r+0xfc>
  59734. 80192fe: f000 f869 bl 80193d4 <__malloc_lock>
  59735. 8019302: f8d8 3000 ldr.w r3, [r8]
  59736. 8019306: 461c mov r4, r3
  59737. 8019308: bb44 cbnz r4, 801935c <_malloc_r+0x88>
  59738. 801930a: 4629 mov r1, r5
  59739. 801930c: 4630 mov r0, r6
  59740. 801930e: f7ff ffbf bl 8019290 <sbrk_aligned>
  59741. 8019312: 1c43 adds r3, r0, #1
  59742. 8019314: 4604 mov r4, r0
  59743. 8019316: d158 bne.n 80193ca <_malloc_r+0xf6>
  59744. 8019318: f8d8 4000 ldr.w r4, [r8]
  59745. 801931c: 4627 mov r7, r4
  59746. 801931e: 2f00 cmp r7, #0
  59747. 8019320: d143 bne.n 80193aa <_malloc_r+0xd6>
  59748. 8019322: 2c00 cmp r4, #0
  59749. 8019324: d04b beq.n 80193be <_malloc_r+0xea>
  59750. 8019326: 6823 ldr r3, [r4, #0]
  59751. 8019328: 4639 mov r1, r7
  59752. 801932a: 4630 mov r0, r6
  59753. 801932c: eb04 0903 add.w r9, r4, r3
  59754. 8019330: f000 fd0e bl 8019d50 <_sbrk_r>
  59755. 8019334: 4581 cmp r9, r0
  59756. 8019336: d142 bne.n 80193be <_malloc_r+0xea>
  59757. 8019338: 6821 ldr r1, [r4, #0]
  59758. 801933a: 1a6d subs r5, r5, r1
  59759. 801933c: 4629 mov r1, r5
  59760. 801933e: 4630 mov r0, r6
  59761. 8019340: f7ff ffa6 bl 8019290 <sbrk_aligned>
  59762. 8019344: 3001 adds r0, #1
  59763. 8019346: d03a beq.n 80193be <_malloc_r+0xea>
  59764. 8019348: 6823 ldr r3, [r4, #0]
  59765. 801934a: 442b add r3, r5
  59766. 801934c: 6023 str r3, [r4, #0]
  59767. 801934e: f8d8 3000 ldr.w r3, [r8]
  59768. 8019352: 685a ldr r2, [r3, #4]
  59769. 8019354: bb62 cbnz r2, 80193b0 <_malloc_r+0xdc>
  59770. 8019356: f8c8 7000 str.w r7, [r8]
  59771. 801935a: e00f b.n 801937c <_malloc_r+0xa8>
  59772. 801935c: 6822 ldr r2, [r4, #0]
  59773. 801935e: 1b52 subs r2, r2, r5
  59774. 8019360: d420 bmi.n 80193a4 <_malloc_r+0xd0>
  59775. 8019362: 2a0b cmp r2, #11
  59776. 8019364: d917 bls.n 8019396 <_malloc_r+0xc2>
  59777. 8019366: 1961 adds r1, r4, r5
  59778. 8019368: 42a3 cmp r3, r4
  59779. 801936a: 6025 str r5, [r4, #0]
  59780. 801936c: bf18 it ne
  59781. 801936e: 6059 strne r1, [r3, #4]
  59782. 8019370: 6863 ldr r3, [r4, #4]
  59783. 8019372: bf08 it eq
  59784. 8019374: f8c8 1000 streq.w r1, [r8]
  59785. 8019378: 5162 str r2, [r4, r5]
  59786. 801937a: 604b str r3, [r1, #4]
  59787. 801937c: 4630 mov r0, r6
  59788. 801937e: f000 f82f bl 80193e0 <__malloc_unlock>
  59789. 8019382: f104 000b add.w r0, r4, #11
  59790. 8019386: 1d23 adds r3, r4, #4
  59791. 8019388: f020 0007 bic.w r0, r0, #7
  59792. 801938c: 1ac2 subs r2, r0, r3
  59793. 801938e: bf1c itt ne
  59794. 8019390: 1a1b subne r3, r3, r0
  59795. 8019392: 50a3 strne r3, [r4, r2]
  59796. 8019394: e7af b.n 80192f6 <_malloc_r+0x22>
  59797. 8019396: 6862 ldr r2, [r4, #4]
  59798. 8019398: 42a3 cmp r3, r4
  59799. 801939a: bf0c ite eq
  59800. 801939c: f8c8 2000 streq.w r2, [r8]
  59801. 80193a0: 605a strne r2, [r3, #4]
  59802. 80193a2: e7eb b.n 801937c <_malloc_r+0xa8>
  59803. 80193a4: 4623 mov r3, r4
  59804. 80193a6: 6864 ldr r4, [r4, #4]
  59805. 80193a8: e7ae b.n 8019308 <_malloc_r+0x34>
  59806. 80193aa: 463c mov r4, r7
  59807. 80193ac: 687f ldr r7, [r7, #4]
  59808. 80193ae: e7b6 b.n 801931e <_malloc_r+0x4a>
  59809. 80193b0: 461a mov r2, r3
  59810. 80193b2: 685b ldr r3, [r3, #4]
  59811. 80193b4: 42a3 cmp r3, r4
  59812. 80193b6: d1fb bne.n 80193b0 <_malloc_r+0xdc>
  59813. 80193b8: 2300 movs r3, #0
  59814. 80193ba: 6053 str r3, [r2, #4]
  59815. 80193bc: e7de b.n 801937c <_malloc_r+0xa8>
  59816. 80193be: 230c movs r3, #12
  59817. 80193c0: 6033 str r3, [r6, #0]
  59818. 80193c2: 4630 mov r0, r6
  59819. 80193c4: f000 f80c bl 80193e0 <__malloc_unlock>
  59820. 80193c8: e794 b.n 80192f4 <_malloc_r+0x20>
  59821. 80193ca: 6005 str r5, [r0, #0]
  59822. 80193cc: e7d6 b.n 801937c <_malloc_r+0xa8>
  59823. 80193ce: bf00 nop
  59824. 80193d0: 240132f0 .word 0x240132f0
  59825. 080193d4 <__malloc_lock>:
  59826. 80193d4: 4801 ldr r0, [pc, #4] @ (80193dc <__malloc_lock+0x8>)
  59827. 80193d6: f7ff b91a b.w 801860e <__retarget_lock_acquire_recursive>
  59828. 80193da: bf00 nop
  59829. 80193dc: 240132e8 .word 0x240132e8
  59830. 080193e0 <__malloc_unlock>:
  59831. 80193e0: 4801 ldr r0, [pc, #4] @ (80193e8 <__malloc_unlock+0x8>)
  59832. 80193e2: f7ff b915 b.w 8018610 <__retarget_lock_release_recursive>
  59833. 80193e6: bf00 nop
  59834. 80193e8: 240132e8 .word 0x240132e8
  59835. 080193ec <_Balloc>:
  59836. 80193ec: b570 push {r4, r5, r6, lr}
  59837. 80193ee: 69c6 ldr r6, [r0, #28]
  59838. 80193f0: 4604 mov r4, r0
  59839. 80193f2: 460d mov r5, r1
  59840. 80193f4: b976 cbnz r6, 8019414 <_Balloc+0x28>
  59841. 80193f6: 2010 movs r0, #16
  59842. 80193f8: f7ff ff42 bl 8019280 <malloc>
  59843. 80193fc: 4602 mov r2, r0
  59844. 80193fe: 61e0 str r0, [r4, #28]
  59845. 8019400: b920 cbnz r0, 801940c <_Balloc+0x20>
  59846. 8019402: 4b18 ldr r3, [pc, #96] @ (8019464 <_Balloc+0x78>)
  59847. 8019404: 4818 ldr r0, [pc, #96] @ (8019468 <_Balloc+0x7c>)
  59848. 8019406: 216b movs r1, #107 @ 0x6b
  59849. 8019408: f000 fcb2 bl 8019d70 <__assert_func>
  59850. 801940c: e9c0 6601 strd r6, r6, [r0, #4]
  59851. 8019410: 6006 str r6, [r0, #0]
  59852. 8019412: 60c6 str r6, [r0, #12]
  59853. 8019414: 69e6 ldr r6, [r4, #28]
  59854. 8019416: 68f3 ldr r3, [r6, #12]
  59855. 8019418: b183 cbz r3, 801943c <_Balloc+0x50>
  59856. 801941a: 69e3 ldr r3, [r4, #28]
  59857. 801941c: 68db ldr r3, [r3, #12]
  59858. 801941e: f853 0025 ldr.w r0, [r3, r5, lsl #2]
  59859. 8019422: b9b8 cbnz r0, 8019454 <_Balloc+0x68>
  59860. 8019424: 2101 movs r1, #1
  59861. 8019426: fa01 f605 lsl.w r6, r1, r5
  59862. 801942a: 1d72 adds r2, r6, #5
  59863. 801942c: 0092 lsls r2, r2, #2
  59864. 801942e: 4620 mov r0, r4
  59865. 8019430: f000 fcbc bl 8019dac <_calloc_r>
  59866. 8019434: b160 cbz r0, 8019450 <_Balloc+0x64>
  59867. 8019436: e9c0 5601 strd r5, r6, [r0, #4]
  59868. 801943a: e00e b.n 801945a <_Balloc+0x6e>
  59869. 801943c: 2221 movs r2, #33 @ 0x21
  59870. 801943e: 2104 movs r1, #4
  59871. 8019440: 4620 mov r0, r4
  59872. 8019442: f000 fcb3 bl 8019dac <_calloc_r>
  59873. 8019446: 69e3 ldr r3, [r4, #28]
  59874. 8019448: 60f0 str r0, [r6, #12]
  59875. 801944a: 68db ldr r3, [r3, #12]
  59876. 801944c: 2b00 cmp r3, #0
  59877. 801944e: d1e4 bne.n 801941a <_Balloc+0x2e>
  59878. 8019450: 2000 movs r0, #0
  59879. 8019452: bd70 pop {r4, r5, r6, pc}
  59880. 8019454: 6802 ldr r2, [r0, #0]
  59881. 8019456: f843 2025 str.w r2, [r3, r5, lsl #2]
  59882. 801945a: 2300 movs r3, #0
  59883. 801945c: e9c0 3303 strd r3, r3, [r0, #12]
  59884. 8019460: e7f7 b.n 8019452 <_Balloc+0x66>
  59885. 8019462: bf00 nop
  59886. 8019464: 0801a309 .word 0x0801a309
  59887. 8019468: 0801a389 .word 0x0801a389
  59888. 0801946c <_Bfree>:
  59889. 801946c: b570 push {r4, r5, r6, lr}
  59890. 801946e: 69c6 ldr r6, [r0, #28]
  59891. 8019470: 4605 mov r5, r0
  59892. 8019472: 460c mov r4, r1
  59893. 8019474: b976 cbnz r6, 8019494 <_Bfree+0x28>
  59894. 8019476: 2010 movs r0, #16
  59895. 8019478: f7ff ff02 bl 8019280 <malloc>
  59896. 801947c: 4602 mov r2, r0
  59897. 801947e: 61e8 str r0, [r5, #28]
  59898. 8019480: b920 cbnz r0, 801948c <_Bfree+0x20>
  59899. 8019482: 4b09 ldr r3, [pc, #36] @ (80194a8 <_Bfree+0x3c>)
  59900. 8019484: 4809 ldr r0, [pc, #36] @ (80194ac <_Bfree+0x40>)
  59901. 8019486: 218f movs r1, #143 @ 0x8f
  59902. 8019488: f000 fc72 bl 8019d70 <__assert_func>
  59903. 801948c: e9c0 6601 strd r6, r6, [r0, #4]
  59904. 8019490: 6006 str r6, [r0, #0]
  59905. 8019492: 60c6 str r6, [r0, #12]
  59906. 8019494: b13c cbz r4, 80194a6 <_Bfree+0x3a>
  59907. 8019496: 69eb ldr r3, [r5, #28]
  59908. 8019498: 6862 ldr r2, [r4, #4]
  59909. 801949a: 68db ldr r3, [r3, #12]
  59910. 801949c: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  59911. 80194a0: 6021 str r1, [r4, #0]
  59912. 80194a2: f843 4022 str.w r4, [r3, r2, lsl #2]
  59913. 80194a6: bd70 pop {r4, r5, r6, pc}
  59914. 80194a8: 0801a309 .word 0x0801a309
  59915. 80194ac: 0801a389 .word 0x0801a389
  59916. 080194b0 <__multadd>:
  59917. 80194b0: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  59918. 80194b4: 690d ldr r5, [r1, #16]
  59919. 80194b6: 4607 mov r7, r0
  59920. 80194b8: 460c mov r4, r1
  59921. 80194ba: 461e mov r6, r3
  59922. 80194bc: f101 0c14 add.w ip, r1, #20
  59923. 80194c0: 2000 movs r0, #0
  59924. 80194c2: f8dc 3000 ldr.w r3, [ip]
  59925. 80194c6: b299 uxth r1, r3
  59926. 80194c8: fb02 6101 mla r1, r2, r1, r6
  59927. 80194cc: 0c1e lsrs r6, r3, #16
  59928. 80194ce: 0c0b lsrs r3, r1, #16
  59929. 80194d0: fb02 3306 mla r3, r2, r6, r3
  59930. 80194d4: b289 uxth r1, r1
  59931. 80194d6: 3001 adds r0, #1
  59932. 80194d8: eb01 4103 add.w r1, r1, r3, lsl #16
  59933. 80194dc: 4285 cmp r5, r0
  59934. 80194de: f84c 1b04 str.w r1, [ip], #4
  59935. 80194e2: ea4f 4613 mov.w r6, r3, lsr #16
  59936. 80194e6: dcec bgt.n 80194c2 <__multadd+0x12>
  59937. 80194e8: b30e cbz r6, 801952e <__multadd+0x7e>
  59938. 80194ea: 68a3 ldr r3, [r4, #8]
  59939. 80194ec: 42ab cmp r3, r5
  59940. 80194ee: dc19 bgt.n 8019524 <__multadd+0x74>
  59941. 80194f0: 6861 ldr r1, [r4, #4]
  59942. 80194f2: 4638 mov r0, r7
  59943. 80194f4: 3101 adds r1, #1
  59944. 80194f6: f7ff ff79 bl 80193ec <_Balloc>
  59945. 80194fa: 4680 mov r8, r0
  59946. 80194fc: b928 cbnz r0, 801950a <__multadd+0x5a>
  59947. 80194fe: 4602 mov r2, r0
  59948. 8019500: 4b0c ldr r3, [pc, #48] @ (8019534 <__multadd+0x84>)
  59949. 8019502: 480d ldr r0, [pc, #52] @ (8019538 <__multadd+0x88>)
  59950. 8019504: 21ba movs r1, #186 @ 0xba
  59951. 8019506: f000 fc33 bl 8019d70 <__assert_func>
  59952. 801950a: 6922 ldr r2, [r4, #16]
  59953. 801950c: 3202 adds r2, #2
  59954. 801950e: f104 010c add.w r1, r4, #12
  59955. 8019512: 0092 lsls r2, r2, #2
  59956. 8019514: 300c adds r0, #12
  59957. 8019516: f7ff f87c bl 8018612 <memcpy>
  59958. 801951a: 4621 mov r1, r4
  59959. 801951c: 4638 mov r0, r7
  59960. 801951e: f7ff ffa5 bl 801946c <_Bfree>
  59961. 8019522: 4644 mov r4, r8
  59962. 8019524: eb04 0385 add.w r3, r4, r5, lsl #2
  59963. 8019528: 3501 adds r5, #1
  59964. 801952a: 615e str r6, [r3, #20]
  59965. 801952c: 6125 str r5, [r4, #16]
  59966. 801952e: 4620 mov r0, r4
  59967. 8019530: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  59968. 8019534: 0801a378 .word 0x0801a378
  59969. 8019538: 0801a389 .word 0x0801a389
  59970. 0801953c <__hi0bits>:
  59971. 801953c: f5b0 3f80 cmp.w r0, #65536 @ 0x10000
  59972. 8019540: 4603 mov r3, r0
  59973. 8019542: bf36 itet cc
  59974. 8019544: 0403 lslcc r3, r0, #16
  59975. 8019546: 2000 movcs r0, #0
  59976. 8019548: 2010 movcc r0, #16
  59977. 801954a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
  59978. 801954e: bf3c itt cc
  59979. 8019550: 021b lslcc r3, r3, #8
  59980. 8019552: 3008 addcc r0, #8
  59981. 8019554: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
  59982. 8019558: bf3c itt cc
  59983. 801955a: 011b lslcc r3, r3, #4
  59984. 801955c: 3004 addcc r0, #4
  59985. 801955e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
  59986. 8019562: bf3c itt cc
  59987. 8019564: 009b lslcc r3, r3, #2
  59988. 8019566: 3002 addcc r0, #2
  59989. 8019568: 2b00 cmp r3, #0
  59990. 801956a: db05 blt.n 8019578 <__hi0bits+0x3c>
  59991. 801956c: f013 4f80 tst.w r3, #1073741824 @ 0x40000000
  59992. 8019570: f100 0001 add.w r0, r0, #1
  59993. 8019574: bf08 it eq
  59994. 8019576: 2020 moveq r0, #32
  59995. 8019578: 4770 bx lr
  59996. 0801957a <__lo0bits>:
  59997. 801957a: 6803 ldr r3, [r0, #0]
  59998. 801957c: 4602 mov r2, r0
  59999. 801957e: f013 0007 ands.w r0, r3, #7
  60000. 8019582: d00b beq.n 801959c <__lo0bits+0x22>
  60001. 8019584: 07d9 lsls r1, r3, #31
  60002. 8019586: d421 bmi.n 80195cc <__lo0bits+0x52>
  60003. 8019588: 0798 lsls r0, r3, #30
  60004. 801958a: bf49 itett mi
  60005. 801958c: 085b lsrmi r3, r3, #1
  60006. 801958e: 089b lsrpl r3, r3, #2
  60007. 8019590: 2001 movmi r0, #1
  60008. 8019592: 6013 strmi r3, [r2, #0]
  60009. 8019594: bf5c itt pl
  60010. 8019596: 6013 strpl r3, [r2, #0]
  60011. 8019598: 2002 movpl r0, #2
  60012. 801959a: 4770 bx lr
  60013. 801959c: b299 uxth r1, r3
  60014. 801959e: b909 cbnz r1, 80195a4 <__lo0bits+0x2a>
  60015. 80195a0: 0c1b lsrs r3, r3, #16
  60016. 80195a2: 2010 movs r0, #16
  60017. 80195a4: b2d9 uxtb r1, r3
  60018. 80195a6: b909 cbnz r1, 80195ac <__lo0bits+0x32>
  60019. 80195a8: 3008 adds r0, #8
  60020. 80195aa: 0a1b lsrs r3, r3, #8
  60021. 80195ac: 0719 lsls r1, r3, #28
  60022. 80195ae: bf04 itt eq
  60023. 80195b0: 091b lsreq r3, r3, #4
  60024. 80195b2: 3004 addeq r0, #4
  60025. 80195b4: 0799 lsls r1, r3, #30
  60026. 80195b6: bf04 itt eq
  60027. 80195b8: 089b lsreq r3, r3, #2
  60028. 80195ba: 3002 addeq r0, #2
  60029. 80195bc: 07d9 lsls r1, r3, #31
  60030. 80195be: d403 bmi.n 80195c8 <__lo0bits+0x4e>
  60031. 80195c0: 085b lsrs r3, r3, #1
  60032. 80195c2: f100 0001 add.w r0, r0, #1
  60033. 80195c6: d003 beq.n 80195d0 <__lo0bits+0x56>
  60034. 80195c8: 6013 str r3, [r2, #0]
  60035. 80195ca: 4770 bx lr
  60036. 80195cc: 2000 movs r0, #0
  60037. 80195ce: 4770 bx lr
  60038. 80195d0: 2020 movs r0, #32
  60039. 80195d2: 4770 bx lr
  60040. 080195d4 <__i2b>:
  60041. 80195d4: b510 push {r4, lr}
  60042. 80195d6: 460c mov r4, r1
  60043. 80195d8: 2101 movs r1, #1
  60044. 80195da: f7ff ff07 bl 80193ec <_Balloc>
  60045. 80195de: 4602 mov r2, r0
  60046. 80195e0: b928 cbnz r0, 80195ee <__i2b+0x1a>
  60047. 80195e2: 4b05 ldr r3, [pc, #20] @ (80195f8 <__i2b+0x24>)
  60048. 80195e4: 4805 ldr r0, [pc, #20] @ (80195fc <__i2b+0x28>)
  60049. 80195e6: f240 1145 movw r1, #325 @ 0x145
  60050. 80195ea: f000 fbc1 bl 8019d70 <__assert_func>
  60051. 80195ee: 2301 movs r3, #1
  60052. 80195f0: 6144 str r4, [r0, #20]
  60053. 80195f2: 6103 str r3, [r0, #16]
  60054. 80195f4: bd10 pop {r4, pc}
  60055. 80195f6: bf00 nop
  60056. 80195f8: 0801a378 .word 0x0801a378
  60057. 80195fc: 0801a389 .word 0x0801a389
  60058. 08019600 <__multiply>:
  60059. 8019600: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  60060. 8019604: 4614 mov r4, r2
  60061. 8019606: 690a ldr r2, [r1, #16]
  60062. 8019608: 6923 ldr r3, [r4, #16]
  60063. 801960a: 429a cmp r2, r3
  60064. 801960c: bfa8 it ge
  60065. 801960e: 4623 movge r3, r4
  60066. 8019610: 460f mov r7, r1
  60067. 8019612: bfa4 itt ge
  60068. 8019614: 460c movge r4, r1
  60069. 8019616: 461f movge r7, r3
  60070. 8019618: f8d4 a010 ldr.w sl, [r4, #16]
  60071. 801961c: f8d7 9010 ldr.w r9, [r7, #16]
  60072. 8019620: 68a3 ldr r3, [r4, #8]
  60073. 8019622: 6861 ldr r1, [r4, #4]
  60074. 8019624: eb0a 0609 add.w r6, sl, r9
  60075. 8019628: 42b3 cmp r3, r6
  60076. 801962a: b085 sub sp, #20
  60077. 801962c: bfb8 it lt
  60078. 801962e: 3101 addlt r1, #1
  60079. 8019630: f7ff fedc bl 80193ec <_Balloc>
  60080. 8019634: b930 cbnz r0, 8019644 <__multiply+0x44>
  60081. 8019636: 4602 mov r2, r0
  60082. 8019638: 4b44 ldr r3, [pc, #272] @ (801974c <__multiply+0x14c>)
  60083. 801963a: 4845 ldr r0, [pc, #276] @ (8019750 <__multiply+0x150>)
  60084. 801963c: f44f 71b1 mov.w r1, #354 @ 0x162
  60085. 8019640: f000 fb96 bl 8019d70 <__assert_func>
  60086. 8019644: f100 0514 add.w r5, r0, #20
  60087. 8019648: eb05 0886 add.w r8, r5, r6, lsl #2
  60088. 801964c: 462b mov r3, r5
  60089. 801964e: 2200 movs r2, #0
  60090. 8019650: 4543 cmp r3, r8
  60091. 8019652: d321 bcc.n 8019698 <__multiply+0x98>
  60092. 8019654: f107 0114 add.w r1, r7, #20
  60093. 8019658: f104 0214 add.w r2, r4, #20
  60094. 801965c: eb02 028a add.w r2, r2, sl, lsl #2
  60095. 8019660: eb01 0389 add.w r3, r1, r9, lsl #2
  60096. 8019664: 9302 str r3, [sp, #8]
  60097. 8019666: 1b13 subs r3, r2, r4
  60098. 8019668: 3b15 subs r3, #21
  60099. 801966a: f023 0303 bic.w r3, r3, #3
  60100. 801966e: 3304 adds r3, #4
  60101. 8019670: f104 0715 add.w r7, r4, #21
  60102. 8019674: 42ba cmp r2, r7
  60103. 8019676: bf38 it cc
  60104. 8019678: 2304 movcc r3, #4
  60105. 801967a: 9301 str r3, [sp, #4]
  60106. 801967c: 9b02 ldr r3, [sp, #8]
  60107. 801967e: 9103 str r1, [sp, #12]
  60108. 8019680: 428b cmp r3, r1
  60109. 8019682: d80c bhi.n 801969e <__multiply+0x9e>
  60110. 8019684: 2e00 cmp r6, #0
  60111. 8019686: dd03 ble.n 8019690 <__multiply+0x90>
  60112. 8019688: f858 3d04 ldr.w r3, [r8, #-4]!
  60113. 801968c: 2b00 cmp r3, #0
  60114. 801968e: d05b beq.n 8019748 <__multiply+0x148>
  60115. 8019690: 6106 str r6, [r0, #16]
  60116. 8019692: b005 add sp, #20
  60117. 8019694: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  60118. 8019698: f843 2b04 str.w r2, [r3], #4
  60119. 801969c: e7d8 b.n 8019650 <__multiply+0x50>
  60120. 801969e: f8b1 a000 ldrh.w sl, [r1]
  60121. 80196a2: f1ba 0f00 cmp.w sl, #0
  60122. 80196a6: d024 beq.n 80196f2 <__multiply+0xf2>
  60123. 80196a8: f104 0e14 add.w lr, r4, #20
  60124. 80196ac: 46a9 mov r9, r5
  60125. 80196ae: f04f 0c00 mov.w ip, #0
  60126. 80196b2: f85e 7b04 ldr.w r7, [lr], #4
  60127. 80196b6: f8d9 3000 ldr.w r3, [r9]
  60128. 80196ba: fa1f fb87 uxth.w fp, r7
  60129. 80196be: b29b uxth r3, r3
  60130. 80196c0: fb0a 330b mla r3, sl, fp, r3
  60131. 80196c4: ea4f 4b17 mov.w fp, r7, lsr #16
  60132. 80196c8: f8d9 7000 ldr.w r7, [r9]
  60133. 80196cc: 4463 add r3, ip
  60134. 80196ce: ea4f 4c17 mov.w ip, r7, lsr #16
  60135. 80196d2: fb0a c70b mla r7, sl, fp, ip
  60136. 80196d6: eb07 4713 add.w r7, r7, r3, lsr #16
  60137. 80196da: b29b uxth r3, r3
  60138. 80196dc: ea43 4307 orr.w r3, r3, r7, lsl #16
  60139. 80196e0: 4572 cmp r2, lr
  60140. 80196e2: f849 3b04 str.w r3, [r9], #4
  60141. 80196e6: ea4f 4c17 mov.w ip, r7, lsr #16
  60142. 80196ea: d8e2 bhi.n 80196b2 <__multiply+0xb2>
  60143. 80196ec: 9b01 ldr r3, [sp, #4]
  60144. 80196ee: f845 c003 str.w ip, [r5, r3]
  60145. 80196f2: 9b03 ldr r3, [sp, #12]
  60146. 80196f4: f8b3 9002 ldrh.w r9, [r3, #2]
  60147. 80196f8: 3104 adds r1, #4
  60148. 80196fa: f1b9 0f00 cmp.w r9, #0
  60149. 80196fe: d021 beq.n 8019744 <__multiply+0x144>
  60150. 8019700: 682b ldr r3, [r5, #0]
  60151. 8019702: f104 0c14 add.w ip, r4, #20
  60152. 8019706: 46ae mov lr, r5
  60153. 8019708: f04f 0a00 mov.w sl, #0
  60154. 801970c: f8bc b000 ldrh.w fp, [ip]
  60155. 8019710: f8be 7002 ldrh.w r7, [lr, #2]
  60156. 8019714: fb09 770b mla r7, r9, fp, r7
  60157. 8019718: 4457 add r7, sl
  60158. 801971a: b29b uxth r3, r3
  60159. 801971c: ea43 4307 orr.w r3, r3, r7, lsl #16
  60160. 8019720: f84e 3b04 str.w r3, [lr], #4
  60161. 8019724: f85c 3b04 ldr.w r3, [ip], #4
  60162. 8019728: ea4f 4a13 mov.w sl, r3, lsr #16
  60163. 801972c: f8be 3000 ldrh.w r3, [lr]
  60164. 8019730: fb09 330a mla r3, r9, sl, r3
  60165. 8019734: eb03 4317 add.w r3, r3, r7, lsr #16
  60166. 8019738: 4562 cmp r2, ip
  60167. 801973a: ea4f 4a13 mov.w sl, r3, lsr #16
  60168. 801973e: d8e5 bhi.n 801970c <__multiply+0x10c>
  60169. 8019740: 9f01 ldr r7, [sp, #4]
  60170. 8019742: 51eb str r3, [r5, r7]
  60171. 8019744: 3504 adds r5, #4
  60172. 8019746: e799 b.n 801967c <__multiply+0x7c>
  60173. 8019748: 3e01 subs r6, #1
  60174. 801974a: e79b b.n 8019684 <__multiply+0x84>
  60175. 801974c: 0801a378 .word 0x0801a378
  60176. 8019750: 0801a389 .word 0x0801a389
  60177. 08019754 <__pow5mult>:
  60178. 8019754: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  60179. 8019758: 4615 mov r5, r2
  60180. 801975a: f012 0203 ands.w r2, r2, #3
  60181. 801975e: 4607 mov r7, r0
  60182. 8019760: 460e mov r6, r1
  60183. 8019762: d007 beq.n 8019774 <__pow5mult+0x20>
  60184. 8019764: 4c25 ldr r4, [pc, #148] @ (80197fc <__pow5mult+0xa8>)
  60185. 8019766: 3a01 subs r2, #1
  60186. 8019768: 2300 movs r3, #0
  60187. 801976a: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  60188. 801976e: f7ff fe9f bl 80194b0 <__multadd>
  60189. 8019772: 4606 mov r6, r0
  60190. 8019774: 10ad asrs r5, r5, #2
  60191. 8019776: d03d beq.n 80197f4 <__pow5mult+0xa0>
  60192. 8019778: 69fc ldr r4, [r7, #28]
  60193. 801977a: b97c cbnz r4, 801979c <__pow5mult+0x48>
  60194. 801977c: 2010 movs r0, #16
  60195. 801977e: f7ff fd7f bl 8019280 <malloc>
  60196. 8019782: 4602 mov r2, r0
  60197. 8019784: 61f8 str r0, [r7, #28]
  60198. 8019786: b928 cbnz r0, 8019794 <__pow5mult+0x40>
  60199. 8019788: 4b1d ldr r3, [pc, #116] @ (8019800 <__pow5mult+0xac>)
  60200. 801978a: 481e ldr r0, [pc, #120] @ (8019804 <__pow5mult+0xb0>)
  60201. 801978c: f240 11b3 movw r1, #435 @ 0x1b3
  60202. 8019790: f000 faee bl 8019d70 <__assert_func>
  60203. 8019794: e9c0 4401 strd r4, r4, [r0, #4]
  60204. 8019798: 6004 str r4, [r0, #0]
  60205. 801979a: 60c4 str r4, [r0, #12]
  60206. 801979c: f8d7 801c ldr.w r8, [r7, #28]
  60207. 80197a0: f8d8 4008 ldr.w r4, [r8, #8]
  60208. 80197a4: b94c cbnz r4, 80197ba <__pow5mult+0x66>
  60209. 80197a6: f240 2171 movw r1, #625 @ 0x271
  60210. 80197aa: 4638 mov r0, r7
  60211. 80197ac: f7ff ff12 bl 80195d4 <__i2b>
  60212. 80197b0: 2300 movs r3, #0
  60213. 80197b2: f8c8 0008 str.w r0, [r8, #8]
  60214. 80197b6: 4604 mov r4, r0
  60215. 80197b8: 6003 str r3, [r0, #0]
  60216. 80197ba: f04f 0900 mov.w r9, #0
  60217. 80197be: 07eb lsls r3, r5, #31
  60218. 80197c0: d50a bpl.n 80197d8 <__pow5mult+0x84>
  60219. 80197c2: 4631 mov r1, r6
  60220. 80197c4: 4622 mov r2, r4
  60221. 80197c6: 4638 mov r0, r7
  60222. 80197c8: f7ff ff1a bl 8019600 <__multiply>
  60223. 80197cc: 4631 mov r1, r6
  60224. 80197ce: 4680 mov r8, r0
  60225. 80197d0: 4638 mov r0, r7
  60226. 80197d2: f7ff fe4b bl 801946c <_Bfree>
  60227. 80197d6: 4646 mov r6, r8
  60228. 80197d8: 106d asrs r5, r5, #1
  60229. 80197da: d00b beq.n 80197f4 <__pow5mult+0xa0>
  60230. 80197dc: 6820 ldr r0, [r4, #0]
  60231. 80197de: b938 cbnz r0, 80197f0 <__pow5mult+0x9c>
  60232. 80197e0: 4622 mov r2, r4
  60233. 80197e2: 4621 mov r1, r4
  60234. 80197e4: 4638 mov r0, r7
  60235. 80197e6: f7ff ff0b bl 8019600 <__multiply>
  60236. 80197ea: 6020 str r0, [r4, #0]
  60237. 80197ec: f8c0 9000 str.w r9, [r0]
  60238. 80197f0: 4604 mov r4, r0
  60239. 80197f2: e7e4 b.n 80197be <__pow5mult+0x6a>
  60240. 80197f4: 4630 mov r0, r6
  60241. 80197f6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  60242. 80197fa: bf00 nop
  60243. 80197fc: 0801a3e4 .word 0x0801a3e4
  60244. 8019800: 0801a309 .word 0x0801a309
  60245. 8019804: 0801a389 .word 0x0801a389
  60246. 08019808 <__lshift>:
  60247. 8019808: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  60248. 801980c: 460c mov r4, r1
  60249. 801980e: 6849 ldr r1, [r1, #4]
  60250. 8019810: 6923 ldr r3, [r4, #16]
  60251. 8019812: eb03 1862 add.w r8, r3, r2, asr #5
  60252. 8019816: 68a3 ldr r3, [r4, #8]
  60253. 8019818: 4607 mov r7, r0
  60254. 801981a: 4691 mov r9, r2
  60255. 801981c: ea4f 1a62 mov.w sl, r2, asr #5
  60256. 8019820: f108 0601 add.w r6, r8, #1
  60257. 8019824: 42b3 cmp r3, r6
  60258. 8019826: db0b blt.n 8019840 <__lshift+0x38>
  60259. 8019828: 4638 mov r0, r7
  60260. 801982a: f7ff fddf bl 80193ec <_Balloc>
  60261. 801982e: 4605 mov r5, r0
  60262. 8019830: b948 cbnz r0, 8019846 <__lshift+0x3e>
  60263. 8019832: 4602 mov r2, r0
  60264. 8019834: 4b28 ldr r3, [pc, #160] @ (80198d8 <__lshift+0xd0>)
  60265. 8019836: 4829 ldr r0, [pc, #164] @ (80198dc <__lshift+0xd4>)
  60266. 8019838: f44f 71ef mov.w r1, #478 @ 0x1de
  60267. 801983c: f000 fa98 bl 8019d70 <__assert_func>
  60268. 8019840: 3101 adds r1, #1
  60269. 8019842: 005b lsls r3, r3, #1
  60270. 8019844: e7ee b.n 8019824 <__lshift+0x1c>
  60271. 8019846: 2300 movs r3, #0
  60272. 8019848: f100 0114 add.w r1, r0, #20
  60273. 801984c: f100 0210 add.w r2, r0, #16
  60274. 8019850: 4618 mov r0, r3
  60275. 8019852: 4553 cmp r3, sl
  60276. 8019854: db33 blt.n 80198be <__lshift+0xb6>
  60277. 8019856: 6920 ldr r0, [r4, #16]
  60278. 8019858: ea2a 7aea bic.w sl, sl, sl, asr #31
  60279. 801985c: f104 0314 add.w r3, r4, #20
  60280. 8019860: f019 091f ands.w r9, r9, #31
  60281. 8019864: eb01 018a add.w r1, r1, sl, lsl #2
  60282. 8019868: eb03 0c80 add.w ip, r3, r0, lsl #2
  60283. 801986c: d02b beq.n 80198c6 <__lshift+0xbe>
  60284. 801986e: f1c9 0e20 rsb lr, r9, #32
  60285. 8019872: 468a mov sl, r1
  60286. 8019874: 2200 movs r2, #0
  60287. 8019876: 6818 ldr r0, [r3, #0]
  60288. 8019878: fa00 f009 lsl.w r0, r0, r9
  60289. 801987c: 4310 orrs r0, r2
  60290. 801987e: f84a 0b04 str.w r0, [sl], #4
  60291. 8019882: f853 2b04 ldr.w r2, [r3], #4
  60292. 8019886: 459c cmp ip, r3
  60293. 8019888: fa22 f20e lsr.w r2, r2, lr
  60294. 801988c: d8f3 bhi.n 8019876 <__lshift+0x6e>
  60295. 801988e: ebac 0304 sub.w r3, ip, r4
  60296. 8019892: 3b15 subs r3, #21
  60297. 8019894: f023 0303 bic.w r3, r3, #3
  60298. 8019898: 3304 adds r3, #4
  60299. 801989a: f104 0015 add.w r0, r4, #21
  60300. 801989e: 4584 cmp ip, r0
  60301. 80198a0: bf38 it cc
  60302. 80198a2: 2304 movcc r3, #4
  60303. 80198a4: 50ca str r2, [r1, r3]
  60304. 80198a6: b10a cbz r2, 80198ac <__lshift+0xa4>
  60305. 80198a8: f108 0602 add.w r6, r8, #2
  60306. 80198ac: 3e01 subs r6, #1
  60307. 80198ae: 4638 mov r0, r7
  60308. 80198b0: 612e str r6, [r5, #16]
  60309. 80198b2: 4621 mov r1, r4
  60310. 80198b4: f7ff fdda bl 801946c <_Bfree>
  60311. 80198b8: 4628 mov r0, r5
  60312. 80198ba: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  60313. 80198be: f842 0f04 str.w r0, [r2, #4]!
  60314. 80198c2: 3301 adds r3, #1
  60315. 80198c4: e7c5 b.n 8019852 <__lshift+0x4a>
  60316. 80198c6: 3904 subs r1, #4
  60317. 80198c8: f853 2b04 ldr.w r2, [r3], #4
  60318. 80198cc: f841 2f04 str.w r2, [r1, #4]!
  60319. 80198d0: 459c cmp ip, r3
  60320. 80198d2: d8f9 bhi.n 80198c8 <__lshift+0xc0>
  60321. 80198d4: e7ea b.n 80198ac <__lshift+0xa4>
  60322. 80198d6: bf00 nop
  60323. 80198d8: 0801a378 .word 0x0801a378
  60324. 80198dc: 0801a389 .word 0x0801a389
  60325. 080198e0 <__mcmp>:
  60326. 80198e0: 690a ldr r2, [r1, #16]
  60327. 80198e2: 4603 mov r3, r0
  60328. 80198e4: 6900 ldr r0, [r0, #16]
  60329. 80198e6: 1a80 subs r0, r0, r2
  60330. 80198e8: b530 push {r4, r5, lr}
  60331. 80198ea: d10e bne.n 801990a <__mcmp+0x2a>
  60332. 80198ec: 3314 adds r3, #20
  60333. 80198ee: 3114 adds r1, #20
  60334. 80198f0: eb03 0482 add.w r4, r3, r2, lsl #2
  60335. 80198f4: eb01 0182 add.w r1, r1, r2, lsl #2
  60336. 80198f8: f854 5d04 ldr.w r5, [r4, #-4]!
  60337. 80198fc: f851 2d04 ldr.w r2, [r1, #-4]!
  60338. 8019900: 4295 cmp r5, r2
  60339. 8019902: d003 beq.n 801990c <__mcmp+0x2c>
  60340. 8019904: d205 bcs.n 8019912 <__mcmp+0x32>
  60341. 8019906: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  60342. 801990a: bd30 pop {r4, r5, pc}
  60343. 801990c: 42a3 cmp r3, r4
  60344. 801990e: d3f3 bcc.n 80198f8 <__mcmp+0x18>
  60345. 8019910: e7fb b.n 801990a <__mcmp+0x2a>
  60346. 8019912: 2001 movs r0, #1
  60347. 8019914: e7f9 b.n 801990a <__mcmp+0x2a>
  60348. ...
  60349. 08019918 <__mdiff>:
  60350. 8019918: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  60351. 801991c: 4689 mov r9, r1
  60352. 801991e: 4606 mov r6, r0
  60353. 8019920: 4611 mov r1, r2
  60354. 8019922: 4648 mov r0, r9
  60355. 8019924: 4614 mov r4, r2
  60356. 8019926: f7ff ffdb bl 80198e0 <__mcmp>
  60357. 801992a: 1e05 subs r5, r0, #0
  60358. 801992c: d112 bne.n 8019954 <__mdiff+0x3c>
  60359. 801992e: 4629 mov r1, r5
  60360. 8019930: 4630 mov r0, r6
  60361. 8019932: f7ff fd5b bl 80193ec <_Balloc>
  60362. 8019936: 4602 mov r2, r0
  60363. 8019938: b928 cbnz r0, 8019946 <__mdiff+0x2e>
  60364. 801993a: 4b3f ldr r3, [pc, #252] @ (8019a38 <__mdiff+0x120>)
  60365. 801993c: f240 2137 movw r1, #567 @ 0x237
  60366. 8019940: 483e ldr r0, [pc, #248] @ (8019a3c <__mdiff+0x124>)
  60367. 8019942: f000 fa15 bl 8019d70 <__assert_func>
  60368. 8019946: 2301 movs r3, #1
  60369. 8019948: e9c0 3504 strd r3, r5, [r0, #16]
  60370. 801994c: 4610 mov r0, r2
  60371. 801994e: b003 add sp, #12
  60372. 8019950: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  60373. 8019954: bfbc itt lt
  60374. 8019956: 464b movlt r3, r9
  60375. 8019958: 46a1 movlt r9, r4
  60376. 801995a: 4630 mov r0, r6
  60377. 801995c: f8d9 1004 ldr.w r1, [r9, #4]
  60378. 8019960: bfba itte lt
  60379. 8019962: 461c movlt r4, r3
  60380. 8019964: 2501 movlt r5, #1
  60381. 8019966: 2500 movge r5, #0
  60382. 8019968: f7ff fd40 bl 80193ec <_Balloc>
  60383. 801996c: 4602 mov r2, r0
  60384. 801996e: b918 cbnz r0, 8019978 <__mdiff+0x60>
  60385. 8019970: 4b31 ldr r3, [pc, #196] @ (8019a38 <__mdiff+0x120>)
  60386. 8019972: f240 2145 movw r1, #581 @ 0x245
  60387. 8019976: e7e3 b.n 8019940 <__mdiff+0x28>
  60388. 8019978: f8d9 7010 ldr.w r7, [r9, #16]
  60389. 801997c: 6926 ldr r6, [r4, #16]
  60390. 801997e: 60c5 str r5, [r0, #12]
  60391. 8019980: f109 0310 add.w r3, r9, #16
  60392. 8019984: f109 0514 add.w r5, r9, #20
  60393. 8019988: f104 0e14 add.w lr, r4, #20
  60394. 801998c: f100 0b14 add.w fp, r0, #20
  60395. 8019990: eb05 0887 add.w r8, r5, r7, lsl #2
  60396. 8019994: eb0e 0686 add.w r6, lr, r6, lsl #2
  60397. 8019998: 9301 str r3, [sp, #4]
  60398. 801999a: 46d9 mov r9, fp
  60399. 801999c: f04f 0c00 mov.w ip, #0
  60400. 80199a0: 9b01 ldr r3, [sp, #4]
  60401. 80199a2: f85e 0b04 ldr.w r0, [lr], #4
  60402. 80199a6: f853 af04 ldr.w sl, [r3, #4]!
  60403. 80199aa: 9301 str r3, [sp, #4]
  60404. 80199ac: fa1f f38a uxth.w r3, sl
  60405. 80199b0: 4619 mov r1, r3
  60406. 80199b2: b283 uxth r3, r0
  60407. 80199b4: 1acb subs r3, r1, r3
  60408. 80199b6: 0c00 lsrs r0, r0, #16
  60409. 80199b8: 4463 add r3, ip
  60410. 80199ba: ebc0 401a rsb r0, r0, sl, lsr #16
  60411. 80199be: eb00 4023 add.w r0, r0, r3, asr #16
  60412. 80199c2: b29b uxth r3, r3
  60413. 80199c4: ea43 4300 orr.w r3, r3, r0, lsl #16
  60414. 80199c8: 4576 cmp r6, lr
  60415. 80199ca: f849 3b04 str.w r3, [r9], #4
  60416. 80199ce: ea4f 4c20 mov.w ip, r0, asr #16
  60417. 80199d2: d8e5 bhi.n 80199a0 <__mdiff+0x88>
  60418. 80199d4: 1b33 subs r3, r6, r4
  60419. 80199d6: 3b15 subs r3, #21
  60420. 80199d8: f023 0303 bic.w r3, r3, #3
  60421. 80199dc: 3415 adds r4, #21
  60422. 80199de: 3304 adds r3, #4
  60423. 80199e0: 42a6 cmp r6, r4
  60424. 80199e2: bf38 it cc
  60425. 80199e4: 2304 movcc r3, #4
  60426. 80199e6: 441d add r5, r3
  60427. 80199e8: 445b add r3, fp
  60428. 80199ea: 461e mov r6, r3
  60429. 80199ec: 462c mov r4, r5
  60430. 80199ee: 4544 cmp r4, r8
  60431. 80199f0: d30e bcc.n 8019a10 <__mdiff+0xf8>
  60432. 80199f2: f108 0103 add.w r1, r8, #3
  60433. 80199f6: 1b49 subs r1, r1, r5
  60434. 80199f8: f021 0103 bic.w r1, r1, #3
  60435. 80199fc: 3d03 subs r5, #3
  60436. 80199fe: 45a8 cmp r8, r5
  60437. 8019a00: bf38 it cc
  60438. 8019a02: 2100 movcc r1, #0
  60439. 8019a04: 440b add r3, r1
  60440. 8019a06: f853 1d04 ldr.w r1, [r3, #-4]!
  60441. 8019a0a: b191 cbz r1, 8019a32 <__mdiff+0x11a>
  60442. 8019a0c: 6117 str r7, [r2, #16]
  60443. 8019a0e: e79d b.n 801994c <__mdiff+0x34>
  60444. 8019a10: f854 1b04 ldr.w r1, [r4], #4
  60445. 8019a14: 46e6 mov lr, ip
  60446. 8019a16: 0c08 lsrs r0, r1, #16
  60447. 8019a18: fa1c fc81 uxtah ip, ip, r1
  60448. 8019a1c: 4471 add r1, lr
  60449. 8019a1e: eb00 402c add.w r0, r0, ip, asr #16
  60450. 8019a22: b289 uxth r1, r1
  60451. 8019a24: ea41 4100 orr.w r1, r1, r0, lsl #16
  60452. 8019a28: f846 1b04 str.w r1, [r6], #4
  60453. 8019a2c: ea4f 4c20 mov.w ip, r0, asr #16
  60454. 8019a30: e7dd b.n 80199ee <__mdiff+0xd6>
  60455. 8019a32: 3f01 subs r7, #1
  60456. 8019a34: e7e7 b.n 8019a06 <__mdiff+0xee>
  60457. 8019a36: bf00 nop
  60458. 8019a38: 0801a378 .word 0x0801a378
  60459. 8019a3c: 0801a389 .word 0x0801a389
  60460. 08019a40 <__d2b>:
  60461. 8019a40: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
  60462. 8019a44: 460f mov r7, r1
  60463. 8019a46: 2101 movs r1, #1
  60464. 8019a48: ec59 8b10 vmov r8, r9, d0
  60465. 8019a4c: 4616 mov r6, r2
  60466. 8019a4e: f7ff fccd bl 80193ec <_Balloc>
  60467. 8019a52: 4604 mov r4, r0
  60468. 8019a54: b930 cbnz r0, 8019a64 <__d2b+0x24>
  60469. 8019a56: 4602 mov r2, r0
  60470. 8019a58: 4b23 ldr r3, [pc, #140] @ (8019ae8 <__d2b+0xa8>)
  60471. 8019a5a: 4824 ldr r0, [pc, #144] @ (8019aec <__d2b+0xac>)
  60472. 8019a5c: f240 310f movw r1, #783 @ 0x30f
  60473. 8019a60: f000 f986 bl 8019d70 <__assert_func>
  60474. 8019a64: f3c9 550a ubfx r5, r9, #20, #11
  60475. 8019a68: f3c9 0313 ubfx r3, r9, #0, #20
  60476. 8019a6c: b10d cbz r5, 8019a72 <__d2b+0x32>
  60477. 8019a6e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
  60478. 8019a72: 9301 str r3, [sp, #4]
  60479. 8019a74: f1b8 0300 subs.w r3, r8, #0
  60480. 8019a78: d023 beq.n 8019ac2 <__d2b+0x82>
  60481. 8019a7a: 4668 mov r0, sp
  60482. 8019a7c: 9300 str r3, [sp, #0]
  60483. 8019a7e: f7ff fd7c bl 801957a <__lo0bits>
  60484. 8019a82: e9dd 1200 ldrd r1, r2, [sp]
  60485. 8019a86: b1d0 cbz r0, 8019abe <__d2b+0x7e>
  60486. 8019a88: f1c0 0320 rsb r3, r0, #32
  60487. 8019a8c: fa02 f303 lsl.w r3, r2, r3
  60488. 8019a90: 430b orrs r3, r1
  60489. 8019a92: 40c2 lsrs r2, r0
  60490. 8019a94: 6163 str r3, [r4, #20]
  60491. 8019a96: 9201 str r2, [sp, #4]
  60492. 8019a98: 9b01 ldr r3, [sp, #4]
  60493. 8019a9a: 61a3 str r3, [r4, #24]
  60494. 8019a9c: 2b00 cmp r3, #0
  60495. 8019a9e: bf0c ite eq
  60496. 8019aa0: 2201 moveq r2, #1
  60497. 8019aa2: 2202 movne r2, #2
  60498. 8019aa4: 6122 str r2, [r4, #16]
  60499. 8019aa6: b1a5 cbz r5, 8019ad2 <__d2b+0x92>
  60500. 8019aa8: f2a5 4533 subw r5, r5, #1075 @ 0x433
  60501. 8019aac: 4405 add r5, r0
  60502. 8019aae: 603d str r5, [r7, #0]
  60503. 8019ab0: f1c0 0035 rsb r0, r0, #53 @ 0x35
  60504. 8019ab4: 6030 str r0, [r6, #0]
  60505. 8019ab6: 4620 mov r0, r4
  60506. 8019ab8: b003 add sp, #12
  60507. 8019aba: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
  60508. 8019abe: 6161 str r1, [r4, #20]
  60509. 8019ac0: e7ea b.n 8019a98 <__d2b+0x58>
  60510. 8019ac2: a801 add r0, sp, #4
  60511. 8019ac4: f7ff fd59 bl 801957a <__lo0bits>
  60512. 8019ac8: 9b01 ldr r3, [sp, #4]
  60513. 8019aca: 6163 str r3, [r4, #20]
  60514. 8019acc: 3020 adds r0, #32
  60515. 8019ace: 2201 movs r2, #1
  60516. 8019ad0: e7e8 b.n 8019aa4 <__d2b+0x64>
  60517. 8019ad2: eb04 0382 add.w r3, r4, r2, lsl #2
  60518. 8019ad6: f2a0 4032 subw r0, r0, #1074 @ 0x432
  60519. 8019ada: 6038 str r0, [r7, #0]
  60520. 8019adc: 6918 ldr r0, [r3, #16]
  60521. 8019ade: f7ff fd2d bl 801953c <__hi0bits>
  60522. 8019ae2: ebc0 1042 rsb r0, r0, r2, lsl #5
  60523. 8019ae6: e7e5 b.n 8019ab4 <__d2b+0x74>
  60524. 8019ae8: 0801a378 .word 0x0801a378
  60525. 8019aec: 0801a389 .word 0x0801a389
  60526. 08019af0 <__sflush_r>:
  60527. 8019af0: f9b1 200c ldrsh.w r2, [r1, #12]
  60528. 8019af4: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  60529. 8019af8: 0716 lsls r6, r2, #28
  60530. 8019afa: 4605 mov r5, r0
  60531. 8019afc: 460c mov r4, r1
  60532. 8019afe: d454 bmi.n 8019baa <__sflush_r+0xba>
  60533. 8019b00: 684b ldr r3, [r1, #4]
  60534. 8019b02: 2b00 cmp r3, #0
  60535. 8019b04: dc02 bgt.n 8019b0c <__sflush_r+0x1c>
  60536. 8019b06: 6c0b ldr r3, [r1, #64] @ 0x40
  60537. 8019b08: 2b00 cmp r3, #0
  60538. 8019b0a: dd48 ble.n 8019b9e <__sflush_r+0xae>
  60539. 8019b0c: 6ae6 ldr r6, [r4, #44] @ 0x2c
  60540. 8019b0e: 2e00 cmp r6, #0
  60541. 8019b10: d045 beq.n 8019b9e <__sflush_r+0xae>
  60542. 8019b12: 2300 movs r3, #0
  60543. 8019b14: f412 5280 ands.w r2, r2, #4096 @ 0x1000
  60544. 8019b18: 682f ldr r7, [r5, #0]
  60545. 8019b1a: 6a21 ldr r1, [r4, #32]
  60546. 8019b1c: 602b str r3, [r5, #0]
  60547. 8019b1e: d030 beq.n 8019b82 <__sflush_r+0x92>
  60548. 8019b20: 6d62 ldr r2, [r4, #84] @ 0x54
  60549. 8019b22: 89a3 ldrh r3, [r4, #12]
  60550. 8019b24: 0759 lsls r1, r3, #29
  60551. 8019b26: d505 bpl.n 8019b34 <__sflush_r+0x44>
  60552. 8019b28: 6863 ldr r3, [r4, #4]
  60553. 8019b2a: 1ad2 subs r2, r2, r3
  60554. 8019b2c: 6b63 ldr r3, [r4, #52] @ 0x34
  60555. 8019b2e: b10b cbz r3, 8019b34 <__sflush_r+0x44>
  60556. 8019b30: 6c23 ldr r3, [r4, #64] @ 0x40
  60557. 8019b32: 1ad2 subs r2, r2, r3
  60558. 8019b34: 2300 movs r3, #0
  60559. 8019b36: 6ae6 ldr r6, [r4, #44] @ 0x2c
  60560. 8019b38: 6a21 ldr r1, [r4, #32]
  60561. 8019b3a: 4628 mov r0, r5
  60562. 8019b3c: 47b0 blx r6
  60563. 8019b3e: 1c43 adds r3, r0, #1
  60564. 8019b40: 89a3 ldrh r3, [r4, #12]
  60565. 8019b42: d106 bne.n 8019b52 <__sflush_r+0x62>
  60566. 8019b44: 6829 ldr r1, [r5, #0]
  60567. 8019b46: 291d cmp r1, #29
  60568. 8019b48: d82b bhi.n 8019ba2 <__sflush_r+0xb2>
  60569. 8019b4a: 4a2a ldr r2, [pc, #168] @ (8019bf4 <__sflush_r+0x104>)
  60570. 8019b4c: 410a asrs r2, r1
  60571. 8019b4e: 07d6 lsls r6, r2, #31
  60572. 8019b50: d427 bmi.n 8019ba2 <__sflush_r+0xb2>
  60573. 8019b52: 2200 movs r2, #0
  60574. 8019b54: 6062 str r2, [r4, #4]
  60575. 8019b56: 04d9 lsls r1, r3, #19
  60576. 8019b58: 6922 ldr r2, [r4, #16]
  60577. 8019b5a: 6022 str r2, [r4, #0]
  60578. 8019b5c: d504 bpl.n 8019b68 <__sflush_r+0x78>
  60579. 8019b5e: 1c42 adds r2, r0, #1
  60580. 8019b60: d101 bne.n 8019b66 <__sflush_r+0x76>
  60581. 8019b62: 682b ldr r3, [r5, #0]
  60582. 8019b64: b903 cbnz r3, 8019b68 <__sflush_r+0x78>
  60583. 8019b66: 6560 str r0, [r4, #84] @ 0x54
  60584. 8019b68: 6b61 ldr r1, [r4, #52] @ 0x34
  60585. 8019b6a: 602f str r7, [r5, #0]
  60586. 8019b6c: b1b9 cbz r1, 8019b9e <__sflush_r+0xae>
  60587. 8019b6e: f104 0344 add.w r3, r4, #68 @ 0x44
  60588. 8019b72: 4299 cmp r1, r3
  60589. 8019b74: d002 beq.n 8019b7c <__sflush_r+0x8c>
  60590. 8019b76: 4628 mov r0, r5
  60591. 8019b78: f7ff fb38 bl 80191ec <_free_r>
  60592. 8019b7c: 2300 movs r3, #0
  60593. 8019b7e: 6363 str r3, [r4, #52] @ 0x34
  60594. 8019b80: e00d b.n 8019b9e <__sflush_r+0xae>
  60595. 8019b82: 2301 movs r3, #1
  60596. 8019b84: 4628 mov r0, r5
  60597. 8019b86: 47b0 blx r6
  60598. 8019b88: 4602 mov r2, r0
  60599. 8019b8a: 1c50 adds r0, r2, #1
  60600. 8019b8c: d1c9 bne.n 8019b22 <__sflush_r+0x32>
  60601. 8019b8e: 682b ldr r3, [r5, #0]
  60602. 8019b90: 2b00 cmp r3, #0
  60603. 8019b92: d0c6 beq.n 8019b22 <__sflush_r+0x32>
  60604. 8019b94: 2b1d cmp r3, #29
  60605. 8019b96: d001 beq.n 8019b9c <__sflush_r+0xac>
  60606. 8019b98: 2b16 cmp r3, #22
  60607. 8019b9a: d11e bne.n 8019bda <__sflush_r+0xea>
  60608. 8019b9c: 602f str r7, [r5, #0]
  60609. 8019b9e: 2000 movs r0, #0
  60610. 8019ba0: e022 b.n 8019be8 <__sflush_r+0xf8>
  60611. 8019ba2: f043 0340 orr.w r3, r3, #64 @ 0x40
  60612. 8019ba6: b21b sxth r3, r3
  60613. 8019ba8: e01b b.n 8019be2 <__sflush_r+0xf2>
  60614. 8019baa: 690f ldr r7, [r1, #16]
  60615. 8019bac: 2f00 cmp r7, #0
  60616. 8019bae: d0f6 beq.n 8019b9e <__sflush_r+0xae>
  60617. 8019bb0: 0793 lsls r3, r2, #30
  60618. 8019bb2: 680e ldr r6, [r1, #0]
  60619. 8019bb4: bf08 it eq
  60620. 8019bb6: 694b ldreq r3, [r1, #20]
  60621. 8019bb8: 600f str r7, [r1, #0]
  60622. 8019bba: bf18 it ne
  60623. 8019bbc: 2300 movne r3, #0
  60624. 8019bbe: eba6 0807 sub.w r8, r6, r7
  60625. 8019bc2: 608b str r3, [r1, #8]
  60626. 8019bc4: f1b8 0f00 cmp.w r8, #0
  60627. 8019bc8: dde9 ble.n 8019b9e <__sflush_r+0xae>
  60628. 8019bca: 6a21 ldr r1, [r4, #32]
  60629. 8019bcc: 6aa6 ldr r6, [r4, #40] @ 0x28
  60630. 8019bce: 4643 mov r3, r8
  60631. 8019bd0: 463a mov r2, r7
  60632. 8019bd2: 4628 mov r0, r5
  60633. 8019bd4: 47b0 blx r6
  60634. 8019bd6: 2800 cmp r0, #0
  60635. 8019bd8: dc08 bgt.n 8019bec <__sflush_r+0xfc>
  60636. 8019bda: f9b4 300c ldrsh.w r3, [r4, #12]
  60637. 8019bde: f043 0340 orr.w r3, r3, #64 @ 0x40
  60638. 8019be2: 81a3 strh r3, [r4, #12]
  60639. 8019be4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  60640. 8019be8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  60641. 8019bec: 4407 add r7, r0
  60642. 8019bee: eba8 0800 sub.w r8, r8, r0
  60643. 8019bf2: e7e7 b.n 8019bc4 <__sflush_r+0xd4>
  60644. 8019bf4: dfbffffe .word 0xdfbffffe
  60645. 08019bf8 <_fflush_r>:
  60646. 8019bf8: b538 push {r3, r4, r5, lr}
  60647. 8019bfa: 690b ldr r3, [r1, #16]
  60648. 8019bfc: 4605 mov r5, r0
  60649. 8019bfe: 460c mov r4, r1
  60650. 8019c00: b913 cbnz r3, 8019c08 <_fflush_r+0x10>
  60651. 8019c02: 2500 movs r5, #0
  60652. 8019c04: 4628 mov r0, r5
  60653. 8019c06: bd38 pop {r3, r4, r5, pc}
  60654. 8019c08: b118 cbz r0, 8019c12 <_fflush_r+0x1a>
  60655. 8019c0a: 6a03 ldr r3, [r0, #32]
  60656. 8019c0c: b90b cbnz r3, 8019c12 <_fflush_r+0x1a>
  60657. 8019c0e: f7fe fabf bl 8018190 <__sinit>
  60658. 8019c12: f9b4 300c ldrsh.w r3, [r4, #12]
  60659. 8019c16: 2b00 cmp r3, #0
  60660. 8019c18: d0f3 beq.n 8019c02 <_fflush_r+0xa>
  60661. 8019c1a: 6e62 ldr r2, [r4, #100] @ 0x64
  60662. 8019c1c: 07d0 lsls r0, r2, #31
  60663. 8019c1e: d404 bmi.n 8019c2a <_fflush_r+0x32>
  60664. 8019c20: 0599 lsls r1, r3, #22
  60665. 8019c22: d402 bmi.n 8019c2a <_fflush_r+0x32>
  60666. 8019c24: 6da0 ldr r0, [r4, #88] @ 0x58
  60667. 8019c26: f7fe fcf2 bl 801860e <__retarget_lock_acquire_recursive>
  60668. 8019c2a: 4628 mov r0, r5
  60669. 8019c2c: 4621 mov r1, r4
  60670. 8019c2e: f7ff ff5f bl 8019af0 <__sflush_r>
  60671. 8019c32: 6e63 ldr r3, [r4, #100] @ 0x64
  60672. 8019c34: 07da lsls r2, r3, #31
  60673. 8019c36: 4605 mov r5, r0
  60674. 8019c38: d4e4 bmi.n 8019c04 <_fflush_r+0xc>
  60675. 8019c3a: 89a3 ldrh r3, [r4, #12]
  60676. 8019c3c: 059b lsls r3, r3, #22
  60677. 8019c3e: d4e1 bmi.n 8019c04 <_fflush_r+0xc>
  60678. 8019c40: 6da0 ldr r0, [r4, #88] @ 0x58
  60679. 8019c42: f7fe fce5 bl 8018610 <__retarget_lock_release_recursive>
  60680. 8019c46: e7dd b.n 8019c04 <_fflush_r+0xc>
  60681. 08019c48 <__swhatbuf_r>:
  60682. 8019c48: b570 push {r4, r5, r6, lr}
  60683. 8019c4a: 460c mov r4, r1
  60684. 8019c4c: f9b1 100e ldrsh.w r1, [r1, #14]
  60685. 8019c50: 2900 cmp r1, #0
  60686. 8019c52: b096 sub sp, #88 @ 0x58
  60687. 8019c54: 4615 mov r5, r2
  60688. 8019c56: 461e mov r6, r3
  60689. 8019c58: da0d bge.n 8019c76 <__swhatbuf_r+0x2e>
  60690. 8019c5a: 89a3 ldrh r3, [r4, #12]
  60691. 8019c5c: f013 0f80 tst.w r3, #128 @ 0x80
  60692. 8019c60: f04f 0100 mov.w r1, #0
  60693. 8019c64: bf14 ite ne
  60694. 8019c66: 2340 movne r3, #64 @ 0x40
  60695. 8019c68: f44f 6380 moveq.w r3, #1024 @ 0x400
  60696. 8019c6c: 2000 movs r0, #0
  60697. 8019c6e: 6031 str r1, [r6, #0]
  60698. 8019c70: 602b str r3, [r5, #0]
  60699. 8019c72: b016 add sp, #88 @ 0x58
  60700. 8019c74: bd70 pop {r4, r5, r6, pc}
  60701. 8019c76: 466a mov r2, sp
  60702. 8019c78: f000 f848 bl 8019d0c <_fstat_r>
  60703. 8019c7c: 2800 cmp r0, #0
  60704. 8019c7e: dbec blt.n 8019c5a <__swhatbuf_r+0x12>
  60705. 8019c80: 9901 ldr r1, [sp, #4]
  60706. 8019c82: f401 4170 and.w r1, r1, #61440 @ 0xf000
  60707. 8019c86: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
  60708. 8019c8a: 4259 negs r1, r3
  60709. 8019c8c: 4159 adcs r1, r3
  60710. 8019c8e: f44f 6380 mov.w r3, #1024 @ 0x400
  60711. 8019c92: e7eb b.n 8019c6c <__swhatbuf_r+0x24>
  60712. 08019c94 <__smakebuf_r>:
  60713. 8019c94: 898b ldrh r3, [r1, #12]
  60714. 8019c96: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  60715. 8019c98: 079d lsls r5, r3, #30
  60716. 8019c9a: 4606 mov r6, r0
  60717. 8019c9c: 460c mov r4, r1
  60718. 8019c9e: d507 bpl.n 8019cb0 <__smakebuf_r+0x1c>
  60719. 8019ca0: f104 0347 add.w r3, r4, #71 @ 0x47
  60720. 8019ca4: 6023 str r3, [r4, #0]
  60721. 8019ca6: 6123 str r3, [r4, #16]
  60722. 8019ca8: 2301 movs r3, #1
  60723. 8019caa: 6163 str r3, [r4, #20]
  60724. 8019cac: b003 add sp, #12
  60725. 8019cae: bdf0 pop {r4, r5, r6, r7, pc}
  60726. 8019cb0: ab01 add r3, sp, #4
  60727. 8019cb2: 466a mov r2, sp
  60728. 8019cb4: f7ff ffc8 bl 8019c48 <__swhatbuf_r>
  60729. 8019cb8: 9f00 ldr r7, [sp, #0]
  60730. 8019cba: 4605 mov r5, r0
  60731. 8019cbc: 4639 mov r1, r7
  60732. 8019cbe: 4630 mov r0, r6
  60733. 8019cc0: f7ff fb08 bl 80192d4 <_malloc_r>
  60734. 8019cc4: b948 cbnz r0, 8019cda <__smakebuf_r+0x46>
  60735. 8019cc6: f9b4 300c ldrsh.w r3, [r4, #12]
  60736. 8019cca: 059a lsls r2, r3, #22
  60737. 8019ccc: d4ee bmi.n 8019cac <__smakebuf_r+0x18>
  60738. 8019cce: f023 0303 bic.w r3, r3, #3
  60739. 8019cd2: f043 0302 orr.w r3, r3, #2
  60740. 8019cd6: 81a3 strh r3, [r4, #12]
  60741. 8019cd8: e7e2 b.n 8019ca0 <__smakebuf_r+0xc>
  60742. 8019cda: 89a3 ldrh r3, [r4, #12]
  60743. 8019cdc: 6020 str r0, [r4, #0]
  60744. 8019cde: f043 0380 orr.w r3, r3, #128 @ 0x80
  60745. 8019ce2: 81a3 strh r3, [r4, #12]
  60746. 8019ce4: 9b01 ldr r3, [sp, #4]
  60747. 8019ce6: e9c4 0704 strd r0, r7, [r4, #16]
  60748. 8019cea: b15b cbz r3, 8019d04 <__smakebuf_r+0x70>
  60749. 8019cec: f9b4 100e ldrsh.w r1, [r4, #14]
  60750. 8019cf0: 4630 mov r0, r6
  60751. 8019cf2: f000 f81d bl 8019d30 <_isatty_r>
  60752. 8019cf6: b128 cbz r0, 8019d04 <__smakebuf_r+0x70>
  60753. 8019cf8: 89a3 ldrh r3, [r4, #12]
  60754. 8019cfa: f023 0303 bic.w r3, r3, #3
  60755. 8019cfe: f043 0301 orr.w r3, r3, #1
  60756. 8019d02: 81a3 strh r3, [r4, #12]
  60757. 8019d04: 89a3 ldrh r3, [r4, #12]
  60758. 8019d06: 431d orrs r5, r3
  60759. 8019d08: 81a5 strh r5, [r4, #12]
  60760. 8019d0a: e7cf b.n 8019cac <__smakebuf_r+0x18>
  60761. 08019d0c <_fstat_r>:
  60762. 8019d0c: b538 push {r3, r4, r5, lr}
  60763. 8019d0e: 4d07 ldr r5, [pc, #28] @ (8019d2c <_fstat_r+0x20>)
  60764. 8019d10: 2300 movs r3, #0
  60765. 8019d12: 4604 mov r4, r0
  60766. 8019d14: 4608 mov r0, r1
  60767. 8019d16: 4611 mov r1, r2
  60768. 8019d18: 602b str r3, [r5, #0]
  60769. 8019d1a: f7ea fb19 bl 8004350 <_fstat>
  60770. 8019d1e: 1c43 adds r3, r0, #1
  60771. 8019d20: d102 bne.n 8019d28 <_fstat_r+0x1c>
  60772. 8019d22: 682b ldr r3, [r5, #0]
  60773. 8019d24: b103 cbz r3, 8019d28 <_fstat_r+0x1c>
  60774. 8019d26: 6023 str r3, [r4, #0]
  60775. 8019d28: bd38 pop {r3, r4, r5, pc}
  60776. 8019d2a: bf00 nop
  60777. 8019d2c: 240132e4 .word 0x240132e4
  60778. 08019d30 <_isatty_r>:
  60779. 8019d30: b538 push {r3, r4, r5, lr}
  60780. 8019d32: 4d06 ldr r5, [pc, #24] @ (8019d4c <_isatty_r+0x1c>)
  60781. 8019d34: 2300 movs r3, #0
  60782. 8019d36: 4604 mov r4, r0
  60783. 8019d38: 4608 mov r0, r1
  60784. 8019d3a: 602b str r3, [r5, #0]
  60785. 8019d3c: f7ea fb18 bl 8004370 <_isatty>
  60786. 8019d40: 1c43 adds r3, r0, #1
  60787. 8019d42: d102 bne.n 8019d4a <_isatty_r+0x1a>
  60788. 8019d44: 682b ldr r3, [r5, #0]
  60789. 8019d46: b103 cbz r3, 8019d4a <_isatty_r+0x1a>
  60790. 8019d48: 6023 str r3, [r4, #0]
  60791. 8019d4a: bd38 pop {r3, r4, r5, pc}
  60792. 8019d4c: 240132e4 .word 0x240132e4
  60793. 08019d50 <_sbrk_r>:
  60794. 8019d50: b538 push {r3, r4, r5, lr}
  60795. 8019d52: 4d06 ldr r5, [pc, #24] @ (8019d6c <_sbrk_r+0x1c>)
  60796. 8019d54: 2300 movs r3, #0
  60797. 8019d56: 4604 mov r4, r0
  60798. 8019d58: 4608 mov r0, r1
  60799. 8019d5a: 602b str r3, [r5, #0]
  60800. 8019d5c: f7ea fb20 bl 80043a0 <_sbrk>
  60801. 8019d60: 1c43 adds r3, r0, #1
  60802. 8019d62: d102 bne.n 8019d6a <_sbrk_r+0x1a>
  60803. 8019d64: 682b ldr r3, [r5, #0]
  60804. 8019d66: b103 cbz r3, 8019d6a <_sbrk_r+0x1a>
  60805. 8019d68: 6023 str r3, [r4, #0]
  60806. 8019d6a: bd38 pop {r3, r4, r5, pc}
  60807. 8019d6c: 240132e4 .word 0x240132e4
  60808. 08019d70 <__assert_func>:
  60809. 8019d70: b51f push {r0, r1, r2, r3, r4, lr}
  60810. 8019d72: 4614 mov r4, r2
  60811. 8019d74: 461a mov r2, r3
  60812. 8019d76: 4b09 ldr r3, [pc, #36] @ (8019d9c <__assert_func+0x2c>)
  60813. 8019d78: 681b ldr r3, [r3, #0]
  60814. 8019d7a: 4605 mov r5, r0
  60815. 8019d7c: 68d8 ldr r0, [r3, #12]
  60816. 8019d7e: b954 cbnz r4, 8019d96 <__assert_func+0x26>
  60817. 8019d80: 4b07 ldr r3, [pc, #28] @ (8019da0 <__assert_func+0x30>)
  60818. 8019d82: 461c mov r4, r3
  60819. 8019d84: e9cd 3401 strd r3, r4, [sp, #4]
  60820. 8019d88: 9100 str r1, [sp, #0]
  60821. 8019d8a: 462b mov r3, r5
  60822. 8019d8c: 4905 ldr r1, [pc, #20] @ (8019da4 <__assert_func+0x34>)
  60823. 8019d8e: f000 f841 bl 8019e14 <fiprintf>
  60824. 8019d92: f000 f851 bl 8019e38 <abort>
  60825. 8019d96: 4b04 ldr r3, [pc, #16] @ (8019da8 <__assert_func+0x38>)
  60826. 8019d98: e7f4 b.n 8019d84 <__assert_func+0x14>
  60827. 8019d9a: bf00 nop
  60828. 8019d9c: 24000054 .word 0x24000054
  60829. 8019da0: 0801a525 .word 0x0801a525
  60830. 8019da4: 0801a4f7 .word 0x0801a4f7
  60831. 8019da8: 0801a4ea .word 0x0801a4ea
  60832. 08019dac <_calloc_r>:
  60833. 8019dac: b570 push {r4, r5, r6, lr}
  60834. 8019dae: fba1 5402 umull r5, r4, r1, r2
  60835. 8019db2: b93c cbnz r4, 8019dc4 <_calloc_r+0x18>
  60836. 8019db4: 4629 mov r1, r5
  60837. 8019db6: f7ff fa8d bl 80192d4 <_malloc_r>
  60838. 8019dba: 4606 mov r6, r0
  60839. 8019dbc: b928 cbnz r0, 8019dca <_calloc_r+0x1e>
  60840. 8019dbe: 2600 movs r6, #0
  60841. 8019dc0: 4630 mov r0, r6
  60842. 8019dc2: bd70 pop {r4, r5, r6, pc}
  60843. 8019dc4: 220c movs r2, #12
  60844. 8019dc6: 6002 str r2, [r0, #0]
  60845. 8019dc8: e7f9 b.n 8019dbe <_calloc_r+0x12>
  60846. 8019dca: 462a mov r2, r5
  60847. 8019dcc: 4621 mov r1, r4
  60848. 8019dce: f7fe fb4b bl 8018468 <memset>
  60849. 8019dd2: e7f5 b.n 8019dc0 <_calloc_r+0x14>
  60850. 08019dd4 <__ascii_mbtowc>:
  60851. 8019dd4: b082 sub sp, #8
  60852. 8019dd6: b901 cbnz r1, 8019dda <__ascii_mbtowc+0x6>
  60853. 8019dd8: a901 add r1, sp, #4
  60854. 8019dda: b142 cbz r2, 8019dee <__ascii_mbtowc+0x1a>
  60855. 8019ddc: b14b cbz r3, 8019df2 <__ascii_mbtowc+0x1e>
  60856. 8019dde: 7813 ldrb r3, [r2, #0]
  60857. 8019de0: 600b str r3, [r1, #0]
  60858. 8019de2: 7812 ldrb r2, [r2, #0]
  60859. 8019de4: 1e10 subs r0, r2, #0
  60860. 8019de6: bf18 it ne
  60861. 8019de8: 2001 movne r0, #1
  60862. 8019dea: b002 add sp, #8
  60863. 8019dec: 4770 bx lr
  60864. 8019dee: 4610 mov r0, r2
  60865. 8019df0: e7fb b.n 8019dea <__ascii_mbtowc+0x16>
  60866. 8019df2: f06f 0001 mvn.w r0, #1
  60867. 8019df6: e7f8 b.n 8019dea <__ascii_mbtowc+0x16>
  60868. 08019df8 <__ascii_wctomb>:
  60869. 8019df8: 4603 mov r3, r0
  60870. 8019dfa: 4608 mov r0, r1
  60871. 8019dfc: b141 cbz r1, 8019e10 <__ascii_wctomb+0x18>
  60872. 8019dfe: 2aff cmp r2, #255 @ 0xff
  60873. 8019e00: d904 bls.n 8019e0c <__ascii_wctomb+0x14>
  60874. 8019e02: 228a movs r2, #138 @ 0x8a
  60875. 8019e04: 601a str r2, [r3, #0]
  60876. 8019e06: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  60877. 8019e0a: 4770 bx lr
  60878. 8019e0c: 700a strb r2, [r1, #0]
  60879. 8019e0e: 2001 movs r0, #1
  60880. 8019e10: 4770 bx lr
  60881. ...
  60882. 08019e14 <fiprintf>:
  60883. 8019e14: b40e push {r1, r2, r3}
  60884. 8019e16: b503 push {r0, r1, lr}
  60885. 8019e18: 4601 mov r1, r0
  60886. 8019e1a: ab03 add r3, sp, #12
  60887. 8019e1c: 4805 ldr r0, [pc, #20] @ (8019e34 <fiprintf+0x20>)
  60888. 8019e1e: f853 2b04 ldr.w r2, [r3], #4
  60889. 8019e22: 6800 ldr r0, [r0, #0]
  60890. 8019e24: 9301 str r3, [sp, #4]
  60891. 8019e26: f000 f837 bl 8019e98 <_vfiprintf_r>
  60892. 8019e2a: b002 add sp, #8
  60893. 8019e2c: f85d eb04 ldr.w lr, [sp], #4
  60894. 8019e30: b003 add sp, #12
  60895. 8019e32: 4770 bx lr
  60896. 8019e34: 24000054 .word 0x24000054
  60897. 08019e38 <abort>:
  60898. 8019e38: b508 push {r3, lr}
  60899. 8019e3a: 2006 movs r0, #6
  60900. 8019e3c: f000 f96c bl 801a118 <raise>
  60901. 8019e40: 2001 movs r0, #1
  60902. 8019e42: f7ea fa35 bl 80042b0 <_exit>
  60903. 08019e46 <__sfputc_r>:
  60904. 8019e46: 6893 ldr r3, [r2, #8]
  60905. 8019e48: 3b01 subs r3, #1
  60906. 8019e4a: 2b00 cmp r3, #0
  60907. 8019e4c: b410 push {r4}
  60908. 8019e4e: 6093 str r3, [r2, #8]
  60909. 8019e50: da08 bge.n 8019e64 <__sfputc_r+0x1e>
  60910. 8019e52: 6994 ldr r4, [r2, #24]
  60911. 8019e54: 42a3 cmp r3, r4
  60912. 8019e56: db01 blt.n 8019e5c <__sfputc_r+0x16>
  60913. 8019e58: 290a cmp r1, #10
  60914. 8019e5a: d103 bne.n 8019e64 <__sfputc_r+0x1e>
  60915. 8019e5c: f85d 4b04 ldr.w r4, [sp], #4
  60916. 8019e60: f7fe ba6d b.w 801833e <__swbuf_r>
  60917. 8019e64: 6813 ldr r3, [r2, #0]
  60918. 8019e66: 1c58 adds r0, r3, #1
  60919. 8019e68: 6010 str r0, [r2, #0]
  60920. 8019e6a: 7019 strb r1, [r3, #0]
  60921. 8019e6c: 4608 mov r0, r1
  60922. 8019e6e: f85d 4b04 ldr.w r4, [sp], #4
  60923. 8019e72: 4770 bx lr
  60924. 08019e74 <__sfputs_r>:
  60925. 8019e74: b5f8 push {r3, r4, r5, r6, r7, lr}
  60926. 8019e76: 4606 mov r6, r0
  60927. 8019e78: 460f mov r7, r1
  60928. 8019e7a: 4614 mov r4, r2
  60929. 8019e7c: 18d5 adds r5, r2, r3
  60930. 8019e7e: 42ac cmp r4, r5
  60931. 8019e80: d101 bne.n 8019e86 <__sfputs_r+0x12>
  60932. 8019e82: 2000 movs r0, #0
  60933. 8019e84: e007 b.n 8019e96 <__sfputs_r+0x22>
  60934. 8019e86: f814 1b01 ldrb.w r1, [r4], #1
  60935. 8019e8a: 463a mov r2, r7
  60936. 8019e8c: 4630 mov r0, r6
  60937. 8019e8e: f7ff ffda bl 8019e46 <__sfputc_r>
  60938. 8019e92: 1c43 adds r3, r0, #1
  60939. 8019e94: d1f3 bne.n 8019e7e <__sfputs_r+0xa>
  60940. 8019e96: bdf8 pop {r3, r4, r5, r6, r7, pc}
  60941. 08019e98 <_vfiprintf_r>:
  60942. 8019e98: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  60943. 8019e9c: 460d mov r5, r1
  60944. 8019e9e: b09d sub sp, #116 @ 0x74
  60945. 8019ea0: 4614 mov r4, r2
  60946. 8019ea2: 4698 mov r8, r3
  60947. 8019ea4: 4606 mov r6, r0
  60948. 8019ea6: b118 cbz r0, 8019eb0 <_vfiprintf_r+0x18>
  60949. 8019ea8: 6a03 ldr r3, [r0, #32]
  60950. 8019eaa: b90b cbnz r3, 8019eb0 <_vfiprintf_r+0x18>
  60951. 8019eac: f7fe f970 bl 8018190 <__sinit>
  60952. 8019eb0: 6e6b ldr r3, [r5, #100] @ 0x64
  60953. 8019eb2: 07d9 lsls r1, r3, #31
  60954. 8019eb4: d405 bmi.n 8019ec2 <_vfiprintf_r+0x2a>
  60955. 8019eb6: 89ab ldrh r3, [r5, #12]
  60956. 8019eb8: 059a lsls r2, r3, #22
  60957. 8019eba: d402 bmi.n 8019ec2 <_vfiprintf_r+0x2a>
  60958. 8019ebc: 6da8 ldr r0, [r5, #88] @ 0x58
  60959. 8019ebe: f7fe fba6 bl 801860e <__retarget_lock_acquire_recursive>
  60960. 8019ec2: 89ab ldrh r3, [r5, #12]
  60961. 8019ec4: 071b lsls r3, r3, #28
  60962. 8019ec6: d501 bpl.n 8019ecc <_vfiprintf_r+0x34>
  60963. 8019ec8: 692b ldr r3, [r5, #16]
  60964. 8019eca: b99b cbnz r3, 8019ef4 <_vfiprintf_r+0x5c>
  60965. 8019ecc: 4629 mov r1, r5
  60966. 8019ece: 4630 mov r0, r6
  60967. 8019ed0: f7fe fa74 bl 80183bc <__swsetup_r>
  60968. 8019ed4: b170 cbz r0, 8019ef4 <_vfiprintf_r+0x5c>
  60969. 8019ed6: 6e6b ldr r3, [r5, #100] @ 0x64
  60970. 8019ed8: 07dc lsls r4, r3, #31
  60971. 8019eda: d504 bpl.n 8019ee6 <_vfiprintf_r+0x4e>
  60972. 8019edc: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  60973. 8019ee0: b01d add sp, #116 @ 0x74
  60974. 8019ee2: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  60975. 8019ee6: 89ab ldrh r3, [r5, #12]
  60976. 8019ee8: 0598 lsls r0, r3, #22
  60977. 8019eea: d4f7 bmi.n 8019edc <_vfiprintf_r+0x44>
  60978. 8019eec: 6da8 ldr r0, [r5, #88] @ 0x58
  60979. 8019eee: f7fe fb8f bl 8018610 <__retarget_lock_release_recursive>
  60980. 8019ef2: e7f3 b.n 8019edc <_vfiprintf_r+0x44>
  60981. 8019ef4: 2300 movs r3, #0
  60982. 8019ef6: 9309 str r3, [sp, #36] @ 0x24
  60983. 8019ef8: 2320 movs r3, #32
  60984. 8019efa: f88d 3029 strb.w r3, [sp, #41] @ 0x29
  60985. 8019efe: f8cd 800c str.w r8, [sp, #12]
  60986. 8019f02: 2330 movs r3, #48 @ 0x30
  60987. 8019f04: f8df 81ac ldr.w r8, [pc, #428] @ 801a0b4 <_vfiprintf_r+0x21c>
  60988. 8019f08: f88d 302a strb.w r3, [sp, #42] @ 0x2a
  60989. 8019f0c: f04f 0901 mov.w r9, #1
  60990. 8019f10: 4623 mov r3, r4
  60991. 8019f12: 469a mov sl, r3
  60992. 8019f14: f813 2b01 ldrb.w r2, [r3], #1
  60993. 8019f18: b10a cbz r2, 8019f1e <_vfiprintf_r+0x86>
  60994. 8019f1a: 2a25 cmp r2, #37 @ 0x25
  60995. 8019f1c: d1f9 bne.n 8019f12 <_vfiprintf_r+0x7a>
  60996. 8019f1e: ebba 0b04 subs.w fp, sl, r4
  60997. 8019f22: d00b beq.n 8019f3c <_vfiprintf_r+0xa4>
  60998. 8019f24: 465b mov r3, fp
  60999. 8019f26: 4622 mov r2, r4
  61000. 8019f28: 4629 mov r1, r5
  61001. 8019f2a: 4630 mov r0, r6
  61002. 8019f2c: f7ff ffa2 bl 8019e74 <__sfputs_r>
  61003. 8019f30: 3001 adds r0, #1
  61004. 8019f32: f000 80a7 beq.w 801a084 <_vfiprintf_r+0x1ec>
  61005. 8019f36: 9a09 ldr r2, [sp, #36] @ 0x24
  61006. 8019f38: 445a add r2, fp
  61007. 8019f3a: 9209 str r2, [sp, #36] @ 0x24
  61008. 8019f3c: f89a 3000 ldrb.w r3, [sl]
  61009. 8019f40: 2b00 cmp r3, #0
  61010. 8019f42: f000 809f beq.w 801a084 <_vfiprintf_r+0x1ec>
  61011. 8019f46: 2300 movs r3, #0
  61012. 8019f48: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
  61013. 8019f4c: e9cd 2305 strd r2, r3, [sp, #20]
  61014. 8019f50: f10a 0a01 add.w sl, sl, #1
  61015. 8019f54: 9304 str r3, [sp, #16]
  61016. 8019f56: 9307 str r3, [sp, #28]
  61017. 8019f58: f88d 3053 strb.w r3, [sp, #83] @ 0x53
  61018. 8019f5c: 931a str r3, [sp, #104] @ 0x68
  61019. 8019f5e: 4654 mov r4, sl
  61020. 8019f60: 2205 movs r2, #5
  61021. 8019f62: f814 1b01 ldrb.w r1, [r4], #1
  61022. 8019f66: 4853 ldr r0, [pc, #332] @ (801a0b4 <_vfiprintf_r+0x21c>)
  61023. 8019f68: f7e6 f9ba bl 80002e0 <memchr>
  61024. 8019f6c: 9a04 ldr r2, [sp, #16]
  61025. 8019f6e: b9d8 cbnz r0, 8019fa8 <_vfiprintf_r+0x110>
  61026. 8019f70: 06d1 lsls r1, r2, #27
  61027. 8019f72: bf44 itt mi
  61028. 8019f74: 2320 movmi r3, #32
  61029. 8019f76: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  61030. 8019f7a: 0713 lsls r3, r2, #28
  61031. 8019f7c: bf44 itt mi
  61032. 8019f7e: 232b movmi r3, #43 @ 0x2b
  61033. 8019f80: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
  61034. 8019f84: f89a 3000 ldrb.w r3, [sl]
  61035. 8019f88: 2b2a cmp r3, #42 @ 0x2a
  61036. 8019f8a: d015 beq.n 8019fb8 <_vfiprintf_r+0x120>
  61037. 8019f8c: 9a07 ldr r2, [sp, #28]
  61038. 8019f8e: 4654 mov r4, sl
  61039. 8019f90: 2000 movs r0, #0
  61040. 8019f92: f04f 0c0a mov.w ip, #10
  61041. 8019f96: 4621 mov r1, r4
  61042. 8019f98: f811 3b01 ldrb.w r3, [r1], #1
  61043. 8019f9c: 3b30 subs r3, #48 @ 0x30
  61044. 8019f9e: 2b09 cmp r3, #9
  61045. 8019fa0: d94b bls.n 801a03a <_vfiprintf_r+0x1a2>
  61046. 8019fa2: b1b0 cbz r0, 8019fd2 <_vfiprintf_r+0x13a>
  61047. 8019fa4: 9207 str r2, [sp, #28]
  61048. 8019fa6: e014 b.n 8019fd2 <_vfiprintf_r+0x13a>
  61049. 8019fa8: eba0 0308 sub.w r3, r0, r8
  61050. 8019fac: fa09 f303 lsl.w r3, r9, r3
  61051. 8019fb0: 4313 orrs r3, r2
  61052. 8019fb2: 9304 str r3, [sp, #16]
  61053. 8019fb4: 46a2 mov sl, r4
  61054. 8019fb6: e7d2 b.n 8019f5e <_vfiprintf_r+0xc6>
  61055. 8019fb8: 9b03 ldr r3, [sp, #12]
  61056. 8019fba: 1d19 adds r1, r3, #4
  61057. 8019fbc: 681b ldr r3, [r3, #0]
  61058. 8019fbe: 9103 str r1, [sp, #12]
  61059. 8019fc0: 2b00 cmp r3, #0
  61060. 8019fc2: bfbb ittet lt
  61061. 8019fc4: 425b neglt r3, r3
  61062. 8019fc6: f042 0202 orrlt.w r2, r2, #2
  61063. 8019fca: 9307 strge r3, [sp, #28]
  61064. 8019fcc: 9307 strlt r3, [sp, #28]
  61065. 8019fce: bfb8 it lt
  61066. 8019fd0: 9204 strlt r2, [sp, #16]
  61067. 8019fd2: 7823 ldrb r3, [r4, #0]
  61068. 8019fd4: 2b2e cmp r3, #46 @ 0x2e
  61069. 8019fd6: d10a bne.n 8019fee <_vfiprintf_r+0x156>
  61070. 8019fd8: 7863 ldrb r3, [r4, #1]
  61071. 8019fda: 2b2a cmp r3, #42 @ 0x2a
  61072. 8019fdc: d132 bne.n 801a044 <_vfiprintf_r+0x1ac>
  61073. 8019fde: 9b03 ldr r3, [sp, #12]
  61074. 8019fe0: 1d1a adds r2, r3, #4
  61075. 8019fe2: 681b ldr r3, [r3, #0]
  61076. 8019fe4: 9203 str r2, [sp, #12]
  61077. 8019fe6: ea43 73e3 orr.w r3, r3, r3, asr #31
  61078. 8019fea: 3402 adds r4, #2
  61079. 8019fec: 9305 str r3, [sp, #20]
  61080. 8019fee: f8df a0d4 ldr.w sl, [pc, #212] @ 801a0c4 <_vfiprintf_r+0x22c>
  61081. 8019ff2: 7821 ldrb r1, [r4, #0]
  61082. 8019ff4: 2203 movs r2, #3
  61083. 8019ff6: 4650 mov r0, sl
  61084. 8019ff8: f7e6 f972 bl 80002e0 <memchr>
  61085. 8019ffc: b138 cbz r0, 801a00e <_vfiprintf_r+0x176>
  61086. 8019ffe: 9b04 ldr r3, [sp, #16]
  61087. 801a000: eba0 000a sub.w r0, r0, sl
  61088. 801a004: 2240 movs r2, #64 @ 0x40
  61089. 801a006: 4082 lsls r2, r0
  61090. 801a008: 4313 orrs r3, r2
  61091. 801a00a: 3401 adds r4, #1
  61092. 801a00c: 9304 str r3, [sp, #16]
  61093. 801a00e: f814 1b01 ldrb.w r1, [r4], #1
  61094. 801a012: 4829 ldr r0, [pc, #164] @ (801a0b8 <_vfiprintf_r+0x220>)
  61095. 801a014: f88d 1028 strb.w r1, [sp, #40] @ 0x28
  61096. 801a018: 2206 movs r2, #6
  61097. 801a01a: f7e6 f961 bl 80002e0 <memchr>
  61098. 801a01e: 2800 cmp r0, #0
  61099. 801a020: d03f beq.n 801a0a2 <_vfiprintf_r+0x20a>
  61100. 801a022: 4b26 ldr r3, [pc, #152] @ (801a0bc <_vfiprintf_r+0x224>)
  61101. 801a024: bb1b cbnz r3, 801a06e <_vfiprintf_r+0x1d6>
  61102. 801a026: 9b03 ldr r3, [sp, #12]
  61103. 801a028: 3307 adds r3, #7
  61104. 801a02a: f023 0307 bic.w r3, r3, #7
  61105. 801a02e: 3308 adds r3, #8
  61106. 801a030: 9303 str r3, [sp, #12]
  61107. 801a032: 9b09 ldr r3, [sp, #36] @ 0x24
  61108. 801a034: 443b add r3, r7
  61109. 801a036: 9309 str r3, [sp, #36] @ 0x24
  61110. 801a038: e76a b.n 8019f10 <_vfiprintf_r+0x78>
  61111. 801a03a: fb0c 3202 mla r2, ip, r2, r3
  61112. 801a03e: 460c mov r4, r1
  61113. 801a040: 2001 movs r0, #1
  61114. 801a042: e7a8 b.n 8019f96 <_vfiprintf_r+0xfe>
  61115. 801a044: 2300 movs r3, #0
  61116. 801a046: 3401 adds r4, #1
  61117. 801a048: 9305 str r3, [sp, #20]
  61118. 801a04a: 4619 mov r1, r3
  61119. 801a04c: f04f 0c0a mov.w ip, #10
  61120. 801a050: 4620 mov r0, r4
  61121. 801a052: f810 2b01 ldrb.w r2, [r0], #1
  61122. 801a056: 3a30 subs r2, #48 @ 0x30
  61123. 801a058: 2a09 cmp r2, #9
  61124. 801a05a: d903 bls.n 801a064 <_vfiprintf_r+0x1cc>
  61125. 801a05c: 2b00 cmp r3, #0
  61126. 801a05e: d0c6 beq.n 8019fee <_vfiprintf_r+0x156>
  61127. 801a060: 9105 str r1, [sp, #20]
  61128. 801a062: e7c4 b.n 8019fee <_vfiprintf_r+0x156>
  61129. 801a064: fb0c 2101 mla r1, ip, r1, r2
  61130. 801a068: 4604 mov r4, r0
  61131. 801a06a: 2301 movs r3, #1
  61132. 801a06c: e7f0 b.n 801a050 <_vfiprintf_r+0x1b8>
  61133. 801a06e: ab03 add r3, sp, #12
  61134. 801a070: 9300 str r3, [sp, #0]
  61135. 801a072: 462a mov r2, r5
  61136. 801a074: 4b12 ldr r3, [pc, #72] @ (801a0c0 <_vfiprintf_r+0x228>)
  61137. 801a076: a904 add r1, sp, #16
  61138. 801a078: 4630 mov r0, r6
  61139. 801a07a: f7fd fc55 bl 8017928 <_printf_float>
  61140. 801a07e: 4607 mov r7, r0
  61141. 801a080: 1c78 adds r0, r7, #1
  61142. 801a082: d1d6 bne.n 801a032 <_vfiprintf_r+0x19a>
  61143. 801a084: 6e6b ldr r3, [r5, #100] @ 0x64
  61144. 801a086: 07d9 lsls r1, r3, #31
  61145. 801a088: d405 bmi.n 801a096 <_vfiprintf_r+0x1fe>
  61146. 801a08a: 89ab ldrh r3, [r5, #12]
  61147. 801a08c: 059a lsls r2, r3, #22
  61148. 801a08e: d402 bmi.n 801a096 <_vfiprintf_r+0x1fe>
  61149. 801a090: 6da8 ldr r0, [r5, #88] @ 0x58
  61150. 801a092: f7fe fabd bl 8018610 <__retarget_lock_release_recursive>
  61151. 801a096: 89ab ldrh r3, [r5, #12]
  61152. 801a098: 065b lsls r3, r3, #25
  61153. 801a09a: f53f af1f bmi.w 8019edc <_vfiprintf_r+0x44>
  61154. 801a09e: 9809 ldr r0, [sp, #36] @ 0x24
  61155. 801a0a0: e71e b.n 8019ee0 <_vfiprintf_r+0x48>
  61156. 801a0a2: ab03 add r3, sp, #12
  61157. 801a0a4: 9300 str r3, [sp, #0]
  61158. 801a0a6: 462a mov r2, r5
  61159. 801a0a8: 4b05 ldr r3, [pc, #20] @ (801a0c0 <_vfiprintf_r+0x228>)
  61160. 801a0aa: a904 add r1, sp, #16
  61161. 801a0ac: 4630 mov r0, r6
  61162. 801a0ae: f7fd fec3 bl 8017e38 <_printf_i>
  61163. 801a0b2: e7e4 b.n 801a07e <_vfiprintf_r+0x1e6>
  61164. 801a0b4: 0801a627 .word 0x0801a627
  61165. 801a0b8: 0801a631 .word 0x0801a631
  61166. 801a0bc: 08017929 .word 0x08017929
  61167. 801a0c0: 08019e75 .word 0x08019e75
  61168. 801a0c4: 0801a62d .word 0x0801a62d
  61169. 0801a0c8 <_raise_r>:
  61170. 801a0c8: 291f cmp r1, #31
  61171. 801a0ca: b538 push {r3, r4, r5, lr}
  61172. 801a0cc: 4605 mov r5, r0
  61173. 801a0ce: 460c mov r4, r1
  61174. 801a0d0: d904 bls.n 801a0dc <_raise_r+0x14>
  61175. 801a0d2: 2316 movs r3, #22
  61176. 801a0d4: 6003 str r3, [r0, #0]
  61177. 801a0d6: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
  61178. 801a0da: bd38 pop {r3, r4, r5, pc}
  61179. 801a0dc: 6bc2 ldr r2, [r0, #60] @ 0x3c
  61180. 801a0de: b112 cbz r2, 801a0e6 <_raise_r+0x1e>
  61181. 801a0e0: f852 3021 ldr.w r3, [r2, r1, lsl #2]
  61182. 801a0e4: b94b cbnz r3, 801a0fa <_raise_r+0x32>
  61183. 801a0e6: 4628 mov r0, r5
  61184. 801a0e8: f000 f830 bl 801a14c <_getpid_r>
  61185. 801a0ec: 4622 mov r2, r4
  61186. 801a0ee: 4601 mov r1, r0
  61187. 801a0f0: 4628 mov r0, r5
  61188. 801a0f2: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  61189. 801a0f6: f000 b817 b.w 801a128 <_kill_r>
  61190. 801a0fa: 2b01 cmp r3, #1
  61191. 801a0fc: d00a beq.n 801a114 <_raise_r+0x4c>
  61192. 801a0fe: 1c59 adds r1, r3, #1
  61193. 801a100: d103 bne.n 801a10a <_raise_r+0x42>
  61194. 801a102: 2316 movs r3, #22
  61195. 801a104: 6003 str r3, [r0, #0]
  61196. 801a106: 2001 movs r0, #1
  61197. 801a108: e7e7 b.n 801a0da <_raise_r+0x12>
  61198. 801a10a: 2100 movs r1, #0
  61199. 801a10c: f842 1024 str.w r1, [r2, r4, lsl #2]
  61200. 801a110: 4620 mov r0, r4
  61201. 801a112: 4798 blx r3
  61202. 801a114: 2000 movs r0, #0
  61203. 801a116: e7e0 b.n 801a0da <_raise_r+0x12>
  61204. 0801a118 <raise>:
  61205. 801a118: 4b02 ldr r3, [pc, #8] @ (801a124 <raise+0xc>)
  61206. 801a11a: 4601 mov r1, r0
  61207. 801a11c: 6818 ldr r0, [r3, #0]
  61208. 801a11e: f7ff bfd3 b.w 801a0c8 <_raise_r>
  61209. 801a122: bf00 nop
  61210. 801a124: 24000054 .word 0x24000054
  61211. 0801a128 <_kill_r>:
  61212. 801a128: b538 push {r3, r4, r5, lr}
  61213. 801a12a: 4d07 ldr r5, [pc, #28] @ (801a148 <_kill_r+0x20>)
  61214. 801a12c: 2300 movs r3, #0
  61215. 801a12e: 4604 mov r4, r0
  61216. 801a130: 4608 mov r0, r1
  61217. 801a132: 4611 mov r1, r2
  61218. 801a134: 602b str r3, [r5, #0]
  61219. 801a136: f7ea f8ab bl 8004290 <_kill>
  61220. 801a13a: 1c43 adds r3, r0, #1
  61221. 801a13c: d102 bne.n 801a144 <_kill_r+0x1c>
  61222. 801a13e: 682b ldr r3, [r5, #0]
  61223. 801a140: b103 cbz r3, 801a144 <_kill_r+0x1c>
  61224. 801a142: 6023 str r3, [r4, #0]
  61225. 801a144: bd38 pop {r3, r4, r5, pc}
  61226. 801a146: bf00 nop
  61227. 801a148: 240132e4 .word 0x240132e4
  61228. 0801a14c <_getpid_r>:
  61229. 801a14c: f7ea b898 b.w 8004280 <_getpid>
  61230. 0801a150 <sqrtf>:
  61231. 801a150: b508 push {r3, lr}
  61232. 801a152: ed2d 8b02 vpush {d8}
  61233. 801a156: eeb0 8a40 vmov.f32 s16, s0
  61234. 801a15a: f000 f817 bl 801a18c <__ieee754_sqrtf>
  61235. 801a15e: eeb4 8a48 vcmp.f32 s16, s16
  61236. 801a162: eef1 fa10 vmrs APSR_nzcv, fpscr
  61237. 801a166: d60c bvs.n 801a182 <sqrtf+0x32>
  61238. 801a168: eddf 8a07 vldr s17, [pc, #28] @ 801a188 <sqrtf+0x38>
  61239. 801a16c: eeb4 8ae8 vcmpe.f32 s16, s17
  61240. 801a170: eef1 fa10 vmrs APSR_nzcv, fpscr
  61241. 801a174: d505 bpl.n 801a182 <sqrtf+0x32>
  61242. 801a176: f7fe fa1f bl 80185b8 <__errno>
  61243. 801a17a: ee88 0aa8 vdiv.f32 s0, s17, s17
  61244. 801a17e: 2321 movs r3, #33 @ 0x21
  61245. 801a180: 6003 str r3, [r0, #0]
  61246. 801a182: ecbd 8b02 vpop {d8}
  61247. 801a186: bd08 pop {r3, pc}
  61248. 801a188: 00000000 .word 0x00000000
  61249. 0801a18c <__ieee754_sqrtf>:
  61250. 801a18c: eeb1 0ac0 vsqrt.f32 s0, s0
  61251. 801a190: 4770 bx lr
  61252. ...
  61253. 0801a194 <_init>:
  61254. 801a194: b5f8 push {r3, r4, r5, r6, r7, lr}
  61255. 801a196: bf00 nop
  61256. 801a198: bcf8 pop {r3, r4, r5, r6, r7}
  61257. 801a19a: bc08 pop {r3}
  61258. 801a19c: 469e mov lr, r3
  61259. 801a19e: 4770 bx lr
  61260. 0801a1a0 <_fini>:
  61261. 801a1a0: b5f8 push {r3, r4, r5, r6, r7, lr}
  61262. 801a1a2: bf00 nop
  61263. 801a1a4: bcf8 pop {r3, r4, r5, r6, r7}
  61264. 801a1a6: bc08 pop {r3}
  61265. 801a1a8: 469e mov lr, r3
  61266. 801a1aa: 4770 bx lr