dosim-v1.list 802 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704
  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 00009244 08000140 08000140 00010140 2**3
  7. CONTENTS, ALLOC, LOAD, READONLY, CODE
  8. 2 .rodata 0000116c 08009388 08009388 00019388 2**3
  9. CONTENTS, ALLOC, LOAD, READONLY, DATA
  10. 3 .ARM.extab 00000000 0800a4f4 0800a4f4 000201e4 2**0
  11. CONTENTS
  12. 4 .ARM 00000008 0800a4f4 0800a4f4 0001a4f4 2**2
  13. CONTENTS, ALLOC, LOAD, READONLY, DATA
  14. 5 .preinit_array 00000000 0800a4fc 0800a4fc 000201e4 2**0
  15. CONTENTS, ALLOC, LOAD, DATA
  16. 6 .init_array 00000004 0800a4fc 0800a4fc 0001a4fc 2**2
  17. CONTENTS, ALLOC, LOAD, DATA
  18. 7 .fini_array 00000004 0800a500 0800a500 0001a500 2**2
  19. CONTENTS, ALLOC, LOAD, DATA
  20. 8 .data 000001e4 20000000 0800a504 00020000 2**2
  21. CONTENTS, ALLOC, LOAD, DATA
  22. 9 .bss 000004cc 200001e4 0800a6e8 000201e4 2**2
  23. ALLOC
  24. 10 ._user_heap_stack 00000600 200006b0 0800a6e8 000206b0 2**0
  25. ALLOC
  26. 11 .ARM.attributes 00000029 00000000 00000000 000201e4 2**0
  27. CONTENTS, READONLY
  28. 12 .debug_info 00013e29 00000000 00000000 0002020d 2**0
  29. CONTENTS, READONLY, DEBUGGING, OCTETS
  30. 13 .debug_abbrev 00002bf5 00000000 00000000 00034036 2**0
  31. CONTENTS, READONLY, DEBUGGING, OCTETS
  32. 14 .debug_aranges 000011e0 00000000 00000000 00036c30 2**3
  33. CONTENTS, READONLY, DEBUGGING, OCTETS
  34. 15 .debug_ranges 000010e8 00000000 00000000 00037e10 2**3
  35. CONTENTS, READONLY, DEBUGGING, OCTETS
  36. 16 .debug_macro 000171e3 00000000 00000000 00038ef8 2**0
  37. CONTENTS, READONLY, DEBUGGING, OCTETS
  38. 17 .debug_line 0001385e 00000000 00000000 000500db 2**0
  39. CONTENTS, READONLY, DEBUGGING, OCTETS
  40. 18 .debug_str 0008cae7 00000000 00000000 00063939 2**0
  41. CONTENTS, READONLY, DEBUGGING, OCTETS
  42. 19 .comment 00000053 00000000 00000000 000f0420 2**0
  43. CONTENTS, READONLY
  44. 20 .debug_frame 00005d70 00000000 00000000 000f0474 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: 0800936c .word 0x0800936c
  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: 0800936c .word 0x0800936c
  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: 20000630 .word 0x20000630
  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: 20000630 .word 0x20000630
  1393. 8001054: 20000544 .word 0x20000544
  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: 20000690 .word 0x20000690
  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 f87d bl 80031a4 <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: 20000530 .word 0x20000530
  1443. 080010b8 <main>:
  1444. /**
  1445. * @brief The application entry point.
  1446. * @retval int
  1447. */
  1448. int main(void)
  1449. {
  1450. 80010b8: b580 push {r7, lr}
  1451. 80010ba: b08e sub sp, #56 ; 0x38
  1452. 80010bc: af02 add r7, sp, #8
  1453. /* USER CODE END 1 */
  1454. /* MCU Configuration--------------------------------------------------------*/
  1455. /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  1456. HAL_Init();
  1457. 80010be: f001 f828 bl 8002112 <HAL_Init>
  1458. /* USER CODE BEGIN Init */
  1459. /* USER CODE END Init */
  1460. /* Configure the system clock */
  1461. SystemClock_Config();
  1462. 80010c2: f000 f905 bl 80012d0 <SystemClock_Config>
  1463. /* USER CODE BEGIN SysInit */
  1464. /* USER CODE END SysInit */
  1465. /* Initialize all configured peripherals */
  1466. MX_DMA_Init();
  1467. 80010c6: f000 fbe3 bl 8001890 <MX_DMA_Init>
  1468. MX_GPIO_Init();
  1469. 80010ca: f000 fbff bl 80018cc <MX_GPIO_Init>
  1470. MX_ADC_Init();
  1471. 80010ce: f000 f94f bl 8001370 <MX_ADC_Init>
  1472. MX_DAC_Init();
  1473. 80010d2: f000 f9eb bl 80014ac <MX_DAC_Init>
  1474. MX_I2C2_Init();
  1475. 80010d6: f000 fa1f bl 8001518 <MX_I2C2_Init>
  1476. MX_COMP2_Init();
  1477. 80010da: f000 f9bf bl 800145c <MX_COMP2_Init>
  1478. MX_USART1_UART_Init();
  1479. 80010de: f000 fbad bl 800183c <MX_USART1_UART_Init>
  1480. MX_TIM6_Init();
  1481. 80010e2: f000 fb75 bl 80017d0 <MX_TIM6_Init>
  1482. MX_TIM4_Init();
  1483. 80010e6: f000 fb25 bl 8001734 <MX_TIM4_Init>
  1484. MX_TIM3_Init();
  1485. 80010ea: f000 fa99 bl 8001620 <MX_TIM3_Init>
  1486. MX_TIM2_Init();
  1487. 80010ee: f000 fa41 bl 8001574 <MX_TIM2_Init>
  1488. /* USER CODE BEGIN 2 */
  1489. ssd1306_Init();
  1490. 80010f2: f004 ffc1 bl 8006078 <ssd1306_Init>
  1491. ssd1306_Fill(Black);
  1492. 80010f6: 2000 movs r0, #0
  1493. 80010f8: f005 f828 bl 800614c <ssd1306_Fill>
  1494. ssd1306_UpdateScreen();
  1495. 80010fc: f005 f848 bl 8006190 <ssd1306_UpdateScreen>
  1496. HAL_DAC_Start(&hdac, DAC_CHANNEL_1);
  1497. 8001100: 2100 movs r1, #0
  1498. 8001102: 4865 ldr r0, [pc, #404] ; (8001298 <main+0x1e0>)
  1499. 8001104: f001 fffd bl 8003102 <HAL_DAC_Start>
  1500. HAL_DAC_Start(&hdac, DAC_CHANNEL_2);
  1501. 8001108: 2110 movs r1, #16
  1502. 800110a: 4863 ldr r0, [pc, #396] ; (8001298 <main+0x1e0>)
  1503. 800110c: f001 fff9 bl 8003102 <HAL_DAC_Start>
  1504. HAL_DAC_SetValue(&hdac, DAC_CHANNEL_1, DAC_ALIGN_12B_R, 0xB50);
  1505. 8001110: f44f 6335 mov.w r3, #2896 ; 0xb50
  1506. 8001114: 2200 movs r2, #0
  1507. 8001116: 2100 movs r1, #0
  1508. 8001118: 485f ldr r0, [pc, #380] ; (8001298 <main+0x1e0>)
  1509. 800111a: f002 f843 bl 80031a4 <HAL_DAC_SetValue>
  1510. HAL_DAC_SetValue(&hdac, DAC_CHANNEL_2, DAC_ALIGN_12B_R, 0x100);
  1511. 800111e: f44f 7380 mov.w r3, #256 ; 0x100
  1512. 8001122: 2200 movs r2, #0
  1513. 8001124: 2110 movs r1, #16
  1514. 8001126: 485c ldr r0, [pc, #368] ; (8001298 <main+0x1e0>)
  1515. 8001128: f002 f83c bl 80031a4 <HAL_DAC_SetValue>
  1516. HAL_Delay(10);
  1517. 800112c: 200a movs r0, #10
  1518. 800112e: f001 f85f bl 80021f0 <HAL_Delay>
  1519. HAL_ADC_Start_DMA(&hadc, (uint32_t*)&adc_meas, 3);
  1520. 8001132: 2203 movs r2, #3
  1521. 8001134: 4959 ldr r1, [pc, #356] ; (800129c <main+0x1e4>)
  1522. 8001136: 485a ldr r0, [pc, #360] ; (80012a0 <main+0x1e8>)
  1523. 8001138: f001 f9c2 bl 80024c0 <HAL_ADC_Start_DMA>
  1524. HAL_Delay(10);
  1525. 800113c: 200a movs r0, #10
  1526. 800113e: f001 f857 bl 80021f0 <HAL_Delay>
  1527. HAL_ADC_Stop_DMA(&hadc);
  1528. 8001142: 4857 ldr r0, [pc, #348] ; (80012a0 <main+0x1e8>)
  1529. 8001144: f001 fa4a bl 80025dc <HAL_ADC_Stop_DMA>
  1530. //uint32_t curr_vcc = GetVcc();
  1531. SetDACVoltage(DAC_CHANNEL_1, 2100);
  1532. 8001148: f640 0134 movw r1, #2100 ; 0x834
  1533. 800114c: 2000 movs r0, #0
  1534. 800114e: f7ff ff99 bl 8001084 <SetDACVoltage>
  1535. SetDACVoltage(DAC_CHANNEL_2, 130);
  1536. 8001152: 2182 movs r1, #130 ; 0x82
  1537. 8001154: 2010 movs r0, #16
  1538. 8001156: f7ff ff95 bl 8001084 <SetDACVoltage>
  1539. HAL_COMP_Start_IT(&hcomp2);
  1540. 800115a: 4852 ldr r0, [pc, #328] ; (80012a4 <main+0x1ec>)
  1541. 800115c: f001 fe28 bl 8002db0 <HAL_COMP_Start_IT>
  1542. HAL_TIM_Base_Start_IT(&htim6);
  1543. 8001160: 4851 ldr r0, [pc, #324] ; (80012a8 <main+0x1f0>)
  1544. 8001162: f003 fedb bl 8004f1c <HAL_TIM_Base_Start_IT>
  1545. HAL_TIM_Base_Start_IT(&htim4);
  1546. 8001166: 4851 ldr r0, [pc, #324] ; (80012ac <main+0x1f4>)
  1547. 8001168: f003 fed8 bl 8004f1c <HAL_TIM_Base_Start_IT>
  1548. HAL_TIM_OC_Start(&htim3, TIM_CHANNEL_4);
  1549. 800116c: 210c movs r1, #12
  1550. 800116e: 4850 ldr r0, [pc, #320] ; (80012b0 <main+0x1f8>)
  1551. 8001170: f003 ff26 bl 8004fc0 <HAL_TIM_OC_Start>
  1552. /* USER CODE END 2 */
  1553. /* Infinite loop */
  1554. /* USER CODE BEGIN WHILE */
  1555. char tempstr[32];
  1556. uint32_t pps = 0;
  1557. 8001174: 2300 movs r3, #0
  1558. 8001176: 62fb str r3, [r7, #44] ; 0x2c
  1559. uint32_t pps_avg = 0;
  1560. 8001178: 2300 movs r3, #0
  1561. 800117a: 62bb str r3, [r7, #40] ; 0x28
  1562. uint32_t test = 0;
  1563. 800117c: 2300 movs r3, #0
  1564. 800117e: 627b str r3, [r7, #36] ; 0x24
  1565. while (1)
  1566. {
  1567. if(Flags.Exti)
  1568. 8001180: 4b4c ldr r3, [pc, #304] ; (80012b4 <main+0x1fc>)
  1569. 8001182: 895b ldrh r3, [r3, #10]
  1570. 8001184: b29b uxth r3, r3
  1571. 8001186: 2b00 cmp r3, #0
  1572. 8001188: d006 beq.n 8001198 <main+0xe0>
  1573. {
  1574. test = Flags.Exti;
  1575. 800118a: 4b4a ldr r3, [pc, #296] ; (80012b4 <main+0x1fc>)
  1576. 800118c: 895b ldrh r3, [r3, #10]
  1577. 800118e: b29b uxth r3, r3
  1578. 8001190: 627b str r3, [r7, #36] ; 0x24
  1579. Flags.Exti = 0;
  1580. 8001192: 4b48 ldr r3, [pc, #288] ; (80012b4 <main+0x1fc>)
  1581. 8001194: 2200 movs r2, #0
  1582. 8001196: 815a strh r2, [r3, #10]
  1583. }
  1584. if(Flags.Tim6)
  1585. 8001198: 4b46 ldr r3, [pc, #280] ; (80012b4 <main+0x1fc>)
  1586. 800119a: 88db ldrh r3, [r3, #6]
  1587. 800119c: b29b uxth r3, r3
  1588. 800119e: 2b00 cmp r3, #0
  1589. 80011a0: d044 beq.n 800122c <main+0x174>
  1590. {
  1591. Flags.Tim6 = 0;
  1592. 80011a2: 4b44 ldr r3, [pc, #272] ; (80012b4 <main+0x1fc>)
  1593. 80011a4: 2200 movs r2, #0
  1594. 80011a6: 80da strh r2, [r3, #6]
  1595. HAL_ADC_Stop_DMA(&hadc);
  1596. 80011a8: 483d ldr r0, [pc, #244] ; (80012a0 <main+0x1e8>)
  1597. 80011aa: f001 fa17 bl 80025dc <HAL_ADC_Stop_DMA>
  1598. if((pps / pps_avg > 2) || (pps_avg / pps > 2))
  1599. 80011ae: 6afa ldr r2, [r7, #44] ; 0x2c
  1600. 80011b0: 6abb ldr r3, [r7, #40] ; 0x28
  1601. 80011b2: fbb2 f3f3 udiv r3, r2, r3
  1602. 80011b6: 2b02 cmp r3, #2
  1603. 80011b8: d805 bhi.n 80011c6 <main+0x10e>
  1604. 80011ba: 6aba ldr r2, [r7, #40] ; 0x28
  1605. 80011bc: 6afb ldr r3, [r7, #44] ; 0x2c
  1606. 80011be: fbb2 f3f3 udiv r3, r2, r3
  1607. 80011c2: 2b02 cmp r3, #2
  1608. 80011c4: d902 bls.n 80011cc <main+0x114>
  1609. {
  1610. pps_avg = pps;
  1611. 80011c6: 6afb ldr r3, [r7, #44] ; 0x2c
  1612. 80011c8: 62bb str r3, [r7, #40] ; 0x28
  1613. 80011ca: e004 b.n 80011d6 <main+0x11e>
  1614. }
  1615. else
  1616. {
  1617. pps_avg = (pps + pps_avg) / 2;
  1618. 80011cc: 6afa ldr r2, [r7, #44] ; 0x2c
  1619. 80011ce: 6abb ldr r3, [r7, #40] ; 0x28
  1620. 80011d0: 4413 add r3, r2
  1621. 80011d2: 085b lsrs r3, r3, #1
  1622. 80011d4: 62bb str r3, [r7, #40] ; 0x28
  1623. }
  1624. sprintf(tempstr, "%5.2f uSv/h", (float)pps_avg / 100.0);
  1625. 80011d6: 6ab8 ldr r0, [r7, #40] ; 0x28
  1626. 80011d8: f7ff fd24 bl 8000c24 <__aeabi_ui2f>
  1627. 80011dc: 4603 mov r3, r0
  1628. 80011de: 4618 mov r0, r3
  1629. 80011e0: f7ff f93a bl 8000458 <__aeabi_f2d>
  1630. 80011e4: f04f 0200 mov.w r2, #0
  1631. 80011e8: 4b33 ldr r3, [pc, #204] ; (80012b8 <main+0x200>)
  1632. 80011ea: f7ff fab7 bl 800075c <__aeabi_ddiv>
  1633. 80011ee: 4602 mov r2, r0
  1634. 80011f0: 460b mov r3, r1
  1635. 80011f2: 4638 mov r0, r7
  1636. 80011f4: 4931 ldr r1, [pc, #196] ; (80012bc <main+0x204>)
  1637. 80011f6: f005 fea7 bl 8006f48 <siprintf>
  1638. ssd1306_DrawRectangle(0, 0, SSD1306_WIDTH - 1, SSD1306_HEIGHT - 1, White);
  1639. 80011fa: 2301 movs r3, #1
  1640. 80011fc: 9300 str r3, [sp, #0]
  1641. 80011fe: 231f movs r3, #31
  1642. 8001200: 227f movs r2, #127 ; 0x7f
  1643. 8001202: 2100 movs r1, #0
  1644. 8001204: 2000 movs r0, #0
  1645. 8001206: f005 f97d bl 8006504 <ssd1306_DrawRectangle>
  1646. ssd1306_SetCursor(1, 7);
  1647. 800120a: 2107 movs r1, #7
  1648. 800120c: 2001 movs r0, #1
  1649. 800120e: f005 f8f5 bl 80063fc <ssd1306_SetCursor>
  1650. ssd1306_WriteString(tempstr, Font_11x18, White);
  1651. 8001212: 4a2b ldr r2, [pc, #172] ; (80012c0 <main+0x208>)
  1652. 8001214: 4638 mov r0, r7
  1653. 8001216: 2301 movs r3, #1
  1654. 8001218: ca06 ldmia r2, {r1, r2}
  1655. 800121a: f005 f8c9 bl 80063b0 <ssd1306_WriteString>
  1656. ssd1306_UpdateScreen();
  1657. 800121e: f004 ffb7 bl 8006190 <ssd1306_UpdateScreen>
  1658. HAL_ADC_Start_DMA(&hadc, (uint32_t*)&adc_meas, 3);
  1659. 8001222: 2203 movs r2, #3
  1660. 8001224: 491d ldr r1, [pc, #116] ; (800129c <main+0x1e4>)
  1661. 8001226: 481e ldr r0, [pc, #120] ; (80012a0 <main+0x1e8>)
  1662. 8001228: f001 f94a bl 80024c0 <HAL_ADC_Start_DMA>
  1663. }
  1664. if(pulses > 50 || Flags.Tim4 > 3)
  1665. 800122c: 4b25 ldr r3, [pc, #148] ; (80012c4 <main+0x20c>)
  1666. 800122e: 681b ldr r3, [r3, #0]
  1667. 8001230: 2b32 cmp r3, #50 ; 0x32
  1668. 8001232: d804 bhi.n 800123e <main+0x186>
  1669. 8001234: 4b1f ldr r3, [pc, #124] ; (80012b4 <main+0x1fc>)
  1670. 8001236: 889b ldrh r3, [r3, #4]
  1671. 8001238: b29b uxth r3, r3
  1672. 800123a: 2b03 cmp r3, #3
  1673. 800123c: d9a0 bls.n 8001180 <main+0xc8>
  1674. {
  1675. uint32_t elapsed = htim4.Instance->CNT + (Flags.Tim4 * 50000);
  1676. 800123e: 4b1b ldr r3, [pc, #108] ; (80012ac <main+0x1f4>)
  1677. 8001240: 681b ldr r3, [r3, #0]
  1678. 8001242: 6a5b ldr r3, [r3, #36] ; 0x24
  1679. 8001244: 4a1b ldr r2, [pc, #108] ; (80012b4 <main+0x1fc>)
  1680. 8001246: 8892 ldrh r2, [r2, #4]
  1681. 8001248: b292 uxth r2, r2
  1682. 800124a: 4611 mov r1, r2
  1683. 800124c: f24c 3250 movw r2, #50000 ; 0xc350
  1684. 8001250: fb02 f201 mul.w r2, r2, r1
  1685. 8001254: 4413 add r3, r2
  1686. 8001256: 623b str r3, [r7, #32]
  1687. HAL_TIM_Base_Stop(&htim4);
  1688. 8001258: 4814 ldr r0, [pc, #80] ; (80012ac <main+0x1f4>)
  1689. 800125a: f003 fe41 bl 8004ee0 <HAL_TIM_Base_Stop>
  1690. pps = (pulses * 100000) / elapsed;
  1691. 800125e: 4b19 ldr r3, [pc, #100] ; (80012c4 <main+0x20c>)
  1692. 8001260: 681b ldr r3, [r3, #0]
  1693. 8001262: 4a19 ldr r2, [pc, #100] ; (80012c8 <main+0x210>)
  1694. 8001264: fb02 f203 mul.w r2, r2, r3
  1695. 8001268: 6a3b ldr r3, [r7, #32]
  1696. 800126a: fbb2 f3f3 udiv r3, r2, r3
  1697. 800126e: 62fb str r3, [r7, #44] ; 0x2c
  1698. pulses = 0;
  1699. 8001270: 4b14 ldr r3, [pc, #80] ; (80012c4 <main+0x20c>)
  1700. 8001272: 2200 movs r2, #0
  1701. 8001274: 601a str r2, [r3, #0]
  1702. Flags.Tim4 = 0;
  1703. 8001276: 4b0f ldr r3, [pc, #60] ; (80012b4 <main+0x1fc>)
  1704. 8001278: 2200 movs r2, #0
  1705. 800127a: 809a strh r2, [r3, #4]
  1706. htim4.Instance->CNT = 0;
  1707. 800127c: 4b0b ldr r3, [pc, #44] ; (80012ac <main+0x1f4>)
  1708. 800127e: 681b ldr r3, [r3, #0]
  1709. 8001280: 2200 movs r2, #0
  1710. 8001282: 625a str r2, [r3, #36] ; 0x24
  1711. HAL_TIM_Base_Start(&htim4);
  1712. 8001284: 4809 ldr r0, [pc, #36] ; (80012ac <main+0x1f4>)
  1713. 8001286: f003 fde1 bl 8004e4c <HAL_TIM_Base_Start>
  1714. HAL_TIM_Base_Stop(&htim2);
  1715. 800128a: 4810 ldr r0, [pc, #64] ; (80012cc <main+0x214>)
  1716. 800128c: f003 fe28 bl 8004ee0 <HAL_TIM_Base_Stop>
  1717. HAL_TIM_Base_Start(&htim2);
  1718. 8001290: 480e ldr r0, [pc, #56] ; (80012cc <main+0x214>)
  1719. 8001292: f003 fddb bl 8004e4c <HAL_TIM_Base_Start>
  1720. if(Flags.Exti)
  1721. 8001296: e773 b.n 8001180 <main+0xc8>
  1722. 8001298: 20000530 .word 0x20000530
  1723. 800129c: 20000690 .word 0x20000690
  1724. 80012a0: 2000063c .word 0x2000063c
  1725. 80012a4: 20000584 .word 0x20000584
  1726. 80012a8: 20000544 .word 0x20000544
  1727. 80012ac: 20000418 .word 0x20000418
  1728. 80012b0: 200004ac .word 0x200004ac
  1729. 80012b4: 20000630 .word 0x20000630
  1730. 80012b8: 40590000 .word 0x40590000
  1731. 80012bc: 08009388 .word 0x08009388
  1732. 80012c0: 2000000c .word 0x2000000c
  1733. 80012c4: 20000200 .word 0x20000200
  1734. 80012c8: 000186a0 .word 0x000186a0
  1735. 80012cc: 200005ac .word 0x200005ac
  1736. 080012d0 <SystemClock_Config>:
  1737. /**
  1738. * @brief System Clock Configuration
  1739. * @retval None
  1740. */
  1741. void SystemClock_Config(void)
  1742. {
  1743. 80012d0: b580 push {r7, lr}
  1744. 80012d2: b092 sub sp, #72 ; 0x48
  1745. 80012d4: af00 add r7, sp, #0
  1746. RCC_OscInitTypeDef RCC_OscInitStruct = {0};
  1747. 80012d6: f107 0314 add.w r3, r7, #20
  1748. 80012da: 2234 movs r2, #52 ; 0x34
  1749. 80012dc: 2100 movs r1, #0
  1750. 80012de: 4618 mov r0, r3
  1751. 80012e0: f005 f9ca bl 8006678 <memset>
  1752. RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
  1753. 80012e4: 463b mov r3, r7
  1754. 80012e6: 2200 movs r2, #0
  1755. 80012e8: 601a str r2, [r3, #0]
  1756. 80012ea: 605a str r2, [r3, #4]
  1757. 80012ec: 609a str r2, [r3, #8]
  1758. 80012ee: 60da str r2, [r3, #12]
  1759. 80012f0: 611a str r2, [r3, #16]
  1760. /** Configure the main internal regulator output voltage
  1761. */
  1762. __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
  1763. 80012f2: 4b1e ldr r3, [pc, #120] ; (800136c <SystemClock_Config+0x9c>)
  1764. 80012f4: 681b ldr r3, [r3, #0]
  1765. 80012f6: f423 53c0 bic.w r3, r3, #6144 ; 0x1800
  1766. 80012fa: 4a1c ldr r2, [pc, #112] ; (800136c <SystemClock_Config+0x9c>)
  1767. 80012fc: f443 6300 orr.w r3, r3, #2048 ; 0x800
  1768. 8001300: 6013 str r3, [r2, #0]
  1769. /** Initializes the RCC Oscillators according to the specified parameters
  1770. * in the RCC_OscInitTypeDef structure.
  1771. */
  1772. RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE;
  1773. 8001302: 2303 movs r3, #3
  1774. 8001304: 617b str r3, [r7, #20]
  1775. RCC_OscInitStruct.HSEState = RCC_HSE_ON;
  1776. 8001306: 2301 movs r3, #1
  1777. 8001308: 61bb str r3, [r7, #24]
  1778. RCC_OscInitStruct.HSIState = RCC_HSI_ON;
  1779. 800130a: 2301 movs r3, #1
  1780. 800130c: 623b str r3, [r7, #32]
  1781. RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
  1782. 800130e: 2310 movs r3, #16
  1783. 8001310: 627b str r3, [r7, #36] ; 0x24
  1784. RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
  1785. 8001312: 2302 movs r3, #2
  1786. 8001314: 63bb str r3, [r7, #56] ; 0x38
  1787. RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
  1788. 8001316: f44f 3380 mov.w r3, #65536 ; 0x10000
  1789. 800131a: 63fb str r3, [r7, #60] ; 0x3c
  1790. RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;
  1791. 800131c: f44f 1380 mov.w r3, #1048576 ; 0x100000
  1792. 8001320: 643b str r3, [r7, #64] ; 0x40
  1793. RCC_OscInitStruct.PLL.PLLDIV = RCC_PLL_DIV3;
  1794. 8001322: f44f 0300 mov.w r3, #8388608 ; 0x800000
  1795. 8001326: 647b str r3, [r7, #68] ; 0x44
  1796. if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
  1797. 8001328: f107 0314 add.w r3, r7, #20
  1798. 800132c: 4618 mov r0, r3
  1799. 800132e: f002 ff89 bl 8004244 <HAL_RCC_OscConfig>
  1800. 8001332: 4603 mov r3, r0
  1801. 8001334: 2b00 cmp r3, #0
  1802. 8001336: d001 beq.n 800133c <SystemClock_Config+0x6c>
  1803. {
  1804. Error_Handler();
  1805. 8001338: f000 fb60 bl 80019fc <Error_Handler>
  1806. }
  1807. /** Initializes the CPU, AHB and APB buses clocks
  1808. */
  1809. RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
  1810. 800133c: 230f movs r3, #15
  1811. 800133e: 603b str r3, [r7, #0]
  1812. |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
  1813. RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
  1814. 8001340: 2303 movs r3, #3
  1815. 8001342: 607b str r3, [r7, #4]
  1816. RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
  1817. 8001344: 2300 movs r3, #0
  1818. 8001346: 60bb str r3, [r7, #8]
  1819. RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
  1820. 8001348: 2300 movs r3, #0
  1821. 800134a: 60fb str r3, [r7, #12]
  1822. RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
  1823. 800134c: 2300 movs r3, #0
  1824. 800134e: 613b str r3, [r7, #16]
  1825. if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK)
  1826. 8001350: 463b mov r3, r7
  1827. 8001352: 2101 movs r1, #1
  1828. 8001354: 4618 mov r0, r3
  1829. 8001356: f003 faa5 bl 80048a4 <HAL_RCC_ClockConfig>
  1830. 800135a: 4603 mov r3, r0
  1831. 800135c: 2b00 cmp r3, #0
  1832. 800135e: d001 beq.n 8001364 <SystemClock_Config+0x94>
  1833. {
  1834. Error_Handler();
  1835. 8001360: f000 fb4c bl 80019fc <Error_Handler>
  1836. }
  1837. }
  1838. 8001364: bf00 nop
  1839. 8001366: 3748 adds r7, #72 ; 0x48
  1840. 8001368: 46bd mov sp, r7
  1841. 800136a: bd80 pop {r7, pc}
  1842. 800136c: 40007000 .word 0x40007000
  1843. 08001370 <MX_ADC_Init>:
  1844. * @brief ADC Initialization Function
  1845. * @param None
  1846. * @retval None
  1847. */
  1848. static void MX_ADC_Init(void)
  1849. {
  1850. 8001370: b580 push {r7, lr}
  1851. 8001372: b084 sub sp, #16
  1852. 8001374: af00 add r7, sp, #0
  1853. /* USER CODE BEGIN ADC_Init 0 */
  1854. /* USER CODE END ADC_Init 0 */
  1855. ADC_ChannelConfTypeDef sConfig = {0};
  1856. 8001376: 1d3b adds r3, r7, #4
  1857. 8001378: 2200 movs r2, #0
  1858. 800137a: 601a str r2, [r3, #0]
  1859. 800137c: 605a str r2, [r3, #4]
  1860. 800137e: 609a str r2, [r3, #8]
  1861. /* USER CODE BEGIN ADC_Init 1 */
  1862. /* USER CODE END ADC_Init 1 */
  1863. /** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
  1864. */
  1865. hadc.Instance = ADC1;
  1866. 8001380: 4b34 ldr r3, [pc, #208] ; (8001454 <MX_ADC_Init+0xe4>)
  1867. 8001382: 4a35 ldr r2, [pc, #212] ; (8001458 <MX_ADC_Init+0xe8>)
  1868. 8001384: 601a str r2, [r3, #0]
  1869. hadc.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  1870. 8001386: 4b33 ldr r3, [pc, #204] ; (8001454 <MX_ADC_Init+0xe4>)
  1871. 8001388: 2200 movs r2, #0
  1872. 800138a: 605a str r2, [r3, #4]
  1873. hadc.Init.Resolution = ADC_RESOLUTION_12B;
  1874. 800138c: 4b31 ldr r3, [pc, #196] ; (8001454 <MX_ADC_Init+0xe4>)
  1875. 800138e: 2200 movs r2, #0
  1876. 8001390: 609a str r2, [r3, #8]
  1877. hadc.Init.DataAlign = ADC_DATAALIGN_RIGHT;
  1878. 8001392: 4b30 ldr r3, [pc, #192] ; (8001454 <MX_ADC_Init+0xe4>)
  1879. 8001394: 2200 movs r2, #0
  1880. 8001396: 60da str r2, [r3, #12]
  1881. hadc.Init.ScanConvMode = ADC_SCAN_ENABLE;
  1882. 8001398: 4b2e ldr r3, [pc, #184] ; (8001454 <MX_ADC_Init+0xe4>)
  1883. 800139a: f44f 7280 mov.w r2, #256 ; 0x100
  1884. 800139e: 611a str r2, [r3, #16]
  1885. hadc.Init.EOCSelection = ADC_EOC_SEQ_CONV;
  1886. 80013a0: 4b2c ldr r3, [pc, #176] ; (8001454 <MX_ADC_Init+0xe4>)
  1887. 80013a2: 2200 movs r2, #0
  1888. 80013a4: 615a str r2, [r3, #20]
  1889. hadc.Init.LowPowerAutoWait = ADC_AUTOWAIT_DISABLE;
  1890. 80013a6: 4b2b ldr r3, [pc, #172] ; (8001454 <MX_ADC_Init+0xe4>)
  1891. 80013a8: 2200 movs r2, #0
  1892. 80013aa: 619a str r2, [r3, #24]
  1893. hadc.Init.LowPowerAutoPowerOff = ADC_AUTOPOWEROFF_DISABLE;
  1894. 80013ac: 4b29 ldr r3, [pc, #164] ; (8001454 <MX_ADC_Init+0xe4>)
  1895. 80013ae: 2200 movs r2, #0
  1896. 80013b0: 61da str r2, [r3, #28]
  1897. hadc.Init.ChannelsBank = ADC_CHANNELS_BANK_A;
  1898. 80013b2: 4b28 ldr r3, [pc, #160] ; (8001454 <MX_ADC_Init+0xe4>)
  1899. 80013b4: 2200 movs r2, #0
  1900. 80013b6: 621a str r2, [r3, #32]
  1901. hadc.Init.ContinuousConvMode = DISABLE;
  1902. 80013b8: 4b26 ldr r3, [pc, #152] ; (8001454 <MX_ADC_Init+0xe4>)
  1903. 80013ba: 2200 movs r2, #0
  1904. 80013bc: f883 2024 strb.w r2, [r3, #36] ; 0x24
  1905. hadc.Init.NbrOfConversion = 3;
  1906. 80013c0: 4b24 ldr r3, [pc, #144] ; (8001454 <MX_ADC_Init+0xe4>)
  1907. 80013c2: 2203 movs r2, #3
  1908. 80013c4: 629a str r2, [r3, #40] ; 0x28
  1909. hadc.Init.DiscontinuousConvMode = DISABLE;
  1910. 80013c6: 4b23 ldr r3, [pc, #140] ; (8001454 <MX_ADC_Init+0xe4>)
  1911. 80013c8: 2200 movs r2, #0
  1912. 80013ca: f883 202c strb.w r2, [r3, #44] ; 0x2c
  1913. hadc.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  1914. 80013ce: 4b21 ldr r3, [pc, #132] ; (8001454 <MX_ADC_Init+0xe4>)
  1915. 80013d0: 2210 movs r2, #16
  1916. 80013d2: 635a str r2, [r3, #52] ; 0x34
  1917. hadc.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
  1918. 80013d4: 4b1f ldr r3, [pc, #124] ; (8001454 <MX_ADC_Init+0xe4>)
  1919. 80013d6: 2200 movs r2, #0
  1920. 80013d8: 639a str r2, [r3, #56] ; 0x38
  1921. hadc.Init.DMAContinuousRequests = DISABLE;
  1922. 80013da: 4b1e ldr r3, [pc, #120] ; (8001454 <MX_ADC_Init+0xe4>)
  1923. 80013dc: 2200 movs r2, #0
  1924. 80013de: f883 203c strb.w r2, [r3, #60] ; 0x3c
  1925. if (HAL_ADC_Init(&hadc) != HAL_OK)
  1926. 80013e2: 481c ldr r0, [pc, #112] ; (8001454 <MX_ADC_Init+0xe4>)
  1927. 80013e4: f000 ff26 bl 8002234 <HAL_ADC_Init>
  1928. 80013e8: 4603 mov r3, r0
  1929. 80013ea: 2b00 cmp r3, #0
  1930. 80013ec: d001 beq.n 80013f2 <MX_ADC_Init+0x82>
  1931. {
  1932. Error_Handler();
  1933. 80013ee: f000 fb05 bl 80019fc <Error_Handler>
  1934. }
  1935. /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
  1936. */
  1937. sConfig.Channel = ADC_CHANNEL_0;
  1938. 80013f2: 2300 movs r3, #0
  1939. 80013f4: 607b str r3, [r7, #4]
  1940. sConfig.Rank = ADC_REGULAR_RANK_1;
  1941. 80013f6: 2301 movs r3, #1
  1942. 80013f8: 60bb str r3, [r7, #8]
  1943. sConfig.SamplingTime = ADC_SAMPLETIME_48CYCLES;
  1944. 80013fa: 2304 movs r3, #4
  1945. 80013fc: 60fb str r3, [r7, #12]
  1946. if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
  1947. 80013fe: 1d3b adds r3, r7, #4
  1948. 8001400: 4619 mov r1, r3
  1949. 8001402: 4814 ldr r0, [pc, #80] ; (8001454 <MX_ADC_Init+0xe4>)
  1950. 8001404: f001 f956 bl 80026b4 <HAL_ADC_ConfigChannel>
  1951. 8001408: 4603 mov r3, r0
  1952. 800140a: 2b00 cmp r3, #0
  1953. 800140c: d001 beq.n 8001412 <MX_ADC_Init+0xa2>
  1954. {
  1955. Error_Handler();
  1956. 800140e: f000 faf5 bl 80019fc <Error_Handler>
  1957. }
  1958. /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
  1959. */
  1960. sConfig.Channel = ADC_CHANNEL_TEMPSENSOR;
  1961. 8001412: 2310 movs r3, #16
  1962. 8001414: 607b str r3, [r7, #4]
  1963. sConfig.Rank = ADC_REGULAR_RANK_2;
  1964. 8001416: 2302 movs r3, #2
  1965. 8001418: 60bb str r3, [r7, #8]
  1966. if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
  1967. 800141a: 1d3b adds r3, r7, #4
  1968. 800141c: 4619 mov r1, r3
  1969. 800141e: 480d ldr r0, [pc, #52] ; (8001454 <MX_ADC_Init+0xe4>)
  1970. 8001420: f001 f948 bl 80026b4 <HAL_ADC_ConfigChannel>
  1971. 8001424: 4603 mov r3, r0
  1972. 8001426: 2b00 cmp r3, #0
  1973. 8001428: d001 beq.n 800142e <MX_ADC_Init+0xbe>
  1974. {
  1975. Error_Handler();
  1976. 800142a: f000 fae7 bl 80019fc <Error_Handler>
  1977. }
  1978. /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
  1979. */
  1980. sConfig.Channel = ADC_CHANNEL_VREFINT;
  1981. 800142e: 2311 movs r3, #17
  1982. 8001430: 607b str r3, [r7, #4]
  1983. sConfig.Rank = ADC_REGULAR_RANK_3;
  1984. 8001432: 2303 movs r3, #3
  1985. 8001434: 60bb str r3, [r7, #8]
  1986. if (HAL_ADC_ConfigChannel(&hadc, &sConfig) != HAL_OK)
  1987. 8001436: 1d3b adds r3, r7, #4
  1988. 8001438: 4619 mov r1, r3
  1989. 800143a: 4806 ldr r0, [pc, #24] ; (8001454 <MX_ADC_Init+0xe4>)
  1990. 800143c: f001 f93a bl 80026b4 <HAL_ADC_ConfigChannel>
  1991. 8001440: 4603 mov r3, r0
  1992. 8001442: 2b00 cmp r3, #0
  1993. 8001444: d001 beq.n 800144a <MX_ADC_Init+0xda>
  1994. {
  1995. Error_Handler();
  1996. 8001446: f000 fad9 bl 80019fc <Error_Handler>
  1997. }
  1998. /* USER CODE BEGIN ADC_Init 2 */
  1999. /* USER CODE END ADC_Init 2 */
  2000. }
  2001. 800144a: bf00 nop
  2002. 800144c: 3710 adds r7, #16
  2003. 800144e: 46bd mov sp, r7
  2004. 8001450: bd80 pop {r7, pc}
  2005. 8001452: bf00 nop
  2006. 8001454: 2000063c .word 0x2000063c
  2007. 8001458: 40012400 .word 0x40012400
  2008. 0800145c <MX_COMP2_Init>:
  2009. * @brief COMP2 Initialization Function
  2010. * @param None
  2011. * @retval None
  2012. */
  2013. static void MX_COMP2_Init(void)
  2014. {
  2015. 800145c: b580 push {r7, lr}
  2016. 800145e: af00 add r7, sp, #0
  2017. /* USER CODE END COMP2_Init 0 */
  2018. /* USER CODE BEGIN COMP2_Init 1 */
  2019. /* USER CODE END COMP2_Init 1 */
  2020. hcomp2.Instance = COMP2;
  2021. 8001460: 4b10 ldr r3, [pc, #64] ; (80014a4 <MX_COMP2_Init+0x48>)
  2022. 8001462: 4a11 ldr r2, [pc, #68] ; (80014a8 <MX_COMP2_Init+0x4c>)
  2023. 8001464: 601a str r2, [r3, #0]
  2024. hcomp2.Init.InvertingInput = COMP_INVERTINGINPUT_DAC2;
  2025. 8001466: 4b0f ldr r3, [pc, #60] ; (80014a4 <MX_COMP2_Init+0x48>)
  2026. 8001468: f44f 12e0 mov.w r2, #1835008 ; 0x1c0000
  2027. 800146c: 605a str r2, [r3, #4]
  2028. hcomp2.Init.NonInvertingInput = COMP_NONINVERTINGINPUT_PB5;
  2029. 800146e: 4b0d ldr r3, [pc, #52] ; (80014a4 <MX_COMP2_Init+0x48>)
  2030. 8001470: 2220 movs r2, #32
  2031. 8001472: 609a str r2, [r3, #8]
  2032. hcomp2.Init.Output = COMP_OUTPUT_NONE;
  2033. 8001474: 4b0b ldr r3, [pc, #44] ; (80014a4 <MX_COMP2_Init+0x48>)
  2034. 8001476: f44f 0260 mov.w r2, #14680064 ; 0xe00000
  2035. 800147a: 60da str r2, [r3, #12]
  2036. hcomp2.Init.Mode = COMP_MODE_HIGHSPEED;
  2037. 800147c: 4b09 ldr r3, [pc, #36] ; (80014a4 <MX_COMP2_Init+0x48>)
  2038. 800147e: f44f 5280 mov.w r2, #4096 ; 0x1000
  2039. 8001482: 611a str r2, [r3, #16]
  2040. hcomp2.Init.WindowMode = COMP_WINDOWMODE_DISABLE;
  2041. 8001484: 4b07 ldr r3, [pc, #28] ; (80014a4 <MX_COMP2_Init+0x48>)
  2042. 8001486: 2200 movs r2, #0
  2043. 8001488: 615a str r2, [r3, #20]
  2044. hcomp2.Init.TriggerMode = COMP_TRIGGERMODE_IT_RISING;
  2045. 800148a: 4b06 ldr r3, [pc, #24] ; (80014a4 <MX_COMP2_Init+0x48>)
  2046. 800148c: 2201 movs r2, #1
  2047. 800148e: 619a str r2, [r3, #24]
  2048. if (HAL_COMP_Init(&hcomp2) != HAL_OK)
  2049. 8001490: 4804 ldr r0, [pc, #16] ; (80014a4 <MX_COMP2_Init+0x48>)
  2050. 8001492: f001 fb79 bl 8002b88 <HAL_COMP_Init>
  2051. 8001496: 4603 mov r3, r0
  2052. 8001498: 2b00 cmp r3, #0
  2053. 800149a: d001 beq.n 80014a0 <MX_COMP2_Init+0x44>
  2054. {
  2055. Error_Handler();
  2056. 800149c: f000 faae bl 80019fc <Error_Handler>
  2057. }
  2058. /* USER CODE BEGIN COMP2_Init 2 */
  2059. /* USER CODE END COMP2_Init 2 */
  2060. }
  2061. 80014a0: bf00 nop
  2062. 80014a2: bd80 pop {r7, pc}
  2063. 80014a4: 20000584 .word 0x20000584
  2064. 80014a8: 40007c01 .word 0x40007c01
  2065. 080014ac <MX_DAC_Init>:
  2066. * @brief DAC Initialization Function
  2067. * @param None
  2068. * @retval None
  2069. */
  2070. static void MX_DAC_Init(void)
  2071. {
  2072. 80014ac: b580 push {r7, lr}
  2073. 80014ae: b082 sub sp, #8
  2074. 80014b0: af00 add r7, sp, #0
  2075. /* USER CODE BEGIN DAC_Init 0 */
  2076. /* USER CODE END DAC_Init 0 */
  2077. DAC_ChannelConfTypeDef sConfig = {0};
  2078. 80014b2: 463b mov r3, r7
  2079. 80014b4: 2200 movs r2, #0
  2080. 80014b6: 601a str r2, [r3, #0]
  2081. 80014b8: 605a str r2, [r3, #4]
  2082. /* USER CODE BEGIN DAC_Init 1 */
  2083. /* USER CODE END DAC_Init 1 */
  2084. /** DAC Initialization
  2085. */
  2086. hdac.Instance = DAC;
  2087. 80014ba: 4b15 ldr r3, [pc, #84] ; (8001510 <MX_DAC_Init+0x64>)
  2088. 80014bc: 4a15 ldr r2, [pc, #84] ; (8001514 <MX_DAC_Init+0x68>)
  2089. 80014be: 601a str r2, [r3, #0]
  2090. if (HAL_DAC_Init(&hdac) != HAL_OK)
  2091. 80014c0: 4813 ldr r0, [pc, #76] ; (8001510 <MX_DAC_Init+0x64>)
  2092. 80014c2: f001 fdfc bl 80030be <HAL_DAC_Init>
  2093. 80014c6: 4603 mov r3, r0
  2094. 80014c8: 2b00 cmp r3, #0
  2095. 80014ca: d001 beq.n 80014d0 <MX_DAC_Init+0x24>
  2096. {
  2097. Error_Handler();
  2098. 80014cc: f000 fa96 bl 80019fc <Error_Handler>
  2099. }
  2100. /** DAC channel OUT1 config
  2101. */
  2102. sConfig.DAC_Trigger = DAC_TRIGGER_NONE;
  2103. 80014d0: 2300 movs r3, #0
  2104. 80014d2: 603b str r3, [r7, #0]
  2105. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE;
  2106. 80014d4: 2300 movs r3, #0
  2107. 80014d6: 607b str r3, [r7, #4]
  2108. if (HAL_DAC_ConfigChannel(&hdac, &sConfig, DAC_CHANNEL_1) != HAL_OK)
  2109. 80014d8: 463b mov r3, r7
  2110. 80014da: 2200 movs r2, #0
  2111. 80014dc: 4619 mov r1, r3
  2112. 80014de: 480c ldr r0, [pc, #48] ; (8001510 <MX_DAC_Init+0x64>)
  2113. 80014e0: f001 fe84 bl 80031ec <HAL_DAC_ConfigChannel>
  2114. 80014e4: 4603 mov r3, r0
  2115. 80014e6: 2b00 cmp r3, #0
  2116. 80014e8: d001 beq.n 80014ee <MX_DAC_Init+0x42>
  2117. {
  2118. Error_Handler();
  2119. 80014ea: f000 fa87 bl 80019fc <Error_Handler>
  2120. }
  2121. /** DAC channel OUT2 config
  2122. */
  2123. sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_DISABLE;
  2124. 80014ee: 2302 movs r3, #2
  2125. 80014f0: 607b str r3, [r7, #4]
  2126. if (HAL_DAC_ConfigChannel(&hdac, &sConfig, DAC_CHANNEL_2) != HAL_OK)
  2127. 80014f2: 463b mov r3, r7
  2128. 80014f4: 2210 movs r2, #16
  2129. 80014f6: 4619 mov r1, r3
  2130. 80014f8: 4805 ldr r0, [pc, #20] ; (8001510 <MX_DAC_Init+0x64>)
  2131. 80014fa: f001 fe77 bl 80031ec <HAL_DAC_ConfigChannel>
  2132. 80014fe: 4603 mov r3, r0
  2133. 8001500: 2b00 cmp r3, #0
  2134. 8001502: d001 beq.n 8001508 <MX_DAC_Init+0x5c>
  2135. {
  2136. Error_Handler();
  2137. 8001504: f000 fa7a bl 80019fc <Error_Handler>
  2138. }
  2139. /* USER CODE BEGIN DAC_Init 2 */
  2140. /* USER CODE END DAC_Init 2 */
  2141. }
  2142. 8001508: bf00 nop
  2143. 800150a: 3708 adds r7, #8
  2144. 800150c: 46bd mov sp, r7
  2145. 800150e: bd80 pop {r7, pc}
  2146. 8001510: 20000530 .word 0x20000530
  2147. 8001514: 40007400 .word 0x40007400
  2148. 08001518 <MX_I2C2_Init>:
  2149. * @brief I2C2 Initialization Function
  2150. * @param None
  2151. * @retval None
  2152. */
  2153. static void MX_I2C2_Init(void)
  2154. {
  2155. 8001518: b580 push {r7, lr}
  2156. 800151a: af00 add r7, sp, #0
  2157. /* USER CODE END I2C2_Init 0 */
  2158. /* USER CODE BEGIN I2C2_Init 1 */
  2159. /* USER CODE END I2C2_Init 1 */
  2160. hi2c2.Instance = I2C2;
  2161. 800151c: 4b12 ldr r3, [pc, #72] ; (8001568 <MX_I2C2_Init+0x50>)
  2162. 800151e: 4a13 ldr r2, [pc, #76] ; (800156c <MX_I2C2_Init+0x54>)
  2163. 8001520: 601a str r2, [r3, #0]
  2164. hi2c2.Init.ClockSpeed = 100000;
  2165. 8001522: 4b11 ldr r3, [pc, #68] ; (8001568 <MX_I2C2_Init+0x50>)
  2166. 8001524: 4a12 ldr r2, [pc, #72] ; (8001570 <MX_I2C2_Init+0x58>)
  2167. 8001526: 605a str r2, [r3, #4]
  2168. hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2;
  2169. 8001528: 4b0f ldr r3, [pc, #60] ; (8001568 <MX_I2C2_Init+0x50>)
  2170. 800152a: 2200 movs r2, #0
  2171. 800152c: 609a str r2, [r3, #8]
  2172. hi2c2.Init.OwnAddress1 = 0;
  2173. 800152e: 4b0e ldr r3, [pc, #56] ; (8001568 <MX_I2C2_Init+0x50>)
  2174. 8001530: 2200 movs r2, #0
  2175. 8001532: 60da str r2, [r3, #12]
  2176. hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
  2177. 8001534: 4b0c ldr r3, [pc, #48] ; (8001568 <MX_I2C2_Init+0x50>)
  2178. 8001536: f44f 4280 mov.w r2, #16384 ; 0x4000
  2179. 800153a: 611a str r2, [r3, #16]
  2180. hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
  2181. 800153c: 4b0a ldr r3, [pc, #40] ; (8001568 <MX_I2C2_Init+0x50>)
  2182. 800153e: 2200 movs r2, #0
  2183. 8001540: 615a str r2, [r3, #20]
  2184. hi2c2.Init.OwnAddress2 = 0;
  2185. 8001542: 4b09 ldr r3, [pc, #36] ; (8001568 <MX_I2C2_Init+0x50>)
  2186. 8001544: 2200 movs r2, #0
  2187. 8001546: 619a str r2, [r3, #24]
  2188. hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
  2189. 8001548: 4b07 ldr r3, [pc, #28] ; (8001568 <MX_I2C2_Init+0x50>)
  2190. 800154a: 2200 movs r2, #0
  2191. 800154c: 61da str r2, [r3, #28]
  2192. hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
  2193. 800154e: 4b06 ldr r3, [pc, #24] ; (8001568 <MX_I2C2_Init+0x50>)
  2194. 8001550: 2200 movs r2, #0
  2195. 8001552: 621a str r2, [r3, #32]
  2196. if (HAL_I2C_Init(&hi2c2) != HAL_OK)
  2197. 8001554: 4804 ldr r0, [pc, #16] ; (8001568 <MX_I2C2_Init+0x50>)
  2198. 8001556: f002 fa1b bl 8003990 <HAL_I2C_Init>
  2199. 800155a: 4603 mov r3, r0
  2200. 800155c: 2b00 cmp r3, #0
  2201. 800155e: d001 beq.n 8001564 <MX_I2C2_Init+0x4c>
  2202. {
  2203. Error_Handler();
  2204. 8001560: f000 fa4c bl 80019fc <Error_Handler>
  2205. }
  2206. /* USER CODE BEGIN I2C2_Init 2 */
  2207. /* USER CODE END I2C2_Init 2 */
  2208. }
  2209. 8001564: bf00 nop
  2210. 8001566: bd80 pop {r7, pc}
  2211. 8001568: 20000458 .word 0x20000458
  2212. 800156c: 40005800 .word 0x40005800
  2213. 8001570: 000186a0 .word 0x000186a0
  2214. 08001574 <MX_TIM2_Init>:
  2215. * @brief TIM2 Initialization Function
  2216. * @param None
  2217. * @retval None
  2218. */
  2219. static void MX_TIM2_Init(void)
  2220. {
  2221. 8001574: b580 push {r7, lr}
  2222. 8001576: b086 sub sp, #24
  2223. 8001578: af00 add r7, sp, #0
  2224. /* USER CODE BEGIN TIM2_Init 0 */
  2225. /* USER CODE END TIM2_Init 0 */
  2226. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2227. 800157a: f107 0308 add.w r3, r7, #8
  2228. 800157e: 2200 movs r2, #0
  2229. 8001580: 601a str r2, [r3, #0]
  2230. 8001582: 605a str r2, [r3, #4]
  2231. 8001584: 609a str r2, [r3, #8]
  2232. 8001586: 60da str r2, [r3, #12]
  2233. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2234. 8001588: 463b mov r3, r7
  2235. 800158a: 2200 movs r2, #0
  2236. 800158c: 601a str r2, [r3, #0]
  2237. 800158e: 605a str r2, [r3, #4]
  2238. /* USER CODE BEGIN TIM2_Init 1 */
  2239. /* USER CODE END TIM2_Init 1 */
  2240. htim2.Instance = TIM2;
  2241. 8001590: 4b22 ldr r3, [pc, #136] ; (800161c <MX_TIM2_Init+0xa8>)
  2242. 8001592: f04f 4280 mov.w r2, #1073741824 ; 0x40000000
  2243. 8001596: 601a str r2, [r3, #0]
  2244. htim2.Init.Prescaler = 800;
  2245. 8001598: 4b20 ldr r3, [pc, #128] ; (800161c <MX_TIM2_Init+0xa8>)
  2246. 800159a: f44f 7248 mov.w r2, #800 ; 0x320
  2247. 800159e: 605a str r2, [r3, #4]
  2248. htim2.Init.CounterMode = TIM_COUNTERMODE_UP;
  2249. 80015a0: 4b1e ldr r3, [pc, #120] ; (800161c <MX_TIM2_Init+0xa8>)
  2250. 80015a2: 2200 movs r2, #0
  2251. 80015a4: 609a str r2, [r3, #8]
  2252. htim2.Init.Period = 1000;
  2253. 80015a6: 4b1d ldr r3, [pc, #116] ; (800161c <MX_TIM2_Init+0xa8>)
  2254. 80015a8: f44f 727a mov.w r2, #1000 ; 0x3e8
  2255. 80015ac: 60da str r2, [r3, #12]
  2256. htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2257. 80015ae: 4b1b ldr r3, [pc, #108] ; (800161c <MX_TIM2_Init+0xa8>)
  2258. 80015b0: 2200 movs r2, #0
  2259. 80015b2: 611a str r2, [r3, #16]
  2260. htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2261. 80015b4: 4b19 ldr r3, [pc, #100] ; (800161c <MX_TIM2_Init+0xa8>)
  2262. 80015b6: 2200 movs r2, #0
  2263. 80015b8: 615a str r2, [r3, #20]
  2264. if (HAL_TIM_Base_Init(&htim2) != HAL_OK)
  2265. 80015ba: 4818 ldr r0, [pc, #96] ; (800161c <MX_TIM2_Init+0xa8>)
  2266. 80015bc: f003 fc06 bl 8004dcc <HAL_TIM_Base_Init>
  2267. 80015c0: 4603 mov r3, r0
  2268. 80015c2: 2b00 cmp r3, #0
  2269. 80015c4: d001 beq.n 80015ca <MX_TIM2_Init+0x56>
  2270. {
  2271. Error_Handler();
  2272. 80015c6: f000 fa19 bl 80019fc <Error_Handler>
  2273. }
  2274. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2275. 80015ca: f44f 5380 mov.w r3, #4096 ; 0x1000
  2276. 80015ce: 60bb str r3, [r7, #8]
  2277. if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK)
  2278. 80015d0: f107 0308 add.w r3, r7, #8
  2279. 80015d4: 4619 mov r1, r3
  2280. 80015d6: 4811 ldr r0, [pc, #68] ; (800161c <MX_TIM2_Init+0xa8>)
  2281. 80015d8: f003 ffbc bl 8005554 <HAL_TIM_ConfigClockSource>
  2282. 80015dc: 4603 mov r3, r0
  2283. 80015de: 2b00 cmp r3, #0
  2284. 80015e0: d001 beq.n 80015e6 <MX_TIM2_Init+0x72>
  2285. {
  2286. Error_Handler();
  2287. 80015e2: f000 fa0b bl 80019fc <Error_Handler>
  2288. }
  2289. if (HAL_TIM_OnePulse_Init(&htim2, TIM_OPMODE_SINGLE) != HAL_OK)
  2290. 80015e6: 2108 movs r1, #8
  2291. 80015e8: 480c ldr r0, [pc, #48] ; (800161c <MX_TIM2_Init+0xa8>)
  2292. 80015ea: f003 fdc7 bl 800517c <HAL_TIM_OnePulse_Init>
  2293. 80015ee: 4603 mov r3, r0
  2294. 80015f0: 2b00 cmp r3, #0
  2295. 80015f2: d001 beq.n 80015f8 <MX_TIM2_Init+0x84>
  2296. {
  2297. Error_Handler();
  2298. 80015f4: f000 fa02 bl 80019fc <Error_Handler>
  2299. }
  2300. sMasterConfig.MasterOutputTrigger = TIM_TRGO_ENABLE;
  2301. 80015f8: 2310 movs r3, #16
  2302. 80015fa: 603b str r3, [r7, #0]
  2303. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2304. 80015fc: 2300 movs r3, #0
  2305. 80015fe: 607b str r3, [r7, #4]
  2306. if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK)
  2307. 8001600: 463b mov r3, r7
  2308. 8001602: 4619 mov r1, r3
  2309. 8001604: 4805 ldr r0, [pc, #20] ; (800161c <MX_TIM2_Init+0xa8>)
  2310. 8001606: f004 fb6f bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
  2311. 800160a: 4603 mov r3, r0
  2312. 800160c: 2b00 cmp r3, #0
  2313. 800160e: d001 beq.n 8001614 <MX_TIM2_Init+0xa0>
  2314. {
  2315. Error_Handler();
  2316. 8001610: f000 f9f4 bl 80019fc <Error_Handler>
  2317. }
  2318. /* USER CODE BEGIN TIM2_Init 2 */
  2319. /* USER CODE END TIM2_Init 2 */
  2320. }
  2321. 8001614: bf00 nop
  2322. 8001616: 3718 adds r7, #24
  2323. 8001618: 46bd mov sp, r7
  2324. 800161a: bd80 pop {r7, pc}
  2325. 800161c: 200005ac .word 0x200005ac
  2326. 08001620 <MX_TIM3_Init>:
  2327. * @brief TIM3 Initialization Function
  2328. * @param None
  2329. * @retval None
  2330. */
  2331. static void MX_TIM3_Init(void)
  2332. {
  2333. 8001620: b580 push {r7, lr}
  2334. 8001622: b090 sub sp, #64 ; 0x40
  2335. 8001624: af00 add r7, sp, #0
  2336. /* USER CODE BEGIN TIM3_Init 0 */
  2337. /* USER CODE END TIM3_Init 0 */
  2338. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2339. 8001626: f107 0330 add.w r3, r7, #48 ; 0x30
  2340. 800162a: 2200 movs r2, #0
  2341. 800162c: 601a str r2, [r3, #0]
  2342. 800162e: 605a str r2, [r3, #4]
  2343. 8001630: 609a str r2, [r3, #8]
  2344. 8001632: 60da str r2, [r3, #12]
  2345. TIM_SlaveConfigTypeDef sSlaveConfig = {0};
  2346. 8001634: f107 031c add.w r3, r7, #28
  2347. 8001638: 2200 movs r2, #0
  2348. 800163a: 601a str r2, [r3, #0]
  2349. 800163c: 605a str r2, [r3, #4]
  2350. 800163e: 609a str r2, [r3, #8]
  2351. 8001640: 60da str r2, [r3, #12]
  2352. 8001642: 611a str r2, [r3, #16]
  2353. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2354. 8001644: f107 0314 add.w r3, r7, #20
  2355. 8001648: 2200 movs r2, #0
  2356. 800164a: 601a str r2, [r3, #0]
  2357. 800164c: 605a str r2, [r3, #4]
  2358. TIM_OC_InitTypeDef sConfigOC = {0};
  2359. 800164e: 1d3b adds r3, r7, #4
  2360. 8001650: 2200 movs r2, #0
  2361. 8001652: 601a str r2, [r3, #0]
  2362. 8001654: 605a str r2, [r3, #4]
  2363. 8001656: 609a str r2, [r3, #8]
  2364. 8001658: 60da str r2, [r3, #12]
  2365. /* USER CODE BEGIN TIM3_Init 1 */
  2366. /* USER CODE END TIM3_Init 1 */
  2367. htim3.Instance = TIM3;
  2368. 800165a: 4b34 ldr r3, [pc, #208] ; (800172c <MX_TIM3_Init+0x10c>)
  2369. 800165c: 4a34 ldr r2, [pc, #208] ; (8001730 <MX_TIM3_Init+0x110>)
  2370. 800165e: 601a str r2, [r3, #0]
  2371. htim3.Init.Prescaler = 64;
  2372. 8001660: 4b32 ldr r3, [pc, #200] ; (800172c <MX_TIM3_Init+0x10c>)
  2373. 8001662: 2240 movs r2, #64 ; 0x40
  2374. 8001664: 605a str r2, [r3, #4]
  2375. htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
  2376. 8001666: 4b31 ldr r3, [pc, #196] ; (800172c <MX_TIM3_Init+0x10c>)
  2377. 8001668: 2200 movs r2, #0
  2378. 800166a: 609a str r2, [r3, #8]
  2379. htim3.Init.Period = 1000;
  2380. 800166c: 4b2f ldr r3, [pc, #188] ; (800172c <MX_TIM3_Init+0x10c>)
  2381. 800166e: f44f 727a mov.w r2, #1000 ; 0x3e8
  2382. 8001672: 60da str r2, [r3, #12]
  2383. htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2384. 8001674: 4b2d ldr r3, [pc, #180] ; (800172c <MX_TIM3_Init+0x10c>)
  2385. 8001676: 2200 movs r2, #0
  2386. 8001678: 611a str r2, [r3, #16]
  2387. htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2388. 800167a: 4b2c ldr r3, [pc, #176] ; (800172c <MX_TIM3_Init+0x10c>)
  2389. 800167c: 2200 movs r2, #0
  2390. 800167e: 615a str r2, [r3, #20]
  2391. if (HAL_TIM_Base_Init(&htim3) != HAL_OK)
  2392. 8001680: 482a ldr r0, [pc, #168] ; (800172c <MX_TIM3_Init+0x10c>)
  2393. 8001682: f003 fba3 bl 8004dcc <HAL_TIM_Base_Init>
  2394. 8001686: 4603 mov r3, r0
  2395. 8001688: 2b00 cmp r3, #0
  2396. 800168a: d001 beq.n 8001690 <MX_TIM3_Init+0x70>
  2397. {
  2398. Error_Handler();
  2399. 800168c: f000 f9b6 bl 80019fc <Error_Handler>
  2400. }
  2401. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2402. 8001690: f44f 5380 mov.w r3, #4096 ; 0x1000
  2403. 8001694: 633b str r3, [r7, #48] ; 0x30
  2404. if (HAL_TIM_ConfigClockSource(&htim3, &sClockSourceConfig) != HAL_OK)
  2405. 8001696: f107 0330 add.w r3, r7, #48 ; 0x30
  2406. 800169a: 4619 mov r1, r3
  2407. 800169c: 4823 ldr r0, [pc, #140] ; (800172c <MX_TIM3_Init+0x10c>)
  2408. 800169e: f003 ff59 bl 8005554 <HAL_TIM_ConfigClockSource>
  2409. 80016a2: 4603 mov r3, r0
  2410. 80016a4: 2b00 cmp r3, #0
  2411. 80016a6: d001 beq.n 80016ac <MX_TIM3_Init+0x8c>
  2412. {
  2413. Error_Handler();
  2414. 80016a8: f000 f9a8 bl 80019fc <Error_Handler>
  2415. }
  2416. if (HAL_TIM_PWM_Init(&htim3) != HAL_OK)
  2417. 80016ac: 481f ldr r0, [pc, #124] ; (800172c <MX_TIM3_Init+0x10c>)
  2418. 80016ae: f003 fd1d bl 80050ec <HAL_TIM_PWM_Init>
  2419. 80016b2: 4603 mov r3, r0
  2420. 80016b4: 2b00 cmp r3, #0
  2421. 80016b6: d001 beq.n 80016bc <MX_TIM3_Init+0x9c>
  2422. {
  2423. Error_Handler();
  2424. 80016b8: f000 f9a0 bl 80019fc <Error_Handler>
  2425. }
  2426. sSlaveConfig.SlaveMode = TIM_SLAVEMODE_GATED;
  2427. 80016bc: 2305 movs r3, #5
  2428. 80016be: 61fb str r3, [r7, #28]
  2429. sSlaveConfig.InputTrigger = TIM_TS_ITR1;
  2430. 80016c0: 2310 movs r3, #16
  2431. 80016c2: 623b str r3, [r7, #32]
  2432. if (HAL_TIM_SlaveConfigSynchro(&htim3, &sSlaveConfig) != HAL_OK)
  2433. 80016c4: f107 031c add.w r3, r7, #28
  2434. 80016c8: 4619 mov r1, r3
  2435. 80016ca: 4818 ldr r0, [pc, #96] ; (800172c <MX_TIM3_Init+0x10c>)
  2436. 80016cc: f004 f806 bl 80056dc <HAL_TIM_SlaveConfigSynchro>
  2437. 80016d0: 4603 mov r3, r0
  2438. 80016d2: 2b00 cmp r3, #0
  2439. 80016d4: d001 beq.n 80016da <MX_TIM3_Init+0xba>
  2440. {
  2441. Error_Handler();
  2442. 80016d6: f000 f991 bl 80019fc <Error_Handler>
  2443. }
  2444. sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
  2445. 80016da: 2300 movs r3, #0
  2446. 80016dc: 617b str r3, [r7, #20]
  2447. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2448. 80016de: 2300 movs r3, #0
  2449. 80016e0: 61bb str r3, [r7, #24]
  2450. if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK)
  2451. 80016e2: f107 0314 add.w r3, r7, #20
  2452. 80016e6: 4619 mov r1, r3
  2453. 80016e8: 4810 ldr r0, [pc, #64] ; (800172c <MX_TIM3_Init+0x10c>)
  2454. 80016ea: f004 fafd bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
  2455. 80016ee: 4603 mov r3, r0
  2456. 80016f0: 2b00 cmp r3, #0
  2457. 80016f2: d001 beq.n 80016f8 <MX_TIM3_Init+0xd8>
  2458. {
  2459. Error_Handler();
  2460. 80016f4: f000 f982 bl 80019fc <Error_Handler>
  2461. }
  2462. sConfigOC.OCMode = TIM_OCMODE_PWM1;
  2463. 80016f8: 2360 movs r3, #96 ; 0x60
  2464. 80016fa: 607b str r3, [r7, #4]
  2465. sConfigOC.Pulse = 10;
  2466. 80016fc: 230a movs r3, #10
  2467. 80016fe: 60bb str r3, [r7, #8]
  2468. sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH;
  2469. 8001700: 2300 movs r3, #0
  2470. 8001702: 60fb str r3, [r7, #12]
  2471. sConfigOC.OCFastMode = TIM_OCFAST_DISABLE;
  2472. 8001704: 2300 movs r3, #0
  2473. 8001706: 613b str r3, [r7, #16]
  2474. if (HAL_TIM_PWM_ConfigChannel(&htim3, &sConfigOC, TIM_CHANNEL_4) != HAL_OK)
  2475. 8001708: 1d3b adds r3, r7, #4
  2476. 800170a: 220c movs r2, #12
  2477. 800170c: 4619 mov r1, r3
  2478. 800170e: 4807 ldr r0, [pc, #28] ; (800172c <MX_TIM3_Init+0x10c>)
  2479. 8001710: f003 fe62 bl 80053d8 <HAL_TIM_PWM_ConfigChannel>
  2480. 8001714: 4603 mov r3, r0
  2481. 8001716: 2b00 cmp r3, #0
  2482. 8001718: d001 beq.n 800171e <MX_TIM3_Init+0xfe>
  2483. {
  2484. Error_Handler();
  2485. 800171a: f000 f96f bl 80019fc <Error_Handler>
  2486. }
  2487. /* USER CODE BEGIN TIM3_Init 2 */
  2488. /* USER CODE END TIM3_Init 2 */
  2489. HAL_TIM_MspPostInit(&htim3);
  2490. 800171e: 4803 ldr r0, [pc, #12] ; (800172c <MX_TIM3_Init+0x10c>)
  2491. 8001720: f000 fb34 bl 8001d8c <HAL_TIM_MspPostInit>
  2492. }
  2493. 8001724: bf00 nop
  2494. 8001726: 3740 adds r7, #64 ; 0x40
  2495. 8001728: 46bd mov sp, r7
  2496. 800172a: bd80 pop {r7, pc}
  2497. 800172c: 200004ac .word 0x200004ac
  2498. 8001730: 40000400 .word 0x40000400
  2499. 08001734 <MX_TIM4_Init>:
  2500. * @brief TIM4 Initialization Function
  2501. * @param None
  2502. * @retval None
  2503. */
  2504. static void MX_TIM4_Init(void)
  2505. {
  2506. 8001734: b580 push {r7, lr}
  2507. 8001736: b086 sub sp, #24
  2508. 8001738: af00 add r7, sp, #0
  2509. /* USER CODE BEGIN TIM4_Init 0 */
  2510. /* USER CODE END TIM4_Init 0 */
  2511. TIM_ClockConfigTypeDef sClockSourceConfig = {0};
  2512. 800173a: f107 0308 add.w r3, r7, #8
  2513. 800173e: 2200 movs r2, #0
  2514. 8001740: 601a str r2, [r3, #0]
  2515. 8001742: 605a str r2, [r3, #4]
  2516. 8001744: 609a str r2, [r3, #8]
  2517. 8001746: 60da str r2, [r3, #12]
  2518. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2519. 8001748: 463b mov r3, r7
  2520. 800174a: 2200 movs r2, #0
  2521. 800174c: 601a str r2, [r3, #0]
  2522. 800174e: 605a str r2, [r3, #4]
  2523. /* USER CODE BEGIN TIM4_Init 1 */
  2524. /* USER CODE END TIM4_Init 1 */
  2525. htim4.Instance = TIM4;
  2526. 8001750: 4b1d ldr r3, [pc, #116] ; (80017c8 <MX_TIM4_Init+0x94>)
  2527. 8001752: 4a1e ldr r2, [pc, #120] ; (80017cc <MX_TIM4_Init+0x98>)
  2528. 8001754: 601a str r2, [r3, #0]
  2529. htim4.Init.Prescaler = 320;
  2530. 8001756: 4b1c ldr r3, [pc, #112] ; (80017c8 <MX_TIM4_Init+0x94>)
  2531. 8001758: f44f 72a0 mov.w r2, #320 ; 0x140
  2532. 800175c: 605a str r2, [r3, #4]
  2533. htim4.Init.CounterMode = TIM_COUNTERMODE_UP;
  2534. 800175e: 4b1a ldr r3, [pc, #104] ; (80017c8 <MX_TIM4_Init+0x94>)
  2535. 8001760: 2200 movs r2, #0
  2536. 8001762: 609a str r2, [r3, #8]
  2537. htim4.Init.Period = 50000-1;
  2538. 8001764: 4b18 ldr r3, [pc, #96] ; (80017c8 <MX_TIM4_Init+0x94>)
  2539. 8001766: f24c 324f movw r2, #49999 ; 0xc34f
  2540. 800176a: 60da str r2, [r3, #12]
  2541. htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
  2542. 800176c: 4b16 ldr r3, [pc, #88] ; (80017c8 <MX_TIM4_Init+0x94>)
  2543. 800176e: 2200 movs r2, #0
  2544. 8001770: 611a str r2, [r3, #16]
  2545. htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2546. 8001772: 4b15 ldr r3, [pc, #84] ; (80017c8 <MX_TIM4_Init+0x94>)
  2547. 8001774: 2200 movs r2, #0
  2548. 8001776: 615a str r2, [r3, #20]
  2549. if (HAL_TIM_Base_Init(&htim4) != HAL_OK)
  2550. 8001778: 4813 ldr r0, [pc, #76] ; (80017c8 <MX_TIM4_Init+0x94>)
  2551. 800177a: f003 fb27 bl 8004dcc <HAL_TIM_Base_Init>
  2552. 800177e: 4603 mov r3, r0
  2553. 8001780: 2b00 cmp r3, #0
  2554. 8001782: d001 beq.n 8001788 <MX_TIM4_Init+0x54>
  2555. {
  2556. Error_Handler();
  2557. 8001784: f000 f93a bl 80019fc <Error_Handler>
  2558. }
  2559. sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
  2560. 8001788: f44f 5380 mov.w r3, #4096 ; 0x1000
  2561. 800178c: 60bb str r3, [r7, #8]
  2562. if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK)
  2563. 800178e: f107 0308 add.w r3, r7, #8
  2564. 8001792: 4619 mov r1, r3
  2565. 8001794: 480c ldr r0, [pc, #48] ; (80017c8 <MX_TIM4_Init+0x94>)
  2566. 8001796: f003 fedd bl 8005554 <HAL_TIM_ConfigClockSource>
  2567. 800179a: 4603 mov r3, r0
  2568. 800179c: 2b00 cmp r3, #0
  2569. 800179e: d001 beq.n 80017a4 <MX_TIM4_Init+0x70>
  2570. {
  2571. Error_Handler();
  2572. 80017a0: f000 f92c bl 80019fc <Error_Handler>
  2573. }
  2574. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2575. 80017a4: 2320 movs r3, #32
  2576. 80017a6: 603b str r3, [r7, #0]
  2577. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2578. 80017a8: 2300 movs r3, #0
  2579. 80017aa: 607b str r3, [r7, #4]
  2580. if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK)
  2581. 80017ac: 463b mov r3, r7
  2582. 80017ae: 4619 mov r1, r3
  2583. 80017b0: 4805 ldr r0, [pc, #20] ; (80017c8 <MX_TIM4_Init+0x94>)
  2584. 80017b2: f004 fa99 bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
  2585. 80017b6: 4603 mov r3, r0
  2586. 80017b8: 2b00 cmp r3, #0
  2587. 80017ba: d001 beq.n 80017c0 <MX_TIM4_Init+0x8c>
  2588. {
  2589. Error_Handler();
  2590. 80017bc: f000 f91e bl 80019fc <Error_Handler>
  2591. }
  2592. /* USER CODE BEGIN TIM4_Init 2 */
  2593. /* USER CODE END TIM4_Init 2 */
  2594. }
  2595. 80017c0: bf00 nop
  2596. 80017c2: 3718 adds r7, #24
  2597. 80017c4: 46bd mov sp, r7
  2598. 80017c6: bd80 pop {r7, pc}
  2599. 80017c8: 20000418 .word 0x20000418
  2600. 80017cc: 40000800 .word 0x40000800
  2601. 080017d0 <MX_TIM6_Init>:
  2602. * @brief TIM6 Initialization Function
  2603. * @param None
  2604. * @retval None
  2605. */
  2606. static void MX_TIM6_Init(void)
  2607. {
  2608. 80017d0: b580 push {r7, lr}
  2609. 80017d2: b082 sub sp, #8
  2610. 80017d4: af00 add r7, sp, #0
  2611. /* USER CODE BEGIN TIM6_Init 0 */
  2612. /* USER CODE END TIM6_Init 0 */
  2613. TIM_MasterConfigTypeDef sMasterConfig = {0};
  2614. 80017d6: 463b mov r3, r7
  2615. 80017d8: 2200 movs r2, #0
  2616. 80017da: 601a str r2, [r3, #0]
  2617. 80017dc: 605a str r2, [r3, #4]
  2618. /* USER CODE BEGIN TIM6_Init 1 */
  2619. /* USER CODE END TIM6_Init 1 */
  2620. htim6.Instance = TIM6;
  2621. 80017de: 4b15 ldr r3, [pc, #84] ; (8001834 <MX_TIM6_Init+0x64>)
  2622. 80017e0: 4a15 ldr r2, [pc, #84] ; (8001838 <MX_TIM6_Init+0x68>)
  2623. 80017e2: 601a str r2, [r3, #0]
  2624. htim6.Init.Prescaler = 800;
  2625. 80017e4: 4b13 ldr r3, [pc, #76] ; (8001834 <MX_TIM6_Init+0x64>)
  2626. 80017e6: f44f 7248 mov.w r2, #800 ; 0x320
  2627. 80017ea: 605a str r2, [r3, #4]
  2628. htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
  2629. 80017ec: 4b11 ldr r3, [pc, #68] ; (8001834 <MX_TIM6_Init+0x64>)
  2630. 80017ee: 2200 movs r2, #0
  2631. 80017f0: 609a str r2, [r3, #8]
  2632. htim6.Init.Period = 20000;
  2633. 80017f2: 4b10 ldr r3, [pc, #64] ; (8001834 <MX_TIM6_Init+0x64>)
  2634. 80017f4: f644 6220 movw r2, #20000 ; 0x4e20
  2635. 80017f8: 60da str r2, [r3, #12]
  2636. htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
  2637. 80017fa: 4b0e ldr r3, [pc, #56] ; (8001834 <MX_TIM6_Init+0x64>)
  2638. 80017fc: 2200 movs r2, #0
  2639. 80017fe: 615a str r2, [r3, #20]
  2640. if (HAL_TIM_Base_Init(&htim6) != HAL_OK)
  2641. 8001800: 480c ldr r0, [pc, #48] ; (8001834 <MX_TIM6_Init+0x64>)
  2642. 8001802: f003 fae3 bl 8004dcc <HAL_TIM_Base_Init>
  2643. 8001806: 4603 mov r3, r0
  2644. 8001808: 2b00 cmp r3, #0
  2645. 800180a: d001 beq.n 8001810 <MX_TIM6_Init+0x40>
  2646. {
  2647. Error_Handler();
  2648. 800180c: f000 f8f6 bl 80019fc <Error_Handler>
  2649. }
  2650. sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE;
  2651. 8001810: 2320 movs r3, #32
  2652. 8001812: 603b str r3, [r7, #0]
  2653. sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
  2654. 8001814: 2300 movs r3, #0
  2655. 8001816: 607b str r3, [r7, #4]
  2656. if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK)
  2657. 8001818: 463b mov r3, r7
  2658. 800181a: 4619 mov r1, r3
  2659. 800181c: 4805 ldr r0, [pc, #20] ; (8001834 <MX_TIM6_Init+0x64>)
  2660. 800181e: f004 fa63 bl 8005ce8 <HAL_TIMEx_MasterConfigSynchronization>
  2661. 8001822: 4603 mov r3, r0
  2662. 8001824: 2b00 cmp r3, #0
  2663. 8001826: d001 beq.n 800182c <MX_TIM6_Init+0x5c>
  2664. {
  2665. Error_Handler();
  2666. 8001828: f000 f8e8 bl 80019fc <Error_Handler>
  2667. }
  2668. /* USER CODE BEGIN TIM6_Init 2 */
  2669. /* USER CODE END TIM6_Init 2 */
  2670. }
  2671. 800182c: bf00 nop
  2672. 800182e: 3708 adds r7, #8
  2673. 8001830: 46bd mov sp, r7
  2674. 8001832: bd80 pop {r7, pc}
  2675. 8001834: 20000544 .word 0x20000544
  2676. 8001838: 40001000 .word 0x40001000
  2677. 0800183c <MX_USART1_UART_Init>:
  2678. * @brief USART1 Initialization Function
  2679. * @param None
  2680. * @retval None
  2681. */
  2682. static void MX_USART1_UART_Init(void)
  2683. {
  2684. 800183c: b580 push {r7, lr}
  2685. 800183e: af00 add r7, sp, #0
  2686. /* USER CODE END USART1_Init 0 */
  2687. /* USER CODE BEGIN USART1_Init 1 */
  2688. /* USER CODE END USART1_Init 1 */
  2689. huart1.Instance = USART1;
  2690. 8001840: 4b11 ldr r3, [pc, #68] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2691. 8001842: 4a12 ldr r2, [pc, #72] ; (800188c <MX_USART1_UART_Init+0x50>)
  2692. 8001844: 601a str r2, [r3, #0]
  2693. huart1.Init.BaudRate = 115200;
  2694. 8001846: 4b10 ldr r3, [pc, #64] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2695. 8001848: f44f 32e1 mov.w r2, #115200 ; 0x1c200
  2696. 800184c: 605a str r2, [r3, #4]
  2697. huart1.Init.WordLength = UART_WORDLENGTH_8B;
  2698. 800184e: 4b0e ldr r3, [pc, #56] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2699. 8001850: 2200 movs r2, #0
  2700. 8001852: 609a str r2, [r3, #8]
  2701. huart1.Init.StopBits = UART_STOPBITS_1;
  2702. 8001854: 4b0c ldr r3, [pc, #48] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2703. 8001856: 2200 movs r2, #0
  2704. 8001858: 60da str r2, [r3, #12]
  2705. huart1.Init.Parity = UART_PARITY_NONE;
  2706. 800185a: 4b0b ldr r3, [pc, #44] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2707. 800185c: 2200 movs r2, #0
  2708. 800185e: 611a str r2, [r3, #16]
  2709. huart1.Init.Mode = UART_MODE_TX_RX;
  2710. 8001860: 4b09 ldr r3, [pc, #36] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2711. 8001862: 220c movs r2, #12
  2712. 8001864: 615a str r2, [r3, #20]
  2713. huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  2714. 8001866: 4b08 ldr r3, [pc, #32] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2715. 8001868: 2200 movs r2, #0
  2716. 800186a: 619a str r2, [r3, #24]
  2717. huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  2718. 800186c: 4b06 ldr r3, [pc, #24] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2719. 800186e: 2200 movs r2, #0
  2720. 8001870: 61da str r2, [r3, #28]
  2721. if (HAL_UART_Init(&huart1) != HAL_OK)
  2722. 8001872: 4805 ldr r0, [pc, #20] ; (8001888 <MX_USART1_UART_Init+0x4c>)
  2723. 8001874: f004 fa96 bl 8005da4 <HAL_UART_Init>
  2724. 8001878: 4603 mov r3, r0
  2725. 800187a: 2b00 cmp r3, #0
  2726. 800187c: d001 beq.n 8001882 <MX_USART1_UART_Init+0x46>
  2727. {
  2728. Error_Handler();
  2729. 800187e: f000 f8bd bl 80019fc <Error_Handler>
  2730. }
  2731. /* USER CODE BEGIN USART1_Init 2 */
  2732. /* USER CODE END USART1_Init 2 */
  2733. }
  2734. 8001882: bf00 nop
  2735. 8001884: bd80 pop {r7, pc}
  2736. 8001886: bf00 nop
  2737. 8001888: 200004ec .word 0x200004ec
  2738. 800188c: 40013800 .word 0x40013800
  2739. 08001890 <MX_DMA_Init>:
  2740. /**
  2741. * Enable DMA controller clock
  2742. */
  2743. static void MX_DMA_Init(void)
  2744. {
  2745. 8001890: b580 push {r7, lr}
  2746. 8001892: b082 sub sp, #8
  2747. 8001894: af00 add r7, sp, #0
  2748. /* DMA controller clock enable */
  2749. __HAL_RCC_DMA1_CLK_ENABLE();
  2750. 8001896: 4b0c ldr r3, [pc, #48] ; (80018c8 <MX_DMA_Init+0x38>)
  2751. 8001898: 69db ldr r3, [r3, #28]
  2752. 800189a: 4a0b ldr r2, [pc, #44] ; (80018c8 <MX_DMA_Init+0x38>)
  2753. 800189c: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000
  2754. 80018a0: 61d3 str r3, [r2, #28]
  2755. 80018a2: 4b09 ldr r3, [pc, #36] ; (80018c8 <MX_DMA_Init+0x38>)
  2756. 80018a4: 69db ldr r3, [r3, #28]
  2757. 80018a6: f003 7380 and.w r3, r3, #16777216 ; 0x1000000
  2758. 80018aa: 607b str r3, [r7, #4]
  2759. 80018ac: 687b ldr r3, [r7, #4]
  2760. /* DMA interrupt init */
  2761. /* DMA1_Channel1_IRQn interrupt configuration */
  2762. HAL_NVIC_SetPriority(DMA1_Channel1_IRQn, 0, 0);
  2763. 80018ae: 2200 movs r2, #0
  2764. 80018b0: 2100 movs r1, #0
  2765. 80018b2: 200b movs r0, #11
  2766. 80018b4: f001 fbcd bl 8003052 <HAL_NVIC_SetPriority>
  2767. HAL_NVIC_EnableIRQ(DMA1_Channel1_IRQn);
  2768. 80018b8: 200b movs r0, #11
  2769. 80018ba: f001 fbe6 bl 800308a <HAL_NVIC_EnableIRQ>
  2770. }
  2771. 80018be: bf00 nop
  2772. 80018c0: 3708 adds r7, #8
  2773. 80018c2: 46bd mov sp, r7
  2774. 80018c4: bd80 pop {r7, pc}
  2775. 80018c6: bf00 nop
  2776. 80018c8: 40023800 .word 0x40023800
  2777. 080018cc <MX_GPIO_Init>:
  2778. * @brief GPIO Initialization Function
  2779. * @param None
  2780. * @retval None
  2781. */
  2782. static void MX_GPIO_Init(void)
  2783. {
  2784. 80018cc: b580 push {r7, lr}
  2785. 80018ce: b08a sub sp, #40 ; 0x28
  2786. 80018d0: af00 add r7, sp, #0
  2787. GPIO_InitTypeDef GPIO_InitStruct = {0};
  2788. 80018d2: f107 0314 add.w r3, r7, #20
  2789. 80018d6: 2200 movs r2, #0
  2790. 80018d8: 601a str r2, [r3, #0]
  2791. 80018da: 605a str r2, [r3, #4]
  2792. 80018dc: 609a str r2, [r3, #8]
  2793. 80018de: 60da str r2, [r3, #12]
  2794. 80018e0: 611a str r2, [r3, #16]
  2795. /* GPIO Ports Clock Enable */
  2796. __HAL_RCC_GPIOC_CLK_ENABLE();
  2797. 80018e2: 4b42 ldr r3, [pc, #264] ; (80019ec <MX_GPIO_Init+0x120>)
  2798. 80018e4: 69db ldr r3, [r3, #28]
  2799. 80018e6: 4a41 ldr r2, [pc, #260] ; (80019ec <MX_GPIO_Init+0x120>)
  2800. 80018e8: f043 0304 orr.w r3, r3, #4
  2801. 80018ec: 61d3 str r3, [r2, #28]
  2802. 80018ee: 4b3f ldr r3, [pc, #252] ; (80019ec <MX_GPIO_Init+0x120>)
  2803. 80018f0: 69db ldr r3, [r3, #28]
  2804. 80018f2: f003 0304 and.w r3, r3, #4
  2805. 80018f6: 613b str r3, [r7, #16]
  2806. 80018f8: 693b ldr r3, [r7, #16]
  2807. __HAL_RCC_GPIOH_CLK_ENABLE();
  2808. 80018fa: 4b3c ldr r3, [pc, #240] ; (80019ec <MX_GPIO_Init+0x120>)
  2809. 80018fc: 69db ldr r3, [r3, #28]
  2810. 80018fe: 4a3b ldr r2, [pc, #236] ; (80019ec <MX_GPIO_Init+0x120>)
  2811. 8001900: f043 0320 orr.w r3, r3, #32
  2812. 8001904: 61d3 str r3, [r2, #28]
  2813. 8001906: 4b39 ldr r3, [pc, #228] ; (80019ec <MX_GPIO_Init+0x120>)
  2814. 8001908: 69db ldr r3, [r3, #28]
  2815. 800190a: f003 0320 and.w r3, r3, #32
  2816. 800190e: 60fb str r3, [r7, #12]
  2817. 8001910: 68fb ldr r3, [r7, #12]
  2818. __HAL_RCC_GPIOA_CLK_ENABLE();
  2819. 8001912: 4b36 ldr r3, [pc, #216] ; (80019ec <MX_GPIO_Init+0x120>)
  2820. 8001914: 69db ldr r3, [r3, #28]
  2821. 8001916: 4a35 ldr r2, [pc, #212] ; (80019ec <MX_GPIO_Init+0x120>)
  2822. 8001918: f043 0301 orr.w r3, r3, #1
  2823. 800191c: 61d3 str r3, [r2, #28]
  2824. 800191e: 4b33 ldr r3, [pc, #204] ; (80019ec <MX_GPIO_Init+0x120>)
  2825. 8001920: 69db ldr r3, [r3, #28]
  2826. 8001922: f003 0301 and.w r3, r3, #1
  2827. 8001926: 60bb str r3, [r7, #8]
  2828. 8001928: 68bb ldr r3, [r7, #8]
  2829. __HAL_RCC_GPIOB_CLK_ENABLE();
  2830. 800192a: 4b30 ldr r3, [pc, #192] ; (80019ec <MX_GPIO_Init+0x120>)
  2831. 800192c: 69db ldr r3, [r3, #28]
  2832. 800192e: 4a2f ldr r2, [pc, #188] ; (80019ec <MX_GPIO_Init+0x120>)
  2833. 8001930: f043 0302 orr.w r3, r3, #2
  2834. 8001934: 61d3 str r3, [r2, #28]
  2835. 8001936: 4b2d ldr r3, [pc, #180] ; (80019ec <MX_GPIO_Init+0x120>)
  2836. 8001938: 69db ldr r3, [r3, #28]
  2837. 800193a: f003 0302 and.w r3, r3, #2
  2838. 800193e: 607b str r3, [r7, #4]
  2839. 8001940: 687b ldr r3, [r7, #4]
  2840. /*Configure GPIO pin Output Level */
  2841. HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_RESET);
  2842. 8001942: 2200 movs r2, #0
  2843. 8001944: 2101 movs r1, #1
  2844. 8001946: 482a ldr r0, [pc, #168] ; (80019f0 <MX_GPIO_Init+0x124>)
  2845. 8001948: f001 fff2 bl 8003930 <HAL_GPIO_WritePin>
  2846. /*Configure GPIO pins : PC13 PC14 PC15 */
  2847. GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  2848. 800194c: f44f 4360 mov.w r3, #57344 ; 0xe000
  2849. 8001950: 617b str r3, [r7, #20]
  2850. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  2851. 8001952: 2303 movs r3, #3
  2852. 8001954: 61bb str r3, [r7, #24]
  2853. GPIO_InitStruct.Pull = GPIO_NOPULL;
  2854. 8001956: 2300 movs r3, #0
  2855. 8001958: 61fb str r3, [r7, #28]
  2856. HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  2857. 800195a: f107 0314 add.w r3, r7, #20
  2858. 800195e: 4619 mov r1, r3
  2859. 8001960: 4824 ldr r0, [pc, #144] ; (80019f4 <MX_GPIO_Init+0x128>)
  2860. 8001962: f001 fe65 bl 8003630 <HAL_GPIO_Init>
  2861. /*Configure GPIO pins : PA1 PA2 PA3 PA6
  2862. PA7 PA8 PA11 PA12
  2863. PA15 */
  2864. GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_6
  2865. 8001966: f649 13ce movw r3, #39374 ; 0x99ce
  2866. 800196a: 617b str r3, [r7, #20]
  2867. |GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_11|GPIO_PIN_12
  2868. |GPIO_PIN_15;
  2869. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  2870. 800196c: 2303 movs r3, #3
  2871. 800196e: 61bb str r3, [r7, #24]
  2872. GPIO_InitStruct.Pull = GPIO_NOPULL;
  2873. 8001970: 2300 movs r3, #0
  2874. 8001972: 61fb str r3, [r7, #28]
  2875. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  2876. 8001974: f107 0314 add.w r3, r7, #20
  2877. 8001978: 4619 mov r1, r3
  2878. 800197a: 481f ldr r0, [pc, #124] ; (80019f8 <MX_GPIO_Init+0x12c>)
  2879. 800197c: f001 fe58 bl 8003630 <HAL_GPIO_Init>
  2880. /*Configure GPIO pin : PB0 */
  2881. GPIO_InitStruct.Pin = GPIO_PIN_0;
  2882. 8001980: 2301 movs r3, #1
  2883. 8001982: 617b str r3, [r7, #20]
  2884. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  2885. 8001984: 2301 movs r3, #1
  2886. 8001986: 61bb str r3, [r7, #24]
  2887. GPIO_InitStruct.Pull = GPIO_NOPULL;
  2888. 8001988: 2300 movs r3, #0
  2889. 800198a: 61fb str r3, [r7, #28]
  2890. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  2891. 800198c: 2300 movs r3, #0
  2892. 800198e: 623b str r3, [r7, #32]
  2893. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  2894. 8001990: f107 0314 add.w r3, r7, #20
  2895. 8001994: 4619 mov r1, r3
  2896. 8001996: 4816 ldr r0, [pc, #88] ; (80019f0 <MX_GPIO_Init+0x124>)
  2897. 8001998: f001 fe4a bl 8003630 <HAL_GPIO_Init>
  2898. /*Configure GPIO pins : PB2 PB12 PB13 PB3
  2899. PB4 PB6 PB7 PB8
  2900. PB9 */
  2901. GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_3
  2902. 800199c: f243 33dc movw r3, #13276 ; 0x33dc
  2903. 80019a0: 617b str r3, [r7, #20]
  2904. |GPIO_PIN_4|GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8
  2905. |GPIO_PIN_9;
  2906. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  2907. 80019a2: 2303 movs r3, #3
  2908. 80019a4: 61bb str r3, [r7, #24]
  2909. GPIO_InitStruct.Pull = GPIO_NOPULL;
  2910. 80019a6: 2300 movs r3, #0
  2911. 80019a8: 61fb str r3, [r7, #28]
  2912. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  2913. 80019aa: f107 0314 add.w r3, r7, #20
  2914. 80019ae: 4619 mov r1, r3
  2915. 80019b0: 480f ldr r0, [pc, #60] ; (80019f0 <MX_GPIO_Init+0x124>)
  2916. 80019b2: f001 fe3d bl 8003630 <HAL_GPIO_Init>
  2917. /*Configure GPIO pins : PB14 PB15 */
  2918. GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  2919. 80019b6: f44f 4340 mov.w r3, #49152 ; 0xc000
  2920. 80019ba: 617b str r3, [r7, #20]
  2921. GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
  2922. 80019bc: f44f 1304 mov.w r3, #2162688 ; 0x210000
  2923. 80019c0: 61bb str r3, [r7, #24]
  2924. GPIO_InitStruct.Pull = GPIO_PULLUP;
  2925. 80019c2: 2301 movs r3, #1
  2926. 80019c4: 61fb str r3, [r7, #28]
  2927. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  2928. 80019c6: f107 0314 add.w r3, r7, #20
  2929. 80019ca: 4619 mov r1, r3
  2930. 80019cc: 4808 ldr r0, [pc, #32] ; (80019f0 <MX_GPIO_Init+0x124>)
  2931. 80019ce: f001 fe2f bl 8003630 <HAL_GPIO_Init>
  2932. /* EXTI interrupt init*/
  2933. HAL_NVIC_SetPriority(EXTI15_10_IRQn, 0, 0);
  2934. 80019d2: 2200 movs r2, #0
  2935. 80019d4: 2100 movs r1, #0
  2936. 80019d6: 2028 movs r0, #40 ; 0x28
  2937. 80019d8: f001 fb3b bl 8003052 <HAL_NVIC_SetPriority>
  2938. HAL_NVIC_EnableIRQ(EXTI15_10_IRQn);
  2939. 80019dc: 2028 movs r0, #40 ; 0x28
  2940. 80019de: f001 fb54 bl 800308a <HAL_NVIC_EnableIRQ>
  2941. }
  2942. 80019e2: bf00 nop
  2943. 80019e4: 3728 adds r7, #40 ; 0x28
  2944. 80019e6: 46bd mov sp, r7
  2945. 80019e8: bd80 pop {r7, pc}
  2946. 80019ea: bf00 nop
  2947. 80019ec: 40023800 .word 0x40023800
  2948. 80019f0: 40020400 .word 0x40020400
  2949. 80019f4: 40020800 .word 0x40020800
  2950. 80019f8: 40020000 .word 0x40020000
  2951. 080019fc <Error_Handler>:
  2952. /**
  2953. * @brief This function is executed in case of error occurrence.
  2954. * @retval None
  2955. */
  2956. void Error_Handler(void)
  2957. {
  2958. 80019fc: b480 push {r7}
  2959. 80019fe: af00 add r7, sp, #0
  2960. \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  2961. Can only be executed in Privileged modes.
  2962. */
  2963. __STATIC_FORCEINLINE void __disable_irq(void)
  2964. {
  2965. __ASM volatile ("cpsid i" : : : "memory");
  2966. 8001a00: b672 cpsid i
  2967. }
  2968. 8001a02: bf00 nop
  2969. /* USER CODE BEGIN Error_Handler_Debug */
  2970. /* User can add his own implementation to report the HAL error return state */
  2971. __disable_irq();
  2972. while (1)
  2973. 8001a04: e7fe b.n 8001a04 <Error_Handler+0x8>
  2974. ...
  2975. 08001a08 <HAL_MspInit>:
  2976. void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);
  2977. /**
  2978. * Initializes the Global MSP.
  2979. */
  2980. void HAL_MspInit(void)
  2981. {
  2982. 8001a08: b480 push {r7}
  2983. 8001a0a: b085 sub sp, #20
  2984. 8001a0c: af00 add r7, sp, #0
  2985. /* USER CODE BEGIN MspInit 0 */
  2986. /* USER CODE END MspInit 0 */
  2987. __HAL_RCC_COMP_CLK_ENABLE();
  2988. 8001a0e: 4b14 ldr r3, [pc, #80] ; (8001a60 <HAL_MspInit+0x58>)
  2989. 8001a10: 6a5b ldr r3, [r3, #36] ; 0x24
  2990. 8001a12: 4a13 ldr r2, [pc, #76] ; (8001a60 <HAL_MspInit+0x58>)
  2991. 8001a14: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  2992. 8001a18: 6253 str r3, [r2, #36] ; 0x24
  2993. 8001a1a: 4b11 ldr r3, [pc, #68] ; (8001a60 <HAL_MspInit+0x58>)
  2994. 8001a1c: 6a5b ldr r3, [r3, #36] ; 0x24
  2995. 8001a1e: f003 4300 and.w r3, r3, #2147483648 ; 0x80000000
  2996. 8001a22: 60fb str r3, [r7, #12]
  2997. 8001a24: 68fb ldr r3, [r7, #12]
  2998. __HAL_RCC_SYSCFG_CLK_ENABLE();
  2999. 8001a26: 4b0e ldr r3, [pc, #56] ; (8001a60 <HAL_MspInit+0x58>)
  3000. 8001a28: 6a1b ldr r3, [r3, #32]
  3001. 8001a2a: 4a0d ldr r2, [pc, #52] ; (8001a60 <HAL_MspInit+0x58>)
  3002. 8001a2c: f043 0301 orr.w r3, r3, #1
  3003. 8001a30: 6213 str r3, [r2, #32]
  3004. 8001a32: 4b0b ldr r3, [pc, #44] ; (8001a60 <HAL_MspInit+0x58>)
  3005. 8001a34: 6a1b ldr r3, [r3, #32]
  3006. 8001a36: f003 0301 and.w r3, r3, #1
  3007. 8001a3a: 60bb str r3, [r7, #8]
  3008. 8001a3c: 68bb ldr r3, [r7, #8]
  3009. __HAL_RCC_PWR_CLK_ENABLE();
  3010. 8001a3e: 4b08 ldr r3, [pc, #32] ; (8001a60 <HAL_MspInit+0x58>)
  3011. 8001a40: 6a5b ldr r3, [r3, #36] ; 0x24
  3012. 8001a42: 4a07 ldr r2, [pc, #28] ; (8001a60 <HAL_MspInit+0x58>)
  3013. 8001a44: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  3014. 8001a48: 6253 str r3, [r2, #36] ; 0x24
  3015. 8001a4a: 4b05 ldr r3, [pc, #20] ; (8001a60 <HAL_MspInit+0x58>)
  3016. 8001a4c: 6a5b ldr r3, [r3, #36] ; 0x24
  3017. 8001a4e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  3018. 8001a52: 607b str r3, [r7, #4]
  3019. 8001a54: 687b ldr r3, [r7, #4]
  3020. /* System interrupt init*/
  3021. /* USER CODE BEGIN MspInit 1 */
  3022. /* USER CODE END MspInit 1 */
  3023. }
  3024. 8001a56: bf00 nop
  3025. 8001a58: 3714 adds r7, #20
  3026. 8001a5a: 46bd mov sp, r7
  3027. 8001a5c: bc80 pop {r7}
  3028. 8001a5e: 4770 bx lr
  3029. 8001a60: 40023800 .word 0x40023800
  3030. 08001a64 <HAL_ADC_MspInit>:
  3031. * This function configures the hardware resources used in this example
  3032. * @param hadc: ADC handle pointer
  3033. * @retval None
  3034. */
  3035. void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
  3036. {
  3037. 8001a64: b580 push {r7, lr}
  3038. 8001a66: b08a sub sp, #40 ; 0x28
  3039. 8001a68: af00 add r7, sp, #0
  3040. 8001a6a: 6078 str r0, [r7, #4]
  3041. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3042. 8001a6c: f107 0314 add.w r3, r7, #20
  3043. 8001a70: 2200 movs r2, #0
  3044. 8001a72: 601a str r2, [r3, #0]
  3045. 8001a74: 605a str r2, [r3, #4]
  3046. 8001a76: 609a str r2, [r3, #8]
  3047. 8001a78: 60da str r2, [r3, #12]
  3048. 8001a7a: 611a str r2, [r3, #16]
  3049. if(hadc->Instance==ADC1)
  3050. 8001a7c: 687b ldr r3, [r7, #4]
  3051. 8001a7e: 681b ldr r3, [r3, #0]
  3052. 8001a80: 4a29 ldr r2, [pc, #164] ; (8001b28 <HAL_ADC_MspInit+0xc4>)
  3053. 8001a82: 4293 cmp r3, r2
  3054. 8001a84: d14b bne.n 8001b1e <HAL_ADC_MspInit+0xba>
  3055. {
  3056. /* USER CODE BEGIN ADC1_MspInit 0 */
  3057. /* USER CODE END ADC1_MspInit 0 */
  3058. /* Peripheral clock enable */
  3059. __HAL_RCC_ADC1_CLK_ENABLE();
  3060. 8001a86: 4b29 ldr r3, [pc, #164] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
  3061. 8001a88: 6a1b ldr r3, [r3, #32]
  3062. 8001a8a: 4a28 ldr r2, [pc, #160] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
  3063. 8001a8c: f443 7300 orr.w r3, r3, #512 ; 0x200
  3064. 8001a90: 6213 str r3, [r2, #32]
  3065. 8001a92: 4b26 ldr r3, [pc, #152] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
  3066. 8001a94: 6a1b ldr r3, [r3, #32]
  3067. 8001a96: f403 7300 and.w r3, r3, #512 ; 0x200
  3068. 8001a9a: 613b str r3, [r7, #16]
  3069. 8001a9c: 693b ldr r3, [r7, #16]
  3070. __HAL_RCC_GPIOA_CLK_ENABLE();
  3071. 8001a9e: 4b23 ldr r3, [pc, #140] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
  3072. 8001aa0: 69db ldr r3, [r3, #28]
  3073. 8001aa2: 4a22 ldr r2, [pc, #136] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
  3074. 8001aa4: f043 0301 orr.w r3, r3, #1
  3075. 8001aa8: 61d3 str r3, [r2, #28]
  3076. 8001aaa: 4b20 ldr r3, [pc, #128] ; (8001b2c <HAL_ADC_MspInit+0xc8>)
  3077. 8001aac: 69db ldr r3, [r3, #28]
  3078. 8001aae: f003 0301 and.w r3, r3, #1
  3079. 8001ab2: 60fb str r3, [r7, #12]
  3080. 8001ab4: 68fb ldr r3, [r7, #12]
  3081. /**ADC GPIO Configuration
  3082. PA0-WKUP1 ------> ADC_IN0
  3083. */
  3084. GPIO_InitStruct.Pin = GPIO_PIN_0;
  3085. 8001ab6: 2301 movs r3, #1
  3086. 8001ab8: 617b str r3, [r7, #20]
  3087. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3088. 8001aba: 2303 movs r3, #3
  3089. 8001abc: 61bb str r3, [r7, #24]
  3090. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3091. 8001abe: 2300 movs r3, #0
  3092. 8001ac0: 61fb str r3, [r7, #28]
  3093. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3094. 8001ac2: f107 0314 add.w r3, r7, #20
  3095. 8001ac6: 4619 mov r1, r3
  3096. 8001ac8: 4819 ldr r0, [pc, #100] ; (8001b30 <HAL_ADC_MspInit+0xcc>)
  3097. 8001aca: f001 fdb1 bl 8003630 <HAL_GPIO_Init>
  3098. /* ADC1 DMA Init */
  3099. /* ADC Init */
  3100. hdma_adc.Instance = DMA1_Channel1;
  3101. 8001ace: 4b19 ldr r3, [pc, #100] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3102. 8001ad0: 4a19 ldr r2, [pc, #100] ; (8001b38 <HAL_ADC_MspInit+0xd4>)
  3103. 8001ad2: 601a str r2, [r3, #0]
  3104. hdma_adc.Init.Direction = DMA_PERIPH_TO_MEMORY;
  3105. 8001ad4: 4b17 ldr r3, [pc, #92] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3106. 8001ad6: 2200 movs r2, #0
  3107. 8001ad8: 605a str r2, [r3, #4]
  3108. hdma_adc.Init.PeriphInc = DMA_PINC_DISABLE;
  3109. 8001ada: 4b16 ldr r3, [pc, #88] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3110. 8001adc: 2200 movs r2, #0
  3111. 8001ade: 609a str r2, [r3, #8]
  3112. hdma_adc.Init.MemInc = DMA_MINC_ENABLE;
  3113. 8001ae0: 4b14 ldr r3, [pc, #80] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3114. 8001ae2: 2280 movs r2, #128 ; 0x80
  3115. 8001ae4: 60da str r2, [r3, #12]
  3116. hdma_adc.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
  3117. 8001ae6: 4b13 ldr r3, [pc, #76] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3118. 8001ae8: f44f 7200 mov.w r2, #512 ; 0x200
  3119. 8001aec: 611a str r2, [r3, #16]
  3120. hdma_adc.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
  3121. 8001aee: 4b11 ldr r3, [pc, #68] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3122. 8001af0: f44f 6200 mov.w r2, #2048 ; 0x800
  3123. 8001af4: 615a str r2, [r3, #20]
  3124. hdma_adc.Init.Mode = DMA_NORMAL;
  3125. 8001af6: 4b0f ldr r3, [pc, #60] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3126. 8001af8: 2200 movs r2, #0
  3127. 8001afa: 619a str r2, [r3, #24]
  3128. hdma_adc.Init.Priority = DMA_PRIORITY_LOW;
  3129. 8001afc: 4b0d ldr r3, [pc, #52] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3130. 8001afe: 2200 movs r2, #0
  3131. 8001b00: 61da str r2, [r3, #28]
  3132. if (HAL_DMA_Init(&hdma_adc) != HAL_OK)
  3133. 8001b02: 480c ldr r0, [pc, #48] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3134. 8001b04: f001 fbc0 bl 8003288 <HAL_DMA_Init>
  3135. 8001b08: 4603 mov r3, r0
  3136. 8001b0a: 2b00 cmp r3, #0
  3137. 8001b0c: d001 beq.n 8001b12 <HAL_ADC_MspInit+0xae>
  3138. {
  3139. Error_Handler();
  3140. 8001b0e: f7ff ff75 bl 80019fc <Error_Handler>
  3141. }
  3142. __HAL_LINKDMA(hadc,DMA_Handle,hdma_adc);
  3143. 8001b12: 687b ldr r3, [r7, #4]
  3144. 8001b14: 4a07 ldr r2, [pc, #28] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3145. 8001b16: 645a str r2, [r3, #68] ; 0x44
  3146. 8001b18: 4a06 ldr r2, [pc, #24] ; (8001b34 <HAL_ADC_MspInit+0xd0>)
  3147. 8001b1a: 687b ldr r3, [r7, #4]
  3148. 8001b1c: 6253 str r3, [r2, #36] ; 0x24
  3149. /* USER CODE BEGIN ADC1_MspInit 1 */
  3150. /* USER CODE END ADC1_MspInit 1 */
  3151. }
  3152. }
  3153. 8001b1e: bf00 nop
  3154. 8001b20: 3728 adds r7, #40 ; 0x28
  3155. 8001b22: 46bd mov sp, r7
  3156. 8001b24: bd80 pop {r7, pc}
  3157. 8001b26: bf00 nop
  3158. 8001b28: 40012400 .word 0x40012400
  3159. 8001b2c: 40023800 .word 0x40023800
  3160. 8001b30: 40020000 .word 0x40020000
  3161. 8001b34: 200005ec .word 0x200005ec
  3162. 8001b38: 40026008 .word 0x40026008
  3163. 08001b3c <HAL_COMP_MspInit>:
  3164. * This function configures the hardware resources used in this example
  3165. * @param hcomp: COMP handle pointer
  3166. * @retval None
  3167. */
  3168. void HAL_COMP_MspInit(COMP_HandleTypeDef* hcomp)
  3169. {
  3170. 8001b3c: b580 push {r7, lr}
  3171. 8001b3e: b088 sub sp, #32
  3172. 8001b40: af00 add r7, sp, #0
  3173. 8001b42: 6078 str r0, [r7, #4]
  3174. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3175. 8001b44: f107 030c add.w r3, r7, #12
  3176. 8001b48: 2200 movs r2, #0
  3177. 8001b4a: 601a str r2, [r3, #0]
  3178. 8001b4c: 605a str r2, [r3, #4]
  3179. 8001b4e: 609a str r2, [r3, #8]
  3180. 8001b50: 60da str r2, [r3, #12]
  3181. 8001b52: 611a str r2, [r3, #16]
  3182. if(hcomp->Instance==COMP2)
  3183. 8001b54: 687b ldr r3, [r7, #4]
  3184. 8001b56: 681b ldr r3, [r3, #0]
  3185. 8001b58: 4a13 ldr r2, [pc, #76] ; (8001ba8 <HAL_COMP_MspInit+0x6c>)
  3186. 8001b5a: 4293 cmp r3, r2
  3187. 8001b5c: d11f bne.n 8001b9e <HAL_COMP_MspInit+0x62>
  3188. {
  3189. /* USER CODE BEGIN COMP2_MspInit 0 */
  3190. /* USER CODE END COMP2_MspInit 0 */
  3191. __HAL_RCC_GPIOB_CLK_ENABLE();
  3192. 8001b5e: 4b13 ldr r3, [pc, #76] ; (8001bac <HAL_COMP_MspInit+0x70>)
  3193. 8001b60: 69db ldr r3, [r3, #28]
  3194. 8001b62: 4a12 ldr r2, [pc, #72] ; (8001bac <HAL_COMP_MspInit+0x70>)
  3195. 8001b64: f043 0302 orr.w r3, r3, #2
  3196. 8001b68: 61d3 str r3, [r2, #28]
  3197. 8001b6a: 4b10 ldr r3, [pc, #64] ; (8001bac <HAL_COMP_MspInit+0x70>)
  3198. 8001b6c: 69db ldr r3, [r3, #28]
  3199. 8001b6e: f003 0302 and.w r3, r3, #2
  3200. 8001b72: 60bb str r3, [r7, #8]
  3201. 8001b74: 68bb ldr r3, [r7, #8]
  3202. /**COMP2 GPIO Configuration
  3203. PB5 ------> COMP2_INP
  3204. */
  3205. GPIO_InitStruct.Pin = GPIO_PIN_5;
  3206. 8001b76: 2320 movs r3, #32
  3207. 8001b78: 60fb str r3, [r7, #12]
  3208. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3209. 8001b7a: 2303 movs r3, #3
  3210. 8001b7c: 613b str r3, [r7, #16]
  3211. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3212. 8001b7e: 2300 movs r3, #0
  3213. 8001b80: 617b str r3, [r7, #20]
  3214. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3215. 8001b82: f107 030c add.w r3, r7, #12
  3216. 8001b86: 4619 mov r1, r3
  3217. 8001b88: 4809 ldr r0, [pc, #36] ; (8001bb0 <HAL_COMP_MspInit+0x74>)
  3218. 8001b8a: f001 fd51 bl 8003630 <HAL_GPIO_Init>
  3219. /* COMP2 interrupt Init */
  3220. HAL_NVIC_SetPriority(COMP_IRQn, 0, 0);
  3221. 8001b8e: 2200 movs r2, #0
  3222. 8001b90: 2100 movs r1, #0
  3223. 8001b92: 2016 movs r0, #22
  3224. 8001b94: f001 fa5d bl 8003052 <HAL_NVIC_SetPriority>
  3225. HAL_NVIC_EnableIRQ(COMP_IRQn);
  3226. 8001b98: 2016 movs r0, #22
  3227. 8001b9a: f001 fa76 bl 800308a <HAL_NVIC_EnableIRQ>
  3228. /* USER CODE BEGIN COMP2_MspInit 1 */
  3229. /* USER CODE END COMP2_MspInit 1 */
  3230. }
  3231. }
  3232. 8001b9e: bf00 nop
  3233. 8001ba0: 3720 adds r7, #32
  3234. 8001ba2: 46bd mov sp, r7
  3235. 8001ba4: bd80 pop {r7, pc}
  3236. 8001ba6: bf00 nop
  3237. 8001ba8: 40007c01 .word 0x40007c01
  3238. 8001bac: 40023800 .word 0x40023800
  3239. 8001bb0: 40020400 .word 0x40020400
  3240. 08001bb4 <HAL_DAC_MspInit>:
  3241. * This function configures the hardware resources used in this example
  3242. * @param hdac: DAC handle pointer
  3243. * @retval None
  3244. */
  3245. void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac)
  3246. {
  3247. 8001bb4: b580 push {r7, lr}
  3248. 8001bb6: b08a sub sp, #40 ; 0x28
  3249. 8001bb8: af00 add r7, sp, #0
  3250. 8001bba: 6078 str r0, [r7, #4]
  3251. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3252. 8001bbc: f107 0314 add.w r3, r7, #20
  3253. 8001bc0: 2200 movs r2, #0
  3254. 8001bc2: 601a str r2, [r3, #0]
  3255. 8001bc4: 605a str r2, [r3, #4]
  3256. 8001bc6: 609a str r2, [r3, #8]
  3257. 8001bc8: 60da str r2, [r3, #12]
  3258. 8001bca: 611a str r2, [r3, #16]
  3259. if(hdac->Instance==DAC)
  3260. 8001bcc: 687b ldr r3, [r7, #4]
  3261. 8001bce: 681b ldr r3, [r3, #0]
  3262. 8001bd0: 4a15 ldr r2, [pc, #84] ; (8001c28 <HAL_DAC_MspInit+0x74>)
  3263. 8001bd2: 4293 cmp r3, r2
  3264. 8001bd4: d123 bne.n 8001c1e <HAL_DAC_MspInit+0x6a>
  3265. {
  3266. /* USER CODE BEGIN DAC_MspInit 0 */
  3267. /* USER CODE END DAC_MspInit 0 */
  3268. /* Peripheral clock enable */
  3269. __HAL_RCC_DAC_CLK_ENABLE();
  3270. 8001bd6: 4b15 ldr r3, [pc, #84] ; (8001c2c <HAL_DAC_MspInit+0x78>)
  3271. 8001bd8: 6a5b ldr r3, [r3, #36] ; 0x24
  3272. 8001bda: 4a14 ldr r2, [pc, #80] ; (8001c2c <HAL_DAC_MspInit+0x78>)
  3273. 8001bdc: f043 5300 orr.w r3, r3, #536870912 ; 0x20000000
  3274. 8001be0: 6253 str r3, [r2, #36] ; 0x24
  3275. 8001be2: 4b12 ldr r3, [pc, #72] ; (8001c2c <HAL_DAC_MspInit+0x78>)
  3276. 8001be4: 6a5b ldr r3, [r3, #36] ; 0x24
  3277. 8001be6: f003 5300 and.w r3, r3, #536870912 ; 0x20000000
  3278. 8001bea: 613b str r3, [r7, #16]
  3279. 8001bec: 693b ldr r3, [r7, #16]
  3280. __HAL_RCC_GPIOA_CLK_ENABLE();
  3281. 8001bee: 4b0f ldr r3, [pc, #60] ; (8001c2c <HAL_DAC_MspInit+0x78>)
  3282. 8001bf0: 69db ldr r3, [r3, #28]
  3283. 8001bf2: 4a0e ldr r2, [pc, #56] ; (8001c2c <HAL_DAC_MspInit+0x78>)
  3284. 8001bf4: f043 0301 orr.w r3, r3, #1
  3285. 8001bf8: 61d3 str r3, [r2, #28]
  3286. 8001bfa: 4b0c ldr r3, [pc, #48] ; (8001c2c <HAL_DAC_MspInit+0x78>)
  3287. 8001bfc: 69db ldr r3, [r3, #28]
  3288. 8001bfe: f003 0301 and.w r3, r3, #1
  3289. 8001c02: 60fb str r3, [r7, #12]
  3290. 8001c04: 68fb ldr r3, [r7, #12]
  3291. /**DAC GPIO Configuration
  3292. PA4 ------> DAC_OUT1
  3293. PA5 ------> DAC_OUT2
  3294. */
  3295. GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5;
  3296. 8001c06: 2330 movs r3, #48 ; 0x30
  3297. 8001c08: 617b str r3, [r7, #20]
  3298. GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  3299. 8001c0a: 2303 movs r3, #3
  3300. 8001c0c: 61bb str r3, [r7, #24]
  3301. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3302. 8001c0e: 2300 movs r3, #0
  3303. 8001c10: 61fb str r3, [r7, #28]
  3304. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3305. 8001c12: f107 0314 add.w r3, r7, #20
  3306. 8001c16: 4619 mov r1, r3
  3307. 8001c18: 4805 ldr r0, [pc, #20] ; (8001c30 <HAL_DAC_MspInit+0x7c>)
  3308. 8001c1a: f001 fd09 bl 8003630 <HAL_GPIO_Init>
  3309. /* USER CODE BEGIN DAC_MspInit 1 */
  3310. /* USER CODE END DAC_MspInit 1 */
  3311. }
  3312. }
  3313. 8001c1e: bf00 nop
  3314. 8001c20: 3728 adds r7, #40 ; 0x28
  3315. 8001c22: 46bd mov sp, r7
  3316. 8001c24: bd80 pop {r7, pc}
  3317. 8001c26: bf00 nop
  3318. 8001c28: 40007400 .word 0x40007400
  3319. 8001c2c: 40023800 .word 0x40023800
  3320. 8001c30: 40020000 .word 0x40020000
  3321. 08001c34 <HAL_I2C_MspInit>:
  3322. * This function configures the hardware resources used in this example
  3323. * @param hi2c: I2C handle pointer
  3324. * @retval None
  3325. */
  3326. void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
  3327. {
  3328. 8001c34: b580 push {r7, lr}
  3329. 8001c36: b08a sub sp, #40 ; 0x28
  3330. 8001c38: af00 add r7, sp, #0
  3331. 8001c3a: 6078 str r0, [r7, #4]
  3332. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3333. 8001c3c: f107 0314 add.w r3, r7, #20
  3334. 8001c40: 2200 movs r2, #0
  3335. 8001c42: 601a str r2, [r3, #0]
  3336. 8001c44: 605a str r2, [r3, #4]
  3337. 8001c46: 609a str r2, [r3, #8]
  3338. 8001c48: 60da str r2, [r3, #12]
  3339. 8001c4a: 611a str r2, [r3, #16]
  3340. if(hi2c->Instance==I2C2)
  3341. 8001c4c: 687b ldr r3, [r7, #4]
  3342. 8001c4e: 681b ldr r3, [r3, #0]
  3343. 8001c50: 4a17 ldr r2, [pc, #92] ; (8001cb0 <HAL_I2C_MspInit+0x7c>)
  3344. 8001c52: 4293 cmp r3, r2
  3345. 8001c54: d128 bne.n 8001ca8 <HAL_I2C_MspInit+0x74>
  3346. {
  3347. /* USER CODE BEGIN I2C2_MspInit 0 */
  3348. /* USER CODE END I2C2_MspInit 0 */
  3349. __HAL_RCC_GPIOB_CLK_ENABLE();
  3350. 8001c56: 4b17 ldr r3, [pc, #92] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
  3351. 8001c58: 69db ldr r3, [r3, #28]
  3352. 8001c5a: 4a16 ldr r2, [pc, #88] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
  3353. 8001c5c: f043 0302 orr.w r3, r3, #2
  3354. 8001c60: 61d3 str r3, [r2, #28]
  3355. 8001c62: 4b14 ldr r3, [pc, #80] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
  3356. 8001c64: 69db ldr r3, [r3, #28]
  3357. 8001c66: f003 0302 and.w r3, r3, #2
  3358. 8001c6a: 613b str r3, [r7, #16]
  3359. 8001c6c: 693b ldr r3, [r7, #16]
  3360. /**I2C2 GPIO Configuration
  3361. PB10 ------> I2C2_SCL
  3362. PB11 ------> I2C2_SDA
  3363. */
  3364. GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  3365. 8001c6e: f44f 6340 mov.w r3, #3072 ; 0xc00
  3366. 8001c72: 617b str r3, [r7, #20]
  3367. GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
  3368. 8001c74: 2312 movs r3, #18
  3369. 8001c76: 61bb str r3, [r7, #24]
  3370. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3371. 8001c78: 2300 movs r3, #0
  3372. 8001c7a: 61fb str r3, [r7, #28]
  3373. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  3374. 8001c7c: 2303 movs r3, #3
  3375. 8001c7e: 623b str r3, [r7, #32]
  3376. GPIO_InitStruct.Alternate = GPIO_AF4_I2C2;
  3377. 8001c80: 2304 movs r3, #4
  3378. 8001c82: 627b str r3, [r7, #36] ; 0x24
  3379. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3380. 8001c84: f107 0314 add.w r3, r7, #20
  3381. 8001c88: 4619 mov r1, r3
  3382. 8001c8a: 480b ldr r0, [pc, #44] ; (8001cb8 <HAL_I2C_MspInit+0x84>)
  3383. 8001c8c: f001 fcd0 bl 8003630 <HAL_GPIO_Init>
  3384. /* Peripheral clock enable */
  3385. __HAL_RCC_I2C2_CLK_ENABLE();
  3386. 8001c90: 4b08 ldr r3, [pc, #32] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
  3387. 8001c92: 6a5b ldr r3, [r3, #36] ; 0x24
  3388. 8001c94: 4a07 ldr r2, [pc, #28] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
  3389. 8001c96: f443 0380 orr.w r3, r3, #4194304 ; 0x400000
  3390. 8001c9a: 6253 str r3, [r2, #36] ; 0x24
  3391. 8001c9c: 4b05 ldr r3, [pc, #20] ; (8001cb4 <HAL_I2C_MspInit+0x80>)
  3392. 8001c9e: 6a5b ldr r3, [r3, #36] ; 0x24
  3393. 8001ca0: f403 0380 and.w r3, r3, #4194304 ; 0x400000
  3394. 8001ca4: 60fb str r3, [r7, #12]
  3395. 8001ca6: 68fb ldr r3, [r7, #12]
  3396. /* USER CODE BEGIN I2C2_MspInit 1 */
  3397. /* USER CODE END I2C2_MspInit 1 */
  3398. }
  3399. }
  3400. 8001ca8: bf00 nop
  3401. 8001caa: 3728 adds r7, #40 ; 0x28
  3402. 8001cac: 46bd mov sp, r7
  3403. 8001cae: bd80 pop {r7, pc}
  3404. 8001cb0: 40005800 .word 0x40005800
  3405. 8001cb4: 40023800 .word 0x40023800
  3406. 8001cb8: 40020400 .word 0x40020400
  3407. 08001cbc <HAL_TIM_Base_MspInit>:
  3408. * This function configures the hardware resources used in this example
  3409. * @param htim_base: TIM_Base handle pointer
  3410. * @retval None
  3411. */
  3412. void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
  3413. {
  3414. 8001cbc: b580 push {r7, lr}
  3415. 8001cbe: b086 sub sp, #24
  3416. 8001cc0: af00 add r7, sp, #0
  3417. 8001cc2: 6078 str r0, [r7, #4]
  3418. if(htim_base->Instance==TIM2)
  3419. 8001cc4: 687b ldr r3, [r7, #4]
  3420. 8001cc6: 681b ldr r3, [r3, #0]
  3421. 8001cc8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  3422. 8001ccc: d10c bne.n 8001ce8 <HAL_TIM_Base_MspInit+0x2c>
  3423. {
  3424. /* USER CODE BEGIN TIM2_MspInit 0 */
  3425. /* USER CODE END TIM2_MspInit 0 */
  3426. /* Peripheral clock enable */
  3427. __HAL_RCC_TIM2_CLK_ENABLE();
  3428. 8001cce: 4b2b ldr r3, [pc, #172] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3429. 8001cd0: 6a5b ldr r3, [r3, #36] ; 0x24
  3430. 8001cd2: 4a2a ldr r2, [pc, #168] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3431. 8001cd4: f043 0301 orr.w r3, r3, #1
  3432. 8001cd8: 6253 str r3, [r2, #36] ; 0x24
  3433. 8001cda: 4b28 ldr r3, [pc, #160] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3434. 8001cdc: 6a5b ldr r3, [r3, #36] ; 0x24
  3435. 8001cde: f003 0301 and.w r3, r3, #1
  3436. 8001ce2: 617b str r3, [r7, #20]
  3437. 8001ce4: 697b ldr r3, [r7, #20]
  3438. /* USER CODE BEGIN TIM6_MspInit 1 */
  3439. /* USER CODE END TIM6_MspInit 1 */
  3440. }
  3441. }
  3442. 8001ce6: e044 b.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
  3443. else if(htim_base->Instance==TIM3)
  3444. 8001ce8: 687b ldr r3, [r7, #4]
  3445. 8001cea: 681b ldr r3, [r3, #0]
  3446. 8001cec: 4a24 ldr r2, [pc, #144] ; (8001d80 <HAL_TIM_Base_MspInit+0xc4>)
  3447. 8001cee: 4293 cmp r3, r2
  3448. 8001cf0: d10c bne.n 8001d0c <HAL_TIM_Base_MspInit+0x50>
  3449. __HAL_RCC_TIM3_CLK_ENABLE();
  3450. 8001cf2: 4b22 ldr r3, [pc, #136] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3451. 8001cf4: 6a5b ldr r3, [r3, #36] ; 0x24
  3452. 8001cf6: 4a21 ldr r2, [pc, #132] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3453. 8001cf8: f043 0302 orr.w r3, r3, #2
  3454. 8001cfc: 6253 str r3, [r2, #36] ; 0x24
  3455. 8001cfe: 4b1f ldr r3, [pc, #124] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3456. 8001d00: 6a5b ldr r3, [r3, #36] ; 0x24
  3457. 8001d02: f003 0302 and.w r3, r3, #2
  3458. 8001d06: 613b str r3, [r7, #16]
  3459. 8001d08: 693b ldr r3, [r7, #16]
  3460. }
  3461. 8001d0a: e032 b.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
  3462. else if(htim_base->Instance==TIM4)
  3463. 8001d0c: 687b ldr r3, [r7, #4]
  3464. 8001d0e: 681b ldr r3, [r3, #0]
  3465. 8001d10: 4a1c ldr r2, [pc, #112] ; (8001d84 <HAL_TIM_Base_MspInit+0xc8>)
  3466. 8001d12: 4293 cmp r3, r2
  3467. 8001d14: d114 bne.n 8001d40 <HAL_TIM_Base_MspInit+0x84>
  3468. __HAL_RCC_TIM4_CLK_ENABLE();
  3469. 8001d16: 4b19 ldr r3, [pc, #100] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3470. 8001d18: 6a5b ldr r3, [r3, #36] ; 0x24
  3471. 8001d1a: 4a18 ldr r2, [pc, #96] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3472. 8001d1c: f043 0304 orr.w r3, r3, #4
  3473. 8001d20: 6253 str r3, [r2, #36] ; 0x24
  3474. 8001d22: 4b16 ldr r3, [pc, #88] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3475. 8001d24: 6a5b ldr r3, [r3, #36] ; 0x24
  3476. 8001d26: f003 0304 and.w r3, r3, #4
  3477. 8001d2a: 60fb str r3, [r7, #12]
  3478. 8001d2c: 68fb ldr r3, [r7, #12]
  3479. HAL_NVIC_SetPriority(TIM4_IRQn, 0, 0);
  3480. 8001d2e: 2200 movs r2, #0
  3481. 8001d30: 2100 movs r1, #0
  3482. 8001d32: 201e movs r0, #30
  3483. 8001d34: f001 f98d bl 8003052 <HAL_NVIC_SetPriority>
  3484. HAL_NVIC_EnableIRQ(TIM4_IRQn);
  3485. 8001d38: 201e movs r0, #30
  3486. 8001d3a: f001 f9a6 bl 800308a <HAL_NVIC_EnableIRQ>
  3487. }
  3488. 8001d3e: e018 b.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
  3489. else if(htim_base->Instance==TIM6)
  3490. 8001d40: 687b ldr r3, [r7, #4]
  3491. 8001d42: 681b ldr r3, [r3, #0]
  3492. 8001d44: 4a10 ldr r2, [pc, #64] ; (8001d88 <HAL_TIM_Base_MspInit+0xcc>)
  3493. 8001d46: 4293 cmp r3, r2
  3494. 8001d48: d113 bne.n 8001d72 <HAL_TIM_Base_MspInit+0xb6>
  3495. __HAL_RCC_TIM6_CLK_ENABLE();
  3496. 8001d4a: 4b0c ldr r3, [pc, #48] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3497. 8001d4c: 6a5b ldr r3, [r3, #36] ; 0x24
  3498. 8001d4e: 4a0b ldr r2, [pc, #44] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3499. 8001d50: f043 0310 orr.w r3, r3, #16
  3500. 8001d54: 6253 str r3, [r2, #36] ; 0x24
  3501. 8001d56: 4b09 ldr r3, [pc, #36] ; (8001d7c <HAL_TIM_Base_MspInit+0xc0>)
  3502. 8001d58: 6a5b ldr r3, [r3, #36] ; 0x24
  3503. 8001d5a: f003 0310 and.w r3, r3, #16
  3504. 8001d5e: 60bb str r3, [r7, #8]
  3505. 8001d60: 68bb ldr r3, [r7, #8]
  3506. HAL_NVIC_SetPriority(TIM6_IRQn, 0, 0);
  3507. 8001d62: 2200 movs r2, #0
  3508. 8001d64: 2100 movs r1, #0
  3509. 8001d66: 202b movs r0, #43 ; 0x2b
  3510. 8001d68: f001 f973 bl 8003052 <HAL_NVIC_SetPriority>
  3511. HAL_NVIC_EnableIRQ(TIM6_IRQn);
  3512. 8001d6c: 202b movs r0, #43 ; 0x2b
  3513. 8001d6e: f001 f98c bl 800308a <HAL_NVIC_EnableIRQ>
  3514. }
  3515. 8001d72: bf00 nop
  3516. 8001d74: 3718 adds r7, #24
  3517. 8001d76: 46bd mov sp, r7
  3518. 8001d78: bd80 pop {r7, pc}
  3519. 8001d7a: bf00 nop
  3520. 8001d7c: 40023800 .word 0x40023800
  3521. 8001d80: 40000400 .word 0x40000400
  3522. 8001d84: 40000800 .word 0x40000800
  3523. 8001d88: 40001000 .word 0x40001000
  3524. 08001d8c <HAL_TIM_MspPostInit>:
  3525. void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim)
  3526. {
  3527. 8001d8c: b580 push {r7, lr}
  3528. 8001d8e: b088 sub sp, #32
  3529. 8001d90: af00 add r7, sp, #0
  3530. 8001d92: 6078 str r0, [r7, #4]
  3531. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3532. 8001d94: f107 030c add.w r3, r7, #12
  3533. 8001d98: 2200 movs r2, #0
  3534. 8001d9a: 601a str r2, [r3, #0]
  3535. 8001d9c: 605a str r2, [r3, #4]
  3536. 8001d9e: 609a str r2, [r3, #8]
  3537. 8001da0: 60da str r2, [r3, #12]
  3538. 8001da2: 611a str r2, [r3, #16]
  3539. if(htim->Instance==TIM3)
  3540. 8001da4: 687b ldr r3, [r7, #4]
  3541. 8001da6: 681b ldr r3, [r3, #0]
  3542. 8001da8: 4a11 ldr r2, [pc, #68] ; (8001df0 <HAL_TIM_MspPostInit+0x64>)
  3543. 8001daa: 4293 cmp r3, r2
  3544. 8001dac: d11b bne.n 8001de6 <HAL_TIM_MspPostInit+0x5a>
  3545. {
  3546. /* USER CODE BEGIN TIM3_MspPostInit 0 */
  3547. /* USER CODE END TIM3_MspPostInit 0 */
  3548. __HAL_RCC_GPIOB_CLK_ENABLE();
  3549. 8001dae: 4b11 ldr r3, [pc, #68] ; (8001df4 <HAL_TIM_MspPostInit+0x68>)
  3550. 8001db0: 69db ldr r3, [r3, #28]
  3551. 8001db2: 4a10 ldr r2, [pc, #64] ; (8001df4 <HAL_TIM_MspPostInit+0x68>)
  3552. 8001db4: f043 0302 orr.w r3, r3, #2
  3553. 8001db8: 61d3 str r3, [r2, #28]
  3554. 8001dba: 4b0e ldr r3, [pc, #56] ; (8001df4 <HAL_TIM_MspPostInit+0x68>)
  3555. 8001dbc: 69db ldr r3, [r3, #28]
  3556. 8001dbe: f003 0302 and.w r3, r3, #2
  3557. 8001dc2: 60bb str r3, [r7, #8]
  3558. 8001dc4: 68bb ldr r3, [r7, #8]
  3559. /**TIM3 GPIO Configuration
  3560. PB1 ------> TIM3_CH4
  3561. */
  3562. GPIO_InitStruct.Pin = GPIO_PIN_1;
  3563. 8001dc6: 2302 movs r3, #2
  3564. 8001dc8: 60fb str r3, [r7, #12]
  3565. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  3566. 8001dca: 2302 movs r3, #2
  3567. 8001dcc: 613b str r3, [r7, #16]
  3568. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3569. 8001dce: 2300 movs r3, #0
  3570. 8001dd0: 617b str r3, [r7, #20]
  3571. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  3572. 8001dd2: 2300 movs r3, #0
  3573. 8001dd4: 61bb str r3, [r7, #24]
  3574. GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
  3575. 8001dd6: 2302 movs r3, #2
  3576. 8001dd8: 61fb str r3, [r7, #28]
  3577. HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  3578. 8001dda: f107 030c add.w r3, r7, #12
  3579. 8001dde: 4619 mov r1, r3
  3580. 8001de0: 4805 ldr r0, [pc, #20] ; (8001df8 <HAL_TIM_MspPostInit+0x6c>)
  3581. 8001de2: f001 fc25 bl 8003630 <HAL_GPIO_Init>
  3582. /* USER CODE BEGIN TIM3_MspPostInit 1 */
  3583. /* USER CODE END TIM3_MspPostInit 1 */
  3584. }
  3585. }
  3586. 8001de6: bf00 nop
  3587. 8001de8: 3720 adds r7, #32
  3588. 8001dea: 46bd mov sp, r7
  3589. 8001dec: bd80 pop {r7, pc}
  3590. 8001dee: bf00 nop
  3591. 8001df0: 40000400 .word 0x40000400
  3592. 8001df4: 40023800 .word 0x40023800
  3593. 8001df8: 40020400 .word 0x40020400
  3594. 08001dfc <HAL_UART_MspInit>:
  3595. * This function configures the hardware resources used in this example
  3596. * @param huart: UART handle pointer
  3597. * @retval None
  3598. */
  3599. void HAL_UART_MspInit(UART_HandleTypeDef* huart)
  3600. {
  3601. 8001dfc: b580 push {r7, lr}
  3602. 8001dfe: b08a sub sp, #40 ; 0x28
  3603. 8001e00: af00 add r7, sp, #0
  3604. 8001e02: 6078 str r0, [r7, #4]
  3605. GPIO_InitTypeDef GPIO_InitStruct = {0};
  3606. 8001e04: f107 0314 add.w r3, r7, #20
  3607. 8001e08: 2200 movs r2, #0
  3608. 8001e0a: 601a str r2, [r3, #0]
  3609. 8001e0c: 605a str r2, [r3, #4]
  3610. 8001e0e: 609a str r2, [r3, #8]
  3611. 8001e10: 60da str r2, [r3, #12]
  3612. 8001e12: 611a str r2, [r3, #16]
  3613. if(huart->Instance==USART1)
  3614. 8001e14: 687b ldr r3, [r7, #4]
  3615. 8001e16: 681b ldr r3, [r3, #0]
  3616. 8001e18: 4a17 ldr r2, [pc, #92] ; (8001e78 <HAL_UART_MspInit+0x7c>)
  3617. 8001e1a: 4293 cmp r3, r2
  3618. 8001e1c: d128 bne.n 8001e70 <HAL_UART_MspInit+0x74>
  3619. {
  3620. /* USER CODE BEGIN USART1_MspInit 0 */
  3621. /* USER CODE END USART1_MspInit 0 */
  3622. /* Peripheral clock enable */
  3623. __HAL_RCC_USART1_CLK_ENABLE();
  3624. 8001e1e: 4b17 ldr r3, [pc, #92] ; (8001e7c <HAL_UART_MspInit+0x80>)
  3625. 8001e20: 6a1b ldr r3, [r3, #32]
  3626. 8001e22: 4a16 ldr r2, [pc, #88] ; (8001e7c <HAL_UART_MspInit+0x80>)
  3627. 8001e24: f443 4380 orr.w r3, r3, #16384 ; 0x4000
  3628. 8001e28: 6213 str r3, [r2, #32]
  3629. 8001e2a: 4b14 ldr r3, [pc, #80] ; (8001e7c <HAL_UART_MspInit+0x80>)
  3630. 8001e2c: 6a1b ldr r3, [r3, #32]
  3631. 8001e2e: f403 4380 and.w r3, r3, #16384 ; 0x4000
  3632. 8001e32: 613b str r3, [r7, #16]
  3633. 8001e34: 693b ldr r3, [r7, #16]
  3634. __HAL_RCC_GPIOA_CLK_ENABLE();
  3635. 8001e36: 4b11 ldr r3, [pc, #68] ; (8001e7c <HAL_UART_MspInit+0x80>)
  3636. 8001e38: 69db ldr r3, [r3, #28]
  3637. 8001e3a: 4a10 ldr r2, [pc, #64] ; (8001e7c <HAL_UART_MspInit+0x80>)
  3638. 8001e3c: f043 0301 orr.w r3, r3, #1
  3639. 8001e40: 61d3 str r3, [r2, #28]
  3640. 8001e42: 4b0e ldr r3, [pc, #56] ; (8001e7c <HAL_UART_MspInit+0x80>)
  3641. 8001e44: 69db ldr r3, [r3, #28]
  3642. 8001e46: f003 0301 and.w r3, r3, #1
  3643. 8001e4a: 60fb str r3, [r7, #12]
  3644. 8001e4c: 68fb ldr r3, [r7, #12]
  3645. /**USART1 GPIO Configuration
  3646. PA9 ------> USART1_TX
  3647. PA10 ------> USART1_RX
  3648. */
  3649. GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10;
  3650. 8001e4e: f44f 63c0 mov.w r3, #1536 ; 0x600
  3651. 8001e52: 617b str r3, [r7, #20]
  3652. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  3653. 8001e54: 2302 movs r3, #2
  3654. 8001e56: 61bb str r3, [r7, #24]
  3655. GPIO_InitStruct.Pull = GPIO_NOPULL;
  3656. 8001e58: 2300 movs r3, #0
  3657. 8001e5a: 61fb str r3, [r7, #28]
  3658. GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  3659. 8001e5c: 2303 movs r3, #3
  3660. 8001e5e: 623b str r3, [r7, #32]
  3661. GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
  3662. 8001e60: 2307 movs r3, #7
  3663. 8001e62: 627b str r3, [r7, #36] ; 0x24
  3664. HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  3665. 8001e64: f107 0314 add.w r3, r7, #20
  3666. 8001e68: 4619 mov r1, r3
  3667. 8001e6a: 4805 ldr r0, [pc, #20] ; (8001e80 <HAL_UART_MspInit+0x84>)
  3668. 8001e6c: f001 fbe0 bl 8003630 <HAL_GPIO_Init>
  3669. /* USER CODE BEGIN USART1_MspInit 1 */
  3670. /* USER CODE END USART1_MspInit 1 */
  3671. }
  3672. }
  3673. 8001e70: bf00 nop
  3674. 8001e72: 3728 adds r7, #40 ; 0x28
  3675. 8001e74: 46bd mov sp, r7
  3676. 8001e76: bd80 pop {r7, pc}
  3677. 8001e78: 40013800 .word 0x40013800
  3678. 8001e7c: 40023800 .word 0x40023800
  3679. 8001e80: 40020000 .word 0x40020000
  3680. 08001e84 <NMI_Handler>:
  3681. /******************************************************************************/
  3682. /**
  3683. * @brief This function handles Non maskable interrupt.
  3684. */
  3685. void NMI_Handler(void)
  3686. {
  3687. 8001e84: b480 push {r7}
  3688. 8001e86: af00 add r7, sp, #0
  3689. /* USER CODE BEGIN NonMaskableInt_IRQn 0 */
  3690. /* USER CODE END NonMaskableInt_IRQn 0 */
  3691. /* USER CODE BEGIN NonMaskableInt_IRQn 1 */
  3692. while (1)
  3693. 8001e88: e7fe b.n 8001e88 <NMI_Handler+0x4>
  3694. 08001e8a <HardFault_Handler>:
  3695. /**
  3696. * @brief This function handles Hard fault interrupt.
  3697. */
  3698. void HardFault_Handler(void)
  3699. {
  3700. 8001e8a: b480 push {r7}
  3701. 8001e8c: af00 add r7, sp, #0
  3702. /* USER CODE BEGIN HardFault_IRQn 0 */
  3703. /* USER CODE END HardFault_IRQn 0 */
  3704. while (1)
  3705. 8001e8e: e7fe b.n 8001e8e <HardFault_Handler+0x4>
  3706. 08001e90 <MemManage_Handler>:
  3707. /**
  3708. * @brief This function handles Memory management fault.
  3709. */
  3710. void MemManage_Handler(void)
  3711. {
  3712. 8001e90: b480 push {r7}
  3713. 8001e92: af00 add r7, sp, #0
  3714. /* USER CODE BEGIN MemoryManagement_IRQn 0 */
  3715. /* USER CODE END MemoryManagement_IRQn 0 */
  3716. while (1)
  3717. 8001e94: e7fe b.n 8001e94 <MemManage_Handler+0x4>
  3718. 08001e96 <BusFault_Handler>:
  3719. /**
  3720. * @brief This function handles Pre-fetch fault, memory access fault.
  3721. */
  3722. void BusFault_Handler(void)
  3723. {
  3724. 8001e96: b480 push {r7}
  3725. 8001e98: af00 add r7, sp, #0
  3726. /* USER CODE BEGIN BusFault_IRQn 0 */
  3727. /* USER CODE END BusFault_IRQn 0 */
  3728. while (1)
  3729. 8001e9a: e7fe b.n 8001e9a <BusFault_Handler+0x4>
  3730. 08001e9c <UsageFault_Handler>:
  3731. /**
  3732. * @brief This function handles Undefined instruction or illegal state.
  3733. */
  3734. void UsageFault_Handler(void)
  3735. {
  3736. 8001e9c: b480 push {r7}
  3737. 8001e9e: af00 add r7, sp, #0
  3738. /* USER CODE BEGIN UsageFault_IRQn 0 */
  3739. /* USER CODE END UsageFault_IRQn 0 */
  3740. while (1)
  3741. 8001ea0: e7fe b.n 8001ea0 <UsageFault_Handler+0x4>
  3742. 08001ea2 <SVC_Handler>:
  3743. /**
  3744. * @brief This function handles System service call via SWI instruction.
  3745. */
  3746. void SVC_Handler(void)
  3747. {
  3748. 8001ea2: b480 push {r7}
  3749. 8001ea4: af00 add r7, sp, #0
  3750. /* USER CODE END SVC_IRQn 0 */
  3751. /* USER CODE BEGIN SVC_IRQn 1 */
  3752. /* USER CODE END SVC_IRQn 1 */
  3753. }
  3754. 8001ea6: bf00 nop
  3755. 8001ea8: 46bd mov sp, r7
  3756. 8001eaa: bc80 pop {r7}
  3757. 8001eac: 4770 bx lr
  3758. 08001eae <DebugMon_Handler>:
  3759. /**
  3760. * @brief This function handles Debug monitor.
  3761. */
  3762. void DebugMon_Handler(void)
  3763. {
  3764. 8001eae: b480 push {r7}
  3765. 8001eb0: af00 add r7, sp, #0
  3766. /* USER CODE END DebugMonitor_IRQn 0 */
  3767. /* USER CODE BEGIN DebugMonitor_IRQn 1 */
  3768. /* USER CODE END DebugMonitor_IRQn 1 */
  3769. }
  3770. 8001eb2: bf00 nop
  3771. 8001eb4: 46bd mov sp, r7
  3772. 8001eb6: bc80 pop {r7}
  3773. 8001eb8: 4770 bx lr
  3774. 08001eba <PendSV_Handler>:
  3775. /**
  3776. * @brief This function handles Pendable request for system service.
  3777. */
  3778. void PendSV_Handler(void)
  3779. {
  3780. 8001eba: b480 push {r7}
  3781. 8001ebc: af00 add r7, sp, #0
  3782. /* USER CODE END PendSV_IRQn 0 */
  3783. /* USER CODE BEGIN PendSV_IRQn 1 */
  3784. /* USER CODE END PendSV_IRQn 1 */
  3785. }
  3786. 8001ebe: bf00 nop
  3787. 8001ec0: 46bd mov sp, r7
  3788. 8001ec2: bc80 pop {r7}
  3789. 8001ec4: 4770 bx lr
  3790. 08001ec6 <SysTick_Handler>:
  3791. /**
  3792. * @brief This function handles System tick timer.
  3793. */
  3794. void SysTick_Handler(void)
  3795. {
  3796. 8001ec6: b580 push {r7, lr}
  3797. 8001ec8: af00 add r7, sp, #0
  3798. /* USER CODE BEGIN SysTick_IRQn 0 */
  3799. /* USER CODE END SysTick_IRQn 0 */
  3800. HAL_IncTick();
  3801. 8001eca: f000 f975 bl 80021b8 <HAL_IncTick>
  3802. /* USER CODE BEGIN SysTick_IRQn 1 */
  3803. /* USER CODE END SysTick_IRQn 1 */
  3804. }
  3805. 8001ece: bf00 nop
  3806. 8001ed0: bd80 pop {r7, pc}
  3807. ...
  3808. 08001ed4 <DMA1_Channel1_IRQHandler>:
  3809. /**
  3810. * @brief This function handles DMA1 channel1 global interrupt.
  3811. */
  3812. void DMA1_Channel1_IRQHandler(void)
  3813. {
  3814. 8001ed4: b580 push {r7, lr}
  3815. 8001ed6: af00 add r7, sp, #0
  3816. /* USER CODE BEGIN DMA1_Channel1_IRQn 0 */
  3817. /* USER CODE END DMA1_Channel1_IRQn 0 */
  3818. HAL_DMA_IRQHandler(&hdma_adc);
  3819. 8001ed8: 4802 ldr r0, [pc, #8] ; (8001ee4 <DMA1_Channel1_IRQHandler+0x10>)
  3820. 8001eda: f001 faca bl 8003472 <HAL_DMA_IRQHandler>
  3821. /* USER CODE BEGIN DMA1_Channel1_IRQn 1 */
  3822. /* USER CODE END DMA1_Channel1_IRQn 1 */
  3823. }
  3824. 8001ede: bf00 nop
  3825. 8001ee0: bd80 pop {r7, pc}
  3826. 8001ee2: bf00 nop
  3827. 8001ee4: 200005ec .word 0x200005ec
  3828. 08001ee8 <COMP_IRQHandler>:
  3829. /**
  3830. * @brief This function handles COMP1 and COMP2 wake-up interrupts through EXTI lines 21 and 22.
  3831. */
  3832. void COMP_IRQHandler(void)
  3833. {
  3834. 8001ee8: b580 push {r7, lr}
  3835. 8001eea: af00 add r7, sp, #0
  3836. /* USER CODE BEGIN COMP_IRQn 0 */
  3837. /* USER CODE END COMP_IRQn 0 */
  3838. HAL_COMP_IRQHandler(&hcomp2);
  3839. 8001eec: 4802 ldr r0, [pc, #8] ; (8001ef8 <COMP_IRQHandler+0x10>)
  3840. 8001eee: f000 ffb5 bl 8002e5c <HAL_COMP_IRQHandler>
  3841. /* USER CODE BEGIN COMP_IRQn 1 */
  3842. /* USER CODE END COMP_IRQn 1 */
  3843. }
  3844. 8001ef2: bf00 nop
  3845. 8001ef4: bd80 pop {r7, pc}
  3846. 8001ef6: bf00 nop
  3847. 8001ef8: 20000584 .word 0x20000584
  3848. 08001efc <TIM4_IRQHandler>:
  3849. /**
  3850. * @brief This function handles TIM4 global interrupt.
  3851. */
  3852. void TIM4_IRQHandler(void)
  3853. {
  3854. 8001efc: b580 push {r7, lr}
  3855. 8001efe: af00 add r7, sp, #0
  3856. /* USER CODE BEGIN TIM4_IRQn 0 */
  3857. /* USER CODE END TIM4_IRQn 0 */
  3858. HAL_TIM_IRQHandler(&htim4);
  3859. 8001f00: 4802 ldr r0, [pc, #8] ; (8001f0c <TIM4_IRQHandler+0x10>)
  3860. 8001f02: f003 f98c bl 800521e <HAL_TIM_IRQHandler>
  3861. /* USER CODE BEGIN TIM4_IRQn 1 */
  3862. /* USER CODE END TIM4_IRQn 1 */
  3863. }
  3864. 8001f06: bf00 nop
  3865. 8001f08: bd80 pop {r7, pc}
  3866. 8001f0a: bf00 nop
  3867. 8001f0c: 20000418 .word 0x20000418
  3868. 08001f10 <EXTI15_10_IRQHandler>:
  3869. /**
  3870. * @brief This function handles EXTI line[15:10] interrupts.
  3871. */
  3872. void EXTI15_10_IRQHandler(void)
  3873. {
  3874. 8001f10: b580 push {r7, lr}
  3875. 8001f12: af00 add r7, sp, #0
  3876. /* USER CODE BEGIN EXTI15_10_IRQn 0 */
  3877. /* USER CODE END EXTI15_10_IRQn 0 */
  3878. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_14);
  3879. 8001f14: f44f 4080 mov.w r0, #16384 ; 0x4000
  3880. 8001f18: f001 fd22 bl 8003960 <HAL_GPIO_EXTI_IRQHandler>
  3881. HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_15);
  3882. 8001f1c: f44f 4000 mov.w r0, #32768 ; 0x8000
  3883. 8001f20: f001 fd1e bl 8003960 <HAL_GPIO_EXTI_IRQHandler>
  3884. /* USER CODE BEGIN EXTI15_10_IRQn 1 */
  3885. /* USER CODE END EXTI15_10_IRQn 1 */
  3886. }
  3887. 8001f24: bf00 nop
  3888. 8001f26: bd80 pop {r7, pc}
  3889. 08001f28 <TIM6_IRQHandler>:
  3890. /**
  3891. * @brief This function handles TIM6 global interrupt.
  3892. */
  3893. void TIM6_IRQHandler(void)
  3894. {
  3895. 8001f28: b580 push {r7, lr}
  3896. 8001f2a: af00 add r7, sp, #0
  3897. /* USER CODE BEGIN TIM6_IRQn 0 */
  3898. /* USER CODE END TIM6_IRQn 0 */
  3899. HAL_TIM_IRQHandler(&htim6);
  3900. 8001f2c: 4802 ldr r0, [pc, #8] ; (8001f38 <TIM6_IRQHandler+0x10>)
  3901. 8001f2e: f003 f976 bl 800521e <HAL_TIM_IRQHandler>
  3902. /* USER CODE BEGIN TIM6_IRQn 1 */
  3903. /* USER CODE END TIM6_IRQn 1 */
  3904. }
  3905. 8001f32: bf00 nop
  3906. 8001f34: bd80 pop {r7, pc}
  3907. 8001f36: bf00 nop
  3908. 8001f38: 20000544 .word 0x20000544
  3909. 08001f3c <_getpid>:
  3910. void initialise_monitor_handles()
  3911. {
  3912. }
  3913. int _getpid(void)
  3914. {
  3915. 8001f3c: b480 push {r7}
  3916. 8001f3e: af00 add r7, sp, #0
  3917. return 1;
  3918. 8001f40: 2301 movs r3, #1
  3919. }
  3920. 8001f42: 4618 mov r0, r3
  3921. 8001f44: 46bd mov sp, r7
  3922. 8001f46: bc80 pop {r7}
  3923. 8001f48: 4770 bx lr
  3924. 08001f4a <_kill>:
  3925. int _kill(int pid, int sig)
  3926. {
  3927. 8001f4a: b580 push {r7, lr}
  3928. 8001f4c: b082 sub sp, #8
  3929. 8001f4e: af00 add r7, sp, #0
  3930. 8001f50: 6078 str r0, [r7, #4]
  3931. 8001f52: 6039 str r1, [r7, #0]
  3932. errno = EINVAL;
  3933. 8001f54: f004 fb3e bl 80065d4 <__errno>
  3934. 8001f58: 4603 mov r3, r0
  3935. 8001f5a: 2216 movs r2, #22
  3936. 8001f5c: 601a str r2, [r3, #0]
  3937. return -1;
  3938. 8001f5e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  3939. }
  3940. 8001f62: 4618 mov r0, r3
  3941. 8001f64: 3708 adds r7, #8
  3942. 8001f66: 46bd mov sp, r7
  3943. 8001f68: bd80 pop {r7, pc}
  3944. 08001f6a <_exit>:
  3945. void _exit (int status)
  3946. {
  3947. 8001f6a: b580 push {r7, lr}
  3948. 8001f6c: b082 sub sp, #8
  3949. 8001f6e: af00 add r7, sp, #0
  3950. 8001f70: 6078 str r0, [r7, #4]
  3951. _kill(status, -1);
  3952. 8001f72: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
  3953. 8001f76: 6878 ldr r0, [r7, #4]
  3954. 8001f78: f7ff ffe7 bl 8001f4a <_kill>
  3955. while (1) {} /* Make sure we hang here */
  3956. 8001f7c: e7fe b.n 8001f7c <_exit+0x12>
  3957. 08001f7e <_read>:
  3958. }
  3959. __attribute__((weak)) int _read(int file, char *ptr, int len)
  3960. {
  3961. 8001f7e: b580 push {r7, lr}
  3962. 8001f80: b086 sub sp, #24
  3963. 8001f82: af00 add r7, sp, #0
  3964. 8001f84: 60f8 str r0, [r7, #12]
  3965. 8001f86: 60b9 str r1, [r7, #8]
  3966. 8001f88: 607a str r2, [r7, #4]
  3967. int DataIdx;
  3968. for (DataIdx = 0; DataIdx < len; DataIdx++)
  3969. 8001f8a: 2300 movs r3, #0
  3970. 8001f8c: 617b str r3, [r7, #20]
  3971. 8001f8e: e00a b.n 8001fa6 <_read+0x28>
  3972. {
  3973. *ptr++ = __io_getchar();
  3974. 8001f90: f3af 8000 nop.w
  3975. 8001f94: 4601 mov r1, r0
  3976. 8001f96: 68bb ldr r3, [r7, #8]
  3977. 8001f98: 1c5a adds r2, r3, #1
  3978. 8001f9a: 60ba str r2, [r7, #8]
  3979. 8001f9c: b2ca uxtb r2, r1
  3980. 8001f9e: 701a strb r2, [r3, #0]
  3981. for (DataIdx = 0; DataIdx < len; DataIdx++)
  3982. 8001fa0: 697b ldr r3, [r7, #20]
  3983. 8001fa2: 3301 adds r3, #1
  3984. 8001fa4: 617b str r3, [r7, #20]
  3985. 8001fa6: 697a ldr r2, [r7, #20]
  3986. 8001fa8: 687b ldr r3, [r7, #4]
  3987. 8001faa: 429a cmp r2, r3
  3988. 8001fac: dbf0 blt.n 8001f90 <_read+0x12>
  3989. }
  3990. return len;
  3991. 8001fae: 687b ldr r3, [r7, #4]
  3992. }
  3993. 8001fb0: 4618 mov r0, r3
  3994. 8001fb2: 3718 adds r7, #24
  3995. 8001fb4: 46bd mov sp, r7
  3996. 8001fb6: bd80 pop {r7, pc}
  3997. 08001fb8 <_write>:
  3998. __attribute__((weak)) int _write(int file, char *ptr, int len)
  3999. {
  4000. 8001fb8: b580 push {r7, lr}
  4001. 8001fba: b086 sub sp, #24
  4002. 8001fbc: af00 add r7, sp, #0
  4003. 8001fbe: 60f8 str r0, [r7, #12]
  4004. 8001fc0: 60b9 str r1, [r7, #8]
  4005. 8001fc2: 607a str r2, [r7, #4]
  4006. int DataIdx;
  4007. for (DataIdx = 0; DataIdx < len; DataIdx++)
  4008. 8001fc4: 2300 movs r3, #0
  4009. 8001fc6: 617b str r3, [r7, #20]
  4010. 8001fc8: e009 b.n 8001fde <_write+0x26>
  4011. {
  4012. __io_putchar(*ptr++);
  4013. 8001fca: 68bb ldr r3, [r7, #8]
  4014. 8001fcc: 1c5a adds r2, r3, #1
  4015. 8001fce: 60ba str r2, [r7, #8]
  4016. 8001fd0: 781b ldrb r3, [r3, #0]
  4017. 8001fd2: 4618 mov r0, r3
  4018. 8001fd4: f3af 8000 nop.w
  4019. for (DataIdx = 0; DataIdx < len; DataIdx++)
  4020. 8001fd8: 697b ldr r3, [r7, #20]
  4021. 8001fda: 3301 adds r3, #1
  4022. 8001fdc: 617b str r3, [r7, #20]
  4023. 8001fde: 697a ldr r2, [r7, #20]
  4024. 8001fe0: 687b ldr r3, [r7, #4]
  4025. 8001fe2: 429a cmp r2, r3
  4026. 8001fe4: dbf1 blt.n 8001fca <_write+0x12>
  4027. }
  4028. return len;
  4029. 8001fe6: 687b ldr r3, [r7, #4]
  4030. }
  4031. 8001fe8: 4618 mov r0, r3
  4032. 8001fea: 3718 adds r7, #24
  4033. 8001fec: 46bd mov sp, r7
  4034. 8001fee: bd80 pop {r7, pc}
  4035. 08001ff0 <_close>:
  4036. int _close(int file)
  4037. {
  4038. 8001ff0: b480 push {r7}
  4039. 8001ff2: b083 sub sp, #12
  4040. 8001ff4: af00 add r7, sp, #0
  4041. 8001ff6: 6078 str r0, [r7, #4]
  4042. return -1;
  4043. 8001ff8: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  4044. }
  4045. 8001ffc: 4618 mov r0, r3
  4046. 8001ffe: 370c adds r7, #12
  4047. 8002000: 46bd mov sp, r7
  4048. 8002002: bc80 pop {r7}
  4049. 8002004: 4770 bx lr
  4050. 08002006 <_fstat>:
  4051. int _fstat(int file, struct stat *st)
  4052. {
  4053. 8002006: b480 push {r7}
  4054. 8002008: b083 sub sp, #12
  4055. 800200a: af00 add r7, sp, #0
  4056. 800200c: 6078 str r0, [r7, #4]
  4057. 800200e: 6039 str r1, [r7, #0]
  4058. st->st_mode = S_IFCHR;
  4059. 8002010: 683b ldr r3, [r7, #0]
  4060. 8002012: f44f 5200 mov.w r2, #8192 ; 0x2000
  4061. 8002016: 605a str r2, [r3, #4]
  4062. return 0;
  4063. 8002018: 2300 movs r3, #0
  4064. }
  4065. 800201a: 4618 mov r0, r3
  4066. 800201c: 370c adds r7, #12
  4067. 800201e: 46bd mov sp, r7
  4068. 8002020: bc80 pop {r7}
  4069. 8002022: 4770 bx lr
  4070. 08002024 <_isatty>:
  4071. int _isatty(int file)
  4072. {
  4073. 8002024: b480 push {r7}
  4074. 8002026: b083 sub sp, #12
  4075. 8002028: af00 add r7, sp, #0
  4076. 800202a: 6078 str r0, [r7, #4]
  4077. return 1;
  4078. 800202c: 2301 movs r3, #1
  4079. }
  4080. 800202e: 4618 mov r0, r3
  4081. 8002030: 370c adds r7, #12
  4082. 8002032: 46bd mov sp, r7
  4083. 8002034: bc80 pop {r7}
  4084. 8002036: 4770 bx lr
  4085. 08002038 <_lseek>:
  4086. int _lseek(int file, int ptr, int dir)
  4087. {
  4088. 8002038: b480 push {r7}
  4089. 800203a: b085 sub sp, #20
  4090. 800203c: af00 add r7, sp, #0
  4091. 800203e: 60f8 str r0, [r7, #12]
  4092. 8002040: 60b9 str r1, [r7, #8]
  4093. 8002042: 607a str r2, [r7, #4]
  4094. return 0;
  4095. 8002044: 2300 movs r3, #0
  4096. }
  4097. 8002046: 4618 mov r0, r3
  4098. 8002048: 3714 adds r7, #20
  4099. 800204a: 46bd mov sp, r7
  4100. 800204c: bc80 pop {r7}
  4101. 800204e: 4770 bx lr
  4102. 08002050 <_sbrk>:
  4103. *
  4104. * @param incr Memory size
  4105. * @return Pointer to allocated memory
  4106. */
  4107. void *_sbrk(ptrdiff_t incr)
  4108. {
  4109. 8002050: b580 push {r7, lr}
  4110. 8002052: b086 sub sp, #24
  4111. 8002054: af00 add r7, sp, #0
  4112. 8002056: 6078 str r0, [r7, #4]
  4113. extern uint8_t _end; /* Symbol defined in the linker script */
  4114. extern uint8_t _estack; /* Symbol defined in the linker script */
  4115. extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
  4116. const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
  4117. 8002058: 4a14 ldr r2, [pc, #80] ; (80020ac <_sbrk+0x5c>)
  4118. 800205a: 4b15 ldr r3, [pc, #84] ; (80020b0 <_sbrk+0x60>)
  4119. 800205c: 1ad3 subs r3, r2, r3
  4120. 800205e: 617b str r3, [r7, #20]
  4121. const uint8_t *max_heap = (uint8_t *)stack_limit;
  4122. 8002060: 697b ldr r3, [r7, #20]
  4123. 8002062: 613b str r3, [r7, #16]
  4124. uint8_t *prev_heap_end;
  4125. /* Initialize heap end at first call */
  4126. if (NULL == __sbrk_heap_end)
  4127. 8002064: 4b13 ldr r3, [pc, #76] ; (80020b4 <_sbrk+0x64>)
  4128. 8002066: 681b ldr r3, [r3, #0]
  4129. 8002068: 2b00 cmp r3, #0
  4130. 800206a: d102 bne.n 8002072 <_sbrk+0x22>
  4131. {
  4132. __sbrk_heap_end = &_end;
  4133. 800206c: 4b11 ldr r3, [pc, #68] ; (80020b4 <_sbrk+0x64>)
  4134. 800206e: 4a12 ldr r2, [pc, #72] ; (80020b8 <_sbrk+0x68>)
  4135. 8002070: 601a str r2, [r3, #0]
  4136. }
  4137. /* Protect heap from growing into the reserved MSP stack */
  4138. if (__sbrk_heap_end + incr > max_heap)
  4139. 8002072: 4b10 ldr r3, [pc, #64] ; (80020b4 <_sbrk+0x64>)
  4140. 8002074: 681a ldr r2, [r3, #0]
  4141. 8002076: 687b ldr r3, [r7, #4]
  4142. 8002078: 4413 add r3, r2
  4143. 800207a: 693a ldr r2, [r7, #16]
  4144. 800207c: 429a cmp r2, r3
  4145. 800207e: d207 bcs.n 8002090 <_sbrk+0x40>
  4146. {
  4147. errno = ENOMEM;
  4148. 8002080: f004 faa8 bl 80065d4 <__errno>
  4149. 8002084: 4603 mov r3, r0
  4150. 8002086: 220c movs r2, #12
  4151. 8002088: 601a str r2, [r3, #0]
  4152. return (void *)-1;
  4153. 800208a: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  4154. 800208e: e009 b.n 80020a4 <_sbrk+0x54>
  4155. }
  4156. prev_heap_end = __sbrk_heap_end;
  4157. 8002090: 4b08 ldr r3, [pc, #32] ; (80020b4 <_sbrk+0x64>)
  4158. 8002092: 681b ldr r3, [r3, #0]
  4159. 8002094: 60fb str r3, [r7, #12]
  4160. __sbrk_heap_end += incr;
  4161. 8002096: 4b07 ldr r3, [pc, #28] ; (80020b4 <_sbrk+0x64>)
  4162. 8002098: 681a ldr r2, [r3, #0]
  4163. 800209a: 687b ldr r3, [r7, #4]
  4164. 800209c: 4413 add r3, r2
  4165. 800209e: 4a05 ldr r2, [pc, #20] ; (80020b4 <_sbrk+0x64>)
  4166. 80020a0: 6013 str r3, [r2, #0]
  4167. return (void *)prev_heap_end;
  4168. 80020a2: 68fb ldr r3, [r7, #12]
  4169. }
  4170. 80020a4: 4618 mov r0, r3
  4171. 80020a6: 3718 adds r7, #24
  4172. 80020a8: 46bd mov sp, r7
  4173. 80020aa: bd80 pop {r7, pc}
  4174. 80020ac: 20008000 .word 0x20008000
  4175. 80020b0: 00000400 .word 0x00000400
  4176. 80020b4: 20000204 .word 0x20000204
  4177. 80020b8: 200006b0 .word 0x200006b0
  4178. 080020bc <SystemInit>:
  4179. * SystemCoreClock variable.
  4180. * @param None
  4181. * @retval None
  4182. */
  4183. void SystemInit (void)
  4184. {
  4185. 80020bc: b480 push {r7}
  4186. 80020be: af00 add r7, sp, #0
  4187. /* Configure the Vector Table location -------------------------------------*/
  4188. #if defined(USER_VECT_TAB_ADDRESS)
  4189. SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
  4190. #endif /* USER_VECT_TAB_ADDRESS */
  4191. }
  4192. 80020c0: bf00 nop
  4193. 80020c2: 46bd mov sp, r7
  4194. 80020c4: bc80 pop {r7}
  4195. 80020c6: 4770 bx lr
  4196. 080020c8 <Reset_Handler>:
  4197. .weak Reset_Handler
  4198. .type Reset_Handler, %function
  4199. Reset_Handler:
  4200. /* Copy the data segment initializers from flash to SRAM */
  4201. ldr r0, =_sdata
  4202. 80020c8: 480c ldr r0, [pc, #48] ; (80020fc <LoopFillZerobss+0x12>)
  4203. ldr r1, =_edata
  4204. 80020ca: 490d ldr r1, [pc, #52] ; (8002100 <LoopFillZerobss+0x16>)
  4205. ldr r2, =_sidata
  4206. 80020cc: 4a0d ldr r2, [pc, #52] ; (8002104 <LoopFillZerobss+0x1a>)
  4207. movs r3, #0
  4208. 80020ce: 2300 movs r3, #0
  4209. b LoopCopyDataInit
  4210. 80020d0: e002 b.n 80020d8 <LoopCopyDataInit>
  4211. 080020d2 <CopyDataInit>:
  4212. CopyDataInit:
  4213. ldr r4, [r2, r3]
  4214. 80020d2: 58d4 ldr r4, [r2, r3]
  4215. str r4, [r0, r3]
  4216. 80020d4: 50c4 str r4, [r0, r3]
  4217. adds r3, r3, #4
  4218. 80020d6: 3304 adds r3, #4
  4219. 080020d8 <LoopCopyDataInit>:
  4220. LoopCopyDataInit:
  4221. adds r4, r0, r3
  4222. 80020d8: 18c4 adds r4, r0, r3
  4223. cmp r4, r1
  4224. 80020da: 428c cmp r4, r1
  4225. bcc CopyDataInit
  4226. 80020dc: d3f9 bcc.n 80020d2 <CopyDataInit>
  4227. /* Zero fill the bss segment. */
  4228. ldr r2, =_sbss
  4229. 80020de: 4a0a ldr r2, [pc, #40] ; (8002108 <LoopFillZerobss+0x1e>)
  4230. ldr r4, =_ebss
  4231. 80020e0: 4c0a ldr r4, [pc, #40] ; (800210c <LoopFillZerobss+0x22>)
  4232. movs r3, #0
  4233. 80020e2: 2300 movs r3, #0
  4234. b LoopFillZerobss
  4235. 80020e4: e001 b.n 80020ea <LoopFillZerobss>
  4236. 080020e6 <FillZerobss>:
  4237. FillZerobss:
  4238. str r3, [r2]
  4239. 80020e6: 6013 str r3, [r2, #0]
  4240. adds r2, r2, #4
  4241. 80020e8: 3204 adds r2, #4
  4242. 080020ea <LoopFillZerobss>:
  4243. LoopFillZerobss:
  4244. cmp r2, r4
  4245. 80020ea: 42a2 cmp r2, r4
  4246. bcc FillZerobss
  4247. 80020ec: d3fb bcc.n 80020e6 <FillZerobss>
  4248. /* Call the clock system intitialization function.*/
  4249. bl SystemInit
  4250. 80020ee: f7ff ffe5 bl 80020bc <SystemInit>
  4251. /* Call static constructors */
  4252. bl __libc_init_array
  4253. 80020f2: f004 fa75 bl 80065e0 <__libc_init_array>
  4254. /* Call the application's entry point.*/
  4255. bl main
  4256. 80020f6: f7fe ffdf bl 80010b8 <main>
  4257. bx lr
  4258. 80020fa: 4770 bx lr
  4259. ldr r0, =_sdata
  4260. 80020fc: 20000000 .word 0x20000000
  4261. ldr r1, =_edata
  4262. 8002100: 200001e4 .word 0x200001e4
  4263. ldr r2, =_sidata
  4264. 8002104: 0800a504 .word 0x0800a504
  4265. ldr r2, =_sbss
  4266. 8002108: 200001e4 .word 0x200001e4
  4267. ldr r4, =_ebss
  4268. 800210c: 200006b0 .word 0x200006b0
  4269. 08002110 <ADC1_IRQHandler>:
  4270. * @retval : None
  4271. */
  4272. .section .text.Default_Handler,"ax",%progbits
  4273. Default_Handler:
  4274. Infinite_Loop:
  4275. b Infinite_Loop
  4276. 8002110: e7fe b.n 8002110 <ADC1_IRQHandler>
  4277. 08002112 <HAL_Init>:
  4278. * In the default implementation,Systick is used as source of time base.
  4279. * the tick variable is incremented each 1ms in its ISR.
  4280. * @retval HAL status
  4281. */
  4282. HAL_StatusTypeDef HAL_Init(void)
  4283. {
  4284. 8002112: b580 push {r7, lr}
  4285. 8002114: b082 sub sp, #8
  4286. 8002116: af00 add r7, sp, #0
  4287. HAL_StatusTypeDef status = HAL_OK;
  4288. 8002118: 2300 movs r3, #0
  4289. 800211a: 71fb strb r3, [r7, #7]
  4290. #if (PREFETCH_ENABLE != 0)
  4291. __HAL_FLASH_PREFETCH_BUFFER_ENABLE();
  4292. #endif /* PREFETCH_ENABLE */
  4293. /* Set Interrupt Group Priority */
  4294. HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
  4295. 800211c: 2003 movs r0, #3
  4296. 800211e: f000 ff8d bl 800303c <HAL_NVIC_SetPriorityGrouping>
  4297. /* Use systick as time base source and configure 1ms tick (default clock after Reset is MSI) */
  4298. if (HAL_InitTick(TICK_INT_PRIORITY) != HAL_OK)
  4299. 8002122: 200f movs r0, #15
  4300. 8002124: f000 f80e bl 8002144 <HAL_InitTick>
  4301. 8002128: 4603 mov r3, r0
  4302. 800212a: 2b00 cmp r3, #0
  4303. 800212c: d002 beq.n 8002134 <HAL_Init+0x22>
  4304. {
  4305. status = HAL_ERROR;
  4306. 800212e: 2301 movs r3, #1
  4307. 8002130: 71fb strb r3, [r7, #7]
  4308. 8002132: e001 b.n 8002138 <HAL_Init+0x26>
  4309. }
  4310. else
  4311. {
  4312. /* Init the low level hardware */
  4313. HAL_MspInit();
  4314. 8002134: f7ff fc68 bl 8001a08 <HAL_MspInit>
  4315. }
  4316. /* Return function status */
  4317. return status;
  4318. 8002138: 79fb ldrb r3, [r7, #7]
  4319. }
  4320. 800213a: 4618 mov r0, r3
  4321. 800213c: 3708 adds r7, #8
  4322. 800213e: 46bd mov sp, r7
  4323. 8002140: bd80 pop {r7, pc}
  4324. ...
  4325. 08002144 <HAL_InitTick>:
  4326. * implementation in user file.
  4327. * @param TickPriority Tick interrupt priority.
  4328. * @retval HAL status
  4329. */
  4330. __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
  4331. {
  4332. 8002144: b580 push {r7, lr}
  4333. 8002146: b084 sub sp, #16
  4334. 8002148: af00 add r7, sp, #0
  4335. 800214a: 6078 str r0, [r7, #4]
  4336. HAL_StatusTypeDef status = HAL_OK;
  4337. 800214c: 2300 movs r3, #0
  4338. 800214e: 73fb strb r3, [r7, #15]
  4339. if (uwTickFreq != 0U)
  4340. 8002150: 4b16 ldr r3, [pc, #88] ; (80021ac <HAL_InitTick+0x68>)
  4341. 8002152: 681b ldr r3, [r3, #0]
  4342. 8002154: 2b00 cmp r3, #0
  4343. 8002156: d022 beq.n 800219e <HAL_InitTick+0x5a>
  4344. {
  4345. /*Configure the SysTick to have interrupt in 1ms time basis*/
  4346. if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) == 0U)
  4347. 8002158: 4b15 ldr r3, [pc, #84] ; (80021b0 <HAL_InitTick+0x6c>)
  4348. 800215a: 681a ldr r2, [r3, #0]
  4349. 800215c: 4b13 ldr r3, [pc, #76] ; (80021ac <HAL_InitTick+0x68>)
  4350. 800215e: 681b ldr r3, [r3, #0]
  4351. 8002160: f44f 717a mov.w r1, #1000 ; 0x3e8
  4352. 8002164: fbb1 f3f3 udiv r3, r1, r3
  4353. 8002168: fbb2 f3f3 udiv r3, r2, r3
  4354. 800216c: 4618 mov r0, r3
  4355. 800216e: f000 ff9a bl 80030a6 <HAL_SYSTICK_Config>
  4356. 8002172: 4603 mov r3, r0
  4357. 8002174: 2b00 cmp r3, #0
  4358. 8002176: d10f bne.n 8002198 <HAL_InitTick+0x54>
  4359. {
  4360. /* Configure the SysTick IRQ priority */
  4361. if (TickPriority < (1UL << __NVIC_PRIO_BITS))
  4362. 8002178: 687b ldr r3, [r7, #4]
  4363. 800217a: 2b0f cmp r3, #15
  4364. 800217c: d809 bhi.n 8002192 <HAL_InitTick+0x4e>
  4365. {
  4366. HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U);
  4367. 800217e: 2200 movs r2, #0
  4368. 8002180: 6879 ldr r1, [r7, #4]
  4369. 8002182: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  4370. 8002186: f000 ff64 bl 8003052 <HAL_NVIC_SetPriority>
  4371. uwTickPrio = TickPriority;
  4372. 800218a: 4a0a ldr r2, [pc, #40] ; (80021b4 <HAL_InitTick+0x70>)
  4373. 800218c: 687b ldr r3, [r7, #4]
  4374. 800218e: 6013 str r3, [r2, #0]
  4375. 8002190: e007 b.n 80021a2 <HAL_InitTick+0x5e>
  4376. }
  4377. else
  4378. {
  4379. status = HAL_ERROR;
  4380. 8002192: 2301 movs r3, #1
  4381. 8002194: 73fb strb r3, [r7, #15]
  4382. 8002196: e004 b.n 80021a2 <HAL_InitTick+0x5e>
  4383. }
  4384. }
  4385. else
  4386. {
  4387. status = HAL_ERROR;
  4388. 8002198: 2301 movs r3, #1
  4389. 800219a: 73fb strb r3, [r7, #15]
  4390. 800219c: e001 b.n 80021a2 <HAL_InitTick+0x5e>
  4391. }
  4392. }
  4393. else
  4394. {
  4395. status = HAL_ERROR;
  4396. 800219e: 2301 movs r3, #1
  4397. 80021a0: 73fb strb r3, [r7, #15]
  4398. }
  4399. /* Return function status */
  4400. return status;
  4401. 80021a2: 7bfb ldrb r3, [r7, #15]
  4402. }
  4403. 80021a4: 4618 mov r0, r3
  4404. 80021a6: 3710 adds r7, #16
  4405. 80021a8: 46bd mov sp, r7
  4406. 80021aa: bd80 pop {r7, pc}
  4407. 80021ac: 20000008 .word 0x20000008
  4408. 80021b0: 20000000 .word 0x20000000
  4409. 80021b4: 20000004 .word 0x20000004
  4410. 080021b8 <HAL_IncTick>:
  4411. * @note This function is declared as __weak to be overwritten in case of other
  4412. * implementations in user file.
  4413. * @retval None
  4414. */
  4415. __weak void HAL_IncTick(void)
  4416. {
  4417. 80021b8: b480 push {r7}
  4418. 80021ba: af00 add r7, sp, #0
  4419. uwTick += uwTickFreq;
  4420. 80021bc: 4b05 ldr r3, [pc, #20] ; (80021d4 <HAL_IncTick+0x1c>)
  4421. 80021be: 681a ldr r2, [r3, #0]
  4422. 80021c0: 4b05 ldr r3, [pc, #20] ; (80021d8 <HAL_IncTick+0x20>)
  4423. 80021c2: 681b ldr r3, [r3, #0]
  4424. 80021c4: 4413 add r3, r2
  4425. 80021c6: 4a03 ldr r2, [pc, #12] ; (80021d4 <HAL_IncTick+0x1c>)
  4426. 80021c8: 6013 str r3, [r2, #0]
  4427. }
  4428. 80021ca: bf00 nop
  4429. 80021cc: 46bd mov sp, r7
  4430. 80021ce: bc80 pop {r7}
  4431. 80021d0: 4770 bx lr
  4432. 80021d2: bf00 nop
  4433. 80021d4: 2000069c .word 0x2000069c
  4434. 80021d8: 20000008 .word 0x20000008
  4435. 080021dc <HAL_GetTick>:
  4436. * @note This function is declared as __weak to be overwritten in case of other
  4437. * implementations in user file.
  4438. * @retval tick value
  4439. */
  4440. __weak uint32_t HAL_GetTick(void)
  4441. {
  4442. 80021dc: b480 push {r7}
  4443. 80021de: af00 add r7, sp, #0
  4444. return uwTick;
  4445. 80021e0: 4b02 ldr r3, [pc, #8] ; (80021ec <HAL_GetTick+0x10>)
  4446. 80021e2: 681b ldr r3, [r3, #0]
  4447. }
  4448. 80021e4: 4618 mov r0, r3
  4449. 80021e6: 46bd mov sp, r7
  4450. 80021e8: bc80 pop {r7}
  4451. 80021ea: 4770 bx lr
  4452. 80021ec: 2000069c .word 0x2000069c
  4453. 080021f0 <HAL_Delay>:
  4454. * implementations in user file.
  4455. * @param Delay specifies the delay time length, in milliseconds.
  4456. * @retval None
  4457. */
  4458. __weak void HAL_Delay(uint32_t Delay)
  4459. {
  4460. 80021f0: b580 push {r7, lr}
  4461. 80021f2: b084 sub sp, #16
  4462. 80021f4: af00 add r7, sp, #0
  4463. 80021f6: 6078 str r0, [r7, #4]
  4464. uint32_t tickstart = HAL_GetTick();
  4465. 80021f8: f7ff fff0 bl 80021dc <HAL_GetTick>
  4466. 80021fc: 60b8 str r0, [r7, #8]
  4467. uint32_t wait = Delay;
  4468. 80021fe: 687b ldr r3, [r7, #4]
  4469. 8002200: 60fb str r3, [r7, #12]
  4470. /* Add a period to guaranty minimum wait */
  4471. if (wait < HAL_MAX_DELAY)
  4472. 8002202: 68fb ldr r3, [r7, #12]
  4473. 8002204: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  4474. 8002208: d004 beq.n 8002214 <HAL_Delay+0x24>
  4475. {
  4476. wait += (uint32_t)(uwTickFreq);
  4477. 800220a: 4b09 ldr r3, [pc, #36] ; (8002230 <HAL_Delay+0x40>)
  4478. 800220c: 681b ldr r3, [r3, #0]
  4479. 800220e: 68fa ldr r2, [r7, #12]
  4480. 8002210: 4413 add r3, r2
  4481. 8002212: 60fb str r3, [r7, #12]
  4482. }
  4483. while((HAL_GetTick() - tickstart) < wait)
  4484. 8002214: bf00 nop
  4485. 8002216: f7ff ffe1 bl 80021dc <HAL_GetTick>
  4486. 800221a: 4602 mov r2, r0
  4487. 800221c: 68bb ldr r3, [r7, #8]
  4488. 800221e: 1ad3 subs r3, r2, r3
  4489. 8002220: 68fa ldr r2, [r7, #12]
  4490. 8002222: 429a cmp r2, r3
  4491. 8002224: d8f7 bhi.n 8002216 <HAL_Delay+0x26>
  4492. {
  4493. }
  4494. }
  4495. 8002226: bf00 nop
  4496. 8002228: bf00 nop
  4497. 800222a: 3710 adds r7, #16
  4498. 800222c: 46bd mov sp, r7
  4499. 800222e: bd80 pop {r7, pc}
  4500. 8002230: 20000008 .word 0x20000008
  4501. 08002234 <HAL_ADC_Init>:
  4502. * of structure "ADC_InitTypeDef".
  4503. * @param hadc ADC handle
  4504. * @retval HAL status
  4505. */
  4506. HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc)
  4507. {
  4508. 8002234: b580 push {r7, lr}
  4509. 8002236: b08e sub sp, #56 ; 0x38
  4510. 8002238: af00 add r7, sp, #0
  4511. 800223a: 6078 str r0, [r7, #4]
  4512. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  4513. 800223c: 2300 movs r3, #0
  4514. 800223e: f887 3037 strb.w r3, [r7, #55] ; 0x37
  4515. uint32_t tmp_cr1 = 0;
  4516. 8002242: 2300 movs r3, #0
  4517. 8002244: 633b str r3, [r7, #48] ; 0x30
  4518. uint32_t tmp_cr2 = 0;
  4519. 8002246: 2300 movs r3, #0
  4520. 8002248: 62fb str r3, [r7, #44] ; 0x2c
  4521. /* Check ADC handle */
  4522. if(hadc == NULL)
  4523. 800224a: 687b ldr r3, [r7, #4]
  4524. 800224c: 2b00 cmp r3, #0
  4525. 800224e: d101 bne.n 8002254 <HAL_ADC_Init+0x20>
  4526. {
  4527. return HAL_ERROR;
  4528. 8002250: 2301 movs r3, #1
  4529. 8002252: e127 b.n 80024a4 <HAL_ADC_Init+0x270>
  4530. assert_param(IS_ADC_CHANNELSBANK(hadc->Init.ChannelsBank));
  4531. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode));
  4532. assert_param(IS_ADC_EXTTRIG(hadc->Init.ExternalTrigConv));
  4533. assert_param(IS_FUNCTIONAL_STATE(hadc->Init.DMAContinuousRequests));
  4534. if(hadc->Init.ScanConvMode != ADC_SCAN_DISABLE)
  4535. 8002254: 687b ldr r3, [r7, #4]
  4536. 8002256: 691b ldr r3, [r3, #16]
  4537. 8002258: 2b00 cmp r3, #0
  4538. /* Refer to header of this file for more details on clock enabling */
  4539. /* procedure. */
  4540. /* Actions performed only if ADC is coming from state reset: */
  4541. /* - Initialization of ADC MSP */
  4542. if (hadc->State == HAL_ADC_STATE_RESET)
  4543. 800225a: 687b ldr r3, [r7, #4]
  4544. 800225c: 6cdb ldr r3, [r3, #76] ; 0x4c
  4545. 800225e: 2b00 cmp r3, #0
  4546. 8002260: d115 bne.n 800228e <HAL_ADC_Init+0x5a>
  4547. {
  4548. /* Initialize ADC error code */
  4549. ADC_CLEAR_ERRORCODE(hadc);
  4550. 8002262: 687b ldr r3, [r7, #4]
  4551. 8002264: 2200 movs r2, #0
  4552. 8002266: 651a str r2, [r3, #80] ; 0x50
  4553. /* Allocate lock resource and initialize it */
  4554. hadc->Lock = HAL_UNLOCKED;
  4555. 8002268: 687b ldr r3, [r7, #4]
  4556. 800226a: 2200 movs r2, #0
  4557. 800226c: f883 2048 strb.w r2, [r3, #72] ; 0x48
  4558. /* Enable SYSCFG clock to control the routing Interface (RI) */
  4559. __HAL_RCC_SYSCFG_CLK_ENABLE();
  4560. 8002270: 4b8e ldr r3, [pc, #568] ; (80024ac <HAL_ADC_Init+0x278>)
  4561. 8002272: 6a1b ldr r3, [r3, #32]
  4562. 8002274: 4a8d ldr r2, [pc, #564] ; (80024ac <HAL_ADC_Init+0x278>)
  4563. 8002276: f043 0301 orr.w r3, r3, #1
  4564. 800227a: 6213 str r3, [r2, #32]
  4565. 800227c: 4b8b ldr r3, [pc, #556] ; (80024ac <HAL_ADC_Init+0x278>)
  4566. 800227e: 6a1b ldr r3, [r3, #32]
  4567. 8002280: f003 0301 and.w r3, r3, #1
  4568. 8002284: 60bb str r3, [r7, #8]
  4569. 8002286: 68bb ldr r3, [r7, #8]
  4570. /* Init the low level hardware */
  4571. hadc->MspInitCallback(hadc);
  4572. #else
  4573. /* Init the low level hardware */
  4574. HAL_ADC_MspInit(hadc);
  4575. 8002288: 6878 ldr r0, [r7, #4]
  4576. 800228a: f7ff fbeb bl 8001a64 <HAL_ADC_MspInit>
  4577. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  4578. }
  4579. /* Configuration of ADC parameters if previous preliminary actions are */
  4580. /* correctly completed. */
  4581. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL))
  4582. 800228e: 687b ldr r3, [r7, #4]
  4583. 8002290: 6cdb ldr r3, [r3, #76] ; 0x4c
  4584. 8002292: f003 0310 and.w r3, r3, #16
  4585. 8002296: 2b00 cmp r3, #0
  4586. 8002298: f040 80ff bne.w 800249a <HAL_ADC_Init+0x266>
  4587. {
  4588. /* Set ADC state */
  4589. ADC_STATE_CLR_SET(hadc->State,
  4590. 800229c: 687b ldr r3, [r7, #4]
  4591. 800229e: 6cdb ldr r3, [r3, #76] ; 0x4c
  4592. 80022a0: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  4593. 80022a4: f023 0302 bic.w r3, r3, #2
  4594. 80022a8: f043 0202 orr.w r2, r3, #2
  4595. 80022ac: 687b ldr r3, [r7, #4]
  4596. 80022ae: 64da str r2, [r3, #76] ; 0x4c
  4597. /* Set ADC parameters */
  4598. /* Configuration of common ADC clock: clock source HSI with selectable */
  4599. /* prescaler */
  4600. MODIFY_REG(ADC->CCR ,
  4601. 80022b0: 4b7f ldr r3, [pc, #508] ; (80024b0 <HAL_ADC_Init+0x27c>)
  4602. 80022b2: 685b ldr r3, [r3, #4]
  4603. 80022b4: f423 3240 bic.w r2, r3, #196608 ; 0x30000
  4604. 80022b8: 687b ldr r3, [r7, #4]
  4605. 80022ba: 685b ldr r3, [r3, #4]
  4606. 80022bc: 497c ldr r1, [pc, #496] ; (80024b0 <HAL_ADC_Init+0x27c>)
  4607. 80022be: 4313 orrs r3, r2
  4608. 80022c0: 604b str r3, [r1, #4]
  4609. /* - external trigger polarity */
  4610. /* - End of conversion selection */
  4611. /* - DMA continuous request */
  4612. /* - Channels bank (Banks availability depends on devices categories) */
  4613. /* - continuous conversion mode */
  4614. tmp_cr2 |= (hadc->Init.DataAlign |
  4615. 80022c2: 687b ldr r3, [r7, #4]
  4616. 80022c4: 68da ldr r2, [r3, #12]
  4617. hadc->Init.EOCSelection |
  4618. 80022c6: 687b ldr r3, [r7, #4]
  4619. 80022c8: 695b ldr r3, [r3, #20]
  4620. tmp_cr2 |= (hadc->Init.DataAlign |
  4621. 80022ca: 431a orrs r2, r3
  4622. ADC_CR2_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests) |
  4623. 80022cc: 687b ldr r3, [r7, #4]
  4624. 80022ce: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  4625. 80022d2: 4619 mov r1, r3
  4626. 80022d4: f44f 7300 mov.w r3, #512 ; 0x200
  4627. 80022d8: 623b str r3, [r7, #32]
  4628. uint32_t result;
  4629. #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  4630. (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  4631. (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  4632. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  4633. 80022da: 6a3b ldr r3, [r7, #32]
  4634. 80022dc: fa93 f3a3 rbit r3, r3
  4635. 80022e0: 61fb str r3, [r7, #28]
  4636. result |= value & 1U;
  4637. s--;
  4638. }
  4639. result <<= s; /* shift when v's highest bits are zero */
  4640. #endif
  4641. return result;
  4642. 80022e2: 69fb ldr r3, [r7, #28]
  4643. 80022e4: fab3 f383 clz r3, r3
  4644. 80022e8: b2db uxtb r3, r3
  4645. 80022ea: fa01 f303 lsl.w r3, r1, r3
  4646. hadc->Init.EOCSelection |
  4647. 80022ee: 431a orrs r2, r3
  4648. hadc->Init.ChannelsBank |
  4649. 80022f0: 687b ldr r3, [r7, #4]
  4650. 80022f2: 6a1b ldr r3, [r3, #32]
  4651. ADC_CR2_DMACONTREQ((uint32_t)hadc->Init.DMAContinuousRequests) |
  4652. 80022f4: 431a orrs r2, r3
  4653. ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode) );
  4654. 80022f6: 687b ldr r3, [r7, #4]
  4655. 80022f8: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  4656. 80022fc: 4619 mov r1, r3
  4657. 80022fe: 2302 movs r3, #2
  4658. 8002300: 62bb str r3, [r7, #40] ; 0x28
  4659. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  4660. 8002302: 6abb ldr r3, [r7, #40] ; 0x28
  4661. 8002304: fa93 f3a3 rbit r3, r3
  4662. 8002308: 627b str r3, [r7, #36] ; 0x24
  4663. return result;
  4664. 800230a: 6a7b ldr r3, [r7, #36] ; 0x24
  4665. 800230c: fab3 f383 clz r3, r3
  4666. 8002310: b2db uxtb r3, r3
  4667. 8002312: fa01 f303 lsl.w r3, r1, r3
  4668. hadc->Init.ChannelsBank |
  4669. 8002316: 4313 orrs r3, r2
  4670. tmp_cr2 |= (hadc->Init.DataAlign |
  4671. 8002318: 6afa ldr r2, [r7, #44] ; 0x2c
  4672. 800231a: 4313 orrs r3, r2
  4673. 800231c: 62fb str r3, [r7, #44] ; 0x2c
  4674. /* Enable external trigger if trigger selection is different of software */
  4675. /* start. */
  4676. /* Note: This configuration keeps the hardware feature of parameter */
  4677. /* ExternalTrigConvEdge "trigger edge none" equivalent to */
  4678. /* software start. */
  4679. if (hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START)
  4680. 800231e: 687b ldr r3, [r7, #4]
  4681. 8002320: 6b5b ldr r3, [r3, #52] ; 0x34
  4682. 8002322: 2b10 cmp r3, #16
  4683. 8002324: d007 beq.n 8002336 <HAL_ADC_Init+0x102>
  4684. {
  4685. tmp_cr2 |= ( hadc->Init.ExternalTrigConv |
  4686. 8002326: 687b ldr r3, [r7, #4]
  4687. 8002328: 6b5a ldr r2, [r3, #52] ; 0x34
  4688. hadc->Init.ExternalTrigConvEdge );
  4689. 800232a: 687b ldr r3, [r7, #4]
  4690. 800232c: 6b9b ldr r3, [r3, #56] ; 0x38
  4691. tmp_cr2 |= ( hadc->Init.ExternalTrigConv |
  4692. 800232e: 4313 orrs r3, r2
  4693. 8002330: 6afa ldr r2, [r7, #44] ; 0x2c
  4694. 8002332: 4313 orrs r3, r2
  4695. 8002334: 62fb str r3, [r7, #44] ; 0x2c
  4696. /* - resolution */
  4697. /* - auto power off (LowPowerAutoPowerOff mode) */
  4698. /* - scan mode */
  4699. /* - discontinuous mode disable/enable */
  4700. /* - discontinuous mode number of conversions */
  4701. if ((ADC_IS_ENABLE(hadc) == RESET))
  4702. 8002336: 687b ldr r3, [r7, #4]
  4703. 8002338: 681b ldr r3, [r3, #0]
  4704. 800233a: 681b ldr r3, [r3, #0]
  4705. 800233c: f003 0340 and.w r3, r3, #64 ; 0x40
  4706. 8002340: 2b40 cmp r3, #64 ; 0x40
  4707. 8002342: d04f beq.n 80023e4 <HAL_ADC_Init+0x1b0>
  4708. {
  4709. tmp_cr2 |= hadc->Init.LowPowerAutoWait;
  4710. 8002344: 687b ldr r3, [r7, #4]
  4711. 8002346: 699b ldr r3, [r3, #24]
  4712. 8002348: 6afa ldr r2, [r7, #44] ; 0x2c
  4713. 800234a: 4313 orrs r3, r2
  4714. 800234c: 62fb str r3, [r7, #44] ; 0x2c
  4715. tmp_cr1 |= (hadc->Init.Resolution |
  4716. 800234e: 687b ldr r3, [r7, #4]
  4717. 8002350: 689a ldr r2, [r3, #8]
  4718. hadc->Init.LowPowerAutoPowerOff |
  4719. 8002352: 687b ldr r3, [r7, #4]
  4720. 8002354: 69db ldr r3, [r3, #28]
  4721. tmp_cr1 |= (hadc->Init.Resolution |
  4722. 8002356: 4313 orrs r3, r2
  4723. ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) );
  4724. 8002358: 687a ldr r2, [r7, #4]
  4725. 800235a: 6912 ldr r2, [r2, #16]
  4726. 800235c: f5b2 7f80 cmp.w r2, #256 ; 0x100
  4727. 8002360: d003 beq.n 800236a <HAL_ADC_Init+0x136>
  4728. 8002362: 687a ldr r2, [r7, #4]
  4729. 8002364: 6912 ldr r2, [r2, #16]
  4730. 8002366: 2a01 cmp r2, #1
  4731. 8002368: d102 bne.n 8002370 <HAL_ADC_Init+0x13c>
  4732. 800236a: f44f 7280 mov.w r2, #256 ; 0x100
  4733. 800236e: e000 b.n 8002372 <HAL_ADC_Init+0x13e>
  4734. 8002370: 2200 movs r2, #0
  4735. hadc->Init.LowPowerAutoPowerOff |
  4736. 8002372: 4313 orrs r3, r2
  4737. tmp_cr1 |= (hadc->Init.Resolution |
  4738. 8002374: 6b3a ldr r2, [r7, #48] ; 0x30
  4739. 8002376: 4313 orrs r3, r2
  4740. 8002378: 633b str r3, [r7, #48] ; 0x30
  4741. /* Enable discontinuous mode only if continuous mode is disabled */
  4742. /* Note: If parameter "Init.ScanConvMode" is set to disable, parameter */
  4743. /* discontinuous is set anyway, but has no effect on ADC HW. */
  4744. if (hadc->Init.DiscontinuousConvMode == ENABLE)
  4745. 800237a: 687b ldr r3, [r7, #4]
  4746. 800237c: f893 302c ldrb.w r3, [r3, #44] ; 0x2c
  4747. 8002380: 2b01 cmp r3, #1
  4748. 8002382: d125 bne.n 80023d0 <HAL_ADC_Init+0x19c>
  4749. {
  4750. if (hadc->Init.ContinuousConvMode == DISABLE)
  4751. 8002384: 687b ldr r3, [r7, #4]
  4752. 8002386: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  4753. 800238a: 2b00 cmp r3, #0
  4754. 800238c: d114 bne.n 80023b8 <HAL_ADC_Init+0x184>
  4755. {
  4756. /* Enable the selected ADC regular discontinuous mode */
  4757. /* Set the number of channels to be converted in discontinuous mode */
  4758. SET_BIT(tmp_cr1, ADC_CR1_DISCEN |
  4759. 800238e: 687b ldr r3, [r7, #4]
  4760. 8002390: 6b1b ldr r3, [r3, #48] ; 0x30
  4761. 8002392: 3b01 subs r3, #1
  4762. 8002394: f44f 4260 mov.w r2, #57344 ; 0xe000
  4763. 8002398: 61ba str r2, [r7, #24]
  4764. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  4765. 800239a: 69ba ldr r2, [r7, #24]
  4766. 800239c: fa92 f2a2 rbit r2, r2
  4767. 80023a0: 617a str r2, [r7, #20]
  4768. return result;
  4769. 80023a2: 697a ldr r2, [r7, #20]
  4770. 80023a4: fab2 f282 clz r2, r2
  4771. 80023a8: b2d2 uxtb r2, r2
  4772. 80023aa: 4093 lsls r3, r2
  4773. 80023ac: f443 6300 orr.w r3, r3, #2048 ; 0x800
  4774. 80023b0: 6b3a ldr r2, [r7, #48] ; 0x30
  4775. 80023b2: 4313 orrs r3, r2
  4776. 80023b4: 633b str r3, [r7, #48] ; 0x30
  4777. 80023b6: e00b b.n 80023d0 <HAL_ADC_Init+0x19c>
  4778. {
  4779. /* ADC regular group settings continuous and sequencer discontinuous*/
  4780. /* cannot be enabled simultaneously. */
  4781. /* Update ADC state machine to error */
  4782. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_CONFIG);
  4783. 80023b8: 687b ldr r3, [r7, #4]
  4784. 80023ba: 6cdb ldr r3, [r3, #76] ; 0x4c
  4785. 80023bc: f043 0220 orr.w r2, r3, #32
  4786. 80023c0: 687b ldr r3, [r7, #4]
  4787. 80023c2: 64da str r2, [r3, #76] ; 0x4c
  4788. /* Set ADC error code to ADC IP internal error */
  4789. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  4790. 80023c4: 687b ldr r3, [r7, #4]
  4791. 80023c6: 6d1b ldr r3, [r3, #80] ; 0x50
  4792. 80023c8: f043 0201 orr.w r2, r3, #1
  4793. 80023cc: 687b ldr r3, [r7, #4]
  4794. 80023ce: 651a str r2, [r3, #80] ; 0x50
  4795. }
  4796. }
  4797. /* Update ADC configuration register CR1 with previous settings */
  4798. MODIFY_REG(hadc->Instance->CR1,
  4799. 80023d0: 687b ldr r3, [r7, #4]
  4800. 80023d2: 681b ldr r3, [r3, #0]
  4801. 80023d4: 685a ldr r2, [r3, #4]
  4802. 80023d6: 4b37 ldr r3, [pc, #220] ; (80024b4 <HAL_ADC_Init+0x280>)
  4803. 80023d8: 4013 ands r3, r2
  4804. 80023da: 687a ldr r2, [r7, #4]
  4805. 80023dc: 6812 ldr r2, [r2, #0]
  4806. 80023de: 6b39 ldr r1, [r7, #48] ; 0x30
  4807. 80023e0: 430b orrs r3, r1
  4808. 80023e2: 6053 str r3, [r2, #4]
  4809. ADC_CR1_SCAN ,
  4810. tmp_cr1 );
  4811. }
  4812. /* Update ADC configuration register CR2 with previous settings */
  4813. MODIFY_REG(hadc->Instance->CR2 ,
  4814. 80023e4: 687b ldr r3, [r7, #4]
  4815. 80023e6: 681b ldr r3, [r3, #0]
  4816. 80023e8: 689a ldr r2, [r3, #8]
  4817. 80023ea: 4b33 ldr r3, [pc, #204] ; (80024b8 <HAL_ADC_Init+0x284>)
  4818. 80023ec: 4013 ands r3, r2
  4819. 80023ee: 687a ldr r2, [r7, #4]
  4820. 80023f0: 6812 ldr r2, [r2, #0]
  4821. 80023f2: 6af9 ldr r1, [r7, #44] ; 0x2c
  4822. 80023f4: 430b orrs r3, r1
  4823. 80023f6: 6093 str r3, [r2, #8]
  4824. /* Note: Scan mode is present by hardware on this device and, if */
  4825. /* disabled, discards automatically nb of conversions. Anyway, nb of */
  4826. /* conversions is forced to 0x00 for alignment over all STM32 devices. */
  4827. /* - if scan mode is enabled, regular channels sequence length is set to */
  4828. /* parameter "NbrOfConversion" */
  4829. if (ADC_CR1_SCAN_SET(hadc->Init.ScanConvMode) == ADC_SCAN_ENABLE)
  4830. 80023f8: 687b ldr r3, [r7, #4]
  4831. 80023fa: 691b ldr r3, [r3, #16]
  4832. 80023fc: f5b3 7f80 cmp.w r3, #256 ; 0x100
  4833. 8002400: d003 beq.n 800240a <HAL_ADC_Init+0x1d6>
  4834. 8002402: 687b ldr r3, [r7, #4]
  4835. 8002404: 691b ldr r3, [r3, #16]
  4836. 8002406: 2b01 cmp r3, #1
  4837. 8002408: d119 bne.n 800243e <HAL_ADC_Init+0x20a>
  4838. {
  4839. MODIFY_REG(hadc->Instance->SQR1 ,
  4840. 800240a: 687b ldr r3, [r7, #4]
  4841. 800240c: 681b ldr r3, [r3, #0]
  4842. 800240e: 6b1b ldr r3, [r3, #48] ; 0x30
  4843. 8002410: f023 71f8 bic.w r1, r3, #32505856 ; 0x1f00000
  4844. 8002414: 687b ldr r3, [r7, #4]
  4845. 8002416: 6a9b ldr r3, [r3, #40] ; 0x28
  4846. 8002418: 3b01 subs r3, #1
  4847. 800241a: f04f 72f8 mov.w r2, #32505856 ; 0x1f00000
  4848. 800241e: 613a str r2, [r7, #16]
  4849. __ASM volatile ("rbit %0, %1" : "=r" (result) : "r" (value) );
  4850. 8002420: 693a ldr r2, [r7, #16]
  4851. 8002422: fa92 f2a2 rbit r2, r2
  4852. 8002426: 60fa str r2, [r7, #12]
  4853. return result;
  4854. 8002428: 68fa ldr r2, [r7, #12]
  4855. 800242a: fab2 f282 clz r2, r2
  4856. 800242e: b2d2 uxtb r2, r2
  4857. 8002430: fa03 f202 lsl.w r2, r3, r2
  4858. 8002434: 687b ldr r3, [r7, #4]
  4859. 8002436: 681b ldr r3, [r3, #0]
  4860. 8002438: 430a orrs r2, r1
  4861. 800243a: 631a str r2, [r3, #48] ; 0x30
  4862. 800243c: e007 b.n 800244e <HAL_ADC_Init+0x21a>
  4863. ADC_SQR1_L ,
  4864. ADC_SQR1_L_SHIFT(hadc->Init.NbrOfConversion) );
  4865. }
  4866. else
  4867. {
  4868. MODIFY_REG(hadc->Instance->SQR1,
  4869. 800243e: 687b ldr r3, [r7, #4]
  4870. 8002440: 681b ldr r3, [r3, #0]
  4871. 8002442: 6b1a ldr r2, [r3, #48] ; 0x30
  4872. 8002444: 687b ldr r3, [r7, #4]
  4873. 8002446: 681b ldr r3, [r3, #0]
  4874. 8002448: f022 72f8 bic.w r2, r2, #32505856 ; 0x1f00000
  4875. 800244c: 631a str r2, [r3, #48] ; 0x30
  4876. /* Check back that ADC registers have effectively been configured to */
  4877. /* ensure of no potential problem of ADC core IP clocking. */
  4878. /* Check through register CR2 (excluding execution control bits ADON, */
  4879. /* JSWSTART, SWSTART and injected trigger bits JEXTEN and JEXTSEL). */
  4880. if ((READ_REG(hadc->Instance->CR2) & ~(ADC_CR2_ADON |
  4881. 800244e: 687b ldr r3, [r7, #4]
  4882. 8002450: 681b ldr r3, [r3, #0]
  4883. 8002452: 689a ldr r2, [r3, #8]
  4884. 8002454: 4b19 ldr r3, [pc, #100] ; (80024bc <HAL_ADC_Init+0x288>)
  4885. 8002456: 4013 ands r3, r2
  4886. 8002458: 6afa ldr r2, [r7, #44] ; 0x2c
  4887. 800245a: 429a cmp r2, r3
  4888. 800245c: d10b bne.n 8002476 <HAL_ADC_Init+0x242>
  4889. ADC_CR2_SWSTART | ADC_CR2_JSWSTART |
  4890. ADC_CR2_JEXTEN | ADC_CR2_JEXTSEL ))
  4891. == tmp_cr2)
  4892. {
  4893. /* Set ADC error code to none */
  4894. ADC_CLEAR_ERRORCODE(hadc);
  4895. 800245e: 687b ldr r3, [r7, #4]
  4896. 8002460: 2200 movs r2, #0
  4897. 8002462: 651a str r2, [r3, #80] ; 0x50
  4898. /* Set the ADC state */
  4899. ADC_STATE_CLR_SET(hadc->State,
  4900. 8002464: 687b ldr r3, [r7, #4]
  4901. 8002466: 6cdb ldr r3, [r3, #76] ; 0x4c
  4902. 8002468: f023 0303 bic.w r3, r3, #3
  4903. 800246c: f043 0201 orr.w r2, r3, #1
  4904. 8002470: 687b ldr r3, [r7, #4]
  4905. 8002472: 64da str r2, [r3, #76] ; 0x4c
  4906. 8002474: e014 b.n 80024a0 <HAL_ADC_Init+0x26c>
  4907. HAL_ADC_STATE_READY);
  4908. }
  4909. else
  4910. {
  4911. /* Update ADC state machine to error */
  4912. ADC_STATE_CLR_SET(hadc->State,
  4913. 8002476: 687b ldr r3, [r7, #4]
  4914. 8002478: 6cdb ldr r3, [r3, #76] ; 0x4c
  4915. 800247a: f023 0312 bic.w r3, r3, #18
  4916. 800247e: f043 0210 orr.w r2, r3, #16
  4917. 8002482: 687b ldr r3, [r7, #4]
  4918. 8002484: 64da str r2, [r3, #76] ; 0x4c
  4919. HAL_ADC_STATE_BUSY_INTERNAL,
  4920. HAL_ADC_STATE_ERROR_INTERNAL);
  4921. /* Set ADC error code to ADC IP internal error */
  4922. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  4923. 8002486: 687b ldr r3, [r7, #4]
  4924. 8002488: 6d1b ldr r3, [r3, #80] ; 0x50
  4925. 800248a: f043 0201 orr.w r2, r3, #1
  4926. 800248e: 687b ldr r3, [r7, #4]
  4927. 8002490: 651a str r2, [r3, #80] ; 0x50
  4928. tmp_hal_status = HAL_ERROR;
  4929. 8002492: 2301 movs r3, #1
  4930. 8002494: f887 3037 strb.w r3, [r7, #55] ; 0x37
  4931. 8002498: e002 b.n 80024a0 <HAL_ADC_Init+0x26c>
  4932. }
  4933. }
  4934. else
  4935. {
  4936. tmp_hal_status = HAL_ERROR;
  4937. 800249a: 2301 movs r3, #1
  4938. 800249c: f887 3037 strb.w r3, [r7, #55] ; 0x37
  4939. }
  4940. /* Return function status */
  4941. return tmp_hal_status;
  4942. 80024a0: f897 3037 ldrb.w r3, [r7, #55] ; 0x37
  4943. }
  4944. 80024a4: 4618 mov r0, r3
  4945. 80024a6: 3738 adds r7, #56 ; 0x38
  4946. 80024a8: 46bd mov sp, r7
  4947. 80024aa: bd80 pop {r7, pc}
  4948. 80024ac: 40023800 .word 0x40023800
  4949. 80024b0: 40012700 .word 0x40012700
  4950. 80024b4: fcfc16ff .word 0xfcfc16ff
  4951. 80024b8: c0fff18d .word 0xc0fff18d
  4952. 80024bc: bf80fffe .word 0xbf80fffe
  4953. 080024c0 <HAL_ADC_Start_DMA>:
  4954. * @param pData The destination Buffer address.
  4955. * @param Length The length of data to be transferred from ADC peripheral to memory.
  4956. * @retval None
  4957. */
  4958. HAL_StatusTypeDef HAL_ADC_Start_DMA(ADC_HandleTypeDef* hadc, uint32_t* pData, uint32_t Length)
  4959. {
  4960. 80024c0: b580 push {r7, lr}
  4961. 80024c2: b086 sub sp, #24
  4962. 80024c4: af00 add r7, sp, #0
  4963. 80024c6: 60f8 str r0, [r7, #12]
  4964. 80024c8: 60b9 str r1, [r7, #8]
  4965. 80024ca: 607a str r2, [r7, #4]
  4966. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  4967. 80024cc: 2300 movs r3, #0
  4968. 80024ce: 75fb strb r3, [r7, #23]
  4969. /* Check the parameters */
  4970. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  4971. /* Process locked */
  4972. __HAL_LOCK(hadc);
  4973. 80024d0: 68fb ldr r3, [r7, #12]
  4974. 80024d2: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
  4975. 80024d6: 2b01 cmp r3, #1
  4976. 80024d8: d101 bne.n 80024de <HAL_ADC_Start_DMA+0x1e>
  4977. 80024da: 2302 movs r3, #2
  4978. 80024dc: e074 b.n 80025c8 <HAL_ADC_Start_DMA+0x108>
  4979. 80024de: 68fb ldr r3, [r7, #12]
  4980. 80024e0: 2201 movs r2, #1
  4981. 80024e2: f883 2048 strb.w r2, [r3, #72] ; 0x48
  4982. /* Enable the ADC peripheral */
  4983. tmp_hal_status = ADC_Enable(hadc);
  4984. 80024e6: 68f8 ldr r0, [r7, #12]
  4985. 80024e8: f000 fa34 bl 8002954 <ADC_Enable>
  4986. 80024ec: 4603 mov r3, r0
  4987. 80024ee: 75fb strb r3, [r7, #23]
  4988. /* Start conversion if ADC is effectively enabled */
  4989. if (tmp_hal_status == HAL_OK)
  4990. 80024f0: 7dfb ldrb r3, [r7, #23]
  4991. 80024f2: 2b00 cmp r3, #0
  4992. 80024f4: d167 bne.n 80025c6 <HAL_ADC_Start_DMA+0x106>
  4993. {
  4994. /* Set ADC state */
  4995. /* - Clear state bitfield related to regular group conversion results */
  4996. /* - Set state bitfield related to regular group operation */
  4997. ADC_STATE_CLR_SET(hadc->State,
  4998. 80024f6: 68fb ldr r3, [r7, #12]
  4999. 80024f8: 6cdb ldr r3, [r3, #76] ; 0x4c
  5000. 80024fa: f423 63e0 bic.w r3, r3, #1792 ; 0x700
  5001. 80024fe: f023 0301 bic.w r3, r3, #1
  5002. 8002502: f443 7280 orr.w r2, r3, #256 ; 0x100
  5003. 8002506: 68fb ldr r3, [r7, #12]
  5004. 8002508: 64da str r2, [r3, #76] ; 0x4c
  5005. HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR,
  5006. HAL_ADC_STATE_REG_BUSY);
  5007. /* If conversions on group regular are also triggering group injected, */
  5008. /* update ADC state. */
  5009. if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET)
  5010. 800250a: 68fb ldr r3, [r7, #12]
  5011. 800250c: 681b ldr r3, [r3, #0]
  5012. 800250e: 685b ldr r3, [r3, #4]
  5013. 8002510: f403 6380 and.w r3, r3, #1024 ; 0x400
  5014. 8002514: 2b00 cmp r3, #0
  5015. 8002516: d007 beq.n 8002528 <HAL_ADC_Start_DMA+0x68>
  5016. {
  5017. ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY);
  5018. 8002518: 68fb ldr r3, [r7, #12]
  5019. 800251a: 6cdb ldr r3, [r3, #76] ; 0x4c
  5020. 800251c: f423 5340 bic.w r3, r3, #12288 ; 0x3000
  5021. 8002520: f443 5280 orr.w r2, r3, #4096 ; 0x1000
  5022. 8002524: 68fb ldr r3, [r7, #12]
  5023. 8002526: 64da str r2, [r3, #76] ; 0x4c
  5024. }
  5025. /* State machine update: Check if an injected conversion is ongoing */
  5026. if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  5027. 8002528: 68fb ldr r3, [r7, #12]
  5028. 800252a: 6cdb ldr r3, [r3, #76] ; 0x4c
  5029. 800252c: f403 5380 and.w r3, r3, #4096 ; 0x1000
  5030. 8002530: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  5031. 8002534: d106 bne.n 8002544 <HAL_ADC_Start_DMA+0x84>
  5032. {
  5033. /* Reset ADC error code fields related to conversions on group regular */
  5034. CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA));
  5035. 8002536: 68fb ldr r3, [r7, #12]
  5036. 8002538: 6d1b ldr r3, [r3, #80] ; 0x50
  5037. 800253a: f023 0206 bic.w r2, r3, #6
  5038. 800253e: 68fb ldr r3, [r7, #12]
  5039. 8002540: 651a str r2, [r3, #80] ; 0x50
  5040. 8002542: e002 b.n 800254a <HAL_ADC_Start_DMA+0x8a>
  5041. }
  5042. else
  5043. {
  5044. /* Reset ADC all error code fields */
  5045. ADC_CLEAR_ERRORCODE(hadc);
  5046. 8002544: 68fb ldr r3, [r7, #12]
  5047. 8002546: 2200 movs r2, #0
  5048. 8002548: 651a str r2, [r3, #80] ; 0x50
  5049. }
  5050. /* Process unlocked */
  5051. /* Unlock before starting ADC conversions: in case of potential */
  5052. /* interruption, to let the process to ADC IRQ Handler. */
  5053. __HAL_UNLOCK(hadc);
  5054. 800254a: 68fb ldr r3, [r7, #12]
  5055. 800254c: 2200 movs r2, #0
  5056. 800254e: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5057. /* Set the DMA transfer complete callback */
  5058. hadc->DMA_Handle->XferCpltCallback = ADC_DMAConvCplt;
  5059. 8002552: 68fb ldr r3, [r7, #12]
  5060. 8002554: 6c5b ldr r3, [r3, #68] ; 0x44
  5061. 8002556: 4a1e ldr r2, [pc, #120] ; (80025d0 <HAL_ADC_Start_DMA+0x110>)
  5062. 8002558: 629a str r2, [r3, #40] ; 0x28
  5063. /* Set the DMA half transfer complete callback */
  5064. hadc->DMA_Handle->XferHalfCpltCallback = ADC_DMAHalfConvCplt;
  5065. 800255a: 68fb ldr r3, [r7, #12]
  5066. 800255c: 6c5b ldr r3, [r3, #68] ; 0x44
  5067. 800255e: 4a1d ldr r2, [pc, #116] ; (80025d4 <HAL_ADC_Start_DMA+0x114>)
  5068. 8002560: 62da str r2, [r3, #44] ; 0x2c
  5069. /* Set the DMA error callback */
  5070. hadc->DMA_Handle->XferErrorCallback = ADC_DMAError;
  5071. 8002562: 68fb ldr r3, [r7, #12]
  5072. 8002564: 6c5b ldr r3, [r3, #68] ; 0x44
  5073. 8002566: 4a1c ldr r2, [pc, #112] ; (80025d8 <HAL_ADC_Start_DMA+0x118>)
  5074. 8002568: 631a str r2, [r3, #48] ; 0x30
  5075. /* Manage ADC and DMA start: ADC overrun interruption, DMA start, ADC */
  5076. /* start (in case of SW start): */
  5077. /* Clear regular group conversion flag and overrun flag */
  5078. /* (To ensure of no unknown state from potential previous ADC operations) */
  5079. __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC | ADC_FLAG_OVR);
  5080. 800256a: 68fb ldr r3, [r7, #12]
  5081. 800256c: 681b ldr r3, [r3, #0]
  5082. 800256e: f06f 0222 mvn.w r2, #34 ; 0x22
  5083. 8002572: 601a str r2, [r3, #0]
  5084. /* Enable ADC overrun interrupt */
  5085. __HAL_ADC_ENABLE_IT(hadc, ADC_IT_OVR);
  5086. 8002574: 68fb ldr r3, [r7, #12]
  5087. 8002576: 681b ldr r3, [r3, #0]
  5088. 8002578: 685a ldr r2, [r3, #4]
  5089. 800257a: 68fb ldr r3, [r7, #12]
  5090. 800257c: 681b ldr r3, [r3, #0]
  5091. 800257e: f042 6280 orr.w r2, r2, #67108864 ; 0x4000000
  5092. 8002582: 605a str r2, [r3, #4]
  5093. /* Enable ADC DMA mode */
  5094. hadc->Instance->CR2 |= ADC_CR2_DMA;
  5095. 8002584: 68fb ldr r3, [r7, #12]
  5096. 8002586: 681b ldr r3, [r3, #0]
  5097. 8002588: 689a ldr r2, [r3, #8]
  5098. 800258a: 68fb ldr r3, [r7, #12]
  5099. 800258c: 681b ldr r3, [r3, #0]
  5100. 800258e: f442 7280 orr.w r2, r2, #256 ; 0x100
  5101. 8002592: 609a str r2, [r3, #8]
  5102. /* Start the DMA channel */
  5103. HAL_DMA_Start_IT(hadc->DMA_Handle, (uint32_t)&hadc->Instance->DR, (uint32_t)pData, Length);
  5104. 8002594: 68fb ldr r3, [r7, #12]
  5105. 8002596: 6c58 ldr r0, [r3, #68] ; 0x44
  5106. 8002598: 68fb ldr r3, [r7, #12]
  5107. 800259a: 681b ldr r3, [r3, #0]
  5108. 800259c: 3358 adds r3, #88 ; 0x58
  5109. 800259e: 4619 mov r1, r3
  5110. 80025a0: 68ba ldr r2, [r7, #8]
  5111. 80025a2: 687b ldr r3, [r7, #4]
  5112. 80025a4: f000 fec8 bl 8003338 <HAL_DMA_Start_IT>
  5113. /* If software start has been selected, conversion starts immediately. */
  5114. /* If external trigger has been selected, conversion will start at next */
  5115. /* trigger event. */
  5116. /* Note: Alternate trigger for single conversion could be to force an */
  5117. /* additional set of bit ADON "hadc->Instance->CR2 |= ADC_CR2_ADON;"*/
  5118. if (ADC_IS_SOFTWARE_START_REGULAR(hadc))
  5119. 80025a8: 68fb ldr r3, [r7, #12]
  5120. 80025aa: 681b ldr r3, [r3, #0]
  5121. 80025ac: 689b ldr r3, [r3, #8]
  5122. 80025ae: f003 5340 and.w r3, r3, #805306368 ; 0x30000000
  5123. 80025b2: 2b00 cmp r3, #0
  5124. 80025b4: d107 bne.n 80025c6 <HAL_ADC_Start_DMA+0x106>
  5125. {
  5126. /* Start ADC conversion on regular group */
  5127. SET_BIT(hadc->Instance->CR2, ADC_CR2_SWSTART);
  5128. 80025b6: 68fb ldr r3, [r7, #12]
  5129. 80025b8: 681b ldr r3, [r3, #0]
  5130. 80025ba: 689a ldr r2, [r3, #8]
  5131. 80025bc: 68fb ldr r3, [r7, #12]
  5132. 80025be: 681b ldr r3, [r3, #0]
  5133. 80025c0: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000
  5134. 80025c4: 609a str r2, [r3, #8]
  5135. }
  5136. }
  5137. /* Return function status */
  5138. return tmp_hal_status;
  5139. 80025c6: 7dfb ldrb r3, [r7, #23]
  5140. }
  5141. 80025c8: 4618 mov r0, r3
  5142. 80025ca: 3718 adds r7, #24
  5143. 80025cc: 46bd mov sp, r7
  5144. 80025ce: bd80 pop {r7, pc}
  5145. 80025d0: 08002a8f .word 0x08002a8f
  5146. 80025d4: 08002b37 .word 0x08002b37
  5147. 80025d8: 08002b53 .word 0x08002b53
  5148. 080025dc <HAL_ADC_Stop_DMA>:
  5149. * should be preliminarily stopped using HAL_ADCEx_InjectedStop function.
  5150. * @param hadc ADC handle
  5151. * @retval HAL status.
  5152. */
  5153. HAL_StatusTypeDef HAL_ADC_Stop_DMA(ADC_HandleTypeDef* hadc)
  5154. {
  5155. 80025dc: b580 push {r7, lr}
  5156. 80025de: b084 sub sp, #16
  5157. 80025e0: af00 add r7, sp, #0
  5158. 80025e2: 6078 str r0, [r7, #4]
  5159. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  5160. 80025e4: 2300 movs r3, #0
  5161. 80025e6: 73fb strb r3, [r7, #15]
  5162. /* Check the parameters */
  5163. assert_param(IS_ADC_ALL_INSTANCE(hadc->Instance));
  5164. /* Process locked */
  5165. __HAL_LOCK(hadc);
  5166. 80025e8: 687b ldr r3, [r7, #4]
  5167. 80025ea: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
  5168. 80025ee: 2b01 cmp r3, #1
  5169. 80025f0: d101 bne.n 80025f6 <HAL_ADC_Stop_DMA+0x1a>
  5170. 80025f2: 2302 movs r3, #2
  5171. 80025f4: e03f b.n 8002676 <HAL_ADC_Stop_DMA+0x9a>
  5172. 80025f6: 687b ldr r3, [r7, #4]
  5173. 80025f8: 2201 movs r2, #1
  5174. 80025fa: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5175. /* Stop potential conversion on going, on regular and injected groups */
  5176. /* Disable ADC peripheral */
  5177. tmp_hal_status = ADC_ConversionStop_Disable(hadc);
  5178. 80025fe: 6878 ldr r0, [r7, #4]
  5179. 8002600: f000 fa04 bl 8002a0c <ADC_ConversionStop_Disable>
  5180. 8002604: 4603 mov r3, r0
  5181. 8002606: 73fb strb r3, [r7, #15]
  5182. /* Check if ADC is effectively disabled */
  5183. if (tmp_hal_status == HAL_OK)
  5184. 8002608: 7bfb ldrb r3, [r7, #15]
  5185. 800260a: 2b00 cmp r3, #0
  5186. 800260c: d12e bne.n 800266c <HAL_ADC_Stop_DMA+0x90>
  5187. {
  5188. /* Disable ADC DMA mode */
  5189. hadc->Instance->CR2 &= ~ADC_CR2_DMA;
  5190. 800260e: 687b ldr r3, [r7, #4]
  5191. 8002610: 681b ldr r3, [r3, #0]
  5192. 8002612: 689a ldr r2, [r3, #8]
  5193. 8002614: 687b ldr r3, [r7, #4]
  5194. 8002616: 681b ldr r3, [r3, #0]
  5195. 8002618: f422 7280 bic.w r2, r2, #256 ; 0x100
  5196. 800261c: 609a str r2, [r3, #8]
  5197. /* Disable the DMA channel (in case of DMA in circular mode or stop while */
  5198. /* DMA transfer is on going) */
  5199. if (hadc->DMA_Handle->State == HAL_DMA_STATE_BUSY)
  5200. 800261e: 687b ldr r3, [r7, #4]
  5201. 8002620: 6c5b ldr r3, [r3, #68] ; 0x44
  5202. 8002622: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  5203. 8002626: b2db uxtb r3, r3
  5204. 8002628: 2b02 cmp r3, #2
  5205. 800262a: d10d bne.n 8002648 <HAL_ADC_Stop_DMA+0x6c>
  5206. {
  5207. HAL_DMA_Abort(hadc->DMA_Handle);
  5208. 800262c: 687b ldr r3, [r7, #4]
  5209. 800262e: 6c5b ldr r3, [r3, #68] ; 0x44
  5210. 8002630: 4618 mov r0, r3
  5211. 8002632: f000 fee1 bl 80033f8 <HAL_DMA_Abort>
  5212. /* Check if DMA channel effectively disabled */
  5213. if (tmp_hal_status != HAL_OK)
  5214. 8002636: 7bfb ldrb r3, [r7, #15]
  5215. 8002638: 2b00 cmp r3, #0
  5216. 800263a: d005 beq.n 8002648 <HAL_ADC_Stop_DMA+0x6c>
  5217. {
  5218. /* Update ADC state machine to error */
  5219. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  5220. 800263c: 687b ldr r3, [r7, #4]
  5221. 800263e: 6cdb ldr r3, [r3, #76] ; 0x4c
  5222. 8002640: f043 0240 orr.w r2, r3, #64 ; 0x40
  5223. 8002644: 687b ldr r3, [r7, #4]
  5224. 8002646: 64da str r2, [r3, #76] ; 0x4c
  5225. }
  5226. }
  5227. /* Set ADC state */
  5228. ADC_STATE_CLR_SET(hadc->State,
  5229. 8002648: 687b ldr r3, [r7, #4]
  5230. 800264a: 6cdb ldr r3, [r3, #76] ; 0x4c
  5231. 800264c: f423 5388 bic.w r3, r3, #4352 ; 0x1100
  5232. 8002650: f023 0301 bic.w r3, r3, #1
  5233. 8002654: f043 0201 orr.w r2, r3, #1
  5234. 8002658: 687b ldr r3, [r7, #4]
  5235. 800265a: 64da str r2, [r3, #76] ; 0x4c
  5236. HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY,
  5237. HAL_ADC_STATE_READY);
  5238. /* Disable ADC overrun interrupt */
  5239. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_OVR);
  5240. 800265c: 687b ldr r3, [r7, #4]
  5241. 800265e: 681b ldr r3, [r3, #0]
  5242. 8002660: 685a ldr r2, [r3, #4]
  5243. 8002662: 687b ldr r3, [r7, #4]
  5244. 8002664: 681b ldr r3, [r3, #0]
  5245. 8002666: f022 6280 bic.w r2, r2, #67108864 ; 0x4000000
  5246. 800266a: 605a str r2, [r3, #4]
  5247. }
  5248. /* Process unlocked */
  5249. __HAL_UNLOCK(hadc);
  5250. 800266c: 687b ldr r3, [r7, #4]
  5251. 800266e: 2200 movs r2, #0
  5252. 8002670: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5253. /* Return function status */
  5254. return tmp_hal_status;
  5255. 8002674: 7bfb ldrb r3, [r7, #15]
  5256. }
  5257. 8002676: 4618 mov r0, r3
  5258. 8002678: 3710 adds r7, #16
  5259. 800267a: 46bd mov sp, r7
  5260. 800267c: bd80 pop {r7, pc}
  5261. 0800267e <HAL_ADC_ConvCpltCallback>:
  5262. * @brief Conversion complete callback in non blocking mode
  5263. * @param hadc ADC handle
  5264. * @retval None
  5265. */
  5266. __weak void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)
  5267. {
  5268. 800267e: b480 push {r7}
  5269. 8002680: b083 sub sp, #12
  5270. 8002682: af00 add r7, sp, #0
  5271. 8002684: 6078 str r0, [r7, #4]
  5272. UNUSED(hadc);
  5273. /* NOTE : This function should not be modified. When the callback is needed,
  5274. function HAL_ADC_ConvCpltCallback must be implemented in the user file.
  5275. */
  5276. }
  5277. 8002686: bf00 nop
  5278. 8002688: 370c adds r7, #12
  5279. 800268a: 46bd mov sp, r7
  5280. 800268c: bc80 pop {r7}
  5281. 800268e: 4770 bx lr
  5282. 08002690 <HAL_ADC_ConvHalfCpltCallback>:
  5283. * @brief Conversion DMA half-transfer callback in non blocking mode
  5284. * @param hadc ADC handle
  5285. * @retval None
  5286. */
  5287. __weak void HAL_ADC_ConvHalfCpltCallback(ADC_HandleTypeDef* hadc)
  5288. {
  5289. 8002690: b480 push {r7}
  5290. 8002692: b083 sub sp, #12
  5291. 8002694: af00 add r7, sp, #0
  5292. 8002696: 6078 str r0, [r7, #4]
  5293. UNUSED(hadc);
  5294. /* NOTE : This function should not be modified. When the callback is needed,
  5295. function HAL_ADC_ConvHalfCpltCallback must be implemented in the user file.
  5296. */
  5297. }
  5298. 8002698: bf00 nop
  5299. 800269a: 370c adds r7, #12
  5300. 800269c: 46bd mov sp, r7
  5301. 800269e: bc80 pop {r7}
  5302. 80026a0: 4770 bx lr
  5303. 080026a2 <HAL_ADC_ErrorCallback>:
  5304. * (this function is also clearing overrun flag)
  5305. * @param hadc ADC handle
  5306. * @retval None
  5307. */
  5308. __weak void HAL_ADC_ErrorCallback(ADC_HandleTypeDef *hadc)
  5309. {
  5310. 80026a2: b480 push {r7}
  5311. 80026a4: b083 sub sp, #12
  5312. 80026a6: af00 add r7, sp, #0
  5313. 80026a8: 6078 str r0, [r7, #4]
  5314. UNUSED(hadc);
  5315. /* NOTE : This function should not be modified. When the callback is needed,
  5316. function HAL_ADC_ErrorCallback must be implemented in the user file.
  5317. */
  5318. }
  5319. 80026aa: bf00 nop
  5320. 80026ac: 370c adds r7, #12
  5321. 80026ae: 46bd mov sp, r7
  5322. 80026b0: bc80 pop {r7}
  5323. 80026b2: 4770 bx lr
  5324. 080026b4 <HAL_ADC_ConfigChannel>:
  5325. * @param hadc ADC handle
  5326. * @param sConfig Structure of ADC channel for regular group.
  5327. * @retval HAL status
  5328. */
  5329. HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig)
  5330. {
  5331. 80026b4: b480 push {r7}
  5332. 80026b6: b085 sub sp, #20
  5333. 80026b8: af00 add r7, sp, #0
  5334. 80026ba: 6078 str r0, [r7, #4]
  5335. 80026bc: 6039 str r1, [r7, #0]
  5336. HAL_StatusTypeDef tmp_hal_status = HAL_OK;
  5337. 80026be: 2300 movs r3, #0
  5338. 80026c0: 73fb strb r3, [r7, #15]
  5339. __IO uint32_t wait_loop_index = 0;
  5340. 80026c2: 2300 movs r3, #0
  5341. 80026c4: 60bb str r3, [r7, #8]
  5342. assert_param(IS_ADC_CHANNEL(sConfig->Channel));
  5343. assert_param(IS_ADC_REGULAR_RANK(sConfig->Rank));
  5344. assert_param(IS_ADC_SAMPLE_TIME(sConfig->SamplingTime));
  5345. /* Process locked */
  5346. __HAL_LOCK(hadc);
  5347. 80026c6: 687b ldr r3, [r7, #4]
  5348. 80026c8: f893 3048 ldrb.w r3, [r3, #72] ; 0x48
  5349. 80026cc: 2b01 cmp r3, #1
  5350. 80026ce: d101 bne.n 80026d4 <HAL_ADC_ConfigChannel+0x20>
  5351. 80026d0: 2302 movs r3, #2
  5352. 80026d2: e134 b.n 800293e <HAL_ADC_ConfigChannel+0x28a>
  5353. 80026d4: 687b ldr r3, [r7, #4]
  5354. 80026d6: 2201 movs r2, #1
  5355. 80026d8: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5356. /* Regular sequence configuration */
  5357. /* For Rank 1 to 6 */
  5358. if (sConfig->Rank < 7)
  5359. 80026dc: 683b ldr r3, [r7, #0]
  5360. 80026de: 685b ldr r3, [r3, #4]
  5361. 80026e0: 2b06 cmp r3, #6
  5362. 80026e2: d81c bhi.n 800271e <HAL_ADC_ConfigChannel+0x6a>
  5363. {
  5364. MODIFY_REG(hadc->Instance->SQR5,
  5365. 80026e4: 687b ldr r3, [r7, #4]
  5366. 80026e6: 681b ldr r3, [r3, #0]
  5367. 80026e8: 6c19 ldr r1, [r3, #64] ; 0x40
  5368. 80026ea: 683b ldr r3, [r7, #0]
  5369. 80026ec: 685a ldr r2, [r3, #4]
  5370. 80026ee: 4613 mov r3, r2
  5371. 80026f0: 009b lsls r3, r3, #2
  5372. 80026f2: 4413 add r3, r2
  5373. 80026f4: 3b05 subs r3, #5
  5374. 80026f6: 221f movs r2, #31
  5375. 80026f8: fa02 f303 lsl.w r3, r2, r3
  5376. 80026fc: 43db mvns r3, r3
  5377. 80026fe: 4019 ands r1, r3
  5378. 8002700: 683b ldr r3, [r7, #0]
  5379. 8002702: 6818 ldr r0, [r3, #0]
  5380. 8002704: 683b ldr r3, [r7, #0]
  5381. 8002706: 685a ldr r2, [r3, #4]
  5382. 8002708: 4613 mov r3, r2
  5383. 800270a: 009b lsls r3, r3, #2
  5384. 800270c: 4413 add r3, r2
  5385. 800270e: 3b05 subs r3, #5
  5386. 8002710: fa00 f203 lsl.w r2, r0, r3
  5387. 8002714: 687b ldr r3, [r7, #4]
  5388. 8002716: 681b ldr r3, [r3, #0]
  5389. 8002718: 430a orrs r2, r1
  5390. 800271a: 641a str r2, [r3, #64] ; 0x40
  5391. 800271c: e07e b.n 800281c <HAL_ADC_ConfigChannel+0x168>
  5392. ADC_SQR5_RK(ADC_SQR5_SQ1, sConfig->Rank),
  5393. ADC_SQR5_RK(sConfig->Channel, sConfig->Rank) );
  5394. }
  5395. /* For Rank 7 to 12 */
  5396. else if (sConfig->Rank < 13)
  5397. 800271e: 683b ldr r3, [r7, #0]
  5398. 8002720: 685b ldr r3, [r3, #4]
  5399. 8002722: 2b0c cmp r3, #12
  5400. 8002724: d81c bhi.n 8002760 <HAL_ADC_ConfigChannel+0xac>
  5401. {
  5402. MODIFY_REG(hadc->Instance->SQR4,
  5403. 8002726: 687b ldr r3, [r7, #4]
  5404. 8002728: 681b ldr r3, [r3, #0]
  5405. 800272a: 6bd9 ldr r1, [r3, #60] ; 0x3c
  5406. 800272c: 683b ldr r3, [r7, #0]
  5407. 800272e: 685a ldr r2, [r3, #4]
  5408. 8002730: 4613 mov r3, r2
  5409. 8002732: 009b lsls r3, r3, #2
  5410. 8002734: 4413 add r3, r2
  5411. 8002736: 3b23 subs r3, #35 ; 0x23
  5412. 8002738: 221f movs r2, #31
  5413. 800273a: fa02 f303 lsl.w r3, r2, r3
  5414. 800273e: 43db mvns r3, r3
  5415. 8002740: 4019 ands r1, r3
  5416. 8002742: 683b ldr r3, [r7, #0]
  5417. 8002744: 6818 ldr r0, [r3, #0]
  5418. 8002746: 683b ldr r3, [r7, #0]
  5419. 8002748: 685a ldr r2, [r3, #4]
  5420. 800274a: 4613 mov r3, r2
  5421. 800274c: 009b lsls r3, r3, #2
  5422. 800274e: 4413 add r3, r2
  5423. 8002750: 3b23 subs r3, #35 ; 0x23
  5424. 8002752: fa00 f203 lsl.w r2, r0, r3
  5425. 8002756: 687b ldr r3, [r7, #4]
  5426. 8002758: 681b ldr r3, [r3, #0]
  5427. 800275a: 430a orrs r2, r1
  5428. 800275c: 63da str r2, [r3, #60] ; 0x3c
  5429. 800275e: e05d b.n 800281c <HAL_ADC_ConfigChannel+0x168>
  5430. ADC_SQR4_RK(ADC_SQR4_SQ7, sConfig->Rank),
  5431. ADC_SQR4_RK(sConfig->Channel, sConfig->Rank) );
  5432. }
  5433. /* For Rank 13 to 18 */
  5434. else if (sConfig->Rank < 19)
  5435. 8002760: 683b ldr r3, [r7, #0]
  5436. 8002762: 685b ldr r3, [r3, #4]
  5437. 8002764: 2b12 cmp r3, #18
  5438. 8002766: d81c bhi.n 80027a2 <HAL_ADC_ConfigChannel+0xee>
  5439. {
  5440. MODIFY_REG(hadc->Instance->SQR3,
  5441. 8002768: 687b ldr r3, [r7, #4]
  5442. 800276a: 681b ldr r3, [r3, #0]
  5443. 800276c: 6b99 ldr r1, [r3, #56] ; 0x38
  5444. 800276e: 683b ldr r3, [r7, #0]
  5445. 8002770: 685a ldr r2, [r3, #4]
  5446. 8002772: 4613 mov r3, r2
  5447. 8002774: 009b lsls r3, r3, #2
  5448. 8002776: 4413 add r3, r2
  5449. 8002778: 3b41 subs r3, #65 ; 0x41
  5450. 800277a: 221f movs r2, #31
  5451. 800277c: fa02 f303 lsl.w r3, r2, r3
  5452. 8002780: 43db mvns r3, r3
  5453. 8002782: 4019 ands r1, r3
  5454. 8002784: 683b ldr r3, [r7, #0]
  5455. 8002786: 6818 ldr r0, [r3, #0]
  5456. 8002788: 683b ldr r3, [r7, #0]
  5457. 800278a: 685a ldr r2, [r3, #4]
  5458. 800278c: 4613 mov r3, r2
  5459. 800278e: 009b lsls r3, r3, #2
  5460. 8002790: 4413 add r3, r2
  5461. 8002792: 3b41 subs r3, #65 ; 0x41
  5462. 8002794: fa00 f203 lsl.w r2, r0, r3
  5463. 8002798: 687b ldr r3, [r7, #4]
  5464. 800279a: 681b ldr r3, [r3, #0]
  5465. 800279c: 430a orrs r2, r1
  5466. 800279e: 639a str r2, [r3, #56] ; 0x38
  5467. 80027a0: e03c b.n 800281c <HAL_ADC_ConfigChannel+0x168>
  5468. ADC_SQR3_RK(ADC_SQR3_SQ13, sConfig->Rank),
  5469. ADC_SQR3_RK(sConfig->Channel, sConfig->Rank) );
  5470. }
  5471. /* For Rank 19 to 24 */
  5472. else if (sConfig->Rank < 25)
  5473. 80027a2: 683b ldr r3, [r7, #0]
  5474. 80027a4: 685b ldr r3, [r3, #4]
  5475. 80027a6: 2b18 cmp r3, #24
  5476. 80027a8: d81c bhi.n 80027e4 <HAL_ADC_ConfigChannel+0x130>
  5477. {
  5478. MODIFY_REG(hadc->Instance->SQR2,
  5479. 80027aa: 687b ldr r3, [r7, #4]
  5480. 80027ac: 681b ldr r3, [r3, #0]
  5481. 80027ae: 6b59 ldr r1, [r3, #52] ; 0x34
  5482. 80027b0: 683b ldr r3, [r7, #0]
  5483. 80027b2: 685a ldr r2, [r3, #4]
  5484. 80027b4: 4613 mov r3, r2
  5485. 80027b6: 009b lsls r3, r3, #2
  5486. 80027b8: 4413 add r3, r2
  5487. 80027ba: 3b5f subs r3, #95 ; 0x5f
  5488. 80027bc: 221f movs r2, #31
  5489. 80027be: fa02 f303 lsl.w r3, r2, r3
  5490. 80027c2: 43db mvns r3, r3
  5491. 80027c4: 4019 ands r1, r3
  5492. 80027c6: 683b ldr r3, [r7, #0]
  5493. 80027c8: 6818 ldr r0, [r3, #0]
  5494. 80027ca: 683b ldr r3, [r7, #0]
  5495. 80027cc: 685a ldr r2, [r3, #4]
  5496. 80027ce: 4613 mov r3, r2
  5497. 80027d0: 009b lsls r3, r3, #2
  5498. 80027d2: 4413 add r3, r2
  5499. 80027d4: 3b5f subs r3, #95 ; 0x5f
  5500. 80027d6: fa00 f203 lsl.w r2, r0, r3
  5501. 80027da: 687b ldr r3, [r7, #4]
  5502. 80027dc: 681b ldr r3, [r3, #0]
  5503. 80027de: 430a orrs r2, r1
  5504. 80027e0: 635a str r2, [r3, #52] ; 0x34
  5505. 80027e2: e01b b.n 800281c <HAL_ADC_ConfigChannel+0x168>
  5506. ADC_SQR2_RK(sConfig->Channel, sConfig->Rank) );
  5507. }
  5508. /* For Rank 25 to 28 */
  5509. else
  5510. {
  5511. MODIFY_REG(hadc->Instance->SQR1,
  5512. 80027e4: 687b ldr r3, [r7, #4]
  5513. 80027e6: 681b ldr r3, [r3, #0]
  5514. 80027e8: 6b19 ldr r1, [r3, #48] ; 0x30
  5515. 80027ea: 683b ldr r3, [r7, #0]
  5516. 80027ec: 685a ldr r2, [r3, #4]
  5517. 80027ee: 4613 mov r3, r2
  5518. 80027f0: 009b lsls r3, r3, #2
  5519. 80027f2: 4413 add r3, r2
  5520. 80027f4: 3b7d subs r3, #125 ; 0x7d
  5521. 80027f6: 221f movs r2, #31
  5522. 80027f8: fa02 f303 lsl.w r3, r2, r3
  5523. 80027fc: 43db mvns r3, r3
  5524. 80027fe: 4019 ands r1, r3
  5525. 8002800: 683b ldr r3, [r7, #0]
  5526. 8002802: 6818 ldr r0, [r3, #0]
  5527. 8002804: 683b ldr r3, [r7, #0]
  5528. 8002806: 685a ldr r2, [r3, #4]
  5529. 8002808: 4613 mov r3, r2
  5530. 800280a: 009b lsls r3, r3, #2
  5531. 800280c: 4413 add r3, r2
  5532. 800280e: 3b7d subs r3, #125 ; 0x7d
  5533. 8002810: fa00 f203 lsl.w r2, r0, r3
  5534. 8002814: 687b ldr r3, [r7, #4]
  5535. 8002816: 681b ldr r3, [r3, #0]
  5536. 8002818: 430a orrs r2, r1
  5537. 800281a: 631a str r2, [r3, #48] ; 0x30
  5538. }
  5539. /* Channel sampling time configuration */
  5540. /* For channels 0 to 9 */
  5541. if (sConfig->Channel < ADC_CHANNEL_10)
  5542. 800281c: 683b ldr r3, [r7, #0]
  5543. 800281e: 681b ldr r3, [r3, #0]
  5544. 8002820: 2b09 cmp r3, #9
  5545. 8002822: d81a bhi.n 800285a <HAL_ADC_ConfigChannel+0x1a6>
  5546. {
  5547. MODIFY_REG(hadc->Instance->SMPR3,
  5548. 8002824: 687b ldr r3, [r7, #4]
  5549. 8002826: 681b ldr r3, [r3, #0]
  5550. 8002828: 6959 ldr r1, [r3, #20]
  5551. 800282a: 683b ldr r3, [r7, #0]
  5552. 800282c: 681a ldr r2, [r3, #0]
  5553. 800282e: 4613 mov r3, r2
  5554. 8002830: 005b lsls r3, r3, #1
  5555. 8002832: 4413 add r3, r2
  5556. 8002834: 2207 movs r2, #7
  5557. 8002836: fa02 f303 lsl.w r3, r2, r3
  5558. 800283a: 43db mvns r3, r3
  5559. 800283c: 4019 ands r1, r3
  5560. 800283e: 683b ldr r3, [r7, #0]
  5561. 8002840: 6898 ldr r0, [r3, #8]
  5562. 8002842: 683b ldr r3, [r7, #0]
  5563. 8002844: 681a ldr r2, [r3, #0]
  5564. 8002846: 4613 mov r3, r2
  5565. 8002848: 005b lsls r3, r3, #1
  5566. 800284a: 4413 add r3, r2
  5567. 800284c: fa00 f203 lsl.w r2, r0, r3
  5568. 8002850: 687b ldr r3, [r7, #4]
  5569. 8002852: 681b ldr r3, [r3, #0]
  5570. 8002854: 430a orrs r2, r1
  5571. 8002856: 615a str r2, [r3, #20]
  5572. 8002858: e042 b.n 80028e0 <HAL_ADC_ConfigChannel+0x22c>
  5573. ADC_SMPR3(ADC_SMPR3_SMP0, sConfig->Channel),
  5574. ADC_SMPR3(sConfig->SamplingTime, sConfig->Channel) );
  5575. }
  5576. /* For channels 10 to 19 */
  5577. else if (sConfig->Channel < ADC_CHANNEL_20)
  5578. 800285a: 683b ldr r3, [r7, #0]
  5579. 800285c: 681b ldr r3, [r3, #0]
  5580. 800285e: 2b13 cmp r3, #19
  5581. 8002860: d81c bhi.n 800289c <HAL_ADC_ConfigChannel+0x1e8>
  5582. {
  5583. MODIFY_REG(hadc->Instance->SMPR2,
  5584. 8002862: 687b ldr r3, [r7, #4]
  5585. 8002864: 681b ldr r3, [r3, #0]
  5586. 8002866: 6919 ldr r1, [r3, #16]
  5587. 8002868: 683b ldr r3, [r7, #0]
  5588. 800286a: 681a ldr r2, [r3, #0]
  5589. 800286c: 4613 mov r3, r2
  5590. 800286e: 005b lsls r3, r3, #1
  5591. 8002870: 4413 add r3, r2
  5592. 8002872: 3b1e subs r3, #30
  5593. 8002874: 2207 movs r2, #7
  5594. 8002876: fa02 f303 lsl.w r3, r2, r3
  5595. 800287a: 43db mvns r3, r3
  5596. 800287c: 4019 ands r1, r3
  5597. 800287e: 683b ldr r3, [r7, #0]
  5598. 8002880: 6898 ldr r0, [r3, #8]
  5599. 8002882: 683b ldr r3, [r7, #0]
  5600. 8002884: 681a ldr r2, [r3, #0]
  5601. 8002886: 4613 mov r3, r2
  5602. 8002888: 005b lsls r3, r3, #1
  5603. 800288a: 4413 add r3, r2
  5604. 800288c: 3b1e subs r3, #30
  5605. 800288e: fa00 f203 lsl.w r2, r0, r3
  5606. 8002892: 687b ldr r3, [r7, #4]
  5607. 8002894: 681b ldr r3, [r3, #0]
  5608. 8002896: 430a orrs r2, r1
  5609. 8002898: 611a str r2, [r3, #16]
  5610. 800289a: e021 b.n 80028e0 <HAL_ADC_ConfigChannel+0x22c>
  5611. ADC_SMPR2(ADC_SMPR2_SMP10, sConfig->Channel),
  5612. ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel) );
  5613. }
  5614. /* For channels 20 to 26 for devices Cat.1, Cat.2, Cat.3 */
  5615. /* For channels 20 to 29 for devices Cat4, Cat.5 */
  5616. else if (sConfig->Channel <= ADC_SMPR1_CHANNEL_MAX)
  5617. 800289c: 683b ldr r3, [r7, #0]
  5618. 800289e: 681b ldr r3, [r3, #0]
  5619. 80028a0: 2b1a cmp r3, #26
  5620. 80028a2: d81c bhi.n 80028de <HAL_ADC_ConfigChannel+0x22a>
  5621. {
  5622. MODIFY_REG(hadc->Instance->SMPR1,
  5623. 80028a4: 687b ldr r3, [r7, #4]
  5624. 80028a6: 681b ldr r3, [r3, #0]
  5625. 80028a8: 68d9 ldr r1, [r3, #12]
  5626. 80028aa: 683b ldr r3, [r7, #0]
  5627. 80028ac: 681a ldr r2, [r3, #0]
  5628. 80028ae: 4613 mov r3, r2
  5629. 80028b0: 005b lsls r3, r3, #1
  5630. 80028b2: 4413 add r3, r2
  5631. 80028b4: 3b3c subs r3, #60 ; 0x3c
  5632. 80028b6: 2207 movs r2, #7
  5633. 80028b8: fa02 f303 lsl.w r3, r2, r3
  5634. 80028bc: 43db mvns r3, r3
  5635. 80028be: 4019 ands r1, r3
  5636. 80028c0: 683b ldr r3, [r7, #0]
  5637. 80028c2: 6898 ldr r0, [r3, #8]
  5638. 80028c4: 683b ldr r3, [r7, #0]
  5639. 80028c6: 681a ldr r2, [r3, #0]
  5640. 80028c8: 4613 mov r3, r2
  5641. 80028ca: 005b lsls r3, r3, #1
  5642. 80028cc: 4413 add r3, r2
  5643. 80028ce: 3b3c subs r3, #60 ; 0x3c
  5644. 80028d0: fa00 f203 lsl.w r2, r0, r3
  5645. 80028d4: 687b ldr r3, [r7, #4]
  5646. 80028d6: 681b ldr r3, [r3, #0]
  5647. 80028d8: 430a orrs r2, r1
  5648. 80028da: 60da str r2, [r3, #12]
  5649. 80028dc: e000 b.n 80028e0 <HAL_ADC_ConfigChannel+0x22c>
  5650. ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel) );
  5651. }
  5652. /* For channels 30 to 31 for devices Cat4, Cat.5 */
  5653. else
  5654. {
  5655. ADC_SMPR0_CHANNEL_SET(hadc, sConfig->SamplingTime, sConfig->Channel);
  5656. 80028de: bf00 nop
  5657. }
  5658. /* If ADC1 Channel_16 or Channel_17 is selected, enable Temperature sensor */
  5659. /* and VREFINT measurement path. */
  5660. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  5661. 80028e0: 683b ldr r3, [r7, #0]
  5662. 80028e2: 681b ldr r3, [r3, #0]
  5663. 80028e4: 2b10 cmp r3, #16
  5664. 80028e6: d003 beq.n 80028f0 <HAL_ADC_ConfigChannel+0x23c>
  5665. (sConfig->Channel == ADC_CHANNEL_VREFINT) )
  5666. 80028e8: 683b ldr r3, [r7, #0]
  5667. 80028ea: 681b ldr r3, [r3, #0]
  5668. if ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) ||
  5669. 80028ec: 2b11 cmp r3, #17
  5670. 80028ee: d121 bne.n 8002934 <HAL_ADC_ConfigChannel+0x280>
  5671. {
  5672. if (READ_BIT(ADC->CCR, ADC_CCR_TSVREFE) == RESET)
  5673. 80028f0: 4b15 ldr r3, [pc, #84] ; (8002948 <HAL_ADC_ConfigChannel+0x294>)
  5674. 80028f2: 685b ldr r3, [r3, #4]
  5675. 80028f4: f403 0300 and.w r3, r3, #8388608 ; 0x800000
  5676. 80028f8: 2b00 cmp r3, #0
  5677. 80028fa: d11b bne.n 8002934 <HAL_ADC_ConfigChannel+0x280>
  5678. {
  5679. SET_BIT(ADC->CCR, ADC_CCR_TSVREFE);
  5680. 80028fc: 4b12 ldr r3, [pc, #72] ; (8002948 <HAL_ADC_ConfigChannel+0x294>)
  5681. 80028fe: 685b ldr r3, [r3, #4]
  5682. 8002900: 4a11 ldr r2, [pc, #68] ; (8002948 <HAL_ADC_ConfigChannel+0x294>)
  5683. 8002902: f443 0300 orr.w r3, r3, #8388608 ; 0x800000
  5684. 8002906: 6053 str r3, [r2, #4]
  5685. if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR)
  5686. 8002908: 683b ldr r3, [r7, #0]
  5687. 800290a: 681b ldr r3, [r3, #0]
  5688. 800290c: 2b10 cmp r3, #16
  5689. 800290e: d111 bne.n 8002934 <HAL_ADC_ConfigChannel+0x280>
  5690. {
  5691. /* Delay for temperature sensor stabilization time */
  5692. /* Compute number of CPU cycles to wait for */
  5693. wait_loop_index = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000));
  5694. 8002910: 4b0e ldr r3, [pc, #56] ; (800294c <HAL_ADC_ConfigChannel+0x298>)
  5695. 8002912: 681b ldr r3, [r3, #0]
  5696. 8002914: 4a0e ldr r2, [pc, #56] ; (8002950 <HAL_ADC_ConfigChannel+0x29c>)
  5697. 8002916: fba2 2303 umull r2, r3, r2, r3
  5698. 800291a: 0c9a lsrs r2, r3, #18
  5699. 800291c: 4613 mov r3, r2
  5700. 800291e: 009b lsls r3, r3, #2
  5701. 8002920: 4413 add r3, r2
  5702. 8002922: 005b lsls r3, r3, #1
  5703. 8002924: 60bb str r3, [r7, #8]
  5704. while(wait_loop_index != 0)
  5705. 8002926: e002 b.n 800292e <HAL_ADC_ConfigChannel+0x27a>
  5706. {
  5707. wait_loop_index--;
  5708. 8002928: 68bb ldr r3, [r7, #8]
  5709. 800292a: 3b01 subs r3, #1
  5710. 800292c: 60bb str r3, [r7, #8]
  5711. while(wait_loop_index != 0)
  5712. 800292e: 68bb ldr r3, [r7, #8]
  5713. 8002930: 2b00 cmp r3, #0
  5714. 8002932: d1f9 bne.n 8002928 <HAL_ADC_ConfigChannel+0x274>
  5715. }
  5716. }
  5717. }
  5718. /* Process unlocked */
  5719. __HAL_UNLOCK(hadc);
  5720. 8002934: 687b ldr r3, [r7, #4]
  5721. 8002936: 2200 movs r2, #0
  5722. 8002938: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5723. /* Return function status */
  5724. return tmp_hal_status;
  5725. 800293c: 7bfb ldrb r3, [r7, #15]
  5726. }
  5727. 800293e: 4618 mov r0, r3
  5728. 8002940: 3714 adds r7, #20
  5729. 8002942: 46bd mov sp, r7
  5730. 8002944: bc80 pop {r7}
  5731. 8002946: 4770 bx lr
  5732. 8002948: 40012700 .word 0x40012700
  5733. 800294c: 20000000 .word 0x20000000
  5734. 8002950: 431bde83 .word 0x431bde83
  5735. 08002954 <ADC_Enable>:
  5736. * "if (hadc->Init.LowPowerAutoPowerOff != ENABLE)".
  5737. * @param hadc ADC handle
  5738. * @retval HAL status.
  5739. */
  5740. HAL_StatusTypeDef ADC_Enable(ADC_HandleTypeDef* hadc)
  5741. {
  5742. 8002954: b580 push {r7, lr}
  5743. 8002956: b084 sub sp, #16
  5744. 8002958: af00 add r7, sp, #0
  5745. 800295a: 6078 str r0, [r7, #4]
  5746. uint32_t tickstart = 0;
  5747. 800295c: 2300 movs r3, #0
  5748. 800295e: 60fb str r3, [r7, #12]
  5749. __IO uint32_t wait_loop_index = 0;
  5750. 8002960: 2300 movs r3, #0
  5751. 8002962: 60bb str r3, [r7, #8]
  5752. /* ADC enable and wait for ADC ready (in case of ADC is disabled or */
  5753. /* enabling phase not yet completed: flag ADC ready not yet set). */
  5754. /* Timeout implemented to not be stuck if ADC cannot be enabled (possible */
  5755. /* causes: ADC clock not running, ...). */
  5756. if (ADC_IS_ENABLE(hadc) == RESET)
  5757. 8002964: 687b ldr r3, [r7, #4]
  5758. 8002966: 681b ldr r3, [r3, #0]
  5759. 8002968: 681b ldr r3, [r3, #0]
  5760. 800296a: f003 0340 and.w r3, r3, #64 ; 0x40
  5761. 800296e: 2b40 cmp r3, #64 ; 0x40
  5762. 8002970: d043 beq.n 80029fa <ADC_Enable+0xa6>
  5763. {
  5764. /* Enable the Peripheral */
  5765. __HAL_ADC_ENABLE(hadc);
  5766. 8002972: 687b ldr r3, [r7, #4]
  5767. 8002974: 681b ldr r3, [r3, #0]
  5768. 8002976: 689a ldr r2, [r3, #8]
  5769. 8002978: 687b ldr r3, [r7, #4]
  5770. 800297a: 681b ldr r3, [r3, #0]
  5771. 800297c: f042 0201 orr.w r2, r2, #1
  5772. 8002980: 609a str r2, [r3, #8]
  5773. /* Delay for ADC stabilization time */
  5774. /* Compute number of CPU cycles to wait for */
  5775. wait_loop_index = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000));
  5776. 8002982: 4b20 ldr r3, [pc, #128] ; (8002a04 <ADC_Enable+0xb0>)
  5777. 8002984: 681b ldr r3, [r3, #0]
  5778. 8002986: 4a20 ldr r2, [pc, #128] ; (8002a08 <ADC_Enable+0xb4>)
  5779. 8002988: fba2 2303 umull r2, r3, r2, r3
  5780. 800298c: 0c9a lsrs r2, r3, #18
  5781. 800298e: 4613 mov r3, r2
  5782. 8002990: 005b lsls r3, r3, #1
  5783. 8002992: 4413 add r3, r2
  5784. 8002994: 60bb str r3, [r7, #8]
  5785. while(wait_loop_index != 0)
  5786. 8002996: e002 b.n 800299e <ADC_Enable+0x4a>
  5787. {
  5788. wait_loop_index--;
  5789. 8002998: 68bb ldr r3, [r7, #8]
  5790. 800299a: 3b01 subs r3, #1
  5791. 800299c: 60bb str r3, [r7, #8]
  5792. while(wait_loop_index != 0)
  5793. 800299e: 68bb ldr r3, [r7, #8]
  5794. 80029a0: 2b00 cmp r3, #0
  5795. 80029a2: d1f9 bne.n 8002998 <ADC_Enable+0x44>
  5796. }
  5797. /* Get tick count */
  5798. tickstart = HAL_GetTick();
  5799. 80029a4: f7ff fc1a bl 80021dc <HAL_GetTick>
  5800. 80029a8: 60f8 str r0, [r7, #12]
  5801. /* Wait for ADC effectively enabled */
  5802. while(ADC_IS_ENABLE(hadc) == RESET)
  5803. 80029aa: e01f b.n 80029ec <ADC_Enable+0x98>
  5804. {
  5805. if((HAL_GetTick() - tickstart ) > ADC_ENABLE_TIMEOUT)
  5806. 80029ac: f7ff fc16 bl 80021dc <HAL_GetTick>
  5807. 80029b0: 4602 mov r2, r0
  5808. 80029b2: 68fb ldr r3, [r7, #12]
  5809. 80029b4: 1ad3 subs r3, r2, r3
  5810. 80029b6: 2b02 cmp r3, #2
  5811. 80029b8: d918 bls.n 80029ec <ADC_Enable+0x98>
  5812. {
  5813. /* New check to avoid false timeout detection in case of preemption */
  5814. if(ADC_IS_ENABLE(hadc) == RESET)
  5815. 80029ba: 687b ldr r3, [r7, #4]
  5816. 80029bc: 681b ldr r3, [r3, #0]
  5817. 80029be: 681b ldr r3, [r3, #0]
  5818. 80029c0: f003 0340 and.w r3, r3, #64 ; 0x40
  5819. 80029c4: 2b40 cmp r3, #64 ; 0x40
  5820. 80029c6: d011 beq.n 80029ec <ADC_Enable+0x98>
  5821. {
  5822. /* Update ADC state machine to error */
  5823. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  5824. 80029c8: 687b ldr r3, [r7, #4]
  5825. 80029ca: 6cdb ldr r3, [r3, #76] ; 0x4c
  5826. 80029cc: f043 0210 orr.w r2, r3, #16
  5827. 80029d0: 687b ldr r3, [r7, #4]
  5828. 80029d2: 64da str r2, [r3, #76] ; 0x4c
  5829. /* Set ADC error code to ADC IP internal error */
  5830. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  5831. 80029d4: 687b ldr r3, [r7, #4]
  5832. 80029d6: 6d1b ldr r3, [r3, #80] ; 0x50
  5833. 80029d8: f043 0201 orr.w r2, r3, #1
  5834. 80029dc: 687b ldr r3, [r7, #4]
  5835. 80029de: 651a str r2, [r3, #80] ; 0x50
  5836. /* Process unlocked */
  5837. __HAL_UNLOCK(hadc);
  5838. 80029e0: 687b ldr r3, [r7, #4]
  5839. 80029e2: 2200 movs r2, #0
  5840. 80029e4: f883 2048 strb.w r2, [r3, #72] ; 0x48
  5841. return HAL_ERROR;
  5842. 80029e8: 2301 movs r3, #1
  5843. 80029ea: e007 b.n 80029fc <ADC_Enable+0xa8>
  5844. while(ADC_IS_ENABLE(hadc) == RESET)
  5845. 80029ec: 687b ldr r3, [r7, #4]
  5846. 80029ee: 681b ldr r3, [r3, #0]
  5847. 80029f0: 681b ldr r3, [r3, #0]
  5848. 80029f2: f003 0340 and.w r3, r3, #64 ; 0x40
  5849. 80029f6: 2b40 cmp r3, #64 ; 0x40
  5850. 80029f8: d1d8 bne.n 80029ac <ADC_Enable+0x58>
  5851. }
  5852. }
  5853. }
  5854. /* Return HAL status */
  5855. return HAL_OK;
  5856. 80029fa: 2300 movs r3, #0
  5857. }
  5858. 80029fc: 4618 mov r0, r3
  5859. 80029fe: 3710 adds r7, #16
  5860. 8002a00: 46bd mov sp, r7
  5861. 8002a02: bd80 pop {r7, pc}
  5862. 8002a04: 20000000 .word 0x20000000
  5863. 8002a08: 431bde83 .word 0x431bde83
  5864. 08002a0c <ADC_ConversionStop_Disable>:
  5865. * stopped to disable the ADC.
  5866. * @param hadc ADC handle
  5867. * @retval HAL status.
  5868. */
  5869. HAL_StatusTypeDef ADC_ConversionStop_Disable(ADC_HandleTypeDef* hadc)
  5870. {
  5871. 8002a0c: b580 push {r7, lr}
  5872. 8002a0e: b084 sub sp, #16
  5873. 8002a10: af00 add r7, sp, #0
  5874. 8002a12: 6078 str r0, [r7, #4]
  5875. uint32_t tickstart = 0;
  5876. 8002a14: 2300 movs r3, #0
  5877. 8002a16: 60fb str r3, [r7, #12]
  5878. /* Verification if ADC is not already disabled */
  5879. if (ADC_IS_ENABLE(hadc) != RESET)
  5880. 8002a18: 687b ldr r3, [r7, #4]
  5881. 8002a1a: 681b ldr r3, [r3, #0]
  5882. 8002a1c: 681b ldr r3, [r3, #0]
  5883. 8002a1e: f003 0340 and.w r3, r3, #64 ; 0x40
  5884. 8002a22: 2b40 cmp r3, #64 ; 0x40
  5885. 8002a24: d12e bne.n 8002a84 <ADC_ConversionStop_Disable+0x78>
  5886. {
  5887. /* Disable the ADC peripheral */
  5888. __HAL_ADC_DISABLE(hadc);
  5889. 8002a26: 687b ldr r3, [r7, #4]
  5890. 8002a28: 681b ldr r3, [r3, #0]
  5891. 8002a2a: 689a ldr r2, [r3, #8]
  5892. 8002a2c: 687b ldr r3, [r7, #4]
  5893. 8002a2e: 681b ldr r3, [r3, #0]
  5894. 8002a30: f022 0201 bic.w r2, r2, #1
  5895. 8002a34: 609a str r2, [r3, #8]
  5896. /* Get tick count */
  5897. tickstart = HAL_GetTick();
  5898. 8002a36: f7ff fbd1 bl 80021dc <HAL_GetTick>
  5899. 8002a3a: 60f8 str r0, [r7, #12]
  5900. /* Wait for ADC effectively disabled */
  5901. while(ADC_IS_ENABLE(hadc) != RESET)
  5902. 8002a3c: e01b b.n 8002a76 <ADC_ConversionStop_Disable+0x6a>
  5903. {
  5904. if((HAL_GetTick() - tickstart ) > ADC_DISABLE_TIMEOUT)
  5905. 8002a3e: f7ff fbcd bl 80021dc <HAL_GetTick>
  5906. 8002a42: 4602 mov r2, r0
  5907. 8002a44: 68fb ldr r3, [r7, #12]
  5908. 8002a46: 1ad3 subs r3, r2, r3
  5909. 8002a48: 2b02 cmp r3, #2
  5910. 8002a4a: d914 bls.n 8002a76 <ADC_ConversionStop_Disable+0x6a>
  5911. {
  5912. /* New check to avoid false timeout detection in case of preemption */
  5913. if(ADC_IS_ENABLE(hadc) != RESET)
  5914. 8002a4c: 687b ldr r3, [r7, #4]
  5915. 8002a4e: 681b ldr r3, [r3, #0]
  5916. 8002a50: 681b ldr r3, [r3, #0]
  5917. 8002a52: f003 0340 and.w r3, r3, #64 ; 0x40
  5918. 8002a56: 2b40 cmp r3, #64 ; 0x40
  5919. 8002a58: d10d bne.n 8002a76 <ADC_ConversionStop_Disable+0x6a>
  5920. {
  5921. /* Update ADC state machine to error */
  5922. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL);
  5923. 8002a5a: 687b ldr r3, [r7, #4]
  5924. 8002a5c: 6cdb ldr r3, [r3, #76] ; 0x4c
  5925. 8002a5e: f043 0210 orr.w r2, r3, #16
  5926. 8002a62: 687b ldr r3, [r7, #4]
  5927. 8002a64: 64da str r2, [r3, #76] ; 0x4c
  5928. /* Set ADC error code to ADC IP internal error */
  5929. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_INTERNAL);
  5930. 8002a66: 687b ldr r3, [r7, #4]
  5931. 8002a68: 6d1b ldr r3, [r3, #80] ; 0x50
  5932. 8002a6a: f043 0201 orr.w r2, r3, #1
  5933. 8002a6e: 687b ldr r3, [r7, #4]
  5934. 8002a70: 651a str r2, [r3, #80] ; 0x50
  5935. return HAL_ERROR;
  5936. 8002a72: 2301 movs r3, #1
  5937. 8002a74: e007 b.n 8002a86 <ADC_ConversionStop_Disable+0x7a>
  5938. while(ADC_IS_ENABLE(hadc) != RESET)
  5939. 8002a76: 687b ldr r3, [r7, #4]
  5940. 8002a78: 681b ldr r3, [r3, #0]
  5941. 8002a7a: 681b ldr r3, [r3, #0]
  5942. 8002a7c: f003 0340 and.w r3, r3, #64 ; 0x40
  5943. 8002a80: 2b40 cmp r3, #64 ; 0x40
  5944. 8002a82: d0dc beq.n 8002a3e <ADC_ConversionStop_Disable+0x32>
  5945. }
  5946. }
  5947. }
  5948. /* Return HAL status */
  5949. return HAL_OK;
  5950. 8002a84: 2300 movs r3, #0
  5951. }
  5952. 8002a86: 4618 mov r0, r3
  5953. 8002a88: 3710 adds r7, #16
  5954. 8002a8a: 46bd mov sp, r7
  5955. 8002a8c: bd80 pop {r7, pc}
  5956. 08002a8e <ADC_DMAConvCplt>:
  5957. * @brief DMA transfer complete callback.
  5958. * @param hdma pointer to DMA handle.
  5959. * @retval None
  5960. */
  5961. static void ADC_DMAConvCplt(DMA_HandleTypeDef *hdma)
  5962. {
  5963. 8002a8e: b580 push {r7, lr}
  5964. 8002a90: b084 sub sp, #16
  5965. 8002a92: af00 add r7, sp, #0
  5966. 8002a94: 6078 str r0, [r7, #4]
  5967. /* Retrieve ADC handle corresponding to current DMA handle */
  5968. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  5969. 8002a96: 687b ldr r3, [r7, #4]
  5970. 8002a98: 6a5b ldr r3, [r3, #36] ; 0x24
  5971. 8002a9a: 60fb str r3, [r7, #12]
  5972. /* Update state machine on conversion status if not in error state */
  5973. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL | HAL_ADC_STATE_ERROR_DMA))
  5974. 8002a9c: 68fb ldr r3, [r7, #12]
  5975. 8002a9e: 6cdb ldr r3, [r3, #76] ; 0x4c
  5976. 8002aa0: f003 0350 and.w r3, r3, #80 ; 0x50
  5977. 8002aa4: 2b00 cmp r3, #0
  5978. 8002aa6: d13d bne.n 8002b24 <ADC_DMAConvCplt+0x96>
  5979. {
  5980. /* Update ADC state machine */
  5981. SET_BIT(hadc->State, HAL_ADC_STATE_REG_EOC);
  5982. 8002aa8: 68fb ldr r3, [r7, #12]
  5983. 8002aaa: 6cdb ldr r3, [r3, #76] ; 0x4c
  5984. 8002aac: f443 7200 orr.w r2, r3, #512 ; 0x200
  5985. 8002ab0: 68fb ldr r3, [r7, #12]
  5986. 8002ab2: 64da str r2, [r3, #76] ; 0x4c
  5987. /* by external trigger, continuous mode or scan sequence on going. */
  5988. /* Note: On STM32L1, there is no independent flag of end of sequence. */
  5989. /* The test of scan sequence on going is done either with scan */
  5990. /* sequence disabled or with end of conversion flag set to */
  5991. /* of end of sequence. */
  5992. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  5993. 8002ab4: 68fb ldr r3, [r7, #12]
  5994. 8002ab6: 681b ldr r3, [r3, #0]
  5995. 8002ab8: 689b ldr r3, [r3, #8]
  5996. 8002aba: f003 5340 and.w r3, r3, #805306368 ; 0x30000000
  5997. 8002abe: 2b00 cmp r3, #0
  5998. 8002ac0: d12c bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
  5999. (hadc->Init.ContinuousConvMode == DISABLE) &&
  6000. 8002ac2: 68fb ldr r3, [r7, #12]
  6001. 8002ac4: f893 3024 ldrb.w r3, [r3, #36] ; 0x24
  6002. if(ADC_IS_SOFTWARE_START_REGULAR(hadc) &&
  6003. 8002ac8: 2b00 cmp r3, #0
  6004. 8002aca: d127 bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
  6005. (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) ||
  6006. 8002acc: 68fb ldr r3, [r7, #12]
  6007. 8002ace: 681b ldr r3, [r3, #0]
  6008. 8002ad0: 6b1b ldr r3, [r3, #48] ; 0x30
  6009. 8002ad2: f003 73f8 and.w r3, r3, #32505856 ; 0x1f00000
  6010. (hadc->Init.ContinuousConvMode == DISABLE) &&
  6011. 8002ad6: 2b00 cmp r3, #0
  6012. 8002ad8: d006 beq.n 8002ae8 <ADC_DMAConvCplt+0x5a>
  6013. HAL_IS_BIT_CLR(hadc->Instance->CR2, ADC_CR2_EOCS) ) )
  6014. 8002ada: 68fb ldr r3, [r7, #12]
  6015. 8002adc: 681b ldr r3, [r3, #0]
  6016. 8002ade: 689b ldr r3, [r3, #8]
  6017. 8002ae0: f403 6380 and.w r3, r3, #1024 ; 0x400
  6018. (HAL_IS_BIT_CLR(hadc->Instance->SQR1, ADC_SQR1_L) ||
  6019. 8002ae4: 2b00 cmp r3, #0
  6020. 8002ae6: d119 bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
  6021. {
  6022. /* Disable ADC end of single conversion interrupt on group regular */
  6023. /* Note: Overrun interrupt was enabled with EOC interrupt in */
  6024. /* HAL_ADC_Start_IT(), but is not disabled here because can be used */
  6025. /* by overrun IRQ process below. */
  6026. __HAL_ADC_DISABLE_IT(hadc, ADC_IT_EOC);
  6027. 8002ae8: 68fb ldr r3, [r7, #12]
  6028. 8002aea: 681b ldr r3, [r3, #0]
  6029. 8002aec: 685a ldr r2, [r3, #4]
  6030. 8002aee: 68fb ldr r3, [r7, #12]
  6031. 8002af0: 681b ldr r3, [r3, #0]
  6032. 8002af2: f022 0220 bic.w r2, r2, #32
  6033. 8002af6: 605a str r2, [r3, #4]
  6034. /* Set ADC state */
  6035. CLEAR_BIT(hadc->State, HAL_ADC_STATE_REG_BUSY);
  6036. 8002af8: 68fb ldr r3, [r7, #12]
  6037. 8002afa: 6cdb ldr r3, [r3, #76] ; 0x4c
  6038. 8002afc: f423 7280 bic.w r2, r3, #256 ; 0x100
  6039. 8002b00: 68fb ldr r3, [r7, #12]
  6040. 8002b02: 64da str r2, [r3, #76] ; 0x4c
  6041. if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_INJ_BUSY))
  6042. 8002b04: 68fb ldr r3, [r7, #12]
  6043. 8002b06: 6cdb ldr r3, [r3, #76] ; 0x4c
  6044. 8002b08: f403 5380 and.w r3, r3, #4096 ; 0x1000
  6045. 8002b0c: 2b00 cmp r3, #0
  6046. 8002b0e: d105 bne.n 8002b1c <ADC_DMAConvCplt+0x8e>
  6047. {
  6048. SET_BIT(hadc->State, HAL_ADC_STATE_READY);
  6049. 8002b10: 68fb ldr r3, [r7, #12]
  6050. 8002b12: 6cdb ldr r3, [r3, #76] ; 0x4c
  6051. 8002b14: f043 0201 orr.w r2, r3, #1
  6052. 8002b18: 68fb ldr r3, [r7, #12]
  6053. 8002b1a: 64da str r2, [r3, #76] ; 0x4c
  6054. /* Conversion complete callback */
  6055. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  6056. hadc->ConvCpltCallback(hadc);
  6057. #else
  6058. HAL_ADC_ConvCpltCallback(hadc);
  6059. 8002b1c: 68f8 ldr r0, [r7, #12]
  6060. 8002b1e: f7ff fdae bl 800267e <HAL_ADC_ConvCpltCallback>
  6061. else
  6062. {
  6063. /* Call DMA error callback */
  6064. hadc->DMA_Handle->XferErrorCallback(hdma);
  6065. }
  6066. }
  6067. 8002b22: e004 b.n 8002b2e <ADC_DMAConvCplt+0xa0>
  6068. hadc->DMA_Handle->XferErrorCallback(hdma);
  6069. 8002b24: 68fb ldr r3, [r7, #12]
  6070. 8002b26: 6c5b ldr r3, [r3, #68] ; 0x44
  6071. 8002b28: 6b1b ldr r3, [r3, #48] ; 0x30
  6072. 8002b2a: 6878 ldr r0, [r7, #4]
  6073. 8002b2c: 4798 blx r3
  6074. }
  6075. 8002b2e: bf00 nop
  6076. 8002b30: 3710 adds r7, #16
  6077. 8002b32: 46bd mov sp, r7
  6078. 8002b34: bd80 pop {r7, pc}
  6079. 08002b36 <ADC_DMAHalfConvCplt>:
  6080. * @brief DMA half transfer complete callback.
  6081. * @param hdma pointer to DMA handle.
  6082. * @retval None
  6083. */
  6084. static void ADC_DMAHalfConvCplt(DMA_HandleTypeDef *hdma)
  6085. {
  6086. 8002b36: b580 push {r7, lr}
  6087. 8002b38: b084 sub sp, #16
  6088. 8002b3a: af00 add r7, sp, #0
  6089. 8002b3c: 6078 str r0, [r7, #4]
  6090. /* Retrieve ADC handle corresponding to current DMA handle */
  6091. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  6092. 8002b3e: 687b ldr r3, [r7, #4]
  6093. 8002b40: 6a5b ldr r3, [r3, #36] ; 0x24
  6094. 8002b42: 60fb str r3, [r7, #12]
  6095. /* Half conversion callback */
  6096. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  6097. hadc->ConvHalfCpltCallback(hadc);
  6098. #else
  6099. HAL_ADC_ConvHalfCpltCallback(hadc);
  6100. 8002b44: 68f8 ldr r0, [r7, #12]
  6101. 8002b46: f7ff fda3 bl 8002690 <HAL_ADC_ConvHalfCpltCallback>
  6102. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  6103. }
  6104. 8002b4a: bf00 nop
  6105. 8002b4c: 3710 adds r7, #16
  6106. 8002b4e: 46bd mov sp, r7
  6107. 8002b50: bd80 pop {r7, pc}
  6108. 08002b52 <ADC_DMAError>:
  6109. * @brief DMA error callback
  6110. * @param hdma pointer to DMA handle.
  6111. * @retval None
  6112. */
  6113. static void ADC_DMAError(DMA_HandleTypeDef *hdma)
  6114. {
  6115. 8002b52: b580 push {r7, lr}
  6116. 8002b54: b084 sub sp, #16
  6117. 8002b56: af00 add r7, sp, #0
  6118. 8002b58: 6078 str r0, [r7, #4]
  6119. /* Retrieve ADC handle corresponding to current DMA handle */
  6120. ADC_HandleTypeDef* hadc = ( ADC_HandleTypeDef* )((DMA_HandleTypeDef* )hdma)->Parent;
  6121. 8002b5a: 687b ldr r3, [r7, #4]
  6122. 8002b5c: 6a5b ldr r3, [r3, #36] ; 0x24
  6123. 8002b5e: 60fb str r3, [r7, #12]
  6124. /* Set ADC state */
  6125. SET_BIT(hadc->State, HAL_ADC_STATE_ERROR_DMA);
  6126. 8002b60: 68fb ldr r3, [r7, #12]
  6127. 8002b62: 6cdb ldr r3, [r3, #76] ; 0x4c
  6128. 8002b64: f043 0240 orr.w r2, r3, #64 ; 0x40
  6129. 8002b68: 68fb ldr r3, [r7, #12]
  6130. 8002b6a: 64da str r2, [r3, #76] ; 0x4c
  6131. /* Set ADC error code to DMA error */
  6132. SET_BIT(hadc->ErrorCode, HAL_ADC_ERROR_DMA);
  6133. 8002b6c: 68fb ldr r3, [r7, #12]
  6134. 8002b6e: 6d1b ldr r3, [r3, #80] ; 0x50
  6135. 8002b70: f043 0204 orr.w r2, r3, #4
  6136. 8002b74: 68fb ldr r3, [r7, #12]
  6137. 8002b76: 651a str r2, [r3, #80] ; 0x50
  6138. /* Error callback */
  6139. #if (USE_HAL_ADC_REGISTER_CALLBACKS == 1)
  6140. hadc->ErrorCallback(hadc);
  6141. #else
  6142. HAL_ADC_ErrorCallback(hadc);
  6143. 8002b78: 68f8 ldr r0, [r7, #12]
  6144. 8002b7a: f7ff fd92 bl 80026a2 <HAL_ADC_ErrorCallback>
  6145. #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */
  6146. }
  6147. 8002b7e: bf00 nop
  6148. 8002b80: 3710 adds r7, #16
  6149. 8002b82: 46bd mov sp, r7
  6150. 8002b84: bd80 pop {r7, pc}
  6151. ...
  6152. 08002b88 <HAL_COMP_Init>:
  6153. * To unlock the configuration, perform a system reset.
  6154. * @param hcomp COMP handle
  6155. * @retval HAL status
  6156. */
  6157. HAL_StatusTypeDef HAL_COMP_Init(COMP_HandleTypeDef *hcomp)
  6158. {
  6159. 8002b88: b580 push {r7, lr}
  6160. 8002b8a: b084 sub sp, #16
  6161. 8002b8c: af00 add r7, sp, #0
  6162. 8002b8e: 6078 str r0, [r7, #4]
  6163. HAL_StatusTypeDef status = HAL_OK;
  6164. 8002b90: 2300 movs r3, #0
  6165. 8002b92: 73fb strb r3, [r7, #15]
  6166. /* Check the COMP handle allocation and lock status */
  6167. if((hcomp == NULL) || ((hcomp->State & COMP_STATE_BIT_LOCK) != RESET))
  6168. 8002b94: 687b ldr r3, [r7, #4]
  6169. 8002b96: 2b00 cmp r3, #0
  6170. 8002b98: d007 beq.n 8002baa <HAL_COMP_Init+0x22>
  6171. 8002b9a: 687b ldr r3, [r7, #4]
  6172. 8002b9c: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6173. 8002ba0: b2db uxtb r3, r3
  6174. 8002ba2: f003 0310 and.w r3, r3, #16
  6175. 8002ba6: 2b00 cmp r3, #0
  6176. 8002ba8: d002 beq.n 8002bb0 <HAL_COMP_Init+0x28>
  6177. {
  6178. status = HAL_ERROR;
  6179. 8002baa: 2301 movs r3, #1
  6180. 8002bac: 73fb strb r3, [r7, #15]
  6181. 8002bae: e09e b.n 8002cee <HAL_COMP_Init+0x166>
  6182. }
  6183. /* In window mode, non-inverting inputs of the 2 comparators are */
  6184. /* connected together and are using inputs of COMP2 only. If COMP1 is */
  6185. /* selected, this parameter is discarded. */
  6186. if ((hcomp->Init.WindowMode == COMP_WINDOWMODE_DISABLE) ||
  6187. 8002bb0: 687b ldr r3, [r7, #4]
  6188. 8002bb2: 695b ldr r3, [r3, #20]
  6189. 8002bb4: 2b00 cmp r3, #0
  6190. assert_param(IS_COMP_NONINVERTINGINPUT(hcomp->Init.NonInvertingInput));
  6191. }
  6192. /* Enable SYSCFG clock and the low level hardware to access comparators */
  6193. if(hcomp->State == HAL_COMP_STATE_RESET)
  6194. 8002bb6: 687b ldr r3, [r7, #4]
  6195. 8002bb8: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6196. 8002bbc: b2db uxtb r3, r3
  6197. 8002bbe: 2b00 cmp r3, #0
  6198. 8002bc0: d112 bne.n 8002be8 <HAL_COMP_Init+0x60>
  6199. {
  6200. /* Allocate lock resource and initialize it */
  6201. hcomp->Lock = HAL_UNLOCKED;
  6202. 8002bc2: 687b ldr r3, [r7, #4]
  6203. 8002bc4: 2200 movs r2, #0
  6204. 8002bc6: f883 2020 strb.w r2, [r3, #32]
  6205. /* Enable SYSCFG clock to control the routing Interface (RI) */
  6206. __HAL_RCC_SYSCFG_CLK_ENABLE();
  6207. 8002bca: 4b4b ldr r3, [pc, #300] ; (8002cf8 <HAL_COMP_Init+0x170>)
  6208. 8002bcc: 6a1b ldr r3, [r3, #32]
  6209. 8002bce: 4a4a ldr r2, [pc, #296] ; (8002cf8 <HAL_COMP_Init+0x170>)
  6210. 8002bd0: f043 0301 orr.w r3, r3, #1
  6211. 8002bd4: 6213 str r3, [r2, #32]
  6212. 8002bd6: 4b48 ldr r3, [pc, #288] ; (8002cf8 <HAL_COMP_Init+0x170>)
  6213. 8002bd8: 6a1b ldr r3, [r3, #32]
  6214. 8002bda: f003 0301 and.w r3, r3, #1
  6215. 8002bde: 60bb str r3, [r7, #8]
  6216. 8002be0: 68bb ldr r3, [r7, #8]
  6217. /* Init the low level hardware */
  6218. hcomp->MspInitCallback(hcomp);
  6219. #else
  6220. /* Init the low level hardware */
  6221. HAL_COMP_MspInit(hcomp);
  6222. 8002be2: 6878 ldr r0, [r7, #4]
  6223. 8002be4: f7fe ffaa bl 8001b3c <HAL_COMP_MspInit>
  6224. /* - Window mode */
  6225. /* - Mode fast/slow speed */
  6226. /* - Inverting input pull-up/down resistors */
  6227. /* Configuration depending on comparator instance */
  6228. if (hcomp->Instance == COMP1)
  6229. 8002be8: 687b ldr r3, [r7, #4]
  6230. 8002bea: 681b ldr r3, [r3, #0]
  6231. 8002bec: 4a43 ldr r2, [pc, #268] ; (8002cfc <HAL_COMP_Init+0x174>)
  6232. 8002bee: 4293 cmp r3, r2
  6233. 8002bf0: d109 bne.n 8002c06 <HAL_COMP_Init+0x7e>
  6234. {
  6235. MODIFY_REG(COMP->CSR, COMP_CSR_400KPD | COMP_CSR_10KPD | COMP_CSR_400KPU | COMP_CSR_10KPU,
  6236. 8002bf2: 4b42 ldr r3, [pc, #264] ; (8002cfc <HAL_COMP_Init+0x174>)
  6237. 8002bf4: 681b ldr r3, [r3, #0]
  6238. 8002bf6: f023 020f bic.w r2, r3, #15
  6239. 8002bfa: 687b ldr r3, [r7, #4]
  6240. 8002bfc: 69db ldr r3, [r3, #28]
  6241. 8002bfe: 493f ldr r1, [pc, #252] ; (8002cfc <HAL_COMP_Init+0x174>)
  6242. 8002c00: 4313 orrs r3, r2
  6243. 8002c02: 600b str r3, [r1, #0]
  6244. 8002c04: e03f b.n 8002c86 <HAL_COMP_Init+0xfe>
  6245. /* "hcomp->Init.InvertingInput") is configured into function */
  6246. /* "HAL_COMP_Start()" since inverting input selection also */
  6247. /* enables the comparator 2. */
  6248. /* If comparator 2 is already enabled, inverting input is */
  6249. /* reconfigured on the fly. */
  6250. if (__COMP_IS_ENABLED(hcomp) == RESET)
  6251. 8002c06: 687b ldr r3, [r7, #4]
  6252. 8002c08: 681b ldr r3, [r3, #0]
  6253. 8002c0a: 4a3c ldr r2, [pc, #240] ; (8002cfc <HAL_COMP_Init+0x174>)
  6254. 8002c0c: 4293 cmp r3, r2
  6255. 8002c0e: d109 bne.n 8002c24 <HAL_COMP_Init+0x9c>
  6256. 8002c10: 4b3a ldr r3, [pc, #232] ; (8002cfc <HAL_COMP_Init+0x174>)
  6257. 8002c12: 681b ldr r3, [r3, #0]
  6258. 8002c14: f003 0310 and.w r3, r3, #16
  6259. 8002c18: 2b10 cmp r3, #16
  6260. 8002c1a: bf14 ite ne
  6261. 8002c1c: 2301 movne r3, #1
  6262. 8002c1e: 2300 moveq r3, #0
  6263. 8002c20: b2db uxtb r3, r3
  6264. 8002c22: e008 b.n 8002c36 <HAL_COMP_Init+0xae>
  6265. 8002c24: 4b35 ldr r3, [pc, #212] ; (8002cfc <HAL_COMP_Init+0x174>)
  6266. 8002c26: 681b ldr r3, [r3, #0]
  6267. 8002c28: f403 13e0 and.w r3, r3, #1835008 ; 0x1c0000
  6268. 8002c2c: 2b00 cmp r3, #0
  6269. 8002c2e: bf0c ite eq
  6270. 8002c30: 2301 moveq r3, #1
  6271. 8002c32: 2300 movne r3, #0
  6272. 8002c34: b2db uxtb r3, r3
  6273. 8002c36: 2b00 cmp r3, #0
  6274. 8002c38: d011 beq.n 8002c5e <HAL_COMP_Init+0xd6>
  6275. {
  6276. MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL |
  6277. 8002c3a: 4b30 ldr r3, [pc, #192] ; (8002cfc <HAL_COMP_Init+0x174>)
  6278. 8002c3c: 681b ldr r3, [r3, #0]
  6279. 8002c3e: f423 0362 bic.w r3, r3, #14811136 ; 0xe20000
  6280. 8002c42: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  6281. 8002c46: 687a ldr r2, [r7, #4]
  6282. 8002c48: 68d1 ldr r1, [r2, #12]
  6283. 8002c4a: 687a ldr r2, [r7, #4]
  6284. 8002c4c: 6952 ldr r2, [r2, #20]
  6285. 8002c4e: 4311 orrs r1, r2
  6286. 8002c50: 687a ldr r2, [r7, #4]
  6287. 8002c52: 6912 ldr r2, [r2, #16]
  6288. 8002c54: 430a orrs r2, r1
  6289. 8002c56: 4929 ldr r1, [pc, #164] ; (8002cfc <HAL_COMP_Init+0x174>)
  6290. 8002c58: 4313 orrs r3, r2
  6291. 8002c5a: 600b str r3, [r1, #0]
  6292. 8002c5c: e013 b.n 8002c86 <HAL_COMP_Init+0xfe>
  6293. hcomp->Init.WindowMode |
  6294. hcomp->Init.Mode );
  6295. }
  6296. else
  6297. {
  6298. MODIFY_REG(COMP->CSR, COMP_CSR_OUTSEL |
  6299. 8002c5e: 4b27 ldr r3, [pc, #156] ; (8002cfc <HAL_COMP_Init+0x174>)
  6300. 8002c60: 681b ldr r3, [r3, #0]
  6301. 8002c62: f423 037e bic.w r3, r3, #16646144 ; 0xfe0000
  6302. 8002c66: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  6303. 8002c6a: 687a ldr r2, [r7, #4]
  6304. 8002c6c: 68d1 ldr r1, [r2, #12]
  6305. 8002c6e: 687a ldr r2, [r7, #4]
  6306. 8002c70: 6852 ldr r2, [r2, #4]
  6307. 8002c72: 4311 orrs r1, r2
  6308. 8002c74: 687a ldr r2, [r7, #4]
  6309. 8002c76: 6952 ldr r2, [r2, #20]
  6310. 8002c78: 4311 orrs r1, r2
  6311. 8002c7a: 687a ldr r2, [r7, #4]
  6312. 8002c7c: 6912 ldr r2, [r2, #16]
  6313. 8002c7e: 430a orrs r2, r1
  6314. 8002c80: 491e ldr r1, [pc, #120] ; (8002cfc <HAL_COMP_Init+0x174>)
  6315. 8002c82: 4313 orrs r3, r2
  6316. 8002c84: 600b str r3, [r1, #0]
  6317. }
  6318. }
  6319. else
  6320. #endif
  6321. {
  6322. if (__COMP_ROUTING_INTERFACE_TOBECONFIGURED(hcomp))
  6323. 8002c86: 687b ldr r3, [r7, #4]
  6324. 8002c88: 689b ldr r3, [r3, #8]
  6325. 8002c8a: 2b00 cmp r3, #0
  6326. 8002c8c: d025 beq.n 8002cda <HAL_COMP_Init+0x152>
  6327. {
  6328. if (hcomp->Instance == COMP1)
  6329. 8002c8e: 687b ldr r3, [r7, #4]
  6330. 8002c90: 681b ldr r3, [r3, #0]
  6331. 8002c92: 4a1a ldr r2, [pc, #104] ; (8002cfc <HAL_COMP_Init+0x174>)
  6332. 8002c94: 4293 cmp r3, r2
  6333. 8002c96: d10b bne.n 8002cb0 <HAL_COMP_Init+0x128>
  6334. {
  6335. /* Enable the switch control mode */
  6336. __HAL_RI_SWITCHCONTROLMODE_ENABLE();
  6337. 8002c98: 4b19 ldr r3, [pc, #100] ; (8002d00 <HAL_COMP_Init+0x178>)
  6338. 8002c9a: 685b ldr r3, [r3, #4]
  6339. 8002c9c: 4a18 ldr r2, [pc, #96] ; (8002d00 <HAL_COMP_Init+0x178>)
  6340. 8002c9e: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000
  6341. 8002ca2: 6053 str r3, [r2, #4]
  6342. /* Close the analog switch of ADC switch matrix to COMP1 (ADC */
  6343. /* channel 26: Vcomp) */
  6344. __HAL_RI_IOSWITCH_CLOSE(RI_IOSWITCH_VCOMP);
  6345. 8002ca4: 4b16 ldr r3, [pc, #88] ; (8002d00 <HAL_COMP_Init+0x178>)
  6346. 8002ca6: 685b ldr r3, [r3, #4]
  6347. 8002ca8: 4a15 ldr r2, [pc, #84] ; (8002d00 <HAL_COMP_Init+0x178>)
  6348. 8002caa: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000
  6349. 8002cae: 6053 str r3, [r2, #4]
  6350. }
  6351. /* Close the I/O analog switch corresponding to comparator */
  6352. /* non-inverting input selected. */
  6353. __HAL_RI_IOSWITCH_CLOSE(hcomp->Init.NonInvertingInput);
  6354. 8002cb0: 687b ldr r3, [r7, #4]
  6355. 8002cb2: 689b ldr r3, [r3, #8]
  6356. 8002cb4: 2b00 cmp r3, #0
  6357. 8002cb6: da09 bge.n 8002ccc <HAL_COMP_Init+0x144>
  6358. 8002cb8: 4b11 ldr r3, [pc, #68] ; (8002d00 <HAL_COMP_Init+0x178>)
  6359. 8002cba: 685a ldr r2, [r3, #4]
  6360. 8002cbc: 687b ldr r3, [r7, #4]
  6361. 8002cbe: 689b ldr r3, [r3, #8]
  6362. 8002cc0: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  6363. 8002cc4: 490e ldr r1, [pc, #56] ; (8002d00 <HAL_COMP_Init+0x178>)
  6364. 8002cc6: 4313 orrs r3, r2
  6365. 8002cc8: 604b str r3, [r1, #4]
  6366. 8002cca: e006 b.n 8002cda <HAL_COMP_Init+0x152>
  6367. 8002ccc: 4b0c ldr r3, [pc, #48] ; (8002d00 <HAL_COMP_Init+0x178>)
  6368. 8002cce: 689a ldr r2, [r3, #8]
  6369. 8002cd0: 687b ldr r3, [r7, #4]
  6370. 8002cd2: 689b ldr r3, [r3, #8]
  6371. 8002cd4: 490a ldr r1, [pc, #40] ; (8002d00 <HAL_COMP_Init+0x178>)
  6372. 8002cd6: 4313 orrs r3, r2
  6373. 8002cd8: 608b str r3, [r1, #8]
  6374. }
  6375. }
  6376. /* Initialize the COMP state*/
  6377. if(hcomp->State == HAL_COMP_STATE_RESET)
  6378. 8002cda: 687b ldr r3, [r7, #4]
  6379. 8002cdc: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6380. 8002ce0: b2db uxtb r3, r3
  6381. 8002ce2: 2b00 cmp r3, #0
  6382. 8002ce4: d103 bne.n 8002cee <HAL_COMP_Init+0x166>
  6383. {
  6384. hcomp->State = HAL_COMP_STATE_READY;
  6385. 8002ce6: 687b ldr r3, [r7, #4]
  6386. 8002ce8: 2201 movs r2, #1
  6387. 8002cea: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6388. }
  6389. }
  6390. return status;
  6391. 8002cee: 7bfb ldrb r3, [r7, #15]
  6392. }
  6393. 8002cf0: 4618 mov r0, r3
  6394. 8002cf2: 3710 adds r7, #16
  6395. 8002cf4: 46bd mov sp, r7
  6396. 8002cf6: bd80 pop {r7, pc}
  6397. 8002cf8: 40023800 .word 0x40023800
  6398. 8002cfc: 40007c00 .word 0x40007c00
  6399. 8002d00: 40007c04 .word 0x40007c04
  6400. 08002d04 <HAL_COMP_Start>:
  6401. * @brief Start the comparator
  6402. * @param hcomp COMP handle
  6403. * @retval HAL status
  6404. */
  6405. HAL_StatusTypeDef HAL_COMP_Start(COMP_HandleTypeDef *hcomp)
  6406. {
  6407. 8002d04: b480 push {r7}
  6408. 8002d06: b087 sub sp, #28
  6409. 8002d08: af00 add r7, sp, #0
  6410. 8002d0a: 6078 str r0, [r7, #4]
  6411. HAL_StatusTypeDef status = HAL_OK;
  6412. 8002d0c: 2300 movs r3, #0
  6413. 8002d0e: 75fb strb r3, [r7, #23]
  6414. uint32_t wait_loop_cycles = 0;
  6415. 8002d10: 2300 movs r3, #0
  6416. 8002d12: 613b str r3, [r7, #16]
  6417. __IO uint32_t wait_loop_index = 0;
  6418. 8002d14: 2300 movs r3, #0
  6419. 8002d16: 60fb str r3, [r7, #12]
  6420. /* Check the COMP handle allocation and lock status */
  6421. if((hcomp == NULL) || ((hcomp->State & COMP_STATE_BIT_LOCK) != RESET))
  6422. 8002d18: 687b ldr r3, [r7, #4]
  6423. 8002d1a: 2b00 cmp r3, #0
  6424. 8002d1c: d007 beq.n 8002d2e <HAL_COMP_Start+0x2a>
  6425. 8002d1e: 687b ldr r3, [r7, #4]
  6426. 8002d20: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6427. 8002d24: b2db uxtb r3, r3
  6428. 8002d26: f003 0310 and.w r3, r3, #16
  6429. 8002d2a: 2b00 cmp r3, #0
  6430. 8002d2c: d002 beq.n 8002d34 <HAL_COMP_Start+0x30>
  6431. {
  6432. status = HAL_ERROR;
  6433. 8002d2e: 2301 movs r3, #1
  6434. 8002d30: 75fb strb r3, [r7, #23]
  6435. 8002d32: e034 b.n 8002d9e <HAL_COMP_Start+0x9a>
  6436. else
  6437. {
  6438. /* Check the parameter */
  6439. assert_param(IS_COMP_ALL_INSTANCE(hcomp->Instance));
  6440. if(hcomp->State == HAL_COMP_STATE_READY)
  6441. 8002d34: 687b ldr r3, [r7, #4]
  6442. 8002d36: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  6443. 8002d3a: b2db uxtb r3, r3
  6444. 8002d3c: 2b01 cmp r3, #1
  6445. 8002d3e: d12c bne.n 8002d9a <HAL_COMP_Start+0x96>
  6446. /* Note: For comparator 2, inverting input (parameter */
  6447. /* "hcomp->Init.InvertingInput") is configured into this */
  6448. /* function instead of function "HAL_COMP_Init()" since */
  6449. /* inverting input selection also enables the comparator 2. */
  6450. __HAL_COMP_ENABLE(hcomp);
  6451. 8002d40: 687b ldr r3, [r7, #4]
  6452. 8002d42: 681b ldr r3, [r3, #0]
  6453. 8002d44: 4a19 ldr r2, [pc, #100] ; (8002dac <HAL_COMP_Start+0xa8>)
  6454. 8002d46: 4293 cmp r3, r2
  6455. 8002d48: d106 bne.n 8002d58 <HAL_COMP_Start+0x54>
  6456. 8002d4a: 4b18 ldr r3, [pc, #96] ; (8002dac <HAL_COMP_Start+0xa8>)
  6457. 8002d4c: 681b ldr r3, [r3, #0]
  6458. 8002d4e: 4a17 ldr r2, [pc, #92] ; (8002dac <HAL_COMP_Start+0xa8>)
  6459. 8002d50: f043 0310 orr.w r3, r3, #16
  6460. 8002d54: 6013 str r3, [r2, #0]
  6461. 8002d56: e008 b.n 8002d6a <HAL_COMP_Start+0x66>
  6462. 8002d58: 4b14 ldr r3, [pc, #80] ; (8002dac <HAL_COMP_Start+0xa8>)
  6463. 8002d5a: 681b ldr r3, [r3, #0]
  6464. 8002d5c: f423 12e0 bic.w r2, r3, #1835008 ; 0x1c0000
  6465. 8002d60: 687b ldr r3, [r7, #4]
  6466. 8002d62: 685b ldr r3, [r3, #4]
  6467. 8002d64: 4911 ldr r1, [pc, #68] ; (8002dac <HAL_COMP_Start+0xa8>)
  6468. 8002d66: 4313 orrs r3, r2
  6469. 8002d68: 600b str r3, [r1, #0]
  6470. /* Set delay for COMP start-up time */
  6471. if (hcomp->Instance == COMP1)
  6472. 8002d6a: 687b ldr r3, [r7, #4]
  6473. 8002d6c: 681b ldr r3, [r3, #0]
  6474. 8002d6e: 4a0f ldr r2, [pc, #60] ; (8002dac <HAL_COMP_Start+0xa8>)
  6475. 8002d70: 4293 cmp r3, r2
  6476. 8002d72: d102 bne.n 8002d7a <HAL_COMP_Start+0x76>
  6477. {
  6478. wait_loop_cycles = COMP1_START_DELAY_CPU_CYCLES;
  6479. 8002d74: 236a movs r3, #106 ; 0x6a
  6480. 8002d76: 613b str r3, [r7, #16]
  6481. 8002d78: e006 b.n 8002d88 <HAL_COMP_Start+0x84>
  6482. }
  6483. else /* if (hcomp->Instance == COMP2) */
  6484. {
  6485. wait_loop_cycles = COMP2_START_DELAY_CPU_CYCLES;
  6486. 8002d7a: f44f 7385 mov.w r3, #266 ; 0x10a
  6487. 8002d7e: 613b str r3, [r7, #16]
  6488. }
  6489. /* Delay for COMP start-up time. */
  6490. /* Delay fixed to worst case: maximum CPU frequency */
  6491. while(wait_loop_index < wait_loop_cycles)
  6492. 8002d80: e002 b.n 8002d88 <HAL_COMP_Start+0x84>
  6493. {
  6494. wait_loop_index++;
  6495. 8002d82: 68fb ldr r3, [r7, #12]
  6496. 8002d84: 3301 adds r3, #1
  6497. 8002d86: 60fb str r3, [r7, #12]
  6498. while(wait_loop_index < wait_loop_cycles)
  6499. 8002d88: 68fb ldr r3, [r7, #12]
  6500. 8002d8a: 693a ldr r2, [r7, #16]
  6501. 8002d8c: 429a cmp r2, r3
  6502. 8002d8e: d8f8 bhi.n 8002d82 <HAL_COMP_Start+0x7e>
  6503. }
  6504. /* Update COMP state */
  6505. hcomp->State = HAL_COMP_STATE_BUSY;
  6506. 8002d90: 687b ldr r3, [r7, #4]
  6507. 8002d92: 2202 movs r2, #2
  6508. 8002d94: f883 2021 strb.w r2, [r3, #33] ; 0x21
  6509. 8002d98: e001 b.n 8002d9e <HAL_COMP_Start+0x9a>
  6510. }
  6511. else
  6512. {
  6513. status = HAL_ERROR;
  6514. 8002d9a: 2301 movs r3, #1
  6515. 8002d9c: 75fb strb r3, [r7, #23]
  6516. }
  6517. }
  6518. return status;
  6519. 8002d9e: 7dfb ldrb r3, [r7, #23]
  6520. }
  6521. 8002da0: 4618 mov r0, r3
  6522. 8002da2: 371c adds r7, #28
  6523. 8002da4: 46bd mov sp, r7
  6524. 8002da6: bc80 pop {r7}
  6525. 8002da8: 4770 bx lr
  6526. 8002daa: bf00 nop
  6527. 8002dac: 40007c00 .word 0x40007c00
  6528. 08002db0 <HAL_COMP_Start_IT>:
  6529. * @brief Enables the interrupt and starts the comparator
  6530. * @param hcomp COMP handle
  6531. * @retval HAL status.
  6532. */
  6533. HAL_StatusTypeDef HAL_COMP_Start_IT(COMP_HandleTypeDef *hcomp)
  6534. {
  6535. 8002db0: b580 push {r7, lr}
  6536. 8002db2: b084 sub sp, #16
  6537. 8002db4: af00 add r7, sp, #0
  6538. 8002db6: 6078 str r0, [r7, #4]
  6539. HAL_StatusTypeDef status = HAL_OK;
  6540. 8002db8: 2300 movs r3, #0
  6541. 8002dba: 73fb strb r3, [r7, #15]
  6542. uint32_t extiline = 0;
  6543. 8002dbc: 2300 movs r3, #0
  6544. 8002dbe: 60bb str r3, [r7, #8]
  6545. status = HAL_COMP_Start(hcomp);
  6546. 8002dc0: 6878 ldr r0, [r7, #4]
  6547. 8002dc2: f7ff ff9f bl 8002d04 <HAL_COMP_Start>
  6548. 8002dc6: 4603 mov r3, r0
  6549. 8002dc8: 73fb strb r3, [r7, #15]
  6550. if(status == HAL_OK)
  6551. 8002dca: 7bfb ldrb r3, [r7, #15]
  6552. 8002dcc: 2b00 cmp r3, #0
  6553. 8002dce: d13b bne.n 8002e48 <HAL_COMP_Start_IT+0x98>
  6554. {
  6555. /* Check the parameter */
  6556. assert_param(IS_COMP_TRIGGERMODE(hcomp->Init.TriggerMode));
  6557. /* Get the Exti Line output configuration */
  6558. extiline = COMP_GET_EXTI_LINE(hcomp->Instance);
  6559. 8002dd0: 687b ldr r3, [r7, #4]
  6560. 8002dd2: 681b ldr r3, [r3, #0]
  6561. 8002dd4: 4a1f ldr r2, [pc, #124] ; (8002e54 <HAL_COMP_Start_IT+0xa4>)
  6562. 8002dd6: 4293 cmp r3, r2
  6563. 8002dd8: d102 bne.n 8002de0 <HAL_COMP_Start_IT+0x30>
  6564. 8002dda: f44f 1300 mov.w r3, #2097152 ; 0x200000
  6565. 8002dde: e001 b.n 8002de4 <HAL_COMP_Start_IT+0x34>
  6566. 8002de0: f44f 0380 mov.w r3, #4194304 ; 0x400000
  6567. 8002de4: 60bb str r3, [r7, #8]
  6568. /* Configure the trigger rising edge */
  6569. if((hcomp->Init.TriggerMode & COMP_TRIGGERMODE_IT_RISING) != RESET)
  6570. 8002de6: 687b ldr r3, [r7, #4]
  6571. 8002de8: 699b ldr r3, [r3, #24]
  6572. 8002dea: f003 0301 and.w r3, r3, #1
  6573. 8002dee: 2b00 cmp r3, #0
  6574. 8002df0: d006 beq.n 8002e00 <HAL_COMP_Start_IT+0x50>
  6575. {
  6576. SET_BIT(EXTI->RTSR, extiline);
  6577. 8002df2: 4b19 ldr r3, [pc, #100] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6578. 8002df4: 689a ldr r2, [r3, #8]
  6579. 8002df6: 4918 ldr r1, [pc, #96] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6580. 8002df8: 68bb ldr r3, [r7, #8]
  6581. 8002dfa: 4313 orrs r3, r2
  6582. 8002dfc: 608b str r3, [r1, #8]
  6583. 8002dfe: e006 b.n 8002e0e <HAL_COMP_Start_IT+0x5e>
  6584. }
  6585. else
  6586. {
  6587. CLEAR_BIT(EXTI->RTSR, extiline);
  6588. 8002e00: 4b15 ldr r3, [pc, #84] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6589. 8002e02: 689a ldr r2, [r3, #8]
  6590. 8002e04: 68bb ldr r3, [r7, #8]
  6591. 8002e06: 43db mvns r3, r3
  6592. 8002e08: 4913 ldr r1, [pc, #76] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6593. 8002e0a: 4013 ands r3, r2
  6594. 8002e0c: 608b str r3, [r1, #8]
  6595. }
  6596. /* Configure the trigger falling edge */
  6597. if((hcomp->Init.TriggerMode & COMP_TRIGGERMODE_IT_FALLING) != RESET)
  6598. 8002e0e: 687b ldr r3, [r7, #4]
  6599. 8002e10: 699b ldr r3, [r3, #24]
  6600. 8002e12: f003 0302 and.w r3, r3, #2
  6601. 8002e16: 2b00 cmp r3, #0
  6602. 8002e18: d006 beq.n 8002e28 <HAL_COMP_Start_IT+0x78>
  6603. {
  6604. SET_BIT(EXTI->FTSR, extiline);
  6605. 8002e1a: 4b0f ldr r3, [pc, #60] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6606. 8002e1c: 68da ldr r2, [r3, #12]
  6607. 8002e1e: 490e ldr r1, [pc, #56] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6608. 8002e20: 68bb ldr r3, [r7, #8]
  6609. 8002e22: 4313 orrs r3, r2
  6610. 8002e24: 60cb str r3, [r1, #12]
  6611. 8002e26: e006 b.n 8002e36 <HAL_COMP_Start_IT+0x86>
  6612. }
  6613. else
  6614. {
  6615. CLEAR_BIT(EXTI->FTSR, extiline);
  6616. 8002e28: 4b0b ldr r3, [pc, #44] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6617. 8002e2a: 68da ldr r2, [r3, #12]
  6618. 8002e2c: 68bb ldr r3, [r7, #8]
  6619. 8002e2e: 43db mvns r3, r3
  6620. 8002e30: 4909 ldr r1, [pc, #36] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6621. 8002e32: 4013 ands r3, r2
  6622. 8002e34: 60cb str r3, [r1, #12]
  6623. }
  6624. /* Clear COMP EXTI pending bit */
  6625. WRITE_REG(EXTI->PR, extiline);
  6626. 8002e36: 4a08 ldr r2, [pc, #32] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6627. 8002e38: 68bb ldr r3, [r7, #8]
  6628. 8002e3a: 6153 str r3, [r2, #20]
  6629. /* Enable EXTI interrupt mode */
  6630. SET_BIT(EXTI->IMR, extiline);
  6631. 8002e3c: 4b06 ldr r3, [pc, #24] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6632. 8002e3e: 681a ldr r2, [r3, #0]
  6633. 8002e40: 4905 ldr r1, [pc, #20] ; (8002e58 <HAL_COMP_Start_IT+0xa8>)
  6634. 8002e42: 68bb ldr r3, [r7, #8]
  6635. 8002e44: 4313 orrs r3, r2
  6636. 8002e46: 600b str r3, [r1, #0]
  6637. }
  6638. return status;
  6639. 8002e48: 7bfb ldrb r3, [r7, #15]
  6640. }
  6641. 8002e4a: 4618 mov r0, r3
  6642. 8002e4c: 3710 adds r7, #16
  6643. 8002e4e: 46bd mov sp, r7
  6644. 8002e50: bd80 pop {r7, pc}
  6645. 8002e52: bf00 nop
  6646. 8002e54: 40007c00 .word 0x40007c00
  6647. 8002e58: 40010400 .word 0x40010400
  6648. 08002e5c <HAL_COMP_IRQHandler>:
  6649. * @brief Comparator IRQ Handler
  6650. * @param hcomp COMP handle
  6651. * @retval HAL status
  6652. */
  6653. void HAL_COMP_IRQHandler(COMP_HandleTypeDef *hcomp)
  6654. {
  6655. 8002e5c: b580 push {r7, lr}
  6656. 8002e5e: b084 sub sp, #16
  6657. 8002e60: af00 add r7, sp, #0
  6658. 8002e62: 6078 str r0, [r7, #4]
  6659. uint32_t extiline = COMP_GET_EXTI_LINE(hcomp->Instance);
  6660. 8002e64: 687b ldr r3, [r7, #4]
  6661. 8002e66: 681b ldr r3, [r3, #0]
  6662. 8002e68: 4a0c ldr r2, [pc, #48] ; (8002e9c <HAL_COMP_IRQHandler+0x40>)
  6663. 8002e6a: 4293 cmp r3, r2
  6664. 8002e6c: d102 bne.n 8002e74 <HAL_COMP_IRQHandler+0x18>
  6665. 8002e6e: f44f 1300 mov.w r3, #2097152 ; 0x200000
  6666. 8002e72: e001 b.n 8002e78 <HAL_COMP_IRQHandler+0x1c>
  6667. 8002e74: f44f 0380 mov.w r3, #4194304 ; 0x400000
  6668. 8002e78: 60fb str r3, [r7, #12]
  6669. /* Check COMP Exti flag */
  6670. if(READ_BIT(EXTI->PR, extiline) != RESET)
  6671. 8002e7a: 4b09 ldr r3, [pc, #36] ; (8002ea0 <HAL_COMP_IRQHandler+0x44>)
  6672. 8002e7c: 695a ldr r2, [r3, #20]
  6673. 8002e7e: 68fb ldr r3, [r7, #12]
  6674. 8002e80: 4013 ands r3, r2
  6675. 8002e82: 2b00 cmp r3, #0
  6676. 8002e84: d005 beq.n 8002e92 <HAL_COMP_IRQHandler+0x36>
  6677. {
  6678. /* Clear COMP EXTI pending bit */
  6679. WRITE_REG(EXTI->PR, extiline);
  6680. 8002e86: 4a06 ldr r2, [pc, #24] ; (8002ea0 <HAL_COMP_IRQHandler+0x44>)
  6681. 8002e88: 68fb ldr r3, [r7, #12]
  6682. 8002e8a: 6153 str r3, [r2, #20]
  6683. /* COMP trigger callback */
  6684. #if (USE_HAL_COMP_REGISTER_CALLBACKS == 1)
  6685. hcomp->TriggerCallback(hcomp);
  6686. #else
  6687. HAL_COMP_TriggerCallback(hcomp);
  6688. 8002e8c: 6878 ldr r0, [r7, #4]
  6689. 8002e8e: f7fe f89d bl 8000fcc <HAL_COMP_TriggerCallback>
  6690. #endif /* USE_HAL_COMP_REGISTER_CALLBACKS */
  6691. }
  6692. }
  6693. 8002e92: bf00 nop
  6694. 8002e94: 3710 adds r7, #16
  6695. 8002e96: 46bd mov sp, r7
  6696. 8002e98: bd80 pop {r7, pc}
  6697. 8002e9a: bf00 nop
  6698. 8002e9c: 40007c00 .word 0x40007c00
  6699. 8002ea0: 40010400 .word 0x40010400
  6700. 08002ea4 <__NVIC_SetPriorityGrouping>:
  6701. In case of a conflict between priority grouping and available
  6702. priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
  6703. \param [in] PriorityGroup Priority grouping field.
  6704. */
  6705. __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  6706. {
  6707. 8002ea4: b480 push {r7}
  6708. 8002ea6: b085 sub sp, #20
  6709. 8002ea8: af00 add r7, sp, #0
  6710. 8002eaa: 6078 str r0, [r7, #4]
  6711. uint32_t reg_value;
  6712. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  6713. 8002eac: 687b ldr r3, [r7, #4]
  6714. 8002eae: f003 0307 and.w r3, r3, #7
  6715. 8002eb2: 60fb str r3, [r7, #12]
  6716. reg_value = SCB->AIRCR; /* read old register configuration */
  6717. 8002eb4: 4b0c ldr r3, [pc, #48] ; (8002ee8 <__NVIC_SetPriorityGrouping+0x44>)
  6718. 8002eb6: 68db ldr r3, [r3, #12]
  6719. 8002eb8: 60bb str r3, [r7, #8]
  6720. reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
  6721. 8002eba: 68ba ldr r2, [r7, #8]
  6722. 8002ebc: f64f 03ff movw r3, #63743 ; 0xf8ff
  6723. 8002ec0: 4013 ands r3, r2
  6724. 8002ec2: 60bb str r3, [r7, #8]
  6725. reg_value = (reg_value |
  6726. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  6727. (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
  6728. 8002ec4: 68fb ldr r3, [r7, #12]
  6729. 8002ec6: 021a lsls r2, r3, #8
  6730. ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
  6731. 8002ec8: 68bb ldr r3, [r7, #8]
  6732. 8002eca: 4313 orrs r3, r2
  6733. reg_value = (reg_value |
  6734. 8002ecc: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000
  6735. 8002ed0: f443 3300 orr.w r3, r3, #131072 ; 0x20000
  6736. 8002ed4: 60bb str r3, [r7, #8]
  6737. SCB->AIRCR = reg_value;
  6738. 8002ed6: 4a04 ldr r2, [pc, #16] ; (8002ee8 <__NVIC_SetPriorityGrouping+0x44>)
  6739. 8002ed8: 68bb ldr r3, [r7, #8]
  6740. 8002eda: 60d3 str r3, [r2, #12]
  6741. }
  6742. 8002edc: bf00 nop
  6743. 8002ede: 3714 adds r7, #20
  6744. 8002ee0: 46bd mov sp, r7
  6745. 8002ee2: bc80 pop {r7}
  6746. 8002ee4: 4770 bx lr
  6747. 8002ee6: bf00 nop
  6748. 8002ee8: e000ed00 .word 0xe000ed00
  6749. 08002eec <__NVIC_GetPriorityGrouping>:
  6750. \brief Get Priority Grouping
  6751. \details Reads the priority grouping field from the NVIC Interrupt Controller.
  6752. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
  6753. */
  6754. __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
  6755. {
  6756. 8002eec: b480 push {r7}
  6757. 8002eee: af00 add r7, sp, #0
  6758. return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
  6759. 8002ef0: 4b04 ldr r3, [pc, #16] ; (8002f04 <__NVIC_GetPriorityGrouping+0x18>)
  6760. 8002ef2: 68db ldr r3, [r3, #12]
  6761. 8002ef4: 0a1b lsrs r3, r3, #8
  6762. 8002ef6: f003 0307 and.w r3, r3, #7
  6763. }
  6764. 8002efa: 4618 mov r0, r3
  6765. 8002efc: 46bd mov sp, r7
  6766. 8002efe: bc80 pop {r7}
  6767. 8002f00: 4770 bx lr
  6768. 8002f02: bf00 nop
  6769. 8002f04: e000ed00 .word 0xe000ed00
  6770. 08002f08 <__NVIC_EnableIRQ>:
  6771. \details Enables a device specific interrupt in the NVIC interrupt controller.
  6772. \param [in] IRQn Device specific interrupt number.
  6773. \note IRQn must not be negative.
  6774. */
  6775. __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
  6776. {
  6777. 8002f08: b480 push {r7}
  6778. 8002f0a: b083 sub sp, #12
  6779. 8002f0c: af00 add r7, sp, #0
  6780. 8002f0e: 4603 mov r3, r0
  6781. 8002f10: 71fb strb r3, [r7, #7]
  6782. if ((int32_t)(IRQn) >= 0)
  6783. 8002f12: f997 3007 ldrsb.w r3, [r7, #7]
  6784. 8002f16: 2b00 cmp r3, #0
  6785. 8002f18: db0b blt.n 8002f32 <__NVIC_EnableIRQ+0x2a>
  6786. {
  6787. NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
  6788. 8002f1a: 79fb ldrb r3, [r7, #7]
  6789. 8002f1c: f003 021f and.w r2, r3, #31
  6790. 8002f20: 4906 ldr r1, [pc, #24] ; (8002f3c <__NVIC_EnableIRQ+0x34>)
  6791. 8002f22: f997 3007 ldrsb.w r3, [r7, #7]
  6792. 8002f26: 095b lsrs r3, r3, #5
  6793. 8002f28: 2001 movs r0, #1
  6794. 8002f2a: fa00 f202 lsl.w r2, r0, r2
  6795. 8002f2e: f841 2023 str.w r2, [r1, r3, lsl #2]
  6796. }
  6797. }
  6798. 8002f32: bf00 nop
  6799. 8002f34: 370c adds r7, #12
  6800. 8002f36: 46bd mov sp, r7
  6801. 8002f38: bc80 pop {r7}
  6802. 8002f3a: 4770 bx lr
  6803. 8002f3c: e000e100 .word 0xe000e100
  6804. 08002f40 <__NVIC_SetPriority>:
  6805. \param [in] IRQn Interrupt number.
  6806. \param [in] priority Priority to set.
  6807. \note The priority cannot be set for every processor exception.
  6808. */
  6809. __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
  6810. {
  6811. 8002f40: b480 push {r7}
  6812. 8002f42: b083 sub sp, #12
  6813. 8002f44: af00 add r7, sp, #0
  6814. 8002f46: 4603 mov r3, r0
  6815. 8002f48: 6039 str r1, [r7, #0]
  6816. 8002f4a: 71fb strb r3, [r7, #7]
  6817. if ((int32_t)(IRQn) >= 0)
  6818. 8002f4c: f997 3007 ldrsb.w r3, [r7, #7]
  6819. 8002f50: 2b00 cmp r3, #0
  6820. 8002f52: db0a blt.n 8002f6a <__NVIC_SetPriority+0x2a>
  6821. {
  6822. NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  6823. 8002f54: 683b ldr r3, [r7, #0]
  6824. 8002f56: b2da uxtb r2, r3
  6825. 8002f58: 490c ldr r1, [pc, #48] ; (8002f8c <__NVIC_SetPriority+0x4c>)
  6826. 8002f5a: f997 3007 ldrsb.w r3, [r7, #7]
  6827. 8002f5e: 0112 lsls r2, r2, #4
  6828. 8002f60: b2d2 uxtb r2, r2
  6829. 8002f62: 440b add r3, r1
  6830. 8002f64: f883 2300 strb.w r2, [r3, #768] ; 0x300
  6831. }
  6832. else
  6833. {
  6834. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  6835. }
  6836. }
  6837. 8002f68: e00a b.n 8002f80 <__NVIC_SetPriority+0x40>
  6838. SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
  6839. 8002f6a: 683b ldr r3, [r7, #0]
  6840. 8002f6c: b2da uxtb r2, r3
  6841. 8002f6e: 4908 ldr r1, [pc, #32] ; (8002f90 <__NVIC_SetPriority+0x50>)
  6842. 8002f70: 79fb ldrb r3, [r7, #7]
  6843. 8002f72: f003 030f and.w r3, r3, #15
  6844. 8002f76: 3b04 subs r3, #4
  6845. 8002f78: 0112 lsls r2, r2, #4
  6846. 8002f7a: b2d2 uxtb r2, r2
  6847. 8002f7c: 440b add r3, r1
  6848. 8002f7e: 761a strb r2, [r3, #24]
  6849. }
  6850. 8002f80: bf00 nop
  6851. 8002f82: 370c adds r7, #12
  6852. 8002f84: 46bd mov sp, r7
  6853. 8002f86: bc80 pop {r7}
  6854. 8002f88: 4770 bx lr
  6855. 8002f8a: bf00 nop
  6856. 8002f8c: e000e100 .word 0xe000e100
  6857. 8002f90: e000ed00 .word 0xe000ed00
  6858. 08002f94 <NVIC_EncodePriority>:
  6859. \param [in] PreemptPriority Preemptive priority value (starting from 0).
  6860. \param [in] SubPriority Subpriority value (starting from 0).
  6861. \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
  6862. */
  6863. __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
  6864. {
  6865. 8002f94: b480 push {r7}
  6866. 8002f96: b089 sub sp, #36 ; 0x24
  6867. 8002f98: af00 add r7, sp, #0
  6868. 8002f9a: 60f8 str r0, [r7, #12]
  6869. 8002f9c: 60b9 str r1, [r7, #8]
  6870. 8002f9e: 607a str r2, [r7, #4]
  6871. uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
  6872. 8002fa0: 68fb ldr r3, [r7, #12]
  6873. 8002fa2: f003 0307 and.w r3, r3, #7
  6874. 8002fa6: 61fb str r3, [r7, #28]
  6875. uint32_t PreemptPriorityBits;
  6876. uint32_t SubPriorityBits;
  6877. PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
  6878. 8002fa8: 69fb ldr r3, [r7, #28]
  6879. 8002faa: f1c3 0307 rsb r3, r3, #7
  6880. 8002fae: 2b04 cmp r3, #4
  6881. 8002fb0: bf28 it cs
  6882. 8002fb2: 2304 movcs r3, #4
  6883. 8002fb4: 61bb str r3, [r7, #24]
  6884. SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
  6885. 8002fb6: 69fb ldr r3, [r7, #28]
  6886. 8002fb8: 3304 adds r3, #4
  6887. 8002fba: 2b06 cmp r3, #6
  6888. 8002fbc: d902 bls.n 8002fc4 <NVIC_EncodePriority+0x30>
  6889. 8002fbe: 69fb ldr r3, [r7, #28]
  6890. 8002fc0: 3b03 subs r3, #3
  6891. 8002fc2: e000 b.n 8002fc6 <NVIC_EncodePriority+0x32>
  6892. 8002fc4: 2300 movs r3, #0
  6893. 8002fc6: 617b str r3, [r7, #20]
  6894. return (
  6895. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  6896. 8002fc8: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  6897. 8002fcc: 69bb ldr r3, [r7, #24]
  6898. 8002fce: fa02 f303 lsl.w r3, r2, r3
  6899. 8002fd2: 43da mvns r2, r3
  6900. 8002fd4: 68bb ldr r3, [r7, #8]
  6901. 8002fd6: 401a ands r2, r3
  6902. 8002fd8: 697b ldr r3, [r7, #20]
  6903. 8002fda: 409a lsls r2, r3
  6904. ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
  6905. 8002fdc: f04f 31ff mov.w r1, #4294967295 ; 0xffffffff
  6906. 8002fe0: 697b ldr r3, [r7, #20]
  6907. 8002fe2: fa01 f303 lsl.w r3, r1, r3
  6908. 8002fe6: 43d9 mvns r1, r3
  6909. 8002fe8: 687b ldr r3, [r7, #4]
  6910. 8002fea: 400b ands r3, r1
  6911. ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
  6912. 8002fec: 4313 orrs r3, r2
  6913. );
  6914. }
  6915. 8002fee: 4618 mov r0, r3
  6916. 8002ff0: 3724 adds r7, #36 ; 0x24
  6917. 8002ff2: 46bd mov sp, r7
  6918. 8002ff4: bc80 pop {r7}
  6919. 8002ff6: 4770 bx lr
  6920. 08002ff8 <SysTick_Config>:
  6921. \note When the variable <b>__Vendor_SysTickConfig</b> is set to 1, then the
  6922. function <b>SysTick_Config</b> is not included. In this case, the file <b><i>device</i>.h</b>
  6923. must contain a vendor-specific implementation of this function.
  6924. */
  6925. __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
  6926. {
  6927. 8002ff8: b580 push {r7, lr}
  6928. 8002ffa: b082 sub sp, #8
  6929. 8002ffc: af00 add r7, sp, #0
  6930. 8002ffe: 6078 str r0, [r7, #4]
  6931. if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
  6932. 8003000: 687b ldr r3, [r7, #4]
  6933. 8003002: 3b01 subs r3, #1
  6934. 8003004: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000
  6935. 8003008: d301 bcc.n 800300e <SysTick_Config+0x16>
  6936. {
  6937. return (1UL); /* Reload value impossible */
  6938. 800300a: 2301 movs r3, #1
  6939. 800300c: e00f b.n 800302e <SysTick_Config+0x36>
  6940. }
  6941. SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
  6942. 800300e: 4a0a ldr r2, [pc, #40] ; (8003038 <SysTick_Config+0x40>)
  6943. 8003010: 687b ldr r3, [r7, #4]
  6944. 8003012: 3b01 subs r3, #1
  6945. 8003014: 6053 str r3, [r2, #4]
  6946. NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
  6947. 8003016: 210f movs r1, #15
  6948. 8003018: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  6949. 800301c: f7ff ff90 bl 8002f40 <__NVIC_SetPriority>
  6950. SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
  6951. 8003020: 4b05 ldr r3, [pc, #20] ; (8003038 <SysTick_Config+0x40>)
  6952. 8003022: 2200 movs r2, #0
  6953. 8003024: 609a str r2, [r3, #8]
  6954. SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
  6955. 8003026: 4b04 ldr r3, [pc, #16] ; (8003038 <SysTick_Config+0x40>)
  6956. 8003028: 2207 movs r2, #7
  6957. 800302a: 601a str r2, [r3, #0]
  6958. SysTick_CTRL_TICKINT_Msk |
  6959. SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
  6960. return (0UL); /* Function successful */
  6961. 800302c: 2300 movs r3, #0
  6962. }
  6963. 800302e: 4618 mov r0, r3
  6964. 8003030: 3708 adds r7, #8
  6965. 8003032: 46bd mov sp, r7
  6966. 8003034: bd80 pop {r7, pc}
  6967. 8003036: bf00 nop
  6968. 8003038: e000e010 .word 0xe000e010
  6969. 0800303c <HAL_NVIC_SetPriorityGrouping>:
  6970. * @note When the NVIC_PriorityGroup_0 is selected, IRQ pre-emption is no more possible.
  6971. * The pending IRQ priority will be managed only by the subpriority.
  6972. * @retval None
  6973. */
  6974. void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
  6975. {
  6976. 800303c: b580 push {r7, lr}
  6977. 800303e: b082 sub sp, #8
  6978. 8003040: af00 add r7, sp, #0
  6979. 8003042: 6078 str r0, [r7, #4]
  6980. /* Check the parameters */
  6981. assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
  6982. /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
  6983. NVIC_SetPriorityGrouping(PriorityGroup);
  6984. 8003044: 6878 ldr r0, [r7, #4]
  6985. 8003046: f7ff ff2d bl 8002ea4 <__NVIC_SetPriorityGrouping>
  6986. }
  6987. 800304a: bf00 nop
  6988. 800304c: 3708 adds r7, #8
  6989. 800304e: 46bd mov sp, r7
  6990. 8003050: bd80 pop {r7, pc}
  6991. 08003052 <HAL_NVIC_SetPriority>:
  6992. * This parameter can be a value between 0 and 15
  6993. * A lower priority value indicates a higher priority.
  6994. * @retval None
  6995. */
  6996. void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
  6997. {
  6998. 8003052: b580 push {r7, lr}
  6999. 8003054: b086 sub sp, #24
  7000. 8003056: af00 add r7, sp, #0
  7001. 8003058: 4603 mov r3, r0
  7002. 800305a: 60b9 str r1, [r7, #8]
  7003. 800305c: 607a str r2, [r7, #4]
  7004. 800305e: 73fb strb r3, [r7, #15]
  7005. uint32_t prioritygroup = 0x00;
  7006. 8003060: 2300 movs r3, #0
  7007. 8003062: 617b str r3, [r7, #20]
  7008. /* Check the parameters */
  7009. assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
  7010. assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
  7011. prioritygroup = NVIC_GetPriorityGrouping();
  7012. 8003064: f7ff ff42 bl 8002eec <__NVIC_GetPriorityGrouping>
  7013. 8003068: 6178 str r0, [r7, #20]
  7014. NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
  7015. 800306a: 687a ldr r2, [r7, #4]
  7016. 800306c: 68b9 ldr r1, [r7, #8]
  7017. 800306e: 6978 ldr r0, [r7, #20]
  7018. 8003070: f7ff ff90 bl 8002f94 <NVIC_EncodePriority>
  7019. 8003074: 4602 mov r2, r0
  7020. 8003076: f997 300f ldrsb.w r3, [r7, #15]
  7021. 800307a: 4611 mov r1, r2
  7022. 800307c: 4618 mov r0, r3
  7023. 800307e: f7ff ff5f bl 8002f40 <__NVIC_SetPriority>
  7024. }
  7025. 8003082: bf00 nop
  7026. 8003084: 3718 adds r7, #24
  7027. 8003086: 46bd mov sp, r7
  7028. 8003088: bd80 pop {r7, pc}
  7029. 0800308a <HAL_NVIC_EnableIRQ>:
  7030. * This parameter can be an enumerator of IRQn_Type enumeration
  7031. * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32l1xx.h))
  7032. * @retval None
  7033. */
  7034. void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
  7035. {
  7036. 800308a: b580 push {r7, lr}
  7037. 800308c: b082 sub sp, #8
  7038. 800308e: af00 add r7, sp, #0
  7039. 8003090: 4603 mov r3, r0
  7040. 8003092: 71fb strb r3, [r7, #7]
  7041. /* Check the parameters */
  7042. assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
  7043. /* Enable interrupt */
  7044. NVIC_EnableIRQ(IRQn);
  7045. 8003094: f997 3007 ldrsb.w r3, [r7, #7]
  7046. 8003098: 4618 mov r0, r3
  7047. 800309a: f7ff ff35 bl 8002f08 <__NVIC_EnableIRQ>
  7048. }
  7049. 800309e: bf00 nop
  7050. 80030a0: 3708 adds r7, #8
  7051. 80030a2: 46bd mov sp, r7
  7052. 80030a4: bd80 pop {r7, pc}
  7053. 080030a6 <HAL_SYSTICK_Config>:
  7054. * @param TicksNumb Specifies the ticks Number of ticks between two interrupts.
  7055. * @retval status: - 0 Function succeeded.
  7056. * - 1 Function failed.
  7057. */
  7058. uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb)
  7059. {
  7060. 80030a6: b580 push {r7, lr}
  7061. 80030a8: b082 sub sp, #8
  7062. 80030aa: af00 add r7, sp, #0
  7063. 80030ac: 6078 str r0, [r7, #4]
  7064. return SysTick_Config(TicksNumb);
  7065. 80030ae: 6878 ldr r0, [r7, #4]
  7066. 80030b0: f7ff ffa2 bl 8002ff8 <SysTick_Config>
  7067. 80030b4: 4603 mov r3, r0
  7068. }
  7069. 80030b6: 4618 mov r0, r3
  7070. 80030b8: 3708 adds r7, #8
  7071. 80030ba: 46bd mov sp, r7
  7072. 80030bc: bd80 pop {r7, pc}
  7073. 080030be <HAL_DAC_Init>:
  7074. * @param hdac pointer to a DAC_HandleTypeDef structure that contains
  7075. * the configuration information for the specified DAC.
  7076. * @retval HAL status
  7077. */
  7078. HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
  7079. {
  7080. 80030be: b580 push {r7, lr}
  7081. 80030c0: b082 sub sp, #8
  7082. 80030c2: af00 add r7, sp, #0
  7083. 80030c4: 6078 str r0, [r7, #4]
  7084. /* Check DAC handle */
  7085. if (hdac == NULL)
  7086. 80030c6: 687b ldr r3, [r7, #4]
  7087. 80030c8: 2b00 cmp r3, #0
  7088. 80030ca: d101 bne.n 80030d0 <HAL_DAC_Init+0x12>
  7089. {
  7090. return HAL_ERROR;
  7091. 80030cc: 2301 movs r3, #1
  7092. 80030ce: e014 b.n 80030fa <HAL_DAC_Init+0x3c>
  7093. }
  7094. /* Check the parameters */
  7095. assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance));
  7096. if (hdac->State == HAL_DAC_STATE_RESET)
  7097. 80030d0: 687b ldr r3, [r7, #4]
  7098. 80030d2: 791b ldrb r3, [r3, #4]
  7099. 80030d4: b2db uxtb r3, r3
  7100. 80030d6: 2b00 cmp r3, #0
  7101. 80030d8: d105 bne.n 80030e6 <HAL_DAC_Init+0x28>
  7102. hdac->MspInitCallback = HAL_DAC_MspInit;
  7103. }
  7104. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  7105. /* Allocate lock resource and initialize it */
  7106. hdac->Lock = HAL_UNLOCKED;
  7107. 80030da: 687b ldr r3, [r7, #4]
  7108. 80030dc: 2200 movs r2, #0
  7109. 80030de: 715a strb r2, [r3, #5]
  7110. #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1)
  7111. /* Init the low level hardware */
  7112. hdac->MspInitCallback(hdac);
  7113. #else
  7114. /* Init the low level hardware */
  7115. HAL_DAC_MspInit(hdac);
  7116. 80030e0: 6878 ldr r0, [r7, #4]
  7117. 80030e2: f7fe fd67 bl 8001bb4 <HAL_DAC_MspInit>
  7118. #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */
  7119. }
  7120. /* Initialize the DAC state*/
  7121. hdac->State = HAL_DAC_STATE_BUSY;
  7122. 80030e6: 687b ldr r3, [r7, #4]
  7123. 80030e8: 2202 movs r2, #2
  7124. 80030ea: 711a strb r2, [r3, #4]
  7125. /* Set DAC error code to none */
  7126. hdac->ErrorCode = HAL_DAC_ERROR_NONE;
  7127. 80030ec: 687b ldr r3, [r7, #4]
  7128. 80030ee: 2200 movs r2, #0
  7129. 80030f0: 611a str r2, [r3, #16]
  7130. /* Initialize the DAC state*/
  7131. hdac->State = HAL_DAC_STATE_READY;
  7132. 80030f2: 687b ldr r3, [r7, #4]
  7133. 80030f4: 2201 movs r2, #1
  7134. 80030f6: 711a strb r2, [r3, #4]
  7135. /* Return function status */
  7136. return HAL_OK;
  7137. 80030f8: 2300 movs r3, #0
  7138. }
  7139. 80030fa: 4618 mov r0, r3
  7140. 80030fc: 3708 adds r7, #8
  7141. 80030fe: 46bd mov sp, r7
  7142. 8003100: bd80 pop {r7, pc}
  7143. 08003102 <HAL_DAC_Start>:
  7144. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  7145. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  7146. * @retval HAL status
  7147. */
  7148. HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
  7149. {
  7150. 8003102: b480 push {r7}
  7151. 8003104: b083 sub sp, #12
  7152. 8003106: af00 add r7, sp, #0
  7153. 8003108: 6078 str r0, [r7, #4]
  7154. 800310a: 6039 str r1, [r7, #0]
  7155. /* Check the parameters */
  7156. assert_param(IS_DAC_CHANNEL(Channel));
  7157. /* Process locked */
  7158. __HAL_LOCK(hdac);
  7159. 800310c: 687b ldr r3, [r7, #4]
  7160. 800310e: 795b ldrb r3, [r3, #5]
  7161. 8003110: 2b01 cmp r3, #1
  7162. 8003112: d101 bne.n 8003118 <HAL_DAC_Start+0x16>
  7163. 8003114: 2302 movs r3, #2
  7164. 8003116: e040 b.n 800319a <HAL_DAC_Start+0x98>
  7165. 8003118: 687b ldr r3, [r7, #4]
  7166. 800311a: 2201 movs r2, #1
  7167. 800311c: 715a strb r2, [r3, #5]
  7168. /* Change DAC state */
  7169. hdac->State = HAL_DAC_STATE_BUSY;
  7170. 800311e: 687b ldr r3, [r7, #4]
  7171. 8003120: 2202 movs r2, #2
  7172. 8003122: 711a strb r2, [r3, #4]
  7173. /* Enable the Peripheral */
  7174. __HAL_DAC_ENABLE(hdac, Channel);
  7175. 8003124: 687b ldr r3, [r7, #4]
  7176. 8003126: 681b ldr r3, [r3, #0]
  7177. 8003128: 6819 ldr r1, [r3, #0]
  7178. 800312a: 683b ldr r3, [r7, #0]
  7179. 800312c: f003 0310 and.w r3, r3, #16
  7180. 8003130: 2201 movs r2, #1
  7181. 8003132: 409a lsls r2, r3
  7182. 8003134: 687b ldr r3, [r7, #4]
  7183. 8003136: 681b ldr r3, [r3, #0]
  7184. 8003138: 430a orrs r2, r1
  7185. 800313a: 601a str r2, [r3, #0]
  7186. if (Channel == DAC_CHANNEL_1)
  7187. 800313c: 683b ldr r3, [r7, #0]
  7188. 800313e: 2b00 cmp r3, #0
  7189. 8003140: d10f bne.n 8003162 <HAL_DAC_Start+0x60>
  7190. {
  7191. /* Check if software trigger enabled */
  7192. if ((hdac->Instance->CR & (DAC_CR_TEN1 | DAC_CR_TSEL1)) == DAC_TRIGGER_SOFTWARE)
  7193. 8003142: 687b ldr r3, [r7, #4]
  7194. 8003144: 681b ldr r3, [r3, #0]
  7195. 8003146: 681b ldr r3, [r3, #0]
  7196. 8003148: f003 033c and.w r3, r3, #60 ; 0x3c
  7197. 800314c: 2b3c cmp r3, #60 ; 0x3c
  7198. 800314e: d11d bne.n 800318c <HAL_DAC_Start+0x8a>
  7199. {
  7200. /* Enable the selected DAC software conversion */
  7201. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG1);
  7202. 8003150: 687b ldr r3, [r7, #4]
  7203. 8003152: 681b ldr r3, [r3, #0]
  7204. 8003154: 685a ldr r2, [r3, #4]
  7205. 8003156: 687b ldr r3, [r7, #4]
  7206. 8003158: 681b ldr r3, [r3, #0]
  7207. 800315a: f042 0201 orr.w r2, r2, #1
  7208. 800315e: 605a str r2, [r3, #4]
  7209. 8003160: e014 b.n 800318c <HAL_DAC_Start+0x8a>
  7210. }
  7211. else
  7212. {
  7213. /* Check if software trigger enabled */
  7214. if ((hdac->Instance->CR & (DAC_CR_TEN2 | DAC_CR_TSEL2)) == (DAC_TRIGGER_SOFTWARE << (Channel & 0x10UL)))
  7215. 8003162: 687b ldr r3, [r7, #4]
  7216. 8003164: 681b ldr r3, [r3, #0]
  7217. 8003166: 681b ldr r3, [r3, #0]
  7218. 8003168: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  7219. 800316c: 683b ldr r3, [r7, #0]
  7220. 800316e: f003 0310 and.w r3, r3, #16
  7221. 8003172: 213c movs r1, #60 ; 0x3c
  7222. 8003174: fa01 f303 lsl.w r3, r1, r3
  7223. 8003178: 429a cmp r2, r3
  7224. 800317a: d107 bne.n 800318c <HAL_DAC_Start+0x8a>
  7225. {
  7226. /* Enable the selected DAC software conversion*/
  7227. SET_BIT(hdac->Instance->SWTRIGR, DAC_SWTRIGR_SWTRIG2);
  7228. 800317c: 687b ldr r3, [r7, #4]
  7229. 800317e: 681b ldr r3, [r3, #0]
  7230. 8003180: 685a ldr r2, [r3, #4]
  7231. 8003182: 687b ldr r3, [r7, #4]
  7232. 8003184: 681b ldr r3, [r3, #0]
  7233. 8003186: f042 0202 orr.w r2, r2, #2
  7234. 800318a: 605a str r2, [r3, #4]
  7235. }
  7236. }
  7237. /* Change DAC state */
  7238. hdac->State = HAL_DAC_STATE_READY;
  7239. 800318c: 687b ldr r3, [r7, #4]
  7240. 800318e: 2201 movs r2, #1
  7241. 8003190: 711a strb r2, [r3, #4]
  7242. /* Process unlocked */
  7243. __HAL_UNLOCK(hdac);
  7244. 8003192: 687b ldr r3, [r7, #4]
  7245. 8003194: 2200 movs r2, #0
  7246. 8003196: 715a strb r2, [r3, #5]
  7247. /* Return function status */
  7248. return HAL_OK;
  7249. 8003198: 2300 movs r3, #0
  7250. }
  7251. 800319a: 4618 mov r0, r3
  7252. 800319c: 370c adds r7, #12
  7253. 800319e: 46bd mov sp, r7
  7254. 80031a0: bc80 pop {r7}
  7255. 80031a2: 4770 bx lr
  7256. 080031a4 <HAL_DAC_SetValue>:
  7257. * @arg DAC_ALIGN_12B_R: 12bit right data alignment selected
  7258. * @param Data Data to be loaded in the selected data holding register.
  7259. * @retval HAL status
  7260. */
  7261. HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, uint32_t Alignment, uint32_t Data)
  7262. {
  7263. 80031a4: b480 push {r7}
  7264. 80031a6: b087 sub sp, #28
  7265. 80031a8: af00 add r7, sp, #0
  7266. 80031aa: 60f8 str r0, [r7, #12]
  7267. 80031ac: 60b9 str r1, [r7, #8]
  7268. 80031ae: 607a str r2, [r7, #4]
  7269. 80031b0: 603b str r3, [r7, #0]
  7270. __IO uint32_t tmp = 0UL;
  7271. 80031b2: 2300 movs r3, #0
  7272. 80031b4: 617b str r3, [r7, #20]
  7273. /* Check the parameters */
  7274. assert_param(IS_DAC_CHANNEL(Channel));
  7275. assert_param(IS_DAC_ALIGN(Alignment));
  7276. assert_param(IS_DAC_DATA(Data));
  7277. tmp = (uint32_t)hdac->Instance;
  7278. 80031b6: 68fb ldr r3, [r7, #12]
  7279. 80031b8: 681b ldr r3, [r3, #0]
  7280. 80031ba: 617b str r3, [r7, #20]
  7281. if (Channel == DAC_CHANNEL_1)
  7282. 80031bc: 68bb ldr r3, [r7, #8]
  7283. 80031be: 2b00 cmp r3, #0
  7284. 80031c0: d105 bne.n 80031ce <HAL_DAC_SetValue+0x2a>
  7285. {
  7286. tmp += DAC_DHR12R1_ALIGNMENT(Alignment);
  7287. 80031c2: 697a ldr r2, [r7, #20]
  7288. 80031c4: 687b ldr r3, [r7, #4]
  7289. 80031c6: 4413 add r3, r2
  7290. 80031c8: 3308 adds r3, #8
  7291. 80031ca: 617b str r3, [r7, #20]
  7292. 80031cc: e004 b.n 80031d8 <HAL_DAC_SetValue+0x34>
  7293. }
  7294. else
  7295. {
  7296. tmp += DAC_DHR12R2_ALIGNMENT(Alignment);
  7297. 80031ce: 697a ldr r2, [r7, #20]
  7298. 80031d0: 687b ldr r3, [r7, #4]
  7299. 80031d2: 4413 add r3, r2
  7300. 80031d4: 3314 adds r3, #20
  7301. 80031d6: 617b str r3, [r7, #20]
  7302. }
  7303. /* Set the DAC channel selected data holding register */
  7304. *(__IO uint32_t *) tmp = Data;
  7305. 80031d8: 697b ldr r3, [r7, #20]
  7306. 80031da: 461a mov r2, r3
  7307. 80031dc: 683b ldr r3, [r7, #0]
  7308. 80031de: 6013 str r3, [r2, #0]
  7309. /* Return function status */
  7310. return HAL_OK;
  7311. 80031e0: 2300 movs r3, #0
  7312. }
  7313. 80031e2: 4618 mov r0, r3
  7314. 80031e4: 371c adds r7, #28
  7315. 80031e6: 46bd mov sp, r7
  7316. 80031e8: bc80 pop {r7}
  7317. 80031ea: 4770 bx lr
  7318. 080031ec <HAL_DAC_ConfigChannel>:
  7319. * @arg DAC_CHANNEL_1: DAC Channel1 selected
  7320. * @arg DAC_CHANNEL_2: DAC Channel2 selected
  7321. * @retval HAL status
  7322. */
  7323. HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef *hdac, DAC_ChannelConfTypeDef *sConfig, uint32_t Channel)
  7324. {
  7325. 80031ec: b480 push {r7}
  7326. 80031ee: b087 sub sp, #28
  7327. 80031f0: af00 add r7, sp, #0
  7328. 80031f2: 60f8 str r0, [r7, #12]
  7329. 80031f4: 60b9 str r1, [r7, #8]
  7330. 80031f6: 607a str r2, [r7, #4]
  7331. assert_param(IS_DAC_TRIGGER(sConfig->DAC_Trigger));
  7332. assert_param(IS_DAC_OUTPUT_BUFFER_STATE(sConfig->DAC_OutputBuffer));
  7333. assert_param(IS_DAC_CHANNEL(Channel));
  7334. /* Process locked */
  7335. __HAL_LOCK(hdac);
  7336. 80031f8: 68fb ldr r3, [r7, #12]
  7337. 80031fa: 795b ldrb r3, [r3, #5]
  7338. 80031fc: 2b01 cmp r3, #1
  7339. 80031fe: d101 bne.n 8003204 <HAL_DAC_ConfigChannel+0x18>
  7340. 8003200: 2302 movs r3, #2
  7341. 8003202: e03c b.n 800327e <HAL_DAC_ConfigChannel+0x92>
  7342. 8003204: 68fb ldr r3, [r7, #12]
  7343. 8003206: 2201 movs r2, #1
  7344. 8003208: 715a strb r2, [r3, #5]
  7345. /* Change DAC state */
  7346. hdac->State = HAL_DAC_STATE_BUSY;
  7347. 800320a: 68fb ldr r3, [r7, #12]
  7348. 800320c: 2202 movs r2, #2
  7349. 800320e: 711a strb r2, [r3, #4]
  7350. /* Get the DAC CR value */
  7351. tmpreg1 = hdac->Instance->CR;
  7352. 8003210: 68fb ldr r3, [r7, #12]
  7353. 8003212: 681b ldr r3, [r3, #0]
  7354. 8003214: 681b ldr r3, [r3, #0]
  7355. 8003216: 617b str r3, [r7, #20]
  7356. /* Clear BOFFx, TENx, TSELx, WAVEx and MAMPx bits */
  7357. tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1)) << (Channel & 0x10UL));
  7358. 8003218: 687b ldr r3, [r7, #4]
  7359. 800321a: f003 0310 and.w r3, r3, #16
  7360. 800321e: f640 72fe movw r2, #4094 ; 0xffe
  7361. 8003222: fa02 f303 lsl.w r3, r2, r3
  7362. 8003226: 43db mvns r3, r3
  7363. 8003228: 697a ldr r2, [r7, #20]
  7364. 800322a: 4013 ands r3, r2
  7365. 800322c: 617b str r3, [r7, #20]
  7366. /* Configure for the selected DAC channel: buffer output, trigger */
  7367. /* Set TSELx and TENx bits according to DAC_Trigger value */
  7368. /* Set BOFFx bit according to DAC_OutputBuffer value */
  7369. tmpreg2 = (sConfig->DAC_Trigger | sConfig->DAC_OutputBuffer);
  7370. 800322e: 68bb ldr r3, [r7, #8]
  7371. 8003230: 681a ldr r2, [r3, #0]
  7372. 8003232: 68bb ldr r3, [r7, #8]
  7373. 8003234: 685b ldr r3, [r3, #4]
  7374. 8003236: 4313 orrs r3, r2
  7375. 8003238: 613b str r3, [r7, #16]
  7376. /* Calculate CR register value depending on DAC_Channel */
  7377. tmpreg1 |= tmpreg2 << (Channel & 0x10UL);
  7378. 800323a: 687b ldr r3, [r7, #4]
  7379. 800323c: f003 0310 and.w r3, r3, #16
  7380. 8003240: 693a ldr r2, [r7, #16]
  7381. 8003242: fa02 f303 lsl.w r3, r2, r3
  7382. 8003246: 697a ldr r2, [r7, #20]
  7383. 8003248: 4313 orrs r3, r2
  7384. 800324a: 617b str r3, [r7, #20]
  7385. /* Write to DAC CR */
  7386. hdac->Instance->CR = tmpreg1;
  7387. 800324c: 68fb ldr r3, [r7, #12]
  7388. 800324e: 681b ldr r3, [r3, #0]
  7389. 8003250: 697a ldr r2, [r7, #20]
  7390. 8003252: 601a str r2, [r3, #0]
  7391. /* Disable wave generation */
  7392. CLEAR_BIT(hdac->Instance->CR, (DAC_CR_WAVE1 << (Channel & 0x10UL)));
  7393. 8003254: 68fb ldr r3, [r7, #12]
  7394. 8003256: 681b ldr r3, [r3, #0]
  7395. 8003258: 6819 ldr r1, [r3, #0]
  7396. 800325a: 687b ldr r3, [r7, #4]
  7397. 800325c: f003 0310 and.w r3, r3, #16
  7398. 8003260: 22c0 movs r2, #192 ; 0xc0
  7399. 8003262: fa02 f303 lsl.w r3, r2, r3
  7400. 8003266: 43da mvns r2, r3
  7401. 8003268: 68fb ldr r3, [r7, #12]
  7402. 800326a: 681b ldr r3, [r3, #0]
  7403. 800326c: 400a ands r2, r1
  7404. 800326e: 601a str r2, [r3, #0]
  7405. /* Change DAC state */
  7406. hdac->State = HAL_DAC_STATE_READY;
  7407. 8003270: 68fb ldr r3, [r7, #12]
  7408. 8003272: 2201 movs r2, #1
  7409. 8003274: 711a strb r2, [r3, #4]
  7410. /* Process unlocked */
  7411. __HAL_UNLOCK(hdac);
  7412. 8003276: 68fb ldr r3, [r7, #12]
  7413. 8003278: 2200 movs r2, #0
  7414. 800327a: 715a strb r2, [r3, #5]
  7415. /* Return function status */
  7416. return HAL_OK;
  7417. 800327c: 2300 movs r3, #0
  7418. }
  7419. 800327e: 4618 mov r0, r3
  7420. 8003280: 371c adds r7, #28
  7421. 8003282: 46bd mov sp, r7
  7422. 8003284: bc80 pop {r7}
  7423. 8003286: 4770 bx lr
  7424. 08003288 <HAL_DMA_Init>:
  7425. * @param hdma Pointer to a DMA_HandleTypeDef structure that contains
  7426. * the configuration information for the specified DMA Channel.
  7427. * @retval HAL status
  7428. */
  7429. HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma)
  7430. {
  7431. 8003288: b480 push {r7}
  7432. 800328a: b085 sub sp, #20
  7433. 800328c: af00 add r7, sp, #0
  7434. 800328e: 6078 str r0, [r7, #4]
  7435. uint32_t tmp;
  7436. /* Check the DMA handle allocation */
  7437. if(hdma == NULL)
  7438. 8003290: 687b ldr r3, [r7, #4]
  7439. 8003292: 2b00 cmp r3, #0
  7440. 8003294: d101 bne.n 800329a <HAL_DMA_Init+0x12>
  7441. {
  7442. return HAL_ERROR;
  7443. 8003296: 2301 movs r3, #1
  7444. 8003298: e043 b.n 8003322 <HAL_DMA_Init+0x9a>
  7445. hdma->DmaBaseAddress = DMA2;
  7446. }
  7447. #else
  7448. /* calculation of the channel index */
  7449. /* DMA1 */
  7450. hdma->ChannelIndex = (((uint32_t)hdma->Instance - (uint32_t)DMA1_Channel1) / ((uint32_t)DMA1_Channel2 - (uint32_t)DMA1_Channel1)) << 2U;
  7451. 800329a: 687b ldr r3, [r7, #4]
  7452. 800329c: 681b ldr r3, [r3, #0]
  7453. 800329e: 461a mov r2, r3
  7454. 80032a0: 4b22 ldr r3, [pc, #136] ; (800332c <HAL_DMA_Init+0xa4>)
  7455. 80032a2: 4413 add r3, r2
  7456. 80032a4: 4a22 ldr r2, [pc, #136] ; (8003330 <HAL_DMA_Init+0xa8>)
  7457. 80032a6: fba2 2303 umull r2, r3, r2, r3
  7458. 80032aa: 091b lsrs r3, r3, #4
  7459. 80032ac: 009a lsls r2, r3, #2
  7460. 80032ae: 687b ldr r3, [r7, #4]
  7461. 80032b0: 641a str r2, [r3, #64] ; 0x40
  7462. hdma->DmaBaseAddress = DMA1;
  7463. 80032b2: 687b ldr r3, [r7, #4]
  7464. 80032b4: 4a1f ldr r2, [pc, #124] ; (8003334 <HAL_DMA_Init+0xac>)
  7465. 80032b6: 63da str r2, [r3, #60] ; 0x3c
  7466. #endif
  7467. /* Change DMA peripheral state */
  7468. hdma->State = HAL_DMA_STATE_BUSY;
  7469. 80032b8: 687b ldr r3, [r7, #4]
  7470. 80032ba: 2202 movs r2, #2
  7471. 80032bc: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7472. /* Get the CR register value */
  7473. tmp = hdma->Instance->CCR;
  7474. 80032c0: 687b ldr r3, [r7, #4]
  7475. 80032c2: 681b ldr r3, [r3, #0]
  7476. 80032c4: 681b ldr r3, [r3, #0]
  7477. 80032c6: 60fb str r3, [r7, #12]
  7478. /* Clear PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR and MEM2MEM bits */
  7479. tmp &= ((uint32_t)~(DMA_CCR_PL | DMA_CCR_MSIZE | DMA_CCR_PSIZE |
  7480. 80032c8: 68fb ldr r3, [r7, #12]
  7481. 80032ca: f423 43ff bic.w r3, r3, #32640 ; 0x7f80
  7482. 80032ce: f023 0370 bic.w r3, r3, #112 ; 0x70
  7483. 80032d2: 60fb str r3, [r7, #12]
  7484. DMA_CCR_MINC | DMA_CCR_PINC | DMA_CCR_CIRC |
  7485. DMA_CCR_DIR | DMA_CCR_MEM2MEM));
  7486. /* Prepare the DMA Channel configuration */
  7487. tmp |= hdma->Init.Direction |
  7488. 80032d4: 687b ldr r3, [r7, #4]
  7489. 80032d6: 685a ldr r2, [r3, #4]
  7490. hdma->Init.PeriphInc | hdma->Init.MemInc |
  7491. 80032d8: 687b ldr r3, [r7, #4]
  7492. 80032da: 689b ldr r3, [r3, #8]
  7493. tmp |= hdma->Init.Direction |
  7494. 80032dc: 431a orrs r2, r3
  7495. hdma->Init.PeriphInc | hdma->Init.MemInc |
  7496. 80032de: 687b ldr r3, [r7, #4]
  7497. 80032e0: 68db ldr r3, [r3, #12]
  7498. 80032e2: 431a orrs r2, r3
  7499. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  7500. 80032e4: 687b ldr r3, [r7, #4]
  7501. 80032e6: 691b ldr r3, [r3, #16]
  7502. hdma->Init.PeriphInc | hdma->Init.MemInc |
  7503. 80032e8: 431a orrs r2, r3
  7504. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  7505. 80032ea: 687b ldr r3, [r7, #4]
  7506. 80032ec: 695b ldr r3, [r3, #20]
  7507. 80032ee: 431a orrs r2, r3
  7508. hdma->Init.Mode | hdma->Init.Priority;
  7509. 80032f0: 687b ldr r3, [r7, #4]
  7510. 80032f2: 699b ldr r3, [r3, #24]
  7511. hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment |
  7512. 80032f4: 431a orrs r2, r3
  7513. hdma->Init.Mode | hdma->Init.Priority;
  7514. 80032f6: 687b ldr r3, [r7, #4]
  7515. 80032f8: 69db ldr r3, [r3, #28]
  7516. 80032fa: 4313 orrs r3, r2
  7517. tmp |= hdma->Init.Direction |
  7518. 80032fc: 68fa ldr r2, [r7, #12]
  7519. 80032fe: 4313 orrs r3, r2
  7520. 8003300: 60fb str r3, [r7, #12]
  7521. /* Write to DMA Channel CR register */
  7522. hdma->Instance->CCR = tmp;
  7523. 8003302: 687b ldr r3, [r7, #4]
  7524. 8003304: 681b ldr r3, [r3, #0]
  7525. 8003306: 68fa ldr r2, [r7, #12]
  7526. 8003308: 601a str r2, [r3, #0]
  7527. /* Initialise the error code */
  7528. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  7529. 800330a: 687b ldr r3, [r7, #4]
  7530. 800330c: 2200 movs r2, #0
  7531. 800330e: 639a str r2, [r3, #56] ; 0x38
  7532. /* Initialize the DMA state*/
  7533. hdma->State = HAL_DMA_STATE_READY;
  7534. 8003310: 687b ldr r3, [r7, #4]
  7535. 8003312: 2201 movs r2, #1
  7536. 8003314: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7537. /* Allocate lock resource and initialize it */
  7538. hdma->Lock = HAL_UNLOCKED;
  7539. 8003318: 687b ldr r3, [r7, #4]
  7540. 800331a: 2200 movs r2, #0
  7541. 800331c: f883 2020 strb.w r2, [r3, #32]
  7542. return HAL_OK;
  7543. 8003320: 2300 movs r3, #0
  7544. }
  7545. 8003322: 4618 mov r0, r3
  7546. 8003324: 3714 adds r7, #20
  7547. 8003326: 46bd mov sp, r7
  7548. 8003328: bc80 pop {r7}
  7549. 800332a: 4770 bx lr
  7550. 800332c: bffd9ff8 .word 0xbffd9ff8
  7551. 8003330: cccccccd .word 0xcccccccd
  7552. 8003334: 40026000 .word 0x40026000
  7553. 08003338 <HAL_DMA_Start_IT>:
  7554. * @param DstAddress The destination memory Buffer address
  7555. * @param DataLength The length of data to be transferred from source to destination
  7556. * @retval HAL status
  7557. */
  7558. HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  7559. {
  7560. 8003338: b580 push {r7, lr}
  7561. 800333a: b086 sub sp, #24
  7562. 800333c: af00 add r7, sp, #0
  7563. 800333e: 60f8 str r0, [r7, #12]
  7564. 8003340: 60b9 str r1, [r7, #8]
  7565. 8003342: 607a str r2, [r7, #4]
  7566. 8003344: 603b str r3, [r7, #0]
  7567. HAL_StatusTypeDef status = HAL_OK;
  7568. 8003346: 2300 movs r3, #0
  7569. 8003348: 75fb strb r3, [r7, #23]
  7570. /* Check the parameters */
  7571. assert_param(IS_DMA_BUFFER_SIZE(DataLength));
  7572. /* Process locked */
  7573. __HAL_LOCK(hdma);
  7574. 800334a: 68fb ldr r3, [r7, #12]
  7575. 800334c: f893 3020 ldrb.w r3, [r3, #32]
  7576. 8003350: 2b01 cmp r3, #1
  7577. 8003352: d101 bne.n 8003358 <HAL_DMA_Start_IT+0x20>
  7578. 8003354: 2302 movs r3, #2
  7579. 8003356: e04b b.n 80033f0 <HAL_DMA_Start_IT+0xb8>
  7580. 8003358: 68fb ldr r3, [r7, #12]
  7581. 800335a: 2201 movs r2, #1
  7582. 800335c: f883 2020 strb.w r2, [r3, #32]
  7583. if(HAL_DMA_STATE_READY == hdma->State)
  7584. 8003360: 68fb ldr r3, [r7, #12]
  7585. 8003362: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  7586. 8003366: b2db uxtb r3, r3
  7587. 8003368: 2b01 cmp r3, #1
  7588. 800336a: d13a bne.n 80033e2 <HAL_DMA_Start_IT+0xaa>
  7589. {
  7590. /* Change DMA peripheral state */
  7591. hdma->State = HAL_DMA_STATE_BUSY;
  7592. 800336c: 68fb ldr r3, [r7, #12]
  7593. 800336e: 2202 movs r2, #2
  7594. 8003370: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7595. hdma->ErrorCode = HAL_DMA_ERROR_NONE;
  7596. 8003374: 68fb ldr r3, [r7, #12]
  7597. 8003376: 2200 movs r2, #0
  7598. 8003378: 639a str r2, [r3, #56] ; 0x38
  7599. /* Disable the peripheral */
  7600. __HAL_DMA_DISABLE(hdma);
  7601. 800337a: 68fb ldr r3, [r7, #12]
  7602. 800337c: 681b ldr r3, [r3, #0]
  7603. 800337e: 681a ldr r2, [r3, #0]
  7604. 8003380: 68fb ldr r3, [r7, #12]
  7605. 8003382: 681b ldr r3, [r3, #0]
  7606. 8003384: f022 0201 bic.w r2, r2, #1
  7607. 8003388: 601a str r2, [r3, #0]
  7608. /* Configure the source, destination address and the data length & clear flags*/
  7609. DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength);
  7610. 800338a: 683b ldr r3, [r7, #0]
  7611. 800338c: 687a ldr r2, [r7, #4]
  7612. 800338e: 68b9 ldr r1, [r7, #8]
  7613. 8003390: 68f8 ldr r0, [r7, #12]
  7614. 8003392: f000 f91d bl 80035d0 <DMA_SetConfig>
  7615. /* Enable the transfer complete interrupt */
  7616. /* Enable the transfer Error interrupt */
  7617. if(NULL != hdma->XferHalfCpltCallback )
  7618. 8003396: 68fb ldr r3, [r7, #12]
  7619. 8003398: 6adb ldr r3, [r3, #44] ; 0x2c
  7620. 800339a: 2b00 cmp r3, #0
  7621. 800339c: d008 beq.n 80033b0 <HAL_DMA_Start_IT+0x78>
  7622. {
  7623. /* Enable the Half transfer complete interrupt as well */
  7624. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  7625. 800339e: 68fb ldr r3, [r7, #12]
  7626. 80033a0: 681b ldr r3, [r3, #0]
  7627. 80033a2: 681a ldr r2, [r3, #0]
  7628. 80033a4: 68fb ldr r3, [r7, #12]
  7629. 80033a6: 681b ldr r3, [r3, #0]
  7630. 80033a8: f042 020e orr.w r2, r2, #14
  7631. 80033ac: 601a str r2, [r3, #0]
  7632. 80033ae: e00f b.n 80033d0 <HAL_DMA_Start_IT+0x98>
  7633. }
  7634. else
  7635. {
  7636. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  7637. 80033b0: 68fb ldr r3, [r7, #12]
  7638. 80033b2: 681b ldr r3, [r3, #0]
  7639. 80033b4: 681a ldr r2, [r3, #0]
  7640. 80033b6: 68fb ldr r3, [r7, #12]
  7641. 80033b8: 681b ldr r3, [r3, #0]
  7642. 80033ba: f022 0204 bic.w r2, r2, #4
  7643. 80033be: 601a str r2, [r3, #0]
  7644. __HAL_DMA_ENABLE_IT(hdma, (DMA_IT_TC | DMA_IT_TE));
  7645. 80033c0: 68fb ldr r3, [r7, #12]
  7646. 80033c2: 681b ldr r3, [r3, #0]
  7647. 80033c4: 681a ldr r2, [r3, #0]
  7648. 80033c6: 68fb ldr r3, [r7, #12]
  7649. 80033c8: 681b ldr r3, [r3, #0]
  7650. 80033ca: f042 020a orr.w r2, r2, #10
  7651. 80033ce: 601a str r2, [r3, #0]
  7652. }
  7653. /* Enable the Peripheral */
  7654. __HAL_DMA_ENABLE(hdma);
  7655. 80033d0: 68fb ldr r3, [r7, #12]
  7656. 80033d2: 681b ldr r3, [r3, #0]
  7657. 80033d4: 681a ldr r2, [r3, #0]
  7658. 80033d6: 68fb ldr r3, [r7, #12]
  7659. 80033d8: 681b ldr r3, [r3, #0]
  7660. 80033da: f042 0201 orr.w r2, r2, #1
  7661. 80033de: 601a str r2, [r3, #0]
  7662. 80033e0: e005 b.n 80033ee <HAL_DMA_Start_IT+0xb6>
  7663. }
  7664. else
  7665. {
  7666. /* Process Unlocked */
  7667. __HAL_UNLOCK(hdma);
  7668. 80033e2: 68fb ldr r3, [r7, #12]
  7669. 80033e4: 2200 movs r2, #0
  7670. 80033e6: f883 2020 strb.w r2, [r3, #32]
  7671. /* Remain BUSY */
  7672. status = HAL_BUSY;
  7673. 80033ea: 2302 movs r3, #2
  7674. 80033ec: 75fb strb r3, [r7, #23]
  7675. }
  7676. return status;
  7677. 80033ee: 7dfb ldrb r3, [r7, #23]
  7678. }
  7679. 80033f0: 4618 mov r0, r3
  7680. 80033f2: 3718 adds r7, #24
  7681. 80033f4: 46bd mov sp, r7
  7682. 80033f6: bd80 pop {r7, pc}
  7683. 080033f8 <HAL_DMA_Abort>:
  7684. * @param hdma pointer to a DMA_HandleTypeDef structure that contains
  7685. * the configuration information for the specified DMA Channel.
  7686. * @retval HAL status
  7687. */
  7688. HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma)
  7689. {
  7690. 80033f8: b480 push {r7}
  7691. 80033fa: b085 sub sp, #20
  7692. 80033fc: af00 add r7, sp, #0
  7693. 80033fe: 6078 str r0, [r7, #4]
  7694. HAL_StatusTypeDef status = HAL_OK;
  7695. 8003400: 2300 movs r3, #0
  7696. 8003402: 73fb strb r3, [r7, #15]
  7697. /* Check the DMA peripheral state */
  7698. if(hdma->State != HAL_DMA_STATE_BUSY)
  7699. 8003404: 687b ldr r3, [r7, #4]
  7700. 8003406: f893 3021 ldrb.w r3, [r3, #33] ; 0x21
  7701. 800340a: b2db uxtb r3, r3
  7702. 800340c: 2b02 cmp r3, #2
  7703. 800340e: d008 beq.n 8003422 <HAL_DMA_Abort+0x2a>
  7704. {
  7705. hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER;
  7706. 8003410: 687b ldr r3, [r7, #4]
  7707. 8003412: 2204 movs r2, #4
  7708. 8003414: 639a str r2, [r3, #56] ; 0x38
  7709. /* Process Unlocked */
  7710. __HAL_UNLOCK(hdma);
  7711. 8003416: 687b ldr r3, [r7, #4]
  7712. 8003418: 2200 movs r2, #0
  7713. 800341a: f883 2020 strb.w r2, [r3, #32]
  7714. return HAL_ERROR;
  7715. 800341e: 2301 movs r3, #1
  7716. 8003420: e022 b.n 8003468 <HAL_DMA_Abort+0x70>
  7717. }
  7718. else
  7719. {
  7720. /* Disable DMA IT */
  7721. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  7722. 8003422: 687b ldr r3, [r7, #4]
  7723. 8003424: 681b ldr r3, [r3, #0]
  7724. 8003426: 681a ldr r2, [r3, #0]
  7725. 8003428: 687b ldr r3, [r7, #4]
  7726. 800342a: 681b ldr r3, [r3, #0]
  7727. 800342c: f022 020e bic.w r2, r2, #14
  7728. 8003430: 601a str r2, [r3, #0]
  7729. /* Disable the channel */
  7730. __HAL_DMA_DISABLE(hdma);
  7731. 8003432: 687b ldr r3, [r7, #4]
  7732. 8003434: 681b ldr r3, [r3, #0]
  7733. 8003436: 681a ldr r2, [r3, #0]
  7734. 8003438: 687b ldr r3, [r7, #4]
  7735. 800343a: 681b ldr r3, [r3, #0]
  7736. 800343c: f022 0201 bic.w r2, r2, #1
  7737. 8003440: 601a str r2, [r3, #0]
  7738. /* Clear all flags */
  7739. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  7740. 8003442: 687b ldr r3, [r7, #4]
  7741. 8003444: 6c1b ldr r3, [r3, #64] ; 0x40
  7742. 8003446: f003 021c and.w r2, r3, #28
  7743. 800344a: 687b ldr r3, [r7, #4]
  7744. 800344c: 6bdb ldr r3, [r3, #60] ; 0x3c
  7745. 800344e: 2101 movs r1, #1
  7746. 8003450: fa01 f202 lsl.w r2, r1, r2
  7747. 8003454: 605a str r2, [r3, #4]
  7748. /* Change the DMA state */
  7749. hdma->State = HAL_DMA_STATE_READY;
  7750. 8003456: 687b ldr r3, [r7, #4]
  7751. 8003458: 2201 movs r2, #1
  7752. 800345a: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7753. /* Process Unlocked */
  7754. __HAL_UNLOCK(hdma);
  7755. 800345e: 687b ldr r3, [r7, #4]
  7756. 8003460: 2200 movs r2, #0
  7757. 8003462: f883 2020 strb.w r2, [r3, #32]
  7758. return status;
  7759. 8003466: 7bfb ldrb r3, [r7, #15]
  7760. }
  7761. }
  7762. 8003468: 4618 mov r0, r3
  7763. 800346a: 3714 adds r7, #20
  7764. 800346c: 46bd mov sp, r7
  7765. 800346e: bc80 pop {r7}
  7766. 8003470: 4770 bx lr
  7767. 08003472 <HAL_DMA_IRQHandler>:
  7768. * @param hdma pointer to a DMA_HandleTypeDef structure that contains
  7769. * the configuration information for the specified DMA Channel.
  7770. * @retval None
  7771. */
  7772. void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma)
  7773. {
  7774. 8003472: b580 push {r7, lr}
  7775. 8003474: b084 sub sp, #16
  7776. 8003476: af00 add r7, sp, #0
  7777. 8003478: 6078 str r0, [r7, #4]
  7778. uint32_t flag_it = hdma->DmaBaseAddress->ISR;
  7779. 800347a: 687b ldr r3, [r7, #4]
  7780. 800347c: 6bdb ldr r3, [r3, #60] ; 0x3c
  7781. 800347e: 681b ldr r3, [r3, #0]
  7782. 8003480: 60fb str r3, [r7, #12]
  7783. uint32_t source_it = hdma->Instance->CCR;
  7784. 8003482: 687b ldr r3, [r7, #4]
  7785. 8003484: 681b ldr r3, [r3, #0]
  7786. 8003486: 681b ldr r3, [r3, #0]
  7787. 8003488: 60bb str r3, [r7, #8]
  7788. /* Half Transfer Complete Interrupt management ******************************/
  7789. if (((flag_it & (DMA_FLAG_HT1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_HT) != 0U))
  7790. 800348a: 687b ldr r3, [r7, #4]
  7791. 800348c: 6c1b ldr r3, [r3, #64] ; 0x40
  7792. 800348e: f003 031c and.w r3, r3, #28
  7793. 8003492: 2204 movs r2, #4
  7794. 8003494: 409a lsls r2, r3
  7795. 8003496: 68fb ldr r3, [r7, #12]
  7796. 8003498: 4013 ands r3, r2
  7797. 800349a: 2b00 cmp r3, #0
  7798. 800349c: d026 beq.n 80034ec <HAL_DMA_IRQHandler+0x7a>
  7799. 800349e: 68bb ldr r3, [r7, #8]
  7800. 80034a0: f003 0304 and.w r3, r3, #4
  7801. 80034a4: 2b00 cmp r3, #0
  7802. 80034a6: d021 beq.n 80034ec <HAL_DMA_IRQHandler+0x7a>
  7803. {
  7804. /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */
  7805. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  7806. 80034a8: 687b ldr r3, [r7, #4]
  7807. 80034aa: 681b ldr r3, [r3, #0]
  7808. 80034ac: 681b ldr r3, [r3, #0]
  7809. 80034ae: f003 0320 and.w r3, r3, #32
  7810. 80034b2: 2b00 cmp r3, #0
  7811. 80034b4: d107 bne.n 80034c6 <HAL_DMA_IRQHandler+0x54>
  7812. {
  7813. /* Disable the half transfer interrupt */
  7814. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_HT);
  7815. 80034b6: 687b ldr r3, [r7, #4]
  7816. 80034b8: 681b ldr r3, [r3, #0]
  7817. 80034ba: 681a ldr r2, [r3, #0]
  7818. 80034bc: 687b ldr r3, [r7, #4]
  7819. 80034be: 681b ldr r3, [r3, #0]
  7820. 80034c0: f022 0204 bic.w r2, r2, #4
  7821. 80034c4: 601a str r2, [r3, #0]
  7822. }
  7823. /* Clear the half transfer complete flag */
  7824. hdma->DmaBaseAddress->IFCR = DMA_ISR_HTIF1 << (hdma->ChannelIndex & 0x1CU);
  7825. 80034c6: 687b ldr r3, [r7, #4]
  7826. 80034c8: 6c1b ldr r3, [r3, #64] ; 0x40
  7827. 80034ca: f003 021c and.w r2, r3, #28
  7828. 80034ce: 687b ldr r3, [r7, #4]
  7829. 80034d0: 6bdb ldr r3, [r3, #60] ; 0x3c
  7830. 80034d2: 2104 movs r1, #4
  7831. 80034d4: fa01 f202 lsl.w r2, r1, r2
  7832. 80034d8: 605a str r2, [r3, #4]
  7833. /* DMA peripheral state is not updated in Half Transfer */
  7834. /* but in Transfer Complete case */
  7835. if(hdma->XferHalfCpltCallback != NULL)
  7836. 80034da: 687b ldr r3, [r7, #4]
  7837. 80034dc: 6adb ldr r3, [r3, #44] ; 0x2c
  7838. 80034de: 2b00 cmp r3, #0
  7839. 80034e0: d071 beq.n 80035c6 <HAL_DMA_IRQHandler+0x154>
  7840. {
  7841. /* Half transfer callback */
  7842. hdma->XferHalfCpltCallback(hdma);
  7843. 80034e2: 687b ldr r3, [r7, #4]
  7844. 80034e4: 6adb ldr r3, [r3, #44] ; 0x2c
  7845. 80034e6: 6878 ldr r0, [r7, #4]
  7846. 80034e8: 4798 blx r3
  7847. if(hdma->XferHalfCpltCallback != NULL)
  7848. 80034ea: e06c b.n 80035c6 <HAL_DMA_IRQHandler+0x154>
  7849. }
  7850. }
  7851. /* Transfer Complete Interrupt management ***********************************/
  7852. else if (((flag_it & (DMA_FLAG_TC1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_TC) != 0U))
  7853. 80034ec: 687b ldr r3, [r7, #4]
  7854. 80034ee: 6c1b ldr r3, [r3, #64] ; 0x40
  7855. 80034f0: f003 031c and.w r3, r3, #28
  7856. 80034f4: 2202 movs r2, #2
  7857. 80034f6: 409a lsls r2, r3
  7858. 80034f8: 68fb ldr r3, [r7, #12]
  7859. 80034fa: 4013 ands r3, r2
  7860. 80034fc: 2b00 cmp r3, #0
  7861. 80034fe: d02e beq.n 800355e <HAL_DMA_IRQHandler+0xec>
  7862. 8003500: 68bb ldr r3, [r7, #8]
  7863. 8003502: f003 0302 and.w r3, r3, #2
  7864. 8003506: 2b00 cmp r3, #0
  7865. 8003508: d029 beq.n 800355e <HAL_DMA_IRQHandler+0xec>
  7866. {
  7867. if((hdma->Instance->CCR & DMA_CCR_CIRC) == 0U)
  7868. 800350a: 687b ldr r3, [r7, #4]
  7869. 800350c: 681b ldr r3, [r3, #0]
  7870. 800350e: 681b ldr r3, [r3, #0]
  7871. 8003510: f003 0320 and.w r3, r3, #32
  7872. 8003514: 2b00 cmp r3, #0
  7873. 8003516: d10b bne.n 8003530 <HAL_DMA_IRQHandler+0xbe>
  7874. {
  7875. /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */
  7876. /* Disable the transfer complete and error interrupt */
  7877. /* if the DMA mode is not CIRCULAR */
  7878. __HAL_DMA_DISABLE_IT(hdma, DMA_IT_TE | DMA_IT_TC);
  7879. 8003518: 687b ldr r3, [r7, #4]
  7880. 800351a: 681b ldr r3, [r3, #0]
  7881. 800351c: 681a ldr r2, [r3, #0]
  7882. 800351e: 687b ldr r3, [r7, #4]
  7883. 8003520: 681b ldr r3, [r3, #0]
  7884. 8003522: f022 020a bic.w r2, r2, #10
  7885. 8003526: 601a str r2, [r3, #0]
  7886. /* Change the DMA state */
  7887. hdma->State = HAL_DMA_STATE_READY;
  7888. 8003528: 687b ldr r3, [r7, #4]
  7889. 800352a: 2201 movs r2, #1
  7890. 800352c: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7891. }
  7892. /* Clear the transfer complete flag */
  7893. hdma->DmaBaseAddress->IFCR = (DMA_ISR_TCIF1 << (hdma->ChannelIndex & 0x1CU));
  7894. 8003530: 687b ldr r3, [r7, #4]
  7895. 8003532: 6c1b ldr r3, [r3, #64] ; 0x40
  7896. 8003534: f003 021c and.w r2, r3, #28
  7897. 8003538: 687b ldr r3, [r7, #4]
  7898. 800353a: 6bdb ldr r3, [r3, #60] ; 0x3c
  7899. 800353c: 2102 movs r1, #2
  7900. 800353e: fa01 f202 lsl.w r2, r1, r2
  7901. 8003542: 605a str r2, [r3, #4]
  7902. /* Process Unlocked */
  7903. __HAL_UNLOCK(hdma);
  7904. 8003544: 687b ldr r3, [r7, #4]
  7905. 8003546: 2200 movs r2, #0
  7906. 8003548: f883 2020 strb.w r2, [r3, #32]
  7907. if(hdma->XferCpltCallback != NULL)
  7908. 800354c: 687b ldr r3, [r7, #4]
  7909. 800354e: 6a9b ldr r3, [r3, #40] ; 0x28
  7910. 8003550: 2b00 cmp r3, #0
  7911. 8003552: d038 beq.n 80035c6 <HAL_DMA_IRQHandler+0x154>
  7912. {
  7913. /* Transfer complete callback */
  7914. hdma->XferCpltCallback(hdma);
  7915. 8003554: 687b ldr r3, [r7, #4]
  7916. 8003556: 6a9b ldr r3, [r3, #40] ; 0x28
  7917. 8003558: 6878 ldr r0, [r7, #4]
  7918. 800355a: 4798 blx r3
  7919. if(hdma->XferCpltCallback != NULL)
  7920. 800355c: e033 b.n 80035c6 <HAL_DMA_IRQHandler+0x154>
  7921. }
  7922. }
  7923. /* Transfer Error Interrupt management **************************************/
  7924. else if (((flag_it & (DMA_FLAG_TE1 << (hdma->ChannelIndex & 0x1CU))) != 0U) && ((source_it & DMA_IT_TE) != 0U))
  7925. 800355e: 687b ldr r3, [r7, #4]
  7926. 8003560: 6c1b ldr r3, [r3, #64] ; 0x40
  7927. 8003562: f003 031c and.w r3, r3, #28
  7928. 8003566: 2208 movs r2, #8
  7929. 8003568: 409a lsls r2, r3
  7930. 800356a: 68fb ldr r3, [r7, #12]
  7931. 800356c: 4013 ands r3, r2
  7932. 800356e: 2b00 cmp r3, #0
  7933. 8003570: d02a beq.n 80035c8 <HAL_DMA_IRQHandler+0x156>
  7934. 8003572: 68bb ldr r3, [r7, #8]
  7935. 8003574: f003 0308 and.w r3, r3, #8
  7936. 8003578: 2b00 cmp r3, #0
  7937. 800357a: d025 beq.n 80035c8 <HAL_DMA_IRQHandler+0x156>
  7938. {
  7939. /* When a DMA transfer error occurs */
  7940. /* A hardware clear of its EN bits is performed */
  7941. /* Disable ALL DMA IT */
  7942. __HAL_DMA_DISABLE_IT(hdma, (DMA_IT_TC | DMA_IT_HT | DMA_IT_TE));
  7943. 800357c: 687b ldr r3, [r7, #4]
  7944. 800357e: 681b ldr r3, [r3, #0]
  7945. 8003580: 681a ldr r2, [r3, #0]
  7946. 8003582: 687b ldr r3, [r7, #4]
  7947. 8003584: 681b ldr r3, [r3, #0]
  7948. 8003586: f022 020e bic.w r2, r2, #14
  7949. 800358a: 601a str r2, [r3, #0]
  7950. /* Clear all flags */
  7951. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  7952. 800358c: 687b ldr r3, [r7, #4]
  7953. 800358e: 6c1b ldr r3, [r3, #64] ; 0x40
  7954. 8003590: f003 021c and.w r2, r3, #28
  7955. 8003594: 687b ldr r3, [r7, #4]
  7956. 8003596: 6bdb ldr r3, [r3, #60] ; 0x3c
  7957. 8003598: 2101 movs r1, #1
  7958. 800359a: fa01 f202 lsl.w r2, r1, r2
  7959. 800359e: 605a str r2, [r3, #4]
  7960. /* Update error code */
  7961. hdma->ErrorCode = HAL_DMA_ERROR_TE;
  7962. 80035a0: 687b ldr r3, [r7, #4]
  7963. 80035a2: 2201 movs r2, #1
  7964. 80035a4: 639a str r2, [r3, #56] ; 0x38
  7965. /* Change the DMA state */
  7966. hdma->State = HAL_DMA_STATE_READY;
  7967. 80035a6: 687b ldr r3, [r7, #4]
  7968. 80035a8: 2201 movs r2, #1
  7969. 80035aa: f883 2021 strb.w r2, [r3, #33] ; 0x21
  7970. /* Process Unlocked */
  7971. __HAL_UNLOCK(hdma);
  7972. 80035ae: 687b ldr r3, [r7, #4]
  7973. 80035b0: 2200 movs r2, #0
  7974. 80035b2: f883 2020 strb.w r2, [r3, #32]
  7975. if (hdma->XferErrorCallback != NULL)
  7976. 80035b6: 687b ldr r3, [r7, #4]
  7977. 80035b8: 6b1b ldr r3, [r3, #48] ; 0x30
  7978. 80035ba: 2b00 cmp r3, #0
  7979. 80035bc: d004 beq.n 80035c8 <HAL_DMA_IRQHandler+0x156>
  7980. {
  7981. /* Transfer error callback */
  7982. hdma->XferErrorCallback(hdma);
  7983. 80035be: 687b ldr r3, [r7, #4]
  7984. 80035c0: 6b1b ldr r3, [r3, #48] ; 0x30
  7985. 80035c2: 6878 ldr r0, [r7, #4]
  7986. 80035c4: 4798 blx r3
  7987. }
  7988. else
  7989. {
  7990. /* Nothing To Do */
  7991. }
  7992. return;
  7993. 80035c6: bf00 nop
  7994. 80035c8: bf00 nop
  7995. }
  7996. 80035ca: 3710 adds r7, #16
  7997. 80035cc: 46bd mov sp, r7
  7998. 80035ce: bd80 pop {r7, pc}
  7999. 080035d0 <DMA_SetConfig>:
  8000. * @param DstAddress The destination memory Buffer address
  8001. * @param DataLength The length of data to be transferred from source to destination
  8002. * @retval HAL status
  8003. */
  8004. static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength)
  8005. {
  8006. 80035d0: b480 push {r7}
  8007. 80035d2: b085 sub sp, #20
  8008. 80035d4: af00 add r7, sp, #0
  8009. 80035d6: 60f8 str r0, [r7, #12]
  8010. 80035d8: 60b9 str r1, [r7, #8]
  8011. 80035da: 607a str r2, [r7, #4]
  8012. 80035dc: 603b str r3, [r7, #0]
  8013. /* Clear all flags */
  8014. hdma->DmaBaseAddress->IFCR = (DMA_ISR_GIF1 << (hdma->ChannelIndex & 0x1CU));
  8015. 80035de: 68fb ldr r3, [r7, #12]
  8016. 80035e0: 6c1b ldr r3, [r3, #64] ; 0x40
  8017. 80035e2: f003 021c and.w r2, r3, #28
  8018. 80035e6: 68fb ldr r3, [r7, #12]
  8019. 80035e8: 6bdb ldr r3, [r3, #60] ; 0x3c
  8020. 80035ea: 2101 movs r1, #1
  8021. 80035ec: fa01 f202 lsl.w r2, r1, r2
  8022. 80035f0: 605a str r2, [r3, #4]
  8023. /* Configure DMA Channel data length */
  8024. hdma->Instance->CNDTR = DataLength;
  8025. 80035f2: 68fb ldr r3, [r7, #12]
  8026. 80035f4: 681b ldr r3, [r3, #0]
  8027. 80035f6: 683a ldr r2, [r7, #0]
  8028. 80035f8: 605a str r2, [r3, #4]
  8029. /* Memory to Peripheral */
  8030. if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH)
  8031. 80035fa: 68fb ldr r3, [r7, #12]
  8032. 80035fc: 685b ldr r3, [r3, #4]
  8033. 80035fe: 2b10 cmp r3, #16
  8034. 8003600: d108 bne.n 8003614 <DMA_SetConfig+0x44>
  8035. {
  8036. /* Configure DMA Channel destination address */
  8037. hdma->Instance->CPAR = DstAddress;
  8038. 8003602: 68fb ldr r3, [r7, #12]
  8039. 8003604: 681b ldr r3, [r3, #0]
  8040. 8003606: 687a ldr r2, [r7, #4]
  8041. 8003608: 609a str r2, [r3, #8]
  8042. /* Configure DMA Channel source address */
  8043. hdma->Instance->CMAR = SrcAddress;
  8044. 800360a: 68fb ldr r3, [r7, #12]
  8045. 800360c: 681b ldr r3, [r3, #0]
  8046. 800360e: 68ba ldr r2, [r7, #8]
  8047. 8003610: 60da str r2, [r3, #12]
  8048. hdma->Instance->CPAR = SrcAddress;
  8049. /* Configure DMA Channel destination address */
  8050. hdma->Instance->CMAR = DstAddress;
  8051. }
  8052. }
  8053. 8003612: e007 b.n 8003624 <DMA_SetConfig+0x54>
  8054. hdma->Instance->CPAR = SrcAddress;
  8055. 8003614: 68fb ldr r3, [r7, #12]
  8056. 8003616: 681b ldr r3, [r3, #0]
  8057. 8003618: 68ba ldr r2, [r7, #8]
  8058. 800361a: 609a str r2, [r3, #8]
  8059. hdma->Instance->CMAR = DstAddress;
  8060. 800361c: 68fb ldr r3, [r7, #12]
  8061. 800361e: 681b ldr r3, [r3, #0]
  8062. 8003620: 687a ldr r2, [r7, #4]
  8063. 8003622: 60da str r2, [r3, #12]
  8064. }
  8065. 8003624: bf00 nop
  8066. 8003626: 3714 adds r7, #20
  8067. 8003628: 46bd mov sp, r7
  8068. 800362a: bc80 pop {r7}
  8069. 800362c: 4770 bx lr
  8070. ...
  8071. 08003630 <HAL_GPIO_Init>:
  8072. * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains
  8073. * the configuration information for the specified GPIO peripheral.
  8074. * @retval None
  8075. */
  8076. void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
  8077. {
  8078. 8003630: b480 push {r7}
  8079. 8003632: b087 sub sp, #28
  8080. 8003634: af00 add r7, sp, #0
  8081. 8003636: 6078 str r0, [r7, #4]
  8082. 8003638: 6039 str r1, [r7, #0]
  8083. uint32_t position = 0x00;
  8084. 800363a: 2300 movs r3, #0
  8085. 800363c: 617b str r3, [r7, #20]
  8086. uint32_t iocurrent = 0x00;
  8087. 800363e: 2300 movs r3, #0
  8088. 8003640: 60fb str r3, [r7, #12]
  8089. uint32_t temp = 0x00;
  8090. 8003642: 2300 movs r3, #0
  8091. 8003644: 613b str r3, [r7, #16]
  8092. assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
  8093. assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
  8094. assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
  8095. /* Configure the port pins */
  8096. while (((GPIO_Init->Pin) >> position) != 0)
  8097. 8003646: e154 b.n 80038f2 <HAL_GPIO_Init+0x2c2>
  8098. {
  8099. /* Get current io position */
  8100. iocurrent = (GPIO_Init->Pin) & (1U << position);
  8101. 8003648: 683b ldr r3, [r7, #0]
  8102. 800364a: 681a ldr r2, [r3, #0]
  8103. 800364c: 2101 movs r1, #1
  8104. 800364e: 697b ldr r3, [r7, #20]
  8105. 8003650: fa01 f303 lsl.w r3, r1, r3
  8106. 8003654: 4013 ands r3, r2
  8107. 8003656: 60fb str r3, [r7, #12]
  8108. if (iocurrent)
  8109. 8003658: 68fb ldr r3, [r7, #12]
  8110. 800365a: 2b00 cmp r3, #0
  8111. 800365c: f000 8146 beq.w 80038ec <HAL_GPIO_Init+0x2bc>
  8112. {
  8113. /*--------------------- GPIO Mode Configuration ------------------------*/
  8114. /* In case of Output or Alternate function mode selection */
  8115. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) ||
  8116. 8003660: 683b ldr r3, [r7, #0]
  8117. 8003662: 685b ldr r3, [r3, #4]
  8118. 8003664: f003 0303 and.w r3, r3, #3
  8119. 8003668: 2b01 cmp r3, #1
  8120. 800366a: d005 beq.n 8003678 <HAL_GPIO_Init+0x48>
  8121. ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
  8122. 800366c: 683b ldr r3, [r7, #0]
  8123. 800366e: 685b ldr r3, [r3, #4]
  8124. 8003670: f003 0303 and.w r3, r3, #3
  8125. if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) ||
  8126. 8003674: 2b02 cmp r3, #2
  8127. 8003676: d130 bne.n 80036da <HAL_GPIO_Init+0xaa>
  8128. {
  8129. /* Check the Speed parameter */
  8130. assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
  8131. /* Configure the IO Speed */
  8132. temp = GPIOx->OSPEEDR;
  8133. 8003678: 687b ldr r3, [r7, #4]
  8134. 800367a: 689b ldr r3, [r3, #8]
  8135. 800367c: 613b str r3, [r7, #16]
  8136. CLEAR_BIT(temp, GPIO_OSPEEDER_OSPEEDR0 << (position * 2));
  8137. 800367e: 697b ldr r3, [r7, #20]
  8138. 8003680: 005b lsls r3, r3, #1
  8139. 8003682: 2203 movs r2, #3
  8140. 8003684: fa02 f303 lsl.w r3, r2, r3
  8141. 8003688: 43db mvns r3, r3
  8142. 800368a: 693a ldr r2, [r7, #16]
  8143. 800368c: 4013 ands r3, r2
  8144. 800368e: 613b str r3, [r7, #16]
  8145. SET_BIT(temp, GPIO_Init->Speed << (position * 2));
  8146. 8003690: 683b ldr r3, [r7, #0]
  8147. 8003692: 68da ldr r2, [r3, #12]
  8148. 8003694: 697b ldr r3, [r7, #20]
  8149. 8003696: 005b lsls r3, r3, #1
  8150. 8003698: fa02 f303 lsl.w r3, r2, r3
  8151. 800369c: 693a ldr r2, [r7, #16]
  8152. 800369e: 4313 orrs r3, r2
  8153. 80036a0: 613b str r3, [r7, #16]
  8154. GPIOx->OSPEEDR = temp;
  8155. 80036a2: 687b ldr r3, [r7, #4]
  8156. 80036a4: 693a ldr r2, [r7, #16]
  8157. 80036a6: 609a str r2, [r3, #8]
  8158. /* Configure the IO Output Type */
  8159. temp = GPIOx->OTYPER;
  8160. 80036a8: 687b ldr r3, [r7, #4]
  8161. 80036aa: 685b ldr r3, [r3, #4]
  8162. 80036ac: 613b str r3, [r7, #16]
  8163. CLEAR_BIT(temp, GPIO_OTYPER_OT_0 << position) ;
  8164. 80036ae: 2201 movs r2, #1
  8165. 80036b0: 697b ldr r3, [r7, #20]
  8166. 80036b2: fa02 f303 lsl.w r3, r2, r3
  8167. 80036b6: 43db mvns r3, r3
  8168. 80036b8: 693a ldr r2, [r7, #16]
  8169. 80036ba: 4013 ands r3, r2
  8170. 80036bc: 613b str r3, [r7, #16]
  8171. SET_BIT(temp, ((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
  8172. 80036be: 683b ldr r3, [r7, #0]
  8173. 80036c0: 685b ldr r3, [r3, #4]
  8174. 80036c2: 091b lsrs r3, r3, #4
  8175. 80036c4: f003 0201 and.w r2, r3, #1
  8176. 80036c8: 697b ldr r3, [r7, #20]
  8177. 80036ca: fa02 f303 lsl.w r3, r2, r3
  8178. 80036ce: 693a ldr r2, [r7, #16]
  8179. 80036d0: 4313 orrs r3, r2
  8180. 80036d2: 613b str r3, [r7, #16]
  8181. GPIOx->OTYPER = temp;
  8182. 80036d4: 687b ldr r3, [r7, #4]
  8183. 80036d6: 693a ldr r2, [r7, #16]
  8184. 80036d8: 605a str r2, [r3, #4]
  8185. }
  8186. if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
  8187. 80036da: 683b ldr r3, [r7, #0]
  8188. 80036dc: 685b ldr r3, [r3, #4]
  8189. 80036de: f003 0303 and.w r3, r3, #3
  8190. 80036e2: 2b03 cmp r3, #3
  8191. 80036e4: d017 beq.n 8003716 <HAL_GPIO_Init+0xe6>
  8192. {
  8193. /* Check the Pull parameter */
  8194. assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
  8195. /* Activate the Pull-up or Pull down resistor for the current IO */
  8196. temp = GPIOx->PUPDR;
  8197. 80036e6: 687b ldr r3, [r7, #4]
  8198. 80036e8: 68db ldr r3, [r3, #12]
  8199. 80036ea: 613b str r3, [r7, #16]
  8200. CLEAR_BIT(temp, GPIO_PUPDR_PUPDR0 << (position * 2));
  8201. 80036ec: 697b ldr r3, [r7, #20]
  8202. 80036ee: 005b lsls r3, r3, #1
  8203. 80036f0: 2203 movs r2, #3
  8204. 80036f2: fa02 f303 lsl.w r3, r2, r3
  8205. 80036f6: 43db mvns r3, r3
  8206. 80036f8: 693a ldr r2, [r7, #16]
  8207. 80036fa: 4013 ands r3, r2
  8208. 80036fc: 613b str r3, [r7, #16]
  8209. SET_BIT(temp, (GPIO_Init->Pull) << (position * 2));
  8210. 80036fe: 683b ldr r3, [r7, #0]
  8211. 8003700: 689a ldr r2, [r3, #8]
  8212. 8003702: 697b ldr r3, [r7, #20]
  8213. 8003704: 005b lsls r3, r3, #1
  8214. 8003706: fa02 f303 lsl.w r3, r2, r3
  8215. 800370a: 693a ldr r2, [r7, #16]
  8216. 800370c: 4313 orrs r3, r2
  8217. 800370e: 613b str r3, [r7, #16]
  8218. GPIOx->PUPDR = temp;
  8219. 8003710: 687b ldr r3, [r7, #4]
  8220. 8003712: 693a ldr r2, [r7, #16]
  8221. 8003714: 60da str r2, [r3, #12]
  8222. }
  8223. /* In case of Alternate function mode selection */
  8224. if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
  8225. 8003716: 683b ldr r3, [r7, #0]
  8226. 8003718: 685b ldr r3, [r3, #4]
  8227. 800371a: f003 0303 and.w r3, r3, #3
  8228. 800371e: 2b02 cmp r3, #2
  8229. 8003720: d123 bne.n 800376a <HAL_GPIO_Init+0x13a>
  8230. assert_param(IS_GPIO_AF_INSTANCE(GPIOx));
  8231. assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
  8232. /* Configure Alternate function mapped with the current IO */
  8233. /* Identify AFRL or AFRH register based on IO position*/
  8234. temp = GPIOx->AFR[position >> 3];
  8235. 8003722: 697b ldr r3, [r7, #20]
  8236. 8003724: 08da lsrs r2, r3, #3
  8237. 8003726: 687b ldr r3, [r7, #4]
  8238. 8003728: 3208 adds r2, #8
  8239. 800372a: f853 3022 ldr.w r3, [r3, r2, lsl #2]
  8240. 800372e: 613b str r3, [r7, #16]
  8241. CLEAR_BIT(temp, 0xFU << ((uint32_t)(position & 0x07U) * 4));
  8242. 8003730: 697b ldr r3, [r7, #20]
  8243. 8003732: f003 0307 and.w r3, r3, #7
  8244. 8003736: 009b lsls r3, r3, #2
  8245. 8003738: 220f movs r2, #15
  8246. 800373a: fa02 f303 lsl.w r3, r2, r3
  8247. 800373e: 43db mvns r3, r3
  8248. 8003740: 693a ldr r2, [r7, #16]
  8249. 8003742: 4013 ands r3, r2
  8250. 8003744: 613b str r3, [r7, #16]
  8251. SET_BIT(temp, (uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4));
  8252. 8003746: 683b ldr r3, [r7, #0]
  8253. 8003748: 691a ldr r2, [r3, #16]
  8254. 800374a: 697b ldr r3, [r7, #20]
  8255. 800374c: f003 0307 and.w r3, r3, #7
  8256. 8003750: 009b lsls r3, r3, #2
  8257. 8003752: fa02 f303 lsl.w r3, r2, r3
  8258. 8003756: 693a ldr r2, [r7, #16]
  8259. 8003758: 4313 orrs r3, r2
  8260. 800375a: 613b str r3, [r7, #16]
  8261. GPIOx->AFR[position >> 3] = temp;
  8262. 800375c: 697b ldr r3, [r7, #20]
  8263. 800375e: 08da lsrs r2, r3, #3
  8264. 8003760: 687b ldr r3, [r7, #4]
  8265. 8003762: 3208 adds r2, #8
  8266. 8003764: 6939 ldr r1, [r7, #16]
  8267. 8003766: f843 1022 str.w r1, [r3, r2, lsl #2]
  8268. }
  8269. /* Configure IO Direction mode (Input, Output, Alternate or Analog) */
  8270. temp = GPIOx->MODER;
  8271. 800376a: 687b ldr r3, [r7, #4]
  8272. 800376c: 681b ldr r3, [r3, #0]
  8273. 800376e: 613b str r3, [r7, #16]
  8274. CLEAR_BIT(temp, GPIO_MODER_MODER0 << (position * 2));
  8275. 8003770: 697b ldr r3, [r7, #20]
  8276. 8003772: 005b lsls r3, r3, #1
  8277. 8003774: 2203 movs r2, #3
  8278. 8003776: fa02 f303 lsl.w r3, r2, r3
  8279. 800377a: 43db mvns r3, r3
  8280. 800377c: 693a ldr r2, [r7, #16]
  8281. 800377e: 4013 ands r3, r2
  8282. 8003780: 613b str r3, [r7, #16]
  8283. SET_BIT(temp, (GPIO_Init->Mode & GPIO_MODE) << (position * 2));
  8284. 8003782: 683b ldr r3, [r7, #0]
  8285. 8003784: 685b ldr r3, [r3, #4]
  8286. 8003786: f003 0203 and.w r2, r3, #3
  8287. 800378a: 697b ldr r3, [r7, #20]
  8288. 800378c: 005b lsls r3, r3, #1
  8289. 800378e: fa02 f303 lsl.w r3, r2, r3
  8290. 8003792: 693a ldr r2, [r7, #16]
  8291. 8003794: 4313 orrs r3, r2
  8292. 8003796: 613b str r3, [r7, #16]
  8293. GPIOx->MODER = temp;
  8294. 8003798: 687b ldr r3, [r7, #4]
  8295. 800379a: 693a ldr r2, [r7, #16]
  8296. 800379c: 601a str r2, [r3, #0]
  8297. /*--------------------- EXTI Mode Configuration ------------------------*/
  8298. /* Configure the External Interrupt or event for the current IO */
  8299. if ((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
  8300. 800379e: 683b ldr r3, [r7, #0]
  8301. 80037a0: 685b ldr r3, [r3, #4]
  8302. 80037a2: f403 3340 and.w r3, r3, #196608 ; 0x30000
  8303. 80037a6: 2b00 cmp r3, #0
  8304. 80037a8: f000 80a0 beq.w 80038ec <HAL_GPIO_Init+0x2bc>
  8305. {
  8306. /* Enable SYSCFG Clock */
  8307. __HAL_RCC_SYSCFG_CLK_ENABLE();
  8308. 80037ac: 4b58 ldr r3, [pc, #352] ; (8003910 <HAL_GPIO_Init+0x2e0>)
  8309. 80037ae: 6a1b ldr r3, [r3, #32]
  8310. 80037b0: 4a57 ldr r2, [pc, #348] ; (8003910 <HAL_GPIO_Init+0x2e0>)
  8311. 80037b2: f043 0301 orr.w r3, r3, #1
  8312. 80037b6: 6213 str r3, [r2, #32]
  8313. 80037b8: 4b55 ldr r3, [pc, #340] ; (8003910 <HAL_GPIO_Init+0x2e0>)
  8314. 80037ba: 6a1b ldr r3, [r3, #32]
  8315. 80037bc: f003 0301 and.w r3, r3, #1
  8316. 80037c0: 60bb str r3, [r7, #8]
  8317. 80037c2: 68bb ldr r3, [r7, #8]
  8318. temp = SYSCFG->EXTICR[position >> 2];
  8319. 80037c4: 4a53 ldr r2, [pc, #332] ; (8003914 <HAL_GPIO_Init+0x2e4>)
  8320. 80037c6: 697b ldr r3, [r7, #20]
  8321. 80037c8: 089b lsrs r3, r3, #2
  8322. 80037ca: 3302 adds r3, #2
  8323. 80037cc: f852 3023 ldr.w r3, [r2, r3, lsl #2]
  8324. 80037d0: 613b str r3, [r7, #16]
  8325. CLEAR_BIT(temp, (0x0FU) << (4 * (position & 0x03)));
  8326. 80037d2: 697b ldr r3, [r7, #20]
  8327. 80037d4: f003 0303 and.w r3, r3, #3
  8328. 80037d8: 009b lsls r3, r3, #2
  8329. 80037da: 220f movs r2, #15
  8330. 80037dc: fa02 f303 lsl.w r3, r2, r3
  8331. 80037e0: 43db mvns r3, r3
  8332. 80037e2: 693a ldr r2, [r7, #16]
  8333. 80037e4: 4013 ands r3, r2
  8334. 80037e6: 613b str r3, [r7, #16]
  8335. SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03)));
  8336. 80037e8: 687b ldr r3, [r7, #4]
  8337. 80037ea: 4a4b ldr r2, [pc, #300] ; (8003918 <HAL_GPIO_Init+0x2e8>)
  8338. 80037ec: 4293 cmp r3, r2
  8339. 80037ee: d019 beq.n 8003824 <HAL_GPIO_Init+0x1f4>
  8340. 80037f0: 687b ldr r3, [r7, #4]
  8341. 80037f2: 4a4a ldr r2, [pc, #296] ; (800391c <HAL_GPIO_Init+0x2ec>)
  8342. 80037f4: 4293 cmp r3, r2
  8343. 80037f6: d013 beq.n 8003820 <HAL_GPIO_Init+0x1f0>
  8344. 80037f8: 687b ldr r3, [r7, #4]
  8345. 80037fa: 4a49 ldr r2, [pc, #292] ; (8003920 <HAL_GPIO_Init+0x2f0>)
  8346. 80037fc: 4293 cmp r3, r2
  8347. 80037fe: d00d beq.n 800381c <HAL_GPIO_Init+0x1ec>
  8348. 8003800: 687b ldr r3, [r7, #4]
  8349. 8003802: 4a48 ldr r2, [pc, #288] ; (8003924 <HAL_GPIO_Init+0x2f4>)
  8350. 8003804: 4293 cmp r3, r2
  8351. 8003806: d007 beq.n 8003818 <HAL_GPIO_Init+0x1e8>
  8352. 8003808: 687b ldr r3, [r7, #4]
  8353. 800380a: 4a47 ldr r2, [pc, #284] ; (8003928 <HAL_GPIO_Init+0x2f8>)
  8354. 800380c: 4293 cmp r3, r2
  8355. 800380e: d101 bne.n 8003814 <HAL_GPIO_Init+0x1e4>
  8356. 8003810: 2304 movs r3, #4
  8357. 8003812: e008 b.n 8003826 <HAL_GPIO_Init+0x1f6>
  8358. 8003814: 2305 movs r3, #5
  8359. 8003816: e006 b.n 8003826 <HAL_GPIO_Init+0x1f6>
  8360. 8003818: 2303 movs r3, #3
  8361. 800381a: e004 b.n 8003826 <HAL_GPIO_Init+0x1f6>
  8362. 800381c: 2302 movs r3, #2
  8363. 800381e: e002 b.n 8003826 <HAL_GPIO_Init+0x1f6>
  8364. 8003820: 2301 movs r3, #1
  8365. 8003822: e000 b.n 8003826 <HAL_GPIO_Init+0x1f6>
  8366. 8003824: 2300 movs r3, #0
  8367. 8003826: 697a ldr r2, [r7, #20]
  8368. 8003828: f002 0203 and.w r2, r2, #3
  8369. 800382c: 0092 lsls r2, r2, #2
  8370. 800382e: 4093 lsls r3, r2
  8371. 8003830: 693a ldr r2, [r7, #16]
  8372. 8003832: 4313 orrs r3, r2
  8373. 8003834: 613b str r3, [r7, #16]
  8374. SYSCFG->EXTICR[position >> 2] = temp;
  8375. 8003836: 4937 ldr r1, [pc, #220] ; (8003914 <HAL_GPIO_Init+0x2e4>)
  8376. 8003838: 697b ldr r3, [r7, #20]
  8377. 800383a: 089b lsrs r3, r3, #2
  8378. 800383c: 3302 adds r3, #2
  8379. 800383e: 693a ldr r2, [r7, #16]
  8380. 8003840: f841 2023 str.w r2, [r1, r3, lsl #2]
  8381. /* Clear EXTI line configuration */
  8382. temp = EXTI->IMR;
  8383. 8003844: 4b39 ldr r3, [pc, #228] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8384. 8003846: 681b ldr r3, [r3, #0]
  8385. 8003848: 613b str r3, [r7, #16]
  8386. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8387. 800384a: 68fb ldr r3, [r7, #12]
  8388. 800384c: 43db mvns r3, r3
  8389. 800384e: 693a ldr r2, [r7, #16]
  8390. 8003850: 4013 ands r3, r2
  8391. 8003852: 613b str r3, [r7, #16]
  8392. if ((GPIO_Init->Mode & EXTI_IT) != 0x00U)
  8393. 8003854: 683b ldr r3, [r7, #0]
  8394. 8003856: 685b ldr r3, [r3, #4]
  8395. 8003858: f403 3380 and.w r3, r3, #65536 ; 0x10000
  8396. 800385c: 2b00 cmp r3, #0
  8397. 800385e: d003 beq.n 8003868 <HAL_GPIO_Init+0x238>
  8398. {
  8399. SET_BIT(temp, iocurrent);
  8400. 8003860: 693a ldr r2, [r7, #16]
  8401. 8003862: 68fb ldr r3, [r7, #12]
  8402. 8003864: 4313 orrs r3, r2
  8403. 8003866: 613b str r3, [r7, #16]
  8404. }
  8405. EXTI->IMR = temp;
  8406. 8003868: 4a30 ldr r2, [pc, #192] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8407. 800386a: 693b ldr r3, [r7, #16]
  8408. 800386c: 6013 str r3, [r2, #0]
  8409. temp = EXTI->EMR;
  8410. 800386e: 4b2f ldr r3, [pc, #188] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8411. 8003870: 685b ldr r3, [r3, #4]
  8412. 8003872: 613b str r3, [r7, #16]
  8413. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8414. 8003874: 68fb ldr r3, [r7, #12]
  8415. 8003876: 43db mvns r3, r3
  8416. 8003878: 693a ldr r2, [r7, #16]
  8417. 800387a: 4013 ands r3, r2
  8418. 800387c: 613b str r3, [r7, #16]
  8419. if ((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
  8420. 800387e: 683b ldr r3, [r7, #0]
  8421. 8003880: 685b ldr r3, [r3, #4]
  8422. 8003882: f403 3300 and.w r3, r3, #131072 ; 0x20000
  8423. 8003886: 2b00 cmp r3, #0
  8424. 8003888: d003 beq.n 8003892 <HAL_GPIO_Init+0x262>
  8425. {
  8426. SET_BIT(temp, iocurrent);
  8427. 800388a: 693a ldr r2, [r7, #16]
  8428. 800388c: 68fb ldr r3, [r7, #12]
  8429. 800388e: 4313 orrs r3, r2
  8430. 8003890: 613b str r3, [r7, #16]
  8431. }
  8432. EXTI->EMR = temp;
  8433. 8003892: 4a26 ldr r2, [pc, #152] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8434. 8003894: 693b ldr r3, [r7, #16]
  8435. 8003896: 6053 str r3, [r2, #4]
  8436. /* Clear Rising Falling edge configuration */
  8437. temp = EXTI->RTSR;
  8438. 8003898: 4b24 ldr r3, [pc, #144] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8439. 800389a: 689b ldr r3, [r3, #8]
  8440. 800389c: 613b str r3, [r7, #16]
  8441. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8442. 800389e: 68fb ldr r3, [r7, #12]
  8443. 80038a0: 43db mvns r3, r3
  8444. 80038a2: 693a ldr r2, [r7, #16]
  8445. 80038a4: 4013 ands r3, r2
  8446. 80038a6: 613b str r3, [r7, #16]
  8447. if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
  8448. 80038a8: 683b ldr r3, [r7, #0]
  8449. 80038aa: 685b ldr r3, [r3, #4]
  8450. 80038ac: f403 1380 and.w r3, r3, #1048576 ; 0x100000
  8451. 80038b0: 2b00 cmp r3, #0
  8452. 80038b2: d003 beq.n 80038bc <HAL_GPIO_Init+0x28c>
  8453. {
  8454. SET_BIT(temp, iocurrent);
  8455. 80038b4: 693a ldr r2, [r7, #16]
  8456. 80038b6: 68fb ldr r3, [r7, #12]
  8457. 80038b8: 4313 orrs r3, r2
  8458. 80038ba: 613b str r3, [r7, #16]
  8459. }
  8460. EXTI->RTSR = temp;
  8461. 80038bc: 4a1b ldr r2, [pc, #108] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8462. 80038be: 693b ldr r3, [r7, #16]
  8463. 80038c0: 6093 str r3, [r2, #8]
  8464. temp = EXTI->FTSR;
  8465. 80038c2: 4b1a ldr r3, [pc, #104] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8466. 80038c4: 68db ldr r3, [r3, #12]
  8467. 80038c6: 613b str r3, [r7, #16]
  8468. CLEAR_BIT(temp, (uint32_t)iocurrent);
  8469. 80038c8: 68fb ldr r3, [r7, #12]
  8470. 80038ca: 43db mvns r3, r3
  8471. 80038cc: 693a ldr r2, [r7, #16]
  8472. 80038ce: 4013 ands r3, r2
  8473. 80038d0: 613b str r3, [r7, #16]
  8474. if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
  8475. 80038d2: 683b ldr r3, [r7, #0]
  8476. 80038d4: 685b ldr r3, [r3, #4]
  8477. 80038d6: f403 1300 and.w r3, r3, #2097152 ; 0x200000
  8478. 80038da: 2b00 cmp r3, #0
  8479. 80038dc: d003 beq.n 80038e6 <HAL_GPIO_Init+0x2b6>
  8480. {
  8481. SET_BIT(temp, iocurrent);
  8482. 80038de: 693a ldr r2, [r7, #16]
  8483. 80038e0: 68fb ldr r3, [r7, #12]
  8484. 80038e2: 4313 orrs r3, r2
  8485. 80038e4: 613b str r3, [r7, #16]
  8486. }
  8487. EXTI->FTSR = temp;
  8488. 80038e6: 4a11 ldr r2, [pc, #68] ; (800392c <HAL_GPIO_Init+0x2fc>)
  8489. 80038e8: 693b ldr r3, [r7, #16]
  8490. 80038ea: 60d3 str r3, [r2, #12]
  8491. }
  8492. }
  8493. position++;
  8494. 80038ec: 697b ldr r3, [r7, #20]
  8495. 80038ee: 3301 adds r3, #1
  8496. 80038f0: 617b str r3, [r7, #20]
  8497. while (((GPIO_Init->Pin) >> position) != 0)
  8498. 80038f2: 683b ldr r3, [r7, #0]
  8499. 80038f4: 681a ldr r2, [r3, #0]
  8500. 80038f6: 697b ldr r3, [r7, #20]
  8501. 80038f8: fa22 f303 lsr.w r3, r2, r3
  8502. 80038fc: 2b00 cmp r3, #0
  8503. 80038fe: f47f aea3 bne.w 8003648 <HAL_GPIO_Init+0x18>
  8504. }
  8505. }
  8506. 8003902: bf00 nop
  8507. 8003904: bf00 nop
  8508. 8003906: 371c adds r7, #28
  8509. 8003908: 46bd mov sp, r7
  8510. 800390a: bc80 pop {r7}
  8511. 800390c: 4770 bx lr
  8512. 800390e: bf00 nop
  8513. 8003910: 40023800 .word 0x40023800
  8514. 8003914: 40010000 .word 0x40010000
  8515. 8003918: 40020000 .word 0x40020000
  8516. 800391c: 40020400 .word 0x40020400
  8517. 8003920: 40020800 .word 0x40020800
  8518. 8003924: 40020c00 .word 0x40020c00
  8519. 8003928: 40021000 .word 0x40021000
  8520. 800392c: 40010400 .word 0x40010400
  8521. 08003930 <HAL_GPIO_WritePin>:
  8522. * @arg GPIO_PIN_RESET: to clear the port pin
  8523. * @arg GPIO_PIN_SET: to set the port pin
  8524. * @retval None
  8525. */
  8526. void HAL_GPIO_WritePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState)
  8527. {
  8528. 8003930: b480 push {r7}
  8529. 8003932: b083 sub sp, #12
  8530. 8003934: af00 add r7, sp, #0
  8531. 8003936: 6078 str r0, [r7, #4]
  8532. 8003938: 460b mov r3, r1
  8533. 800393a: 807b strh r3, [r7, #2]
  8534. 800393c: 4613 mov r3, r2
  8535. 800393e: 707b strb r3, [r7, #1]
  8536. /* Check the parameters */
  8537. assert_param(IS_GPIO_PIN(GPIO_Pin));
  8538. assert_param(IS_GPIO_PIN_ACTION(PinState));
  8539. if (PinState != GPIO_PIN_RESET)
  8540. 8003940: 787b ldrb r3, [r7, #1]
  8541. 8003942: 2b00 cmp r3, #0
  8542. 8003944: d003 beq.n 800394e <HAL_GPIO_WritePin+0x1e>
  8543. {
  8544. GPIOx->BSRR = (uint32_t)GPIO_Pin;
  8545. 8003946: 887a ldrh r2, [r7, #2]
  8546. 8003948: 687b ldr r3, [r7, #4]
  8547. 800394a: 619a str r2, [r3, #24]
  8548. }
  8549. else
  8550. {
  8551. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16 ;
  8552. }
  8553. }
  8554. 800394c: e003 b.n 8003956 <HAL_GPIO_WritePin+0x26>
  8555. GPIOx->BSRR = (uint32_t)GPIO_Pin << 16 ;
  8556. 800394e: 887b ldrh r3, [r7, #2]
  8557. 8003950: 041a lsls r2, r3, #16
  8558. 8003952: 687b ldr r3, [r7, #4]
  8559. 8003954: 619a str r2, [r3, #24]
  8560. }
  8561. 8003956: bf00 nop
  8562. 8003958: 370c adds r7, #12
  8563. 800395a: 46bd mov sp, r7
  8564. 800395c: bc80 pop {r7}
  8565. 800395e: 4770 bx lr
  8566. 08003960 <HAL_GPIO_EXTI_IRQHandler>:
  8567. * @brief This function handles EXTI interrupt request.
  8568. * @param GPIO_Pin Specifies the port pin connected to corresponding EXTI line.
  8569. * @retval None
  8570. */
  8571. void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin)
  8572. {
  8573. 8003960: b580 push {r7, lr}
  8574. 8003962: b082 sub sp, #8
  8575. 8003964: af00 add r7, sp, #0
  8576. 8003966: 4603 mov r3, r0
  8577. 8003968: 80fb strh r3, [r7, #6]
  8578. /* EXTI line interrupt detected */
  8579. if (__HAL_GPIO_EXTI_GET_IT(GPIO_Pin) != RESET)
  8580. 800396a: 4b08 ldr r3, [pc, #32] ; (800398c <HAL_GPIO_EXTI_IRQHandler+0x2c>)
  8581. 800396c: 695a ldr r2, [r3, #20]
  8582. 800396e: 88fb ldrh r3, [r7, #6]
  8583. 8003970: 4013 ands r3, r2
  8584. 8003972: 2b00 cmp r3, #0
  8585. 8003974: d006 beq.n 8003984 <HAL_GPIO_EXTI_IRQHandler+0x24>
  8586. {
  8587. __HAL_GPIO_EXTI_CLEAR_IT(GPIO_Pin);
  8588. 8003976: 4a05 ldr r2, [pc, #20] ; (800398c <HAL_GPIO_EXTI_IRQHandler+0x2c>)
  8589. 8003978: 88fb ldrh r3, [r7, #6]
  8590. 800397a: 6153 str r3, [r2, #20]
  8591. HAL_GPIO_EXTI_Callback(GPIO_Pin);
  8592. 800397c: 88fb ldrh r3, [r7, #6]
  8593. 800397e: 4618 mov r0, r3
  8594. 8003980: f7fd fb34 bl 8000fec <HAL_GPIO_EXTI_Callback>
  8595. }
  8596. }
  8597. 8003984: bf00 nop
  8598. 8003986: 3708 adds r7, #8
  8599. 8003988: 46bd mov sp, r7
  8600. 800398a: bd80 pop {r7, pc}
  8601. 800398c: 40010400 .word 0x40010400
  8602. 08003990 <HAL_I2C_Init>:
  8603. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains
  8604. * the configuration information for the specified I2C.
  8605. * @retval HAL status
  8606. */
  8607. HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
  8608. {
  8609. 8003990: b580 push {r7, lr}
  8610. 8003992: b084 sub sp, #16
  8611. 8003994: af00 add r7, sp, #0
  8612. 8003996: 6078 str r0, [r7, #4]
  8613. uint32_t freqrange;
  8614. uint32_t pclk1;
  8615. /* Check the I2C handle allocation */
  8616. if (hi2c == NULL)
  8617. 8003998: 687b ldr r3, [r7, #4]
  8618. 800399a: 2b00 cmp r3, #0
  8619. 800399c: d101 bne.n 80039a2 <HAL_I2C_Init+0x12>
  8620. {
  8621. return HAL_ERROR;
  8622. 800399e: 2301 movs r3, #1
  8623. 80039a0: e12b b.n 8003bfa <HAL_I2C_Init+0x26a>
  8624. assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode));
  8625. assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2));
  8626. assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode));
  8627. assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode));
  8628. if (hi2c->State == HAL_I2C_STATE_RESET)
  8629. 80039a2: 687b ldr r3, [r7, #4]
  8630. 80039a4: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  8631. 80039a8: b2db uxtb r3, r3
  8632. 80039aa: 2b00 cmp r3, #0
  8633. 80039ac: d106 bne.n 80039bc <HAL_I2C_Init+0x2c>
  8634. {
  8635. /* Allocate lock resource and initialize it */
  8636. hi2c->Lock = HAL_UNLOCKED;
  8637. 80039ae: 687b ldr r3, [r7, #4]
  8638. 80039b0: 2200 movs r2, #0
  8639. 80039b2: f883 203c strb.w r2, [r3, #60] ; 0x3c
  8640. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  8641. hi2c->MspInitCallback(hi2c);
  8642. #else
  8643. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  8644. HAL_I2C_MspInit(hi2c);
  8645. 80039b6: 6878 ldr r0, [r7, #4]
  8646. 80039b8: f7fe f93c bl 8001c34 <HAL_I2C_MspInit>
  8647. #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */
  8648. }
  8649. hi2c->State = HAL_I2C_STATE_BUSY;
  8650. 80039bc: 687b ldr r3, [r7, #4]
  8651. 80039be: 2224 movs r2, #36 ; 0x24
  8652. 80039c0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  8653. /* Disable the selected I2C peripheral */
  8654. __HAL_I2C_DISABLE(hi2c);
  8655. 80039c4: 687b ldr r3, [r7, #4]
  8656. 80039c6: 681b ldr r3, [r3, #0]
  8657. 80039c8: 681a ldr r2, [r3, #0]
  8658. 80039ca: 687b ldr r3, [r7, #4]
  8659. 80039cc: 681b ldr r3, [r3, #0]
  8660. 80039ce: f022 0201 bic.w r2, r2, #1
  8661. 80039d2: 601a str r2, [r3, #0]
  8662. /*Reset I2C*/
  8663. hi2c->Instance->CR1 |= I2C_CR1_SWRST;
  8664. 80039d4: 687b ldr r3, [r7, #4]
  8665. 80039d6: 681b ldr r3, [r3, #0]
  8666. 80039d8: 681a ldr r2, [r3, #0]
  8667. 80039da: 687b ldr r3, [r7, #4]
  8668. 80039dc: 681b ldr r3, [r3, #0]
  8669. 80039de: f442 4200 orr.w r2, r2, #32768 ; 0x8000
  8670. 80039e2: 601a str r2, [r3, #0]
  8671. hi2c->Instance->CR1 &= ~I2C_CR1_SWRST;
  8672. 80039e4: 687b ldr r3, [r7, #4]
  8673. 80039e6: 681b ldr r3, [r3, #0]
  8674. 80039e8: 681a ldr r2, [r3, #0]
  8675. 80039ea: 687b ldr r3, [r7, #4]
  8676. 80039ec: 681b ldr r3, [r3, #0]
  8677. 80039ee: f422 4200 bic.w r2, r2, #32768 ; 0x8000
  8678. 80039f2: 601a str r2, [r3, #0]
  8679. /* Get PCLK1 frequency */
  8680. pclk1 = HAL_RCC_GetPCLK1Freq();
  8681. 80039f4: f001 f962 bl 8004cbc <HAL_RCC_GetPCLK1Freq>
  8682. 80039f8: 60f8 str r0, [r7, #12]
  8683. /* Check the minimum allowed PCLK1 frequency */
  8684. if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U)
  8685. 80039fa: 687b ldr r3, [r7, #4]
  8686. 80039fc: 685b ldr r3, [r3, #4]
  8687. 80039fe: 4a81 ldr r2, [pc, #516] ; (8003c04 <HAL_I2C_Init+0x274>)
  8688. 8003a00: 4293 cmp r3, r2
  8689. 8003a02: d807 bhi.n 8003a14 <HAL_I2C_Init+0x84>
  8690. 8003a04: 68fb ldr r3, [r7, #12]
  8691. 8003a06: 4a80 ldr r2, [pc, #512] ; (8003c08 <HAL_I2C_Init+0x278>)
  8692. 8003a08: 4293 cmp r3, r2
  8693. 8003a0a: bf94 ite ls
  8694. 8003a0c: 2301 movls r3, #1
  8695. 8003a0e: 2300 movhi r3, #0
  8696. 8003a10: b2db uxtb r3, r3
  8697. 8003a12: e006 b.n 8003a22 <HAL_I2C_Init+0x92>
  8698. 8003a14: 68fb ldr r3, [r7, #12]
  8699. 8003a16: 4a7d ldr r2, [pc, #500] ; (8003c0c <HAL_I2C_Init+0x27c>)
  8700. 8003a18: 4293 cmp r3, r2
  8701. 8003a1a: bf94 ite ls
  8702. 8003a1c: 2301 movls r3, #1
  8703. 8003a1e: 2300 movhi r3, #0
  8704. 8003a20: b2db uxtb r3, r3
  8705. 8003a22: 2b00 cmp r3, #0
  8706. 8003a24: d001 beq.n 8003a2a <HAL_I2C_Init+0x9a>
  8707. {
  8708. return HAL_ERROR;
  8709. 8003a26: 2301 movs r3, #1
  8710. 8003a28: e0e7 b.n 8003bfa <HAL_I2C_Init+0x26a>
  8711. }
  8712. /* Calculate frequency range */
  8713. freqrange = I2C_FREQRANGE(pclk1);
  8714. 8003a2a: 68fb ldr r3, [r7, #12]
  8715. 8003a2c: 4a78 ldr r2, [pc, #480] ; (8003c10 <HAL_I2C_Init+0x280>)
  8716. 8003a2e: fba2 2303 umull r2, r3, r2, r3
  8717. 8003a32: 0c9b lsrs r3, r3, #18
  8718. 8003a34: 60bb str r3, [r7, #8]
  8719. /*---------------------------- I2Cx CR2 Configuration ----------------------*/
  8720. /* Configure I2Cx: Frequency range */
  8721. MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange);
  8722. 8003a36: 687b ldr r3, [r7, #4]
  8723. 8003a38: 681b ldr r3, [r3, #0]
  8724. 8003a3a: 685b ldr r3, [r3, #4]
  8725. 8003a3c: f023 013f bic.w r1, r3, #63 ; 0x3f
  8726. 8003a40: 687b ldr r3, [r7, #4]
  8727. 8003a42: 681b ldr r3, [r3, #0]
  8728. 8003a44: 68ba ldr r2, [r7, #8]
  8729. 8003a46: 430a orrs r2, r1
  8730. 8003a48: 605a str r2, [r3, #4]
  8731. /*---------------------------- I2Cx TRISE Configuration --------------------*/
  8732. /* Configure I2Cx: Rise Time */
  8733. MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed));
  8734. 8003a4a: 687b ldr r3, [r7, #4]
  8735. 8003a4c: 681b ldr r3, [r3, #0]
  8736. 8003a4e: 6a1b ldr r3, [r3, #32]
  8737. 8003a50: f023 013f bic.w r1, r3, #63 ; 0x3f
  8738. 8003a54: 687b ldr r3, [r7, #4]
  8739. 8003a56: 685b ldr r3, [r3, #4]
  8740. 8003a58: 4a6a ldr r2, [pc, #424] ; (8003c04 <HAL_I2C_Init+0x274>)
  8741. 8003a5a: 4293 cmp r3, r2
  8742. 8003a5c: d802 bhi.n 8003a64 <HAL_I2C_Init+0xd4>
  8743. 8003a5e: 68bb ldr r3, [r7, #8]
  8744. 8003a60: 3301 adds r3, #1
  8745. 8003a62: e009 b.n 8003a78 <HAL_I2C_Init+0xe8>
  8746. 8003a64: 68bb ldr r3, [r7, #8]
  8747. 8003a66: f44f 7296 mov.w r2, #300 ; 0x12c
  8748. 8003a6a: fb02 f303 mul.w r3, r2, r3
  8749. 8003a6e: 4a69 ldr r2, [pc, #420] ; (8003c14 <HAL_I2C_Init+0x284>)
  8750. 8003a70: fba2 2303 umull r2, r3, r2, r3
  8751. 8003a74: 099b lsrs r3, r3, #6
  8752. 8003a76: 3301 adds r3, #1
  8753. 8003a78: 687a ldr r2, [r7, #4]
  8754. 8003a7a: 6812 ldr r2, [r2, #0]
  8755. 8003a7c: 430b orrs r3, r1
  8756. 8003a7e: 6213 str r3, [r2, #32]
  8757. /*---------------------------- I2Cx CCR Configuration ----------------------*/
  8758. /* Configure I2Cx: Speed */
  8759. MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle));
  8760. 8003a80: 687b ldr r3, [r7, #4]
  8761. 8003a82: 681b ldr r3, [r3, #0]
  8762. 8003a84: 69db ldr r3, [r3, #28]
  8763. 8003a86: f423 424f bic.w r2, r3, #52992 ; 0xcf00
  8764. 8003a8a: f022 02ff bic.w r2, r2, #255 ; 0xff
  8765. 8003a8e: 687b ldr r3, [r7, #4]
  8766. 8003a90: 685b ldr r3, [r3, #4]
  8767. 8003a92: 495c ldr r1, [pc, #368] ; (8003c04 <HAL_I2C_Init+0x274>)
  8768. 8003a94: 428b cmp r3, r1
  8769. 8003a96: d819 bhi.n 8003acc <HAL_I2C_Init+0x13c>
  8770. 8003a98: 68fb ldr r3, [r7, #12]
  8771. 8003a9a: 1e59 subs r1, r3, #1
  8772. 8003a9c: 687b ldr r3, [r7, #4]
  8773. 8003a9e: 685b ldr r3, [r3, #4]
  8774. 8003aa0: 005b lsls r3, r3, #1
  8775. 8003aa2: fbb1 f3f3 udiv r3, r1, r3
  8776. 8003aa6: 1c59 adds r1, r3, #1
  8777. 8003aa8: f640 73fc movw r3, #4092 ; 0xffc
  8778. 8003aac: 400b ands r3, r1
  8779. 8003aae: 2b00 cmp r3, #0
  8780. 8003ab0: d00a beq.n 8003ac8 <HAL_I2C_Init+0x138>
  8781. 8003ab2: 68fb ldr r3, [r7, #12]
  8782. 8003ab4: 1e59 subs r1, r3, #1
  8783. 8003ab6: 687b ldr r3, [r7, #4]
  8784. 8003ab8: 685b ldr r3, [r3, #4]
  8785. 8003aba: 005b lsls r3, r3, #1
  8786. 8003abc: fbb1 f3f3 udiv r3, r1, r3
  8787. 8003ac0: 3301 adds r3, #1
  8788. 8003ac2: f3c3 030b ubfx r3, r3, #0, #12
  8789. 8003ac6: e051 b.n 8003b6c <HAL_I2C_Init+0x1dc>
  8790. 8003ac8: 2304 movs r3, #4
  8791. 8003aca: e04f b.n 8003b6c <HAL_I2C_Init+0x1dc>
  8792. 8003acc: 687b ldr r3, [r7, #4]
  8793. 8003ace: 689b ldr r3, [r3, #8]
  8794. 8003ad0: 2b00 cmp r3, #0
  8795. 8003ad2: d111 bne.n 8003af8 <HAL_I2C_Init+0x168>
  8796. 8003ad4: 68fb ldr r3, [r7, #12]
  8797. 8003ad6: 1e58 subs r0, r3, #1
  8798. 8003ad8: 687b ldr r3, [r7, #4]
  8799. 8003ada: 6859 ldr r1, [r3, #4]
  8800. 8003adc: 460b mov r3, r1
  8801. 8003ade: 005b lsls r3, r3, #1
  8802. 8003ae0: 440b add r3, r1
  8803. 8003ae2: fbb0 f3f3 udiv r3, r0, r3
  8804. 8003ae6: 3301 adds r3, #1
  8805. 8003ae8: f3c3 030b ubfx r3, r3, #0, #12
  8806. 8003aec: 2b00 cmp r3, #0
  8807. 8003aee: bf0c ite eq
  8808. 8003af0: 2301 moveq r3, #1
  8809. 8003af2: 2300 movne r3, #0
  8810. 8003af4: b2db uxtb r3, r3
  8811. 8003af6: e012 b.n 8003b1e <HAL_I2C_Init+0x18e>
  8812. 8003af8: 68fb ldr r3, [r7, #12]
  8813. 8003afa: 1e58 subs r0, r3, #1
  8814. 8003afc: 687b ldr r3, [r7, #4]
  8815. 8003afe: 6859 ldr r1, [r3, #4]
  8816. 8003b00: 460b mov r3, r1
  8817. 8003b02: 009b lsls r3, r3, #2
  8818. 8003b04: 440b add r3, r1
  8819. 8003b06: 0099 lsls r1, r3, #2
  8820. 8003b08: 440b add r3, r1
  8821. 8003b0a: fbb0 f3f3 udiv r3, r0, r3
  8822. 8003b0e: 3301 adds r3, #1
  8823. 8003b10: f3c3 030b ubfx r3, r3, #0, #12
  8824. 8003b14: 2b00 cmp r3, #0
  8825. 8003b16: bf0c ite eq
  8826. 8003b18: 2301 moveq r3, #1
  8827. 8003b1a: 2300 movne r3, #0
  8828. 8003b1c: b2db uxtb r3, r3
  8829. 8003b1e: 2b00 cmp r3, #0
  8830. 8003b20: d001 beq.n 8003b26 <HAL_I2C_Init+0x196>
  8831. 8003b22: 2301 movs r3, #1
  8832. 8003b24: e022 b.n 8003b6c <HAL_I2C_Init+0x1dc>
  8833. 8003b26: 687b ldr r3, [r7, #4]
  8834. 8003b28: 689b ldr r3, [r3, #8]
  8835. 8003b2a: 2b00 cmp r3, #0
  8836. 8003b2c: d10e bne.n 8003b4c <HAL_I2C_Init+0x1bc>
  8837. 8003b2e: 68fb ldr r3, [r7, #12]
  8838. 8003b30: 1e58 subs r0, r3, #1
  8839. 8003b32: 687b ldr r3, [r7, #4]
  8840. 8003b34: 6859 ldr r1, [r3, #4]
  8841. 8003b36: 460b mov r3, r1
  8842. 8003b38: 005b lsls r3, r3, #1
  8843. 8003b3a: 440b add r3, r1
  8844. 8003b3c: fbb0 f3f3 udiv r3, r0, r3
  8845. 8003b40: 3301 adds r3, #1
  8846. 8003b42: f3c3 030b ubfx r3, r3, #0, #12
  8847. 8003b46: f443 4300 orr.w r3, r3, #32768 ; 0x8000
  8848. 8003b4a: e00f b.n 8003b6c <HAL_I2C_Init+0x1dc>
  8849. 8003b4c: 68fb ldr r3, [r7, #12]
  8850. 8003b4e: 1e58 subs r0, r3, #1
  8851. 8003b50: 687b ldr r3, [r7, #4]
  8852. 8003b52: 6859 ldr r1, [r3, #4]
  8853. 8003b54: 460b mov r3, r1
  8854. 8003b56: 009b lsls r3, r3, #2
  8855. 8003b58: 440b add r3, r1
  8856. 8003b5a: 0099 lsls r1, r3, #2
  8857. 8003b5c: 440b add r3, r1
  8858. 8003b5e: fbb0 f3f3 udiv r3, r0, r3
  8859. 8003b62: 3301 adds r3, #1
  8860. 8003b64: f3c3 030b ubfx r3, r3, #0, #12
  8861. 8003b68: f443 4340 orr.w r3, r3, #49152 ; 0xc000
  8862. 8003b6c: 6879 ldr r1, [r7, #4]
  8863. 8003b6e: 6809 ldr r1, [r1, #0]
  8864. 8003b70: 4313 orrs r3, r2
  8865. 8003b72: 61cb str r3, [r1, #28]
  8866. /*---------------------------- I2Cx CR1 Configuration ----------------------*/
  8867. /* Configure I2Cx: Generalcall and NoStretch mode */
  8868. MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode));
  8869. 8003b74: 687b ldr r3, [r7, #4]
  8870. 8003b76: 681b ldr r3, [r3, #0]
  8871. 8003b78: 681b ldr r3, [r3, #0]
  8872. 8003b7a: f023 01c0 bic.w r1, r3, #192 ; 0xc0
  8873. 8003b7e: 687b ldr r3, [r7, #4]
  8874. 8003b80: 69da ldr r2, [r3, #28]
  8875. 8003b82: 687b ldr r3, [r7, #4]
  8876. 8003b84: 6a1b ldr r3, [r3, #32]
  8877. 8003b86: 431a orrs r2, r3
  8878. 8003b88: 687b ldr r3, [r7, #4]
  8879. 8003b8a: 681b ldr r3, [r3, #0]
  8880. 8003b8c: 430a orrs r2, r1
  8881. 8003b8e: 601a str r2, [r3, #0]
  8882. /*---------------------------- I2Cx OAR1 Configuration ---------------------*/
  8883. /* Configure I2Cx: Own Address1 and addressing mode */
  8884. 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));
  8885. 8003b90: 687b ldr r3, [r7, #4]
  8886. 8003b92: 681b ldr r3, [r3, #0]
  8887. 8003b94: 689b ldr r3, [r3, #8]
  8888. 8003b96: f423 4303 bic.w r3, r3, #33536 ; 0x8300
  8889. 8003b9a: f023 03ff bic.w r3, r3, #255 ; 0xff
  8890. 8003b9e: 687a ldr r2, [r7, #4]
  8891. 8003ba0: 6911 ldr r1, [r2, #16]
  8892. 8003ba2: 687a ldr r2, [r7, #4]
  8893. 8003ba4: 68d2 ldr r2, [r2, #12]
  8894. 8003ba6: 4311 orrs r1, r2
  8895. 8003ba8: 687a ldr r2, [r7, #4]
  8896. 8003baa: 6812 ldr r2, [r2, #0]
  8897. 8003bac: 430b orrs r3, r1
  8898. 8003bae: 6093 str r3, [r2, #8]
  8899. /*---------------------------- I2Cx OAR2 Configuration ---------------------*/
  8900. /* Configure I2Cx: Dual mode and Own Address2 */
  8901. MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2));
  8902. 8003bb0: 687b ldr r3, [r7, #4]
  8903. 8003bb2: 681b ldr r3, [r3, #0]
  8904. 8003bb4: 68db ldr r3, [r3, #12]
  8905. 8003bb6: f023 01ff bic.w r1, r3, #255 ; 0xff
  8906. 8003bba: 687b ldr r3, [r7, #4]
  8907. 8003bbc: 695a ldr r2, [r3, #20]
  8908. 8003bbe: 687b ldr r3, [r7, #4]
  8909. 8003bc0: 699b ldr r3, [r3, #24]
  8910. 8003bc2: 431a orrs r2, r3
  8911. 8003bc4: 687b ldr r3, [r7, #4]
  8912. 8003bc6: 681b ldr r3, [r3, #0]
  8913. 8003bc8: 430a orrs r2, r1
  8914. 8003bca: 60da str r2, [r3, #12]
  8915. /* Enable the selected I2C peripheral */
  8916. __HAL_I2C_ENABLE(hi2c);
  8917. 8003bcc: 687b ldr r3, [r7, #4]
  8918. 8003bce: 681b ldr r3, [r3, #0]
  8919. 8003bd0: 681a ldr r2, [r3, #0]
  8920. 8003bd2: 687b ldr r3, [r7, #4]
  8921. 8003bd4: 681b ldr r3, [r3, #0]
  8922. 8003bd6: f042 0201 orr.w r2, r2, #1
  8923. 8003bda: 601a str r2, [r3, #0]
  8924. hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
  8925. 8003bdc: 687b ldr r3, [r7, #4]
  8926. 8003bde: 2200 movs r2, #0
  8927. 8003be0: 641a str r2, [r3, #64] ; 0x40
  8928. hi2c->State = HAL_I2C_STATE_READY;
  8929. 8003be2: 687b ldr r3, [r7, #4]
  8930. 8003be4: 2220 movs r2, #32
  8931. 8003be6: f883 203d strb.w r2, [r3, #61] ; 0x3d
  8932. hi2c->PreviousState = I2C_STATE_NONE;
  8933. 8003bea: 687b ldr r3, [r7, #4]
  8934. 8003bec: 2200 movs r2, #0
  8935. 8003bee: 631a str r2, [r3, #48] ; 0x30
  8936. hi2c->Mode = HAL_I2C_MODE_NONE;
  8937. 8003bf0: 687b ldr r3, [r7, #4]
  8938. 8003bf2: 2200 movs r2, #0
  8939. 8003bf4: f883 203e strb.w r2, [r3, #62] ; 0x3e
  8940. return HAL_OK;
  8941. 8003bf8: 2300 movs r3, #0
  8942. }
  8943. 8003bfa: 4618 mov r0, r3
  8944. 8003bfc: 3710 adds r7, #16
  8945. 8003bfe: 46bd mov sp, r7
  8946. 8003c00: bd80 pop {r7, pc}
  8947. 8003c02: bf00 nop
  8948. 8003c04: 000186a0 .word 0x000186a0
  8949. 8003c08: 001e847f .word 0x001e847f
  8950. 8003c0c: 003d08ff .word 0x003d08ff
  8951. 8003c10: 431bde83 .word 0x431bde83
  8952. 8003c14: 10624dd3 .word 0x10624dd3
  8953. 08003c18 <HAL_I2C_Mem_Write>:
  8954. * @param Size Amount of data to be sent
  8955. * @param Timeout Timeout duration
  8956. * @retval HAL status
  8957. */
  8958. 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)
  8959. {
  8960. 8003c18: b580 push {r7, lr}
  8961. 8003c1a: b088 sub sp, #32
  8962. 8003c1c: af02 add r7, sp, #8
  8963. 8003c1e: 60f8 str r0, [r7, #12]
  8964. 8003c20: 4608 mov r0, r1
  8965. 8003c22: 4611 mov r1, r2
  8966. 8003c24: 461a mov r2, r3
  8967. 8003c26: 4603 mov r3, r0
  8968. 8003c28: 817b strh r3, [r7, #10]
  8969. 8003c2a: 460b mov r3, r1
  8970. 8003c2c: 813b strh r3, [r7, #8]
  8971. 8003c2e: 4613 mov r3, r2
  8972. 8003c30: 80fb strh r3, [r7, #6]
  8973. /* Init tickstart for timeout management*/
  8974. uint32_t tickstart = HAL_GetTick();
  8975. 8003c32: f7fe fad3 bl 80021dc <HAL_GetTick>
  8976. 8003c36: 6178 str r0, [r7, #20]
  8977. /* Check the parameters */
  8978. assert_param(IS_I2C_MEMADD_SIZE(MemAddSize));
  8979. if (hi2c->State == HAL_I2C_STATE_READY)
  8980. 8003c38: 68fb ldr r3, [r7, #12]
  8981. 8003c3a: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  8982. 8003c3e: b2db uxtb r3, r3
  8983. 8003c40: 2b20 cmp r3, #32
  8984. 8003c42: f040 80d9 bne.w 8003df8 <HAL_I2C_Mem_Write+0x1e0>
  8985. {
  8986. /* Wait until BUSY flag is reset */
  8987. if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK)
  8988. 8003c46: 697b ldr r3, [r7, #20]
  8989. 8003c48: 9300 str r3, [sp, #0]
  8990. 8003c4a: 2319 movs r3, #25
  8991. 8003c4c: 2201 movs r2, #1
  8992. 8003c4e: 496d ldr r1, [pc, #436] ; (8003e04 <HAL_I2C_Mem_Write+0x1ec>)
  8993. 8003c50: 68f8 ldr r0, [r7, #12]
  8994. 8003c52: f000 f971 bl 8003f38 <I2C_WaitOnFlagUntilTimeout>
  8995. 8003c56: 4603 mov r3, r0
  8996. 8003c58: 2b00 cmp r3, #0
  8997. 8003c5a: d001 beq.n 8003c60 <HAL_I2C_Mem_Write+0x48>
  8998. {
  8999. return HAL_BUSY;
  9000. 8003c5c: 2302 movs r3, #2
  9001. 8003c5e: e0cc b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
  9002. }
  9003. /* Process Locked */
  9004. __HAL_LOCK(hi2c);
  9005. 8003c60: 68fb ldr r3, [r7, #12]
  9006. 8003c62: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  9007. 8003c66: 2b01 cmp r3, #1
  9008. 8003c68: d101 bne.n 8003c6e <HAL_I2C_Mem_Write+0x56>
  9009. 8003c6a: 2302 movs r3, #2
  9010. 8003c6c: e0c5 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
  9011. 8003c6e: 68fb ldr r3, [r7, #12]
  9012. 8003c70: 2201 movs r2, #1
  9013. 8003c72: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9014. /* Check if the I2C is already enabled */
  9015. if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE)
  9016. 8003c76: 68fb ldr r3, [r7, #12]
  9017. 8003c78: 681b ldr r3, [r3, #0]
  9018. 8003c7a: 681b ldr r3, [r3, #0]
  9019. 8003c7c: f003 0301 and.w r3, r3, #1
  9020. 8003c80: 2b01 cmp r3, #1
  9021. 8003c82: d007 beq.n 8003c94 <HAL_I2C_Mem_Write+0x7c>
  9022. {
  9023. /* Enable I2C peripheral */
  9024. __HAL_I2C_ENABLE(hi2c);
  9025. 8003c84: 68fb ldr r3, [r7, #12]
  9026. 8003c86: 681b ldr r3, [r3, #0]
  9027. 8003c88: 681a ldr r2, [r3, #0]
  9028. 8003c8a: 68fb ldr r3, [r7, #12]
  9029. 8003c8c: 681b ldr r3, [r3, #0]
  9030. 8003c8e: f042 0201 orr.w r2, r2, #1
  9031. 8003c92: 601a str r2, [r3, #0]
  9032. }
  9033. /* Disable Pos */
  9034. CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS);
  9035. 8003c94: 68fb ldr r3, [r7, #12]
  9036. 8003c96: 681b ldr r3, [r3, #0]
  9037. 8003c98: 681a ldr r2, [r3, #0]
  9038. 8003c9a: 68fb ldr r3, [r7, #12]
  9039. 8003c9c: 681b ldr r3, [r3, #0]
  9040. 8003c9e: f422 6200 bic.w r2, r2, #2048 ; 0x800
  9041. 8003ca2: 601a str r2, [r3, #0]
  9042. hi2c->State = HAL_I2C_STATE_BUSY_TX;
  9043. 8003ca4: 68fb ldr r3, [r7, #12]
  9044. 8003ca6: 2221 movs r2, #33 ; 0x21
  9045. 8003ca8: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9046. hi2c->Mode = HAL_I2C_MODE_MEM;
  9047. 8003cac: 68fb ldr r3, [r7, #12]
  9048. 8003cae: 2240 movs r2, #64 ; 0x40
  9049. 8003cb0: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9050. hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
  9051. 8003cb4: 68fb ldr r3, [r7, #12]
  9052. 8003cb6: 2200 movs r2, #0
  9053. 8003cb8: 641a str r2, [r3, #64] ; 0x40
  9054. /* Prepare transfer parameters */
  9055. hi2c->pBuffPtr = pData;
  9056. 8003cba: 68fb ldr r3, [r7, #12]
  9057. 8003cbc: 6a3a ldr r2, [r7, #32]
  9058. 8003cbe: 625a str r2, [r3, #36] ; 0x24
  9059. hi2c->XferCount = Size;
  9060. 8003cc0: 68fb ldr r3, [r7, #12]
  9061. 8003cc2: 8cba ldrh r2, [r7, #36] ; 0x24
  9062. 8003cc4: 855a strh r2, [r3, #42] ; 0x2a
  9063. hi2c->XferSize = hi2c->XferCount;
  9064. 8003cc6: 68fb ldr r3, [r7, #12]
  9065. 8003cc8: 8d5b ldrh r3, [r3, #42] ; 0x2a
  9066. 8003cca: b29a uxth r2, r3
  9067. 8003ccc: 68fb ldr r3, [r7, #12]
  9068. 8003cce: 851a strh r2, [r3, #40] ; 0x28
  9069. hi2c->XferOptions = I2C_NO_OPTION_FRAME;
  9070. 8003cd0: 68fb ldr r3, [r7, #12]
  9071. 8003cd2: 4a4d ldr r2, [pc, #308] ; (8003e08 <HAL_I2C_Mem_Write+0x1f0>)
  9072. 8003cd4: 62da str r2, [r3, #44] ; 0x2c
  9073. /* Send Slave Address and Memory Address */
  9074. if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK)
  9075. 8003cd6: 88f8 ldrh r0, [r7, #6]
  9076. 8003cd8: 893a ldrh r2, [r7, #8]
  9077. 8003cda: 8979 ldrh r1, [r7, #10]
  9078. 8003cdc: 697b ldr r3, [r7, #20]
  9079. 8003cde: 9301 str r3, [sp, #4]
  9080. 8003ce0: 6abb ldr r3, [r7, #40] ; 0x28
  9081. 8003ce2: 9300 str r3, [sp, #0]
  9082. 8003ce4: 4603 mov r3, r0
  9083. 8003ce6: 68f8 ldr r0, [r7, #12]
  9084. 8003ce8: f000 f890 bl 8003e0c <I2C_RequestMemoryWrite>
  9085. 8003cec: 4603 mov r3, r0
  9086. 8003cee: 2b00 cmp r3, #0
  9087. 8003cf0: d052 beq.n 8003d98 <HAL_I2C_Mem_Write+0x180>
  9088. {
  9089. return HAL_ERROR;
  9090. 8003cf2: 2301 movs r3, #1
  9091. 8003cf4: e081 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
  9092. }
  9093. while (hi2c->XferSize > 0U)
  9094. {
  9095. /* Wait until TXE flag is set */
  9096. if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)
  9097. 8003cf6: 697a ldr r2, [r7, #20]
  9098. 8003cf8: 6ab9 ldr r1, [r7, #40] ; 0x28
  9099. 8003cfa: 68f8 ldr r0, [r7, #12]
  9100. 8003cfc: f000 f9f2 bl 80040e4 <I2C_WaitOnTXEFlagUntilTimeout>
  9101. 8003d00: 4603 mov r3, r0
  9102. 8003d02: 2b00 cmp r3, #0
  9103. 8003d04: d00d beq.n 8003d22 <HAL_I2C_Mem_Write+0x10a>
  9104. {
  9105. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  9106. 8003d06: 68fb ldr r3, [r7, #12]
  9107. 8003d08: 6c1b ldr r3, [r3, #64] ; 0x40
  9108. 8003d0a: 2b04 cmp r3, #4
  9109. 8003d0c: d107 bne.n 8003d1e <HAL_I2C_Mem_Write+0x106>
  9110. {
  9111. /* Generate Stop */
  9112. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9113. 8003d0e: 68fb ldr r3, [r7, #12]
  9114. 8003d10: 681b ldr r3, [r3, #0]
  9115. 8003d12: 681a ldr r2, [r3, #0]
  9116. 8003d14: 68fb ldr r3, [r7, #12]
  9117. 8003d16: 681b ldr r3, [r3, #0]
  9118. 8003d18: f442 7200 orr.w r2, r2, #512 ; 0x200
  9119. 8003d1c: 601a str r2, [r3, #0]
  9120. }
  9121. return HAL_ERROR;
  9122. 8003d1e: 2301 movs r3, #1
  9123. 8003d20: e06b b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
  9124. }
  9125. /* Write data to DR */
  9126. hi2c->Instance->DR = *hi2c->pBuffPtr;
  9127. 8003d22: 68fb ldr r3, [r7, #12]
  9128. 8003d24: 6a5b ldr r3, [r3, #36] ; 0x24
  9129. 8003d26: 781a ldrb r2, [r3, #0]
  9130. 8003d28: 68fb ldr r3, [r7, #12]
  9131. 8003d2a: 681b ldr r3, [r3, #0]
  9132. 8003d2c: 611a str r2, [r3, #16]
  9133. /* Increment Buffer pointer */
  9134. hi2c->pBuffPtr++;
  9135. 8003d2e: 68fb ldr r3, [r7, #12]
  9136. 8003d30: 6a5b ldr r3, [r3, #36] ; 0x24
  9137. 8003d32: 1c5a adds r2, r3, #1
  9138. 8003d34: 68fb ldr r3, [r7, #12]
  9139. 8003d36: 625a str r2, [r3, #36] ; 0x24
  9140. /* Update counter */
  9141. hi2c->XferSize--;
  9142. 8003d38: 68fb ldr r3, [r7, #12]
  9143. 8003d3a: 8d1b ldrh r3, [r3, #40] ; 0x28
  9144. 8003d3c: 3b01 subs r3, #1
  9145. 8003d3e: b29a uxth r2, r3
  9146. 8003d40: 68fb ldr r3, [r7, #12]
  9147. 8003d42: 851a strh r2, [r3, #40] ; 0x28
  9148. hi2c->XferCount--;
  9149. 8003d44: 68fb ldr r3, [r7, #12]
  9150. 8003d46: 8d5b ldrh r3, [r3, #42] ; 0x2a
  9151. 8003d48: b29b uxth r3, r3
  9152. 8003d4a: 3b01 subs r3, #1
  9153. 8003d4c: b29a uxth r2, r3
  9154. 8003d4e: 68fb ldr r3, [r7, #12]
  9155. 8003d50: 855a strh r2, [r3, #42] ; 0x2a
  9156. if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U))
  9157. 8003d52: 68fb ldr r3, [r7, #12]
  9158. 8003d54: 681b ldr r3, [r3, #0]
  9159. 8003d56: 695b ldr r3, [r3, #20]
  9160. 8003d58: f003 0304 and.w r3, r3, #4
  9161. 8003d5c: 2b04 cmp r3, #4
  9162. 8003d5e: d11b bne.n 8003d98 <HAL_I2C_Mem_Write+0x180>
  9163. 8003d60: 68fb ldr r3, [r7, #12]
  9164. 8003d62: 8d1b ldrh r3, [r3, #40] ; 0x28
  9165. 8003d64: 2b00 cmp r3, #0
  9166. 8003d66: d017 beq.n 8003d98 <HAL_I2C_Mem_Write+0x180>
  9167. {
  9168. /* Write data to DR */
  9169. hi2c->Instance->DR = *hi2c->pBuffPtr;
  9170. 8003d68: 68fb ldr r3, [r7, #12]
  9171. 8003d6a: 6a5b ldr r3, [r3, #36] ; 0x24
  9172. 8003d6c: 781a ldrb r2, [r3, #0]
  9173. 8003d6e: 68fb ldr r3, [r7, #12]
  9174. 8003d70: 681b ldr r3, [r3, #0]
  9175. 8003d72: 611a str r2, [r3, #16]
  9176. /* Increment Buffer pointer */
  9177. hi2c->pBuffPtr++;
  9178. 8003d74: 68fb ldr r3, [r7, #12]
  9179. 8003d76: 6a5b ldr r3, [r3, #36] ; 0x24
  9180. 8003d78: 1c5a adds r2, r3, #1
  9181. 8003d7a: 68fb ldr r3, [r7, #12]
  9182. 8003d7c: 625a str r2, [r3, #36] ; 0x24
  9183. /* Update counter */
  9184. hi2c->XferSize--;
  9185. 8003d7e: 68fb ldr r3, [r7, #12]
  9186. 8003d80: 8d1b ldrh r3, [r3, #40] ; 0x28
  9187. 8003d82: 3b01 subs r3, #1
  9188. 8003d84: b29a uxth r2, r3
  9189. 8003d86: 68fb ldr r3, [r7, #12]
  9190. 8003d88: 851a strh r2, [r3, #40] ; 0x28
  9191. hi2c->XferCount--;
  9192. 8003d8a: 68fb ldr r3, [r7, #12]
  9193. 8003d8c: 8d5b ldrh r3, [r3, #42] ; 0x2a
  9194. 8003d8e: b29b uxth r3, r3
  9195. 8003d90: 3b01 subs r3, #1
  9196. 8003d92: b29a uxth r2, r3
  9197. 8003d94: 68fb ldr r3, [r7, #12]
  9198. 8003d96: 855a strh r2, [r3, #42] ; 0x2a
  9199. while (hi2c->XferSize > 0U)
  9200. 8003d98: 68fb ldr r3, [r7, #12]
  9201. 8003d9a: 8d1b ldrh r3, [r3, #40] ; 0x28
  9202. 8003d9c: 2b00 cmp r3, #0
  9203. 8003d9e: d1aa bne.n 8003cf6 <HAL_I2C_Mem_Write+0xde>
  9204. }
  9205. }
  9206. /* Wait until BTF flag is set */
  9207. if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK)
  9208. 8003da0: 697a ldr r2, [r7, #20]
  9209. 8003da2: 6ab9 ldr r1, [r7, #40] ; 0x28
  9210. 8003da4: 68f8 ldr r0, [r7, #12]
  9211. 8003da6: f000 f9de bl 8004166 <I2C_WaitOnBTFFlagUntilTimeout>
  9212. 8003daa: 4603 mov r3, r0
  9213. 8003dac: 2b00 cmp r3, #0
  9214. 8003dae: d00d beq.n 8003dcc <HAL_I2C_Mem_Write+0x1b4>
  9215. {
  9216. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  9217. 8003db0: 68fb ldr r3, [r7, #12]
  9218. 8003db2: 6c1b ldr r3, [r3, #64] ; 0x40
  9219. 8003db4: 2b04 cmp r3, #4
  9220. 8003db6: d107 bne.n 8003dc8 <HAL_I2C_Mem_Write+0x1b0>
  9221. {
  9222. /* Generate Stop */
  9223. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9224. 8003db8: 68fb ldr r3, [r7, #12]
  9225. 8003dba: 681b ldr r3, [r3, #0]
  9226. 8003dbc: 681a ldr r2, [r3, #0]
  9227. 8003dbe: 68fb ldr r3, [r7, #12]
  9228. 8003dc0: 681b ldr r3, [r3, #0]
  9229. 8003dc2: f442 7200 orr.w r2, r2, #512 ; 0x200
  9230. 8003dc6: 601a str r2, [r3, #0]
  9231. }
  9232. return HAL_ERROR;
  9233. 8003dc8: 2301 movs r3, #1
  9234. 8003dca: e016 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
  9235. }
  9236. /* Generate Stop */
  9237. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9238. 8003dcc: 68fb ldr r3, [r7, #12]
  9239. 8003dce: 681b ldr r3, [r3, #0]
  9240. 8003dd0: 681a ldr r2, [r3, #0]
  9241. 8003dd2: 68fb ldr r3, [r7, #12]
  9242. 8003dd4: 681b ldr r3, [r3, #0]
  9243. 8003dd6: f442 7200 orr.w r2, r2, #512 ; 0x200
  9244. 8003dda: 601a str r2, [r3, #0]
  9245. hi2c->State = HAL_I2C_STATE_READY;
  9246. 8003ddc: 68fb ldr r3, [r7, #12]
  9247. 8003dde: 2220 movs r2, #32
  9248. 8003de0: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9249. hi2c->Mode = HAL_I2C_MODE_NONE;
  9250. 8003de4: 68fb ldr r3, [r7, #12]
  9251. 8003de6: 2200 movs r2, #0
  9252. 8003de8: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9253. /* Process Unlocked */
  9254. __HAL_UNLOCK(hi2c);
  9255. 8003dec: 68fb ldr r3, [r7, #12]
  9256. 8003dee: 2200 movs r2, #0
  9257. 8003df0: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9258. return HAL_OK;
  9259. 8003df4: 2300 movs r3, #0
  9260. 8003df6: e000 b.n 8003dfa <HAL_I2C_Mem_Write+0x1e2>
  9261. }
  9262. else
  9263. {
  9264. return HAL_BUSY;
  9265. 8003df8: 2302 movs r3, #2
  9266. }
  9267. }
  9268. 8003dfa: 4618 mov r0, r3
  9269. 8003dfc: 3718 adds r7, #24
  9270. 8003dfe: 46bd mov sp, r7
  9271. 8003e00: bd80 pop {r7, pc}
  9272. 8003e02: bf00 nop
  9273. 8003e04: 00100002 .word 0x00100002
  9274. 8003e08: ffff0000 .word 0xffff0000
  9275. 08003e0c <I2C_RequestMemoryWrite>:
  9276. * @param Timeout Timeout duration
  9277. * @param Tickstart Tick start value
  9278. * @retval HAL status
  9279. */
  9280. static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart)
  9281. {
  9282. 8003e0c: b580 push {r7, lr}
  9283. 8003e0e: b088 sub sp, #32
  9284. 8003e10: af02 add r7, sp, #8
  9285. 8003e12: 60f8 str r0, [r7, #12]
  9286. 8003e14: 4608 mov r0, r1
  9287. 8003e16: 4611 mov r1, r2
  9288. 8003e18: 461a mov r2, r3
  9289. 8003e1a: 4603 mov r3, r0
  9290. 8003e1c: 817b strh r3, [r7, #10]
  9291. 8003e1e: 460b mov r3, r1
  9292. 8003e20: 813b strh r3, [r7, #8]
  9293. 8003e22: 4613 mov r3, r2
  9294. 8003e24: 80fb strh r3, [r7, #6]
  9295. /* Generate Start */
  9296. SET_BIT(hi2c->Instance->CR1, I2C_CR1_START);
  9297. 8003e26: 68fb ldr r3, [r7, #12]
  9298. 8003e28: 681b ldr r3, [r3, #0]
  9299. 8003e2a: 681a ldr r2, [r3, #0]
  9300. 8003e2c: 68fb ldr r3, [r7, #12]
  9301. 8003e2e: 681b ldr r3, [r3, #0]
  9302. 8003e30: f442 7280 orr.w r2, r2, #256 ; 0x100
  9303. 8003e34: 601a str r2, [r3, #0]
  9304. /* Wait until SB flag is set */
  9305. if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK)
  9306. 8003e36: 6a7b ldr r3, [r7, #36] ; 0x24
  9307. 8003e38: 9300 str r3, [sp, #0]
  9308. 8003e3a: 6a3b ldr r3, [r7, #32]
  9309. 8003e3c: 2200 movs r2, #0
  9310. 8003e3e: f04f 1101 mov.w r1, #65537 ; 0x10001
  9311. 8003e42: 68f8 ldr r0, [r7, #12]
  9312. 8003e44: f000 f878 bl 8003f38 <I2C_WaitOnFlagUntilTimeout>
  9313. 8003e48: 4603 mov r3, r0
  9314. 8003e4a: 2b00 cmp r3, #0
  9315. 8003e4c: d00d beq.n 8003e6a <I2C_RequestMemoryWrite+0x5e>
  9316. {
  9317. if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START)
  9318. 8003e4e: 68fb ldr r3, [r7, #12]
  9319. 8003e50: 681b ldr r3, [r3, #0]
  9320. 8003e52: 681b ldr r3, [r3, #0]
  9321. 8003e54: f403 7380 and.w r3, r3, #256 ; 0x100
  9322. 8003e58: f5b3 7f80 cmp.w r3, #256 ; 0x100
  9323. 8003e5c: d103 bne.n 8003e66 <I2C_RequestMemoryWrite+0x5a>
  9324. {
  9325. hi2c->ErrorCode = HAL_I2C_WRONG_START;
  9326. 8003e5e: 68fb ldr r3, [r7, #12]
  9327. 8003e60: f44f 7200 mov.w r2, #512 ; 0x200
  9328. 8003e64: 641a str r2, [r3, #64] ; 0x40
  9329. }
  9330. return HAL_TIMEOUT;
  9331. 8003e66: 2303 movs r3, #3
  9332. 8003e68: e05f b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
  9333. }
  9334. /* Send slave address */
  9335. hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress);
  9336. 8003e6a: 897b ldrh r3, [r7, #10]
  9337. 8003e6c: b2db uxtb r3, r3
  9338. 8003e6e: 461a mov r2, r3
  9339. 8003e70: 68fb ldr r3, [r7, #12]
  9340. 8003e72: 681b ldr r3, [r3, #0]
  9341. 8003e74: f002 02fe and.w r2, r2, #254 ; 0xfe
  9342. 8003e78: 611a str r2, [r3, #16]
  9343. /* Wait until ADDR flag is set */
  9344. if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK)
  9345. 8003e7a: 6a7b ldr r3, [r7, #36] ; 0x24
  9346. 8003e7c: 6a3a ldr r2, [r7, #32]
  9347. 8003e7e: 492d ldr r1, [pc, #180] ; (8003f34 <I2C_RequestMemoryWrite+0x128>)
  9348. 8003e80: 68f8 ldr r0, [r7, #12]
  9349. 8003e82: f000 f8b0 bl 8003fe6 <I2C_WaitOnMasterAddressFlagUntilTimeout>
  9350. 8003e86: 4603 mov r3, r0
  9351. 8003e88: 2b00 cmp r3, #0
  9352. 8003e8a: d001 beq.n 8003e90 <I2C_RequestMemoryWrite+0x84>
  9353. {
  9354. return HAL_ERROR;
  9355. 8003e8c: 2301 movs r3, #1
  9356. 8003e8e: e04c b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
  9357. }
  9358. /* Clear ADDR flag */
  9359. __HAL_I2C_CLEAR_ADDRFLAG(hi2c);
  9360. 8003e90: 2300 movs r3, #0
  9361. 8003e92: 617b str r3, [r7, #20]
  9362. 8003e94: 68fb ldr r3, [r7, #12]
  9363. 8003e96: 681b ldr r3, [r3, #0]
  9364. 8003e98: 695b ldr r3, [r3, #20]
  9365. 8003e9a: 617b str r3, [r7, #20]
  9366. 8003e9c: 68fb ldr r3, [r7, #12]
  9367. 8003e9e: 681b ldr r3, [r3, #0]
  9368. 8003ea0: 699b ldr r3, [r3, #24]
  9369. 8003ea2: 617b str r3, [r7, #20]
  9370. 8003ea4: 697b ldr r3, [r7, #20]
  9371. /* Wait until TXE flag is set */
  9372. if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)
  9373. 8003ea6: 6a7a ldr r2, [r7, #36] ; 0x24
  9374. 8003ea8: 6a39 ldr r1, [r7, #32]
  9375. 8003eaa: 68f8 ldr r0, [r7, #12]
  9376. 8003eac: f000 f91a bl 80040e4 <I2C_WaitOnTXEFlagUntilTimeout>
  9377. 8003eb0: 4603 mov r3, r0
  9378. 8003eb2: 2b00 cmp r3, #0
  9379. 8003eb4: d00d beq.n 8003ed2 <I2C_RequestMemoryWrite+0xc6>
  9380. {
  9381. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  9382. 8003eb6: 68fb ldr r3, [r7, #12]
  9383. 8003eb8: 6c1b ldr r3, [r3, #64] ; 0x40
  9384. 8003eba: 2b04 cmp r3, #4
  9385. 8003ebc: d107 bne.n 8003ece <I2C_RequestMemoryWrite+0xc2>
  9386. {
  9387. /* Generate Stop */
  9388. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9389. 8003ebe: 68fb ldr r3, [r7, #12]
  9390. 8003ec0: 681b ldr r3, [r3, #0]
  9391. 8003ec2: 681a ldr r2, [r3, #0]
  9392. 8003ec4: 68fb ldr r3, [r7, #12]
  9393. 8003ec6: 681b ldr r3, [r3, #0]
  9394. 8003ec8: f442 7200 orr.w r2, r2, #512 ; 0x200
  9395. 8003ecc: 601a str r2, [r3, #0]
  9396. }
  9397. return HAL_ERROR;
  9398. 8003ece: 2301 movs r3, #1
  9399. 8003ed0: e02b b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
  9400. }
  9401. /* If Memory address size is 8Bit */
  9402. if (MemAddSize == I2C_MEMADD_SIZE_8BIT)
  9403. 8003ed2: 88fb ldrh r3, [r7, #6]
  9404. 8003ed4: 2b01 cmp r3, #1
  9405. 8003ed6: d105 bne.n 8003ee4 <I2C_RequestMemoryWrite+0xd8>
  9406. {
  9407. /* Send Memory Address */
  9408. hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress);
  9409. 8003ed8: 893b ldrh r3, [r7, #8]
  9410. 8003eda: b2da uxtb r2, r3
  9411. 8003edc: 68fb ldr r3, [r7, #12]
  9412. 8003ede: 681b ldr r3, [r3, #0]
  9413. 8003ee0: 611a str r2, [r3, #16]
  9414. 8003ee2: e021 b.n 8003f28 <I2C_RequestMemoryWrite+0x11c>
  9415. }
  9416. /* If Memory address size is 16Bit */
  9417. else
  9418. {
  9419. /* Send MSB of Memory Address */
  9420. hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress);
  9421. 8003ee4: 893b ldrh r3, [r7, #8]
  9422. 8003ee6: 0a1b lsrs r3, r3, #8
  9423. 8003ee8: b29b uxth r3, r3
  9424. 8003eea: b2da uxtb r2, r3
  9425. 8003eec: 68fb ldr r3, [r7, #12]
  9426. 8003eee: 681b ldr r3, [r3, #0]
  9427. 8003ef0: 611a str r2, [r3, #16]
  9428. /* Wait until TXE flag is set */
  9429. if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)
  9430. 8003ef2: 6a7a ldr r2, [r7, #36] ; 0x24
  9431. 8003ef4: 6a39 ldr r1, [r7, #32]
  9432. 8003ef6: 68f8 ldr r0, [r7, #12]
  9433. 8003ef8: f000 f8f4 bl 80040e4 <I2C_WaitOnTXEFlagUntilTimeout>
  9434. 8003efc: 4603 mov r3, r0
  9435. 8003efe: 2b00 cmp r3, #0
  9436. 8003f00: d00d beq.n 8003f1e <I2C_RequestMemoryWrite+0x112>
  9437. {
  9438. if (hi2c->ErrorCode == HAL_I2C_ERROR_AF)
  9439. 8003f02: 68fb ldr r3, [r7, #12]
  9440. 8003f04: 6c1b ldr r3, [r3, #64] ; 0x40
  9441. 8003f06: 2b04 cmp r3, #4
  9442. 8003f08: d107 bne.n 8003f1a <I2C_RequestMemoryWrite+0x10e>
  9443. {
  9444. /* Generate Stop */
  9445. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9446. 8003f0a: 68fb ldr r3, [r7, #12]
  9447. 8003f0c: 681b ldr r3, [r3, #0]
  9448. 8003f0e: 681a ldr r2, [r3, #0]
  9449. 8003f10: 68fb ldr r3, [r7, #12]
  9450. 8003f12: 681b ldr r3, [r3, #0]
  9451. 8003f14: f442 7200 orr.w r2, r2, #512 ; 0x200
  9452. 8003f18: 601a str r2, [r3, #0]
  9453. }
  9454. return HAL_ERROR;
  9455. 8003f1a: 2301 movs r3, #1
  9456. 8003f1c: e005 b.n 8003f2a <I2C_RequestMemoryWrite+0x11e>
  9457. }
  9458. /* Send LSB of Memory Address */
  9459. hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress);
  9460. 8003f1e: 893b ldrh r3, [r7, #8]
  9461. 8003f20: b2da uxtb r2, r3
  9462. 8003f22: 68fb ldr r3, [r7, #12]
  9463. 8003f24: 681b ldr r3, [r3, #0]
  9464. 8003f26: 611a str r2, [r3, #16]
  9465. }
  9466. return HAL_OK;
  9467. 8003f28: 2300 movs r3, #0
  9468. }
  9469. 8003f2a: 4618 mov r0, r3
  9470. 8003f2c: 3718 adds r7, #24
  9471. 8003f2e: 46bd mov sp, r7
  9472. 8003f30: bd80 pop {r7, pc}
  9473. 8003f32: bf00 nop
  9474. 8003f34: 00010002 .word 0x00010002
  9475. 08003f38 <I2C_WaitOnFlagUntilTimeout>:
  9476. * @param Timeout Timeout duration
  9477. * @param Tickstart Tick start value
  9478. * @retval HAL status
  9479. */
  9480. static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart)
  9481. {
  9482. 8003f38: b580 push {r7, lr}
  9483. 8003f3a: b084 sub sp, #16
  9484. 8003f3c: af00 add r7, sp, #0
  9485. 8003f3e: 60f8 str r0, [r7, #12]
  9486. 8003f40: 60b9 str r1, [r7, #8]
  9487. 8003f42: 603b str r3, [r7, #0]
  9488. 8003f44: 4613 mov r3, r2
  9489. 8003f46: 71fb strb r3, [r7, #7]
  9490. /* Wait until flag is set */
  9491. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)
  9492. 8003f48: e025 b.n 8003f96 <I2C_WaitOnFlagUntilTimeout+0x5e>
  9493. {
  9494. /* Check for the Timeout */
  9495. if (Timeout != HAL_MAX_DELAY)
  9496. 8003f4a: 683b ldr r3, [r7, #0]
  9497. 8003f4c: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  9498. 8003f50: d021 beq.n 8003f96 <I2C_WaitOnFlagUntilTimeout+0x5e>
  9499. {
  9500. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  9501. 8003f52: f7fe f943 bl 80021dc <HAL_GetTick>
  9502. 8003f56: 4602 mov r2, r0
  9503. 8003f58: 69bb ldr r3, [r7, #24]
  9504. 8003f5a: 1ad3 subs r3, r2, r3
  9505. 8003f5c: 683a ldr r2, [r7, #0]
  9506. 8003f5e: 429a cmp r2, r3
  9507. 8003f60: d302 bcc.n 8003f68 <I2C_WaitOnFlagUntilTimeout+0x30>
  9508. 8003f62: 683b ldr r3, [r7, #0]
  9509. 8003f64: 2b00 cmp r3, #0
  9510. 8003f66: d116 bne.n 8003f96 <I2C_WaitOnFlagUntilTimeout+0x5e>
  9511. {
  9512. hi2c->PreviousState = I2C_STATE_NONE;
  9513. 8003f68: 68fb ldr r3, [r7, #12]
  9514. 8003f6a: 2200 movs r2, #0
  9515. 8003f6c: 631a str r2, [r3, #48] ; 0x30
  9516. hi2c->State = HAL_I2C_STATE_READY;
  9517. 8003f6e: 68fb ldr r3, [r7, #12]
  9518. 8003f70: 2220 movs r2, #32
  9519. 8003f72: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9520. hi2c->Mode = HAL_I2C_MODE_NONE;
  9521. 8003f76: 68fb ldr r3, [r7, #12]
  9522. 8003f78: 2200 movs r2, #0
  9523. 8003f7a: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9524. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  9525. 8003f7e: 68fb ldr r3, [r7, #12]
  9526. 8003f80: 6c1b ldr r3, [r3, #64] ; 0x40
  9527. 8003f82: f043 0220 orr.w r2, r3, #32
  9528. 8003f86: 68fb ldr r3, [r7, #12]
  9529. 8003f88: 641a str r2, [r3, #64] ; 0x40
  9530. /* Process Unlocked */
  9531. __HAL_UNLOCK(hi2c);
  9532. 8003f8a: 68fb ldr r3, [r7, #12]
  9533. 8003f8c: 2200 movs r2, #0
  9534. 8003f8e: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9535. return HAL_ERROR;
  9536. 8003f92: 2301 movs r3, #1
  9537. 8003f94: e023 b.n 8003fde <I2C_WaitOnFlagUntilTimeout+0xa6>
  9538. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)
  9539. 8003f96: 68bb ldr r3, [r7, #8]
  9540. 8003f98: 0c1b lsrs r3, r3, #16
  9541. 8003f9a: b2db uxtb r3, r3
  9542. 8003f9c: 2b01 cmp r3, #1
  9543. 8003f9e: d10d bne.n 8003fbc <I2C_WaitOnFlagUntilTimeout+0x84>
  9544. 8003fa0: 68fb ldr r3, [r7, #12]
  9545. 8003fa2: 681b ldr r3, [r3, #0]
  9546. 8003fa4: 695b ldr r3, [r3, #20]
  9547. 8003fa6: 43da mvns r2, r3
  9548. 8003fa8: 68bb ldr r3, [r7, #8]
  9549. 8003faa: 4013 ands r3, r2
  9550. 8003fac: b29b uxth r3, r3
  9551. 8003fae: 2b00 cmp r3, #0
  9552. 8003fb0: bf0c ite eq
  9553. 8003fb2: 2301 moveq r3, #1
  9554. 8003fb4: 2300 movne r3, #0
  9555. 8003fb6: b2db uxtb r3, r3
  9556. 8003fb8: 461a mov r2, r3
  9557. 8003fba: e00c b.n 8003fd6 <I2C_WaitOnFlagUntilTimeout+0x9e>
  9558. 8003fbc: 68fb ldr r3, [r7, #12]
  9559. 8003fbe: 681b ldr r3, [r3, #0]
  9560. 8003fc0: 699b ldr r3, [r3, #24]
  9561. 8003fc2: 43da mvns r2, r3
  9562. 8003fc4: 68bb ldr r3, [r7, #8]
  9563. 8003fc6: 4013 ands r3, r2
  9564. 8003fc8: b29b uxth r3, r3
  9565. 8003fca: 2b00 cmp r3, #0
  9566. 8003fcc: bf0c ite eq
  9567. 8003fce: 2301 moveq r3, #1
  9568. 8003fd0: 2300 movne r3, #0
  9569. 8003fd2: b2db uxtb r3, r3
  9570. 8003fd4: 461a mov r2, r3
  9571. 8003fd6: 79fb ldrb r3, [r7, #7]
  9572. 8003fd8: 429a cmp r2, r3
  9573. 8003fda: d0b6 beq.n 8003f4a <I2C_WaitOnFlagUntilTimeout+0x12>
  9574. }
  9575. }
  9576. }
  9577. return HAL_OK;
  9578. 8003fdc: 2300 movs r3, #0
  9579. }
  9580. 8003fde: 4618 mov r0, r3
  9581. 8003fe0: 3710 adds r7, #16
  9582. 8003fe2: 46bd mov sp, r7
  9583. 8003fe4: bd80 pop {r7, pc}
  9584. 08003fe6 <I2C_WaitOnMasterAddressFlagUntilTimeout>:
  9585. * @param Timeout Timeout duration
  9586. * @param Tickstart Tick start value
  9587. * @retval HAL status
  9588. */
  9589. static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart)
  9590. {
  9591. 8003fe6: b580 push {r7, lr}
  9592. 8003fe8: b084 sub sp, #16
  9593. 8003fea: af00 add r7, sp, #0
  9594. 8003fec: 60f8 str r0, [r7, #12]
  9595. 8003fee: 60b9 str r1, [r7, #8]
  9596. 8003ff0: 607a str r2, [r7, #4]
  9597. 8003ff2: 603b str r3, [r7, #0]
  9598. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)
  9599. 8003ff4: e051 b.n 800409a <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
  9600. {
  9601. if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET)
  9602. 8003ff6: 68fb ldr r3, [r7, #12]
  9603. 8003ff8: 681b ldr r3, [r3, #0]
  9604. 8003ffa: 695b ldr r3, [r3, #20]
  9605. 8003ffc: f403 6380 and.w r3, r3, #1024 ; 0x400
  9606. 8004000: f5b3 6f80 cmp.w r3, #1024 ; 0x400
  9607. 8004004: d123 bne.n 800404e <I2C_WaitOnMasterAddressFlagUntilTimeout+0x68>
  9608. {
  9609. /* Generate Stop */
  9610. SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP);
  9611. 8004006: 68fb ldr r3, [r7, #12]
  9612. 8004008: 681b ldr r3, [r3, #0]
  9613. 800400a: 681a ldr r2, [r3, #0]
  9614. 800400c: 68fb ldr r3, [r7, #12]
  9615. 800400e: 681b ldr r3, [r3, #0]
  9616. 8004010: f442 7200 orr.w r2, r2, #512 ; 0x200
  9617. 8004014: 601a str r2, [r3, #0]
  9618. /* Clear AF Flag */
  9619. __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF);
  9620. 8004016: 68fb ldr r3, [r7, #12]
  9621. 8004018: 681b ldr r3, [r3, #0]
  9622. 800401a: f46f 6280 mvn.w r2, #1024 ; 0x400
  9623. 800401e: 615a str r2, [r3, #20]
  9624. hi2c->PreviousState = I2C_STATE_NONE;
  9625. 8004020: 68fb ldr r3, [r7, #12]
  9626. 8004022: 2200 movs r2, #0
  9627. 8004024: 631a str r2, [r3, #48] ; 0x30
  9628. hi2c->State = HAL_I2C_STATE_READY;
  9629. 8004026: 68fb ldr r3, [r7, #12]
  9630. 8004028: 2220 movs r2, #32
  9631. 800402a: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9632. hi2c->Mode = HAL_I2C_MODE_NONE;
  9633. 800402e: 68fb ldr r3, [r7, #12]
  9634. 8004030: 2200 movs r2, #0
  9635. 8004032: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9636. hi2c->ErrorCode |= HAL_I2C_ERROR_AF;
  9637. 8004036: 68fb ldr r3, [r7, #12]
  9638. 8004038: 6c1b ldr r3, [r3, #64] ; 0x40
  9639. 800403a: f043 0204 orr.w r2, r3, #4
  9640. 800403e: 68fb ldr r3, [r7, #12]
  9641. 8004040: 641a str r2, [r3, #64] ; 0x40
  9642. /* Process Unlocked */
  9643. __HAL_UNLOCK(hi2c);
  9644. 8004042: 68fb ldr r3, [r7, #12]
  9645. 8004044: 2200 movs r2, #0
  9646. 8004046: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9647. return HAL_ERROR;
  9648. 800404a: 2301 movs r3, #1
  9649. 800404c: e046 b.n 80040dc <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf6>
  9650. }
  9651. /* Check for the Timeout */
  9652. if (Timeout != HAL_MAX_DELAY)
  9653. 800404e: 687b ldr r3, [r7, #4]
  9654. 8004050: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  9655. 8004054: d021 beq.n 800409a <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
  9656. {
  9657. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  9658. 8004056: f7fe f8c1 bl 80021dc <HAL_GetTick>
  9659. 800405a: 4602 mov r2, r0
  9660. 800405c: 683b ldr r3, [r7, #0]
  9661. 800405e: 1ad3 subs r3, r2, r3
  9662. 8004060: 687a ldr r2, [r7, #4]
  9663. 8004062: 429a cmp r2, r3
  9664. 8004064: d302 bcc.n 800406c <I2C_WaitOnMasterAddressFlagUntilTimeout+0x86>
  9665. 8004066: 687b ldr r3, [r7, #4]
  9666. 8004068: 2b00 cmp r3, #0
  9667. 800406a: d116 bne.n 800409a <I2C_WaitOnMasterAddressFlagUntilTimeout+0xb4>
  9668. {
  9669. hi2c->PreviousState = I2C_STATE_NONE;
  9670. 800406c: 68fb ldr r3, [r7, #12]
  9671. 800406e: 2200 movs r2, #0
  9672. 8004070: 631a str r2, [r3, #48] ; 0x30
  9673. hi2c->State = HAL_I2C_STATE_READY;
  9674. 8004072: 68fb ldr r3, [r7, #12]
  9675. 8004074: 2220 movs r2, #32
  9676. 8004076: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9677. hi2c->Mode = HAL_I2C_MODE_NONE;
  9678. 800407a: 68fb ldr r3, [r7, #12]
  9679. 800407c: 2200 movs r2, #0
  9680. 800407e: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9681. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  9682. 8004082: 68fb ldr r3, [r7, #12]
  9683. 8004084: 6c1b ldr r3, [r3, #64] ; 0x40
  9684. 8004086: f043 0220 orr.w r2, r3, #32
  9685. 800408a: 68fb ldr r3, [r7, #12]
  9686. 800408c: 641a str r2, [r3, #64] ; 0x40
  9687. /* Process Unlocked */
  9688. __HAL_UNLOCK(hi2c);
  9689. 800408e: 68fb ldr r3, [r7, #12]
  9690. 8004090: 2200 movs r2, #0
  9691. 8004092: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9692. return HAL_ERROR;
  9693. 8004096: 2301 movs r3, #1
  9694. 8004098: e020 b.n 80040dc <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf6>
  9695. while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET)
  9696. 800409a: 68bb ldr r3, [r7, #8]
  9697. 800409c: 0c1b lsrs r3, r3, #16
  9698. 800409e: b2db uxtb r3, r3
  9699. 80040a0: 2b01 cmp r3, #1
  9700. 80040a2: d10c bne.n 80040be <I2C_WaitOnMasterAddressFlagUntilTimeout+0xd8>
  9701. 80040a4: 68fb ldr r3, [r7, #12]
  9702. 80040a6: 681b ldr r3, [r3, #0]
  9703. 80040a8: 695b ldr r3, [r3, #20]
  9704. 80040aa: 43da mvns r2, r3
  9705. 80040ac: 68bb ldr r3, [r7, #8]
  9706. 80040ae: 4013 ands r3, r2
  9707. 80040b0: b29b uxth r3, r3
  9708. 80040b2: 2b00 cmp r3, #0
  9709. 80040b4: bf14 ite ne
  9710. 80040b6: 2301 movne r3, #1
  9711. 80040b8: 2300 moveq r3, #0
  9712. 80040ba: b2db uxtb r3, r3
  9713. 80040bc: e00b b.n 80040d6 <I2C_WaitOnMasterAddressFlagUntilTimeout+0xf0>
  9714. 80040be: 68fb ldr r3, [r7, #12]
  9715. 80040c0: 681b ldr r3, [r3, #0]
  9716. 80040c2: 699b ldr r3, [r3, #24]
  9717. 80040c4: 43da mvns r2, r3
  9718. 80040c6: 68bb ldr r3, [r7, #8]
  9719. 80040c8: 4013 ands r3, r2
  9720. 80040ca: b29b uxth r3, r3
  9721. 80040cc: 2b00 cmp r3, #0
  9722. 80040ce: bf14 ite ne
  9723. 80040d0: 2301 movne r3, #1
  9724. 80040d2: 2300 moveq r3, #0
  9725. 80040d4: b2db uxtb r3, r3
  9726. 80040d6: 2b00 cmp r3, #0
  9727. 80040d8: d18d bne.n 8003ff6 <I2C_WaitOnMasterAddressFlagUntilTimeout+0x10>
  9728. }
  9729. }
  9730. }
  9731. return HAL_OK;
  9732. 80040da: 2300 movs r3, #0
  9733. }
  9734. 80040dc: 4618 mov r0, r3
  9735. 80040de: 3710 adds r7, #16
  9736. 80040e0: 46bd mov sp, r7
  9737. 80040e2: bd80 pop {r7, pc}
  9738. 080040e4 <I2C_WaitOnTXEFlagUntilTimeout>:
  9739. * @param Timeout Timeout duration
  9740. * @param Tickstart Tick start value
  9741. * @retval HAL status
  9742. */
  9743. static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart)
  9744. {
  9745. 80040e4: b580 push {r7, lr}
  9746. 80040e6: b084 sub sp, #16
  9747. 80040e8: af00 add r7, sp, #0
  9748. 80040ea: 60f8 str r0, [r7, #12]
  9749. 80040ec: 60b9 str r1, [r7, #8]
  9750. 80040ee: 607a str r2, [r7, #4]
  9751. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET)
  9752. 80040f0: e02d b.n 800414e <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
  9753. {
  9754. /* Check if a NACK is detected */
  9755. if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK)
  9756. 80040f2: 68f8 ldr r0, [r7, #12]
  9757. 80040f4: f000 f878 bl 80041e8 <I2C_IsAcknowledgeFailed>
  9758. 80040f8: 4603 mov r3, r0
  9759. 80040fa: 2b00 cmp r3, #0
  9760. 80040fc: d001 beq.n 8004102 <I2C_WaitOnTXEFlagUntilTimeout+0x1e>
  9761. {
  9762. return HAL_ERROR;
  9763. 80040fe: 2301 movs r3, #1
  9764. 8004100: e02d b.n 800415e <I2C_WaitOnTXEFlagUntilTimeout+0x7a>
  9765. }
  9766. /* Check for the Timeout */
  9767. if (Timeout != HAL_MAX_DELAY)
  9768. 8004102: 68bb ldr r3, [r7, #8]
  9769. 8004104: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  9770. 8004108: d021 beq.n 800414e <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
  9771. {
  9772. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  9773. 800410a: f7fe f867 bl 80021dc <HAL_GetTick>
  9774. 800410e: 4602 mov r2, r0
  9775. 8004110: 687b ldr r3, [r7, #4]
  9776. 8004112: 1ad3 subs r3, r2, r3
  9777. 8004114: 68ba ldr r2, [r7, #8]
  9778. 8004116: 429a cmp r2, r3
  9779. 8004118: d302 bcc.n 8004120 <I2C_WaitOnTXEFlagUntilTimeout+0x3c>
  9780. 800411a: 68bb ldr r3, [r7, #8]
  9781. 800411c: 2b00 cmp r3, #0
  9782. 800411e: d116 bne.n 800414e <I2C_WaitOnTXEFlagUntilTimeout+0x6a>
  9783. {
  9784. hi2c->PreviousState = I2C_STATE_NONE;
  9785. 8004120: 68fb ldr r3, [r7, #12]
  9786. 8004122: 2200 movs r2, #0
  9787. 8004124: 631a str r2, [r3, #48] ; 0x30
  9788. hi2c->State = HAL_I2C_STATE_READY;
  9789. 8004126: 68fb ldr r3, [r7, #12]
  9790. 8004128: 2220 movs r2, #32
  9791. 800412a: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9792. hi2c->Mode = HAL_I2C_MODE_NONE;
  9793. 800412e: 68fb ldr r3, [r7, #12]
  9794. 8004130: 2200 movs r2, #0
  9795. 8004132: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9796. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  9797. 8004136: 68fb ldr r3, [r7, #12]
  9798. 8004138: 6c1b ldr r3, [r3, #64] ; 0x40
  9799. 800413a: f043 0220 orr.w r2, r3, #32
  9800. 800413e: 68fb ldr r3, [r7, #12]
  9801. 8004140: 641a str r2, [r3, #64] ; 0x40
  9802. /* Process Unlocked */
  9803. __HAL_UNLOCK(hi2c);
  9804. 8004142: 68fb ldr r3, [r7, #12]
  9805. 8004144: 2200 movs r2, #0
  9806. 8004146: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9807. return HAL_ERROR;
  9808. 800414a: 2301 movs r3, #1
  9809. 800414c: e007 b.n 800415e <I2C_WaitOnTXEFlagUntilTimeout+0x7a>
  9810. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET)
  9811. 800414e: 68fb ldr r3, [r7, #12]
  9812. 8004150: 681b ldr r3, [r3, #0]
  9813. 8004152: 695b ldr r3, [r3, #20]
  9814. 8004154: f003 0380 and.w r3, r3, #128 ; 0x80
  9815. 8004158: 2b80 cmp r3, #128 ; 0x80
  9816. 800415a: d1ca bne.n 80040f2 <I2C_WaitOnTXEFlagUntilTimeout+0xe>
  9817. }
  9818. }
  9819. }
  9820. return HAL_OK;
  9821. 800415c: 2300 movs r3, #0
  9822. }
  9823. 800415e: 4618 mov r0, r3
  9824. 8004160: 3710 adds r7, #16
  9825. 8004162: 46bd mov sp, r7
  9826. 8004164: bd80 pop {r7, pc}
  9827. 08004166 <I2C_WaitOnBTFFlagUntilTimeout>:
  9828. * @param Timeout Timeout duration
  9829. * @param Tickstart Tick start value
  9830. * @retval HAL status
  9831. */
  9832. static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart)
  9833. {
  9834. 8004166: b580 push {r7, lr}
  9835. 8004168: b084 sub sp, #16
  9836. 800416a: af00 add r7, sp, #0
  9837. 800416c: 60f8 str r0, [r7, #12]
  9838. 800416e: 60b9 str r1, [r7, #8]
  9839. 8004170: 607a str r2, [r7, #4]
  9840. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET)
  9841. 8004172: e02d b.n 80041d0 <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
  9842. {
  9843. /* Check if a NACK is detected */
  9844. if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK)
  9845. 8004174: 68f8 ldr r0, [r7, #12]
  9846. 8004176: f000 f837 bl 80041e8 <I2C_IsAcknowledgeFailed>
  9847. 800417a: 4603 mov r3, r0
  9848. 800417c: 2b00 cmp r3, #0
  9849. 800417e: d001 beq.n 8004184 <I2C_WaitOnBTFFlagUntilTimeout+0x1e>
  9850. {
  9851. return HAL_ERROR;
  9852. 8004180: 2301 movs r3, #1
  9853. 8004182: e02d b.n 80041e0 <I2C_WaitOnBTFFlagUntilTimeout+0x7a>
  9854. }
  9855. /* Check for the Timeout */
  9856. if (Timeout != HAL_MAX_DELAY)
  9857. 8004184: 68bb ldr r3, [r7, #8]
  9858. 8004186: f1b3 3fff cmp.w r3, #4294967295 ; 0xffffffff
  9859. 800418a: d021 beq.n 80041d0 <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
  9860. {
  9861. if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
  9862. 800418c: f7fe f826 bl 80021dc <HAL_GetTick>
  9863. 8004190: 4602 mov r2, r0
  9864. 8004192: 687b ldr r3, [r7, #4]
  9865. 8004194: 1ad3 subs r3, r2, r3
  9866. 8004196: 68ba ldr r2, [r7, #8]
  9867. 8004198: 429a cmp r2, r3
  9868. 800419a: d302 bcc.n 80041a2 <I2C_WaitOnBTFFlagUntilTimeout+0x3c>
  9869. 800419c: 68bb ldr r3, [r7, #8]
  9870. 800419e: 2b00 cmp r3, #0
  9871. 80041a0: d116 bne.n 80041d0 <I2C_WaitOnBTFFlagUntilTimeout+0x6a>
  9872. {
  9873. hi2c->PreviousState = I2C_STATE_NONE;
  9874. 80041a2: 68fb ldr r3, [r7, #12]
  9875. 80041a4: 2200 movs r2, #0
  9876. 80041a6: 631a str r2, [r3, #48] ; 0x30
  9877. hi2c->State = HAL_I2C_STATE_READY;
  9878. 80041a8: 68fb ldr r3, [r7, #12]
  9879. 80041aa: 2220 movs r2, #32
  9880. 80041ac: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9881. hi2c->Mode = HAL_I2C_MODE_NONE;
  9882. 80041b0: 68fb ldr r3, [r7, #12]
  9883. 80041b2: 2200 movs r2, #0
  9884. 80041b4: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9885. hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT;
  9886. 80041b8: 68fb ldr r3, [r7, #12]
  9887. 80041ba: 6c1b ldr r3, [r3, #64] ; 0x40
  9888. 80041bc: f043 0220 orr.w r2, r3, #32
  9889. 80041c0: 68fb ldr r3, [r7, #12]
  9890. 80041c2: 641a str r2, [r3, #64] ; 0x40
  9891. /* Process Unlocked */
  9892. __HAL_UNLOCK(hi2c);
  9893. 80041c4: 68fb ldr r3, [r7, #12]
  9894. 80041c6: 2200 movs r2, #0
  9895. 80041c8: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9896. return HAL_ERROR;
  9897. 80041cc: 2301 movs r3, #1
  9898. 80041ce: e007 b.n 80041e0 <I2C_WaitOnBTFFlagUntilTimeout+0x7a>
  9899. while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET)
  9900. 80041d0: 68fb ldr r3, [r7, #12]
  9901. 80041d2: 681b ldr r3, [r3, #0]
  9902. 80041d4: 695b ldr r3, [r3, #20]
  9903. 80041d6: f003 0304 and.w r3, r3, #4
  9904. 80041da: 2b04 cmp r3, #4
  9905. 80041dc: d1ca bne.n 8004174 <I2C_WaitOnBTFFlagUntilTimeout+0xe>
  9906. }
  9907. }
  9908. }
  9909. return HAL_OK;
  9910. 80041de: 2300 movs r3, #0
  9911. }
  9912. 80041e0: 4618 mov r0, r3
  9913. 80041e2: 3710 adds r7, #16
  9914. 80041e4: 46bd mov sp, r7
  9915. 80041e6: bd80 pop {r7, pc}
  9916. 080041e8 <I2C_IsAcknowledgeFailed>:
  9917. * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains
  9918. * the configuration information for the specified I2C.
  9919. * @retval HAL status
  9920. */
  9921. static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c)
  9922. {
  9923. 80041e8: b480 push {r7}
  9924. 80041ea: b083 sub sp, #12
  9925. 80041ec: af00 add r7, sp, #0
  9926. 80041ee: 6078 str r0, [r7, #4]
  9927. if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET)
  9928. 80041f0: 687b ldr r3, [r7, #4]
  9929. 80041f2: 681b ldr r3, [r3, #0]
  9930. 80041f4: 695b ldr r3, [r3, #20]
  9931. 80041f6: f403 6380 and.w r3, r3, #1024 ; 0x400
  9932. 80041fa: f5b3 6f80 cmp.w r3, #1024 ; 0x400
  9933. 80041fe: d11b bne.n 8004238 <I2C_IsAcknowledgeFailed+0x50>
  9934. {
  9935. /* Clear NACKF Flag */
  9936. __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF);
  9937. 8004200: 687b ldr r3, [r7, #4]
  9938. 8004202: 681b ldr r3, [r3, #0]
  9939. 8004204: f46f 6280 mvn.w r2, #1024 ; 0x400
  9940. 8004208: 615a str r2, [r3, #20]
  9941. hi2c->PreviousState = I2C_STATE_NONE;
  9942. 800420a: 687b ldr r3, [r7, #4]
  9943. 800420c: 2200 movs r2, #0
  9944. 800420e: 631a str r2, [r3, #48] ; 0x30
  9945. hi2c->State = HAL_I2C_STATE_READY;
  9946. 8004210: 687b ldr r3, [r7, #4]
  9947. 8004212: 2220 movs r2, #32
  9948. 8004214: f883 203d strb.w r2, [r3, #61] ; 0x3d
  9949. hi2c->Mode = HAL_I2C_MODE_NONE;
  9950. 8004218: 687b ldr r3, [r7, #4]
  9951. 800421a: 2200 movs r2, #0
  9952. 800421c: f883 203e strb.w r2, [r3, #62] ; 0x3e
  9953. hi2c->ErrorCode |= HAL_I2C_ERROR_AF;
  9954. 8004220: 687b ldr r3, [r7, #4]
  9955. 8004222: 6c1b ldr r3, [r3, #64] ; 0x40
  9956. 8004224: f043 0204 orr.w r2, r3, #4
  9957. 8004228: 687b ldr r3, [r7, #4]
  9958. 800422a: 641a str r2, [r3, #64] ; 0x40
  9959. /* Process Unlocked */
  9960. __HAL_UNLOCK(hi2c);
  9961. 800422c: 687b ldr r3, [r7, #4]
  9962. 800422e: 2200 movs r2, #0
  9963. 8004230: f883 203c strb.w r2, [r3, #60] ; 0x3c
  9964. return HAL_ERROR;
  9965. 8004234: 2301 movs r3, #1
  9966. 8004236: e000 b.n 800423a <I2C_IsAcknowledgeFailed+0x52>
  9967. }
  9968. return HAL_OK;
  9969. 8004238: 2300 movs r3, #0
  9970. }
  9971. 800423a: 4618 mov r0, r3
  9972. 800423c: 370c adds r7, #12
  9973. 800423e: 46bd mov sp, r7
  9974. 8004240: bc80 pop {r7}
  9975. 8004242: 4770 bx lr
  9976. 08004244 <HAL_RCC_OscConfig>:
  9977. * supported by this macro. User should request a transition to HSE Off
  9978. * first and then HSE On or HSE Bypass.
  9979. * @retval HAL status
  9980. */
  9981. HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
  9982. {
  9983. 8004244: b580 push {r7, lr}
  9984. 8004246: b088 sub sp, #32
  9985. 8004248: af00 add r7, sp, #0
  9986. 800424a: 6078 str r0, [r7, #4]
  9987. uint32_t tickstart;
  9988. HAL_StatusTypeDef status;
  9989. uint32_t sysclk_source, pll_config;
  9990. /* Check the parameters */
  9991. if(RCC_OscInitStruct == NULL)
  9992. 800424c: 687b ldr r3, [r7, #4]
  9993. 800424e: 2b00 cmp r3, #0
  9994. 8004250: d101 bne.n 8004256 <HAL_RCC_OscConfig+0x12>
  9995. {
  9996. return HAL_ERROR;
  9997. 8004252: 2301 movs r3, #1
  9998. 8004254: e31d b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  9999. }
  10000. assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
  10001. sysclk_source = __HAL_RCC_GET_SYSCLK_SOURCE();
  10002. 8004256: 4b94 ldr r3, [pc, #592] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10003. 8004258: 689b ldr r3, [r3, #8]
  10004. 800425a: f003 030c and.w r3, r3, #12
  10005. 800425e: 61bb str r3, [r7, #24]
  10006. pll_config = __HAL_RCC_GET_PLL_OSCSOURCE();
  10007. 8004260: 4b91 ldr r3, [pc, #580] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10008. 8004262: 689b ldr r3, [r3, #8]
  10009. 8004264: f403 3380 and.w r3, r3, #65536 ; 0x10000
  10010. 8004268: 617b str r3, [r7, #20]
  10011. /*------------------------------- HSE Configuration ------------------------*/
  10012. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
  10013. 800426a: 687b ldr r3, [r7, #4]
  10014. 800426c: 681b ldr r3, [r3, #0]
  10015. 800426e: f003 0301 and.w r3, r3, #1
  10016. 8004272: 2b00 cmp r3, #0
  10017. 8004274: d07b beq.n 800436e <HAL_RCC_OscConfig+0x12a>
  10018. {
  10019. /* Check the parameters */
  10020. assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
  10021. /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */
  10022. if((sysclk_source == RCC_SYSCLKSOURCE_STATUS_HSE)
  10023. 8004276: 69bb ldr r3, [r7, #24]
  10024. 8004278: 2b08 cmp r3, #8
  10025. 800427a: d006 beq.n 800428a <HAL_RCC_OscConfig+0x46>
  10026. || ((sysclk_source == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (pll_config == RCC_PLLSOURCE_HSE)))
  10027. 800427c: 69bb ldr r3, [r7, #24]
  10028. 800427e: 2b0c cmp r3, #12
  10029. 8004280: d10f bne.n 80042a2 <HAL_RCC_OscConfig+0x5e>
  10030. 8004282: 697b ldr r3, [r7, #20]
  10031. 8004284: f5b3 3f80 cmp.w r3, #65536 ; 0x10000
  10032. 8004288: d10b bne.n 80042a2 <HAL_RCC_OscConfig+0x5e>
  10033. {
  10034. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  10035. 800428a: 4b87 ldr r3, [pc, #540] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10036. 800428c: 681b ldr r3, [r3, #0]
  10037. 800428e: f403 3300 and.w r3, r3, #131072 ; 0x20000
  10038. 8004292: 2b00 cmp r3, #0
  10039. 8004294: d06a beq.n 800436c <HAL_RCC_OscConfig+0x128>
  10040. 8004296: 687b ldr r3, [r7, #4]
  10041. 8004298: 685b ldr r3, [r3, #4]
  10042. 800429a: 2b00 cmp r3, #0
  10043. 800429c: d166 bne.n 800436c <HAL_RCC_OscConfig+0x128>
  10044. {
  10045. return HAL_ERROR;
  10046. 800429e: 2301 movs r3, #1
  10047. 80042a0: e2f7 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10048. }
  10049. }
  10050. else
  10051. {
  10052. /* Set the new HSE configuration ---------------------------------------*/
  10053. __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
  10054. 80042a2: 687b ldr r3, [r7, #4]
  10055. 80042a4: 685b ldr r3, [r3, #4]
  10056. 80042a6: 2b01 cmp r3, #1
  10057. 80042a8: d106 bne.n 80042b8 <HAL_RCC_OscConfig+0x74>
  10058. 80042aa: 4b7f ldr r3, [pc, #508] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10059. 80042ac: 681b ldr r3, [r3, #0]
  10060. 80042ae: 4a7e ldr r2, [pc, #504] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10061. 80042b0: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  10062. 80042b4: 6013 str r3, [r2, #0]
  10063. 80042b6: e02d b.n 8004314 <HAL_RCC_OscConfig+0xd0>
  10064. 80042b8: 687b ldr r3, [r7, #4]
  10065. 80042ba: 685b ldr r3, [r3, #4]
  10066. 80042bc: 2b00 cmp r3, #0
  10067. 80042be: d10c bne.n 80042da <HAL_RCC_OscConfig+0x96>
  10068. 80042c0: 4b79 ldr r3, [pc, #484] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10069. 80042c2: 681b ldr r3, [r3, #0]
  10070. 80042c4: 4a78 ldr r2, [pc, #480] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10071. 80042c6: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  10072. 80042ca: 6013 str r3, [r2, #0]
  10073. 80042cc: 4b76 ldr r3, [pc, #472] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10074. 80042ce: 681b ldr r3, [r3, #0]
  10075. 80042d0: 4a75 ldr r2, [pc, #468] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10076. 80042d2: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  10077. 80042d6: 6013 str r3, [r2, #0]
  10078. 80042d8: e01c b.n 8004314 <HAL_RCC_OscConfig+0xd0>
  10079. 80042da: 687b ldr r3, [r7, #4]
  10080. 80042dc: 685b ldr r3, [r3, #4]
  10081. 80042de: 2b05 cmp r3, #5
  10082. 80042e0: d10c bne.n 80042fc <HAL_RCC_OscConfig+0xb8>
  10083. 80042e2: 4b71 ldr r3, [pc, #452] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10084. 80042e4: 681b ldr r3, [r3, #0]
  10085. 80042e6: 4a70 ldr r2, [pc, #448] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10086. 80042e8: f443 2380 orr.w r3, r3, #262144 ; 0x40000
  10087. 80042ec: 6013 str r3, [r2, #0]
  10088. 80042ee: 4b6e ldr r3, [pc, #440] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10089. 80042f0: 681b ldr r3, [r3, #0]
  10090. 80042f2: 4a6d ldr r2, [pc, #436] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10091. 80042f4: f443 3380 orr.w r3, r3, #65536 ; 0x10000
  10092. 80042f8: 6013 str r3, [r2, #0]
  10093. 80042fa: e00b b.n 8004314 <HAL_RCC_OscConfig+0xd0>
  10094. 80042fc: 4b6a ldr r3, [pc, #424] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10095. 80042fe: 681b ldr r3, [r3, #0]
  10096. 8004300: 4a69 ldr r2, [pc, #420] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10097. 8004302: f423 3380 bic.w r3, r3, #65536 ; 0x10000
  10098. 8004306: 6013 str r3, [r2, #0]
  10099. 8004308: 4b67 ldr r3, [pc, #412] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10100. 800430a: 681b ldr r3, [r3, #0]
  10101. 800430c: 4a66 ldr r2, [pc, #408] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10102. 800430e: f423 2380 bic.w r3, r3, #262144 ; 0x40000
  10103. 8004312: 6013 str r3, [r2, #0]
  10104. /* Check the HSE State */
  10105. if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
  10106. 8004314: 687b ldr r3, [r7, #4]
  10107. 8004316: 685b ldr r3, [r3, #4]
  10108. 8004318: 2b00 cmp r3, #0
  10109. 800431a: d013 beq.n 8004344 <HAL_RCC_OscConfig+0x100>
  10110. {
  10111. /* Get Start Tick */
  10112. tickstart = HAL_GetTick();
  10113. 800431c: f7fd ff5e bl 80021dc <HAL_GetTick>
  10114. 8004320: 6138 str r0, [r7, #16]
  10115. /* Wait till HSE is ready */
  10116. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  10117. 8004322: e008 b.n 8004336 <HAL_RCC_OscConfig+0xf2>
  10118. {
  10119. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  10120. 8004324: f7fd ff5a bl 80021dc <HAL_GetTick>
  10121. 8004328: 4602 mov r2, r0
  10122. 800432a: 693b ldr r3, [r7, #16]
  10123. 800432c: 1ad3 subs r3, r2, r3
  10124. 800432e: 2b64 cmp r3, #100 ; 0x64
  10125. 8004330: d901 bls.n 8004336 <HAL_RCC_OscConfig+0xf2>
  10126. {
  10127. return HAL_TIMEOUT;
  10128. 8004332: 2303 movs r3, #3
  10129. 8004334: e2ad b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10130. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  10131. 8004336: 4b5c ldr r3, [pc, #368] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10132. 8004338: 681b ldr r3, [r3, #0]
  10133. 800433a: f403 3300 and.w r3, r3, #131072 ; 0x20000
  10134. 800433e: 2b00 cmp r3, #0
  10135. 8004340: d0f0 beq.n 8004324 <HAL_RCC_OscConfig+0xe0>
  10136. 8004342: e014 b.n 800436e <HAL_RCC_OscConfig+0x12a>
  10137. }
  10138. }
  10139. else
  10140. {
  10141. /* Get Start Tick */
  10142. tickstart = HAL_GetTick();
  10143. 8004344: f7fd ff4a bl 80021dc <HAL_GetTick>
  10144. 8004348: 6138 str r0, [r7, #16]
  10145. /* Wait till HSE is disabled */
  10146. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  10147. 800434a: e008 b.n 800435e <HAL_RCC_OscConfig+0x11a>
  10148. {
  10149. if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
  10150. 800434c: f7fd ff46 bl 80021dc <HAL_GetTick>
  10151. 8004350: 4602 mov r2, r0
  10152. 8004352: 693b ldr r3, [r7, #16]
  10153. 8004354: 1ad3 subs r3, r2, r3
  10154. 8004356: 2b64 cmp r3, #100 ; 0x64
  10155. 8004358: d901 bls.n 800435e <HAL_RCC_OscConfig+0x11a>
  10156. {
  10157. return HAL_TIMEOUT;
  10158. 800435a: 2303 movs r3, #3
  10159. 800435c: e299 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10160. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U)
  10161. 800435e: 4b52 ldr r3, [pc, #328] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10162. 8004360: 681b ldr r3, [r3, #0]
  10163. 8004362: f403 3300 and.w r3, r3, #131072 ; 0x20000
  10164. 8004366: 2b00 cmp r3, #0
  10165. 8004368: d1f0 bne.n 800434c <HAL_RCC_OscConfig+0x108>
  10166. 800436a: e000 b.n 800436e <HAL_RCC_OscConfig+0x12a>
  10167. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != 0U) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
  10168. 800436c: bf00 nop
  10169. }
  10170. }
  10171. }
  10172. }
  10173. /*----------------------------- HSI Configuration --------------------------*/
  10174. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
  10175. 800436e: 687b ldr r3, [r7, #4]
  10176. 8004370: 681b ldr r3, [r3, #0]
  10177. 8004372: f003 0302 and.w r3, r3, #2
  10178. 8004376: 2b00 cmp r3, #0
  10179. 8004378: d05a beq.n 8004430 <HAL_RCC_OscConfig+0x1ec>
  10180. /* Check the parameters */
  10181. assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
  10182. assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
  10183. /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
  10184. if((sysclk_source == RCC_SYSCLKSOURCE_STATUS_HSI)
  10185. 800437a: 69bb ldr r3, [r7, #24]
  10186. 800437c: 2b04 cmp r3, #4
  10187. 800437e: d005 beq.n 800438c <HAL_RCC_OscConfig+0x148>
  10188. || ((sysclk_source == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (pll_config == RCC_PLLSOURCE_HSI)))
  10189. 8004380: 69bb ldr r3, [r7, #24]
  10190. 8004382: 2b0c cmp r3, #12
  10191. 8004384: d119 bne.n 80043ba <HAL_RCC_OscConfig+0x176>
  10192. 8004386: 697b ldr r3, [r7, #20]
  10193. 8004388: 2b00 cmp r3, #0
  10194. 800438a: d116 bne.n 80043ba <HAL_RCC_OscConfig+0x176>
  10195. {
  10196. /* When HSI is used as system clock it will not disabled */
  10197. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  10198. 800438c: 4b46 ldr r3, [pc, #280] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10199. 800438e: 681b ldr r3, [r3, #0]
  10200. 8004390: f003 0302 and.w r3, r3, #2
  10201. 8004394: 2b00 cmp r3, #0
  10202. 8004396: d005 beq.n 80043a4 <HAL_RCC_OscConfig+0x160>
  10203. 8004398: 687b ldr r3, [r7, #4]
  10204. 800439a: 68db ldr r3, [r3, #12]
  10205. 800439c: 2b01 cmp r3, #1
  10206. 800439e: d001 beq.n 80043a4 <HAL_RCC_OscConfig+0x160>
  10207. {
  10208. return HAL_ERROR;
  10209. 80043a0: 2301 movs r3, #1
  10210. 80043a2: e276 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10211. }
  10212. /* Otherwise, just the calibration is allowed */
  10213. else
  10214. {
  10215. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  10216. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  10217. 80043a4: 4b40 ldr r3, [pc, #256] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10218. 80043a6: 685b ldr r3, [r3, #4]
  10219. 80043a8: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
  10220. 80043ac: 687b ldr r3, [r7, #4]
  10221. 80043ae: 691b ldr r3, [r3, #16]
  10222. 80043b0: 021b lsls r3, r3, #8
  10223. 80043b2: 493d ldr r1, [pc, #244] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10224. 80043b4: 4313 orrs r3, r2
  10225. 80043b6: 604b str r3, [r1, #4]
  10226. if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
  10227. 80043b8: e03a b.n 8004430 <HAL_RCC_OscConfig+0x1ec>
  10228. }
  10229. }
  10230. else
  10231. {
  10232. /* Check the HSI State */
  10233. if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF)
  10234. 80043ba: 687b ldr r3, [r7, #4]
  10235. 80043bc: 68db ldr r3, [r3, #12]
  10236. 80043be: 2b00 cmp r3, #0
  10237. 80043c0: d020 beq.n 8004404 <HAL_RCC_OscConfig+0x1c0>
  10238. {
  10239. /* Enable the Internal High Speed oscillator (HSI). */
  10240. __HAL_RCC_HSI_ENABLE();
  10241. 80043c2: 4b3a ldr r3, [pc, #232] ; (80044ac <HAL_RCC_OscConfig+0x268>)
  10242. 80043c4: 2201 movs r2, #1
  10243. 80043c6: 601a str r2, [r3, #0]
  10244. /* Get Start Tick */
  10245. tickstart = HAL_GetTick();
  10246. 80043c8: f7fd ff08 bl 80021dc <HAL_GetTick>
  10247. 80043cc: 6138 str r0, [r7, #16]
  10248. /* Wait till HSI is ready */
  10249. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  10250. 80043ce: e008 b.n 80043e2 <HAL_RCC_OscConfig+0x19e>
  10251. {
  10252. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  10253. 80043d0: f7fd ff04 bl 80021dc <HAL_GetTick>
  10254. 80043d4: 4602 mov r2, r0
  10255. 80043d6: 693b ldr r3, [r7, #16]
  10256. 80043d8: 1ad3 subs r3, r2, r3
  10257. 80043da: 2b02 cmp r3, #2
  10258. 80043dc: d901 bls.n 80043e2 <HAL_RCC_OscConfig+0x19e>
  10259. {
  10260. return HAL_TIMEOUT;
  10261. 80043de: 2303 movs r3, #3
  10262. 80043e0: e257 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10263. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  10264. 80043e2: 4b31 ldr r3, [pc, #196] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10265. 80043e4: 681b ldr r3, [r3, #0]
  10266. 80043e6: f003 0302 and.w r3, r3, #2
  10267. 80043ea: 2b00 cmp r3, #0
  10268. 80043ec: d0f0 beq.n 80043d0 <HAL_RCC_OscConfig+0x18c>
  10269. }
  10270. }
  10271. /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
  10272. __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
  10273. 80043ee: 4b2e ldr r3, [pc, #184] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10274. 80043f0: 685b ldr r3, [r3, #4]
  10275. 80043f2: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00
  10276. 80043f6: 687b ldr r3, [r7, #4]
  10277. 80043f8: 691b ldr r3, [r3, #16]
  10278. 80043fa: 021b lsls r3, r3, #8
  10279. 80043fc: 492a ldr r1, [pc, #168] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10280. 80043fe: 4313 orrs r3, r2
  10281. 8004400: 604b str r3, [r1, #4]
  10282. 8004402: e015 b.n 8004430 <HAL_RCC_OscConfig+0x1ec>
  10283. }
  10284. else
  10285. {
  10286. /* Disable the Internal High Speed oscillator (HSI). */
  10287. __HAL_RCC_HSI_DISABLE();
  10288. 8004404: 4b29 ldr r3, [pc, #164] ; (80044ac <HAL_RCC_OscConfig+0x268>)
  10289. 8004406: 2200 movs r2, #0
  10290. 8004408: 601a str r2, [r3, #0]
  10291. /* Get Start Tick */
  10292. tickstart = HAL_GetTick();
  10293. 800440a: f7fd fee7 bl 80021dc <HAL_GetTick>
  10294. 800440e: 6138 str r0, [r7, #16]
  10295. /* Wait till HSI is disabled */
  10296. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  10297. 8004410: e008 b.n 8004424 <HAL_RCC_OscConfig+0x1e0>
  10298. {
  10299. if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
  10300. 8004412: f7fd fee3 bl 80021dc <HAL_GetTick>
  10301. 8004416: 4602 mov r2, r0
  10302. 8004418: 693b ldr r3, [r7, #16]
  10303. 800441a: 1ad3 subs r3, r2, r3
  10304. 800441c: 2b02 cmp r3, #2
  10305. 800441e: d901 bls.n 8004424 <HAL_RCC_OscConfig+0x1e0>
  10306. {
  10307. return HAL_TIMEOUT;
  10308. 8004420: 2303 movs r3, #3
  10309. 8004422: e236 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10310. while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != 0U)
  10311. 8004424: 4b20 ldr r3, [pc, #128] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10312. 8004426: 681b ldr r3, [r3, #0]
  10313. 8004428: f003 0302 and.w r3, r3, #2
  10314. 800442c: 2b00 cmp r3, #0
  10315. 800442e: d1f0 bne.n 8004412 <HAL_RCC_OscConfig+0x1ce>
  10316. }
  10317. }
  10318. }
  10319. }
  10320. /*----------------------------- MSI Configuration --------------------------*/
  10321. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_MSI) == RCC_OSCILLATORTYPE_MSI)
  10322. 8004430: 687b ldr r3, [r7, #4]
  10323. 8004432: 681b ldr r3, [r3, #0]
  10324. 8004434: f003 0310 and.w r3, r3, #16
  10325. 8004438: 2b00 cmp r3, #0
  10326. 800443a: f000 80b8 beq.w 80045ae <HAL_RCC_OscConfig+0x36a>
  10327. {
  10328. /* When the MSI is used as system clock it will not be disabled */
  10329. if(sysclk_source == RCC_CFGR_SWS_MSI)
  10330. 800443e: 69bb ldr r3, [r7, #24]
  10331. 8004440: 2b00 cmp r3, #0
  10332. 8004442: d170 bne.n 8004526 <HAL_RCC_OscConfig+0x2e2>
  10333. {
  10334. if((__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U) && (RCC_OscInitStruct->MSIState == RCC_MSI_OFF))
  10335. 8004444: 4b18 ldr r3, [pc, #96] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10336. 8004446: 681b ldr r3, [r3, #0]
  10337. 8004448: f403 7300 and.w r3, r3, #512 ; 0x200
  10338. 800444c: 2b00 cmp r3, #0
  10339. 800444e: d005 beq.n 800445c <HAL_RCC_OscConfig+0x218>
  10340. 8004450: 687b ldr r3, [r7, #4]
  10341. 8004452: 699b ldr r3, [r3, #24]
  10342. 8004454: 2b00 cmp r3, #0
  10343. 8004456: d101 bne.n 800445c <HAL_RCC_OscConfig+0x218>
  10344. {
  10345. return HAL_ERROR;
  10346. 8004458: 2301 movs r3, #1
  10347. 800445a: e21a b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10348. assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange));
  10349. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  10350. must be correctly programmed according to the frequency of the CPU clock
  10351. (HCLK) and the supply voltage of the device. */
  10352. if(RCC_OscInitStruct->MSIClockRange > __HAL_RCC_GET_MSI_RANGE())
  10353. 800445c: 687b ldr r3, [r7, #4]
  10354. 800445e: 6a1a ldr r2, [r3, #32]
  10355. 8004460: 4b11 ldr r3, [pc, #68] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10356. 8004462: 685b ldr r3, [r3, #4]
  10357. 8004464: f403 4360 and.w r3, r3, #57344 ; 0xe000
  10358. 8004468: 429a cmp r2, r3
  10359. 800446a: d921 bls.n 80044b0 <HAL_RCC_OscConfig+0x26c>
  10360. {
  10361. /* First increase number of wait states update if necessary */
  10362. if(RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK)
  10363. 800446c: 687b ldr r3, [r7, #4]
  10364. 800446e: 6a1b ldr r3, [r3, #32]
  10365. 8004470: 4618 mov r0, r3
  10366. 8004472: f000 fc4b bl 8004d0c <RCC_SetFlashLatencyFromMSIRange>
  10367. 8004476: 4603 mov r3, r0
  10368. 8004478: 2b00 cmp r3, #0
  10369. 800447a: d001 beq.n 8004480 <HAL_RCC_OscConfig+0x23c>
  10370. {
  10371. return HAL_ERROR;
  10372. 800447c: 2301 movs r3, #1
  10373. 800447e: e208 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10374. }
  10375. /* Selects the Multiple Speed oscillator (MSI) clock range .*/
  10376. __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
  10377. 8004480: 4b09 ldr r3, [pc, #36] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10378. 8004482: 685b ldr r3, [r3, #4]
  10379. 8004484: f423 4260 bic.w r2, r3, #57344 ; 0xe000
  10380. 8004488: 687b ldr r3, [r7, #4]
  10381. 800448a: 6a1b ldr r3, [r3, #32]
  10382. 800448c: 4906 ldr r1, [pc, #24] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10383. 800448e: 4313 orrs r3, r2
  10384. 8004490: 604b str r3, [r1, #4]
  10385. /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
  10386. __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
  10387. 8004492: 4b05 ldr r3, [pc, #20] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10388. 8004494: 685b ldr r3, [r3, #4]
  10389. 8004496: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
  10390. 800449a: 687b ldr r3, [r7, #4]
  10391. 800449c: 69db ldr r3, [r3, #28]
  10392. 800449e: 061b lsls r3, r3, #24
  10393. 80044a0: 4901 ldr r1, [pc, #4] ; (80044a8 <HAL_RCC_OscConfig+0x264>)
  10394. 80044a2: 4313 orrs r3, r2
  10395. 80044a4: 604b str r3, [r1, #4]
  10396. 80044a6: e020 b.n 80044ea <HAL_RCC_OscConfig+0x2a6>
  10397. 80044a8: 40023800 .word 0x40023800
  10398. 80044ac: 42470000 .word 0x42470000
  10399. }
  10400. else
  10401. {
  10402. /* Else, keep current flash latency while decreasing applies */
  10403. /* Selects the Multiple Speed oscillator (MSI) clock range .*/
  10404. __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
  10405. 80044b0: 4ba4 ldr r3, [pc, #656] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10406. 80044b2: 685b ldr r3, [r3, #4]
  10407. 80044b4: f423 4260 bic.w r2, r3, #57344 ; 0xe000
  10408. 80044b8: 687b ldr r3, [r7, #4]
  10409. 80044ba: 6a1b ldr r3, [r3, #32]
  10410. 80044bc: 49a1 ldr r1, [pc, #644] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10411. 80044be: 4313 orrs r3, r2
  10412. 80044c0: 604b str r3, [r1, #4]
  10413. /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
  10414. __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
  10415. 80044c2: 4ba0 ldr r3, [pc, #640] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10416. 80044c4: 685b ldr r3, [r3, #4]
  10417. 80044c6: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
  10418. 80044ca: 687b ldr r3, [r7, #4]
  10419. 80044cc: 69db ldr r3, [r3, #28]
  10420. 80044ce: 061b lsls r3, r3, #24
  10421. 80044d0: 499c ldr r1, [pc, #624] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10422. 80044d2: 4313 orrs r3, r2
  10423. 80044d4: 604b str r3, [r1, #4]
  10424. /* Decrease number of wait states update if necessary */
  10425. if(RCC_SetFlashLatencyFromMSIRange(RCC_OscInitStruct->MSIClockRange) != HAL_OK)
  10426. 80044d6: 687b ldr r3, [r7, #4]
  10427. 80044d8: 6a1b ldr r3, [r3, #32]
  10428. 80044da: 4618 mov r0, r3
  10429. 80044dc: f000 fc16 bl 8004d0c <RCC_SetFlashLatencyFromMSIRange>
  10430. 80044e0: 4603 mov r3, r0
  10431. 80044e2: 2b00 cmp r3, #0
  10432. 80044e4: d001 beq.n 80044ea <HAL_RCC_OscConfig+0x2a6>
  10433. {
  10434. return HAL_ERROR;
  10435. 80044e6: 2301 movs r3, #1
  10436. 80044e8: e1d3 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10437. }
  10438. }
  10439. /* Update the SystemCoreClock global variable */
  10440. SystemCoreClock = (32768U * (1UL << ((RCC_OscInitStruct->MSIClockRange >> RCC_ICSCR_MSIRANGE_Pos) + 1U)))
  10441. 80044ea: 687b ldr r3, [r7, #4]
  10442. 80044ec: 6a1b ldr r3, [r3, #32]
  10443. 80044ee: 0b5b lsrs r3, r3, #13
  10444. 80044f0: 3301 adds r3, #1
  10445. 80044f2: f44f 4200 mov.w r2, #32768 ; 0x8000
  10446. 80044f6: fa02 f303 lsl.w r3, r2, r3
  10447. >> AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos)];
  10448. 80044fa: 4a92 ldr r2, [pc, #584] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10449. 80044fc: 6892 ldr r2, [r2, #8]
  10450. 80044fe: 0912 lsrs r2, r2, #4
  10451. 8004500: f002 020f and.w r2, r2, #15
  10452. 8004504: 4990 ldr r1, [pc, #576] ; (8004748 <HAL_RCC_OscConfig+0x504>)
  10453. 8004506: 5c8a ldrb r2, [r1, r2]
  10454. 8004508: 40d3 lsrs r3, r2
  10455. SystemCoreClock = (32768U * (1UL << ((RCC_OscInitStruct->MSIClockRange >> RCC_ICSCR_MSIRANGE_Pos) + 1U)))
  10456. 800450a: 4a90 ldr r2, [pc, #576] ; (800474c <HAL_RCC_OscConfig+0x508>)
  10457. 800450c: 6013 str r3, [r2, #0]
  10458. /* Configure the source of time base considering new system clocks settings*/
  10459. status = HAL_InitTick(uwTickPrio);
  10460. 800450e: 4b90 ldr r3, [pc, #576] ; (8004750 <HAL_RCC_OscConfig+0x50c>)
  10461. 8004510: 681b ldr r3, [r3, #0]
  10462. 8004512: 4618 mov r0, r3
  10463. 8004514: f7fd fe16 bl 8002144 <HAL_InitTick>
  10464. 8004518: 4603 mov r3, r0
  10465. 800451a: 73fb strb r3, [r7, #15]
  10466. if(status != HAL_OK)
  10467. 800451c: 7bfb ldrb r3, [r7, #15]
  10468. 800451e: 2b00 cmp r3, #0
  10469. 8004520: d045 beq.n 80045ae <HAL_RCC_OscConfig+0x36a>
  10470. {
  10471. return status;
  10472. 8004522: 7bfb ldrb r3, [r7, #15]
  10473. 8004524: e1b5 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10474. {
  10475. /* Check MSI State */
  10476. assert_param(IS_RCC_MSI(RCC_OscInitStruct->MSIState));
  10477. /* Check the MSI State */
  10478. if(RCC_OscInitStruct->MSIState != RCC_MSI_OFF)
  10479. 8004526: 687b ldr r3, [r7, #4]
  10480. 8004528: 699b ldr r3, [r3, #24]
  10481. 800452a: 2b00 cmp r3, #0
  10482. 800452c: d029 beq.n 8004582 <HAL_RCC_OscConfig+0x33e>
  10483. {
  10484. /* Enable the Multi Speed oscillator (MSI). */
  10485. __HAL_RCC_MSI_ENABLE();
  10486. 800452e: 4b89 ldr r3, [pc, #548] ; (8004754 <HAL_RCC_OscConfig+0x510>)
  10487. 8004530: 2201 movs r2, #1
  10488. 8004532: 601a str r2, [r3, #0]
  10489. /* Get Start Tick */
  10490. tickstart = HAL_GetTick();
  10491. 8004534: f7fd fe52 bl 80021dc <HAL_GetTick>
  10492. 8004538: 6138 str r0, [r7, #16]
  10493. /* Wait till MSI is ready */
  10494. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
  10495. 800453a: e008 b.n 800454e <HAL_RCC_OscConfig+0x30a>
  10496. {
  10497. if((HAL_GetTick() - tickstart) > MSI_TIMEOUT_VALUE)
  10498. 800453c: f7fd fe4e bl 80021dc <HAL_GetTick>
  10499. 8004540: 4602 mov r2, r0
  10500. 8004542: 693b ldr r3, [r7, #16]
  10501. 8004544: 1ad3 subs r3, r2, r3
  10502. 8004546: 2b02 cmp r3, #2
  10503. 8004548: d901 bls.n 800454e <HAL_RCC_OscConfig+0x30a>
  10504. {
  10505. return HAL_TIMEOUT;
  10506. 800454a: 2303 movs r3, #3
  10507. 800454c: e1a1 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10508. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
  10509. 800454e: 4b7d ldr r3, [pc, #500] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10510. 8004550: 681b ldr r3, [r3, #0]
  10511. 8004552: f403 7300 and.w r3, r3, #512 ; 0x200
  10512. 8004556: 2b00 cmp r3, #0
  10513. 8004558: d0f0 beq.n 800453c <HAL_RCC_OscConfig+0x2f8>
  10514. /* Check MSICalibrationValue and MSIClockRange input parameters */
  10515. assert_param(IS_RCC_MSICALIBRATION_VALUE(RCC_OscInitStruct->MSICalibrationValue));
  10516. assert_param(IS_RCC_MSI_CLOCK_RANGE(RCC_OscInitStruct->MSIClockRange));
  10517. /* Selects the Multiple Speed oscillator (MSI) clock range .*/
  10518. __HAL_RCC_MSI_RANGE_CONFIG(RCC_OscInitStruct->MSIClockRange);
  10519. 800455a: 4b7a ldr r3, [pc, #488] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10520. 800455c: 685b ldr r3, [r3, #4]
  10521. 800455e: f423 4260 bic.w r2, r3, #57344 ; 0xe000
  10522. 8004562: 687b ldr r3, [r7, #4]
  10523. 8004564: 6a1b ldr r3, [r3, #32]
  10524. 8004566: 4977 ldr r1, [pc, #476] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10525. 8004568: 4313 orrs r3, r2
  10526. 800456a: 604b str r3, [r1, #4]
  10527. /* Adjusts the Multiple Speed oscillator (MSI) calibration value.*/
  10528. __HAL_RCC_MSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->MSICalibrationValue);
  10529. 800456c: 4b75 ldr r3, [pc, #468] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10530. 800456e: 685b ldr r3, [r3, #4]
  10531. 8004570: f023 427f bic.w r2, r3, #4278190080 ; 0xff000000
  10532. 8004574: 687b ldr r3, [r7, #4]
  10533. 8004576: 69db ldr r3, [r3, #28]
  10534. 8004578: 061b lsls r3, r3, #24
  10535. 800457a: 4972 ldr r1, [pc, #456] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10536. 800457c: 4313 orrs r3, r2
  10537. 800457e: 604b str r3, [r1, #4]
  10538. 8004580: e015 b.n 80045ae <HAL_RCC_OscConfig+0x36a>
  10539. }
  10540. else
  10541. {
  10542. /* Disable the Multi Speed oscillator (MSI). */
  10543. __HAL_RCC_MSI_DISABLE();
  10544. 8004582: 4b74 ldr r3, [pc, #464] ; (8004754 <HAL_RCC_OscConfig+0x510>)
  10545. 8004584: 2200 movs r2, #0
  10546. 8004586: 601a str r2, [r3, #0]
  10547. /* Get Start Tick */
  10548. tickstart = HAL_GetTick();
  10549. 8004588: f7fd fe28 bl 80021dc <HAL_GetTick>
  10550. 800458c: 6138 str r0, [r7, #16]
  10551. /* Wait till MSI is ready */
  10552. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U)
  10553. 800458e: e008 b.n 80045a2 <HAL_RCC_OscConfig+0x35e>
  10554. {
  10555. if((HAL_GetTick() - tickstart) > MSI_TIMEOUT_VALUE)
  10556. 8004590: f7fd fe24 bl 80021dc <HAL_GetTick>
  10557. 8004594: 4602 mov r2, r0
  10558. 8004596: 693b ldr r3, [r7, #16]
  10559. 8004598: 1ad3 subs r3, r2, r3
  10560. 800459a: 2b02 cmp r3, #2
  10561. 800459c: d901 bls.n 80045a2 <HAL_RCC_OscConfig+0x35e>
  10562. {
  10563. return HAL_TIMEOUT;
  10564. 800459e: 2303 movs r3, #3
  10565. 80045a0: e177 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10566. while(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) != 0U)
  10567. 80045a2: 4b68 ldr r3, [pc, #416] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10568. 80045a4: 681b ldr r3, [r3, #0]
  10569. 80045a6: f403 7300 and.w r3, r3, #512 ; 0x200
  10570. 80045aa: 2b00 cmp r3, #0
  10571. 80045ac: d1f0 bne.n 8004590 <HAL_RCC_OscConfig+0x34c>
  10572. }
  10573. }
  10574. }
  10575. }
  10576. /*------------------------------ LSI Configuration -------------------------*/
  10577. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
  10578. 80045ae: 687b ldr r3, [r7, #4]
  10579. 80045b0: 681b ldr r3, [r3, #0]
  10580. 80045b2: f003 0308 and.w r3, r3, #8
  10581. 80045b6: 2b00 cmp r3, #0
  10582. 80045b8: d030 beq.n 800461c <HAL_RCC_OscConfig+0x3d8>
  10583. {
  10584. /* Check the parameters */
  10585. assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
  10586. /* Check the LSI State */
  10587. if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF)
  10588. 80045ba: 687b ldr r3, [r7, #4]
  10589. 80045bc: 695b ldr r3, [r3, #20]
  10590. 80045be: 2b00 cmp r3, #0
  10591. 80045c0: d016 beq.n 80045f0 <HAL_RCC_OscConfig+0x3ac>
  10592. {
  10593. /* Enable the Internal Low Speed oscillator (LSI). */
  10594. __HAL_RCC_LSI_ENABLE();
  10595. 80045c2: 4b65 ldr r3, [pc, #404] ; (8004758 <HAL_RCC_OscConfig+0x514>)
  10596. 80045c4: 2201 movs r2, #1
  10597. 80045c6: 601a str r2, [r3, #0]
  10598. /* Get Start Tick */
  10599. tickstart = HAL_GetTick();
  10600. 80045c8: f7fd fe08 bl 80021dc <HAL_GetTick>
  10601. 80045cc: 6138 str r0, [r7, #16]
  10602. /* Wait till LSI is ready */
  10603. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  10604. 80045ce: e008 b.n 80045e2 <HAL_RCC_OscConfig+0x39e>
  10605. {
  10606. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  10607. 80045d0: f7fd fe04 bl 80021dc <HAL_GetTick>
  10608. 80045d4: 4602 mov r2, r0
  10609. 80045d6: 693b ldr r3, [r7, #16]
  10610. 80045d8: 1ad3 subs r3, r2, r3
  10611. 80045da: 2b02 cmp r3, #2
  10612. 80045dc: d901 bls.n 80045e2 <HAL_RCC_OscConfig+0x39e>
  10613. {
  10614. return HAL_TIMEOUT;
  10615. 80045de: 2303 movs r3, #3
  10616. 80045e0: e157 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10617. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == 0U)
  10618. 80045e2: 4b58 ldr r3, [pc, #352] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10619. 80045e4: 6b5b ldr r3, [r3, #52] ; 0x34
  10620. 80045e6: f003 0302 and.w r3, r3, #2
  10621. 80045ea: 2b00 cmp r3, #0
  10622. 80045ec: d0f0 beq.n 80045d0 <HAL_RCC_OscConfig+0x38c>
  10623. 80045ee: e015 b.n 800461c <HAL_RCC_OscConfig+0x3d8>
  10624. }
  10625. }
  10626. else
  10627. {
  10628. /* Disable the Internal Low Speed oscillator (LSI). */
  10629. __HAL_RCC_LSI_DISABLE();
  10630. 80045f0: 4b59 ldr r3, [pc, #356] ; (8004758 <HAL_RCC_OscConfig+0x514>)
  10631. 80045f2: 2200 movs r2, #0
  10632. 80045f4: 601a str r2, [r3, #0]
  10633. /* Get Start Tick */
  10634. tickstart = HAL_GetTick();
  10635. 80045f6: f7fd fdf1 bl 80021dc <HAL_GetTick>
  10636. 80045fa: 6138 str r0, [r7, #16]
  10637. /* Wait till LSI is disabled */
  10638. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  10639. 80045fc: e008 b.n 8004610 <HAL_RCC_OscConfig+0x3cc>
  10640. {
  10641. if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
  10642. 80045fe: f7fd fded bl 80021dc <HAL_GetTick>
  10643. 8004602: 4602 mov r2, r0
  10644. 8004604: 693b ldr r3, [r7, #16]
  10645. 8004606: 1ad3 subs r3, r2, r3
  10646. 8004608: 2b02 cmp r3, #2
  10647. 800460a: d901 bls.n 8004610 <HAL_RCC_OscConfig+0x3cc>
  10648. {
  10649. return HAL_TIMEOUT;
  10650. 800460c: 2303 movs r3, #3
  10651. 800460e: e140 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10652. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != 0U)
  10653. 8004610: 4b4c ldr r3, [pc, #304] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10654. 8004612: 6b5b ldr r3, [r3, #52] ; 0x34
  10655. 8004614: f003 0302 and.w r3, r3, #2
  10656. 8004618: 2b00 cmp r3, #0
  10657. 800461a: d1f0 bne.n 80045fe <HAL_RCC_OscConfig+0x3ba>
  10658. }
  10659. }
  10660. }
  10661. }
  10662. /*------------------------------ LSE Configuration -------------------------*/
  10663. if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
  10664. 800461c: 687b ldr r3, [r7, #4]
  10665. 800461e: 681b ldr r3, [r3, #0]
  10666. 8004620: f003 0304 and.w r3, r3, #4
  10667. 8004624: 2b00 cmp r3, #0
  10668. 8004626: f000 80b5 beq.w 8004794 <HAL_RCC_OscConfig+0x550>
  10669. {
  10670. FlagStatus pwrclkchanged = RESET;
  10671. 800462a: 2300 movs r3, #0
  10672. 800462c: 77fb strb r3, [r7, #31]
  10673. /* Check the parameters */
  10674. assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
  10675. /* Update LSE configuration in Backup Domain control register */
  10676. /* Requires to enable write access to Backup Domain of necessary */
  10677. if(__HAL_RCC_PWR_IS_CLK_DISABLED())
  10678. 800462e: 4b45 ldr r3, [pc, #276] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10679. 8004630: 6a5b ldr r3, [r3, #36] ; 0x24
  10680. 8004632: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  10681. 8004636: 2b00 cmp r3, #0
  10682. 8004638: d10d bne.n 8004656 <HAL_RCC_OscConfig+0x412>
  10683. {
  10684. __HAL_RCC_PWR_CLK_ENABLE();
  10685. 800463a: 4b42 ldr r3, [pc, #264] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10686. 800463c: 6a5b ldr r3, [r3, #36] ; 0x24
  10687. 800463e: 4a41 ldr r2, [pc, #260] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10688. 8004640: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  10689. 8004644: 6253 str r3, [r2, #36] ; 0x24
  10690. 8004646: 4b3f ldr r3, [pc, #252] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10691. 8004648: 6a5b ldr r3, [r3, #36] ; 0x24
  10692. 800464a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  10693. 800464e: 60bb str r3, [r7, #8]
  10694. 8004650: 68bb ldr r3, [r7, #8]
  10695. pwrclkchanged = SET;
  10696. 8004652: 2301 movs r3, #1
  10697. 8004654: 77fb strb r3, [r7, #31]
  10698. }
  10699. if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  10700. 8004656: 4b41 ldr r3, [pc, #260] ; (800475c <HAL_RCC_OscConfig+0x518>)
  10701. 8004658: 681b ldr r3, [r3, #0]
  10702. 800465a: f403 7380 and.w r3, r3, #256 ; 0x100
  10703. 800465e: 2b00 cmp r3, #0
  10704. 8004660: d118 bne.n 8004694 <HAL_RCC_OscConfig+0x450>
  10705. {
  10706. /* Enable write access to Backup domain */
  10707. SET_BIT(PWR->CR, PWR_CR_DBP);
  10708. 8004662: 4b3e ldr r3, [pc, #248] ; (800475c <HAL_RCC_OscConfig+0x518>)
  10709. 8004664: 681b ldr r3, [r3, #0]
  10710. 8004666: 4a3d ldr r2, [pc, #244] ; (800475c <HAL_RCC_OscConfig+0x518>)
  10711. 8004668: f443 7380 orr.w r3, r3, #256 ; 0x100
  10712. 800466c: 6013 str r3, [r2, #0]
  10713. /* Wait for Backup domain Write protection disable */
  10714. tickstart = HAL_GetTick();
  10715. 800466e: f7fd fdb5 bl 80021dc <HAL_GetTick>
  10716. 8004672: 6138 str r0, [r7, #16]
  10717. while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  10718. 8004674: e008 b.n 8004688 <HAL_RCC_OscConfig+0x444>
  10719. {
  10720. if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
  10721. 8004676: f7fd fdb1 bl 80021dc <HAL_GetTick>
  10722. 800467a: 4602 mov r2, r0
  10723. 800467c: 693b ldr r3, [r7, #16]
  10724. 800467e: 1ad3 subs r3, r2, r3
  10725. 8004680: 2b64 cmp r3, #100 ; 0x64
  10726. 8004682: d901 bls.n 8004688 <HAL_RCC_OscConfig+0x444>
  10727. {
  10728. return HAL_TIMEOUT;
  10729. 8004684: 2303 movs r3, #3
  10730. 8004686: e104 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10731. while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
  10732. 8004688: 4b34 ldr r3, [pc, #208] ; (800475c <HAL_RCC_OscConfig+0x518>)
  10733. 800468a: 681b ldr r3, [r3, #0]
  10734. 800468c: f403 7380 and.w r3, r3, #256 ; 0x100
  10735. 8004690: 2b00 cmp r3, #0
  10736. 8004692: d0f0 beq.n 8004676 <HAL_RCC_OscConfig+0x432>
  10737. }
  10738. }
  10739. }
  10740. /* Set the new LSE configuration -----------------------------------------*/
  10741. __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
  10742. 8004694: 687b ldr r3, [r7, #4]
  10743. 8004696: 689b ldr r3, [r3, #8]
  10744. 8004698: 2b01 cmp r3, #1
  10745. 800469a: d106 bne.n 80046aa <HAL_RCC_OscConfig+0x466>
  10746. 800469c: 4b29 ldr r3, [pc, #164] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10747. 800469e: 6b5b ldr r3, [r3, #52] ; 0x34
  10748. 80046a0: 4a28 ldr r2, [pc, #160] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10749. 80046a2: f443 7380 orr.w r3, r3, #256 ; 0x100
  10750. 80046a6: 6353 str r3, [r2, #52] ; 0x34
  10751. 80046a8: e02d b.n 8004706 <HAL_RCC_OscConfig+0x4c2>
  10752. 80046aa: 687b ldr r3, [r7, #4]
  10753. 80046ac: 689b ldr r3, [r3, #8]
  10754. 80046ae: 2b00 cmp r3, #0
  10755. 80046b0: d10c bne.n 80046cc <HAL_RCC_OscConfig+0x488>
  10756. 80046b2: 4b24 ldr r3, [pc, #144] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10757. 80046b4: 6b5b ldr r3, [r3, #52] ; 0x34
  10758. 80046b6: 4a23 ldr r2, [pc, #140] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10759. 80046b8: f423 7380 bic.w r3, r3, #256 ; 0x100
  10760. 80046bc: 6353 str r3, [r2, #52] ; 0x34
  10761. 80046be: 4b21 ldr r3, [pc, #132] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10762. 80046c0: 6b5b ldr r3, [r3, #52] ; 0x34
  10763. 80046c2: 4a20 ldr r2, [pc, #128] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10764. 80046c4: f423 6380 bic.w r3, r3, #1024 ; 0x400
  10765. 80046c8: 6353 str r3, [r2, #52] ; 0x34
  10766. 80046ca: e01c b.n 8004706 <HAL_RCC_OscConfig+0x4c2>
  10767. 80046cc: 687b ldr r3, [r7, #4]
  10768. 80046ce: 689b ldr r3, [r3, #8]
  10769. 80046d0: 2b05 cmp r3, #5
  10770. 80046d2: d10c bne.n 80046ee <HAL_RCC_OscConfig+0x4aa>
  10771. 80046d4: 4b1b ldr r3, [pc, #108] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10772. 80046d6: 6b5b ldr r3, [r3, #52] ; 0x34
  10773. 80046d8: 4a1a ldr r2, [pc, #104] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10774. 80046da: f443 6380 orr.w r3, r3, #1024 ; 0x400
  10775. 80046de: 6353 str r3, [r2, #52] ; 0x34
  10776. 80046e0: 4b18 ldr r3, [pc, #96] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10777. 80046e2: 6b5b ldr r3, [r3, #52] ; 0x34
  10778. 80046e4: 4a17 ldr r2, [pc, #92] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10779. 80046e6: f443 7380 orr.w r3, r3, #256 ; 0x100
  10780. 80046ea: 6353 str r3, [r2, #52] ; 0x34
  10781. 80046ec: e00b b.n 8004706 <HAL_RCC_OscConfig+0x4c2>
  10782. 80046ee: 4b15 ldr r3, [pc, #84] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10783. 80046f0: 6b5b ldr r3, [r3, #52] ; 0x34
  10784. 80046f2: 4a14 ldr r2, [pc, #80] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10785. 80046f4: f423 7380 bic.w r3, r3, #256 ; 0x100
  10786. 80046f8: 6353 str r3, [r2, #52] ; 0x34
  10787. 80046fa: 4b12 ldr r3, [pc, #72] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10788. 80046fc: 6b5b ldr r3, [r3, #52] ; 0x34
  10789. 80046fe: 4a11 ldr r2, [pc, #68] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10790. 8004700: f423 6380 bic.w r3, r3, #1024 ; 0x400
  10791. 8004704: 6353 str r3, [r2, #52] ; 0x34
  10792. /* Check the LSE State */
  10793. if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF)
  10794. 8004706: 687b ldr r3, [r7, #4]
  10795. 8004708: 689b ldr r3, [r3, #8]
  10796. 800470a: 2b00 cmp r3, #0
  10797. 800470c: d015 beq.n 800473a <HAL_RCC_OscConfig+0x4f6>
  10798. {
  10799. /* Get Start Tick */
  10800. tickstart = HAL_GetTick();
  10801. 800470e: f7fd fd65 bl 80021dc <HAL_GetTick>
  10802. 8004712: 6138 str r0, [r7, #16]
  10803. /* Wait till LSE is ready */
  10804. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  10805. 8004714: e00a b.n 800472c <HAL_RCC_OscConfig+0x4e8>
  10806. {
  10807. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  10808. 8004716: f7fd fd61 bl 80021dc <HAL_GetTick>
  10809. 800471a: 4602 mov r2, r0
  10810. 800471c: 693b ldr r3, [r7, #16]
  10811. 800471e: 1ad3 subs r3, r2, r3
  10812. 8004720: f241 3288 movw r2, #5000 ; 0x1388
  10813. 8004724: 4293 cmp r3, r2
  10814. 8004726: d901 bls.n 800472c <HAL_RCC_OscConfig+0x4e8>
  10815. {
  10816. return HAL_TIMEOUT;
  10817. 8004728: 2303 movs r3, #3
  10818. 800472a: e0b2 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10819. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
  10820. 800472c: 4b05 ldr r3, [pc, #20] ; (8004744 <HAL_RCC_OscConfig+0x500>)
  10821. 800472e: 6b5b ldr r3, [r3, #52] ; 0x34
  10822. 8004730: f403 7300 and.w r3, r3, #512 ; 0x200
  10823. 8004734: 2b00 cmp r3, #0
  10824. 8004736: d0ee beq.n 8004716 <HAL_RCC_OscConfig+0x4d2>
  10825. 8004738: e023 b.n 8004782 <HAL_RCC_OscConfig+0x53e>
  10826. }
  10827. }
  10828. else
  10829. {
  10830. /* Get Start Tick */
  10831. tickstart = HAL_GetTick();
  10832. 800473a: f7fd fd4f bl 80021dc <HAL_GetTick>
  10833. 800473e: 6138 str r0, [r7, #16]
  10834. /* Wait till LSE is disabled */
  10835. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  10836. 8004740: e019 b.n 8004776 <HAL_RCC_OscConfig+0x532>
  10837. 8004742: bf00 nop
  10838. 8004744: 40023800 .word 0x40023800
  10839. 8004748: 080093a0 .word 0x080093a0
  10840. 800474c: 20000000 .word 0x20000000
  10841. 8004750: 20000004 .word 0x20000004
  10842. 8004754: 42470020 .word 0x42470020
  10843. 8004758: 42470680 .word 0x42470680
  10844. 800475c: 40007000 .word 0x40007000
  10845. {
  10846. if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
  10847. 8004760: f7fd fd3c bl 80021dc <HAL_GetTick>
  10848. 8004764: 4602 mov r2, r0
  10849. 8004766: 693b ldr r3, [r7, #16]
  10850. 8004768: 1ad3 subs r3, r2, r3
  10851. 800476a: f241 3288 movw r2, #5000 ; 0x1388
  10852. 800476e: 4293 cmp r3, r2
  10853. 8004770: d901 bls.n 8004776 <HAL_RCC_OscConfig+0x532>
  10854. {
  10855. return HAL_TIMEOUT;
  10856. 8004772: 2303 movs r3, #3
  10857. 8004774: e08d b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10858. while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != 0U)
  10859. 8004776: 4b49 ldr r3, [pc, #292] ; (800489c <HAL_RCC_OscConfig+0x658>)
  10860. 8004778: 6b5b ldr r3, [r3, #52] ; 0x34
  10861. 800477a: f403 7300 and.w r3, r3, #512 ; 0x200
  10862. 800477e: 2b00 cmp r3, #0
  10863. 8004780: d1ee bne.n 8004760 <HAL_RCC_OscConfig+0x51c>
  10864. }
  10865. }
  10866. }
  10867. /* Require to disable power clock if necessary */
  10868. if(pwrclkchanged == SET)
  10869. 8004782: 7ffb ldrb r3, [r7, #31]
  10870. 8004784: 2b01 cmp r3, #1
  10871. 8004786: d105 bne.n 8004794 <HAL_RCC_OscConfig+0x550>
  10872. {
  10873. __HAL_RCC_PWR_CLK_DISABLE();
  10874. 8004788: 4b44 ldr r3, [pc, #272] ; (800489c <HAL_RCC_OscConfig+0x658>)
  10875. 800478a: 6a5b ldr r3, [r3, #36] ; 0x24
  10876. 800478c: 4a43 ldr r2, [pc, #268] ; (800489c <HAL_RCC_OscConfig+0x658>)
  10877. 800478e: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  10878. 8004792: 6253 str r3, [r2, #36] ; 0x24
  10879. }
  10880. /*-------------------------------- PLL Configuration -----------------------*/
  10881. /* Check the parameters */
  10882. assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
  10883. if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
  10884. 8004794: 687b ldr r3, [r7, #4]
  10885. 8004796: 6a5b ldr r3, [r3, #36] ; 0x24
  10886. 8004798: 2b00 cmp r3, #0
  10887. 800479a: d079 beq.n 8004890 <HAL_RCC_OscConfig+0x64c>
  10888. {
  10889. /* Check if the PLL is used as system clock or not */
  10890. if(sysclk_source != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  10891. 800479c: 69bb ldr r3, [r7, #24]
  10892. 800479e: 2b0c cmp r3, #12
  10893. 80047a0: d056 beq.n 8004850 <HAL_RCC_OscConfig+0x60c>
  10894. {
  10895. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
  10896. 80047a2: 687b ldr r3, [r7, #4]
  10897. 80047a4: 6a5b ldr r3, [r3, #36] ; 0x24
  10898. 80047a6: 2b02 cmp r3, #2
  10899. 80047a8: d13b bne.n 8004822 <HAL_RCC_OscConfig+0x5de>
  10900. assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource));
  10901. assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL));
  10902. assert_param(IS_RCC_PLL_DIV(RCC_OscInitStruct->PLL.PLLDIV));
  10903. /* Disable the main PLL. */
  10904. __HAL_RCC_PLL_DISABLE();
  10905. 80047aa: 4b3d ldr r3, [pc, #244] ; (80048a0 <HAL_RCC_OscConfig+0x65c>)
  10906. 80047ac: 2200 movs r2, #0
  10907. 80047ae: 601a str r2, [r3, #0]
  10908. /* Get Start Tick */
  10909. tickstart = HAL_GetTick();
  10910. 80047b0: f7fd fd14 bl 80021dc <HAL_GetTick>
  10911. 80047b4: 6138 str r0, [r7, #16]
  10912. /* Wait till PLL is disabled */
  10913. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  10914. 80047b6: e008 b.n 80047ca <HAL_RCC_OscConfig+0x586>
  10915. {
  10916. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  10917. 80047b8: f7fd fd10 bl 80021dc <HAL_GetTick>
  10918. 80047bc: 4602 mov r2, r0
  10919. 80047be: 693b ldr r3, [r7, #16]
  10920. 80047c0: 1ad3 subs r3, r2, r3
  10921. 80047c2: 2b02 cmp r3, #2
  10922. 80047c4: d901 bls.n 80047ca <HAL_RCC_OscConfig+0x586>
  10923. {
  10924. return HAL_TIMEOUT;
  10925. 80047c6: 2303 movs r3, #3
  10926. 80047c8: e063 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10927. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  10928. 80047ca: 4b34 ldr r3, [pc, #208] ; (800489c <HAL_RCC_OscConfig+0x658>)
  10929. 80047cc: 681b ldr r3, [r3, #0]
  10930. 80047ce: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  10931. 80047d2: 2b00 cmp r3, #0
  10932. 80047d4: d1f0 bne.n 80047b8 <HAL_RCC_OscConfig+0x574>
  10933. }
  10934. }
  10935. /* Configure the main PLL clock source, multiplication and division factors. */
  10936. __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
  10937. 80047d6: 4b31 ldr r3, [pc, #196] ; (800489c <HAL_RCC_OscConfig+0x658>)
  10938. 80047d8: 689b ldr r3, [r3, #8]
  10939. 80047da: f423 027d bic.w r2, r3, #16580608 ; 0xfd0000
  10940. 80047de: 687b ldr r3, [r7, #4]
  10941. 80047e0: 6a99 ldr r1, [r3, #40] ; 0x28
  10942. 80047e2: 687b ldr r3, [r7, #4]
  10943. 80047e4: 6adb ldr r3, [r3, #44] ; 0x2c
  10944. 80047e6: 4319 orrs r1, r3
  10945. 80047e8: 687b ldr r3, [r7, #4]
  10946. 80047ea: 6b1b ldr r3, [r3, #48] ; 0x30
  10947. 80047ec: 430b orrs r3, r1
  10948. 80047ee: 492b ldr r1, [pc, #172] ; (800489c <HAL_RCC_OscConfig+0x658>)
  10949. 80047f0: 4313 orrs r3, r2
  10950. 80047f2: 608b str r3, [r1, #8]
  10951. RCC_OscInitStruct->PLL.PLLMUL,
  10952. RCC_OscInitStruct->PLL.PLLDIV);
  10953. /* Enable the main PLL. */
  10954. __HAL_RCC_PLL_ENABLE();
  10955. 80047f4: 4b2a ldr r3, [pc, #168] ; (80048a0 <HAL_RCC_OscConfig+0x65c>)
  10956. 80047f6: 2201 movs r2, #1
  10957. 80047f8: 601a str r2, [r3, #0]
  10958. /* Get Start Tick */
  10959. tickstart = HAL_GetTick();
  10960. 80047fa: f7fd fcef bl 80021dc <HAL_GetTick>
  10961. 80047fe: 6138 str r0, [r7, #16]
  10962. /* Wait till PLL is ready */
  10963. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  10964. 8004800: e008 b.n 8004814 <HAL_RCC_OscConfig+0x5d0>
  10965. {
  10966. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  10967. 8004802: f7fd fceb bl 80021dc <HAL_GetTick>
  10968. 8004806: 4602 mov r2, r0
  10969. 8004808: 693b ldr r3, [r7, #16]
  10970. 800480a: 1ad3 subs r3, r2, r3
  10971. 800480c: 2b02 cmp r3, #2
  10972. 800480e: d901 bls.n 8004814 <HAL_RCC_OscConfig+0x5d0>
  10973. {
  10974. return HAL_TIMEOUT;
  10975. 8004810: 2303 movs r3, #3
  10976. 8004812: e03e b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  10977. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  10978. 8004814: 4b21 ldr r3, [pc, #132] ; (800489c <HAL_RCC_OscConfig+0x658>)
  10979. 8004816: 681b ldr r3, [r3, #0]
  10980. 8004818: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  10981. 800481c: 2b00 cmp r3, #0
  10982. 800481e: d0f0 beq.n 8004802 <HAL_RCC_OscConfig+0x5be>
  10983. 8004820: e036 b.n 8004890 <HAL_RCC_OscConfig+0x64c>
  10984. }
  10985. }
  10986. else
  10987. {
  10988. /* Disable the main PLL. */
  10989. __HAL_RCC_PLL_DISABLE();
  10990. 8004822: 4b1f ldr r3, [pc, #124] ; (80048a0 <HAL_RCC_OscConfig+0x65c>)
  10991. 8004824: 2200 movs r2, #0
  10992. 8004826: 601a str r2, [r3, #0]
  10993. /* Get Start Tick */
  10994. tickstart = HAL_GetTick();
  10995. 8004828: f7fd fcd8 bl 80021dc <HAL_GetTick>
  10996. 800482c: 6138 str r0, [r7, #16]
  10997. /* Wait till PLL is disabled */
  10998. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  10999. 800482e: e008 b.n 8004842 <HAL_RCC_OscConfig+0x5fe>
  11000. {
  11001. if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
  11002. 8004830: f7fd fcd4 bl 80021dc <HAL_GetTick>
  11003. 8004834: 4602 mov r2, r0
  11004. 8004836: 693b ldr r3, [r7, #16]
  11005. 8004838: 1ad3 subs r3, r2, r3
  11006. 800483a: 2b02 cmp r3, #2
  11007. 800483c: d901 bls.n 8004842 <HAL_RCC_OscConfig+0x5fe>
  11008. {
  11009. return HAL_TIMEOUT;
  11010. 800483e: 2303 movs r3, #3
  11011. 8004840: e027 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  11012. while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != 0U)
  11013. 8004842: 4b16 ldr r3, [pc, #88] ; (800489c <HAL_RCC_OscConfig+0x658>)
  11014. 8004844: 681b ldr r3, [r3, #0]
  11015. 8004846: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  11016. 800484a: 2b00 cmp r3, #0
  11017. 800484c: d1f0 bne.n 8004830 <HAL_RCC_OscConfig+0x5ec>
  11018. 800484e: e01f b.n 8004890 <HAL_RCC_OscConfig+0x64c>
  11019. }
  11020. }
  11021. else
  11022. {
  11023. /* Check if there is a request to disable the PLL used as System clock source */
  11024. if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
  11025. 8004850: 687b ldr r3, [r7, #4]
  11026. 8004852: 6a5b ldr r3, [r3, #36] ; 0x24
  11027. 8004854: 2b01 cmp r3, #1
  11028. 8004856: d101 bne.n 800485c <HAL_RCC_OscConfig+0x618>
  11029. {
  11030. return HAL_ERROR;
  11031. 8004858: 2301 movs r3, #1
  11032. 800485a: e01a b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  11033. }
  11034. else
  11035. {
  11036. /* Do not return HAL_ERROR if request repeats the current configuration */
  11037. pll_config = RCC->CFGR;
  11038. 800485c: 4b0f ldr r3, [pc, #60] ; (800489c <HAL_RCC_OscConfig+0x658>)
  11039. 800485e: 689b ldr r3, [r3, #8]
  11040. 8004860: 617b str r3, [r7, #20]
  11041. if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  11042. 8004862: 697b ldr r3, [r7, #20]
  11043. 8004864: f403 3280 and.w r2, r3, #65536 ; 0x10000
  11044. 8004868: 687b ldr r3, [r7, #4]
  11045. 800486a: 6a9b ldr r3, [r3, #40] ; 0x28
  11046. 800486c: 429a cmp r2, r3
  11047. 800486e: d10d bne.n 800488c <HAL_RCC_OscConfig+0x648>
  11048. (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL) ||
  11049. 8004870: 697b ldr r3, [r7, #20]
  11050. 8004872: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000
  11051. 8004876: 687b ldr r3, [r7, #4]
  11052. 8004878: 6adb ldr r3, [r3, #44] ; 0x2c
  11053. if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
  11054. 800487a: 429a cmp r2, r3
  11055. 800487c: d106 bne.n 800488c <HAL_RCC_OscConfig+0x648>
  11056. (READ_BIT(pll_config, RCC_CFGR_PLLDIV) != RCC_OscInitStruct->PLL.PLLDIV))
  11057. 800487e: 697b ldr r3, [r7, #20]
  11058. 8004880: f403 0240 and.w r2, r3, #12582912 ; 0xc00000
  11059. 8004884: 687b ldr r3, [r7, #4]
  11060. 8004886: 6b1b ldr r3, [r3, #48] ; 0x30
  11061. (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL) ||
  11062. 8004888: 429a cmp r2, r3
  11063. 800488a: d001 beq.n 8004890 <HAL_RCC_OscConfig+0x64c>
  11064. {
  11065. return HAL_ERROR;
  11066. 800488c: 2301 movs r3, #1
  11067. 800488e: e000 b.n 8004892 <HAL_RCC_OscConfig+0x64e>
  11068. }
  11069. }
  11070. }
  11071. }
  11072. return HAL_OK;
  11073. 8004890: 2300 movs r3, #0
  11074. }
  11075. 8004892: 4618 mov r0, r3
  11076. 8004894: 3720 adds r7, #32
  11077. 8004896: 46bd mov sp, r7
  11078. 8004898: bd80 pop {r7, pc}
  11079. 800489a: bf00 nop
  11080. 800489c: 40023800 .word 0x40023800
  11081. 80048a0: 42470060 .word 0x42470060
  11082. 080048a4 <HAL_RCC_ClockConfig>:
  11083. * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency
  11084. * (for more details refer to section above "Initialization/de-initialization functions")
  11085. * @retval HAL status
  11086. */
  11087. HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
  11088. {
  11089. 80048a4: b580 push {r7, lr}
  11090. 80048a6: b084 sub sp, #16
  11091. 80048a8: af00 add r7, sp, #0
  11092. 80048aa: 6078 str r0, [r7, #4]
  11093. 80048ac: 6039 str r1, [r7, #0]
  11094. uint32_t tickstart;
  11095. HAL_StatusTypeDef status;
  11096. /* Check the parameters */
  11097. if(RCC_ClkInitStruct == NULL)
  11098. 80048ae: 687b ldr r3, [r7, #4]
  11099. 80048b0: 2b00 cmp r3, #0
  11100. 80048b2: d101 bne.n 80048b8 <HAL_RCC_ClockConfig+0x14>
  11101. {
  11102. return HAL_ERROR;
  11103. 80048b4: 2301 movs r3, #1
  11104. 80048b6: e11a b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11105. /* To correctly read data from FLASH memory, the number of wait states (LATENCY)
  11106. must be correctly programmed according to the frequency of the CPU clock
  11107. (HCLK) and the supply voltage of the device. */
  11108. /* Increasing the number of wait states because of higher CPU frequency */
  11109. if(FLatency > __HAL_FLASH_GET_LATENCY())
  11110. 80048b8: 4b8f ldr r3, [pc, #572] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11111. 80048ba: 681b ldr r3, [r3, #0]
  11112. 80048bc: f003 0301 and.w r3, r3, #1
  11113. 80048c0: 683a ldr r2, [r7, #0]
  11114. 80048c2: 429a cmp r2, r3
  11115. 80048c4: d919 bls.n 80048fa <HAL_RCC_ClockConfig+0x56>
  11116. {
  11117. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  11118. __HAL_FLASH_SET_LATENCY(FLatency);
  11119. 80048c6: 683b ldr r3, [r7, #0]
  11120. 80048c8: 2b01 cmp r3, #1
  11121. 80048ca: d105 bne.n 80048d8 <HAL_RCC_ClockConfig+0x34>
  11122. 80048cc: 4b8a ldr r3, [pc, #552] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11123. 80048ce: 681b ldr r3, [r3, #0]
  11124. 80048d0: 4a89 ldr r2, [pc, #548] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11125. 80048d2: f043 0304 orr.w r3, r3, #4
  11126. 80048d6: 6013 str r3, [r2, #0]
  11127. 80048d8: 4b87 ldr r3, [pc, #540] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11128. 80048da: 681b ldr r3, [r3, #0]
  11129. 80048dc: f023 0201 bic.w r2, r3, #1
  11130. 80048e0: 4985 ldr r1, [pc, #532] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11131. 80048e2: 683b ldr r3, [r7, #0]
  11132. 80048e4: 4313 orrs r3, r2
  11133. 80048e6: 600b str r3, [r1, #0]
  11134. /* Check that the new number of wait states is taken into account to access the Flash
  11135. memory by reading the FLASH_ACR register */
  11136. if(__HAL_FLASH_GET_LATENCY() != FLatency)
  11137. 80048e8: 4b83 ldr r3, [pc, #524] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11138. 80048ea: 681b ldr r3, [r3, #0]
  11139. 80048ec: f003 0301 and.w r3, r3, #1
  11140. 80048f0: 683a ldr r2, [r7, #0]
  11141. 80048f2: 429a cmp r2, r3
  11142. 80048f4: d001 beq.n 80048fa <HAL_RCC_ClockConfig+0x56>
  11143. {
  11144. return HAL_ERROR;
  11145. 80048f6: 2301 movs r3, #1
  11146. 80048f8: e0f9 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11147. }
  11148. }
  11149. /*-------------------------- HCLK Configuration --------------------------*/
  11150. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
  11151. 80048fa: 687b ldr r3, [r7, #4]
  11152. 80048fc: 681b ldr r3, [r3, #0]
  11153. 80048fe: f003 0302 and.w r3, r3, #2
  11154. 8004902: 2b00 cmp r3, #0
  11155. 8004904: d008 beq.n 8004918 <HAL_RCC_ClockConfig+0x74>
  11156. {
  11157. assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
  11158. MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
  11159. 8004906: 4b7d ldr r3, [pc, #500] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11160. 8004908: 689b ldr r3, [r3, #8]
  11161. 800490a: f023 02f0 bic.w r2, r3, #240 ; 0xf0
  11162. 800490e: 687b ldr r3, [r7, #4]
  11163. 8004910: 689b ldr r3, [r3, #8]
  11164. 8004912: 497a ldr r1, [pc, #488] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11165. 8004914: 4313 orrs r3, r2
  11166. 8004916: 608b str r3, [r1, #8]
  11167. }
  11168. /*------------------------- SYSCLK Configuration ---------------------------*/
  11169. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
  11170. 8004918: 687b ldr r3, [r7, #4]
  11171. 800491a: 681b ldr r3, [r3, #0]
  11172. 800491c: f003 0301 and.w r3, r3, #1
  11173. 8004920: 2b00 cmp r3, #0
  11174. 8004922: f000 808e beq.w 8004a42 <HAL_RCC_ClockConfig+0x19e>
  11175. {
  11176. assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
  11177. /* HSE is selected as System Clock Source */
  11178. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  11179. 8004926: 687b ldr r3, [r7, #4]
  11180. 8004928: 685b ldr r3, [r3, #4]
  11181. 800492a: 2b02 cmp r3, #2
  11182. 800492c: d107 bne.n 800493e <HAL_RCC_ClockConfig+0x9a>
  11183. {
  11184. /* Check the HSE ready flag */
  11185. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == 0U)
  11186. 800492e: 4b73 ldr r3, [pc, #460] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11187. 8004930: 681b ldr r3, [r3, #0]
  11188. 8004932: f403 3300 and.w r3, r3, #131072 ; 0x20000
  11189. 8004936: 2b00 cmp r3, #0
  11190. 8004938: d121 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
  11191. {
  11192. return HAL_ERROR;
  11193. 800493a: 2301 movs r3, #1
  11194. 800493c: e0d7 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11195. }
  11196. }
  11197. /* PLL is selected as System Clock Source */
  11198. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  11199. 800493e: 687b ldr r3, [r7, #4]
  11200. 8004940: 685b ldr r3, [r3, #4]
  11201. 8004942: 2b03 cmp r3, #3
  11202. 8004944: d107 bne.n 8004956 <HAL_RCC_ClockConfig+0xb2>
  11203. {
  11204. /* Check the PLL ready flag */
  11205. if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == 0U)
  11206. 8004946: 4b6d ldr r3, [pc, #436] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11207. 8004948: 681b ldr r3, [r3, #0]
  11208. 800494a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
  11209. 800494e: 2b00 cmp r3, #0
  11210. 8004950: d115 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
  11211. {
  11212. return HAL_ERROR;
  11213. 8004952: 2301 movs r3, #1
  11214. 8004954: e0cb b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11215. }
  11216. }
  11217. /* HSI is selected as System Clock Source */
  11218. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI)
  11219. 8004956: 687b ldr r3, [r7, #4]
  11220. 8004958: 685b ldr r3, [r3, #4]
  11221. 800495a: 2b01 cmp r3, #1
  11222. 800495c: d107 bne.n 800496e <HAL_RCC_ClockConfig+0xca>
  11223. {
  11224. /* Check the HSI ready flag */
  11225. if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == 0U)
  11226. 800495e: 4b67 ldr r3, [pc, #412] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11227. 8004960: 681b ldr r3, [r3, #0]
  11228. 8004962: f003 0302 and.w r3, r3, #2
  11229. 8004966: 2b00 cmp r3, #0
  11230. 8004968: d109 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
  11231. {
  11232. return HAL_ERROR;
  11233. 800496a: 2301 movs r3, #1
  11234. 800496c: e0bf b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11235. }
  11236. /* MSI is selected as System Clock Source */
  11237. else
  11238. {
  11239. /* Check the MSI ready flag */
  11240. if(__HAL_RCC_GET_FLAG(RCC_FLAG_MSIRDY) == 0U)
  11241. 800496e: 4b63 ldr r3, [pc, #396] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11242. 8004970: 681b ldr r3, [r3, #0]
  11243. 8004972: f403 7300 and.w r3, r3, #512 ; 0x200
  11244. 8004976: 2b00 cmp r3, #0
  11245. 8004978: d101 bne.n 800497e <HAL_RCC_ClockConfig+0xda>
  11246. {
  11247. return HAL_ERROR;
  11248. 800497a: 2301 movs r3, #1
  11249. 800497c: e0b7 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11250. }
  11251. }
  11252. __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
  11253. 800497e: 4b5f ldr r3, [pc, #380] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11254. 8004980: 689b ldr r3, [r3, #8]
  11255. 8004982: f023 0203 bic.w r2, r3, #3
  11256. 8004986: 687b ldr r3, [r7, #4]
  11257. 8004988: 685b ldr r3, [r3, #4]
  11258. 800498a: 495c ldr r1, [pc, #368] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11259. 800498c: 4313 orrs r3, r2
  11260. 800498e: 608b str r3, [r1, #8]
  11261. /* Get Start Tick */
  11262. tickstart = HAL_GetTick();
  11263. 8004990: f7fd fc24 bl 80021dc <HAL_GetTick>
  11264. 8004994: 60f8 str r0, [r7, #12]
  11265. if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
  11266. 8004996: 687b ldr r3, [r7, #4]
  11267. 8004998: 685b ldr r3, [r3, #4]
  11268. 800499a: 2b02 cmp r3, #2
  11269. 800499c: d112 bne.n 80049c4 <HAL_RCC_ClockConfig+0x120>
  11270. {
  11271. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE)
  11272. 800499e: e00a b.n 80049b6 <HAL_RCC_ClockConfig+0x112>
  11273. {
  11274. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  11275. 80049a0: f7fd fc1c bl 80021dc <HAL_GetTick>
  11276. 80049a4: 4602 mov r2, r0
  11277. 80049a6: 68fb ldr r3, [r7, #12]
  11278. 80049a8: 1ad3 subs r3, r2, r3
  11279. 80049aa: f241 3288 movw r2, #5000 ; 0x1388
  11280. 80049ae: 4293 cmp r3, r2
  11281. 80049b0: d901 bls.n 80049b6 <HAL_RCC_ClockConfig+0x112>
  11282. {
  11283. return HAL_TIMEOUT;
  11284. 80049b2: 2303 movs r3, #3
  11285. 80049b4: e09b b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11286. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSE)
  11287. 80049b6: 4b51 ldr r3, [pc, #324] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11288. 80049b8: 689b ldr r3, [r3, #8]
  11289. 80049ba: f003 030c and.w r3, r3, #12
  11290. 80049be: 2b08 cmp r3, #8
  11291. 80049c0: d1ee bne.n 80049a0 <HAL_RCC_ClockConfig+0xfc>
  11292. 80049c2: e03e b.n 8004a42 <HAL_RCC_ClockConfig+0x19e>
  11293. }
  11294. }
  11295. }
  11296. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
  11297. 80049c4: 687b ldr r3, [r7, #4]
  11298. 80049c6: 685b ldr r3, [r3, #4]
  11299. 80049c8: 2b03 cmp r3, #3
  11300. 80049ca: d112 bne.n 80049f2 <HAL_RCC_ClockConfig+0x14e>
  11301. {
  11302. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  11303. 80049cc: e00a b.n 80049e4 <HAL_RCC_ClockConfig+0x140>
  11304. {
  11305. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  11306. 80049ce: f7fd fc05 bl 80021dc <HAL_GetTick>
  11307. 80049d2: 4602 mov r2, r0
  11308. 80049d4: 68fb ldr r3, [r7, #12]
  11309. 80049d6: 1ad3 subs r3, r2, r3
  11310. 80049d8: f241 3288 movw r2, #5000 ; 0x1388
  11311. 80049dc: 4293 cmp r3, r2
  11312. 80049de: d901 bls.n 80049e4 <HAL_RCC_ClockConfig+0x140>
  11313. {
  11314. return HAL_TIMEOUT;
  11315. 80049e0: 2303 movs r3, #3
  11316. 80049e2: e084 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11317. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
  11318. 80049e4: 4b45 ldr r3, [pc, #276] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11319. 80049e6: 689b ldr r3, [r3, #8]
  11320. 80049e8: f003 030c and.w r3, r3, #12
  11321. 80049ec: 2b0c cmp r3, #12
  11322. 80049ee: d1ee bne.n 80049ce <HAL_RCC_ClockConfig+0x12a>
  11323. 80049f0: e027 b.n 8004a42 <HAL_RCC_ClockConfig+0x19e>
  11324. }
  11325. }
  11326. }
  11327. else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI)
  11328. 80049f2: 687b ldr r3, [r7, #4]
  11329. 80049f4: 685b ldr r3, [r3, #4]
  11330. 80049f6: 2b01 cmp r3, #1
  11331. 80049f8: d11d bne.n 8004a36 <HAL_RCC_ClockConfig+0x192>
  11332. {
  11333. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI)
  11334. 80049fa: e00a b.n 8004a12 <HAL_RCC_ClockConfig+0x16e>
  11335. {
  11336. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  11337. 80049fc: f7fd fbee bl 80021dc <HAL_GetTick>
  11338. 8004a00: 4602 mov r2, r0
  11339. 8004a02: 68fb ldr r3, [r7, #12]
  11340. 8004a04: 1ad3 subs r3, r2, r3
  11341. 8004a06: f241 3288 movw r2, #5000 ; 0x1388
  11342. 8004a0a: 4293 cmp r3, r2
  11343. 8004a0c: d901 bls.n 8004a12 <HAL_RCC_ClockConfig+0x16e>
  11344. {
  11345. return HAL_TIMEOUT;
  11346. 8004a0e: 2303 movs r3, #3
  11347. 8004a10: e06d b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11348. while (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_HSI)
  11349. 8004a12: 4b3a ldr r3, [pc, #232] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11350. 8004a14: 689b ldr r3, [r3, #8]
  11351. 8004a16: f003 030c and.w r3, r3, #12
  11352. 8004a1a: 2b04 cmp r3, #4
  11353. 8004a1c: d1ee bne.n 80049fc <HAL_RCC_ClockConfig+0x158>
  11354. 8004a1e: e010 b.n 8004a42 <HAL_RCC_ClockConfig+0x19e>
  11355. }
  11356. else
  11357. {
  11358. while(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_MSI)
  11359. {
  11360. if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE)
  11361. 8004a20: f7fd fbdc bl 80021dc <HAL_GetTick>
  11362. 8004a24: 4602 mov r2, r0
  11363. 8004a26: 68fb ldr r3, [r7, #12]
  11364. 8004a28: 1ad3 subs r3, r2, r3
  11365. 8004a2a: f241 3288 movw r2, #5000 ; 0x1388
  11366. 8004a2e: 4293 cmp r3, r2
  11367. 8004a30: d901 bls.n 8004a36 <HAL_RCC_ClockConfig+0x192>
  11368. {
  11369. return HAL_TIMEOUT;
  11370. 8004a32: 2303 movs r3, #3
  11371. 8004a34: e05b b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11372. while(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_MSI)
  11373. 8004a36: 4b31 ldr r3, [pc, #196] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11374. 8004a38: 689b ldr r3, [r3, #8]
  11375. 8004a3a: f003 030c and.w r3, r3, #12
  11376. 8004a3e: 2b00 cmp r3, #0
  11377. 8004a40: d1ee bne.n 8004a20 <HAL_RCC_ClockConfig+0x17c>
  11378. }
  11379. }
  11380. }
  11381. }
  11382. /* Decreasing the number of wait states because of lower CPU frequency */
  11383. if(FLatency < __HAL_FLASH_GET_LATENCY())
  11384. 8004a42: 4b2d ldr r3, [pc, #180] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11385. 8004a44: 681b ldr r3, [r3, #0]
  11386. 8004a46: f003 0301 and.w r3, r3, #1
  11387. 8004a4a: 683a ldr r2, [r7, #0]
  11388. 8004a4c: 429a cmp r2, r3
  11389. 8004a4e: d219 bcs.n 8004a84 <HAL_RCC_ClockConfig+0x1e0>
  11390. {
  11391. /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
  11392. __HAL_FLASH_SET_LATENCY(FLatency);
  11393. 8004a50: 683b ldr r3, [r7, #0]
  11394. 8004a52: 2b01 cmp r3, #1
  11395. 8004a54: d105 bne.n 8004a62 <HAL_RCC_ClockConfig+0x1be>
  11396. 8004a56: 4b28 ldr r3, [pc, #160] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11397. 8004a58: 681b ldr r3, [r3, #0]
  11398. 8004a5a: 4a27 ldr r2, [pc, #156] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11399. 8004a5c: f043 0304 orr.w r3, r3, #4
  11400. 8004a60: 6013 str r3, [r2, #0]
  11401. 8004a62: 4b25 ldr r3, [pc, #148] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11402. 8004a64: 681b ldr r3, [r3, #0]
  11403. 8004a66: f023 0201 bic.w r2, r3, #1
  11404. 8004a6a: 4923 ldr r1, [pc, #140] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11405. 8004a6c: 683b ldr r3, [r7, #0]
  11406. 8004a6e: 4313 orrs r3, r2
  11407. 8004a70: 600b str r3, [r1, #0]
  11408. /* Check that the new number of wait states is taken into account to access the Flash
  11409. memory by reading the FLASH_ACR register */
  11410. if(__HAL_FLASH_GET_LATENCY() != FLatency)
  11411. 8004a72: 4b21 ldr r3, [pc, #132] ; (8004af8 <HAL_RCC_ClockConfig+0x254>)
  11412. 8004a74: 681b ldr r3, [r3, #0]
  11413. 8004a76: f003 0301 and.w r3, r3, #1
  11414. 8004a7a: 683a ldr r2, [r7, #0]
  11415. 8004a7c: 429a cmp r2, r3
  11416. 8004a7e: d001 beq.n 8004a84 <HAL_RCC_ClockConfig+0x1e0>
  11417. {
  11418. return HAL_ERROR;
  11419. 8004a80: 2301 movs r3, #1
  11420. 8004a82: e034 b.n 8004aee <HAL_RCC_ClockConfig+0x24a>
  11421. }
  11422. }
  11423. /*-------------------------- PCLK1 Configuration ---------------------------*/
  11424. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
  11425. 8004a84: 687b ldr r3, [r7, #4]
  11426. 8004a86: 681b ldr r3, [r3, #0]
  11427. 8004a88: f003 0304 and.w r3, r3, #4
  11428. 8004a8c: 2b00 cmp r3, #0
  11429. 8004a8e: d008 beq.n 8004aa2 <HAL_RCC_ClockConfig+0x1fe>
  11430. {
  11431. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
  11432. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
  11433. 8004a90: 4b1a ldr r3, [pc, #104] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11434. 8004a92: 689b ldr r3, [r3, #8]
  11435. 8004a94: f423 62e0 bic.w r2, r3, #1792 ; 0x700
  11436. 8004a98: 687b ldr r3, [r7, #4]
  11437. 8004a9a: 68db ldr r3, [r3, #12]
  11438. 8004a9c: 4917 ldr r1, [pc, #92] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11439. 8004a9e: 4313 orrs r3, r2
  11440. 8004aa0: 608b str r3, [r1, #8]
  11441. }
  11442. /*-------------------------- PCLK2 Configuration ---------------------------*/
  11443. if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
  11444. 8004aa2: 687b ldr r3, [r7, #4]
  11445. 8004aa4: 681b ldr r3, [r3, #0]
  11446. 8004aa6: f003 0308 and.w r3, r3, #8
  11447. 8004aaa: 2b00 cmp r3, #0
  11448. 8004aac: d009 beq.n 8004ac2 <HAL_RCC_ClockConfig+0x21e>
  11449. {
  11450. assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
  11451. MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U));
  11452. 8004aae: 4b13 ldr r3, [pc, #76] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11453. 8004ab0: 689b ldr r3, [r3, #8]
  11454. 8004ab2: f423 5260 bic.w r2, r3, #14336 ; 0x3800
  11455. 8004ab6: 687b ldr r3, [r7, #4]
  11456. 8004ab8: 691b ldr r3, [r3, #16]
  11457. 8004aba: 00db lsls r3, r3, #3
  11458. 8004abc: 490f ldr r1, [pc, #60] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11459. 8004abe: 4313 orrs r3, r2
  11460. 8004ac0: 608b str r3, [r1, #8]
  11461. }
  11462. /* Update the SystemCoreClock global variable */
  11463. SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos];
  11464. 8004ac2: f000 f823 bl 8004b0c <HAL_RCC_GetSysClockFreq>
  11465. 8004ac6: 4602 mov r2, r0
  11466. 8004ac8: 4b0c ldr r3, [pc, #48] ; (8004afc <HAL_RCC_ClockConfig+0x258>)
  11467. 8004aca: 689b ldr r3, [r3, #8]
  11468. 8004acc: 091b lsrs r3, r3, #4
  11469. 8004ace: f003 030f and.w r3, r3, #15
  11470. 8004ad2: 490b ldr r1, [pc, #44] ; (8004b00 <HAL_RCC_ClockConfig+0x25c>)
  11471. 8004ad4: 5ccb ldrb r3, [r1, r3]
  11472. 8004ad6: fa22 f303 lsr.w r3, r2, r3
  11473. 8004ada: 4a0a ldr r2, [pc, #40] ; (8004b04 <HAL_RCC_ClockConfig+0x260>)
  11474. 8004adc: 6013 str r3, [r2, #0]
  11475. /* Configure the source of time base considering new system clocks settings*/
  11476. status = HAL_InitTick(uwTickPrio);
  11477. 8004ade: 4b0a ldr r3, [pc, #40] ; (8004b08 <HAL_RCC_ClockConfig+0x264>)
  11478. 8004ae0: 681b ldr r3, [r3, #0]
  11479. 8004ae2: 4618 mov r0, r3
  11480. 8004ae4: f7fd fb2e bl 8002144 <HAL_InitTick>
  11481. 8004ae8: 4603 mov r3, r0
  11482. 8004aea: 72fb strb r3, [r7, #11]
  11483. return status;
  11484. 8004aec: 7afb ldrb r3, [r7, #11]
  11485. }
  11486. 8004aee: 4618 mov r0, r3
  11487. 8004af0: 3710 adds r7, #16
  11488. 8004af2: 46bd mov sp, r7
  11489. 8004af4: bd80 pop {r7, pc}
  11490. 8004af6: bf00 nop
  11491. 8004af8: 40023c00 .word 0x40023c00
  11492. 8004afc: 40023800 .word 0x40023800
  11493. 8004b00: 080093a0 .word 0x080093a0
  11494. 8004b04: 20000000 .word 0x20000000
  11495. 8004b08: 20000004 .word 0x20000004
  11496. 08004b0c <HAL_RCC_GetSysClockFreq>:
  11497. * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect.
  11498. *
  11499. * @retval SYSCLK frequency
  11500. */
  11501. uint32_t HAL_RCC_GetSysClockFreq(void)
  11502. {
  11503. 8004b0c: b5b0 push {r4, r5, r7, lr}
  11504. 8004b0e: b086 sub sp, #24
  11505. 8004b10: af00 add r7, sp, #0
  11506. uint32_t tmpreg, pllm, plld, pllvco, msiclkrange, sysclockfreq;
  11507. tmpreg = RCC->CFGR;
  11508. 8004b12: 4b61 ldr r3, [pc, #388] ; (8004c98 <HAL_RCC_GetSysClockFreq+0x18c>)
  11509. 8004b14: 689b ldr r3, [r3, #8]
  11510. 8004b16: 60fb str r3, [r7, #12]
  11511. /* Get SYSCLK source -------------------------------------------------------*/
  11512. switch (tmpreg & RCC_CFGR_SWS)
  11513. 8004b18: 68fb ldr r3, [r7, #12]
  11514. 8004b1a: f003 030c and.w r3, r3, #12
  11515. 8004b1e: 2b0c cmp r3, #12
  11516. 8004b20: d00d beq.n 8004b3e <HAL_RCC_GetSysClockFreq+0x32>
  11517. 8004b22: 2b0c cmp r3, #12
  11518. 8004b24: f200 80a4 bhi.w 8004c70 <HAL_RCC_GetSysClockFreq+0x164>
  11519. 8004b28: 2b04 cmp r3, #4
  11520. 8004b2a: d002 beq.n 8004b32 <HAL_RCC_GetSysClockFreq+0x26>
  11521. 8004b2c: 2b08 cmp r3, #8
  11522. 8004b2e: d003 beq.n 8004b38 <HAL_RCC_GetSysClockFreq+0x2c>
  11523. 8004b30: e09e b.n 8004c70 <HAL_RCC_GetSysClockFreq+0x164>
  11524. {
  11525. case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
  11526. {
  11527. sysclockfreq = HSI_VALUE;
  11528. 8004b32: 4b5a ldr r3, [pc, #360] ; (8004c9c <HAL_RCC_GetSysClockFreq+0x190>)
  11529. 8004b34: 613b str r3, [r7, #16]
  11530. break;
  11531. 8004b36: e0a9 b.n 8004c8c <HAL_RCC_GetSysClockFreq+0x180>
  11532. }
  11533. case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */
  11534. {
  11535. sysclockfreq = HSE_VALUE;
  11536. 8004b38: 4b59 ldr r3, [pc, #356] ; (8004ca0 <HAL_RCC_GetSysClockFreq+0x194>)
  11537. 8004b3a: 613b str r3, [r7, #16]
  11538. break;
  11539. 8004b3c: e0a6 b.n 8004c8c <HAL_RCC_GetSysClockFreq+0x180>
  11540. }
  11541. case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */
  11542. {
  11543. pllm = PLLMulTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_Pos];
  11544. 8004b3e: 68fb ldr r3, [r7, #12]
  11545. 8004b40: 0c9b lsrs r3, r3, #18
  11546. 8004b42: f003 030f and.w r3, r3, #15
  11547. 8004b46: 4a57 ldr r2, [pc, #348] ; (8004ca4 <HAL_RCC_GetSysClockFreq+0x198>)
  11548. 8004b48: 5cd3 ldrb r3, [r2, r3]
  11549. 8004b4a: 60bb str r3, [r7, #8]
  11550. plld = ((uint32_t)(tmpreg & RCC_CFGR_PLLDIV) >> RCC_CFGR_PLLDIV_Pos) + 1U;
  11551. 8004b4c: 68fb ldr r3, [r7, #12]
  11552. 8004b4e: 0d9b lsrs r3, r3, #22
  11553. 8004b50: f003 0303 and.w r3, r3, #3
  11554. 8004b54: 3301 adds r3, #1
  11555. 8004b56: 607b str r3, [r7, #4]
  11556. if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI)
  11557. 8004b58: 4b4f ldr r3, [pc, #316] ; (8004c98 <HAL_RCC_GetSysClockFreq+0x18c>)
  11558. 8004b5a: 689b ldr r3, [r3, #8]
  11559. 8004b5c: f403 3380 and.w r3, r3, #65536 ; 0x10000
  11560. 8004b60: 2b00 cmp r3, #0
  11561. 8004b62: d041 beq.n 8004be8 <HAL_RCC_GetSysClockFreq+0xdc>
  11562. {
  11563. /* HSE used as PLL clock source */
  11564. pllvco = (uint32_t)(((uint64_t)HSE_VALUE * (uint64_t)pllm) / (uint64_t)plld);
  11565. 8004b64: 68bb ldr r3, [r7, #8]
  11566. 8004b66: 461c mov r4, r3
  11567. 8004b68: f04f 0500 mov.w r5, #0
  11568. 8004b6c: 4620 mov r0, r4
  11569. 8004b6e: 4629 mov r1, r5
  11570. 8004b70: f04f 0200 mov.w r2, #0
  11571. 8004b74: f04f 0300 mov.w r3, #0
  11572. 8004b78: 014b lsls r3, r1, #5
  11573. 8004b7a: ea43 63d0 orr.w r3, r3, r0, lsr #27
  11574. 8004b7e: 0142 lsls r2, r0, #5
  11575. 8004b80: 4610 mov r0, r2
  11576. 8004b82: 4619 mov r1, r3
  11577. 8004b84: 1b00 subs r0, r0, r4
  11578. 8004b86: eb61 0105 sbc.w r1, r1, r5
  11579. 8004b8a: f04f 0200 mov.w r2, #0
  11580. 8004b8e: f04f 0300 mov.w r3, #0
  11581. 8004b92: 018b lsls r3, r1, #6
  11582. 8004b94: ea43 6390 orr.w r3, r3, r0, lsr #26
  11583. 8004b98: 0182 lsls r2, r0, #6
  11584. 8004b9a: 1a12 subs r2, r2, r0
  11585. 8004b9c: eb63 0301 sbc.w r3, r3, r1
  11586. 8004ba0: f04f 0000 mov.w r0, #0
  11587. 8004ba4: f04f 0100 mov.w r1, #0
  11588. 8004ba8: 00d9 lsls r1, r3, #3
  11589. 8004baa: ea41 7152 orr.w r1, r1, r2, lsr #29
  11590. 8004bae: 00d0 lsls r0, r2, #3
  11591. 8004bb0: 4602 mov r2, r0
  11592. 8004bb2: 460b mov r3, r1
  11593. 8004bb4: 1912 adds r2, r2, r4
  11594. 8004bb6: eb45 0303 adc.w r3, r5, r3
  11595. 8004bba: f04f 0000 mov.w r0, #0
  11596. 8004bbe: f04f 0100 mov.w r1, #0
  11597. 8004bc2: 0259 lsls r1, r3, #9
  11598. 8004bc4: ea41 51d2 orr.w r1, r1, r2, lsr #23
  11599. 8004bc8: 0250 lsls r0, r2, #9
  11600. 8004bca: 4602 mov r2, r0
  11601. 8004bcc: 460b mov r3, r1
  11602. 8004bce: 4610 mov r0, r2
  11603. 8004bd0: 4619 mov r1, r3
  11604. 8004bd2: 687b ldr r3, [r7, #4]
  11605. 8004bd4: 461a mov r2, r3
  11606. 8004bd6: f04f 0300 mov.w r3, #0
  11607. 8004bda: f7fc f87b bl 8000cd4 <__aeabi_uldivmod>
  11608. 8004bde: 4602 mov r2, r0
  11609. 8004be0: 460b mov r3, r1
  11610. 8004be2: 4613 mov r3, r2
  11611. 8004be4: 617b str r3, [r7, #20]
  11612. 8004be6: e040 b.n 8004c6a <HAL_RCC_GetSysClockFreq+0x15e>
  11613. }
  11614. else
  11615. {
  11616. /* HSI used as PLL clock source */
  11617. pllvco = (uint32_t)(((uint64_t)HSI_VALUE * (uint64_t)pllm) / (uint64_t)plld);
  11618. 8004be8: 68bb ldr r3, [r7, #8]
  11619. 8004bea: 461c mov r4, r3
  11620. 8004bec: f04f 0500 mov.w r5, #0
  11621. 8004bf0: 4620 mov r0, r4
  11622. 8004bf2: 4629 mov r1, r5
  11623. 8004bf4: f04f 0200 mov.w r2, #0
  11624. 8004bf8: f04f 0300 mov.w r3, #0
  11625. 8004bfc: 014b lsls r3, r1, #5
  11626. 8004bfe: ea43 63d0 orr.w r3, r3, r0, lsr #27
  11627. 8004c02: 0142 lsls r2, r0, #5
  11628. 8004c04: 4610 mov r0, r2
  11629. 8004c06: 4619 mov r1, r3
  11630. 8004c08: 1b00 subs r0, r0, r4
  11631. 8004c0a: eb61 0105 sbc.w r1, r1, r5
  11632. 8004c0e: f04f 0200 mov.w r2, #0
  11633. 8004c12: f04f 0300 mov.w r3, #0
  11634. 8004c16: 018b lsls r3, r1, #6
  11635. 8004c18: ea43 6390 orr.w r3, r3, r0, lsr #26
  11636. 8004c1c: 0182 lsls r2, r0, #6
  11637. 8004c1e: 1a12 subs r2, r2, r0
  11638. 8004c20: eb63 0301 sbc.w r3, r3, r1
  11639. 8004c24: f04f 0000 mov.w r0, #0
  11640. 8004c28: f04f 0100 mov.w r1, #0
  11641. 8004c2c: 00d9 lsls r1, r3, #3
  11642. 8004c2e: ea41 7152 orr.w r1, r1, r2, lsr #29
  11643. 8004c32: 00d0 lsls r0, r2, #3
  11644. 8004c34: 4602 mov r2, r0
  11645. 8004c36: 460b mov r3, r1
  11646. 8004c38: 1912 adds r2, r2, r4
  11647. 8004c3a: eb45 0303 adc.w r3, r5, r3
  11648. 8004c3e: f04f 0000 mov.w r0, #0
  11649. 8004c42: f04f 0100 mov.w r1, #0
  11650. 8004c46: 0299 lsls r1, r3, #10
  11651. 8004c48: ea41 5192 orr.w r1, r1, r2, lsr #22
  11652. 8004c4c: 0290 lsls r0, r2, #10
  11653. 8004c4e: 4602 mov r2, r0
  11654. 8004c50: 460b mov r3, r1
  11655. 8004c52: 4610 mov r0, r2
  11656. 8004c54: 4619 mov r1, r3
  11657. 8004c56: 687b ldr r3, [r7, #4]
  11658. 8004c58: 461a mov r2, r3
  11659. 8004c5a: f04f 0300 mov.w r3, #0
  11660. 8004c5e: f7fc f839 bl 8000cd4 <__aeabi_uldivmod>
  11661. 8004c62: 4602 mov r2, r0
  11662. 8004c64: 460b mov r3, r1
  11663. 8004c66: 4613 mov r3, r2
  11664. 8004c68: 617b str r3, [r7, #20]
  11665. }
  11666. sysclockfreq = pllvco;
  11667. 8004c6a: 697b ldr r3, [r7, #20]
  11668. 8004c6c: 613b str r3, [r7, #16]
  11669. break;
  11670. 8004c6e: e00d b.n 8004c8c <HAL_RCC_GetSysClockFreq+0x180>
  11671. }
  11672. case RCC_SYSCLKSOURCE_STATUS_MSI: /* MSI used as system clock source */
  11673. default: /* MSI used as system clock */
  11674. {
  11675. msiclkrange = (RCC->ICSCR & RCC_ICSCR_MSIRANGE ) >> RCC_ICSCR_MSIRANGE_Pos;
  11676. 8004c70: 4b09 ldr r3, [pc, #36] ; (8004c98 <HAL_RCC_GetSysClockFreq+0x18c>)
  11677. 8004c72: 685b ldr r3, [r3, #4]
  11678. 8004c74: 0b5b lsrs r3, r3, #13
  11679. 8004c76: f003 0307 and.w r3, r3, #7
  11680. 8004c7a: 603b str r3, [r7, #0]
  11681. sysclockfreq = (32768U * (1UL << (msiclkrange + 1U)));
  11682. 8004c7c: 683b ldr r3, [r7, #0]
  11683. 8004c7e: 3301 adds r3, #1
  11684. 8004c80: f44f 4200 mov.w r2, #32768 ; 0x8000
  11685. 8004c84: fa02 f303 lsl.w r3, r2, r3
  11686. 8004c88: 613b str r3, [r7, #16]
  11687. break;
  11688. 8004c8a: bf00 nop
  11689. }
  11690. }
  11691. return sysclockfreq;
  11692. 8004c8c: 693b ldr r3, [r7, #16]
  11693. }
  11694. 8004c8e: 4618 mov r0, r3
  11695. 8004c90: 3718 adds r7, #24
  11696. 8004c92: 46bd mov sp, r7
  11697. 8004c94: bdb0 pop {r4, r5, r7, pc}
  11698. 8004c96: bf00 nop
  11699. 8004c98: 40023800 .word 0x40023800
  11700. 8004c9c: 00f42400 .word 0x00f42400
  11701. 8004ca0: 007a1200 .word 0x007a1200
  11702. 8004ca4: 08009394 .word 0x08009394
  11703. 08004ca8 <HAL_RCC_GetHCLKFreq>:
  11704. * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
  11705. * and updated within this function
  11706. * @retval HCLK frequency
  11707. */
  11708. uint32_t HAL_RCC_GetHCLKFreq(void)
  11709. {
  11710. 8004ca8: b480 push {r7}
  11711. 8004caa: af00 add r7, sp, #0
  11712. return SystemCoreClock;
  11713. 8004cac: 4b02 ldr r3, [pc, #8] ; (8004cb8 <HAL_RCC_GetHCLKFreq+0x10>)
  11714. 8004cae: 681b ldr r3, [r3, #0]
  11715. }
  11716. 8004cb0: 4618 mov r0, r3
  11717. 8004cb2: 46bd mov sp, r7
  11718. 8004cb4: bc80 pop {r7}
  11719. 8004cb6: 4770 bx lr
  11720. 8004cb8: 20000000 .word 0x20000000
  11721. 08004cbc <HAL_RCC_GetPCLK1Freq>:
  11722. * @note Each time PCLK1 changes, this function must be called to update the
  11723. * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
  11724. * @retval PCLK1 frequency
  11725. */
  11726. uint32_t HAL_RCC_GetPCLK1Freq(void)
  11727. {
  11728. 8004cbc: b580 push {r7, lr}
  11729. 8004cbe: af00 add r7, sp, #0
  11730. /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
  11731. return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]);
  11732. 8004cc0: f7ff fff2 bl 8004ca8 <HAL_RCC_GetHCLKFreq>
  11733. 8004cc4: 4602 mov r2, r0
  11734. 8004cc6: 4b05 ldr r3, [pc, #20] ; (8004cdc <HAL_RCC_GetPCLK1Freq+0x20>)
  11735. 8004cc8: 689b ldr r3, [r3, #8]
  11736. 8004cca: 0a1b lsrs r3, r3, #8
  11737. 8004ccc: f003 0307 and.w r3, r3, #7
  11738. 8004cd0: 4903 ldr r1, [pc, #12] ; (8004ce0 <HAL_RCC_GetPCLK1Freq+0x24>)
  11739. 8004cd2: 5ccb ldrb r3, [r1, r3]
  11740. 8004cd4: fa22 f303 lsr.w r3, r2, r3
  11741. }
  11742. 8004cd8: 4618 mov r0, r3
  11743. 8004cda: bd80 pop {r7, pc}
  11744. 8004cdc: 40023800 .word 0x40023800
  11745. 8004ce0: 080093b0 .word 0x080093b0
  11746. 08004ce4 <HAL_RCC_GetPCLK2Freq>:
  11747. * @note Each time PCLK2 changes, this function must be called to update the
  11748. * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
  11749. * @retval PCLK2 frequency
  11750. */
  11751. uint32_t HAL_RCC_GetPCLK2Freq(void)
  11752. {
  11753. 8004ce4: b580 push {r7, lr}
  11754. 8004ce6: af00 add r7, sp, #0
  11755. /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
  11756. return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]);
  11757. 8004ce8: f7ff ffde bl 8004ca8 <HAL_RCC_GetHCLKFreq>
  11758. 8004cec: 4602 mov r2, r0
  11759. 8004cee: 4b05 ldr r3, [pc, #20] ; (8004d04 <HAL_RCC_GetPCLK2Freq+0x20>)
  11760. 8004cf0: 689b ldr r3, [r3, #8]
  11761. 8004cf2: 0adb lsrs r3, r3, #11
  11762. 8004cf4: f003 0307 and.w r3, r3, #7
  11763. 8004cf8: 4903 ldr r1, [pc, #12] ; (8004d08 <HAL_RCC_GetPCLK2Freq+0x24>)
  11764. 8004cfa: 5ccb ldrb r3, [r1, r3]
  11765. 8004cfc: fa22 f303 lsr.w r3, r2, r3
  11766. }
  11767. 8004d00: 4618 mov r0, r3
  11768. 8004d02: bd80 pop {r7, pc}
  11769. 8004d04: 40023800 .word 0x40023800
  11770. 8004d08: 080093b0 .word 0x080093b0
  11771. 08004d0c <RCC_SetFlashLatencyFromMSIRange>:
  11772. voltage range
  11773. * @param MSIrange MSI range value from RCC_MSIRANGE_0 to RCC_MSIRANGE_6
  11774. * @retval HAL status
  11775. */
  11776. static HAL_StatusTypeDef RCC_SetFlashLatencyFromMSIRange(uint32_t MSIrange)
  11777. {
  11778. 8004d0c: b480 push {r7}
  11779. 8004d0e: b087 sub sp, #28
  11780. 8004d10: af00 add r7, sp, #0
  11781. 8004d12: 6078 str r0, [r7, #4]
  11782. uint32_t vos;
  11783. uint32_t latency = FLASH_LATENCY_0; /* default value 0WS */
  11784. 8004d14: 2300 movs r3, #0
  11785. 8004d16: 613b str r3, [r7, #16]
  11786. /* HCLK can reach 4 MHz only if AHB prescaler = 1 */
  11787. if (READ_BIT(RCC->CFGR, RCC_CFGR_HPRE) == RCC_SYSCLK_DIV1)
  11788. 8004d18: 4b29 ldr r3, [pc, #164] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  11789. 8004d1a: 689b ldr r3, [r3, #8]
  11790. 8004d1c: f003 03f0 and.w r3, r3, #240 ; 0xf0
  11791. 8004d20: 2b00 cmp r3, #0
  11792. 8004d22: d12c bne.n 8004d7e <RCC_SetFlashLatencyFromMSIRange+0x72>
  11793. {
  11794. if(__HAL_RCC_PWR_IS_CLK_ENABLED())
  11795. 8004d24: 4b26 ldr r3, [pc, #152] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  11796. 8004d26: 6a5b ldr r3, [r3, #36] ; 0x24
  11797. 8004d28: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  11798. 8004d2c: 2b00 cmp r3, #0
  11799. 8004d2e: d005 beq.n 8004d3c <RCC_SetFlashLatencyFromMSIRange+0x30>
  11800. {
  11801. vos = READ_BIT(PWR->CR, PWR_CR_VOS);
  11802. 8004d30: 4b24 ldr r3, [pc, #144] ; (8004dc4 <RCC_SetFlashLatencyFromMSIRange+0xb8>)
  11803. 8004d32: 681b ldr r3, [r3, #0]
  11804. 8004d34: f403 53c0 and.w r3, r3, #6144 ; 0x1800
  11805. 8004d38: 617b str r3, [r7, #20]
  11806. 8004d3a: e016 b.n 8004d6a <RCC_SetFlashLatencyFromMSIRange+0x5e>
  11807. }
  11808. else
  11809. {
  11810. __HAL_RCC_PWR_CLK_ENABLE();
  11811. 8004d3c: 4b20 ldr r3, [pc, #128] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  11812. 8004d3e: 6a5b ldr r3, [r3, #36] ; 0x24
  11813. 8004d40: 4a1f ldr r2, [pc, #124] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  11814. 8004d42: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000
  11815. 8004d46: 6253 str r3, [r2, #36] ; 0x24
  11816. 8004d48: 4b1d ldr r3, [pc, #116] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  11817. 8004d4a: 6a5b ldr r3, [r3, #36] ; 0x24
  11818. 8004d4c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000
  11819. 8004d50: 60fb str r3, [r7, #12]
  11820. 8004d52: 68fb ldr r3, [r7, #12]
  11821. vos = READ_BIT(PWR->CR, PWR_CR_VOS);
  11822. 8004d54: 4b1b ldr r3, [pc, #108] ; (8004dc4 <RCC_SetFlashLatencyFromMSIRange+0xb8>)
  11823. 8004d56: 681b ldr r3, [r3, #0]
  11824. 8004d58: f403 53c0 and.w r3, r3, #6144 ; 0x1800
  11825. 8004d5c: 617b str r3, [r7, #20]
  11826. __HAL_RCC_PWR_CLK_DISABLE();
  11827. 8004d5e: 4b18 ldr r3, [pc, #96] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  11828. 8004d60: 6a5b ldr r3, [r3, #36] ; 0x24
  11829. 8004d62: 4a17 ldr r2, [pc, #92] ; (8004dc0 <RCC_SetFlashLatencyFromMSIRange+0xb4>)
  11830. 8004d64: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000
  11831. 8004d68: 6253 str r3, [r2, #36] ; 0x24
  11832. }
  11833. /* Check if need to set latency 1 only for Range 3 & HCLK = 4MHz */
  11834. if((vos == PWR_REGULATOR_VOLTAGE_SCALE3) && (MSIrange == RCC_MSIRANGE_6))
  11835. 8004d6a: 697b ldr r3, [r7, #20]
  11836. 8004d6c: f5b3 5fc0 cmp.w r3, #6144 ; 0x1800
  11837. 8004d70: d105 bne.n 8004d7e <RCC_SetFlashLatencyFromMSIRange+0x72>
  11838. 8004d72: 687b ldr r3, [r7, #4]
  11839. 8004d74: f5b3 4f40 cmp.w r3, #49152 ; 0xc000
  11840. 8004d78: d101 bne.n 8004d7e <RCC_SetFlashLatencyFromMSIRange+0x72>
  11841. {
  11842. latency = FLASH_LATENCY_1; /* 1WS */
  11843. 8004d7a: 2301 movs r3, #1
  11844. 8004d7c: 613b str r3, [r7, #16]
  11845. }
  11846. }
  11847. __HAL_FLASH_SET_LATENCY(latency);
  11848. 8004d7e: 693b ldr r3, [r7, #16]
  11849. 8004d80: 2b01 cmp r3, #1
  11850. 8004d82: d105 bne.n 8004d90 <RCC_SetFlashLatencyFromMSIRange+0x84>
  11851. 8004d84: 4b10 ldr r3, [pc, #64] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  11852. 8004d86: 681b ldr r3, [r3, #0]
  11853. 8004d88: 4a0f ldr r2, [pc, #60] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  11854. 8004d8a: f043 0304 orr.w r3, r3, #4
  11855. 8004d8e: 6013 str r3, [r2, #0]
  11856. 8004d90: 4b0d ldr r3, [pc, #52] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  11857. 8004d92: 681b ldr r3, [r3, #0]
  11858. 8004d94: f023 0201 bic.w r2, r3, #1
  11859. 8004d98: 490b ldr r1, [pc, #44] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  11860. 8004d9a: 693b ldr r3, [r7, #16]
  11861. 8004d9c: 4313 orrs r3, r2
  11862. 8004d9e: 600b str r3, [r1, #0]
  11863. /* Check that the new number of wait states is taken into account to access the Flash
  11864. memory by reading the FLASH_ACR register */
  11865. if(__HAL_FLASH_GET_LATENCY() != latency)
  11866. 8004da0: 4b09 ldr r3, [pc, #36] ; (8004dc8 <RCC_SetFlashLatencyFromMSIRange+0xbc>)
  11867. 8004da2: 681b ldr r3, [r3, #0]
  11868. 8004da4: f003 0301 and.w r3, r3, #1
  11869. 8004da8: 693a ldr r2, [r7, #16]
  11870. 8004daa: 429a cmp r2, r3
  11871. 8004dac: d001 beq.n 8004db2 <RCC_SetFlashLatencyFromMSIRange+0xa6>
  11872. {
  11873. return HAL_ERROR;
  11874. 8004dae: 2301 movs r3, #1
  11875. 8004db0: e000 b.n 8004db4 <RCC_SetFlashLatencyFromMSIRange+0xa8>
  11876. }
  11877. return HAL_OK;
  11878. 8004db2: 2300 movs r3, #0
  11879. }
  11880. 8004db4: 4618 mov r0, r3
  11881. 8004db6: 371c adds r7, #28
  11882. 8004db8: 46bd mov sp, r7
  11883. 8004dba: bc80 pop {r7}
  11884. 8004dbc: 4770 bx lr
  11885. 8004dbe: bf00 nop
  11886. 8004dc0: 40023800 .word 0x40023800
  11887. 8004dc4: 40007000 .word 0x40007000
  11888. 8004dc8: 40023c00 .word 0x40023c00
  11889. 08004dcc <HAL_TIM_Base_Init>:
  11890. * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
  11891. * @param htim TIM Base handle
  11892. * @retval HAL status
  11893. */
  11894. HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
  11895. {
  11896. 8004dcc: b580 push {r7, lr}
  11897. 8004dce: b082 sub sp, #8
  11898. 8004dd0: af00 add r7, sp, #0
  11899. 8004dd2: 6078 str r0, [r7, #4]
  11900. /* Check the TIM handle allocation */
  11901. if (htim == NULL)
  11902. 8004dd4: 687b ldr r3, [r7, #4]
  11903. 8004dd6: 2b00 cmp r3, #0
  11904. 8004dd8: d101 bne.n 8004dde <HAL_TIM_Base_Init+0x12>
  11905. {
  11906. return HAL_ERROR;
  11907. 8004dda: 2301 movs r3, #1
  11908. 8004ddc: e031 b.n 8004e42 <HAL_TIM_Base_Init+0x76>
  11909. assert_param(IS_TIM_INSTANCE(htim->Instance));
  11910. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  11911. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  11912. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  11913. if (htim->State == HAL_TIM_STATE_RESET)
  11914. 8004dde: 687b ldr r3, [r7, #4]
  11915. 8004de0: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  11916. 8004de4: b2db uxtb r3, r3
  11917. 8004de6: 2b00 cmp r3, #0
  11918. 8004de8: d106 bne.n 8004df8 <HAL_TIM_Base_Init+0x2c>
  11919. {
  11920. /* Allocate lock resource and initialize it */
  11921. htim->Lock = HAL_UNLOCKED;
  11922. 8004dea: 687b ldr r3, [r7, #4]
  11923. 8004dec: 2200 movs r2, #0
  11924. 8004dee: f883 2038 strb.w r2, [r3, #56] ; 0x38
  11925. }
  11926. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  11927. htim->Base_MspInitCallback(htim);
  11928. #else
  11929. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  11930. HAL_TIM_Base_MspInit(htim);
  11931. 8004df2: 6878 ldr r0, [r7, #4]
  11932. 8004df4: f7fc ff62 bl 8001cbc <HAL_TIM_Base_MspInit>
  11933. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  11934. }
  11935. /* Set the TIM state */
  11936. htim->State = HAL_TIM_STATE_BUSY;
  11937. 8004df8: 687b ldr r3, [r7, #4]
  11938. 8004dfa: 2202 movs r2, #2
  11939. 8004dfc: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11940. /* Set the Time Base configuration */
  11941. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  11942. 8004e00: 687b ldr r3, [r7, #4]
  11943. 8004e02: 681a ldr r2, [r3, #0]
  11944. 8004e04: 687b ldr r3, [r7, #4]
  11945. 8004e06: 3304 adds r3, #4
  11946. 8004e08: 4619 mov r1, r3
  11947. 8004e0a: 4610 mov r0, r2
  11948. 8004e0c: f000 fccc bl 80057a8 <TIM_Base_SetConfig>
  11949. /* Initialize the DMA burst operation state */
  11950. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  11951. 8004e10: 687b ldr r3, [r7, #4]
  11952. 8004e12: 2201 movs r2, #1
  11953. 8004e14: f883 203e strb.w r2, [r3, #62] ; 0x3e
  11954. /* Initialize the TIM channels state */
  11955. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  11956. 8004e18: 687b ldr r3, [r7, #4]
  11957. 8004e1a: 2201 movs r2, #1
  11958. 8004e1c: f883 203a strb.w r2, [r3, #58] ; 0x3a
  11959. 8004e20: 687b ldr r3, [r7, #4]
  11960. 8004e22: 2201 movs r2, #1
  11961. 8004e24: f883 203b strb.w r2, [r3, #59] ; 0x3b
  11962. 8004e28: 687b ldr r3, [r7, #4]
  11963. 8004e2a: 2201 movs r2, #1
  11964. 8004e2c: f883 203c strb.w r2, [r3, #60] ; 0x3c
  11965. 8004e30: 687b ldr r3, [r7, #4]
  11966. 8004e32: 2201 movs r2, #1
  11967. 8004e34: f883 203d strb.w r2, [r3, #61] ; 0x3d
  11968. /* Initialize the TIM state*/
  11969. htim->State = HAL_TIM_STATE_READY;
  11970. 8004e38: 687b ldr r3, [r7, #4]
  11971. 8004e3a: 2201 movs r2, #1
  11972. 8004e3c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  11973. return HAL_OK;
  11974. 8004e40: 2300 movs r3, #0
  11975. }
  11976. 8004e42: 4618 mov r0, r3
  11977. 8004e44: 3708 adds r7, #8
  11978. 8004e46: 46bd mov sp, r7
  11979. 8004e48: bd80 pop {r7, pc}
  11980. ...
  11981. 08004e4c <HAL_TIM_Base_Start>:
  11982. * @brief Starts the TIM Base generation.
  11983. * @param htim TIM Base handle
  11984. * @retval HAL status
  11985. */
  11986. HAL_StatusTypeDef HAL_TIM_Base_Start(TIM_HandleTypeDef *htim)
  11987. {
  11988. 8004e4c: b480 push {r7}
  11989. 8004e4e: b085 sub sp, #20
  11990. 8004e50: af00 add r7, sp, #0
  11991. 8004e52: 6078 str r0, [r7, #4]
  11992. /* Check the parameters */
  11993. assert_param(IS_TIM_INSTANCE(htim->Instance));
  11994. /* Check the TIM state */
  11995. if (htim->State != HAL_TIM_STATE_READY)
  11996. 8004e54: 687b ldr r3, [r7, #4]
  11997. 8004e56: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  11998. 8004e5a: b2db uxtb r3, r3
  11999. 8004e5c: 2b01 cmp r3, #1
  12000. 8004e5e: d001 beq.n 8004e64 <HAL_TIM_Base_Start+0x18>
  12001. {
  12002. return HAL_ERROR;
  12003. 8004e60: 2301 movs r3, #1
  12004. 8004e62: e032 b.n 8004eca <HAL_TIM_Base_Start+0x7e>
  12005. }
  12006. /* Set the TIM state */
  12007. htim->State = HAL_TIM_STATE_BUSY;
  12008. 8004e64: 687b ldr r3, [r7, #4]
  12009. 8004e66: 2202 movs r2, #2
  12010. 8004e68: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12011. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  12012. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  12013. 8004e6c: 687b ldr r3, [r7, #4]
  12014. 8004e6e: 681b ldr r3, [r3, #0]
  12015. 8004e70: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  12016. 8004e74: d00e beq.n 8004e94 <HAL_TIM_Base_Start+0x48>
  12017. 8004e76: 687b ldr r3, [r7, #4]
  12018. 8004e78: 681b ldr r3, [r3, #0]
  12019. 8004e7a: 4a16 ldr r2, [pc, #88] ; (8004ed4 <HAL_TIM_Base_Start+0x88>)
  12020. 8004e7c: 4293 cmp r3, r2
  12021. 8004e7e: d009 beq.n 8004e94 <HAL_TIM_Base_Start+0x48>
  12022. 8004e80: 687b ldr r3, [r7, #4]
  12023. 8004e82: 681b ldr r3, [r3, #0]
  12024. 8004e84: 4a14 ldr r2, [pc, #80] ; (8004ed8 <HAL_TIM_Base_Start+0x8c>)
  12025. 8004e86: 4293 cmp r3, r2
  12026. 8004e88: d004 beq.n 8004e94 <HAL_TIM_Base_Start+0x48>
  12027. 8004e8a: 687b ldr r3, [r7, #4]
  12028. 8004e8c: 681b ldr r3, [r3, #0]
  12029. 8004e8e: 4a13 ldr r2, [pc, #76] ; (8004edc <HAL_TIM_Base_Start+0x90>)
  12030. 8004e90: 4293 cmp r3, r2
  12031. 8004e92: d111 bne.n 8004eb8 <HAL_TIM_Base_Start+0x6c>
  12032. {
  12033. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  12034. 8004e94: 687b ldr r3, [r7, #4]
  12035. 8004e96: 681b ldr r3, [r3, #0]
  12036. 8004e98: 689b ldr r3, [r3, #8]
  12037. 8004e9a: f003 0307 and.w r3, r3, #7
  12038. 8004e9e: 60fb str r3, [r7, #12]
  12039. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12040. 8004ea0: 68fb ldr r3, [r7, #12]
  12041. 8004ea2: 2b06 cmp r3, #6
  12042. 8004ea4: d010 beq.n 8004ec8 <HAL_TIM_Base_Start+0x7c>
  12043. {
  12044. __HAL_TIM_ENABLE(htim);
  12045. 8004ea6: 687b ldr r3, [r7, #4]
  12046. 8004ea8: 681b ldr r3, [r3, #0]
  12047. 8004eaa: 681a ldr r2, [r3, #0]
  12048. 8004eac: 687b ldr r3, [r7, #4]
  12049. 8004eae: 681b ldr r3, [r3, #0]
  12050. 8004eb0: f042 0201 orr.w r2, r2, #1
  12051. 8004eb4: 601a str r2, [r3, #0]
  12052. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12053. 8004eb6: e007 b.n 8004ec8 <HAL_TIM_Base_Start+0x7c>
  12054. }
  12055. }
  12056. else
  12057. {
  12058. __HAL_TIM_ENABLE(htim);
  12059. 8004eb8: 687b ldr r3, [r7, #4]
  12060. 8004eba: 681b ldr r3, [r3, #0]
  12061. 8004ebc: 681a ldr r2, [r3, #0]
  12062. 8004ebe: 687b ldr r3, [r7, #4]
  12063. 8004ec0: 681b ldr r3, [r3, #0]
  12064. 8004ec2: f042 0201 orr.w r2, r2, #1
  12065. 8004ec6: 601a str r2, [r3, #0]
  12066. }
  12067. /* Return function status */
  12068. return HAL_OK;
  12069. 8004ec8: 2300 movs r3, #0
  12070. }
  12071. 8004eca: 4618 mov r0, r3
  12072. 8004ecc: 3714 adds r7, #20
  12073. 8004ece: 46bd mov sp, r7
  12074. 8004ed0: bc80 pop {r7}
  12075. 8004ed2: 4770 bx lr
  12076. 8004ed4: 40000400 .word 0x40000400
  12077. 8004ed8: 40000800 .word 0x40000800
  12078. 8004edc: 40010800 .word 0x40010800
  12079. 08004ee0 <HAL_TIM_Base_Stop>:
  12080. * @brief Stops the TIM Base generation.
  12081. * @param htim TIM Base handle
  12082. * @retval HAL status
  12083. */
  12084. HAL_StatusTypeDef HAL_TIM_Base_Stop(TIM_HandleTypeDef *htim)
  12085. {
  12086. 8004ee0: b480 push {r7}
  12087. 8004ee2: b083 sub sp, #12
  12088. 8004ee4: af00 add r7, sp, #0
  12089. 8004ee6: 6078 str r0, [r7, #4]
  12090. /* Check the parameters */
  12091. assert_param(IS_TIM_INSTANCE(htim->Instance));
  12092. /* Disable the Peripheral */
  12093. __HAL_TIM_DISABLE(htim);
  12094. 8004ee8: 687b ldr r3, [r7, #4]
  12095. 8004eea: 681b ldr r3, [r3, #0]
  12096. 8004eec: 6a1a ldr r2, [r3, #32]
  12097. 8004eee: f241 1311 movw r3, #4369 ; 0x1111
  12098. 8004ef2: 4013 ands r3, r2
  12099. 8004ef4: 2b00 cmp r3, #0
  12100. 8004ef6: d107 bne.n 8004f08 <HAL_TIM_Base_Stop+0x28>
  12101. 8004ef8: 687b ldr r3, [r7, #4]
  12102. 8004efa: 681b ldr r3, [r3, #0]
  12103. 8004efc: 681a ldr r2, [r3, #0]
  12104. 8004efe: 687b ldr r3, [r7, #4]
  12105. 8004f00: 681b ldr r3, [r3, #0]
  12106. 8004f02: f022 0201 bic.w r2, r2, #1
  12107. 8004f06: 601a str r2, [r3, #0]
  12108. /* Set the TIM state */
  12109. htim->State = HAL_TIM_STATE_READY;
  12110. 8004f08: 687b ldr r3, [r7, #4]
  12111. 8004f0a: 2201 movs r2, #1
  12112. 8004f0c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12113. /* Return function status */
  12114. return HAL_OK;
  12115. 8004f10: 2300 movs r3, #0
  12116. }
  12117. 8004f12: 4618 mov r0, r3
  12118. 8004f14: 370c adds r7, #12
  12119. 8004f16: 46bd mov sp, r7
  12120. 8004f18: bc80 pop {r7}
  12121. 8004f1a: 4770 bx lr
  12122. 08004f1c <HAL_TIM_Base_Start_IT>:
  12123. * @brief Starts the TIM Base generation in interrupt mode.
  12124. * @param htim TIM Base handle
  12125. * @retval HAL status
  12126. */
  12127. HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
  12128. {
  12129. 8004f1c: b480 push {r7}
  12130. 8004f1e: b085 sub sp, #20
  12131. 8004f20: af00 add r7, sp, #0
  12132. 8004f22: 6078 str r0, [r7, #4]
  12133. /* Check the parameters */
  12134. assert_param(IS_TIM_INSTANCE(htim->Instance));
  12135. /* Check the TIM state */
  12136. if (htim->State != HAL_TIM_STATE_READY)
  12137. 8004f24: 687b ldr r3, [r7, #4]
  12138. 8004f26: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  12139. 8004f2a: b2db uxtb r3, r3
  12140. 8004f2c: 2b01 cmp r3, #1
  12141. 8004f2e: d001 beq.n 8004f34 <HAL_TIM_Base_Start_IT+0x18>
  12142. {
  12143. return HAL_ERROR;
  12144. 8004f30: 2301 movs r3, #1
  12145. 8004f32: e03a b.n 8004faa <HAL_TIM_Base_Start_IT+0x8e>
  12146. }
  12147. /* Set the TIM state */
  12148. htim->State = HAL_TIM_STATE_BUSY;
  12149. 8004f34: 687b ldr r3, [r7, #4]
  12150. 8004f36: 2202 movs r2, #2
  12151. 8004f38: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12152. /* Enable the TIM Update interrupt */
  12153. __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
  12154. 8004f3c: 687b ldr r3, [r7, #4]
  12155. 8004f3e: 681b ldr r3, [r3, #0]
  12156. 8004f40: 68da ldr r2, [r3, #12]
  12157. 8004f42: 687b ldr r3, [r7, #4]
  12158. 8004f44: 681b ldr r3, [r3, #0]
  12159. 8004f46: f042 0201 orr.w r2, r2, #1
  12160. 8004f4a: 60da str r2, [r3, #12]
  12161. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  12162. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  12163. 8004f4c: 687b ldr r3, [r7, #4]
  12164. 8004f4e: 681b ldr r3, [r3, #0]
  12165. 8004f50: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  12166. 8004f54: d00e beq.n 8004f74 <HAL_TIM_Base_Start_IT+0x58>
  12167. 8004f56: 687b ldr r3, [r7, #4]
  12168. 8004f58: 681b ldr r3, [r3, #0]
  12169. 8004f5a: 4a16 ldr r2, [pc, #88] ; (8004fb4 <HAL_TIM_Base_Start_IT+0x98>)
  12170. 8004f5c: 4293 cmp r3, r2
  12171. 8004f5e: d009 beq.n 8004f74 <HAL_TIM_Base_Start_IT+0x58>
  12172. 8004f60: 687b ldr r3, [r7, #4]
  12173. 8004f62: 681b ldr r3, [r3, #0]
  12174. 8004f64: 4a14 ldr r2, [pc, #80] ; (8004fb8 <HAL_TIM_Base_Start_IT+0x9c>)
  12175. 8004f66: 4293 cmp r3, r2
  12176. 8004f68: d004 beq.n 8004f74 <HAL_TIM_Base_Start_IT+0x58>
  12177. 8004f6a: 687b ldr r3, [r7, #4]
  12178. 8004f6c: 681b ldr r3, [r3, #0]
  12179. 8004f6e: 4a13 ldr r2, [pc, #76] ; (8004fbc <HAL_TIM_Base_Start_IT+0xa0>)
  12180. 8004f70: 4293 cmp r3, r2
  12181. 8004f72: d111 bne.n 8004f98 <HAL_TIM_Base_Start_IT+0x7c>
  12182. {
  12183. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  12184. 8004f74: 687b ldr r3, [r7, #4]
  12185. 8004f76: 681b ldr r3, [r3, #0]
  12186. 8004f78: 689b ldr r3, [r3, #8]
  12187. 8004f7a: f003 0307 and.w r3, r3, #7
  12188. 8004f7e: 60fb str r3, [r7, #12]
  12189. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12190. 8004f80: 68fb ldr r3, [r7, #12]
  12191. 8004f82: 2b06 cmp r3, #6
  12192. 8004f84: d010 beq.n 8004fa8 <HAL_TIM_Base_Start_IT+0x8c>
  12193. {
  12194. __HAL_TIM_ENABLE(htim);
  12195. 8004f86: 687b ldr r3, [r7, #4]
  12196. 8004f88: 681b ldr r3, [r3, #0]
  12197. 8004f8a: 681a ldr r2, [r3, #0]
  12198. 8004f8c: 687b ldr r3, [r7, #4]
  12199. 8004f8e: 681b ldr r3, [r3, #0]
  12200. 8004f90: f042 0201 orr.w r2, r2, #1
  12201. 8004f94: 601a str r2, [r3, #0]
  12202. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12203. 8004f96: e007 b.n 8004fa8 <HAL_TIM_Base_Start_IT+0x8c>
  12204. }
  12205. }
  12206. else
  12207. {
  12208. __HAL_TIM_ENABLE(htim);
  12209. 8004f98: 687b ldr r3, [r7, #4]
  12210. 8004f9a: 681b ldr r3, [r3, #0]
  12211. 8004f9c: 681a ldr r2, [r3, #0]
  12212. 8004f9e: 687b ldr r3, [r7, #4]
  12213. 8004fa0: 681b ldr r3, [r3, #0]
  12214. 8004fa2: f042 0201 orr.w r2, r2, #1
  12215. 8004fa6: 601a str r2, [r3, #0]
  12216. }
  12217. /* Return function status */
  12218. return HAL_OK;
  12219. 8004fa8: 2300 movs r3, #0
  12220. }
  12221. 8004faa: 4618 mov r0, r3
  12222. 8004fac: 3714 adds r7, #20
  12223. 8004fae: 46bd mov sp, r7
  12224. 8004fb0: bc80 pop {r7}
  12225. 8004fb2: 4770 bx lr
  12226. 8004fb4: 40000400 .word 0x40000400
  12227. 8004fb8: 40000800 .word 0x40000800
  12228. 8004fbc: 40010800 .word 0x40010800
  12229. 08004fc0 <HAL_TIM_OC_Start>:
  12230. * @arg TIM_CHANNEL_3: TIM Channel 3 selected
  12231. * @arg TIM_CHANNEL_4: TIM Channel 4 selected
  12232. * @retval HAL status
  12233. */
  12234. HAL_StatusTypeDef HAL_TIM_OC_Start(TIM_HandleTypeDef *htim, uint32_t Channel)
  12235. {
  12236. 8004fc0: b580 push {r7, lr}
  12237. 8004fc2: b084 sub sp, #16
  12238. 8004fc4: af00 add r7, sp, #0
  12239. 8004fc6: 6078 str r0, [r7, #4]
  12240. 8004fc8: 6039 str r1, [r7, #0]
  12241. /* Check the parameters */
  12242. assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel));
  12243. /* Check the TIM channel state */
  12244. if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY)
  12245. 8004fca: 683b ldr r3, [r7, #0]
  12246. 8004fcc: 2b00 cmp r3, #0
  12247. 8004fce: d109 bne.n 8004fe4 <HAL_TIM_OC_Start+0x24>
  12248. 8004fd0: 687b ldr r3, [r7, #4]
  12249. 8004fd2: f893 303a ldrb.w r3, [r3, #58] ; 0x3a
  12250. 8004fd6: b2db uxtb r3, r3
  12251. 8004fd8: 2b01 cmp r3, #1
  12252. 8004fda: bf14 ite ne
  12253. 8004fdc: 2301 movne r3, #1
  12254. 8004fde: 2300 moveq r3, #0
  12255. 8004fe0: b2db uxtb r3, r3
  12256. 8004fe2: e022 b.n 800502a <HAL_TIM_OC_Start+0x6a>
  12257. 8004fe4: 683b ldr r3, [r7, #0]
  12258. 8004fe6: 2b04 cmp r3, #4
  12259. 8004fe8: d109 bne.n 8004ffe <HAL_TIM_OC_Start+0x3e>
  12260. 8004fea: 687b ldr r3, [r7, #4]
  12261. 8004fec: f893 303b ldrb.w r3, [r3, #59] ; 0x3b
  12262. 8004ff0: b2db uxtb r3, r3
  12263. 8004ff2: 2b01 cmp r3, #1
  12264. 8004ff4: bf14 ite ne
  12265. 8004ff6: 2301 movne r3, #1
  12266. 8004ff8: 2300 moveq r3, #0
  12267. 8004ffa: b2db uxtb r3, r3
  12268. 8004ffc: e015 b.n 800502a <HAL_TIM_OC_Start+0x6a>
  12269. 8004ffe: 683b ldr r3, [r7, #0]
  12270. 8005000: 2b08 cmp r3, #8
  12271. 8005002: d109 bne.n 8005018 <HAL_TIM_OC_Start+0x58>
  12272. 8005004: 687b ldr r3, [r7, #4]
  12273. 8005006: f893 303c ldrb.w r3, [r3, #60] ; 0x3c
  12274. 800500a: b2db uxtb r3, r3
  12275. 800500c: 2b01 cmp r3, #1
  12276. 800500e: bf14 ite ne
  12277. 8005010: 2301 movne r3, #1
  12278. 8005012: 2300 moveq r3, #0
  12279. 8005014: b2db uxtb r3, r3
  12280. 8005016: e008 b.n 800502a <HAL_TIM_OC_Start+0x6a>
  12281. 8005018: 687b ldr r3, [r7, #4]
  12282. 800501a: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  12283. 800501e: b2db uxtb r3, r3
  12284. 8005020: 2b01 cmp r3, #1
  12285. 8005022: bf14 ite ne
  12286. 8005024: 2301 movne r3, #1
  12287. 8005026: 2300 moveq r3, #0
  12288. 8005028: b2db uxtb r3, r3
  12289. 800502a: 2b00 cmp r3, #0
  12290. 800502c: d001 beq.n 8005032 <HAL_TIM_OC_Start+0x72>
  12291. {
  12292. return HAL_ERROR;
  12293. 800502e: 2301 movs r3, #1
  12294. 8005030: e051 b.n 80050d6 <HAL_TIM_OC_Start+0x116>
  12295. }
  12296. /* Set the TIM channel state */
  12297. TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY);
  12298. 8005032: 683b ldr r3, [r7, #0]
  12299. 8005034: 2b00 cmp r3, #0
  12300. 8005036: d104 bne.n 8005042 <HAL_TIM_OC_Start+0x82>
  12301. 8005038: 687b ldr r3, [r7, #4]
  12302. 800503a: 2202 movs r2, #2
  12303. 800503c: f883 203a strb.w r2, [r3, #58] ; 0x3a
  12304. 8005040: e013 b.n 800506a <HAL_TIM_OC_Start+0xaa>
  12305. 8005042: 683b ldr r3, [r7, #0]
  12306. 8005044: 2b04 cmp r3, #4
  12307. 8005046: d104 bne.n 8005052 <HAL_TIM_OC_Start+0x92>
  12308. 8005048: 687b ldr r3, [r7, #4]
  12309. 800504a: 2202 movs r2, #2
  12310. 800504c: f883 203b strb.w r2, [r3, #59] ; 0x3b
  12311. 8005050: e00b b.n 800506a <HAL_TIM_OC_Start+0xaa>
  12312. 8005052: 683b ldr r3, [r7, #0]
  12313. 8005054: 2b08 cmp r3, #8
  12314. 8005056: d104 bne.n 8005062 <HAL_TIM_OC_Start+0xa2>
  12315. 8005058: 687b ldr r3, [r7, #4]
  12316. 800505a: 2202 movs r2, #2
  12317. 800505c: f883 203c strb.w r2, [r3, #60] ; 0x3c
  12318. 8005060: e003 b.n 800506a <HAL_TIM_OC_Start+0xaa>
  12319. 8005062: 687b ldr r3, [r7, #4]
  12320. 8005064: 2202 movs r2, #2
  12321. 8005066: f883 203d strb.w r2, [r3, #61] ; 0x3d
  12322. /* Enable the Output compare channel */
  12323. TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE);
  12324. 800506a: 687b ldr r3, [r7, #4]
  12325. 800506c: 681b ldr r3, [r3, #0]
  12326. 800506e: 2201 movs r2, #1
  12327. 8005070: 6839 ldr r1, [r7, #0]
  12328. 8005072: 4618 mov r0, r3
  12329. 8005074: f000 fe13 bl 8005c9e <TIM_CCxChannelCmd>
  12330. /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
  12331. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  12332. 8005078: 687b ldr r3, [r7, #4]
  12333. 800507a: 681b ldr r3, [r3, #0]
  12334. 800507c: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  12335. 8005080: d00e beq.n 80050a0 <HAL_TIM_OC_Start+0xe0>
  12336. 8005082: 687b ldr r3, [r7, #4]
  12337. 8005084: 681b ldr r3, [r3, #0]
  12338. 8005086: 4a16 ldr r2, [pc, #88] ; (80050e0 <HAL_TIM_OC_Start+0x120>)
  12339. 8005088: 4293 cmp r3, r2
  12340. 800508a: d009 beq.n 80050a0 <HAL_TIM_OC_Start+0xe0>
  12341. 800508c: 687b ldr r3, [r7, #4]
  12342. 800508e: 681b ldr r3, [r3, #0]
  12343. 8005090: 4a14 ldr r2, [pc, #80] ; (80050e4 <HAL_TIM_OC_Start+0x124>)
  12344. 8005092: 4293 cmp r3, r2
  12345. 8005094: d004 beq.n 80050a0 <HAL_TIM_OC_Start+0xe0>
  12346. 8005096: 687b ldr r3, [r7, #4]
  12347. 8005098: 681b ldr r3, [r3, #0]
  12348. 800509a: 4a13 ldr r2, [pc, #76] ; (80050e8 <HAL_TIM_OC_Start+0x128>)
  12349. 800509c: 4293 cmp r3, r2
  12350. 800509e: d111 bne.n 80050c4 <HAL_TIM_OC_Start+0x104>
  12351. {
  12352. tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
  12353. 80050a0: 687b ldr r3, [r7, #4]
  12354. 80050a2: 681b ldr r3, [r3, #0]
  12355. 80050a4: 689b ldr r3, [r3, #8]
  12356. 80050a6: f003 0307 and.w r3, r3, #7
  12357. 80050aa: 60fb str r3, [r7, #12]
  12358. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12359. 80050ac: 68fb ldr r3, [r7, #12]
  12360. 80050ae: 2b06 cmp r3, #6
  12361. 80050b0: d010 beq.n 80050d4 <HAL_TIM_OC_Start+0x114>
  12362. {
  12363. __HAL_TIM_ENABLE(htim);
  12364. 80050b2: 687b ldr r3, [r7, #4]
  12365. 80050b4: 681b ldr r3, [r3, #0]
  12366. 80050b6: 681a ldr r2, [r3, #0]
  12367. 80050b8: 687b ldr r3, [r7, #4]
  12368. 80050ba: 681b ldr r3, [r3, #0]
  12369. 80050bc: f042 0201 orr.w r2, r2, #1
  12370. 80050c0: 601a str r2, [r3, #0]
  12371. if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
  12372. 80050c2: e007 b.n 80050d4 <HAL_TIM_OC_Start+0x114>
  12373. }
  12374. }
  12375. else
  12376. {
  12377. __HAL_TIM_ENABLE(htim);
  12378. 80050c4: 687b ldr r3, [r7, #4]
  12379. 80050c6: 681b ldr r3, [r3, #0]
  12380. 80050c8: 681a ldr r2, [r3, #0]
  12381. 80050ca: 687b ldr r3, [r7, #4]
  12382. 80050cc: 681b ldr r3, [r3, #0]
  12383. 80050ce: f042 0201 orr.w r2, r2, #1
  12384. 80050d2: 601a str r2, [r3, #0]
  12385. }
  12386. /* Return function status */
  12387. return HAL_OK;
  12388. 80050d4: 2300 movs r3, #0
  12389. }
  12390. 80050d6: 4618 mov r0, r3
  12391. 80050d8: 3710 adds r7, #16
  12392. 80050da: 46bd mov sp, r7
  12393. 80050dc: bd80 pop {r7, pc}
  12394. 80050de: bf00 nop
  12395. 80050e0: 40000400 .word 0x40000400
  12396. 80050e4: 40000800 .word 0x40000800
  12397. 80050e8: 40010800 .word 0x40010800
  12398. 080050ec <HAL_TIM_PWM_Init>:
  12399. * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init()
  12400. * @param htim TIM PWM handle
  12401. * @retval HAL status
  12402. */
  12403. HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
  12404. {
  12405. 80050ec: b580 push {r7, lr}
  12406. 80050ee: b082 sub sp, #8
  12407. 80050f0: af00 add r7, sp, #0
  12408. 80050f2: 6078 str r0, [r7, #4]
  12409. /* Check the TIM handle allocation */
  12410. if (htim == NULL)
  12411. 80050f4: 687b ldr r3, [r7, #4]
  12412. 80050f6: 2b00 cmp r3, #0
  12413. 80050f8: d101 bne.n 80050fe <HAL_TIM_PWM_Init+0x12>
  12414. {
  12415. return HAL_ERROR;
  12416. 80050fa: 2301 movs r3, #1
  12417. 80050fc: e031 b.n 8005162 <HAL_TIM_PWM_Init+0x76>
  12418. assert_param(IS_TIM_INSTANCE(htim->Instance));
  12419. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  12420. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  12421. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  12422. if (htim->State == HAL_TIM_STATE_RESET)
  12423. 80050fe: 687b ldr r3, [r7, #4]
  12424. 8005100: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  12425. 8005104: b2db uxtb r3, r3
  12426. 8005106: 2b00 cmp r3, #0
  12427. 8005108: d106 bne.n 8005118 <HAL_TIM_PWM_Init+0x2c>
  12428. {
  12429. /* Allocate lock resource and initialize it */
  12430. htim->Lock = HAL_UNLOCKED;
  12431. 800510a: 687b ldr r3, [r7, #4]
  12432. 800510c: 2200 movs r2, #0
  12433. 800510e: f883 2038 strb.w r2, [r3, #56] ; 0x38
  12434. }
  12435. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  12436. htim->PWM_MspInitCallback(htim);
  12437. #else
  12438. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  12439. HAL_TIM_PWM_MspInit(htim);
  12440. 8005112: 6878 ldr r0, [r7, #4]
  12441. 8005114: f000 f829 bl 800516a <HAL_TIM_PWM_MspInit>
  12442. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12443. }
  12444. /* Set the TIM state */
  12445. htim->State = HAL_TIM_STATE_BUSY;
  12446. 8005118: 687b ldr r3, [r7, #4]
  12447. 800511a: 2202 movs r2, #2
  12448. 800511c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12449. /* Init the base time for the PWM */
  12450. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  12451. 8005120: 687b ldr r3, [r7, #4]
  12452. 8005122: 681a ldr r2, [r3, #0]
  12453. 8005124: 687b ldr r3, [r7, #4]
  12454. 8005126: 3304 adds r3, #4
  12455. 8005128: 4619 mov r1, r3
  12456. 800512a: 4610 mov r0, r2
  12457. 800512c: f000 fb3c bl 80057a8 <TIM_Base_SetConfig>
  12458. /* Initialize the DMA burst operation state */
  12459. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  12460. 8005130: 687b ldr r3, [r7, #4]
  12461. 8005132: 2201 movs r2, #1
  12462. 8005134: f883 203e strb.w r2, [r3, #62] ; 0x3e
  12463. /* Initialize the TIM channels state */
  12464. TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
  12465. 8005138: 687b ldr r3, [r7, #4]
  12466. 800513a: 2201 movs r2, #1
  12467. 800513c: f883 203a strb.w r2, [r3, #58] ; 0x3a
  12468. 8005140: 687b ldr r3, [r7, #4]
  12469. 8005142: 2201 movs r2, #1
  12470. 8005144: f883 203b strb.w r2, [r3, #59] ; 0x3b
  12471. 8005148: 687b ldr r3, [r7, #4]
  12472. 800514a: 2201 movs r2, #1
  12473. 800514c: f883 203c strb.w r2, [r3, #60] ; 0x3c
  12474. 8005150: 687b ldr r3, [r7, #4]
  12475. 8005152: 2201 movs r2, #1
  12476. 8005154: f883 203d strb.w r2, [r3, #61] ; 0x3d
  12477. /* Initialize the TIM state*/
  12478. htim->State = HAL_TIM_STATE_READY;
  12479. 8005158: 687b ldr r3, [r7, #4]
  12480. 800515a: 2201 movs r2, #1
  12481. 800515c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12482. return HAL_OK;
  12483. 8005160: 2300 movs r3, #0
  12484. }
  12485. 8005162: 4618 mov r0, r3
  12486. 8005164: 3708 adds r7, #8
  12487. 8005166: 46bd mov sp, r7
  12488. 8005168: bd80 pop {r7, pc}
  12489. 0800516a <HAL_TIM_PWM_MspInit>:
  12490. * @brief Initializes the TIM PWM MSP.
  12491. * @param htim TIM PWM handle
  12492. * @retval None
  12493. */
  12494. __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim)
  12495. {
  12496. 800516a: b480 push {r7}
  12497. 800516c: b083 sub sp, #12
  12498. 800516e: af00 add r7, sp, #0
  12499. 8005170: 6078 str r0, [r7, #4]
  12500. UNUSED(htim);
  12501. /* NOTE : This function should not be modified, when the callback is needed,
  12502. the HAL_TIM_PWM_MspInit could be implemented in the user file
  12503. */
  12504. }
  12505. 8005172: bf00 nop
  12506. 8005174: 370c adds r7, #12
  12507. 8005176: 46bd mov sp, r7
  12508. 8005178: bc80 pop {r7}
  12509. 800517a: 4770 bx lr
  12510. 0800517c <HAL_TIM_OnePulse_Init>:
  12511. * @arg TIM_OPMODE_SINGLE: Only one pulse will be generated.
  12512. * @arg TIM_OPMODE_REPETITIVE: Repetitive pulses will be generated.
  12513. * @retval HAL status
  12514. */
  12515. HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePulseMode)
  12516. {
  12517. 800517c: b580 push {r7, lr}
  12518. 800517e: b082 sub sp, #8
  12519. 8005180: af00 add r7, sp, #0
  12520. 8005182: 6078 str r0, [r7, #4]
  12521. 8005184: 6039 str r1, [r7, #0]
  12522. /* Check the TIM handle allocation */
  12523. if (htim == NULL)
  12524. 8005186: 687b ldr r3, [r7, #4]
  12525. 8005188: 2b00 cmp r3, #0
  12526. 800518a: d101 bne.n 8005190 <HAL_TIM_OnePulse_Init+0x14>
  12527. {
  12528. return HAL_ERROR;
  12529. 800518c: 2301 movs r3, #1
  12530. 800518e: e039 b.n 8005204 <HAL_TIM_OnePulse_Init+0x88>
  12531. assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
  12532. assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
  12533. assert_param(IS_TIM_OPM_MODE(OnePulseMode));
  12534. assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
  12535. if (htim->State == HAL_TIM_STATE_RESET)
  12536. 8005190: 687b ldr r3, [r7, #4]
  12537. 8005192: f893 3039 ldrb.w r3, [r3, #57] ; 0x39
  12538. 8005196: b2db uxtb r3, r3
  12539. 8005198: 2b00 cmp r3, #0
  12540. 800519a: d106 bne.n 80051aa <HAL_TIM_OnePulse_Init+0x2e>
  12541. {
  12542. /* Allocate lock resource and initialize it */
  12543. htim->Lock = HAL_UNLOCKED;
  12544. 800519c: 687b ldr r3, [r7, #4]
  12545. 800519e: 2200 movs r2, #0
  12546. 80051a0: f883 2038 strb.w r2, [r3, #56] ; 0x38
  12547. }
  12548. /* Init the low level hardware : GPIO, CLOCK, NVIC */
  12549. htim->OnePulse_MspInitCallback(htim);
  12550. #else
  12551. /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */
  12552. HAL_TIM_OnePulse_MspInit(htim);
  12553. 80051a4: 6878 ldr r0, [r7, #4]
  12554. 80051a6: f000 f831 bl 800520c <HAL_TIM_OnePulse_MspInit>
  12555. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12556. }
  12557. /* Set the TIM state */
  12558. htim->State = HAL_TIM_STATE_BUSY;
  12559. 80051aa: 687b ldr r3, [r7, #4]
  12560. 80051ac: 2202 movs r2, #2
  12561. 80051ae: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12562. /* Configure the Time base in the One Pulse Mode */
  12563. TIM_Base_SetConfig(htim->Instance, &htim->Init);
  12564. 80051b2: 687b ldr r3, [r7, #4]
  12565. 80051b4: 681a ldr r2, [r3, #0]
  12566. 80051b6: 687b ldr r3, [r7, #4]
  12567. 80051b8: 3304 adds r3, #4
  12568. 80051ba: 4619 mov r1, r3
  12569. 80051bc: 4610 mov r0, r2
  12570. 80051be: f000 faf3 bl 80057a8 <TIM_Base_SetConfig>
  12571. /* Reset the OPM Bit */
  12572. htim->Instance->CR1 &= ~TIM_CR1_OPM;
  12573. 80051c2: 687b ldr r3, [r7, #4]
  12574. 80051c4: 681b ldr r3, [r3, #0]
  12575. 80051c6: 681a ldr r2, [r3, #0]
  12576. 80051c8: 687b ldr r3, [r7, #4]
  12577. 80051ca: 681b ldr r3, [r3, #0]
  12578. 80051cc: f022 0208 bic.w r2, r2, #8
  12579. 80051d0: 601a str r2, [r3, #0]
  12580. /* Configure the OPM Mode */
  12581. htim->Instance->CR1 |= OnePulseMode;
  12582. 80051d2: 687b ldr r3, [r7, #4]
  12583. 80051d4: 681b ldr r3, [r3, #0]
  12584. 80051d6: 6819 ldr r1, [r3, #0]
  12585. 80051d8: 687b ldr r3, [r7, #4]
  12586. 80051da: 681b ldr r3, [r3, #0]
  12587. 80051dc: 683a ldr r2, [r7, #0]
  12588. 80051de: 430a orrs r2, r1
  12589. 80051e0: 601a str r2, [r3, #0]
  12590. /* Initialize the DMA burst operation state */
  12591. htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
  12592. 80051e2: 687b ldr r3, [r7, #4]
  12593. 80051e4: 2201 movs r2, #1
  12594. 80051e6: f883 203e strb.w r2, [r3, #62] ; 0x3e
  12595. /* Initialize the TIM channels state */
  12596. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY);
  12597. 80051ea: 687b ldr r3, [r7, #4]
  12598. 80051ec: 2201 movs r2, #1
  12599. 80051ee: f883 203a strb.w r2, [r3, #58] ; 0x3a
  12600. TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY);
  12601. 80051f2: 687b ldr r3, [r7, #4]
  12602. 80051f4: 2201 movs r2, #1
  12603. 80051f6: f883 203b strb.w r2, [r3, #59] ; 0x3b
  12604. /* Initialize the TIM state*/
  12605. htim->State = HAL_TIM_STATE_READY;
  12606. 80051fa: 687b ldr r3, [r7, #4]
  12607. 80051fc: 2201 movs r2, #1
  12608. 80051fe: f883 2039 strb.w r2, [r3, #57] ; 0x39
  12609. return HAL_OK;
  12610. 8005202: 2300 movs r3, #0
  12611. }
  12612. 8005204: 4618 mov r0, r3
  12613. 8005206: 3708 adds r7, #8
  12614. 8005208: 46bd mov sp, r7
  12615. 800520a: bd80 pop {r7, pc}
  12616. 0800520c <HAL_TIM_OnePulse_MspInit>:
  12617. * @brief Initializes the TIM One Pulse MSP.
  12618. * @param htim TIM One Pulse handle
  12619. * @retval None
  12620. */
  12621. __weak void HAL_TIM_OnePulse_MspInit(TIM_HandleTypeDef *htim)
  12622. {
  12623. 800520c: b480 push {r7}
  12624. 800520e: b083 sub sp, #12
  12625. 8005210: af00 add r7, sp, #0
  12626. 8005212: 6078 str r0, [r7, #4]
  12627. UNUSED(htim);
  12628. /* NOTE : This function should not be modified, when the callback is needed,
  12629. the HAL_TIM_OnePulse_MspInit could be implemented in the user file
  12630. */
  12631. }
  12632. 8005214: bf00 nop
  12633. 8005216: 370c adds r7, #12
  12634. 8005218: 46bd mov sp, r7
  12635. 800521a: bc80 pop {r7}
  12636. 800521c: 4770 bx lr
  12637. 0800521e <HAL_TIM_IRQHandler>:
  12638. * @brief This function handles TIM interrupts requests.
  12639. * @param htim TIM handle
  12640. * @retval None
  12641. */
  12642. void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
  12643. {
  12644. 800521e: b580 push {r7, lr}
  12645. 8005220: b082 sub sp, #8
  12646. 8005222: af00 add r7, sp, #0
  12647. 8005224: 6078 str r0, [r7, #4]
  12648. /* Capture compare 1 event */
  12649. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET)
  12650. 8005226: 687b ldr r3, [r7, #4]
  12651. 8005228: 681b ldr r3, [r3, #0]
  12652. 800522a: 691b ldr r3, [r3, #16]
  12653. 800522c: f003 0302 and.w r3, r3, #2
  12654. 8005230: 2b02 cmp r3, #2
  12655. 8005232: d122 bne.n 800527a <HAL_TIM_IRQHandler+0x5c>
  12656. {
  12657. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET)
  12658. 8005234: 687b ldr r3, [r7, #4]
  12659. 8005236: 681b ldr r3, [r3, #0]
  12660. 8005238: 68db ldr r3, [r3, #12]
  12661. 800523a: f003 0302 and.w r3, r3, #2
  12662. 800523e: 2b02 cmp r3, #2
  12663. 8005240: d11b bne.n 800527a <HAL_TIM_IRQHandler+0x5c>
  12664. {
  12665. {
  12666. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1);
  12667. 8005242: 687b ldr r3, [r7, #4]
  12668. 8005244: 681b ldr r3, [r3, #0]
  12669. 8005246: f06f 0202 mvn.w r2, #2
  12670. 800524a: 611a str r2, [r3, #16]
  12671. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
  12672. 800524c: 687b ldr r3, [r7, #4]
  12673. 800524e: 2201 movs r2, #1
  12674. 8005250: 761a strb r2, [r3, #24]
  12675. /* Input capture event */
  12676. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
  12677. 8005252: 687b ldr r3, [r7, #4]
  12678. 8005254: 681b ldr r3, [r3, #0]
  12679. 8005256: 699b ldr r3, [r3, #24]
  12680. 8005258: f003 0303 and.w r3, r3, #3
  12681. 800525c: 2b00 cmp r3, #0
  12682. 800525e: d003 beq.n 8005268 <HAL_TIM_IRQHandler+0x4a>
  12683. {
  12684. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12685. htim->IC_CaptureCallback(htim);
  12686. #else
  12687. HAL_TIM_IC_CaptureCallback(htim);
  12688. 8005260: 6878 ldr r0, [r7, #4]
  12689. 8005262: f000 fa86 bl 8005772 <HAL_TIM_IC_CaptureCallback>
  12690. 8005266: e005 b.n 8005274 <HAL_TIM_IRQHandler+0x56>
  12691. {
  12692. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12693. htim->OC_DelayElapsedCallback(htim);
  12694. htim->PWM_PulseFinishedCallback(htim);
  12695. #else
  12696. HAL_TIM_OC_DelayElapsedCallback(htim);
  12697. 8005268: 6878 ldr r0, [r7, #4]
  12698. 800526a: f000 fa79 bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
  12699. HAL_TIM_PWM_PulseFinishedCallback(htim);
  12700. 800526e: 6878 ldr r0, [r7, #4]
  12701. 8005270: f000 fa88 bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
  12702. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12703. }
  12704. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  12705. 8005274: 687b ldr r3, [r7, #4]
  12706. 8005276: 2200 movs r2, #0
  12707. 8005278: 761a strb r2, [r3, #24]
  12708. }
  12709. }
  12710. }
  12711. /* Capture compare 2 event */
  12712. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET)
  12713. 800527a: 687b ldr r3, [r7, #4]
  12714. 800527c: 681b ldr r3, [r3, #0]
  12715. 800527e: 691b ldr r3, [r3, #16]
  12716. 8005280: f003 0304 and.w r3, r3, #4
  12717. 8005284: 2b04 cmp r3, #4
  12718. 8005286: d122 bne.n 80052ce <HAL_TIM_IRQHandler+0xb0>
  12719. {
  12720. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET)
  12721. 8005288: 687b ldr r3, [r7, #4]
  12722. 800528a: 681b ldr r3, [r3, #0]
  12723. 800528c: 68db ldr r3, [r3, #12]
  12724. 800528e: f003 0304 and.w r3, r3, #4
  12725. 8005292: 2b04 cmp r3, #4
  12726. 8005294: d11b bne.n 80052ce <HAL_TIM_IRQHandler+0xb0>
  12727. {
  12728. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2);
  12729. 8005296: 687b ldr r3, [r7, #4]
  12730. 8005298: 681b ldr r3, [r3, #0]
  12731. 800529a: f06f 0204 mvn.w r2, #4
  12732. 800529e: 611a str r2, [r3, #16]
  12733. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
  12734. 80052a0: 687b ldr r3, [r7, #4]
  12735. 80052a2: 2202 movs r2, #2
  12736. 80052a4: 761a strb r2, [r3, #24]
  12737. /* Input capture event */
  12738. if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
  12739. 80052a6: 687b ldr r3, [r7, #4]
  12740. 80052a8: 681b ldr r3, [r3, #0]
  12741. 80052aa: 699b ldr r3, [r3, #24]
  12742. 80052ac: f403 7340 and.w r3, r3, #768 ; 0x300
  12743. 80052b0: 2b00 cmp r3, #0
  12744. 80052b2: d003 beq.n 80052bc <HAL_TIM_IRQHandler+0x9e>
  12745. {
  12746. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12747. htim->IC_CaptureCallback(htim);
  12748. #else
  12749. HAL_TIM_IC_CaptureCallback(htim);
  12750. 80052b4: 6878 ldr r0, [r7, #4]
  12751. 80052b6: f000 fa5c bl 8005772 <HAL_TIM_IC_CaptureCallback>
  12752. 80052ba: e005 b.n 80052c8 <HAL_TIM_IRQHandler+0xaa>
  12753. {
  12754. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12755. htim->OC_DelayElapsedCallback(htim);
  12756. htim->PWM_PulseFinishedCallback(htim);
  12757. #else
  12758. HAL_TIM_OC_DelayElapsedCallback(htim);
  12759. 80052bc: 6878 ldr r0, [r7, #4]
  12760. 80052be: f000 fa4f bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
  12761. HAL_TIM_PWM_PulseFinishedCallback(htim);
  12762. 80052c2: 6878 ldr r0, [r7, #4]
  12763. 80052c4: f000 fa5e bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
  12764. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12765. }
  12766. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  12767. 80052c8: 687b ldr r3, [r7, #4]
  12768. 80052ca: 2200 movs r2, #0
  12769. 80052cc: 761a strb r2, [r3, #24]
  12770. }
  12771. }
  12772. /* Capture compare 3 event */
  12773. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET)
  12774. 80052ce: 687b ldr r3, [r7, #4]
  12775. 80052d0: 681b ldr r3, [r3, #0]
  12776. 80052d2: 691b ldr r3, [r3, #16]
  12777. 80052d4: f003 0308 and.w r3, r3, #8
  12778. 80052d8: 2b08 cmp r3, #8
  12779. 80052da: d122 bne.n 8005322 <HAL_TIM_IRQHandler+0x104>
  12780. {
  12781. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET)
  12782. 80052dc: 687b ldr r3, [r7, #4]
  12783. 80052de: 681b ldr r3, [r3, #0]
  12784. 80052e0: 68db ldr r3, [r3, #12]
  12785. 80052e2: f003 0308 and.w r3, r3, #8
  12786. 80052e6: 2b08 cmp r3, #8
  12787. 80052e8: d11b bne.n 8005322 <HAL_TIM_IRQHandler+0x104>
  12788. {
  12789. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3);
  12790. 80052ea: 687b ldr r3, [r7, #4]
  12791. 80052ec: 681b ldr r3, [r3, #0]
  12792. 80052ee: f06f 0208 mvn.w r2, #8
  12793. 80052f2: 611a str r2, [r3, #16]
  12794. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
  12795. 80052f4: 687b ldr r3, [r7, #4]
  12796. 80052f6: 2204 movs r2, #4
  12797. 80052f8: 761a strb r2, [r3, #24]
  12798. /* Input capture event */
  12799. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
  12800. 80052fa: 687b ldr r3, [r7, #4]
  12801. 80052fc: 681b ldr r3, [r3, #0]
  12802. 80052fe: 69db ldr r3, [r3, #28]
  12803. 8005300: f003 0303 and.w r3, r3, #3
  12804. 8005304: 2b00 cmp r3, #0
  12805. 8005306: d003 beq.n 8005310 <HAL_TIM_IRQHandler+0xf2>
  12806. {
  12807. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12808. htim->IC_CaptureCallback(htim);
  12809. #else
  12810. HAL_TIM_IC_CaptureCallback(htim);
  12811. 8005308: 6878 ldr r0, [r7, #4]
  12812. 800530a: f000 fa32 bl 8005772 <HAL_TIM_IC_CaptureCallback>
  12813. 800530e: e005 b.n 800531c <HAL_TIM_IRQHandler+0xfe>
  12814. {
  12815. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12816. htim->OC_DelayElapsedCallback(htim);
  12817. htim->PWM_PulseFinishedCallback(htim);
  12818. #else
  12819. HAL_TIM_OC_DelayElapsedCallback(htim);
  12820. 8005310: 6878 ldr r0, [r7, #4]
  12821. 8005312: f000 fa25 bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
  12822. HAL_TIM_PWM_PulseFinishedCallback(htim);
  12823. 8005316: 6878 ldr r0, [r7, #4]
  12824. 8005318: f000 fa34 bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
  12825. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12826. }
  12827. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  12828. 800531c: 687b ldr r3, [r7, #4]
  12829. 800531e: 2200 movs r2, #0
  12830. 8005320: 761a strb r2, [r3, #24]
  12831. }
  12832. }
  12833. /* Capture compare 4 event */
  12834. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET)
  12835. 8005322: 687b ldr r3, [r7, #4]
  12836. 8005324: 681b ldr r3, [r3, #0]
  12837. 8005326: 691b ldr r3, [r3, #16]
  12838. 8005328: f003 0310 and.w r3, r3, #16
  12839. 800532c: 2b10 cmp r3, #16
  12840. 800532e: d122 bne.n 8005376 <HAL_TIM_IRQHandler+0x158>
  12841. {
  12842. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET)
  12843. 8005330: 687b ldr r3, [r7, #4]
  12844. 8005332: 681b ldr r3, [r3, #0]
  12845. 8005334: 68db ldr r3, [r3, #12]
  12846. 8005336: f003 0310 and.w r3, r3, #16
  12847. 800533a: 2b10 cmp r3, #16
  12848. 800533c: d11b bne.n 8005376 <HAL_TIM_IRQHandler+0x158>
  12849. {
  12850. __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4);
  12851. 800533e: 687b ldr r3, [r7, #4]
  12852. 8005340: 681b ldr r3, [r3, #0]
  12853. 8005342: f06f 0210 mvn.w r2, #16
  12854. 8005346: 611a str r2, [r3, #16]
  12855. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
  12856. 8005348: 687b ldr r3, [r7, #4]
  12857. 800534a: 2208 movs r2, #8
  12858. 800534c: 761a strb r2, [r3, #24]
  12859. /* Input capture event */
  12860. if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
  12861. 800534e: 687b ldr r3, [r7, #4]
  12862. 8005350: 681b ldr r3, [r3, #0]
  12863. 8005352: 69db ldr r3, [r3, #28]
  12864. 8005354: f403 7340 and.w r3, r3, #768 ; 0x300
  12865. 8005358: 2b00 cmp r3, #0
  12866. 800535a: d003 beq.n 8005364 <HAL_TIM_IRQHandler+0x146>
  12867. {
  12868. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12869. htim->IC_CaptureCallback(htim);
  12870. #else
  12871. HAL_TIM_IC_CaptureCallback(htim);
  12872. 800535c: 6878 ldr r0, [r7, #4]
  12873. 800535e: f000 fa08 bl 8005772 <HAL_TIM_IC_CaptureCallback>
  12874. 8005362: e005 b.n 8005370 <HAL_TIM_IRQHandler+0x152>
  12875. {
  12876. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12877. htim->OC_DelayElapsedCallback(htim);
  12878. htim->PWM_PulseFinishedCallback(htim);
  12879. #else
  12880. HAL_TIM_OC_DelayElapsedCallback(htim);
  12881. 8005364: 6878 ldr r0, [r7, #4]
  12882. 8005366: f000 f9fb bl 8005760 <HAL_TIM_OC_DelayElapsedCallback>
  12883. HAL_TIM_PWM_PulseFinishedCallback(htim);
  12884. 800536a: 6878 ldr r0, [r7, #4]
  12885. 800536c: f000 fa0a bl 8005784 <HAL_TIM_PWM_PulseFinishedCallback>
  12886. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12887. }
  12888. htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
  12889. 8005370: 687b ldr r3, [r7, #4]
  12890. 8005372: 2200 movs r2, #0
  12891. 8005374: 761a strb r2, [r3, #24]
  12892. }
  12893. }
  12894. /* TIM Update event */
  12895. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET)
  12896. 8005376: 687b ldr r3, [r7, #4]
  12897. 8005378: 681b ldr r3, [r3, #0]
  12898. 800537a: 691b ldr r3, [r3, #16]
  12899. 800537c: f003 0301 and.w r3, r3, #1
  12900. 8005380: 2b01 cmp r3, #1
  12901. 8005382: d10e bne.n 80053a2 <HAL_TIM_IRQHandler+0x184>
  12902. {
  12903. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET)
  12904. 8005384: 687b ldr r3, [r7, #4]
  12905. 8005386: 681b ldr r3, [r3, #0]
  12906. 8005388: 68db ldr r3, [r3, #12]
  12907. 800538a: f003 0301 and.w r3, r3, #1
  12908. 800538e: 2b01 cmp r3, #1
  12909. 8005390: d107 bne.n 80053a2 <HAL_TIM_IRQHandler+0x184>
  12910. {
  12911. __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE);
  12912. 8005392: 687b ldr r3, [r7, #4]
  12913. 8005394: 681b ldr r3, [r3, #0]
  12914. 8005396: f06f 0201 mvn.w r2, #1
  12915. 800539a: 611a str r2, [r3, #16]
  12916. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12917. htim->PeriodElapsedCallback(htim);
  12918. #else
  12919. HAL_TIM_PeriodElapsedCallback(htim);
  12920. 800539c: 6878 ldr r0, [r7, #4]
  12921. 800539e: f7fb fe39 bl 8001014 <HAL_TIM_PeriodElapsedCallback>
  12922. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12923. }
  12924. }
  12925. /* TIM Trigger detection event */
  12926. if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET)
  12927. 80053a2: 687b ldr r3, [r7, #4]
  12928. 80053a4: 681b ldr r3, [r3, #0]
  12929. 80053a6: 691b ldr r3, [r3, #16]
  12930. 80053a8: f003 0340 and.w r3, r3, #64 ; 0x40
  12931. 80053ac: 2b40 cmp r3, #64 ; 0x40
  12932. 80053ae: d10e bne.n 80053ce <HAL_TIM_IRQHandler+0x1b0>
  12933. {
  12934. if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET)
  12935. 80053b0: 687b ldr r3, [r7, #4]
  12936. 80053b2: 681b ldr r3, [r3, #0]
  12937. 80053b4: 68db ldr r3, [r3, #12]
  12938. 80053b6: f003 0340 and.w r3, r3, #64 ; 0x40
  12939. 80053ba: 2b40 cmp r3, #64 ; 0x40
  12940. 80053bc: d107 bne.n 80053ce <HAL_TIM_IRQHandler+0x1b0>
  12941. {
  12942. __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER);
  12943. 80053be: 687b ldr r3, [r7, #4]
  12944. 80053c0: 681b ldr r3, [r3, #0]
  12945. 80053c2: f06f 0240 mvn.w r2, #64 ; 0x40
  12946. 80053c6: 611a str r2, [r3, #16]
  12947. #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
  12948. htim->TriggerCallback(htim);
  12949. #else
  12950. HAL_TIM_TriggerCallback(htim);
  12951. 80053c8: 6878 ldr r0, [r7, #4]
  12952. 80053ca: f000 f9e4 bl 8005796 <HAL_TIM_TriggerCallback>
  12953. #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
  12954. }
  12955. }
  12956. }
  12957. 80053ce: bf00 nop
  12958. 80053d0: 3708 adds r7, #8
  12959. 80053d2: 46bd mov sp, r7
  12960. 80053d4: bd80 pop {r7, pc}
  12961. ...
  12962. 080053d8 <HAL_TIM_PWM_ConfigChannel>:
  12963. * @retval HAL status
  12964. */
  12965. HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim,
  12966. TIM_OC_InitTypeDef *sConfig,
  12967. uint32_t Channel)
  12968. {
  12969. 80053d8: b580 push {r7, lr}
  12970. 80053da: b084 sub sp, #16
  12971. 80053dc: af00 add r7, sp, #0
  12972. 80053de: 60f8 str r0, [r7, #12]
  12973. 80053e0: 60b9 str r1, [r7, #8]
  12974. 80053e2: 607a str r2, [r7, #4]
  12975. assert_param(IS_TIM_PWM_MODE(sConfig->OCMode));
  12976. assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity));
  12977. assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode));
  12978. /* Process Locked */
  12979. __HAL_LOCK(htim);
  12980. 80053e4: 68fb ldr r3, [r7, #12]
  12981. 80053e6: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  12982. 80053ea: 2b01 cmp r3, #1
  12983. 80053ec: d101 bne.n 80053f2 <HAL_TIM_PWM_ConfigChannel+0x1a>
  12984. 80053ee: 2302 movs r3, #2
  12985. 80053f0: e0ac b.n 800554c <HAL_TIM_PWM_ConfigChannel+0x174>
  12986. 80053f2: 68fb ldr r3, [r7, #12]
  12987. 80053f4: 2201 movs r2, #1
  12988. 80053f6: f883 2038 strb.w r2, [r3, #56] ; 0x38
  12989. 80053fa: 687b ldr r3, [r7, #4]
  12990. 80053fc: 2b0c cmp r3, #12
  12991. 80053fe: f200 809f bhi.w 8005540 <HAL_TIM_PWM_ConfigChannel+0x168>
  12992. 8005402: a201 add r2, pc, #4 ; (adr r2, 8005408 <HAL_TIM_PWM_ConfigChannel+0x30>)
  12993. 8005404: f852 f023 ldr.w pc, [r2, r3, lsl #2]
  12994. 8005408: 0800543d .word 0x0800543d
  12995. 800540c: 08005541 .word 0x08005541
  12996. 8005410: 08005541 .word 0x08005541
  12997. 8005414: 08005541 .word 0x08005541
  12998. 8005418: 0800547d .word 0x0800547d
  12999. 800541c: 08005541 .word 0x08005541
  13000. 8005420: 08005541 .word 0x08005541
  13001. 8005424: 08005541 .word 0x08005541
  13002. 8005428: 080054bf .word 0x080054bf
  13003. 800542c: 08005541 .word 0x08005541
  13004. 8005430: 08005541 .word 0x08005541
  13005. 8005434: 08005541 .word 0x08005541
  13006. 8005438: 080054ff .word 0x080054ff
  13007. {
  13008. /* Check the parameters */
  13009. assert_param(IS_TIM_CC1_INSTANCE(htim->Instance));
  13010. /* Configure the Channel 1 in PWM mode */
  13011. TIM_OC1_SetConfig(htim->Instance, sConfig);
  13012. 800543c: 68fb ldr r3, [r7, #12]
  13013. 800543e: 681b ldr r3, [r3, #0]
  13014. 8005440: 68b9 ldr r1, [r7, #8]
  13015. 8005442: 4618 mov r0, r3
  13016. 8005444: f000 fa12 bl 800586c <TIM_OC1_SetConfig>
  13017. /* Set the Preload enable bit for channel1 */
  13018. htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE;
  13019. 8005448: 68fb ldr r3, [r7, #12]
  13020. 800544a: 681b ldr r3, [r3, #0]
  13021. 800544c: 699a ldr r2, [r3, #24]
  13022. 800544e: 68fb ldr r3, [r7, #12]
  13023. 8005450: 681b ldr r3, [r3, #0]
  13024. 8005452: f042 0208 orr.w r2, r2, #8
  13025. 8005456: 619a str r2, [r3, #24]
  13026. /* Configure the Output Fast mode */
  13027. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE;
  13028. 8005458: 68fb ldr r3, [r7, #12]
  13029. 800545a: 681b ldr r3, [r3, #0]
  13030. 800545c: 699a ldr r2, [r3, #24]
  13031. 800545e: 68fb ldr r3, [r7, #12]
  13032. 8005460: 681b ldr r3, [r3, #0]
  13033. 8005462: f022 0204 bic.w r2, r2, #4
  13034. 8005466: 619a str r2, [r3, #24]
  13035. htim->Instance->CCMR1 |= sConfig->OCFastMode;
  13036. 8005468: 68fb ldr r3, [r7, #12]
  13037. 800546a: 681b ldr r3, [r3, #0]
  13038. 800546c: 6999 ldr r1, [r3, #24]
  13039. 800546e: 68bb ldr r3, [r7, #8]
  13040. 8005470: 68da ldr r2, [r3, #12]
  13041. 8005472: 68fb ldr r3, [r7, #12]
  13042. 8005474: 681b ldr r3, [r3, #0]
  13043. 8005476: 430a orrs r2, r1
  13044. 8005478: 619a str r2, [r3, #24]
  13045. break;
  13046. 800547a: e062 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13047. {
  13048. /* Check the parameters */
  13049. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  13050. /* Configure the Channel 2 in PWM mode */
  13051. TIM_OC2_SetConfig(htim->Instance, sConfig);
  13052. 800547c: 68fb ldr r3, [r7, #12]
  13053. 800547e: 681b ldr r3, [r3, #0]
  13054. 8005480: 68b9 ldr r1, [r7, #8]
  13055. 8005482: 4618 mov r0, r3
  13056. 8005484: f000 fa2e bl 80058e4 <TIM_OC2_SetConfig>
  13057. /* Set the Preload enable bit for channel2 */
  13058. htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE;
  13059. 8005488: 68fb ldr r3, [r7, #12]
  13060. 800548a: 681b ldr r3, [r3, #0]
  13061. 800548c: 699a ldr r2, [r3, #24]
  13062. 800548e: 68fb ldr r3, [r7, #12]
  13063. 8005490: 681b ldr r3, [r3, #0]
  13064. 8005492: f442 6200 orr.w r2, r2, #2048 ; 0x800
  13065. 8005496: 619a str r2, [r3, #24]
  13066. /* Configure the Output Fast mode */
  13067. htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE;
  13068. 8005498: 68fb ldr r3, [r7, #12]
  13069. 800549a: 681b ldr r3, [r3, #0]
  13070. 800549c: 699a ldr r2, [r3, #24]
  13071. 800549e: 68fb ldr r3, [r7, #12]
  13072. 80054a0: 681b ldr r3, [r3, #0]
  13073. 80054a2: f422 6280 bic.w r2, r2, #1024 ; 0x400
  13074. 80054a6: 619a str r2, [r3, #24]
  13075. htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U;
  13076. 80054a8: 68fb ldr r3, [r7, #12]
  13077. 80054aa: 681b ldr r3, [r3, #0]
  13078. 80054ac: 6999 ldr r1, [r3, #24]
  13079. 80054ae: 68bb ldr r3, [r7, #8]
  13080. 80054b0: 68db ldr r3, [r3, #12]
  13081. 80054b2: 021a lsls r2, r3, #8
  13082. 80054b4: 68fb ldr r3, [r7, #12]
  13083. 80054b6: 681b ldr r3, [r3, #0]
  13084. 80054b8: 430a orrs r2, r1
  13085. 80054ba: 619a str r2, [r3, #24]
  13086. break;
  13087. 80054bc: e041 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13088. {
  13089. /* Check the parameters */
  13090. assert_param(IS_TIM_CC3_INSTANCE(htim->Instance));
  13091. /* Configure the Channel 3 in PWM mode */
  13092. TIM_OC3_SetConfig(htim->Instance, sConfig);
  13093. 80054be: 68fb ldr r3, [r7, #12]
  13094. 80054c0: 681b ldr r3, [r3, #0]
  13095. 80054c2: 68b9 ldr r1, [r7, #8]
  13096. 80054c4: 4618 mov r0, r3
  13097. 80054c6: f000 fa4b bl 8005960 <TIM_OC3_SetConfig>
  13098. /* Set the Preload enable bit for channel3 */
  13099. htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE;
  13100. 80054ca: 68fb ldr r3, [r7, #12]
  13101. 80054cc: 681b ldr r3, [r3, #0]
  13102. 80054ce: 69da ldr r2, [r3, #28]
  13103. 80054d0: 68fb ldr r3, [r7, #12]
  13104. 80054d2: 681b ldr r3, [r3, #0]
  13105. 80054d4: f042 0208 orr.w r2, r2, #8
  13106. 80054d8: 61da str r2, [r3, #28]
  13107. /* Configure the Output Fast mode */
  13108. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE;
  13109. 80054da: 68fb ldr r3, [r7, #12]
  13110. 80054dc: 681b ldr r3, [r3, #0]
  13111. 80054de: 69da ldr r2, [r3, #28]
  13112. 80054e0: 68fb ldr r3, [r7, #12]
  13113. 80054e2: 681b ldr r3, [r3, #0]
  13114. 80054e4: f022 0204 bic.w r2, r2, #4
  13115. 80054e8: 61da str r2, [r3, #28]
  13116. htim->Instance->CCMR2 |= sConfig->OCFastMode;
  13117. 80054ea: 68fb ldr r3, [r7, #12]
  13118. 80054ec: 681b ldr r3, [r3, #0]
  13119. 80054ee: 69d9 ldr r1, [r3, #28]
  13120. 80054f0: 68bb ldr r3, [r7, #8]
  13121. 80054f2: 68da ldr r2, [r3, #12]
  13122. 80054f4: 68fb ldr r3, [r7, #12]
  13123. 80054f6: 681b ldr r3, [r3, #0]
  13124. 80054f8: 430a orrs r2, r1
  13125. 80054fa: 61da str r2, [r3, #28]
  13126. break;
  13127. 80054fc: e021 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13128. {
  13129. /* Check the parameters */
  13130. assert_param(IS_TIM_CC4_INSTANCE(htim->Instance));
  13131. /* Configure the Channel 4 in PWM mode */
  13132. TIM_OC4_SetConfig(htim->Instance, sConfig);
  13133. 80054fe: 68fb ldr r3, [r7, #12]
  13134. 8005500: 681b ldr r3, [r3, #0]
  13135. 8005502: 68b9 ldr r1, [r7, #8]
  13136. 8005504: 4618 mov r0, r3
  13137. 8005506: f000 fa68 bl 80059da <TIM_OC4_SetConfig>
  13138. /* Set the Preload enable bit for channel4 */
  13139. htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE;
  13140. 800550a: 68fb ldr r3, [r7, #12]
  13141. 800550c: 681b ldr r3, [r3, #0]
  13142. 800550e: 69da ldr r2, [r3, #28]
  13143. 8005510: 68fb ldr r3, [r7, #12]
  13144. 8005512: 681b ldr r3, [r3, #0]
  13145. 8005514: f442 6200 orr.w r2, r2, #2048 ; 0x800
  13146. 8005518: 61da str r2, [r3, #28]
  13147. /* Configure the Output Fast mode */
  13148. htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE;
  13149. 800551a: 68fb ldr r3, [r7, #12]
  13150. 800551c: 681b ldr r3, [r3, #0]
  13151. 800551e: 69da ldr r2, [r3, #28]
  13152. 8005520: 68fb ldr r3, [r7, #12]
  13153. 8005522: 681b ldr r3, [r3, #0]
  13154. 8005524: f422 6280 bic.w r2, r2, #1024 ; 0x400
  13155. 8005528: 61da str r2, [r3, #28]
  13156. htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U;
  13157. 800552a: 68fb ldr r3, [r7, #12]
  13158. 800552c: 681b ldr r3, [r3, #0]
  13159. 800552e: 69d9 ldr r1, [r3, #28]
  13160. 8005530: 68bb ldr r3, [r7, #8]
  13161. 8005532: 68db ldr r3, [r3, #12]
  13162. 8005534: 021a lsls r2, r3, #8
  13163. 8005536: 68fb ldr r3, [r7, #12]
  13164. 8005538: 681b ldr r3, [r3, #0]
  13165. 800553a: 430a orrs r2, r1
  13166. 800553c: 61da str r2, [r3, #28]
  13167. break;
  13168. 800553e: e000 b.n 8005542 <HAL_TIM_PWM_ConfigChannel+0x16a>
  13169. }
  13170. default:
  13171. break;
  13172. 8005540: bf00 nop
  13173. }
  13174. __HAL_UNLOCK(htim);
  13175. 8005542: 68fb ldr r3, [r7, #12]
  13176. 8005544: 2200 movs r2, #0
  13177. 8005546: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13178. return HAL_OK;
  13179. 800554a: 2300 movs r3, #0
  13180. }
  13181. 800554c: 4618 mov r0, r3
  13182. 800554e: 3710 adds r7, #16
  13183. 8005550: 46bd mov sp, r7
  13184. 8005552: bd80 pop {r7, pc}
  13185. 08005554 <HAL_TIM_ConfigClockSource>:
  13186. * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
  13187. * contains the clock source information for the TIM peripheral.
  13188. * @retval HAL status
  13189. */
  13190. HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig)
  13191. {
  13192. 8005554: b580 push {r7, lr}
  13193. 8005556: b084 sub sp, #16
  13194. 8005558: af00 add r7, sp, #0
  13195. 800555a: 6078 str r0, [r7, #4]
  13196. 800555c: 6039 str r1, [r7, #0]
  13197. uint32_t tmpsmcr;
  13198. /* Process Locked */
  13199. __HAL_LOCK(htim);
  13200. 800555e: 687b ldr r3, [r7, #4]
  13201. 8005560: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  13202. 8005564: 2b01 cmp r3, #1
  13203. 8005566: d101 bne.n 800556c <HAL_TIM_ConfigClockSource+0x18>
  13204. 8005568: 2302 movs r3, #2
  13205. 800556a: e0b3 b.n 80056d4 <HAL_TIM_ConfigClockSource+0x180>
  13206. 800556c: 687b ldr r3, [r7, #4]
  13207. 800556e: 2201 movs r2, #1
  13208. 8005570: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13209. htim->State = HAL_TIM_STATE_BUSY;
  13210. 8005574: 687b ldr r3, [r7, #4]
  13211. 8005576: 2202 movs r2, #2
  13212. 8005578: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13213. /* Check the parameters */
  13214. assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
  13215. /* Reset the SMS, TS, ECE, ETPS and ETRF bits */
  13216. tmpsmcr = htim->Instance->SMCR;
  13217. 800557c: 687b ldr r3, [r7, #4]
  13218. 800557e: 681b ldr r3, [r3, #0]
  13219. 8005580: 689b ldr r3, [r3, #8]
  13220. 8005582: 60fb str r3, [r7, #12]
  13221. tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
  13222. 8005584: 68fb ldr r3, [r7, #12]
  13223. 8005586: f023 0377 bic.w r3, r3, #119 ; 0x77
  13224. 800558a: 60fb str r3, [r7, #12]
  13225. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  13226. 800558c: 68fb ldr r3, [r7, #12]
  13227. 800558e: f423 437f bic.w r3, r3, #65280 ; 0xff00
  13228. 8005592: 60fb str r3, [r7, #12]
  13229. htim->Instance->SMCR = tmpsmcr;
  13230. 8005594: 687b ldr r3, [r7, #4]
  13231. 8005596: 681b ldr r3, [r3, #0]
  13232. 8005598: 68fa ldr r2, [r7, #12]
  13233. 800559a: 609a str r2, [r3, #8]
  13234. switch (sClockSourceConfig->ClockSource)
  13235. 800559c: 683b ldr r3, [r7, #0]
  13236. 800559e: 681b ldr r3, [r3, #0]
  13237. 80055a0: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
  13238. 80055a4: d03e beq.n 8005624 <HAL_TIM_ConfigClockSource+0xd0>
  13239. 80055a6: f5b3 5f00 cmp.w r3, #8192 ; 0x2000
  13240. 80055aa: f200 8087 bhi.w 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13241. 80055ae: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  13242. 80055b2: f000 8085 beq.w 80056c0 <HAL_TIM_ConfigClockSource+0x16c>
  13243. 80055b6: f5b3 5f80 cmp.w r3, #4096 ; 0x1000
  13244. 80055ba: d87f bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13245. 80055bc: 2b70 cmp r3, #112 ; 0x70
  13246. 80055be: d01a beq.n 80055f6 <HAL_TIM_ConfigClockSource+0xa2>
  13247. 80055c0: 2b70 cmp r3, #112 ; 0x70
  13248. 80055c2: d87b bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13249. 80055c4: 2b60 cmp r3, #96 ; 0x60
  13250. 80055c6: d050 beq.n 800566a <HAL_TIM_ConfigClockSource+0x116>
  13251. 80055c8: 2b60 cmp r3, #96 ; 0x60
  13252. 80055ca: d877 bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13253. 80055cc: 2b50 cmp r3, #80 ; 0x50
  13254. 80055ce: d03c beq.n 800564a <HAL_TIM_ConfigClockSource+0xf6>
  13255. 80055d0: 2b50 cmp r3, #80 ; 0x50
  13256. 80055d2: d873 bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13257. 80055d4: 2b40 cmp r3, #64 ; 0x40
  13258. 80055d6: d058 beq.n 800568a <HAL_TIM_ConfigClockSource+0x136>
  13259. 80055d8: 2b40 cmp r3, #64 ; 0x40
  13260. 80055da: d86f bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13261. 80055dc: 2b30 cmp r3, #48 ; 0x30
  13262. 80055de: d064 beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
  13263. 80055e0: 2b30 cmp r3, #48 ; 0x30
  13264. 80055e2: d86b bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13265. 80055e4: 2b20 cmp r3, #32
  13266. 80055e6: d060 beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
  13267. 80055e8: 2b20 cmp r3, #32
  13268. 80055ea: d867 bhi.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13269. 80055ec: 2b00 cmp r3, #0
  13270. 80055ee: d05c beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
  13271. 80055f0: 2b10 cmp r3, #16
  13272. 80055f2: d05a beq.n 80056aa <HAL_TIM_ConfigClockSource+0x156>
  13273. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  13274. break;
  13275. }
  13276. default:
  13277. break;
  13278. 80055f4: e062 b.n 80056bc <HAL_TIM_ConfigClockSource+0x168>
  13279. TIM_ETR_SetConfig(htim->Instance,
  13280. 80055f6: 687b ldr r3, [r7, #4]
  13281. 80055f8: 6818 ldr r0, [r3, #0]
  13282. 80055fa: 683b ldr r3, [r7, #0]
  13283. 80055fc: 6899 ldr r1, [r3, #8]
  13284. 80055fe: 683b ldr r3, [r7, #0]
  13285. 8005600: 685a ldr r2, [r3, #4]
  13286. 8005602: 683b ldr r3, [r7, #0]
  13287. 8005604: 68db ldr r3, [r3, #12]
  13288. 8005606: f000 fb2b bl 8005c60 <TIM_ETR_SetConfig>
  13289. tmpsmcr = htim->Instance->SMCR;
  13290. 800560a: 687b ldr r3, [r7, #4]
  13291. 800560c: 681b ldr r3, [r3, #0]
  13292. 800560e: 689b ldr r3, [r3, #8]
  13293. 8005610: 60fb str r3, [r7, #12]
  13294. tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
  13295. 8005612: 68fb ldr r3, [r7, #12]
  13296. 8005614: f043 0377 orr.w r3, r3, #119 ; 0x77
  13297. 8005618: 60fb str r3, [r7, #12]
  13298. htim->Instance->SMCR = tmpsmcr;
  13299. 800561a: 687b ldr r3, [r7, #4]
  13300. 800561c: 681b ldr r3, [r3, #0]
  13301. 800561e: 68fa ldr r2, [r7, #12]
  13302. 8005620: 609a str r2, [r3, #8]
  13303. break;
  13304. 8005622: e04e b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
  13305. TIM_ETR_SetConfig(htim->Instance,
  13306. 8005624: 687b ldr r3, [r7, #4]
  13307. 8005626: 6818 ldr r0, [r3, #0]
  13308. 8005628: 683b ldr r3, [r7, #0]
  13309. 800562a: 6899 ldr r1, [r3, #8]
  13310. 800562c: 683b ldr r3, [r7, #0]
  13311. 800562e: 685a ldr r2, [r3, #4]
  13312. 8005630: 683b ldr r3, [r7, #0]
  13313. 8005632: 68db ldr r3, [r3, #12]
  13314. 8005634: f000 fb14 bl 8005c60 <TIM_ETR_SetConfig>
  13315. htim->Instance->SMCR |= TIM_SMCR_ECE;
  13316. 8005638: 687b ldr r3, [r7, #4]
  13317. 800563a: 681b ldr r3, [r3, #0]
  13318. 800563c: 689a ldr r2, [r3, #8]
  13319. 800563e: 687b ldr r3, [r7, #4]
  13320. 8005640: 681b ldr r3, [r3, #0]
  13321. 8005642: f442 4280 orr.w r2, r2, #16384 ; 0x4000
  13322. 8005646: 609a str r2, [r3, #8]
  13323. break;
  13324. 8005648: e03b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
  13325. TIM_TI1_ConfigInputStage(htim->Instance,
  13326. 800564a: 687b ldr r3, [r7, #4]
  13327. 800564c: 6818 ldr r0, [r3, #0]
  13328. 800564e: 683b ldr r3, [r7, #0]
  13329. 8005650: 6859 ldr r1, [r3, #4]
  13330. 8005652: 683b ldr r3, [r7, #0]
  13331. 8005654: 68db ldr r3, [r3, #12]
  13332. 8005656: 461a mov r2, r3
  13333. 8005658: f000 fa8b bl 8005b72 <TIM_TI1_ConfigInputStage>
  13334. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
  13335. 800565c: 687b ldr r3, [r7, #4]
  13336. 800565e: 681b ldr r3, [r3, #0]
  13337. 8005660: 2150 movs r1, #80 ; 0x50
  13338. 8005662: 4618 mov r0, r3
  13339. 8005664: f000 fae2 bl 8005c2c <TIM_ITRx_SetConfig>
  13340. break;
  13341. 8005668: e02b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
  13342. TIM_TI2_ConfigInputStage(htim->Instance,
  13343. 800566a: 687b ldr r3, [r7, #4]
  13344. 800566c: 6818 ldr r0, [r3, #0]
  13345. 800566e: 683b ldr r3, [r7, #0]
  13346. 8005670: 6859 ldr r1, [r3, #4]
  13347. 8005672: 683b ldr r3, [r7, #0]
  13348. 8005674: 68db ldr r3, [r3, #12]
  13349. 8005676: 461a mov r2, r3
  13350. 8005678: f000 faa9 bl 8005bce <TIM_TI2_ConfigInputStage>
  13351. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
  13352. 800567c: 687b ldr r3, [r7, #4]
  13353. 800567e: 681b ldr r3, [r3, #0]
  13354. 8005680: 2160 movs r1, #96 ; 0x60
  13355. 8005682: 4618 mov r0, r3
  13356. 8005684: f000 fad2 bl 8005c2c <TIM_ITRx_SetConfig>
  13357. break;
  13358. 8005688: e01b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
  13359. TIM_TI1_ConfigInputStage(htim->Instance,
  13360. 800568a: 687b ldr r3, [r7, #4]
  13361. 800568c: 6818 ldr r0, [r3, #0]
  13362. 800568e: 683b ldr r3, [r7, #0]
  13363. 8005690: 6859 ldr r1, [r3, #4]
  13364. 8005692: 683b ldr r3, [r7, #0]
  13365. 8005694: 68db ldr r3, [r3, #12]
  13366. 8005696: 461a mov r2, r3
  13367. 8005698: f000 fa6b bl 8005b72 <TIM_TI1_ConfigInputStage>
  13368. TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
  13369. 800569c: 687b ldr r3, [r7, #4]
  13370. 800569e: 681b ldr r3, [r3, #0]
  13371. 80056a0: 2140 movs r1, #64 ; 0x40
  13372. 80056a2: 4618 mov r0, r3
  13373. 80056a4: f000 fac2 bl 8005c2c <TIM_ITRx_SetConfig>
  13374. break;
  13375. 80056a8: e00b b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
  13376. TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
  13377. 80056aa: 687b ldr r3, [r7, #4]
  13378. 80056ac: 681a ldr r2, [r3, #0]
  13379. 80056ae: 683b ldr r3, [r7, #0]
  13380. 80056b0: 681b ldr r3, [r3, #0]
  13381. 80056b2: 4619 mov r1, r3
  13382. 80056b4: 4610 mov r0, r2
  13383. 80056b6: f000 fab9 bl 8005c2c <TIM_ITRx_SetConfig>
  13384. break;
  13385. 80056ba: e002 b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
  13386. break;
  13387. 80056bc: bf00 nop
  13388. 80056be: e000 b.n 80056c2 <HAL_TIM_ConfigClockSource+0x16e>
  13389. break;
  13390. 80056c0: bf00 nop
  13391. }
  13392. htim->State = HAL_TIM_STATE_READY;
  13393. 80056c2: 687b ldr r3, [r7, #4]
  13394. 80056c4: 2201 movs r2, #1
  13395. 80056c6: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13396. __HAL_UNLOCK(htim);
  13397. 80056ca: 687b ldr r3, [r7, #4]
  13398. 80056cc: 2200 movs r2, #0
  13399. 80056ce: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13400. return HAL_OK;
  13401. 80056d2: 2300 movs r3, #0
  13402. }
  13403. 80056d4: 4618 mov r0, r3
  13404. 80056d6: 3710 adds r7, #16
  13405. 80056d8: 46bd mov sp, r7
  13406. 80056da: bd80 pop {r7, pc}
  13407. 080056dc <HAL_TIM_SlaveConfigSynchro>:
  13408. * timer input or external trigger input) and the Slave mode
  13409. * (Disable, Reset, Gated, Trigger, External clock mode 1).
  13410. * @retval HAL status
  13411. */
  13412. HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig)
  13413. {
  13414. 80056dc: b580 push {r7, lr}
  13415. 80056de: b082 sub sp, #8
  13416. 80056e0: af00 add r7, sp, #0
  13417. 80056e2: 6078 str r0, [r7, #4]
  13418. 80056e4: 6039 str r1, [r7, #0]
  13419. /* Check the parameters */
  13420. assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance));
  13421. assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode));
  13422. assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger));
  13423. __HAL_LOCK(htim);
  13424. 80056e6: 687b ldr r3, [r7, #4]
  13425. 80056e8: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  13426. 80056ec: 2b01 cmp r3, #1
  13427. 80056ee: d101 bne.n 80056f4 <HAL_TIM_SlaveConfigSynchro+0x18>
  13428. 80056f0: 2302 movs r3, #2
  13429. 80056f2: e031 b.n 8005758 <HAL_TIM_SlaveConfigSynchro+0x7c>
  13430. 80056f4: 687b ldr r3, [r7, #4]
  13431. 80056f6: 2201 movs r2, #1
  13432. 80056f8: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13433. htim->State = HAL_TIM_STATE_BUSY;
  13434. 80056fc: 687b ldr r3, [r7, #4]
  13435. 80056fe: 2202 movs r2, #2
  13436. 8005700: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13437. if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK)
  13438. 8005704: 6839 ldr r1, [r7, #0]
  13439. 8005706: 6878 ldr r0, [r7, #4]
  13440. 8005708: f000 f9a5 bl 8005a56 <TIM_SlaveTimer_SetConfig>
  13441. 800570c: 4603 mov r3, r0
  13442. 800570e: 2b00 cmp r3, #0
  13443. 8005710: d009 beq.n 8005726 <HAL_TIM_SlaveConfigSynchro+0x4a>
  13444. {
  13445. htim->State = HAL_TIM_STATE_READY;
  13446. 8005712: 687b ldr r3, [r7, #4]
  13447. 8005714: 2201 movs r2, #1
  13448. 8005716: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13449. __HAL_UNLOCK(htim);
  13450. 800571a: 687b ldr r3, [r7, #4]
  13451. 800571c: 2200 movs r2, #0
  13452. 800571e: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13453. return HAL_ERROR;
  13454. 8005722: 2301 movs r3, #1
  13455. 8005724: e018 b.n 8005758 <HAL_TIM_SlaveConfigSynchro+0x7c>
  13456. }
  13457. /* Disable Trigger Interrupt */
  13458. __HAL_TIM_DISABLE_IT(htim, TIM_IT_TRIGGER);
  13459. 8005726: 687b ldr r3, [r7, #4]
  13460. 8005728: 681b ldr r3, [r3, #0]
  13461. 800572a: 68da ldr r2, [r3, #12]
  13462. 800572c: 687b ldr r3, [r7, #4]
  13463. 800572e: 681b ldr r3, [r3, #0]
  13464. 8005730: f022 0240 bic.w r2, r2, #64 ; 0x40
  13465. 8005734: 60da str r2, [r3, #12]
  13466. /* Disable Trigger DMA request */
  13467. __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER);
  13468. 8005736: 687b ldr r3, [r7, #4]
  13469. 8005738: 681b ldr r3, [r3, #0]
  13470. 800573a: 68da ldr r2, [r3, #12]
  13471. 800573c: 687b ldr r3, [r7, #4]
  13472. 800573e: 681b ldr r3, [r3, #0]
  13473. 8005740: f422 4280 bic.w r2, r2, #16384 ; 0x4000
  13474. 8005744: 60da str r2, [r3, #12]
  13475. htim->State = HAL_TIM_STATE_READY;
  13476. 8005746: 687b ldr r3, [r7, #4]
  13477. 8005748: 2201 movs r2, #1
  13478. 800574a: f883 2039 strb.w r2, [r3, #57] ; 0x39
  13479. __HAL_UNLOCK(htim);
  13480. 800574e: 687b ldr r3, [r7, #4]
  13481. 8005750: 2200 movs r2, #0
  13482. 8005752: f883 2038 strb.w r2, [r3, #56] ; 0x38
  13483. return HAL_OK;
  13484. 8005756: 2300 movs r3, #0
  13485. }
  13486. 8005758: 4618 mov r0, r3
  13487. 800575a: 3708 adds r7, #8
  13488. 800575c: 46bd mov sp, r7
  13489. 800575e: bd80 pop {r7, pc}
  13490. 08005760 <HAL_TIM_OC_DelayElapsedCallback>:
  13491. * @brief Output Compare callback in non-blocking mode
  13492. * @param htim TIM OC handle
  13493. * @retval None
  13494. */
  13495. __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
  13496. {
  13497. 8005760: b480 push {r7}
  13498. 8005762: b083 sub sp, #12
  13499. 8005764: af00 add r7, sp, #0
  13500. 8005766: 6078 str r0, [r7, #4]
  13501. UNUSED(htim);
  13502. /* NOTE : This function should not be modified, when the callback is needed,
  13503. the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
  13504. */
  13505. }
  13506. 8005768: bf00 nop
  13507. 800576a: 370c adds r7, #12
  13508. 800576c: 46bd mov sp, r7
  13509. 800576e: bc80 pop {r7}
  13510. 8005770: 4770 bx lr
  13511. 08005772 <HAL_TIM_IC_CaptureCallback>:
  13512. * @brief Input Capture callback in non-blocking mode
  13513. * @param htim TIM IC handle
  13514. * @retval None
  13515. */
  13516. __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
  13517. {
  13518. 8005772: b480 push {r7}
  13519. 8005774: b083 sub sp, #12
  13520. 8005776: af00 add r7, sp, #0
  13521. 8005778: 6078 str r0, [r7, #4]
  13522. UNUSED(htim);
  13523. /* NOTE : This function should not be modified, when the callback is needed,
  13524. the HAL_TIM_IC_CaptureCallback could be implemented in the user file
  13525. */
  13526. }
  13527. 800577a: bf00 nop
  13528. 800577c: 370c adds r7, #12
  13529. 800577e: 46bd mov sp, r7
  13530. 8005780: bc80 pop {r7}
  13531. 8005782: 4770 bx lr
  13532. 08005784 <HAL_TIM_PWM_PulseFinishedCallback>:
  13533. * @brief PWM Pulse finished callback in non-blocking mode
  13534. * @param htim TIM handle
  13535. * @retval None
  13536. */
  13537. __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
  13538. {
  13539. 8005784: b480 push {r7}
  13540. 8005786: b083 sub sp, #12
  13541. 8005788: af00 add r7, sp, #0
  13542. 800578a: 6078 str r0, [r7, #4]
  13543. UNUSED(htim);
  13544. /* NOTE : This function should not be modified, when the callback is needed,
  13545. the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
  13546. */
  13547. }
  13548. 800578c: bf00 nop
  13549. 800578e: 370c adds r7, #12
  13550. 8005790: 46bd mov sp, r7
  13551. 8005792: bc80 pop {r7}
  13552. 8005794: 4770 bx lr
  13553. 08005796 <HAL_TIM_TriggerCallback>:
  13554. * @brief Hall Trigger detection callback in non-blocking mode
  13555. * @param htim TIM handle
  13556. * @retval None
  13557. */
  13558. __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
  13559. {
  13560. 8005796: b480 push {r7}
  13561. 8005798: b083 sub sp, #12
  13562. 800579a: af00 add r7, sp, #0
  13563. 800579c: 6078 str r0, [r7, #4]
  13564. UNUSED(htim);
  13565. /* NOTE : This function should not be modified, when the callback is needed,
  13566. the HAL_TIM_TriggerCallback could be implemented in the user file
  13567. */
  13568. }
  13569. 800579e: bf00 nop
  13570. 80057a0: 370c adds r7, #12
  13571. 80057a2: 46bd mov sp, r7
  13572. 80057a4: bc80 pop {r7}
  13573. 80057a6: 4770 bx lr
  13574. 080057a8 <TIM_Base_SetConfig>:
  13575. * @param TIMx TIM peripheral
  13576. * @param Structure TIM Base configuration structure
  13577. * @retval None
  13578. */
  13579. static void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure)
  13580. {
  13581. 80057a8: b480 push {r7}
  13582. 80057aa: b085 sub sp, #20
  13583. 80057ac: af00 add r7, sp, #0
  13584. 80057ae: 6078 str r0, [r7, #4]
  13585. 80057b0: 6039 str r1, [r7, #0]
  13586. uint32_t tmpcr1;
  13587. tmpcr1 = TIMx->CR1;
  13588. 80057b2: 687b ldr r3, [r7, #4]
  13589. 80057b4: 681b ldr r3, [r3, #0]
  13590. 80057b6: 60fb str r3, [r7, #12]
  13591. /* Set TIM Time Base Unit parameters ---------------------------------------*/
  13592. if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
  13593. 80057b8: 687b ldr r3, [r7, #4]
  13594. 80057ba: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  13595. 80057be: d007 beq.n 80057d0 <TIM_Base_SetConfig+0x28>
  13596. 80057c0: 687b ldr r3, [r7, #4]
  13597. 80057c2: 4a25 ldr r2, [pc, #148] ; (8005858 <TIM_Base_SetConfig+0xb0>)
  13598. 80057c4: 4293 cmp r3, r2
  13599. 80057c6: d003 beq.n 80057d0 <TIM_Base_SetConfig+0x28>
  13600. 80057c8: 687b ldr r3, [r7, #4]
  13601. 80057ca: 4a24 ldr r2, [pc, #144] ; (800585c <TIM_Base_SetConfig+0xb4>)
  13602. 80057cc: 4293 cmp r3, r2
  13603. 80057ce: d108 bne.n 80057e2 <TIM_Base_SetConfig+0x3a>
  13604. {
  13605. /* Select the Counter Mode */
  13606. tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
  13607. 80057d0: 68fb ldr r3, [r7, #12]
  13608. 80057d2: f023 0370 bic.w r3, r3, #112 ; 0x70
  13609. 80057d6: 60fb str r3, [r7, #12]
  13610. tmpcr1 |= Structure->CounterMode;
  13611. 80057d8: 683b ldr r3, [r7, #0]
  13612. 80057da: 685b ldr r3, [r3, #4]
  13613. 80057dc: 68fa ldr r2, [r7, #12]
  13614. 80057de: 4313 orrs r3, r2
  13615. 80057e0: 60fb str r3, [r7, #12]
  13616. }
  13617. if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
  13618. 80057e2: 687b ldr r3, [r7, #4]
  13619. 80057e4: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  13620. 80057e8: d013 beq.n 8005812 <TIM_Base_SetConfig+0x6a>
  13621. 80057ea: 687b ldr r3, [r7, #4]
  13622. 80057ec: 4a1a ldr r2, [pc, #104] ; (8005858 <TIM_Base_SetConfig+0xb0>)
  13623. 80057ee: 4293 cmp r3, r2
  13624. 80057f0: d00f beq.n 8005812 <TIM_Base_SetConfig+0x6a>
  13625. 80057f2: 687b ldr r3, [r7, #4]
  13626. 80057f4: 4a19 ldr r2, [pc, #100] ; (800585c <TIM_Base_SetConfig+0xb4>)
  13627. 80057f6: 4293 cmp r3, r2
  13628. 80057f8: d00b beq.n 8005812 <TIM_Base_SetConfig+0x6a>
  13629. 80057fa: 687b ldr r3, [r7, #4]
  13630. 80057fc: 4a18 ldr r2, [pc, #96] ; (8005860 <TIM_Base_SetConfig+0xb8>)
  13631. 80057fe: 4293 cmp r3, r2
  13632. 8005800: d007 beq.n 8005812 <TIM_Base_SetConfig+0x6a>
  13633. 8005802: 687b ldr r3, [r7, #4]
  13634. 8005804: 4a17 ldr r2, [pc, #92] ; (8005864 <TIM_Base_SetConfig+0xbc>)
  13635. 8005806: 4293 cmp r3, r2
  13636. 8005808: d003 beq.n 8005812 <TIM_Base_SetConfig+0x6a>
  13637. 800580a: 687b ldr r3, [r7, #4]
  13638. 800580c: 4a16 ldr r2, [pc, #88] ; (8005868 <TIM_Base_SetConfig+0xc0>)
  13639. 800580e: 4293 cmp r3, r2
  13640. 8005810: d108 bne.n 8005824 <TIM_Base_SetConfig+0x7c>
  13641. {
  13642. /* Set the clock division */
  13643. tmpcr1 &= ~TIM_CR1_CKD;
  13644. 8005812: 68fb ldr r3, [r7, #12]
  13645. 8005814: f423 7340 bic.w r3, r3, #768 ; 0x300
  13646. 8005818: 60fb str r3, [r7, #12]
  13647. tmpcr1 |= (uint32_t)Structure->ClockDivision;
  13648. 800581a: 683b ldr r3, [r7, #0]
  13649. 800581c: 68db ldr r3, [r3, #12]
  13650. 800581e: 68fa ldr r2, [r7, #12]
  13651. 8005820: 4313 orrs r3, r2
  13652. 8005822: 60fb str r3, [r7, #12]
  13653. }
  13654. /* Set the auto-reload preload */
  13655. MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
  13656. 8005824: 68fb ldr r3, [r7, #12]
  13657. 8005826: f023 0280 bic.w r2, r3, #128 ; 0x80
  13658. 800582a: 683b ldr r3, [r7, #0]
  13659. 800582c: 691b ldr r3, [r3, #16]
  13660. 800582e: 4313 orrs r3, r2
  13661. 8005830: 60fb str r3, [r7, #12]
  13662. TIMx->CR1 = tmpcr1;
  13663. 8005832: 687b ldr r3, [r7, #4]
  13664. 8005834: 68fa ldr r2, [r7, #12]
  13665. 8005836: 601a str r2, [r3, #0]
  13666. /* Set the Autoreload value */
  13667. TIMx->ARR = (uint32_t)Structure->Period ;
  13668. 8005838: 683b ldr r3, [r7, #0]
  13669. 800583a: 689a ldr r2, [r3, #8]
  13670. 800583c: 687b ldr r3, [r7, #4]
  13671. 800583e: 62da str r2, [r3, #44] ; 0x2c
  13672. /* Set the Prescaler value */
  13673. TIMx->PSC = Structure->Prescaler;
  13674. 8005840: 683b ldr r3, [r7, #0]
  13675. 8005842: 681a ldr r2, [r3, #0]
  13676. 8005844: 687b ldr r3, [r7, #4]
  13677. 8005846: 629a str r2, [r3, #40] ; 0x28
  13678. /* Generate an update event to reload the Prescaler
  13679. and the repetition counter (only for advanced timer) value immediately */
  13680. TIMx->EGR = TIM_EGR_UG;
  13681. 8005848: 687b ldr r3, [r7, #4]
  13682. 800584a: 2201 movs r2, #1
  13683. 800584c: 615a str r2, [r3, #20]
  13684. }
  13685. 800584e: bf00 nop
  13686. 8005850: 3714 adds r7, #20
  13687. 8005852: 46bd mov sp, r7
  13688. 8005854: bc80 pop {r7}
  13689. 8005856: 4770 bx lr
  13690. 8005858: 40000400 .word 0x40000400
  13691. 800585c: 40000800 .word 0x40000800
  13692. 8005860: 40010800 .word 0x40010800
  13693. 8005864: 40010c00 .word 0x40010c00
  13694. 8005868: 40011000 .word 0x40011000
  13695. 0800586c <TIM_OC1_SetConfig>:
  13696. * @param TIMx to select the TIM peripheral
  13697. * @param OC_Config The output configuration structure
  13698. * @retval None
  13699. */
  13700. static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  13701. {
  13702. 800586c: b480 push {r7}
  13703. 800586e: b087 sub sp, #28
  13704. 8005870: af00 add r7, sp, #0
  13705. 8005872: 6078 str r0, [r7, #4]
  13706. 8005874: 6039 str r1, [r7, #0]
  13707. uint32_t tmpccmrx;
  13708. uint32_t tmpccer;
  13709. uint32_t tmpcr2;
  13710. /* Disable the Channel 1: Reset the CC1E Bit */
  13711. TIMx->CCER &= ~TIM_CCER_CC1E;
  13712. 8005876: 687b ldr r3, [r7, #4]
  13713. 8005878: 6a1b ldr r3, [r3, #32]
  13714. 800587a: f023 0201 bic.w r2, r3, #1
  13715. 800587e: 687b ldr r3, [r7, #4]
  13716. 8005880: 621a str r2, [r3, #32]
  13717. /* Get the TIMx CCER register value */
  13718. tmpccer = TIMx->CCER;
  13719. 8005882: 687b ldr r3, [r7, #4]
  13720. 8005884: 6a1b ldr r3, [r3, #32]
  13721. 8005886: 617b str r3, [r7, #20]
  13722. /* Get the TIMx CR2 register value */
  13723. tmpcr2 = TIMx->CR2;
  13724. 8005888: 687b ldr r3, [r7, #4]
  13725. 800588a: 685b ldr r3, [r3, #4]
  13726. 800588c: 613b str r3, [r7, #16]
  13727. /* Get the TIMx CCMR1 register value */
  13728. tmpccmrx = TIMx->CCMR1;
  13729. 800588e: 687b ldr r3, [r7, #4]
  13730. 8005890: 699b ldr r3, [r3, #24]
  13731. 8005892: 60fb str r3, [r7, #12]
  13732. /* Reset the Output Compare Mode Bits */
  13733. tmpccmrx &= ~TIM_CCMR1_OC1M;
  13734. 8005894: 68fb ldr r3, [r7, #12]
  13735. 8005896: f023 0370 bic.w r3, r3, #112 ; 0x70
  13736. 800589a: 60fb str r3, [r7, #12]
  13737. tmpccmrx &= ~TIM_CCMR1_CC1S;
  13738. 800589c: 68fb ldr r3, [r7, #12]
  13739. 800589e: f023 0303 bic.w r3, r3, #3
  13740. 80058a2: 60fb str r3, [r7, #12]
  13741. /* Select the Output Compare Mode */
  13742. tmpccmrx |= OC_Config->OCMode;
  13743. 80058a4: 683b ldr r3, [r7, #0]
  13744. 80058a6: 681b ldr r3, [r3, #0]
  13745. 80058a8: 68fa ldr r2, [r7, #12]
  13746. 80058aa: 4313 orrs r3, r2
  13747. 80058ac: 60fb str r3, [r7, #12]
  13748. /* Reset the Output Polarity level */
  13749. tmpccer &= ~TIM_CCER_CC1P;
  13750. 80058ae: 697b ldr r3, [r7, #20]
  13751. 80058b0: f023 0302 bic.w r3, r3, #2
  13752. 80058b4: 617b str r3, [r7, #20]
  13753. /* Set the Output Compare Polarity */
  13754. tmpccer |= OC_Config->OCPolarity;
  13755. 80058b6: 683b ldr r3, [r7, #0]
  13756. 80058b8: 689b ldr r3, [r3, #8]
  13757. 80058ba: 697a ldr r2, [r7, #20]
  13758. 80058bc: 4313 orrs r3, r2
  13759. 80058be: 617b str r3, [r7, #20]
  13760. /* Write to TIMx CR2 */
  13761. TIMx->CR2 = tmpcr2;
  13762. 80058c0: 687b ldr r3, [r7, #4]
  13763. 80058c2: 693a ldr r2, [r7, #16]
  13764. 80058c4: 605a str r2, [r3, #4]
  13765. /* Write to TIMx CCMR1 */
  13766. TIMx->CCMR1 = tmpccmrx;
  13767. 80058c6: 687b ldr r3, [r7, #4]
  13768. 80058c8: 68fa ldr r2, [r7, #12]
  13769. 80058ca: 619a str r2, [r3, #24]
  13770. /* Set the Capture Compare Register value */
  13771. TIMx->CCR1 = OC_Config->Pulse;
  13772. 80058cc: 683b ldr r3, [r7, #0]
  13773. 80058ce: 685a ldr r2, [r3, #4]
  13774. 80058d0: 687b ldr r3, [r7, #4]
  13775. 80058d2: 635a str r2, [r3, #52] ; 0x34
  13776. /* Write to TIMx CCER */
  13777. TIMx->CCER = tmpccer;
  13778. 80058d4: 687b ldr r3, [r7, #4]
  13779. 80058d6: 697a ldr r2, [r7, #20]
  13780. 80058d8: 621a str r2, [r3, #32]
  13781. }
  13782. 80058da: bf00 nop
  13783. 80058dc: 371c adds r7, #28
  13784. 80058de: 46bd mov sp, r7
  13785. 80058e0: bc80 pop {r7}
  13786. 80058e2: 4770 bx lr
  13787. 080058e4 <TIM_OC2_SetConfig>:
  13788. * @param TIMx to select the TIM peripheral
  13789. * @param OC_Config The output configuration structure
  13790. * @retval None
  13791. */
  13792. static void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  13793. {
  13794. 80058e4: b480 push {r7}
  13795. 80058e6: b087 sub sp, #28
  13796. 80058e8: af00 add r7, sp, #0
  13797. 80058ea: 6078 str r0, [r7, #4]
  13798. 80058ec: 6039 str r1, [r7, #0]
  13799. uint32_t tmpccmrx;
  13800. uint32_t tmpccer;
  13801. uint32_t tmpcr2;
  13802. /* Disable the Channel 2: Reset the CC2E Bit */
  13803. TIMx->CCER &= ~TIM_CCER_CC2E;
  13804. 80058ee: 687b ldr r3, [r7, #4]
  13805. 80058f0: 6a1b ldr r3, [r3, #32]
  13806. 80058f2: f023 0210 bic.w r2, r3, #16
  13807. 80058f6: 687b ldr r3, [r7, #4]
  13808. 80058f8: 621a str r2, [r3, #32]
  13809. /* Get the TIMx CCER register value */
  13810. tmpccer = TIMx->CCER;
  13811. 80058fa: 687b ldr r3, [r7, #4]
  13812. 80058fc: 6a1b ldr r3, [r3, #32]
  13813. 80058fe: 617b str r3, [r7, #20]
  13814. /* Get the TIMx CR2 register value */
  13815. tmpcr2 = TIMx->CR2;
  13816. 8005900: 687b ldr r3, [r7, #4]
  13817. 8005902: 685b ldr r3, [r3, #4]
  13818. 8005904: 613b str r3, [r7, #16]
  13819. /* Get the TIMx CCMR1 register value */
  13820. tmpccmrx = TIMx->CCMR1;
  13821. 8005906: 687b ldr r3, [r7, #4]
  13822. 8005908: 699b ldr r3, [r3, #24]
  13823. 800590a: 60fb str r3, [r7, #12]
  13824. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  13825. tmpccmrx &= ~TIM_CCMR1_OC2M;
  13826. 800590c: 68fb ldr r3, [r7, #12]
  13827. 800590e: f423 43e0 bic.w r3, r3, #28672 ; 0x7000
  13828. 8005912: 60fb str r3, [r7, #12]
  13829. tmpccmrx &= ~TIM_CCMR1_CC2S;
  13830. 8005914: 68fb ldr r3, [r7, #12]
  13831. 8005916: f423 7340 bic.w r3, r3, #768 ; 0x300
  13832. 800591a: 60fb str r3, [r7, #12]
  13833. /* Select the Output Compare Mode */
  13834. tmpccmrx |= (OC_Config->OCMode << 8U);
  13835. 800591c: 683b ldr r3, [r7, #0]
  13836. 800591e: 681b ldr r3, [r3, #0]
  13837. 8005920: 021b lsls r3, r3, #8
  13838. 8005922: 68fa ldr r2, [r7, #12]
  13839. 8005924: 4313 orrs r3, r2
  13840. 8005926: 60fb str r3, [r7, #12]
  13841. /* Reset the Output Polarity level */
  13842. tmpccer &= ~TIM_CCER_CC2P;
  13843. 8005928: 697b ldr r3, [r7, #20]
  13844. 800592a: f023 0320 bic.w r3, r3, #32
  13845. 800592e: 617b str r3, [r7, #20]
  13846. /* Set the Output Compare Polarity */
  13847. tmpccer |= (OC_Config->OCPolarity << 4U);
  13848. 8005930: 683b ldr r3, [r7, #0]
  13849. 8005932: 689b ldr r3, [r3, #8]
  13850. 8005934: 011b lsls r3, r3, #4
  13851. 8005936: 697a ldr r2, [r7, #20]
  13852. 8005938: 4313 orrs r3, r2
  13853. 800593a: 617b str r3, [r7, #20]
  13854. /* Write to TIMx CR2 */
  13855. TIMx->CR2 = tmpcr2;
  13856. 800593c: 687b ldr r3, [r7, #4]
  13857. 800593e: 693a ldr r2, [r7, #16]
  13858. 8005940: 605a str r2, [r3, #4]
  13859. /* Write to TIMx CCMR1 */
  13860. TIMx->CCMR1 = tmpccmrx;
  13861. 8005942: 687b ldr r3, [r7, #4]
  13862. 8005944: 68fa ldr r2, [r7, #12]
  13863. 8005946: 619a str r2, [r3, #24]
  13864. /* Set the Capture Compare Register value */
  13865. TIMx->CCR2 = OC_Config->Pulse;
  13866. 8005948: 683b ldr r3, [r7, #0]
  13867. 800594a: 685a ldr r2, [r3, #4]
  13868. 800594c: 687b ldr r3, [r7, #4]
  13869. 800594e: 639a str r2, [r3, #56] ; 0x38
  13870. /* Write to TIMx CCER */
  13871. TIMx->CCER = tmpccer;
  13872. 8005950: 687b ldr r3, [r7, #4]
  13873. 8005952: 697a ldr r2, [r7, #20]
  13874. 8005954: 621a str r2, [r3, #32]
  13875. }
  13876. 8005956: bf00 nop
  13877. 8005958: 371c adds r7, #28
  13878. 800595a: 46bd mov sp, r7
  13879. 800595c: bc80 pop {r7}
  13880. 800595e: 4770 bx lr
  13881. 08005960 <TIM_OC3_SetConfig>:
  13882. * @param TIMx to select the TIM peripheral
  13883. * @param OC_Config The output configuration structure
  13884. * @retval None
  13885. */
  13886. static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  13887. {
  13888. 8005960: b480 push {r7}
  13889. 8005962: b087 sub sp, #28
  13890. 8005964: af00 add r7, sp, #0
  13891. 8005966: 6078 str r0, [r7, #4]
  13892. 8005968: 6039 str r1, [r7, #0]
  13893. uint32_t tmpccmrx;
  13894. uint32_t tmpccer;
  13895. uint32_t tmpcr2;
  13896. /* Disable the Channel 3: Reset the CC2E Bit */
  13897. TIMx->CCER &= ~TIM_CCER_CC3E;
  13898. 800596a: 687b ldr r3, [r7, #4]
  13899. 800596c: 6a1b ldr r3, [r3, #32]
  13900. 800596e: f423 7280 bic.w r2, r3, #256 ; 0x100
  13901. 8005972: 687b ldr r3, [r7, #4]
  13902. 8005974: 621a str r2, [r3, #32]
  13903. /* Get the TIMx CCER register value */
  13904. tmpccer = TIMx->CCER;
  13905. 8005976: 687b ldr r3, [r7, #4]
  13906. 8005978: 6a1b ldr r3, [r3, #32]
  13907. 800597a: 617b str r3, [r7, #20]
  13908. /* Get the TIMx CR2 register value */
  13909. tmpcr2 = TIMx->CR2;
  13910. 800597c: 687b ldr r3, [r7, #4]
  13911. 800597e: 685b ldr r3, [r3, #4]
  13912. 8005980: 613b str r3, [r7, #16]
  13913. /* Get the TIMx CCMR2 register value */
  13914. tmpccmrx = TIMx->CCMR2;
  13915. 8005982: 687b ldr r3, [r7, #4]
  13916. 8005984: 69db ldr r3, [r3, #28]
  13917. 8005986: 60fb str r3, [r7, #12]
  13918. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  13919. tmpccmrx &= ~TIM_CCMR2_OC3M;
  13920. 8005988: 68fb ldr r3, [r7, #12]
  13921. 800598a: f023 0370 bic.w r3, r3, #112 ; 0x70
  13922. 800598e: 60fb str r3, [r7, #12]
  13923. tmpccmrx &= ~TIM_CCMR2_CC3S;
  13924. 8005990: 68fb ldr r3, [r7, #12]
  13925. 8005992: f023 0303 bic.w r3, r3, #3
  13926. 8005996: 60fb str r3, [r7, #12]
  13927. /* Select the Output Compare Mode */
  13928. tmpccmrx |= OC_Config->OCMode;
  13929. 8005998: 683b ldr r3, [r7, #0]
  13930. 800599a: 681b ldr r3, [r3, #0]
  13931. 800599c: 68fa ldr r2, [r7, #12]
  13932. 800599e: 4313 orrs r3, r2
  13933. 80059a0: 60fb str r3, [r7, #12]
  13934. /* Reset the Output Polarity level */
  13935. tmpccer &= ~TIM_CCER_CC3P;
  13936. 80059a2: 697b ldr r3, [r7, #20]
  13937. 80059a4: f423 7300 bic.w r3, r3, #512 ; 0x200
  13938. 80059a8: 617b str r3, [r7, #20]
  13939. /* Set the Output Compare Polarity */
  13940. tmpccer |= (OC_Config->OCPolarity << 8U);
  13941. 80059aa: 683b ldr r3, [r7, #0]
  13942. 80059ac: 689b ldr r3, [r3, #8]
  13943. 80059ae: 021b lsls r3, r3, #8
  13944. 80059b0: 697a ldr r2, [r7, #20]
  13945. 80059b2: 4313 orrs r3, r2
  13946. 80059b4: 617b str r3, [r7, #20]
  13947. /* Write to TIMx CR2 */
  13948. TIMx->CR2 = tmpcr2;
  13949. 80059b6: 687b ldr r3, [r7, #4]
  13950. 80059b8: 693a ldr r2, [r7, #16]
  13951. 80059ba: 605a str r2, [r3, #4]
  13952. /* Write to TIMx CCMR2 */
  13953. TIMx->CCMR2 = tmpccmrx;
  13954. 80059bc: 687b ldr r3, [r7, #4]
  13955. 80059be: 68fa ldr r2, [r7, #12]
  13956. 80059c0: 61da str r2, [r3, #28]
  13957. /* Set the Capture Compare Register value */
  13958. TIMx->CCR3 = OC_Config->Pulse;
  13959. 80059c2: 683b ldr r3, [r7, #0]
  13960. 80059c4: 685a ldr r2, [r3, #4]
  13961. 80059c6: 687b ldr r3, [r7, #4]
  13962. 80059c8: 63da str r2, [r3, #60] ; 0x3c
  13963. /* Write to TIMx CCER */
  13964. TIMx->CCER = tmpccer;
  13965. 80059ca: 687b ldr r3, [r7, #4]
  13966. 80059cc: 697a ldr r2, [r7, #20]
  13967. 80059ce: 621a str r2, [r3, #32]
  13968. }
  13969. 80059d0: bf00 nop
  13970. 80059d2: 371c adds r7, #28
  13971. 80059d4: 46bd mov sp, r7
  13972. 80059d6: bc80 pop {r7}
  13973. 80059d8: 4770 bx lr
  13974. 080059da <TIM_OC4_SetConfig>:
  13975. * @param TIMx to select the TIM peripheral
  13976. * @param OC_Config The output configuration structure
  13977. * @retval None
  13978. */
  13979. static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config)
  13980. {
  13981. 80059da: b480 push {r7}
  13982. 80059dc: b087 sub sp, #28
  13983. 80059de: af00 add r7, sp, #0
  13984. 80059e0: 6078 str r0, [r7, #4]
  13985. 80059e2: 6039 str r1, [r7, #0]
  13986. uint32_t tmpccmrx;
  13987. uint32_t tmpccer;
  13988. uint32_t tmpcr2;
  13989. /* Disable the Channel 4: Reset the CC4E Bit */
  13990. TIMx->CCER &= ~TIM_CCER_CC4E;
  13991. 80059e4: 687b ldr r3, [r7, #4]
  13992. 80059e6: 6a1b ldr r3, [r3, #32]
  13993. 80059e8: f423 5280 bic.w r2, r3, #4096 ; 0x1000
  13994. 80059ec: 687b ldr r3, [r7, #4]
  13995. 80059ee: 621a str r2, [r3, #32]
  13996. /* Get the TIMx CCER register value */
  13997. tmpccer = TIMx->CCER;
  13998. 80059f0: 687b ldr r3, [r7, #4]
  13999. 80059f2: 6a1b ldr r3, [r3, #32]
  14000. 80059f4: 617b str r3, [r7, #20]
  14001. /* Get the TIMx CR2 register value */
  14002. tmpcr2 = TIMx->CR2;
  14003. 80059f6: 687b ldr r3, [r7, #4]
  14004. 80059f8: 685b ldr r3, [r3, #4]
  14005. 80059fa: 613b str r3, [r7, #16]
  14006. /* Get the TIMx CCMR2 register value */
  14007. tmpccmrx = TIMx->CCMR2;
  14008. 80059fc: 687b ldr r3, [r7, #4]
  14009. 80059fe: 69db ldr r3, [r3, #28]
  14010. 8005a00: 60fb str r3, [r7, #12]
  14011. /* Reset the Output Compare mode and Capture/Compare selection Bits */
  14012. tmpccmrx &= ~TIM_CCMR2_OC4M;
  14013. 8005a02: 68fb ldr r3, [r7, #12]
  14014. 8005a04: f423 43e0 bic.w r3, r3, #28672 ; 0x7000
  14015. 8005a08: 60fb str r3, [r7, #12]
  14016. tmpccmrx &= ~TIM_CCMR2_CC4S;
  14017. 8005a0a: 68fb ldr r3, [r7, #12]
  14018. 8005a0c: f423 7340 bic.w r3, r3, #768 ; 0x300
  14019. 8005a10: 60fb str r3, [r7, #12]
  14020. /* Select the Output Compare Mode */
  14021. tmpccmrx |= (OC_Config->OCMode << 8U);
  14022. 8005a12: 683b ldr r3, [r7, #0]
  14023. 8005a14: 681b ldr r3, [r3, #0]
  14024. 8005a16: 021b lsls r3, r3, #8
  14025. 8005a18: 68fa ldr r2, [r7, #12]
  14026. 8005a1a: 4313 orrs r3, r2
  14027. 8005a1c: 60fb str r3, [r7, #12]
  14028. /* Reset the Output Polarity level */
  14029. tmpccer &= ~TIM_CCER_CC4P;
  14030. 8005a1e: 697b ldr r3, [r7, #20]
  14031. 8005a20: f423 5300 bic.w r3, r3, #8192 ; 0x2000
  14032. 8005a24: 617b str r3, [r7, #20]
  14033. /* Set the Output Compare Polarity */
  14034. tmpccer |= (OC_Config->OCPolarity << 12U);
  14035. 8005a26: 683b ldr r3, [r7, #0]
  14036. 8005a28: 689b ldr r3, [r3, #8]
  14037. 8005a2a: 031b lsls r3, r3, #12
  14038. 8005a2c: 697a ldr r2, [r7, #20]
  14039. 8005a2e: 4313 orrs r3, r2
  14040. 8005a30: 617b str r3, [r7, #20]
  14041. /* Write to TIMx CR2 */
  14042. TIMx->CR2 = tmpcr2;
  14043. 8005a32: 687b ldr r3, [r7, #4]
  14044. 8005a34: 693a ldr r2, [r7, #16]
  14045. 8005a36: 605a str r2, [r3, #4]
  14046. /* Write to TIMx CCMR2 */
  14047. TIMx->CCMR2 = tmpccmrx;
  14048. 8005a38: 687b ldr r3, [r7, #4]
  14049. 8005a3a: 68fa ldr r2, [r7, #12]
  14050. 8005a3c: 61da str r2, [r3, #28]
  14051. /* Set the Capture Compare Register value */
  14052. TIMx->CCR4 = OC_Config->Pulse;
  14053. 8005a3e: 683b ldr r3, [r7, #0]
  14054. 8005a40: 685a ldr r2, [r3, #4]
  14055. 8005a42: 687b ldr r3, [r7, #4]
  14056. 8005a44: 641a str r2, [r3, #64] ; 0x40
  14057. /* Write to TIMx CCER */
  14058. TIMx->CCER = tmpccer;
  14059. 8005a46: 687b ldr r3, [r7, #4]
  14060. 8005a48: 697a ldr r2, [r7, #20]
  14061. 8005a4a: 621a str r2, [r3, #32]
  14062. }
  14063. 8005a4c: bf00 nop
  14064. 8005a4e: 371c adds r7, #28
  14065. 8005a50: 46bd mov sp, r7
  14066. 8005a52: bc80 pop {r7}
  14067. 8005a54: 4770 bx lr
  14068. 08005a56 <TIM_SlaveTimer_SetConfig>:
  14069. * @param sSlaveConfig Slave timer configuration
  14070. * @retval None
  14071. */
  14072. static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim,
  14073. TIM_SlaveConfigTypeDef *sSlaveConfig)
  14074. {
  14075. 8005a56: b580 push {r7, lr}
  14076. 8005a58: b086 sub sp, #24
  14077. 8005a5a: af00 add r7, sp, #0
  14078. 8005a5c: 6078 str r0, [r7, #4]
  14079. 8005a5e: 6039 str r1, [r7, #0]
  14080. uint32_t tmpsmcr;
  14081. uint32_t tmpccmr1;
  14082. uint32_t tmpccer;
  14083. /* Get the TIMx SMCR register value */
  14084. tmpsmcr = htim->Instance->SMCR;
  14085. 8005a60: 687b ldr r3, [r7, #4]
  14086. 8005a62: 681b ldr r3, [r3, #0]
  14087. 8005a64: 689b ldr r3, [r3, #8]
  14088. 8005a66: 617b str r3, [r7, #20]
  14089. /* Reset the Trigger Selection Bits */
  14090. tmpsmcr &= ~TIM_SMCR_TS;
  14091. 8005a68: 697b ldr r3, [r7, #20]
  14092. 8005a6a: f023 0370 bic.w r3, r3, #112 ; 0x70
  14093. 8005a6e: 617b str r3, [r7, #20]
  14094. /* Set the Input Trigger source */
  14095. tmpsmcr |= sSlaveConfig->InputTrigger;
  14096. 8005a70: 683b ldr r3, [r7, #0]
  14097. 8005a72: 685b ldr r3, [r3, #4]
  14098. 8005a74: 697a ldr r2, [r7, #20]
  14099. 8005a76: 4313 orrs r3, r2
  14100. 8005a78: 617b str r3, [r7, #20]
  14101. /* Reset the slave mode Bits */
  14102. tmpsmcr &= ~TIM_SMCR_SMS;
  14103. 8005a7a: 697b ldr r3, [r7, #20]
  14104. 8005a7c: f023 0307 bic.w r3, r3, #7
  14105. 8005a80: 617b str r3, [r7, #20]
  14106. /* Set the slave mode */
  14107. tmpsmcr |= sSlaveConfig->SlaveMode;
  14108. 8005a82: 683b ldr r3, [r7, #0]
  14109. 8005a84: 681b ldr r3, [r3, #0]
  14110. 8005a86: 697a ldr r2, [r7, #20]
  14111. 8005a88: 4313 orrs r3, r2
  14112. 8005a8a: 617b str r3, [r7, #20]
  14113. /* Write to TIMx SMCR */
  14114. htim->Instance->SMCR = tmpsmcr;
  14115. 8005a8c: 687b ldr r3, [r7, #4]
  14116. 8005a8e: 681b ldr r3, [r3, #0]
  14117. 8005a90: 697a ldr r2, [r7, #20]
  14118. 8005a92: 609a str r2, [r3, #8]
  14119. /* Configure the trigger prescaler, filter, and polarity */
  14120. switch (sSlaveConfig->InputTrigger)
  14121. 8005a94: 683b ldr r3, [r7, #0]
  14122. 8005a96: 685b ldr r3, [r3, #4]
  14123. 8005a98: 2b70 cmp r3, #112 ; 0x70
  14124. 8005a9a: d01a beq.n 8005ad2 <TIM_SlaveTimer_SetConfig+0x7c>
  14125. 8005a9c: 2b70 cmp r3, #112 ; 0x70
  14126. 8005a9e: d860 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
  14127. 8005aa0: 2b60 cmp r3, #96 ; 0x60
  14128. 8005aa2: d054 beq.n 8005b4e <TIM_SlaveTimer_SetConfig+0xf8>
  14129. 8005aa4: 2b60 cmp r3, #96 ; 0x60
  14130. 8005aa6: d85c bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
  14131. 8005aa8: 2b50 cmp r3, #80 ; 0x50
  14132. 8005aaa: d046 beq.n 8005b3a <TIM_SlaveTimer_SetConfig+0xe4>
  14133. 8005aac: 2b50 cmp r3, #80 ; 0x50
  14134. 8005aae: d858 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
  14135. 8005ab0: 2b40 cmp r3, #64 ; 0x40
  14136. 8005ab2: d019 beq.n 8005ae8 <TIM_SlaveTimer_SetConfig+0x92>
  14137. 8005ab4: 2b40 cmp r3, #64 ; 0x40
  14138. 8005ab6: d854 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
  14139. 8005ab8: 2b30 cmp r3, #48 ; 0x30
  14140. 8005aba: d054 beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
  14141. 8005abc: 2b30 cmp r3, #48 ; 0x30
  14142. 8005abe: d850 bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
  14143. 8005ac0: 2b20 cmp r3, #32
  14144. 8005ac2: d050 beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
  14145. 8005ac4: 2b20 cmp r3, #32
  14146. 8005ac6: d84c bhi.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
  14147. 8005ac8: 2b00 cmp r3, #0
  14148. 8005aca: d04c beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
  14149. 8005acc: 2b10 cmp r3, #16
  14150. 8005ace: d04a beq.n 8005b66 <TIM_SlaveTimer_SetConfig+0x110>
  14151. assert_param(IS_TIM_CC2_INSTANCE(htim->Instance));
  14152. break;
  14153. }
  14154. default:
  14155. break;
  14156. 8005ad0: e047 b.n 8005b62 <TIM_SlaveTimer_SetConfig+0x10c>
  14157. TIM_ETR_SetConfig(htim->Instance,
  14158. 8005ad2: 687b ldr r3, [r7, #4]
  14159. 8005ad4: 6818 ldr r0, [r3, #0]
  14160. 8005ad6: 683b ldr r3, [r7, #0]
  14161. 8005ad8: 68d9 ldr r1, [r3, #12]
  14162. 8005ada: 683b ldr r3, [r7, #0]
  14163. 8005adc: 689a ldr r2, [r3, #8]
  14164. 8005ade: 683b ldr r3, [r7, #0]
  14165. 8005ae0: 691b ldr r3, [r3, #16]
  14166. 8005ae2: f000 f8bd bl 8005c60 <TIM_ETR_SetConfig>
  14167. break;
  14168. 8005ae6: e03f b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
  14169. if (sSlaveConfig->SlaveMode == TIM_SLAVEMODE_GATED)
  14170. 8005ae8: 683b ldr r3, [r7, #0]
  14171. 8005aea: 681b ldr r3, [r3, #0]
  14172. 8005aec: 2b05 cmp r3, #5
  14173. 8005aee: d101 bne.n 8005af4 <TIM_SlaveTimer_SetConfig+0x9e>
  14174. return HAL_ERROR;
  14175. 8005af0: 2301 movs r3, #1
  14176. 8005af2: e03a b.n 8005b6a <TIM_SlaveTimer_SetConfig+0x114>
  14177. tmpccer = htim->Instance->CCER;
  14178. 8005af4: 687b ldr r3, [r7, #4]
  14179. 8005af6: 681b ldr r3, [r3, #0]
  14180. 8005af8: 6a1b ldr r3, [r3, #32]
  14181. 8005afa: 613b str r3, [r7, #16]
  14182. htim->Instance->CCER &= ~TIM_CCER_CC1E;
  14183. 8005afc: 687b ldr r3, [r7, #4]
  14184. 8005afe: 681b ldr r3, [r3, #0]
  14185. 8005b00: 6a1a ldr r2, [r3, #32]
  14186. 8005b02: 687b ldr r3, [r7, #4]
  14187. 8005b04: 681b ldr r3, [r3, #0]
  14188. 8005b06: f022 0201 bic.w r2, r2, #1
  14189. 8005b0a: 621a str r2, [r3, #32]
  14190. tmpccmr1 = htim->Instance->CCMR1;
  14191. 8005b0c: 687b ldr r3, [r7, #4]
  14192. 8005b0e: 681b ldr r3, [r3, #0]
  14193. 8005b10: 699b ldr r3, [r3, #24]
  14194. 8005b12: 60fb str r3, [r7, #12]
  14195. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  14196. 8005b14: 68fb ldr r3, [r7, #12]
  14197. 8005b16: f023 03f0 bic.w r3, r3, #240 ; 0xf0
  14198. 8005b1a: 60fb str r3, [r7, #12]
  14199. tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U);
  14200. 8005b1c: 683b ldr r3, [r7, #0]
  14201. 8005b1e: 691b ldr r3, [r3, #16]
  14202. 8005b20: 011b lsls r3, r3, #4
  14203. 8005b22: 68fa ldr r2, [r7, #12]
  14204. 8005b24: 4313 orrs r3, r2
  14205. 8005b26: 60fb str r3, [r7, #12]
  14206. htim->Instance->CCMR1 = tmpccmr1;
  14207. 8005b28: 687b ldr r3, [r7, #4]
  14208. 8005b2a: 681b ldr r3, [r3, #0]
  14209. 8005b2c: 68fa ldr r2, [r7, #12]
  14210. 8005b2e: 619a str r2, [r3, #24]
  14211. htim->Instance->CCER = tmpccer;
  14212. 8005b30: 687b ldr r3, [r7, #4]
  14213. 8005b32: 681b ldr r3, [r3, #0]
  14214. 8005b34: 693a ldr r2, [r7, #16]
  14215. 8005b36: 621a str r2, [r3, #32]
  14216. break;
  14217. 8005b38: e016 b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
  14218. TIM_TI1_ConfigInputStage(htim->Instance,
  14219. 8005b3a: 687b ldr r3, [r7, #4]
  14220. 8005b3c: 6818 ldr r0, [r3, #0]
  14221. 8005b3e: 683b ldr r3, [r7, #0]
  14222. 8005b40: 6899 ldr r1, [r3, #8]
  14223. 8005b42: 683b ldr r3, [r7, #0]
  14224. 8005b44: 691b ldr r3, [r3, #16]
  14225. 8005b46: 461a mov r2, r3
  14226. 8005b48: f000 f813 bl 8005b72 <TIM_TI1_ConfigInputStage>
  14227. break;
  14228. 8005b4c: e00c b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
  14229. TIM_TI2_ConfigInputStage(htim->Instance,
  14230. 8005b4e: 687b ldr r3, [r7, #4]
  14231. 8005b50: 6818 ldr r0, [r3, #0]
  14232. 8005b52: 683b ldr r3, [r7, #0]
  14233. 8005b54: 6899 ldr r1, [r3, #8]
  14234. 8005b56: 683b ldr r3, [r7, #0]
  14235. 8005b58: 691b ldr r3, [r3, #16]
  14236. 8005b5a: 461a mov r2, r3
  14237. 8005b5c: f000 f837 bl 8005bce <TIM_TI2_ConfigInputStage>
  14238. break;
  14239. 8005b60: e002 b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
  14240. break;
  14241. 8005b62: bf00 nop
  14242. 8005b64: e000 b.n 8005b68 <TIM_SlaveTimer_SetConfig+0x112>
  14243. break;
  14244. 8005b66: bf00 nop
  14245. }
  14246. return HAL_OK;
  14247. 8005b68: 2300 movs r3, #0
  14248. }
  14249. 8005b6a: 4618 mov r0, r3
  14250. 8005b6c: 3718 adds r7, #24
  14251. 8005b6e: 46bd mov sp, r7
  14252. 8005b70: bd80 pop {r7, pc}
  14253. 08005b72 <TIM_TI1_ConfigInputStage>:
  14254. * @param TIM_ICFilter Specifies the Input Capture Filter.
  14255. * This parameter must be a value between 0x00 and 0x0F.
  14256. * @retval None
  14257. */
  14258. static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  14259. {
  14260. 8005b72: b480 push {r7}
  14261. 8005b74: b087 sub sp, #28
  14262. 8005b76: af00 add r7, sp, #0
  14263. 8005b78: 60f8 str r0, [r7, #12]
  14264. 8005b7a: 60b9 str r1, [r7, #8]
  14265. 8005b7c: 607a str r2, [r7, #4]
  14266. uint32_t tmpccmr1;
  14267. uint32_t tmpccer;
  14268. /* Disable the Channel 1: Reset the CC1E Bit */
  14269. tmpccer = TIMx->CCER;
  14270. 8005b7e: 68fb ldr r3, [r7, #12]
  14271. 8005b80: 6a1b ldr r3, [r3, #32]
  14272. 8005b82: 617b str r3, [r7, #20]
  14273. TIMx->CCER &= ~TIM_CCER_CC1E;
  14274. 8005b84: 68fb ldr r3, [r7, #12]
  14275. 8005b86: 6a1b ldr r3, [r3, #32]
  14276. 8005b88: f023 0201 bic.w r2, r3, #1
  14277. 8005b8c: 68fb ldr r3, [r7, #12]
  14278. 8005b8e: 621a str r2, [r3, #32]
  14279. tmpccmr1 = TIMx->CCMR1;
  14280. 8005b90: 68fb ldr r3, [r7, #12]
  14281. 8005b92: 699b ldr r3, [r3, #24]
  14282. 8005b94: 613b str r3, [r7, #16]
  14283. /* Set the filter */
  14284. tmpccmr1 &= ~TIM_CCMR1_IC1F;
  14285. 8005b96: 693b ldr r3, [r7, #16]
  14286. 8005b98: f023 03f0 bic.w r3, r3, #240 ; 0xf0
  14287. 8005b9c: 613b str r3, [r7, #16]
  14288. tmpccmr1 |= (TIM_ICFilter << 4U);
  14289. 8005b9e: 687b ldr r3, [r7, #4]
  14290. 8005ba0: 011b lsls r3, r3, #4
  14291. 8005ba2: 693a ldr r2, [r7, #16]
  14292. 8005ba4: 4313 orrs r3, r2
  14293. 8005ba6: 613b str r3, [r7, #16]
  14294. /* Select the Polarity and set the CC1E Bit */
  14295. tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
  14296. 8005ba8: 697b ldr r3, [r7, #20]
  14297. 8005baa: f023 030a bic.w r3, r3, #10
  14298. 8005bae: 617b str r3, [r7, #20]
  14299. tmpccer |= TIM_ICPolarity;
  14300. 8005bb0: 697a ldr r2, [r7, #20]
  14301. 8005bb2: 68bb ldr r3, [r7, #8]
  14302. 8005bb4: 4313 orrs r3, r2
  14303. 8005bb6: 617b str r3, [r7, #20]
  14304. /* Write to TIMx CCMR1 and CCER registers */
  14305. TIMx->CCMR1 = tmpccmr1;
  14306. 8005bb8: 68fb ldr r3, [r7, #12]
  14307. 8005bba: 693a ldr r2, [r7, #16]
  14308. 8005bbc: 619a str r2, [r3, #24]
  14309. TIMx->CCER = tmpccer;
  14310. 8005bbe: 68fb ldr r3, [r7, #12]
  14311. 8005bc0: 697a ldr r2, [r7, #20]
  14312. 8005bc2: 621a str r2, [r3, #32]
  14313. }
  14314. 8005bc4: bf00 nop
  14315. 8005bc6: 371c adds r7, #28
  14316. 8005bc8: 46bd mov sp, r7
  14317. 8005bca: bc80 pop {r7}
  14318. 8005bcc: 4770 bx lr
  14319. 08005bce <TIM_TI2_ConfigInputStage>:
  14320. * @param TIM_ICFilter Specifies the Input Capture Filter.
  14321. * This parameter must be a value between 0x00 and 0x0F.
  14322. * @retval None
  14323. */
  14324. static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
  14325. {
  14326. 8005bce: b480 push {r7}
  14327. 8005bd0: b087 sub sp, #28
  14328. 8005bd2: af00 add r7, sp, #0
  14329. 8005bd4: 60f8 str r0, [r7, #12]
  14330. 8005bd6: 60b9 str r1, [r7, #8]
  14331. 8005bd8: 607a str r2, [r7, #4]
  14332. uint32_t tmpccmr1;
  14333. uint32_t tmpccer;
  14334. /* Disable the Channel 2: Reset the CC2E Bit */
  14335. TIMx->CCER &= ~TIM_CCER_CC2E;
  14336. 8005bda: 68fb ldr r3, [r7, #12]
  14337. 8005bdc: 6a1b ldr r3, [r3, #32]
  14338. 8005bde: f023 0210 bic.w r2, r3, #16
  14339. 8005be2: 68fb ldr r3, [r7, #12]
  14340. 8005be4: 621a str r2, [r3, #32]
  14341. tmpccmr1 = TIMx->CCMR1;
  14342. 8005be6: 68fb ldr r3, [r7, #12]
  14343. 8005be8: 699b ldr r3, [r3, #24]
  14344. 8005bea: 617b str r3, [r7, #20]
  14345. tmpccer = TIMx->CCER;
  14346. 8005bec: 68fb ldr r3, [r7, #12]
  14347. 8005bee: 6a1b ldr r3, [r3, #32]
  14348. 8005bf0: 613b str r3, [r7, #16]
  14349. /* Set the filter */
  14350. tmpccmr1 &= ~TIM_CCMR1_IC2F;
  14351. 8005bf2: 697b ldr r3, [r7, #20]
  14352. 8005bf4: f423 4370 bic.w r3, r3, #61440 ; 0xf000
  14353. 8005bf8: 617b str r3, [r7, #20]
  14354. tmpccmr1 |= (TIM_ICFilter << 12U);
  14355. 8005bfa: 687b ldr r3, [r7, #4]
  14356. 8005bfc: 031b lsls r3, r3, #12
  14357. 8005bfe: 697a ldr r2, [r7, #20]
  14358. 8005c00: 4313 orrs r3, r2
  14359. 8005c02: 617b str r3, [r7, #20]
  14360. /* Select the Polarity and set the CC2E Bit */
  14361. tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
  14362. 8005c04: 693b ldr r3, [r7, #16]
  14363. 8005c06: f023 03a0 bic.w r3, r3, #160 ; 0xa0
  14364. 8005c0a: 613b str r3, [r7, #16]
  14365. tmpccer |= (TIM_ICPolarity << 4U);
  14366. 8005c0c: 68bb ldr r3, [r7, #8]
  14367. 8005c0e: 011b lsls r3, r3, #4
  14368. 8005c10: 693a ldr r2, [r7, #16]
  14369. 8005c12: 4313 orrs r3, r2
  14370. 8005c14: 613b str r3, [r7, #16]
  14371. /* Write to TIMx CCMR1 and CCER registers */
  14372. TIMx->CCMR1 = tmpccmr1 ;
  14373. 8005c16: 68fb ldr r3, [r7, #12]
  14374. 8005c18: 697a ldr r2, [r7, #20]
  14375. 8005c1a: 619a str r2, [r3, #24]
  14376. TIMx->CCER = tmpccer;
  14377. 8005c1c: 68fb ldr r3, [r7, #12]
  14378. 8005c1e: 693a ldr r2, [r7, #16]
  14379. 8005c20: 621a str r2, [r3, #32]
  14380. }
  14381. 8005c22: bf00 nop
  14382. 8005c24: 371c adds r7, #28
  14383. 8005c26: 46bd mov sp, r7
  14384. 8005c28: bc80 pop {r7}
  14385. 8005c2a: 4770 bx lr
  14386. 08005c2c <TIM_ITRx_SetConfig>:
  14387. * @arg TIM_TS_TI2FP2: Filtered Timer Input 2
  14388. * @arg TIM_TS_ETRF: External Trigger input
  14389. * @retval None
  14390. */
  14391. static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
  14392. {
  14393. 8005c2c: b480 push {r7}
  14394. 8005c2e: b085 sub sp, #20
  14395. 8005c30: af00 add r7, sp, #0
  14396. 8005c32: 6078 str r0, [r7, #4]
  14397. 8005c34: 6039 str r1, [r7, #0]
  14398. uint32_t tmpsmcr;
  14399. /* Get the TIMx SMCR register value */
  14400. tmpsmcr = TIMx->SMCR;
  14401. 8005c36: 687b ldr r3, [r7, #4]
  14402. 8005c38: 689b ldr r3, [r3, #8]
  14403. 8005c3a: 60fb str r3, [r7, #12]
  14404. /* Reset the TS Bits */
  14405. tmpsmcr &= ~TIM_SMCR_TS;
  14406. 8005c3c: 68fb ldr r3, [r7, #12]
  14407. 8005c3e: f023 0370 bic.w r3, r3, #112 ; 0x70
  14408. 8005c42: 60fb str r3, [r7, #12]
  14409. /* Set the Input Trigger source and the slave mode*/
  14410. tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
  14411. 8005c44: 683a ldr r2, [r7, #0]
  14412. 8005c46: 68fb ldr r3, [r7, #12]
  14413. 8005c48: 4313 orrs r3, r2
  14414. 8005c4a: f043 0307 orr.w r3, r3, #7
  14415. 8005c4e: 60fb str r3, [r7, #12]
  14416. /* Write to TIMx SMCR */
  14417. TIMx->SMCR = tmpsmcr;
  14418. 8005c50: 687b ldr r3, [r7, #4]
  14419. 8005c52: 68fa ldr r2, [r7, #12]
  14420. 8005c54: 609a str r2, [r3, #8]
  14421. }
  14422. 8005c56: bf00 nop
  14423. 8005c58: 3714 adds r7, #20
  14424. 8005c5a: 46bd mov sp, r7
  14425. 8005c5c: bc80 pop {r7}
  14426. 8005c5e: 4770 bx lr
  14427. 08005c60 <TIM_ETR_SetConfig>:
  14428. * This parameter must be a value between 0x00 and 0x0F
  14429. * @retval None
  14430. */
  14431. static void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
  14432. uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
  14433. {
  14434. 8005c60: b480 push {r7}
  14435. 8005c62: b087 sub sp, #28
  14436. 8005c64: af00 add r7, sp, #0
  14437. 8005c66: 60f8 str r0, [r7, #12]
  14438. 8005c68: 60b9 str r1, [r7, #8]
  14439. 8005c6a: 607a str r2, [r7, #4]
  14440. 8005c6c: 603b str r3, [r7, #0]
  14441. uint32_t tmpsmcr;
  14442. tmpsmcr = TIMx->SMCR;
  14443. 8005c6e: 68fb ldr r3, [r7, #12]
  14444. 8005c70: 689b ldr r3, [r3, #8]
  14445. 8005c72: 617b str r3, [r7, #20]
  14446. /* Reset the ETR Bits */
  14447. tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
  14448. 8005c74: 697b ldr r3, [r7, #20]
  14449. 8005c76: f423 437f bic.w r3, r3, #65280 ; 0xff00
  14450. 8005c7a: 617b str r3, [r7, #20]
  14451. /* Set the Prescaler, the Filter value and the Polarity */
  14452. tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
  14453. 8005c7c: 683b ldr r3, [r7, #0]
  14454. 8005c7e: 021a lsls r2, r3, #8
  14455. 8005c80: 687b ldr r3, [r7, #4]
  14456. 8005c82: 431a orrs r2, r3
  14457. 8005c84: 68bb ldr r3, [r7, #8]
  14458. 8005c86: 4313 orrs r3, r2
  14459. 8005c88: 697a ldr r2, [r7, #20]
  14460. 8005c8a: 4313 orrs r3, r2
  14461. 8005c8c: 617b str r3, [r7, #20]
  14462. /* Write to TIMx SMCR */
  14463. TIMx->SMCR = tmpsmcr;
  14464. 8005c8e: 68fb ldr r3, [r7, #12]
  14465. 8005c90: 697a ldr r2, [r7, #20]
  14466. 8005c92: 609a str r2, [r3, #8]
  14467. }
  14468. 8005c94: bf00 nop
  14469. 8005c96: 371c adds r7, #28
  14470. 8005c98: 46bd mov sp, r7
  14471. 8005c9a: bc80 pop {r7}
  14472. 8005c9c: 4770 bx lr
  14473. 08005c9e <TIM_CCxChannelCmd>:
  14474. * @param ChannelState specifies the TIM Channel CCxE bit new state.
  14475. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE.
  14476. * @retval None
  14477. */
  14478. static void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState)
  14479. {
  14480. 8005c9e: b480 push {r7}
  14481. 8005ca0: b087 sub sp, #28
  14482. 8005ca2: af00 add r7, sp, #0
  14483. 8005ca4: 60f8 str r0, [r7, #12]
  14484. 8005ca6: 60b9 str r1, [r7, #8]
  14485. 8005ca8: 607a str r2, [r7, #4]
  14486. /* Check the parameters */
  14487. assert_param(IS_TIM_CC1_INSTANCE(TIMx));
  14488. assert_param(IS_TIM_CHANNELS(Channel));
  14489. tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */
  14490. 8005caa: 68bb ldr r3, [r7, #8]
  14491. 8005cac: f003 031f and.w r3, r3, #31
  14492. 8005cb0: 2201 movs r2, #1
  14493. 8005cb2: fa02 f303 lsl.w r3, r2, r3
  14494. 8005cb6: 617b str r3, [r7, #20]
  14495. /* Reset the CCxE Bit */
  14496. TIMx->CCER &= ~tmp;
  14497. 8005cb8: 68fb ldr r3, [r7, #12]
  14498. 8005cba: 6a1a ldr r2, [r3, #32]
  14499. 8005cbc: 697b ldr r3, [r7, #20]
  14500. 8005cbe: 43db mvns r3, r3
  14501. 8005cc0: 401a ands r2, r3
  14502. 8005cc2: 68fb ldr r3, [r7, #12]
  14503. 8005cc4: 621a str r2, [r3, #32]
  14504. /* Set or reset the CCxE Bit */
  14505. TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */
  14506. 8005cc6: 68fb ldr r3, [r7, #12]
  14507. 8005cc8: 6a1a ldr r2, [r3, #32]
  14508. 8005cca: 68bb ldr r3, [r7, #8]
  14509. 8005ccc: f003 031f and.w r3, r3, #31
  14510. 8005cd0: 6879 ldr r1, [r7, #4]
  14511. 8005cd2: fa01 f303 lsl.w r3, r1, r3
  14512. 8005cd6: 431a orrs r2, r3
  14513. 8005cd8: 68fb ldr r3, [r7, #12]
  14514. 8005cda: 621a str r2, [r3, #32]
  14515. }
  14516. 8005cdc: bf00 nop
  14517. 8005cde: 371c adds r7, #28
  14518. 8005ce0: 46bd mov sp, r7
  14519. 8005ce2: bc80 pop {r7}
  14520. 8005ce4: 4770 bx lr
  14521. ...
  14522. 08005ce8 <HAL_TIMEx_MasterConfigSynchronization>:
  14523. * mode.
  14524. * @retval HAL status
  14525. */
  14526. HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
  14527. TIM_MasterConfigTypeDef *sMasterConfig)
  14528. {
  14529. 8005ce8: b480 push {r7}
  14530. 8005cea: b085 sub sp, #20
  14531. 8005cec: af00 add r7, sp, #0
  14532. 8005cee: 6078 str r0, [r7, #4]
  14533. 8005cf0: 6039 str r1, [r7, #0]
  14534. assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance));
  14535. assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger));
  14536. assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode));
  14537. /* Check input state */
  14538. __HAL_LOCK(htim);
  14539. 8005cf2: 687b ldr r3, [r7, #4]
  14540. 8005cf4: f893 3038 ldrb.w r3, [r3, #56] ; 0x38
  14541. 8005cf8: 2b01 cmp r3, #1
  14542. 8005cfa: d101 bne.n 8005d00 <HAL_TIMEx_MasterConfigSynchronization+0x18>
  14543. 8005cfc: 2302 movs r3, #2
  14544. 8005cfe: e046 b.n 8005d8e <HAL_TIMEx_MasterConfigSynchronization+0xa6>
  14545. 8005d00: 687b ldr r3, [r7, #4]
  14546. 8005d02: 2201 movs r2, #1
  14547. 8005d04: f883 2038 strb.w r2, [r3, #56] ; 0x38
  14548. /* Change the handler state */
  14549. htim->State = HAL_TIM_STATE_BUSY;
  14550. 8005d08: 687b ldr r3, [r7, #4]
  14551. 8005d0a: 2202 movs r2, #2
  14552. 8005d0c: f883 2039 strb.w r2, [r3, #57] ; 0x39
  14553. /* Get the TIMx CR2 register value */
  14554. tmpcr2 = htim->Instance->CR2;
  14555. 8005d10: 687b ldr r3, [r7, #4]
  14556. 8005d12: 681b ldr r3, [r3, #0]
  14557. 8005d14: 685b ldr r3, [r3, #4]
  14558. 8005d16: 60fb str r3, [r7, #12]
  14559. /* Get the TIMx SMCR register value */
  14560. tmpsmcr = htim->Instance->SMCR;
  14561. 8005d18: 687b ldr r3, [r7, #4]
  14562. 8005d1a: 681b ldr r3, [r3, #0]
  14563. 8005d1c: 689b ldr r3, [r3, #8]
  14564. 8005d1e: 60bb str r3, [r7, #8]
  14565. /* Reset the MMS Bits */
  14566. tmpcr2 &= ~TIM_CR2_MMS;
  14567. 8005d20: 68fb ldr r3, [r7, #12]
  14568. 8005d22: f023 0370 bic.w r3, r3, #112 ; 0x70
  14569. 8005d26: 60fb str r3, [r7, #12]
  14570. /* Select the TRGO source */
  14571. tmpcr2 |= sMasterConfig->MasterOutputTrigger;
  14572. 8005d28: 683b ldr r3, [r7, #0]
  14573. 8005d2a: 681b ldr r3, [r3, #0]
  14574. 8005d2c: 68fa ldr r2, [r7, #12]
  14575. 8005d2e: 4313 orrs r3, r2
  14576. 8005d30: 60fb str r3, [r7, #12]
  14577. /* Update TIMx CR2 */
  14578. htim->Instance->CR2 = tmpcr2;
  14579. 8005d32: 687b ldr r3, [r7, #4]
  14580. 8005d34: 681b ldr r3, [r3, #0]
  14581. 8005d36: 68fa ldr r2, [r7, #12]
  14582. 8005d38: 605a str r2, [r3, #4]
  14583. if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
  14584. 8005d3a: 687b ldr r3, [r7, #4]
  14585. 8005d3c: 681b ldr r3, [r3, #0]
  14586. 8005d3e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000
  14587. 8005d42: d00e beq.n 8005d62 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
  14588. 8005d44: 687b ldr r3, [r7, #4]
  14589. 8005d46: 681b ldr r3, [r3, #0]
  14590. 8005d48: 4a13 ldr r2, [pc, #76] ; (8005d98 <HAL_TIMEx_MasterConfigSynchronization+0xb0>)
  14591. 8005d4a: 4293 cmp r3, r2
  14592. 8005d4c: d009 beq.n 8005d62 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
  14593. 8005d4e: 687b ldr r3, [r7, #4]
  14594. 8005d50: 681b ldr r3, [r3, #0]
  14595. 8005d52: 4a12 ldr r2, [pc, #72] ; (8005d9c <HAL_TIMEx_MasterConfigSynchronization+0xb4>)
  14596. 8005d54: 4293 cmp r3, r2
  14597. 8005d56: d004 beq.n 8005d62 <HAL_TIMEx_MasterConfigSynchronization+0x7a>
  14598. 8005d58: 687b ldr r3, [r7, #4]
  14599. 8005d5a: 681b ldr r3, [r3, #0]
  14600. 8005d5c: 4a10 ldr r2, [pc, #64] ; (8005da0 <HAL_TIMEx_MasterConfigSynchronization+0xb8>)
  14601. 8005d5e: 4293 cmp r3, r2
  14602. 8005d60: d10c bne.n 8005d7c <HAL_TIMEx_MasterConfigSynchronization+0x94>
  14603. {
  14604. /* Reset the MSM Bit */
  14605. tmpsmcr &= ~TIM_SMCR_MSM;
  14606. 8005d62: 68bb ldr r3, [r7, #8]
  14607. 8005d64: f023 0380 bic.w r3, r3, #128 ; 0x80
  14608. 8005d68: 60bb str r3, [r7, #8]
  14609. /* Set master mode */
  14610. tmpsmcr |= sMasterConfig->MasterSlaveMode;
  14611. 8005d6a: 683b ldr r3, [r7, #0]
  14612. 8005d6c: 685b ldr r3, [r3, #4]
  14613. 8005d6e: 68ba ldr r2, [r7, #8]
  14614. 8005d70: 4313 orrs r3, r2
  14615. 8005d72: 60bb str r3, [r7, #8]
  14616. /* Update TIMx SMCR */
  14617. htim->Instance->SMCR = tmpsmcr;
  14618. 8005d74: 687b ldr r3, [r7, #4]
  14619. 8005d76: 681b ldr r3, [r3, #0]
  14620. 8005d78: 68ba ldr r2, [r7, #8]
  14621. 8005d7a: 609a str r2, [r3, #8]
  14622. }
  14623. /* Change the htim state */
  14624. htim->State = HAL_TIM_STATE_READY;
  14625. 8005d7c: 687b ldr r3, [r7, #4]
  14626. 8005d7e: 2201 movs r2, #1
  14627. 8005d80: f883 2039 strb.w r2, [r3, #57] ; 0x39
  14628. __HAL_UNLOCK(htim);
  14629. 8005d84: 687b ldr r3, [r7, #4]
  14630. 8005d86: 2200 movs r2, #0
  14631. 8005d88: f883 2038 strb.w r2, [r3, #56] ; 0x38
  14632. return HAL_OK;
  14633. 8005d8c: 2300 movs r3, #0
  14634. }
  14635. 8005d8e: 4618 mov r0, r3
  14636. 8005d90: 3714 adds r7, #20
  14637. 8005d92: 46bd mov sp, r7
  14638. 8005d94: bc80 pop {r7}
  14639. 8005d96: 4770 bx lr
  14640. 8005d98: 40000400 .word 0x40000400
  14641. 8005d9c: 40000800 .word 0x40000800
  14642. 8005da0: 40010800 .word 0x40010800
  14643. 08005da4 <HAL_UART_Init>:
  14644. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  14645. * the configuration information for the specified UART module.
  14646. * @retval HAL status
  14647. */
  14648. HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
  14649. {
  14650. 8005da4: b580 push {r7, lr}
  14651. 8005da6: b082 sub sp, #8
  14652. 8005da8: af00 add r7, sp, #0
  14653. 8005daa: 6078 str r0, [r7, #4]
  14654. /* Check the UART handle allocation */
  14655. if (huart == NULL)
  14656. 8005dac: 687b ldr r3, [r7, #4]
  14657. 8005dae: 2b00 cmp r3, #0
  14658. 8005db0: d101 bne.n 8005db6 <HAL_UART_Init+0x12>
  14659. {
  14660. return HAL_ERROR;
  14661. 8005db2: 2301 movs r3, #1
  14662. 8005db4: e03f b.n 8005e36 <HAL_UART_Init+0x92>
  14663. assert_param(IS_UART_INSTANCE(huart->Instance));
  14664. }
  14665. assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
  14666. assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
  14667. if (huart->gState == HAL_UART_STATE_RESET)
  14668. 8005db6: 687b ldr r3, [r7, #4]
  14669. 8005db8: f893 303d ldrb.w r3, [r3, #61] ; 0x3d
  14670. 8005dbc: b2db uxtb r3, r3
  14671. 8005dbe: 2b00 cmp r3, #0
  14672. 8005dc0: d106 bne.n 8005dd0 <HAL_UART_Init+0x2c>
  14673. {
  14674. /* Allocate lock resource and initialize it */
  14675. huart->Lock = HAL_UNLOCKED;
  14676. 8005dc2: 687b ldr r3, [r7, #4]
  14677. 8005dc4: 2200 movs r2, #0
  14678. 8005dc6: f883 203c strb.w r2, [r3, #60] ; 0x3c
  14679. /* Init the low level hardware */
  14680. huart->MspInitCallback(huart);
  14681. #else
  14682. /* Init the low level hardware : GPIO, CLOCK */
  14683. HAL_UART_MspInit(huart);
  14684. 8005dca: 6878 ldr r0, [r7, #4]
  14685. 8005dcc: f7fc f816 bl 8001dfc <HAL_UART_MspInit>
  14686. #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
  14687. }
  14688. huart->gState = HAL_UART_STATE_BUSY;
  14689. 8005dd0: 687b ldr r3, [r7, #4]
  14690. 8005dd2: 2224 movs r2, #36 ; 0x24
  14691. 8005dd4: f883 203d strb.w r2, [r3, #61] ; 0x3d
  14692. /* Disable the peripheral */
  14693. __HAL_UART_DISABLE(huart);
  14694. 8005dd8: 687b ldr r3, [r7, #4]
  14695. 8005dda: 681b ldr r3, [r3, #0]
  14696. 8005ddc: 68da ldr r2, [r3, #12]
  14697. 8005dde: 687b ldr r3, [r7, #4]
  14698. 8005de0: 681b ldr r3, [r3, #0]
  14699. 8005de2: f422 5200 bic.w r2, r2, #8192 ; 0x2000
  14700. 8005de6: 60da str r2, [r3, #12]
  14701. /* Set the UART Communication parameters */
  14702. UART_SetConfig(huart);
  14703. 8005de8: 6878 ldr r0, [r7, #4]
  14704. 8005dea: f000 f829 bl 8005e40 <UART_SetConfig>
  14705. /* In asynchronous mode, the following bits must be kept cleared:
  14706. - LINEN and CLKEN bits in the USART_CR2 register,
  14707. - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
  14708. CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
  14709. 8005dee: 687b ldr r3, [r7, #4]
  14710. 8005df0: 681b ldr r3, [r3, #0]
  14711. 8005df2: 691a ldr r2, [r3, #16]
  14712. 8005df4: 687b ldr r3, [r7, #4]
  14713. 8005df6: 681b ldr r3, [r3, #0]
  14714. 8005df8: f422 4290 bic.w r2, r2, #18432 ; 0x4800
  14715. 8005dfc: 611a str r2, [r3, #16]
  14716. CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
  14717. 8005dfe: 687b ldr r3, [r7, #4]
  14718. 8005e00: 681b ldr r3, [r3, #0]
  14719. 8005e02: 695a ldr r2, [r3, #20]
  14720. 8005e04: 687b ldr r3, [r7, #4]
  14721. 8005e06: 681b ldr r3, [r3, #0]
  14722. 8005e08: f022 022a bic.w r2, r2, #42 ; 0x2a
  14723. 8005e0c: 615a str r2, [r3, #20]
  14724. /* Enable the peripheral */
  14725. __HAL_UART_ENABLE(huart);
  14726. 8005e0e: 687b ldr r3, [r7, #4]
  14727. 8005e10: 681b ldr r3, [r3, #0]
  14728. 8005e12: 68da ldr r2, [r3, #12]
  14729. 8005e14: 687b ldr r3, [r7, #4]
  14730. 8005e16: 681b ldr r3, [r3, #0]
  14731. 8005e18: f442 5200 orr.w r2, r2, #8192 ; 0x2000
  14732. 8005e1c: 60da str r2, [r3, #12]
  14733. /* Initialize the UART state */
  14734. huart->ErrorCode = HAL_UART_ERROR_NONE;
  14735. 8005e1e: 687b ldr r3, [r7, #4]
  14736. 8005e20: 2200 movs r2, #0
  14737. 8005e22: 641a str r2, [r3, #64] ; 0x40
  14738. huart->gState = HAL_UART_STATE_READY;
  14739. 8005e24: 687b ldr r3, [r7, #4]
  14740. 8005e26: 2220 movs r2, #32
  14741. 8005e28: f883 203d strb.w r2, [r3, #61] ; 0x3d
  14742. huart->RxState = HAL_UART_STATE_READY;
  14743. 8005e2c: 687b ldr r3, [r7, #4]
  14744. 8005e2e: 2220 movs r2, #32
  14745. 8005e30: f883 203e strb.w r2, [r3, #62] ; 0x3e
  14746. return HAL_OK;
  14747. 8005e34: 2300 movs r3, #0
  14748. }
  14749. 8005e36: 4618 mov r0, r3
  14750. 8005e38: 3708 adds r7, #8
  14751. 8005e3a: 46bd mov sp, r7
  14752. 8005e3c: bd80 pop {r7, pc}
  14753. ...
  14754. 08005e40 <UART_SetConfig>:
  14755. * @param huart Pointer to a UART_HandleTypeDef structure that contains
  14756. * the configuration information for the specified UART module.
  14757. * @retval None
  14758. */
  14759. static void UART_SetConfig(UART_HandleTypeDef *huart)
  14760. {
  14761. 8005e40: b580 push {r7, lr}
  14762. 8005e42: b084 sub sp, #16
  14763. 8005e44: af00 add r7, sp, #0
  14764. 8005e46: 6078 str r0, [r7, #4]
  14765. assert_param(IS_UART_MODE(huart->Init.Mode));
  14766. /*-------------------------- USART CR2 Configuration -----------------------*/
  14767. /* Configure the UART Stop Bits: Set STOP[13:12] bits
  14768. according to huart->Init.StopBits value */
  14769. MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
  14770. 8005e48: 687b ldr r3, [r7, #4]
  14771. 8005e4a: 681b ldr r3, [r3, #0]
  14772. 8005e4c: 691b ldr r3, [r3, #16]
  14773. 8005e4e: f423 5140 bic.w r1, r3, #12288 ; 0x3000
  14774. 8005e52: 687b ldr r3, [r7, #4]
  14775. 8005e54: 68da ldr r2, [r3, #12]
  14776. 8005e56: 687b ldr r3, [r7, #4]
  14777. 8005e58: 681b ldr r3, [r3, #0]
  14778. 8005e5a: 430a orrs r2, r1
  14779. 8005e5c: 611a str r2, [r3, #16]
  14780. Set the M bits according to huart->Init.WordLength value
  14781. Set PCE and PS bits according to huart->Init.Parity value
  14782. Set TE and RE bits according to huart->Init.Mode value
  14783. Set OVER8 bit according to huart->Init.OverSampling value */
  14784. tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
  14785. 8005e5e: 687b ldr r3, [r7, #4]
  14786. 8005e60: 689a ldr r2, [r3, #8]
  14787. 8005e62: 687b ldr r3, [r7, #4]
  14788. 8005e64: 691b ldr r3, [r3, #16]
  14789. 8005e66: 431a orrs r2, r3
  14790. 8005e68: 687b ldr r3, [r7, #4]
  14791. 8005e6a: 695b ldr r3, [r3, #20]
  14792. 8005e6c: 431a orrs r2, r3
  14793. 8005e6e: 687b ldr r3, [r7, #4]
  14794. 8005e70: 69db ldr r3, [r3, #28]
  14795. 8005e72: 4313 orrs r3, r2
  14796. 8005e74: 60bb str r3, [r7, #8]
  14797. MODIFY_REG(huart->Instance->CR1,
  14798. 8005e76: 687b ldr r3, [r7, #4]
  14799. 8005e78: 681b ldr r3, [r3, #0]
  14800. 8005e7a: 68db ldr r3, [r3, #12]
  14801. 8005e7c: f423 4316 bic.w r3, r3, #38400 ; 0x9600
  14802. 8005e80: f023 030c bic.w r3, r3, #12
  14803. 8005e84: 687a ldr r2, [r7, #4]
  14804. 8005e86: 6812 ldr r2, [r2, #0]
  14805. 8005e88: 68b9 ldr r1, [r7, #8]
  14806. 8005e8a: 430b orrs r3, r1
  14807. 8005e8c: 60d3 str r3, [r2, #12]
  14808. (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8),
  14809. tmpreg);
  14810. /*-------------------------- USART CR3 Configuration -----------------------*/
  14811. /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
  14812. MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
  14813. 8005e8e: 687b ldr r3, [r7, #4]
  14814. 8005e90: 681b ldr r3, [r3, #0]
  14815. 8005e92: 695b ldr r3, [r3, #20]
  14816. 8005e94: f423 7140 bic.w r1, r3, #768 ; 0x300
  14817. 8005e98: 687b ldr r3, [r7, #4]
  14818. 8005e9a: 699a ldr r2, [r3, #24]
  14819. 8005e9c: 687b ldr r3, [r7, #4]
  14820. 8005e9e: 681b ldr r3, [r3, #0]
  14821. 8005ea0: 430a orrs r2, r1
  14822. 8005ea2: 615a str r2, [r3, #20]
  14823. if((huart->Instance == USART1))
  14824. 8005ea4: 687b ldr r3, [r7, #4]
  14825. 8005ea6: 681b ldr r3, [r3, #0]
  14826. 8005ea8: 4a55 ldr r2, [pc, #340] ; (8006000 <UART_SetConfig+0x1c0>)
  14827. 8005eaa: 4293 cmp r3, r2
  14828. 8005eac: d103 bne.n 8005eb6 <UART_SetConfig+0x76>
  14829. {
  14830. pclk = HAL_RCC_GetPCLK2Freq();
  14831. 8005eae: f7fe ff19 bl 8004ce4 <HAL_RCC_GetPCLK2Freq>
  14832. 8005eb2: 60f8 str r0, [r7, #12]
  14833. 8005eb4: e002 b.n 8005ebc <UART_SetConfig+0x7c>
  14834. }
  14835. else
  14836. {
  14837. pclk = HAL_RCC_GetPCLK1Freq();
  14838. 8005eb6: f7fe ff01 bl 8004cbc <HAL_RCC_GetPCLK1Freq>
  14839. 8005eba: 60f8 str r0, [r7, #12]
  14840. }
  14841. /*-------------------------- USART BRR Configuration ---------------------*/
  14842. if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
  14843. 8005ebc: 687b ldr r3, [r7, #4]
  14844. 8005ebe: 69db ldr r3, [r3, #28]
  14845. 8005ec0: f5b3 4f00 cmp.w r3, #32768 ; 0x8000
  14846. 8005ec4: d14c bne.n 8005f60 <UART_SetConfig+0x120>
  14847. {
  14848. huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
  14849. 8005ec6: 68fa ldr r2, [r7, #12]
  14850. 8005ec8: 4613 mov r3, r2
  14851. 8005eca: 009b lsls r3, r3, #2
  14852. 8005ecc: 4413 add r3, r2
  14853. 8005ece: 009a lsls r2, r3, #2
  14854. 8005ed0: 441a add r2, r3
  14855. 8005ed2: 687b ldr r3, [r7, #4]
  14856. 8005ed4: 685b ldr r3, [r3, #4]
  14857. 8005ed6: 005b lsls r3, r3, #1
  14858. 8005ed8: fbb2 f3f3 udiv r3, r2, r3
  14859. 8005edc: 4a49 ldr r2, [pc, #292] ; (8006004 <UART_SetConfig+0x1c4>)
  14860. 8005ede: fba2 2303 umull r2, r3, r2, r3
  14861. 8005ee2: 095b lsrs r3, r3, #5
  14862. 8005ee4: 0119 lsls r1, r3, #4
  14863. 8005ee6: 68fa ldr r2, [r7, #12]
  14864. 8005ee8: 4613 mov r3, r2
  14865. 8005eea: 009b lsls r3, r3, #2
  14866. 8005eec: 4413 add r3, r2
  14867. 8005eee: 009a lsls r2, r3, #2
  14868. 8005ef0: 441a add r2, r3
  14869. 8005ef2: 687b ldr r3, [r7, #4]
  14870. 8005ef4: 685b ldr r3, [r3, #4]
  14871. 8005ef6: 005b lsls r3, r3, #1
  14872. 8005ef8: fbb2 f2f3 udiv r2, r2, r3
  14873. 8005efc: 4b41 ldr r3, [pc, #260] ; (8006004 <UART_SetConfig+0x1c4>)
  14874. 8005efe: fba3 0302 umull r0, r3, r3, r2
  14875. 8005f02: 095b lsrs r3, r3, #5
  14876. 8005f04: 2064 movs r0, #100 ; 0x64
  14877. 8005f06: fb00 f303 mul.w r3, r0, r3
  14878. 8005f0a: 1ad3 subs r3, r2, r3
  14879. 8005f0c: 00db lsls r3, r3, #3
  14880. 8005f0e: 3332 adds r3, #50 ; 0x32
  14881. 8005f10: 4a3c ldr r2, [pc, #240] ; (8006004 <UART_SetConfig+0x1c4>)
  14882. 8005f12: fba2 2303 umull r2, r3, r2, r3
  14883. 8005f16: 095b lsrs r3, r3, #5
  14884. 8005f18: 005b lsls r3, r3, #1
  14885. 8005f1a: f403 73f8 and.w r3, r3, #496 ; 0x1f0
  14886. 8005f1e: 4419 add r1, r3
  14887. 8005f20: 68fa ldr r2, [r7, #12]
  14888. 8005f22: 4613 mov r3, r2
  14889. 8005f24: 009b lsls r3, r3, #2
  14890. 8005f26: 4413 add r3, r2
  14891. 8005f28: 009a lsls r2, r3, #2
  14892. 8005f2a: 441a add r2, r3
  14893. 8005f2c: 687b ldr r3, [r7, #4]
  14894. 8005f2e: 685b ldr r3, [r3, #4]
  14895. 8005f30: 005b lsls r3, r3, #1
  14896. 8005f32: fbb2 f2f3 udiv r2, r2, r3
  14897. 8005f36: 4b33 ldr r3, [pc, #204] ; (8006004 <UART_SetConfig+0x1c4>)
  14898. 8005f38: fba3 0302 umull r0, r3, r3, r2
  14899. 8005f3c: 095b lsrs r3, r3, #5
  14900. 8005f3e: 2064 movs r0, #100 ; 0x64
  14901. 8005f40: fb00 f303 mul.w r3, r0, r3
  14902. 8005f44: 1ad3 subs r3, r2, r3
  14903. 8005f46: 00db lsls r3, r3, #3
  14904. 8005f48: 3332 adds r3, #50 ; 0x32
  14905. 8005f4a: 4a2e ldr r2, [pc, #184] ; (8006004 <UART_SetConfig+0x1c4>)
  14906. 8005f4c: fba2 2303 umull r2, r3, r2, r3
  14907. 8005f50: 095b lsrs r3, r3, #5
  14908. 8005f52: f003 0207 and.w r2, r3, #7
  14909. 8005f56: 687b ldr r3, [r7, #4]
  14910. 8005f58: 681b ldr r3, [r3, #0]
  14911. 8005f5a: 440a add r2, r1
  14912. 8005f5c: 609a str r2, [r3, #8]
  14913. }
  14914. else
  14915. {
  14916. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  14917. }
  14918. }
  14919. 8005f5e: e04a b.n 8005ff6 <UART_SetConfig+0x1b6>
  14920. huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
  14921. 8005f60: 68fa ldr r2, [r7, #12]
  14922. 8005f62: 4613 mov r3, r2
  14923. 8005f64: 009b lsls r3, r3, #2
  14924. 8005f66: 4413 add r3, r2
  14925. 8005f68: 009a lsls r2, r3, #2
  14926. 8005f6a: 441a add r2, r3
  14927. 8005f6c: 687b ldr r3, [r7, #4]
  14928. 8005f6e: 685b ldr r3, [r3, #4]
  14929. 8005f70: 009b lsls r3, r3, #2
  14930. 8005f72: fbb2 f3f3 udiv r3, r2, r3
  14931. 8005f76: 4a23 ldr r2, [pc, #140] ; (8006004 <UART_SetConfig+0x1c4>)
  14932. 8005f78: fba2 2303 umull r2, r3, r2, r3
  14933. 8005f7c: 095b lsrs r3, r3, #5
  14934. 8005f7e: 0119 lsls r1, r3, #4
  14935. 8005f80: 68fa ldr r2, [r7, #12]
  14936. 8005f82: 4613 mov r3, r2
  14937. 8005f84: 009b lsls r3, r3, #2
  14938. 8005f86: 4413 add r3, r2
  14939. 8005f88: 009a lsls r2, r3, #2
  14940. 8005f8a: 441a add r2, r3
  14941. 8005f8c: 687b ldr r3, [r7, #4]
  14942. 8005f8e: 685b ldr r3, [r3, #4]
  14943. 8005f90: 009b lsls r3, r3, #2
  14944. 8005f92: fbb2 f2f3 udiv r2, r2, r3
  14945. 8005f96: 4b1b ldr r3, [pc, #108] ; (8006004 <UART_SetConfig+0x1c4>)
  14946. 8005f98: fba3 0302 umull r0, r3, r3, r2
  14947. 8005f9c: 095b lsrs r3, r3, #5
  14948. 8005f9e: 2064 movs r0, #100 ; 0x64
  14949. 8005fa0: fb00 f303 mul.w r3, r0, r3
  14950. 8005fa4: 1ad3 subs r3, r2, r3
  14951. 8005fa6: 011b lsls r3, r3, #4
  14952. 8005fa8: 3332 adds r3, #50 ; 0x32
  14953. 8005faa: 4a16 ldr r2, [pc, #88] ; (8006004 <UART_SetConfig+0x1c4>)
  14954. 8005fac: fba2 2303 umull r2, r3, r2, r3
  14955. 8005fb0: 095b lsrs r3, r3, #5
  14956. 8005fb2: f003 03f0 and.w r3, r3, #240 ; 0xf0
  14957. 8005fb6: 4419 add r1, r3
  14958. 8005fb8: 68fa ldr r2, [r7, #12]
  14959. 8005fba: 4613 mov r3, r2
  14960. 8005fbc: 009b lsls r3, r3, #2
  14961. 8005fbe: 4413 add r3, r2
  14962. 8005fc0: 009a lsls r2, r3, #2
  14963. 8005fc2: 441a add r2, r3
  14964. 8005fc4: 687b ldr r3, [r7, #4]
  14965. 8005fc6: 685b ldr r3, [r3, #4]
  14966. 8005fc8: 009b lsls r3, r3, #2
  14967. 8005fca: fbb2 f2f3 udiv r2, r2, r3
  14968. 8005fce: 4b0d ldr r3, [pc, #52] ; (8006004 <UART_SetConfig+0x1c4>)
  14969. 8005fd0: fba3 0302 umull r0, r3, r3, r2
  14970. 8005fd4: 095b lsrs r3, r3, #5
  14971. 8005fd6: 2064 movs r0, #100 ; 0x64
  14972. 8005fd8: fb00 f303 mul.w r3, r0, r3
  14973. 8005fdc: 1ad3 subs r3, r2, r3
  14974. 8005fde: 011b lsls r3, r3, #4
  14975. 8005fe0: 3332 adds r3, #50 ; 0x32
  14976. 8005fe2: 4a08 ldr r2, [pc, #32] ; (8006004 <UART_SetConfig+0x1c4>)
  14977. 8005fe4: fba2 2303 umull r2, r3, r2, r3
  14978. 8005fe8: 095b lsrs r3, r3, #5
  14979. 8005fea: f003 020f and.w r2, r3, #15
  14980. 8005fee: 687b ldr r3, [r7, #4]
  14981. 8005ff0: 681b ldr r3, [r3, #0]
  14982. 8005ff2: 440a add r2, r1
  14983. 8005ff4: 609a str r2, [r3, #8]
  14984. }
  14985. 8005ff6: bf00 nop
  14986. 8005ff8: 3710 adds r7, #16
  14987. 8005ffa: 46bd mov sp, r7
  14988. 8005ffc: bd80 pop {r7, pc}
  14989. 8005ffe: bf00 nop
  14990. 8006000: 40013800 .word 0x40013800
  14991. 8006004: 51eb851f .word 0x51eb851f
  14992. 08006008 <ssd1306_Reset>:
  14993. #include <stdlib.h>
  14994. #include <string.h> // For memcpy
  14995. #if defined(SSD1306_USE_I2C)
  14996. void ssd1306_Reset(void) {
  14997. 8006008: b480 push {r7}
  14998. 800600a: af00 add r7, sp, #0
  14999. /* for I2C - do nothing */
  15000. }
  15001. 800600c: bf00 nop
  15002. 800600e: 46bd mov sp, r7
  15003. 8006010: bc80 pop {r7}
  15004. 8006012: 4770 bx lr
  15005. 08006014 <ssd1306_WriteCommand>:
  15006. // Send a byte to the command register
  15007. void ssd1306_WriteCommand(uint8_t byte) {
  15008. 8006014: b580 push {r7, lr}
  15009. 8006016: b086 sub sp, #24
  15010. 8006018: af04 add r7, sp, #16
  15011. 800601a: 4603 mov r3, r0
  15012. 800601c: 71fb strb r3, [r7, #7]
  15013. HAL_I2C_Mem_Write(&SSD1306_I2C_PORT, SSD1306_I2C_ADDR, 0x00, 1, &byte, 1, HAL_MAX_DELAY);
  15014. 800601e: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  15015. 8006022: 9302 str r3, [sp, #8]
  15016. 8006024: 2301 movs r3, #1
  15017. 8006026: 9301 str r3, [sp, #4]
  15018. 8006028: 1dfb adds r3, r7, #7
  15019. 800602a: 9300 str r3, [sp, #0]
  15020. 800602c: 2301 movs r3, #1
  15021. 800602e: 2200 movs r2, #0
  15022. 8006030: 2178 movs r1, #120 ; 0x78
  15023. 8006032: 4803 ldr r0, [pc, #12] ; (8006040 <ssd1306_WriteCommand+0x2c>)
  15024. 8006034: f7fd fdf0 bl 8003c18 <HAL_I2C_Mem_Write>
  15025. }
  15026. 8006038: bf00 nop
  15027. 800603a: 3708 adds r7, #8
  15028. 800603c: 46bd mov sp, r7
  15029. 800603e: bd80 pop {r7, pc}
  15030. 8006040: 20000458 .word 0x20000458
  15031. 08006044 <ssd1306_WriteData>:
  15032. // Send data
  15033. void ssd1306_WriteData(uint8_t* buffer, size_t buff_size) {
  15034. 8006044: b580 push {r7, lr}
  15035. 8006046: b086 sub sp, #24
  15036. 8006048: af04 add r7, sp, #16
  15037. 800604a: 6078 str r0, [r7, #4]
  15038. 800604c: 6039 str r1, [r7, #0]
  15039. HAL_I2C_Mem_Write(&SSD1306_I2C_PORT, SSD1306_I2C_ADDR, 0x40, 1, buffer, buff_size, HAL_MAX_DELAY);
  15040. 800604e: 683b ldr r3, [r7, #0]
  15041. 8006050: b29b uxth r3, r3
  15042. 8006052: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  15043. 8006056: 9202 str r2, [sp, #8]
  15044. 8006058: 9301 str r3, [sp, #4]
  15045. 800605a: 687b ldr r3, [r7, #4]
  15046. 800605c: 9300 str r3, [sp, #0]
  15047. 800605e: 2301 movs r3, #1
  15048. 8006060: 2240 movs r2, #64 ; 0x40
  15049. 8006062: 2178 movs r1, #120 ; 0x78
  15050. 8006064: 4803 ldr r0, [pc, #12] ; (8006074 <ssd1306_WriteData+0x30>)
  15051. 8006066: f7fd fdd7 bl 8003c18 <HAL_I2C_Mem_Write>
  15052. }
  15053. 800606a: bf00 nop
  15054. 800606c: 3708 adds r7, #8
  15055. 800606e: 46bd mov sp, r7
  15056. 8006070: bd80 pop {r7, pc}
  15057. 8006072: bf00 nop
  15058. 8006074: 20000458 .word 0x20000458
  15059. 08006078 <ssd1306_Init>:
  15060. }
  15061. return ret;
  15062. }
  15063. // Initialize the oled screen
  15064. void ssd1306_Init(void) {
  15065. 8006078: b580 push {r7, lr}
  15066. 800607a: af00 add r7, sp, #0
  15067. // Reset OLED
  15068. ssd1306_Reset();
  15069. 800607c: f7ff ffc4 bl 8006008 <ssd1306_Reset>
  15070. // Wait for the screen to boot
  15071. HAL_Delay(100);
  15072. 8006080: 2064 movs r0, #100 ; 0x64
  15073. 8006082: f7fc f8b5 bl 80021f0 <HAL_Delay>
  15074. // Init OLED
  15075. ssd1306_SetDisplayOn(0); //display off
  15076. 8006086: 2000 movs r0, #0
  15077. 8006088: f000 fa86 bl 8006598 <ssd1306_SetDisplayOn>
  15078. ssd1306_WriteCommand(0x20); //Set Memory Addressing Mode
  15079. 800608c: 2020 movs r0, #32
  15080. 800608e: f7ff ffc1 bl 8006014 <ssd1306_WriteCommand>
  15081. ssd1306_WriteCommand(0x00); // 00b,Horizontal Addressing Mode; 01b,Vertical Addressing Mode;
  15082. 8006092: 2000 movs r0, #0
  15083. 8006094: f7ff ffbe bl 8006014 <ssd1306_WriteCommand>
  15084. // 10b,Page Addressing Mode (RESET); 11b,Invalid
  15085. ssd1306_WriteCommand(0xB0); //Set Page Start Address for Page Addressing Mode,0-7
  15086. 8006098: 20b0 movs r0, #176 ; 0xb0
  15087. 800609a: f7ff ffbb bl 8006014 <ssd1306_WriteCommand>
  15088. #ifdef SSD1306_MIRROR_VERT
  15089. ssd1306_WriteCommand(0xC0); // Mirror vertically
  15090. #else
  15091. ssd1306_WriteCommand(0xC8); //Set COM Output Scan Direction
  15092. 800609e: 20c8 movs r0, #200 ; 0xc8
  15093. 80060a0: f7ff ffb8 bl 8006014 <ssd1306_WriteCommand>
  15094. #endif
  15095. ssd1306_WriteCommand(0x00); //---set low column address
  15096. 80060a4: 2000 movs r0, #0
  15097. 80060a6: f7ff ffb5 bl 8006014 <ssd1306_WriteCommand>
  15098. ssd1306_WriteCommand(0x10); //---set high column address
  15099. 80060aa: 2010 movs r0, #16
  15100. 80060ac: f7ff ffb2 bl 8006014 <ssd1306_WriteCommand>
  15101. ssd1306_WriteCommand(0x40); //--set start line address - CHECK
  15102. 80060b0: 2040 movs r0, #64 ; 0x40
  15103. 80060b2: f7ff ffaf bl 8006014 <ssd1306_WriteCommand>
  15104. ssd1306_SetContrast(0xFF);
  15105. 80060b6: 20ff movs r0, #255 ; 0xff
  15106. 80060b8: f000 fa5b bl 8006572 <ssd1306_SetContrast>
  15107. #ifdef SSD1306_MIRROR_HORIZ
  15108. ssd1306_WriteCommand(0xA0); // Mirror horizontally
  15109. #else
  15110. ssd1306_WriteCommand(0xA1); //--set segment re-map 0 to 127 - CHECK
  15111. 80060bc: 20a1 movs r0, #161 ; 0xa1
  15112. 80060be: f7ff ffa9 bl 8006014 <ssd1306_WriteCommand>
  15113. #endif
  15114. #ifdef SSD1306_INVERSE_COLOR
  15115. ssd1306_WriteCommand(0xA7); //--set inverse color
  15116. #else
  15117. ssd1306_WriteCommand(0xA6); //--set normal color
  15118. 80060c2: 20a6 movs r0, #166 ; 0xa6
  15119. 80060c4: f7ff ffa6 bl 8006014 <ssd1306_WriteCommand>
  15120. // Set multiplex ratio.
  15121. #if (SSD1306_HEIGHT == 128)
  15122. // Found in the Luma Python lib for SH1106.
  15123. ssd1306_WriteCommand(0xFF);
  15124. #else
  15125. ssd1306_WriteCommand(0xA8); //--set multiplex ratio(1 to 64) - CHECK
  15126. 80060c8: 20a8 movs r0, #168 ; 0xa8
  15127. 80060ca: f7ff ffa3 bl 8006014 <ssd1306_WriteCommand>
  15128. #endif
  15129. #if (SSD1306_HEIGHT == 32)
  15130. ssd1306_WriteCommand(0x1F); //
  15131. 80060ce: 201f movs r0, #31
  15132. 80060d0: f7ff ffa0 bl 8006014 <ssd1306_WriteCommand>
  15133. ssd1306_WriteCommand(0x3F); // Seems to work for 128px high displays too.
  15134. #else
  15135. #error "Only 32, 64, or 128 lines of height are supported!"
  15136. #endif
  15137. ssd1306_WriteCommand(0xA4); //0xa4,Output follows RAM content;0xa5,Output ignores RAM content
  15138. 80060d4: 20a4 movs r0, #164 ; 0xa4
  15139. 80060d6: f7ff ff9d bl 8006014 <ssd1306_WriteCommand>
  15140. ssd1306_WriteCommand(0xD3); //-set display offset - CHECK
  15141. 80060da: 20d3 movs r0, #211 ; 0xd3
  15142. 80060dc: f7ff ff9a bl 8006014 <ssd1306_WriteCommand>
  15143. ssd1306_WriteCommand(0x00); //-not offset
  15144. 80060e0: 2000 movs r0, #0
  15145. 80060e2: f7ff ff97 bl 8006014 <ssd1306_WriteCommand>
  15146. ssd1306_WriteCommand(0xD5); //--set display clock divide ratio/oscillator frequency
  15147. 80060e6: 20d5 movs r0, #213 ; 0xd5
  15148. 80060e8: f7ff ff94 bl 8006014 <ssd1306_WriteCommand>
  15149. ssd1306_WriteCommand(0xF0); //--set divide ratio
  15150. 80060ec: 20f0 movs r0, #240 ; 0xf0
  15151. 80060ee: f7ff ff91 bl 8006014 <ssd1306_WriteCommand>
  15152. ssd1306_WriteCommand(0xD9); //--set pre-charge period
  15153. 80060f2: 20d9 movs r0, #217 ; 0xd9
  15154. 80060f4: f7ff ff8e bl 8006014 <ssd1306_WriteCommand>
  15155. ssd1306_WriteCommand(0x22); //
  15156. 80060f8: 2022 movs r0, #34 ; 0x22
  15157. 80060fa: f7ff ff8b bl 8006014 <ssd1306_WriteCommand>
  15158. ssd1306_WriteCommand(0xDA); //--set com pins hardware configuration - CHECK
  15159. 80060fe: 20da movs r0, #218 ; 0xda
  15160. 8006100: f7ff ff88 bl 8006014 <ssd1306_WriteCommand>
  15161. #if (SSD1306_HEIGHT == 32)
  15162. ssd1306_WriteCommand(0x02);
  15163. 8006104: 2002 movs r0, #2
  15164. 8006106: f7ff ff85 bl 8006014 <ssd1306_WriteCommand>
  15165. ssd1306_WriteCommand(0x12);
  15166. #else
  15167. #error "Only 32, 64, or 128 lines of height are supported!"
  15168. #endif
  15169. ssd1306_WriteCommand(0xDB); //--set vcomh
  15170. 800610a: 20db movs r0, #219 ; 0xdb
  15171. 800610c: f7ff ff82 bl 8006014 <ssd1306_WriteCommand>
  15172. ssd1306_WriteCommand(0x20); //0x20,0.77xVcc
  15173. 8006110: 2020 movs r0, #32
  15174. 8006112: f7ff ff7f bl 8006014 <ssd1306_WriteCommand>
  15175. ssd1306_WriteCommand(0x8D); //--set DC-DC enable
  15176. 8006116: 208d movs r0, #141 ; 0x8d
  15177. 8006118: f7ff ff7c bl 8006014 <ssd1306_WriteCommand>
  15178. ssd1306_WriteCommand(0x14); //
  15179. 800611c: 2014 movs r0, #20
  15180. 800611e: f7ff ff79 bl 8006014 <ssd1306_WriteCommand>
  15181. ssd1306_SetDisplayOn(1); //--turn on SSD1306 panel
  15182. 8006122: 2001 movs r0, #1
  15183. 8006124: f000 fa38 bl 8006598 <ssd1306_SetDisplayOn>
  15184. // Clear screen
  15185. ssd1306_Fill(Black);
  15186. 8006128: 2000 movs r0, #0
  15187. 800612a: f000 f80f bl 800614c <ssd1306_Fill>
  15188. // Flush buffer to screen
  15189. ssd1306_UpdateScreen();
  15190. 800612e: f000 f82f bl 8006190 <ssd1306_UpdateScreen>
  15191. // Set default values for screen object
  15192. SSD1306.CurrentX = 0;
  15193. 8006132: 4b05 ldr r3, [pc, #20] ; (8006148 <ssd1306_Init+0xd0>)
  15194. 8006134: 2200 movs r2, #0
  15195. 8006136: 801a strh r2, [r3, #0]
  15196. SSD1306.CurrentY = 0;
  15197. 8006138: 4b03 ldr r3, [pc, #12] ; (8006148 <ssd1306_Init+0xd0>)
  15198. 800613a: 2200 movs r2, #0
  15199. 800613c: 805a strh r2, [r3, #2]
  15200. SSD1306.Initialized = 1;
  15201. 800613e: 4b02 ldr r3, [pc, #8] ; (8006148 <ssd1306_Init+0xd0>)
  15202. 8006140: 2201 movs r2, #1
  15203. 8006142: 715a strb r2, [r3, #5]
  15204. }
  15205. 8006144: bf00 nop
  15206. 8006146: bd80 pop {r7, pc}
  15207. 8006148: 20000408 .word 0x20000408
  15208. 0800614c <ssd1306_Fill>:
  15209. // Fill the whole screen with the given color
  15210. void ssd1306_Fill(SSD1306_COLOR color) {
  15211. 800614c: b480 push {r7}
  15212. 800614e: b085 sub sp, #20
  15213. 8006150: af00 add r7, sp, #0
  15214. 8006152: 4603 mov r3, r0
  15215. 8006154: 71fb strb r3, [r7, #7]
  15216. /* Set memory */
  15217. uint32_t i;
  15218. for(i = 0; i < sizeof(SSD1306_Buffer); i++) {
  15219. 8006156: 2300 movs r3, #0
  15220. 8006158: 60fb str r3, [r7, #12]
  15221. 800615a: e00d b.n 8006178 <ssd1306_Fill+0x2c>
  15222. SSD1306_Buffer[i] = (color == Black) ? 0x00 : 0xFF;
  15223. 800615c: 79fb ldrb r3, [r7, #7]
  15224. 800615e: 2b00 cmp r3, #0
  15225. 8006160: d101 bne.n 8006166 <ssd1306_Fill+0x1a>
  15226. 8006162: 2100 movs r1, #0
  15227. 8006164: e000 b.n 8006168 <ssd1306_Fill+0x1c>
  15228. 8006166: 21ff movs r1, #255 ; 0xff
  15229. 8006168: 4a08 ldr r2, [pc, #32] ; (800618c <ssd1306_Fill+0x40>)
  15230. 800616a: 68fb ldr r3, [r7, #12]
  15231. 800616c: 4413 add r3, r2
  15232. 800616e: 460a mov r2, r1
  15233. 8006170: 701a strb r2, [r3, #0]
  15234. for(i = 0; i < sizeof(SSD1306_Buffer); i++) {
  15235. 8006172: 68fb ldr r3, [r7, #12]
  15236. 8006174: 3301 adds r3, #1
  15237. 8006176: 60fb str r3, [r7, #12]
  15238. 8006178: 68fb ldr r3, [r7, #12]
  15239. 800617a: f5b3 7f00 cmp.w r3, #512 ; 0x200
  15240. 800617e: d3ed bcc.n 800615c <ssd1306_Fill+0x10>
  15241. }
  15242. }
  15243. 8006180: bf00 nop
  15244. 8006182: bf00 nop
  15245. 8006184: 3714 adds r7, #20
  15246. 8006186: 46bd mov sp, r7
  15247. 8006188: bc80 pop {r7}
  15248. 800618a: 4770 bx lr
  15249. 800618c: 20000208 .word 0x20000208
  15250. 08006190 <ssd1306_UpdateScreen>:
  15251. // Write the screenbuffer with changed to the screen
  15252. void ssd1306_UpdateScreen(void) {
  15253. 8006190: b580 push {r7, lr}
  15254. 8006192: b082 sub sp, #8
  15255. 8006194: af00 add r7, sp, #0
  15256. // depends on the screen height:
  15257. //
  15258. // * 32px == 4 pages
  15259. // * 64px == 8 pages
  15260. // * 128px == 16 pages
  15261. for(uint8_t i = 0; i < SSD1306_HEIGHT/8; i++) {
  15262. 8006196: 2300 movs r3, #0
  15263. 8006198: 71fb strb r3, [r7, #7]
  15264. 800619a: e016 b.n 80061ca <ssd1306_UpdateScreen+0x3a>
  15265. ssd1306_WriteCommand(0xB0 + i); // Set the current RAM page address.
  15266. 800619c: 79fb ldrb r3, [r7, #7]
  15267. 800619e: 3b50 subs r3, #80 ; 0x50
  15268. 80061a0: b2db uxtb r3, r3
  15269. 80061a2: 4618 mov r0, r3
  15270. 80061a4: f7ff ff36 bl 8006014 <ssd1306_WriteCommand>
  15271. ssd1306_WriteCommand(0x00);
  15272. 80061a8: 2000 movs r0, #0
  15273. 80061aa: f7ff ff33 bl 8006014 <ssd1306_WriteCommand>
  15274. ssd1306_WriteCommand(0x10);
  15275. 80061ae: 2010 movs r0, #16
  15276. 80061b0: f7ff ff30 bl 8006014 <ssd1306_WriteCommand>
  15277. ssd1306_WriteData(&SSD1306_Buffer[SSD1306_WIDTH*i],SSD1306_WIDTH);
  15278. 80061b4: 79fb ldrb r3, [r7, #7]
  15279. 80061b6: 01db lsls r3, r3, #7
  15280. 80061b8: 4a08 ldr r2, [pc, #32] ; (80061dc <ssd1306_UpdateScreen+0x4c>)
  15281. 80061ba: 4413 add r3, r2
  15282. 80061bc: 2180 movs r1, #128 ; 0x80
  15283. 80061be: 4618 mov r0, r3
  15284. 80061c0: f7ff ff40 bl 8006044 <ssd1306_WriteData>
  15285. for(uint8_t i = 0; i < SSD1306_HEIGHT/8; i++) {
  15286. 80061c4: 79fb ldrb r3, [r7, #7]
  15287. 80061c6: 3301 adds r3, #1
  15288. 80061c8: 71fb strb r3, [r7, #7]
  15289. 80061ca: 79fb ldrb r3, [r7, #7]
  15290. 80061cc: 2b03 cmp r3, #3
  15291. 80061ce: d9e5 bls.n 800619c <ssd1306_UpdateScreen+0xc>
  15292. }
  15293. }
  15294. 80061d0: bf00 nop
  15295. 80061d2: bf00 nop
  15296. 80061d4: 3708 adds r7, #8
  15297. 80061d6: 46bd mov sp, r7
  15298. 80061d8: bd80 pop {r7, pc}
  15299. 80061da: bf00 nop
  15300. 80061dc: 20000208 .word 0x20000208
  15301. 080061e0 <ssd1306_DrawPixel>:
  15302. // Draw one pixel in the screenbuffer
  15303. // X => X Coordinate
  15304. // Y => Y Coordinate
  15305. // color => Pixel color
  15306. void ssd1306_DrawPixel(uint8_t x, uint8_t y, SSD1306_COLOR color) {
  15307. 80061e0: b480 push {r7}
  15308. 80061e2: b083 sub sp, #12
  15309. 80061e4: af00 add r7, sp, #0
  15310. 80061e6: 4603 mov r3, r0
  15311. 80061e8: 71fb strb r3, [r7, #7]
  15312. 80061ea: 460b mov r3, r1
  15313. 80061ec: 71bb strb r3, [r7, #6]
  15314. 80061ee: 4613 mov r3, r2
  15315. 80061f0: 717b strb r3, [r7, #5]
  15316. if(x >= SSD1306_WIDTH || y >= SSD1306_HEIGHT) {
  15317. 80061f2: f997 3007 ldrsb.w r3, [r7, #7]
  15318. 80061f6: 2b00 cmp r3, #0
  15319. 80061f8: db48 blt.n 800628c <ssd1306_DrawPixel+0xac>
  15320. 80061fa: 79bb ldrb r3, [r7, #6]
  15321. 80061fc: 2b1f cmp r3, #31
  15322. 80061fe: d845 bhi.n 800628c <ssd1306_DrawPixel+0xac>
  15323. // Don't write outside the buffer
  15324. return;
  15325. }
  15326. // Check if pixel should be inverted
  15327. if(SSD1306.Inverted) {
  15328. 8006200: 4b25 ldr r3, [pc, #148] ; (8006298 <ssd1306_DrawPixel+0xb8>)
  15329. 8006202: 791b ldrb r3, [r3, #4]
  15330. 8006204: 2b00 cmp r3, #0
  15331. 8006206: d006 beq.n 8006216 <ssd1306_DrawPixel+0x36>
  15332. color = (SSD1306_COLOR)!color;
  15333. 8006208: 797b ldrb r3, [r7, #5]
  15334. 800620a: 2b00 cmp r3, #0
  15335. 800620c: bf0c ite eq
  15336. 800620e: 2301 moveq r3, #1
  15337. 8006210: 2300 movne r3, #0
  15338. 8006212: b2db uxtb r3, r3
  15339. 8006214: 717b strb r3, [r7, #5]
  15340. }
  15341. // Draw in the right color
  15342. if(color == White) {
  15343. 8006216: 797b ldrb r3, [r7, #5]
  15344. 8006218: 2b01 cmp r3, #1
  15345. 800621a: d11a bne.n 8006252 <ssd1306_DrawPixel+0x72>
  15346. SSD1306_Buffer[x + (y / 8) * SSD1306_WIDTH] |= 1 << (y % 8);
  15347. 800621c: 79fa ldrb r2, [r7, #7]
  15348. 800621e: 79bb ldrb r3, [r7, #6]
  15349. 8006220: 08db lsrs r3, r3, #3
  15350. 8006222: b2d8 uxtb r0, r3
  15351. 8006224: 4603 mov r3, r0
  15352. 8006226: 01db lsls r3, r3, #7
  15353. 8006228: 4413 add r3, r2
  15354. 800622a: 4a1c ldr r2, [pc, #112] ; (800629c <ssd1306_DrawPixel+0xbc>)
  15355. 800622c: 5cd3 ldrb r3, [r2, r3]
  15356. 800622e: b25a sxtb r2, r3
  15357. 8006230: 79bb ldrb r3, [r7, #6]
  15358. 8006232: f003 0307 and.w r3, r3, #7
  15359. 8006236: 2101 movs r1, #1
  15360. 8006238: fa01 f303 lsl.w r3, r1, r3
  15361. 800623c: b25b sxtb r3, r3
  15362. 800623e: 4313 orrs r3, r2
  15363. 8006240: b259 sxtb r1, r3
  15364. 8006242: 79fa ldrb r2, [r7, #7]
  15365. 8006244: 4603 mov r3, r0
  15366. 8006246: 01db lsls r3, r3, #7
  15367. 8006248: 4413 add r3, r2
  15368. 800624a: b2c9 uxtb r1, r1
  15369. 800624c: 4a13 ldr r2, [pc, #76] ; (800629c <ssd1306_DrawPixel+0xbc>)
  15370. 800624e: 54d1 strb r1, [r2, r3]
  15371. 8006250: e01d b.n 800628e <ssd1306_DrawPixel+0xae>
  15372. } else {
  15373. SSD1306_Buffer[x + (y / 8) * SSD1306_WIDTH] &= ~(1 << (y % 8));
  15374. 8006252: 79fa ldrb r2, [r7, #7]
  15375. 8006254: 79bb ldrb r3, [r7, #6]
  15376. 8006256: 08db lsrs r3, r3, #3
  15377. 8006258: b2d8 uxtb r0, r3
  15378. 800625a: 4603 mov r3, r0
  15379. 800625c: 01db lsls r3, r3, #7
  15380. 800625e: 4413 add r3, r2
  15381. 8006260: 4a0e ldr r2, [pc, #56] ; (800629c <ssd1306_DrawPixel+0xbc>)
  15382. 8006262: 5cd3 ldrb r3, [r2, r3]
  15383. 8006264: b25a sxtb r2, r3
  15384. 8006266: 79bb ldrb r3, [r7, #6]
  15385. 8006268: f003 0307 and.w r3, r3, #7
  15386. 800626c: 2101 movs r1, #1
  15387. 800626e: fa01 f303 lsl.w r3, r1, r3
  15388. 8006272: b25b sxtb r3, r3
  15389. 8006274: 43db mvns r3, r3
  15390. 8006276: b25b sxtb r3, r3
  15391. 8006278: 4013 ands r3, r2
  15392. 800627a: b259 sxtb r1, r3
  15393. 800627c: 79fa ldrb r2, [r7, #7]
  15394. 800627e: 4603 mov r3, r0
  15395. 8006280: 01db lsls r3, r3, #7
  15396. 8006282: 4413 add r3, r2
  15397. 8006284: b2c9 uxtb r1, r1
  15398. 8006286: 4a05 ldr r2, [pc, #20] ; (800629c <ssd1306_DrawPixel+0xbc>)
  15399. 8006288: 54d1 strb r1, [r2, r3]
  15400. 800628a: e000 b.n 800628e <ssd1306_DrawPixel+0xae>
  15401. return;
  15402. 800628c: bf00 nop
  15403. }
  15404. }
  15405. 800628e: 370c adds r7, #12
  15406. 8006290: 46bd mov sp, r7
  15407. 8006292: bc80 pop {r7}
  15408. 8006294: 4770 bx lr
  15409. 8006296: bf00 nop
  15410. 8006298: 20000408 .word 0x20000408
  15411. 800629c: 20000208 .word 0x20000208
  15412. 080062a0 <ssd1306_WriteChar>:
  15413. // Draw 1 char to the screen buffer
  15414. // ch => char om weg te schrijven
  15415. // Font => Font waarmee we gaan schrijven
  15416. // color => Black or White
  15417. char ssd1306_WriteChar(char ch, FontDef Font, SSD1306_COLOR color) {
  15418. 80062a0: b590 push {r4, r7, lr}
  15419. 80062a2: b089 sub sp, #36 ; 0x24
  15420. 80062a4: af00 add r7, sp, #0
  15421. 80062a6: 4604 mov r4, r0
  15422. 80062a8: 1d38 adds r0, r7, #4
  15423. 80062aa: e880 0006 stmia.w r0, {r1, r2}
  15424. 80062ae: 461a mov r2, r3
  15425. 80062b0: 4623 mov r3, r4
  15426. 80062b2: 73fb strb r3, [r7, #15]
  15427. 80062b4: 4613 mov r3, r2
  15428. 80062b6: 73bb strb r3, [r7, #14]
  15429. uint32_t i, b, j;
  15430. // Check if character is valid
  15431. if (ch < 32 || ch > 126)
  15432. 80062b8: 7bfb ldrb r3, [r7, #15]
  15433. 80062ba: 2b1f cmp r3, #31
  15434. 80062bc: d902 bls.n 80062c4 <ssd1306_WriteChar+0x24>
  15435. 80062be: 7bfb ldrb r3, [r7, #15]
  15436. 80062c0: 2b7e cmp r3, #126 ; 0x7e
  15437. 80062c2: d901 bls.n 80062c8 <ssd1306_WriteChar+0x28>
  15438. return 0;
  15439. 80062c4: 2300 movs r3, #0
  15440. 80062c6: e06d b.n 80063a4 <ssd1306_WriteChar+0x104>
  15441. // Check remaining space on current line
  15442. if (SSD1306_WIDTH < (SSD1306.CurrentX + Font.FontWidth) ||
  15443. 80062c8: 4b38 ldr r3, [pc, #224] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15444. 80062ca: 881b ldrh r3, [r3, #0]
  15445. 80062cc: 461a mov r2, r3
  15446. 80062ce: 793b ldrb r3, [r7, #4]
  15447. 80062d0: 4413 add r3, r2
  15448. 80062d2: 2b80 cmp r3, #128 ; 0x80
  15449. 80062d4: dc06 bgt.n 80062e4 <ssd1306_WriteChar+0x44>
  15450. SSD1306_HEIGHT < (SSD1306.CurrentY + Font.FontHeight))
  15451. 80062d6: 4b35 ldr r3, [pc, #212] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15452. 80062d8: 885b ldrh r3, [r3, #2]
  15453. 80062da: 461a mov r2, r3
  15454. 80062dc: 797b ldrb r3, [r7, #5]
  15455. 80062de: 4413 add r3, r2
  15456. if (SSD1306_WIDTH < (SSD1306.CurrentX + Font.FontWidth) ||
  15457. 80062e0: 2b20 cmp r3, #32
  15458. 80062e2: dd01 ble.n 80062e8 <ssd1306_WriteChar+0x48>
  15459. {
  15460. // Not enough space on current line
  15461. return 0;
  15462. 80062e4: 2300 movs r3, #0
  15463. 80062e6: e05d b.n 80063a4 <ssd1306_WriteChar+0x104>
  15464. }
  15465. // Use the font to write
  15466. for(i = 0; i < Font.FontHeight; i++) {
  15467. 80062e8: 2300 movs r3, #0
  15468. 80062ea: 61fb str r3, [r7, #28]
  15469. 80062ec: e04c b.n 8006388 <ssd1306_WriteChar+0xe8>
  15470. b = Font.data[(ch - 32) * Font.FontHeight + i];
  15471. 80062ee: 68ba ldr r2, [r7, #8]
  15472. 80062f0: 7bfb ldrb r3, [r7, #15]
  15473. 80062f2: 3b20 subs r3, #32
  15474. 80062f4: 7979 ldrb r1, [r7, #5]
  15475. 80062f6: fb01 f303 mul.w r3, r1, r3
  15476. 80062fa: 4619 mov r1, r3
  15477. 80062fc: 69fb ldr r3, [r7, #28]
  15478. 80062fe: 440b add r3, r1
  15479. 8006300: 005b lsls r3, r3, #1
  15480. 8006302: 4413 add r3, r2
  15481. 8006304: 881b ldrh r3, [r3, #0]
  15482. 8006306: 617b str r3, [r7, #20]
  15483. for(j = 0; j < Font.FontWidth; j++) {
  15484. 8006308: 2300 movs r3, #0
  15485. 800630a: 61bb str r3, [r7, #24]
  15486. 800630c: e034 b.n 8006378 <ssd1306_WriteChar+0xd8>
  15487. if((b << j) & 0x8000) {
  15488. 800630e: 697a ldr r2, [r7, #20]
  15489. 8006310: 69bb ldr r3, [r7, #24]
  15490. 8006312: fa02 f303 lsl.w r3, r2, r3
  15491. 8006316: f403 4300 and.w r3, r3, #32768 ; 0x8000
  15492. 800631a: 2b00 cmp r3, #0
  15493. 800631c: d012 beq.n 8006344 <ssd1306_WriteChar+0xa4>
  15494. ssd1306_DrawPixel(SSD1306.CurrentX + j, (SSD1306.CurrentY + i), (SSD1306_COLOR) color);
  15495. 800631e: 4b23 ldr r3, [pc, #140] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15496. 8006320: 881b ldrh r3, [r3, #0]
  15497. 8006322: b2da uxtb r2, r3
  15498. 8006324: 69bb ldr r3, [r7, #24]
  15499. 8006326: b2db uxtb r3, r3
  15500. 8006328: 4413 add r3, r2
  15501. 800632a: b2d8 uxtb r0, r3
  15502. 800632c: 4b1f ldr r3, [pc, #124] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15503. 800632e: 885b ldrh r3, [r3, #2]
  15504. 8006330: b2da uxtb r2, r3
  15505. 8006332: 69fb ldr r3, [r7, #28]
  15506. 8006334: b2db uxtb r3, r3
  15507. 8006336: 4413 add r3, r2
  15508. 8006338: b2db uxtb r3, r3
  15509. 800633a: 7bba ldrb r2, [r7, #14]
  15510. 800633c: 4619 mov r1, r3
  15511. 800633e: f7ff ff4f bl 80061e0 <ssd1306_DrawPixel>
  15512. 8006342: e016 b.n 8006372 <ssd1306_WriteChar+0xd2>
  15513. } else {
  15514. ssd1306_DrawPixel(SSD1306.CurrentX + j, (SSD1306.CurrentY + i), (SSD1306_COLOR)!color);
  15515. 8006344: 4b19 ldr r3, [pc, #100] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15516. 8006346: 881b ldrh r3, [r3, #0]
  15517. 8006348: b2da uxtb r2, r3
  15518. 800634a: 69bb ldr r3, [r7, #24]
  15519. 800634c: b2db uxtb r3, r3
  15520. 800634e: 4413 add r3, r2
  15521. 8006350: b2d8 uxtb r0, r3
  15522. 8006352: 4b16 ldr r3, [pc, #88] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15523. 8006354: 885b ldrh r3, [r3, #2]
  15524. 8006356: b2da uxtb r2, r3
  15525. 8006358: 69fb ldr r3, [r7, #28]
  15526. 800635a: b2db uxtb r3, r3
  15527. 800635c: 4413 add r3, r2
  15528. 800635e: b2d9 uxtb r1, r3
  15529. 8006360: 7bbb ldrb r3, [r7, #14]
  15530. 8006362: 2b00 cmp r3, #0
  15531. 8006364: bf0c ite eq
  15532. 8006366: 2301 moveq r3, #1
  15533. 8006368: 2300 movne r3, #0
  15534. 800636a: b2db uxtb r3, r3
  15535. 800636c: 461a mov r2, r3
  15536. 800636e: f7ff ff37 bl 80061e0 <ssd1306_DrawPixel>
  15537. for(j = 0; j < Font.FontWidth; j++) {
  15538. 8006372: 69bb ldr r3, [r7, #24]
  15539. 8006374: 3301 adds r3, #1
  15540. 8006376: 61bb str r3, [r7, #24]
  15541. 8006378: 793b ldrb r3, [r7, #4]
  15542. 800637a: 461a mov r2, r3
  15543. 800637c: 69bb ldr r3, [r7, #24]
  15544. 800637e: 4293 cmp r3, r2
  15545. 8006380: d3c5 bcc.n 800630e <ssd1306_WriteChar+0x6e>
  15546. for(i = 0; i < Font.FontHeight; i++) {
  15547. 8006382: 69fb ldr r3, [r7, #28]
  15548. 8006384: 3301 adds r3, #1
  15549. 8006386: 61fb str r3, [r7, #28]
  15550. 8006388: 797b ldrb r3, [r7, #5]
  15551. 800638a: 461a mov r2, r3
  15552. 800638c: 69fb ldr r3, [r7, #28]
  15553. 800638e: 4293 cmp r3, r2
  15554. 8006390: d3ad bcc.n 80062ee <ssd1306_WriteChar+0x4e>
  15555. }
  15556. }
  15557. }
  15558. // The current space is now taken
  15559. SSD1306.CurrentX += Font.FontWidth;
  15560. 8006392: 4b06 ldr r3, [pc, #24] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15561. 8006394: 881a ldrh r2, [r3, #0]
  15562. 8006396: 793b ldrb r3, [r7, #4]
  15563. 8006398: b29b uxth r3, r3
  15564. 800639a: 4413 add r3, r2
  15565. 800639c: b29a uxth r2, r3
  15566. 800639e: 4b03 ldr r3, [pc, #12] ; (80063ac <ssd1306_WriteChar+0x10c>)
  15567. 80063a0: 801a strh r2, [r3, #0]
  15568. // Return written char for validation
  15569. return ch;
  15570. 80063a2: 7bfb ldrb r3, [r7, #15]
  15571. }
  15572. 80063a4: 4618 mov r0, r3
  15573. 80063a6: 3724 adds r7, #36 ; 0x24
  15574. 80063a8: 46bd mov sp, r7
  15575. 80063aa: bd90 pop {r4, r7, pc}
  15576. 80063ac: 20000408 .word 0x20000408
  15577. 080063b0 <ssd1306_WriteString>:
  15578. // Write full string to screenbuffer
  15579. char ssd1306_WriteString(char* str, FontDef Font, SSD1306_COLOR color) {
  15580. 80063b0: b580 push {r7, lr}
  15581. 80063b2: b084 sub sp, #16
  15582. 80063b4: af00 add r7, sp, #0
  15583. 80063b6: 60f8 str r0, [r7, #12]
  15584. 80063b8: 1d38 adds r0, r7, #4
  15585. 80063ba: e880 0006 stmia.w r0, {r1, r2}
  15586. 80063be: 70fb strb r3, [r7, #3]
  15587. // Write until null-byte
  15588. while (*str) {
  15589. 80063c0: e012 b.n 80063e8 <ssd1306_WriteString+0x38>
  15590. if (ssd1306_WriteChar(*str, Font, color) != *str) {
  15591. 80063c2: 68fb ldr r3, [r7, #12]
  15592. 80063c4: 7818 ldrb r0, [r3, #0]
  15593. 80063c6: 78fb ldrb r3, [r7, #3]
  15594. 80063c8: 1d3a adds r2, r7, #4
  15595. 80063ca: ca06 ldmia r2, {r1, r2}
  15596. 80063cc: f7ff ff68 bl 80062a0 <ssd1306_WriteChar>
  15597. 80063d0: 4603 mov r3, r0
  15598. 80063d2: 461a mov r2, r3
  15599. 80063d4: 68fb ldr r3, [r7, #12]
  15600. 80063d6: 781b ldrb r3, [r3, #0]
  15601. 80063d8: 429a cmp r2, r3
  15602. 80063da: d002 beq.n 80063e2 <ssd1306_WriteString+0x32>
  15603. // Char could not be written
  15604. return *str;
  15605. 80063dc: 68fb ldr r3, [r7, #12]
  15606. 80063de: 781b ldrb r3, [r3, #0]
  15607. 80063e0: e008 b.n 80063f4 <ssd1306_WriteString+0x44>
  15608. }
  15609. // Next char
  15610. str++;
  15611. 80063e2: 68fb ldr r3, [r7, #12]
  15612. 80063e4: 3301 adds r3, #1
  15613. 80063e6: 60fb str r3, [r7, #12]
  15614. while (*str) {
  15615. 80063e8: 68fb ldr r3, [r7, #12]
  15616. 80063ea: 781b ldrb r3, [r3, #0]
  15617. 80063ec: 2b00 cmp r3, #0
  15618. 80063ee: d1e8 bne.n 80063c2 <ssd1306_WriteString+0x12>
  15619. }
  15620. // Everything ok
  15621. return *str;
  15622. 80063f0: 68fb ldr r3, [r7, #12]
  15623. 80063f2: 781b ldrb r3, [r3, #0]
  15624. }
  15625. 80063f4: 4618 mov r0, r3
  15626. 80063f6: 3710 adds r7, #16
  15627. 80063f8: 46bd mov sp, r7
  15628. 80063fa: bd80 pop {r7, pc}
  15629. 080063fc <ssd1306_SetCursor>:
  15630. // Position the cursor
  15631. void ssd1306_SetCursor(uint8_t x, uint8_t y) {
  15632. 80063fc: b480 push {r7}
  15633. 80063fe: b083 sub sp, #12
  15634. 8006400: af00 add r7, sp, #0
  15635. 8006402: 4603 mov r3, r0
  15636. 8006404: 460a mov r2, r1
  15637. 8006406: 71fb strb r3, [r7, #7]
  15638. 8006408: 4613 mov r3, r2
  15639. 800640a: 71bb strb r3, [r7, #6]
  15640. SSD1306.CurrentX = x;
  15641. 800640c: 79fb ldrb r3, [r7, #7]
  15642. 800640e: b29a uxth r2, r3
  15643. 8006410: 4b05 ldr r3, [pc, #20] ; (8006428 <ssd1306_SetCursor+0x2c>)
  15644. 8006412: 801a strh r2, [r3, #0]
  15645. SSD1306.CurrentY = y;
  15646. 8006414: 79bb ldrb r3, [r7, #6]
  15647. 8006416: b29a uxth r2, r3
  15648. 8006418: 4b03 ldr r3, [pc, #12] ; (8006428 <ssd1306_SetCursor+0x2c>)
  15649. 800641a: 805a strh r2, [r3, #2]
  15650. }
  15651. 800641c: bf00 nop
  15652. 800641e: 370c adds r7, #12
  15653. 8006420: 46bd mov sp, r7
  15654. 8006422: bc80 pop {r7}
  15655. 8006424: 4770 bx lr
  15656. 8006426: bf00 nop
  15657. 8006428: 20000408 .word 0x20000408
  15658. 0800642c <ssd1306_Line>:
  15659. // Draw line by Bresenhem's algorithm
  15660. void ssd1306_Line(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) {
  15661. 800642c: b590 push {r4, r7, lr}
  15662. 800642e: b089 sub sp, #36 ; 0x24
  15663. 8006430: af00 add r7, sp, #0
  15664. 8006432: 4604 mov r4, r0
  15665. 8006434: 4608 mov r0, r1
  15666. 8006436: 4611 mov r1, r2
  15667. 8006438: 461a mov r2, r3
  15668. 800643a: 4623 mov r3, r4
  15669. 800643c: 71fb strb r3, [r7, #7]
  15670. 800643e: 4603 mov r3, r0
  15671. 8006440: 71bb strb r3, [r7, #6]
  15672. 8006442: 460b mov r3, r1
  15673. 8006444: 717b strb r3, [r7, #5]
  15674. 8006446: 4613 mov r3, r2
  15675. 8006448: 713b strb r3, [r7, #4]
  15676. int32_t deltaX = abs(x2 - x1);
  15677. 800644a: 797a ldrb r2, [r7, #5]
  15678. 800644c: 79fb ldrb r3, [r7, #7]
  15679. 800644e: 1ad3 subs r3, r2, r3
  15680. 8006450: 2b00 cmp r3, #0
  15681. 8006452: bfb8 it lt
  15682. 8006454: 425b neglt r3, r3
  15683. 8006456: 61bb str r3, [r7, #24]
  15684. int32_t deltaY = abs(y2 - y1);
  15685. 8006458: 793a ldrb r2, [r7, #4]
  15686. 800645a: 79bb ldrb r3, [r7, #6]
  15687. 800645c: 1ad3 subs r3, r2, r3
  15688. 800645e: 2b00 cmp r3, #0
  15689. 8006460: bfb8 it lt
  15690. 8006462: 425b neglt r3, r3
  15691. 8006464: 617b str r3, [r7, #20]
  15692. int32_t signX = ((x1 < x2) ? 1 : -1);
  15693. 8006466: 79fa ldrb r2, [r7, #7]
  15694. 8006468: 797b ldrb r3, [r7, #5]
  15695. 800646a: 429a cmp r2, r3
  15696. 800646c: d201 bcs.n 8006472 <ssd1306_Line+0x46>
  15697. 800646e: 2301 movs r3, #1
  15698. 8006470: e001 b.n 8006476 <ssd1306_Line+0x4a>
  15699. 8006472: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  15700. 8006476: 613b str r3, [r7, #16]
  15701. int32_t signY = ((y1 < y2) ? 1 : -1);
  15702. 8006478: 79ba ldrb r2, [r7, #6]
  15703. 800647a: 793b ldrb r3, [r7, #4]
  15704. 800647c: 429a cmp r2, r3
  15705. 800647e: d201 bcs.n 8006484 <ssd1306_Line+0x58>
  15706. 8006480: 2301 movs r3, #1
  15707. 8006482: e001 b.n 8006488 <ssd1306_Line+0x5c>
  15708. 8006484: f04f 33ff mov.w r3, #4294967295 ; 0xffffffff
  15709. 8006488: 60fb str r3, [r7, #12]
  15710. int32_t error = deltaX - deltaY;
  15711. 800648a: 69ba ldr r2, [r7, #24]
  15712. 800648c: 697b ldr r3, [r7, #20]
  15713. 800648e: 1ad3 subs r3, r2, r3
  15714. 8006490: 61fb str r3, [r7, #28]
  15715. int32_t error2;
  15716. ssd1306_DrawPixel(x2, y2, color);
  15717. 8006492: f897 2030 ldrb.w r2, [r7, #48] ; 0x30
  15718. 8006496: 7939 ldrb r1, [r7, #4]
  15719. 8006498: 797b ldrb r3, [r7, #5]
  15720. 800649a: 4618 mov r0, r3
  15721. 800649c: f7ff fea0 bl 80061e0 <ssd1306_DrawPixel>
  15722. while((x1 != x2) || (y1 != y2))
  15723. 80064a0: e024 b.n 80064ec <ssd1306_Line+0xc0>
  15724. {
  15725. ssd1306_DrawPixel(x1, y1, color);
  15726. 80064a2: f897 2030 ldrb.w r2, [r7, #48] ; 0x30
  15727. 80064a6: 79b9 ldrb r1, [r7, #6]
  15728. 80064a8: 79fb ldrb r3, [r7, #7]
  15729. 80064aa: 4618 mov r0, r3
  15730. 80064ac: f7ff fe98 bl 80061e0 <ssd1306_DrawPixel>
  15731. error2 = error * 2;
  15732. 80064b0: 69fb ldr r3, [r7, #28]
  15733. 80064b2: 005b lsls r3, r3, #1
  15734. 80064b4: 60bb str r3, [r7, #8]
  15735. if(error2 > -deltaY)
  15736. 80064b6: 697b ldr r3, [r7, #20]
  15737. 80064b8: 425b negs r3, r3
  15738. 80064ba: 68ba ldr r2, [r7, #8]
  15739. 80064bc: 429a cmp r2, r3
  15740. 80064be: dd08 ble.n 80064d2 <ssd1306_Line+0xa6>
  15741. {
  15742. error -= deltaY;
  15743. 80064c0: 69fa ldr r2, [r7, #28]
  15744. 80064c2: 697b ldr r3, [r7, #20]
  15745. 80064c4: 1ad3 subs r3, r2, r3
  15746. 80064c6: 61fb str r3, [r7, #28]
  15747. x1 += signX;
  15748. 80064c8: 693b ldr r3, [r7, #16]
  15749. 80064ca: b2da uxtb r2, r3
  15750. 80064cc: 79fb ldrb r3, [r7, #7]
  15751. 80064ce: 4413 add r3, r2
  15752. 80064d0: 71fb strb r3, [r7, #7]
  15753. else
  15754. {
  15755. /*nothing to do*/
  15756. }
  15757. if(error2 < deltaX)
  15758. 80064d2: 68ba ldr r2, [r7, #8]
  15759. 80064d4: 69bb ldr r3, [r7, #24]
  15760. 80064d6: 429a cmp r2, r3
  15761. 80064d8: da08 bge.n 80064ec <ssd1306_Line+0xc0>
  15762. {
  15763. error += deltaX;
  15764. 80064da: 69fa ldr r2, [r7, #28]
  15765. 80064dc: 69bb ldr r3, [r7, #24]
  15766. 80064de: 4413 add r3, r2
  15767. 80064e0: 61fb str r3, [r7, #28]
  15768. y1 += signY;
  15769. 80064e2: 68fb ldr r3, [r7, #12]
  15770. 80064e4: b2da uxtb r2, r3
  15771. 80064e6: 79bb ldrb r3, [r7, #6]
  15772. 80064e8: 4413 add r3, r2
  15773. 80064ea: 71bb strb r3, [r7, #6]
  15774. while((x1 != x2) || (y1 != y2))
  15775. 80064ec: 79fa ldrb r2, [r7, #7]
  15776. 80064ee: 797b ldrb r3, [r7, #5]
  15777. 80064f0: 429a cmp r2, r3
  15778. 80064f2: d1d6 bne.n 80064a2 <ssd1306_Line+0x76>
  15779. 80064f4: 79ba ldrb r2, [r7, #6]
  15780. 80064f6: 793b ldrb r3, [r7, #4]
  15781. 80064f8: 429a cmp r2, r3
  15782. 80064fa: d1d2 bne.n 80064a2 <ssd1306_Line+0x76>
  15783. else
  15784. {
  15785. /*nothing to do*/
  15786. }
  15787. }
  15788. return;
  15789. 80064fc: bf00 nop
  15790. }
  15791. 80064fe: 3724 adds r7, #36 ; 0x24
  15792. 8006500: 46bd mov sp, r7
  15793. 8006502: bd90 pop {r4, r7, pc}
  15794. 08006504 <ssd1306_DrawRectangle>:
  15795. return;
  15796. }
  15797. //Draw rectangle
  15798. void ssd1306_DrawRectangle(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, SSD1306_COLOR color) {
  15799. 8006504: b590 push {r4, r7, lr}
  15800. 8006506: b085 sub sp, #20
  15801. 8006508: af02 add r7, sp, #8
  15802. 800650a: 4604 mov r4, r0
  15803. 800650c: 4608 mov r0, r1
  15804. 800650e: 4611 mov r1, r2
  15805. 8006510: 461a mov r2, r3
  15806. 8006512: 4623 mov r3, r4
  15807. 8006514: 71fb strb r3, [r7, #7]
  15808. 8006516: 4603 mov r3, r0
  15809. 8006518: 71bb strb r3, [r7, #6]
  15810. 800651a: 460b mov r3, r1
  15811. 800651c: 717b strb r3, [r7, #5]
  15812. 800651e: 4613 mov r3, r2
  15813. 8006520: 713b strb r3, [r7, #4]
  15814. ssd1306_Line(x1,y1,x2,y1,color);
  15815. 8006522: 79bc ldrb r4, [r7, #6]
  15816. 8006524: 797a ldrb r2, [r7, #5]
  15817. 8006526: 79b9 ldrb r1, [r7, #6]
  15818. 8006528: 79f8 ldrb r0, [r7, #7]
  15819. 800652a: 7e3b ldrb r3, [r7, #24]
  15820. 800652c: 9300 str r3, [sp, #0]
  15821. 800652e: 4623 mov r3, r4
  15822. 8006530: f7ff ff7c bl 800642c <ssd1306_Line>
  15823. ssd1306_Line(x2,y1,x2,y2,color);
  15824. 8006534: 793c ldrb r4, [r7, #4]
  15825. 8006536: 797a ldrb r2, [r7, #5]
  15826. 8006538: 79b9 ldrb r1, [r7, #6]
  15827. 800653a: 7978 ldrb r0, [r7, #5]
  15828. 800653c: 7e3b ldrb r3, [r7, #24]
  15829. 800653e: 9300 str r3, [sp, #0]
  15830. 8006540: 4623 mov r3, r4
  15831. 8006542: f7ff ff73 bl 800642c <ssd1306_Line>
  15832. ssd1306_Line(x2,y2,x1,y2,color);
  15833. 8006546: 793c ldrb r4, [r7, #4]
  15834. 8006548: 79fa ldrb r2, [r7, #7]
  15835. 800654a: 7939 ldrb r1, [r7, #4]
  15836. 800654c: 7978 ldrb r0, [r7, #5]
  15837. 800654e: 7e3b ldrb r3, [r7, #24]
  15838. 8006550: 9300 str r3, [sp, #0]
  15839. 8006552: 4623 mov r3, r4
  15840. 8006554: f7ff ff6a bl 800642c <ssd1306_Line>
  15841. ssd1306_Line(x1,y2,x1,y1,color);
  15842. 8006558: 79bc ldrb r4, [r7, #6]
  15843. 800655a: 79fa ldrb r2, [r7, #7]
  15844. 800655c: 7939 ldrb r1, [r7, #4]
  15845. 800655e: 79f8 ldrb r0, [r7, #7]
  15846. 8006560: 7e3b ldrb r3, [r7, #24]
  15847. 8006562: 9300 str r3, [sp, #0]
  15848. 8006564: 4623 mov r3, r4
  15849. 8006566: f7ff ff61 bl 800642c <ssd1306_Line>
  15850. return;
  15851. 800656a: bf00 nop
  15852. }
  15853. 800656c: 370c adds r7, #12
  15854. 800656e: 46bd mov sp, r7
  15855. 8006570: bd90 pop {r4, r7, pc}
  15856. 08006572 <ssd1306_SetContrast>:
  15857. void ssd1306_SetContrast(const uint8_t value) {
  15858. 8006572: b580 push {r7, lr}
  15859. 8006574: b084 sub sp, #16
  15860. 8006576: af00 add r7, sp, #0
  15861. 8006578: 4603 mov r3, r0
  15862. 800657a: 71fb strb r3, [r7, #7]
  15863. const uint8_t kSetContrastControlRegister = 0x81;
  15864. 800657c: 2381 movs r3, #129 ; 0x81
  15865. 800657e: 73fb strb r3, [r7, #15]
  15866. ssd1306_WriteCommand(kSetContrastControlRegister);
  15867. 8006580: 7bfb ldrb r3, [r7, #15]
  15868. 8006582: 4618 mov r0, r3
  15869. 8006584: f7ff fd46 bl 8006014 <ssd1306_WriteCommand>
  15870. ssd1306_WriteCommand(value);
  15871. 8006588: 79fb ldrb r3, [r7, #7]
  15872. 800658a: 4618 mov r0, r3
  15873. 800658c: f7ff fd42 bl 8006014 <ssd1306_WriteCommand>
  15874. }
  15875. 8006590: bf00 nop
  15876. 8006592: 3710 adds r7, #16
  15877. 8006594: 46bd mov sp, r7
  15878. 8006596: bd80 pop {r7, pc}
  15879. 08006598 <ssd1306_SetDisplayOn>:
  15880. void ssd1306_SetDisplayOn(const uint8_t on) {
  15881. 8006598: b580 push {r7, lr}
  15882. 800659a: b084 sub sp, #16
  15883. 800659c: af00 add r7, sp, #0
  15884. 800659e: 4603 mov r3, r0
  15885. 80065a0: 71fb strb r3, [r7, #7]
  15886. uint8_t value;
  15887. if (on) {
  15888. 80065a2: 79fb ldrb r3, [r7, #7]
  15889. 80065a4: 2b00 cmp r3, #0
  15890. 80065a6: d005 beq.n 80065b4 <ssd1306_SetDisplayOn+0x1c>
  15891. value = 0xAF; // Display on
  15892. 80065a8: 23af movs r3, #175 ; 0xaf
  15893. 80065aa: 73fb strb r3, [r7, #15]
  15894. SSD1306.DisplayOn = 1;
  15895. 80065ac: 4b08 ldr r3, [pc, #32] ; (80065d0 <ssd1306_SetDisplayOn+0x38>)
  15896. 80065ae: 2201 movs r2, #1
  15897. 80065b0: 719a strb r2, [r3, #6]
  15898. 80065b2: e004 b.n 80065be <ssd1306_SetDisplayOn+0x26>
  15899. } else {
  15900. value = 0xAE; // Display off
  15901. 80065b4: 23ae movs r3, #174 ; 0xae
  15902. 80065b6: 73fb strb r3, [r7, #15]
  15903. SSD1306.DisplayOn = 0;
  15904. 80065b8: 4b05 ldr r3, [pc, #20] ; (80065d0 <ssd1306_SetDisplayOn+0x38>)
  15905. 80065ba: 2200 movs r2, #0
  15906. 80065bc: 719a strb r2, [r3, #6]
  15907. }
  15908. ssd1306_WriteCommand(value);
  15909. 80065be: 7bfb ldrb r3, [r7, #15]
  15910. 80065c0: 4618 mov r0, r3
  15911. 80065c2: f7ff fd27 bl 8006014 <ssd1306_WriteCommand>
  15912. }
  15913. 80065c6: bf00 nop
  15914. 80065c8: 3710 adds r7, #16
  15915. 80065ca: 46bd mov sp, r7
  15916. 80065cc: bd80 pop {r7, pc}
  15917. 80065ce: bf00 nop
  15918. 80065d0: 20000408 .word 0x20000408
  15919. 080065d4 <__errno>:
  15920. 80065d4: 4b01 ldr r3, [pc, #4] ; (80065dc <__errno+0x8>)
  15921. 80065d6: 6818 ldr r0, [r3, #0]
  15922. 80065d8: 4770 bx lr
  15923. 80065da: bf00 nop
  15924. 80065dc: 20000014 .word 0x20000014
  15925. 080065e0 <__libc_init_array>:
  15926. 80065e0: b570 push {r4, r5, r6, lr}
  15927. 80065e2: 2600 movs r6, #0
  15928. 80065e4: 4d0c ldr r5, [pc, #48] ; (8006618 <__libc_init_array+0x38>)
  15929. 80065e6: 4c0d ldr r4, [pc, #52] ; (800661c <__libc_init_array+0x3c>)
  15930. 80065e8: 1b64 subs r4, r4, r5
  15931. 80065ea: 10a4 asrs r4, r4, #2
  15932. 80065ec: 42a6 cmp r6, r4
  15933. 80065ee: d109 bne.n 8006604 <__libc_init_array+0x24>
  15934. 80065f0: f002 febc bl 800936c <_init>
  15935. 80065f4: 2600 movs r6, #0
  15936. 80065f6: 4d0a ldr r5, [pc, #40] ; (8006620 <__libc_init_array+0x40>)
  15937. 80065f8: 4c0a ldr r4, [pc, #40] ; (8006624 <__libc_init_array+0x44>)
  15938. 80065fa: 1b64 subs r4, r4, r5
  15939. 80065fc: 10a4 asrs r4, r4, #2
  15940. 80065fe: 42a6 cmp r6, r4
  15941. 8006600: d105 bne.n 800660e <__libc_init_array+0x2e>
  15942. 8006602: bd70 pop {r4, r5, r6, pc}
  15943. 8006604: f855 3b04 ldr.w r3, [r5], #4
  15944. 8006608: 4798 blx r3
  15945. 800660a: 3601 adds r6, #1
  15946. 800660c: e7ee b.n 80065ec <__libc_init_array+0xc>
  15947. 800660e: f855 3b04 ldr.w r3, [r5], #4
  15948. 8006612: 4798 blx r3
  15949. 8006614: 3601 adds r6, #1
  15950. 8006616: e7f2 b.n 80065fe <__libc_init_array+0x1e>
  15951. 8006618: 0800a4fc .word 0x0800a4fc
  15952. 800661c: 0800a4fc .word 0x0800a4fc
  15953. 8006620: 0800a4fc .word 0x0800a4fc
  15954. 8006624: 0800a500 .word 0x0800a500
  15955. 08006628 <memcpy>:
  15956. 8006628: 440a add r2, r1
  15957. 800662a: 4291 cmp r1, r2
  15958. 800662c: f100 33ff add.w r3, r0, #4294967295 ; 0xffffffff
  15959. 8006630: d100 bne.n 8006634 <memcpy+0xc>
  15960. 8006632: 4770 bx lr
  15961. 8006634: b510 push {r4, lr}
  15962. 8006636: f811 4b01 ldrb.w r4, [r1], #1
  15963. 800663a: 4291 cmp r1, r2
  15964. 800663c: f803 4f01 strb.w r4, [r3, #1]!
  15965. 8006640: d1f9 bne.n 8006636 <memcpy+0xe>
  15966. 8006642: bd10 pop {r4, pc}
  15967. 08006644 <memmove>:
  15968. 8006644: 4288 cmp r0, r1
  15969. 8006646: b510 push {r4, lr}
  15970. 8006648: eb01 0402 add.w r4, r1, r2
  15971. 800664c: d902 bls.n 8006654 <memmove+0x10>
  15972. 800664e: 4284 cmp r4, r0
  15973. 8006650: 4623 mov r3, r4
  15974. 8006652: d807 bhi.n 8006664 <memmove+0x20>
  15975. 8006654: 1e43 subs r3, r0, #1
  15976. 8006656: 42a1 cmp r1, r4
  15977. 8006658: d008 beq.n 800666c <memmove+0x28>
  15978. 800665a: f811 2b01 ldrb.w r2, [r1], #1
  15979. 800665e: f803 2f01 strb.w r2, [r3, #1]!
  15980. 8006662: e7f8 b.n 8006656 <memmove+0x12>
  15981. 8006664: 4601 mov r1, r0
  15982. 8006666: 4402 add r2, r0
  15983. 8006668: 428a cmp r2, r1
  15984. 800666a: d100 bne.n 800666e <memmove+0x2a>
  15985. 800666c: bd10 pop {r4, pc}
  15986. 800666e: f813 4d01 ldrb.w r4, [r3, #-1]!
  15987. 8006672: f802 4d01 strb.w r4, [r2, #-1]!
  15988. 8006676: e7f7 b.n 8006668 <memmove+0x24>
  15989. 08006678 <memset>:
  15990. 8006678: 4603 mov r3, r0
  15991. 800667a: 4402 add r2, r0
  15992. 800667c: 4293 cmp r3, r2
  15993. 800667e: d100 bne.n 8006682 <memset+0xa>
  15994. 8006680: 4770 bx lr
  15995. 8006682: f803 1b01 strb.w r1, [r3], #1
  15996. 8006686: e7f9 b.n 800667c <memset+0x4>
  15997. 08006688 <__cvt>:
  15998. 8006688: 2b00 cmp r3, #0
  15999. 800668a: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  16000. 800668e: 461f mov r7, r3
  16001. 8006690: bfbb ittet lt
  16002. 8006692: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000
  16003. 8006696: 461f movlt r7, r3
  16004. 8006698: 2300 movge r3, #0
  16005. 800669a: 232d movlt r3, #45 ; 0x2d
  16006. 800669c: b088 sub sp, #32
  16007. 800669e: 4614 mov r4, r2
  16008. 80066a0: 9a12 ldr r2, [sp, #72] ; 0x48
  16009. 80066a2: 9d10 ldr r5, [sp, #64] ; 0x40
  16010. 80066a4: 7013 strb r3, [r2, #0]
  16011. 80066a6: 9b14 ldr r3, [sp, #80] ; 0x50
  16012. 80066a8: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c
  16013. 80066ac: f023 0820 bic.w r8, r3, #32
  16014. 80066b0: f1b8 0f46 cmp.w r8, #70 ; 0x46
  16015. 80066b4: d005 beq.n 80066c2 <__cvt+0x3a>
  16016. 80066b6: f1b8 0f45 cmp.w r8, #69 ; 0x45
  16017. 80066ba: d100 bne.n 80066be <__cvt+0x36>
  16018. 80066bc: 3501 adds r5, #1
  16019. 80066be: 2302 movs r3, #2
  16020. 80066c0: e000 b.n 80066c4 <__cvt+0x3c>
  16021. 80066c2: 2303 movs r3, #3
  16022. 80066c4: aa07 add r2, sp, #28
  16023. 80066c6: 9204 str r2, [sp, #16]
  16024. 80066c8: aa06 add r2, sp, #24
  16025. 80066ca: e9cd a202 strd sl, r2, [sp, #8]
  16026. 80066ce: e9cd 3500 strd r3, r5, [sp]
  16027. 80066d2: 4622 mov r2, r4
  16028. 80066d4: 463b mov r3, r7
  16029. 80066d6: f000 fce7 bl 80070a8 <_dtoa_r>
  16030. 80066da: f1b8 0f47 cmp.w r8, #71 ; 0x47
  16031. 80066de: 4606 mov r6, r0
  16032. 80066e0: d102 bne.n 80066e8 <__cvt+0x60>
  16033. 80066e2: 9b11 ldr r3, [sp, #68] ; 0x44
  16034. 80066e4: 07db lsls r3, r3, #31
  16035. 80066e6: d522 bpl.n 800672e <__cvt+0xa6>
  16036. 80066e8: f1b8 0f46 cmp.w r8, #70 ; 0x46
  16037. 80066ec: eb06 0905 add.w r9, r6, r5
  16038. 80066f0: d110 bne.n 8006714 <__cvt+0x8c>
  16039. 80066f2: 7833 ldrb r3, [r6, #0]
  16040. 80066f4: 2b30 cmp r3, #48 ; 0x30
  16041. 80066f6: d10a bne.n 800670e <__cvt+0x86>
  16042. 80066f8: 2200 movs r2, #0
  16043. 80066fa: 2300 movs r3, #0
  16044. 80066fc: 4620 mov r0, r4
  16045. 80066fe: 4639 mov r1, r7
  16046. 8006700: f7fa f96a bl 80009d8 <__aeabi_dcmpeq>
  16047. 8006704: b918 cbnz r0, 800670e <__cvt+0x86>
  16048. 8006706: f1c5 0501 rsb r5, r5, #1
  16049. 800670a: f8ca 5000 str.w r5, [sl]
  16050. 800670e: f8da 3000 ldr.w r3, [sl]
  16051. 8006712: 4499 add r9, r3
  16052. 8006714: 2200 movs r2, #0
  16053. 8006716: 2300 movs r3, #0
  16054. 8006718: 4620 mov r0, r4
  16055. 800671a: 4639 mov r1, r7
  16056. 800671c: f7fa f95c bl 80009d8 <__aeabi_dcmpeq>
  16057. 8006720: b108 cbz r0, 8006726 <__cvt+0x9e>
  16058. 8006722: f8cd 901c str.w r9, [sp, #28]
  16059. 8006726: 2230 movs r2, #48 ; 0x30
  16060. 8006728: 9b07 ldr r3, [sp, #28]
  16061. 800672a: 454b cmp r3, r9
  16062. 800672c: d307 bcc.n 800673e <__cvt+0xb6>
  16063. 800672e: 4630 mov r0, r6
  16064. 8006730: 9b07 ldr r3, [sp, #28]
  16065. 8006732: 9a15 ldr r2, [sp, #84] ; 0x54
  16066. 8006734: 1b9b subs r3, r3, r6
  16067. 8006736: 6013 str r3, [r2, #0]
  16068. 8006738: b008 add sp, #32
  16069. 800673a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  16070. 800673e: 1c59 adds r1, r3, #1
  16071. 8006740: 9107 str r1, [sp, #28]
  16072. 8006742: 701a strb r2, [r3, #0]
  16073. 8006744: e7f0 b.n 8006728 <__cvt+0xa0>
  16074. 08006746 <__exponent>:
  16075. 8006746: 4603 mov r3, r0
  16076. 8006748: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
  16077. 800674a: 2900 cmp r1, #0
  16078. 800674c: f803 2b02 strb.w r2, [r3], #2
  16079. 8006750: bfb6 itet lt
  16080. 8006752: 222d movlt r2, #45 ; 0x2d
  16081. 8006754: 222b movge r2, #43 ; 0x2b
  16082. 8006756: 4249 neglt r1, r1
  16083. 8006758: 2909 cmp r1, #9
  16084. 800675a: 7042 strb r2, [r0, #1]
  16085. 800675c: dd2b ble.n 80067b6 <__exponent+0x70>
  16086. 800675e: f10d 0407 add.w r4, sp, #7
  16087. 8006762: 46a4 mov ip, r4
  16088. 8006764: 270a movs r7, #10
  16089. 8006766: fb91 f6f7 sdiv r6, r1, r7
  16090. 800676a: 460a mov r2, r1
  16091. 800676c: 46a6 mov lr, r4
  16092. 800676e: fb07 1516 mls r5, r7, r6, r1
  16093. 8006772: 2a63 cmp r2, #99 ; 0x63
  16094. 8006774: f105 0530 add.w r5, r5, #48 ; 0x30
  16095. 8006778: 4631 mov r1, r6
  16096. 800677a: f104 34ff add.w r4, r4, #4294967295 ; 0xffffffff
  16097. 800677e: f80e 5c01 strb.w r5, [lr, #-1]
  16098. 8006782: dcf0 bgt.n 8006766 <__exponent+0x20>
  16099. 8006784: 3130 adds r1, #48 ; 0x30
  16100. 8006786: f1ae 0502 sub.w r5, lr, #2
  16101. 800678a: f804 1c01 strb.w r1, [r4, #-1]
  16102. 800678e: 4629 mov r1, r5
  16103. 8006790: 1c44 adds r4, r0, #1
  16104. 8006792: 4561 cmp r1, ip
  16105. 8006794: d30a bcc.n 80067ac <__exponent+0x66>
  16106. 8006796: f10d 0209 add.w r2, sp, #9
  16107. 800679a: eba2 020e sub.w r2, r2, lr
  16108. 800679e: 4565 cmp r5, ip
  16109. 80067a0: bf88 it hi
  16110. 80067a2: 2200 movhi r2, #0
  16111. 80067a4: 4413 add r3, r2
  16112. 80067a6: 1a18 subs r0, r3, r0
  16113. 80067a8: b003 add sp, #12
  16114. 80067aa: bdf0 pop {r4, r5, r6, r7, pc}
  16115. 80067ac: f811 2b01 ldrb.w r2, [r1], #1
  16116. 80067b0: f804 2f01 strb.w r2, [r4, #1]!
  16117. 80067b4: e7ed b.n 8006792 <__exponent+0x4c>
  16118. 80067b6: 2330 movs r3, #48 ; 0x30
  16119. 80067b8: 3130 adds r1, #48 ; 0x30
  16120. 80067ba: 7083 strb r3, [r0, #2]
  16121. 80067bc: 70c1 strb r1, [r0, #3]
  16122. 80067be: 1d03 adds r3, r0, #4
  16123. 80067c0: e7f1 b.n 80067a6 <__exponent+0x60>
  16124. ...
  16125. 080067c4 <_printf_float>:
  16126. 80067c4: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  16127. 80067c8: b091 sub sp, #68 ; 0x44
  16128. 80067ca: 460c mov r4, r1
  16129. 80067cc: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68
  16130. 80067d0: 4616 mov r6, r2
  16131. 80067d2: 461f mov r7, r3
  16132. 80067d4: 4605 mov r5, r0
  16133. 80067d6: f001 fa55 bl 8007c84 <_localeconv_r>
  16134. 80067da: 6803 ldr r3, [r0, #0]
  16135. 80067dc: 4618 mov r0, r3
  16136. 80067de: 9309 str r3, [sp, #36] ; 0x24
  16137. 80067e0: f7f9 fcce bl 8000180 <strlen>
  16138. 80067e4: 2300 movs r3, #0
  16139. 80067e6: 930e str r3, [sp, #56] ; 0x38
  16140. 80067e8: f8d8 3000 ldr.w r3, [r8]
  16141. 80067ec: 900a str r0, [sp, #40] ; 0x28
  16142. 80067ee: 3307 adds r3, #7
  16143. 80067f0: f023 0307 bic.w r3, r3, #7
  16144. 80067f4: f103 0208 add.w r2, r3, #8
  16145. 80067f8: f894 9018 ldrb.w r9, [r4, #24]
  16146. 80067fc: f8d4 b000 ldr.w fp, [r4]
  16147. 8006800: f8c8 2000 str.w r2, [r8]
  16148. 8006804: e9d3 2300 ldrd r2, r3, [r3]
  16149. 8006808: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48
  16150. 800680c: e9d4 8a12 ldrd r8, sl, [r4, #72] ; 0x48
  16151. 8006810: f02a 4300 bic.w r3, sl, #2147483648 ; 0x80000000
  16152. 8006814: 930b str r3, [sp, #44] ; 0x2c
  16153. 8006816: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  16154. 800681a: 4640 mov r0, r8
  16155. 800681c: 4b9c ldr r3, [pc, #624] ; (8006a90 <_printf_float+0x2cc>)
  16156. 800681e: 990b ldr r1, [sp, #44] ; 0x2c
  16157. 8006820: f7fa f90c bl 8000a3c <__aeabi_dcmpun>
  16158. 8006824: bb70 cbnz r0, 8006884 <_printf_float+0xc0>
  16159. 8006826: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  16160. 800682a: 4640 mov r0, r8
  16161. 800682c: 4b98 ldr r3, [pc, #608] ; (8006a90 <_printf_float+0x2cc>)
  16162. 800682e: 990b ldr r1, [sp, #44] ; 0x2c
  16163. 8006830: f7fa f8e6 bl 8000a00 <__aeabi_dcmple>
  16164. 8006834: bb30 cbnz r0, 8006884 <_printf_float+0xc0>
  16165. 8006836: 2200 movs r2, #0
  16166. 8006838: 2300 movs r3, #0
  16167. 800683a: 4640 mov r0, r8
  16168. 800683c: 4651 mov r1, sl
  16169. 800683e: f7fa f8d5 bl 80009ec <__aeabi_dcmplt>
  16170. 8006842: b110 cbz r0, 800684a <_printf_float+0x86>
  16171. 8006844: 232d movs r3, #45 ; 0x2d
  16172. 8006846: f884 3043 strb.w r3, [r4, #67] ; 0x43
  16173. 800684a: 4b92 ldr r3, [pc, #584] ; (8006a94 <_printf_float+0x2d0>)
  16174. 800684c: 4892 ldr r0, [pc, #584] ; (8006a98 <_printf_float+0x2d4>)
  16175. 800684e: f1b9 0f47 cmp.w r9, #71 ; 0x47
  16176. 8006852: bf94 ite ls
  16177. 8006854: 4698 movls r8, r3
  16178. 8006856: 4680 movhi r8, r0
  16179. 8006858: 2303 movs r3, #3
  16180. 800685a: f04f 0a00 mov.w sl, #0
  16181. 800685e: 6123 str r3, [r4, #16]
  16182. 8006860: f02b 0304 bic.w r3, fp, #4
  16183. 8006864: 6023 str r3, [r4, #0]
  16184. 8006866: 4633 mov r3, r6
  16185. 8006868: 4621 mov r1, r4
  16186. 800686a: 4628 mov r0, r5
  16187. 800686c: 9700 str r7, [sp, #0]
  16188. 800686e: aa0f add r2, sp, #60 ; 0x3c
  16189. 8006870: f000 f9d4 bl 8006c1c <_printf_common>
  16190. 8006874: 3001 adds r0, #1
  16191. 8006876: f040 8090 bne.w 800699a <_printf_float+0x1d6>
  16192. 800687a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  16193. 800687e: b011 add sp, #68 ; 0x44
  16194. 8006880: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  16195. 8006884: 4642 mov r2, r8
  16196. 8006886: 4653 mov r3, sl
  16197. 8006888: 4640 mov r0, r8
  16198. 800688a: 4651 mov r1, sl
  16199. 800688c: f7fa f8d6 bl 8000a3c <__aeabi_dcmpun>
  16200. 8006890: b148 cbz r0, 80068a6 <_printf_float+0xe2>
  16201. 8006892: f1ba 0f00 cmp.w sl, #0
  16202. 8006896: bfb8 it lt
  16203. 8006898: 232d movlt r3, #45 ; 0x2d
  16204. 800689a: 4880 ldr r0, [pc, #512] ; (8006a9c <_printf_float+0x2d8>)
  16205. 800689c: bfb8 it lt
  16206. 800689e: f884 3043 strblt.w r3, [r4, #67] ; 0x43
  16207. 80068a2: 4b7f ldr r3, [pc, #508] ; (8006aa0 <_printf_float+0x2dc>)
  16208. 80068a4: e7d3 b.n 800684e <_printf_float+0x8a>
  16209. 80068a6: 6863 ldr r3, [r4, #4]
  16210. 80068a8: f009 01df and.w r1, r9, #223 ; 0xdf
  16211. 80068ac: 1c5a adds r2, r3, #1
  16212. 80068ae: d142 bne.n 8006936 <_printf_float+0x172>
  16213. 80068b0: 2306 movs r3, #6
  16214. 80068b2: 6063 str r3, [r4, #4]
  16215. 80068b4: 2200 movs r2, #0
  16216. 80068b6: 9206 str r2, [sp, #24]
  16217. 80068b8: aa0e add r2, sp, #56 ; 0x38
  16218. 80068ba: e9cd 9204 strd r9, r2, [sp, #16]
  16219. 80068be: aa0d add r2, sp, #52 ; 0x34
  16220. 80068c0: f44b 6380 orr.w r3, fp, #1024 ; 0x400
  16221. 80068c4: 9203 str r2, [sp, #12]
  16222. 80068c6: f10d 0233 add.w r2, sp, #51 ; 0x33
  16223. 80068ca: e9cd 3201 strd r3, r2, [sp, #4]
  16224. 80068ce: 6023 str r3, [r4, #0]
  16225. 80068d0: 6863 ldr r3, [r4, #4]
  16226. 80068d2: 4642 mov r2, r8
  16227. 80068d4: 9300 str r3, [sp, #0]
  16228. 80068d6: 4628 mov r0, r5
  16229. 80068d8: 4653 mov r3, sl
  16230. 80068da: 910b str r1, [sp, #44] ; 0x2c
  16231. 80068dc: f7ff fed4 bl 8006688 <__cvt>
  16232. 80068e0: 990b ldr r1, [sp, #44] ; 0x2c
  16233. 80068e2: 4680 mov r8, r0
  16234. 80068e4: 2947 cmp r1, #71 ; 0x47
  16235. 80068e6: 990d ldr r1, [sp, #52] ; 0x34
  16236. 80068e8: d108 bne.n 80068fc <_printf_float+0x138>
  16237. 80068ea: 1cc8 adds r0, r1, #3
  16238. 80068ec: db02 blt.n 80068f4 <_printf_float+0x130>
  16239. 80068ee: 6863 ldr r3, [r4, #4]
  16240. 80068f0: 4299 cmp r1, r3
  16241. 80068f2: dd40 ble.n 8006976 <_printf_float+0x1b2>
  16242. 80068f4: f1a9 0902 sub.w r9, r9, #2
  16243. 80068f8: fa5f f989 uxtb.w r9, r9
  16244. 80068fc: f1b9 0f65 cmp.w r9, #101 ; 0x65
  16245. 8006900: d81f bhi.n 8006942 <_printf_float+0x17e>
  16246. 8006902: 464a mov r2, r9
  16247. 8006904: 3901 subs r1, #1
  16248. 8006906: f104 0050 add.w r0, r4, #80 ; 0x50
  16249. 800690a: 910d str r1, [sp, #52] ; 0x34
  16250. 800690c: f7ff ff1b bl 8006746 <__exponent>
  16251. 8006910: 9a0e ldr r2, [sp, #56] ; 0x38
  16252. 8006912: 4682 mov sl, r0
  16253. 8006914: 1813 adds r3, r2, r0
  16254. 8006916: 2a01 cmp r2, #1
  16255. 8006918: 6123 str r3, [r4, #16]
  16256. 800691a: dc02 bgt.n 8006922 <_printf_float+0x15e>
  16257. 800691c: 6822 ldr r2, [r4, #0]
  16258. 800691e: 07d2 lsls r2, r2, #31
  16259. 8006920: d501 bpl.n 8006926 <_printf_float+0x162>
  16260. 8006922: 3301 adds r3, #1
  16261. 8006924: 6123 str r3, [r4, #16]
  16262. 8006926: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33
  16263. 800692a: 2b00 cmp r3, #0
  16264. 800692c: d09b beq.n 8006866 <_printf_float+0xa2>
  16265. 800692e: 232d movs r3, #45 ; 0x2d
  16266. 8006930: f884 3043 strb.w r3, [r4, #67] ; 0x43
  16267. 8006934: e797 b.n 8006866 <_printf_float+0xa2>
  16268. 8006936: 2947 cmp r1, #71 ; 0x47
  16269. 8006938: d1bc bne.n 80068b4 <_printf_float+0xf0>
  16270. 800693a: 2b00 cmp r3, #0
  16271. 800693c: d1ba bne.n 80068b4 <_printf_float+0xf0>
  16272. 800693e: 2301 movs r3, #1
  16273. 8006940: e7b7 b.n 80068b2 <_printf_float+0xee>
  16274. 8006942: f1b9 0f66 cmp.w r9, #102 ; 0x66
  16275. 8006946: d118 bne.n 800697a <_printf_float+0x1b6>
  16276. 8006948: 2900 cmp r1, #0
  16277. 800694a: 6863 ldr r3, [r4, #4]
  16278. 800694c: dd0b ble.n 8006966 <_printf_float+0x1a2>
  16279. 800694e: 6121 str r1, [r4, #16]
  16280. 8006950: b913 cbnz r3, 8006958 <_printf_float+0x194>
  16281. 8006952: 6822 ldr r2, [r4, #0]
  16282. 8006954: 07d0 lsls r0, r2, #31
  16283. 8006956: d502 bpl.n 800695e <_printf_float+0x19a>
  16284. 8006958: 3301 adds r3, #1
  16285. 800695a: 440b add r3, r1
  16286. 800695c: 6123 str r3, [r4, #16]
  16287. 800695e: f04f 0a00 mov.w sl, #0
  16288. 8006962: 65a1 str r1, [r4, #88] ; 0x58
  16289. 8006964: e7df b.n 8006926 <_printf_float+0x162>
  16290. 8006966: b913 cbnz r3, 800696e <_printf_float+0x1aa>
  16291. 8006968: 6822 ldr r2, [r4, #0]
  16292. 800696a: 07d2 lsls r2, r2, #31
  16293. 800696c: d501 bpl.n 8006972 <_printf_float+0x1ae>
  16294. 800696e: 3302 adds r3, #2
  16295. 8006970: e7f4 b.n 800695c <_printf_float+0x198>
  16296. 8006972: 2301 movs r3, #1
  16297. 8006974: e7f2 b.n 800695c <_printf_float+0x198>
  16298. 8006976: f04f 0967 mov.w r9, #103 ; 0x67
  16299. 800697a: 9b0e ldr r3, [sp, #56] ; 0x38
  16300. 800697c: 4299 cmp r1, r3
  16301. 800697e: db05 blt.n 800698c <_printf_float+0x1c8>
  16302. 8006980: 6823 ldr r3, [r4, #0]
  16303. 8006982: 6121 str r1, [r4, #16]
  16304. 8006984: 07d8 lsls r0, r3, #31
  16305. 8006986: d5ea bpl.n 800695e <_printf_float+0x19a>
  16306. 8006988: 1c4b adds r3, r1, #1
  16307. 800698a: e7e7 b.n 800695c <_printf_float+0x198>
  16308. 800698c: 2900 cmp r1, #0
  16309. 800698e: bfcc ite gt
  16310. 8006990: 2201 movgt r2, #1
  16311. 8006992: f1c1 0202 rsble r2, r1, #2
  16312. 8006996: 4413 add r3, r2
  16313. 8006998: e7e0 b.n 800695c <_printf_float+0x198>
  16314. 800699a: 6823 ldr r3, [r4, #0]
  16315. 800699c: 055a lsls r2, r3, #21
  16316. 800699e: d407 bmi.n 80069b0 <_printf_float+0x1ec>
  16317. 80069a0: 6923 ldr r3, [r4, #16]
  16318. 80069a2: 4642 mov r2, r8
  16319. 80069a4: 4631 mov r1, r6
  16320. 80069a6: 4628 mov r0, r5
  16321. 80069a8: 47b8 blx r7
  16322. 80069aa: 3001 adds r0, #1
  16323. 80069ac: d12b bne.n 8006a06 <_printf_float+0x242>
  16324. 80069ae: e764 b.n 800687a <_printf_float+0xb6>
  16325. 80069b0: f1b9 0f65 cmp.w r9, #101 ; 0x65
  16326. 80069b4: f240 80dd bls.w 8006b72 <_printf_float+0x3ae>
  16327. 80069b8: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  16328. 80069bc: 2200 movs r2, #0
  16329. 80069be: 2300 movs r3, #0
  16330. 80069c0: f7fa f80a bl 80009d8 <__aeabi_dcmpeq>
  16331. 80069c4: 2800 cmp r0, #0
  16332. 80069c6: d033 beq.n 8006a30 <_printf_float+0x26c>
  16333. 80069c8: 2301 movs r3, #1
  16334. 80069ca: 4631 mov r1, r6
  16335. 80069cc: 4628 mov r0, r5
  16336. 80069ce: 4a35 ldr r2, [pc, #212] ; (8006aa4 <_printf_float+0x2e0>)
  16337. 80069d0: 47b8 blx r7
  16338. 80069d2: 3001 adds r0, #1
  16339. 80069d4: f43f af51 beq.w 800687a <_printf_float+0xb6>
  16340. 80069d8: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  16341. 80069dc: 429a cmp r2, r3
  16342. 80069de: db02 blt.n 80069e6 <_printf_float+0x222>
  16343. 80069e0: 6823 ldr r3, [r4, #0]
  16344. 80069e2: 07d8 lsls r0, r3, #31
  16345. 80069e4: d50f bpl.n 8006a06 <_printf_float+0x242>
  16346. 80069e6: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  16347. 80069ea: 4631 mov r1, r6
  16348. 80069ec: 4628 mov r0, r5
  16349. 80069ee: 47b8 blx r7
  16350. 80069f0: 3001 adds r0, #1
  16351. 80069f2: f43f af42 beq.w 800687a <_printf_float+0xb6>
  16352. 80069f6: f04f 0800 mov.w r8, #0
  16353. 80069fa: f104 091a add.w r9, r4, #26
  16354. 80069fe: 9b0e ldr r3, [sp, #56] ; 0x38
  16355. 8006a00: 3b01 subs r3, #1
  16356. 8006a02: 4543 cmp r3, r8
  16357. 8006a04: dc09 bgt.n 8006a1a <_printf_float+0x256>
  16358. 8006a06: 6823 ldr r3, [r4, #0]
  16359. 8006a08: 079b lsls r3, r3, #30
  16360. 8006a0a: f100 8102 bmi.w 8006c12 <_printf_float+0x44e>
  16361. 8006a0e: 68e0 ldr r0, [r4, #12]
  16362. 8006a10: 9b0f ldr r3, [sp, #60] ; 0x3c
  16363. 8006a12: 4298 cmp r0, r3
  16364. 8006a14: bfb8 it lt
  16365. 8006a16: 4618 movlt r0, r3
  16366. 8006a18: e731 b.n 800687e <_printf_float+0xba>
  16367. 8006a1a: 2301 movs r3, #1
  16368. 8006a1c: 464a mov r2, r9
  16369. 8006a1e: 4631 mov r1, r6
  16370. 8006a20: 4628 mov r0, r5
  16371. 8006a22: 47b8 blx r7
  16372. 8006a24: 3001 adds r0, #1
  16373. 8006a26: f43f af28 beq.w 800687a <_printf_float+0xb6>
  16374. 8006a2a: f108 0801 add.w r8, r8, #1
  16375. 8006a2e: e7e6 b.n 80069fe <_printf_float+0x23a>
  16376. 8006a30: 9b0d ldr r3, [sp, #52] ; 0x34
  16377. 8006a32: 2b00 cmp r3, #0
  16378. 8006a34: dc38 bgt.n 8006aa8 <_printf_float+0x2e4>
  16379. 8006a36: 2301 movs r3, #1
  16380. 8006a38: 4631 mov r1, r6
  16381. 8006a3a: 4628 mov r0, r5
  16382. 8006a3c: 4a19 ldr r2, [pc, #100] ; (8006aa4 <_printf_float+0x2e0>)
  16383. 8006a3e: 47b8 blx r7
  16384. 8006a40: 3001 adds r0, #1
  16385. 8006a42: f43f af1a beq.w 800687a <_printf_float+0xb6>
  16386. 8006a46: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  16387. 8006a4a: 4313 orrs r3, r2
  16388. 8006a4c: d102 bne.n 8006a54 <_printf_float+0x290>
  16389. 8006a4e: 6823 ldr r3, [r4, #0]
  16390. 8006a50: 07d9 lsls r1, r3, #31
  16391. 8006a52: d5d8 bpl.n 8006a06 <_printf_float+0x242>
  16392. 8006a54: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  16393. 8006a58: 4631 mov r1, r6
  16394. 8006a5a: 4628 mov r0, r5
  16395. 8006a5c: 47b8 blx r7
  16396. 8006a5e: 3001 adds r0, #1
  16397. 8006a60: f43f af0b beq.w 800687a <_printf_float+0xb6>
  16398. 8006a64: f04f 0900 mov.w r9, #0
  16399. 8006a68: f104 0a1a add.w sl, r4, #26
  16400. 8006a6c: 9b0d ldr r3, [sp, #52] ; 0x34
  16401. 8006a6e: 425b negs r3, r3
  16402. 8006a70: 454b cmp r3, r9
  16403. 8006a72: dc01 bgt.n 8006a78 <_printf_float+0x2b4>
  16404. 8006a74: 9b0e ldr r3, [sp, #56] ; 0x38
  16405. 8006a76: e794 b.n 80069a2 <_printf_float+0x1de>
  16406. 8006a78: 2301 movs r3, #1
  16407. 8006a7a: 4652 mov r2, sl
  16408. 8006a7c: 4631 mov r1, r6
  16409. 8006a7e: 4628 mov r0, r5
  16410. 8006a80: 47b8 blx r7
  16411. 8006a82: 3001 adds r0, #1
  16412. 8006a84: f43f aef9 beq.w 800687a <_printf_float+0xb6>
  16413. 8006a88: f109 0901 add.w r9, r9, #1
  16414. 8006a8c: e7ee b.n 8006a6c <_printf_float+0x2a8>
  16415. 8006a8e: bf00 nop
  16416. 8006a90: 7fefffff .word 0x7fefffff
  16417. 8006a94: 0800a118 .word 0x0800a118
  16418. 8006a98: 0800a11c .word 0x0800a11c
  16419. 8006a9c: 0800a124 .word 0x0800a124
  16420. 8006aa0: 0800a120 .word 0x0800a120
  16421. 8006aa4: 0800a128 .word 0x0800a128
  16422. 8006aa8: 9a0e ldr r2, [sp, #56] ; 0x38
  16423. 8006aaa: 6da3 ldr r3, [r4, #88] ; 0x58
  16424. 8006aac: 429a cmp r2, r3
  16425. 8006aae: bfa8 it ge
  16426. 8006ab0: 461a movge r2, r3
  16427. 8006ab2: 2a00 cmp r2, #0
  16428. 8006ab4: 4691 mov r9, r2
  16429. 8006ab6: dc37 bgt.n 8006b28 <_printf_float+0x364>
  16430. 8006ab8: f04f 0b00 mov.w fp, #0
  16431. 8006abc: ea29 79e9 bic.w r9, r9, r9, asr #31
  16432. 8006ac0: f104 021a add.w r2, r4, #26
  16433. 8006ac4: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58
  16434. 8006ac8: ebaa 0309 sub.w r3, sl, r9
  16435. 8006acc: 455b cmp r3, fp
  16436. 8006ace: dc33 bgt.n 8006b38 <_printf_float+0x374>
  16437. 8006ad0: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  16438. 8006ad4: 429a cmp r2, r3
  16439. 8006ad6: db3b blt.n 8006b50 <_printf_float+0x38c>
  16440. 8006ad8: 6823 ldr r3, [r4, #0]
  16441. 8006ada: 07da lsls r2, r3, #31
  16442. 8006adc: d438 bmi.n 8006b50 <_printf_float+0x38c>
  16443. 8006ade: 9a0e ldr r2, [sp, #56] ; 0x38
  16444. 8006ae0: 990d ldr r1, [sp, #52] ; 0x34
  16445. 8006ae2: eba2 030a sub.w r3, r2, sl
  16446. 8006ae6: eba2 0901 sub.w r9, r2, r1
  16447. 8006aea: 4599 cmp r9, r3
  16448. 8006aec: bfa8 it ge
  16449. 8006aee: 4699 movge r9, r3
  16450. 8006af0: f1b9 0f00 cmp.w r9, #0
  16451. 8006af4: dc34 bgt.n 8006b60 <_printf_float+0x39c>
  16452. 8006af6: f04f 0800 mov.w r8, #0
  16453. 8006afa: ea29 79e9 bic.w r9, r9, r9, asr #31
  16454. 8006afe: f104 0a1a add.w sl, r4, #26
  16455. 8006b02: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34
  16456. 8006b06: 1a9b subs r3, r3, r2
  16457. 8006b08: eba3 0309 sub.w r3, r3, r9
  16458. 8006b0c: 4543 cmp r3, r8
  16459. 8006b0e: f77f af7a ble.w 8006a06 <_printf_float+0x242>
  16460. 8006b12: 2301 movs r3, #1
  16461. 8006b14: 4652 mov r2, sl
  16462. 8006b16: 4631 mov r1, r6
  16463. 8006b18: 4628 mov r0, r5
  16464. 8006b1a: 47b8 blx r7
  16465. 8006b1c: 3001 adds r0, #1
  16466. 8006b1e: f43f aeac beq.w 800687a <_printf_float+0xb6>
  16467. 8006b22: f108 0801 add.w r8, r8, #1
  16468. 8006b26: e7ec b.n 8006b02 <_printf_float+0x33e>
  16469. 8006b28: 4613 mov r3, r2
  16470. 8006b2a: 4631 mov r1, r6
  16471. 8006b2c: 4642 mov r2, r8
  16472. 8006b2e: 4628 mov r0, r5
  16473. 8006b30: 47b8 blx r7
  16474. 8006b32: 3001 adds r0, #1
  16475. 8006b34: d1c0 bne.n 8006ab8 <_printf_float+0x2f4>
  16476. 8006b36: e6a0 b.n 800687a <_printf_float+0xb6>
  16477. 8006b38: 2301 movs r3, #1
  16478. 8006b3a: 4631 mov r1, r6
  16479. 8006b3c: 4628 mov r0, r5
  16480. 8006b3e: 920b str r2, [sp, #44] ; 0x2c
  16481. 8006b40: 47b8 blx r7
  16482. 8006b42: 3001 adds r0, #1
  16483. 8006b44: f43f ae99 beq.w 800687a <_printf_float+0xb6>
  16484. 8006b48: 9a0b ldr r2, [sp, #44] ; 0x2c
  16485. 8006b4a: f10b 0b01 add.w fp, fp, #1
  16486. 8006b4e: e7b9 b.n 8006ac4 <_printf_float+0x300>
  16487. 8006b50: 4631 mov r1, r6
  16488. 8006b52: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  16489. 8006b56: 4628 mov r0, r5
  16490. 8006b58: 47b8 blx r7
  16491. 8006b5a: 3001 adds r0, #1
  16492. 8006b5c: d1bf bne.n 8006ade <_printf_float+0x31a>
  16493. 8006b5e: e68c b.n 800687a <_printf_float+0xb6>
  16494. 8006b60: 464b mov r3, r9
  16495. 8006b62: 4631 mov r1, r6
  16496. 8006b64: 4628 mov r0, r5
  16497. 8006b66: eb08 020a add.w r2, r8, sl
  16498. 8006b6a: 47b8 blx r7
  16499. 8006b6c: 3001 adds r0, #1
  16500. 8006b6e: d1c2 bne.n 8006af6 <_printf_float+0x332>
  16501. 8006b70: e683 b.n 800687a <_printf_float+0xb6>
  16502. 8006b72: 9a0e ldr r2, [sp, #56] ; 0x38
  16503. 8006b74: 2a01 cmp r2, #1
  16504. 8006b76: dc01 bgt.n 8006b7c <_printf_float+0x3b8>
  16505. 8006b78: 07db lsls r3, r3, #31
  16506. 8006b7a: d537 bpl.n 8006bec <_printf_float+0x428>
  16507. 8006b7c: 2301 movs r3, #1
  16508. 8006b7e: 4642 mov r2, r8
  16509. 8006b80: 4631 mov r1, r6
  16510. 8006b82: 4628 mov r0, r5
  16511. 8006b84: 47b8 blx r7
  16512. 8006b86: 3001 adds r0, #1
  16513. 8006b88: f43f ae77 beq.w 800687a <_printf_float+0xb6>
  16514. 8006b8c: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24
  16515. 8006b90: 4631 mov r1, r6
  16516. 8006b92: 4628 mov r0, r5
  16517. 8006b94: 47b8 blx r7
  16518. 8006b96: 3001 adds r0, #1
  16519. 8006b98: f43f ae6f beq.w 800687a <_printf_float+0xb6>
  16520. 8006b9c: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48
  16521. 8006ba0: 2200 movs r2, #0
  16522. 8006ba2: 2300 movs r3, #0
  16523. 8006ba4: f7f9 ff18 bl 80009d8 <__aeabi_dcmpeq>
  16524. 8006ba8: b9d8 cbnz r0, 8006be2 <_printf_float+0x41e>
  16525. 8006baa: 9b0e ldr r3, [sp, #56] ; 0x38
  16526. 8006bac: f108 0201 add.w r2, r8, #1
  16527. 8006bb0: 3b01 subs r3, #1
  16528. 8006bb2: 4631 mov r1, r6
  16529. 8006bb4: 4628 mov r0, r5
  16530. 8006bb6: 47b8 blx r7
  16531. 8006bb8: 3001 adds r0, #1
  16532. 8006bba: d10e bne.n 8006bda <_printf_float+0x416>
  16533. 8006bbc: e65d b.n 800687a <_printf_float+0xb6>
  16534. 8006bbe: 2301 movs r3, #1
  16535. 8006bc0: 464a mov r2, r9
  16536. 8006bc2: 4631 mov r1, r6
  16537. 8006bc4: 4628 mov r0, r5
  16538. 8006bc6: 47b8 blx r7
  16539. 8006bc8: 3001 adds r0, #1
  16540. 8006bca: f43f ae56 beq.w 800687a <_printf_float+0xb6>
  16541. 8006bce: f108 0801 add.w r8, r8, #1
  16542. 8006bd2: 9b0e ldr r3, [sp, #56] ; 0x38
  16543. 8006bd4: 3b01 subs r3, #1
  16544. 8006bd6: 4543 cmp r3, r8
  16545. 8006bd8: dcf1 bgt.n 8006bbe <_printf_float+0x3fa>
  16546. 8006bda: 4653 mov r3, sl
  16547. 8006bdc: f104 0250 add.w r2, r4, #80 ; 0x50
  16548. 8006be0: e6e0 b.n 80069a4 <_printf_float+0x1e0>
  16549. 8006be2: f04f 0800 mov.w r8, #0
  16550. 8006be6: f104 091a add.w r9, r4, #26
  16551. 8006bea: e7f2 b.n 8006bd2 <_printf_float+0x40e>
  16552. 8006bec: 2301 movs r3, #1
  16553. 8006bee: 4642 mov r2, r8
  16554. 8006bf0: e7df b.n 8006bb2 <_printf_float+0x3ee>
  16555. 8006bf2: 2301 movs r3, #1
  16556. 8006bf4: 464a mov r2, r9
  16557. 8006bf6: 4631 mov r1, r6
  16558. 8006bf8: 4628 mov r0, r5
  16559. 8006bfa: 47b8 blx r7
  16560. 8006bfc: 3001 adds r0, #1
  16561. 8006bfe: f43f ae3c beq.w 800687a <_printf_float+0xb6>
  16562. 8006c02: f108 0801 add.w r8, r8, #1
  16563. 8006c06: 68e3 ldr r3, [r4, #12]
  16564. 8006c08: 990f ldr r1, [sp, #60] ; 0x3c
  16565. 8006c0a: 1a5b subs r3, r3, r1
  16566. 8006c0c: 4543 cmp r3, r8
  16567. 8006c0e: dcf0 bgt.n 8006bf2 <_printf_float+0x42e>
  16568. 8006c10: e6fd b.n 8006a0e <_printf_float+0x24a>
  16569. 8006c12: f04f 0800 mov.w r8, #0
  16570. 8006c16: f104 0919 add.w r9, r4, #25
  16571. 8006c1a: e7f4 b.n 8006c06 <_printf_float+0x442>
  16572. 08006c1c <_printf_common>:
  16573. 8006c1c: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  16574. 8006c20: 4616 mov r6, r2
  16575. 8006c22: 4699 mov r9, r3
  16576. 8006c24: 688a ldr r2, [r1, #8]
  16577. 8006c26: 690b ldr r3, [r1, #16]
  16578. 8006c28: 4607 mov r7, r0
  16579. 8006c2a: 4293 cmp r3, r2
  16580. 8006c2c: bfb8 it lt
  16581. 8006c2e: 4613 movlt r3, r2
  16582. 8006c30: 6033 str r3, [r6, #0]
  16583. 8006c32: f891 2043 ldrb.w r2, [r1, #67] ; 0x43
  16584. 8006c36: 460c mov r4, r1
  16585. 8006c38: f8dd 8020 ldr.w r8, [sp, #32]
  16586. 8006c3c: b10a cbz r2, 8006c42 <_printf_common+0x26>
  16587. 8006c3e: 3301 adds r3, #1
  16588. 8006c40: 6033 str r3, [r6, #0]
  16589. 8006c42: 6823 ldr r3, [r4, #0]
  16590. 8006c44: 0699 lsls r1, r3, #26
  16591. 8006c46: bf42 ittt mi
  16592. 8006c48: 6833 ldrmi r3, [r6, #0]
  16593. 8006c4a: 3302 addmi r3, #2
  16594. 8006c4c: 6033 strmi r3, [r6, #0]
  16595. 8006c4e: 6825 ldr r5, [r4, #0]
  16596. 8006c50: f015 0506 ands.w r5, r5, #6
  16597. 8006c54: d106 bne.n 8006c64 <_printf_common+0x48>
  16598. 8006c56: f104 0a19 add.w sl, r4, #25
  16599. 8006c5a: 68e3 ldr r3, [r4, #12]
  16600. 8006c5c: 6832 ldr r2, [r6, #0]
  16601. 8006c5e: 1a9b subs r3, r3, r2
  16602. 8006c60: 42ab cmp r3, r5
  16603. 8006c62: dc28 bgt.n 8006cb6 <_printf_common+0x9a>
  16604. 8006c64: f894 2043 ldrb.w r2, [r4, #67] ; 0x43
  16605. 8006c68: 1e13 subs r3, r2, #0
  16606. 8006c6a: 6822 ldr r2, [r4, #0]
  16607. 8006c6c: bf18 it ne
  16608. 8006c6e: 2301 movne r3, #1
  16609. 8006c70: 0692 lsls r2, r2, #26
  16610. 8006c72: d42d bmi.n 8006cd0 <_printf_common+0xb4>
  16611. 8006c74: 4649 mov r1, r9
  16612. 8006c76: 4638 mov r0, r7
  16613. 8006c78: f104 0243 add.w r2, r4, #67 ; 0x43
  16614. 8006c7c: 47c0 blx r8
  16615. 8006c7e: 3001 adds r0, #1
  16616. 8006c80: d020 beq.n 8006cc4 <_printf_common+0xa8>
  16617. 8006c82: 6823 ldr r3, [r4, #0]
  16618. 8006c84: 68e5 ldr r5, [r4, #12]
  16619. 8006c86: f003 0306 and.w r3, r3, #6
  16620. 8006c8a: 2b04 cmp r3, #4
  16621. 8006c8c: bf18 it ne
  16622. 8006c8e: 2500 movne r5, #0
  16623. 8006c90: 6832 ldr r2, [r6, #0]
  16624. 8006c92: f04f 0600 mov.w r6, #0
  16625. 8006c96: 68a3 ldr r3, [r4, #8]
  16626. 8006c98: bf08 it eq
  16627. 8006c9a: 1aad subeq r5, r5, r2
  16628. 8006c9c: 6922 ldr r2, [r4, #16]
  16629. 8006c9e: bf08 it eq
  16630. 8006ca0: ea25 75e5 biceq.w r5, r5, r5, asr #31
  16631. 8006ca4: 4293 cmp r3, r2
  16632. 8006ca6: bfc4 itt gt
  16633. 8006ca8: 1a9b subgt r3, r3, r2
  16634. 8006caa: 18ed addgt r5, r5, r3
  16635. 8006cac: 341a adds r4, #26
  16636. 8006cae: 42b5 cmp r5, r6
  16637. 8006cb0: d11a bne.n 8006ce8 <_printf_common+0xcc>
  16638. 8006cb2: 2000 movs r0, #0
  16639. 8006cb4: e008 b.n 8006cc8 <_printf_common+0xac>
  16640. 8006cb6: 2301 movs r3, #1
  16641. 8006cb8: 4652 mov r2, sl
  16642. 8006cba: 4649 mov r1, r9
  16643. 8006cbc: 4638 mov r0, r7
  16644. 8006cbe: 47c0 blx r8
  16645. 8006cc0: 3001 adds r0, #1
  16646. 8006cc2: d103 bne.n 8006ccc <_printf_common+0xb0>
  16647. 8006cc4: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  16648. 8006cc8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  16649. 8006ccc: 3501 adds r5, #1
  16650. 8006cce: e7c4 b.n 8006c5a <_printf_common+0x3e>
  16651. 8006cd0: 2030 movs r0, #48 ; 0x30
  16652. 8006cd2: 18e1 adds r1, r4, r3
  16653. 8006cd4: f881 0043 strb.w r0, [r1, #67] ; 0x43
  16654. 8006cd8: 1c5a adds r2, r3, #1
  16655. 8006cda: f894 1045 ldrb.w r1, [r4, #69] ; 0x45
  16656. 8006cde: 4422 add r2, r4
  16657. 8006ce0: 3302 adds r3, #2
  16658. 8006ce2: f882 1043 strb.w r1, [r2, #67] ; 0x43
  16659. 8006ce6: e7c5 b.n 8006c74 <_printf_common+0x58>
  16660. 8006ce8: 2301 movs r3, #1
  16661. 8006cea: 4622 mov r2, r4
  16662. 8006cec: 4649 mov r1, r9
  16663. 8006cee: 4638 mov r0, r7
  16664. 8006cf0: 47c0 blx r8
  16665. 8006cf2: 3001 adds r0, #1
  16666. 8006cf4: d0e6 beq.n 8006cc4 <_printf_common+0xa8>
  16667. 8006cf6: 3601 adds r6, #1
  16668. 8006cf8: e7d9 b.n 8006cae <_printf_common+0x92>
  16669. ...
  16670. 08006cfc <_printf_i>:
  16671. 8006cfc: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
  16672. 8006d00: 460c mov r4, r1
  16673. 8006d02: 7e27 ldrb r7, [r4, #24]
  16674. 8006d04: 4691 mov r9, r2
  16675. 8006d06: 2f78 cmp r7, #120 ; 0x78
  16676. 8006d08: 4680 mov r8, r0
  16677. 8006d0a: 469a mov sl, r3
  16678. 8006d0c: 990c ldr r1, [sp, #48] ; 0x30
  16679. 8006d0e: f104 0243 add.w r2, r4, #67 ; 0x43
  16680. 8006d12: d807 bhi.n 8006d24 <_printf_i+0x28>
  16681. 8006d14: 2f62 cmp r7, #98 ; 0x62
  16682. 8006d16: d80a bhi.n 8006d2e <_printf_i+0x32>
  16683. 8006d18: 2f00 cmp r7, #0
  16684. 8006d1a: f000 80d9 beq.w 8006ed0 <_printf_i+0x1d4>
  16685. 8006d1e: 2f58 cmp r7, #88 ; 0x58
  16686. 8006d20: f000 80a4 beq.w 8006e6c <_printf_i+0x170>
  16687. 8006d24: f104 0642 add.w r6, r4, #66 ; 0x42
  16688. 8006d28: f884 7042 strb.w r7, [r4, #66] ; 0x42
  16689. 8006d2c: e03a b.n 8006da4 <_printf_i+0xa8>
  16690. 8006d2e: f1a7 0363 sub.w r3, r7, #99 ; 0x63
  16691. 8006d32: 2b15 cmp r3, #21
  16692. 8006d34: d8f6 bhi.n 8006d24 <_printf_i+0x28>
  16693. 8006d36: a001 add r0, pc, #4 ; (adr r0, 8006d3c <_printf_i+0x40>)
  16694. 8006d38: f850 f023 ldr.w pc, [r0, r3, lsl #2]
  16695. 8006d3c: 08006d95 .word 0x08006d95
  16696. 8006d40: 08006da9 .word 0x08006da9
  16697. 8006d44: 08006d25 .word 0x08006d25
  16698. 8006d48: 08006d25 .word 0x08006d25
  16699. 8006d4c: 08006d25 .word 0x08006d25
  16700. 8006d50: 08006d25 .word 0x08006d25
  16701. 8006d54: 08006da9 .word 0x08006da9
  16702. 8006d58: 08006d25 .word 0x08006d25
  16703. 8006d5c: 08006d25 .word 0x08006d25
  16704. 8006d60: 08006d25 .word 0x08006d25
  16705. 8006d64: 08006d25 .word 0x08006d25
  16706. 8006d68: 08006eb7 .word 0x08006eb7
  16707. 8006d6c: 08006dd9 .word 0x08006dd9
  16708. 8006d70: 08006e99 .word 0x08006e99
  16709. 8006d74: 08006d25 .word 0x08006d25
  16710. 8006d78: 08006d25 .word 0x08006d25
  16711. 8006d7c: 08006ed9 .word 0x08006ed9
  16712. 8006d80: 08006d25 .word 0x08006d25
  16713. 8006d84: 08006dd9 .word 0x08006dd9
  16714. 8006d88: 08006d25 .word 0x08006d25
  16715. 8006d8c: 08006d25 .word 0x08006d25
  16716. 8006d90: 08006ea1 .word 0x08006ea1
  16717. 8006d94: 680b ldr r3, [r1, #0]
  16718. 8006d96: f104 0642 add.w r6, r4, #66 ; 0x42
  16719. 8006d9a: 1d1a adds r2, r3, #4
  16720. 8006d9c: 681b ldr r3, [r3, #0]
  16721. 8006d9e: 600a str r2, [r1, #0]
  16722. 8006da0: f884 3042 strb.w r3, [r4, #66] ; 0x42
  16723. 8006da4: 2301 movs r3, #1
  16724. 8006da6: e0a4 b.n 8006ef2 <_printf_i+0x1f6>
  16725. 8006da8: 6825 ldr r5, [r4, #0]
  16726. 8006daa: 6808 ldr r0, [r1, #0]
  16727. 8006dac: 062e lsls r6, r5, #24
  16728. 8006dae: f100 0304 add.w r3, r0, #4
  16729. 8006db2: d50a bpl.n 8006dca <_printf_i+0xce>
  16730. 8006db4: 6805 ldr r5, [r0, #0]
  16731. 8006db6: 600b str r3, [r1, #0]
  16732. 8006db8: 2d00 cmp r5, #0
  16733. 8006dba: da03 bge.n 8006dc4 <_printf_i+0xc8>
  16734. 8006dbc: 232d movs r3, #45 ; 0x2d
  16735. 8006dbe: 426d negs r5, r5
  16736. 8006dc0: f884 3043 strb.w r3, [r4, #67] ; 0x43
  16737. 8006dc4: 230a movs r3, #10
  16738. 8006dc6: 485e ldr r0, [pc, #376] ; (8006f40 <_printf_i+0x244>)
  16739. 8006dc8: e019 b.n 8006dfe <_printf_i+0x102>
  16740. 8006dca: f015 0f40 tst.w r5, #64 ; 0x40
  16741. 8006dce: 6805 ldr r5, [r0, #0]
  16742. 8006dd0: 600b str r3, [r1, #0]
  16743. 8006dd2: bf18 it ne
  16744. 8006dd4: b22d sxthne r5, r5
  16745. 8006dd6: e7ef b.n 8006db8 <_printf_i+0xbc>
  16746. 8006dd8: 680b ldr r3, [r1, #0]
  16747. 8006dda: 6825 ldr r5, [r4, #0]
  16748. 8006ddc: 1d18 adds r0, r3, #4
  16749. 8006dde: 6008 str r0, [r1, #0]
  16750. 8006de0: 0628 lsls r0, r5, #24
  16751. 8006de2: d501 bpl.n 8006de8 <_printf_i+0xec>
  16752. 8006de4: 681d ldr r5, [r3, #0]
  16753. 8006de6: e002 b.n 8006dee <_printf_i+0xf2>
  16754. 8006de8: 0669 lsls r1, r5, #25
  16755. 8006dea: d5fb bpl.n 8006de4 <_printf_i+0xe8>
  16756. 8006dec: 881d ldrh r5, [r3, #0]
  16757. 8006dee: 2f6f cmp r7, #111 ; 0x6f
  16758. 8006df0: bf0c ite eq
  16759. 8006df2: 2308 moveq r3, #8
  16760. 8006df4: 230a movne r3, #10
  16761. 8006df6: 4852 ldr r0, [pc, #328] ; (8006f40 <_printf_i+0x244>)
  16762. 8006df8: 2100 movs r1, #0
  16763. 8006dfa: f884 1043 strb.w r1, [r4, #67] ; 0x43
  16764. 8006dfe: 6866 ldr r6, [r4, #4]
  16765. 8006e00: 2e00 cmp r6, #0
  16766. 8006e02: bfa8 it ge
  16767. 8006e04: 6821 ldrge r1, [r4, #0]
  16768. 8006e06: 60a6 str r6, [r4, #8]
  16769. 8006e08: bfa4 itt ge
  16770. 8006e0a: f021 0104 bicge.w r1, r1, #4
  16771. 8006e0e: 6021 strge r1, [r4, #0]
  16772. 8006e10: b90d cbnz r5, 8006e16 <_printf_i+0x11a>
  16773. 8006e12: 2e00 cmp r6, #0
  16774. 8006e14: d04d beq.n 8006eb2 <_printf_i+0x1b6>
  16775. 8006e16: 4616 mov r6, r2
  16776. 8006e18: fbb5 f1f3 udiv r1, r5, r3
  16777. 8006e1c: fb03 5711 mls r7, r3, r1, r5
  16778. 8006e20: 5dc7 ldrb r7, [r0, r7]
  16779. 8006e22: f806 7d01 strb.w r7, [r6, #-1]!
  16780. 8006e26: 462f mov r7, r5
  16781. 8006e28: 42bb cmp r3, r7
  16782. 8006e2a: 460d mov r5, r1
  16783. 8006e2c: d9f4 bls.n 8006e18 <_printf_i+0x11c>
  16784. 8006e2e: 2b08 cmp r3, #8
  16785. 8006e30: d10b bne.n 8006e4a <_printf_i+0x14e>
  16786. 8006e32: 6823 ldr r3, [r4, #0]
  16787. 8006e34: 07df lsls r7, r3, #31
  16788. 8006e36: d508 bpl.n 8006e4a <_printf_i+0x14e>
  16789. 8006e38: 6923 ldr r3, [r4, #16]
  16790. 8006e3a: 6861 ldr r1, [r4, #4]
  16791. 8006e3c: 4299 cmp r1, r3
  16792. 8006e3e: bfde ittt le
  16793. 8006e40: 2330 movle r3, #48 ; 0x30
  16794. 8006e42: f806 3c01 strble.w r3, [r6, #-1]
  16795. 8006e46: f106 36ff addle.w r6, r6, #4294967295 ; 0xffffffff
  16796. 8006e4a: 1b92 subs r2, r2, r6
  16797. 8006e4c: 6122 str r2, [r4, #16]
  16798. 8006e4e: 464b mov r3, r9
  16799. 8006e50: 4621 mov r1, r4
  16800. 8006e52: 4640 mov r0, r8
  16801. 8006e54: f8cd a000 str.w sl, [sp]
  16802. 8006e58: aa03 add r2, sp, #12
  16803. 8006e5a: f7ff fedf bl 8006c1c <_printf_common>
  16804. 8006e5e: 3001 adds r0, #1
  16805. 8006e60: d14c bne.n 8006efc <_printf_i+0x200>
  16806. 8006e62: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  16807. 8006e66: b004 add sp, #16
  16808. 8006e68: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  16809. 8006e6c: 4834 ldr r0, [pc, #208] ; (8006f40 <_printf_i+0x244>)
  16810. 8006e6e: f884 7045 strb.w r7, [r4, #69] ; 0x45
  16811. 8006e72: 680e ldr r6, [r1, #0]
  16812. 8006e74: 6823 ldr r3, [r4, #0]
  16813. 8006e76: f856 5b04 ldr.w r5, [r6], #4
  16814. 8006e7a: 061f lsls r7, r3, #24
  16815. 8006e7c: 600e str r6, [r1, #0]
  16816. 8006e7e: d514 bpl.n 8006eaa <_printf_i+0x1ae>
  16817. 8006e80: 07d9 lsls r1, r3, #31
  16818. 8006e82: bf44 itt mi
  16819. 8006e84: f043 0320 orrmi.w r3, r3, #32
  16820. 8006e88: 6023 strmi r3, [r4, #0]
  16821. 8006e8a: b91d cbnz r5, 8006e94 <_printf_i+0x198>
  16822. 8006e8c: 6823 ldr r3, [r4, #0]
  16823. 8006e8e: f023 0320 bic.w r3, r3, #32
  16824. 8006e92: 6023 str r3, [r4, #0]
  16825. 8006e94: 2310 movs r3, #16
  16826. 8006e96: e7af b.n 8006df8 <_printf_i+0xfc>
  16827. 8006e98: 6823 ldr r3, [r4, #0]
  16828. 8006e9a: f043 0320 orr.w r3, r3, #32
  16829. 8006e9e: 6023 str r3, [r4, #0]
  16830. 8006ea0: 2378 movs r3, #120 ; 0x78
  16831. 8006ea2: 4828 ldr r0, [pc, #160] ; (8006f44 <_printf_i+0x248>)
  16832. 8006ea4: f884 3045 strb.w r3, [r4, #69] ; 0x45
  16833. 8006ea8: e7e3 b.n 8006e72 <_printf_i+0x176>
  16834. 8006eaa: 065e lsls r6, r3, #25
  16835. 8006eac: bf48 it mi
  16836. 8006eae: b2ad uxthmi r5, r5
  16837. 8006eb0: e7e6 b.n 8006e80 <_printf_i+0x184>
  16838. 8006eb2: 4616 mov r6, r2
  16839. 8006eb4: e7bb b.n 8006e2e <_printf_i+0x132>
  16840. 8006eb6: 680b ldr r3, [r1, #0]
  16841. 8006eb8: 6826 ldr r6, [r4, #0]
  16842. 8006eba: 1d1d adds r5, r3, #4
  16843. 8006ebc: 6960 ldr r0, [r4, #20]
  16844. 8006ebe: 600d str r5, [r1, #0]
  16845. 8006ec0: 0635 lsls r5, r6, #24
  16846. 8006ec2: 681b ldr r3, [r3, #0]
  16847. 8006ec4: d501 bpl.n 8006eca <_printf_i+0x1ce>
  16848. 8006ec6: 6018 str r0, [r3, #0]
  16849. 8006ec8: e002 b.n 8006ed0 <_printf_i+0x1d4>
  16850. 8006eca: 0671 lsls r1, r6, #25
  16851. 8006ecc: d5fb bpl.n 8006ec6 <_printf_i+0x1ca>
  16852. 8006ece: 8018 strh r0, [r3, #0]
  16853. 8006ed0: 2300 movs r3, #0
  16854. 8006ed2: 4616 mov r6, r2
  16855. 8006ed4: 6123 str r3, [r4, #16]
  16856. 8006ed6: e7ba b.n 8006e4e <_printf_i+0x152>
  16857. 8006ed8: 680b ldr r3, [r1, #0]
  16858. 8006eda: 1d1a adds r2, r3, #4
  16859. 8006edc: 600a str r2, [r1, #0]
  16860. 8006ede: 681e ldr r6, [r3, #0]
  16861. 8006ee0: 2100 movs r1, #0
  16862. 8006ee2: 4630 mov r0, r6
  16863. 8006ee4: 6862 ldr r2, [r4, #4]
  16864. 8006ee6: f000 fed9 bl 8007c9c <memchr>
  16865. 8006eea: b108 cbz r0, 8006ef0 <_printf_i+0x1f4>
  16866. 8006eec: 1b80 subs r0, r0, r6
  16867. 8006eee: 6060 str r0, [r4, #4]
  16868. 8006ef0: 6863 ldr r3, [r4, #4]
  16869. 8006ef2: 6123 str r3, [r4, #16]
  16870. 8006ef4: 2300 movs r3, #0
  16871. 8006ef6: f884 3043 strb.w r3, [r4, #67] ; 0x43
  16872. 8006efa: e7a8 b.n 8006e4e <_printf_i+0x152>
  16873. 8006efc: 4632 mov r2, r6
  16874. 8006efe: 4649 mov r1, r9
  16875. 8006f00: 4640 mov r0, r8
  16876. 8006f02: 6923 ldr r3, [r4, #16]
  16877. 8006f04: 47d0 blx sl
  16878. 8006f06: 3001 adds r0, #1
  16879. 8006f08: d0ab beq.n 8006e62 <_printf_i+0x166>
  16880. 8006f0a: 6823 ldr r3, [r4, #0]
  16881. 8006f0c: 079b lsls r3, r3, #30
  16882. 8006f0e: d413 bmi.n 8006f38 <_printf_i+0x23c>
  16883. 8006f10: 68e0 ldr r0, [r4, #12]
  16884. 8006f12: 9b03 ldr r3, [sp, #12]
  16885. 8006f14: 4298 cmp r0, r3
  16886. 8006f16: bfb8 it lt
  16887. 8006f18: 4618 movlt r0, r3
  16888. 8006f1a: e7a4 b.n 8006e66 <_printf_i+0x16a>
  16889. 8006f1c: 2301 movs r3, #1
  16890. 8006f1e: 4632 mov r2, r6
  16891. 8006f20: 4649 mov r1, r9
  16892. 8006f22: 4640 mov r0, r8
  16893. 8006f24: 47d0 blx sl
  16894. 8006f26: 3001 adds r0, #1
  16895. 8006f28: d09b beq.n 8006e62 <_printf_i+0x166>
  16896. 8006f2a: 3501 adds r5, #1
  16897. 8006f2c: 68e3 ldr r3, [r4, #12]
  16898. 8006f2e: 9903 ldr r1, [sp, #12]
  16899. 8006f30: 1a5b subs r3, r3, r1
  16900. 8006f32: 42ab cmp r3, r5
  16901. 8006f34: dcf2 bgt.n 8006f1c <_printf_i+0x220>
  16902. 8006f36: e7eb b.n 8006f10 <_printf_i+0x214>
  16903. 8006f38: 2500 movs r5, #0
  16904. 8006f3a: f104 0619 add.w r6, r4, #25
  16905. 8006f3e: e7f5 b.n 8006f2c <_printf_i+0x230>
  16906. 8006f40: 0800a12a .word 0x0800a12a
  16907. 8006f44: 0800a13b .word 0x0800a13b
  16908. 08006f48 <siprintf>:
  16909. 8006f48: b40e push {r1, r2, r3}
  16910. 8006f4a: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000
  16911. 8006f4e: b500 push {lr}
  16912. 8006f50: b09c sub sp, #112 ; 0x70
  16913. 8006f52: ab1d add r3, sp, #116 ; 0x74
  16914. 8006f54: 9002 str r0, [sp, #8]
  16915. 8006f56: 9006 str r0, [sp, #24]
  16916. 8006f58: 9107 str r1, [sp, #28]
  16917. 8006f5a: 9104 str r1, [sp, #16]
  16918. 8006f5c: 4808 ldr r0, [pc, #32] ; (8006f80 <siprintf+0x38>)
  16919. 8006f5e: 4909 ldr r1, [pc, #36] ; (8006f84 <siprintf+0x3c>)
  16920. 8006f60: f853 2b04 ldr.w r2, [r3], #4
  16921. 8006f64: 9105 str r1, [sp, #20]
  16922. 8006f66: 6800 ldr r0, [r0, #0]
  16923. 8006f68: a902 add r1, sp, #8
  16924. 8006f6a: 9301 str r3, [sp, #4]
  16925. 8006f6c: f001 fb36 bl 80085dc <_svfiprintf_r>
  16926. 8006f70: 2200 movs r2, #0
  16927. 8006f72: 9b02 ldr r3, [sp, #8]
  16928. 8006f74: 701a strb r2, [r3, #0]
  16929. 8006f76: b01c add sp, #112 ; 0x70
  16930. 8006f78: f85d eb04 ldr.w lr, [sp], #4
  16931. 8006f7c: b003 add sp, #12
  16932. 8006f7e: 4770 bx lr
  16933. 8006f80: 20000014 .word 0x20000014
  16934. 8006f84: ffff0208 .word 0xffff0208
  16935. 08006f88 <quorem>:
  16936. 8006f88: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  16937. 8006f8c: 6903 ldr r3, [r0, #16]
  16938. 8006f8e: 690c ldr r4, [r1, #16]
  16939. 8006f90: 4607 mov r7, r0
  16940. 8006f92: 42a3 cmp r3, r4
  16941. 8006f94: f2c0 8083 blt.w 800709e <quorem+0x116>
  16942. 8006f98: 3c01 subs r4, #1
  16943. 8006f9a: f100 0514 add.w r5, r0, #20
  16944. 8006f9e: f101 0814 add.w r8, r1, #20
  16945. 8006fa2: eb05 0384 add.w r3, r5, r4, lsl #2
  16946. 8006fa6: 9301 str r3, [sp, #4]
  16947. 8006fa8: f858 3024 ldr.w r3, [r8, r4, lsl #2]
  16948. 8006fac: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  16949. 8006fb0: 3301 adds r3, #1
  16950. 8006fb2: 429a cmp r2, r3
  16951. 8006fb4: fbb2 f6f3 udiv r6, r2, r3
  16952. 8006fb8: ea4f 0b84 mov.w fp, r4, lsl #2
  16953. 8006fbc: eb08 0984 add.w r9, r8, r4, lsl #2
  16954. 8006fc0: d332 bcc.n 8007028 <quorem+0xa0>
  16955. 8006fc2: f04f 0e00 mov.w lr, #0
  16956. 8006fc6: 4640 mov r0, r8
  16957. 8006fc8: 46ac mov ip, r5
  16958. 8006fca: 46f2 mov sl, lr
  16959. 8006fcc: f850 2b04 ldr.w r2, [r0], #4
  16960. 8006fd0: b293 uxth r3, r2
  16961. 8006fd2: fb06 e303 mla r3, r6, r3, lr
  16962. 8006fd6: 0c12 lsrs r2, r2, #16
  16963. 8006fd8: ea4f 4e13 mov.w lr, r3, lsr #16
  16964. 8006fdc: fb06 e202 mla r2, r6, r2, lr
  16965. 8006fe0: b29b uxth r3, r3
  16966. 8006fe2: ebaa 0303 sub.w r3, sl, r3
  16967. 8006fe6: f8dc a000 ldr.w sl, [ip]
  16968. 8006fea: ea4f 4e12 mov.w lr, r2, lsr #16
  16969. 8006fee: fa1f fa8a uxth.w sl, sl
  16970. 8006ff2: 4453 add r3, sl
  16971. 8006ff4: fa1f fa82 uxth.w sl, r2
  16972. 8006ff8: f8dc 2000 ldr.w r2, [ip]
  16973. 8006ffc: 4581 cmp r9, r0
  16974. 8006ffe: ebca 4212 rsb r2, sl, r2, lsr #16
  16975. 8007002: eb02 4223 add.w r2, r2, r3, asr #16
  16976. 8007006: b29b uxth r3, r3
  16977. 8007008: ea43 4302 orr.w r3, r3, r2, lsl #16
  16978. 800700c: ea4f 4a22 mov.w sl, r2, asr #16
  16979. 8007010: f84c 3b04 str.w r3, [ip], #4
  16980. 8007014: d2da bcs.n 8006fcc <quorem+0x44>
  16981. 8007016: f855 300b ldr.w r3, [r5, fp]
  16982. 800701a: b92b cbnz r3, 8007028 <quorem+0xa0>
  16983. 800701c: 9b01 ldr r3, [sp, #4]
  16984. 800701e: 3b04 subs r3, #4
  16985. 8007020: 429d cmp r5, r3
  16986. 8007022: 461a mov r2, r3
  16987. 8007024: d32f bcc.n 8007086 <quorem+0xfe>
  16988. 8007026: 613c str r4, [r7, #16]
  16989. 8007028: 4638 mov r0, r7
  16990. 800702a: f001 f8bf bl 80081ac <__mcmp>
  16991. 800702e: 2800 cmp r0, #0
  16992. 8007030: db25 blt.n 800707e <quorem+0xf6>
  16993. 8007032: 4628 mov r0, r5
  16994. 8007034: f04f 0c00 mov.w ip, #0
  16995. 8007038: 3601 adds r6, #1
  16996. 800703a: f858 1b04 ldr.w r1, [r8], #4
  16997. 800703e: f8d0 e000 ldr.w lr, [r0]
  16998. 8007042: b28b uxth r3, r1
  16999. 8007044: ebac 0303 sub.w r3, ip, r3
  17000. 8007048: fa1f f28e uxth.w r2, lr
  17001. 800704c: 4413 add r3, r2
  17002. 800704e: 0c0a lsrs r2, r1, #16
  17003. 8007050: ebc2 421e rsb r2, r2, lr, lsr #16
  17004. 8007054: eb02 4223 add.w r2, r2, r3, asr #16
  17005. 8007058: b29b uxth r3, r3
  17006. 800705a: ea43 4302 orr.w r3, r3, r2, lsl #16
  17007. 800705e: 45c1 cmp r9, r8
  17008. 8007060: ea4f 4c22 mov.w ip, r2, asr #16
  17009. 8007064: f840 3b04 str.w r3, [r0], #4
  17010. 8007068: d2e7 bcs.n 800703a <quorem+0xb2>
  17011. 800706a: f855 2024 ldr.w r2, [r5, r4, lsl #2]
  17012. 800706e: eb05 0384 add.w r3, r5, r4, lsl #2
  17013. 8007072: b922 cbnz r2, 800707e <quorem+0xf6>
  17014. 8007074: 3b04 subs r3, #4
  17015. 8007076: 429d cmp r5, r3
  17016. 8007078: 461a mov r2, r3
  17017. 800707a: d30a bcc.n 8007092 <quorem+0x10a>
  17018. 800707c: 613c str r4, [r7, #16]
  17019. 800707e: 4630 mov r0, r6
  17020. 8007080: b003 add sp, #12
  17021. 8007082: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  17022. 8007086: 6812 ldr r2, [r2, #0]
  17023. 8007088: 3b04 subs r3, #4
  17024. 800708a: 2a00 cmp r2, #0
  17025. 800708c: d1cb bne.n 8007026 <quorem+0x9e>
  17026. 800708e: 3c01 subs r4, #1
  17027. 8007090: e7c6 b.n 8007020 <quorem+0x98>
  17028. 8007092: 6812 ldr r2, [r2, #0]
  17029. 8007094: 3b04 subs r3, #4
  17030. 8007096: 2a00 cmp r2, #0
  17031. 8007098: d1f0 bne.n 800707c <quorem+0xf4>
  17032. 800709a: 3c01 subs r4, #1
  17033. 800709c: e7eb b.n 8007076 <quorem+0xee>
  17034. 800709e: 2000 movs r0, #0
  17035. 80070a0: e7ee b.n 8007080 <quorem+0xf8>
  17036. 80070a2: 0000 movs r0, r0
  17037. 80070a4: 0000 movs r0, r0
  17038. ...
  17039. 080070a8 <_dtoa_r>:
  17040. 80070a8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  17041. 80070ac: 4616 mov r6, r2
  17042. 80070ae: 461f mov r7, r3
  17043. 80070b0: 6a44 ldr r4, [r0, #36] ; 0x24
  17044. 80070b2: b099 sub sp, #100 ; 0x64
  17045. 80070b4: 4605 mov r5, r0
  17046. 80070b6: e9cd 6704 strd r6, r7, [sp, #16]
  17047. 80070ba: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94
  17048. 80070be: b974 cbnz r4, 80070de <_dtoa_r+0x36>
  17049. 80070c0: 2010 movs r0, #16
  17050. 80070c2: f000 fde3 bl 8007c8c <malloc>
  17051. 80070c6: 4602 mov r2, r0
  17052. 80070c8: 6268 str r0, [r5, #36] ; 0x24
  17053. 80070ca: b920 cbnz r0, 80070d6 <_dtoa_r+0x2e>
  17054. 80070cc: 21ea movs r1, #234 ; 0xea
  17055. 80070ce: 4bae ldr r3, [pc, #696] ; (8007388 <_dtoa_r+0x2e0>)
  17056. 80070d0: 48ae ldr r0, [pc, #696] ; (800738c <_dtoa_r+0x2e4>)
  17057. 80070d2: f001 fb93 bl 80087fc <__assert_func>
  17058. 80070d6: e9c0 4401 strd r4, r4, [r0, #4]
  17059. 80070da: 6004 str r4, [r0, #0]
  17060. 80070dc: 60c4 str r4, [r0, #12]
  17061. 80070de: 6a6b ldr r3, [r5, #36] ; 0x24
  17062. 80070e0: 6819 ldr r1, [r3, #0]
  17063. 80070e2: b151 cbz r1, 80070fa <_dtoa_r+0x52>
  17064. 80070e4: 685a ldr r2, [r3, #4]
  17065. 80070e6: 2301 movs r3, #1
  17066. 80070e8: 4093 lsls r3, r2
  17067. 80070ea: 604a str r2, [r1, #4]
  17068. 80070ec: 608b str r3, [r1, #8]
  17069. 80070ee: 4628 mov r0, r5
  17070. 80070f0: f000 fe22 bl 8007d38 <_Bfree>
  17071. 80070f4: 2200 movs r2, #0
  17072. 80070f6: 6a6b ldr r3, [r5, #36] ; 0x24
  17073. 80070f8: 601a str r2, [r3, #0]
  17074. 80070fa: 1e3b subs r3, r7, #0
  17075. 80070fc: bfaf iteee ge
  17076. 80070fe: 2300 movge r3, #0
  17077. 8007100: 2201 movlt r2, #1
  17078. 8007102: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000
  17079. 8007106: 9305 strlt r3, [sp, #20]
  17080. 8007108: bfa8 it ge
  17081. 800710a: f8c8 3000 strge.w r3, [r8]
  17082. 800710e: f8dd 9014 ldr.w r9, [sp, #20]
  17083. 8007112: 4b9f ldr r3, [pc, #636] ; (8007390 <_dtoa_r+0x2e8>)
  17084. 8007114: bfb8 it lt
  17085. 8007116: f8c8 2000 strlt.w r2, [r8]
  17086. 800711a: ea33 0309 bics.w r3, r3, r9
  17087. 800711e: d119 bne.n 8007154 <_dtoa_r+0xac>
  17088. 8007120: f242 730f movw r3, #9999 ; 0x270f
  17089. 8007124: 9a24 ldr r2, [sp, #144] ; 0x90
  17090. 8007126: 6013 str r3, [r2, #0]
  17091. 8007128: f3c9 0313 ubfx r3, r9, #0, #20
  17092. 800712c: 4333 orrs r3, r6
  17093. 800712e: f000 8580 beq.w 8007c32 <_dtoa_r+0xb8a>
  17094. 8007132: 9b26 ldr r3, [sp, #152] ; 0x98
  17095. 8007134: b953 cbnz r3, 800714c <_dtoa_r+0xa4>
  17096. 8007136: 4b97 ldr r3, [pc, #604] ; (8007394 <_dtoa_r+0x2ec>)
  17097. 8007138: e022 b.n 8007180 <_dtoa_r+0xd8>
  17098. 800713a: 4b97 ldr r3, [pc, #604] ; (8007398 <_dtoa_r+0x2f0>)
  17099. 800713c: 9308 str r3, [sp, #32]
  17100. 800713e: 3308 adds r3, #8
  17101. 8007140: 9a26 ldr r2, [sp, #152] ; 0x98
  17102. 8007142: 6013 str r3, [r2, #0]
  17103. 8007144: 9808 ldr r0, [sp, #32]
  17104. 8007146: b019 add sp, #100 ; 0x64
  17105. 8007148: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  17106. 800714c: 4b91 ldr r3, [pc, #580] ; (8007394 <_dtoa_r+0x2ec>)
  17107. 800714e: 9308 str r3, [sp, #32]
  17108. 8007150: 3303 adds r3, #3
  17109. 8007152: e7f5 b.n 8007140 <_dtoa_r+0x98>
  17110. 8007154: e9dd 3404 ldrd r3, r4, [sp, #16]
  17111. 8007158: e9cd 340c strd r3, r4, [sp, #48] ; 0x30
  17112. 800715c: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  17113. 8007160: 2200 movs r2, #0
  17114. 8007162: 2300 movs r3, #0
  17115. 8007164: f7f9 fc38 bl 80009d8 <__aeabi_dcmpeq>
  17116. 8007168: 4680 mov r8, r0
  17117. 800716a: b158 cbz r0, 8007184 <_dtoa_r+0xdc>
  17118. 800716c: 2301 movs r3, #1
  17119. 800716e: 9a24 ldr r2, [sp, #144] ; 0x90
  17120. 8007170: 6013 str r3, [r2, #0]
  17121. 8007172: 9b26 ldr r3, [sp, #152] ; 0x98
  17122. 8007174: 2b00 cmp r3, #0
  17123. 8007176: f000 8559 beq.w 8007c2c <_dtoa_r+0xb84>
  17124. 800717a: 4888 ldr r0, [pc, #544] ; (800739c <_dtoa_r+0x2f4>)
  17125. 800717c: 6018 str r0, [r3, #0]
  17126. 800717e: 1e43 subs r3, r0, #1
  17127. 8007180: 9308 str r3, [sp, #32]
  17128. 8007182: e7df b.n 8007144 <_dtoa_r+0x9c>
  17129. 8007184: ab16 add r3, sp, #88 ; 0x58
  17130. 8007186: 9301 str r3, [sp, #4]
  17131. 8007188: ab17 add r3, sp, #92 ; 0x5c
  17132. 800718a: 9300 str r3, [sp, #0]
  17133. 800718c: 4628 mov r0, r5
  17134. 800718e: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30
  17135. 8007192: f001 f8b7 bl 8008304 <__d2b>
  17136. 8007196: f3c9 540a ubfx r4, r9, #20, #11
  17137. 800719a: 4682 mov sl, r0
  17138. 800719c: 2c00 cmp r4, #0
  17139. 800719e: d07e beq.n 800729e <_dtoa_r+0x1f6>
  17140. 80071a0: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  17141. 80071a4: 9b0d ldr r3, [sp, #52] ; 0x34
  17142. 80071a6: f2a4 34ff subw r4, r4, #1023 ; 0x3ff
  17143. 80071aa: f3c3 0313 ubfx r3, r3, #0, #20
  17144. 80071ae: f043 517f orr.w r1, r3, #1069547520 ; 0x3fc00000
  17145. 80071b2: f441 1140 orr.w r1, r1, #3145728 ; 0x300000
  17146. 80071b6: f8cd 804c str.w r8, [sp, #76] ; 0x4c
  17147. 80071ba: 2200 movs r2, #0
  17148. 80071bc: 4b78 ldr r3, [pc, #480] ; (80073a0 <_dtoa_r+0x2f8>)
  17149. 80071be: f7f8 ffeb bl 8000198 <__aeabi_dsub>
  17150. 80071c2: a36b add r3, pc, #428 ; (adr r3, 8007370 <_dtoa_r+0x2c8>)
  17151. 80071c4: e9d3 2300 ldrd r2, r3, [r3]
  17152. 80071c8: f7f9 f99e bl 8000508 <__aeabi_dmul>
  17153. 80071cc: a36a add r3, pc, #424 ; (adr r3, 8007378 <_dtoa_r+0x2d0>)
  17154. 80071ce: e9d3 2300 ldrd r2, r3, [r3]
  17155. 80071d2: f7f8 ffe3 bl 800019c <__adddf3>
  17156. 80071d6: 4606 mov r6, r0
  17157. 80071d8: 4620 mov r0, r4
  17158. 80071da: 460f mov r7, r1
  17159. 80071dc: f7f9 f92a bl 8000434 <__aeabi_i2d>
  17160. 80071e0: a367 add r3, pc, #412 ; (adr r3, 8007380 <_dtoa_r+0x2d8>)
  17161. 80071e2: e9d3 2300 ldrd r2, r3, [r3]
  17162. 80071e6: f7f9 f98f bl 8000508 <__aeabi_dmul>
  17163. 80071ea: 4602 mov r2, r0
  17164. 80071ec: 460b mov r3, r1
  17165. 80071ee: 4630 mov r0, r6
  17166. 80071f0: 4639 mov r1, r7
  17167. 80071f2: f7f8 ffd3 bl 800019c <__adddf3>
  17168. 80071f6: 4606 mov r6, r0
  17169. 80071f8: 460f mov r7, r1
  17170. 80071fa: f7f9 fc35 bl 8000a68 <__aeabi_d2iz>
  17171. 80071fe: 2200 movs r2, #0
  17172. 8007200: 4681 mov r9, r0
  17173. 8007202: 2300 movs r3, #0
  17174. 8007204: 4630 mov r0, r6
  17175. 8007206: 4639 mov r1, r7
  17176. 8007208: f7f9 fbf0 bl 80009ec <__aeabi_dcmplt>
  17177. 800720c: b148 cbz r0, 8007222 <_dtoa_r+0x17a>
  17178. 800720e: 4648 mov r0, r9
  17179. 8007210: f7f9 f910 bl 8000434 <__aeabi_i2d>
  17180. 8007214: 4632 mov r2, r6
  17181. 8007216: 463b mov r3, r7
  17182. 8007218: f7f9 fbde bl 80009d8 <__aeabi_dcmpeq>
  17183. 800721c: b908 cbnz r0, 8007222 <_dtoa_r+0x17a>
  17184. 800721e: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
  17185. 8007222: f1b9 0f16 cmp.w r9, #22
  17186. 8007226: d857 bhi.n 80072d8 <_dtoa_r+0x230>
  17187. 8007228: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  17188. 800722c: 4b5d ldr r3, [pc, #372] ; (80073a4 <_dtoa_r+0x2fc>)
  17189. 800722e: eb03 03c9 add.w r3, r3, r9, lsl #3
  17190. 8007232: e9d3 2300 ldrd r2, r3, [r3]
  17191. 8007236: f7f9 fbd9 bl 80009ec <__aeabi_dcmplt>
  17192. 800723a: 2800 cmp r0, #0
  17193. 800723c: d04e beq.n 80072dc <_dtoa_r+0x234>
  17194. 800723e: 2300 movs r3, #0
  17195. 8007240: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
  17196. 8007244: 930f str r3, [sp, #60] ; 0x3c
  17197. 8007246: 9b16 ldr r3, [sp, #88] ; 0x58
  17198. 8007248: 1b1c subs r4, r3, r4
  17199. 800724a: 1e63 subs r3, r4, #1
  17200. 800724c: 9309 str r3, [sp, #36] ; 0x24
  17201. 800724e: bf49 itett mi
  17202. 8007250: f1c4 0301 rsbmi r3, r4, #1
  17203. 8007254: 2300 movpl r3, #0
  17204. 8007256: 9306 strmi r3, [sp, #24]
  17205. 8007258: 2300 movmi r3, #0
  17206. 800725a: bf54 ite pl
  17207. 800725c: 9306 strpl r3, [sp, #24]
  17208. 800725e: 9309 strmi r3, [sp, #36] ; 0x24
  17209. 8007260: f1b9 0f00 cmp.w r9, #0
  17210. 8007264: db3c blt.n 80072e0 <_dtoa_r+0x238>
  17211. 8007266: 9b09 ldr r3, [sp, #36] ; 0x24
  17212. 8007268: f8cd 9038 str.w r9, [sp, #56] ; 0x38
  17213. 800726c: 444b add r3, r9
  17214. 800726e: 9309 str r3, [sp, #36] ; 0x24
  17215. 8007270: 2300 movs r3, #0
  17216. 8007272: 930a str r3, [sp, #40] ; 0x28
  17217. 8007274: 9b22 ldr r3, [sp, #136] ; 0x88
  17218. 8007276: 2b09 cmp r3, #9
  17219. 8007278: d86c bhi.n 8007354 <_dtoa_r+0x2ac>
  17220. 800727a: 2b05 cmp r3, #5
  17221. 800727c: bfc4 itt gt
  17222. 800727e: 3b04 subgt r3, #4
  17223. 8007280: 9322 strgt r3, [sp, #136] ; 0x88
  17224. 8007282: 9b22 ldr r3, [sp, #136] ; 0x88
  17225. 8007284: bfc8 it gt
  17226. 8007286: 2400 movgt r4, #0
  17227. 8007288: f1a3 0302 sub.w r3, r3, #2
  17228. 800728c: bfd8 it le
  17229. 800728e: 2401 movle r4, #1
  17230. 8007290: 2b03 cmp r3, #3
  17231. 8007292: f200 808b bhi.w 80073ac <_dtoa_r+0x304>
  17232. 8007296: e8df f003 tbb [pc, r3]
  17233. 800729a: 4f2d .short 0x4f2d
  17234. 800729c: 5b4d .short 0x5b4d
  17235. 800729e: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58
  17236. 80072a2: 441c add r4, r3
  17237. 80072a4: f204 4332 addw r3, r4, #1074 ; 0x432
  17238. 80072a8: 2b20 cmp r3, #32
  17239. 80072aa: bfc3 ittte gt
  17240. 80072ac: f1c3 0340 rsbgt r3, r3, #64 ; 0x40
  17241. 80072b0: f204 4012 addwgt r0, r4, #1042 ; 0x412
  17242. 80072b4: fa09 f303 lslgt.w r3, r9, r3
  17243. 80072b8: f1c3 0320 rsble r3, r3, #32
  17244. 80072bc: bfc6 itte gt
  17245. 80072be: fa26 f000 lsrgt.w r0, r6, r0
  17246. 80072c2: 4318 orrgt r0, r3
  17247. 80072c4: fa06 f003 lslle.w r0, r6, r3
  17248. 80072c8: f7f9 f8a4 bl 8000414 <__aeabi_ui2d>
  17249. 80072cc: 2301 movs r3, #1
  17250. 80072ce: f1a1 71f8 sub.w r1, r1, #32505856 ; 0x1f00000
  17251. 80072d2: 3c01 subs r4, #1
  17252. 80072d4: 9313 str r3, [sp, #76] ; 0x4c
  17253. 80072d6: e770 b.n 80071ba <_dtoa_r+0x112>
  17254. 80072d8: 2301 movs r3, #1
  17255. 80072da: e7b3 b.n 8007244 <_dtoa_r+0x19c>
  17256. 80072dc: 900f str r0, [sp, #60] ; 0x3c
  17257. 80072de: e7b2 b.n 8007246 <_dtoa_r+0x19e>
  17258. 80072e0: 9b06 ldr r3, [sp, #24]
  17259. 80072e2: eba3 0309 sub.w r3, r3, r9
  17260. 80072e6: 9306 str r3, [sp, #24]
  17261. 80072e8: f1c9 0300 rsb r3, r9, #0
  17262. 80072ec: 930a str r3, [sp, #40] ; 0x28
  17263. 80072ee: 2300 movs r3, #0
  17264. 80072f0: 930e str r3, [sp, #56] ; 0x38
  17265. 80072f2: e7bf b.n 8007274 <_dtoa_r+0x1cc>
  17266. 80072f4: 2300 movs r3, #0
  17267. 80072f6: 930b str r3, [sp, #44] ; 0x2c
  17268. 80072f8: 9b23 ldr r3, [sp, #140] ; 0x8c
  17269. 80072fa: 2b00 cmp r3, #0
  17270. 80072fc: dc59 bgt.n 80073b2 <_dtoa_r+0x30a>
  17271. 80072fe: f04f 0b01 mov.w fp, #1
  17272. 8007302: 465b mov r3, fp
  17273. 8007304: f8cd b008 str.w fp, [sp, #8]
  17274. 8007308: f8cd b08c str.w fp, [sp, #140] ; 0x8c
  17275. 800730c: 2200 movs r2, #0
  17276. 800730e: 6a68 ldr r0, [r5, #36] ; 0x24
  17277. 8007310: 6042 str r2, [r0, #4]
  17278. 8007312: 2204 movs r2, #4
  17279. 8007314: f102 0614 add.w r6, r2, #20
  17280. 8007318: 429e cmp r6, r3
  17281. 800731a: 6841 ldr r1, [r0, #4]
  17282. 800731c: d94f bls.n 80073be <_dtoa_r+0x316>
  17283. 800731e: 4628 mov r0, r5
  17284. 8007320: f000 fcca bl 8007cb8 <_Balloc>
  17285. 8007324: 9008 str r0, [sp, #32]
  17286. 8007326: 2800 cmp r0, #0
  17287. 8007328: d14d bne.n 80073c6 <_dtoa_r+0x31e>
  17288. 800732a: 4602 mov r2, r0
  17289. 800732c: f44f 71d5 mov.w r1, #426 ; 0x1aa
  17290. 8007330: 4b1d ldr r3, [pc, #116] ; (80073a8 <_dtoa_r+0x300>)
  17291. 8007332: e6cd b.n 80070d0 <_dtoa_r+0x28>
  17292. 8007334: 2301 movs r3, #1
  17293. 8007336: e7de b.n 80072f6 <_dtoa_r+0x24e>
  17294. 8007338: 2300 movs r3, #0
  17295. 800733a: 930b str r3, [sp, #44] ; 0x2c
  17296. 800733c: 9b23 ldr r3, [sp, #140] ; 0x8c
  17297. 800733e: eb09 0b03 add.w fp, r9, r3
  17298. 8007342: f10b 0301 add.w r3, fp, #1
  17299. 8007346: 2b01 cmp r3, #1
  17300. 8007348: 9302 str r3, [sp, #8]
  17301. 800734a: bfb8 it lt
  17302. 800734c: 2301 movlt r3, #1
  17303. 800734e: e7dd b.n 800730c <_dtoa_r+0x264>
  17304. 8007350: 2301 movs r3, #1
  17305. 8007352: e7f2 b.n 800733a <_dtoa_r+0x292>
  17306. 8007354: 2401 movs r4, #1
  17307. 8007356: 2300 movs r3, #0
  17308. 8007358: 940b str r4, [sp, #44] ; 0x2c
  17309. 800735a: 9322 str r3, [sp, #136] ; 0x88
  17310. 800735c: f04f 3bff mov.w fp, #4294967295 ; 0xffffffff
  17311. 8007360: 2200 movs r2, #0
  17312. 8007362: 2312 movs r3, #18
  17313. 8007364: f8cd b008 str.w fp, [sp, #8]
  17314. 8007368: 9223 str r2, [sp, #140] ; 0x8c
  17315. 800736a: e7cf b.n 800730c <_dtoa_r+0x264>
  17316. 800736c: f3af 8000 nop.w
  17317. 8007370: 636f4361 .word 0x636f4361
  17318. 8007374: 3fd287a7 .word 0x3fd287a7
  17319. 8007378: 8b60c8b3 .word 0x8b60c8b3
  17320. 800737c: 3fc68a28 .word 0x3fc68a28
  17321. 8007380: 509f79fb .word 0x509f79fb
  17322. 8007384: 3fd34413 .word 0x3fd34413
  17323. 8007388: 0800a159 .word 0x0800a159
  17324. 800738c: 0800a170 .word 0x0800a170
  17325. 8007390: 7ff00000 .word 0x7ff00000
  17326. 8007394: 0800a155 .word 0x0800a155
  17327. 8007398: 0800a14c .word 0x0800a14c
  17328. 800739c: 0800a129 .word 0x0800a129
  17329. 80073a0: 3ff80000 .word 0x3ff80000
  17330. 80073a4: 0800a268 .word 0x0800a268
  17331. 80073a8: 0800a1cf .word 0x0800a1cf
  17332. 80073ac: 2301 movs r3, #1
  17333. 80073ae: 930b str r3, [sp, #44] ; 0x2c
  17334. 80073b0: e7d4 b.n 800735c <_dtoa_r+0x2b4>
  17335. 80073b2: f8dd b08c ldr.w fp, [sp, #140] ; 0x8c
  17336. 80073b6: 465b mov r3, fp
  17337. 80073b8: f8cd b008 str.w fp, [sp, #8]
  17338. 80073bc: e7a6 b.n 800730c <_dtoa_r+0x264>
  17339. 80073be: 3101 adds r1, #1
  17340. 80073c0: 6041 str r1, [r0, #4]
  17341. 80073c2: 0052 lsls r2, r2, #1
  17342. 80073c4: e7a6 b.n 8007314 <_dtoa_r+0x26c>
  17343. 80073c6: 6a6b ldr r3, [r5, #36] ; 0x24
  17344. 80073c8: 9a08 ldr r2, [sp, #32]
  17345. 80073ca: 601a str r2, [r3, #0]
  17346. 80073cc: 9b02 ldr r3, [sp, #8]
  17347. 80073ce: 2b0e cmp r3, #14
  17348. 80073d0: f200 80a8 bhi.w 8007524 <_dtoa_r+0x47c>
  17349. 80073d4: 2c00 cmp r4, #0
  17350. 80073d6: f000 80a5 beq.w 8007524 <_dtoa_r+0x47c>
  17351. 80073da: f1b9 0f00 cmp.w r9, #0
  17352. 80073de: dd34 ble.n 800744a <_dtoa_r+0x3a2>
  17353. 80073e0: 4a9a ldr r2, [pc, #616] ; (800764c <_dtoa_r+0x5a4>)
  17354. 80073e2: f009 030f and.w r3, r9, #15
  17355. 80073e6: eb02 03c3 add.w r3, r2, r3, lsl #3
  17356. 80073ea: f419 7f80 tst.w r9, #256 ; 0x100
  17357. 80073ee: e9d3 3400 ldrd r3, r4, [r3]
  17358. 80073f2: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40
  17359. 80073f6: ea4f 1429 mov.w r4, r9, asr #4
  17360. 80073fa: d016 beq.n 800742a <_dtoa_r+0x382>
  17361. 80073fc: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  17362. 8007400: 4b93 ldr r3, [pc, #588] ; (8007650 <_dtoa_r+0x5a8>)
  17363. 8007402: 2703 movs r7, #3
  17364. 8007404: e9d3 2308 ldrd r2, r3, [r3, #32]
  17365. 8007408: f7f9 f9a8 bl 800075c <__aeabi_ddiv>
  17366. 800740c: e9cd 0104 strd r0, r1, [sp, #16]
  17367. 8007410: f004 040f and.w r4, r4, #15
  17368. 8007414: 4e8e ldr r6, [pc, #568] ; (8007650 <_dtoa_r+0x5a8>)
  17369. 8007416: b954 cbnz r4, 800742e <_dtoa_r+0x386>
  17370. 8007418: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  17371. 800741c: e9dd 0104 ldrd r0, r1, [sp, #16]
  17372. 8007420: f7f9 f99c bl 800075c <__aeabi_ddiv>
  17373. 8007424: e9cd 0104 strd r0, r1, [sp, #16]
  17374. 8007428: e029 b.n 800747e <_dtoa_r+0x3d6>
  17375. 800742a: 2702 movs r7, #2
  17376. 800742c: e7f2 b.n 8007414 <_dtoa_r+0x36c>
  17377. 800742e: 07e1 lsls r1, r4, #31
  17378. 8007430: d508 bpl.n 8007444 <_dtoa_r+0x39c>
  17379. 8007432: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  17380. 8007436: e9d6 2300 ldrd r2, r3, [r6]
  17381. 800743a: f7f9 f865 bl 8000508 <__aeabi_dmul>
  17382. 800743e: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  17383. 8007442: 3701 adds r7, #1
  17384. 8007444: 1064 asrs r4, r4, #1
  17385. 8007446: 3608 adds r6, #8
  17386. 8007448: e7e5 b.n 8007416 <_dtoa_r+0x36e>
  17387. 800744a: f000 80a5 beq.w 8007598 <_dtoa_r+0x4f0>
  17388. 800744e: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30
  17389. 8007452: f1c9 0400 rsb r4, r9, #0
  17390. 8007456: 4b7d ldr r3, [pc, #500] ; (800764c <_dtoa_r+0x5a4>)
  17391. 8007458: f004 020f and.w r2, r4, #15
  17392. 800745c: eb03 03c2 add.w r3, r3, r2, lsl #3
  17393. 8007460: e9d3 2300 ldrd r2, r3, [r3]
  17394. 8007464: f7f9 f850 bl 8000508 <__aeabi_dmul>
  17395. 8007468: 2702 movs r7, #2
  17396. 800746a: 2300 movs r3, #0
  17397. 800746c: e9cd 0104 strd r0, r1, [sp, #16]
  17398. 8007470: 4e77 ldr r6, [pc, #476] ; (8007650 <_dtoa_r+0x5a8>)
  17399. 8007472: 1124 asrs r4, r4, #4
  17400. 8007474: 2c00 cmp r4, #0
  17401. 8007476: f040 8084 bne.w 8007582 <_dtoa_r+0x4da>
  17402. 800747a: 2b00 cmp r3, #0
  17403. 800747c: d1d2 bne.n 8007424 <_dtoa_r+0x37c>
  17404. 800747e: 9b0f ldr r3, [sp, #60] ; 0x3c
  17405. 8007480: 2b00 cmp r3, #0
  17406. 8007482: f000 808b beq.w 800759c <_dtoa_r+0x4f4>
  17407. 8007486: e9dd 3404 ldrd r3, r4, [sp, #16]
  17408. 800748a: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40
  17409. 800748e: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  17410. 8007492: 2200 movs r2, #0
  17411. 8007494: 4b6f ldr r3, [pc, #444] ; (8007654 <_dtoa_r+0x5ac>)
  17412. 8007496: f7f9 faa9 bl 80009ec <__aeabi_dcmplt>
  17413. 800749a: 2800 cmp r0, #0
  17414. 800749c: d07e beq.n 800759c <_dtoa_r+0x4f4>
  17415. 800749e: 9b02 ldr r3, [sp, #8]
  17416. 80074a0: 2b00 cmp r3, #0
  17417. 80074a2: d07b beq.n 800759c <_dtoa_r+0x4f4>
  17418. 80074a4: f1bb 0f00 cmp.w fp, #0
  17419. 80074a8: dd38 ble.n 800751c <_dtoa_r+0x474>
  17420. 80074aa: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  17421. 80074ae: 2200 movs r2, #0
  17422. 80074b0: 4b69 ldr r3, [pc, #420] ; (8007658 <_dtoa_r+0x5b0>)
  17423. 80074b2: f7f9 f829 bl 8000508 <__aeabi_dmul>
  17424. 80074b6: 465c mov r4, fp
  17425. 80074b8: e9cd 0104 strd r0, r1, [sp, #16]
  17426. 80074bc: f109 38ff add.w r8, r9, #4294967295 ; 0xffffffff
  17427. 80074c0: 3701 adds r7, #1
  17428. 80074c2: 4638 mov r0, r7
  17429. 80074c4: f7f8 ffb6 bl 8000434 <__aeabi_i2d>
  17430. 80074c8: e9dd 2304 ldrd r2, r3, [sp, #16]
  17431. 80074cc: f7f9 f81c bl 8000508 <__aeabi_dmul>
  17432. 80074d0: 2200 movs r2, #0
  17433. 80074d2: 4b62 ldr r3, [pc, #392] ; (800765c <_dtoa_r+0x5b4>)
  17434. 80074d4: f7f8 fe62 bl 800019c <__adddf3>
  17435. 80074d8: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000
  17436. 80074dc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  17437. 80074e0: 9611 str r6, [sp, #68] ; 0x44
  17438. 80074e2: 2c00 cmp r4, #0
  17439. 80074e4: d15d bne.n 80075a2 <_dtoa_r+0x4fa>
  17440. 80074e6: e9dd 0104 ldrd r0, r1, [sp, #16]
  17441. 80074ea: 2200 movs r2, #0
  17442. 80074ec: 4b5c ldr r3, [pc, #368] ; (8007660 <_dtoa_r+0x5b8>)
  17443. 80074ee: f7f8 fe53 bl 8000198 <__aeabi_dsub>
  17444. 80074f2: 4602 mov r2, r0
  17445. 80074f4: 460b mov r3, r1
  17446. 80074f6: e9cd 2304 strd r2, r3, [sp, #16]
  17447. 80074fa: 4633 mov r3, r6
  17448. 80074fc: 9a10 ldr r2, [sp, #64] ; 0x40
  17449. 80074fe: f7f9 fa93 bl 8000a28 <__aeabi_dcmpgt>
  17450. 8007502: 2800 cmp r0, #0
  17451. 8007504: f040 829e bne.w 8007a44 <_dtoa_r+0x99c>
  17452. 8007508: e9dd 0104 ldrd r0, r1, [sp, #16]
  17453. 800750c: 9a10 ldr r2, [sp, #64] ; 0x40
  17454. 800750e: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000
  17455. 8007512: f7f9 fa6b bl 80009ec <__aeabi_dcmplt>
  17456. 8007516: 2800 cmp r0, #0
  17457. 8007518: f040 8292 bne.w 8007a40 <_dtoa_r+0x998>
  17458. 800751c: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30
  17459. 8007520: e9cd 3404 strd r3, r4, [sp, #16]
  17460. 8007524: 9b17 ldr r3, [sp, #92] ; 0x5c
  17461. 8007526: 2b00 cmp r3, #0
  17462. 8007528: f2c0 8153 blt.w 80077d2 <_dtoa_r+0x72a>
  17463. 800752c: f1b9 0f0e cmp.w r9, #14
  17464. 8007530: f300 814f bgt.w 80077d2 <_dtoa_r+0x72a>
  17465. 8007534: 4b45 ldr r3, [pc, #276] ; (800764c <_dtoa_r+0x5a4>)
  17466. 8007536: eb03 03c9 add.w r3, r3, r9, lsl #3
  17467. 800753a: e9d3 3400 ldrd r3, r4, [r3]
  17468. 800753e: e9cd 3406 strd r3, r4, [sp, #24]
  17469. 8007542: 9b23 ldr r3, [sp, #140] ; 0x8c
  17470. 8007544: 2b00 cmp r3, #0
  17471. 8007546: f280 80db bge.w 8007700 <_dtoa_r+0x658>
  17472. 800754a: 9b02 ldr r3, [sp, #8]
  17473. 800754c: 2b00 cmp r3, #0
  17474. 800754e: f300 80d7 bgt.w 8007700 <_dtoa_r+0x658>
  17475. 8007552: f040 8274 bne.w 8007a3e <_dtoa_r+0x996>
  17476. 8007556: e9dd 0106 ldrd r0, r1, [sp, #24]
  17477. 800755a: 2200 movs r2, #0
  17478. 800755c: 4b40 ldr r3, [pc, #256] ; (8007660 <_dtoa_r+0x5b8>)
  17479. 800755e: f7f8 ffd3 bl 8000508 <__aeabi_dmul>
  17480. 8007562: e9dd 2304 ldrd r2, r3, [sp, #16]
  17481. 8007566: f7f9 fa55 bl 8000a14 <__aeabi_dcmpge>
  17482. 800756a: 9c02 ldr r4, [sp, #8]
  17483. 800756c: 4626 mov r6, r4
  17484. 800756e: 2800 cmp r0, #0
  17485. 8007570: f040 824a bne.w 8007a08 <_dtoa_r+0x960>
  17486. 8007574: 2331 movs r3, #49 ; 0x31
  17487. 8007576: 9f08 ldr r7, [sp, #32]
  17488. 8007578: f109 0901 add.w r9, r9, #1
  17489. 800757c: f807 3b01 strb.w r3, [r7], #1
  17490. 8007580: e246 b.n 8007a10 <_dtoa_r+0x968>
  17491. 8007582: 07e2 lsls r2, r4, #31
  17492. 8007584: d505 bpl.n 8007592 <_dtoa_r+0x4ea>
  17493. 8007586: e9d6 2300 ldrd r2, r3, [r6]
  17494. 800758a: f7f8 ffbd bl 8000508 <__aeabi_dmul>
  17495. 800758e: 2301 movs r3, #1
  17496. 8007590: 3701 adds r7, #1
  17497. 8007592: 1064 asrs r4, r4, #1
  17498. 8007594: 3608 adds r6, #8
  17499. 8007596: e76d b.n 8007474 <_dtoa_r+0x3cc>
  17500. 8007598: 2702 movs r7, #2
  17501. 800759a: e770 b.n 800747e <_dtoa_r+0x3d6>
  17502. 800759c: 46c8 mov r8, r9
  17503. 800759e: 9c02 ldr r4, [sp, #8]
  17504. 80075a0: e78f b.n 80074c2 <_dtoa_r+0x41a>
  17505. 80075a2: 9908 ldr r1, [sp, #32]
  17506. 80075a4: 4b29 ldr r3, [pc, #164] ; (800764c <_dtoa_r+0x5a4>)
  17507. 80075a6: 4421 add r1, r4
  17508. 80075a8: 9112 str r1, [sp, #72] ; 0x48
  17509. 80075aa: 990b ldr r1, [sp, #44] ; 0x2c
  17510. 80075ac: eb03 03c4 add.w r3, r3, r4, lsl #3
  17511. 80075b0: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40
  17512. 80075b4: e953 2302 ldrd r2, r3, [r3, #-8]
  17513. 80075b8: 2900 cmp r1, #0
  17514. 80075ba: d055 beq.n 8007668 <_dtoa_r+0x5c0>
  17515. 80075bc: 2000 movs r0, #0
  17516. 80075be: 4929 ldr r1, [pc, #164] ; (8007664 <_dtoa_r+0x5bc>)
  17517. 80075c0: f7f9 f8cc bl 800075c <__aeabi_ddiv>
  17518. 80075c4: 463b mov r3, r7
  17519. 80075c6: 4632 mov r2, r6
  17520. 80075c8: f7f8 fde6 bl 8000198 <__aeabi_dsub>
  17521. 80075cc: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  17522. 80075d0: 9f08 ldr r7, [sp, #32]
  17523. 80075d2: e9dd 0104 ldrd r0, r1, [sp, #16]
  17524. 80075d6: f7f9 fa47 bl 8000a68 <__aeabi_d2iz>
  17525. 80075da: 4604 mov r4, r0
  17526. 80075dc: f7f8 ff2a bl 8000434 <__aeabi_i2d>
  17527. 80075e0: 4602 mov r2, r0
  17528. 80075e2: 460b mov r3, r1
  17529. 80075e4: e9dd 0104 ldrd r0, r1, [sp, #16]
  17530. 80075e8: f7f8 fdd6 bl 8000198 <__aeabi_dsub>
  17531. 80075ec: 4602 mov r2, r0
  17532. 80075ee: 460b mov r3, r1
  17533. 80075f0: 3430 adds r4, #48 ; 0x30
  17534. 80075f2: e9cd 2304 strd r2, r3, [sp, #16]
  17535. 80075f6: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  17536. 80075fa: f807 4b01 strb.w r4, [r7], #1
  17537. 80075fe: f7f9 f9f5 bl 80009ec <__aeabi_dcmplt>
  17538. 8007602: 2800 cmp r0, #0
  17539. 8007604: d174 bne.n 80076f0 <_dtoa_r+0x648>
  17540. 8007606: e9dd 2304 ldrd r2, r3, [sp, #16]
  17541. 800760a: 2000 movs r0, #0
  17542. 800760c: 4911 ldr r1, [pc, #68] ; (8007654 <_dtoa_r+0x5ac>)
  17543. 800760e: f7f8 fdc3 bl 8000198 <__aeabi_dsub>
  17544. 8007612: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  17545. 8007616: f7f9 f9e9 bl 80009ec <__aeabi_dcmplt>
  17546. 800761a: 2800 cmp r0, #0
  17547. 800761c: f040 80b6 bne.w 800778c <_dtoa_r+0x6e4>
  17548. 8007620: 9b12 ldr r3, [sp, #72] ; 0x48
  17549. 8007622: 429f cmp r7, r3
  17550. 8007624: f43f af7a beq.w 800751c <_dtoa_r+0x474>
  17551. 8007628: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  17552. 800762c: 2200 movs r2, #0
  17553. 800762e: 4b0a ldr r3, [pc, #40] ; (8007658 <_dtoa_r+0x5b0>)
  17554. 8007630: f7f8 ff6a bl 8000508 <__aeabi_dmul>
  17555. 8007634: 2200 movs r2, #0
  17556. 8007636: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  17557. 800763a: e9dd 0104 ldrd r0, r1, [sp, #16]
  17558. 800763e: 4b06 ldr r3, [pc, #24] ; (8007658 <_dtoa_r+0x5b0>)
  17559. 8007640: f7f8 ff62 bl 8000508 <__aeabi_dmul>
  17560. 8007644: e9cd 0104 strd r0, r1, [sp, #16]
  17561. 8007648: e7c3 b.n 80075d2 <_dtoa_r+0x52a>
  17562. 800764a: bf00 nop
  17563. 800764c: 0800a268 .word 0x0800a268
  17564. 8007650: 0800a240 .word 0x0800a240
  17565. 8007654: 3ff00000 .word 0x3ff00000
  17566. 8007658: 40240000 .word 0x40240000
  17567. 800765c: 401c0000 .word 0x401c0000
  17568. 8007660: 40140000 .word 0x40140000
  17569. 8007664: 3fe00000 .word 0x3fe00000
  17570. 8007668: 4630 mov r0, r6
  17571. 800766a: 4639 mov r1, r7
  17572. 800766c: f7f8 ff4c bl 8000508 <__aeabi_dmul>
  17573. 8007670: 9b12 ldr r3, [sp, #72] ; 0x48
  17574. 8007672: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40
  17575. 8007676: 9c08 ldr r4, [sp, #32]
  17576. 8007678: 9314 str r3, [sp, #80] ; 0x50
  17577. 800767a: e9dd 0104 ldrd r0, r1, [sp, #16]
  17578. 800767e: f7f9 f9f3 bl 8000a68 <__aeabi_d2iz>
  17579. 8007682: 9015 str r0, [sp, #84] ; 0x54
  17580. 8007684: f7f8 fed6 bl 8000434 <__aeabi_i2d>
  17581. 8007688: 4602 mov r2, r0
  17582. 800768a: 460b mov r3, r1
  17583. 800768c: e9dd 0104 ldrd r0, r1, [sp, #16]
  17584. 8007690: f7f8 fd82 bl 8000198 <__aeabi_dsub>
  17585. 8007694: 9b15 ldr r3, [sp, #84] ; 0x54
  17586. 8007696: 4606 mov r6, r0
  17587. 8007698: 3330 adds r3, #48 ; 0x30
  17588. 800769a: f804 3b01 strb.w r3, [r4], #1
  17589. 800769e: 9b12 ldr r3, [sp, #72] ; 0x48
  17590. 80076a0: 460f mov r7, r1
  17591. 80076a2: 429c cmp r4, r3
  17592. 80076a4: f04f 0200 mov.w r2, #0
  17593. 80076a8: d124 bne.n 80076f4 <_dtoa_r+0x64c>
  17594. 80076aa: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40
  17595. 80076ae: 4bb3 ldr r3, [pc, #716] ; (800797c <_dtoa_r+0x8d4>)
  17596. 80076b0: f7f8 fd74 bl 800019c <__adddf3>
  17597. 80076b4: 4602 mov r2, r0
  17598. 80076b6: 460b mov r3, r1
  17599. 80076b8: 4630 mov r0, r6
  17600. 80076ba: 4639 mov r1, r7
  17601. 80076bc: f7f9 f9b4 bl 8000a28 <__aeabi_dcmpgt>
  17602. 80076c0: 2800 cmp r0, #0
  17603. 80076c2: d162 bne.n 800778a <_dtoa_r+0x6e2>
  17604. 80076c4: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40
  17605. 80076c8: 2000 movs r0, #0
  17606. 80076ca: 49ac ldr r1, [pc, #688] ; (800797c <_dtoa_r+0x8d4>)
  17607. 80076cc: f7f8 fd64 bl 8000198 <__aeabi_dsub>
  17608. 80076d0: 4602 mov r2, r0
  17609. 80076d2: 460b mov r3, r1
  17610. 80076d4: 4630 mov r0, r6
  17611. 80076d6: 4639 mov r1, r7
  17612. 80076d8: f7f9 f988 bl 80009ec <__aeabi_dcmplt>
  17613. 80076dc: 2800 cmp r0, #0
  17614. 80076de: f43f af1d beq.w 800751c <_dtoa_r+0x474>
  17615. 80076e2: 9f14 ldr r7, [sp, #80] ; 0x50
  17616. 80076e4: 1e7b subs r3, r7, #1
  17617. 80076e6: 9314 str r3, [sp, #80] ; 0x50
  17618. 80076e8: f817 3c01 ldrb.w r3, [r7, #-1]
  17619. 80076ec: 2b30 cmp r3, #48 ; 0x30
  17620. 80076ee: d0f8 beq.n 80076e2 <_dtoa_r+0x63a>
  17621. 80076f0: 46c1 mov r9, r8
  17622. 80076f2: e03a b.n 800776a <_dtoa_r+0x6c2>
  17623. 80076f4: 4ba2 ldr r3, [pc, #648] ; (8007980 <_dtoa_r+0x8d8>)
  17624. 80076f6: f7f8 ff07 bl 8000508 <__aeabi_dmul>
  17625. 80076fa: e9cd 0104 strd r0, r1, [sp, #16]
  17626. 80076fe: e7bc b.n 800767a <_dtoa_r+0x5d2>
  17627. 8007700: 9f08 ldr r7, [sp, #32]
  17628. 8007702: e9dd 2306 ldrd r2, r3, [sp, #24]
  17629. 8007706: e9dd 0104 ldrd r0, r1, [sp, #16]
  17630. 800770a: f7f9 f827 bl 800075c <__aeabi_ddiv>
  17631. 800770e: f7f9 f9ab bl 8000a68 <__aeabi_d2iz>
  17632. 8007712: 4604 mov r4, r0
  17633. 8007714: f7f8 fe8e bl 8000434 <__aeabi_i2d>
  17634. 8007718: e9dd 2306 ldrd r2, r3, [sp, #24]
  17635. 800771c: f7f8 fef4 bl 8000508 <__aeabi_dmul>
  17636. 8007720: f104 0630 add.w r6, r4, #48 ; 0x30
  17637. 8007724: 460b mov r3, r1
  17638. 8007726: 4602 mov r2, r0
  17639. 8007728: e9dd 0104 ldrd r0, r1, [sp, #16]
  17640. 800772c: f7f8 fd34 bl 8000198 <__aeabi_dsub>
  17641. 8007730: f807 6b01 strb.w r6, [r7], #1
  17642. 8007734: 9e08 ldr r6, [sp, #32]
  17643. 8007736: 9b02 ldr r3, [sp, #8]
  17644. 8007738: 1bbe subs r6, r7, r6
  17645. 800773a: 42b3 cmp r3, r6
  17646. 800773c: d13a bne.n 80077b4 <_dtoa_r+0x70c>
  17647. 800773e: 4602 mov r2, r0
  17648. 8007740: 460b mov r3, r1
  17649. 8007742: f7f8 fd2b bl 800019c <__adddf3>
  17650. 8007746: 4602 mov r2, r0
  17651. 8007748: 460b mov r3, r1
  17652. 800774a: e9cd 2302 strd r2, r3, [sp, #8]
  17653. 800774e: e9dd 2306 ldrd r2, r3, [sp, #24]
  17654. 8007752: f7f9 f969 bl 8000a28 <__aeabi_dcmpgt>
  17655. 8007756: bb58 cbnz r0, 80077b0 <_dtoa_r+0x708>
  17656. 8007758: e9dd 2306 ldrd r2, r3, [sp, #24]
  17657. 800775c: e9dd 0102 ldrd r0, r1, [sp, #8]
  17658. 8007760: f7f9 f93a bl 80009d8 <__aeabi_dcmpeq>
  17659. 8007764: b108 cbz r0, 800776a <_dtoa_r+0x6c2>
  17660. 8007766: 07e1 lsls r1, r4, #31
  17661. 8007768: d422 bmi.n 80077b0 <_dtoa_r+0x708>
  17662. 800776a: 4628 mov r0, r5
  17663. 800776c: 4651 mov r1, sl
  17664. 800776e: f000 fae3 bl 8007d38 <_Bfree>
  17665. 8007772: 2300 movs r3, #0
  17666. 8007774: 703b strb r3, [r7, #0]
  17667. 8007776: 9b24 ldr r3, [sp, #144] ; 0x90
  17668. 8007778: f109 0001 add.w r0, r9, #1
  17669. 800777c: 6018 str r0, [r3, #0]
  17670. 800777e: 9b26 ldr r3, [sp, #152] ; 0x98
  17671. 8007780: 2b00 cmp r3, #0
  17672. 8007782: f43f acdf beq.w 8007144 <_dtoa_r+0x9c>
  17673. 8007786: 601f str r7, [r3, #0]
  17674. 8007788: e4dc b.n 8007144 <_dtoa_r+0x9c>
  17675. 800778a: 4627 mov r7, r4
  17676. 800778c: 463b mov r3, r7
  17677. 800778e: 461f mov r7, r3
  17678. 8007790: f813 2d01 ldrb.w r2, [r3, #-1]!
  17679. 8007794: 2a39 cmp r2, #57 ; 0x39
  17680. 8007796: d107 bne.n 80077a8 <_dtoa_r+0x700>
  17681. 8007798: 9a08 ldr r2, [sp, #32]
  17682. 800779a: 429a cmp r2, r3
  17683. 800779c: d1f7 bne.n 800778e <_dtoa_r+0x6e6>
  17684. 800779e: 2230 movs r2, #48 ; 0x30
  17685. 80077a0: 9908 ldr r1, [sp, #32]
  17686. 80077a2: f108 0801 add.w r8, r8, #1
  17687. 80077a6: 700a strb r2, [r1, #0]
  17688. 80077a8: 781a ldrb r2, [r3, #0]
  17689. 80077aa: 3201 adds r2, #1
  17690. 80077ac: 701a strb r2, [r3, #0]
  17691. 80077ae: e79f b.n 80076f0 <_dtoa_r+0x648>
  17692. 80077b0: 46c8 mov r8, r9
  17693. 80077b2: e7eb b.n 800778c <_dtoa_r+0x6e4>
  17694. 80077b4: 2200 movs r2, #0
  17695. 80077b6: 4b72 ldr r3, [pc, #456] ; (8007980 <_dtoa_r+0x8d8>)
  17696. 80077b8: f7f8 fea6 bl 8000508 <__aeabi_dmul>
  17697. 80077bc: 4602 mov r2, r0
  17698. 80077be: 460b mov r3, r1
  17699. 80077c0: e9cd 2304 strd r2, r3, [sp, #16]
  17700. 80077c4: 2200 movs r2, #0
  17701. 80077c6: 2300 movs r3, #0
  17702. 80077c8: f7f9 f906 bl 80009d8 <__aeabi_dcmpeq>
  17703. 80077cc: 2800 cmp r0, #0
  17704. 80077ce: d098 beq.n 8007702 <_dtoa_r+0x65a>
  17705. 80077d0: e7cb b.n 800776a <_dtoa_r+0x6c2>
  17706. 80077d2: 9a0b ldr r2, [sp, #44] ; 0x2c
  17707. 80077d4: 2a00 cmp r2, #0
  17708. 80077d6: f000 80cd beq.w 8007974 <_dtoa_r+0x8cc>
  17709. 80077da: 9a22 ldr r2, [sp, #136] ; 0x88
  17710. 80077dc: 2a01 cmp r2, #1
  17711. 80077de: f300 80af bgt.w 8007940 <_dtoa_r+0x898>
  17712. 80077e2: 9a13 ldr r2, [sp, #76] ; 0x4c
  17713. 80077e4: 2a00 cmp r2, #0
  17714. 80077e6: f000 80a7 beq.w 8007938 <_dtoa_r+0x890>
  17715. 80077ea: f203 4333 addw r3, r3, #1075 ; 0x433
  17716. 80077ee: 9c0a ldr r4, [sp, #40] ; 0x28
  17717. 80077f0: 9f06 ldr r7, [sp, #24]
  17718. 80077f2: 9a06 ldr r2, [sp, #24]
  17719. 80077f4: 2101 movs r1, #1
  17720. 80077f6: 441a add r2, r3
  17721. 80077f8: 9206 str r2, [sp, #24]
  17722. 80077fa: 9a09 ldr r2, [sp, #36] ; 0x24
  17723. 80077fc: 4628 mov r0, r5
  17724. 80077fe: 441a add r2, r3
  17725. 8007800: 9209 str r2, [sp, #36] ; 0x24
  17726. 8007802: f000 fb53 bl 8007eac <__i2b>
  17727. 8007806: 4606 mov r6, r0
  17728. 8007808: 2f00 cmp r7, #0
  17729. 800780a: dd0c ble.n 8007826 <_dtoa_r+0x77e>
  17730. 800780c: 9b09 ldr r3, [sp, #36] ; 0x24
  17731. 800780e: 2b00 cmp r3, #0
  17732. 8007810: dd09 ble.n 8007826 <_dtoa_r+0x77e>
  17733. 8007812: 42bb cmp r3, r7
  17734. 8007814: bfa8 it ge
  17735. 8007816: 463b movge r3, r7
  17736. 8007818: 9a06 ldr r2, [sp, #24]
  17737. 800781a: 1aff subs r7, r7, r3
  17738. 800781c: 1ad2 subs r2, r2, r3
  17739. 800781e: 9206 str r2, [sp, #24]
  17740. 8007820: 9a09 ldr r2, [sp, #36] ; 0x24
  17741. 8007822: 1ad3 subs r3, r2, r3
  17742. 8007824: 9309 str r3, [sp, #36] ; 0x24
  17743. 8007826: 9b0a ldr r3, [sp, #40] ; 0x28
  17744. 8007828: b1f3 cbz r3, 8007868 <_dtoa_r+0x7c0>
  17745. 800782a: 9b0b ldr r3, [sp, #44] ; 0x2c
  17746. 800782c: 2b00 cmp r3, #0
  17747. 800782e: f000 80a9 beq.w 8007984 <_dtoa_r+0x8dc>
  17748. 8007832: 2c00 cmp r4, #0
  17749. 8007834: dd10 ble.n 8007858 <_dtoa_r+0x7b0>
  17750. 8007836: 4631 mov r1, r6
  17751. 8007838: 4622 mov r2, r4
  17752. 800783a: 4628 mov r0, r5
  17753. 800783c: f000 fbf0 bl 8008020 <__pow5mult>
  17754. 8007840: 4652 mov r2, sl
  17755. 8007842: 4601 mov r1, r0
  17756. 8007844: 4606 mov r6, r0
  17757. 8007846: 4628 mov r0, r5
  17758. 8007848: f000 fb46 bl 8007ed8 <__multiply>
  17759. 800784c: 4680 mov r8, r0
  17760. 800784e: 4651 mov r1, sl
  17761. 8007850: 4628 mov r0, r5
  17762. 8007852: f000 fa71 bl 8007d38 <_Bfree>
  17763. 8007856: 46c2 mov sl, r8
  17764. 8007858: 9b0a ldr r3, [sp, #40] ; 0x28
  17765. 800785a: 1b1a subs r2, r3, r4
  17766. 800785c: d004 beq.n 8007868 <_dtoa_r+0x7c0>
  17767. 800785e: 4651 mov r1, sl
  17768. 8007860: 4628 mov r0, r5
  17769. 8007862: f000 fbdd bl 8008020 <__pow5mult>
  17770. 8007866: 4682 mov sl, r0
  17771. 8007868: 2101 movs r1, #1
  17772. 800786a: 4628 mov r0, r5
  17773. 800786c: f000 fb1e bl 8007eac <__i2b>
  17774. 8007870: 9b0e ldr r3, [sp, #56] ; 0x38
  17775. 8007872: 4604 mov r4, r0
  17776. 8007874: 2b00 cmp r3, #0
  17777. 8007876: f340 8087 ble.w 8007988 <_dtoa_r+0x8e0>
  17778. 800787a: 461a mov r2, r3
  17779. 800787c: 4601 mov r1, r0
  17780. 800787e: 4628 mov r0, r5
  17781. 8007880: f000 fbce bl 8008020 <__pow5mult>
  17782. 8007884: 9b22 ldr r3, [sp, #136] ; 0x88
  17783. 8007886: 4604 mov r4, r0
  17784. 8007888: 2b01 cmp r3, #1
  17785. 800788a: f340 8080 ble.w 800798e <_dtoa_r+0x8e6>
  17786. 800788e: f04f 0800 mov.w r8, #0
  17787. 8007892: 6923 ldr r3, [r4, #16]
  17788. 8007894: eb04 0383 add.w r3, r4, r3, lsl #2
  17789. 8007898: 6918 ldr r0, [r3, #16]
  17790. 800789a: f000 fab9 bl 8007e10 <__hi0bits>
  17791. 800789e: f1c0 0020 rsb r0, r0, #32
  17792. 80078a2: 9b09 ldr r3, [sp, #36] ; 0x24
  17793. 80078a4: 4418 add r0, r3
  17794. 80078a6: f010 001f ands.w r0, r0, #31
  17795. 80078aa: f000 8092 beq.w 80079d2 <_dtoa_r+0x92a>
  17796. 80078ae: f1c0 0320 rsb r3, r0, #32
  17797. 80078b2: 2b04 cmp r3, #4
  17798. 80078b4: f340 808a ble.w 80079cc <_dtoa_r+0x924>
  17799. 80078b8: f1c0 001c rsb r0, r0, #28
  17800. 80078bc: 9b06 ldr r3, [sp, #24]
  17801. 80078be: 4407 add r7, r0
  17802. 80078c0: 4403 add r3, r0
  17803. 80078c2: 9306 str r3, [sp, #24]
  17804. 80078c4: 9b09 ldr r3, [sp, #36] ; 0x24
  17805. 80078c6: 4403 add r3, r0
  17806. 80078c8: 9309 str r3, [sp, #36] ; 0x24
  17807. 80078ca: 9b06 ldr r3, [sp, #24]
  17808. 80078cc: 2b00 cmp r3, #0
  17809. 80078ce: dd05 ble.n 80078dc <_dtoa_r+0x834>
  17810. 80078d0: 4651 mov r1, sl
  17811. 80078d2: 461a mov r2, r3
  17812. 80078d4: 4628 mov r0, r5
  17813. 80078d6: f000 fbfd bl 80080d4 <__lshift>
  17814. 80078da: 4682 mov sl, r0
  17815. 80078dc: 9b09 ldr r3, [sp, #36] ; 0x24
  17816. 80078de: 2b00 cmp r3, #0
  17817. 80078e0: dd05 ble.n 80078ee <_dtoa_r+0x846>
  17818. 80078e2: 4621 mov r1, r4
  17819. 80078e4: 461a mov r2, r3
  17820. 80078e6: 4628 mov r0, r5
  17821. 80078e8: f000 fbf4 bl 80080d4 <__lshift>
  17822. 80078ec: 4604 mov r4, r0
  17823. 80078ee: 9b0f ldr r3, [sp, #60] ; 0x3c
  17824. 80078f0: 2b00 cmp r3, #0
  17825. 80078f2: d070 beq.n 80079d6 <_dtoa_r+0x92e>
  17826. 80078f4: 4621 mov r1, r4
  17827. 80078f6: 4650 mov r0, sl
  17828. 80078f8: f000 fc58 bl 80081ac <__mcmp>
  17829. 80078fc: 2800 cmp r0, #0
  17830. 80078fe: da6a bge.n 80079d6 <_dtoa_r+0x92e>
  17831. 8007900: 2300 movs r3, #0
  17832. 8007902: 4651 mov r1, sl
  17833. 8007904: 220a movs r2, #10
  17834. 8007906: 4628 mov r0, r5
  17835. 8007908: f000 fa38 bl 8007d7c <__multadd>
  17836. 800790c: 9b0b ldr r3, [sp, #44] ; 0x2c
  17837. 800790e: 4682 mov sl, r0
  17838. 8007910: f109 39ff add.w r9, r9, #4294967295 ; 0xffffffff
  17839. 8007914: 2b00 cmp r3, #0
  17840. 8007916: f000 8193 beq.w 8007c40 <_dtoa_r+0xb98>
  17841. 800791a: 4631 mov r1, r6
  17842. 800791c: 2300 movs r3, #0
  17843. 800791e: 220a movs r2, #10
  17844. 8007920: 4628 mov r0, r5
  17845. 8007922: f000 fa2b bl 8007d7c <__multadd>
  17846. 8007926: f1bb 0f00 cmp.w fp, #0
  17847. 800792a: 4606 mov r6, r0
  17848. 800792c: f300 8093 bgt.w 8007a56 <_dtoa_r+0x9ae>
  17849. 8007930: 9b22 ldr r3, [sp, #136] ; 0x88
  17850. 8007932: 2b02 cmp r3, #2
  17851. 8007934: dc57 bgt.n 80079e6 <_dtoa_r+0x93e>
  17852. 8007936: e08e b.n 8007a56 <_dtoa_r+0x9ae>
  17853. 8007938: 9b16 ldr r3, [sp, #88] ; 0x58
  17854. 800793a: f1c3 0336 rsb r3, r3, #54 ; 0x36
  17855. 800793e: e756 b.n 80077ee <_dtoa_r+0x746>
  17856. 8007940: 9b02 ldr r3, [sp, #8]
  17857. 8007942: 1e5c subs r4, r3, #1
  17858. 8007944: 9b0a ldr r3, [sp, #40] ; 0x28
  17859. 8007946: 42a3 cmp r3, r4
  17860. 8007948: bfb7 itett lt
  17861. 800794a: 9b0a ldrlt r3, [sp, #40] ; 0x28
  17862. 800794c: 1b1c subge r4, r3, r4
  17863. 800794e: 1ae2 sublt r2, r4, r3
  17864. 8007950: 9b0e ldrlt r3, [sp, #56] ; 0x38
  17865. 8007952: bfbe ittt lt
  17866. 8007954: 940a strlt r4, [sp, #40] ; 0x28
  17867. 8007956: 189b addlt r3, r3, r2
  17868. 8007958: 930e strlt r3, [sp, #56] ; 0x38
  17869. 800795a: 9b02 ldr r3, [sp, #8]
  17870. 800795c: bfb8 it lt
  17871. 800795e: 2400 movlt r4, #0
  17872. 8007960: 2b00 cmp r3, #0
  17873. 8007962: bfbb ittet lt
  17874. 8007964: 9b06 ldrlt r3, [sp, #24]
  17875. 8007966: 9a02 ldrlt r2, [sp, #8]
  17876. 8007968: 9f06 ldrge r7, [sp, #24]
  17877. 800796a: 1a9f sublt r7, r3, r2
  17878. 800796c: bfac ite ge
  17879. 800796e: 9b02 ldrge r3, [sp, #8]
  17880. 8007970: 2300 movlt r3, #0
  17881. 8007972: e73e b.n 80077f2 <_dtoa_r+0x74a>
  17882. 8007974: 9c0a ldr r4, [sp, #40] ; 0x28
  17883. 8007976: 9f06 ldr r7, [sp, #24]
  17884. 8007978: 9e0b ldr r6, [sp, #44] ; 0x2c
  17885. 800797a: e745 b.n 8007808 <_dtoa_r+0x760>
  17886. 800797c: 3fe00000 .word 0x3fe00000
  17887. 8007980: 40240000 .word 0x40240000
  17888. 8007984: 9a0a ldr r2, [sp, #40] ; 0x28
  17889. 8007986: e76a b.n 800785e <_dtoa_r+0x7b6>
  17890. 8007988: 9b22 ldr r3, [sp, #136] ; 0x88
  17891. 800798a: 2b01 cmp r3, #1
  17892. 800798c: dc19 bgt.n 80079c2 <_dtoa_r+0x91a>
  17893. 800798e: 9b04 ldr r3, [sp, #16]
  17894. 8007990: b9bb cbnz r3, 80079c2 <_dtoa_r+0x91a>
  17895. 8007992: 9b05 ldr r3, [sp, #20]
  17896. 8007994: f3c3 0313 ubfx r3, r3, #0, #20
  17897. 8007998: b99b cbnz r3, 80079c2 <_dtoa_r+0x91a>
  17898. 800799a: 9b05 ldr r3, [sp, #20]
  17899. 800799c: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000
  17900. 80079a0: 0d1b lsrs r3, r3, #20
  17901. 80079a2: 051b lsls r3, r3, #20
  17902. 80079a4: b183 cbz r3, 80079c8 <_dtoa_r+0x920>
  17903. 80079a6: f04f 0801 mov.w r8, #1
  17904. 80079aa: 9b06 ldr r3, [sp, #24]
  17905. 80079ac: 3301 adds r3, #1
  17906. 80079ae: 9306 str r3, [sp, #24]
  17907. 80079b0: 9b09 ldr r3, [sp, #36] ; 0x24
  17908. 80079b2: 3301 adds r3, #1
  17909. 80079b4: 9309 str r3, [sp, #36] ; 0x24
  17910. 80079b6: 9b0e ldr r3, [sp, #56] ; 0x38
  17911. 80079b8: 2b00 cmp r3, #0
  17912. 80079ba: f47f af6a bne.w 8007892 <_dtoa_r+0x7ea>
  17913. 80079be: 2001 movs r0, #1
  17914. 80079c0: e76f b.n 80078a2 <_dtoa_r+0x7fa>
  17915. 80079c2: f04f 0800 mov.w r8, #0
  17916. 80079c6: e7f6 b.n 80079b6 <_dtoa_r+0x90e>
  17917. 80079c8: 4698 mov r8, r3
  17918. 80079ca: e7f4 b.n 80079b6 <_dtoa_r+0x90e>
  17919. 80079cc: f43f af7d beq.w 80078ca <_dtoa_r+0x822>
  17920. 80079d0: 4618 mov r0, r3
  17921. 80079d2: 301c adds r0, #28
  17922. 80079d4: e772 b.n 80078bc <_dtoa_r+0x814>
  17923. 80079d6: 9b02 ldr r3, [sp, #8]
  17924. 80079d8: 2b00 cmp r3, #0
  17925. 80079da: dc36 bgt.n 8007a4a <_dtoa_r+0x9a2>
  17926. 80079dc: 9b22 ldr r3, [sp, #136] ; 0x88
  17927. 80079de: 2b02 cmp r3, #2
  17928. 80079e0: dd33 ble.n 8007a4a <_dtoa_r+0x9a2>
  17929. 80079e2: f8dd b008 ldr.w fp, [sp, #8]
  17930. 80079e6: f1bb 0f00 cmp.w fp, #0
  17931. 80079ea: d10d bne.n 8007a08 <_dtoa_r+0x960>
  17932. 80079ec: 4621 mov r1, r4
  17933. 80079ee: 465b mov r3, fp
  17934. 80079f0: 2205 movs r2, #5
  17935. 80079f2: 4628 mov r0, r5
  17936. 80079f4: f000 f9c2 bl 8007d7c <__multadd>
  17937. 80079f8: 4601 mov r1, r0
  17938. 80079fa: 4604 mov r4, r0
  17939. 80079fc: 4650 mov r0, sl
  17940. 80079fe: f000 fbd5 bl 80081ac <__mcmp>
  17941. 8007a02: 2800 cmp r0, #0
  17942. 8007a04: f73f adb6 bgt.w 8007574 <_dtoa_r+0x4cc>
  17943. 8007a08: 9b23 ldr r3, [sp, #140] ; 0x8c
  17944. 8007a0a: 9f08 ldr r7, [sp, #32]
  17945. 8007a0c: ea6f 0903 mvn.w r9, r3
  17946. 8007a10: f04f 0800 mov.w r8, #0
  17947. 8007a14: 4621 mov r1, r4
  17948. 8007a16: 4628 mov r0, r5
  17949. 8007a18: f000 f98e bl 8007d38 <_Bfree>
  17950. 8007a1c: 2e00 cmp r6, #0
  17951. 8007a1e: f43f aea4 beq.w 800776a <_dtoa_r+0x6c2>
  17952. 8007a22: f1b8 0f00 cmp.w r8, #0
  17953. 8007a26: d005 beq.n 8007a34 <_dtoa_r+0x98c>
  17954. 8007a28: 45b0 cmp r8, r6
  17955. 8007a2a: d003 beq.n 8007a34 <_dtoa_r+0x98c>
  17956. 8007a2c: 4641 mov r1, r8
  17957. 8007a2e: 4628 mov r0, r5
  17958. 8007a30: f000 f982 bl 8007d38 <_Bfree>
  17959. 8007a34: 4631 mov r1, r6
  17960. 8007a36: 4628 mov r0, r5
  17961. 8007a38: f000 f97e bl 8007d38 <_Bfree>
  17962. 8007a3c: e695 b.n 800776a <_dtoa_r+0x6c2>
  17963. 8007a3e: 2400 movs r4, #0
  17964. 8007a40: 4626 mov r6, r4
  17965. 8007a42: e7e1 b.n 8007a08 <_dtoa_r+0x960>
  17966. 8007a44: 46c1 mov r9, r8
  17967. 8007a46: 4626 mov r6, r4
  17968. 8007a48: e594 b.n 8007574 <_dtoa_r+0x4cc>
  17969. 8007a4a: 9b0b ldr r3, [sp, #44] ; 0x2c
  17970. 8007a4c: f8dd b008 ldr.w fp, [sp, #8]
  17971. 8007a50: 2b00 cmp r3, #0
  17972. 8007a52: f000 80fc beq.w 8007c4e <_dtoa_r+0xba6>
  17973. 8007a56: 2f00 cmp r7, #0
  17974. 8007a58: dd05 ble.n 8007a66 <_dtoa_r+0x9be>
  17975. 8007a5a: 4631 mov r1, r6
  17976. 8007a5c: 463a mov r2, r7
  17977. 8007a5e: 4628 mov r0, r5
  17978. 8007a60: f000 fb38 bl 80080d4 <__lshift>
  17979. 8007a64: 4606 mov r6, r0
  17980. 8007a66: f1b8 0f00 cmp.w r8, #0
  17981. 8007a6a: d05c beq.n 8007b26 <_dtoa_r+0xa7e>
  17982. 8007a6c: 4628 mov r0, r5
  17983. 8007a6e: 6871 ldr r1, [r6, #4]
  17984. 8007a70: f000 f922 bl 8007cb8 <_Balloc>
  17985. 8007a74: 4607 mov r7, r0
  17986. 8007a76: b928 cbnz r0, 8007a84 <_dtoa_r+0x9dc>
  17987. 8007a78: 4602 mov r2, r0
  17988. 8007a7a: f240 21ea movw r1, #746 ; 0x2ea
  17989. 8007a7e: 4b7e ldr r3, [pc, #504] ; (8007c78 <_dtoa_r+0xbd0>)
  17990. 8007a80: f7ff bb26 b.w 80070d0 <_dtoa_r+0x28>
  17991. 8007a84: 6932 ldr r2, [r6, #16]
  17992. 8007a86: f106 010c add.w r1, r6, #12
  17993. 8007a8a: 3202 adds r2, #2
  17994. 8007a8c: 0092 lsls r2, r2, #2
  17995. 8007a8e: 300c adds r0, #12
  17996. 8007a90: f7fe fdca bl 8006628 <memcpy>
  17997. 8007a94: 2201 movs r2, #1
  17998. 8007a96: 4639 mov r1, r7
  17999. 8007a98: 4628 mov r0, r5
  18000. 8007a9a: f000 fb1b bl 80080d4 <__lshift>
  18001. 8007a9e: 46b0 mov r8, r6
  18002. 8007aa0: 4606 mov r6, r0
  18003. 8007aa2: 9b08 ldr r3, [sp, #32]
  18004. 8007aa4: 3301 adds r3, #1
  18005. 8007aa6: 9302 str r3, [sp, #8]
  18006. 8007aa8: 9b08 ldr r3, [sp, #32]
  18007. 8007aaa: 445b add r3, fp
  18008. 8007aac: 930a str r3, [sp, #40] ; 0x28
  18009. 8007aae: 9b04 ldr r3, [sp, #16]
  18010. 8007ab0: f003 0301 and.w r3, r3, #1
  18011. 8007ab4: 9309 str r3, [sp, #36] ; 0x24
  18012. 8007ab6: 9b02 ldr r3, [sp, #8]
  18013. 8007ab8: 4621 mov r1, r4
  18014. 8007aba: 4650 mov r0, sl
  18015. 8007abc: f103 3bff add.w fp, r3, #4294967295 ; 0xffffffff
  18016. 8007ac0: f7ff fa62 bl 8006f88 <quorem>
  18017. 8007ac4: 4603 mov r3, r0
  18018. 8007ac6: 4641 mov r1, r8
  18019. 8007ac8: 3330 adds r3, #48 ; 0x30
  18020. 8007aca: 9004 str r0, [sp, #16]
  18021. 8007acc: 4650 mov r0, sl
  18022. 8007ace: 930b str r3, [sp, #44] ; 0x2c
  18023. 8007ad0: f000 fb6c bl 80081ac <__mcmp>
  18024. 8007ad4: 4632 mov r2, r6
  18025. 8007ad6: 9006 str r0, [sp, #24]
  18026. 8007ad8: 4621 mov r1, r4
  18027. 8007ada: 4628 mov r0, r5
  18028. 8007adc: f000 fb82 bl 80081e4 <__mdiff>
  18029. 8007ae0: 68c2 ldr r2, [r0, #12]
  18030. 8007ae2: 4607 mov r7, r0
  18031. 8007ae4: 9b0b ldr r3, [sp, #44] ; 0x2c
  18032. 8007ae6: bb02 cbnz r2, 8007b2a <_dtoa_r+0xa82>
  18033. 8007ae8: 4601 mov r1, r0
  18034. 8007aea: 4650 mov r0, sl
  18035. 8007aec: f000 fb5e bl 80081ac <__mcmp>
  18036. 8007af0: 4602 mov r2, r0
  18037. 8007af2: 9b0b ldr r3, [sp, #44] ; 0x2c
  18038. 8007af4: 4639 mov r1, r7
  18039. 8007af6: 4628 mov r0, r5
  18040. 8007af8: e9cd 320b strd r3, r2, [sp, #44] ; 0x2c
  18041. 8007afc: f000 f91c bl 8007d38 <_Bfree>
  18042. 8007b00: 9b22 ldr r3, [sp, #136] ; 0x88
  18043. 8007b02: 9a0c ldr r2, [sp, #48] ; 0x30
  18044. 8007b04: 9f02 ldr r7, [sp, #8]
  18045. 8007b06: ea43 0102 orr.w r1, r3, r2
  18046. 8007b0a: 9b09 ldr r3, [sp, #36] ; 0x24
  18047. 8007b0c: 430b orrs r3, r1
  18048. 8007b0e: 9b0b ldr r3, [sp, #44] ; 0x2c
  18049. 8007b10: d10d bne.n 8007b2e <_dtoa_r+0xa86>
  18050. 8007b12: 2b39 cmp r3, #57 ; 0x39
  18051. 8007b14: d027 beq.n 8007b66 <_dtoa_r+0xabe>
  18052. 8007b16: 9a06 ldr r2, [sp, #24]
  18053. 8007b18: 2a00 cmp r2, #0
  18054. 8007b1a: dd01 ble.n 8007b20 <_dtoa_r+0xa78>
  18055. 8007b1c: 9b04 ldr r3, [sp, #16]
  18056. 8007b1e: 3331 adds r3, #49 ; 0x31
  18057. 8007b20: f88b 3000 strb.w r3, [fp]
  18058. 8007b24: e776 b.n 8007a14 <_dtoa_r+0x96c>
  18059. 8007b26: 4630 mov r0, r6
  18060. 8007b28: e7b9 b.n 8007a9e <_dtoa_r+0x9f6>
  18061. 8007b2a: 2201 movs r2, #1
  18062. 8007b2c: e7e2 b.n 8007af4 <_dtoa_r+0xa4c>
  18063. 8007b2e: 9906 ldr r1, [sp, #24]
  18064. 8007b30: 2900 cmp r1, #0
  18065. 8007b32: db04 blt.n 8007b3e <_dtoa_r+0xa96>
  18066. 8007b34: 9822 ldr r0, [sp, #136] ; 0x88
  18067. 8007b36: 4301 orrs r1, r0
  18068. 8007b38: 9809 ldr r0, [sp, #36] ; 0x24
  18069. 8007b3a: 4301 orrs r1, r0
  18070. 8007b3c: d120 bne.n 8007b80 <_dtoa_r+0xad8>
  18071. 8007b3e: 2a00 cmp r2, #0
  18072. 8007b40: ddee ble.n 8007b20 <_dtoa_r+0xa78>
  18073. 8007b42: 4651 mov r1, sl
  18074. 8007b44: 2201 movs r2, #1
  18075. 8007b46: 4628 mov r0, r5
  18076. 8007b48: 9302 str r3, [sp, #8]
  18077. 8007b4a: f000 fac3 bl 80080d4 <__lshift>
  18078. 8007b4e: 4621 mov r1, r4
  18079. 8007b50: 4682 mov sl, r0
  18080. 8007b52: f000 fb2b bl 80081ac <__mcmp>
  18081. 8007b56: 2800 cmp r0, #0
  18082. 8007b58: 9b02 ldr r3, [sp, #8]
  18083. 8007b5a: dc02 bgt.n 8007b62 <_dtoa_r+0xaba>
  18084. 8007b5c: d1e0 bne.n 8007b20 <_dtoa_r+0xa78>
  18085. 8007b5e: 07da lsls r2, r3, #31
  18086. 8007b60: d5de bpl.n 8007b20 <_dtoa_r+0xa78>
  18087. 8007b62: 2b39 cmp r3, #57 ; 0x39
  18088. 8007b64: d1da bne.n 8007b1c <_dtoa_r+0xa74>
  18089. 8007b66: 2339 movs r3, #57 ; 0x39
  18090. 8007b68: f88b 3000 strb.w r3, [fp]
  18091. 8007b6c: 463b mov r3, r7
  18092. 8007b6e: 461f mov r7, r3
  18093. 8007b70: f817 2c01 ldrb.w r2, [r7, #-1]
  18094. 8007b74: 3b01 subs r3, #1
  18095. 8007b76: 2a39 cmp r2, #57 ; 0x39
  18096. 8007b78: d050 beq.n 8007c1c <_dtoa_r+0xb74>
  18097. 8007b7a: 3201 adds r2, #1
  18098. 8007b7c: 701a strb r2, [r3, #0]
  18099. 8007b7e: e749 b.n 8007a14 <_dtoa_r+0x96c>
  18100. 8007b80: 2a00 cmp r2, #0
  18101. 8007b82: dd03 ble.n 8007b8c <_dtoa_r+0xae4>
  18102. 8007b84: 2b39 cmp r3, #57 ; 0x39
  18103. 8007b86: d0ee beq.n 8007b66 <_dtoa_r+0xabe>
  18104. 8007b88: 3301 adds r3, #1
  18105. 8007b8a: e7c9 b.n 8007b20 <_dtoa_r+0xa78>
  18106. 8007b8c: 9a02 ldr r2, [sp, #8]
  18107. 8007b8e: 990a ldr r1, [sp, #40] ; 0x28
  18108. 8007b90: f802 3c01 strb.w r3, [r2, #-1]
  18109. 8007b94: 428a cmp r2, r1
  18110. 8007b96: d02a beq.n 8007bee <_dtoa_r+0xb46>
  18111. 8007b98: 4651 mov r1, sl
  18112. 8007b9a: 2300 movs r3, #0
  18113. 8007b9c: 220a movs r2, #10
  18114. 8007b9e: 4628 mov r0, r5
  18115. 8007ba0: f000 f8ec bl 8007d7c <__multadd>
  18116. 8007ba4: 45b0 cmp r8, r6
  18117. 8007ba6: 4682 mov sl, r0
  18118. 8007ba8: f04f 0300 mov.w r3, #0
  18119. 8007bac: f04f 020a mov.w r2, #10
  18120. 8007bb0: 4641 mov r1, r8
  18121. 8007bb2: 4628 mov r0, r5
  18122. 8007bb4: d107 bne.n 8007bc6 <_dtoa_r+0xb1e>
  18123. 8007bb6: f000 f8e1 bl 8007d7c <__multadd>
  18124. 8007bba: 4680 mov r8, r0
  18125. 8007bbc: 4606 mov r6, r0
  18126. 8007bbe: 9b02 ldr r3, [sp, #8]
  18127. 8007bc0: 3301 adds r3, #1
  18128. 8007bc2: 9302 str r3, [sp, #8]
  18129. 8007bc4: e777 b.n 8007ab6 <_dtoa_r+0xa0e>
  18130. 8007bc6: f000 f8d9 bl 8007d7c <__multadd>
  18131. 8007bca: 4631 mov r1, r6
  18132. 8007bcc: 4680 mov r8, r0
  18133. 8007bce: 2300 movs r3, #0
  18134. 8007bd0: 220a movs r2, #10
  18135. 8007bd2: 4628 mov r0, r5
  18136. 8007bd4: f000 f8d2 bl 8007d7c <__multadd>
  18137. 8007bd8: 4606 mov r6, r0
  18138. 8007bda: e7f0 b.n 8007bbe <_dtoa_r+0xb16>
  18139. 8007bdc: f1bb 0f00 cmp.w fp, #0
  18140. 8007be0: bfcc ite gt
  18141. 8007be2: 465f movgt r7, fp
  18142. 8007be4: 2701 movle r7, #1
  18143. 8007be6: f04f 0800 mov.w r8, #0
  18144. 8007bea: 9a08 ldr r2, [sp, #32]
  18145. 8007bec: 4417 add r7, r2
  18146. 8007bee: 4651 mov r1, sl
  18147. 8007bf0: 2201 movs r2, #1
  18148. 8007bf2: 4628 mov r0, r5
  18149. 8007bf4: 9302 str r3, [sp, #8]
  18150. 8007bf6: f000 fa6d bl 80080d4 <__lshift>
  18151. 8007bfa: 4621 mov r1, r4
  18152. 8007bfc: 4682 mov sl, r0
  18153. 8007bfe: f000 fad5 bl 80081ac <__mcmp>
  18154. 8007c02: 2800 cmp r0, #0
  18155. 8007c04: dcb2 bgt.n 8007b6c <_dtoa_r+0xac4>
  18156. 8007c06: d102 bne.n 8007c0e <_dtoa_r+0xb66>
  18157. 8007c08: 9b02 ldr r3, [sp, #8]
  18158. 8007c0a: 07db lsls r3, r3, #31
  18159. 8007c0c: d4ae bmi.n 8007b6c <_dtoa_r+0xac4>
  18160. 8007c0e: 463b mov r3, r7
  18161. 8007c10: 461f mov r7, r3
  18162. 8007c12: f813 2d01 ldrb.w r2, [r3, #-1]!
  18163. 8007c16: 2a30 cmp r2, #48 ; 0x30
  18164. 8007c18: d0fa beq.n 8007c10 <_dtoa_r+0xb68>
  18165. 8007c1a: e6fb b.n 8007a14 <_dtoa_r+0x96c>
  18166. 8007c1c: 9a08 ldr r2, [sp, #32]
  18167. 8007c1e: 429a cmp r2, r3
  18168. 8007c20: d1a5 bne.n 8007b6e <_dtoa_r+0xac6>
  18169. 8007c22: 2331 movs r3, #49 ; 0x31
  18170. 8007c24: f109 0901 add.w r9, r9, #1
  18171. 8007c28: 7013 strb r3, [r2, #0]
  18172. 8007c2a: e6f3 b.n 8007a14 <_dtoa_r+0x96c>
  18173. 8007c2c: 4b13 ldr r3, [pc, #76] ; (8007c7c <_dtoa_r+0xbd4>)
  18174. 8007c2e: f7ff baa7 b.w 8007180 <_dtoa_r+0xd8>
  18175. 8007c32: 9b26 ldr r3, [sp, #152] ; 0x98
  18176. 8007c34: 2b00 cmp r3, #0
  18177. 8007c36: f47f aa80 bne.w 800713a <_dtoa_r+0x92>
  18178. 8007c3a: 4b11 ldr r3, [pc, #68] ; (8007c80 <_dtoa_r+0xbd8>)
  18179. 8007c3c: f7ff baa0 b.w 8007180 <_dtoa_r+0xd8>
  18180. 8007c40: f1bb 0f00 cmp.w fp, #0
  18181. 8007c44: dc03 bgt.n 8007c4e <_dtoa_r+0xba6>
  18182. 8007c46: 9b22 ldr r3, [sp, #136] ; 0x88
  18183. 8007c48: 2b02 cmp r3, #2
  18184. 8007c4a: f73f aecc bgt.w 80079e6 <_dtoa_r+0x93e>
  18185. 8007c4e: 9f08 ldr r7, [sp, #32]
  18186. 8007c50: 4621 mov r1, r4
  18187. 8007c52: 4650 mov r0, sl
  18188. 8007c54: f7ff f998 bl 8006f88 <quorem>
  18189. 8007c58: 9a08 ldr r2, [sp, #32]
  18190. 8007c5a: f100 0330 add.w r3, r0, #48 ; 0x30
  18191. 8007c5e: f807 3b01 strb.w r3, [r7], #1
  18192. 8007c62: 1aba subs r2, r7, r2
  18193. 8007c64: 4593 cmp fp, r2
  18194. 8007c66: ddb9 ble.n 8007bdc <_dtoa_r+0xb34>
  18195. 8007c68: 4651 mov r1, sl
  18196. 8007c6a: 2300 movs r3, #0
  18197. 8007c6c: 220a movs r2, #10
  18198. 8007c6e: 4628 mov r0, r5
  18199. 8007c70: f000 f884 bl 8007d7c <__multadd>
  18200. 8007c74: 4682 mov sl, r0
  18201. 8007c76: e7eb b.n 8007c50 <_dtoa_r+0xba8>
  18202. 8007c78: 0800a1cf .word 0x0800a1cf
  18203. 8007c7c: 0800a128 .word 0x0800a128
  18204. 8007c80: 0800a14c .word 0x0800a14c
  18205. 08007c84 <_localeconv_r>:
  18206. 8007c84: 4800 ldr r0, [pc, #0] ; (8007c88 <_localeconv_r+0x4>)
  18207. 8007c86: 4770 bx lr
  18208. 8007c88: 20000168 .word 0x20000168
  18209. 08007c8c <malloc>:
  18210. 8007c8c: 4b02 ldr r3, [pc, #8] ; (8007c98 <malloc+0xc>)
  18211. 8007c8e: 4601 mov r1, r0
  18212. 8007c90: 6818 ldr r0, [r3, #0]
  18213. 8007c92: f000 bbed b.w 8008470 <_malloc_r>
  18214. 8007c96: bf00 nop
  18215. 8007c98: 20000014 .word 0x20000014
  18216. 08007c9c <memchr>:
  18217. 8007c9c: 4603 mov r3, r0
  18218. 8007c9e: b510 push {r4, lr}
  18219. 8007ca0: b2c9 uxtb r1, r1
  18220. 8007ca2: 4402 add r2, r0
  18221. 8007ca4: 4293 cmp r3, r2
  18222. 8007ca6: 4618 mov r0, r3
  18223. 8007ca8: d101 bne.n 8007cae <memchr+0x12>
  18224. 8007caa: 2000 movs r0, #0
  18225. 8007cac: e003 b.n 8007cb6 <memchr+0x1a>
  18226. 8007cae: 7804 ldrb r4, [r0, #0]
  18227. 8007cb0: 3301 adds r3, #1
  18228. 8007cb2: 428c cmp r4, r1
  18229. 8007cb4: d1f6 bne.n 8007ca4 <memchr+0x8>
  18230. 8007cb6: bd10 pop {r4, pc}
  18231. 08007cb8 <_Balloc>:
  18232. 8007cb8: b570 push {r4, r5, r6, lr}
  18233. 8007cba: 6a46 ldr r6, [r0, #36] ; 0x24
  18234. 8007cbc: 4604 mov r4, r0
  18235. 8007cbe: 460d mov r5, r1
  18236. 8007cc0: b976 cbnz r6, 8007ce0 <_Balloc+0x28>
  18237. 8007cc2: 2010 movs r0, #16
  18238. 8007cc4: f7ff ffe2 bl 8007c8c <malloc>
  18239. 8007cc8: 4602 mov r2, r0
  18240. 8007cca: 6260 str r0, [r4, #36] ; 0x24
  18241. 8007ccc: b920 cbnz r0, 8007cd8 <_Balloc+0x20>
  18242. 8007cce: 2166 movs r1, #102 ; 0x66
  18243. 8007cd0: 4b17 ldr r3, [pc, #92] ; (8007d30 <_Balloc+0x78>)
  18244. 8007cd2: 4818 ldr r0, [pc, #96] ; (8007d34 <_Balloc+0x7c>)
  18245. 8007cd4: f000 fd92 bl 80087fc <__assert_func>
  18246. 8007cd8: e9c0 6601 strd r6, r6, [r0, #4]
  18247. 8007cdc: 6006 str r6, [r0, #0]
  18248. 8007cde: 60c6 str r6, [r0, #12]
  18249. 8007ce0: 6a66 ldr r6, [r4, #36] ; 0x24
  18250. 8007ce2: 68f3 ldr r3, [r6, #12]
  18251. 8007ce4: b183 cbz r3, 8007d08 <_Balloc+0x50>
  18252. 8007ce6: 6a63 ldr r3, [r4, #36] ; 0x24
  18253. 8007ce8: 68db ldr r3, [r3, #12]
  18254. 8007cea: f853 0025 ldr.w r0, [r3, r5, lsl #2]
  18255. 8007cee: b9b8 cbnz r0, 8007d20 <_Balloc+0x68>
  18256. 8007cf0: 2101 movs r1, #1
  18257. 8007cf2: fa01 f605 lsl.w r6, r1, r5
  18258. 8007cf6: 1d72 adds r2, r6, #5
  18259. 8007cf8: 4620 mov r0, r4
  18260. 8007cfa: 0092 lsls r2, r2, #2
  18261. 8007cfc: f000 fb5e bl 80083bc <_calloc_r>
  18262. 8007d00: b160 cbz r0, 8007d1c <_Balloc+0x64>
  18263. 8007d02: e9c0 5601 strd r5, r6, [r0, #4]
  18264. 8007d06: e00e b.n 8007d26 <_Balloc+0x6e>
  18265. 8007d08: 2221 movs r2, #33 ; 0x21
  18266. 8007d0a: 2104 movs r1, #4
  18267. 8007d0c: 4620 mov r0, r4
  18268. 8007d0e: f000 fb55 bl 80083bc <_calloc_r>
  18269. 8007d12: 6a63 ldr r3, [r4, #36] ; 0x24
  18270. 8007d14: 60f0 str r0, [r6, #12]
  18271. 8007d16: 68db ldr r3, [r3, #12]
  18272. 8007d18: 2b00 cmp r3, #0
  18273. 8007d1a: d1e4 bne.n 8007ce6 <_Balloc+0x2e>
  18274. 8007d1c: 2000 movs r0, #0
  18275. 8007d1e: bd70 pop {r4, r5, r6, pc}
  18276. 8007d20: 6802 ldr r2, [r0, #0]
  18277. 8007d22: f843 2025 str.w r2, [r3, r5, lsl #2]
  18278. 8007d26: 2300 movs r3, #0
  18279. 8007d28: e9c0 3303 strd r3, r3, [r0, #12]
  18280. 8007d2c: e7f7 b.n 8007d1e <_Balloc+0x66>
  18281. 8007d2e: bf00 nop
  18282. 8007d30: 0800a159 .word 0x0800a159
  18283. 8007d34: 0800a1e0 .word 0x0800a1e0
  18284. 08007d38 <_Bfree>:
  18285. 8007d38: b570 push {r4, r5, r6, lr}
  18286. 8007d3a: 6a46 ldr r6, [r0, #36] ; 0x24
  18287. 8007d3c: 4605 mov r5, r0
  18288. 8007d3e: 460c mov r4, r1
  18289. 8007d40: b976 cbnz r6, 8007d60 <_Bfree+0x28>
  18290. 8007d42: 2010 movs r0, #16
  18291. 8007d44: f7ff ffa2 bl 8007c8c <malloc>
  18292. 8007d48: 4602 mov r2, r0
  18293. 8007d4a: 6268 str r0, [r5, #36] ; 0x24
  18294. 8007d4c: b920 cbnz r0, 8007d58 <_Bfree+0x20>
  18295. 8007d4e: 218a movs r1, #138 ; 0x8a
  18296. 8007d50: 4b08 ldr r3, [pc, #32] ; (8007d74 <_Bfree+0x3c>)
  18297. 8007d52: 4809 ldr r0, [pc, #36] ; (8007d78 <_Bfree+0x40>)
  18298. 8007d54: f000 fd52 bl 80087fc <__assert_func>
  18299. 8007d58: e9c0 6601 strd r6, r6, [r0, #4]
  18300. 8007d5c: 6006 str r6, [r0, #0]
  18301. 8007d5e: 60c6 str r6, [r0, #12]
  18302. 8007d60: b13c cbz r4, 8007d72 <_Bfree+0x3a>
  18303. 8007d62: 6a6b ldr r3, [r5, #36] ; 0x24
  18304. 8007d64: 6862 ldr r2, [r4, #4]
  18305. 8007d66: 68db ldr r3, [r3, #12]
  18306. 8007d68: f853 1022 ldr.w r1, [r3, r2, lsl #2]
  18307. 8007d6c: 6021 str r1, [r4, #0]
  18308. 8007d6e: f843 4022 str.w r4, [r3, r2, lsl #2]
  18309. 8007d72: bd70 pop {r4, r5, r6, pc}
  18310. 8007d74: 0800a159 .word 0x0800a159
  18311. 8007d78: 0800a1e0 .word 0x0800a1e0
  18312. 08007d7c <__multadd>:
  18313. 8007d7c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  18314. 8007d80: 4698 mov r8, r3
  18315. 8007d82: 460c mov r4, r1
  18316. 8007d84: 2300 movs r3, #0
  18317. 8007d86: 690e ldr r6, [r1, #16]
  18318. 8007d88: 4607 mov r7, r0
  18319. 8007d8a: f101 0014 add.w r0, r1, #20
  18320. 8007d8e: 6805 ldr r5, [r0, #0]
  18321. 8007d90: 3301 adds r3, #1
  18322. 8007d92: b2a9 uxth r1, r5
  18323. 8007d94: fb02 8101 mla r1, r2, r1, r8
  18324. 8007d98: 0c2d lsrs r5, r5, #16
  18325. 8007d9a: ea4f 4c11 mov.w ip, r1, lsr #16
  18326. 8007d9e: fb02 c505 mla r5, r2, r5, ip
  18327. 8007da2: b289 uxth r1, r1
  18328. 8007da4: eb01 4105 add.w r1, r1, r5, lsl #16
  18329. 8007da8: 429e cmp r6, r3
  18330. 8007daa: ea4f 4815 mov.w r8, r5, lsr #16
  18331. 8007dae: f840 1b04 str.w r1, [r0], #4
  18332. 8007db2: dcec bgt.n 8007d8e <__multadd+0x12>
  18333. 8007db4: f1b8 0f00 cmp.w r8, #0
  18334. 8007db8: d022 beq.n 8007e00 <__multadd+0x84>
  18335. 8007dba: 68a3 ldr r3, [r4, #8]
  18336. 8007dbc: 42b3 cmp r3, r6
  18337. 8007dbe: dc19 bgt.n 8007df4 <__multadd+0x78>
  18338. 8007dc0: 6861 ldr r1, [r4, #4]
  18339. 8007dc2: 4638 mov r0, r7
  18340. 8007dc4: 3101 adds r1, #1
  18341. 8007dc6: f7ff ff77 bl 8007cb8 <_Balloc>
  18342. 8007dca: 4605 mov r5, r0
  18343. 8007dcc: b928 cbnz r0, 8007dda <__multadd+0x5e>
  18344. 8007dce: 4602 mov r2, r0
  18345. 8007dd0: 21b5 movs r1, #181 ; 0xb5
  18346. 8007dd2: 4b0d ldr r3, [pc, #52] ; (8007e08 <__multadd+0x8c>)
  18347. 8007dd4: 480d ldr r0, [pc, #52] ; (8007e0c <__multadd+0x90>)
  18348. 8007dd6: f000 fd11 bl 80087fc <__assert_func>
  18349. 8007dda: 6922 ldr r2, [r4, #16]
  18350. 8007ddc: f104 010c add.w r1, r4, #12
  18351. 8007de0: 3202 adds r2, #2
  18352. 8007de2: 0092 lsls r2, r2, #2
  18353. 8007de4: 300c adds r0, #12
  18354. 8007de6: f7fe fc1f bl 8006628 <memcpy>
  18355. 8007dea: 4621 mov r1, r4
  18356. 8007dec: 4638 mov r0, r7
  18357. 8007dee: f7ff ffa3 bl 8007d38 <_Bfree>
  18358. 8007df2: 462c mov r4, r5
  18359. 8007df4: eb04 0386 add.w r3, r4, r6, lsl #2
  18360. 8007df8: 3601 adds r6, #1
  18361. 8007dfa: f8c3 8014 str.w r8, [r3, #20]
  18362. 8007dfe: 6126 str r6, [r4, #16]
  18363. 8007e00: 4620 mov r0, r4
  18364. 8007e02: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  18365. 8007e06: bf00 nop
  18366. 8007e08: 0800a1cf .word 0x0800a1cf
  18367. 8007e0c: 0800a1e0 .word 0x0800a1e0
  18368. 08007e10 <__hi0bits>:
  18369. 8007e10: 0c02 lsrs r2, r0, #16
  18370. 8007e12: 0412 lsls r2, r2, #16
  18371. 8007e14: 4603 mov r3, r0
  18372. 8007e16: b9ca cbnz r2, 8007e4c <__hi0bits+0x3c>
  18373. 8007e18: 0403 lsls r3, r0, #16
  18374. 8007e1a: 2010 movs r0, #16
  18375. 8007e1c: f013 4f7f tst.w r3, #4278190080 ; 0xff000000
  18376. 8007e20: bf04 itt eq
  18377. 8007e22: 021b lsleq r3, r3, #8
  18378. 8007e24: 3008 addeq r0, #8
  18379. 8007e26: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000
  18380. 8007e2a: bf04 itt eq
  18381. 8007e2c: 011b lsleq r3, r3, #4
  18382. 8007e2e: 3004 addeq r0, #4
  18383. 8007e30: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000
  18384. 8007e34: bf04 itt eq
  18385. 8007e36: 009b lsleq r3, r3, #2
  18386. 8007e38: 3002 addeq r0, #2
  18387. 8007e3a: 2b00 cmp r3, #0
  18388. 8007e3c: db05 blt.n 8007e4a <__hi0bits+0x3a>
  18389. 8007e3e: f013 4f80 tst.w r3, #1073741824 ; 0x40000000
  18390. 8007e42: f100 0001 add.w r0, r0, #1
  18391. 8007e46: bf08 it eq
  18392. 8007e48: 2020 moveq r0, #32
  18393. 8007e4a: 4770 bx lr
  18394. 8007e4c: 2000 movs r0, #0
  18395. 8007e4e: e7e5 b.n 8007e1c <__hi0bits+0xc>
  18396. 08007e50 <__lo0bits>:
  18397. 8007e50: 6803 ldr r3, [r0, #0]
  18398. 8007e52: 4602 mov r2, r0
  18399. 8007e54: f013 0007 ands.w r0, r3, #7
  18400. 8007e58: d00b beq.n 8007e72 <__lo0bits+0x22>
  18401. 8007e5a: 07d9 lsls r1, r3, #31
  18402. 8007e5c: d422 bmi.n 8007ea4 <__lo0bits+0x54>
  18403. 8007e5e: 0798 lsls r0, r3, #30
  18404. 8007e60: bf49 itett mi
  18405. 8007e62: 085b lsrmi r3, r3, #1
  18406. 8007e64: 089b lsrpl r3, r3, #2
  18407. 8007e66: 2001 movmi r0, #1
  18408. 8007e68: 6013 strmi r3, [r2, #0]
  18409. 8007e6a: bf5c itt pl
  18410. 8007e6c: 2002 movpl r0, #2
  18411. 8007e6e: 6013 strpl r3, [r2, #0]
  18412. 8007e70: 4770 bx lr
  18413. 8007e72: b299 uxth r1, r3
  18414. 8007e74: b909 cbnz r1, 8007e7a <__lo0bits+0x2a>
  18415. 8007e76: 2010 movs r0, #16
  18416. 8007e78: 0c1b lsrs r3, r3, #16
  18417. 8007e7a: f013 0fff tst.w r3, #255 ; 0xff
  18418. 8007e7e: bf04 itt eq
  18419. 8007e80: 0a1b lsreq r3, r3, #8
  18420. 8007e82: 3008 addeq r0, #8
  18421. 8007e84: 0719 lsls r1, r3, #28
  18422. 8007e86: bf04 itt eq
  18423. 8007e88: 091b lsreq r3, r3, #4
  18424. 8007e8a: 3004 addeq r0, #4
  18425. 8007e8c: 0799 lsls r1, r3, #30
  18426. 8007e8e: bf04 itt eq
  18427. 8007e90: 089b lsreq r3, r3, #2
  18428. 8007e92: 3002 addeq r0, #2
  18429. 8007e94: 07d9 lsls r1, r3, #31
  18430. 8007e96: d403 bmi.n 8007ea0 <__lo0bits+0x50>
  18431. 8007e98: 085b lsrs r3, r3, #1
  18432. 8007e9a: f100 0001 add.w r0, r0, #1
  18433. 8007e9e: d003 beq.n 8007ea8 <__lo0bits+0x58>
  18434. 8007ea0: 6013 str r3, [r2, #0]
  18435. 8007ea2: 4770 bx lr
  18436. 8007ea4: 2000 movs r0, #0
  18437. 8007ea6: 4770 bx lr
  18438. 8007ea8: 2020 movs r0, #32
  18439. 8007eaa: 4770 bx lr
  18440. 08007eac <__i2b>:
  18441. 8007eac: b510 push {r4, lr}
  18442. 8007eae: 460c mov r4, r1
  18443. 8007eb0: 2101 movs r1, #1
  18444. 8007eb2: f7ff ff01 bl 8007cb8 <_Balloc>
  18445. 8007eb6: 4602 mov r2, r0
  18446. 8007eb8: b928 cbnz r0, 8007ec6 <__i2b+0x1a>
  18447. 8007eba: f44f 71a0 mov.w r1, #320 ; 0x140
  18448. 8007ebe: 4b04 ldr r3, [pc, #16] ; (8007ed0 <__i2b+0x24>)
  18449. 8007ec0: 4804 ldr r0, [pc, #16] ; (8007ed4 <__i2b+0x28>)
  18450. 8007ec2: f000 fc9b bl 80087fc <__assert_func>
  18451. 8007ec6: 2301 movs r3, #1
  18452. 8007ec8: 6144 str r4, [r0, #20]
  18453. 8007eca: 6103 str r3, [r0, #16]
  18454. 8007ecc: bd10 pop {r4, pc}
  18455. 8007ece: bf00 nop
  18456. 8007ed0: 0800a1cf .word 0x0800a1cf
  18457. 8007ed4: 0800a1e0 .word 0x0800a1e0
  18458. 08007ed8 <__multiply>:
  18459. 8007ed8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  18460. 8007edc: 4614 mov r4, r2
  18461. 8007ede: 690a ldr r2, [r1, #16]
  18462. 8007ee0: 6923 ldr r3, [r4, #16]
  18463. 8007ee2: 460d mov r5, r1
  18464. 8007ee4: 429a cmp r2, r3
  18465. 8007ee6: bfbe ittt lt
  18466. 8007ee8: 460b movlt r3, r1
  18467. 8007eea: 4625 movlt r5, r4
  18468. 8007eec: 461c movlt r4, r3
  18469. 8007eee: f8d5 a010 ldr.w sl, [r5, #16]
  18470. 8007ef2: f8d4 9010 ldr.w r9, [r4, #16]
  18471. 8007ef6: 68ab ldr r3, [r5, #8]
  18472. 8007ef8: 6869 ldr r1, [r5, #4]
  18473. 8007efa: eb0a 0709 add.w r7, sl, r9
  18474. 8007efe: 42bb cmp r3, r7
  18475. 8007f00: b085 sub sp, #20
  18476. 8007f02: bfb8 it lt
  18477. 8007f04: 3101 addlt r1, #1
  18478. 8007f06: f7ff fed7 bl 8007cb8 <_Balloc>
  18479. 8007f0a: b930 cbnz r0, 8007f1a <__multiply+0x42>
  18480. 8007f0c: 4602 mov r2, r0
  18481. 8007f0e: f240 115d movw r1, #349 ; 0x15d
  18482. 8007f12: 4b41 ldr r3, [pc, #260] ; (8008018 <__multiply+0x140>)
  18483. 8007f14: 4841 ldr r0, [pc, #260] ; (800801c <__multiply+0x144>)
  18484. 8007f16: f000 fc71 bl 80087fc <__assert_func>
  18485. 8007f1a: f100 0614 add.w r6, r0, #20
  18486. 8007f1e: 4633 mov r3, r6
  18487. 8007f20: 2200 movs r2, #0
  18488. 8007f22: eb06 0887 add.w r8, r6, r7, lsl #2
  18489. 8007f26: 4543 cmp r3, r8
  18490. 8007f28: d31e bcc.n 8007f68 <__multiply+0x90>
  18491. 8007f2a: f105 0c14 add.w ip, r5, #20
  18492. 8007f2e: f104 0314 add.w r3, r4, #20
  18493. 8007f32: eb0c 0c8a add.w ip, ip, sl, lsl #2
  18494. 8007f36: eb03 0289 add.w r2, r3, r9, lsl #2
  18495. 8007f3a: 9202 str r2, [sp, #8]
  18496. 8007f3c: ebac 0205 sub.w r2, ip, r5
  18497. 8007f40: 3a15 subs r2, #21
  18498. 8007f42: f022 0203 bic.w r2, r2, #3
  18499. 8007f46: 3204 adds r2, #4
  18500. 8007f48: f105 0115 add.w r1, r5, #21
  18501. 8007f4c: 458c cmp ip, r1
  18502. 8007f4e: bf38 it cc
  18503. 8007f50: 2204 movcc r2, #4
  18504. 8007f52: 9201 str r2, [sp, #4]
  18505. 8007f54: 9a02 ldr r2, [sp, #8]
  18506. 8007f56: 9303 str r3, [sp, #12]
  18507. 8007f58: 429a cmp r2, r3
  18508. 8007f5a: d808 bhi.n 8007f6e <__multiply+0x96>
  18509. 8007f5c: 2f00 cmp r7, #0
  18510. 8007f5e: dc55 bgt.n 800800c <__multiply+0x134>
  18511. 8007f60: 6107 str r7, [r0, #16]
  18512. 8007f62: b005 add sp, #20
  18513. 8007f64: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  18514. 8007f68: f843 2b04 str.w r2, [r3], #4
  18515. 8007f6c: e7db b.n 8007f26 <__multiply+0x4e>
  18516. 8007f6e: f8b3 a000 ldrh.w sl, [r3]
  18517. 8007f72: f1ba 0f00 cmp.w sl, #0
  18518. 8007f76: d020 beq.n 8007fba <__multiply+0xe2>
  18519. 8007f78: 46b1 mov r9, r6
  18520. 8007f7a: 2200 movs r2, #0
  18521. 8007f7c: f105 0e14 add.w lr, r5, #20
  18522. 8007f80: f85e 4b04 ldr.w r4, [lr], #4
  18523. 8007f84: f8d9 b000 ldr.w fp, [r9]
  18524. 8007f88: b2a1 uxth r1, r4
  18525. 8007f8a: fa1f fb8b uxth.w fp, fp
  18526. 8007f8e: fb0a b101 mla r1, sl, r1, fp
  18527. 8007f92: 4411 add r1, r2
  18528. 8007f94: f8d9 2000 ldr.w r2, [r9]
  18529. 8007f98: 0c24 lsrs r4, r4, #16
  18530. 8007f9a: 0c12 lsrs r2, r2, #16
  18531. 8007f9c: fb0a 2404 mla r4, sl, r4, r2
  18532. 8007fa0: eb04 4411 add.w r4, r4, r1, lsr #16
  18533. 8007fa4: b289 uxth r1, r1
  18534. 8007fa6: ea41 4104 orr.w r1, r1, r4, lsl #16
  18535. 8007faa: 45f4 cmp ip, lr
  18536. 8007fac: ea4f 4214 mov.w r2, r4, lsr #16
  18537. 8007fb0: f849 1b04 str.w r1, [r9], #4
  18538. 8007fb4: d8e4 bhi.n 8007f80 <__multiply+0xa8>
  18539. 8007fb6: 9901 ldr r1, [sp, #4]
  18540. 8007fb8: 5072 str r2, [r6, r1]
  18541. 8007fba: 9a03 ldr r2, [sp, #12]
  18542. 8007fbc: 3304 adds r3, #4
  18543. 8007fbe: f8b2 9002 ldrh.w r9, [r2, #2]
  18544. 8007fc2: f1b9 0f00 cmp.w r9, #0
  18545. 8007fc6: d01f beq.n 8008008 <__multiply+0x130>
  18546. 8007fc8: 46b6 mov lr, r6
  18547. 8007fca: f04f 0a00 mov.w sl, #0
  18548. 8007fce: 6834 ldr r4, [r6, #0]
  18549. 8007fd0: f105 0114 add.w r1, r5, #20
  18550. 8007fd4: 880a ldrh r2, [r1, #0]
  18551. 8007fd6: f8be b002 ldrh.w fp, [lr, #2]
  18552. 8007fda: b2a4 uxth r4, r4
  18553. 8007fdc: fb09 b202 mla r2, r9, r2, fp
  18554. 8007fe0: 4492 add sl, r2
  18555. 8007fe2: ea44 440a orr.w r4, r4, sl, lsl #16
  18556. 8007fe6: f84e 4b04 str.w r4, [lr], #4
  18557. 8007fea: f851 4b04 ldr.w r4, [r1], #4
  18558. 8007fee: f8be 2000 ldrh.w r2, [lr]
  18559. 8007ff2: 0c24 lsrs r4, r4, #16
  18560. 8007ff4: fb09 2404 mla r4, r9, r4, r2
  18561. 8007ff8: 458c cmp ip, r1
  18562. 8007ffa: eb04 441a add.w r4, r4, sl, lsr #16
  18563. 8007ffe: ea4f 4a14 mov.w sl, r4, lsr #16
  18564. 8008002: d8e7 bhi.n 8007fd4 <__multiply+0xfc>
  18565. 8008004: 9a01 ldr r2, [sp, #4]
  18566. 8008006: 50b4 str r4, [r6, r2]
  18567. 8008008: 3604 adds r6, #4
  18568. 800800a: e7a3 b.n 8007f54 <__multiply+0x7c>
  18569. 800800c: f858 3d04 ldr.w r3, [r8, #-4]!
  18570. 8008010: 2b00 cmp r3, #0
  18571. 8008012: d1a5 bne.n 8007f60 <__multiply+0x88>
  18572. 8008014: 3f01 subs r7, #1
  18573. 8008016: e7a1 b.n 8007f5c <__multiply+0x84>
  18574. 8008018: 0800a1cf .word 0x0800a1cf
  18575. 800801c: 0800a1e0 .word 0x0800a1e0
  18576. 08008020 <__pow5mult>:
  18577. 8008020: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  18578. 8008024: 4615 mov r5, r2
  18579. 8008026: f012 0203 ands.w r2, r2, #3
  18580. 800802a: 4606 mov r6, r0
  18581. 800802c: 460f mov r7, r1
  18582. 800802e: d007 beq.n 8008040 <__pow5mult+0x20>
  18583. 8008030: 4c25 ldr r4, [pc, #148] ; (80080c8 <__pow5mult+0xa8>)
  18584. 8008032: 3a01 subs r2, #1
  18585. 8008034: 2300 movs r3, #0
  18586. 8008036: f854 2022 ldr.w r2, [r4, r2, lsl #2]
  18587. 800803a: f7ff fe9f bl 8007d7c <__multadd>
  18588. 800803e: 4607 mov r7, r0
  18589. 8008040: 10ad asrs r5, r5, #2
  18590. 8008042: d03d beq.n 80080c0 <__pow5mult+0xa0>
  18591. 8008044: 6a74 ldr r4, [r6, #36] ; 0x24
  18592. 8008046: b97c cbnz r4, 8008068 <__pow5mult+0x48>
  18593. 8008048: 2010 movs r0, #16
  18594. 800804a: f7ff fe1f bl 8007c8c <malloc>
  18595. 800804e: 4602 mov r2, r0
  18596. 8008050: 6270 str r0, [r6, #36] ; 0x24
  18597. 8008052: b928 cbnz r0, 8008060 <__pow5mult+0x40>
  18598. 8008054: f44f 71d7 mov.w r1, #430 ; 0x1ae
  18599. 8008058: 4b1c ldr r3, [pc, #112] ; (80080cc <__pow5mult+0xac>)
  18600. 800805a: 481d ldr r0, [pc, #116] ; (80080d0 <__pow5mult+0xb0>)
  18601. 800805c: f000 fbce bl 80087fc <__assert_func>
  18602. 8008060: e9c0 4401 strd r4, r4, [r0, #4]
  18603. 8008064: 6004 str r4, [r0, #0]
  18604. 8008066: 60c4 str r4, [r0, #12]
  18605. 8008068: f8d6 8024 ldr.w r8, [r6, #36] ; 0x24
  18606. 800806c: f8d8 4008 ldr.w r4, [r8, #8]
  18607. 8008070: b94c cbnz r4, 8008086 <__pow5mult+0x66>
  18608. 8008072: f240 2171 movw r1, #625 ; 0x271
  18609. 8008076: 4630 mov r0, r6
  18610. 8008078: f7ff ff18 bl 8007eac <__i2b>
  18611. 800807c: 2300 movs r3, #0
  18612. 800807e: 4604 mov r4, r0
  18613. 8008080: f8c8 0008 str.w r0, [r8, #8]
  18614. 8008084: 6003 str r3, [r0, #0]
  18615. 8008086: f04f 0900 mov.w r9, #0
  18616. 800808a: 07eb lsls r3, r5, #31
  18617. 800808c: d50a bpl.n 80080a4 <__pow5mult+0x84>
  18618. 800808e: 4639 mov r1, r7
  18619. 8008090: 4622 mov r2, r4
  18620. 8008092: 4630 mov r0, r6
  18621. 8008094: f7ff ff20 bl 8007ed8 <__multiply>
  18622. 8008098: 4680 mov r8, r0
  18623. 800809a: 4639 mov r1, r7
  18624. 800809c: 4630 mov r0, r6
  18625. 800809e: f7ff fe4b bl 8007d38 <_Bfree>
  18626. 80080a2: 4647 mov r7, r8
  18627. 80080a4: 106d asrs r5, r5, #1
  18628. 80080a6: d00b beq.n 80080c0 <__pow5mult+0xa0>
  18629. 80080a8: 6820 ldr r0, [r4, #0]
  18630. 80080aa: b938 cbnz r0, 80080bc <__pow5mult+0x9c>
  18631. 80080ac: 4622 mov r2, r4
  18632. 80080ae: 4621 mov r1, r4
  18633. 80080b0: 4630 mov r0, r6
  18634. 80080b2: f7ff ff11 bl 8007ed8 <__multiply>
  18635. 80080b6: 6020 str r0, [r4, #0]
  18636. 80080b8: f8c0 9000 str.w r9, [r0]
  18637. 80080bc: 4604 mov r4, r0
  18638. 80080be: e7e4 b.n 800808a <__pow5mult+0x6a>
  18639. 80080c0: 4638 mov r0, r7
  18640. 80080c2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  18641. 80080c6: bf00 nop
  18642. 80080c8: 0800a330 .word 0x0800a330
  18643. 80080cc: 0800a159 .word 0x0800a159
  18644. 80080d0: 0800a1e0 .word 0x0800a1e0
  18645. 080080d4 <__lshift>:
  18646. 80080d4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  18647. 80080d8: 460c mov r4, r1
  18648. 80080da: 4607 mov r7, r0
  18649. 80080dc: 4691 mov r9, r2
  18650. 80080de: 6923 ldr r3, [r4, #16]
  18651. 80080e0: 6849 ldr r1, [r1, #4]
  18652. 80080e2: eb03 1862 add.w r8, r3, r2, asr #5
  18653. 80080e6: 68a3 ldr r3, [r4, #8]
  18654. 80080e8: ea4f 1a62 mov.w sl, r2, asr #5
  18655. 80080ec: f108 0601 add.w r6, r8, #1
  18656. 80080f0: 42b3 cmp r3, r6
  18657. 80080f2: db0b blt.n 800810c <__lshift+0x38>
  18658. 80080f4: 4638 mov r0, r7
  18659. 80080f6: f7ff fddf bl 8007cb8 <_Balloc>
  18660. 80080fa: 4605 mov r5, r0
  18661. 80080fc: b948 cbnz r0, 8008112 <__lshift+0x3e>
  18662. 80080fe: 4602 mov r2, r0
  18663. 8008100: f240 11d9 movw r1, #473 ; 0x1d9
  18664. 8008104: 4b27 ldr r3, [pc, #156] ; (80081a4 <__lshift+0xd0>)
  18665. 8008106: 4828 ldr r0, [pc, #160] ; (80081a8 <__lshift+0xd4>)
  18666. 8008108: f000 fb78 bl 80087fc <__assert_func>
  18667. 800810c: 3101 adds r1, #1
  18668. 800810e: 005b lsls r3, r3, #1
  18669. 8008110: e7ee b.n 80080f0 <__lshift+0x1c>
  18670. 8008112: 2300 movs r3, #0
  18671. 8008114: f100 0114 add.w r1, r0, #20
  18672. 8008118: f100 0210 add.w r2, r0, #16
  18673. 800811c: 4618 mov r0, r3
  18674. 800811e: 4553 cmp r3, sl
  18675. 8008120: db33 blt.n 800818a <__lshift+0xb6>
  18676. 8008122: 6920 ldr r0, [r4, #16]
  18677. 8008124: ea2a 7aea bic.w sl, sl, sl, asr #31
  18678. 8008128: f104 0314 add.w r3, r4, #20
  18679. 800812c: f019 091f ands.w r9, r9, #31
  18680. 8008130: eb01 018a add.w r1, r1, sl, lsl #2
  18681. 8008134: eb03 0c80 add.w ip, r3, r0, lsl #2
  18682. 8008138: d02b beq.n 8008192 <__lshift+0xbe>
  18683. 800813a: 468a mov sl, r1
  18684. 800813c: 2200 movs r2, #0
  18685. 800813e: f1c9 0e20 rsb lr, r9, #32
  18686. 8008142: 6818 ldr r0, [r3, #0]
  18687. 8008144: fa00 f009 lsl.w r0, r0, r9
  18688. 8008148: 4302 orrs r2, r0
  18689. 800814a: f84a 2b04 str.w r2, [sl], #4
  18690. 800814e: f853 2b04 ldr.w r2, [r3], #4
  18691. 8008152: 459c cmp ip, r3
  18692. 8008154: fa22 f20e lsr.w r2, r2, lr
  18693. 8008158: d8f3 bhi.n 8008142 <__lshift+0x6e>
  18694. 800815a: ebac 0304 sub.w r3, ip, r4
  18695. 800815e: 3b15 subs r3, #21
  18696. 8008160: f023 0303 bic.w r3, r3, #3
  18697. 8008164: 3304 adds r3, #4
  18698. 8008166: f104 0015 add.w r0, r4, #21
  18699. 800816a: 4584 cmp ip, r0
  18700. 800816c: bf38 it cc
  18701. 800816e: 2304 movcc r3, #4
  18702. 8008170: 50ca str r2, [r1, r3]
  18703. 8008172: b10a cbz r2, 8008178 <__lshift+0xa4>
  18704. 8008174: f108 0602 add.w r6, r8, #2
  18705. 8008178: 3e01 subs r6, #1
  18706. 800817a: 4638 mov r0, r7
  18707. 800817c: 4621 mov r1, r4
  18708. 800817e: 612e str r6, [r5, #16]
  18709. 8008180: f7ff fdda bl 8007d38 <_Bfree>
  18710. 8008184: 4628 mov r0, r5
  18711. 8008186: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  18712. 800818a: f842 0f04 str.w r0, [r2, #4]!
  18713. 800818e: 3301 adds r3, #1
  18714. 8008190: e7c5 b.n 800811e <__lshift+0x4a>
  18715. 8008192: 3904 subs r1, #4
  18716. 8008194: f853 2b04 ldr.w r2, [r3], #4
  18717. 8008198: 459c cmp ip, r3
  18718. 800819a: f841 2f04 str.w r2, [r1, #4]!
  18719. 800819e: d8f9 bhi.n 8008194 <__lshift+0xc0>
  18720. 80081a0: e7ea b.n 8008178 <__lshift+0xa4>
  18721. 80081a2: bf00 nop
  18722. 80081a4: 0800a1cf .word 0x0800a1cf
  18723. 80081a8: 0800a1e0 .word 0x0800a1e0
  18724. 080081ac <__mcmp>:
  18725. 80081ac: 4603 mov r3, r0
  18726. 80081ae: 690a ldr r2, [r1, #16]
  18727. 80081b0: 6900 ldr r0, [r0, #16]
  18728. 80081b2: b530 push {r4, r5, lr}
  18729. 80081b4: 1a80 subs r0, r0, r2
  18730. 80081b6: d10d bne.n 80081d4 <__mcmp+0x28>
  18731. 80081b8: 3314 adds r3, #20
  18732. 80081ba: 3114 adds r1, #20
  18733. 80081bc: eb03 0482 add.w r4, r3, r2, lsl #2
  18734. 80081c0: eb01 0182 add.w r1, r1, r2, lsl #2
  18735. 80081c4: f854 5d04 ldr.w r5, [r4, #-4]!
  18736. 80081c8: f851 2d04 ldr.w r2, [r1, #-4]!
  18737. 80081cc: 4295 cmp r5, r2
  18738. 80081ce: d002 beq.n 80081d6 <__mcmp+0x2a>
  18739. 80081d0: d304 bcc.n 80081dc <__mcmp+0x30>
  18740. 80081d2: 2001 movs r0, #1
  18741. 80081d4: bd30 pop {r4, r5, pc}
  18742. 80081d6: 42a3 cmp r3, r4
  18743. 80081d8: d3f4 bcc.n 80081c4 <__mcmp+0x18>
  18744. 80081da: e7fb b.n 80081d4 <__mcmp+0x28>
  18745. 80081dc: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  18746. 80081e0: e7f8 b.n 80081d4 <__mcmp+0x28>
  18747. ...
  18748. 080081e4 <__mdiff>:
  18749. 80081e4: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
  18750. 80081e8: 460c mov r4, r1
  18751. 80081ea: 4606 mov r6, r0
  18752. 80081ec: 4611 mov r1, r2
  18753. 80081ee: 4620 mov r0, r4
  18754. 80081f0: 4692 mov sl, r2
  18755. 80081f2: f7ff ffdb bl 80081ac <__mcmp>
  18756. 80081f6: 1e05 subs r5, r0, #0
  18757. 80081f8: d111 bne.n 800821e <__mdiff+0x3a>
  18758. 80081fa: 4629 mov r1, r5
  18759. 80081fc: 4630 mov r0, r6
  18760. 80081fe: f7ff fd5b bl 8007cb8 <_Balloc>
  18761. 8008202: 4602 mov r2, r0
  18762. 8008204: b928 cbnz r0, 8008212 <__mdiff+0x2e>
  18763. 8008206: f240 2132 movw r1, #562 ; 0x232
  18764. 800820a: 4b3c ldr r3, [pc, #240] ; (80082fc <__mdiff+0x118>)
  18765. 800820c: 483c ldr r0, [pc, #240] ; (8008300 <__mdiff+0x11c>)
  18766. 800820e: f000 faf5 bl 80087fc <__assert_func>
  18767. 8008212: 2301 movs r3, #1
  18768. 8008214: e9c0 3504 strd r3, r5, [r0, #16]
  18769. 8008218: 4610 mov r0, r2
  18770. 800821a: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
  18771. 800821e: bfa4 itt ge
  18772. 8008220: 4653 movge r3, sl
  18773. 8008222: 46a2 movge sl, r4
  18774. 8008224: 4630 mov r0, r6
  18775. 8008226: f8da 1004 ldr.w r1, [sl, #4]
  18776. 800822a: bfa6 itte ge
  18777. 800822c: 461c movge r4, r3
  18778. 800822e: 2500 movge r5, #0
  18779. 8008230: 2501 movlt r5, #1
  18780. 8008232: f7ff fd41 bl 8007cb8 <_Balloc>
  18781. 8008236: 4602 mov r2, r0
  18782. 8008238: b918 cbnz r0, 8008242 <__mdiff+0x5e>
  18783. 800823a: f44f 7110 mov.w r1, #576 ; 0x240
  18784. 800823e: 4b2f ldr r3, [pc, #188] ; (80082fc <__mdiff+0x118>)
  18785. 8008240: e7e4 b.n 800820c <__mdiff+0x28>
  18786. 8008242: f100 0814 add.w r8, r0, #20
  18787. 8008246: f8da 7010 ldr.w r7, [sl, #16]
  18788. 800824a: 60c5 str r5, [r0, #12]
  18789. 800824c: f04f 0c00 mov.w ip, #0
  18790. 8008250: f10a 0514 add.w r5, sl, #20
  18791. 8008254: f10a 0010 add.w r0, sl, #16
  18792. 8008258: 46c2 mov sl, r8
  18793. 800825a: 6926 ldr r6, [r4, #16]
  18794. 800825c: f104 0914 add.w r9, r4, #20
  18795. 8008260: eb05 0e87 add.w lr, r5, r7, lsl #2
  18796. 8008264: eb09 0686 add.w r6, r9, r6, lsl #2
  18797. 8008268: f850 bf04 ldr.w fp, [r0, #4]!
  18798. 800826c: f859 3b04 ldr.w r3, [r9], #4
  18799. 8008270: fa1f f18b uxth.w r1, fp
  18800. 8008274: 4461 add r1, ip
  18801. 8008276: fa1f fc83 uxth.w ip, r3
  18802. 800827a: 0c1b lsrs r3, r3, #16
  18803. 800827c: eba1 010c sub.w r1, r1, ip
  18804. 8008280: ebc3 431b rsb r3, r3, fp, lsr #16
  18805. 8008284: eb03 4321 add.w r3, r3, r1, asr #16
  18806. 8008288: b289 uxth r1, r1
  18807. 800828a: ea4f 4c23 mov.w ip, r3, asr #16
  18808. 800828e: 454e cmp r6, r9
  18809. 8008290: ea41 4303 orr.w r3, r1, r3, lsl #16
  18810. 8008294: f84a 3b04 str.w r3, [sl], #4
  18811. 8008298: d8e6 bhi.n 8008268 <__mdiff+0x84>
  18812. 800829a: 1b33 subs r3, r6, r4
  18813. 800829c: 3b15 subs r3, #21
  18814. 800829e: f023 0303 bic.w r3, r3, #3
  18815. 80082a2: 3415 adds r4, #21
  18816. 80082a4: 3304 adds r3, #4
  18817. 80082a6: 42a6 cmp r6, r4
  18818. 80082a8: bf38 it cc
  18819. 80082aa: 2304 movcc r3, #4
  18820. 80082ac: 441d add r5, r3
  18821. 80082ae: 4443 add r3, r8
  18822. 80082b0: 461e mov r6, r3
  18823. 80082b2: 462c mov r4, r5
  18824. 80082b4: 4574 cmp r4, lr
  18825. 80082b6: d30e bcc.n 80082d6 <__mdiff+0xf2>
  18826. 80082b8: f10e 0103 add.w r1, lr, #3
  18827. 80082bc: 1b49 subs r1, r1, r5
  18828. 80082be: f021 0103 bic.w r1, r1, #3
  18829. 80082c2: 3d03 subs r5, #3
  18830. 80082c4: 45ae cmp lr, r5
  18831. 80082c6: bf38 it cc
  18832. 80082c8: 2100 movcc r1, #0
  18833. 80082ca: 4419 add r1, r3
  18834. 80082cc: f851 3d04 ldr.w r3, [r1, #-4]!
  18835. 80082d0: b18b cbz r3, 80082f6 <__mdiff+0x112>
  18836. 80082d2: 6117 str r7, [r2, #16]
  18837. 80082d4: e7a0 b.n 8008218 <__mdiff+0x34>
  18838. 80082d6: f854 8b04 ldr.w r8, [r4], #4
  18839. 80082da: fa1f f188 uxth.w r1, r8
  18840. 80082de: 4461 add r1, ip
  18841. 80082e0: 1408 asrs r0, r1, #16
  18842. 80082e2: eb00 4018 add.w r0, r0, r8, lsr #16
  18843. 80082e6: b289 uxth r1, r1
  18844. 80082e8: ea41 4100 orr.w r1, r1, r0, lsl #16
  18845. 80082ec: ea4f 4c20 mov.w ip, r0, asr #16
  18846. 80082f0: f846 1b04 str.w r1, [r6], #4
  18847. 80082f4: e7de b.n 80082b4 <__mdiff+0xd0>
  18848. 80082f6: 3f01 subs r7, #1
  18849. 80082f8: e7e8 b.n 80082cc <__mdiff+0xe8>
  18850. 80082fa: bf00 nop
  18851. 80082fc: 0800a1cf .word 0x0800a1cf
  18852. 8008300: 0800a1e0 .word 0x0800a1e0
  18853. 08008304 <__d2b>:
  18854. 8008304: e92d 41f3 stmdb sp!, {r0, r1, r4, r5, r6, r7, r8, lr}
  18855. 8008308: 2101 movs r1, #1
  18856. 800830a: e9dd 7608 ldrd r7, r6, [sp, #32]
  18857. 800830e: 4690 mov r8, r2
  18858. 8008310: 461d mov r5, r3
  18859. 8008312: f7ff fcd1 bl 8007cb8 <_Balloc>
  18860. 8008316: 4604 mov r4, r0
  18861. 8008318: b930 cbnz r0, 8008328 <__d2b+0x24>
  18862. 800831a: 4602 mov r2, r0
  18863. 800831c: f240 310a movw r1, #778 ; 0x30a
  18864. 8008320: 4b24 ldr r3, [pc, #144] ; (80083b4 <__d2b+0xb0>)
  18865. 8008322: 4825 ldr r0, [pc, #148] ; (80083b8 <__d2b+0xb4>)
  18866. 8008324: f000 fa6a bl 80087fc <__assert_func>
  18867. 8008328: f3c5 0313 ubfx r3, r5, #0, #20
  18868. 800832c: f3c5 550a ubfx r5, r5, #20, #11
  18869. 8008330: bb2d cbnz r5, 800837e <__d2b+0x7a>
  18870. 8008332: 9301 str r3, [sp, #4]
  18871. 8008334: f1b8 0300 subs.w r3, r8, #0
  18872. 8008338: d026 beq.n 8008388 <__d2b+0x84>
  18873. 800833a: 4668 mov r0, sp
  18874. 800833c: 9300 str r3, [sp, #0]
  18875. 800833e: f7ff fd87 bl 8007e50 <__lo0bits>
  18876. 8008342: 9900 ldr r1, [sp, #0]
  18877. 8008344: b1f0 cbz r0, 8008384 <__d2b+0x80>
  18878. 8008346: 9a01 ldr r2, [sp, #4]
  18879. 8008348: f1c0 0320 rsb r3, r0, #32
  18880. 800834c: fa02 f303 lsl.w r3, r2, r3
  18881. 8008350: 430b orrs r3, r1
  18882. 8008352: 40c2 lsrs r2, r0
  18883. 8008354: 6163 str r3, [r4, #20]
  18884. 8008356: 9201 str r2, [sp, #4]
  18885. 8008358: 9b01 ldr r3, [sp, #4]
  18886. 800835a: 2b00 cmp r3, #0
  18887. 800835c: bf14 ite ne
  18888. 800835e: 2102 movne r1, #2
  18889. 8008360: 2101 moveq r1, #1
  18890. 8008362: 61a3 str r3, [r4, #24]
  18891. 8008364: 6121 str r1, [r4, #16]
  18892. 8008366: b1c5 cbz r5, 800839a <__d2b+0x96>
  18893. 8008368: f2a5 4533 subw r5, r5, #1075 ; 0x433
  18894. 800836c: 4405 add r5, r0
  18895. 800836e: f1c0 0035 rsb r0, r0, #53 ; 0x35
  18896. 8008372: 603d str r5, [r7, #0]
  18897. 8008374: 6030 str r0, [r6, #0]
  18898. 8008376: 4620 mov r0, r4
  18899. 8008378: b002 add sp, #8
  18900. 800837a: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  18901. 800837e: f443 1380 orr.w r3, r3, #1048576 ; 0x100000
  18902. 8008382: e7d6 b.n 8008332 <__d2b+0x2e>
  18903. 8008384: 6161 str r1, [r4, #20]
  18904. 8008386: e7e7 b.n 8008358 <__d2b+0x54>
  18905. 8008388: a801 add r0, sp, #4
  18906. 800838a: f7ff fd61 bl 8007e50 <__lo0bits>
  18907. 800838e: 2101 movs r1, #1
  18908. 8008390: 9b01 ldr r3, [sp, #4]
  18909. 8008392: 6121 str r1, [r4, #16]
  18910. 8008394: 6163 str r3, [r4, #20]
  18911. 8008396: 3020 adds r0, #32
  18912. 8008398: e7e5 b.n 8008366 <__d2b+0x62>
  18913. 800839a: eb04 0381 add.w r3, r4, r1, lsl #2
  18914. 800839e: f2a0 4032 subw r0, r0, #1074 ; 0x432
  18915. 80083a2: 6038 str r0, [r7, #0]
  18916. 80083a4: 6918 ldr r0, [r3, #16]
  18917. 80083a6: f7ff fd33 bl 8007e10 <__hi0bits>
  18918. 80083aa: ebc0 1141 rsb r1, r0, r1, lsl #5
  18919. 80083ae: 6031 str r1, [r6, #0]
  18920. 80083b0: e7e1 b.n 8008376 <__d2b+0x72>
  18921. 80083b2: bf00 nop
  18922. 80083b4: 0800a1cf .word 0x0800a1cf
  18923. 80083b8: 0800a1e0 .word 0x0800a1e0
  18924. 080083bc <_calloc_r>:
  18925. 80083bc: b538 push {r3, r4, r5, lr}
  18926. 80083be: fb02 f501 mul.w r5, r2, r1
  18927. 80083c2: 4629 mov r1, r5
  18928. 80083c4: f000 f854 bl 8008470 <_malloc_r>
  18929. 80083c8: 4604 mov r4, r0
  18930. 80083ca: b118 cbz r0, 80083d4 <_calloc_r+0x18>
  18931. 80083cc: 462a mov r2, r5
  18932. 80083ce: 2100 movs r1, #0
  18933. 80083d0: f7fe f952 bl 8006678 <memset>
  18934. 80083d4: 4620 mov r0, r4
  18935. 80083d6: bd38 pop {r3, r4, r5, pc}
  18936. 080083d8 <_free_r>:
  18937. 80083d8: b538 push {r3, r4, r5, lr}
  18938. 80083da: 4605 mov r5, r0
  18939. 80083dc: 2900 cmp r1, #0
  18940. 80083de: d043 beq.n 8008468 <_free_r+0x90>
  18941. 80083e0: f851 3c04 ldr.w r3, [r1, #-4]
  18942. 80083e4: 1f0c subs r4, r1, #4
  18943. 80083e6: 2b00 cmp r3, #0
  18944. 80083e8: bfb8 it lt
  18945. 80083ea: 18e4 addlt r4, r4, r3
  18946. 80083ec: f000 fa48 bl 8008880 <__malloc_lock>
  18947. 80083f0: 4a1e ldr r2, [pc, #120] ; (800846c <_free_r+0x94>)
  18948. 80083f2: 6813 ldr r3, [r2, #0]
  18949. 80083f4: 4610 mov r0, r2
  18950. 80083f6: b933 cbnz r3, 8008406 <_free_r+0x2e>
  18951. 80083f8: 6063 str r3, [r4, #4]
  18952. 80083fa: 6014 str r4, [r2, #0]
  18953. 80083fc: 4628 mov r0, r5
  18954. 80083fe: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  18955. 8008402: f000 ba43 b.w 800888c <__malloc_unlock>
  18956. 8008406: 42a3 cmp r3, r4
  18957. 8008408: d90a bls.n 8008420 <_free_r+0x48>
  18958. 800840a: 6821 ldr r1, [r4, #0]
  18959. 800840c: 1862 adds r2, r4, r1
  18960. 800840e: 4293 cmp r3, r2
  18961. 8008410: bf01 itttt eq
  18962. 8008412: 681a ldreq r2, [r3, #0]
  18963. 8008414: 685b ldreq r3, [r3, #4]
  18964. 8008416: 1852 addeq r2, r2, r1
  18965. 8008418: 6022 streq r2, [r4, #0]
  18966. 800841a: 6063 str r3, [r4, #4]
  18967. 800841c: 6004 str r4, [r0, #0]
  18968. 800841e: e7ed b.n 80083fc <_free_r+0x24>
  18969. 8008420: 461a mov r2, r3
  18970. 8008422: 685b ldr r3, [r3, #4]
  18971. 8008424: b10b cbz r3, 800842a <_free_r+0x52>
  18972. 8008426: 42a3 cmp r3, r4
  18973. 8008428: d9fa bls.n 8008420 <_free_r+0x48>
  18974. 800842a: 6811 ldr r1, [r2, #0]
  18975. 800842c: 1850 adds r0, r2, r1
  18976. 800842e: 42a0 cmp r0, r4
  18977. 8008430: d10b bne.n 800844a <_free_r+0x72>
  18978. 8008432: 6820 ldr r0, [r4, #0]
  18979. 8008434: 4401 add r1, r0
  18980. 8008436: 1850 adds r0, r2, r1
  18981. 8008438: 4283 cmp r3, r0
  18982. 800843a: 6011 str r1, [r2, #0]
  18983. 800843c: d1de bne.n 80083fc <_free_r+0x24>
  18984. 800843e: 6818 ldr r0, [r3, #0]
  18985. 8008440: 685b ldr r3, [r3, #4]
  18986. 8008442: 4401 add r1, r0
  18987. 8008444: 6011 str r1, [r2, #0]
  18988. 8008446: 6053 str r3, [r2, #4]
  18989. 8008448: e7d8 b.n 80083fc <_free_r+0x24>
  18990. 800844a: d902 bls.n 8008452 <_free_r+0x7a>
  18991. 800844c: 230c movs r3, #12
  18992. 800844e: 602b str r3, [r5, #0]
  18993. 8008450: e7d4 b.n 80083fc <_free_r+0x24>
  18994. 8008452: 6820 ldr r0, [r4, #0]
  18995. 8008454: 1821 adds r1, r4, r0
  18996. 8008456: 428b cmp r3, r1
  18997. 8008458: bf01 itttt eq
  18998. 800845a: 6819 ldreq r1, [r3, #0]
  18999. 800845c: 685b ldreq r3, [r3, #4]
  19000. 800845e: 1809 addeq r1, r1, r0
  19001. 8008460: 6021 streq r1, [r4, #0]
  19002. 8008462: 6063 str r3, [r4, #4]
  19003. 8008464: 6054 str r4, [r2, #4]
  19004. 8008466: e7c9 b.n 80083fc <_free_r+0x24>
  19005. 8008468: bd38 pop {r3, r4, r5, pc}
  19006. 800846a: bf00 nop
  19007. 800846c: 20000410 .word 0x20000410
  19008. 08008470 <_malloc_r>:
  19009. 8008470: b5f8 push {r3, r4, r5, r6, r7, lr}
  19010. 8008472: 1ccd adds r5, r1, #3
  19011. 8008474: f025 0503 bic.w r5, r5, #3
  19012. 8008478: 3508 adds r5, #8
  19013. 800847a: 2d0c cmp r5, #12
  19014. 800847c: bf38 it cc
  19015. 800847e: 250c movcc r5, #12
  19016. 8008480: 2d00 cmp r5, #0
  19017. 8008482: 4606 mov r6, r0
  19018. 8008484: db01 blt.n 800848a <_malloc_r+0x1a>
  19019. 8008486: 42a9 cmp r1, r5
  19020. 8008488: d903 bls.n 8008492 <_malloc_r+0x22>
  19021. 800848a: 230c movs r3, #12
  19022. 800848c: 6033 str r3, [r6, #0]
  19023. 800848e: 2000 movs r0, #0
  19024. 8008490: bdf8 pop {r3, r4, r5, r6, r7, pc}
  19025. 8008492: f000 f9f5 bl 8008880 <__malloc_lock>
  19026. 8008496: 4921 ldr r1, [pc, #132] ; (800851c <_malloc_r+0xac>)
  19027. 8008498: 680a ldr r2, [r1, #0]
  19028. 800849a: 4614 mov r4, r2
  19029. 800849c: b99c cbnz r4, 80084c6 <_malloc_r+0x56>
  19030. 800849e: 4f20 ldr r7, [pc, #128] ; (8008520 <_malloc_r+0xb0>)
  19031. 80084a0: 683b ldr r3, [r7, #0]
  19032. 80084a2: b923 cbnz r3, 80084ae <_malloc_r+0x3e>
  19033. 80084a4: 4621 mov r1, r4
  19034. 80084a6: 4630 mov r0, r6
  19035. 80084a8: f000 f998 bl 80087dc <_sbrk_r>
  19036. 80084ac: 6038 str r0, [r7, #0]
  19037. 80084ae: 4629 mov r1, r5
  19038. 80084b0: 4630 mov r0, r6
  19039. 80084b2: f000 f993 bl 80087dc <_sbrk_r>
  19040. 80084b6: 1c43 adds r3, r0, #1
  19041. 80084b8: d123 bne.n 8008502 <_malloc_r+0x92>
  19042. 80084ba: 230c movs r3, #12
  19043. 80084bc: 4630 mov r0, r6
  19044. 80084be: 6033 str r3, [r6, #0]
  19045. 80084c0: f000 f9e4 bl 800888c <__malloc_unlock>
  19046. 80084c4: e7e3 b.n 800848e <_malloc_r+0x1e>
  19047. 80084c6: 6823 ldr r3, [r4, #0]
  19048. 80084c8: 1b5b subs r3, r3, r5
  19049. 80084ca: d417 bmi.n 80084fc <_malloc_r+0x8c>
  19050. 80084cc: 2b0b cmp r3, #11
  19051. 80084ce: d903 bls.n 80084d8 <_malloc_r+0x68>
  19052. 80084d0: 6023 str r3, [r4, #0]
  19053. 80084d2: 441c add r4, r3
  19054. 80084d4: 6025 str r5, [r4, #0]
  19055. 80084d6: e004 b.n 80084e2 <_malloc_r+0x72>
  19056. 80084d8: 6863 ldr r3, [r4, #4]
  19057. 80084da: 42a2 cmp r2, r4
  19058. 80084dc: bf0c ite eq
  19059. 80084de: 600b streq r3, [r1, #0]
  19060. 80084e0: 6053 strne r3, [r2, #4]
  19061. 80084e2: 4630 mov r0, r6
  19062. 80084e4: f000 f9d2 bl 800888c <__malloc_unlock>
  19063. 80084e8: f104 000b add.w r0, r4, #11
  19064. 80084ec: 1d23 adds r3, r4, #4
  19065. 80084ee: f020 0007 bic.w r0, r0, #7
  19066. 80084f2: 1ac2 subs r2, r0, r3
  19067. 80084f4: d0cc beq.n 8008490 <_malloc_r+0x20>
  19068. 80084f6: 1a1b subs r3, r3, r0
  19069. 80084f8: 50a3 str r3, [r4, r2]
  19070. 80084fa: e7c9 b.n 8008490 <_malloc_r+0x20>
  19071. 80084fc: 4622 mov r2, r4
  19072. 80084fe: 6864 ldr r4, [r4, #4]
  19073. 8008500: e7cc b.n 800849c <_malloc_r+0x2c>
  19074. 8008502: 1cc4 adds r4, r0, #3
  19075. 8008504: f024 0403 bic.w r4, r4, #3
  19076. 8008508: 42a0 cmp r0, r4
  19077. 800850a: d0e3 beq.n 80084d4 <_malloc_r+0x64>
  19078. 800850c: 1a21 subs r1, r4, r0
  19079. 800850e: 4630 mov r0, r6
  19080. 8008510: f000 f964 bl 80087dc <_sbrk_r>
  19081. 8008514: 3001 adds r0, #1
  19082. 8008516: d1dd bne.n 80084d4 <_malloc_r+0x64>
  19083. 8008518: e7cf b.n 80084ba <_malloc_r+0x4a>
  19084. 800851a: bf00 nop
  19085. 800851c: 20000410 .word 0x20000410
  19086. 8008520: 20000414 .word 0x20000414
  19087. 08008524 <__ssputs_r>:
  19088. 8008524: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
  19089. 8008528: 688e ldr r6, [r1, #8]
  19090. 800852a: 4682 mov sl, r0
  19091. 800852c: 429e cmp r6, r3
  19092. 800852e: 460c mov r4, r1
  19093. 8008530: 4690 mov r8, r2
  19094. 8008532: 461f mov r7, r3
  19095. 8008534: d838 bhi.n 80085a8 <__ssputs_r+0x84>
  19096. 8008536: 898a ldrh r2, [r1, #12]
  19097. 8008538: f412 6f90 tst.w r2, #1152 ; 0x480
  19098. 800853c: d032 beq.n 80085a4 <__ssputs_r+0x80>
  19099. 800853e: 6825 ldr r5, [r4, #0]
  19100. 8008540: 6909 ldr r1, [r1, #16]
  19101. 8008542: 3301 adds r3, #1
  19102. 8008544: eba5 0901 sub.w r9, r5, r1
  19103. 8008548: 6965 ldr r5, [r4, #20]
  19104. 800854a: 444b add r3, r9
  19105. 800854c: eb05 0545 add.w r5, r5, r5, lsl #1
  19106. 8008550: eb05 75d5 add.w r5, r5, r5, lsr #31
  19107. 8008554: 106d asrs r5, r5, #1
  19108. 8008556: 429d cmp r5, r3
  19109. 8008558: bf38 it cc
  19110. 800855a: 461d movcc r5, r3
  19111. 800855c: 0553 lsls r3, r2, #21
  19112. 800855e: d531 bpl.n 80085c4 <__ssputs_r+0xa0>
  19113. 8008560: 4629 mov r1, r5
  19114. 8008562: f7ff ff85 bl 8008470 <_malloc_r>
  19115. 8008566: 4606 mov r6, r0
  19116. 8008568: b950 cbnz r0, 8008580 <__ssputs_r+0x5c>
  19117. 800856a: 230c movs r3, #12
  19118. 800856c: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  19119. 8008570: f8ca 3000 str.w r3, [sl]
  19120. 8008574: 89a3 ldrh r3, [r4, #12]
  19121. 8008576: f043 0340 orr.w r3, r3, #64 ; 0x40
  19122. 800857a: 81a3 strh r3, [r4, #12]
  19123. 800857c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
  19124. 8008580: 464a mov r2, r9
  19125. 8008582: 6921 ldr r1, [r4, #16]
  19126. 8008584: f7fe f850 bl 8006628 <memcpy>
  19127. 8008588: 89a3 ldrh r3, [r4, #12]
  19128. 800858a: f423 6390 bic.w r3, r3, #1152 ; 0x480
  19129. 800858e: f043 0380 orr.w r3, r3, #128 ; 0x80
  19130. 8008592: 81a3 strh r3, [r4, #12]
  19131. 8008594: 6126 str r6, [r4, #16]
  19132. 8008596: 444e add r6, r9
  19133. 8008598: 6026 str r6, [r4, #0]
  19134. 800859a: 463e mov r6, r7
  19135. 800859c: 6165 str r5, [r4, #20]
  19136. 800859e: eba5 0509 sub.w r5, r5, r9
  19137. 80085a2: 60a5 str r5, [r4, #8]
  19138. 80085a4: 42be cmp r6, r7
  19139. 80085a6: d900 bls.n 80085aa <__ssputs_r+0x86>
  19140. 80085a8: 463e mov r6, r7
  19141. 80085aa: 4632 mov r2, r6
  19142. 80085ac: 4641 mov r1, r8
  19143. 80085ae: 6820 ldr r0, [r4, #0]
  19144. 80085b0: f7fe f848 bl 8006644 <memmove>
  19145. 80085b4: 68a3 ldr r3, [r4, #8]
  19146. 80085b6: 6822 ldr r2, [r4, #0]
  19147. 80085b8: 1b9b subs r3, r3, r6
  19148. 80085ba: 4432 add r2, r6
  19149. 80085bc: 2000 movs r0, #0
  19150. 80085be: 60a3 str r3, [r4, #8]
  19151. 80085c0: 6022 str r2, [r4, #0]
  19152. 80085c2: e7db b.n 800857c <__ssputs_r+0x58>
  19153. 80085c4: 462a mov r2, r5
  19154. 80085c6: f000 f967 bl 8008898 <_realloc_r>
  19155. 80085ca: 4606 mov r6, r0
  19156. 80085cc: 2800 cmp r0, #0
  19157. 80085ce: d1e1 bne.n 8008594 <__ssputs_r+0x70>
  19158. 80085d0: 4650 mov r0, sl
  19159. 80085d2: 6921 ldr r1, [r4, #16]
  19160. 80085d4: f7ff ff00 bl 80083d8 <_free_r>
  19161. 80085d8: e7c7 b.n 800856a <__ssputs_r+0x46>
  19162. ...
  19163. 080085dc <_svfiprintf_r>:
  19164. 80085dc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  19165. 80085e0: 4698 mov r8, r3
  19166. 80085e2: 898b ldrh r3, [r1, #12]
  19167. 80085e4: 4607 mov r7, r0
  19168. 80085e6: 061b lsls r3, r3, #24
  19169. 80085e8: 460d mov r5, r1
  19170. 80085ea: 4614 mov r4, r2
  19171. 80085ec: b09d sub sp, #116 ; 0x74
  19172. 80085ee: d50e bpl.n 800860e <_svfiprintf_r+0x32>
  19173. 80085f0: 690b ldr r3, [r1, #16]
  19174. 80085f2: b963 cbnz r3, 800860e <_svfiprintf_r+0x32>
  19175. 80085f4: 2140 movs r1, #64 ; 0x40
  19176. 80085f6: f7ff ff3b bl 8008470 <_malloc_r>
  19177. 80085fa: 6028 str r0, [r5, #0]
  19178. 80085fc: 6128 str r0, [r5, #16]
  19179. 80085fe: b920 cbnz r0, 800860a <_svfiprintf_r+0x2e>
  19180. 8008600: 230c movs r3, #12
  19181. 8008602: 603b str r3, [r7, #0]
  19182. 8008604: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  19183. 8008608: e0d1 b.n 80087ae <_svfiprintf_r+0x1d2>
  19184. 800860a: 2340 movs r3, #64 ; 0x40
  19185. 800860c: 616b str r3, [r5, #20]
  19186. 800860e: 2300 movs r3, #0
  19187. 8008610: 9309 str r3, [sp, #36] ; 0x24
  19188. 8008612: 2320 movs r3, #32
  19189. 8008614: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  19190. 8008618: 2330 movs r3, #48 ; 0x30
  19191. 800861a: f04f 0901 mov.w r9, #1
  19192. 800861e: f8cd 800c str.w r8, [sp, #12]
  19193. 8008622: f8df 81a4 ldr.w r8, [pc, #420] ; 80087c8 <_svfiprintf_r+0x1ec>
  19194. 8008626: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  19195. 800862a: 4623 mov r3, r4
  19196. 800862c: 469a mov sl, r3
  19197. 800862e: f813 2b01 ldrb.w r2, [r3], #1
  19198. 8008632: b10a cbz r2, 8008638 <_svfiprintf_r+0x5c>
  19199. 8008634: 2a25 cmp r2, #37 ; 0x25
  19200. 8008636: d1f9 bne.n 800862c <_svfiprintf_r+0x50>
  19201. 8008638: ebba 0b04 subs.w fp, sl, r4
  19202. 800863c: d00b beq.n 8008656 <_svfiprintf_r+0x7a>
  19203. 800863e: 465b mov r3, fp
  19204. 8008640: 4622 mov r2, r4
  19205. 8008642: 4629 mov r1, r5
  19206. 8008644: 4638 mov r0, r7
  19207. 8008646: f7ff ff6d bl 8008524 <__ssputs_r>
  19208. 800864a: 3001 adds r0, #1
  19209. 800864c: f000 80aa beq.w 80087a4 <_svfiprintf_r+0x1c8>
  19210. 8008650: 9a09 ldr r2, [sp, #36] ; 0x24
  19211. 8008652: 445a add r2, fp
  19212. 8008654: 9209 str r2, [sp, #36] ; 0x24
  19213. 8008656: f89a 3000 ldrb.w r3, [sl]
  19214. 800865a: 2b00 cmp r3, #0
  19215. 800865c: f000 80a2 beq.w 80087a4 <_svfiprintf_r+0x1c8>
  19216. 8008660: 2300 movs r3, #0
  19217. 8008662: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  19218. 8008666: e9cd 2305 strd r2, r3, [sp, #20]
  19219. 800866a: f10a 0a01 add.w sl, sl, #1
  19220. 800866e: 9304 str r3, [sp, #16]
  19221. 8008670: 9307 str r3, [sp, #28]
  19222. 8008672: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  19223. 8008676: 931a str r3, [sp, #104] ; 0x68
  19224. 8008678: 4654 mov r4, sl
  19225. 800867a: 2205 movs r2, #5
  19226. 800867c: f814 1b01 ldrb.w r1, [r4], #1
  19227. 8008680: 4851 ldr r0, [pc, #324] ; (80087c8 <_svfiprintf_r+0x1ec>)
  19228. 8008682: f7ff fb0b bl 8007c9c <memchr>
  19229. 8008686: 9a04 ldr r2, [sp, #16]
  19230. 8008688: b9d8 cbnz r0, 80086c2 <_svfiprintf_r+0xe6>
  19231. 800868a: 06d0 lsls r0, r2, #27
  19232. 800868c: bf44 itt mi
  19233. 800868e: 2320 movmi r3, #32
  19234. 8008690: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  19235. 8008694: 0711 lsls r1, r2, #28
  19236. 8008696: bf44 itt mi
  19237. 8008698: 232b movmi r3, #43 ; 0x2b
  19238. 800869a: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  19239. 800869e: f89a 3000 ldrb.w r3, [sl]
  19240. 80086a2: 2b2a cmp r3, #42 ; 0x2a
  19241. 80086a4: d015 beq.n 80086d2 <_svfiprintf_r+0xf6>
  19242. 80086a6: 4654 mov r4, sl
  19243. 80086a8: 2000 movs r0, #0
  19244. 80086aa: f04f 0c0a mov.w ip, #10
  19245. 80086ae: 9a07 ldr r2, [sp, #28]
  19246. 80086b0: 4621 mov r1, r4
  19247. 80086b2: f811 3b01 ldrb.w r3, [r1], #1
  19248. 80086b6: 3b30 subs r3, #48 ; 0x30
  19249. 80086b8: 2b09 cmp r3, #9
  19250. 80086ba: d94e bls.n 800875a <_svfiprintf_r+0x17e>
  19251. 80086bc: b1b0 cbz r0, 80086ec <_svfiprintf_r+0x110>
  19252. 80086be: 9207 str r2, [sp, #28]
  19253. 80086c0: e014 b.n 80086ec <_svfiprintf_r+0x110>
  19254. 80086c2: eba0 0308 sub.w r3, r0, r8
  19255. 80086c6: fa09 f303 lsl.w r3, r9, r3
  19256. 80086ca: 4313 orrs r3, r2
  19257. 80086cc: 46a2 mov sl, r4
  19258. 80086ce: 9304 str r3, [sp, #16]
  19259. 80086d0: e7d2 b.n 8008678 <_svfiprintf_r+0x9c>
  19260. 80086d2: 9b03 ldr r3, [sp, #12]
  19261. 80086d4: 1d19 adds r1, r3, #4
  19262. 80086d6: 681b ldr r3, [r3, #0]
  19263. 80086d8: 9103 str r1, [sp, #12]
  19264. 80086da: 2b00 cmp r3, #0
  19265. 80086dc: bfbb ittet lt
  19266. 80086de: 425b neglt r3, r3
  19267. 80086e0: f042 0202 orrlt.w r2, r2, #2
  19268. 80086e4: 9307 strge r3, [sp, #28]
  19269. 80086e6: 9307 strlt r3, [sp, #28]
  19270. 80086e8: bfb8 it lt
  19271. 80086ea: 9204 strlt r2, [sp, #16]
  19272. 80086ec: 7823 ldrb r3, [r4, #0]
  19273. 80086ee: 2b2e cmp r3, #46 ; 0x2e
  19274. 80086f0: d10c bne.n 800870c <_svfiprintf_r+0x130>
  19275. 80086f2: 7863 ldrb r3, [r4, #1]
  19276. 80086f4: 2b2a cmp r3, #42 ; 0x2a
  19277. 80086f6: d135 bne.n 8008764 <_svfiprintf_r+0x188>
  19278. 80086f8: 9b03 ldr r3, [sp, #12]
  19279. 80086fa: 3402 adds r4, #2
  19280. 80086fc: 1d1a adds r2, r3, #4
  19281. 80086fe: 681b ldr r3, [r3, #0]
  19282. 8008700: 9203 str r2, [sp, #12]
  19283. 8008702: 2b00 cmp r3, #0
  19284. 8008704: bfb8 it lt
  19285. 8008706: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff
  19286. 800870a: 9305 str r3, [sp, #20]
  19287. 800870c: f8df a0c8 ldr.w sl, [pc, #200] ; 80087d8 <_svfiprintf_r+0x1fc>
  19288. 8008710: 2203 movs r2, #3
  19289. 8008712: 4650 mov r0, sl
  19290. 8008714: 7821 ldrb r1, [r4, #0]
  19291. 8008716: f7ff fac1 bl 8007c9c <memchr>
  19292. 800871a: b140 cbz r0, 800872e <_svfiprintf_r+0x152>
  19293. 800871c: 2340 movs r3, #64 ; 0x40
  19294. 800871e: eba0 000a sub.w r0, r0, sl
  19295. 8008722: fa03 f000 lsl.w r0, r3, r0
  19296. 8008726: 9b04 ldr r3, [sp, #16]
  19297. 8008728: 3401 adds r4, #1
  19298. 800872a: 4303 orrs r3, r0
  19299. 800872c: 9304 str r3, [sp, #16]
  19300. 800872e: f814 1b01 ldrb.w r1, [r4], #1
  19301. 8008732: 2206 movs r2, #6
  19302. 8008734: 4825 ldr r0, [pc, #148] ; (80087cc <_svfiprintf_r+0x1f0>)
  19303. 8008736: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  19304. 800873a: f7ff faaf bl 8007c9c <memchr>
  19305. 800873e: 2800 cmp r0, #0
  19306. 8008740: d038 beq.n 80087b4 <_svfiprintf_r+0x1d8>
  19307. 8008742: 4b23 ldr r3, [pc, #140] ; (80087d0 <_svfiprintf_r+0x1f4>)
  19308. 8008744: bb1b cbnz r3, 800878e <_svfiprintf_r+0x1b2>
  19309. 8008746: 9b03 ldr r3, [sp, #12]
  19310. 8008748: 3307 adds r3, #7
  19311. 800874a: f023 0307 bic.w r3, r3, #7
  19312. 800874e: 3308 adds r3, #8
  19313. 8008750: 9303 str r3, [sp, #12]
  19314. 8008752: 9b09 ldr r3, [sp, #36] ; 0x24
  19315. 8008754: 4433 add r3, r6
  19316. 8008756: 9309 str r3, [sp, #36] ; 0x24
  19317. 8008758: e767 b.n 800862a <_svfiprintf_r+0x4e>
  19318. 800875a: 460c mov r4, r1
  19319. 800875c: 2001 movs r0, #1
  19320. 800875e: fb0c 3202 mla r2, ip, r2, r3
  19321. 8008762: e7a5 b.n 80086b0 <_svfiprintf_r+0xd4>
  19322. 8008764: 2300 movs r3, #0
  19323. 8008766: f04f 0c0a mov.w ip, #10
  19324. 800876a: 4619 mov r1, r3
  19325. 800876c: 3401 adds r4, #1
  19326. 800876e: 9305 str r3, [sp, #20]
  19327. 8008770: 4620 mov r0, r4
  19328. 8008772: f810 2b01 ldrb.w r2, [r0], #1
  19329. 8008776: 3a30 subs r2, #48 ; 0x30
  19330. 8008778: 2a09 cmp r2, #9
  19331. 800877a: d903 bls.n 8008784 <_svfiprintf_r+0x1a8>
  19332. 800877c: 2b00 cmp r3, #0
  19333. 800877e: d0c5 beq.n 800870c <_svfiprintf_r+0x130>
  19334. 8008780: 9105 str r1, [sp, #20]
  19335. 8008782: e7c3 b.n 800870c <_svfiprintf_r+0x130>
  19336. 8008784: 4604 mov r4, r0
  19337. 8008786: 2301 movs r3, #1
  19338. 8008788: fb0c 2101 mla r1, ip, r1, r2
  19339. 800878c: e7f0 b.n 8008770 <_svfiprintf_r+0x194>
  19340. 800878e: ab03 add r3, sp, #12
  19341. 8008790: 9300 str r3, [sp, #0]
  19342. 8008792: 462a mov r2, r5
  19343. 8008794: 4638 mov r0, r7
  19344. 8008796: 4b0f ldr r3, [pc, #60] ; (80087d4 <_svfiprintf_r+0x1f8>)
  19345. 8008798: a904 add r1, sp, #16
  19346. 800879a: f7fe f813 bl 80067c4 <_printf_float>
  19347. 800879e: 1c42 adds r2, r0, #1
  19348. 80087a0: 4606 mov r6, r0
  19349. 80087a2: d1d6 bne.n 8008752 <_svfiprintf_r+0x176>
  19350. 80087a4: 89ab ldrh r3, [r5, #12]
  19351. 80087a6: 065b lsls r3, r3, #25
  19352. 80087a8: f53f af2c bmi.w 8008604 <_svfiprintf_r+0x28>
  19353. 80087ac: 9809 ldr r0, [sp, #36] ; 0x24
  19354. 80087ae: b01d add sp, #116 ; 0x74
  19355. 80087b0: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  19356. 80087b4: ab03 add r3, sp, #12
  19357. 80087b6: 9300 str r3, [sp, #0]
  19358. 80087b8: 462a mov r2, r5
  19359. 80087ba: 4638 mov r0, r7
  19360. 80087bc: 4b05 ldr r3, [pc, #20] ; (80087d4 <_svfiprintf_r+0x1f8>)
  19361. 80087be: a904 add r1, sp, #16
  19362. 80087c0: f7fe fa9c bl 8006cfc <_printf_i>
  19363. 80087c4: e7eb b.n 800879e <_svfiprintf_r+0x1c2>
  19364. 80087c6: bf00 nop
  19365. 80087c8: 0800a33c .word 0x0800a33c
  19366. 80087cc: 0800a346 .word 0x0800a346
  19367. 80087d0: 080067c5 .word 0x080067c5
  19368. 80087d4: 08008525 .word 0x08008525
  19369. 80087d8: 0800a342 .word 0x0800a342
  19370. 080087dc <_sbrk_r>:
  19371. 80087dc: b538 push {r3, r4, r5, lr}
  19372. 80087de: 2300 movs r3, #0
  19373. 80087e0: 4d05 ldr r5, [pc, #20] ; (80087f8 <_sbrk_r+0x1c>)
  19374. 80087e2: 4604 mov r4, r0
  19375. 80087e4: 4608 mov r0, r1
  19376. 80087e6: 602b str r3, [r5, #0]
  19377. 80087e8: f7f9 fc32 bl 8002050 <_sbrk>
  19378. 80087ec: 1c43 adds r3, r0, #1
  19379. 80087ee: d102 bne.n 80087f6 <_sbrk_r+0x1a>
  19380. 80087f0: 682b ldr r3, [r5, #0]
  19381. 80087f2: b103 cbz r3, 80087f6 <_sbrk_r+0x1a>
  19382. 80087f4: 6023 str r3, [r4, #0]
  19383. 80087f6: bd38 pop {r3, r4, r5, pc}
  19384. 80087f8: 200006a0 .word 0x200006a0
  19385. 080087fc <__assert_func>:
  19386. 80087fc: b51f push {r0, r1, r2, r3, r4, lr}
  19387. 80087fe: 4614 mov r4, r2
  19388. 8008800: 461a mov r2, r3
  19389. 8008802: 4b09 ldr r3, [pc, #36] ; (8008828 <__assert_func+0x2c>)
  19390. 8008804: 4605 mov r5, r0
  19391. 8008806: 681b ldr r3, [r3, #0]
  19392. 8008808: 68d8 ldr r0, [r3, #12]
  19393. 800880a: b14c cbz r4, 8008820 <__assert_func+0x24>
  19394. 800880c: 4b07 ldr r3, [pc, #28] ; (800882c <__assert_func+0x30>)
  19395. 800880e: e9cd 3401 strd r3, r4, [sp, #4]
  19396. 8008812: 9100 str r1, [sp, #0]
  19397. 8008814: 462b mov r3, r5
  19398. 8008816: 4906 ldr r1, [pc, #24] ; (8008830 <__assert_func+0x34>)
  19399. 8008818: f000 f80e bl 8008838 <fiprintf>
  19400. 800881c: f000 fa88 bl 8008d30 <abort>
  19401. 8008820: 4b04 ldr r3, [pc, #16] ; (8008834 <__assert_func+0x38>)
  19402. 8008822: 461c mov r4, r3
  19403. 8008824: e7f3 b.n 800880e <__assert_func+0x12>
  19404. 8008826: bf00 nop
  19405. 8008828: 20000014 .word 0x20000014
  19406. 800882c: 0800a34d .word 0x0800a34d
  19407. 8008830: 0800a35a .word 0x0800a35a
  19408. 8008834: 0800a388 .word 0x0800a388
  19409. 08008838 <fiprintf>:
  19410. 8008838: b40e push {r1, r2, r3}
  19411. 800883a: b503 push {r0, r1, lr}
  19412. 800883c: 4601 mov r1, r0
  19413. 800883e: ab03 add r3, sp, #12
  19414. 8008840: 4805 ldr r0, [pc, #20] ; (8008858 <fiprintf+0x20>)
  19415. 8008842: f853 2b04 ldr.w r2, [r3], #4
  19416. 8008846: 6800 ldr r0, [r0, #0]
  19417. 8008848: 9301 str r3, [sp, #4]
  19418. 800884a: f000 f873 bl 8008934 <_vfiprintf_r>
  19419. 800884e: b002 add sp, #8
  19420. 8008850: f85d eb04 ldr.w lr, [sp], #4
  19421. 8008854: b003 add sp, #12
  19422. 8008856: 4770 bx lr
  19423. 8008858: 20000014 .word 0x20000014
  19424. 0800885c <__ascii_mbtowc>:
  19425. 800885c: b082 sub sp, #8
  19426. 800885e: b901 cbnz r1, 8008862 <__ascii_mbtowc+0x6>
  19427. 8008860: a901 add r1, sp, #4
  19428. 8008862: b142 cbz r2, 8008876 <__ascii_mbtowc+0x1a>
  19429. 8008864: b14b cbz r3, 800887a <__ascii_mbtowc+0x1e>
  19430. 8008866: 7813 ldrb r3, [r2, #0]
  19431. 8008868: 600b str r3, [r1, #0]
  19432. 800886a: 7812 ldrb r2, [r2, #0]
  19433. 800886c: 1e10 subs r0, r2, #0
  19434. 800886e: bf18 it ne
  19435. 8008870: 2001 movne r0, #1
  19436. 8008872: b002 add sp, #8
  19437. 8008874: 4770 bx lr
  19438. 8008876: 4610 mov r0, r2
  19439. 8008878: e7fb b.n 8008872 <__ascii_mbtowc+0x16>
  19440. 800887a: f06f 0001 mvn.w r0, #1
  19441. 800887e: e7f8 b.n 8008872 <__ascii_mbtowc+0x16>
  19442. 08008880 <__malloc_lock>:
  19443. 8008880: 4801 ldr r0, [pc, #4] ; (8008888 <__malloc_lock+0x8>)
  19444. 8008882: f000 bc15 b.w 80090b0 <__retarget_lock_acquire_recursive>
  19445. 8008886: bf00 nop
  19446. 8008888: 200006a8 .word 0x200006a8
  19447. 0800888c <__malloc_unlock>:
  19448. 800888c: 4801 ldr r0, [pc, #4] ; (8008894 <__malloc_unlock+0x8>)
  19449. 800888e: f000 bc10 b.w 80090b2 <__retarget_lock_release_recursive>
  19450. 8008892: bf00 nop
  19451. 8008894: 200006a8 .word 0x200006a8
  19452. 08008898 <_realloc_r>:
  19453. 8008898: b5f8 push {r3, r4, r5, r6, r7, lr}
  19454. 800889a: 4607 mov r7, r0
  19455. 800889c: 4614 mov r4, r2
  19456. 800889e: 460e mov r6, r1
  19457. 80088a0: b921 cbnz r1, 80088ac <_realloc_r+0x14>
  19458. 80088a2: 4611 mov r1, r2
  19459. 80088a4: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr}
  19460. 80088a8: f7ff bde2 b.w 8008470 <_malloc_r>
  19461. 80088ac: b922 cbnz r2, 80088b8 <_realloc_r+0x20>
  19462. 80088ae: f7ff fd93 bl 80083d8 <_free_r>
  19463. 80088b2: 4625 mov r5, r4
  19464. 80088b4: 4628 mov r0, r5
  19465. 80088b6: bdf8 pop {r3, r4, r5, r6, r7, pc}
  19466. 80088b8: f000 fc60 bl 800917c <_malloc_usable_size_r>
  19467. 80088bc: 42a0 cmp r0, r4
  19468. 80088be: d20f bcs.n 80088e0 <_realloc_r+0x48>
  19469. 80088c0: 4621 mov r1, r4
  19470. 80088c2: 4638 mov r0, r7
  19471. 80088c4: f7ff fdd4 bl 8008470 <_malloc_r>
  19472. 80088c8: 4605 mov r5, r0
  19473. 80088ca: 2800 cmp r0, #0
  19474. 80088cc: d0f2 beq.n 80088b4 <_realloc_r+0x1c>
  19475. 80088ce: 4631 mov r1, r6
  19476. 80088d0: 4622 mov r2, r4
  19477. 80088d2: f7fd fea9 bl 8006628 <memcpy>
  19478. 80088d6: 4631 mov r1, r6
  19479. 80088d8: 4638 mov r0, r7
  19480. 80088da: f7ff fd7d bl 80083d8 <_free_r>
  19481. 80088de: e7e9 b.n 80088b4 <_realloc_r+0x1c>
  19482. 80088e0: 4635 mov r5, r6
  19483. 80088e2: e7e7 b.n 80088b4 <_realloc_r+0x1c>
  19484. 080088e4 <__sfputc_r>:
  19485. 80088e4: 6893 ldr r3, [r2, #8]
  19486. 80088e6: b410 push {r4}
  19487. 80088e8: 3b01 subs r3, #1
  19488. 80088ea: 2b00 cmp r3, #0
  19489. 80088ec: 6093 str r3, [r2, #8]
  19490. 80088ee: da07 bge.n 8008900 <__sfputc_r+0x1c>
  19491. 80088f0: 6994 ldr r4, [r2, #24]
  19492. 80088f2: 42a3 cmp r3, r4
  19493. 80088f4: db01 blt.n 80088fa <__sfputc_r+0x16>
  19494. 80088f6: 290a cmp r1, #10
  19495. 80088f8: d102 bne.n 8008900 <__sfputc_r+0x1c>
  19496. 80088fa: bc10 pop {r4}
  19497. 80088fc: f000 b94a b.w 8008b94 <__swbuf_r>
  19498. 8008900: 6813 ldr r3, [r2, #0]
  19499. 8008902: 1c58 adds r0, r3, #1
  19500. 8008904: 6010 str r0, [r2, #0]
  19501. 8008906: 7019 strb r1, [r3, #0]
  19502. 8008908: 4608 mov r0, r1
  19503. 800890a: bc10 pop {r4}
  19504. 800890c: 4770 bx lr
  19505. 0800890e <__sfputs_r>:
  19506. 800890e: b5f8 push {r3, r4, r5, r6, r7, lr}
  19507. 8008910: 4606 mov r6, r0
  19508. 8008912: 460f mov r7, r1
  19509. 8008914: 4614 mov r4, r2
  19510. 8008916: 18d5 adds r5, r2, r3
  19511. 8008918: 42ac cmp r4, r5
  19512. 800891a: d101 bne.n 8008920 <__sfputs_r+0x12>
  19513. 800891c: 2000 movs r0, #0
  19514. 800891e: e007 b.n 8008930 <__sfputs_r+0x22>
  19515. 8008920: 463a mov r2, r7
  19516. 8008922: 4630 mov r0, r6
  19517. 8008924: f814 1b01 ldrb.w r1, [r4], #1
  19518. 8008928: f7ff ffdc bl 80088e4 <__sfputc_r>
  19519. 800892c: 1c43 adds r3, r0, #1
  19520. 800892e: d1f3 bne.n 8008918 <__sfputs_r+0xa>
  19521. 8008930: bdf8 pop {r3, r4, r5, r6, r7, pc}
  19522. ...
  19523. 08008934 <_vfiprintf_r>:
  19524. 8008934: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
  19525. 8008938: 460d mov r5, r1
  19526. 800893a: 4614 mov r4, r2
  19527. 800893c: 4698 mov r8, r3
  19528. 800893e: 4606 mov r6, r0
  19529. 8008940: b09d sub sp, #116 ; 0x74
  19530. 8008942: b118 cbz r0, 800894c <_vfiprintf_r+0x18>
  19531. 8008944: 6983 ldr r3, [r0, #24]
  19532. 8008946: b90b cbnz r3, 800894c <_vfiprintf_r+0x18>
  19533. 8008948: f000 fb14 bl 8008f74 <__sinit>
  19534. 800894c: 4b89 ldr r3, [pc, #548] ; (8008b74 <_vfiprintf_r+0x240>)
  19535. 800894e: 429d cmp r5, r3
  19536. 8008950: d11b bne.n 800898a <_vfiprintf_r+0x56>
  19537. 8008952: 6875 ldr r5, [r6, #4]
  19538. 8008954: 6e6b ldr r3, [r5, #100] ; 0x64
  19539. 8008956: 07d9 lsls r1, r3, #31
  19540. 8008958: d405 bmi.n 8008966 <_vfiprintf_r+0x32>
  19541. 800895a: 89ab ldrh r3, [r5, #12]
  19542. 800895c: 059a lsls r2, r3, #22
  19543. 800895e: d402 bmi.n 8008966 <_vfiprintf_r+0x32>
  19544. 8008960: 6da8 ldr r0, [r5, #88] ; 0x58
  19545. 8008962: f000 fba5 bl 80090b0 <__retarget_lock_acquire_recursive>
  19546. 8008966: 89ab ldrh r3, [r5, #12]
  19547. 8008968: 071b lsls r3, r3, #28
  19548. 800896a: d501 bpl.n 8008970 <_vfiprintf_r+0x3c>
  19549. 800896c: 692b ldr r3, [r5, #16]
  19550. 800896e: b9eb cbnz r3, 80089ac <_vfiprintf_r+0x78>
  19551. 8008970: 4629 mov r1, r5
  19552. 8008972: 4630 mov r0, r6
  19553. 8008974: f000 f96e bl 8008c54 <__swsetup_r>
  19554. 8008978: b1c0 cbz r0, 80089ac <_vfiprintf_r+0x78>
  19555. 800897a: 6e6b ldr r3, [r5, #100] ; 0x64
  19556. 800897c: 07dc lsls r4, r3, #31
  19557. 800897e: d50e bpl.n 800899e <_vfiprintf_r+0x6a>
  19558. 8008980: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  19559. 8008984: b01d add sp, #116 ; 0x74
  19560. 8008986: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
  19561. 800898a: 4b7b ldr r3, [pc, #492] ; (8008b78 <_vfiprintf_r+0x244>)
  19562. 800898c: 429d cmp r5, r3
  19563. 800898e: d101 bne.n 8008994 <_vfiprintf_r+0x60>
  19564. 8008990: 68b5 ldr r5, [r6, #8]
  19565. 8008992: e7df b.n 8008954 <_vfiprintf_r+0x20>
  19566. 8008994: 4b79 ldr r3, [pc, #484] ; (8008b7c <_vfiprintf_r+0x248>)
  19567. 8008996: 429d cmp r5, r3
  19568. 8008998: bf08 it eq
  19569. 800899a: 68f5 ldreq r5, [r6, #12]
  19570. 800899c: e7da b.n 8008954 <_vfiprintf_r+0x20>
  19571. 800899e: 89ab ldrh r3, [r5, #12]
  19572. 80089a0: 0598 lsls r0, r3, #22
  19573. 80089a2: d4ed bmi.n 8008980 <_vfiprintf_r+0x4c>
  19574. 80089a4: 6da8 ldr r0, [r5, #88] ; 0x58
  19575. 80089a6: f000 fb84 bl 80090b2 <__retarget_lock_release_recursive>
  19576. 80089aa: e7e9 b.n 8008980 <_vfiprintf_r+0x4c>
  19577. 80089ac: 2300 movs r3, #0
  19578. 80089ae: 9309 str r3, [sp, #36] ; 0x24
  19579. 80089b0: 2320 movs r3, #32
  19580. 80089b2: f88d 3029 strb.w r3, [sp, #41] ; 0x29
  19581. 80089b6: 2330 movs r3, #48 ; 0x30
  19582. 80089b8: f04f 0901 mov.w r9, #1
  19583. 80089bc: f8cd 800c str.w r8, [sp, #12]
  19584. 80089c0: f8df 81bc ldr.w r8, [pc, #444] ; 8008b80 <_vfiprintf_r+0x24c>
  19585. 80089c4: f88d 302a strb.w r3, [sp, #42] ; 0x2a
  19586. 80089c8: 4623 mov r3, r4
  19587. 80089ca: 469a mov sl, r3
  19588. 80089cc: f813 2b01 ldrb.w r2, [r3], #1
  19589. 80089d0: b10a cbz r2, 80089d6 <_vfiprintf_r+0xa2>
  19590. 80089d2: 2a25 cmp r2, #37 ; 0x25
  19591. 80089d4: d1f9 bne.n 80089ca <_vfiprintf_r+0x96>
  19592. 80089d6: ebba 0b04 subs.w fp, sl, r4
  19593. 80089da: d00b beq.n 80089f4 <_vfiprintf_r+0xc0>
  19594. 80089dc: 465b mov r3, fp
  19595. 80089de: 4622 mov r2, r4
  19596. 80089e0: 4629 mov r1, r5
  19597. 80089e2: 4630 mov r0, r6
  19598. 80089e4: f7ff ff93 bl 800890e <__sfputs_r>
  19599. 80089e8: 3001 adds r0, #1
  19600. 80089ea: f000 80aa beq.w 8008b42 <_vfiprintf_r+0x20e>
  19601. 80089ee: 9a09 ldr r2, [sp, #36] ; 0x24
  19602. 80089f0: 445a add r2, fp
  19603. 80089f2: 9209 str r2, [sp, #36] ; 0x24
  19604. 80089f4: f89a 3000 ldrb.w r3, [sl]
  19605. 80089f8: 2b00 cmp r3, #0
  19606. 80089fa: f000 80a2 beq.w 8008b42 <_vfiprintf_r+0x20e>
  19607. 80089fe: 2300 movs r3, #0
  19608. 8008a00: f04f 32ff mov.w r2, #4294967295 ; 0xffffffff
  19609. 8008a04: e9cd 2305 strd r2, r3, [sp, #20]
  19610. 8008a08: f10a 0a01 add.w sl, sl, #1
  19611. 8008a0c: 9304 str r3, [sp, #16]
  19612. 8008a0e: 9307 str r3, [sp, #28]
  19613. 8008a10: f88d 3053 strb.w r3, [sp, #83] ; 0x53
  19614. 8008a14: 931a str r3, [sp, #104] ; 0x68
  19615. 8008a16: 4654 mov r4, sl
  19616. 8008a18: 2205 movs r2, #5
  19617. 8008a1a: f814 1b01 ldrb.w r1, [r4], #1
  19618. 8008a1e: 4858 ldr r0, [pc, #352] ; (8008b80 <_vfiprintf_r+0x24c>)
  19619. 8008a20: f7ff f93c bl 8007c9c <memchr>
  19620. 8008a24: 9a04 ldr r2, [sp, #16]
  19621. 8008a26: b9d8 cbnz r0, 8008a60 <_vfiprintf_r+0x12c>
  19622. 8008a28: 06d1 lsls r1, r2, #27
  19623. 8008a2a: bf44 itt mi
  19624. 8008a2c: 2320 movmi r3, #32
  19625. 8008a2e: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  19626. 8008a32: 0713 lsls r3, r2, #28
  19627. 8008a34: bf44 itt mi
  19628. 8008a36: 232b movmi r3, #43 ; 0x2b
  19629. 8008a38: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53
  19630. 8008a3c: f89a 3000 ldrb.w r3, [sl]
  19631. 8008a40: 2b2a cmp r3, #42 ; 0x2a
  19632. 8008a42: d015 beq.n 8008a70 <_vfiprintf_r+0x13c>
  19633. 8008a44: 4654 mov r4, sl
  19634. 8008a46: 2000 movs r0, #0
  19635. 8008a48: f04f 0c0a mov.w ip, #10
  19636. 8008a4c: 9a07 ldr r2, [sp, #28]
  19637. 8008a4e: 4621 mov r1, r4
  19638. 8008a50: f811 3b01 ldrb.w r3, [r1], #1
  19639. 8008a54: 3b30 subs r3, #48 ; 0x30
  19640. 8008a56: 2b09 cmp r3, #9
  19641. 8008a58: d94e bls.n 8008af8 <_vfiprintf_r+0x1c4>
  19642. 8008a5a: b1b0 cbz r0, 8008a8a <_vfiprintf_r+0x156>
  19643. 8008a5c: 9207 str r2, [sp, #28]
  19644. 8008a5e: e014 b.n 8008a8a <_vfiprintf_r+0x156>
  19645. 8008a60: eba0 0308 sub.w r3, r0, r8
  19646. 8008a64: fa09 f303 lsl.w r3, r9, r3
  19647. 8008a68: 4313 orrs r3, r2
  19648. 8008a6a: 46a2 mov sl, r4
  19649. 8008a6c: 9304 str r3, [sp, #16]
  19650. 8008a6e: e7d2 b.n 8008a16 <_vfiprintf_r+0xe2>
  19651. 8008a70: 9b03 ldr r3, [sp, #12]
  19652. 8008a72: 1d19 adds r1, r3, #4
  19653. 8008a74: 681b ldr r3, [r3, #0]
  19654. 8008a76: 9103 str r1, [sp, #12]
  19655. 8008a78: 2b00 cmp r3, #0
  19656. 8008a7a: bfbb ittet lt
  19657. 8008a7c: 425b neglt r3, r3
  19658. 8008a7e: f042 0202 orrlt.w r2, r2, #2
  19659. 8008a82: 9307 strge r3, [sp, #28]
  19660. 8008a84: 9307 strlt r3, [sp, #28]
  19661. 8008a86: bfb8 it lt
  19662. 8008a88: 9204 strlt r2, [sp, #16]
  19663. 8008a8a: 7823 ldrb r3, [r4, #0]
  19664. 8008a8c: 2b2e cmp r3, #46 ; 0x2e
  19665. 8008a8e: d10c bne.n 8008aaa <_vfiprintf_r+0x176>
  19666. 8008a90: 7863 ldrb r3, [r4, #1]
  19667. 8008a92: 2b2a cmp r3, #42 ; 0x2a
  19668. 8008a94: d135 bne.n 8008b02 <_vfiprintf_r+0x1ce>
  19669. 8008a96: 9b03 ldr r3, [sp, #12]
  19670. 8008a98: 3402 adds r4, #2
  19671. 8008a9a: 1d1a adds r2, r3, #4
  19672. 8008a9c: 681b ldr r3, [r3, #0]
  19673. 8008a9e: 9203 str r2, [sp, #12]
  19674. 8008aa0: 2b00 cmp r3, #0
  19675. 8008aa2: bfb8 it lt
  19676. 8008aa4: f04f 33ff movlt.w r3, #4294967295 ; 0xffffffff
  19677. 8008aa8: 9305 str r3, [sp, #20]
  19678. 8008aaa: f8df a0e4 ldr.w sl, [pc, #228] ; 8008b90 <_vfiprintf_r+0x25c>
  19679. 8008aae: 2203 movs r2, #3
  19680. 8008ab0: 4650 mov r0, sl
  19681. 8008ab2: 7821 ldrb r1, [r4, #0]
  19682. 8008ab4: f7ff f8f2 bl 8007c9c <memchr>
  19683. 8008ab8: b140 cbz r0, 8008acc <_vfiprintf_r+0x198>
  19684. 8008aba: 2340 movs r3, #64 ; 0x40
  19685. 8008abc: eba0 000a sub.w r0, r0, sl
  19686. 8008ac0: fa03 f000 lsl.w r0, r3, r0
  19687. 8008ac4: 9b04 ldr r3, [sp, #16]
  19688. 8008ac6: 3401 adds r4, #1
  19689. 8008ac8: 4303 orrs r3, r0
  19690. 8008aca: 9304 str r3, [sp, #16]
  19691. 8008acc: f814 1b01 ldrb.w r1, [r4], #1
  19692. 8008ad0: 2206 movs r2, #6
  19693. 8008ad2: 482c ldr r0, [pc, #176] ; (8008b84 <_vfiprintf_r+0x250>)
  19694. 8008ad4: f88d 1028 strb.w r1, [sp, #40] ; 0x28
  19695. 8008ad8: f7ff f8e0 bl 8007c9c <memchr>
  19696. 8008adc: 2800 cmp r0, #0
  19697. 8008ade: d03f beq.n 8008b60 <_vfiprintf_r+0x22c>
  19698. 8008ae0: 4b29 ldr r3, [pc, #164] ; (8008b88 <_vfiprintf_r+0x254>)
  19699. 8008ae2: bb1b cbnz r3, 8008b2c <_vfiprintf_r+0x1f8>
  19700. 8008ae4: 9b03 ldr r3, [sp, #12]
  19701. 8008ae6: 3307 adds r3, #7
  19702. 8008ae8: f023 0307 bic.w r3, r3, #7
  19703. 8008aec: 3308 adds r3, #8
  19704. 8008aee: 9303 str r3, [sp, #12]
  19705. 8008af0: 9b09 ldr r3, [sp, #36] ; 0x24
  19706. 8008af2: 443b add r3, r7
  19707. 8008af4: 9309 str r3, [sp, #36] ; 0x24
  19708. 8008af6: e767 b.n 80089c8 <_vfiprintf_r+0x94>
  19709. 8008af8: 460c mov r4, r1
  19710. 8008afa: 2001 movs r0, #1
  19711. 8008afc: fb0c 3202 mla r2, ip, r2, r3
  19712. 8008b00: e7a5 b.n 8008a4e <_vfiprintf_r+0x11a>
  19713. 8008b02: 2300 movs r3, #0
  19714. 8008b04: f04f 0c0a mov.w ip, #10
  19715. 8008b08: 4619 mov r1, r3
  19716. 8008b0a: 3401 adds r4, #1
  19717. 8008b0c: 9305 str r3, [sp, #20]
  19718. 8008b0e: 4620 mov r0, r4
  19719. 8008b10: f810 2b01 ldrb.w r2, [r0], #1
  19720. 8008b14: 3a30 subs r2, #48 ; 0x30
  19721. 8008b16: 2a09 cmp r2, #9
  19722. 8008b18: d903 bls.n 8008b22 <_vfiprintf_r+0x1ee>
  19723. 8008b1a: 2b00 cmp r3, #0
  19724. 8008b1c: d0c5 beq.n 8008aaa <_vfiprintf_r+0x176>
  19725. 8008b1e: 9105 str r1, [sp, #20]
  19726. 8008b20: e7c3 b.n 8008aaa <_vfiprintf_r+0x176>
  19727. 8008b22: 4604 mov r4, r0
  19728. 8008b24: 2301 movs r3, #1
  19729. 8008b26: fb0c 2101 mla r1, ip, r1, r2
  19730. 8008b2a: e7f0 b.n 8008b0e <_vfiprintf_r+0x1da>
  19731. 8008b2c: ab03 add r3, sp, #12
  19732. 8008b2e: 9300 str r3, [sp, #0]
  19733. 8008b30: 462a mov r2, r5
  19734. 8008b32: 4630 mov r0, r6
  19735. 8008b34: 4b15 ldr r3, [pc, #84] ; (8008b8c <_vfiprintf_r+0x258>)
  19736. 8008b36: a904 add r1, sp, #16
  19737. 8008b38: f7fd fe44 bl 80067c4 <_printf_float>
  19738. 8008b3c: 4607 mov r7, r0
  19739. 8008b3e: 1c78 adds r0, r7, #1
  19740. 8008b40: d1d6 bne.n 8008af0 <_vfiprintf_r+0x1bc>
  19741. 8008b42: 6e6b ldr r3, [r5, #100] ; 0x64
  19742. 8008b44: 07d9 lsls r1, r3, #31
  19743. 8008b46: d405 bmi.n 8008b54 <_vfiprintf_r+0x220>
  19744. 8008b48: 89ab ldrh r3, [r5, #12]
  19745. 8008b4a: 059a lsls r2, r3, #22
  19746. 8008b4c: d402 bmi.n 8008b54 <_vfiprintf_r+0x220>
  19747. 8008b4e: 6da8 ldr r0, [r5, #88] ; 0x58
  19748. 8008b50: f000 faaf bl 80090b2 <__retarget_lock_release_recursive>
  19749. 8008b54: 89ab ldrh r3, [r5, #12]
  19750. 8008b56: 065b lsls r3, r3, #25
  19751. 8008b58: f53f af12 bmi.w 8008980 <_vfiprintf_r+0x4c>
  19752. 8008b5c: 9809 ldr r0, [sp, #36] ; 0x24
  19753. 8008b5e: e711 b.n 8008984 <_vfiprintf_r+0x50>
  19754. 8008b60: ab03 add r3, sp, #12
  19755. 8008b62: 9300 str r3, [sp, #0]
  19756. 8008b64: 462a mov r2, r5
  19757. 8008b66: 4630 mov r0, r6
  19758. 8008b68: 4b08 ldr r3, [pc, #32] ; (8008b8c <_vfiprintf_r+0x258>)
  19759. 8008b6a: a904 add r1, sp, #16
  19760. 8008b6c: f7fe f8c6 bl 8006cfc <_printf_i>
  19761. 8008b70: e7e4 b.n 8008b3c <_vfiprintf_r+0x208>
  19762. 8008b72: bf00 nop
  19763. 8008b74: 0800a4b4 .word 0x0800a4b4
  19764. 8008b78: 0800a4d4 .word 0x0800a4d4
  19765. 8008b7c: 0800a494 .word 0x0800a494
  19766. 8008b80: 0800a33c .word 0x0800a33c
  19767. 8008b84: 0800a346 .word 0x0800a346
  19768. 8008b88: 080067c5 .word 0x080067c5
  19769. 8008b8c: 0800890f .word 0x0800890f
  19770. 8008b90: 0800a342 .word 0x0800a342
  19771. 08008b94 <__swbuf_r>:
  19772. 8008b94: b5f8 push {r3, r4, r5, r6, r7, lr}
  19773. 8008b96: 460e mov r6, r1
  19774. 8008b98: 4614 mov r4, r2
  19775. 8008b9a: 4605 mov r5, r0
  19776. 8008b9c: b118 cbz r0, 8008ba6 <__swbuf_r+0x12>
  19777. 8008b9e: 6983 ldr r3, [r0, #24]
  19778. 8008ba0: b90b cbnz r3, 8008ba6 <__swbuf_r+0x12>
  19779. 8008ba2: f000 f9e7 bl 8008f74 <__sinit>
  19780. 8008ba6: 4b21 ldr r3, [pc, #132] ; (8008c2c <__swbuf_r+0x98>)
  19781. 8008ba8: 429c cmp r4, r3
  19782. 8008baa: d12b bne.n 8008c04 <__swbuf_r+0x70>
  19783. 8008bac: 686c ldr r4, [r5, #4]
  19784. 8008bae: 69a3 ldr r3, [r4, #24]
  19785. 8008bb0: 60a3 str r3, [r4, #8]
  19786. 8008bb2: 89a3 ldrh r3, [r4, #12]
  19787. 8008bb4: 071a lsls r2, r3, #28
  19788. 8008bb6: d52f bpl.n 8008c18 <__swbuf_r+0x84>
  19789. 8008bb8: 6923 ldr r3, [r4, #16]
  19790. 8008bba: b36b cbz r3, 8008c18 <__swbuf_r+0x84>
  19791. 8008bbc: 6923 ldr r3, [r4, #16]
  19792. 8008bbe: 6820 ldr r0, [r4, #0]
  19793. 8008bc0: b2f6 uxtb r6, r6
  19794. 8008bc2: 1ac0 subs r0, r0, r3
  19795. 8008bc4: 6963 ldr r3, [r4, #20]
  19796. 8008bc6: 4637 mov r7, r6
  19797. 8008bc8: 4283 cmp r3, r0
  19798. 8008bca: dc04 bgt.n 8008bd6 <__swbuf_r+0x42>
  19799. 8008bcc: 4621 mov r1, r4
  19800. 8008bce: 4628 mov r0, r5
  19801. 8008bd0: f000 f93c bl 8008e4c <_fflush_r>
  19802. 8008bd4: bb30 cbnz r0, 8008c24 <__swbuf_r+0x90>
  19803. 8008bd6: 68a3 ldr r3, [r4, #8]
  19804. 8008bd8: 3001 adds r0, #1
  19805. 8008bda: 3b01 subs r3, #1
  19806. 8008bdc: 60a3 str r3, [r4, #8]
  19807. 8008bde: 6823 ldr r3, [r4, #0]
  19808. 8008be0: 1c5a adds r2, r3, #1
  19809. 8008be2: 6022 str r2, [r4, #0]
  19810. 8008be4: 701e strb r6, [r3, #0]
  19811. 8008be6: 6963 ldr r3, [r4, #20]
  19812. 8008be8: 4283 cmp r3, r0
  19813. 8008bea: d004 beq.n 8008bf6 <__swbuf_r+0x62>
  19814. 8008bec: 89a3 ldrh r3, [r4, #12]
  19815. 8008bee: 07db lsls r3, r3, #31
  19816. 8008bf0: d506 bpl.n 8008c00 <__swbuf_r+0x6c>
  19817. 8008bf2: 2e0a cmp r6, #10
  19818. 8008bf4: d104 bne.n 8008c00 <__swbuf_r+0x6c>
  19819. 8008bf6: 4621 mov r1, r4
  19820. 8008bf8: 4628 mov r0, r5
  19821. 8008bfa: f000 f927 bl 8008e4c <_fflush_r>
  19822. 8008bfe: b988 cbnz r0, 8008c24 <__swbuf_r+0x90>
  19823. 8008c00: 4638 mov r0, r7
  19824. 8008c02: bdf8 pop {r3, r4, r5, r6, r7, pc}
  19825. 8008c04: 4b0a ldr r3, [pc, #40] ; (8008c30 <__swbuf_r+0x9c>)
  19826. 8008c06: 429c cmp r4, r3
  19827. 8008c08: d101 bne.n 8008c0e <__swbuf_r+0x7a>
  19828. 8008c0a: 68ac ldr r4, [r5, #8]
  19829. 8008c0c: e7cf b.n 8008bae <__swbuf_r+0x1a>
  19830. 8008c0e: 4b09 ldr r3, [pc, #36] ; (8008c34 <__swbuf_r+0xa0>)
  19831. 8008c10: 429c cmp r4, r3
  19832. 8008c12: bf08 it eq
  19833. 8008c14: 68ec ldreq r4, [r5, #12]
  19834. 8008c16: e7ca b.n 8008bae <__swbuf_r+0x1a>
  19835. 8008c18: 4621 mov r1, r4
  19836. 8008c1a: 4628 mov r0, r5
  19837. 8008c1c: f000 f81a bl 8008c54 <__swsetup_r>
  19838. 8008c20: 2800 cmp r0, #0
  19839. 8008c22: d0cb beq.n 8008bbc <__swbuf_r+0x28>
  19840. 8008c24: f04f 37ff mov.w r7, #4294967295 ; 0xffffffff
  19841. 8008c28: e7ea b.n 8008c00 <__swbuf_r+0x6c>
  19842. 8008c2a: bf00 nop
  19843. 8008c2c: 0800a4b4 .word 0x0800a4b4
  19844. 8008c30: 0800a4d4 .word 0x0800a4d4
  19845. 8008c34: 0800a494 .word 0x0800a494
  19846. 08008c38 <__ascii_wctomb>:
  19847. 8008c38: 4603 mov r3, r0
  19848. 8008c3a: 4608 mov r0, r1
  19849. 8008c3c: b141 cbz r1, 8008c50 <__ascii_wctomb+0x18>
  19850. 8008c3e: 2aff cmp r2, #255 ; 0xff
  19851. 8008c40: d904 bls.n 8008c4c <__ascii_wctomb+0x14>
  19852. 8008c42: 228a movs r2, #138 ; 0x8a
  19853. 8008c44: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  19854. 8008c48: 601a str r2, [r3, #0]
  19855. 8008c4a: 4770 bx lr
  19856. 8008c4c: 2001 movs r0, #1
  19857. 8008c4e: 700a strb r2, [r1, #0]
  19858. 8008c50: 4770 bx lr
  19859. ...
  19860. 08008c54 <__swsetup_r>:
  19861. 8008c54: 4b32 ldr r3, [pc, #200] ; (8008d20 <__swsetup_r+0xcc>)
  19862. 8008c56: b570 push {r4, r5, r6, lr}
  19863. 8008c58: 681d ldr r5, [r3, #0]
  19864. 8008c5a: 4606 mov r6, r0
  19865. 8008c5c: 460c mov r4, r1
  19866. 8008c5e: b125 cbz r5, 8008c6a <__swsetup_r+0x16>
  19867. 8008c60: 69ab ldr r3, [r5, #24]
  19868. 8008c62: b913 cbnz r3, 8008c6a <__swsetup_r+0x16>
  19869. 8008c64: 4628 mov r0, r5
  19870. 8008c66: f000 f985 bl 8008f74 <__sinit>
  19871. 8008c6a: 4b2e ldr r3, [pc, #184] ; (8008d24 <__swsetup_r+0xd0>)
  19872. 8008c6c: 429c cmp r4, r3
  19873. 8008c6e: d10f bne.n 8008c90 <__swsetup_r+0x3c>
  19874. 8008c70: 686c ldr r4, [r5, #4]
  19875. 8008c72: 89a3 ldrh r3, [r4, #12]
  19876. 8008c74: f9b4 200c ldrsh.w r2, [r4, #12]
  19877. 8008c78: 0719 lsls r1, r3, #28
  19878. 8008c7a: d42c bmi.n 8008cd6 <__swsetup_r+0x82>
  19879. 8008c7c: 06dd lsls r5, r3, #27
  19880. 8008c7e: d411 bmi.n 8008ca4 <__swsetup_r+0x50>
  19881. 8008c80: 2309 movs r3, #9
  19882. 8008c82: 6033 str r3, [r6, #0]
  19883. 8008c84: f042 0340 orr.w r3, r2, #64 ; 0x40
  19884. 8008c88: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  19885. 8008c8c: 81a3 strh r3, [r4, #12]
  19886. 8008c8e: e03e b.n 8008d0e <__swsetup_r+0xba>
  19887. 8008c90: 4b25 ldr r3, [pc, #148] ; (8008d28 <__swsetup_r+0xd4>)
  19888. 8008c92: 429c cmp r4, r3
  19889. 8008c94: d101 bne.n 8008c9a <__swsetup_r+0x46>
  19890. 8008c96: 68ac ldr r4, [r5, #8]
  19891. 8008c98: e7eb b.n 8008c72 <__swsetup_r+0x1e>
  19892. 8008c9a: 4b24 ldr r3, [pc, #144] ; (8008d2c <__swsetup_r+0xd8>)
  19893. 8008c9c: 429c cmp r4, r3
  19894. 8008c9e: bf08 it eq
  19895. 8008ca0: 68ec ldreq r4, [r5, #12]
  19896. 8008ca2: e7e6 b.n 8008c72 <__swsetup_r+0x1e>
  19897. 8008ca4: 0758 lsls r0, r3, #29
  19898. 8008ca6: d512 bpl.n 8008cce <__swsetup_r+0x7a>
  19899. 8008ca8: 6b61 ldr r1, [r4, #52] ; 0x34
  19900. 8008caa: b141 cbz r1, 8008cbe <__swsetup_r+0x6a>
  19901. 8008cac: f104 0344 add.w r3, r4, #68 ; 0x44
  19902. 8008cb0: 4299 cmp r1, r3
  19903. 8008cb2: d002 beq.n 8008cba <__swsetup_r+0x66>
  19904. 8008cb4: 4630 mov r0, r6
  19905. 8008cb6: f7ff fb8f bl 80083d8 <_free_r>
  19906. 8008cba: 2300 movs r3, #0
  19907. 8008cbc: 6363 str r3, [r4, #52] ; 0x34
  19908. 8008cbe: 89a3 ldrh r3, [r4, #12]
  19909. 8008cc0: f023 0324 bic.w r3, r3, #36 ; 0x24
  19910. 8008cc4: 81a3 strh r3, [r4, #12]
  19911. 8008cc6: 2300 movs r3, #0
  19912. 8008cc8: 6063 str r3, [r4, #4]
  19913. 8008cca: 6923 ldr r3, [r4, #16]
  19914. 8008ccc: 6023 str r3, [r4, #0]
  19915. 8008cce: 89a3 ldrh r3, [r4, #12]
  19916. 8008cd0: f043 0308 orr.w r3, r3, #8
  19917. 8008cd4: 81a3 strh r3, [r4, #12]
  19918. 8008cd6: 6923 ldr r3, [r4, #16]
  19919. 8008cd8: b94b cbnz r3, 8008cee <__swsetup_r+0x9a>
  19920. 8008cda: 89a3 ldrh r3, [r4, #12]
  19921. 8008cdc: f403 7320 and.w r3, r3, #640 ; 0x280
  19922. 8008ce0: f5b3 7f00 cmp.w r3, #512 ; 0x200
  19923. 8008ce4: d003 beq.n 8008cee <__swsetup_r+0x9a>
  19924. 8008ce6: 4621 mov r1, r4
  19925. 8008ce8: 4630 mov r0, r6
  19926. 8008cea: f000 fa07 bl 80090fc <__smakebuf_r>
  19927. 8008cee: 89a0 ldrh r0, [r4, #12]
  19928. 8008cf0: f9b4 200c ldrsh.w r2, [r4, #12]
  19929. 8008cf4: f010 0301 ands.w r3, r0, #1
  19930. 8008cf8: d00a beq.n 8008d10 <__swsetup_r+0xbc>
  19931. 8008cfa: 2300 movs r3, #0
  19932. 8008cfc: 60a3 str r3, [r4, #8]
  19933. 8008cfe: 6963 ldr r3, [r4, #20]
  19934. 8008d00: 425b negs r3, r3
  19935. 8008d02: 61a3 str r3, [r4, #24]
  19936. 8008d04: 6923 ldr r3, [r4, #16]
  19937. 8008d06: b943 cbnz r3, 8008d1a <__swsetup_r+0xc6>
  19938. 8008d08: f010 0080 ands.w r0, r0, #128 ; 0x80
  19939. 8008d0c: d1ba bne.n 8008c84 <__swsetup_r+0x30>
  19940. 8008d0e: bd70 pop {r4, r5, r6, pc}
  19941. 8008d10: 0781 lsls r1, r0, #30
  19942. 8008d12: bf58 it pl
  19943. 8008d14: 6963 ldrpl r3, [r4, #20]
  19944. 8008d16: 60a3 str r3, [r4, #8]
  19945. 8008d18: e7f4 b.n 8008d04 <__swsetup_r+0xb0>
  19946. 8008d1a: 2000 movs r0, #0
  19947. 8008d1c: e7f7 b.n 8008d0e <__swsetup_r+0xba>
  19948. 8008d1e: bf00 nop
  19949. 8008d20: 20000014 .word 0x20000014
  19950. 8008d24: 0800a4b4 .word 0x0800a4b4
  19951. 8008d28: 0800a4d4 .word 0x0800a4d4
  19952. 8008d2c: 0800a494 .word 0x0800a494
  19953. 08008d30 <abort>:
  19954. 8008d30: 2006 movs r0, #6
  19955. 8008d32: b508 push {r3, lr}
  19956. 8008d34: f000 fa52 bl 80091dc <raise>
  19957. 8008d38: 2001 movs r0, #1
  19958. 8008d3a: f7f9 f916 bl 8001f6a <_exit>
  19959. ...
  19960. 08008d40 <__sflush_r>:
  19961. 8008d40: 898a ldrh r2, [r1, #12]
  19962. 8008d42: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  19963. 8008d46: 4605 mov r5, r0
  19964. 8008d48: 0710 lsls r0, r2, #28
  19965. 8008d4a: 460c mov r4, r1
  19966. 8008d4c: d458 bmi.n 8008e00 <__sflush_r+0xc0>
  19967. 8008d4e: 684b ldr r3, [r1, #4]
  19968. 8008d50: 2b00 cmp r3, #0
  19969. 8008d52: dc05 bgt.n 8008d60 <__sflush_r+0x20>
  19970. 8008d54: 6c0b ldr r3, [r1, #64] ; 0x40
  19971. 8008d56: 2b00 cmp r3, #0
  19972. 8008d58: dc02 bgt.n 8008d60 <__sflush_r+0x20>
  19973. 8008d5a: 2000 movs r0, #0
  19974. 8008d5c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
  19975. 8008d60: 6ae6 ldr r6, [r4, #44] ; 0x2c
  19976. 8008d62: 2e00 cmp r6, #0
  19977. 8008d64: d0f9 beq.n 8008d5a <__sflush_r+0x1a>
  19978. 8008d66: 2300 movs r3, #0
  19979. 8008d68: f412 5280 ands.w r2, r2, #4096 ; 0x1000
  19980. 8008d6c: 682f ldr r7, [r5, #0]
  19981. 8008d6e: 602b str r3, [r5, #0]
  19982. 8008d70: d032 beq.n 8008dd8 <__sflush_r+0x98>
  19983. 8008d72: 6d60 ldr r0, [r4, #84] ; 0x54
  19984. 8008d74: 89a3 ldrh r3, [r4, #12]
  19985. 8008d76: 075a lsls r2, r3, #29
  19986. 8008d78: d505 bpl.n 8008d86 <__sflush_r+0x46>
  19987. 8008d7a: 6863 ldr r3, [r4, #4]
  19988. 8008d7c: 1ac0 subs r0, r0, r3
  19989. 8008d7e: 6b63 ldr r3, [r4, #52] ; 0x34
  19990. 8008d80: b10b cbz r3, 8008d86 <__sflush_r+0x46>
  19991. 8008d82: 6c23 ldr r3, [r4, #64] ; 0x40
  19992. 8008d84: 1ac0 subs r0, r0, r3
  19993. 8008d86: 2300 movs r3, #0
  19994. 8008d88: 4602 mov r2, r0
  19995. 8008d8a: 6ae6 ldr r6, [r4, #44] ; 0x2c
  19996. 8008d8c: 4628 mov r0, r5
  19997. 8008d8e: 6a21 ldr r1, [r4, #32]
  19998. 8008d90: 47b0 blx r6
  19999. 8008d92: 1c43 adds r3, r0, #1
  20000. 8008d94: 89a3 ldrh r3, [r4, #12]
  20001. 8008d96: d106 bne.n 8008da6 <__sflush_r+0x66>
  20002. 8008d98: 6829 ldr r1, [r5, #0]
  20003. 8008d9a: 291d cmp r1, #29
  20004. 8008d9c: d82c bhi.n 8008df8 <__sflush_r+0xb8>
  20005. 8008d9e: 4a2a ldr r2, [pc, #168] ; (8008e48 <__sflush_r+0x108>)
  20006. 8008da0: 40ca lsrs r2, r1
  20007. 8008da2: 07d6 lsls r6, r2, #31
  20008. 8008da4: d528 bpl.n 8008df8 <__sflush_r+0xb8>
  20009. 8008da6: 2200 movs r2, #0
  20010. 8008da8: 6062 str r2, [r4, #4]
  20011. 8008daa: 6922 ldr r2, [r4, #16]
  20012. 8008dac: 04d9 lsls r1, r3, #19
  20013. 8008dae: 6022 str r2, [r4, #0]
  20014. 8008db0: d504 bpl.n 8008dbc <__sflush_r+0x7c>
  20015. 8008db2: 1c42 adds r2, r0, #1
  20016. 8008db4: d101 bne.n 8008dba <__sflush_r+0x7a>
  20017. 8008db6: 682b ldr r3, [r5, #0]
  20018. 8008db8: b903 cbnz r3, 8008dbc <__sflush_r+0x7c>
  20019. 8008dba: 6560 str r0, [r4, #84] ; 0x54
  20020. 8008dbc: 6b61 ldr r1, [r4, #52] ; 0x34
  20021. 8008dbe: 602f str r7, [r5, #0]
  20022. 8008dc0: 2900 cmp r1, #0
  20023. 8008dc2: d0ca beq.n 8008d5a <__sflush_r+0x1a>
  20024. 8008dc4: f104 0344 add.w r3, r4, #68 ; 0x44
  20025. 8008dc8: 4299 cmp r1, r3
  20026. 8008dca: d002 beq.n 8008dd2 <__sflush_r+0x92>
  20027. 8008dcc: 4628 mov r0, r5
  20028. 8008dce: f7ff fb03 bl 80083d8 <_free_r>
  20029. 8008dd2: 2000 movs r0, #0
  20030. 8008dd4: 6360 str r0, [r4, #52] ; 0x34
  20031. 8008dd6: e7c1 b.n 8008d5c <__sflush_r+0x1c>
  20032. 8008dd8: 6a21 ldr r1, [r4, #32]
  20033. 8008dda: 2301 movs r3, #1
  20034. 8008ddc: 4628 mov r0, r5
  20035. 8008dde: 47b0 blx r6
  20036. 8008de0: 1c41 adds r1, r0, #1
  20037. 8008de2: d1c7 bne.n 8008d74 <__sflush_r+0x34>
  20038. 8008de4: 682b ldr r3, [r5, #0]
  20039. 8008de6: 2b00 cmp r3, #0
  20040. 8008de8: d0c4 beq.n 8008d74 <__sflush_r+0x34>
  20041. 8008dea: 2b1d cmp r3, #29
  20042. 8008dec: d001 beq.n 8008df2 <__sflush_r+0xb2>
  20043. 8008dee: 2b16 cmp r3, #22
  20044. 8008df0: d101 bne.n 8008df6 <__sflush_r+0xb6>
  20045. 8008df2: 602f str r7, [r5, #0]
  20046. 8008df4: e7b1 b.n 8008d5a <__sflush_r+0x1a>
  20047. 8008df6: 89a3 ldrh r3, [r4, #12]
  20048. 8008df8: f043 0340 orr.w r3, r3, #64 ; 0x40
  20049. 8008dfc: 81a3 strh r3, [r4, #12]
  20050. 8008dfe: e7ad b.n 8008d5c <__sflush_r+0x1c>
  20051. 8008e00: 690f ldr r7, [r1, #16]
  20052. 8008e02: 2f00 cmp r7, #0
  20053. 8008e04: d0a9 beq.n 8008d5a <__sflush_r+0x1a>
  20054. 8008e06: 0793 lsls r3, r2, #30
  20055. 8008e08: bf18 it ne
  20056. 8008e0a: 2300 movne r3, #0
  20057. 8008e0c: 680e ldr r6, [r1, #0]
  20058. 8008e0e: bf08 it eq
  20059. 8008e10: 694b ldreq r3, [r1, #20]
  20060. 8008e12: eba6 0807 sub.w r8, r6, r7
  20061. 8008e16: 600f str r7, [r1, #0]
  20062. 8008e18: 608b str r3, [r1, #8]
  20063. 8008e1a: f1b8 0f00 cmp.w r8, #0
  20064. 8008e1e: dd9c ble.n 8008d5a <__sflush_r+0x1a>
  20065. 8008e20: 4643 mov r3, r8
  20066. 8008e22: 463a mov r2, r7
  20067. 8008e24: 4628 mov r0, r5
  20068. 8008e26: 6a21 ldr r1, [r4, #32]
  20069. 8008e28: 6aa6 ldr r6, [r4, #40] ; 0x28
  20070. 8008e2a: 47b0 blx r6
  20071. 8008e2c: 2800 cmp r0, #0
  20072. 8008e2e: dc06 bgt.n 8008e3e <__sflush_r+0xfe>
  20073. 8008e30: 89a3 ldrh r3, [r4, #12]
  20074. 8008e32: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  20075. 8008e36: f043 0340 orr.w r3, r3, #64 ; 0x40
  20076. 8008e3a: 81a3 strh r3, [r4, #12]
  20077. 8008e3c: e78e b.n 8008d5c <__sflush_r+0x1c>
  20078. 8008e3e: 4407 add r7, r0
  20079. 8008e40: eba8 0800 sub.w r8, r8, r0
  20080. 8008e44: e7e9 b.n 8008e1a <__sflush_r+0xda>
  20081. 8008e46: bf00 nop
  20082. 8008e48: 20400001 .word 0x20400001
  20083. 08008e4c <_fflush_r>:
  20084. 8008e4c: b538 push {r3, r4, r5, lr}
  20085. 8008e4e: 690b ldr r3, [r1, #16]
  20086. 8008e50: 4605 mov r5, r0
  20087. 8008e52: 460c mov r4, r1
  20088. 8008e54: b913 cbnz r3, 8008e5c <_fflush_r+0x10>
  20089. 8008e56: 2500 movs r5, #0
  20090. 8008e58: 4628 mov r0, r5
  20091. 8008e5a: bd38 pop {r3, r4, r5, pc}
  20092. 8008e5c: b118 cbz r0, 8008e66 <_fflush_r+0x1a>
  20093. 8008e5e: 6983 ldr r3, [r0, #24]
  20094. 8008e60: b90b cbnz r3, 8008e66 <_fflush_r+0x1a>
  20095. 8008e62: f000 f887 bl 8008f74 <__sinit>
  20096. 8008e66: 4b14 ldr r3, [pc, #80] ; (8008eb8 <_fflush_r+0x6c>)
  20097. 8008e68: 429c cmp r4, r3
  20098. 8008e6a: d11b bne.n 8008ea4 <_fflush_r+0x58>
  20099. 8008e6c: 686c ldr r4, [r5, #4]
  20100. 8008e6e: f9b4 300c ldrsh.w r3, [r4, #12]
  20101. 8008e72: 2b00 cmp r3, #0
  20102. 8008e74: d0ef beq.n 8008e56 <_fflush_r+0xa>
  20103. 8008e76: 6e62 ldr r2, [r4, #100] ; 0x64
  20104. 8008e78: 07d0 lsls r0, r2, #31
  20105. 8008e7a: d404 bmi.n 8008e86 <_fflush_r+0x3a>
  20106. 8008e7c: 0599 lsls r1, r3, #22
  20107. 8008e7e: d402 bmi.n 8008e86 <_fflush_r+0x3a>
  20108. 8008e80: 6da0 ldr r0, [r4, #88] ; 0x58
  20109. 8008e82: f000 f915 bl 80090b0 <__retarget_lock_acquire_recursive>
  20110. 8008e86: 4628 mov r0, r5
  20111. 8008e88: 4621 mov r1, r4
  20112. 8008e8a: f7ff ff59 bl 8008d40 <__sflush_r>
  20113. 8008e8e: 6e63 ldr r3, [r4, #100] ; 0x64
  20114. 8008e90: 4605 mov r5, r0
  20115. 8008e92: 07da lsls r2, r3, #31
  20116. 8008e94: d4e0 bmi.n 8008e58 <_fflush_r+0xc>
  20117. 8008e96: 89a3 ldrh r3, [r4, #12]
  20118. 8008e98: 059b lsls r3, r3, #22
  20119. 8008e9a: d4dd bmi.n 8008e58 <_fflush_r+0xc>
  20120. 8008e9c: 6da0 ldr r0, [r4, #88] ; 0x58
  20121. 8008e9e: f000 f908 bl 80090b2 <__retarget_lock_release_recursive>
  20122. 8008ea2: e7d9 b.n 8008e58 <_fflush_r+0xc>
  20123. 8008ea4: 4b05 ldr r3, [pc, #20] ; (8008ebc <_fflush_r+0x70>)
  20124. 8008ea6: 429c cmp r4, r3
  20125. 8008ea8: d101 bne.n 8008eae <_fflush_r+0x62>
  20126. 8008eaa: 68ac ldr r4, [r5, #8]
  20127. 8008eac: e7df b.n 8008e6e <_fflush_r+0x22>
  20128. 8008eae: 4b04 ldr r3, [pc, #16] ; (8008ec0 <_fflush_r+0x74>)
  20129. 8008eb0: 429c cmp r4, r3
  20130. 8008eb2: bf08 it eq
  20131. 8008eb4: 68ec ldreq r4, [r5, #12]
  20132. 8008eb6: e7da b.n 8008e6e <_fflush_r+0x22>
  20133. 8008eb8: 0800a4b4 .word 0x0800a4b4
  20134. 8008ebc: 0800a4d4 .word 0x0800a4d4
  20135. 8008ec0: 0800a494 .word 0x0800a494
  20136. 08008ec4 <std>:
  20137. 8008ec4: 2300 movs r3, #0
  20138. 8008ec6: b510 push {r4, lr}
  20139. 8008ec8: 4604 mov r4, r0
  20140. 8008eca: e9c0 3300 strd r3, r3, [r0]
  20141. 8008ece: e9c0 3304 strd r3, r3, [r0, #16]
  20142. 8008ed2: 6083 str r3, [r0, #8]
  20143. 8008ed4: 8181 strh r1, [r0, #12]
  20144. 8008ed6: 6643 str r3, [r0, #100] ; 0x64
  20145. 8008ed8: 81c2 strh r2, [r0, #14]
  20146. 8008eda: 6183 str r3, [r0, #24]
  20147. 8008edc: 4619 mov r1, r3
  20148. 8008ede: 2208 movs r2, #8
  20149. 8008ee0: 305c adds r0, #92 ; 0x5c
  20150. 8008ee2: f7fd fbc9 bl 8006678 <memset>
  20151. 8008ee6: 4b05 ldr r3, [pc, #20] ; (8008efc <std+0x38>)
  20152. 8008ee8: 6224 str r4, [r4, #32]
  20153. 8008eea: 6263 str r3, [r4, #36] ; 0x24
  20154. 8008eec: 4b04 ldr r3, [pc, #16] ; (8008f00 <std+0x3c>)
  20155. 8008eee: 62a3 str r3, [r4, #40] ; 0x28
  20156. 8008ef0: 4b04 ldr r3, [pc, #16] ; (8008f04 <std+0x40>)
  20157. 8008ef2: 62e3 str r3, [r4, #44] ; 0x2c
  20158. 8008ef4: 4b04 ldr r3, [pc, #16] ; (8008f08 <std+0x44>)
  20159. 8008ef6: 6323 str r3, [r4, #48] ; 0x30
  20160. 8008ef8: bd10 pop {r4, pc}
  20161. 8008efa: bf00 nop
  20162. 8008efc: 08009215 .word 0x08009215
  20163. 8008f00: 08009237 .word 0x08009237
  20164. 8008f04: 0800926f .word 0x0800926f
  20165. 8008f08: 08009293 .word 0x08009293
  20166. 08008f0c <_cleanup_r>:
  20167. 8008f0c: 4901 ldr r1, [pc, #4] ; (8008f14 <_cleanup_r+0x8>)
  20168. 8008f0e: f000 b8af b.w 8009070 <_fwalk_reent>
  20169. 8008f12: bf00 nop
  20170. 8008f14: 08008e4d .word 0x08008e4d
  20171. 08008f18 <__sfmoreglue>:
  20172. 8008f18: b570 push {r4, r5, r6, lr}
  20173. 8008f1a: 2568 movs r5, #104 ; 0x68
  20174. 8008f1c: 1e4a subs r2, r1, #1
  20175. 8008f1e: 4355 muls r5, r2
  20176. 8008f20: 460e mov r6, r1
  20177. 8008f22: f105 0174 add.w r1, r5, #116 ; 0x74
  20178. 8008f26: f7ff faa3 bl 8008470 <_malloc_r>
  20179. 8008f2a: 4604 mov r4, r0
  20180. 8008f2c: b140 cbz r0, 8008f40 <__sfmoreglue+0x28>
  20181. 8008f2e: 2100 movs r1, #0
  20182. 8008f30: e9c0 1600 strd r1, r6, [r0]
  20183. 8008f34: 300c adds r0, #12
  20184. 8008f36: 60a0 str r0, [r4, #8]
  20185. 8008f38: f105 0268 add.w r2, r5, #104 ; 0x68
  20186. 8008f3c: f7fd fb9c bl 8006678 <memset>
  20187. 8008f40: 4620 mov r0, r4
  20188. 8008f42: bd70 pop {r4, r5, r6, pc}
  20189. 08008f44 <__sfp_lock_acquire>:
  20190. 8008f44: 4801 ldr r0, [pc, #4] ; (8008f4c <__sfp_lock_acquire+0x8>)
  20191. 8008f46: f000 b8b3 b.w 80090b0 <__retarget_lock_acquire_recursive>
  20192. 8008f4a: bf00 nop
  20193. 8008f4c: 200006ac .word 0x200006ac
  20194. 08008f50 <__sfp_lock_release>:
  20195. 8008f50: 4801 ldr r0, [pc, #4] ; (8008f58 <__sfp_lock_release+0x8>)
  20196. 8008f52: f000 b8ae b.w 80090b2 <__retarget_lock_release_recursive>
  20197. 8008f56: bf00 nop
  20198. 8008f58: 200006ac .word 0x200006ac
  20199. 08008f5c <__sinit_lock_acquire>:
  20200. 8008f5c: 4801 ldr r0, [pc, #4] ; (8008f64 <__sinit_lock_acquire+0x8>)
  20201. 8008f5e: f000 b8a7 b.w 80090b0 <__retarget_lock_acquire_recursive>
  20202. 8008f62: bf00 nop
  20203. 8008f64: 200006a7 .word 0x200006a7
  20204. 08008f68 <__sinit_lock_release>:
  20205. 8008f68: 4801 ldr r0, [pc, #4] ; (8008f70 <__sinit_lock_release+0x8>)
  20206. 8008f6a: f000 b8a2 b.w 80090b2 <__retarget_lock_release_recursive>
  20207. 8008f6e: bf00 nop
  20208. 8008f70: 200006a7 .word 0x200006a7
  20209. 08008f74 <__sinit>:
  20210. 8008f74: b510 push {r4, lr}
  20211. 8008f76: 4604 mov r4, r0
  20212. 8008f78: f7ff fff0 bl 8008f5c <__sinit_lock_acquire>
  20213. 8008f7c: 69a3 ldr r3, [r4, #24]
  20214. 8008f7e: b11b cbz r3, 8008f88 <__sinit+0x14>
  20215. 8008f80: e8bd 4010 ldmia.w sp!, {r4, lr}
  20216. 8008f84: f7ff bff0 b.w 8008f68 <__sinit_lock_release>
  20217. 8008f88: e9c4 3312 strd r3, r3, [r4, #72] ; 0x48
  20218. 8008f8c: 6523 str r3, [r4, #80] ; 0x50
  20219. 8008f8e: 4b13 ldr r3, [pc, #76] ; (8008fdc <__sinit+0x68>)
  20220. 8008f90: 4a13 ldr r2, [pc, #76] ; (8008fe0 <__sinit+0x6c>)
  20221. 8008f92: 681b ldr r3, [r3, #0]
  20222. 8008f94: 62a2 str r2, [r4, #40] ; 0x28
  20223. 8008f96: 42a3 cmp r3, r4
  20224. 8008f98: bf08 it eq
  20225. 8008f9a: 2301 moveq r3, #1
  20226. 8008f9c: 4620 mov r0, r4
  20227. 8008f9e: bf08 it eq
  20228. 8008fa0: 61a3 streq r3, [r4, #24]
  20229. 8008fa2: f000 f81f bl 8008fe4 <__sfp>
  20230. 8008fa6: 6060 str r0, [r4, #4]
  20231. 8008fa8: 4620 mov r0, r4
  20232. 8008faa: f000 f81b bl 8008fe4 <__sfp>
  20233. 8008fae: 60a0 str r0, [r4, #8]
  20234. 8008fb0: 4620 mov r0, r4
  20235. 8008fb2: f000 f817 bl 8008fe4 <__sfp>
  20236. 8008fb6: 2200 movs r2, #0
  20237. 8008fb8: 2104 movs r1, #4
  20238. 8008fba: 60e0 str r0, [r4, #12]
  20239. 8008fbc: 6860 ldr r0, [r4, #4]
  20240. 8008fbe: f7ff ff81 bl 8008ec4 <std>
  20241. 8008fc2: 2201 movs r2, #1
  20242. 8008fc4: 2109 movs r1, #9
  20243. 8008fc6: 68a0 ldr r0, [r4, #8]
  20244. 8008fc8: f7ff ff7c bl 8008ec4 <std>
  20245. 8008fcc: 2202 movs r2, #2
  20246. 8008fce: 2112 movs r1, #18
  20247. 8008fd0: 68e0 ldr r0, [r4, #12]
  20248. 8008fd2: f7ff ff77 bl 8008ec4 <std>
  20249. 8008fd6: 2301 movs r3, #1
  20250. 8008fd8: 61a3 str r3, [r4, #24]
  20251. 8008fda: e7d1 b.n 8008f80 <__sinit+0xc>
  20252. 8008fdc: 0800a114 .word 0x0800a114
  20253. 8008fe0: 08008f0d .word 0x08008f0d
  20254. 08008fe4 <__sfp>:
  20255. 8008fe4: b5f8 push {r3, r4, r5, r6, r7, lr}
  20256. 8008fe6: 4607 mov r7, r0
  20257. 8008fe8: f7ff ffac bl 8008f44 <__sfp_lock_acquire>
  20258. 8008fec: 4b1e ldr r3, [pc, #120] ; (8009068 <__sfp+0x84>)
  20259. 8008fee: 681e ldr r6, [r3, #0]
  20260. 8008ff0: 69b3 ldr r3, [r6, #24]
  20261. 8008ff2: b913 cbnz r3, 8008ffa <__sfp+0x16>
  20262. 8008ff4: 4630 mov r0, r6
  20263. 8008ff6: f7ff ffbd bl 8008f74 <__sinit>
  20264. 8008ffa: 3648 adds r6, #72 ; 0x48
  20265. 8008ffc: e9d6 3401 ldrd r3, r4, [r6, #4]
  20266. 8009000: 3b01 subs r3, #1
  20267. 8009002: d503 bpl.n 800900c <__sfp+0x28>
  20268. 8009004: 6833 ldr r3, [r6, #0]
  20269. 8009006: b30b cbz r3, 800904c <__sfp+0x68>
  20270. 8009008: 6836 ldr r6, [r6, #0]
  20271. 800900a: e7f7 b.n 8008ffc <__sfp+0x18>
  20272. 800900c: f9b4 500c ldrsh.w r5, [r4, #12]
  20273. 8009010: b9d5 cbnz r5, 8009048 <__sfp+0x64>
  20274. 8009012: 4b16 ldr r3, [pc, #88] ; (800906c <__sfp+0x88>)
  20275. 8009014: f104 0058 add.w r0, r4, #88 ; 0x58
  20276. 8009018: 60e3 str r3, [r4, #12]
  20277. 800901a: 6665 str r5, [r4, #100] ; 0x64
  20278. 800901c: f000 f847 bl 80090ae <__retarget_lock_init_recursive>
  20279. 8009020: f7ff ff96 bl 8008f50 <__sfp_lock_release>
  20280. 8009024: 2208 movs r2, #8
  20281. 8009026: 4629 mov r1, r5
  20282. 8009028: e9c4 5501 strd r5, r5, [r4, #4]
  20283. 800902c: e9c4 5504 strd r5, r5, [r4, #16]
  20284. 8009030: 6025 str r5, [r4, #0]
  20285. 8009032: 61a5 str r5, [r4, #24]
  20286. 8009034: f104 005c add.w r0, r4, #92 ; 0x5c
  20287. 8009038: f7fd fb1e bl 8006678 <memset>
  20288. 800903c: e9c4 550d strd r5, r5, [r4, #52] ; 0x34
  20289. 8009040: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48
  20290. 8009044: 4620 mov r0, r4
  20291. 8009046: bdf8 pop {r3, r4, r5, r6, r7, pc}
  20292. 8009048: 3468 adds r4, #104 ; 0x68
  20293. 800904a: e7d9 b.n 8009000 <__sfp+0x1c>
  20294. 800904c: 2104 movs r1, #4
  20295. 800904e: 4638 mov r0, r7
  20296. 8009050: f7ff ff62 bl 8008f18 <__sfmoreglue>
  20297. 8009054: 4604 mov r4, r0
  20298. 8009056: 6030 str r0, [r6, #0]
  20299. 8009058: 2800 cmp r0, #0
  20300. 800905a: d1d5 bne.n 8009008 <__sfp+0x24>
  20301. 800905c: f7ff ff78 bl 8008f50 <__sfp_lock_release>
  20302. 8009060: 230c movs r3, #12
  20303. 8009062: 603b str r3, [r7, #0]
  20304. 8009064: e7ee b.n 8009044 <__sfp+0x60>
  20305. 8009066: bf00 nop
  20306. 8009068: 0800a114 .word 0x0800a114
  20307. 800906c: ffff0001 .word 0xffff0001
  20308. 08009070 <_fwalk_reent>:
  20309. 8009070: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
  20310. 8009074: 4606 mov r6, r0
  20311. 8009076: 4688 mov r8, r1
  20312. 8009078: 2700 movs r7, #0
  20313. 800907a: f100 0448 add.w r4, r0, #72 ; 0x48
  20314. 800907e: e9d4 9501 ldrd r9, r5, [r4, #4]
  20315. 8009082: f1b9 0901 subs.w r9, r9, #1
  20316. 8009086: d505 bpl.n 8009094 <_fwalk_reent+0x24>
  20317. 8009088: 6824 ldr r4, [r4, #0]
  20318. 800908a: 2c00 cmp r4, #0
  20319. 800908c: d1f7 bne.n 800907e <_fwalk_reent+0xe>
  20320. 800908e: 4638 mov r0, r7
  20321. 8009090: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
  20322. 8009094: 89ab ldrh r3, [r5, #12]
  20323. 8009096: 2b01 cmp r3, #1
  20324. 8009098: d907 bls.n 80090aa <_fwalk_reent+0x3a>
  20325. 800909a: f9b5 300e ldrsh.w r3, [r5, #14]
  20326. 800909e: 3301 adds r3, #1
  20327. 80090a0: d003 beq.n 80090aa <_fwalk_reent+0x3a>
  20328. 80090a2: 4629 mov r1, r5
  20329. 80090a4: 4630 mov r0, r6
  20330. 80090a6: 47c0 blx r8
  20331. 80090a8: 4307 orrs r7, r0
  20332. 80090aa: 3568 adds r5, #104 ; 0x68
  20333. 80090ac: e7e9 b.n 8009082 <_fwalk_reent+0x12>
  20334. 080090ae <__retarget_lock_init_recursive>:
  20335. 80090ae: 4770 bx lr
  20336. 080090b0 <__retarget_lock_acquire_recursive>:
  20337. 80090b0: 4770 bx lr
  20338. 080090b2 <__retarget_lock_release_recursive>:
  20339. 80090b2: 4770 bx lr
  20340. 080090b4 <__swhatbuf_r>:
  20341. 80090b4: b570 push {r4, r5, r6, lr}
  20342. 80090b6: 460e mov r6, r1
  20343. 80090b8: f9b1 100e ldrsh.w r1, [r1, #14]
  20344. 80090bc: 4614 mov r4, r2
  20345. 80090be: 2900 cmp r1, #0
  20346. 80090c0: 461d mov r5, r3
  20347. 80090c2: b096 sub sp, #88 ; 0x58
  20348. 80090c4: da07 bge.n 80090d6 <__swhatbuf_r+0x22>
  20349. 80090c6: 2300 movs r3, #0
  20350. 80090c8: 602b str r3, [r5, #0]
  20351. 80090ca: 89b3 ldrh r3, [r6, #12]
  20352. 80090cc: 061a lsls r2, r3, #24
  20353. 80090ce: d410 bmi.n 80090f2 <__swhatbuf_r+0x3e>
  20354. 80090d0: f44f 6380 mov.w r3, #1024 ; 0x400
  20355. 80090d4: e00e b.n 80090f4 <__swhatbuf_r+0x40>
  20356. 80090d6: 466a mov r2, sp
  20357. 80090d8: f000 f902 bl 80092e0 <_fstat_r>
  20358. 80090dc: 2800 cmp r0, #0
  20359. 80090de: dbf2 blt.n 80090c6 <__swhatbuf_r+0x12>
  20360. 80090e0: 9a01 ldr r2, [sp, #4]
  20361. 80090e2: f402 4270 and.w r2, r2, #61440 ; 0xf000
  20362. 80090e6: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000
  20363. 80090ea: 425a negs r2, r3
  20364. 80090ec: 415a adcs r2, r3
  20365. 80090ee: 602a str r2, [r5, #0]
  20366. 80090f0: e7ee b.n 80090d0 <__swhatbuf_r+0x1c>
  20367. 80090f2: 2340 movs r3, #64 ; 0x40
  20368. 80090f4: 2000 movs r0, #0
  20369. 80090f6: 6023 str r3, [r4, #0]
  20370. 80090f8: b016 add sp, #88 ; 0x58
  20371. 80090fa: bd70 pop {r4, r5, r6, pc}
  20372. 080090fc <__smakebuf_r>:
  20373. 80090fc: 898b ldrh r3, [r1, #12]
  20374. 80090fe: b573 push {r0, r1, r4, r5, r6, lr}
  20375. 8009100: 079d lsls r5, r3, #30
  20376. 8009102: 4606 mov r6, r0
  20377. 8009104: 460c mov r4, r1
  20378. 8009106: d507 bpl.n 8009118 <__smakebuf_r+0x1c>
  20379. 8009108: f104 0347 add.w r3, r4, #71 ; 0x47
  20380. 800910c: 6023 str r3, [r4, #0]
  20381. 800910e: 6123 str r3, [r4, #16]
  20382. 8009110: 2301 movs r3, #1
  20383. 8009112: 6163 str r3, [r4, #20]
  20384. 8009114: b002 add sp, #8
  20385. 8009116: bd70 pop {r4, r5, r6, pc}
  20386. 8009118: 466a mov r2, sp
  20387. 800911a: ab01 add r3, sp, #4
  20388. 800911c: f7ff ffca bl 80090b4 <__swhatbuf_r>
  20389. 8009120: 9900 ldr r1, [sp, #0]
  20390. 8009122: 4605 mov r5, r0
  20391. 8009124: 4630 mov r0, r6
  20392. 8009126: f7ff f9a3 bl 8008470 <_malloc_r>
  20393. 800912a: b948 cbnz r0, 8009140 <__smakebuf_r+0x44>
  20394. 800912c: f9b4 300c ldrsh.w r3, [r4, #12]
  20395. 8009130: 059a lsls r2, r3, #22
  20396. 8009132: d4ef bmi.n 8009114 <__smakebuf_r+0x18>
  20397. 8009134: f023 0303 bic.w r3, r3, #3
  20398. 8009138: f043 0302 orr.w r3, r3, #2
  20399. 800913c: 81a3 strh r3, [r4, #12]
  20400. 800913e: e7e3 b.n 8009108 <__smakebuf_r+0xc>
  20401. 8009140: 4b0d ldr r3, [pc, #52] ; (8009178 <__smakebuf_r+0x7c>)
  20402. 8009142: 62b3 str r3, [r6, #40] ; 0x28
  20403. 8009144: 89a3 ldrh r3, [r4, #12]
  20404. 8009146: 6020 str r0, [r4, #0]
  20405. 8009148: f043 0380 orr.w r3, r3, #128 ; 0x80
  20406. 800914c: 81a3 strh r3, [r4, #12]
  20407. 800914e: 9b00 ldr r3, [sp, #0]
  20408. 8009150: 6120 str r0, [r4, #16]
  20409. 8009152: 6163 str r3, [r4, #20]
  20410. 8009154: 9b01 ldr r3, [sp, #4]
  20411. 8009156: b15b cbz r3, 8009170 <__smakebuf_r+0x74>
  20412. 8009158: 4630 mov r0, r6
  20413. 800915a: f9b4 100e ldrsh.w r1, [r4, #14]
  20414. 800915e: f000 f8d1 bl 8009304 <_isatty_r>
  20415. 8009162: b128 cbz r0, 8009170 <__smakebuf_r+0x74>
  20416. 8009164: 89a3 ldrh r3, [r4, #12]
  20417. 8009166: f023 0303 bic.w r3, r3, #3
  20418. 800916a: f043 0301 orr.w r3, r3, #1
  20419. 800916e: 81a3 strh r3, [r4, #12]
  20420. 8009170: 89a0 ldrh r0, [r4, #12]
  20421. 8009172: 4305 orrs r5, r0
  20422. 8009174: 81a5 strh r5, [r4, #12]
  20423. 8009176: e7cd b.n 8009114 <__smakebuf_r+0x18>
  20424. 8009178: 08008f0d .word 0x08008f0d
  20425. 0800917c <_malloc_usable_size_r>:
  20426. 800917c: f851 3c04 ldr.w r3, [r1, #-4]
  20427. 8009180: 1f18 subs r0, r3, #4
  20428. 8009182: 2b00 cmp r3, #0
  20429. 8009184: bfbc itt lt
  20430. 8009186: 580b ldrlt r3, [r1, r0]
  20431. 8009188: 18c0 addlt r0, r0, r3
  20432. 800918a: 4770 bx lr
  20433. 0800918c <_raise_r>:
  20434. 800918c: 291f cmp r1, #31
  20435. 800918e: b538 push {r3, r4, r5, lr}
  20436. 8009190: 4604 mov r4, r0
  20437. 8009192: 460d mov r5, r1
  20438. 8009194: d904 bls.n 80091a0 <_raise_r+0x14>
  20439. 8009196: 2316 movs r3, #22
  20440. 8009198: 6003 str r3, [r0, #0]
  20441. 800919a: f04f 30ff mov.w r0, #4294967295 ; 0xffffffff
  20442. 800919e: bd38 pop {r3, r4, r5, pc}
  20443. 80091a0: 6c42 ldr r2, [r0, #68] ; 0x44
  20444. 80091a2: b112 cbz r2, 80091aa <_raise_r+0x1e>
  20445. 80091a4: f852 3021 ldr.w r3, [r2, r1, lsl #2]
  20446. 80091a8: b94b cbnz r3, 80091be <_raise_r+0x32>
  20447. 80091aa: 4620 mov r0, r4
  20448. 80091ac: f000 f830 bl 8009210 <_getpid_r>
  20449. 80091b0: 462a mov r2, r5
  20450. 80091b2: 4601 mov r1, r0
  20451. 80091b4: 4620 mov r0, r4
  20452. 80091b6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
  20453. 80091ba: f000 b817 b.w 80091ec <_kill_r>
  20454. 80091be: 2b01 cmp r3, #1
  20455. 80091c0: d00a beq.n 80091d8 <_raise_r+0x4c>
  20456. 80091c2: 1c59 adds r1, r3, #1
  20457. 80091c4: d103 bne.n 80091ce <_raise_r+0x42>
  20458. 80091c6: 2316 movs r3, #22
  20459. 80091c8: 6003 str r3, [r0, #0]
  20460. 80091ca: 2001 movs r0, #1
  20461. 80091cc: e7e7 b.n 800919e <_raise_r+0x12>
  20462. 80091ce: 2400 movs r4, #0
  20463. 80091d0: 4628 mov r0, r5
  20464. 80091d2: f842 4025 str.w r4, [r2, r5, lsl #2]
  20465. 80091d6: 4798 blx r3
  20466. 80091d8: 2000 movs r0, #0
  20467. 80091da: e7e0 b.n 800919e <_raise_r+0x12>
  20468. 080091dc <raise>:
  20469. 80091dc: 4b02 ldr r3, [pc, #8] ; (80091e8 <raise+0xc>)
  20470. 80091de: 4601 mov r1, r0
  20471. 80091e0: 6818 ldr r0, [r3, #0]
  20472. 80091e2: f7ff bfd3 b.w 800918c <_raise_r>
  20473. 80091e6: bf00 nop
  20474. 80091e8: 20000014 .word 0x20000014
  20475. 080091ec <_kill_r>:
  20476. 80091ec: b538 push {r3, r4, r5, lr}
  20477. 80091ee: 2300 movs r3, #0
  20478. 80091f0: 4d06 ldr r5, [pc, #24] ; (800920c <_kill_r+0x20>)
  20479. 80091f2: 4604 mov r4, r0
  20480. 80091f4: 4608 mov r0, r1
  20481. 80091f6: 4611 mov r1, r2
  20482. 80091f8: 602b str r3, [r5, #0]
  20483. 80091fa: f7f8 fea6 bl 8001f4a <_kill>
  20484. 80091fe: 1c43 adds r3, r0, #1
  20485. 8009200: d102 bne.n 8009208 <_kill_r+0x1c>
  20486. 8009202: 682b ldr r3, [r5, #0]
  20487. 8009204: b103 cbz r3, 8009208 <_kill_r+0x1c>
  20488. 8009206: 6023 str r3, [r4, #0]
  20489. 8009208: bd38 pop {r3, r4, r5, pc}
  20490. 800920a: bf00 nop
  20491. 800920c: 200006a0 .word 0x200006a0
  20492. 08009210 <_getpid_r>:
  20493. 8009210: f7f8 be94 b.w 8001f3c <_getpid>
  20494. 08009214 <__sread>:
  20495. 8009214: b510 push {r4, lr}
  20496. 8009216: 460c mov r4, r1
  20497. 8009218: f9b1 100e ldrsh.w r1, [r1, #14]
  20498. 800921c: f000 f894 bl 8009348 <_read_r>
  20499. 8009220: 2800 cmp r0, #0
  20500. 8009222: bfab itete ge
  20501. 8009224: 6d63 ldrge r3, [r4, #84] ; 0x54
  20502. 8009226: 89a3 ldrhlt r3, [r4, #12]
  20503. 8009228: 181b addge r3, r3, r0
  20504. 800922a: f423 5380 biclt.w r3, r3, #4096 ; 0x1000
  20505. 800922e: bfac ite ge
  20506. 8009230: 6563 strge r3, [r4, #84] ; 0x54
  20507. 8009232: 81a3 strhlt r3, [r4, #12]
  20508. 8009234: bd10 pop {r4, pc}
  20509. 08009236 <__swrite>:
  20510. 8009236: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
  20511. 800923a: 461f mov r7, r3
  20512. 800923c: 898b ldrh r3, [r1, #12]
  20513. 800923e: 4605 mov r5, r0
  20514. 8009240: 05db lsls r3, r3, #23
  20515. 8009242: 460c mov r4, r1
  20516. 8009244: 4616 mov r6, r2
  20517. 8009246: d505 bpl.n 8009254 <__swrite+0x1e>
  20518. 8009248: 2302 movs r3, #2
  20519. 800924a: 2200 movs r2, #0
  20520. 800924c: f9b1 100e ldrsh.w r1, [r1, #14]
  20521. 8009250: f000 f868 bl 8009324 <_lseek_r>
  20522. 8009254: 89a3 ldrh r3, [r4, #12]
  20523. 8009256: 4632 mov r2, r6
  20524. 8009258: f423 5380 bic.w r3, r3, #4096 ; 0x1000
  20525. 800925c: 81a3 strh r3, [r4, #12]
  20526. 800925e: 4628 mov r0, r5
  20527. 8009260: 463b mov r3, r7
  20528. 8009262: f9b4 100e ldrsh.w r1, [r4, #14]
  20529. 8009266: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
  20530. 800926a: f000 b817 b.w 800929c <_write_r>
  20531. 0800926e <__sseek>:
  20532. 800926e: b510 push {r4, lr}
  20533. 8009270: 460c mov r4, r1
  20534. 8009272: f9b1 100e ldrsh.w r1, [r1, #14]
  20535. 8009276: f000 f855 bl 8009324 <_lseek_r>
  20536. 800927a: 1c43 adds r3, r0, #1
  20537. 800927c: 89a3 ldrh r3, [r4, #12]
  20538. 800927e: bf15 itete ne
  20539. 8009280: 6560 strne r0, [r4, #84] ; 0x54
  20540. 8009282: f423 5380 biceq.w r3, r3, #4096 ; 0x1000
  20541. 8009286: f443 5380 orrne.w r3, r3, #4096 ; 0x1000
  20542. 800928a: 81a3 strheq r3, [r4, #12]
  20543. 800928c: bf18 it ne
  20544. 800928e: 81a3 strhne r3, [r4, #12]
  20545. 8009290: bd10 pop {r4, pc}
  20546. 08009292 <__sclose>:
  20547. 8009292: f9b1 100e ldrsh.w r1, [r1, #14]
  20548. 8009296: f000 b813 b.w 80092c0 <_close_r>
  20549. ...
  20550. 0800929c <_write_r>:
  20551. 800929c: b538 push {r3, r4, r5, lr}
  20552. 800929e: 4604 mov r4, r0
  20553. 80092a0: 4608 mov r0, r1
  20554. 80092a2: 4611 mov r1, r2
  20555. 80092a4: 2200 movs r2, #0
  20556. 80092a6: 4d05 ldr r5, [pc, #20] ; (80092bc <_write_r+0x20>)
  20557. 80092a8: 602a str r2, [r5, #0]
  20558. 80092aa: 461a mov r2, r3
  20559. 80092ac: f7f8 fe84 bl 8001fb8 <_write>
  20560. 80092b0: 1c43 adds r3, r0, #1
  20561. 80092b2: d102 bne.n 80092ba <_write_r+0x1e>
  20562. 80092b4: 682b ldr r3, [r5, #0]
  20563. 80092b6: b103 cbz r3, 80092ba <_write_r+0x1e>
  20564. 80092b8: 6023 str r3, [r4, #0]
  20565. 80092ba: bd38 pop {r3, r4, r5, pc}
  20566. 80092bc: 200006a0 .word 0x200006a0
  20567. 080092c0 <_close_r>:
  20568. 80092c0: b538 push {r3, r4, r5, lr}
  20569. 80092c2: 2300 movs r3, #0
  20570. 80092c4: 4d05 ldr r5, [pc, #20] ; (80092dc <_close_r+0x1c>)
  20571. 80092c6: 4604 mov r4, r0
  20572. 80092c8: 4608 mov r0, r1
  20573. 80092ca: 602b str r3, [r5, #0]
  20574. 80092cc: f7f8 fe90 bl 8001ff0 <_close>
  20575. 80092d0: 1c43 adds r3, r0, #1
  20576. 80092d2: d102 bne.n 80092da <_close_r+0x1a>
  20577. 80092d4: 682b ldr r3, [r5, #0]
  20578. 80092d6: b103 cbz r3, 80092da <_close_r+0x1a>
  20579. 80092d8: 6023 str r3, [r4, #0]
  20580. 80092da: bd38 pop {r3, r4, r5, pc}
  20581. 80092dc: 200006a0 .word 0x200006a0
  20582. 080092e0 <_fstat_r>:
  20583. 80092e0: b538 push {r3, r4, r5, lr}
  20584. 80092e2: 2300 movs r3, #0
  20585. 80092e4: 4d06 ldr r5, [pc, #24] ; (8009300 <_fstat_r+0x20>)
  20586. 80092e6: 4604 mov r4, r0
  20587. 80092e8: 4608 mov r0, r1
  20588. 80092ea: 4611 mov r1, r2
  20589. 80092ec: 602b str r3, [r5, #0]
  20590. 80092ee: f7f8 fe8a bl 8002006 <_fstat>
  20591. 80092f2: 1c43 adds r3, r0, #1
  20592. 80092f4: d102 bne.n 80092fc <_fstat_r+0x1c>
  20593. 80092f6: 682b ldr r3, [r5, #0]
  20594. 80092f8: b103 cbz r3, 80092fc <_fstat_r+0x1c>
  20595. 80092fa: 6023 str r3, [r4, #0]
  20596. 80092fc: bd38 pop {r3, r4, r5, pc}
  20597. 80092fe: bf00 nop
  20598. 8009300: 200006a0 .word 0x200006a0
  20599. 08009304 <_isatty_r>:
  20600. 8009304: b538 push {r3, r4, r5, lr}
  20601. 8009306: 2300 movs r3, #0
  20602. 8009308: 4d05 ldr r5, [pc, #20] ; (8009320 <_isatty_r+0x1c>)
  20603. 800930a: 4604 mov r4, r0
  20604. 800930c: 4608 mov r0, r1
  20605. 800930e: 602b str r3, [r5, #0]
  20606. 8009310: f7f8 fe88 bl 8002024 <_isatty>
  20607. 8009314: 1c43 adds r3, r0, #1
  20608. 8009316: d102 bne.n 800931e <_isatty_r+0x1a>
  20609. 8009318: 682b ldr r3, [r5, #0]
  20610. 800931a: b103 cbz r3, 800931e <_isatty_r+0x1a>
  20611. 800931c: 6023 str r3, [r4, #0]
  20612. 800931e: bd38 pop {r3, r4, r5, pc}
  20613. 8009320: 200006a0 .word 0x200006a0
  20614. 08009324 <_lseek_r>:
  20615. 8009324: b538 push {r3, r4, r5, lr}
  20616. 8009326: 4604 mov r4, r0
  20617. 8009328: 4608 mov r0, r1
  20618. 800932a: 4611 mov r1, r2
  20619. 800932c: 2200 movs r2, #0
  20620. 800932e: 4d05 ldr r5, [pc, #20] ; (8009344 <_lseek_r+0x20>)
  20621. 8009330: 602a str r2, [r5, #0]
  20622. 8009332: 461a mov r2, r3
  20623. 8009334: f7f8 fe80 bl 8002038 <_lseek>
  20624. 8009338: 1c43 adds r3, r0, #1
  20625. 800933a: d102 bne.n 8009342 <_lseek_r+0x1e>
  20626. 800933c: 682b ldr r3, [r5, #0]
  20627. 800933e: b103 cbz r3, 8009342 <_lseek_r+0x1e>
  20628. 8009340: 6023 str r3, [r4, #0]
  20629. 8009342: bd38 pop {r3, r4, r5, pc}
  20630. 8009344: 200006a0 .word 0x200006a0
  20631. 08009348 <_read_r>:
  20632. 8009348: b538 push {r3, r4, r5, lr}
  20633. 800934a: 4604 mov r4, r0
  20634. 800934c: 4608 mov r0, r1
  20635. 800934e: 4611 mov r1, r2
  20636. 8009350: 2200 movs r2, #0
  20637. 8009352: 4d05 ldr r5, [pc, #20] ; (8009368 <_read_r+0x20>)
  20638. 8009354: 602a str r2, [r5, #0]
  20639. 8009356: 461a mov r2, r3
  20640. 8009358: f7f8 fe11 bl 8001f7e <_read>
  20641. 800935c: 1c43 adds r3, r0, #1
  20642. 800935e: d102 bne.n 8009366 <_read_r+0x1e>
  20643. 8009360: 682b ldr r3, [r5, #0]
  20644. 8009362: b103 cbz r3, 8009366 <_read_r+0x1e>
  20645. 8009364: 6023 str r3, [r4, #0]
  20646. 8009366: bd38 pop {r3, r4, r5, pc}
  20647. 8009368: 200006a0 .word 0x200006a0
  20648. 0800936c <_init>:
  20649. 800936c: b5f8 push {r3, r4, r5, r6, r7, lr}
  20650. 800936e: bf00 nop
  20651. 8009370: bcf8 pop {r3, r4, r5, r6, r7}
  20652. 8009372: bc08 pop {r3}
  20653. 8009374: 469e mov lr, r3
  20654. 8009376: 4770 bx lr
  20655. 08009378 <_fini>:
  20656. 8009378: b5f8 push {r3, r4, r5, r6, r7, lr}
  20657. 800937a: bf00 nop
  20658. 800937c: bcf8 pop {r3, r4, r5, r6, r7}
  20659. 800937e: bc08 pop {r3}
  20660. 8009380: 469e mov lr, r3
  20661. 8009382: 4770 bx lr