dosim-v1.list 835 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597
  1. dosim-v1.elf: file format elf32-littlearm
  2. Sections:
  3. Idx Name Size VMA LMA File off Algn
  4. 0 .isr_vector 0000013c 08000000 08000000 00010000 2**0
  5. CONTENTS, ALLOC, LOAD, READONLY, DATA
  6. 1 .text 00009784 08000140 08000140 00010140 2**3
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 0000116c 080098c8 080098c8 000198c8 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 0800aa34 0800aa34 000201e4 2**0
  11. CONTENTS
  12. 4 .ARM 00000008 0800aa34 0800aa34 0001aa34 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .preinit_array 00000000 0800aa3c 0800aa3c 000201e4 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 0800aa3c 0800aa3c 0001aa3c 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 0800aa40 0800aa40 0001aa40 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 000001e4 20000000 0800aa44 00020000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 00000520 200001e4 0800ac28 000201e4 2**2
  23. ALLOC
  24. 10 ._user_heap_stack 00000604 20000704 0800ac28 00020704 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000029 00000000 00000000 000201e4 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 000146de 00000000 00000000 0002020d 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_abbrev 00002e0a 00000000 00000000 000348eb 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_aranges 00001298 00000000 00000000 000376f8 2**3
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_ranges 00001190 00000000 00000000 00038990 2**3
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_macro 000173f0 00000000 00000000 00039b20 2**0
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_line 000142c5 00000000 00000000 00050f10 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_str 0008cd84 00000000 00000000 000651d5 2**0
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .comment 00000053 00000000 00000000 000f1f59 2**0
  43. CONTENTS, READONLY
  44. 20 .debug_frame 00006048 00000000 00000000 000f1fac 2**2
  45. CONTENTS, READONLY, DEBUGGING, OCTETS
  46. Disassembly of section .text:
  47. 08000140 <__do_global_dtors_aux>:
  48. 8000140: b510 push {r4, lr}
  49. 8000142: 4c05 ldr r4, [pc, #20] ; (8000158 <__do_global_dtors_aux+0x18>)
  50. 8000144: 7823 ldrb r3, [r4, #0]
  51. 8000146: b933 cbnz r3, 8000156 <__do_global_dtors_aux+0x16>
  52. 8000148: 4b04 ldr r3, [pc, #16] ; (800015c <__do_global_dtors_aux+0x1c>)
  53. 800014a: b113 cbz r3, 8000152 <__do_global_dtors_aux+0x12>
  54. 800014c: 4804 ldr r0, [pc, #16] ; (8000160 <__do_global_dtors_aux+0x20>)
  55. 800014e: f3af 8000 nop.w
  56. 8000152: 2301 movs r3, #1
  57. 8000154: 7023 strb r3, [r4, #0]
  58. 8000156: bd10 pop {r4, pc}
  59. 8000158: 200001e4 .word 0x200001e4
  60. 800015c: 00000000 .word 0x00000000
  61. 8000160: 080098ac .word 0x080098ac
  62. 08000164 <frame_dummy>:
  63. 8000164: b508 push {r3, lr}
  64. 8000166: 4b03 ldr r3, [pc, #12] ; (8000174 <frame_dummy+0x10>)
  65. 8000168: b11b cbz r3, 8000172 <frame_dummy+0xe>
  66. 800016a: 4903 ldr r1, [pc, #12] ; (8000178 <frame_dummy+0x14>)
  67. 800016c: 4803 ldr r0, [pc, #12] ; (800017c <frame_dummy+0x18>)
  68. 800016e: f3af 8000 nop.w
  69. 8000172: bd08 pop {r3, pc}
  70. 8000174: 00000000 .word 0x00000000
  71. 8000178: 200001e8 .word 0x200001e8
  72. 800017c: 080098ac .word 0x080098ac
  73. 08000180 <strlen>:
  74. 8000180: 4603 mov r3, r0
  75. 8000182: f813 2b01 ldrb.w r2, [r3], #1
  76. 8000186: 2a00 cmp r2, #0
  77. 8000188: d1fb bne.n 8000182 <strlen+0x2>
  78. 800018a: 1a18 subs r0, r3, r0
  79. 800018c: 3801 subs r0, #1
  80. 800018e: 4770 bx lr
  81. 08000190 <__aeabi_drsub>:
  82. 8000190: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000
  83. 8000194: e002 b.n 800019c <__adddf3>
  84. 8000196: bf00 nop
  85. 08000198 <__aeabi_dsub>:
  86. 8000198: f083 4300 eor.w r3, r3, #2147483648 ; 0x80000000
  87. 0800019c <__adddf3>:
  88. 800019c: b530 push {r4, r5, lr}
  89. 800019e: ea4f 0441 mov.w r4, r1, lsl #1
  90. 80001a2: ea4f 0543 mov.w r5, r3, lsl #1
  91. 80001a6: ea94 0f05 teq r4, r5
  92. 80001aa: bf08 it eq
  93. 80001ac: ea90 0f02 teqeq r0, r2
  94. 80001b0: bf1f itttt ne
  95. 80001b2: ea54 0c00 orrsne.w ip, r4, r0
  96. 80001b6: ea55 0c02 orrsne.w ip, r5, r2
  97. 80001ba: ea7f 5c64 mvnsne.w ip, r4, asr #21
  98. 80001be: ea7f 5c65 mvnsne.w ip, r5, asr #21
  99. 80001c2: f000 80e2 beq.w 800038a <__adddf3+0x1ee>
  100. 80001c6: ea4f 5454 mov.w r4, r4, lsr #21
  101. 80001ca: ebd4 5555 rsbs r5, r4, r5, lsr #21
  102. 80001ce: bfb8 it lt
  103. 80001d0: 426d neglt r5, r5
  104. 80001d2: dd0c ble.n 80001ee <__adddf3+0x52>
  105. 80001d4: 442c add r4, r5
  106. 80001d6: ea80 0202 eor.w r2, r0, r2
  107. 80001da: ea81 0303 eor.w r3, r1, r3
  108. 80001de: ea82 0000 eor.w r0, r2, r0
  109. 80001e2: ea83 0101 eor.w r1, r3, r1
  110. 80001e6: ea80 0202 eor.w r2, r0, r2
  111. 80001ea: ea81 0303 eor.w r3, r1, r3
  112. 80001ee: 2d36 cmp r5, #54 ; 0x36
  113. 80001f0: bf88 it hi
  114. 80001f2: bd30 pophi {r4, r5, pc}
  115. 80001f4: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
  116. 80001f8: ea4f 3101 mov.w r1, r1, lsl #12
  117. 80001fc: f44f 1c80 mov.w ip, #1048576 ; 0x100000
  118. 8000200: ea4c 3111 orr.w r1, ip, r1, lsr #12
  119. 8000204: d002 beq.n 800020c <__adddf3+0x70>
  120. 8000206: 4240 negs r0, r0
  121. 8000208: eb61 0141 sbc.w r1, r1, r1, lsl #1
  122. 800020c: f013 4f00 tst.w r3, #2147483648 ; 0x80000000
  123. 8000210: ea4f 3303 mov.w r3, r3, lsl #12
  124. 8000214: ea4c 3313 orr.w r3, ip, r3, lsr #12
  125. 8000218: d002 beq.n 8000220 <__adddf3+0x84>
  126. 800021a: 4252 negs r2, r2
  127. 800021c: eb63 0343 sbc.w r3, r3, r3, lsl #1
  128. 8000220: ea94 0f05 teq r4, r5
  129. 8000224: f000 80a7 beq.w 8000376 <__adddf3+0x1da>
  130. 8000228: f1a4 0401 sub.w r4, r4, #1
  131. 800022c: f1d5 0e20 rsbs lr, r5, #32
  132. 8000230: db0d blt.n 800024e <__adddf3+0xb2>
  133. 8000232: fa02 fc0e lsl.w ip, r2, lr
  134. 8000236: fa22 f205 lsr.w r2, r2, r5
  135. 800023a: 1880 adds r0, r0, r2
  136. 800023c: f141 0100 adc.w r1, r1, #0
  137. 8000240: fa03 f20e lsl.w r2, r3, lr
  138. 8000244: 1880 adds r0, r0, r2
  139. 8000246: fa43 f305 asr.w r3, r3, r5
  140. 800024a: 4159 adcs r1, r3
  141. 800024c: e00e b.n 800026c <__adddf3+0xd0>
  142. 800024e: f1a5 0520 sub.w r5, r5, #32
  143. 8000252: f10e 0e20 add.w lr, lr, #32
  144. 8000256: 2a01 cmp r2, #1
  145. 8000258: fa03 fc0e lsl.w ip, r3, lr
  146. 800025c: bf28 it cs
  147. 800025e: f04c 0c02 orrcs.w ip, ip, #2
  148. 8000262: fa43 f305 asr.w r3, r3, r5
  149. 8000266: 18c0 adds r0, r0, r3
  150. 8000268: eb51 71e3 adcs.w r1, r1, r3, asr #31
  151. 800026c: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
  152. 8000270: d507 bpl.n 8000282 <__adddf3+0xe6>
  153. 8000272: f04f 0e00 mov.w lr, #0
  154. 8000276: f1dc 0c00 rsbs ip, ip, #0
  155. 800027a: eb7e 0000 sbcs.w r0, lr, r0
  156. 800027e: eb6e 0101 sbc.w r1, lr, r1
  157. 8000282: f5b1 1f80 cmp.w r1, #1048576 ; 0x100000
  158. 8000286: d31b bcc.n 80002c0 <__adddf3+0x124>
  159. 8000288: f5b1 1f00 cmp.w r1, #2097152 ; 0x200000
  160. 800028c: d30c bcc.n 80002a8 <__adddf3+0x10c>
  161. 800028e: 0849 lsrs r1, r1, #1
  162. 8000290: ea5f 0030 movs.w r0, r0, rrx
  163. 8000294: ea4f 0c3c mov.w ip, ip, rrx
  164. 8000298: f104 0401 add.w r4, r4, #1
  165. 800029c: ea4f 5244 mov.w r2, r4, lsl #21
  166. 80002a0: f512 0f80 cmn.w r2, #4194304 ; 0x400000
  167. 80002a4: f080 809a bcs.w 80003dc <__adddf3+0x240>
  168. 80002a8: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000
  169. 80002ac: bf08 it eq
  170. 80002ae: ea5f 0c50 movseq.w ip, r0, lsr #1
  171. 80002b2: f150 0000 adcs.w r0, r0, #0
  172. 80002b6: eb41 5104 adc.w r1, r1, r4, lsl #20
  173. 80002ba: ea41 0105 orr.w r1, r1, r5
  174. 80002be: bd30 pop {r4, r5, pc}
  175. 80002c0: ea5f 0c4c movs.w ip, ip, lsl #1
  176. 80002c4: 4140 adcs r0, r0
  177. 80002c6: eb41 0101 adc.w r1, r1, r1
  178. 80002ca: 3c01 subs r4, #1
  179. 80002cc: bf28 it cs
  180. 80002ce: f5b1 1f80 cmpcs.w r1, #1048576 ; 0x100000
  181. 80002d2: d2e9 bcs.n 80002a8 <__adddf3+0x10c>
  182. 80002d4: f091 0f00 teq r1, #0
  183. 80002d8: bf04 itt eq
  184. 80002da: 4601 moveq r1, r0
  185. 80002dc: 2000 moveq r0, #0
  186. 80002de: fab1 f381 clz r3, r1
  187. 80002e2: bf08 it eq
  188. 80002e4: 3320 addeq r3, #32
  189. 80002e6: f1a3 030b sub.w r3, r3, #11
  190. 80002ea: f1b3 0220 subs.w r2, r3, #32
  191. 80002ee: da0c bge.n 800030a <__adddf3+0x16e>
  192. 80002f0: 320c adds r2, #12
  193. 80002f2: dd08 ble.n 8000306 <__adddf3+0x16a>
  194. 80002f4: f102 0c14 add.w ip, r2, #20
  195. 80002f8: f1c2 020c rsb r2, r2, #12
  196. 80002fc: fa01 f00c lsl.w r0, r1, ip
  197. 8000300: fa21 f102 lsr.w r1, r1, r2
  198. 8000304: e00c b.n 8000320 <__adddf3+0x184>
  199. 8000306: f102 0214 add.w r2, r2, #20
  200. 800030a: bfd8 it le
  201. 800030c: f1c2 0c20 rsble ip, r2, #32
  202. 8000310: fa01 f102 lsl.w r1, r1, r2
  203. 8000314: fa20 fc0c lsr.w ip, r0, ip
  204. 8000318: bfdc itt le
  205. 800031a: ea41 010c orrle.w r1, r1, ip
  206. 800031e: 4090 lslle r0, r2
  207. 8000320: 1ae4 subs r4, r4, r3
  208. 8000322: bfa2 ittt ge
  209. 8000324: eb01 5104 addge.w r1, r1, r4, lsl #20
  210. 8000328: 4329 orrge r1, r5
  211. 800032a: bd30 popge {r4, r5, pc}
  212. 800032c: ea6f 0404 mvn.w r4, r4
  213. 8000330: 3c1f subs r4, #31
  214. 8000332: da1c bge.n 800036e <__adddf3+0x1d2>
  215. 8000334: 340c adds r4, #12
  216. 8000336: dc0e bgt.n 8000356 <__adddf3+0x1ba>
  217. 8000338: f104 0414 add.w r4, r4, #20
  218. 800033c: f1c4 0220 rsb r2, r4, #32
  219. 8000340: fa20 f004 lsr.w r0, r0, r4
  220. 8000344: fa01 f302 lsl.w r3, r1, r2
  221. 8000348: ea40 0003 orr.w r0, r0, r3
  222. 800034c: fa21 f304 lsr.w r3, r1, r4
  223. 8000350: ea45 0103 orr.w r1, r5, r3
  224. 8000354: bd30 pop {r4, r5, pc}
  225. 8000356: f1c4 040c rsb r4, r4, #12
  226. 800035a: f1c4 0220 rsb r2, r4, #32
  227. 800035e: fa20 f002 lsr.w r0, r0, r2
  228. 8000362: fa01 f304 lsl.w r3, r1, r4
  229. 8000366: ea40 0003 orr.w r0, r0, r3
  230. 800036a: 4629 mov r1, r5
  231. 800036c: bd30 pop {r4, r5, pc}
  232. 800036e: fa21 f004 lsr.w r0, r1, r4
  233. 8000372: 4629 mov r1, r5
  234. 8000374: bd30 pop {r4, r5, pc}
  235. 8000376: f094 0f00 teq r4, #0
  236. 800037a: f483 1380 eor.w r3, r3, #1048576 ; 0x100000
  237. 800037e: bf06 itte eq
  238. 8000380: f481 1180 eoreq.w r1, r1, #1048576 ; 0x100000
  239. 8000384: 3401 addeq r4, #1
  240. 8000386: 3d01 subne r5, #1
  241. 8000388: e74e b.n 8000228 <__adddf3+0x8c>
  242. 800038a: ea7f 5c64 mvns.w ip, r4, asr #21
  243. 800038e: bf18 it ne
  244. 8000390: ea7f 5c65 mvnsne.w ip, r5, asr #21
  245. 8000394: d029 beq.n 80003ea <__adddf3+0x24e>
  246. 8000396: ea94 0f05 teq r4, r5
  247. 800039a: bf08 it eq
  248. 800039c: ea90 0f02 teqeq r0, r2
  249. 80003a0: d005 beq.n 80003ae <__adddf3+0x212>
  250. 80003a2: ea54 0c00 orrs.w ip, r4, r0
  251. 80003a6: bf04 itt eq
  252. 80003a8: 4619 moveq r1, r3
  253. 80003aa: 4610 moveq r0, r2
  254. 80003ac: bd30 pop {r4, r5, pc}
  255. 80003ae: ea91 0f03 teq r1, r3
  256. 80003b2: bf1e ittt ne
  257. 80003b4: 2100 movne r1, #0
  258. 80003b6: 2000 movne r0, #0
  259. 80003b8: bd30 popne {r4, r5, pc}
  260. 80003ba: ea5f 5c54 movs.w ip, r4, lsr #21
  261. 80003be: d105 bne.n 80003cc <__adddf3+0x230>
  262. 80003c0: 0040 lsls r0, r0, #1
  263. 80003c2: 4149 adcs r1, r1
  264. 80003c4: bf28 it cs
  265. 80003c6: f041 4100 orrcs.w r1, r1, #2147483648 ; 0x80000000
  266. 80003ca: bd30 pop {r4, r5, pc}
  267. 80003cc: f514 0480 adds.w r4, r4, #4194304 ; 0x400000
  268. 80003d0: bf3c itt cc
  269. 80003d2: f501 1180 addcc.w r1, r1, #1048576 ; 0x100000
  270. 80003d6: bd30 popcc {r4, r5, pc}
  271. 80003d8: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
  272. 80003dc: f045 41fe orr.w r1, r5, #2130706432 ; 0x7f000000
  273. 80003e0: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000
  274. 80003e4: f04f 0000 mov.w r0, #0
  275. 80003e8: bd30 pop {r4, r5, pc}
  276. 80003ea: ea7f 5c64 mvns.w ip, r4, asr #21
  277. 80003ee: bf1a itte ne
  278. 80003f0: 4619 movne r1, r3
  279. 80003f2: 4610 movne r0, r2
  280. 80003f4: ea7f 5c65 mvnseq.w ip, r5, asr #21
  281. 80003f8: bf1c itt ne
  282. 80003fa: 460b movne r3, r1
  283. 80003fc: 4602 movne r2, r0
  284. 80003fe: ea50 3401 orrs.w r4, r0, r1, lsl #12
  285. 8000402: bf06 itte eq
  286. 8000404: ea52 3503 orrseq.w r5, r2, r3, lsl #12
  287. 8000408: ea91 0f03 teqeq r1, r3
  288. 800040c: f441 2100 orrne.w r1, r1, #524288 ; 0x80000
  289. 8000410: bd30 pop {r4, r5, pc}
  290. 8000412: bf00 nop
  291. 08000414 <__aeabi_ui2d>:
  292. 8000414: f090 0f00 teq r0, #0
  293. 8000418: bf04 itt eq
  294. 800041a: 2100 moveq r1, #0
  295. 800041c: 4770 bxeq lr
  296. 800041e: b530 push {r4, r5, lr}
  297. 8000420: f44f 6480 mov.w r4, #1024 ; 0x400
  298. 8000424: f104 0432 add.w r4, r4, #50 ; 0x32
  299. 8000428: f04f 0500 mov.w r5, #0
  300. 800042c: f04f 0100 mov.w r1, #0
  301. 8000430: e750 b.n 80002d4 <__adddf3+0x138>
  302. 8000432: bf00 nop
  303. 08000434 <__aeabi_i2d>:
  304. 8000434: f090 0f00 teq r0, #0
  305. 8000438: bf04 itt eq
  306. 800043a: 2100 moveq r1, #0
  307. 800043c: 4770 bxeq lr
  308. 800043e: b530 push {r4, r5, lr}
  309. 8000440: f44f 6480 mov.w r4, #1024 ; 0x400
  310. 8000444: f104 0432 add.w r4, r4, #50 ; 0x32
  311. 8000448: f010 4500 ands.w r5, r0, #2147483648 ; 0x80000000
  312. 800044c: bf48 it mi
  313. 800044e: 4240 negmi r0, r0
  314. 8000450: f04f 0100 mov.w r1, #0
  315. 8000454: e73e b.n 80002d4 <__adddf3+0x138>
  316. 8000456: bf00 nop
  317. 08000458 <__aeabi_f2d>:
  318. 8000458: 0042 lsls r2, r0, #1
  319. 800045a: ea4f 01e2 mov.w r1, r2, asr #3
  320. 800045e: ea4f 0131 mov.w r1, r1, rrx
  321. 8000462: ea4f 7002 mov.w r0, r2, lsl #28
  322. 8000466: bf1f itttt ne
  323. 8000468: f012 437f andsne.w r3, r2, #4278190080 ; 0xff000000
  324. 800046c: f093 4f7f teqne r3, #4278190080 ; 0xff000000
  325. 8000470: f081 5160 eorne.w r1, r1, #939524096 ; 0x38000000
  326. 8000474: 4770 bxne lr
  327. 8000476: f032 427f bics.w r2, r2, #4278190080 ; 0xff000000
  328. 800047a: bf08 it eq
  329. 800047c: 4770 bxeq lr
  330. 800047e: f093 4f7f teq r3, #4278190080 ; 0xff000000
  331. 8000482: bf04 itt eq
  332. 8000484: f441 2100 orreq.w r1, r1, #524288 ; 0x80000
  333. 8000488: 4770 bxeq lr
  334. 800048a: b530 push {r4, r5, lr}
  335. 800048c: f44f 7460 mov.w r4, #896 ; 0x380
  336. 8000490: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000
  337. 8000494: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000
  338. 8000498: e71c b.n 80002d4 <__adddf3+0x138>
  339. 800049a: bf00 nop
  340. 0800049c <__aeabi_ul2d>:
  341. 800049c: ea50 0201 orrs.w r2, r0, r1
  342. 80004a0: bf08 it eq
  343. 80004a2: 4770 bxeq lr
  344. 80004a4: b530 push {r4, r5, lr}
  345. 80004a6: f04f 0500 mov.w r5, #0
  346. 80004aa: e00a b.n 80004c2 <__aeabi_l2d+0x16>
  347. 080004ac <__aeabi_l2d>:
  348. 80004ac: ea50 0201 orrs.w r2, r0, r1
  349. 80004b0: bf08 it eq
  350. 80004b2: 4770 bxeq lr
  351. 80004b4: b530 push {r4, r5, lr}
  352. 80004b6: f011 4500 ands.w r5, r1, #2147483648 ; 0x80000000
  353. 80004ba: d502 bpl.n 80004c2 <__aeabi_l2d+0x16>
  354. 80004bc: 4240 negs r0, r0
  355. 80004be: eb61 0141 sbc.w r1, r1, r1, lsl #1
  356. 80004c2: f44f 6480 mov.w r4, #1024 ; 0x400
  357. 80004c6: f104 0432 add.w r4, r4, #50 ; 0x32
  358. 80004ca: ea5f 5c91 movs.w ip, r1, lsr #22
  359. 80004ce: f43f aed8 beq.w 8000282 <__adddf3+0xe6>
  360. 80004d2: f04f 0203 mov.w r2, #3
  361. 80004d6: ea5f 0cdc movs.w ip, ip, lsr #3
  362. 80004da: bf18 it ne
  363. 80004dc: 3203 addne r2, #3
  364. 80004de: ea5f 0cdc movs.w ip, ip, lsr #3
  365. 80004e2: bf18 it ne
  366. 80004e4: 3203 addne r2, #3
  367. 80004e6: eb02 02dc add.w r2, r2, ip, lsr #3
  368. 80004ea: f1c2 0320 rsb r3, r2, #32
  369. 80004ee: fa00 fc03 lsl.w ip, r0, r3
  370. 80004f2: fa20 f002 lsr.w r0, r0, r2
  371. 80004f6: fa01 fe03 lsl.w lr, r1, r3
  372. 80004fa: ea40 000e orr.w r0, r0, lr
  373. 80004fe: fa21 f102 lsr.w r1, r1, r2
  374. 8000502: 4414 add r4, r2
  375. 8000504: e6bd b.n 8000282 <__adddf3+0xe6>
  376. 8000506: bf00 nop
  377. 08000508 <__aeabi_dmul>:
  378. 8000508: b570 push {r4, r5, r6, lr}
  379. 800050a: f04f 0cff mov.w ip, #255 ; 0xff
  380. 800050e: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700
  381. 8000512: ea1c 5411 ands.w r4, ip, r1, lsr #20
  382. 8000516: bf1d ittte ne
  383. 8000518: ea1c 5513 andsne.w r5, ip, r3, lsr #20
  384. 800051c: ea94 0f0c teqne r4, ip
  385. 8000520: ea95 0f0c teqne r5, ip
  386. 8000524: f000 f8de bleq 80006e4 <__aeabi_dmul+0x1dc>
  387. 8000528: 442c add r4, r5
  388. 800052a: ea81 0603 eor.w r6, r1, r3
  389. 800052e: ea21 514c bic.w r1, r1, ip, lsl #21
  390. 8000532: ea23 534c bic.w r3, r3, ip, lsl #21
  391. 8000536: ea50 3501 orrs.w r5, r0, r1, lsl #12
  392. 800053a: bf18 it ne
  393. 800053c: ea52 3503 orrsne.w r5, r2, r3, lsl #12
  394. 8000540: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  395. 8000544: f443 1380 orr.w r3, r3, #1048576 ; 0x100000
  396. 8000548: d038 beq.n 80005bc <__aeabi_dmul+0xb4>
  397. 800054a: fba0 ce02 umull ip, lr, r0, r2
  398. 800054e: f04f 0500 mov.w r5, #0
  399. 8000552: fbe1 e502 umlal lr, r5, r1, r2
  400. 8000556: f006 4200 and.w r2, r6, #2147483648 ; 0x80000000
  401. 800055a: fbe0 e503 umlal lr, r5, r0, r3
  402. 800055e: f04f 0600 mov.w r6, #0
  403. 8000562: fbe1 5603 umlal r5, r6, r1, r3
  404. 8000566: f09c 0f00 teq ip, #0
  405. 800056a: bf18 it ne
  406. 800056c: f04e 0e01 orrne.w lr, lr, #1
  407. 8000570: f1a4 04ff sub.w r4, r4, #255 ; 0xff
  408. 8000574: f5b6 7f00 cmp.w r6, #512 ; 0x200
  409. 8000578: f564 7440 sbc.w r4, r4, #768 ; 0x300
  410. 800057c: d204 bcs.n 8000588 <__aeabi_dmul+0x80>
  411. 800057e: ea5f 0e4e movs.w lr, lr, lsl #1
  412. 8000582: 416d adcs r5, r5
  413. 8000584: eb46 0606 adc.w r6, r6, r6
  414. 8000588: ea42 21c6 orr.w r1, r2, r6, lsl #11
  415. 800058c: ea41 5155 orr.w r1, r1, r5, lsr #21
  416. 8000590: ea4f 20c5 mov.w r0, r5, lsl #11
  417. 8000594: ea40 505e orr.w r0, r0, lr, lsr #21
  418. 8000598: ea4f 2ece mov.w lr, lr, lsl #11
  419. 800059c: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd
  420. 80005a0: bf88 it hi
  421. 80005a2: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700
  422. 80005a6: d81e bhi.n 80005e6 <__aeabi_dmul+0xde>
  423. 80005a8: f1be 4f00 cmp.w lr, #2147483648 ; 0x80000000
  424. 80005ac: bf08 it eq
  425. 80005ae: ea5f 0e50 movseq.w lr, r0, lsr #1
  426. 80005b2: f150 0000 adcs.w r0, r0, #0
  427. 80005b6: eb41 5104 adc.w r1, r1, r4, lsl #20
  428. 80005ba: bd70 pop {r4, r5, r6, pc}
  429. 80005bc: f006 4600 and.w r6, r6, #2147483648 ; 0x80000000
  430. 80005c0: ea46 0101 orr.w r1, r6, r1
  431. 80005c4: ea40 0002 orr.w r0, r0, r2
  432. 80005c8: ea81 0103 eor.w r1, r1, r3
  433. 80005cc: ebb4 045c subs.w r4, r4, ip, lsr #1
  434. 80005d0: bfc2 ittt gt
  435. 80005d2: ebd4 050c rsbsgt r5, r4, ip
  436. 80005d6: ea41 5104 orrgt.w r1, r1, r4, lsl #20
  437. 80005da: bd70 popgt {r4, r5, r6, pc}
  438. 80005dc: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  439. 80005e0: f04f 0e00 mov.w lr, #0
  440. 80005e4: 3c01 subs r4, #1
  441. 80005e6: f300 80ab bgt.w 8000740 <__aeabi_dmul+0x238>
  442. 80005ea: f114 0f36 cmn.w r4, #54 ; 0x36
  443. 80005ee: bfde ittt le
  444. 80005f0: 2000 movle r0, #0
  445. 80005f2: f001 4100 andle.w r1, r1, #2147483648 ; 0x80000000
  446. 80005f6: bd70 pople {r4, r5, r6, pc}
  447. 80005f8: f1c4 0400 rsb r4, r4, #0
  448. 80005fc: 3c20 subs r4, #32
  449. 80005fe: da35 bge.n 800066c <__aeabi_dmul+0x164>
  450. 8000600: 340c adds r4, #12
  451. 8000602: dc1b bgt.n 800063c <__aeabi_dmul+0x134>
  452. 8000604: f104 0414 add.w r4, r4, #20
  453. 8000608: f1c4 0520 rsb r5, r4, #32
  454. 800060c: fa00 f305 lsl.w r3, r0, r5
  455. 8000610: fa20 f004 lsr.w r0, r0, r4
  456. 8000614: fa01 f205 lsl.w r2, r1, r5
  457. 8000618: ea40 0002 orr.w r0, r0, r2
  458. 800061c: f001 4200 and.w r2, r1, #2147483648 ; 0x80000000
  459. 8000620: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000
  460. 8000624: eb10 70d3 adds.w r0, r0, r3, lsr #31
  461. 8000628: fa21 f604 lsr.w r6, r1, r4
  462. 800062c: eb42 0106 adc.w r1, r2, r6
  463. 8000630: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
  464. 8000634: bf08 it eq
  465. 8000636: ea20 70d3 biceq.w r0, r0, r3, lsr #31
  466. 800063a: bd70 pop {r4, r5, r6, pc}
  467. 800063c: f1c4 040c rsb r4, r4, #12
  468. 8000640: f1c4 0520 rsb r5, r4, #32
  469. 8000644: fa00 f304 lsl.w r3, r0, r4
  470. 8000648: fa20 f005 lsr.w r0, r0, r5
  471. 800064c: fa01 f204 lsl.w r2, r1, r4
  472. 8000650: ea40 0002 orr.w r0, r0, r2
  473. 8000654: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  474. 8000658: eb10 70d3 adds.w r0, r0, r3, lsr #31
  475. 800065c: f141 0100 adc.w r1, r1, #0
  476. 8000660: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
  477. 8000664: bf08 it eq
  478. 8000666: ea20 70d3 biceq.w r0, r0, r3, lsr #31
  479. 800066a: bd70 pop {r4, r5, r6, pc}
  480. 800066c: f1c4 0520 rsb r5, r4, #32
  481. 8000670: fa00 f205 lsl.w r2, r0, r5
  482. 8000674: ea4e 0e02 orr.w lr, lr, r2
  483. 8000678: fa20 f304 lsr.w r3, r0, r4
  484. 800067c: fa01 f205 lsl.w r2, r1, r5
  485. 8000680: ea43 0302 orr.w r3, r3, r2
  486. 8000684: fa21 f004 lsr.w r0, r1, r4
  487. 8000688: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  488. 800068c: fa21 f204 lsr.w r2, r1, r4
  489. 8000690: ea20 0002 bic.w r0, r0, r2
  490. 8000694: eb00 70d3 add.w r0, r0, r3, lsr #31
  491. 8000698: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
  492. 800069c: bf08 it eq
  493. 800069e: ea20 70d3 biceq.w r0, r0, r3, lsr #31
  494. 80006a2: bd70 pop {r4, r5, r6, pc}
  495. 80006a4: f094 0f00 teq r4, #0
  496. 80006a8: d10f bne.n 80006ca <__aeabi_dmul+0x1c2>
  497. 80006aa: f001 4600 and.w r6, r1, #2147483648 ; 0x80000000
  498. 80006ae: 0040 lsls r0, r0, #1
  499. 80006b0: eb41 0101 adc.w r1, r1, r1
  500. 80006b4: f411 1f80 tst.w r1, #1048576 ; 0x100000
  501. 80006b8: bf08 it eq
  502. 80006ba: 3c01 subeq r4, #1
  503. 80006bc: d0f7 beq.n 80006ae <__aeabi_dmul+0x1a6>
  504. 80006be: ea41 0106 orr.w r1, r1, r6
  505. 80006c2: f095 0f00 teq r5, #0
  506. 80006c6: bf18 it ne
  507. 80006c8: 4770 bxne lr
  508. 80006ca: f003 4600 and.w r6, r3, #2147483648 ; 0x80000000
  509. 80006ce: 0052 lsls r2, r2, #1
  510. 80006d0: eb43 0303 adc.w r3, r3, r3
  511. 80006d4: f413 1f80 tst.w r3, #1048576 ; 0x100000
  512. 80006d8: bf08 it eq
  513. 80006da: 3d01 subeq r5, #1
  514. 80006dc: d0f7 beq.n 80006ce <__aeabi_dmul+0x1c6>
  515. 80006de: ea43 0306 orr.w r3, r3, r6
  516. 80006e2: 4770 bx lr
  517. 80006e4: ea94 0f0c teq r4, ip
  518. 80006e8: ea0c 5513 and.w r5, ip, r3, lsr #20
  519. 80006ec: bf18 it ne
  520. 80006ee: ea95 0f0c teqne r5, ip
  521. 80006f2: d00c beq.n 800070e <__aeabi_dmul+0x206>
  522. 80006f4: ea50 0641 orrs.w r6, r0, r1, lsl #1
  523. 80006f8: bf18 it ne
  524. 80006fa: ea52 0643 orrsne.w r6, r2, r3, lsl #1
  525. 80006fe: d1d1 bne.n 80006a4 <__aeabi_dmul+0x19c>
  526. 8000700: ea81 0103 eor.w r1, r1, r3
  527. 8000704: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  528. 8000708: f04f 0000 mov.w r0, #0
  529. 800070c: bd70 pop {r4, r5, r6, pc}
  530. 800070e: ea50 0641 orrs.w r6, r0, r1, lsl #1
  531. 8000712: bf06 itte eq
  532. 8000714: 4610 moveq r0, r2
  533. 8000716: 4619 moveq r1, r3
  534. 8000718: ea52 0643 orrsne.w r6, r2, r3, lsl #1
  535. 800071c: d019 beq.n 8000752 <__aeabi_dmul+0x24a>
  536. 800071e: ea94 0f0c teq r4, ip
  537. 8000722: d102 bne.n 800072a <__aeabi_dmul+0x222>
  538. 8000724: ea50 3601 orrs.w r6, r0, r1, lsl #12
  539. 8000728: d113 bne.n 8000752 <__aeabi_dmul+0x24a>
  540. 800072a: ea95 0f0c teq r5, ip
  541. 800072e: d105 bne.n 800073c <__aeabi_dmul+0x234>
  542. 8000730: ea52 3603 orrs.w r6, r2, r3, lsl #12
  543. 8000734: bf1c itt ne
  544. 8000736: 4610 movne r0, r2
  545. 8000738: 4619 movne r1, r3
  546. 800073a: d10a bne.n 8000752 <__aeabi_dmul+0x24a>
  547. 800073c: ea81 0103 eor.w r1, r1, r3
  548. 8000740: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000
  549. 8000744: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000
  550. 8000748: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000
  551. 800074c: f04f 0000 mov.w r0, #0
  552. 8000750: bd70 pop {r4, r5, r6, pc}
  553. 8000752: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000
  554. 8000756: f441 0178 orr.w r1, r1, #16252928 ; 0xf80000
  555. 800075a: bd70 pop {r4, r5, r6, pc}
  556. 0800075c <__aeabi_ddiv>:
  557. 800075c: b570 push {r4, r5, r6, lr}
  558. 800075e: f04f 0cff mov.w ip, #255 ; 0xff
  559. 8000762: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700
  560. 8000766: ea1c 5411 ands.w r4, ip, r1, lsr #20
  561. 800076a: bf1d ittte ne
  562. 800076c: ea1c 5513 andsne.w r5, ip, r3, lsr #20
  563. 8000770: ea94 0f0c teqne r4, ip
  564. 8000774: ea95 0f0c teqne r5, ip
  565. 8000778: f000 f8a7 bleq 80008ca <__aeabi_ddiv+0x16e>
  566. 800077c: eba4 0405 sub.w r4, r4, r5
  567. 8000780: ea81 0e03 eor.w lr, r1, r3
  568. 8000784: ea52 3503 orrs.w r5, r2, r3, lsl #12
  569. 8000788: ea4f 3101 mov.w r1, r1, lsl #12
  570. 800078c: f000 8088 beq.w 80008a0 <__aeabi_ddiv+0x144>
  571. 8000790: ea4f 3303 mov.w r3, r3, lsl #12
  572. 8000794: f04f 5580 mov.w r5, #268435456 ; 0x10000000
  573. 8000798: ea45 1313 orr.w r3, r5, r3, lsr #4
  574. 800079c: ea43 6312 orr.w r3, r3, r2, lsr #24
  575. 80007a0: ea4f 2202 mov.w r2, r2, lsl #8
  576. 80007a4: ea45 1511 orr.w r5, r5, r1, lsr #4
  577. 80007a8: ea45 6510 orr.w r5, r5, r0, lsr #24
  578. 80007ac: ea4f 2600 mov.w r6, r0, lsl #8
  579. 80007b0: f00e 4100 and.w r1, lr, #2147483648 ; 0x80000000
  580. 80007b4: 429d cmp r5, r3
  581. 80007b6: bf08 it eq
  582. 80007b8: 4296 cmpeq r6, r2
  583. 80007ba: f144 04fd adc.w r4, r4, #253 ; 0xfd
  584. 80007be: f504 7440 add.w r4, r4, #768 ; 0x300
  585. 80007c2: d202 bcs.n 80007ca <__aeabi_ddiv+0x6e>
  586. 80007c4: 085b lsrs r3, r3, #1
  587. 80007c6: ea4f 0232 mov.w r2, r2, rrx
  588. 80007ca: 1ab6 subs r6, r6, r2
  589. 80007cc: eb65 0503 sbc.w r5, r5, r3
  590. 80007d0: 085b lsrs r3, r3, #1
  591. 80007d2: ea4f 0232 mov.w r2, r2, rrx
  592. 80007d6: f44f 1080 mov.w r0, #1048576 ; 0x100000
  593. 80007da: f44f 2c00 mov.w ip, #524288 ; 0x80000
  594. 80007de: ebb6 0e02 subs.w lr, r6, r2
  595. 80007e2: eb75 0e03 sbcs.w lr, r5, r3
  596. 80007e6: bf22 ittt cs
  597. 80007e8: 1ab6 subcs r6, r6, r2
  598. 80007ea: 4675 movcs r5, lr
  599. 80007ec: ea40 000c orrcs.w r0, r0, ip
  600. 80007f0: 085b lsrs r3, r3, #1
  601. 80007f2: ea4f 0232 mov.w r2, r2, rrx
  602. 80007f6: ebb6 0e02 subs.w lr, r6, r2
  603. 80007fa: eb75 0e03 sbcs.w lr, r5, r3
  604. 80007fe: bf22 ittt cs
  605. 8000800: 1ab6 subcs r6, r6, r2
  606. 8000802: 4675 movcs r5, lr
  607. 8000804: ea40 005c orrcs.w r0, r0, ip, lsr #1
  608. 8000808: 085b lsrs r3, r3, #1
  609. 800080a: ea4f 0232 mov.w r2, r2, rrx
  610. 800080e: ebb6 0e02 subs.w lr, r6, r2
  611. 8000812: eb75 0e03 sbcs.w lr, r5, r3
  612. 8000816: bf22 ittt cs
  613. 8000818: 1ab6 subcs r6, r6, r2
  614. 800081a: 4675 movcs r5, lr
  615. 800081c: ea40 009c orrcs.w r0, r0, ip, lsr #2
  616. 8000820: 085b lsrs r3, r3, #1
  617. 8000822: ea4f 0232 mov.w r2, r2, rrx
  618. 8000826: ebb6 0e02 subs.w lr, r6, r2
  619. 800082a: eb75 0e03 sbcs.w lr, r5, r3
  620. 800082e: bf22 ittt cs
  621. 8000830: 1ab6 subcs r6, r6, r2
  622. 8000832: 4675 movcs r5, lr
  623. 8000834: ea40 00dc orrcs.w r0, r0, ip, lsr #3
  624. 8000838: ea55 0e06 orrs.w lr, r5, r6
  625. 800083c: d018 beq.n 8000870 <__aeabi_ddiv+0x114>
  626. 800083e: ea4f 1505 mov.w r5, r5, lsl #4
  627. 8000842: ea45 7516 orr.w r5, r5, r6, lsr #28
  628. 8000846: ea4f 1606 mov.w r6, r6, lsl #4
  629. 800084a: ea4f 03c3 mov.w r3, r3, lsl #3
  630. 800084e: ea43 7352 orr.w r3, r3, r2, lsr #29
  631. 8000852: ea4f 02c2 mov.w r2, r2, lsl #3
  632. 8000856: ea5f 1c1c movs.w ip, ip, lsr #4
  633. 800085a: d1c0 bne.n 80007de <__aeabi_ddiv+0x82>
  634. 800085c: f411 1f80 tst.w r1, #1048576 ; 0x100000
  635. 8000860: d10b bne.n 800087a <__aeabi_ddiv+0x11e>
  636. 8000862: ea41 0100 orr.w r1, r1, r0
  637. 8000866: f04f 0000 mov.w r0, #0
  638. 800086a: f04f 4c00 mov.w ip, #2147483648 ; 0x80000000
  639. 800086e: e7b6 b.n 80007de <__aeabi_ddiv+0x82>
  640. 8000870: f411 1f80 tst.w r1, #1048576 ; 0x100000
  641. 8000874: bf04 itt eq
  642. 8000876: 4301 orreq r1, r0
  643. 8000878: 2000 moveq r0, #0
  644. 800087a: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd
  645. 800087e: bf88 it hi
  646. 8000880: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700
  647. 8000884: f63f aeaf bhi.w 80005e6 <__aeabi_dmul+0xde>
  648. 8000888: ebb5 0c03 subs.w ip, r5, r3
  649. 800088c: bf04 itt eq
  650. 800088e: ebb6 0c02 subseq.w ip, r6, r2
  651. 8000892: ea5f 0c50 movseq.w ip, r0, lsr #1
  652. 8000896: f150 0000 adcs.w r0, r0, #0
  653. 800089a: eb41 5104 adc.w r1, r1, r4, lsl #20
  654. 800089e: bd70 pop {r4, r5, r6, pc}
  655. 80008a0: f00e 4e00 and.w lr, lr, #2147483648 ; 0x80000000
  656. 80008a4: ea4e 3111 orr.w r1, lr, r1, lsr #12
  657. 80008a8: eb14 045c adds.w r4, r4, ip, lsr #1
  658. 80008ac: bfc2 ittt gt
  659. 80008ae: ebd4 050c rsbsgt r5, r4, ip
  660. 80008b2: ea41 5104 orrgt.w r1, r1, r4, lsl #20
  661. 80008b6: bd70 popgt {r4, r5, r6, pc}
  662. 80008b8: f441 1180 orr.w r1, r1, #1048576 ; 0x100000
  663. 80008bc: f04f 0e00 mov.w lr, #0
  664. 80008c0: 3c01 subs r4, #1
  665. 80008c2: e690 b.n 80005e6 <__aeabi_dmul+0xde>
  666. 80008c4: ea45 0e06 orr.w lr, r5, r6
  667. 80008c8: e68d b.n 80005e6 <__aeabi_dmul+0xde>
  668. 80008ca: ea0c 5513 and.w r5, ip, r3, lsr #20
  669. 80008ce: ea94 0f0c teq r4, ip
  670. 80008d2: bf08 it eq
  671. 80008d4: ea95 0f0c teqeq r5, ip
  672. 80008d8: f43f af3b beq.w 8000752 <__aeabi_dmul+0x24a>
  673. 80008dc: ea94 0f0c teq r4, ip
  674. 80008e0: d10a bne.n 80008f8 <__aeabi_ddiv+0x19c>
  675. 80008e2: ea50 3401 orrs.w r4, r0, r1, lsl #12
  676. 80008e6: f47f af34 bne.w 8000752 <__aeabi_dmul+0x24a>
  677. 80008ea: ea95 0f0c teq r5, ip
  678. 80008ee: f47f af25 bne.w 800073c <__aeabi_dmul+0x234>
  679. 80008f2: 4610 mov r0, r2
  680. 80008f4: 4619 mov r1, r3
  681. 80008f6: e72c b.n 8000752 <__aeabi_dmul+0x24a>
  682. 80008f8: ea95 0f0c teq r5, ip
  683. 80008fc: d106 bne.n 800090c <__aeabi_ddiv+0x1b0>
  684. 80008fe: ea52 3503 orrs.w r5, r2, r3, lsl #12
  685. 8000902: f43f aefd beq.w 8000700 <__aeabi_dmul+0x1f8>
  686. 8000906: 4610 mov r0, r2
  687. 8000908: 4619 mov r1, r3
  688. 800090a: e722 b.n 8000752 <__aeabi_dmul+0x24a>
  689. 800090c: ea50 0641 orrs.w r6, r0, r1, lsl #1
  690. 8000910: bf18 it ne
  691. 8000912: ea52 0643 orrsne.w r6, r2, r3, lsl #1
  692. 8000916: f47f aec5 bne.w 80006a4 <__aeabi_dmul+0x19c>
  693. 800091a: ea50 0441 orrs.w r4, r0, r1, lsl #1
  694. 800091e: f47f af0d bne.w 800073c <__aeabi_dmul+0x234>
  695. 8000922: ea52 0543 orrs.w r5, r2, r3, lsl #1
  696. 8000926: f47f aeeb bne.w 8000700 <__aeabi_dmul+0x1f8>
  697. 800092a: e712 b.n 8000752 <__aeabi_dmul+0x24a>
  698. 0800092c <__gedf2>:
  699. 800092c: f04f 3cff mov.w ip, #4294967295 ; 0xffffffff
  700. 8000930: e006 b.n 8000940 <__cmpdf2+0x4>
  701. 8000932: bf00 nop
  702. 08000934 <__ledf2>:
  703. 8000934: f04f 0c01 mov.w ip, #1
  704. 8000938: e002 b.n 8000940 <__cmpdf2+0x4>
  705. 800093a: bf00 nop
  706. 0800093c <__cmpdf2>:
  707. 800093c: f04f 0c01 mov.w ip, #1
  708. 8000940: f84d cd04 str.w ip, [sp, #-4]!
  709. 8000944: ea4f 0c41 mov.w ip, r1, lsl #1
  710. 8000948: ea7f 5c6c mvns.w ip, ip, asr #21
  711. 800094c: ea4f 0c43 mov.w ip, r3, lsl #1
  712. 8000950: bf18 it ne
  713. 8000952: ea7f 5c6c mvnsne.w ip, ip, asr #21
  714. 8000956: d01b beq.n 8000990 <__cmpdf2+0x54>
  715. 8000958: b001 add sp, #4
  716. 800095a: ea50 0c41 orrs.w ip, r0, r1, lsl #1
  717. 800095e: bf0c ite eq
  718. 8000960: ea52 0c43 orrseq.w ip, r2, r3, lsl #1
  719. 8000964: ea91 0f03 teqne r1, r3
  720. 8000968: bf02 ittt eq
  721. 800096a: ea90 0f02 teqeq r0, r2
  722. 800096e: 2000 moveq r0, #0
  723. 8000970: 4770 bxeq lr
  724. 8000972: f110 0f00 cmn.w r0, #0
  725. 8000976: ea91 0f03 teq r1, r3
  726. 800097a: bf58 it pl
  727. 800097c: 4299 cmppl r1, r3
  728. 800097e: bf08 it eq
  729. 8000980: 4290 cmpeq r0, r2
  730. 8000982: bf2c ite cs
  731. 8000984: 17d8 asrcs r0, r3, #31
  732. 8000986: ea6f 70e3 mvncc.w r0, r3, asr #31
  733. 800098a: f040 0001 orr.w r0, r0, #1
  734. 800098e: 4770 bx lr
  735. 8000990: ea4f 0c41 mov.w ip, r1, lsl #1
  736. 8000994: ea7f 5c6c mvns.w ip, ip, asr #21
  737. 8000998: d102 bne.n 80009a0 <__cmpdf2+0x64>
  738. 800099a: ea50 3c01 orrs.w ip, r0, r1, lsl #12
  739. 800099e: d107 bne.n 80009b0 <__cmpdf2+0x74>
  740. 80009a0: ea4f 0c43 mov.w ip, r3, lsl #1
  741. 80009a4: ea7f 5c6c mvns.w ip, ip, asr #21
  742. 80009a8: d1d6 bne.n 8000958 <__cmpdf2+0x1c>
  743. 80009aa: ea52 3c03 orrs.w ip, r2, r3, lsl #12
  744. 80009ae: d0d3 beq.n 8000958 <__cmpdf2+0x1c>
  745. 80009b0: f85d 0b04 ldr.w r0, [sp], #4
  746. 80009b4: 4770 bx lr
  747. 80009b6: bf00 nop
  748. 080009b8 <__aeabi_cdrcmple>:
  749. 80009b8: 4684 mov ip, r0
  750. 80009ba: 4610 mov r0, r2
  751. 80009bc: 4662 mov r2, ip
  752. 80009be: 468c mov ip, r1
  753. 80009c0: 4619 mov r1, r3
  754. 80009c2: 4663 mov r3, ip
  755. 80009c4: e000 b.n 80009c8 <__aeabi_cdcmpeq>
  756. 80009c6: bf00 nop
  757. 080009c8 <__aeabi_cdcmpeq>:
  758. 80009c8: b501 push {r0, lr}
  759. 80009ca: f7ff ffb7 bl 800093c <__cmpdf2>
  760. 80009ce: 2800 cmp r0, #0
  761. 80009d0: bf48 it mi
  762. 80009d2: f110 0f00 cmnmi.w r0, #0
  763. 80009d6: bd01 pop {r0, pc}
  764. 080009d8 <__aeabi_dcmpeq>:
  765. 80009d8: f84d ed08 str.w lr, [sp, #-8]!
  766. 80009dc: f7ff fff4 bl 80009c8 <__aeabi_cdcmpeq>
  767. 80009e0: bf0c ite eq
  768. 80009e2: 2001 moveq r0, #1
  769. 80009e4: 2000 movne r0, #0
  770. 80009e6: f85d fb08 ldr.w pc, [sp], #8
  771. 80009ea: bf00 nop
  772. 080009ec <__aeabi_dcmplt>:
  773. 80009ec: f84d ed08 str.w lr, [sp, #-8]!
  774. 80009f0: f7ff ffea bl 80009c8 <__aeabi_cdcmpeq>
  775. 80009f4: bf34 ite cc
  776. 80009f6: 2001 movcc r0, #1
  777. 80009f8: 2000 movcs r0, #0
  778. 80009fa: f85d fb08 ldr.w pc, [sp], #8
  779. 80009fe: bf00 nop
  780. 08000a00 <__aeabi_dcmple>:
  781. 8000a00: f84d ed08 str.w lr, [sp, #-8]!
  782. 8000a04: f7ff ffe0 bl 80009c8 <__aeabi_cdcmpeq>
  783. 8000a08: bf94 ite ls
  784. 8000a0a: 2001 movls r0, #1
  785. 8000a0c: 2000 movhi r0, #0
  786. 8000a0e: f85d fb08 ldr.w pc, [sp], #8
  787. 8000a12: bf00 nop
  788. 08000a14 <__aeabi_dcmpge>:
  789. 8000a14: f84d ed08 str.w lr, [sp, #-8]!
  790. 8000a18: f7ff ffce bl 80009b8 <__aeabi_cdrcmple>
  791. 8000a1c: bf94 ite ls
  792. 8000a1e: 2001 movls r0, #1
  793. 8000a20: 2000 movhi r0, #0
  794. 8000a22: f85d fb08 ldr.w pc, [sp], #8
  795. 8000a26: bf00 nop
  796. 08000a28 <__aeabi_dcmpgt>:
  797. 8000a28: f84d ed08 str.w lr, [sp, #-8]!
  798. 8000a2c: f7ff ffc4 bl 80009b8 <__aeabi_cdrcmple>
  799. 8000a30: bf34 ite cc
  800. 8000a32: 2001 movcc r0, #1
  801. 8000a34: 2000 movcs r0, #0
  802. 8000a36: f85d fb08 ldr.w pc, [sp], #8
  803. 8000a3a: bf00 nop
  804. 08000a3c <__aeabi_dcmpun>:
  805. 8000a3c: ea4f 0c41 mov.w ip, r1, lsl #1
  806. 8000a40: ea7f 5c6c mvns.w ip, ip, asr #21
  807. 8000a44: d102 bne.n 8000a4c <__aeabi_dcmpun+0x10>
  808. 8000a46: ea50 3c01 orrs.w ip, r0, r1, lsl #12
  809. 8000a4a: d10a bne.n 8000a62 <__aeabi_dcmpun+0x26>
  810. 8000a4c: ea4f 0c43 mov.w ip, r3, lsl #1
  811. 8000a50: ea7f 5c6c mvns.w ip, ip, asr #21
  812. 8000a54: d102 bne.n 8000a5c <__aeabi_dcmpun+0x20>
  813. 8000a56: ea52 3c03 orrs.w ip, r2, r3, lsl #12
  814. 8000a5a: d102 bne.n 8000a62 <__aeabi_dcmpun+0x26>
  815. 8000a5c: f04f 0000 mov.w r0, #0
  816. 8000a60: 4770 bx lr
  817. 8000a62: f04f 0001 mov.w r0, #1
  818. 8000a66: 4770 bx lr
  819. 08000a68 <__aeabi_d2iz>:
  820. 8000a68: ea4f 0241 mov.w r2, r1, lsl #1
  821. 8000a6c: f512 1200 adds.w r2, r2, #2097152 ; 0x200000
  822. 8000a70: d215 bcs.n 8000a9e <__aeabi_d2iz+0x36>
  823. 8000a72: d511 bpl.n 8000a98 <__aeabi_d2iz+0x30>
  824. 8000a74: f46f 7378 mvn.w r3, #992 ; 0x3e0
  825. 8000a78: ebb3 5262 subs.w r2, r3, r2, asr #21
  826. 8000a7c: d912 bls.n 8000aa4 <__aeabi_d2iz+0x3c>
  827. 8000a7e: ea4f 23c1 mov.w r3, r1, lsl #11
  828. 8000a82: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  829. 8000a86: ea43 5350 orr.w r3, r3, r0, lsr #21
  830. 8000a8a: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
  831. 8000a8e: fa23 f002 lsr.w r0, r3, r2
  832. 8000a92: bf18 it ne
  833. 8000a94: 4240 negne r0, r0
  834. 8000a96: 4770 bx lr
  835. 8000a98: f04f 0000 mov.w r0, #0
  836. 8000a9c: 4770 bx lr
  837. 8000a9e: ea50 3001 orrs.w r0, r0, r1, lsl #12
  838. 8000aa2: d105 bne.n 8000ab0 <__aeabi_d2iz+0x48>
  839. 8000aa4: f011 4000 ands.w r0, r1, #2147483648 ; 0x80000000
  840. 8000aa8: bf08 it eq
  841. 8000aaa: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000
  842. 8000aae: 4770 bx lr
  843. 8000ab0: f04f 0000 mov.w r0, #0
  844. 8000ab4: 4770 bx lr
  845. 8000ab6: bf00 nop
  846. 08000ab8 <__aeabi_frsub>:
  847. 8000ab8: f080 4000 eor.w r0, r0, #2147483648 ; 0x80000000
  848. 8000abc: e002 b.n 8000ac4 <__addsf3>
  849. 8000abe: bf00 nop
  850. 08000ac0 <__aeabi_fsub>:
  851. 8000ac0: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000
  852. 08000ac4 <__addsf3>:
  853. 8000ac4: 0042 lsls r2, r0, #1
  854. 8000ac6: bf1f itttt ne
  855. 8000ac8: ea5f 0341 movsne.w r3, r1, lsl #1
  856. 8000acc: ea92 0f03 teqne r2, r3
  857. 8000ad0: ea7f 6c22 mvnsne.w ip, r2, asr #24
  858. 8000ad4: ea7f 6c23 mvnsne.w ip, r3, asr #24
  859. 8000ad8: d06a beq.n 8000bb0 <__addsf3+0xec>
  860. 8000ada: ea4f 6212 mov.w r2, r2, lsr #24
  861. 8000ade: ebd2 6313 rsbs r3, r2, r3, lsr #24
  862. 8000ae2: bfc1 itttt gt
  863. 8000ae4: 18d2 addgt r2, r2, r3
  864. 8000ae6: 4041 eorgt r1, r0
  865. 8000ae8: 4048 eorgt r0, r1
  866. 8000aea: 4041 eorgt r1, r0
  867. 8000aec: bfb8 it lt
  868. 8000aee: 425b neglt r3, r3
  869. 8000af0: 2b19 cmp r3, #25
  870. 8000af2: bf88 it hi
  871. 8000af4: 4770 bxhi lr
  872. 8000af6: f010 4f00 tst.w r0, #2147483648 ; 0x80000000
  873. 8000afa: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
  874. 8000afe: f020 407f bic.w r0, r0, #4278190080 ; 0xff000000
  875. 8000b02: bf18 it ne
  876. 8000b04: 4240 negne r0, r0
  877. 8000b06: f011 4f00 tst.w r1, #2147483648 ; 0x80000000
  878. 8000b0a: f441 0100 orr.w r1, r1, #8388608 ; 0x800000
  879. 8000b0e: f021 417f bic.w r1, r1, #4278190080 ; 0xff000000
  880. 8000b12: bf18 it ne
  881. 8000b14: 4249 negne r1, r1
  882. 8000b16: ea92 0f03 teq r2, r3
  883. 8000b1a: d03f beq.n 8000b9c <__addsf3+0xd8>
  884. 8000b1c: f1a2 0201 sub.w r2, r2, #1
  885. 8000b20: fa41 fc03 asr.w ip, r1, r3
  886. 8000b24: eb10 000c adds.w r0, r0, ip
  887. 8000b28: f1c3 0320 rsb r3, r3, #32
  888. 8000b2c: fa01 f103 lsl.w r1, r1, r3
  889. 8000b30: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000
  890. 8000b34: d502 bpl.n 8000b3c <__addsf3+0x78>
  891. 8000b36: 4249 negs r1, r1
  892. 8000b38: eb60 0040 sbc.w r0, r0, r0, lsl #1
  893. 8000b3c: f5b0 0f00 cmp.w r0, #8388608 ; 0x800000
  894. 8000b40: d313 bcc.n 8000b6a <__addsf3+0xa6>
  895. 8000b42: f1b0 7f80 cmp.w r0, #16777216 ; 0x1000000
  896. 8000b46: d306 bcc.n 8000b56 <__addsf3+0x92>
  897. 8000b48: 0840 lsrs r0, r0, #1
  898. 8000b4a: ea4f 0131 mov.w r1, r1, rrx
  899. 8000b4e: f102 0201 add.w r2, r2, #1
  900. 8000b52: 2afe cmp r2, #254 ; 0xfe
  901. 8000b54: d251 bcs.n 8000bfa <__addsf3+0x136>
  902. 8000b56: f1b1 4f00 cmp.w r1, #2147483648 ; 0x80000000
  903. 8000b5a: eb40 50c2 adc.w r0, r0, r2, lsl #23
  904. 8000b5e: bf08 it eq
  905. 8000b60: f020 0001 biceq.w r0, r0, #1
  906. 8000b64: ea40 0003 orr.w r0, r0, r3
  907. 8000b68: 4770 bx lr
  908. 8000b6a: 0049 lsls r1, r1, #1
  909. 8000b6c: eb40 0000 adc.w r0, r0, r0
  910. 8000b70: 3a01 subs r2, #1
  911. 8000b72: bf28 it cs
  912. 8000b74: f5b0 0f00 cmpcs.w r0, #8388608 ; 0x800000
  913. 8000b78: d2ed bcs.n 8000b56 <__addsf3+0x92>
  914. 8000b7a: fab0 fc80 clz ip, r0
  915. 8000b7e: f1ac 0c08 sub.w ip, ip, #8
  916. 8000b82: ebb2 020c subs.w r2, r2, ip
  917. 8000b86: fa00 f00c lsl.w r0, r0, ip
  918. 8000b8a: bfaa itet ge
  919. 8000b8c: eb00 50c2 addge.w r0, r0, r2, lsl #23
  920. 8000b90: 4252 neglt r2, r2
  921. 8000b92: 4318 orrge r0, r3
  922. 8000b94: bfbc itt lt
  923. 8000b96: 40d0 lsrlt r0, r2
  924. 8000b98: 4318 orrlt r0, r3
  925. 8000b9a: 4770 bx lr
  926. 8000b9c: f092 0f00 teq r2, #0
  927. 8000ba0: f481 0100 eor.w r1, r1, #8388608 ; 0x800000
  928. 8000ba4: bf06 itte eq
  929. 8000ba6: f480 0000 eoreq.w r0, r0, #8388608 ; 0x800000
  930. 8000baa: 3201 addeq r2, #1
  931. 8000bac: 3b01 subne r3, #1
  932. 8000bae: e7b5 b.n 8000b1c <__addsf3+0x58>
  933. 8000bb0: ea4f 0341 mov.w r3, r1, lsl #1
  934. 8000bb4: ea7f 6c22 mvns.w ip, r2, asr #24
  935. 8000bb8: bf18 it ne
  936. 8000bba: ea7f 6c23 mvnsne.w ip, r3, asr #24
  937. 8000bbe: d021 beq.n 8000c04 <__addsf3+0x140>
  938. 8000bc0: ea92 0f03 teq r2, r3
  939. 8000bc4: d004 beq.n 8000bd0 <__addsf3+0x10c>
  940. 8000bc6: f092 0f00 teq r2, #0
  941. 8000bca: bf08 it eq
  942. 8000bcc: 4608 moveq r0, r1
  943. 8000bce: 4770 bx lr
  944. 8000bd0: ea90 0f01 teq r0, r1
  945. 8000bd4: bf1c itt ne
  946. 8000bd6: 2000 movne r0, #0
  947. 8000bd8: 4770 bxne lr
  948. 8000bda: f012 4f7f tst.w r2, #4278190080 ; 0xff000000
  949. 8000bde: d104 bne.n 8000bea <__addsf3+0x126>
  950. 8000be0: 0040 lsls r0, r0, #1
  951. 8000be2: bf28 it cs
  952. 8000be4: f040 4000 orrcs.w r0, r0, #2147483648 ; 0x80000000
  953. 8000be8: 4770 bx lr
  954. 8000bea: f112 7200 adds.w r2, r2, #33554432 ; 0x2000000
  955. 8000bee: bf3c itt cc
  956. 8000bf0: f500 0000 addcc.w r0, r0, #8388608 ; 0x800000
  957. 8000bf4: 4770 bxcc lr
  958. 8000bf6: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000
  959. 8000bfa: f043 40fe orr.w r0, r3, #2130706432 ; 0x7f000000
  960. 8000bfe: f440 0000 orr.w r0, r0, #8388608 ; 0x800000
  961. 8000c02: 4770 bx lr
  962. 8000c04: ea7f 6222 mvns.w r2, r2, asr #24
  963. 8000c08: bf16 itet ne
  964. 8000c0a: 4608 movne r0, r1
  965. 8000c0c: ea7f 6323 mvnseq.w r3, r3, asr #24
  966. 8000c10: 4601 movne r1, r0
  967. 8000c12: 0242 lsls r2, r0, #9
  968. 8000c14: bf06 itte eq
  969. 8000c16: ea5f 2341 movseq.w r3, r1, lsl #9
  970. 8000c1a: ea90 0f01 teqeq r0, r1
  971. 8000c1e: f440 0080 orrne.w r0, r0, #4194304 ; 0x400000
  972. 8000c22: 4770 bx lr
  973. 08000c24 <__aeabi_ui2f>:
  974. 8000c24: f04f 0300 mov.w r3, #0
  975. 8000c28: e004 b.n 8000c34 <__aeabi_i2f+0x8>
  976. 8000c2a: bf00 nop
  977. 08000c2c <__aeabi_i2f>:
  978. 8000c2c: f010 4300 ands.w r3, r0, #2147483648 ; 0x80000000
  979. 8000c30: bf48 it mi
  980. 8000c32: 4240 negmi r0, r0
  981. 8000c34: ea5f 0c00 movs.w ip, r0
  982. 8000c38: bf08 it eq
  983. 8000c3a: 4770 bxeq lr
  984. 8000c3c: f043 4396 orr.w r3, r3, #1258291200 ; 0x4b000000
  985. 8000c40: 4601 mov r1, r0
  986. 8000c42: f04f 0000 mov.w r0, #0
  987. 8000c46: e01c b.n 8000c82 <__aeabi_l2f+0x2a>
  988. 08000c48 <__aeabi_ul2f>:
  989. 8000c48: ea50 0201 orrs.w r2, r0, r1
  990. 8000c4c: bf08 it eq
  991. 8000c4e: 4770 bxeq lr
  992. 8000c50: f04f 0300 mov.w r3, #0
  993. 8000c54: e00a b.n 8000c6c <__aeabi_l2f+0x14>
  994. 8000c56: bf00 nop
  995. 08000c58 <__aeabi_l2f>:
  996. 8000c58: ea50 0201 orrs.w r2, r0, r1
  997. 8000c5c: bf08 it eq
  998. 8000c5e: 4770 bxeq lr
  999. 8000c60: f011 4300 ands.w r3, r1, #2147483648 ; 0x80000000
  1000. 8000c64: d502 bpl.n 8000c6c <__aeabi_l2f+0x14>
  1001. 8000c66: 4240 negs r0, r0
  1002. 8000c68: eb61 0141 sbc.w r1, r1, r1, lsl #1
  1003. 8000c6c: ea5f 0c01 movs.w ip, r1
  1004. 8000c70: bf02 ittt eq
  1005. 8000c72: 4684 moveq ip, r0
  1006. 8000c74: 4601 moveq r1, r0
  1007. 8000c76: 2000 moveq r0, #0
  1008. 8000c78: f043 43b6 orr.w r3, r3, #1526726656 ; 0x5b000000
  1009. 8000c7c: bf08 it eq
  1010. 8000c7e: f1a3 5380 subeq.w r3, r3, #268435456 ; 0x10000000
  1011. 8000c82: f5a3 0300 sub.w r3, r3, #8388608 ; 0x800000
  1012. 8000c86: fabc f28c clz r2, ip
  1013. 8000c8a: 3a08 subs r2, #8
  1014. 8000c8c: eba3 53c2 sub.w r3, r3, r2, lsl #23
  1015. 8000c90: db10 blt.n 8000cb4 <__aeabi_l2f+0x5c>
  1016. 8000c92: fa01 fc02 lsl.w ip, r1, r2
  1017. 8000c96: 4463 add r3, ip
  1018. 8000c98: fa00 fc02 lsl.w ip, r0, r2
  1019. 8000c9c: f1c2 0220 rsb r2, r2, #32
  1020. 8000ca0: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000
  1021. 8000ca4: fa20 f202 lsr.w r2, r0, r2
  1022. 8000ca8: eb43 0002 adc.w r0, r3, r2
  1023. 8000cac: bf08 it eq
  1024. 8000cae: f020 0001 biceq.w r0, r0, #1
  1025. 8000cb2: 4770 bx lr
  1026. 8000cb4: f102 0220 add.w r2, r2, #32
  1027. 8000cb8: fa01 fc02 lsl.w ip, r1, r2
  1028. 8000cbc: f1c2 0220 rsb r2, r2, #32
  1029. 8000cc0: ea50 004c orrs.w r0, r0, ip, lsl #1
  1030. 8000cc4: fa21 f202 lsr.w r2, r1, r2
  1031. 8000cc8: eb43 0002 adc.w r0, r3, r2
  1032. 8000ccc: bf08 it eq
  1033. 8000cce: ea20 70dc biceq.w r0, r0, ip, lsr #31
  1034. 8000cd2: 4770 bx lr
  1035. 08000cd4 <__aeabi_uldivmod>:
  1036. 8000cd4: b953 cbnz r3, 8000cec <__aeabi_uldivmod+0x18>
  1037. 8000cd6: b94a cbnz r2, 8000cec <__aeabi_uldivmod+0x18>
  1038. 8000cd8: 2900 cmp r1, #0
  1039. 8000cda: bf08 it eq
  1040. 8000cdc: 2800 cmpeq r0, #0
  1041. 8000cde: bf1c itt ne
  1042. 8000ce0: f04f 31ff movne.w r1, #4294967295 ; 0xffffffff
  1043. 8000ce4: f04f 30ff movne.w r0, #4294967295 ; 0xffffffff
  1044. 8000ce8: f000 b96e b.w 8000fc8 <__aeabi_idiv0>
  1045. 8000cec: f1ad 0c08 sub.w ip, sp, #8
  1046. 8000cf0: e96d ce04 strd ip, lr, [sp, #-16]!
  1047. 8000cf4: f000 f806 bl 8000d04 <__udivmoddi4>
  1048. 8000cf8: f8dd e004 ldr.w lr, [sp, #4]
  1049. 8000cfc: e9dd 2302 ldrd r2, r3, [sp, #8]
  1050. 8000d00: b004 add sp, #16
  1051. 8000d02: 4770 bx lr
  1052. 08000d04 <__udivmoddi4>:
  1053. 8000d04: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  1054. 8000d08: 9e08 ldr r6, [sp, #32]
  1055. 8000d0a: 460d mov r5, r1
  1056. 8000d0c: 4604 mov r4, r0
  1057. 8000d0e: 468e mov lr, r1
  1058. 8000d10: 2b00 cmp r3, #0
  1059. 8000d12: f040 8083 bne.w 8000e1c <__udivmoddi4+0x118>
  1060. 8000d16: 428a cmp r2, r1
  1061. 8000d18: 4617 mov r7, r2
  1062. 8000d1a: d947 bls.n 8000dac <__udivmoddi4+0xa8>
  1063. 8000d1c: fab2 f382 clz r3, r2
  1064. 8000d20: b14b cbz r3, 8000d36 <__udivmoddi4+0x32>
  1065. 8000d22: f1c3 0120 rsb r1, r3, #32
  1066. 8000d26: fa05 fe03 lsl.w lr, r5, r3
  1067. 8000d2a: fa20 f101 lsr.w r1, r0, r1
  1068. 8000d2e: 409f lsls r7, r3
  1069. 8000d30: ea41 0e0e orr.w lr, r1, lr
  1070. 8000d34: 409c lsls r4, r3
  1071. 8000d36: ea4f 4817 mov.w r8, r7, lsr #16
  1072. 8000d3a: fbbe fcf8 udiv ip, lr, r8
  1073. 8000d3e: fa1f f987 uxth.w r9, r7
  1074. 8000d42: fb08 e21c mls r2, r8, ip, lr
  1075. 8000d46: fb0c f009 mul.w r0, ip, r9
  1076. 8000d4a: 0c21 lsrs r1, r4, #16
  1077. 8000d4c: ea41 4202 orr.w r2, r1, r2, lsl #16
  1078. 8000d50: 4290 cmp r0, r2
  1079. 8000d52: d90a bls.n 8000d6a <__udivmoddi4+0x66>
  1080. 8000d54: 18ba adds r2, r7, r2
  1081. 8000d56: f10c 31ff add.w r1, ip, #4294967295 ; 0xffffffff
  1082. 8000d5a: f080 8118 bcs.w 8000f8e <__udivmoddi4+0x28a>
  1083. 8000d5e: 4290 cmp r0, r2
  1084. 8000d60: f240 8115 bls.w 8000f8e <__udivmoddi4+0x28a>
  1085. 8000d64: f1ac 0c02 sub.w ip, ip, #2
  1086. 8000d68: 443a add r2, r7
  1087. 8000d6a: 1a12 subs r2, r2, r0
  1088. 8000d6c: fbb2 f0f8 udiv r0, r2, r8
  1089. 8000d70: fb08 2210 mls r2, r8, r0, r2
  1090. 8000d74: fb00 f109 mul.w r1, r0, r9
  1091. 8000d78: b2a4 uxth r4, r4
  1092. 8000d7a: ea44 4402 orr.w r4, r4, r2, lsl #16
  1093. 8000d7e: 42a1 cmp r1, r4
  1094. 8000d80: d909 bls.n 8000d96 <__udivmoddi4+0x92>
  1095. 8000d82: 193c adds r4, r7, r4
  1096. 8000d84: f100 32ff add.w r2, r0, #4294967295 ; 0xffffffff
  1097. 8000d88: f080 8103 bcs.w 8000f92 <__udivmoddi4+0x28e>
  1098. 8000d8c: 42a1 cmp r1, r4
  1099. 8000d8e: f240 8100 bls.w 8000f92 <__udivmoddi4+0x28e>
  1100. 8000d92: 3802 subs r0, #2
  1101. 8000d94: 443c add r4, r7
  1102. 8000d96: 1a64 subs r4, r4, r1
  1103. 8000d98: 2100 movs r1, #0
  1104. 8000d9a: ea40 400c orr.w r0, r0, ip, lsl #16
  1105. 8000d9e: b11e cbz r6, 8000da8 <__udivmoddi4+0xa4>
  1106. 8000da0: 2200 movs r2, #0
  1107. 8000da2: 40dc lsrs r4, r3
  1108. 8000da4: e9c6 4200 strd r4, r2, [r6]
  1109. 8000da8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  1110. 8000dac: b902 cbnz r2, 8000db0 <__udivmoddi4+0xac>
  1111. 8000dae: deff udf #255 ; 0xff
  1112. 8000db0: fab2 f382 clz r3, r2
  1113. 8000db4: 2b00 cmp r3, #0
  1114. 8000db6: d14f bne.n 8000e58 <__udivmoddi4+0x154>
  1115. 8000db8: 1a8d subs r5, r1, r2
  1116. 8000dba: 2101 movs r1, #1
  1117. 8000dbc: ea4f 4e12 mov.w lr, r2, lsr #16
  1118. 8000dc0: fa1f f882 uxth.w r8, r2
  1119. 8000dc4: fbb5 fcfe udiv ip, r5, lr
  1120. 8000dc8: fb0e 551c mls r5, lr, ip, r5
  1121. 8000dcc: fb08 f00c mul.w r0, r8, ip
  1122. 8000dd0: 0c22 lsrs r2, r4, #16
  1123. 8000dd2: ea42 4505 orr.w r5, r2, r5, lsl #16
  1124. 8000dd6: 42a8 cmp r0, r5
  1125. 8000dd8: d907 bls.n 8000dea <__udivmoddi4+0xe6>
  1126. 8000dda: 197d adds r5, r7, r5
  1127. 8000ddc: f10c 32ff add.w r2, ip, #4294967295 ; 0xffffffff
  1128. 8000de0: d202 bcs.n 8000de8 <__udivmoddi4+0xe4>
  1129. 8000de2: 42a8 cmp r0, r5
  1130. 8000de4: f200 80e9 bhi.w 8000fba <__udivmoddi4+0x2b6>
  1131. 8000de8: 4694 mov ip, r2
  1132. 8000dea: 1a2d subs r5, r5, r0
  1133. 8000dec: fbb5 f0fe udiv r0, r5, lr
  1134. 8000df0: fb0e 5510 mls r5, lr, r0, r5
  1135. 8000df4: fb08 f800 mul.w r8, r8, r0
  1136. 8000df8: b2a4 uxth r4, r4
  1137. 8000dfa: ea44 4405 orr.w r4, r4, r5, lsl #16
  1138. 8000dfe: 45a0 cmp r8, r4
  1139. 8000e00: d907 bls.n 8000e12 <__udivmoddi4+0x10e>
  1140. 8000e02: 193c adds r4, r7, r4
  1141. 8000e04: f100 32ff add.w r2, r0, #4294967295 ; 0xffffffff
  1142. 8000e08: d202 bcs.n 8000e10 <__udivmoddi4+0x10c>
  1143. 8000e0a: 45a0 cmp r8, r4
  1144. 8000e0c: f200 80d9 bhi.w 8000fc2 <__udivmoddi4+0x2be>
  1145. 8000e10: 4610 mov r0, r2
  1146. 8000e12: eba4 0408 sub.w r4, r4, r8
  1147. 8000e16: ea40 400c orr.w r0, r0, ip, lsl #16
  1148. 8000e1a: e7c0 b.n 8000d9e <__udivmoddi4+0x9a>
  1149. 8000e1c: 428b cmp r3, r1
  1150. 8000e1e: d908 bls.n 8000e32 <__udivmoddi4+0x12e>
  1151. 8000e20: 2e00 cmp r6, #0
  1152. 8000e22: f000 80b1 beq.w 8000f88 <__udivmoddi4+0x284>
  1153. 8000e26: 2100 movs r1, #0
  1154. 8000e28: e9c6 0500 strd r0, r5, [r6]
  1155. 8000e2c: 4608 mov r0, r1
  1156. 8000e2e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  1157. 8000e32: fab3 f183 clz r1, r3
  1158. 8000e36: 2900 cmp r1, #0
  1159. 8000e38: d14b bne.n 8000ed2 <__udivmoddi4+0x1ce>
  1160. 8000e3a: 42ab cmp r3, r5
  1161. 8000e3c: d302 bcc.n 8000e44 <__udivmoddi4+0x140>
  1162. 8000e3e: 4282 cmp r2, r0
  1163. 8000e40: f200 80b9 bhi.w 8000fb6 <__udivmoddi4+0x2b2>
  1164. 8000e44: 1a84 subs r4, r0, r2
  1165. 8000e46: eb65 0303 sbc.w r3, r5, r3
  1166. 8000e4a: 2001 movs r0, #1
  1167. 8000e4c: 469e mov lr, r3
  1168. 8000e4e: 2e00 cmp r6, #0
  1169. 8000e50: d0aa beq.n 8000da8 <__udivmoddi4+0xa4>
  1170. 8000e52: e9c6 4e00 strd r4, lr, [r6]
  1171. 8000e56: e7a7 b.n 8000da8 <__udivmoddi4+0xa4>
  1172. 8000e58: 409f lsls r7, r3
  1173. 8000e5a: f1c3 0220 rsb r2, r3, #32
  1174. 8000e5e: 40d1 lsrs r1, r2
  1175. 8000e60: ea4f 4e17 mov.w lr, r7, lsr #16
  1176. 8000e64: fbb1 f0fe udiv r0, r1, lr
  1177. 8000e68: fa1f f887 uxth.w r8, r7
  1178. 8000e6c: fb0e 1110 mls r1, lr, r0, r1
  1179. 8000e70: fa24 f202 lsr.w r2, r4, r2
  1180. 8000e74: 409d lsls r5, r3
  1181. 8000e76: fb00 fc08 mul.w ip, r0, r8
  1182. 8000e7a: 432a orrs r2, r5
  1183. 8000e7c: 0c15 lsrs r5, r2, #16
  1184. 8000e7e: ea45 4501 orr.w r5, r5, r1, lsl #16
  1185. 8000e82: 45ac cmp ip, r5
  1186. 8000e84: fa04 f403 lsl.w r4, r4, r3
  1187. 8000e88: d909 bls.n 8000e9e <__udivmoddi4+0x19a>
  1188. 8000e8a: 197d adds r5, r7, r5
  1189. 8000e8c: f100 31ff add.w r1, r0, #4294967295 ; 0xffffffff
  1190. 8000e90: f080 808f bcs.w 8000fb2 <__udivmoddi4+0x2ae>
  1191. 8000e94: 45ac cmp ip, r5
  1192. 8000e96: f240 808c bls.w 8000fb2 <__udivmoddi4+0x2ae>
  1193. 8000e9a: 3802 subs r0, #2
  1194. 8000e9c: 443d add r5, r7
  1195. 8000e9e: eba5 050c sub.w r5, r5, ip
  1196. 8000ea2: fbb5 f1fe udiv r1, r5, lr
  1197. 8000ea6: fb0e 5c11 mls ip, lr, r1, r5
  1198. 8000eaa: fb01 f908 mul.w r9, r1, r8
  1199. 8000eae: b295 uxth r5, r2
  1200. 8000eb0: ea45 450c orr.w r5, r5, ip, lsl #16
  1201. 8000eb4: 45a9 cmp r9, r5
  1202. 8000eb6: d907 bls.n 8000ec8 <__udivmoddi4+0x1c4>
  1203. 8000eb8: 197d adds r5, r7, r5
  1204. 8000eba: f101 32ff add.w r2, r1, #4294967295 ; 0xffffffff
  1205. 8000ebe: d274 bcs.n 8000faa <__udivmoddi4+0x2a6>
  1206. 8000ec0: 45a9 cmp r9, r5
  1207. 8000ec2: d972 bls.n 8000faa <__udivmoddi4+0x2a6>
  1208. 8000ec4: 3902 subs r1, #2
  1209. 8000ec6: 443d add r5, r7
  1210. 8000ec8: eba5 0509 sub.w r5, r5, r9
  1211. 8000ecc: ea41 4100 orr.w r1, r1, r0, lsl #16
  1212. 8000ed0: e778 b.n 8000dc4 <__udivmoddi4+0xc0>
  1213. 8000ed2: f1c1 0720 rsb r7, r1, #32
  1214. 8000ed6: 408b lsls r3, r1
  1215. 8000ed8: fa22 fc07 lsr.w ip, r2, r7
  1216. 8000edc: ea4c 0c03 orr.w ip, ip, r3
  1217. 8000ee0: fa25 f407 lsr.w r4, r5, r7
  1218. 8000ee4: ea4f 4e1c mov.w lr, ip, lsr #16
  1219. 8000ee8: fbb4 f9fe udiv r9, r4, lr
  1220. 8000eec: fa1f f88c uxth.w r8, ip
  1221. 8000ef0: fb0e 4419 mls r4, lr, r9, r4
  1222. 8000ef4: fa20 f307 lsr.w r3, r0, r7
  1223. 8000ef8: fb09 fa08 mul.w sl, r9, r8
  1224. 8000efc: 408d lsls r5, r1
  1225. 8000efe: 431d orrs r5, r3
  1226. 8000f00: 0c2b lsrs r3, r5, #16
  1227. 8000f02: ea43 4404 orr.w r4, r3, r4, lsl #16
  1228. 8000f06: 45a2 cmp sl, r4
  1229. 8000f08: fa02 f201 lsl.w r2, r2, r1
  1230. 8000f0c: fa00 f301 lsl.w r3, r0, r1
  1231. 8000f10: d909 bls.n 8000f26 <__udivmoddi4+0x222>
  1232. 8000f12: eb1c 0404 adds.w r4, ip, r4
  1233. 8000f16: f109 30ff add.w r0, r9, #4294967295 ; 0xffffffff
  1234. 8000f1a: d248 bcs.n 8000fae <__udivmoddi4+0x2aa>
  1235. 8000f1c: 45a2 cmp sl, r4
  1236. 8000f1e: d946 bls.n 8000fae <__udivmoddi4+0x2aa>
  1237. 8000f20: f1a9 0902 sub.w r9, r9, #2
  1238. 8000f24: 4464 add r4, ip
  1239. 8000f26: eba4 040a sub.w r4, r4, sl
  1240. 8000f2a: fbb4 f0fe udiv r0, r4, lr
  1241. 8000f2e: fb0e 4410 mls r4, lr, r0, r4
  1242. 8000f32: fb00 fa08 mul.w sl, r0, r8
  1243. 8000f36: b2ad uxth r5, r5
  1244. 8000f38: ea45 4404 orr.w r4, r5, r4, lsl #16
  1245. 8000f3c: 45a2 cmp sl, r4
  1246. 8000f3e: d908 bls.n 8000f52 <__udivmoddi4+0x24e>
  1247. 8000f40: eb1c 0404 adds.w r4, ip, r4
  1248. 8000f44: f100 35ff add.w r5, r0, #4294967295 ; 0xffffffff
  1249. 8000f48: d22d bcs.n 8000fa6 <__udivmoddi4+0x2a2>
  1250. 8000f4a: 45a2 cmp sl, r4
  1251. 8000f4c: d92b bls.n 8000fa6 <__udivmoddi4+0x2a2>
  1252. 8000f4e: 3802 subs r0, #2
  1253. 8000f50: 4464 add r4, ip
  1254. 8000f52: ea40 4009 orr.w r0, r0, r9, lsl #16
  1255. 8000f56: fba0 8902 umull r8, r9, r0, r2
  1256. 8000f5a: eba4 040a sub.w r4, r4, sl
  1257. 8000f5e: 454c cmp r4, r9
  1258. 8000f60: 46c6 mov lr, r8
  1259. 8000f62: 464d mov r5, r9
  1260. 8000f64: d319 bcc.n 8000f9a <__udivmoddi4+0x296>
  1261. 8000f66: d016 beq.n 8000f96 <__udivmoddi4+0x292>
  1262. 8000f68: b15e cbz r6, 8000f82 <__udivmoddi4+0x27e>
  1263. 8000f6a: ebb3 020e subs.w r2, r3, lr
  1264. 8000f6e: eb64 0405 sbc.w r4, r4, r5
  1265. 8000f72: fa04 f707 lsl.w r7, r4, r7
  1266. 8000f76: fa22 f301 lsr.w r3, r2, r1
  1267. 8000f7a: 431f orrs r7, r3
  1268. 8000f7c: 40cc lsrs r4, r1
  1269. 8000f7e: e9c6 7400 strd r7, r4, [r6]
  1270. 8000f82: 2100 movs r1, #0
  1271. 8000f84: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  1272. 8000f88: 4631 mov r1, r6
  1273. 8000f8a: 4630 mov r0, r6
  1274. 8000f8c: e70c b.n 8000da8 <__udivmoddi4+0xa4>
  1275. 8000f8e: 468c mov ip, r1
  1276. 8000f90: e6eb b.n 8000d6a <__udivmoddi4+0x66>
  1277. 8000f92: 4610 mov r0, r2
  1278. 8000f94: e6ff b.n 8000d96 <__udivmoddi4+0x92>
  1279. 8000f96: 4543 cmp r3, r8
  1280. 8000f98: d2e6 bcs.n 8000f68 <__udivmoddi4+0x264>
  1281. 8000f9a: ebb8 0e02 subs.w lr, r8, r2
  1282. 8000f9e: eb69 050c sbc.w r5, r9, ip
  1283. 8000fa2: 3801 subs r0, #1
  1284. 8000fa4: e7e0 b.n 8000f68 <__udivmoddi4+0x264>
  1285. 8000fa6: 4628 mov r0, r5
  1286. 8000fa8: e7d3 b.n 8000f52 <__udivmoddi4+0x24e>
  1287. 8000faa: 4611 mov r1, r2
  1288. 8000fac: e78c b.n 8000ec8 <__udivmoddi4+0x1c4>
  1289. 8000fae: 4681 mov r9, r0
  1290. 8000fb0: e7b9 b.n 8000f26 <__udivmoddi4+0x222>
  1291. 8000fb2: 4608 mov r0, r1
  1292. 8000fb4: e773 b.n 8000e9e <__udivmoddi4+0x19a>
  1293. 8000fb6: 4608 mov r0, r1
  1294. 8000fb8: e749 b.n 8000e4e <__udivmoddi4+0x14a>
  1295. 8000fba: f1ac 0c02 sub.w ip, ip, #2
  1296. 8000fbe: 443d add r5, r7
  1297. 8000fc0: e713 b.n 8000dea <__udivmoddi4+0xe6>
  1298. 8000fc2: 3802 subs r0, #2
  1299. 8000fc4: 443c add r4, r7
  1300. 8000fc6: e724 b.n 8000e12 <__udivmoddi4+0x10e>
  1301. 08000fc8 <__aeabi_idiv0>:
  1302. 8000fc8: 4770 bx lr
  1303. 8000fca: bf00 nop
  1304. 08000fcc <HAL_COMP_TriggerCallback>:
  1305. /* USER CODE END PFP */
  1306. /* Private user code ---------------------------------------------------------*/
  1307. /* USER CODE BEGIN 0 */
  1308. void HAL_COMP_TriggerCallback(COMP_HandleTypeDef *hcomp)
  1309. {
  1310. 8000fcc: b480 push {r7}
  1311. 8000fce: b083 sub sp, #12
  1312. 8000fd0: af00 add r7, sp, #0
  1313. 8000fd2: 6078 str r0, [r7, #4]
  1314. pulses++;
  1315. 8000fd4: 4b04 ldr r3, [pc, #16] ; (8000fe8 <HAL_COMP_TriggerCallback+0x1c>)
  1316. 8000fd6: 681b ldr r3, [r3, #0]
  1317. 8000fd8: 3301 adds r3, #1
  1318. 8000fda: 4a03 ldr r2, [pc, #12] ; (8000fe8 <HAL_COMP_TriggerCallback+0x1c>)
  1319. 8000fdc: 6013 str r3, [r2, #0]
  1320. }
  1321. 8000fde: bf00 nop
  1322. 8000fe0: 370c adds r7, #12
  1323. 8000fe2: 46bd mov sp, r7
  1324. 8000fe4: bc80 pop {r7}
  1325. 8000fe6: 4770 bx lr
  1326. 8000fe8: 20000200 .word 0x20000200
  1327. 08000fec <HAL_GPIO_EXTI_Callback>:
  1328. void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
  1329. {
  1330. 8000fec: b480 push {r7}
  1331. 8000fee: b083 sub sp, #12
  1332. 8000ff0: af00 add r7, sp, #0
  1333. 8000ff2: 4603 mov r3, r0
  1334. 8000ff4: 80fb strh r3, [r7, #6]
  1335. Flags.Exti |= GPIO_Pin;
  1336. 8000ff6: 4b06 ldr r3, [pc, #24] ; (8001010 <HAL_GPIO_EXTI_Callback+0x24>)
  1337. 8000ff8: 895b ldrh r3, [r3, #10]
  1338. 8000ffa: b29a uxth r2, r3
  1339. 8000ffc: 88fb ldrh r3, [r7, #6]
  1340. 8000ffe: 4313 orrs r3, r2
  1341. 8001000: b29a uxth r2, r3
  1342. 8001002: 4b03 ldr r3, [pc, #12] ; (8001010 <HAL_GPIO_EXTI_Callback+0x24>)
  1343. 8001004: 815a strh r2, [r3, #10]
  1344. }
  1345. 8001006: bf00 nop
  1346. 8001008: 370c adds r7, #12
  1347. 800100a: 46bd mov sp, r7
  1348. 800100c: bc80 pop {r7}
  1349. 800100e: 4770 bx lr
  1350. 8001010: 20000684 .word 0x20000684
  1351. 08001014 <HAL_TIM_PeriodElapsedCallback>:
  1352. void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
  1353. {
  1354. 8001014: b480 push {r7}
  1355. 8001016: b083 sub sp, #12
  1356. 8001018: af00 add r7, sp, #0
  1357. 800101a: 6078 str r0, [r7, #4]
  1358. if(htim == &htim4)
  1359. 800101c: 687b ldr r3, [r7, #4]
  1360. 800101e: 4a0b ldr r2, [pc, #44] ; (800104c <HAL_TIM_PeriodElapsedCallback+0x38>)
  1361. 8001020: 4293 cmp r3, r2
  1362. 8001022: d106 bne.n 8001032 <HAL_TIM_PeriodElapsedCallback+0x1e>
  1363. {
  1364. Flags.Tim4++;
  1365. 8001024: 4b0a ldr r3, [pc, #40] ; (8001050 <HAL_TIM_PeriodElapsedCallback+0x3c>)
  1366. 8001026: 889b ldrh r3, [r3, #4]
  1367. 8001028: b29b uxth r3, r3
  1368. 800102a: 3301 adds r3, #1
  1369. 800102c: b29a uxth r2, r3
  1370. 800102e: 4b08 ldr r3, [pc, #32] ; (8001050 <HAL_TIM_PeriodElapsedCallback+0x3c>)
  1371. 8001030: 809a strh r2, [r3, #4]
  1372. }
  1373. if(htim == &htim6)
  1374. 8001032: 687b ldr r3, [r7, #4]
  1375. 8001034: 4a07 ldr r2, [pc, #28] ; (8001054 <HAL_TIM_PeriodElapsedCallback+0x40>)
  1376. 8001036: 4293 cmp r3, r2
  1377. 8001038: d102 bne.n 8001040 <HAL_TIM_PeriodElapsedCallback+0x2c>
  1378. {
  1379. Flags.Tim6 = 1;
  1380. 800103a: 4b05 ldr r3, [pc, #20] ; (8001050 <HAL_TIM_PeriodElapsedCallback+0x3c>)
  1381. 800103c: 2201 movs r2, #1
  1382. 800103e: 80da strh r2, [r3, #6]
  1383. }
  1384. }
  1385. 8001040: bf00 nop
  1386. 8001042: 370c adds r7, #12
  1387. 8001044: 46bd mov sp, r7
  1388. 8001046: bc80 pop {r7}
  1389. 8001048: 4770 bx lr
  1390. 800104a: bf00 nop
  1391. 800104c: 20000418 .word 0x20000418
  1392. 8001050: 20000684 .word 0x20000684
  1393. 8001054: 20000598 .word 0x20000598
  1394. 08001058 <GetVcc>:
  1395. uint32_t GetVcc(void)
  1396. {
  1397. 8001058: b480 push {r7}
  1398. 800105a: af00 add r7, sp, #0
  1399. return (VREFINT_CAL_VALUE * VREFINT_CAL_VREF / adc_meas.VREF);
  1400. 800105c: 4b07 ldr r3, [pc, #28] ; (800107c <GetVcc+0x24>)
  1401. 800105e: 881b ldrh r3, [r3, #0]
  1402. 8001060: 461a mov r2, r3
  1403. 8001062: f640 33b8 movw r3, #3000 ; 0xbb8
  1404. 8001066: fb03 f202 mul.w r2, r3, r2
  1405. 800106a: 4b05 ldr r3, [pc, #20] ; (8001080 <GetVcc+0x28>)
  1406. 800106c: 689b ldr r3, [r3, #8]
  1407. 800106e: fbb2 f3f3 udiv r3, r2, r3
  1408. }
  1409. 8001072: 4618 mov r0, r3
  1410. 8001074: 46bd mov sp, r7
  1411. 8001076: bc80 pop {r7}
  1412. 8001078: 4770 bx lr
  1413. 800107a: bf00 nop
  1414. 800107c: 1ff80078 .word 0x1ff80078
  1415. 8001080: 200006e4 .word 0x200006e4
  1416. 08001084 <SetDACVoltage>:
  1417. void SetDACVoltage(uint32_t channel, uint32_t voltage)
  1418. {
  1419. 8001084: b590 push {r4, r7, lr}
  1420. 8001086: b083 sub sp, #12
  1421. 8001088: af00 add r7, sp, #0
  1422. 800108a: 6078 str r0, [r7, #4]
  1423. 800108c: 6039 str r1, [r7, #0]
  1424. HAL_DAC_SetValue(&hdac, channel, DAC_ALIGN_12B_R, (voltage * 4095UL) / GetVcc());
  1425. 800108e: 683a ldr r2, [r7, #0]
  1426. 8001090: 4613 mov r3, r2
  1427. 8001092: 031b lsls r3, r3, #12
  1428. 8001094: 1a9c subs r4, r3, r2
  1429. 8001096: f7ff ffdf bl 8001058 <GetVcc>
  1430. 800109a: 4603 mov r3, r0
  1431. 800109c: fbb4 f3f3 udiv r3, r4, r3
  1432. 80010a0: 2200 movs r2, #0
  1433. 80010a2: 6879 ldr r1, [r7, #4]
  1434. 80010a4: 4803 ldr r0, [pc, #12] ; (80010b4 <SetDACVoltage+0x30>)
  1435. 80010a6: f002 f9b3 bl 8003410 <HAL_DAC_SetValue>
  1436. }
  1437. 80010aa: bf00 nop
  1438. 80010ac: 370c adds r7, #12
  1439. 80010ae: 46bd mov sp, r7
  1440. 80010b0: bd90 pop {r4, r7, pc}
  1441. 80010b2: bf00 nop
  1442. 80010b4: 20000584 .word 0x20000584
  1443. 080010b8 <Switch3V3Regulator>:
  1444. void Switch3V3Regulator(OnOff_t state)
  1445. {
  1446. 80010b8: b580 push {r7, lr}
  1447. 80010ba: b082 sub sp, #8
  1448. 80010bc: af00 add r7, sp, #0
  1449. 80010be: 4603 mov r3, r0
  1450. 80010c0: 71fb strb r3, [r7, #7]
  1451. if(state == ON)
  1452. 80010c2: 79fb ldrb r3, [r7, #7]
  1453. 80010c4: 2b01 cmp r3, #1
  1454. 80010c6: d105 bne.n 80010d4 <Switch3V3Regulator+0x1c>
  1455. HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7, GPIO_PIN_SET);
  1456. 80010c8: 2201 movs r2, #1
  1457. 80010ca: 2180 movs r1, #128 ; 0x80
  1458. 80010cc: 4806 ldr r0, [pc, #24] ; (80010e8 <Switch3V3Regulator+0x30>)
  1459. 80010ce: f002 fe45 bl 8003d5c <HAL_GPIO_WritePin>
  1460. else
  1461. HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7, GPIO_PIN_RESET);
  1462. }
  1463. 80010d2: e004 b.n 80010de <Switch3V3Regulator+0x26>
  1464. HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7, GPIO_PIN_RESET);
  1465. 80010d4: 2200 movs r2, #0
  1466. 80010d6: 2180 movs r1, #128 ; 0x80
  1467. 80010d8: 4803 ldr r0, [pc, #12] ; (80010e8 <Switch3V3Regulator+0x30>)
  1468. 80010da: f002 fe3f bl 8003d5c <HAL_GPIO_WritePin>
  1469. }
  1470. 80010de: bf00 nop
  1471. 80010e0: 3708 adds r7, #8
  1472. 80010e2: 46bd mov sp, r7
  1473. 80010e4: bd80 pop {r7, pc}
  1474. 80010e6: bf00 nop
  1475. 80010e8: 40020000 .word 0x40020000
  1476. 080010ec <SwitchPeriphSupply>:
  1477. void SwitchPeriphSupply(OnOff_t state)
  1478. {
  1479. 80010ec: b580 push {r7, lr}
  1480. 80010ee: b082 sub sp, #8
  1481. 80010f0: af00 add r7, sp, #0
  1482. 80010f2: 4603 mov r3, r0
  1483. 80010f4: 71fb strb r3, [r7, #7]
  1484. if(state == ON)
  1485. 80010f6: 79fb ldrb r3, [r7, #7]
  1486. 80010f8: 2b01 cmp r3, #1
  1487. 80010fa: d105 bne.n 8001108 <SwitchPeriphSupply+0x1c>
  1488. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET);
  1489. 80010fc: 2200 movs r2, #0
  1490. 80010fe: 2101 movs r1, #1
  1491. 8001100: 4806 ldr r0, [pc, #24] ; (800111c <SwitchPeriphSupply+0x30>)
  1492. 8001102: f002 fe2b bl 8003d5c <HAL_GPIO_WritePin>
  1493. else
  1494. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);
  1495. }
  1496. 8001106: e004 b.n 8001112 <SwitchPeriphSupply+0x26>
  1497. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);
  1498. 8001108: 2201 movs r2, #1
  1499. 800110a: 2101 movs r1, #1
  1500. 800110c: 4803 ldr r0, [pc, #12] ; (800111c <SwitchPeriphSupply+0x30>)
  1501. 800110e: f002 fe25 bl 8003d5c <HAL_GPIO_WritePin>
  1502. }
  1503. 8001112: bf00 nop
  1504. 8001114: 3708 adds r7, #8
  1505. 8001116: 46bd mov sp, r7
  1506. 8001118: bd80 pop {r7, pc}
  1507. 800111a: bf00 nop
  1508. 800111c: 40020400 .word 0x40020400
  1509. 08001120 <main>:
  1510. /**
  1511. * @brief The application entry point.
  1512. * @retval int
  1513. */
  1514. int main(void)
  1515. {
  1516. 8001120: b580 push {r7, lr}
  1517. 8001122: b08e sub sp, #56 ; 0x38
  1518. 8001124: af02 add r7, sp, #8
  1519. /* USER CODE END 1 */
  1520. /* MCU Configuration--------------------------------------------------------*/
  1521. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  1522. HAL_Init();
  1523. 8001126: f001 f92a bl 800237e <HAL_Init>
  1524. /* USER CODE BEGIN Init */
  1525. /* USER CODE END Init */
  1526. /* Configure the system clock */
  1527. SystemClock_Config();
  1528. 800112a: f000 f93f bl 80013ac <SystemClock_Config>
  1529. /* USER CODE BEGIN SysInit */
  1530. /* USER CODE END SysInit */
  1531. /* Initialize all configured peripherals */
  1532. MX_DMA_Init();
  1533. 800112e: f000 fc4b bl 80019c8 <MX_DMA_Init>
  1534. MX_GPIO_Init();
  1535. 8001132: f000 fc67 bl 8001a04 <MX_GPIO_Init>
  1536. MX_ADC_Init();
  1537. 8001136: f000 f989 bl 800144c <MX_ADC_Init>
  1538. MX_DAC_Init();
  1539. 800113a: f000 fa25 bl 8001588 <MX_DAC_Init>
  1540. //MX_I2C2_Init();
  1541. MX_COMP2_Init();
  1542. 800113e: f000 f9fb bl 8001538 <MX_COMP2_Init>
  1543. MX_USART1_UART_Init();
  1544. 8001142: f000 fc17 bl 8001974 <MX_USART1_UART_Init>
  1545. MX_TIM6_Init();
  1546. 8001146: f000 fbdf bl 8001908 <MX_TIM6_Init>
  1547. MX_TIM4_Init();
  1548. 800114a: f000 fb8f bl 800186c <MX_TIM4_Init>
  1549. MX_TIM3_Init();
  1550. 800114e: f000 fb03 bl 8001758 <MX_TIM3_Init>
  1551. MX_TIM2_Init();
  1552. 8001152: f000 faab bl 80016ac <MX_TIM2_Init>
  1553. MX_I2C1_Init();
  1554. 8001156: f000 fa4d bl 80015f4 <MX_I2C1_Init>
  1555. /* USER CODE BEGIN 2 */
  1556. Switch3V3Regulator(ON);
  1557. 800115a: 2001 movs r0, #1
  1558. 800115c: f7ff ffac bl 80010b8 <Switch3V3Regulator>
  1559. SwitchPeriphSupply(ON);
  1560. 8001160: 2001 movs r0, #1
  1561. 8001162: f7ff ffc3 bl 80010ec <SwitchPeriphSupply>
  1562. HAL_Delay(100);
  1563. 8001166: 2064 movs r0, #100 ; 0x64
  1564. 8001168: f001 f978 bl 800245c <HAL_Delay>
  1565. MX_I2C2_Init();
  1566. 800116c: f000 fa70 bl 8001650 <MX_I2C2_Init>
  1567. ssd1306_Init();
  1568. 8001170: f005 fa22 bl 80065b8 <ssd1306_Init>
  1569. ssd1306_Fill(Black);
  1570. 8001174: 2000 movs r0, #0
  1571. 8001176: f005 fa89 bl 800668c <ssd1306_Fill>
  1572. ssd1306_UpdateScreen();
  1573. 800117a: f005 faa9 bl 80066d0 <ssd1306_UpdateScreen>
  1574. HAL_DAC_Start(&hdac, DAC_CHANNEL_1);
  1575. 800117e: 2100 movs r1, #0
  1576. 8001180: 4877 ldr r0, [pc, #476] ; (8001360 <main+0x240>)
  1577. 8001182: f002 f8f4 bl 800336e <HAL_DAC_Start>
  1578. HAL_DAC_Start(&hdac, DAC_CHANNEL_2);
  1579. 8001186: 2110 movs r1, #16
  1580. 8001188: 4875 ldr r0, [pc, #468] ; (8001360 <main+0x240>)
  1581. 800118a: f002 f8f0 bl 800336e <HAL_DAC_Start>
  1582. HAL_DAC_SetValue(&hdac, DAC_CHANNEL_1, DAC_ALIGN_12B_R, 0xB50);
  1583. 800118e: f44f 6335 mov.w r3, #2896 ; 0xb50
  1584. 8001192: 2200 movs r2, #0
  1585. 8001194: 2100 movs r1, #0
  1586. 8001196: 4872 ldr r0, [pc, #456] ; (8001360 <main+0x240>)
  1587. 8001198: f002 f93a bl 8003410 <HAL_DAC_SetValue>
  1588. HAL_DAC_SetValue(&hdac, DAC_CHANNEL_2, DAC_ALIGN_12B_R, 0x100);
  1589. 800119c: f44f 7380 mov.w r3, #256 ; 0x100
  1590. 80011a0: 2200 movs r2, #0
  1591. 80011a2: 2110 movs r1, #16
  1592. 80011a4: 486e ldr r0, [pc, #440] ; (8001360 <main+0x240>)
  1593. 80011a6: f002 f933 bl 8003410 <HAL_DAC_SetValue>
  1594. HAL_Delay(10);
  1595. 80011aa: 200a movs r0, #10
  1596. 80011ac: f001 f956 bl 800245c <HAL_Delay>
  1597. HAL_ADC_Start_DMA(&hadc, (uint32_t*)&adc_meas, 3);
  1598. 80011b0: 2203 movs r2, #3
  1599. 80011b2: 496c ldr r1, [pc, #432] ; (8001364 <main+0x244>)
  1600. 80011b4: 486c ldr r0, [pc, #432] ; (8001368 <main+0x248>)
  1601. 80011b6: f001 fab9 bl 800272c <HAL_ADC_Start_DMA>
  1602. HAL_Delay(10);
  1603. 80011ba: 200a movs r0, #10
  1604. 80011bc: f001 f94e bl 800245c <HAL_Delay>
  1605. HAL_ADC_Stop_DMA(&hadc);
  1606. 80011c0: 4869 ldr r0, [pc, #420] ; (8001368 <main+0x248>)
  1607. 80011c2: f001 fb41 bl 8002848 <HAL_ADC_Stop_DMA>
  1608. //uint32_t curr_vcc = GetVcc();
  1609. SetDACVoltage(DAC_CHANNEL_1, 2100);
  1610. 80011c6: f640 0134 movw r1, #2100 ; 0x834
  1611. 80011ca: 2000 movs r0, #0
  1612. 80011cc: f7ff ff5a bl 8001084 <SetDACVoltage>
  1613. SetDACVoltage(DAC_CHANNEL_2, 135);
  1614. 80011d0: 2187 movs r1, #135 ; 0x87
  1615. 80011d2: 2010 movs r0, #16
  1616. 80011d4: f7ff ff56 bl 8001084 <SetDACVoltage>
  1617. HAL_COMP_Start_IT(&hcomp2);
  1618. 80011d8: 4864 ldr r0, [pc, #400] ; (800136c <main+0x24c>)
  1619. 80011da: f001 ff1f bl 800301c <HAL_COMP_Start_IT>
  1620. HAL_TIM_Base_Start_IT(&htim6);
  1621. 80011de: 4864 ldr r0, [pc, #400] ; (8001370 <main+0x250>)
  1622. 80011e0: f004 f90e bl 8005400 <HAL_TIM_Base_Start_IT>
  1623. HAL_TIM_Base_Start_IT(&htim4);
  1624. 80011e4: 4863 ldr r0, [pc, #396] ; (8001374 <main+0x254>)
  1625. 80011e6: f004 f90b bl 8005400 <HAL_TIM_Base_Start_IT>
  1626. HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_4);
  1627. 80011ea: 210c movs r1, #12
  1628. 80011ec: 4862 ldr r0, [pc, #392] ; (8001378 <main+0x258>)
  1629. 80011ee: f004 f959 bl 80054a4 <HAL_TIM_OC_Start>
  1630. /* USER CODE END 2 */
  1631. /* Infinite loop */
  1632. /* USER CODE BEGIN WHILE */
  1633. char tempstr[32];
  1634. uint32_t pps = 0;
  1635. 80011f2: 2300 movs r3, #0
  1636. 80011f4: 62fb str r3, [r7, #44] ; 0x2c
  1637. uint32_t pps_avg = 0;
  1638. 80011f6: 2300 movs r3, #0
  1639. 80011f8: 62bb str r3, [r7, #40] ; 0x28
  1640. uint32_t test = 0;
  1641. 80011fa: 2300 movs r3, #0
  1642. 80011fc: 627b str r3, [r7, #36] ; 0x24
  1643. Flags.Exti = 0;
  1644. 80011fe: 4b5f ldr r3, [pc, #380] ; (800137c <main+0x25c>)
  1645. 8001200: 2200 movs r2, #0
  1646. 8001202: 815a strh r2, [r3, #10]
  1647. while (1)
  1648. {
  1649. if(Flags.Exti)
  1650. 8001204: 4b5d ldr r3, [pc, #372] ; (800137c <main+0x25c>)
  1651. 8001206: 895b ldrh r3, [r3, #10]
  1652. 8001208: b29b uxth r3, r3
  1653. 800120a: 2b00 cmp r3, #0
  1654. 800120c: d022 beq.n 8001254 <main+0x134>
  1655. {
  1656. test = Flags.Exti;
  1657. 800120e: 4b5b ldr r3, [pc, #364] ; (800137c <main+0x25c>)
  1658. 8001210: 895b ldrh r3, [r3, #10]
  1659. 8001212: b29b uxth r3, r3
  1660. 8001214: 627b str r3, [r7, #36] ; 0x24
  1661. Flags.Exti = 0;
  1662. 8001216: 4b59 ldr r3, [pc, #356] ; (800137c <main+0x25c>)
  1663. 8001218: 2200 movs r2, #0
  1664. 800121a: 815a strh r2, [r3, #10]
  1665. ssd1306_Reset();
  1666. 800121c: f005 f994 bl 8006548 <ssd1306_Reset>
  1667. SwitchPeriphSupply(OFF);
  1668. 8001220: 2000 movs r0, #0
  1669. 8001222: f7ff ff63 bl 80010ec <SwitchPeriphSupply>
  1670. //Switch3V3Regulator(OFF);
  1671. HAL_I2C_DeInit(&hi2c1);
  1672. 8001226: 4856 ldr r0, [pc, #344] ; (8001380 <main+0x260>)
  1673. 8001228: f002 ff0c bl 8004044 <HAL_I2C_DeInit>
  1674. HAL_I2C_DeInit(&hi2c2);
  1675. 800122c: 4855 ldr r0, [pc, #340] ; (8001384 <main+0x264>)
  1676. 800122e: f002 ff09 bl 8004044 <HAL_I2C_DeInit>
  1677. HAL_UART_DeInit(&huart1);
  1678. 8001232: 4855 ldr r0, [pc, #340] ; (8001388 <main+0x268>)
  1679. 8001234: f005 f875 bl 8006322 <HAL_UART_DeInit>
  1680. HAL_GPIO_DeInit(GPIOB, GPIO_PIN_All);
  1681. 8001238: f64f 71ff movw r1, #65535 ; 0xffff
  1682. 800123c: 4853 ldr r0, [pc, #332] ; (800138c <main+0x26c>)
  1683. 800123e: f002 fcad bl 8003b9c <HAL_GPIO_DeInit>
  1684. HAL_GPIO_DeInit(GPIOA, GPIO_PIN_All);
  1685. 8001242: f64f 71ff movw r1, #65535 ; 0xffff
  1686. 8001246: 4852 ldr r0, [pc, #328] ; (8001390 <main+0x270>)
  1687. 8001248: f002 fca8 bl 8003b9c <HAL_GPIO_DeInit>
  1688. //HAL_Delay(10);
  1689. //HAL_PWR_EnterSTANDBYMode();
  1690. HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFI);
  1691. 800124c: 2101 movs r1, #1
  1692. 800124e: 2000 movs r0, #0
  1693. 8001250: f003 fa3e bl 80046d0 <HAL_PWR_EnterSTOPMode>
  1694. }
  1695. if(Flags.Tim6)
  1696. 8001254: 4b49 ldr r3, [pc, #292] ; (800137c <main+0x25c>)
  1697. 8001256: 88db ldrh r3, [r3, #6]
  1698. 8001258: b29b uxth r3, r3
  1699. 800125a: 2b00 cmp r3, #0
  1700. 800125c: d049 beq.n 80012f2 <main+0x1d2>
  1701. {
  1702. Flags.Tim6 = 0;
  1703. 800125e: 4b47 ldr r3, [pc, #284] ; (800137c <main+0x25c>)
  1704. 8001260: 2200 movs r2, #0
  1705. 8001262: 80da strh r2, [r3, #6]
  1706. HAL_ADC_Stop_DMA(&hadc);
  1707. 8001264: 4840 ldr r0, [pc, #256] ; (8001368 <main+0x248>)
  1708. 8001266: f001 faef bl 8002848 <HAL_ADC_Stop_DMA>
  1709. if((pps / pps_avg > 2) || (pps_avg / pps > 2))
  1710. 800126a: 6afa ldr r2, [r7, #44] ; 0x2c
  1711. 800126c: 6abb ldr r3, [r7, #40] ; 0x28
  1712. 800126e: fbb2 f3f3 udiv r3, r2, r3
  1713. 8001272: 2b02 cmp r3, #2
  1714. 8001274: d805 bhi.n 8001282 <main+0x162>
  1715. 8001276: 6aba ldr r2, [r7, #40] ; 0x28
  1716. 8001278: 6afb ldr r3, [r7, #44] ; 0x2c
  1717. 800127a: fbb2 f3f3 udiv r3, r2, r3
  1718. 800127e: 2b02 cmp r3, #2
  1719. 8001280: d902 bls.n 8001288 <main+0x168>
  1720. {
  1721. pps_avg = pps;
  1722. 8001282: 6afb ldr r3, [r7, #44] ; 0x2c
  1723. 8001284: 62bb str r3, [r7, #40] ; 0x28
  1724. 8001286: e004 b.n 8001292 <main+0x172>
  1725. }
  1726. else
  1727. {
  1728. pps_avg = (pps + pps_avg) / 2;
  1729. 8001288: 6afa ldr r2, [r7, #44] ; 0x2c
  1730. 800128a: 6abb ldr r3, [r7, #40] ; 0x28
  1731. 800128c: 4413 add r3, r2
  1732. 800128e: 085b lsrs r3, r3, #1
  1733. 8001290: 62bb str r3, [r7, #40] ; 0x28
  1734. }
  1735. sprintf(tempstr, "%5.2f uSv/h", (float)pps_avg / 100.0);
  1736. 8001292: 6ab8 ldr r0, [r7, #40] ; 0x28
  1737. 8001294: f7ff fcc6 bl 8000c24 <__aeabi_ui2f>
  1738. 8001298: 4603 mov r3, r0
  1739. 800129a: 4618 mov r0, r3
  1740. 800129c: f7ff f8dc bl 8000458 <__aeabi_f2d>
  1741. 80012a0: f04f 0200 mov.w r2, #0
  1742. 80012a4: 4b3b ldr r3, [pc, #236] ; (8001394 <main+0x274>)
  1743. 80012a6: f7ff fa59 bl 800075c <__aeabi_ddiv>
  1744. 80012aa: 4602 mov r2, r0
  1745. 80012ac: 460b mov r3, r1
  1746. 80012ae: 4638 mov r0, r7
  1747. 80012b0: 4939 ldr r1, [pc, #228] ; (8001398 <main+0x278>)
  1748. 80012b2: f006 f8e9 bl 8007488 <siprintf>
  1749. ssd1306_DrawRectangle(0, 0, SSD1306_WIDTH - 1, SSD1306_HEIGHT - 1, White);
  1750. 80012b6: 2301 movs r3, #1
  1751. 80012b8: 9300 str r3, [sp, #0]
  1752. 80012ba: 231f movs r3, #31
  1753. 80012bc: 227f movs r2, #127 ; 0x7f
  1754. 80012be: 2100 movs r1, #0
  1755. 80012c0: 2000 movs r0, #0
  1756. 80012c2: f005 fbbf bl 8006a44 <ssd1306_DrawRectangle>
  1757. ssd1306_SetCursor(1, 7);
  1758. 80012c6: 2107 movs r1, #7
  1759. 80012c8: 2001 movs r0, #1
  1760. 80012ca: f005 fb37 bl 800693c <ssd1306_SetCursor>
  1761. ssd1306_WriteString(tempstr, Font_11x18, White);
  1762. 80012ce: 4a33 ldr r2, [pc, #204] ; (800139c <main+0x27c>)
  1763. 80012d0: 4638 mov r0, r7
  1764. 80012d2: 2301 movs r3, #1
  1765. 80012d4: ca06 ldmia r2, {r1, r2}
  1766. 80012d6: f005 fb0b bl 80068f0 <ssd1306_WriteString>
  1767. ssd1306_UpdateScreen();
  1768. 80012da: f005 f9f9 bl 80066d0 <ssd1306_UpdateScreen>
  1769. SetDACVoltage(DAC_CHANNEL_1, 2100);
  1770. 80012de: f640 0134 movw r1, #2100 ; 0x834
  1771. 80012e2: 2000 movs r0, #0
  1772. 80012e4: f7ff fece bl 8001084 <SetDACVoltage>
  1773. HAL_ADC_Start_DMA(&hadc, (uint32_t*)&adc_meas, 3);
  1774. 80012e8: 2203 movs r2, #3
  1775. 80012ea: 491e ldr r1, [pc, #120] ; (8001364 <main+0x244>)
  1776. 80012ec: 481e ldr r0, [pc, #120] ; (8001368 <main+0x248>)
  1777. 80012ee: f001 fa1d bl 800272c <HAL_ADC_Start_DMA>
  1778. }
  1779. if(pulses > 50 || Flags.Tim4 > 3)
  1780. 80012f2: 4b2b ldr r3, [pc, #172] ; (80013a0 <main+0x280>)
  1781. 80012f4: 681b ldr r3, [r3, #0]
  1782. 80012f6: 2b32 cmp r3, #50 ; 0x32
  1783. 80012f8: d805 bhi.n 8001306 <main+0x1e6>
  1784. 80012fa: 4b20 ldr r3, [pc, #128] ; (800137c <main+0x25c>)
  1785. 80012fc: 889b ldrh r3, [r3, #4]
  1786. 80012fe: b29b uxth r3, r3
  1787. 8001300: 2b03 cmp r3, #3
  1788. 8001302: f67f af7f bls.w 8001204 <main+0xe4>
  1789. {
  1790. uint32_t elapsed = htim4.Instance->CNT + (Flags.Tim4 * 50000);
  1791. 8001306: 4b1b ldr r3, [pc, #108] ; (8001374 <main+0x254>)
  1792. 8001308: 681b ldr r3, [r3, #0]
  1793. 800130a: 6a5b ldr r3, [r3, #36] ; 0x24
  1794. 800130c: 4a1b ldr r2, [pc, #108] ; (800137c <main+0x25c>)
  1795. 800130e: 8892 ldrh r2, [r2, #4]
  1796. 8001310: b292 uxth r2, r2
  1797. 8001312: 4611 mov r1, r2
  1798. 8001314: f24c 3250 movw r2, #50000 ; 0xc350
  1799. 8001318: fb02 f201 mul.w r2, r2, r1
  1800. 800131c: 4413 add r3, r2
  1801. 800131e: 623b str r3, [r7, #32]
  1802. HAL_TIM_Base_Stop(&htim4);
  1803. 8001320: 4814 ldr r0, [pc, #80] ; (8001374 <main+0x254>)
  1804. 8001322: f004 f84f bl 80053c4 <HAL_TIM_Base_Stop>
  1805. pps = (pulses * 100000) / elapsed;
  1806. 8001326: 4b1e ldr r3, [pc, #120] ; (80013a0 <main+0x280>)
  1807. 8001328: 681b ldr r3, [r3, #0]
  1808. 800132a: 4a1e ldr r2, [pc, #120] ; (80013a4 <main+0x284>)
  1809. 800132c: fb02 f203 mul.w r2, r2, r3
  1810. 8001330: 6a3b ldr r3, [r7, #32]
  1811. 8001332: fbb2 f3f3 udiv r3, r2, r3
  1812. 8001336: 62fb str r3, [r7, #44] ; 0x2c
  1813. pulses = 0;
  1814. 8001338: 4b19 ldr r3, [pc, #100] ; (80013a0 <main+0x280>)
  1815. 800133a: 2200 movs r2, #0
  1816. 800133c: 601a str r2, [r3, #0]
  1817. Flags.Tim4 = 0;
  1818. 800133e: 4b0f ldr r3, [pc, #60] ; (800137c <main+0x25c>)
  1819. 8001340: 2200 movs r2, #0
  1820. 8001342: 809a strh r2, [r3, #4]
  1821. htim4.Instance->CNT = 0;
  1822. 8001344: 4b0b ldr r3, [pc, #44] ; (8001374 <main+0x254>)
  1823. 8001346: 681b ldr r3, [r3, #0]
  1824. 8001348: 2200 movs r2, #0
  1825. 800134a: 625a str r2, [r3, #36] ; 0x24
  1826. HAL_TIM_Base_Start(&htim4);
  1827. 800134c: 4809 ldr r0, [pc, #36] ; (8001374 <main+0x254>)
  1828. 800134e: f003 ffef bl 8005330 <HAL_TIM_Base_Start>
  1829. HAL_TIM_Base_Stop(&htim2);
  1830. 8001352: 4815 ldr r0, [pc, #84] ; (80013a8 <main+0x288>)
  1831. 8001354: f004 f836 bl 80053c4 <HAL_TIM_Base_Stop>
  1832. HAL_TIM_Base_Start(&htim2);
  1833. 8001358: 4813 ldr r0, [pc, #76] ; (80013a8 <main+0x288>)
  1834. 800135a: f003 ffe9 bl 8005330 <HAL_TIM_Base_Start>
  1835. if(Flags.Exti)
  1836. 800135e: e751 b.n 8001204 <main+0xe4>
  1837. 8001360: 20000584 .word 0x20000584
  1838. 8001364: 200006e4 .word 0x200006e4
  1839. 8001368: 20000690 .word 0x20000690
  1840. 800136c: 200005d8 .word 0x200005d8
  1841. 8001370: 20000598 .word 0x20000598
  1842. 8001374: 20000418 .word 0x20000418
  1843. 8001378: 20000500 .word 0x20000500
  1844. 800137c: 20000684 .word 0x20000684
  1845. 8001380: 20000458 .word 0x20000458
  1846. 8001384: 200004ac .word 0x200004ac
  1847. 8001388: 20000540 .word 0x20000540
  1848. 800138c: 40020400 .word 0x40020400
  1849. 8001390: 40020000 .word 0x40020000
  1850. 8001394: 40590000 .word 0x40590000
  1851. 8001398: 080098c8 .word 0x080098c8
  1852. 800139c: 2000000c .word 0x2000000c
  1853. 80013a0: 20000200 .word 0x20000200
  1854. 80013a4: 000186a0 .word 0x000186a0
  1855. 80013a8: 20000600 .word 0x20000600
  1856. 080013ac <SystemClock_Config>:
  1857. /**
  1858. * @brief System Clock Configuration
  1859. * @retval None
  1860. */
  1861. void SystemClock_Config(void)
  1862. {
  1863. 80013ac: b580 push {r7, lr}
  1864. 80013ae: b092 sub sp, #72 ; 0x48
  1865. 80013b0: af00 add r7, sp, #0
  1866. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  1867. 80013b2: f107 0314 add.w r3, r7, #20
  1868. 80013b6: 2234 movs r2, #52 ; 0x34
  1869. 80013b8: 2100 movs r1, #0
  1870. 80013ba: 4618 mov r0, r3
  1871. 80013bc: f005 fbfc bl 8006bb8 <memset>
  1872. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  1873. 80013c0: 463b mov r3, r7
  1874. 80013c2: 2200 movs r2, #0
  1875. 80013c4: 601a str r2, [r3, #0]
  1876. 80013c6: 605a str r2, [r3, #4]
  1877. 80013c8: 609a str r2, [r3, #8]
  1878. 80013ca: 60da str r2, [r3, #12]
  1879. 80013cc: 611a str r2, [r3, #16]
  1880. /** Configure the main internal regulator output voltage
  1881. */
  1882. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  1883. 80013ce: 4b1e ldr r3, [pc, #120] ; (8001448 <SystemClock_Config+0x9c>)
  1884. 80013d0: 681b ldr r3, [r3, #0]
  1885. 80013d2: f423 53c0 bic.w r3, r3, #6144 ; 0x1800
  1886. 80013d6: 4a1c ldr r2, [pc, #112] ; (8001448 <SystemClock_Config+0x9c>)
  1887. 80013d8: f443 6300 orr.w r3, r3, #2048 ; 0x800
  1888. 80013dc: 6013 str r3, [r2, #0]
  1889. /** Initializes the RCC Oscillators according to the specified parameters
  1890. * in the RCC_OscInitTypeDef structure.
  1891. */
  1892. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE;
  1893. 80013de: 2303 movs r3, #3
  1894. 80013e0: 617b str r3, [r7, #20]
  1895. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  1896. 80013e2: 2301 movs r3, #1
  1897. 80013e4: 61bb str r3, [r7, #24]
  1898. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  1899. 80013e6: 2301 movs r3, #1
  1900. 80013e8: 623b str r3, [r7, #32]
  1901. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  1902. 80013ea: 2310 movs r3, #16
  1903. 80013ec: 627b str r3, [r7, #36] ; 0x24
  1904. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  1905. 80013ee: 2302 movs r3, #2
  1906. 80013f0: 63bb str r3, [r7, #56] ; 0x38
  1907. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  1908. 80013f2: f44f 3380 mov.w r3, #65536 ; 0x10000
  1909. 80013f6: 63fb str r3, [r7, #60] ; 0x3c
  1910. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;
  1911. 80013f8: f44f 1380 mov.w r3, #1048576 ; 0x100000
  1912. 80013fc: 643b str r3, [r7, #64] ; 0x40
  1913. RCC_OscInitStruct.PLL.PLLDIV = RCC_PLL_DIV4;
  1914. 80013fe: f44f 0340 mov.w r3, #12582912 ; 0xc00000
  1915. 8001402: 647b str r3, [r7, #68] ; 0x44
  1916. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  1917. 8001404: f107 0314 add.w r3, r7, #20
  1918. 8001408: 4618 mov r0, r3
  1919. 800140a: f003 f98d bl 8004728 <HAL_RCC_OscConfig>
  1920. 800140e: 4603 mov r3, r0
  1921. 8001410: 2b00 cmp r3, #0
  1922. 8001412: d001 beq.n 8001418 <SystemClock_Config+0x6c>
  1923. {
  1924. Error_Handler();
  1925. 8001414: f000 fba0 bl 8001b58 <Error_Handler>
  1926. }
  1927. /** Initializes the CPU, AHB and APB buses clocks
  1928. */
  1929. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  1930. 8001418: 230f movs r3, #15
  1931. 800141a: 603b str r3, [r7, #0]
  1932. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
  1933. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  1934. 800141c: 2303 movs r3, #3
  1935. 800141e: 607b str r3, [r7, #4]
  1936. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  1937. 8001420: 2300 movs r3, #0
  1938. 8001422: 60bb str r3, [r7, #8]
  1939. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  1940. 8001424: 2300 movs r3, #0
  1941. 8001426: 60fb str r3, [r7, #12]
  1942. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  1943. 8001428: 2300 movs r3, #0
  1944. 800142a: 613b str r3, [r7, #16]
  1945. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK)
  1946. 800142c: 463b mov r3, r7
  1947. 800142e: 2101 movs r1, #1
  1948. 8001430: 4618 mov r0, r3
  1949. 8001432: f003 fca9 bl 8004d88 <HAL_RCC_ClockConfig>
  1950. 8001436: 4603 mov r3, r0
  1951. 8001438: 2b00 cmp r3, #0
  1952. 800143a: d001 beq.n 8001440 <SystemClock_Config+0x94>
  1953. {
  1954. Error_Handler();
  1955. 800143c: f000 fb8c bl 8001b58 <Error_Handler>
  1956. }
  1957. }
  1958. 8001440: bf00 nop
  1959. 8001442: 3748 adds r7, #72 ; 0x48
  1960. 8001444: 46bd mov sp, r7
  1961. 8001446: bd80 pop {r7, pc}
  1962. 8001448: 40007000 .word 0x40007000
  1963. 0800144c <MX_ADC_Init>:
  1964. * @brief ADC Initialization Function
  1965. * @param None
  1966. * @retval None
  1967. */
  1968. static void MX_ADC_Init(void)
  1969. {
  1970. 800144c: b580 push {r7, lr}
  1971. 800144e: b084 sub sp, #16
  1972. 8001450: af00 add r7, sp, #0
  1973. /* USER CODE BEGIN ADC_Init 0 */
  1974. /* USER CODE END ADC_Init 0 */
  1975. ADC_ChannelConfTypeDef sConfig = {0};
  1976. 8001452: 1d3b adds r3, r7, #4
  1977. 8001454: 2200 movs r2, #0
  1978. 8001456: 601a str r2, [r3, #0]
  1979. 8001458: 605a str r2, [r3, #4]
  1980. 800145a: 609a str r2, [r3, #8]
  1981. /* USER CODE BEGIN ADC_Init 1 */
  1982. /* USER CODE END ADC_Init 1 */
  1983. /** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
  1984. */
  1985. hadc.Instance = ADC1;
  1986. 800145c: 4b34 ldr r3, [pc, #208] ; (8001530 <MX_ADC_Init+0xe4>)
  1987. 800145e: 4a35 ldr r2, [pc, #212] ; (8001534 <MX_ADC_Init+0xe8>)
  1988. 8001460: 601a str r2, [r3, #0]
  1989. hadc.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1990. 8001462: 4b33 ldr r3, [pc, #204] ; (8001530 <MX_ADC_Init+0xe4>)
  1991. 8001464: 2200 movs r2, #0
  1992. 8001466: 605a str r2, [r3, #4]
  1993. hadc.Init.Resolution = ADC_RESOLUTION_12B;
  1994. 8001468: 4b31 ldr r3, [pc, #196] ; (8001530 <MX_ADC_Init+0xe4>)
  1995. 800146a: 2200 movs r2, #0
  1996. 800146c: 609a str r2, [r3, #8]
  1997. hadc.Init.DataAlign = ADC_DATAALIGN_RIGHT;
  1998. 800146e: 4b30 ldr r3, [pc, #192] ; (8001530 <MX_ADC_Init+0xe4>)
  1999. 8001470: 2200 movs r2, #0
  2000. 8001472: 60da str r2, [r3, #12]
  2001. hadc.Init.ScanConvMode = ADC_SCAN_ENABLE;
  2002. 8001474: 4b2e ldr r3, [pc, #184] ; (8001530 <MX_ADC_Init+0xe4>)
  2003. 8001476: f44f 7280 mov.w r2, #256 ; 0x100
  2004. 800147a: 611a str r2, [r3, #16]
  2005. hadc.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  2006. 800147c: 4b2c ldr r3, [pc, #176] ; (8001530 <MX_ADC_Init+0xe4>)
  2007. 800147e: 2200 movs r2, #0
  2008. 8001480: 615a str r2, [r3, #20]
  2009. hadc.Init.LowPowerAutoWait = ADC_AUTOWAIT_DISABLE;
  2010. 8001482: 4b2b ldr r3, [pc, #172] ; (8001530 <MX_ADC_Init+0xe4>)
  2011. 8001484: 2200 movs r2, #0
  2012. 8001486: 619a str r2, [r3, #24]
  2013. hadc.Init.LowPowerAutoPowerOff = ADC_AUTOPOWEROFF_DISABLE;
  2014. 8001488: 4b29 ldr r3, [pc, #164] ; (8001530 <MX_ADC_Init+0xe4>)
  2015. 800148a: 2200 movs r2, #0
  2016. 800148c: 61da str r2, [r3, #28]
  2017. hadc.Init.ChannelsBank = ADC_CHANNELS_BANK_A;
  2018. 800148e: 4b28 ldr r3, [pc, #160] ; (8001530 <MX_ADC_Init+0xe4>)
  2019. 8001490: 2200 movs r2, #0
  2020. 8001492: 621a str r2, [r3, #32]
  2021. hadc.Init.ContinuousConvMode = DISABLE;
  2022. 8001494: 4b26 ldr r3, [pc, #152] ; (8001530 <MX_ADC_Init+0xe4>)
  2023. 8001496: 2200 movs r2, #0
  2024. 8001498: f883 2024 strb.w r2, [r3, #36] ; 0x24
  2025. hadc.Init.NbrOfConversion = 3;
  2026. 800149c: 4b24 ldr r3, [pc, #144] ; (8001530 <MX_ADC_Init+0xe4>)
  2027. 800149e: 2203 movs r2, #3
  2028. 80014a0: 629a str r2, [r3, #40] ; 0x28
  2029. hadc.Init.DiscontinuousConvMode = DISABLE;
  2030. 80014a2: 4b23 ldr r3, [pc, #140] ; (8001530 <MX_ADC_Init+0xe4>)
  2031. 80014a4: 2200 movs r2, #0
  2032. 80014a6: f883 202c strb.w r2, [r3, #44] ; 0x2c
  2033. hadc.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  2034. 80014aa: 4b21 ldr r3, [pc, #132] ; (8001530 <MX_ADC_Init+0xe4>)
  2035. 80014ac: 2210 movs r2, #16
  2036. 80014ae: 635a str r2, [r3, #52] ; 0x34
  2037. hadc.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
  2038. 80014b0: 4b1f ldr r3, [pc, #124] ; (8001530 <MX_ADC_Init+0xe4>)
  2039. 80014b2: 2200 movs r2, #0
  2040. 80014b4: 639a str r2, [r3, #56] ; 0x38
  2041. hadc.Init.DMAContinuousRequests = DISABLE;
  2042. 80014b6: 4b1e ldr r3, [pc, #120] ; (8001530 <MX_ADC_Init+0xe4>)
  2043. 80014b8: 2200 movs r2, #0
  2044. 80014ba: f883 203c strb.w r2, [r3, #60] ; 0x3c
  2045. if (HAL_ADC_Init(&hadc) != HAL_OK)
  2046. 80014be: 481c ldr r0, [pc, #112] ; (8001530 <MX_ADC_Init+0xe4>)
  2047. 80014c0: f000 ffee bl 80024a0 <HAL_ADC_Init>
  2048. 80014c4: 4603 mov r3, r0
  2049. 80014c6: 2b00 cmp r3, #0
  2050. 80014c8: d001 beq.n 80014ce <MX_ADC_Init+0x82>
  2051. {
  2052. Error_Handler();
  2053. 80014ca: f000 fb45 bl 8001b58 <Error_Handler>
  2054. }
  2055. /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
  2056. */
  2057. sConfig.Channel = ADC_CHANNEL_0;
  2058. 80014ce: 2300 movs r3, #0
  2059. 80014d0: 607b str r3, [r7, #4]
  2060. sConfig.Rank = ADC_REGULAR_RANK_1;
  2061. 80014d2: 2301 movs r3, #1
  2062. 80014d4: 60bb str r3, [r7, #8]
  2063. sConfig.SamplingTime = ADC_SAMPLETIME_48CYCLES;
  2064. 80014d6: 2304 movs r3, #4
  2065. 80014d8: 60fb str r3, [r7, #12]
  2066. if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
  2067. 80014da: 1d3b adds r3, r7, #4
  2068. 80014dc: 4619 mov r1, r3
  2069. 80014de: 4814 ldr r0, [pc, #80] ; (8001530 <MX_ADC_Init+0xe4>)
  2070. 80014e0: f001 fa1e bl 8002920 <HAL_ADC_ConfigChannel>
  2071. 80014e4: 4603 mov r3, r0
  2072. 80014e6: 2b00 cmp r3, #0
  2073. 80014e8: d001 beq.n 80014ee <MX_ADC_Init+0xa2>
  2074. {
  2075. Error_Handler();
  2076. 80014ea: f000 fb35 bl 8001b58 <Error_Handler>
  2077. }
  2078. /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
  2079. */
  2080. sConfig.Channel = ADC_CHANNEL_TEMPSENSOR;
  2081. 80014ee: 2310 movs r3, #16
  2082. 80014f0: 607b str r3, [r7, #4]
  2083. sConfig.Rank = ADC_REGULAR_RANK_2;
  2084. 80014f2: 2302 movs r3, #2
  2085. 80014f4: 60bb str r3, [r7, #8]
  2086. if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
  2087. 80014f6: 1d3b adds r3, r7, #4
  2088. 80014f8: 4619 mov r1, r3
  2089. 80014fa: 480d ldr r0, [pc, #52] ; (8001530 <MX_ADC_Init+0xe4>)
  2090. 80014fc: f001 fa10 bl 8002920 <HAL_ADC_ConfigChannel>
  2091. 8001500: 4603 mov r3, r0
  2092. 8001502: 2b00 cmp r3, #0
  2093. 8001504: d001 beq.n 800150a <MX_ADC_Init+0xbe>
  2094. {
  2095. Error_Handler();
  2096. 8001506: f000 fb27 bl 8001b58 <Error_Handler>
  2097. }
  2098. /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
  2099. */
  2100. sConfig.Channel = ADC_CHANNEL_VREFINT;
  2101. 800150a: 2311 movs r3, #17
  2102. 800150c: 607b str r3, [r7, #4]
  2103. sConfig.Rank = ADC_REGULAR_RANK_3;
  2104. 800150e: 2303 movs r3, #3
  2105. 8001510: 60bb str r3, [r7, #8]
  2106. if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
  2107. 8001512: 1d3b adds r3, r7, #4
  2108. 8001514: 4619 mov r1, r3
  2109. 8001516: 4806 ldr r0, [pc, #24] ; (8001530 <MX_ADC_Init+0xe4>)
  2110. 8001518: f001 fa02 bl 8002920 <HAL_ADC_ConfigChannel>
  2111. 800151c: 4603 mov r3, r0
  2112. 800151e: 2b00 cmp r3, #0
  2113. 8001520: d001 beq.n 8001526 <MX_ADC_Init+0xda>
  2114. {
  2115. Error_Handler();
  2116. 8001522: f000 fb19 bl 8001b58 <Error_Handler>
  2117. }
  2118. /* USER CODE BEGIN ADC_Init 2 */
  2119. /* USER CODE END ADC_Init 2 */
  2120. }
  2121. 8001526: bf00 nop
  2122. 8001528: 3710 adds r7, #16
  2123. 800152a: 46bd mov sp, r7
  2124. 800152c: bd80 pop {r7, pc}
  2125. 800152e: bf00 nop
  2126. 8001530: 20000690 .word 0x20000690
  2127. 8001534: 40012400 .word 0x40012400
  2128. 08001538 <MX_COMP2_Init>:
  2129. * @brief COMP2 Initialization Function
  2130. * @param None
  2131. * @retval None
  2132. */
  2133. static void MX_COMP2_Init(void)
  2134. {
  2135. 8001538: b580 push {r7, lr}
  2136. 800153a: af00 add r7, sp, #0
  2137. /* USER CODE END COMP2_Init 0 */
  2138. /* USER CODE BEGIN COMP2_Init 1 */
  2139. /* USER CODE END COMP2_Init 1 */
  2140. hcomp2.Instance = COMP2;
  2141. 800153c: 4b10 ldr r3, [pc, #64] ; (8001580 <MX_COMP2_Init+0x48>)
  2142. 800153e: 4a11 ldr r2, [pc, #68] ; (8001584 <MX_COMP2_Init+0x4c>)
  2143. 8001540: 601a str r2, [r3, #0]
  2144. hcomp2.Init.InvertingInput = COMP_INVERTINGINPUT_DAC2;
  2145. 8001542: 4b0f ldr r3, [pc, #60] ; (8001580 <MX_COMP2_Init+0x48>)
  2146. 8001544: f44f 12e0 mov.w r2, #1835008 ; 0x1c0000
  2147. 8001548: 605a str r2, [r3, #4]
  2148. hcomp2.Init.NonInvertingInput = COMP_NONINVERTINGINPUT_PB4;
  2149. 800154a: 4b0d ldr r3, [pc, #52] ; (8001580 <MX_COMP2_Init+0x48>)
  2150. 800154c: 2210 movs r2, #16
  2151. 800154e: 609a str r2, [r3, #8]
  2152. hcomp2.Init.Output = COMP_OUTPUT_NONE;
  2153. 8001550: 4b0b ldr r3, [pc, #44] ; (8001580 <MX_COMP2_Init+0x48>)
  2154. 8001552: f44f 0260 mov.w r2, #14680064 ; 0xe00000
  2155. 8001556: 60da str r2, [r3, #12]
  2156. hcomp2.Init.Mode = COMP_MODE_HIGHSPEED;
  2157. 8001558: 4b09 ldr r3, [pc, #36] ; (8001580 <MX_COMP2_Init+0x48>)
  2158. 800155a: f44f 5280 mov.w r2, #4096 ; 0x1000
  2159. 800155e: 611a str r2, [r3, #16]
  2160. hcomp2.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
  2161. 8001560: 4b07 ldr r3, [pc, #28] ; (8001580 <MX_COMP2_Init+0x48>)
  2162. 8001562: 2200 movs r2, #0
  2163. 8001564: 615a str r2, [r3, #20]
  2164. hcomp2.Init.TriggerMode = COMP_TRIGGERMODE_IT_RISING;
  2165. 8001566: 4b06 ldr r3, [pc, #24] ; (8001580 <MX_COMP2_Init+0x48>)
  2166. 8001568: 2201 movs r2, #1
  2167. 800156a: 619a str r2, [r3, #24]
  2168. if (HAL_COMP_Init(&hcomp2) != HAL_OK)
  2169. 800156c: 4804 ldr r0, [pc, #16] ; (8001580 <MX_COMP2_Init+0x48>)
  2170. 800156e: f001 fc41 bl 8002df4 <HAL_COMP_Init>
  2171. 8001572: 4603 mov r3, r0
  2172. 8001574: 2b00 cmp r3, #0
  2173. 8001576: d001 beq.n 800157c <MX_COMP2_Init+0x44>
  2174. {
  2175. Error_Handler();
  2176. 8001578: f000 faee bl 8001b58 <Error_Handler>
  2177. }
  2178. /* USER CODE BEGIN COMP2_Init 2 */
  2179. /* USER CODE END COMP2_Init 2 */
  2180. }
  2181. 800157c: bf00 nop
  2182. 800157e: bd80 pop {r7, pc}
  2183. 8001580: 200005d8 .word 0x200005d8
  2184. 8001584: 40007c01 .word 0x40007c01
  2185. 08001588 <MX_DAC_Init>:
  2186. * @brief DAC Initialization Function
  2187. * @param None
  2188. * @retval None
  2189. */
  2190. static void MX_DAC_Init(void)
  2191. {
  2192. 8001588: b580 push {r7, lr}
  2193. 800158a: b082 sub sp, #8
  2194. 800158c: af00 add r7, sp, #0
  2195. /* USER CODE BEGIN DAC_Init 0 */
  2196. /* USER CODE END DAC_Init 0 */
  2197. DAC_ChannelConfTypeDef sConfig = {0};
  2198. 800158e: 463b mov r3, r7
  2199. 8001590: 2200 movs r2, #0
  2200. 8001592: 601a str r2, [r3, #0]
  2201. 8001594: 605a str r2, [r3, #4]
  2202. /* USER CODE BEGIN DAC_Init 1 */
  2203. /* USER CODE END DAC_Init 1 */
  2204. /** DAC Initialization
  2205. */
  2206. hdac.Instance = DAC;
  2207. 8001596: 4b15 ldr r3, [pc, #84] ; (80015ec <MX_DAC_Init+0x64>)
  2208. 8001598: 4a15 ldr r2, [pc, #84] ; (80015f0 <MX_DAC_Init+0x68>)
  2209. 800159a: 601a str r2, [r3, #0]
  2210. if (HAL_DAC_Init(&hdac) != HAL_OK)
  2211. 800159c: 4813 ldr r0, [pc, #76] ; (80015ec <MX_DAC_Init+0x64>)
  2212. 800159e: f001 fec4 bl 800332a <HAL_DAC_Init>
  2213. 80015a2: 4603 mov r3, r0
  2214. 80015a4: 2b00 cmp r3, #0
  2215. 80015a6: d001 beq.n 80015ac <MX_DAC_Init+0x24>
  2216. {
  2217. Error_Handler();
  2218. 80015a8: f000 fad6 bl 8001b58 <Error_Handler>
  2219. }
  2220. /** DAC channel OUT1 config
  2221. */
  2222. sConfig.DAC_Trigger = DAC_TRIGGER_NONE;
  2223. 80015ac: 2300 movs r3, #0
  2224. 80015ae: 603b str r3, [r7, #0]
  2225. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
  2226. 80015b0: 2300 movs r3, #0
  2227. 80015b2: 607b str r3, [r7, #4]
  2228. if (HAL_DAC_ConfigChannel(&hdac, &sConfig, DAC_CHANNEL_1) != HAL_OK)
  2229. 80015b4: 463b mov r3, r7
  2230. 80015b6: 2200 movs r2, #0
  2231. 80015b8: 4619 mov r1, r3
  2232. 80015ba: 480c ldr r0, [pc, #48] ; (80015ec <MX_DAC_Init+0x64>)
  2233. 80015bc: f001 ff4c bl 8003458 <HAL_DAC_ConfigChannel>
  2234. 80015c0: 4603 mov r3, r0
  2235. 80015c2: 2b00 cmp r3, #0
  2236. 80015c4: d001 beq.n 80015ca <MX_DAC_Init+0x42>
  2237. {
  2238. Error_Handler();
  2239. 80015c6: f000 fac7 bl 8001b58 <Error_Handler>
  2240. }
  2241. /** DAC channel OUT2 config
  2242. */
  2243. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_DISABLE;
  2244. 80015ca: 2302 movs r3, #2
  2245. 80015cc: 607b str r3, [r7, #4]
  2246. if (HAL_DAC_ConfigChannel(&hdac, &sConfig, DAC_CHANNEL_2) != HAL_OK)
  2247. 80015ce: 463b mov r3, r7
  2248. 80015d0: 2210 movs r2, #16
  2249. 80015d2: 4619 mov r1, r3
  2250. 80015d4: 4805 ldr r0, [pc, #20] ; (80015ec <MX_DAC_Init+0x64>)
  2251. 80015d6: f001 ff3f bl 8003458 <HAL_DAC_ConfigChannel>
  2252. 80015da: 4603 mov r3, r0
  2253. 80015dc: 2b00 cmp r3, #0
  2254. 80015de: d001 beq.n 80015e4 <MX_DAC_Init+0x5c>
  2255. {
  2256. Error_Handler();
  2257. 80015e0: f000 faba bl 8001b58 <Error_Handler>
  2258. }
  2259. /* USER CODE BEGIN DAC_Init 2 */
  2260. /* USER CODE END DAC_Init 2 */
  2261. }
  2262. 80015e4: bf00 nop
  2263. 80015e6: 3708 adds r7, #8
  2264. 80015e8: 46bd mov sp, r7
  2265. 80015ea: bd80 pop {r7, pc}
  2266. 80015ec: 20000584 .word 0x20000584
  2267. 80015f0: 40007400 .word 0x40007400
  2268. 080015f4 <MX_I2C1_Init>:
  2269. * @brief I2C1 Initialization Function
  2270. * @param None
  2271. * @retval None
  2272. */
  2273. static void MX_I2C1_Init(void)
  2274. {
  2275. 80015f4: b580 push {r7, lr}
  2276. 80015f6: af00 add r7, sp, #0
  2277. /* USER CODE END I2C1_Init 0 */
  2278. /* USER CODE BEGIN I2C1_Init 1 */
  2279. /* USER CODE END I2C1_Init 1 */
  2280. hi2c1.Instance = I2C1;
  2281. 80015f8: 4b12 ldr r3, [pc, #72] ; (8001644 <MX_I2C1_Init+0x50>)
  2282. 80015fa: 4a13 ldr r2, [pc, #76] ; (8001648 <MX_I2C1_Init+0x54>)
  2283. 80015fc: 601a str r2, [r3, #0]
  2284. hi2c1.Init.ClockSpeed = 400000;
  2285. 80015fe: 4b11 ldr r3, [pc, #68] ; (8001644 <MX_I2C1_Init+0x50>)
  2286. 8001600: 4a12 ldr r2, [pc, #72] ; (800164c <MX_I2C1_Init+0x58>)
  2287. 8001602: 605a str r2, [r3, #4]
  2288. hi2c1.Init.DutyCycle = I2C_DUTYCYCLE_2;
  2289. 8001604: 4b0f ldr r3, [pc, #60] ; (8001644 <MX_I2C1_Init+0x50>)
  2290. 8001606: 2200 movs r2, #0
  2291. 8001608: 609a str r2, [r3, #8]
  2292. hi2c1.Init.OwnAddress1 = 0;
  2293. 800160a: 4b0e ldr r3, [pc, #56] ; (8001644 <MX_I2C1_Init+0x50>)
  2294. 800160c: 2200 movs r2, #0
  2295. 800160e: 60da str r2, [r3, #12]
  2296. hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
  2297. 8001610: 4b0c ldr r3, [pc, #48] ; (8001644 <MX_I2C1_Init+0x50>)
  2298. 8001612: f44f 4280 mov.w r2, #16384 ; 0x4000
  2299. 8001616: 611a str r2, [r3, #16]
  2300. hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
  2301. 8001618: 4b0a ldr r3, [pc, #40] ; (8001644 <MX_I2C1_Init+0x50>)
  2302. 800161a: 2200 movs r2, #0
  2303. 800161c: 615a str r2, [r3, #20]
  2304. hi2c1.Init.OwnAddress2 = 0;
  2305. 800161e: 4b09 ldr r3, [pc, #36] ; (8001644 <MX_I2C1_Init+0x50>)
  2306. 8001620: 2200 movs r2, #0
  2307. 8001622: 619a str r2, [r3, #24]
  2308. hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
  2309. 8001624: 4b07 ldr r3, [pc, #28] ; (8001644 <MX_I2C1_Init+0x50>)
  2310. 8001626: 2200 movs r2, #0
  2311. 8001628: 61da str r2, [r3, #28]
  2312. hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
  2313. 800162a: 4b06 ldr r3, [pc, #24] ; (8001644 <MX_I2C1_Init+0x50>)
  2314. 800162c: 2200 movs r2, #0
  2315. 800162e: 621a str r2, [r3, #32]
  2316. if (HAL_I2C_Init(&hi2c1) != HAL_OK)
  2317. 8001630: 4804 ldr r0, [pc, #16] ; (8001644 <MX_I2C1_Init+0x50>)
  2318. 8001632: f002 fbc3 bl 8003dbc <HAL_I2C_Init>
  2319. 8001636: 4603 mov r3, r0
  2320. 8001638: 2b00 cmp r3, #0
  2321. 800163a: d001 beq.n 8001640 <MX_I2C1_Init+0x4c>
  2322. {
  2323. Error_Handler();
  2324. 800163c: f000 fa8c bl 8001b58 <Error_Handler>
  2325. }
  2326. /* USER CODE BEGIN I2C1_Init 2 */
  2327. /* USER CODE END I2C1_Init 2 */
  2328. }
  2329. 8001640: bf00 nop
  2330. 8001642: bd80 pop {r7, pc}
  2331. 8001644: 20000458 .word 0x20000458
  2332. 8001648: 40005400 .word 0x40005400
  2333. 800164c: 00061a80 .word 0x00061a80
  2334. 08001650 <MX_I2C2_Init>:
  2335. * @brief I2C2 Initialization Function
  2336. * @param None
  2337. * @retval None
  2338. */
  2339. static void MX_I2C2_Init(void)
  2340. {
  2341. 8001650: b580 push {r7, lr}
  2342. 8001652: af00 add r7, sp, #0
  2343. /* USER CODE END I2C2_Init 0 */
  2344. /* USER CODE BEGIN I2C2_Init 1 */
  2345. /* USER CODE END I2C2_Init 1 */
  2346. hi2c2.Instance = I2C2;
  2347. 8001654: 4b12 ldr r3, [pc, #72] ; (80016a0 <MX_I2C2_Init+0x50>)
  2348. 8001656: 4a13 ldr r2, [pc, #76] ; (80016a4 <MX_I2C2_Init+0x54>)
  2349. 8001658: 601a str r2, [r3, #0]
  2350. hi2c2.Init.ClockSpeed = 100000;
  2351. 800165a: 4b11 ldr r3, [pc, #68] ; (80016a0 <MX_I2C2_Init+0x50>)
  2352. 800165c: 4a12 ldr r2, [pc, #72] ; (80016a8 <MX_I2C2_Init+0x58>)
  2353. 800165e: 605a str r2, [r3, #4]
  2354. hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2;
  2355. 8001660: 4b0f ldr r3, [pc, #60] ; (80016a0 <MX_I2C2_Init+0x50>)
  2356. 8001662: 2200 movs r2, #0
  2357. 8001664: 609a str r2, [r3, #8]
  2358. hi2c2.Init.OwnAddress1 = 0;
  2359. 8001666: 4b0e ldr r3, [pc, #56] ; (80016a0 <MX_I2C2_Init+0x50>)
  2360. 8001668: 2200 movs r2, #0
  2361. 800166a: 60da str r2, [r3, #12]
  2362. hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
  2363. 800166c: 4b0c ldr r3, [pc, #48] ; (80016a0 <MX_I2C2_Init+0x50>)
  2364. 800166e: f44f 4280 mov.w r2, #16384 ; 0x4000
  2365. 8001672: 611a str r2, [r3, #16]
  2366. hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
  2367. 8001674: 4b0a ldr r3, [pc, #40] ; (80016a0 <MX_I2C2_Init+0x50>)
  2368. 8001676: 2200 movs r2, #0
  2369. 8001678: 615a str r2, [r3, #20]
  2370. hi2c2.Init.OwnAddress2 = 0;
  2371. 800167a: 4b09 ldr r3, [pc, #36] ; (80016a0 <MX_I2C2_Init+0x50>)
  2372. 800167c: 2200 movs r2, #0
  2373. 800167e: 619a str r2, [r3, #24]
  2374. hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
  2375. 8001680: 4b07 ldr r3, [pc, #28] ; (80016a0 <MX_I2C2_Init+0x50>)
  2376. 8001682: 2200 movs r2, #0
  2377. 8001684: 61da str r2, [r3, #28]
  2378. hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
  2379. 8001686: 4b06 ldr r3, [pc, #24] ; (80016a0 <MX_I2C2_Init+0x50>)
  2380. 8001688: 2200 movs r2, #0
  2381. 800168a: 621a str r2, [r3, #32]
  2382. if (HAL_I2C_Init(&hi2c2) != HAL_OK)
  2383. 800168c: 4804 ldr r0, [pc, #16] ; (80016a0 <MX_I2C2_Init+0x50>)
  2384. 800168e: f002 fb95 bl 8003dbc <HAL_I2C_Init>
  2385. 8001692: 4603 mov r3, r0
  2386. 8001694: 2b00 cmp r3, #0
  2387. 8001696: d001 beq.n 800169c <MX_I2C2_Init+0x4c>
  2388. {
  2389. Error_Handler();
  2390. 8001698: f000 fa5e bl 8001b58 <Error_Handler>
  2391. }
  2392. /* USER CODE BEGIN I2C2_Init 2 */
  2393. /* USER CODE END I2C2_Init 2 */
  2394. }
  2395. 800169c: bf00 nop
  2396. 800169e: bd80 pop {r7, pc}
  2397. 80016a0: 200004ac .word 0x200004ac
  2398. 80016a4: 40005800 .word 0x40005800
  2399. 80016a8: 000186a0 .word 0x000186a0
  2400. 080016ac <MX_TIM2_Init>:
  2401. * @brief TIM2 Initialization Function
  2402. * @param None
  2403. * @retval None
  2404. */
  2405. static void MX_TIM2_Init(void)
  2406. {
  2407. 80016ac: b580 push {r7, lr}
  2408. 80016ae: b086 sub sp, #24
  2409. 80016b0: af00 add r7, sp, #0
  2410. /* USER CODE BEGIN TIM2_Init 0 */
  2411. /* USER CODE END TIM2_Init 0 */
  2412. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2413. 80016b2: f107 0308 add.w r3, r7, #8
  2414. 80016b6: 2200 movs r2, #0
  2415. 80016b8: 601a str r2, [r3, #0]
  2416. 80016ba: 605a str r2, [r3, #4]
  2417. 80016bc: 609a str r2, [r3, #8]
  2418. 80016be: 60da str r2, [r3, #12]
  2419. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2420. 80016c0: 463b mov r3, r7
  2421. 80016c2: 2200 movs r2, #0
  2422. 80016c4: 601a str r2, [r3, #0]
  2423. 80016c6: 605a str r2, [r3, #4]
  2424. /* USER CODE BEGIN TIM2_Init 1 */
  2425. /* USER CODE END TIM2_Init 1 */
  2426. htim2.Instance = TIM2;
  2427. 80016c8: 4b22 ldr r3, [pc, #136] ; (8001754 <MX_TIM2_Init+0xa8>)
  2428. 80016ca: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
  2429. 80016ce: 601a str r2, [r3, #0]
  2430. htim2.Init.Prescaler = 600;
  2431. 80016d0: 4b20 ldr r3, [pc, #128] ; (8001754 <MX_TIM2_Init+0xa8>)
  2432. 80016d2: f44f 7216 mov.w r2, #600 ; 0x258
  2433. 80016d6: 605a str r2, [r3, #4]
  2434. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  2435. 80016d8: 4b1e ldr r3, [pc, #120] ; (8001754 <MX_TIM2_Init+0xa8>)
  2436. 80016da: 2200 movs r2, #0
  2437. 80016dc: 609a str r2, [r3, #8]
  2438. htim2.Init.Period = 1000;
  2439. 80016de: 4b1d ldr r3, [pc, #116] ; (8001754 <MX_TIM2_Init+0xa8>)
  2440. 80016e0: f44f 727a mov.w r2, #1000 ; 0x3e8
  2441. 80016e4: 60da str r2, [r3, #12]
  2442. htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2443. 80016e6: 4b1b ldr r3, [pc, #108] ; (8001754 <MX_TIM2_Init+0xa8>)
  2444. 80016e8: 2200 movs r2, #0
  2445. 80016ea: 611a str r2, [r3, #16]
  2446. htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2447. 80016ec: 4b19 ldr r3, [pc, #100] ; (8001754 <MX_TIM2_Init+0xa8>)
  2448. 80016ee: 2200 movs r2, #0
  2449. 80016f0: 615a str r2, [r3, #20]
  2450. if (HAL_TIM_Base_Init(&htim2) != HAL_OK)
  2451. 80016f2: 4818 ldr r0, [pc, #96] ; (8001754 <MX_TIM2_Init+0xa8>)
  2452. 80016f4: f003 fddc bl 80052b0 <HAL_TIM_Base_Init>
  2453. 80016f8: 4603 mov r3, r0
  2454. 80016fa: 2b00 cmp r3, #0
  2455. 80016fc: d001 beq.n 8001702 <MX_TIM2_Init+0x56>
  2456. {
  2457. Error_Handler();
  2458. 80016fe: f000 fa2b bl 8001b58 <Error_Handler>
  2459. }
  2460. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2461. 8001702: f44f 5380 mov.w r3, #4096 ; 0x1000
  2462. 8001706: 60bb str r3, [r7, #8]
  2463. if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK)
  2464. 8001708: f107 0308 add.w r3, r7, #8
  2465. 800170c: 4619 mov r1, r3
  2466. 800170e: 4811 ldr r0, [pc, #68] ; (8001754 <MX_TIM2_Init+0xa8>)
  2467. 8001710: f004 f992 bl 8005a38 <HAL_TIM_ConfigClockSource>
  2468. 8001714: 4603 mov r3, r0
  2469. 8001716: 2b00 cmp r3, #0
  2470. 8001718: d001 beq.n 800171e <MX_TIM2_Init+0x72>
  2471. {
  2472. Error_Handler();
  2473. 800171a: f000 fa1d bl 8001b58 <Error_Handler>
  2474. }
  2475. if (HAL_TIM_OnePulse_Init(&htim2, TIM_OPMODE_SINGLE) != HAL_OK)
  2476. 800171e: 2108 movs r1, #8
  2477. 8001720: 480c ldr r0, [pc, #48] ; (8001754 <MX_TIM2_Init+0xa8>)
  2478. 8001722: f003 ff9d bl 8005660 <HAL_TIM_OnePulse_Init>
  2479. 8001726: 4603 mov r3, r0
  2480. 8001728: 2b00 cmp r3, #0
  2481. 800172a: d001 beq.n 8001730 <MX_TIM2_Init+0x84>
  2482. {
  2483. Error_Handler();
  2484. 800172c: f000 fa14 bl 8001b58 <Error_Handler>
  2485. }
  2486. sMasterConfig.MasterOutputTrigger = TIM_TRGO_ENABLE;
  2487. 8001730: 2310 movs r3, #16
  2488. 8001732: 603b str r3, [r7, #0]
  2489. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2490. 8001734: 2300 movs r3, #0
  2491. 8001736: 607b str r3, [r7, #4]
  2492. if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
  2493. 8001738: 463b mov r3, r7
  2494. 800173a: 4619 mov r1, r3
  2495. 800173c: 4805 ldr r0, [pc, #20] ; (8001754 <MX_TIM2_Init+0xa8>)
  2496. 800173e: f004 fd45 bl 80061cc <HAL_TIMEx_MasterConfigSynchronization>
  2497. 8001742: 4603 mov r3, r0
  2498. 8001744: 2b00 cmp r3, #0
  2499. 8001746: d001 beq.n 800174c <MX_TIM2_Init+0xa0>
  2500. {
  2501. Error_Handler();
  2502. 8001748: f000 fa06 bl 8001b58 <Error_Handler>
  2503. }
  2504. /* USER CODE BEGIN TIM2_Init 2 */
  2505. /* USER CODE END TIM2_Init 2 */
  2506. }
  2507. 800174c: bf00 nop
  2508. 800174e: 3718 adds r7, #24
  2509. 8001750: 46bd mov sp, r7
  2510. 8001752: bd80 pop {r7, pc}
  2511. 8001754: 20000600 .word 0x20000600
  2512. 08001758 <MX_TIM3_Init>:
  2513. * @brief TIM3 Initialization Function
  2514. * @param None
  2515. * @retval None
  2516. */
  2517. static void MX_TIM3_Init(void)
  2518. {
  2519. 8001758: b580 push {r7, lr}
  2520. 800175a: b090 sub sp, #64 ; 0x40
  2521. 800175c: af00 add r7, sp, #0
  2522. /* USER CODE BEGIN TIM3_Init 0 */
  2523. /* USER CODE END TIM3_Init 0 */
  2524. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2525. 800175e: f107 0330 add.w r3, r7, #48 ; 0x30
  2526. 8001762: 2200 movs r2, #0
  2527. 8001764: 601a str r2, [r3, #0]
  2528. 8001766: 605a str r2, [r3, #4]
  2529. 8001768: 609a str r2, [r3, #8]
  2530. 800176a: 60da str r2, [r3, #12]
  2531. TIM_SlaveConfigTypeDef sSlaveConfig = {0};
  2532. 800176c: f107 031c add.w r3, r7, #28
  2533. 8001770: 2200 movs r2, #0
  2534. 8001772: 601a str r2, [r3, #0]
  2535. 8001774: 605a str r2, [r3, #4]
  2536. 8001776: 609a str r2, [r3, #8]
  2537. 8001778: 60da str r2, [r3, #12]
  2538. 800177a: 611a str r2, [r3, #16]
  2539. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2540. 800177c: f107 0314 add.w r3, r7, #20
  2541. 8001780: 2200 movs r2, #0
  2542. 8001782: 601a str r2, [r3, #0]
  2543. 8001784: 605a str r2, [r3, #4]
  2544. TIM_OC_InitTypeDef sConfigOC = {0};
  2545. 8001786: 1d3b adds r3, r7, #4
  2546. 8001788: 2200 movs r2, #0
  2547. 800178a: 601a str r2, [r3, #0]
  2548. 800178c: 605a str r2, [r3, #4]
  2549. 800178e: 609a str r2, [r3, #8]
  2550. 8001790: 60da str r2, [r3, #12]
  2551. /* USER CODE BEGIN TIM3_Init 1 */
  2552. /* USER CODE END TIM3_Init 1 */
  2553. htim3.Instance = TIM3;
  2554. 8001792: 4b34 ldr r3, [pc, #208] ; (8001864 <MX_TIM3_Init+0x10c>)
  2555. 8001794: 4a34 ldr r2, [pc, #208] ; (8001868 <MX_TIM3_Init+0x110>)
  2556. 8001796: 601a str r2, [r3, #0]
  2557. htim3.Init.Prescaler = 48;
  2558. 8001798: 4b32 ldr r3, [pc, #200] ; (8001864 <MX_TIM3_Init+0x10c>)
  2559. 800179a: 2230 movs r2, #48 ; 0x30
  2560. 800179c: 605a str r2, [r3, #4]
  2561. htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  2562. 800179e: 4b31 ldr r3, [pc, #196] ; (8001864 <MX_TIM3_Init+0x10c>)
  2563. 80017a0: 2200 movs r2, #0
  2564. 80017a2: 609a str r2, [r3, #8]
  2565. htim3.Init.Period = 1000;
  2566. 80017a4: 4b2f ldr r3, [pc, #188] ; (8001864 <MX_TIM3_Init+0x10c>)
  2567. 80017a6: f44f 727a mov.w r2, #1000 ; 0x3e8
  2568. 80017aa: 60da str r2, [r3, #12]
  2569. htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2570. 80017ac: 4b2d ldr r3, [pc, #180] ; (8001864 <MX_TIM3_Init+0x10c>)
  2571. 80017ae: 2200 movs r2, #0
  2572. 80017b0: 611a str r2, [r3, #16]
  2573. htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2574. 80017b2: 4b2c ldr r3, [pc, #176] ; (8001864 <MX_TIM3_Init+0x10c>)
  2575. 80017b4: 2200 movs r2, #0
  2576. 80017b6: 615a str r2, [r3, #20]
  2577. if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
  2578. 80017b8: 482a ldr r0, [pc, #168] ; (8001864 <MX_TIM3_Init+0x10c>)
  2579. 80017ba: f003 fd79 bl 80052b0 <HAL_TIM_Base_Init>
  2580. 80017be: 4603 mov r3, r0
  2581. 80017c0: 2b00 cmp r3, #0
  2582. 80017c2: d001 beq.n 80017c8 <MX_TIM3_Init+0x70>
  2583. {
  2584. Error_Handler();
  2585. 80017c4: f000 f9c8 bl 8001b58 <Error_Handler>
  2586. }
  2587. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2588. 80017c8: f44f 5380 mov.w r3, #4096 ; 0x1000
  2589. 80017cc: 633b str r3, [r7, #48] ; 0x30
  2590. if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK)
  2591. 80017ce: f107 0330 add.w r3, r7, #48 ; 0x30
  2592. 80017d2: 4619 mov r1, r3
  2593. 80017d4: 4823 ldr r0, [pc, #140] ; (8001864 <MX_TIM3_Init+0x10c>)
  2594. 80017d6: f004 f92f bl 8005a38 <HAL_TIM_ConfigClockSource>
  2595. 80017da: 4603 mov r3, r0
  2596. 80017dc: 2b00 cmp r3, #0
  2597. 80017de: d001 beq.n 80017e4 <MX_TIM3_Init+0x8c>
  2598. {
  2599. Error_Handler();
  2600. 80017e0: f000 f9ba bl 8001b58 <Error_Handler>
  2601. }
  2602. if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
  2603. 80017e4: 481f ldr r0, [pc, #124] ; (8001864 <MX_TIM3_Init+0x10c>)
  2604. 80017e6: f003 fef3 bl 80055d0 <HAL_TIM_PWM_Init>
  2605. 80017ea: 4603 mov r3, r0
  2606. 80017ec: 2b00 cmp r3, #0
  2607. 80017ee: d001 beq.n 80017f4 <MX_TIM3_Init+0x9c>
  2608. {
  2609. Error_Handler();
  2610. 80017f0: f000 f9b2 bl 8001b58 <Error_Handler>
  2611. }
  2612. sSlaveConfig.SlaveMode = TIM_SLAVEMODE_GATED;
  2613. 80017f4: 2305 movs r3, #5
  2614. 80017f6: 61fb str r3, [r7, #28]
  2615. sSlaveConfig.InputTrigger = TIM_TS_ITR1;
  2616. 80017f8: 2310 movs r3, #16
  2617. 80017fa: 623b str r3, [r7, #32]
  2618. if (HAL_TIM_SlaveConfigSynchro(&htim3, &sSlaveConfig) != HAL_OK)
  2619. 80017fc: f107 031c add.w r3, r7, #28
  2620. 8001800: 4619 mov r1, r3
  2621. 8001802: 4818 ldr r0, [pc, #96] ; (8001864 <MX_TIM3_Init+0x10c>)
  2622. 8001804: f004 f9dc bl 8005bc0 <HAL_TIM_SlaveConfigSynchro>
  2623. 8001808: 4603 mov r3, r0
  2624. 800180a: 2b00 cmp r3, #0
  2625. 800180c: d001 beq.n 8001812 <MX_TIM3_Init+0xba>
  2626. {
  2627. Error_Handler();
  2628. 800180e: f000 f9a3 bl 8001b58 <Error_Handler>
  2629. }
  2630. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2631. 8001812: 2300 movs r3, #0
  2632. 8001814: 617b str r3, [r7, #20]
  2633. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2634. 8001816: 2300 movs r3, #0
  2635. 8001818: 61bb str r3, [r7, #24]
  2636. if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
  2637. 800181a: f107 0314 add.w r3, r7, #20
  2638. 800181e: 4619 mov r1, r3
  2639. 8001820: 4810 ldr r0, [pc, #64] ; (8001864 <MX_TIM3_Init+0x10c>)
  2640. 8001822: f004 fcd3 bl 80061cc <HAL_TIMEx_MasterConfigSynchronization>
  2641. 8001826: 4603 mov r3, r0
  2642. 8001828: 2b00 cmp r3, #0
  2643. 800182a: d001 beq.n 8001830 <MX_TIM3_Init+0xd8>
  2644. {
  2645. Error_Handler();
  2646. 800182c: f000 f994 bl 8001b58 <Error_Handler>
  2647. }
  2648. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2649. 8001830: 2360 movs r3, #96 ; 0x60
  2650. 8001832: 607b str r3, [r7, #4]
  2651. sConfigOC.Pulse = 10;
  2652. 8001834: 230a movs r3, #10
  2653. 8001836: 60bb str r3, [r7, #8]
  2654. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2655. 8001838: 2300 movs r3, #0
  2656. 800183a: 60fb str r3, [r7, #12]
  2657. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2658. 800183c: 2300 movs r3, #0
  2659. 800183e: 613b str r3, [r7, #16]
  2660. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
  2661. 8001840: 1d3b adds r3, r7, #4
  2662. 8001842: 220c movs r2, #12
  2663. 8001844: 4619 mov r1, r3
  2664. 8001846: 4807 ldr r0, [pc, #28] ; (8001864 <MX_TIM3_Init+0x10c>)
  2665. 8001848: f004 f838 bl 80058bc <HAL_TIM_PWM_ConfigChannel>
  2666. 800184c: 4603 mov r3, r0
  2667. 800184e: 2b00 cmp r3, #0
  2668. 8001850: d001 beq.n 8001856 <MX_TIM3_Init+0xfe>
  2669. {
  2670. Error_Handler();
  2671. 8001852: f000 f981 bl 8001b58 <Error_Handler>
  2672. }
  2673. /* USER CODE BEGIN TIM3_Init 2 */
  2674. /* USER CODE END TIM3_Init 2 */
  2675. HAL_TIM_MspPostInit(&htim3);
  2676. 8001856: 4803 ldr r0, [pc, #12] ; (8001864 <MX_TIM3_Init+0x10c>)
  2677. 8001858: f000 fbb0 bl 8001fbc <HAL_TIM_MspPostInit>
  2678. }
  2679. 800185c: bf00 nop
  2680. 800185e: 3740 adds r7, #64 ; 0x40
  2681. 8001860: 46bd mov sp, r7
  2682. 8001862: bd80 pop {r7, pc}
  2683. 8001864: 20000500 .word 0x20000500
  2684. 8001868: 40000400 .word 0x40000400
  2685. 0800186c <MX_TIM4_Init>:
  2686. * @brief TIM4 Initialization Function
  2687. * @param None
  2688. * @retval None
  2689. */
  2690. static void MX_TIM4_Init(void)
  2691. {
  2692. 800186c: b580 push {r7, lr}
  2693. 800186e: b086 sub sp, #24
  2694. 8001870: af00 add r7, sp, #0
  2695. /* USER CODE BEGIN TIM4_Init 0 */
  2696. /* USER CODE END TIM4_Init 0 */
  2697. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2698. 8001872: f107 0308 add.w r3, r7, #8
  2699. 8001876: 2200 movs r2, #0
  2700. 8001878: 601a str r2, [r3, #0]
  2701. 800187a: 605a str r2, [r3, #4]
  2702. 800187c: 609a str r2, [r3, #8]
  2703. 800187e: 60da str r2, [r3, #12]
  2704. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2705. 8001880: 463b mov r3, r7
  2706. 8001882: 2200 movs r2, #0
  2707. 8001884: 601a str r2, [r3, #0]
  2708. 8001886: 605a str r2, [r3, #4]
  2709. /* USER CODE BEGIN TIM4_Init 1 */
  2710. /* USER CODE END TIM4_Init 1 */
  2711. htim4.Instance = TIM4;
  2712. 8001888: 4b1d ldr r3, [pc, #116] ; (8001900 <MX_TIM4_Init+0x94>)
  2713. 800188a: 4a1e ldr r2, [pc, #120] ; (8001904 <MX_TIM4_Init+0x98>)
  2714. 800188c: 601a str r2, [r3, #0]
  2715. htim4.Init.Prescaler = 240;
  2716. 800188e: 4b1c ldr r3, [pc, #112] ; (8001900 <MX_TIM4_Init+0x94>)
  2717. 8001890: 22f0 movs r2, #240 ; 0xf0
  2718. 8001892: 605a str r2, [r3, #4]
  2719. htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
  2720. 8001894: 4b1a ldr r3, [pc, #104] ; (8001900 <MX_TIM4_Init+0x94>)
  2721. 8001896: 2200 movs r2, #0
  2722. 8001898: 609a str r2, [r3, #8]
  2723. htim4.Init.Period = 50000-1;
  2724. 800189a: 4b19 ldr r3, [pc, #100] ; (8001900 <MX_TIM4_Init+0x94>)
  2725. 800189c: f24c 324f movw r2, #49999 ; 0xc34f
  2726. 80018a0: 60da str r2, [r3, #12]
  2727. htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2728. 80018a2: 4b17 ldr r3, [pc, #92] ; (8001900 <MX_TIM4_Init+0x94>)
  2729. 80018a4: 2200 movs r2, #0
  2730. 80018a6: 611a str r2, [r3, #16]
  2731. htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2732. 80018a8: 4b15 ldr r3, [pc, #84] ; (8001900 <MX_TIM4_Init+0x94>)
  2733. 80018aa: 2200 movs r2, #0
  2734. 80018ac: 615a str r2, [r3, #20]
  2735. if (HAL_TIM_Base_Init(&htim4) != HAL_OK)
  2736. 80018ae: 4814 ldr r0, [pc, #80] ; (8001900 <MX_TIM4_Init+0x94>)
  2737. 80018b0: f003 fcfe bl 80052b0 <HAL_TIM_Base_Init>
  2738. 80018b4: 4603 mov r3, r0
  2739. 80018b6: 2b00 cmp r3, #0
  2740. 80018b8: d001 beq.n 80018be <MX_TIM4_Init+0x52>
  2741. {
  2742. Error_Handler();
  2743. 80018ba: f000 f94d bl 8001b58 <Error_Handler>
  2744. }
  2745. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2746. 80018be: f44f 5380 mov.w r3, #4096 ; 0x1000
  2747. 80018c2: 60bb str r3, [r7, #8]
  2748. if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
  2749. 80018c4: f107 0308 add.w r3, r7, #8
  2750. 80018c8: 4619 mov r1, r3
  2751. 80018ca: 480d ldr r0, [pc, #52] ; (8001900 <MX_TIM4_Init+0x94>)
  2752. 80018cc: f004 f8b4 bl 8005a38 <HAL_TIM_ConfigClockSource>
  2753. 80018d0: 4603 mov r3, r0
  2754. 80018d2: 2b00 cmp r3, #0
  2755. 80018d4: d001 beq.n 80018da <MX_TIM4_Init+0x6e>
  2756. {
  2757. Error_Handler();
  2758. 80018d6: f000 f93f bl 8001b58 <Error_Handler>
  2759. }
  2760. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2761. 80018da: 2320 movs r3, #32
  2762. 80018dc: 603b str r3, [r7, #0]
  2763. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2764. 80018de: 2300 movs r3, #0
  2765. 80018e0: 607b str r3, [r7, #4]
  2766. if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK)
  2767. 80018e2: 463b mov r3, r7
  2768. 80018e4: 4619 mov r1, r3
  2769. 80018e6: 4806 ldr r0, [pc, #24] ; (8001900 <MX_TIM4_Init+0x94>)
  2770. 80018e8: f004 fc70 bl 80061cc <HAL_TIMEx_MasterConfigSynchronization>
  2771. 80018ec: 4603 mov r3, r0
  2772. 80018ee: 2b00 cmp r3, #0
  2773. 80018f0: d001 beq.n 80018f6 <MX_TIM4_Init+0x8a>
  2774. {
  2775. Error_Handler();
  2776. 80018f2: f000 f931 bl 8001b58 <Error_Handler>
  2777. }
  2778. /* USER CODE BEGIN TIM4_Init 2 */
  2779. /* USER CODE END TIM4_Init 2 */
  2780. }
  2781. 80018f6: bf00 nop
  2782. 80018f8: 3718 adds r7, #24
  2783. 80018fa: 46bd mov sp, r7
  2784. 80018fc: bd80 pop {r7, pc}
  2785. 80018fe: bf00 nop
  2786. 8001900: 20000418 .word 0x20000418
  2787. 8001904: 40000800 .word 0x40000800
  2788. 08001908 <MX_TIM6_Init>:
  2789. * @brief TIM6 Initialization Function
  2790. * @param None
  2791. * @retval None
  2792. */
  2793. static void MX_TIM6_Init(void)
  2794. {
  2795. 8001908: b580 push {r7, lr}
  2796. 800190a: b082 sub sp, #8
  2797. 800190c: af00 add r7, sp, #0
  2798. /* USER CODE BEGIN TIM6_Init 0 */
  2799. /* USER CODE END TIM6_Init 0 */
  2800. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2801. 800190e: 463b mov r3, r7
  2802. 8001910: 2200 movs r2, #0
  2803. 8001912: 601a str r2, [r3, #0]
  2804. 8001914: 605a str r2, [r3, #4]
  2805. /* USER CODE BEGIN TIM6_Init 1 */
  2806. /* USER CODE END TIM6_Init 1 */
  2807. htim6.Instance = TIM6;
  2808. 8001916: 4b15 ldr r3, [pc, #84] ; (800196c <MX_TIM6_Init+0x64>)
  2809. 8001918: 4a15 ldr r2, [pc, #84] ; (8001970 <MX_TIM6_Init+0x68>)
  2810. 800191a: 601a str r2, [r3, #0]
  2811. htim6.Init.Prescaler = 600;
  2812. 800191c: 4b13 ldr r3, [pc, #76] ; (800196c <MX_TIM6_Init+0x64>)
  2813. 800191e: f44f 7216 mov.w r2, #600 ; 0x258
  2814. 8001922: 605a str r2, [r3, #4]
  2815. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  2816. 8001924: 4b11 ldr r3, [pc, #68] ; (800196c <MX_TIM6_Init+0x64>)
  2817. 8001926: 2200 movs r2, #0
  2818. 8001928: 609a str r2, [r3, #8]
  2819. htim6.Init.Period = 20000;
  2820. 800192a: 4b10 ldr r3, [pc, #64] ; (800196c <MX_TIM6_Init+0x64>)
  2821. 800192c: f644 6220 movw r2, #20000 ; 0x4e20
  2822. 8001930: 60da str r2, [r3, #12]
  2823. htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2824. 8001932: 4b0e ldr r3, [pc, #56] ; (800196c <MX_TIM6_Init+0x64>)
  2825. 8001934: 2200 movs r2, #0
  2826. 8001936: 615a str r2, [r3, #20]
  2827. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  2828. 8001938: 480c ldr r0, [pc, #48] ; (800196c <MX_TIM6_Init+0x64>)
  2829. 800193a: f003 fcb9 bl 80052b0 <HAL_TIM_Base_Init>
  2830. 800193e: 4603 mov r3, r0
  2831. 8001940: 2b00 cmp r3, #0
  2832. 8001942: d001 beq.n 8001948 <MX_TIM6_Init+0x40>
  2833. {
  2834. Error_Handler();
  2835. 8001944: f000 f908 bl 8001b58 <Error_Handler>
  2836. }
  2837. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2838. 8001948: 2320 movs r3, #32
  2839. 800194a: 603b str r3, [r7, #0]
  2840. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2841. 800194c: 2300 movs r3, #0
  2842. 800194e: 607b str r3, [r7, #4]
  2843. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  2844. 8001950: 463b mov r3, r7
  2845. 8001952: 4619 mov r1, r3
  2846. 8001954: 4805 ldr r0, [pc, #20] ; (800196c <MX_TIM6_Init+0x64>)
  2847. 8001956: f004 fc39 bl 80061cc <HAL_TIMEx_MasterConfigSynchronization>
  2848. 800195a: 4603 mov r3, r0
  2849. 800195c: 2b00 cmp r3, #0
  2850. 800195e: d001 beq.n 8001964 <MX_TIM6_Init+0x5c>
  2851. {
  2852. Error_Handler();
  2853. 8001960: f000 f8fa bl 8001b58 <Error_Handler>
  2854. }
  2855. /* USER CODE BEGIN TIM6_Init 2 */
  2856. /* USER CODE END TIM6_Init 2 */
  2857. }
  2858. 8001964: bf00 nop
  2859. 8001966: 3708 adds r7, #8
  2860. 8001968: 46bd mov sp, r7
  2861. 800196a: bd80 pop {r7, pc}
  2862. 800196c: 20000598 .word 0x20000598
  2863. 8001970: 40001000 .word 0x40001000
  2864. 08001974 <MX_USART1_UART_Init>:
  2865. * @brief USART1 Initialization Function
  2866. * @param None
  2867. * @retval None
  2868. */
  2869. static void MX_USART1_UART_Init(void)
  2870. {
  2871. 8001974: b580 push {r7, lr}
  2872. 8001976: af00 add r7, sp, #0
  2873. /* USER CODE END USART1_Init 0 */
  2874. /* USER CODE BEGIN USART1_Init 1 */
  2875. /* USER CODE END USART1_Init 1 */
  2876. huart1.Instance = USART1;
  2877. 8001978: 4b11 ldr r3, [pc, #68] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2878. 800197a: 4a12 ldr r2, [pc, #72] ; (80019c4 <MX_USART1_UART_Init+0x50>)
  2879. 800197c: 601a str r2, [r3, #0]
  2880. huart1.Init.BaudRate = 115200;
  2881. 800197e: 4b10 ldr r3, [pc, #64] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2882. 8001980: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  2883. 8001984: 605a str r2, [r3, #4]
  2884. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  2885. 8001986: 4b0e ldr r3, [pc, #56] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2886. 8001988: 2200 movs r2, #0
  2887. 800198a: 609a str r2, [r3, #8]
  2888. huart1.Init.StopBits = UART_STOPBITS_1;
  2889. 800198c: 4b0c ldr r3, [pc, #48] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2890. 800198e: 2200 movs r2, #0
  2891. 8001990: 60da str r2, [r3, #12]
  2892. huart1.Init.Parity = UART_PARITY_NONE;
  2893. 8001992: 4b0b ldr r3, [pc, #44] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2894. 8001994: 2200 movs r2, #0
  2895. 8001996: 611a str r2, [r3, #16]
  2896. huart1.Init.Mode = UART_MODE_TX_RX;
  2897. 8001998: 4b09 ldr r3, [pc, #36] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2898. 800199a: 220c movs r2, #12
  2899. 800199c: 615a str r2, [r3, #20]
  2900. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2901. 800199e: 4b08 ldr r3, [pc, #32] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2902. 80019a0: 2200 movs r2, #0
  2903. 80019a2: 619a str r2, [r3, #24]
  2904. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  2905. 80019a4: 4b06 ldr r3, [pc, #24] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2906. 80019a6: 2200 movs r2, #0
  2907. 80019a8: 61da str r2, [r3, #28]
  2908. if (HAL_UART_Init(&huart1) != HAL_OK)
  2909. 80019aa: 4805 ldr r0, [pc, #20] ; (80019c0 <MX_USART1_UART_Init+0x4c>)
  2910. 80019ac: f004 fc6c bl 8006288 <HAL_UART_Init>
  2911. 80019b0: 4603 mov r3, r0
  2912. 80019b2: 2b00 cmp r3, #0
  2913. 80019b4: d001 beq.n 80019ba <MX_USART1_UART_Init+0x46>
  2914. {
  2915. Error_Handler();
  2916. 80019b6: f000 f8cf bl 8001b58 <Error_Handler>
  2917. }
  2918. /* USER CODE BEGIN USART1_Init 2 */
  2919. /* USER CODE END USART1_Init 2 */
  2920. }
  2921. 80019ba: bf00 nop
  2922. 80019bc: bd80 pop {r7, pc}
  2923. 80019be: bf00 nop
  2924. 80019c0: 20000540 .word 0x20000540
  2925. 80019c4: 40013800 .word 0x40013800
  2926. 080019c8 <MX_DMA_Init>:
  2927. /**
  2928. * Enable DMA controller clock
  2929. */
  2930. static void MX_DMA_Init(void)
  2931. {
  2932. 80019c8: b580 push {r7, lr}
  2933. 80019ca: b082 sub sp, #8
  2934. 80019cc: af00 add r7, sp, #0
  2935. /* DMA controller clock enable */
  2936. __HAL_RCC_DMA1_CLK_ENABLE();
  2937. 80019ce: 4b0c ldr r3, [pc, #48] ; (8001a00 <MX_DMA_Init+0x38>)
  2938. 80019d0: 69db ldr r3, [r3, #28]
  2939. 80019d2: 4a0b ldr r2, [pc, #44] ; (8001a00 <MX_DMA_Init+0x38>)
  2940. 80019d4: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000
  2941. 80019d8: 61d3 str r3, [r2, #28]
  2942. 80019da: 4b09 ldr r3, [pc, #36] ; (8001a00 <MX_DMA_Init+0x38>)
  2943. 80019dc: 69db ldr r3, [r3, #28]
  2944. 80019de: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
  2945. 80019e2: 607b str r3, [r7, #4]
  2946. 80019e4: 687b ldr r3, [r7, #4]
  2947. /* DMA interrupt init */
  2948. /* DMA1_Channel1_IRQn interrupt configuration */
  2949. HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
  2950. 80019e6: 2200 movs r2, #0
  2951. 80019e8: 2100 movs r1, #0
  2952. 80019ea: 200b movs r0, #11
  2953. 80019ec: f001 fc67 bl 80032be <HAL_NVIC_SetPriority>
  2954. HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
  2955. 80019f0: 200b movs r0, #11
  2956. 80019f2: f001 fc80 bl 80032f6 <HAL_NVIC_EnableIRQ>
  2957. }
  2958. 80019f6: bf00 nop
  2959. 80019f8: 3708 adds r7, #8
  2960. 80019fa: 46bd mov sp, r7
  2961. 80019fc: bd80 pop {r7, pc}
  2962. 80019fe: bf00 nop
  2963. 8001a00: 40023800 .word 0x40023800
  2964. 08001a04 <MX_GPIO_Init>:
  2965. * @brief GPIO Initialization Function
  2966. * @param None
  2967. * @retval None
  2968. */
  2969. static void MX_GPIO_Init(void)
  2970. {
  2971. 8001a04: b580 push {r7, lr}
  2972. 8001a06: b08a sub sp, #40 ; 0x28
  2973. 8001a08: af00 add r7, sp, #0
  2974. GPIO_InitTypeDef GPIO_InitStruct = {0};
  2975. 8001a0a: f107 0314 add.w r3, r7, #20
  2976. 8001a0e: 2200 movs r2, #0
  2977. 8001a10: 601a str r2, [r3, #0]
  2978. 8001a12: 605a str r2, [r3, #4]
  2979. 8001a14: 609a str r2, [r3, #8]
  2980. 8001a16: 60da str r2, [r3, #12]
  2981. 8001a18: 611a str r2, [r3, #16]
  2982. /* GPIO Ports Clock Enable */
  2983. __HAL_RCC_GPIOC_CLK_ENABLE();
  2984. 8001a1a: 4b4b ldr r3, [pc, #300] ; (8001b48 <MX_GPIO_Init+0x144>)
  2985. 8001a1c: 69db ldr r3, [r3, #28]
  2986. 8001a1e: 4a4a ldr r2, [pc, #296] ; (8001b48 <MX_GPIO_Init+0x144>)
  2987. 8001a20: f043 0304 orr.w r3, r3, #4
  2988. 8001a24: 61d3 str r3, [r2, #28]
  2989. 8001a26: 4b48 ldr r3, [pc, #288] ; (8001b48 <MX_GPIO_Init+0x144>)
  2990. 8001a28: 69db ldr r3, [r3, #28]
  2991. 8001a2a: f003 0304 and.w r3, r3, #4
  2992. 8001a2e: 613b str r3, [r7, #16]
  2993. 8001a30: 693b ldr r3, [r7, #16]
  2994. __HAL_RCC_GPIOH_CLK_ENABLE();
  2995. 8001a32: 4b45 ldr r3, [pc, #276] ; (8001b48 <MX_GPIO_Init+0x144>)
  2996. 8001a34: 69db ldr r3, [r3, #28]
  2997. 8001a36: 4a44 ldr r2, [pc, #272] ; (8001b48 <MX_GPIO_Init+0x144>)
  2998. 8001a38: f043 0320 orr.w r3, r3, #32
  2999. 8001a3c: 61d3 str r3, [r2, #28]
  3000. 8001a3e: 4b42 ldr r3, [pc, #264] ; (8001b48 <MX_GPIO_Init+0x144>)
  3001. 8001a40: 69db ldr r3, [r3, #28]
  3002. 8001a42: f003 0320 and.w r3, r3, #32
  3003. 8001a46: 60fb str r3, [r7, #12]
  3004. 8001a48: 68fb ldr r3, [r7, #12]
  3005. __HAL_RCC_GPIOA_CLK_ENABLE();
  3006. 8001a4a: 4b3f ldr r3, [pc, #252] ; (8001b48 <MX_GPIO_Init+0x144>)
  3007. 8001a4c: 69db ldr r3, [r3, #28]
  3008. 8001a4e: 4a3e ldr r2, [pc, #248] ; (8001b48 <MX_GPIO_Init+0x144>)
  3009. 8001a50: f043 0301 orr.w r3, r3, #1
  3010. 8001a54: 61d3 str r3, [r2, #28]
  3011. 8001a56: 4b3c ldr r3, [pc, #240] ; (8001b48 <MX_GPIO_Init+0x144>)
  3012. 8001a58: 69db ldr r3, [r3, #28]
  3013. 8001a5a: f003 0301 and.w r3, r3, #1
  3014. 8001a5e: 60bb str r3, [r7, #8]
  3015. 8001a60: 68bb ldr r3, [r7, #8]
  3016. __HAL_RCC_GPIOB_CLK_ENABLE();
  3017. 8001a62: 4b39 ldr r3, [pc, #228] ; (8001b48 <MX_GPIO_Init+0x144>)
  3018. 8001a64: 69db ldr r3, [r3, #28]
  3019. 8001a66: 4a38 ldr r2, [pc, #224] ; (8001b48 <MX_GPIO_Init+0x144>)
  3020. 8001a68: f043 0302 orr.w r3, r3, #2
  3021. 8001a6c: 61d3 str r3, [r2, #28]
  3022. 8001a6e: 4b36 ldr r3, [pc, #216] ; (8001b48 <MX_GPIO_Init+0x144>)
  3023. 8001a70: 69db ldr r3, [r3, #28]
  3024. 8001a72: f003 0302 and.w r3, r3, #2
  3025. 8001a76: 607b str r3, [r7, #4]
  3026. 8001a78: 687b ldr r3, [r7, #4]
  3027. /*Configure GPIO pin Output Level */
  3028. HAL_GPIO_WritePin(GPIOA, GPIO_PIN_7, GPIO_PIN_RESET);
  3029. 8001a7a: 2200 movs r2, #0
  3030. 8001a7c: 2180 movs r1, #128 ; 0x80
  3031. 8001a7e: 4833 ldr r0, [pc, #204] ; (8001b4c <MX_GPIO_Init+0x148>)
  3032. 8001a80: f002 f96c bl 8003d5c <HAL_GPIO_WritePin>
  3033. /*Configure GPIO pin Output Level */
  3034. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);
  3035. 8001a84: 2201 movs r2, #1
  3036. 8001a86: 2101 movs r1, #1
  3037. 8001a88: 4831 ldr r0, [pc, #196] ; (8001b50 <MX_GPIO_Init+0x14c>)
  3038. 8001a8a: f002 f967 bl 8003d5c <HAL_GPIO_WritePin>
  3039. /*Configure GPIO pins : PC13 PC14 PC15 */
  3040. GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  3041. 8001a8e: f44f 4360 mov.w r3, #57344 ; 0xe000
  3042. 8001a92: 617b str r3, [r7, #20]
  3043. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3044. 8001a94: 2303 movs r3, #3
  3045. 8001a96: 61bb str r3, [r7, #24]
  3046. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3047. 8001a98: 2300 movs r3, #0
  3048. 8001a9a: 61fb str r3, [r7, #28]
  3049. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  3050. 8001a9c: f107 0314 add.w r3, r7, #20
  3051. 8001aa0: 4619 mov r1, r3
  3052. 8001aa2: 482c ldr r0, [pc, #176] ; (8001b54 <MX_GPIO_Init+0x150>)
  3053. 8001aa4: f001 fefa bl 800389c <HAL_GPIO_Init>
  3054. /*Configure GPIO pins : PA1 PA2 PA3 PA6
  3055. PA8 PA11 PA12 PA15 */
  3056. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_6
  3057. 8001aa8: f649 134e movw r3, #39246 ; 0x994e
  3058. 8001aac: 617b str r3, [r7, #20]
  3059. |GPIO_PIN_8|GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_15;
  3060. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3061. 8001aae: 2303 movs r3, #3
  3062. 8001ab0: 61bb str r3, [r7, #24]
  3063. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3064. 8001ab2: 2300 movs r3, #0
  3065. 8001ab4: 61fb str r3, [r7, #28]
  3066. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3067. 8001ab6: f107 0314 add.w r3, r7, #20
  3068. 8001aba: 4619 mov r1, r3
  3069. 8001abc: 4823 ldr r0, [pc, #140] ; (8001b4c <MX_GPIO_Init+0x148>)
  3070. 8001abe: f001 feed bl 800389c <HAL_GPIO_Init>
  3071. /*Configure GPIO pin : PA7 */
  3072. GPIO_InitStruct.Pin = GPIO_PIN_7;
  3073. 8001ac2: 2380 movs r3, #128 ; 0x80
  3074. 8001ac4: 617b str r3, [r7, #20]
  3075. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3076. 8001ac6: 2301 movs r3, #1
  3077. 8001ac8: 61bb str r3, [r7, #24]
  3078. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3079. 8001aca: 2300 movs r3, #0
  3080. 8001acc: 61fb str r3, [r7, #28]
  3081. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3082. 8001ace: 2300 movs r3, #0
  3083. 8001ad0: 623b str r3, [r7, #32]
  3084. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3085. 8001ad2: f107 0314 add.w r3, r7, #20
  3086. 8001ad6: 4619 mov r1, r3
  3087. 8001ad8: 481c ldr r0, [pc, #112] ; (8001b4c <MX_GPIO_Init+0x148>)
  3088. 8001ada: f001 fedf bl 800389c <HAL_GPIO_Init>
  3089. /*Configure GPIO pin : PB0 */
  3090. GPIO_InitStruct.Pin = GPIO_PIN_0;
  3091. 8001ade: 2301 movs r3, #1
  3092. 8001ae0: 617b str r3, [r7, #20]
  3093. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  3094. 8001ae2: 2301 movs r3, #1
  3095. 8001ae4: 61bb str r3, [r7, #24]
  3096. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3097. 8001ae6: 2300 movs r3, #0
  3098. 8001ae8: 61fb str r3, [r7, #28]
  3099. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3100. 8001aea: 2300 movs r3, #0
  3101. 8001aec: 623b str r3, [r7, #32]
  3102. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3103. 8001aee: f107 0314 add.w r3, r7, #20
  3104. 8001af2: 4619 mov r1, r3
  3105. 8001af4: 4816 ldr r0, [pc, #88] ; (8001b50 <MX_GPIO_Init+0x14c>)
  3106. 8001af6: f001 fed1 bl 800389c <HAL_GPIO_Init>
  3107. /*Configure GPIO pins : PB2 PB12 PB13 PB3
  3108. PB5 PB8 PB9 */
  3109. GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_3
  3110. 8001afa: f243 332c movw r3, #13100 ; 0x332c
  3111. 8001afe: 617b str r3, [r7, #20]
  3112. |GPIO_PIN_5|GPIO_PIN_8|GPIO_PIN_9;
  3113. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3114. 8001b00: 2303 movs r3, #3
  3115. 8001b02: 61bb str r3, [r7, #24]
  3116. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3117. 8001b04: 2300 movs r3, #0
  3118. 8001b06: 61fb str r3, [r7, #28]
  3119. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3120. 8001b08: f107 0314 add.w r3, r7, #20
  3121. 8001b0c: 4619 mov r1, r3
  3122. 8001b0e: 4810 ldr r0, [pc, #64] ; (8001b50 <MX_GPIO_Init+0x14c>)
  3123. 8001b10: f001 fec4 bl 800389c <HAL_GPIO_Init>
  3124. /*Configure GPIO pins : PB14 PB15 */
  3125. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  3126. 8001b14: f44f 4340 mov.w r3, #49152 ; 0xc000
  3127. 8001b18: 617b str r3, [r7, #20]
  3128. GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
  3129. 8001b1a: f44f 1304 mov.w r3, #2162688 ; 0x210000
  3130. 8001b1e: 61bb str r3, [r7, #24]
  3131. GPIO_InitStruct.Pull = GPIO_PULLUP;
  3132. 8001b20: 2301 movs r3, #1
  3133. 8001b22: 61fb str r3, [r7, #28]
  3134. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3135. 8001b24: f107 0314 add.w r3, r7, #20
  3136. 8001b28: 4619 mov r1, r3
  3137. 8001b2a: 4809 ldr r0, [pc, #36] ; (8001b50 <MX_GPIO_Init+0x14c>)
  3138. 8001b2c: f001 feb6 bl 800389c <HAL_GPIO_Init>
  3139. /* EXTI interrupt init*/
  3140. HAL_NVIC_SetPriority(EXTI15_10_IRQn, 0, 0);
  3141. 8001b30: 2200 movs r2, #0
  3142. 8001b32: 2100 movs r1, #0
  3143. 8001b34: 2028 movs r0, #40 ; 0x28
  3144. 8001b36: f001 fbc2 bl 80032be <HAL_NVIC_SetPriority>
  3145. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  3146. 8001b3a: 2028 movs r0, #40 ; 0x28
  3147. 8001b3c: f001 fbdb bl 80032f6 <HAL_NVIC_EnableIRQ>
  3148. }
  3149. 8001b40: bf00 nop
  3150. 8001b42: 3728 adds r7, #40 ; 0x28
  3151. 8001b44: 46bd mov sp, r7
  3152. 8001b46: bd80 pop {r7, pc}
  3153. 8001b48: 40023800 .word 0x40023800
  3154. 8001b4c: 40020000 .word 0x40020000
  3155. 8001b50: 40020400 .word 0x40020400
  3156. 8001b54: 40020800 .word 0x40020800
  3157. 08001b58 <Error_Handler>:
  3158. /**
  3159. * @brief This function is executed in case of error occurrence.
  3160. * @retval None
  3161. */
  3162. void Error_Handler(void)
  3163. {
  3164. 8001b58: b480 push {r7}
  3165. 8001b5a: af00 add r7, sp, #0
  3166. \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  3167. Can only be executed in Privileged modes.
  3168. */
  3169. __STATIC_FORCEINLINE void __disable_irq(void)
  3170. {
  3171. __ASM volatile ("cpsid i" : : : "memory");
  3172. 8001b5c: b672 cpsid i
  3173. }
  3174. 8001b5e: bf00 nop
  3175. /* USER CODE BEGIN Error_Handler_Debug */
  3176. /* User can add his own implementation to report the HAL error return state */
  3177. __disable_irq();
  3178. while (1)
  3179. 8001b60: e7fe b.n 8001b60 <Error_Handler+0x8>
  3180. ...
  3181. 08001b64 <HAL_MspInit>:
  3182. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  3183. /**
  3184. * Initializes the Global MSP.
  3185. */
  3186. void HAL_MspInit(void)
  3187. {
  3188. 8001b64: b480 push {r7}
  3189. 8001b66: b085 sub sp, #20
  3190. 8001b68: af00 add r7, sp, #0
  3191. /* USER CODE BEGIN MspInit 0 */
  3192. /* USER CODE END MspInit 0 */
  3193. __HAL_RCC_COMP_CLK_ENABLE();
  3194. 8001b6a: 4b14 ldr r3, [pc, #80] ; (8001bbc <HAL_MspInit+0x58>)
  3195. 8001b6c: 6a5b ldr r3, [r3, #36] ; 0x24
  3196. 8001b6e: 4a13 ldr r2, [pc, #76] ; (8001bbc <HAL_MspInit+0x58>)
  3197. 8001b70: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  3198. 8001b74: 6253 str r3, [r2, #36] ; 0x24
  3199. 8001b76: 4b11 ldr r3, [pc, #68] ; (8001bbc <HAL_MspInit+0x58>)
  3200. 8001b78: 6a5b ldr r3, [r3, #36] ; 0x24
  3201. 8001b7a: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000
  3202. 8001b7e: 60fb str r3, [r7, #12]
  3203. 8001b80: 68fb ldr r3, [r7, #12]
  3204. __HAL_RCC_SYSCFG_CLK_ENABLE();
  3205. 8001b82: 4b0e ldr r3, [pc, #56] ; (8001bbc <HAL_MspInit+0x58>)
  3206. 8001b84: 6a1b ldr r3, [r3, #32]
  3207. 8001b86: 4a0d ldr r2, [pc, #52] ; (8001bbc <HAL_MspInit+0x58>)
  3208. 8001b88: f043 0301 orr.w r3, r3, #1
  3209. 8001b8c: 6213 str r3, [r2, #32]
  3210. 8001b8e: 4b0b ldr r3, [pc, #44] ; (8001bbc <HAL_MspInit+0x58>)
  3211. 8001b90: 6a1b ldr r3, [r3, #32]
  3212. 8001b92: f003 0301 and.w r3, r3, #1
  3213. 8001b96: 60bb str r3, [r7, #8]
  3214. 8001b98: 68bb ldr r3, [r7, #8]
  3215. __HAL_RCC_PWR_CLK_ENABLE();
  3216. 8001b9a: 4b08 ldr r3, [pc, #32] ; (8001bbc <HAL_MspInit+0x58>)
  3217. 8001b9c: 6a5b ldr r3, [r3, #36] ; 0x24
  3218. 8001b9e: 4a07 ldr r2, [pc, #28] ; (8001bbc <HAL_MspInit+0x58>)
  3219. 8001ba0: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  3220. 8001ba4: 6253 str r3, [r2, #36] ; 0x24
  3221. 8001ba6: 4b05 ldr r3, [pc, #20] ; (8001bbc <HAL_MspInit+0x58>)
  3222. 8001ba8: 6a5b ldr r3, [r3, #36] ; 0x24
  3223. 8001baa: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  3224. 8001bae: 607b str r3, [r7, #4]
  3225. 8001bb0: 687b ldr r3, [r7, #4]
  3226. /* System interrupt init*/
  3227. /* USER CODE BEGIN MspInit 1 */
  3228. /* USER CODE END MspInit 1 */
  3229. }
  3230. 8001bb2: bf00 nop
  3231. 8001bb4: 3714 adds r7, #20
  3232. 8001bb6: 46bd mov sp, r7
  3233. 8001bb8: bc80 pop {r7}
  3234. 8001bba: 4770 bx lr
  3235. 8001bbc: 40023800 .word 0x40023800
  3236. 08001bc0 <HAL_ADC_MspInit>:
  3237. * This function configures the hardware resources used in this example
  3238. * @param hadc: ADC handle pointer
  3239. * @retval None
  3240. */
  3241. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  3242. {
  3243. 8001bc0: b580 push {r7, lr}
  3244. 8001bc2: b08a sub sp, #40 ; 0x28
  3245. 8001bc4: af00 add r7, sp, #0
  3246. 8001bc6: 6078 str r0, [r7, #4]
  3247. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3248. 8001bc8: f107 0314 add.w r3, r7, #20
  3249. 8001bcc: 2200 movs r2, #0
  3250. 8001bce: 601a str r2, [r3, #0]
  3251. 8001bd0: 605a str r2, [r3, #4]
  3252. 8001bd2: 609a str r2, [r3, #8]
  3253. 8001bd4: 60da str r2, [r3, #12]
  3254. 8001bd6: 611a str r2, [r3, #16]
  3255. if(hadc->Instance==ADC1)
  3256. 8001bd8: 687b ldr r3, [r7, #4]
  3257. 8001bda: 681b ldr r3, [r3, #0]
  3258. 8001bdc: 4a29 ldr r2, [pc, #164] ; (8001c84 <HAL_ADC_MspInit+0xc4>)
  3259. 8001bde: 4293 cmp r3, r2
  3260. 8001be0: d14b bne.n 8001c7a <HAL_ADC_MspInit+0xba>
  3261. {
  3262. /* USER CODE BEGIN ADC1_MspInit 0 */
  3263. /* USER CODE END ADC1_MspInit 0 */
  3264. /* Peripheral clock enable */
  3265. __HAL_RCC_ADC1_CLK_ENABLE();
  3266. 8001be2: 4b29 ldr r3, [pc, #164] ; (8001c88 <HAL_ADC_MspInit+0xc8>)
  3267. 8001be4: 6a1b ldr r3, [r3, #32]
  3268. 8001be6: 4a28 ldr r2, [pc, #160] ; (8001c88 <HAL_ADC_MspInit+0xc8>)
  3269. 8001be8: f443 7300 orr.w r3, r3, #512 ; 0x200
  3270. 8001bec: 6213 str r3, [r2, #32]
  3271. 8001bee: 4b26 ldr r3, [pc, #152] ; (8001c88 <HAL_ADC_MspInit+0xc8>)
  3272. 8001bf0: 6a1b ldr r3, [r3, #32]
  3273. 8001bf2: f403 7300 and.w r3, r3, #512 ; 0x200
  3274. 8001bf6: 613b str r3, [r7, #16]
  3275. 8001bf8: 693b ldr r3, [r7, #16]
  3276. __HAL_RCC_GPIOA_CLK_ENABLE();
  3277. 8001bfa: 4b23 ldr r3, [pc, #140] ; (8001c88 <HAL_ADC_MspInit+0xc8>)
  3278. 8001bfc: 69db ldr r3, [r3, #28]
  3279. 8001bfe: 4a22 ldr r2, [pc, #136] ; (8001c88 <HAL_ADC_MspInit+0xc8>)
  3280. 8001c00: f043 0301 orr.w r3, r3, #1
  3281. 8001c04: 61d3 str r3, [r2, #28]
  3282. 8001c06: 4b20 ldr r3, [pc, #128] ; (8001c88 <HAL_ADC_MspInit+0xc8>)
  3283. 8001c08: 69db ldr r3, [r3, #28]
  3284. 8001c0a: f003 0301 and.w r3, r3, #1
  3285. 8001c0e: 60fb str r3, [r7, #12]
  3286. 8001c10: 68fb ldr r3, [r7, #12]
  3287. /**ADC GPIO Configuration
  3288. PA0-WKUP1 ------> ADC_IN0
  3289. */
  3290. GPIO_InitStruct.Pin = GPIO_PIN_0;
  3291. 8001c12: 2301 movs r3, #1
  3292. 8001c14: 617b str r3, [r7, #20]
  3293. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3294. 8001c16: 2303 movs r3, #3
  3295. 8001c18: 61bb str r3, [r7, #24]
  3296. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3297. 8001c1a: 2300 movs r3, #0
  3298. 8001c1c: 61fb str r3, [r7, #28]
  3299. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3300. 8001c1e: f107 0314 add.w r3, r7, #20
  3301. 8001c22: 4619 mov r1, r3
  3302. 8001c24: 4819 ldr r0, [pc, #100] ; (8001c8c <HAL_ADC_MspInit+0xcc>)
  3303. 8001c26: f001 fe39 bl 800389c <HAL_GPIO_Init>
  3304. /* ADC1 DMA Init */
  3305. /* ADC Init */
  3306. hdma_adc.Instance = DMA1_Channel1;
  3307. 8001c2a: 4b19 ldr r3, [pc, #100] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3308. 8001c2c: 4a19 ldr r2, [pc, #100] ; (8001c94 <HAL_ADC_MspInit+0xd4>)
  3309. 8001c2e: 601a str r2, [r3, #0]
  3310. hdma_adc.Init.Direction = DMA_PERIPH_TO_MEMORY;
  3311. 8001c30: 4b17 ldr r3, [pc, #92] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3312. 8001c32: 2200 movs r2, #0
  3313. 8001c34: 605a str r2, [r3, #4]
  3314. hdma_adc.Init.PeriphInc = DMA_PINC_DISABLE;
  3315. 8001c36: 4b16 ldr r3, [pc, #88] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3316. 8001c38: 2200 movs r2, #0
  3317. 8001c3a: 609a str r2, [r3, #8]
  3318. hdma_adc.Init.MemInc = DMA_MINC_ENABLE;
  3319. 8001c3c: 4b14 ldr r3, [pc, #80] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3320. 8001c3e: 2280 movs r2, #128 ; 0x80
  3321. 8001c40: 60da str r2, [r3, #12]
  3322. hdma_adc.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
  3323. 8001c42: 4b13 ldr r3, [pc, #76] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3324. 8001c44: f44f 7200 mov.w r2, #512 ; 0x200
  3325. 8001c48: 611a str r2, [r3, #16]
  3326. hdma_adc.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
  3327. 8001c4a: 4b11 ldr r3, [pc, #68] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3328. 8001c4c: f44f 6200 mov.w r2, #2048 ; 0x800
  3329. 8001c50: 615a str r2, [r3, #20]
  3330. hdma_adc.Init.Mode = DMA_NORMAL;
  3331. 8001c52: 4b0f ldr r3, [pc, #60] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3332. 8001c54: 2200 movs r2, #0
  3333. 8001c56: 619a str r2, [r3, #24]
  3334. hdma_adc.Init.Priority = DMA_PRIORITY_LOW;
  3335. 8001c58: 4b0d ldr r3, [pc, #52] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3336. 8001c5a: 2200 movs r2, #0
  3337. 8001c5c: 61da str r2, [r3, #28]
  3338. if (HAL_DMA_Init(&hdma_adc) != HAL_OK)
  3339. 8001c5e: 480c ldr r0, [pc, #48] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3340. 8001c60: f001 fc48 bl 80034f4 <HAL_DMA_Init>
  3341. 8001c64: 4603 mov r3, r0
  3342. 8001c66: 2b00 cmp r3, #0
  3343. 8001c68: d001 beq.n 8001c6e <HAL_ADC_MspInit+0xae>
  3344. {
  3345. Error_Handler();
  3346. 8001c6a: f7ff ff75 bl 8001b58 <Error_Handler>
  3347. }
  3348. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc);
  3349. 8001c6e: 687b ldr r3, [r7, #4]
  3350. 8001c70: 4a07 ldr r2, [pc, #28] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3351. 8001c72: 645a str r2, [r3, #68] ; 0x44
  3352. 8001c74: 4a06 ldr r2, [pc, #24] ; (8001c90 <HAL_ADC_MspInit+0xd0>)
  3353. 8001c76: 687b ldr r3, [r7, #4]
  3354. 8001c78: 6253 str r3, [r2, #36] ; 0x24
  3355. /* USER CODE BEGIN ADC1_MspInit 1 */
  3356. /* USER CODE END ADC1_MspInit 1 */
  3357. }
  3358. }
  3359. 8001c7a: bf00 nop
  3360. 8001c7c: 3728 adds r7, #40 ; 0x28
  3361. 8001c7e: 46bd mov sp, r7
  3362. 8001c80: bd80 pop {r7, pc}
  3363. 8001c82: bf00 nop
  3364. 8001c84: 40012400 .word 0x40012400
  3365. 8001c88: 40023800 .word 0x40023800
  3366. 8001c8c: 40020000 .word 0x40020000
  3367. 8001c90: 20000640 .word 0x20000640
  3368. 8001c94: 40026008 .word 0x40026008
  3369. 08001c98 <HAL_COMP_MspInit>:
  3370. * This function configures the hardware resources used in this example
  3371. * @param hcomp: COMP handle pointer
  3372. * @retval None
  3373. */
  3374. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  3375. {
  3376. 8001c98: b580 push {r7, lr}
  3377. 8001c9a: b088 sub sp, #32
  3378. 8001c9c: af00 add r7, sp, #0
  3379. 8001c9e: 6078 str r0, [r7, #4]
  3380. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3381. 8001ca0: f107 030c add.w r3, r7, #12
  3382. 8001ca4: 2200 movs r2, #0
  3383. 8001ca6: 601a str r2, [r3, #0]
  3384. 8001ca8: 605a str r2, [r3, #4]
  3385. 8001caa: 609a str r2, [r3, #8]
  3386. 8001cac: 60da str r2, [r3, #12]
  3387. 8001cae: 611a str r2, [r3, #16]
  3388. if(hcomp->Instance==COMP2)
  3389. 8001cb0: 687b ldr r3, [r7, #4]
  3390. 8001cb2: 681b ldr r3, [r3, #0]
  3391. 8001cb4: 4a13 ldr r2, [pc, #76] ; (8001d04 <HAL_COMP_MspInit+0x6c>)
  3392. 8001cb6: 4293 cmp r3, r2
  3393. 8001cb8: d11f bne.n 8001cfa <HAL_COMP_MspInit+0x62>
  3394. {
  3395. /* USER CODE BEGIN COMP2_MspInit 0 */
  3396. /* USER CODE END COMP2_MspInit 0 */
  3397. __HAL_RCC_GPIOB_CLK_ENABLE();
  3398. 8001cba: 4b13 ldr r3, [pc, #76] ; (8001d08 <HAL_COMP_MspInit+0x70>)
  3399. 8001cbc: 69db ldr r3, [r3, #28]
  3400. 8001cbe: 4a12 ldr r2, [pc, #72] ; (8001d08 <HAL_COMP_MspInit+0x70>)
  3401. 8001cc0: f043 0302 orr.w r3, r3, #2
  3402. 8001cc4: 61d3 str r3, [r2, #28]
  3403. 8001cc6: 4b10 ldr r3, [pc, #64] ; (8001d08 <HAL_COMP_MspInit+0x70>)
  3404. 8001cc8: 69db ldr r3, [r3, #28]
  3405. 8001cca: f003 0302 and.w r3, r3, #2
  3406. 8001cce: 60bb str r3, [r7, #8]
  3407. 8001cd0: 68bb ldr r3, [r7, #8]
  3408. /**COMP2 GPIO Configuration
  3409. PB4 ------> COMP2_INP
  3410. */
  3411. GPIO_InitStruct.Pin = GPIO_PIN_4;
  3412. 8001cd2: 2310 movs r3, #16
  3413. 8001cd4: 60fb str r3, [r7, #12]
  3414. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3415. 8001cd6: 2303 movs r3, #3
  3416. 8001cd8: 613b str r3, [r7, #16]
  3417. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3418. 8001cda: 2300 movs r3, #0
  3419. 8001cdc: 617b str r3, [r7, #20]
  3420. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3421. 8001cde: f107 030c add.w r3, r7, #12
  3422. 8001ce2: 4619 mov r1, r3
  3423. 8001ce4: 4809 ldr r0, [pc, #36] ; (8001d0c <HAL_COMP_MspInit+0x74>)
  3424. 8001ce6: f001 fdd9 bl 800389c <HAL_GPIO_Init>
  3425. /* COMP2 interrupt Init */
  3426. HAL_NVIC_SetPriority(COMP_IRQn, 0, 0);
  3427. 8001cea: 2200 movs r2, #0
  3428. 8001cec: 2100 movs r1, #0
  3429. 8001cee: 2016 movs r0, #22
  3430. 8001cf0: f001 fae5 bl 80032be <HAL_NVIC_SetPriority>
  3431. HAL_NVIC_EnableIRQ(COMP_IRQn);
  3432. 8001cf4: 2016 movs r0, #22
  3433. 8001cf6: f001 fafe bl 80032f6 <HAL_NVIC_EnableIRQ>
  3434. /* USER CODE BEGIN COMP2_MspInit 1 */
  3435. /* USER CODE END COMP2_MspInit 1 */
  3436. }
  3437. }
  3438. 8001cfa: bf00 nop
  3439. 8001cfc: 3720 adds r7, #32
  3440. 8001cfe: 46bd mov sp, r7
  3441. 8001d00: bd80 pop {r7, pc}
  3442. 8001d02: bf00 nop
  3443. 8001d04: 40007c01 .word 0x40007c01
  3444. 8001d08: 40023800 .word 0x40023800
  3445. 8001d0c: 40020400 .word 0x40020400
  3446. 08001d10 <HAL_DAC_MspInit>:
  3447. * This function configures the hardware resources used in this example
  3448. * @param hdac: DAC handle pointer
  3449. * @retval None
  3450. */
  3451. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  3452. {
  3453. 8001d10: b580 push {r7, lr}
  3454. 8001d12: b08a sub sp, #40 ; 0x28
  3455. 8001d14: af00 add r7, sp, #0
  3456. 8001d16: 6078 str r0, [r7, #4]
  3457. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3458. 8001d18: f107 0314 add.w r3, r7, #20
  3459. 8001d1c: 2200 movs r2, #0
  3460. 8001d1e: 601a str r2, [r3, #0]
  3461. 8001d20: 605a str r2, [r3, #4]
  3462. 8001d22: 609a str r2, [r3, #8]
  3463. 8001d24: 60da str r2, [r3, #12]
  3464. 8001d26: 611a str r2, [r3, #16]
  3465. if(hdac->Instance==DAC)
  3466. 8001d28: 687b ldr r3, [r7, #4]
  3467. 8001d2a: 681b ldr r3, [r3, #0]
  3468. 8001d2c: 4a15 ldr r2, [pc, #84] ; (8001d84 <HAL_DAC_MspInit+0x74>)
  3469. 8001d2e: 4293 cmp r3, r2
  3470. 8001d30: d123 bne.n 8001d7a <HAL_DAC_MspInit+0x6a>
  3471. {
  3472. /* USER CODE BEGIN DAC_MspInit 0 */
  3473. /* USER CODE END DAC_MspInit 0 */
  3474. /* Peripheral clock enable */
  3475. __HAL_RCC_DAC_CLK_ENABLE();
  3476. 8001d32: 4b15 ldr r3, [pc, #84] ; (8001d88 <HAL_DAC_MspInit+0x78>)
  3477. 8001d34: 6a5b ldr r3, [r3, #36] ; 0x24
  3478. 8001d36: 4a14 ldr r2, [pc, #80] ; (8001d88 <HAL_DAC_MspInit+0x78>)
  3479. 8001d38: f043 5300 orr.w r3, r3, #536870912 ; 0x20000000
  3480. 8001d3c: 6253 str r3, [r2, #36] ; 0x24
  3481. 8001d3e: 4b12 ldr r3, [pc, #72] ; (8001d88 <HAL_DAC_MspInit+0x78>)
  3482. 8001d40: 6a5b ldr r3, [r3, #36] ; 0x24
  3483. 8001d42: f003 5300 and.w r3, r3, #536870912 ; 0x20000000
  3484. 8001d46: 613b str r3, [r7, #16]
  3485. 8001d48: 693b ldr r3, [r7, #16]
  3486. __HAL_RCC_GPIOA_CLK_ENABLE();
  3487. 8001d4a: 4b0f ldr r3, [pc, #60] ; (8001d88 <HAL_DAC_MspInit+0x78>)
  3488. 8001d4c: 69db ldr r3, [r3, #28]
  3489. 8001d4e: 4a0e ldr r2, [pc, #56] ; (8001d88 <HAL_DAC_MspInit+0x78>)
  3490. 8001d50: f043 0301 orr.w r3, r3, #1
  3491. 8001d54: 61d3 str r3, [r2, #28]
  3492. 8001d56: 4b0c ldr r3, [pc, #48] ; (8001d88 <HAL_DAC_MspInit+0x78>)
  3493. 8001d58: 69db ldr r3, [r3, #28]
  3494. 8001d5a: f003 0301 and.w r3, r3, #1
  3495. 8001d5e: 60fb str r3, [r7, #12]
  3496. 8001d60: 68fb ldr r3, [r7, #12]
  3497. /**DAC GPIO Configuration
  3498. PA4 ------> DAC_OUT1
  3499. PA5 ------> DAC_OUT2
  3500. */
  3501. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  3502. 8001d62: 2330 movs r3, #48 ; 0x30
  3503. 8001d64: 617b str r3, [r7, #20]
  3504. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3505. 8001d66: 2303 movs r3, #3
  3506. 8001d68: 61bb str r3, [r7, #24]
  3507. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3508. 8001d6a: 2300 movs r3, #0
  3509. 8001d6c: 61fb str r3, [r7, #28]
  3510. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3511. 8001d6e: f107 0314 add.w r3, r7, #20
  3512. 8001d72: 4619 mov r1, r3
  3513. 8001d74: 4805 ldr r0, [pc, #20] ; (8001d8c <HAL_DAC_MspInit+0x7c>)
  3514. 8001d76: f001 fd91 bl 800389c <HAL_GPIO_Init>
  3515. /* USER CODE BEGIN DAC_MspInit 1 */
  3516. /* USER CODE END DAC_MspInit 1 */
  3517. }
  3518. }
  3519. 8001d7a: bf00 nop
  3520. 8001d7c: 3728 adds r7, #40 ; 0x28
  3521. 8001d7e: 46bd mov sp, r7
  3522. 8001d80: bd80 pop {r7, pc}
  3523. 8001d82: bf00 nop
  3524. 8001d84: 40007400 .word 0x40007400
  3525. 8001d88: 40023800 .word 0x40023800
  3526. 8001d8c: 40020000 .word 0x40020000
  3527. 08001d90 <HAL_I2C_MspInit>:
  3528. * This function configures the hardware resources used in this example
  3529. * @param hi2c: I2C handle pointer
  3530. * @retval None
  3531. */
  3532. void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
  3533. {
  3534. 8001d90: b580 push {r7, lr}
  3535. 8001d92: b08c sub sp, #48 ; 0x30
  3536. 8001d94: af00 add r7, sp, #0
  3537. 8001d96: 6078 str r0, [r7, #4]
  3538. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3539. 8001d98: f107 031c add.w r3, r7, #28
  3540. 8001d9c: 2200 movs r2, #0
  3541. 8001d9e: 601a str r2, [r3, #0]
  3542. 8001da0: 605a str r2, [r3, #4]
  3543. 8001da2: 609a str r2, [r3, #8]
  3544. 8001da4: 60da str r2, [r3, #12]
  3545. 8001da6: 611a str r2, [r3, #16]
  3546. if(hi2c->Instance==I2C1)
  3547. 8001da8: 687b ldr r3, [r7, #4]
  3548. 8001daa: 681b ldr r3, [r3, #0]
  3549. 8001dac: 4a2e ldr r2, [pc, #184] ; (8001e68 <HAL_I2C_MspInit+0xd8>)
  3550. 8001dae: 4293 cmp r3, r2
  3551. 8001db0: d128 bne.n 8001e04 <HAL_I2C_MspInit+0x74>
  3552. {
  3553. /* USER CODE BEGIN I2C1_MspInit 0 */
  3554. /* USER CODE END I2C1_MspInit 0 */
  3555. __HAL_RCC_GPIOB_CLK_ENABLE();
  3556. 8001db2: 4b2e ldr r3, [pc, #184] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3557. 8001db4: 69db ldr r3, [r3, #28]
  3558. 8001db6: 4a2d ldr r2, [pc, #180] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3559. 8001db8: f043 0302 orr.w r3, r3, #2
  3560. 8001dbc: 61d3 str r3, [r2, #28]
  3561. 8001dbe: 4b2b ldr r3, [pc, #172] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3562. 8001dc0: 69db ldr r3, [r3, #28]
  3563. 8001dc2: f003 0302 and.w r3, r3, #2
  3564. 8001dc6: 61bb str r3, [r7, #24]
  3565. 8001dc8: 69bb ldr r3, [r7, #24]
  3566. /**I2C1 GPIO Configuration
  3567. PB6 ------> I2C1_SCL
  3568. PB7 ------> I2C1_SDA
  3569. */
  3570. GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
  3571. 8001dca: 23c0 movs r3, #192 ; 0xc0
  3572. 8001dcc: 61fb str r3, [r7, #28]
  3573. GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
  3574. 8001dce: 2312 movs r3, #18
  3575. 8001dd0: 623b str r3, [r7, #32]
  3576. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3577. 8001dd2: 2300 movs r3, #0
  3578. 8001dd4: 627b str r3, [r7, #36] ; 0x24
  3579. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  3580. 8001dd6: 2303 movs r3, #3
  3581. 8001dd8: 62bb str r3, [r7, #40] ; 0x28
  3582. GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
  3583. 8001dda: 2304 movs r3, #4
  3584. 8001ddc: 62fb str r3, [r7, #44] ; 0x2c
  3585. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3586. 8001dde: f107 031c add.w r3, r7, #28
  3587. 8001de2: 4619 mov r1, r3
  3588. 8001de4: 4822 ldr r0, [pc, #136] ; (8001e70 <HAL_I2C_MspInit+0xe0>)
  3589. 8001de6: f001 fd59 bl 800389c <HAL_GPIO_Init>
  3590. /* Peripheral clock enable */
  3591. __HAL_RCC_I2C1_CLK_ENABLE();
  3592. 8001dea: 4b20 ldr r3, [pc, #128] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3593. 8001dec: 6a5b ldr r3, [r3, #36] ; 0x24
  3594. 8001dee: 4a1f ldr r2, [pc, #124] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3595. 8001df0: f443 1300 orr.w r3, r3, #2097152 ; 0x200000
  3596. 8001df4: 6253 str r3, [r2, #36] ; 0x24
  3597. 8001df6: 4b1d ldr r3, [pc, #116] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3598. 8001df8: 6a5b ldr r3, [r3, #36] ; 0x24
  3599. 8001dfa: f403 1300 and.w r3, r3, #2097152 ; 0x200000
  3600. 8001dfe: 617b str r3, [r7, #20]
  3601. 8001e00: 697b ldr r3, [r7, #20]
  3602. /* USER CODE BEGIN I2C2_MspInit 1 */
  3603. /* USER CODE END I2C2_MspInit 1 */
  3604. }
  3605. }
  3606. 8001e02: e02d b.n 8001e60 <HAL_I2C_MspInit+0xd0>
  3607. else if(hi2c->Instance==I2C2)
  3608. 8001e04: 687b ldr r3, [r7, #4]
  3609. 8001e06: 681b ldr r3, [r3, #0]
  3610. 8001e08: 4a1a ldr r2, [pc, #104] ; (8001e74 <HAL_I2C_MspInit+0xe4>)
  3611. 8001e0a: 4293 cmp r3, r2
  3612. 8001e0c: d128 bne.n 8001e60 <HAL_I2C_MspInit+0xd0>
  3613. __HAL_RCC_GPIOB_CLK_ENABLE();
  3614. 8001e0e: 4b17 ldr r3, [pc, #92] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3615. 8001e10: 69db ldr r3, [r3, #28]
  3616. 8001e12: 4a16 ldr r2, [pc, #88] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3617. 8001e14: f043 0302 orr.w r3, r3, #2
  3618. 8001e18: 61d3 str r3, [r2, #28]
  3619. 8001e1a: 4b14 ldr r3, [pc, #80] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3620. 8001e1c: 69db ldr r3, [r3, #28]
  3621. 8001e1e: f003 0302 and.w r3, r3, #2
  3622. 8001e22: 613b str r3, [r7, #16]
  3623. 8001e24: 693b ldr r3, [r7, #16]
  3624. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  3625. 8001e26: f44f 6340 mov.w r3, #3072 ; 0xc00
  3626. 8001e2a: 61fb str r3, [r7, #28]
  3627. GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
  3628. 8001e2c: 2312 movs r3, #18
  3629. 8001e2e: 623b str r3, [r7, #32]
  3630. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3631. 8001e30: 2300 movs r3, #0
  3632. 8001e32: 627b str r3, [r7, #36] ; 0x24
  3633. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  3634. 8001e34: 2303 movs r3, #3
  3635. 8001e36: 62bb str r3, [r7, #40] ; 0x28
  3636. GPIO_InitStruct.Alternate = GPIO_AF4_I2C2;
  3637. 8001e38: 2304 movs r3, #4
  3638. 8001e3a: 62fb str r3, [r7, #44] ; 0x2c
  3639. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3640. 8001e3c: f107 031c add.w r3, r7, #28
  3641. 8001e40: 4619 mov r1, r3
  3642. 8001e42: 480b ldr r0, [pc, #44] ; (8001e70 <HAL_I2C_MspInit+0xe0>)
  3643. 8001e44: f001 fd2a bl 800389c <HAL_GPIO_Init>
  3644. __HAL_RCC_I2C2_CLK_ENABLE();
  3645. 8001e48: 4b08 ldr r3, [pc, #32] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3646. 8001e4a: 6a5b ldr r3, [r3, #36] ; 0x24
  3647. 8001e4c: 4a07 ldr r2, [pc, #28] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3648. 8001e4e: f443 0380 orr.w r3, r3, #4194304 ; 0x400000
  3649. 8001e52: 6253 str r3, [r2, #36] ; 0x24
  3650. 8001e54: 4b05 ldr r3, [pc, #20] ; (8001e6c <HAL_I2C_MspInit+0xdc>)
  3651. 8001e56: 6a5b ldr r3, [r3, #36] ; 0x24
  3652. 8001e58: f403 0380 and.w r3, r3, #4194304 ; 0x400000
  3653. 8001e5c: 60fb str r3, [r7, #12]
  3654. 8001e5e: 68fb ldr r3, [r7, #12]
  3655. }
  3656. 8001e60: bf00 nop
  3657. 8001e62: 3730 adds r7, #48 ; 0x30
  3658. 8001e64: 46bd mov sp, r7
  3659. 8001e66: bd80 pop {r7, pc}
  3660. 8001e68: 40005400 .word 0x40005400
  3661. 8001e6c: 40023800 .word 0x40023800
  3662. 8001e70: 40020400 .word 0x40020400
  3663. 8001e74: 40005800 .word 0x40005800
  3664. 08001e78 <HAL_I2C_MspDeInit>:
  3665. * This function freeze the hardware resources used in this example
  3666. * @param hi2c: I2C handle pointer
  3667. * @retval None
  3668. */
  3669. void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c)
  3670. {
  3671. 8001e78: b580 push {r7, lr}
  3672. 8001e7a: b082 sub sp, #8
  3673. 8001e7c: af00 add r7, sp, #0
  3674. 8001e7e: 6078 str r0, [r7, #4]
  3675. if(hi2c->Instance==I2C1)
  3676. 8001e80: 687b ldr r3, [r7, #4]
  3677. 8001e82: 681b ldr r3, [r3, #0]
  3678. 8001e84: 4a15 ldr r2, [pc, #84] ; (8001edc <HAL_I2C_MspDeInit+0x64>)
  3679. 8001e86: 4293 cmp r3, r2
  3680. 8001e88: d10e bne.n 8001ea8 <HAL_I2C_MspDeInit+0x30>
  3681. {
  3682. /* USER CODE BEGIN I2C1_MspDeInit 0 */
  3683. /* USER CODE END I2C1_MspDeInit 0 */
  3684. /* Peripheral clock disable */
  3685. __HAL_RCC_I2C1_CLK_DISABLE();
  3686. 8001e8a: 4b15 ldr r3, [pc, #84] ; (8001ee0 <HAL_I2C_MspDeInit+0x68>)
  3687. 8001e8c: 6a5b ldr r3, [r3, #36] ; 0x24
  3688. 8001e8e: 4a14 ldr r2, [pc, #80] ; (8001ee0 <HAL_I2C_MspDeInit+0x68>)
  3689. 8001e90: f423 1300 bic.w r3, r3, #2097152 ; 0x200000
  3690. 8001e94: 6253 str r3, [r2, #36] ; 0x24
  3691. /**I2C1 GPIO Configuration
  3692. PB6 ------> I2C1_SCL
  3693. PB7 ------> I2C1_SDA
  3694. */
  3695. HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6);
  3696. 8001e96: 2140 movs r1, #64 ; 0x40
  3697. 8001e98: 4812 ldr r0, [pc, #72] ; (8001ee4 <HAL_I2C_MspDeInit+0x6c>)
  3698. 8001e9a: f001 fe7f bl 8003b9c <HAL_GPIO_DeInit>
  3699. HAL_GPIO_DeInit(GPIOB, GPIO_PIN_7);
  3700. 8001e9e: 2180 movs r1, #128 ; 0x80
  3701. 8001ea0: 4810 ldr r0, [pc, #64] ; (8001ee4 <HAL_I2C_MspDeInit+0x6c>)
  3702. 8001ea2: f001 fe7b bl 8003b9c <HAL_GPIO_DeInit>
  3703. /* USER CODE BEGIN I2C2_MspDeInit 1 */
  3704. /* USER CODE END I2C2_MspDeInit 1 */
  3705. }
  3706. }
  3707. 8001ea6: e014 b.n 8001ed2 <HAL_I2C_MspDeInit+0x5a>
  3708. else if(hi2c->Instance==I2C2)
  3709. 8001ea8: 687b ldr r3, [r7, #4]
  3710. 8001eaa: 681b ldr r3, [r3, #0]
  3711. 8001eac: 4a0e ldr r2, [pc, #56] ; (8001ee8 <HAL_I2C_MspDeInit+0x70>)
  3712. 8001eae: 4293 cmp r3, r2
  3713. 8001eb0: d10f bne.n 8001ed2 <HAL_I2C_MspDeInit+0x5a>
  3714. __HAL_RCC_I2C2_CLK_DISABLE();
  3715. 8001eb2: 4b0b ldr r3, [pc, #44] ; (8001ee0 <HAL_I2C_MspDeInit+0x68>)
  3716. 8001eb4: 6a5b ldr r3, [r3, #36] ; 0x24
  3717. 8001eb6: 4a0a ldr r2, [pc, #40] ; (8001ee0 <HAL_I2C_MspDeInit+0x68>)
  3718. 8001eb8: f423 0380 bic.w r3, r3, #4194304 ; 0x400000
  3719. 8001ebc: 6253 str r3, [r2, #36] ; 0x24
  3720. HAL_GPIO_DeInit(GPIOB, GPIO_PIN_10);
  3721. 8001ebe: f44f 6180 mov.w r1, #1024 ; 0x400
  3722. 8001ec2: 4808 ldr r0, [pc, #32] ; (8001ee4 <HAL_I2C_MspDeInit+0x6c>)
  3723. 8001ec4: f001 fe6a bl 8003b9c <HAL_GPIO_DeInit>
  3724. HAL_GPIO_DeInit(GPIOB, GPIO_PIN_11);
  3725. 8001ec8: f44f 6100 mov.w r1, #2048 ; 0x800
  3726. 8001ecc: 4805 ldr r0, [pc, #20] ; (8001ee4 <HAL_I2C_MspDeInit+0x6c>)
  3727. 8001ece: f001 fe65 bl 8003b9c <HAL_GPIO_DeInit>
  3728. }
  3729. 8001ed2: bf00 nop
  3730. 8001ed4: 3708 adds r7, #8
  3731. 8001ed6: 46bd mov sp, r7
  3732. 8001ed8: bd80 pop {r7, pc}
  3733. 8001eda: bf00 nop
  3734. 8001edc: 40005400 .word 0x40005400
  3735. 8001ee0: 40023800 .word 0x40023800
  3736. 8001ee4: 40020400 .word 0x40020400
  3737. 8001ee8: 40005800 .word 0x40005800
  3738. 08001eec <HAL_TIM_Base_MspInit>:
  3739. * This function configures the hardware resources used in this example
  3740. * @param htim_base: TIM_Base handle pointer
  3741. * @retval None
  3742. */
  3743. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  3744. {
  3745. 8001eec: b580 push {r7, lr}
  3746. 8001eee: b086 sub sp, #24
  3747. 8001ef0: af00 add r7, sp, #0
  3748. 8001ef2: 6078 str r0, [r7, #4]
  3749. if(htim_base->Instance==TIM2)
  3750. 8001ef4: 687b ldr r3, [r7, #4]
  3751. 8001ef6: 681b ldr r3, [r3, #0]
  3752. 8001ef8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  3753. 8001efc: d10c bne.n 8001f18 <HAL_TIM_Base_MspInit+0x2c>
  3754. {
  3755. /* USER CODE BEGIN TIM2_MspInit 0 */
  3756. /* USER CODE END TIM2_MspInit 0 */
  3757. /* Peripheral clock enable */
  3758. __HAL_RCC_TIM2_CLK_ENABLE();
  3759. 8001efe: 4b2b ldr r3, [pc, #172] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3760. 8001f00: 6a5b ldr r3, [r3, #36] ; 0x24
  3761. 8001f02: 4a2a ldr r2, [pc, #168] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3762. 8001f04: f043 0301 orr.w r3, r3, #1
  3763. 8001f08: 6253 str r3, [r2, #36] ; 0x24
  3764. 8001f0a: 4b28 ldr r3, [pc, #160] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3765. 8001f0c: 6a5b ldr r3, [r3, #36] ; 0x24
  3766. 8001f0e: f003 0301 and.w r3, r3, #1
  3767. 8001f12: 617b str r3, [r7, #20]
  3768. 8001f14: 697b ldr r3, [r7, #20]
  3769. /* USER CODE BEGIN TIM6_MspInit 1 */
  3770. /* USER CODE END TIM6_MspInit 1 */
  3771. }
  3772. }
  3773. 8001f16: e044 b.n 8001fa2 <HAL_TIM_Base_MspInit+0xb6>
  3774. else if(htim_base->Instance==TIM3)
  3775. 8001f18: 687b ldr r3, [r7, #4]
  3776. 8001f1a: 681b ldr r3, [r3, #0]
  3777. 8001f1c: 4a24 ldr r2, [pc, #144] ; (8001fb0 <HAL_TIM_Base_MspInit+0xc4>)
  3778. 8001f1e: 4293 cmp r3, r2
  3779. 8001f20: d10c bne.n 8001f3c <HAL_TIM_Base_MspInit+0x50>
  3780. __HAL_RCC_TIM3_CLK_ENABLE();
  3781. 8001f22: 4b22 ldr r3, [pc, #136] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3782. 8001f24: 6a5b ldr r3, [r3, #36] ; 0x24
  3783. 8001f26: 4a21 ldr r2, [pc, #132] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3784. 8001f28: f043 0302 orr.w r3, r3, #2
  3785. 8001f2c: 6253 str r3, [r2, #36] ; 0x24
  3786. 8001f2e: 4b1f ldr r3, [pc, #124] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3787. 8001f30: 6a5b ldr r3, [r3, #36] ; 0x24
  3788. 8001f32: f003 0302 and.w r3, r3, #2
  3789. 8001f36: 613b str r3, [r7, #16]
  3790. 8001f38: 693b ldr r3, [r7, #16]
  3791. }
  3792. 8001f3a: e032 b.n 8001fa2 <HAL_TIM_Base_MspInit+0xb6>
  3793. else if(htim_base->Instance==TIM4)
  3794. 8001f3c: 687b ldr r3, [r7, #4]
  3795. 8001f3e: 681b ldr r3, [r3, #0]
  3796. 8001f40: 4a1c ldr r2, [pc, #112] ; (8001fb4 <HAL_TIM_Base_MspInit+0xc8>)
  3797. 8001f42: 4293 cmp r3, r2
  3798. 8001f44: d114 bne.n 8001f70 <HAL_TIM_Base_MspInit+0x84>
  3799. __HAL_RCC_TIM4_CLK_ENABLE();
  3800. 8001f46: 4b19 ldr r3, [pc, #100] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3801. 8001f48: 6a5b ldr r3, [r3, #36] ; 0x24
  3802. 8001f4a: 4a18 ldr r2, [pc, #96] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3803. 8001f4c: f043 0304 orr.w r3, r3, #4
  3804. 8001f50: 6253 str r3, [r2, #36] ; 0x24
  3805. 8001f52: 4b16 ldr r3, [pc, #88] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3806. 8001f54: 6a5b ldr r3, [r3, #36] ; 0x24
  3807. 8001f56: f003 0304 and.w r3, r3, #4
  3808. 8001f5a: 60fb str r3, [r7, #12]
  3809. 8001f5c: 68fb ldr r3, [r7, #12]
  3810. HAL_NVIC_SetPriority(TIM4_IRQn, 0, 0);
  3811. 8001f5e: 2200 movs r2, #0
  3812. 8001f60: 2100 movs r1, #0
  3813. 8001f62: 201e movs r0, #30
  3814. 8001f64: f001 f9ab bl 80032be <HAL_NVIC_SetPriority>
  3815. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  3816. 8001f68: 201e movs r0, #30
  3817. 8001f6a: f001 f9c4 bl 80032f6 <HAL_NVIC_EnableIRQ>
  3818. }
  3819. 8001f6e: e018 b.n 8001fa2 <HAL_TIM_Base_MspInit+0xb6>
  3820. else if(htim_base->Instance==TIM6)
  3821. 8001f70: 687b ldr r3, [r7, #4]
  3822. 8001f72: 681b ldr r3, [r3, #0]
  3823. 8001f74: 4a10 ldr r2, [pc, #64] ; (8001fb8 <HAL_TIM_Base_MspInit+0xcc>)
  3824. 8001f76: 4293 cmp r3, r2
  3825. 8001f78: d113 bne.n 8001fa2 <HAL_TIM_Base_MspInit+0xb6>
  3826. __HAL_RCC_TIM6_CLK_ENABLE();
  3827. 8001f7a: 4b0c ldr r3, [pc, #48] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3828. 8001f7c: 6a5b ldr r3, [r3, #36] ; 0x24
  3829. 8001f7e: 4a0b ldr r2, [pc, #44] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3830. 8001f80: f043 0310 orr.w r3, r3, #16
  3831. 8001f84: 6253 str r3, [r2, #36] ; 0x24
  3832. 8001f86: 4b09 ldr r3, [pc, #36] ; (8001fac <HAL_TIM_Base_MspInit+0xc0>)
  3833. 8001f88: 6a5b ldr r3, [r3, #36] ; 0x24
  3834. 8001f8a: f003 0310 and.w r3, r3, #16
  3835. 8001f8e: 60bb str r3, [r7, #8]
  3836. 8001f90: 68bb ldr r3, [r7, #8]
  3837. HAL_NVIC_SetPriority(TIM6_IRQn, 0, 0);
  3838. 8001f92: 2200 movs r2, #0
  3839. 8001f94: 2100 movs r1, #0
  3840. 8001f96: 202b movs r0, #43 ; 0x2b
  3841. 8001f98: f001 f991 bl 80032be <HAL_NVIC_SetPriority>
  3842. HAL_NVIC_EnableIRQ(TIM6_IRQn);
  3843. 8001f9c: 202b movs r0, #43 ; 0x2b
  3844. 8001f9e: f001 f9aa bl 80032f6 <HAL_NVIC_EnableIRQ>
  3845. }
  3846. 8001fa2: bf00 nop
  3847. 8001fa4: 3718 adds r7, #24
  3848. 8001fa6: 46bd mov sp, r7
  3849. 8001fa8: bd80 pop {r7, pc}
  3850. 8001faa: bf00 nop
  3851. 8001fac: 40023800 .word 0x40023800
  3852. 8001fb0: 40000400 .word 0x40000400
  3853. 8001fb4: 40000800 .word 0x40000800
  3854. 8001fb8: 40001000 .word 0x40001000
  3855. 08001fbc <HAL_TIM_MspPostInit>:
  3856. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  3857. {
  3858. 8001fbc: b580 push {r7, lr}
  3859. 8001fbe: b088 sub sp, #32
  3860. 8001fc0: af00 add r7, sp, #0
  3861. 8001fc2: 6078 str r0, [r7, #4]
  3862. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3863. 8001fc4: f107 030c add.w r3, r7, #12
  3864. 8001fc8: 2200 movs r2, #0
  3865. 8001fca: 601a str r2, [r3, #0]
  3866. 8001fcc: 605a str r2, [r3, #4]
  3867. 8001fce: 609a str r2, [r3, #8]
  3868. 8001fd0: 60da str r2, [r3, #12]
  3869. 8001fd2: 611a str r2, [r3, #16]
  3870. if(htim->Instance==TIM3)
  3871. 8001fd4: 687b ldr r3, [r7, #4]
  3872. 8001fd6: 681b ldr r3, [r3, #0]
  3873. 8001fd8: 4a11 ldr r2, [pc, #68] ; (8002020 <HAL_TIM_MspPostInit+0x64>)
  3874. 8001fda: 4293 cmp r3, r2
  3875. 8001fdc: d11b bne.n 8002016 <HAL_TIM_MspPostInit+0x5a>
  3876. {
  3877. /* USER CODE BEGIN TIM3_MspPostInit 0 */
  3878. /* USER CODE END TIM3_MspPostInit 0 */
  3879. __HAL_RCC_GPIOB_CLK_ENABLE();
  3880. 8001fde: 4b11 ldr r3, [pc, #68] ; (8002024 <HAL_TIM_MspPostInit+0x68>)
  3881. 8001fe0: 69db ldr r3, [r3, #28]
  3882. 8001fe2: 4a10 ldr r2, [pc, #64] ; (8002024 <HAL_TIM_MspPostInit+0x68>)
  3883. 8001fe4: f043 0302 orr.w r3, r3, #2
  3884. 8001fe8: 61d3 str r3, [r2, #28]
  3885. 8001fea: 4b0e ldr r3, [pc, #56] ; (8002024 <HAL_TIM_MspPostInit+0x68>)
  3886. 8001fec: 69db ldr r3, [r3, #28]
  3887. 8001fee: f003 0302 and.w r3, r3, #2
  3888. 8001ff2: 60bb str r3, [r7, #8]
  3889. 8001ff4: 68bb ldr r3, [r7, #8]
  3890. /**TIM3 GPIO Configuration
  3891. PB1 ------> TIM3_CH4
  3892. */
  3893. GPIO_InitStruct.Pin = GPIO_PIN_1;
  3894. 8001ff6: 2302 movs r3, #2
  3895. 8001ff8: 60fb str r3, [r7, #12]
  3896. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  3897. 8001ffa: 2302 movs r3, #2
  3898. 8001ffc: 613b str r3, [r7, #16]
  3899. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3900. 8001ffe: 2300 movs r3, #0
  3901. 8002000: 617b str r3, [r7, #20]
  3902. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3903. 8002002: 2300 movs r3, #0
  3904. 8002004: 61bb str r3, [r7, #24]
  3905. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  3906. 8002006: 2302 movs r3, #2
  3907. 8002008: 61fb str r3, [r7, #28]
  3908. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3909. 800200a: f107 030c add.w r3, r7, #12
  3910. 800200e: 4619 mov r1, r3
  3911. 8002010: 4805 ldr r0, [pc, #20] ; (8002028 <HAL_TIM_MspPostInit+0x6c>)
  3912. 8002012: f001 fc43 bl 800389c <HAL_GPIO_Init>
  3913. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  3914. /* USER CODE END TIM3_MspPostInit 1 */
  3915. }
  3916. }
  3917. 8002016: bf00 nop
  3918. 8002018: 3720 adds r7, #32
  3919. 800201a: 46bd mov sp, r7
  3920. 800201c: bd80 pop {r7, pc}
  3921. 800201e: bf00 nop
  3922. 8002020: 40000400 .word 0x40000400
  3923. 8002024: 40023800 .word 0x40023800
  3924. 8002028: 40020400 .word 0x40020400
  3925. 0800202c <HAL_UART_MspInit>:
  3926. * This function configures the hardware resources used in this example
  3927. * @param huart: UART handle pointer
  3928. * @retval None
  3929. */
  3930. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  3931. {
  3932. 800202c: b580 push {r7, lr}
  3933. 800202e: b08a sub sp, #40 ; 0x28
  3934. 8002030: af00 add r7, sp, #0
  3935. 8002032: 6078 str r0, [r7, #4]
  3936. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3937. 8002034: f107 0314 add.w r3, r7, #20
  3938. 8002038: 2200 movs r2, #0
  3939. 800203a: 601a str r2, [r3, #0]
  3940. 800203c: 605a str r2, [r3, #4]
  3941. 800203e: 609a str r2, [r3, #8]
  3942. 8002040: 60da str r2, [r3, #12]
  3943. 8002042: 611a str r2, [r3, #16]
  3944. if(huart->Instance==USART1)
  3945. 8002044: 687b ldr r3, [r7, #4]
  3946. 8002046: 681b ldr r3, [r3, #0]
  3947. 8002048: 4a17 ldr r2, [pc, #92] ; (80020a8 <HAL_UART_MspInit+0x7c>)
  3948. 800204a: 4293 cmp r3, r2
  3949. 800204c: d128 bne.n 80020a0 <HAL_UART_MspInit+0x74>
  3950. {
  3951. /* USER CODE BEGIN USART1_MspInit 0 */
  3952. /* USER CODE END USART1_MspInit 0 */
  3953. /* Peripheral clock enable */
  3954. __HAL_RCC_USART1_CLK_ENABLE();
  3955. 800204e: 4b17 ldr r3, [pc, #92] ; (80020ac <HAL_UART_MspInit+0x80>)
  3956. 8002050: 6a1b ldr r3, [r3, #32]
  3957. 8002052: 4a16 ldr r2, [pc, #88] ; (80020ac <HAL_UART_MspInit+0x80>)
  3958. 8002054: f443 4380 orr.w r3, r3, #16384 ; 0x4000
  3959. 8002058: 6213 str r3, [r2, #32]
  3960. 800205a: 4b14 ldr r3, [pc, #80] ; (80020ac <HAL_UART_MspInit+0x80>)
  3961. 800205c: 6a1b ldr r3, [r3, #32]
  3962. 800205e: f403 4380 and.w r3, r3, #16384 ; 0x4000
  3963. 8002062: 613b str r3, [r7, #16]
  3964. 8002064: 693b ldr r3, [r7, #16]
  3965. __HAL_RCC_GPIOA_CLK_ENABLE();
  3966. 8002066: 4b11 ldr r3, [pc, #68] ; (80020ac <HAL_UART_MspInit+0x80>)
  3967. 8002068: 69db ldr r3, [r3, #28]
  3968. 800206a: 4a10 ldr r2, [pc, #64] ; (80020ac <HAL_UART_MspInit+0x80>)
  3969. 800206c: f043 0301 orr.w r3, r3, #1
  3970. 8002070: 61d3 str r3, [r2, #28]
  3971. 8002072: 4b0e ldr r3, [pc, #56] ; (80020ac <HAL_UART_MspInit+0x80>)
  3972. 8002074: 69db ldr r3, [r3, #28]
  3973. 8002076: f003 0301 and.w r3, r3, #1
  3974. 800207a: 60fb str r3, [r7, #12]
  3975. 800207c: 68fb ldr r3, [r7, #12]
  3976. /**USART1 GPIO Configuration
  3977. PA9 ------> USART1_TX
  3978. PA10 ------> USART1_RX
  3979. */
  3980. GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10;
  3981. 800207e: f44f 63c0 mov.w r3, #1536 ; 0x600
  3982. 8002082: 617b str r3, [r7, #20]
  3983. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  3984. 8002084: 2302 movs r3, #2
  3985. 8002086: 61bb str r3, [r7, #24]
  3986. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3987. 8002088: 2300 movs r3, #0
  3988. 800208a: 61fb str r3, [r7, #28]
  3989. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  3990. 800208c: 2303 movs r3, #3
  3991. 800208e: 623b str r3, [r7, #32]
  3992. GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
  3993. 8002090: 2307 movs r3, #7
  3994. 8002092: 627b str r3, [r7, #36] ; 0x24
  3995. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3996. 8002094: f107 0314 add.w r3, r7, #20
  3997. 8002098: 4619 mov r1, r3
  3998. 800209a: 4805 ldr r0, [pc, #20] ; (80020b0 <HAL_UART_MspInit+0x84>)
  3999. 800209c: f001 fbfe bl 800389c <HAL_GPIO_Init>
  4000. /* USER CODE BEGIN USART1_MspInit 1 */
  4001. /* USER CODE END USART1_MspInit 1 */
  4002. }
  4003. }
  4004. 80020a0: bf00 nop
  4005. 80020a2: 3728 adds r7, #40 ; 0x28
  4006. 80020a4: 46bd mov sp, r7
  4007. 80020a6: bd80 pop {r7, pc}
  4008. 80020a8: 40013800 .word 0x40013800
  4009. 80020ac: 40023800 .word 0x40023800
  4010. 80020b0: 40020000 .word 0x40020000
  4011. 080020b4 <HAL_UART_MspDeInit>:
  4012. * This function freeze the hardware resources used in this example
  4013. * @param huart: UART handle pointer
  4014. * @retval None
  4015. */
  4016. void HAL_UART_MspDeInit(UART_HandleTypeDef* huart)
  4017. {
  4018. 80020b4: b580 push {r7, lr}
  4019. 80020b6: b082 sub sp, #8
  4020. 80020b8: af00 add r7, sp, #0
  4021. 80020ba: 6078 str r0, [r7, #4]
  4022. if(huart->Instance==USART1)
  4023. 80020bc: 687b ldr r3, [r7, #4]
  4024. 80020be: 681b ldr r3, [r3, #0]
  4025. 80020c0: 4a08 ldr r2, [pc, #32] ; (80020e4 <HAL_UART_MspDeInit+0x30>)
  4026. 80020c2: 4293 cmp r3, r2
  4027. 80020c4: d10a bne.n 80020dc <HAL_UART_MspDeInit+0x28>
  4028. {
  4029. /* USER CODE BEGIN USART1_MspDeInit 0 */
  4030. /* USER CODE END USART1_MspDeInit 0 */
  4031. /* Peripheral clock disable */
  4032. __HAL_RCC_USART1_CLK_DISABLE();
  4033. 80020c6: 4b08 ldr r3, [pc, #32] ; (80020e8 <HAL_UART_MspDeInit+0x34>)
  4034. 80020c8: 6a1b ldr r3, [r3, #32]
  4035. 80020ca: 4a07 ldr r2, [pc, #28] ; (80020e8 <HAL_UART_MspDeInit+0x34>)
  4036. 80020cc: f423 4380 bic.w r3, r3, #16384 ; 0x4000
  4037. 80020d0: 6213 str r3, [r2, #32]
  4038. /**USART1 GPIO Configuration
  4039. PA9 ------> USART1_TX
  4040. PA10 ------> USART1_RX
  4041. */
  4042. HAL_GPIO_DeInit(GPIOA, GPIO_PIN_9|GPIO_PIN_10);
  4043. 80020d2: f44f 61c0 mov.w r1, #1536 ; 0x600
  4044. 80020d6: 4805 ldr r0, [pc, #20] ; (80020ec <HAL_UART_MspDeInit+0x38>)
  4045. 80020d8: f001 fd60 bl 8003b9c <HAL_GPIO_DeInit>
  4046. /* USER CODE BEGIN USART1_MspDeInit 1 */
  4047. /* USER CODE END USART1_MspDeInit 1 */
  4048. }
  4049. }
  4050. 80020dc: bf00 nop
  4051. 80020de: 3708 adds r7, #8
  4052. 80020e0: 46bd mov sp, r7
  4053. 80020e2: bd80 pop {r7, pc}
  4054. 80020e4: 40013800 .word 0x40013800
  4055. 80020e8: 40023800 .word 0x40023800
  4056. 80020ec: 40020000 .word 0x40020000
  4057. 080020f0 <NMI_Handler>:
  4058. /******************************************************************************/
  4059. /**
  4060. * @brief This function handles Non maskable interrupt.
  4061. */
  4062. void NMI_Handler(void)
  4063. {
  4064. 80020f0: b480 push {r7}
  4065. 80020f2: af00 add r7, sp, #0
  4066. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  4067. /* USER CODE END NonMaskableInt_IRQn 0 */
  4068. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  4069. while (1)
  4070. 80020f4: e7fe b.n 80020f4 <NMI_Handler+0x4>
  4071. 080020f6 <HardFault_Handler>:
  4072. /**
  4073. * @brief This function handles Hard fault interrupt.
  4074. */
  4075. void HardFault_Handler(void)
  4076. {
  4077. 80020f6: b480 push {r7}
  4078. 80020f8: af00 add r7, sp, #0
  4079. /* USER CODE BEGIN HardFault_IRQn 0 */
  4080. /* USER CODE END HardFault_IRQn 0 */
  4081. while (1)
  4082. 80020fa: e7fe b.n 80020fa <HardFault_Handler+0x4>
  4083. 080020fc <MemManage_Handler>:
  4084. /**
  4085. * @brief This function handles Memory management fault.
  4086. */
  4087. void MemManage_Handler(void)
  4088. {
  4089. 80020fc: b480 push {r7}
  4090. 80020fe: af00 add r7, sp, #0
  4091. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  4092. /* USER CODE END MemoryManagement_IRQn 0 */
  4093. while (1)
  4094. 8002100: e7fe b.n 8002100 <MemManage_Handler+0x4>
  4095. 08002102 <BusFault_Handler>:
  4096. /**
  4097. * @brief This function handles Pre-fetch fault, memory access fault.
  4098. */
  4099. void BusFault_Handler(void)
  4100. {
  4101. 8002102: b480 push {r7}
  4102. 8002104: af00 add r7, sp, #0
  4103. /* USER CODE BEGIN BusFault_IRQn 0 */
  4104. /* USER CODE END BusFault_IRQn 0 */
  4105. while (1)
  4106. 8002106: e7fe b.n 8002106 <BusFault_Handler+0x4>
  4107. 08002108 <UsageFault_Handler>:
  4108. /**
  4109. * @brief This function handles Undefined instruction or illegal state.
  4110. */
  4111. void UsageFault_Handler(void)
  4112. {
  4113. 8002108: b480 push {r7}
  4114. 800210a: af00 add r7, sp, #0
  4115. /* USER CODE BEGIN UsageFault_IRQn 0 */
  4116. /* USER CODE END UsageFault_IRQn 0 */
  4117. while (1)
  4118. 800210c: e7fe b.n 800210c <UsageFault_Handler+0x4>
  4119. 0800210e <SVC_Handler>:
  4120. /**
  4121. * @brief This function handles System service call via SWI instruction.
  4122. */
  4123. void SVC_Handler(void)
  4124. {
  4125. 800210e: b480 push {r7}
  4126. 8002110: af00 add r7, sp, #0
  4127. /* USER CODE END SVC_IRQn 0 */
  4128. /* USER CODE BEGIN SVC_IRQn 1 */
  4129. /* USER CODE END SVC_IRQn 1 */
  4130. }
  4131. 8002112: bf00 nop
  4132. 8002114: 46bd mov sp, r7
  4133. 8002116: bc80 pop {r7}
  4134. 8002118: 4770 bx lr
  4135. 0800211a <DebugMon_Handler>:
  4136. /**
  4137. * @brief This function handles Debug monitor.
  4138. */
  4139. void DebugMon_Handler(void)
  4140. {
  4141. 800211a: b480 push {r7}
  4142. 800211c: af00 add r7, sp, #0
  4143. /* USER CODE END DebugMonitor_IRQn 0 */
  4144. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  4145. /* USER CODE END DebugMonitor_IRQn 1 */
  4146. }
  4147. 800211e: bf00 nop
  4148. 8002120: 46bd mov sp, r7
  4149. 8002122: bc80 pop {r7}
  4150. 8002124: 4770 bx lr
  4151. 08002126 <PendSV_Handler>:
  4152. /**
  4153. * @brief This function handles Pendable request for system service.
  4154. */
  4155. void PendSV_Handler(void)
  4156. {
  4157. 8002126: b480 push {r7}
  4158. 8002128: af00 add r7, sp, #0
  4159. /* USER CODE END PendSV_IRQn 0 */
  4160. /* USER CODE BEGIN PendSV_IRQn 1 */
  4161. /* USER CODE END PendSV_IRQn 1 */
  4162. }
  4163. 800212a: bf00 nop
  4164. 800212c: 46bd mov sp, r7
  4165. 800212e: bc80 pop {r7}
  4166. 8002130: 4770 bx lr
  4167. 08002132 <SysTick_Handler>:
  4168. /**
  4169. * @brief This function handles System tick timer.
  4170. */
  4171. void SysTick_Handler(void)
  4172. {
  4173. 8002132: b580 push {r7, lr}
  4174. 8002134: af00 add r7, sp, #0
  4175. /* USER CODE BEGIN SysTick_IRQn 0 */
  4176. /* USER CODE END SysTick_IRQn 0 */
  4177. HAL_IncTick();
  4178. 8002136: f000 f975 bl 8002424 <HAL_IncTick>
  4179. /* USER CODE BEGIN SysTick_IRQn 1 */
  4180. /* USER CODE END SysTick_IRQn 1 */
  4181. }
  4182. 800213a: bf00 nop
  4183. 800213c: bd80 pop {r7, pc}
  4184. ...
  4185. 08002140 <DMA1_Channel1_IRQHandler>:
  4186. /**
  4187. * @brief This function handles DMA1 channel1 global interrupt.
  4188. */
  4189. void DMA1_Channel1_IRQHandler(void)
  4190. {
  4191. 8002140: b580 push {r7, lr}
  4192. 8002142: af00 add r7, sp, #0
  4193. /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
  4194. /* USER CODE END DMA1_Channel1_IRQn 0 */
  4195. HAL_DMA_IRQHandler(&hdma_adc);
  4196. 8002144: 4802 ldr r0, [pc, #8] ; (8002150 <DMA1_Channel1_IRQHandler+0x10>)
  4197. 8002146: f001 faca bl 80036de <HAL_DMA_IRQHandler>
  4198. /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
  4199. /* USER CODE END DMA1_Channel1_IRQn 1 */
  4200. }
  4201. 800214a: bf00 nop
  4202. 800214c: bd80 pop {r7, pc}
  4203. 800214e: bf00 nop
  4204. 8002150: 20000640 .word 0x20000640
  4205. 08002154 <COMP_IRQHandler>:
  4206. /**
  4207. * @brief This function handles COMP1 and COMP2 wake-up interrupts through EXTI lines 21 and 22.
  4208. */
  4209. void COMP_IRQHandler(void)
  4210. {
  4211. 8002154: b580 push {r7, lr}
  4212. 8002156: af00 add r7, sp, #0
  4213. /* USER CODE BEGIN COMP_IRQn 0 */
  4214. /* USER CODE END COMP_IRQn 0 */
  4215. HAL_COMP_IRQHandler(&hcomp2);
  4216. 8002158: 4802 ldr r0, [pc, #8] ; (8002164 <COMP_IRQHandler+0x10>)
  4217. 800215a: f000 ffb5 bl 80030c8 <HAL_COMP_IRQHandler>
  4218. /* USER CODE BEGIN COMP_IRQn 1 */
  4219. /* USER CODE END COMP_IRQn 1 */
  4220. }
  4221. 800215e: bf00 nop
  4222. 8002160: bd80 pop {r7, pc}
  4223. 8002162: bf00 nop
  4224. 8002164: 200005d8 .word 0x200005d8
  4225. 08002168 <TIM4_IRQHandler>:
  4226. /**
  4227. * @brief This function handles TIM4 global interrupt.
  4228. */
  4229. void TIM4_IRQHandler(void)
  4230. {
  4231. 8002168: b580 push {r7, lr}
  4232. 800216a: af00 add r7, sp, #0
  4233. /* USER CODE BEGIN TIM4_IRQn 0 */
  4234. /* USER CODE END TIM4_IRQn 0 */
  4235. HAL_TIM_IRQHandler(&htim4);
  4236. 800216c: 4802 ldr r0, [pc, #8] ; (8002178 <TIM4_IRQHandler+0x10>)
  4237. 800216e: f003 fac8 bl 8005702 <HAL_TIM_IRQHandler>
  4238. /* USER CODE BEGIN TIM4_IRQn 1 */
  4239. /* USER CODE END TIM4_IRQn 1 */
  4240. }
  4241. 8002172: bf00 nop
  4242. 8002174: bd80 pop {r7, pc}
  4243. 8002176: bf00 nop
  4244. 8002178: 20000418 .word 0x20000418
  4245. 0800217c <EXTI15_10_IRQHandler>:
  4246. /**
  4247. * @brief This function handles EXTI line[15:10] interrupts.
  4248. */
  4249. void EXTI15_10_IRQHandler(void)
  4250. {
  4251. 800217c: b580 push {r7, lr}
  4252. 800217e: af00 add r7, sp, #0
  4253. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  4254. /* USER CODE END EXTI15_10_IRQn 0 */
  4255. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_14);
  4256. 8002180: f44f 4080 mov.w r0, #16384 ; 0x4000
  4257. 8002184: f001 fe02 bl 8003d8c <HAL_GPIO_EXTI_IRQHandler>
  4258. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_15);
  4259. 8002188: f44f 4000 mov.w r0, #32768 ; 0x8000
  4260. 800218c: f001 fdfe bl 8003d8c <HAL_GPIO_EXTI_IRQHandler>
  4261. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  4262. /* USER CODE END EXTI15_10_IRQn 1 */
  4263. }
  4264. 8002190: bf00 nop
  4265. 8002192: bd80 pop {r7, pc}
  4266. 08002194 <TIM6_IRQHandler>:
  4267. /**
  4268. * @brief This function handles TIM6 global interrupt.
  4269. */
  4270. void TIM6_IRQHandler(void)
  4271. {
  4272. 8002194: b580 push {r7, lr}
  4273. 8002196: af00 add r7, sp, #0
  4274. /* USER CODE BEGIN TIM6_IRQn 0 */
  4275. /* USER CODE END TIM6_IRQn 0 */
  4276. HAL_TIM_IRQHandler(&htim6);
  4277. 8002198: 4802 ldr r0, [pc, #8] ; (80021a4 <TIM6_IRQHandler+0x10>)
  4278. 800219a: f003 fab2 bl 8005702 <HAL_TIM_IRQHandler>
  4279. /* USER CODE BEGIN TIM6_IRQn 1 */
  4280. /* USER CODE END TIM6_IRQn 1 */
  4281. }
  4282. 800219e: bf00 nop
  4283. 80021a0: bd80 pop {r7, pc}
  4284. 80021a2: bf00 nop
  4285. 80021a4: 20000598 .word 0x20000598
  4286. 080021a8 <_getpid>:
  4287. void initialise_monitor_handles()
  4288. {
  4289. }
  4290. int _getpid(void)
  4291. {
  4292. 80021a8: b480 push {r7}
  4293. 80021aa: af00 add r7, sp, #0
  4294. return 1;
  4295. 80021ac: 2301 movs r3, #1
  4296. }
  4297. 80021ae: 4618 mov r0, r3
  4298. 80021b0: 46bd mov sp, r7
  4299. 80021b2: bc80 pop {r7}
  4300. 80021b4: 4770 bx lr
  4301. 080021b6 <_kill>:
  4302. int _kill(int pid, int sig)
  4303. {
  4304. 80021b6: b580 push {r7, lr}
  4305. 80021b8: b082 sub sp, #8
  4306. 80021ba: af00 add r7, sp, #0
  4307. 80021bc: 6078 str r0, [r7, #4]
  4308. 80021be: 6039 str r1, [r7, #0]
  4309. errno = EINVAL;
  4310. 80021c0: f004 fca8 bl 8006b14 <__errno>
  4311. 80021c4: 4603 mov r3, r0
  4312. 80021c6: 2216 movs r2, #22
  4313. 80021c8: 601a str r2, [r3, #0]
  4314. return -1;
  4315. 80021ca: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  4316. }
  4317. 80021ce: 4618 mov r0, r3
  4318. 80021d0: 3708 adds r7, #8
  4319. 80021d2: 46bd mov sp, r7
  4320. 80021d4: bd80 pop {r7, pc}
  4321. 080021d6 <_exit>:
  4322. void _exit (int status)
  4323. {
  4324. 80021d6: b580 push {r7, lr}
  4325. 80021d8: b082 sub sp, #8
  4326. 80021da: af00 add r7, sp, #0
  4327. 80021dc: 6078 str r0, [r7, #4]
  4328. _kill(status, -1);
  4329. 80021de: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
  4330. 80021e2: 6878 ldr r0, [r7, #4]
  4331. 80021e4: f7ff ffe7 bl 80021b6 <_kill>
  4332. while (1) {} /* Make sure we hang here */
  4333. 80021e8: e7fe b.n 80021e8 <_exit+0x12>
  4334. 080021ea <_read>:
  4335. }
  4336. __attribute__((weak)) int _read(int file, char *ptr, int len)
  4337. {
  4338. 80021ea: b580 push {r7, lr}
  4339. 80021ec: b086 sub sp, #24
  4340. 80021ee: af00 add r7, sp, #0
  4341. 80021f0: 60f8 str r0, [r7, #12]
  4342. 80021f2: 60b9 str r1, [r7, #8]
  4343. 80021f4: 607a str r2, [r7, #4]
  4344. int DataIdx;
  4345. for (DataIdx = 0; DataIdx < len; DataIdx++)
  4346. 80021f6: 2300 movs r3, #0
  4347. 80021f8: 617b str r3, [r7, #20]
  4348. 80021fa: e00a b.n 8002212 <_read+0x28>
  4349. {
  4350. *ptr++ = __io_getchar();
  4351. 80021fc: f3af 8000 nop.w
  4352. 8002200: 4601 mov r1, r0
  4353. 8002202: 68bb ldr r3, [r7, #8]
  4354. 8002204: 1c5a adds r2, r3, #1
  4355. 8002206: 60ba str r2, [r7, #8]
  4356. 8002208: b2ca uxtb r2, r1
  4357. 800220a: 701a strb r2, [r3, #0]
  4358. for (DataIdx = 0; DataIdx < len; DataIdx++)
  4359. 800220c: 697b ldr r3, [r7, #20]
  4360. 800220e: 3301 adds r3, #1
  4361. 8002210: 617b str r3, [r7, #20]
  4362. 8002212: 697a ldr r2, [r7, #20]
  4363. 8002214: 687b ldr r3, [r7, #4]
  4364. 8002216: 429a cmp r2, r3
  4365. 8002218: dbf0 blt.n 80021fc <_read+0x12>
  4366. }
  4367. return len;
  4368. 800221a: 687b ldr r3, [r7, #4]
  4369. }
  4370. 800221c: 4618 mov r0, r3
  4371. 800221e: 3718 adds r7, #24
  4372. 8002220: 46bd mov sp, r7
  4373. 8002222: bd80 pop {r7, pc}
  4374. 08002224 <_write>:
  4375. __attribute__((weak)) int _write(int file, char *ptr, int len)
  4376. {
  4377. 8002224: b580 push {r7, lr}
  4378. 8002226: b086 sub sp, #24
  4379. 8002228: af00 add r7, sp, #0
  4380. 800222a: 60f8 str r0, [r7, #12]
  4381. 800222c: 60b9 str r1, [r7, #8]
  4382. 800222e: 607a str r2, [r7, #4]
  4383. int DataIdx;
  4384. for (DataIdx = 0; DataIdx < len; DataIdx++)
  4385. 8002230: 2300 movs r3, #0
  4386. 8002232: 617b str r3, [r7, #20]
  4387. 8002234: e009 b.n 800224a <_write+0x26>
  4388. {
  4389. __io_putchar(*ptr++);
  4390. 8002236: 68bb ldr r3, [r7, #8]
  4391. 8002238: 1c5a adds r2, r3, #1
  4392. 800223a: 60ba str r2, [r7, #8]
  4393. 800223c: 781b ldrb r3, [r3, #0]
  4394. 800223e: 4618 mov r0, r3
  4395. 8002240: f3af 8000 nop.w
  4396. for (DataIdx = 0; DataIdx < len; DataIdx++)
  4397. 8002244: 697b ldr r3, [r7, #20]
  4398. 8002246: 3301 adds r3, #1
  4399. 8002248: 617b str r3, [r7, #20]
  4400. 800224a: 697a ldr r2, [r7, #20]
  4401. 800224c: 687b ldr r3, [r7, #4]
  4402. 800224e: 429a cmp r2, r3
  4403. 8002250: dbf1 blt.n 8002236 <_write+0x12>
  4404. }
  4405. return len;
  4406. 8002252: 687b ldr r3, [r7, #4]
  4407. }
  4408. 8002254: 4618 mov r0, r3
  4409. 8002256: 3718 adds r7, #24
  4410. 8002258: 46bd mov sp, r7
  4411. 800225a: bd80 pop {r7, pc}
  4412. 0800225c <_close>:
  4413. int _close(int file)
  4414. {
  4415. 800225c: b480 push {r7}
  4416. 800225e: b083 sub sp, #12
  4417. 8002260: af00 add r7, sp, #0
  4418. 8002262: 6078 str r0, [r7, #4]
  4419. return -1;
  4420. 8002264: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  4421. }
  4422. 8002268: 4618 mov r0, r3
  4423. 800226a: 370c adds r7, #12
  4424. 800226c: 46bd mov sp, r7
  4425. 800226e: bc80 pop {r7}
  4426. 8002270: 4770 bx lr
  4427. 08002272 <_fstat>:
  4428. int _fstat(int file, struct stat *st)
  4429. {
  4430. 8002272: b480 push {r7}
  4431. 8002274: b083 sub sp, #12
  4432. 8002276: af00 add r7, sp, #0
  4433. 8002278: 6078 str r0, [r7, #4]
  4434. 800227a: 6039 str r1, [r7, #0]
  4435. st->st_mode = S_IFCHR;
  4436. 800227c: 683b ldr r3, [r7, #0]
  4437. 800227e: f44f 5200 mov.w r2, #8192 ; 0x2000
  4438. 8002282: 605a str r2, [r3, #4]
  4439. return 0;
  4440. 8002284: 2300 movs r3, #0
  4441. }
  4442. 8002286: 4618 mov r0, r3
  4443. 8002288: 370c adds r7, #12
  4444. 800228a: 46bd mov sp, r7
  4445. 800228c: bc80 pop {r7}
  4446. 800228e: 4770 bx lr
  4447. 08002290 <_isatty>:
  4448. int _isatty(int file)
  4449. {
  4450. 8002290: b480 push {r7}
  4451. 8002292: b083 sub sp, #12
  4452. 8002294: af00 add r7, sp, #0
  4453. 8002296: 6078 str r0, [r7, #4]
  4454. return 1;
  4455. 8002298: 2301 movs r3, #1
  4456. }
  4457. 800229a: 4618 mov r0, r3
  4458. 800229c: 370c adds r7, #12
  4459. 800229e: 46bd mov sp, r7
  4460. 80022a0: bc80 pop {r7}
  4461. 80022a2: 4770 bx lr
  4462. 080022a4 <_lseek>:
  4463. int _lseek(int file, int ptr, int dir)
  4464. {
  4465. 80022a4: b480 push {r7}
  4466. 80022a6: b085 sub sp, #20
  4467. 80022a8: af00 add r7, sp, #0
  4468. 80022aa: 60f8 str r0, [r7, #12]
  4469. 80022ac: 60b9 str r1, [r7, #8]
  4470. 80022ae: 607a str r2, [r7, #4]
  4471. return 0;
  4472. 80022b0: 2300 movs r3, #0
  4473. }
  4474. 80022b2: 4618 mov r0, r3
  4475. 80022b4: 3714 adds r7, #20
  4476. 80022b6: 46bd mov sp, r7
  4477. 80022b8: bc80 pop {r7}
  4478. 80022ba: 4770 bx lr
  4479. 080022bc <_sbrk>:
  4480. *
  4481. * @param incr Memory size
  4482. * @return Pointer to allocated memory
  4483. */
  4484. void *_sbrk(ptrdiff_t incr)
  4485. {
  4486. 80022bc: b580 push {r7, lr}
  4487. 80022be: b086 sub sp, #24
  4488. 80022c0: af00 add r7, sp, #0
  4489. 80022c2: 6078 str r0, [r7, #4]
  4490. extern uint8_t _end; /* Symbol defined in the linker script */
  4491. extern uint8_t _estack; /* Symbol defined in the linker script */
  4492. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  4493. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  4494. 80022c4: 4a14 ldr r2, [pc, #80] ; (8002318 <_sbrk+0x5c>)
  4495. 80022c6: 4b15 ldr r3, [pc, #84] ; (800231c <_sbrk+0x60>)
  4496. 80022c8: 1ad3 subs r3, r2, r3
  4497. 80022ca: 617b str r3, [r7, #20]
  4498. const uint8_t *max_heap = (uint8_t *)stack_limit;
  4499. 80022cc: 697b ldr r3, [r7, #20]
  4500. 80022ce: 613b str r3, [r7, #16]
  4501. uint8_t *prev_heap_end;
  4502. /* Initialize heap end at first call */
  4503. if (NULL == __sbrk_heap_end)
  4504. 80022d0: 4b13 ldr r3, [pc, #76] ; (8002320 <_sbrk+0x64>)
  4505. 80022d2: 681b ldr r3, [r3, #0]
  4506. 80022d4: 2b00 cmp r3, #0
  4507. 80022d6: d102 bne.n 80022de <_sbrk+0x22>
  4508. {
  4509. __sbrk_heap_end = &_end;
  4510. 80022d8: 4b11 ldr r3, [pc, #68] ; (8002320 <_sbrk+0x64>)
  4511. 80022da: 4a12 ldr r2, [pc, #72] ; (8002324 <_sbrk+0x68>)
  4512. 80022dc: 601a str r2, [r3, #0]
  4513. }
  4514. /* Protect heap from growing into the reserved MSP stack */
  4515. if (__sbrk_heap_end + incr > max_heap)
  4516. 80022de: 4b10 ldr r3, [pc, #64] ; (8002320 <_sbrk+0x64>)
  4517. 80022e0: 681a ldr r2, [r3, #0]
  4518. 80022e2: 687b ldr r3, [r7, #4]
  4519. 80022e4: 4413 add r3, r2
  4520. 80022e6: 693a ldr r2, [r7, #16]
  4521. 80022e8: 429a cmp r2, r3
  4522. 80022ea: d207 bcs.n 80022fc <_sbrk+0x40>
  4523. {
  4524. errno = ENOMEM;
  4525. 80022ec: f004 fc12 bl 8006b14 <__errno>
  4526. 80022f0: 4603 mov r3, r0
  4527. 80022f2: 220c movs r2, #12
  4528. 80022f4: 601a str r2, [r3, #0]
  4529. return (void *)-1;
  4530. 80022f6: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  4531. 80022fa: e009 b.n 8002310 <_sbrk+0x54>
  4532. }
  4533. prev_heap_end = __sbrk_heap_end;
  4534. 80022fc: 4b08 ldr r3, [pc, #32] ; (8002320 <_sbrk+0x64>)
  4535. 80022fe: 681b ldr r3, [r3, #0]
  4536. 8002300: 60fb str r3, [r7, #12]
  4537. __sbrk_heap_end += incr;
  4538. 8002302: 4b07 ldr r3, [pc, #28] ; (8002320 <_sbrk+0x64>)
  4539. 8002304: 681a ldr r2, [r3, #0]
  4540. 8002306: 687b ldr r3, [r7, #4]
  4541. 8002308: 4413 add r3, r2
  4542. 800230a: 4a05 ldr r2, [pc, #20] ; (8002320 <_sbrk+0x64>)
  4543. 800230c: 6013 str r3, [r2, #0]
  4544. return (void *)prev_heap_end;
  4545. 800230e: 68fb ldr r3, [r7, #12]
  4546. }
  4547. 8002310: 4618 mov r0, r3
  4548. 8002312: 3718 adds r7, #24
  4549. 8002314: 46bd mov sp, r7
  4550. 8002316: bd80 pop {r7, pc}
  4551. 8002318: 20008000 .word 0x20008000
  4552. 800231c: 00000400 .word 0x00000400
  4553. 8002320: 20000204 .word 0x20000204
  4554. 8002324: 20000708 .word 0x20000708
  4555. 08002328 <SystemInit>:
  4556. * SystemCoreClock variable.
  4557. * @param None
  4558. * @retval None
  4559. */
  4560. void SystemInit (void)
  4561. {
  4562. 8002328: b480 push {r7}
  4563. 800232a: af00 add r7, sp, #0
  4564. /* Configure the Vector Table location -------------------------------------*/
  4565. #if defined(USER_VECT_TAB_ADDRESS)
  4566. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
  4567. #endif /* USER_VECT_TAB_ADDRESS */
  4568. }
  4569. 800232c: bf00 nop
  4570. 800232e: 46bd mov sp, r7
  4571. 8002330: bc80 pop {r7}
  4572. 8002332: 4770 bx lr
  4573. 08002334 <Reset_Handler>:
  4574. .weak Reset_Handler
  4575. .type Reset_Handler, %function
  4576. Reset_Handler:
  4577. /* Copy the data segment initializers from flash to SRAM */
  4578. ldr r0, =_sdata
  4579. 8002334: 480c ldr r0, [pc, #48] ; (8002368 <LoopFillZerobss+0x12>)
  4580. ldr r1, =_edata
  4581. 8002336: 490d ldr r1, [pc, #52] ; (800236c <LoopFillZerobss+0x16>)
  4582. ldr r2, =_sidata
  4583. 8002338: 4a0d ldr r2, [pc, #52] ; (8002370 <LoopFillZerobss+0x1a>)
  4584. movs r3, #0
  4585. 800233a: 2300 movs r3, #0
  4586. b LoopCopyDataInit
  4587. 800233c: e002 b.n 8002344 <LoopCopyDataInit>
  4588. 0800233e <CopyDataInit>:
  4589. CopyDataInit:
  4590. ldr r4, [r2, r3]
  4591. 800233e: 58d4 ldr r4, [r2, r3]
  4592. str r4, [r0, r3]
  4593. 8002340: 50c4 str r4, [r0, r3]
  4594. adds r3, r3, #4
  4595. 8002342: 3304 adds r3, #4
  4596. 08002344 <LoopCopyDataInit>:
  4597. LoopCopyDataInit:
  4598. adds r4, r0, r3
  4599. 8002344: 18c4 adds r4, r0, r3
  4600. cmp r4, r1
  4601. 8002346: 428c cmp r4, r1
  4602. bcc CopyDataInit
  4603. 8002348: d3f9 bcc.n 800233e <CopyDataInit>
  4604. /* Zero fill the bss segment. */
  4605. ldr r2, =_sbss
  4606. 800234a: 4a0a ldr r2, [pc, #40] ; (8002374 <LoopFillZerobss+0x1e>)
  4607. ldr r4, =_ebss
  4608. 800234c: 4c0a ldr r4, [pc, #40] ; (8002378 <LoopFillZerobss+0x22>)
  4609. movs r3, #0
  4610. 800234e: 2300 movs r3, #0
  4611. b LoopFillZerobss
  4612. 8002350: e001 b.n 8002356 <LoopFillZerobss>
  4613. 08002352 <FillZerobss>:
  4614. FillZerobss:
  4615. str r3, [r2]
  4616. 8002352: 6013 str r3, [r2, #0]
  4617. adds r2, r2, #4
  4618. 8002354: 3204 adds r2, #4
  4619. 08002356 <LoopFillZerobss>:
  4620. LoopFillZerobss:
  4621. cmp r2, r4
  4622. 8002356: 42a2 cmp r2, r4
  4623. bcc FillZerobss
  4624. 8002358: d3fb bcc.n 8002352 <FillZerobss>
  4625. /* Call the clock system intitialization function.*/
  4626. bl SystemInit
  4627. 800235a: f7ff ffe5 bl 8002328 <SystemInit>
  4628. /* Call static constructors */
  4629. bl __libc_init_array
  4630. 800235e: f004 fbdf bl 8006b20 <__libc_init_array>
  4631. /* Call the application's entry point.*/
  4632. bl main
  4633. 8002362: f7fe fedd bl 8001120 <main>
  4634. bx lr
  4635. 8002366: 4770 bx lr
  4636. ldr r0, =_sdata
  4637. 8002368: 20000000 .word 0x20000000
  4638. ldr r1, =_edata
  4639. 800236c: 200001e4 .word 0x200001e4
  4640. ldr r2, =_sidata
  4641. 8002370: 0800aa44 .word 0x0800aa44
  4642. ldr r2, =_sbss
  4643. 8002374: 200001e4 .word 0x200001e4
  4644. ldr r4, =_ebss
  4645. 8002378: 20000704 .word 0x20000704
  4646. 0800237c <ADC1_IRQHandler>:
  4647. * @retval : None
  4648. */
  4649. .section .text.Default_Handler,"ax",%progbits
  4650. Default_Handler:
  4651. Infinite_Loop:
  4652. b Infinite_Loop
  4653. 800237c: e7fe b.n 800237c <ADC1_IRQHandler>
  4654. 0800237e <HAL_Init>:
  4655. * In the default implementation,Systick is used as source of time base.
  4656. * the tick variable is incremented each 1ms in its ISR.
  4657. * @retval HAL status
  4658. */
  4659. HAL_StatusTypeDef HAL_Init(void)
  4660. {
  4661. 800237e: b580 push {r7, lr}
  4662. 8002380: b082 sub sp, #8
  4663. 8002382: af00 add r7, sp, #0
  4664. HAL_StatusTypeDef status = HAL_OK;
  4665. 8002384: 2300 movs r3, #0
  4666. 8002386: 71fb strb r3, [r7, #7]
  4667. #if (PREFETCH_ENABLE != 0)
  4668. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  4669. #endif /* PREFETCH_ENABLE */
  4670. /* Set Interrupt Group Priority */
  4671. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  4672. 8002388: 2003 movs r0, #3
  4673. 800238a: f000 ff8d bl 80032a8 <HAL_NVIC_SetPriorityGrouping>
  4674. /* Use systick as time base source and configure 1ms tick (default clock after Reset is MSI) */
  4675. if (HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  4676. 800238e: 200f movs r0, #15
  4677. 8002390: f000 f80e bl 80023b0 <HAL_InitTick>
  4678. 8002394: 4603 mov r3, r0
  4679. 8002396: 2b00 cmp r3, #0
  4680. 8002398: d002 beq.n 80023a0 <HAL_Init+0x22>
  4681. {
  4682. status = HAL_ERROR;
  4683. 800239a: 2301 movs r3, #1
  4684. 800239c: 71fb strb r3, [r7, #7]
  4685. 800239e: e001 b.n 80023a4 <HAL_Init+0x26>
  4686. }
  4687. else
  4688. {
  4689. /* Init the low level hardware */
  4690. HAL_MspInit();
  4691. 80023a0: f7ff fbe0 bl 8001b64 <HAL_MspInit>
  4692. }
  4693. /* Return function status */
  4694. return status;
  4695. 80023a4: 79fb ldrb r3, [r7, #7]
  4696. }
  4697. 80023a6: 4618 mov r0, r3
  4698. 80023a8: 3708 adds r7, #8
  4699. 80023aa: 46bd mov sp, r7
  4700. 80023ac: bd80 pop {r7, pc}
  4701. ...
  4702. 080023b0 <HAL_InitTick>:
  4703. * implementation in user file.
  4704. * @param TickPriority Tick interrupt priority.
  4705. * @retval HAL status
  4706. */
  4707. __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  4708. {
  4709. 80023b0: b580 push {r7, lr}
  4710. 80023b2: b084 sub sp, #16
  4711. 80023b4: af00 add r7, sp, #0
  4712. 80023b6: 6078 str r0, [r7, #4]
  4713. HAL_StatusTypeDef status = HAL_OK;
  4714. 80023b8: 2300 movs r3, #0
  4715. 80023ba: 73fb strb r3, [r7, #15]
  4716. if (uwTickFreq != 0U)
  4717. 80023bc: 4b16 ldr r3, [pc, #88] ; (8002418 <HAL_InitTick+0x68>)
  4718. 80023be: 681b ldr r3, [r3, #0]
  4719. 80023c0: 2b00 cmp r3, #0
  4720. 80023c2: d022 beq.n 800240a <HAL_InitTick+0x5a>
  4721. {
  4722. /*Configure the SysTick to have interrupt in 1ms time basis*/
  4723. if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) == 0U)
  4724. 80023c4: 4b15 ldr r3, [pc, #84] ; (800241c <HAL_InitTick+0x6c>)
  4725. 80023c6: 681a ldr r2, [r3, #0]
  4726. 80023c8: 4b13 ldr r3, [pc, #76] ; (8002418 <HAL_InitTick+0x68>)
  4727. 80023ca: 681b ldr r3, [r3, #0]
  4728. 80023cc: f44f 717a mov.w r1, #1000 ; 0x3e8
  4729. 80023d0: fbb1 f3f3 udiv r3, r1, r3
  4730. 80023d4: fbb2 f3f3 udiv r3, r2, r3
  4731. 80023d8: 4618 mov r0, r3
  4732. 80023da: f000 ff9a bl 8003312 <HAL_SYSTICK_Config>
  4733. 80023de: 4603 mov r3, r0
  4734. 80023e0: 2b00 cmp r3, #0
  4735. 80023e2: d10f bne.n 8002404 <HAL_InitTick+0x54>
  4736. {
  4737. /* Configure the SysTick IRQ priority */
  4738. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  4739. 80023e4: 687b ldr r3, [r7, #4]
  4740. 80023e6: 2b0f cmp r3, #15
  4741. 80023e8: d809 bhi.n 80023fe <HAL_InitTick+0x4e>
  4742. {
  4743. HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
  4744. 80023ea: 2200 movs r2, #0
  4745. 80023ec: 6879 ldr r1, [r7, #4]
  4746. 80023ee: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  4747. 80023f2: f000 ff64 bl 80032be <HAL_NVIC_SetPriority>
  4748. uwTickPrio = TickPriority;
  4749. 80023f6: 4a0a ldr r2, [pc, #40] ; (8002420 <HAL_InitTick+0x70>)
  4750. 80023f8: 687b ldr r3, [r7, #4]
  4751. 80023fa: 6013 str r3, [r2, #0]
  4752. 80023fc: e007 b.n 800240e <HAL_InitTick+0x5e>
  4753. }
  4754. else
  4755. {
  4756. status = HAL_ERROR;
  4757. 80023fe: 2301 movs r3, #1
  4758. 8002400: 73fb strb r3, [r7, #15]
  4759. 8002402: e004 b.n 800240e <HAL_InitTick+0x5e>
  4760. }
  4761. }
  4762. else
  4763. {
  4764. status = HAL_ERROR;
  4765. 8002404: 2301 movs r3, #1
  4766. 8002406: 73fb strb r3, [r7, #15]
  4767. 8002408: e001 b.n 800240e <HAL_InitTick+0x5e>
  4768. }
  4769. }
  4770. else
  4771. {
  4772. status = HAL_ERROR;
  4773. 800240a: 2301 movs r3, #1
  4774. 800240c: 73fb strb r3, [r7, #15]
  4775. }
  4776. /* Return function status */
  4777. return status;
  4778. 800240e: 7bfb ldrb r3, [r7, #15]
  4779. }
  4780. 8002410: 4618 mov r0, r3
  4781. 8002412: 3710 adds r7, #16
  4782. 8002414: 46bd mov sp, r7
  4783. 8002416: bd80 pop {r7, pc}
  4784. 8002418: 20000008 .word 0x20000008
  4785. 800241c: 20000000 .word 0x20000000
  4786. 8002420: 20000004 .word 0x20000004
  4787. 08002424 <HAL_IncTick>:
  4788. * @note This function is declared as __weak to be overwritten in case of other
  4789. * implementations in user file.
  4790. * @retval None
  4791. */
  4792. __weak void HAL_IncTick(void)
  4793. {
  4794. 8002424: b480 push {r7}
  4795. 8002426: af00 add r7, sp, #0
  4796. uwTick += uwTickFreq;
  4797. 8002428: 4b05 ldr r3, [pc, #20] ; (8002440 <HAL_IncTick+0x1c>)
  4798. 800242a: 681a ldr r2, [r3, #0]
  4799. 800242c: 4b05 ldr r3, [pc, #20] ; (8002444 <HAL_IncTick+0x20>)
  4800. 800242e: 681b ldr r3, [r3, #0]
  4801. 8002430: 4413 add r3, r2
  4802. 8002432: 4a03 ldr r2, [pc, #12] ; (8002440 <HAL_IncTick+0x1c>)
  4803. 8002434: 6013 str r3, [r2, #0]
  4804. }
  4805. 8002436: bf00 nop
  4806. 8002438: 46bd mov sp, r7
  4807. 800243a: bc80 pop {r7}
  4808. 800243c: 4770 bx lr
  4809. 800243e: bf00 nop
  4810. 8002440: 200006f0 .word 0x200006f0
  4811. 8002444: 20000008 .word 0x20000008
  4812. 08002448 <HAL_GetTick>:
  4813. * @note This function is declared as __weak to be overwritten in case of other
  4814. * implementations in user file.
  4815. * @retval tick value
  4816. */
  4817. __weak uint32_t HAL_GetTick(void)
  4818. {
  4819. 8002448: b480 push {r7}
  4820. 800244a: af00 add r7, sp, #0
  4821. return uwTick;
  4822. 800244c: 4b02 ldr r3, [pc, #8] ; (8002458 <HAL_GetTick+0x10>)
  4823. 800244e: 681b ldr r3, [r3, #0]
  4824. }
  4825. 8002450: 4618 mov r0, r3
  4826. 8002452: 46bd mov sp, r7
  4827. 8002454: bc80 pop {r7}
  4828. 8002456: 4770 bx lr
  4829. 8002458: 200006f0 .word 0x200006f0
  4830. 0800245c <HAL_Delay>:
  4831. * implementations in user file.
  4832. * @param Delay specifies the delay time length, in milliseconds.
  4833. * @retval None
  4834. */
  4835. __weak void HAL_Delay(uint32_t Delay)
  4836. {
  4837. 800245c: b580 push {r7, lr}
  4838. 800245e: b084 sub sp, #16
  4839. 8002460: af00 add r7, sp, #0
  4840. 8002462: 6078 str r0, [r7, #4]
  4841. uint32_t tickstart = HAL_GetTick();
  4842. 8002464: f7ff fff0 bl 8002448 <HAL_GetTick>
  4843. 8002468: 60b8 str r0, [r7, #8]
  4844. uint32_t wait = Delay;
  4845. 800246a: 687b ldr r3, [r7, #4]
  4846. 800246c: 60fb str r3, [r7, #12]
  4847. /* Add a period to guaranty minimum wait */
  4848. if (wait < HAL_MAX_DELAY)
  4849. 800246e: 68fb ldr r3, [r7, #12]
  4850. 8002470: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  4851. 8002474: d004 beq.n 8002480 <HAL_Delay+0x24>
  4852. {
  4853. wait += (uint32_t)(uwTickFreq);
  4854. 8002476: 4b09 ldr r3, [pc, #36] ; (800249c <HAL_Delay+0x40>)
  4855. 8002478: 681b ldr r3, [r3, #0]
  4856. 800247a: 68fa ldr r2, [r7, #12]
  4857. 800247c: 4413 add r3, r2
  4858. 800247e: 60fb str r3, [r7, #12]
  4859. }
  4860. while((HAL_GetTick() - tickstart) < wait)
  4861. 8002480: bf00 nop
  4862. 8002482: f7ff ffe1 bl 8002448 <HAL_GetTick>
  4863. 8002486: 4602 mov r2, r0
  4864. 8002488: 68bb ldr r3, [r7, #8]
  4865. 800248a: 1ad3 subs r3, r2, r3
  4866. 800248c: 68fa ldr r2, [r7, #12]
  4867. 800248e: 429a cmp r2, r3
  4868. 8002490: d8f7 bhi.n 8002482 <HAL_Delay+0x26>
  4869. {
  4870. }
  4871. }
  4872. 8002492: bf00 nop
  4873. 8002494: bf00 nop
  4874. 8002496: 3710 adds r7, #16
  4875. 8002498: 46bd mov sp, r7
  4876. 800249a: bd80 pop {r7, pc}
  4877. 800249c: 20000008 .word 0x20000008
  4878. 080024a0 <HAL_ADC_Init>:
  4879. * of structure "ADC_InitTypeDef".
  4880. * @param hadc ADC handle
  4881. * @retval HAL status
  4882. */
  4883. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc)
  4884. {
  4885. 80024a0: b580 push {r7, lr}
  4886. 80024a2: b08e sub sp, #56 ; 0x38
  4887. 80024a4: af00 add r7, sp, #0
  4888. 80024a6: 6078 str r0, [r7, #4]
  4889. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  4890. 80024a8: 2300 movs r3, #0
  4891. 80024aa: f887 3037 strb.w r3, [r7, #55] ; 0x37
  4892. uint32_t tmp_cr1 = 0;
  4893. 80024ae: 2300 movs r3, #0
  4894. 80024b0: 633b str r3, [r7, #48] ; 0x30
  4895. uint32_t tmp_cr2 = 0;
  4896. 80024b2: 2300 movs r3, #0
  4897. 80024b4: 62fb str r3, [r7, #44] ; 0x2c
  4898. /* Check ADC handle */
  4899. if(hadc == NULL)
  4900. 80024b6: 687b ldr r3, [r7, #4]
  4901. 80024b8: 2b00 cmp r3, #0
  4902. 80024ba: d101 bne.n 80024c0 <HAL_ADC_Init+0x20>
  4903. {
  4904. return HAL_ERROR;
  4905. 80024bc: 2301 movs r3, #1
  4906. 80024be: e127 b.n 8002710 <HAL_ADC_Init+0x270>
  4907. assert_param(IS_ADC_CHANNELSBANK(hadc->Init.ChannelsBank));
  4908. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  4909. assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv));
  4910. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests));
  4911. if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  4912. 80024c0: 687b ldr r3, [r7, #4]
  4913. 80024c2: 691b ldr r3, [r3, #16]
  4914. 80024c4: 2b00 cmp r3, #0
  4915. /* Refer to header of this file for more details on clock enabling */
  4916. /* procedure. */
  4917. /* Actions performed only if ADC is coming from state reset: */
  4918. /* - Initialization of ADC MSP */
  4919. if (hadc->State == HAL_ADC_STATE_RESET)
  4920. 80024c6: 687b ldr r3, [r7, #4]
  4921. 80024c8: 6cdb ldr r3, [r3, #76] ; 0x4c
  4922. 80024ca: 2b00 cmp r3, #0
  4923. 80024cc: d115 bne.n 80024fa <HAL_ADC_Init+0x5a>
  4924. {
  4925. /* Initialize ADC error code */
  4926. ADC_CLEAR_ERRORCODE(hadc);
  4927. 80024ce: 687b ldr r3, [r7, #4]
  4928. 80024d0: 2200 movs r2, #0
  4929. 80024d2: 651a str r2, [r3, #80] ; 0x50
  4930. /* Allocate lock resource and initialize it */
  4931. hadc->Lock = HAL_UNLOCKED;
  4932. 80024d4: 687b ldr r3, [r7, #4]
  4933. 80024d6: 2200 movs r2, #0
  4934. 80024d8: f883 2048 strb.w r2, [r3, #72] ; 0x48
  4935. /* Enable SYSCFG clock to control the routing Interface (RI) */
  4936. __HAL_RCC_SYSCFG_CLK_ENABLE();
  4937. 80024dc: 4b8e ldr r3, [pc, #568] ; (8002718 <HAL_ADC_Init+0x278>)
  4938. 80024de: 6a1b ldr r3, [r3, #32]
  4939. 80024e0: 4a8d ldr r2, [pc, #564] ; (8002718 <HAL_ADC_Init+0x278>)
  4940. 80024e2: f043 0301 orr.w r3, r3, #1
  4941. 80024e6: 6213 str r3, [r2, #32]
  4942. 80024e8: 4b8b ldr r3, [pc, #556] ; (8002718 <HAL_ADC_Init+0x278>)
  4943. 80024ea: 6a1b ldr r3, [r3, #32]
  4944. 80024ec: f003 0301 and.w r3, r3, #1
  4945. 80024f0: 60bb str r3, [r7, #8]
  4946. 80024f2: 68bb ldr r3, [r7, #8]
  4947. /* Init the low level hardware */
  4948. hadc->MspInitCallback(hadc);
  4949. #else
  4950. /* Init the low level hardware */
  4951. HAL_ADC_MspInit(hadc);
  4952. 80024f4: 6878 ldr r0, [r7, #4]
  4953. 80024f6: f7ff fb63 bl 8001bc0 <HAL_ADC_MspInit>
  4954. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4955. }
  4956. /* Configuration of ADC parameters if previous preliminary actions are */
  4957. /* correctly completed. */
  4958. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  4959. 80024fa: 687b ldr r3, [r7, #4]
  4960. 80024fc: 6cdb ldr r3, [r3, #76] ; 0x4c
  4961. 80024fe: f003 0310 and.w r3, r3, #16
  4962. 8002502: 2b00 cmp r3, #0
  4963. 8002504: f040 80ff bne.w 8002706 <HAL_ADC_Init+0x266>
  4964. {
  4965. /* Set ADC state */
  4966. ADC_STATE_CLR_SET(hadc->State,
  4967. 8002508: 687b ldr r3, [r7, #4]
  4968. 800250a: 6cdb ldr r3, [r3, #76] ; 0x4c
  4969. 800250c: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  4970. 8002510: f023 0302 bic.w r3, r3, #2
  4971. 8002514: f043 0202 orr.w r2, r3, #2
  4972. 8002518: 687b ldr r3, [r7, #4]
  4973. 800251a: 64da str r2, [r3, #76] ; 0x4c
  4974. /* Set ADC parameters */
  4975. /* Configuration of common ADC clock: clock source HSI with selectable */
  4976. /* prescaler */
  4977. MODIFY_REG(ADC->CCR ,
  4978. 800251c: 4b7f ldr r3, [pc, #508] ; (800271c <HAL_ADC_Init+0x27c>)
  4979. 800251e: 685b ldr r3, [r3, #4]
  4980. 8002520: f423 3240 bic.w r2, r3, #196608 ; 0x30000
  4981. 8002524: 687b ldr r3, [r7, #4]
  4982. 8002526: 685b ldr r3, [r3, #4]
  4983. 8002528: 497c ldr r1, [pc, #496] ; (800271c <HAL_ADC_Init+0x27c>)
  4984. 800252a: 4313 orrs r3, r2
  4985. 800252c: 604b str r3, [r1, #4]
  4986. /* - external trigger polarity */
  4987. /* - End of conversion selection */
  4988. /* - DMA continuous request */
  4989. /* - Channels bank (Banks availability depends on devices categories) */
  4990. /* - continuous conversion mode */
  4991. tmp_cr2 |= (hadc->Init.DataAlign |
  4992. 800252e: 687b ldr r3, [r7, #4]
  4993. 8002530: 68da ldr r2, [r3, #12]
  4994. hadc->Init.EOCSelection |
  4995. 8002532: 687b ldr r3, [r7, #4]
  4996. 8002534: 695b ldr r3, [r3, #20]
  4997. tmp_cr2 |= (hadc->Init.DataAlign |
  4998. 8002536: 431a orrs r2, r3
  4999. ADC_CR2_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests) |
  5000. 8002538: 687b ldr r3, [r7, #4]
  5001. 800253a: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  5002. 800253e: 4619 mov r1, r3
  5003. 8002540: f44f 7300 mov.w r3, #512 ; 0x200
  5004. 8002544: 623b str r3, [r7, #32]
  5005. uint32_t result;
  5006. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  5007. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  5008. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  5009. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  5010. 8002546: 6a3b ldr r3, [r7, #32]
  5011. 8002548: fa93 f3a3 rbit r3, r3
  5012. 800254c: 61fb str r3, [r7, #28]
  5013. result |= value & 1U;
  5014. s--;
  5015. }
  5016. result <<= s; /* shift when v's highest bits are zero */
  5017. #endif
  5018. return result;
  5019. 800254e: 69fb ldr r3, [r7, #28]
  5020. 8002550: fab3 f383 clz r3, r3
  5021. 8002554: b2db uxtb r3, r3
  5022. 8002556: fa01 f303 lsl.w r3, r1, r3
  5023. hadc->Init.EOCSelection |
  5024. 800255a: 431a orrs r2, r3
  5025. hadc->Init.ChannelsBank |
  5026. 800255c: 687b ldr r3, [r7, #4]
  5027. 800255e: 6a1b ldr r3, [r3, #32]
  5028. ADC_CR2_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests) |
  5029. 8002560: 431a orrs r2, r3
  5030. ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) );
  5031. 8002562: 687b ldr r3, [r7, #4]
  5032. 8002564: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  5033. 8002568: 4619 mov r1, r3
  5034. 800256a: 2302 movs r3, #2
  5035. 800256c: 62bb str r3, [r7, #40] ; 0x28
  5036. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  5037. 800256e: 6abb ldr r3, [r7, #40] ; 0x28
  5038. 8002570: fa93 f3a3 rbit r3, r3
  5039. 8002574: 627b str r3, [r7, #36] ; 0x24
  5040. return result;
  5041. 8002576: 6a7b ldr r3, [r7, #36] ; 0x24
  5042. 8002578: fab3 f383 clz r3, r3
  5043. 800257c: b2db uxtb r3, r3
  5044. 800257e: fa01 f303 lsl.w r3, r1, r3
  5045. hadc->Init.ChannelsBank |
  5046. 8002582: 4313 orrs r3, r2
  5047. tmp_cr2 |= (hadc->Init.DataAlign |
  5048. 8002584: 6afa ldr r2, [r7, #44] ; 0x2c
  5049. 8002586: 4313 orrs r3, r2
  5050. 8002588: 62fb str r3, [r7, #44] ; 0x2c
  5051. /* Enable external trigger if trigger selection is different of software */
  5052. /* start. */
  5053. /* Note: This configuration keeps the hardware feature of parameter */
  5054. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  5055. /* software start. */
  5056. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  5057. 800258a: 687b ldr r3, [r7, #4]
  5058. 800258c: 6b5b ldr r3, [r3, #52] ; 0x34
  5059. 800258e: 2b10 cmp r3, #16
  5060. 8002590: d007 beq.n 80025a2 <HAL_ADC_Init+0x102>
  5061. {
  5062. tmp_cr2 |= ( hadc->Init.ExternalTrigConv |
  5063. 8002592: 687b ldr r3, [r7, #4]
  5064. 8002594: 6b5a ldr r2, [r3, #52] ; 0x34
  5065. hadc->Init.ExternalTrigConvEdge );
  5066. 8002596: 687b ldr r3, [r7, #4]
  5067. 8002598: 6b9b ldr r3, [r3, #56] ; 0x38
  5068. tmp_cr2 |= ( hadc->Init.ExternalTrigConv |
  5069. 800259a: 4313 orrs r3, r2
  5070. 800259c: 6afa ldr r2, [r7, #44] ; 0x2c
  5071. 800259e: 4313 orrs r3, r2
  5072. 80025a0: 62fb str r3, [r7, #44] ; 0x2c
  5073. /* - resolution */
  5074. /* - auto power off (LowPowerAutoPowerOff mode) */
  5075. /* - scan mode */
  5076. /* - discontinuous mode disable/enable */
  5077. /* - discontinuous mode number of conversions */
  5078. if ((ADC_IS_ENABLE(hadc) == RESET))
  5079. 80025a2: 687b ldr r3, [r7, #4]
  5080. 80025a4: 681b ldr r3, [r3, #0]
  5081. 80025a6: 681b ldr r3, [r3, #0]
  5082. 80025a8: f003 0340 and.w r3, r3, #64 ; 0x40
  5083. 80025ac: 2b40 cmp r3, #64 ; 0x40
  5084. 80025ae: d04f beq.n 8002650 <HAL_ADC_Init+0x1b0>
  5085. {
  5086. tmp_cr2 |= hadc->Init.LowPowerAutoWait;
  5087. 80025b0: 687b ldr r3, [r7, #4]
  5088. 80025b2: 699b ldr r3, [r3, #24]
  5089. 80025b4: 6afa ldr r2, [r7, #44] ; 0x2c
  5090. 80025b6: 4313 orrs r3, r2
  5091. 80025b8: 62fb str r3, [r7, #44] ; 0x2c
  5092. tmp_cr1 |= (hadc->Init.Resolution |
  5093. 80025ba: 687b ldr r3, [r7, #4]
  5094. 80025bc: 689a ldr r2, [r3, #8]
  5095. hadc->Init.LowPowerAutoPowerOff |
  5096. 80025be: 687b ldr r3, [r7, #4]
  5097. 80025c0: 69db ldr r3, [r3, #28]
  5098. tmp_cr1 |= (hadc->Init.Resolution |
  5099. 80025c2: 4313 orrs r3, r2
  5100. ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) );
  5101. 80025c4: 687a ldr r2, [r7, #4]
  5102. 80025c6: 6912 ldr r2, [r2, #16]
  5103. 80025c8: f5b2 7f80 cmp.w r2, #256 ; 0x100
  5104. 80025cc: d003 beq.n 80025d6 <HAL_ADC_Init+0x136>
  5105. 80025ce: 687a ldr r2, [r7, #4]
  5106. 80025d0: 6912 ldr r2, [r2, #16]
  5107. 80025d2: 2a01 cmp r2, #1
  5108. 80025d4: d102 bne.n 80025dc <HAL_ADC_Init+0x13c>
  5109. 80025d6: f44f 7280 mov.w r2, #256 ; 0x100
  5110. 80025da: e000 b.n 80025de <HAL_ADC_Init+0x13e>
  5111. 80025dc: 2200 movs r2, #0
  5112. hadc->Init.LowPowerAutoPowerOff |
  5113. 80025de: 4313 orrs r3, r2
  5114. tmp_cr1 |= (hadc->Init.Resolution |
  5115. 80025e0: 6b3a ldr r2, [r7, #48] ; 0x30
  5116. 80025e2: 4313 orrs r3, r2
  5117. 80025e4: 633b str r3, [r7, #48] ; 0x30
  5118. /* Enable discontinuous mode only if continuous mode is disabled */
  5119. /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */
  5120. /* discontinuous is set anyway, but has no effect on ADC HW. */
  5121. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  5122. 80025e6: 687b ldr r3, [r7, #4]
  5123. 80025e8: f893 302c ldrb.w r3, [r3, #44] ; 0x2c
  5124. 80025ec: 2b01 cmp r3, #1
  5125. 80025ee: d125 bne.n 800263c <HAL_ADC_Init+0x19c>
  5126. {
  5127. if (hadc->Init.ContinuousConvMode == DISABLE)
  5128. 80025f0: 687b ldr r3, [r7, #4]
  5129. 80025f2: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  5130. 80025f6: 2b00 cmp r3, #0
  5131. 80025f8: d114 bne.n 8002624 <HAL_ADC_Init+0x184>
  5132. {
  5133. /* Enable the selected ADC regular discontinuous mode */
  5134. /* Set the number of channels to be converted in discontinuous mode */
  5135. SET_BIT(tmp_cr1, ADC_CR1_DISCEN |
  5136. 80025fa: 687b ldr r3, [r7, #4]
  5137. 80025fc: 6b1b ldr r3, [r3, #48] ; 0x30
  5138. 80025fe: 3b01 subs r3, #1
  5139. 8002600: f44f 4260 mov.w r2, #57344 ; 0xe000
  5140. 8002604: 61ba str r2, [r7, #24]
  5141. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  5142. 8002606: 69ba ldr r2, [r7, #24]
  5143. 8002608: fa92 f2a2 rbit r2, r2
  5144. 800260c: 617a str r2, [r7, #20]
  5145. return result;
  5146. 800260e: 697a ldr r2, [r7, #20]
  5147. 8002610: fab2 f282 clz r2, r2
  5148. 8002614: b2d2 uxtb r2, r2
  5149. 8002616: 4093 lsls r3, r2
  5150. 8002618: f443 6300 orr.w r3, r3, #2048 ; 0x800
  5151. 800261c: 6b3a ldr r2, [r7, #48] ; 0x30
  5152. 800261e: 4313 orrs r3, r2
  5153. 8002620: 633b str r3, [r7, #48] ; 0x30
  5154. 8002622: e00b b.n 800263c <HAL_ADC_Init+0x19c>
  5155. {
  5156. /* ADC regular group settings continuous and sequencer discontinuous*/
  5157. /* cannot be enabled simultaneously. */
  5158. /* Update ADC state machine to error */
  5159. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  5160. 8002624: 687b ldr r3, [r7, #4]
  5161. 8002626: 6cdb ldr r3, [r3, #76] ; 0x4c
  5162. 8002628: f043 0220 orr.w r2, r3, #32
  5163. 800262c: 687b ldr r3, [r7, #4]
  5164. 800262e: 64da str r2, [r3, #76] ; 0x4c
  5165. /* Set ADC error code to ADC IP internal error */
  5166. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  5167. 8002630: 687b ldr r3, [r7, #4]
  5168. 8002632: 6d1b ldr r3, [r3, #80] ; 0x50
  5169. 8002634: f043 0201 orr.w r2, r3, #1
  5170. 8002638: 687b ldr r3, [r7, #4]
  5171. 800263a: 651a str r2, [r3, #80] ; 0x50
  5172. }
  5173. }
  5174. /* Update ADC configuration register CR1 with previous settings */
  5175. MODIFY_REG(hadc->Instance->CR1,
  5176. 800263c: 687b ldr r3, [r7, #4]
  5177. 800263e: 681b ldr r3, [r3, #0]
  5178. 8002640: 685a ldr r2, [r3, #4]
  5179. 8002642: 4b37 ldr r3, [pc, #220] ; (8002720 <HAL_ADC_Init+0x280>)
  5180. 8002644: 4013 ands r3, r2
  5181. 8002646: 687a ldr r2, [r7, #4]
  5182. 8002648: 6812 ldr r2, [r2, #0]
  5183. 800264a: 6b39 ldr r1, [r7, #48] ; 0x30
  5184. 800264c: 430b orrs r3, r1
  5185. 800264e: 6053 str r3, [r2, #4]
  5186. ADC_CR1_SCAN ,
  5187. tmp_cr1 );
  5188. }
  5189. /* Update ADC configuration register CR2 with previous settings */
  5190. MODIFY_REG(hadc->Instance->CR2 ,
  5191. 8002650: 687b ldr r3, [r7, #4]
  5192. 8002652: 681b ldr r3, [r3, #0]
  5193. 8002654: 689a ldr r2, [r3, #8]
  5194. 8002656: 4b33 ldr r3, [pc, #204] ; (8002724 <HAL_ADC_Init+0x284>)
  5195. 8002658: 4013 ands r3, r2
  5196. 800265a: 687a ldr r2, [r7, #4]
  5197. 800265c: 6812 ldr r2, [r2, #0]
  5198. 800265e: 6af9 ldr r1, [r7, #44] ; 0x2c
  5199. 8002660: 430b orrs r3, r1
  5200. 8002662: 6093 str r3, [r2, #8]
  5201. /* Note: Scan mode is present by hardware on this device and, if */
  5202. /* disabled, discards automatically nb of conversions. Anyway, nb of */
  5203. /* conversions is forced to 0x00 for alignment over all STM32 devices. */
  5204. /* - if scan mode is enabled, regular channels sequence length is set to */
  5205. /* parameter "NbrOfConversion" */
  5206. if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE)
  5207. 8002664: 687b ldr r3, [r7, #4]
  5208. 8002666: 691b ldr r3, [r3, #16]
  5209. 8002668: f5b3 7f80 cmp.w r3, #256 ; 0x100
  5210. 800266c: d003 beq.n 8002676 <HAL_ADC_Init+0x1d6>
  5211. 800266e: 687b ldr r3, [r7, #4]
  5212. 8002670: 691b ldr r3, [r3, #16]
  5213. 8002672: 2b01 cmp r3, #1
  5214. 8002674: d119 bne.n 80026aa <HAL_ADC_Init+0x20a>
  5215. {
  5216. MODIFY_REG(hadc->Instance->SQR1 ,
  5217. 8002676: 687b ldr r3, [r7, #4]
  5218. 8002678: 681b ldr r3, [r3, #0]
  5219. 800267a: 6b1b ldr r3, [r3, #48] ; 0x30
  5220. 800267c: f023 71f8 bic.w r1, r3, #32505856 ; 0x1f00000
  5221. 8002680: 687b ldr r3, [r7, #4]
  5222. 8002682: 6a9b ldr r3, [r3, #40] ; 0x28
  5223. 8002684: 3b01 subs r3, #1
  5224. 8002686: f04f 72f8 mov.w r2, #32505856 ; 0x1f00000
  5225. 800268a: 613a str r2, [r7, #16]
  5226. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  5227. 800268c: 693a ldr r2, [r7, #16]
  5228. 800268e: fa92 f2a2 rbit r2, r2
  5229. 8002692: 60fa str r2, [r7, #12]
  5230. return result;
  5231. 8002694: 68fa ldr r2, [r7, #12]
  5232. 8002696: fab2 f282 clz r2, r2
  5233. 800269a: b2d2 uxtb r2, r2
  5234. 800269c: fa03 f202 lsl.w r2, r3, r2
  5235. 80026a0: 687b ldr r3, [r7, #4]
  5236. 80026a2: 681b ldr r3, [r3, #0]
  5237. 80026a4: 430a orrs r2, r1
  5238. 80026a6: 631a str r2, [r3, #48] ; 0x30
  5239. 80026a8: e007 b.n 80026ba <HAL_ADC_Init+0x21a>
  5240. ADC_SQR1_L ,
  5241. ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion) );
  5242. }
  5243. else
  5244. {
  5245. MODIFY_REG(hadc->Instance->SQR1,
  5246. 80026aa: 687b ldr r3, [r7, #4]
  5247. 80026ac: 681b ldr r3, [r3, #0]
  5248. 80026ae: 6b1a ldr r2, [r3, #48] ; 0x30
  5249. 80026b0: 687b ldr r3, [r7, #4]
  5250. 80026b2: 681b ldr r3, [r3, #0]
  5251. 80026b4: f022 72f8 bic.w r2, r2, #32505856 ; 0x1f00000
  5252. 80026b8: 631a str r2, [r3, #48] ; 0x30
  5253. /* Check back that ADC registers have effectively been configured to */
  5254. /* ensure of no potential problem of ADC core IP clocking. */
  5255. /* Check through register CR2 (excluding execution control bits ADON, */
  5256. /* JSWSTART, SWSTART and injected trigger bits JEXTEN and JEXTSEL). */
  5257. if ((READ_REG(hadc->Instance->CR2) & ~(ADC_CR2_ADON |
  5258. 80026ba: 687b ldr r3, [r7, #4]
  5259. 80026bc: 681b ldr r3, [r3, #0]
  5260. 80026be: 689a ldr r2, [r3, #8]
  5261. 80026c0: 4b19 ldr r3, [pc, #100] ; (8002728 <HAL_ADC_Init+0x288>)
  5262. 80026c2: 4013 ands r3, r2
  5263. 80026c4: 6afa ldr r2, [r7, #44] ; 0x2c
  5264. 80026c6: 429a cmp r2, r3
  5265. 80026c8: d10b bne.n 80026e2 <HAL_ADC_Init+0x242>
  5266. ADC_CR2_SWSTART | ADC_CR2_JSWSTART |
  5267. ADC_CR2_JEXTEN | ADC_CR2_JEXTSEL ))
  5268. == tmp_cr2)
  5269. {
  5270. /* Set ADC error code to none */
  5271. ADC_CLEAR_ERRORCODE(hadc);
  5272. 80026ca: 687b ldr r3, [r7, #4]
  5273. 80026cc: 2200 movs r2, #0
  5274. 80026ce: 651a str r2, [r3, #80] ; 0x50
  5275. /* Set the ADC state */
  5276. ADC_STATE_CLR_SET(hadc->State,
  5277. 80026d0: 687b ldr r3, [r7, #4]
  5278. 80026d2: 6cdb ldr r3, [r3, #76] ; 0x4c
  5279. 80026d4: f023 0303 bic.w r3, r3, #3
  5280. 80026d8: f043 0201 orr.w r2, r3, #1
  5281. 80026dc: 687b ldr r3, [r7, #4]
  5282. 80026de: 64da str r2, [r3, #76] ; 0x4c
  5283. 80026e0: e014 b.n 800270c <HAL_ADC_Init+0x26c>
  5284. HAL_ADC_STATE_READY);
  5285. }
  5286. else
  5287. {
  5288. /* Update ADC state machine to error */
  5289. ADC_STATE_CLR_SET(hadc->State,
  5290. 80026e2: 687b ldr r3, [r7, #4]
  5291. 80026e4: 6cdb ldr r3, [r3, #76] ; 0x4c
  5292. 80026e6: f023 0312 bic.w r3, r3, #18
  5293. 80026ea: f043 0210 orr.w r2, r3, #16
  5294. 80026ee: 687b ldr r3, [r7, #4]
  5295. 80026f0: 64da str r2, [r3, #76] ; 0x4c
  5296. HAL_ADC_STATE_BUSY_INTERNAL,
  5297. HAL_ADC_STATE_ERROR_INTERNAL);
  5298. /* Set ADC error code to ADC IP internal error */
  5299. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  5300. 80026f2: 687b ldr r3, [r7, #4]
  5301. 80026f4: 6d1b ldr r3, [r3, #80] ; 0x50
  5302. 80026f6: f043 0201 orr.w r2, r3, #1
  5303. 80026fa: 687b ldr r3, [r7, #4]
  5304. 80026fc: 651a str r2, [r3, #80] ; 0x50
  5305. tmp_hal_status = HAL_ERROR;
  5306. 80026fe: 2301 movs r3, #1
  5307. 8002700: f887 3037 strb.w r3, [r7, #55] ; 0x37
  5308. 8002704: e002 b.n 800270c <HAL_ADC_Init+0x26c>
  5309. }
  5310. }
  5311. else
  5312. {
  5313. tmp_hal_status = HAL_ERROR;
  5314. 8002706: 2301 movs r3, #1
  5315. 8002708: f887 3037 strb.w r3, [r7, #55] ; 0x37
  5316. }
  5317. /* Return function status */
  5318. return tmp_hal_status;
  5319. 800270c: f897 3037 ldrb.w r3, [r7, #55] ; 0x37
  5320. }
  5321. 8002710: 4618 mov r0, r3
  5322. 8002712: 3738 adds r7, #56 ; 0x38
  5323. 8002714: 46bd mov sp, r7
  5324. 8002716: bd80 pop {r7, pc}
  5325. 8002718: 40023800 .word 0x40023800
  5326. 800271c: 40012700 .word 0x40012700
  5327. 8002720: fcfc16ff .word 0xfcfc16ff
  5328. 8002724: c0fff18d .word 0xc0fff18d
  5329. 8002728: bf80fffe .word 0xbf80fffe
  5330. 0800272c <HAL_ADC_Start_DMA>:
  5331. * @param pData The destination Buffer address.
  5332. * @param Length The length of data to be transferred from ADC peripheral to memory.
  5333. * @retval None
  5334. */
  5335. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length)
  5336. {
  5337. 800272c: b580 push {r7, lr}
  5338. 800272e: b086 sub sp, #24
  5339. 8002730: af00 add r7, sp, #0
  5340. 8002732: 60f8 str r0, [r7, #12]
  5341. 8002734: 60b9 str r1, [r7, #8]
  5342. 8002736: 607a str r2, [r7, #4]
  5343. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  5344. 8002738: 2300 movs r3, #0
  5345. 800273a: 75fb strb r3, [r7, #23]
  5346. /* Check the parameters */
  5347. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  5348. /* Process locked */
  5349. __HAL_LOCK(hadc);
  5350. 800273c: 68fb ldr r3, [r7, #12]
  5351. 800273e: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
  5352. 8002742: 2b01 cmp r3, #1
  5353. 8002744: d101 bne.n 800274a <HAL_ADC_Start_DMA+0x1e>
  5354. 8002746: 2302 movs r3, #2
  5355. 8002748: e074 b.n 8002834 <HAL_ADC_Start_DMA+0x108>
  5356. 800274a: 68fb ldr r3, [r7, #12]
  5357. 800274c: 2201 movs r2, #1
  5358. 800274e: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5359. /* Enable the ADC peripheral */
  5360. tmp_hal_status = ADC_Enable(hadc);
  5361. 8002752: 68f8 ldr r0, [r7, #12]
  5362. 8002754: f000 fa34 bl 8002bc0 <ADC_Enable>
  5363. 8002758: 4603 mov r3, r0
  5364. 800275a: 75fb strb r3, [r7, #23]
  5365. /* Start conversion if ADC is effectively enabled */
  5366. if (tmp_hal_status == HAL_OK)
  5367. 800275c: 7dfb ldrb r3, [r7, #23]
  5368. 800275e: 2b00 cmp r3, #0
  5369. 8002760: d167 bne.n 8002832 <HAL_ADC_Start_DMA+0x106>
  5370. {
  5371. /* Set ADC state */
  5372. /* - Clear state bitfield related to regular group conversion results */
  5373. /* - Set state bitfield related to regular group operation */
  5374. ADC_STATE_CLR_SET(hadc->State,
  5375. 8002762: 68fb ldr r3, [r7, #12]
  5376. 8002764: 6cdb ldr r3, [r3, #76] ; 0x4c
  5377. 8002766: f423 63e0 bic.w r3, r3, #1792 ; 0x700
  5378. 800276a: f023 0301 bic.w r3, r3, #1
  5379. 800276e: f443 7280 orr.w r2, r3, #256 ; 0x100
  5380. 8002772: 68fb ldr r3, [r7, #12]
  5381. 8002774: 64da str r2, [r3, #76] ; 0x4c
  5382. HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR,
  5383. HAL_ADC_STATE_REG_BUSY);
  5384. /* If conversions on group regular are also triggering group injected, */
  5385. /* update ADC state. */
  5386. if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET)
  5387. 8002776: 68fb ldr r3, [r7, #12]
  5388. 8002778: 681b ldr r3, [r3, #0]
  5389. 800277a: 685b ldr r3, [r3, #4]
  5390. 800277c: f403 6380 and.w r3, r3, #1024 ; 0x400
  5391. 8002780: 2b00 cmp r3, #0
  5392. 8002782: d007 beq.n 8002794 <HAL_ADC_Start_DMA+0x68>
  5393. {
  5394. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  5395. 8002784: 68fb ldr r3, [r7, #12]
  5396. 8002786: 6cdb ldr r3, [r3, #76] ; 0x4c
  5397. 8002788: f423 5340 bic.w r3, r3, #12288 ; 0x3000
  5398. 800278c: f443 5280 orr.w r2, r3, #4096 ; 0x1000
  5399. 8002790: 68fb ldr r3, [r7, #12]
  5400. 8002792: 64da str r2, [r3, #76] ; 0x4c
  5401. }
  5402. /* State machine update: Check if an injected conversion is ongoing */
  5403. if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  5404. 8002794: 68fb ldr r3, [r7, #12]
  5405. 8002796: 6cdb ldr r3, [r3, #76] ; 0x4c
  5406. 8002798: f403 5380 and.w r3, r3, #4096 ; 0x1000
  5407. 800279c: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  5408. 80027a0: d106 bne.n 80027b0 <HAL_ADC_Start_DMA+0x84>
  5409. {
  5410. /* Reset ADC error code fields related to conversions on group regular */
  5411. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  5412. 80027a2: 68fb ldr r3, [r7, #12]
  5413. 80027a4: 6d1b ldr r3, [r3, #80] ; 0x50
  5414. 80027a6: f023 0206 bic.w r2, r3, #6
  5415. 80027aa: 68fb ldr r3, [r7, #12]
  5416. 80027ac: 651a str r2, [r3, #80] ; 0x50
  5417. 80027ae: e002 b.n 80027b6 <HAL_ADC_Start_DMA+0x8a>
  5418. }
  5419. else
  5420. {
  5421. /* Reset ADC all error code fields */
  5422. ADC_CLEAR_ERRORCODE(hadc);
  5423. 80027b0: 68fb ldr r3, [r7, #12]
  5424. 80027b2: 2200 movs r2, #0
  5425. 80027b4: 651a str r2, [r3, #80] ; 0x50
  5426. }
  5427. /* Process unlocked */
  5428. /* Unlock before starting ADC conversions: in case of potential */
  5429. /* interruption, to let the process to ADC IRQ Handler. */
  5430. __HAL_UNLOCK(hadc);
  5431. 80027b6: 68fb ldr r3, [r7, #12]
  5432. 80027b8: 2200 movs r2, #0
  5433. 80027ba: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5434. /* Set the DMA transfer complete callback */
  5435. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  5436. 80027be: 68fb ldr r3, [r7, #12]
  5437. 80027c0: 6c5b ldr r3, [r3, #68] ; 0x44
  5438. 80027c2: 4a1e ldr r2, [pc, #120] ; (800283c <HAL_ADC_Start_DMA+0x110>)
  5439. 80027c4: 629a str r2, [r3, #40] ; 0x28
  5440. /* Set the DMA half transfer complete callback */
  5441. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  5442. 80027c6: 68fb ldr r3, [r7, #12]
  5443. 80027c8: 6c5b ldr r3, [r3, #68] ; 0x44
  5444. 80027ca: 4a1d ldr r2, [pc, #116] ; (8002840 <HAL_ADC_Start_DMA+0x114>)
  5445. 80027cc: 62da str r2, [r3, #44] ; 0x2c
  5446. /* Set the DMA error callback */
  5447. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  5448. 80027ce: 68fb ldr r3, [r7, #12]
  5449. 80027d0: 6c5b ldr r3, [r3, #68] ; 0x44
  5450. 80027d2: 4a1c ldr r2, [pc, #112] ; (8002844 <HAL_ADC_Start_DMA+0x118>)
  5451. 80027d4: 631a str r2, [r3, #48] ; 0x30
  5452. /* Manage ADC and DMA start: ADC overrun interruption, DMA start, ADC */
  5453. /* start (in case of SW start): */
  5454. /* Clear regular group conversion flag and overrun flag */
  5455. /* (To ensure of no unknown state from potential previous ADC operations) */
  5456. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC | ADC_FLAG_OVR);
  5457. 80027d6: 68fb ldr r3, [r7, #12]
  5458. 80027d8: 681b ldr r3, [r3, #0]
  5459. 80027da: f06f 0222 mvn.w r2, #34 ; 0x22
  5460. 80027de: 601a str r2, [r3, #0]
  5461. /* Enable ADC overrun interrupt */
  5462. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  5463. 80027e0: 68fb ldr r3, [r7, #12]
  5464. 80027e2: 681b ldr r3, [r3, #0]
  5465. 80027e4: 685a ldr r2, [r3, #4]
  5466. 80027e6: 68fb ldr r3, [r7, #12]
  5467. 80027e8: 681b ldr r3, [r3, #0]
  5468. 80027ea: f042 6280 orr.w r2, r2, #67108864 ; 0x4000000
  5469. 80027ee: 605a str r2, [r3, #4]
  5470. /* Enable ADC DMA mode */
  5471. hadc->Instance->CR2 |= ADC_CR2_DMA;
  5472. 80027f0: 68fb ldr r3, [r7, #12]
  5473. 80027f2: 681b ldr r3, [r3, #0]
  5474. 80027f4: 689a ldr r2, [r3, #8]
  5475. 80027f6: 68fb ldr r3, [r7, #12]
  5476. 80027f8: 681b ldr r3, [r3, #0]
  5477. 80027fa: f442 7280 orr.w r2, r2, #256 ; 0x100
  5478. 80027fe: 609a str r2, [r3, #8]
  5479. /* Start the DMA channel */
  5480. HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  5481. 8002800: 68fb ldr r3, [r7, #12]
  5482. 8002802: 6c58 ldr r0, [r3, #68] ; 0x44
  5483. 8002804: 68fb ldr r3, [r7, #12]
  5484. 8002806: 681b ldr r3, [r3, #0]
  5485. 8002808: 3358 adds r3, #88 ; 0x58
  5486. 800280a: 4619 mov r1, r3
  5487. 800280c: 68ba ldr r2, [r7, #8]
  5488. 800280e: 687b ldr r3, [r7, #4]
  5489. 8002810: f000 fec8 bl 80035a4 <HAL_DMA_Start_IT>
  5490. /* If software start has been selected, conversion starts immediately. */
  5491. /* If external trigger has been selected, conversion will start at next */
  5492. /* trigger event. */
  5493. /* Note: Alternate trigger for single conversion could be to force an */
  5494. /* additional set of bit ADON "hadc->Instance->CR2 |= ADC_CR2_ADON;"*/
  5495. if (ADC_IS_SOFTWARE_START_REGULAR(hadc))
  5496. 8002814: 68fb ldr r3, [r7, #12]
  5497. 8002816: 681b ldr r3, [r3, #0]
  5498. 8002818: 689b ldr r3, [r3, #8]
  5499. 800281a: f003 5340 and.w r3, r3, #805306368 ; 0x30000000
  5500. 800281e: 2b00 cmp r3, #0
  5501. 8002820: d107 bne.n 8002832 <HAL_ADC_Start_DMA+0x106>
  5502. {
  5503. /* Start ADC conversion on regular group */
  5504. SET_BIT(hadc->Instance->CR2, ADC_CR2_SWSTART);
  5505. 8002822: 68fb ldr r3, [r7, #12]
  5506. 8002824: 681b ldr r3, [r3, #0]
  5507. 8002826: 689a ldr r2, [r3, #8]
  5508. 8002828: 68fb ldr r3, [r7, #12]
  5509. 800282a: 681b ldr r3, [r3, #0]
  5510. 800282c: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000
  5511. 8002830: 609a str r2, [r3, #8]
  5512. }
  5513. }
  5514. /* Return function status */
  5515. return tmp_hal_status;
  5516. 8002832: 7dfb ldrb r3, [r7, #23]
  5517. }
  5518. 8002834: 4618 mov r0, r3
  5519. 8002836: 3718 adds r7, #24
  5520. 8002838: 46bd mov sp, r7
  5521. 800283a: bd80 pop {r7, pc}
  5522. 800283c: 08002cfb .word 0x08002cfb
  5523. 8002840: 08002da3 .word 0x08002da3
  5524. 8002844: 08002dbf .word 0x08002dbf
  5525. 08002848 <HAL_ADC_Stop_DMA>:
  5526. * should be preliminarily stopped using HAL_ADCEx_InjectedStop function.
  5527. * @param hadc ADC handle
  5528. * @retval HAL status.
  5529. */
  5530. HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef* hadc)
  5531. {
  5532. 8002848: b580 push {r7, lr}
  5533. 800284a: b084 sub sp, #16
  5534. 800284c: af00 add r7, sp, #0
  5535. 800284e: 6078 str r0, [r7, #4]
  5536. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  5537. 8002850: 2300 movs r3, #0
  5538. 8002852: 73fb strb r3, [r7, #15]
  5539. /* Check the parameters */
  5540. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  5541. /* Process locked */
  5542. __HAL_LOCK(hadc);
  5543. 8002854: 687b ldr r3, [r7, #4]
  5544. 8002856: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
  5545. 800285a: 2b01 cmp r3, #1
  5546. 800285c: d101 bne.n 8002862 <HAL_ADC_Stop_DMA+0x1a>
  5547. 800285e: 2302 movs r3, #2
  5548. 8002860: e03f b.n 80028e2 <HAL_ADC_Stop_DMA+0x9a>
  5549. 8002862: 687b ldr r3, [r7, #4]
  5550. 8002864: 2201 movs r2, #1
  5551. 8002866: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5552. /* Stop potential conversion on going, on regular and injected groups */
  5553. /* Disable ADC peripheral */
  5554. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  5555. 800286a: 6878 ldr r0, [r7, #4]
  5556. 800286c: f000 fa04 bl 8002c78 <ADC_ConversionStop_Disable>
  5557. 8002870: 4603 mov r3, r0
  5558. 8002872: 73fb strb r3, [r7, #15]
  5559. /* Check if ADC is effectively disabled */
  5560. if (tmp_hal_status == HAL_OK)
  5561. 8002874: 7bfb ldrb r3, [r7, #15]
  5562. 8002876: 2b00 cmp r3, #0
  5563. 8002878: d12e bne.n 80028d8 <HAL_ADC_Stop_DMA+0x90>
  5564. {
  5565. /* Disable ADC DMA mode */
  5566. hadc->Instance->CR2 &= ~ADC_CR2_DMA;
  5567. 800287a: 687b ldr r3, [r7, #4]
  5568. 800287c: 681b ldr r3, [r3, #0]
  5569. 800287e: 689a ldr r2, [r3, #8]
  5570. 8002880: 687b ldr r3, [r7, #4]
  5571. 8002882: 681b ldr r3, [r3, #0]
  5572. 8002884: f422 7280 bic.w r2, r2, #256 ; 0x100
  5573. 8002888: 609a str r2, [r3, #8]
  5574. /* Disable the DMA channel (in case of DMA in circular mode or stop while */
  5575. /* DMA transfer is on going) */
  5576. if (hadc->DMA_Handle->State == HAL_DMA_STATE_BUSY)
  5577. 800288a: 687b ldr r3, [r7, #4]
  5578. 800288c: 6c5b ldr r3, [r3, #68] ; 0x44
  5579. 800288e: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  5580. 8002892: b2db uxtb r3, r3
  5581. 8002894: 2b02 cmp r3, #2
  5582. 8002896: d10d bne.n 80028b4 <HAL_ADC_Stop_DMA+0x6c>
  5583. {
  5584. HAL_DMA_Abort(hadc->DMA_Handle);
  5585. 8002898: 687b ldr r3, [r7, #4]
  5586. 800289a: 6c5b ldr r3, [r3, #68] ; 0x44
  5587. 800289c: 4618 mov r0, r3
  5588. 800289e: f000 fee1 bl 8003664 <HAL_DMA_Abort>
  5589. /* Check if DMA channel effectively disabled */
  5590. if (tmp_hal_status != HAL_OK)
  5591. 80028a2: 7bfb ldrb r3, [r7, #15]
  5592. 80028a4: 2b00 cmp r3, #0
  5593. 80028a6: d005 beq.n 80028b4 <HAL_ADC_Stop_DMA+0x6c>
  5594. {
  5595. /* Update ADC state machine to error */
  5596. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  5597. 80028a8: 687b ldr r3, [r7, #4]
  5598. 80028aa: 6cdb ldr r3, [r3, #76] ; 0x4c
  5599. 80028ac: f043 0240 orr.w r2, r3, #64 ; 0x40
  5600. 80028b0: 687b ldr r3, [r7, #4]
  5601. 80028b2: 64da str r2, [r3, #76] ; 0x4c
  5602. }
  5603. }
  5604. /* Set ADC state */
  5605. ADC_STATE_CLR_SET(hadc->State,
  5606. 80028b4: 687b ldr r3, [r7, #4]
  5607. 80028b6: 6cdb ldr r3, [r3, #76] ; 0x4c
  5608. 80028b8: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  5609. 80028bc: f023 0301 bic.w r3, r3, #1
  5610. 80028c0: f043 0201 orr.w r2, r3, #1
  5611. 80028c4: 687b ldr r3, [r7, #4]
  5612. 80028c6: 64da str r2, [r3, #76] ; 0x4c
  5613. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  5614. HAL_ADC_STATE_READY);
  5615. /* Disable ADC overrun interrupt */
  5616. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR);
  5617. 80028c8: 687b ldr r3, [r7, #4]
  5618. 80028ca: 681b ldr r3, [r3, #0]
  5619. 80028cc: 685a ldr r2, [r3, #4]
  5620. 80028ce: 687b ldr r3, [r7, #4]
  5621. 80028d0: 681b ldr r3, [r3, #0]
  5622. 80028d2: f022 6280 bic.w r2, r2, #67108864 ; 0x4000000
  5623. 80028d6: 605a str r2, [r3, #4]
  5624. }
  5625. /* Process unlocked */
  5626. __HAL_UNLOCK(hadc);
  5627. 80028d8: 687b ldr r3, [r7, #4]
  5628. 80028da: 2200 movs r2, #0
  5629. 80028dc: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5630. /* Return function status */
  5631. return tmp_hal_status;
  5632. 80028e0: 7bfb ldrb r3, [r7, #15]
  5633. }
  5634. 80028e2: 4618 mov r0, r3
  5635. 80028e4: 3710 adds r7, #16
  5636. 80028e6: 46bd mov sp, r7
  5637. 80028e8: bd80 pop {r7, pc}
  5638. 080028ea <HAL_ADC_ConvCpltCallback>:
  5639. * @brief Conversion complete callback in non blocking mode
  5640. * @param hadc ADC handle
  5641. * @retval None
  5642. */
  5643. __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
  5644. {
  5645. 80028ea: b480 push {r7}
  5646. 80028ec: b083 sub sp, #12
  5647. 80028ee: af00 add r7, sp, #0
  5648. 80028f0: 6078 str r0, [r7, #4]
  5649. UNUSED(hadc);
  5650. /* NOTE : This function should not be modified. When the callback is needed,
  5651. function HAL_ADC_ConvCpltCallback must be implemented in the user file.
  5652. */
  5653. }
  5654. 80028f2: bf00 nop
  5655. 80028f4: 370c adds r7, #12
  5656. 80028f6: 46bd mov sp, r7
  5657. 80028f8: bc80 pop {r7}
  5658. 80028fa: 4770 bx lr
  5659. 080028fc <HAL_ADC_ConvHalfCpltCallback>:
  5660. * @brief Conversion DMA half-transfer callback in non blocking mode
  5661. * @param hadc ADC handle
  5662. * @retval None
  5663. */
  5664. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc)
  5665. {
  5666. 80028fc: b480 push {r7}
  5667. 80028fe: b083 sub sp, #12
  5668. 8002900: af00 add r7, sp, #0
  5669. 8002902: 6078 str r0, [r7, #4]
  5670. UNUSED(hadc);
  5671. /* NOTE : This function should not be modified. When the callback is needed,
  5672. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  5673. */
  5674. }
  5675. 8002904: bf00 nop
  5676. 8002906: 370c adds r7, #12
  5677. 8002908: 46bd mov sp, r7
  5678. 800290a: bc80 pop {r7}
  5679. 800290c: 4770 bx lr
  5680. 0800290e <HAL_ADC_ErrorCallback>:
  5681. * (this function is also clearing overrun flag)
  5682. * @param hadc ADC handle
  5683. * @retval None
  5684. */
  5685. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  5686. {
  5687. 800290e: b480 push {r7}
  5688. 8002910: b083 sub sp, #12
  5689. 8002912: af00 add r7, sp, #0
  5690. 8002914: 6078 str r0, [r7, #4]
  5691. UNUSED(hadc);
  5692. /* NOTE : This function should not be modified. When the callback is needed,
  5693. function HAL_ADC_ErrorCallback must be implemented in the user file.
  5694. */
  5695. }
  5696. 8002916: bf00 nop
  5697. 8002918: 370c adds r7, #12
  5698. 800291a: 46bd mov sp, r7
  5699. 800291c: bc80 pop {r7}
  5700. 800291e: 4770 bx lr
  5701. 08002920 <HAL_ADC_ConfigChannel>:
  5702. * @param hadc ADC handle
  5703. * @param sConfig Structure of ADC channel for regular group.
  5704. * @retval HAL status
  5705. */
  5706. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig)
  5707. {
  5708. 8002920: b480 push {r7}
  5709. 8002922: b085 sub sp, #20
  5710. 8002924: af00 add r7, sp, #0
  5711. 8002926: 6078 str r0, [r7, #4]
  5712. 8002928: 6039 str r1, [r7, #0]
  5713. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  5714. 800292a: 2300 movs r3, #0
  5715. 800292c: 73fb strb r3, [r7, #15]
  5716. __IO uint32_t wait_loop_index = 0;
  5717. 800292e: 2300 movs r3, #0
  5718. 8002930: 60bb str r3, [r7, #8]
  5719. assert_param(IS_ADC_CHANNEL(sConfig->Channel));
  5720. assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank));
  5721. assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime));
  5722. /* Process locked */
  5723. __HAL_LOCK(hadc);
  5724. 8002932: 687b ldr r3, [r7, #4]
  5725. 8002934: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
  5726. 8002938: 2b01 cmp r3, #1
  5727. 800293a: d101 bne.n 8002940 <HAL_ADC_ConfigChannel+0x20>
  5728. 800293c: 2302 movs r3, #2
  5729. 800293e: e134 b.n 8002baa <HAL_ADC_ConfigChannel+0x28a>
  5730. 8002940: 687b ldr r3, [r7, #4]
  5731. 8002942: 2201 movs r2, #1
  5732. 8002944: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5733. /* Regular sequence configuration */
  5734. /* For Rank 1 to 6 */
  5735. if (sConfig->Rank < 7)
  5736. 8002948: 683b ldr r3, [r7, #0]
  5737. 800294a: 685b ldr r3, [r3, #4]
  5738. 800294c: 2b06 cmp r3, #6
  5739. 800294e: d81c bhi.n 800298a <HAL_ADC_ConfigChannel+0x6a>
  5740. {
  5741. MODIFY_REG(hadc->Instance->SQR5,
  5742. 8002950: 687b ldr r3, [r7, #4]
  5743. 8002952: 681b ldr r3, [r3, #0]
  5744. 8002954: 6c19 ldr r1, [r3, #64] ; 0x40
  5745. 8002956: 683b ldr r3, [r7, #0]
  5746. 8002958: 685a ldr r2, [r3, #4]
  5747. 800295a: 4613 mov r3, r2
  5748. 800295c: 009b lsls r3, r3, #2
  5749. 800295e: 4413 add r3, r2
  5750. 8002960: 3b05 subs r3, #5
  5751. 8002962: 221f movs r2, #31
  5752. 8002964: fa02 f303 lsl.w r3, r2, r3
  5753. 8002968: 43db mvns r3, r3
  5754. 800296a: 4019 ands r1, r3
  5755. 800296c: 683b ldr r3, [r7, #0]
  5756. 800296e: 6818 ldr r0, [r3, #0]
  5757. 8002970: 683b ldr r3, [r7, #0]
  5758. 8002972: 685a ldr r2, [r3, #4]
  5759. 8002974: 4613 mov r3, r2
  5760. 8002976: 009b lsls r3, r3, #2
  5761. 8002978: 4413 add r3, r2
  5762. 800297a: 3b05 subs r3, #5
  5763. 800297c: fa00 f203 lsl.w r2, r0, r3
  5764. 8002980: 687b ldr r3, [r7, #4]
  5765. 8002982: 681b ldr r3, [r3, #0]
  5766. 8002984: 430a orrs r2, r1
  5767. 8002986: 641a str r2, [r3, #64] ; 0x40
  5768. 8002988: e07e b.n 8002a88 <HAL_ADC_ConfigChannel+0x168>
  5769. ADC_SQR5_RK(ADC_SQR5_SQ1, sConfig->Rank),
  5770. ADC_SQR5_RK(sConfig->Channel, sConfig->Rank) );
  5771. }
  5772. /* For Rank 7 to 12 */
  5773. else if (sConfig->Rank < 13)
  5774. 800298a: 683b ldr r3, [r7, #0]
  5775. 800298c: 685b ldr r3, [r3, #4]
  5776. 800298e: 2b0c cmp r3, #12
  5777. 8002990: d81c bhi.n 80029cc <HAL_ADC_ConfigChannel+0xac>
  5778. {
  5779. MODIFY_REG(hadc->Instance->SQR4,
  5780. 8002992: 687b ldr r3, [r7, #4]
  5781. 8002994: 681b ldr r3, [r3, #0]
  5782. 8002996: 6bd9 ldr r1, [r3, #60] ; 0x3c
  5783. 8002998: 683b ldr r3, [r7, #0]
  5784. 800299a: 685a ldr r2, [r3, #4]
  5785. 800299c: 4613 mov r3, r2
  5786. 800299e: 009b lsls r3, r3, #2
  5787. 80029a0: 4413 add r3, r2
  5788. 80029a2: 3b23 subs r3, #35 ; 0x23
  5789. 80029a4: 221f movs r2, #31
  5790. 80029a6: fa02 f303 lsl.w r3, r2, r3
  5791. 80029aa: 43db mvns r3, r3
  5792. 80029ac: 4019 ands r1, r3
  5793. 80029ae: 683b ldr r3, [r7, #0]
  5794. 80029b0: 6818 ldr r0, [r3, #0]
  5795. 80029b2: 683b ldr r3, [r7, #0]
  5796. 80029b4: 685a ldr r2, [r3, #4]
  5797. 80029b6: 4613 mov r3, r2
  5798. 80029b8: 009b lsls r3, r3, #2
  5799. 80029ba: 4413 add r3, r2
  5800. 80029bc: 3b23 subs r3, #35 ; 0x23
  5801. 80029be: fa00 f203 lsl.w r2, r0, r3
  5802. 80029c2: 687b ldr r3, [r7, #4]
  5803. 80029c4: 681b ldr r3, [r3, #0]
  5804. 80029c6: 430a orrs r2, r1
  5805. 80029c8: 63da str r2, [r3, #60] ; 0x3c
  5806. 80029ca: e05d b.n 8002a88 <HAL_ADC_ConfigChannel+0x168>
  5807. ADC_SQR4_RK(ADC_SQR4_SQ7, sConfig->Rank),
  5808. ADC_SQR4_RK(sConfig->Channel, sConfig->Rank) );
  5809. }
  5810. /* For Rank 13 to 18 */
  5811. else if (sConfig->Rank < 19)
  5812. 80029cc: 683b ldr r3, [r7, #0]
  5813. 80029ce: 685b ldr r3, [r3, #4]
  5814. 80029d0: 2b12 cmp r3, #18
  5815. 80029d2: d81c bhi.n 8002a0e <HAL_ADC_ConfigChannel+0xee>
  5816. {
  5817. MODIFY_REG(hadc->Instance->SQR3,
  5818. 80029d4: 687b ldr r3, [r7, #4]
  5819. 80029d6: 681b ldr r3, [r3, #0]
  5820. 80029d8: 6b99 ldr r1, [r3, #56] ; 0x38
  5821. 80029da: 683b ldr r3, [r7, #0]
  5822. 80029dc: 685a ldr r2, [r3, #4]
  5823. 80029de: 4613 mov r3, r2
  5824. 80029e0: 009b lsls r3, r3, #2
  5825. 80029e2: 4413 add r3, r2
  5826. 80029e4: 3b41 subs r3, #65 ; 0x41
  5827. 80029e6: 221f movs r2, #31
  5828. 80029e8: fa02 f303 lsl.w r3, r2, r3
  5829. 80029ec: 43db mvns r3, r3
  5830. 80029ee: 4019 ands r1, r3
  5831. 80029f0: 683b ldr r3, [r7, #0]
  5832. 80029f2: 6818 ldr r0, [r3, #0]
  5833. 80029f4: 683b ldr r3, [r7, #0]
  5834. 80029f6: 685a ldr r2, [r3, #4]
  5835. 80029f8: 4613 mov r3, r2
  5836. 80029fa: 009b lsls r3, r3, #2
  5837. 80029fc: 4413 add r3, r2
  5838. 80029fe: 3b41 subs r3, #65 ; 0x41
  5839. 8002a00: fa00 f203 lsl.w r2, r0, r3
  5840. 8002a04: 687b ldr r3, [r7, #4]
  5841. 8002a06: 681b ldr r3, [r3, #0]
  5842. 8002a08: 430a orrs r2, r1
  5843. 8002a0a: 639a str r2, [r3, #56] ; 0x38
  5844. 8002a0c: e03c b.n 8002a88 <HAL_ADC_ConfigChannel+0x168>
  5845. ADC_SQR3_RK(ADC_SQR3_SQ13, sConfig->Rank),
  5846. ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) );
  5847. }
  5848. /* For Rank 19 to 24 */
  5849. else if (sConfig->Rank < 25)
  5850. 8002a0e: 683b ldr r3, [r7, #0]
  5851. 8002a10: 685b ldr r3, [r3, #4]
  5852. 8002a12: 2b18 cmp r3, #24
  5853. 8002a14: d81c bhi.n 8002a50 <HAL_ADC_ConfigChannel+0x130>
  5854. {
  5855. MODIFY_REG(hadc->Instance->SQR2,
  5856. 8002a16: 687b ldr r3, [r7, #4]
  5857. 8002a18: 681b ldr r3, [r3, #0]
  5858. 8002a1a: 6b59 ldr r1, [r3, #52] ; 0x34
  5859. 8002a1c: 683b ldr r3, [r7, #0]
  5860. 8002a1e: 685a ldr r2, [r3, #4]
  5861. 8002a20: 4613 mov r3, r2
  5862. 8002a22: 009b lsls r3, r3, #2
  5863. 8002a24: 4413 add r3, r2
  5864. 8002a26: 3b5f subs r3, #95 ; 0x5f
  5865. 8002a28: 221f movs r2, #31
  5866. 8002a2a: fa02 f303 lsl.w r3, r2, r3
  5867. 8002a2e: 43db mvns r3, r3
  5868. 8002a30: 4019 ands r1, r3
  5869. 8002a32: 683b ldr r3, [r7, #0]
  5870. 8002a34: 6818 ldr r0, [r3, #0]
  5871. 8002a36: 683b ldr r3, [r7, #0]
  5872. 8002a38: 685a ldr r2, [r3, #4]
  5873. 8002a3a: 4613 mov r3, r2
  5874. 8002a3c: 009b lsls r3, r3, #2
  5875. 8002a3e: 4413 add r3, r2
  5876. 8002a40: 3b5f subs r3, #95 ; 0x5f
  5877. 8002a42: fa00 f203 lsl.w r2, r0, r3
  5878. 8002a46: 687b ldr r3, [r7, #4]
  5879. 8002a48: 681b ldr r3, [r3, #0]
  5880. 8002a4a: 430a orrs r2, r1
  5881. 8002a4c: 635a str r2, [r3, #52] ; 0x34
  5882. 8002a4e: e01b b.n 8002a88 <HAL_ADC_ConfigChannel+0x168>
  5883. ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) );
  5884. }
  5885. /* For Rank 25 to 28 */
  5886. else
  5887. {
  5888. MODIFY_REG(hadc->Instance->SQR1,
  5889. 8002a50: 687b ldr r3, [r7, #4]
  5890. 8002a52: 681b ldr r3, [r3, #0]
  5891. 8002a54: 6b19 ldr r1, [r3, #48] ; 0x30
  5892. 8002a56: 683b ldr r3, [r7, #0]
  5893. 8002a58: 685a ldr r2, [r3, #4]
  5894. 8002a5a: 4613 mov r3, r2
  5895. 8002a5c: 009b lsls r3, r3, #2
  5896. 8002a5e: 4413 add r3, r2
  5897. 8002a60: 3b7d subs r3, #125 ; 0x7d
  5898. 8002a62: 221f movs r2, #31
  5899. 8002a64: fa02 f303 lsl.w r3, r2, r3
  5900. 8002a68: 43db mvns r3, r3
  5901. 8002a6a: 4019 ands r1, r3
  5902. 8002a6c: 683b ldr r3, [r7, #0]
  5903. 8002a6e: 6818 ldr r0, [r3, #0]
  5904. 8002a70: 683b ldr r3, [r7, #0]
  5905. 8002a72: 685a ldr r2, [r3, #4]
  5906. 8002a74: 4613 mov r3, r2
  5907. 8002a76: 009b lsls r3, r3, #2
  5908. 8002a78: 4413 add r3, r2
  5909. 8002a7a: 3b7d subs r3, #125 ; 0x7d
  5910. 8002a7c: fa00 f203 lsl.w r2, r0, r3
  5911. 8002a80: 687b ldr r3, [r7, #4]
  5912. 8002a82: 681b ldr r3, [r3, #0]
  5913. 8002a84: 430a orrs r2, r1
  5914. 8002a86: 631a str r2, [r3, #48] ; 0x30
  5915. }
  5916. /* Channel sampling time configuration */
  5917. /* For channels 0 to 9 */
  5918. if (sConfig->Channel < ADC_CHANNEL_10)
  5919. 8002a88: 683b ldr r3, [r7, #0]
  5920. 8002a8a: 681b ldr r3, [r3, #0]
  5921. 8002a8c: 2b09 cmp r3, #9
  5922. 8002a8e: d81a bhi.n 8002ac6 <HAL_ADC_ConfigChannel+0x1a6>
  5923. {
  5924. MODIFY_REG(hadc->Instance->SMPR3,
  5925. 8002a90: 687b ldr r3, [r7, #4]
  5926. 8002a92: 681b ldr r3, [r3, #0]
  5927. 8002a94: 6959 ldr r1, [r3, #20]
  5928. 8002a96: 683b ldr r3, [r7, #0]
  5929. 8002a98: 681a ldr r2, [r3, #0]
  5930. 8002a9a: 4613 mov r3, r2
  5931. 8002a9c: 005b lsls r3, r3, #1
  5932. 8002a9e: 4413 add r3, r2
  5933. 8002aa0: 2207 movs r2, #7
  5934. 8002aa2: fa02 f303 lsl.w r3, r2, r3
  5935. 8002aa6: 43db mvns r3, r3
  5936. 8002aa8: 4019 ands r1, r3
  5937. 8002aaa: 683b ldr r3, [r7, #0]
  5938. 8002aac: 6898 ldr r0, [r3, #8]
  5939. 8002aae: 683b ldr r3, [r7, #0]
  5940. 8002ab0: 681a ldr r2, [r3, #0]
  5941. 8002ab2: 4613 mov r3, r2
  5942. 8002ab4: 005b lsls r3, r3, #1
  5943. 8002ab6: 4413 add r3, r2
  5944. 8002ab8: fa00 f203 lsl.w r2, r0, r3
  5945. 8002abc: 687b ldr r3, [r7, #4]
  5946. 8002abe: 681b ldr r3, [r3, #0]
  5947. 8002ac0: 430a orrs r2, r1
  5948. 8002ac2: 615a str r2, [r3, #20]
  5949. 8002ac4: e042 b.n 8002b4c <HAL_ADC_ConfigChannel+0x22c>
  5950. ADC_SMPR3(ADC_SMPR3_SMP0, sConfig->Channel),
  5951. ADC_SMPR3(sConfig->SamplingTime, sConfig->Channel) );
  5952. }
  5953. /* For channels 10 to 19 */
  5954. else if (sConfig->Channel < ADC_CHANNEL_20)
  5955. 8002ac6: 683b ldr r3, [r7, #0]
  5956. 8002ac8: 681b ldr r3, [r3, #0]
  5957. 8002aca: 2b13 cmp r3, #19
  5958. 8002acc: d81c bhi.n 8002b08 <HAL_ADC_ConfigChannel+0x1e8>
  5959. {
  5960. MODIFY_REG(hadc->Instance->SMPR2,
  5961. 8002ace: 687b ldr r3, [r7, #4]
  5962. 8002ad0: 681b ldr r3, [r3, #0]
  5963. 8002ad2: 6919 ldr r1, [r3, #16]
  5964. 8002ad4: 683b ldr r3, [r7, #0]
  5965. 8002ad6: 681a ldr r2, [r3, #0]
  5966. 8002ad8: 4613 mov r3, r2
  5967. 8002ada: 005b lsls r3, r3, #1
  5968. 8002adc: 4413 add r3, r2
  5969. 8002ade: 3b1e subs r3, #30
  5970. 8002ae0: 2207 movs r2, #7
  5971. 8002ae2: fa02 f303 lsl.w r3, r2, r3
  5972. 8002ae6: 43db mvns r3, r3
  5973. 8002ae8: 4019 ands r1, r3
  5974. 8002aea: 683b ldr r3, [r7, #0]
  5975. 8002aec: 6898 ldr r0, [r3, #8]
  5976. 8002aee: 683b ldr r3, [r7, #0]
  5977. 8002af0: 681a ldr r2, [r3, #0]
  5978. 8002af2: 4613 mov r3, r2
  5979. 8002af4: 005b lsls r3, r3, #1
  5980. 8002af6: 4413 add r3, r2
  5981. 8002af8: 3b1e subs r3, #30
  5982. 8002afa: fa00 f203 lsl.w r2, r0, r3
  5983. 8002afe: 687b ldr r3, [r7, #4]
  5984. 8002b00: 681b ldr r3, [r3, #0]
  5985. 8002b02: 430a orrs r2, r1
  5986. 8002b04: 611a str r2, [r3, #16]
  5987. 8002b06: e021 b.n 8002b4c <HAL_ADC_ConfigChannel+0x22c>
  5988. ADC_SMPR2(ADC_SMPR2_SMP10, sConfig->Channel),
  5989. ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) );
  5990. }
  5991. /* For channels 20 to 26 for devices Cat.1, Cat.2, Cat.3 */
  5992. /* For channels 20 to 29 for devices Cat4, Cat.5 */
  5993. else if (sConfig->Channel <= ADC_SMPR1_CHANNEL_MAX)
  5994. 8002b08: 683b ldr r3, [r7, #0]
  5995. 8002b0a: 681b ldr r3, [r3, #0]
  5996. 8002b0c: 2b1a cmp r3, #26
  5997. 8002b0e: d81c bhi.n 8002b4a <HAL_ADC_ConfigChannel+0x22a>
  5998. {
  5999. MODIFY_REG(hadc->Instance->SMPR1,
  6000. 8002b10: 687b ldr r3, [r7, #4]
  6001. 8002b12: 681b ldr r3, [r3, #0]
  6002. 8002b14: 68d9 ldr r1, [r3, #12]
  6003. 8002b16: 683b ldr r3, [r7, #0]
  6004. 8002b18: 681a ldr r2, [r3, #0]
  6005. 8002b1a: 4613 mov r3, r2
  6006. 8002b1c: 005b lsls r3, r3, #1
  6007. 8002b1e: 4413 add r3, r2
  6008. 8002b20: 3b3c subs r3, #60 ; 0x3c
  6009. 8002b22: 2207 movs r2, #7
  6010. 8002b24: fa02 f303 lsl.w r3, r2, r3
  6011. 8002b28: 43db mvns r3, r3
  6012. 8002b2a: 4019 ands r1, r3
  6013. 8002b2c: 683b ldr r3, [r7, #0]
  6014. 8002b2e: 6898 ldr r0, [r3, #8]
  6015. 8002b30: 683b ldr r3, [r7, #0]
  6016. 8002b32: 681a ldr r2, [r3, #0]
  6017. 8002b34: 4613 mov r3, r2
  6018. 8002b36: 005b lsls r3, r3, #1
  6019. 8002b38: 4413 add r3, r2
  6020. 8002b3a: 3b3c subs r3, #60 ; 0x3c
  6021. 8002b3c: fa00 f203 lsl.w r2, r0, r3
  6022. 8002b40: 687b ldr r3, [r7, #4]
  6023. 8002b42: 681b ldr r3, [r3, #0]
  6024. 8002b44: 430a orrs r2, r1
  6025. 8002b46: 60da str r2, [r3, #12]
  6026. 8002b48: e000 b.n 8002b4c <HAL_ADC_ConfigChannel+0x22c>
  6027. ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) );
  6028. }
  6029. /* For channels 30 to 31 for devices Cat4, Cat.5 */
  6030. else
  6031. {
  6032. ADC_SMPR0_CHANNEL_SET(hadc, sConfig->SamplingTime, sConfig->Channel);
  6033. 8002b4a: bf00 nop
  6034. }
  6035. /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */
  6036. /* and VREFINT measurement path. */
  6037. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  6038. 8002b4c: 683b ldr r3, [r7, #0]
  6039. 8002b4e: 681b ldr r3, [r3, #0]
  6040. 8002b50: 2b10 cmp r3, #16
  6041. 8002b52: d003 beq.n 8002b5c <HAL_ADC_ConfigChannel+0x23c>
  6042. (sConfig->Channel == ADC_CHANNEL_VREFINT) )
  6043. 8002b54: 683b ldr r3, [r7, #0]
  6044. 8002b56: 681b ldr r3, [r3, #0]
  6045. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  6046. 8002b58: 2b11 cmp r3, #17
  6047. 8002b5a: d121 bne.n 8002ba0 <HAL_ADC_ConfigChannel+0x280>
  6048. {
  6049. if (READ_BIT(ADC->CCR, ADC_CCR_TSVREFE) == RESET)
  6050. 8002b5c: 4b15 ldr r3, [pc, #84] ; (8002bb4 <HAL_ADC_ConfigChannel+0x294>)
  6051. 8002b5e: 685b ldr r3, [r3, #4]
  6052. 8002b60: f403 0300 and.w r3, r3, #8388608 ; 0x800000
  6053. 8002b64: 2b00 cmp r3, #0
  6054. 8002b66: d11b bne.n 8002ba0 <HAL_ADC_ConfigChannel+0x280>
  6055. {
  6056. SET_BIT(ADC->CCR, ADC_CCR_TSVREFE);
  6057. 8002b68: 4b12 ldr r3, [pc, #72] ; (8002bb4 <HAL_ADC_ConfigChannel+0x294>)
  6058. 8002b6a: 685b ldr r3, [r3, #4]
  6059. 8002b6c: 4a11 ldr r2, [pc, #68] ; (8002bb4 <HAL_ADC_ConfigChannel+0x294>)
  6060. 8002b6e: f443 0300 orr.w r3, r3, #8388608 ; 0x800000
  6061. 8002b72: 6053 str r3, [r2, #4]
  6062. if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR)
  6063. 8002b74: 683b ldr r3, [r7, #0]
  6064. 8002b76: 681b ldr r3, [r3, #0]
  6065. 8002b78: 2b10 cmp r3, #16
  6066. 8002b7a: d111 bne.n 8002ba0 <HAL_ADC_ConfigChannel+0x280>
  6067. {
  6068. /* Delay for temperature sensor stabilization time */
  6069. /* Compute number of CPU cycles to wait for */
  6070. wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000));
  6071. 8002b7c: 4b0e ldr r3, [pc, #56] ; (8002bb8 <HAL_ADC_ConfigChannel+0x298>)
  6072. 8002b7e: 681b ldr r3, [r3, #0]
  6073. 8002b80: 4a0e ldr r2, [pc, #56] ; (8002bbc <HAL_ADC_ConfigChannel+0x29c>)
  6074. 8002b82: fba2 2303 umull r2, r3, r2, r3
  6075. 8002b86: 0c9a lsrs r2, r3, #18
  6076. 8002b88: 4613 mov r3, r2
  6077. 8002b8a: 009b lsls r3, r3, #2
  6078. 8002b8c: 4413 add r3, r2
  6079. 8002b8e: 005b lsls r3, r3, #1
  6080. 8002b90: 60bb str r3, [r7, #8]
  6081. while(wait_loop_index != 0)
  6082. 8002b92: e002 b.n 8002b9a <HAL_ADC_ConfigChannel+0x27a>
  6083. {
  6084. wait_loop_index--;
  6085. 8002b94: 68bb ldr r3, [r7, #8]
  6086. 8002b96: 3b01 subs r3, #1
  6087. 8002b98: 60bb str r3, [r7, #8]
  6088. while(wait_loop_index != 0)
  6089. 8002b9a: 68bb ldr r3, [r7, #8]
  6090. 8002b9c: 2b00 cmp r3, #0
  6091. 8002b9e: d1f9 bne.n 8002b94 <HAL_ADC_ConfigChannel+0x274>
  6092. }
  6093. }
  6094. }
  6095. /* Process unlocked */
  6096. __HAL_UNLOCK(hadc);
  6097. 8002ba0: 687b ldr r3, [r7, #4]
  6098. 8002ba2: 2200 movs r2, #0
  6099. 8002ba4: f883 2048 strb.w r2, [r3, #72] ; 0x48
  6100. /* Return function status */
  6101. return tmp_hal_status;
  6102. 8002ba8: 7bfb ldrb r3, [r7, #15]
  6103. }
  6104. 8002baa: 4618 mov r0, r3
  6105. 8002bac: 3714 adds r7, #20
  6106. 8002bae: 46bd mov sp, r7
  6107. 8002bb0: bc80 pop {r7}
  6108. 8002bb2: 4770 bx lr
  6109. 8002bb4: 40012700 .word 0x40012700
  6110. 8002bb8: 20000000 .word 0x20000000
  6111. 8002bbc: 431bde83 .word 0x431bde83
  6112. 08002bc0 <ADC_Enable>:
  6113. * "if (hadc->Init.LowPowerAutoPowerOff != ENABLE)".
  6114. * @param hadc ADC handle
  6115. * @retval HAL status.
  6116. */
  6117. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
  6118. {
  6119. 8002bc0: b580 push {r7, lr}
  6120. 8002bc2: b084 sub sp, #16
  6121. 8002bc4: af00 add r7, sp, #0
  6122. 8002bc6: 6078 str r0, [r7, #4]
  6123. uint32_t tickstart = 0;
  6124. 8002bc8: 2300 movs r3, #0
  6125. 8002bca: 60fb str r3, [r7, #12]
  6126. __IO uint32_t wait_loop_index = 0;
  6127. 8002bcc: 2300 movs r3, #0
  6128. 8002bce: 60bb str r3, [r7, #8]
  6129. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  6130. /* enabling phase not yet completed: flag ADC ready not yet set). */
  6131. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  6132. /* causes: ADC clock not running, ...). */
  6133. if (ADC_IS_ENABLE(hadc) == RESET)
  6134. 8002bd0: 687b ldr r3, [r7, #4]
  6135. 8002bd2: 681b ldr r3, [r3, #0]
  6136. 8002bd4: 681b ldr r3, [r3, #0]
  6137. 8002bd6: f003 0340 and.w r3, r3, #64 ; 0x40
  6138. 8002bda: 2b40 cmp r3, #64 ; 0x40
  6139. 8002bdc: d043 beq.n 8002c66 <ADC_Enable+0xa6>
  6140. {
  6141. /* Enable the Peripheral */
  6142. __HAL_ADC_ENABLE(hadc);
  6143. 8002bde: 687b ldr r3, [r7, #4]
  6144. 8002be0: 681b ldr r3, [r3, #0]
  6145. 8002be2: 689a ldr r2, [r3, #8]
  6146. 8002be4: 687b ldr r3, [r7, #4]
  6147. 8002be6: 681b ldr r3, [r3, #0]
  6148. 8002be8: f042 0201 orr.w r2, r2, #1
  6149. 8002bec: 609a str r2, [r3, #8]
  6150. /* Delay for ADC stabilization time */
  6151. /* Compute number of CPU cycles to wait for */
  6152. wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000));
  6153. 8002bee: 4b20 ldr r3, [pc, #128] ; (8002c70 <ADC_Enable+0xb0>)
  6154. 8002bf0: 681b ldr r3, [r3, #0]
  6155. 8002bf2: 4a20 ldr r2, [pc, #128] ; (8002c74 <ADC_Enable+0xb4>)
  6156. 8002bf4: fba2 2303 umull r2, r3, r2, r3
  6157. 8002bf8: 0c9a lsrs r2, r3, #18
  6158. 8002bfa: 4613 mov r3, r2
  6159. 8002bfc: 005b lsls r3, r3, #1
  6160. 8002bfe: 4413 add r3, r2
  6161. 8002c00: 60bb str r3, [r7, #8]
  6162. while(wait_loop_index != 0)
  6163. 8002c02: e002 b.n 8002c0a <ADC_Enable+0x4a>
  6164. {
  6165. wait_loop_index--;
  6166. 8002c04: 68bb ldr r3, [r7, #8]
  6167. 8002c06: 3b01 subs r3, #1
  6168. 8002c08: 60bb str r3, [r7, #8]
  6169. while(wait_loop_index != 0)
  6170. 8002c0a: 68bb ldr r3, [r7, #8]
  6171. 8002c0c: 2b00 cmp r3, #0
  6172. 8002c0e: d1f9 bne.n 8002c04 <ADC_Enable+0x44>
  6173. }
  6174. /* Get tick count */
  6175. tickstart = HAL_GetTick();
  6176. 8002c10: f7ff fc1a bl 8002448 <HAL_GetTick>
  6177. 8002c14: 60f8 str r0, [r7, #12]
  6178. /* Wait for ADC effectively enabled */
  6179. while(ADC_IS_ENABLE(hadc) == RESET)
  6180. 8002c16: e01f b.n 8002c58 <ADC_Enable+0x98>
  6181. {
  6182. if((HAL_GetTick() - tickstart ) > ADC_ENABLE_TIMEOUT)
  6183. 8002c18: f7ff fc16 bl 8002448 <HAL_GetTick>
  6184. 8002c1c: 4602 mov r2, r0
  6185. 8002c1e: 68fb ldr r3, [r7, #12]
  6186. 8002c20: 1ad3 subs r3, r2, r3
  6187. 8002c22: 2b02 cmp r3, #2
  6188. 8002c24: d918 bls.n 8002c58 <ADC_Enable+0x98>
  6189. {
  6190. /* New check to avoid false timeout detection in case of preemption */
  6191. if(ADC_IS_ENABLE(hadc) == RESET)
  6192. 8002c26: 687b ldr r3, [r7, #4]
  6193. 8002c28: 681b ldr r3, [r3, #0]
  6194. 8002c2a: 681b ldr r3, [r3, #0]
  6195. 8002c2c: f003 0340 and.w r3, r3, #64 ; 0x40
  6196. 8002c30: 2b40 cmp r3, #64 ; 0x40
  6197. 8002c32: d011 beq.n 8002c58 <ADC_Enable+0x98>
  6198. {
  6199. /* Update ADC state machine to error */
  6200. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  6201. 8002c34: 687b ldr r3, [r7, #4]
  6202. 8002c36: 6cdb ldr r3, [r3, #76] ; 0x4c
  6203. 8002c38: f043 0210 orr.w r2, r3, #16
  6204. 8002c3c: 687b ldr r3, [r7, #4]
  6205. 8002c3e: 64da str r2, [r3, #76] ; 0x4c
  6206. /* Set ADC error code to ADC IP internal error */
  6207. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  6208. 8002c40: 687b ldr r3, [r7, #4]
  6209. 8002c42: 6d1b ldr r3, [r3, #80] ; 0x50
  6210. 8002c44: f043 0201 orr.w r2, r3, #1
  6211. 8002c48: 687b ldr r3, [r7, #4]
  6212. 8002c4a: 651a str r2, [r3, #80] ; 0x50
  6213. /* Process unlocked */
  6214. __HAL_UNLOCK(hadc);
  6215. 8002c4c: 687b ldr r3, [r7, #4]
  6216. 8002c4e: 2200 movs r2, #0
  6217. 8002c50: f883 2048 strb.w r2, [r3, #72] ; 0x48
  6218. return HAL_ERROR;
  6219. 8002c54: 2301 movs r3, #1
  6220. 8002c56: e007 b.n 8002c68 <ADC_Enable+0xa8>
  6221. while(ADC_IS_ENABLE(hadc) == RESET)
  6222. 8002c58: 687b ldr r3, [r7, #4]
  6223. 8002c5a: 681b ldr r3, [r3, #0]
  6224. 8002c5c: 681b ldr r3, [r3, #0]
  6225. 8002c5e: f003 0340 and.w r3, r3, #64 ; 0x40
  6226. 8002c62: 2b40 cmp r3, #64 ; 0x40
  6227. 8002c64: d1d8 bne.n 8002c18 <ADC_Enable+0x58>
  6228. }
  6229. }
  6230. }
  6231. /* Return HAL status */
  6232. return HAL_OK;
  6233. 8002c66: 2300 movs r3, #0
  6234. }
  6235. 8002c68: 4618 mov r0, r3
  6236. 8002c6a: 3710 adds r7, #16
  6237. 8002c6c: 46bd mov sp, r7
  6238. 8002c6e: bd80 pop {r7, pc}
  6239. 8002c70: 20000000 .word 0x20000000
  6240. 8002c74: 431bde83 .word 0x431bde83
  6241. 08002c78 <ADC_ConversionStop_Disable>:
  6242. * stopped to disable the ADC.
  6243. * @param hadc ADC handle
  6244. * @retval HAL status.
  6245. */
  6246. HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc)
  6247. {
  6248. 8002c78: b580 push {r7, lr}
  6249. 8002c7a: b084 sub sp, #16
  6250. 8002c7c: af00 add r7, sp, #0
  6251. 8002c7e: 6078 str r0, [r7, #4]
  6252. uint32_t tickstart = 0;
  6253. 8002c80: 2300 movs r3, #0
  6254. 8002c82: 60fb str r3, [r7, #12]
  6255. /* Verification if ADC is not already disabled */
  6256. if (ADC_IS_ENABLE(hadc) != RESET)
  6257. 8002c84: 687b ldr r3, [r7, #4]
  6258. 8002c86: 681b ldr r3, [r3, #0]
  6259. 8002c88: 681b ldr r3, [r3, #0]
  6260. 8002c8a: f003 0340 and.w r3, r3, #64 ; 0x40
  6261. 8002c8e: 2b40 cmp r3, #64 ; 0x40
  6262. 8002c90: d12e bne.n 8002cf0 <ADC_ConversionStop_Disable+0x78>
  6263. {
  6264. /* Disable the ADC peripheral */
  6265. __HAL_ADC_DISABLE(hadc);
  6266. 8002c92: 687b ldr r3, [r7, #4]
  6267. 8002c94: 681b ldr r3, [r3, #0]
  6268. 8002c96: 689a ldr r2, [r3, #8]
  6269. 8002c98: 687b ldr r3, [r7, #4]
  6270. 8002c9a: 681b ldr r3, [r3, #0]
  6271. 8002c9c: f022 0201 bic.w r2, r2, #1
  6272. 8002ca0: 609a str r2, [r3, #8]
  6273. /* Get tick count */
  6274. tickstart = HAL_GetTick();
  6275. 8002ca2: f7ff fbd1 bl 8002448 <HAL_GetTick>
  6276. 8002ca6: 60f8 str r0, [r7, #12]
  6277. /* Wait for ADC effectively disabled */
  6278. while(ADC_IS_ENABLE(hadc) != RESET)
  6279. 8002ca8: e01b b.n 8002ce2 <ADC_ConversionStop_Disable+0x6a>
  6280. {
  6281. if((HAL_GetTick() - tickstart ) > ADC_DISABLE_TIMEOUT)
  6282. 8002caa: f7ff fbcd bl 8002448 <HAL_GetTick>
  6283. 8002cae: 4602 mov r2, r0
  6284. 8002cb0: 68fb ldr r3, [r7, #12]
  6285. 8002cb2: 1ad3 subs r3, r2, r3
  6286. 8002cb4: 2b02 cmp r3, #2
  6287. 8002cb6: d914 bls.n 8002ce2 <ADC_ConversionStop_Disable+0x6a>
  6288. {
  6289. /* New check to avoid false timeout detection in case of preemption */
  6290. if(ADC_IS_ENABLE(hadc) != RESET)
  6291. 8002cb8: 687b ldr r3, [r7, #4]
  6292. 8002cba: 681b ldr r3, [r3, #0]
  6293. 8002cbc: 681b ldr r3, [r3, #0]
  6294. 8002cbe: f003 0340 and.w r3, r3, #64 ; 0x40
  6295. 8002cc2: 2b40 cmp r3, #64 ; 0x40
  6296. 8002cc4: d10d bne.n 8002ce2 <ADC_ConversionStop_Disable+0x6a>
  6297. {
  6298. /* Update ADC state machine to error */
  6299. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  6300. 8002cc6: 687b ldr r3, [r7, #4]
  6301. 8002cc8: 6cdb ldr r3, [r3, #76] ; 0x4c
  6302. 8002cca: f043 0210 orr.w r2, r3, #16
  6303. 8002cce: 687b ldr r3, [r7, #4]
  6304. 8002cd0: 64da str r2, [r3, #76] ; 0x4c
  6305. /* Set ADC error code to ADC IP internal error */
  6306. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  6307. 8002cd2: 687b ldr r3, [r7, #4]
  6308. 8002cd4: 6d1b ldr r3, [r3, #80] ; 0x50
  6309. 8002cd6: f043 0201 orr.w r2, r3, #1
  6310. 8002cda: 687b ldr r3, [r7, #4]
  6311. 8002cdc: 651a str r2, [r3, #80] ; 0x50
  6312. return HAL_ERROR;
  6313. 8002cde: 2301 movs r3, #1
  6314. 8002ce0: e007 b.n 8002cf2 <ADC_ConversionStop_Disable+0x7a>
  6315. while(ADC_IS_ENABLE(hadc) != RESET)
  6316. 8002ce2: 687b ldr r3, [r7, #4]
  6317. 8002ce4: 681b ldr r3, [r3, #0]
  6318. 8002ce6: 681b ldr r3, [r3, #0]
  6319. 8002ce8: f003 0340 and.w r3, r3, #64 ; 0x40
  6320. 8002cec: 2b40 cmp r3, #64 ; 0x40
  6321. 8002cee: d0dc beq.n 8002caa <ADC_ConversionStop_Disable+0x32>
  6322. }
  6323. }
  6324. }
  6325. /* Return HAL status */
  6326. return HAL_OK;
  6327. 8002cf0: 2300 movs r3, #0
  6328. }
  6329. 8002cf2: 4618 mov r0, r3
  6330. 8002cf4: 3710 adds r7, #16
  6331. 8002cf6: 46bd mov sp, r7
  6332. 8002cf8: bd80 pop {r7, pc}
  6333. 08002cfa <ADC_DMAConvCplt>:
  6334. * @brief DMA transfer complete callback.
  6335. * @param hdma pointer to DMA handle.
  6336. * @retval None
  6337. */
  6338. static void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  6339. {
  6340. 8002cfa: b580 push {r7, lr}
  6341. 8002cfc: b084 sub sp, #16
  6342. 8002cfe: af00 add r7, sp, #0
  6343. 8002d00: 6078 str r0, [r7, #4]
  6344. /* Retrieve ADC handle corresponding to current DMA handle */
  6345. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  6346. 8002d02: 687b ldr r3, [r7, #4]
  6347. 8002d04: 6a5b ldr r3, [r3, #36] ; 0x24
  6348. 8002d06: 60fb str r3, [r7, #12]
  6349. /* Update state machine on conversion status if not in error state */
  6350. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA))
  6351. 8002d08: 68fb ldr r3, [r7, #12]
  6352. 8002d0a: 6cdb ldr r3, [r3, #76] ; 0x4c
  6353. 8002d0c: f003 0350 and.w r3, r3, #80 ; 0x50
  6354. 8002d10: 2b00 cmp r3, #0
  6355. 8002d12: d13d bne.n 8002d90 <ADC_DMAConvCplt+0x96>
  6356. {
  6357. /* Update ADC state machine */
  6358. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  6359. 8002d14: 68fb ldr r3, [r7, #12]
  6360. 8002d16: 6cdb ldr r3, [r3, #76] ; 0x4c
  6361. 8002d18: f443 7200 orr.w r2, r3, #512 ; 0x200
  6362. 8002d1c: 68fb ldr r3, [r7, #12]
  6363. 8002d1e: 64da str r2, [r3, #76] ; 0x4c
  6364. /* by external trigger, continuous mode or scan sequence on going. */
  6365. /* Note: On STM32L1, there is no independent flag of end of sequence. */
  6366. /* The test of scan sequence on going is done either with scan */
  6367. /* sequence disabled or with end of conversion flag set to */
  6368. /* of end of sequence. */
  6369. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  6370. 8002d20: 68fb ldr r3, [r7, #12]
  6371. 8002d22: 681b ldr r3, [r3, #0]
  6372. 8002d24: 689b ldr r3, [r3, #8]
  6373. 8002d26: f003 5340 and.w r3, r3, #805306368 ; 0x30000000
  6374. 8002d2a: 2b00 cmp r3, #0
  6375. 8002d2c: d12c bne.n 8002d88 <ADC_DMAConvCplt+0x8e>
  6376. (hadc->Init.ContinuousConvMode == DISABLE) &&
  6377. 8002d2e: 68fb ldr r3, [r7, #12]
  6378. 8002d30: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  6379. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  6380. 8002d34: 2b00 cmp r3, #0
  6381. 8002d36: d127 bne.n 8002d88 <ADC_DMAConvCplt+0x8e>
  6382. (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) ||
  6383. 8002d38: 68fb ldr r3, [r7, #12]
  6384. 8002d3a: 681b ldr r3, [r3, #0]
  6385. 8002d3c: 6b1b ldr r3, [r3, #48] ; 0x30
  6386. 8002d3e: f003 73f8 and.w r3, r3, #32505856 ; 0x1f00000
  6387. (hadc->Init.ContinuousConvMode == DISABLE) &&
  6388. 8002d42: 2b00 cmp r3, #0
  6389. 8002d44: d006 beq.n 8002d54 <ADC_DMAConvCplt+0x5a>
  6390. HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) )
  6391. 8002d46: 68fb ldr r3, [r7, #12]
  6392. 8002d48: 681b ldr r3, [r3, #0]
  6393. 8002d4a: 689b ldr r3, [r3, #8]
  6394. 8002d4c: f403 6380 and.w r3, r3, #1024 ; 0x400
  6395. (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) ||
  6396. 8002d50: 2b00 cmp r3, #0
  6397. 8002d52: d119 bne.n 8002d88 <ADC_DMAConvCplt+0x8e>
  6398. {
  6399. /* Disable ADC end of single conversion interrupt on group regular */
  6400. /* Note: Overrun interrupt was enabled with EOC interrupt in */
  6401. /* HAL_ADC_Start_IT(), but is not disabled here because can be used */
  6402. /* by overrun IRQ process below. */
  6403. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC);
  6404. 8002d54: 68fb ldr r3, [r7, #12]
  6405. 8002d56: 681b ldr r3, [r3, #0]
  6406. 8002d58: 685a ldr r2, [r3, #4]
  6407. 8002d5a: 68fb ldr r3, [r7, #12]
  6408. 8002d5c: 681b ldr r3, [r3, #0]
  6409. 8002d5e: f022 0220 bic.w r2, r2, #32
  6410. 8002d62: 605a str r2, [r3, #4]
  6411. /* Set ADC state */
  6412. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  6413. 8002d64: 68fb ldr r3, [r7, #12]
  6414. 8002d66: 6cdb ldr r3, [r3, #76] ; 0x4c
  6415. 8002d68: f423 7280 bic.w r2, r3, #256 ; 0x100
  6416. 8002d6c: 68fb ldr r3, [r7, #12]
  6417. 8002d6e: 64da str r2, [r3, #76] ; 0x4c
  6418. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  6419. 8002d70: 68fb ldr r3, [r7, #12]
  6420. 8002d72: 6cdb ldr r3, [r3, #76] ; 0x4c
  6421. 8002d74: f403 5380 and.w r3, r3, #4096 ; 0x1000
  6422. 8002d78: 2b00 cmp r3, #0
  6423. 8002d7a: d105 bne.n 8002d88 <ADC_DMAConvCplt+0x8e>
  6424. {
  6425. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  6426. 8002d7c: 68fb ldr r3, [r7, #12]
  6427. 8002d7e: 6cdb ldr r3, [r3, #76] ; 0x4c
  6428. 8002d80: f043 0201 orr.w r2, r3, #1
  6429. 8002d84: 68fb ldr r3, [r7, #12]
  6430. 8002d86: 64da str r2, [r3, #76] ; 0x4c
  6431. /* Conversion complete callback */
  6432. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  6433. hadc->ConvCpltCallback(hadc);
  6434. #else
  6435. HAL_ADC_ConvCpltCallback(hadc);
  6436. 8002d88: 68f8 ldr r0, [r7, #12]
  6437. 8002d8a: f7ff fdae bl 80028ea <HAL_ADC_ConvCpltCallback>
  6438. else
  6439. {
  6440. /* Call DMA error callback */
  6441. hadc->DMA_Handle->XferErrorCallback(hdma);
  6442. }
  6443. }
  6444. 8002d8e: e004 b.n 8002d9a <ADC_DMAConvCplt+0xa0>
  6445. hadc->DMA_Handle->XferErrorCallback(hdma);
  6446. 8002d90: 68fb ldr r3, [r7, #12]
  6447. 8002d92: 6c5b ldr r3, [r3, #68] ; 0x44
  6448. 8002d94: 6b1b ldr r3, [r3, #48] ; 0x30
  6449. 8002d96: 6878 ldr r0, [r7, #4]
  6450. 8002d98: 4798 blx r3
  6451. }
  6452. 8002d9a: bf00 nop
  6453. 8002d9c: 3710 adds r7, #16
  6454. 8002d9e: 46bd mov sp, r7
  6455. 8002da0: bd80 pop {r7, pc}
  6456. 08002da2 <ADC_DMAHalfConvCplt>:
  6457. * @brief DMA half transfer complete callback.
  6458. * @param hdma pointer to DMA handle.
  6459. * @retval None
  6460. */
  6461. static void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  6462. {
  6463. 8002da2: b580 push {r7, lr}
  6464. 8002da4: b084 sub sp, #16
  6465. 8002da6: af00 add r7, sp, #0
  6466. 8002da8: 6078 str r0, [r7, #4]
  6467. /* Retrieve ADC handle corresponding to current DMA handle */
  6468. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  6469. 8002daa: 687b ldr r3, [r7, #4]
  6470. 8002dac: 6a5b ldr r3, [r3, #36] ; 0x24
  6471. 8002dae: 60fb str r3, [r7, #12]
  6472. /* Half conversion callback */
  6473. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  6474. hadc->ConvHalfCpltCallback(hadc);
  6475. #else
  6476. HAL_ADC_ConvHalfCpltCallback(hadc);
  6477. 8002db0: 68f8 ldr r0, [r7, #12]
  6478. 8002db2: f7ff fda3 bl 80028fc <HAL_ADC_ConvHalfCpltCallback>
  6479. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  6480. }
  6481. 8002db6: bf00 nop
  6482. 8002db8: 3710 adds r7, #16
  6483. 8002dba: 46bd mov sp, r7
  6484. 8002dbc: bd80 pop {r7, pc}
  6485. 08002dbe <ADC_DMAError>:
  6486. * @brief DMA error callback
  6487. * @param hdma pointer to DMA handle.
  6488. * @retval None
  6489. */
  6490. static void ADC_DMAError(DMA_HandleTypeDef *hdma)
  6491. {
  6492. 8002dbe: b580 push {r7, lr}
  6493. 8002dc0: b084 sub sp, #16
  6494. 8002dc2: af00 add r7, sp, #0
  6495. 8002dc4: 6078 str r0, [r7, #4]
  6496. /* Retrieve ADC handle corresponding to current DMA handle */
  6497. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  6498. 8002dc6: 687b ldr r3, [r7, #4]
  6499. 8002dc8: 6a5b ldr r3, [r3, #36] ; 0x24
  6500. 8002dca: 60fb str r3, [r7, #12]
  6501. /* Set ADC state */
  6502. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  6503. 8002dcc: 68fb ldr r3, [r7, #12]
  6504. 8002dce: 6cdb ldr r3, [r3, #76] ; 0x4c
  6505. 8002dd0: f043 0240 orr.w r2, r3, #64 ; 0x40
  6506. 8002dd4: 68fb ldr r3, [r7, #12]
  6507. 8002dd6: 64da str r2, [r3, #76] ; 0x4c
  6508. /* Set ADC error code to DMA error */
  6509. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  6510. 8002dd8: 68fb ldr r3, [r7, #12]
  6511. 8002dda: 6d1b ldr r3, [r3, #80] ; 0x50
  6512. 8002ddc: f043 0204 orr.w r2, r3, #4
  6513. 8002de0: 68fb ldr r3, [r7, #12]
  6514. 8002de2: 651a str r2, [r3, #80] ; 0x50
  6515. /* Error callback */
  6516. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  6517. hadc->ErrorCallback(hadc);
  6518. #else
  6519. HAL_ADC_ErrorCallback(hadc);
  6520. 8002de4: 68f8 ldr r0, [r7, #12]
  6521. 8002de6: f7ff fd92 bl 800290e <HAL_ADC_ErrorCallback>
  6522. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  6523. }
  6524. 8002dea: bf00 nop
  6525. 8002dec: 3710 adds r7, #16
  6526. 8002dee: 46bd mov sp, r7
  6527. 8002df0: bd80 pop {r7, pc}
  6528. ...
  6529. 08002df4 <HAL_COMP_Init>:
  6530. * To unlock the configuration, perform a system reset.
  6531. * @param hcomp COMP handle
  6532. * @retval HAL status
  6533. */
  6534. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  6535. {
  6536. 8002df4: b580 push {r7, lr}
  6537. 8002df6: b084 sub sp, #16
  6538. 8002df8: af00 add r7, sp, #0
  6539. 8002dfa: 6078 str r0, [r7, #4]
  6540. HAL_StatusTypeDef status = HAL_OK;
  6541. 8002dfc: 2300 movs r3, #0
  6542. 8002dfe: 73fb strb r3, [r7, #15]
  6543. /* Check the COMP handle allocation and lock status */
  6544. if((hcomp == NULL) || ((hcomp->State & COMP_STATE_BIT_LOCK) != RESET))
  6545. 8002e00: 687b ldr r3, [r7, #4]
  6546. 8002e02: 2b00 cmp r3, #0
  6547. 8002e04: d007 beq.n 8002e16 <HAL_COMP_Init+0x22>
  6548. 8002e06: 687b ldr r3, [r7, #4]
  6549. 8002e08: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6550. 8002e0c: b2db uxtb r3, r3
  6551. 8002e0e: f003 0310 and.w r3, r3, #16
  6552. 8002e12: 2b00 cmp r3, #0
  6553. 8002e14: d002 beq.n 8002e1c <HAL_COMP_Init+0x28>
  6554. {
  6555. status = HAL_ERROR;
  6556. 8002e16: 2301 movs r3, #1
  6557. 8002e18: 73fb strb r3, [r7, #15]
  6558. 8002e1a: e09e b.n 8002f5a <HAL_COMP_Init+0x166>
  6559. }
  6560. /* In window mode, non-inverting inputs of the 2 comparators are */
  6561. /* connected together and are using inputs of COMP2 only. If COMP1 is */
  6562. /* selected, this parameter is discarded. */
  6563. if ((hcomp->Init.WindowMode == COMP_WINDOWMODE_DISABLE) ||
  6564. 8002e1c: 687b ldr r3, [r7, #4]
  6565. 8002e1e: 695b ldr r3, [r3, #20]
  6566. 8002e20: 2b00 cmp r3, #0
  6567. assert_param(IS_COMP_NONINVERTINGINPUT(hcomp->Init.NonInvertingInput));
  6568. }
  6569. /* Enable SYSCFG clock and the low level hardware to access comparators */
  6570. if(hcomp->State == HAL_COMP_STATE_RESET)
  6571. 8002e22: 687b ldr r3, [r7, #4]
  6572. 8002e24: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6573. 8002e28: b2db uxtb r3, r3
  6574. 8002e2a: 2b00 cmp r3, #0
  6575. 8002e2c: d112 bne.n 8002e54 <HAL_COMP_Init+0x60>
  6576. {
  6577. /* Allocate lock resource and initialize it */
  6578. hcomp->Lock = HAL_UNLOCKED;
  6579. 8002e2e: 687b ldr r3, [r7, #4]
  6580. 8002e30: 2200 movs r2, #0
  6581. 8002e32: f883 2020 strb.w r2, [r3, #32]
  6582. /* Enable SYSCFG clock to control the routing Interface (RI) */
  6583. __HAL_RCC_SYSCFG_CLK_ENABLE();
  6584. 8002e36: 4b4b ldr r3, [pc, #300] ; (8002f64 <HAL_COMP_Init+0x170>)
  6585. 8002e38: 6a1b ldr r3, [r3, #32]
  6586. 8002e3a: 4a4a ldr r2, [pc, #296] ; (8002f64 <HAL_COMP_Init+0x170>)
  6587. 8002e3c: f043 0301 orr.w r3, r3, #1
  6588. 8002e40: 6213 str r3, [r2, #32]
  6589. 8002e42: 4b48 ldr r3, [pc, #288] ; (8002f64 <HAL_COMP_Init+0x170>)
  6590. 8002e44: 6a1b ldr r3, [r3, #32]
  6591. 8002e46: f003 0301 and.w r3, r3, #1
  6592. 8002e4a: 60bb str r3, [r7, #8]
  6593. 8002e4c: 68bb ldr r3, [r7, #8]
  6594. /* Init the low level hardware */
  6595. hcomp->MspInitCallback(hcomp);
  6596. #else
  6597. /* Init the low level hardware */
  6598. HAL_COMP_MspInit(hcomp);
  6599. 8002e4e: 6878 ldr r0, [r7, #4]
  6600. 8002e50: f7fe ff22 bl 8001c98 <HAL_COMP_MspInit>
  6601. /* - Window mode */
  6602. /* - Mode fast/slow speed */
  6603. /* - Inverting input pull-up/down resistors */
  6604. /* Configuration depending on comparator instance */
  6605. if (hcomp->Instance == COMP1)
  6606. 8002e54: 687b ldr r3, [r7, #4]
  6607. 8002e56: 681b ldr r3, [r3, #0]
  6608. 8002e58: 4a43 ldr r2, [pc, #268] ; (8002f68 <HAL_COMP_Init+0x174>)
  6609. 8002e5a: 4293 cmp r3, r2
  6610. 8002e5c: d109 bne.n 8002e72 <HAL_COMP_Init+0x7e>
  6611. {
  6612. MODIFY_REG(COMP->CSR, COMP_CSR_400KPD | COMP_CSR_10KPD | COMP_CSR_400KPU | COMP_CSR_10KPU,
  6613. 8002e5e: 4b42 ldr r3, [pc, #264] ; (8002f68 <HAL_COMP_Init+0x174>)
  6614. 8002e60: 681b ldr r3, [r3, #0]
  6615. 8002e62: f023 020f bic.w r2, r3, #15
  6616. 8002e66: 687b ldr r3, [r7, #4]
  6617. 8002e68: 69db ldr r3, [r3, #28]
  6618. 8002e6a: 493f ldr r1, [pc, #252] ; (8002f68 <HAL_COMP_Init+0x174>)
  6619. 8002e6c: 4313 orrs r3, r2
  6620. 8002e6e: 600b str r3, [r1, #0]
  6621. 8002e70: e03f b.n 8002ef2 <HAL_COMP_Init+0xfe>
  6622. /* "hcomp->Init.InvertingInput") is configured into function */
  6623. /* "HAL_COMP_Start()" since inverting input selection also */
  6624. /* enables the comparator 2. */
  6625. /* If comparator 2 is already enabled, inverting input is */
  6626. /* reconfigured on the fly. */
  6627. if (__COMP_IS_ENABLED(hcomp) == RESET)
  6628. 8002e72: 687b ldr r3, [r7, #4]
  6629. 8002e74: 681b ldr r3, [r3, #0]
  6630. 8002e76: 4a3c ldr r2, [pc, #240] ; (8002f68 <HAL_COMP_Init+0x174>)
  6631. 8002e78: 4293 cmp r3, r2
  6632. 8002e7a: d109 bne.n 8002e90 <HAL_COMP_Init+0x9c>
  6633. 8002e7c: 4b3a ldr r3, [pc, #232] ; (8002f68 <HAL_COMP_Init+0x174>)
  6634. 8002e7e: 681b ldr r3, [r3, #0]
  6635. 8002e80: f003 0310 and.w r3, r3, #16
  6636. 8002e84: 2b10 cmp r3, #16
  6637. 8002e86: bf14 ite ne
  6638. 8002e88: 2301 movne r3, #1
  6639. 8002e8a: 2300 moveq r3, #0
  6640. 8002e8c: b2db uxtb r3, r3
  6641. 8002e8e: e008 b.n 8002ea2 <HAL_COMP_Init+0xae>
  6642. 8002e90: 4b35 ldr r3, [pc, #212] ; (8002f68 <HAL_COMP_Init+0x174>)
  6643. 8002e92: 681b ldr r3, [r3, #0]
  6644. 8002e94: f403 13e0 and.w r3, r3, #1835008 ; 0x1c0000
  6645. 8002e98: 2b00 cmp r3, #0
  6646. 8002e9a: bf0c ite eq
  6647. 8002e9c: 2301 moveq r3, #1
  6648. 8002e9e: 2300 movne r3, #0
  6649. 8002ea0: b2db uxtb r3, r3
  6650. 8002ea2: 2b00 cmp r3, #0
  6651. 8002ea4: d011 beq.n 8002eca <HAL_COMP_Init+0xd6>
  6652. {
  6653. MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL |
  6654. 8002ea6: 4b30 ldr r3, [pc, #192] ; (8002f68 <HAL_COMP_Init+0x174>)
  6655. 8002ea8: 681b ldr r3, [r3, #0]
  6656. 8002eaa: f423 0362 bic.w r3, r3, #14811136 ; 0xe20000
  6657. 8002eae: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  6658. 8002eb2: 687a ldr r2, [r7, #4]
  6659. 8002eb4: 68d1 ldr r1, [r2, #12]
  6660. 8002eb6: 687a ldr r2, [r7, #4]
  6661. 8002eb8: 6952 ldr r2, [r2, #20]
  6662. 8002eba: 4311 orrs r1, r2
  6663. 8002ebc: 687a ldr r2, [r7, #4]
  6664. 8002ebe: 6912 ldr r2, [r2, #16]
  6665. 8002ec0: 430a orrs r2, r1
  6666. 8002ec2: 4929 ldr r1, [pc, #164] ; (8002f68 <HAL_COMP_Init+0x174>)
  6667. 8002ec4: 4313 orrs r3, r2
  6668. 8002ec6: 600b str r3, [r1, #0]
  6669. 8002ec8: e013 b.n 8002ef2 <HAL_COMP_Init+0xfe>
  6670. hcomp->Init.WindowMode |
  6671. hcomp->Init.Mode );
  6672. }
  6673. else
  6674. {
  6675. MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL |
  6676. 8002eca: 4b27 ldr r3, [pc, #156] ; (8002f68 <HAL_COMP_Init+0x174>)
  6677. 8002ecc: 681b ldr r3, [r3, #0]
  6678. 8002ece: f423 037e bic.w r3, r3, #16646144 ; 0xfe0000
  6679. 8002ed2: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  6680. 8002ed6: 687a ldr r2, [r7, #4]
  6681. 8002ed8: 68d1 ldr r1, [r2, #12]
  6682. 8002eda: 687a ldr r2, [r7, #4]
  6683. 8002edc: 6852 ldr r2, [r2, #4]
  6684. 8002ede: 4311 orrs r1, r2
  6685. 8002ee0: 687a ldr r2, [r7, #4]
  6686. 8002ee2: 6952 ldr r2, [r2, #20]
  6687. 8002ee4: 4311 orrs r1, r2
  6688. 8002ee6: 687a ldr r2, [r7, #4]
  6689. 8002ee8: 6912 ldr r2, [r2, #16]
  6690. 8002eea: 430a orrs r2, r1
  6691. 8002eec: 491e ldr r1, [pc, #120] ; (8002f68 <HAL_COMP_Init+0x174>)
  6692. 8002eee: 4313 orrs r3, r2
  6693. 8002ef0: 600b str r3, [r1, #0]
  6694. }
  6695. }
  6696. else
  6697. #endif
  6698. {
  6699. if (__COMP_ROUTING_INTERFACE_TOBECONFIGURED(hcomp))
  6700. 8002ef2: 687b ldr r3, [r7, #4]
  6701. 8002ef4: 689b ldr r3, [r3, #8]
  6702. 8002ef6: 2b00 cmp r3, #0
  6703. 8002ef8: d025 beq.n 8002f46 <HAL_COMP_Init+0x152>
  6704. {
  6705. if (hcomp->Instance == COMP1)
  6706. 8002efa: 687b ldr r3, [r7, #4]
  6707. 8002efc: 681b ldr r3, [r3, #0]
  6708. 8002efe: 4a1a ldr r2, [pc, #104] ; (8002f68 <HAL_COMP_Init+0x174>)
  6709. 8002f00: 4293 cmp r3, r2
  6710. 8002f02: d10b bne.n 8002f1c <HAL_COMP_Init+0x128>
  6711. {
  6712. /* Enable the switch control mode */
  6713. __HAL_RI_SWITCHCONTROLMODE_ENABLE();
  6714. 8002f04: 4b19 ldr r3, [pc, #100] ; (8002f6c <HAL_COMP_Init+0x178>)
  6715. 8002f06: 685b ldr r3, [r3, #4]
  6716. 8002f08: 4a18 ldr r2, [pc, #96] ; (8002f6c <HAL_COMP_Init+0x178>)
  6717. 8002f0a: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  6718. 8002f0e: 6053 str r3, [r2, #4]
  6719. /* Close the analog switch of ADC switch matrix to COMP1 (ADC */
  6720. /* channel 26: Vcomp) */
  6721. __HAL_RI_IOSWITCH_CLOSE(RI_IOSWITCH_VCOMP);
  6722. 8002f10: 4b16 ldr r3, [pc, #88] ; (8002f6c <HAL_COMP_Init+0x178>)
  6723. 8002f12: 685b ldr r3, [r3, #4]
  6724. 8002f14: 4a15 ldr r2, [pc, #84] ; (8002f6c <HAL_COMP_Init+0x178>)
  6725. 8002f16: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000
  6726. 8002f1a: 6053 str r3, [r2, #4]
  6727. }
  6728. /* Close the I/O analog switch corresponding to comparator */
  6729. /* non-inverting input selected. */
  6730. __HAL_RI_IOSWITCH_CLOSE(hcomp->Init.NonInvertingInput);
  6731. 8002f1c: 687b ldr r3, [r7, #4]
  6732. 8002f1e: 689b ldr r3, [r3, #8]
  6733. 8002f20: 2b00 cmp r3, #0
  6734. 8002f22: da09 bge.n 8002f38 <HAL_COMP_Init+0x144>
  6735. 8002f24: 4b11 ldr r3, [pc, #68] ; (8002f6c <HAL_COMP_Init+0x178>)
  6736. 8002f26: 685a ldr r2, [r3, #4]
  6737. 8002f28: 687b ldr r3, [r7, #4]
  6738. 8002f2a: 689b ldr r3, [r3, #8]
  6739. 8002f2c: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  6740. 8002f30: 490e ldr r1, [pc, #56] ; (8002f6c <HAL_COMP_Init+0x178>)
  6741. 8002f32: 4313 orrs r3, r2
  6742. 8002f34: 604b str r3, [r1, #4]
  6743. 8002f36: e006 b.n 8002f46 <HAL_COMP_Init+0x152>
  6744. 8002f38: 4b0c ldr r3, [pc, #48] ; (8002f6c <HAL_COMP_Init+0x178>)
  6745. 8002f3a: 689a ldr r2, [r3, #8]
  6746. 8002f3c: 687b ldr r3, [r7, #4]
  6747. 8002f3e: 689b ldr r3, [r3, #8]
  6748. 8002f40: 490a ldr r1, [pc, #40] ; (8002f6c <HAL_COMP_Init+0x178>)
  6749. 8002f42: 4313 orrs r3, r2
  6750. 8002f44: 608b str r3, [r1, #8]
  6751. }
  6752. }
  6753. /* Initialize the COMP state*/
  6754. if(hcomp->State == HAL_COMP_STATE_RESET)
  6755. 8002f46: 687b ldr r3, [r7, #4]
  6756. 8002f48: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6757. 8002f4c: b2db uxtb r3, r3
  6758. 8002f4e: 2b00 cmp r3, #0
  6759. 8002f50: d103 bne.n 8002f5a <HAL_COMP_Init+0x166>
  6760. {
  6761. hcomp->State = HAL_COMP_STATE_READY;
  6762. 8002f52: 687b ldr r3, [r7, #4]
  6763. 8002f54: 2201 movs r2, #1
  6764. 8002f56: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6765. }
  6766. }
  6767. return status;
  6768. 8002f5a: 7bfb ldrb r3, [r7, #15]
  6769. }
  6770. 8002f5c: 4618 mov r0, r3
  6771. 8002f5e: 3710 adds r7, #16
  6772. 8002f60: 46bd mov sp, r7
  6773. 8002f62: bd80 pop {r7, pc}
  6774. 8002f64: 40023800 .word 0x40023800
  6775. 8002f68: 40007c00 .word 0x40007c00
  6776. 8002f6c: 40007c04 .word 0x40007c04
  6777. 08002f70 <HAL_COMP_Start>:
  6778. * @brief Start the comparator
  6779. * @param hcomp COMP handle
  6780. * @retval HAL status
  6781. */
  6782. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  6783. {
  6784. 8002f70: b480 push {r7}
  6785. 8002f72: b087 sub sp, #28
  6786. 8002f74: af00 add r7, sp, #0
  6787. 8002f76: 6078 str r0, [r7, #4]
  6788. HAL_StatusTypeDef status = HAL_OK;
  6789. 8002f78: 2300 movs r3, #0
  6790. 8002f7a: 75fb strb r3, [r7, #23]
  6791. uint32_t wait_loop_cycles = 0;
  6792. 8002f7c: 2300 movs r3, #0
  6793. 8002f7e: 613b str r3, [r7, #16]
  6794. __IO uint32_t wait_loop_index = 0;
  6795. 8002f80: 2300 movs r3, #0
  6796. 8002f82: 60fb str r3, [r7, #12]
  6797. /* Check the COMP handle allocation and lock status */
  6798. if((hcomp == NULL) || ((hcomp->State & COMP_STATE_BIT_LOCK) != RESET))
  6799. 8002f84: 687b ldr r3, [r7, #4]
  6800. 8002f86: 2b00 cmp r3, #0
  6801. 8002f88: d007 beq.n 8002f9a <HAL_COMP_Start+0x2a>
  6802. 8002f8a: 687b ldr r3, [r7, #4]
  6803. 8002f8c: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6804. 8002f90: b2db uxtb r3, r3
  6805. 8002f92: f003 0310 and.w r3, r3, #16
  6806. 8002f96: 2b00 cmp r3, #0
  6807. 8002f98: d002 beq.n 8002fa0 <HAL_COMP_Start+0x30>
  6808. {
  6809. status = HAL_ERROR;
  6810. 8002f9a: 2301 movs r3, #1
  6811. 8002f9c: 75fb strb r3, [r7, #23]
  6812. 8002f9e: e034 b.n 800300a <HAL_COMP_Start+0x9a>
  6813. else
  6814. {
  6815. /* Check the parameter */
  6816. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  6817. if(hcomp->State == HAL_COMP_STATE_READY)
  6818. 8002fa0: 687b ldr r3, [r7, #4]
  6819. 8002fa2: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6820. 8002fa6: b2db uxtb r3, r3
  6821. 8002fa8: 2b01 cmp r3, #1
  6822. 8002faa: d12c bne.n 8003006 <HAL_COMP_Start+0x96>
  6823. /* Note: For comparator 2, inverting input (parameter */
  6824. /* "hcomp->Init.InvertingInput") is configured into this */
  6825. /* function instead of function "HAL_COMP_Init()" since */
  6826. /* inverting input selection also enables the comparator 2. */
  6827. __HAL_COMP_ENABLE(hcomp);
  6828. 8002fac: 687b ldr r3, [r7, #4]
  6829. 8002fae: 681b ldr r3, [r3, #0]
  6830. 8002fb0: 4a19 ldr r2, [pc, #100] ; (8003018 <HAL_COMP_Start+0xa8>)
  6831. 8002fb2: 4293 cmp r3, r2
  6832. 8002fb4: d106 bne.n 8002fc4 <HAL_COMP_Start+0x54>
  6833. 8002fb6: 4b18 ldr r3, [pc, #96] ; (8003018 <HAL_COMP_Start+0xa8>)
  6834. 8002fb8: 681b ldr r3, [r3, #0]
  6835. 8002fba: 4a17 ldr r2, [pc, #92] ; (8003018 <HAL_COMP_Start+0xa8>)
  6836. 8002fbc: f043 0310 orr.w r3, r3, #16
  6837. 8002fc0: 6013 str r3, [r2, #0]
  6838. 8002fc2: e008 b.n 8002fd6 <HAL_COMP_Start+0x66>
  6839. 8002fc4: 4b14 ldr r3, [pc, #80] ; (8003018 <HAL_COMP_Start+0xa8>)
  6840. 8002fc6: 681b ldr r3, [r3, #0]
  6841. 8002fc8: f423 12e0 bic.w r2, r3, #1835008 ; 0x1c0000
  6842. 8002fcc: 687b ldr r3, [r7, #4]
  6843. 8002fce: 685b ldr r3, [r3, #4]
  6844. 8002fd0: 4911 ldr r1, [pc, #68] ; (8003018 <HAL_COMP_Start+0xa8>)
  6845. 8002fd2: 4313 orrs r3, r2
  6846. 8002fd4: 600b str r3, [r1, #0]
  6847. /* Set delay for COMP start-up time */
  6848. if (hcomp->Instance == COMP1)
  6849. 8002fd6: 687b ldr r3, [r7, #4]
  6850. 8002fd8: 681b ldr r3, [r3, #0]
  6851. 8002fda: 4a0f ldr r2, [pc, #60] ; (8003018 <HAL_COMP_Start+0xa8>)
  6852. 8002fdc: 4293 cmp r3, r2
  6853. 8002fde: d102 bne.n 8002fe6 <HAL_COMP_Start+0x76>
  6854. {
  6855. wait_loop_cycles = COMP1_START_DELAY_CPU_CYCLES;
  6856. 8002fe0: 236a movs r3, #106 ; 0x6a
  6857. 8002fe2: 613b str r3, [r7, #16]
  6858. 8002fe4: e006 b.n 8002ff4 <HAL_COMP_Start+0x84>
  6859. }
  6860. else /* if (hcomp->Instance == COMP2) */
  6861. {
  6862. wait_loop_cycles = COMP2_START_DELAY_CPU_CYCLES;
  6863. 8002fe6: f44f 7385 mov.w r3, #266 ; 0x10a
  6864. 8002fea: 613b str r3, [r7, #16]
  6865. }
  6866. /* Delay for COMP start-up time. */
  6867. /* Delay fixed to worst case: maximum CPU frequency */
  6868. while(wait_loop_index < wait_loop_cycles)
  6869. 8002fec: e002 b.n 8002ff4 <HAL_COMP_Start+0x84>
  6870. {
  6871. wait_loop_index++;
  6872. 8002fee: 68fb ldr r3, [r7, #12]
  6873. 8002ff0: 3301 adds r3, #1
  6874. 8002ff2: 60fb str r3, [r7, #12]
  6875. while(wait_loop_index < wait_loop_cycles)
  6876. 8002ff4: 68fb ldr r3, [r7, #12]
  6877. 8002ff6: 693a ldr r2, [r7, #16]
  6878. 8002ff8: 429a cmp r2, r3
  6879. 8002ffa: d8f8 bhi.n 8002fee <HAL_COMP_Start+0x7e>
  6880. }
  6881. /* Update COMP state */
  6882. hcomp->State = HAL_COMP_STATE_BUSY;
  6883. 8002ffc: 687b ldr r3, [r7, #4]
  6884. 8002ffe: 2202 movs r2, #2
  6885. 8003000: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6886. 8003004: e001 b.n 800300a <HAL_COMP_Start+0x9a>
  6887. }
  6888. else
  6889. {
  6890. status = HAL_ERROR;
  6891. 8003006: 2301 movs r3, #1
  6892. 8003008: 75fb strb r3, [r7, #23]
  6893. }
  6894. }
  6895. return status;
  6896. 800300a: 7dfb ldrb r3, [r7, #23]
  6897. }
  6898. 800300c: 4618 mov r0, r3
  6899. 800300e: 371c adds r7, #28
  6900. 8003010: 46bd mov sp, r7
  6901. 8003012: bc80 pop {r7}
  6902. 8003014: 4770 bx lr
  6903. 8003016: bf00 nop
  6904. 8003018: 40007c00 .word 0x40007c00
  6905. 0800301c <HAL_COMP_Start_IT>:
  6906. * @brief Enables the interrupt and starts the comparator
  6907. * @param hcomp COMP handle
  6908. * @retval HAL status.
  6909. */
  6910. HAL_StatusTypeDef HAL_COMP_Start_IT(COMP_HandleTypeDef *hcomp)
  6911. {
  6912. 800301c: b580 push {r7, lr}
  6913. 800301e: b084 sub sp, #16
  6914. 8003020: af00 add r7, sp, #0
  6915. 8003022: 6078 str r0, [r7, #4]
  6916. HAL_StatusTypeDef status = HAL_OK;
  6917. 8003024: 2300 movs r3, #0
  6918. 8003026: 73fb strb r3, [r7, #15]
  6919. uint32_t extiline = 0;
  6920. 8003028: 2300 movs r3, #0
  6921. 800302a: 60bb str r3, [r7, #8]
  6922. status = HAL_COMP_Start(hcomp);
  6923. 800302c: 6878 ldr r0, [r7, #4]
  6924. 800302e: f7ff ff9f bl 8002f70 <HAL_COMP_Start>
  6925. 8003032: 4603 mov r3, r0
  6926. 8003034: 73fb strb r3, [r7, #15]
  6927. if(status == HAL_OK)
  6928. 8003036: 7bfb ldrb r3, [r7, #15]
  6929. 8003038: 2b00 cmp r3, #0
  6930. 800303a: d13b bne.n 80030b4 <HAL_COMP_Start_IT+0x98>
  6931. {
  6932. /* Check the parameter */
  6933. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  6934. /* Get the Exti Line output configuration */
  6935. extiline = COMP_GET_EXTI_LINE(hcomp->Instance);
  6936. 800303c: 687b ldr r3, [r7, #4]
  6937. 800303e: 681b ldr r3, [r3, #0]
  6938. 8003040: 4a1f ldr r2, [pc, #124] ; (80030c0 <HAL_COMP_Start_IT+0xa4>)
  6939. 8003042: 4293 cmp r3, r2
  6940. 8003044: d102 bne.n 800304c <HAL_COMP_Start_IT+0x30>
  6941. 8003046: f44f 1300 mov.w r3, #2097152 ; 0x200000
  6942. 800304a: e001 b.n 8003050 <HAL_COMP_Start_IT+0x34>
  6943. 800304c: f44f 0380 mov.w r3, #4194304 ; 0x400000
  6944. 8003050: 60bb str r3, [r7, #8]
  6945. /* Configure the trigger rising edge */
  6946. if((hcomp->Init.TriggerMode & COMP_TRIGGERMODE_IT_RISING) != RESET)
  6947. 8003052: 687b ldr r3, [r7, #4]
  6948. 8003054: 699b ldr r3, [r3, #24]
  6949. 8003056: f003 0301 and.w r3, r3, #1
  6950. 800305a: 2b00 cmp r3, #0
  6951. 800305c: d006 beq.n 800306c <HAL_COMP_Start_IT+0x50>
  6952. {
  6953. SET_BIT(EXTI->RTSR, extiline);
  6954. 800305e: 4b19 ldr r3, [pc, #100] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6955. 8003060: 689a ldr r2, [r3, #8]
  6956. 8003062: 4918 ldr r1, [pc, #96] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6957. 8003064: 68bb ldr r3, [r7, #8]
  6958. 8003066: 4313 orrs r3, r2
  6959. 8003068: 608b str r3, [r1, #8]
  6960. 800306a: e006 b.n 800307a <HAL_COMP_Start_IT+0x5e>
  6961. }
  6962. else
  6963. {
  6964. CLEAR_BIT(EXTI->RTSR, extiline);
  6965. 800306c: 4b15 ldr r3, [pc, #84] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6966. 800306e: 689a ldr r2, [r3, #8]
  6967. 8003070: 68bb ldr r3, [r7, #8]
  6968. 8003072: 43db mvns r3, r3
  6969. 8003074: 4913 ldr r1, [pc, #76] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6970. 8003076: 4013 ands r3, r2
  6971. 8003078: 608b str r3, [r1, #8]
  6972. }
  6973. /* Configure the trigger falling edge */
  6974. if((hcomp->Init.TriggerMode & COMP_TRIGGERMODE_IT_FALLING) != RESET)
  6975. 800307a: 687b ldr r3, [r7, #4]
  6976. 800307c: 699b ldr r3, [r3, #24]
  6977. 800307e: f003 0302 and.w r3, r3, #2
  6978. 8003082: 2b00 cmp r3, #0
  6979. 8003084: d006 beq.n 8003094 <HAL_COMP_Start_IT+0x78>
  6980. {
  6981. SET_BIT(EXTI->FTSR, extiline);
  6982. 8003086: 4b0f ldr r3, [pc, #60] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6983. 8003088: 68da ldr r2, [r3, #12]
  6984. 800308a: 490e ldr r1, [pc, #56] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6985. 800308c: 68bb ldr r3, [r7, #8]
  6986. 800308e: 4313 orrs r3, r2
  6987. 8003090: 60cb str r3, [r1, #12]
  6988. 8003092: e006 b.n 80030a2 <HAL_COMP_Start_IT+0x86>
  6989. }
  6990. else
  6991. {
  6992. CLEAR_BIT(EXTI->FTSR, extiline);
  6993. 8003094: 4b0b ldr r3, [pc, #44] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6994. 8003096: 68da ldr r2, [r3, #12]
  6995. 8003098: 68bb ldr r3, [r7, #8]
  6996. 800309a: 43db mvns r3, r3
  6997. 800309c: 4909 ldr r1, [pc, #36] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  6998. 800309e: 4013 ands r3, r2
  6999. 80030a0: 60cb str r3, [r1, #12]
  7000. }
  7001. /* Clear COMP EXTI pending bit */
  7002. WRITE_REG(EXTI->PR, extiline);
  7003. 80030a2: 4a08 ldr r2, [pc, #32] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  7004. 80030a4: 68bb ldr r3, [r7, #8]
  7005. 80030a6: 6153 str r3, [r2, #20]
  7006. /* Enable EXTI interrupt mode */
  7007. SET_BIT(EXTI->IMR, extiline);
  7008. 80030a8: 4b06 ldr r3, [pc, #24] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  7009. 80030aa: 681a ldr r2, [r3, #0]
  7010. 80030ac: 4905 ldr r1, [pc, #20] ; (80030c4 <HAL_COMP_Start_IT+0xa8>)
  7011. 80030ae: 68bb ldr r3, [r7, #8]
  7012. 80030b0: 4313 orrs r3, r2
  7013. 80030b2: 600b str r3, [r1, #0]
  7014. }
  7015. return status;
  7016. 80030b4: 7bfb ldrb r3, [r7, #15]
  7017. }
  7018. 80030b6: 4618 mov r0, r3
  7019. 80030b8: 3710 adds r7, #16
  7020. 80030ba: 46bd mov sp, r7
  7021. 80030bc: bd80 pop {r7, pc}
  7022. 80030be: bf00 nop
  7023. 80030c0: 40007c00 .word 0x40007c00
  7024. 80030c4: 40010400 .word 0x40010400
  7025. 080030c8 <HAL_COMP_IRQHandler>:
  7026. * @brief Comparator IRQ Handler
  7027. * @param hcomp COMP handle
  7028. * @retval HAL status
  7029. */
  7030. void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp)
  7031. {
  7032. 80030c8: b580 push {r7, lr}
  7033. 80030ca: b084 sub sp, #16
  7034. 80030cc: af00 add r7, sp, #0
  7035. 80030ce: 6078 str r0, [r7, #4]
  7036. uint32_t extiline = COMP_GET_EXTI_LINE(hcomp->Instance);
  7037. 80030d0: 687b ldr r3, [r7, #4]
  7038. 80030d2: 681b ldr r3, [r3, #0]
  7039. 80030d4: 4a0c ldr r2, [pc, #48] ; (8003108 <HAL_COMP_IRQHandler+0x40>)
  7040. 80030d6: 4293 cmp r3, r2
  7041. 80030d8: d102 bne.n 80030e0 <HAL_COMP_IRQHandler+0x18>
  7042. 80030da: f44f 1300 mov.w r3, #2097152 ; 0x200000
  7043. 80030de: e001 b.n 80030e4 <HAL_COMP_IRQHandler+0x1c>
  7044. 80030e0: f44f 0380 mov.w r3, #4194304 ; 0x400000
  7045. 80030e4: 60fb str r3, [r7, #12]
  7046. /* Check COMP Exti flag */
  7047. if(READ_BIT(EXTI->PR, extiline) != RESET)
  7048. 80030e6: 4b09 ldr r3, [pc, #36] ; (800310c <HAL_COMP_IRQHandler+0x44>)
  7049. 80030e8: 695a ldr r2, [r3, #20]
  7050. 80030ea: 68fb ldr r3, [r7, #12]
  7051. 80030ec: 4013 ands r3, r2
  7052. 80030ee: 2b00 cmp r3, #0
  7053. 80030f0: d005 beq.n 80030fe <HAL_COMP_IRQHandler+0x36>
  7054. {
  7055. /* Clear COMP EXTI pending bit */
  7056. WRITE_REG(EXTI->PR, extiline);
  7057. 80030f2: 4a06 ldr r2, [pc, #24] ; (800310c <HAL_COMP_IRQHandler+0x44>)
  7058. 80030f4: 68fb ldr r3, [r7, #12]
  7059. 80030f6: 6153 str r3, [r2, #20]
  7060. /* COMP trigger callback */
  7061. #if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
  7062. hcomp->TriggerCallback(hcomp);
  7063. #else
  7064. HAL_COMP_TriggerCallback(hcomp);
  7065. 80030f8: 6878 ldr r0, [r7, #4]
  7066. 80030fa: f7fd ff67 bl 8000fcc <HAL_COMP_TriggerCallback>
  7067. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  7068. }
  7069. }
  7070. 80030fe: bf00 nop
  7071. 8003100: 3710 adds r7, #16
  7072. 8003102: 46bd mov sp, r7
  7073. 8003104: bd80 pop {r7, pc}
  7074. 8003106: bf00 nop
  7075. 8003108: 40007c00 .word 0x40007c00
  7076. 800310c: 40010400 .word 0x40010400
  7077. 08003110 <__NVIC_SetPriorityGrouping>:
  7078. In case of a conflict between priority grouping and available
  7079. priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
  7080. \param [in] PriorityGroup Priority grouping field.
  7081. */
  7082. __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  7083. {
  7084. 8003110: b480 push {r7}
  7085. 8003112: b085 sub sp, #20
  7086. 8003114: af00 add r7, sp, #0
  7087. 8003116: 6078 str r0, [r7, #4]
  7088. uint32_t reg_value;
  7089. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  7090. 8003118: 687b ldr r3, [r7, #4]
  7091. 800311a: f003 0307 and.w r3, r3, #7
  7092. 800311e: 60fb str r3, [r7, #12]
  7093. reg_value = SCB->AIRCR; /* read old register configuration */
  7094. 8003120: 4b0c ldr r3, [pc, #48] ; (8003154 <__NVIC_SetPriorityGrouping+0x44>)
  7095. 8003122: 68db ldr r3, [r3, #12]
  7096. 8003124: 60bb str r3, [r7, #8]
  7097. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  7098. 8003126: 68ba ldr r2, [r7, #8]
  7099. 8003128: f64f 03ff movw r3, #63743 ; 0xf8ff
  7100. 800312c: 4013 ands r3, r2
  7101. 800312e: 60bb str r3, [r7, #8]
  7102. reg_value = (reg_value |
  7103. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  7104. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  7105. 8003130: 68fb ldr r3, [r7, #12]
  7106. 8003132: 021a lsls r2, r3, #8
  7107. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  7108. 8003134: 68bb ldr r3, [r7, #8]
  7109. 8003136: 4313 orrs r3, r2
  7110. reg_value = (reg_value |
  7111. 8003138: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
  7112. 800313c: f443 3300 orr.w r3, r3, #131072 ; 0x20000
  7113. 8003140: 60bb str r3, [r7, #8]
  7114. SCB->AIRCR = reg_value;
  7115. 8003142: 4a04 ldr r2, [pc, #16] ; (8003154 <__NVIC_SetPriorityGrouping+0x44>)
  7116. 8003144: 68bb ldr r3, [r7, #8]
  7117. 8003146: 60d3 str r3, [r2, #12]
  7118. }
  7119. 8003148: bf00 nop
  7120. 800314a: 3714 adds r7, #20
  7121. 800314c: 46bd mov sp, r7
  7122. 800314e: bc80 pop {r7}
  7123. 8003150: 4770 bx lr
  7124. 8003152: bf00 nop
  7125. 8003154: e000ed00 .word 0xe000ed00
  7126. 08003158 <__NVIC_GetPriorityGrouping>:
  7127. \brief Get Priority Grouping
  7128. \details Reads the priority grouping field from the NVIC Interrupt Controller.
  7129. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
  7130. */
  7131. __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
  7132. {
  7133. 8003158: b480 push {r7}
  7134. 800315a: af00 add r7, sp, #0
  7135. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  7136. 800315c: 4b04 ldr r3, [pc, #16] ; (8003170 <__NVIC_GetPriorityGrouping+0x18>)
  7137. 800315e: 68db ldr r3, [r3, #12]
  7138. 8003160: 0a1b lsrs r3, r3, #8
  7139. 8003162: f003 0307 and.w r3, r3, #7
  7140. }
  7141. 8003166: 4618 mov r0, r3
  7142. 8003168: 46bd mov sp, r7
  7143. 800316a: bc80 pop {r7}
  7144. 800316c: 4770 bx lr
  7145. 800316e: bf00 nop
  7146. 8003170: e000ed00 .word 0xe000ed00
  7147. 08003174 <__NVIC_EnableIRQ>:
  7148. \details Enables a device specific interrupt in the NVIC interrupt controller.
  7149. \param [in] IRQn Device specific interrupt number.
  7150. \note IRQn must not be negative.
  7151. */
  7152. __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
  7153. {
  7154. 8003174: b480 push {r7}
  7155. 8003176: b083 sub sp, #12
  7156. 8003178: af00 add r7, sp, #0
  7157. 800317a: 4603 mov r3, r0
  7158. 800317c: 71fb strb r3, [r7, #7]
  7159. if ((int32_t)(IRQn) >= 0)
  7160. 800317e: f997 3007 ldrsb.w r3, [r7, #7]
  7161. 8003182: 2b00 cmp r3, #0
  7162. 8003184: db0b blt.n 800319e <__NVIC_EnableIRQ+0x2a>
  7163. {
  7164. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  7165. 8003186: 79fb ldrb r3, [r7, #7]
  7166. 8003188: f003 021f and.w r2, r3, #31
  7167. 800318c: 4906 ldr r1, [pc, #24] ; (80031a8 <__NVIC_EnableIRQ+0x34>)
  7168. 800318e: f997 3007 ldrsb.w r3, [r7, #7]
  7169. 8003192: 095b lsrs r3, r3, #5
  7170. 8003194: 2001 movs r0, #1
  7171. 8003196: fa00 f202 lsl.w r2, r0, r2
  7172. 800319a: f841 2023 str.w r2, [r1, r3, lsl #2]
  7173. }
  7174. }
  7175. 800319e: bf00 nop
  7176. 80031a0: 370c adds r7, #12
  7177. 80031a2: 46bd mov sp, r7
  7178. 80031a4: bc80 pop {r7}
  7179. 80031a6: 4770 bx lr
  7180. 80031a8: e000e100 .word 0xe000e100
  7181. 080031ac <__NVIC_SetPriority>:
  7182. \param [in] IRQn Interrupt number.
  7183. \param [in] priority Priority to set.
  7184. \note The priority cannot be set for every processor exception.
  7185. */
  7186. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  7187. {
  7188. 80031ac: b480 push {r7}
  7189. 80031ae: b083 sub sp, #12
  7190. 80031b0: af00 add r7, sp, #0
  7191. 80031b2: 4603 mov r3, r0
  7192. 80031b4: 6039 str r1, [r7, #0]
  7193. 80031b6: 71fb strb r3, [r7, #7]
  7194. if ((int32_t)(IRQn) >= 0)
  7195. 80031b8: f997 3007 ldrsb.w r3, [r7, #7]
  7196. 80031bc: 2b00 cmp r3, #0
  7197. 80031be: db0a blt.n 80031d6 <__NVIC_SetPriority+0x2a>
  7198. {
  7199. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  7200. 80031c0: 683b ldr r3, [r7, #0]
  7201. 80031c2: b2da uxtb r2, r3
  7202. 80031c4: 490c ldr r1, [pc, #48] ; (80031f8 <__NVIC_SetPriority+0x4c>)
  7203. 80031c6: f997 3007 ldrsb.w r3, [r7, #7]
  7204. 80031ca: 0112 lsls r2, r2, #4
  7205. 80031cc: b2d2 uxtb r2, r2
  7206. 80031ce: 440b add r3, r1
  7207. 80031d0: f883 2300 strb.w r2, [r3, #768] ; 0x300
  7208. }
  7209. else
  7210. {
  7211. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  7212. }
  7213. }
  7214. 80031d4: e00a b.n 80031ec <__NVIC_SetPriority+0x40>
  7215. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  7216. 80031d6: 683b ldr r3, [r7, #0]
  7217. 80031d8: b2da uxtb r2, r3
  7218. 80031da: 4908 ldr r1, [pc, #32] ; (80031fc <__NVIC_SetPriority+0x50>)
  7219. 80031dc: 79fb ldrb r3, [r7, #7]
  7220. 80031de: f003 030f and.w r3, r3, #15
  7221. 80031e2: 3b04 subs r3, #4
  7222. 80031e4: 0112 lsls r2, r2, #4
  7223. 80031e6: b2d2 uxtb r2, r2
  7224. 80031e8: 440b add r3, r1
  7225. 80031ea: 761a strb r2, [r3, #24]
  7226. }
  7227. 80031ec: bf00 nop
  7228. 80031ee: 370c adds r7, #12
  7229. 80031f0: 46bd mov sp, r7
  7230. 80031f2: bc80 pop {r7}
  7231. 80031f4: 4770 bx lr
  7232. 80031f6: bf00 nop
  7233. 80031f8: e000e100 .word 0xe000e100
  7234. 80031fc: e000ed00 .word 0xe000ed00
  7235. 08003200 <NVIC_EncodePriority>:
  7236. \param [in] PreemptPriority Preemptive priority value (starting from 0).
  7237. \param [in] SubPriority Subpriority value (starting from 0).
  7238. \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
  7239. */
  7240. __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
  7241. {
  7242. 8003200: b480 push {r7}
  7243. 8003202: b089 sub sp, #36 ; 0x24
  7244. 8003204: af00 add r7, sp, #0
  7245. 8003206: 60f8 str r0, [r7, #12]
  7246. 8003208: 60b9 str r1, [r7, #8]
  7247. 800320a: 607a str r2, [r7, #4]
  7248. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  7249. 800320c: 68fb ldr r3, [r7, #12]
  7250. 800320e: f003 0307 and.w r3, r3, #7
  7251. 8003212: 61fb str r3, [r7, #28]
  7252. uint32_t PreemptPriorityBits;
  7253. uint32_t SubPriorityBits;
  7254. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  7255. 8003214: 69fb ldr r3, [r7, #28]
  7256. 8003216: f1c3 0307 rsb r3, r3, #7
  7257. 800321a: 2b04 cmp r3, #4
  7258. 800321c: bf28 it cs
  7259. 800321e: 2304 movcs r3, #4
  7260. 8003220: 61bb str r3, [r7, #24]
  7261. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  7262. 8003222: 69fb ldr r3, [r7, #28]
  7263. 8003224: 3304 adds r3, #4
  7264. 8003226: 2b06 cmp r3, #6
  7265. 8003228: d902 bls.n 8003230 <NVIC_EncodePriority+0x30>
  7266. 800322a: 69fb ldr r3, [r7, #28]
  7267. 800322c: 3b03 subs r3, #3
  7268. 800322e: e000 b.n 8003232 <NVIC_EncodePriority+0x32>
  7269. 8003230: 2300 movs r3, #0
  7270. 8003232: 617b str r3, [r7, #20]
  7271. return (
  7272. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  7273. 8003234: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  7274. 8003238: 69bb ldr r3, [r7, #24]
  7275. 800323a: fa02 f303 lsl.w r3, r2, r3
  7276. 800323e: 43da mvns r2, r3
  7277. 8003240: 68bb ldr r3, [r7, #8]
  7278. 8003242: 401a ands r2, r3
  7279. 8003244: 697b ldr r3, [r7, #20]
  7280. 8003246: 409a lsls r2, r3
  7281. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  7282. 8003248: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
  7283. 800324c: 697b ldr r3, [r7, #20]
  7284. 800324e: fa01 f303 lsl.w r3, r1, r3
  7285. 8003252: 43d9 mvns r1, r3
  7286. 8003254: 687b ldr r3, [r7, #4]
  7287. 8003256: 400b ands r3, r1
  7288. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  7289. 8003258: 4313 orrs r3, r2
  7290. );
  7291. }
  7292. 800325a: 4618 mov r0, r3
  7293. 800325c: 3724 adds r7, #36 ; 0x24
  7294. 800325e: 46bd mov sp, r7
  7295. 8003260: bc80 pop {r7}
  7296. 8003262: 4770 bx lr
  7297. 08003264 <SysTick_Config>:
  7298. \note When the variable <b>__Vendor_SysTickConfig</b> is set to 1, then the
  7299. function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
  7300. must contain a vendor-specific implementation of this function.
  7301. */
  7302. __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
  7303. {
  7304. 8003264: b580 push {r7, lr}
  7305. 8003266: b082 sub sp, #8
  7306. 8003268: af00 add r7, sp, #0
  7307. 800326a: 6078 str r0, [r7, #4]
  7308. if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
  7309. 800326c: 687b ldr r3, [r7, #4]
  7310. 800326e: 3b01 subs r3, #1
  7311. 8003270: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000
  7312. 8003274: d301 bcc.n 800327a <SysTick_Config+0x16>
  7313. {
  7314. return (1UL); /* Reload value impossible */
  7315. 8003276: 2301 movs r3, #1
  7316. 8003278: e00f b.n 800329a <SysTick_Config+0x36>
  7317. }
  7318. SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
  7319. 800327a: 4a0a ldr r2, [pc, #40] ; (80032a4 <SysTick_Config+0x40>)
  7320. 800327c: 687b ldr r3, [r7, #4]
  7321. 800327e: 3b01 subs r3, #1
  7322. 8003280: 6053 str r3, [r2, #4]
  7323. NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
  7324. 8003282: 210f movs r1, #15
  7325. 8003284: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  7326. 8003288: f7ff ff90 bl 80031ac <__NVIC_SetPriority>
  7327. SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
  7328. 800328c: 4b05 ldr r3, [pc, #20] ; (80032a4 <SysTick_Config+0x40>)
  7329. 800328e: 2200 movs r2, #0
  7330. 8003290: 609a str r2, [r3, #8]
  7331. SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
  7332. 8003292: 4b04 ldr r3, [pc, #16] ; (80032a4 <SysTick_Config+0x40>)
  7333. 8003294: 2207 movs r2, #7
  7334. 8003296: 601a str r2, [r3, #0]
  7335. SysTick_CTRL_TICKINT_Msk |
  7336. SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
  7337. return (0UL); /* Function successful */
  7338. 8003298: 2300 movs r3, #0
  7339. }
  7340. 800329a: 4618 mov r0, r3
  7341. 800329c: 3708 adds r7, #8
  7342. 800329e: 46bd mov sp, r7
  7343. 80032a0: bd80 pop {r7, pc}
  7344. 80032a2: bf00 nop
  7345. 80032a4: e000e010 .word 0xe000e010
  7346. 080032a8 <HAL_NVIC_SetPriorityGrouping>:
  7347. * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible.
  7348. * The pending IRQ priority will be managed only by the subpriority.
  7349. * @retval None
  7350. */
  7351. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  7352. {
  7353. 80032a8: b580 push {r7, lr}
  7354. 80032aa: b082 sub sp, #8
  7355. 80032ac: af00 add r7, sp, #0
  7356. 80032ae: 6078 str r0, [r7, #4]
  7357. /* Check the parameters */
  7358. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  7359. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  7360. NVIC_SetPriorityGrouping(PriorityGroup);
  7361. 80032b0: 6878 ldr r0, [r7, #4]
  7362. 80032b2: f7ff ff2d bl 8003110 <__NVIC_SetPriorityGrouping>
  7363. }
  7364. 80032b6: bf00 nop
  7365. 80032b8: 3708 adds r7, #8
  7366. 80032ba: 46bd mov sp, r7
  7367. 80032bc: bd80 pop {r7, pc}
  7368. 080032be <HAL_NVIC_SetPriority>:
  7369. * This parameter can be a value between 0 and 15
  7370. * A lower priority value indicates a higher priority.
  7371. * @retval None
  7372. */
  7373. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  7374. {
  7375. 80032be: b580 push {r7, lr}
  7376. 80032c0: b086 sub sp, #24
  7377. 80032c2: af00 add r7, sp, #0
  7378. 80032c4: 4603 mov r3, r0
  7379. 80032c6: 60b9 str r1, [r7, #8]
  7380. 80032c8: 607a str r2, [r7, #4]
  7381. 80032ca: 73fb strb r3, [r7, #15]
  7382. uint32_t prioritygroup = 0x00;
  7383. 80032cc: 2300 movs r3, #0
  7384. 80032ce: 617b str r3, [r7, #20]
  7385. /* Check the parameters */
  7386. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  7387. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  7388. prioritygroup = NVIC_GetPriorityGrouping();
  7389. 80032d0: f7ff ff42 bl 8003158 <__NVIC_GetPriorityGrouping>
  7390. 80032d4: 6178 str r0, [r7, #20]
  7391. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  7392. 80032d6: 687a ldr r2, [r7, #4]
  7393. 80032d8: 68b9 ldr r1, [r7, #8]
  7394. 80032da: 6978 ldr r0, [r7, #20]
  7395. 80032dc: f7ff ff90 bl 8003200 <NVIC_EncodePriority>
  7396. 80032e0: 4602 mov r2, r0
  7397. 80032e2: f997 300f ldrsb.w r3, [r7, #15]
  7398. 80032e6: 4611 mov r1, r2
  7399. 80032e8: 4618 mov r0, r3
  7400. 80032ea: f7ff ff5f bl 80031ac <__NVIC_SetPriority>
  7401. }
  7402. 80032ee: bf00 nop
  7403. 80032f0: 3718 adds r7, #24
  7404. 80032f2: 46bd mov sp, r7
  7405. 80032f4: bd80 pop {r7, pc}
  7406. 080032f6 <HAL_NVIC_EnableIRQ>:
  7407. * This parameter can be an enumerator of IRQn_Type enumeration
  7408. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32l1xx.h))
  7409. * @retval None
  7410. */
  7411. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  7412. {
  7413. 80032f6: b580 push {r7, lr}
  7414. 80032f8: b082 sub sp, #8
  7415. 80032fa: af00 add r7, sp, #0
  7416. 80032fc: 4603 mov r3, r0
  7417. 80032fe: 71fb strb r3, [r7, #7]
  7418. /* Check the parameters */
  7419. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  7420. /* Enable interrupt */
  7421. NVIC_EnableIRQ(IRQn);
  7422. 8003300: f997 3007 ldrsb.w r3, [r7, #7]
  7423. 8003304: 4618 mov r0, r3
  7424. 8003306: f7ff ff35 bl 8003174 <__NVIC_EnableIRQ>
  7425. }
  7426. 800330a: bf00 nop
  7427. 800330c: 3708 adds r7, #8
  7428. 800330e: 46bd mov sp, r7
  7429. 8003310: bd80 pop {r7, pc}
  7430. 08003312 <HAL_SYSTICK_Config>:
  7431. * @param TicksNumb Specifies the ticks Number of ticks between two interrupts.
  7432. * @retval status: - 0 Function succeeded.
  7433. * - 1 Function failed.
  7434. */
  7435. uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
  7436. {
  7437. 8003312: b580 push {r7, lr}
  7438. 8003314: b082 sub sp, #8
  7439. 8003316: af00 add r7, sp, #0
  7440. 8003318: 6078 str r0, [r7, #4]
  7441. return SysTick_Config(TicksNumb);
  7442. 800331a: 6878 ldr r0, [r7, #4]
  7443. 800331c: f7ff ffa2 bl 8003264 <SysTick_Config>
  7444. 8003320: 4603 mov r3, r0
  7445. }
  7446. 8003322: 4618 mov r0, r3
  7447. 8003324: 3708 adds r7, #8
  7448. 8003326: 46bd mov sp, r7
  7449. 8003328: bd80 pop {r7, pc}
  7450. 0800332a <HAL_DAC_Init>:
  7451. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  7452. * the configuration information for the specified DAC.
  7453. * @retval HAL status
  7454. */
  7455. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  7456. {
  7457. 800332a: b580 push {r7, lr}
  7458. 800332c: b082 sub sp, #8
  7459. 800332e: af00 add r7, sp, #0
  7460. 8003330: 6078 str r0, [r7, #4]
  7461. /* Check DAC handle */
  7462. if (hdac == NULL)
  7463. 8003332: 687b ldr r3, [r7, #4]
  7464. 8003334: 2b00 cmp r3, #0
  7465. 8003336: d101 bne.n 800333c <HAL_DAC_Init+0x12>
  7466. {
  7467. return HAL_ERROR;
  7468. 8003338: 2301 movs r3, #1
  7469. 800333a: e014 b.n 8003366 <HAL_DAC_Init+0x3c>
  7470. }
  7471. /* Check the parameters */
  7472. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  7473. if (hdac->State == HAL_DAC_STATE_RESET)
  7474. 800333c: 687b ldr r3, [r7, #4]
  7475. 800333e: 791b ldrb r3, [r3, #4]
  7476. 8003340: b2db uxtb r3, r3
  7477. 8003342: 2b00 cmp r3, #0
  7478. 8003344: d105 bne.n 8003352 <HAL_DAC_Init+0x28>
  7479. hdac->MspInitCallback = HAL_DAC_MspInit;
  7480. }
  7481. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  7482. /* Allocate lock resource and initialize it */
  7483. hdac->Lock = HAL_UNLOCKED;
  7484. 8003346: 687b ldr r3, [r7, #4]
  7485. 8003348: 2200 movs r2, #0
  7486. 800334a: 715a strb r2, [r3, #5]
  7487. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  7488. /* Init the low level hardware */
  7489. hdac->MspInitCallback(hdac);
  7490. #else
  7491. /* Init the low level hardware */
  7492. HAL_DAC_MspInit(hdac);
  7493. 800334c: 6878 ldr r0, [r7, #4]
  7494. 800334e: f7fe fcdf bl 8001d10 <HAL_DAC_MspInit>
  7495. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  7496. }
  7497. /* Initialize the DAC state*/
  7498. hdac->State = HAL_DAC_STATE_BUSY;
  7499. 8003352: 687b ldr r3, [r7, #4]
  7500. 8003354: 2202 movs r2, #2
  7501. 8003356: 711a strb r2, [r3, #4]
  7502. /* Set DAC error code to none */
  7503. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  7504. 8003358: 687b ldr r3, [r7, #4]
  7505. 800335a: 2200 movs r2, #0
  7506. 800335c: 611a str r2, [r3, #16]
  7507. /* Initialize the DAC state*/
  7508. hdac->State = HAL_DAC_STATE_READY;
  7509. 800335e: 687b ldr r3, [r7, #4]
  7510. 8003360: 2201 movs r2, #1
  7511. 8003362: 711a strb r2, [r3, #4]
  7512. /* Return function status */
  7513. return HAL_OK;
  7514. 8003364: 2300 movs r3, #0
  7515. }
  7516. 8003366: 4618 mov r0, r3
  7517. 8003368: 3708 adds r7, #8
  7518. 800336a: 46bd mov sp, r7
  7519. 800336c: bd80 pop {r7, pc}
  7520. 0800336e <HAL_DAC_Start>:
  7521. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  7522. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  7523. * @retval HAL status
  7524. */
  7525. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  7526. {
  7527. 800336e: b480 push {r7}
  7528. 8003370: b083 sub sp, #12
  7529. 8003372: af00 add r7, sp, #0
  7530. 8003374: 6078 str r0, [r7, #4]
  7531. 8003376: 6039 str r1, [r7, #0]
  7532. /* Check the parameters */
  7533. assert_param(IS_DAC_CHANNEL(Channel));
  7534. /* Process locked */
  7535. __HAL_LOCK(hdac);
  7536. 8003378: 687b ldr r3, [r7, #4]
  7537. 800337a: 795b ldrb r3, [r3, #5]
  7538. 800337c: 2b01 cmp r3, #1
  7539. 800337e: d101 bne.n 8003384 <HAL_DAC_Start+0x16>
  7540. 8003380: 2302 movs r3, #2
  7541. 8003382: e040 b.n 8003406 <HAL_DAC_Start+0x98>
  7542. 8003384: 687b ldr r3, [r7, #4]
  7543. 8003386: 2201 movs r2, #1
  7544. 8003388: 715a strb r2, [r3, #5]
  7545. /* Change DAC state */
  7546. hdac->State = HAL_DAC_STATE_BUSY;
  7547. 800338a: 687b ldr r3, [r7, #4]
  7548. 800338c: 2202 movs r2, #2
  7549. 800338e: 711a strb r2, [r3, #4]
  7550. /* Enable the Peripheral */
  7551. __HAL_DAC_ENABLE(hdac, Channel);
  7552. 8003390: 687b ldr r3, [r7, #4]
  7553. 8003392: 681b ldr r3, [r3, #0]
  7554. 8003394: 6819 ldr r1, [r3, #0]
  7555. 8003396: 683b ldr r3, [r7, #0]
  7556. 8003398: f003 0310 and.w r3, r3, #16
  7557. 800339c: 2201 movs r2, #1
  7558. 800339e: 409a lsls r2, r3
  7559. 80033a0: 687b ldr r3, [r7, #4]
  7560. 80033a2: 681b ldr r3, [r3, #0]
  7561. 80033a4: 430a orrs r2, r1
  7562. 80033a6: 601a str r2, [r3, #0]
  7563. if (Channel == DAC_CHANNEL_1)
  7564. 80033a8: 683b ldr r3, [r7, #0]
  7565. 80033aa: 2b00 cmp r3, #0
  7566. 80033ac: d10f bne.n 80033ce <HAL_DAC_Start+0x60>
  7567. {
  7568. /* Check if software trigger enabled */
  7569. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  7570. 80033ae: 687b ldr r3, [r7, #4]
  7571. 80033b0: 681b ldr r3, [r3, #0]
  7572. 80033b2: 681b ldr r3, [r3, #0]
  7573. 80033b4: f003 033c and.w r3, r3, #60 ; 0x3c
  7574. 80033b8: 2b3c cmp r3, #60 ; 0x3c
  7575. 80033ba: d11d bne.n 80033f8 <HAL_DAC_Start+0x8a>
  7576. {
  7577. /* Enable the selected DAC software conversion */
  7578. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  7579. 80033bc: 687b ldr r3, [r7, #4]
  7580. 80033be: 681b ldr r3, [r3, #0]
  7581. 80033c0: 685a ldr r2, [r3, #4]
  7582. 80033c2: 687b ldr r3, [r7, #4]
  7583. 80033c4: 681b ldr r3, [r3, #0]
  7584. 80033c6: f042 0201 orr.w r2, r2, #1
  7585. 80033ca: 605a str r2, [r3, #4]
  7586. 80033cc: e014 b.n 80033f8 <HAL_DAC_Start+0x8a>
  7587. }
  7588. else
  7589. {
  7590. /* Check if software trigger enabled */
  7591. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  7592. 80033ce: 687b ldr r3, [r7, #4]
  7593. 80033d0: 681b ldr r3, [r3, #0]
  7594. 80033d2: 681b ldr r3, [r3, #0]
  7595. 80033d4: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  7596. 80033d8: 683b ldr r3, [r7, #0]
  7597. 80033da: f003 0310 and.w r3, r3, #16
  7598. 80033de: 213c movs r1, #60 ; 0x3c
  7599. 80033e0: fa01 f303 lsl.w r3, r1, r3
  7600. 80033e4: 429a cmp r2, r3
  7601. 80033e6: d107 bne.n 80033f8 <HAL_DAC_Start+0x8a>
  7602. {
  7603. /* Enable the selected DAC software conversion*/
  7604. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  7605. 80033e8: 687b ldr r3, [r7, #4]
  7606. 80033ea: 681b ldr r3, [r3, #0]
  7607. 80033ec: 685a ldr r2, [r3, #4]
  7608. 80033ee: 687b ldr r3, [r7, #4]
  7609. 80033f0: 681b ldr r3, [r3, #0]
  7610. 80033f2: f042 0202 orr.w r2, r2, #2
  7611. 80033f6: 605a str r2, [r3, #4]
  7612. }
  7613. }
  7614. /* Change DAC state */
  7615. hdac->State = HAL_DAC_STATE_READY;
  7616. 80033f8: 687b ldr r3, [r7, #4]
  7617. 80033fa: 2201 movs r2, #1
  7618. 80033fc: 711a strb r2, [r3, #4]
  7619. /* Process unlocked */
  7620. __HAL_UNLOCK(hdac);
  7621. 80033fe: 687b ldr r3, [r7, #4]
  7622. 8003400: 2200 movs r2, #0
  7623. 8003402: 715a strb r2, [r3, #5]
  7624. /* Return function status */
  7625. return HAL_OK;
  7626. 8003404: 2300 movs r3, #0
  7627. }
  7628. 8003406: 4618 mov r0, r3
  7629. 8003408: 370c adds r7, #12
  7630. 800340a: 46bd mov sp, r7
  7631. 800340c: bc80 pop {r7}
  7632. 800340e: 4770 bx lr
  7633. 08003410 <HAL_DAC_SetValue>:
  7634. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  7635. * @param Data Data to be loaded in the selected data holding register.
  7636. * @retval HAL status
  7637. */
  7638. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  7639. {
  7640. 8003410: b480 push {r7}
  7641. 8003412: b087 sub sp, #28
  7642. 8003414: af00 add r7, sp, #0
  7643. 8003416: 60f8 str r0, [r7, #12]
  7644. 8003418: 60b9 str r1, [r7, #8]
  7645. 800341a: 607a str r2, [r7, #4]
  7646. 800341c: 603b str r3, [r7, #0]
  7647. __IO uint32_t tmp = 0UL;
  7648. 800341e: 2300 movs r3, #0
  7649. 8003420: 617b str r3, [r7, #20]
  7650. /* Check the parameters */
  7651. assert_param(IS_DAC_CHANNEL(Channel));
  7652. assert_param(IS_DAC_ALIGN(Alignment));
  7653. assert_param(IS_DAC_DATA(Data));
  7654. tmp = (uint32_t)hdac->Instance;
  7655. 8003422: 68fb ldr r3, [r7, #12]
  7656. 8003424: 681b ldr r3, [r3, #0]
  7657. 8003426: 617b str r3, [r7, #20]
  7658. if (Channel == DAC_CHANNEL_1)
  7659. 8003428: 68bb ldr r3, [r7, #8]
  7660. 800342a: 2b00 cmp r3, #0
  7661. 800342c: d105 bne.n 800343a <HAL_DAC_SetValue+0x2a>
  7662. {
  7663. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  7664. 800342e: 697a ldr r2, [r7, #20]
  7665. 8003430: 687b ldr r3, [r7, #4]
  7666. 8003432: 4413 add r3, r2
  7667. 8003434: 3308 adds r3, #8
  7668. 8003436: 617b str r3, [r7, #20]
  7669. 8003438: e004 b.n 8003444 <HAL_DAC_SetValue+0x34>
  7670. }
  7671. else
  7672. {
  7673. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  7674. 800343a: 697a ldr r2, [r7, #20]
  7675. 800343c: 687b ldr r3, [r7, #4]
  7676. 800343e: 4413 add r3, r2
  7677. 8003440: 3314 adds r3, #20
  7678. 8003442: 617b str r3, [r7, #20]
  7679. }
  7680. /* Set the DAC channel selected data holding register */
  7681. *(__IO uint32_t *) tmp = Data;
  7682. 8003444: 697b ldr r3, [r7, #20]
  7683. 8003446: 461a mov r2, r3
  7684. 8003448: 683b ldr r3, [r7, #0]
  7685. 800344a: 6013 str r3, [r2, #0]
  7686. /* Return function status */
  7687. return HAL_OK;
  7688. 800344c: 2300 movs r3, #0
  7689. }
  7690. 800344e: 4618 mov r0, r3
  7691. 8003450: 371c adds r7, #28
  7692. 8003452: 46bd mov sp, r7
  7693. 8003454: bc80 pop {r7}
  7694. 8003456: 4770 bx lr
  7695. 08003458 <HAL_DAC_ConfigChannel>:
  7696. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  7697. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  7698. * @retval HAL status
  7699. */
  7700. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  7701. {
  7702. 8003458: b480 push {r7}
  7703. 800345a: b087 sub sp, #28
  7704. 800345c: af00 add r7, sp, #0
  7705. 800345e: 60f8 str r0, [r7, #12]
  7706. 8003460: 60b9 str r1, [r7, #8]
  7707. 8003462: 607a str r2, [r7, #4]
  7708. assert_param(IS_DAC_TRIGGER(sConfig->DAC_Trigger));
  7709. assert_param(IS_DAC_OUTPUT_BUFFER_STATE(sConfig->DAC_OutputBuffer));
  7710. assert_param(IS_DAC_CHANNEL(Channel));
  7711. /* Process locked */
  7712. __HAL_LOCK(hdac);
  7713. 8003464: 68fb ldr r3, [r7, #12]
  7714. 8003466: 795b ldrb r3, [r3, #5]
  7715. 8003468: 2b01 cmp r3, #1
  7716. 800346a: d101 bne.n 8003470 <HAL_DAC_ConfigChannel+0x18>
  7717. 800346c: 2302 movs r3, #2
  7718. 800346e: e03c b.n 80034ea <HAL_DAC_ConfigChannel+0x92>
  7719. 8003470: 68fb ldr r3, [r7, #12]
  7720. 8003472: 2201 movs r2, #1
  7721. 8003474: 715a strb r2, [r3, #5]
  7722. /* Change DAC state */
  7723. hdac->State = HAL_DAC_STATE_BUSY;
  7724. 8003476: 68fb ldr r3, [r7, #12]
  7725. 8003478: 2202 movs r2, #2
  7726. 800347a: 711a strb r2, [r3, #4]
  7727. /* Get the DAC CR value */
  7728. tmpreg1 = hdac->Instance->CR;
  7729. 800347c: 68fb ldr r3, [r7, #12]
  7730. 800347e: 681b ldr r3, [r3, #0]
  7731. 8003480: 681b ldr r3, [r3, #0]
  7732. 8003482: 617b str r3, [r7, #20]
  7733. /* Clear BOFFx, TENx, TSELx, WAVEx and MAMPx bits */
  7734. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1)) << (Channel & 0x10UL));
  7735. 8003484: 687b ldr r3, [r7, #4]
  7736. 8003486: f003 0310 and.w r3, r3, #16
  7737. 800348a: f640 72fe movw r2, #4094 ; 0xffe
  7738. 800348e: fa02 f303 lsl.w r3, r2, r3
  7739. 8003492: 43db mvns r3, r3
  7740. 8003494: 697a ldr r2, [r7, #20]
  7741. 8003496: 4013 ands r3, r2
  7742. 8003498: 617b str r3, [r7, #20]
  7743. /* Configure for the selected DAC channel: buffer output, trigger */
  7744. /* Set TSELx and TENx bits according to DAC_Trigger value */
  7745. /* Set BOFFx bit according to DAC_OutputBuffer value */
  7746. tmpreg2 = (sConfig->DAC_Trigger | sConfig->DAC_OutputBuffer);
  7747. 800349a: 68bb ldr r3, [r7, #8]
  7748. 800349c: 681a ldr r2, [r3, #0]
  7749. 800349e: 68bb ldr r3, [r7, #8]
  7750. 80034a0: 685b ldr r3, [r3, #4]
  7751. 80034a2: 4313 orrs r3, r2
  7752. 80034a4: 613b str r3, [r7, #16]
  7753. /* Calculate CR register value depending on DAC_Channel */
  7754. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  7755. 80034a6: 687b ldr r3, [r7, #4]
  7756. 80034a8: f003 0310 and.w r3, r3, #16
  7757. 80034ac: 693a ldr r2, [r7, #16]
  7758. 80034ae: fa02 f303 lsl.w r3, r2, r3
  7759. 80034b2: 697a ldr r2, [r7, #20]
  7760. 80034b4: 4313 orrs r3, r2
  7761. 80034b6: 617b str r3, [r7, #20]
  7762. /* Write to DAC CR */
  7763. hdac->Instance->CR = tmpreg1;
  7764. 80034b8: 68fb ldr r3, [r7, #12]
  7765. 80034ba: 681b ldr r3, [r3, #0]
  7766. 80034bc: 697a ldr r2, [r7, #20]
  7767. 80034be: 601a str r2, [r3, #0]
  7768. /* Disable wave generation */
  7769. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  7770. 80034c0: 68fb ldr r3, [r7, #12]
  7771. 80034c2: 681b ldr r3, [r3, #0]
  7772. 80034c4: 6819 ldr r1, [r3, #0]
  7773. 80034c6: 687b ldr r3, [r7, #4]
  7774. 80034c8: f003 0310 and.w r3, r3, #16
  7775. 80034cc: 22c0 movs r2, #192 ; 0xc0
  7776. 80034ce: fa02 f303 lsl.w r3, r2, r3
  7777. 80034d2: 43da mvns r2, r3
  7778. 80034d4: 68fb ldr r3, [r7, #12]
  7779. 80034d6: 681b ldr r3, [r3, #0]
  7780. 80034d8: 400a ands r2, r1
  7781. 80034da: 601a str r2, [r3, #0]
  7782. /* Change DAC state */
  7783. hdac->State = HAL_DAC_STATE_READY;
  7784. 80034dc: 68fb ldr r3, [r7, #12]
  7785. 80034de: 2201 movs r2, #1
  7786. 80034e0: 711a strb r2, [r3, #4]
  7787. /* Process unlocked */
  7788. __HAL_UNLOCK(hdac);
  7789. 80034e2: 68fb ldr r3, [r7, #12]
  7790. 80034e4: 2200 movs r2, #0
  7791. 80034e6: 715a strb r2, [r3, #5]
  7792. /* Return function status */
  7793. return HAL_OK;
  7794. 80034e8: 2300 movs r3, #0
  7795. }
  7796. 80034ea: 4618 mov r0, r3
  7797. 80034ec: 371c adds r7, #28
  7798. 80034ee: 46bd mov sp, r7
  7799. 80034f0: bc80 pop {r7}
  7800. 80034f2: 4770 bx lr
  7801. 080034f4 <HAL_DMA_Init>:
  7802. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  7803. * the configuration information for the specified DMA Channel.
  7804. * @retval HAL status
  7805. */
  7806. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  7807. {
  7808. 80034f4: b480 push {r7}
  7809. 80034f6: b085 sub sp, #20
  7810. 80034f8: af00 add r7, sp, #0
  7811. 80034fa: 6078 str r0, [r7, #4]
  7812. uint32_t tmp;
  7813. /* Check the DMA handle allocation */
  7814. if(hdma == NULL)
  7815. 80034fc: 687b ldr r3, [r7, #4]
  7816. 80034fe: 2b00 cmp r3, #0
  7817. 8003500: d101 bne.n 8003506 <HAL_DMA_Init+0x12>
  7818. {
  7819. return HAL_ERROR;
  7820. 8003502: 2301 movs r3, #1
  7821. 8003504: e043 b.n 800358e <HAL_DMA_Init+0x9a>
  7822. hdma->DmaBaseAddress = DMA2;
  7823. }
  7824. #else
  7825. /* calculation of the channel index */
  7826. /* DMA1 */
  7827. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2U;
  7828. 8003506: 687b ldr r3, [r7, #4]
  7829. 8003508: 681b ldr r3, [r3, #0]
  7830. 800350a: 461a mov r2, r3
  7831. 800350c: 4b22 ldr r3, [pc, #136] ; (8003598 <HAL_DMA_Init+0xa4>)
  7832. 800350e: 4413 add r3, r2
  7833. 8003510: 4a22 ldr r2, [pc, #136] ; (800359c <HAL_DMA_Init+0xa8>)
  7834. 8003512: fba2 2303 umull r2, r3, r2, r3
  7835. 8003516: 091b lsrs r3, r3, #4
  7836. 8003518: 009a lsls r2, r3, #2
  7837. 800351a: 687b ldr r3, [r7, #4]
  7838. 800351c: 641a str r2, [r3, #64] ; 0x40
  7839. hdma->DmaBaseAddress = DMA1;
  7840. 800351e: 687b ldr r3, [r7, #4]
  7841. 8003520: 4a1f ldr r2, [pc, #124] ; (80035a0 <HAL_DMA_Init+0xac>)
  7842. 8003522: 63da str r2, [r3, #60] ; 0x3c
  7843. #endif
  7844. /* Change DMA peripheral state */
  7845. hdma->State = HAL_DMA_STATE_BUSY;
  7846. 8003524: 687b ldr r3, [r7, #4]
  7847. 8003526: 2202 movs r2, #2
  7848. 8003528: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7849. /* Get the CR register value */
  7850. tmp = hdma->Instance->CCR;
  7851. 800352c: 687b ldr r3, [r7, #4]
  7852. 800352e: 681b ldr r3, [r3, #0]
  7853. 8003530: 681b ldr r3, [r3, #0]
  7854. 8003532: 60fb str r3, [r7, #12]
  7855. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR and MEM2MEM bits */
  7856. tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE |
  7857. 8003534: 68fb ldr r3, [r7, #12]
  7858. 8003536: f423 43ff bic.w r3, r3, #32640 ; 0x7f80
  7859. 800353a: f023 0370 bic.w r3, r3, #112 ; 0x70
  7860. 800353e: 60fb str r3, [r7, #12]
  7861. DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC |
  7862. DMA_CCR_DIR | DMA_CCR_MEM2MEM));
  7863. /* Prepare the DMA Channel configuration */
  7864. tmp |= hdma->Init.Direction |
  7865. 8003540: 687b ldr r3, [r7, #4]
  7866. 8003542: 685a ldr r2, [r3, #4]
  7867. hdma->Init.PeriphInc | hdma->Init.MemInc |
  7868. 8003544: 687b ldr r3, [r7, #4]
  7869. 8003546: 689b ldr r3, [r3, #8]
  7870. tmp |= hdma->Init.Direction |
  7871. 8003548: 431a orrs r2, r3
  7872. hdma->Init.PeriphInc | hdma->Init.MemInc |
  7873. 800354a: 687b ldr r3, [r7, #4]
  7874. 800354c: 68db ldr r3, [r3, #12]
  7875. 800354e: 431a orrs r2, r3
  7876. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  7877. 8003550: 687b ldr r3, [r7, #4]
  7878. 8003552: 691b ldr r3, [r3, #16]
  7879. hdma->Init.PeriphInc | hdma->Init.MemInc |
  7880. 8003554: 431a orrs r2, r3
  7881. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  7882. 8003556: 687b ldr r3, [r7, #4]
  7883. 8003558: 695b ldr r3, [r3, #20]
  7884. 800355a: 431a orrs r2, r3
  7885. hdma->Init.Mode | hdma->Init.Priority;
  7886. 800355c: 687b ldr r3, [r7, #4]
  7887. 800355e: 699b ldr r3, [r3, #24]
  7888. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  7889. 8003560: 431a orrs r2, r3
  7890. hdma->Init.Mode | hdma->Init.Priority;
  7891. 8003562: 687b ldr r3, [r7, #4]
  7892. 8003564: 69db ldr r3, [r3, #28]
  7893. 8003566: 4313 orrs r3, r2
  7894. tmp |= hdma->Init.Direction |
  7895. 8003568: 68fa ldr r2, [r7, #12]
  7896. 800356a: 4313 orrs r3, r2
  7897. 800356c: 60fb str r3, [r7, #12]
  7898. /* Write to DMA Channel CR register */
  7899. hdma->Instance->CCR = tmp;
  7900. 800356e: 687b ldr r3, [r7, #4]
  7901. 8003570: 681b ldr r3, [r3, #0]
  7902. 8003572: 68fa ldr r2, [r7, #12]
  7903. 8003574: 601a str r2, [r3, #0]
  7904. /* Initialise the error code */
  7905. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  7906. 8003576: 687b ldr r3, [r7, #4]
  7907. 8003578: 2200 movs r2, #0
  7908. 800357a: 639a str r2, [r3, #56] ; 0x38
  7909. /* Initialize the DMA state*/
  7910. hdma->State = HAL_DMA_STATE_READY;
  7911. 800357c: 687b ldr r3, [r7, #4]
  7912. 800357e: 2201 movs r2, #1
  7913. 8003580: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7914. /* Allocate lock resource and initialize it */
  7915. hdma->Lock = HAL_UNLOCKED;
  7916. 8003584: 687b ldr r3, [r7, #4]
  7917. 8003586: 2200 movs r2, #0
  7918. 8003588: f883 2020 strb.w r2, [r3, #32]
  7919. return HAL_OK;
  7920. 800358c: 2300 movs r3, #0
  7921. }
  7922. 800358e: 4618 mov r0, r3
  7923. 8003590: 3714 adds r7, #20
  7924. 8003592: 46bd mov sp, r7
  7925. 8003594: bc80 pop {r7}
  7926. 8003596: 4770 bx lr
  7927. 8003598: bffd9ff8 .word 0xbffd9ff8
  7928. 800359c: cccccccd .word 0xcccccccd
  7929. 80035a0: 40026000 .word 0x40026000
  7930. 080035a4 <HAL_DMA_Start_IT>:
  7931. * @param DstAddress The destination memory Buffer address
  7932. * @param DataLength The length of data to be transferred from source to destination
  7933. * @retval HAL status
  7934. */
  7935. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  7936. {
  7937. 80035a4: b580 push {r7, lr}
  7938. 80035a6: b086 sub sp, #24
  7939. 80035a8: af00 add r7, sp, #0
  7940. 80035aa: 60f8 str r0, [r7, #12]
  7941. 80035ac: 60b9 str r1, [r7, #8]
  7942. 80035ae: 607a str r2, [r7, #4]
  7943. 80035b0: 603b str r3, [r7, #0]
  7944. HAL_StatusTypeDef status = HAL_OK;
  7945. 80035b2: 2300 movs r3, #0
  7946. 80035b4: 75fb strb r3, [r7, #23]
  7947. /* Check the parameters */
  7948. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  7949. /* Process locked */
  7950. __HAL_LOCK(hdma);
  7951. 80035b6: 68fb ldr r3, [r7, #12]
  7952. 80035b8: f893 3020 ldrb.w r3, [r3, #32]
  7953. 80035bc: 2b01 cmp r3, #1
  7954. 80035be: d101 bne.n 80035c4 <HAL_DMA_Start_IT+0x20>
  7955. 80035c0: 2302 movs r3, #2
  7956. 80035c2: e04b b.n 800365c <HAL_DMA_Start_IT+0xb8>
  7957. 80035c4: 68fb ldr r3, [r7, #12]
  7958. 80035c6: 2201 movs r2, #1
  7959. 80035c8: f883 2020 strb.w r2, [r3, #32]
  7960. if(HAL_DMA_STATE_READY == hdma->State)
  7961. 80035cc: 68fb ldr r3, [r7, #12]
  7962. 80035ce: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  7963. 80035d2: b2db uxtb r3, r3
  7964. 80035d4: 2b01 cmp r3, #1
  7965. 80035d6: d13a bne.n 800364e <HAL_DMA_Start_IT+0xaa>
  7966. {
  7967. /* Change DMA peripheral state */
  7968. hdma->State = HAL_DMA_STATE_BUSY;
  7969. 80035d8: 68fb ldr r3, [r7, #12]
  7970. 80035da: 2202 movs r2, #2
  7971. 80035dc: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7972. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  7973. 80035e0: 68fb ldr r3, [r7, #12]
  7974. 80035e2: 2200 movs r2, #0
  7975. 80035e4: 639a str r2, [r3, #56] ; 0x38
  7976. /* Disable the peripheral */
  7977. __HAL_DMA_DISABLE(hdma);
  7978. 80035e6: 68fb ldr r3, [r7, #12]
  7979. 80035e8: 681b ldr r3, [r3, #0]
  7980. 80035ea: 681a ldr r2, [r3, #0]
  7981. 80035ec: 68fb ldr r3, [r7, #12]
  7982. 80035ee: 681b ldr r3, [r3, #0]
  7983. 80035f0: f022 0201 bic.w r2, r2, #1
  7984. 80035f4: 601a str r2, [r3, #0]
  7985. /* Configure the source, destination address and the data length & clear flags*/
  7986. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  7987. 80035f6: 683b ldr r3, [r7, #0]
  7988. 80035f8: 687a ldr r2, [r7, #4]
  7989. 80035fa: 68b9 ldr r1, [r7, #8]
  7990. 80035fc: 68f8 ldr r0, [r7, #12]
  7991. 80035fe: f000 f91d bl 800383c <DMA_SetConfig>
  7992. /* Enable the transfer complete interrupt */
  7993. /* Enable the transfer Error interrupt */
  7994. if(NULL != hdma->XferHalfCpltCallback )
  7995. 8003602: 68fb ldr r3, [r7, #12]
  7996. 8003604: 6adb ldr r3, [r3, #44] ; 0x2c
  7997. 8003606: 2b00 cmp r3, #0
  7998. 8003608: d008 beq.n 800361c <HAL_DMA_Start_IT+0x78>
  7999. {
  8000. /* Enable the Half transfer complete interrupt as well */
  8001. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  8002. 800360a: 68fb ldr r3, [r7, #12]
  8003. 800360c: 681b ldr r3, [r3, #0]
  8004. 800360e: 681a ldr r2, [r3, #0]
  8005. 8003610: 68fb ldr r3, [r7, #12]
  8006. 8003612: 681b ldr r3, [r3, #0]
  8007. 8003614: f042 020e orr.w r2, r2, #14
  8008. 8003618: 601a str r2, [r3, #0]
  8009. 800361a: e00f b.n 800363c <HAL_DMA_Start_IT+0x98>
  8010. }
  8011. else
  8012. {
  8013. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  8014. 800361c: 68fb ldr r3, [r7, #12]
  8015. 800361e: 681b ldr r3, [r3, #0]
  8016. 8003620: 681a ldr r2, [r3, #0]
  8017. 8003622: 68fb ldr r3, [r7, #12]
  8018. 8003624: 681b ldr r3, [r3, #0]
  8019. 8003626: f022 0204 bic.w r2, r2, #4
  8020. 800362a: 601a str r2, [r3, #0]
  8021. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
  8022. 800362c: 68fb ldr r3, [r7, #12]
  8023. 800362e: 681b ldr r3, [r3, #0]
  8024. 8003630: 681a ldr r2, [r3, #0]
  8025. 8003632: 68fb ldr r3, [r7, #12]
  8026. 8003634: 681b ldr r3, [r3, #0]
  8027. 8003636: f042 020a orr.w r2, r2, #10
  8028. 800363a: 601a str r2, [r3, #0]
  8029. }
  8030. /* Enable the Peripheral */
  8031. __HAL_DMA_ENABLE(hdma);
  8032. 800363c: 68fb ldr r3, [r7, #12]
  8033. 800363e: 681b ldr r3, [r3, #0]
  8034. 8003640: 681a ldr r2, [r3, #0]
  8035. 8003642: 68fb ldr r3, [r7, #12]
  8036. 8003644: 681b ldr r3, [r3, #0]
  8037. 8003646: f042 0201 orr.w r2, r2, #1
  8038. 800364a: 601a str r2, [r3, #0]
  8039. 800364c: e005 b.n 800365a <HAL_DMA_Start_IT+0xb6>
  8040. }
  8041. else
  8042. {
  8043. /* Process Unlocked */
  8044. __HAL_UNLOCK(hdma);
  8045. 800364e: 68fb ldr r3, [r7, #12]
  8046. 8003650: 2200 movs r2, #0
  8047. 8003652: f883 2020 strb.w r2, [r3, #32]
  8048. /* Remain BUSY */
  8049. status = HAL_BUSY;
  8050. 8003656: 2302 movs r3, #2
  8051. 8003658: 75fb strb r3, [r7, #23]
  8052. }
  8053. return status;
  8054. 800365a: 7dfb ldrb r3, [r7, #23]
  8055. }
  8056. 800365c: 4618 mov r0, r3
  8057. 800365e: 3718 adds r7, #24
  8058. 8003660: 46bd mov sp, r7
  8059. 8003662: bd80 pop {r7, pc}
  8060. 08003664 <HAL_DMA_Abort>:
  8061. * @param hdma pointer to a DMA_HandleTypeDef structure that contains
  8062. * the configuration information for the specified DMA Channel.
  8063. * @retval HAL status
  8064. */
  8065. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  8066. {
  8067. 8003664: b480 push {r7}
  8068. 8003666: b085 sub sp, #20
  8069. 8003668: af00 add r7, sp, #0
  8070. 800366a: 6078 str r0, [r7, #4]
  8071. HAL_StatusTypeDef status = HAL_OK;
  8072. 800366c: 2300 movs r3, #0
  8073. 800366e: 73fb strb r3, [r7, #15]
  8074. /* Check the DMA peripheral state */
  8075. if(hdma->State != HAL_DMA_STATE_BUSY)
  8076. 8003670: 687b ldr r3, [r7, #4]
  8077. 8003672: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  8078. 8003676: b2db uxtb r3, r3
  8079. 8003678: 2b02 cmp r3, #2
  8080. 800367a: d008 beq.n 800368e <HAL_DMA_Abort+0x2a>
  8081. {
  8082. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  8083. 800367c: 687b ldr r3, [r7, #4]
  8084. 800367e: 2204 movs r2, #4
  8085. 8003680: 639a str r2, [r3, #56] ; 0x38
  8086. /* Process Unlocked */
  8087. __HAL_UNLOCK(hdma);
  8088. 8003682: 687b ldr r3, [r7, #4]
  8089. 8003684: 2200 movs r2, #0
  8090. 8003686: f883 2020 strb.w r2, [r3, #32]
  8091. return HAL_ERROR;
  8092. 800368a: 2301 movs r3, #1
  8093. 800368c: e022 b.n 80036d4 <HAL_DMA_Abort+0x70>
  8094. }
  8095. else
  8096. {
  8097. /* Disable DMA IT */
  8098. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  8099. 800368e: 687b ldr r3, [r7, #4]
  8100. 8003690: 681b ldr r3, [r3, #0]
  8101. 8003692: 681a ldr r2, [r3, #0]
  8102. 8003694: 687b ldr r3, [r7, #4]
  8103. 8003696: 681b ldr r3, [r3, #0]
  8104. 8003698: f022 020e bic.w r2, r2, #14
  8105. 800369c: 601a str r2, [r3, #0]
  8106. /* Disable the channel */
  8107. __HAL_DMA_DISABLE(hdma);
  8108. 800369e: 687b ldr r3, [r7, #4]
  8109. 80036a0: 681b ldr r3, [r3, #0]
  8110. 80036a2: 681a ldr r2, [r3, #0]
  8111. 80036a4: 687b ldr r3, [r7, #4]
  8112. 80036a6: 681b ldr r3, [r3, #0]
  8113. 80036a8: f022 0201 bic.w r2, r2, #1
  8114. 80036ac: 601a str r2, [r3, #0]
  8115. /* Clear all flags */
  8116. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  8117. 80036ae: 687b ldr r3, [r7, #4]
  8118. 80036b0: 6c1b ldr r3, [r3, #64] ; 0x40
  8119. 80036b2: f003 021c and.w r2, r3, #28
  8120. 80036b6: 687b ldr r3, [r7, #4]
  8121. 80036b8: 6bdb ldr r3, [r3, #60] ; 0x3c
  8122. 80036ba: 2101 movs r1, #1
  8123. 80036bc: fa01 f202 lsl.w r2, r1, r2
  8124. 80036c0: 605a str r2, [r3, #4]
  8125. /* Change the DMA state */
  8126. hdma->State = HAL_DMA_STATE_READY;
  8127. 80036c2: 687b ldr r3, [r7, #4]
  8128. 80036c4: 2201 movs r2, #1
  8129. 80036c6: f883 2021 strb.w r2, [r3, #33] ; 0x21
  8130. /* Process Unlocked */
  8131. __HAL_UNLOCK(hdma);
  8132. 80036ca: 687b ldr r3, [r7, #4]
  8133. 80036cc: 2200 movs r2, #0
  8134. 80036ce: f883 2020 strb.w r2, [r3, #32]
  8135. return status;
  8136. 80036d2: 7bfb ldrb r3, [r7, #15]
  8137. }
  8138. }
  8139. 80036d4: 4618 mov r0, r3
  8140. 80036d6: 3714 adds r7, #20
  8141. 80036d8: 46bd mov sp, r7
  8142. 80036da: bc80 pop {r7}
  8143. 80036dc: 4770 bx lr
  8144. 080036de <HAL_DMA_IRQHandler>:
  8145. * @param hdma pointer to a DMA_HandleTypeDef structure that contains
  8146. * the configuration information for the specified DMA Channel.
  8147. * @retval None
  8148. */
  8149. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  8150. {
  8151. 80036de: b580 push {r7, lr}
  8152. 80036e0: b084 sub sp, #16
  8153. 80036e2: af00 add r7, sp, #0
  8154. 80036e4: 6078 str r0, [r7, #4]
  8155. uint32_t flag_it = hdma->DmaBaseAddress->ISR;
  8156. 80036e6: 687b ldr r3, [r7, #4]
  8157. 80036e8: 6bdb ldr r3, [r3, #60] ; 0x3c
  8158. 80036ea: 681b ldr r3, [r3, #0]
  8159. 80036ec: 60fb str r3, [r7, #12]
  8160. uint32_t source_it = hdma->Instance->CCR;
  8161. 80036ee: 687b ldr r3, [r7, #4]
  8162. 80036f0: 681b ldr r3, [r3, #0]
  8163. 80036f2: 681b ldr r3, [r3, #0]
  8164. 80036f4: 60bb str r3, [r7, #8]
  8165. /* Half Transfer Complete Interrupt management ******************************/
  8166. if (((flag_it & (DMA_FLAG_HT1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_HT) != 0U))
  8167. 80036f6: 687b ldr r3, [r7, #4]
  8168. 80036f8: 6c1b ldr r3, [r3, #64] ; 0x40
  8169. 80036fa: f003 031c and.w r3, r3, #28
  8170. 80036fe: 2204 movs r2, #4
  8171. 8003700: 409a lsls r2, r3
  8172. 8003702: 68fb ldr r3, [r7, #12]
  8173. 8003704: 4013 ands r3, r2
  8174. 8003706: 2b00 cmp r3, #0
  8175. 8003708: d026 beq.n 8003758 <HAL_DMA_IRQHandler+0x7a>
  8176. 800370a: 68bb ldr r3, [r7, #8]
  8177. 800370c: f003 0304 and.w r3, r3, #4
  8178. 8003710: 2b00 cmp r3, #0
  8179. 8003712: d021 beq.n 8003758 <HAL_DMA_IRQHandler+0x7a>
  8180. {
  8181. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  8182. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  8183. 8003714: 687b ldr r3, [r7, #4]
  8184. 8003716: 681b ldr r3, [r3, #0]
  8185. 8003718: 681b ldr r3, [r3, #0]
  8186. 800371a: f003 0320 and.w r3, r3, #32
  8187. 800371e: 2b00 cmp r3, #0
  8188. 8003720: d107 bne.n 8003732 <HAL_DMA_IRQHandler+0x54>
  8189. {
  8190. /* Disable the half transfer interrupt */
  8191. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  8192. 8003722: 687b ldr r3, [r7, #4]
  8193. 8003724: 681b ldr r3, [r3, #0]
  8194. 8003726: 681a ldr r2, [r3, #0]
  8195. 8003728: 687b ldr r3, [r7, #4]
  8196. 800372a: 681b ldr r3, [r3, #0]
  8197. 800372c: f022 0204 bic.w r2, r2, #4
  8198. 8003730: 601a str r2, [r3, #0]
  8199. }
  8200. /* Clear the half transfer complete flag */
  8201. hdma->DmaBaseAddress->IFCR = DMA_ISR_HTIF1 << (hdma->ChannelIndex & 0x1CU);
  8202. 8003732: 687b ldr r3, [r7, #4]
  8203. 8003734: 6c1b ldr r3, [r3, #64] ; 0x40
  8204. 8003736: f003 021c and.w r2, r3, #28
  8205. 800373a: 687b ldr r3, [r7, #4]
  8206. 800373c: 6bdb ldr r3, [r3, #60] ; 0x3c
  8207. 800373e: 2104 movs r1, #4
  8208. 8003740: fa01 f202 lsl.w r2, r1, r2
  8209. 8003744: 605a str r2, [r3, #4]
  8210. /* DMA peripheral state is not updated in Half Transfer */
  8211. /* but in Transfer Complete case */
  8212. if(hdma->XferHalfCpltCallback != NULL)
  8213. 8003746: 687b ldr r3, [r7, #4]
  8214. 8003748: 6adb ldr r3, [r3, #44] ; 0x2c
  8215. 800374a: 2b00 cmp r3, #0
  8216. 800374c: d071 beq.n 8003832 <HAL_DMA_IRQHandler+0x154>
  8217. {
  8218. /* Half transfer callback */
  8219. hdma->XferHalfCpltCallback(hdma);
  8220. 800374e: 687b ldr r3, [r7, #4]
  8221. 8003750: 6adb ldr r3, [r3, #44] ; 0x2c
  8222. 8003752: 6878 ldr r0, [r7, #4]
  8223. 8003754: 4798 blx r3
  8224. if(hdma->XferHalfCpltCallback != NULL)
  8225. 8003756: e06c b.n 8003832 <HAL_DMA_IRQHandler+0x154>
  8226. }
  8227. }
  8228. /* Transfer Complete Interrupt management ***********************************/
  8229. else if (((flag_it & (DMA_FLAG_TC1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_TC) != 0U))
  8230. 8003758: 687b ldr r3, [r7, #4]
  8231. 800375a: 6c1b ldr r3, [r3, #64] ; 0x40
  8232. 800375c: f003 031c and.w r3, r3, #28
  8233. 8003760: 2202 movs r2, #2
  8234. 8003762: 409a lsls r2, r3
  8235. 8003764: 68fb ldr r3, [r7, #12]
  8236. 8003766: 4013 ands r3, r2
  8237. 8003768: 2b00 cmp r3, #0
  8238. 800376a: d02e beq.n 80037ca <HAL_DMA_IRQHandler+0xec>
  8239. 800376c: 68bb ldr r3, [r7, #8]
  8240. 800376e: f003 0302 and.w r3, r3, #2
  8241. 8003772: 2b00 cmp r3, #0
  8242. 8003774: d029 beq.n 80037ca <HAL_DMA_IRQHandler+0xec>
  8243. {
  8244. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  8245. 8003776: 687b ldr r3, [r7, #4]
  8246. 8003778: 681b ldr r3, [r3, #0]
  8247. 800377a: 681b ldr r3, [r3, #0]
  8248. 800377c: f003 0320 and.w r3, r3, #32
  8249. 8003780: 2b00 cmp r3, #0
  8250. 8003782: d10b bne.n 800379c <HAL_DMA_IRQHandler+0xbe>
  8251. {
  8252. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  8253. /* Disable the transfer complete and error interrupt */
  8254. /* if the DMA mode is not CIRCULAR */
  8255. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  8256. 8003784: 687b ldr r3, [r7, #4]
  8257. 8003786: 681b ldr r3, [r3, #0]
  8258. 8003788: 681a ldr r2, [r3, #0]
  8259. 800378a: 687b ldr r3, [r7, #4]
  8260. 800378c: 681b ldr r3, [r3, #0]
  8261. 800378e: f022 020a bic.w r2, r2, #10
  8262. 8003792: 601a str r2, [r3, #0]
  8263. /* Change the DMA state */
  8264. hdma->State = HAL_DMA_STATE_READY;
  8265. 8003794: 687b ldr r3, [r7, #4]
  8266. 8003796: 2201 movs r2, #1
  8267. 8003798: f883 2021 strb.w r2, [r3, #33] ; 0x21
  8268. }
  8269. /* Clear the transfer complete flag */
  8270. hdma->DmaBaseAddress->IFCR = (DMA_ISR_TCIF1 << (hdma->ChannelIndex & 0x1CU));
  8271. 800379c: 687b ldr r3, [r7, #4]
  8272. 800379e: 6c1b ldr r3, [r3, #64] ; 0x40
  8273. 80037a0: f003 021c and.w r2, r3, #28
  8274. 80037a4: 687b ldr r3, [r7, #4]
  8275. 80037a6: 6bdb ldr r3, [r3, #60] ; 0x3c
  8276. 80037a8: 2102 movs r1, #2
  8277. 80037aa: fa01 f202 lsl.w r2, r1, r2
  8278. 80037ae: 605a str r2, [r3, #4]
  8279. /* Process Unlocked */
  8280. __HAL_UNLOCK(hdma);
  8281. 80037b0: 687b ldr r3, [r7, #4]
  8282. 80037b2: 2200 movs r2, #0
  8283. 80037b4: f883 2020 strb.w r2, [r3, #32]
  8284. if(hdma->XferCpltCallback != NULL)
  8285. 80037b8: 687b ldr r3, [r7, #4]
  8286. 80037ba: 6a9b ldr r3, [r3, #40] ; 0x28
  8287. 80037bc: 2b00 cmp r3, #0
  8288. 80037be: d038 beq.n 8003832 <HAL_DMA_IRQHandler+0x154>
  8289. {
  8290. /* Transfer complete callback */
  8291. hdma->XferCpltCallback(hdma);
  8292. 80037c0: 687b ldr r3, [r7, #4]
  8293. 80037c2: 6a9b ldr r3, [r3, #40] ; 0x28
  8294. 80037c4: 6878 ldr r0, [r7, #4]
  8295. 80037c6: 4798 blx r3
  8296. if(hdma->XferCpltCallback != NULL)
  8297. 80037c8: e033 b.n 8003832 <HAL_DMA_IRQHandler+0x154>
  8298. }
  8299. }
  8300. /* Transfer Error Interrupt management **************************************/
  8301. else if (((flag_it & (DMA_FLAG_TE1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_TE) != 0U))
  8302. 80037ca: 687b ldr r3, [r7, #4]
  8303. 80037cc: 6c1b ldr r3, [r3, #64] ; 0x40
  8304. 80037ce: f003 031c and.w r3, r3, #28
  8305. 80037d2: 2208 movs r2, #8
  8306. 80037d4: 409a lsls r2, r3
  8307. 80037d6: 68fb ldr r3, [r7, #12]
  8308. 80037d8: 4013 ands r3, r2
  8309. 80037da: 2b00 cmp r3, #0
  8310. 80037dc: d02a beq.n 8003834 <HAL_DMA_IRQHandler+0x156>
  8311. 80037de: 68bb ldr r3, [r7, #8]
  8312. 80037e0: f003 0308 and.w r3, r3, #8
  8313. 80037e4: 2b00 cmp r3, #0
  8314. 80037e6: d025 beq.n 8003834 <HAL_DMA_IRQHandler+0x156>
  8315. {
  8316. /* When a DMA transfer error occurs */
  8317. /* A hardware clear of its EN bits is performed */
  8318. /* Disable ALL DMA IT */
  8319. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  8320. 80037e8: 687b ldr r3, [r7, #4]
  8321. 80037ea: 681b ldr r3, [r3, #0]
  8322. 80037ec: 681a ldr r2, [r3, #0]
  8323. 80037ee: 687b ldr r3, [r7, #4]
  8324. 80037f0: 681b ldr r3, [r3, #0]
  8325. 80037f2: f022 020e bic.w r2, r2, #14
  8326. 80037f6: 601a str r2, [r3, #0]
  8327. /* Clear all flags */
  8328. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  8329. 80037f8: 687b ldr r3, [r7, #4]
  8330. 80037fa: 6c1b ldr r3, [r3, #64] ; 0x40
  8331. 80037fc: f003 021c and.w r2, r3, #28
  8332. 8003800: 687b ldr r3, [r7, #4]
  8333. 8003802: 6bdb ldr r3, [r3, #60] ; 0x3c
  8334. 8003804: 2101 movs r1, #1
  8335. 8003806: fa01 f202 lsl.w r2, r1, r2
  8336. 800380a: 605a str r2, [r3, #4]
  8337. /* Update error code */
  8338. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  8339. 800380c: 687b ldr r3, [r7, #4]
  8340. 800380e: 2201 movs r2, #1
  8341. 8003810: 639a str r2, [r3, #56] ; 0x38
  8342. /* Change the DMA state */
  8343. hdma->State = HAL_DMA_STATE_READY;
  8344. 8003812: 687b ldr r3, [r7, #4]
  8345. 8003814: 2201 movs r2, #1
  8346. 8003816: f883 2021 strb.w r2, [r3, #33] ; 0x21
  8347. /* Process Unlocked */
  8348. __HAL_UNLOCK(hdma);
  8349. 800381a: 687b ldr r3, [r7, #4]
  8350. 800381c: 2200 movs r2, #0
  8351. 800381e: f883 2020 strb.w r2, [r3, #32]
  8352. if (hdma->XferErrorCallback != NULL)
  8353. 8003822: 687b ldr r3, [r7, #4]
  8354. 8003824: 6b1b ldr r3, [r3, #48] ; 0x30
  8355. 8003826: 2b00 cmp r3, #0
  8356. 8003828: d004 beq.n 8003834 <HAL_DMA_IRQHandler+0x156>
  8357. {
  8358. /* Transfer error callback */
  8359. hdma->XferErrorCallback(hdma);
  8360. 800382a: 687b ldr r3, [r7, #4]
  8361. 800382c: 6b1b ldr r3, [r3, #48] ; 0x30
  8362. 800382e: 6878 ldr r0, [r7, #4]
  8363. 8003830: 4798 blx r3
  8364. }
  8365. else
  8366. {
  8367. /* Nothing To Do */
  8368. }
  8369. return;
  8370. 8003832: bf00 nop
  8371. 8003834: bf00 nop
  8372. }
  8373. 8003836: 3710 adds r7, #16
  8374. 8003838: 46bd mov sp, r7
  8375. 800383a: bd80 pop {r7, pc}
  8376. 0800383c <DMA_SetConfig>:
  8377. * @param DstAddress The destination memory Buffer address
  8378. * @param DataLength The length of data to be transferred from source to destination
  8379. * @retval HAL status
  8380. */
  8381. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  8382. {
  8383. 800383c: b480 push {r7}
  8384. 800383e: b085 sub sp, #20
  8385. 8003840: af00 add r7, sp, #0
  8386. 8003842: 60f8 str r0, [r7, #12]
  8387. 8003844: 60b9 str r1, [r7, #8]
  8388. 8003846: 607a str r2, [r7, #4]
  8389. 8003848: 603b str r3, [r7, #0]
  8390. /* Clear all flags */
  8391. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  8392. 800384a: 68fb ldr r3, [r7, #12]
  8393. 800384c: 6c1b ldr r3, [r3, #64] ; 0x40
  8394. 800384e: f003 021c and.w r2, r3, #28
  8395. 8003852: 68fb ldr r3, [r7, #12]
  8396. 8003854: 6bdb ldr r3, [r3, #60] ; 0x3c
  8397. 8003856: 2101 movs r1, #1
  8398. 8003858: fa01 f202 lsl.w r2, r1, r2
  8399. 800385c: 605a str r2, [r3, #4]
  8400. /* Configure DMA Channel data length */
  8401. hdma->Instance->CNDTR = DataLength;
  8402. 800385e: 68fb ldr r3, [r7, #12]
  8403. 8003860: 681b ldr r3, [r3, #0]
  8404. 8003862: 683a ldr r2, [r7, #0]
  8405. 8003864: 605a str r2, [r3, #4]
  8406. /* Memory to Peripheral */
  8407. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  8408. 8003866: 68fb ldr r3, [r7, #12]
  8409. 8003868: 685b ldr r3, [r3, #4]
  8410. 800386a: 2b10 cmp r3, #16
  8411. 800386c: d108 bne.n 8003880 <DMA_SetConfig+0x44>
  8412. {
  8413. /* Configure DMA Channel destination address */
  8414. hdma->Instance->CPAR = DstAddress;
  8415. 800386e: 68fb ldr r3, [r7, #12]
  8416. 8003870: 681b ldr r3, [r3, #0]
  8417. 8003872: 687a ldr r2, [r7, #4]
  8418. 8003874: 609a str r2, [r3, #8]
  8419. /* Configure DMA Channel source address */
  8420. hdma->Instance->CMAR = SrcAddress;
  8421. 8003876: 68fb ldr r3, [r7, #12]
  8422. 8003878: 681b ldr r3, [r3, #0]
  8423. 800387a: 68ba ldr r2, [r7, #8]
  8424. 800387c: 60da str r2, [r3, #12]
  8425. hdma->Instance->CPAR = SrcAddress;
  8426. /* Configure DMA Channel destination address */
  8427. hdma->Instance->CMAR = DstAddress;
  8428. }
  8429. }
  8430. 800387e: e007 b.n 8003890 <DMA_SetConfig+0x54>
  8431. hdma->Instance->CPAR = SrcAddress;
  8432. 8003880: 68fb ldr r3, [r7, #12]
  8433. 8003882: 681b ldr r3, [r3, #0]
  8434. 8003884: 68ba ldr r2, [r7, #8]
  8435. 8003886: 609a str r2, [r3, #8]
  8436. hdma->Instance->CMAR = DstAddress;
  8437. 8003888: 68fb ldr r3, [r7, #12]
  8438. 800388a: 681b ldr r3, [r3, #0]
  8439. 800388c: 687a ldr r2, [r7, #4]
  8440. 800388e: 60da str r2, [r3, #12]
  8441. }
  8442. 8003890: bf00 nop
  8443. 8003892: 3714 adds r7, #20
  8444. 8003894: 46bd mov sp, r7
  8445. 8003896: bc80 pop {r7}
  8446. 8003898: 4770 bx lr
  8447. ...
  8448. 0800389c <HAL_GPIO_Init>:
  8449. * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains
  8450. * the configuration information for the specified GPIO peripheral.
  8451. * @retval None
  8452. */
  8453. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  8454. {
  8455. 800389c: b480 push {r7}
  8456. 800389e: b087 sub sp, #28
  8457. 80038a0: af00 add r7, sp, #0
  8458. 80038a2: 6078 str r0, [r7, #4]
  8459. 80038a4: 6039 str r1, [r7, #0]
  8460. uint32_t position = 0x00;
  8461. 80038a6: 2300 movs r3, #0
  8462. 80038a8: 617b str r3, [r7, #20]
  8463. uint32_t iocurrent = 0x00;
  8464. 80038aa: 2300 movs r3, #0
  8465. 80038ac: 60fb str r3, [r7, #12]
  8466. uint32_t temp = 0x00;
  8467. 80038ae: 2300 movs r3, #0
  8468. 80038b0: 613b str r3, [r7, #16]
  8469. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  8470. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  8471. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  8472. /* Configure the port pins */
  8473. while (((GPIO_Init->Pin) >> position) != 0)
  8474. 80038b2: e154 b.n 8003b5e <HAL_GPIO_Init+0x2c2>
  8475. {
  8476. /* Get current io position */
  8477. iocurrent = (GPIO_Init->Pin) & (1U << position);
  8478. 80038b4: 683b ldr r3, [r7, #0]
  8479. 80038b6: 681a ldr r2, [r3, #0]
  8480. 80038b8: 2101 movs r1, #1
  8481. 80038ba: 697b ldr r3, [r7, #20]
  8482. 80038bc: fa01 f303 lsl.w r3, r1, r3
  8483. 80038c0: 4013 ands r3, r2
  8484. 80038c2: 60fb str r3, [r7, #12]
  8485. if (iocurrent)
  8486. 80038c4: 68fb ldr r3, [r7, #12]
  8487. 80038c6: 2b00 cmp r3, #0
  8488. 80038c8: f000 8146 beq.w 8003b58 <HAL_GPIO_Init+0x2bc>
  8489. {
  8490. /*--------------------- GPIO Mode Configuration ------------------------*/
  8491. /* In case of Output or Alternate function mode selection */
  8492. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) ||
  8493. 80038cc: 683b ldr r3, [r7, #0]
  8494. 80038ce: 685b ldr r3, [r3, #4]
  8495. 80038d0: f003 0303 and.w r3, r3, #3
  8496. 80038d4: 2b01 cmp r3, #1
  8497. 80038d6: d005 beq.n 80038e4 <HAL_GPIO_Init+0x48>
  8498. ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  8499. 80038d8: 683b ldr r3, [r7, #0]
  8500. 80038da: 685b ldr r3, [r3, #4]
  8501. 80038dc: f003 0303 and.w r3, r3, #3
  8502. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) ||
  8503. 80038e0: 2b02 cmp r3, #2
  8504. 80038e2: d130 bne.n 8003946 <HAL_GPIO_Init+0xaa>
  8505. {
  8506. /* Check the Speed parameter */
  8507. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  8508. /* Configure the IO Speed */
  8509. temp = GPIOx->OSPEEDR;
  8510. 80038e4: 687b ldr r3, [r7, #4]
  8511. 80038e6: 689b ldr r3, [r3, #8]
  8512. 80038e8: 613b str r3, [r7, #16]
  8513. CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2));
  8514. 80038ea: 697b ldr r3, [r7, #20]
  8515. 80038ec: 005b lsls r3, r3, #1
  8516. 80038ee: 2203 movs r2, #3
  8517. 80038f0: fa02 f303 lsl.w r3, r2, r3
  8518. 80038f4: 43db mvns r3, r3
  8519. 80038f6: 693a ldr r2, [r7, #16]
  8520. 80038f8: 4013 ands r3, r2
  8521. 80038fa: 613b str r3, [r7, #16]
  8522. SET_BIT(temp, GPIO_Init->Speed << (position * 2));
  8523. 80038fc: 683b ldr r3, [r7, #0]
  8524. 80038fe: 68da ldr r2, [r3, #12]
  8525. 8003900: 697b ldr r3, [r7, #20]
  8526. 8003902: 005b lsls r3, r3, #1
  8527. 8003904: fa02 f303 lsl.w r3, r2, r3
  8528. 8003908: 693a ldr r2, [r7, #16]
  8529. 800390a: 4313 orrs r3, r2
  8530. 800390c: 613b str r3, [r7, #16]
  8531. GPIOx->OSPEEDR = temp;
  8532. 800390e: 687b ldr r3, [r7, #4]
  8533. 8003910: 693a ldr r2, [r7, #16]
  8534. 8003912: 609a str r2, [r3, #8]
  8535. /* Configure the IO Output Type */
  8536. temp = GPIOx->OTYPER;
  8537. 8003914: 687b ldr r3, [r7, #4]
  8538. 8003916: 685b ldr r3, [r3, #4]
  8539. 8003918: 613b str r3, [r7, #16]
  8540. CLEAR_BIT(temp, GPIO_OTYPER_OT_0 << position) ;
  8541. 800391a: 2201 movs r2, #1
  8542. 800391c: 697b ldr r3, [r7, #20]
  8543. 800391e: fa02 f303 lsl.w r3, r2, r3
  8544. 8003922: 43db mvns r3, r3
  8545. 8003924: 693a ldr r2, [r7, #16]
  8546. 8003926: 4013 ands r3, r2
  8547. 8003928: 613b str r3, [r7, #16]
  8548. SET_BIT(temp, ((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  8549. 800392a: 683b ldr r3, [r7, #0]
  8550. 800392c: 685b ldr r3, [r3, #4]
  8551. 800392e: 091b lsrs r3, r3, #4
  8552. 8003930: f003 0201 and.w r2, r3, #1
  8553. 8003934: 697b ldr r3, [r7, #20]
  8554. 8003936: fa02 f303 lsl.w r3, r2, r3
  8555. 800393a: 693a ldr r2, [r7, #16]
  8556. 800393c: 4313 orrs r3, r2
  8557. 800393e: 613b str r3, [r7, #16]
  8558. GPIOx->OTYPER = temp;
  8559. 8003940: 687b ldr r3, [r7, #4]
  8560. 8003942: 693a ldr r2, [r7, #16]
  8561. 8003944: 605a str r2, [r3, #4]
  8562. }
  8563. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  8564. 8003946: 683b ldr r3, [r7, #0]
  8565. 8003948: 685b ldr r3, [r3, #4]
  8566. 800394a: f003 0303 and.w r3, r3, #3
  8567. 800394e: 2b03 cmp r3, #3
  8568. 8003950: d017 beq.n 8003982 <HAL_GPIO_Init+0xe6>
  8569. {
  8570. /* Check the Pull parameter */
  8571. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  8572. /* Activate the Pull-up or Pull down resistor for the current IO */
  8573. temp = GPIOx->PUPDR;
  8574. 8003952: 687b ldr r3, [r7, #4]
  8575. 8003954: 68db ldr r3, [r3, #12]
  8576. 8003956: 613b str r3, [r7, #16]
  8577. CLEAR_BIT(temp, GPIO_PUPDR_PUPDR0 << (position * 2));
  8578. 8003958: 697b ldr r3, [r7, #20]
  8579. 800395a: 005b lsls r3, r3, #1
  8580. 800395c: 2203 movs r2, #3
  8581. 800395e: fa02 f303 lsl.w r3, r2, r3
  8582. 8003962: 43db mvns r3, r3
  8583. 8003964: 693a ldr r2, [r7, #16]
  8584. 8003966: 4013 ands r3, r2
  8585. 8003968: 613b str r3, [r7, #16]
  8586. SET_BIT(temp, (GPIO_Init->Pull) << (position * 2));
  8587. 800396a: 683b ldr r3, [r7, #0]
  8588. 800396c: 689a ldr r2, [r3, #8]
  8589. 800396e: 697b ldr r3, [r7, #20]
  8590. 8003970: 005b lsls r3, r3, #1
  8591. 8003972: fa02 f303 lsl.w r3, r2, r3
  8592. 8003976: 693a ldr r2, [r7, #16]
  8593. 8003978: 4313 orrs r3, r2
  8594. 800397a: 613b str r3, [r7, #16]
  8595. GPIOx->PUPDR = temp;
  8596. 800397c: 687b ldr r3, [r7, #4]
  8597. 800397e: 693a ldr r2, [r7, #16]
  8598. 8003980: 60da str r2, [r3, #12]
  8599. }
  8600. /* In case of Alternate function mode selection */
  8601. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  8602. 8003982: 683b ldr r3, [r7, #0]
  8603. 8003984: 685b ldr r3, [r3, #4]
  8604. 8003986: f003 0303 and.w r3, r3, #3
  8605. 800398a: 2b02 cmp r3, #2
  8606. 800398c: d123 bne.n 80039d6 <HAL_GPIO_Init+0x13a>
  8607. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  8608. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  8609. /* Configure Alternate function mapped with the current IO */
  8610. /* Identify AFRL or AFRH register based on IO position*/
  8611. temp = GPIOx->AFR[position >> 3];
  8612. 800398e: 697b ldr r3, [r7, #20]
  8613. 8003990: 08da lsrs r2, r3, #3
  8614. 8003992: 687b ldr r3, [r7, #4]
  8615. 8003994: 3208 adds r2, #8
  8616. 8003996: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  8617. 800399a: 613b str r3, [r7, #16]
  8618. CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4));
  8619. 800399c: 697b ldr r3, [r7, #20]
  8620. 800399e: f003 0307 and.w r3, r3, #7
  8621. 80039a2: 009b lsls r3, r3, #2
  8622. 80039a4: 220f movs r2, #15
  8623. 80039a6: fa02 f303 lsl.w r3, r2, r3
  8624. 80039aa: 43db mvns r3, r3
  8625. 80039ac: 693a ldr r2, [r7, #16]
  8626. 80039ae: 4013 ands r3, r2
  8627. 80039b0: 613b str r3, [r7, #16]
  8628. SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4));
  8629. 80039b2: 683b ldr r3, [r7, #0]
  8630. 80039b4: 691a ldr r2, [r3, #16]
  8631. 80039b6: 697b ldr r3, [r7, #20]
  8632. 80039b8: f003 0307 and.w r3, r3, #7
  8633. 80039bc: 009b lsls r3, r3, #2
  8634. 80039be: fa02 f303 lsl.w r3, r2, r3
  8635. 80039c2: 693a ldr r2, [r7, #16]
  8636. 80039c4: 4313 orrs r3, r2
  8637. 80039c6: 613b str r3, [r7, #16]
  8638. GPIOx->AFR[position >> 3] = temp;
  8639. 80039c8: 697b ldr r3, [r7, #20]
  8640. 80039ca: 08da lsrs r2, r3, #3
  8641. 80039cc: 687b ldr r3, [r7, #4]
  8642. 80039ce: 3208 adds r2, #8
  8643. 80039d0: 6939 ldr r1, [r7, #16]
  8644. 80039d2: f843 1022 str.w r1, [r3, r2, lsl #2]
  8645. }
  8646. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  8647. temp = GPIOx->MODER;
  8648. 80039d6: 687b ldr r3, [r7, #4]
  8649. 80039d8: 681b ldr r3, [r3, #0]
  8650. 80039da: 613b str r3, [r7, #16]
  8651. CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2));
  8652. 80039dc: 697b ldr r3, [r7, #20]
  8653. 80039de: 005b lsls r3, r3, #1
  8654. 80039e0: 2203 movs r2, #3
  8655. 80039e2: fa02 f303 lsl.w r3, r2, r3
  8656. 80039e6: 43db mvns r3, r3
  8657. 80039e8: 693a ldr r2, [r7, #16]
  8658. 80039ea: 4013 ands r3, r2
  8659. 80039ec: 613b str r3, [r7, #16]
  8660. SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2));
  8661. 80039ee: 683b ldr r3, [r7, #0]
  8662. 80039f0: 685b ldr r3, [r3, #4]
  8663. 80039f2: f003 0203 and.w r2, r3, #3
  8664. 80039f6: 697b ldr r3, [r7, #20]
  8665. 80039f8: 005b lsls r3, r3, #1
  8666. 80039fa: fa02 f303 lsl.w r3, r2, r3
  8667. 80039fe: 693a ldr r2, [r7, #16]
  8668. 8003a00: 4313 orrs r3, r2
  8669. 8003a02: 613b str r3, [r7, #16]
  8670. GPIOx->MODER = temp;
  8671. 8003a04: 687b ldr r3, [r7, #4]
  8672. 8003a06: 693a ldr r2, [r7, #16]
  8673. 8003a08: 601a str r2, [r3, #0]
  8674. /*--------------------- EXTI Mode Configuration ------------------------*/
  8675. /* Configure the External Interrupt or event for the current IO */
  8676. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  8677. 8003a0a: 683b ldr r3, [r7, #0]
  8678. 8003a0c: 685b ldr r3, [r3, #4]
  8679. 8003a0e: f403 3340 and.w r3, r3, #196608 ; 0x30000
  8680. 8003a12: 2b00 cmp r3, #0
  8681. 8003a14: f000 80a0 beq.w 8003b58 <HAL_GPIO_Init+0x2bc>
  8682. {
  8683. /* Enable SYSCFG Clock */
  8684. __HAL_RCC_SYSCFG_CLK_ENABLE();
  8685. 8003a18: 4b58 ldr r3, [pc, #352] ; (8003b7c <HAL_GPIO_Init+0x2e0>)
  8686. 8003a1a: 6a1b ldr r3, [r3, #32]
  8687. 8003a1c: 4a57 ldr r2, [pc, #348] ; (8003b7c <HAL_GPIO_Init+0x2e0>)
  8688. 8003a1e: f043 0301 orr.w r3, r3, #1
  8689. 8003a22: 6213 str r3, [r2, #32]
  8690. 8003a24: 4b55 ldr r3, [pc, #340] ; (8003b7c <HAL_GPIO_Init+0x2e0>)
  8691. 8003a26: 6a1b ldr r3, [r3, #32]
  8692. 8003a28: f003 0301 and.w r3, r3, #1
  8693. 8003a2c: 60bb str r3, [r7, #8]
  8694. 8003a2e: 68bb ldr r3, [r7, #8]
  8695. temp = SYSCFG->EXTICR[position >> 2];
  8696. 8003a30: 4a53 ldr r2, [pc, #332] ; (8003b80 <HAL_GPIO_Init+0x2e4>)
  8697. 8003a32: 697b ldr r3, [r7, #20]
  8698. 8003a34: 089b lsrs r3, r3, #2
  8699. 8003a36: 3302 adds r3, #2
  8700. 8003a38: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  8701. 8003a3c: 613b str r3, [r7, #16]
  8702. CLEAR_BIT(temp, (0x0FU) << (4 * (position & 0x03)));
  8703. 8003a3e: 697b ldr r3, [r7, #20]
  8704. 8003a40: f003 0303 and.w r3, r3, #3
  8705. 8003a44: 009b lsls r3, r3, #2
  8706. 8003a46: 220f movs r2, #15
  8707. 8003a48: fa02 f303 lsl.w r3, r2, r3
  8708. 8003a4c: 43db mvns r3, r3
  8709. 8003a4e: 693a ldr r2, [r7, #16]
  8710. 8003a50: 4013 ands r3, r2
  8711. 8003a52: 613b str r3, [r7, #16]
  8712. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03)));
  8713. 8003a54: 687b ldr r3, [r7, #4]
  8714. 8003a56: 4a4b ldr r2, [pc, #300] ; (8003b84 <HAL_GPIO_Init+0x2e8>)
  8715. 8003a58: 4293 cmp r3, r2
  8716. 8003a5a: d019 beq.n 8003a90 <HAL_GPIO_Init+0x1f4>
  8717. 8003a5c: 687b ldr r3, [r7, #4]
  8718. 8003a5e: 4a4a ldr r2, [pc, #296] ; (8003b88 <HAL_GPIO_Init+0x2ec>)
  8719. 8003a60: 4293 cmp r3, r2
  8720. 8003a62: d013 beq.n 8003a8c <HAL_GPIO_Init+0x1f0>
  8721. 8003a64: 687b ldr r3, [r7, #4]
  8722. 8003a66: 4a49 ldr r2, [pc, #292] ; (8003b8c <HAL_GPIO_Init+0x2f0>)
  8723. 8003a68: 4293 cmp r3, r2
  8724. 8003a6a: d00d beq.n 8003a88 <HAL_GPIO_Init+0x1ec>
  8725. 8003a6c: 687b ldr r3, [r7, #4]
  8726. 8003a6e: 4a48 ldr r2, [pc, #288] ; (8003b90 <HAL_GPIO_Init+0x2f4>)
  8727. 8003a70: 4293 cmp r3, r2
  8728. 8003a72: d007 beq.n 8003a84 <HAL_GPIO_Init+0x1e8>
  8729. 8003a74: 687b ldr r3, [r7, #4]
  8730. 8003a76: 4a47 ldr r2, [pc, #284] ; (8003b94 <HAL_GPIO_Init+0x2f8>)
  8731. 8003a78: 4293 cmp r3, r2
  8732. 8003a7a: d101 bne.n 8003a80 <HAL_GPIO_Init+0x1e4>
  8733. 8003a7c: 2304 movs r3, #4
  8734. 8003a7e: e008 b.n 8003a92 <HAL_GPIO_Init+0x1f6>
  8735. 8003a80: 2305 movs r3, #5
  8736. 8003a82: e006 b.n 8003a92 <HAL_GPIO_Init+0x1f6>
  8737. 8003a84: 2303 movs r3, #3
  8738. 8003a86: e004 b.n 8003a92 <HAL_GPIO_Init+0x1f6>
  8739. 8003a88: 2302 movs r3, #2
  8740. 8003a8a: e002 b.n 8003a92 <HAL_GPIO_Init+0x1f6>
  8741. 8003a8c: 2301 movs r3, #1
  8742. 8003a8e: e000 b.n 8003a92 <HAL_GPIO_Init+0x1f6>
  8743. 8003a90: 2300 movs r3, #0
  8744. 8003a92: 697a ldr r2, [r7, #20]
  8745. 8003a94: f002 0203 and.w r2, r2, #3
  8746. 8003a98: 0092 lsls r2, r2, #2
  8747. 8003a9a: 4093 lsls r3, r2
  8748. 8003a9c: 693a ldr r2, [r7, #16]
  8749. 8003a9e: 4313 orrs r3, r2
  8750. 8003aa0: 613b str r3, [r7, #16]
  8751. SYSCFG->EXTICR[position >> 2] = temp;
  8752. 8003aa2: 4937 ldr r1, [pc, #220] ; (8003b80 <HAL_GPIO_Init+0x2e4>)
  8753. 8003aa4: 697b ldr r3, [r7, #20]
  8754. 8003aa6: 089b lsrs r3, r3, #2
  8755. 8003aa8: 3302 adds r3, #2
  8756. 8003aaa: 693a ldr r2, [r7, #16]
  8757. 8003aac: f841 2023 str.w r2, [r1, r3, lsl #2]
  8758. /* Clear EXTI line configuration */
  8759. temp = EXTI->IMR;
  8760. 8003ab0: 4b39 ldr r3, [pc, #228] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8761. 8003ab2: 681b ldr r3, [r3, #0]
  8762. 8003ab4: 613b str r3, [r7, #16]
  8763. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8764. 8003ab6: 68fb ldr r3, [r7, #12]
  8765. 8003ab8: 43db mvns r3, r3
  8766. 8003aba: 693a ldr r2, [r7, #16]
  8767. 8003abc: 4013 ands r3, r2
  8768. 8003abe: 613b str r3, [r7, #16]
  8769. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  8770. 8003ac0: 683b ldr r3, [r7, #0]
  8771. 8003ac2: 685b ldr r3, [r3, #4]
  8772. 8003ac4: f403 3380 and.w r3, r3, #65536 ; 0x10000
  8773. 8003ac8: 2b00 cmp r3, #0
  8774. 8003aca: d003 beq.n 8003ad4 <HAL_GPIO_Init+0x238>
  8775. {
  8776. SET_BIT(temp, iocurrent);
  8777. 8003acc: 693a ldr r2, [r7, #16]
  8778. 8003ace: 68fb ldr r3, [r7, #12]
  8779. 8003ad0: 4313 orrs r3, r2
  8780. 8003ad2: 613b str r3, [r7, #16]
  8781. }
  8782. EXTI->IMR = temp;
  8783. 8003ad4: 4a30 ldr r2, [pc, #192] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8784. 8003ad6: 693b ldr r3, [r7, #16]
  8785. 8003ad8: 6013 str r3, [r2, #0]
  8786. temp = EXTI->EMR;
  8787. 8003ada: 4b2f ldr r3, [pc, #188] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8788. 8003adc: 685b ldr r3, [r3, #4]
  8789. 8003ade: 613b str r3, [r7, #16]
  8790. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8791. 8003ae0: 68fb ldr r3, [r7, #12]
  8792. 8003ae2: 43db mvns r3, r3
  8793. 8003ae4: 693a ldr r2, [r7, #16]
  8794. 8003ae6: 4013 ands r3, r2
  8795. 8003ae8: 613b str r3, [r7, #16]
  8796. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  8797. 8003aea: 683b ldr r3, [r7, #0]
  8798. 8003aec: 685b ldr r3, [r3, #4]
  8799. 8003aee: f403 3300 and.w r3, r3, #131072 ; 0x20000
  8800. 8003af2: 2b00 cmp r3, #0
  8801. 8003af4: d003 beq.n 8003afe <HAL_GPIO_Init+0x262>
  8802. {
  8803. SET_BIT(temp, iocurrent);
  8804. 8003af6: 693a ldr r2, [r7, #16]
  8805. 8003af8: 68fb ldr r3, [r7, #12]
  8806. 8003afa: 4313 orrs r3, r2
  8807. 8003afc: 613b str r3, [r7, #16]
  8808. }
  8809. EXTI->EMR = temp;
  8810. 8003afe: 4a26 ldr r2, [pc, #152] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8811. 8003b00: 693b ldr r3, [r7, #16]
  8812. 8003b02: 6053 str r3, [r2, #4]
  8813. /* Clear Rising Falling edge configuration */
  8814. temp = EXTI->RTSR;
  8815. 8003b04: 4b24 ldr r3, [pc, #144] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8816. 8003b06: 689b ldr r3, [r3, #8]
  8817. 8003b08: 613b str r3, [r7, #16]
  8818. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8819. 8003b0a: 68fb ldr r3, [r7, #12]
  8820. 8003b0c: 43db mvns r3, r3
  8821. 8003b0e: 693a ldr r2, [r7, #16]
  8822. 8003b10: 4013 ands r3, r2
  8823. 8003b12: 613b str r3, [r7, #16]
  8824. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  8825. 8003b14: 683b ldr r3, [r7, #0]
  8826. 8003b16: 685b ldr r3, [r3, #4]
  8827. 8003b18: f403 1380 and.w r3, r3, #1048576 ; 0x100000
  8828. 8003b1c: 2b00 cmp r3, #0
  8829. 8003b1e: d003 beq.n 8003b28 <HAL_GPIO_Init+0x28c>
  8830. {
  8831. SET_BIT(temp, iocurrent);
  8832. 8003b20: 693a ldr r2, [r7, #16]
  8833. 8003b22: 68fb ldr r3, [r7, #12]
  8834. 8003b24: 4313 orrs r3, r2
  8835. 8003b26: 613b str r3, [r7, #16]
  8836. }
  8837. EXTI->RTSR = temp;
  8838. 8003b28: 4a1b ldr r2, [pc, #108] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8839. 8003b2a: 693b ldr r3, [r7, #16]
  8840. 8003b2c: 6093 str r3, [r2, #8]
  8841. temp = EXTI->FTSR;
  8842. 8003b2e: 4b1a ldr r3, [pc, #104] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8843. 8003b30: 68db ldr r3, [r3, #12]
  8844. 8003b32: 613b str r3, [r7, #16]
  8845. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8846. 8003b34: 68fb ldr r3, [r7, #12]
  8847. 8003b36: 43db mvns r3, r3
  8848. 8003b38: 693a ldr r2, [r7, #16]
  8849. 8003b3a: 4013 ands r3, r2
  8850. 8003b3c: 613b str r3, [r7, #16]
  8851. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  8852. 8003b3e: 683b ldr r3, [r7, #0]
  8853. 8003b40: 685b ldr r3, [r3, #4]
  8854. 8003b42: f403 1300 and.w r3, r3, #2097152 ; 0x200000
  8855. 8003b46: 2b00 cmp r3, #0
  8856. 8003b48: d003 beq.n 8003b52 <HAL_GPIO_Init+0x2b6>
  8857. {
  8858. SET_BIT(temp, iocurrent);
  8859. 8003b4a: 693a ldr r2, [r7, #16]
  8860. 8003b4c: 68fb ldr r3, [r7, #12]
  8861. 8003b4e: 4313 orrs r3, r2
  8862. 8003b50: 613b str r3, [r7, #16]
  8863. }
  8864. EXTI->FTSR = temp;
  8865. 8003b52: 4a11 ldr r2, [pc, #68] ; (8003b98 <HAL_GPIO_Init+0x2fc>)
  8866. 8003b54: 693b ldr r3, [r7, #16]
  8867. 8003b56: 60d3 str r3, [r2, #12]
  8868. }
  8869. }
  8870. position++;
  8871. 8003b58: 697b ldr r3, [r7, #20]
  8872. 8003b5a: 3301 adds r3, #1
  8873. 8003b5c: 617b str r3, [r7, #20]
  8874. while (((GPIO_Init->Pin) >> position) != 0)
  8875. 8003b5e: 683b ldr r3, [r7, #0]
  8876. 8003b60: 681a ldr r2, [r3, #0]
  8877. 8003b62: 697b ldr r3, [r7, #20]
  8878. 8003b64: fa22 f303 lsr.w r3, r2, r3
  8879. 8003b68: 2b00 cmp r3, #0
  8880. 8003b6a: f47f aea3 bne.w 80038b4 <HAL_GPIO_Init+0x18>
  8881. }
  8882. }
  8883. 8003b6e: bf00 nop
  8884. 8003b70: bf00 nop
  8885. 8003b72: 371c adds r7, #28
  8886. 8003b74: 46bd mov sp, r7
  8887. 8003b76: bc80 pop {r7}
  8888. 8003b78: 4770 bx lr
  8889. 8003b7a: bf00 nop
  8890. 8003b7c: 40023800 .word 0x40023800
  8891. 8003b80: 40010000 .word 0x40010000
  8892. 8003b84: 40020000 .word 0x40020000
  8893. 8003b88: 40020400 .word 0x40020400
  8894. 8003b8c: 40020800 .word 0x40020800
  8895. 8003b90: 40020c00 .word 0x40020c00
  8896. 8003b94: 40021000 .word 0x40021000
  8897. 8003b98: 40010400 .word 0x40010400
  8898. 08003b9c <HAL_GPIO_DeInit>:
  8899. * @param GPIO_Pin specifies the port bit to be written.
  8900. * This parameter can be one of GPIO_PIN_x where x can be (0..15).
  8901. * @retval None
  8902. */
  8903. void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin)
  8904. {
  8905. 8003b9c: b480 push {r7}
  8906. 8003b9e: b087 sub sp, #28
  8907. 8003ba0: af00 add r7, sp, #0
  8908. 8003ba2: 6078 str r0, [r7, #4]
  8909. 8003ba4: 6039 str r1, [r7, #0]
  8910. uint32_t position = 0x00;
  8911. 8003ba6: 2300 movs r3, #0
  8912. 8003ba8: 617b str r3, [r7, #20]
  8913. uint32_t iocurrent = 0x00;
  8914. 8003baa: 2300 movs r3, #0
  8915. 8003bac: 613b str r3, [r7, #16]
  8916. uint32_t tmp = 0x00;
  8917. 8003bae: 2300 movs r3, #0
  8918. 8003bb0: 60fb str r3, [r7, #12]
  8919. /* Check the parameters */
  8920. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  8921. assert_param(IS_GPIO_PIN(GPIO_Pin));
  8922. /* Configure the port pins */
  8923. while ((GPIO_Pin >> position) != 0)
  8924. 8003bb2: e0b8 b.n 8003d26 <HAL_GPIO_DeInit+0x18a>
  8925. {
  8926. /* Get current io position */
  8927. iocurrent = (GPIO_Pin) & (1U << position);
  8928. 8003bb4: 2201 movs r2, #1
  8929. 8003bb6: 697b ldr r3, [r7, #20]
  8930. 8003bb8: fa02 f303 lsl.w r3, r2, r3
  8931. 8003bbc: 683a ldr r2, [r7, #0]
  8932. 8003bbe: 4013 ands r3, r2
  8933. 8003bc0: 613b str r3, [r7, #16]
  8934. if (iocurrent)
  8935. 8003bc2: 693b ldr r3, [r7, #16]
  8936. 8003bc4: 2b00 cmp r3, #0
  8937. 8003bc6: f000 80ab beq.w 8003d20 <HAL_GPIO_DeInit+0x184>
  8938. {
  8939. /*------------------------- EXTI Mode Configuration --------------------*/
  8940. /* Clear the External Interrupt or Event for the current IO */
  8941. tmp = SYSCFG->EXTICR[position >> 2];
  8942. 8003bca: 4a5d ldr r2, [pc, #372] ; (8003d40 <HAL_GPIO_DeInit+0x1a4>)
  8943. 8003bcc: 697b ldr r3, [r7, #20]
  8944. 8003bce: 089b lsrs r3, r3, #2
  8945. 8003bd0: 3302 adds r3, #2
  8946. 8003bd2: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  8947. 8003bd6: 60fb str r3, [r7, #12]
  8948. tmp &= ((0x0FU) << (4 * (position & 0x03)));
  8949. 8003bd8: 697b ldr r3, [r7, #20]
  8950. 8003bda: f003 0303 and.w r3, r3, #3
  8951. 8003bde: 009b lsls r3, r3, #2
  8952. 8003be0: 220f movs r2, #15
  8953. 8003be2: fa02 f303 lsl.w r3, r2, r3
  8954. 8003be6: 68fa ldr r2, [r7, #12]
  8955. 8003be8: 4013 ands r3, r2
  8956. 8003bea: 60fb str r3, [r7, #12]
  8957. if (tmp == (GPIO_GET_INDEX(GPIOx) << (4 * (position & 0x03))))
  8958. 8003bec: 687b ldr r3, [r7, #4]
  8959. 8003bee: 4a55 ldr r2, [pc, #340] ; (8003d44 <HAL_GPIO_DeInit+0x1a8>)
  8960. 8003bf0: 4293 cmp r3, r2
  8961. 8003bf2: d019 beq.n 8003c28 <HAL_GPIO_DeInit+0x8c>
  8962. 8003bf4: 687b ldr r3, [r7, #4]
  8963. 8003bf6: 4a54 ldr r2, [pc, #336] ; (8003d48 <HAL_GPIO_DeInit+0x1ac>)
  8964. 8003bf8: 4293 cmp r3, r2
  8965. 8003bfa: d013 beq.n 8003c24 <HAL_GPIO_DeInit+0x88>
  8966. 8003bfc: 687b ldr r3, [r7, #4]
  8967. 8003bfe: 4a53 ldr r2, [pc, #332] ; (8003d4c <HAL_GPIO_DeInit+0x1b0>)
  8968. 8003c00: 4293 cmp r3, r2
  8969. 8003c02: d00d beq.n 8003c20 <HAL_GPIO_DeInit+0x84>
  8970. 8003c04: 687b ldr r3, [r7, #4]
  8971. 8003c06: 4a52 ldr r2, [pc, #328] ; (8003d50 <HAL_GPIO_DeInit+0x1b4>)
  8972. 8003c08: 4293 cmp r3, r2
  8973. 8003c0a: d007 beq.n 8003c1c <HAL_GPIO_DeInit+0x80>
  8974. 8003c0c: 687b ldr r3, [r7, #4]
  8975. 8003c0e: 4a51 ldr r2, [pc, #324] ; (8003d54 <HAL_GPIO_DeInit+0x1b8>)
  8976. 8003c10: 4293 cmp r3, r2
  8977. 8003c12: d101 bne.n 8003c18 <HAL_GPIO_DeInit+0x7c>
  8978. 8003c14: 2304 movs r3, #4
  8979. 8003c16: e008 b.n 8003c2a <HAL_GPIO_DeInit+0x8e>
  8980. 8003c18: 2305 movs r3, #5
  8981. 8003c1a: e006 b.n 8003c2a <HAL_GPIO_DeInit+0x8e>
  8982. 8003c1c: 2303 movs r3, #3
  8983. 8003c1e: e004 b.n 8003c2a <HAL_GPIO_DeInit+0x8e>
  8984. 8003c20: 2302 movs r3, #2
  8985. 8003c22: e002 b.n 8003c2a <HAL_GPIO_DeInit+0x8e>
  8986. 8003c24: 2301 movs r3, #1
  8987. 8003c26: e000 b.n 8003c2a <HAL_GPIO_DeInit+0x8e>
  8988. 8003c28: 2300 movs r3, #0
  8989. 8003c2a: 697a ldr r2, [r7, #20]
  8990. 8003c2c: f002 0203 and.w r2, r2, #3
  8991. 8003c30: 0092 lsls r2, r2, #2
  8992. 8003c32: 4093 lsls r3, r2
  8993. 8003c34: 68fa ldr r2, [r7, #12]
  8994. 8003c36: 429a cmp r2, r3
  8995. 8003c38: d132 bne.n 8003ca0 <HAL_GPIO_DeInit+0x104>
  8996. {
  8997. /* Clear EXTI line configuration */
  8998. CLEAR_BIT(EXTI->IMR, (uint32_t)iocurrent);
  8999. 8003c3a: 4b47 ldr r3, [pc, #284] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9000. 8003c3c: 681a ldr r2, [r3, #0]
  9001. 8003c3e: 693b ldr r3, [r7, #16]
  9002. 8003c40: 43db mvns r3, r3
  9003. 8003c42: 4945 ldr r1, [pc, #276] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9004. 8003c44: 4013 ands r3, r2
  9005. 8003c46: 600b str r3, [r1, #0]
  9006. CLEAR_BIT(EXTI->EMR, (uint32_t)iocurrent);
  9007. 8003c48: 4b43 ldr r3, [pc, #268] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9008. 8003c4a: 685a ldr r2, [r3, #4]
  9009. 8003c4c: 693b ldr r3, [r7, #16]
  9010. 8003c4e: 43db mvns r3, r3
  9011. 8003c50: 4941 ldr r1, [pc, #260] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9012. 8003c52: 4013 ands r3, r2
  9013. 8003c54: 604b str r3, [r1, #4]
  9014. /* Clear Rising Falling edge configuration */
  9015. CLEAR_BIT(EXTI->RTSR, (uint32_t)iocurrent);
  9016. 8003c56: 4b40 ldr r3, [pc, #256] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9017. 8003c58: 689a ldr r2, [r3, #8]
  9018. 8003c5a: 693b ldr r3, [r7, #16]
  9019. 8003c5c: 43db mvns r3, r3
  9020. 8003c5e: 493e ldr r1, [pc, #248] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9021. 8003c60: 4013 ands r3, r2
  9022. 8003c62: 608b str r3, [r1, #8]
  9023. CLEAR_BIT(EXTI->FTSR, (uint32_t)iocurrent);
  9024. 8003c64: 4b3c ldr r3, [pc, #240] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9025. 8003c66: 68da ldr r2, [r3, #12]
  9026. 8003c68: 693b ldr r3, [r7, #16]
  9027. 8003c6a: 43db mvns r3, r3
  9028. 8003c6c: 493a ldr r1, [pc, #232] ; (8003d58 <HAL_GPIO_DeInit+0x1bc>)
  9029. 8003c6e: 4013 ands r3, r2
  9030. 8003c70: 60cb str r3, [r1, #12]
  9031. tmp = (0x0FU) << (4 * (position & 0x03));
  9032. 8003c72: 697b ldr r3, [r7, #20]
  9033. 8003c74: f003 0303 and.w r3, r3, #3
  9034. 8003c78: 009b lsls r3, r3, #2
  9035. 8003c7a: 220f movs r2, #15
  9036. 8003c7c: fa02 f303 lsl.w r3, r2, r3
  9037. 8003c80: 60fb str r3, [r7, #12]
  9038. CLEAR_BIT(SYSCFG->EXTICR[position >> 2], tmp);
  9039. 8003c82: 4a2f ldr r2, [pc, #188] ; (8003d40 <HAL_GPIO_DeInit+0x1a4>)
  9040. 8003c84: 697b ldr r3, [r7, #20]
  9041. 8003c86: 089b lsrs r3, r3, #2
  9042. 8003c88: 3302 adds r3, #2
  9043. 8003c8a: f852 1023 ldr.w r1, [r2, r3, lsl #2]
  9044. 8003c8e: 68fb ldr r3, [r7, #12]
  9045. 8003c90: 43da mvns r2, r3
  9046. 8003c92: 482b ldr r0, [pc, #172] ; (8003d40 <HAL_GPIO_DeInit+0x1a4>)
  9047. 8003c94: 697b ldr r3, [r7, #20]
  9048. 8003c96: 089b lsrs r3, r3, #2
  9049. 8003c98: 400a ands r2, r1
  9050. 8003c9a: 3302 adds r3, #2
  9051. 8003c9c: f840 2023 str.w r2, [r0, r3, lsl #2]
  9052. }
  9053. /*------------------------- GPIO Mode Configuration --------------------*/
  9054. /* Configure IO Direction in Input Floting Mode */
  9055. CLEAR_BIT(GPIOx->MODER, GPIO_MODER_MODER0 << (position * 2));
  9056. 8003ca0: 687b ldr r3, [r7, #4]
  9057. 8003ca2: 681a ldr r2, [r3, #0]
  9058. 8003ca4: 697b ldr r3, [r7, #20]
  9059. 8003ca6: 005b lsls r3, r3, #1
  9060. 8003ca8: 2103 movs r1, #3
  9061. 8003caa: fa01 f303 lsl.w r3, r1, r3
  9062. 8003cae: 43db mvns r3, r3
  9063. 8003cb0: 401a ands r2, r3
  9064. 8003cb2: 687b ldr r3, [r7, #4]
  9065. 8003cb4: 601a str r2, [r3, #0]
  9066. /* Configure the default Alternate Function in current IO */
  9067. CLEAR_BIT(GPIOx->AFR[position >> 3], 0xFU << ((uint32_t)(position & 0x07U) * 4)) ;
  9068. 8003cb6: 697b ldr r3, [r7, #20]
  9069. 8003cb8: 08da lsrs r2, r3, #3
  9070. 8003cba: 687b ldr r3, [r7, #4]
  9071. 8003cbc: 3208 adds r2, #8
  9072. 8003cbe: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  9073. 8003cc2: 697b ldr r3, [r7, #20]
  9074. 8003cc4: f003 0307 and.w r3, r3, #7
  9075. 8003cc8: 009b lsls r3, r3, #2
  9076. 8003cca: 220f movs r2, #15
  9077. 8003ccc: fa02 f303 lsl.w r3, r2, r3
  9078. 8003cd0: 43db mvns r3, r3
  9079. 8003cd2: 697a ldr r2, [r7, #20]
  9080. 8003cd4: 08d2 lsrs r2, r2, #3
  9081. 8003cd6: 4019 ands r1, r3
  9082. 8003cd8: 687b ldr r3, [r7, #4]
  9083. 8003cda: 3208 adds r2, #8
  9084. 8003cdc: f843 1022 str.w r1, [r3, r2, lsl #2]
  9085. /* Deactivate the Pull-up oand Pull-down resistor for the current IO */
  9086. CLEAR_BIT(GPIOx->PUPDR, GPIO_PUPDR_PUPDR0 << (position * 2));
  9087. 8003ce0: 687b ldr r3, [r7, #4]
  9088. 8003ce2: 68da ldr r2, [r3, #12]
  9089. 8003ce4: 697b ldr r3, [r7, #20]
  9090. 8003ce6: 005b lsls r3, r3, #1
  9091. 8003ce8: 2103 movs r1, #3
  9092. 8003cea: fa01 f303 lsl.w r3, r1, r3
  9093. 8003cee: 43db mvns r3, r3
  9094. 8003cf0: 401a ands r2, r3
  9095. 8003cf2: 687b ldr r3, [r7, #4]
  9096. 8003cf4: 60da str r2, [r3, #12]
  9097. /* Configure the default value IO Output Type */
  9098. CLEAR_BIT(GPIOx->OTYPER, GPIO_OTYPER_OT_0 << position) ;
  9099. 8003cf6: 687b ldr r3, [r7, #4]
  9100. 8003cf8: 685a ldr r2, [r3, #4]
  9101. 8003cfa: 2101 movs r1, #1
  9102. 8003cfc: 697b ldr r3, [r7, #20]
  9103. 8003cfe: fa01 f303 lsl.w r3, r1, r3
  9104. 8003d02: 43db mvns r3, r3
  9105. 8003d04: 401a ands r2, r3
  9106. 8003d06: 687b ldr r3, [r7, #4]
  9107. 8003d08: 605a str r2, [r3, #4]
  9108. /* Configure the default value for IO Speed */
  9109. CLEAR_BIT(GPIOx->OSPEEDR, GPIO_OSPEEDER_OSPEEDR0 << (position * 2));
  9110. 8003d0a: 687b ldr r3, [r7, #4]
  9111. 8003d0c: 689a ldr r2, [r3, #8]
  9112. 8003d0e: 697b ldr r3, [r7, #20]
  9113. 8003d10: 005b lsls r3, r3, #1
  9114. 8003d12: 2103 movs r1, #3
  9115. 8003d14: fa01 f303 lsl.w r3, r1, r3
  9116. 8003d18: 43db mvns r3, r3
  9117. 8003d1a: 401a ands r2, r3
  9118. 8003d1c: 687b ldr r3, [r7, #4]
  9119. 8003d1e: 609a str r2, [r3, #8]
  9120. }
  9121. position++;
  9122. 8003d20: 697b ldr r3, [r7, #20]
  9123. 8003d22: 3301 adds r3, #1
  9124. 8003d24: 617b str r3, [r7, #20]
  9125. while ((GPIO_Pin >> position) != 0)
  9126. 8003d26: 683a ldr r2, [r7, #0]
  9127. 8003d28: 697b ldr r3, [r7, #20]
  9128. 8003d2a: fa22 f303 lsr.w r3, r2, r3
  9129. 8003d2e: 2b00 cmp r3, #0
  9130. 8003d30: f47f af40 bne.w 8003bb4 <HAL_GPIO_DeInit+0x18>
  9131. }
  9132. }
  9133. 8003d34: bf00 nop
  9134. 8003d36: bf00 nop
  9135. 8003d38: 371c adds r7, #28
  9136. 8003d3a: 46bd mov sp, r7
  9137. 8003d3c: bc80 pop {r7}
  9138. 8003d3e: 4770 bx lr
  9139. 8003d40: 40010000 .word 0x40010000
  9140. 8003d44: 40020000 .word 0x40020000
  9141. 8003d48: 40020400 .word 0x40020400
  9142. 8003d4c: 40020800 .word 0x40020800
  9143. 8003d50: 40020c00 .word 0x40020c00
  9144. 8003d54: 40021000 .word 0x40021000
  9145. 8003d58: 40010400 .word 0x40010400
  9146. 08003d5c <HAL_GPIO_WritePin>:
  9147. * @arg GPIO_PIN_RESET: to clear the port pin
  9148. * @arg GPIO_PIN_SET: to set the port pin
  9149. * @retval None
  9150. */
  9151. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  9152. {
  9153. 8003d5c: b480 push {r7}
  9154. 8003d5e: b083 sub sp, #12
  9155. 8003d60: af00 add r7, sp, #0
  9156. 8003d62: 6078 str r0, [r7, #4]
  9157. 8003d64: 460b mov r3, r1
  9158. 8003d66: 807b strh r3, [r7, #2]
  9159. 8003d68: 4613 mov r3, r2
  9160. 8003d6a: 707b strb r3, [r7, #1]
  9161. /* Check the parameters */
  9162. assert_param(IS_GPIO_PIN(GPIO_Pin));
  9163. assert_param(IS_GPIO_PIN_ACTION(PinState));
  9164. if (PinState != GPIO_PIN_RESET)
  9165. 8003d6c: 787b ldrb r3, [r7, #1]
  9166. 8003d6e: 2b00 cmp r3, #0
  9167. 8003d70: d003 beq.n 8003d7a <HAL_GPIO_WritePin+0x1e>
  9168. {
  9169. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  9170. 8003d72: 887a ldrh r2, [r7, #2]
  9171. 8003d74: 687b ldr r3, [r7, #4]
  9172. 8003d76: 619a str r2, [r3, #24]
  9173. }
  9174. else
  9175. {
  9176. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16 ;
  9177. }
  9178. }
  9179. 8003d78: e003 b.n 8003d82 <HAL_GPIO_WritePin+0x26>
  9180. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16 ;
  9181. 8003d7a: 887b ldrh r3, [r7, #2]
  9182. 8003d7c: 041a lsls r2, r3, #16
  9183. 8003d7e: 687b ldr r3, [r7, #4]
  9184. 8003d80: 619a str r2, [r3, #24]
  9185. }
  9186. 8003d82: bf00 nop
  9187. 8003d84: 370c adds r7, #12
  9188. 8003d86: 46bd mov sp, r7
  9189. 8003d88: bc80 pop {r7}
  9190. 8003d8a: 4770 bx lr
  9191. 08003d8c <HAL_GPIO_EXTI_IRQHandler>:
  9192. * @brief This function handles EXTI interrupt request.
  9193. * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
  9194. * @retval None
  9195. */
  9196. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  9197. {
  9198. 8003d8c: b580 push {r7, lr}
  9199. 8003d8e: b082 sub sp, #8
  9200. 8003d90: af00 add r7, sp, #0
  9201. 8003d92: 4603 mov r3, r0
  9202. 8003d94: 80fb strh r3, [r7, #6]
  9203. /* EXTI line interrupt detected */
  9204. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET)
  9205. 8003d96: 4b08 ldr r3, [pc, #32] ; (8003db8 <HAL_GPIO_EXTI_IRQHandler+0x2c>)
  9206. 8003d98: 695a ldr r2, [r3, #20]
  9207. 8003d9a: 88fb ldrh r3, [r7, #6]
  9208. 8003d9c: 4013 ands r3, r2
  9209. 8003d9e: 2b00 cmp r3, #0
  9210. 8003da0: d006 beq.n 8003db0 <HAL_GPIO_EXTI_IRQHandler+0x24>
  9211. {
  9212. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  9213. 8003da2: 4a05 ldr r2, [pc, #20] ; (8003db8 <HAL_GPIO_EXTI_IRQHandler+0x2c>)
  9214. 8003da4: 88fb ldrh r3, [r7, #6]
  9215. 8003da6: 6153 str r3, [r2, #20]
  9216. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  9217. 8003da8: 88fb ldrh r3, [r7, #6]
  9218. 8003daa: 4618 mov r0, r3
  9219. 8003dac: f7fd f91e bl 8000fec <HAL_GPIO_EXTI_Callback>
  9220. }
  9221. }
  9222. 8003db0: bf00 nop
  9223. 8003db2: 3708 adds r7, #8
  9224. 8003db4: 46bd mov sp, r7
  9225. 8003db6: bd80 pop {r7, pc}
  9226. 8003db8: 40010400 .word 0x40010400
  9227. 08003dbc <HAL_I2C_Init>:
  9228. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains
  9229. * the configuration information for the specified I2C.
  9230. * @retval HAL status
  9231. */
  9232. HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
  9233. {
  9234. 8003dbc: b580 push {r7, lr}
  9235. 8003dbe: b084 sub sp, #16
  9236. 8003dc0: af00 add r7, sp, #0
  9237. 8003dc2: 6078 str r0, [r7, #4]
  9238. uint32_t freqrange;
  9239. uint32_t pclk1;
  9240. /* Check the I2C handle allocation */
  9241. if (hi2c == NULL)
  9242. 8003dc4: 687b ldr r3, [r7, #4]
  9243. 8003dc6: 2b00 cmp r3, #0
  9244. 8003dc8: d101 bne.n 8003dce <HAL_I2C_Init+0x12>
  9245. {
  9246. return HAL_ERROR;
  9247. 8003dca: 2301 movs r3, #1
  9248. 8003dcc: e12b b.n 8004026 <HAL_I2C_Init+0x26a>
  9249. assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode));
  9250. assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2));
  9251. assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode));
  9252. assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode));
  9253. if (hi2c->State == HAL_I2C_STATE_RESET)
  9254. 8003dce: 687b ldr r3, [r7, #4]
  9255. 8003dd0: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  9256. 8003dd4: b2db uxtb r3, r3
  9257. 8003dd6: 2b00 cmp r3, #0
  9258. 8003dd8: d106 bne.n 8003de8 <HAL_I2C_Init+0x2c>
  9259. {
  9260. /* Allocate lock resource and initialize it */
  9261. hi2c->Lock = HAL_UNLOCKED;
  9262. 8003dda: 687b ldr r3, [r7, #4]
  9263. 8003ddc: 2200 movs r2, #0
  9264. 8003dde: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9265. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  9266. hi2c->MspInitCallback(hi2c);
  9267. #else
  9268. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  9269. HAL_I2C_MspInit(hi2c);
  9270. 8003de2: 6878 ldr r0, [r7, #4]
  9271. 8003de4: f7fd ffd4 bl 8001d90 <HAL_I2C_MspInit>
  9272. #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */
  9273. }
  9274. hi2c->State = HAL_I2C_STATE_BUSY;
  9275. 8003de8: 687b ldr r3, [r7, #4]
  9276. 8003dea: 2224 movs r2, #36 ; 0x24
  9277. 8003dec: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9278. /* Disable the selected I2C peripheral */
  9279. __HAL_I2C_DISABLE(hi2c);
  9280. 8003df0: 687b ldr r3, [r7, #4]
  9281. 8003df2: 681b ldr r3, [r3, #0]
  9282. 8003df4: 681a ldr r2, [r3, #0]
  9283. 8003df6: 687b ldr r3, [r7, #4]
  9284. 8003df8: 681b ldr r3, [r3, #0]
  9285. 8003dfa: f022 0201 bic.w r2, r2, #1
  9286. 8003dfe: 601a str r2, [r3, #0]
  9287. /*Reset I2C*/
  9288. hi2c->Instance->CR1 |= I2C_CR1_SWRST;
  9289. 8003e00: 687b ldr r3, [r7, #4]
  9290. 8003e02: 681b ldr r3, [r3, #0]
  9291. 8003e04: 681a ldr r2, [r3, #0]
  9292. 8003e06: 687b ldr r3, [r7, #4]
  9293. 8003e08: 681b ldr r3, [r3, #0]
  9294. 8003e0a: f442 4200 orr.w r2, r2, #32768 ; 0x8000
  9295. 8003e0e: 601a str r2, [r3, #0]
  9296. hi2c->Instance->CR1 &= ~I2C_CR1_SWRST;
  9297. 8003e10: 687b ldr r3, [r7, #4]
  9298. 8003e12: 681b ldr r3, [r3, #0]
  9299. 8003e14: 681a ldr r2, [r3, #0]
  9300. 8003e16: 687b ldr r3, [r7, #4]
  9301. 8003e18: 681b ldr r3, [r3, #0]
  9302. 8003e1a: f422 4200 bic.w r2, r2, #32768 ; 0x8000
  9303. 8003e1e: 601a str r2, [r3, #0]
  9304. /* Get PCLK1 frequency */
  9305. pclk1 = HAL_RCC_GetPCLK1Freq();
  9306. 8003e20: f001 f9be bl 80051a0 <HAL_RCC_GetPCLK1Freq>
  9307. 8003e24: 60f8 str r0, [r7, #12]
  9308. /* Check the minimum allowed PCLK1 frequency */
  9309. if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U)
  9310. 8003e26: 687b ldr r3, [r7, #4]
  9311. 8003e28: 685b ldr r3, [r3, #4]
  9312. 8003e2a: 4a81 ldr r2, [pc, #516] ; (8004030 <HAL_I2C_Init+0x274>)
  9313. 8003e2c: 4293 cmp r3, r2
  9314. 8003e2e: d807 bhi.n 8003e40 <HAL_I2C_Init+0x84>
  9315. 8003e30: 68fb ldr r3, [r7, #12]
  9316. 8003e32: 4a80 ldr r2, [pc, #512] ; (8004034 <HAL_I2C_Init+0x278>)
  9317. 8003e34: 4293 cmp r3, r2
  9318. 8003e36: bf94 ite ls
  9319. 8003e38: 2301 movls r3, #1
  9320. 8003e3a: 2300 movhi r3, #0
  9321. 8003e3c: b2db uxtb r3, r3
  9322. 8003e3e: e006 b.n 8003e4e <HAL_I2C_Init+0x92>
  9323. 8003e40: 68fb ldr r3, [r7, #12]
  9324. 8003e42: 4a7d ldr r2, [pc, #500] ; (8004038 <HAL_I2C_Init+0x27c>)
  9325. 8003e44: 4293 cmp r3, r2
  9326. 8003e46: bf94 ite ls
  9327. 8003e48: 2301 movls r3, #1
  9328. 8003e4a: 2300 movhi r3, #0
  9329. 8003e4c: b2db uxtb r3, r3
  9330. 8003e4e: 2b00 cmp r3, #0
  9331. 8003e50: d001 beq.n 8003e56 <HAL_I2C_Init+0x9a>
  9332. {
  9333. return HAL_ERROR;
  9334. 8003e52: 2301 movs r3, #1
  9335. 8003e54: e0e7 b.n 8004026 <HAL_I2C_Init+0x26a>
  9336. }
  9337. /* Calculate frequency range */
  9338. freqrange = I2C_FREQRANGE(pclk1);
  9339. 8003e56: 68fb ldr r3, [r7, #12]
  9340. 8003e58: 4a78 ldr r2, [pc, #480] ; (800403c <HAL_I2C_Init+0x280>)
  9341. 8003e5a: fba2 2303 umull r2, r3, r2, r3
  9342. 8003e5e: 0c9b lsrs r3, r3, #18
  9343. 8003e60: 60bb str r3, [r7, #8]
  9344. /*---------------------------- I2Cx CR2 Configuration ----------------------*/
  9345. /* Configure I2Cx: Frequency range */
  9346. MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange);
  9347. 8003e62: 687b ldr r3, [r7, #4]
  9348. 8003e64: 681b ldr r3, [r3, #0]
  9349. 8003e66: 685b ldr r3, [r3, #4]
  9350. 8003e68: f023 013f bic.w r1, r3, #63 ; 0x3f
  9351. 8003e6c: 687b ldr r3, [r7, #4]
  9352. 8003e6e: 681b ldr r3, [r3, #0]
  9353. 8003e70: 68ba ldr r2, [r7, #8]
  9354. 8003e72: 430a orrs r2, r1
  9355. 8003e74: 605a str r2, [r3, #4]
  9356. /*---------------------------- I2Cx TRISE Configuration --------------------*/
  9357. /* Configure I2Cx: Rise Time */
  9358. MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed));
  9359. 8003e76: 687b ldr r3, [r7, #4]
  9360. 8003e78: 681b ldr r3, [r3, #0]
  9361. 8003e7a: 6a1b ldr r3, [r3, #32]
  9362. 8003e7c: f023 013f bic.w r1, r3, #63 ; 0x3f
  9363. 8003e80: 687b ldr r3, [r7, #4]
  9364. 8003e82: 685b ldr r3, [r3, #4]
  9365. 8003e84: 4a6a ldr r2, [pc, #424] ; (8004030 <HAL_I2C_Init+0x274>)
  9366. 8003e86: 4293 cmp r3, r2
  9367. 8003e88: d802 bhi.n 8003e90 <HAL_I2C_Init+0xd4>
  9368. 8003e8a: 68bb ldr r3, [r7, #8]
  9369. 8003e8c: 3301 adds r3, #1
  9370. 8003e8e: e009 b.n 8003ea4 <HAL_I2C_Init+0xe8>
  9371. 8003e90: 68bb ldr r3, [r7, #8]
  9372. 8003e92: f44f 7296 mov.w r2, #300 ; 0x12c
  9373. 8003e96: fb02 f303 mul.w r3, r2, r3
  9374. 8003e9a: 4a69 ldr r2, [pc, #420] ; (8004040 <HAL_I2C_Init+0x284>)
  9375. 8003e9c: fba2 2303 umull r2, r3, r2, r3
  9376. 8003ea0: 099b lsrs r3, r3, #6
  9377. 8003ea2: 3301 adds r3, #1
  9378. 8003ea4: 687a ldr r2, [r7, #4]
  9379. 8003ea6: 6812 ldr r2, [r2, #0]
  9380. 8003ea8: 430b orrs r3, r1
  9381. 8003eaa: 6213 str r3, [r2, #32]
  9382. /*---------------------------- I2Cx CCR Configuration ----------------------*/
  9383. /* Configure I2Cx: Speed */
  9384. MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle));
  9385. 8003eac: 687b ldr r3, [r7, #4]
  9386. 8003eae: 681b ldr r3, [r3, #0]
  9387. 8003eb0: 69db ldr r3, [r3, #28]
  9388. 8003eb2: f423 424f bic.w r2, r3, #52992 ; 0xcf00
  9389. 8003eb6: f022 02ff bic.w r2, r2, #255 ; 0xff
  9390. 8003eba: 687b ldr r3, [r7, #4]
  9391. 8003ebc: 685b ldr r3, [r3, #4]
  9392. 8003ebe: 495c ldr r1, [pc, #368] ; (8004030 <HAL_I2C_Init+0x274>)
  9393. 8003ec0: 428b cmp r3, r1
  9394. 8003ec2: d819 bhi.n 8003ef8 <HAL_I2C_Init+0x13c>
  9395. 8003ec4: 68fb ldr r3, [r7, #12]
  9396. 8003ec6: 1e59 subs r1, r3, #1
  9397. 8003ec8: 687b ldr r3, [r7, #4]
  9398. 8003eca: 685b ldr r3, [r3, #4]
  9399. 8003ecc: 005b lsls r3, r3, #1
  9400. 8003ece: fbb1 f3f3 udiv r3, r1, r3
  9401. 8003ed2: 1c59 adds r1, r3, #1
  9402. 8003ed4: f640 73fc movw r3, #4092 ; 0xffc
  9403. 8003ed8: 400b ands r3, r1
  9404. 8003eda: 2b00 cmp r3, #0
  9405. 8003edc: d00a beq.n 8003ef4 <HAL_I2C_Init+0x138>
  9406. 8003ede: 68fb ldr r3, [r7, #12]
  9407. 8003ee0: 1e59 subs r1, r3, #1
  9408. 8003ee2: 687b ldr r3, [r7, #4]
  9409. 8003ee4: 685b ldr r3, [r3, #4]
  9410. 8003ee6: 005b lsls r3, r3, #1
  9411. 8003ee8: fbb1 f3f3 udiv r3, r1, r3
  9412. 8003eec: 3301 adds r3, #1
  9413. 8003eee: f3c3 030b ubfx r3, r3, #0, #12
  9414. 8003ef2: e051 b.n 8003f98 <HAL_I2C_Init+0x1dc>
  9415. 8003ef4: 2304 movs r3, #4
  9416. 8003ef6: e04f b.n 8003f98 <HAL_I2C_Init+0x1dc>
  9417. 8003ef8: 687b ldr r3, [r7, #4]
  9418. 8003efa: 689b ldr r3, [r3, #8]
  9419. 8003efc: 2b00 cmp r3, #0
  9420. 8003efe: d111 bne.n 8003f24 <HAL_I2C_Init+0x168>
  9421. 8003f00: 68fb ldr r3, [r7, #12]
  9422. 8003f02: 1e58 subs r0, r3, #1
  9423. 8003f04: 687b ldr r3, [r7, #4]
  9424. 8003f06: 6859 ldr r1, [r3, #4]
  9425. 8003f08: 460b mov r3, r1
  9426. 8003f0a: 005b lsls r3, r3, #1
  9427. 8003f0c: 440b add r3, r1
  9428. 8003f0e: fbb0 f3f3 udiv r3, r0, r3
  9429. 8003f12: 3301 adds r3, #1
  9430. 8003f14: f3c3 030b ubfx r3, r3, #0, #12
  9431. 8003f18: 2b00 cmp r3, #0
  9432. 8003f1a: bf0c ite eq
  9433. 8003f1c: 2301 moveq r3, #1
  9434. 8003f1e: 2300 movne r3, #0
  9435. 8003f20: b2db uxtb r3, r3
  9436. 8003f22: e012 b.n 8003f4a <HAL_I2C_Init+0x18e>
  9437. 8003f24: 68fb ldr r3, [r7, #12]
  9438. 8003f26: 1e58 subs r0, r3, #1
  9439. 8003f28: 687b ldr r3, [r7, #4]
  9440. 8003f2a: 6859 ldr r1, [r3, #4]
  9441. 8003f2c: 460b mov r3, r1
  9442. 8003f2e: 009b lsls r3, r3, #2
  9443. 8003f30: 440b add r3, r1
  9444. 8003f32: 0099 lsls r1, r3, #2
  9445. 8003f34: 440b add r3, r1
  9446. 8003f36: fbb0 f3f3 udiv r3, r0, r3
  9447. 8003f3a: 3301 adds r3, #1
  9448. 8003f3c: f3c3 030b ubfx r3, r3, #0, #12
  9449. 8003f40: 2b00 cmp r3, #0
  9450. 8003f42: bf0c ite eq
  9451. 8003f44: 2301 moveq r3, #1
  9452. 8003f46: 2300 movne r3, #0
  9453. 8003f48: b2db uxtb r3, r3
  9454. 8003f4a: 2b00 cmp r3, #0
  9455. 8003f4c: d001 beq.n 8003f52 <HAL_I2C_Init+0x196>
  9456. 8003f4e: 2301 movs r3, #1
  9457. 8003f50: e022 b.n 8003f98 <HAL_I2C_Init+0x1dc>
  9458. 8003f52: 687b ldr r3, [r7, #4]
  9459. 8003f54: 689b ldr r3, [r3, #8]
  9460. 8003f56: 2b00 cmp r3, #0
  9461. 8003f58: d10e bne.n 8003f78 <HAL_I2C_Init+0x1bc>
  9462. 8003f5a: 68fb ldr r3, [r7, #12]
  9463. 8003f5c: 1e58 subs r0, r3, #1
  9464. 8003f5e: 687b ldr r3, [r7, #4]
  9465. 8003f60: 6859 ldr r1, [r3, #4]
  9466. 8003f62: 460b mov r3, r1
  9467. 8003f64: 005b lsls r3, r3, #1
  9468. 8003f66: 440b add r3, r1
  9469. 8003f68: fbb0 f3f3 udiv r3, r0, r3
  9470. 8003f6c: 3301 adds r3, #1
  9471. 8003f6e: f3c3 030b ubfx r3, r3, #0, #12
  9472. 8003f72: f443 4300 orr.w r3, r3, #32768 ; 0x8000
  9473. 8003f76: e00f b.n 8003f98 <HAL_I2C_Init+0x1dc>
  9474. 8003f78: 68fb ldr r3, [r7, #12]
  9475. 8003f7a: 1e58 subs r0, r3, #1
  9476. 8003f7c: 687b ldr r3, [r7, #4]
  9477. 8003f7e: 6859 ldr r1, [r3, #4]
  9478. 8003f80: 460b mov r3, r1
  9479. 8003f82: 009b lsls r3, r3, #2
  9480. 8003f84: 440b add r3, r1
  9481. 8003f86: 0099 lsls r1, r3, #2
  9482. 8003f88: 440b add r3, r1
  9483. 8003f8a: fbb0 f3f3 udiv r3, r0, r3
  9484. 8003f8e: 3301 adds r3, #1
  9485. 8003f90: f3c3 030b ubfx r3, r3, #0, #12
  9486. 8003f94: f443 4340 orr.w r3, r3, #49152 ; 0xc000
  9487. 8003f98: 6879 ldr r1, [r7, #4]
  9488. 8003f9a: 6809 ldr r1, [r1, #0]
  9489. 8003f9c: 4313 orrs r3, r2
  9490. 8003f9e: 61cb str r3, [r1, #28]
  9491. /*---------------------------- I2Cx CR1 Configuration ----------------------*/
  9492. /* Configure I2Cx: Generalcall and NoStretch mode */
  9493. MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode));
  9494. 8003fa0: 687b ldr r3, [r7, #4]
  9495. 8003fa2: 681b ldr r3, [r3, #0]
  9496. 8003fa4: 681b ldr r3, [r3, #0]
  9497. 8003fa6: f023 01c0 bic.w r1, r3, #192 ; 0xc0
  9498. 8003faa: 687b ldr r3, [r7, #4]
  9499. 8003fac: 69da ldr r2, [r3, #28]
  9500. 8003fae: 687b ldr r3, [r7, #4]
  9501. 8003fb0: 6a1b ldr r3, [r3, #32]
  9502. 8003fb2: 431a orrs r2, r3
  9503. 8003fb4: 687b ldr r3, [r7, #4]
  9504. 8003fb6: 681b ldr r3, [r3, #0]
  9505. 8003fb8: 430a orrs r2, r1
  9506. 8003fba: 601a str r2, [r3, #0]
  9507. /*---------------------------- I2Cx OAR1 Configuration ---------------------*/
  9508. /* Configure I2Cx: Own Address1 and addressing mode */
  9509. MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1));
  9510. 8003fbc: 687b ldr r3, [r7, #4]
  9511. 8003fbe: 681b ldr r3, [r3, #0]
  9512. 8003fc0: 689b ldr r3, [r3, #8]
  9513. 8003fc2: f423 4303 bic.w r3, r3, #33536 ; 0x8300
  9514. 8003fc6: f023 03ff bic.w r3, r3, #255 ; 0xff
  9515. 8003fca: 687a ldr r2, [r7, #4]
  9516. 8003fcc: 6911 ldr r1, [r2, #16]
  9517. 8003fce: 687a ldr r2, [r7, #4]
  9518. 8003fd0: 68d2 ldr r2, [r2, #12]
  9519. 8003fd2: 4311 orrs r1, r2
  9520. 8003fd4: 687a ldr r2, [r7, #4]
  9521. 8003fd6: 6812 ldr r2, [r2, #0]
  9522. 8003fd8: 430b orrs r3, r1
  9523. 8003fda: 6093 str r3, [r2, #8]
  9524. /*---------------------------- I2Cx OAR2 Configuration ---------------------*/
  9525. /* Configure I2Cx: Dual mode and Own Address2 */
  9526. MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2));
  9527. 8003fdc: 687b ldr r3, [r7, #4]
  9528. 8003fde: 681b ldr r3, [r3, #0]
  9529. 8003fe0: 68db ldr r3, [r3, #12]
  9530. 8003fe2: f023 01ff bic.w r1, r3, #255 ; 0xff
  9531. 8003fe6: 687b ldr r3, [r7, #4]
  9532. 8003fe8: 695a ldr r2, [r3, #20]
  9533. 8003fea: 687b ldr r3, [r7, #4]
  9534. 8003fec: 699b ldr r3, [r3, #24]
  9535. 8003fee: 431a orrs r2, r3
  9536. 8003ff0: 687b ldr r3, [r7, #4]
  9537. 8003ff2: 681b ldr r3, [r3, #0]
  9538. 8003ff4: 430a orrs r2, r1
  9539. 8003ff6: 60da str r2, [r3, #12]
  9540. /* Enable the selected I2C peripheral */
  9541. __HAL_I2C_ENABLE(hi2c);
  9542. 8003ff8: 687b ldr r3, [r7, #4]
  9543. 8003ffa: 681b ldr r3, [r3, #0]
  9544. 8003ffc: 681a ldr r2, [r3, #0]
  9545. 8003ffe: 687b ldr r3, [r7, #4]
  9546. 8004000: 681b ldr r3, [r3, #0]
  9547. 8004002: f042 0201 orr.w r2, r2, #1
  9548. 8004006: 601a str r2, [r3, #0]
  9549. hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
  9550. 8004008: 687b ldr r3, [r7, #4]
  9551. 800400a: 2200 movs r2, #0
  9552. 800400c: 641a str r2, [r3, #64] ; 0x40
  9553. hi2c->State = HAL_I2C_STATE_READY;
  9554. 800400e: 687b ldr r3, [r7, #4]
  9555. 8004010: 2220 movs r2, #32
  9556. 8004012: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9557. hi2c->PreviousState = I2C_STATE_NONE;
  9558. 8004016: 687b ldr r3, [r7, #4]
  9559. 8004018: 2200 movs r2, #0
  9560. 800401a: 631a str r2, [r3, #48] ; 0x30
  9561. hi2c->Mode = HAL_I2C_MODE_NONE;
  9562. 800401c: 687b ldr r3, [r7, #4]
  9563. 800401e: 2200 movs r2, #0
  9564. 8004020: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9565. return HAL_OK;
  9566. 8004024: 2300 movs r3, #0
  9567. }
  9568. 8004026: 4618 mov r0, r3
  9569. 8004028: 3710 adds r7, #16
  9570. 800402a: 46bd mov sp, r7
  9571. 800402c: bd80 pop {r7, pc}
  9572. 800402e: bf00 nop
  9573. 8004030: 000186a0 .word 0x000186a0
  9574. 8004034: 001e847f .word 0x001e847f
  9575. 8004038: 003d08ff .word 0x003d08ff
  9576. 800403c: 431bde83 .word 0x431bde83
  9577. 8004040: 10624dd3 .word 0x10624dd3
  9578. 08004044 <HAL_I2C_DeInit>:
  9579. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains
  9580. * the configuration information for the specified I2C.
  9581. * @retval HAL status
  9582. */
  9583. HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c)
  9584. {
  9585. 8004044: b580 push {r7, lr}
  9586. 8004046: b082 sub sp, #8
  9587. 8004048: af00 add r7, sp, #0
  9588. 800404a: 6078 str r0, [r7, #4]
  9589. /* Check the I2C handle allocation */
  9590. if (hi2c == NULL)
  9591. 800404c: 687b ldr r3, [r7, #4]
  9592. 800404e: 2b00 cmp r3, #0
  9593. 8004050: d101 bne.n 8004056 <HAL_I2C_DeInit+0x12>
  9594. {
  9595. return HAL_ERROR;
  9596. 8004052: 2301 movs r3, #1
  9597. 8004054: e021 b.n 800409a <HAL_I2C_DeInit+0x56>
  9598. }
  9599. /* Check the parameters */
  9600. assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
  9601. hi2c->State = HAL_I2C_STATE_BUSY;
  9602. 8004056: 687b ldr r3, [r7, #4]
  9603. 8004058: 2224 movs r2, #36 ; 0x24
  9604. 800405a: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9605. /* Disable the I2C Peripheral Clock */
  9606. __HAL_I2C_DISABLE(hi2c);
  9607. 800405e: 687b ldr r3, [r7, #4]
  9608. 8004060: 681b ldr r3, [r3, #0]
  9609. 8004062: 681a ldr r2, [r3, #0]
  9610. 8004064: 687b ldr r3, [r7, #4]
  9611. 8004066: 681b ldr r3, [r3, #0]
  9612. 8004068: f022 0201 bic.w r2, r2, #1
  9613. 800406c: 601a str r2, [r3, #0]
  9614. /* DeInit the low level hardware: GPIO, CLOCK, NVIC */
  9615. hi2c->MspDeInitCallback(hi2c);
  9616. #else
  9617. /* DeInit the low level hardware: GPIO, CLOCK, NVIC */
  9618. HAL_I2C_MspDeInit(hi2c);
  9619. 800406e: 6878 ldr r0, [r7, #4]
  9620. 8004070: f7fd ff02 bl 8001e78 <HAL_I2C_MspDeInit>
  9621. #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */
  9622. hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
  9623. 8004074: 687b ldr r3, [r7, #4]
  9624. 8004076: 2200 movs r2, #0
  9625. 8004078: 641a str r2, [r3, #64] ; 0x40
  9626. hi2c->State = HAL_I2C_STATE_RESET;
  9627. 800407a: 687b ldr r3, [r7, #4]
  9628. 800407c: 2200 movs r2, #0
  9629. 800407e: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9630. hi2c->PreviousState = I2C_STATE_NONE;
  9631. 8004082: 687b ldr r3, [r7, #4]
  9632. 8004084: 2200 movs r2, #0
  9633. 8004086: 631a str r2, [r3, #48] ; 0x30
  9634. hi2c->Mode = HAL_I2C_MODE_NONE;
  9635. 8004088: 687b ldr r3, [r7, #4]
  9636. 800408a: 2200 movs r2, #0
  9637. 800408c: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9638. /* Release Lock */
  9639. __HAL_UNLOCK(hi2c);
  9640. 8004090: 687b ldr r3, [r7, #4]
  9641. 8004092: 2200 movs r2, #0
  9642. 8004094: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9643. return HAL_OK;
  9644. 8004098: 2300 movs r3, #0
  9645. }
  9646. 800409a: 4618 mov r0, r3
  9647. 800409c: 3708 adds r7, #8
  9648. 800409e: 46bd mov sp, r7
  9649. 80040a0: bd80 pop {r7, pc}
  9650. ...
  9651. 080040a4 <HAL_I2C_Mem_Write>:
  9652. * @param Size Amount of data to be sent
  9653. * @param Timeout Timeout duration
  9654. * @retval HAL status
  9655. */
  9656. HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout)
  9657. {
  9658. 80040a4: b580 push {r7, lr}
  9659. 80040a6: b088 sub sp, #32
  9660. 80040a8: af02 add r7, sp, #8
  9661. 80040aa: 60f8 str r0, [r7, #12]
  9662. 80040ac: 4608 mov r0, r1
  9663. 80040ae: 4611 mov r1, r2
  9664. 80040b0: 461a mov r2, r3
  9665. 80040b2: 4603 mov r3, r0
  9666. 80040b4: 817b strh r3, [r7, #10]
  9667. 80040b6: 460b mov r3, r1
  9668. 80040b8: 813b strh r3, [r7, #8]
  9669. 80040ba: 4613 mov r3, r2
  9670. 80040bc: 80fb strh r3, [r7, #6]
  9671. /* Init tickstart for timeout management*/
  9672. uint32_t tickstart = HAL_GetTick();
  9673. 80040be: f7fe f9c3 bl 8002448 <HAL_GetTick>
  9674. 80040c2: 6178 str r0, [r7, #20]
  9675. /* Check the parameters */
  9676. assert_param(IS_I2C_MEMADD_SIZE(MemAddSize));
  9677. if (hi2c->State == HAL_I2C_STATE_READY)
  9678. 80040c4: 68fb ldr r3, [r7, #12]
  9679. 80040c6: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  9680. 80040ca: b2db uxtb r3, r3
  9681. 80040cc: 2b20 cmp r3, #32
  9682. 80040ce: f040 80d9 bne.w 8004284 <HAL_I2C_Mem_Write+0x1e0>
  9683. {
  9684. /* Wait until BUSY flag is reset */
  9685. if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK)
  9686. 80040d2: 697b ldr r3, [r7, #20]
  9687. 80040d4: 9300 str r3, [sp, #0]
  9688. 80040d6: 2319 movs r3, #25
  9689. 80040d8: 2201 movs r2, #1
  9690. 80040da: 496d ldr r1, [pc, #436] ; (8004290 <HAL_I2C_Mem_Write+0x1ec>)
  9691. 80040dc: 68f8 ldr r0, [r7, #12]
  9692. 80040de: f000 f971 bl 80043c4 <I2C_WaitOnFlagUntilTimeout>
  9693. 80040e2: 4603 mov r3, r0
  9694. 80040e4: 2b00 cmp r3, #0
  9695. 80040e6: d001 beq.n 80040ec <HAL_I2C_Mem_Write+0x48>
  9696. {
  9697. return HAL_BUSY;
  9698. 80040e8: 2302 movs r3, #2
  9699. 80040ea: e0cc b.n 8004286 <HAL_I2C_Mem_Write+0x1e2>
  9700. }
  9701. /* Process Locked */
  9702. __HAL_LOCK(hi2c);
  9703. 80040ec: 68fb ldr r3, [r7, #12]
  9704. 80040ee: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  9705. 80040f2: 2b01 cmp r3, #1
  9706. 80040f4: d101 bne.n 80040fa <HAL_I2C_Mem_Write+0x56>
  9707. 80040f6: 2302 movs r3, #2
  9708. 80040f8: e0c5 b.n 8004286 <HAL_I2C_Mem_Write+0x1e2>
  9709. 80040fa: 68fb ldr r3, [r7, #12]
  9710. 80040fc: 2201 movs r2, #1
  9711. 80040fe: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9712. /* Check if the I2C is already enabled */
  9713. if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE)
  9714. 8004102: 68fb ldr r3, [r7, #12]
  9715. 8004104: 681b ldr r3, [r3, #0]
  9716. 8004106: 681b ldr r3, [r3, #0]
  9717. 8004108: f003 0301 and.w r3, r3, #1
  9718. 800410c: 2b01 cmp r3, #1
  9719. 800410e: d007 beq.n 8004120 <HAL_I2C_Mem_Write+0x7c>
  9720. {
  9721. /* Enable I2C peripheral */
  9722. __HAL_I2C_ENABLE(hi2c);
  9723. 8004110: 68fb ldr r3, [r7, #12]
  9724. 8004112: 681b ldr r3, [r3, #0]
  9725. 8004114: 681a ldr r2, [r3, #0]
  9726. 8004116: 68fb ldr r3, [r7, #12]
  9727. 8004118: 681b ldr r3, [r3, #0]
  9728. 800411a: f042 0201 orr.w r2, r2, #1
  9729. 800411e: 601a str r2, [r3, #0]
  9730. }
  9731. /* Disable Pos */
  9732. CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS);
  9733. 8004120: 68fb ldr r3, [r7, #12]
  9734. 8004122: 681b ldr r3, [r3, #0]
  9735. 8004124: 681a ldr r2, [r3, #0]
  9736. 8004126: 68fb ldr r3, [r7, #12]
  9737. 8004128: 681b ldr r3, [r3, #0]
  9738. 800412a: f422 6200 bic.w r2, r2, #2048 ; 0x800
  9739. 800412e: 601a str r2, [r3, #0]
  9740. hi2c->State = HAL_I2C_STATE_BUSY_TX;
  9741. 8004130: 68fb ldr r3, [r7, #12]
  9742. 8004132: 2221 movs r2, #33 ; 0x21
  9743. 8004134: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9744. hi2c->Mode = HAL_I2C_MODE_MEM;
  9745. 8004138: 68fb ldr r3, [r7, #12]
  9746. 800413a: 2240 movs r2, #64 ; 0x40
  9747. 800413c: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9748. hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
  9749. 8004140: 68fb ldr r3, [r7, #12]
  9750. 8004142: 2200 movs r2, #0
  9751. 8004144: 641a str r2, [r3, #64] ; 0x40
  9752. /* Prepare transfer parameters */
  9753. hi2c->pBuffPtr = pData;
  9754. 8004146: 68fb ldr r3, [r7, #12]
  9755. 8004148: 6a3a ldr r2, [r7, #32]
  9756. 800414a: 625a str r2, [r3, #36] ; 0x24
  9757. hi2c->XferCount = Size;
  9758. 800414c: 68fb ldr r3, [r7, #12]
  9759. 800414e: 8cba ldrh r2, [r7, #36] ; 0x24
  9760. 8004150: 855a strh r2, [r3, #42] ; 0x2a
  9761. hi2c->XferSize = hi2c->XferCount;
  9762. 8004152: 68fb ldr r3, [r7, #12]
  9763. 8004154: 8d5b ldrh r3, [r3, #42] ; 0x2a
  9764. 8004156: b29a uxth r2, r3
  9765. 8004158: 68fb ldr r3, [r7, #12]
  9766. 800415a: 851a strh r2, [r3, #40] ; 0x28
  9767. hi2c->XferOptions = I2C_NO_OPTION_FRAME;
  9768. 800415c: 68fb ldr r3, [r7, #12]
  9769. 800415e: 4a4d ldr r2, [pc, #308] ; (8004294 <HAL_I2C_Mem_Write+0x1f0>)
  9770. 8004160: 62da str r2, [r3, #44] ; 0x2c
  9771. /* Send Slave Address and Memory Address */
  9772. if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK)
  9773. 8004162: 88f8 ldrh r0, [r7, #6]
  9774. 8004164: 893a ldrh r2, [r7, #8]
  9775. 8004166: 8979 ldrh r1, [r7, #10]
  9776. 8004168: 697b ldr r3, [r7, #20]
  9777. 800416a: 9301 str r3, [sp, #4]
  9778. 800416c: 6abb ldr r3, [r7, #40] ; 0x28
  9779. 800416e: 9300 str r3, [sp, #0]
  9780. 8004170: 4603 mov r3, r0
  9781. 8004172: 68f8 ldr r0, [r7, #12]
  9782. 8004174: f000 f890 bl 8004298 <I2C_RequestMemoryWrite>
  9783. 8004178: 4603 mov r3, r0
  9784. 800417a: 2b00 cmp r3, #0
  9785. 800417c: d052 beq.n 8004224 <HAL_I2C_Mem_Write+0x180>
  9786. {
  9787. return HAL_ERROR;
  9788. 800417e: 2301 movs r3, #1
  9789. 8004180: e081 b.n 8004286 <HAL_I2C_Mem_Write+0x1e2>
  9790. }
  9791. while (hi2c->XferSize > 0U)
  9792. {
  9793. /* Wait until TXE flag is set */
  9794. if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)
  9795. 8004182: 697a ldr r2, [r7, #20]
  9796. 8004184: 6ab9 ldr r1, [r7, #40] ; 0x28
  9797. 8004186: 68f8 ldr r0, [r7, #12]
  9798. 8004188: f000 f9f2 bl 8004570 <I2C_WaitOnTXEFlagUntilTimeout>
  9799. 800418c: 4603 mov r3, r0
  9800. 800418e: 2b00 cmp r3, #0
  9801. 8004190: d00d beq.n 80041ae <HAL_I2C_Mem_Write+0x10a>
  9802. {
  9803. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  9804. 8004192: 68fb ldr r3, [r7, #12]
  9805. 8004194: 6c1b ldr r3, [r3, #64] ; 0x40
  9806. 8004196: 2b04 cmp r3, #4
  9807. 8004198: d107 bne.n 80041aa <HAL_I2C_Mem_Write+0x106>
  9808. {
  9809. /* Generate Stop */
  9810. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9811. 800419a: 68fb ldr r3, [r7, #12]
  9812. 800419c: 681b ldr r3, [r3, #0]
  9813. 800419e: 681a ldr r2, [r3, #0]
  9814. 80041a0: 68fb ldr r3, [r7, #12]
  9815. 80041a2: 681b ldr r3, [r3, #0]
  9816. 80041a4: f442 7200 orr.w r2, r2, #512 ; 0x200
  9817. 80041a8: 601a str r2, [r3, #0]
  9818. }
  9819. return HAL_ERROR;
  9820. 80041aa: 2301 movs r3, #1
  9821. 80041ac: e06b b.n 8004286 <HAL_I2C_Mem_Write+0x1e2>
  9822. }
  9823. /* Write data to DR */
  9824. hi2c->Instance->DR = *hi2c->pBuffPtr;
  9825. 80041ae: 68fb ldr r3, [r7, #12]
  9826. 80041b0: 6a5b ldr r3, [r3, #36] ; 0x24
  9827. 80041b2: 781a ldrb r2, [r3, #0]
  9828. 80041b4: 68fb ldr r3, [r7, #12]
  9829. 80041b6: 681b ldr r3, [r3, #0]
  9830. 80041b8: 611a str r2, [r3, #16]
  9831. /* Increment Buffer pointer */
  9832. hi2c->pBuffPtr++;
  9833. 80041ba: 68fb ldr r3, [r7, #12]
  9834. 80041bc: 6a5b ldr r3, [r3, #36] ; 0x24
  9835. 80041be: 1c5a adds r2, r3, #1
  9836. 80041c0: 68fb ldr r3, [r7, #12]
  9837. 80041c2: 625a str r2, [r3, #36] ; 0x24
  9838. /* Update counter */
  9839. hi2c->XferSize--;
  9840. 80041c4: 68fb ldr r3, [r7, #12]
  9841. 80041c6: 8d1b ldrh r3, [r3, #40] ; 0x28
  9842. 80041c8: 3b01 subs r3, #1
  9843. 80041ca: b29a uxth r2, r3
  9844. 80041cc: 68fb ldr r3, [r7, #12]
  9845. 80041ce: 851a strh r2, [r3, #40] ; 0x28
  9846. hi2c->XferCount--;
  9847. 80041d0: 68fb ldr r3, [r7, #12]
  9848. 80041d2: 8d5b ldrh r3, [r3, #42] ; 0x2a
  9849. 80041d4: b29b uxth r3, r3
  9850. 80041d6: 3b01 subs r3, #1
  9851. 80041d8: b29a uxth r2, r3
  9852. 80041da: 68fb ldr r3, [r7, #12]
  9853. 80041dc: 855a strh r2, [r3, #42] ; 0x2a
  9854. if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U))
  9855. 80041de: 68fb ldr r3, [r7, #12]
  9856. 80041e0: 681b ldr r3, [r3, #0]
  9857. 80041e2: 695b ldr r3, [r3, #20]
  9858. 80041e4: f003 0304 and.w r3, r3, #4
  9859. 80041e8: 2b04 cmp r3, #4
  9860. 80041ea: d11b bne.n 8004224 <HAL_I2C_Mem_Write+0x180>
  9861. 80041ec: 68fb ldr r3, [r7, #12]
  9862. 80041ee: 8d1b ldrh r3, [r3, #40] ; 0x28
  9863. 80041f0: 2b00 cmp r3, #0
  9864. 80041f2: d017 beq.n 8004224 <HAL_I2C_Mem_Write+0x180>
  9865. {
  9866. /* Write data to DR */
  9867. hi2c->Instance->DR = *hi2c->pBuffPtr;
  9868. 80041f4: 68fb ldr r3, [r7, #12]
  9869. 80041f6: 6a5b ldr r3, [r3, #36] ; 0x24
  9870. 80041f8: 781a ldrb r2, [r3, #0]
  9871. 80041fa: 68fb ldr r3, [r7, #12]
  9872. 80041fc: 681b ldr r3, [r3, #0]
  9873. 80041fe: 611a str r2, [r3, #16]
  9874. /* Increment Buffer pointer */
  9875. hi2c->pBuffPtr++;
  9876. 8004200: 68fb ldr r3, [r7, #12]
  9877. 8004202: 6a5b ldr r3, [r3, #36] ; 0x24
  9878. 8004204: 1c5a adds r2, r3, #1
  9879. 8004206: 68fb ldr r3, [r7, #12]
  9880. 8004208: 625a str r2, [r3, #36] ; 0x24
  9881. /* Update counter */
  9882. hi2c->XferSize--;
  9883. 800420a: 68fb ldr r3, [r7, #12]
  9884. 800420c: 8d1b ldrh r3, [r3, #40] ; 0x28
  9885. 800420e: 3b01 subs r3, #1
  9886. 8004210: b29a uxth r2, r3
  9887. 8004212: 68fb ldr r3, [r7, #12]
  9888. 8004214: 851a strh r2, [r3, #40] ; 0x28
  9889. hi2c->XferCount--;
  9890. 8004216: 68fb ldr r3, [r7, #12]
  9891. 8004218: 8d5b ldrh r3, [r3, #42] ; 0x2a
  9892. 800421a: b29b uxth r3, r3
  9893. 800421c: 3b01 subs r3, #1
  9894. 800421e: b29a uxth r2, r3
  9895. 8004220: 68fb ldr r3, [r7, #12]
  9896. 8004222: 855a strh r2, [r3, #42] ; 0x2a
  9897. while (hi2c->XferSize > 0U)
  9898. 8004224: 68fb ldr r3, [r7, #12]
  9899. 8004226: 8d1b ldrh r3, [r3, #40] ; 0x28
  9900. 8004228: 2b00 cmp r3, #0
  9901. 800422a: d1aa bne.n 8004182 <HAL_I2C_Mem_Write+0xde>
  9902. }
  9903. }
  9904. /* Wait until BTF flag is set */
  9905. if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)
  9906. 800422c: 697a ldr r2, [r7, #20]
  9907. 800422e: 6ab9 ldr r1, [r7, #40] ; 0x28
  9908. 8004230: 68f8 ldr r0, [r7, #12]
  9909. 8004232: f000 f9de bl 80045f2 <I2C_WaitOnBTFFlagUntilTimeout>
  9910. 8004236: 4603 mov r3, r0
  9911. 8004238: 2b00 cmp r3, #0
  9912. 800423a: d00d beq.n 8004258 <HAL_I2C_Mem_Write+0x1b4>
  9913. {
  9914. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  9915. 800423c: 68fb ldr r3, [r7, #12]
  9916. 800423e: 6c1b ldr r3, [r3, #64] ; 0x40
  9917. 8004240: 2b04 cmp r3, #4
  9918. 8004242: d107 bne.n 8004254 <HAL_I2C_Mem_Write+0x1b0>
  9919. {
  9920. /* Generate Stop */
  9921. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9922. 8004244: 68fb ldr r3, [r7, #12]
  9923. 8004246: 681b ldr r3, [r3, #0]
  9924. 8004248: 681a ldr r2, [r3, #0]
  9925. 800424a: 68fb ldr r3, [r7, #12]
  9926. 800424c: 681b ldr r3, [r3, #0]
  9927. 800424e: f442 7200 orr.w r2, r2, #512 ; 0x200
  9928. 8004252: 601a str r2, [r3, #0]
  9929. }
  9930. return HAL_ERROR;
  9931. 8004254: 2301 movs r3, #1
  9932. 8004256: e016 b.n 8004286 <HAL_I2C_Mem_Write+0x1e2>
  9933. }
  9934. /* Generate Stop */
  9935. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9936. 8004258: 68fb ldr r3, [r7, #12]
  9937. 800425a: 681b ldr r3, [r3, #0]
  9938. 800425c: 681a ldr r2, [r3, #0]
  9939. 800425e: 68fb ldr r3, [r7, #12]
  9940. 8004260: 681b ldr r3, [r3, #0]
  9941. 8004262: f442 7200 orr.w r2, r2, #512 ; 0x200
  9942. 8004266: 601a str r2, [r3, #0]
  9943. hi2c->State = HAL_I2C_STATE_READY;
  9944. 8004268: 68fb ldr r3, [r7, #12]
  9945. 800426a: 2220 movs r2, #32
  9946. 800426c: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9947. hi2c->Mode = HAL_I2C_MODE_NONE;
  9948. 8004270: 68fb ldr r3, [r7, #12]
  9949. 8004272: 2200 movs r2, #0
  9950. 8004274: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9951. /* Process Unlocked */
  9952. __HAL_UNLOCK(hi2c);
  9953. 8004278: 68fb ldr r3, [r7, #12]
  9954. 800427a: 2200 movs r2, #0
  9955. 800427c: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9956. return HAL_OK;
  9957. 8004280: 2300 movs r3, #0
  9958. 8004282: e000 b.n 8004286 <HAL_I2C_Mem_Write+0x1e2>
  9959. }
  9960. else
  9961. {
  9962. return HAL_BUSY;
  9963. 8004284: 2302 movs r3, #2
  9964. }
  9965. }
  9966. 8004286: 4618 mov r0, r3
  9967. 8004288: 3718 adds r7, #24
  9968. 800428a: 46bd mov sp, r7
  9969. 800428c: bd80 pop {r7, pc}
  9970. 800428e: bf00 nop
  9971. 8004290: 00100002 .word 0x00100002
  9972. 8004294: ffff0000 .word 0xffff0000
  9973. 08004298 <I2C_RequestMemoryWrite>:
  9974. * @param Timeout Timeout duration
  9975. * @param Tickstart Tick start value
  9976. * @retval HAL status
  9977. */
  9978. static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart)
  9979. {
  9980. 8004298: b580 push {r7, lr}
  9981. 800429a: b088 sub sp, #32
  9982. 800429c: af02 add r7, sp, #8
  9983. 800429e: 60f8 str r0, [r7, #12]
  9984. 80042a0: 4608 mov r0, r1
  9985. 80042a2: 4611 mov r1, r2
  9986. 80042a4: 461a mov r2, r3
  9987. 80042a6: 4603 mov r3, r0
  9988. 80042a8: 817b strh r3, [r7, #10]
  9989. 80042aa: 460b mov r3, r1
  9990. 80042ac: 813b strh r3, [r7, #8]
  9991. 80042ae: 4613 mov r3, r2
  9992. 80042b0: 80fb strh r3, [r7, #6]
  9993. /* Generate Start */
  9994. SET_BIT(hi2c->Instance->CR1, I2C_CR1_START);
  9995. 80042b2: 68fb ldr r3, [r7, #12]
  9996. 80042b4: 681b ldr r3, [r3, #0]
  9997. 80042b6: 681a ldr r2, [r3, #0]
  9998. 80042b8: 68fb ldr r3, [r7, #12]
  9999. 80042ba: 681b ldr r3, [r3, #0]
  10000. 80042bc: f442 7280 orr.w r2, r2, #256 ; 0x100
  10001. 80042c0: 601a str r2, [r3, #0]
  10002. /* Wait until SB flag is set */
  10003. if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK)
  10004. 80042c2: 6a7b ldr r3, [r7, #36] ; 0x24
  10005. 80042c4: 9300 str r3, [sp, #0]
  10006. 80042c6: 6a3b ldr r3, [r7, #32]
  10007. 80042c8: 2200 movs r2, #0
  10008. 80042ca: f04f 1101 mov.w r1, #65537 ; 0x10001
  10009. 80042ce: 68f8 ldr r0, [r7, #12]
  10010. 80042d0: f000 f878 bl 80043c4 <I2C_WaitOnFlagUntilTimeout>
  10011. 80042d4: 4603 mov r3, r0
  10012. 80042d6: 2b00 cmp r3, #0
  10013. 80042d8: d00d beq.n 80042f6 <I2C_RequestMemoryWrite+0x5e>
  10014. {
  10015. if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START)
  10016. 80042da: 68fb ldr r3, [r7, #12]
  10017. 80042dc: 681b ldr r3, [r3, #0]
  10018. 80042de: 681b ldr r3, [r3, #0]
  10019. 80042e0: f403 7380 and.w r3, r3, #256 ; 0x100
  10020. 80042e4: f5b3 7f80 cmp.w r3, #256 ; 0x100
  10021. 80042e8: d103 bne.n 80042f2 <I2C_RequestMemoryWrite+0x5a>
  10022. {
  10023. hi2c->ErrorCode = HAL_I2C_WRONG_START;
  10024. 80042ea: 68fb ldr r3, [r7, #12]
  10025. 80042ec: f44f 7200 mov.w r2, #512 ; 0x200
  10026. 80042f0: 641a str r2, [r3, #64] ; 0x40
  10027. }
  10028. return HAL_TIMEOUT;
  10029. 80042f2: 2303 movs r3, #3
  10030. 80042f4: e05f b.n 80043b6 <I2C_RequestMemoryWrite+0x11e>
  10031. }
  10032. /* Send slave address */
  10033. hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress);
  10034. 80042f6: 897b ldrh r3, [r7, #10]
  10035. 80042f8: b2db uxtb r3, r3
  10036. 80042fa: 461a mov r2, r3
  10037. 80042fc: 68fb ldr r3, [r7, #12]
  10038. 80042fe: 681b ldr r3, [r3, #0]
  10039. 8004300: f002 02fe and.w r2, r2, #254 ; 0xfe
  10040. 8004304: 611a str r2, [r3, #16]
  10041. /* Wait until ADDR flag is set */
  10042. if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK)
  10043. 8004306: 6a7b ldr r3, [r7, #36] ; 0x24
  10044. 8004308: 6a3a ldr r2, [r7, #32]
  10045. 800430a: 492d ldr r1, [pc, #180] ; (80043c0 <I2C_RequestMemoryWrite+0x128>)
  10046. 800430c: 68f8 ldr r0, [r7, #12]
  10047. 800430e: f000 f8b0 bl 8004472 <I2C_WaitOnMasterAddressFlagUntilTimeout>
  10048. 8004312: 4603 mov r3, r0
  10049. 8004314: 2b00 cmp r3, #0
  10050. 8004316: d001 beq.n 800431c <I2C_RequestMemoryWrite+0x84>
  10051. {
  10052. return HAL_ERROR;
  10053. 8004318: 2301 movs r3, #1
  10054. 800431a: e04c b.n 80043b6 <I2C_RequestMemoryWrite+0x11e>
  10055. }
  10056. /* Clear ADDR flag */
  10057. __HAL_I2C_CLEAR_ADDRFLAG(hi2c);
  10058. 800431c: 2300 movs r3, #0
  10059. 800431e: 617b str r3, [r7, #20]
  10060. 8004320: 68fb ldr r3, [r7, #12]
  10061. 8004322: 681b ldr r3, [r3, #0]
  10062. 8004324: 695b ldr r3, [r3, #20]
  10063. 8004326: 617b str r3, [r7, #20]
  10064. 8004328: 68fb ldr r3, [r7, #12]
  10065. 800432a: 681b ldr r3, [r3, #0]
  10066. 800432c: 699b ldr r3, [r3, #24]
  10067. 800432e: 617b str r3, [r7, #20]
  10068. 8004330: 697b ldr r3, [r7, #20]
  10069. /* Wait until TXE flag is set */
  10070. if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)
  10071. 8004332: 6a7a ldr r2, [r7, #36] ; 0x24
  10072. 8004334: 6a39 ldr r1, [r7, #32]
  10073. 8004336: 68f8 ldr r0, [r7, #12]
  10074. 8004338: f000 f91a bl 8004570 <I2C_WaitOnTXEFlagUntilTimeout>
  10075. 800433c: 4603 mov r3, r0
  10076. 800433e: 2b00 cmp r3, #0
  10077. 8004340: d00d beq.n 800435e <I2C_RequestMemoryWrite+0xc6>
  10078. {
  10079. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  10080. 8004342: 68fb ldr r3, [r7, #12]
  10081. 8004344: 6c1b ldr r3, [r3, #64] ; 0x40
  10082. 8004346: 2b04 cmp r3, #4
  10083. 8004348: d107 bne.n 800435a <I2C_RequestMemoryWrite+0xc2>
  10084. {
  10085. /* Generate Stop */
  10086. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  10087. 800434a: 68fb ldr r3, [r7, #12]
  10088. 800434c: 681b ldr r3, [r3, #0]
  10089. 800434e: 681a ldr r2, [r3, #0]
  10090. 8004350: 68fb ldr r3, [r7, #12]
  10091. 8004352: 681b ldr r3, [r3, #0]
  10092. 8004354: f442 7200 orr.w r2, r2, #512 ; 0x200
  10093. 8004358: 601a str r2, [r3, #0]
  10094. }
  10095. return HAL_ERROR;
  10096. 800435a: 2301 movs r3, #1
  10097. 800435c: e02b b.n 80043b6 <I2C_RequestMemoryWrite+0x11e>
  10098. }
  10099. /* If Memory address size is 8Bit */
  10100. if (MemAddSize == I2C_MEMADD_SIZE_8BIT)
  10101. 800435e: 88fb ldrh r3, [r7, #6]
  10102. 8004360: 2b01 cmp r3, #1
  10103. 8004362: d105 bne.n 8004370 <I2C_RequestMemoryWrite+0xd8>
  10104. {
  10105. /* Send Memory Address */
  10106. hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress);
  10107. 8004364: 893b ldrh r3, [r7, #8]
  10108. 8004366: b2da uxtb r2, r3
  10109. 8004368: 68fb ldr r3, [r7, #12]
  10110. 800436a: 681b ldr r3, [r3, #0]
  10111. 800436c: 611a str r2, [r3, #16]
  10112. 800436e: e021 b.n 80043b4 <I2C_RequestMemoryWrite+0x11c>
  10113. }
  10114. /* If Memory address size is 16Bit */
  10115. else
  10116. {
  10117. /* Send MSB of Memory Address */
  10118. hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress);
  10119. 8004370: 893b ldrh r3, [r7, #8]
  10120. 8004372: 0a1b lsrs r3, r3, #8
  10121. 8004374: b29b uxth r3, r3
  10122. 8004376: b2da uxtb r2, r3
  10123. 8004378: 68fb ldr r3, [r7, #12]
  10124. 800437a: 681b ldr r3, [r3, #0]
  10125. 800437c: 611a str r2, [r3, #16]
  10126. /* Wait until TXE flag is set */
  10127. if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)
  10128. 800437e: 6a7a ldr r2, [r7, #36] ; 0x24
  10129. 8004380: 6a39 ldr r1, [r7, #32]
  10130. 8004382: 68f8 ldr r0, [r7, #12]
  10131. 8004384: f000 f8f4 bl 8004570 <I2C_WaitOnTXEFlagUntilTimeout>
  10132. 8004388: 4603 mov r3, r0
  10133. 800438a: 2b00 cmp r3, #0
  10134. 800438c: d00d beq.n 80043aa <I2C_RequestMemoryWrite+0x112>
  10135. {
  10136. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  10137. 800438e: 68fb ldr r3, [r7, #12]
  10138. 8004390: 6c1b ldr r3, [r3, #64] ; 0x40
  10139. 8004392: 2b04 cmp r3, #4
  10140. 8004394: d107 bne.n 80043a6 <I2C_RequestMemoryWrite+0x10e>
  10141. {
  10142. /* Generate Stop */
  10143. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  10144. 8004396: 68fb ldr r3, [r7, #12]
  10145. 8004398: 681b ldr r3, [r3, #0]
  10146. 800439a: 681a ldr r2, [r3, #0]
  10147. 800439c: 68fb ldr r3, [r7, #12]
  10148. 800439e: 681b ldr r3, [r3, #0]
  10149. 80043a0: f442 7200 orr.w r2, r2, #512 ; 0x200
  10150. 80043a4: 601a str r2, [r3, #0]
  10151. }
  10152. return HAL_ERROR;
  10153. 80043a6: 2301 movs r3, #1
  10154. 80043a8: e005 b.n 80043b6 <I2C_RequestMemoryWrite+0x11e>
  10155. }
  10156. /* Send LSB of Memory Address */
  10157. hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress);
  10158. 80043aa: 893b ldrh r3, [r7, #8]
  10159. 80043ac: b2da uxtb r2, r3
  10160. 80043ae: 68fb ldr r3, [r7, #12]
  10161. 80043b0: 681b ldr r3, [r3, #0]
  10162. 80043b2: 611a str r2, [r3, #16]
  10163. }
  10164. return HAL_OK;
  10165. 80043b4: 2300 movs r3, #0
  10166. }
  10167. 80043b6: 4618 mov r0, r3
  10168. 80043b8: 3718 adds r7, #24
  10169. 80043ba: 46bd mov sp, r7
  10170. 80043bc: bd80 pop {r7, pc}
  10171. 80043be: bf00 nop
  10172. 80043c0: 00010002 .word 0x00010002
  10173. 080043c4 <I2C_WaitOnFlagUntilTimeout>:
  10174. * @param Timeout Timeout duration
  10175. * @param Tickstart Tick start value
  10176. * @retval HAL status
  10177. */
  10178. static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart)
  10179. {
  10180. 80043c4: b580 push {r7, lr}
  10181. 80043c6: b084 sub sp, #16
  10182. 80043c8: af00 add r7, sp, #0
  10183. 80043ca: 60f8 str r0, [r7, #12]
  10184. 80043cc: 60b9 str r1, [r7, #8]
  10185. 80043ce: 603b str r3, [r7, #0]
  10186. 80043d0: 4613 mov r3, r2
  10187. 80043d2: 71fb strb r3, [r7, #7]
  10188. /* Wait until flag is set */
  10189. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)
  10190. 80043d4: e025 b.n 8004422 <I2C_WaitOnFlagUntilTimeout+0x5e>
  10191. {
  10192. /* Check for the Timeout */
  10193. if (Timeout != HAL_MAX_DELAY)
  10194. 80043d6: 683b ldr r3, [r7, #0]
  10195. 80043d8: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  10196. 80043dc: d021 beq.n 8004422 <I2C_WaitOnFlagUntilTimeout+0x5e>
  10197. {
  10198. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  10199. 80043de: f7fe f833 bl 8002448 <HAL_GetTick>
  10200. 80043e2: 4602 mov r2, r0
  10201. 80043e4: 69bb ldr r3, [r7, #24]
  10202. 80043e6: 1ad3 subs r3, r2, r3
  10203. 80043e8: 683a ldr r2, [r7, #0]
  10204. 80043ea: 429a cmp r2, r3
  10205. 80043ec: d302 bcc.n 80043f4 <I2C_WaitOnFlagUntilTimeout+0x30>
  10206. 80043ee: 683b ldr r3, [r7, #0]
  10207. 80043f0: 2b00 cmp r3, #0
  10208. 80043f2: d116 bne.n 8004422 <I2C_WaitOnFlagUntilTimeout+0x5e>
  10209. {
  10210. hi2c->PreviousState = I2C_STATE_NONE;
  10211. 80043f4: 68fb ldr r3, [r7, #12]
  10212. 80043f6: 2200 movs r2, #0
  10213. 80043f8: 631a str r2, [r3, #48] ; 0x30
  10214. hi2c->State = HAL_I2C_STATE_READY;
  10215. 80043fa: 68fb ldr r3, [r7, #12]
  10216. 80043fc: 2220 movs r2, #32
  10217. 80043fe: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10218. hi2c->Mode = HAL_I2C_MODE_NONE;
  10219. 8004402: 68fb ldr r3, [r7, #12]
  10220. 8004404: 2200 movs r2, #0
  10221. 8004406: f883 203e strb.w r2, [r3, #62] ; 0x3e
  10222. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  10223. 800440a: 68fb ldr r3, [r7, #12]
  10224. 800440c: 6c1b ldr r3, [r3, #64] ; 0x40
  10225. 800440e: f043 0220 orr.w r2, r3, #32
  10226. 8004412: 68fb ldr r3, [r7, #12]
  10227. 8004414: 641a str r2, [r3, #64] ; 0x40
  10228. /* Process Unlocked */
  10229. __HAL_UNLOCK(hi2c);
  10230. 8004416: 68fb ldr r3, [r7, #12]
  10231. 8004418: 2200 movs r2, #0
  10232. 800441a: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10233. return HAL_ERROR;
  10234. 800441e: 2301 movs r3, #1
  10235. 8004420: e023 b.n 800446a <I2C_WaitOnFlagUntilTimeout+0xa6>
  10236. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)
  10237. 8004422: 68bb ldr r3, [r7, #8]
  10238. 8004424: 0c1b lsrs r3, r3, #16
  10239. 8004426: b2db uxtb r3, r3
  10240. 8004428: 2b01 cmp r3, #1
  10241. 800442a: d10d bne.n 8004448 <I2C_WaitOnFlagUntilTimeout+0x84>
  10242. 800442c: 68fb ldr r3, [r7, #12]
  10243. 800442e: 681b ldr r3, [r3, #0]
  10244. 8004430: 695b ldr r3, [r3, #20]
  10245. 8004432: 43da mvns r2, r3
  10246. 8004434: 68bb ldr r3, [r7, #8]
  10247. 8004436: 4013 ands r3, r2
  10248. 8004438: b29b uxth r3, r3
  10249. 800443a: 2b00 cmp r3, #0
  10250. 800443c: bf0c ite eq
  10251. 800443e: 2301 moveq r3, #1
  10252. 8004440: 2300 movne r3, #0
  10253. 8004442: b2db uxtb r3, r3
  10254. 8004444: 461a mov r2, r3
  10255. 8004446: e00c b.n 8004462 <I2C_WaitOnFlagUntilTimeout+0x9e>
  10256. 8004448: 68fb ldr r3, [r7, #12]
  10257. 800444a: 681b ldr r3, [r3, #0]
  10258. 800444c: 699b ldr r3, [r3, #24]
  10259. 800444e: 43da mvns r2, r3
  10260. 8004450: 68bb ldr r3, [r7, #8]
  10261. 8004452: 4013 ands r3, r2
  10262. 8004454: b29b uxth r3, r3
  10263. 8004456: 2b00 cmp r3, #0
  10264. 8004458: bf0c ite eq
  10265. 800445a: 2301 moveq r3, #1
  10266. 800445c: 2300 movne r3, #0
  10267. 800445e: b2db uxtb r3, r3
  10268. 8004460: 461a mov r2, r3
  10269. 8004462: 79fb ldrb r3, [r7, #7]
  10270. 8004464: 429a cmp r2, r3
  10271. 8004466: d0b6 beq.n 80043d6 <I2C_WaitOnFlagUntilTimeout+0x12>
  10272. }
  10273. }
  10274. }
  10275. return HAL_OK;
  10276. 8004468: 2300 movs r3, #0
  10277. }
  10278. 800446a: 4618 mov r0, r3
  10279. 800446c: 3710 adds r7, #16
  10280. 800446e: 46bd mov sp, r7
  10281. 8004470: bd80 pop {r7, pc}
  10282. 08004472 <I2C_WaitOnMasterAddressFlagUntilTimeout>:
  10283. * @param Timeout Timeout duration
  10284. * @param Tickstart Tick start value
  10285. * @retval HAL status
  10286. */
  10287. static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart)
  10288. {
  10289. 8004472: b580 push {r7, lr}
  10290. 8004474: b084 sub sp, #16
  10291. 8004476: af00 add r7, sp, #0
  10292. 8004478: 60f8 str r0, [r7, #12]
  10293. 800447a: 60b9 str r1, [r7, #8]
  10294. 800447c: 607a str r2, [r7, #4]
  10295. 800447e: 603b str r3, [r7, #0]
  10296. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)
  10297. 8004480: e051 b.n 8004526 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
  10298. {
  10299. if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET)
  10300. 8004482: 68fb ldr r3, [r7, #12]
  10301. 8004484: 681b ldr r3, [r3, #0]
  10302. 8004486: 695b ldr r3, [r3, #20]
  10303. 8004488: f403 6380 and.w r3, r3, #1024 ; 0x400
  10304. 800448c: f5b3 6f80 cmp.w r3, #1024 ; 0x400
  10305. 8004490: d123 bne.n 80044da <I2C_WaitOnMasterAddressFlagUntilTimeout+0x68>
  10306. {
  10307. /* Generate Stop */
  10308. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  10309. 8004492: 68fb ldr r3, [r7, #12]
  10310. 8004494: 681b ldr r3, [r3, #0]
  10311. 8004496: 681a ldr r2, [r3, #0]
  10312. 8004498: 68fb ldr r3, [r7, #12]
  10313. 800449a: 681b ldr r3, [r3, #0]
  10314. 800449c: f442 7200 orr.w r2, r2, #512 ; 0x200
  10315. 80044a0: 601a str r2, [r3, #0]
  10316. /* Clear AF Flag */
  10317. __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF);
  10318. 80044a2: 68fb ldr r3, [r7, #12]
  10319. 80044a4: 681b ldr r3, [r3, #0]
  10320. 80044a6: f46f 6280 mvn.w r2, #1024 ; 0x400
  10321. 80044aa: 615a str r2, [r3, #20]
  10322. hi2c->PreviousState = I2C_STATE_NONE;
  10323. 80044ac: 68fb ldr r3, [r7, #12]
  10324. 80044ae: 2200 movs r2, #0
  10325. 80044b0: 631a str r2, [r3, #48] ; 0x30
  10326. hi2c->State = HAL_I2C_STATE_READY;
  10327. 80044b2: 68fb ldr r3, [r7, #12]
  10328. 80044b4: 2220 movs r2, #32
  10329. 80044b6: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10330. hi2c->Mode = HAL_I2C_MODE_NONE;
  10331. 80044ba: 68fb ldr r3, [r7, #12]
  10332. 80044bc: 2200 movs r2, #0
  10333. 80044be: f883 203e strb.w r2, [r3, #62] ; 0x3e
  10334. hi2c->ErrorCode |= HAL_I2C_ERROR_AF;
  10335. 80044c2: 68fb ldr r3, [r7, #12]
  10336. 80044c4: 6c1b ldr r3, [r3, #64] ; 0x40
  10337. 80044c6: f043 0204 orr.w r2, r3, #4
  10338. 80044ca: 68fb ldr r3, [r7, #12]
  10339. 80044cc: 641a str r2, [r3, #64] ; 0x40
  10340. /* Process Unlocked */
  10341. __HAL_UNLOCK(hi2c);
  10342. 80044ce: 68fb ldr r3, [r7, #12]
  10343. 80044d0: 2200 movs r2, #0
  10344. 80044d2: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10345. return HAL_ERROR;
  10346. 80044d6: 2301 movs r3, #1
  10347. 80044d8: e046 b.n 8004568 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf6>
  10348. }
  10349. /* Check for the Timeout */
  10350. if (Timeout != HAL_MAX_DELAY)
  10351. 80044da: 687b ldr r3, [r7, #4]
  10352. 80044dc: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  10353. 80044e0: d021 beq.n 8004526 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
  10354. {
  10355. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  10356. 80044e2: f7fd ffb1 bl 8002448 <HAL_GetTick>
  10357. 80044e6: 4602 mov r2, r0
  10358. 80044e8: 683b ldr r3, [r7, #0]
  10359. 80044ea: 1ad3 subs r3, r2, r3
  10360. 80044ec: 687a ldr r2, [r7, #4]
  10361. 80044ee: 429a cmp r2, r3
  10362. 80044f0: d302 bcc.n 80044f8 <I2C_WaitOnMasterAddressFlagUntilTimeout+0x86>
  10363. 80044f2: 687b ldr r3, [r7, #4]
  10364. 80044f4: 2b00 cmp r3, #0
  10365. 80044f6: d116 bne.n 8004526 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
  10366. {
  10367. hi2c->PreviousState = I2C_STATE_NONE;
  10368. 80044f8: 68fb ldr r3, [r7, #12]
  10369. 80044fa: 2200 movs r2, #0
  10370. 80044fc: 631a str r2, [r3, #48] ; 0x30
  10371. hi2c->State = HAL_I2C_STATE_READY;
  10372. 80044fe: 68fb ldr r3, [r7, #12]
  10373. 8004500: 2220 movs r2, #32
  10374. 8004502: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10375. hi2c->Mode = HAL_I2C_MODE_NONE;
  10376. 8004506: 68fb ldr r3, [r7, #12]
  10377. 8004508: 2200 movs r2, #0
  10378. 800450a: f883 203e strb.w r2, [r3, #62] ; 0x3e
  10379. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  10380. 800450e: 68fb ldr r3, [r7, #12]
  10381. 8004510: 6c1b ldr r3, [r3, #64] ; 0x40
  10382. 8004512: f043 0220 orr.w r2, r3, #32
  10383. 8004516: 68fb ldr r3, [r7, #12]
  10384. 8004518: 641a str r2, [r3, #64] ; 0x40
  10385. /* Process Unlocked */
  10386. __HAL_UNLOCK(hi2c);
  10387. 800451a: 68fb ldr r3, [r7, #12]
  10388. 800451c: 2200 movs r2, #0
  10389. 800451e: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10390. return HAL_ERROR;
  10391. 8004522: 2301 movs r3, #1
  10392. 8004524: e020 b.n 8004568 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf6>
  10393. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)
  10394. 8004526: 68bb ldr r3, [r7, #8]
  10395. 8004528: 0c1b lsrs r3, r3, #16
  10396. 800452a: b2db uxtb r3, r3
  10397. 800452c: 2b01 cmp r3, #1
  10398. 800452e: d10c bne.n 800454a <I2C_WaitOnMasterAddressFlagUntilTimeout+0xd8>
  10399. 8004530: 68fb ldr r3, [r7, #12]
  10400. 8004532: 681b ldr r3, [r3, #0]
  10401. 8004534: 695b ldr r3, [r3, #20]
  10402. 8004536: 43da mvns r2, r3
  10403. 8004538: 68bb ldr r3, [r7, #8]
  10404. 800453a: 4013 ands r3, r2
  10405. 800453c: b29b uxth r3, r3
  10406. 800453e: 2b00 cmp r3, #0
  10407. 8004540: bf14 ite ne
  10408. 8004542: 2301 movne r3, #1
  10409. 8004544: 2300 moveq r3, #0
  10410. 8004546: b2db uxtb r3, r3
  10411. 8004548: e00b b.n 8004562 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf0>
  10412. 800454a: 68fb ldr r3, [r7, #12]
  10413. 800454c: 681b ldr r3, [r3, #0]
  10414. 800454e: 699b ldr r3, [r3, #24]
  10415. 8004550: 43da mvns r2, r3
  10416. 8004552: 68bb ldr r3, [r7, #8]
  10417. 8004554: 4013 ands r3, r2
  10418. 8004556: b29b uxth r3, r3
  10419. 8004558: 2b00 cmp r3, #0
  10420. 800455a: bf14 ite ne
  10421. 800455c: 2301 movne r3, #1
  10422. 800455e: 2300 moveq r3, #0
  10423. 8004560: b2db uxtb r3, r3
  10424. 8004562: 2b00 cmp r3, #0
  10425. 8004564: d18d bne.n 8004482 <I2C_WaitOnMasterAddressFlagUntilTimeout+0x10>
  10426. }
  10427. }
  10428. }
  10429. return HAL_OK;
  10430. 8004566: 2300 movs r3, #0
  10431. }
  10432. 8004568: 4618 mov r0, r3
  10433. 800456a: 3710 adds r7, #16
  10434. 800456c: 46bd mov sp, r7
  10435. 800456e: bd80 pop {r7, pc}
  10436. 08004570 <I2C_WaitOnTXEFlagUntilTimeout>:
  10437. * @param Timeout Timeout duration
  10438. * @param Tickstart Tick start value
  10439. * @retval HAL status
  10440. */
  10441. static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart)
  10442. {
  10443. 8004570: b580 push {r7, lr}
  10444. 8004572: b084 sub sp, #16
  10445. 8004574: af00 add r7, sp, #0
  10446. 8004576: 60f8 str r0, [r7, #12]
  10447. 8004578: 60b9 str r1, [r7, #8]
  10448. 800457a: 607a str r2, [r7, #4]
  10449. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET)
  10450. 800457c: e02d b.n 80045da <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
  10451. {
  10452. /* Check if a NACK is detected */
  10453. if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK)
  10454. 800457e: 68f8 ldr r0, [r7, #12]
  10455. 8004580: f000 f878 bl 8004674 <I2C_IsAcknowledgeFailed>
  10456. 8004584: 4603 mov r3, r0
  10457. 8004586: 2b00 cmp r3, #0
  10458. 8004588: d001 beq.n 800458e <I2C_WaitOnTXEFlagUntilTimeout+0x1e>
  10459. {
  10460. return HAL_ERROR;
  10461. 800458a: 2301 movs r3, #1
  10462. 800458c: e02d b.n 80045ea <I2C_WaitOnTXEFlagUntilTimeout+0x7a>
  10463. }
  10464. /* Check for the Timeout */
  10465. if (Timeout != HAL_MAX_DELAY)
  10466. 800458e: 68bb ldr r3, [r7, #8]
  10467. 8004590: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  10468. 8004594: d021 beq.n 80045da <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
  10469. {
  10470. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  10471. 8004596: f7fd ff57 bl 8002448 <HAL_GetTick>
  10472. 800459a: 4602 mov r2, r0
  10473. 800459c: 687b ldr r3, [r7, #4]
  10474. 800459e: 1ad3 subs r3, r2, r3
  10475. 80045a0: 68ba ldr r2, [r7, #8]
  10476. 80045a2: 429a cmp r2, r3
  10477. 80045a4: d302 bcc.n 80045ac <I2C_WaitOnTXEFlagUntilTimeout+0x3c>
  10478. 80045a6: 68bb ldr r3, [r7, #8]
  10479. 80045a8: 2b00 cmp r3, #0
  10480. 80045aa: d116 bne.n 80045da <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
  10481. {
  10482. hi2c->PreviousState = I2C_STATE_NONE;
  10483. 80045ac: 68fb ldr r3, [r7, #12]
  10484. 80045ae: 2200 movs r2, #0
  10485. 80045b0: 631a str r2, [r3, #48] ; 0x30
  10486. hi2c->State = HAL_I2C_STATE_READY;
  10487. 80045b2: 68fb ldr r3, [r7, #12]
  10488. 80045b4: 2220 movs r2, #32
  10489. 80045b6: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10490. hi2c->Mode = HAL_I2C_MODE_NONE;
  10491. 80045ba: 68fb ldr r3, [r7, #12]
  10492. 80045bc: 2200 movs r2, #0
  10493. 80045be: f883 203e strb.w r2, [r3, #62] ; 0x3e
  10494. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  10495. 80045c2: 68fb ldr r3, [r7, #12]
  10496. 80045c4: 6c1b ldr r3, [r3, #64] ; 0x40
  10497. 80045c6: f043 0220 orr.w r2, r3, #32
  10498. 80045ca: 68fb ldr r3, [r7, #12]
  10499. 80045cc: 641a str r2, [r3, #64] ; 0x40
  10500. /* Process Unlocked */
  10501. __HAL_UNLOCK(hi2c);
  10502. 80045ce: 68fb ldr r3, [r7, #12]
  10503. 80045d0: 2200 movs r2, #0
  10504. 80045d2: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10505. return HAL_ERROR;
  10506. 80045d6: 2301 movs r3, #1
  10507. 80045d8: e007 b.n 80045ea <I2C_WaitOnTXEFlagUntilTimeout+0x7a>
  10508. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET)
  10509. 80045da: 68fb ldr r3, [r7, #12]
  10510. 80045dc: 681b ldr r3, [r3, #0]
  10511. 80045de: 695b ldr r3, [r3, #20]
  10512. 80045e0: f003 0380 and.w r3, r3, #128 ; 0x80
  10513. 80045e4: 2b80 cmp r3, #128 ; 0x80
  10514. 80045e6: d1ca bne.n 800457e <I2C_WaitOnTXEFlagUntilTimeout+0xe>
  10515. }
  10516. }
  10517. }
  10518. return HAL_OK;
  10519. 80045e8: 2300 movs r3, #0
  10520. }
  10521. 80045ea: 4618 mov r0, r3
  10522. 80045ec: 3710 adds r7, #16
  10523. 80045ee: 46bd mov sp, r7
  10524. 80045f0: bd80 pop {r7, pc}
  10525. 080045f2 <I2C_WaitOnBTFFlagUntilTimeout>:
  10526. * @param Timeout Timeout duration
  10527. * @param Tickstart Tick start value
  10528. * @retval HAL status
  10529. */
  10530. static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart)
  10531. {
  10532. 80045f2: b580 push {r7, lr}
  10533. 80045f4: b084 sub sp, #16
  10534. 80045f6: af00 add r7, sp, #0
  10535. 80045f8: 60f8 str r0, [r7, #12]
  10536. 80045fa: 60b9 str r1, [r7, #8]
  10537. 80045fc: 607a str r2, [r7, #4]
  10538. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET)
  10539. 80045fe: e02d b.n 800465c <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
  10540. {
  10541. /* Check if a NACK is detected */
  10542. if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK)
  10543. 8004600: 68f8 ldr r0, [r7, #12]
  10544. 8004602: f000 f837 bl 8004674 <I2C_IsAcknowledgeFailed>
  10545. 8004606: 4603 mov r3, r0
  10546. 8004608: 2b00 cmp r3, #0
  10547. 800460a: d001 beq.n 8004610 <I2C_WaitOnBTFFlagUntilTimeout+0x1e>
  10548. {
  10549. return HAL_ERROR;
  10550. 800460c: 2301 movs r3, #1
  10551. 800460e: e02d b.n 800466c <I2C_WaitOnBTFFlagUntilTimeout+0x7a>
  10552. }
  10553. /* Check for the Timeout */
  10554. if (Timeout != HAL_MAX_DELAY)
  10555. 8004610: 68bb ldr r3, [r7, #8]
  10556. 8004612: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  10557. 8004616: d021 beq.n 800465c <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
  10558. {
  10559. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  10560. 8004618: f7fd ff16 bl 8002448 <HAL_GetTick>
  10561. 800461c: 4602 mov r2, r0
  10562. 800461e: 687b ldr r3, [r7, #4]
  10563. 8004620: 1ad3 subs r3, r2, r3
  10564. 8004622: 68ba ldr r2, [r7, #8]
  10565. 8004624: 429a cmp r2, r3
  10566. 8004626: d302 bcc.n 800462e <I2C_WaitOnBTFFlagUntilTimeout+0x3c>
  10567. 8004628: 68bb ldr r3, [r7, #8]
  10568. 800462a: 2b00 cmp r3, #0
  10569. 800462c: d116 bne.n 800465c <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
  10570. {
  10571. hi2c->PreviousState = I2C_STATE_NONE;
  10572. 800462e: 68fb ldr r3, [r7, #12]
  10573. 8004630: 2200 movs r2, #0
  10574. 8004632: 631a str r2, [r3, #48] ; 0x30
  10575. hi2c->State = HAL_I2C_STATE_READY;
  10576. 8004634: 68fb ldr r3, [r7, #12]
  10577. 8004636: 2220 movs r2, #32
  10578. 8004638: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10579. hi2c->Mode = HAL_I2C_MODE_NONE;
  10580. 800463c: 68fb ldr r3, [r7, #12]
  10581. 800463e: 2200 movs r2, #0
  10582. 8004640: f883 203e strb.w r2, [r3, #62] ; 0x3e
  10583. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  10584. 8004644: 68fb ldr r3, [r7, #12]
  10585. 8004646: 6c1b ldr r3, [r3, #64] ; 0x40
  10586. 8004648: f043 0220 orr.w r2, r3, #32
  10587. 800464c: 68fb ldr r3, [r7, #12]
  10588. 800464e: 641a str r2, [r3, #64] ; 0x40
  10589. /* Process Unlocked */
  10590. __HAL_UNLOCK(hi2c);
  10591. 8004650: 68fb ldr r3, [r7, #12]
  10592. 8004652: 2200 movs r2, #0
  10593. 8004654: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10594. return HAL_ERROR;
  10595. 8004658: 2301 movs r3, #1
  10596. 800465a: e007 b.n 800466c <I2C_WaitOnBTFFlagUntilTimeout+0x7a>
  10597. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET)
  10598. 800465c: 68fb ldr r3, [r7, #12]
  10599. 800465e: 681b ldr r3, [r3, #0]
  10600. 8004660: 695b ldr r3, [r3, #20]
  10601. 8004662: f003 0304 and.w r3, r3, #4
  10602. 8004666: 2b04 cmp r3, #4
  10603. 8004668: d1ca bne.n 8004600 <I2C_WaitOnBTFFlagUntilTimeout+0xe>
  10604. }
  10605. }
  10606. }
  10607. return HAL_OK;
  10608. 800466a: 2300 movs r3, #0
  10609. }
  10610. 800466c: 4618 mov r0, r3
  10611. 800466e: 3710 adds r7, #16
  10612. 8004670: 46bd mov sp, r7
  10613. 8004672: bd80 pop {r7, pc}
  10614. 08004674 <I2C_IsAcknowledgeFailed>:
  10615. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains
  10616. * the configuration information for the specified I2C.
  10617. * @retval HAL status
  10618. */
  10619. static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c)
  10620. {
  10621. 8004674: b480 push {r7}
  10622. 8004676: b083 sub sp, #12
  10623. 8004678: af00 add r7, sp, #0
  10624. 800467a: 6078 str r0, [r7, #4]
  10625. if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET)
  10626. 800467c: 687b ldr r3, [r7, #4]
  10627. 800467e: 681b ldr r3, [r3, #0]
  10628. 8004680: 695b ldr r3, [r3, #20]
  10629. 8004682: f403 6380 and.w r3, r3, #1024 ; 0x400
  10630. 8004686: f5b3 6f80 cmp.w r3, #1024 ; 0x400
  10631. 800468a: d11b bne.n 80046c4 <I2C_IsAcknowledgeFailed+0x50>
  10632. {
  10633. /* Clear NACKF Flag */
  10634. __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF);
  10635. 800468c: 687b ldr r3, [r7, #4]
  10636. 800468e: 681b ldr r3, [r3, #0]
  10637. 8004690: f46f 6280 mvn.w r2, #1024 ; 0x400
  10638. 8004694: 615a str r2, [r3, #20]
  10639. hi2c->PreviousState = I2C_STATE_NONE;
  10640. 8004696: 687b ldr r3, [r7, #4]
  10641. 8004698: 2200 movs r2, #0
  10642. 800469a: 631a str r2, [r3, #48] ; 0x30
  10643. hi2c->State = HAL_I2C_STATE_READY;
  10644. 800469c: 687b ldr r3, [r7, #4]
  10645. 800469e: 2220 movs r2, #32
  10646. 80046a0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  10647. hi2c->Mode = HAL_I2C_MODE_NONE;
  10648. 80046a4: 687b ldr r3, [r7, #4]
  10649. 80046a6: 2200 movs r2, #0
  10650. 80046a8: f883 203e strb.w r2, [r3, #62] ; 0x3e
  10651. hi2c->ErrorCode |= HAL_I2C_ERROR_AF;
  10652. 80046ac: 687b ldr r3, [r7, #4]
  10653. 80046ae: 6c1b ldr r3, [r3, #64] ; 0x40
  10654. 80046b0: f043 0204 orr.w r2, r3, #4
  10655. 80046b4: 687b ldr r3, [r7, #4]
  10656. 80046b6: 641a str r2, [r3, #64] ; 0x40
  10657. /* Process Unlocked */
  10658. __HAL_UNLOCK(hi2c);
  10659. 80046b8: 687b ldr r3, [r7, #4]
  10660. 80046ba: 2200 movs r2, #0
  10661. 80046bc: f883 203c strb.w r2, [r3, #60] ; 0x3c
  10662. return HAL_ERROR;
  10663. 80046c0: 2301 movs r3, #1
  10664. 80046c2: e000 b.n 80046c6 <I2C_IsAcknowledgeFailed+0x52>
  10665. }
  10666. return HAL_OK;
  10667. 80046c4: 2300 movs r3, #0
  10668. }
  10669. 80046c6: 4618 mov r0, r3
  10670. 80046c8: 370c adds r7, #12
  10671. 80046ca: 46bd mov sp, r7
  10672. 80046cc: bc80 pop {r7}
  10673. 80046ce: 4770 bx lr
  10674. 080046d0 <HAL_PWR_EnterSTOPMode>:
  10675. * @arg PWR_STOPENTRY_WFI: Enter Stop mode with WFI instruction
  10676. * @arg PWR_STOPENTRY_WFE: Enter Stop mode with WFE instruction
  10677. * @retval None
  10678. */
  10679. void HAL_PWR_EnterSTOPMode(uint32_t Regulator, uint8_t STOPEntry)
  10680. {
  10681. 80046d0: b480 push {r7}
  10682. 80046d2: b083 sub sp, #12
  10683. 80046d4: af00 add r7, sp, #0
  10684. 80046d6: 6078 str r0, [r7, #4]
  10685. 80046d8: 460b mov r3, r1
  10686. 80046da: 70fb strb r3, [r7, #3]
  10687. /* Check the parameters */
  10688. assert_param(IS_PWR_REGULATOR(Regulator));
  10689. assert_param(IS_PWR_STOP_ENTRY(STOPEntry));
  10690. /* Select the regulator state in Stop mode: Set PDDS and LPSDSR bit according to PWR_Regulator value */
  10691. MODIFY_REG(PWR->CR, (PWR_CR_PDDS | PWR_CR_LPSDSR), Regulator);
  10692. 80046dc: 4b10 ldr r3, [pc, #64] ; (8004720 <HAL_PWR_EnterSTOPMode+0x50>)
  10693. 80046de: 681b ldr r3, [r3, #0]
  10694. 80046e0: f023 0203 bic.w r2, r3, #3
  10695. 80046e4: 490e ldr r1, [pc, #56] ; (8004720 <HAL_PWR_EnterSTOPMode+0x50>)
  10696. 80046e6: 687b ldr r3, [r7, #4]
  10697. 80046e8: 4313 orrs r3, r2
  10698. 80046ea: 600b str r3, [r1, #0]
  10699. /* Set SLEEPDEEP bit of Cortex System Control Register */
  10700. SET_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
  10701. 80046ec: 4b0d ldr r3, [pc, #52] ; (8004724 <HAL_PWR_EnterSTOPMode+0x54>)
  10702. 80046ee: 691b ldr r3, [r3, #16]
  10703. 80046f0: 4a0c ldr r2, [pc, #48] ; (8004724 <HAL_PWR_EnterSTOPMode+0x54>)
  10704. 80046f2: f043 0304 orr.w r3, r3, #4
  10705. 80046f6: 6113 str r3, [r2, #16]
  10706. /* Select Stop mode entry --------------------------------------------------*/
  10707. if(STOPEntry == PWR_STOPENTRY_WFI)
  10708. 80046f8: 78fb ldrb r3, [r7, #3]
  10709. 80046fa: 2b01 cmp r3, #1
  10710. 80046fc: d101 bne.n 8004702 <HAL_PWR_EnterSTOPMode+0x32>
  10711. {
  10712. /* Request Wait For Interrupt */
  10713. __WFI();
  10714. 80046fe: bf30 wfi
  10715. 8004700: e002 b.n 8004708 <HAL_PWR_EnterSTOPMode+0x38>
  10716. }
  10717. else
  10718. {
  10719. /* Request Wait For Event */
  10720. __SEV();
  10721. 8004702: bf40 sev
  10722. __WFE();
  10723. 8004704: bf20 wfe
  10724. __WFE();
  10725. 8004706: bf20 wfe
  10726. }
  10727. /* Reset SLEEPDEEP bit of Cortex System Control Register */
  10728. CLEAR_BIT(SCB->SCR, ((uint32_t)SCB_SCR_SLEEPDEEP_Msk));
  10729. 8004708: 4b06 ldr r3, [pc, #24] ; (8004724 <HAL_PWR_EnterSTOPMode+0x54>)
  10730. 800470a: 691b ldr r3, [r3, #16]
  10731. 800470c: 4a05 ldr r2, [pc, #20] ; (8004724 <HAL_PWR_EnterSTOPMode+0x54>)
  10732. 800470e: f023 0304 bic.w r3, r3, #4
  10733. 8004712: 6113 str r3, [r2, #16]
  10734. }
  10735. 8004714: bf00 nop
  10736. 8004716: 370c adds r7, #12
  10737. 8004718: 46bd mov sp, r7
  10738. 800471a: bc80 pop {r7}
  10739. 800471c: 4770 bx lr
  10740. 800471e: bf00 nop
  10741. 8004720: 40007000 .word 0x40007000
  10742. 8004724: e000ed00 .word 0xe000ed00
  10743. 08004728 <HAL_RCC_OscConfig>:
  10744. * supported by this macro. User should request a transition to HSE Off
  10745. * first and then HSE On or HSE Bypass.
  10746. * @retval HAL status
  10747. */
  10748. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  10749. {
  10750. 8004728: b580 push {r7, lr}
  10751. 800472a: b088 sub sp, #32
  10752. 800472c: af00 add r7, sp, #0
  10753. 800472e: 6078 str r0, [r7, #4]
  10754. uint32_t tickstart;
  10755. HAL_StatusTypeDef status;
  10756. uint32_t sysclk_source, pll_config;
  10757. /* Check the parameters */
  10758. if(RCC_OscInitStruct == NULL)
  10759. 8004730: 687b ldr r3, [r7, #4]
  10760. 8004732: 2b00 cmp r3, #0
  10761. 8004734: d101 bne.n 800473a <HAL_RCC_OscConfig+0x12>
  10762. {
  10763. return HAL_ERROR;
  10764. 8004736: 2301 movs r3, #1
  10765. 8004738: e31d b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  10766. }
  10767. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  10768. sysclk_source = __HAL_RCC_GET_SYSCLK_SOURCE();
  10769. 800473a: 4b94 ldr r3, [pc, #592] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10770. 800473c: 689b ldr r3, [r3, #8]
  10771. 800473e: f003 030c and.w r3, r3, #12
  10772. 8004742: 61bb str r3, [r7, #24]
  10773. pll_config = __HAL_RCC_GET_PLL_OSCSOURCE();
  10774. 8004744: 4b91 ldr r3, [pc, #580] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10775. 8004746: 689b ldr r3, [r3, #8]
  10776. 8004748: f403 3380 and.w r3, r3, #65536 ; 0x10000
  10777. 800474c: 617b str r3, [r7, #20]
  10778. /*------------------------------- HSE Configuration ------------------------*/
  10779. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  10780. 800474e: 687b ldr r3, [r7, #4]
  10781. 8004750: 681b ldr r3, [r3, #0]
  10782. 8004752: f003 0301 and.w r3, r3, #1
  10783. 8004756: 2b00 cmp r3, #0
  10784. 8004758: d07b beq.n 8004852 <HAL_RCC_OscConfig+0x12a>
  10785. {
  10786. /* Check the parameters */
  10787. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  10788. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  10789. if((sysclk_source == RCC_SYSCLKSOURCE_STATUS_HSE)
  10790. 800475a: 69bb ldr r3, [r7, #24]
  10791. 800475c: 2b08 cmp r3, #8
  10792. 800475e: d006 beq.n 800476e <HAL_RCC_OscConfig+0x46>
  10793. || ((sysclk_source == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (pll_config == RCC_PLLSOURCE_HSE)))
  10794. 8004760: 69bb ldr r3, [r7, #24]
  10795. 8004762: 2b0c cmp r3, #12
  10796. 8004764: d10f bne.n 8004786 <HAL_RCC_OscConfig+0x5e>
  10797. 8004766: 697b ldr r3, [r7, #20]
  10798. 8004768: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  10799. 800476c: d10b bne.n 8004786 <HAL_RCC_OscConfig+0x5e>
  10800. {
  10801. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  10802. 800476e: 4b87 ldr r3, [pc, #540] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10803. 8004770: 681b ldr r3, [r3, #0]
  10804. 8004772: f403 3300 and.w r3, r3, #131072 ; 0x20000
  10805. 8004776: 2b00 cmp r3, #0
  10806. 8004778: d06a beq.n 8004850 <HAL_RCC_OscConfig+0x128>
  10807. 800477a: 687b ldr r3, [r7, #4]
  10808. 800477c: 685b ldr r3, [r3, #4]
  10809. 800477e: 2b00 cmp r3, #0
  10810. 8004780: d166 bne.n 8004850 <HAL_RCC_OscConfig+0x128>
  10811. {
  10812. return HAL_ERROR;
  10813. 8004782: 2301 movs r3, #1
  10814. 8004784: e2f7 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  10815. }
  10816. }
  10817. else
  10818. {
  10819. /* Set the new HSE configuration ---------------------------------------*/
  10820. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  10821. 8004786: 687b ldr r3, [r7, #4]
  10822. 8004788: 685b ldr r3, [r3, #4]
  10823. 800478a: 2b01 cmp r3, #1
  10824. 800478c: d106 bne.n 800479c <HAL_RCC_OscConfig+0x74>
  10825. 800478e: 4b7f ldr r3, [pc, #508] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10826. 8004790: 681b ldr r3, [r3, #0]
  10827. 8004792: 4a7e ldr r2, [pc, #504] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10828. 8004794: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  10829. 8004798: 6013 str r3, [r2, #0]
  10830. 800479a: e02d b.n 80047f8 <HAL_RCC_OscConfig+0xd0>
  10831. 800479c: 687b ldr r3, [r7, #4]
  10832. 800479e: 685b ldr r3, [r3, #4]
  10833. 80047a0: 2b00 cmp r3, #0
  10834. 80047a2: d10c bne.n 80047be <HAL_RCC_OscConfig+0x96>
  10835. 80047a4: 4b79 ldr r3, [pc, #484] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10836. 80047a6: 681b ldr r3, [r3, #0]
  10837. 80047a8: 4a78 ldr r2, [pc, #480] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10838. 80047aa: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  10839. 80047ae: 6013 str r3, [r2, #0]
  10840. 80047b0: 4b76 ldr r3, [pc, #472] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10841. 80047b2: 681b ldr r3, [r3, #0]
  10842. 80047b4: 4a75 ldr r2, [pc, #468] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10843. 80047b6: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  10844. 80047ba: 6013 str r3, [r2, #0]
  10845. 80047bc: e01c b.n 80047f8 <HAL_RCC_OscConfig+0xd0>
  10846. 80047be: 687b ldr r3, [r7, #4]
  10847. 80047c0: 685b ldr r3, [r3, #4]
  10848. 80047c2: 2b05 cmp r3, #5
  10849. 80047c4: d10c bne.n 80047e0 <HAL_RCC_OscConfig+0xb8>
  10850. 80047c6: 4b71 ldr r3, [pc, #452] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10851. 80047c8: 681b ldr r3, [r3, #0]
  10852. 80047ca: 4a70 ldr r2, [pc, #448] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10853. 80047cc: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  10854. 80047d0: 6013 str r3, [r2, #0]
  10855. 80047d2: 4b6e ldr r3, [pc, #440] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10856. 80047d4: 681b ldr r3, [r3, #0]
  10857. 80047d6: 4a6d ldr r2, [pc, #436] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10858. 80047d8: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  10859. 80047dc: 6013 str r3, [r2, #0]
  10860. 80047de: e00b b.n 80047f8 <HAL_RCC_OscConfig+0xd0>
  10861. 80047e0: 4b6a ldr r3, [pc, #424] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10862. 80047e2: 681b ldr r3, [r3, #0]
  10863. 80047e4: 4a69 ldr r2, [pc, #420] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10864. 80047e6: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  10865. 80047ea: 6013 str r3, [r2, #0]
  10866. 80047ec: 4b67 ldr r3, [pc, #412] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10867. 80047ee: 681b ldr r3, [r3, #0]
  10868. 80047f0: 4a66 ldr r2, [pc, #408] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10869. 80047f2: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  10870. 80047f6: 6013 str r3, [r2, #0]
  10871. /* Check the HSE State */
  10872. if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  10873. 80047f8: 687b ldr r3, [r7, #4]
  10874. 80047fa: 685b ldr r3, [r3, #4]
  10875. 80047fc: 2b00 cmp r3, #0
  10876. 80047fe: d013 beq.n 8004828 <HAL_RCC_OscConfig+0x100>
  10877. {
  10878. /* Get Start Tick */
  10879. tickstart = HAL_GetTick();
  10880. 8004800: f7fd fe22 bl 8002448 <HAL_GetTick>
  10881. 8004804: 6138 str r0, [r7, #16]
  10882. /* Wait till HSE is ready */
  10883. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  10884. 8004806: e008 b.n 800481a <HAL_RCC_OscConfig+0xf2>
  10885. {
  10886. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  10887. 8004808: f7fd fe1e bl 8002448 <HAL_GetTick>
  10888. 800480c: 4602 mov r2, r0
  10889. 800480e: 693b ldr r3, [r7, #16]
  10890. 8004810: 1ad3 subs r3, r2, r3
  10891. 8004812: 2b64 cmp r3, #100 ; 0x64
  10892. 8004814: d901 bls.n 800481a <HAL_RCC_OscConfig+0xf2>
  10893. {
  10894. return HAL_TIMEOUT;
  10895. 8004816: 2303 movs r3, #3
  10896. 8004818: e2ad b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  10897. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  10898. 800481a: 4b5c ldr r3, [pc, #368] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10899. 800481c: 681b ldr r3, [r3, #0]
  10900. 800481e: f403 3300 and.w r3, r3, #131072 ; 0x20000
  10901. 8004822: 2b00 cmp r3, #0
  10902. 8004824: d0f0 beq.n 8004808 <HAL_RCC_OscConfig+0xe0>
  10903. 8004826: e014 b.n 8004852 <HAL_RCC_OscConfig+0x12a>
  10904. }
  10905. }
  10906. else
  10907. {
  10908. /* Get Start Tick */
  10909. tickstart = HAL_GetTick();
  10910. 8004828: f7fd fe0e bl 8002448 <HAL_GetTick>
  10911. 800482c: 6138 str r0, [r7, #16]
  10912. /* Wait till HSE is disabled */
  10913. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  10914. 800482e: e008 b.n 8004842 <HAL_RCC_OscConfig+0x11a>
  10915. {
  10916. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  10917. 8004830: f7fd fe0a bl 8002448 <HAL_GetTick>
  10918. 8004834: 4602 mov r2, r0
  10919. 8004836: 693b ldr r3, [r7, #16]
  10920. 8004838: 1ad3 subs r3, r2, r3
  10921. 800483a: 2b64 cmp r3, #100 ; 0x64
  10922. 800483c: d901 bls.n 8004842 <HAL_RCC_OscConfig+0x11a>
  10923. {
  10924. return HAL_TIMEOUT;
  10925. 800483e: 2303 movs r3, #3
  10926. 8004840: e299 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  10927. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  10928. 8004842: 4b52 ldr r3, [pc, #328] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10929. 8004844: 681b ldr r3, [r3, #0]
  10930. 8004846: f403 3300 and.w r3, r3, #131072 ; 0x20000
  10931. 800484a: 2b00 cmp r3, #0
  10932. 800484c: d1f0 bne.n 8004830 <HAL_RCC_OscConfig+0x108>
  10933. 800484e: e000 b.n 8004852 <HAL_RCC_OscConfig+0x12a>
  10934. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  10935. 8004850: bf00 nop
  10936. }
  10937. }
  10938. }
  10939. }
  10940. /*----------------------------- HSI Configuration --------------------------*/
  10941. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  10942. 8004852: 687b ldr r3, [r7, #4]
  10943. 8004854: 681b ldr r3, [r3, #0]
  10944. 8004856: f003 0302 and.w r3, r3, #2
  10945. 800485a: 2b00 cmp r3, #0
  10946. 800485c: d05a beq.n 8004914 <HAL_RCC_OscConfig+0x1ec>
  10947. /* Check the parameters */
  10948. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  10949. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  10950. /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
  10951. if((sysclk_source == RCC_SYSCLKSOURCE_STATUS_HSI)
  10952. 800485e: 69bb ldr r3, [r7, #24]
  10953. 8004860: 2b04 cmp r3, #4
  10954. 8004862: d005 beq.n 8004870 <HAL_RCC_OscConfig+0x148>
  10955. || ((sysclk_source == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (pll_config == RCC_PLLSOURCE_HSI)))
  10956. 8004864: 69bb ldr r3, [r7, #24]
  10957. 8004866: 2b0c cmp r3, #12
  10958. 8004868: d119 bne.n 800489e <HAL_RCC_OscConfig+0x176>
  10959. 800486a: 697b ldr r3, [r7, #20]
  10960. 800486c: 2b00 cmp r3, #0
  10961. 800486e: d116 bne.n 800489e <HAL_RCC_OscConfig+0x176>
  10962. {
  10963. /* When HSI is used as system clock it will not disabled */
  10964. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  10965. 8004870: 4b46 ldr r3, [pc, #280] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10966. 8004872: 681b ldr r3, [r3, #0]
  10967. 8004874: f003 0302 and.w r3, r3, #2
  10968. 8004878: 2b00 cmp r3, #0
  10969. 800487a: d005 beq.n 8004888 <HAL_RCC_OscConfig+0x160>
  10970. 800487c: 687b ldr r3, [r7, #4]
  10971. 800487e: 68db ldr r3, [r3, #12]
  10972. 8004880: 2b01 cmp r3, #1
  10973. 8004882: d001 beq.n 8004888 <HAL_RCC_OscConfig+0x160>
  10974. {
  10975. return HAL_ERROR;
  10976. 8004884: 2301 movs r3, #1
  10977. 8004886: e276 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  10978. }
  10979. /* Otherwise, just the calibration is allowed */
  10980. else
  10981. {
  10982. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  10983. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  10984. 8004888: 4b40 ldr r3, [pc, #256] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10985. 800488a: 685b ldr r3, [r3, #4]
  10986. 800488c: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
  10987. 8004890: 687b ldr r3, [r7, #4]
  10988. 8004892: 691b ldr r3, [r3, #16]
  10989. 8004894: 021b lsls r3, r3, #8
  10990. 8004896: 493d ldr r1, [pc, #244] ; (800498c <HAL_RCC_OscConfig+0x264>)
  10991. 8004898: 4313 orrs r3, r2
  10992. 800489a: 604b str r3, [r1, #4]
  10993. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  10994. 800489c: e03a b.n 8004914 <HAL_RCC_OscConfig+0x1ec>
  10995. }
  10996. }
  10997. else
  10998. {
  10999. /* Check the HSI State */
  11000. if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  11001. 800489e: 687b ldr r3, [r7, #4]
  11002. 80048a0: 68db ldr r3, [r3, #12]
  11003. 80048a2: 2b00 cmp r3, #0
  11004. 80048a4: d020 beq.n 80048e8 <HAL_RCC_OscConfig+0x1c0>
  11005. {
  11006. /* Enable the Internal High Speed oscillator (HSI). */
  11007. __HAL_RCC_HSI_ENABLE();
  11008. 80048a6: 4b3a ldr r3, [pc, #232] ; (8004990 <HAL_RCC_OscConfig+0x268>)
  11009. 80048a8: 2201 movs r2, #1
  11010. 80048aa: 601a str r2, [r3, #0]
  11011. /* Get Start Tick */
  11012. tickstart = HAL_GetTick();
  11013. 80048ac: f7fd fdcc bl 8002448 <HAL_GetTick>
  11014. 80048b0: 6138 str r0, [r7, #16]
  11015. /* Wait till HSI is ready */
  11016. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  11017. 80048b2: e008 b.n 80048c6 <HAL_RCC_OscConfig+0x19e>
  11018. {
  11019. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  11020. 80048b4: f7fd fdc8 bl 8002448 <HAL_GetTick>
  11021. 80048b8: 4602 mov r2, r0
  11022. 80048ba: 693b ldr r3, [r7, #16]
  11023. 80048bc: 1ad3 subs r3, r2, r3
  11024. 80048be: 2b02 cmp r3, #2
  11025. 80048c0: d901 bls.n 80048c6 <HAL_RCC_OscConfig+0x19e>
  11026. {
  11027. return HAL_TIMEOUT;
  11028. 80048c2: 2303 movs r3, #3
  11029. 80048c4: e257 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11030. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  11031. 80048c6: 4b31 ldr r3, [pc, #196] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11032. 80048c8: 681b ldr r3, [r3, #0]
  11033. 80048ca: f003 0302 and.w r3, r3, #2
  11034. 80048ce: 2b00 cmp r3, #0
  11035. 80048d0: d0f0 beq.n 80048b4 <HAL_RCC_OscConfig+0x18c>
  11036. }
  11037. }
  11038. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  11039. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  11040. 80048d2: 4b2e ldr r3, [pc, #184] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11041. 80048d4: 685b ldr r3, [r3, #4]
  11042. 80048d6: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
  11043. 80048da: 687b ldr r3, [r7, #4]
  11044. 80048dc: 691b ldr r3, [r3, #16]
  11045. 80048de: 021b lsls r3, r3, #8
  11046. 80048e0: 492a ldr r1, [pc, #168] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11047. 80048e2: 4313 orrs r3, r2
  11048. 80048e4: 604b str r3, [r1, #4]
  11049. 80048e6: e015 b.n 8004914 <HAL_RCC_OscConfig+0x1ec>
  11050. }
  11051. else
  11052. {
  11053. /* Disable the Internal High Speed oscillator (HSI). */
  11054. __HAL_RCC_HSI_DISABLE();
  11055. 80048e8: 4b29 ldr r3, [pc, #164] ; (8004990 <HAL_RCC_OscConfig+0x268>)
  11056. 80048ea: 2200 movs r2, #0
  11057. 80048ec: 601a str r2, [r3, #0]
  11058. /* Get Start Tick */
  11059. tickstart = HAL_GetTick();
  11060. 80048ee: f7fd fdab bl 8002448 <HAL_GetTick>
  11061. 80048f2: 6138 str r0, [r7, #16]
  11062. /* Wait till HSI is disabled */
  11063. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  11064. 80048f4: e008 b.n 8004908 <HAL_RCC_OscConfig+0x1e0>
  11065. {
  11066. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  11067. 80048f6: f7fd fda7 bl 8002448 <HAL_GetTick>
  11068. 80048fa: 4602 mov r2, r0
  11069. 80048fc: 693b ldr r3, [r7, #16]
  11070. 80048fe: 1ad3 subs r3, r2, r3
  11071. 8004900: 2b02 cmp r3, #2
  11072. 8004902: d901 bls.n 8004908 <HAL_RCC_OscConfig+0x1e0>
  11073. {
  11074. return HAL_TIMEOUT;
  11075. 8004904: 2303 movs r3, #3
  11076. 8004906: e236 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11077. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  11078. 8004908: 4b20 ldr r3, [pc, #128] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11079. 800490a: 681b ldr r3, [r3, #0]
  11080. 800490c: f003 0302 and.w r3, r3, #2
  11081. 8004910: 2b00 cmp r3, #0
  11082. 8004912: d1f0 bne.n 80048f6 <HAL_RCC_OscConfig+0x1ce>
  11083. }
  11084. }
  11085. }
  11086. }
  11087. /*----------------------------- MSI Configuration --------------------------*/
  11088. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_MSI) == RCC_OSCILLATORTYPE_MSI)
  11089. 8004914: 687b ldr r3, [r7, #4]
  11090. 8004916: 681b ldr r3, [r3, #0]
  11091. 8004918: f003 0310 and.w r3, r3, #16
  11092. 800491c: 2b00 cmp r3, #0
  11093. 800491e: f000 80b8 beq.w 8004a92 <HAL_RCC_OscConfig+0x36a>
  11094. {
  11095. /* When the MSI is used as system clock it will not be disabled */
  11096. if(sysclk_source == RCC_CFGR_SWS_MSI)
  11097. 8004922: 69bb ldr r3, [r7, #24]
  11098. 8004924: 2b00 cmp r3, #0
  11099. 8004926: d170 bne.n 8004a0a <HAL_RCC_OscConfig+0x2e2>
  11100. {
  11101. if((__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U) && (RCC_OscInitStruct->MSIState == RCC_MSI_OFF))
  11102. 8004928: 4b18 ldr r3, [pc, #96] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11103. 800492a: 681b ldr r3, [r3, #0]
  11104. 800492c: f403 7300 and.w r3, r3, #512 ; 0x200
  11105. 8004930: 2b00 cmp r3, #0
  11106. 8004932: d005 beq.n 8004940 <HAL_RCC_OscConfig+0x218>
  11107. 8004934: 687b ldr r3, [r7, #4]
  11108. 8004936: 699b ldr r3, [r3, #24]
  11109. 8004938: 2b00 cmp r3, #0
  11110. 800493a: d101 bne.n 8004940 <HAL_RCC_OscConfig+0x218>
  11111. {
  11112. return HAL_ERROR;
  11113. 800493c: 2301 movs r3, #1
  11114. 800493e: e21a b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11115. assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange));
  11116. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  11117. must be correctly programmed according to the frequency of the CPU clock
  11118. (HCLK) and the supply voltage of the device. */
  11119. if(RCC_OscInitStruct->MSIClockRange > __HAL_RCC_GET_MSI_RANGE())
  11120. 8004940: 687b ldr r3, [r7, #4]
  11121. 8004942: 6a1a ldr r2, [r3, #32]
  11122. 8004944: 4b11 ldr r3, [pc, #68] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11123. 8004946: 685b ldr r3, [r3, #4]
  11124. 8004948: f403 4360 and.w r3, r3, #57344 ; 0xe000
  11125. 800494c: 429a cmp r2, r3
  11126. 800494e: d921 bls.n 8004994 <HAL_RCC_OscConfig+0x26c>
  11127. {
  11128. /* First increase number of wait states update if necessary */
  11129. if(RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK)
  11130. 8004950: 687b ldr r3, [r7, #4]
  11131. 8004952: 6a1b ldr r3, [r3, #32]
  11132. 8004954: 4618 mov r0, r3
  11133. 8004956: f000 fc4b bl 80051f0 <RCC_SetFlashLatencyFromMSIRange>
  11134. 800495a: 4603 mov r3, r0
  11135. 800495c: 2b00 cmp r3, #0
  11136. 800495e: d001 beq.n 8004964 <HAL_RCC_OscConfig+0x23c>
  11137. {
  11138. return HAL_ERROR;
  11139. 8004960: 2301 movs r3, #1
  11140. 8004962: e208 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11141. }
  11142. /* Selects the Multiple Speed oscillator (MSI) clock range .*/
  11143. __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
  11144. 8004964: 4b09 ldr r3, [pc, #36] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11145. 8004966: 685b ldr r3, [r3, #4]
  11146. 8004968: f423 4260 bic.w r2, r3, #57344 ; 0xe000
  11147. 800496c: 687b ldr r3, [r7, #4]
  11148. 800496e: 6a1b ldr r3, [r3, #32]
  11149. 8004970: 4906 ldr r1, [pc, #24] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11150. 8004972: 4313 orrs r3, r2
  11151. 8004974: 604b str r3, [r1, #4]
  11152. /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
  11153. __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
  11154. 8004976: 4b05 ldr r3, [pc, #20] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11155. 8004978: 685b ldr r3, [r3, #4]
  11156. 800497a: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
  11157. 800497e: 687b ldr r3, [r7, #4]
  11158. 8004980: 69db ldr r3, [r3, #28]
  11159. 8004982: 061b lsls r3, r3, #24
  11160. 8004984: 4901 ldr r1, [pc, #4] ; (800498c <HAL_RCC_OscConfig+0x264>)
  11161. 8004986: 4313 orrs r3, r2
  11162. 8004988: 604b str r3, [r1, #4]
  11163. 800498a: e020 b.n 80049ce <HAL_RCC_OscConfig+0x2a6>
  11164. 800498c: 40023800 .word 0x40023800
  11165. 8004990: 42470000 .word 0x42470000
  11166. }
  11167. else
  11168. {
  11169. /* Else, keep current flash latency while decreasing applies */
  11170. /* Selects the Multiple Speed oscillator (MSI) clock range .*/
  11171. __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
  11172. 8004994: 4ba4 ldr r3, [pc, #656] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11173. 8004996: 685b ldr r3, [r3, #4]
  11174. 8004998: f423 4260 bic.w r2, r3, #57344 ; 0xe000
  11175. 800499c: 687b ldr r3, [r7, #4]
  11176. 800499e: 6a1b ldr r3, [r3, #32]
  11177. 80049a0: 49a1 ldr r1, [pc, #644] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11178. 80049a2: 4313 orrs r3, r2
  11179. 80049a4: 604b str r3, [r1, #4]
  11180. /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
  11181. __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
  11182. 80049a6: 4ba0 ldr r3, [pc, #640] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11183. 80049a8: 685b ldr r3, [r3, #4]
  11184. 80049aa: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
  11185. 80049ae: 687b ldr r3, [r7, #4]
  11186. 80049b0: 69db ldr r3, [r3, #28]
  11187. 80049b2: 061b lsls r3, r3, #24
  11188. 80049b4: 499c ldr r1, [pc, #624] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11189. 80049b6: 4313 orrs r3, r2
  11190. 80049b8: 604b str r3, [r1, #4]
  11191. /* Decrease number of wait states update if necessary */
  11192. if(RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK)
  11193. 80049ba: 687b ldr r3, [r7, #4]
  11194. 80049bc: 6a1b ldr r3, [r3, #32]
  11195. 80049be: 4618 mov r0, r3
  11196. 80049c0: f000 fc16 bl 80051f0 <RCC_SetFlashLatencyFromMSIRange>
  11197. 80049c4: 4603 mov r3, r0
  11198. 80049c6: 2b00 cmp r3, #0
  11199. 80049c8: d001 beq.n 80049ce <HAL_RCC_OscConfig+0x2a6>
  11200. {
  11201. return HAL_ERROR;
  11202. 80049ca: 2301 movs r3, #1
  11203. 80049cc: e1d3 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11204. }
  11205. }
  11206. /* Update the SystemCoreClock global variable */
  11207. SystemCoreClock = (32768U * (1UL << ((RCC_OscInitStruct->MSIClockRange >> RCC_ICSCR_MSIRANGE_Pos) + 1U)))
  11208. 80049ce: 687b ldr r3, [r7, #4]
  11209. 80049d0: 6a1b ldr r3, [r3, #32]
  11210. 80049d2: 0b5b lsrs r3, r3, #13
  11211. 80049d4: 3301 adds r3, #1
  11212. 80049d6: f44f 4200 mov.w r2, #32768 ; 0x8000
  11213. 80049da: fa02 f303 lsl.w r3, r2, r3
  11214. >> AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos)];
  11215. 80049de: 4a92 ldr r2, [pc, #584] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11216. 80049e0: 6892 ldr r2, [r2, #8]
  11217. 80049e2: 0912 lsrs r2, r2, #4
  11218. 80049e4: f002 020f and.w r2, r2, #15
  11219. 80049e8: 4990 ldr r1, [pc, #576] ; (8004c2c <HAL_RCC_OscConfig+0x504>)
  11220. 80049ea: 5c8a ldrb r2, [r1, r2]
  11221. 80049ec: 40d3 lsrs r3, r2
  11222. SystemCoreClock = (32768U * (1UL << ((RCC_OscInitStruct->MSIClockRange >> RCC_ICSCR_MSIRANGE_Pos) + 1U)))
  11223. 80049ee: 4a90 ldr r2, [pc, #576] ; (8004c30 <HAL_RCC_OscConfig+0x508>)
  11224. 80049f0: 6013 str r3, [r2, #0]
  11225. /* Configure the source of time base considering new system clocks settings*/
  11226. status = HAL_InitTick(uwTickPrio);
  11227. 80049f2: 4b90 ldr r3, [pc, #576] ; (8004c34 <HAL_RCC_OscConfig+0x50c>)
  11228. 80049f4: 681b ldr r3, [r3, #0]
  11229. 80049f6: 4618 mov r0, r3
  11230. 80049f8: f7fd fcda bl 80023b0 <HAL_InitTick>
  11231. 80049fc: 4603 mov r3, r0
  11232. 80049fe: 73fb strb r3, [r7, #15]
  11233. if(status != HAL_OK)
  11234. 8004a00: 7bfb ldrb r3, [r7, #15]
  11235. 8004a02: 2b00 cmp r3, #0
  11236. 8004a04: d045 beq.n 8004a92 <HAL_RCC_OscConfig+0x36a>
  11237. {
  11238. return status;
  11239. 8004a06: 7bfb ldrb r3, [r7, #15]
  11240. 8004a08: e1b5 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11241. {
  11242. /* Check MSI State */
  11243. assert_param(IS_RCC_MSI(RCC_OscInitStruct->MSIState));
  11244. /* Check the MSI State */
  11245. if(RCC_OscInitStruct->MSIState != RCC_MSI_OFF)
  11246. 8004a0a: 687b ldr r3, [r7, #4]
  11247. 8004a0c: 699b ldr r3, [r3, #24]
  11248. 8004a0e: 2b00 cmp r3, #0
  11249. 8004a10: d029 beq.n 8004a66 <HAL_RCC_OscConfig+0x33e>
  11250. {
  11251. /* Enable the Multi Speed oscillator (MSI). */
  11252. __HAL_RCC_MSI_ENABLE();
  11253. 8004a12: 4b89 ldr r3, [pc, #548] ; (8004c38 <HAL_RCC_OscConfig+0x510>)
  11254. 8004a14: 2201 movs r2, #1
  11255. 8004a16: 601a str r2, [r3, #0]
  11256. /* Get Start Tick */
  11257. tickstart = HAL_GetTick();
  11258. 8004a18: f7fd fd16 bl 8002448 <HAL_GetTick>
  11259. 8004a1c: 6138 str r0, [r7, #16]
  11260. /* Wait till MSI is ready */
  11261. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
  11262. 8004a1e: e008 b.n 8004a32 <HAL_RCC_OscConfig+0x30a>
  11263. {
  11264. if((HAL_GetTick() - tickstart) > MSI_TIMEOUT_VALUE)
  11265. 8004a20: f7fd fd12 bl 8002448 <HAL_GetTick>
  11266. 8004a24: 4602 mov r2, r0
  11267. 8004a26: 693b ldr r3, [r7, #16]
  11268. 8004a28: 1ad3 subs r3, r2, r3
  11269. 8004a2a: 2b02 cmp r3, #2
  11270. 8004a2c: d901 bls.n 8004a32 <HAL_RCC_OscConfig+0x30a>
  11271. {
  11272. return HAL_TIMEOUT;
  11273. 8004a2e: 2303 movs r3, #3
  11274. 8004a30: e1a1 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11275. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
  11276. 8004a32: 4b7d ldr r3, [pc, #500] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11277. 8004a34: 681b ldr r3, [r3, #0]
  11278. 8004a36: f403 7300 and.w r3, r3, #512 ; 0x200
  11279. 8004a3a: 2b00 cmp r3, #0
  11280. 8004a3c: d0f0 beq.n 8004a20 <HAL_RCC_OscConfig+0x2f8>
  11281. /* Check MSICalibrationValue and MSIClockRange input parameters */
  11282. assert_param(IS_RCC_MSICALIBRATION_VALUE(RCC_OscInitStruct->MSICalibrationValue));
  11283. assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange));
  11284. /* Selects the Multiple Speed oscillator (MSI) clock range .*/
  11285. __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
  11286. 8004a3e: 4b7a ldr r3, [pc, #488] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11287. 8004a40: 685b ldr r3, [r3, #4]
  11288. 8004a42: f423 4260 bic.w r2, r3, #57344 ; 0xe000
  11289. 8004a46: 687b ldr r3, [r7, #4]
  11290. 8004a48: 6a1b ldr r3, [r3, #32]
  11291. 8004a4a: 4977 ldr r1, [pc, #476] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11292. 8004a4c: 4313 orrs r3, r2
  11293. 8004a4e: 604b str r3, [r1, #4]
  11294. /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
  11295. __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
  11296. 8004a50: 4b75 ldr r3, [pc, #468] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11297. 8004a52: 685b ldr r3, [r3, #4]
  11298. 8004a54: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
  11299. 8004a58: 687b ldr r3, [r7, #4]
  11300. 8004a5a: 69db ldr r3, [r3, #28]
  11301. 8004a5c: 061b lsls r3, r3, #24
  11302. 8004a5e: 4972 ldr r1, [pc, #456] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11303. 8004a60: 4313 orrs r3, r2
  11304. 8004a62: 604b str r3, [r1, #4]
  11305. 8004a64: e015 b.n 8004a92 <HAL_RCC_OscConfig+0x36a>
  11306. }
  11307. else
  11308. {
  11309. /* Disable the Multi Speed oscillator (MSI). */
  11310. __HAL_RCC_MSI_DISABLE();
  11311. 8004a66: 4b74 ldr r3, [pc, #464] ; (8004c38 <HAL_RCC_OscConfig+0x510>)
  11312. 8004a68: 2200 movs r2, #0
  11313. 8004a6a: 601a str r2, [r3, #0]
  11314. /* Get Start Tick */
  11315. tickstart = HAL_GetTick();
  11316. 8004a6c: f7fd fcec bl 8002448 <HAL_GetTick>
  11317. 8004a70: 6138 str r0, [r7, #16]
  11318. /* Wait till MSI is ready */
  11319. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U)
  11320. 8004a72: e008 b.n 8004a86 <HAL_RCC_OscConfig+0x35e>
  11321. {
  11322. if((HAL_GetTick() - tickstart) > MSI_TIMEOUT_VALUE)
  11323. 8004a74: f7fd fce8 bl 8002448 <HAL_GetTick>
  11324. 8004a78: 4602 mov r2, r0
  11325. 8004a7a: 693b ldr r3, [r7, #16]
  11326. 8004a7c: 1ad3 subs r3, r2, r3
  11327. 8004a7e: 2b02 cmp r3, #2
  11328. 8004a80: d901 bls.n 8004a86 <HAL_RCC_OscConfig+0x35e>
  11329. {
  11330. return HAL_TIMEOUT;
  11331. 8004a82: 2303 movs r3, #3
  11332. 8004a84: e177 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11333. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U)
  11334. 8004a86: 4b68 ldr r3, [pc, #416] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11335. 8004a88: 681b ldr r3, [r3, #0]
  11336. 8004a8a: f403 7300 and.w r3, r3, #512 ; 0x200
  11337. 8004a8e: 2b00 cmp r3, #0
  11338. 8004a90: d1f0 bne.n 8004a74 <HAL_RCC_OscConfig+0x34c>
  11339. }
  11340. }
  11341. }
  11342. }
  11343. /*------------------------------ LSI Configuration -------------------------*/
  11344. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  11345. 8004a92: 687b ldr r3, [r7, #4]
  11346. 8004a94: 681b ldr r3, [r3, #0]
  11347. 8004a96: f003 0308 and.w r3, r3, #8
  11348. 8004a9a: 2b00 cmp r3, #0
  11349. 8004a9c: d030 beq.n 8004b00 <HAL_RCC_OscConfig+0x3d8>
  11350. {
  11351. /* Check the parameters */
  11352. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  11353. /* Check the LSI State */
  11354. if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  11355. 8004a9e: 687b ldr r3, [r7, #4]
  11356. 8004aa0: 695b ldr r3, [r3, #20]
  11357. 8004aa2: 2b00 cmp r3, #0
  11358. 8004aa4: d016 beq.n 8004ad4 <HAL_RCC_OscConfig+0x3ac>
  11359. {
  11360. /* Enable the Internal Low Speed oscillator (LSI). */
  11361. __HAL_RCC_LSI_ENABLE();
  11362. 8004aa6: 4b65 ldr r3, [pc, #404] ; (8004c3c <HAL_RCC_OscConfig+0x514>)
  11363. 8004aa8: 2201 movs r2, #1
  11364. 8004aaa: 601a str r2, [r3, #0]
  11365. /* Get Start Tick */
  11366. tickstart = HAL_GetTick();
  11367. 8004aac: f7fd fccc bl 8002448 <HAL_GetTick>
  11368. 8004ab0: 6138 str r0, [r7, #16]
  11369. /* Wait till LSI is ready */
  11370. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  11371. 8004ab2: e008 b.n 8004ac6 <HAL_RCC_OscConfig+0x39e>
  11372. {
  11373. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  11374. 8004ab4: f7fd fcc8 bl 8002448 <HAL_GetTick>
  11375. 8004ab8: 4602 mov r2, r0
  11376. 8004aba: 693b ldr r3, [r7, #16]
  11377. 8004abc: 1ad3 subs r3, r2, r3
  11378. 8004abe: 2b02 cmp r3, #2
  11379. 8004ac0: d901 bls.n 8004ac6 <HAL_RCC_OscConfig+0x39e>
  11380. {
  11381. return HAL_TIMEOUT;
  11382. 8004ac2: 2303 movs r3, #3
  11383. 8004ac4: e157 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11384. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  11385. 8004ac6: 4b58 ldr r3, [pc, #352] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11386. 8004ac8: 6b5b ldr r3, [r3, #52] ; 0x34
  11387. 8004aca: f003 0302 and.w r3, r3, #2
  11388. 8004ace: 2b00 cmp r3, #0
  11389. 8004ad0: d0f0 beq.n 8004ab4 <HAL_RCC_OscConfig+0x38c>
  11390. 8004ad2: e015 b.n 8004b00 <HAL_RCC_OscConfig+0x3d8>
  11391. }
  11392. }
  11393. else
  11394. {
  11395. /* Disable the Internal Low Speed oscillator (LSI). */
  11396. __HAL_RCC_LSI_DISABLE();
  11397. 8004ad4: 4b59 ldr r3, [pc, #356] ; (8004c3c <HAL_RCC_OscConfig+0x514>)
  11398. 8004ad6: 2200 movs r2, #0
  11399. 8004ad8: 601a str r2, [r3, #0]
  11400. /* Get Start Tick */
  11401. tickstart = HAL_GetTick();
  11402. 8004ada: f7fd fcb5 bl 8002448 <HAL_GetTick>
  11403. 8004ade: 6138 str r0, [r7, #16]
  11404. /* Wait till LSI is disabled */
  11405. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  11406. 8004ae0: e008 b.n 8004af4 <HAL_RCC_OscConfig+0x3cc>
  11407. {
  11408. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  11409. 8004ae2: f7fd fcb1 bl 8002448 <HAL_GetTick>
  11410. 8004ae6: 4602 mov r2, r0
  11411. 8004ae8: 693b ldr r3, [r7, #16]
  11412. 8004aea: 1ad3 subs r3, r2, r3
  11413. 8004aec: 2b02 cmp r3, #2
  11414. 8004aee: d901 bls.n 8004af4 <HAL_RCC_OscConfig+0x3cc>
  11415. {
  11416. return HAL_TIMEOUT;
  11417. 8004af0: 2303 movs r3, #3
  11418. 8004af2: e140 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11419. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  11420. 8004af4: 4b4c ldr r3, [pc, #304] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11421. 8004af6: 6b5b ldr r3, [r3, #52] ; 0x34
  11422. 8004af8: f003 0302 and.w r3, r3, #2
  11423. 8004afc: 2b00 cmp r3, #0
  11424. 8004afe: d1f0 bne.n 8004ae2 <HAL_RCC_OscConfig+0x3ba>
  11425. }
  11426. }
  11427. }
  11428. }
  11429. /*------------------------------ LSE Configuration -------------------------*/
  11430. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  11431. 8004b00: 687b ldr r3, [r7, #4]
  11432. 8004b02: 681b ldr r3, [r3, #0]
  11433. 8004b04: f003 0304 and.w r3, r3, #4
  11434. 8004b08: 2b00 cmp r3, #0
  11435. 8004b0a: f000 80b5 beq.w 8004c78 <HAL_RCC_OscConfig+0x550>
  11436. {
  11437. FlagStatus pwrclkchanged = RESET;
  11438. 8004b0e: 2300 movs r3, #0
  11439. 8004b10: 77fb strb r3, [r7, #31]
  11440. /* Check the parameters */
  11441. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  11442. /* Update LSE configuration in Backup Domain control register */
  11443. /* Requires to enable write access to Backup Domain of necessary */
  11444. if(__HAL_RCC_PWR_IS_CLK_DISABLED())
  11445. 8004b12: 4b45 ldr r3, [pc, #276] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11446. 8004b14: 6a5b ldr r3, [r3, #36] ; 0x24
  11447. 8004b16: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  11448. 8004b1a: 2b00 cmp r3, #0
  11449. 8004b1c: d10d bne.n 8004b3a <HAL_RCC_OscConfig+0x412>
  11450. {
  11451. __HAL_RCC_PWR_CLK_ENABLE();
  11452. 8004b1e: 4b42 ldr r3, [pc, #264] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11453. 8004b20: 6a5b ldr r3, [r3, #36] ; 0x24
  11454. 8004b22: 4a41 ldr r2, [pc, #260] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11455. 8004b24: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  11456. 8004b28: 6253 str r3, [r2, #36] ; 0x24
  11457. 8004b2a: 4b3f ldr r3, [pc, #252] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11458. 8004b2c: 6a5b ldr r3, [r3, #36] ; 0x24
  11459. 8004b2e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  11460. 8004b32: 60bb str r3, [r7, #8]
  11461. 8004b34: 68bb ldr r3, [r7, #8]
  11462. pwrclkchanged = SET;
  11463. 8004b36: 2301 movs r3, #1
  11464. 8004b38: 77fb strb r3, [r7, #31]
  11465. }
  11466. if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  11467. 8004b3a: 4b41 ldr r3, [pc, #260] ; (8004c40 <HAL_RCC_OscConfig+0x518>)
  11468. 8004b3c: 681b ldr r3, [r3, #0]
  11469. 8004b3e: f403 7380 and.w r3, r3, #256 ; 0x100
  11470. 8004b42: 2b00 cmp r3, #0
  11471. 8004b44: d118 bne.n 8004b78 <HAL_RCC_OscConfig+0x450>
  11472. {
  11473. /* Enable write access to Backup domain */
  11474. SET_BIT(PWR->CR, PWR_CR_DBP);
  11475. 8004b46: 4b3e ldr r3, [pc, #248] ; (8004c40 <HAL_RCC_OscConfig+0x518>)
  11476. 8004b48: 681b ldr r3, [r3, #0]
  11477. 8004b4a: 4a3d ldr r2, [pc, #244] ; (8004c40 <HAL_RCC_OscConfig+0x518>)
  11478. 8004b4c: f443 7380 orr.w r3, r3, #256 ; 0x100
  11479. 8004b50: 6013 str r3, [r2, #0]
  11480. /* Wait for Backup domain Write protection disable */
  11481. tickstart = HAL_GetTick();
  11482. 8004b52: f7fd fc79 bl 8002448 <HAL_GetTick>
  11483. 8004b56: 6138 str r0, [r7, #16]
  11484. while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  11485. 8004b58: e008 b.n 8004b6c <HAL_RCC_OscConfig+0x444>
  11486. {
  11487. if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  11488. 8004b5a: f7fd fc75 bl 8002448 <HAL_GetTick>
  11489. 8004b5e: 4602 mov r2, r0
  11490. 8004b60: 693b ldr r3, [r7, #16]
  11491. 8004b62: 1ad3 subs r3, r2, r3
  11492. 8004b64: 2b64 cmp r3, #100 ; 0x64
  11493. 8004b66: d901 bls.n 8004b6c <HAL_RCC_OscConfig+0x444>
  11494. {
  11495. return HAL_TIMEOUT;
  11496. 8004b68: 2303 movs r3, #3
  11497. 8004b6a: e104 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11498. while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  11499. 8004b6c: 4b34 ldr r3, [pc, #208] ; (8004c40 <HAL_RCC_OscConfig+0x518>)
  11500. 8004b6e: 681b ldr r3, [r3, #0]
  11501. 8004b70: f403 7380 and.w r3, r3, #256 ; 0x100
  11502. 8004b74: 2b00 cmp r3, #0
  11503. 8004b76: d0f0 beq.n 8004b5a <HAL_RCC_OscConfig+0x432>
  11504. }
  11505. }
  11506. }
  11507. /* Set the new LSE configuration -----------------------------------------*/
  11508. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  11509. 8004b78: 687b ldr r3, [r7, #4]
  11510. 8004b7a: 689b ldr r3, [r3, #8]
  11511. 8004b7c: 2b01 cmp r3, #1
  11512. 8004b7e: d106 bne.n 8004b8e <HAL_RCC_OscConfig+0x466>
  11513. 8004b80: 4b29 ldr r3, [pc, #164] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11514. 8004b82: 6b5b ldr r3, [r3, #52] ; 0x34
  11515. 8004b84: 4a28 ldr r2, [pc, #160] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11516. 8004b86: f443 7380 orr.w r3, r3, #256 ; 0x100
  11517. 8004b8a: 6353 str r3, [r2, #52] ; 0x34
  11518. 8004b8c: e02d b.n 8004bea <HAL_RCC_OscConfig+0x4c2>
  11519. 8004b8e: 687b ldr r3, [r7, #4]
  11520. 8004b90: 689b ldr r3, [r3, #8]
  11521. 8004b92: 2b00 cmp r3, #0
  11522. 8004b94: d10c bne.n 8004bb0 <HAL_RCC_OscConfig+0x488>
  11523. 8004b96: 4b24 ldr r3, [pc, #144] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11524. 8004b98: 6b5b ldr r3, [r3, #52] ; 0x34
  11525. 8004b9a: 4a23 ldr r2, [pc, #140] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11526. 8004b9c: f423 7380 bic.w r3, r3, #256 ; 0x100
  11527. 8004ba0: 6353 str r3, [r2, #52] ; 0x34
  11528. 8004ba2: 4b21 ldr r3, [pc, #132] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11529. 8004ba4: 6b5b ldr r3, [r3, #52] ; 0x34
  11530. 8004ba6: 4a20 ldr r2, [pc, #128] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11531. 8004ba8: f423 6380 bic.w r3, r3, #1024 ; 0x400
  11532. 8004bac: 6353 str r3, [r2, #52] ; 0x34
  11533. 8004bae: e01c b.n 8004bea <HAL_RCC_OscConfig+0x4c2>
  11534. 8004bb0: 687b ldr r3, [r7, #4]
  11535. 8004bb2: 689b ldr r3, [r3, #8]
  11536. 8004bb4: 2b05 cmp r3, #5
  11537. 8004bb6: d10c bne.n 8004bd2 <HAL_RCC_OscConfig+0x4aa>
  11538. 8004bb8: 4b1b ldr r3, [pc, #108] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11539. 8004bba: 6b5b ldr r3, [r3, #52] ; 0x34
  11540. 8004bbc: 4a1a ldr r2, [pc, #104] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11541. 8004bbe: f443 6380 orr.w r3, r3, #1024 ; 0x400
  11542. 8004bc2: 6353 str r3, [r2, #52] ; 0x34
  11543. 8004bc4: 4b18 ldr r3, [pc, #96] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11544. 8004bc6: 6b5b ldr r3, [r3, #52] ; 0x34
  11545. 8004bc8: 4a17 ldr r2, [pc, #92] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11546. 8004bca: f443 7380 orr.w r3, r3, #256 ; 0x100
  11547. 8004bce: 6353 str r3, [r2, #52] ; 0x34
  11548. 8004bd0: e00b b.n 8004bea <HAL_RCC_OscConfig+0x4c2>
  11549. 8004bd2: 4b15 ldr r3, [pc, #84] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11550. 8004bd4: 6b5b ldr r3, [r3, #52] ; 0x34
  11551. 8004bd6: 4a14 ldr r2, [pc, #80] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11552. 8004bd8: f423 7380 bic.w r3, r3, #256 ; 0x100
  11553. 8004bdc: 6353 str r3, [r2, #52] ; 0x34
  11554. 8004bde: 4b12 ldr r3, [pc, #72] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11555. 8004be0: 6b5b ldr r3, [r3, #52] ; 0x34
  11556. 8004be2: 4a11 ldr r2, [pc, #68] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11557. 8004be4: f423 6380 bic.w r3, r3, #1024 ; 0x400
  11558. 8004be8: 6353 str r3, [r2, #52] ; 0x34
  11559. /* Check the LSE State */
  11560. if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  11561. 8004bea: 687b ldr r3, [r7, #4]
  11562. 8004bec: 689b ldr r3, [r3, #8]
  11563. 8004bee: 2b00 cmp r3, #0
  11564. 8004bf0: d015 beq.n 8004c1e <HAL_RCC_OscConfig+0x4f6>
  11565. {
  11566. /* Get Start Tick */
  11567. tickstart = HAL_GetTick();
  11568. 8004bf2: f7fd fc29 bl 8002448 <HAL_GetTick>
  11569. 8004bf6: 6138 str r0, [r7, #16]
  11570. /* Wait till LSE is ready */
  11571. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  11572. 8004bf8: e00a b.n 8004c10 <HAL_RCC_OscConfig+0x4e8>
  11573. {
  11574. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  11575. 8004bfa: f7fd fc25 bl 8002448 <HAL_GetTick>
  11576. 8004bfe: 4602 mov r2, r0
  11577. 8004c00: 693b ldr r3, [r7, #16]
  11578. 8004c02: 1ad3 subs r3, r2, r3
  11579. 8004c04: f241 3288 movw r2, #5000 ; 0x1388
  11580. 8004c08: 4293 cmp r3, r2
  11581. 8004c0a: d901 bls.n 8004c10 <HAL_RCC_OscConfig+0x4e8>
  11582. {
  11583. return HAL_TIMEOUT;
  11584. 8004c0c: 2303 movs r3, #3
  11585. 8004c0e: e0b2 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11586. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  11587. 8004c10: 4b05 ldr r3, [pc, #20] ; (8004c28 <HAL_RCC_OscConfig+0x500>)
  11588. 8004c12: 6b5b ldr r3, [r3, #52] ; 0x34
  11589. 8004c14: f403 7300 and.w r3, r3, #512 ; 0x200
  11590. 8004c18: 2b00 cmp r3, #0
  11591. 8004c1a: d0ee beq.n 8004bfa <HAL_RCC_OscConfig+0x4d2>
  11592. 8004c1c: e023 b.n 8004c66 <HAL_RCC_OscConfig+0x53e>
  11593. }
  11594. }
  11595. else
  11596. {
  11597. /* Get Start Tick */
  11598. tickstart = HAL_GetTick();
  11599. 8004c1e: f7fd fc13 bl 8002448 <HAL_GetTick>
  11600. 8004c22: 6138 str r0, [r7, #16]
  11601. /* Wait till LSE is disabled */
  11602. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  11603. 8004c24: e019 b.n 8004c5a <HAL_RCC_OscConfig+0x532>
  11604. 8004c26: bf00 nop
  11605. 8004c28: 40023800 .word 0x40023800
  11606. 8004c2c: 080098e0 .word 0x080098e0
  11607. 8004c30: 20000000 .word 0x20000000
  11608. 8004c34: 20000004 .word 0x20000004
  11609. 8004c38: 42470020 .word 0x42470020
  11610. 8004c3c: 42470680 .word 0x42470680
  11611. 8004c40: 40007000 .word 0x40007000
  11612. {
  11613. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  11614. 8004c44: f7fd fc00 bl 8002448 <HAL_GetTick>
  11615. 8004c48: 4602 mov r2, r0
  11616. 8004c4a: 693b ldr r3, [r7, #16]
  11617. 8004c4c: 1ad3 subs r3, r2, r3
  11618. 8004c4e: f241 3288 movw r2, #5000 ; 0x1388
  11619. 8004c52: 4293 cmp r3, r2
  11620. 8004c54: d901 bls.n 8004c5a <HAL_RCC_OscConfig+0x532>
  11621. {
  11622. return HAL_TIMEOUT;
  11623. 8004c56: 2303 movs r3, #3
  11624. 8004c58: e08d b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11625. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  11626. 8004c5a: 4b49 ldr r3, [pc, #292] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11627. 8004c5c: 6b5b ldr r3, [r3, #52] ; 0x34
  11628. 8004c5e: f403 7300 and.w r3, r3, #512 ; 0x200
  11629. 8004c62: 2b00 cmp r3, #0
  11630. 8004c64: d1ee bne.n 8004c44 <HAL_RCC_OscConfig+0x51c>
  11631. }
  11632. }
  11633. }
  11634. /* Require to disable power clock if necessary */
  11635. if(pwrclkchanged == SET)
  11636. 8004c66: 7ffb ldrb r3, [r7, #31]
  11637. 8004c68: 2b01 cmp r3, #1
  11638. 8004c6a: d105 bne.n 8004c78 <HAL_RCC_OscConfig+0x550>
  11639. {
  11640. __HAL_RCC_PWR_CLK_DISABLE();
  11641. 8004c6c: 4b44 ldr r3, [pc, #272] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11642. 8004c6e: 6a5b ldr r3, [r3, #36] ; 0x24
  11643. 8004c70: 4a43 ldr r2, [pc, #268] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11644. 8004c72: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  11645. 8004c76: 6253 str r3, [r2, #36] ; 0x24
  11646. }
  11647. /*-------------------------------- PLL Configuration -----------------------*/
  11648. /* Check the parameters */
  11649. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  11650. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  11651. 8004c78: 687b ldr r3, [r7, #4]
  11652. 8004c7a: 6a5b ldr r3, [r3, #36] ; 0x24
  11653. 8004c7c: 2b00 cmp r3, #0
  11654. 8004c7e: d079 beq.n 8004d74 <HAL_RCC_OscConfig+0x64c>
  11655. {
  11656. /* Check if the PLL is used as system clock or not */
  11657. if(sysclk_source != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  11658. 8004c80: 69bb ldr r3, [r7, #24]
  11659. 8004c82: 2b0c cmp r3, #12
  11660. 8004c84: d056 beq.n 8004d34 <HAL_RCC_OscConfig+0x60c>
  11661. {
  11662. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  11663. 8004c86: 687b ldr r3, [r7, #4]
  11664. 8004c88: 6a5b ldr r3, [r3, #36] ; 0x24
  11665. 8004c8a: 2b02 cmp r3, #2
  11666. 8004c8c: d13b bne.n 8004d06 <HAL_RCC_OscConfig+0x5de>
  11667. assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
  11668. assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL));
  11669. assert_param(IS_RCC_PLL_DIV(RCC_OscInitStruct->PLL.PLLDIV));
  11670. /* Disable the main PLL. */
  11671. __HAL_RCC_PLL_DISABLE();
  11672. 8004c8e: 4b3d ldr r3, [pc, #244] ; (8004d84 <HAL_RCC_OscConfig+0x65c>)
  11673. 8004c90: 2200 movs r2, #0
  11674. 8004c92: 601a str r2, [r3, #0]
  11675. /* Get Start Tick */
  11676. tickstart = HAL_GetTick();
  11677. 8004c94: f7fd fbd8 bl 8002448 <HAL_GetTick>
  11678. 8004c98: 6138 str r0, [r7, #16]
  11679. /* Wait till PLL is disabled */
  11680. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  11681. 8004c9a: e008 b.n 8004cae <HAL_RCC_OscConfig+0x586>
  11682. {
  11683. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  11684. 8004c9c: f7fd fbd4 bl 8002448 <HAL_GetTick>
  11685. 8004ca0: 4602 mov r2, r0
  11686. 8004ca2: 693b ldr r3, [r7, #16]
  11687. 8004ca4: 1ad3 subs r3, r2, r3
  11688. 8004ca6: 2b02 cmp r3, #2
  11689. 8004ca8: d901 bls.n 8004cae <HAL_RCC_OscConfig+0x586>
  11690. {
  11691. return HAL_TIMEOUT;
  11692. 8004caa: 2303 movs r3, #3
  11693. 8004cac: e063 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11694. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  11695. 8004cae: 4b34 ldr r3, [pc, #208] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11696. 8004cb0: 681b ldr r3, [r3, #0]
  11697. 8004cb2: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  11698. 8004cb6: 2b00 cmp r3, #0
  11699. 8004cb8: d1f0 bne.n 8004c9c <HAL_RCC_OscConfig+0x574>
  11700. }
  11701. }
  11702. /* Configure the main PLL clock source, multiplication and division factors. */
  11703. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  11704. 8004cba: 4b31 ldr r3, [pc, #196] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11705. 8004cbc: 689b ldr r3, [r3, #8]
  11706. 8004cbe: f423 027d bic.w r2, r3, #16580608 ; 0xfd0000
  11707. 8004cc2: 687b ldr r3, [r7, #4]
  11708. 8004cc4: 6a99 ldr r1, [r3, #40] ; 0x28
  11709. 8004cc6: 687b ldr r3, [r7, #4]
  11710. 8004cc8: 6adb ldr r3, [r3, #44] ; 0x2c
  11711. 8004cca: 4319 orrs r1, r3
  11712. 8004ccc: 687b ldr r3, [r7, #4]
  11713. 8004cce: 6b1b ldr r3, [r3, #48] ; 0x30
  11714. 8004cd0: 430b orrs r3, r1
  11715. 8004cd2: 492b ldr r1, [pc, #172] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11716. 8004cd4: 4313 orrs r3, r2
  11717. 8004cd6: 608b str r3, [r1, #8]
  11718. RCC_OscInitStruct->PLL.PLLMUL,
  11719. RCC_OscInitStruct->PLL.PLLDIV);
  11720. /* Enable the main PLL. */
  11721. __HAL_RCC_PLL_ENABLE();
  11722. 8004cd8: 4b2a ldr r3, [pc, #168] ; (8004d84 <HAL_RCC_OscConfig+0x65c>)
  11723. 8004cda: 2201 movs r2, #1
  11724. 8004cdc: 601a str r2, [r3, #0]
  11725. /* Get Start Tick */
  11726. tickstart = HAL_GetTick();
  11727. 8004cde: f7fd fbb3 bl 8002448 <HAL_GetTick>
  11728. 8004ce2: 6138 str r0, [r7, #16]
  11729. /* Wait till PLL is ready */
  11730. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  11731. 8004ce4: e008 b.n 8004cf8 <HAL_RCC_OscConfig+0x5d0>
  11732. {
  11733. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  11734. 8004ce6: f7fd fbaf bl 8002448 <HAL_GetTick>
  11735. 8004cea: 4602 mov r2, r0
  11736. 8004cec: 693b ldr r3, [r7, #16]
  11737. 8004cee: 1ad3 subs r3, r2, r3
  11738. 8004cf0: 2b02 cmp r3, #2
  11739. 8004cf2: d901 bls.n 8004cf8 <HAL_RCC_OscConfig+0x5d0>
  11740. {
  11741. return HAL_TIMEOUT;
  11742. 8004cf4: 2303 movs r3, #3
  11743. 8004cf6: e03e b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11744. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  11745. 8004cf8: 4b21 ldr r3, [pc, #132] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11746. 8004cfa: 681b ldr r3, [r3, #0]
  11747. 8004cfc: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  11748. 8004d00: 2b00 cmp r3, #0
  11749. 8004d02: d0f0 beq.n 8004ce6 <HAL_RCC_OscConfig+0x5be>
  11750. 8004d04: e036 b.n 8004d74 <HAL_RCC_OscConfig+0x64c>
  11751. }
  11752. }
  11753. else
  11754. {
  11755. /* Disable the main PLL. */
  11756. __HAL_RCC_PLL_DISABLE();
  11757. 8004d06: 4b1f ldr r3, [pc, #124] ; (8004d84 <HAL_RCC_OscConfig+0x65c>)
  11758. 8004d08: 2200 movs r2, #0
  11759. 8004d0a: 601a str r2, [r3, #0]
  11760. /* Get Start Tick */
  11761. tickstart = HAL_GetTick();
  11762. 8004d0c: f7fd fb9c bl 8002448 <HAL_GetTick>
  11763. 8004d10: 6138 str r0, [r7, #16]
  11764. /* Wait till PLL is disabled */
  11765. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  11766. 8004d12: e008 b.n 8004d26 <HAL_RCC_OscConfig+0x5fe>
  11767. {
  11768. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  11769. 8004d14: f7fd fb98 bl 8002448 <HAL_GetTick>
  11770. 8004d18: 4602 mov r2, r0
  11771. 8004d1a: 693b ldr r3, [r7, #16]
  11772. 8004d1c: 1ad3 subs r3, r2, r3
  11773. 8004d1e: 2b02 cmp r3, #2
  11774. 8004d20: d901 bls.n 8004d26 <HAL_RCC_OscConfig+0x5fe>
  11775. {
  11776. return HAL_TIMEOUT;
  11777. 8004d22: 2303 movs r3, #3
  11778. 8004d24: e027 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11779. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  11780. 8004d26: 4b16 ldr r3, [pc, #88] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11781. 8004d28: 681b ldr r3, [r3, #0]
  11782. 8004d2a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  11783. 8004d2e: 2b00 cmp r3, #0
  11784. 8004d30: d1f0 bne.n 8004d14 <HAL_RCC_OscConfig+0x5ec>
  11785. 8004d32: e01f b.n 8004d74 <HAL_RCC_OscConfig+0x64c>
  11786. }
  11787. }
  11788. else
  11789. {
  11790. /* Check if there is a request to disable the PLL used as System clock source */
  11791. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  11792. 8004d34: 687b ldr r3, [r7, #4]
  11793. 8004d36: 6a5b ldr r3, [r3, #36] ; 0x24
  11794. 8004d38: 2b01 cmp r3, #1
  11795. 8004d3a: d101 bne.n 8004d40 <HAL_RCC_OscConfig+0x618>
  11796. {
  11797. return HAL_ERROR;
  11798. 8004d3c: 2301 movs r3, #1
  11799. 8004d3e: e01a b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11800. }
  11801. else
  11802. {
  11803. /* Do not return HAL_ERROR if request repeats the current configuration */
  11804. pll_config = RCC->CFGR;
  11805. 8004d40: 4b0f ldr r3, [pc, #60] ; (8004d80 <HAL_RCC_OscConfig+0x658>)
  11806. 8004d42: 689b ldr r3, [r3, #8]
  11807. 8004d44: 617b str r3, [r7, #20]
  11808. if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  11809. 8004d46: 697b ldr r3, [r7, #20]
  11810. 8004d48: f403 3280 and.w r2, r3, #65536 ; 0x10000
  11811. 8004d4c: 687b ldr r3, [r7, #4]
  11812. 8004d4e: 6a9b ldr r3, [r3, #40] ; 0x28
  11813. 8004d50: 429a cmp r2, r3
  11814. 8004d52: d10d bne.n 8004d70 <HAL_RCC_OscConfig+0x648>
  11815. (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL) ||
  11816. 8004d54: 697b ldr r3, [r7, #20]
  11817. 8004d56: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  11818. 8004d5a: 687b ldr r3, [r7, #4]
  11819. 8004d5c: 6adb ldr r3, [r3, #44] ; 0x2c
  11820. if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  11821. 8004d5e: 429a cmp r2, r3
  11822. 8004d60: d106 bne.n 8004d70 <HAL_RCC_OscConfig+0x648>
  11823. (READ_BIT(pll_config, RCC_CFGR_PLLDIV) != RCC_OscInitStruct->PLL.PLLDIV))
  11824. 8004d62: 697b ldr r3, [r7, #20]
  11825. 8004d64: f403 0240 and.w r2, r3, #12582912 ; 0xc00000
  11826. 8004d68: 687b ldr r3, [r7, #4]
  11827. 8004d6a: 6b1b ldr r3, [r3, #48] ; 0x30
  11828. (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL) ||
  11829. 8004d6c: 429a cmp r2, r3
  11830. 8004d6e: d001 beq.n 8004d74 <HAL_RCC_OscConfig+0x64c>
  11831. {
  11832. return HAL_ERROR;
  11833. 8004d70: 2301 movs r3, #1
  11834. 8004d72: e000 b.n 8004d76 <HAL_RCC_OscConfig+0x64e>
  11835. }
  11836. }
  11837. }
  11838. }
  11839. return HAL_OK;
  11840. 8004d74: 2300 movs r3, #0
  11841. }
  11842. 8004d76: 4618 mov r0, r3
  11843. 8004d78: 3720 adds r7, #32
  11844. 8004d7a: 46bd mov sp, r7
  11845. 8004d7c: bd80 pop {r7, pc}
  11846. 8004d7e: bf00 nop
  11847. 8004d80: 40023800 .word 0x40023800
  11848. 8004d84: 42470060 .word 0x42470060
  11849. 08004d88 <HAL_RCC_ClockConfig>:
  11850. * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency
  11851. * (for more details refer to section above "Initialization/de-initialization functions")
  11852. * @retval HAL status
  11853. */
  11854. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  11855. {
  11856. 8004d88: b580 push {r7, lr}
  11857. 8004d8a: b084 sub sp, #16
  11858. 8004d8c: af00 add r7, sp, #0
  11859. 8004d8e: 6078 str r0, [r7, #4]
  11860. 8004d90: 6039 str r1, [r7, #0]
  11861. uint32_t tickstart;
  11862. HAL_StatusTypeDef status;
  11863. /* Check the parameters */
  11864. if(RCC_ClkInitStruct == NULL)
  11865. 8004d92: 687b ldr r3, [r7, #4]
  11866. 8004d94: 2b00 cmp r3, #0
  11867. 8004d96: d101 bne.n 8004d9c <HAL_RCC_ClockConfig+0x14>
  11868. {
  11869. return HAL_ERROR;
  11870. 8004d98: 2301 movs r3, #1
  11871. 8004d9a: e11a b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  11872. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  11873. must be correctly programmed according to the frequency of the CPU clock
  11874. (HCLK) and the supply voltage of the device. */
  11875. /* Increasing the number of wait states because of higher CPU frequency */
  11876. if(FLatency > __HAL_FLASH_GET_LATENCY())
  11877. 8004d9c: 4b8f ldr r3, [pc, #572] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  11878. 8004d9e: 681b ldr r3, [r3, #0]
  11879. 8004da0: f003 0301 and.w r3, r3, #1
  11880. 8004da4: 683a ldr r2, [r7, #0]
  11881. 8004da6: 429a cmp r2, r3
  11882. 8004da8: d919 bls.n 8004dde <HAL_RCC_ClockConfig+0x56>
  11883. {
  11884. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  11885. __HAL_FLASH_SET_LATENCY(FLatency);
  11886. 8004daa: 683b ldr r3, [r7, #0]
  11887. 8004dac: 2b01 cmp r3, #1
  11888. 8004dae: d105 bne.n 8004dbc <HAL_RCC_ClockConfig+0x34>
  11889. 8004db0: 4b8a ldr r3, [pc, #552] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  11890. 8004db2: 681b ldr r3, [r3, #0]
  11891. 8004db4: 4a89 ldr r2, [pc, #548] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  11892. 8004db6: f043 0304 orr.w r3, r3, #4
  11893. 8004dba: 6013 str r3, [r2, #0]
  11894. 8004dbc: 4b87 ldr r3, [pc, #540] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  11895. 8004dbe: 681b ldr r3, [r3, #0]
  11896. 8004dc0: f023 0201 bic.w r2, r3, #1
  11897. 8004dc4: 4985 ldr r1, [pc, #532] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  11898. 8004dc6: 683b ldr r3, [r7, #0]
  11899. 8004dc8: 4313 orrs r3, r2
  11900. 8004dca: 600b str r3, [r1, #0]
  11901. /* Check that the new number of wait states is taken into account to access the Flash
  11902. memory by reading the FLASH_ACR register */
  11903. if(__HAL_FLASH_GET_LATENCY() != FLatency)
  11904. 8004dcc: 4b83 ldr r3, [pc, #524] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  11905. 8004dce: 681b ldr r3, [r3, #0]
  11906. 8004dd0: f003 0301 and.w r3, r3, #1
  11907. 8004dd4: 683a ldr r2, [r7, #0]
  11908. 8004dd6: 429a cmp r2, r3
  11909. 8004dd8: d001 beq.n 8004dde <HAL_RCC_ClockConfig+0x56>
  11910. {
  11911. return HAL_ERROR;
  11912. 8004dda: 2301 movs r3, #1
  11913. 8004ddc: e0f9 b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  11914. }
  11915. }
  11916. /*-------------------------- HCLK Configuration --------------------------*/
  11917. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  11918. 8004dde: 687b ldr r3, [r7, #4]
  11919. 8004de0: 681b ldr r3, [r3, #0]
  11920. 8004de2: f003 0302 and.w r3, r3, #2
  11921. 8004de6: 2b00 cmp r3, #0
  11922. 8004de8: d008 beq.n 8004dfc <HAL_RCC_ClockConfig+0x74>
  11923. {
  11924. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  11925. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  11926. 8004dea: 4b7d ldr r3, [pc, #500] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  11927. 8004dec: 689b ldr r3, [r3, #8]
  11928. 8004dee: f023 02f0 bic.w r2, r3, #240 ; 0xf0
  11929. 8004df2: 687b ldr r3, [r7, #4]
  11930. 8004df4: 689b ldr r3, [r3, #8]
  11931. 8004df6: 497a ldr r1, [pc, #488] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  11932. 8004df8: 4313 orrs r3, r2
  11933. 8004dfa: 608b str r3, [r1, #8]
  11934. }
  11935. /*------------------------- SYSCLK Configuration ---------------------------*/
  11936. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  11937. 8004dfc: 687b ldr r3, [r7, #4]
  11938. 8004dfe: 681b ldr r3, [r3, #0]
  11939. 8004e00: f003 0301 and.w r3, r3, #1
  11940. 8004e04: 2b00 cmp r3, #0
  11941. 8004e06: f000 808e beq.w 8004f26 <HAL_RCC_ClockConfig+0x19e>
  11942. {
  11943. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  11944. /* HSE is selected as System Clock Source */
  11945. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  11946. 8004e0a: 687b ldr r3, [r7, #4]
  11947. 8004e0c: 685b ldr r3, [r3, #4]
  11948. 8004e0e: 2b02 cmp r3, #2
  11949. 8004e10: d107 bne.n 8004e22 <HAL_RCC_ClockConfig+0x9a>
  11950. {
  11951. /* Check the HSE ready flag */
  11952. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  11953. 8004e12: 4b73 ldr r3, [pc, #460] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  11954. 8004e14: 681b ldr r3, [r3, #0]
  11955. 8004e16: f403 3300 and.w r3, r3, #131072 ; 0x20000
  11956. 8004e1a: 2b00 cmp r3, #0
  11957. 8004e1c: d121 bne.n 8004e62 <HAL_RCC_ClockConfig+0xda>
  11958. {
  11959. return HAL_ERROR;
  11960. 8004e1e: 2301 movs r3, #1
  11961. 8004e20: e0d7 b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  11962. }
  11963. }
  11964. /* PLL is selected as System Clock Source */
  11965. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  11966. 8004e22: 687b ldr r3, [r7, #4]
  11967. 8004e24: 685b ldr r3, [r3, #4]
  11968. 8004e26: 2b03 cmp r3, #3
  11969. 8004e28: d107 bne.n 8004e3a <HAL_RCC_ClockConfig+0xb2>
  11970. {
  11971. /* Check the PLL ready flag */
  11972. if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  11973. 8004e2a: 4b6d ldr r3, [pc, #436] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  11974. 8004e2c: 681b ldr r3, [r3, #0]
  11975. 8004e2e: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  11976. 8004e32: 2b00 cmp r3, #0
  11977. 8004e34: d115 bne.n 8004e62 <HAL_RCC_ClockConfig+0xda>
  11978. {
  11979. return HAL_ERROR;
  11980. 8004e36: 2301 movs r3, #1
  11981. 8004e38: e0cb b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  11982. }
  11983. }
  11984. /* HSI is selected as System Clock Source */
  11985. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI)
  11986. 8004e3a: 687b ldr r3, [r7, #4]
  11987. 8004e3c: 685b ldr r3, [r3, #4]
  11988. 8004e3e: 2b01 cmp r3, #1
  11989. 8004e40: d107 bne.n 8004e52 <HAL_RCC_ClockConfig+0xca>
  11990. {
  11991. /* Check the HSI ready flag */
  11992. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  11993. 8004e42: 4b67 ldr r3, [pc, #412] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  11994. 8004e44: 681b ldr r3, [r3, #0]
  11995. 8004e46: f003 0302 and.w r3, r3, #2
  11996. 8004e4a: 2b00 cmp r3, #0
  11997. 8004e4c: d109 bne.n 8004e62 <HAL_RCC_ClockConfig+0xda>
  11998. {
  11999. return HAL_ERROR;
  12000. 8004e4e: 2301 movs r3, #1
  12001. 8004e50: e0bf b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  12002. }
  12003. /* MSI is selected as System Clock Source */
  12004. else
  12005. {
  12006. /* Check the MSI ready flag */
  12007. if(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
  12008. 8004e52: 4b63 ldr r3, [pc, #396] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12009. 8004e54: 681b ldr r3, [r3, #0]
  12010. 8004e56: f403 7300 and.w r3, r3, #512 ; 0x200
  12011. 8004e5a: 2b00 cmp r3, #0
  12012. 8004e5c: d101 bne.n 8004e62 <HAL_RCC_ClockConfig+0xda>
  12013. {
  12014. return HAL_ERROR;
  12015. 8004e5e: 2301 movs r3, #1
  12016. 8004e60: e0b7 b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  12017. }
  12018. }
  12019. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  12020. 8004e62: 4b5f ldr r3, [pc, #380] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12021. 8004e64: 689b ldr r3, [r3, #8]
  12022. 8004e66: f023 0203 bic.w r2, r3, #3
  12023. 8004e6a: 687b ldr r3, [r7, #4]
  12024. 8004e6c: 685b ldr r3, [r3, #4]
  12025. 8004e6e: 495c ldr r1, [pc, #368] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12026. 8004e70: 4313 orrs r3, r2
  12027. 8004e72: 608b str r3, [r1, #8]
  12028. /* Get Start Tick */
  12029. tickstart = HAL_GetTick();
  12030. 8004e74: f7fd fae8 bl 8002448 <HAL_GetTick>
  12031. 8004e78: 60f8 str r0, [r7, #12]
  12032. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  12033. 8004e7a: 687b ldr r3, [r7, #4]
  12034. 8004e7c: 685b ldr r3, [r3, #4]
  12035. 8004e7e: 2b02 cmp r3, #2
  12036. 8004e80: d112 bne.n 8004ea8 <HAL_RCC_ClockConfig+0x120>
  12037. {
  12038. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE)
  12039. 8004e82: e00a b.n 8004e9a <HAL_RCC_ClockConfig+0x112>
  12040. {
  12041. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  12042. 8004e84: f7fd fae0 bl 8002448 <HAL_GetTick>
  12043. 8004e88: 4602 mov r2, r0
  12044. 8004e8a: 68fb ldr r3, [r7, #12]
  12045. 8004e8c: 1ad3 subs r3, r2, r3
  12046. 8004e8e: f241 3288 movw r2, #5000 ; 0x1388
  12047. 8004e92: 4293 cmp r3, r2
  12048. 8004e94: d901 bls.n 8004e9a <HAL_RCC_ClockConfig+0x112>
  12049. {
  12050. return HAL_TIMEOUT;
  12051. 8004e96: 2303 movs r3, #3
  12052. 8004e98: e09b b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  12053. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE)
  12054. 8004e9a: 4b51 ldr r3, [pc, #324] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12055. 8004e9c: 689b ldr r3, [r3, #8]
  12056. 8004e9e: f003 030c and.w r3, r3, #12
  12057. 8004ea2: 2b08 cmp r3, #8
  12058. 8004ea4: d1ee bne.n 8004e84 <HAL_RCC_ClockConfig+0xfc>
  12059. 8004ea6: e03e b.n 8004f26 <HAL_RCC_ClockConfig+0x19e>
  12060. }
  12061. }
  12062. }
  12063. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  12064. 8004ea8: 687b ldr r3, [r7, #4]
  12065. 8004eaa: 685b ldr r3, [r3, #4]
  12066. 8004eac: 2b03 cmp r3, #3
  12067. 8004eae: d112 bne.n 8004ed6 <HAL_RCC_ClockConfig+0x14e>
  12068. {
  12069. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  12070. 8004eb0: e00a b.n 8004ec8 <HAL_RCC_ClockConfig+0x140>
  12071. {
  12072. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  12073. 8004eb2: f7fd fac9 bl 8002448 <HAL_GetTick>
  12074. 8004eb6: 4602 mov r2, r0
  12075. 8004eb8: 68fb ldr r3, [r7, #12]
  12076. 8004eba: 1ad3 subs r3, r2, r3
  12077. 8004ebc: f241 3288 movw r2, #5000 ; 0x1388
  12078. 8004ec0: 4293 cmp r3, r2
  12079. 8004ec2: d901 bls.n 8004ec8 <HAL_RCC_ClockConfig+0x140>
  12080. {
  12081. return HAL_TIMEOUT;
  12082. 8004ec4: 2303 movs r3, #3
  12083. 8004ec6: e084 b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  12084. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  12085. 8004ec8: 4b45 ldr r3, [pc, #276] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12086. 8004eca: 689b ldr r3, [r3, #8]
  12087. 8004ecc: f003 030c and.w r3, r3, #12
  12088. 8004ed0: 2b0c cmp r3, #12
  12089. 8004ed2: d1ee bne.n 8004eb2 <HAL_RCC_ClockConfig+0x12a>
  12090. 8004ed4: e027 b.n 8004f26 <HAL_RCC_ClockConfig+0x19e>
  12091. }
  12092. }
  12093. }
  12094. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI)
  12095. 8004ed6: 687b ldr r3, [r7, #4]
  12096. 8004ed8: 685b ldr r3, [r3, #4]
  12097. 8004eda: 2b01 cmp r3, #1
  12098. 8004edc: d11d bne.n 8004f1a <HAL_RCC_ClockConfig+0x192>
  12099. {
  12100. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI)
  12101. 8004ede: e00a b.n 8004ef6 <HAL_RCC_ClockConfig+0x16e>
  12102. {
  12103. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  12104. 8004ee0: f7fd fab2 bl 8002448 <HAL_GetTick>
  12105. 8004ee4: 4602 mov r2, r0
  12106. 8004ee6: 68fb ldr r3, [r7, #12]
  12107. 8004ee8: 1ad3 subs r3, r2, r3
  12108. 8004eea: f241 3288 movw r2, #5000 ; 0x1388
  12109. 8004eee: 4293 cmp r3, r2
  12110. 8004ef0: d901 bls.n 8004ef6 <HAL_RCC_ClockConfig+0x16e>
  12111. {
  12112. return HAL_TIMEOUT;
  12113. 8004ef2: 2303 movs r3, #3
  12114. 8004ef4: e06d b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  12115. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI)
  12116. 8004ef6: 4b3a ldr r3, [pc, #232] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12117. 8004ef8: 689b ldr r3, [r3, #8]
  12118. 8004efa: f003 030c and.w r3, r3, #12
  12119. 8004efe: 2b04 cmp r3, #4
  12120. 8004f00: d1ee bne.n 8004ee0 <HAL_RCC_ClockConfig+0x158>
  12121. 8004f02: e010 b.n 8004f26 <HAL_RCC_ClockConfig+0x19e>
  12122. }
  12123. else
  12124. {
  12125. while(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_MSI)
  12126. {
  12127. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  12128. 8004f04: f7fd faa0 bl 8002448 <HAL_GetTick>
  12129. 8004f08: 4602 mov r2, r0
  12130. 8004f0a: 68fb ldr r3, [r7, #12]
  12131. 8004f0c: 1ad3 subs r3, r2, r3
  12132. 8004f0e: f241 3288 movw r2, #5000 ; 0x1388
  12133. 8004f12: 4293 cmp r3, r2
  12134. 8004f14: d901 bls.n 8004f1a <HAL_RCC_ClockConfig+0x192>
  12135. {
  12136. return HAL_TIMEOUT;
  12137. 8004f16: 2303 movs r3, #3
  12138. 8004f18: e05b b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  12139. while(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_MSI)
  12140. 8004f1a: 4b31 ldr r3, [pc, #196] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12141. 8004f1c: 689b ldr r3, [r3, #8]
  12142. 8004f1e: f003 030c and.w r3, r3, #12
  12143. 8004f22: 2b00 cmp r3, #0
  12144. 8004f24: d1ee bne.n 8004f04 <HAL_RCC_ClockConfig+0x17c>
  12145. }
  12146. }
  12147. }
  12148. }
  12149. /* Decreasing the number of wait states because of lower CPU frequency */
  12150. if(FLatency < __HAL_FLASH_GET_LATENCY())
  12151. 8004f26: 4b2d ldr r3, [pc, #180] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  12152. 8004f28: 681b ldr r3, [r3, #0]
  12153. 8004f2a: f003 0301 and.w r3, r3, #1
  12154. 8004f2e: 683a ldr r2, [r7, #0]
  12155. 8004f30: 429a cmp r2, r3
  12156. 8004f32: d219 bcs.n 8004f68 <HAL_RCC_ClockConfig+0x1e0>
  12157. {
  12158. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  12159. __HAL_FLASH_SET_LATENCY(FLatency);
  12160. 8004f34: 683b ldr r3, [r7, #0]
  12161. 8004f36: 2b01 cmp r3, #1
  12162. 8004f38: d105 bne.n 8004f46 <HAL_RCC_ClockConfig+0x1be>
  12163. 8004f3a: 4b28 ldr r3, [pc, #160] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  12164. 8004f3c: 681b ldr r3, [r3, #0]
  12165. 8004f3e: 4a27 ldr r2, [pc, #156] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  12166. 8004f40: f043 0304 orr.w r3, r3, #4
  12167. 8004f44: 6013 str r3, [r2, #0]
  12168. 8004f46: 4b25 ldr r3, [pc, #148] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  12169. 8004f48: 681b ldr r3, [r3, #0]
  12170. 8004f4a: f023 0201 bic.w r2, r3, #1
  12171. 8004f4e: 4923 ldr r1, [pc, #140] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  12172. 8004f50: 683b ldr r3, [r7, #0]
  12173. 8004f52: 4313 orrs r3, r2
  12174. 8004f54: 600b str r3, [r1, #0]
  12175. /* Check that the new number of wait states is taken into account to access the Flash
  12176. memory by reading the FLASH_ACR register */
  12177. if(__HAL_FLASH_GET_LATENCY() != FLatency)
  12178. 8004f56: 4b21 ldr r3, [pc, #132] ; (8004fdc <HAL_RCC_ClockConfig+0x254>)
  12179. 8004f58: 681b ldr r3, [r3, #0]
  12180. 8004f5a: f003 0301 and.w r3, r3, #1
  12181. 8004f5e: 683a ldr r2, [r7, #0]
  12182. 8004f60: 429a cmp r2, r3
  12183. 8004f62: d001 beq.n 8004f68 <HAL_RCC_ClockConfig+0x1e0>
  12184. {
  12185. return HAL_ERROR;
  12186. 8004f64: 2301 movs r3, #1
  12187. 8004f66: e034 b.n 8004fd2 <HAL_RCC_ClockConfig+0x24a>
  12188. }
  12189. }
  12190. /*-------------------------- PCLK1 Configuration ---------------------------*/
  12191. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  12192. 8004f68: 687b ldr r3, [r7, #4]
  12193. 8004f6a: 681b ldr r3, [r3, #0]
  12194. 8004f6c: f003 0304 and.w r3, r3, #4
  12195. 8004f70: 2b00 cmp r3, #0
  12196. 8004f72: d008 beq.n 8004f86 <HAL_RCC_ClockConfig+0x1fe>
  12197. {
  12198. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
  12199. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
  12200. 8004f74: 4b1a ldr r3, [pc, #104] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12201. 8004f76: 689b ldr r3, [r3, #8]
  12202. 8004f78: f423 62e0 bic.w r2, r3, #1792 ; 0x700
  12203. 8004f7c: 687b ldr r3, [r7, #4]
  12204. 8004f7e: 68db ldr r3, [r3, #12]
  12205. 8004f80: 4917 ldr r1, [pc, #92] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12206. 8004f82: 4313 orrs r3, r2
  12207. 8004f84: 608b str r3, [r1, #8]
  12208. }
  12209. /*-------------------------- PCLK2 Configuration ---------------------------*/
  12210. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  12211. 8004f86: 687b ldr r3, [r7, #4]
  12212. 8004f88: 681b ldr r3, [r3, #0]
  12213. 8004f8a: f003 0308 and.w r3, r3, #8
  12214. 8004f8e: 2b00 cmp r3, #0
  12215. 8004f90: d009 beq.n 8004fa6 <HAL_RCC_ClockConfig+0x21e>
  12216. {
  12217. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
  12218. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U));
  12219. 8004f92: 4b13 ldr r3, [pc, #76] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12220. 8004f94: 689b ldr r3, [r3, #8]
  12221. 8004f96: f423 5260 bic.w r2, r3, #14336 ; 0x3800
  12222. 8004f9a: 687b ldr r3, [r7, #4]
  12223. 8004f9c: 691b ldr r3, [r3, #16]
  12224. 8004f9e: 00db lsls r3, r3, #3
  12225. 8004fa0: 490f ldr r1, [pc, #60] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12226. 8004fa2: 4313 orrs r3, r2
  12227. 8004fa4: 608b str r3, [r1, #8]
  12228. }
  12229. /* Update the SystemCoreClock global variable */
  12230. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos];
  12231. 8004fa6: f000 f823 bl 8004ff0 <HAL_RCC_GetSysClockFreq>
  12232. 8004faa: 4602 mov r2, r0
  12233. 8004fac: 4b0c ldr r3, [pc, #48] ; (8004fe0 <HAL_RCC_ClockConfig+0x258>)
  12234. 8004fae: 689b ldr r3, [r3, #8]
  12235. 8004fb0: 091b lsrs r3, r3, #4
  12236. 8004fb2: f003 030f and.w r3, r3, #15
  12237. 8004fb6: 490b ldr r1, [pc, #44] ; (8004fe4 <HAL_RCC_ClockConfig+0x25c>)
  12238. 8004fb8: 5ccb ldrb r3, [r1, r3]
  12239. 8004fba: fa22 f303 lsr.w r3, r2, r3
  12240. 8004fbe: 4a0a ldr r2, [pc, #40] ; (8004fe8 <HAL_RCC_ClockConfig+0x260>)
  12241. 8004fc0: 6013 str r3, [r2, #0]
  12242. /* Configure the source of time base considering new system clocks settings*/
  12243. status = HAL_InitTick(uwTickPrio);
  12244. 8004fc2: 4b0a ldr r3, [pc, #40] ; (8004fec <HAL_RCC_ClockConfig+0x264>)
  12245. 8004fc4: 681b ldr r3, [r3, #0]
  12246. 8004fc6: 4618 mov r0, r3
  12247. 8004fc8: f7fd f9f2 bl 80023b0 <HAL_InitTick>
  12248. 8004fcc: 4603 mov r3, r0
  12249. 8004fce: 72fb strb r3, [r7, #11]
  12250. return status;
  12251. 8004fd0: 7afb ldrb r3, [r7, #11]
  12252. }
  12253. 8004fd2: 4618 mov r0, r3
  12254. 8004fd4: 3710 adds r7, #16
  12255. 8004fd6: 46bd mov sp, r7
  12256. 8004fd8: bd80 pop {r7, pc}
  12257. 8004fda: bf00 nop
  12258. 8004fdc: 40023c00 .word 0x40023c00
  12259. 8004fe0: 40023800 .word 0x40023800
  12260. 8004fe4: 080098e0 .word 0x080098e0
  12261. 8004fe8: 20000000 .word 0x20000000
  12262. 8004fec: 20000004 .word 0x20000004
  12263. 08004ff0 <HAL_RCC_GetSysClockFreq>:
  12264. * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
  12265. *
  12266. * @retval SYSCLK frequency
  12267. */
  12268. uint32_t HAL_RCC_GetSysClockFreq(void)
  12269. {
  12270. 8004ff0: b5b0 push {r4, r5, r7, lr}
  12271. 8004ff2: b086 sub sp, #24
  12272. 8004ff4: af00 add r7, sp, #0
  12273. uint32_t tmpreg, pllm, plld, pllvco, msiclkrange, sysclockfreq;
  12274. tmpreg = RCC->CFGR;
  12275. 8004ff6: 4b61 ldr r3, [pc, #388] ; (800517c <HAL_RCC_GetSysClockFreq+0x18c>)
  12276. 8004ff8: 689b ldr r3, [r3, #8]
  12277. 8004ffa: 60fb str r3, [r7, #12]
  12278. /* Get SYSCLK source -------------------------------------------------------*/
  12279. switch (tmpreg & RCC_CFGR_SWS)
  12280. 8004ffc: 68fb ldr r3, [r7, #12]
  12281. 8004ffe: f003 030c and.w r3, r3, #12
  12282. 8005002: 2b0c cmp r3, #12
  12283. 8005004: d00d beq.n 8005022 <HAL_RCC_GetSysClockFreq+0x32>
  12284. 8005006: 2b0c cmp r3, #12
  12285. 8005008: f200 80a4 bhi.w 8005154 <HAL_RCC_GetSysClockFreq+0x164>
  12286. 800500c: 2b04 cmp r3, #4
  12287. 800500e: d002 beq.n 8005016 <HAL_RCC_GetSysClockFreq+0x26>
  12288. 8005010: 2b08 cmp r3, #8
  12289. 8005012: d003 beq.n 800501c <HAL_RCC_GetSysClockFreq+0x2c>
  12290. 8005014: e09e b.n 8005154 <HAL_RCC_GetSysClockFreq+0x164>
  12291. {
  12292. case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
  12293. {
  12294. sysclockfreq = HSI_VALUE;
  12295. 8005016: 4b5a ldr r3, [pc, #360] ; (8005180 <HAL_RCC_GetSysClockFreq+0x190>)
  12296. 8005018: 613b str r3, [r7, #16]
  12297. break;
  12298. 800501a: e0a9 b.n 8005170 <HAL_RCC_GetSysClockFreq+0x180>
  12299. }
  12300. case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
  12301. {
  12302. sysclockfreq = HSE_VALUE;
  12303. 800501c: 4b59 ldr r3, [pc, #356] ; (8005184 <HAL_RCC_GetSysClockFreq+0x194>)
  12304. 800501e: 613b str r3, [r7, #16]
  12305. break;
  12306. 8005020: e0a6 b.n 8005170 <HAL_RCC_GetSysClockFreq+0x180>
  12307. }
  12308. case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */
  12309. {
  12310. pllm = PLLMulTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_Pos];
  12311. 8005022: 68fb ldr r3, [r7, #12]
  12312. 8005024: 0c9b lsrs r3, r3, #18
  12313. 8005026: f003 030f and.w r3, r3, #15
  12314. 800502a: 4a57 ldr r2, [pc, #348] ; (8005188 <HAL_RCC_GetSysClockFreq+0x198>)
  12315. 800502c: 5cd3 ldrb r3, [r2, r3]
  12316. 800502e: 60bb str r3, [r7, #8]
  12317. plld = ((uint32_t)(tmpreg & RCC_CFGR_PLLDIV) >> RCC_CFGR_PLLDIV_Pos) + 1U;
  12318. 8005030: 68fb ldr r3, [r7, #12]
  12319. 8005032: 0d9b lsrs r3, r3, #22
  12320. 8005034: f003 0303 and.w r3, r3, #3
  12321. 8005038: 3301 adds r3, #1
  12322. 800503a: 607b str r3, [r7, #4]
  12323. if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI)
  12324. 800503c: 4b4f ldr r3, [pc, #316] ; (800517c <HAL_RCC_GetSysClockFreq+0x18c>)
  12325. 800503e: 689b ldr r3, [r3, #8]
  12326. 8005040: f403 3380 and.w r3, r3, #65536 ; 0x10000
  12327. 8005044: 2b00 cmp r3, #0
  12328. 8005046: d041 beq.n 80050cc <HAL_RCC_GetSysClockFreq+0xdc>
  12329. {
  12330. /* HSE used as PLL clock source */
  12331. pllvco = (uint32_t)(((uint64_t)HSE_VALUE * (uint64_t)pllm) / (uint64_t)plld);
  12332. 8005048: 68bb ldr r3, [r7, #8]
  12333. 800504a: 461c mov r4, r3
  12334. 800504c: f04f 0500 mov.w r5, #0
  12335. 8005050: 4620 mov r0, r4
  12336. 8005052: 4629 mov r1, r5
  12337. 8005054: f04f 0200 mov.w r2, #0
  12338. 8005058: f04f 0300 mov.w r3, #0
  12339. 800505c: 014b lsls r3, r1, #5
  12340. 800505e: ea43 63d0 orr.w r3, r3, r0, lsr #27
  12341. 8005062: 0142 lsls r2, r0, #5
  12342. 8005064: 4610 mov r0, r2
  12343. 8005066: 4619 mov r1, r3
  12344. 8005068: 1b00 subs r0, r0, r4
  12345. 800506a: eb61 0105 sbc.w r1, r1, r5
  12346. 800506e: f04f 0200 mov.w r2, #0
  12347. 8005072: f04f 0300 mov.w r3, #0
  12348. 8005076: 018b lsls r3, r1, #6
  12349. 8005078: ea43 6390 orr.w r3, r3, r0, lsr #26
  12350. 800507c: 0182 lsls r2, r0, #6
  12351. 800507e: 1a12 subs r2, r2, r0
  12352. 8005080: eb63 0301 sbc.w r3, r3, r1
  12353. 8005084: f04f 0000 mov.w r0, #0
  12354. 8005088: f04f 0100 mov.w r1, #0
  12355. 800508c: 00d9 lsls r1, r3, #3
  12356. 800508e: ea41 7152 orr.w r1, r1, r2, lsr #29
  12357. 8005092: 00d0 lsls r0, r2, #3
  12358. 8005094: 4602 mov r2, r0
  12359. 8005096: 460b mov r3, r1
  12360. 8005098: 1912 adds r2, r2, r4
  12361. 800509a: eb45 0303 adc.w r3, r5, r3
  12362. 800509e: f04f 0000 mov.w r0, #0
  12363. 80050a2: f04f 0100 mov.w r1, #0
  12364. 80050a6: 0259 lsls r1, r3, #9
  12365. 80050a8: ea41 51d2 orr.w r1, r1, r2, lsr #23
  12366. 80050ac: 0250 lsls r0, r2, #9
  12367. 80050ae: 4602 mov r2, r0
  12368. 80050b0: 460b mov r3, r1
  12369. 80050b2: 4610 mov r0, r2
  12370. 80050b4: 4619 mov r1, r3
  12371. 80050b6: 687b ldr r3, [r7, #4]
  12372. 80050b8: 461a mov r2, r3
  12373. 80050ba: f04f 0300 mov.w r3, #0
  12374. 80050be: f7fb fe09 bl 8000cd4 <__aeabi_uldivmod>
  12375. 80050c2: 4602 mov r2, r0
  12376. 80050c4: 460b mov r3, r1
  12377. 80050c6: 4613 mov r3, r2
  12378. 80050c8: 617b str r3, [r7, #20]
  12379. 80050ca: e040 b.n 800514e <HAL_RCC_GetSysClockFreq+0x15e>
  12380. }
  12381. else
  12382. {
  12383. /* HSI used as PLL clock source */
  12384. pllvco = (uint32_t)(((uint64_t)HSI_VALUE * (uint64_t)pllm) / (uint64_t)plld);
  12385. 80050cc: 68bb ldr r3, [r7, #8]
  12386. 80050ce: 461c mov r4, r3
  12387. 80050d0: f04f 0500 mov.w r5, #0
  12388. 80050d4: 4620 mov r0, r4
  12389. 80050d6: 4629 mov r1, r5
  12390. 80050d8: f04f 0200 mov.w r2, #0
  12391. 80050dc: f04f 0300 mov.w r3, #0
  12392. 80050e0: 014b lsls r3, r1, #5
  12393. 80050e2: ea43 63d0 orr.w r3, r3, r0, lsr #27
  12394. 80050e6: 0142 lsls r2, r0, #5
  12395. 80050e8: 4610 mov r0, r2
  12396. 80050ea: 4619 mov r1, r3
  12397. 80050ec: 1b00 subs r0, r0, r4
  12398. 80050ee: eb61 0105 sbc.w r1, r1, r5
  12399. 80050f2: f04f 0200 mov.w r2, #0
  12400. 80050f6: f04f 0300 mov.w r3, #0
  12401. 80050fa: 018b lsls r3, r1, #6
  12402. 80050fc: ea43 6390 orr.w r3, r3, r0, lsr #26
  12403. 8005100: 0182 lsls r2, r0, #6
  12404. 8005102: 1a12 subs r2, r2, r0
  12405. 8005104: eb63 0301 sbc.w r3, r3, r1
  12406. 8005108: f04f 0000 mov.w r0, #0
  12407. 800510c: f04f 0100 mov.w r1, #0
  12408. 8005110: 00d9 lsls r1, r3, #3
  12409. 8005112: ea41 7152 orr.w r1, r1, r2, lsr #29
  12410. 8005116: 00d0 lsls r0, r2, #3
  12411. 8005118: 4602 mov r2, r0
  12412. 800511a: 460b mov r3, r1
  12413. 800511c: 1912 adds r2, r2, r4
  12414. 800511e: eb45 0303 adc.w r3, r5, r3
  12415. 8005122: f04f 0000 mov.w r0, #0
  12416. 8005126: f04f 0100 mov.w r1, #0
  12417. 800512a: 0299 lsls r1, r3, #10
  12418. 800512c: ea41 5192 orr.w r1, r1, r2, lsr #22
  12419. 8005130: 0290 lsls r0, r2, #10
  12420. 8005132: 4602 mov r2, r0
  12421. 8005134: 460b mov r3, r1
  12422. 8005136: 4610 mov r0, r2
  12423. 8005138: 4619 mov r1, r3
  12424. 800513a: 687b ldr r3, [r7, #4]
  12425. 800513c: 461a mov r2, r3
  12426. 800513e: f04f 0300 mov.w r3, #0
  12427. 8005142: f7fb fdc7 bl 8000cd4 <__aeabi_uldivmod>
  12428. 8005146: 4602 mov r2, r0
  12429. 8005148: 460b mov r3, r1
  12430. 800514a: 4613 mov r3, r2
  12431. 800514c: 617b str r3, [r7, #20]
  12432. }
  12433. sysclockfreq = pllvco;
  12434. 800514e: 697b ldr r3, [r7, #20]
  12435. 8005150: 613b str r3, [r7, #16]
  12436. break;
  12437. 8005152: e00d b.n 8005170 <HAL_RCC_GetSysClockFreq+0x180>
  12438. }
  12439. case RCC_SYSCLKSOURCE_STATUS_MSI: /* MSI used as system clock source */
  12440. default: /* MSI used as system clock */
  12441. {
  12442. msiclkrange = (RCC->ICSCR & RCC_ICSCR_MSIRANGE ) >> RCC_ICSCR_MSIRANGE_Pos;
  12443. 8005154: 4b09 ldr r3, [pc, #36] ; (800517c <HAL_RCC_GetSysClockFreq+0x18c>)
  12444. 8005156: 685b ldr r3, [r3, #4]
  12445. 8005158: 0b5b lsrs r3, r3, #13
  12446. 800515a: f003 0307 and.w r3, r3, #7
  12447. 800515e: 603b str r3, [r7, #0]
  12448. sysclockfreq = (32768U * (1UL << (msiclkrange + 1U)));
  12449. 8005160: 683b ldr r3, [r7, #0]
  12450. 8005162: 3301 adds r3, #1
  12451. 8005164: f44f 4200 mov.w r2, #32768 ; 0x8000
  12452. 8005168: fa02 f303 lsl.w r3, r2, r3
  12453. 800516c: 613b str r3, [r7, #16]
  12454. break;
  12455. 800516e: bf00 nop
  12456. }
  12457. }
  12458. return sysclockfreq;
  12459. 8005170: 693b ldr r3, [r7, #16]
  12460. }
  12461. 8005172: 4618 mov r0, r3
  12462. 8005174: 3718 adds r7, #24
  12463. 8005176: 46bd mov sp, r7
  12464. 8005178: bdb0 pop {r4, r5, r7, pc}
  12465. 800517a: bf00 nop
  12466. 800517c: 40023800 .word 0x40023800
  12467. 8005180: 00f42400 .word 0x00f42400
  12468. 8005184: 007a1200 .word 0x007a1200
  12469. 8005188: 080098d4 .word 0x080098d4
  12470. 0800518c <HAL_RCC_GetHCLKFreq>:
  12471. * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
  12472. * and updated within this function
  12473. * @retval HCLK frequency
  12474. */
  12475. uint32_t HAL_RCC_GetHCLKFreq(void)
  12476. {
  12477. 800518c: b480 push {r7}
  12478. 800518e: af00 add r7, sp, #0
  12479. return SystemCoreClock;
  12480. 8005190: 4b02 ldr r3, [pc, #8] ; (800519c <HAL_RCC_GetHCLKFreq+0x10>)
  12481. 8005192: 681b ldr r3, [r3, #0]
  12482. }
  12483. 8005194: 4618 mov r0, r3
  12484. 8005196: 46bd mov sp, r7
  12485. 8005198: bc80 pop {r7}
  12486. 800519a: 4770 bx lr
  12487. 800519c: 20000000 .word 0x20000000
  12488. 080051a0 <HAL_RCC_GetPCLK1Freq>:
  12489. * @note Each time PCLK1 changes, this function must be called to update the
  12490. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  12491. * @retval PCLK1 frequency
  12492. */
  12493. uint32_t HAL_RCC_GetPCLK1Freq(void)
  12494. {
  12495. 80051a0: b580 push {r7, lr}
  12496. 80051a2: af00 add r7, sp, #0
  12497. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  12498. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
  12499. 80051a4: f7ff fff2 bl 800518c <HAL_RCC_GetHCLKFreq>
  12500. 80051a8: 4602 mov r2, r0
  12501. 80051aa: 4b05 ldr r3, [pc, #20] ; (80051c0 <HAL_RCC_GetPCLK1Freq+0x20>)
  12502. 80051ac: 689b ldr r3, [r3, #8]
  12503. 80051ae: 0a1b lsrs r3, r3, #8
  12504. 80051b0: f003 0307 and.w r3, r3, #7
  12505. 80051b4: 4903 ldr r1, [pc, #12] ; (80051c4 <HAL_RCC_GetPCLK1Freq+0x24>)
  12506. 80051b6: 5ccb ldrb r3, [r1, r3]
  12507. 80051b8: fa22 f303 lsr.w r3, r2, r3
  12508. }
  12509. 80051bc: 4618 mov r0, r3
  12510. 80051be: bd80 pop {r7, pc}
  12511. 80051c0: 40023800 .word 0x40023800
  12512. 80051c4: 080098f0 .word 0x080098f0
  12513. 080051c8 <HAL_RCC_GetPCLK2Freq>:
  12514. * @note Each time PCLK2 changes, this function must be called to update the
  12515. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  12516. * @retval PCLK2 frequency
  12517. */
  12518. uint32_t HAL_RCC_GetPCLK2Freq(void)
  12519. {
  12520. 80051c8: b580 push {r7, lr}
  12521. 80051ca: af00 add r7, sp, #0
  12522. /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
  12523. return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
  12524. 80051cc: f7ff ffde bl 800518c <HAL_RCC_GetHCLKFreq>
  12525. 80051d0: 4602 mov r2, r0
  12526. 80051d2: 4b05 ldr r3, [pc, #20] ; (80051e8 <HAL_RCC_GetPCLK2Freq+0x20>)
  12527. 80051d4: 689b ldr r3, [r3, #8]
  12528. 80051d6: 0adb lsrs r3, r3, #11
  12529. 80051d8: f003 0307 and.w r3, r3, #7
  12530. 80051dc: 4903 ldr r1, [pc, #12] ; (80051ec <HAL_RCC_GetPCLK2Freq+0x24>)
  12531. 80051de: 5ccb ldrb r3, [r1, r3]
  12532. 80051e0: fa22 f303 lsr.w r3, r2, r3
  12533. }
  12534. 80051e4: 4618 mov r0, r3
  12535. 80051e6: bd80 pop {r7, pc}
  12536. 80051e8: 40023800 .word 0x40023800
  12537. 80051ec: 080098f0 .word 0x080098f0
  12538. 080051f0 <RCC_SetFlashLatencyFromMSIRange>:
  12539. voltage range
  12540. * @param MSIrange MSI range value from RCC_MSIRANGE_0 to RCC_MSIRANGE_6
  12541. * @retval HAL status
  12542. */
  12543. static HAL_StatusTypeDef RCC_SetFlashLatencyFromMSIRange(uint32_t MSIrange)
  12544. {
  12545. 80051f0: b480 push {r7}
  12546. 80051f2: b087 sub sp, #28
  12547. 80051f4: af00 add r7, sp, #0
  12548. 80051f6: 6078 str r0, [r7, #4]
  12549. uint32_t vos;
  12550. uint32_t latency = FLASH_LATENCY_0; /* default value 0WS */
  12551. 80051f8: 2300 movs r3, #0
  12552. 80051fa: 613b str r3, [r7, #16]
  12553. /* HCLK can reach 4 MHz only if AHB prescaler = 1 */
  12554. if (READ_BIT(RCC->CFGR, RCC_CFGR_HPRE) == RCC_SYSCLK_DIV1)
  12555. 80051fc: 4b29 ldr r3, [pc, #164] ; (80052a4 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  12556. 80051fe: 689b ldr r3, [r3, #8]
  12557. 8005200: f003 03f0 and.w r3, r3, #240 ; 0xf0
  12558. 8005204: 2b00 cmp r3, #0
  12559. 8005206: d12c bne.n 8005262 <RCC_SetFlashLatencyFromMSIRange+0x72>
  12560. {
  12561. if(__HAL_RCC_PWR_IS_CLK_ENABLED())
  12562. 8005208: 4b26 ldr r3, [pc, #152] ; (80052a4 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  12563. 800520a: 6a5b ldr r3, [r3, #36] ; 0x24
  12564. 800520c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  12565. 8005210: 2b00 cmp r3, #0
  12566. 8005212: d005 beq.n 8005220 <RCC_SetFlashLatencyFromMSIRange+0x30>
  12567. {
  12568. vos = READ_BIT(PWR->CR, PWR_CR_VOS);
  12569. 8005214: 4b24 ldr r3, [pc, #144] ; (80052a8 <RCC_SetFlashLatencyFromMSIRange+0xb8>)
  12570. 8005216: 681b ldr r3, [r3, #0]
  12571. 8005218: f403 53c0 and.w r3, r3, #6144 ; 0x1800
  12572. 800521c: 617b str r3, [r7, #20]
  12573. 800521e: e016 b.n 800524e <RCC_SetFlashLatencyFromMSIRange+0x5e>
  12574. }
  12575. else
  12576. {
  12577. __HAL_RCC_PWR_CLK_ENABLE();
  12578. 8005220: 4b20 ldr r3, [pc, #128] ; (80052a4 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  12579. 8005222: 6a5b ldr r3, [r3, #36] ; 0x24
  12580. 8005224: 4a1f ldr r2, [pc, #124] ; (80052a4 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  12581. 8005226: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  12582. 800522a: 6253 str r3, [r2, #36] ; 0x24
  12583. 800522c: 4b1d ldr r3, [pc, #116] ; (80052a4 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  12584. 800522e: 6a5b ldr r3, [r3, #36] ; 0x24
  12585. 8005230: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  12586. 8005234: 60fb str r3, [r7, #12]
  12587. 8005236: 68fb ldr r3, [r7, #12]
  12588. vos = READ_BIT(PWR->CR, PWR_CR_VOS);
  12589. 8005238: 4b1b ldr r3, [pc, #108] ; (80052a8 <RCC_SetFlashLatencyFromMSIRange+0xb8>)
  12590. 800523a: 681b ldr r3, [r3, #0]
  12591. 800523c: f403 53c0 and.w r3, r3, #6144 ; 0x1800
  12592. 8005240: 617b str r3, [r7, #20]
  12593. __HAL_RCC_PWR_CLK_DISABLE();
  12594. 8005242: 4b18 ldr r3, [pc, #96] ; (80052a4 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  12595. 8005244: 6a5b ldr r3, [r3, #36] ; 0x24
  12596. 8005246: 4a17 ldr r2, [pc, #92] ; (80052a4 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  12597. 8005248: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  12598. 800524c: 6253 str r3, [r2, #36] ; 0x24
  12599. }
  12600. /* Check if need to set latency 1 only for Range 3 & HCLK = 4MHz */
  12601. if((vos == PWR_REGULATOR_VOLTAGE_SCALE3) && (MSIrange == RCC_MSIRANGE_6))
  12602. 800524e: 697b ldr r3, [r7, #20]
  12603. 8005250: f5b3 5fc0 cmp.w r3, #6144 ; 0x1800
  12604. 8005254: d105 bne.n 8005262 <RCC_SetFlashLatencyFromMSIRange+0x72>
  12605. 8005256: 687b ldr r3, [r7, #4]
  12606. 8005258: f5b3 4f40 cmp.w r3, #49152 ; 0xc000
  12607. 800525c: d101 bne.n 8005262 <RCC_SetFlashLatencyFromMSIRange+0x72>
  12608. {
  12609. latency = FLASH_LATENCY_1; /* 1WS */
  12610. 800525e: 2301 movs r3, #1
  12611. 8005260: 613b str r3, [r7, #16]
  12612. }
  12613. }
  12614. __HAL_FLASH_SET_LATENCY(latency);
  12615. 8005262: 693b ldr r3, [r7, #16]
  12616. 8005264: 2b01 cmp r3, #1
  12617. 8005266: d105 bne.n 8005274 <RCC_SetFlashLatencyFromMSIRange+0x84>
  12618. 8005268: 4b10 ldr r3, [pc, #64] ; (80052ac <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  12619. 800526a: 681b ldr r3, [r3, #0]
  12620. 800526c: 4a0f ldr r2, [pc, #60] ; (80052ac <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  12621. 800526e: f043 0304 orr.w r3, r3, #4
  12622. 8005272: 6013 str r3, [r2, #0]
  12623. 8005274: 4b0d ldr r3, [pc, #52] ; (80052ac <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  12624. 8005276: 681b ldr r3, [r3, #0]
  12625. 8005278: f023 0201 bic.w r2, r3, #1
  12626. 800527c: 490b ldr r1, [pc, #44] ; (80052ac <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  12627. 800527e: 693b ldr r3, [r7, #16]
  12628. 8005280: 4313 orrs r3, r2
  12629. 8005282: 600b str r3, [r1, #0]
  12630. /* Check that the new number of wait states is taken into account to access the Flash
  12631. memory by reading the FLASH_ACR register */
  12632. if(__HAL_FLASH_GET_LATENCY() != latency)
  12633. 8005284: 4b09 ldr r3, [pc, #36] ; (80052ac <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  12634. 8005286: 681b ldr r3, [r3, #0]
  12635. 8005288: f003 0301 and.w r3, r3, #1
  12636. 800528c: 693a ldr r2, [r7, #16]
  12637. 800528e: 429a cmp r2, r3
  12638. 8005290: d001 beq.n 8005296 <RCC_SetFlashLatencyFromMSIRange+0xa6>
  12639. {
  12640. return HAL_ERROR;
  12641. 8005292: 2301 movs r3, #1
  12642. 8005294: e000 b.n 8005298 <RCC_SetFlashLatencyFromMSIRange+0xa8>
  12643. }
  12644. return HAL_OK;
  12645. 8005296: 2300 movs r3, #0
  12646. }
  12647. 8005298: 4618 mov r0, r3
  12648. 800529a: 371c adds r7, #28
  12649. 800529c: 46bd mov sp, r7
  12650. 800529e: bc80 pop {r7}
  12651. 80052a0: 4770 bx lr
  12652. 80052a2: bf00 nop
  12653. 80052a4: 40023800 .word 0x40023800
  12654. 80052a8: 40007000 .word 0x40007000
  12655. 80052ac: 40023c00 .word 0x40023c00
  12656. 080052b0 <HAL_TIM_Base_Init>:
  12657. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  12658. * @param htim TIM Base handle
  12659. * @retval HAL status
  12660. */
  12661. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  12662. {
  12663. 80052b0: b580 push {r7, lr}
  12664. 80052b2: b082 sub sp, #8
  12665. 80052b4: af00 add r7, sp, #0
  12666. 80052b6: 6078 str r0, [r7, #4]
  12667. /* Check the TIM handle allocation */
  12668. if (htim == NULL)
  12669. 80052b8: 687b ldr r3, [r7, #4]
  12670. 80052ba: 2b00 cmp r3, #0
  12671. 80052bc: d101 bne.n 80052c2 <HAL_TIM_Base_Init+0x12>
  12672. {
  12673. return HAL_ERROR;
  12674. 80052be: 2301 movs r3, #1
  12675. 80052c0: e031 b.n 8005326 <HAL_TIM_Base_Init+0x76>
  12676. assert_param(IS_TIM_INSTANCE(htim->Instance));
  12677. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  12678. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  12679. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  12680. if (htim->State == HAL_TIM_STATE_RESET)
  12681. 80052c2: 687b ldr r3, [r7, #4]
  12682. 80052c4: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  12683. 80052c8: b2db uxtb r3, r3
  12684. 80052ca: 2b00 cmp r3, #0
  12685. 80052cc: d106 bne.n 80052dc <HAL_TIM_Base_Init+0x2c>
  12686. {
  12687. /* Allocate lock resource and initialize it */
  12688. htim->Lock = HAL_UNLOCKED;
  12689. 80052ce: 687b ldr r3, [r7, #4]
  12690. 80052d0: 2200 movs r2, #0
  12691. 80052d2: f883 2038 strb.w r2, [r3, #56] ; 0x38
  12692. }
  12693. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  12694. htim->Base_MspInitCallback(htim);
  12695. #else
  12696. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  12697. HAL_TIM_Base_MspInit(htim);
  12698. 80052d6: 6878 ldr r0, [r7, #4]
  12699. 80052d8: f7fc fe08 bl 8001eec <HAL_TIM_Base_MspInit>
  12700. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12701. }
  12702. /* Set the TIM state */
  12703. htim->State = HAL_TIM_STATE_BUSY;
  12704. 80052dc: 687b ldr r3, [r7, #4]
  12705. 80052de: 2202 movs r2, #2
  12706. 80052e0: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12707. /* Set the Time Base configuration */
  12708. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  12709. 80052e4: 687b ldr r3, [r7, #4]
  12710. 80052e6: 681a ldr r2, [r3, #0]
  12711. 80052e8: 687b ldr r3, [r7, #4]
  12712. 80052ea: 3304 adds r3, #4
  12713. 80052ec: 4619 mov r1, r3
  12714. 80052ee: 4610 mov r0, r2
  12715. 80052f0: f000 fccc bl 8005c8c <TIM_Base_SetConfig>
  12716. /* Initialize the DMA burst operation state */
  12717. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  12718. 80052f4: 687b ldr r3, [r7, #4]
  12719. 80052f6: 2201 movs r2, #1
  12720. 80052f8: f883 203e strb.w r2, [r3, #62] ; 0x3e
  12721. /* Initialize the TIM channels state */
  12722. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  12723. 80052fc: 687b ldr r3, [r7, #4]
  12724. 80052fe: 2201 movs r2, #1
  12725. 8005300: f883 203a strb.w r2, [r3, #58] ; 0x3a
  12726. 8005304: 687b ldr r3, [r7, #4]
  12727. 8005306: 2201 movs r2, #1
  12728. 8005308: f883 203b strb.w r2, [r3, #59] ; 0x3b
  12729. 800530c: 687b ldr r3, [r7, #4]
  12730. 800530e: 2201 movs r2, #1
  12731. 8005310: f883 203c strb.w r2, [r3, #60] ; 0x3c
  12732. 8005314: 687b ldr r3, [r7, #4]
  12733. 8005316: 2201 movs r2, #1
  12734. 8005318: f883 203d strb.w r2, [r3, #61] ; 0x3d
  12735. /* Initialize the TIM state*/
  12736. htim->State = HAL_TIM_STATE_READY;
  12737. 800531c: 687b ldr r3, [r7, #4]
  12738. 800531e: 2201 movs r2, #1
  12739. 8005320: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12740. return HAL_OK;
  12741. 8005324: 2300 movs r3, #0
  12742. }
  12743. 8005326: 4618 mov r0, r3
  12744. 8005328: 3708 adds r7, #8
  12745. 800532a: 46bd mov sp, r7
  12746. 800532c: bd80 pop {r7, pc}
  12747. ...
  12748. 08005330 <HAL_TIM_Base_Start>:
  12749. * @brief Starts the TIM Base generation.
  12750. * @param htim TIM Base handle
  12751. * @retval HAL status
  12752. */
  12753. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  12754. {
  12755. 8005330: b480 push {r7}
  12756. 8005332: b085 sub sp, #20
  12757. 8005334: af00 add r7, sp, #0
  12758. 8005336: 6078 str r0, [r7, #4]
  12759. /* Check the parameters */
  12760. assert_param(IS_TIM_INSTANCE(htim->Instance));
  12761. /* Check the TIM state */
  12762. if (htim->State != HAL_TIM_STATE_READY)
  12763. 8005338: 687b ldr r3, [r7, #4]
  12764. 800533a: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  12765. 800533e: b2db uxtb r3, r3
  12766. 8005340: 2b01 cmp r3, #1
  12767. 8005342: d001 beq.n 8005348 <HAL_TIM_Base_Start+0x18>
  12768. {
  12769. return HAL_ERROR;
  12770. 8005344: 2301 movs r3, #1
  12771. 8005346: e032 b.n 80053ae <HAL_TIM_Base_Start+0x7e>
  12772. }
  12773. /* Set the TIM state */
  12774. htim->State = HAL_TIM_STATE_BUSY;
  12775. 8005348: 687b ldr r3, [r7, #4]
  12776. 800534a: 2202 movs r2, #2
  12777. 800534c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12778. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  12779. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  12780. 8005350: 687b ldr r3, [r7, #4]
  12781. 8005352: 681b ldr r3, [r3, #0]
  12782. 8005354: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  12783. 8005358: d00e beq.n 8005378 <HAL_TIM_Base_Start+0x48>
  12784. 800535a: 687b ldr r3, [r7, #4]
  12785. 800535c: 681b ldr r3, [r3, #0]
  12786. 800535e: 4a16 ldr r2, [pc, #88] ; (80053b8 <HAL_TIM_Base_Start+0x88>)
  12787. 8005360: 4293 cmp r3, r2
  12788. 8005362: d009 beq.n 8005378 <HAL_TIM_Base_Start+0x48>
  12789. 8005364: 687b ldr r3, [r7, #4]
  12790. 8005366: 681b ldr r3, [r3, #0]
  12791. 8005368: 4a14 ldr r2, [pc, #80] ; (80053bc <HAL_TIM_Base_Start+0x8c>)
  12792. 800536a: 4293 cmp r3, r2
  12793. 800536c: d004 beq.n 8005378 <HAL_TIM_Base_Start+0x48>
  12794. 800536e: 687b ldr r3, [r7, #4]
  12795. 8005370: 681b ldr r3, [r3, #0]
  12796. 8005372: 4a13 ldr r2, [pc, #76] ; (80053c0 <HAL_TIM_Base_Start+0x90>)
  12797. 8005374: 4293 cmp r3, r2
  12798. 8005376: d111 bne.n 800539c <HAL_TIM_Base_Start+0x6c>
  12799. {
  12800. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  12801. 8005378: 687b ldr r3, [r7, #4]
  12802. 800537a: 681b ldr r3, [r3, #0]
  12803. 800537c: 689b ldr r3, [r3, #8]
  12804. 800537e: f003 0307 and.w r3, r3, #7
  12805. 8005382: 60fb str r3, [r7, #12]
  12806. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12807. 8005384: 68fb ldr r3, [r7, #12]
  12808. 8005386: 2b06 cmp r3, #6
  12809. 8005388: d010 beq.n 80053ac <HAL_TIM_Base_Start+0x7c>
  12810. {
  12811. __HAL_TIM_ENABLE(htim);
  12812. 800538a: 687b ldr r3, [r7, #4]
  12813. 800538c: 681b ldr r3, [r3, #0]
  12814. 800538e: 681a ldr r2, [r3, #0]
  12815. 8005390: 687b ldr r3, [r7, #4]
  12816. 8005392: 681b ldr r3, [r3, #0]
  12817. 8005394: f042 0201 orr.w r2, r2, #1
  12818. 8005398: 601a str r2, [r3, #0]
  12819. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12820. 800539a: e007 b.n 80053ac <HAL_TIM_Base_Start+0x7c>
  12821. }
  12822. }
  12823. else
  12824. {
  12825. __HAL_TIM_ENABLE(htim);
  12826. 800539c: 687b ldr r3, [r7, #4]
  12827. 800539e: 681b ldr r3, [r3, #0]
  12828. 80053a0: 681a ldr r2, [r3, #0]
  12829. 80053a2: 687b ldr r3, [r7, #4]
  12830. 80053a4: 681b ldr r3, [r3, #0]
  12831. 80053a6: f042 0201 orr.w r2, r2, #1
  12832. 80053aa: 601a str r2, [r3, #0]
  12833. }
  12834. /* Return function status */
  12835. return HAL_OK;
  12836. 80053ac: 2300 movs r3, #0
  12837. }
  12838. 80053ae: 4618 mov r0, r3
  12839. 80053b0: 3714 adds r7, #20
  12840. 80053b2: 46bd mov sp, r7
  12841. 80053b4: bc80 pop {r7}
  12842. 80053b6: 4770 bx lr
  12843. 80053b8: 40000400 .word 0x40000400
  12844. 80053bc: 40000800 .word 0x40000800
  12845. 80053c0: 40010800 .word 0x40010800
  12846. 080053c4 <HAL_TIM_Base_Stop>:
  12847. * @brief Stops the TIM Base generation.
  12848. * @param htim TIM Base handle
  12849. * @retval HAL status
  12850. */
  12851. HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim)
  12852. {
  12853. 80053c4: b480 push {r7}
  12854. 80053c6: b083 sub sp, #12
  12855. 80053c8: af00 add r7, sp, #0
  12856. 80053ca: 6078 str r0, [r7, #4]
  12857. /* Check the parameters */
  12858. assert_param(IS_TIM_INSTANCE(htim->Instance));
  12859. /* Disable the Peripheral */
  12860. __HAL_TIM_DISABLE(htim);
  12861. 80053cc: 687b ldr r3, [r7, #4]
  12862. 80053ce: 681b ldr r3, [r3, #0]
  12863. 80053d0: 6a1a ldr r2, [r3, #32]
  12864. 80053d2: f241 1311 movw r3, #4369 ; 0x1111
  12865. 80053d6: 4013 ands r3, r2
  12866. 80053d8: 2b00 cmp r3, #0
  12867. 80053da: d107 bne.n 80053ec <HAL_TIM_Base_Stop+0x28>
  12868. 80053dc: 687b ldr r3, [r7, #4]
  12869. 80053de: 681b ldr r3, [r3, #0]
  12870. 80053e0: 681a ldr r2, [r3, #0]
  12871. 80053e2: 687b ldr r3, [r7, #4]
  12872. 80053e4: 681b ldr r3, [r3, #0]
  12873. 80053e6: f022 0201 bic.w r2, r2, #1
  12874. 80053ea: 601a str r2, [r3, #0]
  12875. /* Set the TIM state */
  12876. htim->State = HAL_TIM_STATE_READY;
  12877. 80053ec: 687b ldr r3, [r7, #4]
  12878. 80053ee: 2201 movs r2, #1
  12879. 80053f0: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12880. /* Return function status */
  12881. return HAL_OK;
  12882. 80053f4: 2300 movs r3, #0
  12883. }
  12884. 80053f6: 4618 mov r0, r3
  12885. 80053f8: 370c adds r7, #12
  12886. 80053fa: 46bd mov sp, r7
  12887. 80053fc: bc80 pop {r7}
  12888. 80053fe: 4770 bx lr
  12889. 08005400 <HAL_TIM_Base_Start_IT>:
  12890. * @brief Starts the TIM Base generation in interrupt mode.
  12891. * @param htim TIM Base handle
  12892. * @retval HAL status
  12893. */
  12894. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  12895. {
  12896. 8005400: b480 push {r7}
  12897. 8005402: b085 sub sp, #20
  12898. 8005404: af00 add r7, sp, #0
  12899. 8005406: 6078 str r0, [r7, #4]
  12900. /* Check the parameters */
  12901. assert_param(IS_TIM_INSTANCE(htim->Instance));
  12902. /* Check the TIM state */
  12903. if (htim->State != HAL_TIM_STATE_READY)
  12904. 8005408: 687b ldr r3, [r7, #4]
  12905. 800540a: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  12906. 800540e: b2db uxtb r3, r3
  12907. 8005410: 2b01 cmp r3, #1
  12908. 8005412: d001 beq.n 8005418 <HAL_TIM_Base_Start_IT+0x18>
  12909. {
  12910. return HAL_ERROR;
  12911. 8005414: 2301 movs r3, #1
  12912. 8005416: e03a b.n 800548e <HAL_TIM_Base_Start_IT+0x8e>
  12913. }
  12914. /* Set the TIM state */
  12915. htim->State = HAL_TIM_STATE_BUSY;
  12916. 8005418: 687b ldr r3, [r7, #4]
  12917. 800541a: 2202 movs r2, #2
  12918. 800541c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12919. /* Enable the TIM Update interrupt */
  12920. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  12921. 8005420: 687b ldr r3, [r7, #4]
  12922. 8005422: 681b ldr r3, [r3, #0]
  12923. 8005424: 68da ldr r2, [r3, #12]
  12924. 8005426: 687b ldr r3, [r7, #4]
  12925. 8005428: 681b ldr r3, [r3, #0]
  12926. 800542a: f042 0201 orr.w r2, r2, #1
  12927. 800542e: 60da str r2, [r3, #12]
  12928. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  12929. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  12930. 8005430: 687b ldr r3, [r7, #4]
  12931. 8005432: 681b ldr r3, [r3, #0]
  12932. 8005434: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  12933. 8005438: d00e beq.n 8005458 <HAL_TIM_Base_Start_IT+0x58>
  12934. 800543a: 687b ldr r3, [r7, #4]
  12935. 800543c: 681b ldr r3, [r3, #0]
  12936. 800543e: 4a16 ldr r2, [pc, #88] ; (8005498 <HAL_TIM_Base_Start_IT+0x98>)
  12937. 8005440: 4293 cmp r3, r2
  12938. 8005442: d009 beq.n 8005458 <HAL_TIM_Base_Start_IT+0x58>
  12939. 8005444: 687b ldr r3, [r7, #4]
  12940. 8005446: 681b ldr r3, [r3, #0]
  12941. 8005448: 4a14 ldr r2, [pc, #80] ; (800549c <HAL_TIM_Base_Start_IT+0x9c>)
  12942. 800544a: 4293 cmp r3, r2
  12943. 800544c: d004 beq.n 8005458 <HAL_TIM_Base_Start_IT+0x58>
  12944. 800544e: 687b ldr r3, [r7, #4]
  12945. 8005450: 681b ldr r3, [r3, #0]
  12946. 8005452: 4a13 ldr r2, [pc, #76] ; (80054a0 <HAL_TIM_Base_Start_IT+0xa0>)
  12947. 8005454: 4293 cmp r3, r2
  12948. 8005456: d111 bne.n 800547c <HAL_TIM_Base_Start_IT+0x7c>
  12949. {
  12950. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  12951. 8005458: 687b ldr r3, [r7, #4]
  12952. 800545a: 681b ldr r3, [r3, #0]
  12953. 800545c: 689b ldr r3, [r3, #8]
  12954. 800545e: f003 0307 and.w r3, r3, #7
  12955. 8005462: 60fb str r3, [r7, #12]
  12956. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12957. 8005464: 68fb ldr r3, [r7, #12]
  12958. 8005466: 2b06 cmp r3, #6
  12959. 8005468: d010 beq.n 800548c <HAL_TIM_Base_Start_IT+0x8c>
  12960. {
  12961. __HAL_TIM_ENABLE(htim);
  12962. 800546a: 687b ldr r3, [r7, #4]
  12963. 800546c: 681b ldr r3, [r3, #0]
  12964. 800546e: 681a ldr r2, [r3, #0]
  12965. 8005470: 687b ldr r3, [r7, #4]
  12966. 8005472: 681b ldr r3, [r3, #0]
  12967. 8005474: f042 0201 orr.w r2, r2, #1
  12968. 8005478: 601a str r2, [r3, #0]
  12969. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12970. 800547a: e007 b.n 800548c <HAL_TIM_Base_Start_IT+0x8c>
  12971. }
  12972. }
  12973. else
  12974. {
  12975. __HAL_TIM_ENABLE(htim);
  12976. 800547c: 687b ldr r3, [r7, #4]
  12977. 800547e: 681b ldr r3, [r3, #0]
  12978. 8005480: 681a ldr r2, [r3, #0]
  12979. 8005482: 687b ldr r3, [r7, #4]
  12980. 8005484: 681b ldr r3, [r3, #0]
  12981. 8005486: f042 0201 orr.w r2, r2, #1
  12982. 800548a: 601a str r2, [r3, #0]
  12983. }
  12984. /* Return function status */
  12985. return HAL_OK;
  12986. 800548c: 2300 movs r3, #0
  12987. }
  12988. 800548e: 4618 mov r0, r3
  12989. 8005490: 3714 adds r7, #20
  12990. 8005492: 46bd mov sp, r7
  12991. 8005494: bc80 pop {r7}
  12992. 8005496: 4770 bx lr
  12993. 8005498: 40000400 .word 0x40000400
  12994. 800549c: 40000800 .word 0x40000800
  12995. 80054a0: 40010800 .word 0x40010800
  12996. 080054a4 <HAL_TIM_OC_Start>:
  12997. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  12998. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  12999. * @retval HAL status
  13000. */
  13001. HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  13002. {
  13003. 80054a4: b580 push {r7, lr}
  13004. 80054a6: b084 sub sp, #16
  13005. 80054a8: af00 add r7, sp, #0
  13006. 80054aa: 6078 str r0, [r7, #4]
  13007. 80054ac: 6039 str r1, [r7, #0]
  13008. /* Check the parameters */
  13009. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  13010. /* Check the TIM channel state */
  13011. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  13012. 80054ae: 683b ldr r3, [r7, #0]
  13013. 80054b0: 2b00 cmp r3, #0
  13014. 80054b2: d109 bne.n 80054c8 <HAL_TIM_OC_Start+0x24>
  13015. 80054b4: 687b ldr r3, [r7, #4]
  13016. 80054b6: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  13017. 80054ba: b2db uxtb r3, r3
  13018. 80054bc: 2b01 cmp r3, #1
  13019. 80054be: bf14 ite ne
  13020. 80054c0: 2301 movne r3, #1
  13021. 80054c2: 2300 moveq r3, #0
  13022. 80054c4: b2db uxtb r3, r3
  13023. 80054c6: e022 b.n 800550e <HAL_TIM_OC_Start+0x6a>
  13024. 80054c8: 683b ldr r3, [r7, #0]
  13025. 80054ca: 2b04 cmp r3, #4
  13026. 80054cc: d109 bne.n 80054e2 <HAL_TIM_OC_Start+0x3e>
  13027. 80054ce: 687b ldr r3, [r7, #4]
  13028. 80054d0: f893 303b ldrb.w r3, [r3, #59] ; 0x3b
  13029. 80054d4: b2db uxtb r3, r3
  13030. 80054d6: 2b01 cmp r3, #1
  13031. 80054d8: bf14 ite ne
  13032. 80054da: 2301 movne r3, #1
  13033. 80054dc: 2300 moveq r3, #0
  13034. 80054de: b2db uxtb r3, r3
  13035. 80054e0: e015 b.n 800550e <HAL_TIM_OC_Start+0x6a>
  13036. 80054e2: 683b ldr r3, [r7, #0]
  13037. 80054e4: 2b08 cmp r3, #8
  13038. 80054e6: d109 bne.n 80054fc <HAL_TIM_OC_Start+0x58>
  13039. 80054e8: 687b ldr r3, [r7, #4]
  13040. 80054ea: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  13041. 80054ee: b2db uxtb r3, r3
  13042. 80054f0: 2b01 cmp r3, #1
  13043. 80054f2: bf14 ite ne
  13044. 80054f4: 2301 movne r3, #1
  13045. 80054f6: 2300 moveq r3, #0
  13046. 80054f8: b2db uxtb r3, r3
  13047. 80054fa: e008 b.n 800550e <HAL_TIM_OC_Start+0x6a>
  13048. 80054fc: 687b ldr r3, [r7, #4]
  13049. 80054fe: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  13050. 8005502: b2db uxtb r3, r3
  13051. 8005504: 2b01 cmp r3, #1
  13052. 8005506: bf14 ite ne
  13053. 8005508: 2301 movne r3, #1
  13054. 800550a: 2300 moveq r3, #0
  13055. 800550c: b2db uxtb r3, r3
  13056. 800550e: 2b00 cmp r3, #0
  13057. 8005510: d001 beq.n 8005516 <HAL_TIM_OC_Start+0x72>
  13058. {
  13059. return HAL_ERROR;
  13060. 8005512: 2301 movs r3, #1
  13061. 8005514: e051 b.n 80055ba <HAL_TIM_OC_Start+0x116>
  13062. }
  13063. /* Set the TIM channel state */
  13064. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  13065. 8005516: 683b ldr r3, [r7, #0]
  13066. 8005518: 2b00 cmp r3, #0
  13067. 800551a: d104 bne.n 8005526 <HAL_TIM_OC_Start+0x82>
  13068. 800551c: 687b ldr r3, [r7, #4]
  13069. 800551e: 2202 movs r2, #2
  13070. 8005520: f883 203a strb.w r2, [r3, #58] ; 0x3a
  13071. 8005524: e013 b.n 800554e <HAL_TIM_OC_Start+0xaa>
  13072. 8005526: 683b ldr r3, [r7, #0]
  13073. 8005528: 2b04 cmp r3, #4
  13074. 800552a: d104 bne.n 8005536 <HAL_TIM_OC_Start+0x92>
  13075. 800552c: 687b ldr r3, [r7, #4]
  13076. 800552e: 2202 movs r2, #2
  13077. 8005530: f883 203b strb.w r2, [r3, #59] ; 0x3b
  13078. 8005534: e00b b.n 800554e <HAL_TIM_OC_Start+0xaa>
  13079. 8005536: 683b ldr r3, [r7, #0]
  13080. 8005538: 2b08 cmp r3, #8
  13081. 800553a: d104 bne.n 8005546 <HAL_TIM_OC_Start+0xa2>
  13082. 800553c: 687b ldr r3, [r7, #4]
  13083. 800553e: 2202 movs r2, #2
  13084. 8005540: f883 203c strb.w r2, [r3, #60] ; 0x3c
  13085. 8005544: e003 b.n 800554e <HAL_TIM_OC_Start+0xaa>
  13086. 8005546: 687b ldr r3, [r7, #4]
  13087. 8005548: 2202 movs r2, #2
  13088. 800554a: f883 203d strb.w r2, [r3, #61] ; 0x3d
  13089. /* Enable the Output compare channel */
  13090. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  13091. 800554e: 687b ldr r3, [r7, #4]
  13092. 8005550: 681b ldr r3, [r3, #0]
  13093. 8005552: 2201 movs r2, #1
  13094. 8005554: 6839 ldr r1, [r7, #0]
  13095. 8005556: 4618 mov r0, r3
  13096. 8005558: f000 fe13 bl 8006182 <TIM_CCxChannelCmd>
  13097. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  13098. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  13099. 800555c: 687b ldr r3, [r7, #4]
  13100. 800555e: 681b ldr r3, [r3, #0]
  13101. 8005560: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  13102. 8005564: d00e beq.n 8005584 <HAL_TIM_OC_Start+0xe0>
  13103. 8005566: 687b ldr r3, [r7, #4]
  13104. 8005568: 681b ldr r3, [r3, #0]
  13105. 800556a: 4a16 ldr r2, [pc, #88] ; (80055c4 <HAL_TIM_OC_Start+0x120>)
  13106. 800556c: 4293 cmp r3, r2
  13107. 800556e: d009 beq.n 8005584 <HAL_TIM_OC_Start+0xe0>
  13108. 8005570: 687b ldr r3, [r7, #4]
  13109. 8005572: 681b ldr r3, [r3, #0]
  13110. 8005574: 4a14 ldr r2, [pc, #80] ; (80055c8 <HAL_TIM_OC_Start+0x124>)
  13111. 8005576: 4293 cmp r3, r2
  13112. 8005578: d004 beq.n 8005584 <HAL_TIM_OC_Start+0xe0>
  13113. 800557a: 687b ldr r3, [r7, #4]
  13114. 800557c: 681b ldr r3, [r3, #0]
  13115. 800557e: 4a13 ldr r2, [pc, #76] ; (80055cc <HAL_TIM_OC_Start+0x128>)
  13116. 8005580: 4293 cmp r3, r2
  13117. 8005582: d111 bne.n 80055a8 <HAL_TIM_OC_Start+0x104>
  13118. {
  13119. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  13120. 8005584: 687b ldr r3, [r7, #4]
  13121. 8005586: 681b ldr r3, [r3, #0]
  13122. 8005588: 689b ldr r3, [r3, #8]
  13123. 800558a: f003 0307 and.w r3, r3, #7
  13124. 800558e: 60fb str r3, [r7, #12]
  13125. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  13126. 8005590: 68fb ldr r3, [r7, #12]
  13127. 8005592: 2b06 cmp r3, #6
  13128. 8005594: d010 beq.n 80055b8 <HAL_TIM_OC_Start+0x114>
  13129. {
  13130. __HAL_TIM_ENABLE(htim);
  13131. 8005596: 687b ldr r3, [r7, #4]
  13132. 8005598: 681b ldr r3, [r3, #0]
  13133. 800559a: 681a ldr r2, [r3, #0]
  13134. 800559c: 687b ldr r3, [r7, #4]
  13135. 800559e: 681b ldr r3, [r3, #0]
  13136. 80055a0: f042 0201 orr.w r2, r2, #1
  13137. 80055a4: 601a str r2, [r3, #0]
  13138. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  13139. 80055a6: e007 b.n 80055b8 <HAL_TIM_OC_Start+0x114>
  13140. }
  13141. }
  13142. else
  13143. {
  13144. __HAL_TIM_ENABLE(htim);
  13145. 80055a8: 687b ldr r3, [r7, #4]
  13146. 80055aa: 681b ldr r3, [r3, #0]
  13147. 80055ac: 681a ldr r2, [r3, #0]
  13148. 80055ae: 687b ldr r3, [r7, #4]
  13149. 80055b0: 681b ldr r3, [r3, #0]
  13150. 80055b2: f042 0201 orr.w r2, r2, #1
  13151. 80055b6: 601a str r2, [r3, #0]
  13152. }
  13153. /* Return function status */
  13154. return HAL_OK;
  13155. 80055b8: 2300 movs r3, #0
  13156. }
  13157. 80055ba: 4618 mov r0, r3
  13158. 80055bc: 3710 adds r7, #16
  13159. 80055be: 46bd mov sp, r7
  13160. 80055c0: bd80 pop {r7, pc}
  13161. 80055c2: bf00 nop
  13162. 80055c4: 40000400 .word 0x40000400
  13163. 80055c8: 40000800 .word 0x40000800
  13164. 80055cc: 40010800 .word 0x40010800
  13165. 080055d0 <HAL_TIM_PWM_Init>:
  13166. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  13167. * @param htim TIM PWM handle
  13168. * @retval HAL status
  13169. */
  13170. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  13171. {
  13172. 80055d0: b580 push {r7, lr}
  13173. 80055d2: b082 sub sp, #8
  13174. 80055d4: af00 add r7, sp, #0
  13175. 80055d6: 6078 str r0, [r7, #4]
  13176. /* Check the TIM handle allocation */
  13177. if (htim == NULL)
  13178. 80055d8: 687b ldr r3, [r7, #4]
  13179. 80055da: 2b00 cmp r3, #0
  13180. 80055dc: d101 bne.n 80055e2 <HAL_TIM_PWM_Init+0x12>
  13181. {
  13182. return HAL_ERROR;
  13183. 80055de: 2301 movs r3, #1
  13184. 80055e0: e031 b.n 8005646 <HAL_TIM_PWM_Init+0x76>
  13185. assert_param(IS_TIM_INSTANCE(htim->Instance));
  13186. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  13187. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  13188. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  13189. if (htim->State == HAL_TIM_STATE_RESET)
  13190. 80055e2: 687b ldr r3, [r7, #4]
  13191. 80055e4: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  13192. 80055e8: b2db uxtb r3, r3
  13193. 80055ea: 2b00 cmp r3, #0
  13194. 80055ec: d106 bne.n 80055fc <HAL_TIM_PWM_Init+0x2c>
  13195. {
  13196. /* Allocate lock resource and initialize it */
  13197. htim->Lock = HAL_UNLOCKED;
  13198. 80055ee: 687b ldr r3, [r7, #4]
  13199. 80055f0: 2200 movs r2, #0
  13200. 80055f2: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13201. }
  13202. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  13203. htim->PWM_MspInitCallback(htim);
  13204. #else
  13205. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  13206. HAL_TIM_PWM_MspInit(htim);
  13207. 80055f6: 6878 ldr r0, [r7, #4]
  13208. 80055f8: f000 f829 bl 800564e <HAL_TIM_PWM_MspInit>
  13209. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13210. }
  13211. /* Set the TIM state */
  13212. htim->State = HAL_TIM_STATE_BUSY;
  13213. 80055fc: 687b ldr r3, [r7, #4]
  13214. 80055fe: 2202 movs r2, #2
  13215. 8005600: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13216. /* Init the base time for the PWM */
  13217. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  13218. 8005604: 687b ldr r3, [r7, #4]
  13219. 8005606: 681a ldr r2, [r3, #0]
  13220. 8005608: 687b ldr r3, [r7, #4]
  13221. 800560a: 3304 adds r3, #4
  13222. 800560c: 4619 mov r1, r3
  13223. 800560e: 4610 mov r0, r2
  13224. 8005610: f000 fb3c bl 8005c8c <TIM_Base_SetConfig>
  13225. /* Initialize the DMA burst operation state */
  13226. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  13227. 8005614: 687b ldr r3, [r7, #4]
  13228. 8005616: 2201 movs r2, #1
  13229. 8005618: f883 203e strb.w r2, [r3, #62] ; 0x3e
  13230. /* Initialize the TIM channels state */
  13231. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  13232. 800561c: 687b ldr r3, [r7, #4]
  13233. 800561e: 2201 movs r2, #1
  13234. 8005620: f883 203a strb.w r2, [r3, #58] ; 0x3a
  13235. 8005624: 687b ldr r3, [r7, #4]
  13236. 8005626: 2201 movs r2, #1
  13237. 8005628: f883 203b strb.w r2, [r3, #59] ; 0x3b
  13238. 800562c: 687b ldr r3, [r7, #4]
  13239. 800562e: 2201 movs r2, #1
  13240. 8005630: f883 203c strb.w r2, [r3, #60] ; 0x3c
  13241. 8005634: 687b ldr r3, [r7, #4]
  13242. 8005636: 2201 movs r2, #1
  13243. 8005638: f883 203d strb.w r2, [r3, #61] ; 0x3d
  13244. /* Initialize the TIM state*/
  13245. htim->State = HAL_TIM_STATE_READY;
  13246. 800563c: 687b ldr r3, [r7, #4]
  13247. 800563e: 2201 movs r2, #1
  13248. 8005640: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13249. return HAL_OK;
  13250. 8005644: 2300 movs r3, #0
  13251. }
  13252. 8005646: 4618 mov r0, r3
  13253. 8005648: 3708 adds r7, #8
  13254. 800564a: 46bd mov sp, r7
  13255. 800564c: bd80 pop {r7, pc}
  13256. 0800564e <HAL_TIM_PWM_MspInit>:
  13257. * @brief Initializes the TIM PWM MSP.
  13258. * @param htim TIM PWM handle
  13259. * @retval None
  13260. */
  13261. __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim)
  13262. {
  13263. 800564e: b480 push {r7}
  13264. 8005650: b083 sub sp, #12
  13265. 8005652: af00 add r7, sp, #0
  13266. 8005654: 6078 str r0, [r7, #4]
  13267. UNUSED(htim);
  13268. /* NOTE : This function should not be modified, when the callback is needed,
  13269. the HAL_TIM_PWM_MspInit could be implemented in the user file
  13270. */
  13271. }
  13272. 8005656: bf00 nop
  13273. 8005658: 370c adds r7, #12
  13274. 800565a: 46bd mov sp, r7
  13275. 800565c: bc80 pop {r7}
  13276. 800565e: 4770 bx lr
  13277. 08005660 <HAL_TIM_OnePulse_Init>:
  13278. * @arg TIM_OPMODE_SINGLE: Only one pulse will be generated.
  13279. * @arg TIM_OPMODE_REPETITIVE: Repetitive pulses will be generated.
  13280. * @retval HAL status
  13281. */
  13282. HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode)
  13283. {
  13284. 8005660: b580 push {r7, lr}
  13285. 8005662: b082 sub sp, #8
  13286. 8005664: af00 add r7, sp, #0
  13287. 8005666: 6078 str r0, [r7, #4]
  13288. 8005668: 6039 str r1, [r7, #0]
  13289. /* Check the TIM handle allocation */
  13290. if (htim == NULL)
  13291. 800566a: 687b ldr r3, [r7, #4]
  13292. 800566c: 2b00 cmp r3, #0
  13293. 800566e: d101 bne.n 8005674 <HAL_TIM_OnePulse_Init+0x14>
  13294. {
  13295. return HAL_ERROR;
  13296. 8005670: 2301 movs r3, #1
  13297. 8005672: e039 b.n 80056e8 <HAL_TIM_OnePulse_Init+0x88>
  13298. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  13299. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  13300. assert_param(IS_TIM_OPM_MODE(OnePulseMode));
  13301. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  13302. if (htim->State == HAL_TIM_STATE_RESET)
  13303. 8005674: 687b ldr r3, [r7, #4]
  13304. 8005676: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  13305. 800567a: b2db uxtb r3, r3
  13306. 800567c: 2b00 cmp r3, #0
  13307. 800567e: d106 bne.n 800568e <HAL_TIM_OnePulse_Init+0x2e>
  13308. {
  13309. /* Allocate lock resource and initialize it */
  13310. htim->Lock = HAL_UNLOCKED;
  13311. 8005680: 687b ldr r3, [r7, #4]
  13312. 8005682: 2200 movs r2, #0
  13313. 8005684: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13314. }
  13315. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  13316. htim->OnePulse_MspInitCallback(htim);
  13317. #else
  13318. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  13319. HAL_TIM_OnePulse_MspInit(htim);
  13320. 8005688: 6878 ldr r0, [r7, #4]
  13321. 800568a: f000 f831 bl 80056f0 <HAL_TIM_OnePulse_MspInit>
  13322. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13323. }
  13324. /* Set the TIM state */
  13325. htim->State = HAL_TIM_STATE_BUSY;
  13326. 800568e: 687b ldr r3, [r7, #4]
  13327. 8005690: 2202 movs r2, #2
  13328. 8005692: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13329. /* Configure the Time base in the One Pulse Mode */
  13330. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  13331. 8005696: 687b ldr r3, [r7, #4]
  13332. 8005698: 681a ldr r2, [r3, #0]
  13333. 800569a: 687b ldr r3, [r7, #4]
  13334. 800569c: 3304 adds r3, #4
  13335. 800569e: 4619 mov r1, r3
  13336. 80056a0: 4610 mov r0, r2
  13337. 80056a2: f000 faf3 bl 8005c8c <TIM_Base_SetConfig>
  13338. /* Reset the OPM Bit */
  13339. htim->Instance->CR1 &= ~TIM_CR1_OPM;
  13340. 80056a6: 687b ldr r3, [r7, #4]
  13341. 80056a8: 681b ldr r3, [r3, #0]
  13342. 80056aa: 681a ldr r2, [r3, #0]
  13343. 80056ac: 687b ldr r3, [r7, #4]
  13344. 80056ae: 681b ldr r3, [r3, #0]
  13345. 80056b0: f022 0208 bic.w r2, r2, #8
  13346. 80056b4: 601a str r2, [r3, #0]
  13347. /* Configure the OPM Mode */
  13348. htim->Instance->CR1 |= OnePulseMode;
  13349. 80056b6: 687b ldr r3, [r7, #4]
  13350. 80056b8: 681b ldr r3, [r3, #0]
  13351. 80056ba: 6819 ldr r1, [r3, #0]
  13352. 80056bc: 687b ldr r3, [r7, #4]
  13353. 80056be: 681b ldr r3, [r3, #0]
  13354. 80056c0: 683a ldr r2, [r7, #0]
  13355. 80056c2: 430a orrs r2, r1
  13356. 80056c4: 601a str r2, [r3, #0]
  13357. /* Initialize the DMA burst operation state */
  13358. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  13359. 80056c6: 687b ldr r3, [r7, #4]
  13360. 80056c8: 2201 movs r2, #1
  13361. 80056ca: f883 203e strb.w r2, [r3, #62] ; 0x3e
  13362. /* Initialize the TIM channels state */
  13363. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY);
  13364. 80056ce: 687b ldr r3, [r7, #4]
  13365. 80056d0: 2201 movs r2, #1
  13366. 80056d2: f883 203a strb.w r2, [r3, #58] ; 0x3a
  13367. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY);
  13368. 80056d6: 687b ldr r3, [r7, #4]
  13369. 80056d8: 2201 movs r2, #1
  13370. 80056da: f883 203b strb.w r2, [r3, #59] ; 0x3b
  13371. /* Initialize the TIM state*/
  13372. htim->State = HAL_TIM_STATE_READY;
  13373. 80056de: 687b ldr r3, [r7, #4]
  13374. 80056e0: 2201 movs r2, #1
  13375. 80056e2: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13376. return HAL_OK;
  13377. 80056e6: 2300 movs r3, #0
  13378. }
  13379. 80056e8: 4618 mov r0, r3
  13380. 80056ea: 3708 adds r7, #8
  13381. 80056ec: 46bd mov sp, r7
  13382. 80056ee: bd80 pop {r7, pc}
  13383. 080056f0 <HAL_TIM_OnePulse_MspInit>:
  13384. * @brief Initializes the TIM One Pulse MSP.
  13385. * @param htim TIM One Pulse handle
  13386. * @retval None
  13387. */
  13388. __weak void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim)
  13389. {
  13390. 80056f0: b480 push {r7}
  13391. 80056f2: b083 sub sp, #12
  13392. 80056f4: af00 add r7, sp, #0
  13393. 80056f6: 6078 str r0, [r7, #4]
  13394. UNUSED(htim);
  13395. /* NOTE : This function should not be modified, when the callback is needed,
  13396. the HAL_TIM_OnePulse_MspInit could be implemented in the user file
  13397. */
  13398. }
  13399. 80056f8: bf00 nop
  13400. 80056fa: 370c adds r7, #12
  13401. 80056fc: 46bd mov sp, r7
  13402. 80056fe: bc80 pop {r7}
  13403. 8005700: 4770 bx lr
  13404. 08005702 <HAL_TIM_IRQHandler>:
  13405. * @brief This function handles TIM interrupts requests.
  13406. * @param htim TIM handle
  13407. * @retval None
  13408. */
  13409. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  13410. {
  13411. 8005702: b580 push {r7, lr}
  13412. 8005704: b082 sub sp, #8
  13413. 8005706: af00 add r7, sp, #0
  13414. 8005708: 6078 str r0, [r7, #4]
  13415. /* Capture compare 1 event */
  13416. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  13417. 800570a: 687b ldr r3, [r7, #4]
  13418. 800570c: 681b ldr r3, [r3, #0]
  13419. 800570e: 691b ldr r3, [r3, #16]
  13420. 8005710: f003 0302 and.w r3, r3, #2
  13421. 8005714: 2b02 cmp r3, #2
  13422. 8005716: d122 bne.n 800575e <HAL_TIM_IRQHandler+0x5c>
  13423. {
  13424. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
  13425. 8005718: 687b ldr r3, [r7, #4]
  13426. 800571a: 681b ldr r3, [r3, #0]
  13427. 800571c: 68db ldr r3, [r3, #12]
  13428. 800571e: f003 0302 and.w r3, r3, #2
  13429. 8005722: 2b02 cmp r3, #2
  13430. 8005724: d11b bne.n 800575e <HAL_TIM_IRQHandler+0x5c>
  13431. {
  13432. {
  13433. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
  13434. 8005726: 687b ldr r3, [r7, #4]
  13435. 8005728: 681b ldr r3, [r3, #0]
  13436. 800572a: f06f 0202 mvn.w r2, #2
  13437. 800572e: 611a str r2, [r3, #16]
  13438. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  13439. 8005730: 687b ldr r3, [r7, #4]
  13440. 8005732: 2201 movs r2, #1
  13441. 8005734: 761a strb r2, [r3, #24]
  13442. /* Input capture event */
  13443. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  13444. 8005736: 687b ldr r3, [r7, #4]
  13445. 8005738: 681b ldr r3, [r3, #0]
  13446. 800573a: 699b ldr r3, [r3, #24]
  13447. 800573c: f003 0303 and.w r3, r3, #3
  13448. 8005740: 2b00 cmp r3, #0
  13449. 8005742: d003 beq.n 800574c <HAL_TIM_IRQHandler+0x4a>
  13450. {
  13451. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13452. htim->IC_CaptureCallback(htim);
  13453. #else
  13454. HAL_TIM_IC_CaptureCallback(htim);
  13455. 8005744: 6878 ldr r0, [r7, #4]
  13456. 8005746: f000 fa86 bl 8005c56 <HAL_TIM_IC_CaptureCallback>
  13457. 800574a: e005 b.n 8005758 <HAL_TIM_IRQHandler+0x56>
  13458. {
  13459. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13460. htim->OC_DelayElapsedCallback(htim);
  13461. htim->PWM_PulseFinishedCallback(htim);
  13462. #else
  13463. HAL_TIM_OC_DelayElapsedCallback(htim);
  13464. 800574c: 6878 ldr r0, [r7, #4]
  13465. 800574e: f000 fa79 bl 8005c44 <HAL_TIM_OC_DelayElapsedCallback>
  13466. HAL_TIM_PWM_PulseFinishedCallback(htim);
  13467. 8005752: 6878 ldr r0, [r7, #4]
  13468. 8005754: f000 fa88 bl 8005c68 <HAL_TIM_PWM_PulseFinishedCallback>
  13469. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13470. }
  13471. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  13472. 8005758: 687b ldr r3, [r7, #4]
  13473. 800575a: 2200 movs r2, #0
  13474. 800575c: 761a strb r2, [r3, #24]
  13475. }
  13476. }
  13477. }
  13478. /* Capture compare 2 event */
  13479. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
  13480. 800575e: 687b ldr r3, [r7, #4]
  13481. 8005760: 681b ldr r3, [r3, #0]
  13482. 8005762: 691b ldr r3, [r3, #16]
  13483. 8005764: f003 0304 and.w r3, r3, #4
  13484. 8005768: 2b04 cmp r3, #4
  13485. 800576a: d122 bne.n 80057b2 <HAL_TIM_IRQHandler+0xb0>
  13486. {
  13487. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
  13488. 800576c: 687b ldr r3, [r7, #4]
  13489. 800576e: 681b ldr r3, [r3, #0]
  13490. 8005770: 68db ldr r3, [r3, #12]
  13491. 8005772: f003 0304 and.w r3, r3, #4
  13492. 8005776: 2b04 cmp r3, #4
  13493. 8005778: d11b bne.n 80057b2 <HAL_TIM_IRQHandler+0xb0>
  13494. {
  13495. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
  13496. 800577a: 687b ldr r3, [r7, #4]
  13497. 800577c: 681b ldr r3, [r3, #0]
  13498. 800577e: f06f 0204 mvn.w r2, #4
  13499. 8005782: 611a str r2, [r3, #16]
  13500. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  13501. 8005784: 687b ldr r3, [r7, #4]
  13502. 8005786: 2202 movs r2, #2
  13503. 8005788: 761a strb r2, [r3, #24]
  13504. /* Input capture event */
  13505. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  13506. 800578a: 687b ldr r3, [r7, #4]
  13507. 800578c: 681b ldr r3, [r3, #0]
  13508. 800578e: 699b ldr r3, [r3, #24]
  13509. 8005790: f403 7340 and.w r3, r3, #768 ; 0x300
  13510. 8005794: 2b00 cmp r3, #0
  13511. 8005796: d003 beq.n 80057a0 <HAL_TIM_IRQHandler+0x9e>
  13512. {
  13513. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13514. htim->IC_CaptureCallback(htim);
  13515. #else
  13516. HAL_TIM_IC_CaptureCallback(htim);
  13517. 8005798: 6878 ldr r0, [r7, #4]
  13518. 800579a: f000 fa5c bl 8005c56 <HAL_TIM_IC_CaptureCallback>
  13519. 800579e: e005 b.n 80057ac <HAL_TIM_IRQHandler+0xaa>
  13520. {
  13521. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13522. htim->OC_DelayElapsedCallback(htim);
  13523. htim->PWM_PulseFinishedCallback(htim);
  13524. #else
  13525. HAL_TIM_OC_DelayElapsedCallback(htim);
  13526. 80057a0: 6878 ldr r0, [r7, #4]
  13527. 80057a2: f000 fa4f bl 8005c44 <HAL_TIM_OC_DelayElapsedCallback>
  13528. HAL_TIM_PWM_PulseFinishedCallback(htim);
  13529. 80057a6: 6878 ldr r0, [r7, #4]
  13530. 80057a8: f000 fa5e bl 8005c68 <HAL_TIM_PWM_PulseFinishedCallback>
  13531. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13532. }
  13533. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  13534. 80057ac: 687b ldr r3, [r7, #4]
  13535. 80057ae: 2200 movs r2, #0
  13536. 80057b0: 761a strb r2, [r3, #24]
  13537. }
  13538. }
  13539. /* Capture compare 3 event */
  13540. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
  13541. 80057b2: 687b ldr r3, [r7, #4]
  13542. 80057b4: 681b ldr r3, [r3, #0]
  13543. 80057b6: 691b ldr r3, [r3, #16]
  13544. 80057b8: f003 0308 and.w r3, r3, #8
  13545. 80057bc: 2b08 cmp r3, #8
  13546. 80057be: d122 bne.n 8005806 <HAL_TIM_IRQHandler+0x104>
  13547. {
  13548. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
  13549. 80057c0: 687b ldr r3, [r7, #4]
  13550. 80057c2: 681b ldr r3, [r3, #0]
  13551. 80057c4: 68db ldr r3, [r3, #12]
  13552. 80057c6: f003 0308 and.w r3, r3, #8
  13553. 80057ca: 2b08 cmp r3, #8
  13554. 80057cc: d11b bne.n 8005806 <HAL_TIM_IRQHandler+0x104>
  13555. {
  13556. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
  13557. 80057ce: 687b ldr r3, [r7, #4]
  13558. 80057d0: 681b ldr r3, [r3, #0]
  13559. 80057d2: f06f 0208 mvn.w r2, #8
  13560. 80057d6: 611a str r2, [r3, #16]
  13561. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  13562. 80057d8: 687b ldr r3, [r7, #4]
  13563. 80057da: 2204 movs r2, #4
  13564. 80057dc: 761a strb r2, [r3, #24]
  13565. /* Input capture event */
  13566. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  13567. 80057de: 687b ldr r3, [r7, #4]
  13568. 80057e0: 681b ldr r3, [r3, #0]
  13569. 80057e2: 69db ldr r3, [r3, #28]
  13570. 80057e4: f003 0303 and.w r3, r3, #3
  13571. 80057e8: 2b00 cmp r3, #0
  13572. 80057ea: d003 beq.n 80057f4 <HAL_TIM_IRQHandler+0xf2>
  13573. {
  13574. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13575. htim->IC_CaptureCallback(htim);
  13576. #else
  13577. HAL_TIM_IC_CaptureCallback(htim);
  13578. 80057ec: 6878 ldr r0, [r7, #4]
  13579. 80057ee: f000 fa32 bl 8005c56 <HAL_TIM_IC_CaptureCallback>
  13580. 80057f2: e005 b.n 8005800 <HAL_TIM_IRQHandler+0xfe>
  13581. {
  13582. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13583. htim->OC_DelayElapsedCallback(htim);
  13584. htim->PWM_PulseFinishedCallback(htim);
  13585. #else
  13586. HAL_TIM_OC_DelayElapsedCallback(htim);
  13587. 80057f4: 6878 ldr r0, [r7, #4]
  13588. 80057f6: f000 fa25 bl 8005c44 <HAL_TIM_OC_DelayElapsedCallback>
  13589. HAL_TIM_PWM_PulseFinishedCallback(htim);
  13590. 80057fa: 6878 ldr r0, [r7, #4]
  13591. 80057fc: f000 fa34 bl 8005c68 <HAL_TIM_PWM_PulseFinishedCallback>
  13592. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13593. }
  13594. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  13595. 8005800: 687b ldr r3, [r7, #4]
  13596. 8005802: 2200 movs r2, #0
  13597. 8005804: 761a strb r2, [r3, #24]
  13598. }
  13599. }
  13600. /* Capture compare 4 event */
  13601. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
  13602. 8005806: 687b ldr r3, [r7, #4]
  13603. 8005808: 681b ldr r3, [r3, #0]
  13604. 800580a: 691b ldr r3, [r3, #16]
  13605. 800580c: f003 0310 and.w r3, r3, #16
  13606. 8005810: 2b10 cmp r3, #16
  13607. 8005812: d122 bne.n 800585a <HAL_TIM_IRQHandler+0x158>
  13608. {
  13609. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
  13610. 8005814: 687b ldr r3, [r7, #4]
  13611. 8005816: 681b ldr r3, [r3, #0]
  13612. 8005818: 68db ldr r3, [r3, #12]
  13613. 800581a: f003 0310 and.w r3, r3, #16
  13614. 800581e: 2b10 cmp r3, #16
  13615. 8005820: d11b bne.n 800585a <HAL_TIM_IRQHandler+0x158>
  13616. {
  13617. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
  13618. 8005822: 687b ldr r3, [r7, #4]
  13619. 8005824: 681b ldr r3, [r3, #0]
  13620. 8005826: f06f 0210 mvn.w r2, #16
  13621. 800582a: 611a str r2, [r3, #16]
  13622. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  13623. 800582c: 687b ldr r3, [r7, #4]
  13624. 800582e: 2208 movs r2, #8
  13625. 8005830: 761a strb r2, [r3, #24]
  13626. /* Input capture event */
  13627. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  13628. 8005832: 687b ldr r3, [r7, #4]
  13629. 8005834: 681b ldr r3, [r3, #0]
  13630. 8005836: 69db ldr r3, [r3, #28]
  13631. 8005838: f403 7340 and.w r3, r3, #768 ; 0x300
  13632. 800583c: 2b00 cmp r3, #0
  13633. 800583e: d003 beq.n 8005848 <HAL_TIM_IRQHandler+0x146>
  13634. {
  13635. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13636. htim->IC_CaptureCallback(htim);
  13637. #else
  13638. HAL_TIM_IC_CaptureCallback(htim);
  13639. 8005840: 6878 ldr r0, [r7, #4]
  13640. 8005842: f000 fa08 bl 8005c56 <HAL_TIM_IC_CaptureCallback>
  13641. 8005846: e005 b.n 8005854 <HAL_TIM_IRQHandler+0x152>
  13642. {
  13643. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13644. htim->OC_DelayElapsedCallback(htim);
  13645. htim->PWM_PulseFinishedCallback(htim);
  13646. #else
  13647. HAL_TIM_OC_DelayElapsedCallback(htim);
  13648. 8005848: 6878 ldr r0, [r7, #4]
  13649. 800584a: f000 f9fb bl 8005c44 <HAL_TIM_OC_DelayElapsedCallback>
  13650. HAL_TIM_PWM_PulseFinishedCallback(htim);
  13651. 800584e: 6878 ldr r0, [r7, #4]
  13652. 8005850: f000 fa0a bl 8005c68 <HAL_TIM_PWM_PulseFinishedCallback>
  13653. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13654. }
  13655. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  13656. 8005854: 687b ldr r3, [r7, #4]
  13657. 8005856: 2200 movs r2, #0
  13658. 8005858: 761a strb r2, [r3, #24]
  13659. }
  13660. }
  13661. /* TIM Update event */
  13662. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  13663. 800585a: 687b ldr r3, [r7, #4]
  13664. 800585c: 681b ldr r3, [r3, #0]
  13665. 800585e: 691b ldr r3, [r3, #16]
  13666. 8005860: f003 0301 and.w r3, r3, #1
  13667. 8005864: 2b01 cmp r3, #1
  13668. 8005866: d10e bne.n 8005886 <HAL_TIM_IRQHandler+0x184>
  13669. {
  13670. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
  13671. 8005868: 687b ldr r3, [r7, #4]
  13672. 800586a: 681b ldr r3, [r3, #0]
  13673. 800586c: 68db ldr r3, [r3, #12]
  13674. 800586e: f003 0301 and.w r3, r3, #1
  13675. 8005872: 2b01 cmp r3, #1
  13676. 8005874: d107 bne.n 8005886 <HAL_TIM_IRQHandler+0x184>
  13677. {
  13678. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  13679. 8005876: 687b ldr r3, [r7, #4]
  13680. 8005878: 681b ldr r3, [r3, #0]
  13681. 800587a: f06f 0201 mvn.w r2, #1
  13682. 800587e: 611a str r2, [r3, #16]
  13683. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13684. htim->PeriodElapsedCallback(htim);
  13685. #else
  13686. HAL_TIM_PeriodElapsedCallback(htim);
  13687. 8005880: 6878 ldr r0, [r7, #4]
  13688. 8005882: f7fb fbc7 bl 8001014 <HAL_TIM_PeriodElapsedCallback>
  13689. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13690. }
  13691. }
  13692. /* TIM Trigger detection event */
  13693. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
  13694. 8005886: 687b ldr r3, [r7, #4]
  13695. 8005888: 681b ldr r3, [r3, #0]
  13696. 800588a: 691b ldr r3, [r3, #16]
  13697. 800588c: f003 0340 and.w r3, r3, #64 ; 0x40
  13698. 8005890: 2b40 cmp r3, #64 ; 0x40
  13699. 8005892: d10e bne.n 80058b2 <HAL_TIM_IRQHandler+0x1b0>
  13700. {
  13701. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
  13702. 8005894: 687b ldr r3, [r7, #4]
  13703. 8005896: 681b ldr r3, [r3, #0]
  13704. 8005898: 68db ldr r3, [r3, #12]
  13705. 800589a: f003 0340 and.w r3, r3, #64 ; 0x40
  13706. 800589e: 2b40 cmp r3, #64 ; 0x40
  13707. 80058a0: d107 bne.n 80058b2 <HAL_TIM_IRQHandler+0x1b0>
  13708. {
  13709. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  13710. 80058a2: 687b ldr r3, [r7, #4]
  13711. 80058a4: 681b ldr r3, [r3, #0]
  13712. 80058a6: f06f 0240 mvn.w r2, #64 ; 0x40
  13713. 80058aa: 611a str r2, [r3, #16]
  13714. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  13715. htim->TriggerCallback(htim);
  13716. #else
  13717. HAL_TIM_TriggerCallback(htim);
  13718. 80058ac: 6878 ldr r0, [r7, #4]
  13719. 80058ae: f000 f9e4 bl 8005c7a <HAL_TIM_TriggerCallback>
  13720. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  13721. }
  13722. }
  13723. }
  13724. 80058b2: bf00 nop
  13725. 80058b4: 3708 adds r7, #8
  13726. 80058b6: 46bd mov sp, r7
  13727. 80058b8: bd80 pop {r7, pc}
  13728. ...
  13729. 080058bc <HAL_TIM_PWM_ConfigChannel>:
  13730. * @retval HAL status
  13731. */
  13732. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  13733. TIM_OC_InitTypeDef *sConfig,
  13734. uint32_t Channel)
  13735. {
  13736. 80058bc: b580 push {r7, lr}
  13737. 80058be: b084 sub sp, #16
  13738. 80058c0: af00 add r7, sp, #0
  13739. 80058c2: 60f8 str r0, [r7, #12]
  13740. 80058c4: 60b9 str r1, [r7, #8]
  13741. 80058c6: 607a str r2, [r7, #4]
  13742. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  13743. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  13744. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  13745. /* Process Locked */
  13746. __HAL_LOCK(htim);
  13747. 80058c8: 68fb ldr r3, [r7, #12]
  13748. 80058ca: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  13749. 80058ce: 2b01 cmp r3, #1
  13750. 80058d0: d101 bne.n 80058d6 <HAL_TIM_PWM_ConfigChannel+0x1a>
  13751. 80058d2: 2302 movs r3, #2
  13752. 80058d4: e0ac b.n 8005a30 <HAL_TIM_PWM_ConfigChannel+0x174>
  13753. 80058d6: 68fb ldr r3, [r7, #12]
  13754. 80058d8: 2201 movs r2, #1
  13755. 80058da: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13756. 80058de: 687b ldr r3, [r7, #4]
  13757. 80058e0: 2b0c cmp r3, #12
  13758. 80058e2: f200 809f bhi.w 8005a24 <HAL_TIM_PWM_ConfigChannel+0x168>
  13759. 80058e6: a201 add r2, pc, #4 ; (adr r2, 80058ec <HAL_TIM_PWM_ConfigChannel+0x30>)
  13760. 80058e8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  13761. 80058ec: 08005921 .word 0x08005921
  13762. 80058f0: 08005a25 .word 0x08005a25
  13763. 80058f4: 08005a25 .word 0x08005a25
  13764. 80058f8: 08005a25 .word 0x08005a25
  13765. 80058fc: 08005961 .word 0x08005961
  13766. 8005900: 08005a25 .word 0x08005a25
  13767. 8005904: 08005a25 .word 0x08005a25
  13768. 8005908: 08005a25 .word 0x08005a25
  13769. 800590c: 080059a3 .word 0x080059a3
  13770. 8005910: 08005a25 .word 0x08005a25
  13771. 8005914: 08005a25 .word 0x08005a25
  13772. 8005918: 08005a25 .word 0x08005a25
  13773. 800591c: 080059e3 .word 0x080059e3
  13774. {
  13775. /* Check the parameters */
  13776. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  13777. /* Configure the Channel 1 in PWM mode */
  13778. TIM_OC1_SetConfig(htim->Instance, sConfig);
  13779. 8005920: 68fb ldr r3, [r7, #12]
  13780. 8005922: 681b ldr r3, [r3, #0]
  13781. 8005924: 68b9 ldr r1, [r7, #8]
  13782. 8005926: 4618 mov r0, r3
  13783. 8005928: f000 fa12 bl 8005d50 <TIM_OC1_SetConfig>
  13784. /* Set the Preload enable bit for channel1 */
  13785. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  13786. 800592c: 68fb ldr r3, [r7, #12]
  13787. 800592e: 681b ldr r3, [r3, #0]
  13788. 8005930: 699a ldr r2, [r3, #24]
  13789. 8005932: 68fb ldr r3, [r7, #12]
  13790. 8005934: 681b ldr r3, [r3, #0]
  13791. 8005936: f042 0208 orr.w r2, r2, #8
  13792. 800593a: 619a str r2, [r3, #24]
  13793. /* Configure the Output Fast mode */
  13794. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  13795. 800593c: 68fb ldr r3, [r7, #12]
  13796. 800593e: 681b ldr r3, [r3, #0]
  13797. 8005940: 699a ldr r2, [r3, #24]
  13798. 8005942: 68fb ldr r3, [r7, #12]
  13799. 8005944: 681b ldr r3, [r3, #0]
  13800. 8005946: f022 0204 bic.w r2, r2, #4
  13801. 800594a: 619a str r2, [r3, #24]
  13802. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  13803. 800594c: 68fb ldr r3, [r7, #12]
  13804. 800594e: 681b ldr r3, [r3, #0]
  13805. 8005950: 6999 ldr r1, [r3, #24]
  13806. 8005952: 68bb ldr r3, [r7, #8]
  13807. 8005954: 68da ldr r2, [r3, #12]
  13808. 8005956: 68fb ldr r3, [r7, #12]
  13809. 8005958: 681b ldr r3, [r3, #0]
  13810. 800595a: 430a orrs r2, r1
  13811. 800595c: 619a str r2, [r3, #24]
  13812. break;
  13813. 800595e: e062 b.n 8005a26 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13814. {
  13815. /* Check the parameters */
  13816. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  13817. /* Configure the Channel 2 in PWM mode */
  13818. TIM_OC2_SetConfig(htim->Instance, sConfig);
  13819. 8005960: 68fb ldr r3, [r7, #12]
  13820. 8005962: 681b ldr r3, [r3, #0]
  13821. 8005964: 68b9 ldr r1, [r7, #8]
  13822. 8005966: 4618 mov r0, r3
  13823. 8005968: f000 fa2e bl 8005dc8 <TIM_OC2_SetConfig>
  13824. /* Set the Preload enable bit for channel2 */
  13825. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  13826. 800596c: 68fb ldr r3, [r7, #12]
  13827. 800596e: 681b ldr r3, [r3, #0]
  13828. 8005970: 699a ldr r2, [r3, #24]
  13829. 8005972: 68fb ldr r3, [r7, #12]
  13830. 8005974: 681b ldr r3, [r3, #0]
  13831. 8005976: f442 6200 orr.w r2, r2, #2048 ; 0x800
  13832. 800597a: 619a str r2, [r3, #24]
  13833. /* Configure the Output Fast mode */
  13834. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  13835. 800597c: 68fb ldr r3, [r7, #12]
  13836. 800597e: 681b ldr r3, [r3, #0]
  13837. 8005980: 699a ldr r2, [r3, #24]
  13838. 8005982: 68fb ldr r3, [r7, #12]
  13839. 8005984: 681b ldr r3, [r3, #0]
  13840. 8005986: f422 6280 bic.w r2, r2, #1024 ; 0x400
  13841. 800598a: 619a str r2, [r3, #24]
  13842. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  13843. 800598c: 68fb ldr r3, [r7, #12]
  13844. 800598e: 681b ldr r3, [r3, #0]
  13845. 8005990: 6999 ldr r1, [r3, #24]
  13846. 8005992: 68bb ldr r3, [r7, #8]
  13847. 8005994: 68db ldr r3, [r3, #12]
  13848. 8005996: 021a lsls r2, r3, #8
  13849. 8005998: 68fb ldr r3, [r7, #12]
  13850. 800599a: 681b ldr r3, [r3, #0]
  13851. 800599c: 430a orrs r2, r1
  13852. 800599e: 619a str r2, [r3, #24]
  13853. break;
  13854. 80059a0: e041 b.n 8005a26 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13855. {
  13856. /* Check the parameters */
  13857. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  13858. /* Configure the Channel 3 in PWM mode */
  13859. TIM_OC3_SetConfig(htim->Instance, sConfig);
  13860. 80059a2: 68fb ldr r3, [r7, #12]
  13861. 80059a4: 681b ldr r3, [r3, #0]
  13862. 80059a6: 68b9 ldr r1, [r7, #8]
  13863. 80059a8: 4618 mov r0, r3
  13864. 80059aa: f000 fa4b bl 8005e44 <TIM_OC3_SetConfig>
  13865. /* Set the Preload enable bit for channel3 */
  13866. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  13867. 80059ae: 68fb ldr r3, [r7, #12]
  13868. 80059b0: 681b ldr r3, [r3, #0]
  13869. 80059b2: 69da ldr r2, [r3, #28]
  13870. 80059b4: 68fb ldr r3, [r7, #12]
  13871. 80059b6: 681b ldr r3, [r3, #0]
  13872. 80059b8: f042 0208 orr.w r2, r2, #8
  13873. 80059bc: 61da str r2, [r3, #28]
  13874. /* Configure the Output Fast mode */
  13875. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  13876. 80059be: 68fb ldr r3, [r7, #12]
  13877. 80059c0: 681b ldr r3, [r3, #0]
  13878. 80059c2: 69da ldr r2, [r3, #28]
  13879. 80059c4: 68fb ldr r3, [r7, #12]
  13880. 80059c6: 681b ldr r3, [r3, #0]
  13881. 80059c8: f022 0204 bic.w r2, r2, #4
  13882. 80059cc: 61da str r2, [r3, #28]
  13883. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  13884. 80059ce: 68fb ldr r3, [r7, #12]
  13885. 80059d0: 681b ldr r3, [r3, #0]
  13886. 80059d2: 69d9 ldr r1, [r3, #28]
  13887. 80059d4: 68bb ldr r3, [r7, #8]
  13888. 80059d6: 68da ldr r2, [r3, #12]
  13889. 80059d8: 68fb ldr r3, [r7, #12]
  13890. 80059da: 681b ldr r3, [r3, #0]
  13891. 80059dc: 430a orrs r2, r1
  13892. 80059de: 61da str r2, [r3, #28]
  13893. break;
  13894. 80059e0: e021 b.n 8005a26 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13895. {
  13896. /* Check the parameters */
  13897. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  13898. /* Configure the Channel 4 in PWM mode */
  13899. TIM_OC4_SetConfig(htim->Instance, sConfig);
  13900. 80059e2: 68fb ldr r3, [r7, #12]
  13901. 80059e4: 681b ldr r3, [r3, #0]
  13902. 80059e6: 68b9 ldr r1, [r7, #8]
  13903. 80059e8: 4618 mov r0, r3
  13904. 80059ea: f000 fa68 bl 8005ebe <TIM_OC4_SetConfig>
  13905. /* Set the Preload enable bit for channel4 */
  13906. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  13907. 80059ee: 68fb ldr r3, [r7, #12]
  13908. 80059f0: 681b ldr r3, [r3, #0]
  13909. 80059f2: 69da ldr r2, [r3, #28]
  13910. 80059f4: 68fb ldr r3, [r7, #12]
  13911. 80059f6: 681b ldr r3, [r3, #0]
  13912. 80059f8: f442 6200 orr.w r2, r2, #2048 ; 0x800
  13913. 80059fc: 61da str r2, [r3, #28]
  13914. /* Configure the Output Fast mode */
  13915. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  13916. 80059fe: 68fb ldr r3, [r7, #12]
  13917. 8005a00: 681b ldr r3, [r3, #0]
  13918. 8005a02: 69da ldr r2, [r3, #28]
  13919. 8005a04: 68fb ldr r3, [r7, #12]
  13920. 8005a06: 681b ldr r3, [r3, #0]
  13921. 8005a08: f422 6280 bic.w r2, r2, #1024 ; 0x400
  13922. 8005a0c: 61da str r2, [r3, #28]
  13923. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  13924. 8005a0e: 68fb ldr r3, [r7, #12]
  13925. 8005a10: 681b ldr r3, [r3, #0]
  13926. 8005a12: 69d9 ldr r1, [r3, #28]
  13927. 8005a14: 68bb ldr r3, [r7, #8]
  13928. 8005a16: 68db ldr r3, [r3, #12]
  13929. 8005a18: 021a lsls r2, r3, #8
  13930. 8005a1a: 68fb ldr r3, [r7, #12]
  13931. 8005a1c: 681b ldr r3, [r3, #0]
  13932. 8005a1e: 430a orrs r2, r1
  13933. 8005a20: 61da str r2, [r3, #28]
  13934. break;
  13935. 8005a22: e000 b.n 8005a26 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13936. }
  13937. default:
  13938. break;
  13939. 8005a24: bf00 nop
  13940. }
  13941. __HAL_UNLOCK(htim);
  13942. 8005a26: 68fb ldr r3, [r7, #12]
  13943. 8005a28: 2200 movs r2, #0
  13944. 8005a2a: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13945. return HAL_OK;
  13946. 8005a2e: 2300 movs r3, #0
  13947. }
  13948. 8005a30: 4618 mov r0, r3
  13949. 8005a32: 3710 adds r7, #16
  13950. 8005a34: 46bd mov sp, r7
  13951. 8005a36: bd80 pop {r7, pc}
  13952. 08005a38 <HAL_TIM_ConfigClockSource>:
  13953. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  13954. * contains the clock source information for the TIM peripheral.
  13955. * @retval HAL status
  13956. */
  13957. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig)
  13958. {
  13959. 8005a38: b580 push {r7, lr}
  13960. 8005a3a: b084 sub sp, #16
  13961. 8005a3c: af00 add r7, sp, #0
  13962. 8005a3e: 6078 str r0, [r7, #4]
  13963. 8005a40: 6039 str r1, [r7, #0]
  13964. uint32_t tmpsmcr;
  13965. /* Process Locked */
  13966. __HAL_LOCK(htim);
  13967. 8005a42: 687b ldr r3, [r7, #4]
  13968. 8005a44: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  13969. 8005a48: 2b01 cmp r3, #1
  13970. 8005a4a: d101 bne.n 8005a50 <HAL_TIM_ConfigClockSource+0x18>
  13971. 8005a4c: 2302 movs r3, #2
  13972. 8005a4e: e0b3 b.n 8005bb8 <HAL_TIM_ConfigClockSource+0x180>
  13973. 8005a50: 687b ldr r3, [r7, #4]
  13974. 8005a52: 2201 movs r2, #1
  13975. 8005a54: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13976. htim->State = HAL_TIM_STATE_BUSY;
  13977. 8005a58: 687b ldr r3, [r7, #4]
  13978. 8005a5a: 2202 movs r2, #2
  13979. 8005a5c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13980. /* Check the parameters */
  13981. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  13982. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  13983. tmpsmcr = htim->Instance->SMCR;
  13984. 8005a60: 687b ldr r3, [r7, #4]
  13985. 8005a62: 681b ldr r3, [r3, #0]
  13986. 8005a64: 689b ldr r3, [r3, #8]
  13987. 8005a66: 60fb str r3, [r7, #12]
  13988. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  13989. 8005a68: 68fb ldr r3, [r7, #12]
  13990. 8005a6a: f023 0377 bic.w r3, r3, #119 ; 0x77
  13991. 8005a6e: 60fb str r3, [r7, #12]
  13992. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  13993. 8005a70: 68fb ldr r3, [r7, #12]
  13994. 8005a72: f423 437f bic.w r3, r3, #65280 ; 0xff00
  13995. 8005a76: 60fb str r3, [r7, #12]
  13996. htim->Instance->SMCR = tmpsmcr;
  13997. 8005a78: 687b ldr r3, [r7, #4]
  13998. 8005a7a: 681b ldr r3, [r3, #0]
  13999. 8005a7c: 68fa ldr r2, [r7, #12]
  14000. 8005a7e: 609a str r2, [r3, #8]
  14001. switch (sClockSourceConfig->ClockSource)
  14002. 8005a80: 683b ldr r3, [r7, #0]
  14003. 8005a82: 681b ldr r3, [r3, #0]
  14004. 8005a84: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
  14005. 8005a88: d03e beq.n 8005b08 <HAL_TIM_ConfigClockSource+0xd0>
  14006. 8005a8a: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
  14007. 8005a8e: f200 8087 bhi.w 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14008. 8005a92: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  14009. 8005a96: f000 8085 beq.w 8005ba4 <HAL_TIM_ConfigClockSource+0x16c>
  14010. 8005a9a: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  14011. 8005a9e: d87f bhi.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14012. 8005aa0: 2b70 cmp r3, #112 ; 0x70
  14013. 8005aa2: d01a beq.n 8005ada <HAL_TIM_ConfigClockSource+0xa2>
  14014. 8005aa4: 2b70 cmp r3, #112 ; 0x70
  14015. 8005aa6: d87b bhi.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14016. 8005aa8: 2b60 cmp r3, #96 ; 0x60
  14017. 8005aaa: d050 beq.n 8005b4e <HAL_TIM_ConfigClockSource+0x116>
  14018. 8005aac: 2b60 cmp r3, #96 ; 0x60
  14019. 8005aae: d877 bhi.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14020. 8005ab0: 2b50 cmp r3, #80 ; 0x50
  14021. 8005ab2: d03c beq.n 8005b2e <HAL_TIM_ConfigClockSource+0xf6>
  14022. 8005ab4: 2b50 cmp r3, #80 ; 0x50
  14023. 8005ab6: d873 bhi.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14024. 8005ab8: 2b40 cmp r3, #64 ; 0x40
  14025. 8005aba: d058 beq.n 8005b6e <HAL_TIM_ConfigClockSource+0x136>
  14026. 8005abc: 2b40 cmp r3, #64 ; 0x40
  14027. 8005abe: d86f bhi.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14028. 8005ac0: 2b30 cmp r3, #48 ; 0x30
  14029. 8005ac2: d064 beq.n 8005b8e <HAL_TIM_ConfigClockSource+0x156>
  14030. 8005ac4: 2b30 cmp r3, #48 ; 0x30
  14031. 8005ac6: d86b bhi.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14032. 8005ac8: 2b20 cmp r3, #32
  14033. 8005aca: d060 beq.n 8005b8e <HAL_TIM_ConfigClockSource+0x156>
  14034. 8005acc: 2b20 cmp r3, #32
  14035. 8005ace: d867 bhi.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14036. 8005ad0: 2b00 cmp r3, #0
  14037. 8005ad2: d05c beq.n 8005b8e <HAL_TIM_ConfigClockSource+0x156>
  14038. 8005ad4: 2b10 cmp r3, #16
  14039. 8005ad6: d05a beq.n 8005b8e <HAL_TIM_ConfigClockSource+0x156>
  14040. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  14041. break;
  14042. }
  14043. default:
  14044. break;
  14045. 8005ad8: e062 b.n 8005ba0 <HAL_TIM_ConfigClockSource+0x168>
  14046. TIM_ETR_SetConfig(htim->Instance,
  14047. 8005ada: 687b ldr r3, [r7, #4]
  14048. 8005adc: 6818 ldr r0, [r3, #0]
  14049. 8005ade: 683b ldr r3, [r7, #0]
  14050. 8005ae0: 6899 ldr r1, [r3, #8]
  14051. 8005ae2: 683b ldr r3, [r7, #0]
  14052. 8005ae4: 685a ldr r2, [r3, #4]
  14053. 8005ae6: 683b ldr r3, [r7, #0]
  14054. 8005ae8: 68db ldr r3, [r3, #12]
  14055. 8005aea: f000 fb2b bl 8006144 <TIM_ETR_SetConfig>
  14056. tmpsmcr = htim->Instance->SMCR;
  14057. 8005aee: 687b ldr r3, [r7, #4]
  14058. 8005af0: 681b ldr r3, [r3, #0]
  14059. 8005af2: 689b ldr r3, [r3, #8]
  14060. 8005af4: 60fb str r3, [r7, #12]
  14061. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  14062. 8005af6: 68fb ldr r3, [r7, #12]
  14063. 8005af8: f043 0377 orr.w r3, r3, #119 ; 0x77
  14064. 8005afc: 60fb str r3, [r7, #12]
  14065. htim->Instance->SMCR = tmpsmcr;
  14066. 8005afe: 687b ldr r3, [r7, #4]
  14067. 8005b00: 681b ldr r3, [r3, #0]
  14068. 8005b02: 68fa ldr r2, [r7, #12]
  14069. 8005b04: 609a str r2, [r3, #8]
  14070. break;
  14071. 8005b06: e04e b.n 8005ba6 <HAL_TIM_ConfigClockSource+0x16e>
  14072. TIM_ETR_SetConfig(htim->Instance,
  14073. 8005b08: 687b ldr r3, [r7, #4]
  14074. 8005b0a: 6818 ldr r0, [r3, #0]
  14075. 8005b0c: 683b ldr r3, [r7, #0]
  14076. 8005b0e: 6899 ldr r1, [r3, #8]
  14077. 8005b10: 683b ldr r3, [r7, #0]
  14078. 8005b12: 685a ldr r2, [r3, #4]
  14079. 8005b14: 683b ldr r3, [r7, #0]
  14080. 8005b16: 68db ldr r3, [r3, #12]
  14081. 8005b18: f000 fb14 bl 8006144 <TIM_ETR_SetConfig>
  14082. htim->Instance->SMCR |= TIM_SMCR_ECE;
  14083. 8005b1c: 687b ldr r3, [r7, #4]
  14084. 8005b1e: 681b ldr r3, [r3, #0]
  14085. 8005b20: 689a ldr r2, [r3, #8]
  14086. 8005b22: 687b ldr r3, [r7, #4]
  14087. 8005b24: 681b ldr r3, [r3, #0]
  14088. 8005b26: f442 4280 orr.w r2, r2, #16384 ; 0x4000
  14089. 8005b2a: 609a str r2, [r3, #8]
  14090. break;
  14091. 8005b2c: e03b b.n 8005ba6 <HAL_TIM_ConfigClockSource+0x16e>
  14092. TIM_TI1_ConfigInputStage(htim->Instance,
  14093. 8005b2e: 687b ldr r3, [r7, #4]
  14094. 8005b30: 6818 ldr r0, [r3, #0]
  14095. 8005b32: 683b ldr r3, [r7, #0]
  14096. 8005b34: 6859 ldr r1, [r3, #4]
  14097. 8005b36: 683b ldr r3, [r7, #0]
  14098. 8005b38: 68db ldr r3, [r3, #12]
  14099. 8005b3a: 461a mov r2, r3
  14100. 8005b3c: f000 fa8b bl 8006056 <TIM_TI1_ConfigInputStage>
  14101. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  14102. 8005b40: 687b ldr r3, [r7, #4]
  14103. 8005b42: 681b ldr r3, [r3, #0]
  14104. 8005b44: 2150 movs r1, #80 ; 0x50
  14105. 8005b46: 4618 mov r0, r3
  14106. 8005b48: f000 fae2 bl 8006110 <TIM_ITRx_SetConfig>
  14107. break;
  14108. 8005b4c: e02b b.n 8005ba6 <HAL_TIM_ConfigClockSource+0x16e>
  14109. TIM_TI2_ConfigInputStage(htim->Instance,
  14110. 8005b4e: 687b ldr r3, [r7, #4]
  14111. 8005b50: 6818 ldr r0, [r3, #0]
  14112. 8005b52: 683b ldr r3, [r7, #0]
  14113. 8005b54: 6859 ldr r1, [r3, #4]
  14114. 8005b56: 683b ldr r3, [r7, #0]
  14115. 8005b58: 68db ldr r3, [r3, #12]
  14116. 8005b5a: 461a mov r2, r3
  14117. 8005b5c: f000 faa9 bl 80060b2 <TIM_TI2_ConfigInputStage>
  14118. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  14119. 8005b60: 687b ldr r3, [r7, #4]
  14120. 8005b62: 681b ldr r3, [r3, #0]
  14121. 8005b64: 2160 movs r1, #96 ; 0x60
  14122. 8005b66: 4618 mov r0, r3
  14123. 8005b68: f000 fad2 bl 8006110 <TIM_ITRx_SetConfig>
  14124. break;
  14125. 8005b6c: e01b b.n 8005ba6 <HAL_TIM_ConfigClockSource+0x16e>
  14126. TIM_TI1_ConfigInputStage(htim->Instance,
  14127. 8005b6e: 687b ldr r3, [r7, #4]
  14128. 8005b70: 6818 ldr r0, [r3, #0]
  14129. 8005b72: 683b ldr r3, [r7, #0]
  14130. 8005b74: 6859 ldr r1, [r3, #4]
  14131. 8005b76: 683b ldr r3, [r7, #0]
  14132. 8005b78: 68db ldr r3, [r3, #12]
  14133. 8005b7a: 461a mov r2, r3
  14134. 8005b7c: f000 fa6b bl 8006056 <TIM_TI1_ConfigInputStage>
  14135. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  14136. 8005b80: 687b ldr r3, [r7, #4]
  14137. 8005b82: 681b ldr r3, [r3, #0]
  14138. 8005b84: 2140 movs r1, #64 ; 0x40
  14139. 8005b86: 4618 mov r0, r3
  14140. 8005b88: f000 fac2 bl 8006110 <TIM_ITRx_SetConfig>
  14141. break;
  14142. 8005b8c: e00b b.n 8005ba6 <HAL_TIM_ConfigClockSource+0x16e>
  14143. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  14144. 8005b8e: 687b ldr r3, [r7, #4]
  14145. 8005b90: 681a ldr r2, [r3, #0]
  14146. 8005b92: 683b ldr r3, [r7, #0]
  14147. 8005b94: 681b ldr r3, [r3, #0]
  14148. 8005b96: 4619 mov r1, r3
  14149. 8005b98: 4610 mov r0, r2
  14150. 8005b9a: f000 fab9 bl 8006110 <TIM_ITRx_SetConfig>
  14151. break;
  14152. 8005b9e: e002 b.n 8005ba6 <HAL_TIM_ConfigClockSource+0x16e>
  14153. break;
  14154. 8005ba0: bf00 nop
  14155. 8005ba2: e000 b.n 8005ba6 <HAL_TIM_ConfigClockSource+0x16e>
  14156. break;
  14157. 8005ba4: bf00 nop
  14158. }
  14159. htim->State = HAL_TIM_STATE_READY;
  14160. 8005ba6: 687b ldr r3, [r7, #4]
  14161. 8005ba8: 2201 movs r2, #1
  14162. 8005baa: f883 2039 strb.w r2, [r3, #57] ; 0x39
  14163. __HAL_UNLOCK(htim);
  14164. 8005bae: 687b ldr r3, [r7, #4]
  14165. 8005bb0: 2200 movs r2, #0
  14166. 8005bb2: f883 2038 strb.w r2, [r3, #56] ; 0x38
  14167. return HAL_OK;
  14168. 8005bb6: 2300 movs r3, #0
  14169. }
  14170. 8005bb8: 4618 mov r0, r3
  14171. 8005bba: 3710 adds r7, #16
  14172. 8005bbc: 46bd mov sp, r7
  14173. 8005bbe: bd80 pop {r7, pc}
  14174. 08005bc0 <HAL_TIM_SlaveConfigSynchro>:
  14175. * timer input or external trigger input) and the Slave mode
  14176. * (Disable, Reset, Gated, Trigger, External clock mode 1).
  14177. * @retval HAL status
  14178. */
  14179. HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig)
  14180. {
  14181. 8005bc0: b580 push {r7, lr}
  14182. 8005bc2: b082 sub sp, #8
  14183. 8005bc4: af00 add r7, sp, #0
  14184. 8005bc6: 6078 str r0, [r7, #4]
  14185. 8005bc8: 6039 str r1, [r7, #0]
  14186. /* Check the parameters */
  14187. assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance));
  14188. assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode));
  14189. assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger));
  14190. __HAL_LOCK(htim);
  14191. 8005bca: 687b ldr r3, [r7, #4]
  14192. 8005bcc: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  14193. 8005bd0: 2b01 cmp r3, #1
  14194. 8005bd2: d101 bne.n 8005bd8 <HAL_TIM_SlaveConfigSynchro+0x18>
  14195. 8005bd4: 2302 movs r3, #2
  14196. 8005bd6: e031 b.n 8005c3c <HAL_TIM_SlaveConfigSynchro+0x7c>
  14197. 8005bd8: 687b ldr r3, [r7, #4]
  14198. 8005bda: 2201 movs r2, #1
  14199. 8005bdc: f883 2038 strb.w r2, [r3, #56] ; 0x38
  14200. htim->State = HAL_TIM_STATE_BUSY;
  14201. 8005be0: 687b ldr r3, [r7, #4]
  14202. 8005be2: 2202 movs r2, #2
  14203. 8005be4: f883 2039 strb.w r2, [r3, #57] ; 0x39
  14204. if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK)
  14205. 8005be8: 6839 ldr r1, [r7, #0]
  14206. 8005bea: 6878 ldr r0, [r7, #4]
  14207. 8005bec: f000 f9a5 bl 8005f3a <TIM_SlaveTimer_SetConfig>
  14208. 8005bf0: 4603 mov r3, r0
  14209. 8005bf2: 2b00 cmp r3, #0
  14210. 8005bf4: d009 beq.n 8005c0a <HAL_TIM_SlaveConfigSynchro+0x4a>
  14211. {
  14212. htim->State = HAL_TIM_STATE_READY;
  14213. 8005bf6: 687b ldr r3, [r7, #4]
  14214. 8005bf8: 2201 movs r2, #1
  14215. 8005bfa: f883 2039 strb.w r2, [r3, #57] ; 0x39
  14216. __HAL_UNLOCK(htim);
  14217. 8005bfe: 687b ldr r3, [r7, #4]
  14218. 8005c00: 2200 movs r2, #0
  14219. 8005c02: f883 2038 strb.w r2, [r3, #56] ; 0x38
  14220. return HAL_ERROR;
  14221. 8005c06: 2301 movs r3, #1
  14222. 8005c08: e018 b.n 8005c3c <HAL_TIM_SlaveConfigSynchro+0x7c>
  14223. }
  14224. /* Disable Trigger Interrupt */
  14225. __HAL_TIM_DISABLE_IT(htim, TIM_IT_TRIGGER);
  14226. 8005c0a: 687b ldr r3, [r7, #4]
  14227. 8005c0c: 681b ldr r3, [r3, #0]
  14228. 8005c0e: 68da ldr r2, [r3, #12]
  14229. 8005c10: 687b ldr r3, [r7, #4]
  14230. 8005c12: 681b ldr r3, [r3, #0]
  14231. 8005c14: f022 0240 bic.w r2, r2, #64 ; 0x40
  14232. 8005c18: 60da str r2, [r3, #12]
  14233. /* Disable Trigger DMA request */
  14234. __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER);
  14235. 8005c1a: 687b ldr r3, [r7, #4]
  14236. 8005c1c: 681b ldr r3, [r3, #0]
  14237. 8005c1e: 68da ldr r2, [r3, #12]
  14238. 8005c20: 687b ldr r3, [r7, #4]
  14239. 8005c22: 681b ldr r3, [r3, #0]
  14240. 8005c24: f422 4280 bic.w r2, r2, #16384 ; 0x4000
  14241. 8005c28: 60da str r2, [r3, #12]
  14242. htim->State = HAL_TIM_STATE_READY;
  14243. 8005c2a: 687b ldr r3, [r7, #4]
  14244. 8005c2c: 2201 movs r2, #1
  14245. 8005c2e: f883 2039 strb.w r2, [r3, #57] ; 0x39
  14246. __HAL_UNLOCK(htim);
  14247. 8005c32: 687b ldr r3, [r7, #4]
  14248. 8005c34: 2200 movs r2, #0
  14249. 8005c36: f883 2038 strb.w r2, [r3, #56] ; 0x38
  14250. return HAL_OK;
  14251. 8005c3a: 2300 movs r3, #0
  14252. }
  14253. 8005c3c: 4618 mov r0, r3
  14254. 8005c3e: 3708 adds r7, #8
  14255. 8005c40: 46bd mov sp, r7
  14256. 8005c42: bd80 pop {r7, pc}
  14257. 08005c44 <HAL_TIM_OC_DelayElapsedCallback>:
  14258. * @brief Output Compare callback in non-blocking mode
  14259. * @param htim TIM OC handle
  14260. * @retval None
  14261. */
  14262. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  14263. {
  14264. 8005c44: b480 push {r7}
  14265. 8005c46: b083 sub sp, #12
  14266. 8005c48: af00 add r7, sp, #0
  14267. 8005c4a: 6078 str r0, [r7, #4]
  14268. UNUSED(htim);
  14269. /* NOTE : This function should not be modified, when the callback is needed,
  14270. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  14271. */
  14272. }
  14273. 8005c4c: bf00 nop
  14274. 8005c4e: 370c adds r7, #12
  14275. 8005c50: 46bd mov sp, r7
  14276. 8005c52: bc80 pop {r7}
  14277. 8005c54: 4770 bx lr
  14278. 08005c56 <HAL_TIM_IC_CaptureCallback>:
  14279. * @brief Input Capture callback in non-blocking mode
  14280. * @param htim TIM IC handle
  14281. * @retval None
  14282. */
  14283. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  14284. {
  14285. 8005c56: b480 push {r7}
  14286. 8005c58: b083 sub sp, #12
  14287. 8005c5a: af00 add r7, sp, #0
  14288. 8005c5c: 6078 str r0, [r7, #4]
  14289. UNUSED(htim);
  14290. /* NOTE : This function should not be modified, when the callback is needed,
  14291. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  14292. */
  14293. }
  14294. 8005c5e: bf00 nop
  14295. 8005c60: 370c adds r7, #12
  14296. 8005c62: 46bd mov sp, r7
  14297. 8005c64: bc80 pop {r7}
  14298. 8005c66: 4770 bx lr
  14299. 08005c68 <HAL_TIM_PWM_PulseFinishedCallback>:
  14300. * @brief PWM Pulse finished callback in non-blocking mode
  14301. * @param htim TIM handle
  14302. * @retval None
  14303. */
  14304. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  14305. {
  14306. 8005c68: b480 push {r7}
  14307. 8005c6a: b083 sub sp, #12
  14308. 8005c6c: af00 add r7, sp, #0
  14309. 8005c6e: 6078 str r0, [r7, #4]
  14310. UNUSED(htim);
  14311. /* NOTE : This function should not be modified, when the callback is needed,
  14312. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  14313. */
  14314. }
  14315. 8005c70: bf00 nop
  14316. 8005c72: 370c adds r7, #12
  14317. 8005c74: 46bd mov sp, r7
  14318. 8005c76: bc80 pop {r7}
  14319. 8005c78: 4770 bx lr
  14320. 08005c7a <HAL_TIM_TriggerCallback>:
  14321. * @brief Hall Trigger detection callback in non-blocking mode
  14322. * @param htim TIM handle
  14323. * @retval None
  14324. */
  14325. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  14326. {
  14327. 8005c7a: b480 push {r7}
  14328. 8005c7c: b083 sub sp, #12
  14329. 8005c7e: af00 add r7, sp, #0
  14330. 8005c80: 6078 str r0, [r7, #4]
  14331. UNUSED(htim);
  14332. /* NOTE : This function should not be modified, when the callback is needed,
  14333. the HAL_TIM_TriggerCallback could be implemented in the user file
  14334. */
  14335. }
  14336. 8005c82: bf00 nop
  14337. 8005c84: 370c adds r7, #12
  14338. 8005c86: 46bd mov sp, r7
  14339. 8005c88: bc80 pop {r7}
  14340. 8005c8a: 4770 bx lr
  14341. 08005c8c <TIM_Base_SetConfig>:
  14342. * @param TIMx TIM peripheral
  14343. * @param Structure TIM Base configuration structure
  14344. * @retval None
  14345. */
  14346. static void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
  14347. {
  14348. 8005c8c: b480 push {r7}
  14349. 8005c8e: b085 sub sp, #20
  14350. 8005c90: af00 add r7, sp, #0
  14351. 8005c92: 6078 str r0, [r7, #4]
  14352. 8005c94: 6039 str r1, [r7, #0]
  14353. uint32_t tmpcr1;
  14354. tmpcr1 = TIMx->CR1;
  14355. 8005c96: 687b ldr r3, [r7, #4]
  14356. 8005c98: 681b ldr r3, [r3, #0]
  14357. 8005c9a: 60fb str r3, [r7, #12]
  14358. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  14359. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  14360. 8005c9c: 687b ldr r3, [r7, #4]
  14361. 8005c9e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  14362. 8005ca2: d007 beq.n 8005cb4 <TIM_Base_SetConfig+0x28>
  14363. 8005ca4: 687b ldr r3, [r7, #4]
  14364. 8005ca6: 4a25 ldr r2, [pc, #148] ; (8005d3c <TIM_Base_SetConfig+0xb0>)
  14365. 8005ca8: 4293 cmp r3, r2
  14366. 8005caa: d003 beq.n 8005cb4 <TIM_Base_SetConfig+0x28>
  14367. 8005cac: 687b ldr r3, [r7, #4]
  14368. 8005cae: 4a24 ldr r2, [pc, #144] ; (8005d40 <TIM_Base_SetConfig+0xb4>)
  14369. 8005cb0: 4293 cmp r3, r2
  14370. 8005cb2: d108 bne.n 8005cc6 <TIM_Base_SetConfig+0x3a>
  14371. {
  14372. /* Select the Counter Mode */
  14373. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  14374. 8005cb4: 68fb ldr r3, [r7, #12]
  14375. 8005cb6: f023 0370 bic.w r3, r3, #112 ; 0x70
  14376. 8005cba: 60fb str r3, [r7, #12]
  14377. tmpcr1 |= Structure->CounterMode;
  14378. 8005cbc: 683b ldr r3, [r7, #0]
  14379. 8005cbe: 685b ldr r3, [r3, #4]
  14380. 8005cc0: 68fa ldr r2, [r7, #12]
  14381. 8005cc2: 4313 orrs r3, r2
  14382. 8005cc4: 60fb str r3, [r7, #12]
  14383. }
  14384. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  14385. 8005cc6: 687b ldr r3, [r7, #4]
  14386. 8005cc8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  14387. 8005ccc: d013 beq.n 8005cf6 <TIM_Base_SetConfig+0x6a>
  14388. 8005cce: 687b ldr r3, [r7, #4]
  14389. 8005cd0: 4a1a ldr r2, [pc, #104] ; (8005d3c <TIM_Base_SetConfig+0xb0>)
  14390. 8005cd2: 4293 cmp r3, r2
  14391. 8005cd4: d00f beq.n 8005cf6 <TIM_Base_SetConfig+0x6a>
  14392. 8005cd6: 687b ldr r3, [r7, #4]
  14393. 8005cd8: 4a19 ldr r2, [pc, #100] ; (8005d40 <TIM_Base_SetConfig+0xb4>)
  14394. 8005cda: 4293 cmp r3, r2
  14395. 8005cdc: d00b beq.n 8005cf6 <TIM_Base_SetConfig+0x6a>
  14396. 8005cde: 687b ldr r3, [r7, #4]
  14397. 8005ce0: 4a18 ldr r2, [pc, #96] ; (8005d44 <TIM_Base_SetConfig+0xb8>)
  14398. 8005ce2: 4293 cmp r3, r2
  14399. 8005ce4: d007 beq.n 8005cf6 <TIM_Base_SetConfig+0x6a>
  14400. 8005ce6: 687b ldr r3, [r7, #4]
  14401. 8005ce8: 4a17 ldr r2, [pc, #92] ; (8005d48 <TIM_Base_SetConfig+0xbc>)
  14402. 8005cea: 4293 cmp r3, r2
  14403. 8005cec: d003 beq.n 8005cf6 <TIM_Base_SetConfig+0x6a>
  14404. 8005cee: 687b ldr r3, [r7, #4]
  14405. 8005cf0: 4a16 ldr r2, [pc, #88] ; (8005d4c <TIM_Base_SetConfig+0xc0>)
  14406. 8005cf2: 4293 cmp r3, r2
  14407. 8005cf4: d108 bne.n 8005d08 <TIM_Base_SetConfig+0x7c>
  14408. {
  14409. /* Set the clock division */
  14410. tmpcr1 &= ~TIM_CR1_CKD;
  14411. 8005cf6: 68fb ldr r3, [r7, #12]
  14412. 8005cf8: f423 7340 bic.w r3, r3, #768 ; 0x300
  14413. 8005cfc: 60fb str r3, [r7, #12]
  14414. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  14415. 8005cfe: 683b ldr r3, [r7, #0]
  14416. 8005d00: 68db ldr r3, [r3, #12]
  14417. 8005d02: 68fa ldr r2, [r7, #12]
  14418. 8005d04: 4313 orrs r3, r2
  14419. 8005d06: 60fb str r3, [r7, #12]
  14420. }
  14421. /* Set the auto-reload preload */
  14422. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  14423. 8005d08: 68fb ldr r3, [r7, #12]
  14424. 8005d0a: f023 0280 bic.w r2, r3, #128 ; 0x80
  14425. 8005d0e: 683b ldr r3, [r7, #0]
  14426. 8005d10: 691b ldr r3, [r3, #16]
  14427. 8005d12: 4313 orrs r3, r2
  14428. 8005d14: 60fb str r3, [r7, #12]
  14429. TIMx->CR1 = tmpcr1;
  14430. 8005d16: 687b ldr r3, [r7, #4]
  14431. 8005d18: 68fa ldr r2, [r7, #12]
  14432. 8005d1a: 601a str r2, [r3, #0]
  14433. /* Set the Autoreload value */
  14434. TIMx->ARR = (uint32_t)Structure->Period ;
  14435. 8005d1c: 683b ldr r3, [r7, #0]
  14436. 8005d1e: 689a ldr r2, [r3, #8]
  14437. 8005d20: 687b ldr r3, [r7, #4]
  14438. 8005d22: 62da str r2, [r3, #44] ; 0x2c
  14439. /* Set the Prescaler value */
  14440. TIMx->PSC = Structure->Prescaler;
  14441. 8005d24: 683b ldr r3, [r7, #0]
  14442. 8005d26: 681a ldr r2, [r3, #0]
  14443. 8005d28: 687b ldr r3, [r7, #4]
  14444. 8005d2a: 629a str r2, [r3, #40] ; 0x28
  14445. /* Generate an update event to reload the Prescaler
  14446. and the repetition counter (only for advanced timer) value immediately */
  14447. TIMx->EGR = TIM_EGR_UG;
  14448. 8005d2c: 687b ldr r3, [r7, #4]
  14449. 8005d2e: 2201 movs r2, #1
  14450. 8005d30: 615a str r2, [r3, #20]
  14451. }
  14452. 8005d32: bf00 nop
  14453. 8005d34: 3714 adds r7, #20
  14454. 8005d36: 46bd mov sp, r7
  14455. 8005d38: bc80 pop {r7}
  14456. 8005d3a: 4770 bx lr
  14457. 8005d3c: 40000400 .word 0x40000400
  14458. 8005d40: 40000800 .word 0x40000800
  14459. 8005d44: 40010800 .word 0x40010800
  14460. 8005d48: 40010c00 .word 0x40010c00
  14461. 8005d4c: 40011000 .word 0x40011000
  14462. 08005d50 <TIM_OC1_SetConfig>:
  14463. * @param TIMx to select the TIM peripheral
  14464. * @param OC_Config The output configuration structure
  14465. * @retval None
  14466. */
  14467. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  14468. {
  14469. 8005d50: b480 push {r7}
  14470. 8005d52: b087 sub sp, #28
  14471. 8005d54: af00 add r7, sp, #0
  14472. 8005d56: 6078 str r0, [r7, #4]
  14473. 8005d58: 6039 str r1, [r7, #0]
  14474. uint32_t tmpccmrx;
  14475. uint32_t tmpccer;
  14476. uint32_t tmpcr2;
  14477. /* Disable the Channel 1: Reset the CC1E Bit */
  14478. TIMx->CCER &= ~TIM_CCER_CC1E;
  14479. 8005d5a: 687b ldr r3, [r7, #4]
  14480. 8005d5c: 6a1b ldr r3, [r3, #32]
  14481. 8005d5e: f023 0201 bic.w r2, r3, #1
  14482. 8005d62: 687b ldr r3, [r7, #4]
  14483. 8005d64: 621a str r2, [r3, #32]
  14484. /* Get the TIMx CCER register value */
  14485. tmpccer = TIMx->CCER;
  14486. 8005d66: 687b ldr r3, [r7, #4]
  14487. 8005d68: 6a1b ldr r3, [r3, #32]
  14488. 8005d6a: 617b str r3, [r7, #20]
  14489. /* Get the TIMx CR2 register value */
  14490. tmpcr2 = TIMx->CR2;
  14491. 8005d6c: 687b ldr r3, [r7, #4]
  14492. 8005d6e: 685b ldr r3, [r3, #4]
  14493. 8005d70: 613b str r3, [r7, #16]
  14494. /* Get the TIMx CCMR1 register value */
  14495. tmpccmrx = TIMx->CCMR1;
  14496. 8005d72: 687b ldr r3, [r7, #4]
  14497. 8005d74: 699b ldr r3, [r3, #24]
  14498. 8005d76: 60fb str r3, [r7, #12]
  14499. /* Reset the Output Compare Mode Bits */
  14500. tmpccmrx &= ~TIM_CCMR1_OC1M;
  14501. 8005d78: 68fb ldr r3, [r7, #12]
  14502. 8005d7a: f023 0370 bic.w r3, r3, #112 ; 0x70
  14503. 8005d7e: 60fb str r3, [r7, #12]
  14504. tmpccmrx &= ~TIM_CCMR1_CC1S;
  14505. 8005d80: 68fb ldr r3, [r7, #12]
  14506. 8005d82: f023 0303 bic.w r3, r3, #3
  14507. 8005d86: 60fb str r3, [r7, #12]
  14508. /* Select the Output Compare Mode */
  14509. tmpccmrx |= OC_Config->OCMode;
  14510. 8005d88: 683b ldr r3, [r7, #0]
  14511. 8005d8a: 681b ldr r3, [r3, #0]
  14512. 8005d8c: 68fa ldr r2, [r7, #12]
  14513. 8005d8e: 4313 orrs r3, r2
  14514. 8005d90: 60fb str r3, [r7, #12]
  14515. /* Reset the Output Polarity level */
  14516. tmpccer &= ~TIM_CCER_CC1P;
  14517. 8005d92: 697b ldr r3, [r7, #20]
  14518. 8005d94: f023 0302 bic.w r3, r3, #2
  14519. 8005d98: 617b str r3, [r7, #20]
  14520. /* Set the Output Compare Polarity */
  14521. tmpccer |= OC_Config->OCPolarity;
  14522. 8005d9a: 683b ldr r3, [r7, #0]
  14523. 8005d9c: 689b ldr r3, [r3, #8]
  14524. 8005d9e: 697a ldr r2, [r7, #20]
  14525. 8005da0: 4313 orrs r3, r2
  14526. 8005da2: 617b str r3, [r7, #20]
  14527. /* Write to TIMx CR2 */
  14528. TIMx->CR2 = tmpcr2;
  14529. 8005da4: 687b ldr r3, [r7, #4]
  14530. 8005da6: 693a ldr r2, [r7, #16]
  14531. 8005da8: 605a str r2, [r3, #4]
  14532. /* Write to TIMx CCMR1 */
  14533. TIMx->CCMR1 = tmpccmrx;
  14534. 8005daa: 687b ldr r3, [r7, #4]
  14535. 8005dac: 68fa ldr r2, [r7, #12]
  14536. 8005dae: 619a str r2, [r3, #24]
  14537. /* Set the Capture Compare Register value */
  14538. TIMx->CCR1 = OC_Config->Pulse;
  14539. 8005db0: 683b ldr r3, [r7, #0]
  14540. 8005db2: 685a ldr r2, [r3, #4]
  14541. 8005db4: 687b ldr r3, [r7, #4]
  14542. 8005db6: 635a str r2, [r3, #52] ; 0x34
  14543. /* Write to TIMx CCER */
  14544. TIMx->CCER = tmpccer;
  14545. 8005db8: 687b ldr r3, [r7, #4]
  14546. 8005dba: 697a ldr r2, [r7, #20]
  14547. 8005dbc: 621a str r2, [r3, #32]
  14548. }
  14549. 8005dbe: bf00 nop
  14550. 8005dc0: 371c adds r7, #28
  14551. 8005dc2: 46bd mov sp, r7
  14552. 8005dc4: bc80 pop {r7}
  14553. 8005dc6: 4770 bx lr
  14554. 08005dc8 <TIM_OC2_SetConfig>:
  14555. * @param TIMx to select the TIM peripheral
  14556. * @param OC_Config The output configuration structure
  14557. * @retval None
  14558. */
  14559. static void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  14560. {
  14561. 8005dc8: b480 push {r7}
  14562. 8005dca: b087 sub sp, #28
  14563. 8005dcc: af00 add r7, sp, #0
  14564. 8005dce: 6078 str r0, [r7, #4]
  14565. 8005dd0: 6039 str r1, [r7, #0]
  14566. uint32_t tmpccmrx;
  14567. uint32_t tmpccer;
  14568. uint32_t tmpcr2;
  14569. /* Disable the Channel 2: Reset the CC2E Bit */
  14570. TIMx->CCER &= ~TIM_CCER_CC2E;
  14571. 8005dd2: 687b ldr r3, [r7, #4]
  14572. 8005dd4: 6a1b ldr r3, [r3, #32]
  14573. 8005dd6: f023 0210 bic.w r2, r3, #16
  14574. 8005dda: 687b ldr r3, [r7, #4]
  14575. 8005ddc: 621a str r2, [r3, #32]
  14576. /* Get the TIMx CCER register value */
  14577. tmpccer = TIMx->CCER;
  14578. 8005dde: 687b ldr r3, [r7, #4]
  14579. 8005de0: 6a1b ldr r3, [r3, #32]
  14580. 8005de2: 617b str r3, [r7, #20]
  14581. /* Get the TIMx CR2 register value */
  14582. tmpcr2 = TIMx->CR2;
  14583. 8005de4: 687b ldr r3, [r7, #4]
  14584. 8005de6: 685b ldr r3, [r3, #4]
  14585. 8005de8: 613b str r3, [r7, #16]
  14586. /* Get the TIMx CCMR1 register value */
  14587. tmpccmrx = TIMx->CCMR1;
  14588. 8005dea: 687b ldr r3, [r7, #4]
  14589. 8005dec: 699b ldr r3, [r3, #24]
  14590. 8005dee: 60fb str r3, [r7, #12]
  14591. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  14592. tmpccmrx &= ~TIM_CCMR1_OC2M;
  14593. 8005df0: 68fb ldr r3, [r7, #12]
  14594. 8005df2: f423 43e0 bic.w r3, r3, #28672 ; 0x7000
  14595. 8005df6: 60fb str r3, [r7, #12]
  14596. tmpccmrx &= ~TIM_CCMR1_CC2S;
  14597. 8005df8: 68fb ldr r3, [r7, #12]
  14598. 8005dfa: f423 7340 bic.w r3, r3, #768 ; 0x300
  14599. 8005dfe: 60fb str r3, [r7, #12]
  14600. /* Select the Output Compare Mode */
  14601. tmpccmrx |= (OC_Config->OCMode << 8U);
  14602. 8005e00: 683b ldr r3, [r7, #0]
  14603. 8005e02: 681b ldr r3, [r3, #0]
  14604. 8005e04: 021b lsls r3, r3, #8
  14605. 8005e06: 68fa ldr r2, [r7, #12]
  14606. 8005e08: 4313 orrs r3, r2
  14607. 8005e0a: 60fb str r3, [r7, #12]
  14608. /* Reset the Output Polarity level */
  14609. tmpccer &= ~TIM_CCER_CC2P;
  14610. 8005e0c: 697b ldr r3, [r7, #20]
  14611. 8005e0e: f023 0320 bic.w r3, r3, #32
  14612. 8005e12: 617b str r3, [r7, #20]
  14613. /* Set the Output Compare Polarity */
  14614. tmpccer |= (OC_Config->OCPolarity << 4U);
  14615. 8005e14: 683b ldr r3, [r7, #0]
  14616. 8005e16: 689b ldr r3, [r3, #8]
  14617. 8005e18: 011b lsls r3, r3, #4
  14618. 8005e1a: 697a ldr r2, [r7, #20]
  14619. 8005e1c: 4313 orrs r3, r2
  14620. 8005e1e: 617b str r3, [r7, #20]
  14621. /* Write to TIMx CR2 */
  14622. TIMx->CR2 = tmpcr2;
  14623. 8005e20: 687b ldr r3, [r7, #4]
  14624. 8005e22: 693a ldr r2, [r7, #16]
  14625. 8005e24: 605a str r2, [r3, #4]
  14626. /* Write to TIMx CCMR1 */
  14627. TIMx->CCMR1 = tmpccmrx;
  14628. 8005e26: 687b ldr r3, [r7, #4]
  14629. 8005e28: 68fa ldr r2, [r7, #12]
  14630. 8005e2a: 619a str r2, [r3, #24]
  14631. /* Set the Capture Compare Register value */
  14632. TIMx->CCR2 = OC_Config->Pulse;
  14633. 8005e2c: 683b ldr r3, [r7, #0]
  14634. 8005e2e: 685a ldr r2, [r3, #4]
  14635. 8005e30: 687b ldr r3, [r7, #4]
  14636. 8005e32: 639a str r2, [r3, #56] ; 0x38
  14637. /* Write to TIMx CCER */
  14638. TIMx->CCER = tmpccer;
  14639. 8005e34: 687b ldr r3, [r7, #4]
  14640. 8005e36: 697a ldr r2, [r7, #20]
  14641. 8005e38: 621a str r2, [r3, #32]
  14642. }
  14643. 8005e3a: bf00 nop
  14644. 8005e3c: 371c adds r7, #28
  14645. 8005e3e: 46bd mov sp, r7
  14646. 8005e40: bc80 pop {r7}
  14647. 8005e42: 4770 bx lr
  14648. 08005e44 <TIM_OC3_SetConfig>:
  14649. * @param TIMx to select the TIM peripheral
  14650. * @param OC_Config The output configuration structure
  14651. * @retval None
  14652. */
  14653. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  14654. {
  14655. 8005e44: b480 push {r7}
  14656. 8005e46: b087 sub sp, #28
  14657. 8005e48: af00 add r7, sp, #0
  14658. 8005e4a: 6078 str r0, [r7, #4]
  14659. 8005e4c: 6039 str r1, [r7, #0]
  14660. uint32_t tmpccmrx;
  14661. uint32_t tmpccer;
  14662. uint32_t tmpcr2;
  14663. /* Disable the Channel 3: Reset the CC2E Bit */
  14664. TIMx->CCER &= ~TIM_CCER_CC3E;
  14665. 8005e4e: 687b ldr r3, [r7, #4]
  14666. 8005e50: 6a1b ldr r3, [r3, #32]
  14667. 8005e52: f423 7280 bic.w r2, r3, #256 ; 0x100
  14668. 8005e56: 687b ldr r3, [r7, #4]
  14669. 8005e58: 621a str r2, [r3, #32]
  14670. /* Get the TIMx CCER register value */
  14671. tmpccer = TIMx->CCER;
  14672. 8005e5a: 687b ldr r3, [r7, #4]
  14673. 8005e5c: 6a1b ldr r3, [r3, #32]
  14674. 8005e5e: 617b str r3, [r7, #20]
  14675. /* Get the TIMx CR2 register value */
  14676. tmpcr2 = TIMx->CR2;
  14677. 8005e60: 687b ldr r3, [r7, #4]
  14678. 8005e62: 685b ldr r3, [r3, #4]
  14679. 8005e64: 613b str r3, [r7, #16]
  14680. /* Get the TIMx CCMR2 register value */
  14681. tmpccmrx = TIMx->CCMR2;
  14682. 8005e66: 687b ldr r3, [r7, #4]
  14683. 8005e68: 69db ldr r3, [r3, #28]
  14684. 8005e6a: 60fb str r3, [r7, #12]
  14685. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  14686. tmpccmrx &= ~TIM_CCMR2_OC3M;
  14687. 8005e6c: 68fb ldr r3, [r7, #12]
  14688. 8005e6e: f023 0370 bic.w r3, r3, #112 ; 0x70
  14689. 8005e72: 60fb str r3, [r7, #12]
  14690. tmpccmrx &= ~TIM_CCMR2_CC3S;
  14691. 8005e74: 68fb ldr r3, [r7, #12]
  14692. 8005e76: f023 0303 bic.w r3, r3, #3
  14693. 8005e7a: 60fb str r3, [r7, #12]
  14694. /* Select the Output Compare Mode */
  14695. tmpccmrx |= OC_Config->OCMode;
  14696. 8005e7c: 683b ldr r3, [r7, #0]
  14697. 8005e7e: 681b ldr r3, [r3, #0]
  14698. 8005e80: 68fa ldr r2, [r7, #12]
  14699. 8005e82: 4313 orrs r3, r2
  14700. 8005e84: 60fb str r3, [r7, #12]
  14701. /* Reset the Output Polarity level */
  14702. tmpccer &= ~TIM_CCER_CC3P;
  14703. 8005e86: 697b ldr r3, [r7, #20]
  14704. 8005e88: f423 7300 bic.w r3, r3, #512 ; 0x200
  14705. 8005e8c: 617b str r3, [r7, #20]
  14706. /* Set the Output Compare Polarity */
  14707. tmpccer |= (OC_Config->OCPolarity << 8U);
  14708. 8005e8e: 683b ldr r3, [r7, #0]
  14709. 8005e90: 689b ldr r3, [r3, #8]
  14710. 8005e92: 021b lsls r3, r3, #8
  14711. 8005e94: 697a ldr r2, [r7, #20]
  14712. 8005e96: 4313 orrs r3, r2
  14713. 8005e98: 617b str r3, [r7, #20]
  14714. /* Write to TIMx CR2 */
  14715. TIMx->CR2 = tmpcr2;
  14716. 8005e9a: 687b ldr r3, [r7, #4]
  14717. 8005e9c: 693a ldr r2, [r7, #16]
  14718. 8005e9e: 605a str r2, [r3, #4]
  14719. /* Write to TIMx CCMR2 */
  14720. TIMx->CCMR2 = tmpccmrx;
  14721. 8005ea0: 687b ldr r3, [r7, #4]
  14722. 8005ea2: 68fa ldr r2, [r7, #12]
  14723. 8005ea4: 61da str r2, [r3, #28]
  14724. /* Set the Capture Compare Register value */
  14725. TIMx->CCR3 = OC_Config->Pulse;
  14726. 8005ea6: 683b ldr r3, [r7, #0]
  14727. 8005ea8: 685a ldr r2, [r3, #4]
  14728. 8005eaa: 687b ldr r3, [r7, #4]
  14729. 8005eac: 63da str r2, [r3, #60] ; 0x3c
  14730. /* Write to TIMx CCER */
  14731. TIMx->CCER = tmpccer;
  14732. 8005eae: 687b ldr r3, [r7, #4]
  14733. 8005eb0: 697a ldr r2, [r7, #20]
  14734. 8005eb2: 621a str r2, [r3, #32]
  14735. }
  14736. 8005eb4: bf00 nop
  14737. 8005eb6: 371c adds r7, #28
  14738. 8005eb8: 46bd mov sp, r7
  14739. 8005eba: bc80 pop {r7}
  14740. 8005ebc: 4770 bx lr
  14741. 08005ebe <TIM_OC4_SetConfig>:
  14742. * @param TIMx to select the TIM peripheral
  14743. * @param OC_Config The output configuration structure
  14744. * @retval None
  14745. */
  14746. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  14747. {
  14748. 8005ebe: b480 push {r7}
  14749. 8005ec0: b087 sub sp, #28
  14750. 8005ec2: af00 add r7, sp, #0
  14751. 8005ec4: 6078 str r0, [r7, #4]
  14752. 8005ec6: 6039 str r1, [r7, #0]
  14753. uint32_t tmpccmrx;
  14754. uint32_t tmpccer;
  14755. uint32_t tmpcr2;
  14756. /* Disable the Channel 4: Reset the CC4E Bit */
  14757. TIMx->CCER &= ~TIM_CCER_CC4E;
  14758. 8005ec8: 687b ldr r3, [r7, #4]
  14759. 8005eca: 6a1b ldr r3, [r3, #32]
  14760. 8005ecc: f423 5280 bic.w r2, r3, #4096 ; 0x1000
  14761. 8005ed0: 687b ldr r3, [r7, #4]
  14762. 8005ed2: 621a str r2, [r3, #32]
  14763. /* Get the TIMx CCER register value */
  14764. tmpccer = TIMx->CCER;
  14765. 8005ed4: 687b ldr r3, [r7, #4]
  14766. 8005ed6: 6a1b ldr r3, [r3, #32]
  14767. 8005ed8: 617b str r3, [r7, #20]
  14768. /* Get the TIMx CR2 register value */
  14769. tmpcr2 = TIMx->CR2;
  14770. 8005eda: 687b ldr r3, [r7, #4]
  14771. 8005edc: 685b ldr r3, [r3, #4]
  14772. 8005ede: 613b str r3, [r7, #16]
  14773. /* Get the TIMx CCMR2 register value */
  14774. tmpccmrx = TIMx->CCMR2;
  14775. 8005ee0: 687b ldr r3, [r7, #4]
  14776. 8005ee2: 69db ldr r3, [r3, #28]
  14777. 8005ee4: 60fb str r3, [r7, #12]
  14778. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  14779. tmpccmrx &= ~TIM_CCMR2_OC4M;
  14780. 8005ee6: 68fb ldr r3, [r7, #12]
  14781. 8005ee8: f423 43e0 bic.w r3, r3, #28672 ; 0x7000
  14782. 8005eec: 60fb str r3, [r7, #12]
  14783. tmpccmrx &= ~TIM_CCMR2_CC4S;
  14784. 8005eee: 68fb ldr r3, [r7, #12]
  14785. 8005ef0: f423 7340 bic.w r3, r3, #768 ; 0x300
  14786. 8005ef4: 60fb str r3, [r7, #12]
  14787. /* Select the Output Compare Mode */
  14788. tmpccmrx |= (OC_Config->OCMode << 8U);
  14789. 8005ef6: 683b ldr r3, [r7, #0]
  14790. 8005ef8: 681b ldr r3, [r3, #0]
  14791. 8005efa: 021b lsls r3, r3, #8
  14792. 8005efc: 68fa ldr r2, [r7, #12]
  14793. 8005efe: 4313 orrs r3, r2
  14794. 8005f00: 60fb str r3, [r7, #12]
  14795. /* Reset the Output Polarity level */
  14796. tmpccer &= ~TIM_CCER_CC4P;
  14797. 8005f02: 697b ldr r3, [r7, #20]
  14798. 8005f04: f423 5300 bic.w r3, r3, #8192 ; 0x2000
  14799. 8005f08: 617b str r3, [r7, #20]
  14800. /* Set the Output Compare Polarity */
  14801. tmpccer |= (OC_Config->OCPolarity << 12U);
  14802. 8005f0a: 683b ldr r3, [r7, #0]
  14803. 8005f0c: 689b ldr r3, [r3, #8]
  14804. 8005f0e: 031b lsls r3, r3, #12
  14805. 8005f10: 697a ldr r2, [r7, #20]
  14806. 8005f12: 4313 orrs r3, r2
  14807. 8005f14: 617b str r3, [r7, #20]
  14808. /* Write to TIMx CR2 */
  14809. TIMx->CR2 = tmpcr2;
  14810. 8005f16: 687b ldr r3, [r7, #4]
  14811. 8005f18: 693a ldr r2, [r7, #16]
  14812. 8005f1a: 605a str r2, [r3, #4]
  14813. /* Write to TIMx CCMR2 */
  14814. TIMx->CCMR2 = tmpccmrx;
  14815. 8005f1c: 687b ldr r3, [r7, #4]
  14816. 8005f1e: 68fa ldr r2, [r7, #12]
  14817. 8005f20: 61da str r2, [r3, #28]
  14818. /* Set the Capture Compare Register value */
  14819. TIMx->CCR4 = OC_Config->Pulse;
  14820. 8005f22: 683b ldr r3, [r7, #0]
  14821. 8005f24: 685a ldr r2, [r3, #4]
  14822. 8005f26: 687b ldr r3, [r7, #4]
  14823. 8005f28: 641a str r2, [r3, #64] ; 0x40
  14824. /* Write to TIMx CCER */
  14825. TIMx->CCER = tmpccer;
  14826. 8005f2a: 687b ldr r3, [r7, #4]
  14827. 8005f2c: 697a ldr r2, [r7, #20]
  14828. 8005f2e: 621a str r2, [r3, #32]
  14829. }
  14830. 8005f30: bf00 nop
  14831. 8005f32: 371c adds r7, #28
  14832. 8005f34: 46bd mov sp, r7
  14833. 8005f36: bc80 pop {r7}
  14834. 8005f38: 4770 bx lr
  14835. 08005f3a <TIM_SlaveTimer_SetConfig>:
  14836. * @param sSlaveConfig Slave timer configuration
  14837. * @retval None
  14838. */
  14839. static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim,
  14840. TIM_SlaveConfigTypeDef *sSlaveConfig)
  14841. {
  14842. 8005f3a: b580 push {r7, lr}
  14843. 8005f3c: b086 sub sp, #24
  14844. 8005f3e: af00 add r7, sp, #0
  14845. 8005f40: 6078 str r0, [r7, #4]
  14846. 8005f42: 6039 str r1, [r7, #0]
  14847. uint32_t tmpsmcr;
  14848. uint32_t tmpccmr1;
  14849. uint32_t tmpccer;
  14850. /* Get the TIMx SMCR register value */
  14851. tmpsmcr = htim->Instance->SMCR;
  14852. 8005f44: 687b ldr r3, [r7, #4]
  14853. 8005f46: 681b ldr r3, [r3, #0]
  14854. 8005f48: 689b ldr r3, [r3, #8]
  14855. 8005f4a: 617b str r3, [r7, #20]
  14856. /* Reset the Trigger Selection Bits */
  14857. tmpsmcr &= ~TIM_SMCR_TS;
  14858. 8005f4c: 697b ldr r3, [r7, #20]
  14859. 8005f4e: f023 0370 bic.w r3, r3, #112 ; 0x70
  14860. 8005f52: 617b str r3, [r7, #20]
  14861. /* Set the Input Trigger source */
  14862. tmpsmcr |= sSlaveConfig->InputTrigger;
  14863. 8005f54: 683b ldr r3, [r7, #0]
  14864. 8005f56: 685b ldr r3, [r3, #4]
  14865. 8005f58: 697a ldr r2, [r7, #20]
  14866. 8005f5a: 4313 orrs r3, r2
  14867. 8005f5c: 617b str r3, [r7, #20]
  14868. /* Reset the slave mode Bits */
  14869. tmpsmcr &= ~TIM_SMCR_SMS;
  14870. 8005f5e: 697b ldr r3, [r7, #20]
  14871. 8005f60: f023 0307 bic.w r3, r3, #7
  14872. 8005f64: 617b str r3, [r7, #20]
  14873. /* Set the slave mode */
  14874. tmpsmcr |= sSlaveConfig->SlaveMode;
  14875. 8005f66: 683b ldr r3, [r7, #0]
  14876. 8005f68: 681b ldr r3, [r3, #0]
  14877. 8005f6a: 697a ldr r2, [r7, #20]
  14878. 8005f6c: 4313 orrs r3, r2
  14879. 8005f6e: 617b str r3, [r7, #20]
  14880. /* Write to TIMx SMCR */
  14881. htim->Instance->SMCR = tmpsmcr;
  14882. 8005f70: 687b ldr r3, [r7, #4]
  14883. 8005f72: 681b ldr r3, [r3, #0]
  14884. 8005f74: 697a ldr r2, [r7, #20]
  14885. 8005f76: 609a str r2, [r3, #8]
  14886. /* Configure the trigger prescaler, filter, and polarity */
  14887. switch (sSlaveConfig->InputTrigger)
  14888. 8005f78: 683b ldr r3, [r7, #0]
  14889. 8005f7a: 685b ldr r3, [r3, #4]
  14890. 8005f7c: 2b70 cmp r3, #112 ; 0x70
  14891. 8005f7e: d01a beq.n 8005fb6 <TIM_SlaveTimer_SetConfig+0x7c>
  14892. 8005f80: 2b70 cmp r3, #112 ; 0x70
  14893. 8005f82: d860 bhi.n 8006046 <TIM_SlaveTimer_SetConfig+0x10c>
  14894. 8005f84: 2b60 cmp r3, #96 ; 0x60
  14895. 8005f86: d054 beq.n 8006032 <TIM_SlaveTimer_SetConfig+0xf8>
  14896. 8005f88: 2b60 cmp r3, #96 ; 0x60
  14897. 8005f8a: d85c bhi.n 8006046 <TIM_SlaveTimer_SetConfig+0x10c>
  14898. 8005f8c: 2b50 cmp r3, #80 ; 0x50
  14899. 8005f8e: d046 beq.n 800601e <TIM_SlaveTimer_SetConfig+0xe4>
  14900. 8005f90: 2b50 cmp r3, #80 ; 0x50
  14901. 8005f92: d858 bhi.n 8006046 <TIM_SlaveTimer_SetConfig+0x10c>
  14902. 8005f94: 2b40 cmp r3, #64 ; 0x40
  14903. 8005f96: d019 beq.n 8005fcc <TIM_SlaveTimer_SetConfig+0x92>
  14904. 8005f98: 2b40 cmp r3, #64 ; 0x40
  14905. 8005f9a: d854 bhi.n 8006046 <TIM_SlaveTimer_SetConfig+0x10c>
  14906. 8005f9c: 2b30 cmp r3, #48 ; 0x30
  14907. 8005f9e: d054 beq.n 800604a <TIM_SlaveTimer_SetConfig+0x110>
  14908. 8005fa0: 2b30 cmp r3, #48 ; 0x30
  14909. 8005fa2: d850 bhi.n 8006046 <TIM_SlaveTimer_SetConfig+0x10c>
  14910. 8005fa4: 2b20 cmp r3, #32
  14911. 8005fa6: d050 beq.n 800604a <TIM_SlaveTimer_SetConfig+0x110>
  14912. 8005fa8: 2b20 cmp r3, #32
  14913. 8005faa: d84c bhi.n 8006046 <TIM_SlaveTimer_SetConfig+0x10c>
  14914. 8005fac: 2b00 cmp r3, #0
  14915. 8005fae: d04c beq.n 800604a <TIM_SlaveTimer_SetConfig+0x110>
  14916. 8005fb0: 2b10 cmp r3, #16
  14917. 8005fb2: d04a beq.n 800604a <TIM_SlaveTimer_SetConfig+0x110>
  14918. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  14919. break;
  14920. }
  14921. default:
  14922. break;
  14923. 8005fb4: e047 b.n 8006046 <TIM_SlaveTimer_SetConfig+0x10c>
  14924. TIM_ETR_SetConfig(htim->Instance,
  14925. 8005fb6: 687b ldr r3, [r7, #4]
  14926. 8005fb8: 6818 ldr r0, [r3, #0]
  14927. 8005fba: 683b ldr r3, [r7, #0]
  14928. 8005fbc: 68d9 ldr r1, [r3, #12]
  14929. 8005fbe: 683b ldr r3, [r7, #0]
  14930. 8005fc0: 689a ldr r2, [r3, #8]
  14931. 8005fc2: 683b ldr r3, [r7, #0]
  14932. 8005fc4: 691b ldr r3, [r3, #16]
  14933. 8005fc6: f000 f8bd bl 8006144 <TIM_ETR_SetConfig>
  14934. break;
  14935. 8005fca: e03f b.n 800604c <TIM_SlaveTimer_SetConfig+0x112>
  14936. if (sSlaveConfig->SlaveMode == TIM_SLAVEMODE_GATED)
  14937. 8005fcc: 683b ldr r3, [r7, #0]
  14938. 8005fce: 681b ldr r3, [r3, #0]
  14939. 8005fd0: 2b05 cmp r3, #5
  14940. 8005fd2: d101 bne.n 8005fd8 <TIM_SlaveTimer_SetConfig+0x9e>
  14941. return HAL_ERROR;
  14942. 8005fd4: 2301 movs r3, #1
  14943. 8005fd6: e03a b.n 800604e <TIM_SlaveTimer_SetConfig+0x114>
  14944. tmpccer = htim->Instance->CCER;
  14945. 8005fd8: 687b ldr r3, [r7, #4]
  14946. 8005fda: 681b ldr r3, [r3, #0]
  14947. 8005fdc: 6a1b ldr r3, [r3, #32]
  14948. 8005fde: 613b str r3, [r7, #16]
  14949. htim->Instance->CCER &= ~TIM_CCER_CC1E;
  14950. 8005fe0: 687b ldr r3, [r7, #4]
  14951. 8005fe2: 681b ldr r3, [r3, #0]
  14952. 8005fe4: 6a1a ldr r2, [r3, #32]
  14953. 8005fe6: 687b ldr r3, [r7, #4]
  14954. 8005fe8: 681b ldr r3, [r3, #0]
  14955. 8005fea: f022 0201 bic.w r2, r2, #1
  14956. 8005fee: 621a str r2, [r3, #32]
  14957. tmpccmr1 = htim->Instance->CCMR1;
  14958. 8005ff0: 687b ldr r3, [r7, #4]
  14959. 8005ff2: 681b ldr r3, [r3, #0]
  14960. 8005ff4: 699b ldr r3, [r3, #24]
  14961. 8005ff6: 60fb str r3, [r7, #12]
  14962. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  14963. 8005ff8: 68fb ldr r3, [r7, #12]
  14964. 8005ffa: f023 03f0 bic.w r3, r3, #240 ; 0xf0
  14965. 8005ffe: 60fb str r3, [r7, #12]
  14966. tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U);
  14967. 8006000: 683b ldr r3, [r7, #0]
  14968. 8006002: 691b ldr r3, [r3, #16]
  14969. 8006004: 011b lsls r3, r3, #4
  14970. 8006006: 68fa ldr r2, [r7, #12]
  14971. 8006008: 4313 orrs r3, r2
  14972. 800600a: 60fb str r3, [r7, #12]
  14973. htim->Instance->CCMR1 = tmpccmr1;
  14974. 800600c: 687b ldr r3, [r7, #4]
  14975. 800600e: 681b ldr r3, [r3, #0]
  14976. 8006010: 68fa ldr r2, [r7, #12]
  14977. 8006012: 619a str r2, [r3, #24]
  14978. htim->Instance->CCER = tmpccer;
  14979. 8006014: 687b ldr r3, [r7, #4]
  14980. 8006016: 681b ldr r3, [r3, #0]
  14981. 8006018: 693a ldr r2, [r7, #16]
  14982. 800601a: 621a str r2, [r3, #32]
  14983. break;
  14984. 800601c: e016 b.n 800604c <TIM_SlaveTimer_SetConfig+0x112>
  14985. TIM_TI1_ConfigInputStage(htim->Instance,
  14986. 800601e: 687b ldr r3, [r7, #4]
  14987. 8006020: 6818 ldr r0, [r3, #0]
  14988. 8006022: 683b ldr r3, [r7, #0]
  14989. 8006024: 6899 ldr r1, [r3, #8]
  14990. 8006026: 683b ldr r3, [r7, #0]
  14991. 8006028: 691b ldr r3, [r3, #16]
  14992. 800602a: 461a mov r2, r3
  14993. 800602c: f000 f813 bl 8006056 <TIM_TI1_ConfigInputStage>
  14994. break;
  14995. 8006030: e00c b.n 800604c <TIM_SlaveTimer_SetConfig+0x112>
  14996. TIM_TI2_ConfigInputStage(htim->Instance,
  14997. 8006032: 687b ldr r3, [r7, #4]
  14998. 8006034: 6818 ldr r0, [r3, #0]
  14999. 8006036: 683b ldr r3, [r7, #0]
  15000. 8006038: 6899 ldr r1, [r3, #8]
  15001. 800603a: 683b ldr r3, [r7, #0]
  15002. 800603c: 691b ldr r3, [r3, #16]
  15003. 800603e: 461a mov r2, r3
  15004. 8006040: f000 f837 bl 80060b2 <TIM_TI2_ConfigInputStage>
  15005. break;
  15006. 8006044: e002 b.n 800604c <TIM_SlaveTimer_SetConfig+0x112>
  15007. break;
  15008. 8006046: bf00 nop
  15009. 8006048: e000 b.n 800604c <TIM_SlaveTimer_SetConfig+0x112>
  15010. break;
  15011. 800604a: bf00 nop
  15012. }
  15013. return HAL_OK;
  15014. 800604c: 2300 movs r3, #0
  15015. }
  15016. 800604e: 4618 mov r0, r3
  15017. 8006050: 3718 adds r7, #24
  15018. 8006052: 46bd mov sp, r7
  15019. 8006054: bd80 pop {r7, pc}
  15020. 08006056 <TIM_TI1_ConfigInputStage>:
  15021. * @param TIM_ICFilter Specifies the Input Capture Filter.
  15022. * This parameter must be a value between 0x00 and 0x0F.
  15023. * @retval None
  15024. */
  15025. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  15026. {
  15027. 8006056: b480 push {r7}
  15028. 8006058: b087 sub sp, #28
  15029. 800605a: af00 add r7, sp, #0
  15030. 800605c: 60f8 str r0, [r7, #12]
  15031. 800605e: 60b9 str r1, [r7, #8]
  15032. 8006060: 607a str r2, [r7, #4]
  15033. uint32_t tmpccmr1;
  15034. uint32_t tmpccer;
  15035. /* Disable the Channel 1: Reset the CC1E Bit */
  15036. tmpccer = TIMx->CCER;
  15037. 8006062: 68fb ldr r3, [r7, #12]
  15038. 8006064: 6a1b ldr r3, [r3, #32]
  15039. 8006066: 617b str r3, [r7, #20]
  15040. TIMx->CCER &= ~TIM_CCER_CC1E;
  15041. 8006068: 68fb ldr r3, [r7, #12]
  15042. 800606a: 6a1b ldr r3, [r3, #32]
  15043. 800606c: f023 0201 bic.w r2, r3, #1
  15044. 8006070: 68fb ldr r3, [r7, #12]
  15045. 8006072: 621a str r2, [r3, #32]
  15046. tmpccmr1 = TIMx->CCMR1;
  15047. 8006074: 68fb ldr r3, [r7, #12]
  15048. 8006076: 699b ldr r3, [r3, #24]
  15049. 8006078: 613b str r3, [r7, #16]
  15050. /* Set the filter */
  15051. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  15052. 800607a: 693b ldr r3, [r7, #16]
  15053. 800607c: f023 03f0 bic.w r3, r3, #240 ; 0xf0
  15054. 8006080: 613b str r3, [r7, #16]
  15055. tmpccmr1 |= (TIM_ICFilter << 4U);
  15056. 8006082: 687b ldr r3, [r7, #4]
  15057. 8006084: 011b lsls r3, r3, #4
  15058. 8006086: 693a ldr r2, [r7, #16]
  15059. 8006088: 4313 orrs r3, r2
  15060. 800608a: 613b str r3, [r7, #16]
  15061. /* Select the Polarity and set the CC1E Bit */
  15062. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  15063. 800608c: 697b ldr r3, [r7, #20]
  15064. 800608e: f023 030a bic.w r3, r3, #10
  15065. 8006092: 617b str r3, [r7, #20]
  15066. tmpccer |= TIM_ICPolarity;
  15067. 8006094: 697a ldr r2, [r7, #20]
  15068. 8006096: 68bb ldr r3, [r7, #8]
  15069. 8006098: 4313 orrs r3, r2
  15070. 800609a: 617b str r3, [r7, #20]
  15071. /* Write to TIMx CCMR1 and CCER registers */
  15072. TIMx->CCMR1 = tmpccmr1;
  15073. 800609c: 68fb ldr r3, [r7, #12]
  15074. 800609e: 693a ldr r2, [r7, #16]
  15075. 80060a0: 619a str r2, [r3, #24]
  15076. TIMx->CCER = tmpccer;
  15077. 80060a2: 68fb ldr r3, [r7, #12]
  15078. 80060a4: 697a ldr r2, [r7, #20]
  15079. 80060a6: 621a str r2, [r3, #32]
  15080. }
  15081. 80060a8: bf00 nop
  15082. 80060aa: 371c adds r7, #28
  15083. 80060ac: 46bd mov sp, r7
  15084. 80060ae: bc80 pop {r7}
  15085. 80060b0: 4770 bx lr
  15086. 080060b2 <TIM_TI2_ConfigInputStage>:
  15087. * @param TIM_ICFilter Specifies the Input Capture Filter.
  15088. * This parameter must be a value between 0x00 and 0x0F.
  15089. * @retval None
  15090. */
  15091. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  15092. {
  15093. 80060b2: b480 push {r7}
  15094. 80060b4: b087 sub sp, #28
  15095. 80060b6: af00 add r7, sp, #0
  15096. 80060b8: 60f8 str r0, [r7, #12]
  15097. 80060ba: 60b9 str r1, [r7, #8]
  15098. 80060bc: 607a str r2, [r7, #4]
  15099. uint32_t tmpccmr1;
  15100. uint32_t tmpccer;
  15101. /* Disable the Channel 2: Reset the CC2E Bit */
  15102. TIMx->CCER &= ~TIM_CCER_CC2E;
  15103. 80060be: 68fb ldr r3, [r7, #12]
  15104. 80060c0: 6a1b ldr r3, [r3, #32]
  15105. 80060c2: f023 0210 bic.w r2, r3, #16
  15106. 80060c6: 68fb ldr r3, [r7, #12]
  15107. 80060c8: 621a str r2, [r3, #32]
  15108. tmpccmr1 = TIMx->CCMR1;
  15109. 80060ca: 68fb ldr r3, [r7, #12]
  15110. 80060cc: 699b ldr r3, [r3, #24]
  15111. 80060ce: 617b str r3, [r7, #20]
  15112. tmpccer = TIMx->CCER;
  15113. 80060d0: 68fb ldr r3, [r7, #12]
  15114. 80060d2: 6a1b ldr r3, [r3, #32]
  15115. 80060d4: 613b str r3, [r7, #16]
  15116. /* Set the filter */
  15117. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  15118. 80060d6: 697b ldr r3, [r7, #20]
  15119. 80060d8: f423 4370 bic.w r3, r3, #61440 ; 0xf000
  15120. 80060dc: 617b str r3, [r7, #20]
  15121. tmpccmr1 |= (TIM_ICFilter << 12U);
  15122. 80060de: 687b ldr r3, [r7, #4]
  15123. 80060e0: 031b lsls r3, r3, #12
  15124. 80060e2: 697a ldr r2, [r7, #20]
  15125. 80060e4: 4313 orrs r3, r2
  15126. 80060e6: 617b str r3, [r7, #20]
  15127. /* Select the Polarity and set the CC2E Bit */
  15128. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  15129. 80060e8: 693b ldr r3, [r7, #16]
  15130. 80060ea: f023 03a0 bic.w r3, r3, #160 ; 0xa0
  15131. 80060ee: 613b str r3, [r7, #16]
  15132. tmpccer |= (TIM_ICPolarity << 4U);
  15133. 80060f0: 68bb ldr r3, [r7, #8]
  15134. 80060f2: 011b lsls r3, r3, #4
  15135. 80060f4: 693a ldr r2, [r7, #16]
  15136. 80060f6: 4313 orrs r3, r2
  15137. 80060f8: 613b str r3, [r7, #16]
  15138. /* Write to TIMx CCMR1 and CCER registers */
  15139. TIMx->CCMR1 = tmpccmr1 ;
  15140. 80060fa: 68fb ldr r3, [r7, #12]
  15141. 80060fc: 697a ldr r2, [r7, #20]
  15142. 80060fe: 619a str r2, [r3, #24]
  15143. TIMx->CCER = tmpccer;
  15144. 8006100: 68fb ldr r3, [r7, #12]
  15145. 8006102: 693a ldr r2, [r7, #16]
  15146. 8006104: 621a str r2, [r3, #32]
  15147. }
  15148. 8006106: bf00 nop
  15149. 8006108: 371c adds r7, #28
  15150. 800610a: 46bd mov sp, r7
  15151. 800610c: bc80 pop {r7}
  15152. 800610e: 4770 bx lr
  15153. 08006110 <TIM_ITRx_SetConfig>:
  15154. * @arg TIM_TS_TI2FP2: Filtered Timer Input 2
  15155. * @arg TIM_TS_ETRF: External Trigger input
  15156. * @retval None
  15157. */
  15158. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  15159. {
  15160. 8006110: b480 push {r7}
  15161. 8006112: b085 sub sp, #20
  15162. 8006114: af00 add r7, sp, #0
  15163. 8006116: 6078 str r0, [r7, #4]
  15164. 8006118: 6039 str r1, [r7, #0]
  15165. uint32_t tmpsmcr;
  15166. /* Get the TIMx SMCR register value */
  15167. tmpsmcr = TIMx->SMCR;
  15168. 800611a: 687b ldr r3, [r7, #4]
  15169. 800611c: 689b ldr r3, [r3, #8]
  15170. 800611e: 60fb str r3, [r7, #12]
  15171. /* Reset the TS Bits */
  15172. tmpsmcr &= ~TIM_SMCR_TS;
  15173. 8006120: 68fb ldr r3, [r7, #12]
  15174. 8006122: f023 0370 bic.w r3, r3, #112 ; 0x70
  15175. 8006126: 60fb str r3, [r7, #12]
  15176. /* Set the Input Trigger source and the slave mode*/
  15177. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  15178. 8006128: 683a ldr r2, [r7, #0]
  15179. 800612a: 68fb ldr r3, [r7, #12]
  15180. 800612c: 4313 orrs r3, r2
  15181. 800612e: f043 0307 orr.w r3, r3, #7
  15182. 8006132: 60fb str r3, [r7, #12]
  15183. /* Write to TIMx SMCR */
  15184. TIMx->SMCR = tmpsmcr;
  15185. 8006134: 687b ldr r3, [r7, #4]
  15186. 8006136: 68fa ldr r2, [r7, #12]
  15187. 8006138: 609a str r2, [r3, #8]
  15188. }
  15189. 800613a: bf00 nop
  15190. 800613c: 3714 adds r7, #20
  15191. 800613e: 46bd mov sp, r7
  15192. 8006140: bc80 pop {r7}
  15193. 8006142: 4770 bx lr
  15194. 08006144 <TIM_ETR_SetConfig>:
  15195. * This parameter must be a value between 0x00 and 0x0F
  15196. * @retval None
  15197. */
  15198. static void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  15199. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  15200. {
  15201. 8006144: b480 push {r7}
  15202. 8006146: b087 sub sp, #28
  15203. 8006148: af00 add r7, sp, #0
  15204. 800614a: 60f8 str r0, [r7, #12]
  15205. 800614c: 60b9 str r1, [r7, #8]
  15206. 800614e: 607a str r2, [r7, #4]
  15207. 8006150: 603b str r3, [r7, #0]
  15208. uint32_t tmpsmcr;
  15209. tmpsmcr = TIMx->SMCR;
  15210. 8006152: 68fb ldr r3, [r7, #12]
  15211. 8006154: 689b ldr r3, [r3, #8]
  15212. 8006156: 617b str r3, [r7, #20]
  15213. /* Reset the ETR Bits */
  15214. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  15215. 8006158: 697b ldr r3, [r7, #20]
  15216. 800615a: f423 437f bic.w r3, r3, #65280 ; 0xff00
  15217. 800615e: 617b str r3, [r7, #20]
  15218. /* Set the Prescaler, the Filter value and the Polarity */
  15219. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  15220. 8006160: 683b ldr r3, [r7, #0]
  15221. 8006162: 021a lsls r2, r3, #8
  15222. 8006164: 687b ldr r3, [r7, #4]
  15223. 8006166: 431a orrs r2, r3
  15224. 8006168: 68bb ldr r3, [r7, #8]
  15225. 800616a: 4313 orrs r3, r2
  15226. 800616c: 697a ldr r2, [r7, #20]
  15227. 800616e: 4313 orrs r3, r2
  15228. 8006170: 617b str r3, [r7, #20]
  15229. /* Write to TIMx SMCR */
  15230. TIMx->SMCR = tmpsmcr;
  15231. 8006172: 68fb ldr r3, [r7, #12]
  15232. 8006174: 697a ldr r2, [r7, #20]
  15233. 8006176: 609a str r2, [r3, #8]
  15234. }
  15235. 8006178: bf00 nop
  15236. 800617a: 371c adds r7, #28
  15237. 800617c: 46bd mov sp, r7
  15238. 800617e: bc80 pop {r7}
  15239. 8006180: 4770 bx lr
  15240. 08006182 <TIM_CCxChannelCmd>:
  15241. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  15242. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  15243. * @retval None
  15244. */
  15245. static void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  15246. {
  15247. 8006182: b480 push {r7}
  15248. 8006184: b087 sub sp, #28
  15249. 8006186: af00 add r7, sp, #0
  15250. 8006188: 60f8 str r0, [r7, #12]
  15251. 800618a: 60b9 str r1, [r7, #8]
  15252. 800618c: 607a str r2, [r7, #4]
  15253. /* Check the parameters */
  15254. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  15255. assert_param(IS_TIM_CHANNELS(Channel));
  15256. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  15257. 800618e: 68bb ldr r3, [r7, #8]
  15258. 8006190: f003 031f and.w r3, r3, #31
  15259. 8006194: 2201 movs r2, #1
  15260. 8006196: fa02 f303 lsl.w r3, r2, r3
  15261. 800619a: 617b str r3, [r7, #20]
  15262. /* Reset the CCxE Bit */
  15263. TIMx->CCER &= ~tmp;
  15264. 800619c: 68fb ldr r3, [r7, #12]
  15265. 800619e: 6a1a ldr r2, [r3, #32]
  15266. 80061a0: 697b ldr r3, [r7, #20]
  15267. 80061a2: 43db mvns r3, r3
  15268. 80061a4: 401a ands r2, r3
  15269. 80061a6: 68fb ldr r3, [r7, #12]
  15270. 80061a8: 621a str r2, [r3, #32]
  15271. /* Set or reset the CCxE Bit */
  15272. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  15273. 80061aa: 68fb ldr r3, [r7, #12]
  15274. 80061ac: 6a1a ldr r2, [r3, #32]
  15275. 80061ae: 68bb ldr r3, [r7, #8]
  15276. 80061b0: f003 031f and.w r3, r3, #31
  15277. 80061b4: 6879 ldr r1, [r7, #4]
  15278. 80061b6: fa01 f303 lsl.w r3, r1, r3
  15279. 80061ba: 431a orrs r2, r3
  15280. 80061bc: 68fb ldr r3, [r7, #12]
  15281. 80061be: 621a str r2, [r3, #32]
  15282. }
  15283. 80061c0: bf00 nop
  15284. 80061c2: 371c adds r7, #28
  15285. 80061c4: 46bd mov sp, r7
  15286. 80061c6: bc80 pop {r7}
  15287. 80061c8: 4770 bx lr
  15288. ...
  15289. 080061cc <HAL_TIMEx_MasterConfigSynchronization>:
  15290. * mode.
  15291. * @retval HAL status
  15292. */
  15293. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  15294. TIM_MasterConfigTypeDef *sMasterConfig)
  15295. {
  15296. 80061cc: b480 push {r7}
  15297. 80061ce: b085 sub sp, #20
  15298. 80061d0: af00 add r7, sp, #0
  15299. 80061d2: 6078 str r0, [r7, #4]
  15300. 80061d4: 6039 str r1, [r7, #0]
  15301. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  15302. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  15303. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  15304. /* Check input state */
  15305. __HAL_LOCK(htim);
  15306. 80061d6: 687b ldr r3, [r7, #4]
  15307. 80061d8: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  15308. 80061dc: 2b01 cmp r3, #1
  15309. 80061de: d101 bne.n 80061e4 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  15310. 80061e0: 2302 movs r3, #2
  15311. 80061e2: e046 b.n 8006272 <HAL_TIMEx_MasterConfigSynchronization+0xa6>
  15312. 80061e4: 687b ldr r3, [r7, #4]
  15313. 80061e6: 2201 movs r2, #1
  15314. 80061e8: f883 2038 strb.w r2, [r3, #56] ; 0x38
  15315. /* Change the handler state */
  15316. htim->State = HAL_TIM_STATE_BUSY;
  15317. 80061ec: 687b ldr r3, [r7, #4]
  15318. 80061ee: 2202 movs r2, #2
  15319. 80061f0: f883 2039 strb.w r2, [r3, #57] ; 0x39
  15320. /* Get the TIMx CR2 register value */
  15321. tmpcr2 = htim->Instance->CR2;
  15322. 80061f4: 687b ldr r3, [r7, #4]
  15323. 80061f6: 681b ldr r3, [r3, #0]
  15324. 80061f8: 685b ldr r3, [r3, #4]
  15325. 80061fa: 60fb str r3, [r7, #12]
  15326. /* Get the TIMx SMCR register value */
  15327. tmpsmcr = htim->Instance->SMCR;
  15328. 80061fc: 687b ldr r3, [r7, #4]
  15329. 80061fe: 681b ldr r3, [r3, #0]
  15330. 8006200: 689b ldr r3, [r3, #8]
  15331. 8006202: 60bb str r3, [r7, #8]
  15332. /* Reset the MMS Bits */
  15333. tmpcr2 &= ~TIM_CR2_MMS;
  15334. 8006204: 68fb ldr r3, [r7, #12]
  15335. 8006206: f023 0370 bic.w r3, r3, #112 ; 0x70
  15336. 800620a: 60fb str r3, [r7, #12]
  15337. /* Select the TRGO source */
  15338. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  15339. 800620c: 683b ldr r3, [r7, #0]
  15340. 800620e: 681b ldr r3, [r3, #0]
  15341. 8006210: 68fa ldr r2, [r7, #12]
  15342. 8006212: 4313 orrs r3, r2
  15343. 8006214: 60fb str r3, [r7, #12]
  15344. /* Update TIMx CR2 */
  15345. htim->Instance->CR2 = tmpcr2;
  15346. 8006216: 687b ldr r3, [r7, #4]
  15347. 8006218: 681b ldr r3, [r3, #0]
  15348. 800621a: 68fa ldr r2, [r7, #12]
  15349. 800621c: 605a str r2, [r3, #4]
  15350. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  15351. 800621e: 687b ldr r3, [r7, #4]
  15352. 8006220: 681b ldr r3, [r3, #0]
  15353. 8006222: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  15354. 8006226: d00e beq.n 8006246 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
  15355. 8006228: 687b ldr r3, [r7, #4]
  15356. 800622a: 681b ldr r3, [r3, #0]
  15357. 800622c: 4a13 ldr r2, [pc, #76] ; (800627c <HAL_TIMEx_MasterConfigSynchronization+0xb0>)
  15358. 800622e: 4293 cmp r3, r2
  15359. 8006230: d009 beq.n 8006246 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
  15360. 8006232: 687b ldr r3, [r7, #4]
  15361. 8006234: 681b ldr r3, [r3, #0]
  15362. 8006236: 4a12 ldr r2, [pc, #72] ; (8006280 <HAL_TIMEx_MasterConfigSynchronization+0xb4>)
  15363. 8006238: 4293 cmp r3, r2
  15364. 800623a: d004 beq.n 8006246 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
  15365. 800623c: 687b ldr r3, [r7, #4]
  15366. 800623e: 681b ldr r3, [r3, #0]
  15367. 8006240: 4a10 ldr r2, [pc, #64] ; (8006284 <HAL_TIMEx_MasterConfigSynchronization+0xb8>)
  15368. 8006242: 4293 cmp r3, r2
  15369. 8006244: d10c bne.n 8006260 <HAL_TIMEx_MasterConfigSynchronization+0x94>
  15370. {
  15371. /* Reset the MSM Bit */
  15372. tmpsmcr &= ~TIM_SMCR_MSM;
  15373. 8006246: 68bb ldr r3, [r7, #8]
  15374. 8006248: f023 0380 bic.w r3, r3, #128 ; 0x80
  15375. 800624c: 60bb str r3, [r7, #8]
  15376. /* Set master mode */
  15377. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  15378. 800624e: 683b ldr r3, [r7, #0]
  15379. 8006250: 685b ldr r3, [r3, #4]
  15380. 8006252: 68ba ldr r2, [r7, #8]
  15381. 8006254: 4313 orrs r3, r2
  15382. 8006256: 60bb str r3, [r7, #8]
  15383. /* Update TIMx SMCR */
  15384. htim->Instance->SMCR = tmpsmcr;
  15385. 8006258: 687b ldr r3, [r7, #4]
  15386. 800625a: 681b ldr r3, [r3, #0]
  15387. 800625c: 68ba ldr r2, [r7, #8]
  15388. 800625e: 609a str r2, [r3, #8]
  15389. }
  15390. /* Change the htim state */
  15391. htim->State = HAL_TIM_STATE_READY;
  15392. 8006260: 687b ldr r3, [r7, #4]
  15393. 8006262: 2201 movs r2, #1
  15394. 8006264: f883 2039 strb.w r2, [r3, #57] ; 0x39
  15395. __HAL_UNLOCK(htim);
  15396. 8006268: 687b ldr r3, [r7, #4]
  15397. 800626a: 2200 movs r2, #0
  15398. 800626c: f883 2038 strb.w r2, [r3, #56] ; 0x38
  15399. return HAL_OK;
  15400. 8006270: 2300 movs r3, #0
  15401. }
  15402. 8006272: 4618 mov r0, r3
  15403. 8006274: 3714 adds r7, #20
  15404. 8006276: 46bd mov sp, r7
  15405. 8006278: bc80 pop {r7}
  15406. 800627a: 4770 bx lr
  15407. 800627c: 40000400 .word 0x40000400
  15408. 8006280: 40000800 .word 0x40000800
  15409. 8006284: 40010800 .word 0x40010800
  15410. 08006288 <HAL_UART_Init>:
  15411. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  15412. * the configuration information for the specified UART module.
  15413. * @retval HAL status
  15414. */
  15415. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  15416. {
  15417. 8006288: b580 push {r7, lr}
  15418. 800628a: b082 sub sp, #8
  15419. 800628c: af00 add r7, sp, #0
  15420. 800628e: 6078 str r0, [r7, #4]
  15421. /* Check the UART handle allocation */
  15422. if (huart == NULL)
  15423. 8006290: 687b ldr r3, [r7, #4]
  15424. 8006292: 2b00 cmp r3, #0
  15425. 8006294: d101 bne.n 800629a <HAL_UART_Init+0x12>
  15426. {
  15427. return HAL_ERROR;
  15428. 8006296: 2301 movs r3, #1
  15429. 8006298: e03f b.n 800631a <HAL_UART_Init+0x92>
  15430. assert_param(IS_UART_INSTANCE(huart->Instance));
  15431. }
  15432. assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
  15433. assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
  15434. if (huart->gState == HAL_UART_STATE_RESET)
  15435. 800629a: 687b ldr r3, [r7, #4]
  15436. 800629c: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  15437. 80062a0: b2db uxtb r3, r3
  15438. 80062a2: 2b00 cmp r3, #0
  15439. 80062a4: d106 bne.n 80062b4 <HAL_UART_Init+0x2c>
  15440. {
  15441. /* Allocate lock resource and initialize it */
  15442. huart->Lock = HAL_UNLOCKED;
  15443. 80062a6: 687b ldr r3, [r7, #4]
  15444. 80062a8: 2200 movs r2, #0
  15445. 80062aa: f883 203c strb.w r2, [r3, #60] ; 0x3c
  15446. /* Init the low level hardware */
  15447. huart->MspInitCallback(huart);
  15448. #else
  15449. /* Init the low level hardware : GPIO, CLOCK */
  15450. HAL_UART_MspInit(huart);
  15451. 80062ae: 6878 ldr r0, [r7, #4]
  15452. 80062b0: f7fb febc bl 800202c <HAL_UART_MspInit>
  15453. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  15454. }
  15455. huart->gState = HAL_UART_STATE_BUSY;
  15456. 80062b4: 687b ldr r3, [r7, #4]
  15457. 80062b6: 2224 movs r2, #36 ; 0x24
  15458. 80062b8: f883 203d strb.w r2, [r3, #61] ; 0x3d
  15459. /* Disable the peripheral */
  15460. __HAL_UART_DISABLE(huart);
  15461. 80062bc: 687b ldr r3, [r7, #4]
  15462. 80062be: 681b ldr r3, [r3, #0]
  15463. 80062c0: 68da ldr r2, [r3, #12]
  15464. 80062c2: 687b ldr r3, [r7, #4]
  15465. 80062c4: 681b ldr r3, [r3, #0]
  15466. 80062c6: f422 5200 bic.w r2, r2, #8192 ; 0x2000
  15467. 80062ca: 60da str r2, [r3, #12]
  15468. /* Set the UART Communication parameters */
  15469. UART_SetConfig(huart);
  15470. 80062cc: 6878 ldr r0, [r7, #4]
  15471. 80062ce: f000 f857 bl 8006380 <UART_SetConfig>
  15472. /* In asynchronous mode, the following bits must be kept cleared:
  15473. - LINEN and CLKEN bits in the USART_CR2 register,
  15474. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  15475. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  15476. 80062d2: 687b ldr r3, [r7, #4]
  15477. 80062d4: 681b ldr r3, [r3, #0]
  15478. 80062d6: 691a ldr r2, [r3, #16]
  15479. 80062d8: 687b ldr r3, [r7, #4]
  15480. 80062da: 681b ldr r3, [r3, #0]
  15481. 80062dc: f422 4290 bic.w r2, r2, #18432 ; 0x4800
  15482. 80062e0: 611a str r2, [r3, #16]
  15483. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  15484. 80062e2: 687b ldr r3, [r7, #4]
  15485. 80062e4: 681b ldr r3, [r3, #0]
  15486. 80062e6: 695a ldr r2, [r3, #20]
  15487. 80062e8: 687b ldr r3, [r7, #4]
  15488. 80062ea: 681b ldr r3, [r3, #0]
  15489. 80062ec: f022 022a bic.w r2, r2, #42 ; 0x2a
  15490. 80062f0: 615a str r2, [r3, #20]
  15491. /* Enable the peripheral */
  15492. __HAL_UART_ENABLE(huart);
  15493. 80062f2: 687b ldr r3, [r7, #4]
  15494. 80062f4: 681b ldr r3, [r3, #0]
  15495. 80062f6: 68da ldr r2, [r3, #12]
  15496. 80062f8: 687b ldr r3, [r7, #4]
  15497. 80062fa: 681b ldr r3, [r3, #0]
  15498. 80062fc: f442 5200 orr.w r2, r2, #8192 ; 0x2000
  15499. 8006300: 60da str r2, [r3, #12]
  15500. /* Initialize the UART state */
  15501. huart->ErrorCode = HAL_UART_ERROR_NONE;
  15502. 8006302: 687b ldr r3, [r7, #4]
  15503. 8006304: 2200 movs r2, #0
  15504. 8006306: 641a str r2, [r3, #64] ; 0x40
  15505. huart->gState = HAL_UART_STATE_READY;
  15506. 8006308: 687b ldr r3, [r7, #4]
  15507. 800630a: 2220 movs r2, #32
  15508. 800630c: f883 203d strb.w r2, [r3, #61] ; 0x3d
  15509. huart->RxState = HAL_UART_STATE_READY;
  15510. 8006310: 687b ldr r3, [r7, #4]
  15511. 8006312: 2220 movs r2, #32
  15512. 8006314: f883 203e strb.w r2, [r3, #62] ; 0x3e
  15513. return HAL_OK;
  15514. 8006318: 2300 movs r3, #0
  15515. }
  15516. 800631a: 4618 mov r0, r3
  15517. 800631c: 3708 adds r7, #8
  15518. 800631e: 46bd mov sp, r7
  15519. 8006320: bd80 pop {r7, pc}
  15520. 08006322 <HAL_UART_DeInit>:
  15521. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  15522. * the configuration information for the specified UART module.
  15523. * @retval HAL status
  15524. */
  15525. HAL_StatusTypeDef HAL_UART_DeInit(UART_HandleTypeDef *huart)
  15526. {
  15527. 8006322: b580 push {r7, lr}
  15528. 8006324: b082 sub sp, #8
  15529. 8006326: af00 add r7, sp, #0
  15530. 8006328: 6078 str r0, [r7, #4]
  15531. /* Check the UART handle allocation */
  15532. if (huart == NULL)
  15533. 800632a: 687b ldr r3, [r7, #4]
  15534. 800632c: 2b00 cmp r3, #0
  15535. 800632e: d101 bne.n 8006334 <HAL_UART_DeInit+0x12>
  15536. {
  15537. return HAL_ERROR;
  15538. 8006330: 2301 movs r3, #1
  15539. 8006332: e021 b.n 8006378 <HAL_UART_DeInit+0x56>
  15540. }
  15541. /* Check the parameters */
  15542. assert_param(IS_UART_INSTANCE(huart->Instance));
  15543. huart->gState = HAL_UART_STATE_BUSY;
  15544. 8006334: 687b ldr r3, [r7, #4]
  15545. 8006336: 2224 movs r2, #36 ; 0x24
  15546. 8006338: f883 203d strb.w r2, [r3, #61] ; 0x3d
  15547. /* Disable the Peripheral */
  15548. __HAL_UART_DISABLE(huart);
  15549. 800633c: 687b ldr r3, [r7, #4]
  15550. 800633e: 681b ldr r3, [r3, #0]
  15551. 8006340: 68da ldr r2, [r3, #12]
  15552. 8006342: 687b ldr r3, [r7, #4]
  15553. 8006344: 681b ldr r3, [r3, #0]
  15554. 8006346: f422 5200 bic.w r2, r2, #8192 ; 0x2000
  15555. 800634a: 60da str r2, [r3, #12]
  15556. }
  15557. /* DeInit the low level hardware */
  15558. huart->MspDeInitCallback(huart);
  15559. #else
  15560. /* DeInit the low level hardware */
  15561. HAL_UART_MspDeInit(huart);
  15562. 800634c: 6878 ldr r0, [r7, #4]
  15563. 800634e: f7fb feb1 bl 80020b4 <HAL_UART_MspDeInit>
  15564. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  15565. huart->ErrorCode = HAL_UART_ERROR_NONE;
  15566. 8006352: 687b ldr r3, [r7, #4]
  15567. 8006354: 2200 movs r2, #0
  15568. 8006356: 641a str r2, [r3, #64] ; 0x40
  15569. huart->gState = HAL_UART_STATE_RESET;
  15570. 8006358: 687b ldr r3, [r7, #4]
  15571. 800635a: 2200 movs r2, #0
  15572. 800635c: f883 203d strb.w r2, [r3, #61] ; 0x3d
  15573. huart->RxState = HAL_UART_STATE_RESET;
  15574. 8006360: 687b ldr r3, [r7, #4]
  15575. 8006362: 2200 movs r2, #0
  15576. 8006364: f883 203e strb.w r2, [r3, #62] ; 0x3e
  15577. huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
  15578. 8006368: 687b ldr r3, [r7, #4]
  15579. 800636a: 2200 movs r2, #0
  15580. 800636c: 631a str r2, [r3, #48] ; 0x30
  15581. /* Process Unlock */
  15582. __HAL_UNLOCK(huart);
  15583. 800636e: 687b ldr r3, [r7, #4]
  15584. 8006370: 2200 movs r2, #0
  15585. 8006372: f883 203c strb.w r2, [r3, #60] ; 0x3c
  15586. return HAL_OK;
  15587. 8006376: 2300 movs r3, #0
  15588. }
  15589. 8006378: 4618 mov r0, r3
  15590. 800637a: 3708 adds r7, #8
  15591. 800637c: 46bd mov sp, r7
  15592. 800637e: bd80 pop {r7, pc}
  15593. 08006380 <UART_SetConfig>:
  15594. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  15595. * the configuration information for the specified UART module.
  15596. * @retval None
  15597. */
  15598. static void UART_SetConfig(UART_HandleTypeDef *huart)
  15599. {
  15600. 8006380: b580 push {r7, lr}
  15601. 8006382: b084 sub sp, #16
  15602. 8006384: af00 add r7, sp, #0
  15603. 8006386: 6078 str r0, [r7, #4]
  15604. assert_param(IS_UART_MODE(huart->Init.Mode));
  15605. /*-------------------------- USART CR2 Configuration -----------------------*/
  15606. /* Configure the UART Stop Bits: Set STOP[13:12] bits
  15607. according to huart->Init.StopBits value */
  15608. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  15609. 8006388: 687b ldr r3, [r7, #4]
  15610. 800638a: 681b ldr r3, [r3, #0]
  15611. 800638c: 691b ldr r3, [r3, #16]
  15612. 800638e: f423 5140 bic.w r1, r3, #12288 ; 0x3000
  15613. 8006392: 687b ldr r3, [r7, #4]
  15614. 8006394: 68da ldr r2, [r3, #12]
  15615. 8006396: 687b ldr r3, [r7, #4]
  15616. 8006398: 681b ldr r3, [r3, #0]
  15617. 800639a: 430a orrs r2, r1
  15618. 800639c: 611a str r2, [r3, #16]
  15619. Set the M bits according to huart->Init.WordLength value
  15620. Set PCE and PS bits according to huart->Init.Parity value
  15621. Set TE and RE bits according to huart->Init.Mode value
  15622. Set OVER8 bit according to huart->Init.OverSampling value */
  15623. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
  15624. 800639e: 687b ldr r3, [r7, #4]
  15625. 80063a0: 689a ldr r2, [r3, #8]
  15626. 80063a2: 687b ldr r3, [r7, #4]
  15627. 80063a4: 691b ldr r3, [r3, #16]
  15628. 80063a6: 431a orrs r2, r3
  15629. 80063a8: 687b ldr r3, [r7, #4]
  15630. 80063aa: 695b ldr r3, [r3, #20]
  15631. 80063ac: 431a orrs r2, r3
  15632. 80063ae: 687b ldr r3, [r7, #4]
  15633. 80063b0: 69db ldr r3, [r3, #28]
  15634. 80063b2: 4313 orrs r3, r2
  15635. 80063b4: 60bb str r3, [r7, #8]
  15636. MODIFY_REG(huart->Instance->CR1,
  15637. 80063b6: 687b ldr r3, [r7, #4]
  15638. 80063b8: 681b ldr r3, [r3, #0]
  15639. 80063ba: 68db ldr r3, [r3, #12]
  15640. 80063bc: f423 4316 bic.w r3, r3, #38400 ; 0x9600
  15641. 80063c0: f023 030c bic.w r3, r3, #12
  15642. 80063c4: 687a ldr r2, [r7, #4]
  15643. 80063c6: 6812 ldr r2, [r2, #0]
  15644. 80063c8: 68b9 ldr r1, [r7, #8]
  15645. 80063ca: 430b orrs r3, r1
  15646. 80063cc: 60d3 str r3, [r2, #12]
  15647. (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8),
  15648. tmpreg);
  15649. /*-------------------------- USART CR3 Configuration -----------------------*/
  15650. /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
  15651. MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
  15652. 80063ce: 687b ldr r3, [r7, #4]
  15653. 80063d0: 681b ldr r3, [r3, #0]
  15654. 80063d2: 695b ldr r3, [r3, #20]
  15655. 80063d4: f423 7140 bic.w r1, r3, #768 ; 0x300
  15656. 80063d8: 687b ldr r3, [r7, #4]
  15657. 80063da: 699a ldr r2, [r3, #24]
  15658. 80063dc: 687b ldr r3, [r7, #4]
  15659. 80063de: 681b ldr r3, [r3, #0]
  15660. 80063e0: 430a orrs r2, r1
  15661. 80063e2: 615a str r2, [r3, #20]
  15662. if((huart->Instance == USART1))
  15663. 80063e4: 687b ldr r3, [r7, #4]
  15664. 80063e6: 681b ldr r3, [r3, #0]
  15665. 80063e8: 4a55 ldr r2, [pc, #340] ; (8006540 <UART_SetConfig+0x1c0>)
  15666. 80063ea: 4293 cmp r3, r2
  15667. 80063ec: d103 bne.n 80063f6 <UART_SetConfig+0x76>
  15668. {
  15669. pclk = HAL_RCC_GetPCLK2Freq();
  15670. 80063ee: f7fe feeb bl 80051c8 <HAL_RCC_GetPCLK2Freq>
  15671. 80063f2: 60f8 str r0, [r7, #12]
  15672. 80063f4: e002 b.n 80063fc <UART_SetConfig+0x7c>
  15673. }
  15674. else
  15675. {
  15676. pclk = HAL_RCC_GetPCLK1Freq();
  15677. 80063f6: f7fe fed3 bl 80051a0 <HAL_RCC_GetPCLK1Freq>
  15678. 80063fa: 60f8 str r0, [r7, #12]
  15679. }
  15680. /*-------------------------- USART BRR Configuration ---------------------*/
  15681. if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  15682. 80063fc: 687b ldr r3, [r7, #4]
  15683. 80063fe: 69db ldr r3, [r3, #28]
  15684. 8006400: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
  15685. 8006404: d14c bne.n 80064a0 <UART_SetConfig+0x120>
  15686. {
  15687. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  15688. 8006406: 68fa ldr r2, [r7, #12]
  15689. 8006408: 4613 mov r3, r2
  15690. 800640a: 009b lsls r3, r3, #2
  15691. 800640c: 4413 add r3, r2
  15692. 800640e: 009a lsls r2, r3, #2
  15693. 8006410: 441a add r2, r3
  15694. 8006412: 687b ldr r3, [r7, #4]
  15695. 8006414: 685b ldr r3, [r3, #4]
  15696. 8006416: 005b lsls r3, r3, #1
  15697. 8006418: fbb2 f3f3 udiv r3, r2, r3
  15698. 800641c: 4a49 ldr r2, [pc, #292] ; (8006544 <UART_SetConfig+0x1c4>)
  15699. 800641e: fba2 2303 umull r2, r3, r2, r3
  15700. 8006422: 095b lsrs r3, r3, #5
  15701. 8006424: 0119 lsls r1, r3, #4
  15702. 8006426: 68fa ldr r2, [r7, #12]
  15703. 8006428: 4613 mov r3, r2
  15704. 800642a: 009b lsls r3, r3, #2
  15705. 800642c: 4413 add r3, r2
  15706. 800642e: 009a lsls r2, r3, #2
  15707. 8006430: 441a add r2, r3
  15708. 8006432: 687b ldr r3, [r7, #4]
  15709. 8006434: 685b ldr r3, [r3, #4]
  15710. 8006436: 005b lsls r3, r3, #1
  15711. 8006438: fbb2 f2f3 udiv r2, r2, r3
  15712. 800643c: 4b41 ldr r3, [pc, #260] ; (8006544 <UART_SetConfig+0x1c4>)
  15713. 800643e: fba3 0302 umull r0, r3, r3, r2
  15714. 8006442: 095b lsrs r3, r3, #5
  15715. 8006444: 2064 movs r0, #100 ; 0x64
  15716. 8006446: fb00 f303 mul.w r3, r0, r3
  15717. 800644a: 1ad3 subs r3, r2, r3
  15718. 800644c: 00db lsls r3, r3, #3
  15719. 800644e: 3332 adds r3, #50 ; 0x32
  15720. 8006450: 4a3c ldr r2, [pc, #240] ; (8006544 <UART_SetConfig+0x1c4>)
  15721. 8006452: fba2 2303 umull r2, r3, r2, r3
  15722. 8006456: 095b lsrs r3, r3, #5
  15723. 8006458: 005b lsls r3, r3, #1
  15724. 800645a: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  15725. 800645e: 4419 add r1, r3
  15726. 8006460: 68fa ldr r2, [r7, #12]
  15727. 8006462: 4613 mov r3, r2
  15728. 8006464: 009b lsls r3, r3, #2
  15729. 8006466: 4413 add r3, r2
  15730. 8006468: 009a lsls r2, r3, #2
  15731. 800646a: 441a add r2, r3
  15732. 800646c: 687b ldr r3, [r7, #4]
  15733. 800646e: 685b ldr r3, [r3, #4]
  15734. 8006470: 005b lsls r3, r3, #1
  15735. 8006472: fbb2 f2f3 udiv r2, r2, r3
  15736. 8006476: 4b33 ldr r3, [pc, #204] ; (8006544 <UART_SetConfig+0x1c4>)
  15737. 8006478: fba3 0302 umull r0, r3, r3, r2
  15738. 800647c: 095b lsrs r3, r3, #5
  15739. 800647e: 2064 movs r0, #100 ; 0x64
  15740. 8006480: fb00 f303 mul.w r3, r0, r3
  15741. 8006484: 1ad3 subs r3, r2, r3
  15742. 8006486: 00db lsls r3, r3, #3
  15743. 8006488: 3332 adds r3, #50 ; 0x32
  15744. 800648a: 4a2e ldr r2, [pc, #184] ; (8006544 <UART_SetConfig+0x1c4>)
  15745. 800648c: fba2 2303 umull r2, r3, r2, r3
  15746. 8006490: 095b lsrs r3, r3, #5
  15747. 8006492: f003 0207 and.w r2, r3, #7
  15748. 8006496: 687b ldr r3, [r7, #4]
  15749. 8006498: 681b ldr r3, [r3, #0]
  15750. 800649a: 440a add r2, r1
  15751. 800649c: 609a str r2, [r3, #8]
  15752. }
  15753. else
  15754. {
  15755. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  15756. }
  15757. }
  15758. 800649e: e04a b.n 8006536 <UART_SetConfig+0x1b6>
  15759. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  15760. 80064a0: 68fa ldr r2, [r7, #12]
  15761. 80064a2: 4613 mov r3, r2
  15762. 80064a4: 009b lsls r3, r3, #2
  15763. 80064a6: 4413 add r3, r2
  15764. 80064a8: 009a lsls r2, r3, #2
  15765. 80064aa: 441a add r2, r3
  15766. 80064ac: 687b ldr r3, [r7, #4]
  15767. 80064ae: 685b ldr r3, [r3, #4]
  15768. 80064b0: 009b lsls r3, r3, #2
  15769. 80064b2: fbb2 f3f3 udiv r3, r2, r3
  15770. 80064b6: 4a23 ldr r2, [pc, #140] ; (8006544 <UART_SetConfig+0x1c4>)
  15771. 80064b8: fba2 2303 umull r2, r3, r2, r3
  15772. 80064bc: 095b lsrs r3, r3, #5
  15773. 80064be: 0119 lsls r1, r3, #4
  15774. 80064c0: 68fa ldr r2, [r7, #12]
  15775. 80064c2: 4613 mov r3, r2
  15776. 80064c4: 009b lsls r3, r3, #2
  15777. 80064c6: 4413 add r3, r2
  15778. 80064c8: 009a lsls r2, r3, #2
  15779. 80064ca: 441a add r2, r3
  15780. 80064cc: 687b ldr r3, [r7, #4]
  15781. 80064ce: 685b ldr r3, [r3, #4]
  15782. 80064d0: 009b lsls r3, r3, #2
  15783. 80064d2: fbb2 f2f3 udiv r2, r2, r3
  15784. 80064d6: 4b1b ldr r3, [pc, #108] ; (8006544 <UART_SetConfig+0x1c4>)
  15785. 80064d8: fba3 0302 umull r0, r3, r3, r2
  15786. 80064dc: 095b lsrs r3, r3, #5
  15787. 80064de: 2064 movs r0, #100 ; 0x64
  15788. 80064e0: fb00 f303 mul.w r3, r0, r3
  15789. 80064e4: 1ad3 subs r3, r2, r3
  15790. 80064e6: 011b lsls r3, r3, #4
  15791. 80064e8: 3332 adds r3, #50 ; 0x32
  15792. 80064ea: 4a16 ldr r2, [pc, #88] ; (8006544 <UART_SetConfig+0x1c4>)
  15793. 80064ec: fba2 2303 umull r2, r3, r2, r3
  15794. 80064f0: 095b lsrs r3, r3, #5
  15795. 80064f2: f003 03f0 and.w r3, r3, #240 ; 0xf0
  15796. 80064f6: 4419 add r1, r3
  15797. 80064f8: 68fa ldr r2, [r7, #12]
  15798. 80064fa: 4613 mov r3, r2
  15799. 80064fc: 009b lsls r3, r3, #2
  15800. 80064fe: 4413 add r3, r2
  15801. 8006500: 009a lsls r2, r3, #2
  15802. 8006502: 441a add r2, r3
  15803. 8006504: 687b ldr r3, [r7, #4]
  15804. 8006506: 685b ldr r3, [r3, #4]
  15805. 8006508: 009b lsls r3, r3, #2
  15806. 800650a: fbb2 f2f3 udiv r2, r2, r3
  15807. 800650e: 4b0d ldr r3, [pc, #52] ; (8006544 <UART_SetConfig+0x1c4>)
  15808. 8006510: fba3 0302 umull r0, r3, r3, r2
  15809. 8006514: 095b lsrs r3, r3, #5
  15810. 8006516: 2064 movs r0, #100 ; 0x64
  15811. 8006518: fb00 f303 mul.w r3, r0, r3
  15812. 800651c: 1ad3 subs r3, r2, r3
  15813. 800651e: 011b lsls r3, r3, #4
  15814. 8006520: 3332 adds r3, #50 ; 0x32
  15815. 8006522: 4a08 ldr r2, [pc, #32] ; (8006544 <UART_SetConfig+0x1c4>)
  15816. 8006524: fba2 2303 umull r2, r3, r2, r3
  15817. 8006528: 095b lsrs r3, r3, #5
  15818. 800652a: f003 020f and.w r2, r3, #15
  15819. 800652e: 687b ldr r3, [r7, #4]
  15820. 8006530: 681b ldr r3, [r3, #0]
  15821. 8006532: 440a add r2, r1
  15822. 8006534: 609a str r2, [r3, #8]
  15823. }
  15824. 8006536: bf00 nop
  15825. 8006538: 3710 adds r7, #16
  15826. 800653a: 46bd mov sp, r7
  15827. 800653c: bd80 pop {r7, pc}
  15828. 800653e: bf00 nop
  15829. 8006540: 40013800 .word 0x40013800
  15830. 8006544: 51eb851f .word 0x51eb851f
  15831. 08006548 <ssd1306_Reset>:
  15832. #include <stdlib.h>
  15833. #include <string.h> // For memcpy
  15834. #if defined(SSD1306_USE_I2C)
  15835. void ssd1306_Reset(void) {
  15836. 8006548: b480 push {r7}
  15837. 800654a: af00 add r7, sp, #0
  15838. /* for I2C - do nothing */
  15839. }
  15840. 800654c: bf00 nop
  15841. 800654e: 46bd mov sp, r7
  15842. 8006550: bc80 pop {r7}
  15843. 8006552: 4770 bx lr
  15844. 08006554 <ssd1306_WriteCommand>:
  15845. // Send a byte to the command register
  15846. void ssd1306_WriteCommand(uint8_t byte) {
  15847. 8006554: b580 push {r7, lr}
  15848. 8006556: b086 sub sp, #24
  15849. 8006558: af04 add r7, sp, #16
  15850. 800655a: 4603 mov r3, r0
  15851. 800655c: 71fb strb r3, [r7, #7]
  15852. HAL_I2C_Mem_Write(&SSD1306_I2C_PORT, SSD1306_I2C_ADDR, 0x00, 1, &byte, 1, HAL_MAX_DELAY);
  15853. 800655e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  15854. 8006562: 9302 str r3, [sp, #8]
  15855. 8006564: 2301 movs r3, #1
  15856. 8006566: 9301 str r3, [sp, #4]
  15857. 8006568: 1dfb adds r3, r7, #7
  15858. 800656a: 9300 str r3, [sp, #0]
  15859. 800656c: 2301 movs r3, #1
  15860. 800656e: 2200 movs r2, #0
  15861. 8006570: 2178 movs r1, #120 ; 0x78
  15862. 8006572: 4803 ldr r0, [pc, #12] ; (8006580 <ssd1306_WriteCommand+0x2c>)
  15863. 8006574: f7fd fd96 bl 80040a4 <HAL_I2C_Mem_Write>
  15864. }
  15865. 8006578: bf00 nop
  15866. 800657a: 3708 adds r7, #8
  15867. 800657c: 46bd mov sp, r7
  15868. 800657e: bd80 pop {r7, pc}
  15869. 8006580: 200004ac .word 0x200004ac
  15870. 08006584 <ssd1306_WriteData>:
  15871. // Send data
  15872. void ssd1306_WriteData(uint8_t* buffer, size_t buff_size) {
  15873. 8006584: b580 push {r7, lr}
  15874. 8006586: b086 sub sp, #24
  15875. 8006588: af04 add r7, sp, #16
  15876. 800658a: 6078 str r0, [r7, #4]
  15877. 800658c: 6039 str r1, [r7, #0]
  15878. HAL_I2C_Mem_Write(&SSD1306_I2C_PORT, SSD1306_I2C_ADDR, 0x40, 1, buffer, buff_size, HAL_MAX_DELAY);
  15879. 800658e: 683b ldr r3, [r7, #0]
  15880. 8006590: b29b uxth r3, r3
  15881. 8006592: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  15882. 8006596: 9202 str r2, [sp, #8]
  15883. 8006598: 9301 str r3, [sp, #4]
  15884. 800659a: 687b ldr r3, [r7, #4]
  15885. 800659c: 9300 str r3, [sp, #0]
  15886. 800659e: 2301 movs r3, #1
  15887. 80065a0: 2240 movs r2, #64 ; 0x40
  15888. 80065a2: 2178 movs r1, #120 ; 0x78
  15889. 80065a4: 4803 ldr r0, [pc, #12] ; (80065b4 <ssd1306_WriteData+0x30>)
  15890. 80065a6: f7fd fd7d bl 80040a4 <HAL_I2C_Mem_Write>
  15891. }
  15892. 80065aa: bf00 nop
  15893. 80065ac: 3708 adds r7, #8
  15894. 80065ae: 46bd mov sp, r7
  15895. 80065b0: bd80 pop {r7, pc}
  15896. 80065b2: bf00 nop
  15897. 80065b4: 200004ac .word 0x200004ac
  15898. 080065b8 <ssd1306_Init>:
  15899. }
  15900. return ret;
  15901. }
  15902. // Initialize the oled screen
  15903. void ssd1306_Init(void) {
  15904. 80065b8: b580 push {r7, lr}
  15905. 80065ba: af00 add r7, sp, #0
  15906. // Reset OLED
  15907. ssd1306_Reset();
  15908. 80065bc: f7ff ffc4 bl 8006548 <ssd1306_Reset>
  15909. // Wait for the screen to boot
  15910. HAL_Delay(100);
  15911. 80065c0: 2064 movs r0, #100 ; 0x64
  15912. 80065c2: f7fb ff4b bl 800245c <HAL_Delay>
  15913. // Init OLED
  15914. ssd1306_SetDisplayOn(0); //display off
  15915. 80065c6: 2000 movs r0, #0
  15916. 80065c8: f000 fa86 bl 8006ad8 <ssd1306_SetDisplayOn>
  15917. ssd1306_WriteCommand(0x20); //Set Memory Addressing Mode
  15918. 80065cc: 2020 movs r0, #32
  15919. 80065ce: f7ff ffc1 bl 8006554 <ssd1306_WriteCommand>
  15920. ssd1306_WriteCommand(0x00); // 00b,Horizontal Addressing Mode; 01b,Vertical Addressing Mode;
  15921. 80065d2: 2000 movs r0, #0
  15922. 80065d4: f7ff ffbe bl 8006554 <ssd1306_WriteCommand>
  15923. // 10b,Page Addressing Mode (RESET); 11b,Invalid
  15924. ssd1306_WriteCommand(0xB0); //Set Page Start Address for Page Addressing Mode,0-7
  15925. 80065d8: 20b0 movs r0, #176 ; 0xb0
  15926. 80065da: f7ff ffbb bl 8006554 <ssd1306_WriteCommand>
  15927. #ifdef SSD1306_MIRROR_VERT
  15928. ssd1306_WriteCommand(0xC0); // Mirror vertically
  15929. #else
  15930. ssd1306_WriteCommand(0xC8); //Set COM Output Scan Direction
  15931. 80065de: 20c8 movs r0, #200 ; 0xc8
  15932. 80065e0: f7ff ffb8 bl 8006554 <ssd1306_WriteCommand>
  15933. #endif
  15934. ssd1306_WriteCommand(0x00); //---set low column address
  15935. 80065e4: 2000 movs r0, #0
  15936. 80065e6: f7ff ffb5 bl 8006554 <ssd1306_WriteCommand>
  15937. ssd1306_WriteCommand(0x10); //---set high column address
  15938. 80065ea: 2010 movs r0, #16
  15939. 80065ec: f7ff ffb2 bl 8006554 <ssd1306_WriteCommand>
  15940. ssd1306_WriteCommand(0x40); //--set start line address - CHECK
  15941. 80065f0: 2040 movs r0, #64 ; 0x40
  15942. 80065f2: f7ff ffaf bl 8006554 <ssd1306_WriteCommand>
  15943. ssd1306_SetContrast(0xFF);
  15944. 80065f6: 20ff movs r0, #255 ; 0xff
  15945. 80065f8: f000 fa5b bl 8006ab2 <ssd1306_SetContrast>
  15946. #ifdef SSD1306_MIRROR_HORIZ
  15947. ssd1306_WriteCommand(0xA0); // Mirror horizontally
  15948. #else
  15949. ssd1306_WriteCommand(0xA1); //--set segment re-map 0 to 127 - CHECK
  15950. 80065fc: 20a1 movs r0, #161 ; 0xa1
  15951. 80065fe: f7ff ffa9 bl 8006554 <ssd1306_WriteCommand>
  15952. #endif
  15953. #ifdef SSD1306_INVERSE_COLOR
  15954. ssd1306_WriteCommand(0xA7); //--set inverse color
  15955. #else
  15956. ssd1306_WriteCommand(0xA6); //--set normal color
  15957. 8006602: 20a6 movs r0, #166 ; 0xa6
  15958. 8006604: f7ff ffa6 bl 8006554 <ssd1306_WriteCommand>
  15959. // Set multiplex ratio.
  15960. #if (SSD1306_HEIGHT == 128)
  15961. // Found in the Luma Python lib for SH1106.
  15962. ssd1306_WriteCommand(0xFF);
  15963. #else
  15964. ssd1306_WriteCommand(0xA8); //--set multiplex ratio(1 to 64) - CHECK
  15965. 8006608: 20a8 movs r0, #168 ; 0xa8
  15966. 800660a: f7ff ffa3 bl 8006554 <ssd1306_WriteCommand>
  15967. #endif
  15968. #if (SSD1306_HEIGHT == 32)
  15969. ssd1306_WriteCommand(0x1F); //
  15970. 800660e: 201f movs r0, #31
  15971. 8006610: f7ff ffa0 bl 8006554 <ssd1306_WriteCommand>
  15972. ssd1306_WriteCommand(0x3F); // Seems to work for 128px high displays too.
  15973. #else
  15974. #error "Only 32, 64, or 128 lines of height are supported!"
  15975. #endif
  15976. ssd1306_WriteCommand(0xA4); //0xa4,Output follows RAM content;0xa5,Output ignores RAM content
  15977. 8006614: 20a4 movs r0, #164 ; 0xa4
  15978. 8006616: f7ff ff9d bl 8006554 <ssd1306_WriteCommand>
  15979. ssd1306_WriteCommand(0xD3); //-set display offset - CHECK
  15980. 800661a: 20d3 movs r0, #211 ; 0xd3
  15981. 800661c: f7ff ff9a bl 8006554 <ssd1306_WriteCommand>
  15982. ssd1306_WriteCommand(0x00); //-not offset
  15983. 8006620: 2000 movs r0, #0
  15984. 8006622: f7ff ff97 bl 8006554 <ssd1306_WriteCommand>
  15985. ssd1306_WriteCommand(0xD5); //--set display clock divide ratio/oscillator frequency
  15986. 8006626: 20d5 movs r0, #213 ; 0xd5
  15987. 8006628: f7ff ff94 bl 8006554 <ssd1306_WriteCommand>
  15988. ssd1306_WriteCommand(0xF0); //--set divide ratio
  15989. 800662c: 20f0 movs r0, #240 ; 0xf0
  15990. 800662e: f7ff ff91 bl 8006554 <ssd1306_WriteCommand>
  15991. ssd1306_WriteCommand(0xD9); //--set pre-charge period
  15992. 8006632: 20d9 movs r0, #217 ; 0xd9
  15993. 8006634: f7ff ff8e bl 8006554 <ssd1306_WriteCommand>
  15994. ssd1306_WriteCommand(0x22); //
  15995. 8006638: 2022 movs r0, #34 ; 0x22
  15996. 800663a: f7ff ff8b bl 8006554 <ssd1306_WriteCommand>
  15997. ssd1306_WriteCommand(0xDA); //--set com pins hardware configuration - CHECK
  15998. 800663e: 20da movs r0, #218 ; 0xda
  15999. 8006640: f7ff ff88 bl 8006554 <ssd1306_WriteCommand>
  16000. #if (SSD1306_HEIGHT == 32)
  16001. ssd1306_WriteCommand(0x02);
  16002. 8006644: 2002 movs r0, #2
  16003. 8006646: f7ff ff85 bl 8006554 <ssd1306_WriteCommand>
  16004. ssd1306_WriteCommand(0x12);
  16005. #else
  16006. #error "Only 32, 64, or 128 lines of height are supported!"
  16007. #endif
  16008. ssd1306_WriteCommand(0xDB); //--set vcomh
  16009. 800664a: 20db movs r0, #219 ; 0xdb
  16010. 800664c: f7ff ff82 bl 8006554 <ssd1306_WriteCommand>
  16011. ssd1306_WriteCommand(0x20); //0x20,0.77xVcc
  16012. 8006650: 2020 movs r0, #32
  16013. 8006652: f7ff ff7f bl 8006554 <ssd1306_WriteCommand>
  16014. ssd1306_WriteCommand(0x8D); //--set DC-DC enable
  16015. 8006656: 208d movs r0, #141 ; 0x8d
  16016. 8006658: f7ff ff7c bl 8006554 <ssd1306_WriteCommand>
  16017. ssd1306_WriteCommand(0x14); //
  16018. 800665c: 2014 movs r0, #20
  16019. 800665e: f7ff ff79 bl 8006554 <ssd1306_WriteCommand>
  16020. ssd1306_SetDisplayOn(1); //--turn on SSD1306 panel
  16021. 8006662: 2001 movs r0, #1
  16022. 8006664: f000 fa38 bl 8006ad8 <ssd1306_SetDisplayOn>
  16023. // Clear screen
  16024. ssd1306_Fill(Black);
  16025. 8006668: 2000 movs r0, #0
  16026. 800666a: f000 f80f bl 800668c <ssd1306_Fill>
  16027. // Flush buffer to screen
  16028. ssd1306_UpdateScreen();
  16029. 800666e: f000 f82f bl 80066d0 <ssd1306_UpdateScreen>
  16030. // Set default values for screen object
  16031. SSD1306.CurrentX = 0;
  16032. 8006672: 4b05 ldr r3, [pc, #20] ; (8006688 <ssd1306_Init+0xd0>)
  16033. 8006674: 2200 movs r2, #0
  16034. 8006676: 801a strh r2, [r3, #0]
  16035. SSD1306.CurrentY = 0;
  16036. 8006678: 4b03 ldr r3, [pc, #12] ; (8006688 <ssd1306_Init+0xd0>)
  16037. 800667a: 2200 movs r2, #0
  16038. 800667c: 805a strh r2, [r3, #2]
  16039. SSD1306.Initialized = 1;
  16040. 800667e: 4b02 ldr r3, [pc, #8] ; (8006688 <ssd1306_Init+0xd0>)
  16041. 8006680: 2201 movs r2, #1
  16042. 8006682: 715a strb r2, [r3, #5]
  16043. }
  16044. 8006684: bf00 nop
  16045. 8006686: bd80 pop {r7, pc}
  16046. 8006688: 20000408 .word 0x20000408
  16047. 0800668c <ssd1306_Fill>:
  16048. // Fill the whole screen with the given color
  16049. void ssd1306_Fill(SSD1306_COLOR color) {
  16050. 800668c: b480 push {r7}
  16051. 800668e: b085 sub sp, #20
  16052. 8006690: af00 add r7, sp, #0
  16053. 8006692: 4603 mov r3, r0
  16054. 8006694: 71fb strb r3, [r7, #7]
  16055. /* Set memory */
  16056. uint32_t i;
  16057. for(i = 0; i < sizeof(SSD1306_Buffer); i++) {
  16058. 8006696: 2300 movs r3, #0
  16059. 8006698: 60fb str r3, [r7, #12]
  16060. 800669a: e00d b.n 80066b8 <ssd1306_Fill+0x2c>
  16061. SSD1306_Buffer[i] = (color == Black) ? 0x00 : 0xFF;
  16062. 800669c: 79fb ldrb r3, [r7, #7]
  16063. 800669e: 2b00 cmp r3, #0
  16064. 80066a0: d101 bne.n 80066a6 <ssd1306_Fill+0x1a>
  16065. 80066a2: 2100 movs r1, #0
  16066. 80066a4: e000 b.n 80066a8 <ssd1306_Fill+0x1c>
  16067. 80066a6: 21ff movs r1, #255 ; 0xff
  16068. 80066a8: 4a08 ldr r2, [pc, #32] ; (80066cc <ssd1306_Fill+0x40>)
  16069. 80066aa: 68fb ldr r3, [r7, #12]
  16070. 80066ac: 4413 add r3, r2
  16071. 80066ae: 460a mov r2, r1
  16072. 80066b0: 701a strb r2, [r3, #0]
  16073. for(i = 0; i < sizeof(SSD1306_Buffer); i++) {
  16074. 80066b2: 68fb ldr r3, [r7, #12]
  16075. 80066b4: 3301 adds r3, #1
  16076. 80066b6: 60fb str r3, [r7, #12]
  16077. 80066b8: 68fb ldr r3, [r7, #12]
  16078. 80066ba: f5b3 7f00 cmp.w r3, #512 ; 0x200
  16079. 80066be: d3ed bcc.n 800669c <ssd1306_Fill+0x10>
  16080. }
  16081. }
  16082. 80066c0: bf00 nop
  16083. 80066c2: bf00 nop
  16084. 80066c4: 3714 adds r7, #20
  16085. 80066c6: 46bd mov sp, r7
  16086. 80066c8: bc80 pop {r7}
  16087. 80066ca: 4770 bx lr
  16088. 80066cc: 20000208 .word 0x20000208
  16089. 080066d0 <ssd1306_UpdateScreen>:
  16090. // Write the screenbuffer with changed to the screen
  16091. void ssd1306_UpdateScreen(void) {
  16092. 80066d0: b580 push {r7, lr}
  16093. 80066d2: b082 sub sp, #8
  16094. 80066d4: af00 add r7, sp, #0
  16095. // depends on the screen height:
  16096. //
  16097. // * 32px == 4 pages
  16098. // * 64px == 8 pages
  16099. // * 128px == 16 pages
  16100. for(uint8_t i = 0; i < SSD1306_HEIGHT/8; i++) {
  16101. 80066d6: 2300 movs r3, #0
  16102. 80066d8: 71fb strb r3, [r7, #7]
  16103. 80066da: e016 b.n 800670a <ssd1306_UpdateScreen+0x3a>
  16104. ssd1306_WriteCommand(0xB0 + i); // Set the current RAM page address.
  16105. 80066dc: 79fb ldrb r3, [r7, #7]
  16106. 80066de: 3b50 subs r3, #80 ; 0x50
  16107. 80066e0: b2db uxtb r3, r3
  16108. 80066e2: 4618 mov r0, r3
  16109. 80066e4: f7ff ff36 bl 8006554 <ssd1306_WriteCommand>
  16110. ssd1306_WriteCommand(0x00);
  16111. 80066e8: 2000 movs r0, #0
  16112. 80066ea: f7ff ff33 bl 8006554 <ssd1306_WriteCommand>
  16113. ssd1306_WriteCommand(0x10);
  16114. 80066ee: 2010 movs r0, #16
  16115. 80066f0: f7ff ff30 bl 8006554 <ssd1306_WriteCommand>
  16116. ssd1306_WriteData(&SSD1306_Buffer[SSD1306_WIDTH*i],SSD1306_WIDTH);
  16117. 80066f4: 79fb ldrb r3, [r7, #7]
  16118. 80066f6: 01db lsls r3, r3, #7
  16119. 80066f8: 4a08 ldr r2, [pc, #32] ; (800671c <ssd1306_UpdateScreen+0x4c>)
  16120. 80066fa: 4413 add r3, r2
  16121. 80066fc: 2180 movs r1, #128 ; 0x80
  16122. 80066fe: 4618 mov r0, r3
  16123. 8006700: f7ff ff40 bl 8006584 <ssd1306_WriteData>
  16124. for(uint8_t i = 0; i < SSD1306_HEIGHT/8; i++) {
  16125. 8006704: 79fb ldrb r3, [r7, #7]
  16126. 8006706: 3301 adds r3, #1
  16127. 8006708: 71fb strb r3, [r7, #7]
  16128. 800670a: 79fb ldrb r3, [r7, #7]
  16129. 800670c: 2b03 cmp r3, #3
  16130. 800670e: d9e5 bls.n 80066dc <ssd1306_UpdateScreen+0xc>
  16131. }
  16132. }
  16133. 8006710: bf00 nop
  16134. 8006712: bf00 nop
  16135. 8006714: 3708 adds r7, #8
  16136. 8006716: 46bd mov sp, r7
  16137. 8006718: bd80 pop {r7, pc}
  16138. 800671a: bf00 nop
  16139. 800671c: 20000208 .word 0x20000208
  16140. 08006720 <ssd1306_DrawPixel>:
  16141. // Draw one pixel in the screenbuffer
  16142. // X => X Coordinate
  16143. // Y => Y Coordinate
  16144. // color => Pixel color
  16145. void ssd1306_DrawPixel(uint8_t x, uint8_t y, SSD1306_COLOR color) {
  16146. 8006720: b480 push {r7}
  16147. 8006722: b083 sub sp, #12
  16148. 8006724: af00 add r7, sp, #0
  16149. 8006726: 4603 mov r3, r0
  16150. 8006728: 71fb strb r3, [r7, #7]
  16151. 800672a: 460b mov r3, r1
  16152. 800672c: 71bb strb r3, [r7, #6]
  16153. 800672e: 4613 mov r3, r2
  16154. 8006730: 717b strb r3, [r7, #5]
  16155. if(x >= SSD1306_WIDTH || y >= SSD1306_HEIGHT) {
  16156. 8006732: f997 3007 ldrsb.w r3, [r7, #7]
  16157. 8006736: 2b00 cmp r3, #0
  16158. 8006738: db48 blt.n 80067cc <ssd1306_DrawPixel+0xac>
  16159. 800673a: 79bb ldrb r3, [r7, #6]
  16160. 800673c: 2b1f cmp r3, #31
  16161. 800673e: d845 bhi.n 80067cc <ssd1306_DrawPixel+0xac>
  16162. // Don't write outside the buffer
  16163. return;
  16164. }
  16165. // Check if pixel should be inverted
  16166. if(SSD1306.Inverted) {
  16167. 8006740: 4b25 ldr r3, [pc, #148] ; (80067d8 <ssd1306_DrawPixel+0xb8>)
  16168. 8006742: 791b ldrb r3, [r3, #4]
  16169. 8006744: 2b00 cmp r3, #0
  16170. 8006746: d006 beq.n 8006756 <ssd1306_DrawPixel+0x36>
  16171. color = (SSD1306_COLOR)!color;
  16172. 8006748: 797b ldrb r3, [r7, #5]
  16173. 800674a: 2b00 cmp r3, #0
  16174. 800674c: bf0c ite eq
  16175. 800674e: 2301 moveq r3, #1
  16176. 8006750: 2300 movne r3, #0
  16177. 8006752: b2db uxtb r3, r3
  16178. 8006754: 717b strb r3, [r7, #5]
  16179. }
  16180. // Draw in the right color
  16181. if(color == White) {
  16182. 8006756: 797b ldrb r3, [r7, #5]
  16183. 8006758: 2b01 cmp r3, #1
  16184. 800675a: d11a bne.n 8006792 <ssd1306_DrawPixel+0x72>
  16185. SSD1306_Buffer[x + (y / 8) * SSD1306_WIDTH] |= 1 << (y % 8);
  16186. 800675c: 79fa ldrb r2, [r7, #7]
  16187. 800675e: 79bb ldrb r3, [r7, #6]
  16188. 8006760: 08db lsrs r3, r3, #3
  16189. 8006762: b2d8 uxtb r0, r3
  16190. 8006764: 4603 mov r3, r0
  16191. 8006766: 01db lsls r3, r3, #7
  16192. 8006768: 4413 add r3, r2
  16193. 800676a: 4a1c ldr r2, [pc, #112] ; (80067dc <ssd1306_DrawPixel+0xbc>)
  16194. 800676c: 5cd3 ldrb r3, [r2, r3]
  16195. 800676e: b25a sxtb r2, r3
  16196. 8006770: 79bb ldrb r3, [r7, #6]
  16197. 8006772: f003 0307 and.w r3, r3, #7
  16198. 8006776: 2101 movs r1, #1
  16199. 8006778: fa01 f303 lsl.w r3, r1, r3
  16200. 800677c: b25b sxtb r3, r3
  16201. 800677e: 4313 orrs r3, r2
  16202. 8006780: b259 sxtb r1, r3
  16203. 8006782: 79fa ldrb r2, [r7, #7]
  16204. 8006784: 4603 mov r3, r0
  16205. 8006786: 01db lsls r3, r3, #7
  16206. 8006788: 4413 add r3, r2
  16207. 800678a: b2c9 uxtb r1, r1
  16208. 800678c: 4a13 ldr r2, [pc, #76] ; (80067dc <ssd1306_DrawPixel+0xbc>)
  16209. 800678e: 54d1 strb r1, [r2, r3]
  16210. 8006790: e01d b.n 80067ce <ssd1306_DrawPixel+0xae>
  16211. } else {
  16212. SSD1306_Buffer[x + (y / 8) * SSD1306_WIDTH] &= ~(1 << (y % 8));
  16213. 8006792: 79fa ldrb r2, [r7, #7]
  16214. 8006794: 79bb ldrb r3, [r7, #6]
  16215. 8006796: 08db lsrs r3, r3, #3
  16216. 8006798: b2d8 uxtb r0, r3
  16217. 800679a: 4603 mov r3, r0
  16218. 800679c: 01db lsls r3, r3, #7
  16219. 800679e: 4413 add r3, r2
  16220. 80067a0: 4a0e ldr r2, [pc, #56] ; (80067dc <ssd1306_DrawPixel+0xbc>)
  16221. 80067a2: 5cd3 ldrb r3, [r2, r3]
  16222. 80067a4: b25a sxtb r2, r3
  16223. 80067a6: 79bb ldrb r3, [r7, #6]
  16224. 80067a8: f003 0307 and.w r3, r3, #7
  16225. 80067ac: 2101 movs r1, #1
  16226. 80067ae: fa01 f303 lsl.w r3, r1, r3
  16227. 80067b2: b25b sxtb r3, r3
  16228. 80067b4: 43db mvns r3, r3
  16229. 80067b6: b25b sxtb r3, r3
  16230. 80067b8: 4013 ands r3, r2
  16231. 80067ba: b259 sxtb r1, r3
  16232. 80067bc: 79fa ldrb r2, [r7, #7]
  16233. 80067be: 4603 mov r3, r0
  16234. 80067c0: 01db lsls r3, r3, #7
  16235. 80067c2: 4413 add r3, r2
  16236. 80067c4: b2c9 uxtb r1, r1
  16237. 80067c6: 4a05 ldr r2, [pc, #20] ; (80067dc <ssd1306_DrawPixel+0xbc>)
  16238. 80067c8: 54d1 strb r1, [r2, r3]
  16239. 80067ca: e000 b.n 80067ce <ssd1306_DrawPixel+0xae>
  16240. return;
  16241. 80067cc: bf00 nop
  16242. }
  16243. }
  16244. 80067ce: 370c adds r7, #12
  16245. 80067d0: 46bd mov sp, r7
  16246. 80067d2: bc80 pop {r7}
  16247. 80067d4: 4770 bx lr
  16248. 80067d6: bf00 nop
  16249. 80067d8: 20000408 .word 0x20000408
  16250. 80067dc: 20000208 .word 0x20000208
  16251. 080067e0 <ssd1306_WriteChar>:
  16252. // Draw 1 char to the screen buffer
  16253. // ch => char om weg te schrijven
  16254. // Font => Font waarmee we gaan schrijven
  16255. // color => Black or White
  16256. char ssd1306_WriteChar(char ch, FontDef Font, SSD1306_COLOR color) {
  16257. 80067e0: b590 push {r4, r7, lr}
  16258. 80067e2: b089 sub sp, #36 ; 0x24
  16259. 80067e4: af00 add r7, sp, #0
  16260. 80067e6: 4604 mov r4, r0
  16261. 80067e8: 1d38 adds r0, r7, #4
  16262. 80067ea: e880 0006 stmia.w r0, {r1, r2}
  16263. 80067ee: 461a mov r2, r3
  16264. 80067f0: 4623 mov r3, r4
  16265. 80067f2: 73fb strb r3, [r7, #15]
  16266. 80067f4: 4613 mov r3, r2
  16267. 80067f6: 73bb strb r3, [r7, #14]
  16268. uint32_t i, b, j;
  16269. // Check if character is valid
  16270. if (ch < 32 || ch > 126)
  16271. 80067f8: 7bfb ldrb r3, [r7, #15]
  16272. 80067fa: 2b1f cmp r3, #31
  16273. 80067fc: d902 bls.n 8006804 <ssd1306_WriteChar+0x24>
  16274. 80067fe: 7bfb ldrb r3, [r7, #15]
  16275. 8006800: 2b7e cmp r3, #126 ; 0x7e
  16276. 8006802: d901 bls.n 8006808 <ssd1306_WriteChar+0x28>
  16277. return 0;
  16278. 8006804: 2300 movs r3, #0
  16279. 8006806: e06d b.n 80068e4 <ssd1306_WriteChar+0x104>
  16280. // Check remaining space on current line
  16281. if (SSD1306_WIDTH < (SSD1306.CurrentX + Font.FontWidth) ||
  16282. 8006808: 4b38 ldr r3, [pc, #224] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16283. 800680a: 881b ldrh r3, [r3, #0]
  16284. 800680c: 461a mov r2, r3
  16285. 800680e: 793b ldrb r3, [r7, #4]
  16286. 8006810: 4413 add r3, r2
  16287. 8006812: 2b80 cmp r3, #128 ; 0x80
  16288. 8006814: dc06 bgt.n 8006824 <ssd1306_WriteChar+0x44>
  16289. SSD1306_HEIGHT < (SSD1306.CurrentY + Font.FontHeight))
  16290. 8006816: 4b35 ldr r3, [pc, #212] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16291. 8006818: 885b ldrh r3, [r3, #2]
  16292. 800681a: 461a mov r2, r3
  16293. 800681c: 797b ldrb r3, [r7, #5]
  16294. 800681e: 4413 add r3, r2
  16295. if (SSD1306_WIDTH < (SSD1306.CurrentX + Font.FontWidth) ||
  16296. 8006820: 2b20 cmp r3, #32
  16297. 8006822: dd01 ble.n 8006828 <ssd1306_WriteChar+0x48>
  16298. {
  16299. // Not enough space on current line
  16300. return 0;
  16301. 8006824: 2300 movs r3, #0
  16302. 8006826: e05d b.n 80068e4 <ssd1306_WriteChar+0x104>
  16303. }
  16304. // Use the font to write
  16305. for(i = 0; i < Font.FontHeight; i++) {
  16306. 8006828: 2300 movs r3, #0
  16307. 800682a: 61fb str r3, [r7, #28]
  16308. 800682c: e04c b.n 80068c8 <ssd1306_WriteChar+0xe8>
  16309. b = Font.data[(ch - 32) * Font.FontHeight + i];
  16310. 800682e: 68ba ldr r2, [r7, #8]
  16311. 8006830: 7bfb ldrb r3, [r7, #15]
  16312. 8006832: 3b20 subs r3, #32
  16313. 8006834: 7979 ldrb r1, [r7, #5]
  16314. 8006836: fb01 f303 mul.w r3, r1, r3
  16315. 800683a: 4619 mov r1, r3
  16316. 800683c: 69fb ldr r3, [r7, #28]
  16317. 800683e: 440b add r3, r1
  16318. 8006840: 005b lsls r3, r3, #1
  16319. 8006842: 4413 add r3, r2
  16320. 8006844: 881b ldrh r3, [r3, #0]
  16321. 8006846: 617b str r3, [r7, #20]
  16322. for(j = 0; j < Font.FontWidth; j++) {
  16323. 8006848: 2300 movs r3, #0
  16324. 800684a: 61bb str r3, [r7, #24]
  16325. 800684c: e034 b.n 80068b8 <ssd1306_WriteChar+0xd8>
  16326. if((b << j) & 0x8000) {
  16327. 800684e: 697a ldr r2, [r7, #20]
  16328. 8006850: 69bb ldr r3, [r7, #24]
  16329. 8006852: fa02 f303 lsl.w r3, r2, r3
  16330. 8006856: f403 4300 and.w r3, r3, #32768 ; 0x8000
  16331. 800685a: 2b00 cmp r3, #0
  16332. 800685c: d012 beq.n 8006884 <ssd1306_WriteChar+0xa4>
  16333. ssd1306_DrawPixel(SSD1306.CurrentX + j, (SSD1306.CurrentY + i), (SSD1306_COLOR) color);
  16334. 800685e: 4b23 ldr r3, [pc, #140] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16335. 8006860: 881b ldrh r3, [r3, #0]
  16336. 8006862: b2da uxtb r2, r3
  16337. 8006864: 69bb ldr r3, [r7, #24]
  16338. 8006866: b2db uxtb r3, r3
  16339. 8006868: 4413 add r3, r2
  16340. 800686a: b2d8 uxtb r0, r3
  16341. 800686c: 4b1f ldr r3, [pc, #124] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16342. 800686e: 885b ldrh r3, [r3, #2]
  16343. 8006870: b2da uxtb r2, r3
  16344. 8006872: 69fb ldr r3, [r7, #28]
  16345. 8006874: b2db uxtb r3, r3
  16346. 8006876: 4413 add r3, r2
  16347. 8006878: b2db uxtb r3, r3
  16348. 800687a: 7bba ldrb r2, [r7, #14]
  16349. 800687c: 4619 mov r1, r3
  16350. 800687e: f7ff ff4f bl 8006720 <ssd1306_DrawPixel>
  16351. 8006882: e016 b.n 80068b2 <ssd1306_WriteChar+0xd2>
  16352. } else {
  16353. ssd1306_DrawPixel(SSD1306.CurrentX + j, (SSD1306.CurrentY + i), (SSD1306_COLOR)!color);
  16354. 8006884: 4b19 ldr r3, [pc, #100] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16355. 8006886: 881b ldrh r3, [r3, #0]
  16356. 8006888: b2da uxtb r2, r3
  16357. 800688a: 69bb ldr r3, [r7, #24]
  16358. 800688c: b2db uxtb r3, r3
  16359. 800688e: 4413 add r3, r2
  16360. 8006890: b2d8 uxtb r0, r3
  16361. 8006892: 4b16 ldr r3, [pc, #88] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16362. 8006894: 885b ldrh r3, [r3, #2]
  16363. 8006896: b2da uxtb r2, r3
  16364. 8006898: 69fb ldr r3, [r7, #28]
  16365. 800689a: b2db uxtb r3, r3
  16366. 800689c: 4413 add r3, r2
  16367. 800689e: b2d9 uxtb r1, r3
  16368. 80068a0: 7bbb ldrb r3, [r7, #14]
  16369. 80068a2: 2b00 cmp r3, #0
  16370. 80068a4: bf0c ite eq
  16371. 80068a6: 2301 moveq r3, #1
  16372. 80068a8: 2300 movne r3, #0
  16373. 80068aa: b2db uxtb r3, r3
  16374. 80068ac: 461a mov r2, r3
  16375. 80068ae: f7ff ff37 bl 8006720 <ssd1306_DrawPixel>
  16376. for(j = 0; j < Font.FontWidth; j++) {
  16377. 80068b2: 69bb ldr r3, [r7, #24]
  16378. 80068b4: 3301 adds r3, #1
  16379. 80068b6: 61bb str r3, [r7, #24]
  16380. 80068b8: 793b ldrb r3, [r7, #4]
  16381. 80068ba: 461a mov r2, r3
  16382. 80068bc: 69bb ldr r3, [r7, #24]
  16383. 80068be: 4293 cmp r3, r2
  16384. 80068c0: d3c5 bcc.n 800684e <ssd1306_WriteChar+0x6e>
  16385. for(i = 0; i < Font.FontHeight; i++) {
  16386. 80068c2: 69fb ldr r3, [r7, #28]
  16387. 80068c4: 3301 adds r3, #1
  16388. 80068c6: 61fb str r3, [r7, #28]
  16389. 80068c8: 797b ldrb r3, [r7, #5]
  16390. 80068ca: 461a mov r2, r3
  16391. 80068cc: 69fb ldr r3, [r7, #28]
  16392. 80068ce: 4293 cmp r3, r2
  16393. 80068d0: d3ad bcc.n 800682e <ssd1306_WriteChar+0x4e>
  16394. }
  16395. }
  16396. }
  16397. // The current space is now taken
  16398. SSD1306.CurrentX += Font.FontWidth;
  16399. 80068d2: 4b06 ldr r3, [pc, #24] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16400. 80068d4: 881a ldrh r2, [r3, #0]
  16401. 80068d6: 793b ldrb r3, [r7, #4]
  16402. 80068d8: b29b uxth r3, r3
  16403. 80068da: 4413 add r3, r2
  16404. 80068dc: b29a uxth r2, r3
  16405. 80068de: 4b03 ldr r3, [pc, #12] ; (80068ec <ssd1306_WriteChar+0x10c>)
  16406. 80068e0: 801a strh r2, [r3, #0]
  16407. // Return written char for validation
  16408. return ch;
  16409. 80068e2: 7bfb ldrb r3, [r7, #15]
  16410. }
  16411. 80068e4: 4618 mov r0, r3
  16412. 80068e6: 3724 adds r7, #36 ; 0x24
  16413. 80068e8: 46bd mov sp, r7
  16414. 80068ea: bd90 pop {r4, r7, pc}
  16415. 80068ec: 20000408 .word 0x20000408
  16416. 080068f0 <ssd1306_WriteString>:
  16417. // Write full string to screenbuffer
  16418. char ssd1306_WriteString(char* str, FontDef Font, SSD1306_COLOR color) {
  16419. 80068f0: b580 push {r7, lr}
  16420. 80068f2: b084 sub sp, #16
  16421. 80068f4: af00 add r7, sp, #0
  16422. 80068f6: 60f8 str r0, [r7, #12]
  16423. 80068f8: 1d38 adds r0, r7, #4
  16424. 80068fa: e880 0006 stmia.w r0, {r1, r2}
  16425. 80068fe: 70fb strb r3, [r7, #3]
  16426. // Write until null-byte
  16427. while (*str) {
  16428. 8006900: e012 b.n 8006928 <ssd1306_WriteString+0x38>
  16429. if (ssd1306_WriteChar(*str, Font, color) != *str) {
  16430. 8006902: 68fb ldr r3, [r7, #12]
  16431. 8006904: 7818 ldrb r0, [r3, #0]
  16432. 8006906: 78fb ldrb r3, [r7, #3]
  16433. 8006908: 1d3a adds r2, r7, #4
  16434. 800690a: ca06 ldmia r2, {r1, r2}
  16435. 800690c: f7ff ff68 bl 80067e0 <ssd1306_WriteChar>
  16436. 8006910: 4603 mov r3, r0
  16437. 8006912: 461a mov r2, r3
  16438. 8006914: 68fb ldr r3, [r7, #12]
  16439. 8006916: 781b ldrb r3, [r3, #0]
  16440. 8006918: 429a cmp r2, r3
  16441. 800691a: d002 beq.n 8006922 <ssd1306_WriteString+0x32>
  16442. // Char could not be written
  16443. return *str;
  16444. 800691c: 68fb ldr r3, [r7, #12]
  16445. 800691e: 781b ldrb r3, [r3, #0]
  16446. 8006920: e008 b.n 8006934 <ssd1306_WriteString+0x44>
  16447. }
  16448. // Next char
  16449. str++;
  16450. 8006922: 68fb ldr r3, [r7, #12]
  16451. 8006924: 3301 adds r3, #1
  16452. 8006926: 60fb str r3, [r7, #12]
  16453. while (*str) {
  16454. 8006928: 68fb ldr r3, [r7, #12]
  16455. 800692a: 781b ldrb r3, [r3, #0]
  16456. 800692c: 2b00 cmp r3, #0
  16457. 800692e: d1e8 bne.n 8006902 <ssd1306_WriteString+0x12>
  16458. }
  16459. // Everything ok
  16460. return *str;
  16461. 8006930: 68fb ldr r3, [r7, #12]
  16462. 8006932: 781b ldrb r3, [r3, #0]
  16463. }
  16464. 8006934: 4618 mov r0, r3
  16465. 8006936: 3710 adds r7, #16
  16466. 8006938: 46bd mov sp, r7
  16467. 800693a: bd80 pop {r7, pc}
  16468. 0800693c <ssd1306_SetCursor>:
  16469. // Position the cursor
  16470. void ssd1306_SetCursor(uint8_t x, uint8_t y) {
  16471. 800693c: b480 push {r7}
  16472. 800693e: b083 sub sp, #12
  16473. 8006940: af00 add r7, sp, #0
  16474. 8006942: 4603 mov r3, r0
  16475. 8006944: 460a mov r2, r1
  16476. 8006946: 71fb strb r3, [r7, #7]
  16477. 8006948: 4613 mov r3, r2
  16478. 800694a: 71bb strb r3, [r7, #6]
  16479. SSD1306.CurrentX = x;
  16480. 800694c: 79fb ldrb r3, [r7, #7]
  16481. 800694e: b29a uxth r2, r3
  16482. 8006950: 4b05 ldr r3, [pc, #20] ; (8006968 <ssd1306_SetCursor+0x2c>)
  16483. 8006952: 801a strh r2, [r3, #0]
  16484. SSD1306.CurrentY = y;
  16485. 8006954: 79bb ldrb r3, [r7, #6]
  16486. 8006956: b29a uxth r2, r3
  16487. 8006958: 4b03 ldr r3, [pc, #12] ; (8006968 <ssd1306_SetCursor+0x2c>)
  16488. 800695a: 805a strh r2, [r3, #2]
  16489. }
  16490. 800695c: bf00 nop
  16491. 800695e: 370c adds r7, #12
  16492. 8006960: 46bd mov sp, r7
  16493. 8006962: bc80 pop {r7}
  16494. 8006964: 4770 bx lr
  16495. 8006966: bf00 nop
  16496. 8006968: 20000408 .word 0x20000408
  16497. 0800696c <ssd1306_Line>:
  16498. // Draw line by Bresenhem's algorithm
  16499. void ssd1306_Line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) {
  16500. 800696c: b590 push {r4, r7, lr}
  16501. 800696e: b089 sub sp, #36 ; 0x24
  16502. 8006970: af00 add r7, sp, #0
  16503. 8006972: 4604 mov r4, r0
  16504. 8006974: 4608 mov r0, r1
  16505. 8006976: 4611 mov r1, r2
  16506. 8006978: 461a mov r2, r3
  16507. 800697a: 4623 mov r3, r4
  16508. 800697c: 71fb strb r3, [r7, #7]
  16509. 800697e: 4603 mov r3, r0
  16510. 8006980: 71bb strb r3, [r7, #6]
  16511. 8006982: 460b mov r3, r1
  16512. 8006984: 717b strb r3, [r7, #5]
  16513. 8006986: 4613 mov r3, r2
  16514. 8006988: 713b strb r3, [r7, #4]
  16515. int32_t deltaX = abs(x2 - x1);
  16516. 800698a: 797a ldrb r2, [r7, #5]
  16517. 800698c: 79fb ldrb r3, [r7, #7]
  16518. 800698e: 1ad3 subs r3, r2, r3
  16519. 8006990: 2b00 cmp r3, #0
  16520. 8006992: bfb8 it lt
  16521. 8006994: 425b neglt r3, r3
  16522. 8006996: 61bb str r3, [r7, #24]
  16523. int32_t deltaY = abs(y2 - y1);
  16524. 8006998: 793a ldrb r2, [r7, #4]
  16525. 800699a: 79bb ldrb r3, [r7, #6]
  16526. 800699c: 1ad3 subs r3, r2, r3
  16527. 800699e: 2b00 cmp r3, #0
  16528. 80069a0: bfb8 it lt
  16529. 80069a2: 425b neglt r3, r3
  16530. 80069a4: 617b str r3, [r7, #20]
  16531. int32_t signX = ((x1 < x2) ? 1 : -1);
  16532. 80069a6: 79fa ldrb r2, [r7, #7]
  16533. 80069a8: 797b ldrb r3, [r7, #5]
  16534. 80069aa: 429a cmp r2, r3
  16535. 80069ac: d201 bcs.n 80069b2 <ssd1306_Line+0x46>
  16536. 80069ae: 2301 movs r3, #1
  16537. 80069b0: e001 b.n 80069b6 <ssd1306_Line+0x4a>
  16538. 80069b2: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  16539. 80069b6: 613b str r3, [r7, #16]
  16540. int32_t signY = ((y1 < y2) ? 1 : -1);
  16541. 80069b8: 79ba ldrb r2, [r7, #6]
  16542. 80069ba: 793b ldrb r3, [r7, #4]
  16543. 80069bc: 429a cmp r2, r3
  16544. 80069be: d201 bcs.n 80069c4 <ssd1306_Line+0x58>
  16545. 80069c0: 2301 movs r3, #1
  16546. 80069c2: e001 b.n 80069c8 <ssd1306_Line+0x5c>
  16547. 80069c4: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  16548. 80069c8: 60fb str r3, [r7, #12]
  16549. int32_t error = deltaX - deltaY;
  16550. 80069ca: 69ba ldr r2, [r7, #24]
  16551. 80069cc: 697b ldr r3, [r7, #20]
  16552. 80069ce: 1ad3 subs r3, r2, r3
  16553. 80069d0: 61fb str r3, [r7, #28]
  16554. int32_t error2;
  16555. ssd1306_DrawPixel(x2, y2, color);
  16556. 80069d2: f897 2030 ldrb.w r2, [r7, #48] ; 0x30
  16557. 80069d6: 7939 ldrb r1, [r7, #4]
  16558. 80069d8: 797b ldrb r3, [r7, #5]
  16559. 80069da: 4618 mov r0, r3
  16560. 80069dc: f7ff fea0 bl 8006720 <ssd1306_DrawPixel>
  16561. while((x1 != x2) || (y1 != y2))
  16562. 80069e0: e024 b.n 8006a2c <ssd1306_Line+0xc0>
  16563. {
  16564. ssd1306_DrawPixel(x1, y1, color);
  16565. 80069e2: f897 2030 ldrb.w r2, [r7, #48] ; 0x30
  16566. 80069e6: 79b9 ldrb r1, [r7, #6]
  16567. 80069e8: 79fb ldrb r3, [r7, #7]
  16568. 80069ea: 4618 mov r0, r3
  16569. 80069ec: f7ff fe98 bl 8006720 <ssd1306_DrawPixel>
  16570. error2 = error * 2;
  16571. 80069f0: 69fb ldr r3, [r7, #28]
  16572. 80069f2: 005b lsls r3, r3, #1
  16573. 80069f4: 60bb str r3, [r7, #8]
  16574. if(error2 > -deltaY)
  16575. 80069f6: 697b ldr r3, [r7, #20]
  16576. 80069f8: 425b negs r3, r3
  16577. 80069fa: 68ba ldr r2, [r7, #8]
  16578. 80069fc: 429a cmp r2, r3
  16579. 80069fe: dd08 ble.n 8006a12 <ssd1306_Line+0xa6>
  16580. {
  16581. error -= deltaY;
  16582. 8006a00: 69fa ldr r2, [r7, #28]
  16583. 8006a02: 697b ldr r3, [r7, #20]
  16584. 8006a04: 1ad3 subs r3, r2, r3
  16585. 8006a06: 61fb str r3, [r7, #28]
  16586. x1 += signX;
  16587. 8006a08: 693b ldr r3, [r7, #16]
  16588. 8006a0a: b2da uxtb r2, r3
  16589. 8006a0c: 79fb ldrb r3, [r7, #7]
  16590. 8006a0e: 4413 add r3, r2
  16591. 8006a10: 71fb strb r3, [r7, #7]
  16592. else
  16593. {
  16594. /*nothing to do*/
  16595. }
  16596. if(error2 < deltaX)
  16597. 8006a12: 68ba ldr r2, [r7, #8]
  16598. 8006a14: 69bb ldr r3, [r7, #24]
  16599. 8006a16: 429a cmp r2, r3
  16600. 8006a18: da08 bge.n 8006a2c <ssd1306_Line+0xc0>
  16601. {
  16602. error += deltaX;
  16603. 8006a1a: 69fa ldr r2, [r7, #28]
  16604. 8006a1c: 69bb ldr r3, [r7, #24]
  16605. 8006a1e: 4413 add r3, r2
  16606. 8006a20: 61fb str r3, [r7, #28]
  16607. y1 += signY;
  16608. 8006a22: 68fb ldr r3, [r7, #12]
  16609. 8006a24: b2da uxtb r2, r3
  16610. 8006a26: 79bb ldrb r3, [r7, #6]
  16611. 8006a28: 4413 add r3, r2
  16612. 8006a2a: 71bb strb r3, [r7, #6]
  16613. while((x1 != x2) || (y1 != y2))
  16614. 8006a2c: 79fa ldrb r2, [r7, #7]
  16615. 8006a2e: 797b ldrb r3, [r7, #5]
  16616. 8006a30: 429a cmp r2, r3
  16617. 8006a32: d1d6 bne.n 80069e2 <ssd1306_Line+0x76>
  16618. 8006a34: 79ba ldrb r2, [r7, #6]
  16619. 8006a36: 793b ldrb r3, [r7, #4]
  16620. 8006a38: 429a cmp r2, r3
  16621. 8006a3a: d1d2 bne.n 80069e2 <ssd1306_Line+0x76>
  16622. else
  16623. {
  16624. /*nothing to do*/
  16625. }
  16626. }
  16627. return;
  16628. 8006a3c: bf00 nop
  16629. }
  16630. 8006a3e: 3724 adds r7, #36 ; 0x24
  16631. 8006a40: 46bd mov sp, r7
  16632. 8006a42: bd90 pop {r4, r7, pc}
  16633. 08006a44 <ssd1306_DrawRectangle>:
  16634. return;
  16635. }
  16636. //Draw rectangle
  16637. void ssd1306_DrawRectangle(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) {
  16638. 8006a44: b590 push {r4, r7, lr}
  16639. 8006a46: b085 sub sp, #20
  16640. 8006a48: af02 add r7, sp, #8
  16641. 8006a4a: 4604 mov r4, r0
  16642. 8006a4c: 4608 mov r0, r1
  16643. 8006a4e: 4611 mov r1, r2
  16644. 8006a50: 461a mov r2, r3
  16645. 8006a52: 4623 mov r3, r4
  16646. 8006a54: 71fb strb r3, [r7, #7]
  16647. 8006a56: 4603 mov r3, r0
  16648. 8006a58: 71bb strb r3, [r7, #6]
  16649. 8006a5a: 460b mov r3, r1
  16650. 8006a5c: 717b strb r3, [r7, #5]
  16651. 8006a5e: 4613 mov r3, r2
  16652. 8006a60: 713b strb r3, [r7, #4]
  16653. ssd1306_Line(x1,y1,x2,y1,color);
  16654. 8006a62: 79bc ldrb r4, [r7, #6]
  16655. 8006a64: 797a ldrb r2, [r7, #5]
  16656. 8006a66: 79b9 ldrb r1, [r7, #6]
  16657. 8006a68: 79f8 ldrb r0, [r7, #7]
  16658. 8006a6a: 7e3b ldrb r3, [r7, #24]
  16659. 8006a6c: 9300 str r3, [sp, #0]
  16660. 8006a6e: 4623 mov r3, r4
  16661. 8006a70: f7ff ff7c bl 800696c <ssd1306_Line>
  16662. ssd1306_Line(x2,y1,x2,y2,color);
  16663. 8006a74: 793c ldrb r4, [r7, #4]
  16664. 8006a76: 797a ldrb r2, [r7, #5]
  16665. 8006a78: 79b9 ldrb r1, [r7, #6]
  16666. 8006a7a: 7978 ldrb r0, [r7, #5]
  16667. 8006a7c: 7e3b ldrb r3, [r7, #24]
  16668. 8006a7e: 9300 str r3, [sp, #0]
  16669. 8006a80: 4623 mov r3, r4
  16670. 8006a82: f7ff ff73 bl 800696c <ssd1306_Line>
  16671. ssd1306_Line(x2,y2,x1,y2,color);
  16672. 8006a86: 793c ldrb r4, [r7, #4]
  16673. 8006a88: 79fa ldrb r2, [r7, #7]
  16674. 8006a8a: 7939 ldrb r1, [r7, #4]
  16675. 8006a8c: 7978 ldrb r0, [r7, #5]
  16676. 8006a8e: 7e3b ldrb r3, [r7, #24]
  16677. 8006a90: 9300 str r3, [sp, #0]
  16678. 8006a92: 4623 mov r3, r4
  16679. 8006a94: f7ff ff6a bl 800696c <ssd1306_Line>
  16680. ssd1306_Line(x1,y2,x1,y1,color);
  16681. 8006a98: 79bc ldrb r4, [r7, #6]
  16682. 8006a9a: 79fa ldrb r2, [r7, #7]
  16683. 8006a9c: 7939 ldrb r1, [r7, #4]
  16684. 8006a9e: 79f8 ldrb r0, [r7, #7]
  16685. 8006aa0: 7e3b ldrb r3, [r7, #24]
  16686. 8006aa2: 9300 str r3, [sp, #0]
  16687. 8006aa4: 4623 mov r3, r4
  16688. 8006aa6: f7ff ff61 bl 800696c <ssd1306_Line>
  16689. return;
  16690. 8006aaa: bf00 nop
  16691. }
  16692. 8006aac: 370c adds r7, #12
  16693. 8006aae: 46bd mov sp, r7
  16694. 8006ab0: bd90 pop {r4, r7, pc}
  16695. 08006ab2 <ssd1306_SetContrast>:
  16696. void ssd1306_SetContrast(const uint8_t value) {
  16697. 8006ab2: b580 push {r7, lr}
  16698. 8006ab4: b084 sub sp, #16
  16699. 8006ab6: af00 add r7, sp, #0
  16700. 8006ab8: 4603 mov r3, r0
  16701. 8006aba: 71fb strb r3, [r7, #7]
  16702. const uint8_t kSetContrastControlRegister = 0x81;
  16703. 8006abc: 2381 movs r3, #129 ; 0x81
  16704. 8006abe: 73fb strb r3, [r7, #15]
  16705. ssd1306_WriteCommand(kSetContrastControlRegister);
  16706. 8006ac0: 7bfb ldrb r3, [r7, #15]
  16707. 8006ac2: 4618 mov r0, r3
  16708. 8006ac4: f7ff fd46 bl 8006554 <ssd1306_WriteCommand>
  16709. ssd1306_WriteCommand(value);
  16710. 8006ac8: 79fb ldrb r3, [r7, #7]
  16711. 8006aca: 4618 mov r0, r3
  16712. 8006acc: f7ff fd42 bl 8006554 <ssd1306_WriteCommand>
  16713. }
  16714. 8006ad0: bf00 nop
  16715. 8006ad2: 3710 adds r7, #16
  16716. 8006ad4: 46bd mov sp, r7
  16717. 8006ad6: bd80 pop {r7, pc}
  16718. 08006ad8 <ssd1306_SetDisplayOn>:
  16719. void ssd1306_SetDisplayOn(const uint8_t on) {
  16720. 8006ad8: b580 push {r7, lr}
  16721. 8006ada: b084 sub sp, #16
  16722. 8006adc: af00 add r7, sp, #0
  16723. 8006ade: 4603 mov r3, r0
  16724. 8006ae0: 71fb strb r3, [r7, #7]
  16725. uint8_t value;
  16726. if (on) {
  16727. 8006ae2: 79fb ldrb r3, [r7, #7]
  16728. 8006ae4: 2b00 cmp r3, #0
  16729. 8006ae6: d005 beq.n 8006af4 <ssd1306_SetDisplayOn+0x1c>
  16730. value = 0xAF; // Display on
  16731. 8006ae8: 23af movs r3, #175 ; 0xaf
  16732. 8006aea: 73fb strb r3, [r7, #15]
  16733. SSD1306.DisplayOn = 1;
  16734. 8006aec: 4b08 ldr r3, [pc, #32] ; (8006b10 <ssd1306_SetDisplayOn+0x38>)
  16735. 8006aee: 2201 movs r2, #1
  16736. 8006af0: 719a strb r2, [r3, #6]
  16737. 8006af2: e004 b.n 8006afe <ssd1306_SetDisplayOn+0x26>
  16738. } else {
  16739. value = 0xAE; // Display off
  16740. 8006af4: 23ae movs r3, #174 ; 0xae
  16741. 8006af6: 73fb strb r3, [r7, #15]
  16742. SSD1306.DisplayOn = 0;
  16743. 8006af8: 4b05 ldr r3, [pc, #20] ; (8006b10 <ssd1306_SetDisplayOn+0x38>)
  16744. 8006afa: 2200 movs r2, #0
  16745. 8006afc: 719a strb r2, [r3, #6]
  16746. }
  16747. ssd1306_WriteCommand(value);
  16748. 8006afe: 7bfb ldrb r3, [r7, #15]
  16749. 8006b00: 4618 mov r0, r3
  16750. 8006b02: f7ff fd27 bl 8006554 <ssd1306_WriteCommand>
  16751. }
  16752. 8006b06: bf00 nop
  16753. 8006b08: 3710 adds r7, #16
  16754. 8006b0a: 46bd mov sp, r7
  16755. 8006b0c: bd80 pop {r7, pc}
  16756. 8006b0e: bf00 nop
  16757. 8006b10: 20000408 .word 0x20000408
  16758. 08006b14 <__errno>:
  16759. 8006b14: 4b01 ldr r3, [pc, #4] ; (8006b1c <__errno+0x8>)
  16760. 8006b16: 6818 ldr r0, [r3, #0]
  16761. 8006b18: 4770 bx lr
  16762. 8006b1a: bf00 nop
  16763. 8006b1c: 20000014 .word 0x20000014
  16764. 08006b20 <__libc_init_array>:
  16765. 8006b20: b570 push {r4, r5, r6, lr}
  16766. 8006b22: 2600 movs r6, #0
  16767. 8006b24: 4d0c ldr r5, [pc, #48] ; (8006b58 <__libc_init_array+0x38>)
  16768. 8006b26: 4c0d ldr r4, [pc, #52] ; (8006b5c <__libc_init_array+0x3c>)
  16769. 8006b28: 1b64 subs r4, r4, r5
  16770. 8006b2a: 10a4 asrs r4, r4, #2
  16771. 8006b2c: 42a6 cmp r6, r4
  16772. 8006b2e: d109 bne.n 8006b44 <__libc_init_array+0x24>
  16773. 8006b30: f002 febc bl 80098ac <_init>
  16774. 8006b34: 2600 movs r6, #0
  16775. 8006b36: 4d0a ldr r5, [pc, #40] ; (8006b60 <__libc_init_array+0x40>)
  16776. 8006b38: 4c0a ldr r4, [pc, #40] ; (8006b64 <__libc_init_array+0x44>)
  16777. 8006b3a: 1b64 subs r4, r4, r5
  16778. 8006b3c: 10a4 asrs r4, r4, #2
  16779. 8006b3e: 42a6 cmp r6, r4
  16780. 8006b40: d105 bne.n 8006b4e <__libc_init_array+0x2e>
  16781. 8006b42: bd70 pop {r4, r5, r6, pc}
  16782. 8006b44: f855 3b04 ldr.w r3, [r5], #4
  16783. 8006b48: 4798 blx r3
  16784. 8006b4a: 3601 adds r6, #1
  16785. 8006b4c: e7ee b.n 8006b2c <__libc_init_array+0xc>
  16786. 8006b4e: f855 3b04 ldr.w r3, [r5], #4
  16787. 8006b52: 4798 blx r3
  16788. 8006b54: 3601 adds r6, #1
  16789. 8006b56: e7f2 b.n 8006b3e <__libc_init_array+0x1e>
  16790. 8006b58: 0800aa3c .word 0x0800aa3c
  16791. 8006b5c: 0800aa3c .word 0x0800aa3c
  16792. 8006b60: 0800aa3c .word 0x0800aa3c
  16793. 8006b64: 0800aa40 .word 0x0800aa40
  16794. 08006b68 <memcpy>:
  16795. 8006b68: 440a add r2, r1
  16796. 8006b6a: 4291 cmp r1, r2
  16797. 8006b6c: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff
  16798. 8006b70: d100 bne.n 8006b74 <memcpy+0xc>
  16799. 8006b72: 4770 bx lr
  16800. 8006b74: b510 push {r4, lr}
  16801. 8006b76: f811 4b01 ldrb.w r4, [r1], #1
  16802. 8006b7a: 4291 cmp r1, r2
  16803. 8006b7c: f803 4f01 strb.w r4, [r3, #1]!
  16804. 8006b80: d1f9 bne.n 8006b76 <memcpy+0xe>
  16805. 8006b82: bd10 pop {r4, pc}
  16806. 08006b84 <memmove>:
  16807. 8006b84: 4288 cmp r0, r1
  16808. 8006b86: b510 push {r4, lr}
  16809. 8006b88: eb01 0402 add.w r4, r1, r2
  16810. 8006b8c: d902 bls.n 8006b94 <memmove+0x10>
  16811. 8006b8e: 4284 cmp r4, r0
  16812. 8006b90: 4623 mov r3, r4
  16813. 8006b92: d807 bhi.n 8006ba4 <memmove+0x20>
  16814. 8006b94: 1e43 subs r3, r0, #1
  16815. 8006b96: 42a1 cmp r1, r4
  16816. 8006b98: d008 beq.n 8006bac <memmove+0x28>
  16817. 8006b9a: f811 2b01 ldrb.w r2, [r1], #1
  16818. 8006b9e: f803 2f01 strb.w r2, [r3, #1]!
  16819. 8006ba2: e7f8 b.n 8006b96 <memmove+0x12>
  16820. 8006ba4: 4601 mov r1, r0
  16821. 8006ba6: 4402 add r2, r0
  16822. 8006ba8: 428a cmp r2, r1
  16823. 8006baa: d100 bne.n 8006bae <memmove+0x2a>
  16824. 8006bac: bd10 pop {r4, pc}
  16825. 8006bae: f813 4d01 ldrb.w r4, [r3, #-1]!
  16826. 8006bb2: f802 4d01 strb.w r4, [r2, #-1]!
  16827. 8006bb6: e7f7 b.n 8006ba8 <memmove+0x24>
  16828. 08006bb8 <memset>:
  16829. 8006bb8: 4603 mov r3, r0
  16830. 8006bba: 4402 add r2, r0
  16831. 8006bbc: 4293 cmp r3, r2
  16832. 8006bbe: d100 bne.n 8006bc2 <memset+0xa>
  16833. 8006bc0: 4770 bx lr
  16834. 8006bc2: f803 1b01 strb.w r1, [r3], #1
  16835. 8006bc6: e7f9 b.n 8006bbc <memset+0x4>
  16836. 08006bc8 <__cvt>:
  16837. 8006bc8: 2b00 cmp r3, #0
  16838. 8006bca: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  16839. 8006bce: 461f mov r7, r3
  16840. 8006bd0: bfbb ittet lt
  16841. 8006bd2: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000
  16842. 8006bd6: 461f movlt r7, r3
  16843. 8006bd8: 2300 movge r3, #0
  16844. 8006bda: 232d movlt r3, #45 ; 0x2d
  16845. 8006bdc: b088 sub sp, #32
  16846. 8006bde: 4614 mov r4, r2
  16847. 8006be0: 9a12 ldr r2, [sp, #72] ; 0x48
  16848. 8006be2: 9d10 ldr r5, [sp, #64] ; 0x40
  16849. 8006be4: 7013 strb r3, [r2, #0]
  16850. 8006be6: 9b14 ldr r3, [sp, #80] ; 0x50
  16851. 8006be8: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c
  16852. 8006bec: f023 0820 bic.w r8, r3, #32
  16853. 8006bf0: f1b8 0f46 cmp.w r8, #70 ; 0x46
  16854. 8006bf4: d005 beq.n 8006c02 <__cvt+0x3a>
  16855. 8006bf6: f1b8 0f45 cmp.w r8, #69 ; 0x45
  16856. 8006bfa: d100 bne.n 8006bfe <__cvt+0x36>
  16857. 8006bfc: 3501 adds r5, #1
  16858. 8006bfe: 2302 movs r3, #2
  16859. 8006c00: e000 b.n 8006c04 <__cvt+0x3c>
  16860. 8006c02: 2303 movs r3, #3
  16861. 8006c04: aa07 add r2, sp, #28
  16862. 8006c06: 9204 str r2, [sp, #16]
  16863. 8006c08: aa06 add r2, sp, #24
  16864. 8006c0a: e9cd a202 strd sl, r2, [sp, #8]
  16865. 8006c0e: e9cd 3500 strd r3, r5, [sp]
  16866. 8006c12: 4622 mov r2, r4
  16867. 8006c14: 463b mov r3, r7
  16868. 8006c16: f000 fce7 bl 80075e8 <_dtoa_r>
  16869. 8006c1a: f1b8 0f47 cmp.w r8, #71 ; 0x47
  16870. 8006c1e: 4606 mov r6, r0
  16871. 8006c20: d102 bne.n 8006c28 <__cvt+0x60>
  16872. 8006c22: 9b11 ldr r3, [sp, #68] ; 0x44
  16873. 8006c24: 07db lsls r3, r3, #31
  16874. 8006c26: d522 bpl.n 8006c6e <__cvt+0xa6>
  16875. 8006c28: f1b8 0f46 cmp.w r8, #70 ; 0x46
  16876. 8006c2c: eb06 0905 add.w r9, r6, r5
  16877. 8006c30: d110 bne.n 8006c54 <__cvt+0x8c>
  16878. 8006c32: 7833 ldrb r3, [r6, #0]
  16879. 8006c34: 2b30 cmp r3, #48 ; 0x30
  16880. 8006c36: d10a bne.n 8006c4e <__cvt+0x86>
  16881. 8006c38: 2200 movs r2, #0
  16882. 8006c3a: 2300 movs r3, #0
  16883. 8006c3c: 4620 mov r0, r4
  16884. 8006c3e: 4639 mov r1, r7
  16885. 8006c40: f7f9 feca bl 80009d8 <__aeabi_dcmpeq>
  16886. 8006c44: b918 cbnz r0, 8006c4e <__cvt+0x86>
  16887. 8006c46: f1c5 0501 rsb r5, r5, #1
  16888. 8006c4a: f8ca 5000 str.w r5, [sl]
  16889. 8006c4e: f8da 3000 ldr.w r3, [sl]
  16890. 8006c52: 4499 add r9, r3
  16891. 8006c54: 2200 movs r2, #0
  16892. 8006c56: 2300 movs r3, #0
  16893. 8006c58: 4620 mov r0, r4
  16894. 8006c5a: 4639 mov r1, r7
  16895. 8006c5c: f7f9 febc bl 80009d8 <__aeabi_dcmpeq>
  16896. 8006c60: b108 cbz r0, 8006c66 <__cvt+0x9e>
  16897. 8006c62: f8cd 901c str.w r9, [sp, #28]
  16898. 8006c66: 2230 movs r2, #48 ; 0x30
  16899. 8006c68: 9b07 ldr r3, [sp, #28]
  16900. 8006c6a: 454b cmp r3, r9
  16901. 8006c6c: d307 bcc.n 8006c7e <__cvt+0xb6>
  16902. 8006c6e: 4630 mov r0, r6
  16903. 8006c70: 9b07 ldr r3, [sp, #28]
  16904. 8006c72: 9a15 ldr r2, [sp, #84] ; 0x54
  16905. 8006c74: 1b9b subs r3, r3, r6
  16906. 8006c76: 6013 str r3, [r2, #0]
  16907. 8006c78: b008 add sp, #32
  16908. 8006c7a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  16909. 8006c7e: 1c59 adds r1, r3, #1
  16910. 8006c80: 9107 str r1, [sp, #28]
  16911. 8006c82: 701a strb r2, [r3, #0]
  16912. 8006c84: e7f0 b.n 8006c68 <__cvt+0xa0>
  16913. 08006c86 <__exponent>:
  16914. 8006c86: 4603 mov r3, r0
  16915. 8006c88: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  16916. 8006c8a: 2900 cmp r1, #0
  16917. 8006c8c: f803 2b02 strb.w r2, [r3], #2
  16918. 8006c90: bfb6 itet lt
  16919. 8006c92: 222d movlt r2, #45 ; 0x2d
  16920. 8006c94: 222b movge r2, #43 ; 0x2b
  16921. 8006c96: 4249 neglt r1, r1
  16922. 8006c98: 2909 cmp r1, #9
  16923. 8006c9a: 7042 strb r2, [r0, #1]
  16924. 8006c9c: dd2b ble.n 8006cf6 <__exponent+0x70>
  16925. 8006c9e: f10d 0407 add.w r4, sp, #7
  16926. 8006ca2: 46a4 mov ip, r4
  16927. 8006ca4: 270a movs r7, #10
  16928. 8006ca6: fb91 f6f7 sdiv r6, r1, r7
  16929. 8006caa: 460a mov r2, r1
  16930. 8006cac: 46a6 mov lr, r4
  16931. 8006cae: fb07 1516 mls r5, r7, r6, r1
  16932. 8006cb2: 2a63 cmp r2, #99 ; 0x63
  16933. 8006cb4: f105 0530 add.w r5, r5, #48 ; 0x30
  16934. 8006cb8: 4631 mov r1, r6
  16935. 8006cba: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff
  16936. 8006cbe: f80e 5c01 strb.w r5, [lr, #-1]
  16937. 8006cc2: dcf0 bgt.n 8006ca6 <__exponent+0x20>
  16938. 8006cc4: 3130 adds r1, #48 ; 0x30
  16939. 8006cc6: f1ae 0502 sub.w r5, lr, #2
  16940. 8006cca: f804 1c01 strb.w r1, [r4, #-1]
  16941. 8006cce: 4629 mov r1, r5
  16942. 8006cd0: 1c44 adds r4, r0, #1
  16943. 8006cd2: 4561 cmp r1, ip
  16944. 8006cd4: d30a bcc.n 8006cec <__exponent+0x66>
  16945. 8006cd6: f10d 0209 add.w r2, sp, #9
  16946. 8006cda: eba2 020e sub.w r2, r2, lr
  16947. 8006cde: 4565 cmp r5, ip
  16948. 8006ce0: bf88 it hi
  16949. 8006ce2: 2200 movhi r2, #0
  16950. 8006ce4: 4413 add r3, r2
  16951. 8006ce6: 1a18 subs r0, r3, r0
  16952. 8006ce8: b003 add sp, #12
  16953. 8006cea: bdf0 pop {r4, r5, r6, r7, pc}
  16954. 8006cec: f811 2b01 ldrb.w r2, [r1], #1
  16955. 8006cf0: f804 2f01 strb.w r2, [r4, #1]!
  16956. 8006cf4: e7ed b.n 8006cd2 <__exponent+0x4c>
  16957. 8006cf6: 2330 movs r3, #48 ; 0x30
  16958. 8006cf8: 3130 adds r1, #48 ; 0x30
  16959. 8006cfa: 7083 strb r3, [r0, #2]
  16960. 8006cfc: 70c1 strb r1, [r0, #3]
  16961. 8006cfe: 1d03 adds r3, r0, #4
  16962. 8006d00: e7f1 b.n 8006ce6 <__exponent+0x60>
  16963. ...
  16964. 08006d04 <_printf_float>:
  16965. 8006d04: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  16966. 8006d08: b091 sub sp, #68 ; 0x44
  16967. 8006d0a: 460c mov r4, r1
  16968. 8006d0c: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68
  16969. 8006d10: 4616 mov r6, r2
  16970. 8006d12: 461f mov r7, r3
  16971. 8006d14: 4605 mov r5, r0
  16972. 8006d16: f001 fa55 bl 80081c4 <_localeconv_r>
  16973. 8006d1a: 6803 ldr r3, [r0, #0]
  16974. 8006d1c: 4618 mov r0, r3
  16975. 8006d1e: 9309 str r3, [sp, #36] ; 0x24
  16976. 8006d20: f7f9 fa2e bl 8000180 <strlen>
  16977. 8006d24: 2300 movs r3, #0
  16978. 8006d26: 930e str r3, [sp, #56] ; 0x38
  16979. 8006d28: f8d8 3000 ldr.w r3, [r8]
  16980. 8006d2c: 900a str r0, [sp, #40] ; 0x28
  16981. 8006d2e: 3307 adds r3, #7
  16982. 8006d30: f023 0307 bic.w r3, r3, #7
  16983. 8006d34: f103 0208 add.w r2, r3, #8
  16984. 8006d38: f894 9018 ldrb.w r9, [r4, #24]
  16985. 8006d3c: f8d4 b000 ldr.w fp, [r4]
  16986. 8006d40: f8c8 2000 str.w r2, [r8]
  16987. 8006d44: e9d3 2300 ldrd r2, r3, [r3]
  16988. 8006d48: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48
  16989. 8006d4c: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48
  16990. 8006d50: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000
  16991. 8006d54: 930b str r3, [sp, #44] ; 0x2c
  16992. 8006d56: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  16993. 8006d5a: 4640 mov r0, r8
  16994. 8006d5c: 4b9c ldr r3, [pc, #624] ; (8006fd0 <_printf_float+0x2cc>)
  16995. 8006d5e: 990b ldr r1, [sp, #44] ; 0x2c
  16996. 8006d60: f7f9 fe6c bl 8000a3c <__aeabi_dcmpun>
  16997. 8006d64: bb70 cbnz r0, 8006dc4 <_printf_float+0xc0>
  16998. 8006d66: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  16999. 8006d6a: 4640 mov r0, r8
  17000. 8006d6c: 4b98 ldr r3, [pc, #608] ; (8006fd0 <_printf_float+0x2cc>)
  17001. 8006d6e: 990b ldr r1, [sp, #44] ; 0x2c
  17002. 8006d70: f7f9 fe46 bl 8000a00 <__aeabi_dcmple>
  17003. 8006d74: bb30 cbnz r0, 8006dc4 <_printf_float+0xc0>
  17004. 8006d76: 2200 movs r2, #0
  17005. 8006d78: 2300 movs r3, #0
  17006. 8006d7a: 4640 mov r0, r8
  17007. 8006d7c: 4651 mov r1, sl
  17008. 8006d7e: f7f9 fe35 bl 80009ec <__aeabi_dcmplt>
  17009. 8006d82: b110 cbz r0, 8006d8a <_printf_float+0x86>
  17010. 8006d84: 232d movs r3, #45 ; 0x2d
  17011. 8006d86: f884 3043 strb.w r3, [r4, #67] ; 0x43
  17012. 8006d8a: 4b92 ldr r3, [pc, #584] ; (8006fd4 <_printf_float+0x2d0>)
  17013. 8006d8c: 4892 ldr r0, [pc, #584] ; (8006fd8 <_printf_float+0x2d4>)
  17014. 8006d8e: f1b9 0f47 cmp.w r9, #71 ; 0x47
  17015. 8006d92: bf94 ite ls
  17016. 8006d94: 4698 movls r8, r3
  17017. 8006d96: 4680 movhi r8, r0
  17018. 8006d98: 2303 movs r3, #3
  17019. 8006d9a: f04f 0a00 mov.w sl, #0
  17020. 8006d9e: 6123 str r3, [r4, #16]
  17021. 8006da0: f02b 0304 bic.w r3, fp, #4
  17022. 8006da4: 6023 str r3, [r4, #0]
  17023. 8006da6: 4633 mov r3, r6
  17024. 8006da8: 4621 mov r1, r4
  17025. 8006daa: 4628 mov r0, r5
  17026. 8006dac: 9700 str r7, [sp, #0]
  17027. 8006dae: aa0f add r2, sp, #60 ; 0x3c
  17028. 8006db0: f000 f9d4 bl 800715c <_printf_common>
  17029. 8006db4: 3001 adds r0, #1
  17030. 8006db6: f040 8090 bne.w 8006eda <_printf_float+0x1d6>
  17031. 8006dba: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  17032. 8006dbe: b011 add sp, #68 ; 0x44
  17033. 8006dc0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  17034. 8006dc4: 4642 mov r2, r8
  17035. 8006dc6: 4653 mov r3, sl
  17036. 8006dc8: 4640 mov r0, r8
  17037. 8006dca: 4651 mov r1, sl
  17038. 8006dcc: f7f9 fe36 bl 8000a3c <__aeabi_dcmpun>
  17039. 8006dd0: b148 cbz r0, 8006de6 <_printf_float+0xe2>
  17040. 8006dd2: f1ba 0f00 cmp.w sl, #0
  17041. 8006dd6: bfb8 it lt
  17042. 8006dd8: 232d movlt r3, #45 ; 0x2d
  17043. 8006dda: 4880 ldr r0, [pc, #512] ; (8006fdc <_printf_float+0x2d8>)
  17044. 8006ddc: bfb8 it lt
  17045. 8006dde: f884 3043 strblt.w r3, [r4, #67] ; 0x43
  17046. 8006de2: 4b7f ldr r3, [pc, #508] ; (8006fe0 <_printf_float+0x2dc>)
  17047. 8006de4: e7d3 b.n 8006d8e <_printf_float+0x8a>
  17048. 8006de6: 6863 ldr r3, [r4, #4]
  17049. 8006de8: f009 01df and.w r1, r9, #223 ; 0xdf
  17050. 8006dec: 1c5a adds r2, r3, #1
  17051. 8006dee: d142 bne.n 8006e76 <_printf_float+0x172>
  17052. 8006df0: 2306 movs r3, #6
  17053. 8006df2: 6063 str r3, [r4, #4]
  17054. 8006df4: 2200 movs r2, #0
  17055. 8006df6: 9206 str r2, [sp, #24]
  17056. 8006df8: aa0e add r2, sp, #56 ; 0x38
  17057. 8006dfa: e9cd 9204 strd r9, r2, [sp, #16]
  17058. 8006dfe: aa0d add r2, sp, #52 ; 0x34
  17059. 8006e00: f44b 6380 orr.w r3, fp, #1024 ; 0x400
  17060. 8006e04: 9203 str r2, [sp, #12]
  17061. 8006e06: f10d 0233 add.w r2, sp, #51 ; 0x33
  17062. 8006e0a: e9cd 3201 strd r3, r2, [sp, #4]
  17063. 8006e0e: 6023 str r3, [r4, #0]
  17064. 8006e10: 6863 ldr r3, [r4, #4]
  17065. 8006e12: 4642 mov r2, r8
  17066. 8006e14: 9300 str r3, [sp, #0]
  17067. 8006e16: 4628 mov r0, r5
  17068. 8006e18: 4653 mov r3, sl
  17069. 8006e1a: 910b str r1, [sp, #44] ; 0x2c
  17070. 8006e1c: f7ff fed4 bl 8006bc8 <__cvt>
  17071. 8006e20: 990b ldr r1, [sp, #44] ; 0x2c
  17072. 8006e22: 4680 mov r8, r0
  17073. 8006e24: 2947 cmp r1, #71 ; 0x47
  17074. 8006e26: 990d ldr r1, [sp, #52] ; 0x34
  17075. 8006e28: d108 bne.n 8006e3c <_printf_float+0x138>
  17076. 8006e2a: 1cc8 adds r0, r1, #3
  17077. 8006e2c: db02 blt.n 8006e34 <_printf_float+0x130>
  17078. 8006e2e: 6863 ldr r3, [r4, #4]
  17079. 8006e30: 4299 cmp r1, r3
  17080. 8006e32: dd40 ble.n 8006eb6 <_printf_float+0x1b2>
  17081. 8006e34: f1a9 0902 sub.w r9, r9, #2
  17082. 8006e38: fa5f f989 uxtb.w r9, r9
  17083. 8006e3c: f1b9 0f65 cmp.w r9, #101 ; 0x65
  17084. 8006e40: d81f bhi.n 8006e82 <_printf_float+0x17e>
  17085. 8006e42: 464a mov r2, r9
  17086. 8006e44: 3901 subs r1, #1
  17087. 8006e46: f104 0050 add.w r0, r4, #80 ; 0x50
  17088. 8006e4a: 910d str r1, [sp, #52] ; 0x34
  17089. 8006e4c: f7ff ff1b bl 8006c86 <__exponent>
  17090. 8006e50: 9a0e ldr r2, [sp, #56] ; 0x38
  17091. 8006e52: 4682 mov sl, r0
  17092. 8006e54: 1813 adds r3, r2, r0
  17093. 8006e56: 2a01 cmp r2, #1
  17094. 8006e58: 6123 str r3, [r4, #16]
  17095. 8006e5a: dc02 bgt.n 8006e62 <_printf_float+0x15e>
  17096. 8006e5c: 6822 ldr r2, [r4, #0]
  17097. 8006e5e: 07d2 lsls r2, r2, #31
  17098. 8006e60: d501 bpl.n 8006e66 <_printf_float+0x162>
  17099. 8006e62: 3301 adds r3, #1
  17100. 8006e64: 6123 str r3, [r4, #16]
  17101. 8006e66: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33
  17102. 8006e6a: 2b00 cmp r3, #0
  17103. 8006e6c: d09b beq.n 8006da6 <_printf_float+0xa2>
  17104. 8006e6e: 232d movs r3, #45 ; 0x2d
  17105. 8006e70: f884 3043 strb.w r3, [r4, #67] ; 0x43
  17106. 8006e74: e797 b.n 8006da6 <_printf_float+0xa2>
  17107. 8006e76: 2947 cmp r1, #71 ; 0x47
  17108. 8006e78: d1bc bne.n 8006df4 <_printf_float+0xf0>
  17109. 8006e7a: 2b00 cmp r3, #0
  17110. 8006e7c: d1ba bne.n 8006df4 <_printf_float+0xf0>
  17111. 8006e7e: 2301 movs r3, #1
  17112. 8006e80: e7b7 b.n 8006df2 <_printf_float+0xee>
  17113. 8006e82: f1b9 0f66 cmp.w r9, #102 ; 0x66
  17114. 8006e86: d118 bne.n 8006eba <_printf_float+0x1b6>
  17115. 8006e88: 2900 cmp r1, #0
  17116. 8006e8a: 6863 ldr r3, [r4, #4]
  17117. 8006e8c: dd0b ble.n 8006ea6 <_printf_float+0x1a2>
  17118. 8006e8e: 6121 str r1, [r4, #16]
  17119. 8006e90: b913 cbnz r3, 8006e98 <_printf_float+0x194>
  17120. 8006e92: 6822 ldr r2, [r4, #0]
  17121. 8006e94: 07d0 lsls r0, r2, #31
  17122. 8006e96: d502 bpl.n 8006e9e <_printf_float+0x19a>
  17123. 8006e98: 3301 adds r3, #1
  17124. 8006e9a: 440b add r3, r1
  17125. 8006e9c: 6123 str r3, [r4, #16]
  17126. 8006e9e: f04f 0a00 mov.w sl, #0
  17127. 8006ea2: 65a1 str r1, [r4, #88] ; 0x58
  17128. 8006ea4: e7df b.n 8006e66 <_printf_float+0x162>
  17129. 8006ea6: b913 cbnz r3, 8006eae <_printf_float+0x1aa>
  17130. 8006ea8: 6822 ldr r2, [r4, #0]
  17131. 8006eaa: 07d2 lsls r2, r2, #31
  17132. 8006eac: d501 bpl.n 8006eb2 <_printf_float+0x1ae>
  17133. 8006eae: 3302 adds r3, #2
  17134. 8006eb0: e7f4 b.n 8006e9c <_printf_float+0x198>
  17135. 8006eb2: 2301 movs r3, #1
  17136. 8006eb4: e7f2 b.n 8006e9c <_printf_float+0x198>
  17137. 8006eb6: f04f 0967 mov.w r9, #103 ; 0x67
  17138. 8006eba: 9b0e ldr r3, [sp, #56] ; 0x38
  17139. 8006ebc: 4299 cmp r1, r3
  17140. 8006ebe: db05 blt.n 8006ecc <_printf_float+0x1c8>
  17141. 8006ec0: 6823 ldr r3, [r4, #0]
  17142. 8006ec2: 6121 str r1, [r4, #16]
  17143. 8006ec4: 07d8 lsls r0, r3, #31
  17144. 8006ec6: d5ea bpl.n 8006e9e <_printf_float+0x19a>
  17145. 8006ec8: 1c4b adds r3, r1, #1
  17146. 8006eca: e7e7 b.n 8006e9c <_printf_float+0x198>
  17147. 8006ecc: 2900 cmp r1, #0
  17148. 8006ece: bfcc ite gt
  17149. 8006ed0: 2201 movgt r2, #1
  17150. 8006ed2: f1c1 0202 rsble r2, r1, #2
  17151. 8006ed6: 4413 add r3, r2
  17152. 8006ed8: e7e0 b.n 8006e9c <_printf_float+0x198>
  17153. 8006eda: 6823 ldr r3, [r4, #0]
  17154. 8006edc: 055a lsls r2, r3, #21
  17155. 8006ede: d407 bmi.n 8006ef0 <_printf_float+0x1ec>
  17156. 8006ee0: 6923 ldr r3, [r4, #16]
  17157. 8006ee2: 4642 mov r2, r8
  17158. 8006ee4: 4631 mov r1, r6
  17159. 8006ee6: 4628 mov r0, r5
  17160. 8006ee8: 47b8 blx r7
  17161. 8006eea: 3001 adds r0, #1
  17162. 8006eec: d12b bne.n 8006f46 <_printf_float+0x242>
  17163. 8006eee: e764 b.n 8006dba <_printf_float+0xb6>
  17164. 8006ef0: f1b9 0f65 cmp.w r9, #101 ; 0x65
  17165. 8006ef4: f240 80dd bls.w 80070b2 <_printf_float+0x3ae>
  17166. 8006ef8: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  17167. 8006efc: 2200 movs r2, #0
  17168. 8006efe: 2300 movs r3, #0
  17169. 8006f00: f7f9 fd6a bl 80009d8 <__aeabi_dcmpeq>
  17170. 8006f04: 2800 cmp r0, #0
  17171. 8006f06: d033 beq.n 8006f70 <_printf_float+0x26c>
  17172. 8006f08: 2301 movs r3, #1
  17173. 8006f0a: 4631 mov r1, r6
  17174. 8006f0c: 4628 mov r0, r5
  17175. 8006f0e: 4a35 ldr r2, [pc, #212] ; (8006fe4 <_printf_float+0x2e0>)
  17176. 8006f10: 47b8 blx r7
  17177. 8006f12: 3001 adds r0, #1
  17178. 8006f14: f43f af51 beq.w 8006dba <_printf_float+0xb6>
  17179. 8006f18: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  17180. 8006f1c: 429a cmp r2, r3
  17181. 8006f1e: db02 blt.n 8006f26 <_printf_float+0x222>
  17182. 8006f20: 6823 ldr r3, [r4, #0]
  17183. 8006f22: 07d8 lsls r0, r3, #31
  17184. 8006f24: d50f bpl.n 8006f46 <_printf_float+0x242>
  17185. 8006f26: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  17186. 8006f2a: 4631 mov r1, r6
  17187. 8006f2c: 4628 mov r0, r5
  17188. 8006f2e: 47b8 blx r7
  17189. 8006f30: 3001 adds r0, #1
  17190. 8006f32: f43f af42 beq.w 8006dba <_printf_float+0xb6>
  17191. 8006f36: f04f 0800 mov.w r8, #0
  17192. 8006f3a: f104 091a add.w r9, r4, #26
  17193. 8006f3e: 9b0e ldr r3, [sp, #56] ; 0x38
  17194. 8006f40: 3b01 subs r3, #1
  17195. 8006f42: 4543 cmp r3, r8
  17196. 8006f44: dc09 bgt.n 8006f5a <_printf_float+0x256>
  17197. 8006f46: 6823 ldr r3, [r4, #0]
  17198. 8006f48: 079b lsls r3, r3, #30
  17199. 8006f4a: f100 8102 bmi.w 8007152 <_printf_float+0x44e>
  17200. 8006f4e: 68e0 ldr r0, [r4, #12]
  17201. 8006f50: 9b0f ldr r3, [sp, #60] ; 0x3c
  17202. 8006f52: 4298 cmp r0, r3
  17203. 8006f54: bfb8 it lt
  17204. 8006f56: 4618 movlt r0, r3
  17205. 8006f58: e731 b.n 8006dbe <_printf_float+0xba>
  17206. 8006f5a: 2301 movs r3, #1
  17207. 8006f5c: 464a mov r2, r9
  17208. 8006f5e: 4631 mov r1, r6
  17209. 8006f60: 4628 mov r0, r5
  17210. 8006f62: 47b8 blx r7
  17211. 8006f64: 3001 adds r0, #1
  17212. 8006f66: f43f af28 beq.w 8006dba <_printf_float+0xb6>
  17213. 8006f6a: f108 0801 add.w r8, r8, #1
  17214. 8006f6e: e7e6 b.n 8006f3e <_printf_float+0x23a>
  17215. 8006f70: 9b0d ldr r3, [sp, #52] ; 0x34
  17216. 8006f72: 2b00 cmp r3, #0
  17217. 8006f74: dc38 bgt.n 8006fe8 <_printf_float+0x2e4>
  17218. 8006f76: 2301 movs r3, #1
  17219. 8006f78: 4631 mov r1, r6
  17220. 8006f7a: 4628 mov r0, r5
  17221. 8006f7c: 4a19 ldr r2, [pc, #100] ; (8006fe4 <_printf_float+0x2e0>)
  17222. 8006f7e: 47b8 blx r7
  17223. 8006f80: 3001 adds r0, #1
  17224. 8006f82: f43f af1a beq.w 8006dba <_printf_float+0xb6>
  17225. 8006f86: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  17226. 8006f8a: 4313 orrs r3, r2
  17227. 8006f8c: d102 bne.n 8006f94 <_printf_float+0x290>
  17228. 8006f8e: 6823 ldr r3, [r4, #0]
  17229. 8006f90: 07d9 lsls r1, r3, #31
  17230. 8006f92: d5d8 bpl.n 8006f46 <_printf_float+0x242>
  17231. 8006f94: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  17232. 8006f98: 4631 mov r1, r6
  17233. 8006f9a: 4628 mov r0, r5
  17234. 8006f9c: 47b8 blx r7
  17235. 8006f9e: 3001 adds r0, #1
  17236. 8006fa0: f43f af0b beq.w 8006dba <_printf_float+0xb6>
  17237. 8006fa4: f04f 0900 mov.w r9, #0
  17238. 8006fa8: f104 0a1a add.w sl, r4, #26
  17239. 8006fac: 9b0d ldr r3, [sp, #52] ; 0x34
  17240. 8006fae: 425b negs r3, r3
  17241. 8006fb0: 454b cmp r3, r9
  17242. 8006fb2: dc01 bgt.n 8006fb8 <_printf_float+0x2b4>
  17243. 8006fb4: 9b0e ldr r3, [sp, #56] ; 0x38
  17244. 8006fb6: e794 b.n 8006ee2 <_printf_float+0x1de>
  17245. 8006fb8: 2301 movs r3, #1
  17246. 8006fba: 4652 mov r2, sl
  17247. 8006fbc: 4631 mov r1, r6
  17248. 8006fbe: 4628 mov r0, r5
  17249. 8006fc0: 47b8 blx r7
  17250. 8006fc2: 3001 adds r0, #1
  17251. 8006fc4: f43f aef9 beq.w 8006dba <_printf_float+0xb6>
  17252. 8006fc8: f109 0901 add.w r9, r9, #1
  17253. 8006fcc: e7ee b.n 8006fac <_printf_float+0x2a8>
  17254. 8006fce: bf00 nop
  17255. 8006fd0: 7fefffff .word 0x7fefffff
  17256. 8006fd4: 0800a658 .word 0x0800a658
  17257. 8006fd8: 0800a65c .word 0x0800a65c
  17258. 8006fdc: 0800a664 .word 0x0800a664
  17259. 8006fe0: 0800a660 .word 0x0800a660
  17260. 8006fe4: 0800a668 .word 0x0800a668
  17261. 8006fe8: 9a0e ldr r2, [sp, #56] ; 0x38
  17262. 8006fea: 6da3 ldr r3, [r4, #88] ; 0x58
  17263. 8006fec: 429a cmp r2, r3
  17264. 8006fee: bfa8 it ge
  17265. 8006ff0: 461a movge r2, r3
  17266. 8006ff2: 2a00 cmp r2, #0
  17267. 8006ff4: 4691 mov r9, r2
  17268. 8006ff6: dc37 bgt.n 8007068 <_printf_float+0x364>
  17269. 8006ff8: f04f 0b00 mov.w fp, #0
  17270. 8006ffc: ea29 79e9 bic.w r9, r9, r9, asr #31
  17271. 8007000: f104 021a add.w r2, r4, #26
  17272. 8007004: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58
  17273. 8007008: ebaa 0309 sub.w r3, sl, r9
  17274. 800700c: 455b cmp r3, fp
  17275. 800700e: dc33 bgt.n 8007078 <_printf_float+0x374>
  17276. 8007010: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  17277. 8007014: 429a cmp r2, r3
  17278. 8007016: db3b blt.n 8007090 <_printf_float+0x38c>
  17279. 8007018: 6823 ldr r3, [r4, #0]
  17280. 800701a: 07da lsls r2, r3, #31
  17281. 800701c: d438 bmi.n 8007090 <_printf_float+0x38c>
  17282. 800701e: 9a0e ldr r2, [sp, #56] ; 0x38
  17283. 8007020: 990d ldr r1, [sp, #52] ; 0x34
  17284. 8007022: eba2 030a sub.w r3, r2, sl
  17285. 8007026: eba2 0901 sub.w r9, r2, r1
  17286. 800702a: 4599 cmp r9, r3
  17287. 800702c: bfa8 it ge
  17288. 800702e: 4699 movge r9, r3
  17289. 8007030: f1b9 0f00 cmp.w r9, #0
  17290. 8007034: dc34 bgt.n 80070a0 <_printf_float+0x39c>
  17291. 8007036: f04f 0800 mov.w r8, #0
  17292. 800703a: ea29 79e9 bic.w r9, r9, r9, asr #31
  17293. 800703e: f104 0a1a add.w sl, r4, #26
  17294. 8007042: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  17295. 8007046: 1a9b subs r3, r3, r2
  17296. 8007048: eba3 0309 sub.w r3, r3, r9
  17297. 800704c: 4543 cmp r3, r8
  17298. 800704e: f77f af7a ble.w 8006f46 <_printf_float+0x242>
  17299. 8007052: 2301 movs r3, #1
  17300. 8007054: 4652 mov r2, sl
  17301. 8007056: 4631 mov r1, r6
  17302. 8007058: 4628 mov r0, r5
  17303. 800705a: 47b8 blx r7
  17304. 800705c: 3001 adds r0, #1
  17305. 800705e: f43f aeac beq.w 8006dba <_printf_float+0xb6>
  17306. 8007062: f108 0801 add.w r8, r8, #1
  17307. 8007066: e7ec b.n 8007042 <_printf_float+0x33e>
  17308. 8007068: 4613 mov r3, r2
  17309. 800706a: 4631 mov r1, r6
  17310. 800706c: 4642 mov r2, r8
  17311. 800706e: 4628 mov r0, r5
  17312. 8007070: 47b8 blx r7
  17313. 8007072: 3001 adds r0, #1
  17314. 8007074: d1c0 bne.n 8006ff8 <_printf_float+0x2f4>
  17315. 8007076: e6a0 b.n 8006dba <_printf_float+0xb6>
  17316. 8007078: 2301 movs r3, #1
  17317. 800707a: 4631 mov r1, r6
  17318. 800707c: 4628 mov r0, r5
  17319. 800707e: 920b str r2, [sp, #44] ; 0x2c
  17320. 8007080: 47b8 blx r7
  17321. 8007082: 3001 adds r0, #1
  17322. 8007084: f43f ae99 beq.w 8006dba <_printf_float+0xb6>
  17323. 8007088: 9a0b ldr r2, [sp, #44] ; 0x2c
  17324. 800708a: f10b 0b01 add.w fp, fp, #1
  17325. 800708e: e7b9 b.n 8007004 <_printf_float+0x300>
  17326. 8007090: 4631 mov r1, r6
  17327. 8007092: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  17328. 8007096: 4628 mov r0, r5
  17329. 8007098: 47b8 blx r7
  17330. 800709a: 3001 adds r0, #1
  17331. 800709c: d1bf bne.n 800701e <_printf_float+0x31a>
  17332. 800709e: e68c b.n 8006dba <_printf_float+0xb6>
  17333. 80070a0: 464b mov r3, r9
  17334. 80070a2: 4631 mov r1, r6
  17335. 80070a4: 4628 mov r0, r5
  17336. 80070a6: eb08 020a add.w r2, r8, sl
  17337. 80070aa: 47b8 blx r7
  17338. 80070ac: 3001 adds r0, #1
  17339. 80070ae: d1c2 bne.n 8007036 <_printf_float+0x332>
  17340. 80070b0: e683 b.n 8006dba <_printf_float+0xb6>
  17341. 80070b2: 9a0e ldr r2, [sp, #56] ; 0x38
  17342. 80070b4: 2a01 cmp r2, #1
  17343. 80070b6: dc01 bgt.n 80070bc <_printf_float+0x3b8>
  17344. 80070b8: 07db lsls r3, r3, #31
  17345. 80070ba: d537 bpl.n 800712c <_printf_float+0x428>
  17346. 80070bc: 2301 movs r3, #1
  17347. 80070be: 4642 mov r2, r8
  17348. 80070c0: 4631 mov r1, r6
  17349. 80070c2: 4628 mov r0, r5
  17350. 80070c4: 47b8 blx r7
  17351. 80070c6: 3001 adds r0, #1
  17352. 80070c8: f43f ae77 beq.w 8006dba <_printf_float+0xb6>
  17353. 80070cc: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  17354. 80070d0: 4631 mov r1, r6
  17355. 80070d2: 4628 mov r0, r5
  17356. 80070d4: 47b8 blx r7
  17357. 80070d6: 3001 adds r0, #1
  17358. 80070d8: f43f ae6f beq.w 8006dba <_printf_float+0xb6>
  17359. 80070dc: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  17360. 80070e0: 2200 movs r2, #0
  17361. 80070e2: 2300 movs r3, #0
  17362. 80070e4: f7f9 fc78 bl 80009d8 <__aeabi_dcmpeq>
  17363. 80070e8: b9d8 cbnz r0, 8007122 <_printf_float+0x41e>
  17364. 80070ea: 9b0e ldr r3, [sp, #56] ; 0x38
  17365. 80070ec: f108 0201 add.w r2, r8, #1
  17366. 80070f0: 3b01 subs r3, #1
  17367. 80070f2: 4631 mov r1, r6
  17368. 80070f4: 4628 mov r0, r5
  17369. 80070f6: 47b8 blx r7
  17370. 80070f8: 3001 adds r0, #1
  17371. 80070fa: d10e bne.n 800711a <_printf_float+0x416>
  17372. 80070fc: e65d b.n 8006dba <_printf_float+0xb6>
  17373. 80070fe: 2301 movs r3, #1
  17374. 8007100: 464a mov r2, r9
  17375. 8007102: 4631 mov r1, r6
  17376. 8007104: 4628 mov r0, r5
  17377. 8007106: 47b8 blx r7
  17378. 8007108: 3001 adds r0, #1
  17379. 800710a: f43f ae56 beq.w 8006dba <_printf_float+0xb6>
  17380. 800710e: f108 0801 add.w r8, r8, #1
  17381. 8007112: 9b0e ldr r3, [sp, #56] ; 0x38
  17382. 8007114: 3b01 subs r3, #1
  17383. 8007116: 4543 cmp r3, r8
  17384. 8007118: dcf1 bgt.n 80070fe <_printf_float+0x3fa>
  17385. 800711a: 4653 mov r3, sl
  17386. 800711c: f104 0250 add.w r2, r4, #80 ; 0x50
  17387. 8007120: e6e0 b.n 8006ee4 <_printf_float+0x1e0>
  17388. 8007122: f04f 0800 mov.w r8, #0
  17389. 8007126: f104 091a add.w r9, r4, #26
  17390. 800712a: e7f2 b.n 8007112 <_printf_float+0x40e>
  17391. 800712c: 2301 movs r3, #1
  17392. 800712e: 4642 mov r2, r8
  17393. 8007130: e7df b.n 80070f2 <_printf_float+0x3ee>
  17394. 8007132: 2301 movs r3, #1
  17395. 8007134: 464a mov r2, r9
  17396. 8007136: 4631 mov r1, r6
  17397. 8007138: 4628 mov r0, r5
  17398. 800713a: 47b8 blx r7
  17399. 800713c: 3001 adds r0, #1
  17400. 800713e: f43f ae3c beq.w 8006dba <_printf_float+0xb6>
  17401. 8007142: f108 0801 add.w r8, r8, #1
  17402. 8007146: 68e3 ldr r3, [r4, #12]
  17403. 8007148: 990f ldr r1, [sp, #60] ; 0x3c
  17404. 800714a: 1a5b subs r3, r3, r1
  17405. 800714c: 4543 cmp r3, r8
  17406. 800714e: dcf0 bgt.n 8007132 <_printf_float+0x42e>
  17407. 8007150: e6fd b.n 8006f4e <_printf_float+0x24a>
  17408. 8007152: f04f 0800 mov.w r8, #0
  17409. 8007156: f104 0919 add.w r9, r4, #25
  17410. 800715a: e7f4 b.n 8007146 <_printf_float+0x442>
  17411. 0800715c <_printf_common>:
  17412. 800715c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  17413. 8007160: 4616 mov r6, r2
  17414. 8007162: 4699 mov r9, r3
  17415. 8007164: 688a ldr r2, [r1, #8]
  17416. 8007166: 690b ldr r3, [r1, #16]
  17417. 8007168: 4607 mov r7, r0
  17418. 800716a: 4293 cmp r3, r2
  17419. 800716c: bfb8 it lt
  17420. 800716e: 4613 movlt r3, r2
  17421. 8007170: 6033 str r3, [r6, #0]
  17422. 8007172: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
  17423. 8007176: 460c mov r4, r1
  17424. 8007178: f8dd 8020 ldr.w r8, [sp, #32]
  17425. 800717c: b10a cbz r2, 8007182 <_printf_common+0x26>
  17426. 800717e: 3301 adds r3, #1
  17427. 8007180: 6033 str r3, [r6, #0]
  17428. 8007182: 6823 ldr r3, [r4, #0]
  17429. 8007184: 0699 lsls r1, r3, #26
  17430. 8007186: bf42 ittt mi
  17431. 8007188: 6833 ldrmi r3, [r6, #0]
  17432. 800718a: 3302 addmi r3, #2
  17433. 800718c: 6033 strmi r3, [r6, #0]
  17434. 800718e: 6825 ldr r5, [r4, #0]
  17435. 8007190: f015 0506 ands.w r5, r5, #6
  17436. 8007194: d106 bne.n 80071a4 <_printf_common+0x48>
  17437. 8007196: f104 0a19 add.w sl, r4, #25
  17438. 800719a: 68e3 ldr r3, [r4, #12]
  17439. 800719c: 6832 ldr r2, [r6, #0]
  17440. 800719e: 1a9b subs r3, r3, r2
  17441. 80071a0: 42ab cmp r3, r5
  17442. 80071a2: dc28 bgt.n 80071f6 <_printf_common+0x9a>
  17443. 80071a4: f894 2043 ldrb.w r2, [r4, #67] ; 0x43
  17444. 80071a8: 1e13 subs r3, r2, #0
  17445. 80071aa: 6822 ldr r2, [r4, #0]
  17446. 80071ac: bf18 it ne
  17447. 80071ae: 2301 movne r3, #1
  17448. 80071b0: 0692 lsls r2, r2, #26
  17449. 80071b2: d42d bmi.n 8007210 <_printf_common+0xb4>
  17450. 80071b4: 4649 mov r1, r9
  17451. 80071b6: 4638 mov r0, r7
  17452. 80071b8: f104 0243 add.w r2, r4, #67 ; 0x43
  17453. 80071bc: 47c0 blx r8
  17454. 80071be: 3001 adds r0, #1
  17455. 80071c0: d020 beq.n 8007204 <_printf_common+0xa8>
  17456. 80071c2: 6823 ldr r3, [r4, #0]
  17457. 80071c4: 68e5 ldr r5, [r4, #12]
  17458. 80071c6: f003 0306 and.w r3, r3, #6
  17459. 80071ca: 2b04 cmp r3, #4
  17460. 80071cc: bf18 it ne
  17461. 80071ce: 2500 movne r5, #0
  17462. 80071d0: 6832 ldr r2, [r6, #0]
  17463. 80071d2: f04f 0600 mov.w r6, #0
  17464. 80071d6: 68a3 ldr r3, [r4, #8]
  17465. 80071d8: bf08 it eq
  17466. 80071da: 1aad subeq r5, r5, r2
  17467. 80071dc: 6922 ldr r2, [r4, #16]
  17468. 80071de: bf08 it eq
  17469. 80071e0: ea25 75e5 biceq.w r5, r5, r5, asr #31
  17470. 80071e4: 4293 cmp r3, r2
  17471. 80071e6: bfc4 itt gt
  17472. 80071e8: 1a9b subgt r3, r3, r2
  17473. 80071ea: 18ed addgt r5, r5, r3
  17474. 80071ec: 341a adds r4, #26
  17475. 80071ee: 42b5 cmp r5, r6
  17476. 80071f0: d11a bne.n 8007228 <_printf_common+0xcc>
  17477. 80071f2: 2000 movs r0, #0
  17478. 80071f4: e008 b.n 8007208 <_printf_common+0xac>
  17479. 80071f6: 2301 movs r3, #1
  17480. 80071f8: 4652 mov r2, sl
  17481. 80071fa: 4649 mov r1, r9
  17482. 80071fc: 4638 mov r0, r7
  17483. 80071fe: 47c0 blx r8
  17484. 8007200: 3001 adds r0, #1
  17485. 8007202: d103 bne.n 800720c <_printf_common+0xb0>
  17486. 8007204: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  17487. 8007208: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  17488. 800720c: 3501 adds r5, #1
  17489. 800720e: e7c4 b.n 800719a <_printf_common+0x3e>
  17490. 8007210: 2030 movs r0, #48 ; 0x30
  17491. 8007212: 18e1 adds r1, r4, r3
  17492. 8007214: f881 0043 strb.w r0, [r1, #67] ; 0x43
  17493. 8007218: 1c5a adds r2, r3, #1
  17494. 800721a: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
  17495. 800721e: 4422 add r2, r4
  17496. 8007220: 3302 adds r3, #2
  17497. 8007222: f882 1043 strb.w r1, [r2, #67] ; 0x43
  17498. 8007226: e7c5 b.n 80071b4 <_printf_common+0x58>
  17499. 8007228: 2301 movs r3, #1
  17500. 800722a: 4622 mov r2, r4
  17501. 800722c: 4649 mov r1, r9
  17502. 800722e: 4638 mov r0, r7
  17503. 8007230: 47c0 blx r8
  17504. 8007232: 3001 adds r0, #1
  17505. 8007234: d0e6 beq.n 8007204 <_printf_common+0xa8>
  17506. 8007236: 3601 adds r6, #1
  17507. 8007238: e7d9 b.n 80071ee <_printf_common+0x92>
  17508. ...
  17509. 0800723c <_printf_i>:
  17510. 800723c: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  17511. 8007240: 460c mov r4, r1
  17512. 8007242: 7e27 ldrb r7, [r4, #24]
  17513. 8007244: 4691 mov r9, r2
  17514. 8007246: 2f78 cmp r7, #120 ; 0x78
  17515. 8007248: 4680 mov r8, r0
  17516. 800724a: 469a mov sl, r3
  17517. 800724c: 990c ldr r1, [sp, #48] ; 0x30
  17518. 800724e: f104 0243 add.w r2, r4, #67 ; 0x43
  17519. 8007252: d807 bhi.n 8007264 <_printf_i+0x28>
  17520. 8007254: 2f62 cmp r7, #98 ; 0x62
  17521. 8007256: d80a bhi.n 800726e <_printf_i+0x32>
  17522. 8007258: 2f00 cmp r7, #0
  17523. 800725a: f000 80d9 beq.w 8007410 <_printf_i+0x1d4>
  17524. 800725e: 2f58 cmp r7, #88 ; 0x58
  17525. 8007260: f000 80a4 beq.w 80073ac <_printf_i+0x170>
  17526. 8007264: f104 0642 add.w r6, r4, #66 ; 0x42
  17527. 8007268: f884 7042 strb.w r7, [r4, #66] ; 0x42
  17528. 800726c: e03a b.n 80072e4 <_printf_i+0xa8>
  17529. 800726e: f1a7 0363 sub.w r3, r7, #99 ; 0x63
  17530. 8007272: 2b15 cmp r3, #21
  17531. 8007274: d8f6 bhi.n 8007264 <_printf_i+0x28>
  17532. 8007276: a001 add r0, pc, #4 ; (adr r0, 800727c <_printf_i+0x40>)
  17533. 8007278: f850 f023 ldr.w pc, [r0, r3, lsl #2]
  17534. 800727c: 080072d5 .word 0x080072d5
  17535. 8007280: 080072e9 .word 0x080072e9
  17536. 8007284: 08007265 .word 0x08007265
  17537. 8007288: 08007265 .word 0x08007265
  17538. 800728c: 08007265 .word 0x08007265
  17539. 8007290: 08007265 .word 0x08007265
  17540. 8007294: 080072e9 .word 0x080072e9
  17541. 8007298: 08007265 .word 0x08007265
  17542. 800729c: 08007265 .word 0x08007265
  17543. 80072a0: 08007265 .word 0x08007265
  17544. 80072a4: 08007265 .word 0x08007265
  17545. 80072a8: 080073f7 .word 0x080073f7
  17546. 80072ac: 08007319 .word 0x08007319
  17547. 80072b0: 080073d9 .word 0x080073d9
  17548. 80072b4: 08007265 .word 0x08007265
  17549. 80072b8: 08007265 .word 0x08007265
  17550. 80072bc: 08007419 .word 0x08007419
  17551. 80072c0: 08007265 .word 0x08007265
  17552. 80072c4: 08007319 .word 0x08007319
  17553. 80072c8: 08007265 .word 0x08007265
  17554. 80072cc: 08007265 .word 0x08007265
  17555. 80072d0: 080073e1 .word 0x080073e1
  17556. 80072d4: 680b ldr r3, [r1, #0]
  17557. 80072d6: f104 0642 add.w r6, r4, #66 ; 0x42
  17558. 80072da: 1d1a adds r2, r3, #4
  17559. 80072dc: 681b ldr r3, [r3, #0]
  17560. 80072de: 600a str r2, [r1, #0]
  17561. 80072e0: f884 3042 strb.w r3, [r4, #66] ; 0x42
  17562. 80072e4: 2301 movs r3, #1
  17563. 80072e6: e0a4 b.n 8007432 <_printf_i+0x1f6>
  17564. 80072e8: 6825 ldr r5, [r4, #0]
  17565. 80072ea: 6808 ldr r0, [r1, #0]
  17566. 80072ec: 062e lsls r6, r5, #24
  17567. 80072ee: f100 0304 add.w r3, r0, #4
  17568. 80072f2: d50a bpl.n 800730a <_printf_i+0xce>
  17569. 80072f4: 6805 ldr r5, [r0, #0]
  17570. 80072f6: 600b str r3, [r1, #0]
  17571. 80072f8: 2d00 cmp r5, #0
  17572. 80072fa: da03 bge.n 8007304 <_printf_i+0xc8>
  17573. 80072fc: 232d movs r3, #45 ; 0x2d
  17574. 80072fe: 426d negs r5, r5
  17575. 8007300: f884 3043 strb.w r3, [r4, #67] ; 0x43
  17576. 8007304: 230a movs r3, #10
  17577. 8007306: 485e ldr r0, [pc, #376] ; (8007480 <_printf_i+0x244>)
  17578. 8007308: e019 b.n 800733e <_printf_i+0x102>
  17579. 800730a: f015 0f40 tst.w r5, #64 ; 0x40
  17580. 800730e: 6805 ldr r5, [r0, #0]
  17581. 8007310: 600b str r3, [r1, #0]
  17582. 8007312: bf18 it ne
  17583. 8007314: b22d sxthne r5, r5
  17584. 8007316: e7ef b.n 80072f8 <_printf_i+0xbc>
  17585. 8007318: 680b ldr r3, [r1, #0]
  17586. 800731a: 6825 ldr r5, [r4, #0]
  17587. 800731c: 1d18 adds r0, r3, #4
  17588. 800731e: 6008 str r0, [r1, #0]
  17589. 8007320: 0628 lsls r0, r5, #24
  17590. 8007322: d501 bpl.n 8007328 <_printf_i+0xec>
  17591. 8007324: 681d ldr r5, [r3, #0]
  17592. 8007326: e002 b.n 800732e <_printf_i+0xf2>
  17593. 8007328: 0669 lsls r1, r5, #25
  17594. 800732a: d5fb bpl.n 8007324 <_printf_i+0xe8>
  17595. 800732c: 881d ldrh r5, [r3, #0]
  17596. 800732e: 2f6f cmp r7, #111 ; 0x6f
  17597. 8007330: bf0c ite eq
  17598. 8007332: 2308 moveq r3, #8
  17599. 8007334: 230a movne r3, #10
  17600. 8007336: 4852 ldr r0, [pc, #328] ; (8007480 <_printf_i+0x244>)
  17601. 8007338: 2100 movs r1, #0
  17602. 800733a: f884 1043 strb.w r1, [r4, #67] ; 0x43
  17603. 800733e: 6866 ldr r6, [r4, #4]
  17604. 8007340: 2e00 cmp r6, #0
  17605. 8007342: bfa8 it ge
  17606. 8007344: 6821 ldrge r1, [r4, #0]
  17607. 8007346: 60a6 str r6, [r4, #8]
  17608. 8007348: bfa4 itt ge
  17609. 800734a: f021 0104 bicge.w r1, r1, #4
  17610. 800734e: 6021 strge r1, [r4, #0]
  17611. 8007350: b90d cbnz r5, 8007356 <_printf_i+0x11a>
  17612. 8007352: 2e00 cmp r6, #0
  17613. 8007354: d04d beq.n 80073f2 <_printf_i+0x1b6>
  17614. 8007356: 4616 mov r6, r2
  17615. 8007358: fbb5 f1f3 udiv r1, r5, r3
  17616. 800735c: fb03 5711 mls r7, r3, r1, r5
  17617. 8007360: 5dc7 ldrb r7, [r0, r7]
  17618. 8007362: f806 7d01 strb.w r7, [r6, #-1]!
  17619. 8007366: 462f mov r7, r5
  17620. 8007368: 42bb cmp r3, r7
  17621. 800736a: 460d mov r5, r1
  17622. 800736c: d9f4 bls.n 8007358 <_printf_i+0x11c>
  17623. 800736e: 2b08 cmp r3, #8
  17624. 8007370: d10b bne.n 800738a <_printf_i+0x14e>
  17625. 8007372: 6823 ldr r3, [r4, #0]
  17626. 8007374: 07df lsls r7, r3, #31
  17627. 8007376: d508 bpl.n 800738a <_printf_i+0x14e>
  17628. 8007378: 6923 ldr r3, [r4, #16]
  17629. 800737a: 6861 ldr r1, [r4, #4]
  17630. 800737c: 4299 cmp r1, r3
  17631. 800737e: bfde ittt le
  17632. 8007380: 2330 movle r3, #48 ; 0x30
  17633. 8007382: f806 3c01 strble.w r3, [r6, #-1]
  17634. 8007386: f106 36ff addle.w r6, r6, #4294967295 ; 0xffffffff
  17635. 800738a: 1b92 subs r2, r2, r6
  17636. 800738c: 6122 str r2, [r4, #16]
  17637. 800738e: 464b mov r3, r9
  17638. 8007390: 4621 mov r1, r4
  17639. 8007392: 4640 mov r0, r8
  17640. 8007394: f8cd a000 str.w sl, [sp]
  17641. 8007398: aa03 add r2, sp, #12
  17642. 800739a: f7ff fedf bl 800715c <_printf_common>
  17643. 800739e: 3001 adds r0, #1
  17644. 80073a0: d14c bne.n 800743c <_printf_i+0x200>
  17645. 80073a2: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  17646. 80073a6: b004 add sp, #16
  17647. 80073a8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  17648. 80073ac: 4834 ldr r0, [pc, #208] ; (8007480 <_printf_i+0x244>)
  17649. 80073ae: f884 7045 strb.w r7, [r4, #69] ; 0x45
  17650. 80073b2: 680e ldr r6, [r1, #0]
  17651. 80073b4: 6823 ldr r3, [r4, #0]
  17652. 80073b6: f856 5b04 ldr.w r5, [r6], #4
  17653. 80073ba: 061f lsls r7, r3, #24
  17654. 80073bc: 600e str r6, [r1, #0]
  17655. 80073be: d514 bpl.n 80073ea <_printf_i+0x1ae>
  17656. 80073c0: 07d9 lsls r1, r3, #31
  17657. 80073c2: bf44 itt mi
  17658. 80073c4: f043 0320 orrmi.w r3, r3, #32
  17659. 80073c8: 6023 strmi r3, [r4, #0]
  17660. 80073ca: b91d cbnz r5, 80073d4 <_printf_i+0x198>
  17661. 80073cc: 6823 ldr r3, [r4, #0]
  17662. 80073ce: f023 0320 bic.w r3, r3, #32
  17663. 80073d2: 6023 str r3, [r4, #0]
  17664. 80073d4: 2310 movs r3, #16
  17665. 80073d6: e7af b.n 8007338 <_printf_i+0xfc>
  17666. 80073d8: 6823 ldr r3, [r4, #0]
  17667. 80073da: f043 0320 orr.w r3, r3, #32
  17668. 80073de: 6023 str r3, [r4, #0]
  17669. 80073e0: 2378 movs r3, #120 ; 0x78
  17670. 80073e2: 4828 ldr r0, [pc, #160] ; (8007484 <_printf_i+0x248>)
  17671. 80073e4: f884 3045 strb.w r3, [r4, #69] ; 0x45
  17672. 80073e8: e7e3 b.n 80073b2 <_printf_i+0x176>
  17673. 80073ea: 065e lsls r6, r3, #25
  17674. 80073ec: bf48 it mi
  17675. 80073ee: b2ad uxthmi r5, r5
  17676. 80073f0: e7e6 b.n 80073c0 <_printf_i+0x184>
  17677. 80073f2: 4616 mov r6, r2
  17678. 80073f4: e7bb b.n 800736e <_printf_i+0x132>
  17679. 80073f6: 680b ldr r3, [r1, #0]
  17680. 80073f8: 6826 ldr r6, [r4, #0]
  17681. 80073fa: 1d1d adds r5, r3, #4
  17682. 80073fc: 6960 ldr r0, [r4, #20]
  17683. 80073fe: 600d str r5, [r1, #0]
  17684. 8007400: 0635 lsls r5, r6, #24
  17685. 8007402: 681b ldr r3, [r3, #0]
  17686. 8007404: d501 bpl.n 800740a <_printf_i+0x1ce>
  17687. 8007406: 6018 str r0, [r3, #0]
  17688. 8007408: e002 b.n 8007410 <_printf_i+0x1d4>
  17689. 800740a: 0671 lsls r1, r6, #25
  17690. 800740c: d5fb bpl.n 8007406 <_printf_i+0x1ca>
  17691. 800740e: 8018 strh r0, [r3, #0]
  17692. 8007410: 2300 movs r3, #0
  17693. 8007412: 4616 mov r6, r2
  17694. 8007414: 6123 str r3, [r4, #16]
  17695. 8007416: e7ba b.n 800738e <_printf_i+0x152>
  17696. 8007418: 680b ldr r3, [r1, #0]
  17697. 800741a: 1d1a adds r2, r3, #4
  17698. 800741c: 600a str r2, [r1, #0]
  17699. 800741e: 681e ldr r6, [r3, #0]
  17700. 8007420: 2100 movs r1, #0
  17701. 8007422: 4630 mov r0, r6
  17702. 8007424: 6862 ldr r2, [r4, #4]
  17703. 8007426: f000 fed9 bl 80081dc <memchr>
  17704. 800742a: b108 cbz r0, 8007430 <_printf_i+0x1f4>
  17705. 800742c: 1b80 subs r0, r0, r6
  17706. 800742e: 6060 str r0, [r4, #4]
  17707. 8007430: 6863 ldr r3, [r4, #4]
  17708. 8007432: 6123 str r3, [r4, #16]
  17709. 8007434: 2300 movs r3, #0
  17710. 8007436: f884 3043 strb.w r3, [r4, #67] ; 0x43
  17711. 800743a: e7a8 b.n 800738e <_printf_i+0x152>
  17712. 800743c: 4632 mov r2, r6
  17713. 800743e: 4649 mov r1, r9
  17714. 8007440: 4640 mov r0, r8
  17715. 8007442: 6923 ldr r3, [r4, #16]
  17716. 8007444: 47d0 blx sl
  17717. 8007446: 3001 adds r0, #1
  17718. 8007448: d0ab beq.n 80073a2 <_printf_i+0x166>
  17719. 800744a: 6823 ldr r3, [r4, #0]
  17720. 800744c: 079b lsls r3, r3, #30
  17721. 800744e: d413 bmi.n 8007478 <_printf_i+0x23c>
  17722. 8007450: 68e0 ldr r0, [r4, #12]
  17723. 8007452: 9b03 ldr r3, [sp, #12]
  17724. 8007454: 4298 cmp r0, r3
  17725. 8007456: bfb8 it lt
  17726. 8007458: 4618 movlt r0, r3
  17727. 800745a: e7a4 b.n 80073a6 <_printf_i+0x16a>
  17728. 800745c: 2301 movs r3, #1
  17729. 800745e: 4632 mov r2, r6
  17730. 8007460: 4649 mov r1, r9
  17731. 8007462: 4640 mov r0, r8
  17732. 8007464: 47d0 blx sl
  17733. 8007466: 3001 adds r0, #1
  17734. 8007468: d09b beq.n 80073a2 <_printf_i+0x166>
  17735. 800746a: 3501 adds r5, #1
  17736. 800746c: 68e3 ldr r3, [r4, #12]
  17737. 800746e: 9903 ldr r1, [sp, #12]
  17738. 8007470: 1a5b subs r3, r3, r1
  17739. 8007472: 42ab cmp r3, r5
  17740. 8007474: dcf2 bgt.n 800745c <_printf_i+0x220>
  17741. 8007476: e7eb b.n 8007450 <_printf_i+0x214>
  17742. 8007478: 2500 movs r5, #0
  17743. 800747a: f104 0619 add.w r6, r4, #25
  17744. 800747e: e7f5 b.n 800746c <_printf_i+0x230>
  17745. 8007480: 0800a66a .word 0x0800a66a
  17746. 8007484: 0800a67b .word 0x0800a67b
  17747. 08007488 <siprintf>:
  17748. 8007488: b40e push {r1, r2, r3}
  17749. 800748a: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000
  17750. 800748e: b500 push {lr}
  17751. 8007490: b09c sub sp, #112 ; 0x70
  17752. 8007492: ab1d add r3, sp, #116 ; 0x74
  17753. 8007494: 9002 str r0, [sp, #8]
  17754. 8007496: 9006 str r0, [sp, #24]
  17755. 8007498: 9107 str r1, [sp, #28]
  17756. 800749a: 9104 str r1, [sp, #16]
  17757. 800749c: 4808 ldr r0, [pc, #32] ; (80074c0 <siprintf+0x38>)
  17758. 800749e: 4909 ldr r1, [pc, #36] ; (80074c4 <siprintf+0x3c>)
  17759. 80074a0: f853 2b04 ldr.w r2, [r3], #4
  17760. 80074a4: 9105 str r1, [sp, #20]
  17761. 80074a6: 6800 ldr r0, [r0, #0]
  17762. 80074a8: a902 add r1, sp, #8
  17763. 80074aa: 9301 str r3, [sp, #4]
  17764. 80074ac: f001 fb36 bl 8008b1c <_svfiprintf_r>
  17765. 80074b0: 2200 movs r2, #0
  17766. 80074b2: 9b02 ldr r3, [sp, #8]
  17767. 80074b4: 701a strb r2, [r3, #0]
  17768. 80074b6: b01c add sp, #112 ; 0x70
  17769. 80074b8: f85d eb04 ldr.w lr, [sp], #4
  17770. 80074bc: b003 add sp, #12
  17771. 80074be: 4770 bx lr
  17772. 80074c0: 20000014 .word 0x20000014
  17773. 80074c4: ffff0208 .word 0xffff0208
  17774. 080074c8 <quorem>:
  17775. 80074c8: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  17776. 80074cc: 6903 ldr r3, [r0, #16]
  17777. 80074ce: 690c ldr r4, [r1, #16]
  17778. 80074d0: 4607 mov r7, r0
  17779. 80074d2: 42a3 cmp r3, r4
  17780. 80074d4: f2c0 8083 blt.w 80075de <quorem+0x116>
  17781. 80074d8: 3c01 subs r4, #1
  17782. 80074da: f100 0514 add.w r5, r0, #20
  17783. 80074de: f101 0814 add.w r8, r1, #20
  17784. 80074e2: eb05 0384 add.w r3, r5, r4, lsl #2
  17785. 80074e6: 9301 str r3, [sp, #4]
  17786. 80074e8: f858 3024 ldr.w r3, [r8, r4, lsl #2]
  17787. 80074ec: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  17788. 80074f0: 3301 adds r3, #1
  17789. 80074f2: 429a cmp r2, r3
  17790. 80074f4: fbb2 f6f3 udiv r6, r2, r3
  17791. 80074f8: ea4f 0b84 mov.w fp, r4, lsl #2
  17792. 80074fc: eb08 0984 add.w r9, r8, r4, lsl #2
  17793. 8007500: d332 bcc.n 8007568 <quorem+0xa0>
  17794. 8007502: f04f 0e00 mov.w lr, #0
  17795. 8007506: 4640 mov r0, r8
  17796. 8007508: 46ac mov ip, r5
  17797. 800750a: 46f2 mov sl, lr
  17798. 800750c: f850 2b04 ldr.w r2, [r0], #4
  17799. 8007510: b293 uxth r3, r2
  17800. 8007512: fb06 e303 mla r3, r6, r3, lr
  17801. 8007516: 0c12 lsrs r2, r2, #16
  17802. 8007518: ea4f 4e13 mov.w lr, r3, lsr #16
  17803. 800751c: fb06 e202 mla r2, r6, r2, lr
  17804. 8007520: b29b uxth r3, r3
  17805. 8007522: ebaa 0303 sub.w r3, sl, r3
  17806. 8007526: f8dc a000 ldr.w sl, [ip]
  17807. 800752a: ea4f 4e12 mov.w lr, r2, lsr #16
  17808. 800752e: fa1f fa8a uxth.w sl, sl
  17809. 8007532: 4453 add r3, sl
  17810. 8007534: fa1f fa82 uxth.w sl, r2
  17811. 8007538: f8dc 2000 ldr.w r2, [ip]
  17812. 800753c: 4581 cmp r9, r0
  17813. 800753e: ebca 4212 rsb r2, sl, r2, lsr #16
  17814. 8007542: eb02 4223 add.w r2, r2, r3, asr #16
  17815. 8007546: b29b uxth r3, r3
  17816. 8007548: ea43 4302 orr.w r3, r3, r2, lsl #16
  17817. 800754c: ea4f 4a22 mov.w sl, r2, asr #16
  17818. 8007550: f84c 3b04 str.w r3, [ip], #4
  17819. 8007554: d2da bcs.n 800750c <quorem+0x44>
  17820. 8007556: f855 300b ldr.w r3, [r5, fp]
  17821. 800755a: b92b cbnz r3, 8007568 <quorem+0xa0>
  17822. 800755c: 9b01 ldr r3, [sp, #4]
  17823. 800755e: 3b04 subs r3, #4
  17824. 8007560: 429d cmp r5, r3
  17825. 8007562: 461a mov r2, r3
  17826. 8007564: d32f bcc.n 80075c6 <quorem+0xfe>
  17827. 8007566: 613c str r4, [r7, #16]
  17828. 8007568: 4638 mov r0, r7
  17829. 800756a: f001 f8bf bl 80086ec <__mcmp>
  17830. 800756e: 2800 cmp r0, #0
  17831. 8007570: db25 blt.n 80075be <quorem+0xf6>
  17832. 8007572: 4628 mov r0, r5
  17833. 8007574: f04f 0c00 mov.w ip, #0
  17834. 8007578: 3601 adds r6, #1
  17835. 800757a: f858 1b04 ldr.w r1, [r8], #4
  17836. 800757e: f8d0 e000 ldr.w lr, [r0]
  17837. 8007582: b28b uxth r3, r1
  17838. 8007584: ebac 0303 sub.w r3, ip, r3
  17839. 8007588: fa1f f28e uxth.w r2, lr
  17840. 800758c: 4413 add r3, r2
  17841. 800758e: 0c0a lsrs r2, r1, #16
  17842. 8007590: ebc2 421e rsb r2, r2, lr, lsr #16
  17843. 8007594: eb02 4223 add.w r2, r2, r3, asr #16
  17844. 8007598: b29b uxth r3, r3
  17845. 800759a: ea43 4302 orr.w r3, r3, r2, lsl #16
  17846. 800759e: 45c1 cmp r9, r8
  17847. 80075a0: ea4f 4c22 mov.w ip, r2, asr #16
  17848. 80075a4: f840 3b04 str.w r3, [r0], #4
  17849. 80075a8: d2e7 bcs.n 800757a <quorem+0xb2>
  17850. 80075aa: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  17851. 80075ae: eb05 0384 add.w r3, r5, r4, lsl #2
  17852. 80075b2: b922 cbnz r2, 80075be <quorem+0xf6>
  17853. 80075b4: 3b04 subs r3, #4
  17854. 80075b6: 429d cmp r5, r3
  17855. 80075b8: 461a mov r2, r3
  17856. 80075ba: d30a bcc.n 80075d2 <quorem+0x10a>
  17857. 80075bc: 613c str r4, [r7, #16]
  17858. 80075be: 4630 mov r0, r6
  17859. 80075c0: b003 add sp, #12
  17860. 80075c2: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  17861. 80075c6: 6812 ldr r2, [r2, #0]
  17862. 80075c8: 3b04 subs r3, #4
  17863. 80075ca: 2a00 cmp r2, #0
  17864. 80075cc: d1cb bne.n 8007566 <quorem+0x9e>
  17865. 80075ce: 3c01 subs r4, #1
  17866. 80075d0: e7c6 b.n 8007560 <quorem+0x98>
  17867. 80075d2: 6812 ldr r2, [r2, #0]
  17868. 80075d4: 3b04 subs r3, #4
  17869. 80075d6: 2a00 cmp r2, #0
  17870. 80075d8: d1f0 bne.n 80075bc <quorem+0xf4>
  17871. 80075da: 3c01 subs r4, #1
  17872. 80075dc: e7eb b.n 80075b6 <quorem+0xee>
  17873. 80075de: 2000 movs r0, #0
  17874. 80075e0: e7ee b.n 80075c0 <quorem+0xf8>
  17875. 80075e2: 0000 movs r0, r0
  17876. 80075e4: 0000 movs r0, r0
  17877. ...
  17878. 080075e8 <_dtoa_r>:
  17879. 80075e8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  17880. 80075ec: 4616 mov r6, r2
  17881. 80075ee: 461f mov r7, r3
  17882. 80075f0: 6a44 ldr r4, [r0, #36] ; 0x24
  17883. 80075f2: b099 sub sp, #100 ; 0x64
  17884. 80075f4: 4605 mov r5, r0
  17885. 80075f6: e9cd 6704 strd r6, r7, [sp, #16]
  17886. 80075fa: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94
  17887. 80075fe: b974 cbnz r4, 800761e <_dtoa_r+0x36>
  17888. 8007600: 2010 movs r0, #16
  17889. 8007602: f000 fde3 bl 80081cc <malloc>
  17890. 8007606: 4602 mov r2, r0
  17891. 8007608: 6268 str r0, [r5, #36] ; 0x24
  17892. 800760a: b920 cbnz r0, 8007616 <_dtoa_r+0x2e>
  17893. 800760c: 21ea movs r1, #234 ; 0xea
  17894. 800760e: 4bae ldr r3, [pc, #696] ; (80078c8 <_dtoa_r+0x2e0>)
  17895. 8007610: 48ae ldr r0, [pc, #696] ; (80078cc <_dtoa_r+0x2e4>)
  17896. 8007612: f001 fb93 bl 8008d3c <__assert_func>
  17897. 8007616: e9c0 4401 strd r4, r4, [r0, #4]
  17898. 800761a: 6004 str r4, [r0, #0]
  17899. 800761c: 60c4 str r4, [r0, #12]
  17900. 800761e: 6a6b ldr r3, [r5, #36] ; 0x24
  17901. 8007620: 6819 ldr r1, [r3, #0]
  17902. 8007622: b151 cbz r1, 800763a <_dtoa_r+0x52>
  17903. 8007624: 685a ldr r2, [r3, #4]
  17904. 8007626: 2301 movs r3, #1
  17905. 8007628: 4093 lsls r3, r2
  17906. 800762a: 604a str r2, [r1, #4]
  17907. 800762c: 608b str r3, [r1, #8]
  17908. 800762e: 4628 mov r0, r5
  17909. 8007630: f000 fe22 bl 8008278 <_Bfree>
  17910. 8007634: 2200 movs r2, #0
  17911. 8007636: 6a6b ldr r3, [r5, #36] ; 0x24
  17912. 8007638: 601a str r2, [r3, #0]
  17913. 800763a: 1e3b subs r3, r7, #0
  17914. 800763c: bfaf iteee ge
  17915. 800763e: 2300 movge r3, #0
  17916. 8007640: 2201 movlt r2, #1
  17917. 8007642: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000
  17918. 8007646: 9305 strlt r3, [sp, #20]
  17919. 8007648: bfa8 it ge
  17920. 800764a: f8c8 3000 strge.w r3, [r8]
  17921. 800764e: f8dd 9014 ldr.w r9, [sp, #20]
  17922. 8007652: 4b9f ldr r3, [pc, #636] ; (80078d0 <_dtoa_r+0x2e8>)
  17923. 8007654: bfb8 it lt
  17924. 8007656: f8c8 2000 strlt.w r2, [r8]
  17925. 800765a: ea33 0309 bics.w r3, r3, r9
  17926. 800765e: d119 bne.n 8007694 <_dtoa_r+0xac>
  17927. 8007660: f242 730f movw r3, #9999 ; 0x270f
  17928. 8007664: 9a24 ldr r2, [sp, #144] ; 0x90
  17929. 8007666: 6013 str r3, [r2, #0]
  17930. 8007668: f3c9 0313 ubfx r3, r9, #0, #20
  17931. 800766c: 4333 orrs r3, r6
  17932. 800766e: f000 8580 beq.w 8008172 <_dtoa_r+0xb8a>
  17933. 8007672: 9b26 ldr r3, [sp, #152] ; 0x98
  17934. 8007674: b953 cbnz r3, 800768c <_dtoa_r+0xa4>
  17935. 8007676: 4b97 ldr r3, [pc, #604] ; (80078d4 <_dtoa_r+0x2ec>)
  17936. 8007678: e022 b.n 80076c0 <_dtoa_r+0xd8>
  17937. 800767a: 4b97 ldr r3, [pc, #604] ; (80078d8 <_dtoa_r+0x2f0>)
  17938. 800767c: 9308 str r3, [sp, #32]
  17939. 800767e: 3308 adds r3, #8
  17940. 8007680: 9a26 ldr r2, [sp, #152] ; 0x98
  17941. 8007682: 6013 str r3, [r2, #0]
  17942. 8007684: 9808 ldr r0, [sp, #32]
  17943. 8007686: b019 add sp, #100 ; 0x64
  17944. 8007688: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  17945. 800768c: 4b91 ldr r3, [pc, #580] ; (80078d4 <_dtoa_r+0x2ec>)
  17946. 800768e: 9308 str r3, [sp, #32]
  17947. 8007690: 3303 adds r3, #3
  17948. 8007692: e7f5 b.n 8007680 <_dtoa_r+0x98>
  17949. 8007694: e9dd 3404 ldrd r3, r4, [sp, #16]
  17950. 8007698: e9cd 340c strd r3, r4, [sp, #48] ; 0x30
  17951. 800769c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  17952. 80076a0: 2200 movs r2, #0
  17953. 80076a2: 2300 movs r3, #0
  17954. 80076a4: f7f9 f998 bl 80009d8 <__aeabi_dcmpeq>
  17955. 80076a8: 4680 mov r8, r0
  17956. 80076aa: b158 cbz r0, 80076c4 <_dtoa_r+0xdc>
  17957. 80076ac: 2301 movs r3, #1
  17958. 80076ae: 9a24 ldr r2, [sp, #144] ; 0x90
  17959. 80076b0: 6013 str r3, [r2, #0]
  17960. 80076b2: 9b26 ldr r3, [sp, #152] ; 0x98
  17961. 80076b4: 2b00 cmp r3, #0
  17962. 80076b6: f000 8559 beq.w 800816c <_dtoa_r+0xb84>
  17963. 80076ba: 4888 ldr r0, [pc, #544] ; (80078dc <_dtoa_r+0x2f4>)
  17964. 80076bc: 6018 str r0, [r3, #0]
  17965. 80076be: 1e43 subs r3, r0, #1
  17966. 80076c0: 9308 str r3, [sp, #32]
  17967. 80076c2: e7df b.n 8007684 <_dtoa_r+0x9c>
  17968. 80076c4: ab16 add r3, sp, #88 ; 0x58
  17969. 80076c6: 9301 str r3, [sp, #4]
  17970. 80076c8: ab17 add r3, sp, #92 ; 0x5c
  17971. 80076ca: 9300 str r3, [sp, #0]
  17972. 80076cc: 4628 mov r0, r5
  17973. 80076ce: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30
  17974. 80076d2: f001 f8b7 bl 8008844 <__d2b>
  17975. 80076d6: f3c9 540a ubfx r4, r9, #20, #11
  17976. 80076da: 4682 mov sl, r0
  17977. 80076dc: 2c00 cmp r4, #0
  17978. 80076de: d07e beq.n 80077de <_dtoa_r+0x1f6>
  17979. 80076e0: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  17980. 80076e4: 9b0d ldr r3, [sp, #52] ; 0x34
  17981. 80076e6: f2a4 34ff subw r4, r4, #1023 ; 0x3ff
  17982. 80076ea: f3c3 0313 ubfx r3, r3, #0, #20
  17983. 80076ee: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000
  17984. 80076f2: f441 1140 orr.w r1, r1, #3145728 ; 0x300000
  17985. 80076f6: f8cd 804c str.w r8, [sp, #76] ; 0x4c
  17986. 80076fa: 2200 movs r2, #0
  17987. 80076fc: 4b78 ldr r3, [pc, #480] ; (80078e0 <_dtoa_r+0x2f8>)
  17988. 80076fe: f7f8 fd4b bl 8000198 <__aeabi_dsub>
  17989. 8007702: a36b add r3, pc, #428 ; (adr r3, 80078b0 <_dtoa_r+0x2c8>)
  17990. 8007704: e9d3 2300 ldrd r2, r3, [r3]
  17991. 8007708: f7f8 fefe bl 8000508 <__aeabi_dmul>
  17992. 800770c: a36a add r3, pc, #424 ; (adr r3, 80078b8 <_dtoa_r+0x2d0>)
  17993. 800770e: e9d3 2300 ldrd r2, r3, [r3]
  17994. 8007712: f7f8 fd43 bl 800019c <__adddf3>
  17995. 8007716: 4606 mov r6, r0
  17996. 8007718: 4620 mov r0, r4
  17997. 800771a: 460f mov r7, r1
  17998. 800771c: f7f8 fe8a bl 8000434 <__aeabi_i2d>
  17999. 8007720: a367 add r3, pc, #412 ; (adr r3, 80078c0 <_dtoa_r+0x2d8>)
  18000. 8007722: e9d3 2300 ldrd r2, r3, [r3]
  18001. 8007726: f7f8 feef bl 8000508 <__aeabi_dmul>
  18002. 800772a: 4602 mov r2, r0
  18003. 800772c: 460b mov r3, r1
  18004. 800772e: 4630 mov r0, r6
  18005. 8007730: 4639 mov r1, r7
  18006. 8007732: f7f8 fd33 bl 800019c <__adddf3>
  18007. 8007736: 4606 mov r6, r0
  18008. 8007738: 460f mov r7, r1
  18009. 800773a: f7f9 f995 bl 8000a68 <__aeabi_d2iz>
  18010. 800773e: 2200 movs r2, #0
  18011. 8007740: 4681 mov r9, r0
  18012. 8007742: 2300 movs r3, #0
  18013. 8007744: 4630 mov r0, r6
  18014. 8007746: 4639 mov r1, r7
  18015. 8007748: f7f9 f950 bl 80009ec <__aeabi_dcmplt>
  18016. 800774c: b148 cbz r0, 8007762 <_dtoa_r+0x17a>
  18017. 800774e: 4648 mov r0, r9
  18018. 8007750: f7f8 fe70 bl 8000434 <__aeabi_i2d>
  18019. 8007754: 4632 mov r2, r6
  18020. 8007756: 463b mov r3, r7
  18021. 8007758: f7f9 f93e bl 80009d8 <__aeabi_dcmpeq>
  18022. 800775c: b908 cbnz r0, 8007762 <_dtoa_r+0x17a>
  18023. 800775e: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
  18024. 8007762: f1b9 0f16 cmp.w r9, #22
  18025. 8007766: d857 bhi.n 8007818 <_dtoa_r+0x230>
  18026. 8007768: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  18027. 800776c: 4b5d ldr r3, [pc, #372] ; (80078e4 <_dtoa_r+0x2fc>)
  18028. 800776e: eb03 03c9 add.w r3, r3, r9, lsl #3
  18029. 8007772: e9d3 2300 ldrd r2, r3, [r3]
  18030. 8007776: f7f9 f939 bl 80009ec <__aeabi_dcmplt>
  18031. 800777a: 2800 cmp r0, #0
  18032. 800777c: d04e beq.n 800781c <_dtoa_r+0x234>
  18033. 800777e: 2300 movs r3, #0
  18034. 8007780: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
  18035. 8007784: 930f str r3, [sp, #60] ; 0x3c
  18036. 8007786: 9b16 ldr r3, [sp, #88] ; 0x58
  18037. 8007788: 1b1c subs r4, r3, r4
  18038. 800778a: 1e63 subs r3, r4, #1
  18039. 800778c: 9309 str r3, [sp, #36] ; 0x24
  18040. 800778e: bf49 itett mi
  18041. 8007790: f1c4 0301 rsbmi r3, r4, #1
  18042. 8007794: 2300 movpl r3, #0
  18043. 8007796: 9306 strmi r3, [sp, #24]
  18044. 8007798: 2300 movmi r3, #0
  18045. 800779a: bf54 ite pl
  18046. 800779c: 9306 strpl r3, [sp, #24]
  18047. 800779e: 9309 strmi r3, [sp, #36] ; 0x24
  18048. 80077a0: f1b9 0f00 cmp.w r9, #0
  18049. 80077a4: db3c blt.n 8007820 <_dtoa_r+0x238>
  18050. 80077a6: 9b09 ldr r3, [sp, #36] ; 0x24
  18051. 80077a8: f8cd 9038 str.w r9, [sp, #56] ; 0x38
  18052. 80077ac: 444b add r3, r9
  18053. 80077ae: 9309 str r3, [sp, #36] ; 0x24
  18054. 80077b0: 2300 movs r3, #0
  18055. 80077b2: 930a str r3, [sp, #40] ; 0x28
  18056. 80077b4: 9b22 ldr r3, [sp, #136] ; 0x88
  18057. 80077b6: 2b09 cmp r3, #9
  18058. 80077b8: d86c bhi.n 8007894 <_dtoa_r+0x2ac>
  18059. 80077ba: 2b05 cmp r3, #5
  18060. 80077bc: bfc4 itt gt
  18061. 80077be: 3b04 subgt r3, #4
  18062. 80077c0: 9322 strgt r3, [sp, #136] ; 0x88
  18063. 80077c2: 9b22 ldr r3, [sp, #136] ; 0x88
  18064. 80077c4: bfc8 it gt
  18065. 80077c6: 2400 movgt r4, #0
  18066. 80077c8: f1a3 0302 sub.w r3, r3, #2
  18067. 80077cc: bfd8 it le
  18068. 80077ce: 2401 movle r4, #1
  18069. 80077d0: 2b03 cmp r3, #3
  18070. 80077d2: f200 808b bhi.w 80078ec <_dtoa_r+0x304>
  18071. 80077d6: e8df f003 tbb [pc, r3]
  18072. 80077da: 4f2d .short 0x4f2d
  18073. 80077dc: 5b4d .short 0x5b4d
  18074. 80077de: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58
  18075. 80077e2: 441c add r4, r3
  18076. 80077e4: f204 4332 addw r3, r4, #1074 ; 0x432
  18077. 80077e8: 2b20 cmp r3, #32
  18078. 80077ea: bfc3 ittte gt
  18079. 80077ec: f1c3 0340 rsbgt r3, r3, #64 ; 0x40
  18080. 80077f0: f204 4012 addwgt r0, r4, #1042 ; 0x412
  18081. 80077f4: fa09 f303 lslgt.w r3, r9, r3
  18082. 80077f8: f1c3 0320 rsble r3, r3, #32
  18083. 80077fc: bfc6 itte gt
  18084. 80077fe: fa26 f000 lsrgt.w r0, r6, r0
  18085. 8007802: 4318 orrgt r0, r3
  18086. 8007804: fa06 f003 lslle.w r0, r6, r3
  18087. 8007808: f7f8 fe04 bl 8000414 <__aeabi_ui2d>
  18088. 800780c: 2301 movs r3, #1
  18089. 800780e: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000
  18090. 8007812: 3c01 subs r4, #1
  18091. 8007814: 9313 str r3, [sp, #76] ; 0x4c
  18092. 8007816: e770 b.n 80076fa <_dtoa_r+0x112>
  18093. 8007818: 2301 movs r3, #1
  18094. 800781a: e7b3 b.n 8007784 <_dtoa_r+0x19c>
  18095. 800781c: 900f str r0, [sp, #60] ; 0x3c
  18096. 800781e: e7b2 b.n 8007786 <_dtoa_r+0x19e>
  18097. 8007820: 9b06 ldr r3, [sp, #24]
  18098. 8007822: eba3 0309 sub.w r3, r3, r9
  18099. 8007826: 9306 str r3, [sp, #24]
  18100. 8007828: f1c9 0300 rsb r3, r9, #0
  18101. 800782c: 930a str r3, [sp, #40] ; 0x28
  18102. 800782e: 2300 movs r3, #0
  18103. 8007830: 930e str r3, [sp, #56] ; 0x38
  18104. 8007832: e7bf b.n 80077b4 <_dtoa_r+0x1cc>
  18105. 8007834: 2300 movs r3, #0
  18106. 8007836: 930b str r3, [sp, #44] ; 0x2c
  18107. 8007838: 9b23 ldr r3, [sp, #140] ; 0x8c
  18108. 800783a: 2b00 cmp r3, #0
  18109. 800783c: dc59 bgt.n 80078f2 <_dtoa_r+0x30a>
  18110. 800783e: f04f 0b01 mov.w fp, #1
  18111. 8007842: 465b mov r3, fp
  18112. 8007844: f8cd b008 str.w fp, [sp, #8]
  18113. 8007848: f8cd b08c str.w fp, [sp, #140] ; 0x8c
  18114. 800784c: 2200 movs r2, #0
  18115. 800784e: 6a68 ldr r0, [r5, #36] ; 0x24
  18116. 8007850: 6042 str r2, [r0, #4]
  18117. 8007852: 2204 movs r2, #4
  18118. 8007854: f102 0614 add.w r6, r2, #20
  18119. 8007858: 429e cmp r6, r3
  18120. 800785a: 6841 ldr r1, [r0, #4]
  18121. 800785c: d94f bls.n 80078fe <_dtoa_r+0x316>
  18122. 800785e: 4628 mov r0, r5
  18123. 8007860: f000 fcca bl 80081f8 <_Balloc>
  18124. 8007864: 9008 str r0, [sp, #32]
  18125. 8007866: 2800 cmp r0, #0
  18126. 8007868: d14d bne.n 8007906 <_dtoa_r+0x31e>
  18127. 800786a: 4602 mov r2, r0
  18128. 800786c: f44f 71d5 mov.w r1, #426 ; 0x1aa
  18129. 8007870: 4b1d ldr r3, [pc, #116] ; (80078e8 <_dtoa_r+0x300>)
  18130. 8007872: e6cd b.n 8007610 <_dtoa_r+0x28>
  18131. 8007874: 2301 movs r3, #1
  18132. 8007876: e7de b.n 8007836 <_dtoa_r+0x24e>
  18133. 8007878: 2300 movs r3, #0
  18134. 800787a: 930b str r3, [sp, #44] ; 0x2c
  18135. 800787c: 9b23 ldr r3, [sp, #140] ; 0x8c
  18136. 800787e: eb09 0b03 add.w fp, r9, r3
  18137. 8007882: f10b 0301 add.w r3, fp, #1
  18138. 8007886: 2b01 cmp r3, #1
  18139. 8007888: 9302 str r3, [sp, #8]
  18140. 800788a: bfb8 it lt
  18141. 800788c: 2301 movlt r3, #1
  18142. 800788e: e7dd b.n 800784c <_dtoa_r+0x264>
  18143. 8007890: 2301 movs r3, #1
  18144. 8007892: e7f2 b.n 800787a <_dtoa_r+0x292>
  18145. 8007894: 2401 movs r4, #1
  18146. 8007896: 2300 movs r3, #0
  18147. 8007898: 940b str r4, [sp, #44] ; 0x2c
  18148. 800789a: 9322 str r3, [sp, #136] ; 0x88
  18149. 800789c: f04f 3bff mov.w fp, #4294967295 ; 0xffffffff
  18150. 80078a0: 2200 movs r2, #0
  18151. 80078a2: 2312 movs r3, #18
  18152. 80078a4: f8cd b008 str.w fp, [sp, #8]
  18153. 80078a8: 9223 str r2, [sp, #140] ; 0x8c
  18154. 80078aa: e7cf b.n 800784c <_dtoa_r+0x264>
  18155. 80078ac: f3af 8000 nop.w
  18156. 80078b0: 636f4361 .word 0x636f4361
  18157. 80078b4: 3fd287a7 .word 0x3fd287a7
  18158. 80078b8: 8b60c8b3 .word 0x8b60c8b3
  18159. 80078bc: 3fc68a28 .word 0x3fc68a28
  18160. 80078c0: 509f79fb .word 0x509f79fb
  18161. 80078c4: 3fd34413 .word 0x3fd34413
  18162. 80078c8: 0800a699 .word 0x0800a699
  18163. 80078cc: 0800a6b0 .word 0x0800a6b0
  18164. 80078d0: 7ff00000 .word 0x7ff00000
  18165. 80078d4: 0800a695 .word 0x0800a695
  18166. 80078d8: 0800a68c .word 0x0800a68c
  18167. 80078dc: 0800a669 .word 0x0800a669
  18168. 80078e0: 3ff80000 .word 0x3ff80000
  18169. 80078e4: 0800a7a8 .word 0x0800a7a8
  18170. 80078e8: 0800a70f .word 0x0800a70f
  18171. 80078ec: 2301 movs r3, #1
  18172. 80078ee: 930b str r3, [sp, #44] ; 0x2c
  18173. 80078f0: e7d4 b.n 800789c <_dtoa_r+0x2b4>
  18174. 80078f2: f8dd b08c ldr.w fp, [sp, #140] ; 0x8c
  18175. 80078f6: 465b mov r3, fp
  18176. 80078f8: f8cd b008 str.w fp, [sp, #8]
  18177. 80078fc: e7a6 b.n 800784c <_dtoa_r+0x264>
  18178. 80078fe: 3101 adds r1, #1
  18179. 8007900: 6041 str r1, [r0, #4]
  18180. 8007902: 0052 lsls r2, r2, #1
  18181. 8007904: e7a6 b.n 8007854 <_dtoa_r+0x26c>
  18182. 8007906: 6a6b ldr r3, [r5, #36] ; 0x24
  18183. 8007908: 9a08 ldr r2, [sp, #32]
  18184. 800790a: 601a str r2, [r3, #0]
  18185. 800790c: 9b02 ldr r3, [sp, #8]
  18186. 800790e: 2b0e cmp r3, #14
  18187. 8007910: f200 80a8 bhi.w 8007a64 <_dtoa_r+0x47c>
  18188. 8007914: 2c00 cmp r4, #0
  18189. 8007916: f000 80a5 beq.w 8007a64 <_dtoa_r+0x47c>
  18190. 800791a: f1b9 0f00 cmp.w r9, #0
  18191. 800791e: dd34 ble.n 800798a <_dtoa_r+0x3a2>
  18192. 8007920: 4a9a ldr r2, [pc, #616] ; (8007b8c <_dtoa_r+0x5a4>)
  18193. 8007922: f009 030f and.w r3, r9, #15
  18194. 8007926: eb02 03c3 add.w r3, r2, r3, lsl #3
  18195. 800792a: f419 7f80 tst.w r9, #256 ; 0x100
  18196. 800792e: e9d3 3400 ldrd r3, r4, [r3]
  18197. 8007932: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40
  18198. 8007936: ea4f 1429 mov.w r4, r9, asr #4
  18199. 800793a: d016 beq.n 800796a <_dtoa_r+0x382>
  18200. 800793c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  18201. 8007940: 4b93 ldr r3, [pc, #588] ; (8007b90 <_dtoa_r+0x5a8>)
  18202. 8007942: 2703 movs r7, #3
  18203. 8007944: e9d3 2308 ldrd r2, r3, [r3, #32]
  18204. 8007948: f7f8 ff08 bl 800075c <__aeabi_ddiv>
  18205. 800794c: e9cd 0104 strd r0, r1, [sp, #16]
  18206. 8007950: f004 040f and.w r4, r4, #15
  18207. 8007954: 4e8e ldr r6, [pc, #568] ; (8007b90 <_dtoa_r+0x5a8>)
  18208. 8007956: b954 cbnz r4, 800796e <_dtoa_r+0x386>
  18209. 8007958: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  18210. 800795c: e9dd 0104 ldrd r0, r1, [sp, #16]
  18211. 8007960: f7f8 fefc bl 800075c <__aeabi_ddiv>
  18212. 8007964: e9cd 0104 strd r0, r1, [sp, #16]
  18213. 8007968: e029 b.n 80079be <_dtoa_r+0x3d6>
  18214. 800796a: 2702 movs r7, #2
  18215. 800796c: e7f2 b.n 8007954 <_dtoa_r+0x36c>
  18216. 800796e: 07e1 lsls r1, r4, #31
  18217. 8007970: d508 bpl.n 8007984 <_dtoa_r+0x39c>
  18218. 8007972: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  18219. 8007976: e9d6 2300 ldrd r2, r3, [r6]
  18220. 800797a: f7f8 fdc5 bl 8000508 <__aeabi_dmul>
  18221. 800797e: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  18222. 8007982: 3701 adds r7, #1
  18223. 8007984: 1064 asrs r4, r4, #1
  18224. 8007986: 3608 adds r6, #8
  18225. 8007988: e7e5 b.n 8007956 <_dtoa_r+0x36e>
  18226. 800798a: f000 80a5 beq.w 8007ad8 <_dtoa_r+0x4f0>
  18227. 800798e: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  18228. 8007992: f1c9 0400 rsb r4, r9, #0
  18229. 8007996: 4b7d ldr r3, [pc, #500] ; (8007b8c <_dtoa_r+0x5a4>)
  18230. 8007998: f004 020f and.w r2, r4, #15
  18231. 800799c: eb03 03c2 add.w r3, r3, r2, lsl #3
  18232. 80079a0: e9d3 2300 ldrd r2, r3, [r3]
  18233. 80079a4: f7f8 fdb0 bl 8000508 <__aeabi_dmul>
  18234. 80079a8: 2702 movs r7, #2
  18235. 80079aa: 2300 movs r3, #0
  18236. 80079ac: e9cd 0104 strd r0, r1, [sp, #16]
  18237. 80079b0: 4e77 ldr r6, [pc, #476] ; (8007b90 <_dtoa_r+0x5a8>)
  18238. 80079b2: 1124 asrs r4, r4, #4
  18239. 80079b4: 2c00 cmp r4, #0
  18240. 80079b6: f040 8084 bne.w 8007ac2 <_dtoa_r+0x4da>
  18241. 80079ba: 2b00 cmp r3, #0
  18242. 80079bc: d1d2 bne.n 8007964 <_dtoa_r+0x37c>
  18243. 80079be: 9b0f ldr r3, [sp, #60] ; 0x3c
  18244. 80079c0: 2b00 cmp r3, #0
  18245. 80079c2: f000 808b beq.w 8007adc <_dtoa_r+0x4f4>
  18246. 80079c6: e9dd 3404 ldrd r3, r4, [sp, #16]
  18247. 80079ca: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40
  18248. 80079ce: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  18249. 80079d2: 2200 movs r2, #0
  18250. 80079d4: 4b6f ldr r3, [pc, #444] ; (8007b94 <_dtoa_r+0x5ac>)
  18251. 80079d6: f7f9 f809 bl 80009ec <__aeabi_dcmplt>
  18252. 80079da: 2800 cmp r0, #0
  18253. 80079dc: d07e beq.n 8007adc <_dtoa_r+0x4f4>
  18254. 80079de: 9b02 ldr r3, [sp, #8]
  18255. 80079e0: 2b00 cmp r3, #0
  18256. 80079e2: d07b beq.n 8007adc <_dtoa_r+0x4f4>
  18257. 80079e4: f1bb 0f00 cmp.w fp, #0
  18258. 80079e8: dd38 ble.n 8007a5c <_dtoa_r+0x474>
  18259. 80079ea: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  18260. 80079ee: 2200 movs r2, #0
  18261. 80079f0: 4b69 ldr r3, [pc, #420] ; (8007b98 <_dtoa_r+0x5b0>)
  18262. 80079f2: f7f8 fd89 bl 8000508 <__aeabi_dmul>
  18263. 80079f6: 465c mov r4, fp
  18264. 80079f8: e9cd 0104 strd r0, r1, [sp, #16]
  18265. 80079fc: f109 38ff add.w r8, r9, #4294967295 ; 0xffffffff
  18266. 8007a00: 3701 adds r7, #1
  18267. 8007a02: 4638 mov r0, r7
  18268. 8007a04: f7f8 fd16 bl 8000434 <__aeabi_i2d>
  18269. 8007a08: e9dd 2304 ldrd r2, r3, [sp, #16]
  18270. 8007a0c: f7f8 fd7c bl 8000508 <__aeabi_dmul>
  18271. 8007a10: 2200 movs r2, #0
  18272. 8007a12: 4b62 ldr r3, [pc, #392] ; (8007b9c <_dtoa_r+0x5b4>)
  18273. 8007a14: f7f8 fbc2 bl 800019c <__adddf3>
  18274. 8007a18: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000
  18275. 8007a1c: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  18276. 8007a20: 9611 str r6, [sp, #68] ; 0x44
  18277. 8007a22: 2c00 cmp r4, #0
  18278. 8007a24: d15d bne.n 8007ae2 <_dtoa_r+0x4fa>
  18279. 8007a26: e9dd 0104 ldrd r0, r1, [sp, #16]
  18280. 8007a2a: 2200 movs r2, #0
  18281. 8007a2c: 4b5c ldr r3, [pc, #368] ; (8007ba0 <_dtoa_r+0x5b8>)
  18282. 8007a2e: f7f8 fbb3 bl 8000198 <__aeabi_dsub>
  18283. 8007a32: 4602 mov r2, r0
  18284. 8007a34: 460b mov r3, r1
  18285. 8007a36: e9cd 2304 strd r2, r3, [sp, #16]
  18286. 8007a3a: 4633 mov r3, r6
  18287. 8007a3c: 9a10 ldr r2, [sp, #64] ; 0x40
  18288. 8007a3e: f7f8 fff3 bl 8000a28 <__aeabi_dcmpgt>
  18289. 8007a42: 2800 cmp r0, #0
  18290. 8007a44: f040 829e bne.w 8007f84 <_dtoa_r+0x99c>
  18291. 8007a48: e9dd 0104 ldrd r0, r1, [sp, #16]
  18292. 8007a4c: 9a10 ldr r2, [sp, #64] ; 0x40
  18293. 8007a4e: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000
  18294. 8007a52: f7f8 ffcb bl 80009ec <__aeabi_dcmplt>
  18295. 8007a56: 2800 cmp r0, #0
  18296. 8007a58: f040 8292 bne.w 8007f80 <_dtoa_r+0x998>
  18297. 8007a5c: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30
  18298. 8007a60: e9cd 3404 strd r3, r4, [sp, #16]
  18299. 8007a64: 9b17 ldr r3, [sp, #92] ; 0x5c
  18300. 8007a66: 2b00 cmp r3, #0
  18301. 8007a68: f2c0 8153 blt.w 8007d12 <_dtoa_r+0x72a>
  18302. 8007a6c: f1b9 0f0e cmp.w r9, #14
  18303. 8007a70: f300 814f bgt.w 8007d12 <_dtoa_r+0x72a>
  18304. 8007a74: 4b45 ldr r3, [pc, #276] ; (8007b8c <_dtoa_r+0x5a4>)
  18305. 8007a76: eb03 03c9 add.w r3, r3, r9, lsl #3
  18306. 8007a7a: e9d3 3400 ldrd r3, r4, [r3]
  18307. 8007a7e: e9cd 3406 strd r3, r4, [sp, #24]
  18308. 8007a82: 9b23 ldr r3, [sp, #140] ; 0x8c
  18309. 8007a84: 2b00 cmp r3, #0
  18310. 8007a86: f280 80db bge.w 8007c40 <_dtoa_r+0x658>
  18311. 8007a8a: 9b02 ldr r3, [sp, #8]
  18312. 8007a8c: 2b00 cmp r3, #0
  18313. 8007a8e: f300 80d7 bgt.w 8007c40 <_dtoa_r+0x658>
  18314. 8007a92: f040 8274 bne.w 8007f7e <_dtoa_r+0x996>
  18315. 8007a96: e9dd 0106 ldrd r0, r1, [sp, #24]
  18316. 8007a9a: 2200 movs r2, #0
  18317. 8007a9c: 4b40 ldr r3, [pc, #256] ; (8007ba0 <_dtoa_r+0x5b8>)
  18318. 8007a9e: f7f8 fd33 bl 8000508 <__aeabi_dmul>
  18319. 8007aa2: e9dd 2304 ldrd r2, r3, [sp, #16]
  18320. 8007aa6: f7f8 ffb5 bl 8000a14 <__aeabi_dcmpge>
  18321. 8007aaa: 9c02 ldr r4, [sp, #8]
  18322. 8007aac: 4626 mov r6, r4
  18323. 8007aae: 2800 cmp r0, #0
  18324. 8007ab0: f040 824a bne.w 8007f48 <_dtoa_r+0x960>
  18325. 8007ab4: 2331 movs r3, #49 ; 0x31
  18326. 8007ab6: 9f08 ldr r7, [sp, #32]
  18327. 8007ab8: f109 0901 add.w r9, r9, #1
  18328. 8007abc: f807 3b01 strb.w r3, [r7], #1
  18329. 8007ac0: e246 b.n 8007f50 <_dtoa_r+0x968>
  18330. 8007ac2: 07e2 lsls r2, r4, #31
  18331. 8007ac4: d505 bpl.n 8007ad2 <_dtoa_r+0x4ea>
  18332. 8007ac6: e9d6 2300 ldrd r2, r3, [r6]
  18333. 8007aca: f7f8 fd1d bl 8000508 <__aeabi_dmul>
  18334. 8007ace: 2301 movs r3, #1
  18335. 8007ad0: 3701 adds r7, #1
  18336. 8007ad2: 1064 asrs r4, r4, #1
  18337. 8007ad4: 3608 adds r6, #8
  18338. 8007ad6: e76d b.n 80079b4 <_dtoa_r+0x3cc>
  18339. 8007ad8: 2702 movs r7, #2
  18340. 8007ada: e770 b.n 80079be <_dtoa_r+0x3d6>
  18341. 8007adc: 46c8 mov r8, r9
  18342. 8007ade: 9c02 ldr r4, [sp, #8]
  18343. 8007ae0: e78f b.n 8007a02 <_dtoa_r+0x41a>
  18344. 8007ae2: 9908 ldr r1, [sp, #32]
  18345. 8007ae4: 4b29 ldr r3, [pc, #164] ; (8007b8c <_dtoa_r+0x5a4>)
  18346. 8007ae6: 4421 add r1, r4
  18347. 8007ae8: 9112 str r1, [sp, #72] ; 0x48
  18348. 8007aea: 990b ldr r1, [sp, #44] ; 0x2c
  18349. 8007aec: eb03 03c4 add.w r3, r3, r4, lsl #3
  18350. 8007af0: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40
  18351. 8007af4: e953 2302 ldrd r2, r3, [r3, #-8]
  18352. 8007af8: 2900 cmp r1, #0
  18353. 8007afa: d055 beq.n 8007ba8 <_dtoa_r+0x5c0>
  18354. 8007afc: 2000 movs r0, #0
  18355. 8007afe: 4929 ldr r1, [pc, #164] ; (8007ba4 <_dtoa_r+0x5bc>)
  18356. 8007b00: f7f8 fe2c bl 800075c <__aeabi_ddiv>
  18357. 8007b04: 463b mov r3, r7
  18358. 8007b06: 4632 mov r2, r6
  18359. 8007b08: f7f8 fb46 bl 8000198 <__aeabi_dsub>
  18360. 8007b0c: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  18361. 8007b10: 9f08 ldr r7, [sp, #32]
  18362. 8007b12: e9dd 0104 ldrd r0, r1, [sp, #16]
  18363. 8007b16: f7f8 ffa7 bl 8000a68 <__aeabi_d2iz>
  18364. 8007b1a: 4604 mov r4, r0
  18365. 8007b1c: f7f8 fc8a bl 8000434 <__aeabi_i2d>
  18366. 8007b20: 4602 mov r2, r0
  18367. 8007b22: 460b mov r3, r1
  18368. 8007b24: e9dd 0104 ldrd r0, r1, [sp, #16]
  18369. 8007b28: f7f8 fb36 bl 8000198 <__aeabi_dsub>
  18370. 8007b2c: 4602 mov r2, r0
  18371. 8007b2e: 460b mov r3, r1
  18372. 8007b30: 3430 adds r4, #48 ; 0x30
  18373. 8007b32: e9cd 2304 strd r2, r3, [sp, #16]
  18374. 8007b36: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  18375. 8007b3a: f807 4b01 strb.w r4, [r7], #1
  18376. 8007b3e: f7f8 ff55 bl 80009ec <__aeabi_dcmplt>
  18377. 8007b42: 2800 cmp r0, #0
  18378. 8007b44: d174 bne.n 8007c30 <_dtoa_r+0x648>
  18379. 8007b46: e9dd 2304 ldrd r2, r3, [sp, #16]
  18380. 8007b4a: 2000 movs r0, #0
  18381. 8007b4c: 4911 ldr r1, [pc, #68] ; (8007b94 <_dtoa_r+0x5ac>)
  18382. 8007b4e: f7f8 fb23 bl 8000198 <__aeabi_dsub>
  18383. 8007b52: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  18384. 8007b56: f7f8 ff49 bl 80009ec <__aeabi_dcmplt>
  18385. 8007b5a: 2800 cmp r0, #0
  18386. 8007b5c: f040 80b6 bne.w 8007ccc <_dtoa_r+0x6e4>
  18387. 8007b60: 9b12 ldr r3, [sp, #72] ; 0x48
  18388. 8007b62: 429f cmp r7, r3
  18389. 8007b64: f43f af7a beq.w 8007a5c <_dtoa_r+0x474>
  18390. 8007b68: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  18391. 8007b6c: 2200 movs r2, #0
  18392. 8007b6e: 4b0a ldr r3, [pc, #40] ; (8007b98 <_dtoa_r+0x5b0>)
  18393. 8007b70: f7f8 fcca bl 8000508 <__aeabi_dmul>
  18394. 8007b74: 2200 movs r2, #0
  18395. 8007b76: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  18396. 8007b7a: e9dd 0104 ldrd r0, r1, [sp, #16]
  18397. 8007b7e: 4b06 ldr r3, [pc, #24] ; (8007b98 <_dtoa_r+0x5b0>)
  18398. 8007b80: f7f8 fcc2 bl 8000508 <__aeabi_dmul>
  18399. 8007b84: e9cd 0104 strd r0, r1, [sp, #16]
  18400. 8007b88: e7c3 b.n 8007b12 <_dtoa_r+0x52a>
  18401. 8007b8a: bf00 nop
  18402. 8007b8c: 0800a7a8 .word 0x0800a7a8
  18403. 8007b90: 0800a780 .word 0x0800a780
  18404. 8007b94: 3ff00000 .word 0x3ff00000
  18405. 8007b98: 40240000 .word 0x40240000
  18406. 8007b9c: 401c0000 .word 0x401c0000
  18407. 8007ba0: 40140000 .word 0x40140000
  18408. 8007ba4: 3fe00000 .word 0x3fe00000
  18409. 8007ba8: 4630 mov r0, r6
  18410. 8007baa: 4639 mov r1, r7
  18411. 8007bac: f7f8 fcac bl 8000508 <__aeabi_dmul>
  18412. 8007bb0: 9b12 ldr r3, [sp, #72] ; 0x48
  18413. 8007bb2: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  18414. 8007bb6: 9c08 ldr r4, [sp, #32]
  18415. 8007bb8: 9314 str r3, [sp, #80] ; 0x50
  18416. 8007bba: e9dd 0104 ldrd r0, r1, [sp, #16]
  18417. 8007bbe: f7f8 ff53 bl 8000a68 <__aeabi_d2iz>
  18418. 8007bc2: 9015 str r0, [sp, #84] ; 0x54
  18419. 8007bc4: f7f8 fc36 bl 8000434 <__aeabi_i2d>
  18420. 8007bc8: 4602 mov r2, r0
  18421. 8007bca: 460b mov r3, r1
  18422. 8007bcc: e9dd 0104 ldrd r0, r1, [sp, #16]
  18423. 8007bd0: f7f8 fae2 bl 8000198 <__aeabi_dsub>
  18424. 8007bd4: 9b15 ldr r3, [sp, #84] ; 0x54
  18425. 8007bd6: 4606 mov r6, r0
  18426. 8007bd8: 3330 adds r3, #48 ; 0x30
  18427. 8007bda: f804 3b01 strb.w r3, [r4], #1
  18428. 8007bde: 9b12 ldr r3, [sp, #72] ; 0x48
  18429. 8007be0: 460f mov r7, r1
  18430. 8007be2: 429c cmp r4, r3
  18431. 8007be4: f04f 0200 mov.w r2, #0
  18432. 8007be8: d124 bne.n 8007c34 <_dtoa_r+0x64c>
  18433. 8007bea: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  18434. 8007bee: 4bb3 ldr r3, [pc, #716] ; (8007ebc <_dtoa_r+0x8d4>)
  18435. 8007bf0: f7f8 fad4 bl 800019c <__adddf3>
  18436. 8007bf4: 4602 mov r2, r0
  18437. 8007bf6: 460b mov r3, r1
  18438. 8007bf8: 4630 mov r0, r6
  18439. 8007bfa: 4639 mov r1, r7
  18440. 8007bfc: f7f8 ff14 bl 8000a28 <__aeabi_dcmpgt>
  18441. 8007c00: 2800 cmp r0, #0
  18442. 8007c02: d162 bne.n 8007cca <_dtoa_r+0x6e2>
  18443. 8007c04: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  18444. 8007c08: 2000 movs r0, #0
  18445. 8007c0a: 49ac ldr r1, [pc, #688] ; (8007ebc <_dtoa_r+0x8d4>)
  18446. 8007c0c: f7f8 fac4 bl 8000198 <__aeabi_dsub>
  18447. 8007c10: 4602 mov r2, r0
  18448. 8007c12: 460b mov r3, r1
  18449. 8007c14: 4630 mov r0, r6
  18450. 8007c16: 4639 mov r1, r7
  18451. 8007c18: f7f8 fee8 bl 80009ec <__aeabi_dcmplt>
  18452. 8007c1c: 2800 cmp r0, #0
  18453. 8007c1e: f43f af1d beq.w 8007a5c <_dtoa_r+0x474>
  18454. 8007c22: 9f14 ldr r7, [sp, #80] ; 0x50
  18455. 8007c24: 1e7b subs r3, r7, #1
  18456. 8007c26: 9314 str r3, [sp, #80] ; 0x50
  18457. 8007c28: f817 3c01 ldrb.w r3, [r7, #-1]
  18458. 8007c2c: 2b30 cmp r3, #48 ; 0x30
  18459. 8007c2e: d0f8 beq.n 8007c22 <_dtoa_r+0x63a>
  18460. 8007c30: 46c1 mov r9, r8
  18461. 8007c32: e03a b.n 8007caa <_dtoa_r+0x6c2>
  18462. 8007c34: 4ba2 ldr r3, [pc, #648] ; (8007ec0 <_dtoa_r+0x8d8>)
  18463. 8007c36: f7f8 fc67 bl 8000508 <__aeabi_dmul>
  18464. 8007c3a: e9cd 0104 strd r0, r1, [sp, #16]
  18465. 8007c3e: e7bc b.n 8007bba <_dtoa_r+0x5d2>
  18466. 8007c40: 9f08 ldr r7, [sp, #32]
  18467. 8007c42: e9dd 2306 ldrd r2, r3, [sp, #24]
  18468. 8007c46: e9dd 0104 ldrd r0, r1, [sp, #16]
  18469. 8007c4a: f7f8 fd87 bl 800075c <__aeabi_ddiv>
  18470. 8007c4e: f7f8 ff0b bl 8000a68 <__aeabi_d2iz>
  18471. 8007c52: 4604 mov r4, r0
  18472. 8007c54: f7f8 fbee bl 8000434 <__aeabi_i2d>
  18473. 8007c58: e9dd 2306 ldrd r2, r3, [sp, #24]
  18474. 8007c5c: f7f8 fc54 bl 8000508 <__aeabi_dmul>
  18475. 8007c60: f104 0630 add.w r6, r4, #48 ; 0x30
  18476. 8007c64: 460b mov r3, r1
  18477. 8007c66: 4602 mov r2, r0
  18478. 8007c68: e9dd 0104 ldrd r0, r1, [sp, #16]
  18479. 8007c6c: f7f8 fa94 bl 8000198 <__aeabi_dsub>
  18480. 8007c70: f807 6b01 strb.w r6, [r7], #1
  18481. 8007c74: 9e08 ldr r6, [sp, #32]
  18482. 8007c76: 9b02 ldr r3, [sp, #8]
  18483. 8007c78: 1bbe subs r6, r7, r6
  18484. 8007c7a: 42b3 cmp r3, r6
  18485. 8007c7c: d13a bne.n 8007cf4 <_dtoa_r+0x70c>
  18486. 8007c7e: 4602 mov r2, r0
  18487. 8007c80: 460b mov r3, r1
  18488. 8007c82: f7f8 fa8b bl 800019c <__adddf3>
  18489. 8007c86: 4602 mov r2, r0
  18490. 8007c88: 460b mov r3, r1
  18491. 8007c8a: e9cd 2302 strd r2, r3, [sp, #8]
  18492. 8007c8e: e9dd 2306 ldrd r2, r3, [sp, #24]
  18493. 8007c92: f7f8 fec9 bl 8000a28 <__aeabi_dcmpgt>
  18494. 8007c96: bb58 cbnz r0, 8007cf0 <_dtoa_r+0x708>
  18495. 8007c98: e9dd 2306 ldrd r2, r3, [sp, #24]
  18496. 8007c9c: e9dd 0102 ldrd r0, r1, [sp, #8]
  18497. 8007ca0: f7f8 fe9a bl 80009d8 <__aeabi_dcmpeq>
  18498. 8007ca4: b108 cbz r0, 8007caa <_dtoa_r+0x6c2>
  18499. 8007ca6: 07e1 lsls r1, r4, #31
  18500. 8007ca8: d422 bmi.n 8007cf0 <_dtoa_r+0x708>
  18501. 8007caa: 4628 mov r0, r5
  18502. 8007cac: 4651 mov r1, sl
  18503. 8007cae: f000 fae3 bl 8008278 <_Bfree>
  18504. 8007cb2: 2300 movs r3, #0
  18505. 8007cb4: 703b strb r3, [r7, #0]
  18506. 8007cb6: 9b24 ldr r3, [sp, #144] ; 0x90
  18507. 8007cb8: f109 0001 add.w r0, r9, #1
  18508. 8007cbc: 6018 str r0, [r3, #0]
  18509. 8007cbe: 9b26 ldr r3, [sp, #152] ; 0x98
  18510. 8007cc0: 2b00 cmp r3, #0
  18511. 8007cc2: f43f acdf beq.w 8007684 <_dtoa_r+0x9c>
  18512. 8007cc6: 601f str r7, [r3, #0]
  18513. 8007cc8: e4dc b.n 8007684 <_dtoa_r+0x9c>
  18514. 8007cca: 4627 mov r7, r4
  18515. 8007ccc: 463b mov r3, r7
  18516. 8007cce: 461f mov r7, r3
  18517. 8007cd0: f813 2d01 ldrb.w r2, [r3, #-1]!
  18518. 8007cd4: 2a39 cmp r2, #57 ; 0x39
  18519. 8007cd6: d107 bne.n 8007ce8 <_dtoa_r+0x700>
  18520. 8007cd8: 9a08 ldr r2, [sp, #32]
  18521. 8007cda: 429a cmp r2, r3
  18522. 8007cdc: d1f7 bne.n 8007cce <_dtoa_r+0x6e6>
  18523. 8007cde: 2230 movs r2, #48 ; 0x30
  18524. 8007ce0: 9908 ldr r1, [sp, #32]
  18525. 8007ce2: f108 0801 add.w r8, r8, #1
  18526. 8007ce6: 700a strb r2, [r1, #0]
  18527. 8007ce8: 781a ldrb r2, [r3, #0]
  18528. 8007cea: 3201 adds r2, #1
  18529. 8007cec: 701a strb r2, [r3, #0]
  18530. 8007cee: e79f b.n 8007c30 <_dtoa_r+0x648>
  18531. 8007cf0: 46c8 mov r8, r9
  18532. 8007cf2: e7eb b.n 8007ccc <_dtoa_r+0x6e4>
  18533. 8007cf4: 2200 movs r2, #0
  18534. 8007cf6: 4b72 ldr r3, [pc, #456] ; (8007ec0 <_dtoa_r+0x8d8>)
  18535. 8007cf8: f7f8 fc06 bl 8000508 <__aeabi_dmul>
  18536. 8007cfc: 4602 mov r2, r0
  18537. 8007cfe: 460b mov r3, r1
  18538. 8007d00: e9cd 2304 strd r2, r3, [sp, #16]
  18539. 8007d04: 2200 movs r2, #0
  18540. 8007d06: 2300 movs r3, #0
  18541. 8007d08: f7f8 fe66 bl 80009d8 <__aeabi_dcmpeq>
  18542. 8007d0c: 2800 cmp r0, #0
  18543. 8007d0e: d098 beq.n 8007c42 <_dtoa_r+0x65a>
  18544. 8007d10: e7cb b.n 8007caa <_dtoa_r+0x6c2>
  18545. 8007d12: 9a0b ldr r2, [sp, #44] ; 0x2c
  18546. 8007d14: 2a00 cmp r2, #0
  18547. 8007d16: f000 80cd beq.w 8007eb4 <_dtoa_r+0x8cc>
  18548. 8007d1a: 9a22 ldr r2, [sp, #136] ; 0x88
  18549. 8007d1c: 2a01 cmp r2, #1
  18550. 8007d1e: f300 80af bgt.w 8007e80 <_dtoa_r+0x898>
  18551. 8007d22: 9a13 ldr r2, [sp, #76] ; 0x4c
  18552. 8007d24: 2a00 cmp r2, #0
  18553. 8007d26: f000 80a7 beq.w 8007e78 <_dtoa_r+0x890>
  18554. 8007d2a: f203 4333 addw r3, r3, #1075 ; 0x433
  18555. 8007d2e: 9c0a ldr r4, [sp, #40] ; 0x28
  18556. 8007d30: 9f06 ldr r7, [sp, #24]
  18557. 8007d32: 9a06 ldr r2, [sp, #24]
  18558. 8007d34: 2101 movs r1, #1
  18559. 8007d36: 441a add r2, r3
  18560. 8007d38: 9206 str r2, [sp, #24]
  18561. 8007d3a: 9a09 ldr r2, [sp, #36] ; 0x24
  18562. 8007d3c: 4628 mov r0, r5
  18563. 8007d3e: 441a add r2, r3
  18564. 8007d40: 9209 str r2, [sp, #36] ; 0x24
  18565. 8007d42: f000 fb53 bl 80083ec <__i2b>
  18566. 8007d46: 4606 mov r6, r0
  18567. 8007d48: 2f00 cmp r7, #0
  18568. 8007d4a: dd0c ble.n 8007d66 <_dtoa_r+0x77e>
  18569. 8007d4c: 9b09 ldr r3, [sp, #36] ; 0x24
  18570. 8007d4e: 2b00 cmp r3, #0
  18571. 8007d50: dd09 ble.n 8007d66 <_dtoa_r+0x77e>
  18572. 8007d52: 42bb cmp r3, r7
  18573. 8007d54: bfa8 it ge
  18574. 8007d56: 463b movge r3, r7
  18575. 8007d58: 9a06 ldr r2, [sp, #24]
  18576. 8007d5a: 1aff subs r7, r7, r3
  18577. 8007d5c: 1ad2 subs r2, r2, r3
  18578. 8007d5e: 9206 str r2, [sp, #24]
  18579. 8007d60: 9a09 ldr r2, [sp, #36] ; 0x24
  18580. 8007d62: 1ad3 subs r3, r2, r3
  18581. 8007d64: 9309 str r3, [sp, #36] ; 0x24
  18582. 8007d66: 9b0a ldr r3, [sp, #40] ; 0x28
  18583. 8007d68: b1f3 cbz r3, 8007da8 <_dtoa_r+0x7c0>
  18584. 8007d6a: 9b0b ldr r3, [sp, #44] ; 0x2c
  18585. 8007d6c: 2b00 cmp r3, #0
  18586. 8007d6e: f000 80a9 beq.w 8007ec4 <_dtoa_r+0x8dc>
  18587. 8007d72: 2c00 cmp r4, #0
  18588. 8007d74: dd10 ble.n 8007d98 <_dtoa_r+0x7b0>
  18589. 8007d76: 4631 mov r1, r6
  18590. 8007d78: 4622 mov r2, r4
  18591. 8007d7a: 4628 mov r0, r5
  18592. 8007d7c: f000 fbf0 bl 8008560 <__pow5mult>
  18593. 8007d80: 4652 mov r2, sl
  18594. 8007d82: 4601 mov r1, r0
  18595. 8007d84: 4606 mov r6, r0
  18596. 8007d86: 4628 mov r0, r5
  18597. 8007d88: f000 fb46 bl 8008418 <__multiply>
  18598. 8007d8c: 4680 mov r8, r0
  18599. 8007d8e: 4651 mov r1, sl
  18600. 8007d90: 4628 mov r0, r5
  18601. 8007d92: f000 fa71 bl 8008278 <_Bfree>
  18602. 8007d96: 46c2 mov sl, r8
  18603. 8007d98: 9b0a ldr r3, [sp, #40] ; 0x28
  18604. 8007d9a: 1b1a subs r2, r3, r4
  18605. 8007d9c: d004 beq.n 8007da8 <_dtoa_r+0x7c0>
  18606. 8007d9e: 4651 mov r1, sl
  18607. 8007da0: 4628 mov r0, r5
  18608. 8007da2: f000 fbdd bl 8008560 <__pow5mult>
  18609. 8007da6: 4682 mov sl, r0
  18610. 8007da8: 2101 movs r1, #1
  18611. 8007daa: 4628 mov r0, r5
  18612. 8007dac: f000 fb1e bl 80083ec <__i2b>
  18613. 8007db0: 9b0e ldr r3, [sp, #56] ; 0x38
  18614. 8007db2: 4604 mov r4, r0
  18615. 8007db4: 2b00 cmp r3, #0
  18616. 8007db6: f340 8087 ble.w 8007ec8 <_dtoa_r+0x8e0>
  18617. 8007dba: 461a mov r2, r3
  18618. 8007dbc: 4601 mov r1, r0
  18619. 8007dbe: 4628 mov r0, r5
  18620. 8007dc0: f000 fbce bl 8008560 <__pow5mult>
  18621. 8007dc4: 9b22 ldr r3, [sp, #136] ; 0x88
  18622. 8007dc6: 4604 mov r4, r0
  18623. 8007dc8: 2b01 cmp r3, #1
  18624. 8007dca: f340 8080 ble.w 8007ece <_dtoa_r+0x8e6>
  18625. 8007dce: f04f 0800 mov.w r8, #0
  18626. 8007dd2: 6923 ldr r3, [r4, #16]
  18627. 8007dd4: eb04 0383 add.w r3, r4, r3, lsl #2
  18628. 8007dd8: 6918 ldr r0, [r3, #16]
  18629. 8007dda: f000 fab9 bl 8008350 <__hi0bits>
  18630. 8007dde: f1c0 0020 rsb r0, r0, #32
  18631. 8007de2: 9b09 ldr r3, [sp, #36] ; 0x24
  18632. 8007de4: 4418 add r0, r3
  18633. 8007de6: f010 001f ands.w r0, r0, #31
  18634. 8007dea: f000 8092 beq.w 8007f12 <_dtoa_r+0x92a>
  18635. 8007dee: f1c0 0320 rsb r3, r0, #32
  18636. 8007df2: 2b04 cmp r3, #4
  18637. 8007df4: f340 808a ble.w 8007f0c <_dtoa_r+0x924>
  18638. 8007df8: f1c0 001c rsb r0, r0, #28
  18639. 8007dfc: 9b06 ldr r3, [sp, #24]
  18640. 8007dfe: 4407 add r7, r0
  18641. 8007e00: 4403 add r3, r0
  18642. 8007e02: 9306 str r3, [sp, #24]
  18643. 8007e04: 9b09 ldr r3, [sp, #36] ; 0x24
  18644. 8007e06: 4403 add r3, r0
  18645. 8007e08: 9309 str r3, [sp, #36] ; 0x24
  18646. 8007e0a: 9b06 ldr r3, [sp, #24]
  18647. 8007e0c: 2b00 cmp r3, #0
  18648. 8007e0e: dd05 ble.n 8007e1c <_dtoa_r+0x834>
  18649. 8007e10: 4651 mov r1, sl
  18650. 8007e12: 461a mov r2, r3
  18651. 8007e14: 4628 mov r0, r5
  18652. 8007e16: f000 fbfd bl 8008614 <__lshift>
  18653. 8007e1a: 4682 mov sl, r0
  18654. 8007e1c: 9b09 ldr r3, [sp, #36] ; 0x24
  18655. 8007e1e: 2b00 cmp r3, #0
  18656. 8007e20: dd05 ble.n 8007e2e <_dtoa_r+0x846>
  18657. 8007e22: 4621 mov r1, r4
  18658. 8007e24: 461a mov r2, r3
  18659. 8007e26: 4628 mov r0, r5
  18660. 8007e28: f000 fbf4 bl 8008614 <__lshift>
  18661. 8007e2c: 4604 mov r4, r0
  18662. 8007e2e: 9b0f ldr r3, [sp, #60] ; 0x3c
  18663. 8007e30: 2b00 cmp r3, #0
  18664. 8007e32: d070 beq.n 8007f16 <_dtoa_r+0x92e>
  18665. 8007e34: 4621 mov r1, r4
  18666. 8007e36: 4650 mov r0, sl
  18667. 8007e38: f000 fc58 bl 80086ec <__mcmp>
  18668. 8007e3c: 2800 cmp r0, #0
  18669. 8007e3e: da6a bge.n 8007f16 <_dtoa_r+0x92e>
  18670. 8007e40: 2300 movs r3, #0
  18671. 8007e42: 4651 mov r1, sl
  18672. 8007e44: 220a movs r2, #10
  18673. 8007e46: 4628 mov r0, r5
  18674. 8007e48: f000 fa38 bl 80082bc <__multadd>
  18675. 8007e4c: 9b0b ldr r3, [sp, #44] ; 0x2c
  18676. 8007e4e: 4682 mov sl, r0
  18677. 8007e50: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
  18678. 8007e54: 2b00 cmp r3, #0
  18679. 8007e56: f000 8193 beq.w 8008180 <_dtoa_r+0xb98>
  18680. 8007e5a: 4631 mov r1, r6
  18681. 8007e5c: 2300 movs r3, #0
  18682. 8007e5e: 220a movs r2, #10
  18683. 8007e60: 4628 mov r0, r5
  18684. 8007e62: f000 fa2b bl 80082bc <__multadd>
  18685. 8007e66: f1bb 0f00 cmp.w fp, #0
  18686. 8007e6a: 4606 mov r6, r0
  18687. 8007e6c: f300 8093 bgt.w 8007f96 <_dtoa_r+0x9ae>
  18688. 8007e70: 9b22 ldr r3, [sp, #136] ; 0x88
  18689. 8007e72: 2b02 cmp r3, #2
  18690. 8007e74: dc57 bgt.n 8007f26 <_dtoa_r+0x93e>
  18691. 8007e76: e08e b.n 8007f96 <_dtoa_r+0x9ae>
  18692. 8007e78: 9b16 ldr r3, [sp, #88] ; 0x58
  18693. 8007e7a: f1c3 0336 rsb r3, r3, #54 ; 0x36
  18694. 8007e7e: e756 b.n 8007d2e <_dtoa_r+0x746>
  18695. 8007e80: 9b02 ldr r3, [sp, #8]
  18696. 8007e82: 1e5c subs r4, r3, #1
  18697. 8007e84: 9b0a ldr r3, [sp, #40] ; 0x28
  18698. 8007e86: 42a3 cmp r3, r4
  18699. 8007e88: bfb7 itett lt
  18700. 8007e8a: 9b0a ldrlt r3, [sp, #40] ; 0x28
  18701. 8007e8c: 1b1c subge r4, r3, r4
  18702. 8007e8e: 1ae2 sublt r2, r4, r3
  18703. 8007e90: 9b0e ldrlt r3, [sp, #56] ; 0x38
  18704. 8007e92: bfbe ittt lt
  18705. 8007e94: 940a strlt r4, [sp, #40] ; 0x28
  18706. 8007e96: 189b addlt r3, r3, r2
  18707. 8007e98: 930e strlt r3, [sp, #56] ; 0x38
  18708. 8007e9a: 9b02 ldr r3, [sp, #8]
  18709. 8007e9c: bfb8 it lt
  18710. 8007e9e: 2400 movlt r4, #0
  18711. 8007ea0: 2b00 cmp r3, #0
  18712. 8007ea2: bfbb ittet lt
  18713. 8007ea4: 9b06 ldrlt r3, [sp, #24]
  18714. 8007ea6: 9a02 ldrlt r2, [sp, #8]
  18715. 8007ea8: 9f06 ldrge r7, [sp, #24]
  18716. 8007eaa: 1a9f sublt r7, r3, r2
  18717. 8007eac: bfac ite ge
  18718. 8007eae: 9b02 ldrge r3, [sp, #8]
  18719. 8007eb0: 2300 movlt r3, #0
  18720. 8007eb2: e73e b.n 8007d32 <_dtoa_r+0x74a>
  18721. 8007eb4: 9c0a ldr r4, [sp, #40] ; 0x28
  18722. 8007eb6: 9f06 ldr r7, [sp, #24]
  18723. 8007eb8: 9e0b ldr r6, [sp, #44] ; 0x2c
  18724. 8007eba: e745 b.n 8007d48 <_dtoa_r+0x760>
  18725. 8007ebc: 3fe00000 .word 0x3fe00000
  18726. 8007ec0: 40240000 .word 0x40240000
  18727. 8007ec4: 9a0a ldr r2, [sp, #40] ; 0x28
  18728. 8007ec6: e76a b.n 8007d9e <_dtoa_r+0x7b6>
  18729. 8007ec8: 9b22 ldr r3, [sp, #136] ; 0x88
  18730. 8007eca: 2b01 cmp r3, #1
  18731. 8007ecc: dc19 bgt.n 8007f02 <_dtoa_r+0x91a>
  18732. 8007ece: 9b04 ldr r3, [sp, #16]
  18733. 8007ed0: b9bb cbnz r3, 8007f02 <_dtoa_r+0x91a>
  18734. 8007ed2: 9b05 ldr r3, [sp, #20]
  18735. 8007ed4: f3c3 0313 ubfx r3, r3, #0, #20
  18736. 8007ed8: b99b cbnz r3, 8007f02 <_dtoa_r+0x91a>
  18737. 8007eda: 9b05 ldr r3, [sp, #20]
  18738. 8007edc: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  18739. 8007ee0: 0d1b lsrs r3, r3, #20
  18740. 8007ee2: 051b lsls r3, r3, #20
  18741. 8007ee4: b183 cbz r3, 8007f08 <_dtoa_r+0x920>
  18742. 8007ee6: f04f 0801 mov.w r8, #1
  18743. 8007eea: 9b06 ldr r3, [sp, #24]
  18744. 8007eec: 3301 adds r3, #1
  18745. 8007eee: 9306 str r3, [sp, #24]
  18746. 8007ef0: 9b09 ldr r3, [sp, #36] ; 0x24
  18747. 8007ef2: 3301 adds r3, #1
  18748. 8007ef4: 9309 str r3, [sp, #36] ; 0x24
  18749. 8007ef6: 9b0e ldr r3, [sp, #56] ; 0x38
  18750. 8007ef8: 2b00 cmp r3, #0
  18751. 8007efa: f47f af6a bne.w 8007dd2 <_dtoa_r+0x7ea>
  18752. 8007efe: 2001 movs r0, #1
  18753. 8007f00: e76f b.n 8007de2 <_dtoa_r+0x7fa>
  18754. 8007f02: f04f 0800 mov.w r8, #0
  18755. 8007f06: e7f6 b.n 8007ef6 <_dtoa_r+0x90e>
  18756. 8007f08: 4698 mov r8, r3
  18757. 8007f0a: e7f4 b.n 8007ef6 <_dtoa_r+0x90e>
  18758. 8007f0c: f43f af7d beq.w 8007e0a <_dtoa_r+0x822>
  18759. 8007f10: 4618 mov r0, r3
  18760. 8007f12: 301c adds r0, #28
  18761. 8007f14: e772 b.n 8007dfc <_dtoa_r+0x814>
  18762. 8007f16: 9b02 ldr r3, [sp, #8]
  18763. 8007f18: 2b00 cmp r3, #0
  18764. 8007f1a: dc36 bgt.n 8007f8a <_dtoa_r+0x9a2>
  18765. 8007f1c: 9b22 ldr r3, [sp, #136] ; 0x88
  18766. 8007f1e: 2b02 cmp r3, #2
  18767. 8007f20: dd33 ble.n 8007f8a <_dtoa_r+0x9a2>
  18768. 8007f22: f8dd b008 ldr.w fp, [sp, #8]
  18769. 8007f26: f1bb 0f00 cmp.w fp, #0
  18770. 8007f2a: d10d bne.n 8007f48 <_dtoa_r+0x960>
  18771. 8007f2c: 4621 mov r1, r4
  18772. 8007f2e: 465b mov r3, fp
  18773. 8007f30: 2205 movs r2, #5
  18774. 8007f32: 4628 mov r0, r5
  18775. 8007f34: f000 f9c2 bl 80082bc <__multadd>
  18776. 8007f38: 4601 mov r1, r0
  18777. 8007f3a: 4604 mov r4, r0
  18778. 8007f3c: 4650 mov r0, sl
  18779. 8007f3e: f000 fbd5 bl 80086ec <__mcmp>
  18780. 8007f42: 2800 cmp r0, #0
  18781. 8007f44: f73f adb6 bgt.w 8007ab4 <_dtoa_r+0x4cc>
  18782. 8007f48: 9b23 ldr r3, [sp, #140] ; 0x8c
  18783. 8007f4a: 9f08 ldr r7, [sp, #32]
  18784. 8007f4c: ea6f 0903 mvn.w r9, r3
  18785. 8007f50: f04f 0800 mov.w r8, #0
  18786. 8007f54: 4621 mov r1, r4
  18787. 8007f56: 4628 mov r0, r5
  18788. 8007f58: f000 f98e bl 8008278 <_Bfree>
  18789. 8007f5c: 2e00 cmp r6, #0
  18790. 8007f5e: f43f aea4 beq.w 8007caa <_dtoa_r+0x6c2>
  18791. 8007f62: f1b8 0f00 cmp.w r8, #0
  18792. 8007f66: d005 beq.n 8007f74 <_dtoa_r+0x98c>
  18793. 8007f68: 45b0 cmp r8, r6
  18794. 8007f6a: d003 beq.n 8007f74 <_dtoa_r+0x98c>
  18795. 8007f6c: 4641 mov r1, r8
  18796. 8007f6e: 4628 mov r0, r5
  18797. 8007f70: f000 f982 bl 8008278 <_Bfree>
  18798. 8007f74: 4631 mov r1, r6
  18799. 8007f76: 4628 mov r0, r5
  18800. 8007f78: f000 f97e bl 8008278 <_Bfree>
  18801. 8007f7c: e695 b.n 8007caa <_dtoa_r+0x6c2>
  18802. 8007f7e: 2400 movs r4, #0
  18803. 8007f80: 4626 mov r6, r4
  18804. 8007f82: e7e1 b.n 8007f48 <_dtoa_r+0x960>
  18805. 8007f84: 46c1 mov r9, r8
  18806. 8007f86: 4626 mov r6, r4
  18807. 8007f88: e594 b.n 8007ab4 <_dtoa_r+0x4cc>
  18808. 8007f8a: 9b0b ldr r3, [sp, #44] ; 0x2c
  18809. 8007f8c: f8dd b008 ldr.w fp, [sp, #8]
  18810. 8007f90: 2b00 cmp r3, #0
  18811. 8007f92: f000 80fc beq.w 800818e <_dtoa_r+0xba6>
  18812. 8007f96: 2f00 cmp r7, #0
  18813. 8007f98: dd05 ble.n 8007fa6 <_dtoa_r+0x9be>
  18814. 8007f9a: 4631 mov r1, r6
  18815. 8007f9c: 463a mov r2, r7
  18816. 8007f9e: 4628 mov r0, r5
  18817. 8007fa0: f000 fb38 bl 8008614 <__lshift>
  18818. 8007fa4: 4606 mov r6, r0
  18819. 8007fa6: f1b8 0f00 cmp.w r8, #0
  18820. 8007faa: d05c beq.n 8008066 <_dtoa_r+0xa7e>
  18821. 8007fac: 4628 mov r0, r5
  18822. 8007fae: 6871 ldr r1, [r6, #4]
  18823. 8007fb0: f000 f922 bl 80081f8 <_Balloc>
  18824. 8007fb4: 4607 mov r7, r0
  18825. 8007fb6: b928 cbnz r0, 8007fc4 <_dtoa_r+0x9dc>
  18826. 8007fb8: 4602 mov r2, r0
  18827. 8007fba: f240 21ea movw r1, #746 ; 0x2ea
  18828. 8007fbe: 4b7e ldr r3, [pc, #504] ; (80081b8 <_dtoa_r+0xbd0>)
  18829. 8007fc0: f7ff bb26 b.w 8007610 <_dtoa_r+0x28>
  18830. 8007fc4: 6932 ldr r2, [r6, #16]
  18831. 8007fc6: f106 010c add.w r1, r6, #12
  18832. 8007fca: 3202 adds r2, #2
  18833. 8007fcc: 0092 lsls r2, r2, #2
  18834. 8007fce: 300c adds r0, #12
  18835. 8007fd0: f7fe fdca bl 8006b68 <memcpy>
  18836. 8007fd4: 2201 movs r2, #1
  18837. 8007fd6: 4639 mov r1, r7
  18838. 8007fd8: 4628 mov r0, r5
  18839. 8007fda: f000 fb1b bl 8008614 <__lshift>
  18840. 8007fde: 46b0 mov r8, r6
  18841. 8007fe0: 4606 mov r6, r0
  18842. 8007fe2: 9b08 ldr r3, [sp, #32]
  18843. 8007fe4: 3301 adds r3, #1
  18844. 8007fe6: 9302 str r3, [sp, #8]
  18845. 8007fe8: 9b08 ldr r3, [sp, #32]
  18846. 8007fea: 445b add r3, fp
  18847. 8007fec: 930a str r3, [sp, #40] ; 0x28
  18848. 8007fee: 9b04 ldr r3, [sp, #16]
  18849. 8007ff0: f003 0301 and.w r3, r3, #1
  18850. 8007ff4: 9309 str r3, [sp, #36] ; 0x24
  18851. 8007ff6: 9b02 ldr r3, [sp, #8]
  18852. 8007ff8: 4621 mov r1, r4
  18853. 8007ffa: 4650 mov r0, sl
  18854. 8007ffc: f103 3bff add.w fp, r3, #4294967295 ; 0xffffffff
  18855. 8008000: f7ff fa62 bl 80074c8 <quorem>
  18856. 8008004: 4603 mov r3, r0
  18857. 8008006: 4641 mov r1, r8
  18858. 8008008: 3330 adds r3, #48 ; 0x30
  18859. 800800a: 9004 str r0, [sp, #16]
  18860. 800800c: 4650 mov r0, sl
  18861. 800800e: 930b str r3, [sp, #44] ; 0x2c
  18862. 8008010: f000 fb6c bl 80086ec <__mcmp>
  18863. 8008014: 4632 mov r2, r6
  18864. 8008016: 9006 str r0, [sp, #24]
  18865. 8008018: 4621 mov r1, r4
  18866. 800801a: 4628 mov r0, r5
  18867. 800801c: f000 fb82 bl 8008724 <__mdiff>
  18868. 8008020: 68c2 ldr r2, [r0, #12]
  18869. 8008022: 4607 mov r7, r0
  18870. 8008024: 9b0b ldr r3, [sp, #44] ; 0x2c
  18871. 8008026: bb02 cbnz r2, 800806a <_dtoa_r+0xa82>
  18872. 8008028: 4601 mov r1, r0
  18873. 800802a: 4650 mov r0, sl
  18874. 800802c: f000 fb5e bl 80086ec <__mcmp>
  18875. 8008030: 4602 mov r2, r0
  18876. 8008032: 9b0b ldr r3, [sp, #44] ; 0x2c
  18877. 8008034: 4639 mov r1, r7
  18878. 8008036: 4628 mov r0, r5
  18879. 8008038: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c
  18880. 800803c: f000 f91c bl 8008278 <_Bfree>
  18881. 8008040: 9b22 ldr r3, [sp, #136] ; 0x88
  18882. 8008042: 9a0c ldr r2, [sp, #48] ; 0x30
  18883. 8008044: 9f02 ldr r7, [sp, #8]
  18884. 8008046: ea43 0102 orr.w r1, r3, r2
  18885. 800804a: 9b09 ldr r3, [sp, #36] ; 0x24
  18886. 800804c: 430b orrs r3, r1
  18887. 800804e: 9b0b ldr r3, [sp, #44] ; 0x2c
  18888. 8008050: d10d bne.n 800806e <_dtoa_r+0xa86>
  18889. 8008052: 2b39 cmp r3, #57 ; 0x39
  18890. 8008054: d027 beq.n 80080a6 <_dtoa_r+0xabe>
  18891. 8008056: 9a06 ldr r2, [sp, #24]
  18892. 8008058: 2a00 cmp r2, #0
  18893. 800805a: dd01 ble.n 8008060 <_dtoa_r+0xa78>
  18894. 800805c: 9b04 ldr r3, [sp, #16]
  18895. 800805e: 3331 adds r3, #49 ; 0x31
  18896. 8008060: f88b 3000 strb.w r3, [fp]
  18897. 8008064: e776 b.n 8007f54 <_dtoa_r+0x96c>
  18898. 8008066: 4630 mov r0, r6
  18899. 8008068: e7b9 b.n 8007fde <_dtoa_r+0x9f6>
  18900. 800806a: 2201 movs r2, #1
  18901. 800806c: e7e2 b.n 8008034 <_dtoa_r+0xa4c>
  18902. 800806e: 9906 ldr r1, [sp, #24]
  18903. 8008070: 2900 cmp r1, #0
  18904. 8008072: db04 blt.n 800807e <_dtoa_r+0xa96>
  18905. 8008074: 9822 ldr r0, [sp, #136] ; 0x88
  18906. 8008076: 4301 orrs r1, r0
  18907. 8008078: 9809 ldr r0, [sp, #36] ; 0x24
  18908. 800807a: 4301 orrs r1, r0
  18909. 800807c: d120 bne.n 80080c0 <_dtoa_r+0xad8>
  18910. 800807e: 2a00 cmp r2, #0
  18911. 8008080: ddee ble.n 8008060 <_dtoa_r+0xa78>
  18912. 8008082: 4651 mov r1, sl
  18913. 8008084: 2201 movs r2, #1
  18914. 8008086: 4628 mov r0, r5
  18915. 8008088: 9302 str r3, [sp, #8]
  18916. 800808a: f000 fac3 bl 8008614 <__lshift>
  18917. 800808e: 4621 mov r1, r4
  18918. 8008090: 4682 mov sl, r0
  18919. 8008092: f000 fb2b bl 80086ec <__mcmp>
  18920. 8008096: 2800 cmp r0, #0
  18921. 8008098: 9b02 ldr r3, [sp, #8]
  18922. 800809a: dc02 bgt.n 80080a2 <_dtoa_r+0xaba>
  18923. 800809c: d1e0 bne.n 8008060 <_dtoa_r+0xa78>
  18924. 800809e: 07da lsls r2, r3, #31
  18925. 80080a0: d5de bpl.n 8008060 <_dtoa_r+0xa78>
  18926. 80080a2: 2b39 cmp r3, #57 ; 0x39
  18927. 80080a4: d1da bne.n 800805c <_dtoa_r+0xa74>
  18928. 80080a6: 2339 movs r3, #57 ; 0x39
  18929. 80080a8: f88b 3000 strb.w r3, [fp]
  18930. 80080ac: 463b mov r3, r7
  18931. 80080ae: 461f mov r7, r3
  18932. 80080b0: f817 2c01 ldrb.w r2, [r7, #-1]
  18933. 80080b4: 3b01 subs r3, #1
  18934. 80080b6: 2a39 cmp r2, #57 ; 0x39
  18935. 80080b8: d050 beq.n 800815c <_dtoa_r+0xb74>
  18936. 80080ba: 3201 adds r2, #1
  18937. 80080bc: 701a strb r2, [r3, #0]
  18938. 80080be: e749 b.n 8007f54 <_dtoa_r+0x96c>
  18939. 80080c0: 2a00 cmp r2, #0
  18940. 80080c2: dd03 ble.n 80080cc <_dtoa_r+0xae4>
  18941. 80080c4: 2b39 cmp r3, #57 ; 0x39
  18942. 80080c6: d0ee beq.n 80080a6 <_dtoa_r+0xabe>
  18943. 80080c8: 3301 adds r3, #1
  18944. 80080ca: e7c9 b.n 8008060 <_dtoa_r+0xa78>
  18945. 80080cc: 9a02 ldr r2, [sp, #8]
  18946. 80080ce: 990a ldr r1, [sp, #40] ; 0x28
  18947. 80080d0: f802 3c01 strb.w r3, [r2, #-1]
  18948. 80080d4: 428a cmp r2, r1
  18949. 80080d6: d02a beq.n 800812e <_dtoa_r+0xb46>
  18950. 80080d8: 4651 mov r1, sl
  18951. 80080da: 2300 movs r3, #0
  18952. 80080dc: 220a movs r2, #10
  18953. 80080de: 4628 mov r0, r5
  18954. 80080e0: f000 f8ec bl 80082bc <__multadd>
  18955. 80080e4: 45b0 cmp r8, r6
  18956. 80080e6: 4682 mov sl, r0
  18957. 80080e8: f04f 0300 mov.w r3, #0
  18958. 80080ec: f04f 020a mov.w r2, #10
  18959. 80080f0: 4641 mov r1, r8
  18960. 80080f2: 4628 mov r0, r5
  18961. 80080f4: d107 bne.n 8008106 <_dtoa_r+0xb1e>
  18962. 80080f6: f000 f8e1 bl 80082bc <__multadd>
  18963. 80080fa: 4680 mov r8, r0
  18964. 80080fc: 4606 mov r6, r0
  18965. 80080fe: 9b02 ldr r3, [sp, #8]
  18966. 8008100: 3301 adds r3, #1
  18967. 8008102: 9302 str r3, [sp, #8]
  18968. 8008104: e777 b.n 8007ff6 <_dtoa_r+0xa0e>
  18969. 8008106: f000 f8d9 bl 80082bc <__multadd>
  18970. 800810a: 4631 mov r1, r6
  18971. 800810c: 4680 mov r8, r0
  18972. 800810e: 2300 movs r3, #0
  18973. 8008110: 220a movs r2, #10
  18974. 8008112: 4628 mov r0, r5
  18975. 8008114: f000 f8d2 bl 80082bc <__multadd>
  18976. 8008118: 4606 mov r6, r0
  18977. 800811a: e7f0 b.n 80080fe <_dtoa_r+0xb16>
  18978. 800811c: f1bb 0f00 cmp.w fp, #0
  18979. 8008120: bfcc ite gt
  18980. 8008122: 465f movgt r7, fp
  18981. 8008124: 2701 movle r7, #1
  18982. 8008126: f04f 0800 mov.w r8, #0
  18983. 800812a: 9a08 ldr r2, [sp, #32]
  18984. 800812c: 4417 add r7, r2
  18985. 800812e: 4651 mov r1, sl
  18986. 8008130: 2201 movs r2, #1
  18987. 8008132: 4628 mov r0, r5
  18988. 8008134: 9302 str r3, [sp, #8]
  18989. 8008136: f000 fa6d bl 8008614 <__lshift>
  18990. 800813a: 4621 mov r1, r4
  18991. 800813c: 4682 mov sl, r0
  18992. 800813e: f000 fad5 bl 80086ec <__mcmp>
  18993. 8008142: 2800 cmp r0, #0
  18994. 8008144: dcb2 bgt.n 80080ac <_dtoa_r+0xac4>
  18995. 8008146: d102 bne.n 800814e <_dtoa_r+0xb66>
  18996. 8008148: 9b02 ldr r3, [sp, #8]
  18997. 800814a: 07db lsls r3, r3, #31
  18998. 800814c: d4ae bmi.n 80080ac <_dtoa_r+0xac4>
  18999. 800814e: 463b mov r3, r7
  19000. 8008150: 461f mov r7, r3
  19001. 8008152: f813 2d01 ldrb.w r2, [r3, #-1]!
  19002. 8008156: 2a30 cmp r2, #48 ; 0x30
  19003. 8008158: d0fa beq.n 8008150 <_dtoa_r+0xb68>
  19004. 800815a: e6fb b.n 8007f54 <_dtoa_r+0x96c>
  19005. 800815c: 9a08 ldr r2, [sp, #32]
  19006. 800815e: 429a cmp r2, r3
  19007. 8008160: d1a5 bne.n 80080ae <_dtoa_r+0xac6>
  19008. 8008162: 2331 movs r3, #49 ; 0x31
  19009. 8008164: f109 0901 add.w r9, r9, #1
  19010. 8008168: 7013 strb r3, [r2, #0]
  19011. 800816a: e6f3 b.n 8007f54 <_dtoa_r+0x96c>
  19012. 800816c: 4b13 ldr r3, [pc, #76] ; (80081bc <_dtoa_r+0xbd4>)
  19013. 800816e: f7ff baa7 b.w 80076c0 <_dtoa_r+0xd8>
  19014. 8008172: 9b26 ldr r3, [sp, #152] ; 0x98
  19015. 8008174: 2b00 cmp r3, #0
  19016. 8008176: f47f aa80 bne.w 800767a <_dtoa_r+0x92>
  19017. 800817a: 4b11 ldr r3, [pc, #68] ; (80081c0 <_dtoa_r+0xbd8>)
  19018. 800817c: f7ff baa0 b.w 80076c0 <_dtoa_r+0xd8>
  19019. 8008180: f1bb 0f00 cmp.w fp, #0
  19020. 8008184: dc03 bgt.n 800818e <_dtoa_r+0xba6>
  19021. 8008186: 9b22 ldr r3, [sp, #136] ; 0x88
  19022. 8008188: 2b02 cmp r3, #2
  19023. 800818a: f73f aecc bgt.w 8007f26 <_dtoa_r+0x93e>
  19024. 800818e: 9f08 ldr r7, [sp, #32]
  19025. 8008190: 4621 mov r1, r4
  19026. 8008192: 4650 mov r0, sl
  19027. 8008194: f7ff f998 bl 80074c8 <quorem>
  19028. 8008198: 9a08 ldr r2, [sp, #32]
  19029. 800819a: f100 0330 add.w r3, r0, #48 ; 0x30
  19030. 800819e: f807 3b01 strb.w r3, [r7], #1
  19031. 80081a2: 1aba subs r2, r7, r2
  19032. 80081a4: 4593 cmp fp, r2
  19033. 80081a6: ddb9 ble.n 800811c <_dtoa_r+0xb34>
  19034. 80081a8: 4651 mov r1, sl
  19035. 80081aa: 2300 movs r3, #0
  19036. 80081ac: 220a movs r2, #10
  19037. 80081ae: 4628 mov r0, r5
  19038. 80081b0: f000 f884 bl 80082bc <__multadd>
  19039. 80081b4: 4682 mov sl, r0
  19040. 80081b6: e7eb b.n 8008190 <_dtoa_r+0xba8>
  19041. 80081b8: 0800a70f .word 0x0800a70f
  19042. 80081bc: 0800a668 .word 0x0800a668
  19043. 80081c0: 0800a68c .word 0x0800a68c
  19044. 080081c4 <_localeconv_r>:
  19045. 80081c4: 4800 ldr r0, [pc, #0] ; (80081c8 <_localeconv_r+0x4>)
  19046. 80081c6: 4770 bx lr
  19047. 80081c8: 20000168 .word 0x20000168
  19048. 080081cc <malloc>:
  19049. 80081cc: 4b02 ldr r3, [pc, #8] ; (80081d8 <malloc+0xc>)
  19050. 80081ce: 4601 mov r1, r0
  19051. 80081d0: 6818 ldr r0, [r3, #0]
  19052. 80081d2: f000 bbed b.w 80089b0 <_malloc_r>
  19053. 80081d6: bf00 nop
  19054. 80081d8: 20000014 .word 0x20000014
  19055. 080081dc <memchr>:
  19056. 80081dc: 4603 mov r3, r0
  19057. 80081de: b510 push {r4, lr}
  19058. 80081e0: b2c9 uxtb r1, r1
  19059. 80081e2: 4402 add r2, r0
  19060. 80081e4: 4293 cmp r3, r2
  19061. 80081e6: 4618 mov r0, r3
  19062. 80081e8: d101 bne.n 80081ee <memchr+0x12>
  19063. 80081ea: 2000 movs r0, #0
  19064. 80081ec: e003 b.n 80081f6 <memchr+0x1a>
  19065. 80081ee: 7804 ldrb r4, [r0, #0]
  19066. 80081f0: 3301 adds r3, #1
  19067. 80081f2: 428c cmp r4, r1
  19068. 80081f4: d1f6 bne.n 80081e4 <memchr+0x8>
  19069. 80081f6: bd10 pop {r4, pc}
  19070. 080081f8 <_Balloc>:
  19071. 80081f8: b570 push {r4, r5, r6, lr}
  19072. 80081fa: 6a46 ldr r6, [r0, #36] ; 0x24
  19073. 80081fc: 4604 mov r4, r0
  19074. 80081fe: 460d mov r5, r1
  19075. 8008200: b976 cbnz r6, 8008220 <_Balloc+0x28>
  19076. 8008202: 2010 movs r0, #16
  19077. 8008204: f7ff ffe2 bl 80081cc <malloc>
  19078. 8008208: 4602 mov r2, r0
  19079. 800820a: 6260 str r0, [r4, #36] ; 0x24
  19080. 800820c: b920 cbnz r0, 8008218 <_Balloc+0x20>
  19081. 800820e: 2166 movs r1, #102 ; 0x66
  19082. 8008210: 4b17 ldr r3, [pc, #92] ; (8008270 <_Balloc+0x78>)
  19083. 8008212: 4818 ldr r0, [pc, #96] ; (8008274 <_Balloc+0x7c>)
  19084. 8008214: f000 fd92 bl 8008d3c <__assert_func>
  19085. 8008218: e9c0 6601 strd r6, r6, [r0, #4]
  19086. 800821c: 6006 str r6, [r0, #0]
  19087. 800821e: 60c6 str r6, [r0, #12]
  19088. 8008220: 6a66 ldr r6, [r4, #36] ; 0x24
  19089. 8008222: 68f3 ldr r3, [r6, #12]
  19090. 8008224: b183 cbz r3, 8008248 <_Balloc+0x50>
  19091. 8008226: 6a63 ldr r3, [r4, #36] ; 0x24
  19092. 8008228: 68db ldr r3, [r3, #12]
  19093. 800822a: f853 0025 ldr.w r0, [r3, r5, lsl #2]
  19094. 800822e: b9b8 cbnz r0, 8008260 <_Balloc+0x68>
  19095. 8008230: 2101 movs r1, #1
  19096. 8008232: fa01 f605 lsl.w r6, r1, r5
  19097. 8008236: 1d72 adds r2, r6, #5
  19098. 8008238: 4620 mov r0, r4
  19099. 800823a: 0092 lsls r2, r2, #2
  19100. 800823c: f000 fb5e bl 80088fc <_calloc_r>
  19101. 8008240: b160 cbz r0, 800825c <_Balloc+0x64>
  19102. 8008242: e9c0 5601 strd r5, r6, [r0, #4]
  19103. 8008246: e00e b.n 8008266 <_Balloc+0x6e>
  19104. 8008248: 2221 movs r2, #33 ; 0x21
  19105. 800824a: 2104 movs r1, #4
  19106. 800824c: 4620 mov r0, r4
  19107. 800824e: f000 fb55 bl 80088fc <_calloc_r>
  19108. 8008252: 6a63 ldr r3, [r4, #36] ; 0x24
  19109. 8008254: 60f0 str r0, [r6, #12]
  19110. 8008256: 68db ldr r3, [r3, #12]
  19111. 8008258: 2b00 cmp r3, #0
  19112. 800825a: d1e4 bne.n 8008226 <_Balloc+0x2e>
  19113. 800825c: 2000 movs r0, #0
  19114. 800825e: bd70 pop {r4, r5, r6, pc}
  19115. 8008260: 6802 ldr r2, [r0, #0]
  19116. 8008262: f843 2025 str.w r2, [r3, r5, lsl #2]
  19117. 8008266: 2300 movs r3, #0
  19118. 8008268: e9c0 3303 strd r3, r3, [r0, #12]
  19119. 800826c: e7f7 b.n 800825e <_Balloc+0x66>
  19120. 800826e: bf00 nop
  19121. 8008270: 0800a699 .word 0x0800a699
  19122. 8008274: 0800a720 .word 0x0800a720
  19123. 08008278 <_Bfree>:
  19124. 8008278: b570 push {r4, r5, r6, lr}
  19125. 800827a: 6a46 ldr r6, [r0, #36] ; 0x24
  19126. 800827c: 4605 mov r5, r0
  19127. 800827e: 460c mov r4, r1
  19128. 8008280: b976 cbnz r6, 80082a0 <_Bfree+0x28>
  19129. 8008282: 2010 movs r0, #16
  19130. 8008284: f7ff ffa2 bl 80081cc <malloc>
  19131. 8008288: 4602 mov r2, r0
  19132. 800828a: 6268 str r0, [r5, #36] ; 0x24
  19133. 800828c: b920 cbnz r0, 8008298 <_Bfree+0x20>
  19134. 800828e: 218a movs r1, #138 ; 0x8a
  19135. 8008290: 4b08 ldr r3, [pc, #32] ; (80082b4 <_Bfree+0x3c>)
  19136. 8008292: 4809 ldr r0, [pc, #36] ; (80082b8 <_Bfree+0x40>)
  19137. 8008294: f000 fd52 bl 8008d3c <__assert_func>
  19138. 8008298: e9c0 6601 strd r6, r6, [r0, #4]
  19139. 800829c: 6006 str r6, [r0, #0]
  19140. 800829e: 60c6 str r6, [r0, #12]
  19141. 80082a0: b13c cbz r4, 80082b2 <_Bfree+0x3a>
  19142. 80082a2: 6a6b ldr r3, [r5, #36] ; 0x24
  19143. 80082a4: 6862 ldr r2, [r4, #4]
  19144. 80082a6: 68db ldr r3, [r3, #12]
  19145. 80082a8: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  19146. 80082ac: 6021 str r1, [r4, #0]
  19147. 80082ae: f843 4022 str.w r4, [r3, r2, lsl #2]
  19148. 80082b2: bd70 pop {r4, r5, r6, pc}
  19149. 80082b4: 0800a699 .word 0x0800a699
  19150. 80082b8: 0800a720 .word 0x0800a720
  19151. 080082bc <__multadd>:
  19152. 80082bc: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  19153. 80082c0: 4698 mov r8, r3
  19154. 80082c2: 460c mov r4, r1
  19155. 80082c4: 2300 movs r3, #0
  19156. 80082c6: 690e ldr r6, [r1, #16]
  19157. 80082c8: 4607 mov r7, r0
  19158. 80082ca: f101 0014 add.w r0, r1, #20
  19159. 80082ce: 6805 ldr r5, [r0, #0]
  19160. 80082d0: 3301 adds r3, #1
  19161. 80082d2: b2a9 uxth r1, r5
  19162. 80082d4: fb02 8101 mla r1, r2, r1, r8
  19163. 80082d8: 0c2d lsrs r5, r5, #16
  19164. 80082da: ea4f 4c11 mov.w ip, r1, lsr #16
  19165. 80082de: fb02 c505 mla r5, r2, r5, ip
  19166. 80082e2: b289 uxth r1, r1
  19167. 80082e4: eb01 4105 add.w r1, r1, r5, lsl #16
  19168. 80082e8: 429e cmp r6, r3
  19169. 80082ea: ea4f 4815 mov.w r8, r5, lsr #16
  19170. 80082ee: f840 1b04 str.w r1, [r0], #4
  19171. 80082f2: dcec bgt.n 80082ce <__multadd+0x12>
  19172. 80082f4: f1b8 0f00 cmp.w r8, #0
  19173. 80082f8: d022 beq.n 8008340 <__multadd+0x84>
  19174. 80082fa: 68a3 ldr r3, [r4, #8]
  19175. 80082fc: 42b3 cmp r3, r6
  19176. 80082fe: dc19 bgt.n 8008334 <__multadd+0x78>
  19177. 8008300: 6861 ldr r1, [r4, #4]
  19178. 8008302: 4638 mov r0, r7
  19179. 8008304: 3101 adds r1, #1
  19180. 8008306: f7ff ff77 bl 80081f8 <_Balloc>
  19181. 800830a: 4605 mov r5, r0
  19182. 800830c: b928 cbnz r0, 800831a <__multadd+0x5e>
  19183. 800830e: 4602 mov r2, r0
  19184. 8008310: 21b5 movs r1, #181 ; 0xb5
  19185. 8008312: 4b0d ldr r3, [pc, #52] ; (8008348 <__multadd+0x8c>)
  19186. 8008314: 480d ldr r0, [pc, #52] ; (800834c <__multadd+0x90>)
  19187. 8008316: f000 fd11 bl 8008d3c <__assert_func>
  19188. 800831a: 6922 ldr r2, [r4, #16]
  19189. 800831c: f104 010c add.w r1, r4, #12
  19190. 8008320: 3202 adds r2, #2
  19191. 8008322: 0092 lsls r2, r2, #2
  19192. 8008324: 300c adds r0, #12
  19193. 8008326: f7fe fc1f bl 8006b68 <memcpy>
  19194. 800832a: 4621 mov r1, r4
  19195. 800832c: 4638 mov r0, r7
  19196. 800832e: f7ff ffa3 bl 8008278 <_Bfree>
  19197. 8008332: 462c mov r4, r5
  19198. 8008334: eb04 0386 add.w r3, r4, r6, lsl #2
  19199. 8008338: 3601 adds r6, #1
  19200. 800833a: f8c3 8014 str.w r8, [r3, #20]
  19201. 800833e: 6126 str r6, [r4, #16]
  19202. 8008340: 4620 mov r0, r4
  19203. 8008342: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  19204. 8008346: bf00 nop
  19205. 8008348: 0800a70f .word 0x0800a70f
  19206. 800834c: 0800a720 .word 0x0800a720
  19207. 08008350 <__hi0bits>:
  19208. 8008350: 0c02 lsrs r2, r0, #16
  19209. 8008352: 0412 lsls r2, r2, #16
  19210. 8008354: 4603 mov r3, r0
  19211. 8008356: b9ca cbnz r2, 800838c <__hi0bits+0x3c>
  19212. 8008358: 0403 lsls r3, r0, #16
  19213. 800835a: 2010 movs r0, #16
  19214. 800835c: f013 4f7f tst.w r3, #4278190080 ; 0xff000000
  19215. 8008360: bf04 itt eq
  19216. 8008362: 021b lsleq r3, r3, #8
  19217. 8008364: 3008 addeq r0, #8
  19218. 8008366: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000
  19219. 800836a: bf04 itt eq
  19220. 800836c: 011b lsleq r3, r3, #4
  19221. 800836e: 3004 addeq r0, #4
  19222. 8008370: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000
  19223. 8008374: bf04 itt eq
  19224. 8008376: 009b lsleq r3, r3, #2
  19225. 8008378: 3002 addeq r0, #2
  19226. 800837a: 2b00 cmp r3, #0
  19227. 800837c: db05 blt.n 800838a <__hi0bits+0x3a>
  19228. 800837e: f013 4f80 tst.w r3, #1073741824 ; 0x40000000
  19229. 8008382: f100 0001 add.w r0, r0, #1
  19230. 8008386: bf08 it eq
  19231. 8008388: 2020 moveq r0, #32
  19232. 800838a: 4770 bx lr
  19233. 800838c: 2000 movs r0, #0
  19234. 800838e: e7e5 b.n 800835c <__hi0bits+0xc>
  19235. 08008390 <__lo0bits>:
  19236. 8008390: 6803 ldr r3, [r0, #0]
  19237. 8008392: 4602 mov r2, r0
  19238. 8008394: f013 0007 ands.w r0, r3, #7
  19239. 8008398: d00b beq.n 80083b2 <__lo0bits+0x22>
  19240. 800839a: 07d9 lsls r1, r3, #31
  19241. 800839c: d422 bmi.n 80083e4 <__lo0bits+0x54>
  19242. 800839e: 0798 lsls r0, r3, #30
  19243. 80083a0: bf49 itett mi
  19244. 80083a2: 085b lsrmi r3, r3, #1
  19245. 80083a4: 089b lsrpl r3, r3, #2
  19246. 80083a6: 2001 movmi r0, #1
  19247. 80083a8: 6013 strmi r3, [r2, #0]
  19248. 80083aa: bf5c itt pl
  19249. 80083ac: 2002 movpl r0, #2
  19250. 80083ae: 6013 strpl r3, [r2, #0]
  19251. 80083b0: 4770 bx lr
  19252. 80083b2: b299 uxth r1, r3
  19253. 80083b4: b909 cbnz r1, 80083ba <__lo0bits+0x2a>
  19254. 80083b6: 2010 movs r0, #16
  19255. 80083b8: 0c1b lsrs r3, r3, #16
  19256. 80083ba: f013 0fff tst.w r3, #255 ; 0xff
  19257. 80083be: bf04 itt eq
  19258. 80083c0: 0a1b lsreq r3, r3, #8
  19259. 80083c2: 3008 addeq r0, #8
  19260. 80083c4: 0719 lsls r1, r3, #28
  19261. 80083c6: bf04 itt eq
  19262. 80083c8: 091b lsreq r3, r3, #4
  19263. 80083ca: 3004 addeq r0, #4
  19264. 80083cc: 0799 lsls r1, r3, #30
  19265. 80083ce: bf04 itt eq
  19266. 80083d0: 089b lsreq r3, r3, #2
  19267. 80083d2: 3002 addeq r0, #2
  19268. 80083d4: 07d9 lsls r1, r3, #31
  19269. 80083d6: d403 bmi.n 80083e0 <__lo0bits+0x50>
  19270. 80083d8: 085b lsrs r3, r3, #1
  19271. 80083da: f100 0001 add.w r0, r0, #1
  19272. 80083de: d003 beq.n 80083e8 <__lo0bits+0x58>
  19273. 80083e0: 6013 str r3, [r2, #0]
  19274. 80083e2: 4770 bx lr
  19275. 80083e4: 2000 movs r0, #0
  19276. 80083e6: 4770 bx lr
  19277. 80083e8: 2020 movs r0, #32
  19278. 80083ea: 4770 bx lr
  19279. 080083ec <__i2b>:
  19280. 80083ec: b510 push {r4, lr}
  19281. 80083ee: 460c mov r4, r1
  19282. 80083f0: 2101 movs r1, #1
  19283. 80083f2: f7ff ff01 bl 80081f8 <_Balloc>
  19284. 80083f6: 4602 mov r2, r0
  19285. 80083f8: b928 cbnz r0, 8008406 <__i2b+0x1a>
  19286. 80083fa: f44f 71a0 mov.w r1, #320 ; 0x140
  19287. 80083fe: 4b04 ldr r3, [pc, #16] ; (8008410 <__i2b+0x24>)
  19288. 8008400: 4804 ldr r0, [pc, #16] ; (8008414 <__i2b+0x28>)
  19289. 8008402: f000 fc9b bl 8008d3c <__assert_func>
  19290. 8008406: 2301 movs r3, #1
  19291. 8008408: 6144 str r4, [r0, #20]
  19292. 800840a: 6103 str r3, [r0, #16]
  19293. 800840c: bd10 pop {r4, pc}
  19294. 800840e: bf00 nop
  19295. 8008410: 0800a70f .word 0x0800a70f
  19296. 8008414: 0800a720 .word 0x0800a720
  19297. 08008418 <__multiply>:
  19298. 8008418: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  19299. 800841c: 4614 mov r4, r2
  19300. 800841e: 690a ldr r2, [r1, #16]
  19301. 8008420: 6923 ldr r3, [r4, #16]
  19302. 8008422: 460d mov r5, r1
  19303. 8008424: 429a cmp r2, r3
  19304. 8008426: bfbe ittt lt
  19305. 8008428: 460b movlt r3, r1
  19306. 800842a: 4625 movlt r5, r4
  19307. 800842c: 461c movlt r4, r3
  19308. 800842e: f8d5 a010 ldr.w sl, [r5, #16]
  19309. 8008432: f8d4 9010 ldr.w r9, [r4, #16]
  19310. 8008436: 68ab ldr r3, [r5, #8]
  19311. 8008438: 6869 ldr r1, [r5, #4]
  19312. 800843a: eb0a 0709 add.w r7, sl, r9
  19313. 800843e: 42bb cmp r3, r7
  19314. 8008440: b085 sub sp, #20
  19315. 8008442: bfb8 it lt
  19316. 8008444: 3101 addlt r1, #1
  19317. 8008446: f7ff fed7 bl 80081f8 <_Balloc>
  19318. 800844a: b930 cbnz r0, 800845a <__multiply+0x42>
  19319. 800844c: 4602 mov r2, r0
  19320. 800844e: f240 115d movw r1, #349 ; 0x15d
  19321. 8008452: 4b41 ldr r3, [pc, #260] ; (8008558 <__multiply+0x140>)
  19322. 8008454: 4841 ldr r0, [pc, #260] ; (800855c <__multiply+0x144>)
  19323. 8008456: f000 fc71 bl 8008d3c <__assert_func>
  19324. 800845a: f100 0614 add.w r6, r0, #20
  19325. 800845e: 4633 mov r3, r6
  19326. 8008460: 2200 movs r2, #0
  19327. 8008462: eb06 0887 add.w r8, r6, r7, lsl #2
  19328. 8008466: 4543 cmp r3, r8
  19329. 8008468: d31e bcc.n 80084a8 <__multiply+0x90>
  19330. 800846a: f105 0c14 add.w ip, r5, #20
  19331. 800846e: f104 0314 add.w r3, r4, #20
  19332. 8008472: eb0c 0c8a add.w ip, ip, sl, lsl #2
  19333. 8008476: eb03 0289 add.w r2, r3, r9, lsl #2
  19334. 800847a: 9202 str r2, [sp, #8]
  19335. 800847c: ebac 0205 sub.w r2, ip, r5
  19336. 8008480: 3a15 subs r2, #21
  19337. 8008482: f022 0203 bic.w r2, r2, #3
  19338. 8008486: 3204 adds r2, #4
  19339. 8008488: f105 0115 add.w r1, r5, #21
  19340. 800848c: 458c cmp ip, r1
  19341. 800848e: bf38 it cc
  19342. 8008490: 2204 movcc r2, #4
  19343. 8008492: 9201 str r2, [sp, #4]
  19344. 8008494: 9a02 ldr r2, [sp, #8]
  19345. 8008496: 9303 str r3, [sp, #12]
  19346. 8008498: 429a cmp r2, r3
  19347. 800849a: d808 bhi.n 80084ae <__multiply+0x96>
  19348. 800849c: 2f00 cmp r7, #0
  19349. 800849e: dc55 bgt.n 800854c <__multiply+0x134>
  19350. 80084a0: 6107 str r7, [r0, #16]
  19351. 80084a2: b005 add sp, #20
  19352. 80084a4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  19353. 80084a8: f843 2b04 str.w r2, [r3], #4
  19354. 80084ac: e7db b.n 8008466 <__multiply+0x4e>
  19355. 80084ae: f8b3 a000 ldrh.w sl, [r3]
  19356. 80084b2: f1ba 0f00 cmp.w sl, #0
  19357. 80084b6: d020 beq.n 80084fa <__multiply+0xe2>
  19358. 80084b8: 46b1 mov r9, r6
  19359. 80084ba: 2200 movs r2, #0
  19360. 80084bc: f105 0e14 add.w lr, r5, #20
  19361. 80084c0: f85e 4b04 ldr.w r4, [lr], #4
  19362. 80084c4: f8d9 b000 ldr.w fp, [r9]
  19363. 80084c8: b2a1 uxth r1, r4
  19364. 80084ca: fa1f fb8b uxth.w fp, fp
  19365. 80084ce: fb0a b101 mla r1, sl, r1, fp
  19366. 80084d2: 4411 add r1, r2
  19367. 80084d4: f8d9 2000 ldr.w r2, [r9]
  19368. 80084d8: 0c24 lsrs r4, r4, #16
  19369. 80084da: 0c12 lsrs r2, r2, #16
  19370. 80084dc: fb0a 2404 mla r4, sl, r4, r2
  19371. 80084e0: eb04 4411 add.w r4, r4, r1, lsr #16
  19372. 80084e4: b289 uxth r1, r1
  19373. 80084e6: ea41 4104 orr.w r1, r1, r4, lsl #16
  19374. 80084ea: 45f4 cmp ip, lr
  19375. 80084ec: ea4f 4214 mov.w r2, r4, lsr #16
  19376. 80084f0: f849 1b04 str.w r1, [r9], #4
  19377. 80084f4: d8e4 bhi.n 80084c0 <__multiply+0xa8>
  19378. 80084f6: 9901 ldr r1, [sp, #4]
  19379. 80084f8: 5072 str r2, [r6, r1]
  19380. 80084fa: 9a03 ldr r2, [sp, #12]
  19381. 80084fc: 3304 adds r3, #4
  19382. 80084fe: f8b2 9002 ldrh.w r9, [r2, #2]
  19383. 8008502: f1b9 0f00 cmp.w r9, #0
  19384. 8008506: d01f beq.n 8008548 <__multiply+0x130>
  19385. 8008508: 46b6 mov lr, r6
  19386. 800850a: f04f 0a00 mov.w sl, #0
  19387. 800850e: 6834 ldr r4, [r6, #0]
  19388. 8008510: f105 0114 add.w r1, r5, #20
  19389. 8008514: 880a ldrh r2, [r1, #0]
  19390. 8008516: f8be b002 ldrh.w fp, [lr, #2]
  19391. 800851a: b2a4 uxth r4, r4
  19392. 800851c: fb09 b202 mla r2, r9, r2, fp
  19393. 8008520: 4492 add sl, r2
  19394. 8008522: ea44 440a orr.w r4, r4, sl, lsl #16
  19395. 8008526: f84e 4b04 str.w r4, [lr], #4
  19396. 800852a: f851 4b04 ldr.w r4, [r1], #4
  19397. 800852e: f8be 2000 ldrh.w r2, [lr]
  19398. 8008532: 0c24 lsrs r4, r4, #16
  19399. 8008534: fb09 2404 mla r4, r9, r4, r2
  19400. 8008538: 458c cmp ip, r1
  19401. 800853a: eb04 441a add.w r4, r4, sl, lsr #16
  19402. 800853e: ea4f 4a14 mov.w sl, r4, lsr #16
  19403. 8008542: d8e7 bhi.n 8008514 <__multiply+0xfc>
  19404. 8008544: 9a01 ldr r2, [sp, #4]
  19405. 8008546: 50b4 str r4, [r6, r2]
  19406. 8008548: 3604 adds r6, #4
  19407. 800854a: e7a3 b.n 8008494 <__multiply+0x7c>
  19408. 800854c: f858 3d04 ldr.w r3, [r8, #-4]!
  19409. 8008550: 2b00 cmp r3, #0
  19410. 8008552: d1a5 bne.n 80084a0 <__multiply+0x88>
  19411. 8008554: 3f01 subs r7, #1
  19412. 8008556: e7a1 b.n 800849c <__multiply+0x84>
  19413. 8008558: 0800a70f .word 0x0800a70f
  19414. 800855c: 0800a720 .word 0x0800a720
  19415. 08008560 <__pow5mult>:
  19416. 8008560: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  19417. 8008564: 4615 mov r5, r2
  19418. 8008566: f012 0203 ands.w r2, r2, #3
  19419. 800856a: 4606 mov r6, r0
  19420. 800856c: 460f mov r7, r1
  19421. 800856e: d007 beq.n 8008580 <__pow5mult+0x20>
  19422. 8008570: 4c25 ldr r4, [pc, #148] ; (8008608 <__pow5mult+0xa8>)
  19423. 8008572: 3a01 subs r2, #1
  19424. 8008574: 2300 movs r3, #0
  19425. 8008576: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  19426. 800857a: f7ff fe9f bl 80082bc <__multadd>
  19427. 800857e: 4607 mov r7, r0
  19428. 8008580: 10ad asrs r5, r5, #2
  19429. 8008582: d03d beq.n 8008600 <__pow5mult+0xa0>
  19430. 8008584: 6a74 ldr r4, [r6, #36] ; 0x24
  19431. 8008586: b97c cbnz r4, 80085a8 <__pow5mult+0x48>
  19432. 8008588: 2010 movs r0, #16
  19433. 800858a: f7ff fe1f bl 80081cc <malloc>
  19434. 800858e: 4602 mov r2, r0
  19435. 8008590: 6270 str r0, [r6, #36] ; 0x24
  19436. 8008592: b928 cbnz r0, 80085a0 <__pow5mult+0x40>
  19437. 8008594: f44f 71d7 mov.w r1, #430 ; 0x1ae
  19438. 8008598: 4b1c ldr r3, [pc, #112] ; (800860c <__pow5mult+0xac>)
  19439. 800859a: 481d ldr r0, [pc, #116] ; (8008610 <__pow5mult+0xb0>)
  19440. 800859c: f000 fbce bl 8008d3c <__assert_func>
  19441. 80085a0: e9c0 4401 strd r4, r4, [r0, #4]
  19442. 80085a4: 6004 str r4, [r0, #0]
  19443. 80085a6: 60c4 str r4, [r0, #12]
  19444. 80085a8: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24
  19445. 80085ac: f8d8 4008 ldr.w r4, [r8, #8]
  19446. 80085b0: b94c cbnz r4, 80085c6 <__pow5mult+0x66>
  19447. 80085b2: f240 2171 movw r1, #625 ; 0x271
  19448. 80085b6: 4630 mov r0, r6
  19449. 80085b8: f7ff ff18 bl 80083ec <__i2b>
  19450. 80085bc: 2300 movs r3, #0
  19451. 80085be: 4604 mov r4, r0
  19452. 80085c0: f8c8 0008 str.w r0, [r8, #8]
  19453. 80085c4: 6003 str r3, [r0, #0]
  19454. 80085c6: f04f 0900 mov.w r9, #0
  19455. 80085ca: 07eb lsls r3, r5, #31
  19456. 80085cc: d50a bpl.n 80085e4 <__pow5mult+0x84>
  19457. 80085ce: 4639 mov r1, r7
  19458. 80085d0: 4622 mov r2, r4
  19459. 80085d2: 4630 mov r0, r6
  19460. 80085d4: f7ff ff20 bl 8008418 <__multiply>
  19461. 80085d8: 4680 mov r8, r0
  19462. 80085da: 4639 mov r1, r7
  19463. 80085dc: 4630 mov r0, r6
  19464. 80085de: f7ff fe4b bl 8008278 <_Bfree>
  19465. 80085e2: 4647 mov r7, r8
  19466. 80085e4: 106d asrs r5, r5, #1
  19467. 80085e6: d00b beq.n 8008600 <__pow5mult+0xa0>
  19468. 80085e8: 6820 ldr r0, [r4, #0]
  19469. 80085ea: b938 cbnz r0, 80085fc <__pow5mult+0x9c>
  19470. 80085ec: 4622 mov r2, r4
  19471. 80085ee: 4621 mov r1, r4
  19472. 80085f0: 4630 mov r0, r6
  19473. 80085f2: f7ff ff11 bl 8008418 <__multiply>
  19474. 80085f6: 6020 str r0, [r4, #0]
  19475. 80085f8: f8c0 9000 str.w r9, [r0]
  19476. 80085fc: 4604 mov r4, r0
  19477. 80085fe: e7e4 b.n 80085ca <__pow5mult+0x6a>
  19478. 8008600: 4638 mov r0, r7
  19479. 8008602: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  19480. 8008606: bf00 nop
  19481. 8008608: 0800a870 .word 0x0800a870
  19482. 800860c: 0800a699 .word 0x0800a699
  19483. 8008610: 0800a720 .word 0x0800a720
  19484. 08008614 <__lshift>:
  19485. 8008614: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  19486. 8008618: 460c mov r4, r1
  19487. 800861a: 4607 mov r7, r0
  19488. 800861c: 4691 mov r9, r2
  19489. 800861e: 6923 ldr r3, [r4, #16]
  19490. 8008620: 6849 ldr r1, [r1, #4]
  19491. 8008622: eb03 1862 add.w r8, r3, r2, asr #5
  19492. 8008626: 68a3 ldr r3, [r4, #8]
  19493. 8008628: ea4f 1a62 mov.w sl, r2, asr #5
  19494. 800862c: f108 0601 add.w r6, r8, #1
  19495. 8008630: 42b3 cmp r3, r6
  19496. 8008632: db0b blt.n 800864c <__lshift+0x38>
  19497. 8008634: 4638 mov r0, r7
  19498. 8008636: f7ff fddf bl 80081f8 <_Balloc>
  19499. 800863a: 4605 mov r5, r0
  19500. 800863c: b948 cbnz r0, 8008652 <__lshift+0x3e>
  19501. 800863e: 4602 mov r2, r0
  19502. 8008640: f240 11d9 movw r1, #473 ; 0x1d9
  19503. 8008644: 4b27 ldr r3, [pc, #156] ; (80086e4 <__lshift+0xd0>)
  19504. 8008646: 4828 ldr r0, [pc, #160] ; (80086e8 <__lshift+0xd4>)
  19505. 8008648: f000 fb78 bl 8008d3c <__assert_func>
  19506. 800864c: 3101 adds r1, #1
  19507. 800864e: 005b lsls r3, r3, #1
  19508. 8008650: e7ee b.n 8008630 <__lshift+0x1c>
  19509. 8008652: 2300 movs r3, #0
  19510. 8008654: f100 0114 add.w r1, r0, #20
  19511. 8008658: f100 0210 add.w r2, r0, #16
  19512. 800865c: 4618 mov r0, r3
  19513. 800865e: 4553 cmp r3, sl
  19514. 8008660: db33 blt.n 80086ca <__lshift+0xb6>
  19515. 8008662: 6920 ldr r0, [r4, #16]
  19516. 8008664: ea2a 7aea bic.w sl, sl, sl, asr #31
  19517. 8008668: f104 0314 add.w r3, r4, #20
  19518. 800866c: f019 091f ands.w r9, r9, #31
  19519. 8008670: eb01 018a add.w r1, r1, sl, lsl #2
  19520. 8008674: eb03 0c80 add.w ip, r3, r0, lsl #2
  19521. 8008678: d02b beq.n 80086d2 <__lshift+0xbe>
  19522. 800867a: 468a mov sl, r1
  19523. 800867c: 2200 movs r2, #0
  19524. 800867e: f1c9 0e20 rsb lr, r9, #32
  19525. 8008682: 6818 ldr r0, [r3, #0]
  19526. 8008684: fa00 f009 lsl.w r0, r0, r9
  19527. 8008688: 4302 orrs r2, r0
  19528. 800868a: f84a 2b04 str.w r2, [sl], #4
  19529. 800868e: f853 2b04 ldr.w r2, [r3], #4
  19530. 8008692: 459c cmp ip, r3
  19531. 8008694: fa22 f20e lsr.w r2, r2, lr
  19532. 8008698: d8f3 bhi.n 8008682 <__lshift+0x6e>
  19533. 800869a: ebac 0304 sub.w r3, ip, r4
  19534. 800869e: 3b15 subs r3, #21
  19535. 80086a0: f023 0303 bic.w r3, r3, #3
  19536. 80086a4: 3304 adds r3, #4
  19537. 80086a6: f104 0015 add.w r0, r4, #21
  19538. 80086aa: 4584 cmp ip, r0
  19539. 80086ac: bf38 it cc
  19540. 80086ae: 2304 movcc r3, #4
  19541. 80086b0: 50ca str r2, [r1, r3]
  19542. 80086b2: b10a cbz r2, 80086b8 <__lshift+0xa4>
  19543. 80086b4: f108 0602 add.w r6, r8, #2
  19544. 80086b8: 3e01 subs r6, #1
  19545. 80086ba: 4638 mov r0, r7
  19546. 80086bc: 4621 mov r1, r4
  19547. 80086be: 612e str r6, [r5, #16]
  19548. 80086c0: f7ff fdda bl 8008278 <_Bfree>
  19549. 80086c4: 4628 mov r0, r5
  19550. 80086c6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  19551. 80086ca: f842 0f04 str.w r0, [r2, #4]!
  19552. 80086ce: 3301 adds r3, #1
  19553. 80086d0: e7c5 b.n 800865e <__lshift+0x4a>
  19554. 80086d2: 3904 subs r1, #4
  19555. 80086d4: f853 2b04 ldr.w r2, [r3], #4
  19556. 80086d8: 459c cmp ip, r3
  19557. 80086da: f841 2f04 str.w r2, [r1, #4]!
  19558. 80086de: d8f9 bhi.n 80086d4 <__lshift+0xc0>
  19559. 80086e0: e7ea b.n 80086b8 <__lshift+0xa4>
  19560. 80086e2: bf00 nop
  19561. 80086e4: 0800a70f .word 0x0800a70f
  19562. 80086e8: 0800a720 .word 0x0800a720
  19563. 080086ec <__mcmp>:
  19564. 80086ec: 4603 mov r3, r0
  19565. 80086ee: 690a ldr r2, [r1, #16]
  19566. 80086f0: 6900 ldr r0, [r0, #16]
  19567. 80086f2: b530 push {r4, r5, lr}
  19568. 80086f4: 1a80 subs r0, r0, r2
  19569. 80086f6: d10d bne.n 8008714 <__mcmp+0x28>
  19570. 80086f8: 3314 adds r3, #20
  19571. 80086fa: 3114 adds r1, #20
  19572. 80086fc: eb03 0482 add.w r4, r3, r2, lsl #2
  19573. 8008700: eb01 0182 add.w r1, r1, r2, lsl #2
  19574. 8008704: f854 5d04 ldr.w r5, [r4, #-4]!
  19575. 8008708: f851 2d04 ldr.w r2, [r1, #-4]!
  19576. 800870c: 4295 cmp r5, r2
  19577. 800870e: d002 beq.n 8008716 <__mcmp+0x2a>
  19578. 8008710: d304 bcc.n 800871c <__mcmp+0x30>
  19579. 8008712: 2001 movs r0, #1
  19580. 8008714: bd30 pop {r4, r5, pc}
  19581. 8008716: 42a3 cmp r3, r4
  19582. 8008718: d3f4 bcc.n 8008704 <__mcmp+0x18>
  19583. 800871a: e7fb b.n 8008714 <__mcmp+0x28>
  19584. 800871c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  19585. 8008720: e7f8 b.n 8008714 <__mcmp+0x28>
  19586. ...
  19587. 08008724 <__mdiff>:
  19588. 8008724: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  19589. 8008728: 460c mov r4, r1
  19590. 800872a: 4606 mov r6, r0
  19591. 800872c: 4611 mov r1, r2
  19592. 800872e: 4620 mov r0, r4
  19593. 8008730: 4692 mov sl, r2
  19594. 8008732: f7ff ffdb bl 80086ec <__mcmp>
  19595. 8008736: 1e05 subs r5, r0, #0
  19596. 8008738: d111 bne.n 800875e <__mdiff+0x3a>
  19597. 800873a: 4629 mov r1, r5
  19598. 800873c: 4630 mov r0, r6
  19599. 800873e: f7ff fd5b bl 80081f8 <_Balloc>
  19600. 8008742: 4602 mov r2, r0
  19601. 8008744: b928 cbnz r0, 8008752 <__mdiff+0x2e>
  19602. 8008746: f240 2132 movw r1, #562 ; 0x232
  19603. 800874a: 4b3c ldr r3, [pc, #240] ; (800883c <__mdiff+0x118>)
  19604. 800874c: 483c ldr r0, [pc, #240] ; (8008840 <__mdiff+0x11c>)
  19605. 800874e: f000 faf5 bl 8008d3c <__assert_func>
  19606. 8008752: 2301 movs r3, #1
  19607. 8008754: e9c0 3504 strd r3, r5, [r0, #16]
  19608. 8008758: 4610 mov r0, r2
  19609. 800875a: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
  19610. 800875e: bfa4 itt ge
  19611. 8008760: 4653 movge r3, sl
  19612. 8008762: 46a2 movge sl, r4
  19613. 8008764: 4630 mov r0, r6
  19614. 8008766: f8da 1004 ldr.w r1, [sl, #4]
  19615. 800876a: bfa6 itte ge
  19616. 800876c: 461c movge r4, r3
  19617. 800876e: 2500 movge r5, #0
  19618. 8008770: 2501 movlt r5, #1
  19619. 8008772: f7ff fd41 bl 80081f8 <_Balloc>
  19620. 8008776: 4602 mov r2, r0
  19621. 8008778: b918 cbnz r0, 8008782 <__mdiff+0x5e>
  19622. 800877a: f44f 7110 mov.w r1, #576 ; 0x240
  19623. 800877e: 4b2f ldr r3, [pc, #188] ; (800883c <__mdiff+0x118>)
  19624. 8008780: e7e4 b.n 800874c <__mdiff+0x28>
  19625. 8008782: f100 0814 add.w r8, r0, #20
  19626. 8008786: f8da 7010 ldr.w r7, [sl, #16]
  19627. 800878a: 60c5 str r5, [r0, #12]
  19628. 800878c: f04f 0c00 mov.w ip, #0
  19629. 8008790: f10a 0514 add.w r5, sl, #20
  19630. 8008794: f10a 0010 add.w r0, sl, #16
  19631. 8008798: 46c2 mov sl, r8
  19632. 800879a: 6926 ldr r6, [r4, #16]
  19633. 800879c: f104 0914 add.w r9, r4, #20
  19634. 80087a0: eb05 0e87 add.w lr, r5, r7, lsl #2
  19635. 80087a4: eb09 0686 add.w r6, r9, r6, lsl #2
  19636. 80087a8: f850 bf04 ldr.w fp, [r0, #4]!
  19637. 80087ac: f859 3b04 ldr.w r3, [r9], #4
  19638. 80087b0: fa1f f18b uxth.w r1, fp
  19639. 80087b4: 4461 add r1, ip
  19640. 80087b6: fa1f fc83 uxth.w ip, r3
  19641. 80087ba: 0c1b lsrs r3, r3, #16
  19642. 80087bc: eba1 010c sub.w r1, r1, ip
  19643. 80087c0: ebc3 431b rsb r3, r3, fp, lsr #16
  19644. 80087c4: eb03 4321 add.w r3, r3, r1, asr #16
  19645. 80087c8: b289 uxth r1, r1
  19646. 80087ca: ea4f 4c23 mov.w ip, r3, asr #16
  19647. 80087ce: 454e cmp r6, r9
  19648. 80087d0: ea41 4303 orr.w r3, r1, r3, lsl #16
  19649. 80087d4: f84a 3b04 str.w r3, [sl], #4
  19650. 80087d8: d8e6 bhi.n 80087a8 <__mdiff+0x84>
  19651. 80087da: 1b33 subs r3, r6, r4
  19652. 80087dc: 3b15 subs r3, #21
  19653. 80087de: f023 0303 bic.w r3, r3, #3
  19654. 80087e2: 3415 adds r4, #21
  19655. 80087e4: 3304 adds r3, #4
  19656. 80087e6: 42a6 cmp r6, r4
  19657. 80087e8: bf38 it cc
  19658. 80087ea: 2304 movcc r3, #4
  19659. 80087ec: 441d add r5, r3
  19660. 80087ee: 4443 add r3, r8
  19661. 80087f0: 461e mov r6, r3
  19662. 80087f2: 462c mov r4, r5
  19663. 80087f4: 4574 cmp r4, lr
  19664. 80087f6: d30e bcc.n 8008816 <__mdiff+0xf2>
  19665. 80087f8: f10e 0103 add.w r1, lr, #3
  19666. 80087fc: 1b49 subs r1, r1, r5
  19667. 80087fe: f021 0103 bic.w r1, r1, #3
  19668. 8008802: 3d03 subs r5, #3
  19669. 8008804: 45ae cmp lr, r5
  19670. 8008806: bf38 it cc
  19671. 8008808: 2100 movcc r1, #0
  19672. 800880a: 4419 add r1, r3
  19673. 800880c: f851 3d04 ldr.w r3, [r1, #-4]!
  19674. 8008810: b18b cbz r3, 8008836 <__mdiff+0x112>
  19675. 8008812: 6117 str r7, [r2, #16]
  19676. 8008814: e7a0 b.n 8008758 <__mdiff+0x34>
  19677. 8008816: f854 8b04 ldr.w r8, [r4], #4
  19678. 800881a: fa1f f188 uxth.w r1, r8
  19679. 800881e: 4461 add r1, ip
  19680. 8008820: 1408 asrs r0, r1, #16
  19681. 8008822: eb00 4018 add.w r0, r0, r8, lsr #16
  19682. 8008826: b289 uxth r1, r1
  19683. 8008828: ea41 4100 orr.w r1, r1, r0, lsl #16
  19684. 800882c: ea4f 4c20 mov.w ip, r0, asr #16
  19685. 8008830: f846 1b04 str.w r1, [r6], #4
  19686. 8008834: e7de b.n 80087f4 <__mdiff+0xd0>
  19687. 8008836: 3f01 subs r7, #1
  19688. 8008838: e7e8 b.n 800880c <__mdiff+0xe8>
  19689. 800883a: bf00 nop
  19690. 800883c: 0800a70f .word 0x0800a70f
  19691. 8008840: 0800a720 .word 0x0800a720
  19692. 08008844 <__d2b>:
  19693. 8008844: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
  19694. 8008848: 2101 movs r1, #1
  19695. 800884a: e9dd 7608 ldrd r7, r6, [sp, #32]
  19696. 800884e: 4690 mov r8, r2
  19697. 8008850: 461d mov r5, r3
  19698. 8008852: f7ff fcd1 bl 80081f8 <_Balloc>
  19699. 8008856: 4604 mov r4, r0
  19700. 8008858: b930 cbnz r0, 8008868 <__d2b+0x24>
  19701. 800885a: 4602 mov r2, r0
  19702. 800885c: f240 310a movw r1, #778 ; 0x30a
  19703. 8008860: 4b24 ldr r3, [pc, #144] ; (80088f4 <__d2b+0xb0>)
  19704. 8008862: 4825 ldr r0, [pc, #148] ; (80088f8 <__d2b+0xb4>)
  19705. 8008864: f000 fa6a bl 8008d3c <__assert_func>
  19706. 8008868: f3c5 0313 ubfx r3, r5, #0, #20
  19707. 800886c: f3c5 550a ubfx r5, r5, #20, #11
  19708. 8008870: bb2d cbnz r5, 80088be <__d2b+0x7a>
  19709. 8008872: 9301 str r3, [sp, #4]
  19710. 8008874: f1b8 0300 subs.w r3, r8, #0
  19711. 8008878: d026 beq.n 80088c8 <__d2b+0x84>
  19712. 800887a: 4668 mov r0, sp
  19713. 800887c: 9300 str r3, [sp, #0]
  19714. 800887e: f7ff fd87 bl 8008390 <__lo0bits>
  19715. 8008882: 9900 ldr r1, [sp, #0]
  19716. 8008884: b1f0 cbz r0, 80088c4 <__d2b+0x80>
  19717. 8008886: 9a01 ldr r2, [sp, #4]
  19718. 8008888: f1c0 0320 rsb r3, r0, #32
  19719. 800888c: fa02 f303 lsl.w r3, r2, r3
  19720. 8008890: 430b orrs r3, r1
  19721. 8008892: 40c2 lsrs r2, r0
  19722. 8008894: 6163 str r3, [r4, #20]
  19723. 8008896: 9201 str r2, [sp, #4]
  19724. 8008898: 9b01 ldr r3, [sp, #4]
  19725. 800889a: 2b00 cmp r3, #0
  19726. 800889c: bf14 ite ne
  19727. 800889e: 2102 movne r1, #2
  19728. 80088a0: 2101 moveq r1, #1
  19729. 80088a2: 61a3 str r3, [r4, #24]
  19730. 80088a4: 6121 str r1, [r4, #16]
  19731. 80088a6: b1c5 cbz r5, 80088da <__d2b+0x96>
  19732. 80088a8: f2a5 4533 subw r5, r5, #1075 ; 0x433
  19733. 80088ac: 4405 add r5, r0
  19734. 80088ae: f1c0 0035 rsb r0, r0, #53 ; 0x35
  19735. 80088b2: 603d str r5, [r7, #0]
  19736. 80088b4: 6030 str r0, [r6, #0]
  19737. 80088b6: 4620 mov r0, r4
  19738. 80088b8: b002 add sp, #8
  19739. 80088ba: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  19740. 80088be: f443 1380 orr.w r3, r3, #1048576 ; 0x100000
  19741. 80088c2: e7d6 b.n 8008872 <__d2b+0x2e>
  19742. 80088c4: 6161 str r1, [r4, #20]
  19743. 80088c6: e7e7 b.n 8008898 <__d2b+0x54>
  19744. 80088c8: a801 add r0, sp, #4
  19745. 80088ca: f7ff fd61 bl 8008390 <__lo0bits>
  19746. 80088ce: 2101 movs r1, #1
  19747. 80088d0: 9b01 ldr r3, [sp, #4]
  19748. 80088d2: 6121 str r1, [r4, #16]
  19749. 80088d4: 6163 str r3, [r4, #20]
  19750. 80088d6: 3020 adds r0, #32
  19751. 80088d8: e7e5 b.n 80088a6 <__d2b+0x62>
  19752. 80088da: eb04 0381 add.w r3, r4, r1, lsl #2
  19753. 80088de: f2a0 4032 subw r0, r0, #1074 ; 0x432
  19754. 80088e2: 6038 str r0, [r7, #0]
  19755. 80088e4: 6918 ldr r0, [r3, #16]
  19756. 80088e6: f7ff fd33 bl 8008350 <__hi0bits>
  19757. 80088ea: ebc0 1141 rsb r1, r0, r1, lsl #5
  19758. 80088ee: 6031 str r1, [r6, #0]
  19759. 80088f0: e7e1 b.n 80088b6 <__d2b+0x72>
  19760. 80088f2: bf00 nop
  19761. 80088f4: 0800a70f .word 0x0800a70f
  19762. 80088f8: 0800a720 .word 0x0800a720
  19763. 080088fc <_calloc_r>:
  19764. 80088fc: b538 push {r3, r4, r5, lr}
  19765. 80088fe: fb02 f501 mul.w r5, r2, r1
  19766. 8008902: 4629 mov r1, r5
  19767. 8008904: f000 f854 bl 80089b0 <_malloc_r>
  19768. 8008908: 4604 mov r4, r0
  19769. 800890a: b118 cbz r0, 8008914 <_calloc_r+0x18>
  19770. 800890c: 462a mov r2, r5
  19771. 800890e: 2100 movs r1, #0
  19772. 8008910: f7fe f952 bl 8006bb8 <memset>
  19773. 8008914: 4620 mov r0, r4
  19774. 8008916: bd38 pop {r3, r4, r5, pc}
  19775. 08008918 <_free_r>:
  19776. 8008918: b538 push {r3, r4, r5, lr}
  19777. 800891a: 4605 mov r5, r0
  19778. 800891c: 2900 cmp r1, #0
  19779. 800891e: d043 beq.n 80089a8 <_free_r+0x90>
  19780. 8008920: f851 3c04 ldr.w r3, [r1, #-4]
  19781. 8008924: 1f0c subs r4, r1, #4
  19782. 8008926: 2b00 cmp r3, #0
  19783. 8008928: bfb8 it lt
  19784. 800892a: 18e4 addlt r4, r4, r3
  19785. 800892c: f000 fa48 bl 8008dc0 <__malloc_lock>
  19786. 8008930: 4a1e ldr r2, [pc, #120] ; (80089ac <_free_r+0x94>)
  19787. 8008932: 6813 ldr r3, [r2, #0]
  19788. 8008934: 4610 mov r0, r2
  19789. 8008936: b933 cbnz r3, 8008946 <_free_r+0x2e>
  19790. 8008938: 6063 str r3, [r4, #4]
  19791. 800893a: 6014 str r4, [r2, #0]
  19792. 800893c: 4628 mov r0, r5
  19793. 800893e: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  19794. 8008942: f000 ba43 b.w 8008dcc <__malloc_unlock>
  19795. 8008946: 42a3 cmp r3, r4
  19796. 8008948: d90a bls.n 8008960 <_free_r+0x48>
  19797. 800894a: 6821 ldr r1, [r4, #0]
  19798. 800894c: 1862 adds r2, r4, r1
  19799. 800894e: 4293 cmp r3, r2
  19800. 8008950: bf01 itttt eq
  19801. 8008952: 681a ldreq r2, [r3, #0]
  19802. 8008954: 685b ldreq r3, [r3, #4]
  19803. 8008956: 1852 addeq r2, r2, r1
  19804. 8008958: 6022 streq r2, [r4, #0]
  19805. 800895a: 6063 str r3, [r4, #4]
  19806. 800895c: 6004 str r4, [r0, #0]
  19807. 800895e: e7ed b.n 800893c <_free_r+0x24>
  19808. 8008960: 461a mov r2, r3
  19809. 8008962: 685b ldr r3, [r3, #4]
  19810. 8008964: b10b cbz r3, 800896a <_free_r+0x52>
  19811. 8008966: 42a3 cmp r3, r4
  19812. 8008968: d9fa bls.n 8008960 <_free_r+0x48>
  19813. 800896a: 6811 ldr r1, [r2, #0]
  19814. 800896c: 1850 adds r0, r2, r1
  19815. 800896e: 42a0 cmp r0, r4
  19816. 8008970: d10b bne.n 800898a <_free_r+0x72>
  19817. 8008972: 6820 ldr r0, [r4, #0]
  19818. 8008974: 4401 add r1, r0
  19819. 8008976: 1850 adds r0, r2, r1
  19820. 8008978: 4283 cmp r3, r0
  19821. 800897a: 6011 str r1, [r2, #0]
  19822. 800897c: d1de bne.n 800893c <_free_r+0x24>
  19823. 800897e: 6818 ldr r0, [r3, #0]
  19824. 8008980: 685b ldr r3, [r3, #4]
  19825. 8008982: 4401 add r1, r0
  19826. 8008984: 6011 str r1, [r2, #0]
  19827. 8008986: 6053 str r3, [r2, #4]
  19828. 8008988: e7d8 b.n 800893c <_free_r+0x24>
  19829. 800898a: d902 bls.n 8008992 <_free_r+0x7a>
  19830. 800898c: 230c movs r3, #12
  19831. 800898e: 602b str r3, [r5, #0]
  19832. 8008990: e7d4 b.n 800893c <_free_r+0x24>
  19833. 8008992: 6820 ldr r0, [r4, #0]
  19834. 8008994: 1821 adds r1, r4, r0
  19835. 8008996: 428b cmp r3, r1
  19836. 8008998: bf01 itttt eq
  19837. 800899a: 6819 ldreq r1, [r3, #0]
  19838. 800899c: 685b ldreq r3, [r3, #4]
  19839. 800899e: 1809 addeq r1, r1, r0
  19840. 80089a0: 6021 streq r1, [r4, #0]
  19841. 80089a2: 6063 str r3, [r4, #4]
  19842. 80089a4: 6054 str r4, [r2, #4]
  19843. 80089a6: e7c9 b.n 800893c <_free_r+0x24>
  19844. 80089a8: bd38 pop {r3, r4, r5, pc}
  19845. 80089aa: bf00 nop
  19846. 80089ac: 20000410 .word 0x20000410
  19847. 080089b0 <_malloc_r>:
  19848. 80089b0: b5f8 push {r3, r4, r5, r6, r7, lr}
  19849. 80089b2: 1ccd adds r5, r1, #3
  19850. 80089b4: f025 0503 bic.w r5, r5, #3
  19851. 80089b8: 3508 adds r5, #8
  19852. 80089ba: 2d0c cmp r5, #12
  19853. 80089bc: bf38 it cc
  19854. 80089be: 250c movcc r5, #12
  19855. 80089c0: 2d00 cmp r5, #0
  19856. 80089c2: 4606 mov r6, r0
  19857. 80089c4: db01 blt.n 80089ca <_malloc_r+0x1a>
  19858. 80089c6: 42a9 cmp r1, r5
  19859. 80089c8: d903 bls.n 80089d2 <_malloc_r+0x22>
  19860. 80089ca: 230c movs r3, #12
  19861. 80089cc: 6033 str r3, [r6, #0]
  19862. 80089ce: 2000 movs r0, #0
  19863. 80089d0: bdf8 pop {r3, r4, r5, r6, r7, pc}
  19864. 80089d2: f000 f9f5 bl 8008dc0 <__malloc_lock>
  19865. 80089d6: 4921 ldr r1, [pc, #132] ; (8008a5c <_malloc_r+0xac>)
  19866. 80089d8: 680a ldr r2, [r1, #0]
  19867. 80089da: 4614 mov r4, r2
  19868. 80089dc: b99c cbnz r4, 8008a06 <_malloc_r+0x56>
  19869. 80089de: 4f20 ldr r7, [pc, #128] ; (8008a60 <_malloc_r+0xb0>)
  19870. 80089e0: 683b ldr r3, [r7, #0]
  19871. 80089e2: b923 cbnz r3, 80089ee <_malloc_r+0x3e>
  19872. 80089e4: 4621 mov r1, r4
  19873. 80089e6: 4630 mov r0, r6
  19874. 80089e8: f000 f998 bl 8008d1c <_sbrk_r>
  19875. 80089ec: 6038 str r0, [r7, #0]
  19876. 80089ee: 4629 mov r1, r5
  19877. 80089f0: 4630 mov r0, r6
  19878. 80089f2: f000 f993 bl 8008d1c <_sbrk_r>
  19879. 80089f6: 1c43 adds r3, r0, #1
  19880. 80089f8: d123 bne.n 8008a42 <_malloc_r+0x92>
  19881. 80089fa: 230c movs r3, #12
  19882. 80089fc: 4630 mov r0, r6
  19883. 80089fe: 6033 str r3, [r6, #0]
  19884. 8008a00: f000 f9e4 bl 8008dcc <__malloc_unlock>
  19885. 8008a04: e7e3 b.n 80089ce <_malloc_r+0x1e>
  19886. 8008a06: 6823 ldr r3, [r4, #0]
  19887. 8008a08: 1b5b subs r3, r3, r5
  19888. 8008a0a: d417 bmi.n 8008a3c <_malloc_r+0x8c>
  19889. 8008a0c: 2b0b cmp r3, #11
  19890. 8008a0e: d903 bls.n 8008a18 <_malloc_r+0x68>
  19891. 8008a10: 6023 str r3, [r4, #0]
  19892. 8008a12: 441c add r4, r3
  19893. 8008a14: 6025 str r5, [r4, #0]
  19894. 8008a16: e004 b.n 8008a22 <_malloc_r+0x72>
  19895. 8008a18: 6863 ldr r3, [r4, #4]
  19896. 8008a1a: 42a2 cmp r2, r4
  19897. 8008a1c: bf0c ite eq
  19898. 8008a1e: 600b streq r3, [r1, #0]
  19899. 8008a20: 6053 strne r3, [r2, #4]
  19900. 8008a22: 4630 mov r0, r6
  19901. 8008a24: f000 f9d2 bl 8008dcc <__malloc_unlock>
  19902. 8008a28: f104 000b add.w r0, r4, #11
  19903. 8008a2c: 1d23 adds r3, r4, #4
  19904. 8008a2e: f020 0007 bic.w r0, r0, #7
  19905. 8008a32: 1ac2 subs r2, r0, r3
  19906. 8008a34: d0cc beq.n 80089d0 <_malloc_r+0x20>
  19907. 8008a36: 1a1b subs r3, r3, r0
  19908. 8008a38: 50a3 str r3, [r4, r2]
  19909. 8008a3a: e7c9 b.n 80089d0 <_malloc_r+0x20>
  19910. 8008a3c: 4622 mov r2, r4
  19911. 8008a3e: 6864 ldr r4, [r4, #4]
  19912. 8008a40: e7cc b.n 80089dc <_malloc_r+0x2c>
  19913. 8008a42: 1cc4 adds r4, r0, #3
  19914. 8008a44: f024 0403 bic.w r4, r4, #3
  19915. 8008a48: 42a0 cmp r0, r4
  19916. 8008a4a: d0e3 beq.n 8008a14 <_malloc_r+0x64>
  19917. 8008a4c: 1a21 subs r1, r4, r0
  19918. 8008a4e: 4630 mov r0, r6
  19919. 8008a50: f000 f964 bl 8008d1c <_sbrk_r>
  19920. 8008a54: 3001 adds r0, #1
  19921. 8008a56: d1dd bne.n 8008a14 <_malloc_r+0x64>
  19922. 8008a58: e7cf b.n 80089fa <_malloc_r+0x4a>
  19923. 8008a5a: bf00 nop
  19924. 8008a5c: 20000410 .word 0x20000410
  19925. 8008a60: 20000414 .word 0x20000414
  19926. 08008a64 <__ssputs_r>:
  19927. 8008a64: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  19928. 8008a68: 688e ldr r6, [r1, #8]
  19929. 8008a6a: 4682 mov sl, r0
  19930. 8008a6c: 429e cmp r6, r3
  19931. 8008a6e: 460c mov r4, r1
  19932. 8008a70: 4690 mov r8, r2
  19933. 8008a72: 461f mov r7, r3
  19934. 8008a74: d838 bhi.n 8008ae8 <__ssputs_r+0x84>
  19935. 8008a76: 898a ldrh r2, [r1, #12]
  19936. 8008a78: f412 6f90 tst.w r2, #1152 ; 0x480
  19937. 8008a7c: d032 beq.n 8008ae4 <__ssputs_r+0x80>
  19938. 8008a7e: 6825 ldr r5, [r4, #0]
  19939. 8008a80: 6909 ldr r1, [r1, #16]
  19940. 8008a82: 3301 adds r3, #1
  19941. 8008a84: eba5 0901 sub.w r9, r5, r1
  19942. 8008a88: 6965 ldr r5, [r4, #20]
  19943. 8008a8a: 444b add r3, r9
  19944. 8008a8c: eb05 0545 add.w r5, r5, r5, lsl #1
  19945. 8008a90: eb05 75d5 add.w r5, r5, r5, lsr #31
  19946. 8008a94: 106d asrs r5, r5, #1
  19947. 8008a96: 429d cmp r5, r3
  19948. 8008a98: bf38 it cc
  19949. 8008a9a: 461d movcc r5, r3
  19950. 8008a9c: 0553 lsls r3, r2, #21
  19951. 8008a9e: d531 bpl.n 8008b04 <__ssputs_r+0xa0>
  19952. 8008aa0: 4629 mov r1, r5
  19953. 8008aa2: f7ff ff85 bl 80089b0 <_malloc_r>
  19954. 8008aa6: 4606 mov r6, r0
  19955. 8008aa8: b950 cbnz r0, 8008ac0 <__ssputs_r+0x5c>
  19956. 8008aaa: 230c movs r3, #12
  19957. 8008aac: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  19958. 8008ab0: f8ca 3000 str.w r3, [sl]
  19959. 8008ab4: 89a3 ldrh r3, [r4, #12]
  19960. 8008ab6: f043 0340 orr.w r3, r3, #64 ; 0x40
  19961. 8008aba: 81a3 strh r3, [r4, #12]
  19962. 8008abc: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  19963. 8008ac0: 464a mov r2, r9
  19964. 8008ac2: 6921 ldr r1, [r4, #16]
  19965. 8008ac4: f7fe f850 bl 8006b68 <memcpy>
  19966. 8008ac8: 89a3 ldrh r3, [r4, #12]
  19967. 8008aca: f423 6390 bic.w r3, r3, #1152 ; 0x480
  19968. 8008ace: f043 0380 orr.w r3, r3, #128 ; 0x80
  19969. 8008ad2: 81a3 strh r3, [r4, #12]
  19970. 8008ad4: 6126 str r6, [r4, #16]
  19971. 8008ad6: 444e add r6, r9
  19972. 8008ad8: 6026 str r6, [r4, #0]
  19973. 8008ada: 463e mov r6, r7
  19974. 8008adc: 6165 str r5, [r4, #20]
  19975. 8008ade: eba5 0509 sub.w r5, r5, r9
  19976. 8008ae2: 60a5 str r5, [r4, #8]
  19977. 8008ae4: 42be cmp r6, r7
  19978. 8008ae6: d900 bls.n 8008aea <__ssputs_r+0x86>
  19979. 8008ae8: 463e mov r6, r7
  19980. 8008aea: 4632 mov r2, r6
  19981. 8008aec: 4641 mov r1, r8
  19982. 8008aee: 6820 ldr r0, [r4, #0]
  19983. 8008af0: f7fe f848 bl 8006b84 <memmove>
  19984. 8008af4: 68a3 ldr r3, [r4, #8]
  19985. 8008af6: 6822 ldr r2, [r4, #0]
  19986. 8008af8: 1b9b subs r3, r3, r6
  19987. 8008afa: 4432 add r2, r6
  19988. 8008afc: 2000 movs r0, #0
  19989. 8008afe: 60a3 str r3, [r4, #8]
  19990. 8008b00: 6022 str r2, [r4, #0]
  19991. 8008b02: e7db b.n 8008abc <__ssputs_r+0x58>
  19992. 8008b04: 462a mov r2, r5
  19993. 8008b06: f000 f967 bl 8008dd8 <_realloc_r>
  19994. 8008b0a: 4606 mov r6, r0
  19995. 8008b0c: 2800 cmp r0, #0
  19996. 8008b0e: d1e1 bne.n 8008ad4 <__ssputs_r+0x70>
  19997. 8008b10: 4650 mov r0, sl
  19998. 8008b12: 6921 ldr r1, [r4, #16]
  19999. 8008b14: f7ff ff00 bl 8008918 <_free_r>
  20000. 8008b18: e7c7 b.n 8008aaa <__ssputs_r+0x46>
  20001. ...
  20002. 08008b1c <_svfiprintf_r>:
  20003. 8008b1c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  20004. 8008b20: 4698 mov r8, r3
  20005. 8008b22: 898b ldrh r3, [r1, #12]
  20006. 8008b24: 4607 mov r7, r0
  20007. 8008b26: 061b lsls r3, r3, #24
  20008. 8008b28: 460d mov r5, r1
  20009. 8008b2a: 4614 mov r4, r2
  20010. 8008b2c: b09d sub sp, #116 ; 0x74
  20011. 8008b2e: d50e bpl.n 8008b4e <_svfiprintf_r+0x32>
  20012. 8008b30: 690b ldr r3, [r1, #16]
  20013. 8008b32: b963 cbnz r3, 8008b4e <_svfiprintf_r+0x32>
  20014. 8008b34: 2140 movs r1, #64 ; 0x40
  20015. 8008b36: f7ff ff3b bl 80089b0 <_malloc_r>
  20016. 8008b3a: 6028 str r0, [r5, #0]
  20017. 8008b3c: 6128 str r0, [r5, #16]
  20018. 8008b3e: b920 cbnz r0, 8008b4a <_svfiprintf_r+0x2e>
  20019. 8008b40: 230c movs r3, #12
  20020. 8008b42: 603b str r3, [r7, #0]
  20021. 8008b44: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  20022. 8008b48: e0d1 b.n 8008cee <_svfiprintf_r+0x1d2>
  20023. 8008b4a: 2340 movs r3, #64 ; 0x40
  20024. 8008b4c: 616b str r3, [r5, #20]
  20025. 8008b4e: 2300 movs r3, #0
  20026. 8008b50: 9309 str r3, [sp, #36] ; 0x24
  20027. 8008b52: 2320 movs r3, #32
  20028. 8008b54: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  20029. 8008b58: 2330 movs r3, #48 ; 0x30
  20030. 8008b5a: f04f 0901 mov.w r9, #1
  20031. 8008b5e: f8cd 800c str.w r8, [sp, #12]
  20032. 8008b62: f8df 81a4 ldr.w r8, [pc, #420] ; 8008d08 <_svfiprintf_r+0x1ec>
  20033. 8008b66: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  20034. 8008b6a: 4623 mov r3, r4
  20035. 8008b6c: 469a mov sl, r3
  20036. 8008b6e: f813 2b01 ldrb.w r2, [r3], #1
  20037. 8008b72: b10a cbz r2, 8008b78 <_svfiprintf_r+0x5c>
  20038. 8008b74: 2a25 cmp r2, #37 ; 0x25
  20039. 8008b76: d1f9 bne.n 8008b6c <_svfiprintf_r+0x50>
  20040. 8008b78: ebba 0b04 subs.w fp, sl, r4
  20041. 8008b7c: d00b beq.n 8008b96 <_svfiprintf_r+0x7a>
  20042. 8008b7e: 465b mov r3, fp
  20043. 8008b80: 4622 mov r2, r4
  20044. 8008b82: 4629 mov r1, r5
  20045. 8008b84: 4638 mov r0, r7
  20046. 8008b86: f7ff ff6d bl 8008a64 <__ssputs_r>
  20047. 8008b8a: 3001 adds r0, #1
  20048. 8008b8c: f000 80aa beq.w 8008ce4 <_svfiprintf_r+0x1c8>
  20049. 8008b90: 9a09 ldr r2, [sp, #36] ; 0x24
  20050. 8008b92: 445a add r2, fp
  20051. 8008b94: 9209 str r2, [sp, #36] ; 0x24
  20052. 8008b96: f89a 3000 ldrb.w r3, [sl]
  20053. 8008b9a: 2b00 cmp r3, #0
  20054. 8008b9c: f000 80a2 beq.w 8008ce4 <_svfiprintf_r+0x1c8>
  20055. 8008ba0: 2300 movs r3, #0
  20056. 8008ba2: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  20057. 8008ba6: e9cd 2305 strd r2, r3, [sp, #20]
  20058. 8008baa: f10a 0a01 add.w sl, sl, #1
  20059. 8008bae: 9304 str r3, [sp, #16]
  20060. 8008bb0: 9307 str r3, [sp, #28]
  20061. 8008bb2: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  20062. 8008bb6: 931a str r3, [sp, #104] ; 0x68
  20063. 8008bb8: 4654 mov r4, sl
  20064. 8008bba: 2205 movs r2, #5
  20065. 8008bbc: f814 1b01 ldrb.w r1, [r4], #1
  20066. 8008bc0: 4851 ldr r0, [pc, #324] ; (8008d08 <_svfiprintf_r+0x1ec>)
  20067. 8008bc2: f7ff fb0b bl 80081dc <memchr>
  20068. 8008bc6: 9a04 ldr r2, [sp, #16]
  20069. 8008bc8: b9d8 cbnz r0, 8008c02 <_svfiprintf_r+0xe6>
  20070. 8008bca: 06d0 lsls r0, r2, #27
  20071. 8008bcc: bf44 itt mi
  20072. 8008bce: 2320 movmi r3, #32
  20073. 8008bd0: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  20074. 8008bd4: 0711 lsls r1, r2, #28
  20075. 8008bd6: bf44 itt mi
  20076. 8008bd8: 232b movmi r3, #43 ; 0x2b
  20077. 8008bda: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  20078. 8008bde: f89a 3000 ldrb.w r3, [sl]
  20079. 8008be2: 2b2a cmp r3, #42 ; 0x2a
  20080. 8008be4: d015 beq.n 8008c12 <_svfiprintf_r+0xf6>
  20081. 8008be6: 4654 mov r4, sl
  20082. 8008be8: 2000 movs r0, #0
  20083. 8008bea: f04f 0c0a mov.w ip, #10
  20084. 8008bee: 9a07 ldr r2, [sp, #28]
  20085. 8008bf0: 4621 mov r1, r4
  20086. 8008bf2: f811 3b01 ldrb.w r3, [r1], #1
  20087. 8008bf6: 3b30 subs r3, #48 ; 0x30
  20088. 8008bf8: 2b09 cmp r3, #9
  20089. 8008bfa: d94e bls.n 8008c9a <_svfiprintf_r+0x17e>
  20090. 8008bfc: b1b0 cbz r0, 8008c2c <_svfiprintf_r+0x110>
  20091. 8008bfe: 9207 str r2, [sp, #28]
  20092. 8008c00: e014 b.n 8008c2c <_svfiprintf_r+0x110>
  20093. 8008c02: eba0 0308 sub.w r3, r0, r8
  20094. 8008c06: fa09 f303 lsl.w r3, r9, r3
  20095. 8008c0a: 4313 orrs r3, r2
  20096. 8008c0c: 46a2 mov sl, r4
  20097. 8008c0e: 9304 str r3, [sp, #16]
  20098. 8008c10: e7d2 b.n 8008bb8 <_svfiprintf_r+0x9c>
  20099. 8008c12: 9b03 ldr r3, [sp, #12]
  20100. 8008c14: 1d19 adds r1, r3, #4
  20101. 8008c16: 681b ldr r3, [r3, #0]
  20102. 8008c18: 9103 str r1, [sp, #12]
  20103. 8008c1a: 2b00 cmp r3, #0
  20104. 8008c1c: bfbb ittet lt
  20105. 8008c1e: 425b neglt r3, r3
  20106. 8008c20: f042 0202 orrlt.w r2, r2, #2
  20107. 8008c24: 9307 strge r3, [sp, #28]
  20108. 8008c26: 9307 strlt r3, [sp, #28]
  20109. 8008c28: bfb8 it lt
  20110. 8008c2a: 9204 strlt r2, [sp, #16]
  20111. 8008c2c: 7823 ldrb r3, [r4, #0]
  20112. 8008c2e: 2b2e cmp r3, #46 ; 0x2e
  20113. 8008c30: d10c bne.n 8008c4c <_svfiprintf_r+0x130>
  20114. 8008c32: 7863 ldrb r3, [r4, #1]
  20115. 8008c34: 2b2a cmp r3, #42 ; 0x2a
  20116. 8008c36: d135 bne.n 8008ca4 <_svfiprintf_r+0x188>
  20117. 8008c38: 9b03 ldr r3, [sp, #12]
  20118. 8008c3a: 3402 adds r4, #2
  20119. 8008c3c: 1d1a adds r2, r3, #4
  20120. 8008c3e: 681b ldr r3, [r3, #0]
  20121. 8008c40: 9203 str r2, [sp, #12]
  20122. 8008c42: 2b00 cmp r3, #0
  20123. 8008c44: bfb8 it lt
  20124. 8008c46: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff
  20125. 8008c4a: 9305 str r3, [sp, #20]
  20126. 8008c4c: f8df a0c8 ldr.w sl, [pc, #200] ; 8008d18 <_svfiprintf_r+0x1fc>
  20127. 8008c50: 2203 movs r2, #3
  20128. 8008c52: 4650 mov r0, sl
  20129. 8008c54: 7821 ldrb r1, [r4, #0]
  20130. 8008c56: f7ff fac1 bl 80081dc <memchr>
  20131. 8008c5a: b140 cbz r0, 8008c6e <_svfiprintf_r+0x152>
  20132. 8008c5c: 2340 movs r3, #64 ; 0x40
  20133. 8008c5e: eba0 000a sub.w r0, r0, sl
  20134. 8008c62: fa03 f000 lsl.w r0, r3, r0
  20135. 8008c66: 9b04 ldr r3, [sp, #16]
  20136. 8008c68: 3401 adds r4, #1
  20137. 8008c6a: 4303 orrs r3, r0
  20138. 8008c6c: 9304 str r3, [sp, #16]
  20139. 8008c6e: f814 1b01 ldrb.w r1, [r4], #1
  20140. 8008c72: 2206 movs r2, #6
  20141. 8008c74: 4825 ldr r0, [pc, #148] ; (8008d0c <_svfiprintf_r+0x1f0>)
  20142. 8008c76: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  20143. 8008c7a: f7ff faaf bl 80081dc <memchr>
  20144. 8008c7e: 2800 cmp r0, #0
  20145. 8008c80: d038 beq.n 8008cf4 <_svfiprintf_r+0x1d8>
  20146. 8008c82: 4b23 ldr r3, [pc, #140] ; (8008d10 <_svfiprintf_r+0x1f4>)
  20147. 8008c84: bb1b cbnz r3, 8008cce <_svfiprintf_r+0x1b2>
  20148. 8008c86: 9b03 ldr r3, [sp, #12]
  20149. 8008c88: 3307 adds r3, #7
  20150. 8008c8a: f023 0307 bic.w r3, r3, #7
  20151. 8008c8e: 3308 adds r3, #8
  20152. 8008c90: 9303 str r3, [sp, #12]
  20153. 8008c92: 9b09 ldr r3, [sp, #36] ; 0x24
  20154. 8008c94: 4433 add r3, r6
  20155. 8008c96: 9309 str r3, [sp, #36] ; 0x24
  20156. 8008c98: e767 b.n 8008b6a <_svfiprintf_r+0x4e>
  20157. 8008c9a: 460c mov r4, r1
  20158. 8008c9c: 2001 movs r0, #1
  20159. 8008c9e: fb0c 3202 mla r2, ip, r2, r3
  20160. 8008ca2: e7a5 b.n 8008bf0 <_svfiprintf_r+0xd4>
  20161. 8008ca4: 2300 movs r3, #0
  20162. 8008ca6: f04f 0c0a mov.w ip, #10
  20163. 8008caa: 4619 mov r1, r3
  20164. 8008cac: 3401 adds r4, #1
  20165. 8008cae: 9305 str r3, [sp, #20]
  20166. 8008cb0: 4620 mov r0, r4
  20167. 8008cb2: f810 2b01 ldrb.w r2, [r0], #1
  20168. 8008cb6: 3a30 subs r2, #48 ; 0x30
  20169. 8008cb8: 2a09 cmp r2, #9
  20170. 8008cba: d903 bls.n 8008cc4 <_svfiprintf_r+0x1a8>
  20171. 8008cbc: 2b00 cmp r3, #0
  20172. 8008cbe: d0c5 beq.n 8008c4c <_svfiprintf_r+0x130>
  20173. 8008cc0: 9105 str r1, [sp, #20]
  20174. 8008cc2: e7c3 b.n 8008c4c <_svfiprintf_r+0x130>
  20175. 8008cc4: 4604 mov r4, r0
  20176. 8008cc6: 2301 movs r3, #1
  20177. 8008cc8: fb0c 2101 mla r1, ip, r1, r2
  20178. 8008ccc: e7f0 b.n 8008cb0 <_svfiprintf_r+0x194>
  20179. 8008cce: ab03 add r3, sp, #12
  20180. 8008cd0: 9300 str r3, [sp, #0]
  20181. 8008cd2: 462a mov r2, r5
  20182. 8008cd4: 4638 mov r0, r7
  20183. 8008cd6: 4b0f ldr r3, [pc, #60] ; (8008d14 <_svfiprintf_r+0x1f8>)
  20184. 8008cd8: a904 add r1, sp, #16
  20185. 8008cda: f7fe f813 bl 8006d04 <_printf_float>
  20186. 8008cde: 1c42 adds r2, r0, #1
  20187. 8008ce0: 4606 mov r6, r0
  20188. 8008ce2: d1d6 bne.n 8008c92 <_svfiprintf_r+0x176>
  20189. 8008ce4: 89ab ldrh r3, [r5, #12]
  20190. 8008ce6: 065b lsls r3, r3, #25
  20191. 8008ce8: f53f af2c bmi.w 8008b44 <_svfiprintf_r+0x28>
  20192. 8008cec: 9809 ldr r0, [sp, #36] ; 0x24
  20193. 8008cee: b01d add sp, #116 ; 0x74
  20194. 8008cf0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  20195. 8008cf4: ab03 add r3, sp, #12
  20196. 8008cf6: 9300 str r3, [sp, #0]
  20197. 8008cf8: 462a mov r2, r5
  20198. 8008cfa: 4638 mov r0, r7
  20199. 8008cfc: 4b05 ldr r3, [pc, #20] ; (8008d14 <_svfiprintf_r+0x1f8>)
  20200. 8008cfe: a904 add r1, sp, #16
  20201. 8008d00: f7fe fa9c bl 800723c <_printf_i>
  20202. 8008d04: e7eb b.n 8008cde <_svfiprintf_r+0x1c2>
  20203. 8008d06: bf00 nop
  20204. 8008d08: 0800a87c .word 0x0800a87c
  20205. 8008d0c: 0800a886 .word 0x0800a886
  20206. 8008d10: 08006d05 .word 0x08006d05
  20207. 8008d14: 08008a65 .word 0x08008a65
  20208. 8008d18: 0800a882 .word 0x0800a882
  20209. 08008d1c <_sbrk_r>:
  20210. 8008d1c: b538 push {r3, r4, r5, lr}
  20211. 8008d1e: 2300 movs r3, #0
  20212. 8008d20: 4d05 ldr r5, [pc, #20] ; (8008d38 <_sbrk_r+0x1c>)
  20213. 8008d22: 4604 mov r4, r0
  20214. 8008d24: 4608 mov r0, r1
  20215. 8008d26: 602b str r3, [r5, #0]
  20216. 8008d28: f7f9 fac8 bl 80022bc <_sbrk>
  20217. 8008d2c: 1c43 adds r3, r0, #1
  20218. 8008d2e: d102 bne.n 8008d36 <_sbrk_r+0x1a>
  20219. 8008d30: 682b ldr r3, [r5, #0]
  20220. 8008d32: b103 cbz r3, 8008d36 <_sbrk_r+0x1a>
  20221. 8008d34: 6023 str r3, [r4, #0]
  20222. 8008d36: bd38 pop {r3, r4, r5, pc}
  20223. 8008d38: 200006f4 .word 0x200006f4
  20224. 08008d3c <__assert_func>:
  20225. 8008d3c: b51f push {r0, r1, r2, r3, r4, lr}
  20226. 8008d3e: 4614 mov r4, r2
  20227. 8008d40: 461a mov r2, r3
  20228. 8008d42: 4b09 ldr r3, [pc, #36] ; (8008d68 <__assert_func+0x2c>)
  20229. 8008d44: 4605 mov r5, r0
  20230. 8008d46: 681b ldr r3, [r3, #0]
  20231. 8008d48: 68d8 ldr r0, [r3, #12]
  20232. 8008d4a: b14c cbz r4, 8008d60 <__assert_func+0x24>
  20233. 8008d4c: 4b07 ldr r3, [pc, #28] ; (8008d6c <__assert_func+0x30>)
  20234. 8008d4e: e9cd 3401 strd r3, r4, [sp, #4]
  20235. 8008d52: 9100 str r1, [sp, #0]
  20236. 8008d54: 462b mov r3, r5
  20237. 8008d56: 4906 ldr r1, [pc, #24] ; (8008d70 <__assert_func+0x34>)
  20238. 8008d58: f000 f80e bl 8008d78 <fiprintf>
  20239. 8008d5c: f000 fa88 bl 8009270 <abort>
  20240. 8008d60: 4b04 ldr r3, [pc, #16] ; (8008d74 <__assert_func+0x38>)
  20241. 8008d62: 461c mov r4, r3
  20242. 8008d64: e7f3 b.n 8008d4e <__assert_func+0x12>
  20243. 8008d66: bf00 nop
  20244. 8008d68: 20000014 .word 0x20000014
  20245. 8008d6c: 0800a88d .word 0x0800a88d
  20246. 8008d70: 0800a89a .word 0x0800a89a
  20247. 8008d74: 0800a8c8 .word 0x0800a8c8
  20248. 08008d78 <fiprintf>:
  20249. 8008d78: b40e push {r1, r2, r3}
  20250. 8008d7a: b503 push {r0, r1, lr}
  20251. 8008d7c: 4601 mov r1, r0
  20252. 8008d7e: ab03 add r3, sp, #12
  20253. 8008d80: 4805 ldr r0, [pc, #20] ; (8008d98 <fiprintf+0x20>)
  20254. 8008d82: f853 2b04 ldr.w r2, [r3], #4
  20255. 8008d86: 6800 ldr r0, [r0, #0]
  20256. 8008d88: 9301 str r3, [sp, #4]
  20257. 8008d8a: f000 f873 bl 8008e74 <_vfiprintf_r>
  20258. 8008d8e: b002 add sp, #8
  20259. 8008d90: f85d eb04 ldr.w lr, [sp], #4
  20260. 8008d94: b003 add sp, #12
  20261. 8008d96: 4770 bx lr
  20262. 8008d98: 20000014 .word 0x20000014
  20263. 08008d9c <__ascii_mbtowc>:
  20264. 8008d9c: b082 sub sp, #8
  20265. 8008d9e: b901 cbnz r1, 8008da2 <__ascii_mbtowc+0x6>
  20266. 8008da0: a901 add r1, sp, #4
  20267. 8008da2: b142 cbz r2, 8008db6 <__ascii_mbtowc+0x1a>
  20268. 8008da4: b14b cbz r3, 8008dba <__ascii_mbtowc+0x1e>
  20269. 8008da6: 7813 ldrb r3, [r2, #0]
  20270. 8008da8: 600b str r3, [r1, #0]
  20271. 8008daa: 7812 ldrb r2, [r2, #0]
  20272. 8008dac: 1e10 subs r0, r2, #0
  20273. 8008dae: bf18 it ne
  20274. 8008db0: 2001 movne r0, #1
  20275. 8008db2: b002 add sp, #8
  20276. 8008db4: 4770 bx lr
  20277. 8008db6: 4610 mov r0, r2
  20278. 8008db8: e7fb b.n 8008db2 <__ascii_mbtowc+0x16>
  20279. 8008dba: f06f 0001 mvn.w r0, #1
  20280. 8008dbe: e7f8 b.n 8008db2 <__ascii_mbtowc+0x16>
  20281. 08008dc0 <__malloc_lock>:
  20282. 8008dc0: 4801 ldr r0, [pc, #4] ; (8008dc8 <__malloc_lock+0x8>)
  20283. 8008dc2: f000 bc15 b.w 80095f0 <__retarget_lock_acquire_recursive>
  20284. 8008dc6: bf00 nop
  20285. 8008dc8: 200006fc .word 0x200006fc
  20286. 08008dcc <__malloc_unlock>:
  20287. 8008dcc: 4801 ldr r0, [pc, #4] ; (8008dd4 <__malloc_unlock+0x8>)
  20288. 8008dce: f000 bc10 b.w 80095f2 <__retarget_lock_release_recursive>
  20289. 8008dd2: bf00 nop
  20290. 8008dd4: 200006fc .word 0x200006fc
  20291. 08008dd8 <_realloc_r>:
  20292. 8008dd8: b5f8 push {r3, r4, r5, r6, r7, lr}
  20293. 8008dda: 4607 mov r7, r0
  20294. 8008ddc: 4614 mov r4, r2
  20295. 8008dde: 460e mov r6, r1
  20296. 8008de0: b921 cbnz r1, 8008dec <_realloc_r+0x14>
  20297. 8008de2: 4611 mov r1, r2
  20298. 8008de4: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr}
  20299. 8008de8: f7ff bde2 b.w 80089b0 <_malloc_r>
  20300. 8008dec: b922 cbnz r2, 8008df8 <_realloc_r+0x20>
  20301. 8008dee: f7ff fd93 bl 8008918 <_free_r>
  20302. 8008df2: 4625 mov r5, r4
  20303. 8008df4: 4628 mov r0, r5
  20304. 8008df6: bdf8 pop {r3, r4, r5, r6, r7, pc}
  20305. 8008df8: f000 fc60 bl 80096bc <_malloc_usable_size_r>
  20306. 8008dfc: 42a0 cmp r0, r4
  20307. 8008dfe: d20f bcs.n 8008e20 <_realloc_r+0x48>
  20308. 8008e00: 4621 mov r1, r4
  20309. 8008e02: 4638 mov r0, r7
  20310. 8008e04: f7ff fdd4 bl 80089b0 <_malloc_r>
  20311. 8008e08: 4605 mov r5, r0
  20312. 8008e0a: 2800 cmp r0, #0
  20313. 8008e0c: d0f2 beq.n 8008df4 <_realloc_r+0x1c>
  20314. 8008e0e: 4631 mov r1, r6
  20315. 8008e10: 4622 mov r2, r4
  20316. 8008e12: f7fd fea9 bl 8006b68 <memcpy>
  20317. 8008e16: 4631 mov r1, r6
  20318. 8008e18: 4638 mov r0, r7
  20319. 8008e1a: f7ff fd7d bl 8008918 <_free_r>
  20320. 8008e1e: e7e9 b.n 8008df4 <_realloc_r+0x1c>
  20321. 8008e20: 4635 mov r5, r6
  20322. 8008e22: e7e7 b.n 8008df4 <_realloc_r+0x1c>
  20323. 08008e24 <__sfputc_r>:
  20324. 8008e24: 6893 ldr r3, [r2, #8]
  20325. 8008e26: b410 push {r4}
  20326. 8008e28: 3b01 subs r3, #1
  20327. 8008e2a: 2b00 cmp r3, #0
  20328. 8008e2c: 6093 str r3, [r2, #8]
  20329. 8008e2e: da07 bge.n 8008e40 <__sfputc_r+0x1c>
  20330. 8008e30: 6994 ldr r4, [r2, #24]
  20331. 8008e32: 42a3 cmp r3, r4
  20332. 8008e34: db01 blt.n 8008e3a <__sfputc_r+0x16>
  20333. 8008e36: 290a cmp r1, #10
  20334. 8008e38: d102 bne.n 8008e40 <__sfputc_r+0x1c>
  20335. 8008e3a: bc10 pop {r4}
  20336. 8008e3c: f000 b94a b.w 80090d4 <__swbuf_r>
  20337. 8008e40: 6813 ldr r3, [r2, #0]
  20338. 8008e42: 1c58 adds r0, r3, #1
  20339. 8008e44: 6010 str r0, [r2, #0]
  20340. 8008e46: 7019 strb r1, [r3, #0]
  20341. 8008e48: 4608 mov r0, r1
  20342. 8008e4a: bc10 pop {r4}
  20343. 8008e4c: 4770 bx lr
  20344. 08008e4e <__sfputs_r>:
  20345. 8008e4e: b5f8 push {r3, r4, r5, r6, r7, lr}
  20346. 8008e50: 4606 mov r6, r0
  20347. 8008e52: 460f mov r7, r1
  20348. 8008e54: 4614 mov r4, r2
  20349. 8008e56: 18d5 adds r5, r2, r3
  20350. 8008e58: 42ac cmp r4, r5
  20351. 8008e5a: d101 bne.n 8008e60 <__sfputs_r+0x12>
  20352. 8008e5c: 2000 movs r0, #0
  20353. 8008e5e: e007 b.n 8008e70 <__sfputs_r+0x22>
  20354. 8008e60: 463a mov r2, r7
  20355. 8008e62: 4630 mov r0, r6
  20356. 8008e64: f814 1b01 ldrb.w r1, [r4], #1
  20357. 8008e68: f7ff ffdc bl 8008e24 <__sfputc_r>
  20358. 8008e6c: 1c43 adds r3, r0, #1
  20359. 8008e6e: d1f3 bne.n 8008e58 <__sfputs_r+0xa>
  20360. 8008e70: bdf8 pop {r3, r4, r5, r6, r7, pc}
  20361. ...
  20362. 08008e74 <_vfiprintf_r>:
  20363. 8008e74: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  20364. 8008e78: 460d mov r5, r1
  20365. 8008e7a: 4614 mov r4, r2
  20366. 8008e7c: 4698 mov r8, r3
  20367. 8008e7e: 4606 mov r6, r0
  20368. 8008e80: b09d sub sp, #116 ; 0x74
  20369. 8008e82: b118 cbz r0, 8008e8c <_vfiprintf_r+0x18>
  20370. 8008e84: 6983 ldr r3, [r0, #24]
  20371. 8008e86: b90b cbnz r3, 8008e8c <_vfiprintf_r+0x18>
  20372. 8008e88: f000 fb14 bl 80094b4 <__sinit>
  20373. 8008e8c: 4b89 ldr r3, [pc, #548] ; (80090b4 <_vfiprintf_r+0x240>)
  20374. 8008e8e: 429d cmp r5, r3
  20375. 8008e90: d11b bne.n 8008eca <_vfiprintf_r+0x56>
  20376. 8008e92: 6875 ldr r5, [r6, #4]
  20377. 8008e94: 6e6b ldr r3, [r5, #100] ; 0x64
  20378. 8008e96: 07d9 lsls r1, r3, #31
  20379. 8008e98: d405 bmi.n 8008ea6 <_vfiprintf_r+0x32>
  20380. 8008e9a: 89ab ldrh r3, [r5, #12]
  20381. 8008e9c: 059a lsls r2, r3, #22
  20382. 8008e9e: d402 bmi.n 8008ea6 <_vfiprintf_r+0x32>
  20383. 8008ea0: 6da8 ldr r0, [r5, #88] ; 0x58
  20384. 8008ea2: f000 fba5 bl 80095f0 <__retarget_lock_acquire_recursive>
  20385. 8008ea6: 89ab ldrh r3, [r5, #12]
  20386. 8008ea8: 071b lsls r3, r3, #28
  20387. 8008eaa: d501 bpl.n 8008eb0 <_vfiprintf_r+0x3c>
  20388. 8008eac: 692b ldr r3, [r5, #16]
  20389. 8008eae: b9eb cbnz r3, 8008eec <_vfiprintf_r+0x78>
  20390. 8008eb0: 4629 mov r1, r5
  20391. 8008eb2: 4630 mov r0, r6
  20392. 8008eb4: f000 f96e bl 8009194 <__swsetup_r>
  20393. 8008eb8: b1c0 cbz r0, 8008eec <_vfiprintf_r+0x78>
  20394. 8008eba: 6e6b ldr r3, [r5, #100] ; 0x64
  20395. 8008ebc: 07dc lsls r4, r3, #31
  20396. 8008ebe: d50e bpl.n 8008ede <_vfiprintf_r+0x6a>
  20397. 8008ec0: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  20398. 8008ec4: b01d add sp, #116 ; 0x74
  20399. 8008ec6: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  20400. 8008eca: 4b7b ldr r3, [pc, #492] ; (80090b8 <_vfiprintf_r+0x244>)
  20401. 8008ecc: 429d cmp r5, r3
  20402. 8008ece: d101 bne.n 8008ed4 <_vfiprintf_r+0x60>
  20403. 8008ed0: 68b5 ldr r5, [r6, #8]
  20404. 8008ed2: e7df b.n 8008e94 <_vfiprintf_r+0x20>
  20405. 8008ed4: 4b79 ldr r3, [pc, #484] ; (80090bc <_vfiprintf_r+0x248>)
  20406. 8008ed6: 429d cmp r5, r3
  20407. 8008ed8: bf08 it eq
  20408. 8008eda: 68f5 ldreq r5, [r6, #12]
  20409. 8008edc: e7da b.n 8008e94 <_vfiprintf_r+0x20>
  20410. 8008ede: 89ab ldrh r3, [r5, #12]
  20411. 8008ee0: 0598 lsls r0, r3, #22
  20412. 8008ee2: d4ed bmi.n 8008ec0 <_vfiprintf_r+0x4c>
  20413. 8008ee4: 6da8 ldr r0, [r5, #88] ; 0x58
  20414. 8008ee6: f000 fb84 bl 80095f2 <__retarget_lock_release_recursive>
  20415. 8008eea: e7e9 b.n 8008ec0 <_vfiprintf_r+0x4c>
  20416. 8008eec: 2300 movs r3, #0
  20417. 8008eee: 9309 str r3, [sp, #36] ; 0x24
  20418. 8008ef0: 2320 movs r3, #32
  20419. 8008ef2: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  20420. 8008ef6: 2330 movs r3, #48 ; 0x30
  20421. 8008ef8: f04f 0901 mov.w r9, #1
  20422. 8008efc: f8cd 800c str.w r8, [sp, #12]
  20423. 8008f00: f8df 81bc ldr.w r8, [pc, #444] ; 80090c0 <_vfiprintf_r+0x24c>
  20424. 8008f04: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  20425. 8008f08: 4623 mov r3, r4
  20426. 8008f0a: 469a mov sl, r3
  20427. 8008f0c: f813 2b01 ldrb.w r2, [r3], #1
  20428. 8008f10: b10a cbz r2, 8008f16 <_vfiprintf_r+0xa2>
  20429. 8008f12: 2a25 cmp r2, #37 ; 0x25
  20430. 8008f14: d1f9 bne.n 8008f0a <_vfiprintf_r+0x96>
  20431. 8008f16: ebba 0b04 subs.w fp, sl, r4
  20432. 8008f1a: d00b beq.n 8008f34 <_vfiprintf_r+0xc0>
  20433. 8008f1c: 465b mov r3, fp
  20434. 8008f1e: 4622 mov r2, r4
  20435. 8008f20: 4629 mov r1, r5
  20436. 8008f22: 4630 mov r0, r6
  20437. 8008f24: f7ff ff93 bl 8008e4e <__sfputs_r>
  20438. 8008f28: 3001 adds r0, #1
  20439. 8008f2a: f000 80aa beq.w 8009082 <_vfiprintf_r+0x20e>
  20440. 8008f2e: 9a09 ldr r2, [sp, #36] ; 0x24
  20441. 8008f30: 445a add r2, fp
  20442. 8008f32: 9209 str r2, [sp, #36] ; 0x24
  20443. 8008f34: f89a 3000 ldrb.w r3, [sl]
  20444. 8008f38: 2b00 cmp r3, #0
  20445. 8008f3a: f000 80a2 beq.w 8009082 <_vfiprintf_r+0x20e>
  20446. 8008f3e: 2300 movs r3, #0
  20447. 8008f40: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  20448. 8008f44: e9cd 2305 strd r2, r3, [sp, #20]
  20449. 8008f48: f10a 0a01 add.w sl, sl, #1
  20450. 8008f4c: 9304 str r3, [sp, #16]
  20451. 8008f4e: 9307 str r3, [sp, #28]
  20452. 8008f50: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  20453. 8008f54: 931a str r3, [sp, #104] ; 0x68
  20454. 8008f56: 4654 mov r4, sl
  20455. 8008f58: 2205 movs r2, #5
  20456. 8008f5a: f814 1b01 ldrb.w r1, [r4], #1
  20457. 8008f5e: 4858 ldr r0, [pc, #352] ; (80090c0 <_vfiprintf_r+0x24c>)
  20458. 8008f60: f7ff f93c bl 80081dc <memchr>
  20459. 8008f64: 9a04 ldr r2, [sp, #16]
  20460. 8008f66: b9d8 cbnz r0, 8008fa0 <_vfiprintf_r+0x12c>
  20461. 8008f68: 06d1 lsls r1, r2, #27
  20462. 8008f6a: bf44 itt mi
  20463. 8008f6c: 2320 movmi r3, #32
  20464. 8008f6e: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  20465. 8008f72: 0713 lsls r3, r2, #28
  20466. 8008f74: bf44 itt mi
  20467. 8008f76: 232b movmi r3, #43 ; 0x2b
  20468. 8008f78: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  20469. 8008f7c: f89a 3000 ldrb.w r3, [sl]
  20470. 8008f80: 2b2a cmp r3, #42 ; 0x2a
  20471. 8008f82: d015 beq.n 8008fb0 <_vfiprintf_r+0x13c>
  20472. 8008f84: 4654 mov r4, sl
  20473. 8008f86: 2000 movs r0, #0
  20474. 8008f88: f04f 0c0a mov.w ip, #10
  20475. 8008f8c: 9a07 ldr r2, [sp, #28]
  20476. 8008f8e: 4621 mov r1, r4
  20477. 8008f90: f811 3b01 ldrb.w r3, [r1], #1
  20478. 8008f94: 3b30 subs r3, #48 ; 0x30
  20479. 8008f96: 2b09 cmp r3, #9
  20480. 8008f98: d94e bls.n 8009038 <_vfiprintf_r+0x1c4>
  20481. 8008f9a: b1b0 cbz r0, 8008fca <_vfiprintf_r+0x156>
  20482. 8008f9c: 9207 str r2, [sp, #28]
  20483. 8008f9e: e014 b.n 8008fca <_vfiprintf_r+0x156>
  20484. 8008fa0: eba0 0308 sub.w r3, r0, r8
  20485. 8008fa4: fa09 f303 lsl.w r3, r9, r3
  20486. 8008fa8: 4313 orrs r3, r2
  20487. 8008faa: 46a2 mov sl, r4
  20488. 8008fac: 9304 str r3, [sp, #16]
  20489. 8008fae: e7d2 b.n 8008f56 <_vfiprintf_r+0xe2>
  20490. 8008fb0: 9b03 ldr r3, [sp, #12]
  20491. 8008fb2: 1d19 adds r1, r3, #4
  20492. 8008fb4: 681b ldr r3, [r3, #0]
  20493. 8008fb6: 9103 str r1, [sp, #12]
  20494. 8008fb8: 2b00 cmp r3, #0
  20495. 8008fba: bfbb ittet lt
  20496. 8008fbc: 425b neglt r3, r3
  20497. 8008fbe: f042 0202 orrlt.w r2, r2, #2
  20498. 8008fc2: 9307 strge r3, [sp, #28]
  20499. 8008fc4: 9307 strlt r3, [sp, #28]
  20500. 8008fc6: bfb8 it lt
  20501. 8008fc8: 9204 strlt r2, [sp, #16]
  20502. 8008fca: 7823 ldrb r3, [r4, #0]
  20503. 8008fcc: 2b2e cmp r3, #46 ; 0x2e
  20504. 8008fce: d10c bne.n 8008fea <_vfiprintf_r+0x176>
  20505. 8008fd0: 7863 ldrb r3, [r4, #1]
  20506. 8008fd2: 2b2a cmp r3, #42 ; 0x2a
  20507. 8008fd4: d135 bne.n 8009042 <_vfiprintf_r+0x1ce>
  20508. 8008fd6: 9b03 ldr r3, [sp, #12]
  20509. 8008fd8: 3402 adds r4, #2
  20510. 8008fda: 1d1a adds r2, r3, #4
  20511. 8008fdc: 681b ldr r3, [r3, #0]
  20512. 8008fde: 9203 str r2, [sp, #12]
  20513. 8008fe0: 2b00 cmp r3, #0
  20514. 8008fe2: bfb8 it lt
  20515. 8008fe4: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff
  20516. 8008fe8: 9305 str r3, [sp, #20]
  20517. 8008fea: f8df a0e4 ldr.w sl, [pc, #228] ; 80090d0 <_vfiprintf_r+0x25c>
  20518. 8008fee: 2203 movs r2, #3
  20519. 8008ff0: 4650 mov r0, sl
  20520. 8008ff2: 7821 ldrb r1, [r4, #0]
  20521. 8008ff4: f7ff f8f2 bl 80081dc <memchr>
  20522. 8008ff8: b140 cbz r0, 800900c <_vfiprintf_r+0x198>
  20523. 8008ffa: 2340 movs r3, #64 ; 0x40
  20524. 8008ffc: eba0 000a sub.w r0, r0, sl
  20525. 8009000: fa03 f000 lsl.w r0, r3, r0
  20526. 8009004: 9b04 ldr r3, [sp, #16]
  20527. 8009006: 3401 adds r4, #1
  20528. 8009008: 4303 orrs r3, r0
  20529. 800900a: 9304 str r3, [sp, #16]
  20530. 800900c: f814 1b01 ldrb.w r1, [r4], #1
  20531. 8009010: 2206 movs r2, #6
  20532. 8009012: 482c ldr r0, [pc, #176] ; (80090c4 <_vfiprintf_r+0x250>)
  20533. 8009014: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  20534. 8009018: f7ff f8e0 bl 80081dc <memchr>
  20535. 800901c: 2800 cmp r0, #0
  20536. 800901e: d03f beq.n 80090a0 <_vfiprintf_r+0x22c>
  20537. 8009020: 4b29 ldr r3, [pc, #164] ; (80090c8 <_vfiprintf_r+0x254>)
  20538. 8009022: bb1b cbnz r3, 800906c <_vfiprintf_r+0x1f8>
  20539. 8009024: 9b03 ldr r3, [sp, #12]
  20540. 8009026: 3307 adds r3, #7
  20541. 8009028: f023 0307 bic.w r3, r3, #7
  20542. 800902c: 3308 adds r3, #8
  20543. 800902e: 9303 str r3, [sp, #12]
  20544. 8009030: 9b09 ldr r3, [sp, #36] ; 0x24
  20545. 8009032: 443b add r3, r7
  20546. 8009034: 9309 str r3, [sp, #36] ; 0x24
  20547. 8009036: e767 b.n 8008f08 <_vfiprintf_r+0x94>
  20548. 8009038: 460c mov r4, r1
  20549. 800903a: 2001 movs r0, #1
  20550. 800903c: fb0c 3202 mla r2, ip, r2, r3
  20551. 8009040: e7a5 b.n 8008f8e <_vfiprintf_r+0x11a>
  20552. 8009042: 2300 movs r3, #0
  20553. 8009044: f04f 0c0a mov.w ip, #10
  20554. 8009048: 4619 mov r1, r3
  20555. 800904a: 3401 adds r4, #1
  20556. 800904c: 9305 str r3, [sp, #20]
  20557. 800904e: 4620 mov r0, r4
  20558. 8009050: f810 2b01 ldrb.w r2, [r0], #1
  20559. 8009054: 3a30 subs r2, #48 ; 0x30
  20560. 8009056: 2a09 cmp r2, #9
  20561. 8009058: d903 bls.n 8009062 <_vfiprintf_r+0x1ee>
  20562. 800905a: 2b00 cmp r3, #0
  20563. 800905c: d0c5 beq.n 8008fea <_vfiprintf_r+0x176>
  20564. 800905e: 9105 str r1, [sp, #20]
  20565. 8009060: e7c3 b.n 8008fea <_vfiprintf_r+0x176>
  20566. 8009062: 4604 mov r4, r0
  20567. 8009064: 2301 movs r3, #1
  20568. 8009066: fb0c 2101 mla r1, ip, r1, r2
  20569. 800906a: e7f0 b.n 800904e <_vfiprintf_r+0x1da>
  20570. 800906c: ab03 add r3, sp, #12
  20571. 800906e: 9300 str r3, [sp, #0]
  20572. 8009070: 462a mov r2, r5
  20573. 8009072: 4630 mov r0, r6
  20574. 8009074: 4b15 ldr r3, [pc, #84] ; (80090cc <_vfiprintf_r+0x258>)
  20575. 8009076: a904 add r1, sp, #16
  20576. 8009078: f7fd fe44 bl 8006d04 <_printf_float>
  20577. 800907c: 4607 mov r7, r0
  20578. 800907e: 1c78 adds r0, r7, #1
  20579. 8009080: d1d6 bne.n 8009030 <_vfiprintf_r+0x1bc>
  20580. 8009082: 6e6b ldr r3, [r5, #100] ; 0x64
  20581. 8009084: 07d9 lsls r1, r3, #31
  20582. 8009086: d405 bmi.n 8009094 <_vfiprintf_r+0x220>
  20583. 8009088: 89ab ldrh r3, [r5, #12]
  20584. 800908a: 059a lsls r2, r3, #22
  20585. 800908c: d402 bmi.n 8009094 <_vfiprintf_r+0x220>
  20586. 800908e: 6da8 ldr r0, [r5, #88] ; 0x58
  20587. 8009090: f000 faaf bl 80095f2 <__retarget_lock_release_recursive>
  20588. 8009094: 89ab ldrh r3, [r5, #12]
  20589. 8009096: 065b lsls r3, r3, #25
  20590. 8009098: f53f af12 bmi.w 8008ec0 <_vfiprintf_r+0x4c>
  20591. 800909c: 9809 ldr r0, [sp, #36] ; 0x24
  20592. 800909e: e711 b.n 8008ec4 <_vfiprintf_r+0x50>
  20593. 80090a0: ab03 add r3, sp, #12
  20594. 80090a2: 9300 str r3, [sp, #0]
  20595. 80090a4: 462a mov r2, r5
  20596. 80090a6: 4630 mov r0, r6
  20597. 80090a8: 4b08 ldr r3, [pc, #32] ; (80090cc <_vfiprintf_r+0x258>)
  20598. 80090aa: a904 add r1, sp, #16
  20599. 80090ac: f7fe f8c6 bl 800723c <_printf_i>
  20600. 80090b0: e7e4 b.n 800907c <_vfiprintf_r+0x208>
  20601. 80090b2: bf00 nop
  20602. 80090b4: 0800a9f4 .word 0x0800a9f4
  20603. 80090b8: 0800aa14 .word 0x0800aa14
  20604. 80090bc: 0800a9d4 .word 0x0800a9d4
  20605. 80090c0: 0800a87c .word 0x0800a87c
  20606. 80090c4: 0800a886 .word 0x0800a886
  20607. 80090c8: 08006d05 .word 0x08006d05
  20608. 80090cc: 08008e4f .word 0x08008e4f
  20609. 80090d0: 0800a882 .word 0x0800a882
  20610. 080090d4 <__swbuf_r>:
  20611. 80090d4: b5f8 push {r3, r4, r5, r6, r7, lr}
  20612. 80090d6: 460e mov r6, r1
  20613. 80090d8: 4614 mov r4, r2
  20614. 80090da: 4605 mov r5, r0
  20615. 80090dc: b118 cbz r0, 80090e6 <__swbuf_r+0x12>
  20616. 80090de: 6983 ldr r3, [r0, #24]
  20617. 80090e0: b90b cbnz r3, 80090e6 <__swbuf_r+0x12>
  20618. 80090e2: f000 f9e7 bl 80094b4 <__sinit>
  20619. 80090e6: 4b21 ldr r3, [pc, #132] ; (800916c <__swbuf_r+0x98>)
  20620. 80090e8: 429c cmp r4, r3
  20621. 80090ea: d12b bne.n 8009144 <__swbuf_r+0x70>
  20622. 80090ec: 686c ldr r4, [r5, #4]
  20623. 80090ee: 69a3 ldr r3, [r4, #24]
  20624. 80090f0: 60a3 str r3, [r4, #8]
  20625. 80090f2: 89a3 ldrh r3, [r4, #12]
  20626. 80090f4: 071a lsls r2, r3, #28
  20627. 80090f6: d52f bpl.n 8009158 <__swbuf_r+0x84>
  20628. 80090f8: 6923 ldr r3, [r4, #16]
  20629. 80090fa: b36b cbz r3, 8009158 <__swbuf_r+0x84>
  20630. 80090fc: 6923 ldr r3, [r4, #16]
  20631. 80090fe: 6820 ldr r0, [r4, #0]
  20632. 8009100: b2f6 uxtb r6, r6
  20633. 8009102: 1ac0 subs r0, r0, r3
  20634. 8009104: 6963 ldr r3, [r4, #20]
  20635. 8009106: 4637 mov r7, r6
  20636. 8009108: 4283 cmp r3, r0
  20637. 800910a: dc04 bgt.n 8009116 <__swbuf_r+0x42>
  20638. 800910c: 4621 mov r1, r4
  20639. 800910e: 4628 mov r0, r5
  20640. 8009110: f000 f93c bl 800938c <_fflush_r>
  20641. 8009114: bb30 cbnz r0, 8009164 <__swbuf_r+0x90>
  20642. 8009116: 68a3 ldr r3, [r4, #8]
  20643. 8009118: 3001 adds r0, #1
  20644. 800911a: 3b01 subs r3, #1
  20645. 800911c: 60a3 str r3, [r4, #8]
  20646. 800911e: 6823 ldr r3, [r4, #0]
  20647. 8009120: 1c5a adds r2, r3, #1
  20648. 8009122: 6022 str r2, [r4, #0]
  20649. 8009124: 701e strb r6, [r3, #0]
  20650. 8009126: 6963 ldr r3, [r4, #20]
  20651. 8009128: 4283 cmp r3, r0
  20652. 800912a: d004 beq.n 8009136 <__swbuf_r+0x62>
  20653. 800912c: 89a3 ldrh r3, [r4, #12]
  20654. 800912e: 07db lsls r3, r3, #31
  20655. 8009130: d506 bpl.n 8009140 <__swbuf_r+0x6c>
  20656. 8009132: 2e0a cmp r6, #10
  20657. 8009134: d104 bne.n 8009140 <__swbuf_r+0x6c>
  20658. 8009136: 4621 mov r1, r4
  20659. 8009138: 4628 mov r0, r5
  20660. 800913a: f000 f927 bl 800938c <_fflush_r>
  20661. 800913e: b988 cbnz r0, 8009164 <__swbuf_r+0x90>
  20662. 8009140: 4638 mov r0, r7
  20663. 8009142: bdf8 pop {r3, r4, r5, r6, r7, pc}
  20664. 8009144: 4b0a ldr r3, [pc, #40] ; (8009170 <__swbuf_r+0x9c>)
  20665. 8009146: 429c cmp r4, r3
  20666. 8009148: d101 bne.n 800914e <__swbuf_r+0x7a>
  20667. 800914a: 68ac ldr r4, [r5, #8]
  20668. 800914c: e7cf b.n 80090ee <__swbuf_r+0x1a>
  20669. 800914e: 4b09 ldr r3, [pc, #36] ; (8009174 <__swbuf_r+0xa0>)
  20670. 8009150: 429c cmp r4, r3
  20671. 8009152: bf08 it eq
  20672. 8009154: 68ec ldreq r4, [r5, #12]
  20673. 8009156: e7ca b.n 80090ee <__swbuf_r+0x1a>
  20674. 8009158: 4621 mov r1, r4
  20675. 800915a: 4628 mov r0, r5
  20676. 800915c: f000 f81a bl 8009194 <__swsetup_r>
  20677. 8009160: 2800 cmp r0, #0
  20678. 8009162: d0cb beq.n 80090fc <__swbuf_r+0x28>
  20679. 8009164: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff
  20680. 8009168: e7ea b.n 8009140 <__swbuf_r+0x6c>
  20681. 800916a: bf00 nop
  20682. 800916c: 0800a9f4 .word 0x0800a9f4
  20683. 8009170: 0800aa14 .word 0x0800aa14
  20684. 8009174: 0800a9d4 .word 0x0800a9d4
  20685. 08009178 <__ascii_wctomb>:
  20686. 8009178: 4603 mov r3, r0
  20687. 800917a: 4608 mov r0, r1
  20688. 800917c: b141 cbz r1, 8009190 <__ascii_wctomb+0x18>
  20689. 800917e: 2aff cmp r2, #255 ; 0xff
  20690. 8009180: d904 bls.n 800918c <__ascii_wctomb+0x14>
  20691. 8009182: 228a movs r2, #138 ; 0x8a
  20692. 8009184: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  20693. 8009188: 601a str r2, [r3, #0]
  20694. 800918a: 4770 bx lr
  20695. 800918c: 2001 movs r0, #1
  20696. 800918e: 700a strb r2, [r1, #0]
  20697. 8009190: 4770 bx lr
  20698. ...
  20699. 08009194 <__swsetup_r>:
  20700. 8009194: 4b32 ldr r3, [pc, #200] ; (8009260 <__swsetup_r+0xcc>)
  20701. 8009196: b570 push {r4, r5, r6, lr}
  20702. 8009198: 681d ldr r5, [r3, #0]
  20703. 800919a: 4606 mov r6, r0
  20704. 800919c: 460c mov r4, r1
  20705. 800919e: b125 cbz r5, 80091aa <__swsetup_r+0x16>
  20706. 80091a0: 69ab ldr r3, [r5, #24]
  20707. 80091a2: b913 cbnz r3, 80091aa <__swsetup_r+0x16>
  20708. 80091a4: 4628 mov r0, r5
  20709. 80091a6: f000 f985 bl 80094b4 <__sinit>
  20710. 80091aa: 4b2e ldr r3, [pc, #184] ; (8009264 <__swsetup_r+0xd0>)
  20711. 80091ac: 429c cmp r4, r3
  20712. 80091ae: d10f bne.n 80091d0 <__swsetup_r+0x3c>
  20713. 80091b0: 686c ldr r4, [r5, #4]
  20714. 80091b2: 89a3 ldrh r3, [r4, #12]
  20715. 80091b4: f9b4 200c ldrsh.w r2, [r4, #12]
  20716. 80091b8: 0719 lsls r1, r3, #28
  20717. 80091ba: d42c bmi.n 8009216 <__swsetup_r+0x82>
  20718. 80091bc: 06dd lsls r5, r3, #27
  20719. 80091be: d411 bmi.n 80091e4 <__swsetup_r+0x50>
  20720. 80091c0: 2309 movs r3, #9
  20721. 80091c2: 6033 str r3, [r6, #0]
  20722. 80091c4: f042 0340 orr.w r3, r2, #64 ; 0x40
  20723. 80091c8: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  20724. 80091cc: 81a3 strh r3, [r4, #12]
  20725. 80091ce: e03e b.n 800924e <__swsetup_r+0xba>
  20726. 80091d0: 4b25 ldr r3, [pc, #148] ; (8009268 <__swsetup_r+0xd4>)
  20727. 80091d2: 429c cmp r4, r3
  20728. 80091d4: d101 bne.n 80091da <__swsetup_r+0x46>
  20729. 80091d6: 68ac ldr r4, [r5, #8]
  20730. 80091d8: e7eb b.n 80091b2 <__swsetup_r+0x1e>
  20731. 80091da: 4b24 ldr r3, [pc, #144] ; (800926c <__swsetup_r+0xd8>)
  20732. 80091dc: 429c cmp r4, r3
  20733. 80091de: bf08 it eq
  20734. 80091e0: 68ec ldreq r4, [r5, #12]
  20735. 80091e2: e7e6 b.n 80091b2 <__swsetup_r+0x1e>
  20736. 80091e4: 0758 lsls r0, r3, #29
  20737. 80091e6: d512 bpl.n 800920e <__swsetup_r+0x7a>
  20738. 80091e8: 6b61 ldr r1, [r4, #52] ; 0x34
  20739. 80091ea: b141 cbz r1, 80091fe <__swsetup_r+0x6a>
  20740. 80091ec: f104 0344 add.w r3, r4, #68 ; 0x44
  20741. 80091f0: 4299 cmp r1, r3
  20742. 80091f2: d002 beq.n 80091fa <__swsetup_r+0x66>
  20743. 80091f4: 4630 mov r0, r6
  20744. 80091f6: f7ff fb8f bl 8008918 <_free_r>
  20745. 80091fa: 2300 movs r3, #0
  20746. 80091fc: 6363 str r3, [r4, #52] ; 0x34
  20747. 80091fe: 89a3 ldrh r3, [r4, #12]
  20748. 8009200: f023 0324 bic.w r3, r3, #36 ; 0x24
  20749. 8009204: 81a3 strh r3, [r4, #12]
  20750. 8009206: 2300 movs r3, #0
  20751. 8009208: 6063 str r3, [r4, #4]
  20752. 800920a: 6923 ldr r3, [r4, #16]
  20753. 800920c: 6023 str r3, [r4, #0]
  20754. 800920e: 89a3 ldrh r3, [r4, #12]
  20755. 8009210: f043 0308 orr.w r3, r3, #8
  20756. 8009214: 81a3 strh r3, [r4, #12]
  20757. 8009216: 6923 ldr r3, [r4, #16]
  20758. 8009218: b94b cbnz r3, 800922e <__swsetup_r+0x9a>
  20759. 800921a: 89a3 ldrh r3, [r4, #12]
  20760. 800921c: f403 7320 and.w r3, r3, #640 ; 0x280
  20761. 8009220: f5b3 7f00 cmp.w r3, #512 ; 0x200
  20762. 8009224: d003 beq.n 800922e <__swsetup_r+0x9a>
  20763. 8009226: 4621 mov r1, r4
  20764. 8009228: 4630 mov r0, r6
  20765. 800922a: f000 fa07 bl 800963c <__smakebuf_r>
  20766. 800922e: 89a0 ldrh r0, [r4, #12]
  20767. 8009230: f9b4 200c ldrsh.w r2, [r4, #12]
  20768. 8009234: f010 0301 ands.w r3, r0, #1
  20769. 8009238: d00a beq.n 8009250 <__swsetup_r+0xbc>
  20770. 800923a: 2300 movs r3, #0
  20771. 800923c: 60a3 str r3, [r4, #8]
  20772. 800923e: 6963 ldr r3, [r4, #20]
  20773. 8009240: 425b negs r3, r3
  20774. 8009242: 61a3 str r3, [r4, #24]
  20775. 8009244: 6923 ldr r3, [r4, #16]
  20776. 8009246: b943 cbnz r3, 800925a <__swsetup_r+0xc6>
  20777. 8009248: f010 0080 ands.w r0, r0, #128 ; 0x80
  20778. 800924c: d1ba bne.n 80091c4 <__swsetup_r+0x30>
  20779. 800924e: bd70 pop {r4, r5, r6, pc}
  20780. 8009250: 0781 lsls r1, r0, #30
  20781. 8009252: bf58 it pl
  20782. 8009254: 6963 ldrpl r3, [r4, #20]
  20783. 8009256: 60a3 str r3, [r4, #8]
  20784. 8009258: e7f4 b.n 8009244 <__swsetup_r+0xb0>
  20785. 800925a: 2000 movs r0, #0
  20786. 800925c: e7f7 b.n 800924e <__swsetup_r+0xba>
  20787. 800925e: bf00 nop
  20788. 8009260: 20000014 .word 0x20000014
  20789. 8009264: 0800a9f4 .word 0x0800a9f4
  20790. 8009268: 0800aa14 .word 0x0800aa14
  20791. 800926c: 0800a9d4 .word 0x0800a9d4
  20792. 08009270 <abort>:
  20793. 8009270: 2006 movs r0, #6
  20794. 8009272: b508 push {r3, lr}
  20795. 8009274: f000 fa52 bl 800971c <raise>
  20796. 8009278: 2001 movs r0, #1
  20797. 800927a: f7f8 ffac bl 80021d6 <_exit>
  20798. ...
  20799. 08009280 <__sflush_r>:
  20800. 8009280: 898a ldrh r2, [r1, #12]
  20801. 8009282: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  20802. 8009286: 4605 mov r5, r0
  20803. 8009288: 0710 lsls r0, r2, #28
  20804. 800928a: 460c mov r4, r1
  20805. 800928c: d458 bmi.n 8009340 <__sflush_r+0xc0>
  20806. 800928e: 684b ldr r3, [r1, #4]
  20807. 8009290: 2b00 cmp r3, #0
  20808. 8009292: dc05 bgt.n 80092a0 <__sflush_r+0x20>
  20809. 8009294: 6c0b ldr r3, [r1, #64] ; 0x40
  20810. 8009296: 2b00 cmp r3, #0
  20811. 8009298: dc02 bgt.n 80092a0 <__sflush_r+0x20>
  20812. 800929a: 2000 movs r0, #0
  20813. 800929c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  20814. 80092a0: 6ae6 ldr r6, [r4, #44] ; 0x2c
  20815. 80092a2: 2e00 cmp r6, #0
  20816. 80092a4: d0f9 beq.n 800929a <__sflush_r+0x1a>
  20817. 80092a6: 2300 movs r3, #0
  20818. 80092a8: f412 5280 ands.w r2, r2, #4096 ; 0x1000
  20819. 80092ac: 682f ldr r7, [r5, #0]
  20820. 80092ae: 602b str r3, [r5, #0]
  20821. 80092b0: d032 beq.n 8009318 <__sflush_r+0x98>
  20822. 80092b2: 6d60 ldr r0, [r4, #84] ; 0x54
  20823. 80092b4: 89a3 ldrh r3, [r4, #12]
  20824. 80092b6: 075a lsls r2, r3, #29
  20825. 80092b8: d505 bpl.n 80092c6 <__sflush_r+0x46>
  20826. 80092ba: 6863 ldr r3, [r4, #4]
  20827. 80092bc: 1ac0 subs r0, r0, r3
  20828. 80092be: 6b63 ldr r3, [r4, #52] ; 0x34
  20829. 80092c0: b10b cbz r3, 80092c6 <__sflush_r+0x46>
  20830. 80092c2: 6c23 ldr r3, [r4, #64] ; 0x40
  20831. 80092c4: 1ac0 subs r0, r0, r3
  20832. 80092c6: 2300 movs r3, #0
  20833. 80092c8: 4602 mov r2, r0
  20834. 80092ca: 6ae6 ldr r6, [r4, #44] ; 0x2c
  20835. 80092cc: 4628 mov r0, r5
  20836. 80092ce: 6a21 ldr r1, [r4, #32]
  20837. 80092d0: 47b0 blx r6
  20838. 80092d2: 1c43 adds r3, r0, #1
  20839. 80092d4: 89a3 ldrh r3, [r4, #12]
  20840. 80092d6: d106 bne.n 80092e6 <__sflush_r+0x66>
  20841. 80092d8: 6829 ldr r1, [r5, #0]
  20842. 80092da: 291d cmp r1, #29
  20843. 80092dc: d82c bhi.n 8009338 <__sflush_r+0xb8>
  20844. 80092de: 4a2a ldr r2, [pc, #168] ; (8009388 <__sflush_r+0x108>)
  20845. 80092e0: 40ca lsrs r2, r1
  20846. 80092e2: 07d6 lsls r6, r2, #31
  20847. 80092e4: d528 bpl.n 8009338 <__sflush_r+0xb8>
  20848. 80092e6: 2200 movs r2, #0
  20849. 80092e8: 6062 str r2, [r4, #4]
  20850. 80092ea: 6922 ldr r2, [r4, #16]
  20851. 80092ec: 04d9 lsls r1, r3, #19
  20852. 80092ee: 6022 str r2, [r4, #0]
  20853. 80092f0: d504 bpl.n 80092fc <__sflush_r+0x7c>
  20854. 80092f2: 1c42 adds r2, r0, #1
  20855. 80092f4: d101 bne.n 80092fa <__sflush_r+0x7a>
  20856. 80092f6: 682b ldr r3, [r5, #0]
  20857. 80092f8: b903 cbnz r3, 80092fc <__sflush_r+0x7c>
  20858. 80092fa: 6560 str r0, [r4, #84] ; 0x54
  20859. 80092fc: 6b61 ldr r1, [r4, #52] ; 0x34
  20860. 80092fe: 602f str r7, [r5, #0]
  20861. 8009300: 2900 cmp r1, #0
  20862. 8009302: d0ca beq.n 800929a <__sflush_r+0x1a>
  20863. 8009304: f104 0344 add.w r3, r4, #68 ; 0x44
  20864. 8009308: 4299 cmp r1, r3
  20865. 800930a: d002 beq.n 8009312 <__sflush_r+0x92>
  20866. 800930c: 4628 mov r0, r5
  20867. 800930e: f7ff fb03 bl 8008918 <_free_r>
  20868. 8009312: 2000 movs r0, #0
  20869. 8009314: 6360 str r0, [r4, #52] ; 0x34
  20870. 8009316: e7c1 b.n 800929c <__sflush_r+0x1c>
  20871. 8009318: 6a21 ldr r1, [r4, #32]
  20872. 800931a: 2301 movs r3, #1
  20873. 800931c: 4628 mov r0, r5
  20874. 800931e: 47b0 blx r6
  20875. 8009320: 1c41 adds r1, r0, #1
  20876. 8009322: d1c7 bne.n 80092b4 <__sflush_r+0x34>
  20877. 8009324: 682b ldr r3, [r5, #0]
  20878. 8009326: 2b00 cmp r3, #0
  20879. 8009328: d0c4 beq.n 80092b4 <__sflush_r+0x34>
  20880. 800932a: 2b1d cmp r3, #29
  20881. 800932c: d001 beq.n 8009332 <__sflush_r+0xb2>
  20882. 800932e: 2b16 cmp r3, #22
  20883. 8009330: d101 bne.n 8009336 <__sflush_r+0xb6>
  20884. 8009332: 602f str r7, [r5, #0]
  20885. 8009334: e7b1 b.n 800929a <__sflush_r+0x1a>
  20886. 8009336: 89a3 ldrh r3, [r4, #12]
  20887. 8009338: f043 0340 orr.w r3, r3, #64 ; 0x40
  20888. 800933c: 81a3 strh r3, [r4, #12]
  20889. 800933e: e7ad b.n 800929c <__sflush_r+0x1c>
  20890. 8009340: 690f ldr r7, [r1, #16]
  20891. 8009342: 2f00 cmp r7, #0
  20892. 8009344: d0a9 beq.n 800929a <__sflush_r+0x1a>
  20893. 8009346: 0793 lsls r3, r2, #30
  20894. 8009348: bf18 it ne
  20895. 800934a: 2300 movne r3, #0
  20896. 800934c: 680e ldr r6, [r1, #0]
  20897. 800934e: bf08 it eq
  20898. 8009350: 694b ldreq r3, [r1, #20]
  20899. 8009352: eba6 0807 sub.w r8, r6, r7
  20900. 8009356: 600f str r7, [r1, #0]
  20901. 8009358: 608b str r3, [r1, #8]
  20902. 800935a: f1b8 0f00 cmp.w r8, #0
  20903. 800935e: dd9c ble.n 800929a <__sflush_r+0x1a>
  20904. 8009360: 4643 mov r3, r8
  20905. 8009362: 463a mov r2, r7
  20906. 8009364: 4628 mov r0, r5
  20907. 8009366: 6a21 ldr r1, [r4, #32]
  20908. 8009368: 6aa6 ldr r6, [r4, #40] ; 0x28
  20909. 800936a: 47b0 blx r6
  20910. 800936c: 2800 cmp r0, #0
  20911. 800936e: dc06 bgt.n 800937e <__sflush_r+0xfe>
  20912. 8009370: 89a3 ldrh r3, [r4, #12]
  20913. 8009372: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  20914. 8009376: f043 0340 orr.w r3, r3, #64 ; 0x40
  20915. 800937a: 81a3 strh r3, [r4, #12]
  20916. 800937c: e78e b.n 800929c <__sflush_r+0x1c>
  20917. 800937e: 4407 add r7, r0
  20918. 8009380: eba8 0800 sub.w r8, r8, r0
  20919. 8009384: e7e9 b.n 800935a <__sflush_r+0xda>
  20920. 8009386: bf00 nop
  20921. 8009388: 20400001 .word 0x20400001
  20922. 0800938c <_fflush_r>:
  20923. 800938c: b538 push {r3, r4, r5, lr}
  20924. 800938e: 690b ldr r3, [r1, #16]
  20925. 8009390: 4605 mov r5, r0
  20926. 8009392: 460c mov r4, r1
  20927. 8009394: b913 cbnz r3, 800939c <_fflush_r+0x10>
  20928. 8009396: 2500 movs r5, #0
  20929. 8009398: 4628 mov r0, r5
  20930. 800939a: bd38 pop {r3, r4, r5, pc}
  20931. 800939c: b118 cbz r0, 80093a6 <_fflush_r+0x1a>
  20932. 800939e: 6983 ldr r3, [r0, #24]
  20933. 80093a0: b90b cbnz r3, 80093a6 <_fflush_r+0x1a>
  20934. 80093a2: f000 f887 bl 80094b4 <__sinit>
  20935. 80093a6: 4b14 ldr r3, [pc, #80] ; (80093f8 <_fflush_r+0x6c>)
  20936. 80093a8: 429c cmp r4, r3
  20937. 80093aa: d11b bne.n 80093e4 <_fflush_r+0x58>
  20938. 80093ac: 686c ldr r4, [r5, #4]
  20939. 80093ae: f9b4 300c ldrsh.w r3, [r4, #12]
  20940. 80093b2: 2b00 cmp r3, #0
  20941. 80093b4: d0ef beq.n 8009396 <_fflush_r+0xa>
  20942. 80093b6: 6e62 ldr r2, [r4, #100] ; 0x64
  20943. 80093b8: 07d0 lsls r0, r2, #31
  20944. 80093ba: d404 bmi.n 80093c6 <_fflush_r+0x3a>
  20945. 80093bc: 0599 lsls r1, r3, #22
  20946. 80093be: d402 bmi.n 80093c6 <_fflush_r+0x3a>
  20947. 80093c0: 6da0 ldr r0, [r4, #88] ; 0x58
  20948. 80093c2: f000 f915 bl 80095f0 <__retarget_lock_acquire_recursive>
  20949. 80093c6: 4628 mov r0, r5
  20950. 80093c8: 4621 mov r1, r4
  20951. 80093ca: f7ff ff59 bl 8009280 <__sflush_r>
  20952. 80093ce: 6e63 ldr r3, [r4, #100] ; 0x64
  20953. 80093d0: 4605 mov r5, r0
  20954. 80093d2: 07da lsls r2, r3, #31
  20955. 80093d4: d4e0 bmi.n 8009398 <_fflush_r+0xc>
  20956. 80093d6: 89a3 ldrh r3, [r4, #12]
  20957. 80093d8: 059b lsls r3, r3, #22
  20958. 80093da: d4dd bmi.n 8009398 <_fflush_r+0xc>
  20959. 80093dc: 6da0 ldr r0, [r4, #88] ; 0x58
  20960. 80093de: f000 f908 bl 80095f2 <__retarget_lock_release_recursive>
  20961. 80093e2: e7d9 b.n 8009398 <_fflush_r+0xc>
  20962. 80093e4: 4b05 ldr r3, [pc, #20] ; (80093fc <_fflush_r+0x70>)
  20963. 80093e6: 429c cmp r4, r3
  20964. 80093e8: d101 bne.n 80093ee <_fflush_r+0x62>
  20965. 80093ea: 68ac ldr r4, [r5, #8]
  20966. 80093ec: e7df b.n 80093ae <_fflush_r+0x22>
  20967. 80093ee: 4b04 ldr r3, [pc, #16] ; (8009400 <_fflush_r+0x74>)
  20968. 80093f0: 429c cmp r4, r3
  20969. 80093f2: bf08 it eq
  20970. 80093f4: 68ec ldreq r4, [r5, #12]
  20971. 80093f6: e7da b.n 80093ae <_fflush_r+0x22>
  20972. 80093f8: 0800a9f4 .word 0x0800a9f4
  20973. 80093fc: 0800aa14 .word 0x0800aa14
  20974. 8009400: 0800a9d4 .word 0x0800a9d4
  20975. 08009404 <std>:
  20976. 8009404: 2300 movs r3, #0
  20977. 8009406: b510 push {r4, lr}
  20978. 8009408: 4604 mov r4, r0
  20979. 800940a: e9c0 3300 strd r3, r3, [r0]
  20980. 800940e: e9c0 3304 strd r3, r3, [r0, #16]
  20981. 8009412: 6083 str r3, [r0, #8]
  20982. 8009414: 8181 strh r1, [r0, #12]
  20983. 8009416: 6643 str r3, [r0, #100] ; 0x64
  20984. 8009418: 81c2 strh r2, [r0, #14]
  20985. 800941a: 6183 str r3, [r0, #24]
  20986. 800941c: 4619 mov r1, r3
  20987. 800941e: 2208 movs r2, #8
  20988. 8009420: 305c adds r0, #92 ; 0x5c
  20989. 8009422: f7fd fbc9 bl 8006bb8 <memset>
  20990. 8009426: 4b05 ldr r3, [pc, #20] ; (800943c <std+0x38>)
  20991. 8009428: 6224 str r4, [r4, #32]
  20992. 800942a: 6263 str r3, [r4, #36] ; 0x24
  20993. 800942c: 4b04 ldr r3, [pc, #16] ; (8009440 <std+0x3c>)
  20994. 800942e: 62a3 str r3, [r4, #40] ; 0x28
  20995. 8009430: 4b04 ldr r3, [pc, #16] ; (8009444 <std+0x40>)
  20996. 8009432: 62e3 str r3, [r4, #44] ; 0x2c
  20997. 8009434: 4b04 ldr r3, [pc, #16] ; (8009448 <std+0x44>)
  20998. 8009436: 6323 str r3, [r4, #48] ; 0x30
  20999. 8009438: bd10 pop {r4, pc}
  21000. 800943a: bf00 nop
  21001. 800943c: 08009755 .word 0x08009755
  21002. 8009440: 08009777 .word 0x08009777
  21003. 8009444: 080097af .word 0x080097af
  21004. 8009448: 080097d3 .word 0x080097d3
  21005. 0800944c <_cleanup_r>:
  21006. 800944c: 4901 ldr r1, [pc, #4] ; (8009454 <_cleanup_r+0x8>)
  21007. 800944e: f000 b8af b.w 80095b0 <_fwalk_reent>
  21008. 8009452: bf00 nop
  21009. 8009454: 0800938d .word 0x0800938d
  21010. 08009458 <__sfmoreglue>:
  21011. 8009458: b570 push {r4, r5, r6, lr}
  21012. 800945a: 2568 movs r5, #104 ; 0x68
  21013. 800945c: 1e4a subs r2, r1, #1
  21014. 800945e: 4355 muls r5, r2
  21015. 8009460: 460e mov r6, r1
  21016. 8009462: f105 0174 add.w r1, r5, #116 ; 0x74
  21017. 8009466: f7ff faa3 bl 80089b0 <_malloc_r>
  21018. 800946a: 4604 mov r4, r0
  21019. 800946c: b140 cbz r0, 8009480 <__sfmoreglue+0x28>
  21020. 800946e: 2100 movs r1, #0
  21021. 8009470: e9c0 1600 strd r1, r6, [r0]
  21022. 8009474: 300c adds r0, #12
  21023. 8009476: 60a0 str r0, [r4, #8]
  21024. 8009478: f105 0268 add.w r2, r5, #104 ; 0x68
  21025. 800947c: f7fd fb9c bl 8006bb8 <memset>
  21026. 8009480: 4620 mov r0, r4
  21027. 8009482: bd70 pop {r4, r5, r6, pc}
  21028. 08009484 <__sfp_lock_acquire>:
  21029. 8009484: 4801 ldr r0, [pc, #4] ; (800948c <__sfp_lock_acquire+0x8>)
  21030. 8009486: f000 b8b3 b.w 80095f0 <__retarget_lock_acquire_recursive>
  21031. 800948a: bf00 nop
  21032. 800948c: 20000700 .word 0x20000700
  21033. 08009490 <__sfp_lock_release>:
  21034. 8009490: 4801 ldr r0, [pc, #4] ; (8009498 <__sfp_lock_release+0x8>)
  21035. 8009492: f000 b8ae b.w 80095f2 <__retarget_lock_release_recursive>
  21036. 8009496: bf00 nop
  21037. 8009498: 20000700 .word 0x20000700
  21038. 0800949c <__sinit_lock_acquire>:
  21039. 800949c: 4801 ldr r0, [pc, #4] ; (80094a4 <__sinit_lock_acquire+0x8>)
  21040. 800949e: f000 b8a7 b.w 80095f0 <__retarget_lock_acquire_recursive>
  21041. 80094a2: bf00 nop
  21042. 80094a4: 200006fb .word 0x200006fb
  21043. 080094a8 <__sinit_lock_release>:
  21044. 80094a8: 4801 ldr r0, [pc, #4] ; (80094b0 <__sinit_lock_release+0x8>)
  21045. 80094aa: f000 b8a2 b.w 80095f2 <__retarget_lock_release_recursive>
  21046. 80094ae: bf00 nop
  21047. 80094b0: 200006fb .word 0x200006fb
  21048. 080094b4 <__sinit>:
  21049. 80094b4: b510 push {r4, lr}
  21050. 80094b6: 4604 mov r4, r0
  21051. 80094b8: f7ff fff0 bl 800949c <__sinit_lock_acquire>
  21052. 80094bc: 69a3 ldr r3, [r4, #24]
  21053. 80094be: b11b cbz r3, 80094c8 <__sinit+0x14>
  21054. 80094c0: e8bd 4010 ldmia.w sp!, {r4, lr}
  21055. 80094c4: f7ff bff0 b.w 80094a8 <__sinit_lock_release>
  21056. 80094c8: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48
  21057. 80094cc: 6523 str r3, [r4, #80] ; 0x50
  21058. 80094ce: 4b13 ldr r3, [pc, #76] ; (800951c <__sinit+0x68>)
  21059. 80094d0: 4a13 ldr r2, [pc, #76] ; (8009520 <__sinit+0x6c>)
  21060. 80094d2: 681b ldr r3, [r3, #0]
  21061. 80094d4: 62a2 str r2, [r4, #40] ; 0x28
  21062. 80094d6: 42a3 cmp r3, r4
  21063. 80094d8: bf08 it eq
  21064. 80094da: 2301 moveq r3, #1
  21065. 80094dc: 4620 mov r0, r4
  21066. 80094de: bf08 it eq
  21067. 80094e0: 61a3 streq r3, [r4, #24]
  21068. 80094e2: f000 f81f bl 8009524 <__sfp>
  21069. 80094e6: 6060 str r0, [r4, #4]
  21070. 80094e8: 4620 mov r0, r4
  21071. 80094ea: f000 f81b bl 8009524 <__sfp>
  21072. 80094ee: 60a0 str r0, [r4, #8]
  21073. 80094f0: 4620 mov r0, r4
  21074. 80094f2: f000 f817 bl 8009524 <__sfp>
  21075. 80094f6: 2200 movs r2, #0
  21076. 80094f8: 2104 movs r1, #4
  21077. 80094fa: 60e0 str r0, [r4, #12]
  21078. 80094fc: 6860 ldr r0, [r4, #4]
  21079. 80094fe: f7ff ff81 bl 8009404 <std>
  21080. 8009502: 2201 movs r2, #1
  21081. 8009504: 2109 movs r1, #9
  21082. 8009506: 68a0 ldr r0, [r4, #8]
  21083. 8009508: f7ff ff7c bl 8009404 <std>
  21084. 800950c: 2202 movs r2, #2
  21085. 800950e: 2112 movs r1, #18
  21086. 8009510: 68e0 ldr r0, [r4, #12]
  21087. 8009512: f7ff ff77 bl 8009404 <std>
  21088. 8009516: 2301 movs r3, #1
  21089. 8009518: 61a3 str r3, [r4, #24]
  21090. 800951a: e7d1 b.n 80094c0 <__sinit+0xc>
  21091. 800951c: 0800a654 .word 0x0800a654
  21092. 8009520: 0800944d .word 0x0800944d
  21093. 08009524 <__sfp>:
  21094. 8009524: b5f8 push {r3, r4, r5, r6, r7, lr}
  21095. 8009526: 4607 mov r7, r0
  21096. 8009528: f7ff ffac bl 8009484 <__sfp_lock_acquire>
  21097. 800952c: 4b1e ldr r3, [pc, #120] ; (80095a8 <__sfp+0x84>)
  21098. 800952e: 681e ldr r6, [r3, #0]
  21099. 8009530: 69b3 ldr r3, [r6, #24]
  21100. 8009532: b913 cbnz r3, 800953a <__sfp+0x16>
  21101. 8009534: 4630 mov r0, r6
  21102. 8009536: f7ff ffbd bl 80094b4 <__sinit>
  21103. 800953a: 3648 adds r6, #72 ; 0x48
  21104. 800953c: e9d6 3401 ldrd r3, r4, [r6, #4]
  21105. 8009540: 3b01 subs r3, #1
  21106. 8009542: d503 bpl.n 800954c <__sfp+0x28>
  21107. 8009544: 6833 ldr r3, [r6, #0]
  21108. 8009546: b30b cbz r3, 800958c <__sfp+0x68>
  21109. 8009548: 6836 ldr r6, [r6, #0]
  21110. 800954a: e7f7 b.n 800953c <__sfp+0x18>
  21111. 800954c: f9b4 500c ldrsh.w r5, [r4, #12]
  21112. 8009550: b9d5 cbnz r5, 8009588 <__sfp+0x64>
  21113. 8009552: 4b16 ldr r3, [pc, #88] ; (80095ac <__sfp+0x88>)
  21114. 8009554: f104 0058 add.w r0, r4, #88 ; 0x58
  21115. 8009558: 60e3 str r3, [r4, #12]
  21116. 800955a: 6665 str r5, [r4, #100] ; 0x64
  21117. 800955c: f000 f847 bl 80095ee <__retarget_lock_init_recursive>
  21118. 8009560: f7ff ff96 bl 8009490 <__sfp_lock_release>
  21119. 8009564: 2208 movs r2, #8
  21120. 8009566: 4629 mov r1, r5
  21121. 8009568: e9c4 5501 strd r5, r5, [r4, #4]
  21122. 800956c: e9c4 5504 strd r5, r5, [r4, #16]
  21123. 8009570: 6025 str r5, [r4, #0]
  21124. 8009572: 61a5 str r5, [r4, #24]
  21125. 8009574: f104 005c add.w r0, r4, #92 ; 0x5c
  21126. 8009578: f7fd fb1e bl 8006bb8 <memset>
  21127. 800957c: e9c4 550d strd r5, r5, [r4, #52] ; 0x34
  21128. 8009580: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48
  21129. 8009584: 4620 mov r0, r4
  21130. 8009586: bdf8 pop {r3, r4, r5, r6, r7, pc}
  21131. 8009588: 3468 adds r4, #104 ; 0x68
  21132. 800958a: e7d9 b.n 8009540 <__sfp+0x1c>
  21133. 800958c: 2104 movs r1, #4
  21134. 800958e: 4638 mov r0, r7
  21135. 8009590: f7ff ff62 bl 8009458 <__sfmoreglue>
  21136. 8009594: 4604 mov r4, r0
  21137. 8009596: 6030 str r0, [r6, #0]
  21138. 8009598: 2800 cmp r0, #0
  21139. 800959a: d1d5 bne.n 8009548 <__sfp+0x24>
  21140. 800959c: f7ff ff78 bl 8009490 <__sfp_lock_release>
  21141. 80095a0: 230c movs r3, #12
  21142. 80095a2: 603b str r3, [r7, #0]
  21143. 80095a4: e7ee b.n 8009584 <__sfp+0x60>
  21144. 80095a6: bf00 nop
  21145. 80095a8: 0800a654 .word 0x0800a654
  21146. 80095ac: ffff0001 .word 0xffff0001
  21147. 080095b0 <_fwalk_reent>:
  21148. 80095b0: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  21149. 80095b4: 4606 mov r6, r0
  21150. 80095b6: 4688 mov r8, r1
  21151. 80095b8: 2700 movs r7, #0
  21152. 80095ba: f100 0448 add.w r4, r0, #72 ; 0x48
  21153. 80095be: e9d4 9501 ldrd r9, r5, [r4, #4]
  21154. 80095c2: f1b9 0901 subs.w r9, r9, #1
  21155. 80095c6: d505 bpl.n 80095d4 <_fwalk_reent+0x24>
  21156. 80095c8: 6824 ldr r4, [r4, #0]
  21157. 80095ca: 2c00 cmp r4, #0
  21158. 80095cc: d1f7 bne.n 80095be <_fwalk_reent+0xe>
  21159. 80095ce: 4638 mov r0, r7
  21160. 80095d0: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  21161. 80095d4: 89ab ldrh r3, [r5, #12]
  21162. 80095d6: 2b01 cmp r3, #1
  21163. 80095d8: d907 bls.n 80095ea <_fwalk_reent+0x3a>
  21164. 80095da: f9b5 300e ldrsh.w r3, [r5, #14]
  21165. 80095de: 3301 adds r3, #1
  21166. 80095e0: d003 beq.n 80095ea <_fwalk_reent+0x3a>
  21167. 80095e2: 4629 mov r1, r5
  21168. 80095e4: 4630 mov r0, r6
  21169. 80095e6: 47c0 blx r8
  21170. 80095e8: 4307 orrs r7, r0
  21171. 80095ea: 3568 adds r5, #104 ; 0x68
  21172. 80095ec: e7e9 b.n 80095c2 <_fwalk_reent+0x12>
  21173. 080095ee <__retarget_lock_init_recursive>:
  21174. 80095ee: 4770 bx lr
  21175. 080095f0 <__retarget_lock_acquire_recursive>:
  21176. 80095f0: 4770 bx lr
  21177. 080095f2 <__retarget_lock_release_recursive>:
  21178. 80095f2: 4770 bx lr
  21179. 080095f4 <__swhatbuf_r>:
  21180. 80095f4: b570 push {r4, r5, r6, lr}
  21181. 80095f6: 460e mov r6, r1
  21182. 80095f8: f9b1 100e ldrsh.w r1, [r1, #14]
  21183. 80095fc: 4614 mov r4, r2
  21184. 80095fe: 2900 cmp r1, #0
  21185. 8009600: 461d mov r5, r3
  21186. 8009602: b096 sub sp, #88 ; 0x58
  21187. 8009604: da07 bge.n 8009616 <__swhatbuf_r+0x22>
  21188. 8009606: 2300 movs r3, #0
  21189. 8009608: 602b str r3, [r5, #0]
  21190. 800960a: 89b3 ldrh r3, [r6, #12]
  21191. 800960c: 061a lsls r2, r3, #24
  21192. 800960e: d410 bmi.n 8009632 <__swhatbuf_r+0x3e>
  21193. 8009610: f44f 6380 mov.w r3, #1024 ; 0x400
  21194. 8009614: e00e b.n 8009634 <__swhatbuf_r+0x40>
  21195. 8009616: 466a mov r2, sp
  21196. 8009618: f000 f902 bl 8009820 <_fstat_r>
  21197. 800961c: 2800 cmp r0, #0
  21198. 800961e: dbf2 blt.n 8009606 <__swhatbuf_r+0x12>
  21199. 8009620: 9a01 ldr r2, [sp, #4]
  21200. 8009622: f402 4270 and.w r2, r2, #61440 ; 0xf000
  21201. 8009626: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
  21202. 800962a: 425a negs r2, r3
  21203. 800962c: 415a adcs r2, r3
  21204. 800962e: 602a str r2, [r5, #0]
  21205. 8009630: e7ee b.n 8009610 <__swhatbuf_r+0x1c>
  21206. 8009632: 2340 movs r3, #64 ; 0x40
  21207. 8009634: 2000 movs r0, #0
  21208. 8009636: 6023 str r3, [r4, #0]
  21209. 8009638: b016 add sp, #88 ; 0x58
  21210. 800963a: bd70 pop {r4, r5, r6, pc}
  21211. 0800963c <__smakebuf_r>:
  21212. 800963c: 898b ldrh r3, [r1, #12]
  21213. 800963e: b573 push {r0, r1, r4, r5, r6, lr}
  21214. 8009640: 079d lsls r5, r3, #30
  21215. 8009642: 4606 mov r6, r0
  21216. 8009644: 460c mov r4, r1
  21217. 8009646: d507 bpl.n 8009658 <__smakebuf_r+0x1c>
  21218. 8009648: f104 0347 add.w r3, r4, #71 ; 0x47
  21219. 800964c: 6023 str r3, [r4, #0]
  21220. 800964e: 6123 str r3, [r4, #16]
  21221. 8009650: 2301 movs r3, #1
  21222. 8009652: 6163 str r3, [r4, #20]
  21223. 8009654: b002 add sp, #8
  21224. 8009656: bd70 pop {r4, r5, r6, pc}
  21225. 8009658: 466a mov r2, sp
  21226. 800965a: ab01 add r3, sp, #4
  21227. 800965c: f7ff ffca bl 80095f4 <__swhatbuf_r>
  21228. 8009660: 9900 ldr r1, [sp, #0]
  21229. 8009662: 4605 mov r5, r0
  21230. 8009664: 4630 mov r0, r6
  21231. 8009666: f7ff f9a3 bl 80089b0 <_malloc_r>
  21232. 800966a: b948 cbnz r0, 8009680 <__smakebuf_r+0x44>
  21233. 800966c: f9b4 300c ldrsh.w r3, [r4, #12]
  21234. 8009670: 059a lsls r2, r3, #22
  21235. 8009672: d4ef bmi.n 8009654 <__smakebuf_r+0x18>
  21236. 8009674: f023 0303 bic.w r3, r3, #3
  21237. 8009678: f043 0302 orr.w r3, r3, #2
  21238. 800967c: 81a3 strh r3, [r4, #12]
  21239. 800967e: e7e3 b.n 8009648 <__smakebuf_r+0xc>
  21240. 8009680: 4b0d ldr r3, [pc, #52] ; (80096b8 <__smakebuf_r+0x7c>)
  21241. 8009682: 62b3 str r3, [r6, #40] ; 0x28
  21242. 8009684: 89a3 ldrh r3, [r4, #12]
  21243. 8009686: 6020 str r0, [r4, #0]
  21244. 8009688: f043 0380 orr.w r3, r3, #128 ; 0x80
  21245. 800968c: 81a3 strh r3, [r4, #12]
  21246. 800968e: 9b00 ldr r3, [sp, #0]
  21247. 8009690: 6120 str r0, [r4, #16]
  21248. 8009692: 6163 str r3, [r4, #20]
  21249. 8009694: 9b01 ldr r3, [sp, #4]
  21250. 8009696: b15b cbz r3, 80096b0 <__smakebuf_r+0x74>
  21251. 8009698: 4630 mov r0, r6
  21252. 800969a: f9b4 100e ldrsh.w r1, [r4, #14]
  21253. 800969e: f000 f8d1 bl 8009844 <_isatty_r>
  21254. 80096a2: b128 cbz r0, 80096b0 <__smakebuf_r+0x74>
  21255. 80096a4: 89a3 ldrh r3, [r4, #12]
  21256. 80096a6: f023 0303 bic.w r3, r3, #3
  21257. 80096aa: f043 0301 orr.w r3, r3, #1
  21258. 80096ae: 81a3 strh r3, [r4, #12]
  21259. 80096b0: 89a0 ldrh r0, [r4, #12]
  21260. 80096b2: 4305 orrs r5, r0
  21261. 80096b4: 81a5 strh r5, [r4, #12]
  21262. 80096b6: e7cd b.n 8009654 <__smakebuf_r+0x18>
  21263. 80096b8: 0800944d .word 0x0800944d
  21264. 080096bc <_malloc_usable_size_r>:
  21265. 80096bc: f851 3c04 ldr.w r3, [r1, #-4]
  21266. 80096c0: 1f18 subs r0, r3, #4
  21267. 80096c2: 2b00 cmp r3, #0
  21268. 80096c4: bfbc itt lt
  21269. 80096c6: 580b ldrlt r3, [r1, r0]
  21270. 80096c8: 18c0 addlt r0, r0, r3
  21271. 80096ca: 4770 bx lr
  21272. 080096cc <_raise_r>:
  21273. 80096cc: 291f cmp r1, #31
  21274. 80096ce: b538 push {r3, r4, r5, lr}
  21275. 80096d0: 4604 mov r4, r0
  21276. 80096d2: 460d mov r5, r1
  21277. 80096d4: d904 bls.n 80096e0 <_raise_r+0x14>
  21278. 80096d6: 2316 movs r3, #22
  21279. 80096d8: 6003 str r3, [r0, #0]
  21280. 80096da: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  21281. 80096de: bd38 pop {r3, r4, r5, pc}
  21282. 80096e0: 6c42 ldr r2, [r0, #68] ; 0x44
  21283. 80096e2: b112 cbz r2, 80096ea <_raise_r+0x1e>
  21284. 80096e4: f852 3021 ldr.w r3, [r2, r1, lsl #2]
  21285. 80096e8: b94b cbnz r3, 80096fe <_raise_r+0x32>
  21286. 80096ea: 4620 mov r0, r4
  21287. 80096ec: f000 f830 bl 8009750 <_getpid_r>
  21288. 80096f0: 462a mov r2, r5
  21289. 80096f2: 4601 mov r1, r0
  21290. 80096f4: 4620 mov r0, r4
  21291. 80096f6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  21292. 80096fa: f000 b817 b.w 800972c <_kill_r>
  21293. 80096fe: 2b01 cmp r3, #1
  21294. 8009700: d00a beq.n 8009718 <_raise_r+0x4c>
  21295. 8009702: 1c59 adds r1, r3, #1
  21296. 8009704: d103 bne.n 800970e <_raise_r+0x42>
  21297. 8009706: 2316 movs r3, #22
  21298. 8009708: 6003 str r3, [r0, #0]
  21299. 800970a: 2001 movs r0, #1
  21300. 800970c: e7e7 b.n 80096de <_raise_r+0x12>
  21301. 800970e: 2400 movs r4, #0
  21302. 8009710: 4628 mov r0, r5
  21303. 8009712: f842 4025 str.w r4, [r2, r5, lsl #2]
  21304. 8009716: 4798 blx r3
  21305. 8009718: 2000 movs r0, #0
  21306. 800971a: e7e0 b.n 80096de <_raise_r+0x12>
  21307. 0800971c <raise>:
  21308. 800971c: 4b02 ldr r3, [pc, #8] ; (8009728 <raise+0xc>)
  21309. 800971e: 4601 mov r1, r0
  21310. 8009720: 6818 ldr r0, [r3, #0]
  21311. 8009722: f7ff bfd3 b.w 80096cc <_raise_r>
  21312. 8009726: bf00 nop
  21313. 8009728: 20000014 .word 0x20000014
  21314. 0800972c <_kill_r>:
  21315. 800972c: b538 push {r3, r4, r5, lr}
  21316. 800972e: 2300 movs r3, #0
  21317. 8009730: 4d06 ldr r5, [pc, #24] ; (800974c <_kill_r+0x20>)
  21318. 8009732: 4604 mov r4, r0
  21319. 8009734: 4608 mov r0, r1
  21320. 8009736: 4611 mov r1, r2
  21321. 8009738: 602b str r3, [r5, #0]
  21322. 800973a: f7f8 fd3c bl 80021b6 <_kill>
  21323. 800973e: 1c43 adds r3, r0, #1
  21324. 8009740: d102 bne.n 8009748 <_kill_r+0x1c>
  21325. 8009742: 682b ldr r3, [r5, #0]
  21326. 8009744: b103 cbz r3, 8009748 <_kill_r+0x1c>
  21327. 8009746: 6023 str r3, [r4, #0]
  21328. 8009748: bd38 pop {r3, r4, r5, pc}
  21329. 800974a: bf00 nop
  21330. 800974c: 200006f4 .word 0x200006f4
  21331. 08009750 <_getpid_r>:
  21332. 8009750: f7f8 bd2a b.w 80021a8 <_getpid>
  21333. 08009754 <__sread>:
  21334. 8009754: b510 push {r4, lr}
  21335. 8009756: 460c mov r4, r1
  21336. 8009758: f9b1 100e ldrsh.w r1, [r1, #14]
  21337. 800975c: f000 f894 bl 8009888 <_read_r>
  21338. 8009760: 2800 cmp r0, #0
  21339. 8009762: bfab itete ge
  21340. 8009764: 6d63 ldrge r3, [r4, #84] ; 0x54
  21341. 8009766: 89a3 ldrhlt r3, [r4, #12]
  21342. 8009768: 181b addge r3, r3, r0
  21343. 800976a: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
  21344. 800976e: bfac ite ge
  21345. 8009770: 6563 strge r3, [r4, #84] ; 0x54
  21346. 8009772: 81a3 strhlt r3, [r4, #12]
  21347. 8009774: bd10 pop {r4, pc}
  21348. 08009776 <__swrite>:
  21349. 8009776: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  21350. 800977a: 461f mov r7, r3
  21351. 800977c: 898b ldrh r3, [r1, #12]
  21352. 800977e: 4605 mov r5, r0
  21353. 8009780: 05db lsls r3, r3, #23
  21354. 8009782: 460c mov r4, r1
  21355. 8009784: 4616 mov r6, r2
  21356. 8009786: d505 bpl.n 8009794 <__swrite+0x1e>
  21357. 8009788: 2302 movs r3, #2
  21358. 800978a: 2200 movs r2, #0
  21359. 800978c: f9b1 100e ldrsh.w r1, [r1, #14]
  21360. 8009790: f000 f868 bl 8009864 <_lseek_r>
  21361. 8009794: 89a3 ldrh r3, [r4, #12]
  21362. 8009796: 4632 mov r2, r6
  21363. 8009798: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  21364. 800979c: 81a3 strh r3, [r4, #12]
  21365. 800979e: 4628 mov r0, r5
  21366. 80097a0: 463b mov r3, r7
  21367. 80097a2: f9b4 100e ldrsh.w r1, [r4, #14]
  21368. 80097a6: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  21369. 80097aa: f000 b817 b.w 80097dc <_write_r>
  21370. 080097ae <__sseek>:
  21371. 80097ae: b510 push {r4, lr}
  21372. 80097b0: 460c mov r4, r1
  21373. 80097b2: f9b1 100e ldrsh.w r1, [r1, #14]
  21374. 80097b6: f000 f855 bl 8009864 <_lseek_r>
  21375. 80097ba: 1c43 adds r3, r0, #1
  21376. 80097bc: 89a3 ldrh r3, [r4, #12]
  21377. 80097be: bf15 itete ne
  21378. 80097c0: 6560 strne r0, [r4, #84] ; 0x54
  21379. 80097c2: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
  21380. 80097c6: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
  21381. 80097ca: 81a3 strheq r3, [r4, #12]
  21382. 80097cc: bf18 it ne
  21383. 80097ce: 81a3 strhne r3, [r4, #12]
  21384. 80097d0: bd10 pop {r4, pc}
  21385. 080097d2 <__sclose>:
  21386. 80097d2: f9b1 100e ldrsh.w r1, [r1, #14]
  21387. 80097d6: f000 b813 b.w 8009800 <_close_r>
  21388. ...
  21389. 080097dc <_write_r>:
  21390. 80097dc: b538 push {r3, r4, r5, lr}
  21391. 80097de: 4604 mov r4, r0
  21392. 80097e0: 4608 mov r0, r1
  21393. 80097e2: 4611 mov r1, r2
  21394. 80097e4: 2200 movs r2, #0
  21395. 80097e6: 4d05 ldr r5, [pc, #20] ; (80097fc <_write_r+0x20>)
  21396. 80097e8: 602a str r2, [r5, #0]
  21397. 80097ea: 461a mov r2, r3
  21398. 80097ec: f7f8 fd1a bl 8002224 <_write>
  21399. 80097f0: 1c43 adds r3, r0, #1
  21400. 80097f2: d102 bne.n 80097fa <_write_r+0x1e>
  21401. 80097f4: 682b ldr r3, [r5, #0]
  21402. 80097f6: b103 cbz r3, 80097fa <_write_r+0x1e>
  21403. 80097f8: 6023 str r3, [r4, #0]
  21404. 80097fa: bd38 pop {r3, r4, r5, pc}
  21405. 80097fc: 200006f4 .word 0x200006f4
  21406. 08009800 <_close_r>:
  21407. 8009800: b538 push {r3, r4, r5, lr}
  21408. 8009802: 2300 movs r3, #0
  21409. 8009804: 4d05 ldr r5, [pc, #20] ; (800981c <_close_r+0x1c>)
  21410. 8009806: 4604 mov r4, r0
  21411. 8009808: 4608 mov r0, r1
  21412. 800980a: 602b str r3, [r5, #0]
  21413. 800980c: f7f8 fd26 bl 800225c <_close>
  21414. 8009810: 1c43 adds r3, r0, #1
  21415. 8009812: d102 bne.n 800981a <_close_r+0x1a>
  21416. 8009814: 682b ldr r3, [r5, #0]
  21417. 8009816: b103 cbz r3, 800981a <_close_r+0x1a>
  21418. 8009818: 6023 str r3, [r4, #0]
  21419. 800981a: bd38 pop {r3, r4, r5, pc}
  21420. 800981c: 200006f4 .word 0x200006f4
  21421. 08009820 <_fstat_r>:
  21422. 8009820: b538 push {r3, r4, r5, lr}
  21423. 8009822: 2300 movs r3, #0
  21424. 8009824: 4d06 ldr r5, [pc, #24] ; (8009840 <_fstat_r+0x20>)
  21425. 8009826: 4604 mov r4, r0
  21426. 8009828: 4608 mov r0, r1
  21427. 800982a: 4611 mov r1, r2
  21428. 800982c: 602b str r3, [r5, #0]
  21429. 800982e: f7f8 fd20 bl 8002272 <_fstat>
  21430. 8009832: 1c43 adds r3, r0, #1
  21431. 8009834: d102 bne.n 800983c <_fstat_r+0x1c>
  21432. 8009836: 682b ldr r3, [r5, #0]
  21433. 8009838: b103 cbz r3, 800983c <_fstat_r+0x1c>
  21434. 800983a: 6023 str r3, [r4, #0]
  21435. 800983c: bd38 pop {r3, r4, r5, pc}
  21436. 800983e: bf00 nop
  21437. 8009840: 200006f4 .word 0x200006f4
  21438. 08009844 <_isatty_r>:
  21439. 8009844: b538 push {r3, r4, r5, lr}
  21440. 8009846: 2300 movs r3, #0
  21441. 8009848: 4d05 ldr r5, [pc, #20] ; (8009860 <_isatty_r+0x1c>)
  21442. 800984a: 4604 mov r4, r0
  21443. 800984c: 4608 mov r0, r1
  21444. 800984e: 602b str r3, [r5, #0]
  21445. 8009850: f7f8 fd1e bl 8002290 <_isatty>
  21446. 8009854: 1c43 adds r3, r0, #1
  21447. 8009856: d102 bne.n 800985e <_isatty_r+0x1a>
  21448. 8009858: 682b ldr r3, [r5, #0]
  21449. 800985a: b103 cbz r3, 800985e <_isatty_r+0x1a>
  21450. 800985c: 6023 str r3, [r4, #0]
  21451. 800985e: bd38 pop {r3, r4, r5, pc}
  21452. 8009860: 200006f4 .word 0x200006f4
  21453. 08009864 <_lseek_r>:
  21454. 8009864: b538 push {r3, r4, r5, lr}
  21455. 8009866: 4604 mov r4, r0
  21456. 8009868: 4608 mov r0, r1
  21457. 800986a: 4611 mov r1, r2
  21458. 800986c: 2200 movs r2, #0
  21459. 800986e: 4d05 ldr r5, [pc, #20] ; (8009884 <_lseek_r+0x20>)
  21460. 8009870: 602a str r2, [r5, #0]
  21461. 8009872: 461a mov r2, r3
  21462. 8009874: f7f8 fd16 bl 80022a4 <_lseek>
  21463. 8009878: 1c43 adds r3, r0, #1
  21464. 800987a: d102 bne.n 8009882 <_lseek_r+0x1e>
  21465. 800987c: 682b ldr r3, [r5, #0]
  21466. 800987e: b103 cbz r3, 8009882 <_lseek_r+0x1e>
  21467. 8009880: 6023 str r3, [r4, #0]
  21468. 8009882: bd38 pop {r3, r4, r5, pc}
  21469. 8009884: 200006f4 .word 0x200006f4
  21470. 08009888 <_read_r>:
  21471. 8009888: b538 push {r3, r4, r5, lr}
  21472. 800988a: 4604 mov r4, r0
  21473. 800988c: 4608 mov r0, r1
  21474. 800988e: 4611 mov r1, r2
  21475. 8009890: 2200 movs r2, #0
  21476. 8009892: 4d05 ldr r5, [pc, #20] ; (80098a8 <_read_r+0x20>)
  21477. 8009894: 602a str r2, [r5, #0]
  21478. 8009896: 461a mov r2, r3
  21479. 8009898: f7f8 fca7 bl 80021ea <_read>
  21480. 800989c: 1c43 adds r3, r0, #1
  21481. 800989e: d102 bne.n 80098a6 <_read_r+0x1e>
  21482. 80098a0: 682b ldr r3, [r5, #0]
  21483. 80098a2: b103 cbz r3, 80098a6 <_read_r+0x1e>
  21484. 80098a4: 6023 str r3, [r4, #0]
  21485. 80098a6: bd38 pop {r3, r4, r5, pc}
  21486. 80098a8: 200006f4 .word 0x200006f4
  21487. 080098ac <_init>:
  21488. 80098ac: b5f8 push {r3, r4, r5, r6, r7, lr}
  21489. 80098ae: bf00 nop
  21490. 80098b0: bcf8 pop {r3, r4, r5, r6, r7}
  21491. 80098b2: bc08 pop {r3}
  21492. 80098b4: 469e mov lr, r3
  21493. 80098b6: 4770 bx lr
  21494. 080098b8 <_fini>:
  21495. 80098b8: b5f8 push {r3, r4, r5, r6, r7, lr}
  21496. 80098ba: bf00 nop
  21497. 80098bc: bcf8 pop {r3, r4, r5, r6, r7}
  21498. 80098be: bc08 pop {r3}
  21499. 80098c0: 469e mov lr, r3
  21500. 80098c2: 4770 bx lr